From 984a33f3f2486e0f4168dbf595e705289e517bee Mon Sep 17 00:00:00 2001 From: Dayana Ilieva Date: Tue, 12 Dec 2023 16:43:00 +0200 Subject: [PATCH] Refactor how all colors are being set --- dist/index.es.js | 4501 +++++++++++++-------------- dist/index.es.js.map | 2 +- dist/index.umd.js | 22 +- dist/index.umd.js.map | 2 +- src/assets/css/index.css | 58 + src/components/Button/basic.tsx | 5 +- src/components/Button/icon.tsx | 5 +- src/components/Button/variants.ts | 18 +- src/components/DevTools/variants.ts | 2 +- src/components/Form/email.tsx | 4 +- src/components/Form/response.tsx | 4 +- src/components/Input/basic.tsx | 5 +- src/components/Input/variants.ts | 20 +- src/components/Layout/base.tsx | 4 +- src/components/Layout/variants.ts | 22 +- src/components/Link/basic.tsx | 5 +- src/components/Link/variants.ts | 12 +- src/components/Overlay/index.tsx | 5 +- src/components/Overlay/variants.ts | 12 +- src/components/Payment/btn.tsx | 3 +- src/components/Payment/loader.tsx | 5 +- src/components/Payment/variants.ts | 42 +- src/components/Profile/index.tsx | 4 +- src/components/Profile/variants.ts | 39 +- src/components/Scenes/payment.tsx | 6 +- src/components/Stream/assistant.tsx | 5 +- src/components/Stream/base.tsx | 5 +- src/components/Stream/bubble.tsx | 4 +- src/components/Stream/ellipsis.tsx | 5 +- src/components/Stream/head.tsx | 5 +- src/components/Stream/options.tsx | 9 +- src/components/Stream/user.tsx | 6 +- src/components/Stream/variants.ts | 80 +- src/components/Toggle/variants.ts | 4 +- src/config/index.ts | 12 +- src/config/themes/base.js | 72 - tailwind.config.js | 39 +- 37 files changed, 2346 insertions(+), 2707 deletions(-) delete mode 100644 src/config/themes/base.js diff --git a/dist/index.es.js b/dist/index.es.js index 746057e..a05f49c 100644 --- a/dist/index.es.js +++ b/dist/index.es.js @@ -1,83 +1,83 @@ -(function(){"use strict";try{if(typeof document<"u"){const t=document.createElement("style");t.id="react-tw-ai-client",t.appendChild(document.createTextNode('*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}: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:Plus Jakarta Sans,Roboto,Mulish,Exo,Helvetica,Arial,sans-serif;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;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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]{display:none}*,: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: }::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--pointer-events-none{pointer-events:none}.tw--pointer-events-auto{pointer-events:auto}.tw--fixed{position:fixed}.tw--absolute{position:absolute}.tw--relative{position:relative}.tw---top-1\\/2{top:-50%}.tw--bottom-0{bottom:0}.tw--bottom-1{bottom:.25rem}.tw--bottom-\\[-16px\\]{bottom:-16px}.tw--left-0{left:0}.tw--right-0{right:0}.tw--right-4{right:1rem}.tw--right-\\[-10px\\]{right:-10px}.tw--top-0{top:0}.tw--top-8{top:2rem}.tw--top-\\[-30px\\]{top:-30px}.tw--top-\\[50\\%\\]{top:50%}.tw--z-50{z-index:50}.tw--z-\\[101\\]{z-index:101}.tw--m-0{margin:0}.tw--m-auto{margin:auto}.tw--mx-10{margin-left:2.5rem;margin-right:2.5rem}.tw--mx-\\[30px\\]{margin-left:30px;margin-right:30px}.tw--mx-auto{margin-left:auto;margin-right:auto}.tw--my-4{margin-top:1rem;margin-bottom:1rem}.tw--mb-5{margin-bottom:1.25rem}.tw--mb-6{margin-bottom:1.5rem}.tw--mb-7{margin-bottom:1.75rem}.tw--mb-\\[11px\\]{margin-bottom:11px}.tw--mb-auto{margin-bottom:auto}.tw--ml-7{margin-left:1.75rem}.tw--ml-auto{margin-left:auto}.tw--mr-0{margin-right:0}.tw--mr-5{margin-right:1.25rem}.tw--mr-\\[5px\\]{margin-right:5px}.tw--mt-0{margin-top:0}.tw--mt-24{margin-top:6rem}.tw--mt-\\[11px\\]{margin-top:11px}.tw--mt-\\[30px\\]{margin-top:30px}.tw--box-border{box-sizing:border-box}.tw--box-content{box-sizing:content-box}.tw--block{display:block}.tw--inline-block{display:inline-block}.tw--flex{display:flex}.tw--grid{display:grid}.tw--hidden{display:none}.tw--h-16{height:4rem}.tw--h-4{height:1rem}.tw--h-6{height:1.5rem}.tw--h-8{height:2rem}.tw--h-80{height:20rem}.tw--h-\\[12px\\]{height:12px}.tw--h-\\[50px\\]{height:50px}.tw--h-\\[60px\\]{height:60px}.tw--h-auto{height:auto}.tw--h-fit{height:-moz-fit-content;height:fit-content}.tw--h-full{height:100%}.tw--h-screen{height:100vh}.tw--max-h-\\[700px\\]{max-height:700px}.tw--max-h-screen{max-height:100vh}.tw--min-h-\\[400px\\]{min-height:400px}.tw--w-16{width:4rem}.tw--w-4{width:1rem}.tw--w-6{width:1.5rem}.tw--w-64{width:16rem}.tw--w-8{width:2rem}.tw--w-\\[12px\\]{width:12px}.tw--w-fit{width:-moz-fit-content;width:fit-content}.tw--w-full{width:100%}.tw--w-screen{width:100vw}.tw--max-w-\\[280px\\]{max-width:280px}.tw--max-w-\\[335px\\]{max-width:335px}.tw--max-w-\\[375px\\]{max-width:375px}.tw--max-w-\\[400px\\]{max-width:400px}.tw--max-w-\\[500px\\]{max-width:500px}.tw--max-w-md{max-width:28rem}.tw--max-w-xs{max-width:20rem}.tw--flex-1{flex:1 1 0%}.tw--shrink{flex-shrink:1}.tw--shrink-0{flex-shrink:0}.tw--grow-0{flex-grow:0}.tw--translate-x-72{--tw-translate-x: 18rem;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))}.tw--translate-y-1\\/2{--tw-translate-y: 50%;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))}.tw--translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;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))}@keyframes tw--dark-shadow-dots{0%,33%{background:rgba(255,255,255,.5);box-shadow:-31px 0 #f53374,31px 0 #ffffff80}66%{background:#f53374;box-shadow:-31px 0 #ffffff80,31px 0 #ffffff80}to,0%{background:rgba(255,255,255,.5);box-shadow:-31px 0 #ffffff80,31px 0 #f53374}}.tw--animate-dark-shadow-dots{animation:tw--dark-shadow-dots 2s linear infinite}@keyframes tw--light-shadow-dots{0%,33%{background:rgba(202,202,219,.6);box-shadow:-31px 0 #21bb5a,31px 0 #cacadb99}66%{background:#21bb5a;box-shadow:-31px 0 #cacadb99,31px 0 #cacadb99}to,0%{background:rgba(202,202,219,.6);box-shadow:-31px 0 #cacadb99,31px 0 #21bb5a}}.tw--animate-light-shadow-dots{animation:tw--light-shadow-dots 2s linear infinite}@keyframes tw--rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tw--animate-rotate{animation:tw--rotate .5s linear infinite}@keyframes tw--text-spin{0%{transform:translate(18rem)}6.25%,12.5%{transform:translate(-.5rem)}18.75%,25%{transform:translate(-21.5rem)}31.25%,37.5%{transform:translate(-42.5rem)}43.75%,50%{transform:translate(-63.5rem)}56.25%,62.5%{transform:translate(-84.5rem)}68.75%,75%{transform:translate(-105.5rem)}81.25%,87.5%{transform:translate(-126.5rem)}93.75%,to{transform:translate(-147.5em)}}.tw--animate-text-spin{animation:tw--text-spin 30s linear infinite}.tw--animate-wave{animation:tw--wave 1.3s linear infinite}.tw--animate-wave-delay{animation:tw--wave 1.3s linear infinite -1.1s}@keyframes tw--wave{0%{transform:initial}60%{transform:initial}to{transform:initial}30%{transform:translateY(-15px)}}.tw--animate-wave-delay-2{animation:tw--wave 1.3s linear infinite -.9s}.tw--cursor-pointer{cursor:pointer}.tw--select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.tw--flex-row{flex-direction:row}.tw--flex-col{flex-direction:column}.tw--flex-col-reverse{flex-direction:column-reverse}.tw--flex-wrap{flex-wrap:wrap}.tw--items-end{align-items:flex-end}.tw--items-center{align-items:center}.tw--items-stretch{align-items:stretch}.tw--justify-center{justify-content:center}.tw--justify-between{justify-content:space-between}.tw--gap-2{gap:.5rem}.tw--space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.tw--space-x-\\[6px\\]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(6px * var(--tw-space-x-reverse));margin-left:calc(6px * calc(1 - var(--tw-space-x-reverse)))}.tw--space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.tw--space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.tw--space-y-\\[10px\\]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(10px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(10px * var(--tw-space-y-reverse))}.tw--space-y-\\[11px\\]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(11px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(11px * var(--tw-space-y-reverse))}.tw--self-stretch{align-self:stretch}.tw--justify-self-start{justify-self:start}.tw--justify-self-end{justify-self:end}.tw--justify-self-stretch{justify-self:stretch}.tw--overflow-hidden{overflow:hidden}.tw--overflow-y-scroll{overflow-y:scroll}.tw--whitespace-pre-wrap{white-space:pre-wrap}.tw--break-words{overflow-wrap:break-word}.tw--rounded-3xl{border-radius:1.5rem}.tw--rounded-\\[20px\\]{border-radius:20px}.tw--rounded-full{border-radius:9999px}.tw--rounded-lg{border-radius:.5rem}.tw--rounded-xl{border-radius:.75rem}.tw--border{border-width:1px}.tw--border-0{border-width:0px}.tw--border-\\[5px\\]{border-width:5px}.tw--border-r{border-right-width:1px}.tw--border-solid{border-style:solid}.tw--border-dark-glaze{--tw-border-opacity: 1;border-color:rgb(179 186 198 / var(--tw-border-opacity))}.tw--border-light-seraph{--tw-border-opacity: 1;border-color:rgb(33 187 90 / var(--tw-border-opacity))}.tw--border-light-zephyr-200{border-color:#2b31391a}.tw--border-l-dark-zephyr-600{border-left-color:#fff9}.tw--border-l-light-zephyr-600{border-left-color:#2b313999}.tw--border-r-\\[\\#cacadb\\]{--tw-border-opacity: 1;border-right-color:rgb(202 202 219 / var(--tw-border-opacity))}.tw--border-t-dark-zephyr-600{border-top-color:#fff9}.tw--border-t-light-zephyr-600{border-top-color:#2b313999}.tw--bg-\\[transparent\\]{background-color:transparent}.tw--bg-dark-glazeBg{--tw-bg-opacity: 1;background-color:rgb(179 186 198 / var(--tw-bg-opacity))}.tw--bg-dark-iota-dots{--tw-bg-opacity: 1;background-color:rgb(33 187 90 / var(--tw-bg-opacity))}.tw--bg-dark-loader,.tw--bg-dark-lumina{--tw-bg-opacity: 1;background-color:rgb(37 34 57 / var(--tw-bg-opacity))}.tw--bg-dark-neon{--tw-bg-opacity: 1;background-color:rgb(1 154 255 / var(--tw-bg-opacity))}.tw--bg-dark-pale-dots{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.tw--bg-dark-seraph{--tw-bg-opacity: 1;background-color:rgb(245 51 115 / var(--tw-bg-opacity))}.tw--bg-dark-sigma{--tw-bg-opacity: 1;background-color:rgb(15 14 30 / var(--tw-bg-opacity))}.tw--bg-dark-whisper{--tw-bg-opacity: 1;background-color:rgb(21 18 38 / var(--tw-bg-opacity))}.tw--bg-dark-zephyr-100{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.tw--bg-light-glaze{--tw-bg-opacity: 1;background-color:rgb(33 187 90 / var(--tw-bg-opacity))}.tw--bg-light-glazeBg{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.tw--bg-light-iota-dots{--tw-bg-opacity: 1;background-color:rgb(33 187 90 / var(--tw-bg-opacity))}.tw--bg-light-loader{--tw-bg-opacity: 1;background-color:rgb(246 248 250 / var(--tw-bg-opacity))}.tw--bg-light-lumina{--tw-bg-opacity: 1;background-color:rgb(240 242 245 / var(--tw-bg-opacity))}.tw--bg-light-pale-dots{--tw-bg-opacity: 1;background-color:rgb(202 202 219 / var(--tw-bg-opacity))}.tw--bg-light-seraph{--tw-bg-opacity: 1;background-color:rgb(33 187 90 / var(--tw-bg-opacity))}.tw--bg-light-whisper{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.tw--bg-light-zephyr-100{--tw-bg-opacity: 1;background-color:rgb(43 49 57 / var(--tw-bg-opacity))}.tw--bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.tw--bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.tw--from-\\[\\#FF0000\\]{--tw-gradient-from: #FF0000 var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.tw--to-\\[\\#F25640\\]{--tw-gradient-to: #F25640 var(--tw-gradient-to-position)}.tw--p-0{padding:0}.tw--p-0\\.5{padding:.125rem}.tw--p-1{padding:.25rem}.tw--p-3{padding:.75rem}.tw--p-5{padding:1.25rem}.tw--p-7{padding:1.75rem}.tw--px-4{padding-left:1rem;padding-right:1rem}.tw--px-5{padding-left:1.25rem;padding-right:1.25rem}.tw--px-\\[15px\\]{padding-left:15px;padding-right:15px}.tw--py-2{padding-top:.5rem;padding-bottom:.5rem}.tw--py-3{padding-top:.75rem;padding-bottom:.75rem}.tw--py-4{padding-top:1rem;padding-bottom:1rem}.tw--py-\\[11px\\]{padding-top:11px;padding-bottom:11px}.tw--pb-1{padding-bottom:.25rem}.tw--pb-10{padding-bottom:2.5rem}.tw--pb-5{padding-bottom:1.25rem}.tw--pb-\\[11px\\]{padding-bottom:11px}.tw--pb-\\[30px\\]{padding-bottom:30px}.tw--pb-\\[5px\\]{padding-bottom:5px}.tw--pl-\\[10px\\]{padding-left:10px}.tw--pl-\\[35px\\]{padding-left:35px}.tw--pr-2{padding-right:.5rem}.tw--pr-\\[5px\\]{padding-right:5px}.tw--pt-10{padding-top:2.5rem}.tw--pt-5{padding-top:1.25rem}.tw--text-left{text-align:left}.tw--text-center{text-align:center}.tw--text-\\[10px\\]{font-size:10px}.tw--text-\\[12\\.8px\\]{font-size:12.8px}.tw--text-\\[16px\\]{font-size:16px}.tw--text-\\[20px\\]{font-size:20px}.tw--text-\\[24px\\]{font-size:24px}.tw--text-lg{font-size:1.125rem;line-height:1.75rem}.tw--text-sm{font-size:.875rem;line-height:1.25rem}.tw--text-xl,.tw--text-xl\\/7{font-size:1.25rem;line-height:1.75rem}.tw--font-bold{font-weight:700}.tw--font-extrabold{font-weight:800}.tw--font-medium{font-weight:500}.tw--font-semibold{font-weight:600}.tw--leading-5{line-height:1.25rem}.tw--leading-\\[1\\.4\\]{line-height:1.4}.tw--leading-\\[1\\.56\\]{line-height:1.56}.tw--leading-\\[1\\.63\\]{line-height:1.63}.tw--leading-\\[1\\]{line-height:1}.tw--leading-\\[2\\]{line-height:2}.tw--leading-\\[30px\\]{line-height:30px}.tw--text-\\[\\#ff0043\\]{--tw-text-opacity: 1;color:rgb(255 0 67 / var(--tw-text-opacity))}.tw--text-\\[inherit\\]{color:inherit}.tw--text-dark-glazeText{--tw-text-opacity: 1;color:rgb(21 18 38 / var(--tw-text-opacity))}.tw--text-dark-seraph{--tw-text-opacity: 1;color:rgb(245 51 115 / var(--tw-text-opacity))}.tw--text-dark-zephyr-100{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.tw--text-dark-zephyr-600{color:#fff9}.tw--text-dark-zephyr-800{color:#fffc}.tw--text-dark-zeta{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.tw--text-light-glazeText{--tw-text-opacity: 1;color:rgb(21 18 38 / var(--tw-text-opacity))}.tw--text-light-seraph,.tw--text-light-status{--tw-text-opacity: 1;color:rgb(33 187 90 / var(--tw-text-opacity))}.tw--text-light-zephyr-100{--tw-text-opacity: 1;color:rgb(43 49 57 / var(--tw-text-opacity))}.tw--text-light-zephyr-600{color:#2b313999}.tw--text-light-zephyr-800{color:#2b3139cc}.tw--text-light-zeta{--tw-text-opacity: 1;color:rgb(15 14 30 / var(--tw-text-opacity))}.tw--text-muted-blue{color:#0f0e1e99}.tw--text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.tw--underline{text-decoration-line:underline}.tw--opacity-40{opacity:.4}.tw--opacity-60{opacity:.6}.tw--shadow-\\[-1px_2px_5px_0\\]{--tw-shadow: -1px 2px 5px 0;--tw-shadow-colored: -1px 2px 5px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-\\[0px_12px_24px_-4px_rgba\\(1\\,154\\,255\\,0\\.2\\)\\]{--tw-shadow: 0px 12px 24px -4px rgba(1,154,255,.2);--tw-shadow-colored: 0px 12px 24px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-dark-card{--tw-shadow: 0 12px 24px 0 rgba(0, 0, 0, .12), 0 4px 8px 0 rgba(0, 0, 0, .1);--tw-shadow-colored: 0 12px 24px 0 var(--tw-shadow-color), 0 4px 8px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-dark-loading-dots{--tw-shadow: -24px 0 rgba(255, 255, 255, .5), 24px 0 rgba(255, 255, 255, .5);--tw-shadow-colored: -24px 0 var(--tw-shadow-color), 24px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-light-card{--tw-shadow: 0 12px 24px 0 rgba(43, 49, 57, .06), 0 4px 8px 0 rgba(43, 55, 70, .04);--tw-shadow-colored: 0 12px 24px 0 var(--tw-shadow-color), 0 4px 8px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-light-loading-dots{--tw-shadow: -24px 0 rgba(201, 201, 201, .5), 24px 0 rgba(201, 201, 201, .5);--tw-shadow-colored: -24px 0 var(--tw-shadow-color), 24px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-dark-zephyr-200{--tw-shadow-color: rgba(255, 255, 255,.1);--tw-shadow: var(--tw-shadow-colored)}.tw--shadow-light-zephyr-200{--tw-shadow-color: rgba(43, 49, 57,.1);--tw-shadow: var(--tw-shadow-colored)}.tw--translate-z-0 *{transform:translateZ(0)}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.\\[key\\:string\\]{key:string}#chatbot-container *{font-family:inherit!important}.spaced-letters{letter-spacing:2px}p{display:inline}.mt-8{margin-top:2rem}.mb-6{margin-bottom:1.5rem}.scroll-stop{overflow:hidden;position:fixed;left:0;right:0;top:0}.after\\:tw--absolute:after{content:var(--tw-content);position:absolute}.after\\:tw--bottom-\\[-2px\\]:after{content:var(--tw-content);bottom:-2px}.after\\:tw--left-\\[37px\\]:after{content:var(--tw-content);left:37px}.after\\:tw--z-10:after{content:var(--tw-content);z-index:10}.after\\:tw--ml-1:after{content:var(--tw-content);margin-left:.25rem}.after\\:tw--inline-block:after{content:var(--tw-content);display:inline-block}.after\\:tw--hidden:after{content:var(--tw-content);display:none}.after\\:tw--h-4:after{content:var(--tw-content);height:1rem}.after\\:tw--h-\\[10px\\]:after{content:var(--tw-content);height:10px}.after\\:tw--w-1:after{content:var(--tw-content);width:.25rem}.after\\:tw--w-\\[10px\\]:after{content:var(--tw-content);width:10px}@keyframes tw--blink{0%{content:var(--tw-content);opacity:1}49%{content:var(--tw-content);opacity:1}50%{content:var(--tw-content);opacity:0}to{content:var(--tw-content);opacity:0}}.after\\:tw--animate-blink:after{content:var(--tw-content);animation:tw--blink .5s infinite}.after\\:tw--rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\\:tw--bg-dark-zephyr-100:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.after\\:tw--bg-light-iota-dots:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(33 187 90 / var(--tw-bg-opacity))}.after\\:tw--bg-light-zephyr-100:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(43 49 57 / var(--tw-bg-opacity))}.focus\\:\\!tw--bg-dark-lumina:focus{--tw-bg-opacity: 1 !important;background-color:rgb(37 34 57 / var(--tw-bg-opacity))!important}.focus\\:\\!tw--bg-light-lumina:focus{--tw-bg-opacity: 1 !important;background-color:rgb(240 242 245 / var(--tw-bg-opacity))!important}.focus\\:tw--outline-none:focus{outline:2px solid transparent;outline-offset:2px}@media (min-width: 350px){.customXs\\:tw--max-w-xs{max-width:20rem}.customXs\\:tw--text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 768px){.md\\:tw--max-w-\\[800px\\]{max-width:800px}}')),document.body.appendChild(t)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); +(function(){"use strict";try{if(typeof document<"u"){const t=document.createElement("style");t.id="react-tw-ai-client",t.appendChild(document.createTextNode('*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}: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:Plus Jakarta Sans,Roboto,Mulish,Exo,Helvetica,Arial,sans-serif;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;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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]{display:none}*,: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: }::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--pointer-events-none{pointer-events:none}.tw--pointer-events-auto{pointer-events:auto}.tw--fixed{position:fixed}.tw--absolute{position:absolute}.tw--relative{position:relative}.tw---top-1\\/2{top:-50%}.tw--bottom-0{bottom:0}.tw--bottom-1{bottom:.25rem}.tw--bottom-\\[-16px\\]{bottom:-16px}.tw--left-0{left:0}.tw--right-0{right:0}.tw--right-4{right:1rem}.tw--right-\\[-10px\\]{right:-10px}.tw--top-0{top:0}.tw--top-8{top:2rem}.tw--top-\\[-30px\\]{top:-30px}.tw--top-\\[50\\%\\]{top:50%}.tw--z-50{z-index:50}.tw--z-\\[101\\]{z-index:101}.tw--m-0{margin:0}.tw--m-auto{margin:auto}.tw--mx-10{margin-left:2.5rem;margin-right:2.5rem}.tw--mx-\\[30px\\]{margin-left:30px;margin-right:30px}.tw--mx-auto{margin-left:auto;margin-right:auto}.tw--my-4{margin-top:1rem;margin-bottom:1rem}.tw--mb-5{margin-bottom:1.25rem}.tw--mb-6{margin-bottom:1.5rem}.tw--mb-7{margin-bottom:1.75rem}.tw--mb-\\[11px\\]{margin-bottom:11px}.tw--mb-auto{margin-bottom:auto}.tw--ml-7{margin-left:1.75rem}.tw--ml-auto{margin-left:auto}.tw--mr-0{margin-right:0}.tw--mr-5{margin-right:1.25rem}.tw--mr-\\[5px\\]{margin-right:5px}.tw--mt-0{margin-top:0}.tw--mt-24{margin-top:6rem}.tw--mt-\\[11px\\]{margin-top:11px}.tw--mt-\\[30px\\]{margin-top:30px}.tw--box-border{box-sizing:border-box}.tw--box-content{box-sizing:content-box}.tw--block{display:block}.tw--inline-block{display:inline-block}.tw--flex{display:flex}.tw--grid{display:grid}.tw--hidden{display:none}.tw--h-16{height:4rem}.tw--h-4{height:1rem}.tw--h-6{height:1.5rem}.tw--h-8{height:2rem}.tw--h-80{height:20rem}.tw--h-\\[12px\\]{height:12px}.tw--h-\\[50px\\]{height:50px}.tw--h-\\[60px\\]{height:60px}.tw--h-auto{height:auto}.tw--h-fit{height:-moz-fit-content;height:fit-content}.tw--h-full{height:100%}.tw--h-screen{height:100vh}.tw--max-h-\\[700px\\]{max-height:700px}.tw--max-h-screen{max-height:100vh}.tw--min-h-\\[400px\\]{min-height:400px}.tw--w-16{width:4rem}.tw--w-4{width:1rem}.tw--w-6{width:1.5rem}.tw--w-64{width:16rem}.tw--w-8{width:2rem}.tw--w-\\[12px\\]{width:12px}.tw--w-fit{width:-moz-fit-content;width:fit-content}.tw--w-full{width:100%}.tw--w-screen{width:100vw}.tw--max-w-\\[280px\\]{max-width:280px}.tw--max-w-\\[335px\\]{max-width:335px}.tw--max-w-\\[375px\\]{max-width:375px}.tw--max-w-\\[400px\\]{max-width:400px}.tw--max-w-\\[500px\\]{max-width:500px}.tw--max-w-md{max-width:28rem}.tw--max-w-xs{max-width:20rem}.tw--flex-1{flex:1 1 0%}.tw--shrink{flex-shrink:1}.tw--shrink-0{flex-shrink:0}.tw--grow-0{flex-grow:0}.tw--translate-x-72{--tw-translate-x: 18rem;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))}.tw--translate-y-1\\/2{--tw-translate-y: 50%;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))}.tw--translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;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))}@keyframes tw--rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tw--animate-rotate{animation:tw--rotate .5s linear infinite}@keyframes tw--text-spin{0%{transform:translate(18rem)}6.25%,12.5%{transform:translate(-.5rem)}18.75%,25%{transform:translate(-21.5rem)}31.25%,37.5%{transform:translate(-42.5rem)}43.75%,50%{transform:translate(-63.5rem)}56.25%,62.5%{transform:translate(-84.5rem)}68.75%,75%{transform:translate(-105.5rem)}81.25%,87.5%{transform:translate(-126.5rem)}93.75%,to{transform:translate(-147.5em)}}.tw--animate-text-spin{animation:tw--text-spin 30s linear infinite}.tw--animate-wave{animation:tw--wave 1.3s linear infinite}.tw--animate-wave-delay{animation:tw--wave 1.3s linear infinite -1.1s}@keyframes tw--wave{0%{transform:initial}60%{transform:initial}to{transform:initial}30%{transform:translateY(-15px)}}.tw--animate-wave-delay-2{animation:tw--wave 1.3s linear infinite -.9s}.tw--cursor-pointer{cursor:pointer}.tw--select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.tw--flex-row{flex-direction:row}.tw--flex-col{flex-direction:column}.tw--flex-col-reverse{flex-direction:column-reverse}.tw--flex-wrap{flex-wrap:wrap}.tw--items-end{align-items:flex-end}.tw--items-center{align-items:center}.tw--items-stretch{align-items:stretch}.tw--justify-center{justify-content:center}.tw--justify-between{justify-content:space-between}.tw--gap-2{gap:.5rem}.tw--space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.tw--space-x-\\[6px\\]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(6px * var(--tw-space-x-reverse));margin-left:calc(6px * calc(1 - var(--tw-space-x-reverse)))}.tw--space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.tw--space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.tw--space-y-\\[10px\\]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(10px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(10px * var(--tw-space-y-reverse))}.tw--space-y-\\[11px\\]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(11px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(11px * var(--tw-space-y-reverse))}.tw--self-stretch{align-self:stretch}.tw--justify-self-end{justify-self:end}.tw--justify-self-stretch{justify-self:stretch}.tw--overflow-hidden{overflow:hidden}.tw--overflow-y-scroll{overflow-y:scroll}.tw--whitespace-pre-wrap{white-space:pre-wrap}.tw--break-words{overflow-wrap:break-word}.tw--rounded-3xl{border-radius:1.5rem}.tw--rounded-\\[20px\\]{border-radius:20px}.tw--rounded-full{border-radius:9999px}.tw--rounded-lg{border-radius:.5rem}.tw--rounded-xl{border-radius:.75rem}.tw--border{border-width:1px}.tw--border-0{border-width:0px}.tw--border-\\[5px\\]{border-width:5px}.tw--border-r{border-right-width:1px}.tw--border-solid{border-style:solid}.tw--border-glaze{border-color:var(--glaze)}.tw--border-zephyr-200{border-color:var(--zephyr-200)}.tw--border-l-zephyr-600{border-left-color:var(--zephyr-600)}.tw--border-r-\\[\\#cacadb\\]{--tw-border-opacity: 1;border-right-color:rgb(202 202 219 / var(--tw-border-opacity))}.tw--border-t-zephyr-600{border-top-color:var(--zephyr-600)}.tw--bg-\\[\\#0f0e1e\\]{--tw-bg-opacity: 1;background-color:rgb(15 14 30 / var(--tw-bg-opacity))}.tw--bg-\\[transparent\\]{background-color:transparent}.tw--bg-glaze{background-color:var(--glaze)}.tw--bg-glazeBg{background-color:var(--glazeBg)}.tw--bg-iota-dots{background-color:var(--iota-dots)}.tw--bg-loader{background-color:var(--loader)}.tw--bg-lumina{background-color:var(--lumina)}.tw--bg-neon{background-color:var(--neon)}.tw--bg-pale-dots{background-color:var(--pale-dots)}.tw--bg-seraph{background-color:var(--seraph)}.tw--bg-whisper{background-color:var(--whisper)}.tw--bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.tw--bg-zephyr-100{background-color:var(--zephyr-100)}.tw--bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.tw--from-\\[\\#FF0000\\]{--tw-gradient-from: #FF0000 var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.tw--to-\\[\\#F25640\\]{--tw-gradient-to: #F25640 var(--tw-gradient-to-position)}.tw--p-0{padding:0}.tw--p-0\\.5{padding:.125rem}.tw--p-1{padding:.25rem}.tw--p-3{padding:.75rem}.tw--p-5{padding:1.25rem}.tw--p-7{padding:1.75rem}.tw--px-4{padding-left:1rem;padding-right:1rem}.tw--px-5{padding-left:1.25rem;padding-right:1.25rem}.tw--px-\\[15px\\]{padding-left:15px;padding-right:15px}.tw--py-2{padding-top:.5rem;padding-bottom:.5rem}.tw--py-3{padding-top:.75rem;padding-bottom:.75rem}.tw--py-4{padding-top:1rem;padding-bottom:1rem}.tw--py-\\[11px\\]{padding-top:11px;padding-bottom:11px}.tw--pb-1{padding-bottom:.25rem}.tw--pb-10{padding-bottom:2.5rem}.tw--pb-5{padding-bottom:1.25rem}.tw--pb-\\[11px\\]{padding-bottom:11px}.tw--pb-\\[30px\\]{padding-bottom:30px}.tw--pb-\\[5px\\]{padding-bottom:5px}.tw--pl-\\[10px\\]{padding-left:10px}.tw--pl-\\[35px\\]{padding-left:35px}.tw--pr-2{padding-right:.5rem}.tw--pr-\\[5px\\]{padding-right:5px}.tw--pt-10{padding-top:2.5rem}.tw--pt-5{padding-top:1.25rem}.tw--text-left{text-align:left}.tw--text-center{text-align:center}.tw--text-\\[10px\\]{font-size:10px}.tw--text-\\[12\\.8px\\]{font-size:12.8px}.tw--text-\\[16px\\]{font-size:16px}.tw--text-\\[20px\\]{font-size:20px}.tw--text-\\[24px\\]{font-size:24px}.tw--text-lg{font-size:1.125rem;line-height:1.75rem}.tw--text-sm{font-size:.875rem;line-height:1.25rem}.tw--text-xl,.tw--text-xl\\/7{font-size:1.25rem;line-height:1.75rem}.tw--font-bold{font-weight:700}.tw--font-density-different{font-weight:var(--density-different)}.tw--font-extrabold{font-weight:800}.tw--font-medium{font-weight:500}.tw--font-semibold{font-weight:600}.tw--leading-5{line-height:1.25rem}.tw--leading-\\[1\\.4\\]{line-height:1.4}.tw--leading-\\[1\\.56\\]{line-height:1.56}.tw--leading-\\[1\\.63\\]{line-height:1.63}.tw--leading-\\[1\\]{line-height:1}.tw--leading-\\[2\\]{line-height:2}.tw--leading-\\[30px\\]{line-height:30px}.tw--text-\\[\\#21bb5a\\]{--tw-text-opacity: 1;color:rgb(33 187 90 / var(--tw-text-opacity))}.tw--text-\\[\\#ff0043\\]{--tw-text-opacity: 1;color:rgb(255 0 67 / var(--tw-text-opacity))}.tw--text-dots{color:var(--dots)}.tw--text-glazeText{color:var(--glazeText)}.tw--text-muted-blue{color:#0f0e1e99}.tw--text-seraph{color:var(--seraph)}.tw--text-whisper{color:var(--whisper)}.tw--text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.tw--text-zephyr-100{color:var(--zephyr-100)}.tw--text-zephyr-600{color:var(--zephyr-600)}.tw--text-zephyr-800{color:var(--zephyr-800)}.tw--underline{text-decoration-line:underline}.tw--opacity-40{opacity:.4}.tw--opacity-60{opacity:.6}.tw--shadow-\\[-1px_2px_5px_0\\]{--tw-shadow: -1px 2px 5px 0;--tw-shadow-colored: -1px 2px 5px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-\\[0px_12px_24px_-4px_rgba\\(1\\,154\\,255\\,0\\.2\\)\\]{--tw-shadow: 0px 12px 24px -4px rgba(1,154,255,.2);--tw-shadow-colored: 0px 12px 24px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-card{--tw-shadow: 0 12px 24px 0 rgba(43, 49, 57, .06), 0 4px 8px 0 rgba(43, 55, 70, .04);--tw-shadow-colored: 0 12px 24px 0 var(--tw-shadow-color), 0 4px 8px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-loading-dots{--tw-shadow: -24px 0 rgba(201, 201, 201, .5), 24px 0 rgba(201, 201, 201, .5);--tw-shadow-colored: -24px 0 var(--tw-shadow-color), 24px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-zephyr-200{--tw-shadow-color: var(--zephyr-200);--tw-shadow: var(--tw-shadow-colored)}.tw--translate-z-0 *{transform:translateZ(0)}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.\\[key\\:string\\]{key:string}#chatbot-container *{font-family:inherit!important}.spaced-letters{letter-spacing:2px}p{display:inline}.mt-8{margin-top:2rem}.mb-6{margin-bottom:1.5rem}.scroll-stop{overflow:hidden;position:fixed;left:0;right:0;top:0}.light{--lumina: #f0f2f5;--whisper: #ffffff;--seraph: #21bb5a;--ember: #cacadb;--enigma: #ffae19;--glaze: #21bb5a;--glazeText: #151226;--glazeBg: #ffffff;--sigma: #0f0e1e;--zeta: #0f0e1e;--status: #21bb5a;--loader: #f6f8fa;--dots: #21bb5a;--neon: #019aff;--pale-dots: #cacadb;--iota-dots: #21bb5a;--overlay: rgba(15, 14, 30, .2);--beta: #f6f8fa;--ze: 43, 49, 57;--zephyr-100: rgb(var(--ze));--zephyr-200: rgba(var(--ze), .1);--zephyr-600: rgba(var(--ze), .6);--zephyr-800: rgba(var(--ze), .8);--card: 0 12px 24px 0 rgba(43, 49, 57, .06), 0 4px 8px 0 rgba(43, 55, 70, .04);--loading-dots: -24px 0 rgba(201, 201, 201, .5), 24px 0 rgba(201, 201, 201, .5);--density-different: 500}.dark{--lumina: #252239;--whisper: #151226;--seraph: #f53373;--ember: #cacadb;--enigma: #ffae19;--glaze: #b3bac6;--glazeText: #151226;--glazeBg: #b3bac6;--sigma: #0f0e1e;--zeta: #ffffff;--status: #21bb5a;--loader: #252239;--dots: #f53374;--neon: #019aff;--pale-dots: #ffffff;--iota-dots: #21bb5a;--overlay: rgba(15, 14, 30, .9);--beta: #25223;--ze: 255, 255, 255;--zephyr-100: rgb(var(--ze));--zephyr-200: rgba(var(--ze), .1);--zephyr-600: rgba(var(--ze), .6);--zephyr-800: rgba(var(--ze), .8);--card: 0 12px 24px 0 rgba(0, 0, 0, .12), 0 4px 8px 0 rgba(0, 0, 0, .1);--loading-dots: -24px 0 rgba(255, 255, 255, .5), 24px 0 rgba(255, 255, 255, .5);--density-different: 400}.after\\:tw--absolute:after{content:var(--tw-content);position:absolute}.after\\:tw--bottom-\\[-2px\\]:after{content:var(--tw-content);bottom:-2px}.after\\:tw--left-\\[37px\\]:after{content:var(--tw-content);left:37px}.after\\:tw--z-10:after{content:var(--tw-content);z-index:10}.after\\:tw--ml-1:after{content:var(--tw-content);margin-left:.25rem}.after\\:tw--inline-block:after{content:var(--tw-content);display:inline-block}.after\\:tw--hidden:after{content:var(--tw-content);display:none}.after\\:tw--h-4:after{content:var(--tw-content);height:1rem}.after\\:tw--h-\\[10px\\]:after{content:var(--tw-content);height:10px}.after\\:tw--w-1:after{content:var(--tw-content);width:.25rem}.after\\:tw--w-\\[10px\\]:after{content:var(--tw-content);width:10px}@keyframes tw--blink{0%{content:var(--tw-content);opacity:1}49%{content:var(--tw-content);opacity:1}50%{content:var(--tw-content);opacity:0}to{content:var(--tw-content);opacity:0}}.after\\:tw--animate-blink:after{content:var(--tw-content);animation:tw--blink .5s infinite}.after\\:tw--rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\\:tw--bg-iota-dots:after{content:var(--tw-content);background-color:var(--iota-dots)}.after\\:tw--bg-zephyr-100:after{content:var(--tw-content);background-color:var(--zephyr-100)}.focus\\:\\!tw--bg-lumina:focus{background-color:var(--lumina)!important}.focus\\:tw--outline-none:focus{outline:2px solid transparent;outline-offset:2px}@media (min-width: 350px){.customXs\\:tw--max-w-xs{max-width:20rem}.customXs\\:tw--text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 768px){.md\\:tw--max-w-\\[800px\\]{max-width:800px}}')),document.body.appendChild(t)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); import Nt, { PureComponent as zi, useState as xt, useLayoutEffect as $i, useEffect as Mt, forwardRef as Nn, useRef as Dr } from "react"; import Vi from "react-dom"; -import { useSelector as Wi, useDispatch as Gi, Provider as qi } from "react-redux"; +import { useDispatch as Wi, useSelector as Gi, Provider as qi } from "react-redux"; import { createSlice as or, configureStore as Hi, combineReducers as Yi } from "@reduxjs/toolkit"; import Ji from "react-markdown"; import { persistReducer as Xi, persistStore as Ki } from "redux-persist"; import { io as Zi } from "socket.io-client"; -var Ie = {}, Mn = {}, sr = {}; +var Ee = {}, Mn = {}, sr = {}; sr.byteLength = to; sr.toByteArray = no; sr.fromByteArray = so; -var Me = [], Pe = [], Qi = typeof Uint8Array < "u" ? Uint8Array : Array, mr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; +var Ne = [], Pe = [], Qi = typeof Uint8Array < "u" ? Uint8Array : Array, mr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; for (var pt = 0, eo = mr.length; pt < eo; ++pt) - Me[pt] = mr[pt], Pe[mr.charCodeAt(pt)] = pt; + Ne[pt] = mr[pt], Pe[mr.charCodeAt(pt)] = pt; Pe["-".charCodeAt(0)] = 62; Pe["_".charCodeAt(0)] = 63; function Un(e) { var t = e.length; if (t % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4"); - var n = e.indexOf("="); - n === -1 && (n = t); - var o = n === t ? 0 : 4 - n % 4; - return [n, o]; + var i = e.indexOf("="); + i === -1 && (i = t); + var o = i === t ? 0 : 4 - i % 4; + return [i, o]; } function to(e) { - var t = Un(e), n = t[0], o = t[1]; - return (n + o) * 3 / 4 - o; + var t = Un(e), i = t[0], o = t[1]; + return (i + o) * 3 / 4 - o; } -function ro(e, t, n) { - return (t + n) * 3 / 4 - n; +function ro(e, t, i) { + return (t + i) * 3 / 4 - i; } function no(e) { - var t, n = Un(e), o = n[0], a = n[1], u = new Qi(ro(e, o, a)), f = 0, l = a > 0 ? o - 4 : o, h; - for (h = 0; h < l; h += 4) + var t, i = Un(e), o = i[0], c = i[1], u = new Qi(ro(e, o, c)), f = 0, a = c > 0 ? o - 4 : o, h; + for (h = 0; h < a; h += 4) t = Pe[e.charCodeAt(h)] << 18 | Pe[e.charCodeAt(h + 1)] << 12 | Pe[e.charCodeAt(h + 2)] << 6 | Pe[e.charCodeAt(h + 3)], u[f++] = t >> 16 & 255, u[f++] = t >> 8 & 255, u[f++] = t & 255; - return a === 2 && (t = Pe[e.charCodeAt(h)] << 2 | Pe[e.charCodeAt(h + 1)] >> 4, u[f++] = t & 255), a === 1 && (t = Pe[e.charCodeAt(h)] << 10 | Pe[e.charCodeAt(h + 1)] << 4 | Pe[e.charCodeAt(h + 2)] >> 2, u[f++] = t >> 8 & 255, u[f++] = t & 255), u; + return c === 2 && (t = Pe[e.charCodeAt(h)] << 2 | Pe[e.charCodeAt(h + 1)] >> 4, u[f++] = t & 255), c === 1 && (t = Pe[e.charCodeAt(h)] << 10 | Pe[e.charCodeAt(h + 1)] << 4 | Pe[e.charCodeAt(h + 2)] >> 2, u[f++] = t >> 8 & 255, u[f++] = t & 255), u; } function io(e) { - return Me[e >> 18 & 63] + Me[e >> 12 & 63] + Me[e >> 6 & 63] + Me[e & 63]; + return Ne[e >> 18 & 63] + Ne[e >> 12 & 63] + Ne[e >> 6 & 63] + Ne[e & 63]; } -function oo(e, t, n) { - for (var o, a = [], u = t; u < n; u += 3) - o = (e[u] << 16 & 16711680) + (e[u + 1] << 8 & 65280) + (e[u + 2] & 255), a.push(io(o)); - return a.join(""); +function oo(e, t, i) { + for (var o, c = [], u = t; u < i; u += 3) + o = (e[u] << 16 & 16711680) + (e[u + 1] << 8 & 65280) + (e[u + 2] & 255), c.push(io(o)); + return c.join(""); } function so(e) { - for (var t, n = e.length, o = n % 3, a = [], u = 16383, f = 0, l = n - o; f < l; f += u) - a.push(oo(e, f, f + u > l ? l : f + u)); - return o === 1 ? (t = e[n - 1], a.push( - Me[t >> 2] + Me[t << 4 & 63] + "==" - )) : o === 2 && (t = (e[n - 2] << 8) + e[n - 1], a.push( - Me[t >> 10] + Me[t >> 4 & 63] + Me[t << 2 & 63] + "=" - )), a.join(""); + for (var t, i = e.length, o = i % 3, c = [], u = 16383, f = 0, a = i - o; f < a; f += u) + c.push(oo(e, f, f + u > a ? a : f + u)); + return o === 1 ? (t = e[i - 1], c.push( + Ne[t >> 2] + Ne[t << 4 & 63] + "==" + )) : o === 2 && (t = (e[i - 2] << 8) + e[i - 1], c.push( + Ne[t >> 10] + Ne[t >> 4 & 63] + Ne[t << 2 & 63] + "=" + )), c.join(""); } var zr = {}; /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ -zr.read = function(e, t, n, o, a) { - var u, f, l = a * 8 - o - 1, h = (1 << l) - 1, b = h >> 1, w = -7, x = n ? a - 1 : 0, I = n ? -1 : 1, S = e[t + x]; - for (x += I, u = S & (1 << -w) - 1, S >>= -w, w += l; w > 0; u = u * 256 + e[t + x], x += I, w -= 8) +zr.read = function(e, t, i, o, c) { + var u, f, a = c * 8 - o - 1, h = (1 << a) - 1, x = h >> 1, y = -7, b = i ? c - 1 : 0, I = i ? -1 : 1, P = e[t + b]; + for (b += I, u = P & (1 << -y) - 1, P >>= -y, y += a; y > 0; u = u * 256 + e[t + b], b += I, y -= 8) ; - for (f = u & (1 << -w) - 1, u >>= -w, w += o; w > 0; f = f * 256 + e[t + x], x += I, w -= 8) + for (f = u & (1 << -y) - 1, u >>= -y, y += o; y > 0; f = f * 256 + e[t + b], b += I, y -= 8) ; if (u === 0) - u = 1 - b; + u = 1 - x; else { if (u === h) - return f ? NaN : (S ? -1 : 1) * (1 / 0); - f = f + Math.pow(2, o), u = u - b; + return f ? NaN : (P ? -1 : 1) * (1 / 0); + f = f + Math.pow(2, o), u = u - x; } - return (S ? -1 : 1) * f * Math.pow(2, u - o); + return (P ? -1 : 1) * f * Math.pow(2, u - o); }; -zr.write = function(e, t, n, o, a, u) { - var f, l, h, b = u * 8 - a - 1, w = (1 << b) - 1, x = w >> 1, I = a === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, S = o ? 0 : u - 1, B = o ? 1 : -1, _ = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0; - for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (l = isNaN(t) ? 1 : 0, f = w) : (f = Math.floor(Math.log(t) / Math.LN2), t * (h = Math.pow(2, -f)) < 1 && (f--, h *= 2), f + x >= 1 ? t += I / h : t += I * Math.pow(2, 1 - x), t * h >= 2 && (f++, h /= 2), f + x >= w ? (l = 0, f = w) : f + x >= 1 ? (l = (t * h - 1) * Math.pow(2, a), f = f + x) : (l = t * Math.pow(2, x - 1) * Math.pow(2, a), f = 0)); a >= 8; e[n + S] = l & 255, S += B, l /= 256, a -= 8) +zr.write = function(e, t, i, o, c, u) { + var f, a, h, x = u * 8 - c - 1, y = (1 << x) - 1, b = y >> 1, I = c === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, P = o ? 0 : u - 1, O = o ? 1 : -1, S = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0; + for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (a = isNaN(t) ? 1 : 0, f = y) : (f = Math.floor(Math.log(t) / Math.LN2), t * (h = Math.pow(2, -f)) < 1 && (f--, h *= 2), f + b >= 1 ? t += I / h : t += I * Math.pow(2, 1 - b), t * h >= 2 && (f++, h /= 2), f + b >= y ? (a = 0, f = y) : f + b >= 1 ? (a = (t * h - 1) * Math.pow(2, c), f = f + b) : (a = t * Math.pow(2, b - 1) * Math.pow(2, c), f = 0)); c >= 8; e[i + P] = a & 255, P += O, a /= 256, c -= 8) ; - for (f = f << a | l, b += a; b > 0; e[n + S] = f & 255, S += B, f /= 256, b -= 8) + for (f = f << c | a, x += c; x > 0; e[i + P] = f & 255, P += O, f /= 256, x -= 8) ; - e[n + S - B] |= _ * 128; + e[i + P - O] |= S * 128; }; /*! * The buffer module from node.js, for the browser. @@ -86,10 +86,10 @@ zr.write = function(e, t, n, o, a, u) { * @license MIT */ (function(e) { - const t = sr, n = zr, o = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null; - e.Buffer = l, e.SlowBuffer = N, e.INSPECT_MAX_BYTES = 50; - const a = 2147483647; - e.kMaxLength = a, l.TYPED_ARRAY_SUPPORT = u(), !l.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error( + const t = sr, i = zr, o = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null; + e.Buffer = a, e.SlowBuffer = L, e.INSPECT_MAX_BYTES = 50; + const c = 2147483647; + e.kMaxLength = c, a.TYPED_ARRAY_SUPPORT = u(), !a.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error( "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support." ); function u() { @@ -102,150 +102,150 @@ zr.write = function(e, t, n, o, a, u) { return !1; } } - Object.defineProperty(l.prototype, "parent", { + Object.defineProperty(a.prototype, "parent", { enumerable: !0, get: function() { - if (l.isBuffer(this)) + if (a.isBuffer(this)) return this.buffer; } - }), Object.defineProperty(l.prototype, "offset", { + }), Object.defineProperty(a.prototype, "offset", { enumerable: !0, get: function() { - if (l.isBuffer(this)) + if (a.isBuffer(this)) return this.byteOffset; } }); function f(s) { - if (s > a) + if (s > c) throw new RangeError('The value "' + s + '" is invalid for option "size"'); const r = new Uint8Array(s); - return Object.setPrototypeOf(r, l.prototype), r; + return Object.setPrototypeOf(r, a.prototype), r; } - function l(s, r, i) { + function a(s, r, n) { if (typeof s == "number") { if (typeof r == "string") throw new TypeError( 'The "string" argument must be of type string. Received type number' ); - return x(s); + return b(s); } - return h(s, r, i); + return h(s, r, n); } - l.poolSize = 8192; - function h(s, r, i) { + a.poolSize = 8192; + function h(s, r, n) { if (typeof s == "string") return I(s, r); if (ArrayBuffer.isView(s)) - return B(s); + return O(s); if (s == null) throw new TypeError( "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof s ); if (ye(s, ArrayBuffer) || s && ye(s.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (ye(s, SharedArrayBuffer) || s && ye(s.buffer, SharedArrayBuffer))) - return _(s, r, i); + return S(s, r, n); if (typeof s == "number") throw new TypeError( 'The "value" argument must not be of type number. Received type number' ); - const c = s.valueOf && s.valueOf(); - if (c != null && c !== s) - return l.from(c, r, i); - const p = $(s); + const l = s.valueOf && s.valueOf(); + if (l != null && l !== s) + return a.from(l, r, n); + const p = ne(s); if (p) return p; if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof s[Symbol.toPrimitive] == "function") - return l.from(s[Symbol.toPrimitive]("string"), r, i); + return a.from(s[Symbol.toPrimitive]("string"), r, n); throw new TypeError( "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof s ); } - l.from = function(s, r, i) { - return h(s, r, i); - }, Object.setPrototypeOf(l.prototype, Uint8Array.prototype), Object.setPrototypeOf(l, Uint8Array); - function b(s) { + a.from = function(s, r, n) { + return h(s, r, n); + }, Object.setPrototypeOf(a.prototype, Uint8Array.prototype), Object.setPrototypeOf(a, Uint8Array); + function x(s) { if (typeof s != "number") throw new TypeError('"size" argument must be of type number'); if (s < 0) throw new RangeError('The value "' + s + '" is invalid for option "size"'); } - function w(s, r, i) { - return b(s), s <= 0 ? f(s) : r !== void 0 ? typeof i == "string" ? f(s).fill(r, i) : f(s).fill(r) : f(s); + function y(s, r, n) { + return x(s), s <= 0 ? f(s) : r !== void 0 ? typeof n == "string" ? f(s).fill(r, n) : f(s).fill(r) : f(s); } - l.alloc = function(s, r, i) { - return w(s, r, i); + a.alloc = function(s, r, n) { + return y(s, r, n); }; - function x(s) { - return b(s), f(s < 0 ? 0 : P(s) | 0); + function b(s) { + return x(s), f(s < 0 ? 0 : j(s) | 0); } - l.allocUnsafe = function(s) { - return x(s); - }, l.allocUnsafeSlow = function(s) { - return x(s); + a.allocUnsafe = function(s) { + return b(s); + }, a.allocUnsafeSlow = function(s) { + return b(s); }; function I(s, r) { - if ((typeof r != "string" || r === "") && (r = "utf8"), !l.isEncoding(r)) + if ((typeof r != "string" || r === "") && (r = "utf8"), !a.isEncoding(r)) throw new TypeError("Unknown encoding: " + r); - const i = le(s, r) | 0; - let c = f(i); - const p = c.write(s, r); - return p !== i && (c = c.slice(0, p)), c; + const n = ae(s, r) | 0; + let l = f(n); + const p = l.write(s, r); + return p !== n && (l = l.slice(0, p)), l; } - function S(s) { - const r = s.length < 0 ? 0 : P(s.length) | 0, i = f(r); - for (let c = 0; c < r; c += 1) - i[c] = s[c] & 255; - return i; + function P(s) { + const r = s.length < 0 ? 0 : j(s.length) | 0, n = f(r); + for (let l = 0; l < r; l += 1) + n[l] = s[l] & 255; + return n; } - function B(s) { + function O(s) { if (ye(s, Uint8Array)) { const r = new Uint8Array(s); - return _(r.buffer, r.byteOffset, r.byteLength); + return S(r.buffer, r.byteOffset, r.byteLength); } - return S(s); + return P(s); } - function _(s, r, i) { + function S(s, r, n) { if (r < 0 || s.byteLength < r) throw new RangeError('"offset" is outside of buffer bounds'); - if (s.byteLength < r + (i || 0)) + if (s.byteLength < r + (n || 0)) throw new RangeError('"length" is outside of buffer bounds'); - let c; - return r === void 0 && i === void 0 ? c = new Uint8Array(s) : i === void 0 ? c = new Uint8Array(s, r) : c = new Uint8Array(s, r, i), Object.setPrototypeOf(c, l.prototype), c; + let l; + return r === void 0 && n === void 0 ? l = new Uint8Array(s) : n === void 0 ? l = new Uint8Array(s, r) : l = new Uint8Array(s, r, n), Object.setPrototypeOf(l, a.prototype), l; } - function $(s) { - if (l.isBuffer(s)) { - const r = P(s.length) | 0, i = f(r); - return i.length === 0 || s.copy(i, 0, 0, r), i; + function ne(s) { + if (a.isBuffer(s)) { + const r = j(s.length) | 0, n = f(r); + return n.length === 0 || s.copy(n, 0, 0, r), n; } if (s.length !== void 0) - return typeof s.length != "number" || St(s.length) ? f(0) : S(s); + return typeof s.length != "number" || Ct(s.length) ? f(0) : P(s); if (s.type === "Buffer" && Array.isArray(s.data)) - return S(s.data); + return P(s.data); } - function P(s) { - if (s >= a) - throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + a.toString(16) + " bytes"); + function j(s) { + if (s >= c) + throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + c.toString(16) + " bytes"); return s | 0; } - function N(s) { - return +s != s && (s = 0), l.alloc(+s); + function L(s) { + return +s != s && (s = 0), a.alloc(+s); } - l.isBuffer = function(r) { - return r != null && r._isBuffer === !0 && r !== l.prototype; - }, l.compare = function(r, i) { - if (ye(r, Uint8Array) && (r = l.from(r, r.offset, r.byteLength)), ye(i, Uint8Array) && (i = l.from(i, i.offset, i.byteLength)), !l.isBuffer(r) || !l.isBuffer(i)) + a.isBuffer = function(r) { + return r != null && r._isBuffer === !0 && r !== a.prototype; + }, a.compare = function(r, n) { + if (ye(r, Uint8Array) && (r = a.from(r, r.offset, r.byteLength)), ye(n, Uint8Array) && (n = a.from(n, n.offset, n.byteLength)), !a.isBuffer(r) || !a.isBuffer(n)) throw new TypeError( 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array' ); - if (r === i) + if (r === n) return 0; - let c = r.length, p = i.length; - for (let m = 0, y = Math.min(c, p); m < y; ++m) - if (r[m] !== i[m]) { - c = r[m], p = i[m]; + let l = r.length, p = n.length; + for (let m = 0, g = Math.min(l, p); m < g; ++m) + if (r[m] !== n[m]) { + l = r[m], p = n[m]; break; } - return c < p ? -1 : p < c ? 1 : 0; - }, l.isEncoding = function(r) { + return l < p ? -1 : p < l ? 1 : 0; + }, a.isEncoding = function(r) { switch (String(r).toLowerCase()) { case "hex": case "utf8": @@ -262,35 +262,35 @@ zr.write = function(e, t, n, o, a, u) { default: return !1; } - }, l.concat = function(r, i) { + }, a.concat = function(r, n) { if (!Array.isArray(r)) throw new TypeError('"list" argument must be an Array of Buffers'); if (r.length === 0) - return l.alloc(0); - let c; - if (i === void 0) - for (i = 0, c = 0; c < r.length; ++c) - i += r[c].length; - const p = l.allocUnsafe(i); + return a.alloc(0); + let l; + if (n === void 0) + for (n = 0, l = 0; l < r.length; ++l) + n += r[l].length; + const p = a.allocUnsafe(n); let m = 0; - for (c = 0; c < r.length; ++c) { - let y = r[c]; - if (ye(y, Uint8Array)) - m + y.length > p.length ? (l.isBuffer(y) || (y = l.from(y)), y.copy(p, m)) : Uint8Array.prototype.set.call( + for (l = 0; l < r.length; ++l) { + let g = r[l]; + if (ye(g, Uint8Array)) + m + g.length > p.length ? (a.isBuffer(g) || (g = a.from(g)), g.copy(p, m)) : Uint8Array.prototype.set.call( p, - y, + g, m ); - else if (l.isBuffer(y)) - y.copy(p, m); + else if (a.isBuffer(g)) + g.copy(p, m); else throw new TypeError('"list" argument must be an Array of Buffers'); - m += y.length; + m += g.length; } return p; }; - function le(s, r) { - if (l.isBuffer(s)) + function ae(s, r) { + if (a.isBuffer(s)) return s.length; if (ArrayBuffer.isView(s) || ye(s, ArrayBuffer)) return s.byteLength; @@ -298,8 +298,8 @@ zr.write = function(e, t, n, o, a, u) { throw new TypeError( 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof s ); - const i = s.length, c = arguments.length > 2 && arguments[2] === !0; - if (!c && i === 0) + const n = s.length, l = arguments.length > 2 && arguments[2] === !0; + if (!l && n === 0) return 0; let p = !1; for (; ; ) @@ -307,571 +307,571 @@ zr.write = function(e, t, n, o, a, u) { case "ascii": case "latin1": case "binary": - return i; + return n; case "utf8": case "utf-8": - return lt(s).length; + return ct(s).length; case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": - return i * 2; + return n * 2; case "hex": - return i >>> 1; + return n >>> 1; case "base64": return zt(s).length; default: if (p) - return c ? -1 : lt(s).length; + return l ? -1 : ct(s).length; r = ("" + r).toLowerCase(), p = !0; } } - l.byteLength = le; - function we(s, r, i) { - let c = !1; - if ((r === void 0 || r < 0) && (r = 0), r > this.length || ((i === void 0 || i > this.length) && (i = this.length), i <= 0) || (i >>>= 0, r >>>= 0, i <= r)) + a.byteLength = ae; + function me(s, r, n) { + let l = !1; + if ((r === void 0 || r < 0) && (r = 0), r > this.length || ((n === void 0 || n > this.length) && (n = this.length), n <= 0) || (n >>>= 0, r >>>= 0, n <= r)) return ""; for (s || (s = "utf8"); ; ) switch (s) { case "hex": - return H(this, r, i); + return q(this, r, n); case "utf8": case "utf-8": - return C(this, r, i); + return C(this, r, n); case "ascii": - return D(this, r, i); + return U(this, r, n); case "latin1": case "binary": - return W(this, r, i); + return V(this, r, n); case "base64": - return k(this, r, i); + return _(this, r, n); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": - return re(this, r, i); + return te(this, r, n); default: - if (c) + if (l) throw new TypeError("Unknown encoding: " + s); - s = (s + "").toLowerCase(), c = !0; + s = (s + "").toLowerCase(), l = !0; } } - l.prototype._isBuffer = !0; - function A(s, r, i) { - const c = s[r]; - s[r] = s[i], s[i] = c; + a.prototype._isBuffer = !0; + function k(s, r, n) { + const l = s[r]; + s[r] = s[n], s[n] = l; } - l.prototype.swap16 = function() { + a.prototype.swap16 = function() { const r = this.length; if (r % 2 !== 0) throw new RangeError("Buffer size must be a multiple of 16-bits"); - for (let i = 0; i < r; i += 2) - A(this, i, i + 1); + for (let n = 0; n < r; n += 2) + k(this, n, n + 1); return this; - }, l.prototype.swap32 = function() { + }, a.prototype.swap32 = function() { const r = this.length; if (r % 4 !== 0) throw new RangeError("Buffer size must be a multiple of 32-bits"); - for (let i = 0; i < r; i += 4) - A(this, i, i + 3), A(this, i + 1, i + 2); + for (let n = 0; n < r; n += 4) + k(this, n, n + 3), k(this, n + 1, n + 2); return this; - }, l.prototype.swap64 = function() { + }, a.prototype.swap64 = function() { const r = this.length; if (r % 8 !== 0) throw new RangeError("Buffer size must be a multiple of 64-bits"); - for (let i = 0; i < r; i += 8) - A(this, i, i + 7), A(this, i + 1, i + 6), A(this, i + 2, i + 5), A(this, i + 3, i + 4); + for (let n = 0; n < r; n += 8) + k(this, n, n + 7), k(this, n + 1, n + 6), k(this, n + 2, n + 5), k(this, n + 3, n + 4); return this; - }, l.prototype.toString = function() { + }, a.prototype.toString = function() { const r = this.length; - return r === 0 ? "" : arguments.length === 0 ? C(this, 0, r) : we.apply(this, arguments); - }, l.prototype.toLocaleString = l.prototype.toString, l.prototype.equals = function(r) { - if (!l.isBuffer(r)) + return r === 0 ? "" : arguments.length === 0 ? C(this, 0, r) : me.apply(this, arguments); + }, a.prototype.toLocaleString = a.prototype.toString, a.prototype.equals = function(r) { + if (!a.isBuffer(r)) throw new TypeError("Argument must be a Buffer"); - return this === r ? !0 : l.compare(this, r) === 0; - }, l.prototype.inspect = function() { + return this === r ? !0 : a.compare(this, r) === 0; + }, a.prototype.inspect = function() { let r = ""; - const i = e.INSPECT_MAX_BYTES; - return r = this.toString("hex", 0, i).replace(/(.{2})/g, "$1 ").trim(), this.length > i && (r += " ... "), ""; - }, o && (l.prototype[o] = l.prototype.inspect), l.prototype.compare = function(r, i, c, p, m) { - if (ye(r, Uint8Array) && (r = l.from(r, r.offset, r.byteLength)), !l.isBuffer(r)) + const n = e.INSPECT_MAX_BYTES; + return r = this.toString("hex", 0, n).replace(/(.{2})/g, "$1 ").trim(), this.length > n && (r += " ... "), ""; + }, o && (a.prototype[o] = a.prototype.inspect), a.prototype.compare = function(r, n, l, p, m) { + if (ye(r, Uint8Array) && (r = a.from(r, r.offset, r.byteLength)), !a.isBuffer(r)) throw new TypeError( 'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof r ); - if (i === void 0 && (i = 0), c === void 0 && (c = r ? r.length : 0), p === void 0 && (p = 0), m === void 0 && (m = this.length), i < 0 || c > r.length || p < 0 || m > this.length) + if (n === void 0 && (n = 0), l === void 0 && (l = r ? r.length : 0), p === void 0 && (p = 0), m === void 0 && (m = this.length), n < 0 || l > r.length || p < 0 || m > this.length) throw new RangeError("out of range index"); - if (p >= m && i >= c) + if (p >= m && n >= l) return 0; if (p >= m) return -1; - if (i >= c) + if (n >= l) return 1; - if (i >>>= 0, c >>>= 0, p >>>= 0, m >>>= 0, this === r) + if (n >>>= 0, l >>>= 0, p >>>= 0, m >>>= 0, this === r) return 0; - let y = m - p, F = c - i; - const ee = Math.min(y, F), K = this.slice(p, m), te = r.slice(i, c); - for (let Y = 0; Y < ee; ++Y) - if (K[Y] !== te[Y]) { - y = K[Y], F = te[Y]; + let g = m - p, B = l - n; + const Q = Math.min(g, B), X = this.slice(p, m), ee = r.slice(n, l); + for (let H = 0; H < Q; ++H) + if (X[H] !== ee[H]) { + g = X[H], B = ee[H]; break; } - return y < F ? -1 : F < y ? 1 : 0; + return g < B ? -1 : B < g ? 1 : 0; }; - function he(s, r, i, c, p) { + function pe(s, r, n, l, p) { if (s.length === 0) return -1; - if (typeof i == "string" ? (c = i, i = 0) : i > 2147483647 ? i = 2147483647 : i < -2147483648 && (i = -2147483648), i = +i, St(i) && (i = p ? 0 : s.length - 1), i < 0 && (i = s.length + i), i >= s.length) { + if (typeof n == "string" ? (l = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, Ct(n) && (n = p ? 0 : s.length - 1), n < 0 && (n = s.length + n), n >= s.length) { if (p) return -1; - i = s.length - 1; - } else if (i < 0) + n = s.length - 1; + } else if (n < 0) if (p) - i = 0; + n = 0; else return -1; - if (typeof r == "string" && (r = l.from(r, c)), l.isBuffer(r)) - return r.length === 0 ? -1 : ge(s, r, i, c, p); + if (typeof r == "string" && (r = a.from(r, l)), a.isBuffer(r)) + return r.length === 0 ? -1 : we(s, r, n, l, p); if (typeof r == "number") - return r = r & 255, typeof Uint8Array.prototype.indexOf == "function" ? p ? Uint8Array.prototype.indexOf.call(s, r, i) : Uint8Array.prototype.lastIndexOf.call(s, r, i) : ge(s, [r], i, c, p); + return r = r & 255, typeof Uint8Array.prototype.indexOf == "function" ? p ? Uint8Array.prototype.indexOf.call(s, r, n) : Uint8Array.prototype.lastIndexOf.call(s, r, n) : we(s, [r], n, l, p); throw new TypeError("val must be string, number or Buffer"); } - function ge(s, r, i, c, p) { - let m = 1, y = s.length, F = r.length; - if (c !== void 0 && (c = String(c).toLowerCase(), c === "ucs2" || c === "ucs-2" || c === "utf16le" || c === "utf-16le")) { + function we(s, r, n, l, p) { + let m = 1, g = s.length, B = r.length; + if (l !== void 0 && (l = String(l).toLowerCase(), l === "ucs2" || l === "ucs-2" || l === "utf16le" || l === "utf-16le")) { if (s.length < 2 || r.length < 2) return -1; - m = 2, y /= 2, F /= 2, i /= 2; + m = 2, g /= 2, B /= 2, n /= 2; } - function ee(te, Y) { - return m === 1 ? te[Y] : te.readUInt16BE(Y * m); + function Q(ee, H) { + return m === 1 ? ee[H] : ee.readUInt16BE(H * m); } - let K; + let X; if (p) { - let te = -1; - for (K = i; K < y; K++) - if (ee(s, K) === ee(r, te === -1 ? 0 : K - te)) { - if (te === -1 && (te = K), K - te + 1 === F) - return te * m; + let ee = -1; + for (X = n; X < g; X++) + if (Q(s, X) === Q(r, ee === -1 ? 0 : X - ee)) { + if (ee === -1 && (ee = X), X - ee + 1 === B) + return ee * m; } else - te !== -1 && (K -= K - te), te = -1; + ee !== -1 && (X -= X - ee), ee = -1; } else - for (i + F > y && (i = y - F), K = i; K >= 0; K--) { - let te = !0; - for (let Y = 0; Y < F; Y++) - if (ee(s, K + Y) !== ee(r, Y)) { - te = !1; + for (n + B > g && (n = g - B), X = n; X >= 0; X--) { + let ee = !0; + for (let H = 0; H < B; H++) + if (Q(s, X + H) !== Q(r, H)) { + ee = !1; break; } - if (te) - return K; + if (ee) + return X; } return -1; } - l.prototype.includes = function(r, i, c) { - return this.indexOf(r, i, c) !== -1; - }, l.prototype.indexOf = function(r, i, c) { - return he(this, r, i, c, !0); - }, l.prototype.lastIndexOf = function(r, i, c) { - return he(this, r, i, c, !1); + a.prototype.includes = function(r, n, l) { + return this.indexOf(r, n, l) !== -1; + }, a.prototype.indexOf = function(r, n, l) { + return pe(this, r, n, l, !0); + }, a.prototype.lastIndexOf = function(r, n, l) { + return pe(this, r, n, l, !1); }; - function _e(s, r, i, c) { - i = Number(i) || 0; - const p = s.length - i; - c ? (c = Number(c), c > p && (c = p)) : c = p; + function _e(s, r, n, l) { + n = Number(n) || 0; + const p = s.length - n; + l ? (l = Number(l), l > p && (l = p)) : l = p; const m = r.length; - c > m / 2 && (c = m / 2); - let y; - for (y = 0; y < c; ++y) { - const F = parseInt(r.substr(y * 2, 2), 16); - if (St(F)) - return y; - s[i + y] = F; + l > m / 2 && (l = m / 2); + let g; + for (g = 0; g < l; ++g) { + const B = parseInt(r.substr(g * 2, 2), 16); + if (Ct(B)) + return g; + s[n + g] = B; } - return y; + return g; } - function xe(s, r, i, c) { - return ut(lt(r, s.length - i), s, i, c); + function be(s, r, n, l) { + return ut(ct(r, s.length - n), s, n, l); } - function je(s, r, i, c) { - return ut(Dt(r), s, i, c); + function je(s, r, n, l) { + return ut(Dt(r), s, n, l); } - function pe(s, r, i, c) { - return ut(zt(r), s, i, c); + function de(s, r, n, l) { + return ut(zt(r), s, n, l); } - function T(s, r, i, c) { - return ut(ct(r, s.length - i), s, i, c); + function T(s, r, n, l) { + return ut(lt(r, s.length - n), s, n, l); } - l.prototype.write = function(r, i, c, p) { - if (i === void 0) - p = "utf8", c = this.length, i = 0; - else if (c === void 0 && typeof i == "string") - p = i, c = this.length, i = 0; - else if (isFinite(i)) - i = i >>> 0, isFinite(c) ? (c = c >>> 0, p === void 0 && (p = "utf8")) : (p = c, c = void 0); + a.prototype.write = function(r, n, l, p) { + if (n === void 0) + p = "utf8", l = this.length, n = 0; + else if (l === void 0 && typeof n == "string") + p = n, l = this.length, n = 0; + else if (isFinite(n)) + n = n >>> 0, isFinite(l) ? (l = l >>> 0, p === void 0 && (p = "utf8")) : (p = l, l = void 0); else throw new Error( "Buffer.write(string, encoding, offset[, length]) is no longer supported" ); - const m = this.length - i; - if ((c === void 0 || c > m) && (c = m), r.length > 0 && (c < 0 || i < 0) || i > this.length) + const m = this.length - n; + if ((l === void 0 || l > m) && (l = m), r.length > 0 && (l < 0 || n < 0) || n > this.length) throw new RangeError("Attempt to write outside buffer bounds"); p || (p = "utf8"); - let y = !1; + let g = !1; for (; ; ) switch (p) { case "hex": - return _e(this, r, i, c); + return _e(this, r, n, l); case "utf8": case "utf-8": - return xe(this, r, i, c); + return be(this, r, n, l); case "ascii": case "latin1": case "binary": - return je(this, r, i, c); + return je(this, r, n, l); case "base64": - return pe(this, r, i, c); + return de(this, r, n, l); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": - return T(this, r, i, c); + return T(this, r, n, l); default: - if (y) + if (g) throw new TypeError("Unknown encoding: " + p); - p = ("" + p).toLowerCase(), y = !0; + p = ("" + p).toLowerCase(), g = !0; } - }, l.prototype.toJSON = function() { + }, a.prototype.toJSON = function() { return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) }; }; - function k(s, r, i) { - return r === 0 && i === s.length ? t.fromByteArray(s) : t.fromByteArray(s.slice(r, i)); + function _(s, r, n) { + return r === 0 && n === s.length ? t.fromByteArray(s) : t.fromByteArray(s.slice(r, n)); } - function C(s, r, i) { - i = Math.min(s.length, i); - const c = []; + function C(s, r, n) { + n = Math.min(s.length, n); + const l = []; let p = r; - for (; p < i; ) { + for (; p < n; ) { const m = s[p]; - let y = null, F = m > 239 ? 4 : m > 223 ? 3 : m > 191 ? 2 : 1; - if (p + F <= i) { - let ee, K, te, Y; - switch (F) { + let g = null, B = m > 239 ? 4 : m > 223 ? 3 : m > 191 ? 2 : 1; + if (p + B <= n) { + let Q, X, ee, H; + switch (B) { case 1: - m < 128 && (y = m); + m < 128 && (g = m); break; case 2: - ee = s[p + 1], (ee & 192) === 128 && (Y = (m & 31) << 6 | ee & 63, Y > 127 && (y = Y)); + Q = s[p + 1], (Q & 192) === 128 && (H = (m & 31) << 6 | Q & 63, H > 127 && (g = H)); break; case 3: - ee = s[p + 1], K = s[p + 2], (ee & 192) === 128 && (K & 192) === 128 && (Y = (m & 15) << 12 | (ee & 63) << 6 | K & 63, Y > 2047 && (Y < 55296 || Y > 57343) && (y = Y)); + Q = s[p + 1], X = s[p + 2], (Q & 192) === 128 && (X & 192) === 128 && (H = (m & 15) << 12 | (Q & 63) << 6 | X & 63, H > 2047 && (H < 55296 || H > 57343) && (g = H)); break; case 4: - ee = s[p + 1], K = s[p + 2], te = s[p + 3], (ee & 192) === 128 && (K & 192) === 128 && (te & 192) === 128 && (Y = (m & 15) << 18 | (ee & 63) << 12 | (K & 63) << 6 | te & 63, Y > 65535 && Y < 1114112 && (y = Y)); + Q = s[p + 1], X = s[p + 2], ee = s[p + 3], (Q & 192) === 128 && (X & 192) === 128 && (ee & 192) === 128 && (H = (m & 15) << 18 | (Q & 63) << 12 | (X & 63) << 6 | ee & 63, H > 65535 && H < 1114112 && (g = H)); } } - y === null ? (y = 65533, F = 1) : y > 65535 && (y -= 65536, c.push(y >>> 10 & 1023 | 55296), y = 56320 | y & 1023), c.push(y), p += F; + g === null ? (g = 65533, B = 1) : g > 65535 && (g -= 65536, l.push(g >>> 10 & 1023 | 55296), g = 56320 | g & 1023), l.push(g), p += B; } - return L(c); + return F(l); } - const O = 4096; - function L(s) { + const A = 4096; + function F(s) { const r = s.length; - if (r <= O) + if (r <= A) return String.fromCharCode.apply(String, s); - let i = "", c = 0; - for (; c < r; ) - i += String.fromCharCode.apply( + let n = "", l = 0; + for (; l < r; ) + n += String.fromCharCode.apply( String, - s.slice(c, c += O) + s.slice(l, l += A) ); - return i; + return n; } - function D(s, r, i) { - let c = ""; - i = Math.min(s.length, i); - for (let p = r; p < i; ++p) - c += String.fromCharCode(s[p] & 127); - return c; + function U(s, r, n) { + let l = ""; + n = Math.min(s.length, n); + for (let p = r; p < n; ++p) + l += String.fromCharCode(s[p] & 127); + return l; } - function W(s, r, i) { - let c = ""; - i = Math.min(s.length, i); - for (let p = r; p < i; ++p) - c += String.fromCharCode(s[p]); - return c; + function V(s, r, n) { + let l = ""; + n = Math.min(s.length, n); + for (let p = r; p < n; ++p) + l += String.fromCharCode(s[p]); + return l; } - function H(s, r, i) { - const c = s.length; - (!r || r < 0) && (r = 0), (!i || i < 0 || i > c) && (i = c); + function q(s, r, n) { + const l = s.length; + (!r || r < 0) && (r = 0), (!n || n < 0 || n > l) && (n = l); let p = ""; - for (let m = r; m < i; ++m) + for (let m = r; m < n; ++m) p += fr[s[m]]; return p; } - function re(s, r, i) { - const c = s.slice(r, i); + function te(s, r, n) { + const l = s.slice(r, n); let p = ""; - for (let m = 0; m < c.length - 1; m += 2) - p += String.fromCharCode(c[m] + c[m + 1] * 256); + for (let m = 0; m < l.length - 1; m += 2) + p += String.fromCharCode(l[m] + l[m + 1] * 256); return p; } - l.prototype.slice = function(r, i) { - const c = this.length; - r = ~~r, i = i === void 0 ? c : ~~i, r < 0 ? (r += c, r < 0 && (r = 0)) : r > c && (r = c), i < 0 ? (i += c, i < 0 && (i = 0)) : i > c && (i = c), i < r && (i = r); - const p = this.subarray(r, i); - return Object.setPrototypeOf(p, l.prototype), p; + a.prototype.slice = function(r, n) { + const l = this.length; + r = ~~r, n = n === void 0 ? l : ~~n, r < 0 ? (r += l, r < 0 && (r = 0)) : r > l && (r = l), n < 0 ? (n += l, n < 0 && (n = 0)) : n > l && (n = l), n < r && (n = r); + const p = this.subarray(r, n); + return Object.setPrototypeOf(p, a.prototype), p; }; - function V(s, r, i) { + function z(s, r, n) { if (s % 1 !== 0 || s < 0) throw new RangeError("offset is not uint"); - if (s + r > i) + if (s + r > n) throw new RangeError("Trying to access beyond buffer length"); } - l.prototype.readUintLE = l.prototype.readUIntLE = function(r, i, c) { - r = r >>> 0, i = i >>> 0, c || V(r, i, this.length); - let p = this[r], m = 1, y = 0; - for (; ++y < i && (m *= 256); ) - p += this[r + y] * m; + a.prototype.readUintLE = a.prototype.readUIntLE = function(r, n, l) { + r = r >>> 0, n = n >>> 0, l || z(r, n, this.length); + let p = this[r], m = 1, g = 0; + for (; ++g < n && (m *= 256); ) + p += this[r + g] * m; return p; - }, l.prototype.readUintBE = l.prototype.readUIntBE = function(r, i, c) { - r = r >>> 0, i = i >>> 0, c || V(r, i, this.length); - let p = this[r + --i], m = 1; - for (; i > 0 && (m *= 256); ) - p += this[r + --i] * m; + }, a.prototype.readUintBE = a.prototype.readUIntBE = function(r, n, l) { + r = r >>> 0, n = n >>> 0, l || z(r, n, this.length); + let p = this[r + --n], m = 1; + for (; n > 0 && (m *= 256); ) + p += this[r + --n] * m; return p; - }, l.prototype.readUint8 = l.prototype.readUInt8 = function(r, i) { - return r = r >>> 0, i || V(r, 1, this.length), this[r]; - }, l.prototype.readUint16LE = l.prototype.readUInt16LE = function(r, i) { - return r = r >>> 0, i || V(r, 2, this.length), this[r] | this[r + 1] << 8; - }, l.prototype.readUint16BE = l.prototype.readUInt16BE = function(r, i) { - return r = r >>> 0, i || V(r, 2, this.length), this[r] << 8 | this[r + 1]; - }, l.prototype.readUint32LE = l.prototype.readUInt32LE = function(r, i) { - return r = r >>> 0, i || V(r, 4, this.length), (this[r] | this[r + 1] << 8 | this[r + 2] << 16) + this[r + 3] * 16777216; - }, l.prototype.readUint32BE = l.prototype.readUInt32BE = function(r, i) { - return r = r >>> 0, i || V(r, 4, this.length), this[r] * 16777216 + (this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3]); - }, l.prototype.readBigUInt64LE = Be(function(r) { - r = r >>> 0, qe(r, "offset"); - const i = this[r], c = this[r + 7]; - (i === void 0 || c === void 0) && Ze(r, this.length - 8); - const p = i + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + this[++r] * 2 ** 24, m = this[++r] + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + c * 2 ** 24; + }, a.prototype.readUint8 = a.prototype.readUInt8 = function(r, n) { + return r = r >>> 0, n || z(r, 1, this.length), this[r]; + }, a.prototype.readUint16LE = a.prototype.readUInt16LE = function(r, n) { + return r = r >>> 0, n || z(r, 2, this.length), this[r] | this[r + 1] << 8; + }, a.prototype.readUint16BE = a.prototype.readUInt16BE = function(r, n) { + return r = r >>> 0, n || z(r, 2, this.length), this[r] << 8 | this[r + 1]; + }, a.prototype.readUint32LE = a.prototype.readUInt32LE = function(r, n) { + return r = r >>> 0, n || z(r, 4, this.length), (this[r] | this[r + 1] << 8 | this[r + 2] << 16) + this[r + 3] * 16777216; + }, a.prototype.readUint32BE = a.prototype.readUInt32BE = function(r, n) { + return r = r >>> 0, n || z(r, 4, this.length), this[r] * 16777216 + (this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3]); + }, a.prototype.readBigUInt64LE = ke(function(r) { + r = r >>> 0, Ge(r, "offset"); + const n = this[r], l = this[r + 7]; + (n === void 0 || l === void 0) && Ke(r, this.length - 8); + const p = n + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + this[++r] * 2 ** 24, m = this[++r] + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + l * 2 ** 24; return BigInt(p) + (BigInt(m) << BigInt(32)); - }), l.prototype.readBigUInt64BE = Be(function(r) { - r = r >>> 0, qe(r, "offset"); - const i = this[r], c = this[r + 7]; - (i === void 0 || c === void 0) && Ze(r, this.length - 8); - const p = i * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + this[++r], m = this[++r] * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + c; + }), a.prototype.readBigUInt64BE = ke(function(r) { + r = r >>> 0, Ge(r, "offset"); + const n = this[r], l = this[r + 7]; + (n === void 0 || l === void 0) && Ke(r, this.length - 8); + const p = n * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + this[++r], m = this[++r] * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + l; return (BigInt(p) << BigInt(32)) + BigInt(m); - }), l.prototype.readIntLE = function(r, i, c) { - r = r >>> 0, i = i >>> 0, c || V(r, i, this.length); - let p = this[r], m = 1, y = 0; - for (; ++y < i && (m *= 256); ) - p += this[r + y] * m; - return m *= 128, p >= m && (p -= Math.pow(2, 8 * i)), p; - }, l.prototype.readIntBE = function(r, i, c) { - r = r >>> 0, i = i >>> 0, c || V(r, i, this.length); - let p = i, m = 1, y = this[r + --p]; + }), a.prototype.readIntLE = function(r, n, l) { + r = r >>> 0, n = n >>> 0, l || z(r, n, this.length); + let p = this[r], m = 1, g = 0; + for (; ++g < n && (m *= 256); ) + p += this[r + g] * m; + return m *= 128, p >= m && (p -= Math.pow(2, 8 * n)), p; + }, a.prototype.readIntBE = function(r, n, l) { + r = r >>> 0, n = n >>> 0, l || z(r, n, this.length); + let p = n, m = 1, g = this[r + --p]; for (; p > 0 && (m *= 256); ) - y += this[r + --p] * m; - return m *= 128, y >= m && (y -= Math.pow(2, 8 * i)), y; - }, l.prototype.readInt8 = function(r, i) { - return r = r >>> 0, i || V(r, 1, this.length), this[r] & 128 ? (255 - this[r] + 1) * -1 : this[r]; - }, l.prototype.readInt16LE = function(r, i) { - r = r >>> 0, i || V(r, 2, this.length); - const c = this[r] | this[r + 1] << 8; - return c & 32768 ? c | 4294901760 : c; - }, l.prototype.readInt16BE = function(r, i) { - r = r >>> 0, i || V(r, 2, this.length); - const c = this[r + 1] | this[r] << 8; - return c & 32768 ? c | 4294901760 : c; - }, l.prototype.readInt32LE = function(r, i) { - return r = r >>> 0, i || V(r, 4, this.length), this[r] | this[r + 1] << 8 | this[r + 2] << 16 | this[r + 3] << 24; - }, l.prototype.readInt32BE = function(r, i) { - return r = r >>> 0, i || V(r, 4, this.length), this[r] << 24 | this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3]; - }, l.prototype.readBigInt64LE = Be(function(r) { - r = r >>> 0, qe(r, "offset"); - const i = this[r], c = this[r + 7]; - (i === void 0 || c === void 0) && Ze(r, this.length - 8); - const p = this[r + 4] + this[r + 5] * 2 ** 8 + this[r + 6] * 2 ** 16 + (c << 24); - return (BigInt(p) << BigInt(32)) + BigInt(i + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + this[++r] * 2 ** 24); - }), l.prototype.readBigInt64BE = Be(function(r) { - r = r >>> 0, qe(r, "offset"); - const i = this[r], c = this[r + 7]; - (i === void 0 || c === void 0) && Ze(r, this.length - 8); - const p = (i << 24) + // Overflow + g += this[r + --p] * m; + return m *= 128, g >= m && (g -= Math.pow(2, 8 * n)), g; + }, a.prototype.readInt8 = function(r, n) { + return r = r >>> 0, n || z(r, 1, this.length), this[r] & 128 ? (255 - this[r] + 1) * -1 : this[r]; + }, a.prototype.readInt16LE = function(r, n) { + r = r >>> 0, n || z(r, 2, this.length); + const l = this[r] | this[r + 1] << 8; + return l & 32768 ? l | 4294901760 : l; + }, a.prototype.readInt16BE = function(r, n) { + r = r >>> 0, n || z(r, 2, this.length); + const l = this[r + 1] | this[r] << 8; + return l & 32768 ? l | 4294901760 : l; + }, a.prototype.readInt32LE = function(r, n) { + return r = r >>> 0, n || z(r, 4, this.length), this[r] | this[r + 1] << 8 | this[r + 2] << 16 | this[r + 3] << 24; + }, a.prototype.readInt32BE = function(r, n) { + return r = r >>> 0, n || z(r, 4, this.length), this[r] << 24 | this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3]; + }, a.prototype.readBigInt64LE = ke(function(r) { + r = r >>> 0, Ge(r, "offset"); + const n = this[r], l = this[r + 7]; + (n === void 0 || l === void 0) && Ke(r, this.length - 8); + const p = this[r + 4] + this[r + 5] * 2 ** 8 + this[r + 6] * 2 ** 16 + (l << 24); + return (BigInt(p) << BigInt(32)) + BigInt(n + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + this[++r] * 2 ** 24); + }), a.prototype.readBigInt64BE = ke(function(r) { + r = r >>> 0, Ge(r, "offset"); + const n = this[r], l = this[r + 7]; + (n === void 0 || l === void 0) && Ke(r, this.length - 8); + const p = (n << 24) + // Overflow this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + this[++r]; - return (BigInt(p) << BigInt(32)) + BigInt(this[++r] * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + c); - }), l.prototype.readFloatLE = function(r, i) { - return r = r >>> 0, i || V(r, 4, this.length), n.read(this, r, !0, 23, 4); - }, l.prototype.readFloatBE = function(r, i) { - return r = r >>> 0, i || V(r, 4, this.length), n.read(this, r, !1, 23, 4); - }, l.prototype.readDoubleLE = function(r, i) { - return r = r >>> 0, i || V(r, 8, this.length), n.read(this, r, !0, 52, 8); - }, l.prototype.readDoubleBE = function(r, i) { - return r = r >>> 0, i || V(r, 8, this.length), n.read(this, r, !1, 52, 8); + return (BigInt(p) << BigInt(32)) + BigInt(this[++r] * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + l); + }), a.prototype.readFloatLE = function(r, n) { + return r = r >>> 0, n || z(r, 4, this.length), i.read(this, r, !0, 23, 4); + }, a.prototype.readFloatBE = function(r, n) { + return r = r >>> 0, n || z(r, 4, this.length), i.read(this, r, !1, 23, 4); + }, a.prototype.readDoubleLE = function(r, n) { + return r = r >>> 0, n || z(r, 8, this.length), i.read(this, r, !0, 52, 8); + }, a.prototype.readDoubleBE = function(r, n) { + return r = r >>> 0, n || z(r, 8, this.length), i.read(this, r, !1, 52, 8); }; - function G(s, r, i, c, p, m) { - if (!l.isBuffer(s)) + function W(s, r, n, l, p, m) { + if (!a.isBuffer(s)) throw new TypeError('"buffer" argument must be a Buffer instance'); if (r > p || r < m) throw new RangeError('"value" argument is out of bounds'); - if (i + c > s.length) + if (n + l > s.length) throw new RangeError("Index out of range"); } - l.prototype.writeUintLE = l.prototype.writeUIntLE = function(r, i, c, p) { - if (r = +r, i = i >>> 0, c = c >>> 0, !p) { - const F = Math.pow(2, 8 * c) - 1; - G(this, r, i, c, F, 0); + a.prototype.writeUintLE = a.prototype.writeUIntLE = function(r, n, l, p) { + if (r = +r, n = n >>> 0, l = l >>> 0, !p) { + const B = Math.pow(2, 8 * l) - 1; + W(this, r, n, l, B, 0); } - let m = 1, y = 0; - for (this[i] = r & 255; ++y < c && (m *= 256); ) - this[i + y] = r / m & 255; - return i + c; - }, l.prototype.writeUintBE = l.prototype.writeUIntBE = function(r, i, c, p) { - if (r = +r, i = i >>> 0, c = c >>> 0, !p) { - const F = Math.pow(2, 8 * c) - 1; - G(this, r, i, c, F, 0); + let m = 1, g = 0; + for (this[n] = r & 255; ++g < l && (m *= 256); ) + this[n + g] = r / m & 255; + return n + l; + }, a.prototype.writeUintBE = a.prototype.writeUIntBE = function(r, n, l, p) { + if (r = +r, n = n >>> 0, l = l >>> 0, !p) { + const B = Math.pow(2, 8 * l) - 1; + W(this, r, n, l, B, 0); } - let m = c - 1, y = 1; - for (this[i + m] = r & 255; --m >= 0 && (y *= 256); ) - this[i + m] = r / y & 255; - return i + c; - }, l.prototype.writeUint8 = l.prototype.writeUInt8 = function(r, i, c) { - return r = +r, i = i >>> 0, c || G(this, r, i, 1, 255, 0), this[i] = r & 255, i + 1; - }, l.prototype.writeUint16LE = l.prototype.writeUInt16LE = function(r, i, c) { - return r = +r, i = i >>> 0, c || G(this, r, i, 2, 65535, 0), this[i] = r & 255, this[i + 1] = r >>> 8, i + 2; - }, l.prototype.writeUint16BE = l.prototype.writeUInt16BE = function(r, i, c) { - return r = +r, i = i >>> 0, c || G(this, r, i, 2, 65535, 0), this[i] = r >>> 8, this[i + 1] = r & 255, i + 2; - }, l.prototype.writeUint32LE = l.prototype.writeUInt32LE = function(r, i, c) { - return r = +r, i = i >>> 0, c || G(this, r, i, 4, 4294967295, 0), this[i + 3] = r >>> 24, this[i + 2] = r >>> 16, this[i + 1] = r >>> 8, this[i] = r & 255, i + 4; - }, l.prototype.writeUint32BE = l.prototype.writeUInt32BE = function(r, i, c) { - return r = +r, i = i >>> 0, c || G(this, r, i, 4, 4294967295, 0), this[i] = r >>> 24, this[i + 1] = r >>> 16, this[i + 2] = r >>> 8, this[i + 3] = r & 255, i + 4; + let m = l - 1, g = 1; + for (this[n + m] = r & 255; --m >= 0 && (g *= 256); ) + this[n + m] = r / g & 255; + return n + l; + }, a.prototype.writeUint8 = a.prototype.writeUInt8 = function(r, n, l) { + return r = +r, n = n >>> 0, l || W(this, r, n, 1, 255, 0), this[n] = r & 255, n + 1; + }, a.prototype.writeUint16LE = a.prototype.writeUInt16LE = function(r, n, l) { + return r = +r, n = n >>> 0, l || W(this, r, n, 2, 65535, 0), this[n] = r & 255, this[n + 1] = r >>> 8, n + 2; + }, a.prototype.writeUint16BE = a.prototype.writeUInt16BE = function(r, n, l) { + return r = +r, n = n >>> 0, l || W(this, r, n, 2, 65535, 0), this[n] = r >>> 8, this[n + 1] = r & 255, n + 2; + }, a.prototype.writeUint32LE = a.prototype.writeUInt32LE = function(r, n, l) { + return r = +r, n = n >>> 0, l || W(this, r, n, 4, 4294967295, 0), this[n + 3] = r >>> 24, this[n + 2] = r >>> 16, this[n + 1] = r >>> 8, this[n] = r & 255, n + 4; + }, a.prototype.writeUint32BE = a.prototype.writeUInt32BE = function(r, n, l) { + return r = +r, n = n >>> 0, l || W(this, r, n, 4, 4294967295, 0), this[n] = r >>> 24, this[n + 1] = r >>> 16, this[n + 2] = r >>> 8, this[n + 3] = r & 255, n + 4; }; - function ne(s, r, i, c, p) { - Tt(r, c, p, s, i, 7); + function re(s, r, n, l, p) { + Tt(r, l, p, s, n, 7); let m = Number(r & BigInt(4294967295)); - s[i++] = m, m = m >> 8, s[i++] = m, m = m >> 8, s[i++] = m, m = m >> 8, s[i++] = m; - let y = Number(r >> BigInt(32) & BigInt(4294967295)); - return s[i++] = y, y = y >> 8, s[i++] = y, y = y >> 8, s[i++] = y, y = y >> 8, s[i++] = y, i; + s[n++] = m, m = m >> 8, s[n++] = m, m = m >> 8, s[n++] = m, m = m >> 8, s[n++] = m; + let g = Number(r >> BigInt(32) & BigInt(4294967295)); + return s[n++] = g, g = g >> 8, s[n++] = g, g = g >> 8, s[n++] = g, g = g >> 8, s[n++] = g, n; } - function We(s, r, i, c, p) { - Tt(r, c, p, s, i, 7); + function Ve(s, r, n, l, p) { + Tt(r, l, p, s, n, 7); let m = Number(r & BigInt(4294967295)); - s[i + 7] = m, m = m >> 8, s[i + 6] = m, m = m >> 8, s[i + 5] = m, m = m >> 8, s[i + 4] = m; - let y = Number(r >> BigInt(32) & BigInt(4294967295)); - return s[i + 3] = y, y = y >> 8, s[i + 2] = y, y = y >> 8, s[i + 1] = y, y = y >> 8, s[i] = y, i + 8; + s[n + 7] = m, m = m >> 8, s[n + 6] = m, m = m >> 8, s[n + 5] = m, m = m >> 8, s[n + 4] = m; + let g = Number(r >> BigInt(32) & BigInt(4294967295)); + return s[n + 3] = g, g = g >> 8, s[n + 2] = g, g = g >> 8, s[n + 1] = g, g = g >> 8, s[n] = g, n + 8; } - l.prototype.writeBigUInt64LE = Be(function(r, i = 0) { - return ne(this, r, i, BigInt(0), BigInt("0xffffffffffffffff")); - }), l.prototype.writeBigUInt64BE = Be(function(r, i = 0) { - return We(this, r, i, BigInt(0), BigInt("0xffffffffffffffff")); - }), l.prototype.writeIntLE = function(r, i, c, p) { - if (r = +r, i = i >>> 0, !p) { - const ee = Math.pow(2, 8 * c - 1); - G(this, r, i, c, ee - 1, -ee); + a.prototype.writeBigUInt64LE = ke(function(r, n = 0) { + return re(this, r, n, BigInt(0), BigInt("0xffffffffffffffff")); + }), a.prototype.writeBigUInt64BE = ke(function(r, n = 0) { + return Ve(this, r, n, BigInt(0), BigInt("0xffffffffffffffff")); + }), a.prototype.writeIntLE = function(r, n, l, p) { + if (r = +r, n = n >>> 0, !p) { + const Q = Math.pow(2, 8 * l - 1); + W(this, r, n, l, Q - 1, -Q); } - let m = 0, y = 1, F = 0; - for (this[i] = r & 255; ++m < c && (y *= 256); ) - r < 0 && F === 0 && this[i + m - 1] !== 0 && (F = 1), this[i + m] = (r / y >> 0) - F & 255; - return i + c; - }, l.prototype.writeIntBE = function(r, i, c, p) { - if (r = +r, i = i >>> 0, !p) { - const ee = Math.pow(2, 8 * c - 1); - G(this, r, i, c, ee - 1, -ee); + let m = 0, g = 1, B = 0; + for (this[n] = r & 255; ++m < l && (g *= 256); ) + r < 0 && B === 0 && this[n + m - 1] !== 0 && (B = 1), this[n + m] = (r / g >> 0) - B & 255; + return n + l; + }, a.prototype.writeIntBE = function(r, n, l, p) { + if (r = +r, n = n >>> 0, !p) { + const Q = Math.pow(2, 8 * l - 1); + W(this, r, n, l, Q - 1, -Q); } - let m = c - 1, y = 1, F = 0; - for (this[i + m] = r & 255; --m >= 0 && (y *= 256); ) - r < 0 && F === 0 && this[i + m + 1] !== 0 && (F = 1), this[i + m] = (r / y >> 0) - F & 255; - return i + c; - }, l.prototype.writeInt8 = function(r, i, c) { - return r = +r, i = i >>> 0, c || G(this, r, i, 1, 127, -128), r < 0 && (r = 255 + r + 1), this[i] = r & 255, i + 1; - }, l.prototype.writeInt16LE = function(r, i, c) { - return r = +r, i = i >>> 0, c || G(this, r, i, 2, 32767, -32768), this[i] = r & 255, this[i + 1] = r >>> 8, i + 2; - }, l.prototype.writeInt16BE = function(r, i, c) { - return r = +r, i = i >>> 0, c || G(this, r, i, 2, 32767, -32768), this[i] = r >>> 8, this[i + 1] = r & 255, i + 2; - }, l.prototype.writeInt32LE = function(r, i, c) { - return r = +r, i = i >>> 0, c || G(this, r, i, 4, 2147483647, -2147483648), this[i] = r & 255, this[i + 1] = r >>> 8, this[i + 2] = r >>> 16, this[i + 3] = r >>> 24, i + 4; - }, l.prototype.writeInt32BE = function(r, i, c) { - return r = +r, i = i >>> 0, c || G(this, r, i, 4, 2147483647, -2147483648), r < 0 && (r = 4294967295 + r + 1), this[i] = r >>> 24, this[i + 1] = r >>> 16, this[i + 2] = r >>> 8, this[i + 3] = r & 255, i + 4; - }, l.prototype.writeBigInt64LE = Be(function(r, i = 0) { - return ne(this, r, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff")); - }), l.prototype.writeBigInt64BE = Be(function(r, i = 0) { - return We(this, r, i, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff")); + let m = l - 1, g = 1, B = 0; + for (this[n + m] = r & 255; --m >= 0 && (g *= 256); ) + r < 0 && B === 0 && this[n + m + 1] !== 0 && (B = 1), this[n + m] = (r / g >> 0) - B & 255; + return n + l; + }, a.prototype.writeInt8 = function(r, n, l) { + return r = +r, n = n >>> 0, l || W(this, r, n, 1, 127, -128), r < 0 && (r = 255 + r + 1), this[n] = r & 255, n + 1; + }, a.prototype.writeInt16LE = function(r, n, l) { + return r = +r, n = n >>> 0, l || W(this, r, n, 2, 32767, -32768), this[n] = r & 255, this[n + 1] = r >>> 8, n + 2; + }, a.prototype.writeInt16BE = function(r, n, l) { + return r = +r, n = n >>> 0, l || W(this, r, n, 2, 32767, -32768), this[n] = r >>> 8, this[n + 1] = r & 255, n + 2; + }, a.prototype.writeInt32LE = function(r, n, l) { + return r = +r, n = n >>> 0, l || W(this, r, n, 4, 2147483647, -2147483648), this[n] = r & 255, this[n + 1] = r >>> 8, this[n + 2] = r >>> 16, this[n + 3] = r >>> 24, n + 4; + }, a.prototype.writeInt32BE = function(r, n, l) { + return r = +r, n = n >>> 0, l || W(this, r, n, 4, 2147483647, -2147483648), r < 0 && (r = 4294967295 + r + 1), this[n] = r >>> 24, this[n + 1] = r >>> 16, this[n + 2] = r >>> 8, this[n + 3] = r & 255, n + 4; + }, a.prototype.writeBigInt64LE = ke(function(r, n = 0) { + return re(this, r, n, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff")); + }), a.prototype.writeBigInt64BE = ke(function(r, n = 0) { + return Ve(this, r, n, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff")); }); - function Je(s, r, i, c, p, m) { - if (i + c > s.length) + function Ye(s, r, n, l, p, m) { + if (n + l > s.length) throw new RangeError("Index out of range"); - if (i < 0) + if (n < 0) throw new RangeError("Index out of range"); } - function Ge(s, r, i, c, p) { - return r = +r, i = i >>> 0, p || Je(s, r, i, 4), n.write(s, r, i, c, 23, 4), i + 4; + function We(s, r, n, l, p) { + return r = +r, n = n >>> 0, p || Ye(s, r, n, 4), i.write(s, r, n, l, 23, 4), n + 4; } - l.prototype.writeFloatLE = function(r, i, c) { - return Ge(this, r, i, !0, c); - }, l.prototype.writeFloatBE = function(r, i, c) { - return Ge(this, r, i, !1, c); + a.prototype.writeFloatLE = function(r, n, l) { + return We(this, r, n, !0, l); + }, a.prototype.writeFloatBE = function(r, n, l) { + return We(this, r, n, !1, l); }; - function ot(s, r, i, c, p) { - return r = +r, i = i >>> 0, p || Je(s, r, i, 8), n.write(s, r, i, c, 52, 8), i + 8; + function ot(s, r, n, l, p) { + return r = +r, n = n >>> 0, p || Ye(s, r, n, 8), i.write(s, r, n, l, 52, 8), n + 8; } - l.prototype.writeDoubleLE = function(r, i, c) { - return ot(this, r, i, !0, c); - }, l.prototype.writeDoubleBE = function(r, i, c) { - return ot(this, r, i, !1, c); - }, l.prototype.copy = function(r, i, c, p) { - if (!l.isBuffer(r)) + a.prototype.writeDoubleLE = function(r, n, l) { + return ot(this, r, n, !0, l); + }, a.prototype.writeDoubleBE = function(r, n, l) { + return ot(this, r, n, !1, l); + }, a.prototype.copy = function(r, n, l, p) { + if (!a.isBuffer(r)) throw new TypeError("argument should be a Buffer"); - if (c || (c = 0), !p && p !== 0 && (p = this.length), i >= r.length && (i = r.length), i || (i = 0), p > 0 && p < c && (p = c), p === c || r.length === 0 || this.length === 0) + if (l || (l = 0), !p && p !== 0 && (p = this.length), n >= r.length && (n = r.length), n || (n = 0), p > 0 && p < l && (p = l), p === l || r.length === 0 || this.length === 0) return 0; - if (i < 0) + if (n < 0) throw new RangeError("targetStart out of bounds"); - if (c < 0 || c >= this.length) + if (l < 0 || l >= this.length) throw new RangeError("Index out of range"); if (p < 0) throw new RangeError("sourceEnd out of bounds"); - p > this.length && (p = this.length), r.length - i < p - c && (p = r.length - i + c); - const m = p - c; - return this === r && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(i, c, p) : Uint8Array.prototype.set.call( + p > this.length && (p = this.length), r.length - n < p - l && (p = r.length - n + l); + const m = p - l; + return this === r && typeof Uint8Array.prototype.copyWithin == "function" ? this.copyWithin(n, l, p) : Uint8Array.prototype.set.call( r, - this.subarray(c, p), - i + this.subarray(l, p), + n ), m; - }, l.prototype.fill = function(r, i, c, p) { + }, a.prototype.fill = function(r, n, l, p) { if (typeof r == "string") { - if (typeof i == "string" ? (p = i, i = 0, c = this.length) : typeof c == "string" && (p = c, c = this.length), p !== void 0 && typeof p != "string") + if (typeof n == "string" ? (p = n, n = 0, l = this.length) : typeof l == "string" && (p = l, l = this.length), p !== void 0 && typeof p != "string") throw new TypeError("encoding must be a string"); - if (typeof p == "string" && !l.isEncoding(p)) + if (typeof p == "string" && !a.isEncoding(p)) throw new TypeError("Unknown encoding: " + p); if (r.length === 1) { - const y = r.charCodeAt(0); - (p === "utf8" && y < 128 || p === "latin1") && (r = y); + const g = r.charCodeAt(0); + (p === "utf8" && g < 128 || p === "latin1") && (r = g); } } else typeof r == "number" ? r = r & 255 : typeof r == "boolean" && (r = Number(r)); - if (i < 0 || this.length < i || this.length < c) + if (n < 0 || this.length < n || this.length < l) throw new RangeError("Out of range index"); - if (c <= i) + if (l <= n) return this; - i = i >>> 0, c = c === void 0 ? this.length : c >>> 0, r || (r = 0); + n = n >>> 0, l = l === void 0 ? this.length : l >>> 0, r || (r = 0); let m; if (typeof r == "number") - for (m = i; m < c; ++m) + for (m = n; m < l; ++m) this[m] = r; else { - const y = l.isBuffer(r) ? r : l.from(r, p), F = y.length; - if (F === 0) + const g = a.isBuffer(r) ? r : a.from(r, p), B = g.length; + if (B === 0) throw new TypeError('The value "' + r + '" is invalid for argument "value"'); - for (m = 0; m < c - i; ++m) - this[m + i] = y[m % F]; + for (m = 0; m < l - n; ++m) + this[m + n] = g[m % B]; } return this; }; const Re = {}; - function Xe(s, r, i) { - Re[s] = class extends i { + function Je(s, r, n) { + Re[s] = class extends n { constructor() { super(), Object.defineProperty(this, "message", { value: r.apply(this, arguments), @@ -895,52 +895,52 @@ zr.write = function(e, t, n, o, a, u) { } }; } - Xe( + Je( "ERR_BUFFER_OUT_OF_BOUNDS", function(s) { return s ? `${s} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds"; }, RangeError - ), Xe( + ), Je( "ERR_INVALID_ARG_TYPE", function(s, r) { return `The "${s}" argument must be of type number. Received type ${typeof r}`; }, TypeError - ), Xe( + ), Je( "ERR_OUT_OF_RANGE", - function(s, r, i) { - let c = `The value of "${s}" is out of range.`, p = i; - return Number.isInteger(i) && Math.abs(i) > 2 ** 32 ? p = Ke(String(i)) : typeof i == "bigint" && (p = String(i), (i > BigInt(2) ** BigInt(32) || i < -(BigInt(2) ** BigInt(32))) && (p = Ke(p)), p += "n"), c += ` It must be ${r}. Received ${p}`, c; + function(s, r, n) { + let l = `The value of "${s}" is out of range.`, p = n; + return Number.isInteger(n) && Math.abs(n) > 2 ** 32 ? p = Xe(String(n)) : typeof n == "bigint" && (p = String(n), (n > BigInt(2) ** BigInt(32) || n < -(BigInt(2) ** BigInt(32))) && (p = Xe(p)), p += "n"), l += ` It must be ${r}. Received ${p}`, l; }, RangeError ); - function Ke(s) { - let r = "", i = s.length; - const c = s[0] === "-" ? 1 : 0; - for (; i >= c + 4; i -= 3) - r = `_${s.slice(i - 3, i)}${r}`; - return `${s.slice(0, i)}${r}`; + function Xe(s) { + let r = "", n = s.length; + const l = s[0] === "-" ? 1 : 0; + for (; n >= l + 4; n -= 3) + r = `_${s.slice(n - 3, n)}${r}`; + return `${s.slice(0, n)}${r}`; } - function ur(s, r, i) { - qe(r, "offset"), (s[r] === void 0 || s[r + i] === void 0) && Ze(r, s.length - (i + 1)); + function ur(s, r, n) { + Ge(r, "offset"), (s[r] === void 0 || s[r + n] === void 0) && Ke(r, s.length - (n + 1)); } - function Tt(s, r, i, c, p, m) { - if (s > i || s < r) { - const y = typeof r == "bigint" ? "n" : ""; - let F; - throw m > 3 ? r === 0 || r === BigInt(0) ? F = `>= 0${y} and < 2${y} ** ${(m + 1) * 8}${y}` : F = `>= -(2${y} ** ${(m + 1) * 8 - 1}${y}) and < 2 ** ${(m + 1) * 8 - 1}${y}` : F = `>= ${r}${y} and <= ${i}${y}`, new Re.ERR_OUT_OF_RANGE("value", F, s); + function Tt(s, r, n, l, p, m) { + if (s > n || s < r) { + const g = typeof r == "bigint" ? "n" : ""; + let B; + throw m > 3 ? r === 0 || r === BigInt(0) ? B = `>= 0${g} and < 2${g} ** ${(m + 1) * 8}${g}` : B = `>= -(2${g} ** ${(m + 1) * 8 - 1}${g}) and < 2 ** ${(m + 1) * 8 - 1}${g}` : B = `>= ${r}${g} and <= ${n}${g}`, new Re.ERR_OUT_OF_RANGE("value", B, s); } - ur(c, p, m); + ur(l, p, m); } - function qe(s, r) { + function Ge(s, r) { if (typeof s != "number") throw new Re.ERR_INVALID_ARG_TYPE(r, "number", s); } - function Ze(s, r, i) { - throw Math.floor(s) !== s ? (qe(s, i), new Re.ERR_OUT_OF_RANGE(i || "offset", "an integer", s)) : r < 0 ? new Re.ERR_BUFFER_OUT_OF_BOUNDS() : new Re.ERR_OUT_OF_RANGE( - i || "offset", - `>= ${i ? 1 : 0} and <= ${r}`, + function Ke(s, r, n) { + throw Math.floor(s) !== s ? (Ge(s, n), new Re.ERR_OUT_OF_RANGE(n || "offset", "an integer", s)) : r < 0 ? new Re.ERR_BUFFER_OUT_OF_BOUNDS() : new Re.ERR_OUT_OF_RANGE( + n || "offset", + `>= ${n ? 1 : 0} and <= ${r}`, s ); } @@ -952,59 +952,59 @@ zr.write = function(e, t, n, o, a, u) { s = s + "="; return s; } - function lt(s, r) { + function ct(s, r) { r = r || 1 / 0; - let i; - const c = s.length; + let n; + const l = s.length; let p = null; const m = []; - for (let y = 0; y < c; ++y) { - if (i = s.charCodeAt(y), i > 55295 && i < 57344) { + for (let g = 0; g < l; ++g) { + if (n = s.charCodeAt(g), n > 55295 && n < 57344) { if (!p) { - if (i > 56319) { + if (n > 56319) { (r -= 3) > -1 && m.push(239, 191, 189); continue; - } else if (y + 1 === c) { + } else if (g + 1 === l) { (r -= 3) > -1 && m.push(239, 191, 189); continue; } - p = i; + p = n; continue; } - if (i < 56320) { - (r -= 3) > -1 && m.push(239, 191, 189), p = i; + if (n < 56320) { + (r -= 3) > -1 && m.push(239, 191, 189), p = n; continue; } - i = (p - 55296 << 10 | i - 56320) + 65536; + n = (p - 55296 << 10 | n - 56320) + 65536; } else p && (r -= 3) > -1 && m.push(239, 191, 189); - if (p = null, i < 128) { + if (p = null, n < 128) { if ((r -= 1) < 0) break; - m.push(i); - } else if (i < 2048) { + m.push(n); + } else if (n < 2048) { if ((r -= 2) < 0) break; m.push( - i >> 6 | 192, - i & 63 | 128 + n >> 6 | 192, + n & 63 | 128 ); - } else if (i < 65536) { + } else if (n < 65536) { if ((r -= 3) < 0) break; m.push( - i >> 12 | 224, - i >> 6 & 63 | 128, - i & 63 | 128 + n >> 12 | 224, + n >> 6 & 63 | 128, + n & 63 | 128 ); - } else if (i < 1114112) { + } else if (n < 1114112) { if ((r -= 4) < 0) break; m.push( - i >> 18 | 240, - i >> 12 & 63 | 128, - i >> 6 & 63 | 128, - i & 63 | 128 + n >> 18 | 240, + n >> 12 & 63 | 128, + n >> 6 & 63 | 128, + n & 63 | 128 ); } else throw new Error("Invalid code point"); @@ -1013,119 +1013,119 @@ zr.write = function(e, t, n, o, a, u) { } function Dt(s) { const r = []; - for (let i = 0; i < s.length; ++i) - r.push(s.charCodeAt(i) & 255); + for (let n = 0; n < s.length; ++n) + r.push(s.charCodeAt(n) & 255); return r; } - function ct(s, r) { - let i, c, p; + function lt(s, r) { + let n, l, p; const m = []; - for (let y = 0; y < s.length && !((r -= 2) < 0); ++y) - i = s.charCodeAt(y), c = i >> 8, p = i % 256, m.push(p), m.push(c); + for (let g = 0; g < s.length && !((r -= 2) < 0); ++g) + n = s.charCodeAt(g), l = n >> 8, p = n % 256, m.push(p), m.push(l); return m; } function zt(s) { return t.toByteArray(at(s)); } - function ut(s, r, i, c) { + function ut(s, r, n, l) { let p; - for (p = 0; p < c && !(p + i >= r.length || p >= s.length); ++p) - r[p + i] = s[p]; + for (p = 0; p < l && !(p + n >= r.length || p >= s.length); ++p) + r[p + n] = s[p]; return p; } function ye(s, r) { return s instanceof r || s != null && s.constructor != null && s.constructor.name != null && s.constructor.name === r.name; } - function St(s) { + function Ct(s) { return s !== s; } const fr = function() { const s = "0123456789abcdef", r = new Array(256); - for (let i = 0; i < 16; ++i) { - const c = i * 16; + for (let n = 0; n < 16; ++n) { + const l = n * 16; for (let p = 0; p < 16; ++p) - r[c + p] = s[i] + s[p]; + r[l + p] = s[n] + s[p]; } return r; }(); - function Be(s) { + function ke(s) { return typeof BigInt > "u" ? $t : s; } function $t() { throw new Error("BigInt not supported"); } })(Mn); -var Dn = { exports: {} }, ae = Dn.exports = {}, Le, Ne; +var Dn = { exports: {} }, se = Dn.exports = {}, Oe, Le; function Tr() { throw new Error("setTimeout has not been defined"); } -function Sr() { +function Cr() { throw new Error("clearTimeout has not been defined"); } (function() { try { - typeof setTimeout == "function" ? Le = setTimeout : Le = Tr; + typeof setTimeout == "function" ? Oe = setTimeout : Oe = Tr; } catch { - Le = Tr; + Oe = Tr; } try { - typeof clearTimeout == "function" ? Ne = clearTimeout : Ne = Sr; + typeof clearTimeout == "function" ? Le = clearTimeout : Le = Cr; } catch { - Ne = Sr; + Le = Cr; } })(); function zn(e) { - if (Le === setTimeout) + if (Oe === setTimeout) return setTimeout(e, 0); - if ((Le === Tr || !Le) && setTimeout) - return Le = setTimeout, setTimeout(e, 0); + if ((Oe === Tr || !Oe) && setTimeout) + return Oe = setTimeout, setTimeout(e, 0); try { - return Le(e, 0); + return Oe(e, 0); } catch { try { - return Le.call(null, e, 0); + return Oe.call(null, e, 0); } catch { - return Le.call(this, e, 0); + return Oe.call(this, e, 0); } } } function ao(e) { - if (Ne === clearTimeout) + if (Le === clearTimeout) return clearTimeout(e); - if ((Ne === Sr || !Ne) && clearTimeout) - return Ne = clearTimeout, clearTimeout(e); + if ((Le === Cr || !Le) && clearTimeout) + return Le = clearTimeout, clearTimeout(e); try { - return Ne(e); + return Le(e); } catch { try { - return Ne.call(null, e); + return Le.call(null, e); } catch { - return Ne.call(this, e); + return Le.call(this, e); } } } -var $e = [], yt = !1, tt, Ht = -1; -function lo() { - !yt || !tt || (yt = !1, tt.length ? $e = tt.concat($e) : Ht = -1, $e.length && $n()); +var ze = [], gt = !1, et, Ht = -1; +function co() { + !gt || !et || (gt = !1, et.length ? ze = et.concat(ze) : Ht = -1, ze.length && $n()); } function $n() { - if (!yt) { - var e = zn(lo); - yt = !0; - for (var t = $e.length; t; ) { - for (tt = $e, $e = []; ++Ht < t; ) - tt && tt[Ht].run(); - Ht = -1, t = $e.length; + if (!gt) { + var e = zn(co); + gt = !0; + for (var t = ze.length; t; ) { + for (et = ze, ze = []; ++Ht < t; ) + et && et[Ht].run(); + Ht = -1, t = ze.length; } - tt = null, yt = !1, ao(e); + et = null, gt = !1, ao(e); } } -ae.nextTick = function(e) { +se.nextTick = function(e) { var t = new Array(arguments.length - 1); if (arguments.length > 1) - for (var n = 1; n < arguments.length; n++) - t[n - 1] = arguments[n]; - $e.push(new Vn(e, t)), $e.length === 1 && !yt && zn($n); + for (var i = 1; i < arguments.length; i++) + t[i - 1] = arguments[i]; + ze.push(new Vn(e, t)), ze.length === 1 && !gt && zn($n); }; function Vn(e, t) { this.fun = e, this.array = t; @@ -1133,45 +1133,45 @@ function Vn(e, t) { Vn.prototype.run = function() { this.fun.apply(null, this.array); }; -ae.title = "browser"; -ae.browser = !0; -ae.env = {}; -ae.argv = []; -ae.version = ""; -ae.versions = {}; -function Ve() { -} -ae.on = Ve; -ae.addListener = Ve; -ae.once = Ve; -ae.off = Ve; -ae.removeListener = Ve; -ae.removeAllListeners = Ve; -ae.emit = Ve; -ae.prependListener = Ve; -ae.prependOnceListener = Ve; -ae.listeners = function(e) { +se.title = "browser"; +se.browser = !0; +se.env = {}; +se.argv = []; +se.version = ""; +se.versions = {}; +function $e() { +} +se.on = $e; +se.addListener = $e; +se.once = $e; +se.off = $e; +se.removeListener = $e; +se.removeAllListeners = $e; +se.emit = $e; +se.prependListener = $e; +se.prependOnceListener = $e; +se.listeners = function(e) { return []; }; -ae.binding = function(e) { +se.binding = function(e) { throw new Error("process.binding is not supported"); }; -ae.cwd = function() { +se.cwd = function() { return "/"; }; -ae.chdir = function(e) { +se.chdir = function(e) { throw new Error("process.chdir is not supported"); }; -ae.umask = function() { +se.umask = function() { return 0; }; -var co = Dn.exports; +var lo = Dn.exports; (function(e) { Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }); - const t = Mn, n = co, o = (f) => f && f.__esModule ? f : { default: f }, a = o(n), u = globalThis || void 0 || self; - Object.defineProperty(e, "Buffer", { enumerable: !0, get: () => t.Buffer }), Object.defineProperty(e, "process", { enumerable: !0, get: () => a.default }), e.global = u; -})(Ie); -var Cr = { exports: {} }, Ct = {}; + const t = Mn, i = lo, o = (f) => f && f.__esModule ? f : { default: f }, c = o(i), u = globalThis || void 0 || self; + Object.defineProperty(e, "Buffer", { enumerable: !0, get: () => t.Buffer }), Object.defineProperty(e, "process", { enumerable: !0, get: () => c.default }), e.global = u; +})(Ee); +var Sr = { exports: {} }, St = {}; /** * @license React * react-jsx-runtime.production.min.js @@ -1184,106 +1184,106 @@ var Cr = { exports: {} }, Ct = {}; var fn; function uo() { if (fn) - return Ct; + return St; fn = 1; - var e = Nt, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 }; - function f(l, h, b) { - var w, x = {}, I = null, S = null; - b !== void 0 && (I = "" + b), h.key !== void 0 && (I = "" + h.key), h.ref !== void 0 && (S = h.ref); - for (w in h) - o.call(h, w) && !u.hasOwnProperty(w) && (x[w] = h[w]); - if (l && l.defaultProps) - for (w in h = l.defaultProps, h) - x[w] === void 0 && (x[w] = h[w]); - return { $$typeof: t, type: l, key: I, ref: S, props: x, _owner: a.current }; + var e = Nt, t = Symbol.for("react.element"), i = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 }; + function f(a, h, x) { + var y, b = {}, I = null, P = null; + x !== void 0 && (I = "" + x), h.key !== void 0 && (I = "" + h.key), h.ref !== void 0 && (P = h.ref); + for (y in h) + o.call(h, y) && !u.hasOwnProperty(y) && (b[y] = h[y]); + if (a && a.defaultProps) + for (y in h = a.defaultProps, h) + b[y] === void 0 && (b[y] = h[y]); + return { $$typeof: t, type: a, key: I, ref: P, props: b, _owner: c.current }; } - return Ct.Fragment = n, Ct.jsx = f, Ct.jsxs = f, Ct; + return St.Fragment = i, St.jsx = f, St.jsxs = f, St; } -var kt = {}, dn; +var Pt = {}, dn; function fo() { - return dn || (dn = 1, Ie.process.env.NODE_ENV !== "production" && function() { - var e = Nt, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), l = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), B = Symbol.iterator, _ = "@@iterator"; - function $(d) { + return dn || (dn = 1, Ee.process.env.NODE_ENV !== "production" && function() { + var e = Nt, t = Symbol.for("react.element"), i = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), a = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), O = Symbol.iterator, S = "@@iterator"; + function ne(d) { if (d === null || typeof d != "object") return null; - var v = B && d[B] || d[_]; + var v = O && d[O] || d[S]; return typeof v == "function" ? v : null; } - var P = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - function N(d) { + var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + function L(d) { { for (var v = arguments.length, E = new Array(v > 1 ? v - 1 : 0), R = 1; R < v; R++) E[R - 1] = arguments[R]; - le("error", d, E); + ae("error", d, E); } } - function le(d, v, E) { + function ae(d, v, E) { { - var R = P.ReactDebugCurrentFrame, q = R.getStackAddendum(); - q !== "" && (v += "%s", E = E.concat([q])); - var X = E.map(function(z) { - return String(z); + var R = j.ReactDebugCurrentFrame, G = R.getStackAddendum(); + G !== "" && (v += "%s", E = E.concat([G])); + var J = E.map(function(D) { + return String(D); }); - X.unshift("Warning: " + v), Function.prototype.apply.call(console[d], console, X); + J.unshift("Warning: " + v), Function.prototype.apply.call(console[d], console, J); } } - var we = !1, A = !1, he = !1, ge = !1, _e = !1, xe; - xe = Symbol.for("react.module.reference"); + var me = !1, k = !1, pe = !1, we = !1, _e = !1, be; + be = Symbol.for("react.module.reference"); function je(d) { - return !!(typeof d == "string" || typeof d == "function" || d === o || d === u || _e || d === a || d === b || d === w || ge || d === S || we || A || he || typeof d == "object" && d !== null && (d.$$typeof === I || d.$$typeof === x || d.$$typeof === f || d.$$typeof === l || d.$$typeof === h || // This needs to include all possible module reference object + return !!(typeof d == "string" || typeof d == "function" || d === o || d === u || _e || d === c || d === x || d === y || we || d === P || me || k || pe || typeof d == "object" && d !== null && (d.$$typeof === I || d.$$typeof === b || d.$$typeof === f || d.$$typeof === a || d.$$typeof === h || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. - d.$$typeof === xe || d.getModuleId !== void 0)); + d.$$typeof === be || d.getModuleId !== void 0)); } - function pe(d, v, E) { + function de(d, v, E) { var R = d.displayName; if (R) return R; - var q = v.displayName || v.name || ""; - return q !== "" ? E + "(" + q + ")" : E; + var G = v.displayName || v.name || ""; + return G !== "" ? E + "(" + G + ")" : E; } function T(d) { return d.displayName || "Context"; } - function k(d) { + function _(d) { if (d == null) return null; - if (typeof d.tag == "number" && N("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function") + if (typeof d.tag == "number" && L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function") return d.displayName || d.name || null; if (typeof d == "string") return d; switch (d) { case o: return "Fragment"; - case n: + case i: return "Portal"; case u: return "Profiler"; - case a: + case c: return "StrictMode"; - case b: + case x: return "Suspense"; - case w: + case y: return "SuspenseList"; } if (typeof d == "object") switch (d.$$typeof) { - case l: + case a: var v = d; return T(v) + ".Consumer"; case f: var E = d; return T(E._context) + ".Provider"; case h: - return pe(d, d.render, "ForwardRef"); - case x: + return de(d, d.render, "ForwardRef"); + case b: var R = d.displayName || null; - return R !== null ? R : k(d.type) || "Memo"; + return R !== null ? R : _(d.type) || "Memo"; case I: { - var q = d, X = q._payload, z = q._init; + var G = d, J = G._payload, D = G._init; try { - return k(z(X)); + return _(D(J)); } catch { return null; } @@ -1291,18 +1291,18 @@ function fo() { } return null; } - var C = Object.assign, O = 0, L, D, W, H, re, V, G; - function ne() { + var C = Object.assign, A = 0, F, U, V, q, te, z, W; + function re() { } - ne.__reactDisabledLog = !0; - function We() { + re.__reactDisabledLog = !0; + function Ve() { { - if (O === 0) { - L = console.log, D = console.info, W = console.warn, H = console.error, re = console.group, V = console.groupCollapsed, G = console.groupEnd; + if (A === 0) { + F = console.log, U = console.info, V = console.warn, q = console.error, te = console.group, z = console.groupCollapsed, W = console.groupEnd; var d = { configurable: !0, enumerable: !0, - value: ne, + value: re, writable: !0 }; Object.defineProperties(console, { @@ -1315,12 +1315,12 @@ function fo() { groupEnd: d }); } - O++; + A++; } } - function Je() { + function Ye() { { - if (O--, O === 0) { + if (A--, A === 0) { var d = { configurable: !0, enumerable: !0, @@ -1328,125 +1328,125 @@ function fo() { }; Object.defineProperties(console, { log: C({}, d, { - value: L + value: F }), info: C({}, d, { - value: D + value: U }), warn: C({}, d, { - value: W + value: V }), error: C({}, d, { - value: H + value: q }), group: C({}, d, { - value: re + value: te }), groupCollapsed: C({}, d, { - value: V + value: z }), groupEnd: C({}, d, { - value: G + value: W }) }); } - O < 0 && N("disabledDepth fell below zero. This is a bug in React. Please file an issue."); + A < 0 && L("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } - var Ge = P.ReactCurrentDispatcher, ot; + var We = j.ReactCurrentDispatcher, ot; function Re(d, v, E) { { if (ot === void 0) try { throw Error(); - } catch (q) { - var R = q.stack.trim().match(/\n( *(at )?)/); + } catch (G) { + var R = G.stack.trim().match(/\n( *(at )?)/); ot = R && R[1] || ""; } return ` ` + ot + d; } } - var Xe = !1, Ke; + var Je = !1, Xe; { var ur = typeof WeakMap == "function" ? WeakMap : Map; - Ke = new ur(); + Xe = new ur(); } function Tt(d, v) { - if (!d || Xe) + if (!d || Je) return ""; { - var E = Ke.get(d); + var E = Xe.get(d); if (E !== void 0) return E; } var R; - Xe = !0; - var q = Error.prepareStackTrace; + Je = !0; + var G = Error.prepareStackTrace; Error.prepareStackTrace = void 0; - var X; - X = Ge.current, Ge.current = null, We(); + var J; + J = We.current, We.current = null, Ve(); try { if (v) { - var z = function() { + var D = function() { throw Error(); }; - if (Object.defineProperty(z.prototype, "props", { + if (Object.defineProperty(D.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { - Reflect.construct(z, []); - } catch (ze) { - R = ze; + Reflect.construct(D, []); + } catch (De) { + R = De; } - Reflect.construct(d, [], z); + Reflect.construct(d, [], D); } else { try { - z.call(); - } catch (ze) { - R = ze; + D.call(); + } catch (De) { + R = De; } - d.call(z.prototype); + d.call(D.prototype); } } else { try { throw Error(); - } catch (ze) { - R = ze; + } catch (De) { + R = De; } d(); } - } catch (ze) { - if (ze && R && typeof ze.stack == "string") { - for (var M = ze.stack.split(` -`), me = R.stack.split(` -`), oe = M.length - 1, ce = me.length - 1; oe >= 1 && ce >= 0 && M[oe] !== me[ce]; ) + } catch (De) { + if (De && R && typeof De.stack == "string") { + for (var N = De.stack.split(` +`), he = R.stack.split(` +`), oe = N.length - 1, ce = he.length - 1; oe >= 1 && ce >= 0 && N[oe] !== he[ce]; ) ce--; for (; oe >= 1 && ce >= 0; oe--, ce--) - if (M[oe] !== me[ce]) { + if (N[oe] !== he[ce]) { if (oe !== 1 || ce !== 1) do - if (oe--, ce--, ce < 0 || M[oe] !== me[ce]) { + if (oe--, ce--, ce < 0 || N[oe] !== he[ce]) { var Ce = ` -` + M[oe].replace(" at new ", " at "); - return d.displayName && Ce.includes("") && (Ce = Ce.replace("", d.displayName)), typeof d == "function" && Ke.set(d, Ce), Ce; +` + N[oe].replace(" at new ", " at "); + return d.displayName && Ce.includes("") && (Ce = Ce.replace("", d.displayName)), typeof d == "function" && Xe.set(d, Ce), Ce; } while (oe >= 1 && ce >= 0); break; } } } finally { - Xe = !1, Ge.current = X, Je(), Error.prepareStackTrace = q; + Je = !1, We.current = J, Ye(), Error.prepareStackTrace = G; } var dt = d ? d.displayName || d.name : "", un = dt ? Re(dt) : ""; - return typeof d == "function" && Ke.set(d, un), un; + return typeof d == "function" && Xe.set(d, un), un; } - function qe(d, v, E) { + function Ge(d, v, E) { return Tt(d, !1); } - function Ze(d) { + function Ke(d) { var v = d.prototype; return !!(v && v.isReactComponent); } @@ -1454,55 +1454,55 @@ function fo() { if (d == null) return ""; if (typeof d == "function") - return Tt(d, Ze(d)); + return Tt(d, Ke(d)); if (typeof d == "string") return Re(d); switch (d) { - case b: + case x: return Re("Suspense"); - case w: + case y: return Re("SuspenseList"); } if (typeof d == "object") switch (d.$$typeof) { case h: - return qe(d.render); - case x: + return Ge(d.render); + case b: return st(d.type, v, E); case I: { - var R = d, q = R._payload, X = R._init; + var R = d, G = R._payload, J = R._init; try { - return st(X(q), v, E); + return st(J(G), v, E); } catch { } } } return ""; } - var at = Object.prototype.hasOwnProperty, lt = {}, Dt = P.ReactDebugCurrentFrame; - function ct(d) { + var at = Object.prototype.hasOwnProperty, ct = {}, Dt = j.ReactDebugCurrentFrame; + function lt(d) { if (d) { var v = d._owner, E = st(d.type, d._source, v ? v.type : null); Dt.setExtraStackFrame(E); } else Dt.setExtraStackFrame(null); } - function zt(d, v, E, R, q) { + function zt(d, v, E, R, G) { { - var X = Function.call.bind(at); - for (var z in d) - if (X(d, z)) { - var M = void 0; + var J = Function.call.bind(at); + for (var D in d) + if (J(d, D)) { + var N = void 0; try { - if (typeof d[z] != "function") { - var me = Error((R || "React class") + ": " + E + " type `" + z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[z] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); - throw me.name = "Invariant Violation", me; + if (typeof d[D] != "function") { + var he = Error((R || "React class") + ": " + E + " type `" + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[D] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); + throw he.name = "Invariant Violation", he; } - M = d[z](v, z, R, E, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); + N = d[D](v, D, R, E, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (oe) { - M = oe; + N = oe; } - M && !(M instanceof Error) && (ct(q), N("%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", E, z, typeof M), ct(null)), M instanceof Error && !(M.message in lt) && (lt[M.message] = !0, ct(q), N("Failed %s type: %s", E, M.message), ct(null)); + N && !(N instanceof Error) && (lt(G), L("%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", E, D, typeof N), lt(null)), N instanceof Error && !(N.message in ct) && (ct[N.message] = !0, lt(G), L("Failed %s type: %s", E, N.message), lt(null)); } } } @@ -1510,7 +1510,7 @@ function fo() { function ye(d) { return ut(d); } - function St(d) { + function Ct(d) { { var v = typeof Symbol == "function" && Symbol.toStringTag, E = v && d[Symbol.toStringTag] || d.constructor.name || "Object"; return E; @@ -1518,24 +1518,24 @@ function fo() { } function fr(d) { try { - return Be(d), !1; + return ke(d), !1; } catch { return !0; } } - function Be(d) { + function ke(d) { return "" + d; } function $t(d) { if (fr(d)) - return N("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", St(d)), Be(d); + return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ct(d)), ke(d); } - var s = P.ReactCurrentOwner, r = { + var s = j.ReactCurrentOwner, r = { key: !0, ref: !0, __self: !0, __source: !0 - }, i, c, p; + }, n, l, p; p = {}; function m(d) { if (at.call(d, "ref")) { @@ -1545,7 +1545,7 @@ function fo() { } return d.ref !== void 0; } - function y(d) { + function g(d) { if (at.call(d, "key")) { var v = Object.getOwnPropertyDescriptor(d, "key").get; if (v && v.isReactWarning) @@ -1553,16 +1553,16 @@ function fo() { } return d.key !== void 0; } - function F(d, v) { + function B(d, v) { if (typeof d.ref == "string" && s.current && v && s.current.stateNode !== v) { - var E = k(s.current.type); - p[E] || (N('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', k(s.current.type), d.ref), p[E] = !0); + var E = _(s.current.type); + p[E] || (L('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', _(s.current.type), d.ref), p[E] = !0); } } - function ee(d, v) { + function Q(d, v) { { var E = function() { - i || (i = !0, N("%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)", v)); + n || (n = !0, L("%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)", v)); }; E.isReactWarning = !0, Object.defineProperty(d, "key", { get: E, @@ -1570,10 +1570,10 @@ function fo() { }); } } - function K(d, v) { + function X(d, v) { { var E = function() { - c || (c = !0, N("%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)", v)); + l || (l = !0, L("%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)", v)); }; E.isReactWarning = !0, Object.defineProperty(d, "ref", { get: E, @@ -1581,54 +1581,54 @@ function fo() { }); } } - var te = function(d, v, E, R, q, X, z) { - var M = { + var ee = function(d, v, E, R, G, J, D) { + var N = { // This tag allows us to uniquely identify this as a React Element $$typeof: t, // Built-in properties that belong on the element type: d, key: v, ref: E, - props: z, + props: D, // Record the component responsible for creating this element. - _owner: X + _owner: J }; - return M._store = {}, Object.defineProperty(M._store, "validated", { + return N._store = {}, Object.defineProperty(N._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 - }), Object.defineProperty(M, "_self", { + }), Object.defineProperty(N, "_self", { configurable: !1, enumerable: !1, writable: !1, value: R - }), Object.defineProperty(M, "_source", { + }), Object.defineProperty(N, "_source", { configurable: !1, enumerable: !1, writable: !1, - value: q - }), Object.freeze && (Object.freeze(M.props), Object.freeze(M)), M; + value: G + }), Object.freeze && (Object.freeze(N.props), Object.freeze(N)), N; }; - function Y(d, v, E, R, q) { + function H(d, v, E, R, G) { { - var X, z = {}, M = null, me = null; - E !== void 0 && ($t(E), M = "" + E), y(v) && ($t(v.key), M = "" + v.key), m(v) && (me = v.ref, F(v, q)); - for (X in v) - at.call(v, X) && !r.hasOwnProperty(X) && (z[X] = v[X]); + var J, D = {}, N = null, he = null; + E !== void 0 && ($t(E), N = "" + E), g(v) && ($t(v.key), N = "" + v.key), m(v) && (he = v.ref, B(v, G)); + for (J in v) + at.call(v, J) && !r.hasOwnProperty(J) && (D[J] = v[J]); if (d && d.defaultProps) { var oe = d.defaultProps; - for (X in oe) - z[X] === void 0 && (z[X] = oe[X]); + for (J in oe) + D[J] === void 0 && (D[J] = oe[J]); } - if (M || me) { + if (N || he) { var ce = typeof d == "function" ? d.displayName || d.name || "Unknown" : d; - M && ee(z, ce), me && K(z, ce); + N && Q(D, ce), he && X(D, ce); } - return te(d, M, me, q, R, s.current, z); + return ee(d, N, he, G, R, s.current, D); } } - var dr = P.ReactCurrentOwner, nn = P.ReactDebugCurrentFrame; + var dr = j.ReactCurrentOwner, nn = j.ReactDebugCurrentFrame; function ft(d) { if (d) { var v = d._owner, E = st(d.type, d._source, v ? v.type : null); @@ -1644,7 +1644,7 @@ function fo() { function on() { { if (dr.current) { - var d = k(dr.current.type); + var d = _(dr.current.type); if (d) return ` @@ -1687,10 +1687,10 @@ Check the top-level render call using <` + E + ">."); return; sn[E] = !0; var R = ""; - d && d._owner && d._owner !== dr.current && (R = " It was passed a child from " + k(d._owner.type) + "."), ft(d), N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', E, R), ft(null); + d && d._owner && d._owner !== dr.current && (R = " It was passed a child from " + _(d._owner.type) + "."), ft(d), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', E, R), ft(null); } } - function ln(d, v) { + function cn(d, v) { { if (typeof d != "object") return; @@ -1702,10 +1702,10 @@ Check the top-level render call using <` + E + ">."); else if (hr(d)) d._store && (d._store.validated = !0); else if (d) { - var q = $(d); - if (typeof q == "function" && q !== d.entries) - for (var X = q.call(d), z; !(z = X.next()).done; ) - hr(z.value) && an(z.value, v); + var G = ne(d); + if (typeof G == "function" && G !== d.entries) + for (var J = G.call(d), D; !(D = J.next()).done; ) + hr(D.value) && an(D.value, v); } } } @@ -1719,19 +1719,19 @@ Check the top-level render call using <` + E + ">."); E = v.propTypes; else if (typeof v == "object" && (v.$$typeof === h || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. - v.$$typeof === x)) + v.$$typeof === b)) E = v.propTypes; else return; if (E) { - var R = k(v); + var R = _(v); zt(E, d.props, "prop", R, d); } else if (v.PropTypes !== void 0 && !pr) { pr = !0; - var q = k(v); - N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", q || "Unknown"); + var G = _(v); + L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", G || "Unknown"); } - typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && N("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); + typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function Li(d) { @@ -1739,81 +1739,81 @@ Check the top-level render call using <` + E + ">."); for (var v = Object.keys(d.props), E = 0; E < v.length; E++) { var R = v[E]; if (R !== "children" && R !== "key") { - ft(d), N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", R), ft(null); + ft(d), L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", R), ft(null); break; } } - d.ref !== null && (ft(d), N("Invalid attribute `ref` supplied to `React.Fragment`."), ft(null)); + d.ref !== null && (ft(d), L("Invalid attribute `ref` supplied to `React.Fragment`."), ft(null)); } } - function cn(d, v, E, R, q, X) { + function ln(d, v, E, R, G, J) { { - var z = je(d); - if (!z) { - var M = ""; - (d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (M += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); - var me = Ai(q); - me ? M += me : M += on(); + var D = je(d); + if (!D) { + var N = ""; + (d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (N += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); + var he = Ai(G); + he ? N += he : N += on(); var oe; - d === null ? oe = "null" : ye(d) ? oe = "array" : d !== void 0 && d.$$typeof === t ? (oe = "<" + (k(d.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : oe = typeof d, N("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", oe, M); + d === null ? oe = "null" : ye(d) ? oe = "array" : d !== void 0 && d.$$typeof === t ? (oe = "<" + (_(d.type) || "Unknown") + " />", N = " Did you accidentally export a JSX literal instead of a component?") : oe = typeof d, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", oe, N); } - var ce = Y(d, v, E, q, X); + var ce = H(d, v, E, G, J); if (ce == null) return ce; - if (z) { + if (D) { var Ce = v.children; if (Ce !== void 0) if (R) if (ye(Ce)) { for (var dt = 0; dt < Ce.length; dt++) - ln(Ce[dt], d); + cn(Ce[dt], d); Object.freeze && Object.freeze(Ce); } else - N("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); + L("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 - ln(Ce, d); + cn(Ce, d); } return d === o ? Li(ce) : Oi(ce), ce; } } function Ni(d, v, E) { - return cn(d, v, E, !0); + return ln(d, v, E, !0); } function Mi(d, v, E) { - return cn(d, v, E, !1); + return ln(d, v, E, !1); } var Ui = Mi, Di = Ni; - kt.Fragment = o, kt.jsx = Ui, kt.jsxs = Di; - }()), kt; -} -Ie.process.env.NODE_ENV === "production" ? Cr.exports = uo() : Cr.exports = fo(); -var g = Cr.exports; -var At = {}, Pt = Vi; -if (Ie.process.env.NODE_ENV === "production") - At.createRoot = Pt.createRoot, At.hydrateRoot = Pt.hydrateRoot; + Pt.Fragment = o, Pt.jsx = Ui, Pt.jsxs = Di; + }()), Pt; +} +Ee.process.env.NODE_ENV === "production" ? Sr.exports = uo() : Sr.exports = fo(); +var w = Sr.exports; +var At = {}, _t = Vi; +if (Ee.process.env.NODE_ENV === "production") + At.createRoot = _t.createRoot, At.hydrateRoot = _t.hydrateRoot; else { - var Vt = Pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + var Vt = _t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; At.createRoot = function(e, t) { Vt.usingClientEntryPoint = !0; try { - return Pt.createRoot(e, t); + return _t.createRoot(e, t); } finally { Vt.usingClientEntryPoint = !1; } - }, At.hydrateRoot = function(e, t, n) { + }, At.hydrateRoot = function(e, t, i) { Vt.usingClientEntryPoint = !0; try { - return Pt.hydrateRoot(e, t, n); + return _t.hydrateRoot(e, t, i); } finally { Vt.usingClientEntryPoint = !1; } }; } function Yt(e) { - return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Yt = function(n) { - return typeof n; - } : Yt = function(n) { - return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Yt = function(i) { + return typeof i; + } : Yt = function(i) { + return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i; }, Yt(e); } function po(e, t) { @@ -1821,21 +1821,21 @@ function po(e, t) { throw new TypeError("Cannot call a class as a function"); } function pn(e, t) { - for (var n = 0; n < t.length; n++) { - var o = t[n]; + for (var i = 0; i < t.length; i++) { + var o = t[i]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, o.key, o); } } -function ho(e, t, n) { - return t && pn(e.prototype, t), n && pn(e, n), e; +function ho(e, t, i) { + return t && pn(e.prototype, t), i && pn(e, i), e; } function mo(e, t) { return t && (Yt(t) === "object" || typeof t == "function") ? t : Jt(e); } -function kr(e) { - return kr = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) { - return n.__proto__ || Object.getPrototypeOf(n); - }, kr(e); +function Pr(e) { + return Pr = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) { + return i.__proto__ || Object.getPrototypeOf(i); + }, Pr(e); } function Jt(e) { if (e === void 0) @@ -1845,28 +1845,28 @@ function Jt(e) { function wo(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); - e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), t && Pr(e, t); + e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), t && _r(e, t); } -function Pr(e, t) { - return Pr = Object.setPrototypeOf || function(o, a) { - return o.__proto__ = a, o; - }, Pr(e, t); +function _r(e, t) { + return _r = Object.setPrototypeOf || function(o, c) { + return o.__proto__ = c, o; + }, _r(e, t); } -function Xt(e, t, n) { - return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; +function Xt(e, t, i) { + return t in e ? Object.defineProperty(e, t, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = i, e; } var Wn = /* @__PURE__ */ function(e) { wo(t, e); function t() { - var n, o; + var i, o; po(this, t); - for (var a = arguments.length, u = new Array(a), f = 0; f < a; f++) + for (var c = arguments.length, u = new Array(c), f = 0; f < c; f++) u[f] = arguments[f]; - return o = mo(this, (n = kr(t)).call.apply(n, [this].concat(u))), Xt(Jt(o), "state", { + return o = mo(this, (i = Pr(t)).call.apply(i, [this].concat(u))), Xt(Jt(o), "state", { bootstrapped: !1 }), Xt(Jt(o), "_unsubscribe", void 0), Xt(Jt(o), "handlePersistorState", function() { - var l = o.props.persistor, h = l.getState(), b = h.bootstrapped; - b && (o.props.onBeforeLift ? Promise.resolve(o.props.onBeforeLift()).finally(function() { + var a = o.props.persistor, h = a.getState(), x = h.bootstrapped; + x && (o.props.onBeforeLift ? Promise.resolve(o.props.onBeforeLift()).finally(function() { return o.setState({ bootstrapped: !0 }); @@ -1888,7 +1888,7 @@ var Wn = /* @__PURE__ */ function(e) { }, { key: "render", value: function() { - return Ie.process.env.NODE_ENV !== "production" && typeof this.props.children == "function" && this.props.loading && console.error("redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored."), typeof this.props.children == "function" ? this.props.children(this.state.bootstrapped) : this.state.bootstrapped ? this.props.children : this.props.loading; + return Ee.process.env.NODE_ENV !== "production" && typeof this.props.children == "function" && this.props.loading && console.error("redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored."), typeof this.props.children == "function" ? this.props.children(this.state.bootstrapped) : this.state.bootstrapped ? this.props.children : this.props.loading; } }]), t; }(zi); @@ -1896,18 +1896,18 @@ Xt(Wn, "defaultProps", { children: null, loading: null }); -var Fe = /* @__PURE__ */ ((e) => (e.text = "text", e.buttons = "buttons", e.payment = "payment", e.video = "video", e.image = "image", e.email = "email", e))(Fe || {}), $r = /* @__PURE__ */ ((e) => (e.horizontal = "horizontal", e.vertical = "vertical", e))($r || {}), et = /* @__PURE__ */ ((e) => (e.chat = "utm_chat", e))(et || {}), be = /* @__PURE__ */ ((e) => (e.addToCart = "AddToCart", e.contact = "Contact", e.initiateCheckout = "InitiateCheckout", e.pageView = "PageView", e.viewContent = "ViewContent", e.purchase = "Purchase", e.subscribe = "Subscribe", e.recurringSubscriptionPayment = "RecurringSubscriptionPayment", e.cancelSubscription = "CancelSubscription", e.purchaseFailed = "PurchaseFailed", e.subscribeFailed = "SubscribeFailed", e.recurringSubscriptionPaymentFailed = "RecurringSubscriptionPaymentFailed", e.customerCreated = "CustomerCreated", e.subscriptionChargeback = "SubscriptionChargeback", e.subscriptionRefund = "SubscriptionRefund", e.transactionChargeback = "TransactionChargeback", e.transactionRefund = "TransactionRefund", e.firstMessage = "FirstMessage", e.linkProvided = "LinkProvided", e.linkClicked = "LinkClicked", e.emailField = "EmailField", e.emailEntered = "EmailEntered", e.emailWrong = "EmailWrong", e.emailExist = "EmailExist", e.priceSeen = "PriceSeen", e.buttonClick = "ButtonClick", e.closeClicked = "CloseClicked", e))(be || {}), Gn = /* @__PURE__ */ ((e) => (e.email = "email_intent", e.payment = "payment_intent", e.emailError = "email_validation_error", e.emailSuccess = "email_validation_success", e.destroy = "payment_intent_destroy", e))(Gn || {}), Q = /* @__PURE__ */ ((e) => (e.user = "user", e.assistant = "assistant", e))(Q || {}), ke = /* @__PURE__ */ ((e) => (e.chat = "chat", e.chatHistory = "chat-history", e.connect = "connect", e.error = "error", e.disconnect = "disconnect", e.streamStart = "stream-start", e.streamData = "stream-data", e.streamEnd = "stream-end", e.streamError = "stream-error", e))(ke || {}), qn = /* @__PURE__ */ ((e) => (e.light = "light", e.dark = "dark", e))(qn || {}); -const gt = (e) => new URLSearchParams(window.location.search).get(e) || "", go = { +var Ae = /* @__PURE__ */ ((e) => (e.text = "text", e.buttons = "buttons", e.payment = "payment", e.video = "video", e.image = "image", e.email = "email", e))(Ae || {}), $r = /* @__PURE__ */ ((e) => (e.horizontal = "horizontal", e.vertical = "vertical", e))($r || {}), Qe = /* @__PURE__ */ ((e) => (e.chat = "utm_chat", e))(Qe || {}), ge = /* @__PURE__ */ ((e) => (e.addToCart = "AddToCart", e.contact = "Contact", e.initiateCheckout = "InitiateCheckout", e.pageView = "PageView", e.viewContent = "ViewContent", e.purchase = "Purchase", e.subscribe = "Subscribe", e.recurringSubscriptionPayment = "RecurringSubscriptionPayment", e.cancelSubscription = "CancelSubscription", e.purchaseFailed = "PurchaseFailed", e.subscribeFailed = "SubscribeFailed", e.recurringSubscriptionPaymentFailed = "RecurringSubscriptionPaymentFailed", e.customerCreated = "CustomerCreated", e.subscriptionChargeback = "SubscriptionChargeback", e.subscriptionRefund = "SubscriptionRefund", e.transactionChargeback = "TransactionChargeback", e.transactionRefund = "TransactionRefund", e.firstMessage = "FirstMessage", e.linkProvided = "LinkProvided", e.linkClicked = "LinkClicked", e.emailField = "EmailField", e.emailEntered = "EmailEntered", e.emailWrong = "EmailWrong", e.emailExist = "EmailExist", e.priceSeen = "PriceSeen", e.buttonClick = "ButtonClick", e.closeClicked = "CloseClicked", e))(ge || {}), Gn = /* @__PURE__ */ ((e) => (e.email = "email_intent", e.payment = "payment_intent", e.emailError = "email_validation_error", e.emailSuccess = "email_validation_success", e.destroy = "payment_intent_destroy", e))(Gn || {}), Z = /* @__PURE__ */ ((e) => (e.user = "user", e.assistant = "assistant", e))(Z || {}), Se = /* @__PURE__ */ ((e) => (e.chat = "chat", e.chatHistory = "chat-history", e.connect = "connect", e.error = "error", e.disconnect = "disconnect", e.streamStart = "stream-start", e.streamData = "stream-data", e.streamEnd = "stream-end", e.streamError = "stream-error", e))(Se || {}), qn = /* @__PURE__ */ ((e) => (e.light = "light", e.dark = "dark", e))(qn || {}); +const yt = (e) => new URLSearchParams(window.location.search).get(e) || "", yo = { day: "numeric", month: "long", year: "numeric", hour: "numeric", minute: "numeric" }; -function yo(e, t = go) { +function go(e, t = yo) { return `${new Date(e).toLocaleDateString([], t)}`.toUpperCase(); } -function fe() { +function ue() { const e = new Array(36); for (let t = 0; t < 36; t++) e[t] = Math.floor(Math.random() * 16); @@ -1924,7 +1924,7 @@ const ht = { lastUtmParams: {}, utmParams: {} } -}, Oe = { +}, Fe = { aiProfile: { name: "", role: "", @@ -1947,7 +1947,7 @@ const ht = { outgoing: { term: "", user_id: "", - role: Q.user, + role: Z.user, message: "" }, historyData: {}, @@ -1955,7 +1955,7 @@ const ht = { error: "", isLoading: !1, typingTimeoutExpired: !1, - lastGroupId: fe(), + lastGroupId: ue(), connected: !1, closed: !1, isStreaming: !1 @@ -1982,10 +1982,10 @@ const ht = { link: "" }, Hn = or({ name: "config", - initialState: Oe, + initialState: Fe, reducers: { setConfig(e, { payload: t }) { - e.aiProfile = { ...Oe.aiProfile, ...t.aiProfile }, e.translations = { ...Oe.translations, ...t.translations }, e.close = { ...Oe.close, ...t.close }, e.themeId = t.themeId, e.chatUrl = t.chatUrl, e.purpose = t.purpose; + e.aiProfile = { ...Fe.aiProfile, ...t.aiProfile }, e.translations = { ...Fe.translations, ...t.translations }, e.close = { ...Fe.close, ...t.close }, e.themeId = t.themeId, e.chatUrl = t.chatUrl, e.purpose = t.purpose; }, setSpecialUrls(e, { payload: t }) { e.specialUrls = { ...e.specialUrls, ...t }; @@ -1994,19 +1994,19 @@ const ht = { e.purpose = t; }, resetConfig(e) { - e.aiProfile = Oe.aiProfile, e.themeId = Oe.themeId, e.translations = Oe.translations, e.chatUrl = Oe.chatUrl; + e.aiProfile = Fe.aiProfile, e.themeId = Fe.themeId, e.translations = Fe.translations, e.chatUrl = Fe.chatUrl; }, setTheme(e, { payload: t }) { e.themeId = t; }, resetTheme(e) { - e.themeId = Oe.themeId; + e.themeId = Fe.themeId; }, setDevToolsStatus(e, { payload: t }) { e.enableDevTools = t; }, resetDevToolsStatus(e) { - e.enableDevTools = Oe.enableDevTools; + e.enableDevTools = Fe.enableDevTools; }, togglePluginMode(e) { e.isPluginMode = !e.isPluginMode; @@ -2015,15 +2015,15 @@ const ht = { e.translations = { ...e.translations, ...t }; } } -}), se = (e) => e.config, { +}), nt = (e) => e.config, { setConfig: Yn, - resetConfig: hl, - setTheme: ml, - resetTheme: wl, - setDevToolsStatus: gl, - resetDevToolsStatus: yl, - togglePluginMode: bl, - setTranslations: xl, + resetConfig: hc, + setTheme: mc, + resetTheme: wc, + setDevToolsStatus: yc, + resetDevToolsStatus: gc, + togglePluginMode: bc, + setTranslations: xc, setPurpose: xo, setSpecialUrls: vo } = Hn.actions, Eo = Hn.reducer, Jn = or({ @@ -2046,28 +2046,28 @@ const ht = { e.region = t; } } -}), Ut = (e) => e.meta, { setMeta: Io, resetMeta: vl, setMarketing: To, setPd: So, setRegion: Co } = Jn.actions, ko = Jn.reducer, Ye = Gi, j = Wi, Po = () => { +}), Ut = (e) => e.meta, { setMeta: Io, resetMeta: vc, setMarketing: To, setPd: Co, setRegion: So } = Jn.actions, Po = Jn.reducer, He = Wi, $ = Gi, _o = () => { const [e, t] = xt([0, 0]); return $i(() => { - function n() { + function i() { t([window.innerWidth, window.innerHeight]); } - return window.addEventListener("resize", n), n(), () => window.removeEventListener("resize", n); + return window.addEventListener("resize", i), i(), () => window.removeEventListener("resize", i); }, []), e; -}, _o = () => { - const { themeId: e, close: t } = j(se), { cid: n, systemType: o, marketing: a } = j(Ut); +}, jo = () => { + const { themeId: e, close: t } = $(nt), { cid: i, systemType: o, marketing: c } = $(Ut); return { theme: e, closeVisible: t.visible, - cid: n, + cid: i, systemType: o, - marketing: a + marketing: c }; }; -var hn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ve = (e) => !e || typeof e != "object" || Object.keys(e).length === 0, jo = (e, t) => JSON.stringify(e) === JSON.stringify(t); +var hn = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, xe = (e) => !e || typeof e != "object" || Object.keys(e).length === 0, Ro = (e, t) => JSON.stringify(e) === JSON.stringify(t); function Xn(e, t) { - e.forEach(function(n) { - Array.isArray(n) ? Xn(n, t) : t.push(n); + e.forEach(function(i) { + Array.isArray(i) ? Xn(i, t) : t.push(i); }); } function Kn(e) { @@ -2075,39 +2075,39 @@ function Kn(e) { return Xn(e, t), t; } var Zn = (...e) => Kn(e).filter(Boolean), Qn = (e, t) => { - let n = {}, o = Object.keys(e), a = Object.keys(t); + let i = {}, o = Object.keys(e), c = Object.keys(t); for (let u of o) - if (a.includes(u)) { - let f = e[u], l = t[u]; - typeof f == "object" && typeof l == "object" ? n[u] = Qn(f, l) : Array.isArray(f) || Array.isArray(l) ? n[u] = Zn(l, f) : n[u] = l + " " + f; + if (c.includes(u)) { + let f = e[u], a = t[u]; + typeof f == "object" && typeof a == "object" ? i[u] = Qn(f, a) : Array.isArray(f) || Array.isArray(a) ? i[u] = Zn(a, f) : i[u] = a + " " + f; } else - n[u] = e[u]; - for (let u of a) - o.includes(u) || (n[u] = t[u]); - return n; + i[u] = e[u]; + for (let u of c) + o.includes(u) || (i[u] = t[u]); + return i; }, mn = (e) => !e || typeof e != "string" ? e : e.replace(/\s+/g, " ").trim(); -function Ro() { - for (var e = 0, t, n, o = ""; e < arguments.length; ) - (t = arguments[e++]) && (n = ei(t)) && (o && (o += " "), o += n); +function ko() { + for (var e = 0, t, i, o = ""; e < arguments.length; ) + (t = arguments[e++]) && (i = ei(t)) && (o && (o += " "), o += i); return o; } function ei(e) { if (typeof e == "string") return e; - for (var t, n = "", o = 0; o < e.length; o++) - e[o] && (t = ei(e[o])) && (n && (n += " "), n += t); - return n; + for (var t, i = "", o = 0; o < e.length; o++) + e[o] && (t = ei(e[o])) && (i && (i += " "), i += t); + return i; } var Vr = "-"; function Bo(e) { - var t = Fo(e), n = e.conflictingClassGroups, o = e.conflictingClassGroupModifiers, a = o === void 0 ? {} : o; - function u(l) { - var h = l.split(Vr); - return h[0] === "" && h.length !== 1 && h.shift(), ti(h, t) || Ao(l); + var t = Fo(e), i = e.conflictingClassGroups, o = e.conflictingClassGroupModifiers, c = o === void 0 ? {} : o; + function u(a) { + var h = a.split(Vr); + return h[0] === "" && h.length !== 1 && h.shift(), ti(h, t) || Ao(a); } - function f(l, h) { - var b = n[l] || []; - return h && a[l] ? [].concat(b, a[l]) : b; + function f(a, h) { + var x = i[a] || []; + return h && c[a] ? [].concat(x, c[a]) : x; } return { getClassGroupId: u, @@ -2118,13 +2118,13 @@ function ti(e, t) { var f; if (e.length === 0) return t.classGroupId; - var n = e[0], o = t.nextPart.get(n), a = o ? ti(e.slice(1), o) : void 0; - if (a) - return a; + var i = e[0], o = t.nextPart.get(i), c = o ? ti(e.slice(1), o) : void 0; + if (c) + return c; if (t.validators.length !== 0) { var u = e.join(Vr); - return (f = t.validators.find(function(l) { - var h = l.validator; + return (f = t.validators.find(function(a) { + var h = a.validator; return h(u); })) == null ? void 0 : f.classGroupId; } @@ -2132,63 +2132,63 @@ function ti(e, t) { var wn = /^\[(.+)\]$/; function Ao(e) { if (wn.test(e)) { - var t = wn.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":")); - if (n) - return "arbitrary.." + n; + var t = wn.exec(e)[1], i = t == null ? void 0 : t.substring(0, t.indexOf(":")); + if (i) + return "arbitrary.." + i; } } function Fo(e) { - var t = e.theme, n = e.prefix, o = { + var t = e.theme, i = e.prefix, o = { nextPart: /* @__PURE__ */ new Map(), validators: [] - }, a = Lo(Object.entries(e.classGroups), n); - return a.forEach(function(u) { - var f = u[0], l = u[1]; - _r(l, o, f, t); + }, c = Lo(Object.entries(e.classGroups), i); + return c.forEach(function(u) { + var f = u[0], a = u[1]; + jr(a, o, f, t); }), o; } -function _r(e, t, n, o) { - e.forEach(function(a) { - if (typeof a == "string") { - var u = a === "" ? t : gn(t, a); - u.classGroupId = n; +function jr(e, t, i, o) { + e.forEach(function(c) { + if (typeof c == "string") { + var u = c === "" ? t : yn(t, c); + u.classGroupId = i; return; } - if (typeof a == "function") { - if (Oo(a)) { - _r(a(o), t, n, o); + if (typeof c == "function") { + if (Oo(c)) { + jr(c(o), t, i, o); return; } t.validators.push({ - validator: a, - classGroupId: n + validator: c, + classGroupId: i }); return; } - Object.entries(a).forEach(function(f) { - var l = f[0], h = f[1]; - _r(h, gn(t, l), n, o); + Object.entries(c).forEach(function(f) { + var a = f[0], h = f[1]; + jr(h, yn(t, a), i, o); }); }); } -function gn(e, t) { - var n = e; +function yn(e, t) { + var i = e; return t.split(Vr).forEach(function(o) { - n.nextPart.has(o) || n.nextPart.set(o, { + i.nextPart.has(o) || i.nextPart.set(o, { nextPart: /* @__PURE__ */ new Map(), validators: [] - }), n = n.nextPart.get(o); - }), n; + }), i = i.nextPart.get(o); + }), i; } function Oo(e) { return e.isThemeGetter; } function Lo(e, t) { - return t ? e.map(function(n) { - var o = n[0], a = n[1], u = a.map(function(f) { - return typeof f == "string" ? t + f : typeof f == "object" ? Object.fromEntries(Object.entries(f).map(function(l) { - var h = l[0], b = l[1]; - return [t + h, b]; + return t ? e.map(function(i) { + var o = i[0], c = i[1], u = c.map(function(f) { + return typeof f == "string" ? t + f : typeof f == "object" ? Object.fromEntries(Object.entries(f).map(function(a) { + var h = a[0], x = a[1]; + return [t + h, x]; })) : f; }); return [o, u]; @@ -2202,58 +2202,58 @@ function No(e) { set: function() { } }; - var t = 0, n = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(); - function a(u, f) { - n.set(u, f), t++, t > e && (t = 0, o = n, n = /* @__PURE__ */ new Map()); + var t = 0, i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(); + function c(u, f) { + i.set(u, f), t++, t > e && (t = 0, o = i, i = /* @__PURE__ */ new Map()); } return { get: function(f) { - var l = n.get(f); - if (l !== void 0) - return l; - if ((l = o.get(f)) !== void 0) - return a(f, l), l; + var a = i.get(f); + if (a !== void 0) + return a; + if ((a = o.get(f)) !== void 0) + return c(f, a), a; }, - set: function(f, l) { - n.has(f) ? n.set(f, l) : a(f, l); + set: function(f, a) { + i.has(f) ? i.set(f, a) : c(f, a); } }; } var ri = "!"; function Mo(e) { - var t = e.separator || ":", n = t.length === 1, o = t[0], a = t.length; + var t = e.separator || ":", i = t.length === 1, o = t[0], c = t.length; return function(f) { - for (var l = [], h = 0, b = 0, w, x = 0; x < f.length; x++) { - var I = f[x]; + for (var a = [], h = 0, x = 0, y, b = 0; b < f.length; b++) { + var I = f[b]; if (h === 0) { - if (I === o && (n || f.slice(x, x + a) === t)) { - l.push(f.slice(b, x)), b = x + a; + if (I === o && (i || f.slice(b, b + c) === t)) { + a.push(f.slice(x, b)), x = b + c; continue; } if (I === "/") { - w = x; + y = b; continue; } } I === "[" ? h++ : I === "]" && h--; } - var S = l.length === 0 ? f : f.substring(b), B = S.startsWith(ri), _ = B ? S.substring(1) : S, $ = w && w > b ? w - b : void 0; + var P = a.length === 0 ? f : f.substring(x), O = P.startsWith(ri), S = O ? P.substring(1) : P, ne = y && y > x ? y - x : void 0; return { - modifiers: l, - hasImportantModifier: B, - baseClassName: _, - maybePostfixModifierPosition: $ + modifiers: a, + hasImportantModifier: O, + baseClassName: S, + maybePostfixModifierPosition: ne }; }; } function Uo(e) { if (e.length <= 1) return e; - var t = [], n = []; + var t = [], i = []; return e.forEach(function(o) { - var a = o[0] === "["; - a ? (t.push.apply(t, n.sort().concat([o])), n = []) : n.push(o); - }), t.push.apply(t, n.sort()), t; + var c = o[0] === "["; + c ? (t.push.apply(t, i.sort().concat([o])), i = []) : i.push(o); + }), t.push.apply(t, i.sort()), t; } function Do(e) { return { @@ -2264,73 +2264,73 @@ function Do(e) { } var zo = /\s+/; function $o(e, t) { - var n = t.splitModifiers, o = t.getClassGroupId, a = t.getConflictingClassGroupIds, u = /* @__PURE__ */ new Set(); + var i = t.splitModifiers, o = t.getClassGroupId, c = t.getConflictingClassGroupIds, u = /* @__PURE__ */ new Set(); return e.trim().split(zo).map(function(f) { - var l = n(f), h = l.modifiers, b = l.hasImportantModifier, w = l.baseClassName, x = l.maybePostfixModifierPosition, I = o(x ? w.substring(0, x) : w), S = !!x; + var a = i(f), h = a.modifiers, x = a.hasImportantModifier, y = a.baseClassName, b = a.maybePostfixModifierPosition, I = o(b ? y.substring(0, b) : y), P = !!b; if (!I) { - if (!x) + if (!b) return { isTailwindClass: !1, originalClassName: f }; - if (I = o(w), !I) + if (I = o(y), !I) return { isTailwindClass: !1, originalClassName: f }; - S = !1; + P = !1; } - var B = Uo(h).join(":"), _ = b ? B + ri : B; + var O = Uo(h).join(":"), S = x ? O + ri : O; return { isTailwindClass: !0, - modifierId: _, + modifierId: S, classGroupId: I, originalClassName: f, - hasPostfixModifier: S + hasPostfixModifier: P }; }).reverse().filter(function(f) { if (!f.isTailwindClass) return !0; - var l = f.modifierId, h = f.classGroupId, b = f.hasPostfixModifier, w = l + h; - return u.has(w) ? !1 : (u.add(w), a(h, b).forEach(function(x) { - return u.add(l + x); + var a = f.modifierId, h = f.classGroupId, x = f.hasPostfixModifier, y = a + h; + return u.has(y) ? !1 : (u.add(y), c(h, x).forEach(function(b) { + return u.add(a + b); }), !0); }).reverse().map(function(f) { return f.originalClassName; }).join(" "); } -function jr() { - for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) - t[n] = arguments[n]; - var o, a, u, f = l; - function l(b) { - var w = t[0], x = t.slice(1), I = x.reduce(function(S, B) { - return B(S); - }, w()); - return o = Do(I), a = o.cache.get, u = o.cache.set, f = h, h(b); +function Rr() { + for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++) + t[i] = arguments[i]; + var o, c, u, f = a; + function a(x) { + var y = t[0], b = t.slice(1), I = b.reduce(function(P, O) { + return O(P); + }, y()); + return o = Do(I), c = o.cache.get, u = o.cache.set, f = h, h(x); } - function h(b) { - var w = a(b); - if (w) - return w; - var x = $o(b, o); - return u(b, x), x; + function h(x) { + var y = c(x); + if (y) + return y; + var b = $o(x, o); + return u(x, b), b; } return function() { - return f(Ro.apply(null, arguments)); + return f(ko.apply(null, arguments)); }; } -function Z(e) { +function K(e) { var t = function(o) { return o[e] || []; }; return t.isThemeGetter = !0, t; } var ni = /^\[(?:([a-z-]+):)?(.+)\]$/i, Vo = /^\d+\/\d+$/, Wo = /* @__PURE__ */ new Set(["px", "full", "screen"]), Go = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, qo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ho = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/; -function Ae(e) { - return rt(e) || Wo.has(e) || Vo.test(e) || Rr(e); +function Be(e) { + return tt(e) || Wo.has(e) || Vo.test(e) || kr(e); } -function Rr(e) { +function kr(e) { return it(e, "length", Qo); } function Yo(e) { @@ -2343,32 +2343,32 @@ function Xo(e) { return it(e, "url", es); } function Wt(e) { - return it(e, "number", rt); + return it(e, "number", tt); } -function rt(e) { +function tt(e) { return !Number.isNaN(Number(e)); } function Ko(e) { - return e.endsWith("%") && rt(e.slice(0, -1)); + return e.endsWith("%") && tt(e.slice(0, -1)); } -function _t(e) { - return yn(e) || it(e, "number", yn); +function jt(e) { + return gn(e) || it(e, "number", gn); } -function U(e) { +function M(e) { return ni.test(e); } -function jt() { +function Rt() { return !0; } -function He(e) { +function qe(e) { return Go.test(e); } function Zo(e) { return it(e, "", ts); } -function it(e, t, n) { +function it(e, t, i) { var o = ni.exec(e); - return o ? o[1] ? o[1] === t : n(o[2]) : !1; + return o ? o[1] ? o[1] === t : i(o[2]) : !1; } function Qo(e) { return qo.test(e); @@ -2379,68 +2379,68 @@ function ii() { function es(e) { return e.startsWith("url("); } -function yn(e) { +function gn(e) { return Number.isInteger(Number(e)); } function ts(e) { return Ho.test(e); } function Br() { - var e = Z("colors"), t = Z("spacing"), n = Z("blur"), o = Z("brightness"), a = Z("borderColor"), u = Z("borderRadius"), f = Z("borderSpacing"), l = Z("borderWidth"), h = Z("contrast"), b = Z("grayscale"), w = Z("hueRotate"), x = Z("invert"), I = Z("gap"), S = Z("gradientColorStops"), B = Z("gradientColorStopPositions"), _ = Z("inset"), $ = Z("margin"), P = Z("opacity"), N = Z("padding"), le = Z("saturate"), we = Z("scale"), A = Z("sepia"), he = Z("skew"), ge = Z("space"), _e = Z("translate"), xe = function() { + var e = K("colors"), t = K("spacing"), i = K("blur"), o = K("brightness"), c = K("borderColor"), u = K("borderRadius"), f = K("borderSpacing"), a = K("borderWidth"), h = K("contrast"), x = K("grayscale"), y = K("hueRotate"), b = K("invert"), I = K("gap"), P = K("gradientColorStops"), O = K("gradientColorStopPositions"), S = K("inset"), ne = K("margin"), j = K("opacity"), L = K("padding"), ae = K("saturate"), me = K("scale"), k = K("sepia"), pe = K("skew"), we = K("space"), _e = K("translate"), be = function() { return ["auto", "contain", "none"]; }, je = function() { return ["auto", "hidden", "clip", "visible", "scroll"]; - }, pe = function() { - return ["auto", U, t]; + }, de = function() { + return ["auto", M, t]; }, T = function() { - return [U, t]; - }, k = function() { - return ["", Ae]; + return [M, t]; + }, _ = function() { + return ["", Be]; }, C = function() { - return ["auto", rt, U]; - }, O = function() { + return ["auto", tt, M]; + }, A = function() { return ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"]; - }, L = function() { + }, F = function() { return ["solid", "dashed", "dotted", "double", "none"]; - }, D = function() { + }, U = function() { return ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"]; - }, W = function() { + }, V = function() { return ["start", "end", "center", "between", "around", "evenly", "stretch"]; - }, H = function() { - return ["", "0", U]; - }, re = function() { + }, q = function() { + return ["", "0", M]; + }, te = function() { return ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"]; - }, V = function() { - return [rt, Wt]; - }, G = function() { - return [rt, U]; + }, z = function() { + return [tt, Wt]; + }, W = function() { + return [tt, M]; }; return { cacheSize: 500, theme: { - colors: [jt], - spacing: [Ae], - blur: ["none", "", He, U], - brightness: V(), + colors: [Rt], + spacing: [Be], + blur: ["none", "", qe, M], + brightness: z(), borderColor: [e], - borderRadius: ["none", "", "full", He, U], + borderRadius: ["none", "", "full", qe, M], borderSpacing: T(), - borderWidth: k(), - contrast: V(), - grayscale: H(), - hueRotate: G(), - invert: H(), + borderWidth: _(), + contrast: z(), + grayscale: q(), + hueRotate: W(), + invert: q(), gap: T(), gradientColorStops: [e], - gradientColorStopPositions: [Ko, Rr], - inset: pe(), - margin: pe(), - opacity: V(), + gradientColorStopPositions: [Ko, kr], + inset: de(), + margin: de(), + opacity: z(), padding: T(), - saturate: V(), - scale: V(), - sepia: H(), - skew: G(), + saturate: z(), + scale: z(), + sepia: q(), + skew: W(), space: T(), translate: T() }, @@ -2451,7 +2451,7 @@ function Br() { * @see https://tailwindcss.com/docs/aspect-ratio */ aspect: [{ - aspect: ["auto", "square", "video", U] + aspect: ["auto", "square", "video", M] }], /** * Container @@ -2463,21 +2463,21 @@ function Br() { * @see https://tailwindcss.com/docs/columns */ columns: [{ - columns: [He] + columns: [qe] }], /** * Break After * @see https://tailwindcss.com/docs/break-after */ "break-after": [{ - "break-after": re() + "break-after": te() }], /** * Break Before * @see https://tailwindcss.com/docs/break-before */ "break-before": [{ - "break-before": re() + "break-before": te() }], /** * Break Inside @@ -2536,7 +2536,7 @@ function Br() { * @see https://tailwindcss.com/docs/object-position */ "object-position": [{ - object: [].concat(O(), [U]) + object: [].concat(A(), [M]) }], /** * Overflow @@ -2564,21 +2564,21 @@ function Br() { * @see https://tailwindcss.com/docs/overscroll-behavior */ overscroll: [{ - overscroll: xe() + overscroll: be() }], /** * Overscroll Behavior X * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-x": [{ - "overscroll-x": xe() + "overscroll-x": be() }], /** * Overscroll Behavior Y * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-y": [{ - "overscroll-y": xe() + "overscroll-y": be() }], /** * Position @@ -2590,63 +2590,63 @@ function Br() { * @see https://tailwindcss.com/docs/top-right-bottom-left */ inset: [{ - inset: [_] + inset: [S] }], /** * Right / Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-x": [{ - "inset-x": [_] + "inset-x": [S] }], /** * Top / Bottom * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-y": [{ - "inset-y": [_] + "inset-y": [S] }], /** * Start * @see https://tailwindcss.com/docs/top-right-bottom-left */ start: [{ - start: [_] + start: [S] }], /** * End * @see https://tailwindcss.com/docs/top-right-bottom-left */ end: [{ - end: [_] + end: [S] }], /** * Top * @see https://tailwindcss.com/docs/top-right-bottom-left */ top: [{ - top: [_] + top: [S] }], /** * Right * @see https://tailwindcss.com/docs/top-right-bottom-left */ right: [{ - right: [_] + right: [S] }], /** * Bottom * @see https://tailwindcss.com/docs/top-right-bottom-left */ bottom: [{ - bottom: [_] + bottom: [S] }], /** * Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ left: [{ - left: [_] + left: [S] }], /** * Visibility @@ -2658,7 +2658,7 @@ function Br() { * @see https://tailwindcss.com/docs/z-index */ z: [{ - z: ["auto", _t] + z: ["auto", jt] }], // Flexbox and Grid /** @@ -2666,7 +2666,7 @@ function Br() { * @see https://tailwindcss.com/docs/flex-basis */ basis: [{ - basis: pe() + basis: de() }], /** * Flex Direction @@ -2687,35 +2687,35 @@ function Br() { * @see https://tailwindcss.com/docs/flex */ flex: [{ - flex: ["1", "auto", "initial", "none", U] + flex: ["1", "auto", "initial", "none", M] }], /** * Flex Grow * @see https://tailwindcss.com/docs/flex-grow */ grow: [{ - grow: H() + grow: q() }], /** * Flex Shrink * @see https://tailwindcss.com/docs/flex-shrink */ shrink: [{ - shrink: H() + shrink: q() }], /** * Order * @see https://tailwindcss.com/docs/order */ order: [{ - order: ["first", "last", "none", _t] + order: ["first", "last", "none", jt] }], /** * Grid Template Columns * @see https://tailwindcss.com/docs/grid-template-columns */ "grid-cols": [{ - "grid-cols": [jt] + "grid-cols": [Rt] }], /** * Grid Column Start / End @@ -2723,8 +2723,8 @@ function Br() { */ "col-start-end": [{ col: ["auto", { - span: ["full", _t] - }, U] + span: ["full", jt] + }, M] }], /** * Grid Column Start @@ -2745,7 +2745,7 @@ function Br() { * @see https://tailwindcss.com/docs/grid-template-rows */ "grid-rows": [{ - "grid-rows": [jt] + "grid-rows": [Rt] }], /** * Grid Row Start / End @@ -2753,8 +2753,8 @@ function Br() { */ "row-start-end": [{ row: ["auto", { - span: [_t] - }, U] + span: [jt] + }, M] }], /** * Grid Row Start @@ -2782,14 +2782,14 @@ function Br() { * @see https://tailwindcss.com/docs/grid-auto-columns */ "auto-cols": [{ - "auto-cols": ["auto", "min", "max", "fr", U] + "auto-cols": ["auto", "min", "max", "fr", M] }], /** * Grid Auto Rows * @see https://tailwindcss.com/docs/grid-auto-rows */ "auto-rows": [{ - "auto-rows": ["auto", "min", "max", "fr", U] + "auto-rows": ["auto", "min", "max", "fr", M] }], /** * Gap @@ -2817,7 +2817,7 @@ function Br() { * @see https://tailwindcss.com/docs/justify-content */ "justify-content": [{ - justify: ["normal"].concat(W()) + justify: ["normal"].concat(V()) }], /** * Justify Items @@ -2838,7 +2838,7 @@ function Br() { * @see https://tailwindcss.com/docs/align-content */ "align-content": [{ - content: ["normal"].concat(W(), ["baseline"]) + content: ["normal"].concat(V(), ["baseline"]) }], /** * Align Items @@ -2859,7 +2859,7 @@ function Br() { * @see https://tailwindcss.com/docs/place-content */ "place-content": [{ - "place-content": [].concat(W(), ["baseline"]) + "place-content": [].concat(V(), ["baseline"]) }], /** * Place Items @@ -2881,133 +2881,133 @@ function Br() { * @see https://tailwindcss.com/docs/padding */ p: [{ - p: [N] + p: [L] }], /** * Padding X * @see https://tailwindcss.com/docs/padding */ px: [{ - px: [N] + px: [L] }], /** * Padding Y * @see https://tailwindcss.com/docs/padding */ py: [{ - py: [N] + py: [L] }], /** * Padding Start * @see https://tailwindcss.com/docs/padding */ ps: [{ - ps: [N] + ps: [L] }], /** * Padding End * @see https://tailwindcss.com/docs/padding */ pe: [{ - pe: [N] + pe: [L] }], /** * Padding Top * @see https://tailwindcss.com/docs/padding */ pt: [{ - pt: [N] + pt: [L] }], /** * Padding Right * @see https://tailwindcss.com/docs/padding */ pr: [{ - pr: [N] + pr: [L] }], /** * Padding Bottom * @see https://tailwindcss.com/docs/padding */ pb: [{ - pb: [N] + pb: [L] }], /** * Padding Left * @see https://tailwindcss.com/docs/padding */ pl: [{ - pl: [N] + pl: [L] }], /** * Margin * @see https://tailwindcss.com/docs/margin */ m: [{ - m: [$] + m: [ne] }], /** * Margin X * @see https://tailwindcss.com/docs/margin */ mx: [{ - mx: [$] + mx: [ne] }], /** * Margin Y * @see https://tailwindcss.com/docs/margin */ my: [{ - my: [$] + my: [ne] }], /** * Margin Start * @see https://tailwindcss.com/docs/margin */ ms: [{ - ms: [$] + ms: [ne] }], /** * Margin End * @see https://tailwindcss.com/docs/margin */ me: [{ - me: [$] + me: [ne] }], /** * Margin Top * @see https://tailwindcss.com/docs/margin */ mt: [{ - mt: [$] + mt: [ne] }], /** * Margin Right * @see https://tailwindcss.com/docs/margin */ mr: [{ - mr: [$] + mr: [ne] }], /** * Margin Bottom * @see https://tailwindcss.com/docs/margin */ mb: [{ - mb: [$] + mb: [ne] }], /** * Margin Left * @see https://tailwindcss.com/docs/margin */ ml: [{ - ml: [$] + ml: [ne] }], /** * Space Between X * @see https://tailwindcss.com/docs/space */ "space-x": [{ - "space-x": [ge] + "space-x": [we] }], /** * Space Between X Reverse @@ -3019,7 +3019,7 @@ function Br() { * @see https://tailwindcss.com/docs/space */ "space-y": [{ - "space-y": [ge] + "space-y": [we] }], /** * Space Between Y Reverse @@ -3032,14 +3032,14 @@ function Br() { * @see https://tailwindcss.com/docs/width */ w: [{ - w: ["auto", "min", "max", "fit", U, t] + w: ["auto", "min", "max", "fit", M, t] }], /** * Min-Width * @see https://tailwindcss.com/docs/min-width */ "min-w": [{ - "min-w": ["min", "max", "fit", U, Ae] + "min-w": ["min", "max", "fit", M, Be] }], /** * Max-Width @@ -3047,29 +3047,29 @@ function Br() { */ "max-w": [{ "max-w": ["0", "none", "full", "min", "max", "fit", "prose", { - screen: [He] - }, He, U] + screen: [qe] + }, qe, M] }], /** * Height * @see https://tailwindcss.com/docs/height */ h: [{ - h: [U, t, "auto", "min", "max", "fit"] + h: [M, t, "auto", "min", "max", "fit"] }], /** * Min-Height * @see https://tailwindcss.com/docs/min-height */ "min-h": [{ - "min-h": ["min", "max", "fit", U, Ae] + "min-h": ["min", "max", "fit", M, Be] }], /** * Max-Height * @see https://tailwindcss.com/docs/max-height */ "max-h": [{ - "max-h": [U, t, "min", "max", "fit"] + "max-h": [M, t, "min", "max", "fit"] }], // Typography /** @@ -3077,7 +3077,7 @@ function Br() { * @see https://tailwindcss.com/docs/font-size */ "font-size": [{ - text: ["base", He, Rr] + text: ["base", qe, kr] }], /** * Font Smoothing @@ -3101,7 +3101,7 @@ function Br() { * @see https://tailwindcss.com/docs/font-family */ "font-family": [{ - font: [jt] + font: [Rt] }], /** * Font Variant Numeric @@ -3138,35 +3138,35 @@ function Br() { * @see https://tailwindcss.com/docs/letter-spacing */ tracking: [{ - tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", U] + tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", M] }], /** * Line Clamp * @see https://tailwindcss.com/docs/line-clamp */ "line-clamp": [{ - "line-clamp": ["none", rt, Wt] + "line-clamp": ["none", tt, Wt] }], /** * Line Height * @see https://tailwindcss.com/docs/line-height */ leading: [{ - leading: ["none", "tight", "snug", "normal", "relaxed", "loose", U, Ae] + leading: ["none", "tight", "snug", "normal", "relaxed", "loose", M, Be] }], /** * List Style Image * @see https://tailwindcss.com/docs/list-style-image */ "list-image": [{ - "list-image": ["none", U] + "list-image": ["none", M] }], /** * List Style Type * @see https://tailwindcss.com/docs/list-style-type */ "list-style-type": [{ - list: ["none", "disc", "decimal", U] + list: ["none", "disc", "decimal", M] }], /** * List Style Position @@ -3188,7 +3188,7 @@ function Br() { * @see https://tailwindcss.com/docs/placeholder-opacity */ "placeholder-opacity": [{ - "placeholder-opacity": [P] + "placeholder-opacity": [j] }], /** * Text Alignment @@ -3209,7 +3209,7 @@ function Br() { * @see https://tailwindcss.com/docs/text-opacity */ "text-opacity": [{ - "text-opacity": [P] + "text-opacity": [j] }], /** * Text Decoration @@ -3221,21 +3221,21 @@ function Br() { * @see https://tailwindcss.com/docs/text-decoration-style */ "text-decoration-style": [{ - decoration: [].concat(L(), ["wavy"]) + decoration: [].concat(F(), ["wavy"]) }], /** * Text Decoration Thickness * @see https://tailwindcss.com/docs/text-decoration-thickness */ "text-decoration-thickness": [{ - decoration: ["auto", "from-font", Ae] + decoration: ["auto", "from-font", Be] }], /** * Text Underline Offset * @see https://tailwindcss.com/docs/text-underline-offset */ "underline-offset": [{ - "underline-offset": ["auto", U, Ae] + "underline-offset": ["auto", M, Be] }], /** * Text Decoration Color @@ -3266,7 +3266,7 @@ function Br() { * @see https://tailwindcss.com/docs/vertical-align */ "vertical-align": [{ - align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", U] + align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", M] }], /** * Whitespace @@ -3294,7 +3294,7 @@ function Br() { * @see https://tailwindcss.com/docs/content */ content: [{ - content: ["none", U] + content: ["none", M] }], // Backgrounds /** @@ -3317,7 +3317,7 @@ function Br() { * @see https://tailwindcss.com/docs/background-opacity */ "bg-opacity": [{ - "bg-opacity": [P] + "bg-opacity": [j] }], /** * Background Origin @@ -3331,7 +3331,7 @@ function Br() { * @see https://tailwindcss.com/docs/background-position */ "bg-position": [{ - bg: [].concat(O(), [Jo]) + bg: [].concat(A(), [Jo]) }], /** * Background Repeat @@ -3370,42 +3370,42 @@ function Br() { * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-from-pos": [{ - from: [B] + from: [O] }], /** * Gradient Color Stops Via Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-via-pos": [{ - via: [B] + via: [O] }], /** * Gradient Color Stops To Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-to-pos": [{ - to: [B] + to: [O] }], /** * Gradient Color Stops From * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-from": [{ - from: [S] + from: [P] }], /** * Gradient Color Stops Via * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-via": [{ - via: [S] + via: [P] }], /** * Gradient Color Stops To * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-to": [{ - to: [S] + to: [P] }], // Borders /** @@ -3518,84 +3518,84 @@ function Br() { * @see https://tailwindcss.com/docs/border-width */ "border-w": [{ - border: [l] + border: [a] }], /** * Border Width X * @see https://tailwindcss.com/docs/border-width */ "border-w-x": [{ - "border-x": [l] + "border-x": [a] }], /** * Border Width Y * @see https://tailwindcss.com/docs/border-width */ "border-w-y": [{ - "border-y": [l] + "border-y": [a] }], /** * Border Width Start * @see https://tailwindcss.com/docs/border-width */ "border-w-s": [{ - "border-s": [l] + "border-s": [a] }], /** * Border Width End * @see https://tailwindcss.com/docs/border-width */ "border-w-e": [{ - "border-e": [l] + "border-e": [a] }], /** * Border Width Top * @see https://tailwindcss.com/docs/border-width */ "border-w-t": [{ - "border-t": [l] + "border-t": [a] }], /** * Border Width Right * @see https://tailwindcss.com/docs/border-width */ "border-w-r": [{ - "border-r": [l] + "border-r": [a] }], /** * Border Width Bottom * @see https://tailwindcss.com/docs/border-width */ "border-w-b": [{ - "border-b": [l] + "border-b": [a] }], /** * Border Width Left * @see https://tailwindcss.com/docs/border-width */ "border-w-l": [{ - "border-l": [l] + "border-l": [a] }], /** * Border Opacity * @see https://tailwindcss.com/docs/border-opacity */ "border-opacity": [{ - "border-opacity": [P] + "border-opacity": [j] }], /** * Border Style * @see https://tailwindcss.com/docs/border-style */ "border-style": [{ - border: [].concat(L(), ["hidden"]) + border: [].concat(F(), ["hidden"]) }], /** * Divide Width X * @see https://tailwindcss.com/docs/divide-width */ "divide-x": [{ - "divide-x": [l] + "divide-x": [a] }], /** * Divide Width X Reverse @@ -3607,7 +3607,7 @@ function Br() { * @see https://tailwindcss.com/docs/divide-width */ "divide-y": [{ - "divide-y": [l] + "divide-y": [a] }], /** * Divide Width Y Reverse @@ -3619,91 +3619,91 @@ function Br() { * @see https://tailwindcss.com/docs/divide-opacity */ "divide-opacity": [{ - "divide-opacity": [P] + "divide-opacity": [j] }], /** * Divide Style * @see https://tailwindcss.com/docs/divide-style */ "divide-style": [{ - divide: L() + divide: F() }], /** * Border Color * @see https://tailwindcss.com/docs/border-color */ "border-color": [{ - border: [a] + border: [c] }], /** * Border Color X * @see https://tailwindcss.com/docs/border-color */ "border-color-x": [{ - "border-x": [a] + "border-x": [c] }], /** * Border Color Y * @see https://tailwindcss.com/docs/border-color */ "border-color-y": [{ - "border-y": [a] + "border-y": [c] }], /** * Border Color Top * @see https://tailwindcss.com/docs/border-color */ "border-color-t": [{ - "border-t": [a] + "border-t": [c] }], /** * Border Color Right * @see https://tailwindcss.com/docs/border-color */ "border-color-r": [{ - "border-r": [a] + "border-r": [c] }], /** * Border Color Bottom * @see https://tailwindcss.com/docs/border-color */ "border-color-b": [{ - "border-b": [a] + "border-b": [c] }], /** * Border Color Left * @see https://tailwindcss.com/docs/border-color */ "border-color-l": [{ - "border-l": [a] + "border-l": [c] }], /** * Divide Color * @see https://tailwindcss.com/docs/divide-color */ "divide-color": [{ - divide: [a] + divide: [c] }], /** * Outline Style * @see https://tailwindcss.com/docs/outline-style */ "outline-style": [{ - outline: [""].concat(L()) + outline: [""].concat(F()) }], /** * Outline Offset * @see https://tailwindcss.com/docs/outline-offset */ "outline-offset": [{ - "outline-offset": [U, Ae] + "outline-offset": [M, Be] }], /** * Outline Width * @see https://tailwindcss.com/docs/outline-width */ "outline-w": [{ - outline: [Ae] + outline: [Be] }], /** * Outline Color @@ -3717,7 +3717,7 @@ function Br() { * @see https://tailwindcss.com/docs/ring-width */ "ring-w": [{ - ring: k() + ring: _() }], /** * Ring Width Inset @@ -3736,14 +3736,14 @@ function Br() { * @see https://tailwindcss.com/docs/ring-opacity */ "ring-opacity": [{ - "ring-opacity": [P] + "ring-opacity": [j] }], /** * Ring Offset Width * @see https://tailwindcss.com/docs/ring-offset-width */ "ring-offset-w": [{ - "ring-offset": [Ae] + "ring-offset": [Be] }], /** * Ring Offset Color @@ -3758,35 +3758,35 @@ function Br() { * @see https://tailwindcss.com/docs/box-shadow */ shadow: [{ - shadow: ["", "inner", "none", He, Zo] + shadow: ["", "inner", "none", qe, Zo] }], /** * Box Shadow Color * @see https://tailwindcss.com/docs/box-shadow-color */ "shadow-color": [{ - shadow: [jt] + shadow: [Rt] }], /** * Opacity * @see https://tailwindcss.com/docs/opacity */ opacity: [{ - opacity: [P] + opacity: [j] }], /** * Mix Blend Mode * @see https://tailwindcss.com/docs/mix-blend-mode */ "mix-blend": [{ - "mix-blend": D() + "mix-blend": U() }], /** * Background Blend Mode * @see https://tailwindcss.com/docs/background-blend-mode */ "bg-blend": [{ - "bg-blend": D() + "bg-blend": U() }], // Filters /** @@ -3802,7 +3802,7 @@ function Br() { * @see https://tailwindcss.com/docs/blur */ blur: [{ - blur: [n] + blur: [i] }], /** * Brightness @@ -3823,42 +3823,42 @@ function Br() { * @see https://tailwindcss.com/docs/drop-shadow */ "drop-shadow": [{ - "drop-shadow": ["", "none", He, U] + "drop-shadow": ["", "none", qe, M] }], /** * Grayscale * @see https://tailwindcss.com/docs/grayscale */ grayscale: [{ - grayscale: [b] + grayscale: [x] }], /** * Hue Rotate * @see https://tailwindcss.com/docs/hue-rotate */ "hue-rotate": [{ - "hue-rotate": [w] + "hue-rotate": [y] }], /** * Invert * @see https://tailwindcss.com/docs/invert */ invert: [{ - invert: [x] + invert: [b] }], /** * Saturate * @see https://tailwindcss.com/docs/saturate */ saturate: [{ - saturate: [le] + saturate: [ae] }], /** * Sepia * @see https://tailwindcss.com/docs/sepia */ sepia: [{ - sepia: [A] + sepia: [k] }], /** * Backdrop Filter @@ -3873,7 +3873,7 @@ function Br() { * @see https://tailwindcss.com/docs/backdrop-blur */ "backdrop-blur": [{ - "backdrop-blur": [n] + "backdrop-blur": [i] }], /** * Backdrop Brightness @@ -3894,42 +3894,42 @@ function Br() { * @see https://tailwindcss.com/docs/backdrop-grayscale */ "backdrop-grayscale": [{ - "backdrop-grayscale": [b] + "backdrop-grayscale": [x] }], /** * Backdrop Hue Rotate * @see https://tailwindcss.com/docs/backdrop-hue-rotate */ "backdrop-hue-rotate": [{ - "backdrop-hue-rotate": [w] + "backdrop-hue-rotate": [y] }], /** * Backdrop Invert * @see https://tailwindcss.com/docs/backdrop-invert */ "backdrop-invert": [{ - "backdrop-invert": [x] + "backdrop-invert": [b] }], /** * Backdrop Opacity * @see https://tailwindcss.com/docs/backdrop-opacity */ "backdrop-opacity": [{ - "backdrop-opacity": [P] + "backdrop-opacity": [j] }], /** * Backdrop Saturate * @see https://tailwindcss.com/docs/backdrop-saturate */ "backdrop-saturate": [{ - "backdrop-saturate": [le] + "backdrop-saturate": [ae] }], /** * Backdrop Sepia * @see https://tailwindcss.com/docs/backdrop-sepia */ "backdrop-sepia": [{ - "backdrop-sepia": [A] + "backdrop-sepia": [k] }], // Tables /** @@ -3980,35 +3980,35 @@ function Br() { * @see https://tailwindcss.com/docs/transition-property */ transition: [{ - transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", U] + transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", M] }], /** * Transition Duration * @see https://tailwindcss.com/docs/transition-duration */ duration: [{ - duration: G() + duration: W() }], /** * Transition Timing Function * @see https://tailwindcss.com/docs/transition-timing-function */ ease: [{ - ease: ["linear", "in", "out", "in-out", U] + ease: ["linear", "in", "out", "in-out", M] }], /** * Transition Delay * @see https://tailwindcss.com/docs/transition-delay */ delay: [{ - delay: G() + delay: W() }], /** * Animation * @see https://tailwindcss.com/docs/animation */ animate: [{ - animate: ["none", "spin", "ping", "pulse", "bounce", U] + animate: ["none", "spin", "ping", "pulse", "bounce", M] }], // Transforms /** @@ -4023,28 +4023,28 @@ function Br() { * @see https://tailwindcss.com/docs/scale */ scale: [{ - scale: [we] + scale: [me] }], /** * Scale X * @see https://tailwindcss.com/docs/scale */ "scale-x": [{ - "scale-x": [we] + "scale-x": [me] }], /** * Scale Y * @see https://tailwindcss.com/docs/scale */ "scale-y": [{ - "scale-y": [we] + "scale-y": [me] }], /** * Rotate * @see https://tailwindcss.com/docs/rotate */ rotate: [{ - rotate: [_t, U] + rotate: [jt, M] }], /** * Translate X @@ -4065,21 +4065,21 @@ function Br() { * @see https://tailwindcss.com/docs/skew */ "skew-x": [{ - "skew-x": [he] + "skew-x": [pe] }], /** * Skew Y * @see https://tailwindcss.com/docs/skew */ "skew-y": [{ - "skew-y": [he] + "skew-y": [pe] }], /** * Transform Origin * @see https://tailwindcss.com/docs/transform-origin */ "transform-origin": [{ - origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", U] + origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", M] }], // Interactivity /** @@ -4099,7 +4099,7 @@ function Br() { * @see https://tailwindcss.com/docs/cursor */ cursor: [{ - cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", U] + cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", M] }], /** * Caret Color @@ -4304,7 +4304,7 @@ function Br() { * @see https://tailwindcss.com/docs/will-change */ "will-change": [{ - "will-change": ["auto", "scroll", "contents", "transform", U] + "will-change": ["auto", "scroll", "contents", "transform", M] }], // SVG /** @@ -4319,7 +4319,7 @@ function Br() { * @see https://tailwindcss.com/docs/stroke-width */ "stroke-w": [{ - stroke: [Ae, Wt] + stroke: [Be, Wt] }], /** * Stroke @@ -4383,209 +4383,193 @@ function Br() { }; } function rs(e, t) { - for (var n in t) - oi(e, n, t[n]); + for (var i in t) + oi(e, i, t[i]); return e; } var ns = Object.prototype.hasOwnProperty, is = /* @__PURE__ */ new Set(["string", "number", "boolean"]); -function oi(e, t, n) { - if (!ns.call(e, t) || is.has(typeof n) || n === null) { - e[t] = n; +function oi(e, t, i) { + if (!ns.call(e, t) || is.has(typeof i) || i === null) { + e[t] = i; return; } - if (Array.isArray(n) && Array.isArray(e[t])) { - e[t] = e[t].concat(n); + if (Array.isArray(i) && Array.isArray(e[t])) { + e[t] = e[t].concat(i); return; } - if (typeof n == "object" && typeof e[t] == "object") { + if (typeof i == "object" && typeof e[t] == "object") { if (e[t] === null) { - e[t] = n; + e[t] = i; return; } - for (var o in n) - oi(e[t], o, n[o]); + for (var o in i) + oi(e[t], o, i[o]); } } function os(e) { - for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++) - n[o - 1] = arguments[o]; - return typeof e == "function" ? jr.apply(void 0, [Br, e].concat(n)) : jr.apply(void 0, [function() { + for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++) + i[o - 1] = arguments[o]; + return typeof e == "function" ? Rr.apply(void 0, [Br, e].concat(i)) : Rr.apply(void 0, [function() { return rs(Br(), e); - }].concat(n)); + }].concat(i)); } -var ss = /* @__PURE__ */ jr(Br), as = { twMerge: !0, twMergeConfig: {}, responsiveVariants: !1 }, si = (e) => e || void 0, Ot = (...e) => si(Kn(e).filter(Boolean).join(" ")), wr = null, Qt = {}, Ar = !1, Rt = (...e) => (t) => t.twMerge ? ((!wr || Ar) && (Ar = !1, wr = ve(Qt) ? ss : os(Qt)), si(wr(Ot(e)))) : Ot(e), bn = (e, t) => { - for (let n in t) - e.hasOwnProperty(n) ? e[n] = Ot(e[n], t[n]) : e[n] = t[n]; +var ss = /* @__PURE__ */ Rr(Br), as = { twMerge: !0, twMergeConfig: {}, responsiveVariants: !1 }, si = (e) => e || void 0, Ot = (...e) => si(Kn(e).filter(Boolean).join(" ")), wr = null, Qt = {}, Ar = !1, kt = (...e) => (t) => t.twMerge ? ((!wr || Ar) && (Ar = !1, wr = xe(Qt) ? ss : os(Qt)), si(wr(Ot(e)))) : Ot(e), bn = (e, t) => { + for (let i in t) + e.hasOwnProperty(i) ? e[i] = Ot(e[i], t[i]) : e[i] = t[i]; return e; }, ie = (e, t) => { - let { extend: n = null, slots: o = {}, variants: a = {}, compoundVariants: u = [], compoundSlots: f = [], defaultVariants: l = {} } = e, h = { ...as, ...t }, b = n != null && n.base ? Ot(n.base, e == null ? void 0 : e.base) : e == null ? void 0 : e.base, w = n != null && n.variants && !ve(n.variants) ? Qn(a, n.variants) : a, x = n != null && n.defaultVariants && !ve(n.defaultVariants) ? { ...n.defaultVariants, ...l } : l; - !ve(h.twMergeConfig) && !jo(h.twMergeConfig, Qt) && (Ar = !0, Qt = h.twMergeConfig); - let I = ve(n == null ? void 0 : n.slots), S = ve(o) ? {} : { base: Ot(e == null ? void 0 : e.base, I && (n == null ? void 0 : n.base)), ...o }, B = I ? S : bn({ ...n == null ? void 0 : n.slots }, ve(S) ? { base: e == null ? void 0 : e.base } : S), _ = (P) => { - if (ve(w) && ve(o) && I) - return Rt(b, P == null ? void 0 : P.class, P == null ? void 0 : P.className)(h); + let { extend: i = null, slots: o = {}, variants: c = {}, compoundVariants: u = [], compoundSlots: f = [], defaultVariants: a = {} } = e, h = { ...as, ...t }, x = i != null && i.base ? Ot(i.base, e == null ? void 0 : e.base) : e == null ? void 0 : e.base, y = i != null && i.variants && !xe(i.variants) ? Qn(c, i.variants) : c, b = i != null && i.defaultVariants && !xe(i.defaultVariants) ? { ...i.defaultVariants, ...a } : a; + !xe(h.twMergeConfig) && !Ro(h.twMergeConfig, Qt) && (Ar = !0, Qt = h.twMergeConfig); + let I = xe(i == null ? void 0 : i.slots), P = xe(o) ? {} : { base: Ot(e == null ? void 0 : e.base, I && (i == null ? void 0 : i.base)), ...o }, O = I ? P : bn({ ...i == null ? void 0 : i.slots }, xe(P) ? { base: e == null ? void 0 : e.base } : P), S = (j) => { + if (xe(y) && xe(o) && I) + return kt(x, j == null ? void 0 : j.class, j == null ? void 0 : j.className)(h); if (u && !Array.isArray(u)) throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof u}`); if (f && !Array.isArray(f)) throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`); - let N = (T, k, C = [], O) => { - let L = C; - if (typeof k == "string") - L = L.concat(mn(k).split(" ").map((D) => `${T}:${D}`)); - else if (Array.isArray(k)) - L = L.concat(k.reduce((D, W) => D.concat(`${T}:${W}`), [])); - else if (typeof k == "object" && typeof O == "string") { - for (let D in k) - if (k.hasOwnProperty(D) && D === O) { - let W = k[D]; - if (W && typeof W == "string") { - let H = mn(W); - L[O] ? L[O] = L[O].concat(H.split(" ").map((re) => `${T}:${re}`)) : L[O] = H.split(" ").map((re) => `${T}:${re}`); + let L = (T, _, C = [], A) => { + let F = C; + if (typeof _ == "string") + F = F.concat(mn(_).split(" ").map((U) => `${T}:${U}`)); + else if (Array.isArray(_)) + F = F.concat(_.reduce((U, V) => U.concat(`${T}:${V}`), [])); + else if (typeof _ == "object" && typeof A == "string") { + for (let U in _) + if (_.hasOwnProperty(U) && U === A) { + let V = _[U]; + if (V && typeof V == "string") { + let q = mn(V); + F[A] ? F[A] = F[A].concat(q.split(" ").map((te) => `${T}:${te}`)) : F[A] = q.split(" ").map((te) => `${T}:${te}`); } else - Array.isArray(W) && W.length > 0 && (L[O] = W.reduce((H, re) => H.concat(`${T}:${re}`), [])); + Array.isArray(V) && V.length > 0 && (F[A] = V.reduce((q, te) => q.concat(`${T}:${te}`), [])); } } - return L; - }, le = (T, k = w, C = null, O = null) => { - var L; - let D = k[T]; - if (!D || ve(D)) + return F; + }, ae = (T, _ = y, C = null, A = null) => { + var F; + let U = _[T]; + if (!U || xe(U)) return null; - let W = (L = O == null ? void 0 : O[T]) != null ? L : P == null ? void 0 : P[T]; - if (W === null) + let V = (F = A == null ? void 0 : A[T]) != null ? F : j == null ? void 0 : j[T]; + if (V === null) return null; - let H = hn(W), re = Array.isArray(h.responsiveVariants) && h.responsiveVariants.length > 0 || h.responsiveVariants === !0, V = x == null ? void 0 : x[T], G = []; - if (typeof H == "object" && re) - for (let [We, Je] of Object.entries(H)) { - let Ge = D[Je]; - if (We === "initial") { - V = Je; + let q = hn(V), te = Array.isArray(h.responsiveVariants) && h.responsiveVariants.length > 0 || h.responsiveVariants === !0, z = b == null ? void 0 : b[T], W = []; + if (typeof q == "object" && te) + for (let [Ve, Ye] of Object.entries(q)) { + let We = U[Ye]; + if (Ve === "initial") { + z = Ye; continue; } - Array.isArray(h.responsiveVariants) && !h.responsiveVariants.includes(We) || (G = N(We, Ge, G, C)); + Array.isArray(h.responsiveVariants) && !h.responsiveVariants.includes(Ve) || (W = L(Ve, We, W, C)); } - let ne = D[H] || D[hn(V)]; - return typeof G == "object" && typeof C == "string" && G[C] ? bn(G, ne) : G.length > 0 ? (G.push(ne), G) : ne; - }, we = () => w ? Object.keys(w).map((T) => le(T, w)) : null, A = (T, k) => { - if (!w || typeof w != "object") + let re = U[q] || U[hn(z)]; + return typeof W == "object" && typeof C == "string" && W[C] ? bn(W, re) : W.length > 0 ? (W.push(re), W) : re; + }, me = () => y ? Object.keys(y).map((T) => ae(T, y)) : null, k = (T, _) => { + if (!y || typeof y != "object") return null; let C = new Array(); - for (let O in w) { - let L = le(O, w, T, k), D = T === "base" && typeof L == "string" ? L : L && L[T]; - D && (C[C.length] = D); + for (let A in y) { + let F = ae(A, y, T, _), U = T === "base" && typeof F == "string" ? F : F && F[T]; + U && (C[C.length] = U); } return C; - }, he = {}; - for (let T in P) - P[T] !== void 0 && (he[T] = P[T]); - let ge = (T, k) => { + }, pe = {}; + for (let T in j) + j[T] !== void 0 && (pe[T] = j[T]); + let we = (T, _) => { var C; - let O = typeof (P == null ? void 0 : P[T]) == "object" ? { [T]: (C = P[T]) == null ? void 0 : C.initial } : {}; - return { ...x, ...he, ...O, ...k }; - }, _e = (T = [], k) => { + let A = typeof (j == null ? void 0 : j[T]) == "object" ? { [T]: (C = j[T]) == null ? void 0 : C.initial } : {}; + return { ...b, ...pe, ...A, ..._ }; + }, _e = (T = [], _) => { let C = []; - for (let { class: O, className: L, ...D } of T) { - let W = !0; - for (let [H, re] of Object.entries(D)) { - let V = ge(H, k); - if (Array.isArray(re)) { - if (!re.includes(V[H])) { - W = !1; + for (let { class: A, className: F, ...U } of T) { + let V = !0; + for (let [q, te] of Object.entries(U)) { + let z = we(q, _); + if (Array.isArray(te)) { + if (!te.includes(z[q])) { + V = !1; break; } - } else if (V[H] !== re) { - W = !1; + } else if (z[q] !== te) { + V = !1; break; } } - W && (O && C.push(O), L && C.push(L)); + V && (A && C.push(A), F && C.push(F)); } return C; - }, xe = (T) => { - let k = _e(u, T), C = _e(n == null ? void 0 : n.compoundVariants, T); - return Zn(C, k); + }, be = (T) => { + let _ = _e(u, T), C = _e(i == null ? void 0 : i.compoundVariants, T); + return Zn(C, _); }, je = (T) => { - let k = xe(T); - if (!Array.isArray(k)) - return k; + let _ = be(T); + if (!Array.isArray(_)) + return _; let C = {}; - for (let O of k) - if (typeof O == "string" && (C.base = Rt(C.base, O)(h)), typeof O == "object") - for (let [L, D] of Object.entries(O)) - C[L] = Rt(C[L], D)(h); + for (let A of _) + if (typeof A == "string" && (C.base = kt(C.base, A)(h)), typeof A == "object") + for (let [F, U] of Object.entries(A)) + C[F] = kt(C[F], U)(h); return C; - }, pe = (T) => { + }, de = (T) => { if (f.length < 1) return null; - let k = {}; - for (let { slots: C = [], class: O, className: L, ...D } of f) { - if (!ve(D)) { - let W = !0; - for (let H of Object.keys(D)) { - let re = ge(H, T)[H]; - if (re === void 0 || (Array.isArray(D[H]) ? !D[H].includes(re) : D[H] !== re)) { - W = !1; + let _ = {}; + for (let { slots: C = [], class: A, className: F, ...U } of f) { + if (!xe(U)) { + let V = !0; + for (let q of Object.keys(U)) { + let te = we(q, T)[q]; + if (te === void 0 || (Array.isArray(U[q]) ? !U[q].includes(te) : U[q] !== te)) { + V = !1; break; } } - if (!W) + if (!V) continue; } - for (let W of C) - k[W] = k[W] || [], k[W].push([O, L]); + for (let V of C) + _[V] = _[V] || [], _[V].push([A, F]); } - return k; + return _; }; - if (!ve(o) || !I) { + if (!xe(o) || !I) { let T = {}; - if (typeof B == "object" && !ve(B)) - for (let k of Object.keys(B)) - T[k] = (C) => { - var O, L; - return Rt(B[k], A(k, C), ((O = je(C)) != null ? O : [])[k], ((L = pe(C)) != null ? L : [])[k], C == null ? void 0 : C.class, C == null ? void 0 : C.className)(h); + if (typeof O == "object" && !xe(O)) + for (let _ of Object.keys(O)) + T[_] = (C) => { + var A, F; + return kt(O[_], k(_, C), ((A = je(C)) != null ? A : [])[_], ((F = de(C)) != null ? F : [])[_], C == null ? void 0 : C.class, C == null ? void 0 : C.className)(h); }; return T; } - return Rt(b, we(), xe(), P == null ? void 0 : P.class, P == null ? void 0 : P.className)(h); - }, $ = () => { - if (!(!w || typeof w != "object")) - return Object.keys(w); + return kt(x, me(), be(), j == null ? void 0 : j.class, j == null ? void 0 : j.className)(h); + }, ne = () => { + if (!(!y || typeof y != "object")) + return Object.keys(y); }; - return _.variantKeys = $(), _.extend = n, _.base = b, _.slots = B, _.variants = w, _.defaultVariants = x, _.compoundSlots = f, _.compoundVariants = u, _; + return S.variantKeys = ne(), S.extend = i, S.base = x, S.slots = O, S.variants = y, S.defaultVariants = b, S.compoundSlots = f, S.compoundVariants = u, S; }; -const ls = ( +const cs = ( /*tw*/ ie({ slots: { - base: "tw--flex tw--self-stretch tw--justify-self-stretch tw--items-stretch tw--justify-center tw--overflow-hidden tw--h-full", - wrapper: "tw--flex tw--flex-col tw--w-full md:tw--max-w-[800px] tw--max-h-screen tw--h-full" + base: "tw--flex tw--self-stretch tw--justify-self-stretch tw--items-stretch tw--justify-center tw--overflow-hidden tw--h-full tw--bg-lumina", + wrapper: "tw--flex tw--flex-col tw--w-full md:tw--max-w-[800px] tw--max-h-screen tw--h-full tw--bg-whisper tw--text-zephyr-100" }, variants: { - theme: { - light: { - base: "tw--bg-light-lumina", - wrapper: "tw--bg-light-whisper tw--text-light-zephyr-100" - }, - dark: { - base: "tw--bg-dark-lumina", - wrapper: "tw--bg-dark-whisper tw--text-white" - } - }, minimized: { true: "tw--fixed tw--right-0 tw--bottom-0 tw--max-h-[700px] tw--max-w-md" } } }) -), cs = ( +), ls = ( /*tw*/ ie({ slots: { - base: "tw--flex tw--px-5 tw--py-[11px] tw--shadow-[-1px_2px_5px_0] tw--justify-between" - }, - variants: { - theme: { - light: "tw--shadow-light-zephyr-200", - dark: "tw--shadow-dark-zephyr-200" - } + base: "tw--flex tw--px-5 tw--py-[11px] tw--shadow-[-1px_2px_5px_0] tw--shadow-zephyr-200" } }) ), ai = ( @@ -4597,18 +4581,18 @@ const ls = ( button: "tw--flex tw--grow-0" } }) -), us = ({ head: e, stream: t, foot: n }) => { - const { themeId: o, isPluginMode: a } = j(se), { base: u, wrapper: f } = ls({ theme: o }), l = Po(); - return /* @__PURE__ */ g.jsx( +), us = ({ head: e, stream: t, foot: i }) => { + const { themeId: o, isPluginMode: c } = $(nt), { base: u, wrapper: f } = cs(), a = _o(); + return /* @__PURE__ */ w.jsx( "div", { "data-e2e": "base-container", - style: { height: `${l[1]}px` }, - className: u({ minimized: a }), - children: /* @__PURE__ */ g.jsxs("div", { className: f(), children: [ + style: { height: `${a[1]}px` }, + className: u({ minimized: c }) + " " + o, + children: /* @__PURE__ */ w.jsxs("div", { className: f(), children: [ e, t, - n + i ] }) } ); @@ -4616,28 +4600,18 @@ const ls = ( /*tw*/ ie({ slots: { - base: "loader js-payment-loader tw--hidden tw--fixed tw--left-0 tw--top-0 tw--z-[101] tw--m-0 tw--flex tw--h-screen tw--w-screen tw--items-center tw--justify-center tw--px-5" - }, - variants: { - theme: { - light: { - base: "tw--bg-light-whisper" - }, - dark: { - base: "tw--bg-dark-whisper" - } - } + base: "loader js-payment-loader tw--hidden tw--fixed tw--left-0 tw--top-0 tw--z-[101] tw--m-0 tw--flex tw--h-screen tw--w-screen tw--items-center tw--justify-center tw--px-5 tw--bg-whisper" } }) ), ds = ({ children: e }) => { - const { themeId: t } = j(se), { base: n } = fs({ theme: t }); - return /* @__PURE__ */ g.jsx("div", { className: n(), children: e }); -}, Ee = ({ + const { base: t } = fs(); + return /* @__PURE__ */ w.jsx("div", { className: t(), children: e }); +}, ve = ({ eventType: e, systemType: t, - utmParams: n, + utmParams: i, customerUuid: o, - email: a, + email: c, phone: u }) => { if (window.trackEventInGTM && window.tracking) { @@ -4647,35 +4621,29 @@ const ls = ( uri: window.location.pathname, domain: window.location.hostname, customerUuid: o, - email: a || null, + email: c || null, phone: u || null, additionalData: {}, - utmParams: n + utmParams: i }); window.tracking.trackClient(f), window.trackEventInGTM && window.trackEventInGTM(f); } }; window.tracking = window.tracking || null; window.trackEventInGTM = window.trackEventInGTM || null; -const li = ( +const ci = ( /*tw*/ ie({ slots: { - btn: "tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-bold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--text-xl max-h-[46px] tw--mb-[11px] customXs:max-h-[52px]", - link: "tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-extrabold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--mb-[11px] spaced-letters max-h-[46px] customXs:max-h-[52px] customXs:tw--max-w-xs customXs:te--text-[20px] customXs:tw--text-xl" + btn: "tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-bold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--text-xl max-h-[46px] tw--mb-[11px] customXs:max-h-[52px]", + link: "tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-extrabold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--mb-[11px] spaced-letters max-h-[46px] customXs:max-h-[52px] customXs:tw--max-w-xs customXs:te--text-[20px] customXs:tw--text-xl" } }) ), ps = ( /*tw*/ ie({ slots: { - base: "tw--absolute tw--top-0 tw--left-0 tw--w-full tw--h-screen tw--flex tw--flex-col tw--justify-center tw--items-center tw--px-5 tw--z-50" - }, - variants: { - theme: { - light: "tw--bg-light-lumina", - dark: "tw--bg-dark-lumina" - } + base: "tw--absolute tw--top-0 tw--left-0 tw--w-full tw--h-screen tw--flex tw--flex-col tw--justify-center tw--items-center tw--px-5 tw--z-50 tw--bg-lumina" } }) ), hs = ( @@ -4689,7 +4657,7 @@ const li = ( text: "tw--flex tw--flex-col tw--justify-center tw--text-left tw--text-[10px] tw--leading-[1] tw--text-muted-blue", bottom: "tw--opacity-60 tw--text-[10px] tw--leading-[2] tw--text-muted-blue", right: "tw--flex tw--flex-col tw--items-end", - price: "tw--text-light-seraph tw--font-bold tw--leading-[1.4] tw--text-[20px]", + price: "tw--text-[#21bb5a] tw--font-bold tw--leading-[1.4] tw--text-[20px]", info: "tw--leading-[2] tw--text-[10px] tw--text-muted-blue" } }) @@ -4702,59 +4670,46 @@ const li = ( }) ), ws = ie({ slots: { - base: "tw--mt-[30px] tw--flex tw--items-center tw--justify-center tw--text-[12.8px] tw--leading-[1.56] tw--text-light-seraph tw--font-bold", + base: "tw--mt-[30px] tw--flex tw--items-center tw--justify-center tw--text-[12.8px] tw--leading-[1.56] tw--text-[#21bb5a] tw--font-bold", icon: "tw--mr-[5px]" } -}), gs = ie({ - slots: { - wrapper: "loader js-payment-loader tw--max-w-[335px] tw--overflow-hidden tw--relative tw--flex tw--w-full tw--flex-col tw--items-center tw--justify-center tw--rounded-xl tw--p-5", - inner: "tw--absolute tw--left-0 tw--top-8 tw--flex tw--h-8 tw--w-full tw--items-center tw--justify-center", - dots: "tw--relative tw--flex tw--items-center tw--justify-center tw--p-3", - dotsIn: "tw--relative tw--mx-auto tw--my-4 tw--box-content tw--block tw--h-4 tw--w-4 tw--rounded-full", - progressCheckmark: "tw--mb-6 tw--mt-24 tw--box-border tw--flex tw--w-full tw--items-center tw--justify-center tw--text-center", - panelTitle: "js-payment-message tw--text-lg tw--font-bold tw--leading-5", - icon: "tw--mr-5 tw--h-6 tw--w-6 tw--rounded-full", - spinningTexts: "tw--mx-10 tw--w-64 tw--shrink-0 tw--text-[16px] tw--leading-[1.63]", - filmContainer: "js-msg-spin tw--flex tw--justify-center tw--overflow-hidden tw--text-center", - film: "tw--animate-text-spin tw--flex tw--w-full tw--max-w-xs tw--translate-x-72" - }, - variants: { - theme: { - light: { - wrapper: "tw--shadow-light-card tw--bg-light-loader", - dotsIn: "tw--bg-light-pale-dots tw--shadow-light-loading-dots tw--animate-light-shadow-dots", - icon: "tw--bg-light-iota-dots", - spinningTexts: "tw--text-light-zeta tw--opacity-60" - }, - dark: { - wrapper: "tw--shadow-dark-card tw--bg-dark-loader", - dotsIn: "tw--bg-dark-pale-dots tw--shadow-dark-loading-dots tw--animate-dark-shadow-dots", - icon: "tw--bg-dark-iota-dots", - spinningTexts: "tw--text-dark-zeta tw--opacity-60" - } +}), ys = ( + /*tv*/ + ie({ + slots: { + wrapper: "loader js-payment-loader tw--max-w-[335px] tw--overflow-hidden tw--relative tw--flex tw--w-full tw--flex-col tw--items-center tw--justify-center tw--rounded-xl tw--p-5 tw--shadow-card tw--bg-loader", + inner: "tw--absolute tw--left-0 tw--top-8 tw--flex tw--h-8 tw--w-full tw--items-center tw--justify-center", + dots: "tw--relative tw--flex tw--items-center tw--justify-center tw--p-3", + dotsIn: "tw--relative tw--mx-auto tw--my-4 tw--box-content tw--block tw--h-4 tw--w-4 tw--rounded-full tw--bg-pale-dots tw--shadow-loading-dots tw--animate-shadow-dots", + progressCheckmark: "tw--mb-6 tw--mt-24 tw--box-border tw--flex tw--w-full tw--items-center tw--justify-center tw--text-center", + panelTitle: "js-payment-message tw--text-lg tw--font-bold tw--leading-5", + icon: "tw--mr-5 tw--h-6 tw--w-6 tw--rounded-full tw--bg-iota-dots", + spinningTexts: "tw--mx-10 tw--w-64 tw--shrink-0 tw--text-[16px] tw--leading-[1.63] tw--opacity-60", + filmContainer: "js-msg-spin tw--flex tw--justify-center tw--overflow-hidden tw--text-center", + film: "tw--animate-text-spin tw--flex tw--w-full tw--max-w-xs tw--translate-x-72" } - } -}), ys = ({ text: e, onClick: t, e2e: n, disabled: o = !1 }) => { - const { themeId: a } = j(se), u = j((h) => h.meta), f = j((h) => h.intentions.email.current), { btn: l } = li({ theme: a }); + }) +), gs = ({ text: e, onClick: t, e2e: i, disabled: o = !1 }) => { + const c = $((a) => a.meta), u = $((a) => a.intentions.email.current), { btn: f } = ci(); return Mt(() => { - const h = { - eventType: be.addToCart, - systemType: u.systemType, - utmParams: u.marketing.lastUtmParams, - customerUuid: u.cid, - email: f + const a = { + eventType: ge.addToCart, + systemType: c.systemType, + utmParams: c.marketing.lastUtmParams, + customerUuid: c.cid, + email: u }; - Ee(h), h.eventType = be.priceSeen, Ee(h); - }, []), /* @__PURE__ */ g.jsxs( + ve(a), a.eventType = ge.priceSeen, ve(a); + }, []), /* @__PURE__ */ w.jsxs( "button", { onClick: t, - className: l(), + className: f(), disabled: o, type: "button", - "data-e2e": n, + "data-e2e": i, children: [ - /* @__PURE__ */ g.jsxs( + /* @__PURE__ */ w.jsxs( "svg", { width: "24", @@ -4762,7 +4717,7 @@ const li = ( viewBox: "0 0 24 24", fill: "none", children: [ - /* @__PURE__ */ g.jsx( + /* @__PURE__ */ w.jsx( "path", { opacity: ".3", @@ -4770,28 +4725,28 @@ const li = ( fill: "currentColor" } ), - /* @__PURE__ */ g.jsx("path", { d: "M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z", fill: "currentColor" }) + /* @__PURE__ */ w.jsx("path", { d: "M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z", fill: "currentColor" }) ] } ), - /* @__PURE__ */ g.jsx("span", { children: e }) + /* @__PURE__ */ w.jsx("span", { children: e }) ] } ); }, bs = ({ onClick: e }) => { const { base: t } = ms(); - return /* @__PURE__ */ g.jsx( + return /* @__PURE__ */ w.jsx( "button", { type: "button", className: t(), onClick: e, - children: /* @__PURE__ */ g.jsx( + children: /* @__PURE__ */ w.jsx( "svg", { fill: "none", viewBox: "0 0 18 18", - children: /* @__PURE__ */ g.jsx( + children: /* @__PURE__ */ w.jsx( "path", { d: "M13.725 4.282a.747.747 0 0 0-1.058 0L9 7.942 5.332 4.276a.748.748 0 1 0-1.057 1.057L7.942 9l-3.667 3.668a.748.748 0 1 0 1.057 1.057L9 10.057l3.667 3.668a.748.748 0 1 0 1.058-1.057L10.057 9l3.668-3.668a.752.752 0 0 0 0-1.05z", @@ -4804,8 +4759,8 @@ const li = ( ); }, xs = () => { const { base: e, icon: t } = ws(); - return /* @__PURE__ */ g.jsxs("footer", { className: e(), children: [ - /* @__PURE__ */ g.jsx( + return /* @__PURE__ */ w.jsxs("footer", { className: e(), children: [ + /* @__PURE__ */ w.jsx( "svg", { className: t(), @@ -4814,7 +4769,7 @@ const li = ( width: "12", viewBox: "0 0 12 12", xmlns: "http://www.w3.org/2000/svg", - children: /* @__PURE__ */ g.jsx( + children: /* @__PURE__ */ w.jsx( "path", { d: "M9 4h-.5V3a2.5 2.5 0 0 0-5 0v1H3c-.55 0-1 .45-1 1v5c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zM6 8.5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zM7.55 4h-3.1V3c0-.855.695-1.55 1.55-1.55.855 0 1.55.695 1.55 1.55v1z", @@ -4823,64 +4778,64 @@ const li = ( ) } ), - /* @__PURE__ */ g.jsx("span", { children: "SSL Secure Connection" }) + /* @__PURE__ */ w.jsx("span", { children: "SSL Secure Connection" }) ] }); }, vs = ({ config: e }) => { - const { translations: t } = j((x) => x.config), { wrapper: n, left: o, leftTop: a, icon: u, text: f, bottom: l, right: h, price: b, info: w } = hs(); - return /* @__PURE__ */ g.jsx("header", { children: /* @__PURE__ */ g.jsxs("div", { className: n(), children: [ - /* @__PURE__ */ g.jsxs("span", { className: o(), children: [ - /* @__PURE__ */ g.jsxs("div", { className: a(), children: [ - /* @__PURE__ */ g.jsx("span", { className: u(), children: /* @__PURE__ */ g.jsx("svg", { width: "26", height: "26", children: /* @__PURE__ */ g.jsx("use", { xlinkHref: "/img/sprite.svg#secured-check" }) }) }), - /* @__PURE__ */ g.jsx("span", { className: f(), dangerouslySetInnerHTML: { __html: t.paymentHeaderTxt1 } }) + const { translations: t } = $((b) => b.config), { wrapper: i, left: o, leftTop: c, icon: u, text: f, bottom: a, right: h, price: x, info: y } = hs(); + return /* @__PURE__ */ w.jsx("header", { children: /* @__PURE__ */ w.jsxs("div", { className: i(), children: [ + /* @__PURE__ */ w.jsxs("span", { className: o(), children: [ + /* @__PURE__ */ w.jsxs("div", { className: c(), children: [ + /* @__PURE__ */ w.jsx("span", { className: u(), children: /* @__PURE__ */ w.jsx("svg", { width: "26", height: "26", children: /* @__PURE__ */ w.jsx("use", { xlinkHref: "/img/sprite.svg#secured-check" }) }) }), + /* @__PURE__ */ w.jsx("span", { className: f(), dangerouslySetInnerHTML: { __html: t.paymentHeaderTxt1 } }) ] }), - /* @__PURE__ */ g.jsx("div", { className: l(), children: t.paymentHeaderTxt2 }) + /* @__PURE__ */ w.jsx("div", { className: a(), children: t.paymentHeaderTxt2 }) ] }), - /* @__PURE__ */ g.jsxs("div", { className: h(), children: [ - /* @__PURE__ */ g.jsx("div", { className: b(), children: e.price }), - /* @__PURE__ */ g.jsx("div", { className: w(), children: e.period }) + /* @__PURE__ */ w.jsxs("div", { className: h(), children: [ + /* @__PURE__ */ w.jsx("div", { className: x(), children: e.price }), + /* @__PURE__ */ w.jsx("div", { className: y(), children: e.period }) ] }) ] }) }); -}, ci = Nn((e, t) => { - const { link: n } = li(), { href: o, text: a, onClick: u, e2e: f = null } = e; - return /* @__PURE__ */ g.jsx( +}, li = Nn((e, t) => { + const { link: i } = ci(), { href: o, text: c, onClick: u, e2e: f = null } = e; + return /* @__PURE__ */ w.jsx( "a", { - className: n(), + className: i(), "data-e2e": f, href: o, onClick: u, ref: t, - children: a + children: c } ); }); -ci.displayName = "Link"; +li.displayName = "Link"; const Es = ({ texts: e = [], title: t = "" }) => { - const { themeId: n } = j(se), { - wrapper: o, - inner: a, - dots: u, - dotsIn: f, - icon: l, - progressCheckmark: h, - panelTitle: b, - spinningTexts: w, - filmContainer: x, - film: I - } = gs({ theme: n }); - return /* @__PURE__ */ g.jsxs( + const { + wrapper: i, + inner: o, + dots: c, + dotsIn: u, + icon: f, + progressCheckmark: a, + panelTitle: h, + spinningTexts: x, + filmContainer: y, + film: b + } = ys(); + return /* @__PURE__ */ w.jsxs( "div", { - className: o(), + className: i(), children: [ - /* @__PURE__ */ g.jsx("div", { className: a(), children: /* @__PURE__ */ g.jsx("div", { className: u(), children: /* @__PURE__ */ g.jsx( + /* @__PURE__ */ w.jsx("div", { className: o(), children: /* @__PURE__ */ w.jsx("div", { className: c(), children: /* @__PURE__ */ w.jsx( "span", { - className: f() + className: u() } ) }) }), - /* @__PURE__ */ g.jsxs("div", { className: h(), children: [ - /* @__PURE__ */ g.jsx("span", { className: l(), children: /* @__PURE__ */ g.jsxs( + /* @__PURE__ */ w.jsxs("div", { className: a(), children: [ + /* @__PURE__ */ w.jsx("span", { className: f(), children: /* @__PURE__ */ w.jsxs( "svg", { width: "24", @@ -4889,7 +4844,7 @@ const Es = ({ texts: e = [], title: t = "" }) => { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: [ - /* @__PURE__ */ g.jsx( + /* @__PURE__ */ w.jsx( "circle", { cx: "12", @@ -4897,7 +4852,7 @@ const Es = ({ texts: e = [], title: t = "" }) => { r: "12" } ), - /* @__PURE__ */ g.jsx( + /* @__PURE__ */ w.jsx( "path", { d: "m9.75 15.127-2.602-2.602a.748.748 0 0 0-1.058 1.057l3.135 3.136a.747.747 0 0 0 1.058 0l7.935-7.935a.748.748 0 0 0-1.058-1.058l-7.41 7.402z", @@ -4907,24 +4862,24 @@ const Es = ({ texts: e = [], title: t = "" }) => { ] } ) }), - /* @__PURE__ */ g.jsx("p", { className: b(), children: t }) + /* @__PURE__ */ w.jsx("p", { className: h(), children: t }) ] }), - /* @__PURE__ */ g.jsx("div", { className: x(), children: /* @__PURE__ */ g.jsx("div", { className: I(), children: e.map((S) => /* @__PURE__ */ g.jsx("div", { className: w(), children: S }, S)) }) }) + /* @__PURE__ */ w.jsx("div", { className: y(), children: /* @__PURE__ */ w.jsx("div", { className: b(), children: e.map((I) => /* @__PURE__ */ w.jsx("div", { className: x(), children: I }, I)) }) }) ] } ); }, Is = ({ onClose: e }) => { - const { displayPlanPrice: t, billingFrequencyTmsg: n } = j((f) => f.meta.pd), { translations: o, themeId: a } = j((f) => f.config), { base: u } = ps({ theme: a }); - return /* @__PURE__ */ g.jsx("div", { className: u(), children: /* @__PURE__ */ g.jsxs( + const { displayPlanPrice: t, billingFrequencyTmsg: i } = $((u) => u.meta.pd), { translations: o } = $((u) => u.config), { base: c } = ps(); + return /* @__PURE__ */ w.jsx("div", { className: c(), children: /* @__PURE__ */ w.jsxs( "div", { id: "chat-payment-view", className: "light-pink-blue tw--max-w-[500px] tw--bg-white tw--w-full tw--min-h-[400px] tw--relative tw--rounded-lg tw--flex tw--flex-col tw--p-7", children: [ - /* @__PURE__ */ g.jsx(ds, { children: /* @__PURE__ */ g.jsx(Es, { texts: o.loaderTexts, title: o.tm1224 }) }), - /* @__PURE__ */ g.jsx(bs, { onClick: e }), - /* @__PURE__ */ g.jsx("div", { id: "primer-form-container", className: "primer-theme tw--w-full h-full", children: /* @__PURE__ */ g.jsx(vs, { config: { price: t, period: n } }) }), - /* @__PURE__ */ g.jsx(xs, {}) + /* @__PURE__ */ w.jsx(ds, { children: /* @__PURE__ */ w.jsx(Es, { texts: o.loaderTexts, title: o.tm1224 }) }), + /* @__PURE__ */ w.jsx(bs, { onClick: e }), + /* @__PURE__ */ w.jsx("div", { id: "primer-form-container", className: "h-full primer-theme tw--w-full", children: /* @__PURE__ */ w.jsx(vs, { config: { price: t, period: i } }) }), + /* @__PURE__ */ w.jsx(xs, {}) ] } ) }); @@ -4932,56 +4887,36 @@ const Es = ({ texts: e = [], title: t = "" }) => { /* tw*/ ie({ slots: { - base: "tw--pt-10 tw--w-full tw--h-full tw--pb-5 tw--px-5 tw--overflow-y-scroll tw--flex tw--flex-col-reverse tw--translate-z-0", + base: "tw--pt-10 tw--w-full tw--h-full tw--pb-5 tw--px-5 tw--overflow-y-scroll tw--flex tw--flex-col-reverse tw--translate-z-0 tw--text-zephyr-100 tw--font-density-different tw--mt-0 tw--mb-auto", second: "tw--mt-0 tw--mb-auto", date: "tw--text-center tw--text-sm tw--pb-[5px] tw--opacity-40" - }, - variants: { - theme: { - light: { - base: "tw--text-light-zephyr-100 tw--font-medium" - }, - dark: { - base: "tw--text-dark-zephyr-100" - } - } } }) -), Ss = ( +), Cs = ( /* tw*/ ie({ slots: { base: "tw--flex tw--flex-col tw--items-center tw--w-full tw--mx-auto tw--pt-5 tw--pb-10", - title: "tw--pb-[30px] tw--max-w-[400px] tw--text-center tw--mx-[30px] select-none" - }, - variants: { - theme: { - light: { title: "tw--font-medium" }, - dark: { title: "" } - } + title: "tw--pb-[30px] tw--max-w-[400px] tw--text-center tw--mx-[30px] select-none tw--font-density-different" } }) -), Cs = ( +), Ss = ( /* tw*/ ie({ slots: { base: "tw--grid tw--break-words" } }) -), ks = ( +), Ps = ( /* tw */ ie({ slots: { - base: "after:tw--inline-block after:tw--ml-1 after:tw--h-4 after:tw--w-1 select-none" + base: "after:tw--inline-block after:tw--ml-1 after:tw--h-4 after:tw--w-1 select-none after:tw--bg-zephyr-100" }, variants: { isTyping: { true: "after:tw--animate-blink", false: "after:tw--hidden" - }, - theme: { - light: "after:tw--bg-light-zephyr-100", - dark: "after:tw--bg-dark-zephyr-100" } } }) @@ -4989,82 +4924,42 @@ const Es = ({ texts: e = [], title: t = "" }) => { /* tw*/ ie({ slots: { - base: "tw--relative tw--max-w-[375px] tw--whitespace-pre-wrap tw--rounded-[20px] tw--mb-5 tw--space-y-5", - action: "tw--absolute tw--bottom-[-16px] tw--right-[-10px]", + base: "tw--relative tw--max-w-[375px] tw--whitespace-pre-wrap tw--rounded-[20px] tw--mb-5 tw--space-y-5 tw--font-density-different", + action: "tw--absolute tw--bottom-[-16px] tw--right-[-10px] tw--text-seraph", separator: "tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--w-fit tw--ml-auto tw--mr-0" }, - variants: { - theme: { - light: { - action: "tw--text-light-seraph", - base: "tw--font-medium" - }, - dark: { - action: "tw--text-dark-seraph" - } - }, - type: { - assistant: { - base: "tw--justify-self-start" - }, - user: { - base: "tw--justify-self-end" - } - } - }, compoundSlots: [ { slots: ["base"], - theme: "light", type: "assistant", - class: "tw--bg-light-lumina tw--px-[15px] tw--py-[11px]" + class: "tw--bg-lumina tw--px-[15px] tw--py-[11px]" }, { slots: ["base"], - theme: "dark", - type: "assistant", - class: "tw--bg-dark-lumina tw--px-[15px] tw--py-[11px]" - }, - { - slots: ["separator"], - theme: "dark", type: "user", - class: "tw--bg-dark-seraph" + class: "tw--justify-self-end" }, { slots: ["separator"], - theme: "light", type: "user", - class: "tw--bg-light-seraph tw--text-white" + class: "tw--bg-seraph tw--text-white" } ] }) -), Ps = ie({ +), _s = ie({ slots: { - dotFirst: "tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave", - dotSecond: "tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay", - dotThird: "tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay-2" - }, - compoundSlots: [ - { - slots: ["dotFirst", "dotSecond", "dotThird"], - theme: "light", - class: "tw--bg-light-zephyr-100" - }, - { - slots: ["dotFirst", "dotSecond", "dotThird"], - theme: "dark", - class: "tw--bg-dark-zephyr-100" - } - ] -}), _s = () => { - const { themeId: e } = j(se), { dotFirst: t, dotSecond: n, dotThird: o } = Ps({ theme: e }); - return /* @__PURE__ */ g.jsxs("div", { className: "tw--ml-7 tw--space-x-[6px]", "data-e2e": "stream-response-loader", children: [ - /* @__PURE__ */ g.jsx("span", { className: t() }), - /* @__PURE__ */ g.jsx("span", { className: n() }), - /* @__PURE__ */ g.jsx("span", { className: o() }) + dotFirst: "tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave tw--bg-zephyr-100", + dotSecond: "tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay tw--bg-zephyr-100", + dotThird: "tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay-2 tw--bg-zephyr-100" + } +}), js = () => { + const { dotFirst: e, dotSecond: t, dotThird: i } = _s(); + return /* @__PURE__ */ w.jsxs("div", { className: "tw--ml-7 tw--space-x-[6px]", "data-e2e": "stream-response-loader", children: [ + /* @__PURE__ */ w.jsx("span", { className: e() }), + /* @__PURE__ */ w.jsx("span", { className: t() }), + /* @__PURE__ */ w.jsx("span", { className: i() }) ] }); -}, js = "chatSeen", fi = "linkClickedFromChat", Rs = "chatConversationFinishedTimeStamp", Bs = "cid", As = 1e3, di = "scroll-stop", Wr = "support", Fs = 500, Os = "/", Ls = 3e3, Ns = { +}, Rs = "chatSeen", fi = "linkClickedFromChat", ks = "chatConversationFinishedTimeStamp", Bs = "cid", As = 1e3, di = "scroll-stop", Wr = "support", Fs = 500, Os = "/", Ls = 3e3, Ns = { transports: ["websocket"], upgrade: !1, pingInterval: 1e3 * 60 * 5, @@ -5072,47 +4967,47 @@ const Es = ({ texts: e = [], title: t = "" }) => { secure: !0, reconnect: !0 }; -fe(), Q.assistant, (/* @__PURE__ */ new Date()).getTime(), fe(), Q.assistant, (/* @__PURE__ */ new Date()).getTime(), fe(), Q.assistant, (/* @__PURE__ */ new Date()).getTime(); -const Ms = (e, t) => e.map((n) => { - var a, u; - const o = n.sequence === t.sequence && n.type === t.type; - return o && n.type === Fe.text && t.text ? { ...n, text: n.text + t.text } : o && n.type === Fe.buttons && ((a = t == null ? void 0 : t.buttons) != null && a.length) && ((u = n == null ? void 0 : n.buttons) != null && u.length) ? { ...n, buttons: [...n.buttons, ...t.buttons] } : n; +ue(), Z.assistant, (/* @__PURE__ */ new Date()).getTime(), ue(), Z.assistant, (/* @__PURE__ */ new Date()).getTime(), ue(), Z.assistant, (/* @__PURE__ */ new Date()).getTime(); +const Ms = (e, t) => e.map((i) => { + var c, u; + const o = i.sequence === t.sequence && i.type === t.type; + return o && i.type === Ae.text && t.text ? { ...i, text: i.text + t.text } : o && i.type === Ae.buttons && ((c = t == null ? void 0 : t.buttons) != null && c.length) && ((u = i == null ? void 0 : i.buttons) != null && u.length) ? { ...i, buttons: [...i.buttons, ...t.buttons] } : i; }); -function de(e) { - for (var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++) - n[o - 1] = arguments[o]; - if (Ie.process.env.NODE_ENV !== "production") { - var a = qs[e], u = a ? typeof a == "function" ? a.apply(null, n) : a : "unknown error nr: " + e; +function fe(e) { + for (var t = arguments.length, i = Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++) + i[o - 1] = arguments[o]; + if (Ee.process.env.NODE_ENV !== "production") { + var c = qs[e], u = c ? typeof c == "function" ? c.apply(null, i) : c : "unknown error nr: " + e; throw Error("[Immer] " + u); } - throw Error("[Immer] minified error nr: " + e + (n.length ? " " + n.map(function(f) { + throw Error("[Immer] minified error nr: " + e + (i.length ? " " + i.map(function(f) { return "'" + f + "'"; }).join(",") : "") + ". Find the full error at: https://bit.ly/3cXEKWf"); } function vt(e) { - return !!e && !!e[Te]; + return !!e && !!e[Ie]; } -function nt(e) { +function rt(e) { var t; - return !!e && (function(n) { - if (!n || typeof n != "object") + return !!e && (function(i) { + if (!i || typeof i != "object") return !1; - var o = Object.getPrototypeOf(n); + var o = Object.getPrototypeOf(i); if (o === null) return !0; - var a = Object.hasOwnProperty.call(o, "constructor") && o.constructor; - return a === Object || typeof a == "function" && Function.toString.call(a) === Hs; - }(e) || Array.isArray(e) || !!e[kn] || !!(!((t = e.constructor) === null || t === void 0) && t[kn]) || Gr(e) || qr(e)); -} -function Lt(e, t, n) { - n === void 0 && (n = !1), It(e) === 0 ? (n ? Object.keys : Kr)(e).forEach(function(o) { - n && typeof o == "symbol" || t(o, e[o], e); - }) : e.forEach(function(o, a) { - return t(a, o, e); + var c = Object.hasOwnProperty.call(o, "constructor") && o.constructor; + return c === Object || typeof c == "function" && Function.toString.call(c) === Hs; + }(e) || Array.isArray(e) || !!e[Pn] || !!(!((t = e.constructor) === null || t === void 0) && t[Pn]) || Gr(e) || qr(e)); +} +function Lt(e, t, i) { + i === void 0 && (i = !1), It(e) === 0 ? (i ? Object.keys : Kr)(e).forEach(function(o) { + i && typeof o == "symbol" || t(o, e[o], e); + }) : e.forEach(function(o, c) { + return t(c, o, e); }); } function It(e) { - var t = e[Te]; + var t = e[Ie]; return t ? t.i > 3 ? t.i - 4 : t.i : Array.isArray(e) ? 1 : Gr(e) ? 2 : qr(e) ? 3 : 0; } function Fr(e, t) { @@ -5121,9 +5016,9 @@ function Fr(e, t) { function Us(e, t) { return It(e) === 2 ? e.get(t) : e[t]; } -function pi(e, t, n) { +function pi(e, t, i) { var o = It(e); - o === 2 ? e.set(t, n) : o === 3 ? e.add(n) : e[t] = n; + o === 2 ? e.set(t, i) : o === 3 ? e.add(i) : e[t] = i; } function Ds(e, t) { return e === t ? e !== 0 || 1 / e == 1 / t : e != e && t != t; @@ -5134,40 +5029,40 @@ function Gr(e) { function qr(e) { return Gs && e instanceof Set; } -function Qe(e) { +function Ze(e) { return e.o || e.t; } function Hr(e) { if (Array.isArray(e)) return Array.prototype.slice.call(e); var t = Ys(e); - delete t[Te]; - for (var n = Kr(t), o = 0; o < n.length; o++) { - var a = n[o], u = t[a]; - u.writable === !1 && (u.writable = !0, u.configurable = !0), (u.get || u.set) && (t[a] = { configurable: !0, writable: !0, enumerable: u.enumerable, value: e[a] }); + delete t[Ie]; + for (var i = Kr(t), o = 0; o < i.length; o++) { + var c = i[o], u = t[c]; + u.writable === !1 && (u.writable = !0, u.configurable = !0), (u.get || u.set) && (t[c] = { configurable: !0, writable: !0, enumerable: u.enumerable, value: e[c] }); } return Object.create(Object.getPrototypeOf(e), t); } function Yr(e, t) { - return t === void 0 && (t = !1), Jr(e) || vt(e) || !nt(e) || (It(e) > 1 && (e.set = e.add = e.clear = e.delete = zs), Object.freeze(e), t && Lt(e, function(n, o) { + return t === void 0 && (t = !1), Jr(e) || vt(e) || !rt(e) || (It(e) > 1 && (e.set = e.add = e.clear = e.delete = zs), Object.freeze(e), t && Lt(e, function(i, o) { return Yr(o, !0); }, !0)), e; } function zs() { - de(2); + fe(2); } function Jr(e) { return e == null || typeof e != "object" || Object.isFrozen(e); } -function De(e) { +function Ue(e) { var t = Js[e]; - return t || de(18, e), t; + return t || fe(18, e), t; } function xn() { - return Ie.process.env.NODE_ENV === "production" || Et || de(0), Et; + return Ee.process.env.NODE_ENV === "production" || Et || fe(0), Et; } -function gr(e, t) { - t && (De("Patches"), e.u = [], e.s = [], e.v = t); +function yr(e, t) { + t && (Ue("Patches"), e.u = [], e.s = [], e.v = t); } function er(e) { Or(e), e.p.forEach($s), e.p = null; @@ -5179,21 +5074,21 @@ function vn(e) { return Et = { p: [], l: Et, h: e, m: !0, _: 0 }; } function $s(e) { - var t = e[Te]; + var t = e[Ie]; t.i === 0 || t.i === 1 ? t.j() : t.g = !0; } -function yr(e, t) { +function gr(e, t) { t._ = t.p.length; - var n = t.p[0], o = e !== void 0 && e !== n; - return t.h.O || De("ES5").S(t, e, o), o ? (n[Te].P && (er(t), de(4)), nt(e) && (e = tr(t, e), t.l || rr(t, e)), t.u && De("Patches").M(n[Te].t, e, t.u, t.s)) : e = tr(t, n, []), er(t), t.u && t.v(t.u, t.s), e !== hi ? e : void 0; + var i = t.p[0], o = e !== void 0 && e !== i; + return t.h.O || Ue("ES5").S(t, e, o), o ? (i[Ie].P && (er(t), fe(4)), rt(e) && (e = tr(t, e), t.l || rr(t, e)), t.u && Ue("Patches").M(i[Ie].t, e, t.u, t.s)) : e = tr(t, i, []), er(t), t.u && t.v(t.u, t.s), e !== hi ? e : void 0; } -function tr(e, t, n) { +function tr(e, t, i) { if (Jr(t)) return t; - var o = t[Te]; + var o = t[Ie]; if (!o) - return Lt(t, function(l, h) { - return En(e, o, t, l, h, n); + return Lt(t, function(a, h) { + return En(e, o, t, a, h, i); }, !0), t; if (o.A !== e) return t; @@ -5201,41 +5096,41 @@ function tr(e, t, n) { return rr(e, o.t, !0), o.t; if (!o.I) { o.I = !0, o.A._--; - var a = o.i === 4 || o.i === 5 ? o.o = Hr(o.k) : o.o, u = a, f = !1; - o.i === 3 && (u = new Set(a), a.clear(), f = !0), Lt(u, function(l, h) { - return En(e, o, a, l, h, n, f); - }), rr(e, a, !1), n && e.u && De("Patches").N(o, n, e.u, e.s); + var c = o.i === 4 || o.i === 5 ? o.o = Hr(o.k) : o.o, u = c, f = !1; + o.i === 3 && (u = new Set(c), c.clear(), f = !0), Lt(u, function(a, h) { + return En(e, o, c, a, h, i, f); + }), rr(e, c, !1), i && e.u && Ue("Patches").N(o, i, e.u, e.s); } return o.o; } -function En(e, t, n, o, a, u, f) { - if (Ie.process.env.NODE_ENV !== "production" && a === n && de(5), vt(a)) { - var l = tr(e, a, u && t && t.i !== 3 && !Fr(t.R, o) ? u.concat(o) : void 0); - if (pi(n, o, l), !vt(l)) +function En(e, t, i, o, c, u, f) { + if (Ee.process.env.NODE_ENV !== "production" && c === i && fe(5), vt(c)) { + var a = tr(e, c, u && t && t.i !== 3 && !Fr(t.R, o) ? u.concat(o) : void 0); + if (pi(i, o, a), !vt(a)) return; e.m = !1; } else - f && n.add(a); - if (nt(a) && !Jr(a)) { + f && i.add(c); + if (rt(c) && !Jr(c)) { if (!e.h.D && e._ < 1) return; - tr(e, a), t && t.A.l || rr(e, a); + tr(e, c), t && t.A.l || rr(e, c); } } -function rr(e, t, n) { - n === void 0 && (n = !1), !e.l && e.h.D && e.m && Yr(t, n); +function rr(e, t, i) { + i === void 0 && (i = !1), !e.l && e.h.D && e.m && Yr(t, i); } function br(e, t) { - var n = e[Te]; - return (n ? Qe(n) : e)[t]; + var i = e[Ie]; + return (i ? Ze(i) : e)[t]; } function In(e, t) { if (t in e) - for (var n = Object.getPrototypeOf(e); n; ) { - var o = Object.getOwnPropertyDescriptor(n, t); + for (var i = Object.getPrototypeOf(e); i; ) { + var o = Object.getOwnPropertyDescriptor(i, t); if (o) return o; - n = Object.getPrototypeOf(n); + i = Object.getPrototypeOf(i); } } function Lr(e) { @@ -5244,28 +5139,28 @@ function Lr(e) { function xr(e) { e.o || (e.o = Hr(e.t)); } -function Nr(e, t, n) { - var o = Gr(t) ? De("MapSet").F(t, n) : qr(t) ? De("MapSet").T(t, n) : e.O ? function(a, u) { - var f = Array.isArray(a), l = { i: f ? 1 : 0, A: u ? u.A : xn(), P: !1, I: !1, R: {}, l: u, t: a, k: null, o: null, j: null, C: !1 }, h = l, b = Mr; - f && (h = [l], b = Ft); - var w = Proxy.revocable(h, b), x = w.revoke, I = w.proxy; - return l.k = I, l.j = x, I; - }(t, n) : De("ES5").J(t, n); - return (n ? n.A : xn()).p.push(o), o; +function Nr(e, t, i) { + var o = Gr(t) ? Ue("MapSet").F(t, i) : qr(t) ? Ue("MapSet").T(t, i) : e.O ? function(c, u) { + var f = Array.isArray(c), a = { i: f ? 1 : 0, A: u ? u.A : xn(), P: !1, I: !1, R: {}, l: u, t: c, k: null, o: null, j: null, C: !1 }, h = a, x = Mr; + f && (h = [a], x = Ft); + var y = Proxy.revocable(h, x), b = y.revoke, I = y.proxy; + return a.k = I, a.j = b, I; + }(t, i) : Ue("ES5").J(t, i); + return (i ? i.A : xn()).p.push(o), o; } function Vs(e) { - return vt(e) || de(22, e), function t(n) { - if (!nt(n)) - return n; - var o, a = n[Te], u = It(n); - if (a) { - if (!a.P && (a.i < 4 || !De("ES5").K(a))) - return a.t; - a.I = !0, o = Tn(n, u), a.I = !1; + return vt(e) || fe(22, e), function t(i) { + if (!rt(i)) + return i; + var o, c = i[Ie], u = It(i); + if (c) { + if (!c.P && (c.i < 4 || !Ue("ES5").K(c))) + return c.t; + c.I = !0, o = Tn(i, u), c.I = !1; } else - o = Tn(n, u); - return Lt(o, function(f, l) { - a && Us(a.t, f) === l || pi(o, f, t(l)); + o = Tn(i, u); + return Lt(o, function(f, a) { + c && Us(c.t, f) === a || pi(o, f, t(a)); }), u === 3 ? new Set(o) : o; }(e); } @@ -5278,7 +5173,7 @@ function Tn(e, t) { } return Hr(e); } -var Sn, Et, Xr = typeof Symbol < "u" && typeof Symbol("x") == "symbol", Ws = typeof Map < "u", Gs = typeof Set < "u", Cn = typeof Proxy < "u" && Proxy.revocable !== void 0 && typeof Reflect < "u", hi = Xr ? Symbol.for("immer-nothing") : ((Sn = {})["immer-nothing"] = !0, Sn), kn = Xr ? Symbol.for("immer-draftable") : "__$immer_draftable", Te = Xr ? Symbol.for("immer-state") : "__$immer_state", qs = { 0: "Illegal state", 1: "Immer drafts cannot have computed properties", 2: "This object has been frozen and should not be mutated", 3: function(e) { +var Cn, Et, Xr = typeof Symbol < "u" && typeof Symbol("x") == "symbol", Ws = typeof Map < "u", Gs = typeof Set < "u", Sn = typeof Proxy < "u" && Proxy.revocable !== void 0 && typeof Reflect < "u", hi = Xr ? Symbol.for("immer-nothing") : ((Cn = {})["immer-nothing"] = !0, Cn), Pn = Xr ? Symbol.for("immer-draftable") : "__$immer_draftable", Ie = Xr ? Symbol.for("immer-state") : "__$immer_state", qs = { 0: "Illegal state", 1: "Immer drafts cannot have computed properties", 2: "This object has been frozen and should not be mutated", 3: function(e) { return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? " + e; }, 4: "An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.", 5: "Immer forbids circular references", 6: "The first or second argument to `produce` must be a function", 7: "The third argument to `produce` must be a function or undefined", 8: "First argument to `createDraft` must be a plain object, an array, or an immerable object", 9: "First argument to `finishDraft` must be a draft returned by `createDraft`", 10: "The given draft is already finalized", 11: "Object.defineProperty() cannot be used on an Immer draft", 12: "Object.setPrototypeOf() cannot be used on an Immer draft", 13: "Immer only supports deleting array indices", 14: "Immer only supports setting array indices and the 'length' property", 15: function(e) { return "Cannot apply patch, path doesn't resolve: " + e; @@ -5296,161 +5191,161 @@ var Sn, Et, Xr = typeof Symbol < "u" && typeof Symbol("x") == "symbol", Ws = typ return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e)); } : Object.getOwnPropertyNames, Ys = Object.getOwnPropertyDescriptors || function(e) { var t = {}; - return Kr(e).forEach(function(n) { - t[n] = Object.getOwnPropertyDescriptor(e, n); + return Kr(e).forEach(function(i) { + t[i] = Object.getOwnPropertyDescriptor(e, i); }), t; }, Js = {}, Mr = { get: function(e, t) { - if (t === Te) + if (t === Ie) return e; - var n = Qe(e); - if (!Fr(n, t)) - return function(a, u, f) { - var l, h = In(u, f); - return h ? "value" in h ? h.value : (l = h.get) === null || l === void 0 ? void 0 : l.call(a.k) : void 0; - }(e, n, t); - var o = n[t]; - return e.I || !nt(o) ? o : o === br(e.t, t) ? (xr(e), e.o[t] = Nr(e.A.h, o, e)) : o; + var i = Ze(e); + if (!Fr(i, t)) + return function(c, u, f) { + var a, h = In(u, f); + return h ? "value" in h ? h.value : (a = h.get) === null || a === void 0 ? void 0 : a.call(c.k) : void 0; + }(e, i, t); + var o = i[t]; + return e.I || !rt(o) ? o : o === br(e.t, t) ? (xr(e), e.o[t] = Nr(e.A.h, o, e)) : o; }, has: function(e, t) { - return t in Qe(e); + return t in Ze(e); }, ownKeys: function(e) { - return Reflect.ownKeys(Qe(e)); -}, set: function(e, t, n) { - var o = In(Qe(e), t); + return Reflect.ownKeys(Ze(e)); +}, set: function(e, t, i) { + var o = In(Ze(e), t); if (o != null && o.set) - return o.set.call(e.k, n), !0; + return o.set.call(e.k, i), !0; if (!e.P) { - var a = br(Qe(e), t), u = a == null ? void 0 : a[Te]; - if (u && u.t === n) - return e.o[t] = n, e.R[t] = !1, !0; - if (Ds(n, a) && (n !== void 0 || Fr(e.t, t))) + var c = br(Ze(e), t), u = c == null ? void 0 : c[Ie]; + if (u && u.t === i) + return e.o[t] = i, e.R[t] = !1, !0; + if (Ds(i, c) && (i !== void 0 || Fr(e.t, t))) return !0; xr(e), Lr(e); } - return e.o[t] === n && (n !== void 0 || t in e.o) || Number.isNaN(n) && Number.isNaN(e.o[t]) || (e.o[t] = n, e.R[t] = !0), !0; + return e.o[t] === i && (i !== void 0 || t in e.o) || Number.isNaN(i) && Number.isNaN(e.o[t]) || (e.o[t] = i, e.R[t] = !0), !0; }, deleteProperty: function(e, t) { return br(e.t, t) !== void 0 || t in e.t ? (e.R[t] = !1, xr(e), Lr(e)) : delete e.R[t], e.o && delete e.o[t], !0; }, getOwnPropertyDescriptor: function(e, t) { - var n = Qe(e), o = Reflect.getOwnPropertyDescriptor(n, t); - return o && { writable: !0, configurable: e.i !== 1 || t !== "length", enumerable: o.enumerable, value: n[t] }; + var i = Ze(e), o = Reflect.getOwnPropertyDescriptor(i, t); + return o && { writable: !0, configurable: e.i !== 1 || t !== "length", enumerable: o.enumerable, value: i[t] }; }, defineProperty: function() { - de(11); + fe(11); }, getPrototypeOf: function(e) { return Object.getPrototypeOf(e.t); }, setPrototypeOf: function() { - de(12); + fe(12); } }, Ft = {}; Lt(Mr, function(e, t) { Ft[e] = function() { return arguments[0] = arguments[0][0], t.apply(this, arguments); }; }), Ft.deleteProperty = function(e, t) { - return Ie.process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && de(13), Ft.set.call(this, e, t, void 0); -}, Ft.set = function(e, t, n) { - return Ie.process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && de(14), Mr.set.call(this, e[0], t, n, e[0]); + return Ee.process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && fe(13), Ft.set.call(this, e, t, void 0); +}, Ft.set = function(e, t, i) { + return Ee.process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && fe(14), Mr.set.call(this, e[0], t, i, e[0]); }; var Xs = function() { - function e(n) { + function e(i) { var o = this; - this.O = Cn, this.D = !0, this.produce = function(a, u, f) { - if (typeof a == "function" && typeof u != "function") { - var l = u; - u = a; + this.O = Sn, this.D = !0, this.produce = function(c, u, f) { + if (typeof c == "function" && typeof u != "function") { + var a = u; + u = c; var h = o; - return function(_) { - var $ = this; - _ === void 0 && (_ = l); - for (var P = arguments.length, N = Array(P > 1 ? P - 1 : 0), le = 1; le < P; le++) - N[le - 1] = arguments[le]; - return h.produce(_, function(we) { - var A; - return (A = u).call.apply(A, [$, we].concat(N)); + return function(S) { + var ne = this; + S === void 0 && (S = a); + for (var j = arguments.length, L = Array(j > 1 ? j - 1 : 0), ae = 1; ae < j; ae++) + L[ae - 1] = arguments[ae]; + return h.produce(S, function(me) { + var k; + return (k = u).call.apply(k, [ne, me].concat(L)); }); }; } - var b; - if (typeof u != "function" && de(6), f !== void 0 && typeof f != "function" && de(7), nt(a)) { - var w = vn(o), x = Nr(o, a, void 0), I = !0; + var x; + if (typeof u != "function" && fe(6), f !== void 0 && typeof f != "function" && fe(7), rt(c)) { + var y = vn(o), b = Nr(o, c, void 0), I = !0; try { - b = u(x), I = !1; + x = u(b), I = !1; } finally { - I ? er(w) : Or(w); + I ? er(y) : Or(y); } - return typeof Promise < "u" && b instanceof Promise ? b.then(function(_) { - return gr(w, f), yr(_, w); - }, function(_) { - throw er(w), _; - }) : (gr(w, f), yr(b, w)); + return typeof Promise < "u" && x instanceof Promise ? x.then(function(S) { + return yr(y, f), gr(S, y); + }, function(S) { + throw er(y), S; + }) : (yr(y, f), gr(x, y)); } - if (!a || typeof a != "object") { - if ((b = u(a)) === void 0 && (b = a), b === hi && (b = void 0), o.D && Yr(b, !0), f) { - var S = [], B = []; - De("Patches").M(a, b, S, B), f(S, B); + if (!c || typeof c != "object") { + if ((x = u(c)) === void 0 && (x = c), x === hi && (x = void 0), o.D && Yr(x, !0), f) { + var P = [], O = []; + Ue("Patches").M(c, x, P, O), f(P, O); } - return b; + return x; } - de(21, a); - }, this.produceWithPatches = function(a, u) { - if (typeof a == "function") - return function(b) { - for (var w = arguments.length, x = Array(w > 1 ? w - 1 : 0), I = 1; I < w; I++) - x[I - 1] = arguments[I]; - return o.produceWithPatches(b, function(S) { - return a.apply(void 0, [S].concat(x)); + fe(21, c); + }, this.produceWithPatches = function(c, u) { + if (typeof c == "function") + return function(x) { + for (var y = arguments.length, b = Array(y > 1 ? y - 1 : 0), I = 1; I < y; I++) + b[I - 1] = arguments[I]; + return o.produceWithPatches(x, function(P) { + return c.apply(void 0, [P].concat(b)); }); }; - var f, l, h = o.produce(a, u, function(b, w) { - f = b, l = w; + var f, a, h = o.produce(c, u, function(x, y) { + f = x, a = y; }); - return typeof Promise < "u" && h instanceof Promise ? h.then(function(b) { - return [b, f, l]; - }) : [h, f, l]; - }, typeof (n == null ? void 0 : n.useProxies) == "boolean" && this.setUseProxies(n.useProxies), typeof (n == null ? void 0 : n.autoFreeze) == "boolean" && this.setAutoFreeze(n.autoFreeze); + return typeof Promise < "u" && h instanceof Promise ? h.then(function(x) { + return [x, f, a]; + }) : [h, f, a]; + }, typeof (i == null ? void 0 : i.useProxies) == "boolean" && this.setUseProxies(i.useProxies), typeof (i == null ? void 0 : i.autoFreeze) == "boolean" && this.setAutoFreeze(i.autoFreeze); } var t = e.prototype; - return t.createDraft = function(n) { - nt(n) || de(8), vt(n) && (n = Vs(n)); - var o = vn(this), a = Nr(this, n, void 0); - return a[Te].C = !0, Or(o), a; - }, t.finishDraft = function(n, o) { - var a = n && n[Te]; - Ie.process.env.NODE_ENV !== "production" && (a && a.C || de(9), a.I && de(10)); - var u = a.A; - return gr(u, o), yr(void 0, u); - }, t.setAutoFreeze = function(n) { - this.D = n; - }, t.setUseProxies = function(n) { - n && !Cn && de(20), this.O = n; - }, t.applyPatches = function(n, o) { - var a; - for (a = o.length - 1; a >= 0; a--) { - var u = o[a]; + return t.createDraft = function(i) { + rt(i) || fe(8), vt(i) && (i = Vs(i)); + var o = vn(this), c = Nr(this, i, void 0); + return c[Ie].C = !0, Or(o), c; + }, t.finishDraft = function(i, o) { + var c = i && i[Ie]; + Ee.process.env.NODE_ENV !== "production" && (c && c.C || fe(9), c.I && fe(10)); + var u = c.A; + return yr(u, o), gr(void 0, u); + }, t.setAutoFreeze = function(i) { + this.D = i; + }, t.setUseProxies = function(i) { + i && !Sn && fe(20), this.O = i; + }, t.applyPatches = function(i, o) { + var c; + for (c = o.length - 1; c >= 0; c--) { + var u = o[c]; if (u.path.length === 0 && u.op === "replace") { - n = u.value; + i = u.value; break; } } - a > -1 && (o = o.slice(a + 1)); - var f = De("Patches").$; - return vt(n) ? f(n, o) : this.produce(n, function(l) { - return f(l, o); + c > -1 && (o = o.slice(c + 1)); + var f = Ue("Patches").$; + return vt(i) ? f(i, o) : this.produce(i, function(a) { + return f(a, o); }); }, e; -}(), Se = new Xs(), Ks = Se.produce; -Se.produceWithPatches.bind(Se); -Se.setAutoFreeze.bind(Se); -Se.setUseProxies.bind(Se); -Se.applyPatches.bind(Se); -Se.createDraft.bind(Se); -Se.finishDraft.bind(Se); +}(), Te = new Xs(), Ks = Te.produce; +Te.produceWithPatches.bind(Te); +Te.setAutoFreeze.bind(Te); +Te.setUseProxies.bind(Te); +Te.applyPatches.bind(Te); +Te.createDraft.bind(Te); +Te.finishDraft.bind(Te); const wt = Ks, mi = or({ name: "chat", initialState: mt, reducers: { setOutgoing(e, { payload: t }) { e.outgoing = { - term: gt(et.chat), + term: yt(Qe.chat), user_id: localStorage.getItem("__cid") || "", - role: Q.user, + role: Z.user, message: t }; }, @@ -5458,10 +5353,10 @@ const wt = Ks, mi = or({ e.outgoing = mt.outgoing; }, setExistingHistory(e, { payload: t }) { - return wt(e, (n) => { + return wt(e, (i) => { if (e.historyIds.length >= t.length) { - e.historyIds.filter((a) => !t.find((u) => u.id === a)).forEach( - (a) => n.historyData[a].content = n.historyData[a].content.map((u) => ({ + e.historyIds.filter((c) => !t.find((u) => u.id === c)).forEach( + (c) => i.historyData[c].content = i.historyData[c].content.map((u) => ({ ...u, sent: !1, resend: !0 @@ -5469,70 +5364,70 @@ const wt = Ks, mi = or({ ); return; } - n.historyIds = t.map(({ id: o }) => o), n.historyData = t.reduce( - (o, a) => ({ + i.historyIds = t.map(({ id: o }) => o), i.historyData = t.reduce( + (o, c) => ({ ...o, - [a.id]: a + [c.id]: c }), {} ); }); }, addPredefinedAssistantMessage(e, { payload: t }) { - const n = fe(); + const i = ue(); return wt(e, (o) => { - o.historyIds.push(n), o.historyData[n] = { - id: n, - role: Q.assistant, + o.historyIds.push(i), o.historyData[i] = { + id: i, + role: Z.assistant, content: [ - { type: Fe.text, text: t.content, sequence: 1 }, - { type: Fe.buttons, buttons: t.buttons || [], sequence: 2 } + { type: Ae.text, text: t.content, sequence: 1 }, + { type: Ae.buttons, buttons: t.buttons || [], sequence: 2 } ] }; }); }, fillAssistantHistoryData(e, { payload: t }) { - return wt(e, (n) => { + return wt(e, (i) => { const o = t.id; - if (!n.historyData[o]) { - n.historyData[o] = { id: o, role: Q.assistant, content: [] }, n.historyIds.push(o); + if (!i.historyData[o]) { + i.historyData[o] = { id: o, role: Z.assistant, content: [] }, i.historyIds.push(o); return; } if (!t.content) return; - const a = t.content.type, u = { + const c = t.content.type, u = { sequence: t.sequence || 1, - type: a, - [a]: t.content[t.content.type] + type: c, + [c]: t.content[t.content.type] }; - if (n.historyData[o].content.some( - (l) => l.sequence === u.sequence && l.type === u.type + if (i.historyData[o].content.some( + (a) => a.sequence === u.sequence && a.type === u.type )) { - n.historyData[o].content = Ms( - n.historyData[o].content, + i.historyData[o].content = Ms( + i.historyData[o].content, u ); return; } - n.historyData[o].content.push(u); + i.historyData[o].content.push(u); }); }, - fillUserHistoryData(e, { payload: { id: t, content: n } }) { + fillUserHistoryData(e, { payload: { id: t, content: i } }) { return wt(e, (o) => { - let a; - if (n.groupId && Object.entries(o.historyData).forEach(([u, f]) => { - f.content.find((l) => l.groupId === n.groupId) && (a = u); - }), a) { - o.historyData[a].content.push(n); + let c; + if (i.groupId && Object.entries(o.historyData).forEach(([u, f]) => { + f.content.find((a) => a.groupId === i.groupId) && (c = u); + }), c) { + o.historyData[c].content.push(i); return; } - o.historyData[t] || (o.historyData[t] = { id: t, role: Q.user, content: [n] }, o.historyIds.push(t)); + o.historyData[t] || (o.historyData[t] = { id: t, role: Z.user, content: [i] }, o.historyIds.push(t)); }); }, fillInitialMessage(e, { payload: t }) { e.historyIds.push(t.id), e.historyData[t.id] = { id: t.id, - role: Q.assistant, + role: Z.assistant, time: (/* @__PURE__ */ new Date()).getTime(), content: t.content }; @@ -5553,8 +5448,8 @@ const wt = Ks, mi = or({ e.closed = !0; }, hideResendIcon(e, { payload: t }) { - return wt(e, (n) => { - n.historyData[t.itemId].content = n.historyData[t.itemId].content.map((o) => ({ + return wt(e, (i) => { + i.historyData[t.itemId].content = i.historyData[t.itemId].content.map((o) => ({ ...o, sent: !0, resend: !1 @@ -5562,8 +5457,8 @@ const wt = Ks, mi = or({ }); }, showResendIcon(e, { payload: t }) { - return wt(e, (n) => { - n.historyData[t.itemId].content = n.historyData[t.itemId].content.map((o) => ({ + return wt(e, (i) => { + i.historyData[t.itemId].content = i.historyData[t.itemId].content.map((o) => ({ ...o, sent: !1, resend: !0 @@ -5588,7 +5483,7 @@ const wt = Ks, mi = or({ e.historyIds = mt.historyIds, e.historyData = mt.historyData; } } -}), nr = (e) => e.chat, Zs = (e) => e.chat.historyIds.find((t) => e.chat.historyData[t].role === Q.user), Qs = (e, t) => e.sequence - t.sequence, { +}), nr = (e) => e.chat, Zs = (e) => e.chat.historyIds.find((t) => e.chat.historyData[t].role === Z.user), Qs = (e, t) => e.sequence - t.sequence, { setOutgoing: Zr, resetOutgoing: ea, setExistingHistory: ta, @@ -5596,16 +5491,16 @@ const wt = Ks, mi = or({ setIsLoading: Gt, resetIsLoading: Bt, setLastGroupPointer: ra, - setTypingTimeoutExpired: gi, + setTypingTimeoutExpired: yi, setError: qt, resetError: vr, - setConnected: Pn, + setConnected: _n, setClosed: ar, hideResendIcon: na, - showResendIcon: _n, - resendMessage: yi, + showResendIcon: jn, + resendMessage: gi, setIsStreaming: Er, - fillAssistantHistoryData: jn, + fillAssistantHistoryData: Rn, fillUserHistoryData: ir, resetHistory: ia, fillInitialMessage: oa @@ -5642,29 +5537,29 @@ const wt = Ks, mi = or({ } } }), xi = (e) => e.intentions.email, aa = (e) => e.intentions.payment, { - setEmailSuccess: la, - setIsPaymentSuccessful: ca, + setEmailSuccess: ca, + setIsPaymentSuccessful: la, setPaymentFormVisibility: ua, - setEmailError: Rn, + setEmailError: kn, setIsEmailLoading: Ur, setIsPaymentButtonVisible: fa, setPaymentIntentError: da, setEmail: pa, setLink: vi } = bi.actions, ha = bi.reducer, ma = () => { - var k; - const { cid: e, systemType: t, marketing: n, pd: o } = j(Ut), { translations: a, purpose: u, specialUrls: f } = j(se), { isLoading: l, isStreaming: h } = j(nr), { error: b } = j((C) => C.chat), w = j((C) => C.intentions.link), { error: x, current: I } = j(xi), { - isFormVisible: S, - error: B, - isSuccessful: _ - } = j(aa), P = { + var _; + const { cid: e, systemType: t, marketing: i, pd: o } = $(Ut), { translations: c, purpose: u, specialUrls: f } = $(nt), { isLoading: a, isStreaming: h } = $(nr), { error: x } = $((C) => C.chat), y = $((C) => C.intentions.link), { error: b, current: I } = $(xi), { + isFormVisible: P, + error: O, + isSuccessful: S + } = $(aa), j = { systemType: t, - marketing: n, - error: b || x || B, + marketing: i, + error: x || b || O, cid: e, - isLoading: l, + isLoading: a, currentEmail: I, - translations: a, + translations: c, pd: o, isStreaming: h, isPaymentButtonVisible: !1, @@ -5673,47 +5568,47 @@ const wt = Ks, mi = or({ isResponseFormVisible: !1, ctaText: "", ctaHref: "" - }, { historyData: N, historyIds: le } = j(nr), we = [...le].pop(), A = we && N[we], he = A && A.role === Q.assistant, ge = he && w, _e = !(A && (A != null && A.content.find((C) => C.buttons))), xe = A && (A == null ? void 0 : A.content.find((C) => C.payment)), je = A && (A == null ? void 0 : A.content.find((C) => C.email)); - if (he && xe) + }, { historyData: L, historyIds: ae } = $(nr), me = [...ae].pop(), k = me && L[me], pe = k && k.role === Z.assistant, we = pe && y, _e = !(k && (k != null && k.content.find((C) => C.buttons))), be = k && (k == null ? void 0 : k.content.find((C) => C.payment)), je = k && (k == null ? void 0 : k.content.find((C) => C.email)); + if (pe && be) return { - ...P, + ...j, isPaymentButtonVisible: !0 }; - if (he && je) + if (pe && je) return { - ...P, + ...j, isEmailFormVisible: !0, - isPaymentFormVisible: S + isPaymentFormVisible: P }; - if (_) + if (S) return { - ...P, - ctaText: a.ctaTextContent, + ...j, + ctaText: c.ctaTextContent, ctaHref: "/", - isPaymentFormVisible: S + isPaymentFormVisible: P }; - const pe = A && ((k = A == null ? void 0 : A.content) == null ? void 0 : k.find((C) => C.special)); - if (he && pe && (pe != null && pe.special)) + const de = k && ((_ = k == null ? void 0 : k.content) == null ? void 0 : _.find((C) => C.special)); + if (pe && de && (de != null && de.special)) return { - ...P, - ctaText: f[pe.special].includes("merchant") ? a.merchantButton : a.supportButton, - ctaHref: f[pe.special] + ...j, + ctaText: f[de.special].includes("merchant") ? c.merchantButton : c.supportButton, + ctaHref: f[de.special] }; - if (ge && u === Wr) + if (we && u === Wr) return { - ...P, + ...j, isResponseFormVisible: !0 }; - const T = A && !ge && !l && (_e || (A == null ? void 0 : A.role) === Q.user); + const T = k && !we && !a && (_e || (k == null ? void 0 : k.role) === Z.user); return { - ...P, - ctaText: a.mealButton, - ctaHref: ge, + ...j, + ctaText: c.mealButton, + ctaHref: we, isResponseFormVisible: T }; }; -var Qr = { exports: {} }, bt = typeof Reflect == "object" ? Reflect : null, Bn = bt && typeof bt.apply == "function" ? bt.apply : function(t, n, o) { - return Function.prototype.apply.call(t, n, o); +var Qr = { exports: {} }, bt = typeof Reflect == "object" ? Reflect : null, Bn = bt && typeof bt.apply == "function" ? bt.apply : function(t, i, o) { + return Function.prototype.apply.call(t, i, o); }, Kt; bt && typeof bt.ownKeys == "function" ? Kt = bt.ownKeys : Object.getOwnPropertySymbols ? Kt = function(t) { return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)); @@ -5726,21 +5621,21 @@ function wa(e) { var Ei = Number.isNaN || function(t) { return t !== t; }; -function J() { - J.init.call(this); +function Y() { + Y.init.call(this); } -Qr.exports = J; +Qr.exports = Y; Qr.exports.once = xa; -J.EventEmitter = J; -J.prototype._events = void 0; -J.prototype._eventsCount = 0; -J.prototype._maxListeners = void 0; +Y.EventEmitter = Y; +Y.prototype._events = void 0; +Y.prototype._eventsCount = 0; +Y.prototype._maxListeners = void 0; var An = 10; -function lr(e) { +function cr(e) { if (typeof e != "function") throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof e); } -Object.defineProperty(J, "defaultMaxListeners", { +Object.defineProperty(Y, "defaultMaxListeners", { enumerable: !0, get: function() { return An; @@ -5751,356 +5646,326 @@ Object.defineProperty(J, "defaultMaxListeners", { An = e; } }); -J.init = function() { +Y.init = function() { (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0; }; -J.prototype.setMaxListeners = function(t) { +Y.prototype.setMaxListeners = function(t) { if (typeof t != "number" || t < 0 || Ei(t)) throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + t + "."); return this._maxListeners = t, this; }; function Ii(e) { - return e._maxListeners === void 0 ? J.defaultMaxListeners : e._maxListeners; + return e._maxListeners === void 0 ? Y.defaultMaxListeners : e._maxListeners; } -J.prototype.getMaxListeners = function() { +Y.prototype.getMaxListeners = function() { return Ii(this); }; -J.prototype.emit = function(t) { - for (var n = [], o = 1; o < arguments.length; o++) - n.push(arguments[o]); - var a = t === "error", u = this._events; +Y.prototype.emit = function(t) { + for (var i = [], o = 1; o < arguments.length; o++) + i.push(arguments[o]); + var c = t === "error", u = this._events; if (u !== void 0) - a = a && u.error === void 0; - else if (!a) + c = c && u.error === void 0; + else if (!c) return !1; - if (a) { + if (c) { var f; - if (n.length > 0 && (f = n[0]), f instanceof Error) + if (i.length > 0 && (f = i[0]), f instanceof Error) throw f; - var l = new Error("Unhandled error." + (f ? " (" + f.message + ")" : "")); - throw l.context = f, l; + var a = new Error("Unhandled error." + (f ? " (" + f.message + ")" : "")); + throw a.context = f, a; } var h = u[t]; if (h === void 0) return !1; if (typeof h == "function") - Bn(h, this, n); + Bn(h, this, i); else - for (var b = h.length, w = Pi(h, b), o = 0; o < b; ++o) - Bn(w[o], this, n); + for (var x = h.length, y = _i(h, x), o = 0; o < x; ++o) + Bn(y[o], this, i); return !0; }; -function Ti(e, t, n, o) { - var a, u, f; - if (lr(n), u = e._events, u === void 0 ? (u = e._events = /* @__PURE__ */ Object.create(null), e._eventsCount = 0) : (u.newListener !== void 0 && (e.emit( +function Ti(e, t, i, o) { + var c, u, f; + if (cr(i), u = e._events, u === void 0 ? (u = e._events = /* @__PURE__ */ Object.create(null), e._eventsCount = 0) : (u.newListener !== void 0 && (e.emit( "newListener", t, - n.listener ? n.listener : n + i.listener ? i.listener : i ), u = e._events), f = u[t]), f === void 0) - f = u[t] = n, ++e._eventsCount; - else if (typeof f == "function" ? f = u[t] = o ? [n, f] : [f, n] : o ? f.unshift(n) : f.push(n), a = Ii(e), a > 0 && f.length > a && !f.warned) { + f = u[t] = i, ++e._eventsCount; + else if (typeof f == "function" ? f = u[t] = o ? [i, f] : [f, i] : o ? f.unshift(i) : f.push(i), c = Ii(e), c > 0 && f.length > c && !f.warned) { f.warned = !0; - var l = new Error("Possible EventEmitter memory leak detected. " + f.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit"); - l.name = "MaxListenersExceededWarning", l.emitter = e, l.type = t, l.count = f.length, wa(l); + var a = new Error("Possible EventEmitter memory leak detected. " + f.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit"); + a.name = "MaxListenersExceededWarning", a.emitter = e, a.type = t, a.count = f.length, wa(a); } return e; } -J.prototype.addListener = function(t, n) { - return Ti(this, t, n, !1); +Y.prototype.addListener = function(t, i) { + return Ti(this, t, i, !1); }; -J.prototype.on = J.prototype.addListener; -J.prototype.prependListener = function(t, n) { - return Ti(this, t, n, !0); +Y.prototype.on = Y.prototype.addListener; +Y.prototype.prependListener = function(t, i) { + return Ti(this, t, i, !0); }; -function ga() { +function ya() { if (!this.fired) return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments); } -function Si(e, t, n) { - var o = { fired: !1, wrapFn: void 0, target: e, type: t, listener: n }, a = ga.bind(o); - return a.listener = n, o.wrapFn = a, a; +function Ci(e, t, i) { + var o = { fired: !1, wrapFn: void 0, target: e, type: t, listener: i }, c = ya.bind(o); + return c.listener = i, o.wrapFn = c, c; } -J.prototype.once = function(t, n) { - return lr(n), this.on(t, Si(this, t, n)), this; +Y.prototype.once = function(t, i) { + return cr(i), this.on(t, Ci(this, t, i)), this; }; -J.prototype.prependOnceListener = function(t, n) { - return lr(n), this.prependListener(t, Si(this, t, n)), this; +Y.prototype.prependOnceListener = function(t, i) { + return cr(i), this.prependListener(t, Ci(this, t, i)), this; }; -J.prototype.removeListener = function(t, n) { - var o, a, u, f, l; - if (lr(n), a = this._events, a === void 0) +Y.prototype.removeListener = function(t, i) { + var o, c, u, f, a; + if (cr(i), c = this._events, c === void 0) return this; - if (o = a[t], o === void 0) + if (o = c[t], o === void 0) return this; - if (o === n || o.listener === n) - --this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete a[t], a.removeListener && this.emit("removeListener", t, o.listener || n)); + if (o === i || o.listener === i) + --this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete c[t], c.removeListener && this.emit("removeListener", t, o.listener || i)); else if (typeof o != "function") { for (u = -1, f = o.length - 1; f >= 0; f--) - if (o[f] === n || o[f].listener === n) { - l = o[f].listener, u = f; + if (o[f] === i || o[f].listener === i) { + a = o[f].listener, u = f; break; } if (u < 0) return this; - u === 0 ? o.shift() : ya(o, u), o.length === 1 && (a[t] = o[0]), a.removeListener !== void 0 && this.emit("removeListener", t, l || n); + u === 0 ? o.shift() : ga(o, u), o.length === 1 && (c[t] = o[0]), c.removeListener !== void 0 && this.emit("removeListener", t, a || i); } return this; }; -J.prototype.off = J.prototype.removeListener; -J.prototype.removeAllListeners = function(t) { - var n, o, a; +Y.prototype.off = Y.prototype.removeListener; +Y.prototype.removeAllListeners = function(t) { + var i, o, c; if (o = this._events, o === void 0) return this; if (o.removeListener === void 0) return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : o[t] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete o[t]), this; if (arguments.length === 0) { var u = Object.keys(o), f; - for (a = 0; a < u.length; ++a) - f = u[a], f !== "removeListener" && this.removeAllListeners(f); + for (c = 0; c < u.length; ++c) + f = u[c], f !== "removeListener" && this.removeAllListeners(f); return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this; } - if (n = o[t], typeof n == "function") - this.removeListener(t, n); - else if (n !== void 0) - for (a = n.length - 1; a >= 0; a--) - this.removeListener(t, n[a]); + if (i = o[t], typeof i == "function") + this.removeListener(t, i); + else if (i !== void 0) + for (c = i.length - 1; c >= 0; c--) + this.removeListener(t, i[c]); return this; }; -function Ci(e, t, n) { +function Si(e, t, i) { var o = e._events; if (o === void 0) return []; - var a = o[t]; - return a === void 0 ? [] : typeof a == "function" ? n ? [a.listener || a] : [a] : n ? ba(a) : Pi(a, a.length); + var c = o[t]; + return c === void 0 ? [] : typeof c == "function" ? i ? [c.listener || c] : [c] : i ? ba(c) : _i(c, c.length); } -J.prototype.listeners = function(t) { - return Ci(this, t, !0); +Y.prototype.listeners = function(t) { + return Si(this, t, !0); }; -J.prototype.rawListeners = function(t) { - return Ci(this, t, !1); +Y.prototype.rawListeners = function(t) { + return Si(this, t, !1); }; -J.listenerCount = function(e, t) { - return typeof e.listenerCount == "function" ? e.listenerCount(t) : ki.call(e, t); +Y.listenerCount = function(e, t) { + return typeof e.listenerCount == "function" ? e.listenerCount(t) : Pi.call(e, t); }; -J.prototype.listenerCount = ki; -function ki(e) { +Y.prototype.listenerCount = Pi; +function Pi(e) { var t = this._events; if (t !== void 0) { - var n = t[e]; - if (typeof n == "function") + var i = t[e]; + if (typeof i == "function") return 1; - if (n !== void 0) - return n.length; + if (i !== void 0) + return i.length; } return 0; } -J.prototype.eventNames = function() { +Y.prototype.eventNames = function() { return this._eventsCount > 0 ? Kt(this._events) : []; }; -function Pi(e, t) { - for (var n = new Array(t), o = 0; o < t; ++o) - n[o] = e[o]; - return n; +function _i(e, t) { + for (var i = new Array(t), o = 0; o < t; ++o) + i[o] = e[o]; + return i; } -function ya(e, t) { +function ga(e, t) { for (; t + 1 < e.length; t++) e[t] = e[t + 1]; e.pop(); } function ba(e) { - for (var t = new Array(e.length), n = 0; n < t.length; ++n) - t[n] = e[n].listener || e[n]; + for (var t = new Array(e.length), i = 0; i < t.length; ++i) + t[i] = e[i].listener || e[i]; return t; } function xa(e, t) { - return new Promise(function(n, o) { - function a(f) { + return new Promise(function(i, o) { + function c(f) { e.removeListener(t, u), o(f); } function u() { - typeof e.removeListener == "function" && e.removeListener("error", a), n([].slice.call(arguments)); + typeof e.removeListener == "function" && e.removeListener("error", c), i([].slice.call(arguments)); } - _i(e, t, u, { once: !0 }), t !== "error" && va(e, a, { once: !0 }); + ji(e, t, u, { once: !0 }), t !== "error" && va(e, c, { once: !0 }); }); } -function va(e, t, n) { - typeof e.on == "function" && _i(e, "error", t, n); +function va(e, t, i) { + typeof e.on == "function" && ji(e, "error", t, i); } -function _i(e, t, n, o) { +function ji(e, t, i, o) { if (typeof e.on == "function") - o.once ? e.once(t, n) : e.on(t, n); + o.once ? e.once(t, i) : e.on(t, i); else if (typeof e.addEventListener == "function") - e.addEventListener(t, function a(u) { - o.once && e.removeEventListener(t, a), n(u); + e.addEventListener(t, function c(u) { + o.once && e.removeEventListener(t, c), i(u); }); else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof e); } var Ea = Qr.exports; -const Ue = { +const Me = { type: Gn, core: new Ea.EventEmitter() }, Ia = ( /*tw*/ ie({ slots: { - base: "tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none" - }, - variants: { - theme: { - light: { - base: "tw--bg-light-glazeBg tw--text-light-glazeText tw--border-light-seraph tw--font-medium" - }, - dark: { - base: "tw--bg-dark-glazeBg tw--text-dark-glazeText tw--border-dark-glaze" - } - } + base: "tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none tw--bg-glazeBg tw--text-glazeText tw--border-glaze tw--font-density-different" } }) ), Ta = ( /*tw*/ ie({ slots: { - base: "tw--text-[inherit]" + base: "tw--flex-1 tw--text-dots" }, variants: { - theme: { - light: { base: "tw--text-light-status" }, - dark: { base: "tw--text-dark-seraph" } - }, outlined: { true: "tw--p-0.5 tw--bg-white tw--rounded-full tw--shadow", false: "tw--bg-[transparent]" } } }) -), Sa = ({ text: e = "", onClick: t, e2e: n }) => { - const { themeId: o } = j(se), { base: a } = Ia({ theme: o }); - return /* @__PURE__ */ g.jsx( +), Ca = ({ text: e = "", onClick: t, e2e: i }) => { + const { base: o } = Ia(); + return /* @__PURE__ */ w.jsx( "button", { onClick: t, - className: a(), + className: o(), type: "button", - "data-e2e": n, + "data-e2e": i, children: e } ); -}, cr = ({ children: e, outlined: t = !1, onClick: n, e2e: o = null, disabled: a = !1 }) => { - const { themeId: u } = j(se), { base: f } = Ta({ theme: u, outlined: t }); - return /* @__PURE__ */ g.jsx( +}, lr = ({ children: e, outlined: t = !1, onClick: i, e2e: o = null, disabled: c = !1 }) => { + const { base: u } = Ta({ outlined: t }); + return /* @__PURE__ */ w.jsx( "button", { - onClick: n, - className: f(), + onClick: i, + className: u(), "data-e2e": o, - disabled: a, + disabled: c, type: "button", children: e } ); -}, Ca = ( +}, Sa = ( /* tw*/ ie({ slots: { base: "tw--relative tw--flex tw--items-center", - input: "tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] focus:tw--outline-none", + input: "tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] focus:tw--outline-none focus:!tw--bg-lumina tw--bg-lumina tw--text-zephyr-100 tw--font-density-different", loader: "tw--absolute tw--right-4 tw--top-[50%] tw--translate-y-[-50%]", - spin: "tw--block tw--w-6 tw--h-6 tw--border-solid tw--border-[5px] tw--rounded-3xl tw--animate-rotate tw--m-auto" - }, - variants: { - theme: { - light: { - base: "", - input: "tw--bg-light-lumina tw--text-light-zephyr-100 tw--font-semibold focus:!tw--bg-light-lumina", - loader: "", - spin: "tw--border-light-zephyr-200 tw--border-t-light-zephyr-600 tw--border-l-light-zephyr-600" - }, - dark: { - base: "", - input: "tw--bg-dark-lumina tw--text-dark-zephyr-100 tw--font-bold focus:!tw--bg-dark-lumina", - loader: "", - spin: "w--border-dark-zephyr-200 tw--border-t-dark-zephyr-600 tw--border-l-dark-zephyr-600" - } - } + spin: "tw--block tw--w-6 tw--h-6 tw--border-solid tw--border-[5px] tw--rounded-3xl tw--animate-rotate tw--m-auto tw--border-zephyr-200 tw--border-t-zephyr-600 tw--border-l-zephyr-600" } }) ), en = Nn((e, t) => { const { - disabled: n, + disabled: i, e2e: o, - isLoading: a, + isLoading: c, onChange: u, onKeyUp: f, - placeholder: l, + placeholder: a, type: h, - value: b - } = e, { themeId: w } = j(se), { base: x, input: I, loader: S, spin: B } = Ca({ theme: w }); - return /* @__PURE__ */ g.jsxs("div", { className: x(), children: [ - /* @__PURE__ */ g.jsx( + value: x + } = e, { base: y, input: b, loader: I, spin: P } = Sa(); + return /* @__PURE__ */ w.jsxs("div", { className: y(), children: [ + /* @__PURE__ */ w.jsx( "input", { - className: I(), + className: b(), "data-e2e": o, - disabled: a || n, + disabled: c || i, onChange: u, onKeyUp: f, - placeholder: l, + placeholder: a, ref: t, type: h, - value: b + value: x } ), - a && /* @__PURE__ */ g.jsx("span", { className: S(), children: /* @__PURE__ */ g.jsx("span", { className: B() }) }) + c && /* @__PURE__ */ w.jsx("span", { className: I(), children: /* @__PURE__ */ w.jsx("span", { className: P() }) }) ] }); }); en.displayName = "Input"; -const ka = () => { - const e = Ye(), t = j((S) => S.meta), { themeId: n, translations: o } = j(se), { isLoading: a } = j(xi), { base: u, input: f, button: l } = ai({ theme: n }), [h, b] = xt(""), w = Dr(null); +const Pa = () => { + const e = He(), t = $((I) => I.meta), { translations: i } = $(nt), { isLoading: o } = $(xi), { base: c, input: u, button: f } = ai(), [a, h] = xt(""), x = Dr(null); Mt(() => { - Ee({ - eventType: be.emailField, + ve({ + eventType: ge.emailField, systemType: t.systemType, utmParams: t.marketing.lastUtmParams, customerUuid: t.cid }), setTimeout(() => { - w.current && w.current.focus(); + x.current && x.current.focus(); }, 500); }); - const x = (S) => { - const B = S.target.value.trim(); - b(B); - }, I = (S) => { - S.preventDefault(), h !== "" && (e(Ur(!0)), e(pa(h)), Ue.core.emit(Ue.type.email, { email: h }), b("")); + const y = (I) => { + const P = I.target.value.trim(); + h(P); + }, b = (I) => { + I.preventDefault(), a !== "" && (e(Ur(!0)), e(pa(a)), Me.core.emit(Me.type.email, { email: a }), h("")); }; - return /* @__PURE__ */ g.jsxs( + return /* @__PURE__ */ w.jsxs( "form", { - className: u(), - onSubmit: I, + className: c(), + onSubmit: b, "data-e2e": "email-form", children: [ - /* @__PURE__ */ g.jsx("div", { className: f(), children: /* @__PURE__ */ g.jsx( + /* @__PURE__ */ w.jsx("div", { className: u(), children: /* @__PURE__ */ w.jsx( en, { e2e: "email-input", - isLoading: a, + isLoading: o, name: "email", - onChange: x, - ref: w, - placeholder: o.emailPlaceholder, + onChange: y, + ref: x, + placeholder: i.emailPlaceholder, type: "email", - value: h + value: a } ) }), - /* @__PURE__ */ g.jsx("div", { className: l(), children: /* @__PURE__ */ g.jsx(cr, { onClick: I, e2e: "email-validate-btn", children: /* @__PURE__ */ g.jsx( + /* @__PURE__ */ w.jsx("div", { className: f(), children: /* @__PURE__ */ w.jsx(lr, { onClick: b, e2e: "email-validate-btn", children: /* @__PURE__ */ w.jsx( "svg", { fill: "currentColor", viewBox: "0 0 24 24", width: "20px", height: "20px", - children: /* @__PURE__ */ g.jsx( + children: /* @__PURE__ */ w.jsx( "path", { d: "M16.6915026,12.4744748 L3.50612381,13.2599618 C3.19218622,13.2599618 3.03521743,13.4170592 3.03521743,13.5741566 L1.15159189,20.0151496 C0.8376543,20.8006365 0.99,21.89 1.77946707,22.52 C2.41,22.99 3.50612381,23.1 4.13399899,22.8429026 L21.714504,14.0454487 C22.6563168,13.5741566 23.1272231,12.6315722 22.9702544,11.6889879 C22.8132856,11.0605983 22.3423792,10.4322088 21.714504,10.118014 L4.13399899,1.16346272 C3.34915502,0.9 2.40734225,1.00636533 1.77946707,1.4776575 C0.994623095,2.10604706 0.8376543,3.0486314 1.15159189,3.99121575 L3.03521743,10.4322088 C3.03521743,10.5893061 3.34915502,10.7464035 3.50612381,10.7464035 L16.6915026,11.5318905 C16.6915026,11.5318905 17.1624089,11.5318905 17.1624089,12.0031827 C17.1624089,12.4744748 16.6915026,12.4744748 16.6915026,12.4744748 Z" @@ -6111,65 +5976,65 @@ const ka = () => { ] } ); -}, Pa = () => { - const e = Ye(), { themeId: t } = j(se), { connected: n, isLoading: o } = j(nr), { base: a, input: u, button: f } = ai({ theme: t }), [l, h] = xt(""), [b, w] = xt(null), x = j(($) => $.chat.lastGroupId), I = Dr(null); +}, _a = () => { + const e = He(), { connected: t, isLoading: i } = $(nr), { base: o, input: c, button: u } = ai(), [f, a] = xt(""), [h, x] = xt(null), y = $((S) => S.chat.lastGroupId), b = Dr(null); Mt(() => { setTimeout(() => { - var $; - ($ = I.current) == null || $.focus(); + var S; + (S = b.current) == null || S.focus(); }, 500); }, []); - const S = ($) => { - h($.target.value), _(); - }, B = ($) => { - $.preventDefault(), l.trim() && e(ir({ - role: Q.user, - id: fe(), + const I = (S) => { + a(S.target.value), O(); + }, P = (S) => { + S.preventDefault(), f.trim() && e(ir({ + role: Z.user, + id: ue(), sequence: 1, content: { sequence: 1, - message: l, - groupId: x, + message: f, + groupId: y, resend: !1, sent: !0 } - })), h(""), _(); - }, _ = () => { - b && clearTimeout(b); - const $ = setTimeout(() => { - e(gi(!0)), e(ra(fe())); + })), a(""), O(); + }, O = () => { + h && clearTimeout(h); + const S = setTimeout(() => { + e(yi(!0)), e(ra(ue())); }, Ls); - w($); + x(S); }; - return /* @__PURE__ */ g.jsxs( + return /* @__PURE__ */ w.jsxs( "form", { - className: a(), - onSubmit: B, + className: o(), + onSubmit: P, "data-e2e": "user-form", children: [ - /* @__PURE__ */ g.jsx("div", { className: u(), children: /* @__PURE__ */ g.jsx( + /* @__PURE__ */ w.jsx("div", { className: c(), children: /* @__PURE__ */ w.jsx( en, { - disabled: !n, - isLoading: o, + disabled: !t, + isLoading: i, e2e: "message-input", name: "response", - onChange: S, + onChange: I, placeholder: "Write your message here...", type: "response", - value: l, - ref: I + value: f, + ref: b } ) }), - /* @__PURE__ */ g.jsx("div", { className: f(), children: /* @__PURE__ */ g.jsx(cr, { onClick: B, disabled: !n, children: /* @__PURE__ */ g.jsx( + /* @__PURE__ */ w.jsx("div", { className: u(), children: /* @__PURE__ */ w.jsx(lr, { onClick: P, disabled: !t, children: /* @__PURE__ */ w.jsx( "svg", { fill: "currentColor", viewBox: "0 0 24 24", width: "20px", height: "20px", - children: /* @__PURE__ */ g.jsx( + children: /* @__PURE__ */ w.jsx( "path", { d: "M16.6915026,12.4744748 L3.50612381,13.2599618 C3.19218622,13.2599618 3.03521743,13.4170592 3.03521743,13.5741566 L1.15159189,20.0151496 C0.8376543,20.8006365 0.99,21.89 1.77946707,22.52 C2.41,22.99 3.50612381,23.1 4.13399899,22.8429026 L21.714504,14.0454487 C22.6563168,13.5741566 23.1272231,12.6315722 22.9702544,11.6889879 C22.8132856,11.0605983 22.3423792,10.4322088 21.714504,10.118014 L4.13399899,1.16346272 C3.34915502,0.9 2.40734225,1.00636533 1.77946707,1.4776575 C0.994623095,2.10604706 0.8376543,3.0486314 1.15159189,3.99121575 L3.03521743,10.4322088 C3.03521743,10.5893061 3.34915502,10.7464035 3.50612381,10.7464035 L16.6915026,11.5318905 C16.6915026,11.5318905 17.1624089,11.5318905 17.1624089,12.0031827 C17.1624089,12.4744748 16.6915026,12.4744748 16.6915026,12.4744748 Z" @@ -6180,71 +6045,71 @@ const ka = () => { ] } ); -}, _a = () => { - const e = Ye(), t = ma(), n = Dr(null), [o, a] = xt(!1), u = (x) => { - e(ua(x)); +}, ja = () => { + const e = He(), t = ma(), i = Dr(null), [o, c] = xt(!1), u = (b) => { + e(ua(b)); }; Mt(() => { - t.isEmailFormVisible && Ee({ - eventType: be.emailField, + t.isEmailFormVisible && ve({ + eventType: ge.emailField, systemType: t.systemType, utmParams: t.marketing.lastUtmParams, customerUuid: t.cid, email: t.currentEmail }); }, [t.isEmailFormVisible]); - const f = (x) => { - x.currentTarget.disabled = !0, Ue.core.emit(Ue.type.destroy), u(!1), a(!1); - }, l = () => { - e(wi({ content: t.translations.tm1226 })), e(ca(!0)), e(fa(!1)), u(!1), Ee({ - eventType: be.linkProvided, + const f = (b) => { + b.currentTarget.disabled = !0, Me.core.emit(Me.type.destroy), u(!1), c(!1); + }, a = () => { + e(wi({ content: t.translations.tm1226 })), e(la(!0)), e(fa(!1)), u(!1), ve({ + eventType: ge.linkProvided, systemType: t.systemType, utmParams: t.marketing.lastUtmParams, customerUuid: t.cid, email: t.currentEmail }), setTimeout(() => { - n.current && n.current.click(); + i.current && i.current.click(); }, 7e3); - }, h = (x) => { - e(da(x)); - }, b = () => { - Ue.core.emit(Ue.type.payment, { setIsPaymentContainerVisible: u, onPaymentSuccess: l, onError: h }), a(!0); - }, w = (x) => { - localStorage.setItem(fi, x.currentTarget.href), Ee({ - eventType: be.linkClicked, + }, h = (b) => { + e(da(b)); + }, x = () => { + Me.core.emit(Me.type.payment, { setIsPaymentContainerVisible: u, onPaymentSuccess: a, onError: h }), c(!0); + }, y = (b) => { + localStorage.setItem(fi, b.currentTarget.href), ve({ + eventType: ge.linkClicked, systemType: t.systemType, utmParams: t.marketing.lastUtmParams, customerUuid: t.cid, email: t.currentEmail }), e(ar()); }; - return /* @__PURE__ */ g.jsxs("div", { className: "tw--space-y-[11px] tw--pb-[11px]", "data-e2e": "chat-foot", children: [ - t.error && /* @__PURE__ */ g.jsx("div", { "data-e2e": "error-message", className: "tw--pl-[35px] tw--text-[#ff0043] tw--font-medium", children: t.error }), - t.isPaymentFormVisible && /* @__PURE__ */ g.jsx(Is, { onClose: f }), - t.isLoading && /* @__PURE__ */ g.jsx(_s, {}), - t.ctaHref && /* @__PURE__ */ g.jsx( - ci, + return /* @__PURE__ */ w.jsxs("div", { className: "tw--space-y-[11px] tw--pb-[11px]", "data-e2e": "chat-foot", children: [ + t.error && /* @__PURE__ */ w.jsx("div", { "data-e2e": "error-message", className: "tw--pl-[35px] tw--text-[#ff0043] tw--font-medium", children: t.error }), + t.isPaymentFormVisible && /* @__PURE__ */ w.jsx(Is, { onClose: f }), + t.isLoading && /* @__PURE__ */ w.jsx(js, {}), + t.ctaHref && /* @__PURE__ */ w.jsx( + li, { - ref: n, + ref: i, text: t.ctaText, - onClick: w, + onClick: y, href: t.ctaHref, e2e: "quiz-trigger-btn" } ), - !t.isStreaming && t.isEmailFormVisible && /* @__PURE__ */ g.jsx(ka, {}), - !t.isStreaming && t.isResponseFormVisible && /* @__PURE__ */ g.jsx(Pa, {}), - t.isPaymentButtonVisible && /* @__PURE__ */ g.jsx( - ys, + !t.isStreaming && t.isEmailFormVisible && /* @__PURE__ */ w.jsx(Pa, {}), + !t.isStreaming && t.isResponseFormVisible && /* @__PURE__ */ w.jsx(_a, {}), + t.isPaymentButtonVisible && /* @__PURE__ */ w.jsx( + gs, { text: t.translations.payButton, - onClick: b, + onClick: x, disabled: o, e2e: "payment-form-trigger-btn" } ) ] }); -}, ja = ( +}, Ra = ( /*tw*/ ie({ slots: { @@ -6257,24 +6122,19 @@ const ka = () => { minimized: "" }, variants: { - theme: { - light: { - role: "" - }, - dark: { - role: "" - } - }, orientation: { horizontal: { base: "tw--flex-row tw--text-left", avatar: "tw--shrink", name: "tw--text-xl/7 tw--font-bold tw--leading-[30px]", - info: "tw--pl-[10px]" + info: "tw--pl-[10px]", + role: "tw--text-zephyr-800", + imgWrapper: "after:tw--absolute after:tw--w-[10px] after:tw--h-[10px] after:tw--bottom-[-2px] after:tw--left-[37px] after:tw--z-10 after:tw--rounded-full after:tw--bg-iota-dots" }, vertical: { base: "tw--flex-col tw--text-center", - name: "tw--text-[24px] tw--font-semibold" + name: "tw--text-[24px] tw--font-semibold", + role: "tw--font-density-different tw--text-zephyr-600" } }, minimized: { @@ -6283,35 +6143,11 @@ const ka = () => { } }, compoundSlots: [ - { - slots: ["role"], - orientation: "vertical", - theme: "light", - class: "tw--text-light-zephyr-600 tw--font-medium" - }, - { - slots: ["role"], - orientation: "horizontal", - theme: "light", - class: "tw--text-light-zephyr-800" - }, - { - slots: ["role"], - orientation: "vertical", - theme: "dark", - class: "tw--text-dark-zephyr-600" - }, - { - slots: ["role"], - orientation: "horizontal", - theme: "dark", - class: "tw--text-dark-zephyr-800" - }, { slots: ["imgWrapper"], orientation: "horizontal", minimized: !1, - class: "tw--relative tw--h-fit after:tw--absolute after:tw--w-[10px] after:tw--h-[10px] after:tw--bottom-[-2px] after:tw--left-[37px] after:tw--z-10 after:tw--rounded-full after:tw--bg-light-iota-dots" + class: "tw--relative tw--h-fit" }, { slots: ["avatar"], @@ -6327,26 +6163,26 @@ const ka = () => { } ] }) -), ji = ({ orientation: e = $r.horizontal, minimized: t = !1 }) => { - const { aiProfile: n, themeId: o } = j(se), { base: a, avatar: u, info: f, name: l, role: h, imgWrapper: b } = ja({ theme: o, orientation: e, minimized: t }); - return /* @__PURE__ */ g.jsxs("div", { className: a(), children: [ - /* @__PURE__ */ g.jsx("span", { className: b(), children: /* @__PURE__ */ g.jsx( +), Ri = ({ orientation: e = $r.horizontal, minimized: t = !1 }) => { + const { aiProfile: i } = $(nt), { base: o, avatar: c, info: u, name: f, role: a, imgWrapper: h } = Ra({ orientation: e, minimized: t }); + return /* @__PURE__ */ w.jsxs("div", { className: o(), children: [ + /* @__PURE__ */ w.jsx("span", { className: h(), children: /* @__PURE__ */ w.jsx( "img", { - className: u(), - src: n.imgSrc, + className: c(), + src: i.imgSrc, alt: "img" } ) }), - /* @__PURE__ */ g.jsxs("div", { className: f(), children: [ - /* @__PURE__ */ g.jsx("div", { className: l(), children: n.name }), - /* @__PURE__ */ g.jsx("div", { className: h(), children: n.role }) + /* @__PURE__ */ w.jsxs("div", { className: u(), children: [ + /* @__PURE__ */ w.jsx("div", { className: f(), children: i.name }), + /* @__PURE__ */ w.jsx("div", { className: a(), children: i.role }) ] }) ] }); -}, Ra = () => { - const e = Ye(), t = _o(), { base: n } = cs({ theme: t.theme }), o = (a) => { - a.currentTarget.disabled = !0, Ee({ - eventType: be.closeClicked, +}, ka = () => { + const e = He(), t = jo(), { base: i } = ls({ theme: t.theme }), o = (c) => { + c.currentTarget.disabled = !0, ve({ + eventType: ge.closeClicked, systemType: t.systemType, utmParams: t.marketing.lastUtmParams, customerUuid: t.cid @@ -6354,22 +6190,22 @@ const ka = () => { e(ar()); }, Fs); }; - return /* @__PURE__ */ g.jsxs("div", { className: n(), "data-e2e": "chat-heading", children: [ - /* @__PURE__ */ g.jsx(ji, {}), - t.closeVisible && /* @__PURE__ */ g.jsx(cr, { e2e: "chat-close-btn", onClick: o, children: /* @__PURE__ */ g.jsx( + return /* @__PURE__ */ w.jsxs("div", { className: i(), "data-e2e": "chat-heading", children: [ + /* @__PURE__ */ w.jsx(Ri, {}), + t.closeVisible && /* @__PURE__ */ w.jsx(lr, { e2e: "chat-close-btn", onClick: o, children: /* @__PURE__ */ w.jsx( "svg", { height: "24px", viewBox: "0 0 24 24", width: "24px", - children: /* @__PURE__ */ g.jsxs( + children: /* @__PURE__ */ w.jsxs( "g", { stroke: "currentColor", strokeLinecap: "round", strokeWidth: "2", children: [ - /* @__PURE__ */ g.jsx( + /* @__PURE__ */ w.jsx( "line", { x1: "6", @@ -6378,7 +6214,7 @@ const ka = () => { y2: "18" } ), - /* @__PURE__ */ g.jsx( + /* @__PURE__ */ w.jsx( "line", { x1: "6", @@ -6395,57 +6231,57 @@ const ka = () => { ] }); }, Ba = (e) => { const t = (o) => /[?&]([^=#]+)=([^&#]*)/g.test(o); - let n; + let i; if (window.location.search) { const o = new URLSearchParams(window.location.search); - o.append(js, "true"), o.append(Bs, localStorage.getItem("__cid") || ""), n = `/?${o}`; + o.append(Rs, "true"), o.append(Bs, localStorage.getItem("__cid") || ""), i = `/?${o}`; } else - n = ""; - return t(e) ? e : e + n; + i = ""; + return t(e) ? e : e + i; }, Aa = ({ properties: e }) => { - const { purpose: t } = j(se), { cid: n, marketing: o, systemType: a } = j(Ut), u = Ye(), f = e.href ? Ba(e.href) : "#"; + const { purpose: t } = $(nt), { cid: i, marketing: o, systemType: c } = $(Ut), u = He(), f = e.href ? Ba(e.href) : "#"; Mt(() => { u(vi(f)); }); - const l = (h) => { - t !== Wr && localStorage.setItem(fi, h.currentTarget.href), Ee({ - eventType: be.linkClicked, - systemType: a, + const a = (h) => { + t !== Wr && localStorage.setItem(fi, h.currentTarget.href), ve({ + eventType: ge.linkClicked, + systemType: c, utmParams: o.lastUtmParams, - customerUuid: n + customerUuid: i }), u(ar()); }; - return /* @__PURE__ */ g.jsx( + return /* @__PURE__ */ w.jsx( "a", { href: f, - onClick: l, + onClick: a, className: "tw--underline", children: e.href } ); }, Fa = (e) => { - const n = /embed\/(\w+)/.exec(e); - return n ? n[1] : null; -}, Oa = Nt.memo(function({ url: t, title: n }) { - const [o, a] = xt(!1), u = Fa(t), f = () => { - a(!0); + const i = /embed\/(\w+)/.exec(e); + return i ? i[1] : null; +}, Oa = Nt.memo(function({ url: t, title: i }) { + const [o, c] = xt(!1), u = Fa(t), f = () => { + c(!0); }; - return o ? /* @__PURE__ */ g.jsx( + return o ? /* @__PURE__ */ w.jsx( "iframe", { className: "w-full tw--h-80 tw--py-4", - title: n || "Missing title", + title: i || "Missing title", src: `${t}?enablejsapi=1&rel=0&origin=${window.location.origin}`, allow: "fullscreen" } - ) : /* @__PURE__ */ g.jsx( + ) : /* @__PURE__ */ w.jsx( "div", { className: "w-full tw--h-80 tw--py-4 tw--justify-center tw--flex tw--items-center tw--pointer-events-auto", onClick: f, style: { backgroundImage: `url(https://img.youtube.com/vi/${u}/hqdefault.jpg)` }, - children: /* @__PURE__ */ g.jsx("button", { className: "tw--items-center tw--justify-center tw--w-16 tw--h-16 tw--rounded-full tw--cursor-pointer tw--pointer-events-auto tw--flex tw--bg-gradient-to-b tw--from-[#FF0000] tw--to-[#F25640]", children: /* @__PURE__ */ g.jsx("svg", { className: "tw--pointer-events-none", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ g.jsx( + children: /* @__PURE__ */ w.jsx("button", { className: "tw--items-center tw--justify-center tw--w-16 tw--h-16 tw--rounded-full tw--cursor-pointer tw--pointer-events-auto tw--flex tw--bg-gradient-to-b tw--from-[#FF0000] tw--to-[#F25640]", children: /* @__PURE__ */ w.jsx("svg", { className: "tw--pointer-events-none", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ w.jsx( "path", { d: "M10.6665 9.09335V22.9067C10.6665 23.96 11.8265 24.6 12.7198 24.0267L23.5732 17.12C23.7632 16.9998 23.9197 16.8334 24.0282 16.6364C24.1366 16.4394 24.1935 16.2182 24.1935 15.9933C24.1935 15.7685 24.1366 15.5473 24.0282 15.3503C23.9197 15.1533 23.7632 14.9869 23.5732 14.8667L12.7198 7.97335C12.5187 7.84327 12.2862 7.76989 12.0469 7.76094C11.8076 7.75199 11.5702 7.8078 11.36 7.92249C11.1497 8.03718 10.9743 8.20649 10.8523 8.41257C10.7302 8.61864 10.666 8.85384 10.6665 9.09335V9.09335Z", @@ -6458,17 +6294,7 @@ const ka = () => { /* tw*/ ie({ slots: { - base: "tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none tw--text-center" - }, - variants: { - theme: { - light: { - base: "tw--inline-block tw--bg-light-glaze tw--text-white" - }, - dark: { - base: "tw--inline-block tw--bg-dark-glazeBg tw--text-dark-glazeText" - } - } + base: "tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none tw--text-center tw--bg-glaze tw--text-whisper" } }) ); @@ -6478,30 +6304,41 @@ ie({ base: "tw--flex-1 tw--px-4 tw--py-2" } }); -const Na = ({ text: e, href: t, onClick: n }) => { - const { themeId: o } = j(se), { base: a } = La({ theme: o }); - return /* @__PURE__ */ g.jsx( +const Na = ({ text: e, href: t, onClick: i }) => { + const { base: o } = La(); + return /* @__PURE__ */ w.jsx( "a", { href: t, - onClick: n, - className: a(), + onClick: i, + className: o(), children: e } ); }, Ma = ({ options: e = [] }) => { - const t = Ye(), n = j(Ut), o = !j(Zs), a = (f, l) => { - t(ir({ id: fe(), sequence: 1, role: Q.user, content: { sequence: 1, message: f, resend: !1, sent: !0, groupId: "" } })), t(Zr(f)), o && Ee({ - eventType: be.buttonClick + l, - systemType: n.systemType, - utmParams: n.marketing.lastUtmParams, - customerUuid: n.cid + const t = He(), i = $(Ut), o = !$(Zs), c = (f, a) => { + t(ir({ + id: ue(), + sequence: 1, + role: Z.user, + content: { + sequence: 1, + message: f, + resend: !1, + sent: !0, + groupId: "" + } + })), t(Zr(f)), o && ve({ + eventType: ge.buttonClick + a, + systemType: i.systemType, + utmParams: i.marketing.lastUtmParams, + customerUuid: i.cid }); }, u = (f) => { t(ir({ - id: fe(), + id: ue(), sequence: 1, - role: Q.user, + role: Z.user, content: { sequence: 1, message: f, @@ -6511,115 +6348,115 @@ const Na = ({ text: e, href: t, onClick: n }) => { } })); }; - return [...e].sort((f, l) => f.sequence - l.sequence).map(({ value: f, link: l, sequence: h, noStream: b }) => l ? /* @__PURE__ */ g.jsx( + return [...e].sort((f, a) => f.sequence - a.sequence).map(({ value: f, link: a, sequence: h, noStream: x }) => a ? /* @__PURE__ */ w.jsx( Na, { text: f, - href: l + href: a }, - fe() - ) : /* @__PURE__ */ g.jsx( - Sa, + ue() + ) : /* @__PURE__ */ w.jsx( + Ca, { text: f, - onClick: b ? () => u(f) : () => a(f, h), + onClick: x ? () => u(f) : () => c(f, h), e2e: "option-button" }, - fe() + ue() )); }, Ua = ({ message: e, itemId: t }) => { - const { themeId: n } = j(se), { isStreaming: o } = j(nr), { pd: a } = j(Ut), u = j((h) => h.chat.historyIds.length - 1 === h.chat.historyIds.indexOf(t)), { base: f } = ks({ isTyping: o && u, theme: n }), l = [...e.content].sort(Qs); - return /* @__PURE__ */ g.jsx(g.Fragment, { children: l.map((h) => { - var b, w, x, I; - if (h.type === Fe.text) - return /* @__PURE__ */ g.jsx( + const { isStreaming: i } = $(nr), { pd: o } = $(Ut), c = $((a) => a.chat.historyIds.length - 1 === a.chat.historyIds.indexOf(t)), { base: u } = Ps({ isTyping: i && c }), f = [...e.content].sort(Qs); + return /* @__PURE__ */ w.jsx(w.Fragment, { children: f.map((a) => { + var h, x, y, b; + if (a.type === Ae.text) + return /* @__PURE__ */ w.jsx( "div", { className: "tw--flex tw--flex-col tw--space-y-[10px]", - children: /* @__PURE__ */ g.jsx("span", { className: f(), children: /* @__PURE__ */ g.jsx( + children: /* @__PURE__ */ w.jsx("span", { className: u(), children: /* @__PURE__ */ w.jsx( Ji, { components: { - a(S) { - return /* @__PURE__ */ g.jsx(Aa, { properties: S }); + a(I) { + return /* @__PURE__ */ w.jsx(Aa, { properties: I }); } }, - children: h[h.type] + children: a[a.type] } ) }) }, - fe() + ue() ); - if (h.type === Fe.buttons && u) - return /* @__PURE__ */ g.jsx("div", { className: "tw--flex tw--flex-col tw--space-y-[10px]", children: /* @__PURE__ */ g.jsx(Ma, { options: h[h.type] }) }, fe()); - if (h.type === Fe.video) - return /* @__PURE__ */ g.jsx( + if (a.type === Ae.buttons && c) + return /* @__PURE__ */ w.jsx("div", { className: "tw--flex tw--flex-col tw--space-y-[10px]", children: /* @__PURE__ */ w.jsx(Ma, { options: a[a.type] }) }, ue()); + if (a.type === Ae.video) + return /* @__PURE__ */ w.jsx( Oa, { - title: ((b = h[h.type]) == null ? void 0 : b.title) || "video", - url: ((w = h[h.type]) == null ? void 0 : w.url) || "https://www.youtube.com/embed/g4B8Dhl4pxY" + title: ((h = a[a.type]) == null ? void 0 : h.title) || "video", + url: ((x = a[a.type]) == null ? void 0 : x.url) || "https://www.youtube.com/embed/g4B8Dhl4pxY" }, - fe() + ue() ); - if (h.type === Fe.image) - return /* @__PURE__ */ g.jsx( + if (a.type === Ae.image) + return /* @__PURE__ */ w.jsx( "img", { className: "w-full tw--h-auto tw--py-4", - src: (x = h[h.type]) == null ? void 0 : x.url, - alt: ((I = h[h.type]) == null ? void 0 : I.alt) || "chat-image" + src: (y = a[a.type]) == null ? void 0 : y.url, + alt: ((b = a[a.type]) == null ? void 0 : b.alt) || "chat-image" }, - fe() + ue() ); - if (h.type === Fe.payment) - return `${h[h.type]} ${a.displayPlanPrice} ${a.billingFrequencyTmsg}`; - if (h.type === Fe.email) - return h[h.type]; + if (a.type === Ae.payment) + return `${a[a.type]} ${o.displayPlanPrice} ${o.billingFrequencyTmsg}`; + if (a.type === Ae.email) + return a[a.type]; }) }); }, Da = Nt.memo(Ua), za = ({ itemId: e }) => { - const { themeId: t } = j(se), n = j((o) => o.chat.historyData[e]); - return n && /* @__PURE__ */ g.jsx( + const t = $((i) => i.chat.historyData[e]); + return t && /* @__PURE__ */ w.jsx( "div", { - className: ui({ theme: t, type: n.role }).base(), - "data-e2e": n.role === Q.assistant ? "stream-assistant-msg" : "user-msg", - children: n.role === Q.assistant ? /* @__PURE__ */ g.jsx( + className: ui({ type: t.role }).base(), + "data-e2e": t.role === Z.assistant ? "stream-assistant-msg" : "user-msg", + children: t.role === Z.assistant ? /* @__PURE__ */ w.jsx( Da, { - message: n, + message: t, itemId: e } - ) : [...n.content].map((o) => /* @__PURE__ */ g.jsx(Ga, { record: { ...o, itemId: e } }, fe())) + ) : [...t.content].map((i) => /* @__PURE__ */ w.jsx(Ga, { record: { ...i, itemId: e } }, ue())) } ); }, $a = Nt.memo(za), Va = ({ titleTxt: e }) => { - const { themeId: t } = j(se), { base: n, title: o } = Ss({ theme: t }); - return /* @__PURE__ */ g.jsxs("div", { className: n(), children: [ - o && /* @__PURE__ */ g.jsx("div", { className: o(), children: e }), - /* @__PURE__ */ g.jsx(ji, { orientation: $r.vertical }) + const { base: t, title: i } = Cs(); + return /* @__PURE__ */ w.jsxs("div", { className: t(), children: [ + i && /* @__PURE__ */ w.jsx("div", { className: i(), children: e }), + /* @__PURE__ */ w.jsx(Ri, { orientation: $r.vertical }) ] }); }, Wa = () => { - const { themeId: e } = j(se), { aiProfile: t } = j(se), n = j((b) => b.chat.historyIds || []), o = j((b) => b.chat.historyData[n[0]]), { base: a, second: u, date: f } = Ts({ theme: e }), { base: l } = Cs({ theme: e }), h = yo((o == null ? void 0 : o.time) || (/* @__PURE__ */ new Date()).getTime()); - return /* @__PURE__ */ g.jsx("div", { className: a(), children: /* @__PURE__ */ g.jsxs("div", { className: u(), "data-e2e": "history-container", children: [ - /* @__PURE__ */ g.jsx(Va, { titleTxt: t.welcome }), - /* @__PURE__ */ g.jsx("div", { className: f(), "data-e2e": "stream-assistant-msg-date", children: h }), - n.map((b) => /* @__PURE__ */ g.jsx( + const { aiProfile: e } = $(nt), t = $((h) => h.chat.historyIds || []), i = $((h) => h.chat.historyData[t[0]]), { base: o, second: c, date: u } = Ts(), { base: f } = Ss(), a = go((i == null ? void 0 : i.time) || (/* @__PURE__ */ new Date()).getTime()); + return /* @__PURE__ */ w.jsx("div", { className: o(), children: /* @__PURE__ */ w.jsxs("div", { className: c(), "data-e2e": "history-container", children: [ + /* @__PURE__ */ w.jsx(Va, { titleTxt: e.welcome }), + /* @__PURE__ */ w.jsx("div", { className: u(), "data-e2e": "stream-assistant-msg-date", children: a }), + t.map((h) => /* @__PURE__ */ w.jsx( "div", { - className: l(), + className: f(), "data-e2e": "history-item", - children: /* @__PURE__ */ g.jsx($a, { itemId: b }) + children: /* @__PURE__ */ w.jsx($a, { itemId: h }) }, - fe() + ue() )) ] }) }); }, Ga = ({ record: e }) => { - const t = Ye(), { themeId: n } = j(se), { action: o, separator: a } = ui({ theme: n, type: Q.user }), u = () => { - t(yi(e)); + const t = He(), { action: i, separator: o } = ui({ type: Z.user }), c = () => { + t(gi(e)); }; - return /* @__PURE__ */ g.jsxs("div", { className: a(), children: [ - /* @__PURE__ */ g.jsx("span", { children: e.message }), - e.resend && !e.sent && /* @__PURE__ */ g.jsx("div", { className: o(), children: /* @__PURE__ */ g.jsx(cr, { outlined: !0, onClick: () => u(), children: /* @__PURE__ */ g.jsxs( + return /* @__PURE__ */ w.jsxs("div", { className: o(), children: [ + /* @__PURE__ */ w.jsx("span", { children: e.message }), + e.resend && !e.sent && /* @__PURE__ */ w.jsx("div", { className: i(), children: /* @__PURE__ */ w.jsx(lr, { outlined: !0, onClick: () => c(), children: /* @__PURE__ */ w.jsxs( "svg", { fill: "currentColor", @@ -6627,20 +6464,20 @@ const Na = ({ text: e, href: t, onClick: n }) => { width: "20px", height: "20px", children: [ - /* @__PURE__ */ g.jsx("path", { fill: "none", d: "M0 0h24v24H0V0z" }), - /* @__PURE__ */ g.jsx("path", { d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z" }) + /* @__PURE__ */ w.jsx("path", { fill: "none", d: "M0 0h24v24H0V0z" }), + /* @__PURE__ */ w.jsx("path", { d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z" }) ] } ) }) }) ] }); }, qa = ({ config: e }) => { - const t = Ye(); - return t(Io(e.meta)), t(xo(e.app.purpose)), t(vo(e.specialUrls)), t(Yn(e.app)), /* @__PURE__ */ g.jsx( + const t = He(); + return t(Io(e.meta)), t(xo(e.app.purpose)), t(vo(e.specialUrls)), t(Yn(e.app)), /* @__PURE__ */ w.jsx( us, { - head: /* @__PURE__ */ g.jsx(Ra, {}), - stream: /* @__PURE__ */ g.jsx(Wa, {}), - foot: /* @__PURE__ */ g.jsx(_a, {}) + head: /* @__PURE__ */ w.jsx(ka, {}), + stream: /* @__PURE__ */ w.jsx(Wa, {}), + foot: /* @__PURE__ */ w.jsx(ja, {}) } ); }; @@ -6648,10 +6485,10 @@ var tn = {}, rn = {}; rn.__esModule = !0; rn.default = Ja; function Zt(e) { - return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Zt = function(n) { - return typeof n; - } : Zt = function(n) { - return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n; + return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Zt = function(i) { + return typeof i; + } : Zt = function(i) { + return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i; }, Zt(e); } function Ir() { @@ -6665,16 +6502,16 @@ function Ya(e) { if ((typeof self > "u" ? "undefined" : Zt(self)) !== "object" || !(e in self)) return !1; try { - var t = self[e], n = "redux-persist ".concat(e, " test"); - t.setItem(n, "test"), t.getItem(n), t.removeItem(n); + var t = self[e], i = "redux-persist ".concat(e, " test"); + t.setItem(i, "test"), t.getItem(i), t.removeItem(i); } catch { - return Ie.process.env.NODE_ENV !== "production" && console.warn("redux-persist ".concat(e, " test failed, persistence will be disabled.")), !1; + return Ee.process.env.NODE_ENV !== "production" && console.warn("redux-persist ".concat(e, " test failed, persistence will be disabled.")), !1; } return !0; } function Ja(e) { var t = "".concat(e, "Storage"); - return Ya(t) ? self[t] : (Ie.process.env.NODE_ENV !== "production" && console.error("redux-persist failed to create sync storage. falling back to noop storage."), Ha); + return Ya(t) ? self[t] : (Ee.process.env.NODE_ENV !== "production" && console.error("redux-persist failed to create sync storage. falling back to noop storage."), Ha); } tn.__esModule = !0; tn.default = Za; @@ -6686,245 +6523,245 @@ function Za(e) { var t = (0, Xa.default)(e); return { getItem: function(o) { - return new Promise(function(a, u) { - a(t.getItem(o)); + return new Promise(function(c, u) { + c(t.getItem(o)); }); }, - setItem: function(o, a) { + setItem: function(o, c) { return new Promise(function(u, f) { - u(t.setItem(o, a)); + u(t.setItem(o, c)); }); }, removeItem: function(o) { - return new Promise(function(a, u) { - a(t.removeItem(o)); + return new Promise(function(c, u) { + c(t.removeItem(o)); }); } }; } -var Ri = void 0, Qa = el(tn); -function el(e) { +var ki = void 0, Qa = ec(tn); +function ec(e) { return e && e.__esModule ? e : { default: e }; } -var tl = (0, Qa.default)("local"); -Ri = tl; -const rl = (e) => (t) => { - const n = (o) => { +var tc = (0, Qa.default)("local"); +ki = tc; +const rc = (e) => (t) => { + const i = (o) => { var f; - const { meta: a } = e.getState(), u = {}; - return a.pd && typeof o == "object" && "billingOptionType" in o ? (o.billingFrequencyTmsg = o.billingOptionType === "one-time" ? a.pd.oneTimer : (f = a.pd.subscriberBillingFrequency) == null ? void 0 : f.replace( + const { meta: c } = e.getState(), u = {}; + return c.pd && typeof o == "object" && "billingOptionType" in o ? (o.billingFrequencyTmsg = o.billingOptionType === "one-time" ? c.pd.oneTimer : (f = c.pd.subscriberBillingFrequency) == null ? void 0 : f.replace( "{1}", o.frequencyInMonths ), o = { ...o, ...u }, o) : u; }; - return Ue.core.on(Ue.type.emailSuccess, () => { - const { meta: o, intentions: a } = e.getState(); - e.dispatch(Ur(!1)), e.dispatch(Rn("")), e.dispatch( + return Me.core.on(Me.type.emailSuccess, () => { + const { meta: o, intentions: c } = e.getState(); + e.dispatch(Ur(!1)), e.dispatch(kn("")), e.dispatch( ir({ - id: fe(), - role: Q.user, + id: ue(), + role: Z.user, sequence: 1, content: { sequence: 1, - message: a.email.current, + message: c.email.current, resend: !1, sent: !0, groupId: "" } }) - ), e.dispatch(Zr(a.email.current)), e.dispatch(la(!0)), Ee({ - eventType: be.emailEntered, + ), e.dispatch(Zr(c.email.current)), e.dispatch(ca(!0)), ve({ + eventType: ge.emailEntered, systemType: o.systemType, utmParams: o.marketing.lastUtmParams, customerUuid: o.cid, - email: a.email.current + email: c.email.current }); - }), Ue.core.on(Ue.type.emailError, (o) => { - const { meta: a, intentions: u, config: f } = e.getState(), { tm716: l, tm526: h, tm715: b, tm505: w } = f.translations; + }), Me.core.on(Me.type.emailError, (o) => { + const { meta: c, intentions: u, config: f } = e.getState(), { tm716: a, tm526: h, tm715: x, tm505: y } = f.translations; if (e.dispatch(Ur(!1)), o.status === 409) { e.dispatch(wi({ - content: l, + content: a, buttons: [ { sequence: 1, id: "opt-1", text: h, value: h, link: o.data.buttonLink, noStream: !0 }, - { sequence: 2, id: "opt-2", text: b, value: b, link: "", noStream: !0 } + { sequence: 2, id: "opt-2", text: x, value: x, link: "", noStream: !0 } ] - })), Ee({ - eventType: be.emailExist, - systemType: a.systemType, - utmParams: a.marketing.lastUtmParams, - customerUuid: a.cid, + })), ve({ + eventType: ge.emailExist, + systemType: c.systemType, + utmParams: c.marketing.lastUtmParams, + customerUuid: c.cid, email: u.email.current }); return; } - o.status === 422 && (e.dispatch(Rn(o.errors.email[0] || w)), Ee({ - eventType: be.emailWrong, - systemType: a.systemType, - utmParams: a.marketing.lastUtmParams, - customerUuid: a.cid, + o.status === 422 && (e.dispatch(kn(o.errors.email[0] || y)), ve({ + eventType: ge.emailWrong, + systemType: c.systemType, + utmParams: c.marketing.lastUtmParams, + customerUuid: c.cid, email: u.email.current })); }), Fn("marketing", e, To), Fn( "__pd", e, - So, - n + Co, + i ), (o) => { if (vi.match(o) && o.payload) { - const { meta: a, intentions: u } = e.getState(); - Ee({ - eventType: be.linkProvided, - systemType: a.systemType, - utmParams: a.marketing.lastUtmParams, - customerUuid: a.cid, + const { meta: c, intentions: u } = e.getState(); + ve({ + eventType: ge.linkProvided, + systemType: c.systemType, + utmParams: c.marketing.lastUtmParams, + customerUuid: c.cid, email: u.email.current }); } t(o); }; -}, Fn = (e, t, n, o) => { - const a = setInterval(() => { +}, Fn = (e, t, i, o) => { + const c = setInterval(() => { let u = localStorage.getItem(e) || ""; try { u = JSON.parse(u); } catch { u = localStorage.getItem(e) || ""; } - o && u && (u = o(u)), o && u && (t.dispatch(n(u)), clearInterval(a)); + o && u && (u = o(u)), o && u && (t.dispatch(i(u)), clearInterval(c)); }, As); }; -let ue; -const nl = (e) => (t) => (n) => { - const { meta: o, chat: a, config: u } = e.getState(), f = () => { - const { config: w } = e.getState(); - e.dispatch(Bt()), e.dispatch(qt(w.translations.error)); - }, l = () => { - e.dispatch(_n({ itemId: a.historyIds.pop() })), f(); - }, h = (w) => { - if (w.role === Q.user && e.dispatch(Gt()), ue && ue.connected && w.message.trim() !== "") { - ue.emit(ke.chat, { time: (/* @__PURE__ */ new Date()).getTime(), ...w }, On(l)), e.dispatch(vr()); +let le; +const nc = (e) => (t) => (i) => { + const { meta: o, chat: c, config: u } = e.getState(), f = () => { + const { config: y } = e.getState(); + e.dispatch(Bt()), e.dispatch(qt(y.translations.error)); + }, a = () => { + e.dispatch(jn({ itemId: c.historyIds.pop() })), f(); + }, h = (y) => { + if (y.role === Z.user && e.dispatch(Gt()), le && le.connected && y.message.trim() !== "") { + le.emit(Se.chat, { time: (/* @__PURE__ */ new Date()).getTime(), ...y }, On(a)), e.dispatch(vr()); return; } - l(); - }, b = (w) => { - e.dispatch(na(w)), e.dispatch(Gt()); - const x = () => { + a(); + }, x = (y) => { + e.dispatch(na(y)), e.dispatch(Gt()); + const b = () => { const { config: I } = e.getState(); - e.dispatch(_n(w)), e.dispatch(Bt()), e.dispatch(qt(I.translations.error)); + e.dispatch(jn(y)), e.dispatch(Bt()), e.dispatch(qt(I.translations.error)); }; - ue != null && ue.connected && w.message.trim() !== "" ? (ue.volatile.emit( - ke.chat, + le != null && le.connected && y.message.trim() !== "" ? (le.volatile.emit( + Se.chat, { - role: Q.user, - message: w.message, - term: gt(et.chat), + role: Z.user, + message: y.message, + term: yt(Qe.chat), user_id: o.cid, region: o.region }, - On(x) - ), e.dispatch(vr())) : x(); + On(b) + ), e.dispatch(vr())) : b(); }; - if (Zr.match(n) && h({ - role: Q.user, - message: n.payload, - term: gt(et.chat), + if (Zr.match(i) && h({ + role: Z.user, + message: i.payload, + term: yt(Qe.chat), user_id: o.cid, region: o.region, - messageId: [...a.historyIds].pop() - }), ar.match(n)) { - const w = document.querySelector("#chatbot-container"); - document.body && w && u.purpose !== Wr && (w.innerHTML = "", document.body.classList.remove(di)), localStorage.setItem(Rs, (/* @__PURE__ */ new Date()).getTime().toString()), ue && ue.close(), window.location.href = u.close.href || Os; + messageId: [...c.historyIds].pop() + }), ar.match(i)) { + const y = document.querySelector("#chatbot-container"); + document.body && y && u.purpose !== Wr && (y.innerHTML = "", document.body.classList.remove(di)), localStorage.setItem(ks, (/* @__PURE__ */ new Date()).getTime().toString()), le && le.close(), window.location.href = u.close.href || Os; } - if (gi.match(n) && n.payload) { - const w = [...a.historyIds].pop(), x = a.historyData[w].content.map(({ message: I }) => I).join(` + if (yi.match(i) && i.payload) { + const y = [...c.historyIds].pop(), b = c.historyData[y].content.map(({ message: I }) => I).join(` `); - x.trim() !== "" && h({ - role: Q.user, - message: x, - term: gt(et.chat), + b.trim() !== "" && h({ + role: Z.user, + message: b, + term: yt(Qe.chat), user_id: o.cid, region: o.region, - messageId: w + messageId: y }); } - if (yi.match(n) && b(n.payload), !Yn.match(n)) - return t(n); - e.dispatch(Gt()), ue = Zi.connect(n.payload.chatUrl, { query: `cid=${o.cid}`, ...Ns }), ue.on(ke.connect, () => { - const { meta: w } = e.getState(); - ue.sendBuffer = [], ue.emit(ke.chatHistory, { user_id: w.cid, region: w.region, term: gt(et.chat) }), e.dispatch(Pn(!0)); - }), ue.on(ke.chatHistory, ({ history: w, errors: x, region: I }) => { - e.dispatch(Bt()), e.dispatch(Er(!1)), e.dispatch(Co(I)); - const { config: S, meta: B } = e.getState(); - if (x.length) { - e.dispatch(qt(x[0])); + if (gi.match(i) && x(i.payload), !Yn.match(i)) + return t(i); + e.dispatch(Gt()), le = Zi.connect(i.payload.chatUrl, { query: `cid=${o.cid}`, ...Ns }), le.on(Se.connect, () => { + const { meta: y } = e.getState(); + le.sendBuffer = [], le.emit(Se.chatHistory, { user_id: y.cid, region: y.region, term: yt(Qe.chat) }), e.dispatch(_n(!0)); + }), le.on(Se.chatHistory, ({ history: y, errors: b, region: I }) => { + e.dispatch(Bt()), e.dispatch(Er(!1)), e.dispatch(So(I)); + const { config: P, meta: O } = e.getState(); + if (b.length) { + e.dispatch(qt(b[0])); return; } - if (w.length) { - e.dispatch(ta(w)); + if (y.length) { + e.dispatch(ta(y)); return; } e.dispatch(ia()), e.dispatch(Gt()); - let _ = 0; - S.aiProfile.initialMessage.forEach(($, P, N) => { - _ += 1e3, setTimeout(() => { - e.dispatch(oa($)), N.length === P + 1 && (S.aiProfile.initialMessage.forEach((le) => h({ - role: Q.assistant, - term: gt(et.chat), - user_id: B.cid, - message: JSON.stringify(le.content), - messageId: le.id, - region: B.region + let S = 0; + P.aiProfile.initialMessage.forEach((ne, j, L) => { + S += 1e3, setTimeout(() => { + e.dispatch(oa(ne)), L.length === j + 1 && (P.aiProfile.initialMessage.forEach((ae) => h({ + role: Z.assistant, + term: yt(Qe.chat), + user_id: O.cid, + message: JSON.stringify(ae.content), + messageId: ae.id, + region: O.region })), e.dispatch(Bt())); - }, _); + }, S); }); - }), ue.on(ke.streamStart, ({ id: w }) => { - e.dispatch(Er(!0)), e.dispatch(Bt()), e.dispatch(ea()), e.dispatch(vr()), e.dispatch(jn({ id: w })); - }), ue.on(ke.streamData, (w) => { - var x; - e.dispatch(jn({ - id: w.id, - sequence: w.sequence, + }), le.on(Se.streamStart, ({ id: y }) => { + e.dispatch(Er(!0)), e.dispatch(Bt()), e.dispatch(ea()), e.dispatch(vr()), e.dispatch(Rn({ id: y })); + }), le.on(Se.streamData, (y) => { + var b; + e.dispatch(Rn({ + id: y.id, + sequence: y.sequence, content: { - type: w.type, - [w.type]: w[w.type], - sequence: w.sequence + type: y.type, + [y.type]: y[y.type], + sequence: y.sequence } - })), (x = w.errors) != null && x.length && !a.error && e.dispatch(qt(w.errors[0])); - }), ue.on(ke.streamEnd, () => { + })), (b = y.errors) != null && b.length && !c.error && e.dispatch(qt(y.errors[0])); + }), le.on(Se.streamEnd, () => { e.dispatch(Er(!1)); - }), ue.on(ke.streamError, f), ue.on(ke.error, f), ue.on(ke.disconnect, () => { - e.dispatch(Pn(!1)); - }), t(n); + }), le.on(Se.streamError, f), le.on(Se.error, f), le.on(Se.disconnect, () => { + e.dispatch(_n(!1)); + }), t(i); }, On = (e, t = 5e3) => { - let n = !1; + let i = !1; const o = setTimeout(() => { - n || (n = !0, e()); + i || (i = !0, e()); }, t); return () => { - n || (n = !0, clearTimeout(o)); + i || (i = !0, clearTimeout(o)); }; -}, il = { +}, ic = { key: "root", - storage: Ri, + storage: ki, whitelist: ["chat", "meta", "config"] }, Bi = Hi({ - reducer: Xi(il, Yi({ - meta: ko, + reducer: Xi(ic, Yi({ + meta: Po, config: Eo, chat: sa, intentions: ha })), - middleware: (e) => e({ serializableCheck: !1 }).concat(nl, rl) -}), ol = Ki(Bi); + middleware: (e) => e({ serializableCheck: !1 }).concat(nc, rc) +}), oc = Ki(Bi); let Ln = !1; -const El = (e) => { +const Ec = (e) => { Ln || (Ln = !0, At.createRoot(e.root).render( - /* @__PURE__ */ g.jsx(qi, { store: Bi, children: /* @__PURE__ */ g.jsx(Wn, { persistor: ol, children: /* @__PURE__ */ g.jsx(qa, { config: e.initialConfig }) }) }) + /* @__PURE__ */ w.jsx(qi, { store: Bi, children: /* @__PURE__ */ w.jsx(Wn, { persistor: oc, children: /* @__PURE__ */ w.jsx(qa, { config: e.initialConfig }) }) }) ), document.body.classList.add(di)); }; export { - El as ReactBotClient, - El as default, - Ue as intent + Ec as ReactBotClient, + Ec as default, + Me as intent }; //# sourceMappingURL=index.es.js.map diff --git a/dist/index.es.js.map b/dist/index.es.js.map index 6ab5599..f0c6968 100644 --- a/dist/index.es.js.map +++ b/dist/index.es.js.map @@ -1 +1 @@ -{"version":3,"file":"index.es.js","sources":["../node_modules/base64-js/index.js","../node_modules/ieee754/index.js","../node_modules/buffer-polyfill/index.js","../node_modules/process/browser.js","../node_modules/vite-plugin-node-polyfills/shims/dist/index.cjs","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../node_modules/react-dom/client.js","../node_modules/redux-persist/es/integration/react.js","../src/config/enums.ts","../src/utils/index.js","../src/store/initialState.ts","../src/store/slices/config.ts","../src/store/slices/meta.ts","../src/hooks/index.ts","../node_modules/tailwind-variants/dist/chunk-JXBJZR5A.js","../node_modules/tailwind-merge/dist/lib/tw-join.mjs","../node_modules/tailwind-merge/dist/lib/class-utils.mjs","../node_modules/tailwind-merge/dist/lib/lru-cache.mjs","../node_modules/tailwind-merge/dist/lib/modifier-utils.mjs","../node_modules/tailwind-merge/dist/lib/config-utils.mjs","../node_modules/tailwind-merge/dist/lib/merge-classlist.mjs","../node_modules/tailwind-merge/dist/lib/create-tailwind-merge.mjs","../node_modules/tailwind-merge/dist/lib/from-theme.mjs","../node_modules/tailwind-merge/dist/lib/validators.mjs","../node_modules/tailwind-merge/dist/lib/default-config.mjs","../node_modules/tailwind-merge/dist/lib/merge-configs.mjs","../node_modules/tailwind-merge/dist/lib/extend-tailwind-merge.mjs","../node_modules/tailwind-merge/dist/lib/tw-merge.mjs","../node_modules/tailwind-variants/dist/index.js","../src/components/Layout/variants.ts","../src/components/Layout/base.tsx","../src/components/Overlay/variants.ts","../src/components/Overlay/index.tsx","../src/services/tracking.ts","../src/components/Payment/variants.ts","../src/components/Payment/btn.tsx","../src/components/Payment/close.tsx","../src/components/Payment/foot.tsx","../src/components/Payment/head.tsx","../src/components/Payment/link.tsx","../src/components/Payment/loader.tsx","../src/components/Scenes/payment.tsx","../src/components/Stream/variants.ts","../src/components/Stream/ellipsis.tsx","../src/config/env.ts","../src/config/socket.ts","../src/config/index.ts","../node_modules/immer/dist/immer.esm.mjs","../src/store/slices/chat.ts","../src/store/slices/intentions.ts","../src/hooks/foot.ts","../node_modules/events/events.js","../src/services/intentions.ts","../src/components/Button/variants.ts","../src/components/Button/basic.tsx","../src/components/Button/icon.tsx","../src/components/Input/variants.ts","../src/components/Input/basic.tsx","../src/components/Form/email.tsx","../src/components/Form/response.tsx","../src/components/Layout/foot.tsx","../src/components/Profile/variants.ts","../src/components/Profile/index.tsx","../src/components/Layout/head.tsx","../src/utils/formatting.ts","../src/components/Markdown/link.tsx","../src/components/Video/index.tsx","../src/components/Link/variants.ts","../src/components/Link/basic.tsx","../src/components/Stream/options.tsx","../src/components/Stream/assistant.tsx","../src/components/Stream/bubble.tsx","../src/components/Stream/head.tsx","../src/components/Stream/base.tsx","../src/components/Stream/user.tsx","../src/components/AppBase/index.tsx","../node_modules/redux-persist/lib/storage/getStorage.js","../node_modules/redux-persist/lib/storage/createWebStorage.js","../node_modules/redux-persist/lib/storage/index.js","../src/middleware/intentions.ts","../src/middleware/socket.ts","../src/store/index.ts","../src/main.jsx"],"sourcesContent":["'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nconst base64 = require('base64-js')\nconst ieee754 = require('ieee754')\nconst customInspectSymbol =\n (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation\n ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation\n : null\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nconst K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n const arr = new Uint8Array(1)\n const proto = { foo: function () { return 42 } }\n Object.setPrototypeOf(proto, Uint8Array.prototype)\n Object.setPrototypeOf(arr, proto)\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n const buf = new Uint8Array(length)\n Object.setPrototypeOf(buf, Buffer.prototype)\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayView(value)\n }\n\n if (value == null) {\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof SharedArrayBuffer !== 'undefined' &&\n (isInstance(value, SharedArrayBuffer) ||\n (value && isInstance(value.buffer, SharedArrayBuffer)))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n const valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n const b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nObject.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\nObject.setPrototypeOf(Buffer, Uint8Array)\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpreted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n const length = byteLength(string, encoding) | 0\n let buf = createBuffer(length)\n\n const actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n const length = array.length < 0 ? 0 : checked(array.length) | 0\n const buf = createBuffer(length)\n for (let i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayView (arrayView) {\n if (isInstance(arrayView, Uint8Array)) {\n const copy = new Uint8Array(arrayView)\n return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)\n }\n return fromArrayLike(arrayView)\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n let buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(buf, Buffer.prototype)\n\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n const len = checked(obj.length) | 0\n const buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n let x = a.length\n let y = b.length\n\n for (let i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n let i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n const buffer = Buffer.allocUnsafe(length)\n let pos = 0\n for (i = 0; i < list.length; ++i) {\n let buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n if (pos + buf.length > buffer.length) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)\n buf.copy(buffer, pos)\n } else {\n Uint8Array.prototype.set.call(\n buffer,\n buf,\n pos\n )\n }\n } else if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n } else {\n buf.copy(buffer, pos)\n }\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n const len = string.length\n const mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n let loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coercion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n const i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n const len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (let i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n const len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (let i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n const len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (let i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n const length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n let str = ''\n const max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return ''\n}\nif (customInspectSymbol) {\n Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n let x = thisEnd - thisStart\n let y = end - start\n const len = Math.min(x, y)\n\n const thisCopy = this.slice(thisStart, thisEnd)\n const targetCopy = target.slice(start, end)\n\n for (let i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n let indexSize = 1\n let arrLength = arr.length\n let valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n let i\n if (dir) {\n let foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n let found = true\n for (let j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n const remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n const strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n let i\n for (i = 0; i < length; ++i) {\n const parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n const remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n case 'latin1':\n case 'binary':\n return asciiWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n const res = []\n\n let i = start\n while (i < end) {\n const firstByte = buf[i]\n let codePoint = null\n let bytesPerSequence = (firstByte > 0xEF)\n ? 4\n : (firstByte > 0xDF)\n ? 3\n : (firstByte > 0xBF)\n ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n let secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nconst MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n const len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n let res = ''\n let i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n const len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n let out = ''\n for (let i = start; i < end; ++i) {\n out += hexSliceLookupTable[buf[i]]\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n const bytes = buf.slice(start, end)\n let res = ''\n // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)\n for (let i = 0; i < bytes.length - 1; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n const len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n const newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(newBuf, Buffer.prototype)\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUintLE =\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUintBE =\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n let val = this[offset + --byteLength]\n let mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUint8 =\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUint16LE =\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUint16BE =\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUint32LE =\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUint32BE =\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const lo = first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24\n\n const hi = this[++offset] +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n last * 2 ** 24\n\n return BigInt(lo) + (BigInt(hi) << BigInt(32))\n})\n\nBuffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const hi = first * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n const lo = this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last\n\n return (BigInt(hi) << BigInt(32)) + BigInt(lo)\n})\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let i = byteLength\n let mul = 1\n let val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = this[offset + 4] +\n this[offset + 5] * 2 ** 8 +\n this[offset + 6] * 2 ** 16 +\n (last << 24) // Overflow\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24)\n})\n\nBuffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = (first << 24) + // Overflow\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last)\n})\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUintLE =\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let mul = 1\n let i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUintBE =\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let i = byteLength - 1\n let mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUint8 =\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUint16LE =\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUint16BE =\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUint32LE =\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUint32BE =\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction wrtBigUInt64LE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n return offset\n}\n\nfunction wrtBigUInt64BE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset + 7] = lo\n lo = lo >> 8\n buf[offset + 6] = lo\n lo = lo >> 8\n buf[offset + 5] = lo\n lo = lo >> 8\n buf[offset + 4] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset + 3] = hi\n hi = hi >> 8\n buf[offset + 2] = hi\n hi = hi >> 8\n buf[offset + 1] = hi\n hi = hi >> 8\n buf[offset] = hi\n return offset + 8\n}\n\nBuffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = 0\n let mul = 1\n let sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = byteLength - 1\n let mul = 1\n let sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nBuffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n const len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n const code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n } else if (typeof val === 'boolean') {\n val = Number(val)\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n let i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n const bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n const len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// CUSTOM ERRORS\n// =============\n\n// Simplified versions from Node, changed for Buffer-only usage\nconst errors = {}\nfunction E (sym, getMessage, Base) {\n errors[sym] = class NodeError extends Base {\n constructor () {\n super()\n\n Object.defineProperty(this, 'message', {\n value: getMessage.apply(this, arguments),\n writable: true,\n configurable: true\n })\n\n // Add the error code to the name to include it in the stack trace.\n this.name = `${this.name} [${sym}]`\n // Access the stack to generate the error message including the error code\n // from the name.\n this.stack // eslint-disable-line no-unused-expressions\n // Reset the name to the actual name.\n delete this.name\n }\n\n get code () {\n return sym\n }\n\n set code (value) {\n Object.defineProperty(this, 'code', {\n configurable: true,\n enumerable: true,\n value,\n writable: true\n })\n }\n\n toString () {\n return `${this.name} [${sym}]: ${this.message}`\n }\n }\n}\n\nE('ERR_BUFFER_OUT_OF_BOUNDS',\n function (name) {\n if (name) {\n return `${name} is outside of buffer bounds`\n }\n\n return 'Attempt to access memory outside buffer bounds'\n }, RangeError)\nE('ERR_INVALID_ARG_TYPE',\n function (name, actual) {\n return `The \"${name}\" argument must be of type number. Received type ${typeof actual}`\n }, TypeError)\nE('ERR_OUT_OF_RANGE',\n function (str, range, input) {\n let msg = `The value of \"${str}\" is out of range.`\n let received = input\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input))\n } else if (typeof input === 'bigint') {\n received = String(input)\n if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {\n received = addNumericalSeparator(received)\n }\n received += 'n'\n }\n msg += ` It must be ${range}. Received ${received}`\n return msg\n }, RangeError)\n\nfunction addNumericalSeparator (val) {\n let res = ''\n let i = val.length\n const start = val[0] === '-' ? 1 : 0\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`\n }\n return `${val.slice(0, i)}${res}`\n}\n\n// CHECK FUNCTIONS\n// ===============\n\nfunction checkBounds (buf, offset, byteLength) {\n validateNumber(offset, 'offset')\n if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {\n boundsError(offset, buf.length - (byteLength + 1))\n }\n}\n\nfunction checkIntBI (value, min, max, buf, offset, byteLength) {\n if (value > max || value < min) {\n const n = typeof min === 'bigint' ? 'n' : ''\n let range\n if (byteLength > 3) {\n if (min === 0 || min === BigInt(0)) {\n range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`\n } else {\n range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +\n `${(byteLength + 1) * 8 - 1}${n}`\n }\n } else {\n range = `>= ${min}${n} and <= ${max}${n}`\n }\n throw new errors.ERR_OUT_OF_RANGE('value', range, value)\n }\n checkBounds(buf, offset, byteLength)\n}\n\nfunction validateNumber (value, name) {\n if (typeof value !== 'number') {\n throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n}\n\nfunction boundsError (value, length, type) {\n if (Math.floor(value) !== value) {\n validateNumber(value, type)\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value)\n }\n\n if (length < 0) {\n throw new errors.ERR_BUFFER_OUT_OF_BOUNDS()\n }\n\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset',\n `>= ${type ? 1 : 0} and <= ${length}`,\n value)\n}\n\n// HELPER FUNCTIONS\n// ================\n\nconst INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n let codePoint\n const length = string.length\n let leadSurrogate = null\n const bytes = []\n\n for (let i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n let c, hi, lo\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n let i\n for (i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n// Create lookup table for `toString('hex')`\n// See: https://github.com/feross/buffer/issues/219\nconst hexSliceLookupTable = (function () {\n const alphabet = '0123456789abcdef'\n const table = new Array(256)\n for (let i = 0; i < 16; ++i) {\n const i16 = i * 16\n for (let j = 0; j < 16; ++j) {\n table[i16 + j] = alphabet[i] + alphabet[j]\n }\n }\n return table\n})()\n\n// Return not function with Error if BigInt not supported\nfunction defineBigIntMethod (fn) {\n return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn\n}\n\nfunction BufferBigIntNotDefined () {\n throw new Error('BigInt not supported')\n}\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","\"use strict\";Object.defineProperty(exports,Symbol.toStringTag,{value:\"Module\"});const t=require(\"buffer-polyfill\"),r=require(\"process\"),o=e=>e&&e.__esModule?e:{default:e},l=o(r),u=globalThis||void 0||self;Object.defineProperty(exports,\"Buffer\",{enumerable:!0,get:()=>t.Buffer});Object.defineProperty(exports,\"process\",{enumerable:!0,get:()=>l.default});exports.global=u;\n//# sourceMappingURL=index.cjs.map\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('')) {\n _frame = _frame.replace('', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%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).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('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', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%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)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%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)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie.
\n // or
). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n //
, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport React, { PureComponent } from 'react'; // eslint-disable-line import/no-unresolved\n\nexport var PersistGate =\n/*#__PURE__*/\nfunction (_PureComponent) {\n _inherits(PersistGate, _PureComponent);\n\n function PersistGate() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, PersistGate);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(PersistGate)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n bootstrapped: false\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_unsubscribe\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"handlePersistorState\", function () {\n var persistor = _this.props.persistor;\n\n var _persistor$getState = persistor.getState(),\n bootstrapped = _persistor$getState.bootstrapped;\n\n if (bootstrapped) {\n if (_this.props.onBeforeLift) {\n Promise.resolve(_this.props.onBeforeLift()).finally(function () {\n return _this.setState({\n bootstrapped: true\n });\n });\n } else {\n _this.setState({\n bootstrapped: true\n });\n }\n\n _this._unsubscribe && _this._unsubscribe();\n }\n });\n\n return _this;\n }\n\n _createClass(PersistGate, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this._unsubscribe = this.props.persistor.subscribe(this.handlePersistorState);\n this.handlePersistorState();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this._unsubscribe && this._unsubscribe();\n }\n }, {\n key: \"render\",\n value: function render() {\n if (process.env.NODE_ENV !== 'production') {\n if (typeof this.props.children === 'function' && this.props.loading) console.error('redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored.');\n }\n\n if (typeof this.props.children === 'function') {\n return this.props.children(this.state.bootstrapped);\n }\n\n return this.state.bootstrapped ? this.props.children : this.props.loading;\n }\n }]);\n\n return PersistGate;\n}(PureComponent);\n\n_defineProperty(PersistGate, \"defaultProps\", {\n children: null,\n loading: null\n});","enum Definition {\n text = 'text',\n buttons = 'buttons',\n payment = 'payment',\n video = 'video',\n image = 'image',\n email = 'email',\n}\n\nenum ScreenOrientation {\n horizontal = 'horizontal',\n vertical = 'vertical',\n}\n\nenum QueryParams {\n chat = 'utm_chat'\n}\n\nenum AllEvents {\n addToCart = 'AddToCart',\n contact = 'Contact',\n initiateCheckout = 'InitiateCheckout',\n pageView = 'PageView',\n viewContent = 'ViewContent',\n purchase = 'Purchase',\n subscribe = 'Subscribe',\n recurringSubscriptionPayment = 'RecurringSubscriptionPayment',\n cancelSubscription = 'CancelSubscription',\n purchaseFailed = 'PurchaseFailed',\n subscribeFailed = 'SubscribeFailed',\n recurringSubscriptionPaymentFailed = 'RecurringSubscriptionPaymentFailed',\n customerCreated = 'CustomerCreated',\n subscriptionChargeback = 'SubscriptionChargeback',\n subscriptionRefund = 'SubscriptionRefund',\n transactionChargeback = 'TransactionChargeback',\n transactionRefund = 'TransactionRefund',\n\n // custom events\n firstMessage = 'FirstMessage',\n linkProvided = 'LinkProvided',\n linkClicked = 'LinkClicked',\n emailField = 'EmailField',\n emailEntered = 'EmailEntered',\n emailWrong = 'EmailWrong',\n emailExist = 'EmailExist',\n priceSeen = 'PriceSeen',\n buttonClick = 'ButtonClick',\n closeClicked = 'CloseClicked',\n}\n\nenum Intentions {\n email = 'email_intent',\n payment = 'payment_intent',\n emailError = 'email_validation_error',\n emailSuccess = 'email_validation_success',\n destroy = 'payment_intent_destroy'\n}\n\nenum Roles {\n user = 'user',\n assistant = 'assistant',\n}\n\nenum Events {\n chat = 'chat',\n chatHistory = 'chat-history',\n connect = 'connect',\n error = 'error',\n disconnect = 'disconnect',\n streamStart = 'stream-start',\n streamData = 'stream-data',\n streamEnd = 'stream-end',\n streamError = 'stream-error',\n}\n\nenum Theme {\n light = 'light',\n dark = 'dark',\n}\n\nexport { AllEvents, Definition, Events, Intentions, QueryParams,Roles, ScreenOrientation, Theme }\n","\n/**\n * Retrieves certain query parameter from a URL.\n *\n * @example getQueryParam('utm_chat')\n * @param {string} param\n */\nexport const getQueryParam = (param) => {\n const urlParams = new URLSearchParams(window.location.search);\n\n return urlParams.get(param) || '';\n};\n\nconst formatDateByLocaleOptions = {\n day: 'numeric',\n month: 'long',\n year: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n};\n\n/**\n * Formats a date string according to the locale, including the date and time.\n *\n * @param {number} inputDate - The date string to be formatted.\n * @returns {string} - The formatted date and time string.\n */\nexport function formatDateByLocale(inputDate, options = formatDateByLocaleOptions) {\n const date = new Date(inputDate);\n\n const formattedDate = date.toLocaleDateString([], options);\n\n return `${formattedDate}`.toUpperCase();\n}\n\nexport function uuidV4() {\n const uuid = new Array(36);\n for (let i = 0; i < 36; i++) {\n uuid[i] = Math.floor(Math.random() * 16);\n }\n uuid[14] = 4;\n uuid[19] = uuid[19] &= ~(1 << 2);\n uuid[19] = uuid[19] |= (1 << 3);\n uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';\n return uuid.map((x) => x.toString(16)).join('');\n}\n","import { Roles, Theme } from '../config/enums';\nimport { ChatState, ConfigState, IntentionsState, MetaState } from '../interfaces/store';\nimport { uuidV4 } from '../utils';\n\nexport const meta: MetaState = {\n cid: '',\n eid: '',\n region: '',\n systemType: '',\n pd: {},\n marketing: {\n screen: {},\n lastUtmParams: {},\n utmParams: {}\n },\n};\n\nexport const config: ConfigState = {\n aiProfile: {\n name: '',\n role: '',\n imgSrc: '',\n welcome: '',\n initialMessage: [],\n },\n close: {\n href: null,\n visible: false,\n },\n translations: {},\n themeId: Theme.light,\n chatUrl: '',\n enableDevTools: false,\n isPluginMode: false,\n purpose: 'default',\n specialUrls: {},\n};\n\nexport const chat: ChatState = {\n outgoing: {\n term: '',\n user_id: '',\n role: Roles.user,\n message: '',\n },\n historyData: {},\n historyIds: [],\n error: '',\n isLoading: false,\n typingTimeoutExpired: false,\n lastGroupId: uuidV4(),\n connected: false,\n closed: false,\n isStreaming: false,\n};\n\nexport const intentions: IntentionsState = {\n email: {\n current: '',\n success: false,\n error: false,\n isLoading: false,\n },\n response: {\n isFormVisible: false,\n error: false,\n },\n payment: {\n isButtonVisible: false,\n isFormVisible: false,\n isSuccessful: false,\n error: false,\n },\n messaging: {\n isVisible: false,\n },\n link: ''\n};\n\nexport default { meta, config, intentions, chat };\n","import { createSlice, PayloadAction } from '@reduxjs/toolkit';\n\nimport { ConfigState } from '../../interfaces/store';\nimport { config as initialState } from '../../store/initialState';\n\nconst configSlice = createSlice({\n name: 'config',\n initialState,\n reducers: {\n setConfig(state, { payload }: PayloadAction) {\n state.aiProfile = { ...initialState.aiProfile, ...payload.aiProfile };\n state.translations = { ...initialState.translations, ...payload.translations };\n state.close = { ...initialState.close, ...payload.close };\n state.themeId = payload.themeId;\n state.chatUrl = payload.chatUrl;\n state.purpose = payload.purpose;\n },\n setSpecialUrls(state, { payload }) {\n state.specialUrls = { ...state.specialUrls, ...payload };\n },\n setPurpose(state, { payload }) {\n state.purpose = payload;\n },\n resetConfig(state) {\n state.aiProfile = initialState.aiProfile;\n state.themeId = initialState.themeId;\n state.translations = initialState.translations;\n state.chatUrl = initialState.chatUrl;\n },\n setTheme(state, { payload }) {\n state.themeId = payload;\n },\n resetTheme(state) {\n state.themeId = initialState.themeId;\n },\n setDevToolsStatus(state, { payload }) {\n state.enableDevTools = payload;\n },\n resetDevToolsStatus(state) {\n state.enableDevTools = initialState.enableDevTools;\n },\n togglePluginMode(state) {\n state.isPluginMode = !state.isPluginMode;\n },\n setTranslations(state, { payload }) {\n state.translations = { ...state.translations, ...payload };\n },\n },\n});\n\nexport const getConfig = (state: { config: ConfigState }) => state.config;\nexport const getDevToolsStatus = (state: { config: ConfigState }) => state.config.enableDevTools;\n\nexport const {\n setConfig,\n resetConfig,\n setTheme,\n resetTheme,\n setDevToolsStatus,\n resetDevToolsStatus,\n togglePluginMode,\n setTranslations,\n setPurpose,\n setSpecialUrls,\n} = configSlice.actions;\nexport default configSlice.reducer;\n","import { createSlice } from '@reduxjs/toolkit';\n\nimport { MetaState } from '../../interfaces/store';\nimport { meta as initialState } from '../initialState';\n\nconst configSlice = createSlice({\n name: 'meta',\n initialState,\n reducers: {\n setMeta(state, { payload }) {\n state.cid = payload.cid;\n state.eid = payload.eid;\n state.systemType = payload.systemType;\n state.pd = { ...state.pd, ...payload.pd };\n state.marketing = { ...state.marketing, ...payload.marketing };\n },\n resetMeta(state) {\n state.pd = initialState.pd;\n state.cid = initialState.cid;\n state.eid = initialState.eid;\n state.systemType = initialState.systemType;\n state.marketing = initialState.marketing;\n },\n setMarketing(state, { payload }) {\n state.marketing = { ...state.marketing, ...payload };\n },\n setPd(state, { payload }) {\n state.pd = { ...state.pd, ...payload };\n },\n setRegion(state, { payload }) {\n state.region = payload;\n }\n }\n});\n\nexport const getMeta = (state: { meta: MetaState }) => state.meta;\nexport const { setMeta, resetMeta, setMarketing, setPd, setRegion } = configSlice.actions;\nexport default configSlice.reducer;\n","import { useLayoutEffect, useState } from 'react';\nimport { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux';\n\nimport { AppDispatch, RootState } from '../store/index';\nimport { getConfig } from '../store/slices/config';\nimport { getMeta } from '../store/slices/meta';\n\ntype DispatchFunc = () => AppDispatch;\nexport const useAppDispatch: DispatchFunc = useDispatch;\nexport const useAppSelector: TypedUseSelectorHook = useSelector;\n\nexport const useWindowSize = () => {\n const [size, setSize] = useState([0, 0]);\n useLayoutEffect(() => {\n function updateSize() {\n setSize([window.innerWidth, window.innerHeight]);\n }\n window.addEventListener('resize', updateSize);\n updateSize();\n return () => window.removeEventListener('resize', updateSize);\n }, []);\n return size;\n};\n\nexport const useHeadControls = () => {\n const { themeId: theme, close } = useAppSelector(getConfig);\n const { cid, systemType, marketing } = useAppSelector(getMeta);\n\n return {\n theme,\n closeVisible: close.visible,\n cid,\n systemType,\n marketing\n };\n};\n","var l=e=>typeof e==\"boolean\"?`${e}`:e===0?\"0\":e,u=e=>!e||typeof e!=\"object\"||Object.keys(e).length===0,x=(e,o)=>JSON.stringify(e)===JSON.stringify(o),A=e=>typeof e==\"boolean\";function i(e,o){e.forEach(function(r){Array.isArray(r)?i(r,o):o.push(r);});}function y(e){let o=[];return i(e,o),o}var a=(...e)=>y(e).filter(Boolean),p=(e,o)=>{let r={},c=Object.keys(e),f=Object.keys(o);for(let t of c)if(f.includes(t)){let s=e[t],n=o[t];typeof s==\"object\"&&typeof n==\"object\"?r[t]=p(s,n):Array.isArray(s)||Array.isArray(n)?r[t]=a(n,s):r[t]=n+\" \"+s;}else r[t]=e[t];for(let t of f)c.includes(t)||(r[t]=o[t]);return r},g=e=>!e||typeof e!=\"string\"?e:e.replace(/\\s+/g,\" \").trim();\n\nexport { l as a, u as b, x as c, A as d, y as e, a as f, p as g, g as h };\n","/**\n * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.\n *\n * Specifically:\n * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js\n * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts\n *\n * Original code has MIT license: Copyright (c) Luke Edwards (lukeed.com)\n */\nfunction twJoin() {\n var index = 0;\n var argument;\n var resolvedValue;\n var string = '';\n while (index < arguments.length) {\n if (argument = arguments[index++]) {\n if (resolvedValue = toValue(argument)) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\nfunction toValue(mix) {\n if (typeof mix === 'string') {\n return mix;\n }\n var resolvedValue;\n var string = '';\n for (var k = 0; k < mix.length; k++) {\n if (mix[k]) {\n if (resolvedValue = toValue(mix[k])) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\n\nexport { twJoin };\n//# sourceMappingURL=tw-join.mjs.map\n","var CLASS_PART_SEPARATOR = '-';\nfunction createClassUtils(config) {\n var classMap = createClassMap(config);\n var conflictingClassGroups = config.conflictingClassGroups,\n _config$conflictingCl = config.conflictingClassGroupModifiers,\n conflictingClassGroupModifiers = _config$conflictingCl === void 0 ? {} : _config$conflictingCl;\n function getClassGroupId(className) {\n var classParts = className.split(CLASS_PART_SEPARATOR);\n // Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and remove it from classParts.\n if (classParts[0] === '' && classParts.length !== 1) {\n classParts.shift();\n }\n return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);\n }\n function getConflictingClassGroupIds(classGroupId, hasPostfixModifier) {\n var conflicts = conflictingClassGroups[classGroupId] || [];\n if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {\n return [].concat(conflicts, conflictingClassGroupModifiers[classGroupId]);\n }\n return conflicts;\n }\n return {\n getClassGroupId: getClassGroupId,\n getConflictingClassGroupIds: getConflictingClassGroupIds\n };\n}\nfunction getGroupRecursive(classParts, classPartObject) {\n if (classParts.length === 0) {\n return classPartObject.classGroupId;\n }\n var currentClassPart = classParts[0];\n var nextClassPartObject = classPartObject.nextPart.get(currentClassPart);\n var classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;\n if (classGroupFromNextClassPart) {\n return classGroupFromNextClassPart;\n }\n if (classPartObject.validators.length === 0) {\n return undefined;\n }\n var classRest = classParts.join(CLASS_PART_SEPARATOR);\n return classPartObject.validators.find(function (_ref) {\n var validator = _ref.validator;\n return validator(classRest);\n })?.classGroupId;\n}\nvar arbitraryPropertyRegex = /^\\[(.+)\\]$/;\nfunction getGroupIdForArbitraryProperty(className) {\n if (arbitraryPropertyRegex.test(className)) {\n var arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];\n var property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));\n if (property) {\n // I use two dots here because one dot is used as prefix for class groups in plugins\n return 'arbitrary..' + property;\n }\n }\n}\n/**\n * Exported for testing only\n */\nfunction createClassMap(config) {\n var theme = config.theme,\n prefix = config.prefix;\n var classMap = {\n nextPart: new Map(),\n validators: []\n };\n var prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);\n prefixedClassGroupEntries.forEach(function (_ref2) {\n var classGroupId = _ref2[0],\n classGroup = _ref2[1];\n processClassesRecursively(classGroup, classMap, classGroupId, theme);\n });\n return classMap;\n}\nfunction processClassesRecursively(classGroup, classPartObject, classGroupId, theme) {\n classGroup.forEach(function (classDefinition) {\n if (typeof classDefinition === 'string') {\n var classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);\n classPartObjectToEdit.classGroupId = classGroupId;\n return;\n }\n if (typeof classDefinition === 'function') {\n if (isThemeGetter(classDefinition)) {\n processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);\n return;\n }\n classPartObject.validators.push({\n validator: classDefinition,\n classGroupId: classGroupId\n });\n return;\n }\n Object.entries(classDefinition).forEach(function (_ref3) {\n var key = _ref3[0],\n classGroup = _ref3[1];\n processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);\n });\n });\n}\nfunction getPart(classPartObject, path) {\n var currentClassPartObject = classPartObject;\n path.split(CLASS_PART_SEPARATOR).forEach(function (pathPart) {\n if (!currentClassPartObject.nextPart.has(pathPart)) {\n currentClassPartObject.nextPart.set(pathPart, {\n nextPart: new Map(),\n validators: []\n });\n }\n currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);\n });\n return currentClassPartObject;\n}\nfunction isThemeGetter(func) {\n return func.isThemeGetter;\n}\nfunction getPrefixedClassGroupEntries(classGroupEntries, prefix) {\n if (!prefix) {\n return classGroupEntries;\n }\n return classGroupEntries.map(function (_ref4) {\n var classGroupId = _ref4[0],\n classGroup = _ref4[1];\n var prefixedClassGroup = classGroup.map(function (classDefinition) {\n if (typeof classDefinition === 'string') {\n return prefix + classDefinition;\n }\n if (typeof classDefinition === 'object') {\n return Object.fromEntries(Object.entries(classDefinition).map(function (_ref5) {\n var key = _ref5[0],\n value = _ref5[1];\n return [prefix + key, value];\n }));\n }\n return classDefinition;\n });\n return [classGroupId, prefixedClassGroup];\n });\n}\n\nexport { createClassMap, createClassUtils };\n//# sourceMappingURL=class-utils.mjs.map\n","// LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance\nfunction createLruCache(maxCacheSize) {\n if (maxCacheSize < 1) {\n return {\n get: function get() {\n return undefined;\n },\n set: function set() {}\n };\n }\n var cacheSize = 0;\n var cache = new Map();\n var previousCache = new Map();\n function update(key, value) {\n cache.set(key, value);\n cacheSize++;\n if (cacheSize > maxCacheSize) {\n cacheSize = 0;\n previousCache = cache;\n cache = new Map();\n }\n }\n return {\n get: function get(key) {\n var value = cache.get(key);\n if (value !== undefined) {\n return value;\n }\n if ((value = previousCache.get(key)) !== undefined) {\n update(key, value);\n return value;\n }\n },\n set: function set(key, value) {\n if (cache.has(key)) {\n cache.set(key, value);\n } else {\n update(key, value);\n }\n }\n };\n}\n\nexport { createLruCache };\n//# sourceMappingURL=lru-cache.mjs.map\n","var IMPORTANT_MODIFIER = '!';\nfunction createSplitModifiers(config) {\n var separator = config.separator || ':';\n var isSeparatorSingleCharacter = separator.length === 1;\n var firstSeparatorCharacter = separator[0];\n var separatorLength = separator.length;\n // splitModifiers inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js\n return function splitModifiers(className) {\n var modifiers = [];\n var bracketDepth = 0;\n var modifierStart = 0;\n var postfixModifierPosition;\n for (var index = 0; index < className.length; index++) {\n var currentCharacter = className[index];\n if (bracketDepth === 0) {\n if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {\n modifiers.push(className.slice(modifierStart, index));\n modifierStart = index + separatorLength;\n continue;\n }\n if (currentCharacter === '/') {\n postfixModifierPosition = index;\n continue;\n }\n }\n if (currentCharacter === '[') {\n bracketDepth++;\n } else if (currentCharacter === ']') {\n bracketDepth--;\n }\n }\n var baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);\n var hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);\n var baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;\n var maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;\n return {\n modifiers: modifiers,\n hasImportantModifier: hasImportantModifier,\n baseClassName: baseClassName,\n maybePostfixModifierPosition: maybePostfixModifierPosition\n };\n };\n}\n/**\n * Sorts modifiers according to following schema:\n * - Predefined modifiers are sorted alphabetically\n * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it\n */\nfunction sortModifiers(modifiers) {\n if (modifiers.length <= 1) {\n return modifiers;\n }\n var sortedModifiers = [];\n var unsortedModifiers = [];\n modifiers.forEach(function (modifier) {\n var isArbitraryVariant = modifier[0] === '[';\n if (isArbitraryVariant) {\n sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort().concat([modifier]));\n unsortedModifiers = [];\n } else {\n unsortedModifiers.push(modifier);\n }\n });\n sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort());\n return sortedModifiers;\n}\n\nexport { IMPORTANT_MODIFIER, createSplitModifiers, sortModifiers };\n//# sourceMappingURL=modifier-utils.mjs.map\n","import { createClassUtils } from './class-utils.mjs';\nimport { createLruCache } from './lru-cache.mjs';\nimport { createSplitModifiers } from './modifier-utils.mjs';\n\nfunction createConfigUtils(config) {\n return {\n cache: createLruCache(config.cacheSize),\n splitModifiers: createSplitModifiers(config),\n ...createClassUtils(config)\n };\n}\n\nexport { createConfigUtils };\n//# sourceMappingURL=config-utils.mjs.map\n","import { sortModifiers, IMPORTANT_MODIFIER } from './modifier-utils.mjs';\n\nvar SPLIT_CLASSES_REGEX = /\\s+/;\nfunction mergeClassList(classList, configUtils) {\n var splitModifiers = configUtils.splitModifiers,\n getClassGroupId = configUtils.getClassGroupId,\n getConflictingClassGroupIds = configUtils.getConflictingClassGroupIds;\n /**\n * Set of classGroupIds in following format:\n * `{importantModifier}{variantModifiers}{classGroupId}`\n * @example 'float'\n * @example 'hover:focus:bg-color'\n * @example 'md:!pr'\n */\n var classGroupsInConflict = new Set();\n return classList.trim().split(SPLIT_CLASSES_REGEX).map(function (originalClassName) {\n var _splitModifiers = splitModifiers(originalClassName),\n modifiers = _splitModifiers.modifiers,\n hasImportantModifier = _splitModifiers.hasImportantModifier,\n baseClassName = _splitModifiers.baseClassName,\n maybePostfixModifierPosition = _splitModifiers.maybePostfixModifierPosition;\n var classGroupId = getClassGroupId(maybePostfixModifierPosition ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);\n var hasPostfixModifier = Boolean(maybePostfixModifierPosition);\n if (!classGroupId) {\n if (!maybePostfixModifierPosition) {\n return {\n isTailwindClass: false,\n originalClassName: originalClassName\n };\n }\n classGroupId = getClassGroupId(baseClassName);\n if (!classGroupId) {\n return {\n isTailwindClass: false,\n originalClassName: originalClassName\n };\n }\n hasPostfixModifier = false;\n }\n var variantModifier = sortModifiers(modifiers).join(':');\n var modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;\n return {\n isTailwindClass: true,\n modifierId: modifierId,\n classGroupId: classGroupId,\n originalClassName: originalClassName,\n hasPostfixModifier: hasPostfixModifier\n };\n }).reverse()\n // Last class in conflict wins, so we need to filter conflicting classes in reverse order.\n .filter(function (parsed) {\n if (!parsed.isTailwindClass) {\n return true;\n }\n var modifierId = parsed.modifierId,\n classGroupId = parsed.classGroupId,\n hasPostfixModifier = parsed.hasPostfixModifier;\n var classId = modifierId + classGroupId;\n if (classGroupsInConflict.has(classId)) {\n return false;\n }\n classGroupsInConflict.add(classId);\n getConflictingClassGroupIds(classGroupId, hasPostfixModifier).forEach(function (group) {\n return classGroupsInConflict.add(modifierId + group);\n });\n return true;\n }).reverse().map(function (parsed) {\n return parsed.originalClassName;\n }).join(' ');\n}\n\nexport { mergeClassList };\n//# sourceMappingURL=merge-classlist.mjs.map\n","import { createConfigUtils } from './config-utils.mjs';\nimport { mergeClassList } from './merge-classlist.mjs';\nimport { twJoin } from './tw-join.mjs';\n\nfunction createTailwindMerge() {\n for (var _len = arguments.length, createConfig = new Array(_len), _key = 0; _key < _len; _key++) {\n createConfig[_key] = arguments[_key];\n }\n var configUtils;\n var cacheGet;\n var cacheSet;\n var functionToCall = initTailwindMerge;\n function initTailwindMerge(classList) {\n var firstCreateConfig = createConfig[0],\n restCreateConfig = createConfig.slice(1);\n var config = restCreateConfig.reduce(function (previousConfig, createConfigCurrent) {\n return createConfigCurrent(previousConfig);\n }, firstCreateConfig());\n configUtils = createConfigUtils(config);\n cacheGet = configUtils.cache.get;\n cacheSet = configUtils.cache.set;\n functionToCall = tailwindMerge;\n return tailwindMerge(classList);\n }\n function tailwindMerge(classList) {\n var cachedResult = cacheGet(classList);\n if (cachedResult) {\n return cachedResult;\n }\n var result = mergeClassList(classList, configUtils);\n cacheSet(classList, result);\n return result;\n }\n return function callTailwindMerge() {\n return functionToCall(twJoin.apply(null, arguments));\n };\n}\n\nexport { createTailwindMerge };\n//# sourceMappingURL=create-tailwind-merge.mjs.map\n","function fromTheme(key) {\n var themeGetter = function themeGetter(theme) {\n return theme[key] || [];\n };\n themeGetter.isThemeGetter = true;\n return themeGetter;\n}\n\nexport { fromTheme };\n//# sourceMappingURL=from-theme.mjs.map\n","var arbitraryValueRegex = /^\\[(?:([a-z-]+):)?(.+)\\]$/i;\nvar fractionRegex = /^\\d+\\/\\d+$/;\nvar stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);\nvar tshirtUnitRegex = /^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/;\nvar lengthUnitRegex = /\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/;\n// Shadow always begins with x and y offset separated by underscore\nvar shadowRegex = /^-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/;\nfunction isLength(value) {\n return isNumber(value) || stringLengths.has(value) || fractionRegex.test(value) || isArbitraryLength(value);\n}\nfunction isArbitraryLength(value) {\n return getIsArbitraryValue(value, 'length', isLengthOnly);\n}\nfunction isArbitrarySize(value) {\n return getIsArbitraryValue(value, 'size', isNever);\n}\nfunction isArbitraryPosition(value) {\n return getIsArbitraryValue(value, 'position', isNever);\n}\nfunction isArbitraryUrl(value) {\n return getIsArbitraryValue(value, 'url', isUrl);\n}\nfunction isArbitraryNumber(value) {\n return getIsArbitraryValue(value, 'number', isNumber);\n}\n/**\n * @deprecated Will be removed in next major version. Use `isArbitraryNumber` instead.\n */\nvar isArbitraryWeight = isArbitraryNumber;\nfunction isNumber(value) {\n return !Number.isNaN(Number(value));\n}\nfunction isPercent(value) {\n return value.endsWith('%') && isNumber(value.slice(0, -1));\n}\nfunction isInteger(value) {\n return isIntegerOnly(value) || getIsArbitraryValue(value, 'number', isIntegerOnly);\n}\nfunction isArbitraryValue(value) {\n return arbitraryValueRegex.test(value);\n}\nfunction isAny() {\n return true;\n}\nfunction isTshirtSize(value) {\n return tshirtUnitRegex.test(value);\n}\nfunction isArbitraryShadow(value) {\n return getIsArbitraryValue(value, '', isShadow);\n}\nfunction getIsArbitraryValue(value, label, testValue) {\n var result = arbitraryValueRegex.exec(value);\n if (result) {\n if (result[1]) {\n return result[1] === label;\n }\n return testValue(result[2]);\n }\n return false;\n}\nfunction isLengthOnly(value) {\n return lengthUnitRegex.test(value);\n}\nfunction isNever() {\n return false;\n}\nfunction isUrl(value) {\n return value.startsWith('url(');\n}\nfunction isIntegerOnly(value) {\n return Number.isInteger(Number(value));\n}\nfunction isShadow(value) {\n return shadowRegex.test(value);\n}\n\nexport { isAny, isArbitraryLength, isArbitraryNumber, isArbitraryPosition, isArbitraryShadow, isArbitrarySize, isArbitraryUrl, isArbitraryValue, isArbitraryWeight, isInteger, isLength, isNumber, isPercent, isTshirtSize };\n//# sourceMappingURL=validators.mjs.map\n","import { fromTheme } from './from-theme.mjs';\nimport { isAny, isLength, isTshirtSize, isArbitraryValue, isPercent, isArbitraryLength, isInteger, isArbitraryNumber, isNumber, isArbitraryPosition, isArbitrarySize, isArbitraryUrl, isArbitraryShadow } from './validators.mjs';\n\nfunction getDefaultConfig() {\n var colors = fromTheme('colors');\n var spacing = fromTheme('spacing');\n var blur = fromTheme('blur');\n var brightness = fromTheme('brightness');\n var borderColor = fromTheme('borderColor');\n var borderRadius = fromTheme('borderRadius');\n var borderSpacing = fromTheme('borderSpacing');\n var borderWidth = fromTheme('borderWidth');\n var contrast = fromTheme('contrast');\n var grayscale = fromTheme('grayscale');\n var hueRotate = fromTheme('hueRotate');\n var invert = fromTheme('invert');\n var gap = fromTheme('gap');\n var gradientColorStops = fromTheme('gradientColorStops');\n var gradientColorStopPositions = fromTheme('gradientColorStopPositions');\n var inset = fromTheme('inset');\n var margin = fromTheme('margin');\n var opacity = fromTheme('opacity');\n var padding = fromTheme('padding');\n var saturate = fromTheme('saturate');\n var scale = fromTheme('scale');\n var sepia = fromTheme('sepia');\n var skew = fromTheme('skew');\n var space = fromTheme('space');\n var translate = fromTheme('translate');\n var getOverscroll = function getOverscroll() {\n return ['auto', 'contain', 'none'];\n };\n var getOverflow = function getOverflow() {\n return ['auto', 'hidden', 'clip', 'visible', 'scroll'];\n };\n var getSpacingWithAutoAndArbitrary = function getSpacingWithAutoAndArbitrary() {\n return ['auto', isArbitraryValue, spacing];\n };\n var getSpacingWithArbitrary = function getSpacingWithArbitrary() {\n return [isArbitraryValue, spacing];\n };\n var getLengthWithEmpty = function getLengthWithEmpty() {\n return ['', isLength];\n };\n var getNumberWithAutoAndArbitrary = function getNumberWithAutoAndArbitrary() {\n return ['auto', isNumber, isArbitraryValue];\n };\n var getPositions = function getPositions() {\n return ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];\n };\n var getLineStyles = function getLineStyles() {\n return ['solid', 'dashed', 'dotted', 'double', 'none'];\n };\n var getBlendModes = function getBlendModes() {\n return ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity', 'plus-lighter'];\n };\n var getAlign = function getAlign() {\n return ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];\n };\n var getZeroAndEmpty = function getZeroAndEmpty() {\n return ['', '0', isArbitraryValue];\n };\n var getBreaks = function getBreaks() {\n return ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];\n };\n var getNumber = function getNumber() {\n return [isNumber, isArbitraryNumber];\n };\n var getNumberAndArbitrary = function getNumberAndArbitrary() {\n return [isNumber, isArbitraryValue];\n };\n return {\n cacheSize: 500,\n theme: {\n colors: [isAny],\n spacing: [isLength],\n blur: ['none', '', isTshirtSize, isArbitraryValue],\n brightness: getNumber(),\n borderColor: [colors],\n borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],\n borderSpacing: getSpacingWithArbitrary(),\n borderWidth: getLengthWithEmpty(),\n contrast: getNumber(),\n grayscale: getZeroAndEmpty(),\n hueRotate: getNumberAndArbitrary(),\n invert: getZeroAndEmpty(),\n gap: getSpacingWithArbitrary(),\n gradientColorStops: [colors],\n gradientColorStopPositions: [isPercent, isArbitraryLength],\n inset: getSpacingWithAutoAndArbitrary(),\n margin: getSpacingWithAutoAndArbitrary(),\n opacity: getNumber(),\n padding: getSpacingWithArbitrary(),\n saturate: getNumber(),\n scale: getNumber(),\n sepia: getZeroAndEmpty(),\n skew: getNumberAndArbitrary(),\n space: getSpacingWithArbitrary(),\n translate: getSpacingWithArbitrary()\n },\n classGroups: {\n // Layout\n /**\n * Aspect Ratio\n * @see https://tailwindcss.com/docs/aspect-ratio\n */\n aspect: [{\n aspect: ['auto', 'square', 'video', isArbitraryValue]\n }],\n /**\n * Container\n * @see https://tailwindcss.com/docs/container\n */\n container: ['container'],\n /**\n * Columns\n * @see https://tailwindcss.com/docs/columns\n */\n columns: [{\n columns: [isTshirtSize]\n }],\n /**\n * Break After\n * @see https://tailwindcss.com/docs/break-after\n */\n 'break-after': [{\n 'break-after': getBreaks()\n }],\n /**\n * Break Before\n * @see https://tailwindcss.com/docs/break-before\n */\n 'break-before': [{\n 'break-before': getBreaks()\n }],\n /**\n * Break Inside\n * @see https://tailwindcss.com/docs/break-inside\n */\n 'break-inside': [{\n 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']\n }],\n /**\n * Box Decoration Break\n * @see https://tailwindcss.com/docs/box-decoration-break\n */\n 'box-decoration': [{\n 'box-decoration': ['slice', 'clone']\n }],\n /**\n * Box Sizing\n * @see https://tailwindcss.com/docs/box-sizing\n */\n box: [{\n box: ['border', 'content']\n }],\n /**\n * Display\n * @see https://tailwindcss.com/docs/display\n */\n display: ['block', 'inline-block', 'inline', 'flex', 'inline-flex', 'table', 'inline-table', 'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row-group', 'table-row', 'flow-root', 'grid', 'inline-grid', 'contents', 'list-item', 'hidden'],\n /**\n * Floats\n * @see https://tailwindcss.com/docs/float\n */\n \"float\": [{\n \"float\": ['right', 'left', 'none']\n }],\n /**\n * Clear\n * @see https://tailwindcss.com/docs/clear\n */\n clear: [{\n clear: ['left', 'right', 'both', 'none']\n }],\n /**\n * Isolation\n * @see https://tailwindcss.com/docs/isolation\n */\n isolation: ['isolate', 'isolation-auto'],\n /**\n * Object Fit\n * @see https://tailwindcss.com/docs/object-fit\n */\n 'object-fit': [{\n object: ['contain', 'cover', 'fill', 'none', 'scale-down']\n }],\n /**\n * Object Position\n * @see https://tailwindcss.com/docs/object-position\n */\n 'object-position': [{\n object: [].concat(getPositions(), [isArbitraryValue])\n }],\n /**\n * Overflow\n * @see https://tailwindcss.com/docs/overflow\n */\n overflow: [{\n overflow: getOverflow()\n }],\n /**\n * Overflow X\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-x': [{\n 'overflow-x': getOverflow()\n }],\n /**\n * Overflow Y\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-y': [{\n 'overflow-y': getOverflow()\n }],\n /**\n * Overscroll Behavior\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n overscroll: [{\n overscroll: getOverscroll()\n }],\n /**\n * Overscroll Behavior X\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-x': [{\n 'overscroll-x': getOverscroll()\n }],\n /**\n * Overscroll Behavior Y\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-y': [{\n 'overscroll-y': getOverscroll()\n }],\n /**\n * Position\n * @see https://tailwindcss.com/docs/position\n */\n position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],\n /**\n * Top / Right / Bottom / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n inset: [{\n inset: [inset]\n }],\n /**\n * Right / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-x': [{\n 'inset-x': [inset]\n }],\n /**\n * Top / Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-y': [{\n 'inset-y': [inset]\n }],\n /**\n * Start\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n start: [{\n start: [inset]\n }],\n /**\n * End\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n end: [{\n end: [inset]\n }],\n /**\n * Top\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n top: [{\n top: [inset]\n }],\n /**\n * Right\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n right: [{\n right: [inset]\n }],\n /**\n * Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n bottom: [{\n bottom: [inset]\n }],\n /**\n * Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n left: [{\n left: [inset]\n }],\n /**\n * Visibility\n * @see https://tailwindcss.com/docs/visibility\n */\n visibility: ['visible', 'invisible', 'collapse'],\n /**\n * Z-Index\n * @see https://tailwindcss.com/docs/z-index\n */\n z: [{\n z: ['auto', isInteger]\n }],\n // Flexbox and Grid\n /**\n * Flex Basis\n * @see https://tailwindcss.com/docs/flex-basis\n */\n basis: [{\n basis: getSpacingWithAutoAndArbitrary()\n }],\n /**\n * Flex Direction\n * @see https://tailwindcss.com/docs/flex-direction\n */\n 'flex-direction': [{\n flex: ['row', 'row-reverse', 'col', 'col-reverse']\n }],\n /**\n * Flex Wrap\n * @see https://tailwindcss.com/docs/flex-wrap\n */\n 'flex-wrap': [{\n flex: ['wrap', 'wrap-reverse', 'nowrap']\n }],\n /**\n * Flex\n * @see https://tailwindcss.com/docs/flex\n */\n flex: [{\n flex: ['1', 'auto', 'initial', 'none', isArbitraryValue]\n }],\n /**\n * Flex Grow\n * @see https://tailwindcss.com/docs/flex-grow\n */\n grow: [{\n grow: getZeroAndEmpty()\n }],\n /**\n * Flex Shrink\n * @see https://tailwindcss.com/docs/flex-shrink\n */\n shrink: [{\n shrink: getZeroAndEmpty()\n }],\n /**\n * Order\n * @see https://tailwindcss.com/docs/order\n */\n order: [{\n order: ['first', 'last', 'none', isInteger]\n }],\n /**\n * Grid Template Columns\n * @see https://tailwindcss.com/docs/grid-template-columns\n */\n 'grid-cols': [{\n 'grid-cols': [isAny]\n }],\n /**\n * Grid Column Start / End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start-end': [{\n col: ['auto', {\n span: ['full', isInteger]\n }, isArbitraryValue]\n }],\n /**\n * Grid Column Start\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start': [{\n 'col-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Column End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-end': [{\n 'col-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Template Rows\n * @see https://tailwindcss.com/docs/grid-template-rows\n */\n 'grid-rows': [{\n 'grid-rows': [isAny]\n }],\n /**\n * Grid Row Start / End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start-end': [{\n row: ['auto', {\n span: [isInteger]\n }, isArbitraryValue]\n }],\n /**\n * Grid Row Start\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start': [{\n 'row-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Row End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-end': [{\n 'row-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Auto Flow\n * @see https://tailwindcss.com/docs/grid-auto-flow\n */\n 'grid-flow': [{\n 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']\n }],\n /**\n * Grid Auto Columns\n * @see https://tailwindcss.com/docs/grid-auto-columns\n */\n 'auto-cols': [{\n 'auto-cols': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Grid Auto Rows\n * @see https://tailwindcss.com/docs/grid-auto-rows\n */\n 'auto-rows': [{\n 'auto-rows': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Gap\n * @see https://tailwindcss.com/docs/gap\n */\n gap: [{\n gap: [gap]\n }],\n /**\n * Gap X\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-x': [{\n 'gap-x': [gap]\n }],\n /**\n * Gap Y\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-y': [{\n 'gap-y': [gap]\n }],\n /**\n * Justify Content\n * @see https://tailwindcss.com/docs/justify-content\n */\n 'justify-content': [{\n justify: ['normal'].concat(getAlign())\n }],\n /**\n * Justify Items\n * @see https://tailwindcss.com/docs/justify-items\n */\n 'justify-items': [{\n 'justify-items': ['start', 'end', 'center', 'stretch']\n }],\n /**\n * Justify Self\n * @see https://tailwindcss.com/docs/justify-self\n */\n 'justify-self': [{\n 'justify-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n /**\n * Align Content\n * @see https://tailwindcss.com/docs/align-content\n */\n 'align-content': [{\n content: ['normal'].concat(getAlign(), ['baseline'])\n }],\n /**\n * Align Items\n * @see https://tailwindcss.com/docs/align-items\n */\n 'align-items': [{\n items: ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Align Self\n * @see https://tailwindcss.com/docs/align-self\n */\n 'align-self': [{\n self: ['auto', 'start', 'end', 'center', 'stretch', 'baseline']\n }],\n /**\n * Place Content\n * @see https://tailwindcss.com/docs/place-content\n */\n 'place-content': [{\n 'place-content': [].concat(getAlign(), ['baseline'])\n }],\n /**\n * Place Items\n * @see https://tailwindcss.com/docs/place-items\n */\n 'place-items': [{\n 'place-items': ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Place Self\n * @see https://tailwindcss.com/docs/place-self\n */\n 'place-self': [{\n 'place-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n // Spacing\n /**\n * Padding\n * @see https://tailwindcss.com/docs/padding\n */\n p: [{\n p: [padding]\n }],\n /**\n * Padding X\n * @see https://tailwindcss.com/docs/padding\n */\n px: [{\n px: [padding]\n }],\n /**\n * Padding Y\n * @see https://tailwindcss.com/docs/padding\n */\n py: [{\n py: [padding]\n }],\n /**\n * Padding Start\n * @see https://tailwindcss.com/docs/padding\n */\n ps: [{\n ps: [padding]\n }],\n /**\n * Padding End\n * @see https://tailwindcss.com/docs/padding\n */\n pe: [{\n pe: [padding]\n }],\n /**\n * Padding Top\n * @see https://tailwindcss.com/docs/padding\n */\n pt: [{\n pt: [padding]\n }],\n /**\n * Padding Right\n * @see https://tailwindcss.com/docs/padding\n */\n pr: [{\n pr: [padding]\n }],\n /**\n * Padding Bottom\n * @see https://tailwindcss.com/docs/padding\n */\n pb: [{\n pb: [padding]\n }],\n /**\n * Padding Left\n * @see https://tailwindcss.com/docs/padding\n */\n pl: [{\n pl: [padding]\n }],\n /**\n * Margin\n * @see https://tailwindcss.com/docs/margin\n */\n m: [{\n m: [margin]\n }],\n /**\n * Margin X\n * @see https://tailwindcss.com/docs/margin\n */\n mx: [{\n mx: [margin]\n }],\n /**\n * Margin Y\n * @see https://tailwindcss.com/docs/margin\n */\n my: [{\n my: [margin]\n }],\n /**\n * Margin Start\n * @see https://tailwindcss.com/docs/margin\n */\n ms: [{\n ms: [margin]\n }],\n /**\n * Margin End\n * @see https://tailwindcss.com/docs/margin\n */\n me: [{\n me: [margin]\n }],\n /**\n * Margin Top\n * @see https://tailwindcss.com/docs/margin\n */\n mt: [{\n mt: [margin]\n }],\n /**\n * Margin Right\n * @see https://tailwindcss.com/docs/margin\n */\n mr: [{\n mr: [margin]\n }],\n /**\n * Margin Bottom\n * @see https://tailwindcss.com/docs/margin\n */\n mb: [{\n mb: [margin]\n }],\n /**\n * Margin Left\n * @see https://tailwindcss.com/docs/margin\n */\n ml: [{\n ml: [margin]\n }],\n /**\n * Space Between X\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x': [{\n 'space-x': [space]\n }],\n /**\n * Space Between X Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x-reverse': ['space-x-reverse'],\n /**\n * Space Between Y\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y': [{\n 'space-y': [space]\n }],\n /**\n * Space Between Y Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y-reverse': ['space-y-reverse'],\n // Sizing\n /**\n * Width\n * @see https://tailwindcss.com/docs/width\n */\n w: [{\n w: ['auto', 'min', 'max', 'fit', isArbitraryValue, spacing]\n }],\n /**\n * Min-Width\n * @see https://tailwindcss.com/docs/min-width\n */\n 'min-w': [{\n 'min-w': ['min', 'max', 'fit', isArbitraryValue, isLength]\n }],\n /**\n * Max-Width\n * @see https://tailwindcss.com/docs/max-width\n */\n 'max-w': [{\n 'max-w': ['0', 'none', 'full', 'min', 'max', 'fit', 'prose', {\n screen: [isTshirtSize]\n }, isTshirtSize, isArbitraryValue]\n }],\n /**\n * Height\n * @see https://tailwindcss.com/docs/height\n */\n h: [{\n h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']\n }],\n /**\n * Min-Height\n * @see https://tailwindcss.com/docs/min-height\n */\n 'min-h': [{\n 'min-h': ['min', 'max', 'fit', isArbitraryValue, isLength]\n }],\n /**\n * Max-Height\n * @see https://tailwindcss.com/docs/max-height\n */\n 'max-h': [{\n 'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit']\n }],\n // Typography\n /**\n * Font Size\n * @see https://tailwindcss.com/docs/font-size\n */\n 'font-size': [{\n text: ['base', isTshirtSize, isArbitraryLength]\n }],\n /**\n * Font Smoothing\n * @see https://tailwindcss.com/docs/font-smoothing\n */\n 'font-smoothing': ['antialiased', 'subpixel-antialiased'],\n /**\n * Font Style\n * @see https://tailwindcss.com/docs/font-style\n */\n 'font-style': ['italic', 'not-italic'],\n /**\n * Font Weight\n * @see https://tailwindcss.com/docs/font-weight\n */\n 'font-weight': [{\n font: ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black', isArbitraryNumber]\n }],\n /**\n * Font Family\n * @see https://tailwindcss.com/docs/font-family\n */\n 'font-family': [{\n font: [isAny]\n }],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-normal': ['normal-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-ordinal': ['ordinal'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-slashed-zero': ['slashed-zero'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-figure': ['lining-nums', 'oldstyle-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-spacing': ['proportional-nums', 'tabular-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-fraction': ['diagonal-fractions', 'stacked-fractons'],\n /**\n * Letter Spacing\n * @see https://tailwindcss.com/docs/letter-spacing\n */\n tracking: [{\n tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest', isArbitraryValue]\n }],\n /**\n * Line Clamp\n * @see https://tailwindcss.com/docs/line-clamp\n */\n 'line-clamp': [{\n 'line-clamp': ['none', isNumber, isArbitraryNumber]\n }],\n /**\n * Line Height\n * @see https://tailwindcss.com/docs/line-height\n */\n leading: [{\n leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isArbitraryValue, isLength]\n }],\n /**\n * List Style Image\n * @see https://tailwindcss.com/docs/list-style-image\n */\n 'list-image': [{\n 'list-image': ['none', isArbitraryValue]\n }],\n /**\n * List Style Type\n * @see https://tailwindcss.com/docs/list-style-type\n */\n 'list-style-type': [{\n list: ['none', 'disc', 'decimal', isArbitraryValue]\n }],\n /**\n * List Style Position\n * @see https://tailwindcss.com/docs/list-style-position\n */\n 'list-style-position': [{\n list: ['inside', 'outside']\n }],\n /**\n * Placeholder Color\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/placeholder-color\n */\n 'placeholder-color': [{\n placeholder: [colors]\n }],\n /**\n * Placeholder Opacity\n * @see https://tailwindcss.com/docs/placeholder-opacity\n */\n 'placeholder-opacity': [{\n 'placeholder-opacity': [opacity]\n }],\n /**\n * Text Alignment\n * @see https://tailwindcss.com/docs/text-align\n */\n 'text-alignment': [{\n text: ['left', 'center', 'right', 'justify', 'start', 'end']\n }],\n /**\n * Text Color\n * @see https://tailwindcss.com/docs/text-color\n */\n 'text-color': [{\n text: [colors]\n }],\n /**\n * Text Opacity\n * @see https://tailwindcss.com/docs/text-opacity\n */\n 'text-opacity': [{\n 'text-opacity': [opacity]\n }],\n /**\n * Text Decoration\n * @see https://tailwindcss.com/docs/text-decoration\n */\n 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],\n /**\n * Text Decoration Style\n * @see https://tailwindcss.com/docs/text-decoration-style\n */\n 'text-decoration-style': [{\n decoration: [].concat(getLineStyles(), ['wavy'])\n }],\n /**\n * Text Decoration Thickness\n * @see https://tailwindcss.com/docs/text-decoration-thickness\n */\n 'text-decoration-thickness': [{\n decoration: ['auto', 'from-font', isLength]\n }],\n /**\n * Text Underline Offset\n * @see https://tailwindcss.com/docs/text-underline-offset\n */\n 'underline-offset': [{\n 'underline-offset': ['auto', isArbitraryValue, isLength]\n }],\n /**\n * Text Decoration Color\n * @see https://tailwindcss.com/docs/text-decoration-color\n */\n 'text-decoration-color': [{\n decoration: [colors]\n }],\n /**\n * Text Transform\n * @see https://tailwindcss.com/docs/text-transform\n */\n 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],\n /**\n * Text Overflow\n * @see https://tailwindcss.com/docs/text-overflow\n */\n 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],\n /**\n * Text Indent\n * @see https://tailwindcss.com/docs/text-indent\n */\n indent: [{\n indent: getSpacingWithArbitrary()\n }],\n /**\n * Vertical Alignment\n * @see https://tailwindcss.com/docs/vertical-align\n */\n 'vertical-align': [{\n align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryValue]\n }],\n /**\n * Whitespace\n * @see https://tailwindcss.com/docs/whitespace\n */\n whitespace: [{\n whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']\n }],\n /**\n * Word Break\n * @see https://tailwindcss.com/docs/word-break\n */\n \"break\": [{\n \"break\": ['normal', 'words', 'all', 'keep']\n }],\n /**\n * Hyphens\n * @see https://tailwindcss.com/docs/hyphens\n */\n hyphens: [{\n hyphens: ['none', 'manual', 'auto']\n }],\n /**\n * Content\n * @see https://tailwindcss.com/docs/content\n */\n content: [{\n content: ['none', isArbitraryValue]\n }],\n // Backgrounds\n /**\n * Background Attachment\n * @see https://tailwindcss.com/docs/background-attachment\n */\n 'bg-attachment': [{\n bg: ['fixed', 'local', 'scroll']\n }],\n /**\n * Background Clip\n * @see https://tailwindcss.com/docs/background-clip\n */\n 'bg-clip': [{\n 'bg-clip': ['border', 'padding', 'content', 'text']\n }],\n /**\n * Background Opacity\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/background-opacity\n */\n 'bg-opacity': [{\n 'bg-opacity': [opacity]\n }],\n /**\n * Background Origin\n * @see https://tailwindcss.com/docs/background-origin\n */\n 'bg-origin': [{\n 'bg-origin': ['border', 'padding', 'content']\n }],\n /**\n * Background Position\n * @see https://tailwindcss.com/docs/background-position\n */\n 'bg-position': [{\n bg: [].concat(getPositions(), [isArbitraryPosition])\n }],\n /**\n * Background Repeat\n * @see https://tailwindcss.com/docs/background-repeat\n */\n 'bg-repeat': [{\n bg: ['no-repeat', {\n repeat: ['', 'x', 'y', 'round', 'space']\n }]\n }],\n /**\n * Background Size\n * @see https://tailwindcss.com/docs/background-size\n */\n 'bg-size': [{\n bg: ['auto', 'cover', 'contain', isArbitrarySize]\n }],\n /**\n * Background Image\n * @see https://tailwindcss.com/docs/background-image\n */\n 'bg-image': [{\n bg: ['none', {\n 'gradient-to': ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']\n }, isArbitraryUrl]\n }],\n /**\n * Background Color\n * @see https://tailwindcss.com/docs/background-color\n */\n 'bg-color': [{\n bg: [colors]\n }],\n /**\n * Gradient Color Stops From Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from-pos': [{\n from: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops Via Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via-pos': [{\n via: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops To Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to-pos': [{\n to: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops From\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from': [{\n from: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops Via\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via': [{\n via: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops To\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to': [{\n to: [gradientColorStops]\n }],\n // Borders\n /**\n * Border Radius\n * @see https://tailwindcss.com/docs/border-radius\n */\n rounded: [{\n rounded: [borderRadius]\n }],\n /**\n * Border Radius Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-s': [{\n 'rounded-s': [borderRadius]\n }],\n /**\n * Border Radius End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-e': [{\n 'rounded-e': [borderRadius]\n }],\n /**\n * Border Radius Top\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-t': [{\n 'rounded-t': [borderRadius]\n }],\n /**\n * Border Radius Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-r': [{\n 'rounded-r': [borderRadius]\n }],\n /**\n * Border Radius Bottom\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-b': [{\n 'rounded-b': [borderRadius]\n }],\n /**\n * Border Radius Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-l': [{\n 'rounded-l': [borderRadius]\n }],\n /**\n * Border Radius Start Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ss': [{\n 'rounded-ss': [borderRadius]\n }],\n /**\n * Border Radius Start End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-se': [{\n 'rounded-se': [borderRadius]\n }],\n /**\n * Border Radius End End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ee': [{\n 'rounded-ee': [borderRadius]\n }],\n /**\n * Border Radius End Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-es': [{\n 'rounded-es': [borderRadius]\n }],\n /**\n * Border Radius Top Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tl': [{\n 'rounded-tl': [borderRadius]\n }],\n /**\n * Border Radius Top Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tr': [{\n 'rounded-tr': [borderRadius]\n }],\n /**\n * Border Radius Bottom Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-br': [{\n 'rounded-br': [borderRadius]\n }],\n /**\n * Border Radius Bottom Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-bl': [{\n 'rounded-bl': [borderRadius]\n }],\n /**\n * Border Width\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w': [{\n border: [borderWidth]\n }],\n /**\n * Border Width X\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-x': [{\n 'border-x': [borderWidth]\n }],\n /**\n * Border Width Y\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-y': [{\n 'border-y': [borderWidth]\n }],\n /**\n * Border Width Start\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-s': [{\n 'border-s': [borderWidth]\n }],\n /**\n * Border Width End\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-e': [{\n 'border-e': [borderWidth]\n }],\n /**\n * Border Width Top\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-t': [{\n 'border-t': [borderWidth]\n }],\n /**\n * Border Width Right\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-r': [{\n 'border-r': [borderWidth]\n }],\n /**\n * Border Width Bottom\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-b': [{\n 'border-b': [borderWidth]\n }],\n /**\n * Border Width Left\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-l': [{\n 'border-l': [borderWidth]\n }],\n /**\n * Border Opacity\n * @see https://tailwindcss.com/docs/border-opacity\n */\n 'border-opacity': [{\n 'border-opacity': [opacity]\n }],\n /**\n * Border Style\n * @see https://tailwindcss.com/docs/border-style\n */\n 'border-style': [{\n border: [].concat(getLineStyles(), ['hidden'])\n }],\n /**\n * Divide Width X\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x': [{\n 'divide-x': [borderWidth]\n }],\n /**\n * Divide Width X Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x-reverse': ['divide-x-reverse'],\n /**\n * Divide Width Y\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y': [{\n 'divide-y': [borderWidth]\n }],\n /**\n * Divide Width Y Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y-reverse': ['divide-y-reverse'],\n /**\n * Divide Opacity\n * @see https://tailwindcss.com/docs/divide-opacity\n */\n 'divide-opacity': [{\n 'divide-opacity': [opacity]\n }],\n /**\n * Divide Style\n * @see https://tailwindcss.com/docs/divide-style\n */\n 'divide-style': [{\n divide: getLineStyles()\n }],\n /**\n * Border Color\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color': [{\n border: [borderColor]\n }],\n /**\n * Border Color X\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-x': [{\n 'border-x': [borderColor]\n }],\n /**\n * Border Color Y\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-y': [{\n 'border-y': [borderColor]\n }],\n /**\n * Border Color Top\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-t': [{\n 'border-t': [borderColor]\n }],\n /**\n * Border Color Right\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-r': [{\n 'border-r': [borderColor]\n }],\n /**\n * Border Color Bottom\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-b': [{\n 'border-b': [borderColor]\n }],\n /**\n * Border Color Left\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-l': [{\n 'border-l': [borderColor]\n }],\n /**\n * Divide Color\n * @see https://tailwindcss.com/docs/divide-color\n */\n 'divide-color': [{\n divide: [borderColor]\n }],\n /**\n * Outline Style\n * @see https://tailwindcss.com/docs/outline-style\n */\n 'outline-style': [{\n outline: [''].concat(getLineStyles())\n }],\n /**\n * Outline Offset\n * @see https://tailwindcss.com/docs/outline-offset\n */\n 'outline-offset': [{\n 'outline-offset': [isArbitraryValue, isLength]\n }],\n /**\n * Outline Width\n * @see https://tailwindcss.com/docs/outline-width\n */\n 'outline-w': [{\n outline: [isLength]\n }],\n /**\n * Outline Color\n * @see https://tailwindcss.com/docs/outline-color\n */\n 'outline-color': [{\n outline: [colors]\n }],\n /**\n * Ring Width\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w': [{\n ring: getLengthWithEmpty()\n }],\n /**\n * Ring Width Inset\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w-inset': ['ring-inset'],\n /**\n * Ring Color\n * @see https://tailwindcss.com/docs/ring-color\n */\n 'ring-color': [{\n ring: [colors]\n }],\n /**\n * Ring Opacity\n * @see https://tailwindcss.com/docs/ring-opacity\n */\n 'ring-opacity': [{\n 'ring-opacity': [opacity]\n }],\n /**\n * Ring Offset Width\n * @see https://tailwindcss.com/docs/ring-offset-width\n */\n 'ring-offset-w': [{\n 'ring-offset': [isLength]\n }],\n /**\n * Ring Offset Color\n * @see https://tailwindcss.com/docs/ring-offset-color\n */\n 'ring-offset-color': [{\n 'ring-offset': [colors]\n }],\n // Effects\n /**\n * Box Shadow\n * @see https://tailwindcss.com/docs/box-shadow\n */\n shadow: [{\n shadow: ['', 'inner', 'none', isTshirtSize, isArbitraryShadow]\n }],\n /**\n * Box Shadow Color\n * @see https://tailwindcss.com/docs/box-shadow-color\n */\n 'shadow-color': [{\n shadow: [isAny]\n }],\n /**\n * Opacity\n * @see https://tailwindcss.com/docs/opacity\n */\n opacity: [{\n opacity: [opacity]\n }],\n /**\n * Mix Blend Mode\n * @see https://tailwindcss.com/docs/mix-blend-mode\n */\n 'mix-blend': [{\n 'mix-blend': getBlendModes()\n }],\n /**\n * Background Blend Mode\n * @see https://tailwindcss.com/docs/background-blend-mode\n */\n 'bg-blend': [{\n 'bg-blend': getBlendModes()\n }],\n // Filters\n /**\n * Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/filter\n */\n filter: [{\n filter: ['', 'none']\n }],\n /**\n * Blur\n * @see https://tailwindcss.com/docs/blur\n */\n blur: [{\n blur: [blur]\n }],\n /**\n * Brightness\n * @see https://tailwindcss.com/docs/brightness\n */\n brightness: [{\n brightness: [brightness]\n }],\n /**\n * Contrast\n * @see https://tailwindcss.com/docs/contrast\n */\n contrast: [{\n contrast: [contrast]\n }],\n /**\n * Drop Shadow\n * @see https://tailwindcss.com/docs/drop-shadow\n */\n 'drop-shadow': [{\n 'drop-shadow': ['', 'none', isTshirtSize, isArbitraryValue]\n }],\n /**\n * Grayscale\n * @see https://tailwindcss.com/docs/grayscale\n */\n grayscale: [{\n grayscale: [grayscale]\n }],\n /**\n * Hue Rotate\n * @see https://tailwindcss.com/docs/hue-rotate\n */\n 'hue-rotate': [{\n 'hue-rotate': [hueRotate]\n }],\n /**\n * Invert\n * @see https://tailwindcss.com/docs/invert\n */\n invert: [{\n invert: [invert]\n }],\n /**\n * Saturate\n * @see https://tailwindcss.com/docs/saturate\n */\n saturate: [{\n saturate: [saturate]\n }],\n /**\n * Sepia\n * @see https://tailwindcss.com/docs/sepia\n */\n sepia: [{\n sepia: [sepia]\n }],\n /**\n * Backdrop Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/backdrop-filter\n */\n 'backdrop-filter': [{\n 'backdrop-filter': ['', 'none']\n }],\n /**\n * Backdrop Blur\n * @see https://tailwindcss.com/docs/backdrop-blur\n */\n 'backdrop-blur': [{\n 'backdrop-blur': [blur]\n }],\n /**\n * Backdrop Brightness\n * @see https://tailwindcss.com/docs/backdrop-brightness\n */\n 'backdrop-brightness': [{\n 'backdrop-brightness': [brightness]\n }],\n /**\n * Backdrop Contrast\n * @see https://tailwindcss.com/docs/backdrop-contrast\n */\n 'backdrop-contrast': [{\n 'backdrop-contrast': [contrast]\n }],\n /**\n * Backdrop Grayscale\n * @see https://tailwindcss.com/docs/backdrop-grayscale\n */\n 'backdrop-grayscale': [{\n 'backdrop-grayscale': [grayscale]\n }],\n /**\n * Backdrop Hue Rotate\n * @see https://tailwindcss.com/docs/backdrop-hue-rotate\n */\n 'backdrop-hue-rotate': [{\n 'backdrop-hue-rotate': [hueRotate]\n }],\n /**\n * Backdrop Invert\n * @see https://tailwindcss.com/docs/backdrop-invert\n */\n 'backdrop-invert': [{\n 'backdrop-invert': [invert]\n }],\n /**\n * Backdrop Opacity\n * @see https://tailwindcss.com/docs/backdrop-opacity\n */\n 'backdrop-opacity': [{\n 'backdrop-opacity': [opacity]\n }],\n /**\n * Backdrop Saturate\n * @see https://tailwindcss.com/docs/backdrop-saturate\n */\n 'backdrop-saturate': [{\n 'backdrop-saturate': [saturate]\n }],\n /**\n * Backdrop Sepia\n * @see https://tailwindcss.com/docs/backdrop-sepia\n */\n 'backdrop-sepia': [{\n 'backdrop-sepia': [sepia]\n }],\n // Tables\n /**\n * Border Collapse\n * @see https://tailwindcss.com/docs/border-collapse\n */\n 'border-collapse': [{\n border: ['collapse', 'separate']\n }],\n /**\n * Border Spacing\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing': [{\n 'border-spacing': [borderSpacing]\n }],\n /**\n * Border Spacing X\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-x': [{\n 'border-spacing-x': [borderSpacing]\n }],\n /**\n * Border Spacing Y\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-y': [{\n 'border-spacing-y': [borderSpacing]\n }],\n /**\n * Table Layout\n * @see https://tailwindcss.com/docs/table-layout\n */\n 'table-layout': [{\n table: ['auto', 'fixed']\n }],\n /**\n * Caption Side\n * @see https://tailwindcss.com/docs/caption-side\n */\n caption: [{\n caption: ['top', 'bottom']\n }],\n // Transitions and Animation\n /**\n * Tranisition Property\n * @see https://tailwindcss.com/docs/transition-property\n */\n transition: [{\n transition: ['none', 'all', '', 'colors', 'opacity', 'shadow', 'transform', isArbitraryValue]\n }],\n /**\n * Transition Duration\n * @see https://tailwindcss.com/docs/transition-duration\n */\n duration: [{\n duration: getNumberAndArbitrary()\n }],\n /**\n * Transition Timing Function\n * @see https://tailwindcss.com/docs/transition-timing-function\n */\n ease: [{\n ease: ['linear', 'in', 'out', 'in-out', isArbitraryValue]\n }],\n /**\n * Transition Delay\n * @see https://tailwindcss.com/docs/transition-delay\n */\n delay: [{\n delay: getNumberAndArbitrary()\n }],\n /**\n * Animation\n * @see https://tailwindcss.com/docs/animation\n */\n animate: [{\n animate: ['none', 'spin', 'ping', 'pulse', 'bounce', isArbitraryValue]\n }],\n // Transforms\n /**\n * Transform\n * @see https://tailwindcss.com/docs/transform\n */\n transform: [{\n transform: ['', 'gpu', 'none']\n }],\n /**\n * Scale\n * @see https://tailwindcss.com/docs/scale\n */\n scale: [{\n scale: [scale]\n }],\n /**\n * Scale X\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-x': [{\n 'scale-x': [scale]\n }],\n /**\n * Scale Y\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-y': [{\n 'scale-y': [scale]\n }],\n /**\n * Rotate\n * @see https://tailwindcss.com/docs/rotate\n */\n rotate: [{\n rotate: [isInteger, isArbitraryValue]\n }],\n /**\n * Translate X\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-x': [{\n 'translate-x': [translate]\n }],\n /**\n * Translate Y\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-y': [{\n 'translate-y': [translate]\n }],\n /**\n * Skew X\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-x': [{\n 'skew-x': [skew]\n }],\n /**\n * Skew Y\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-y': [{\n 'skew-y': [skew]\n }],\n /**\n * Transform Origin\n * @see https://tailwindcss.com/docs/transform-origin\n */\n 'transform-origin': [{\n origin: ['center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left', isArbitraryValue]\n }],\n // Interactivity\n /**\n * Accent Color\n * @see https://tailwindcss.com/docs/accent-color\n */\n accent: [{\n accent: ['auto', colors]\n }],\n /**\n * Appearance\n * @see https://tailwindcss.com/docs/appearance\n */\n appearance: ['appearance-none'],\n /**\n * Cursor\n * @see https://tailwindcss.com/docs/cursor\n */\n cursor: [{\n cursor: ['auto', 'default', 'pointer', 'wait', 'text', 'move', 'help', 'not-allowed', 'none', 'context-menu', 'progress', 'cell', 'crosshair', 'vertical-text', 'alias', 'copy', 'no-drop', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 'e-resize', 's-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out', isArbitraryValue]\n }],\n /**\n * Caret Color\n * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities\n */\n 'caret-color': [{\n caret: [colors]\n }],\n /**\n * Pointer Events\n * @see https://tailwindcss.com/docs/pointer-events\n */\n 'pointer-events': [{\n 'pointer-events': ['none', 'auto']\n }],\n /**\n * Resize\n * @see https://tailwindcss.com/docs/resize\n */\n resize: [{\n resize: ['none', 'y', 'x', '']\n }],\n /**\n * Scroll Behavior\n * @see https://tailwindcss.com/docs/scroll-behavior\n */\n 'scroll-behavior': [{\n scroll: ['auto', 'smooth']\n }],\n /**\n * Scroll Margin\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-m': [{\n 'scroll-m': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin X\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mx': [{\n 'scroll-mx': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Y\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-my': [{\n 'scroll-my': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Start\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ms': [{\n 'scroll-ms': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin End\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-me': [{\n 'scroll-me': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Top\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mt': [{\n 'scroll-mt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Right\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mr': [{\n 'scroll-mr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Bottom\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mb': [{\n 'scroll-mb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Left\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ml': [{\n 'scroll-ml': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-p': [{\n 'scroll-p': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding X\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-px': [{\n 'scroll-px': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Y\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-py': [{\n 'scroll-py': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Start\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-ps': [{\n 'scroll-ps': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding End\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pe': [{\n 'scroll-pe': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Top\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pt': [{\n 'scroll-pt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Right\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pr': [{\n 'scroll-pr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Bottom\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pb': [{\n 'scroll-pb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Left\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pl': [{\n 'scroll-pl': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Snap Align\n * @see https://tailwindcss.com/docs/scroll-snap-align\n */\n 'snap-align': [{\n snap: ['start', 'end', 'center', 'align-none']\n }],\n /**\n * Scroll Snap Stop\n * @see https://tailwindcss.com/docs/scroll-snap-stop\n */\n 'snap-stop': [{\n snap: ['normal', 'always']\n }],\n /**\n * Scroll Snap Type\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-type': [{\n snap: ['none', 'x', 'y', 'both']\n }],\n /**\n * Scroll Snap Type Strictness\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-strictness': [{\n snap: ['mandatory', 'proximity']\n }],\n /**\n * Touch Action\n * @see https://tailwindcss.com/docs/touch-action\n */\n touch: [{\n touch: ['auto', 'none', 'pinch-zoom', 'manipulation', {\n pan: ['x', 'left', 'right', 'y', 'up', 'down']\n }]\n }],\n /**\n * User Select\n * @see https://tailwindcss.com/docs/user-select\n */\n select: [{\n select: ['none', 'text', 'all', 'auto']\n }],\n /**\n * Will Change\n * @see https://tailwindcss.com/docs/will-change\n */\n 'will-change': [{\n 'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryValue]\n }],\n // SVG\n /**\n * Fill\n * @see https://tailwindcss.com/docs/fill\n */\n fill: [{\n fill: [colors, 'none']\n }],\n /**\n * Stroke Width\n * @see https://tailwindcss.com/docs/stroke-width\n */\n 'stroke-w': [{\n stroke: [isLength, isArbitraryNumber]\n }],\n /**\n * Stroke\n * @see https://tailwindcss.com/docs/stroke\n */\n stroke: [{\n stroke: [colors, 'none']\n }],\n // Accessibility\n /**\n * Screen Readers\n * @see https://tailwindcss.com/docs/screen-readers\n */\n sr: ['sr-only', 'not-sr-only']\n },\n conflictingClassGroups: {\n overflow: ['overflow-x', 'overflow-y'],\n overscroll: ['overscroll-x', 'overscroll-y'],\n inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],\n 'inset-x': ['right', 'left'],\n 'inset-y': ['top', 'bottom'],\n flex: ['basis', 'grow', 'shrink'],\n gap: ['gap-x', 'gap-y'],\n p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],\n px: ['pr', 'pl'],\n py: ['pt', 'pb'],\n m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],\n mx: ['mr', 'ml'],\n my: ['mt', 'mb'],\n 'font-size': ['leading'],\n 'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],\n 'fvn-ordinal': ['fvn-normal'],\n 'fvn-slashed-zero': ['fvn-normal'],\n 'fvn-figure': ['fvn-normal'],\n 'fvn-spacing': ['fvn-normal'],\n 'fvn-fraction': ['fvn-normal'],\n rounded: ['rounded-s', 'rounded-e', 'rounded-t', 'rounded-r', 'rounded-b', 'rounded-l', 'rounded-ss', 'rounded-se', 'rounded-ee', 'rounded-es', 'rounded-tl', 'rounded-tr', 'rounded-br', 'rounded-bl'],\n 'rounded-s': ['rounded-ss', 'rounded-es'],\n 'rounded-e': ['rounded-se', 'rounded-ee'],\n 'rounded-t': ['rounded-tl', 'rounded-tr'],\n 'rounded-r': ['rounded-tr', 'rounded-br'],\n 'rounded-b': ['rounded-br', 'rounded-bl'],\n 'rounded-l': ['rounded-tl', 'rounded-bl'],\n 'border-spacing': ['border-spacing-x', 'border-spacing-y'],\n 'border-w': ['border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],\n 'border-w-x': ['border-w-r', 'border-w-l'],\n 'border-w-y': ['border-w-t', 'border-w-b'],\n 'border-color': ['border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],\n 'border-color-x': ['border-color-r', 'border-color-l'],\n 'border-color-y': ['border-color-t', 'border-color-b'],\n 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],\n 'scroll-mx': ['scroll-mr', 'scroll-ml'],\n 'scroll-my': ['scroll-mt', 'scroll-mb'],\n 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],\n 'scroll-px': ['scroll-pr', 'scroll-pl'],\n 'scroll-py': ['scroll-pt', 'scroll-pb']\n },\n conflictingClassGroupModifiers: {\n 'font-size': ['leading']\n }\n };\n}\n\nexport { getDefaultConfig };\n//# sourceMappingURL=default-config.mjs.map\n","/**\n * @param baseConfig Config where other config will be merged into. This object will be mutated.\n * @param configExtension Partial config to merge into the `baseConfig`.\n */\nfunction mergeConfigs(baseConfig, configExtension) {\n for (var key in configExtension) {\n mergePropertyRecursively(baseConfig, key, configExtension[key]);\n }\n return baseConfig;\n}\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar overrideTypes = /*#__PURE__*/new Set(['string', 'number', 'boolean']);\nfunction mergePropertyRecursively(baseObject, mergeKey, mergeValue) {\n if (!hasOwnProperty.call(baseObject, mergeKey) || overrideTypes.has(typeof mergeValue) || mergeValue === null) {\n baseObject[mergeKey] = mergeValue;\n return;\n }\n if (Array.isArray(mergeValue) && Array.isArray(baseObject[mergeKey])) {\n baseObject[mergeKey] = baseObject[mergeKey].concat(mergeValue);\n return;\n }\n if (typeof mergeValue === 'object' && typeof baseObject[mergeKey] === 'object') {\n if (baseObject[mergeKey] === null) {\n baseObject[mergeKey] = mergeValue;\n return;\n }\n for (var nextKey in mergeValue) {\n mergePropertyRecursively(baseObject[mergeKey], nextKey, mergeValue[nextKey]);\n }\n }\n}\n\nexport { mergeConfigs };\n//# sourceMappingURL=merge-configs.mjs.map\n","import { createTailwindMerge } from './create-tailwind-merge.mjs';\nimport { getDefaultConfig } from './default-config.mjs';\nimport { mergeConfigs } from './merge-configs.mjs';\n\nfunction extendTailwindMerge(configExtension) {\n for (var _len = arguments.length, createConfig = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n createConfig[_key - 1] = arguments[_key];\n }\n return typeof configExtension === 'function' ? createTailwindMerge.apply(void 0, [getDefaultConfig, configExtension].concat(createConfig)) : createTailwindMerge.apply(void 0, [function () {\n return mergeConfigs(getDefaultConfig(), configExtension);\n }].concat(createConfig));\n}\n\nexport { extendTailwindMerge };\n//# sourceMappingURL=extend-tailwind-merge.mjs.map\n","import { createTailwindMerge } from './create-tailwind-merge.mjs';\nimport { getDefaultConfig } from './default-config.mjs';\n\nvar twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);\n\nexport { twMerge };\n//# sourceMappingURL=tw-merge.mjs.map\n","import { e, b, g, c, f, a, h } from './chunk-JXBJZR5A.js';\nimport { twMerge, extendTailwindMerge } from 'tailwind-merge';\n\nvar se={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},_=s=>s||void 0,N=(...s)=>_(e(s).filter(Boolean).join(\" \")),q=null,M={},F=!1,w=(...s)=>b$1=>b$1.twMerge?((!q||F)&&(F=!1,q=b(M)?twMerge:extendTailwindMerge(M)),_(q(N(s)))):N(s),Z=(s,b)=>{for(let e in b)s.hasOwnProperty(e)?s[e]=N(s[e],b[e]):s[e]=b[e];return s},ie=(s,b$1)=>{let{extend:e=null,slots:j={},variants:U={},compoundVariants:C=[],compoundSlots:V=[],defaultVariants:W={}}=s,m={...se,...b$1},S=e!=null&&e.base?N(e.base,s==null?void 0:s.base):s==null?void 0:s.base,g$1=e!=null&&e.variants&&!b(e.variants)?g(U,e.variants):U,A=e!=null&&e.defaultVariants&&!b(e.defaultVariants)?{...e.defaultVariants,...W}:W;!b(m.twMergeConfig)&&!c(m.twMergeConfig,M)&&(F=!0,M=m.twMergeConfig);let O=b(e==null?void 0:e.slots),$=b(j)?{}:{base:N(s==null?void 0:s.base,O&&(e==null?void 0:e.base)),...j},h$1=O?$:Z({...e==null?void 0:e.slots},b($)?{base:s==null?void 0:s.base}:$),v=l=>{if(b(g$1)&&b(j)&&O)return w(S,l==null?void 0:l.class,l==null?void 0:l.className)(m);if(C&&!Array.isArray(C))throw new TypeError(`The \"compoundVariants\" prop must be an array. Received: ${typeof C}`);if(V&&!Array.isArray(V))throw new TypeError(`The \"compoundSlots\" prop must be an array. Received: ${typeof V}`);let K=(t,n,a=[],i)=>{let r=a;if(typeof n==\"string\")r=r.concat(h(n).split(\" \").map(c=>`${t}:${c}`));else if(Array.isArray(n))r=r.concat(n.reduce((c,f)=>c.concat(`${t}:${f}`),[]));else if(typeof n==\"object\"&&typeof i==\"string\"){for(let c in n)if(n.hasOwnProperty(c)&&c===i){let f=n[c];if(f&&typeof f==\"string\"){let o=h(f);r[i]?r[i]=r[i].concat(o.split(\" \").map(u=>`${t}:${u}`)):r[i]=o.split(\" \").map(u=>`${t}:${u}`);}else Array.isArray(f)&&f.length>0&&(r[i]=f.reduce((o,u)=>o.concat(`${t}:${u}`),[]));}}return r},z=(t,n=g$1,a$1=null,i=null)=>{var J;let r=n[t];if(!r||b(r))return null;let c=(J=i==null?void 0:i[t])!=null?J:l==null?void 0:l[t];if(c===null)return null;let f=a(c),o=Array.isArray(m.responsiveVariants)&&m.responsiveVariants.length>0||m.responsiveVariants===!0,u=A==null?void 0:A[t],d=[];if(typeof f==\"object\"&&o)for(let[k,L]of Object.entries(f)){let ae=r[L];if(k===\"initial\"){u=L;continue}Array.isArray(m.responsiveVariants)&&!m.responsiveVariants.includes(k)||(d=K(k,ae,d,a$1));}let T=r[f]||r[a(u)];return typeof d==\"object\"&&typeof a$1==\"string\"&&d[a$1]?Z(d,T):d.length>0?(d.push(T),d):T},P=()=>g$1?Object.keys(g$1).map(t=>z(t,g$1)):null,p=(t,n)=>{if(!g$1||typeof g$1!=\"object\")return null;let a=new Array;for(let i in g$1){let r=z(i,g$1,t,n),c=t===\"base\"&&typeof r==\"string\"?r:r&&r[t];c&&(a[a.length]=c);}return a},D={};for(let t in l)l[t]!==void 0&&(D[t]=l[t]);let G=(t,n)=>{var i;let a=typeof(l==null?void 0:l[t])==\"object\"?{[t]:(i=l[t])==null?void 0:i.initial}:{};return {...A,...D,...a,...n}},H=(t=[],n)=>{let a=[];for(let{class:i,className:r,...c}of t){let f=!0;for(let[o,u]of Object.entries(c)){let d=G(o,n);if(Array.isArray(u)){if(!u.includes(d[o])){f=!1;break}}else if(d[o]!==u){f=!1;break}}f&&(i&&a.push(i),r&&a.push(r));}return a},I=t=>{let n=H(C,t),a=H(e==null?void 0:e.compoundVariants,t);return f(a,n)},ee=t=>{let n=I(t);if(!Array.isArray(n))return n;let a={};for(let i of n)if(typeof i==\"string\"&&(a.base=w(a.base,i)(m)),typeof i==\"object\")for(let[r,c]of Object.entries(i))a[r]=w(a[r],c)(m);return a},te=t=>{if(V.length<1)return null;let n={};for(let{slots:a=[],class:i,className:r,...c}of V){if(!b(c)){let f=!0;for(let o of Object.keys(c)){let u=G(o,t)[o];if(u===void 0||(Array.isArray(c[o])?!c[o].includes(u):c[o]!==u)){f=!1;break}}if(!f)continue}for(let f of a)n[f]=n[f]||[],n[f].push([i,r]);}return n};if(!b(j)||!O){let t={};if(typeof h$1==\"object\"&&!b(h$1))for(let n of Object.keys(h$1))t[n]=a=>{var i,r;return w(h$1[n],p(n,a),((i=ee(a))!=null?i:[])[n],((r=te(a))!=null?r:[])[n],a==null?void 0:a.class,a==null?void 0:a.className)(m)};return t}return w(S,P(),I(),l==null?void 0:l.class,l==null?void 0:l.className)(m)},x=()=>{if(!(!g$1||typeof g$1!=\"object\"))return Object.keys(g$1)};return v.variantKeys=x(),v.extend=e,v.base=S,v.slots=h$1,v.variants=g$1,v.defaultVariants=A,v.compoundSlots=V,v.compoundVariants=C,v},le=s=>(b,e)=>ie(b,e?g(s,e):s);\n\nexport { w as cn, N as cnBase, le as createTV, se as defaultConfig, ie as tv, _ as voidEmpty };\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const layoutBase = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--self-stretch tw--justify-self-stretch tw--items-stretch tw--justify-center tw--overflow-hidden tw--h-full',\n wrapper: 'tw--flex tw--flex-col tw--w-full md:tw--max-w-[800px] tw--max-h-screen tw--h-full',\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-lumina',\n wrapper: 'tw--bg-light-whisper tw--text-light-zephyr-100',\n },\n dark: {\n base: 'tw--bg-dark-lumina',\n wrapper: 'tw--bg-dark-whisper tw--text-white',\n }\n },\n minimized: {\n true: 'tw--fixed tw--right-0 tw--bottom-0 tw--max-h-[700px] tw--max-w-md'\n }\n },\n});\n\nexport const layoutHead = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--px-5 tw--py-[11px] tw--shadow-[-1px_2px_5px_0] tw--justify-between',\n },\n variants: {\n theme: {\n light: 'tw--shadow-light-zephyr-200',\n dark: 'tw--shadow-dark-zephyr-200',\n },\n },\n});\n\nexport const layoutFoot = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--items-center tw--flex-wrap tw--px-5 tw--mt-[11px]',\n input: 'tw--flex-1 tw--pr-2',\n button: 'tw--flex tw--grow-0',\n },\n});\n\nexport default { layoutBase, layoutHead, layoutFoot };\n","import { useAppSelector, useWindowSize } from '../../hooks';\nimport { LayoutBaseProps } from '../../interfaces/component';\nimport { getConfig } from '../../store/slices/config';\nimport { layoutBase as variant } from './variants';\n\nexport const LayoutBase = ({ head, stream, foot }: LayoutBaseProps) => {\n const { themeId: theme, isPluginMode } = useAppSelector(getConfig);\n const { base, wrapper } = variant({ theme });\n const data = useWindowSize();\n\n return (\n \n
\n {head}\n {stream}\n {foot}\n
\n
\n );\n};\n\nexport default LayoutBase;\n","import { tv } from 'tailwind-variants';\n\n// eslint-disable-next-line spaced-comment\nexport const overlay = /*tw*/ tv({\n slots: {\n base: 'loader js-payment-loader tw--hidden tw--fixed tw--left-0 tw--top-0 tw--z-[101] tw--m-0 tw--flex tw--h-screen tw--w-screen tw--items-center tw--justify-center tw--px-5'\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-whisper'\n },\n dark: {\n base: 'tw--bg-dark-whisper'\n }\n }\n }\n});\n\nexport default overlay;\n","import { useAppSelector } from '../../hooks';\nimport { OverlayProps } from '../../interfaces/component';\nimport { getConfig } from '../../store/slices/config';\nimport overlay from './variants';\n\nexport const Overlay = ({ children }: OverlayProps) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = overlay({ theme });\n return (\n
\n {children}\n
\n );\n};\n\nexport default Overlay;\n","import { AllEvents } from '../config/enums';\n\ntype trackingData = {\n eventType: AllEvents | string;\n systemType: string;\n utmParams: {[key:string]: string};\n customerUuid: string;\n email?: string;\n phone?: string;\n};\n\nexport const track = ({\n eventType,\n systemType,\n utmParams,\n customerUuid,\n email,\n phone,\n}: trackingData): void => {\n if (window.trackEventInGTM && window.tracking) {\n const event = window.tracking.event({\n eventType,\n systemType,\n uri: window.location.pathname,\n domain: window.location.hostname,\n customerUuid,\n email: email || null,\n phone: phone || null,\n additionalData: {},\n utmParams,\n });\n\n window.tracking.trackClient(event);\n if (window.trackEventInGTM) {\n window.trackEventInGTM(event);\n }\n }\n};\n\ndeclare global {\n interface Window {\n tracking: {\n event: (data: {\n eventType: string;\n systemType: string;\n uri: string;\n domain: string;\n customerUuid: string;\n additionalData: object;\n utmParams: {[key:string]: string};\n email?: string | null;\n phone?: string | null;\n }) => string;\n trackClient: (event: string) => void;\n };\n trackEventInGTM: (data: string) => void;\n }\n}\n\nwindow.tracking = window.tracking || null;\nwindow.trackEventInGTM = window.trackEventInGTM || null;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const payment = /*tw*/ tv({\n slots: {\n btn: 'tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-bold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--text-xl max-h-[46px] tw--mb-[11px] customXs:max-h-[52px]',\n\n link: 'tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-extrabold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--mb-[11px] spaced-letters max-h-[46px] customXs:max-h-[52px] customXs:tw--max-w-xs customXs:te--text-[20px] customXs:tw--text-xl',\n }\n});\n\nexport const wrapper = /*tw*/ tv({\n slots: {\n base: 'tw--absolute tw--top-0 tw--left-0 tw--w-full tw--h-screen tw--flex tw--flex-col tw--justify-center tw--items-center tw--px-5 tw--z-50',\n },\n variants: {\n theme: {\n light: 'tw--bg-light-lumina',\n dark: 'tw--bg-dark-lumina'\n }\n }\n});\n\nexport const head = /*tw*/ tv({\n slots: {\n wrapper: 'tw--flex tw--justify-between tw--w-full tw--mb-7',\n left: 'tw--flex tw--flex-col',\n leftTop: 'tw--flex tw--flex-row',\n icon: 'tw--pr-[5px] tw--mr-[5px] tw--flex tw--items-center tw--border-r tw--border-r-[#cacadb]',\n text: 'tw--flex tw--flex-col tw--justify-center tw--text-left tw--text-[10px] tw--leading-[1] tw--text-muted-blue',\n bottom: 'tw--opacity-60 tw--text-[10px] tw--leading-[2] tw--text-muted-blue',\n right: 'tw--flex tw--flex-col tw--items-end',\n price: 'tw--text-light-seraph tw--font-bold tw--leading-[1.4] tw--text-[20px]',\n info: 'tw--leading-[2] tw--text-[10px] tw--text-muted-blue',\n },\n});\n\nexport const close = /*tw*/ tv({\n slots: {\n base: 'tw--absolute tw--top-[-30px] tw--right-[-10px] tw--w-6 tw--h-6 tw--p-1 tw--bg-white tw--rounded-full tw--cursor-pointer tw--text-muted-blue',\n },\n});\n\nexport const foot = tv({\n slots: {\n base: 'tw--mt-[30px] tw--flex tw--items-center tw--justify-center tw--text-[12.8px] tw--leading-[1.56] tw--text-light-seraph tw--font-bold',\n icon: 'tw--mr-[5px]'\n },\n});\n\nexport const loader = tv({\n slots: {\n wrapper: 'loader js-payment-loader tw--max-w-[335px] tw--overflow-hidden tw--relative tw--flex tw--w-full tw--flex-col tw--items-center tw--justify-center tw--rounded-xl tw--p-5',\n inner: 'tw--absolute tw--left-0 tw--top-8 tw--flex tw--h-8 tw--w-full tw--items-center tw--justify-center',\n dots: 'tw--relative tw--flex tw--items-center tw--justify-center tw--p-3',\n dotsIn: 'tw--relative tw--mx-auto tw--my-4 tw--box-content tw--block tw--h-4 tw--w-4 tw--rounded-full',\n progressCheckmark: 'tw--mb-6 tw--mt-24 tw--box-border tw--flex tw--w-full tw--items-center tw--justify-center tw--text-center',\n panelTitle: 'js-payment-message tw--text-lg tw--font-bold tw--leading-5',\n icon: 'tw--mr-5 tw--h-6 tw--w-6 tw--rounded-full',\n spinningTexts: 'tw--mx-10 tw--w-64 tw--shrink-0 tw--text-[16px] tw--leading-[1.63]',\n filmContainer: 'js-msg-spin tw--flex tw--justify-center tw--overflow-hidden tw--text-center',\n film: 'tw--animate-text-spin tw--flex tw--w-full tw--max-w-xs tw--translate-x-72'\n },\n variants: {\n theme: {\n light: {\n wrapper: 'tw--shadow-light-card tw--bg-light-loader',\n dotsIn: 'tw--bg-light-pale-dots tw--shadow-light-loading-dots tw--animate-light-shadow-dots',\n icon: 'tw--bg-light-iota-dots',\n spinningTexts: 'tw--text-light-zeta tw--opacity-60'\n },\n dark: {\n wrapper: 'tw--shadow-dark-card tw--bg-dark-loader',\n dotsIn: 'tw--bg-dark-pale-dots tw--shadow-dark-loading-dots tw--animate-dark-shadow-dots',\n icon: 'tw--bg-dark-iota-dots',\n spinningTexts: 'tw--text-dark-zeta tw--opacity-60'\n }\n }\n }\n});\n\nexport default payment;\n","import { useEffect } from 'react';\n\nimport { AllEvents } from '../../config/enums';\nimport { useAppSelector } from '../../hooks';\nimport { PaymentButtonProps } from '../../interfaces/component';\nimport { track } from '../../services/tracking';\nimport { getConfig } from '../../store/slices/config';\nimport { payment as variant } from './variants';\n\nexport const PaymentButton = ({ text, onClick, e2e, disabled = false }: PaymentButtonProps) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const meta = useAppSelector((state) => state.meta);\n const currentEmail = useAppSelector((state) => state.intentions.email.current);\n const { btn } = variant({ theme });\n\n useEffect(() => {\n const data = {\n eventType: AllEvents.addToCart,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: currentEmail\n };\n\n track(data);\n\n data.eventType = AllEvents.priceSeen;\n track(data);\n }, [])\n\n return (\n \n \n \n \n \n {text}\n \n );\n};\n\nexport default PaymentButton;\n","import { CloseButtonProps } from '../../interfaces/component';\nimport { close as variants } from './variants';\n\nexport const CloseButton = ({ onClick }: CloseButtonProps) => {\n const { base } = variants();\n return (\n \n \n \n \n \n );\n};\n\nexport default CloseButton;\n","import { foot as variants } from './variants';\n\nexport const PaymentFooter = () => {\n const { base, icon } = variants();\n return (\n
\n \n \n \n SSL Secure Connection\n
\n );\n};\n\nexport default PaymentFooter;\n","import { useAppSelector } from '../../hooks';\nimport { head as variants } from './variants';\ninterface PaymentHeadProps {\n config: {\n price: string;\n period: string;\n }\n}\n\nexport const PaymentHead = ({ config }: PaymentHeadProps) => {\n const { translations } = useAppSelector((state) => state.config);\n const { wrapper, left, leftTop, icon, text, bottom, right, price, info } = variants();\n\n return (\n
\n
\n \n
\n \n \n \n \n \n { /* DEV NOTE: be aware that the text is not coming from an input so in the future it is not a good practice to use this attribute */}\n \n
\n
\n {translations.paymentHeaderTxt2}\n
\n
\n
\n
{config.price}
\n
\n {config.period}\n
\n
\n
\n
\n );\n};\n\nexport default PaymentHead;\n","import { forwardRef } from 'react';\n\nimport { LinkProps } from '../../interfaces/component';\nimport payment from './variants';\n\nexport const Link = forwardRef((props, ref) => {\n const { link } = payment();\n const { href, text, onClick, e2e = null } = props;\n\n return (\n \n {text}\n \n );\n});\n\nLink.displayName = 'Link'; \nexport default Link;\n","import { useAppSelector } from '../../hooks';\nimport { getConfig } from '../../store/slices/config';\nimport { loader as variants } from './variants';\ninterface PaymentLoaderProps {\n texts?: Array;\n title?: string;\n}\n\nexport const PaymentLoader = ({ texts = [], title = '' }: PaymentLoaderProps) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const {\n wrapper,\n inner,\n dots,\n dotsIn,\n icon,\n progressCheckmark,\n panelTitle,\n spinningTexts,\n filmContainer,\n film\n } = variants({ theme });\n return (\n \n
\n
\n \n
\n
\n\n
\n \n \n \n \n \n \n

{title}

\n
\n\n
\n
\n {texts.map((txt) => (\n
\n {txt}\n
\n ))}\n
\n
\n
\n );\n};\n\nexport default PaymentLoader;\n","import { MouseEvent } from 'react';\n\nimport { useAppSelector } from '../../hooks';\nimport { Overlay } from '../Overlay';\nimport { CloseButton, PaymentFooter, PaymentHead, PaymentLoader, } from '../Payment';\nimport { wrapper } from '../Payment/variants';\n\nexport const PaymentScene = ({ onClose }: { onClose: (e: MouseEvent) => void }) => {\n const { displayPlanPrice, billingFrequencyTmsg } = useAppSelector((state) => state.meta.pd);\n const { translations, themeId: theme } = useAppSelector((state) => state.config);\n const { base } = wrapper({ theme });\n\n return (\n (\n
\n \n \n \n \n \n
\n \n
\n \n
\n
\n )\n );\n};\n\nexport default PaymentScene;\n","import { tv } from 'tailwind-variants';\n\nexport const streamBase = /* tw*/ tv({\n slots: {\n base: 'tw--pt-10 tw--w-full tw--h-full tw--pb-5 tw--px-5 tw--overflow-y-scroll tw--flex tw--flex-col-reverse tw--translate-z-0',\n second: 'tw--mt-0 tw--mb-auto',\n date: 'tw--text-center tw--text-sm tw--pb-[5px] tw--opacity-40'\n },\n variants: {\n theme: {\n light: {\n base: 'tw--text-light-zephyr-100 tw--font-medium',\n },\n dark: {\n base: 'tw--text-dark-zephyr-100'\n }\n }\n }\n});\n\nexport const streamHead = /* tw*/ tv({\n slots: {\n base: 'tw--flex tw--flex-col tw--items-center tw--w-full tw--mx-auto tw--pt-5 tw--pb-10',\n title: 'tw--pb-[30px] tw--max-w-[400px] tw--text-center tw--mx-[30px] select-none',\n },\n variants: {\n theme: {\n light: { title: 'tw--font-medium' },\n dark: { title: '' },\n }\n }\n});\n\nexport const streamRow = /* tw*/ tv({\n slots: {\n base: 'tw--grid tw--break-words',\n },\n});\n\nexport const flickerEffect = /* tw */ tv({\n slots: {\n base: 'after:tw--inline-block after:tw--ml-1 after:tw--h-4 after:tw--w-1 select-none',\n },\n variants: {\n isTyping: {\n true: 'after:tw--animate-blink',\n false: 'after:tw--hidden'\n },\n theme: {\n light: 'after:tw--bg-light-zephyr-100',\n dark: 'after:tw--bg-dark-zephyr-100'\n }\n }\n});\n\nexport const streamBubble = /* tw*/ tv({\n slots: {\n base: 'tw--relative tw--max-w-[375px] tw--whitespace-pre-wrap tw--rounded-[20px] tw--mb-5 tw--space-y-5',\n action: 'tw--absolute tw--bottom-[-16px] tw--right-[-10px]',\n separator: 'tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--w-fit tw--ml-auto tw--mr-0'\n },\n variants: {\n theme: {\n light: {\n action: 'tw--text-light-seraph',\n base: 'tw--font-medium',\n },\n dark: {\n action: 'tw--text-dark-seraph',\n },\n },\n type: {\n assistant: {\n base: 'tw--justify-self-start',\n },\n user: {\n base: 'tw--justify-self-end',\n },\n },\n },\n compoundSlots: [\n {\n slots: ['base'],\n theme: 'light',\n type: 'assistant',\n class: 'tw--bg-light-lumina tw--px-[15px] tw--py-[11px]',\n },\n {\n slots: ['base'],\n theme: 'dark',\n type: 'assistant',\n class: 'tw--bg-dark-lumina tw--px-[15px] tw--py-[11px]',\n },\n {\n slots: ['separator'],\n theme: 'dark',\n type: 'user',\n class: 'tw--bg-dark-seraph'\n },\n {\n slots: ['separator'],\n theme: 'light',\n type: 'user',\n class: 'tw--bg-light-seraph tw--text-white'\n },\n ],\n});\n\nexport const ellipsis = tv({\n slots: {\n dotFirst: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave',\n dotSecond: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay',\n dotThird: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay-2',\n },\n compoundSlots: [{\n slots: ['dotFirst', 'dotSecond', 'dotThird'],\n theme: 'light',\n class: 'tw--bg-light-zephyr-100',\n },\n {\n slots: ['dotFirst', 'dotSecond', 'dotThird'],\n theme: 'dark',\n class: 'tw--bg-dark-zephyr-100',\n }]\n});\n\nexport default { streamBase, streamHead, streamRow, streamBubble, ellipsis };\n","import { useAppSelector } from '../../hooks';\nimport { getConfig } from '../../store/slices/config';\nimport { ellipsis as variant } from './variants';\n\nexport const Ellipsis = () => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { dotFirst, dotSecond, dotThird } = variant({ theme });\n return (\n
\n \n \n \n
\n );\n};\n\nexport default Ellipsis;\n","// DEV Note: will be deprecated, replace with env vars\nexport const STORAGE_KEY = 'history';\nexport const CHAT_SEEN_KEY = 'chatSeen';\nexport const LINK_CLICKED_KEY = 'linkClickedFromChat';\nexport const CHAT_FINISHED_TIMESTAMP = 'chatConversationFinishedTimeStamp';\nexport const ALREADY_REGISTERED_KEY = 'showAlreadyRegisteredUser';\nexport const SHOW_PAYMENT_BUTTON_KEY = 'showPaymentButton';\nexport const SOCKET_IO_URL = 'http://localhost:5000';\nexport const UNSENT_MESSAGES_KEY = 'unsent';\nexport const GO_THROUGH_QUIZ_KEY = 'hasToGoThroughQuiz';\nexport const EXISTING_PRODUCT_LINK_KEY = 'existingProductLink';\nexport const CID = 'cid';\nexport const STORING_CHECKER_INTERVAL = 1000;\nexport const SCROLL_STOP_CLASS = 'scroll-stop';\nexport const SUPPORT_PURPOSE = 'support';\nexport const SPECIAL_MERCHANT = 'MERCHANT_SITE_URL';\nexport const SPECIAL_SUPPORT_TICKET = 'NEW_SUPPORT_TICKET_URL';\nexport const CLOSE_AFTER_TIMEOUT = 500;\nexport const DEFAULT_CLOSE_HREF = '/';\nexport const TYPING_TIMEOUT = 3000;\n","export const config = {\n transports: ['websocket'],\n upgrade: false,\n pingInterval: 1000 * 60 * 5,\n pingTimeout: 1000 * 60 * 3,\n secure: true,\n reconnect: true,\n};\n\nexport default { config };\n","import { AssistantRecord } from '../interfaces/index';\nimport { getQueryParam, uuidV4 } from '../utils';\nimport { Definition, QueryParams, Roles } from './enums';\nimport { SPECIAL_MERCHANT, SPECIAL_SUPPORT_TICKET } from './env';\nimport { colors as baseThemeColors } from './themes/base';\nexport { Events, Roles } from './enums';\nexport { config } from './socket';\n\nexport const colors = {\n white: '#ffffff',\n black: '#000000',\n 'muted-blue': 'rgba(15, 14, 30, 0.6)',\n ...baseThemeColors,\n};\n\nexport const initialMessage = [\n {\n id: uuidV4(),\n role: Roles.assistant,\n time: new Date().getTime(),\n content: [\n { 'type': 'text', 'text': 'See this picture', 'sequence': 2 },\n { 'type': 'text', 'text': 'See this picture', 'sequence': 2 },\n { 'type': 'text', 'text': 'My favorite search engine is [Duck Duck Go](https://duckduckgo.com \"The best search engine for privacy\").', 'sequence': 2 },\n {\n type: 'image',\n image: { url: 'https://static.boredpanda.com/blog/wp-content/uploads/2016/08/wet-dogs-before-after-bath-fb6__700-png.jpg' },\n sequence: 1,\n },\n {\n type: 'video',\n video: { url: 'https://www.youtube.com/embed/ZwKhufmMxko' },\n sequence: 1,\n }\n ]\n },\n {\n id: uuidV4(),\n role: Roles.assistant,\n time: new Date().getTime(),\n content: [\n { 'type': 'text', 'text': 'Do you want to lose weight?', 'sequence': 2 },\n { 'type': 'buttons', 'sequence': 1, 'buttons': [{ 'value': 'Yes', 'sequence': 1, 'text': 'Yes' }, { 'value': 'No', 'sequence': 2, 'text': 'No' }] }\n ]\n },\n {\n id: uuidV4(),\n role: Roles.assistant,\n time: new Date().getTime(),\n content: [\n { 'type': 'text', 'text': 'Do you want to lose weight?', 'sequence': 2 },\n ]\n },\n];\ninterface InitiationConfig { id: string, purpose?: string, close: { href?: string, visible?: boolean } }\n\nexport const chat = ({ id, purpose, close }: InitiationConfig) => ({\n meta: {\n cid: localStorage.getItem('__cid') || id,\n systemType: 'test',\n region: null,\n pd: {\n subscriberBillingFrequency: 'Billed every {1} month(s)',\n oneTimer: 'Total price to be charged',\n billingFrequencyTmsg: '',\n },\n marketing: {\n utmParams: { utm_chat: getQueryParam(QueryParams.chat) },\n lastUtmParams: { utm_chat: getQueryParam(QueryParams.chat) },\n screen: {\n width: 2084,\n height: 1608,\n }\n },\n eid: '23c7cdcf-4d90-4ea1-aab0-c73f8426dc1d_PageView_1694521420366',\n },\n app: {\n aiProfile: {\n name: 'Meal Mentor',\n role: 'AI-powered nutritionist',\n imgSrc: 'https://storage.1forfit.com/4oZrkOwbOQcSIGJopBG5qsf0CmBbVDKDqflzEkXq.jpg',\n welcome: 'Welcome to our live support. We\\'re here to understand your requirements and suggest the best Keto diet suited for you.',\n initialMessage\n },\n chatUrl: 'https://chat-ws.test',\n purpose: purpose || 'default',\n themeId: 'light',\n translations: {\n emailPlaceholder: 'Please enter your email',\n tm526: 'Continue to my plan',\n tm715: 'Enter new email',\n tm716: 'Entered email already exists, choose below to proceed',\n tm530: 'Take the quiz',\n tm1224: 'Payment in progress...',\n tm1226: 'Payment succeeded!',\n paymentHeaderTxt1: 'SECURITY verified',\n paymentHeaderTxt2: 'secured payments',\n loaderTexts: [\n 'We securely lock up your payment details.',\n 'Details zoom to the payment center.',\n 'Payment center requests our bank to process.',\n 'Our bank contacts your card network.',\n 'Card network asks your bank for approval.',\n 'Your bank reviews funds or credit.',\n 'Decision travels back to us.',\n 'Waiting your payment to be verified and complete.'\n ],\n payButton: 'Secure payment',\n ctaTextContent: 'Create Your Menu!',\n mealButton: 'Create your meal plan',\n error: 'Oops something went wrong.',\n tm505: 'Please enter valid email address',\n supportButton: 'backEndVars.supportButton',\n merchantButton: 'backEndVars.merchantButton',\n },\n close: {\n href: close.href || '/',\n visible: close.visible || false,\n }\n },\n specialUrls: {\n [SPECIAL_MERCHANT]: '/',\n [SPECIAL_SUPPORT_TICKET]: '/'\n }\n});\n\nexport const paymentData = {\n amount: '29.90',\n amountInUSD: 29.9,\n frequency: 1,\n frequencyInMonths: 1,\n billingOptionType: 'subscription',\n isDisplayPricePlan: true,\n displayPlanPrice: '$29.90'\n};\n\nexport const getUnifiedSequence = (current: Array, incoming: AssistantRecord) => {\n return current.map((record: AssistantRecord) => {\n const hasMatch = record.sequence === incoming.sequence && record.type === incoming.type;\n\n if (hasMatch && record.type === Definition.text && incoming.text) {\n return { ...record, text: record.text + incoming.text }\n }\n\n if (hasMatch && record.type === Definition.buttons && incoming?.buttons?.length && record?.buttons?.length) {\n return { ...record, buttons: [...record.buttons, ...incoming.buttons] }\n }\n\n return record;\n })\n};\n\nexport default { colors };\n","function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a(n,r){return 2===o(n)?n.get(r):n[r]}function f(n,r,t){var e=o(n);2===e?n.set(r,t):3===e?n.add(t):n[r]=t}function c(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0)),n}function h(){n(2)}function y(n){return null==n||\"object\"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function m(n,r){tn[n]||(tn[n]=r)}function _(){return\"production\"===process.env.NODE_ENV||U||n(0),U}function j(n,r){r&&(b(\"Patches\"),n.u=[],n.s=[],n.v=r)}function g(n){O(n),n.p.forEach(S),n.p=null}function O(n){n===U&&(U=n.l)}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.g=!0}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.O||b(\"ES5\").S(e,r,o),o?(i[Q].P&&(g(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b(\"Patches\").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),g(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o,u=o,a=!1;3===e.i&&(u=new Set(o),o.clear(),a=!0),i(u,(function(r,i){return A(n,e,o,r,i,t,a)})),x(n,o,!1),t&&n.u&&b(\"Patches\").N(e,t,n.u,n.s)}return e.o}function A(e,i,o,a,c,s,v){if(\"production\"!==process.env.NODE_ENV&&c===o&&n(5),r(c)){var p=M(e,c,s&&i&&3!==i.i&&!u(i.R,a)?s.concat(a):void 0);if(f(o,a,p),!r(p))return;e.m=!1}else v&&o.add(c);if(t(c)&&!y(c)){if(!e.h.D&&e._<1)return;M(e,c),i&&i.A.l||x(e,c)}}function x(n,r,t){void 0===t&&(t=!1),!n.l&&n.h.D&&n.m&&d(r,t)}function z(n,r){var t=n[Q];return(t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t)}}function k(n){n.P||(n.P=!0,n.l&&k(n.l))}function E(n){n.o||(n.o=l(n.t))}function N(n,r,t){var e=s(r)?b(\"MapSet\").F(r,t):v(r)?b(\"MapSet\").T(r,t):n.O?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b(\"ES5\").J(r,t);return(t?t.A:_()).p.push(e),e}function R(e){return r(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=o(r);if(u){if(!u.P&&(u.i<4||!b(\"ES5\").K(u)))return u.t;u.I=!0,e=D(r,c),u.I=!1}else e=D(r,c);return i(e,(function(r,t){u&&a(u.t,r)===t||f(e,r,n(t))})),3===c?new Set(e):e}(e)}function D(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function F(){function t(n,r){var t=s[n];return t?t.enumerable=r:s[n]=t={configurable:!0,enumerable:r,get:function(){var r=this[Q];return\"production\"!==process.env.NODE_ENV&&f(r),en.get(r,n)},set:function(r){var t=this[Q];\"production\"!==process.env.NODE_ENV&&f(t),en.set(t,n,r)}},t}function e(n){for(var r=n.length-1;r>=0;r--){var t=n[r][Q];if(!t.P)switch(t.i){case 5:a(t)&&k(t);break;case 4:o(t)&&k(t)}}}function o(n){for(var r=n.t,t=n.k,e=nn(t),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=r[o];if(void 0===a&&!u(r,o))return!0;var f=t[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return!0}}var v=!!r[Q];return e.length!==nn(r).length+(v?0:1)}function a(n){var r=n.k;if(r.length!==n.t.length)return!0;var t=Object.getOwnPropertyDescriptor(r,r.length-1);if(t&&!t.get)return!0;for(var e=0;e1?t-1:0),o=1;o1?t-1:0),o=1;o=0;e--){var i=t[e];if(0===i.path.length&&\"replace\"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b(\"Patches\").$;return r(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un,fn=an.produce,cn=an.produceWithPatches.bind(an),sn=an.setAutoFreeze.bind(an),vn=an.setUseProxies.bind(an),pn=an.applyPatches.bind(an),ln=an.createDraft.bind(an),dn=an.finishDraft.bind(an);export default fn;export{un as Immer,pn as applyPatches,K as castDraft,$ as castImmutable,ln as createDraft,R as current,J as enableAllPlugins,F as enableES5,C as enableMapSet,T as enablePatches,dn as finishDraft,d as freeze,L as immerable,r as isDraft,t as isDraftable,H as nothing,e as original,fn as produce,cn as produceWithPatches,sn as setAutoFreeze,vn as setUseProxies};\n//# sourceMappingURL=immer.esm.js.map\n","import { createSlice, Draft,PayloadAction } from '@reduxjs/toolkit';\nimport produce from 'immer';\n\nimport { getUnifiedSequence } from '../../config';\nimport { Definition, QueryParams, Roles } from '../../config/enums';\nimport {\n AssistantHistoryDataFiller,\n AssistantHistoryInitialMessage,\n AssistantRecord,\n PredefinedMessagePayload,\n SocketHistoryRecord,\n UserHistoryDataFiller,\n} from '../../interfaces';\nimport { ChatState } from '../../interfaces/store';\nimport { getQueryParam, uuidV4 } from '../../utils';\nimport { chat as initialState } from '../initialState';\n\nconst configSlice = createSlice({\n name: 'chat',\n initialState,\n reducers: {\n setOutgoing(state, { payload }: PayloadAction) {\n state.outgoing = {\n term: getQueryParam(QueryParams.chat),\n user_id: localStorage.getItem('__cid') || '',\n role: Roles.user,\n message: payload,\n };\n },\n resetOutgoing(state) {\n state.outgoing = initialState.outgoing;\n },\n setExistingHistory(state, { payload }: PayloadAction>) {\n return produce(state, (draft) => {\n // server has LESS or EQUAL data than frontend -> update the status to unsent\n if (state.historyIds.length >= payload.length) {\n const unsentMessages = state.historyIds.filter((id) => !payload.find((record) => record.id === id));\n unsentMessages.forEach(\n (id) =>\n (draft.historyData[id].content = draft.historyData[id].content.map((record) => ({\n ...record,\n sent: false,\n resend: true,\n }))),\n );\n return;\n }\n\n draft.historyIds = payload.map(({ id }) => id);\n draft.historyData = payload.reduce(\n (prev, current) => ({\n ...prev,\n [current.id]: current\n }),\n {},\n );\n });\n },\n addPredefinedAssistantMessage(\n state,\n { payload }: PayloadAction\n ) {\n const id = uuidV4();\n return produce(state, (draft: Draft): void => {\n draft.historyIds.push(id);\n draft.historyData[id] = {\n id,\n role: Roles.assistant,\n content: [\n { type: Definition.text, text: payload.content, sequence: 1 },\n { type: Definition.buttons, buttons: payload.buttons || [], sequence: 2 },\n ],\n };\n });\n },\n fillAssistantHistoryData(state, { payload }: PayloadAction) {\n return produce(state, (draft: Draft) => {\n const id = payload.id;\n\n if (!draft.historyData[id]) {\n draft.historyData[id] = { id, role: Roles.assistant, content: [] };\n draft.historyIds.push(id);\n return;\n }\n\n if (!payload.content) {\n return;\n }\n\n const dataType = payload.content.type;\n const data = {\n sequence: payload.sequence || 1,\n type: dataType,\n [dataType]: payload.content[payload.content.type],\n };\n\n const hasDuplicatedSequenceAndType = draft.historyData[id].content.some(\n (record) => record.sequence === data.sequence && record.type === data.type,\n );\n\n if (hasDuplicatedSequenceAndType) {\n draft.historyData[id].content = getUnifiedSequence(\n draft.historyData[id].content as Array,\n data,\n );\n return;\n }\n\n draft.historyData[id].content.push(data);\n });\n },\n fillUserHistoryData(\n state,\n { payload: { id, content } }: PayloadAction\n ) {\n return produce(state, (draft: Draft) => {\n let belongsTo;\n\n if (content.groupId) {\n Object.entries(draft.historyData).forEach(([key, value]) => {\n if (value.content.find((el) => el.groupId === content.groupId)) {\n belongsTo = key;\n }\n });\n }\n\n if (belongsTo) {\n // this is due to keyboard interaction we send messages after timeout\n const userMessageRecord = draft.historyData[belongsTo];\n userMessageRecord.content.push(content);\n return;\n }\n\n if (!draft.historyData[id]) {\n draft.historyData[id] = { id, role: Roles.user, content: [content] };\n draft.historyIds.push(id);\n }\n });\n },\n fillInitialMessage(\n state,\n { payload }: PayloadAction\n ) {\n state.historyIds.push(payload.id);\n state.historyData[payload.id] = {\n id: payload.id,\n role: Roles.assistant,\n time: new Date().getTime(),\n content: payload.content,\n };\n },\n setIsLoading(state) {\n state.isLoading = true;\n },\n resetIsLoading(state) {\n state.isLoading = initialState.isLoading;\n },\n setTypingTimeoutExpired(state, { payload }: PayloadAction) {\n state.typingTimeoutExpired = payload;\n },\n setConnected(state, { payload }: PayloadAction) {\n state.connected = payload;\n },\n setClosed(state) {\n state.closed = true;\n },\n hideResendIcon(state, { payload }: PayloadAction<{ itemId: string }>) {\n return produce(state, (draft: Draft) => {\n draft.historyData[payload.itemId].content = draft.historyData[payload.itemId].content.map((record) => ({\n ...record,\n sent: true,\n resend: false,\n }));\n });\n },\n showResendIcon(state, { payload }: PayloadAction<{ itemId: string }>) {\n return produce(state, (draft: Draft) => {\n draft.historyData[payload.itemId].content = draft.historyData[payload.itemId].content.map((record) => ({\n ...record,\n sent: false,\n resend: true,\n }));\n });\n },\n setLastGroupPointer(state, { payload }: PayloadAction) {\n state.lastGroupId = payload;\n },\n resendMessage(state, { payload }) {\n // empty - used only to listen in the middleware for changes\n },\n setError(state, { payload }: PayloadAction) {\n state.error = payload;\n },\n resetError(state) {\n state.error = initialState.error;\n },\n setIsStreaming(state, { payload }: PayloadAction) {\n state.isStreaming = payload;\n },\n resetHistory(state) {\n state.historyIds = initialState.historyIds;\n state.historyData = initialState.historyData;\n },\n },\n});\n\nexport const getChat = (state: { chat: ChatState }) => state.chat;\nexport const userMessageFindOne = (state: { chat: ChatState }) =>\n state.chat.historyIds.find((historyId) => state.chat.historyData[historyId].role === Roles.user);\nexport const sortBySequence = (a: AssistantRecord, b: AssistantRecord) => a.sequence - b.sequence;\n\nexport const {\n setOutgoing,\n resetOutgoing,\n setExistingHistory,\n addPredefinedAssistantMessage,\n setIsLoading,\n resetIsLoading,\n setLastGroupPointer,\n setTypingTimeoutExpired,\n setError,\n resetError,\n setConnected,\n setClosed,\n hideResendIcon,\n showResendIcon,\n resendMessage,\n setIsStreaming,\n fillAssistantHistoryData,\n fillUserHistoryData,\n resetHistory,\n fillInitialMessage,\n} = configSlice.actions;\n\nexport default configSlice.reducer;\n","import { createSlice } from '@reduxjs/toolkit';\n\nimport { IntentionsState } from '../../interfaces/store';\nimport { intentions as initialState } from '../initialState';\n\nconst intentionsSlice = createSlice({\n name: 'intentions',\n initialState,\n reducers: {\n setEmail(state, { payload }) {\n state.email.current = payload;\n },\n setEmailSuccess(state, { payload }) {\n state.email.success = payload;\n },\n setEmailError(state, { payload }) {\n state.email.error = payload;\n },\n setIsEmailLoading(state, { payload }) {\n state.email.isLoading = payload;\n },\n setIsPaymentButtonVisible(state, { payload }) {\n state.payment.isButtonVisible = payload;\n },\n setPaymentFormVisibility(state, { payload }) {\n state.payment.isFormVisible = payload;\n },\n setIsPaymentSuccessful(state, { payload }) {\n state.payment.isSuccessful = payload;\n },\n setPaymentIntentError(state, { payload }) {\n state.payment.error = payload;\n },\n setLink(state, { payload }) {\n state.link = payload;\n },\n },\n});\n\nexport const getEmailIntentions = (state: { intentions: IntentionsState }) => state.intentions.email;\nexport const getPaymentIntentions = (state: { intentions: IntentionsState }) => state.intentions.payment;\nexport const getPaymentSuccess = (state: { intentions: IntentionsState }) => state.intentions.payment.isSuccessful;\nexport const getLinkIntentions = (state: { intentions: IntentionsState }) => state.intentions.link;\n\nexport const {\n setEmailSuccess,\n setIsPaymentSuccessful,\n setPaymentFormVisibility,\n setEmailError,\n setIsEmailLoading,\n setIsPaymentButtonVisible,\n setPaymentIntentError,\n setEmail,\n setLink\n} = intentionsSlice.actions;\n\nexport default intentionsSlice.reducer;\n","import { Roles } from '../config';\nimport { SUPPORT_PURPOSE } from '../config/env';\nimport { getChat } from '../store/slices/chat';\nimport { getConfig } from '../store/slices/config';\nimport { getEmailIntentions, getPaymentIntentions } from '../store/slices/intentions';\nimport { getMeta } from '../store/slices/meta';\nimport { useAppSelector } from '.';\n\nexport const useFootProps = () => {\n const { cid, systemType, marketing, pd } = useAppSelector(getMeta);\n const { translations, purpose, specialUrls } = useAppSelector(getConfig);\n const { isLoading, isStreaming } = useAppSelector(getChat);\n const { error: streamError } = useAppSelector((store) => store.chat);\n const storedLink = useAppSelector((store) => store.intentions.link);\n const { error: emailError, current: currentEmail } = useAppSelector(getEmailIntentions);\n const {\n isFormVisible: isPaymentFormVisible,\n error: paymentIntentError,\n isSuccessful: paymentSuccess\n } = useAppSelector(getPaymentIntentions);\n const error = streamError || emailError || paymentIntentError;\n const staticProps = {\n systemType,\n marketing,\n error,\n cid,\n isLoading,\n currentEmail,\n translations,\n pd,\n isStreaming,\n isPaymentButtonVisible: false,\n isPaymentFormVisible: false,\n isEmailFormVisible: false,\n isResponseFormVisible: false,\n ctaText: '',\n ctaHref: '',\n };\n const { historyData, historyIds } = useAppSelector(getChat);\n const lastMsgId = [...historyIds].pop();\n const lastMsg = lastMsgId && historyData[lastMsgId];\n const isLastAssistantMsg = lastMsg && lastMsg.role === Roles.assistant;\n const link = isLastAssistantMsg && storedLink;\n const noButtonChoices = !(lastMsg && lastMsg?.content.find((m) => m.buttons));\n const hasPaymentIntent = lastMsg && lastMsg?.content.find((m) => m.payment);\n const hasEmailIntent = lastMsg && lastMsg?.content.find((m) => m.email);\n\n if (isLastAssistantMsg && hasPaymentIntent) {\n return {\n ...staticProps,\n isPaymentButtonVisible: true,\n };\n }\n\n if (isLastAssistantMsg && hasEmailIntent) {\n return {\n ...staticProps,\n isEmailFormVisible: true,\n isPaymentFormVisible,\n };\n }\n\n if (paymentSuccess) {\n return {\n ...staticProps,\n ctaText: translations.ctaTextContent,\n ctaHref: '/',\n isPaymentFormVisible,\n };\n }\n\n const message = lastMsg && lastMsg?.content?.find((m) => m.special);\n if (isLastAssistantMsg && message && message?.special) {\n return {\n ...staticProps,\n ctaText: specialUrls[message.special].includes('merchant') ? translations.merchantButton : translations.supportButton,\n ctaHref: specialUrls[message.special],\n };\n }\n\n if (link && purpose === SUPPORT_PURPOSE) {\n return {\n ...staticProps,\n isResponseFormVisible: true,\n };\n }\n\n const isResponseFormVisible = lastMsg && !link && !isLoading && (noButtonChoices || lastMsg?.role === Roles.user);\n\n return {\n ...staticProps,\n ctaText: translations.mealButton,\n ctaHref: link,\n isResponseFormVisible,\n };\n};\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n","import { EventEmitter } from 'node:events';\n\nimport { Intentions } from '../config/enums';\n\nexport const intent = {\n type: Intentions,\n core: new EventEmitter()\n};\n\nexport default intent;\n","/* eslint-disable spaced-comment */\nimport { tv, type VariantProps } from 'tailwind-variants';\n\nexport const basic = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none',\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-glazeBg tw--text-light-glazeText tw--border-light-seraph tw--font-medium',\n },\n dark: {\n base: 'tw--bg-dark-glazeBg tw--text-dark-glazeText tw--border-dark-glaze',\n },\n },\n },\n});\n\nexport const icon = /*tw*/ tv({\n slots: {\n base: 'tw--text-[inherit]',\n },\n variants: {\n theme: {\n light: { base: 'tw--text-light-status' },\n dark: { base: 'tw--text-dark-seraph' },\n },\n outlined: {\n true: 'tw--p-0.5 tw--bg-white tw--rounded-full tw--shadow',\n false: 'tw--bg-[transparent]',\n },\n },\n});\n\nexport type BasicVariants = VariantProps;\nexport type IconVariants = VariantProps;\n","import { useAppSelector } from '../../hooks';\nimport { ButtonProps } from '../../interfaces/component';\nimport { getConfig } from '../../store/slices/config';\nimport { basic as variant } from './variants';\n\nexport const Btn = ({ text = '', onClick, e2e }: ButtonProps) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n \n {text}\n \n );\n};\n\nexport default Btn;\n","import { useAppSelector } from '../../hooks';\nimport { IconProps } from '../../interfaces/component';\nimport { getConfig } from '../../store/slices/config';\nimport { icon as variant } from './variants';\n\nexport const IconBtn = ({ children, outlined = false, onClick, e2e = null, disabled = false }: IconProps) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme, outlined });\n\n return (\n \n {children}\n \n );\n};\n\nexport default IconBtn;\n","import { tv } from 'tailwind-variants';\n\nexport const basic = /* tw*/ tv({\n slots: {\n base: 'tw--relative tw--flex tw--items-center',\n input: 'tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] focus:tw--outline-none',\n loader: 'tw--absolute tw--right-4 tw--top-[50%] tw--translate-y-[-50%]',\n spin: 'tw--block tw--w-6 tw--h-6 tw--border-solid tw--border-[5px] tw--rounded-3xl tw--animate-rotate tw--m-auto'\n },\n variants: {\n theme: {\n light: {\n base: '',\n input: 'tw--bg-light-lumina tw--text-light-zephyr-100 tw--font-semibold focus:!tw--bg-light-lumina',\n loader: '',\n spin: 'tw--border-light-zephyr-200 tw--border-t-light-zephyr-600 tw--border-l-light-zephyr-600',\n },\n dark: {\n base: '',\n input: 'tw--bg-dark-lumina tw--text-dark-zephyr-100 tw--font-bold focus:!tw--bg-dark-lumina',\n loader: '',\n spin: 'w--border-dark-zephyr-200 tw--border-t-dark-zephyr-600 tw--border-l-dark-zephyr-600',\n },\n },\n },\n});\n\nexport default basic;\n","import { forwardRef } from 'react';\n\nimport { useAppSelector } from '../../hooks';\nimport { BasicInputProps } from '../../interfaces/component';\nimport { getConfig } from '../../store/slices/config';\nimport { basic as variant } from './variants';\n\nexport const Input = forwardRef((props, ref) => {\n const {\n disabled,\n e2e,\n isLoading,\n onChange,\n onKeyUp,\n placeholder,\n type,\n value,\n } = props;\n\n const { themeId: theme } = useAppSelector(getConfig);\n const { base, input, loader, spin } = variant({ theme });\n\n return (\n
\n \n\n {isLoading && (\n \n \n \n )}\n
\n );\n});\n\nInput.displayName = 'Input';\n\nexport default Input;\n","import { useEffect, useRef, useState } from 'react';\n\nimport { AllEvents } from '../../config/enums';\nimport { useAppDispatch, useAppSelector } from '../../hooks';\nimport { intent } from '../../services/intentions';\nimport { track } from '../../services/tracking';\nimport { getConfig } from '../../store/slices/config';\nimport { getEmailIntentions, setEmail, setIsEmailLoading } from '../../store/slices/intentions';\nimport { IconBtn } from '../Button';\nimport { Input } from '../Input/basic';\nimport { layoutFoot as variant } from '../Layout/variants';\n\nexport const EmailForm = () => {\n const dispatch = useAppDispatch();\n const meta = useAppSelector((state) => state.meta);\n const { themeId: theme, translations } = useAppSelector(getConfig);\n const { isLoading } = useAppSelector(getEmailIntentions);\n const { base, input, button } = variant({ theme });\n const [email, setCurrentEmail] = useState('');\n const inputElement = useRef(null);\n\n useEffect(() => {\n track({\n eventType: AllEvents.emailField,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n });\n\n setTimeout(() => {\n if (!inputElement.current) { return }\n inputElement.current.focus();\n }, 500);\n });\n\n const handleInputChange = (e: React.ChangeEvent) => {\n const currentValue = e.target.value.trim();\n setCurrentEmail(currentValue);\n };\n\n const handleFormSubmit = (e: React.FormEvent | React.MouseEvent) => {\n e.preventDefault();\n\n if (email === '') {\n return;\n }\n\n dispatch(setIsEmailLoading(true));\n dispatch(setEmail(email));\n intent.core.emit(intent.type.email, { email });\n setCurrentEmail('');\n };\n\n return (\n \n
\n \n
\n
\n \n \n \n \n \n
\n \n );\n};\n\nexport default EmailForm;\n","import { useEffect, useRef, useState } from 'react';\n\nimport { IconBtn } from '../../components/Button';\nimport { Input } from '../../components/Input';\nimport { Roles } from '../../config/enums';\nimport { useAppDispatch, useAppSelector } from '../../hooks';\nimport { fillUserHistoryData, getChat, setLastGroupPointer, setTypingTimeoutExpired } from '../../store/slices/chat';\nimport { getConfig } from '../../store/slices/config';\nimport { uuidV4 } from '../../utils';\nimport { layoutFoot as variant } from '../Layout/variants';\nimport { TYPING_TIMEOUT } from '../../config/env';\n\nexport const ResponseForm = () => {\n const dispatch = useAppDispatch();\n const { themeId: theme } = useAppSelector(getConfig);\n const { connected, isLoading } = useAppSelector(getChat);\n const { base, input, button } = variant({ theme });\n const [response, setCurrentResponse] = useState('');\n const [timerId, setTimerId] = useState(null);\n const groupId = useAppSelector((state) => state.chat.lastGroupId);\n const inputElement = useRef(null);\n\n useEffect(() => {\n setTimeout(() => {\n inputElement.current?.focus();\n }, 500);\n }, []);\n\n const handleInputChange = (e: React.ChangeEvent) => {\n setCurrentResponse(e.target.value);\n setTimerToSendMessage();\n };\n\n const handleFormSubmit = (e: React.FormEvent | React.MouseEvent) => {\n e.preventDefault();\n\n if (response.trim()) {\n dispatch(fillUserHistoryData({\n role: Roles.user,\n id: uuidV4(),\n sequence: 1,\n content: {\n sequence: 1, message: response, groupId, resend: false, sent: true\n }\n }));\n }\n\n setCurrentResponse('');\n setTimerToSendMessage();\n };\n\n const setTimerToSendMessage = () => {\n if (timerId) {\n clearTimeout(timerId);\n }\n const currentId = setTimeout(() => {\n dispatch(setTypingTimeoutExpired(true));\n dispatch(setLastGroupPointer(uuidV4()));\n }, TYPING_TIMEOUT);\n setTimerId(currentId);\n };\n\n return (\n \n
\n \n
\n
\n \n \n \n \n \n
\n \n );\n};\n\nexport default ResponseForm;\n","import { useEffect, useRef, useState } from 'react';\n\nimport { PaymentScene } from '../../components/Scenes/payment';\nimport { Ellipsis } from '../../components/Stream/ellipsis';\nimport { AllEvents } from '../../config/enums';\nimport { LINK_CLICKED_KEY } from '../../config/env';\nimport { useAppDispatch } from '../../hooks';\nimport { useFootProps } from '../../hooks/foot';\nimport intent from '../../services/intentions';\nimport { track } from '../../services/tracking';\nimport { addPredefinedAssistantMessage, setClosed } from '../../store/slices/chat';\nimport { setIsPaymentButtonVisible, setIsPaymentSuccessful, setPaymentFormVisibility, setPaymentIntentError } from '../../store/slices/intentions';\nimport { EmailForm, ResponseForm } from '../Form';\nimport { Link, PaymentButton } from '../Payment';\n\nexport const LayoutFoot = () => {\n const dispatch = useAppDispatch();\n const footState = useFootProps();\n const ctaAfterPayButton = useRef(null);\n const [disabled, setDisabled] = useState(false);\n\n const setIsPaymentContainerVisible = (isVisible: boolean): void => {\n dispatch(setPaymentFormVisibility(isVisible));\n };\n\n useEffect(() => {\n if (footState.isEmailFormVisible) {\n track({\n eventType: AllEvents.emailField,\n systemType: footState.systemType,\n utmParams: footState.marketing.lastUtmParams,\n customerUuid: footState.cid,\n email: footState.currentEmail\n });\n }\n }, [footState.isEmailFormVisible]);\n\n const onClosePaymentForm = (e: React.MouseEvent) => {\n e.currentTarget.disabled = true;\n intent.core.emit(intent.type.destroy);\n setIsPaymentContainerVisible(false);\n setDisabled(false);\n };\n\n const onPaymentSuccess = () => {\n dispatch(addPredefinedAssistantMessage({ content: footState.translations.tm1226 }));\n dispatch(setIsPaymentSuccessful(true));\n dispatch(setIsPaymentButtonVisible(false));\n setIsPaymentContainerVisible(false);\n track({\n eventType: AllEvents.linkProvided,\n systemType: footState.systemType,\n utmParams: footState.marketing.lastUtmParams,\n customerUuid: footState.cid,\n email: footState.currentEmail\n });\n setTimeout(() => {\n if (ctaAfterPayButton.current) {\n ctaAfterPayButton.current.click();\n }\n }, 7000);\n };\n\n const onError = (message: string): void => {\n dispatch(setPaymentIntentError(message));\n };\n\n const initializePaymentForm = () => {\n intent.core.emit(intent.type.payment, { setIsPaymentContainerVisible, onPaymentSuccess, onError });\n setDisabled(true);\n };\n\n const onClickCta = (e: React.MouseEvent) => {\n localStorage.setItem(LINK_CLICKED_KEY, e.currentTarget.href);\n track({\n eventType: AllEvents.linkClicked,\n systemType: footState.systemType,\n utmParams: footState.marketing.lastUtmParams,\n customerUuid: footState.cid,\n email: footState.currentEmail\n });\n dispatch(setClosed());\n };\n\n return (\n
\n {footState.error &&
{footState.error}
}\n {footState.isPaymentFormVisible && }\n {footState.isLoading && }\n {footState.ctaHref\n && (\n \n )}\n\n {!footState.isStreaming && footState.isEmailFormVisible && }\n {!footState.isStreaming && footState.isResponseFormVisible && }\n\n {footState.isPaymentButtonVisible && (\n \n )}\n
\n );\n};\n\nexport default LayoutFoot;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const profile = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--items-center tw--select-none',\n avatar: 'tw--rounded-full',\n info: '',\n name: '',\n role: '',\n imgWrapper: '',\n minimized: ''\n },\n variants: {\n theme: {\n light: {\n role: '',\n },\n dark: {\n role: '',\n },\n },\n orientation: {\n horizontal: {\n base: 'tw--flex-row tw--text-left',\n avatar: 'tw--shrink',\n name: 'tw--text-xl/7 tw--font-bold tw--leading-[30px]',\n info: 'tw--pl-[10px]'\n },\n vertical: {\n base: 'tw--flex-col tw--text-center',\n name: 'tw--text-[24px] tw--font-semibold',\n },\n },\n minimized: {\n true: '',\n false: '',\n },\n },\n compoundSlots: [\n {\n slots: ['role'],\n orientation: 'vertical',\n theme: 'light',\n class: 'tw--text-light-zephyr-600 tw--font-medium'\n },\n {\n slots: ['role'],\n orientation: 'horizontal',\n theme: 'light',\n class: 'tw--text-light-zephyr-800'\n },\n {\n slots: ['role'],\n orientation: 'vertical',\n theme: 'dark',\n class: 'tw--text-dark-zephyr-600'\n },\n {\n slots: ['role'],\n orientation: 'horizontal',\n theme: 'dark',\n class: 'tw--text-dark-zephyr-800'\n },\n {\n slots: ['imgWrapper'],\n orientation: 'horizontal',\n minimized: false,\n class: 'tw--relative tw--h-fit after:tw--absolute after:tw--w-[10px] after:tw--h-[10px] after:tw--bottom-[-2px] after:tw--left-[37px] after:tw--z-10 after:tw--rounded-full after:tw--bg-light-iota-dots'\n },\n {\n slots: ['avatar'],\n orientation: 'horizontal',\n minimized: false,\n class: 'tw--h-[50px]',\n },\n {\n slots: ['avatar'],\n orientation: 'vertical',\n minimized: false,\n class: 'tw--h-[60px]',\n },\n ],\n});\n\nexport default profile;\n","import { ScreenOrientation } from '../../config/enums';\nimport { useAppSelector } from '../../hooks';\nimport { ProfileProps } from '../../interfaces/component';\nimport { getConfig } from '../../store/slices/config';\nimport { profile as variant } from './variants';\n\nexport const Profile = ({ orientation = ScreenOrientation.horizontal, minimized = false }: ProfileProps) => {\n const { aiProfile, themeId: theme } = useAppSelector(getConfig);\n const { base, avatar, info, name, role, imgWrapper } = variant({ theme, orientation, minimized });\n\n return (\n
\n \n \n \n
\n
{aiProfile.name}
\n
{aiProfile.role}
\n
\n
\n );\n};\n\nexport default Profile;\n","import { MouseEvent } from 'react';\n\nimport { AllEvents } from '../../config/enums';\nimport { CLOSE_AFTER_TIMEOUT } from '../../config/env';\nimport { useAppDispatch, useHeadControls } from '../../hooks';\nimport { track } from '../../services/tracking';\nimport { setClosed } from '../../store/slices/chat';\nimport { IconBtn } from '../Button';\nimport { Profile } from '../Profile';\nimport { layoutHead as variant } from './variants';\n\nexport const LayoutHead = () => {\n const dispatch = useAppDispatch();\n const headState = useHeadControls();\n const { base } = variant({ theme: headState.theme });\n\n const onClick = (e: MouseEvent) => {\n e.currentTarget.disabled = true;\n track({\n eventType: AllEvents.closeClicked,\n systemType: headState.systemType,\n utmParams: headState.marketing.lastUtmParams,\n customerUuid: headState.cid,\n });\n setTimeout(() => {\n dispatch(setClosed());\n }, CLOSE_AFTER_TIMEOUT);\n };\n\n return (\n
\n \n {headState.closeVisible && (\n \n \n \n \n \n \n \n \n )}\n
\n );\n};\n\nexport default LayoutHead;\n","import { CHAT_SEEN_KEY, CID } from '../config/env';\n\n/**\n * Extracts a link from a given string and appends query parameters if specified.\n *\n * @param {string} link - The input string from which the link will be extracted.\n * @example constructLink('here is a link to a diet website https://usa.example.com', '12311231a2', hasQueryParams('https://usa.example.com'));\n * //output: https://usa.example.com/?utm_chat=salesmen-keto-redirect&chatSeen=true&cid=12311231a2\n * @returns {string} The extracted link with optional query parameters or `false` if no link is found.\n */\nexport const constructLink = (link: string): string => {\n const hasQueryParams = (url: string) => {\n // Regular expression pattern to match query parameters\n const pattern = /[?&]([^=#]+)=([^&#]*)/g;\n\n // Check if the pattern matches any query parameters\n return pattern.test(url);\n };\n\n // matching example: 'Secure site: https://www.example.com' will give [ https://www.example.com ]\n\n let search: string;\n\n if (window.location.search) {\n const searchParams = new URLSearchParams(window.location.search);\n\n searchParams.append(CHAT_SEEN_KEY, 'true');\n searchParams.append(CID, localStorage.getItem('__cid') || '');\n\n search = `/?${ searchParams}`;\n } else {\n search = '';\n }\n\n if (hasQueryParams(link)) {\n return link;\n }\n\n return link + search;\n};\n","import { MouseEvent,useEffect } from 'react';\n\nimport { AllEvents } from '../../config/enums';\nimport { LINK_CLICKED_KEY, SUPPORT_PURPOSE } from '../../config/env';\nimport { useAppDispatch, useAppSelector } from '../../hooks';\nimport { MarkdownLinkProps } from '../../interfaces/component';\nimport { track } from '../../services/tracking';\nimport { setClosed } from '../../store/slices/chat';\nimport { getConfig } from '../../store/slices/config';\nimport { setLink } from '../../store/slices/intentions';\nimport { getMeta } from '../../store/slices/meta';\nimport { constructLink } from '../../utils/formatting';\n\nexport const MarkdownLink = ({ properties }: MarkdownLinkProps) => {\n const { purpose } = useAppSelector(getConfig);\n const { cid, marketing, systemType } = useAppSelector(getMeta);\n const dispatch = useAppDispatch();\n const link = properties.href ? constructLink(properties.href) : '#';\n useEffect(() => {\n dispatch(setLink(link));\n });\n\n const onClick = (e: MouseEvent) => {\n if (purpose !== SUPPORT_PURPOSE) {\n localStorage.setItem(LINK_CLICKED_KEY, e.currentTarget.href);\n }\n \n track({\n eventType: AllEvents.linkClicked,\n systemType,\n utmParams: marketing.lastUtmParams,\n customerUuid: cid,\n });\n dispatch(setClosed());\n };\n\n return (\n {properties.href}\n \n );\n};\n\nexport default MarkdownLink;\n","import React, { useState } from 'react';\n\nconst extractVideoCode = (videoUrl: string) => {\n const pattern = /embed\\/(\\w+)/;\n const match = pattern.exec(videoUrl);\n\n if (match) {\n const videoCode = match[1];\n return videoCode;\n }\n\n return null;\n}\n\nexport const Iframe = React.memo(function Iframe({ url, title }: { url: string, title: string }) {\n const [isVisible, setIframeVisibility] = useState(false);\n\n const videoCode = extractVideoCode(url);\n\n const handleVideoClick = () => {\n setIframeVisibility(true);\n };\n\n return (\n isVisible\n ?\n \n :\n
\n \n
\n )\n});\n","import { tv } from 'tailwind-variants';\n\nexport const basic = /* tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none tw--text-center',\n },\n variants: {\n theme: {\n light: {\n base: 'tw--inline-block tw--bg-light-glaze tw--text-white',\n },\n dark: {\n base: 'tw--inline-block tw--bg-dark-glazeBg tw--text-dark-glazeText',\n },\n },\n },\n});\n\nexport const icon = /* tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--px-4 tw--py-2',\n },\n});\n","import { useAppSelector } from '../../hooks';\nimport { LinkProps } from '../../interfaces/component';\nimport { getConfig } from '../../store/slices/config';\nimport { basic as variant } from './variants';\n\nexport const Link = ({ text, href, onClick }: LinkProps) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n \n {text}\n \n );\n};\n\nexport default Link;\n","import { AllEvents, Roles } from '../../config/enums';\nimport { useAppDispatch, useAppSelector } from '../../hooks';\nimport { OptionsListProps } from '../../interfaces/index';\nimport { track } from '../../services/tracking';\nimport { fillUserHistoryData, setOutgoing, userMessageFindOne } from '../../store/slices/chat';\nimport { getMeta } from '../../store/slices/meta';\nimport { uuidV4 } from '../../utils';\nimport { Btn } from '../Button';\nimport { Link } from '../Link';\n\nexport const OptionList = ({ options = [] }: OptionsListProps) => {\n const dispatch = useAppDispatch();\n const meta = useAppSelector(getMeta);\n const isFirstUserMessage = !useAppSelector(userMessageFindOne);\n\n const setOption = (val: string, sequence: number) => {\n dispatch(fillUserHistoryData({ id: uuidV4(), sequence: 1, role: Roles.user, content: { sequence: 1, message: val, resend: false, sent: true, groupId: '' } }));\n dispatch(setOutgoing(val));\n if (isFirstUserMessage) {\n track({\n eventType: AllEvents.buttonClick + sequence,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n });\n }\n };\n\n const setMessage = (val: string) => {\n dispatch(fillUserHistoryData({\n id: uuidV4(),\n sequence: 1,\n role: Roles.user,\n content: {\n sequence: 1,\n message: val,\n resend: false,\n sent: true,\n groupId: ''\n }\n }));\n };\n\n return [...options].sort((a, b) => a.sequence - b.sequence).map(({ value, link, sequence, noStream }) => (\n link\n ? (\n \n )\n : (\n setMessage(value) : () => setOption(value, sequence)}\n e2e=\"option-button\"\n />\n )\n ));\n};\n\nexport default OptionList;\n","import React from 'react';\nimport Markdown from 'react-markdown';\n\nimport { Definition } from '../../config/enums';\nimport { useAppSelector } from '../../hooks';\nimport { AssistantProps } from '../../interfaces/component';\nimport { getChat, sortBySequence } from '../../store/slices/chat';\nimport { getConfig } from '../../store/slices/config';\nimport { getMeta } from '../../store/slices/meta';\nimport { uuidV4 } from '../../utils';\nimport MarkdownLink from '../Markdown/link';\nimport { Iframe } from '../Video';\nimport OptionList from './options';\nimport { flickerEffect } from './variants';\n\nconst Assistant = ({ message, itemId }: AssistantProps) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { isStreaming } = useAppSelector(getChat);\n const { pd } = useAppSelector(getMeta);\n const isLast = useAppSelector((state) => state.chat.historyIds.length - 1 === state.chat.historyIds.indexOf(itemId));\n const { base: baseFlicker } = flickerEffect({ isTyping: isStreaming && isLast, theme });\n const sortedContent = [...message.content].sort(sortBySequence);\n\n return (\n <>\n {sortedContent.map((it) => {\n if (it.type === Definition.text) {\n return (\n \n \n ; }\n }}\n >{it[it.type]}\n \n \n \n );\n }\n\n if (it.type === Definition.buttons && isLast) {\n return (\n
\n \n
\n );\n }\n\n if (it.type === Definition.video) {\n return (\n \n );\n }\n\n if (it.type === Definition.image) {\n return (\n \n );\n }\n\n if (it.type === Definition.payment) {\n return `${it[it.type]} ${pd.displayPlanPrice} ${pd.billingFrequencyTmsg}`;\n }\n\n if (it.type === Definition.email) {\n return it[it.type];\n }\n\n\n })}\n \n );\n};\n\nexport const MemoizedAssistant = React.memo(Assistant);\n\nexport default MemoizedAssistant;\n","import React from 'react';\n\nimport { Roles } from '../../config/enums';\nimport { useAppSelector } from '../../hooks';\nimport { UserMessageContent } from '../../interfaces';\nimport { getConfig } from '../../store/slices/config';\nimport { uuidV4 } from '../../utils';\nimport { User } from '../Stream';\nimport { MemoizedAssistant } from './assistant';\nimport { streamBubble as variant } from './variants';\n\nconst StreamBubble = ({ itemId }: { itemId: string }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const record = useAppSelector((state) => state.chat.historyData[itemId]);\n\n return (record && (\n
\n {record.role === Roles.assistant\n ? (\n \n )\n :\n [...record.content].map((record: UserMessageContent) => )\n }\n
\n ));\n};\n\nexport const MemoizedStreamBubble = React.memo(StreamBubble);\nexport default MemoizedStreamBubble;\n","import { Profile } from '../../components/Profile';\nimport { ScreenOrientation } from '../../config/enums';\nimport { useAppSelector } from '../../hooks';\nimport { getConfig } from '../../store/slices/config';\nimport { streamHead as variant } from './variants';\n\nexport const StreamHead = ({ titleTxt }: { titleTxt: string }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base, title } = variant({ theme });\n\n return (\n
\n {title &&
{titleTxt}
}\n \n
\n );\n};\n\nexport default StreamHead;\n","import { useAppSelector } from '../../hooks';\nimport { getConfig } from '../../store/slices/config';\nimport { formatDateByLocale, uuidV4 } from '../../utils';\nimport { MemoizedStreamBubble } from './bubble';\nimport { StreamHead } from './head';\nimport { streamBase, streamRow } from './variants';\n\nexport const StreamBase = () => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { aiProfile } = useAppSelector(getConfig);\n const historyIds = useAppSelector((state) => state.chat.historyIds || []);\n const firstMessage = useAppSelector((state) => state.chat.historyData[historyIds[0]]);\n const { base, second, date } = streamBase({ theme });\n const { base: baseRow } = streamRow({ theme });\n const time = formatDateByLocale(firstMessage?.time || new Date().getTime());\n\n return (\n
\n
\n \n {
{time}
}\n {historyIds.map((id: string) => (\n \n \n
\n ))}\n
\n \n );\n};\n\nexport default StreamBase;\n","import { IconBtn } from '../../components/Button';\nimport { Roles } from '../../config/enums';\nimport { useAppDispatch,useAppSelector } from '../../hooks';\nimport { UserProps } from '../../interfaces/component';\nimport { resendMessage } from '../../store/slices/chat';\nimport { getConfig } from '../../store/slices/config';\nimport { streamBubble as variant } from './variants';\n\nexport const User = ({ record }: UserProps) => {\n const dispatch = useAppDispatch();\n const { themeId: theme } = useAppSelector(getConfig);\n const { action, separator } = variant({ theme, type: Roles.user });\n\n const onResend = () => {\n dispatch(resendMessage(record));\n };\n\n return (\n
\n \n {record.message}\n \n {(record.resend && !record.sent) && (\n
\n onResend()}>\n \n \n \n \n \n
\n )}\n
\n );\n};\n\nexport default User;\n","import { useAppDispatch } from '../../hooks';\nimport { AppProps } from '../../interfaces/component';\nimport { setConfig, setPurpose, setSpecialUrls } from '../../store/slices/config';\nimport { setMeta } from '../../store/slices/meta';\nimport { LayoutBase, LayoutFoot,LayoutHead } from '../Layout';\nimport { StreamBase } from '../Stream';\n\nexport const AppBase = ({ config }: AppProps) => {\n const dispatch = useAppDispatch();\n dispatch(setMeta(config.meta));\n dispatch(setPurpose(config.app.purpose));\n dispatch(setSpecialUrls(config.specialUrls));\n dispatch(setConfig(config.app));\n\n return (\n }\n stream={}\n foot={}\n />\n );\n};\n\nexport default AppBase;\n","\"use strict\";\n\nexports.__esModule = true;\nexports.default = getStorage;\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction noop() {}\n\nvar noopStorage = {\n getItem: noop,\n setItem: noop,\n removeItem: noop\n};\n\nfunction hasStorage(storageType) {\n if ((typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) !== 'object' || !(storageType in self)) {\n return false;\n }\n\n try {\n var storage = self[storageType];\n var testKey = \"redux-persist \".concat(storageType, \" test\");\n storage.setItem(testKey, 'test');\n storage.getItem(testKey);\n storage.removeItem(testKey);\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') console.warn(\"redux-persist \".concat(storageType, \" test failed, persistence will be disabled.\"));\n return false;\n }\n\n return true;\n}\n\nfunction getStorage(type) {\n var storageType = \"\".concat(type, \"Storage\");\n if (hasStorage(storageType)) return self[storageType];else {\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"redux-persist failed to create sync storage. falling back to noop storage.\");\n }\n\n return noopStorage;\n }\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = createWebStorage;\n\nvar _getStorage = _interopRequireDefault(require(\"./getStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction createWebStorage(type) {\n var storage = (0, _getStorage.default)(type);\n return {\n getItem: function getItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.getItem(key));\n });\n },\n setItem: function setItem(key, item) {\n return new Promise(function (resolve, reject) {\n resolve(storage.setItem(key, item));\n });\n },\n removeItem: function removeItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.removeItem(key));\n });\n }\n };\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _createWebStorage = _interopRequireDefault(require(\"./createWebStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _default = (0, _createWebStorage.default)('local');\n\nexports.default = _default;","import { Middleware } from '@reduxjs/toolkit';\n\nimport { AllEvents, Roles } from '../config/enums';\nimport { STORING_CHECKER_INTERVAL } from '../config/env';\nimport { PaymentDataSetterProps } from '../interfaces';\nimport intent from '../services/intentions';\nimport { track } from '../services/tracking';\nimport { RootState } from '../store';\nimport {\n addPredefinedAssistantMessage,\n fillUserHistoryData,\n setOutgoing\n} from '../store/slices/chat';\nimport {\n setEmailError,\n setEmailSuccess,\n setIsEmailLoading,\n setLink,\n} from '../store/slices/intentions';\nimport { setMarketing, setPd } from '../store/slices/meta';\nimport { uuidV4 } from '../utils';\n\nexport const intentionsMiddleware: Middleware = (store) => (next) => {\n\n const setPaymentDataTranslationAccordingly = (data: PaymentDataSetterProps | string): PaymentDataSetterProps => {\n const { meta } = store.getState();\n const transformedData = {} as PaymentDataSetterProps;\n\n if (!meta.pd) {\n return transformedData;\n }\n\n if (typeof data === 'object' && 'billingOptionType' in data) {\n data.billingFrequencyTmsg =\n data.billingOptionType === 'one-time'\n ? meta.pd.oneTimer\n : meta.pd.subscriberBillingFrequency?.replace(\n '{1}',\n data.frequencyInMonths\n );\n data = { ...data, ...transformedData };\n return data;\n }\n\n return transformedData\n };\n\n intent.core.on(intent.type.emailSuccess, () => {\n const { meta, intentions } = store.getState();\n\n store.dispatch(setIsEmailLoading(false));\n store.dispatch(setEmailError(''));\n store.dispatch(\n fillUserHistoryData({\n id: uuidV4(),\n role: Roles.user,\n sequence: 1,\n content: {\n sequence: 1,\n message: intentions.email.current,\n resend: false,\n sent: true,\n groupId: '',\n },\n })\n );\n store.dispatch(setOutgoing(intentions.email.current));\n\n // DEV NOTE: setEmailSuccess this status is for us to know if mail is validated in the endpoint\n store.dispatch(setEmailSuccess(true));\n track({\n eventType: AllEvents.emailEntered,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current,\n });\n });\n\n intent.core.on(intent.type.emailError, (response) => {\n const { meta, intentions, config } = store.getState();\n const { tm716, tm526, tm715, tm505 } = config.translations;\n\n store.dispatch(setIsEmailLoading(false));\n\n if (response.status === 409) {\n store.dispatch(addPredefinedAssistantMessage({\n content: tm716,\n buttons: [\n { sequence: 1, id: 'opt-1', text: tm526, value: tm526, link: response.data.buttonLink, noStream: true },\n { sequence: 2, id: 'opt-2', text: tm715, value: tm715, link: '', noStream: true }\n ]\n }));\n\n track({\n eventType: AllEvents.emailExist,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current,\n });\n return;\n }\n\n if (response.status === 422) {\n store.dispatch(setEmailError(response.errors.email[0] || tm505));\n\n track({\n eventType: AllEvents.emailWrong,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current,\n });\n }\n });\n\n dataIntervalChecker('marketing', store, setMarketing);\n dataIntervalChecker(\n '__pd',\n store,\n setPd,\n setPaymentDataTranslationAccordingly\n );\n\n return (action) => {\n if (setLink.match(action) && action.payload) {\n const { meta, intentions } = store.getState();\n\n track({\n eventType: AllEvents.linkProvided,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n }\n next(action);\n };\n};\n\nconst dataIntervalChecker = (\n key: string,\n store: RootState,\n setValue: (data: PaymentDataSetterProps | string) => void,\n transformData?: (\n data: string | PaymentDataSetterProps\n ) => PaymentDataSetterProps\n) => {\n const intervalId = setInterval(() => {\n let storedItem: string | PaymentDataSetterProps =\n localStorage.getItem(key) || '';\n\n try {\n storedItem = JSON.parse(storedItem);\n } catch (e) {\n storedItem = localStorage.getItem(key) || '';\n }\n\n if (transformData && storedItem) {\n storedItem = transformData(storedItem);\n }\n\n if (transformData && storedItem) {\n store.dispatch(setValue(storedItem));\n clearInterval(intervalId);\n }\n }, STORING_CHECKER_INTERVAL);\n};\n\nexport default intentionsMiddleware;\n","import { Middleware } from '@reduxjs/toolkit';\nimport { io, Socket } from 'socket.io-client';\n\nimport { config as socketConfig, Events } from '../config';\nimport { QueryParams, Roles } from '../config/enums';\nimport { CHAT_FINISHED_TIMESTAMP, DEFAULT_CLOSE_HREF, SCROLL_STOP_CLASS, SUPPORT_PURPOSE } from '../config/env';\nimport {\n AssistantHistoryInitialMessage,\n AssistantRecord,\n ClientMessage,\n SocketHistoryRecord,\n UserMessageContent\n} from '../interfaces'\nimport {\n fillAssistantHistoryData,\n fillInitialMessage,\n hideResendIcon,\n resendMessage,\n resetError,\n resetHistory,\n resetIsLoading,\n resetOutgoing,\n setClosed,\n setConnected,\n setError,\n setExistingHistory,\n setIsLoading,\n setIsStreaming,\n setOutgoing,\n setTypingTimeoutExpired,\n showResendIcon,\n} from '../store/slices/chat';\nimport { setConfig } from '../store/slices/config';\nimport { setRegion } from '../store/slices/meta';\nimport { getQueryParam } from '../utils';\n\nlet socket: Socket;\n\nconst chatMiddleware: Middleware = (store) => (next) => (action) => {\n const { meta, chat, config } = store.getState();\n\n const onError = () => {\n const { config } = store.getState();\n store.dispatch(resetIsLoading());\n store.dispatch(setError(config.translations.error));\n };\n\n const dispatchRetry = () => {\n store.dispatch(showResendIcon({ itemId: chat.historyIds.pop() }));\n onError();\n };\n\n const handleMessageSending = (data: ClientMessage): void => {\n if (data.role === Roles.user) {\n store.dispatch(setIsLoading());\n }\n\n if (socket && socket.connected && data.message.trim() !== '') {\n socket.emit(Events.chat, { time: new Date().getTime(), ...data }, withTimeout(dispatchRetry));\n store.dispatch(resetError());\n return;\n }\n\n dispatchRetry();\n };\n\n const handleMessageResending = (data: { itemId: string, message: string }) => {\n store.dispatch(hideResendIcon(data));\n store.dispatch(setIsLoading());\n\n const onResendError = () => {\n const { config } = store.getState();\n store.dispatch(showResendIcon(data));\n store.dispatch(resetIsLoading());\n store.dispatch(setError(config.translations.error));\n };\n\n if (socket?.connected && data.message.trim() !== '') {\n socket.volatile.emit(\n Events.chat,\n {\n role: Roles.user,\n message: data.message,\n term: getQueryParam(QueryParams.chat),\n user_id: meta.cid,\n region: meta.region,\n },\n withTimeout(onResendError)\n );\n store.dispatch(resetError());\n } else {\n onResendError();\n }\n };\n\n if (setOutgoing.match(action)) {\n handleMessageSending({\n role: Roles.user,\n message: action.payload,\n term: getQueryParam(QueryParams.chat),\n user_id: meta.cid,\n region: meta.region,\n messageId: [...chat.historyIds].pop(),\n });\n }\n\n if (setClosed.match(action)) {\n const chatBotContainer = document.querySelector('#chatbot-container');\n\n if (document.body && chatBotContainer && config.purpose !== SUPPORT_PURPOSE) {\n chatBotContainer.innerHTML = '';\n document.body.classList.remove(SCROLL_STOP_CLASS);\n }\n\n localStorage.setItem(CHAT_FINISHED_TIMESTAMP, new Date().getTime().toString());\n\n if (socket) {\n socket.close();\n }\n\n window.location.href = config.close.href || DEFAULT_CLOSE_HREF;\n }\n\n if (setTypingTimeoutExpired.match(action) && action.payload) {\n const messageId = [...chat.historyIds].pop();\n const lastMessage = chat.historyData[messageId].content.map(({ message }: { message: UserMessageContent }) => message).join('\\n');\n\n if (lastMessage.trim() !== '') {\n handleMessageSending({\n role: Roles.user,\n message: lastMessage,\n term: getQueryParam(QueryParams.chat),\n user_id: meta.cid,\n region: meta.region,\n messageId\n });\n }\n }\n\n if (resendMessage.match(action)) {\n handleMessageResending(action.payload);\n }\n\n if (!setConfig.match(action)) {\n return next(action);\n }\n\n store.dispatch(setIsLoading());\n\n // @ts-expect-error this is working currently\n socket = io.connect(action.payload.chatUrl, { query: `cid=${meta.cid}`, ...socketConfig });\n\n socket.on(Events.connect, () => {\n const { meta } = store.getState();\n socket.sendBuffer = [];\n socket.emit(Events.chatHistory, { user_id: meta.cid, region: meta.region, term: getQueryParam(QueryParams.chat) });\n store.dispatch(setConnected(true));\n });\n\n socket.on(Events.chatHistory, ({ history: servedHistory, errors, region }\n : { history: Array, errors: string[], region: string }) => {\n\n store.dispatch(resetIsLoading());\n store.dispatch(setIsStreaming(false));\n store.dispatch(setRegion(region));\n const { config, meta } = store.getState();\n\n if (errors.length) {\n store.dispatch(setError(errors[0]));\n return;\n }\n\n if (servedHistory.length) {\n store.dispatch(setExistingHistory(servedHistory));\n return\n }\n\n store.dispatch(resetHistory());\n store.dispatch(setIsLoading());\n let interval = 0;\n config.aiProfile.initialMessage\n .forEach((element: AssistantHistoryInitialMessage, index: number, arr: Array) => {\n interval += 1000;\n\n setTimeout(() => {\n store.dispatch(fillInitialMessage(element));\n\n if (arr.length === index + 1) {\n config.aiProfile.initialMessage.forEach((message: SocketHistoryRecord) =>\n handleMessageSending({\n role: Roles.assistant,\n term: getQueryParam(QueryParams.chat),\n user_id: meta.cid,\n message: JSON.stringify(message.content),\n messageId: message.id,\n region: meta.region,\n }));\n store.dispatch(resetIsLoading());\n }\n\n }, interval);\n\n });\n });\n\n socket.on(Events.streamStart, ({ id }: { id: string }) => {\n store.dispatch(setIsStreaming(true));\n store.dispatch(resetIsLoading());\n store.dispatch(resetOutgoing());\n store.dispatch(resetError());\n store.dispatch(fillAssistantHistoryData({ id }));\n });\n\n socket.on(Events.streamData, (data: AssistantRecord\n & {\n id: string,\n errors: Array\n }) => {\n\n store.dispatch(fillAssistantHistoryData({\n id: data.id,\n sequence: data.sequence,\n content: {\n type: data.type,\n [data.type]: data[data.type],\n sequence: data.sequence\n }\n }));\n\n if (data.errors?.length && !chat.error) {\n store.dispatch(setError(data.errors[0]));\n }\n });\n\n socket.on(Events.streamEnd, () => {\n store.dispatch(setIsStreaming(false));\n });\n\n socket.on(Events.streamError, onError);\n socket.on(Events.error, onError);\n\n socket.on(Events.disconnect, () => {\n store.dispatch(setConnected(false));\n });\n\n next(action);\n};\n\nconst withTimeout = (onTimeout: () => void, timeout: number = 5000) => {\n let called = false;\n const timer = setTimeout(() => {\n if (called) {\n return;\n }\n called = true;\n onTimeout();\n }, timeout);\n\n return () => {\n if (called) {\n return;\n }\n called = true;\n clearTimeout(timer);\n };\n};\n\nexport default chatMiddleware;\n","import { combineReducers, configureStore } from '@reduxjs/toolkit';\nimport { persistReducer,persistStore } from 'redux-persist';\nimport storage from 'redux-persist/lib/storage';\n\nimport intentionsMiddleware from '../middleware/intentions';\nimport chatMiddleware from '../middleware/socket';\nimport chatReducer from './slices/chat';\nimport configReducer from './slices/config';\nimport intentionsReducer from './slices/intentions';\nimport metaReducer from './slices/meta';\n\nconst persistConfig = {\n key: 'root',\n storage,\n whitelist: ['chat', 'meta', 'config'],\n};\n\nexport const store = configureStore({\n reducer: persistReducer(persistConfig, combineReducers({\n meta: metaReducer,\n config: configReducer,\n chat: chatReducer,\n intentions: intentionsReducer,\n })),\n middleware: (getDefaultMiddleware) => getDefaultMiddleware({ serializableCheck: false })\n .concat(chatMiddleware, intentionsMiddleware),\n});\n\n\nexport type AppDispatch = typeof store.dispatch\nexport type RootState = ReturnType\n\nexport const persistor = persistStore(store);\n","import './assets/css/index.css';\n\nimport ReactDOM from 'react-dom/client';\nimport { Provider } from 'react-redux';\nimport { PersistGate } from 'redux-persist/integration/react';\n\nimport { AppBase } from './components/AppBase';\nimport { SCROLL_STOP_CLASS } from './config/env';\nimport { persistor, store } from './store';\n\nexport { intent } from './services/intentions';\n\nlet initiated = false;\n\nexport const ReactBotClient = (config) => {\n if (initiated) {\n return;\n }\n initiated = true;\n\n ReactDOM\n .createRoot(config.root)\n .render(\n \n \n \n \n \n );\n\n document.body.classList.add(SCROLL_STOP_CLASS);\n};\n\nexport default ReactBotClient;\n"],"names":["base64Js","byteLength","toByteArray","fromByteArray","lookup","revLookup","Arr","code","i","len","getLens","b64","validLen","placeHoldersLen","lens","_byteLength","tmp","arr","curByte","tripletToBase64","num","encodeChunk","uint8","start","end","output","extraBytes","parts","maxChunkLength","len2","ieee754","buffer","offset","isLE","mLen","nBytes","e","m","eLen","eMax","eBias","nBits","d","s","value","c","rt","base64","require$$0","require$$1","customInspectSymbol","exports","Buffer","SlowBuffer","K_MAX_LENGTH","typedArraySupport","proto","createBuffer","length","buf","arg","encodingOrOffset","allocUnsafe","from","fromString","fromArrayView","isInstance","fromArrayBuffer","valueOf","b","fromObject","assertSize","size","alloc","fill","encoding","checked","string","actual","fromArrayLike","array","arrayView","copy","byteOffset","obj","numberIsNaN","a","x","y","list","pos","mustMatch","loweredCase","utf8ToBytes","base64ToBytes","slowToString","hexSlice","utf8Slice","asciiSlice","latin1Slice","base64Slice","utf16leSlice","swap","n","str","max","target","thisStart","thisEnd","thisCopy","targetCopy","bidirectionalIndexOf","val","dir","arrayIndexOf","indexSize","arrLength","valLength","read","foundIndex","found","j","hexWrite","remaining","strLen","parsed","utf8Write","blitBuffer","asciiWrite","asciiToBytes","base64Write","ucs2Write","utf16leToBytes","res","firstByte","codePoint","bytesPerSequence","secondByte","thirdByte","fourthByte","tempCodePoint","decodeCodePointsArray","MAX_ARGUMENTS_LENGTH","codePoints","ret","out","hexSliceLookupTable","bytes","newBuf","checkOffset","ext","noAssert","mul","defineBigIntMethod","validateNumber","first","last","boundsError","lo","hi","checkInt","min","maxBytes","wrtBigUInt64LE","checkIntBI","wrtBigUInt64BE","limit","sub","checkIEEE754","writeFloat","littleEndian","writeDouble","targetStart","errors","E","sym","getMessage","Base","name","range","input","msg","received","addNumericalSeparator","checkBounds","type","INVALID_BASE64_RE","base64clean","units","leadSurrogate","byteArray","src","dst","alphabet","table","i16","fn","BufferBigIntNotDefined","process","browserModule","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","defaultClearTimeout","runTimeout","fun","runClearTimeout","marker","queue","draining","currentQueue","queueIndex","cleanUpNextTick","drainQueue","timeout","args","Item","noop","r","l","f","k","p","q","g","h","reactJsxRuntime_production_min","React","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_OFFSCREEN_TYPE","MAYBE_ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","ReactSharedInternals","error","format","_len2","_key2","printWarning","level","ReactDebugCurrentFrame","stack","argsWithFormat","item","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","isValidElementType","getWrappedName","outerType","innerType","wrapperName","displayName","functionName","getContextName","getComponentNameFromType","context","provider","outerName","lazyComponent","payload","init","assign","disabledDepth","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","disabledLog","disableLogs","props","reenableLogs","ReactCurrentDispatcher","prefix","describeBuiltInComponentFrame","source","ownerFn","match","reentry","componentFrameCache","PossiblyWeakMap","describeNativeComponentFrame","construct","frame","control","previousPrepareStackTrace","previousDispatcher","Fake","sample","sampleLines","controlLines","_frame","syntheticFrame","describeFunctionComponentFrame","shouldConstruct","Component","prototype","describeUnknownElementTypeFrameInDEV","hasOwnProperty","loggedTypeFailures","setCurrentlyValidatingElement","element","owner","checkPropTypes","typeSpecs","values","location","componentName","has","typeSpecName","error$1","err","ex","isArrayImpl","isArray","typeName","hasToStringTag","willCoercionThrow","testStringCoercion","checkKeyStringCoercion","ReactCurrentOwner","RESERVED_PROPS","specialPropKeyWarningShown","specialPropRefWarningShown","didWarnAboutStringRefs","hasValidRef","config","getter","hasValidKey","warnIfStringRefCannotBeAutoConverted","self","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","key","ref","jsxDEV","maybeKey","propName","defaultProps","ReactCurrentOwner$1","ReactDebugCurrentFrame$1","setCurrentlyValidatingElement$1","propTypesMisspellWarningShown","isValidElement","object","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","fileName","lineNumber","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","info","parentName","validateExplicitKey","currentComponentErrorInfo","childOwner","validateChildKeys","node","child","iteratorFn","iterator","step","validatePropTypes","propTypes","_name","validateFragmentProps","fragment","keys","jsxWithValidation","isStaticChildren","validType","sourceInfo","typeString","children","jsxWithValidationStatic","jsxWithValidationDynamic","jsx","jsxs","reactJsxRuntime_development","jsxRuntimeModule","client","o","_typeof","_classCallCheck","instance","Constructor","_defineProperties","descriptor","_createClass","protoProps","staticProps","_possibleConstructorReturn","call","_assertThisInitialized","_getPrototypeOf","_inherits","subClass","superClass","_setPrototypeOf","_defineProperty","PersistGate","_PureComponent","_getPrototypeOf2","_this","_len","_key","persistor","_persistor$getState","bootstrapped","PureComponent","Definition","ScreenOrientation","QueryParams","AllEvents","Intentions","Roles","Events","Theme","getQueryParam","param","formatDateByLocaleOptions","formatDateByLocale","inputDate","options","uuidV4","uuid","meta","chat","intentions","configSlice","createSlice","initialState","state","getConfig","setConfig","resetConfig","setTheme","resetTheme","setDevToolsStatus","resetDevToolsStatus","togglePluginMode","setTranslations","setPurpose","setSpecialUrls","getMeta","setMeta","resetMeta","setMarketing","setPd","setRegion","useAppDispatch","useDispatch","useAppSelector","useSelector","useWindowSize","setSize","useState","useLayoutEffect","updateSize","useHeadControls","theme","close","cid","systemType","marketing","u","t","twJoin","index","argument","resolvedValue","toValue","mix","CLASS_PART_SEPARATOR","createClassUtils","classMap","createClassMap","conflictingClassGroups","_config$conflictingCl","conflictingClassGroupModifiers","getClassGroupId","className","classParts","getGroupRecursive","getGroupIdForArbitraryProperty","getConflictingClassGroupIds","classGroupId","hasPostfixModifier","conflicts","classPartObject","currentClassPart","nextClassPartObject","classGroupFromNextClassPart","classRest","_a","_ref","validator","arbitraryPropertyRegex","arbitraryPropertyClassName","property","prefixedClassGroupEntries","getPrefixedClassGroupEntries","_ref2","classGroup","processClassesRecursively","classDefinition","classPartObjectToEdit","getPart","isThemeGetter","_ref3","path","currentClassPartObject","pathPart","func","classGroupEntries","_ref4","prefixedClassGroup","_ref5","createLruCache","maxCacheSize","cacheSize","cache","previousCache","update","IMPORTANT_MODIFIER","createSplitModifiers","separator","isSeparatorSingleCharacter","firstSeparatorCharacter","separatorLength","modifiers","bracketDepth","modifierStart","postfixModifierPosition","currentCharacter","baseClassNameWithImportantModifier","hasImportantModifier","baseClassName","maybePostfixModifierPosition","sortModifiers","sortedModifiers","unsortedModifiers","modifier","isArbitraryVariant","createConfigUtils","SPLIT_CLASSES_REGEX","mergeClassList","classList","configUtils","splitModifiers","classGroupsInConflict","originalClassName","_splitModifiers","variantModifier","modifierId","classId","group","createTailwindMerge","createConfig","cacheGet","cacheSet","functionToCall","initTailwindMerge","firstCreateConfig","restCreateConfig","previousConfig","createConfigCurrent","tailwindMerge","cachedResult","result","fromTheme","themeGetter","arbitraryValueRegex","fractionRegex","stringLengths","tshirtUnitRegex","lengthUnitRegex","shadowRegex","isLength","isNumber","isArbitraryLength","getIsArbitraryValue","isLengthOnly","isArbitrarySize","isNever","isArbitraryPosition","isArbitraryUrl","isUrl","isArbitraryNumber","isPercent","isInteger","isIntegerOnly","isArbitraryValue","isAny","isTshirtSize","isArbitraryShadow","isShadow","label","testValue","getDefaultConfig","colors","spacing","blur","brightness","borderColor","borderRadius","borderSpacing","borderWidth","contrast","grayscale","hueRotate","invert","gap","gradientColorStops","gradientColorStopPositions","inset","margin","opacity","padding","saturate","scale","sepia","skew","space","translate","getOverscroll","getOverflow","getSpacingWithAutoAndArbitrary","getSpacingWithArbitrary","getLengthWithEmpty","getNumberWithAutoAndArbitrary","getPositions","getLineStyles","getBlendModes","getAlign","getZeroAndEmpty","getBreaks","getNumber","getNumberAndArbitrary","mergeConfigs","baseConfig","configExtension","mergePropertyRecursively","overrideTypes","baseObject","mergeKey","mergeValue","nextKey","extendTailwindMerge","twMerge","se","_","N","M","F","w","b$1","Z","U","C","V","W","S","g$1","A","O","$","h$1","v","K","z","a$1","J","L","ae","T","P","D","G","H","I","ee","te","layoutBase","tv","layoutHead","layoutFoot","LayoutBase","head","stream","foot","isPluginMode","base","wrapper","variant","data","overlay","Overlay","track","eventType","utmParams","customerUuid","email","phone","event","payment","loader","PaymentButton","text","onClick","e2e","disabled","currentEmail","btn","useEffect","CloseButton","variants","PaymentFooter","icon","PaymentHead","translations","left","leftTop","bottom","right","price","Link","forwardRef","link","href","PaymentLoader","texts","title","inner","dots","dotsIn","progressCheckmark","panelTitle","spinningTexts","filmContainer","film","txt","PaymentScene","onClose","displayPlanPrice","billingFrequencyTmsg","streamBase","streamHead","streamRow","flickerEffect","streamBubble","ellipsis","Ellipsis","dotFirst","dotSecond","dotThird","CHAT_SEEN_KEY","LINK_CLICKED_KEY","CHAT_FINISHED_TIMESTAMP","CID","STORING_CHECKER_INTERVAL","SCROLL_STOP_CLASS","SUPPORT_PURPOSE","CLOSE_AFTER_TIMEOUT","DEFAULT_CLOSE_HREF","TYPING_TIMEOUT","getUnifiedSequence","current","incoming","record","hasMatch","_b","Y","Q","nn","X","rn","tn","en","on","R","B","un","an","produce","draft","id","prev","dataType","content","belongsTo","el","getChat","userMessageFindOne","historyId","sortBySequence","setOutgoing","resetOutgoing","setExistingHistory","addPredefinedAssistantMessage","setIsLoading","resetIsLoading","setLastGroupPointer","setTypingTimeoutExpired","setError","resetError","setConnected","setClosed","hideResendIcon","showResendIcon","resendMessage","setIsStreaming","fillAssistantHistoryData","fillUserHistoryData","resetHistory","fillInitialMessage","chatReducer","intentionsSlice","getEmailIntentions","getPaymentIntentions","setEmailSuccess","setIsPaymentSuccessful","setPaymentFormVisibility","setEmailError","setIsEmailLoading","setIsPaymentButtonVisible","setPaymentIntentError","setEmail","setLink","intentionsReducer","useFootProps","pd","purpose","specialUrls","isLoading","isStreaming","streamError","store","storedLink","emailError","isPaymentFormVisible","paymentIntentError","paymentSuccess","historyData","historyIds","lastMsgId","lastMsg","isLastAssistantMsg","noButtonChoices","hasPaymentIntent","hasEmailIntent","message","isResponseFormVisible","ReflectApply","receiver","ReflectOwnKeys","ProcessEmitWarning","warning","NumberIsNaN","EventEmitter","eventsModule","once","defaultMaxListeners","checkListener","listener","_getMaxListeners","that","doError","events","er","handler","listeners","arrayClone","_addListener","prepend","existing","onceWrapper","_onceWrap","wrapped","position","originalListener","spliceOne","_listeners","unwrap","evlistener","unwrapListeners","emitter","listenerCount","resolve","reject","errorListener","resolver","eventTargetAgnosticAddListener","addErrorHandlerIfEventEmitter","flags","wrapListener","intent","basic","Btn","IconBtn","outlined","Input","onChange","onKeyUp","placeholder","spin","EmailForm","dispatch","button","setCurrentEmail","inputElement","useRef","handleInputChange","currentValue","handleFormSubmit","ResponseForm","connected","response","setCurrentResponse","timerId","setTimerId","groupId","setTimerToSendMessage","currentId","LayoutFoot","footState","ctaAfterPayButton","setDisabled","setIsPaymentContainerVisible","isVisible","onClosePaymentForm","onPaymentSuccess","onError","initializePaymentForm","onClickCta","profile","Profile","orientation","minimized","aiProfile","avatar","role","imgWrapper","LayoutHead","headState","constructLink","hasQueryParams","url","search","searchParams","MarkdownLink","properties","extractVideoCode","videoUrl","Iframe","setIframeVisibility","videoCode","handleVideoClick","OptionList","isFirstUserMessage","setOption","sequence","setMessage","noStream","Assistant","itemId","isLast","baseFlicker","sortedContent","Fragment","it","Markdown","_c","_d","MemoizedAssistant","StreamBubble","User","MemoizedStreamBubble","StreamHead","titleTxt","StreamBase","firstMessage","second","date","baseRow","time","action","onResend","AppBase","getStorage_1","getStorage","noopStorage","hasStorage","storageType","storage","testKey","createWebStorage_1","createWebStorage","_getStorage","_interopRequireDefault","default_1","_createWebStorage","_default","intentionsMiddleware","next","setPaymentDataTranslationAccordingly","transformedData","tm716","tm526","tm715","tm505","dataIntervalChecker","setValue","transformData","intervalId","storedItem","socket","chatMiddleware","dispatchRetry","handleMessageSending","withTimeout","handleMessageResending","onResendError","chatBotContainer","messageId","lastMessage","io","socketConfig","servedHistory","region","interval","onTimeout","called","timer","persistConfig","configureStore","persistReducer","combineReducers","metaReducer","configReducer","getDefault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AA,EAAA,IAAAomB,IAAA,EAAQ,QAAS1pB,EAAO,cAAgB,CAAA,EAC3C,CAAA,GACF;AAAA,EAAA,GAGK,SAAA,KAAK,UAAU,IAAIub,EAAiB;AAC/C;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,49,53,78,79,80]} \ No newline at end of file +{"version":3,"file":"index.es.js","sources":["../node_modules/base64-js/index.js","../node_modules/ieee754/index.js","../node_modules/buffer-polyfill/index.js","../node_modules/process/browser.js","../node_modules/vite-plugin-node-polyfills/shims/dist/index.cjs","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../node_modules/react-dom/client.js","../node_modules/redux-persist/es/integration/react.js","../src/config/enums.ts","../src/utils/index.js","../src/store/initialState.ts","../src/store/slices/config.ts","../src/store/slices/meta.ts","../src/hooks/index.ts","../node_modules/tailwind-variants/dist/chunk-JXBJZR5A.js","../node_modules/tailwind-merge/dist/lib/tw-join.mjs","../node_modules/tailwind-merge/dist/lib/class-utils.mjs","../node_modules/tailwind-merge/dist/lib/lru-cache.mjs","../node_modules/tailwind-merge/dist/lib/modifier-utils.mjs","../node_modules/tailwind-merge/dist/lib/config-utils.mjs","../node_modules/tailwind-merge/dist/lib/merge-classlist.mjs","../node_modules/tailwind-merge/dist/lib/create-tailwind-merge.mjs","../node_modules/tailwind-merge/dist/lib/from-theme.mjs","../node_modules/tailwind-merge/dist/lib/validators.mjs","../node_modules/tailwind-merge/dist/lib/default-config.mjs","../node_modules/tailwind-merge/dist/lib/merge-configs.mjs","../node_modules/tailwind-merge/dist/lib/extend-tailwind-merge.mjs","../node_modules/tailwind-merge/dist/lib/tw-merge.mjs","../node_modules/tailwind-variants/dist/index.js","../src/components/Layout/variants.ts","../src/components/Layout/base.tsx","../src/components/Overlay/variants.ts","../src/components/Overlay/index.tsx","../src/services/tracking.ts","../src/components/Payment/variants.ts","../src/components/Payment/btn.tsx","../src/components/Payment/close.tsx","../src/components/Payment/foot.tsx","../src/components/Payment/head.tsx","../src/components/Payment/link.tsx","../src/components/Payment/loader.tsx","../src/components/Scenes/payment.tsx","../src/components/Stream/variants.ts","../src/components/Stream/ellipsis.tsx","../src/config/env.ts","../src/config/socket.ts","../src/config/index.ts","../node_modules/immer/dist/immer.esm.mjs","../src/store/slices/chat.ts","../src/store/slices/intentions.ts","../src/hooks/foot.ts","../node_modules/events/events.js","../src/services/intentions.ts","../src/components/Button/variants.ts","../src/components/Button/basic.tsx","../src/components/Button/icon.tsx","../src/components/Input/variants.ts","../src/components/Input/basic.tsx","../src/components/Form/email.tsx","../src/components/Form/response.tsx","../src/components/Layout/foot.tsx","../src/components/Profile/variants.ts","../src/components/Profile/index.tsx","../src/components/Layout/head.tsx","../src/utils/formatting.ts","../src/components/Markdown/link.tsx","../src/components/Video/index.tsx","../src/components/Link/variants.ts","../src/components/Link/basic.tsx","../src/components/Stream/options.tsx","../src/components/Stream/assistant.tsx","../src/components/Stream/bubble.tsx","../src/components/Stream/head.tsx","../src/components/Stream/base.tsx","../src/components/Stream/user.tsx","../src/components/AppBase/index.tsx","../node_modules/redux-persist/lib/storage/getStorage.js","../node_modules/redux-persist/lib/storage/createWebStorage.js","../node_modules/redux-persist/lib/storage/index.js","../src/middleware/intentions.ts","../src/middleware/socket.ts","../src/store/index.ts","../src/main.jsx"],"sourcesContent":["'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nconst base64 = require('base64-js')\nconst ieee754 = require('ieee754')\nconst customInspectSymbol =\n (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation\n ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation\n : null\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nconst K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n const arr = new Uint8Array(1)\n const proto = { foo: function () { return 42 } }\n Object.setPrototypeOf(proto, Uint8Array.prototype)\n Object.setPrototypeOf(arr, proto)\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n const buf = new Uint8Array(length)\n Object.setPrototypeOf(buf, Buffer.prototype)\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayView(value)\n }\n\n if (value == null) {\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof SharedArrayBuffer !== 'undefined' &&\n (isInstance(value, SharedArrayBuffer) ||\n (value && isInstance(value.buffer, SharedArrayBuffer)))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n const valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n const b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nObject.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\nObject.setPrototypeOf(Buffer, Uint8Array)\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpreted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n const length = byteLength(string, encoding) | 0\n let buf = createBuffer(length)\n\n const actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n const length = array.length < 0 ? 0 : checked(array.length) | 0\n const buf = createBuffer(length)\n for (let i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayView (arrayView) {\n if (isInstance(arrayView, Uint8Array)) {\n const copy = new Uint8Array(arrayView)\n return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)\n }\n return fromArrayLike(arrayView)\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n let buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(buf, Buffer.prototype)\n\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n const len = checked(obj.length) | 0\n const buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n let x = a.length\n let y = b.length\n\n for (let i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n let i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n const buffer = Buffer.allocUnsafe(length)\n let pos = 0\n for (i = 0; i < list.length; ++i) {\n let buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n if (pos + buf.length > buffer.length) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)\n buf.copy(buffer, pos)\n } else {\n Uint8Array.prototype.set.call(\n buffer,\n buf,\n pos\n )\n }\n } else if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n } else {\n buf.copy(buffer, pos)\n }\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n const len = string.length\n const mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n let loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coercion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n const i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n const len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (let i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n const len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (let i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n const len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (let i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n const length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n let str = ''\n const max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return ''\n}\nif (customInspectSymbol) {\n Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n let x = thisEnd - thisStart\n let y = end - start\n const len = Math.min(x, y)\n\n const thisCopy = this.slice(thisStart, thisEnd)\n const targetCopy = target.slice(start, end)\n\n for (let i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n let indexSize = 1\n let arrLength = arr.length\n let valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n let i\n if (dir) {\n let foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n let found = true\n for (let j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n const remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n const strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n let i\n for (i = 0; i < length; ++i) {\n const parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n const remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n case 'latin1':\n case 'binary':\n return asciiWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n const res = []\n\n let i = start\n while (i < end) {\n const firstByte = buf[i]\n let codePoint = null\n let bytesPerSequence = (firstByte > 0xEF)\n ? 4\n : (firstByte > 0xDF)\n ? 3\n : (firstByte > 0xBF)\n ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n let secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nconst MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n const len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n let res = ''\n let i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n const len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n let out = ''\n for (let i = start; i < end; ++i) {\n out += hexSliceLookupTable[buf[i]]\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n const bytes = buf.slice(start, end)\n let res = ''\n // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)\n for (let i = 0; i < bytes.length - 1; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n const len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n const newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(newBuf, Buffer.prototype)\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUintLE =\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUintBE =\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n let val = this[offset + --byteLength]\n let mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUint8 =\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUint16LE =\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUint16BE =\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUint32LE =\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUint32BE =\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const lo = first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24\n\n const hi = this[++offset] +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n last * 2 ** 24\n\n return BigInt(lo) + (BigInt(hi) << BigInt(32))\n})\n\nBuffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const hi = first * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n const lo = this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last\n\n return (BigInt(hi) << BigInt(32)) + BigInt(lo)\n})\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let i = byteLength\n let mul = 1\n let val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = this[offset + 4] +\n this[offset + 5] * 2 ** 8 +\n this[offset + 6] * 2 ** 16 +\n (last << 24) // Overflow\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24)\n})\n\nBuffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = (first << 24) + // Overflow\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last)\n})\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUintLE =\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let mul = 1\n let i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUintBE =\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let i = byteLength - 1\n let mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUint8 =\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUint16LE =\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUint16BE =\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUint32LE =\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUint32BE =\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction wrtBigUInt64LE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n return offset\n}\n\nfunction wrtBigUInt64BE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset + 7] = lo\n lo = lo >> 8\n buf[offset + 6] = lo\n lo = lo >> 8\n buf[offset + 5] = lo\n lo = lo >> 8\n buf[offset + 4] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset + 3] = hi\n hi = hi >> 8\n buf[offset + 2] = hi\n hi = hi >> 8\n buf[offset + 1] = hi\n hi = hi >> 8\n buf[offset] = hi\n return offset + 8\n}\n\nBuffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = 0\n let mul = 1\n let sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = byteLength - 1\n let mul = 1\n let sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nBuffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n const len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n const code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n } else if (typeof val === 'boolean') {\n val = Number(val)\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n let i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n const bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n const len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// CUSTOM ERRORS\n// =============\n\n// Simplified versions from Node, changed for Buffer-only usage\nconst errors = {}\nfunction E (sym, getMessage, Base) {\n errors[sym] = class NodeError extends Base {\n constructor () {\n super()\n\n Object.defineProperty(this, 'message', {\n value: getMessage.apply(this, arguments),\n writable: true,\n configurable: true\n })\n\n // Add the error code to the name to include it in the stack trace.\n this.name = `${this.name} [${sym}]`\n // Access the stack to generate the error message including the error code\n // from the name.\n this.stack // eslint-disable-line no-unused-expressions\n // Reset the name to the actual name.\n delete this.name\n }\n\n get code () {\n return sym\n }\n\n set code (value) {\n Object.defineProperty(this, 'code', {\n configurable: true,\n enumerable: true,\n value,\n writable: true\n })\n }\n\n toString () {\n return `${this.name} [${sym}]: ${this.message}`\n }\n }\n}\n\nE('ERR_BUFFER_OUT_OF_BOUNDS',\n function (name) {\n if (name) {\n return `${name} is outside of buffer bounds`\n }\n\n return 'Attempt to access memory outside buffer bounds'\n }, RangeError)\nE('ERR_INVALID_ARG_TYPE',\n function (name, actual) {\n return `The \"${name}\" argument must be of type number. Received type ${typeof actual}`\n }, TypeError)\nE('ERR_OUT_OF_RANGE',\n function (str, range, input) {\n let msg = `The value of \"${str}\" is out of range.`\n let received = input\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input))\n } else if (typeof input === 'bigint') {\n received = String(input)\n if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {\n received = addNumericalSeparator(received)\n }\n received += 'n'\n }\n msg += ` It must be ${range}. Received ${received}`\n return msg\n }, RangeError)\n\nfunction addNumericalSeparator (val) {\n let res = ''\n let i = val.length\n const start = val[0] === '-' ? 1 : 0\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`\n }\n return `${val.slice(0, i)}${res}`\n}\n\n// CHECK FUNCTIONS\n// ===============\n\nfunction checkBounds (buf, offset, byteLength) {\n validateNumber(offset, 'offset')\n if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {\n boundsError(offset, buf.length - (byteLength + 1))\n }\n}\n\nfunction checkIntBI (value, min, max, buf, offset, byteLength) {\n if (value > max || value < min) {\n const n = typeof min === 'bigint' ? 'n' : ''\n let range\n if (byteLength > 3) {\n if (min === 0 || min === BigInt(0)) {\n range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`\n } else {\n range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +\n `${(byteLength + 1) * 8 - 1}${n}`\n }\n } else {\n range = `>= ${min}${n} and <= ${max}${n}`\n }\n throw new errors.ERR_OUT_OF_RANGE('value', range, value)\n }\n checkBounds(buf, offset, byteLength)\n}\n\nfunction validateNumber (value, name) {\n if (typeof value !== 'number') {\n throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n}\n\nfunction boundsError (value, length, type) {\n if (Math.floor(value) !== value) {\n validateNumber(value, type)\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value)\n }\n\n if (length < 0) {\n throw new errors.ERR_BUFFER_OUT_OF_BOUNDS()\n }\n\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset',\n `>= ${type ? 1 : 0} and <= ${length}`,\n value)\n}\n\n// HELPER FUNCTIONS\n// ================\n\nconst INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n let codePoint\n const length = string.length\n let leadSurrogate = null\n const bytes = []\n\n for (let i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n let c, hi, lo\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n let i\n for (i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n// Create lookup table for `toString('hex')`\n// See: https://github.com/feross/buffer/issues/219\nconst hexSliceLookupTable = (function () {\n const alphabet = '0123456789abcdef'\n const table = new Array(256)\n for (let i = 0; i < 16; ++i) {\n const i16 = i * 16\n for (let j = 0; j < 16; ++j) {\n table[i16 + j] = alphabet[i] + alphabet[j]\n }\n }\n return table\n})()\n\n// Return not function with Error if BigInt not supported\nfunction defineBigIntMethod (fn) {\n return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn\n}\n\nfunction BufferBigIntNotDefined () {\n throw new Error('BigInt not supported')\n}\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","\"use strict\";Object.defineProperty(exports,Symbol.toStringTag,{value:\"Module\"});const t=require(\"buffer-polyfill\"),r=require(\"process\"),o=e=>e&&e.__esModule?e:{default:e},l=o(r),u=globalThis||void 0||self;Object.defineProperty(exports,\"Buffer\",{enumerable:!0,get:()=>t.Buffer});Object.defineProperty(exports,\"process\",{enumerable:!0,get:()=>l.default});exports.global=u;\n//# sourceMappingURL=index.cjs.map\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('')) {\n _frame = _frame.replace('', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%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).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('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', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%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)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%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)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie.
\n // or
). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n //
, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport React, { PureComponent } from 'react'; // eslint-disable-line import/no-unresolved\n\nexport var PersistGate =\n/*#__PURE__*/\nfunction (_PureComponent) {\n _inherits(PersistGate, _PureComponent);\n\n function PersistGate() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, PersistGate);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(PersistGate)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n bootstrapped: false\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_unsubscribe\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"handlePersistorState\", function () {\n var persistor = _this.props.persistor;\n\n var _persistor$getState = persistor.getState(),\n bootstrapped = _persistor$getState.bootstrapped;\n\n if (bootstrapped) {\n if (_this.props.onBeforeLift) {\n Promise.resolve(_this.props.onBeforeLift()).finally(function () {\n return _this.setState({\n bootstrapped: true\n });\n });\n } else {\n _this.setState({\n bootstrapped: true\n });\n }\n\n _this._unsubscribe && _this._unsubscribe();\n }\n });\n\n return _this;\n }\n\n _createClass(PersistGate, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this._unsubscribe = this.props.persistor.subscribe(this.handlePersistorState);\n this.handlePersistorState();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this._unsubscribe && this._unsubscribe();\n }\n }, {\n key: \"render\",\n value: function render() {\n if (process.env.NODE_ENV !== 'production') {\n if (typeof this.props.children === 'function' && this.props.loading) console.error('redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored.');\n }\n\n if (typeof this.props.children === 'function') {\n return this.props.children(this.state.bootstrapped);\n }\n\n return this.state.bootstrapped ? this.props.children : this.props.loading;\n }\n }]);\n\n return PersistGate;\n}(PureComponent);\n\n_defineProperty(PersistGate, \"defaultProps\", {\n children: null,\n loading: null\n});","enum Definition {\n text = 'text',\n buttons = 'buttons',\n payment = 'payment',\n video = 'video',\n image = 'image',\n email = 'email',\n}\n\nenum ScreenOrientation {\n horizontal = 'horizontal',\n vertical = 'vertical',\n}\n\nenum QueryParams {\n chat = 'utm_chat'\n}\n\nenum AllEvents {\n addToCart = 'AddToCart',\n contact = 'Contact',\n initiateCheckout = 'InitiateCheckout',\n pageView = 'PageView',\n viewContent = 'ViewContent',\n purchase = 'Purchase',\n subscribe = 'Subscribe',\n recurringSubscriptionPayment = 'RecurringSubscriptionPayment',\n cancelSubscription = 'CancelSubscription',\n purchaseFailed = 'PurchaseFailed',\n subscribeFailed = 'SubscribeFailed',\n recurringSubscriptionPaymentFailed = 'RecurringSubscriptionPaymentFailed',\n customerCreated = 'CustomerCreated',\n subscriptionChargeback = 'SubscriptionChargeback',\n subscriptionRefund = 'SubscriptionRefund',\n transactionChargeback = 'TransactionChargeback',\n transactionRefund = 'TransactionRefund',\n\n // custom events\n firstMessage = 'FirstMessage',\n linkProvided = 'LinkProvided',\n linkClicked = 'LinkClicked',\n emailField = 'EmailField',\n emailEntered = 'EmailEntered',\n emailWrong = 'EmailWrong',\n emailExist = 'EmailExist',\n priceSeen = 'PriceSeen',\n buttonClick = 'ButtonClick',\n closeClicked = 'CloseClicked',\n}\n\nenum Intentions {\n email = 'email_intent',\n payment = 'payment_intent',\n emailError = 'email_validation_error',\n emailSuccess = 'email_validation_success',\n destroy = 'payment_intent_destroy'\n}\n\nenum Roles {\n user = 'user',\n assistant = 'assistant',\n}\n\nenum Events {\n chat = 'chat',\n chatHistory = 'chat-history',\n connect = 'connect',\n error = 'error',\n disconnect = 'disconnect',\n streamStart = 'stream-start',\n streamData = 'stream-data',\n streamEnd = 'stream-end',\n streamError = 'stream-error',\n}\n\nenum Theme {\n light = 'light',\n dark = 'dark',\n}\n\nexport { AllEvents, Definition, Events, Intentions, QueryParams,Roles, ScreenOrientation, Theme }\n","\n/**\n * Retrieves certain query parameter from a URL.\n *\n * @example getQueryParam('utm_chat')\n * @param {string} param\n */\nexport const getQueryParam = (param) => {\n const urlParams = new URLSearchParams(window.location.search);\n\n return urlParams.get(param) || '';\n};\n\nconst formatDateByLocaleOptions = {\n day: 'numeric',\n month: 'long',\n year: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n};\n\n/**\n * Formats a date string according to the locale, including the date and time.\n *\n * @param {number} inputDate - The date string to be formatted.\n * @returns {string} - The formatted date and time string.\n */\nexport function formatDateByLocale(inputDate, options = formatDateByLocaleOptions) {\n const date = new Date(inputDate);\n\n const formattedDate = date.toLocaleDateString([], options);\n\n return `${formattedDate}`.toUpperCase();\n}\n\nexport function uuidV4() {\n const uuid = new Array(36);\n for (let i = 0; i < 36; i++) {\n uuid[i] = Math.floor(Math.random() * 16);\n }\n uuid[14] = 4;\n uuid[19] = uuid[19] &= ~(1 << 2);\n uuid[19] = uuid[19] |= (1 << 3);\n uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';\n return uuid.map((x) => x.toString(16)).join('');\n}\n","import { Roles, Theme } from '../config/enums';\nimport { ChatState, ConfigState, IntentionsState, MetaState } from '../interfaces/store';\nimport { uuidV4 } from '../utils';\n\nexport const meta: MetaState = {\n cid: '',\n eid: '',\n region: '',\n systemType: '',\n pd: {},\n marketing: {\n screen: {},\n lastUtmParams: {},\n utmParams: {}\n },\n};\n\nexport const config: ConfigState = {\n aiProfile: {\n name: '',\n role: '',\n imgSrc: '',\n welcome: '',\n initialMessage: [],\n },\n close: {\n href: null,\n visible: false,\n },\n translations: {},\n themeId: Theme.light,\n chatUrl: '',\n enableDevTools: false,\n isPluginMode: false,\n purpose: 'default',\n specialUrls: {},\n};\n\nexport const chat: ChatState = {\n outgoing: {\n term: '',\n user_id: '',\n role: Roles.user,\n message: '',\n },\n historyData: {},\n historyIds: [],\n error: '',\n isLoading: false,\n typingTimeoutExpired: false,\n lastGroupId: uuidV4(),\n connected: false,\n closed: false,\n isStreaming: false,\n};\n\nexport const intentions: IntentionsState = {\n email: {\n current: '',\n success: false,\n error: false,\n isLoading: false,\n },\n response: {\n isFormVisible: false,\n error: false,\n },\n payment: {\n isButtonVisible: false,\n isFormVisible: false,\n isSuccessful: false,\n error: false,\n },\n messaging: {\n isVisible: false,\n },\n link: ''\n};\n\nexport default { meta, config, intentions, chat };\n","import { createSlice, PayloadAction } from '@reduxjs/toolkit';\n\nimport { ConfigState } from '../../interfaces/store';\nimport { config as initialState } from '../../store/initialState';\n\nconst configSlice = createSlice({\n name: 'config',\n initialState,\n reducers: {\n setConfig(state, { payload }: PayloadAction) {\n state.aiProfile = { ...initialState.aiProfile, ...payload.aiProfile };\n state.translations = { ...initialState.translations, ...payload.translations };\n state.close = { ...initialState.close, ...payload.close };\n state.themeId = payload.themeId;\n state.chatUrl = payload.chatUrl;\n state.purpose = payload.purpose;\n },\n setSpecialUrls(state, { payload }) {\n state.specialUrls = { ...state.specialUrls, ...payload };\n },\n setPurpose(state, { payload }) {\n state.purpose = payload;\n },\n resetConfig(state) {\n state.aiProfile = initialState.aiProfile;\n state.themeId = initialState.themeId;\n state.translations = initialState.translations;\n state.chatUrl = initialState.chatUrl;\n },\n setTheme(state, { payload }) {\n state.themeId = payload;\n },\n resetTheme(state) {\n state.themeId = initialState.themeId;\n },\n setDevToolsStatus(state, { payload }) {\n state.enableDevTools = payload;\n },\n resetDevToolsStatus(state) {\n state.enableDevTools = initialState.enableDevTools;\n },\n togglePluginMode(state) {\n state.isPluginMode = !state.isPluginMode;\n },\n setTranslations(state, { payload }) {\n state.translations = { ...state.translations, ...payload };\n },\n },\n});\n\nexport const getConfig = (state: { config: ConfigState }) => state.config;\nexport const getDevToolsStatus = (state: { config: ConfigState }) => state.config.enableDevTools;\n\nexport const {\n setConfig,\n resetConfig,\n setTheme,\n resetTheme,\n setDevToolsStatus,\n resetDevToolsStatus,\n togglePluginMode,\n setTranslations,\n setPurpose,\n setSpecialUrls,\n} = configSlice.actions;\nexport default configSlice.reducer;\n","import { createSlice } from '@reduxjs/toolkit';\n\nimport { MetaState } from '../../interfaces/store';\nimport { meta as initialState } from '../initialState';\n\nconst configSlice = createSlice({\n name: 'meta',\n initialState,\n reducers: {\n setMeta(state, { payload }) {\n state.cid = payload.cid;\n state.eid = payload.eid;\n state.systemType = payload.systemType;\n state.pd = { ...state.pd, ...payload.pd };\n state.marketing = { ...state.marketing, ...payload.marketing };\n },\n resetMeta(state) {\n state.pd = initialState.pd;\n state.cid = initialState.cid;\n state.eid = initialState.eid;\n state.systemType = initialState.systemType;\n state.marketing = initialState.marketing;\n },\n setMarketing(state, { payload }) {\n state.marketing = { ...state.marketing, ...payload };\n },\n setPd(state, { payload }) {\n state.pd = { ...state.pd, ...payload };\n },\n setRegion(state, { payload }) {\n state.region = payload;\n }\n }\n});\n\nexport const getMeta = (state: { meta: MetaState }) => state.meta;\nexport const { setMeta, resetMeta, setMarketing, setPd, setRegion } = configSlice.actions;\nexport default configSlice.reducer;\n","import { useLayoutEffect, useState } from 'react';\nimport { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux';\n\nimport { AppDispatch, RootState } from '../store/index';\nimport { getConfig } from '../store/slices/config';\nimport { getMeta } from '../store/slices/meta';\n\ntype DispatchFunc = () => AppDispatch;\nexport const useAppDispatch: DispatchFunc = useDispatch;\nexport const useAppSelector: TypedUseSelectorHook = useSelector;\n\nexport const useWindowSize = () => {\n const [size, setSize] = useState([0, 0]);\n useLayoutEffect(() => {\n function updateSize() {\n setSize([window.innerWidth, window.innerHeight]);\n }\n window.addEventListener('resize', updateSize);\n updateSize();\n return () => window.removeEventListener('resize', updateSize);\n }, []);\n return size;\n};\n\nexport const useHeadControls = () => {\n const { themeId: theme, close } = useAppSelector(getConfig);\n const { cid, systemType, marketing } = useAppSelector(getMeta);\n\n return {\n theme,\n closeVisible: close.visible,\n cid,\n systemType,\n marketing\n };\n};\n","var l=e=>typeof e==\"boolean\"?`${e}`:e===0?\"0\":e,u=e=>!e||typeof e!=\"object\"||Object.keys(e).length===0,x=(e,o)=>JSON.stringify(e)===JSON.stringify(o),A=e=>typeof e==\"boolean\";function i(e,o){e.forEach(function(r){Array.isArray(r)?i(r,o):o.push(r);});}function y(e){let o=[];return i(e,o),o}var a=(...e)=>y(e).filter(Boolean),p=(e,o)=>{let r={},c=Object.keys(e),f=Object.keys(o);for(let t of c)if(f.includes(t)){let s=e[t],n=o[t];typeof s==\"object\"&&typeof n==\"object\"?r[t]=p(s,n):Array.isArray(s)||Array.isArray(n)?r[t]=a(n,s):r[t]=n+\" \"+s;}else r[t]=e[t];for(let t of f)c.includes(t)||(r[t]=o[t]);return r},g=e=>!e||typeof e!=\"string\"?e:e.replace(/\\s+/g,\" \").trim();\n\nexport { l as a, u as b, x as c, A as d, y as e, a as f, p as g, g as h };\n","/**\n * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.\n *\n * Specifically:\n * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js\n * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts\n *\n * Original code has MIT license: Copyright (c) Luke Edwards (lukeed.com)\n */\nfunction twJoin() {\n var index = 0;\n var argument;\n var resolvedValue;\n var string = '';\n while (index < arguments.length) {\n if (argument = arguments[index++]) {\n if (resolvedValue = toValue(argument)) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\nfunction toValue(mix) {\n if (typeof mix === 'string') {\n return mix;\n }\n var resolvedValue;\n var string = '';\n for (var k = 0; k < mix.length; k++) {\n if (mix[k]) {\n if (resolvedValue = toValue(mix[k])) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\n\nexport { twJoin };\n//# sourceMappingURL=tw-join.mjs.map\n","var CLASS_PART_SEPARATOR = '-';\nfunction createClassUtils(config) {\n var classMap = createClassMap(config);\n var conflictingClassGroups = config.conflictingClassGroups,\n _config$conflictingCl = config.conflictingClassGroupModifiers,\n conflictingClassGroupModifiers = _config$conflictingCl === void 0 ? {} : _config$conflictingCl;\n function getClassGroupId(className) {\n var classParts = className.split(CLASS_PART_SEPARATOR);\n // Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and remove it from classParts.\n if (classParts[0] === '' && classParts.length !== 1) {\n classParts.shift();\n }\n return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);\n }\n function getConflictingClassGroupIds(classGroupId, hasPostfixModifier) {\n var conflicts = conflictingClassGroups[classGroupId] || [];\n if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {\n return [].concat(conflicts, conflictingClassGroupModifiers[classGroupId]);\n }\n return conflicts;\n }\n return {\n getClassGroupId: getClassGroupId,\n getConflictingClassGroupIds: getConflictingClassGroupIds\n };\n}\nfunction getGroupRecursive(classParts, classPartObject) {\n if (classParts.length === 0) {\n return classPartObject.classGroupId;\n }\n var currentClassPart = classParts[0];\n var nextClassPartObject = classPartObject.nextPart.get(currentClassPart);\n var classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;\n if (classGroupFromNextClassPart) {\n return classGroupFromNextClassPart;\n }\n if (classPartObject.validators.length === 0) {\n return undefined;\n }\n var classRest = classParts.join(CLASS_PART_SEPARATOR);\n return classPartObject.validators.find(function (_ref) {\n var validator = _ref.validator;\n return validator(classRest);\n })?.classGroupId;\n}\nvar arbitraryPropertyRegex = /^\\[(.+)\\]$/;\nfunction getGroupIdForArbitraryProperty(className) {\n if (arbitraryPropertyRegex.test(className)) {\n var arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];\n var property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));\n if (property) {\n // I use two dots here because one dot is used as prefix for class groups in plugins\n return 'arbitrary..' + property;\n }\n }\n}\n/**\n * Exported for testing only\n */\nfunction createClassMap(config) {\n var theme = config.theme,\n prefix = config.prefix;\n var classMap = {\n nextPart: new Map(),\n validators: []\n };\n var prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);\n prefixedClassGroupEntries.forEach(function (_ref2) {\n var classGroupId = _ref2[0],\n classGroup = _ref2[1];\n processClassesRecursively(classGroup, classMap, classGroupId, theme);\n });\n return classMap;\n}\nfunction processClassesRecursively(classGroup, classPartObject, classGroupId, theme) {\n classGroup.forEach(function (classDefinition) {\n if (typeof classDefinition === 'string') {\n var classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);\n classPartObjectToEdit.classGroupId = classGroupId;\n return;\n }\n if (typeof classDefinition === 'function') {\n if (isThemeGetter(classDefinition)) {\n processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);\n return;\n }\n classPartObject.validators.push({\n validator: classDefinition,\n classGroupId: classGroupId\n });\n return;\n }\n Object.entries(classDefinition).forEach(function (_ref3) {\n var key = _ref3[0],\n classGroup = _ref3[1];\n processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);\n });\n });\n}\nfunction getPart(classPartObject, path) {\n var currentClassPartObject = classPartObject;\n path.split(CLASS_PART_SEPARATOR).forEach(function (pathPart) {\n if (!currentClassPartObject.nextPart.has(pathPart)) {\n currentClassPartObject.nextPart.set(pathPart, {\n nextPart: new Map(),\n validators: []\n });\n }\n currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);\n });\n return currentClassPartObject;\n}\nfunction isThemeGetter(func) {\n return func.isThemeGetter;\n}\nfunction getPrefixedClassGroupEntries(classGroupEntries, prefix) {\n if (!prefix) {\n return classGroupEntries;\n }\n return classGroupEntries.map(function (_ref4) {\n var classGroupId = _ref4[0],\n classGroup = _ref4[1];\n var prefixedClassGroup = classGroup.map(function (classDefinition) {\n if (typeof classDefinition === 'string') {\n return prefix + classDefinition;\n }\n if (typeof classDefinition === 'object') {\n return Object.fromEntries(Object.entries(classDefinition).map(function (_ref5) {\n var key = _ref5[0],\n value = _ref5[1];\n return [prefix + key, value];\n }));\n }\n return classDefinition;\n });\n return [classGroupId, prefixedClassGroup];\n });\n}\n\nexport { createClassMap, createClassUtils };\n//# sourceMappingURL=class-utils.mjs.map\n","// LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance\nfunction createLruCache(maxCacheSize) {\n if (maxCacheSize < 1) {\n return {\n get: function get() {\n return undefined;\n },\n set: function set() {}\n };\n }\n var cacheSize = 0;\n var cache = new Map();\n var previousCache = new Map();\n function update(key, value) {\n cache.set(key, value);\n cacheSize++;\n if (cacheSize > maxCacheSize) {\n cacheSize = 0;\n previousCache = cache;\n cache = new Map();\n }\n }\n return {\n get: function get(key) {\n var value = cache.get(key);\n if (value !== undefined) {\n return value;\n }\n if ((value = previousCache.get(key)) !== undefined) {\n update(key, value);\n return value;\n }\n },\n set: function set(key, value) {\n if (cache.has(key)) {\n cache.set(key, value);\n } else {\n update(key, value);\n }\n }\n };\n}\n\nexport { createLruCache };\n//# sourceMappingURL=lru-cache.mjs.map\n","var IMPORTANT_MODIFIER = '!';\nfunction createSplitModifiers(config) {\n var separator = config.separator || ':';\n var isSeparatorSingleCharacter = separator.length === 1;\n var firstSeparatorCharacter = separator[0];\n var separatorLength = separator.length;\n // splitModifiers inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js\n return function splitModifiers(className) {\n var modifiers = [];\n var bracketDepth = 0;\n var modifierStart = 0;\n var postfixModifierPosition;\n for (var index = 0; index < className.length; index++) {\n var currentCharacter = className[index];\n if (bracketDepth === 0) {\n if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {\n modifiers.push(className.slice(modifierStart, index));\n modifierStart = index + separatorLength;\n continue;\n }\n if (currentCharacter === '/') {\n postfixModifierPosition = index;\n continue;\n }\n }\n if (currentCharacter === '[') {\n bracketDepth++;\n } else if (currentCharacter === ']') {\n bracketDepth--;\n }\n }\n var baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);\n var hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);\n var baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;\n var maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;\n return {\n modifiers: modifiers,\n hasImportantModifier: hasImportantModifier,\n baseClassName: baseClassName,\n maybePostfixModifierPosition: maybePostfixModifierPosition\n };\n };\n}\n/**\n * Sorts modifiers according to following schema:\n * - Predefined modifiers are sorted alphabetically\n * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it\n */\nfunction sortModifiers(modifiers) {\n if (modifiers.length <= 1) {\n return modifiers;\n }\n var sortedModifiers = [];\n var unsortedModifiers = [];\n modifiers.forEach(function (modifier) {\n var isArbitraryVariant = modifier[0] === '[';\n if (isArbitraryVariant) {\n sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort().concat([modifier]));\n unsortedModifiers = [];\n } else {\n unsortedModifiers.push(modifier);\n }\n });\n sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort());\n return sortedModifiers;\n}\n\nexport { IMPORTANT_MODIFIER, createSplitModifiers, sortModifiers };\n//# sourceMappingURL=modifier-utils.mjs.map\n","import { createClassUtils } from './class-utils.mjs';\nimport { createLruCache } from './lru-cache.mjs';\nimport { createSplitModifiers } from './modifier-utils.mjs';\n\nfunction createConfigUtils(config) {\n return {\n cache: createLruCache(config.cacheSize),\n splitModifiers: createSplitModifiers(config),\n ...createClassUtils(config)\n };\n}\n\nexport { createConfigUtils };\n//# sourceMappingURL=config-utils.mjs.map\n","import { sortModifiers, IMPORTANT_MODIFIER } from './modifier-utils.mjs';\n\nvar SPLIT_CLASSES_REGEX = /\\s+/;\nfunction mergeClassList(classList, configUtils) {\n var splitModifiers = configUtils.splitModifiers,\n getClassGroupId = configUtils.getClassGroupId,\n getConflictingClassGroupIds = configUtils.getConflictingClassGroupIds;\n /**\n * Set of classGroupIds in following format:\n * `{importantModifier}{variantModifiers}{classGroupId}`\n * @example 'float'\n * @example 'hover:focus:bg-color'\n * @example 'md:!pr'\n */\n var classGroupsInConflict = new Set();\n return classList.trim().split(SPLIT_CLASSES_REGEX).map(function (originalClassName) {\n var _splitModifiers = splitModifiers(originalClassName),\n modifiers = _splitModifiers.modifiers,\n hasImportantModifier = _splitModifiers.hasImportantModifier,\n baseClassName = _splitModifiers.baseClassName,\n maybePostfixModifierPosition = _splitModifiers.maybePostfixModifierPosition;\n var classGroupId = getClassGroupId(maybePostfixModifierPosition ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);\n var hasPostfixModifier = Boolean(maybePostfixModifierPosition);\n if (!classGroupId) {\n if (!maybePostfixModifierPosition) {\n return {\n isTailwindClass: false,\n originalClassName: originalClassName\n };\n }\n classGroupId = getClassGroupId(baseClassName);\n if (!classGroupId) {\n return {\n isTailwindClass: false,\n originalClassName: originalClassName\n };\n }\n hasPostfixModifier = false;\n }\n var variantModifier = sortModifiers(modifiers).join(':');\n var modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;\n return {\n isTailwindClass: true,\n modifierId: modifierId,\n classGroupId: classGroupId,\n originalClassName: originalClassName,\n hasPostfixModifier: hasPostfixModifier\n };\n }).reverse()\n // Last class in conflict wins, so we need to filter conflicting classes in reverse order.\n .filter(function (parsed) {\n if (!parsed.isTailwindClass) {\n return true;\n }\n var modifierId = parsed.modifierId,\n classGroupId = parsed.classGroupId,\n hasPostfixModifier = parsed.hasPostfixModifier;\n var classId = modifierId + classGroupId;\n if (classGroupsInConflict.has(classId)) {\n return false;\n }\n classGroupsInConflict.add(classId);\n getConflictingClassGroupIds(classGroupId, hasPostfixModifier).forEach(function (group) {\n return classGroupsInConflict.add(modifierId + group);\n });\n return true;\n }).reverse().map(function (parsed) {\n return parsed.originalClassName;\n }).join(' ');\n}\n\nexport { mergeClassList };\n//# sourceMappingURL=merge-classlist.mjs.map\n","import { createConfigUtils } from './config-utils.mjs';\nimport { mergeClassList } from './merge-classlist.mjs';\nimport { twJoin } from './tw-join.mjs';\n\nfunction createTailwindMerge() {\n for (var _len = arguments.length, createConfig = new Array(_len), _key = 0; _key < _len; _key++) {\n createConfig[_key] = arguments[_key];\n }\n var configUtils;\n var cacheGet;\n var cacheSet;\n var functionToCall = initTailwindMerge;\n function initTailwindMerge(classList) {\n var firstCreateConfig = createConfig[0],\n restCreateConfig = createConfig.slice(1);\n var config = restCreateConfig.reduce(function (previousConfig, createConfigCurrent) {\n return createConfigCurrent(previousConfig);\n }, firstCreateConfig());\n configUtils = createConfigUtils(config);\n cacheGet = configUtils.cache.get;\n cacheSet = configUtils.cache.set;\n functionToCall = tailwindMerge;\n return tailwindMerge(classList);\n }\n function tailwindMerge(classList) {\n var cachedResult = cacheGet(classList);\n if (cachedResult) {\n return cachedResult;\n }\n var result = mergeClassList(classList, configUtils);\n cacheSet(classList, result);\n return result;\n }\n return function callTailwindMerge() {\n return functionToCall(twJoin.apply(null, arguments));\n };\n}\n\nexport { createTailwindMerge };\n//# sourceMappingURL=create-tailwind-merge.mjs.map\n","function fromTheme(key) {\n var themeGetter = function themeGetter(theme) {\n return theme[key] || [];\n };\n themeGetter.isThemeGetter = true;\n return themeGetter;\n}\n\nexport { fromTheme };\n//# sourceMappingURL=from-theme.mjs.map\n","var arbitraryValueRegex = /^\\[(?:([a-z-]+):)?(.+)\\]$/i;\nvar fractionRegex = /^\\d+\\/\\d+$/;\nvar stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);\nvar tshirtUnitRegex = /^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/;\nvar lengthUnitRegex = /\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/;\n// Shadow always begins with x and y offset separated by underscore\nvar shadowRegex = /^-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/;\nfunction isLength(value) {\n return isNumber(value) || stringLengths.has(value) || fractionRegex.test(value) || isArbitraryLength(value);\n}\nfunction isArbitraryLength(value) {\n return getIsArbitraryValue(value, 'length', isLengthOnly);\n}\nfunction isArbitrarySize(value) {\n return getIsArbitraryValue(value, 'size', isNever);\n}\nfunction isArbitraryPosition(value) {\n return getIsArbitraryValue(value, 'position', isNever);\n}\nfunction isArbitraryUrl(value) {\n return getIsArbitraryValue(value, 'url', isUrl);\n}\nfunction isArbitraryNumber(value) {\n return getIsArbitraryValue(value, 'number', isNumber);\n}\n/**\n * @deprecated Will be removed in next major version. Use `isArbitraryNumber` instead.\n */\nvar isArbitraryWeight = isArbitraryNumber;\nfunction isNumber(value) {\n return !Number.isNaN(Number(value));\n}\nfunction isPercent(value) {\n return value.endsWith('%') && isNumber(value.slice(0, -1));\n}\nfunction isInteger(value) {\n return isIntegerOnly(value) || getIsArbitraryValue(value, 'number', isIntegerOnly);\n}\nfunction isArbitraryValue(value) {\n return arbitraryValueRegex.test(value);\n}\nfunction isAny() {\n return true;\n}\nfunction isTshirtSize(value) {\n return tshirtUnitRegex.test(value);\n}\nfunction isArbitraryShadow(value) {\n return getIsArbitraryValue(value, '', isShadow);\n}\nfunction getIsArbitraryValue(value, label, testValue) {\n var result = arbitraryValueRegex.exec(value);\n if (result) {\n if (result[1]) {\n return result[1] === label;\n }\n return testValue(result[2]);\n }\n return false;\n}\nfunction isLengthOnly(value) {\n return lengthUnitRegex.test(value);\n}\nfunction isNever() {\n return false;\n}\nfunction isUrl(value) {\n return value.startsWith('url(');\n}\nfunction isIntegerOnly(value) {\n return Number.isInteger(Number(value));\n}\nfunction isShadow(value) {\n return shadowRegex.test(value);\n}\n\nexport { isAny, isArbitraryLength, isArbitraryNumber, isArbitraryPosition, isArbitraryShadow, isArbitrarySize, isArbitraryUrl, isArbitraryValue, isArbitraryWeight, isInteger, isLength, isNumber, isPercent, isTshirtSize };\n//# sourceMappingURL=validators.mjs.map\n","import { fromTheme } from './from-theme.mjs';\nimport { isAny, isLength, isTshirtSize, isArbitraryValue, isPercent, isArbitraryLength, isInteger, isArbitraryNumber, isNumber, isArbitraryPosition, isArbitrarySize, isArbitraryUrl, isArbitraryShadow } from './validators.mjs';\n\nfunction getDefaultConfig() {\n var colors = fromTheme('colors');\n var spacing = fromTheme('spacing');\n var blur = fromTheme('blur');\n var brightness = fromTheme('brightness');\n var borderColor = fromTheme('borderColor');\n var borderRadius = fromTheme('borderRadius');\n var borderSpacing = fromTheme('borderSpacing');\n var borderWidth = fromTheme('borderWidth');\n var contrast = fromTheme('contrast');\n var grayscale = fromTheme('grayscale');\n var hueRotate = fromTheme('hueRotate');\n var invert = fromTheme('invert');\n var gap = fromTheme('gap');\n var gradientColorStops = fromTheme('gradientColorStops');\n var gradientColorStopPositions = fromTheme('gradientColorStopPositions');\n var inset = fromTheme('inset');\n var margin = fromTheme('margin');\n var opacity = fromTheme('opacity');\n var padding = fromTheme('padding');\n var saturate = fromTheme('saturate');\n var scale = fromTheme('scale');\n var sepia = fromTheme('sepia');\n var skew = fromTheme('skew');\n var space = fromTheme('space');\n var translate = fromTheme('translate');\n var getOverscroll = function getOverscroll() {\n return ['auto', 'contain', 'none'];\n };\n var getOverflow = function getOverflow() {\n return ['auto', 'hidden', 'clip', 'visible', 'scroll'];\n };\n var getSpacingWithAutoAndArbitrary = function getSpacingWithAutoAndArbitrary() {\n return ['auto', isArbitraryValue, spacing];\n };\n var getSpacingWithArbitrary = function getSpacingWithArbitrary() {\n return [isArbitraryValue, spacing];\n };\n var getLengthWithEmpty = function getLengthWithEmpty() {\n return ['', isLength];\n };\n var getNumberWithAutoAndArbitrary = function getNumberWithAutoAndArbitrary() {\n return ['auto', isNumber, isArbitraryValue];\n };\n var getPositions = function getPositions() {\n return ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];\n };\n var getLineStyles = function getLineStyles() {\n return ['solid', 'dashed', 'dotted', 'double', 'none'];\n };\n var getBlendModes = function getBlendModes() {\n return ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity', 'plus-lighter'];\n };\n var getAlign = function getAlign() {\n return ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];\n };\n var getZeroAndEmpty = function getZeroAndEmpty() {\n return ['', '0', isArbitraryValue];\n };\n var getBreaks = function getBreaks() {\n return ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];\n };\n var getNumber = function getNumber() {\n return [isNumber, isArbitraryNumber];\n };\n var getNumberAndArbitrary = function getNumberAndArbitrary() {\n return [isNumber, isArbitraryValue];\n };\n return {\n cacheSize: 500,\n theme: {\n colors: [isAny],\n spacing: [isLength],\n blur: ['none', '', isTshirtSize, isArbitraryValue],\n brightness: getNumber(),\n borderColor: [colors],\n borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],\n borderSpacing: getSpacingWithArbitrary(),\n borderWidth: getLengthWithEmpty(),\n contrast: getNumber(),\n grayscale: getZeroAndEmpty(),\n hueRotate: getNumberAndArbitrary(),\n invert: getZeroAndEmpty(),\n gap: getSpacingWithArbitrary(),\n gradientColorStops: [colors],\n gradientColorStopPositions: [isPercent, isArbitraryLength],\n inset: getSpacingWithAutoAndArbitrary(),\n margin: getSpacingWithAutoAndArbitrary(),\n opacity: getNumber(),\n padding: getSpacingWithArbitrary(),\n saturate: getNumber(),\n scale: getNumber(),\n sepia: getZeroAndEmpty(),\n skew: getNumberAndArbitrary(),\n space: getSpacingWithArbitrary(),\n translate: getSpacingWithArbitrary()\n },\n classGroups: {\n // Layout\n /**\n * Aspect Ratio\n * @see https://tailwindcss.com/docs/aspect-ratio\n */\n aspect: [{\n aspect: ['auto', 'square', 'video', isArbitraryValue]\n }],\n /**\n * Container\n * @see https://tailwindcss.com/docs/container\n */\n container: ['container'],\n /**\n * Columns\n * @see https://tailwindcss.com/docs/columns\n */\n columns: [{\n columns: [isTshirtSize]\n }],\n /**\n * Break After\n * @see https://tailwindcss.com/docs/break-after\n */\n 'break-after': [{\n 'break-after': getBreaks()\n }],\n /**\n * Break Before\n * @see https://tailwindcss.com/docs/break-before\n */\n 'break-before': [{\n 'break-before': getBreaks()\n }],\n /**\n * Break Inside\n * @see https://tailwindcss.com/docs/break-inside\n */\n 'break-inside': [{\n 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']\n }],\n /**\n * Box Decoration Break\n * @see https://tailwindcss.com/docs/box-decoration-break\n */\n 'box-decoration': [{\n 'box-decoration': ['slice', 'clone']\n }],\n /**\n * Box Sizing\n * @see https://tailwindcss.com/docs/box-sizing\n */\n box: [{\n box: ['border', 'content']\n }],\n /**\n * Display\n * @see https://tailwindcss.com/docs/display\n */\n display: ['block', 'inline-block', 'inline', 'flex', 'inline-flex', 'table', 'inline-table', 'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row-group', 'table-row', 'flow-root', 'grid', 'inline-grid', 'contents', 'list-item', 'hidden'],\n /**\n * Floats\n * @see https://tailwindcss.com/docs/float\n */\n \"float\": [{\n \"float\": ['right', 'left', 'none']\n }],\n /**\n * Clear\n * @see https://tailwindcss.com/docs/clear\n */\n clear: [{\n clear: ['left', 'right', 'both', 'none']\n }],\n /**\n * Isolation\n * @see https://tailwindcss.com/docs/isolation\n */\n isolation: ['isolate', 'isolation-auto'],\n /**\n * Object Fit\n * @see https://tailwindcss.com/docs/object-fit\n */\n 'object-fit': [{\n object: ['contain', 'cover', 'fill', 'none', 'scale-down']\n }],\n /**\n * Object Position\n * @see https://tailwindcss.com/docs/object-position\n */\n 'object-position': [{\n object: [].concat(getPositions(), [isArbitraryValue])\n }],\n /**\n * Overflow\n * @see https://tailwindcss.com/docs/overflow\n */\n overflow: [{\n overflow: getOverflow()\n }],\n /**\n * Overflow X\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-x': [{\n 'overflow-x': getOverflow()\n }],\n /**\n * Overflow Y\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-y': [{\n 'overflow-y': getOverflow()\n }],\n /**\n * Overscroll Behavior\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n overscroll: [{\n overscroll: getOverscroll()\n }],\n /**\n * Overscroll Behavior X\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-x': [{\n 'overscroll-x': getOverscroll()\n }],\n /**\n * Overscroll Behavior Y\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-y': [{\n 'overscroll-y': getOverscroll()\n }],\n /**\n * Position\n * @see https://tailwindcss.com/docs/position\n */\n position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],\n /**\n * Top / Right / Bottom / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n inset: [{\n inset: [inset]\n }],\n /**\n * Right / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-x': [{\n 'inset-x': [inset]\n }],\n /**\n * Top / Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-y': [{\n 'inset-y': [inset]\n }],\n /**\n * Start\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n start: [{\n start: [inset]\n }],\n /**\n * End\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n end: [{\n end: [inset]\n }],\n /**\n * Top\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n top: [{\n top: [inset]\n }],\n /**\n * Right\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n right: [{\n right: [inset]\n }],\n /**\n * Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n bottom: [{\n bottom: [inset]\n }],\n /**\n * Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n left: [{\n left: [inset]\n }],\n /**\n * Visibility\n * @see https://tailwindcss.com/docs/visibility\n */\n visibility: ['visible', 'invisible', 'collapse'],\n /**\n * Z-Index\n * @see https://tailwindcss.com/docs/z-index\n */\n z: [{\n z: ['auto', isInteger]\n }],\n // Flexbox and Grid\n /**\n * Flex Basis\n * @see https://tailwindcss.com/docs/flex-basis\n */\n basis: [{\n basis: getSpacingWithAutoAndArbitrary()\n }],\n /**\n * Flex Direction\n * @see https://tailwindcss.com/docs/flex-direction\n */\n 'flex-direction': [{\n flex: ['row', 'row-reverse', 'col', 'col-reverse']\n }],\n /**\n * Flex Wrap\n * @see https://tailwindcss.com/docs/flex-wrap\n */\n 'flex-wrap': [{\n flex: ['wrap', 'wrap-reverse', 'nowrap']\n }],\n /**\n * Flex\n * @see https://tailwindcss.com/docs/flex\n */\n flex: [{\n flex: ['1', 'auto', 'initial', 'none', isArbitraryValue]\n }],\n /**\n * Flex Grow\n * @see https://tailwindcss.com/docs/flex-grow\n */\n grow: [{\n grow: getZeroAndEmpty()\n }],\n /**\n * Flex Shrink\n * @see https://tailwindcss.com/docs/flex-shrink\n */\n shrink: [{\n shrink: getZeroAndEmpty()\n }],\n /**\n * Order\n * @see https://tailwindcss.com/docs/order\n */\n order: [{\n order: ['first', 'last', 'none', isInteger]\n }],\n /**\n * Grid Template Columns\n * @see https://tailwindcss.com/docs/grid-template-columns\n */\n 'grid-cols': [{\n 'grid-cols': [isAny]\n }],\n /**\n * Grid Column Start / End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start-end': [{\n col: ['auto', {\n span: ['full', isInteger]\n }, isArbitraryValue]\n }],\n /**\n * Grid Column Start\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start': [{\n 'col-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Column End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-end': [{\n 'col-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Template Rows\n * @see https://tailwindcss.com/docs/grid-template-rows\n */\n 'grid-rows': [{\n 'grid-rows': [isAny]\n }],\n /**\n * Grid Row Start / End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start-end': [{\n row: ['auto', {\n span: [isInteger]\n }, isArbitraryValue]\n }],\n /**\n * Grid Row Start\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start': [{\n 'row-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Row End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-end': [{\n 'row-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Auto Flow\n * @see https://tailwindcss.com/docs/grid-auto-flow\n */\n 'grid-flow': [{\n 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']\n }],\n /**\n * Grid Auto Columns\n * @see https://tailwindcss.com/docs/grid-auto-columns\n */\n 'auto-cols': [{\n 'auto-cols': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Grid Auto Rows\n * @see https://tailwindcss.com/docs/grid-auto-rows\n */\n 'auto-rows': [{\n 'auto-rows': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Gap\n * @see https://tailwindcss.com/docs/gap\n */\n gap: [{\n gap: [gap]\n }],\n /**\n * Gap X\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-x': [{\n 'gap-x': [gap]\n }],\n /**\n * Gap Y\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-y': [{\n 'gap-y': [gap]\n }],\n /**\n * Justify Content\n * @see https://tailwindcss.com/docs/justify-content\n */\n 'justify-content': [{\n justify: ['normal'].concat(getAlign())\n }],\n /**\n * Justify Items\n * @see https://tailwindcss.com/docs/justify-items\n */\n 'justify-items': [{\n 'justify-items': ['start', 'end', 'center', 'stretch']\n }],\n /**\n * Justify Self\n * @see https://tailwindcss.com/docs/justify-self\n */\n 'justify-self': [{\n 'justify-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n /**\n * Align Content\n * @see https://tailwindcss.com/docs/align-content\n */\n 'align-content': [{\n content: ['normal'].concat(getAlign(), ['baseline'])\n }],\n /**\n * Align Items\n * @see https://tailwindcss.com/docs/align-items\n */\n 'align-items': [{\n items: ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Align Self\n * @see https://tailwindcss.com/docs/align-self\n */\n 'align-self': [{\n self: ['auto', 'start', 'end', 'center', 'stretch', 'baseline']\n }],\n /**\n * Place Content\n * @see https://tailwindcss.com/docs/place-content\n */\n 'place-content': [{\n 'place-content': [].concat(getAlign(), ['baseline'])\n }],\n /**\n * Place Items\n * @see https://tailwindcss.com/docs/place-items\n */\n 'place-items': [{\n 'place-items': ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Place Self\n * @see https://tailwindcss.com/docs/place-self\n */\n 'place-self': [{\n 'place-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n // Spacing\n /**\n * Padding\n * @see https://tailwindcss.com/docs/padding\n */\n p: [{\n p: [padding]\n }],\n /**\n * Padding X\n * @see https://tailwindcss.com/docs/padding\n */\n px: [{\n px: [padding]\n }],\n /**\n * Padding Y\n * @see https://tailwindcss.com/docs/padding\n */\n py: [{\n py: [padding]\n }],\n /**\n * Padding Start\n * @see https://tailwindcss.com/docs/padding\n */\n ps: [{\n ps: [padding]\n }],\n /**\n * Padding End\n * @see https://tailwindcss.com/docs/padding\n */\n pe: [{\n pe: [padding]\n }],\n /**\n * Padding Top\n * @see https://tailwindcss.com/docs/padding\n */\n pt: [{\n pt: [padding]\n }],\n /**\n * Padding Right\n * @see https://tailwindcss.com/docs/padding\n */\n pr: [{\n pr: [padding]\n }],\n /**\n * Padding Bottom\n * @see https://tailwindcss.com/docs/padding\n */\n pb: [{\n pb: [padding]\n }],\n /**\n * Padding Left\n * @see https://tailwindcss.com/docs/padding\n */\n pl: [{\n pl: [padding]\n }],\n /**\n * Margin\n * @see https://tailwindcss.com/docs/margin\n */\n m: [{\n m: [margin]\n }],\n /**\n * Margin X\n * @see https://tailwindcss.com/docs/margin\n */\n mx: [{\n mx: [margin]\n }],\n /**\n * Margin Y\n * @see https://tailwindcss.com/docs/margin\n */\n my: [{\n my: [margin]\n }],\n /**\n * Margin Start\n * @see https://tailwindcss.com/docs/margin\n */\n ms: [{\n ms: [margin]\n }],\n /**\n * Margin End\n * @see https://tailwindcss.com/docs/margin\n */\n me: [{\n me: [margin]\n }],\n /**\n * Margin Top\n * @see https://tailwindcss.com/docs/margin\n */\n mt: [{\n mt: [margin]\n }],\n /**\n * Margin Right\n * @see https://tailwindcss.com/docs/margin\n */\n mr: [{\n mr: [margin]\n }],\n /**\n * Margin Bottom\n * @see https://tailwindcss.com/docs/margin\n */\n mb: [{\n mb: [margin]\n }],\n /**\n * Margin Left\n * @see https://tailwindcss.com/docs/margin\n */\n ml: [{\n ml: [margin]\n }],\n /**\n * Space Between X\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x': [{\n 'space-x': [space]\n }],\n /**\n * Space Between X Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x-reverse': ['space-x-reverse'],\n /**\n * Space Between Y\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y': [{\n 'space-y': [space]\n }],\n /**\n * Space Between Y Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y-reverse': ['space-y-reverse'],\n // Sizing\n /**\n * Width\n * @see https://tailwindcss.com/docs/width\n */\n w: [{\n w: ['auto', 'min', 'max', 'fit', isArbitraryValue, spacing]\n }],\n /**\n * Min-Width\n * @see https://tailwindcss.com/docs/min-width\n */\n 'min-w': [{\n 'min-w': ['min', 'max', 'fit', isArbitraryValue, isLength]\n }],\n /**\n * Max-Width\n * @see https://tailwindcss.com/docs/max-width\n */\n 'max-w': [{\n 'max-w': ['0', 'none', 'full', 'min', 'max', 'fit', 'prose', {\n screen: [isTshirtSize]\n }, isTshirtSize, isArbitraryValue]\n }],\n /**\n * Height\n * @see https://tailwindcss.com/docs/height\n */\n h: [{\n h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']\n }],\n /**\n * Min-Height\n * @see https://tailwindcss.com/docs/min-height\n */\n 'min-h': [{\n 'min-h': ['min', 'max', 'fit', isArbitraryValue, isLength]\n }],\n /**\n * Max-Height\n * @see https://tailwindcss.com/docs/max-height\n */\n 'max-h': [{\n 'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit']\n }],\n // Typography\n /**\n * Font Size\n * @see https://tailwindcss.com/docs/font-size\n */\n 'font-size': [{\n text: ['base', isTshirtSize, isArbitraryLength]\n }],\n /**\n * Font Smoothing\n * @see https://tailwindcss.com/docs/font-smoothing\n */\n 'font-smoothing': ['antialiased', 'subpixel-antialiased'],\n /**\n * Font Style\n * @see https://tailwindcss.com/docs/font-style\n */\n 'font-style': ['italic', 'not-italic'],\n /**\n * Font Weight\n * @see https://tailwindcss.com/docs/font-weight\n */\n 'font-weight': [{\n font: ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black', isArbitraryNumber]\n }],\n /**\n * Font Family\n * @see https://tailwindcss.com/docs/font-family\n */\n 'font-family': [{\n font: [isAny]\n }],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-normal': ['normal-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-ordinal': ['ordinal'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-slashed-zero': ['slashed-zero'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-figure': ['lining-nums', 'oldstyle-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-spacing': ['proportional-nums', 'tabular-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-fraction': ['diagonal-fractions', 'stacked-fractons'],\n /**\n * Letter Spacing\n * @see https://tailwindcss.com/docs/letter-spacing\n */\n tracking: [{\n tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest', isArbitraryValue]\n }],\n /**\n * Line Clamp\n * @see https://tailwindcss.com/docs/line-clamp\n */\n 'line-clamp': [{\n 'line-clamp': ['none', isNumber, isArbitraryNumber]\n }],\n /**\n * Line Height\n * @see https://tailwindcss.com/docs/line-height\n */\n leading: [{\n leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isArbitraryValue, isLength]\n }],\n /**\n * List Style Image\n * @see https://tailwindcss.com/docs/list-style-image\n */\n 'list-image': [{\n 'list-image': ['none', isArbitraryValue]\n }],\n /**\n * List Style Type\n * @see https://tailwindcss.com/docs/list-style-type\n */\n 'list-style-type': [{\n list: ['none', 'disc', 'decimal', isArbitraryValue]\n }],\n /**\n * List Style Position\n * @see https://tailwindcss.com/docs/list-style-position\n */\n 'list-style-position': [{\n list: ['inside', 'outside']\n }],\n /**\n * Placeholder Color\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/placeholder-color\n */\n 'placeholder-color': [{\n placeholder: [colors]\n }],\n /**\n * Placeholder Opacity\n * @see https://tailwindcss.com/docs/placeholder-opacity\n */\n 'placeholder-opacity': [{\n 'placeholder-opacity': [opacity]\n }],\n /**\n * Text Alignment\n * @see https://tailwindcss.com/docs/text-align\n */\n 'text-alignment': [{\n text: ['left', 'center', 'right', 'justify', 'start', 'end']\n }],\n /**\n * Text Color\n * @see https://tailwindcss.com/docs/text-color\n */\n 'text-color': [{\n text: [colors]\n }],\n /**\n * Text Opacity\n * @see https://tailwindcss.com/docs/text-opacity\n */\n 'text-opacity': [{\n 'text-opacity': [opacity]\n }],\n /**\n * Text Decoration\n * @see https://tailwindcss.com/docs/text-decoration\n */\n 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],\n /**\n * Text Decoration Style\n * @see https://tailwindcss.com/docs/text-decoration-style\n */\n 'text-decoration-style': [{\n decoration: [].concat(getLineStyles(), ['wavy'])\n }],\n /**\n * Text Decoration Thickness\n * @see https://tailwindcss.com/docs/text-decoration-thickness\n */\n 'text-decoration-thickness': [{\n decoration: ['auto', 'from-font', isLength]\n }],\n /**\n * Text Underline Offset\n * @see https://tailwindcss.com/docs/text-underline-offset\n */\n 'underline-offset': [{\n 'underline-offset': ['auto', isArbitraryValue, isLength]\n }],\n /**\n * Text Decoration Color\n * @see https://tailwindcss.com/docs/text-decoration-color\n */\n 'text-decoration-color': [{\n decoration: [colors]\n }],\n /**\n * Text Transform\n * @see https://tailwindcss.com/docs/text-transform\n */\n 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],\n /**\n * Text Overflow\n * @see https://tailwindcss.com/docs/text-overflow\n */\n 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],\n /**\n * Text Indent\n * @see https://tailwindcss.com/docs/text-indent\n */\n indent: [{\n indent: getSpacingWithArbitrary()\n }],\n /**\n * Vertical Alignment\n * @see https://tailwindcss.com/docs/vertical-align\n */\n 'vertical-align': [{\n align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryValue]\n }],\n /**\n * Whitespace\n * @see https://tailwindcss.com/docs/whitespace\n */\n whitespace: [{\n whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']\n }],\n /**\n * Word Break\n * @see https://tailwindcss.com/docs/word-break\n */\n \"break\": [{\n \"break\": ['normal', 'words', 'all', 'keep']\n }],\n /**\n * Hyphens\n * @see https://tailwindcss.com/docs/hyphens\n */\n hyphens: [{\n hyphens: ['none', 'manual', 'auto']\n }],\n /**\n * Content\n * @see https://tailwindcss.com/docs/content\n */\n content: [{\n content: ['none', isArbitraryValue]\n }],\n // Backgrounds\n /**\n * Background Attachment\n * @see https://tailwindcss.com/docs/background-attachment\n */\n 'bg-attachment': [{\n bg: ['fixed', 'local', 'scroll']\n }],\n /**\n * Background Clip\n * @see https://tailwindcss.com/docs/background-clip\n */\n 'bg-clip': [{\n 'bg-clip': ['border', 'padding', 'content', 'text']\n }],\n /**\n * Background Opacity\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/background-opacity\n */\n 'bg-opacity': [{\n 'bg-opacity': [opacity]\n }],\n /**\n * Background Origin\n * @see https://tailwindcss.com/docs/background-origin\n */\n 'bg-origin': [{\n 'bg-origin': ['border', 'padding', 'content']\n }],\n /**\n * Background Position\n * @see https://tailwindcss.com/docs/background-position\n */\n 'bg-position': [{\n bg: [].concat(getPositions(), [isArbitraryPosition])\n }],\n /**\n * Background Repeat\n * @see https://tailwindcss.com/docs/background-repeat\n */\n 'bg-repeat': [{\n bg: ['no-repeat', {\n repeat: ['', 'x', 'y', 'round', 'space']\n }]\n }],\n /**\n * Background Size\n * @see https://tailwindcss.com/docs/background-size\n */\n 'bg-size': [{\n bg: ['auto', 'cover', 'contain', isArbitrarySize]\n }],\n /**\n * Background Image\n * @see https://tailwindcss.com/docs/background-image\n */\n 'bg-image': [{\n bg: ['none', {\n 'gradient-to': ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']\n }, isArbitraryUrl]\n }],\n /**\n * Background Color\n * @see https://tailwindcss.com/docs/background-color\n */\n 'bg-color': [{\n bg: [colors]\n }],\n /**\n * Gradient Color Stops From Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from-pos': [{\n from: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops Via Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via-pos': [{\n via: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops To Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to-pos': [{\n to: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops From\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from': [{\n from: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops Via\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via': [{\n via: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops To\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to': [{\n to: [gradientColorStops]\n }],\n // Borders\n /**\n * Border Radius\n * @see https://tailwindcss.com/docs/border-radius\n */\n rounded: [{\n rounded: [borderRadius]\n }],\n /**\n * Border Radius Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-s': [{\n 'rounded-s': [borderRadius]\n }],\n /**\n * Border Radius End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-e': [{\n 'rounded-e': [borderRadius]\n }],\n /**\n * Border Radius Top\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-t': [{\n 'rounded-t': [borderRadius]\n }],\n /**\n * Border Radius Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-r': [{\n 'rounded-r': [borderRadius]\n }],\n /**\n * Border Radius Bottom\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-b': [{\n 'rounded-b': [borderRadius]\n }],\n /**\n * Border Radius Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-l': [{\n 'rounded-l': [borderRadius]\n }],\n /**\n * Border Radius Start Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ss': [{\n 'rounded-ss': [borderRadius]\n }],\n /**\n * Border Radius Start End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-se': [{\n 'rounded-se': [borderRadius]\n }],\n /**\n * Border Radius End End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ee': [{\n 'rounded-ee': [borderRadius]\n }],\n /**\n * Border Radius End Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-es': [{\n 'rounded-es': [borderRadius]\n }],\n /**\n * Border Radius Top Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tl': [{\n 'rounded-tl': [borderRadius]\n }],\n /**\n * Border Radius Top Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tr': [{\n 'rounded-tr': [borderRadius]\n }],\n /**\n * Border Radius Bottom Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-br': [{\n 'rounded-br': [borderRadius]\n }],\n /**\n * Border Radius Bottom Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-bl': [{\n 'rounded-bl': [borderRadius]\n }],\n /**\n * Border Width\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w': [{\n border: [borderWidth]\n }],\n /**\n * Border Width X\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-x': [{\n 'border-x': [borderWidth]\n }],\n /**\n * Border Width Y\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-y': [{\n 'border-y': [borderWidth]\n }],\n /**\n * Border Width Start\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-s': [{\n 'border-s': [borderWidth]\n }],\n /**\n * Border Width End\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-e': [{\n 'border-e': [borderWidth]\n }],\n /**\n * Border Width Top\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-t': [{\n 'border-t': [borderWidth]\n }],\n /**\n * Border Width Right\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-r': [{\n 'border-r': [borderWidth]\n }],\n /**\n * Border Width Bottom\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-b': [{\n 'border-b': [borderWidth]\n }],\n /**\n * Border Width Left\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-l': [{\n 'border-l': [borderWidth]\n }],\n /**\n * Border Opacity\n * @see https://tailwindcss.com/docs/border-opacity\n */\n 'border-opacity': [{\n 'border-opacity': [opacity]\n }],\n /**\n * Border Style\n * @see https://tailwindcss.com/docs/border-style\n */\n 'border-style': [{\n border: [].concat(getLineStyles(), ['hidden'])\n }],\n /**\n * Divide Width X\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x': [{\n 'divide-x': [borderWidth]\n }],\n /**\n * Divide Width X Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x-reverse': ['divide-x-reverse'],\n /**\n * Divide Width Y\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y': [{\n 'divide-y': [borderWidth]\n }],\n /**\n * Divide Width Y Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y-reverse': ['divide-y-reverse'],\n /**\n * Divide Opacity\n * @see https://tailwindcss.com/docs/divide-opacity\n */\n 'divide-opacity': [{\n 'divide-opacity': [opacity]\n }],\n /**\n * Divide Style\n * @see https://tailwindcss.com/docs/divide-style\n */\n 'divide-style': [{\n divide: getLineStyles()\n }],\n /**\n * Border Color\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color': [{\n border: [borderColor]\n }],\n /**\n * Border Color X\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-x': [{\n 'border-x': [borderColor]\n }],\n /**\n * Border Color Y\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-y': [{\n 'border-y': [borderColor]\n }],\n /**\n * Border Color Top\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-t': [{\n 'border-t': [borderColor]\n }],\n /**\n * Border Color Right\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-r': [{\n 'border-r': [borderColor]\n }],\n /**\n * Border Color Bottom\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-b': [{\n 'border-b': [borderColor]\n }],\n /**\n * Border Color Left\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-l': [{\n 'border-l': [borderColor]\n }],\n /**\n * Divide Color\n * @see https://tailwindcss.com/docs/divide-color\n */\n 'divide-color': [{\n divide: [borderColor]\n }],\n /**\n * Outline Style\n * @see https://tailwindcss.com/docs/outline-style\n */\n 'outline-style': [{\n outline: [''].concat(getLineStyles())\n }],\n /**\n * Outline Offset\n * @see https://tailwindcss.com/docs/outline-offset\n */\n 'outline-offset': [{\n 'outline-offset': [isArbitraryValue, isLength]\n }],\n /**\n * Outline Width\n * @see https://tailwindcss.com/docs/outline-width\n */\n 'outline-w': [{\n outline: [isLength]\n }],\n /**\n * Outline Color\n * @see https://tailwindcss.com/docs/outline-color\n */\n 'outline-color': [{\n outline: [colors]\n }],\n /**\n * Ring Width\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w': [{\n ring: getLengthWithEmpty()\n }],\n /**\n * Ring Width Inset\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w-inset': ['ring-inset'],\n /**\n * Ring Color\n * @see https://tailwindcss.com/docs/ring-color\n */\n 'ring-color': [{\n ring: [colors]\n }],\n /**\n * Ring Opacity\n * @see https://tailwindcss.com/docs/ring-opacity\n */\n 'ring-opacity': [{\n 'ring-opacity': [opacity]\n }],\n /**\n * Ring Offset Width\n * @see https://tailwindcss.com/docs/ring-offset-width\n */\n 'ring-offset-w': [{\n 'ring-offset': [isLength]\n }],\n /**\n * Ring Offset Color\n * @see https://tailwindcss.com/docs/ring-offset-color\n */\n 'ring-offset-color': [{\n 'ring-offset': [colors]\n }],\n // Effects\n /**\n * Box Shadow\n * @see https://tailwindcss.com/docs/box-shadow\n */\n shadow: [{\n shadow: ['', 'inner', 'none', isTshirtSize, isArbitraryShadow]\n }],\n /**\n * Box Shadow Color\n * @see https://tailwindcss.com/docs/box-shadow-color\n */\n 'shadow-color': [{\n shadow: [isAny]\n }],\n /**\n * Opacity\n * @see https://tailwindcss.com/docs/opacity\n */\n opacity: [{\n opacity: [opacity]\n }],\n /**\n * Mix Blend Mode\n * @see https://tailwindcss.com/docs/mix-blend-mode\n */\n 'mix-blend': [{\n 'mix-blend': getBlendModes()\n }],\n /**\n * Background Blend Mode\n * @see https://tailwindcss.com/docs/background-blend-mode\n */\n 'bg-blend': [{\n 'bg-blend': getBlendModes()\n }],\n // Filters\n /**\n * Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/filter\n */\n filter: [{\n filter: ['', 'none']\n }],\n /**\n * Blur\n * @see https://tailwindcss.com/docs/blur\n */\n blur: [{\n blur: [blur]\n }],\n /**\n * Brightness\n * @see https://tailwindcss.com/docs/brightness\n */\n brightness: [{\n brightness: [brightness]\n }],\n /**\n * Contrast\n * @see https://tailwindcss.com/docs/contrast\n */\n contrast: [{\n contrast: [contrast]\n }],\n /**\n * Drop Shadow\n * @see https://tailwindcss.com/docs/drop-shadow\n */\n 'drop-shadow': [{\n 'drop-shadow': ['', 'none', isTshirtSize, isArbitraryValue]\n }],\n /**\n * Grayscale\n * @see https://tailwindcss.com/docs/grayscale\n */\n grayscale: [{\n grayscale: [grayscale]\n }],\n /**\n * Hue Rotate\n * @see https://tailwindcss.com/docs/hue-rotate\n */\n 'hue-rotate': [{\n 'hue-rotate': [hueRotate]\n }],\n /**\n * Invert\n * @see https://tailwindcss.com/docs/invert\n */\n invert: [{\n invert: [invert]\n }],\n /**\n * Saturate\n * @see https://tailwindcss.com/docs/saturate\n */\n saturate: [{\n saturate: [saturate]\n }],\n /**\n * Sepia\n * @see https://tailwindcss.com/docs/sepia\n */\n sepia: [{\n sepia: [sepia]\n }],\n /**\n * Backdrop Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/backdrop-filter\n */\n 'backdrop-filter': [{\n 'backdrop-filter': ['', 'none']\n }],\n /**\n * Backdrop Blur\n * @see https://tailwindcss.com/docs/backdrop-blur\n */\n 'backdrop-blur': [{\n 'backdrop-blur': [blur]\n }],\n /**\n * Backdrop Brightness\n * @see https://tailwindcss.com/docs/backdrop-brightness\n */\n 'backdrop-brightness': [{\n 'backdrop-brightness': [brightness]\n }],\n /**\n * Backdrop Contrast\n * @see https://tailwindcss.com/docs/backdrop-contrast\n */\n 'backdrop-contrast': [{\n 'backdrop-contrast': [contrast]\n }],\n /**\n * Backdrop Grayscale\n * @see https://tailwindcss.com/docs/backdrop-grayscale\n */\n 'backdrop-grayscale': [{\n 'backdrop-grayscale': [grayscale]\n }],\n /**\n * Backdrop Hue Rotate\n * @see https://tailwindcss.com/docs/backdrop-hue-rotate\n */\n 'backdrop-hue-rotate': [{\n 'backdrop-hue-rotate': [hueRotate]\n }],\n /**\n * Backdrop Invert\n * @see https://tailwindcss.com/docs/backdrop-invert\n */\n 'backdrop-invert': [{\n 'backdrop-invert': [invert]\n }],\n /**\n * Backdrop Opacity\n * @see https://tailwindcss.com/docs/backdrop-opacity\n */\n 'backdrop-opacity': [{\n 'backdrop-opacity': [opacity]\n }],\n /**\n * Backdrop Saturate\n * @see https://tailwindcss.com/docs/backdrop-saturate\n */\n 'backdrop-saturate': [{\n 'backdrop-saturate': [saturate]\n }],\n /**\n * Backdrop Sepia\n * @see https://tailwindcss.com/docs/backdrop-sepia\n */\n 'backdrop-sepia': [{\n 'backdrop-sepia': [sepia]\n }],\n // Tables\n /**\n * Border Collapse\n * @see https://tailwindcss.com/docs/border-collapse\n */\n 'border-collapse': [{\n border: ['collapse', 'separate']\n }],\n /**\n * Border Spacing\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing': [{\n 'border-spacing': [borderSpacing]\n }],\n /**\n * Border Spacing X\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-x': [{\n 'border-spacing-x': [borderSpacing]\n }],\n /**\n * Border Spacing Y\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-y': [{\n 'border-spacing-y': [borderSpacing]\n }],\n /**\n * Table Layout\n * @see https://tailwindcss.com/docs/table-layout\n */\n 'table-layout': [{\n table: ['auto', 'fixed']\n }],\n /**\n * Caption Side\n * @see https://tailwindcss.com/docs/caption-side\n */\n caption: [{\n caption: ['top', 'bottom']\n }],\n // Transitions and Animation\n /**\n * Tranisition Property\n * @see https://tailwindcss.com/docs/transition-property\n */\n transition: [{\n transition: ['none', 'all', '', 'colors', 'opacity', 'shadow', 'transform', isArbitraryValue]\n }],\n /**\n * Transition Duration\n * @see https://tailwindcss.com/docs/transition-duration\n */\n duration: [{\n duration: getNumberAndArbitrary()\n }],\n /**\n * Transition Timing Function\n * @see https://tailwindcss.com/docs/transition-timing-function\n */\n ease: [{\n ease: ['linear', 'in', 'out', 'in-out', isArbitraryValue]\n }],\n /**\n * Transition Delay\n * @see https://tailwindcss.com/docs/transition-delay\n */\n delay: [{\n delay: getNumberAndArbitrary()\n }],\n /**\n * Animation\n * @see https://tailwindcss.com/docs/animation\n */\n animate: [{\n animate: ['none', 'spin', 'ping', 'pulse', 'bounce', isArbitraryValue]\n }],\n // Transforms\n /**\n * Transform\n * @see https://tailwindcss.com/docs/transform\n */\n transform: [{\n transform: ['', 'gpu', 'none']\n }],\n /**\n * Scale\n * @see https://tailwindcss.com/docs/scale\n */\n scale: [{\n scale: [scale]\n }],\n /**\n * Scale X\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-x': [{\n 'scale-x': [scale]\n }],\n /**\n * Scale Y\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-y': [{\n 'scale-y': [scale]\n }],\n /**\n * Rotate\n * @see https://tailwindcss.com/docs/rotate\n */\n rotate: [{\n rotate: [isInteger, isArbitraryValue]\n }],\n /**\n * Translate X\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-x': [{\n 'translate-x': [translate]\n }],\n /**\n * Translate Y\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-y': [{\n 'translate-y': [translate]\n }],\n /**\n * Skew X\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-x': [{\n 'skew-x': [skew]\n }],\n /**\n * Skew Y\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-y': [{\n 'skew-y': [skew]\n }],\n /**\n * Transform Origin\n * @see https://tailwindcss.com/docs/transform-origin\n */\n 'transform-origin': [{\n origin: ['center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left', isArbitraryValue]\n }],\n // Interactivity\n /**\n * Accent Color\n * @see https://tailwindcss.com/docs/accent-color\n */\n accent: [{\n accent: ['auto', colors]\n }],\n /**\n * Appearance\n * @see https://tailwindcss.com/docs/appearance\n */\n appearance: ['appearance-none'],\n /**\n * Cursor\n * @see https://tailwindcss.com/docs/cursor\n */\n cursor: [{\n cursor: ['auto', 'default', 'pointer', 'wait', 'text', 'move', 'help', 'not-allowed', 'none', 'context-menu', 'progress', 'cell', 'crosshair', 'vertical-text', 'alias', 'copy', 'no-drop', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 'e-resize', 's-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out', isArbitraryValue]\n }],\n /**\n * Caret Color\n * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities\n */\n 'caret-color': [{\n caret: [colors]\n }],\n /**\n * Pointer Events\n * @see https://tailwindcss.com/docs/pointer-events\n */\n 'pointer-events': [{\n 'pointer-events': ['none', 'auto']\n }],\n /**\n * Resize\n * @see https://tailwindcss.com/docs/resize\n */\n resize: [{\n resize: ['none', 'y', 'x', '']\n }],\n /**\n * Scroll Behavior\n * @see https://tailwindcss.com/docs/scroll-behavior\n */\n 'scroll-behavior': [{\n scroll: ['auto', 'smooth']\n }],\n /**\n * Scroll Margin\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-m': [{\n 'scroll-m': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin X\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mx': [{\n 'scroll-mx': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Y\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-my': [{\n 'scroll-my': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Start\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ms': [{\n 'scroll-ms': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin End\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-me': [{\n 'scroll-me': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Top\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mt': [{\n 'scroll-mt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Right\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mr': [{\n 'scroll-mr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Bottom\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mb': [{\n 'scroll-mb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Left\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ml': [{\n 'scroll-ml': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-p': [{\n 'scroll-p': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding X\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-px': [{\n 'scroll-px': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Y\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-py': [{\n 'scroll-py': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Start\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-ps': [{\n 'scroll-ps': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding End\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pe': [{\n 'scroll-pe': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Top\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pt': [{\n 'scroll-pt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Right\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pr': [{\n 'scroll-pr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Bottom\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pb': [{\n 'scroll-pb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Left\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pl': [{\n 'scroll-pl': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Snap Align\n * @see https://tailwindcss.com/docs/scroll-snap-align\n */\n 'snap-align': [{\n snap: ['start', 'end', 'center', 'align-none']\n }],\n /**\n * Scroll Snap Stop\n * @see https://tailwindcss.com/docs/scroll-snap-stop\n */\n 'snap-stop': [{\n snap: ['normal', 'always']\n }],\n /**\n * Scroll Snap Type\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-type': [{\n snap: ['none', 'x', 'y', 'both']\n }],\n /**\n * Scroll Snap Type Strictness\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-strictness': [{\n snap: ['mandatory', 'proximity']\n }],\n /**\n * Touch Action\n * @see https://tailwindcss.com/docs/touch-action\n */\n touch: [{\n touch: ['auto', 'none', 'pinch-zoom', 'manipulation', {\n pan: ['x', 'left', 'right', 'y', 'up', 'down']\n }]\n }],\n /**\n * User Select\n * @see https://tailwindcss.com/docs/user-select\n */\n select: [{\n select: ['none', 'text', 'all', 'auto']\n }],\n /**\n * Will Change\n * @see https://tailwindcss.com/docs/will-change\n */\n 'will-change': [{\n 'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryValue]\n }],\n // SVG\n /**\n * Fill\n * @see https://tailwindcss.com/docs/fill\n */\n fill: [{\n fill: [colors, 'none']\n }],\n /**\n * Stroke Width\n * @see https://tailwindcss.com/docs/stroke-width\n */\n 'stroke-w': [{\n stroke: [isLength, isArbitraryNumber]\n }],\n /**\n * Stroke\n * @see https://tailwindcss.com/docs/stroke\n */\n stroke: [{\n stroke: [colors, 'none']\n }],\n // Accessibility\n /**\n * Screen Readers\n * @see https://tailwindcss.com/docs/screen-readers\n */\n sr: ['sr-only', 'not-sr-only']\n },\n conflictingClassGroups: {\n overflow: ['overflow-x', 'overflow-y'],\n overscroll: ['overscroll-x', 'overscroll-y'],\n inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],\n 'inset-x': ['right', 'left'],\n 'inset-y': ['top', 'bottom'],\n flex: ['basis', 'grow', 'shrink'],\n gap: ['gap-x', 'gap-y'],\n p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],\n px: ['pr', 'pl'],\n py: ['pt', 'pb'],\n m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],\n mx: ['mr', 'ml'],\n my: ['mt', 'mb'],\n 'font-size': ['leading'],\n 'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],\n 'fvn-ordinal': ['fvn-normal'],\n 'fvn-slashed-zero': ['fvn-normal'],\n 'fvn-figure': ['fvn-normal'],\n 'fvn-spacing': ['fvn-normal'],\n 'fvn-fraction': ['fvn-normal'],\n rounded: ['rounded-s', 'rounded-e', 'rounded-t', 'rounded-r', 'rounded-b', 'rounded-l', 'rounded-ss', 'rounded-se', 'rounded-ee', 'rounded-es', 'rounded-tl', 'rounded-tr', 'rounded-br', 'rounded-bl'],\n 'rounded-s': ['rounded-ss', 'rounded-es'],\n 'rounded-e': ['rounded-se', 'rounded-ee'],\n 'rounded-t': ['rounded-tl', 'rounded-tr'],\n 'rounded-r': ['rounded-tr', 'rounded-br'],\n 'rounded-b': ['rounded-br', 'rounded-bl'],\n 'rounded-l': ['rounded-tl', 'rounded-bl'],\n 'border-spacing': ['border-spacing-x', 'border-spacing-y'],\n 'border-w': ['border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],\n 'border-w-x': ['border-w-r', 'border-w-l'],\n 'border-w-y': ['border-w-t', 'border-w-b'],\n 'border-color': ['border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],\n 'border-color-x': ['border-color-r', 'border-color-l'],\n 'border-color-y': ['border-color-t', 'border-color-b'],\n 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],\n 'scroll-mx': ['scroll-mr', 'scroll-ml'],\n 'scroll-my': ['scroll-mt', 'scroll-mb'],\n 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],\n 'scroll-px': ['scroll-pr', 'scroll-pl'],\n 'scroll-py': ['scroll-pt', 'scroll-pb']\n },\n conflictingClassGroupModifiers: {\n 'font-size': ['leading']\n }\n };\n}\n\nexport { getDefaultConfig };\n//# sourceMappingURL=default-config.mjs.map\n","/**\n * @param baseConfig Config where other config will be merged into. This object will be mutated.\n * @param configExtension Partial config to merge into the `baseConfig`.\n */\nfunction mergeConfigs(baseConfig, configExtension) {\n for (var key in configExtension) {\n mergePropertyRecursively(baseConfig, key, configExtension[key]);\n }\n return baseConfig;\n}\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar overrideTypes = /*#__PURE__*/new Set(['string', 'number', 'boolean']);\nfunction mergePropertyRecursively(baseObject, mergeKey, mergeValue) {\n if (!hasOwnProperty.call(baseObject, mergeKey) || overrideTypes.has(typeof mergeValue) || mergeValue === null) {\n baseObject[mergeKey] = mergeValue;\n return;\n }\n if (Array.isArray(mergeValue) && Array.isArray(baseObject[mergeKey])) {\n baseObject[mergeKey] = baseObject[mergeKey].concat(mergeValue);\n return;\n }\n if (typeof mergeValue === 'object' && typeof baseObject[mergeKey] === 'object') {\n if (baseObject[mergeKey] === null) {\n baseObject[mergeKey] = mergeValue;\n return;\n }\n for (var nextKey in mergeValue) {\n mergePropertyRecursively(baseObject[mergeKey], nextKey, mergeValue[nextKey]);\n }\n }\n}\n\nexport { mergeConfigs };\n//# sourceMappingURL=merge-configs.mjs.map\n","import { createTailwindMerge } from './create-tailwind-merge.mjs';\nimport { getDefaultConfig } from './default-config.mjs';\nimport { mergeConfigs } from './merge-configs.mjs';\n\nfunction extendTailwindMerge(configExtension) {\n for (var _len = arguments.length, createConfig = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n createConfig[_key - 1] = arguments[_key];\n }\n return typeof configExtension === 'function' ? createTailwindMerge.apply(void 0, [getDefaultConfig, configExtension].concat(createConfig)) : createTailwindMerge.apply(void 0, [function () {\n return mergeConfigs(getDefaultConfig(), configExtension);\n }].concat(createConfig));\n}\n\nexport { extendTailwindMerge };\n//# sourceMappingURL=extend-tailwind-merge.mjs.map\n","import { createTailwindMerge } from './create-tailwind-merge.mjs';\nimport { getDefaultConfig } from './default-config.mjs';\n\nvar twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);\n\nexport { twMerge };\n//# sourceMappingURL=tw-merge.mjs.map\n","import { e, b, g, c, f, a, h } from './chunk-JXBJZR5A.js';\nimport { twMerge, extendTailwindMerge } from 'tailwind-merge';\n\nvar se={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},_=s=>s||void 0,N=(...s)=>_(e(s).filter(Boolean).join(\" \")),q=null,M={},F=!1,w=(...s)=>b$1=>b$1.twMerge?((!q||F)&&(F=!1,q=b(M)?twMerge:extendTailwindMerge(M)),_(q(N(s)))):N(s),Z=(s,b)=>{for(let e in b)s.hasOwnProperty(e)?s[e]=N(s[e],b[e]):s[e]=b[e];return s},ie=(s,b$1)=>{let{extend:e=null,slots:j={},variants:U={},compoundVariants:C=[],compoundSlots:V=[],defaultVariants:W={}}=s,m={...se,...b$1},S=e!=null&&e.base?N(e.base,s==null?void 0:s.base):s==null?void 0:s.base,g$1=e!=null&&e.variants&&!b(e.variants)?g(U,e.variants):U,A=e!=null&&e.defaultVariants&&!b(e.defaultVariants)?{...e.defaultVariants,...W}:W;!b(m.twMergeConfig)&&!c(m.twMergeConfig,M)&&(F=!0,M=m.twMergeConfig);let O=b(e==null?void 0:e.slots),$=b(j)?{}:{base:N(s==null?void 0:s.base,O&&(e==null?void 0:e.base)),...j},h$1=O?$:Z({...e==null?void 0:e.slots},b($)?{base:s==null?void 0:s.base}:$),v=l=>{if(b(g$1)&&b(j)&&O)return w(S,l==null?void 0:l.class,l==null?void 0:l.className)(m);if(C&&!Array.isArray(C))throw new TypeError(`The \"compoundVariants\" prop must be an array. Received: ${typeof C}`);if(V&&!Array.isArray(V))throw new TypeError(`The \"compoundSlots\" prop must be an array. Received: ${typeof V}`);let K=(t,n,a=[],i)=>{let r=a;if(typeof n==\"string\")r=r.concat(h(n).split(\" \").map(c=>`${t}:${c}`));else if(Array.isArray(n))r=r.concat(n.reduce((c,f)=>c.concat(`${t}:${f}`),[]));else if(typeof n==\"object\"&&typeof i==\"string\"){for(let c in n)if(n.hasOwnProperty(c)&&c===i){let f=n[c];if(f&&typeof f==\"string\"){let o=h(f);r[i]?r[i]=r[i].concat(o.split(\" \").map(u=>`${t}:${u}`)):r[i]=o.split(\" \").map(u=>`${t}:${u}`);}else Array.isArray(f)&&f.length>0&&(r[i]=f.reduce((o,u)=>o.concat(`${t}:${u}`),[]));}}return r},z=(t,n=g$1,a$1=null,i=null)=>{var J;let r=n[t];if(!r||b(r))return null;let c=(J=i==null?void 0:i[t])!=null?J:l==null?void 0:l[t];if(c===null)return null;let f=a(c),o=Array.isArray(m.responsiveVariants)&&m.responsiveVariants.length>0||m.responsiveVariants===!0,u=A==null?void 0:A[t],d=[];if(typeof f==\"object\"&&o)for(let[k,L]of Object.entries(f)){let ae=r[L];if(k===\"initial\"){u=L;continue}Array.isArray(m.responsiveVariants)&&!m.responsiveVariants.includes(k)||(d=K(k,ae,d,a$1));}let T=r[f]||r[a(u)];return typeof d==\"object\"&&typeof a$1==\"string\"&&d[a$1]?Z(d,T):d.length>0?(d.push(T),d):T},P=()=>g$1?Object.keys(g$1).map(t=>z(t,g$1)):null,p=(t,n)=>{if(!g$1||typeof g$1!=\"object\")return null;let a=new Array;for(let i in g$1){let r=z(i,g$1,t,n),c=t===\"base\"&&typeof r==\"string\"?r:r&&r[t];c&&(a[a.length]=c);}return a},D={};for(let t in l)l[t]!==void 0&&(D[t]=l[t]);let G=(t,n)=>{var i;let a=typeof(l==null?void 0:l[t])==\"object\"?{[t]:(i=l[t])==null?void 0:i.initial}:{};return {...A,...D,...a,...n}},H=(t=[],n)=>{let a=[];for(let{class:i,className:r,...c}of t){let f=!0;for(let[o,u]of Object.entries(c)){let d=G(o,n);if(Array.isArray(u)){if(!u.includes(d[o])){f=!1;break}}else if(d[o]!==u){f=!1;break}}f&&(i&&a.push(i),r&&a.push(r));}return a},I=t=>{let n=H(C,t),a=H(e==null?void 0:e.compoundVariants,t);return f(a,n)},ee=t=>{let n=I(t);if(!Array.isArray(n))return n;let a={};for(let i of n)if(typeof i==\"string\"&&(a.base=w(a.base,i)(m)),typeof i==\"object\")for(let[r,c]of Object.entries(i))a[r]=w(a[r],c)(m);return a},te=t=>{if(V.length<1)return null;let n={};for(let{slots:a=[],class:i,className:r,...c}of V){if(!b(c)){let f=!0;for(let o of Object.keys(c)){let u=G(o,t)[o];if(u===void 0||(Array.isArray(c[o])?!c[o].includes(u):c[o]!==u)){f=!1;break}}if(!f)continue}for(let f of a)n[f]=n[f]||[],n[f].push([i,r]);}return n};if(!b(j)||!O){let t={};if(typeof h$1==\"object\"&&!b(h$1))for(let n of Object.keys(h$1))t[n]=a=>{var i,r;return w(h$1[n],p(n,a),((i=ee(a))!=null?i:[])[n],((r=te(a))!=null?r:[])[n],a==null?void 0:a.class,a==null?void 0:a.className)(m)};return t}return w(S,P(),I(),l==null?void 0:l.class,l==null?void 0:l.className)(m)},x=()=>{if(!(!g$1||typeof g$1!=\"object\"))return Object.keys(g$1)};return v.variantKeys=x(),v.extend=e,v.base=S,v.slots=h$1,v.variants=g$1,v.defaultVariants=A,v.compoundSlots=V,v.compoundVariants=C,v},le=s=>(b,e)=>ie(b,e?g(s,e):s);\n\nexport { w as cn, N as cnBase, le as createTV, se as defaultConfig, ie as tv, _ as voidEmpty };\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const layoutBase = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--self-stretch tw--justify-self-stretch tw--items-stretch tw--justify-center tw--overflow-hidden tw--h-full tw--bg-lumina',\n wrapper: 'tw--flex tw--flex-col tw--w-full md:tw--max-w-[800px] tw--max-h-screen tw--h-full tw--bg-whisper tw--text-zephyr-100',\n },\n variants: {\n minimized: {\n true: 'tw--fixed tw--right-0 tw--bottom-0 tw--max-h-[700px] tw--max-w-md'\n }\n },\n});\n\nexport const layoutHead = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--px-5 tw--py-[11px] tw--shadow-[-1px_2px_5px_0] tw--shadow-zephyr-200',\n },\n});\n\nexport const layoutFoot = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--items-center tw--flex-wrap tw--px-5 tw--mt-[11px]',\n input: 'tw--flex-1 tw--pr-2',\n button: 'tw--flex tw--grow-0',\n },\n});\n\nexport default { layoutBase, layoutHead, layoutFoot };\n","import { useAppSelector, useWindowSize } from '../../hooks';\nimport { LayoutBaseProps } from '../../interfaces/component';\nimport { getConfig } from '../../store/slices/config';\nimport { layoutBase as variant } from './variants';\n\nexport const LayoutBase = ({ head, stream, foot }: LayoutBaseProps) => {\n const { themeId: theme, isPluginMode } = useAppSelector(getConfig);\n const { base, wrapper } = variant();\n const data = useWindowSize();\n\n return (\n \n
\n {head}\n {stream}\n {foot}\n
\n
\n );\n};\n\nexport default LayoutBase;\n","import { tv } from 'tailwind-variants';\n\n// eslint-disable-next-line spaced-comment\nexport const overlay = /*tw*/ tv({\n slots: {\n base: 'loader js-payment-loader tw--hidden tw--fixed tw--left-0 tw--top-0 tw--z-[101] tw--m-0 tw--flex tw--h-screen tw--w-screen tw--items-center tw--justify-center tw--px-5 tw--bg-whisper'\n },\n});\n\nexport default overlay;\n","import { OverlayProps } from '../../interfaces/component';\nimport overlay from './variants';\n\nexport const Overlay = ({ children }: OverlayProps) => {\n const { base } = overlay();\n return (\n
\n {children}\n
\n );\n};\n\nexport default Overlay;\n","import { AllEvents } from '../config/enums';\n\ntype trackingData = {\n eventType: AllEvents | string;\n systemType: string;\n utmParams: {[key:string]: string};\n customerUuid: string;\n email?: string;\n phone?: string;\n};\n\nexport const track = ({\n eventType,\n systemType,\n utmParams,\n customerUuid,\n email,\n phone,\n}: trackingData): void => {\n if (window.trackEventInGTM && window.tracking) {\n const event = window.tracking.event({\n eventType,\n systemType,\n uri: window.location.pathname,\n domain: window.location.hostname,\n customerUuid,\n email: email || null,\n phone: phone || null,\n additionalData: {},\n utmParams,\n });\n\n window.tracking.trackClient(event);\n if (window.trackEventInGTM) {\n window.trackEventInGTM(event);\n }\n }\n};\n\ndeclare global {\n interface Window {\n tracking: {\n event: (data: {\n eventType: string;\n systemType: string;\n uri: string;\n domain: string;\n customerUuid: string;\n additionalData: object;\n utmParams: {[key:string]: string};\n email?: string | null;\n phone?: string | null;\n }) => string;\n trackClient: (event: string) => void;\n };\n trackEventInGTM: (data: string) => void;\n }\n}\n\nwindow.tracking = window.tracking || null;\nwindow.trackEventInGTM = window.trackEventInGTM || null;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const payment = /*tw*/ tv({\n slots: {\n btn: 'tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-bold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--text-xl max-h-[46px] tw--mb-[11px] customXs:max-h-[52px]',\n\n link: 'tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-extrabold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--mb-[11px] spaced-letters max-h-[46px] customXs:max-h-[52px] customXs:tw--max-w-xs customXs:te--text-[20px] customXs:tw--text-xl',\n }\n});\n\nexport const wrapper = /*tw*/ tv({\n slots: {\n base: 'tw--absolute tw--top-0 tw--left-0 tw--w-full tw--h-screen tw--flex tw--flex-col tw--justify-center tw--items-center tw--px-5 tw--z-50 tw--bg-lumina',\n },\n});\n\nexport const head = /*tw*/ tv({\n slots: {\n wrapper: 'tw--flex tw--justify-between tw--w-full tw--mb-7',\n left: 'tw--flex tw--flex-col',\n leftTop: 'tw--flex tw--flex-row',\n icon: 'tw--pr-[5px] tw--mr-[5px] tw--flex tw--items-center tw--border-r tw--border-r-[#cacadb]',\n text: 'tw--flex tw--flex-col tw--justify-center tw--text-left tw--text-[10px] tw--leading-[1] tw--text-muted-blue',\n bottom: 'tw--opacity-60 tw--text-[10px] tw--leading-[2] tw--text-muted-blue',\n right: 'tw--flex tw--flex-col tw--items-end',\n price: 'tw--text-[#21bb5a] tw--font-bold tw--leading-[1.4] tw--text-[20px]',\n info: 'tw--leading-[2] tw--text-[10px] tw--text-muted-blue',\n },\n});\n\nexport const close = /*tw*/ tv({\n slots: {\n base: 'tw--absolute tw--top-[-30px] tw--right-[-10px] tw--w-6 tw--h-6 tw--p-1 tw--bg-white tw--rounded-full tw--cursor-pointer tw--text-muted-blue',\n },\n});\n\nexport const foot = tv({\n slots: {\n base: 'tw--mt-[30px] tw--flex tw--items-center tw--justify-center tw--text-[12.8px] tw--leading-[1.56] tw--text-[#21bb5a] tw--font-bold',\n icon: 'tw--mr-[5px]'\n },\n});\n\nexport const loader = /*tv*/ tv({\n slots: {\n wrapper: 'loader js-payment-loader tw--max-w-[335px] tw--overflow-hidden tw--relative tw--flex tw--w-full tw--flex-col tw--items-center tw--justify-center tw--rounded-xl tw--p-5 tw--shadow-card tw--bg-loader',\n inner: 'tw--absolute tw--left-0 tw--top-8 tw--flex tw--h-8 tw--w-full tw--items-center tw--justify-center',\n dots: 'tw--relative tw--flex tw--items-center tw--justify-center tw--p-3',\n dotsIn: 'tw--relative tw--mx-auto tw--my-4 tw--box-content tw--block tw--h-4 tw--w-4 tw--rounded-full tw--bg-pale-dots tw--shadow-loading-dots tw--animate-shadow-dots',\n progressCheckmark: 'tw--mb-6 tw--mt-24 tw--box-border tw--flex tw--w-full tw--items-center tw--justify-center tw--text-center',\n panelTitle: 'js-payment-message tw--text-lg tw--font-bold tw--leading-5',\n icon: 'tw--mr-5 tw--h-6 tw--w-6 tw--rounded-full tw--bg-iota-dots',\n spinningTexts: 'tw--mx-10 tw--w-64 tw--shrink-0 tw--text-[16px] tw--leading-[1.63] tw--opacity-60',\n filmContainer: 'js-msg-spin tw--flex tw--justify-center tw--overflow-hidden tw--text-center',\n film: 'tw--animate-text-spin tw--flex tw--w-full tw--max-w-xs tw--translate-x-72'\n },\n});\n\nexport default payment;\n","import { useEffect } from 'react';\n\nimport { AllEvents } from '../../config/enums';\nimport { useAppSelector } from '../../hooks';\nimport { PaymentButtonProps } from '../../interfaces/component';\nimport { track } from '../../services/tracking';\nimport { getConfig } from '../../store/slices/config';\nimport { payment as variant } from './variants';\n\nexport const PaymentButton = ({ text, onClick, e2e, disabled = false }: PaymentButtonProps) => {\n const meta = useAppSelector((state) => state.meta);\n const currentEmail = useAppSelector((state) => state.intentions.email.current);\n const { btn } = variant();\n\n useEffect(() => {\n const data = {\n eventType: AllEvents.addToCart,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: currentEmail\n };\n\n track(data);\n\n data.eventType = AllEvents.priceSeen;\n track(data);\n }, [])\n\n return (\n \n \n \n \n \n {text}\n \n );\n};\n\nexport default PaymentButton;\n","import { CloseButtonProps } from '../../interfaces/component';\nimport { close as variants } from './variants';\n\nexport const CloseButton = ({ onClick }: CloseButtonProps) => {\n const { base } = variants();\n return (\n \n \n \n \n \n );\n};\n\nexport default CloseButton;\n","import { foot as variants } from './variants';\n\nexport const PaymentFooter = () => {\n const { base, icon } = variants();\n return (\n
\n \n \n \n SSL Secure Connection\n
\n );\n};\n\nexport default PaymentFooter;\n","import { useAppSelector } from '../../hooks';\nimport { head as variants } from './variants';\ninterface PaymentHeadProps {\n config: {\n price: string;\n period: string;\n }\n}\n\nexport const PaymentHead = ({ config }: PaymentHeadProps) => {\n const { translations } = useAppSelector((state) => state.config);\n const { wrapper, left, leftTop, icon, text, bottom, right, price, info } = variants();\n\n return (\n
\n
\n \n
\n \n \n \n \n \n { /* DEV NOTE: be aware that the text is not coming from an input so in the future it is not a good practice to use this attribute */}\n \n
\n
\n {translations.paymentHeaderTxt2}\n
\n
\n
\n
{config.price}
\n
\n {config.period}\n
\n
\n
\n
\n );\n};\n\nexport default PaymentHead;\n","import { forwardRef } from 'react';\n\nimport { LinkProps } from '../../interfaces/component';\nimport payment from './variants';\n\nexport const Link = forwardRef((props, ref) => {\n const { link } = payment();\n const { href, text, onClick, e2e = null } = props;\n\n return (\n \n {text}\n \n );\n});\n\nLink.displayName = 'Link'; \nexport default Link;\n","import { loader as variants } from './variants';\ninterface PaymentLoaderProps {\n texts?: Array;\n title?: string;\n}\n\nexport const PaymentLoader = ({ texts = [], title = '' }: PaymentLoaderProps) => {\n const {\n wrapper,\n inner,\n dots,\n dotsIn,\n icon,\n progressCheckmark,\n panelTitle,\n spinningTexts,\n filmContainer,\n film\n } = variants();\n return (\n \n
\n
\n \n
\n
\n\n
\n \n \n \n \n \n \n

{title}

\n
\n\n
\n
\n {texts.map((txt) => (\n
\n {txt}\n
\n ))}\n
\n
\n
\n );\n};\n\nexport default PaymentLoader;\n","import { MouseEvent } from 'react';\n\nimport { useAppSelector } from '../../hooks';\nimport { Overlay } from '../Overlay';\nimport { CloseButton, PaymentFooter, PaymentHead, PaymentLoader, } from '../Payment';\nimport { wrapper } from '../Payment/variants';\n\nexport const PaymentScene = ({ onClose }: { onClose: (e: MouseEvent) => void }) => {\n const { displayPlanPrice, billingFrequencyTmsg } = useAppSelector((state) => state.meta.pd);\n const { translations } = useAppSelector((state) => state.config);\n const { base } = wrapper();\n\n return (\n (\n
\n \n \n \n \n \n
\n \n
\n \n
\n
\n )\n );\n};\n\nexport default PaymentScene;\n","import { tv } from 'tailwind-variants';\n\nexport const streamBase = /* tw*/ tv({\n slots: {\n base: 'tw--pt-10 tw--w-full tw--h-full tw--pb-5 tw--px-5 tw--overflow-y-scroll tw--flex tw--flex-col-reverse tw--translate-z-0 tw--text-zephyr-100 tw--font-density-different tw--mt-0 tw--mb-auto',\n second: 'tw--mt-0 tw--mb-auto',\n date: 'tw--text-center tw--text-sm tw--pb-[5px] tw--opacity-40'\n },\n});\n\nexport const streamHead = /* tw*/ tv({\n slots: {\n base: 'tw--flex tw--flex-col tw--items-center tw--w-full tw--mx-auto tw--pt-5 tw--pb-10',\n title: 'tw--pb-[30px] tw--max-w-[400px] tw--text-center tw--mx-[30px] select-none tw--font-density-different',\n },\n});\n\nexport const streamRow = /* tw*/ tv({\n slots: {\n base: 'tw--grid tw--break-words',\n },\n});\n\nexport const flickerEffect = /* tw */ tv({\n slots: {\n base: 'after:tw--inline-block after:tw--ml-1 after:tw--h-4 after:tw--w-1 select-none after:tw--bg-zephyr-100',\n },\n variants: {\n isTyping: {\n true: 'after:tw--animate-blink',\n false: 'after:tw--hidden'\n },\n }\n});\n\nexport const streamBubble = /* tw*/ tv({\n slots: {\n base: 'tw--relative tw--max-w-[375px] tw--whitespace-pre-wrap tw--rounded-[20px] tw--mb-5 tw--space-y-5 tw--font-density-different',\n action: 'tw--absolute tw--bottom-[-16px] tw--right-[-10px] tw--text-seraph',\n separator: 'tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--w-fit tw--ml-auto tw--mr-0'\n },\n compoundSlots: [\n {\n slots: ['base'],\n type: 'assistant',\n class: 'tw--bg-lumina tw--px-[15px] tw--py-[11px]',\n },\n {\n slots: ['base'],\n type: 'user',\n class: 'tw--justify-self-end',\n },\n {\n slots: ['separator'],\n type: 'user',\n class: 'tw--bg-seraph tw--text-white'\n },\n ],\n});\n\nexport const ellipsis = tv({\n slots: {\n dotFirst: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave tw--bg-zephyr-100',\n dotSecond: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay tw--bg-zephyr-100',\n dotThird: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay-2 tw--bg-zephyr-100',\n },\n});\n\nexport default { streamBase, streamHead, streamRow, streamBubble, ellipsis };\n","import { ellipsis as variant } from './variants';\n\nexport const Ellipsis = () => {\n const { dotFirst, dotSecond, dotThird } = variant();\n return (\n
\n \n \n \n
\n );\n};\n\nexport default Ellipsis;\n","// DEV Note: will be deprecated, replace with env vars\nexport const STORAGE_KEY = 'history';\nexport const CHAT_SEEN_KEY = 'chatSeen';\nexport const LINK_CLICKED_KEY = 'linkClickedFromChat';\nexport const CHAT_FINISHED_TIMESTAMP = 'chatConversationFinishedTimeStamp';\nexport const ALREADY_REGISTERED_KEY = 'showAlreadyRegisteredUser';\nexport const SHOW_PAYMENT_BUTTON_KEY = 'showPaymentButton';\nexport const SOCKET_IO_URL = 'http://localhost:5000';\nexport const UNSENT_MESSAGES_KEY = 'unsent';\nexport const GO_THROUGH_QUIZ_KEY = 'hasToGoThroughQuiz';\nexport const EXISTING_PRODUCT_LINK_KEY = 'existingProductLink';\nexport const CID = 'cid';\nexport const STORING_CHECKER_INTERVAL = 1000;\nexport const SCROLL_STOP_CLASS = 'scroll-stop';\nexport const SUPPORT_PURPOSE = 'support';\nexport const SPECIAL_MERCHANT = 'MERCHANT_SITE_URL';\nexport const SPECIAL_SUPPORT_TICKET = 'NEW_SUPPORT_TICKET_URL';\nexport const CLOSE_AFTER_TIMEOUT = 500;\nexport const DEFAULT_CLOSE_HREF = '/';\nexport const TYPING_TIMEOUT = 3000;\n","export const config = {\n transports: ['websocket'],\n upgrade: false,\n pingInterval: 1000 * 60 * 5,\n pingTimeout: 1000 * 60 * 3,\n secure: true,\n reconnect: true,\n};\n\nexport default { config };\n","import { AssistantRecord } from '../interfaces/index';\nimport { getQueryParam, uuidV4 } from '../utils';\nimport { Definition, QueryParams, Roles } from './enums';\nimport { SPECIAL_MERCHANT, SPECIAL_SUPPORT_TICKET } from './env';\nexport { Events, Roles } from './enums';\nexport { config } from './socket';\n\nexport const initialMessage = [\n {\n id: uuidV4(),\n role: Roles.assistant,\n time: new Date().getTime(),\n content: [\n { 'type': 'text', 'text': 'See this picture', 'sequence': 2 },\n { 'type': 'text', 'text': 'See this picture', 'sequence': 2 },\n { 'type': 'text', 'text': 'My favorite search engine is [Duck Duck Go](https://duckduckgo.com \"The best search engine for privacy\").', 'sequence': 2 },\n {\n type: 'image',\n image: { url: 'https://static.boredpanda.com/blog/wp-content/uploads/2016/08/wet-dogs-before-after-bath-fb6__700-png.jpg' },\n sequence: 1,\n },\n {\n type: 'video',\n video: { url: 'https://www.youtube.com/embed/ZwKhufmMxko' },\n sequence: 1,\n }\n ]\n },\n {\n id: uuidV4(),\n role: Roles.assistant,\n time: new Date().getTime(),\n content: [\n { 'type': 'text', 'text': 'Do you want to lose weight?', 'sequence': 2 },\n { 'type': 'buttons', 'sequence': 1, 'buttons': [{ 'value': 'Yes', 'sequence': 1, 'text': 'Yes' }, { 'value': 'No', 'sequence': 2, 'text': 'No' }] }\n ]\n },\n {\n id: uuidV4(),\n role: Roles.assistant,\n time: new Date().getTime(),\n content: [\n { 'type': 'text', 'text': 'Do you want to lose weight?', 'sequence': 2 },\n ]\n },\n];\ninterface InitiationConfig { id: string, purpose?: string, close: { href?: string, visible?: boolean } }\n\nexport const chat = ({ id, purpose, close }: InitiationConfig) => ({\n meta: {\n cid: localStorage.getItem('__cid') || id,\n systemType: 'test',\n region: null,\n pd: {\n subscriberBillingFrequency: 'Billed every {1} month(s)',\n oneTimer: 'Total price to be charged',\n billingFrequencyTmsg: '',\n },\n marketing: {\n utmParams: { utm_chat: getQueryParam(QueryParams.chat) },\n lastUtmParams: { utm_chat: getQueryParam(QueryParams.chat) },\n screen: {\n width: 2084,\n height: 1608,\n }\n },\n eid: '23c7cdcf-4d90-4ea1-aab0-c73f8426dc1d_PageView_1694521420366',\n },\n app: {\n aiProfile: {\n name: 'Meal Mentor',\n role: 'AI-powered nutritionist',\n imgSrc: 'https://storage.1forfit.com/lGbeX4lzNpWGyywHuJxMdegZ6My040jsvtVwZqBv.png',\n welcome: 'Welcome to our live support. We\\'re here to understand your requirements and suggest the best Keto diet suited for you.',\n initialMessage\n },\n chatUrl: 'https://chat-ws.test',\n purpose: purpose || 'default',\n themeId: 'light',\n translations: {\n emailPlaceholder: 'Please enter your email',\n tm526: 'Continue to my plan',\n tm715: 'Enter new email',\n tm716: 'Entered email already exists, choose below to proceed',\n tm530: 'Take the quiz',\n tm1224: 'Payment in progress...',\n tm1226: 'Payment succeeded!',\n paymentHeaderTxt1: 'SECURITY verified',\n paymentHeaderTxt2: 'secured payments',\n loaderTexts: [\n 'We securely lock up your payment details.',\n 'Details zoom to the payment center.',\n 'Payment center requests our bank to process.',\n 'Our bank contacts your card network.',\n 'Card network asks your bank for approval.',\n 'Your bank reviews funds or credit.',\n 'Decision travels back to us.',\n 'Waiting your payment to be verified and complete.'\n ],\n payButton: 'Secure payment',\n ctaTextContent: 'Create Your Menu!',\n mealButton: 'Create your meal plan',\n error: 'Oops something went wrong.',\n tm505: 'Please enter valid email address',\n supportButton: 'backEndVars.supportButton',\n merchantButton: 'backEndVars.merchantButton',\n },\n close: {\n href: close.href || '/',\n visible: close.visible || false,\n }\n },\n specialUrls: {\n [SPECIAL_MERCHANT]: '/',\n [SPECIAL_SUPPORT_TICKET]: '/'\n }\n});\n\nexport const paymentData = {\n amount: '29.90',\n amountInUSD: 29.9,\n frequency: 1,\n frequencyInMonths: 1,\n billingOptionType: 'subscription',\n isDisplayPricePlan: true,\n displayPlanPrice: '$29.90'\n};\n\nexport const getUnifiedSequence = (current: Array, incoming: AssistantRecord) => {\n return current.map((record: AssistantRecord) => {\n const hasMatch = record.sequence === incoming.sequence && record.type === incoming.type;\n\n if (hasMatch && record.type === Definition.text && incoming.text) {\n return { ...record, text: record.text + incoming.text }\n }\n\n if (hasMatch && record.type === Definition.buttons && incoming?.buttons?.length && record?.buttons?.length) {\n return { ...record, buttons: [...record.buttons, ...incoming.buttons] }\n }\n\n return record;\n })\n};\n","function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a(n,r){return 2===o(n)?n.get(r):n[r]}function f(n,r,t){var e=o(n);2===e?n.set(r,t):3===e?n.add(t):n[r]=t}function c(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0)),n}function h(){n(2)}function y(n){return null==n||\"object\"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function m(n,r){tn[n]||(tn[n]=r)}function _(){return\"production\"===process.env.NODE_ENV||U||n(0),U}function j(n,r){r&&(b(\"Patches\"),n.u=[],n.s=[],n.v=r)}function g(n){O(n),n.p.forEach(S),n.p=null}function O(n){n===U&&(U=n.l)}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.g=!0}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.O||b(\"ES5\").S(e,r,o),o?(i[Q].P&&(g(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b(\"Patches\").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),g(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o,u=o,a=!1;3===e.i&&(u=new Set(o),o.clear(),a=!0),i(u,(function(r,i){return A(n,e,o,r,i,t,a)})),x(n,o,!1),t&&n.u&&b(\"Patches\").N(e,t,n.u,n.s)}return e.o}function A(e,i,o,a,c,s,v){if(\"production\"!==process.env.NODE_ENV&&c===o&&n(5),r(c)){var p=M(e,c,s&&i&&3!==i.i&&!u(i.R,a)?s.concat(a):void 0);if(f(o,a,p),!r(p))return;e.m=!1}else v&&o.add(c);if(t(c)&&!y(c)){if(!e.h.D&&e._<1)return;M(e,c),i&&i.A.l||x(e,c)}}function x(n,r,t){void 0===t&&(t=!1),!n.l&&n.h.D&&n.m&&d(r,t)}function z(n,r){var t=n[Q];return(t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t)}}function k(n){n.P||(n.P=!0,n.l&&k(n.l))}function E(n){n.o||(n.o=l(n.t))}function N(n,r,t){var e=s(r)?b(\"MapSet\").F(r,t):v(r)?b(\"MapSet\").T(r,t):n.O?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b(\"ES5\").J(r,t);return(t?t.A:_()).p.push(e),e}function R(e){return r(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=o(r);if(u){if(!u.P&&(u.i<4||!b(\"ES5\").K(u)))return u.t;u.I=!0,e=D(r,c),u.I=!1}else e=D(r,c);return i(e,(function(r,t){u&&a(u.t,r)===t||f(e,r,n(t))})),3===c?new Set(e):e}(e)}function D(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function F(){function t(n,r){var t=s[n];return t?t.enumerable=r:s[n]=t={configurable:!0,enumerable:r,get:function(){var r=this[Q];return\"production\"!==process.env.NODE_ENV&&f(r),en.get(r,n)},set:function(r){var t=this[Q];\"production\"!==process.env.NODE_ENV&&f(t),en.set(t,n,r)}},t}function e(n){for(var r=n.length-1;r>=0;r--){var t=n[r][Q];if(!t.P)switch(t.i){case 5:a(t)&&k(t);break;case 4:o(t)&&k(t)}}}function o(n){for(var r=n.t,t=n.k,e=nn(t),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=r[o];if(void 0===a&&!u(r,o))return!0;var f=t[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return!0}}var v=!!r[Q];return e.length!==nn(r).length+(v?0:1)}function a(n){var r=n.k;if(r.length!==n.t.length)return!0;var t=Object.getOwnPropertyDescriptor(r,r.length-1);if(t&&!t.get)return!0;for(var e=0;e1?t-1:0),o=1;o1?t-1:0),o=1;o=0;e--){var i=t[e];if(0===i.path.length&&\"replace\"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b(\"Patches\").$;return r(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un,fn=an.produce,cn=an.produceWithPatches.bind(an),sn=an.setAutoFreeze.bind(an),vn=an.setUseProxies.bind(an),pn=an.applyPatches.bind(an),ln=an.createDraft.bind(an),dn=an.finishDraft.bind(an);export default fn;export{un as Immer,pn as applyPatches,K as castDraft,$ as castImmutable,ln as createDraft,R as current,J as enableAllPlugins,F as enableES5,C as enableMapSet,T as enablePatches,dn as finishDraft,d as freeze,L as immerable,r as isDraft,t as isDraftable,H as nothing,e as original,fn as produce,cn as produceWithPatches,sn as setAutoFreeze,vn as setUseProxies};\n//# sourceMappingURL=immer.esm.js.map\n","import { createSlice, Draft,PayloadAction } from '@reduxjs/toolkit';\nimport produce from 'immer';\n\nimport { getUnifiedSequence } from '../../config';\nimport { Definition, QueryParams, Roles } from '../../config/enums';\nimport {\n AssistantHistoryDataFiller,\n AssistantHistoryInitialMessage,\n AssistantRecord,\n PredefinedMessagePayload,\n SocketHistoryRecord,\n UserHistoryDataFiller,\n} from '../../interfaces';\nimport { ChatState } from '../../interfaces/store';\nimport { getQueryParam, uuidV4 } from '../../utils';\nimport { chat as initialState } from '../initialState';\n\nconst configSlice = createSlice({\n name: 'chat',\n initialState,\n reducers: {\n setOutgoing(state, { payload }: PayloadAction) {\n state.outgoing = {\n term: getQueryParam(QueryParams.chat),\n user_id: localStorage.getItem('__cid') || '',\n role: Roles.user,\n message: payload,\n };\n },\n resetOutgoing(state) {\n state.outgoing = initialState.outgoing;\n },\n setExistingHistory(state, { payload }: PayloadAction>) {\n return produce(state, (draft) => {\n // server has LESS or EQUAL data than frontend -> update the status to unsent\n if (state.historyIds.length >= payload.length) {\n const unsentMessages = state.historyIds.filter((id) => !payload.find((record) => record.id === id));\n unsentMessages.forEach(\n (id) =>\n (draft.historyData[id].content = draft.historyData[id].content.map((record) => ({\n ...record,\n sent: false,\n resend: true,\n }))),\n );\n return;\n }\n\n draft.historyIds = payload.map(({ id }) => id);\n draft.historyData = payload.reduce(\n (prev, current) => ({\n ...prev,\n [current.id]: current\n }),\n {},\n );\n });\n },\n addPredefinedAssistantMessage(\n state,\n { payload }: PayloadAction\n ) {\n const id = uuidV4();\n return produce(state, (draft: Draft): void => {\n draft.historyIds.push(id);\n draft.historyData[id] = {\n id,\n role: Roles.assistant,\n content: [\n { type: Definition.text, text: payload.content, sequence: 1 },\n { type: Definition.buttons, buttons: payload.buttons || [], sequence: 2 },\n ],\n };\n });\n },\n fillAssistantHistoryData(state, { payload }: PayloadAction) {\n return produce(state, (draft: Draft) => {\n const id = payload.id;\n\n if (!draft.historyData[id]) {\n draft.historyData[id] = { id, role: Roles.assistant, content: [] };\n draft.historyIds.push(id);\n return;\n }\n\n if (!payload.content) {\n return;\n }\n\n const dataType = payload.content.type;\n const data = {\n sequence: payload.sequence || 1,\n type: dataType,\n [dataType]: payload.content[payload.content.type],\n };\n\n const hasDuplicatedSequenceAndType = draft.historyData[id].content.some(\n (record) => record.sequence === data.sequence && record.type === data.type,\n );\n\n if (hasDuplicatedSequenceAndType) {\n draft.historyData[id].content = getUnifiedSequence(\n draft.historyData[id].content as Array,\n data,\n );\n return;\n }\n\n draft.historyData[id].content.push(data);\n });\n },\n fillUserHistoryData(\n state,\n { payload: { id, content } }: PayloadAction\n ) {\n return produce(state, (draft: Draft) => {\n let belongsTo;\n\n if (content.groupId) {\n Object.entries(draft.historyData).forEach(([key, value]) => {\n if (value.content.find((el) => el.groupId === content.groupId)) {\n belongsTo = key;\n }\n });\n }\n\n if (belongsTo) {\n // this is due to keyboard interaction we send messages after timeout\n const userMessageRecord = draft.historyData[belongsTo];\n userMessageRecord.content.push(content);\n return;\n }\n\n if (!draft.historyData[id]) {\n draft.historyData[id] = { id, role: Roles.user, content: [content] };\n draft.historyIds.push(id);\n }\n });\n },\n fillInitialMessage(\n state,\n { payload }: PayloadAction\n ) {\n state.historyIds.push(payload.id);\n state.historyData[payload.id] = {\n id: payload.id,\n role: Roles.assistant,\n time: new Date().getTime(),\n content: payload.content,\n };\n },\n setIsLoading(state) {\n state.isLoading = true;\n },\n resetIsLoading(state) {\n state.isLoading = initialState.isLoading;\n },\n setTypingTimeoutExpired(state, { payload }: PayloadAction) {\n state.typingTimeoutExpired = payload;\n },\n setConnected(state, { payload }: PayloadAction) {\n state.connected = payload;\n },\n setClosed(state) {\n state.closed = true;\n },\n hideResendIcon(state, { payload }: PayloadAction<{ itemId: string }>) {\n return produce(state, (draft: Draft) => {\n draft.historyData[payload.itemId].content = draft.historyData[payload.itemId].content.map((record) => ({\n ...record,\n sent: true,\n resend: false,\n }));\n });\n },\n showResendIcon(state, { payload }: PayloadAction<{ itemId: string }>) {\n return produce(state, (draft: Draft) => {\n draft.historyData[payload.itemId].content = draft.historyData[payload.itemId].content.map((record) => ({\n ...record,\n sent: false,\n resend: true,\n }));\n });\n },\n setLastGroupPointer(state, { payload }: PayloadAction) {\n state.lastGroupId = payload;\n },\n resendMessage(state, { payload }) {\n // empty - used only to listen in the middleware for changes\n },\n setError(state, { payload }: PayloadAction) {\n state.error = payload;\n },\n resetError(state) {\n state.error = initialState.error;\n },\n setIsStreaming(state, { payload }: PayloadAction) {\n state.isStreaming = payload;\n },\n resetHistory(state) {\n state.historyIds = initialState.historyIds;\n state.historyData = initialState.historyData;\n },\n },\n});\n\nexport const getChat = (state: { chat: ChatState }) => state.chat;\nexport const userMessageFindOne = (state: { chat: ChatState }) =>\n state.chat.historyIds.find((historyId) => state.chat.historyData[historyId].role === Roles.user);\nexport const sortBySequence = (a: AssistantRecord, b: AssistantRecord) => a.sequence - b.sequence;\n\nexport const {\n setOutgoing,\n resetOutgoing,\n setExistingHistory,\n addPredefinedAssistantMessage,\n setIsLoading,\n resetIsLoading,\n setLastGroupPointer,\n setTypingTimeoutExpired,\n setError,\n resetError,\n setConnected,\n setClosed,\n hideResendIcon,\n showResendIcon,\n resendMessage,\n setIsStreaming,\n fillAssistantHistoryData,\n fillUserHistoryData,\n resetHistory,\n fillInitialMessage,\n} = configSlice.actions;\n\nexport default configSlice.reducer;\n","import { createSlice } from '@reduxjs/toolkit';\n\nimport { IntentionsState } from '../../interfaces/store';\nimport { intentions as initialState } from '../initialState';\n\nconst intentionsSlice = createSlice({\n name: 'intentions',\n initialState,\n reducers: {\n setEmail(state, { payload }) {\n state.email.current = payload;\n },\n setEmailSuccess(state, { payload }) {\n state.email.success = payload;\n },\n setEmailError(state, { payload }) {\n state.email.error = payload;\n },\n setIsEmailLoading(state, { payload }) {\n state.email.isLoading = payload;\n },\n setIsPaymentButtonVisible(state, { payload }) {\n state.payment.isButtonVisible = payload;\n },\n setPaymentFormVisibility(state, { payload }) {\n state.payment.isFormVisible = payload;\n },\n setIsPaymentSuccessful(state, { payload }) {\n state.payment.isSuccessful = payload;\n },\n setPaymentIntentError(state, { payload }) {\n state.payment.error = payload;\n },\n setLink(state, { payload }) {\n state.link = payload;\n },\n },\n});\n\nexport const getEmailIntentions = (state: { intentions: IntentionsState }) => state.intentions.email;\nexport const getPaymentIntentions = (state: { intentions: IntentionsState }) => state.intentions.payment;\nexport const getPaymentSuccess = (state: { intentions: IntentionsState }) => state.intentions.payment.isSuccessful;\nexport const getLinkIntentions = (state: { intentions: IntentionsState }) => state.intentions.link;\n\nexport const {\n setEmailSuccess,\n setIsPaymentSuccessful,\n setPaymentFormVisibility,\n setEmailError,\n setIsEmailLoading,\n setIsPaymentButtonVisible,\n setPaymentIntentError,\n setEmail,\n setLink\n} = intentionsSlice.actions;\n\nexport default intentionsSlice.reducer;\n","import { Roles } from '../config';\nimport { SUPPORT_PURPOSE } from '../config/env';\nimport { getChat } from '../store/slices/chat';\nimport { getConfig } from '../store/slices/config';\nimport { getEmailIntentions, getPaymentIntentions } from '../store/slices/intentions';\nimport { getMeta } from '../store/slices/meta';\nimport { useAppSelector } from '.';\n\nexport const useFootProps = () => {\n const { cid, systemType, marketing, pd } = useAppSelector(getMeta);\n const { translations, purpose, specialUrls } = useAppSelector(getConfig);\n const { isLoading, isStreaming } = useAppSelector(getChat);\n const { error: streamError } = useAppSelector((store) => store.chat);\n const storedLink = useAppSelector((store) => store.intentions.link);\n const { error: emailError, current: currentEmail } = useAppSelector(getEmailIntentions);\n const {\n isFormVisible: isPaymentFormVisible,\n error: paymentIntentError,\n isSuccessful: paymentSuccess\n } = useAppSelector(getPaymentIntentions);\n const error = streamError || emailError || paymentIntentError;\n const staticProps = {\n systemType,\n marketing,\n error,\n cid,\n isLoading,\n currentEmail,\n translations,\n pd,\n isStreaming,\n isPaymentButtonVisible: false,\n isPaymentFormVisible: false,\n isEmailFormVisible: false,\n isResponseFormVisible: false,\n ctaText: '',\n ctaHref: '',\n };\n const { historyData, historyIds } = useAppSelector(getChat);\n const lastMsgId = [...historyIds].pop();\n const lastMsg = lastMsgId && historyData[lastMsgId];\n const isLastAssistantMsg = lastMsg && lastMsg.role === Roles.assistant;\n const link = isLastAssistantMsg && storedLink;\n const noButtonChoices = !(lastMsg && lastMsg?.content.find((m) => m.buttons));\n const hasPaymentIntent = lastMsg && lastMsg?.content.find((m) => m.payment);\n const hasEmailIntent = lastMsg && lastMsg?.content.find((m) => m.email);\n\n if (isLastAssistantMsg && hasPaymentIntent) {\n return {\n ...staticProps,\n isPaymentButtonVisible: true,\n };\n }\n\n if (isLastAssistantMsg && hasEmailIntent) {\n return {\n ...staticProps,\n isEmailFormVisible: true,\n isPaymentFormVisible,\n };\n }\n\n if (paymentSuccess) {\n return {\n ...staticProps,\n ctaText: translations.ctaTextContent,\n ctaHref: '/',\n isPaymentFormVisible,\n };\n }\n\n const message = lastMsg && lastMsg?.content?.find((m) => m.special);\n if (isLastAssistantMsg && message && message?.special) {\n return {\n ...staticProps,\n ctaText: specialUrls[message.special].includes('merchant') ? translations.merchantButton : translations.supportButton,\n ctaHref: specialUrls[message.special],\n };\n }\n\n if (link && purpose === SUPPORT_PURPOSE) {\n return {\n ...staticProps,\n isResponseFormVisible: true,\n };\n }\n\n const isResponseFormVisible = lastMsg && !link && !isLoading && (noButtonChoices || lastMsg?.role === Roles.user);\n\n return {\n ...staticProps,\n ctaText: translations.mealButton,\n ctaHref: link,\n isResponseFormVisible,\n };\n};\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n","import { EventEmitter } from 'node:events';\n\nimport { Intentions } from '../config/enums';\n\nexport const intent = {\n type: Intentions,\n core: new EventEmitter()\n};\n\nexport default intent;\n","/* eslint-disable spaced-comment */\nimport { tv, type VariantProps } from 'tailwind-variants';\n\nexport const basic = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none tw--bg-glazeBg tw--text-glazeText tw--border-glaze tw--font-density-different',\n },\n});\n\nexport const icon = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--text-dots',\n },\n variants: {\n outlined: {\n true: 'tw--p-0.5 tw--bg-white tw--rounded-full tw--shadow',\n false: 'tw--bg-[transparent]',\n },\n },\n});\n\nexport type BasicVariants = VariantProps;\nexport type IconVariants = VariantProps;\n","import { ButtonProps } from '../../interfaces/component';\nimport { basic as variant } from './variants';\n\nexport const Btn = ({ text = '', onClick, e2e }: ButtonProps) => {\n const { base } = variant();\n\n return (\n \n {text}\n \n );\n};\n\nexport default Btn;\n","import { IconProps } from '../../interfaces/component';\nimport { icon as variant } from './variants';\n\nexport const IconBtn = ({ children, outlined = false, onClick, e2e = null, disabled = false }: IconProps) => {\n const { base } = variant({ outlined });\n\n return (\n \n {children}\n \n );\n};\n\nexport default IconBtn;\n","import { tv } from 'tailwind-variants';\n\nexport const basic = /* tw*/ tv({\n slots: {\n base: 'tw--relative tw--flex tw--items-center',\n input: 'tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] focus:tw--outline-none focus:!tw--bg-lumina tw--bg-lumina tw--text-zephyr-100 tw--font-density-different',\n loader: 'tw--absolute tw--right-4 tw--top-[50%] tw--translate-y-[-50%]',\n spin: 'tw--block tw--w-6 tw--h-6 tw--border-solid tw--border-[5px] tw--rounded-3xl tw--animate-rotate tw--m-auto tw--border-zephyr-200 tw--border-t-zephyr-600 tw--border-l-zephyr-600'\n },\n});\n\nexport default basic;\n","import { forwardRef } from 'react';\n\nimport { BasicInputProps } from '../../interfaces/component';\nimport { basic as variant } from './variants';\n\nexport const Input = forwardRef((props, ref) => {\n const {\n disabled,\n e2e,\n isLoading,\n onChange,\n onKeyUp,\n placeholder,\n type,\n value,\n } = props;\n\n const { base, input, loader, spin } = variant();\n\n return (\n
\n \n\n {isLoading && (\n \n \n \n )}\n
\n );\n});\n\nInput.displayName = 'Input';\n\nexport default Input;\n","import { useEffect, useRef, useState } from 'react';\n\nimport { AllEvents } from '../../config/enums';\nimport { useAppDispatch, useAppSelector } from '../../hooks';\nimport { intent } from '../../services/intentions';\nimport { track } from '../../services/tracking';\nimport { getConfig } from '../../store/slices/config';\nimport { getEmailIntentions, setEmail, setIsEmailLoading } from '../../store/slices/intentions';\nimport { IconBtn } from '../Button';\nimport { Input } from '../Input/basic';\nimport { layoutFoot as variant } from '../Layout/variants';\n\nexport const EmailForm = () => {\n const dispatch = useAppDispatch();\n const meta = useAppSelector((state) => state.meta);\n const { translations } = useAppSelector(getConfig);\n const { isLoading } = useAppSelector(getEmailIntentions);\n const { base, input, button } = variant();\n const [email, setCurrentEmail] = useState('');\n const inputElement = useRef(null);\n\n useEffect(() => {\n track({\n eventType: AllEvents.emailField,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n });\n\n setTimeout(() => {\n if (!inputElement.current) { return }\n inputElement.current.focus();\n }, 500);\n });\n\n const handleInputChange = (e: React.ChangeEvent) => {\n const currentValue = e.target.value.trim();\n setCurrentEmail(currentValue);\n };\n\n const handleFormSubmit = (e: React.FormEvent | React.MouseEvent) => {\n e.preventDefault();\n\n if (email === '') {\n return;\n }\n\n dispatch(setIsEmailLoading(true));\n dispatch(setEmail(email));\n intent.core.emit(intent.type.email, { email });\n setCurrentEmail('');\n };\n\n return (\n \n
\n \n
\n
\n \n \n \n \n \n
\n \n );\n};\n\nexport default EmailForm;\n","import { useEffect, useRef, useState } from 'react';\n\nimport { IconBtn } from '../../components/Button';\nimport { Input } from '../../components/Input';\nimport { Roles } from '../../config/enums';\nimport { useAppDispatch, useAppSelector } from '../../hooks';\nimport { fillUserHistoryData, getChat, setLastGroupPointer, setTypingTimeoutExpired } from '../../store/slices/chat';\nimport { uuidV4 } from '../../utils';\nimport { layoutFoot as variant } from '../Layout/variants';\nimport { TYPING_TIMEOUT } from '../../config/env';\n\nexport const ResponseForm = () => {\n const dispatch = useAppDispatch();\n const { connected, isLoading } = useAppSelector(getChat);\n const { base, input, button } = variant();\n const [response, setCurrentResponse] = useState('');\n const [timerId, setTimerId] = useState(null);\n const groupId = useAppSelector((state) => state.chat.lastGroupId);\n const inputElement = useRef(null);\n\n useEffect(() => {\n setTimeout(() => {\n inputElement.current?.focus();\n }, 500);\n }, []);\n\n const handleInputChange = (e: React.ChangeEvent) => {\n setCurrentResponse(e.target.value);\n setTimerToSendMessage();\n };\n\n const handleFormSubmit = (e: React.FormEvent | React.MouseEvent) => {\n e.preventDefault();\n\n if (response.trim()) {\n dispatch(fillUserHistoryData({\n role: Roles.user,\n id: uuidV4(),\n sequence: 1,\n content: {\n sequence: 1, message: response, groupId, resend: false, sent: true\n }\n }));\n }\n\n setCurrentResponse('');\n setTimerToSendMessage();\n };\n\n const setTimerToSendMessage = () => {\n if (timerId) {\n clearTimeout(timerId);\n }\n const currentId = setTimeout(() => {\n dispatch(setTypingTimeoutExpired(true));\n dispatch(setLastGroupPointer(uuidV4()));\n }, TYPING_TIMEOUT);\n setTimerId(currentId);\n };\n\n return (\n \n
\n \n
\n
\n \n \n \n \n \n
\n \n );\n};\n\nexport default ResponseForm;\n","import { useEffect, useRef, useState } from 'react';\n\nimport { PaymentScene } from '../../components/Scenes/payment';\nimport { Ellipsis } from '../../components/Stream/ellipsis';\nimport { AllEvents } from '../../config/enums';\nimport { LINK_CLICKED_KEY } from '../../config/env';\nimport { useAppDispatch } from '../../hooks';\nimport { useFootProps } from '../../hooks/foot';\nimport intent from '../../services/intentions';\nimport { track } from '../../services/tracking';\nimport { addPredefinedAssistantMessage, setClosed } from '../../store/slices/chat';\nimport { setIsPaymentButtonVisible, setIsPaymentSuccessful, setPaymentFormVisibility, setPaymentIntentError } from '../../store/slices/intentions';\nimport { EmailForm, ResponseForm } from '../Form';\nimport { Link, PaymentButton } from '../Payment';\n\nexport const LayoutFoot = () => {\n const dispatch = useAppDispatch();\n const footState = useFootProps();\n const ctaAfterPayButton = useRef(null);\n const [disabled, setDisabled] = useState(false);\n\n const setIsPaymentContainerVisible = (isVisible: boolean): void => {\n dispatch(setPaymentFormVisibility(isVisible));\n };\n\n useEffect(() => {\n if (footState.isEmailFormVisible) {\n track({\n eventType: AllEvents.emailField,\n systemType: footState.systemType,\n utmParams: footState.marketing.lastUtmParams,\n customerUuid: footState.cid,\n email: footState.currentEmail\n });\n }\n }, [footState.isEmailFormVisible]);\n\n const onClosePaymentForm = (e: React.MouseEvent) => {\n e.currentTarget.disabled = true;\n intent.core.emit(intent.type.destroy);\n setIsPaymentContainerVisible(false);\n setDisabled(false);\n };\n\n const onPaymentSuccess = () => {\n dispatch(addPredefinedAssistantMessage({ content: footState.translations.tm1226 }));\n dispatch(setIsPaymentSuccessful(true));\n dispatch(setIsPaymentButtonVisible(false));\n setIsPaymentContainerVisible(false);\n track({\n eventType: AllEvents.linkProvided,\n systemType: footState.systemType,\n utmParams: footState.marketing.lastUtmParams,\n customerUuid: footState.cid,\n email: footState.currentEmail\n });\n setTimeout(() => {\n if (ctaAfterPayButton.current) {\n ctaAfterPayButton.current.click();\n }\n }, 7000);\n };\n\n const onError = (message: string): void => {\n dispatch(setPaymentIntentError(message));\n };\n\n const initializePaymentForm = () => {\n intent.core.emit(intent.type.payment, { setIsPaymentContainerVisible, onPaymentSuccess, onError });\n setDisabled(true);\n };\n\n const onClickCta = (e: React.MouseEvent) => {\n localStorage.setItem(LINK_CLICKED_KEY, e.currentTarget.href);\n track({\n eventType: AllEvents.linkClicked,\n systemType: footState.systemType,\n utmParams: footState.marketing.lastUtmParams,\n customerUuid: footState.cid,\n email: footState.currentEmail\n });\n dispatch(setClosed());\n };\n\n return (\n
\n {footState.error &&
{footState.error}
}\n {footState.isPaymentFormVisible && }\n {footState.isLoading && }\n {footState.ctaHref\n && (\n \n )}\n\n {!footState.isStreaming && footState.isEmailFormVisible && }\n {!footState.isStreaming && footState.isResponseFormVisible && }\n\n {footState.isPaymentButtonVisible && (\n \n )}\n
\n );\n};\n\nexport default LayoutFoot;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const profile = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--items-center tw--select-none',\n avatar: 'tw--rounded-full',\n info: '',\n name: '',\n role: '',\n imgWrapper: '',\n minimized: ''\n },\n variants: {\n orientation: {\n horizontal: {\n base: 'tw--flex-row tw--text-left',\n avatar: 'tw--shrink',\n name: 'tw--text-xl/7 tw--font-bold tw--leading-[30px]',\n info: 'tw--pl-[10px]',\n role: 'tw--text-zephyr-800',\n imgWrapper: 'after:tw--absolute after:tw--w-[10px] after:tw--h-[10px] after:tw--bottom-[-2px] after:tw--left-[37px] after:tw--z-10 after:tw--rounded-full after:tw--bg-iota-dots'\n },\n vertical: {\n base: 'tw--flex-col tw--text-center',\n name: 'tw--text-[24px] tw--font-semibold',\n role: 'tw--font-density-different tw--text-zephyr-600'\n },\n },\n minimized: {\n true: '',\n false: '',\n },\n },\n compoundSlots: [\n {\n slots: ['imgWrapper'],\n orientation: 'horizontal',\n minimized: false,\n class: 'tw--relative tw--h-fit'\n },\n {\n slots: ['avatar'],\n orientation: 'horizontal',\n minimized: false,\n class: 'tw--h-[50px]',\n },\n {\n slots: ['avatar'],\n orientation: 'vertical',\n minimized: false,\n class: 'tw--h-[60px]',\n },\n ],\n});\n\nexport default profile;\n","import { ScreenOrientation } from '../../config/enums';\nimport { useAppSelector } from '../../hooks';\nimport { ProfileProps } from '../../interfaces/component';\nimport { getConfig } from '../../store/slices/config';\nimport { profile as variant } from './variants';\n\nexport const Profile = ({ orientation = ScreenOrientation.horizontal, minimized = false }: ProfileProps) => {\n const { aiProfile } = useAppSelector(getConfig);\n const { base, avatar, info, name, role, imgWrapper } = variant({ orientation, minimized });\n\n return (\n
\n \n \n \n
\n
{aiProfile.name}
\n
{aiProfile.role}
\n
\n
\n );\n};\n\nexport default Profile;\n","import { MouseEvent } from 'react';\n\nimport { AllEvents } from '../../config/enums';\nimport { CLOSE_AFTER_TIMEOUT } from '../../config/env';\nimport { useAppDispatch, useHeadControls } from '../../hooks';\nimport { track } from '../../services/tracking';\nimport { setClosed } from '../../store/slices/chat';\nimport { IconBtn } from '../Button';\nimport { Profile } from '../Profile';\nimport { layoutHead as variant } from './variants';\n\nexport const LayoutHead = () => {\n const dispatch = useAppDispatch();\n const headState = useHeadControls();\n const { base } = variant({ theme: headState.theme });\n\n const onClick = (e: MouseEvent) => {\n e.currentTarget.disabled = true;\n track({\n eventType: AllEvents.closeClicked,\n systemType: headState.systemType,\n utmParams: headState.marketing.lastUtmParams,\n customerUuid: headState.cid,\n });\n setTimeout(() => {\n dispatch(setClosed());\n }, CLOSE_AFTER_TIMEOUT);\n };\n\n return (\n
\n \n {headState.closeVisible && (\n \n \n \n \n \n \n \n \n )}\n
\n );\n};\n\nexport default LayoutHead;\n","import { CHAT_SEEN_KEY, CID } from '../config/env';\n\n/**\n * Extracts a link from a given string and appends query parameters if specified.\n *\n * @param {string} link - The input string from which the link will be extracted.\n * @example constructLink('here is a link to a diet website https://usa.example.com', '12311231a2', hasQueryParams('https://usa.example.com'));\n * //output: https://usa.example.com/?utm_chat=salesmen-keto-redirect&chatSeen=true&cid=12311231a2\n * @returns {string} The extracted link with optional query parameters or `false` if no link is found.\n */\nexport const constructLink = (link: string): string => {\n const hasQueryParams = (url: string) => {\n // Regular expression pattern to match query parameters\n const pattern = /[?&]([^=#]+)=([^&#]*)/g;\n\n // Check if the pattern matches any query parameters\n return pattern.test(url);\n };\n\n // matching example: 'Secure site: https://www.example.com' will give [ https://www.example.com ]\n\n let search: string;\n\n if (window.location.search) {\n const searchParams = new URLSearchParams(window.location.search);\n\n searchParams.append(CHAT_SEEN_KEY, 'true');\n searchParams.append(CID, localStorage.getItem('__cid') || '');\n\n search = `/?${ searchParams}`;\n } else {\n search = '';\n }\n\n if (hasQueryParams(link)) {\n return link;\n }\n\n return link + search;\n};\n","import { MouseEvent,useEffect } from 'react';\n\nimport { AllEvents } from '../../config/enums';\nimport { LINK_CLICKED_KEY, SUPPORT_PURPOSE } from '../../config/env';\nimport { useAppDispatch, useAppSelector } from '../../hooks';\nimport { MarkdownLinkProps } from '../../interfaces/component';\nimport { track } from '../../services/tracking';\nimport { setClosed } from '../../store/slices/chat';\nimport { getConfig } from '../../store/slices/config';\nimport { setLink } from '../../store/slices/intentions';\nimport { getMeta } from '../../store/slices/meta';\nimport { constructLink } from '../../utils/formatting';\n\nexport const MarkdownLink = ({ properties }: MarkdownLinkProps) => {\n const { purpose } = useAppSelector(getConfig);\n const { cid, marketing, systemType } = useAppSelector(getMeta);\n const dispatch = useAppDispatch();\n const link = properties.href ? constructLink(properties.href) : '#';\n useEffect(() => {\n dispatch(setLink(link));\n });\n\n const onClick = (e: MouseEvent) => {\n if (purpose !== SUPPORT_PURPOSE) {\n localStorage.setItem(LINK_CLICKED_KEY, e.currentTarget.href);\n }\n \n track({\n eventType: AllEvents.linkClicked,\n systemType,\n utmParams: marketing.lastUtmParams,\n customerUuid: cid,\n });\n dispatch(setClosed());\n };\n\n return (\n {properties.href}\n \n );\n};\n\nexport default MarkdownLink;\n","import React, { useState } from 'react';\n\nconst extractVideoCode = (videoUrl: string) => {\n const pattern = /embed\\/(\\w+)/;\n const match = pattern.exec(videoUrl);\n\n if (match) {\n const videoCode = match[1];\n return videoCode;\n }\n\n return null;\n}\n\nexport const Iframe = React.memo(function Iframe({ url, title }: { url: string, title: string }) {\n const [isVisible, setIframeVisibility] = useState(false);\n\n const videoCode = extractVideoCode(url);\n\n const handleVideoClick = () => {\n setIframeVisibility(true);\n };\n\n return (\n isVisible\n ?\n \n :\n
\n \n
\n )\n});\n","import { tv } from 'tailwind-variants';\n\nexport const basic = /* tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none tw--text-center tw--bg-glaze tw--text-whisper',\n },\n});\n\nexport const icon = /* tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--px-4 tw--py-2',\n },\n});\n","import { LinkProps } from '../../interfaces/component';\nimport { basic as variant } from './variants';\n\nexport const Link = ({ text, href, onClick }: LinkProps) => {\n const { base } = variant();\n\n return (\n \n {text}\n \n );\n};\n\nexport default Link;\n","import { AllEvents, Roles } from '../../config/enums';\nimport { useAppDispatch, useAppSelector } from '../../hooks';\nimport { OptionsListProps } from '../../interfaces/index';\nimport { track } from '../../services/tracking';\nimport { fillUserHistoryData, setOutgoing, userMessageFindOne } from '../../store/slices/chat';\nimport { getMeta } from '../../store/slices/meta';\nimport { uuidV4 } from '../../utils';\nimport { Btn } from '../Button';\nimport { Link } from '../Link';\n\nexport const OptionList = ({ options = [] }: OptionsListProps) => {\n const dispatch = useAppDispatch();\n const meta = useAppSelector(getMeta);\n const isFirstUserMessage = !useAppSelector(userMessageFindOne);\n\n const setOption = (val: string, sequence: number) => {\n dispatch(fillUserHistoryData({\n id: uuidV4(),\n sequence: 1,\n role: Roles.user,\n content: {\n sequence: 1, message: val, resend: false, sent: true, groupId: ''\n }\n }));\n dispatch(setOutgoing(val));\n if (isFirstUserMessage) {\n track({\n eventType: AllEvents.buttonClick + sequence,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n });\n }\n };\n\n const setMessage = (val: string) => {\n dispatch(fillUserHistoryData({\n id: uuidV4(),\n sequence: 1,\n role: Roles.user,\n content: {\n sequence: 1,\n message: val,\n resend: false,\n sent: true,\n groupId: ''\n }\n }));\n };\n\n return [...options].sort((a, b) => a.sequence - b.sequence).map(({ value, link, sequence, noStream }) => (\n link\n ? (\n \n )\n : (\n setMessage(value) : () => setOption(value, sequence)}\n e2e=\"option-button\"\n />\n )\n ));\n};\n\nexport default OptionList;\n","import React from 'react';\nimport Markdown from 'react-markdown';\n\nimport { Definition } from '../../config/enums';\nimport { useAppSelector } from '../../hooks';\nimport { AssistantProps } from '../../interfaces/component';\nimport { getChat, sortBySequence } from '../../store/slices/chat';\nimport { getMeta } from '../../store/slices/meta';\nimport { uuidV4 } from '../../utils';\nimport MarkdownLink from '../Markdown/link';\nimport { Iframe } from '../Video';\nimport OptionList from './options';\nimport { flickerEffect } from './variants';\n\nconst Assistant = ({ message, itemId }: AssistantProps) => {\n const { isStreaming } = useAppSelector(getChat);\n const { pd } = useAppSelector(getMeta);\n const isLast = useAppSelector((state) => state.chat.historyIds.length - 1 === state.chat.historyIds.indexOf(itemId));\n const { base: baseFlicker } = flickerEffect({ isTyping: isStreaming && isLast });\n const sortedContent = [...message.content].sort(sortBySequence);\n\n return (\n <>\n {sortedContent.map((it) => {\n if (it.type === Definition.text) {\n return (\n \n \n ; }\n }}\n >{it[it.type]}\n \n \n \n );\n }\n\n if (it.type === Definition.buttons && isLast) {\n return (\n
\n \n
\n );\n }\n\n if (it.type === Definition.video) {\n return (\n \n );\n }\n\n if (it.type === Definition.image) {\n return (\n \n );\n }\n\n if (it.type === Definition.payment) {\n return `${it[it.type]} ${pd.displayPlanPrice} ${pd.billingFrequencyTmsg}`;\n }\n\n if (it.type === Definition.email) {\n return it[it.type];\n }\n\n })}\n \n );\n};\n\nexport const MemoizedAssistant = React.memo(Assistant);\n\nexport default MemoizedAssistant;\n","import React from 'react';\n\nimport { Roles } from '../../config/enums';\nimport { useAppSelector } from '../../hooks';\nimport { UserMessageContent } from '../../interfaces';\nimport { uuidV4 } from '../../utils';\nimport { User } from '../Stream';\nimport { MemoizedAssistant } from './assistant';\nimport { streamBubble as variant } from './variants';\n\nconst StreamBubble = ({ itemId }: { itemId: string }) => {\n const record = useAppSelector((state) => state.chat.historyData[itemId]);\n\n return (record && (\n
\n {record.role === Roles.assistant\n ? (\n \n )\n :\n [...record.content].map((record: UserMessageContent) => )\n }\n
\n ));\n};\n\nexport const MemoizedStreamBubble = React.memo(StreamBubble);\nexport default MemoizedStreamBubble;\n","import { Profile } from '../../components/Profile';\nimport { ScreenOrientation } from '../../config/enums';\nimport { streamHead as variant } from './variants';\n\nexport const StreamHead = ({ titleTxt }: { titleTxt: string }) => {\n const { base, title } = variant();\n\n return (\n
\n {title &&
{titleTxt}
}\n \n
\n );\n};\n\nexport default StreamHead;\n","import { useAppSelector } from '../../hooks';\nimport { getConfig } from '../../store/slices/config';\nimport { formatDateByLocale, uuidV4 } from '../../utils';\nimport { MemoizedStreamBubble } from './bubble';\nimport { StreamHead } from './head';\nimport { streamBase, streamRow } from './variants';\n\nexport const StreamBase = () => {\n const { aiProfile } = useAppSelector(getConfig);\n const historyIds = useAppSelector((state) => state.chat.historyIds || []);\n const firstMessage = useAppSelector((state) => state.chat.historyData[historyIds[0]]);\n const { base, second, date } = streamBase();\n const { base: baseRow } = streamRow();\n const time = formatDateByLocale(firstMessage?.time || new Date().getTime());\n\n return (\n
\n
\n \n {
{time}
}\n {historyIds.map((id: string) => (\n \n \n
\n ))}\n
\n \n );\n};\n\nexport default StreamBase;\n","import { IconBtn } from '../../components/Button';\nimport { Roles } from '../../config/enums';\nimport { useAppDispatch } from '../../hooks';\nimport { UserProps } from '../../interfaces/component';\nimport { resendMessage } from '../../store/slices/chat';\nimport { streamBubble as variant } from './variants';\n\nexport const User = ({ record }: UserProps) => {\n const dispatch = useAppDispatch();\n const { action, separator } = variant({ type: Roles.user });\n\n const onResend = () => {\n dispatch(resendMessage(record));\n };\n\n return (\n
\n \n {record.message}\n \n {(record.resend && !record.sent) && (\n
\n onResend()}>\n \n \n \n \n \n
\n )}\n
\n );\n};\n\nexport default User;\n","import { useAppDispatch } from '../../hooks';\nimport { AppProps } from '../../interfaces/component';\nimport { setConfig, setPurpose, setSpecialUrls } from '../../store/slices/config';\nimport { setMeta } from '../../store/slices/meta';\nimport { LayoutBase, LayoutFoot,LayoutHead } from '../Layout';\nimport { StreamBase } from '../Stream';\n\nexport const AppBase = ({ config }: AppProps) => {\n const dispatch = useAppDispatch();\n dispatch(setMeta(config.meta));\n dispatch(setPurpose(config.app.purpose));\n dispatch(setSpecialUrls(config.specialUrls));\n dispatch(setConfig(config.app));\n\n return (\n }\n stream={}\n foot={}\n />\n );\n};\n\nexport default AppBase;\n","\"use strict\";\n\nexports.__esModule = true;\nexports.default = getStorage;\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction noop() {}\n\nvar noopStorage = {\n getItem: noop,\n setItem: noop,\n removeItem: noop\n};\n\nfunction hasStorage(storageType) {\n if ((typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) !== 'object' || !(storageType in self)) {\n return false;\n }\n\n try {\n var storage = self[storageType];\n var testKey = \"redux-persist \".concat(storageType, \" test\");\n storage.setItem(testKey, 'test');\n storage.getItem(testKey);\n storage.removeItem(testKey);\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') console.warn(\"redux-persist \".concat(storageType, \" test failed, persistence will be disabled.\"));\n return false;\n }\n\n return true;\n}\n\nfunction getStorage(type) {\n var storageType = \"\".concat(type, \"Storage\");\n if (hasStorage(storageType)) return self[storageType];else {\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"redux-persist failed to create sync storage. falling back to noop storage.\");\n }\n\n return noopStorage;\n }\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = createWebStorage;\n\nvar _getStorage = _interopRequireDefault(require(\"./getStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction createWebStorage(type) {\n var storage = (0, _getStorage.default)(type);\n return {\n getItem: function getItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.getItem(key));\n });\n },\n setItem: function setItem(key, item) {\n return new Promise(function (resolve, reject) {\n resolve(storage.setItem(key, item));\n });\n },\n removeItem: function removeItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.removeItem(key));\n });\n }\n };\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _createWebStorage = _interopRequireDefault(require(\"./createWebStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _default = (0, _createWebStorage.default)('local');\n\nexports.default = _default;","import { Middleware } from '@reduxjs/toolkit';\n\nimport { AllEvents, Roles } from '../config/enums';\nimport { STORING_CHECKER_INTERVAL } from '../config/env';\nimport { PaymentDataSetterProps } from '../interfaces';\nimport intent from '../services/intentions';\nimport { track } from '../services/tracking';\nimport { RootState } from '../store';\nimport {\n addPredefinedAssistantMessage,\n fillUserHistoryData,\n setOutgoing\n} from '../store/slices/chat';\nimport {\n setEmailError,\n setEmailSuccess,\n setIsEmailLoading,\n setLink,\n} from '../store/slices/intentions';\nimport { setMarketing, setPd } from '../store/slices/meta';\nimport { uuidV4 } from '../utils';\n\nexport const intentionsMiddleware: Middleware = (store) => (next) => {\n\n const setPaymentDataTranslationAccordingly = (data: PaymentDataSetterProps | string): PaymentDataSetterProps => {\n const { meta } = store.getState();\n const transformedData = {} as PaymentDataSetterProps;\n\n if (!meta.pd) {\n return transformedData;\n }\n\n if (typeof data === 'object' && 'billingOptionType' in data) {\n data.billingFrequencyTmsg =\n data.billingOptionType === 'one-time'\n ? meta.pd.oneTimer\n : meta.pd.subscriberBillingFrequency?.replace(\n '{1}',\n data.frequencyInMonths\n );\n data = { ...data, ...transformedData };\n return data;\n }\n\n return transformedData\n };\n\n intent.core.on(intent.type.emailSuccess, () => {\n const { meta, intentions } = store.getState();\n\n store.dispatch(setIsEmailLoading(false));\n store.dispatch(setEmailError(''));\n store.dispatch(\n fillUserHistoryData({\n id: uuidV4(),\n role: Roles.user,\n sequence: 1,\n content: {\n sequence: 1,\n message: intentions.email.current,\n resend: false,\n sent: true,\n groupId: '',\n },\n })\n );\n store.dispatch(setOutgoing(intentions.email.current));\n\n // DEV NOTE: setEmailSuccess this status is for us to know if mail is validated in the endpoint\n store.dispatch(setEmailSuccess(true));\n track({\n eventType: AllEvents.emailEntered,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current,\n });\n });\n\n intent.core.on(intent.type.emailError, (response) => {\n const { meta, intentions, config } = store.getState();\n const { tm716, tm526, tm715, tm505 } = config.translations;\n\n store.dispatch(setIsEmailLoading(false));\n\n if (response.status === 409) {\n store.dispatch(addPredefinedAssistantMessage({\n content: tm716,\n buttons: [\n { sequence: 1, id: 'opt-1', text: tm526, value: tm526, link: response.data.buttonLink, noStream: true },\n { sequence: 2, id: 'opt-2', text: tm715, value: tm715, link: '', noStream: true }\n ]\n }));\n\n track({\n eventType: AllEvents.emailExist,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current,\n });\n return;\n }\n\n if (response.status === 422) {\n store.dispatch(setEmailError(response.errors.email[0] || tm505));\n\n track({\n eventType: AllEvents.emailWrong,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current,\n });\n }\n });\n\n dataIntervalChecker('marketing', store, setMarketing);\n dataIntervalChecker(\n '__pd',\n store,\n setPd,\n setPaymentDataTranslationAccordingly\n );\n\n return (action) => {\n if (setLink.match(action) && action.payload) {\n const { meta, intentions } = store.getState();\n\n track({\n eventType: AllEvents.linkProvided,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n }\n next(action);\n };\n};\n\nconst dataIntervalChecker = (\n key: string,\n store: RootState,\n setValue: (data: PaymentDataSetterProps | string) => void,\n transformData?: (\n data: string | PaymentDataSetterProps\n ) => PaymentDataSetterProps\n) => {\n const intervalId = setInterval(() => {\n let storedItem: string | PaymentDataSetterProps =\n localStorage.getItem(key) || '';\n\n try {\n storedItem = JSON.parse(storedItem);\n } catch (e) {\n storedItem = localStorage.getItem(key) || '';\n }\n\n if (transformData && storedItem) {\n storedItem = transformData(storedItem);\n }\n\n if (transformData && storedItem) {\n store.dispatch(setValue(storedItem));\n clearInterval(intervalId);\n }\n }, STORING_CHECKER_INTERVAL);\n};\n\nexport default intentionsMiddleware;\n","import { Middleware } from '@reduxjs/toolkit';\nimport { io, Socket } from 'socket.io-client';\n\nimport { config as socketConfig, Events } from '../config';\nimport { QueryParams, Roles } from '../config/enums';\nimport { CHAT_FINISHED_TIMESTAMP, DEFAULT_CLOSE_HREF, SCROLL_STOP_CLASS, SUPPORT_PURPOSE } from '../config/env';\nimport {\n AssistantHistoryInitialMessage,\n AssistantRecord,\n ClientMessage,\n SocketHistoryRecord,\n UserMessageContent\n} from '../interfaces'\nimport {\n fillAssistantHistoryData,\n fillInitialMessage,\n hideResendIcon,\n resendMessage,\n resetError,\n resetHistory,\n resetIsLoading,\n resetOutgoing,\n setClosed,\n setConnected,\n setError,\n setExistingHistory,\n setIsLoading,\n setIsStreaming,\n setOutgoing,\n setTypingTimeoutExpired,\n showResendIcon,\n} from '../store/slices/chat';\nimport { setConfig } from '../store/slices/config';\nimport { setRegion } from '../store/slices/meta';\nimport { getQueryParam } from '../utils';\n\nlet socket: Socket;\n\nconst chatMiddleware: Middleware = (store) => (next) => (action) => {\n const { meta, chat, config } = store.getState();\n\n const onError = () => {\n const { config } = store.getState();\n store.dispatch(resetIsLoading());\n store.dispatch(setError(config.translations.error));\n };\n\n const dispatchRetry = () => {\n store.dispatch(showResendIcon({ itemId: chat.historyIds.pop() }));\n onError();\n };\n\n const handleMessageSending = (data: ClientMessage): void => {\n if (data.role === Roles.user) {\n store.dispatch(setIsLoading());\n }\n\n if (socket && socket.connected && data.message.trim() !== '') {\n socket.emit(Events.chat, { time: new Date().getTime(), ...data }, withTimeout(dispatchRetry));\n store.dispatch(resetError());\n return;\n }\n\n dispatchRetry();\n };\n\n const handleMessageResending = (data: { itemId: string, message: string }) => {\n store.dispatch(hideResendIcon(data));\n store.dispatch(setIsLoading());\n\n const onResendError = () => {\n const { config } = store.getState();\n store.dispatch(showResendIcon(data));\n store.dispatch(resetIsLoading());\n store.dispatch(setError(config.translations.error));\n };\n\n if (socket?.connected && data.message.trim() !== '') {\n socket.volatile.emit(\n Events.chat,\n {\n role: Roles.user,\n message: data.message,\n term: getQueryParam(QueryParams.chat),\n user_id: meta.cid,\n region: meta.region,\n },\n withTimeout(onResendError)\n );\n store.dispatch(resetError());\n } else {\n onResendError();\n }\n };\n\n if (setOutgoing.match(action)) {\n handleMessageSending({\n role: Roles.user,\n message: action.payload,\n term: getQueryParam(QueryParams.chat),\n user_id: meta.cid,\n region: meta.region,\n messageId: [...chat.historyIds].pop(),\n });\n }\n\n if (setClosed.match(action)) {\n const chatBotContainer = document.querySelector('#chatbot-container');\n\n if (document.body && chatBotContainer && config.purpose !== SUPPORT_PURPOSE) {\n chatBotContainer.innerHTML = '';\n document.body.classList.remove(SCROLL_STOP_CLASS);\n }\n\n localStorage.setItem(CHAT_FINISHED_TIMESTAMP, new Date().getTime().toString());\n\n if (socket) {\n socket.close();\n }\n\n window.location.href = config.close.href || DEFAULT_CLOSE_HREF;\n }\n\n if (setTypingTimeoutExpired.match(action) && action.payload) {\n const messageId = [...chat.historyIds].pop();\n const lastMessage = chat.historyData[messageId].content.map(({ message }: { message: UserMessageContent }) => message).join('\\n');\n\n if (lastMessage.trim() !== '') {\n handleMessageSending({\n role: Roles.user,\n message: lastMessage,\n term: getQueryParam(QueryParams.chat),\n user_id: meta.cid,\n region: meta.region,\n messageId\n });\n }\n }\n\n if (resendMessage.match(action)) {\n handleMessageResending(action.payload);\n }\n\n if (!setConfig.match(action)) {\n return next(action);\n }\n\n store.dispatch(setIsLoading());\n\n // @ts-expect-error this is working currently\n socket = io.connect(action.payload.chatUrl, { query: `cid=${meta.cid}`, ...socketConfig });\n\n socket.on(Events.connect, () => {\n const { meta } = store.getState();\n socket.sendBuffer = [];\n socket.emit(Events.chatHistory, { user_id: meta.cid, region: meta.region, term: getQueryParam(QueryParams.chat) });\n store.dispatch(setConnected(true));\n });\n\n socket.on(Events.chatHistory, ({ history: servedHistory, errors, region }\n : { history: Array, errors: string[], region: string }) => {\n\n store.dispatch(resetIsLoading());\n store.dispatch(setIsStreaming(false));\n store.dispatch(setRegion(region));\n const { config, meta } = store.getState();\n\n if (errors.length) {\n store.dispatch(setError(errors[0]));\n return;\n }\n\n if (servedHistory.length) {\n store.dispatch(setExistingHistory(servedHistory));\n return\n }\n\n store.dispatch(resetHistory());\n store.dispatch(setIsLoading());\n let interval = 0;\n config.aiProfile.initialMessage\n .forEach((element: AssistantHistoryInitialMessage, index: number, arr: Array) => {\n interval += 1000;\n\n setTimeout(() => {\n store.dispatch(fillInitialMessage(element));\n\n if (arr.length === index + 1) {\n config.aiProfile.initialMessage.forEach((message: SocketHistoryRecord) =>\n handleMessageSending({\n role: Roles.assistant,\n term: getQueryParam(QueryParams.chat),\n user_id: meta.cid,\n message: JSON.stringify(message.content),\n messageId: message.id,\n region: meta.region,\n }));\n store.dispatch(resetIsLoading());\n }\n\n }, interval);\n\n });\n });\n\n socket.on(Events.streamStart, ({ id }: { id: string }) => {\n store.dispatch(setIsStreaming(true));\n store.dispatch(resetIsLoading());\n store.dispatch(resetOutgoing());\n store.dispatch(resetError());\n store.dispatch(fillAssistantHistoryData({ id }));\n });\n\n socket.on(Events.streamData, (data: AssistantRecord\n & {\n id: string,\n errors: Array\n }) => {\n\n store.dispatch(fillAssistantHistoryData({\n id: data.id,\n sequence: data.sequence,\n content: {\n type: data.type,\n [data.type]: data[data.type],\n sequence: data.sequence\n }\n }));\n\n if (data.errors?.length && !chat.error) {\n store.dispatch(setError(data.errors[0]));\n }\n });\n\n socket.on(Events.streamEnd, () => {\n store.dispatch(setIsStreaming(false));\n });\n\n socket.on(Events.streamError, onError);\n socket.on(Events.error, onError);\n\n socket.on(Events.disconnect, () => {\n store.dispatch(setConnected(false));\n });\n\n next(action);\n};\n\nconst withTimeout = (onTimeout: () => void, timeout: number = 5000) => {\n let called = false;\n const timer = setTimeout(() => {\n if (called) {\n return;\n }\n called = true;\n onTimeout();\n }, timeout);\n\n return () => {\n if (called) {\n return;\n }\n called = true;\n clearTimeout(timer);\n };\n};\n\nexport default chatMiddleware;\n","import { combineReducers, configureStore } from '@reduxjs/toolkit';\nimport { persistReducer,persistStore } from 'redux-persist';\nimport storage from 'redux-persist/lib/storage';\n\nimport intentionsMiddleware from '../middleware/intentions';\nimport chatMiddleware from '../middleware/socket';\nimport chatReducer from './slices/chat';\nimport configReducer from './slices/config';\nimport intentionsReducer from './slices/intentions';\nimport metaReducer from './slices/meta';\n\nconst persistConfig = {\n key: 'root',\n storage,\n whitelist: ['chat', 'meta', 'config'],\n};\n\nexport const store = configureStore({\n reducer: persistReducer(persistConfig, combineReducers({\n meta: metaReducer,\n config: configReducer,\n chat: chatReducer,\n intentions: intentionsReducer,\n })),\n middleware: (getDefaultMiddleware) => getDefaultMiddleware({ serializableCheck: false })\n .concat(chatMiddleware, intentionsMiddleware),\n});\n\n\nexport type AppDispatch = typeof store.dispatch\nexport type RootState = ReturnType\n\nexport const persistor = persistStore(store);\n","import './assets/css/index.css';\n\nimport ReactDOM from 'react-dom/client';\nimport { Provider } from 'react-redux';\nimport { PersistGate } from 'redux-persist/integration/react';\n\nimport { AppBase } from './components/AppBase';\nimport { SCROLL_STOP_CLASS } from './config/env';\nimport { persistor, store } from './store';\n\nexport { intent } from './services/intentions';\n\nlet initiated = false;\n\nexport const ReactBotClient = (config) => {\n if (initiated) {\n return;\n }\n initiated = true;\n\n ReactDOM\n .createRoot(config.root)\n .render(\n \n \n \n \n \n );\n\n document.body.classList.add(SCROLL_STOP_CLASS);\n};\n\nexport default ReactBotClient;\n"],"names":["base64Js","byteLength","toByteArray","fromByteArray","lookup","revLookup","Arr","code","i","len","getLens","b64","validLen","placeHoldersLen","lens","_byteLength","tmp","arr","curByte","tripletToBase64","num","encodeChunk","uint8","start","end","output","extraBytes","parts","maxChunkLength","len2","ieee754","buffer","offset","isLE","mLen","nBytes","e","m","eLen","eMax","eBias","nBits","d","s","value","c","rt","base64","require$$0","require$$1","customInspectSymbol","exports","Buffer","SlowBuffer","K_MAX_LENGTH","typedArraySupport","proto","createBuffer","length","buf","arg","encodingOrOffset","allocUnsafe","from","fromString","fromArrayView","isInstance","fromArrayBuffer","valueOf","b","fromObject","assertSize","size","alloc","fill","encoding","checked","string","actual","fromArrayLike","array","arrayView","copy","byteOffset","obj","numberIsNaN","a","x","y","list","pos","mustMatch","loweredCase","utf8ToBytes","base64ToBytes","slowToString","hexSlice","utf8Slice","asciiSlice","latin1Slice","base64Slice","utf16leSlice","swap","n","str","max","target","thisStart","thisEnd","thisCopy","targetCopy","bidirectionalIndexOf","val","dir","arrayIndexOf","indexSize","arrLength","valLength","read","foundIndex","found","j","hexWrite","remaining","strLen","parsed","utf8Write","blitBuffer","asciiWrite","asciiToBytes","base64Write","ucs2Write","utf16leToBytes","res","firstByte","codePoint","bytesPerSequence","secondByte","thirdByte","fourthByte","tempCodePoint","decodeCodePointsArray","MAX_ARGUMENTS_LENGTH","codePoints","ret","out","hexSliceLookupTable","bytes","newBuf","checkOffset","ext","noAssert","mul","defineBigIntMethod","validateNumber","first","last","boundsError","lo","hi","checkInt","min","maxBytes","wrtBigUInt64LE","checkIntBI","wrtBigUInt64BE","limit","sub","checkIEEE754","writeFloat","littleEndian","writeDouble","targetStart","errors","E","sym","getMessage","Base","name","range","input","msg","received","addNumericalSeparator","checkBounds","type","INVALID_BASE64_RE","base64clean","units","leadSurrogate","byteArray","src","dst","alphabet","table","i16","fn","BufferBigIntNotDefined","process","browserModule","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","defaultClearTimeout","runTimeout","fun","runClearTimeout","marker","queue","draining","currentQueue","queueIndex","cleanUpNextTick","drainQueue","timeout","args","Item","noop","r","l","f","k","p","q","g","h","reactJsxRuntime_production_min","React","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_OFFSCREEN_TYPE","MAYBE_ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","ReactSharedInternals","error","format","_len2","_key2","printWarning","level","ReactDebugCurrentFrame","stack","argsWithFormat","item","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","isValidElementType","getWrappedName","outerType","innerType","wrapperName","displayName","functionName","getContextName","getComponentNameFromType","context","provider","outerName","lazyComponent","payload","init","assign","disabledDepth","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","disabledLog","disableLogs","props","reenableLogs","ReactCurrentDispatcher","prefix","describeBuiltInComponentFrame","source","ownerFn","match","reentry","componentFrameCache","PossiblyWeakMap","describeNativeComponentFrame","construct","frame","control","previousPrepareStackTrace","previousDispatcher","Fake","sample","sampleLines","controlLines","_frame","syntheticFrame","describeFunctionComponentFrame","shouldConstruct","Component","prototype","describeUnknownElementTypeFrameInDEV","hasOwnProperty","loggedTypeFailures","setCurrentlyValidatingElement","element","owner","checkPropTypes","typeSpecs","values","location","componentName","has","typeSpecName","error$1","err","ex","isArrayImpl","isArray","typeName","hasToStringTag","willCoercionThrow","testStringCoercion","checkKeyStringCoercion","ReactCurrentOwner","RESERVED_PROPS","specialPropKeyWarningShown","specialPropRefWarningShown","didWarnAboutStringRefs","hasValidRef","config","getter","hasValidKey","warnIfStringRefCannotBeAutoConverted","self","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","key","ref","jsxDEV","maybeKey","propName","defaultProps","ReactCurrentOwner$1","ReactDebugCurrentFrame$1","setCurrentlyValidatingElement$1","propTypesMisspellWarningShown","isValidElement","object","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","fileName","lineNumber","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","info","parentName","validateExplicitKey","currentComponentErrorInfo","childOwner","validateChildKeys","node","child","iteratorFn","iterator","step","validatePropTypes","propTypes","_name","validateFragmentProps","fragment","keys","jsxWithValidation","isStaticChildren","validType","sourceInfo","typeString","children","jsxWithValidationStatic","jsxWithValidationDynamic","jsx","jsxs","reactJsxRuntime_development","jsxRuntimeModule","client","o","_typeof","_classCallCheck","instance","Constructor","_defineProperties","descriptor","_createClass","protoProps","staticProps","_possibleConstructorReturn","call","_assertThisInitialized","_getPrototypeOf","_inherits","subClass","superClass","_setPrototypeOf","_defineProperty","PersistGate","_PureComponent","_getPrototypeOf2","_this","_len","_key","persistor","_persistor$getState","bootstrapped","PureComponent","Definition","ScreenOrientation","QueryParams","AllEvents","Intentions","Roles","Events","Theme","getQueryParam","param","formatDateByLocaleOptions","formatDateByLocale","inputDate","options","uuidV4","uuid","meta","chat","intentions","configSlice","createSlice","initialState","state","getConfig","setConfig","resetConfig","setTheme","resetTheme","setDevToolsStatus","resetDevToolsStatus","togglePluginMode","setTranslations","setPurpose","setSpecialUrls","getMeta","setMeta","resetMeta","setMarketing","setPd","setRegion","useAppDispatch","useDispatch","useAppSelector","useSelector","useWindowSize","setSize","useState","useLayoutEffect","updateSize","useHeadControls","theme","close","cid","systemType","marketing","u","t","twJoin","index","argument","resolvedValue","toValue","mix","CLASS_PART_SEPARATOR","createClassUtils","classMap","createClassMap","conflictingClassGroups","_config$conflictingCl","conflictingClassGroupModifiers","getClassGroupId","className","classParts","getGroupRecursive","getGroupIdForArbitraryProperty","getConflictingClassGroupIds","classGroupId","hasPostfixModifier","conflicts","classPartObject","currentClassPart","nextClassPartObject","classGroupFromNextClassPart","classRest","_a","_ref","validator","arbitraryPropertyRegex","arbitraryPropertyClassName","property","prefixedClassGroupEntries","getPrefixedClassGroupEntries","_ref2","classGroup","processClassesRecursively","classDefinition","classPartObjectToEdit","getPart","isThemeGetter","_ref3","path","currentClassPartObject","pathPart","func","classGroupEntries","_ref4","prefixedClassGroup","_ref5","createLruCache","maxCacheSize","cacheSize","cache","previousCache","update","IMPORTANT_MODIFIER","createSplitModifiers","separator","isSeparatorSingleCharacter","firstSeparatorCharacter","separatorLength","modifiers","bracketDepth","modifierStart","postfixModifierPosition","currentCharacter","baseClassNameWithImportantModifier","hasImportantModifier","baseClassName","maybePostfixModifierPosition","sortModifiers","sortedModifiers","unsortedModifiers","modifier","isArbitraryVariant","createConfigUtils","SPLIT_CLASSES_REGEX","mergeClassList","classList","configUtils","splitModifiers","classGroupsInConflict","originalClassName","_splitModifiers","variantModifier","modifierId","classId","group","createTailwindMerge","createConfig","cacheGet","cacheSet","functionToCall","initTailwindMerge","firstCreateConfig","restCreateConfig","previousConfig","createConfigCurrent","tailwindMerge","cachedResult","result","fromTheme","themeGetter","arbitraryValueRegex","fractionRegex","stringLengths","tshirtUnitRegex","lengthUnitRegex","shadowRegex","isLength","isNumber","isArbitraryLength","getIsArbitraryValue","isLengthOnly","isArbitrarySize","isNever","isArbitraryPosition","isArbitraryUrl","isUrl","isArbitraryNumber","isPercent","isInteger","isIntegerOnly","isArbitraryValue","isAny","isTshirtSize","isArbitraryShadow","isShadow","label","testValue","getDefaultConfig","colors","spacing","blur","brightness","borderColor","borderRadius","borderSpacing","borderWidth","contrast","grayscale","hueRotate","invert","gap","gradientColorStops","gradientColorStopPositions","inset","margin","opacity","padding","saturate","scale","sepia","skew","space","translate","getOverscroll","getOverflow","getSpacingWithAutoAndArbitrary","getSpacingWithArbitrary","getLengthWithEmpty","getNumberWithAutoAndArbitrary","getPositions","getLineStyles","getBlendModes","getAlign","getZeroAndEmpty","getBreaks","getNumber","getNumberAndArbitrary","mergeConfigs","baseConfig","configExtension","mergePropertyRecursively","overrideTypes","baseObject","mergeKey","mergeValue","nextKey","extendTailwindMerge","twMerge","se","_","N","M","F","w","b$1","Z","U","C","V","W","S","g$1","A","O","$","h$1","v","K","z","a$1","J","L","ae","T","P","D","G","H","I","ee","te","layoutBase","tv","layoutHead","layoutFoot","LayoutBase","head","stream","foot","isPluginMode","base","wrapper","variant","data","overlay","Overlay","track","eventType","utmParams","customerUuid","email","phone","event","payment","loader","PaymentButton","text","onClick","e2e","disabled","currentEmail","btn","useEffect","CloseButton","variants","PaymentFooter","icon","PaymentHead","translations","left","leftTop","bottom","right","price","Link","forwardRef","link","href","PaymentLoader","texts","title","inner","dots","dotsIn","progressCheckmark","panelTitle","spinningTexts","filmContainer","film","txt","PaymentScene","onClose","displayPlanPrice","billingFrequencyTmsg","streamBase","streamHead","streamRow","flickerEffect","streamBubble","ellipsis","Ellipsis","dotFirst","dotSecond","dotThird","CHAT_SEEN_KEY","LINK_CLICKED_KEY","CHAT_FINISHED_TIMESTAMP","CID","STORING_CHECKER_INTERVAL","SCROLL_STOP_CLASS","SUPPORT_PURPOSE","CLOSE_AFTER_TIMEOUT","DEFAULT_CLOSE_HREF","TYPING_TIMEOUT","getUnifiedSequence","current","incoming","record","hasMatch","_b","Y","Q","nn","X","rn","tn","en","on","R","B","un","an","produce","draft","id","prev","dataType","content","belongsTo","el","getChat","userMessageFindOne","historyId","sortBySequence","setOutgoing","resetOutgoing","setExistingHistory","addPredefinedAssistantMessage","setIsLoading","resetIsLoading","setLastGroupPointer","setTypingTimeoutExpired","setError","resetError","setConnected","setClosed","hideResendIcon","showResendIcon","resendMessage","setIsStreaming","fillAssistantHistoryData","fillUserHistoryData","resetHistory","fillInitialMessage","chatReducer","intentionsSlice","getEmailIntentions","getPaymentIntentions","setEmailSuccess","setIsPaymentSuccessful","setPaymentFormVisibility","setEmailError","setIsEmailLoading","setIsPaymentButtonVisible","setPaymentIntentError","setEmail","setLink","intentionsReducer","useFootProps","pd","purpose","specialUrls","isLoading","isStreaming","streamError","store","storedLink","emailError","isPaymentFormVisible","paymentIntentError","paymentSuccess","historyData","historyIds","lastMsgId","lastMsg","isLastAssistantMsg","noButtonChoices","hasPaymentIntent","hasEmailIntent","message","isResponseFormVisible","ReflectApply","receiver","ReflectOwnKeys","ProcessEmitWarning","warning","NumberIsNaN","EventEmitter","eventsModule","once","defaultMaxListeners","checkListener","listener","_getMaxListeners","that","doError","events","er","handler","listeners","arrayClone","_addListener","prepend","existing","onceWrapper","_onceWrap","wrapped","position","originalListener","spliceOne","_listeners","unwrap","evlistener","unwrapListeners","emitter","listenerCount","resolve","reject","errorListener","resolver","eventTargetAgnosticAddListener","addErrorHandlerIfEventEmitter","flags","wrapListener","intent","basic","Btn","IconBtn","outlined","Input","onChange","onKeyUp","placeholder","spin","EmailForm","dispatch","button","setCurrentEmail","inputElement","useRef","handleInputChange","currentValue","handleFormSubmit","ResponseForm","connected","response","setCurrentResponse","timerId","setTimerId","groupId","setTimerToSendMessage","currentId","LayoutFoot","footState","ctaAfterPayButton","setDisabled","setIsPaymentContainerVisible","isVisible","onClosePaymentForm","onPaymentSuccess","onError","initializePaymentForm","onClickCta","profile","Profile","orientation","minimized","aiProfile","avatar","role","imgWrapper","LayoutHead","headState","constructLink","hasQueryParams","url","search","searchParams","MarkdownLink","properties","extractVideoCode","videoUrl","Iframe","setIframeVisibility","videoCode","handleVideoClick","OptionList","isFirstUserMessage","setOption","sequence","setMessage","noStream","Assistant","itemId","isLast","baseFlicker","sortedContent","Fragment","it","Markdown","_c","_d","MemoizedAssistant","StreamBubble","User","MemoizedStreamBubble","StreamHead","titleTxt","StreamBase","firstMessage","second","date","baseRow","time","action","onResend","AppBase","getStorage_1","getStorage","noopStorage","hasStorage","storageType","storage","testKey","createWebStorage_1","createWebStorage","_getStorage","_interopRequireDefault","default_1","_createWebStorage","_default","intentionsMiddleware","next","setPaymentDataTranslationAccordingly","transformedData","tm716","tm526","tm715","tm505","dataIntervalChecker","setValue","transformData","intervalId","storedItem","socket","chatMiddleware","dispatchRetry","handleMessageSending","withTimeout","handleMessageResending","onResendError","chatBotContainer","messageId","lastMessage","io","socketConfig","servedHistory","region","interval","onTimeout","called","timer","persistConfig","configureStore","persistReducer","combineReducers","metaReducer","configReducer","getDefaultMiddleware","persistStore","initiated","ReactBotClient","ReactDOM","Provider"],"mappings":";;;;;;;;AAEAA,GAAA,aAAqBC;AACrBD,GAAA,cAAsBE;AACtBF,GAAA,gBAAwBG;AAExB,IAAIC,KAAS,CAAE,GACXC,KAAY,CAAE,GACdC,KAAM,OAAO,aAAe,MAAc,aAAa,OAEvDC,KAAO;AACX,SAASC,KAAI,GAAGC,KAAMF,GAAK,QAAQC,KAAIC,IAAK,EAAED;AAC5C,EAAAJ,GAAOI,EAAC,IAAID,GAAKC,EAAC,GAClBH,GAAUE,GAAK,WAAWC,EAAC,CAAC,IAAIA;AAKlCH,GAAU,IAAI,WAAW,CAAC,CAAC,IAAI;AAC/BA,GAAU,IAAI,WAAW,CAAC,CAAC,IAAI;AAE/B,SAASK,GAASC,GAAK;AACrB,MAAIF,IAAME,EAAI;AAEd,MAAIF,IAAM,IAAI;AACZ,UAAM,IAAI,MAAM,gDAAgD;AAKlE,MAAIG,IAAWD,EAAI,QAAQ,GAAG;AAC9B,EAAIC,MAAa,OAAIA,IAAWH;AAEhC,MAAII,IAAkBD,MAAaH,IAC/B,IACA,IAAKG,IAAW;AAEpB,SAAO,CAACA,GAAUC,CAAe;AACnC;AAGA,SAASZ,GAAYU,GAAK;AACxB,MAAIG,IAAOJ,GAAQC,CAAG,GAClBC,IAAWE,EAAK,CAAC,GACjBD,IAAkBC,EAAK,CAAC;AAC5B,UAASF,IAAWC,KAAmB,IAAI,IAAKA;AAClD;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,EAAA,IAAA6pB,IAAA,EAAS,OAAAhN,IACR,UAAA7c,gBAAAA,EAAA,IAACwB,IAAY,EAAA,WAAAM,IACX,UAAC9B,gBAAAA,EAAA,IAAAomB,IAAA,EAAQ,QAAS1pB,EAAO,cAAgB,CAAA,EAC3C,CAAA,GACF;AAAA,EAAA,GAGK,SAAA,KAAK,UAAU,IAAIub,EAAiB;AAC/C;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,49,53,78,79,80]} \ No newline at end of file diff --git a/dist/index.umd.js b/dist/index.umd.js index cc97460..33f7f7f 100644 --- a/dist/index.umd.js +++ b/dist/index.umd.js @@ -1,10 +1,10 @@ -(function(){"use strict";try{if(typeof document<"u"){const t=document.createElement("style");t.id="react-tw-ai-client",t.appendChild(document.createTextNode('*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}: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:Plus Jakarta Sans,Roboto,Mulish,Exo,Helvetica,Arial,sans-serif;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;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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]{display:none}*,: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: }::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--pointer-events-none{pointer-events:none}.tw--pointer-events-auto{pointer-events:auto}.tw--fixed{position:fixed}.tw--absolute{position:absolute}.tw--relative{position:relative}.tw---top-1\\/2{top:-50%}.tw--bottom-0{bottom:0}.tw--bottom-1{bottom:.25rem}.tw--bottom-\\[-16px\\]{bottom:-16px}.tw--left-0{left:0}.tw--right-0{right:0}.tw--right-4{right:1rem}.tw--right-\\[-10px\\]{right:-10px}.tw--top-0{top:0}.tw--top-8{top:2rem}.tw--top-\\[-30px\\]{top:-30px}.tw--top-\\[50\\%\\]{top:50%}.tw--z-50{z-index:50}.tw--z-\\[101\\]{z-index:101}.tw--m-0{margin:0}.tw--m-auto{margin:auto}.tw--mx-10{margin-left:2.5rem;margin-right:2.5rem}.tw--mx-\\[30px\\]{margin-left:30px;margin-right:30px}.tw--mx-auto{margin-left:auto;margin-right:auto}.tw--my-4{margin-top:1rem;margin-bottom:1rem}.tw--mb-5{margin-bottom:1.25rem}.tw--mb-6{margin-bottom:1.5rem}.tw--mb-7{margin-bottom:1.75rem}.tw--mb-\\[11px\\]{margin-bottom:11px}.tw--mb-auto{margin-bottom:auto}.tw--ml-7{margin-left:1.75rem}.tw--ml-auto{margin-left:auto}.tw--mr-0{margin-right:0}.tw--mr-5{margin-right:1.25rem}.tw--mr-\\[5px\\]{margin-right:5px}.tw--mt-0{margin-top:0}.tw--mt-24{margin-top:6rem}.tw--mt-\\[11px\\]{margin-top:11px}.tw--mt-\\[30px\\]{margin-top:30px}.tw--box-border{box-sizing:border-box}.tw--box-content{box-sizing:content-box}.tw--block{display:block}.tw--inline-block{display:inline-block}.tw--flex{display:flex}.tw--grid{display:grid}.tw--hidden{display:none}.tw--h-16{height:4rem}.tw--h-4{height:1rem}.tw--h-6{height:1.5rem}.tw--h-8{height:2rem}.tw--h-80{height:20rem}.tw--h-\\[12px\\]{height:12px}.tw--h-\\[50px\\]{height:50px}.tw--h-\\[60px\\]{height:60px}.tw--h-auto{height:auto}.tw--h-fit{height:-moz-fit-content;height:fit-content}.tw--h-full{height:100%}.tw--h-screen{height:100vh}.tw--max-h-\\[700px\\]{max-height:700px}.tw--max-h-screen{max-height:100vh}.tw--min-h-\\[400px\\]{min-height:400px}.tw--w-16{width:4rem}.tw--w-4{width:1rem}.tw--w-6{width:1.5rem}.tw--w-64{width:16rem}.tw--w-8{width:2rem}.tw--w-\\[12px\\]{width:12px}.tw--w-fit{width:-moz-fit-content;width:fit-content}.tw--w-full{width:100%}.tw--w-screen{width:100vw}.tw--max-w-\\[280px\\]{max-width:280px}.tw--max-w-\\[335px\\]{max-width:335px}.tw--max-w-\\[375px\\]{max-width:375px}.tw--max-w-\\[400px\\]{max-width:400px}.tw--max-w-\\[500px\\]{max-width:500px}.tw--max-w-md{max-width:28rem}.tw--max-w-xs{max-width:20rem}.tw--flex-1{flex:1 1 0%}.tw--shrink{flex-shrink:1}.tw--shrink-0{flex-shrink:0}.tw--grow-0{flex-grow:0}.tw--translate-x-72{--tw-translate-x: 18rem;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))}.tw--translate-y-1\\/2{--tw-translate-y: 50%;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))}.tw--translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;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))}@keyframes tw--dark-shadow-dots{0%,33%{background:rgba(255,255,255,.5);box-shadow:-31px 0 #f53374,31px 0 #ffffff80}66%{background:#f53374;box-shadow:-31px 0 #ffffff80,31px 0 #ffffff80}to,0%{background:rgba(255,255,255,.5);box-shadow:-31px 0 #ffffff80,31px 0 #f53374}}.tw--animate-dark-shadow-dots{animation:tw--dark-shadow-dots 2s linear infinite}@keyframes tw--light-shadow-dots{0%,33%{background:rgba(202,202,219,.6);box-shadow:-31px 0 #21bb5a,31px 0 #cacadb99}66%{background:#21bb5a;box-shadow:-31px 0 #cacadb99,31px 0 #cacadb99}to,0%{background:rgba(202,202,219,.6);box-shadow:-31px 0 #cacadb99,31px 0 #21bb5a}}.tw--animate-light-shadow-dots{animation:tw--light-shadow-dots 2s linear infinite}@keyframes tw--rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tw--animate-rotate{animation:tw--rotate .5s linear infinite}@keyframes tw--text-spin{0%{transform:translate(18rem)}6.25%,12.5%{transform:translate(-.5rem)}18.75%,25%{transform:translate(-21.5rem)}31.25%,37.5%{transform:translate(-42.5rem)}43.75%,50%{transform:translate(-63.5rem)}56.25%,62.5%{transform:translate(-84.5rem)}68.75%,75%{transform:translate(-105.5rem)}81.25%,87.5%{transform:translate(-126.5rem)}93.75%,to{transform:translate(-147.5em)}}.tw--animate-text-spin{animation:tw--text-spin 30s linear infinite}.tw--animate-wave{animation:tw--wave 1.3s linear infinite}.tw--animate-wave-delay{animation:tw--wave 1.3s linear infinite -1.1s}@keyframes tw--wave{0%{transform:initial}60%{transform:initial}to{transform:initial}30%{transform:translateY(-15px)}}.tw--animate-wave-delay-2{animation:tw--wave 1.3s linear infinite -.9s}.tw--cursor-pointer{cursor:pointer}.tw--select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.tw--flex-row{flex-direction:row}.tw--flex-col{flex-direction:column}.tw--flex-col-reverse{flex-direction:column-reverse}.tw--flex-wrap{flex-wrap:wrap}.tw--items-end{align-items:flex-end}.tw--items-center{align-items:center}.tw--items-stretch{align-items:stretch}.tw--justify-center{justify-content:center}.tw--justify-between{justify-content:space-between}.tw--gap-2{gap:.5rem}.tw--space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.tw--space-x-\\[6px\\]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(6px * var(--tw-space-x-reverse));margin-left:calc(6px * calc(1 - var(--tw-space-x-reverse)))}.tw--space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.tw--space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.tw--space-y-\\[10px\\]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(10px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(10px * var(--tw-space-y-reverse))}.tw--space-y-\\[11px\\]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(11px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(11px * var(--tw-space-y-reverse))}.tw--self-stretch{align-self:stretch}.tw--justify-self-start{justify-self:start}.tw--justify-self-end{justify-self:end}.tw--justify-self-stretch{justify-self:stretch}.tw--overflow-hidden{overflow:hidden}.tw--overflow-y-scroll{overflow-y:scroll}.tw--whitespace-pre-wrap{white-space:pre-wrap}.tw--break-words{overflow-wrap:break-word}.tw--rounded-3xl{border-radius:1.5rem}.tw--rounded-\\[20px\\]{border-radius:20px}.tw--rounded-full{border-radius:9999px}.tw--rounded-lg{border-radius:.5rem}.tw--rounded-xl{border-radius:.75rem}.tw--border{border-width:1px}.tw--border-0{border-width:0px}.tw--border-\\[5px\\]{border-width:5px}.tw--border-r{border-right-width:1px}.tw--border-solid{border-style:solid}.tw--border-dark-glaze{--tw-border-opacity: 1;border-color:rgb(179 186 198 / var(--tw-border-opacity))}.tw--border-light-seraph{--tw-border-opacity: 1;border-color:rgb(33 187 90 / var(--tw-border-opacity))}.tw--border-light-zephyr-200{border-color:#2b31391a}.tw--border-l-dark-zephyr-600{border-left-color:#fff9}.tw--border-l-light-zephyr-600{border-left-color:#2b313999}.tw--border-r-\\[\\#cacadb\\]{--tw-border-opacity: 1;border-right-color:rgb(202 202 219 / var(--tw-border-opacity))}.tw--border-t-dark-zephyr-600{border-top-color:#fff9}.tw--border-t-light-zephyr-600{border-top-color:#2b313999}.tw--bg-\\[transparent\\]{background-color:transparent}.tw--bg-dark-glazeBg{--tw-bg-opacity: 1;background-color:rgb(179 186 198 / var(--tw-bg-opacity))}.tw--bg-dark-iota-dots{--tw-bg-opacity: 1;background-color:rgb(33 187 90 / var(--tw-bg-opacity))}.tw--bg-dark-loader,.tw--bg-dark-lumina{--tw-bg-opacity: 1;background-color:rgb(37 34 57 / var(--tw-bg-opacity))}.tw--bg-dark-neon{--tw-bg-opacity: 1;background-color:rgb(1 154 255 / var(--tw-bg-opacity))}.tw--bg-dark-pale-dots{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.tw--bg-dark-seraph{--tw-bg-opacity: 1;background-color:rgb(245 51 115 / var(--tw-bg-opacity))}.tw--bg-dark-sigma{--tw-bg-opacity: 1;background-color:rgb(15 14 30 / var(--tw-bg-opacity))}.tw--bg-dark-whisper{--tw-bg-opacity: 1;background-color:rgb(21 18 38 / var(--tw-bg-opacity))}.tw--bg-dark-zephyr-100{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.tw--bg-light-glaze{--tw-bg-opacity: 1;background-color:rgb(33 187 90 / var(--tw-bg-opacity))}.tw--bg-light-glazeBg{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.tw--bg-light-iota-dots{--tw-bg-opacity: 1;background-color:rgb(33 187 90 / var(--tw-bg-opacity))}.tw--bg-light-loader{--tw-bg-opacity: 1;background-color:rgb(246 248 250 / var(--tw-bg-opacity))}.tw--bg-light-lumina{--tw-bg-opacity: 1;background-color:rgb(240 242 245 / var(--tw-bg-opacity))}.tw--bg-light-pale-dots{--tw-bg-opacity: 1;background-color:rgb(202 202 219 / var(--tw-bg-opacity))}.tw--bg-light-seraph{--tw-bg-opacity: 1;background-color:rgb(33 187 90 / var(--tw-bg-opacity))}.tw--bg-light-whisper{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.tw--bg-light-zephyr-100{--tw-bg-opacity: 1;background-color:rgb(43 49 57 / var(--tw-bg-opacity))}.tw--bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.tw--bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.tw--from-\\[\\#FF0000\\]{--tw-gradient-from: #FF0000 var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.tw--to-\\[\\#F25640\\]{--tw-gradient-to: #F25640 var(--tw-gradient-to-position)}.tw--p-0{padding:0}.tw--p-0\\.5{padding:.125rem}.tw--p-1{padding:.25rem}.tw--p-3{padding:.75rem}.tw--p-5{padding:1.25rem}.tw--p-7{padding:1.75rem}.tw--px-4{padding-left:1rem;padding-right:1rem}.tw--px-5{padding-left:1.25rem;padding-right:1.25rem}.tw--px-\\[15px\\]{padding-left:15px;padding-right:15px}.tw--py-2{padding-top:.5rem;padding-bottom:.5rem}.tw--py-3{padding-top:.75rem;padding-bottom:.75rem}.tw--py-4{padding-top:1rem;padding-bottom:1rem}.tw--py-\\[11px\\]{padding-top:11px;padding-bottom:11px}.tw--pb-1{padding-bottom:.25rem}.tw--pb-10{padding-bottom:2.5rem}.tw--pb-5{padding-bottom:1.25rem}.tw--pb-\\[11px\\]{padding-bottom:11px}.tw--pb-\\[30px\\]{padding-bottom:30px}.tw--pb-\\[5px\\]{padding-bottom:5px}.tw--pl-\\[10px\\]{padding-left:10px}.tw--pl-\\[35px\\]{padding-left:35px}.tw--pr-2{padding-right:.5rem}.tw--pr-\\[5px\\]{padding-right:5px}.tw--pt-10{padding-top:2.5rem}.tw--pt-5{padding-top:1.25rem}.tw--text-left{text-align:left}.tw--text-center{text-align:center}.tw--text-\\[10px\\]{font-size:10px}.tw--text-\\[12\\.8px\\]{font-size:12.8px}.tw--text-\\[16px\\]{font-size:16px}.tw--text-\\[20px\\]{font-size:20px}.tw--text-\\[24px\\]{font-size:24px}.tw--text-lg{font-size:1.125rem;line-height:1.75rem}.tw--text-sm{font-size:.875rem;line-height:1.25rem}.tw--text-xl,.tw--text-xl\\/7{font-size:1.25rem;line-height:1.75rem}.tw--font-bold{font-weight:700}.tw--font-extrabold{font-weight:800}.tw--font-medium{font-weight:500}.tw--font-semibold{font-weight:600}.tw--leading-5{line-height:1.25rem}.tw--leading-\\[1\\.4\\]{line-height:1.4}.tw--leading-\\[1\\.56\\]{line-height:1.56}.tw--leading-\\[1\\.63\\]{line-height:1.63}.tw--leading-\\[1\\]{line-height:1}.tw--leading-\\[2\\]{line-height:2}.tw--leading-\\[30px\\]{line-height:30px}.tw--text-\\[\\#ff0043\\]{--tw-text-opacity: 1;color:rgb(255 0 67 / var(--tw-text-opacity))}.tw--text-\\[inherit\\]{color:inherit}.tw--text-dark-glazeText{--tw-text-opacity: 1;color:rgb(21 18 38 / var(--tw-text-opacity))}.tw--text-dark-seraph{--tw-text-opacity: 1;color:rgb(245 51 115 / var(--tw-text-opacity))}.tw--text-dark-zephyr-100{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.tw--text-dark-zephyr-600{color:#fff9}.tw--text-dark-zephyr-800{color:#fffc}.tw--text-dark-zeta{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.tw--text-light-glazeText{--tw-text-opacity: 1;color:rgb(21 18 38 / var(--tw-text-opacity))}.tw--text-light-seraph,.tw--text-light-status{--tw-text-opacity: 1;color:rgb(33 187 90 / var(--tw-text-opacity))}.tw--text-light-zephyr-100{--tw-text-opacity: 1;color:rgb(43 49 57 / var(--tw-text-opacity))}.tw--text-light-zephyr-600{color:#2b313999}.tw--text-light-zephyr-800{color:#2b3139cc}.tw--text-light-zeta{--tw-text-opacity: 1;color:rgb(15 14 30 / var(--tw-text-opacity))}.tw--text-muted-blue{color:#0f0e1e99}.tw--text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.tw--underline{text-decoration-line:underline}.tw--opacity-40{opacity:.4}.tw--opacity-60{opacity:.6}.tw--shadow-\\[-1px_2px_5px_0\\]{--tw-shadow: -1px 2px 5px 0;--tw-shadow-colored: -1px 2px 5px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-\\[0px_12px_24px_-4px_rgba\\(1\\,154\\,255\\,0\\.2\\)\\]{--tw-shadow: 0px 12px 24px -4px rgba(1,154,255,.2);--tw-shadow-colored: 0px 12px 24px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-dark-card{--tw-shadow: 0 12px 24px 0 rgba(0, 0, 0, .12), 0 4px 8px 0 rgba(0, 0, 0, .1);--tw-shadow-colored: 0 12px 24px 0 var(--tw-shadow-color), 0 4px 8px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-dark-loading-dots{--tw-shadow: -24px 0 rgba(255, 255, 255, .5), 24px 0 rgba(255, 255, 255, .5);--tw-shadow-colored: -24px 0 var(--tw-shadow-color), 24px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-light-card{--tw-shadow: 0 12px 24px 0 rgba(43, 49, 57, .06), 0 4px 8px 0 rgba(43, 55, 70, .04);--tw-shadow-colored: 0 12px 24px 0 var(--tw-shadow-color), 0 4px 8px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-light-loading-dots{--tw-shadow: -24px 0 rgba(201, 201, 201, .5), 24px 0 rgba(201, 201, 201, .5);--tw-shadow-colored: -24px 0 var(--tw-shadow-color), 24px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-dark-zephyr-200{--tw-shadow-color: rgba(255, 255, 255,.1);--tw-shadow: var(--tw-shadow-colored)}.tw--shadow-light-zephyr-200{--tw-shadow-color: rgba(43, 49, 57,.1);--tw-shadow: var(--tw-shadow-colored)}.tw--translate-z-0 *{transform:translateZ(0)}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.\\[key\\:string\\]{key:string}#chatbot-container *{font-family:inherit!important}.spaced-letters{letter-spacing:2px}p{display:inline}.mt-8{margin-top:2rem}.mb-6{margin-bottom:1.5rem}.scroll-stop{overflow:hidden;position:fixed;left:0;right:0;top:0}.after\\:tw--absolute:after{content:var(--tw-content);position:absolute}.after\\:tw--bottom-\\[-2px\\]:after{content:var(--tw-content);bottom:-2px}.after\\:tw--left-\\[37px\\]:after{content:var(--tw-content);left:37px}.after\\:tw--z-10:after{content:var(--tw-content);z-index:10}.after\\:tw--ml-1:after{content:var(--tw-content);margin-left:.25rem}.after\\:tw--inline-block:after{content:var(--tw-content);display:inline-block}.after\\:tw--hidden:after{content:var(--tw-content);display:none}.after\\:tw--h-4:after{content:var(--tw-content);height:1rem}.after\\:tw--h-\\[10px\\]:after{content:var(--tw-content);height:10px}.after\\:tw--w-1:after{content:var(--tw-content);width:.25rem}.after\\:tw--w-\\[10px\\]:after{content:var(--tw-content);width:10px}@keyframes tw--blink{0%{content:var(--tw-content);opacity:1}49%{content:var(--tw-content);opacity:1}50%{content:var(--tw-content);opacity:0}to{content:var(--tw-content);opacity:0}}.after\\:tw--animate-blink:after{content:var(--tw-content);animation:tw--blink .5s infinite}.after\\:tw--rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\\:tw--bg-dark-zephyr-100:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.after\\:tw--bg-light-iota-dots:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(33 187 90 / var(--tw-bg-opacity))}.after\\:tw--bg-light-zephyr-100:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(43 49 57 / var(--tw-bg-opacity))}.focus\\:\\!tw--bg-dark-lumina:focus{--tw-bg-opacity: 1 !important;background-color:rgb(37 34 57 / var(--tw-bg-opacity))!important}.focus\\:\\!tw--bg-light-lumina:focus{--tw-bg-opacity: 1 !important;background-color:rgb(240 242 245 / var(--tw-bg-opacity))!important}.focus\\:tw--outline-none:focus{outline:2px solid transparent;outline-offset:2px}@media (min-width: 350px){.customXs\\:tw--max-w-xs{max-width:20rem}.customXs\\:tw--text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 768px){.md\\:tw--max-w-\\[800px\\]{max-width:800px}}')),document.body.appendChild(t)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); -(function(me,X){typeof exports=="object"&&typeof module<"u"?X(exports,require("react"),require("react-dom"),require("react-redux"),require("@reduxjs/toolkit"),require("react-markdown"),require("redux-persist"),require("socket.io-client")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","react-redux","@reduxjs/toolkit","react-markdown","redux-persist","socket.io-client"],X):(me=typeof globalThis<"u"?globalThis:me||self,X(me.ReactBotClient={},me.React,me.require$$0,me.reactRedux,me.toolkit,me.Markdown,me.reduxPersist,me.socket_ioClient))})(this,function(me,X,Ai,cr,at,Fi,rn,Oi){"use strict";var Ee={},nn={},Dt={};Dt.byteLength=Mi,Dt.toByteArray=Di,Dt.fromByteArray=Vi;for(var Me=[],Pe=[],Li=typeof Uint8Array<"u"?Uint8Array:Array,ur="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lt=0,Ni=ur.length;lt0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var o=n===t?0:4-n%4;return[n,o]}function Mi(e){var t=on(e),n=t[0],o=t[1];return(n+o)*3/4-o}function Ui(e,t,n){return(t+n)*3/4-n}function Di(e){var t,n=on(e),o=n[0],a=n[1],u=new Li(Ui(e,o,a)),f=0,l=a>0?o-4:o,h;for(h=0;h>16&255,u[f++]=t>>8&255,u[f++]=t&255;return a===2&&(t=Pe[e.charCodeAt(h)]<<2|Pe[e.charCodeAt(h+1)]>>4,u[f++]=t&255),a===1&&(t=Pe[e.charCodeAt(h)]<<10|Pe[e.charCodeAt(h+1)]<<4|Pe[e.charCodeAt(h+2)]>>2,u[f++]=t>>8&255,u[f++]=t&255),u}function zi(e){return Me[e>>18&63]+Me[e>>12&63]+Me[e>>6&63]+Me[e&63]}function $i(e,t,n){for(var o,a=[],u=t;ul?l:f+u));return o===1?(t=e[n-1],a.push(Me[t>>2]+Me[t<<4&63]+"==")):o===2&&(t=(e[n-2]<<8)+e[n-1],a.push(Me[t>>10]+Me[t>>4&63]+Me[t<<2&63]+"=")),a.join("")}var fr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */fr.read=function(e,t,n,o,a){var u,f,l=a*8-o-1,h=(1<>1,w=-7,x=n?a-1:0,I=n?-1:1,S=e[t+x];for(x+=I,u=S&(1<<-w)-1,S>>=-w,w+=l;w>0;u=u*256+e[t+x],x+=I,w-=8);for(f=u&(1<<-w)-1,u>>=-w,w+=o;w>0;f=f*256+e[t+x],x+=I,w-=8);if(u===0)u=1-b;else{if(u===h)return f?NaN:(S?-1:1)*(1/0);f=f+Math.pow(2,o),u=u-b}return(S?-1:1)*f*Math.pow(2,u-o)},fr.write=function(e,t,n,o,a,u){var f,l,h,b=u*8-a-1,w=(1<>1,I=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=o?0:u-1,R=o?1:-1,j=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,f=w):(f=Math.floor(Math.log(t)/Math.LN2),t*(h=Math.pow(2,-f))<1&&(f--,h*=2),f+x>=1?t+=I/h:t+=I*Math.pow(2,1-x),t*h>=2&&(f++,h/=2),f+x>=w?(l=0,f=w):f+x>=1?(l=(t*h-1)*Math.pow(2,a),f=f+x):(l=t*Math.pow(2,x-1)*Math.pow(2,a),f=0));a>=8;e[n+S]=l&255,S+=R,l/=256,a-=8);for(f=f<0;e[n+S]=f&255,S+=R,f/=256,b-=8);e[n+S-R]|=j*128};/*! +(function(){"use strict";try{if(typeof document<"u"){const t=document.createElement("style");t.id="react-tw-ai-client",t.appendChild(document.createTextNode('*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}: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:Plus Jakarta Sans,Roboto,Mulish,Exo,Helvetica,Arial,sans-serif;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;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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]{display:none}*,: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: }::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--pointer-events-none{pointer-events:none}.tw--pointer-events-auto{pointer-events:auto}.tw--fixed{position:fixed}.tw--absolute{position:absolute}.tw--relative{position:relative}.tw---top-1\\/2{top:-50%}.tw--bottom-0{bottom:0}.tw--bottom-1{bottom:.25rem}.tw--bottom-\\[-16px\\]{bottom:-16px}.tw--left-0{left:0}.tw--right-0{right:0}.tw--right-4{right:1rem}.tw--right-\\[-10px\\]{right:-10px}.tw--top-0{top:0}.tw--top-8{top:2rem}.tw--top-\\[-30px\\]{top:-30px}.tw--top-\\[50\\%\\]{top:50%}.tw--z-50{z-index:50}.tw--z-\\[101\\]{z-index:101}.tw--m-0{margin:0}.tw--m-auto{margin:auto}.tw--mx-10{margin-left:2.5rem;margin-right:2.5rem}.tw--mx-\\[30px\\]{margin-left:30px;margin-right:30px}.tw--mx-auto{margin-left:auto;margin-right:auto}.tw--my-4{margin-top:1rem;margin-bottom:1rem}.tw--mb-5{margin-bottom:1.25rem}.tw--mb-6{margin-bottom:1.5rem}.tw--mb-7{margin-bottom:1.75rem}.tw--mb-\\[11px\\]{margin-bottom:11px}.tw--mb-auto{margin-bottom:auto}.tw--ml-7{margin-left:1.75rem}.tw--ml-auto{margin-left:auto}.tw--mr-0{margin-right:0}.tw--mr-5{margin-right:1.25rem}.tw--mr-\\[5px\\]{margin-right:5px}.tw--mt-0{margin-top:0}.tw--mt-24{margin-top:6rem}.tw--mt-\\[11px\\]{margin-top:11px}.tw--mt-\\[30px\\]{margin-top:30px}.tw--box-border{box-sizing:border-box}.tw--box-content{box-sizing:content-box}.tw--block{display:block}.tw--inline-block{display:inline-block}.tw--flex{display:flex}.tw--grid{display:grid}.tw--hidden{display:none}.tw--h-16{height:4rem}.tw--h-4{height:1rem}.tw--h-6{height:1.5rem}.tw--h-8{height:2rem}.tw--h-80{height:20rem}.tw--h-\\[12px\\]{height:12px}.tw--h-\\[50px\\]{height:50px}.tw--h-\\[60px\\]{height:60px}.tw--h-auto{height:auto}.tw--h-fit{height:-moz-fit-content;height:fit-content}.tw--h-full{height:100%}.tw--h-screen{height:100vh}.tw--max-h-\\[700px\\]{max-height:700px}.tw--max-h-screen{max-height:100vh}.tw--min-h-\\[400px\\]{min-height:400px}.tw--w-16{width:4rem}.tw--w-4{width:1rem}.tw--w-6{width:1.5rem}.tw--w-64{width:16rem}.tw--w-8{width:2rem}.tw--w-\\[12px\\]{width:12px}.tw--w-fit{width:-moz-fit-content;width:fit-content}.tw--w-full{width:100%}.tw--w-screen{width:100vw}.tw--max-w-\\[280px\\]{max-width:280px}.tw--max-w-\\[335px\\]{max-width:335px}.tw--max-w-\\[375px\\]{max-width:375px}.tw--max-w-\\[400px\\]{max-width:400px}.tw--max-w-\\[500px\\]{max-width:500px}.tw--max-w-md{max-width:28rem}.tw--max-w-xs{max-width:20rem}.tw--flex-1{flex:1 1 0%}.tw--shrink{flex-shrink:1}.tw--shrink-0{flex-shrink:0}.tw--grow-0{flex-grow:0}.tw--translate-x-72{--tw-translate-x: 18rem;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))}.tw--translate-y-1\\/2{--tw-translate-y: 50%;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))}.tw--translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;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))}@keyframes tw--rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tw--animate-rotate{animation:tw--rotate .5s linear infinite}@keyframes tw--text-spin{0%{transform:translate(18rem)}6.25%,12.5%{transform:translate(-.5rem)}18.75%,25%{transform:translate(-21.5rem)}31.25%,37.5%{transform:translate(-42.5rem)}43.75%,50%{transform:translate(-63.5rem)}56.25%,62.5%{transform:translate(-84.5rem)}68.75%,75%{transform:translate(-105.5rem)}81.25%,87.5%{transform:translate(-126.5rem)}93.75%,to{transform:translate(-147.5em)}}.tw--animate-text-spin{animation:tw--text-spin 30s linear infinite}.tw--animate-wave{animation:tw--wave 1.3s linear infinite}.tw--animate-wave-delay{animation:tw--wave 1.3s linear infinite -1.1s}@keyframes tw--wave{0%{transform:initial}60%{transform:initial}to{transform:initial}30%{transform:translateY(-15px)}}.tw--animate-wave-delay-2{animation:tw--wave 1.3s linear infinite -.9s}.tw--cursor-pointer{cursor:pointer}.tw--select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.tw--flex-row{flex-direction:row}.tw--flex-col{flex-direction:column}.tw--flex-col-reverse{flex-direction:column-reverse}.tw--flex-wrap{flex-wrap:wrap}.tw--items-end{align-items:flex-end}.tw--items-center{align-items:center}.tw--items-stretch{align-items:stretch}.tw--justify-center{justify-content:center}.tw--justify-between{justify-content:space-between}.tw--gap-2{gap:.5rem}.tw--space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.tw--space-x-\\[6px\\]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(6px * var(--tw-space-x-reverse));margin-left:calc(6px * calc(1 - var(--tw-space-x-reverse)))}.tw--space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.tw--space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.tw--space-y-\\[10px\\]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(10px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(10px * var(--tw-space-y-reverse))}.tw--space-y-\\[11px\\]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(11px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(11px * var(--tw-space-y-reverse))}.tw--self-stretch{align-self:stretch}.tw--justify-self-end{justify-self:end}.tw--justify-self-stretch{justify-self:stretch}.tw--overflow-hidden{overflow:hidden}.tw--overflow-y-scroll{overflow-y:scroll}.tw--whitespace-pre-wrap{white-space:pre-wrap}.tw--break-words{overflow-wrap:break-word}.tw--rounded-3xl{border-radius:1.5rem}.tw--rounded-\\[20px\\]{border-radius:20px}.tw--rounded-full{border-radius:9999px}.tw--rounded-lg{border-radius:.5rem}.tw--rounded-xl{border-radius:.75rem}.tw--border{border-width:1px}.tw--border-0{border-width:0px}.tw--border-\\[5px\\]{border-width:5px}.tw--border-r{border-right-width:1px}.tw--border-solid{border-style:solid}.tw--border-glaze{border-color:var(--glaze)}.tw--border-zephyr-200{border-color:var(--zephyr-200)}.tw--border-l-zephyr-600{border-left-color:var(--zephyr-600)}.tw--border-r-\\[\\#cacadb\\]{--tw-border-opacity: 1;border-right-color:rgb(202 202 219 / var(--tw-border-opacity))}.tw--border-t-zephyr-600{border-top-color:var(--zephyr-600)}.tw--bg-\\[\\#0f0e1e\\]{--tw-bg-opacity: 1;background-color:rgb(15 14 30 / var(--tw-bg-opacity))}.tw--bg-\\[transparent\\]{background-color:transparent}.tw--bg-glaze{background-color:var(--glaze)}.tw--bg-glazeBg{background-color:var(--glazeBg)}.tw--bg-iota-dots{background-color:var(--iota-dots)}.tw--bg-loader{background-color:var(--loader)}.tw--bg-lumina{background-color:var(--lumina)}.tw--bg-neon{background-color:var(--neon)}.tw--bg-pale-dots{background-color:var(--pale-dots)}.tw--bg-seraph{background-color:var(--seraph)}.tw--bg-whisper{background-color:var(--whisper)}.tw--bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.tw--bg-zephyr-100{background-color:var(--zephyr-100)}.tw--bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.tw--from-\\[\\#FF0000\\]{--tw-gradient-from: #FF0000 var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.tw--to-\\[\\#F25640\\]{--tw-gradient-to: #F25640 var(--tw-gradient-to-position)}.tw--p-0{padding:0}.tw--p-0\\.5{padding:.125rem}.tw--p-1{padding:.25rem}.tw--p-3{padding:.75rem}.tw--p-5{padding:1.25rem}.tw--p-7{padding:1.75rem}.tw--px-4{padding-left:1rem;padding-right:1rem}.tw--px-5{padding-left:1.25rem;padding-right:1.25rem}.tw--px-\\[15px\\]{padding-left:15px;padding-right:15px}.tw--py-2{padding-top:.5rem;padding-bottom:.5rem}.tw--py-3{padding-top:.75rem;padding-bottom:.75rem}.tw--py-4{padding-top:1rem;padding-bottom:1rem}.tw--py-\\[11px\\]{padding-top:11px;padding-bottom:11px}.tw--pb-1{padding-bottom:.25rem}.tw--pb-10{padding-bottom:2.5rem}.tw--pb-5{padding-bottom:1.25rem}.tw--pb-\\[11px\\]{padding-bottom:11px}.tw--pb-\\[30px\\]{padding-bottom:30px}.tw--pb-\\[5px\\]{padding-bottom:5px}.tw--pl-\\[10px\\]{padding-left:10px}.tw--pl-\\[35px\\]{padding-left:35px}.tw--pr-2{padding-right:.5rem}.tw--pr-\\[5px\\]{padding-right:5px}.tw--pt-10{padding-top:2.5rem}.tw--pt-5{padding-top:1.25rem}.tw--text-left{text-align:left}.tw--text-center{text-align:center}.tw--text-\\[10px\\]{font-size:10px}.tw--text-\\[12\\.8px\\]{font-size:12.8px}.tw--text-\\[16px\\]{font-size:16px}.tw--text-\\[20px\\]{font-size:20px}.tw--text-\\[24px\\]{font-size:24px}.tw--text-lg{font-size:1.125rem;line-height:1.75rem}.tw--text-sm{font-size:.875rem;line-height:1.25rem}.tw--text-xl,.tw--text-xl\\/7{font-size:1.25rem;line-height:1.75rem}.tw--font-bold{font-weight:700}.tw--font-density-different{font-weight:var(--density-different)}.tw--font-extrabold{font-weight:800}.tw--font-medium{font-weight:500}.tw--font-semibold{font-weight:600}.tw--leading-5{line-height:1.25rem}.tw--leading-\\[1\\.4\\]{line-height:1.4}.tw--leading-\\[1\\.56\\]{line-height:1.56}.tw--leading-\\[1\\.63\\]{line-height:1.63}.tw--leading-\\[1\\]{line-height:1}.tw--leading-\\[2\\]{line-height:2}.tw--leading-\\[30px\\]{line-height:30px}.tw--text-\\[\\#21bb5a\\]{--tw-text-opacity: 1;color:rgb(33 187 90 / var(--tw-text-opacity))}.tw--text-\\[\\#ff0043\\]{--tw-text-opacity: 1;color:rgb(255 0 67 / var(--tw-text-opacity))}.tw--text-dots{color:var(--dots)}.tw--text-glazeText{color:var(--glazeText)}.tw--text-muted-blue{color:#0f0e1e99}.tw--text-seraph{color:var(--seraph)}.tw--text-whisper{color:var(--whisper)}.tw--text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.tw--text-zephyr-100{color:var(--zephyr-100)}.tw--text-zephyr-600{color:var(--zephyr-600)}.tw--text-zephyr-800{color:var(--zephyr-800)}.tw--underline{text-decoration-line:underline}.tw--opacity-40{opacity:.4}.tw--opacity-60{opacity:.6}.tw--shadow-\\[-1px_2px_5px_0\\]{--tw-shadow: -1px 2px 5px 0;--tw-shadow-colored: -1px 2px 5px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-\\[0px_12px_24px_-4px_rgba\\(1\\,154\\,255\\,0\\.2\\)\\]{--tw-shadow: 0px 12px 24px -4px rgba(1,154,255,.2);--tw-shadow-colored: 0px 12px 24px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-card{--tw-shadow: 0 12px 24px 0 rgba(43, 49, 57, .06), 0 4px 8px 0 rgba(43, 55, 70, .04);--tw-shadow-colored: 0 12px 24px 0 var(--tw-shadow-color), 0 4px 8px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-loading-dots{--tw-shadow: -24px 0 rgba(201, 201, 201, .5), 24px 0 rgba(201, 201, 201, .5);--tw-shadow-colored: -24px 0 var(--tw-shadow-color), 24px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw--shadow-zephyr-200{--tw-shadow-color: var(--zephyr-200);--tw-shadow: var(--tw-shadow-colored)}.tw--translate-z-0 *{transform:translateZ(0)}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.\\[key\\:string\\]{key:string}#chatbot-container *{font-family:inherit!important}.spaced-letters{letter-spacing:2px}p{display:inline}.mt-8{margin-top:2rem}.mb-6{margin-bottom:1.5rem}.scroll-stop{overflow:hidden;position:fixed;left:0;right:0;top:0}.light{--lumina: #f0f2f5;--whisper: #ffffff;--seraph: #21bb5a;--ember: #cacadb;--enigma: #ffae19;--glaze: #21bb5a;--glazeText: #151226;--glazeBg: #ffffff;--sigma: #0f0e1e;--zeta: #0f0e1e;--status: #21bb5a;--loader: #f6f8fa;--dots: #21bb5a;--neon: #019aff;--pale-dots: #cacadb;--iota-dots: #21bb5a;--overlay: rgba(15, 14, 30, .2);--beta: #f6f8fa;--ze: 43, 49, 57;--zephyr-100: rgb(var(--ze));--zephyr-200: rgba(var(--ze), .1);--zephyr-600: rgba(var(--ze), .6);--zephyr-800: rgba(var(--ze), .8);--card: 0 12px 24px 0 rgba(43, 49, 57, .06), 0 4px 8px 0 rgba(43, 55, 70, .04);--loading-dots: -24px 0 rgba(201, 201, 201, .5), 24px 0 rgba(201, 201, 201, .5);--density-different: 500}.dark{--lumina: #252239;--whisper: #151226;--seraph: #f53373;--ember: #cacadb;--enigma: #ffae19;--glaze: #b3bac6;--glazeText: #151226;--glazeBg: #b3bac6;--sigma: #0f0e1e;--zeta: #ffffff;--status: #21bb5a;--loader: #252239;--dots: #f53374;--neon: #019aff;--pale-dots: #ffffff;--iota-dots: #21bb5a;--overlay: rgba(15, 14, 30, .9);--beta: #25223;--ze: 255, 255, 255;--zephyr-100: rgb(var(--ze));--zephyr-200: rgba(var(--ze), .1);--zephyr-600: rgba(var(--ze), .6);--zephyr-800: rgba(var(--ze), .8);--card: 0 12px 24px 0 rgba(0, 0, 0, .12), 0 4px 8px 0 rgba(0, 0, 0, .1);--loading-dots: -24px 0 rgba(255, 255, 255, .5), 24px 0 rgba(255, 255, 255, .5);--density-different: 400}.after\\:tw--absolute:after{content:var(--tw-content);position:absolute}.after\\:tw--bottom-\\[-2px\\]:after{content:var(--tw-content);bottom:-2px}.after\\:tw--left-\\[37px\\]:after{content:var(--tw-content);left:37px}.after\\:tw--z-10:after{content:var(--tw-content);z-index:10}.after\\:tw--ml-1:after{content:var(--tw-content);margin-left:.25rem}.after\\:tw--inline-block:after{content:var(--tw-content);display:inline-block}.after\\:tw--hidden:after{content:var(--tw-content);display:none}.after\\:tw--h-4:after{content:var(--tw-content);height:1rem}.after\\:tw--h-\\[10px\\]:after{content:var(--tw-content);height:10px}.after\\:tw--w-1:after{content:var(--tw-content);width:.25rem}.after\\:tw--w-\\[10px\\]:after{content:var(--tw-content);width:10px}@keyframes tw--blink{0%{content:var(--tw-content);opacity:1}49%{content:var(--tw-content);opacity:1}50%{content:var(--tw-content);opacity:0}to{content:var(--tw-content);opacity:0}}.after\\:tw--animate-blink:after{content:var(--tw-content);animation:tw--blink .5s infinite}.after\\:tw--rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\\:tw--bg-iota-dots:after{content:var(--tw-content);background-color:var(--iota-dots)}.after\\:tw--bg-zephyr-100:after{content:var(--tw-content);background-color:var(--zephyr-100)}.focus\\:\\!tw--bg-lumina:focus{background-color:var(--lumina)!important}.focus\\:tw--outline-none:focus{outline:2px solid transparent;outline-offset:2px}@media (min-width: 350px){.customXs\\:tw--max-w-xs{max-width:20rem}.customXs\\:tw--text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 768px){.md\\:tw--max-w-\\[800px\\]{max-width:800px}}')),document.body.appendChild(t)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); +(function(he,J){typeof exports=="object"&&typeof module<"u"?J(exports,require("react"),require("react-dom"),require("react-redux"),require("@reduxjs/toolkit"),require("react-markdown"),require("redux-persist"),require("socket.io-client")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","react-redux","@reduxjs/toolkit","react-markdown","redux-persist","socket.io-client"],J):(he=typeof globalThis<"u"?globalThis:he||self,J(he.ReactBotClient={},he.React,he.require$$0,he.reactRedux,he.toolkit,he.Markdown,he.reduxPersist,he.socket_ioClient))})(this,function(he,J,Ai,lr,at,Fi,rn,Oi){"use strict";var ve={},nn={},Dt={};Dt.byteLength=Mi,Dt.toByteArray=Di,Dt.fromByteArray=Vi;for(var Ne=[],Pe=[],Li=typeof Uint8Array<"u"?Uint8Array:Array,ur="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ct=0,Ni=ur.length;ct0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");i===-1&&(i=t);var o=i===t?0:4-i%4;return[i,o]}function Mi(e){var t=on(e),i=t[0],o=t[1];return(i+o)*3/4-o}function Ui(e,t,i){return(t+i)*3/4-i}function Di(e){var t,i=on(e),o=i[0],c=i[1],u=new Li(Ui(e,o,c)),f=0,a=c>0?o-4:o,h;for(h=0;h>16&255,u[f++]=t>>8&255,u[f++]=t&255;return c===2&&(t=Pe[e.charCodeAt(h)]<<2|Pe[e.charCodeAt(h+1)]>>4,u[f++]=t&255),c===1&&(t=Pe[e.charCodeAt(h)]<<10|Pe[e.charCodeAt(h+1)]<<4|Pe[e.charCodeAt(h+2)]>>2,u[f++]=t>>8&255,u[f++]=t&255),u}function zi(e){return Ne[e>>18&63]+Ne[e>>12&63]+Ne[e>>6&63]+Ne[e&63]}function $i(e,t,i){for(var o,c=[],u=t;ua?a:f+u));return o===1?(t=e[i-1],c.push(Ne[t>>2]+Ne[t<<4&63]+"==")):o===2&&(t=(e[i-2]<<8)+e[i-1],c.push(Ne[t>>10]+Ne[t>>4&63]+Ne[t<<2&63]+"=")),c.join("")}var fr={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */fr.read=function(e,t,i,o,c){var u,f,a=c*8-o-1,h=(1<>1,y=-7,b=i?c-1:0,I=i?-1:1,P=e[t+b];for(b+=I,u=P&(1<<-y)-1,P>>=-y,y+=a;y>0;u=u*256+e[t+b],b+=I,y-=8);for(f=u&(1<<-y)-1,u>>=-y,y+=o;y>0;f=f*256+e[t+b],b+=I,y-=8);if(u===0)u=1-x;else{if(u===h)return f?NaN:(P?-1:1)*(1/0);f=f+Math.pow(2,o),u=u-x}return(P?-1:1)*f*Math.pow(2,u-o)},fr.write=function(e,t,i,o,c,u){var f,a,h,x=u*8-c-1,y=(1<>1,I=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=o?0:u-1,O=o?1:-1,C=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,f=y):(f=Math.floor(Math.log(t)/Math.LN2),t*(h=Math.pow(2,-f))<1&&(f--,h*=2),f+b>=1?t+=I/h:t+=I*Math.pow(2,1-b),t*h>=2&&(f++,h/=2),f+b>=y?(a=0,f=y):f+b>=1?(a=(t*h-1)*Math.pow(2,c),f=f+b):(a=t*Math.pow(2,b-1)*Math.pow(2,c),f=0));c>=8;e[i+P]=a&255,P+=O,a/=256,c-=8);for(f=f<0;e[i+P]=f&255,P+=O,f/=256,x-=8);e[i+P-O]|=C*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */(function(e){const t=Dt,n=fr,o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=l,e.SlowBuffer=M,e.INSPECT_MAX_BYTES=50;const a=2147483647;e.kMaxLength=a,l.TYPED_ARRAY_SUPPORT=u(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function u(){try{const s=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(s,r),s.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function f(s){if(s>a)throw new RangeError('The value "'+s+'" is invalid for option "size"');const r=new Uint8Array(s);return Object.setPrototypeOf(r,l.prototype),r}function l(s,r,i){if(typeof s=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return x(s)}return h(s,r,i)}l.poolSize=8192;function h(s,r,i){if(typeof s=="string")return I(s,r);if(ArrayBuffer.isView(s))return R(s);if(s==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof s);if(ve(s,ArrayBuffer)||s&&ve(s.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ve(s,SharedArrayBuffer)||s&&ve(s.buffer,SharedArrayBuffer)))return j(s,r,i);if(typeof s=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const c=s.valueOf&&s.valueOf();if(c!=null&&c!==s)return l.from(c,r,i);const p=$(s);if(p)return p;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof s[Symbol.toPrimitive]=="function")return l.from(s[Symbol.toPrimitive]("string"),r,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof s)}l.from=function(s,r,i){return h(s,r,i)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array);function b(s){if(typeof s!="number")throw new TypeError('"size" argument must be of type number');if(s<0)throw new RangeError('The value "'+s+'" is invalid for option "size"')}function w(s,r,i){return b(s),s<=0?f(s):r!==void 0?typeof i=="string"?f(s).fill(r,i):f(s).fill(r):f(s)}l.alloc=function(s,r,i){return w(s,r,i)};function x(s){return b(s),f(s<0?0:P(s)|0)}l.allocUnsafe=function(s){return x(s)},l.allocUnsafeSlow=function(s){return x(s)};function I(s,r){if((typeof r!="string"||r==="")&&(r="utf8"),!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);const i=ue(s,r)|0;let c=f(i);const p=c.write(s,r);return p!==i&&(c=c.slice(0,p)),c}function S(s){const r=s.length<0?0:P(s.length)|0,i=f(r);for(let c=0;c=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return s|0}function M(s){return+s!=s&&(s=0),l.alloc(+s)}l.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==l.prototype},l.compare=function(r,i){if(ve(r,Uint8Array)&&(r=l.from(r,r.offset,r.byteLength)),ve(i,Uint8Array)&&(i=l.from(i,i.offset,i.byteLength)),!l.isBuffer(r)||!l.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===i)return 0;let c=r.length,p=i.length;for(let m=0,y=Math.min(c,p);mp.length?(l.isBuffer(y)||(y=l.from(y)),y.copy(p,m)):Uint8Array.prototype.set.call(p,y,m);else if(l.isBuffer(y))y.copy(p,m);else throw new TypeError('"list" argument must be an Array of Buffers');m+=y.length}return p};function ue(s,r){if(l.isBuffer(s))return s.length;if(ArrayBuffer.isView(s)||ve(s,ArrayBuffer))return s.byteLength;if(typeof s!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof s);const i=s.length,c=arguments.length>2&&arguments[2]===!0;if(!c&&i===0)return 0;let p=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return vt(s).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return ar(s).length;default:if(p)return c?-1:vt(s).length;r=(""+r).toLowerCase(),p=!0}}l.byteLength=ue;function be(s,r,i){let c=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,r>>>=0,i<=r))return"";for(s||(s="utf8");;)switch(s){case"hex":return H(this,r,i);case"utf8":case"utf-8":return C(this,r,i);case"ascii":return D(this,r,i);case"latin1":case"binary":return q(this,r,i);case"base64":return k(this,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne(this,r,i);default:if(c)throw new TypeError("Unknown encoding: "+s);s=(s+"").toLowerCase(),c=!0}}l.prototype._isBuffer=!0;function A(s,r,i){const c=s[r];s[r]=s[i],s[i]=c}l.prototype.swap16=function(){const r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let i=0;ii&&(r+=" ... "),""},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(r,i,c,p,m){if(ve(r,Uint8Array)&&(r=l.from(r,r.offset,r.byteLength)),!l.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(i===void 0&&(i=0),c===void 0&&(c=r?r.length:0),p===void 0&&(p=0),m===void 0&&(m=this.length),i<0||c>r.length||p<0||m>this.length)throw new RangeError("out of range index");if(p>=m&&i>=c)return 0;if(p>=m)return-1;if(i>=c)return 1;if(i>>>=0,c>>>=0,p>>>=0,m>>>=0,this===r)return 0;let y=m-p,F=c-i;const te=Math.min(y,F),Z=this.slice(p,m),re=r.slice(i,c);for(let Y=0;Y2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,Ut(i)&&(i=p?0:s.length-1),i<0&&(i=s.length+i),i>=s.length){if(p)return-1;i=s.length-1}else if(i<0)if(p)i=0;else return-1;if(typeof r=="string"&&(r=l.from(r,c)),l.isBuffer(r))return r.length===0?-1:xe(s,r,i,c,p);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?p?Uint8Array.prototype.indexOf.call(s,r,i):Uint8Array.prototype.lastIndexOf.call(s,r,i):xe(s,[r],i,c,p);throw new TypeError("val must be string, number or Buffer")}function xe(s,r,i,c,p){let m=1,y=s.length,F=r.length;if(c!==void 0&&(c=String(c).toLowerCase(),c==="ucs2"||c==="ucs-2"||c==="utf16le"||c==="utf-16le")){if(s.length<2||r.length<2)return-1;m=2,y/=2,F/=2,i/=2}function te(re,Y){return m===1?re[Y]:re.readUInt16BE(Y*m)}let Z;if(p){let re=-1;for(Z=i;Zy&&(i=y-F),Z=i;Z>=0;Z--){let re=!0;for(let Y=0;Yp&&(c=p)):c=p;const m=r.length;c>m/2&&(c=m/2);let y;for(y=0;y>>0,isFinite(c)?(c=c>>>0,p===void 0&&(p="utf8")):(p=c,c=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const m=this.length-i;if((c===void 0||c>m)&&(c=m),r.length>0&&(c<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");p||(p="utf8");let y=!1;for(;;)switch(p){case"hex":return Fe(this,r,i,c);case"utf8":case"utf-8":return ke(this,r,i,c);case"ascii":case"latin1":case"binary":return Oe(this,r,i,c);case"base64":return he(this,r,i,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,r,i,c);default:if(y)throw new TypeError("Unknown encoding: "+p);p=(""+p).toLowerCase(),y=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(s,r,i){return r===0&&i===s.length?t.fromByteArray(s):t.fromByteArray(s.slice(r,i))}function C(s,r,i){i=Math.min(s.length,i);const c=[];let p=r;for(;p239?4:m>223?3:m>191?2:1;if(p+F<=i){let te,Z,re,Y;switch(F){case 1:m<128&&(y=m);break;case 2:te=s[p+1],(te&192)===128&&(Y=(m&31)<<6|te&63,Y>127&&(y=Y));break;case 3:te=s[p+1],Z=s[p+2],(te&192)===128&&(Z&192)===128&&(Y=(m&15)<<12|(te&63)<<6|Z&63,Y>2047&&(Y<55296||Y>57343)&&(y=Y));break;case 4:te=s[p+1],Z=s[p+2],re=s[p+3],(te&192)===128&&(Z&192)===128&&(re&192)===128&&(Y=(m&15)<<18|(te&63)<<12|(Z&63)<<6|re&63,Y>65535&&Y<1114112&&(y=Y))}}y===null?(y=65533,F=1):y>65535&&(y-=65536,c.push(y>>>10&1023|55296),y=56320|y&1023),c.push(y),p+=F}return L(c)}const O=4096;function L(s){const r=s.length;if(r<=O)return String.fromCharCode.apply(String,s);let i="",c=0;for(;cc)&&(i=c);let p="";for(let m=r;mc&&(r=c),i<0?(i+=c,i<0&&(i=0)):i>c&&(i=c),ii)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(r,i,c){r=r>>>0,i=i>>>0,c||V(r,i,this.length);let p=this[r],m=1,y=0;for(;++y>>0,i=i>>>0,c||V(r,i,this.length);let p=this[r+--i],m=1;for(;i>0&&(m*=256);)p+=this[r+--i]*m;return p},l.prototype.readUint8=l.prototype.readUInt8=function(r,i){return r=r>>>0,i||V(r,1,this.length),this[r]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(r,i){return r=r>>>0,i||V(r,2,this.length),this[r]|this[r+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(r,i){return r=r>>>0,i||V(r,2,this.length),this[r]<<8|this[r+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(r,i){return r=r>>>0,i||V(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(r,i){return r=r>>>0,i||V(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},l.prototype.readBigUInt64LE=Ne(function(r){r=r>>>0,Xe(r,"offset");const i=this[r],c=this[r+7];(i===void 0||c===void 0)&&st(r,this.length-8);const p=i+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,m=this[++r]+this[++r]*2**8+this[++r]*2**16+c*2**24;return BigInt(p)+(BigInt(m)<>>0,Xe(r,"offset");const i=this[r],c=this[r+7];(i===void 0||c===void 0)&&st(r,this.length-8);const p=i*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],m=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+c;return(BigInt(p)<>>0,i=i>>>0,c||V(r,i,this.length);let p=this[r],m=1,y=0;for(;++y=m&&(p-=Math.pow(2,8*i)),p},l.prototype.readIntBE=function(r,i,c){r=r>>>0,i=i>>>0,c||V(r,i,this.length);let p=i,m=1,y=this[r+--p];for(;p>0&&(m*=256);)y+=this[r+--p]*m;return m*=128,y>=m&&(y-=Math.pow(2,8*i)),y},l.prototype.readInt8=function(r,i){return r=r>>>0,i||V(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},l.prototype.readInt16LE=function(r,i){r=r>>>0,i||V(r,2,this.length);const c=this[r]|this[r+1]<<8;return c&32768?c|4294901760:c},l.prototype.readInt16BE=function(r,i){r=r>>>0,i||V(r,2,this.length);const c=this[r+1]|this[r]<<8;return c&32768?c|4294901760:c},l.prototype.readInt32LE=function(r,i){return r=r>>>0,i||V(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},l.prototype.readInt32BE=function(r,i){return r=r>>>0,i||V(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},l.prototype.readBigInt64LE=Ne(function(r){r=r>>>0,Xe(r,"offset");const i=this[r],c=this[r+7];(i===void 0||c===void 0)&&st(r,this.length-8);const p=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(c<<24);return(BigInt(p)<>>0,Xe(r,"offset");const i=this[r],c=this[r+7];(i===void 0||c===void 0)&&st(r,this.length-8);const p=(i<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(p)<>>0,i||V(r,4,this.length),n.read(this,r,!0,23,4)},l.prototype.readFloatBE=function(r,i){return r=r>>>0,i||V(r,4,this.length),n.read(this,r,!1,23,4)},l.prototype.readDoubleLE=function(r,i){return r=r>>>0,i||V(r,8,this.length),n.read(this,r,!0,52,8)},l.prototype.readDoubleBE=function(r,i){return r=r>>>0,i||V(r,8,this.length),n.read(this,r,!1,52,8)};function W(s,r,i,c,p,m){if(!l.isBuffer(s))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>p||rs.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(r,i,c,p){if(r=+r,i=i>>>0,c=c>>>0,!p){const F=Math.pow(2,8*c)-1;W(this,r,i,c,F,0)}let m=1,y=0;for(this[i]=r&255;++y>>0,c=c>>>0,!p){const F=Math.pow(2,8*c)-1;W(this,r,i,c,F,0)}let m=c-1,y=1;for(this[i+m]=r&255;--m>=0&&(y*=256);)this[i+m]=r/y&255;return i+c},l.prototype.writeUint8=l.prototype.writeUInt8=function(r,i,c){return r=+r,i=i>>>0,c||W(this,r,i,1,255,0),this[i]=r&255,i+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(r,i,c){return r=+r,i=i>>>0,c||W(this,r,i,2,65535,0),this[i]=r&255,this[i+1]=r>>>8,i+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(r,i,c){return r=+r,i=i>>>0,c||W(this,r,i,2,65535,0),this[i]=r>>>8,this[i+1]=r&255,i+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(r,i,c){return r=+r,i=i>>>0,c||W(this,r,i,4,4294967295,0),this[i+3]=r>>>24,this[i+2]=r>>>16,this[i+1]=r>>>8,this[i]=r&255,i+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(r,i,c){return r=+r,i=i>>>0,c||W(this,r,i,4,4294967295,0),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255,i+4};function ie(s,r,i,c,p){Mt(r,c,p,s,i,7);let m=Number(r&BigInt(4294967295));s[i++]=m,m=m>>8,s[i++]=m,m=m>>8,s[i++]=m,m=m>>8,s[i++]=m;let y=Number(r>>BigInt(32)&BigInt(4294967295));return s[i++]=y,y=y>>8,s[i++]=y,y=y>>8,s[i++]=y,y=y>>8,s[i++]=y,i}function Ye(s,r,i,c,p){Mt(r,c,p,s,i,7);let m=Number(r&BigInt(4294967295));s[i+7]=m,m=m>>8,s[i+6]=m,m=m>>8,s[i+5]=m,m=m>>8,s[i+4]=m;let y=Number(r>>BigInt(32)&BigInt(4294967295));return s[i+3]=y,y=y>>8,s[i+2]=y,y=y>>8,s[i+1]=y,y=y>>8,s[i]=y,i+8}l.prototype.writeBigUInt64LE=Ne(function(r,i=0){return ie(this,r,i,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=Ne(function(r,i=0){return Ye(this,r,i,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(r,i,c,p){if(r=+r,i=i>>>0,!p){const te=Math.pow(2,8*c-1);W(this,r,i,c,te-1,-te)}let m=0,y=1,F=0;for(this[i]=r&255;++m>0)-F&255;return i+c},l.prototype.writeIntBE=function(r,i,c,p){if(r=+r,i=i>>>0,!p){const te=Math.pow(2,8*c-1);W(this,r,i,c,te-1,-te)}let m=c-1,y=1,F=0;for(this[i+m]=r&255;--m>=0&&(y*=256);)r<0&&F===0&&this[i+m+1]!==0&&(F=1),this[i+m]=(r/y>>0)-F&255;return i+c},l.prototype.writeInt8=function(r,i,c){return r=+r,i=i>>>0,c||W(this,r,i,1,127,-128),r<0&&(r=255+r+1),this[i]=r&255,i+1},l.prototype.writeInt16LE=function(r,i,c){return r=+r,i=i>>>0,c||W(this,r,i,2,32767,-32768),this[i]=r&255,this[i+1]=r>>>8,i+2},l.prototype.writeInt16BE=function(r,i,c){return r=+r,i=i>>>0,c||W(this,r,i,2,32767,-32768),this[i]=r>>>8,this[i+1]=r&255,i+2},l.prototype.writeInt32LE=function(r,i,c){return r=+r,i=i>>>0,c||W(this,r,i,4,2147483647,-2147483648),this[i]=r&255,this[i+1]=r>>>8,this[i+2]=r>>>16,this[i+3]=r>>>24,i+4},l.prototype.writeInt32BE=function(r,i,c){return r=+r,i=i>>>0,c||W(this,r,i,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[i]=r>>>24,this[i+1]=r>>>16,this[i+2]=r>>>8,this[i+3]=r&255,i+4},l.prototype.writeBigInt64LE=Ne(function(r,i=0){return ie(this,r,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=Ne(function(r,i=0){return Ye(this,r,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function nt(s,r,i,c,p,m){if(i+c>s.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function Je(s,r,i,c,p){return r=+r,i=i>>>0,p||nt(s,r,i,4),n.write(s,r,i,c,23,4),i+4}l.prototype.writeFloatLE=function(r,i,c){return Je(this,r,i,!0,c)},l.prototype.writeFloatBE=function(r,i,c){return Je(this,r,i,!1,c)};function yt(s,r,i,c,p){return r=+r,i=i>>>0,p||nt(s,r,i,8),n.write(s,r,i,c,52,8),i+8}l.prototype.writeDoubleLE=function(r,i,c){return yt(this,r,i,!0,c)},l.prototype.writeDoubleBE=function(r,i,c){return yt(this,r,i,!1,c)},l.prototype.copy=function(r,i,c,p){if(!l.isBuffer(r))throw new TypeError("argument should be a Buffer");if(c||(c=0),!p&&p!==0&&(p=this.length),i>=r.length&&(i=r.length),i||(i=0),p>0&&p=this.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("sourceEnd out of bounds");p>this.length&&(p=this.length),r.length-i>>0,c=c===void 0?this.length:c>>>0,r||(r=0);let m;if(typeof r=="number")for(m=i;m2**32?p=ot(String(i)):typeof i=="bigint"&&(p=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(p=ot(p)),p+="n"),c+=` It must be ${r}. Received ${p}`,c},RangeError);function ot(s){let r="",i=s.length;const c=s[0]==="-"?1:0;for(;i>=c+4;i-=3)r=`_${s.slice(i-3,i)}${r}`;return`${s.slice(0,i)}${r}`}function Kr(s,r,i){Xe(r,"offset"),(s[r]===void 0||s[r+i]===void 0)&&st(r,s.length-(i+1))}function Mt(s,r,i,c,p,m){if(s>i||s3?r===0||r===BigInt(0)?F=`>= 0${y} and < 2${y} ** ${(m+1)*8}${y}`:F=`>= -(2${y} ** ${(m+1)*8-1}${y}) and < 2 ** ${(m+1)*8-1}${y}`:F=`>= ${r}${y} and <= ${i}${y}`,new Le.ERR_OUT_OF_RANGE("value",F,s)}Kr(c,p,m)}function Xe(s,r){if(typeof s!="number")throw new Le.ERR_INVALID_ARG_TYPE(r,"number",s)}function st(s,r,i){throw Math.floor(s)!==s?(Xe(s,i),new Le.ERR_OUT_OF_RANGE(i||"offset","an integer",s)):r<0?new Le.ERR_BUFFER_OUT_OF_BOUNDS:new Le.ERR_OUT_OF_RANGE(i||"offset",`>= ${i?1:0} and <= ${r}`,s)}const bt=/[^+/0-9A-Za-z-_]/g;function xt(s){if(s=s.split("=")[0],s=s.trim().replace(bt,""),s.length<2)return"";for(;s.length%4!==0;)s=s+"=";return s}function vt(s,r){r=r||1/0;let i;const c=s.length;let p=null;const m=[];for(let y=0;y55295&&i<57344){if(!p){if(i>56319){(r-=3)>-1&&m.push(239,191,189);continue}else if(y+1===c){(r-=3)>-1&&m.push(239,191,189);continue}p=i;continue}if(i<56320){(r-=3)>-1&&m.push(239,191,189),p=i;continue}i=(p-55296<<10|i-56320)+65536}else p&&(r-=3)>-1&&m.push(239,191,189);if(p=null,i<128){if((r-=1)<0)break;m.push(i)}else if(i<2048){if((r-=2)<0)break;m.push(i>>6|192,i&63|128)}else if(i<65536){if((r-=3)<0)break;m.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((r-=4)<0)break;m.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return m}function sr(s){const r=[];for(let i=0;i>8,p=i%256,m.push(p),m.push(c);return m}function ar(s){return t.toByteArray(xt(s))}function It(s,r,i,c){let p;for(p=0;p=r.length||p>=s.length);++p)r[p+i]=s[p];return p}function ve(s,r){return s instanceof r||s!=null&&s.constructor!=null&&s.constructor.name!=null&&s.constructor.name===r.name}function Ut(s){return s!==s}const Zr=function(){const s="0123456789abcdef",r=new Array(256);for(let i=0;i<16;++i){const c=i*16;for(let p=0;p<16;++p)r[c+p]=s[i]+s[p]}return r}();function Ne(s){return typeof BigInt>"u"?lr:s}function lr(){throw new Error("BigInt not supported")}})(nn);var sn={exports:{}},se=sn.exports={},Ue,De;function dr(){throw new Error("setTimeout has not been defined")}function pr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Ue=setTimeout:Ue=dr}catch{Ue=dr}try{typeof clearTimeout=="function"?De=clearTimeout:De=pr}catch{De=pr}})();function an(e){if(Ue===setTimeout)return setTimeout(e,0);if((Ue===dr||!Ue)&&setTimeout)return Ue=setTimeout,setTimeout(e,0);try{return Ue(e,0)}catch{try{return Ue.call(null,e,0)}catch{return Ue.call(this,e,0)}}}function qi(e){if(De===clearTimeout)return clearTimeout(e);if((De===pr||!De)&&clearTimeout)return De=clearTimeout,clearTimeout(e);try{return De(e)}catch{try{return De.call(null,e)}catch{return De.call(this,e)}}}var Ve=[],ct=!1,Ke,zt=-1;function Wi(){!ct||!Ke||(ct=!1,Ke.length?Ve=Ke.concat(Ve):zt=-1,Ve.length&&ln())}function ln(){if(!ct){var e=an(Wi);ct=!0;for(var t=Ve.length;t;){for(Ke=Ve,Ve=[];++zt1)for(var n=1;nf&&f.__esModule?f:{default:f},a=o(n),u=globalThis||void 0||self;Object.defineProperty(e,"Buffer",{enumerable:!0,get:()=>t.Buffer}),Object.defineProperty(e,"process",{enumerable:!0,get:()=>a.default}),e.global=u})(Ee);var hr={exports:{}},Ct={};/** + */(function(e){const t=Dt,i=fr,o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=N,e.INSPECT_MAX_BYTES=50;const c=2147483647;e.kMaxLength=c,a.TYPED_ARRAY_SUPPORT=u(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function u(){try{const s=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(s,r),s.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function f(s){if(s>c)throw new RangeError('The value "'+s+'" is invalid for option "size"');const r=new Uint8Array(s);return Object.setPrototypeOf(r,a.prototype),r}function a(s,r,n){if(typeof s=="number"){if(typeof r=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return b(s)}return h(s,r,n)}a.poolSize=8192;function h(s,r,n){if(typeof s=="string")return I(s,r);if(ArrayBuffer.isView(s))return O(s);if(s==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof s);if(xe(s,ArrayBuffer)||s&&xe(s.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(xe(s,SharedArrayBuffer)||s&&xe(s.buffer,SharedArrayBuffer)))return C(s,r,n);if(typeof s=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const l=s.valueOf&&s.valueOf();if(l!=null&&l!==s)return a.from(l,r,n);const p=oe(s);if(p)return p;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof s[Symbol.toPrimitive]=="function")return a.from(s[Symbol.toPrimitive]("string"),r,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof s)}a.from=function(s,r,n){return h(s,r,n)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function x(s){if(typeof s!="number")throw new TypeError('"size" argument must be of type number');if(s<0)throw new RangeError('The value "'+s+'" is invalid for option "size"')}function y(s,r,n){return x(s),s<=0?f(s):r!==void 0?typeof n=="string"?f(s).fill(r,n):f(s).fill(r):f(s)}a.alloc=function(s,r,n){return y(s,r,n)};function b(s){return x(s),f(s<0?0:j(s)|0)}a.allocUnsafe=function(s){return b(s)},a.allocUnsafeSlow=function(s){return b(s)};function I(s,r){if((typeof r!="string"||r==="")&&(r="utf8"),!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);const n=le(s,r)|0;let l=f(n);const p=l.write(s,r);return p!==n&&(l=l.slice(0,p)),l}function P(s){const r=s.length<0?0:j(s.length)|0,n=f(r);for(let l=0;l=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return s|0}function N(s){return+s!=s&&(s=0),a.alloc(+s)}a.isBuffer=function(r){return r!=null&&r._isBuffer===!0&&r!==a.prototype},a.compare=function(r,n){if(xe(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),xe(n,Uint8Array)&&(n=a.from(n,n.offset,n.byteLength)),!a.isBuffer(r)||!a.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(r===n)return 0;let l=r.length,p=n.length;for(let m=0,g=Math.min(l,p);mp.length?(a.isBuffer(g)||(g=a.from(g)),g.copy(p,m)):Uint8Array.prototype.set.call(p,g,m);else if(a.isBuffer(g))g.copy(p,m);else throw new TypeError('"list" argument must be an Array of Buffers');m+=g.length}return p};function le(s,r){if(a.isBuffer(s))return s.length;if(ArrayBuffer.isView(s)||xe(s,ArrayBuffer))return s.byteLength;if(typeof s!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof s);const n=s.length,l=arguments.length>2&&arguments[2]===!0;if(!l&&n===0)return 0;let p=!1;for(;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return vt(s).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return ar(s).length;default:if(p)return l?-1:vt(s).length;r=(""+r).toLowerCase(),p=!0}}a.byteLength=le;function ge(s,r,n){let l=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,r>>>=0,n<=r))return"";for(s||(s="utf8");;)switch(s){case"hex":return G(this,r,n);case"utf8":case"utf-8":return S(this,r,n);case"ascii":return U(this,r,n);case"latin1":case"binary":return V(this,r,n);case"base64":return _(this,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,r,n);default:if(l)throw new TypeError("Unknown encoding: "+s);s=(s+"").toLowerCase(),l=!0}}a.prototype._isBuffer=!0;function B(s,r,n){const l=s[r];s[r]=s[n],s[n]=l}a.prototype.swap16=function(){const r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let n=0;nn&&(r+=" ... "),""},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(r,n,l,p,m){if(xe(r,Uint8Array)&&(r=a.from(r,r.offset,r.byteLength)),!a.isBuffer(r))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof r);if(n===void 0&&(n=0),l===void 0&&(l=r?r.length:0),p===void 0&&(p=0),m===void 0&&(m=this.length),n<0||l>r.length||p<0||m>this.length)throw new RangeError("out of range index");if(p>=m&&n>=l)return 0;if(p>=m)return-1;if(n>=l)return 1;if(n>>>=0,l>>>=0,p>>>=0,m>>>=0,this===r)return 0;let g=m-p,R=l-n;const ee=Math.min(g,R),K=this.slice(p,m),te=r.slice(n,l);for(let H=0;H2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,Ut(n)&&(n=p?0:s.length-1),n<0&&(n=s.length+n),n>=s.length){if(p)return-1;n=s.length-1}else if(n<0)if(p)n=0;else return-1;if(typeof r=="string"&&(r=a.from(r,l)),a.isBuffer(r))return r.length===0?-1:be(s,r,n,l,p);if(typeof r=="number")return r=r&255,typeof Uint8Array.prototype.indexOf=="function"?p?Uint8Array.prototype.indexOf.call(s,r,n):Uint8Array.prototype.lastIndexOf.call(s,r,n):be(s,[r],n,l,p);throw new TypeError("val must be string, number or Buffer")}function be(s,r,n,l,p){let m=1,g=s.length,R=r.length;if(l!==void 0&&(l=String(l).toLowerCase(),l==="ucs2"||l==="ucs-2"||l==="utf16le"||l==="utf-16le")){if(s.length<2||r.length<2)return-1;m=2,g/=2,R/=2,n/=2}function ee(te,H){return m===1?te[H]:te.readUInt16BE(H*m)}let K;if(p){let te=-1;for(K=n;Kg&&(n=g-R),K=n;K>=0;K--){let te=!0;for(let H=0;Hp&&(l=p)):l=p;const m=r.length;l>m/2&&(l=m/2);let g;for(g=0;g>>0,isFinite(l)?(l=l>>>0,p===void 0&&(p="utf8")):(p=l,l=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const m=this.length-n;if((l===void 0||l>m)&&(l=m),r.length>0&&(l<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");p||(p="utf8");let g=!1;for(;;)switch(p){case"hex":return Ae(this,r,n,l);case"utf8":case"utf-8":return Ce(this,r,n,l);case"ascii":case"latin1":case"binary":return Fe(this,r,n,l);case"base64":return pe(this,r,n,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,r,n,l);default:if(g)throw new TypeError("Unknown encoding: "+p);p=(""+p).toLowerCase(),g=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function _(s,r,n){return r===0&&n===s.length?t.fromByteArray(s):t.fromByteArray(s.slice(r,n))}function S(s,r,n){n=Math.min(s.length,n);const l=[];let p=r;for(;p239?4:m>223?3:m>191?2:1;if(p+R<=n){let ee,K,te,H;switch(R){case 1:m<128&&(g=m);break;case 2:ee=s[p+1],(ee&192)===128&&(H=(m&31)<<6|ee&63,H>127&&(g=H));break;case 3:ee=s[p+1],K=s[p+2],(ee&192)===128&&(K&192)===128&&(H=(m&15)<<12|(ee&63)<<6|K&63,H>2047&&(H<55296||H>57343)&&(g=H));break;case 4:ee=s[p+1],K=s[p+2],te=s[p+3],(ee&192)===128&&(K&192)===128&&(te&192)===128&&(H=(m&15)<<18|(ee&63)<<12|(K&63)<<6|te&63,H>65535&&H<1114112&&(g=H))}}g===null?(g=65533,R=1):g>65535&&(g-=65536,l.push(g>>>10&1023|55296),g=56320|g&1023),l.push(g),p+=R}return F(l)}const A=4096;function F(s){const r=s.length;if(r<=A)return String.fromCharCode.apply(String,s);let n="",l=0;for(;ll)&&(n=l);let p="";for(let m=r;ml&&(r=l),n<0?(n+=l,n<0&&(n=0)):n>l&&(n=l),nn)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(r,n,l){r=r>>>0,n=n>>>0,l||$(r,n,this.length);let p=this[r],m=1,g=0;for(;++g>>0,n=n>>>0,l||$(r,n,this.length);let p=this[r+--n],m=1;for(;n>0&&(m*=256);)p+=this[r+--n]*m;return p},a.prototype.readUint8=a.prototype.readUInt8=function(r,n){return r=r>>>0,n||$(r,1,this.length),this[r]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(r,n){return r=r>>>0,n||$(r,2,this.length),this[r]|this[r+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(r,n){return r=r>>>0,n||$(r,2,this.length),this[r]<<8|this[r+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(r,n){return r=r>>>0,n||$(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(r,n){return r=r>>>0,n||$(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])},a.prototype.readBigUInt64LE=Le(function(r){r=r>>>0,Je(r,"offset");const n=this[r],l=this[r+7];(n===void 0||l===void 0)&&st(r,this.length-8);const p=n+this[++r]*2**8+this[++r]*2**16+this[++r]*2**24,m=this[++r]+this[++r]*2**8+this[++r]*2**16+l*2**24;return BigInt(p)+(BigInt(m)<>>0,Je(r,"offset");const n=this[r],l=this[r+7];(n===void 0||l===void 0)&&st(r,this.length-8);const p=n*2**24+this[++r]*2**16+this[++r]*2**8+this[++r],m=this[++r]*2**24+this[++r]*2**16+this[++r]*2**8+l;return(BigInt(p)<>>0,n=n>>>0,l||$(r,n,this.length);let p=this[r],m=1,g=0;for(;++g=m&&(p-=Math.pow(2,8*n)),p},a.prototype.readIntBE=function(r,n,l){r=r>>>0,n=n>>>0,l||$(r,n,this.length);let p=n,m=1,g=this[r+--p];for(;p>0&&(m*=256);)g+=this[r+--p]*m;return m*=128,g>=m&&(g-=Math.pow(2,8*n)),g},a.prototype.readInt8=function(r,n){return r=r>>>0,n||$(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]},a.prototype.readInt16LE=function(r,n){r=r>>>0,n||$(r,2,this.length);const l=this[r]|this[r+1]<<8;return l&32768?l|4294901760:l},a.prototype.readInt16BE=function(r,n){r=r>>>0,n||$(r,2,this.length);const l=this[r+1]|this[r]<<8;return l&32768?l|4294901760:l},a.prototype.readInt32LE=function(r,n){return r=r>>>0,n||$(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},a.prototype.readInt32BE=function(r,n){return r=r>>>0,n||$(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},a.prototype.readBigInt64LE=Le(function(r){r=r>>>0,Je(r,"offset");const n=this[r],l=this[r+7];(n===void 0||l===void 0)&&st(r,this.length-8);const p=this[r+4]+this[r+5]*2**8+this[r+6]*2**16+(l<<24);return(BigInt(p)<>>0,Je(r,"offset");const n=this[r],l=this[r+7];(n===void 0||l===void 0)&&st(r,this.length-8);const p=(n<<24)+this[++r]*2**16+this[++r]*2**8+this[++r];return(BigInt(p)<>>0,n||$(r,4,this.length),i.read(this,r,!0,23,4)},a.prototype.readFloatBE=function(r,n){return r=r>>>0,n||$(r,4,this.length),i.read(this,r,!1,23,4)},a.prototype.readDoubleLE=function(r,n){return r=r>>>0,n||$(r,8,this.length),i.read(this,r,!0,52,8)},a.prototype.readDoubleBE=function(r,n){return r=r>>>0,n||$(r,8,this.length),i.read(this,r,!1,52,8)};function q(s,r,n,l,p,m){if(!a.isBuffer(s))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>p||rs.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(r,n,l,p){if(r=+r,n=n>>>0,l=l>>>0,!p){const R=Math.pow(2,8*l)-1;q(this,r,n,l,R,0)}let m=1,g=0;for(this[n]=r&255;++g>>0,l=l>>>0,!p){const R=Math.pow(2,8*l)-1;q(this,r,n,l,R,0)}let m=l-1,g=1;for(this[n+m]=r&255;--m>=0&&(g*=256);)this[n+m]=r/g&255;return n+l},a.prototype.writeUint8=a.prototype.writeUInt8=function(r,n,l){return r=+r,n=n>>>0,l||q(this,r,n,1,255,0),this[n]=r&255,n+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(r,n,l){return r=+r,n=n>>>0,l||q(this,r,n,2,65535,0),this[n]=r&255,this[n+1]=r>>>8,n+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(r,n,l){return r=+r,n=n>>>0,l||q(this,r,n,2,65535,0),this[n]=r>>>8,this[n+1]=r&255,n+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(r,n,l){return r=+r,n=n>>>0,l||q(this,r,n,4,4294967295,0),this[n+3]=r>>>24,this[n+2]=r>>>16,this[n+1]=r>>>8,this[n]=r&255,n+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(r,n,l){return r=+r,n=n>>>0,l||q(this,r,n,4,4294967295,0),this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=r&255,n+4};function ne(s,r,n,l,p){Mt(r,l,p,s,n,7);let m=Number(r&BigInt(4294967295));s[n++]=m,m=m>>8,s[n++]=m,m=m>>8,s[n++]=m,m=m>>8,s[n++]=m;let g=Number(r>>BigInt(32)&BigInt(4294967295));return s[n++]=g,g=g>>8,s[n++]=g,g=g>>8,s[n++]=g,g=g>>8,s[n++]=g,n}function He(s,r,n,l,p){Mt(r,l,p,s,n,7);let m=Number(r&BigInt(4294967295));s[n+7]=m,m=m>>8,s[n+6]=m,m=m>>8,s[n+5]=m,m=m>>8,s[n+4]=m;let g=Number(r>>BigInt(32)&BigInt(4294967295));return s[n+3]=g,g=g>>8,s[n+2]=g,g=g>>8,s[n+1]=g,g=g>>8,s[n]=g,n+8}a.prototype.writeBigUInt64LE=Le(function(r,n=0){return ne(this,r,n,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Le(function(r,n=0){return He(this,r,n,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(r,n,l,p){if(r=+r,n=n>>>0,!p){const ee=Math.pow(2,8*l-1);q(this,r,n,l,ee-1,-ee)}let m=0,g=1,R=0;for(this[n]=r&255;++m>0)-R&255;return n+l},a.prototype.writeIntBE=function(r,n,l,p){if(r=+r,n=n>>>0,!p){const ee=Math.pow(2,8*l-1);q(this,r,n,l,ee-1,-ee)}let m=l-1,g=1,R=0;for(this[n+m]=r&255;--m>=0&&(g*=256);)r<0&&R===0&&this[n+m+1]!==0&&(R=1),this[n+m]=(r/g>>0)-R&255;return n+l},a.prototype.writeInt8=function(r,n,l){return r=+r,n=n>>>0,l||q(this,r,n,1,127,-128),r<0&&(r=255+r+1),this[n]=r&255,n+1},a.prototype.writeInt16LE=function(r,n,l){return r=+r,n=n>>>0,l||q(this,r,n,2,32767,-32768),this[n]=r&255,this[n+1]=r>>>8,n+2},a.prototype.writeInt16BE=function(r,n,l){return r=+r,n=n>>>0,l||q(this,r,n,2,32767,-32768),this[n]=r>>>8,this[n+1]=r&255,n+2},a.prototype.writeInt32LE=function(r,n,l){return r=+r,n=n>>>0,l||q(this,r,n,4,2147483647,-2147483648),this[n]=r&255,this[n+1]=r>>>8,this[n+2]=r>>>16,this[n+3]=r>>>24,n+4},a.prototype.writeInt32BE=function(r,n,l){return r=+r,n=n>>>0,l||q(this,r,n,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),this[n]=r>>>24,this[n+1]=r>>>16,this[n+2]=r>>>8,this[n+3]=r&255,n+4},a.prototype.writeBigInt64LE=Le(function(r,n=0){return ne(this,r,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Le(function(r,n=0){return He(this,r,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function nt(s,r,n,l,p,m){if(n+l>s.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ye(s,r,n,l,p){return r=+r,n=n>>>0,p||nt(s,r,n,4),i.write(s,r,n,l,23,4),n+4}a.prototype.writeFloatLE=function(r,n,l){return Ye(this,r,n,!0,l)},a.prototype.writeFloatBE=function(r,n,l){return Ye(this,r,n,!1,l)};function gt(s,r,n,l,p){return r=+r,n=n>>>0,p||nt(s,r,n,8),i.write(s,r,n,l,52,8),n+8}a.prototype.writeDoubleLE=function(r,n,l){return gt(this,r,n,!0,l)},a.prototype.writeDoubleBE=function(r,n,l){return gt(this,r,n,!1,l)},a.prototype.copy=function(r,n,l,p){if(!a.isBuffer(r))throw new TypeError("argument should be a Buffer");if(l||(l=0),!p&&p!==0&&(p=this.length),n>=r.length&&(n=r.length),n||(n=0),p>0&&p=this.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("sourceEnd out of bounds");p>this.length&&(p=this.length),r.length-n>>0,l=l===void 0?this.length:l>>>0,r||(r=0);let m;if(typeof r=="number")for(m=n;m2**32?p=ot(String(n)):typeof n=="bigint"&&(p=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(p=ot(p)),p+="n"),l+=` It must be ${r}. Received ${p}`,l},RangeError);function ot(s){let r="",n=s.length;const l=s[0]==="-"?1:0;for(;n>=l+4;n-=3)r=`_${s.slice(n-3,n)}${r}`;return`${s.slice(0,n)}${r}`}function Kr(s,r,n){Je(r,"offset"),(s[r]===void 0||s[r+n]===void 0)&&st(r,s.length-(n+1))}function Mt(s,r,n,l,p,m){if(s>n||s3?r===0||r===BigInt(0)?R=`>= 0${g} and < 2${g} ** ${(m+1)*8}${g}`:R=`>= -(2${g} ** ${(m+1)*8-1}${g}) and < 2 ** ${(m+1)*8-1}${g}`:R=`>= ${r}${g} and <= ${n}${g}`,new Oe.ERR_OUT_OF_RANGE("value",R,s)}Kr(l,p,m)}function Je(s,r){if(typeof s!="number")throw new Oe.ERR_INVALID_ARG_TYPE(r,"number",s)}function st(s,r,n){throw Math.floor(s)!==s?(Je(s,n),new Oe.ERR_OUT_OF_RANGE(n||"offset","an integer",s)):r<0?new Oe.ERR_BUFFER_OUT_OF_BOUNDS:new Oe.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${r}`,s)}const bt=/[^+/0-9A-Za-z-_]/g;function xt(s){if(s=s.split("=")[0],s=s.trim().replace(bt,""),s.length<2)return"";for(;s.length%4!==0;)s=s+"=";return s}function vt(s,r){r=r||1/0;let n;const l=s.length;let p=null;const m=[];for(let g=0;g55295&&n<57344){if(!p){if(n>56319){(r-=3)>-1&&m.push(239,191,189);continue}else if(g+1===l){(r-=3)>-1&&m.push(239,191,189);continue}p=n;continue}if(n<56320){(r-=3)>-1&&m.push(239,191,189),p=n;continue}n=(p-55296<<10|n-56320)+65536}else p&&(r-=3)>-1&&m.push(239,191,189);if(p=null,n<128){if((r-=1)<0)break;m.push(n)}else if(n<2048){if((r-=2)<0)break;m.push(n>>6|192,n&63|128)}else if(n<65536){if((r-=3)<0)break;m.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((r-=4)<0)break;m.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return m}function sr(s){const r=[];for(let n=0;n>8,p=n%256,m.push(p),m.push(l);return m}function ar(s){return t.toByteArray(xt(s))}function It(s,r,n,l){let p;for(p=0;p=r.length||p>=s.length);++p)r[p+n]=s[p];return p}function xe(s,r){return s instanceof r||s!=null&&s.constructor!=null&&s.constructor.name!=null&&s.constructor.name===r.name}function Ut(s){return s!==s}const Zr=function(){const s="0123456789abcdef",r=new Array(256);for(let n=0;n<16;++n){const l=n*16;for(let p=0;p<16;++p)r[l+p]=s[n]+s[p]}return r}();function Le(s){return typeof BigInt>"u"?cr:s}function cr(){throw new Error("BigInt not supported")}})(nn);var sn={exports:{}},se=sn.exports={},Me,Ue;function dr(){throw new Error("setTimeout has not been defined")}function pr(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Me=setTimeout:Me=dr}catch{Me=dr}try{typeof clearTimeout=="function"?Ue=clearTimeout:Ue=pr}catch{Ue=pr}})();function an(e){if(Me===setTimeout)return setTimeout(e,0);if((Me===dr||!Me)&&setTimeout)return Me=setTimeout,setTimeout(e,0);try{return Me(e,0)}catch{try{return Me.call(null,e,0)}catch{return Me.call(this,e,0)}}}function qi(e){if(Ue===clearTimeout)return clearTimeout(e);if((Ue===pr||!Ue)&&clearTimeout)return Ue=clearTimeout,clearTimeout(e);try{return Ue(e)}catch{try{return Ue.call(null,e)}catch{return Ue.call(this,e)}}}var $e=[],lt=!1,Xe,zt=-1;function Wi(){!lt||!Xe||(lt=!1,Xe.length?$e=Xe.concat($e):zt=-1,$e.length&&cn())}function cn(){if(!lt){var e=an(Wi);lt=!0;for(var t=$e.length;t;){for(Xe=$e,$e=[];++zt1)for(var i=1;if&&f.__esModule?f:{default:f},c=o(i),u=globalThis||void 0||self;Object.defineProperty(e,"Buffer",{enumerable:!0,get:()=>t.Buffer}),Object.defineProperty(e,"process",{enumerable:!0,get:()=>c.default}),e.global=u})(ve);var hr={exports:{}},Ct={};/** * @license React * react-jsx-runtime.production.min.js * @@ -12,16 +12,16 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var un;function Hi(){if(un)return Ct;un=1;var e=X,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function f(l,h,b){var w,x={},I=null,S=null;b!==void 0&&(I=""+b),h.key!==void 0&&(I=""+h.key),h.ref!==void 0&&(S=h.ref);for(w in h)o.call(h,w)&&!u.hasOwnProperty(w)&&(x[w]=h[w]);if(l&&l.defaultProps)for(w in h=l.defaultProps,h)x[w]===void 0&&(x[w]=h[w]);return{$$typeof:t,type:l,key:I,ref:S,props:x,_owner:a.current}}return Ct.Fragment=n,Ct.jsx=f,Ct.jsxs=f,Ct}var kt={},fn;function Yi(){return fn||(fn=1,Ee.process.env.NODE_ENV!=="production"&&function(){var e=X,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),l=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),R=Symbol.iterator,j="@@iterator";function $(d){if(d===null||typeof d!="object")return null;var v=R&&d[R]||d[j];return typeof v=="function"?v:null}var P=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function M(d){{for(var v=arguments.length,E=new Array(v>1?v-1:0),B=1;B=1&&fe>=0&&U[le]!==ge[fe];)fe--;for(;le>=1&&fe>=0;le--,fe--)if(U[le]!==ge[fe]){if(le!==1||fe!==1)do if(le--,fe--,fe<0||U[le]!==ge[fe]){var je=` -`+U[le].replace(" at new "," at ");return d.displayName&&je.includes("")&&(je=je.replace("",d.displayName)),typeof d=="function"&&ot.set(d,je),je}while(le>=1&&fe>=0);break}}}finally{it=!1,Je.current=K,nt(),Error.prepareStackTrace=G}var St=d?d.displayName||d.name:"",Ri=St?Le(St):"";return typeof d=="function"&&ot.set(d,Ri),Ri}function Xe(d,v,E){return Mt(d,!1)}function st(d){var v=d.prototype;return!!(v&&v.isReactComponent)}function bt(d,v,E){if(d==null)return"";if(typeof d=="function")return Mt(d,st(d));if(typeof d=="string")return Le(d);switch(d){case b:return Le("Suspense");case w:return Le("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case h:return Xe(d.render);case x:return bt(d.type,v,E);case I:{var B=d,G=B._payload,K=B._init;try{return bt(K(G),v,E)}catch{}}}return""}var xt=Object.prototype.hasOwnProperty,vt={},sr=P.ReactDebugCurrentFrame;function Et(d){if(d){var v=d._owner,E=bt(d.type,d._source,v?v.type:null);sr.setExtraStackFrame(E)}else sr.setExtraStackFrame(null)}function ar(d,v,E,B,G){{var K=Function.call.bind(xt);for(var z in d)if(K(d,z)){var U=void 0;try{if(typeof d[z]!="function"){var ge=Error((B||"React class")+": "+E+" type `"+z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[z]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ge.name="Invariant Violation",ge}U=d[z](v,z,B,E,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(le){U=le}U&&!(U instanceof Error)&&(Et(G),M("%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).",B||"React class",E,z,typeof U),Et(null)),U instanceof Error&&!(U.message in vt)&&(vt[U.message]=!0,Et(G),M("Failed %s type: %s",E,U.message),Et(null))}}}var It=Array.isArray;function ve(d){return It(d)}function Ut(d){{var v=typeof Symbol=="function"&&Symbol.toStringTag,E=v&&d[Symbol.toStringTag]||d.constructor.name||"Object";return E}}function Zr(d){try{return Ne(d),!1}catch{return!0}}function Ne(d){return""+d}function lr(d){if(Zr(d))return M("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ut(d)),Ne(d)}var s=P.ReactCurrentOwner,r={key:!0,ref:!0,__self:!0,__source:!0},i,c,p;p={};function m(d){if(xt.call(d,"ref")){var v=Object.getOwnPropertyDescriptor(d,"ref").get;if(v&&v.isReactWarning)return!1}return d.ref!==void 0}function y(d){if(xt.call(d,"key")){var v=Object.getOwnPropertyDescriptor(d,"key").get;if(v&&v.isReactWarning)return!1}return d.key!==void 0}function F(d,v){if(typeof d.ref=="string"&&s.current&&v&&s.current.stateNode!==v){var E=k(s.current.type);p[E]||(M('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',k(s.current.type),d.ref),p[E]=!0)}}function te(d,v){{var E=function(){i||(i=!0,M("%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)",v))};E.isReactWarning=!0,Object.defineProperty(d,"key",{get:E,configurable:!0})}}function Z(d,v){{var E=function(){c||(c=!0,M("%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)",v))};E.isReactWarning=!0,Object.defineProperty(d,"ref",{get:E,configurable:!0})}}var re=function(d,v,E,B,G,K,z){var U={$$typeof:t,type:d,key:v,ref:E,props:z,_owner:K};return U._store={},Object.defineProperty(U._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(U,"_self",{configurable:!1,enumerable:!1,writable:!1,value:B}),Object.defineProperty(U,"_source",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.freeze&&(Object.freeze(U.props),Object.freeze(U)),U};function Y(d,v,E,B,G){{var K,z={},U=null,ge=null;E!==void 0&&(lr(E),U=""+E),y(v)&&(lr(v.key),U=""+v.key),m(v)&&(ge=v.ref,F(v,G));for(K in v)xt.call(v,K)&&!r.hasOwnProperty(K)&&(z[K]=v[K]);if(d&&d.defaultProps){var le=d.defaultProps;for(K in le)z[K]===void 0&&(z[K]=le[K])}if(U||ge){var fe=typeof d=="function"?d.displayName||d.name||"Unknown":d;U&&te(z,fe),ge&&Z(z,fe)}return re(d,U,ge,G,B,s.current,z)}}var Qr=P.ReactCurrentOwner,Ci=P.ReactDebugCurrentFrame;function Tt(d){if(d){var v=d._owner,E=bt(d.type,d._source,v?v.type:null);Ci.setExtraStackFrame(E)}else Ci.setExtraStackFrame(null)}var en;en=!1;function tn(d){return typeof d=="object"&&d!==null&&d.$$typeof===t}function ki(){{if(Qr.current){var d=k(Qr.current.type);if(d)return` + */var un;function Hi(){if(un)return Ct;un=1;var e=J,t=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,c=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function f(a,h,x){var y,b={},I=null,P=null;x!==void 0&&(I=""+x),h.key!==void 0&&(I=""+h.key),h.ref!==void 0&&(P=h.ref);for(y in h)o.call(h,y)&&!u.hasOwnProperty(y)&&(b[y]=h[y]);if(a&&a.defaultProps)for(y in h=a.defaultProps,h)b[y]===void 0&&(b[y]=h[y]);return{$$typeof:t,type:a,key:I,ref:P,props:b,_owner:c.current}}return Ct.Fragment=i,Ct.jsx=f,Ct.jsxs=f,Ct}var Pt={},fn;function Yi(){return fn||(fn=1,ve.process.env.NODE_ENV!=="production"&&function(){var e=J,t=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),a=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),O=Symbol.iterator,C="@@iterator";function oe(d){if(d===null||typeof d!="object")return null;var v=O&&d[O]||d[C];return typeof v=="function"?v:null}var j=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function N(d){{for(var v=arguments.length,E=new Array(v>1?v-1:0),k=1;k=1&&ue>=0&&M[ae]!==we[ue];)ue--;for(;ae>=1&&ue>=0;ae--,ue--)if(M[ae]!==we[ue]){if(ae!==1||ue!==1)do if(ae--,ue--,ue<0||M[ae]!==we[ue]){var je=` +`+M[ae].replace(" at new "," at ");return d.displayName&&je.includes("")&&(je=je.replace("",d.displayName)),typeof d=="function"&&ot.set(d,je),je}while(ae>=1&&ue>=0);break}}}finally{it=!1,Ye.current=X,nt(),Error.prepareStackTrace=W}var St=d?d.displayName||d.name:"",Ri=St?Oe(St):"";return typeof d=="function"&&ot.set(d,Ri),Ri}function Je(d,v,E){return Mt(d,!1)}function st(d){var v=d.prototype;return!!(v&&v.isReactComponent)}function bt(d,v,E){if(d==null)return"";if(typeof d=="function")return Mt(d,st(d));if(typeof d=="string")return Oe(d);switch(d){case x:return Oe("Suspense");case y:return Oe("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case h:return Je(d.render);case b:return bt(d.type,v,E);case I:{var k=d,W=k._payload,X=k._init;try{return bt(X(W),v,E)}catch{}}}return""}var xt=Object.prototype.hasOwnProperty,vt={},sr=j.ReactDebugCurrentFrame;function Et(d){if(d){var v=d._owner,E=bt(d.type,d._source,v?v.type:null);sr.setExtraStackFrame(E)}else sr.setExtraStackFrame(null)}function ar(d,v,E,k,W){{var X=Function.call.bind(xt);for(var D in d)if(X(d,D)){var M=void 0;try{if(typeof d[D]!="function"){var we=Error((k||"React class")+": "+E+" type `"+D+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[D]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw we.name="Invariant Violation",we}M=d[D](v,D,k,E,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ae){M=ae}M&&!(M instanceof Error)&&(Et(W),N("%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).",k||"React class",E,D,typeof M),Et(null)),M instanceof Error&&!(M.message in vt)&&(vt[M.message]=!0,Et(W),N("Failed %s type: %s",E,M.message),Et(null))}}}var It=Array.isArray;function xe(d){return It(d)}function Ut(d){{var v=typeof Symbol=="function"&&Symbol.toStringTag,E=v&&d[Symbol.toStringTag]||d.constructor.name||"Object";return E}}function Zr(d){try{return Le(d),!1}catch{return!0}}function Le(d){return""+d}function cr(d){if(Zr(d))return N("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ut(d)),Le(d)}var s=j.ReactCurrentOwner,r={key:!0,ref:!0,__self:!0,__source:!0},n,l,p;p={};function m(d){if(xt.call(d,"ref")){var v=Object.getOwnPropertyDescriptor(d,"ref").get;if(v&&v.isReactWarning)return!1}return d.ref!==void 0}function g(d){if(xt.call(d,"key")){var v=Object.getOwnPropertyDescriptor(d,"key").get;if(v&&v.isReactWarning)return!1}return d.key!==void 0}function R(d,v){if(typeof d.ref=="string"&&s.current&&v&&s.current.stateNode!==v){var E=_(s.current.type);p[E]||(N('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',_(s.current.type),d.ref),p[E]=!0)}}function ee(d,v){{var E=function(){n||(n=!0,N("%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)",v))};E.isReactWarning=!0,Object.defineProperty(d,"key",{get:E,configurable:!0})}}function K(d,v){{var E=function(){l||(l=!0,N("%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)",v))};E.isReactWarning=!0,Object.defineProperty(d,"ref",{get:E,configurable:!0})}}var te=function(d,v,E,k,W,X,D){var M={$$typeof:t,type:d,key:v,ref:E,props:D,_owner:X};return M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(M,"_self",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.defineProperty(M,"_source",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M};function H(d,v,E,k,W){{var X,D={},M=null,we=null;E!==void 0&&(cr(E),M=""+E),g(v)&&(cr(v.key),M=""+v.key),m(v)&&(we=v.ref,R(v,W));for(X in v)xt.call(v,X)&&!r.hasOwnProperty(X)&&(D[X]=v[X]);if(d&&d.defaultProps){var ae=d.defaultProps;for(X in ae)D[X]===void 0&&(D[X]=ae[X])}if(M||we){var ue=typeof d=="function"?d.displayName||d.name||"Unknown":d;M&&ee(D,ue),we&&K(D,ue)}return te(d,M,we,W,k,s.current,D)}}var Qr=j.ReactCurrentOwner,Ci=j.ReactDebugCurrentFrame;function Tt(d){if(d){var v=d._owner,E=bt(d.type,d._source,v?v.type:null);Ci.setExtraStackFrame(E)}else Ci.setExtraStackFrame(null)}var en;en=!1;function tn(d){return typeof d=="object"&&d!==null&&d.$$typeof===t}function Pi(){{if(Qr.current){var d=_(Qr.current.type);if(d)return` Check the render method of \``+d+"`."}return""}}function Va(d){{if(d!==void 0){var v=d.fileName.replace(/^.*[\\\/]/,""),E=d.lineNumber;return` -Check your code at `+v+":"+E+"."}return""}}var Pi={};function qa(d){{var v=ki();if(!v){var E=typeof d=="string"?d:d.displayName||d.name;E&&(v=` +Check your code at `+v+":"+E+"."}return""}}var _i={};function qa(d){{var v=Pi();if(!v){var E=typeof d=="string"?d:d.displayName||d.name;E&&(v=` -Check the top-level render call using <`+E+">.")}return v}}function _i(d,v){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var E=qa(v);if(Pi[E])return;Pi[E]=!0;var B="";d&&d._owner&&d._owner!==Qr.current&&(B=" It was passed a child from "+k(d._owner.type)+"."),Tt(d),M('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,B),Tt(null)}}function ji(d,v){{if(typeof d!="object")return;if(ve(d))for(var E=0;E",U=" Did you accidentally export a JSX literal instead of a component?"):le=typeof d,M("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",le,U)}var fe=Y(d,v,E,G,K);if(fe==null)return fe;if(z){var je=v.children;if(je!==void 0)if(B)if(ve(je)){for(var St=0;St(e.text="text",e.buttons="buttons",e.payment="payment",e.video="video",e.image="image",e.email="email",e))(Be||{}),gr=(e=>(e.horizontal="horizontal",e.vertical="vertical",e))(gr||{}),Ze=(e=>(e.chat="utm_chat",e))(Ze||{}),ye=(e=>(e.addToCart="AddToCart",e.contact="Contact",e.initiateCheckout="InitiateCheckout",e.pageView="PageView",e.viewContent="ViewContent",e.purchase="Purchase",e.subscribe="Subscribe",e.recurringSubscriptionPayment="RecurringSubscriptionPayment",e.cancelSubscription="CancelSubscription",e.purchaseFailed="PurchaseFailed",e.subscribeFailed="SubscribeFailed",e.recurringSubscriptionPaymentFailed="RecurringSubscriptionPaymentFailed",e.customerCreated="CustomerCreated",e.subscriptionChargeback="SubscriptionChargeback",e.subscriptionRefund="SubscriptionRefund",e.transactionChargeback="TransactionChargeback",e.transactionRefund="TransactionRefund",e.firstMessage="FirstMessage",e.linkProvided="LinkProvided",e.linkClicked="LinkClicked",e.emailField="EmailField",e.emailEntered="EmailEntered",e.emailWrong="EmailWrong",e.emailExist="EmailExist",e.priceSeen="PriceSeen",e.buttonClick="ButtonClick",e.closeClicked="CloseClicked",e))(ye||{}),hn=(e=>(e.email="email_intent",e.payment="payment_intent",e.emailError="email_validation_error",e.emailSuccess="email_validation_success",e.destroy="payment_intent_destroy",e))(hn||{}),Q=(e=>(e.user="user",e.assistant="assistant",e))(Q||{}),_e=(e=>(e.chat="chat",e.chatHistory="chat-history",e.connect="connect",e.error="error",e.disconnect="disconnect",e.streamStart="stream-start",e.streamData="stream-data",e.streamEnd="stream-end",e.streamError="stream-error",e))(_e||{}),mn=(e=>(e.light="light",e.dark="dark",e))(mn||{});const ut=e=>new URLSearchParams(window.location.search).get(e)||"",Qi={day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"numeric"};function eo(e,t=Qi){return`${new Date(e).toLocaleDateString([],t)}`.toUpperCase()}function de(){const e=new Array(36);for(let t=0;t<36;t++)e[t]=Math.floor(Math.random()*16);return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",e.map(t=>t.toString(16)).join("")}const ft={cid:"",eid:"",region:"",systemType:"",pd:{},marketing:{screen:{},lastUtmParams:{},utmParams:{}}},ze={aiProfile:{name:"",role:"",imgSrc:"",welcome:"",initialMessage:[]},close:{href:null,visible:!1},translations:{},themeId:mn.light,chatUrl:"",enableDevTools:!1,isPluginMode:!1,purpose:"default",specialUrls:{}},dt={outgoing:{term:"",user_id:"",role:Q.user,message:""},historyData:{},historyIds:[],error:"",isLoading:!1,typingTimeoutExpired:!1,lastGroupId:de(),connected:!1,closed:!1,isStreaming:!1},to={email:{current:"",success:!1,error:!1,isLoading:!1},response:{isFormVisible:!1,error:!1},payment:{isButtonVisible:!1,isFormVisible:!1,isSuccessful:!1,error:!1},messaging:{isVisible:!1},link:""},wn=at.createSlice({name:"config",initialState:ze,reducers:{setConfig(e,{payload:t}){e.aiProfile={...ze.aiProfile,...t.aiProfile},e.translations={...ze.translations,...t.translations},e.close={...ze.close,...t.close},e.themeId=t.themeId,e.chatUrl=t.chatUrl,e.purpose=t.purpose},setSpecialUrls(e,{payload:t}){e.specialUrls={...e.specialUrls,...t}},setPurpose(e,{payload:t}){e.purpose=t},resetConfig(e){e.aiProfile=ze.aiProfile,e.themeId=ze.themeId,e.translations=ze.translations,e.chatUrl=ze.chatUrl},setTheme(e,{payload:t}){e.themeId=t},resetTheme(e){e.themeId=ze.themeId},setDevToolsStatus(e,{payload:t}){e.enableDevTools=t},resetDevToolsStatus(e){e.enableDevTools=ze.enableDevTools},togglePluginMode(e){e.isPluginMode=!e.isPluginMode},setTranslations(e,{payload:t}){e.translations={...e.translations,...t}}}}),ae=e=>e.config,{setConfig:gn,resetConfig:Za,setTheme:Qa,resetTheme:el,setDevToolsStatus:tl,resetDevToolsStatus:rl,togglePluginMode:nl,setTranslations:il,setPurpose:ro,setSpecialUrls:no}=wn.actions,io=wn.reducer,yn=at.createSlice({name:"meta",initialState:ft,reducers:{setMeta(e,{payload:t}){e.cid=t.cid,e.eid=t.eid,e.systemType=t.systemType,e.pd={...e.pd,...t.pd},e.marketing={...e.marketing,...t.marketing}},resetMeta(e){e.pd=ft.pd,e.cid=ft.cid,e.eid=ft.eid,e.systemType=ft.systemType,e.marketing=ft.marketing},setMarketing(e,{payload:t}){e.marketing={...e.marketing,...t}},setPd(e,{payload:t}){e.pd={...e.pd,...t}},setRegion(e,{payload:t}){e.region=t}}}),jt=e=>e.meta,{setMeta:oo,resetMeta:ol,setMarketing:so,setPd:ao,setRegion:lo}=yn.actions,co=yn.reducer,Ge=cr.useDispatch,_=cr.useSelector,uo=()=>{const[e,t]=X.useState([0,0]);return X.useLayoutEffect(()=>{function n(){t([window.innerWidth,window.innerHeight])}return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},[]),e},fo=()=>{const{themeId:e,close:t}=_(ae),{cid:n,systemType:o,marketing:a}=_(jt);return{theme:e,closeVisible:t.visible,cid:n,systemType:o,marketing:a}};var bn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ie=e=>!e||typeof e!="object"||Object.keys(e).length===0,po=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function xn(e,t){e.forEach(function(n){Array.isArray(n)?xn(n,t):t.push(n)})}function vn(e){let t=[];return xn(e,t),t}var En=(...e)=>vn(e).filter(Boolean),In=(e,t)=>{let n={},o=Object.keys(e),a=Object.keys(t);for(let u of o)if(a.includes(u)){let f=e[u],l=t[u];typeof f=="object"&&typeof l=="object"?n[u]=In(f,l):Array.isArray(f)||Array.isArray(l)?n[u]=En(l,f):n[u]=l+" "+f}else n[u]=e[u];for(let u of a)o.includes(u)||(n[u]=t[u]);return n},Tn=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function ho(){for(var e=0,t,n,o="";ee&&(t=0,o=n,n=new Map)}return{get:function(f){var l=n.get(f);if(l!==void 0)return l;if((l=o.get(f))!==void 0)return a(f,l),l},set:function(f,l){n.has(f)?n.set(f,l):a(f,l)}}}var _n="!";function vo(e){var t=e.separator||":",n=t.length===1,o=t[0],a=t.length;return function(f){for(var l=[],h=0,b=0,w,x=0;xb?w-b:void 0;return{modifiers:l,hasImportantModifier:R,baseClassName:j,maybePostfixModifierPosition:$}}}function Eo(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(o){var a=o[0]==="[";a?(t.push.apply(t,n.sort().concat([o])),n=[]):n.push(o)}),t.push.apply(t,n.sort()),t}function Io(e){return{cache:xo(e.cacheSize),splitModifiers:vo(e),...mo(e)}}var To=/\s+/;function So(e,t){var n=t.splitModifiers,o=t.getClassGroupId,a=t.getConflictingClassGroupIds,u=new Set;return e.trim().split(To).map(function(f){var l=n(f),h=l.modifiers,b=l.hasImportantModifier,w=l.baseClassName,x=l.maybePostfixModifierPosition,I=o(x?w.substring(0,x):w),S=!!x;if(!I){if(!x)return{isTailwindClass:!1,originalClassName:f};if(I=o(w),!I)return{isTailwindClass:!1,originalClassName:f};S=!1}var R=Eo(h).join(":"),j=b?R+_n:R;return{isTailwindClass:!0,modifierId:j,classGroupId:I,originalClassName:f,hasPostfixModifier:S}}).reverse().filter(function(f){if(!f.isTailwindClass)return!0;var l=f.modifierId,h=f.classGroupId,b=f.hasPostfixModifier,w=l+h;return u.has(w)?!1:(u.add(w),a(h,b).forEach(function(x){return u.add(l+x)}),!0)}).reverse().map(function(f){return f.originalClassName}).join(" ")}function xr(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),o=1;oe||void 0,At=(...e)=>Fn(vn(e).filter(Boolean).join(" ")),Ir=null,Ht={},Tr=!1,Ft=(...e)=>t=>t.twMerge?((!Ir||Tr)&&(Tr=!1,Ir=Ie(Ht)?Vo:$o(Ht)),Fn(Ir(At(e)))):At(e),On=(e,t)=>{for(let n in t)e.hasOwnProperty(n)?e[n]=At(e[n],t[n]):e[n]=t[n];return e},oe=(e,t)=>{let{extend:n=null,slots:o={},variants:a={},compoundVariants:u=[],compoundSlots:f=[],defaultVariants:l={}}=e,h={...qo,...t},b=n!=null&&n.base?At(n.base,e==null?void 0:e.base):e==null?void 0:e.base,w=n!=null&&n.variants&&!Ie(n.variants)?In(a,n.variants):a,x=n!=null&&n.defaultVariants&&!Ie(n.defaultVariants)?{...n.defaultVariants,...l}:l;!Ie(h.twMergeConfig)&&!po(h.twMergeConfig,Ht)&&(Tr=!0,Ht=h.twMergeConfig);let I=Ie(n==null?void 0:n.slots),S=Ie(o)?{}:{base:At(e==null?void 0:e.base,I&&(n==null?void 0:n.base)),...o},R=I?S:On({...n==null?void 0:n.slots},Ie(S)?{base:e==null?void 0:e.base}:S),j=P=>{if(Ie(w)&&Ie(o)&&I)return Ft(b,P==null?void 0:P.class,P==null?void 0:P.className)(h);if(u&&!Array.isArray(u))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof u}`);if(f&&!Array.isArray(f))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`);let M=(T,k,C=[],O)=>{let L=C;if(typeof k=="string")L=L.concat(Tn(k).split(" ").map(D=>`${T}:${D}`));else if(Array.isArray(k))L=L.concat(k.reduce((D,q)=>D.concat(`${T}:${q}`),[]));else if(typeof k=="object"&&typeof O=="string"){for(let D in k)if(k.hasOwnProperty(D)&&D===O){let q=k[D];if(q&&typeof q=="string"){let H=Tn(q);L[O]?L[O]=L[O].concat(H.split(" ").map(ne=>`${T}:${ne}`)):L[O]=H.split(" ").map(ne=>`${T}:${ne}`)}else Array.isArray(q)&&q.length>0&&(L[O]=q.reduce((H,ne)=>H.concat(`${T}:${ne}`),[]))}}return L},ue=(T,k=w,C=null,O=null)=>{var L;let D=k[T];if(!D||Ie(D))return null;let q=(L=O==null?void 0:O[T])!=null?L:P==null?void 0:P[T];if(q===null)return null;let H=bn(q),ne=Array.isArray(h.responsiveVariants)&&h.responsiveVariants.length>0||h.responsiveVariants===!0,V=x==null?void 0:x[T],W=[];if(typeof H=="object"&&ne)for(let[Ye,nt]of Object.entries(H)){let Je=D[nt];if(Ye==="initial"){V=nt;continue}Array.isArray(h.responsiveVariants)&&!h.responsiveVariants.includes(Ye)||(W=M(Ye,Je,W,C))}let ie=D[H]||D[bn(V)];return typeof W=="object"&&typeof C=="string"&&W[C]?On(W,ie):W.length>0?(W.push(ie),W):ie},be=()=>w?Object.keys(w).map(T=>ue(T,w)):null,A=(T,k)=>{if(!w||typeof w!="object")return null;let C=new Array;for(let O in w){let L=ue(O,w,T,k),D=T==="base"&&typeof L=="string"?L:L&&L[T];D&&(C[C.length]=D)}return C},we={};for(let T in P)P[T]!==void 0&&(we[T]=P[T]);let xe=(T,k)=>{var C;let O=typeof(P==null?void 0:P[T])=="object"?{[T]:(C=P[T])==null?void 0:C.initial}:{};return{...x,...we,...O,...k}},Fe=(T=[],k)=>{let C=[];for(let{class:O,className:L,...D}of T){let q=!0;for(let[H,ne]of Object.entries(D)){let V=xe(H,k);if(Array.isArray(ne)){if(!ne.includes(V[H])){q=!1;break}}else if(V[H]!==ne){q=!1;break}}q&&(O&&C.push(O),L&&C.push(L))}return C},ke=T=>{let k=Fe(u,T),C=Fe(n==null?void 0:n.compoundVariants,T);return En(C,k)},Oe=T=>{let k=ke(T);if(!Array.isArray(k))return k;let C={};for(let O of k)if(typeof O=="string"&&(C.base=Ft(C.base,O)(h)),typeof O=="object")for(let[L,D]of Object.entries(O))C[L]=Ft(C[L],D)(h);return C},he=T=>{if(f.length<1)return null;let k={};for(let{slots:C=[],class:O,className:L,...D}of f){if(!Ie(D)){let q=!0;for(let H of Object.keys(D)){let ne=xe(H,T)[H];if(ne===void 0||(Array.isArray(D[H])?!D[H].includes(ne):D[H]!==ne)){q=!1;break}}if(!q)continue}for(let q of C)k[q]=k[q]||[],k[q].push([O,L])}return k};if(!Ie(o)||!I){let T={};if(typeof R=="object"&&!Ie(R))for(let k of Object.keys(R))T[k]=C=>{var O,L;return Ft(R[k],A(k,C),((O=Oe(C))!=null?O:[])[k],((L=he(C))!=null?L:[])[k],C==null?void 0:C.class,C==null?void 0:C.className)(h)};return T}return Ft(b,be(),ke(),P==null?void 0:P.class,P==null?void 0:P.className)(h)},$=()=>{if(!(!w||typeof w!="object"))return Object.keys(w)};return j.variantKeys=$(),j.extend=n,j.base=b,j.slots=R,j.variants=w,j.defaultVariants=x,j.compoundSlots=f,j.compoundVariants=u,j};const Wo=oe({slots:{base:"tw--flex tw--self-stretch tw--justify-self-stretch tw--items-stretch tw--justify-center tw--overflow-hidden tw--h-full",wrapper:"tw--flex tw--flex-col tw--w-full md:tw--max-w-[800px] tw--max-h-screen tw--h-full"},variants:{theme:{light:{base:"tw--bg-light-lumina",wrapper:"tw--bg-light-whisper tw--text-light-zephyr-100"},dark:{base:"tw--bg-dark-lumina",wrapper:"tw--bg-dark-whisper tw--text-white"}},minimized:{true:"tw--fixed tw--right-0 tw--bottom-0 tw--max-h-[700px] tw--max-w-md"}}}),Go=oe({slots:{base:"tw--flex tw--px-5 tw--py-[11px] tw--shadow-[-1px_2px_5px_0] tw--justify-between"},variants:{theme:{light:"tw--shadow-light-zephyr-200",dark:"tw--shadow-dark-zephyr-200"}}}),Ln=oe({slots:{base:"tw--flex tw--items-center tw--flex-wrap tw--px-5 tw--mt-[11px]",input:"tw--flex-1 tw--pr-2",button:"tw--flex tw--grow-0"}}),Ho=({head:e,stream:t,foot:n})=>{const{themeId:o,isPluginMode:a}=_(ae),{base:u,wrapper:f}=Wo({theme:o}),l=uo();return g.jsx("div",{"data-e2e":"base-container",style:{height:`${l[1]}px`},className:u({minimized:a}),children:g.jsxs("div",{className:f(),children:[e,t,n]})})},Yo=oe({slots:{base:"loader js-payment-loader tw--hidden tw--fixed tw--left-0 tw--top-0 tw--z-[101] tw--m-0 tw--flex tw--h-screen tw--w-screen tw--items-center tw--justify-center tw--px-5"},variants:{theme:{light:{base:"tw--bg-light-whisper"},dark:{base:"tw--bg-dark-whisper"}}}}),Jo=({children:e})=>{const{themeId:t}=_(ae),{base:n}=Yo({theme:t});return g.jsx("div",{className:n(),children:e})},Te=({eventType:e,systemType:t,utmParams:n,customerUuid:o,email:a,phone:u})=>{if(window.trackEventInGTM&&window.tracking){const f=window.tracking.event({eventType:e,systemType:t,uri:window.location.pathname,domain:window.location.hostname,customerUuid:o,email:a||null,phone:u||null,additionalData:{},utmParams:n});window.tracking.trackClient(f),window.trackEventInGTM&&window.trackEventInGTM(f)}};window.tracking=window.tracking||null,window.trackEventInGTM=window.trackEventInGTM||null;const Nn=oe({slots:{btn:"tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-bold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--text-xl max-h-[46px] tw--mb-[11px] customXs:max-h-[52px]",link:"tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-extrabold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--mb-[11px] spaced-letters max-h-[46px] customXs:max-h-[52px] customXs:tw--max-w-xs customXs:te--text-[20px] customXs:tw--text-xl"}}),Xo=oe({slots:{base:"tw--absolute tw--top-0 tw--left-0 tw--w-full tw--h-screen tw--flex tw--flex-col tw--justify-center tw--items-center tw--px-5 tw--z-50"},variants:{theme:{light:"tw--bg-light-lumina",dark:"tw--bg-dark-lumina"}}}),Ko=oe({slots:{wrapper:"tw--flex tw--justify-between tw--w-full tw--mb-7",left:"tw--flex tw--flex-col",leftTop:"tw--flex tw--flex-row",icon:"tw--pr-[5px] tw--mr-[5px] tw--flex tw--items-center tw--border-r tw--border-r-[#cacadb]",text:"tw--flex tw--flex-col tw--justify-center tw--text-left tw--text-[10px] tw--leading-[1] tw--text-muted-blue",bottom:"tw--opacity-60 tw--text-[10px] tw--leading-[2] tw--text-muted-blue",right:"tw--flex tw--flex-col tw--items-end",price:"tw--text-light-seraph tw--font-bold tw--leading-[1.4] tw--text-[20px]",info:"tw--leading-[2] tw--text-[10px] tw--text-muted-blue"}}),Zo=oe({slots:{base:"tw--absolute tw--top-[-30px] tw--right-[-10px] tw--w-6 tw--h-6 tw--p-1 tw--bg-white tw--rounded-full tw--cursor-pointer tw--text-muted-blue"}}),Qo=oe({slots:{base:"tw--mt-[30px] tw--flex tw--items-center tw--justify-center tw--text-[12.8px] tw--leading-[1.56] tw--text-light-seraph tw--font-bold",icon:"tw--mr-[5px]"}}),es=oe({slots:{wrapper:"loader js-payment-loader tw--max-w-[335px] tw--overflow-hidden tw--relative tw--flex tw--w-full tw--flex-col tw--items-center tw--justify-center tw--rounded-xl tw--p-5",inner:"tw--absolute tw--left-0 tw--top-8 tw--flex tw--h-8 tw--w-full tw--items-center tw--justify-center",dots:"tw--relative tw--flex tw--items-center tw--justify-center tw--p-3",dotsIn:"tw--relative tw--mx-auto tw--my-4 tw--box-content tw--block tw--h-4 tw--w-4 tw--rounded-full",progressCheckmark:"tw--mb-6 tw--mt-24 tw--box-border tw--flex tw--w-full tw--items-center tw--justify-center tw--text-center",panelTitle:"js-payment-message tw--text-lg tw--font-bold tw--leading-5",icon:"tw--mr-5 tw--h-6 tw--w-6 tw--rounded-full",spinningTexts:"tw--mx-10 tw--w-64 tw--shrink-0 tw--text-[16px] tw--leading-[1.63]",filmContainer:"js-msg-spin tw--flex tw--justify-center tw--overflow-hidden tw--text-center",film:"tw--animate-text-spin tw--flex tw--w-full tw--max-w-xs tw--translate-x-72"},variants:{theme:{light:{wrapper:"tw--shadow-light-card tw--bg-light-loader",dotsIn:"tw--bg-light-pale-dots tw--shadow-light-loading-dots tw--animate-light-shadow-dots",icon:"tw--bg-light-iota-dots",spinningTexts:"tw--text-light-zeta tw--opacity-60"},dark:{wrapper:"tw--shadow-dark-card tw--bg-dark-loader",dotsIn:"tw--bg-dark-pale-dots tw--shadow-dark-loading-dots tw--animate-dark-shadow-dots",icon:"tw--bg-dark-iota-dots",spinningTexts:"tw--text-dark-zeta tw--opacity-60"}}}}),ts=({text:e,onClick:t,e2e:n,disabled:o=!1})=>{const{themeId:a}=_(ae),u=_(h=>h.meta),f=_(h=>h.intentions.email.current),{btn:l}=Nn({theme:a});return X.useEffect(()=>{const h={eventType:ye.addToCart,systemType:u.systemType,utmParams:u.marketing.lastUtmParams,customerUuid:u.cid,email:f};Te(h),h.eventType=ye.priceSeen,Te(h)},[]),g.jsxs("button",{onClick:t,className:l(),disabled:o,type:"button","data-e2e":n,children:[g.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[g.jsx("path",{opacity:".3",d:"M4 12h16v6H4v-6zm0-6h16v2H4V6z",fill:"currentColor"}),g.jsx("path",{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z",fill:"currentColor"})]}),g.jsx("span",{children:e})]})},rs=({onClick:e})=>{const{base:t}=Zo();return g.jsx("button",{type:"button",className:t(),onClick:e,children:g.jsx("svg",{fill:"none",viewBox:"0 0 18 18",children:g.jsx("path",{d:"M13.725 4.282a.747.747 0 0 0-1.058 0L9 7.942 5.332 4.276a.748.748 0 1 0-1.057 1.057L7.942 9l-3.667 3.668a.748.748 0 1 0 1.057 1.057L9 10.057l3.667 3.668a.748.748 0 1 0 1.058-1.057L10.057 9l3.668-3.668a.752.752 0 0 0 0-1.05z",fill:"currentColor"})})})},ns=()=>{const{base:e,icon:t}=Qo();return g.jsxs("footer",{className:e(),children:[g.jsx("svg",{className:t(),fill:"none",height:"12",width:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("path",{d:"M9 4h-.5V3a2.5 2.5 0 0 0-5 0v1H3c-.55 0-1 .45-1 1v5c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zM6 8.5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zM7.55 4h-3.1V3c0-.855.695-1.55 1.55-1.55.855 0 1.55.695 1.55 1.55v1z",fill:"currentColor"})}),g.jsx("span",{children:"SSL Secure Connection"})]})},is=({config:e})=>{const{translations:t}=_(x=>x.config),{wrapper:n,left:o,leftTop:a,icon:u,text:f,bottom:l,right:h,price:b,info:w}=Ko();return g.jsx("header",{children:g.jsxs("div",{className:n(),children:[g.jsxs("span",{className:o(),children:[g.jsxs("div",{className:a(),children:[g.jsx("span",{className:u(),children:g.jsx("svg",{width:"26",height:"26",children:g.jsx("use",{xlinkHref:"/img/sprite.svg#secured-check"})})}),g.jsx("span",{className:f(),dangerouslySetInnerHTML:{__html:t.paymentHeaderTxt1}})]}),g.jsx("div",{className:l(),children:t.paymentHeaderTxt2})]}),g.jsxs("div",{className:h(),children:[g.jsx("div",{className:b(),children:e.price}),g.jsx("div",{className:w(),children:e.period})]})]})})},Mn=X.forwardRef((e,t)=>{const{link:n}=Nn(),{href:o,text:a,onClick:u,e2e:f=null}=e;return g.jsx("a",{className:n(),"data-e2e":f,href:o,onClick:u,ref:t,children:a})});Mn.displayName="Link";const os=({texts:e=[],title:t=""})=>{const{themeId:n}=_(ae),{wrapper:o,inner:a,dots:u,dotsIn:f,icon:l,progressCheckmark:h,panelTitle:b,spinningTexts:w,filmContainer:x,film:I}=es({theme:n});return g.jsxs("div",{className:o(),children:[g.jsx("div",{className:a(),children:g.jsx("div",{className:u(),children:g.jsx("span",{className:f()})})}),g.jsxs("div",{className:h(),children:[g.jsx("span",{className:l(),children:g.jsxs("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[g.jsx("circle",{cx:"12",cy:"12",r:"12"}),g.jsx("path",{d:"m9.75 15.127-2.602-2.602a.748.748 0 0 0-1.058 1.057l3.135 3.136a.747.747 0 0 0 1.058 0l7.935-7.935a.748.748 0 0 0-1.058-1.058l-7.41 7.402z",fill:"white"})]})}),g.jsx("p",{className:b(),children:t})]}),g.jsx("div",{className:x(),children:g.jsx("div",{className:I(),children:e.map(S=>g.jsx("div",{className:w(),children:S},S))})})]})},ss=({onClose:e})=>{const{displayPlanPrice:t,billingFrequencyTmsg:n}=_(f=>f.meta.pd),{translations:o,themeId:a}=_(f=>f.config),{base:u}=Xo({theme:a});return g.jsx("div",{className:u(),children:g.jsxs("div",{id:"chat-payment-view",className:"light-pink-blue tw--max-w-[500px] tw--bg-white tw--w-full tw--min-h-[400px] tw--relative tw--rounded-lg tw--flex tw--flex-col tw--p-7",children:[g.jsx(Jo,{children:g.jsx(os,{texts:o.loaderTexts,title:o.tm1224})}),g.jsx(rs,{onClick:e}),g.jsx("div",{id:"primer-form-container",className:"primer-theme tw--w-full h-full",children:g.jsx(is,{config:{price:t,period:n}})}),g.jsx(ns,{})]})})},as=oe({slots:{base:"tw--pt-10 tw--w-full tw--h-full tw--pb-5 tw--px-5 tw--overflow-y-scroll tw--flex tw--flex-col-reverse tw--translate-z-0",second:"tw--mt-0 tw--mb-auto",date:"tw--text-center tw--text-sm tw--pb-[5px] tw--opacity-40"},variants:{theme:{light:{base:"tw--text-light-zephyr-100 tw--font-medium"},dark:{base:"tw--text-dark-zephyr-100"}}}}),ls=oe({slots:{base:"tw--flex tw--flex-col tw--items-center tw--w-full tw--mx-auto tw--pt-5 tw--pb-10",title:"tw--pb-[30px] tw--max-w-[400px] tw--text-center tw--mx-[30px] select-none"},variants:{theme:{light:{title:"tw--font-medium"},dark:{title:""}}}}),cs=oe({slots:{base:"tw--grid tw--break-words"}}),us=oe({slots:{base:"after:tw--inline-block after:tw--ml-1 after:tw--h-4 after:tw--w-1 select-none"},variants:{isTyping:{true:"after:tw--animate-blink",false:"after:tw--hidden"},theme:{light:"after:tw--bg-light-zephyr-100",dark:"after:tw--bg-dark-zephyr-100"}}}),Un=oe({slots:{base:"tw--relative tw--max-w-[375px] tw--whitespace-pre-wrap tw--rounded-[20px] tw--mb-5 tw--space-y-5",action:"tw--absolute tw--bottom-[-16px] tw--right-[-10px]",separator:"tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--w-fit tw--ml-auto tw--mr-0"},variants:{theme:{light:{action:"tw--text-light-seraph",base:"tw--font-medium"},dark:{action:"tw--text-dark-seraph"}},type:{assistant:{base:"tw--justify-self-start"},user:{base:"tw--justify-self-end"}}},compoundSlots:[{slots:["base"],theme:"light",type:"assistant",class:"tw--bg-light-lumina tw--px-[15px] tw--py-[11px]"},{slots:["base"],theme:"dark",type:"assistant",class:"tw--bg-dark-lumina tw--px-[15px] tw--py-[11px]"},{slots:["separator"],theme:"dark",type:"user",class:"tw--bg-dark-seraph"},{slots:["separator"],theme:"light",type:"user",class:"tw--bg-light-seraph tw--text-white"}]}),fs=oe({slots:{dotFirst:"tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave",dotSecond:"tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay",dotThird:"tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay-2"},compoundSlots:[{slots:["dotFirst","dotSecond","dotThird"],theme:"light",class:"tw--bg-light-zephyr-100"},{slots:["dotFirst","dotSecond","dotThird"],theme:"dark",class:"tw--bg-dark-zephyr-100"}]}),ds=()=>{const{themeId:e}=_(ae),{dotFirst:t,dotSecond:n,dotThird:o}=fs({theme:e});return g.jsxs("div",{className:"tw--ml-7 tw--space-x-[6px]","data-e2e":"stream-response-loader",children:[g.jsx("span",{className:t()}),g.jsx("span",{className:n()}),g.jsx("span",{className:o()})]})},ps="chatSeen",Dn="linkClickedFromChat",hs="chatConversationFinishedTimeStamp",ms="cid",ws=1e3,zn="scroll-stop",Sr="support",gs=500,ys="/",bs=3e3,xs={transports:["websocket"],upgrade:!1,pingInterval:1e3*60*5,pingTimeout:1e3*60*3,secure:!0,reconnect:!0};de(),Q.assistant,new Date().getTime(),de(),Q.assistant,new Date().getTime(),de(),Q.assistant,new Date().getTime();const vs=(e,t)=>e.map(n=>{var a,u;const o=n.sequence===t.sequence&&n.type===t.type;return o&&n.type===Be.text&&t.text?{...n,text:n.text+t.text}:o&&n.type===Be.buttons&&((a=t==null?void 0:t.buttons)!=null&&a.length)&&((u=n==null?void 0:n.buttons)!=null&&u.length)?{...n,buttons:[...n.buttons,...t.buttons]}:n});function pe(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o3?t.i-4:t.i:Array.isArray(e)?1:kr(e)?2:Pr(e)?3:0}function Cr(e,t){return ht(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Es(e,t){return ht(e)===2?e.get(t):e[t]}function $n(e,t,n){var o=ht(e);o===2?e.set(t,n):o===3?e.add(n):e[t]=n}function Is(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function kr(e){return ks&&e instanceof Map}function Pr(e){return Ps&&e instanceof Set}function rt(e){return e.o||e.t}function _r(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Bs(e);delete t[Se];for(var n=Dr(t),o=0;o1&&(e.set=e.add=e.clear=e.delete=Ts),Object.freeze(e),t&&Ot(e,function(n,o){return jr(o,!0)},!0)),e}function Ts(){pe(2)}function Br(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function $e(e){var t=Rs[e];return t||pe(18,e),t}function Vn(){return Ee.process.env.NODE_ENV==="production"||mt||pe(0),mt}function Rr(e,t){t&&($e("Patches"),e.u=[],e.s=[],e.v=t)}function Yt(e){Ar(e),e.p.forEach(Ss),e.p=null}function Ar(e){e===mt&&(mt=e.l)}function qn(e){return mt={p:[],l:mt,h:e,m:!0,_:0}}function Ss(e){var t=e[Se];t.i===0||t.i===1?t.j():t.g=!0}function Fr(e,t){t._=t.p.length;var n=t.p[0],o=e!==void 0&&e!==n;return t.h.O||$e("ES5").S(t,e,o),o?(n[Se].P&&(Yt(t),pe(4)),tt(e)&&(e=Jt(t,e),t.l||Xt(t,e)),t.u&&$e("Patches").M(n[Se].t,e,t.u,t.s)):e=Jt(t,n,[]),Yt(t),t.u&&t.v(t.u,t.s),e!==Xn?e:void 0}function Jt(e,t,n){if(Br(t))return t;var o=t[Se];if(!o)return Ot(t,function(l,h){return Wn(e,o,t,l,h,n)},!0),t;if(o.A!==e)return t;if(!o.P)return Xt(e,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var a=o.i===4||o.i===5?o.o=_r(o.k):o.o,u=a,f=!1;o.i===3&&(u=new Set(a),a.clear(),f=!0),Ot(u,function(l,h){return Wn(e,o,a,l,h,n,f)}),Xt(e,a,!1),n&&e.u&&$e("Patches").N(o,n,e.u,e.s)}return o.o}function Wn(e,t,n,o,a,u,f){if(Ee.process.env.NODE_ENV!=="production"&&a===n&&pe(5),pt(a)){var l=Jt(e,a,u&&t&&t.i!==3&&!Cr(t.R,o)?u.concat(o):void 0);if($n(n,o,l),!pt(l))return;e.m=!1}else f&&n.add(a);if(tt(a)&&!Br(a)){if(!e.h.D&&e._<1)return;Jt(e,a),t&&t.A.l||Xt(e,a)}}function Xt(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&jr(t,n)}function Or(e,t){var n=e[Se];return(n?rt(n):e)[t]}function Gn(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var o=Object.getOwnPropertyDescriptor(n,t);if(o)return o;n=Object.getPrototypeOf(n)}}function Lr(e){e.P||(e.P=!0,e.l&&Lr(e.l))}function Nr(e){e.o||(e.o=_r(e.t))}function Mr(e,t,n){var o=kr(t)?$e("MapSet").F(t,n):Pr(t)?$e("MapSet").T(t,n):e.O?function(a,u){var f=Array.isArray(a),l={i:f?1:0,A:u?u.A:Vn(),P:!1,I:!1,R:{},l:u,t:a,k:null,o:null,j:null,C:!1},h=l,b=zr;f&&(h=[l],b=Lt);var w=Proxy.revocable(h,b),x=w.revoke,I=w.proxy;return l.k=I,l.j=x,I}(t,n):$e("ES5").J(t,n);return(n?n.A:Vn()).p.push(o),o}function Cs(e){return pt(e)||pe(22,e),function t(n){if(!tt(n))return n;var o,a=n[Se],u=ht(n);if(a){if(!a.P&&(a.i<4||!$e("ES5").K(a)))return a.t;a.I=!0,o=Hn(n,u),a.I=!1}else o=Hn(n,u);return Ot(o,function(f,l){a&&Es(a.t,f)===l||$n(o,f,t(l))}),u===3?new Set(o):o}(e)}function Hn(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return _r(e)}var Yn,mt,Ur=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",ks=typeof Map<"u",Ps=typeof Set<"u",Jn=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Xn=Ur?Symbol.for("immer-nothing"):((Yn={})["immer-nothing"]=!0,Yn),Kn=Ur?Symbol.for("immer-draftable"):"__$immer_draftable",Se=Ur?Symbol.for("immer-state"):"__$immer_state",_s={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},js=""+Object.prototype.constructor,Dr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Bs=Object.getOwnPropertyDescriptors||function(e){var t={};return Dr(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Rs={},zr={get:function(e,t){if(t===Se)return e;var n=rt(e);if(!Cr(n,t))return function(a,u,f){var l,h=Gn(u,f);return h?"value"in h?h.value:(l=h.get)===null||l===void 0?void 0:l.call(a.k):void 0}(e,n,t);var o=n[t];return e.I||!tt(o)?o:o===Or(e.t,t)?(Nr(e),e.o[t]=Mr(e.A.h,o,e)):o},has:function(e,t){return t in rt(e)},ownKeys:function(e){return Reflect.ownKeys(rt(e))},set:function(e,t,n){var o=Gn(rt(e),t);if(o!=null&&o.set)return o.set.call(e.k,n),!0;if(!e.P){var a=Or(rt(e),t),u=a==null?void 0:a[Se];if(u&&u.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(Is(n,a)&&(n!==void 0||Cr(e.t,t)))return!0;Nr(e),Lr(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return Or(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Nr(e),Lr(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=rt(e),o=Reflect.getOwnPropertyDescriptor(n,t);return o&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:o.enumerable,value:n[t]}},defineProperty:function(){pe(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){pe(12)}},Lt={};Ot(zr,function(e,t){Lt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Lt.deleteProperty=function(e,t){return Ee.process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&pe(13),Lt.set.call(this,e,t,void 0)},Lt.set=function(e,t,n){return Ee.process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&pe(14),zr.set.call(this,e[0],t,n,e[0])};var As=function(){function e(n){var o=this;this.O=Jn,this.D=!0,this.produce=function(a,u,f){if(typeof a=="function"&&typeof u!="function"){var l=u;u=a;var h=o;return function(j){var $=this;j===void 0&&(j=l);for(var P=arguments.length,M=Array(P>1?P-1:0),ue=1;ue1?w-1:0),I=1;I=0;a--){var u=o[a];if(u.path.length===0&&u.op==="replace"){n=u.value;break}}a>-1&&(o=o.slice(a+1));var f=$e("Patches").$;return pt(n)?f(n,o):this.produce(n,function(l){return f(l,o)})},e}(),Ce=new As,Fs=Ce.produce;Ce.produceWithPatches.bind(Ce),Ce.setAutoFreeze.bind(Ce),Ce.setUseProxies.bind(Ce),Ce.applyPatches.bind(Ce),Ce.createDraft.bind(Ce),Ce.finishDraft.bind(Ce);const wt=Fs,Zn=at.createSlice({name:"chat",initialState:dt,reducers:{setOutgoing(e,{payload:t}){e.outgoing={term:ut(Ze.chat),user_id:localStorage.getItem("__cid")||"",role:Q.user,message:t}},resetOutgoing(e){e.outgoing=dt.outgoing},setExistingHistory(e,{payload:t}){return wt(e,n=>{if(e.historyIds.length>=t.length){e.historyIds.filter(a=>!t.find(u=>u.id===a)).forEach(a=>n.historyData[a].content=n.historyData[a].content.map(u=>({...u,sent:!1,resend:!0})));return}n.historyIds=t.map(({id:o})=>o),n.historyData=t.reduce((o,a)=>({...o,[a.id]:a}),{})})},addPredefinedAssistantMessage(e,{payload:t}){const n=de();return wt(e,o=>{o.historyIds.push(n),o.historyData[n]={id:n,role:Q.assistant,content:[{type:Be.text,text:t.content,sequence:1},{type:Be.buttons,buttons:t.buttons||[],sequence:2}]}})},fillAssistantHistoryData(e,{payload:t}){return wt(e,n=>{const o=t.id;if(!n.historyData[o]){n.historyData[o]={id:o,role:Q.assistant,content:[]},n.historyIds.push(o);return}if(!t.content)return;const a=t.content.type,u={sequence:t.sequence||1,type:a,[a]:t.content[t.content.type]};if(n.historyData[o].content.some(l=>l.sequence===u.sequence&&l.type===u.type)){n.historyData[o].content=vs(n.historyData[o].content,u);return}n.historyData[o].content.push(u)})},fillUserHistoryData(e,{payload:{id:t,content:n}}){return wt(e,o=>{let a;if(n.groupId&&Object.entries(o.historyData).forEach(([u,f])=>{f.content.find(l=>l.groupId===n.groupId)&&(a=u)}),a){o.historyData[a].content.push(n);return}o.historyData[t]||(o.historyData[t]={id:t,role:Q.user,content:[n]},o.historyIds.push(t))})},fillInitialMessage(e,{payload:t}){e.historyIds.push(t.id),e.historyData[t.id]={id:t.id,role:Q.assistant,time:new Date().getTime(),content:t.content}},setIsLoading(e){e.isLoading=!0},resetIsLoading(e){e.isLoading=dt.isLoading},setTypingTimeoutExpired(e,{payload:t}){e.typingTimeoutExpired=t},setConnected(e,{payload:t}){e.connected=t},setClosed(e){e.closed=!0},hideResendIcon(e,{payload:t}){return wt(e,n=>{n.historyData[t.itemId].content=n.historyData[t.itemId].content.map(o=>({...o,sent:!0,resend:!1}))})},showResendIcon(e,{payload:t}){return wt(e,n=>{n.historyData[t.itemId].content=n.historyData[t.itemId].content.map(o=>({...o,sent:!1,resend:!0}))})},setLastGroupPointer(e,{payload:t}){e.lastGroupId=t},resendMessage(e,{payload:t}){},setError(e,{payload:t}){e.error=t},resetError(e){e.error=dt.error},setIsStreaming(e,{payload:t}){e.isStreaming=t},resetHistory(e){e.historyIds=dt.historyIds,e.historyData=dt.historyData}}}),Kt=e=>e.chat,Os=e=>e.chat.historyIds.find(t=>e.chat.historyData[t].role===Q.user),Ls=(e,t)=>e.sequence-t.sequence,{setOutgoing:$r,resetOutgoing:Ns,setExistingHistory:Ms,addPredefinedAssistantMessage:Qn,setIsLoading:Zt,resetIsLoading:Nt,setLastGroupPointer:Us,setTypingTimeoutExpired:ei,setError:Qt,resetError:Vr,setConnected:ti,setClosed:er,hideResendIcon:Ds,showResendIcon:ri,resendMessage:ni,setIsStreaming:qr,fillAssistantHistoryData:ii,fillUserHistoryData:tr,resetHistory:zs,fillInitialMessage:$s}=Zn.actions,Vs=Zn.reducer,oi=at.createSlice({name:"intentions",initialState:to,reducers:{setEmail(e,{payload:t}){e.email.current=t},setEmailSuccess(e,{payload:t}){e.email.success=t},setEmailError(e,{payload:t}){e.email.error=t},setIsEmailLoading(e,{payload:t}){e.email.isLoading=t},setIsPaymentButtonVisible(e,{payload:t}){e.payment.isButtonVisible=t},setPaymentFormVisibility(e,{payload:t}){e.payment.isFormVisible=t},setIsPaymentSuccessful(e,{payload:t}){e.payment.isSuccessful=t},setPaymentIntentError(e,{payload:t}){e.payment.error=t},setLink(e,{payload:t}){e.link=t}}}),si=e=>e.intentions.email,qs=e=>e.intentions.payment,{setEmailSuccess:Ws,setIsPaymentSuccessful:Gs,setPaymentFormVisibility:Hs,setEmailError:ai,setIsEmailLoading:Wr,setIsPaymentButtonVisible:Ys,setPaymentIntentError:Js,setEmail:Xs,setLink:li}=oi.actions,Ks=oi.reducer,Zs=()=>{var k;const{cid:e,systemType:t,marketing:n,pd:o}=_(jt),{translations:a,purpose:u,specialUrls:f}=_(ae),{isLoading:l,isStreaming:h}=_(Kt),{error:b}=_(C=>C.chat),w=_(C=>C.intentions.link),{error:x,current:I}=_(si),{isFormVisible:S,error:R,isSuccessful:j}=_(qs),P={systemType:t,marketing:n,error:b||x||R,cid:e,isLoading:l,currentEmail:I,translations:a,pd:o,isStreaming:h,isPaymentButtonVisible:!1,isPaymentFormVisible:!1,isEmailFormVisible:!1,isResponseFormVisible:!1,ctaText:"",ctaHref:""},{historyData:M,historyIds:ue}=_(Kt),be=[...ue].pop(),A=be&&M[be],we=A&&A.role===Q.assistant,xe=we&&w,Fe=!(A&&(A!=null&&A.content.find(C=>C.buttons))),ke=A&&(A==null?void 0:A.content.find(C=>C.payment)),Oe=A&&(A==null?void 0:A.content.find(C=>C.email));if(we&&ke)return{...P,isPaymentButtonVisible:!0};if(we&&Oe)return{...P,isEmailFormVisible:!0,isPaymentFormVisible:S};if(j)return{...P,ctaText:a.ctaTextContent,ctaHref:"/",isPaymentFormVisible:S};const he=A&&((k=A==null?void 0:A.content)==null?void 0:k.find(C=>C.special));if(we&&he&&(he!=null&&he.special))return{...P,ctaText:f[he.special].includes("merchant")?a.merchantButton:a.supportButton,ctaHref:f[he.special]};if(xe&&u===Sr)return{...P,isResponseFormVisible:!0};const T=A&&!xe&&!l&&(Fe||(A==null?void 0:A.role)===Q.user);return{...P,ctaText:a.mealButton,ctaHref:xe,isResponseFormVisible:T}};var Gr={exports:{}},gt=typeof Reflect=="object"?Reflect:null,ci=gt&&typeof gt.apply=="function"?gt.apply:function(t,n,o){return Function.prototype.apply.call(t,n,o)},rr;gt&&typeof gt.ownKeys=="function"?rr=gt.ownKeys:Object.getOwnPropertySymbols?rr=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:rr=function(t){return Object.getOwnPropertyNames(t)};function Qs(e){console&&console.warn&&console.warn(e)}var ui=Number.isNaN||function(t){return t!==t};function J(){J.init.call(this)}Gr.exports=J,Gr.exports.once=na,J.EventEmitter=J,J.prototype._events=void 0,J.prototype._eventsCount=0,J.prototype._maxListeners=void 0;var fi=10;function nr(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(J,"defaultMaxListeners",{enumerable:!0,get:function(){return fi},set:function(e){if(typeof e!="number"||e<0||ui(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");fi=e}}),J.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},J.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||ui(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function di(e){return e._maxListeners===void 0?J.defaultMaxListeners:e._maxListeners}J.prototype.getMaxListeners=function(){return di(this)},J.prototype.emit=function(t){for(var n=[],o=1;o0&&(f=n[0]),f instanceof Error)throw f;var l=new Error("Unhandled error."+(f?" ("+f.message+")":""));throw l.context=f,l}var h=u[t];if(h===void 0)return!1;if(typeof h=="function")ci(h,this,n);else for(var b=h.length,w=gi(h,b),o=0;o0&&f.length>a&&!f.warned){f.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+f.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=f.length,Qs(l)}return e}J.prototype.addListener=function(t,n){return pi(this,t,n,!1)},J.prototype.on=J.prototype.addListener,J.prototype.prependListener=function(t,n){return pi(this,t,n,!0)};function ea(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function hi(e,t,n){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=ea.bind(o);return a.listener=n,o.wrapFn=a,a}J.prototype.once=function(t,n){return nr(n),this.on(t,hi(this,t,n)),this},J.prototype.prependOnceListener=function(t,n){return nr(n),this.prependListener(t,hi(this,t,n)),this},J.prototype.removeListener=function(t,n){var o,a,u,f,l;if(nr(n),a=this._events,a===void 0)return this;if(o=a[t],o===void 0)return this;if(o===n||o.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete a[t],a.removeListener&&this.emit("removeListener",t,o.listener||n));else if(typeof o!="function"){for(u=-1,f=o.length-1;f>=0;f--)if(o[f]===n||o[f].listener===n){l=o[f].listener,u=f;break}if(u<0)return this;u===0?o.shift():ta(o,u),o.length===1&&(a[t]=o[0]),a.removeListener!==void 0&&this.emit("removeListener",t,l||n)}return this},J.prototype.off=J.prototype.removeListener,J.prototype.removeAllListeners=function(t){var n,o,a;if(o=this._events,o===void 0)return this;if(o.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):o[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete o[t]),this;if(arguments.length===0){var u=Object.keys(o),f;for(a=0;a=0;a--)this.removeListener(t,n[a]);return this};function mi(e,t,n){var o=e._events;if(o===void 0)return[];var a=o[t];return a===void 0?[]:typeof a=="function"?n?[a.listener||a]:[a]:n?ra(a):gi(a,a.length)}J.prototype.listeners=function(t){return mi(this,t,!0)},J.prototype.rawListeners=function(t){return mi(this,t,!1)},J.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):wi.call(e,t)},J.prototype.listenerCount=wi;function wi(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}J.prototype.eventNames=function(){return this._eventsCount>0?rr(this._events):[]};function gi(e,t){for(var n=new Array(t),o=0;o{const{themeId:o}=_(ae),{base:a}=sa({theme:o});return g.jsx("button",{onClick:t,className:a(),type:"button","data-e2e":n,children:e})},ir=({children:e,outlined:t=!1,onClick:n,e2e:o=null,disabled:a=!1})=>{const{themeId:u}=_(ae),{base:f}=aa({theme:u,outlined:t});return g.jsx("button",{onClick:n,className:f(),"data-e2e":o,disabled:a,type:"button",children:e})},ca=oe({slots:{base:"tw--relative tw--flex tw--items-center",input:"tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] focus:tw--outline-none",loader:"tw--absolute tw--right-4 tw--top-[50%] tw--translate-y-[-50%]",spin:"tw--block tw--w-6 tw--h-6 tw--border-solid tw--border-[5px] tw--rounded-3xl tw--animate-rotate tw--m-auto"},variants:{theme:{light:{base:"",input:"tw--bg-light-lumina tw--text-light-zephyr-100 tw--font-semibold focus:!tw--bg-light-lumina",loader:"",spin:"tw--border-light-zephyr-200 tw--border-t-light-zephyr-600 tw--border-l-light-zephyr-600"},dark:{base:"",input:"tw--bg-dark-lumina tw--text-dark-zephyr-100 tw--font-bold focus:!tw--bg-dark-lumina",loader:"",spin:"w--border-dark-zephyr-200 tw--border-t-dark-zephyr-600 tw--border-l-dark-zephyr-600"}}}}),Hr=X.forwardRef((e,t)=>{const{disabled:n,e2e:o,isLoading:a,onChange:u,onKeyUp:f,placeholder:l,type:h,value:b}=e,{themeId:w}=_(ae),{base:x,input:I,loader:S,spin:R}=ca({theme:w});return g.jsxs("div",{className:x(),children:[g.jsx("input",{className:I(),"data-e2e":o,disabled:a||n,onChange:u,onKeyUp:f,placeholder:l,ref:t,type:h,value:b}),a&&g.jsx("span",{className:S(),children:g.jsx("span",{className:R()})})]})});Hr.displayName="Input";const ua=()=>{const e=Ge(),t=_(S=>S.meta),{themeId:n,translations:o}=_(ae),{isLoading:a}=_(si),{base:u,input:f,button:l}=Ln({theme:n}),[h,b]=X.useState(""),w=X.useRef(null);X.useEffect(()=>{Te({eventType:ye.emailField,systemType:t.systemType,utmParams:t.marketing.lastUtmParams,customerUuid:t.cid}),setTimeout(()=>{w.current&&w.current.focus()},500)});const x=S=>{const R=S.target.value.trim();b(R)},I=S=>{S.preventDefault(),h!==""&&(e(Wr(!0)),e(Xs(h)),Ae.core.emit(Ae.type.email,{email:h}),b(""))};return g.jsxs("form",{className:u(),onSubmit:I,"data-e2e":"email-form",children:[g.jsx("div",{className:f(),children:g.jsx(Hr,{e2e:"email-input",isLoading:a,name:"email",onChange:x,ref:w,placeholder:o.emailPlaceholder,type:"email",value:h})}),g.jsx("div",{className:l(),children:g.jsx(ir,{onClick:I,e2e:"email-validate-btn",children:g.jsx("svg",{fill:"currentColor",viewBox:"0 0 24 24",width:"20px",height:"20px",children:g.jsx("path",{d:"M16.6915026,12.4744748 L3.50612381,13.2599618 C3.19218622,13.2599618 3.03521743,13.4170592 3.03521743,13.5741566 L1.15159189,20.0151496 C0.8376543,20.8006365 0.99,21.89 1.77946707,22.52 C2.41,22.99 3.50612381,23.1 4.13399899,22.8429026 L21.714504,14.0454487 C22.6563168,13.5741566 23.1272231,12.6315722 22.9702544,11.6889879 C22.8132856,11.0605983 22.3423792,10.4322088 21.714504,10.118014 L4.13399899,1.16346272 C3.34915502,0.9 2.40734225,1.00636533 1.77946707,1.4776575 C0.994623095,2.10604706 0.8376543,3.0486314 1.15159189,3.99121575 L3.03521743,10.4322088 C3.03521743,10.5893061 3.34915502,10.7464035 3.50612381,10.7464035 L16.6915026,11.5318905 C16.6915026,11.5318905 17.1624089,11.5318905 17.1624089,12.0031827 C17.1624089,12.4744748 16.6915026,12.4744748 16.6915026,12.4744748 Z"})})})})]})},fa=()=>{const e=Ge(),{themeId:t}=_(ae),{connected:n,isLoading:o}=_(Kt),{base:a,input:u,button:f}=Ln({theme:t}),[l,h]=X.useState(""),[b,w]=X.useState(null),x=_($=>$.chat.lastGroupId),I=X.useRef(null);X.useEffect(()=>{setTimeout(()=>{var $;($=I.current)==null||$.focus()},500)},[]);const S=$=>{h($.target.value),j()},R=$=>{$.preventDefault(),l.trim()&&e(tr({role:Q.user,id:de(),sequence:1,content:{sequence:1,message:l,groupId:x,resend:!1,sent:!0}})),h(""),j()},j=()=>{b&&clearTimeout(b);const $=setTimeout(()=>{e(ei(!0)),e(Us(de()))},bs);w($)};return g.jsxs("form",{className:a(),onSubmit:R,"data-e2e":"user-form",children:[g.jsx("div",{className:u(),children:g.jsx(Hr,{disabled:!n,isLoading:o,e2e:"message-input",name:"response",onChange:S,placeholder:"Write your message here...",type:"response",value:l,ref:I})}),g.jsx("div",{className:f(),children:g.jsx(ir,{onClick:R,disabled:!n,children:g.jsx("svg",{fill:"currentColor",viewBox:"0 0 24 24",width:"20px",height:"20px",children:g.jsx("path",{d:"M16.6915026,12.4744748 L3.50612381,13.2599618 C3.19218622,13.2599618 3.03521743,13.4170592 3.03521743,13.5741566 L1.15159189,20.0151496 C0.8376543,20.8006365 0.99,21.89 1.77946707,22.52 C2.41,22.99 3.50612381,23.1 4.13399899,22.8429026 L21.714504,14.0454487 C22.6563168,13.5741566 23.1272231,12.6315722 22.9702544,11.6889879 C22.8132856,11.0605983 22.3423792,10.4322088 21.714504,10.118014 L4.13399899,1.16346272 C3.34915502,0.9 2.40734225,1.00636533 1.77946707,1.4776575 C0.994623095,2.10604706 0.8376543,3.0486314 1.15159189,3.99121575 L3.03521743,10.4322088 C3.03521743,10.5893061 3.34915502,10.7464035 3.50612381,10.7464035 L16.6915026,11.5318905 C16.6915026,11.5318905 17.1624089,11.5318905 17.1624089,12.0031827 C17.1624089,12.4744748 16.6915026,12.4744748 16.6915026,12.4744748 Z"})})})})]})},da=()=>{const e=Ge(),t=Zs(),n=X.useRef(null),[o,a]=X.useState(!1),u=x=>{e(Hs(x))};X.useEffect(()=>{t.isEmailFormVisible&&Te({eventType:ye.emailField,systemType:t.systemType,utmParams:t.marketing.lastUtmParams,customerUuid:t.cid,email:t.currentEmail})},[t.isEmailFormVisible]);const f=x=>{x.currentTarget.disabled=!0,Ae.core.emit(Ae.type.destroy),u(!1),a(!1)},l=()=>{e(Qn({content:t.translations.tm1226})),e(Gs(!0)),e(Ys(!1)),u(!1),Te({eventType:ye.linkProvided,systemType:t.systemType,utmParams:t.marketing.lastUtmParams,customerUuid:t.cid,email:t.currentEmail}),setTimeout(()=>{n.current&&n.current.click()},7e3)},h=x=>{e(Js(x))},b=()=>{Ae.core.emit(Ae.type.payment,{setIsPaymentContainerVisible:u,onPaymentSuccess:l,onError:h}),a(!0)},w=x=>{localStorage.setItem(Dn,x.currentTarget.href),Te({eventType:ye.linkClicked,systemType:t.systemType,utmParams:t.marketing.lastUtmParams,customerUuid:t.cid,email:t.currentEmail}),e(er())};return g.jsxs("div",{className:"tw--space-y-[11px] tw--pb-[11px]","data-e2e":"chat-foot",children:[t.error&&g.jsx("div",{"data-e2e":"error-message",className:"tw--pl-[35px] tw--text-[#ff0043] tw--font-medium",children:t.error}),t.isPaymentFormVisible&&g.jsx(ss,{onClose:f}),t.isLoading&&g.jsx(ds,{}),t.ctaHref&&g.jsx(Mn,{ref:n,text:t.ctaText,onClick:w,href:t.ctaHref,e2e:"quiz-trigger-btn"}),!t.isStreaming&&t.isEmailFormVisible&&g.jsx(ua,{}),!t.isStreaming&&t.isResponseFormVisible&&g.jsx(fa,{}),t.isPaymentButtonVisible&&g.jsx(ts,{text:t.translations.payButton,onClick:b,disabled:o,e2e:"payment-form-trigger-btn"})]})},pa=oe({slots:{base:"tw--flex tw--items-center tw--select-none",avatar:"tw--rounded-full",info:"",name:"",role:"",imgWrapper:"",minimized:""},variants:{theme:{light:{role:""},dark:{role:""}},orientation:{horizontal:{base:"tw--flex-row tw--text-left",avatar:"tw--shrink",name:"tw--text-xl/7 tw--font-bold tw--leading-[30px]",info:"tw--pl-[10px]"},vertical:{base:"tw--flex-col tw--text-center",name:"tw--text-[24px] tw--font-semibold"}},minimized:{true:"",false:""}},compoundSlots:[{slots:["role"],orientation:"vertical",theme:"light",class:"tw--text-light-zephyr-600 tw--font-medium"},{slots:["role"],orientation:"horizontal",theme:"light",class:"tw--text-light-zephyr-800"},{slots:["role"],orientation:"vertical",theme:"dark",class:"tw--text-dark-zephyr-600"},{slots:["role"],orientation:"horizontal",theme:"dark",class:"tw--text-dark-zephyr-800"},{slots:["imgWrapper"],orientation:"horizontal",minimized:!1,class:"tw--relative tw--h-fit after:tw--absolute after:tw--w-[10px] after:tw--h-[10px] after:tw--bottom-[-2px] after:tw--left-[37px] after:tw--z-10 after:tw--rounded-full after:tw--bg-light-iota-dots"},{slots:["avatar"],orientation:"horizontal",minimized:!1,class:"tw--h-[50px]"},{slots:["avatar"],orientation:"vertical",minimized:!1,class:"tw--h-[60px]"}]}),bi=({orientation:e=gr.horizontal,minimized:t=!1})=>{const{aiProfile:n,themeId:o}=_(ae),{base:a,avatar:u,info:f,name:l,role:h,imgWrapper:b}=pa({theme:o,orientation:e,minimized:t});return g.jsxs("div",{className:a(),children:[g.jsx("span",{className:b(),children:g.jsx("img",{className:u(),src:n.imgSrc,alt:"img"})}),g.jsxs("div",{className:f(),children:[g.jsx("div",{className:l(),children:n.name}),g.jsx("div",{className:h(),children:n.role})]})]})},ha=()=>{const e=Ge(),t=fo(),{base:n}=Go({theme:t.theme}),o=a=>{a.currentTarget.disabled=!0,Te({eventType:ye.closeClicked,systemType:t.systemType,utmParams:t.marketing.lastUtmParams,customerUuid:t.cid}),setTimeout(()=>{e(er())},gs)};return g.jsxs("div",{className:n(),"data-e2e":"chat-heading",children:[g.jsx(bi,{}),t.closeVisible&&g.jsx(ir,{e2e:"chat-close-btn",onClick:o,children:g.jsx("svg",{height:"24px",viewBox:"0 0 24 24",width:"24px",children:g.jsxs("g",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[g.jsx("line",{x1:"6",x2:"18",y1:"6",y2:"18"}),g.jsx("line",{x1:"6",x2:"18",y1:"18",y2:"6"})]})})})]})},ma=e=>{const t=o=>/[?&]([^=#]+)=([^&#]*)/g.test(o);let n;if(window.location.search){const o=new URLSearchParams(window.location.search);o.append(ps,"true"),o.append(ms,localStorage.getItem("__cid")||""),n=`/?${o}`}else n="";return t(e)?e:e+n},wa=({properties:e})=>{const{purpose:t}=_(ae),{cid:n,marketing:o,systemType:a}=_(jt),u=Ge(),f=e.href?ma(e.href):"#";X.useEffect(()=>{u(li(f))});const l=h=>{t!==Sr&&localStorage.setItem(Dn,h.currentTarget.href),Te({eventType:ye.linkClicked,systemType:a,utmParams:o.lastUtmParams,customerUuid:n}),u(er())};return g.jsx("a",{href:f,onClick:l,className:"tw--underline",children:e.href})},ga=e=>{const n=/embed\/(\w+)/.exec(e);return n?n[1]:null},ya=X.memo(function({url:t,title:n}){const[o,a]=X.useState(!1),u=ga(t),f=()=>{a(!0)};return o?g.jsx("iframe",{className:"w-full tw--h-80 tw--py-4",title:n||"Missing title",src:`${t}?enablejsapi=1&rel=0&origin=${window.location.origin}`,allow:"fullscreen"}):g.jsx("div",{className:"w-full tw--h-80 tw--py-4 tw--justify-center tw--flex tw--items-center tw--pointer-events-auto",onClick:f,style:{backgroundImage:`url(https://img.youtube.com/vi/${u}/hqdefault.jpg)`},children:g.jsx("button",{className:"tw--items-center tw--justify-center tw--w-16 tw--h-16 tw--rounded-full tw--cursor-pointer tw--pointer-events-auto tw--flex tw--bg-gradient-to-b tw--from-[#FF0000] tw--to-[#F25640]",children:g.jsx("svg",{className:"tw--pointer-events-none",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("path",{d:"M10.6665 9.09335V22.9067C10.6665 23.96 11.8265 24.6 12.7198 24.0267L23.5732 17.12C23.7632 16.9998 23.9197 16.8334 24.0282 16.6364C24.1366 16.4394 24.1935 16.2182 24.1935 15.9933C24.1935 15.7685 24.1366 15.5473 24.0282 15.3503C23.9197 15.1533 23.7632 14.9869 23.5732 14.8667L12.7198 7.97335C12.5187 7.84327 12.2862 7.76989 12.0469 7.76094C11.8076 7.75199 11.5702 7.8078 11.36 7.92249C11.1497 8.03718 10.9743 8.20649 10.8523 8.41257C10.7302 8.61864 10.666 8.85384 10.6665 9.09335V9.09335Z",fill:"white"})})})})}),ba=oe({slots:{base:"tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none tw--text-center"},variants:{theme:{light:{base:"tw--inline-block tw--bg-light-glaze tw--text-white"},dark:{base:"tw--inline-block tw--bg-dark-glazeBg tw--text-dark-glazeText"}}}});oe({slots:{base:"tw--flex-1 tw--px-4 tw--py-2"}});const xa=({text:e,href:t,onClick:n})=>{const{themeId:o}=_(ae),{base:a}=ba({theme:o});return g.jsx("a",{href:t,onClick:n,className:a(),children:e})},va=({options:e=[]})=>{const t=Ge(),n=_(jt),o=!_(Os),a=(f,l)=>{t(tr({id:de(),sequence:1,role:Q.user,content:{sequence:1,message:f,resend:!1,sent:!0,groupId:""}})),t($r(f)),o&&Te({eventType:ye.buttonClick+l,systemType:n.systemType,utmParams:n.marketing.lastUtmParams,customerUuid:n.cid})},u=f=>{t(tr({id:de(),sequence:1,role:Q.user,content:{sequence:1,message:f,resend:!1,sent:!0,groupId:""}}))};return[...e].sort((f,l)=>f.sequence-l.sequence).map(({value:f,link:l,sequence:h,noStream:b})=>l?g.jsx(xa,{text:f,href:l},de()):g.jsx(la,{text:f,onClick:b?()=>u(f):()=>a(f,h),e2e:"option-button"},de()))},Ea=({message:e,itemId:t})=>{const{themeId:n}=_(ae),{isStreaming:o}=_(Kt),{pd:a}=_(jt),u=_(h=>h.chat.historyIds.length-1===h.chat.historyIds.indexOf(t)),{base:f}=us({isTyping:o&&u,theme:n}),l=[...e.content].sort(Ls);return g.jsx(g.Fragment,{children:l.map(h=>{var b,w,x,I;if(h.type===Be.text)return g.jsx("div",{className:"tw--flex tw--flex-col tw--space-y-[10px]",children:g.jsx("span",{className:f(),children:g.jsx(Fi,{components:{a(S){return g.jsx(wa,{properties:S})}},children:h[h.type]})})},de());if(h.type===Be.buttons&&u)return g.jsx("div",{className:"tw--flex tw--flex-col tw--space-y-[10px]",children:g.jsx(va,{options:h[h.type]})},de());if(h.type===Be.video)return g.jsx(ya,{title:((b=h[h.type])==null?void 0:b.title)||"video",url:((w=h[h.type])==null?void 0:w.url)||"https://www.youtube.com/embed/g4B8Dhl4pxY"},de());if(h.type===Be.image)return g.jsx("img",{className:"w-full tw--h-auto tw--py-4",src:(x=h[h.type])==null?void 0:x.url,alt:((I=h[h.type])==null?void 0:I.alt)||"chat-image"},de());if(h.type===Be.payment)return`${h[h.type]} ${a.displayPlanPrice} ${a.billingFrequencyTmsg}`;if(h.type===Be.email)return h[h.type]})})},Ia=X.memo(Ea),Ta=({itemId:e})=>{const{themeId:t}=_(ae),n=_(o=>o.chat.historyData[e]);return n&&g.jsx("div",{className:Un({theme:t,type:n.role}).base(),"data-e2e":n.role===Q.assistant?"stream-assistant-msg":"user-msg",children:n.role===Q.assistant?g.jsx(Ia,{message:n,itemId:e}):[...n.content].map(o=>g.jsx(Pa,{record:{...o,itemId:e}},de()))})},Sa=X.memo(Ta),Ca=({titleTxt:e})=>{const{themeId:t}=_(ae),{base:n,title:o}=ls({theme:t});return g.jsxs("div",{className:n(),children:[o&&g.jsx("div",{className:o(),children:e}),g.jsx(bi,{orientation:gr.vertical})]})},ka=()=>{const{themeId:e}=_(ae),{aiProfile:t}=_(ae),n=_(b=>b.chat.historyIds||[]),o=_(b=>b.chat.historyData[n[0]]),{base:a,second:u,date:f}=as({theme:e}),{base:l}=cs({theme:e}),h=eo((o==null?void 0:o.time)||new Date().getTime());return g.jsx("div",{className:a(),children:g.jsxs("div",{className:u(),"data-e2e":"history-container",children:[g.jsx(Ca,{titleTxt:t.welcome}),g.jsx("div",{className:f(),"data-e2e":"stream-assistant-msg-date",children:h}),n.map(b=>g.jsx("div",{className:l(),"data-e2e":"history-item",children:g.jsx(Sa,{itemId:b})},de()))]})})},Pa=({record:e})=>{const t=Ge(),{themeId:n}=_(ae),{action:o,separator:a}=Un({theme:n,type:Q.user}),u=()=>{t(ni(e))};return g.jsxs("div",{className:a(),children:[g.jsx("span",{children:e.message}),e.resend&&!e.sent&&g.jsx("div",{className:o(),children:g.jsx(ir,{outlined:!0,onClick:()=>u(),children:g.jsxs("svg",{fill:"currentColor",viewBox:"0 0 24 24",width:"20px",height:"20px",children:[g.jsx("path",{fill:"none",d:"M0 0h24v24H0V0z"}),g.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"})]})})})]})},_a=({config:e})=>{const t=Ge();return t(oo(e.meta)),t(ro(e.app.purpose)),t(no(e.specialUrls)),t(gn(e.app)),g.jsx(Ho,{head:g.jsx(ha,{}),stream:g.jsx(ka,{}),foot:g.jsx(da,{})})};var Yr={},Jr={};Jr.__esModule=!0,Jr.default=Ra;function or(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?or=function(n){return typeof n}:or=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},or(e)}function Xr(){}var ja={getItem:Xr,setItem:Xr,removeItem:Xr};function Ba(e){if((typeof self>"u"?"undefined":or(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return Ee.process.env.NODE_ENV!=="production"&&console.warn("redux-persist ".concat(e," test failed, persistence will be disabled.")),!1}return!0}function Ra(e){var t="".concat(e,"Storage");return Ba(t)?self[t]:(Ee.process.env.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),ja)}Yr.__esModule=!0,Yr.default=Oa;var Aa=Fa(Jr);function Fa(e){return e&&e.__esModule?e:{default:e}}function Oa(e){var t=(0,Aa.default)(e);return{getItem:function(o){return new Promise(function(a,u){a(t.getItem(o))})},setItem:function(o,a){return new Promise(function(u,f){u(t.setItem(o,a))})},removeItem:function(o){return new Promise(function(a,u){a(t.removeItem(o))})}}}var xi=void 0,La=Na(Yr);function Na(e){return e&&e.__esModule?e:{default:e}}var Ma=(0,La.default)("local");xi=Ma;const Ua=e=>t=>{const n=o=>{var f;const{meta:a}=e.getState(),u={};return a.pd&&typeof o=="object"&&"billingOptionType"in o?(o.billingFrequencyTmsg=o.billingOptionType==="one-time"?a.pd.oneTimer:(f=a.pd.subscriberBillingFrequency)==null?void 0:f.replace("{1}",o.frequencyInMonths),o={...o,...u},o):u};return Ae.core.on(Ae.type.emailSuccess,()=>{const{meta:o,intentions:a}=e.getState();e.dispatch(Wr(!1)),e.dispatch(ai("")),e.dispatch(tr({id:de(),role:Q.user,sequence:1,content:{sequence:1,message:a.email.current,resend:!1,sent:!0,groupId:""}})),e.dispatch($r(a.email.current)),e.dispatch(Ws(!0)),Te({eventType:ye.emailEntered,systemType:o.systemType,utmParams:o.marketing.lastUtmParams,customerUuid:o.cid,email:a.email.current})}),Ae.core.on(Ae.type.emailError,o=>{const{meta:a,intentions:u,config:f}=e.getState(),{tm716:l,tm526:h,tm715:b,tm505:w}=f.translations;if(e.dispatch(Wr(!1)),o.status===409){e.dispatch(Qn({content:l,buttons:[{sequence:1,id:"opt-1",text:h,value:h,link:o.data.buttonLink,noStream:!0},{sequence:2,id:"opt-2",text:b,value:b,link:"",noStream:!0}]})),Te({eventType:ye.emailExist,systemType:a.systemType,utmParams:a.marketing.lastUtmParams,customerUuid:a.cid,email:u.email.current});return}o.status===422&&(e.dispatch(ai(o.errors.email[0]||w)),Te({eventType:ye.emailWrong,systemType:a.systemType,utmParams:a.marketing.lastUtmParams,customerUuid:a.cid,email:u.email.current}))}),vi("marketing",e,so),vi("__pd",e,ao,n),o=>{if(li.match(o)&&o.payload){const{meta:a,intentions:u}=e.getState();Te({eventType:ye.linkProvided,systemType:a.systemType,utmParams:a.marketing.lastUtmParams,customerUuid:a.cid,email:u.email.current})}t(o)}},vi=(e,t,n,o)=>{const a=setInterval(()=>{let u=localStorage.getItem(e)||"";try{u=JSON.parse(u)}catch{u=localStorage.getItem(e)||""}o&&u&&(u=o(u)),o&&u&&(t.dispatch(n(u)),clearInterval(a))},ws)};let ce;const Da=e=>t=>n=>{const{meta:o,chat:a,config:u}=e.getState(),f=()=>{const{config:w}=e.getState();e.dispatch(Nt()),e.dispatch(Qt(w.translations.error))},l=()=>{e.dispatch(ri({itemId:a.historyIds.pop()})),f()},h=w=>{if(w.role===Q.user&&e.dispatch(Zt()),ce&&ce.connected&&w.message.trim()!==""){ce.emit(_e.chat,{time:new Date().getTime(),...w},Ei(l)),e.dispatch(Vr());return}l()},b=w=>{e.dispatch(Ds(w)),e.dispatch(Zt());const x=()=>{const{config:I}=e.getState();e.dispatch(ri(w)),e.dispatch(Nt()),e.dispatch(Qt(I.translations.error))};ce!=null&&ce.connected&&w.message.trim()!==""?(ce.volatile.emit(_e.chat,{role:Q.user,message:w.message,term:ut(Ze.chat),user_id:o.cid,region:o.region},Ei(x)),e.dispatch(Vr())):x()};if($r.match(n)&&h({role:Q.user,message:n.payload,term:ut(Ze.chat),user_id:o.cid,region:o.region,messageId:[...a.historyIds].pop()}),er.match(n)){const w=document.querySelector("#chatbot-container");document.body&&w&&u.purpose!==Sr&&(w.innerHTML="",document.body.classList.remove(zn)),localStorage.setItem(hs,new Date().getTime().toString()),ce&&ce.close(),window.location.href=u.close.href||ys}if(ei.match(n)&&n.payload){const w=[...a.historyIds].pop(),x=a.historyData[w].content.map(({message:I})=>I).join(` -`);x.trim()!==""&&h({role:Q.user,message:x,term:ut(Ze.chat),user_id:o.cid,region:o.region,messageId:w})}if(ni.match(n)&&b(n.payload),!gn.match(n))return t(n);e.dispatch(Zt()),ce=Oi.io.connect(n.payload.chatUrl,{query:`cid=${o.cid}`,...xs}),ce.on(_e.connect,()=>{const{meta:w}=e.getState();ce.sendBuffer=[],ce.emit(_e.chatHistory,{user_id:w.cid,region:w.region,term:ut(Ze.chat)}),e.dispatch(ti(!0))}),ce.on(_e.chatHistory,({history:w,errors:x,region:I})=>{e.dispatch(Nt()),e.dispatch(qr(!1)),e.dispatch(lo(I));const{config:S,meta:R}=e.getState();if(x.length){e.dispatch(Qt(x[0]));return}if(w.length){e.dispatch(Ms(w));return}e.dispatch(zs()),e.dispatch(Zt());let j=0;S.aiProfile.initialMessage.forEach(($,P,M)=>{j+=1e3,setTimeout(()=>{e.dispatch($s($)),M.length===P+1&&(S.aiProfile.initialMessage.forEach(ue=>h({role:Q.assistant,term:ut(Ze.chat),user_id:R.cid,message:JSON.stringify(ue.content),messageId:ue.id,region:R.region})),e.dispatch(Nt()))},j)})}),ce.on(_e.streamStart,({id:w})=>{e.dispatch(qr(!0)),e.dispatch(Nt()),e.dispatch(Ns()),e.dispatch(Vr()),e.dispatch(ii({id:w}))}),ce.on(_e.streamData,w=>{var x;e.dispatch(ii({id:w.id,sequence:w.sequence,content:{type:w.type,[w.type]:w[w.type],sequence:w.sequence}})),(x=w.errors)!=null&&x.length&&!a.error&&e.dispatch(Qt(w.errors[0]))}),ce.on(_e.streamEnd,()=>{e.dispatch(qr(!1))}),ce.on(_e.streamError,f),ce.on(_e.error,f),ce.on(_e.disconnect,()=>{e.dispatch(ti(!1))}),t(n)},Ei=(e,t=5e3)=>{let n=!1;const o=setTimeout(()=>{n||(n=!0,e())},t);return()=>{n||(n=!0,clearTimeout(o))}},za={key:"root",storage:xi,whitelist:["chat","meta","config"]},Ii=at.configureStore({reducer:rn.persistReducer(za,at.combineReducers({meta:co,config:io,chat:Vs,intentions:Ks})),middleware:e=>e({serializableCheck:!1}).concat(Da,Ua)}),$a=rn.persistStore(Ii);let Ti=!1;const Si=e=>{Ti||(Ti=!0,Pt.createRoot(e.root).render(g.jsx(cr.Provider,{store:Ii,children:g.jsx(pn,{persistor:$a,children:g.jsx(_a,{config:e.initialConfig})})})),document.body.classList.add(zn))};me.ReactBotClient=Si,me.default=Si,me.intent=Ae,Object.defineProperties(me,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); +Check the top-level render call using <`+E+">.")}return v}}function ji(d,v){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var E=qa(v);if(_i[E])return;_i[E]=!0;var k="";d&&d._owner&&d._owner!==Qr.current&&(k=" It was passed a child from "+_(d._owner.type)+"."),Tt(d),N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,k),Tt(null)}}function ki(d,v){{if(typeof d!="object")return;if(xe(d))for(var E=0;E",M=" Did you accidentally export a JSX literal instead of a component?"):ae=typeof d,N("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ae,M)}var ue=H(d,v,E,W,X);if(ue==null)return ue;if(D){var je=v.children;if(je!==void 0)if(k)if(xe(je)){for(var St=0;St(e.text="text",e.buttons="buttons",e.payment="payment",e.video="video",e.image="image",e.email="email",e))(ke||{}),yr=(e=>(e.horizontal="horizontal",e.vertical="vertical",e))(yr||{}),Ke=(e=>(e.chat="utm_chat",e))(Ke||{}),ye=(e=>(e.addToCart="AddToCart",e.contact="Contact",e.initiateCheckout="InitiateCheckout",e.pageView="PageView",e.viewContent="ViewContent",e.purchase="Purchase",e.subscribe="Subscribe",e.recurringSubscriptionPayment="RecurringSubscriptionPayment",e.cancelSubscription="CancelSubscription",e.purchaseFailed="PurchaseFailed",e.subscribeFailed="SubscribeFailed",e.recurringSubscriptionPaymentFailed="RecurringSubscriptionPaymentFailed",e.customerCreated="CustomerCreated",e.subscriptionChargeback="SubscriptionChargeback",e.subscriptionRefund="SubscriptionRefund",e.transactionChargeback="TransactionChargeback",e.transactionRefund="TransactionRefund",e.firstMessage="FirstMessage",e.linkProvided="LinkProvided",e.linkClicked="LinkClicked",e.emailField="EmailField",e.emailEntered="EmailEntered",e.emailWrong="EmailWrong",e.emailExist="EmailExist",e.priceSeen="PriceSeen",e.buttonClick="ButtonClick",e.closeClicked="CloseClicked",e))(ye||{}),hn=(e=>(e.email="email_intent",e.payment="payment_intent",e.emailError="email_validation_error",e.emailSuccess="email_validation_success",e.destroy="payment_intent_destroy",e))(hn||{}),Z=(e=>(e.user="user",e.assistant="assistant",e))(Z||{}),_e=(e=>(e.chat="chat",e.chatHistory="chat-history",e.connect="connect",e.error="error",e.disconnect="disconnect",e.streamStart="stream-start",e.streamData="stream-data",e.streamEnd="stream-end",e.streamError="stream-error",e))(_e||{}),mn=(e=>(e.light="light",e.dark="dark",e))(mn||{});const ut=e=>new URLSearchParams(window.location.search).get(e)||"",Qi={day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"numeric"};function eo(e,t=Qi){return`${new Date(e).toLocaleDateString([],t)}`.toUpperCase()}function fe(){const e=new Array(36);for(let t=0;t<36;t++)e[t]=Math.floor(Math.random()*16);return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",e.map(t=>t.toString(16)).join("")}const ft={cid:"",eid:"",region:"",systemType:"",pd:{},marketing:{screen:{},lastUtmParams:{},utmParams:{}}},De={aiProfile:{name:"",role:"",imgSrc:"",welcome:"",initialMessage:[]},close:{href:null,visible:!1},translations:{},themeId:mn.light,chatUrl:"",enableDevTools:!1,isPluginMode:!1,purpose:"default",specialUrls:{}},dt={outgoing:{term:"",user_id:"",role:Z.user,message:""},historyData:{},historyIds:[],error:"",isLoading:!1,typingTimeoutExpired:!1,lastGroupId:fe(),connected:!1,closed:!1,isStreaming:!1},to={email:{current:"",success:!1,error:!1,isLoading:!1},response:{isFormVisible:!1,error:!1},payment:{isButtonVisible:!1,isFormVisible:!1,isSuccessful:!1,error:!1},messaging:{isVisible:!1},link:""},wn=at.createSlice({name:"config",initialState:De,reducers:{setConfig(e,{payload:t}){e.aiProfile={...De.aiProfile,...t.aiProfile},e.translations={...De.translations,...t.translations},e.close={...De.close,...t.close},e.themeId=t.themeId,e.chatUrl=t.chatUrl,e.purpose=t.purpose},setSpecialUrls(e,{payload:t}){e.specialUrls={...e.specialUrls,...t}},setPurpose(e,{payload:t}){e.purpose=t},resetConfig(e){e.aiProfile=De.aiProfile,e.themeId=De.themeId,e.translations=De.translations,e.chatUrl=De.chatUrl},setTheme(e,{payload:t}){e.themeId=t},resetTheme(e){e.themeId=De.themeId},setDevToolsStatus(e,{payload:t}){e.enableDevTools=t},resetDevToolsStatus(e){e.enableDevTools=De.enableDevTools},togglePluginMode(e){e.isPluginMode=!e.isPluginMode},setTranslations(e,{payload:t}){e.translations={...e.translations,...t}}}}),Ze=e=>e.config,{setConfig:yn,resetConfig:Za,setTheme:Qa,resetTheme:ec,setDevToolsStatus:tc,resetDevToolsStatus:rc,togglePluginMode:nc,setTranslations:ic,setPurpose:ro,setSpecialUrls:no}=wn.actions,io=wn.reducer,gn=at.createSlice({name:"meta",initialState:ft,reducers:{setMeta(e,{payload:t}){e.cid=t.cid,e.eid=t.eid,e.systemType=t.systemType,e.pd={...e.pd,...t.pd},e.marketing={...e.marketing,...t.marketing}},resetMeta(e){e.pd=ft.pd,e.cid=ft.cid,e.eid=ft.eid,e.systemType=ft.systemType,e.marketing=ft.marketing},setMarketing(e,{payload:t}){e.marketing={...e.marketing,...t}},setPd(e,{payload:t}){e.pd={...e.pd,...t}},setRegion(e,{payload:t}){e.region=t}}}),kt=e=>e.meta,{setMeta:oo,resetMeta:oc,setMarketing:so,setPd:ao,setRegion:co}=gn.actions,lo=gn.reducer,We=lr.useDispatch,z=lr.useSelector,uo=()=>{const[e,t]=J.useState([0,0]);return J.useLayoutEffect(()=>{function i(){t([window.innerWidth,window.innerHeight])}return window.addEventListener("resize",i),i(),()=>window.removeEventListener("resize",i)},[]),e},fo=()=>{const{themeId:e,close:t}=z(Ze),{cid:i,systemType:o,marketing:c}=z(kt);return{theme:e,closeVisible:t.visible,cid:i,systemType:o,marketing:c}};var bn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ee=e=>!e||typeof e!="object"||Object.keys(e).length===0,po=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function xn(e,t){e.forEach(function(i){Array.isArray(i)?xn(i,t):t.push(i)})}function vn(e){let t=[];return xn(e,t),t}var En=(...e)=>vn(e).filter(Boolean),In=(e,t)=>{let i={},o=Object.keys(e),c=Object.keys(t);for(let u of o)if(c.includes(u)){let f=e[u],a=t[u];typeof f=="object"&&typeof a=="object"?i[u]=In(f,a):Array.isArray(f)||Array.isArray(a)?i[u]=En(a,f):i[u]=a+" "+f}else i[u]=e[u];for(let u of c)o.includes(u)||(i[u]=t[u]);return i},Tn=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function ho(){for(var e=0,t,i,o="";ee&&(t=0,o=i,i=new Map)}return{get:function(f){var a=i.get(f);if(a!==void 0)return a;if((a=o.get(f))!==void 0)return c(f,a),a},set:function(f,a){i.has(f)?i.set(f,a):c(f,a)}}}var jn="!";function vo(e){var t=e.separator||":",i=t.length===1,o=t[0],c=t.length;return function(f){for(var a=[],h=0,x=0,y,b=0;bx?y-x:void 0;return{modifiers:a,hasImportantModifier:O,baseClassName:C,maybePostfixModifierPosition:oe}}}function Eo(e){if(e.length<=1)return e;var t=[],i=[];return e.forEach(function(o){var c=o[0]==="[";c?(t.push.apply(t,i.sort().concat([o])),i=[]):i.push(o)}),t.push.apply(t,i.sort()),t}function Io(e){return{cache:xo(e.cacheSize),splitModifiers:vo(e),...mo(e)}}var To=/\s+/;function So(e,t){var i=t.splitModifiers,o=t.getClassGroupId,c=t.getConflictingClassGroupIds,u=new Set;return e.trim().split(To).map(function(f){var a=i(f),h=a.modifiers,x=a.hasImportantModifier,y=a.baseClassName,b=a.maybePostfixModifierPosition,I=o(b?y.substring(0,b):y),P=!!b;if(!I){if(!b)return{isTailwindClass:!1,originalClassName:f};if(I=o(y),!I)return{isTailwindClass:!1,originalClassName:f};P=!1}var O=Eo(h).join(":"),C=x?O+jn:O;return{isTailwindClass:!0,modifierId:C,classGroupId:I,originalClassName:f,hasPostfixModifier:P}}).reverse().filter(function(f){if(!f.isTailwindClass)return!0;var a=f.modifierId,h=f.classGroupId,x=f.hasPostfixModifier,y=a+h;return u.has(y)?!1:(u.add(y),c(h,x).forEach(function(b){return u.add(a+b)}),!0)}).reverse().map(function(f){return f.originalClassName}).join(" ")}function xr(){for(var e=arguments.length,t=new Array(e),i=0;i1?t-1:0),o=1;oe||void 0,At=(...e)=>Fn(vn(e).filter(Boolean).join(" ")),Ir=null,Ht={},Tr=!1,Ft=(...e)=>t=>t.twMerge?((!Ir||Tr)&&(Tr=!1,Ir=Ee(Ht)?Vo:$o(Ht)),Fn(Ir(At(e)))):At(e),On=(e,t)=>{for(let i in t)e.hasOwnProperty(i)?e[i]=At(e[i],t[i]):e[i]=t[i];return e},ie=(e,t)=>{let{extend:i=null,slots:o={},variants:c={},compoundVariants:u=[],compoundSlots:f=[],defaultVariants:a={}}=e,h={...qo,...t},x=i!=null&&i.base?At(i.base,e==null?void 0:e.base):e==null?void 0:e.base,y=i!=null&&i.variants&&!Ee(i.variants)?In(c,i.variants):c,b=i!=null&&i.defaultVariants&&!Ee(i.defaultVariants)?{...i.defaultVariants,...a}:a;!Ee(h.twMergeConfig)&&!po(h.twMergeConfig,Ht)&&(Tr=!0,Ht=h.twMergeConfig);let I=Ee(i==null?void 0:i.slots),P=Ee(o)?{}:{base:At(e==null?void 0:e.base,I&&(i==null?void 0:i.base)),...o},O=I?P:On({...i==null?void 0:i.slots},Ee(P)?{base:e==null?void 0:e.base}:P),C=j=>{if(Ee(y)&&Ee(o)&&I)return Ft(x,j==null?void 0:j.class,j==null?void 0:j.className)(h);if(u&&!Array.isArray(u))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof u}`);if(f&&!Array.isArray(f))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`);let N=(T,_,S=[],A)=>{let F=S;if(typeof _=="string")F=F.concat(Tn(_).split(" ").map(U=>`${T}:${U}`));else if(Array.isArray(_))F=F.concat(_.reduce((U,V)=>U.concat(`${T}:${V}`),[]));else if(typeof _=="object"&&typeof A=="string"){for(let U in _)if(_.hasOwnProperty(U)&&U===A){let V=_[U];if(V&&typeof V=="string"){let G=Tn(V);F[A]?F[A]=F[A].concat(G.split(" ").map(re=>`${T}:${re}`)):F[A]=G.split(" ").map(re=>`${T}:${re}`)}else Array.isArray(V)&&V.length>0&&(F[A]=V.reduce((G,re)=>G.concat(`${T}:${re}`),[]))}}return F},le=(T,_=y,S=null,A=null)=>{var F;let U=_[T];if(!U||Ee(U))return null;let V=(F=A==null?void 0:A[T])!=null?F:j==null?void 0:j[T];if(V===null)return null;let G=bn(V),re=Array.isArray(h.responsiveVariants)&&h.responsiveVariants.length>0||h.responsiveVariants===!0,$=b==null?void 0:b[T],q=[];if(typeof G=="object"&&re)for(let[He,nt]of Object.entries(G)){let Ye=U[nt];if(He==="initial"){$=nt;continue}Array.isArray(h.responsiveVariants)&&!h.responsiveVariants.includes(He)||(q=N(He,Ye,q,S))}let ne=U[G]||U[bn($)];return typeof q=="object"&&typeof S=="string"&&q[S]?On(q,ne):q.length>0?(q.push(ne),q):ne},ge=()=>y?Object.keys(y).map(T=>le(T,y)):null,B=(T,_)=>{if(!y||typeof y!="object")return null;let S=new Array;for(let A in y){let F=le(A,y,T,_),U=T==="base"&&typeof F=="string"?F:F&&F[T];U&&(S[S.length]=U)}return S},me={};for(let T in j)j[T]!==void 0&&(me[T]=j[T]);let be=(T,_)=>{var S;let A=typeof(j==null?void 0:j[T])=="object"?{[T]:(S=j[T])==null?void 0:S.initial}:{};return{...b,...me,...A,..._}},Ae=(T=[],_)=>{let S=[];for(let{class:A,className:F,...U}of T){let V=!0;for(let[G,re]of Object.entries(U)){let $=be(G,_);if(Array.isArray(re)){if(!re.includes($[G])){V=!1;break}}else if($[G]!==re){V=!1;break}}V&&(A&&S.push(A),F&&S.push(F))}return S},Ce=T=>{let _=Ae(u,T),S=Ae(i==null?void 0:i.compoundVariants,T);return En(S,_)},Fe=T=>{let _=Ce(T);if(!Array.isArray(_))return _;let S={};for(let A of _)if(typeof A=="string"&&(S.base=Ft(S.base,A)(h)),typeof A=="object")for(let[F,U]of Object.entries(A))S[F]=Ft(S[F],U)(h);return S},pe=T=>{if(f.length<1)return null;let _={};for(let{slots:S=[],class:A,className:F,...U}of f){if(!Ee(U)){let V=!0;for(let G of Object.keys(U)){let re=be(G,T)[G];if(re===void 0||(Array.isArray(U[G])?!U[G].includes(re):U[G]!==re)){V=!1;break}}if(!V)continue}for(let V of S)_[V]=_[V]||[],_[V].push([A,F])}return _};if(!Ee(o)||!I){let T={};if(typeof O=="object"&&!Ee(O))for(let _ of Object.keys(O))T[_]=S=>{var A,F;return Ft(O[_],B(_,S),((A=Fe(S))!=null?A:[])[_],((F=pe(S))!=null?F:[])[_],S==null?void 0:S.class,S==null?void 0:S.className)(h)};return T}return Ft(x,ge(),Ce(),j==null?void 0:j.class,j==null?void 0:j.className)(h)},oe=()=>{if(!(!y||typeof y!="object"))return Object.keys(y)};return C.variantKeys=oe(),C.extend=i,C.base=x,C.slots=O,C.variants=y,C.defaultVariants=b,C.compoundSlots=f,C.compoundVariants=u,C};const Wo=ie({slots:{base:"tw--flex tw--self-stretch tw--justify-self-stretch tw--items-stretch tw--justify-center tw--overflow-hidden tw--h-full tw--bg-lumina",wrapper:"tw--flex tw--flex-col tw--w-full md:tw--max-w-[800px] tw--max-h-screen tw--h-full tw--bg-whisper tw--text-zephyr-100"},variants:{minimized:{true:"tw--fixed tw--right-0 tw--bottom-0 tw--max-h-[700px] tw--max-w-md"}}}),Go=ie({slots:{base:"tw--flex tw--px-5 tw--py-[11px] tw--shadow-[-1px_2px_5px_0] tw--shadow-zephyr-200"}}),Ln=ie({slots:{base:"tw--flex tw--items-center tw--flex-wrap tw--px-5 tw--mt-[11px]",input:"tw--flex-1 tw--pr-2",button:"tw--flex tw--grow-0"}}),Ho=({head:e,stream:t,foot:i})=>{const{themeId:o,isPluginMode:c}=z(Ze),{base:u,wrapper:f}=Wo(),a=uo();return w.jsx("div",{"data-e2e":"base-container",style:{height:`${a[1]}px`},className:u({minimized:c})+" "+o,children:w.jsxs("div",{className:f(),children:[e,t,i]})})},Yo=ie({slots:{base:"loader js-payment-loader tw--hidden tw--fixed tw--left-0 tw--top-0 tw--z-[101] tw--m-0 tw--flex tw--h-screen tw--w-screen tw--items-center tw--justify-center tw--px-5 tw--bg-whisper"}}),Jo=({children:e})=>{const{base:t}=Yo();return w.jsx("div",{className:t(),children:e})},Ie=({eventType:e,systemType:t,utmParams:i,customerUuid:o,email:c,phone:u})=>{if(window.trackEventInGTM&&window.tracking){const f=window.tracking.event({eventType:e,systemType:t,uri:window.location.pathname,domain:window.location.hostname,customerUuid:o,email:c||null,phone:u||null,additionalData:{},utmParams:i});window.tracking.trackClient(f),window.trackEventInGTM&&window.trackEventInGTM(f)}};window.tracking=window.tracking||null,window.trackEventInGTM=window.trackEventInGTM||null;const Nn=ie({slots:{btn:"tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-bold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--text-xl max-h-[46px] tw--mb-[11px] customXs:max-h-[52px]",link:"tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-extrabold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--mb-[11px] spaced-letters max-h-[46px] customXs:max-h-[52px] customXs:tw--max-w-xs customXs:te--text-[20px] customXs:tw--text-xl"}}),Xo=ie({slots:{base:"tw--absolute tw--top-0 tw--left-0 tw--w-full tw--h-screen tw--flex tw--flex-col tw--justify-center tw--items-center tw--px-5 tw--z-50 tw--bg-lumina"}}),Ko=ie({slots:{wrapper:"tw--flex tw--justify-between tw--w-full tw--mb-7",left:"tw--flex tw--flex-col",leftTop:"tw--flex tw--flex-row",icon:"tw--pr-[5px] tw--mr-[5px] tw--flex tw--items-center tw--border-r tw--border-r-[#cacadb]",text:"tw--flex tw--flex-col tw--justify-center tw--text-left tw--text-[10px] tw--leading-[1] tw--text-muted-blue",bottom:"tw--opacity-60 tw--text-[10px] tw--leading-[2] tw--text-muted-blue",right:"tw--flex tw--flex-col tw--items-end",price:"tw--text-[#21bb5a] tw--font-bold tw--leading-[1.4] tw--text-[20px]",info:"tw--leading-[2] tw--text-[10px] tw--text-muted-blue"}}),Zo=ie({slots:{base:"tw--absolute tw--top-[-30px] tw--right-[-10px] tw--w-6 tw--h-6 tw--p-1 tw--bg-white tw--rounded-full tw--cursor-pointer tw--text-muted-blue"}}),Qo=ie({slots:{base:"tw--mt-[30px] tw--flex tw--items-center tw--justify-center tw--text-[12.8px] tw--leading-[1.56] tw--text-[#21bb5a] tw--font-bold",icon:"tw--mr-[5px]"}}),es=ie({slots:{wrapper:"loader js-payment-loader tw--max-w-[335px] tw--overflow-hidden tw--relative tw--flex tw--w-full tw--flex-col tw--items-center tw--justify-center tw--rounded-xl tw--p-5 tw--shadow-card tw--bg-loader",inner:"tw--absolute tw--left-0 tw--top-8 tw--flex tw--h-8 tw--w-full tw--items-center tw--justify-center",dots:"tw--relative tw--flex tw--items-center tw--justify-center tw--p-3",dotsIn:"tw--relative tw--mx-auto tw--my-4 tw--box-content tw--block tw--h-4 tw--w-4 tw--rounded-full tw--bg-pale-dots tw--shadow-loading-dots tw--animate-shadow-dots",progressCheckmark:"tw--mb-6 tw--mt-24 tw--box-border tw--flex tw--w-full tw--items-center tw--justify-center tw--text-center",panelTitle:"js-payment-message tw--text-lg tw--font-bold tw--leading-5",icon:"tw--mr-5 tw--h-6 tw--w-6 tw--rounded-full tw--bg-iota-dots",spinningTexts:"tw--mx-10 tw--w-64 tw--shrink-0 tw--text-[16px] tw--leading-[1.63] tw--opacity-60",filmContainer:"js-msg-spin tw--flex tw--justify-center tw--overflow-hidden tw--text-center",film:"tw--animate-text-spin tw--flex tw--w-full tw--max-w-xs tw--translate-x-72"}}),ts=({text:e,onClick:t,e2e:i,disabled:o=!1})=>{const c=z(a=>a.meta),u=z(a=>a.intentions.email.current),{btn:f}=Nn();return J.useEffect(()=>{const a={eventType:ye.addToCart,systemType:c.systemType,utmParams:c.marketing.lastUtmParams,customerUuid:c.cid,email:u};Ie(a),a.eventType=ye.priceSeen,Ie(a)},[]),w.jsxs("button",{onClick:t,className:f(),disabled:o,type:"button","data-e2e":i,children:[w.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[w.jsx("path",{opacity:".3",d:"M4 12h16v6H4v-6zm0-6h16v2H4V6z",fill:"currentColor"}),w.jsx("path",{d:"M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z",fill:"currentColor"})]}),w.jsx("span",{children:e})]})},rs=({onClick:e})=>{const{base:t}=Zo();return w.jsx("button",{type:"button",className:t(),onClick:e,children:w.jsx("svg",{fill:"none",viewBox:"0 0 18 18",children:w.jsx("path",{d:"M13.725 4.282a.747.747 0 0 0-1.058 0L9 7.942 5.332 4.276a.748.748 0 1 0-1.057 1.057L7.942 9l-3.667 3.668a.748.748 0 1 0 1.057 1.057L9 10.057l3.667 3.668a.748.748 0 1 0 1.058-1.057L10.057 9l3.668-3.668a.752.752 0 0 0 0-1.05z",fill:"currentColor"})})})},ns=()=>{const{base:e,icon:t}=Qo();return w.jsxs("footer",{className:e(),children:[w.jsx("svg",{className:t(),fill:"none",height:"12",width:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("path",{d:"M9 4h-.5V3a2.5 2.5 0 0 0-5 0v1H3c-.55 0-1 .45-1 1v5c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zM6 8.5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zM7.55 4h-3.1V3c0-.855.695-1.55 1.55-1.55.855 0 1.55.695 1.55 1.55v1z",fill:"currentColor"})}),w.jsx("span",{children:"SSL Secure Connection"})]})},is=({config:e})=>{const{translations:t}=z(b=>b.config),{wrapper:i,left:o,leftTop:c,icon:u,text:f,bottom:a,right:h,price:x,info:y}=Ko();return w.jsx("header",{children:w.jsxs("div",{className:i(),children:[w.jsxs("span",{className:o(),children:[w.jsxs("div",{className:c(),children:[w.jsx("span",{className:u(),children:w.jsx("svg",{width:"26",height:"26",children:w.jsx("use",{xlinkHref:"/img/sprite.svg#secured-check"})})}),w.jsx("span",{className:f(),dangerouslySetInnerHTML:{__html:t.paymentHeaderTxt1}})]}),w.jsx("div",{className:a(),children:t.paymentHeaderTxt2})]}),w.jsxs("div",{className:h(),children:[w.jsx("div",{className:x(),children:e.price}),w.jsx("div",{className:y(),children:e.period})]})]})})},Mn=J.forwardRef((e,t)=>{const{link:i}=Nn(),{href:o,text:c,onClick:u,e2e:f=null}=e;return w.jsx("a",{className:i(),"data-e2e":f,href:o,onClick:u,ref:t,children:c})});Mn.displayName="Link";const os=({texts:e=[],title:t=""})=>{const{wrapper:i,inner:o,dots:c,dotsIn:u,icon:f,progressCheckmark:a,panelTitle:h,spinningTexts:x,filmContainer:y,film:b}=es();return w.jsxs("div",{className:i(),children:[w.jsx("div",{className:o(),children:w.jsx("div",{className:c(),children:w.jsx("span",{className:u()})})}),w.jsxs("div",{className:a(),children:[w.jsx("span",{className:f(),children:w.jsxs("svg",{width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[w.jsx("circle",{cx:"12",cy:"12",r:"12"}),w.jsx("path",{d:"m9.75 15.127-2.602-2.602a.748.748 0 0 0-1.058 1.057l3.135 3.136a.747.747 0 0 0 1.058 0l7.935-7.935a.748.748 0 0 0-1.058-1.058l-7.41 7.402z",fill:"white"})]})}),w.jsx("p",{className:h(),children:t})]}),w.jsx("div",{className:y(),children:w.jsx("div",{className:b(),children:e.map(I=>w.jsx("div",{className:x(),children:I},I))})})]})},ss=({onClose:e})=>{const{displayPlanPrice:t,billingFrequencyTmsg:i}=z(u=>u.meta.pd),{translations:o}=z(u=>u.config),{base:c}=Xo();return w.jsx("div",{className:c(),children:w.jsxs("div",{id:"chat-payment-view",className:"light-pink-blue tw--max-w-[500px] tw--bg-white tw--w-full tw--min-h-[400px] tw--relative tw--rounded-lg tw--flex tw--flex-col tw--p-7",children:[w.jsx(Jo,{children:w.jsx(os,{texts:o.loaderTexts,title:o.tm1224})}),w.jsx(rs,{onClick:e}),w.jsx("div",{id:"primer-form-container",className:"h-full primer-theme tw--w-full",children:w.jsx(is,{config:{price:t,period:i}})}),w.jsx(ns,{})]})})},as=ie({slots:{base:"tw--pt-10 tw--w-full tw--h-full tw--pb-5 tw--px-5 tw--overflow-y-scroll tw--flex tw--flex-col-reverse tw--translate-z-0 tw--text-zephyr-100 tw--font-density-different tw--mt-0 tw--mb-auto",second:"tw--mt-0 tw--mb-auto",date:"tw--text-center tw--text-sm tw--pb-[5px] tw--opacity-40"}}),cs=ie({slots:{base:"tw--flex tw--flex-col tw--items-center tw--w-full tw--mx-auto tw--pt-5 tw--pb-10",title:"tw--pb-[30px] tw--max-w-[400px] tw--text-center tw--mx-[30px] select-none tw--font-density-different"}}),ls=ie({slots:{base:"tw--grid tw--break-words"}}),us=ie({slots:{base:"after:tw--inline-block after:tw--ml-1 after:tw--h-4 after:tw--w-1 select-none after:tw--bg-zephyr-100"},variants:{isTyping:{true:"after:tw--animate-blink",false:"after:tw--hidden"}}}),Un=ie({slots:{base:"tw--relative tw--max-w-[375px] tw--whitespace-pre-wrap tw--rounded-[20px] tw--mb-5 tw--space-y-5 tw--font-density-different",action:"tw--absolute tw--bottom-[-16px] tw--right-[-10px] tw--text-seraph",separator:"tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--w-fit tw--ml-auto tw--mr-0"},compoundSlots:[{slots:["base"],type:"assistant",class:"tw--bg-lumina tw--px-[15px] tw--py-[11px]"},{slots:["base"],type:"user",class:"tw--justify-self-end"},{slots:["separator"],type:"user",class:"tw--bg-seraph tw--text-white"}]}),fs=ie({slots:{dotFirst:"tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave tw--bg-zephyr-100",dotSecond:"tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay tw--bg-zephyr-100",dotThird:"tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay-2 tw--bg-zephyr-100"}}),ds=()=>{const{dotFirst:e,dotSecond:t,dotThird:i}=fs();return w.jsxs("div",{className:"tw--ml-7 tw--space-x-[6px]","data-e2e":"stream-response-loader",children:[w.jsx("span",{className:e()}),w.jsx("span",{className:t()}),w.jsx("span",{className:i()})]})},ps="chatSeen",Dn="linkClickedFromChat",hs="chatConversationFinishedTimeStamp",ms="cid",ws=1e3,zn="scroll-stop",Sr="support",ys=500,gs="/",bs=3e3,xs={transports:["websocket"],upgrade:!1,pingInterval:1e3*60*5,pingTimeout:1e3*60*3,secure:!0,reconnect:!0};fe(),Z.assistant,new Date().getTime(),fe(),Z.assistant,new Date().getTime(),fe(),Z.assistant,new Date().getTime();const vs=(e,t)=>e.map(i=>{var c,u;const o=i.sequence===t.sequence&&i.type===t.type;return o&&i.type===ke.text&&t.text?{...i,text:i.text+t.text}:o&&i.type===ke.buttons&&((c=t==null?void 0:t.buttons)!=null&&c.length)&&((u=i==null?void 0:i.buttons)!=null&&u.length)?{...i,buttons:[...i.buttons,...t.buttons]}:i});function de(e){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o3?t.i-4:t.i:Array.isArray(e)?1:Pr(e)?2:_r(e)?3:0}function Cr(e,t){return ht(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Es(e,t){return ht(e)===2?e.get(t):e[t]}function $n(e,t,i){var o=ht(e);o===2?e.set(t,i):o===3?e.add(i):e[t]=i}function Is(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Pr(e){return Ps&&e instanceof Map}function _r(e){return _s&&e instanceof Set}function rt(e){return e.o||e.t}function jr(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Bs(e);delete t[Te];for(var i=Dr(t),o=0;o1&&(e.set=e.add=e.clear=e.delete=Ts),Object.freeze(e),t&&Ot(e,function(i,o){return kr(o,!0)},!0)),e}function Ts(){de(2)}function Br(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ze(e){var t=Rs[e];return t||de(18,e),t}function Vn(){return ve.process.env.NODE_ENV==="production"||mt||de(0),mt}function Rr(e,t){t&&(ze("Patches"),e.u=[],e.s=[],e.v=t)}function Yt(e){Ar(e),e.p.forEach(Ss),e.p=null}function Ar(e){e===mt&&(mt=e.l)}function qn(e){return mt={p:[],l:mt,h:e,m:!0,_:0}}function Ss(e){var t=e[Te];t.i===0||t.i===1?t.j():t.g=!0}function Fr(e,t){t._=t.p.length;var i=t.p[0],o=e!==void 0&&e!==i;return t.h.O||ze("ES5").S(t,e,o),o?(i[Te].P&&(Yt(t),de(4)),tt(e)&&(e=Jt(t,e),t.l||Xt(t,e)),t.u&&ze("Patches").M(i[Te].t,e,t.u,t.s)):e=Jt(t,i,[]),Yt(t),t.u&&t.v(t.u,t.s),e!==Xn?e:void 0}function Jt(e,t,i){if(Br(t))return t;var o=t[Te];if(!o)return Ot(t,function(a,h){return Wn(e,o,t,a,h,i)},!0),t;if(o.A!==e)return t;if(!o.P)return Xt(e,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var c=o.i===4||o.i===5?o.o=jr(o.k):o.o,u=c,f=!1;o.i===3&&(u=new Set(c),c.clear(),f=!0),Ot(u,function(a,h){return Wn(e,o,c,a,h,i,f)}),Xt(e,c,!1),i&&e.u&&ze("Patches").N(o,i,e.u,e.s)}return o.o}function Wn(e,t,i,o,c,u,f){if(ve.process.env.NODE_ENV!=="production"&&c===i&&de(5),pt(c)){var a=Jt(e,c,u&&t&&t.i!==3&&!Cr(t.R,o)?u.concat(o):void 0);if($n(i,o,a),!pt(a))return;e.m=!1}else f&&i.add(c);if(tt(c)&&!Br(c)){if(!e.h.D&&e._<1)return;Jt(e,c),t&&t.A.l||Xt(e,c)}}function Xt(e,t,i){i===void 0&&(i=!1),!e.l&&e.h.D&&e.m&&kr(t,i)}function Or(e,t){var i=e[Te];return(i?rt(i):e)[t]}function Gn(e,t){if(t in e)for(var i=Object.getPrototypeOf(e);i;){var o=Object.getOwnPropertyDescriptor(i,t);if(o)return o;i=Object.getPrototypeOf(i)}}function Lr(e){e.P||(e.P=!0,e.l&&Lr(e.l))}function Nr(e){e.o||(e.o=jr(e.t))}function Mr(e,t,i){var o=Pr(t)?ze("MapSet").F(t,i):_r(t)?ze("MapSet").T(t,i):e.O?function(c,u){var f=Array.isArray(c),a={i:f?1:0,A:u?u.A:Vn(),P:!1,I:!1,R:{},l:u,t:c,k:null,o:null,j:null,C:!1},h=a,x=zr;f&&(h=[a],x=Lt);var y=Proxy.revocable(h,x),b=y.revoke,I=y.proxy;return a.k=I,a.j=b,I}(t,i):ze("ES5").J(t,i);return(i?i.A:Vn()).p.push(o),o}function Cs(e){return pt(e)||de(22,e),function t(i){if(!tt(i))return i;var o,c=i[Te],u=ht(i);if(c){if(!c.P&&(c.i<4||!ze("ES5").K(c)))return c.t;c.I=!0,o=Hn(i,u),c.I=!1}else o=Hn(i,u);return Ot(o,function(f,a){c&&Es(c.t,f)===a||$n(o,f,t(a))}),u===3?new Set(o):o}(e)}function Hn(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return jr(e)}var Yn,mt,Ur=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ps=typeof Map<"u",_s=typeof Set<"u",Jn=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Xn=Ur?Symbol.for("immer-nothing"):((Yn={})["immer-nothing"]=!0,Yn),Kn=Ur?Symbol.for("immer-draftable"):"__$immer_draftable",Te=Ur?Symbol.for("immer-state"):"__$immer_state",js={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},ks=""+Object.prototype.constructor,Dr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Bs=Object.getOwnPropertyDescriptors||function(e){var t={};return Dr(e).forEach(function(i){t[i]=Object.getOwnPropertyDescriptor(e,i)}),t},Rs={},zr={get:function(e,t){if(t===Te)return e;var i=rt(e);if(!Cr(i,t))return function(c,u,f){var a,h=Gn(u,f);return h?"value"in h?h.value:(a=h.get)===null||a===void 0?void 0:a.call(c.k):void 0}(e,i,t);var o=i[t];return e.I||!tt(o)?o:o===Or(e.t,t)?(Nr(e),e.o[t]=Mr(e.A.h,o,e)):o},has:function(e,t){return t in rt(e)},ownKeys:function(e){return Reflect.ownKeys(rt(e))},set:function(e,t,i){var o=Gn(rt(e),t);if(o!=null&&o.set)return o.set.call(e.k,i),!0;if(!e.P){var c=Or(rt(e),t),u=c==null?void 0:c[Te];if(u&&u.t===i)return e.o[t]=i,e.R[t]=!1,!0;if(Is(i,c)&&(i!==void 0||Cr(e.t,t)))return!0;Nr(e),Lr(e)}return e.o[t]===i&&(i!==void 0||t in e.o)||Number.isNaN(i)&&Number.isNaN(e.o[t])||(e.o[t]=i,e.R[t]=!0),!0},deleteProperty:function(e,t){return Or(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Nr(e),Lr(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var i=rt(e),o=Reflect.getOwnPropertyDescriptor(i,t);return o&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:o.enumerable,value:i[t]}},defineProperty:function(){de(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){de(12)}},Lt={};Ot(zr,function(e,t){Lt[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Lt.deleteProperty=function(e,t){return ve.process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&de(13),Lt.set.call(this,e,t,void 0)},Lt.set=function(e,t,i){return ve.process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&de(14),zr.set.call(this,e[0],t,i,e[0])};var As=function(){function e(i){var o=this;this.O=Jn,this.D=!0,this.produce=function(c,u,f){if(typeof c=="function"&&typeof u!="function"){var a=u;u=c;var h=o;return function(C){var oe=this;C===void 0&&(C=a);for(var j=arguments.length,N=Array(j>1?j-1:0),le=1;le1?y-1:0),I=1;I=0;c--){var u=o[c];if(u.path.length===0&&u.op==="replace"){i=u.value;break}}c>-1&&(o=o.slice(c+1));var f=ze("Patches").$;return pt(i)?f(i,o):this.produce(i,function(a){return f(a,o)})},e}(),Se=new As,Fs=Se.produce;Se.produceWithPatches.bind(Se),Se.setAutoFreeze.bind(Se),Se.setUseProxies.bind(Se),Se.applyPatches.bind(Se),Se.createDraft.bind(Se),Se.finishDraft.bind(Se);const wt=Fs,Zn=at.createSlice({name:"chat",initialState:dt,reducers:{setOutgoing(e,{payload:t}){e.outgoing={term:ut(Ke.chat),user_id:localStorage.getItem("__cid")||"",role:Z.user,message:t}},resetOutgoing(e){e.outgoing=dt.outgoing},setExistingHistory(e,{payload:t}){return wt(e,i=>{if(e.historyIds.length>=t.length){e.historyIds.filter(c=>!t.find(u=>u.id===c)).forEach(c=>i.historyData[c].content=i.historyData[c].content.map(u=>({...u,sent:!1,resend:!0})));return}i.historyIds=t.map(({id:o})=>o),i.historyData=t.reduce((o,c)=>({...o,[c.id]:c}),{})})},addPredefinedAssistantMessage(e,{payload:t}){const i=fe();return wt(e,o=>{o.historyIds.push(i),o.historyData[i]={id:i,role:Z.assistant,content:[{type:ke.text,text:t.content,sequence:1},{type:ke.buttons,buttons:t.buttons||[],sequence:2}]}})},fillAssistantHistoryData(e,{payload:t}){return wt(e,i=>{const o=t.id;if(!i.historyData[o]){i.historyData[o]={id:o,role:Z.assistant,content:[]},i.historyIds.push(o);return}if(!t.content)return;const c=t.content.type,u={sequence:t.sequence||1,type:c,[c]:t.content[t.content.type]};if(i.historyData[o].content.some(a=>a.sequence===u.sequence&&a.type===u.type)){i.historyData[o].content=vs(i.historyData[o].content,u);return}i.historyData[o].content.push(u)})},fillUserHistoryData(e,{payload:{id:t,content:i}}){return wt(e,o=>{let c;if(i.groupId&&Object.entries(o.historyData).forEach(([u,f])=>{f.content.find(a=>a.groupId===i.groupId)&&(c=u)}),c){o.historyData[c].content.push(i);return}o.historyData[t]||(o.historyData[t]={id:t,role:Z.user,content:[i]},o.historyIds.push(t))})},fillInitialMessage(e,{payload:t}){e.historyIds.push(t.id),e.historyData[t.id]={id:t.id,role:Z.assistant,time:new Date().getTime(),content:t.content}},setIsLoading(e){e.isLoading=!0},resetIsLoading(e){e.isLoading=dt.isLoading},setTypingTimeoutExpired(e,{payload:t}){e.typingTimeoutExpired=t},setConnected(e,{payload:t}){e.connected=t},setClosed(e){e.closed=!0},hideResendIcon(e,{payload:t}){return wt(e,i=>{i.historyData[t.itemId].content=i.historyData[t.itemId].content.map(o=>({...o,sent:!0,resend:!1}))})},showResendIcon(e,{payload:t}){return wt(e,i=>{i.historyData[t.itemId].content=i.historyData[t.itemId].content.map(o=>({...o,sent:!1,resend:!0}))})},setLastGroupPointer(e,{payload:t}){e.lastGroupId=t},resendMessage(e,{payload:t}){},setError(e,{payload:t}){e.error=t},resetError(e){e.error=dt.error},setIsStreaming(e,{payload:t}){e.isStreaming=t},resetHistory(e){e.historyIds=dt.historyIds,e.historyData=dt.historyData}}}),Kt=e=>e.chat,Os=e=>e.chat.historyIds.find(t=>e.chat.historyData[t].role===Z.user),Ls=(e,t)=>e.sequence-t.sequence,{setOutgoing:$r,resetOutgoing:Ns,setExistingHistory:Ms,addPredefinedAssistantMessage:Qn,setIsLoading:Zt,resetIsLoading:Nt,setLastGroupPointer:Us,setTypingTimeoutExpired:ei,setError:Qt,resetError:Vr,setConnected:ti,setClosed:er,hideResendIcon:Ds,showResendIcon:ri,resendMessage:ni,setIsStreaming:qr,fillAssistantHistoryData:ii,fillUserHistoryData:tr,resetHistory:zs,fillInitialMessage:$s}=Zn.actions,Vs=Zn.reducer,oi=at.createSlice({name:"intentions",initialState:to,reducers:{setEmail(e,{payload:t}){e.email.current=t},setEmailSuccess(e,{payload:t}){e.email.success=t},setEmailError(e,{payload:t}){e.email.error=t},setIsEmailLoading(e,{payload:t}){e.email.isLoading=t},setIsPaymentButtonVisible(e,{payload:t}){e.payment.isButtonVisible=t},setPaymentFormVisibility(e,{payload:t}){e.payment.isFormVisible=t},setIsPaymentSuccessful(e,{payload:t}){e.payment.isSuccessful=t},setPaymentIntentError(e,{payload:t}){e.payment.error=t},setLink(e,{payload:t}){e.link=t}}}),si=e=>e.intentions.email,qs=e=>e.intentions.payment,{setEmailSuccess:Ws,setIsPaymentSuccessful:Gs,setPaymentFormVisibility:Hs,setEmailError:ai,setIsEmailLoading:Wr,setIsPaymentButtonVisible:Ys,setPaymentIntentError:Js,setEmail:Xs,setLink:ci}=oi.actions,Ks=oi.reducer,Zs=()=>{var _;const{cid:e,systemType:t,marketing:i,pd:o}=z(kt),{translations:c,purpose:u,specialUrls:f}=z(Ze),{isLoading:a,isStreaming:h}=z(Kt),{error:x}=z(S=>S.chat),y=z(S=>S.intentions.link),{error:b,current:I}=z(si),{isFormVisible:P,error:O,isSuccessful:C}=z(qs),j={systemType:t,marketing:i,error:x||b||O,cid:e,isLoading:a,currentEmail:I,translations:c,pd:o,isStreaming:h,isPaymentButtonVisible:!1,isPaymentFormVisible:!1,isEmailFormVisible:!1,isResponseFormVisible:!1,ctaText:"",ctaHref:""},{historyData:N,historyIds:le}=z(Kt),ge=[...le].pop(),B=ge&&N[ge],me=B&&B.role===Z.assistant,be=me&&y,Ae=!(B&&(B!=null&&B.content.find(S=>S.buttons))),Ce=B&&(B==null?void 0:B.content.find(S=>S.payment)),Fe=B&&(B==null?void 0:B.content.find(S=>S.email));if(me&&Ce)return{...j,isPaymentButtonVisible:!0};if(me&&Fe)return{...j,isEmailFormVisible:!0,isPaymentFormVisible:P};if(C)return{...j,ctaText:c.ctaTextContent,ctaHref:"/",isPaymentFormVisible:P};const pe=B&&((_=B==null?void 0:B.content)==null?void 0:_.find(S=>S.special));if(me&&pe&&(pe!=null&&pe.special))return{...j,ctaText:f[pe.special].includes("merchant")?c.merchantButton:c.supportButton,ctaHref:f[pe.special]};if(be&&u===Sr)return{...j,isResponseFormVisible:!0};const T=B&&!be&&!a&&(Ae||(B==null?void 0:B.role)===Z.user);return{...j,ctaText:c.mealButton,ctaHref:be,isResponseFormVisible:T}};var Gr={exports:{}},yt=typeof Reflect=="object"?Reflect:null,li=yt&&typeof yt.apply=="function"?yt.apply:function(t,i,o){return Function.prototype.apply.call(t,i,o)},rr;yt&&typeof yt.ownKeys=="function"?rr=yt.ownKeys:Object.getOwnPropertySymbols?rr=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:rr=function(t){return Object.getOwnPropertyNames(t)};function Qs(e){console&&console.warn&&console.warn(e)}var ui=Number.isNaN||function(t){return t!==t};function Y(){Y.init.call(this)}Gr.exports=Y,Gr.exports.once=na,Y.EventEmitter=Y,Y.prototype._events=void 0,Y.prototype._eventsCount=0,Y.prototype._maxListeners=void 0;var fi=10;function nr(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Y,"defaultMaxListeners",{enumerable:!0,get:function(){return fi},set:function(e){if(typeof e!="number"||e<0||ui(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");fi=e}}),Y.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Y.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||ui(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function di(e){return e._maxListeners===void 0?Y.defaultMaxListeners:e._maxListeners}Y.prototype.getMaxListeners=function(){return di(this)},Y.prototype.emit=function(t){for(var i=[],o=1;o0&&(f=i[0]),f instanceof Error)throw f;var a=new Error("Unhandled error."+(f?" ("+f.message+")":""));throw a.context=f,a}var h=u[t];if(h===void 0)return!1;if(typeof h=="function")li(h,this,i);else for(var x=h.length,y=yi(h,x),o=0;o0&&f.length>c&&!f.warned){f.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+f.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=f.length,Qs(a)}return e}Y.prototype.addListener=function(t,i){return pi(this,t,i,!1)},Y.prototype.on=Y.prototype.addListener,Y.prototype.prependListener=function(t,i){return pi(this,t,i,!0)};function ea(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function hi(e,t,i){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:i},c=ea.bind(o);return c.listener=i,o.wrapFn=c,c}Y.prototype.once=function(t,i){return nr(i),this.on(t,hi(this,t,i)),this},Y.prototype.prependOnceListener=function(t,i){return nr(i),this.prependListener(t,hi(this,t,i)),this},Y.prototype.removeListener=function(t,i){var o,c,u,f,a;if(nr(i),c=this._events,c===void 0)return this;if(o=c[t],o===void 0)return this;if(o===i||o.listener===i)--this._eventsCount===0?this._events=Object.create(null):(delete c[t],c.removeListener&&this.emit("removeListener",t,o.listener||i));else if(typeof o!="function"){for(u=-1,f=o.length-1;f>=0;f--)if(o[f]===i||o[f].listener===i){a=o[f].listener,u=f;break}if(u<0)return this;u===0?o.shift():ta(o,u),o.length===1&&(c[t]=o[0]),c.removeListener!==void 0&&this.emit("removeListener",t,a||i)}return this},Y.prototype.off=Y.prototype.removeListener,Y.prototype.removeAllListeners=function(t){var i,o,c;if(o=this._events,o===void 0)return this;if(o.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):o[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete o[t]),this;if(arguments.length===0){var u=Object.keys(o),f;for(c=0;c=0;c--)this.removeListener(t,i[c]);return this};function mi(e,t,i){var o=e._events;if(o===void 0)return[];var c=o[t];return c===void 0?[]:typeof c=="function"?i?[c.listener||c]:[c]:i?ra(c):yi(c,c.length)}Y.prototype.listeners=function(t){return mi(this,t,!0)},Y.prototype.rawListeners=function(t){return mi(this,t,!1)},Y.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):wi.call(e,t)},Y.prototype.listenerCount=wi;function wi(e){var t=this._events;if(t!==void 0){var i=t[e];if(typeof i=="function")return 1;if(i!==void 0)return i.length}return 0}Y.prototype.eventNames=function(){return this._eventsCount>0?rr(this._events):[]};function yi(e,t){for(var i=new Array(t),o=0;o{const{base:o}=sa();return w.jsx("button",{onClick:t,className:o(),type:"button","data-e2e":i,children:e})},ir=({children:e,outlined:t=!1,onClick:i,e2e:o=null,disabled:c=!1})=>{const{base:u}=aa({outlined:t});return w.jsx("button",{onClick:i,className:u(),"data-e2e":o,disabled:c,type:"button",children:e})},la=ie({slots:{base:"tw--relative tw--flex tw--items-center",input:"tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] focus:tw--outline-none focus:!tw--bg-lumina tw--bg-lumina tw--text-zephyr-100 tw--font-density-different",loader:"tw--absolute tw--right-4 tw--top-[50%] tw--translate-y-[-50%]",spin:"tw--block tw--w-6 tw--h-6 tw--border-solid tw--border-[5px] tw--rounded-3xl tw--animate-rotate tw--m-auto tw--border-zephyr-200 tw--border-t-zephyr-600 tw--border-l-zephyr-600"}}),Hr=J.forwardRef((e,t)=>{const{disabled:i,e2e:o,isLoading:c,onChange:u,onKeyUp:f,placeholder:a,type:h,value:x}=e,{base:y,input:b,loader:I,spin:P}=la();return w.jsxs("div",{className:y(),children:[w.jsx("input",{className:b(),"data-e2e":o,disabled:c||i,onChange:u,onKeyUp:f,placeholder:a,ref:t,type:h,value:x}),c&&w.jsx("span",{className:I(),children:w.jsx("span",{className:P()})})]})});Hr.displayName="Input";const ua=()=>{const e=We(),t=z(I=>I.meta),{translations:i}=z(Ze),{isLoading:o}=z(si),{base:c,input:u,button:f}=Ln(),[a,h]=J.useState(""),x=J.useRef(null);J.useEffect(()=>{Ie({eventType:ye.emailField,systemType:t.systemType,utmParams:t.marketing.lastUtmParams,customerUuid:t.cid}),setTimeout(()=>{x.current&&x.current.focus()},500)});const y=I=>{const P=I.target.value.trim();h(P)},b=I=>{I.preventDefault(),a!==""&&(e(Wr(!0)),e(Xs(a)),Re.core.emit(Re.type.email,{email:a}),h(""))};return w.jsxs("form",{className:c(),onSubmit:b,"data-e2e":"email-form",children:[w.jsx("div",{className:u(),children:w.jsx(Hr,{e2e:"email-input",isLoading:o,name:"email",onChange:y,ref:x,placeholder:i.emailPlaceholder,type:"email",value:a})}),w.jsx("div",{className:f(),children:w.jsx(ir,{onClick:b,e2e:"email-validate-btn",children:w.jsx("svg",{fill:"currentColor",viewBox:"0 0 24 24",width:"20px",height:"20px",children:w.jsx("path",{d:"M16.6915026,12.4744748 L3.50612381,13.2599618 C3.19218622,13.2599618 3.03521743,13.4170592 3.03521743,13.5741566 L1.15159189,20.0151496 C0.8376543,20.8006365 0.99,21.89 1.77946707,22.52 C2.41,22.99 3.50612381,23.1 4.13399899,22.8429026 L21.714504,14.0454487 C22.6563168,13.5741566 23.1272231,12.6315722 22.9702544,11.6889879 C22.8132856,11.0605983 22.3423792,10.4322088 21.714504,10.118014 L4.13399899,1.16346272 C3.34915502,0.9 2.40734225,1.00636533 1.77946707,1.4776575 C0.994623095,2.10604706 0.8376543,3.0486314 1.15159189,3.99121575 L3.03521743,10.4322088 C3.03521743,10.5893061 3.34915502,10.7464035 3.50612381,10.7464035 L16.6915026,11.5318905 C16.6915026,11.5318905 17.1624089,11.5318905 17.1624089,12.0031827 C17.1624089,12.4744748 16.6915026,12.4744748 16.6915026,12.4744748 Z"})})})})]})},fa=()=>{const e=We(),{connected:t,isLoading:i}=z(Kt),{base:o,input:c,button:u}=Ln(),[f,a]=J.useState(""),[h,x]=J.useState(null),y=z(C=>C.chat.lastGroupId),b=J.useRef(null);J.useEffect(()=>{setTimeout(()=>{var C;(C=b.current)==null||C.focus()},500)},[]);const I=C=>{a(C.target.value),O()},P=C=>{C.preventDefault(),f.trim()&&e(tr({role:Z.user,id:fe(),sequence:1,content:{sequence:1,message:f,groupId:y,resend:!1,sent:!0}})),a(""),O()},O=()=>{h&&clearTimeout(h);const C=setTimeout(()=>{e(ei(!0)),e(Us(fe()))},bs);x(C)};return w.jsxs("form",{className:o(),onSubmit:P,"data-e2e":"user-form",children:[w.jsx("div",{className:c(),children:w.jsx(Hr,{disabled:!t,isLoading:i,e2e:"message-input",name:"response",onChange:I,placeholder:"Write your message here...",type:"response",value:f,ref:b})}),w.jsx("div",{className:u(),children:w.jsx(ir,{onClick:P,disabled:!t,children:w.jsx("svg",{fill:"currentColor",viewBox:"0 0 24 24",width:"20px",height:"20px",children:w.jsx("path",{d:"M16.6915026,12.4744748 L3.50612381,13.2599618 C3.19218622,13.2599618 3.03521743,13.4170592 3.03521743,13.5741566 L1.15159189,20.0151496 C0.8376543,20.8006365 0.99,21.89 1.77946707,22.52 C2.41,22.99 3.50612381,23.1 4.13399899,22.8429026 L21.714504,14.0454487 C22.6563168,13.5741566 23.1272231,12.6315722 22.9702544,11.6889879 C22.8132856,11.0605983 22.3423792,10.4322088 21.714504,10.118014 L4.13399899,1.16346272 C3.34915502,0.9 2.40734225,1.00636533 1.77946707,1.4776575 C0.994623095,2.10604706 0.8376543,3.0486314 1.15159189,3.99121575 L3.03521743,10.4322088 C3.03521743,10.5893061 3.34915502,10.7464035 3.50612381,10.7464035 L16.6915026,11.5318905 C16.6915026,11.5318905 17.1624089,11.5318905 17.1624089,12.0031827 C17.1624089,12.4744748 16.6915026,12.4744748 16.6915026,12.4744748 Z"})})})})]})},da=()=>{const e=We(),t=Zs(),i=J.useRef(null),[o,c]=J.useState(!1),u=b=>{e(Hs(b))};J.useEffect(()=>{t.isEmailFormVisible&&Ie({eventType:ye.emailField,systemType:t.systemType,utmParams:t.marketing.lastUtmParams,customerUuid:t.cid,email:t.currentEmail})},[t.isEmailFormVisible]);const f=b=>{b.currentTarget.disabled=!0,Re.core.emit(Re.type.destroy),u(!1),c(!1)},a=()=>{e(Qn({content:t.translations.tm1226})),e(Gs(!0)),e(Ys(!1)),u(!1),Ie({eventType:ye.linkProvided,systemType:t.systemType,utmParams:t.marketing.lastUtmParams,customerUuid:t.cid,email:t.currentEmail}),setTimeout(()=>{i.current&&i.current.click()},7e3)},h=b=>{e(Js(b))},x=()=>{Re.core.emit(Re.type.payment,{setIsPaymentContainerVisible:u,onPaymentSuccess:a,onError:h}),c(!0)},y=b=>{localStorage.setItem(Dn,b.currentTarget.href),Ie({eventType:ye.linkClicked,systemType:t.systemType,utmParams:t.marketing.lastUtmParams,customerUuid:t.cid,email:t.currentEmail}),e(er())};return w.jsxs("div",{className:"tw--space-y-[11px] tw--pb-[11px]","data-e2e":"chat-foot",children:[t.error&&w.jsx("div",{"data-e2e":"error-message",className:"tw--pl-[35px] tw--text-[#ff0043] tw--font-medium",children:t.error}),t.isPaymentFormVisible&&w.jsx(ss,{onClose:f}),t.isLoading&&w.jsx(ds,{}),t.ctaHref&&w.jsx(Mn,{ref:i,text:t.ctaText,onClick:y,href:t.ctaHref,e2e:"quiz-trigger-btn"}),!t.isStreaming&&t.isEmailFormVisible&&w.jsx(ua,{}),!t.isStreaming&&t.isResponseFormVisible&&w.jsx(fa,{}),t.isPaymentButtonVisible&&w.jsx(ts,{text:t.translations.payButton,onClick:x,disabled:o,e2e:"payment-form-trigger-btn"})]})},pa=ie({slots:{base:"tw--flex tw--items-center tw--select-none",avatar:"tw--rounded-full",info:"",name:"",role:"",imgWrapper:"",minimized:""},variants:{orientation:{horizontal:{base:"tw--flex-row tw--text-left",avatar:"tw--shrink",name:"tw--text-xl/7 tw--font-bold tw--leading-[30px]",info:"tw--pl-[10px]",role:"tw--text-zephyr-800",imgWrapper:"after:tw--absolute after:tw--w-[10px] after:tw--h-[10px] after:tw--bottom-[-2px] after:tw--left-[37px] after:tw--z-10 after:tw--rounded-full after:tw--bg-iota-dots"},vertical:{base:"tw--flex-col tw--text-center",name:"tw--text-[24px] tw--font-semibold",role:"tw--font-density-different tw--text-zephyr-600"}},minimized:{true:"",false:""}},compoundSlots:[{slots:["imgWrapper"],orientation:"horizontal",minimized:!1,class:"tw--relative tw--h-fit"},{slots:["avatar"],orientation:"horizontal",minimized:!1,class:"tw--h-[50px]"},{slots:["avatar"],orientation:"vertical",minimized:!1,class:"tw--h-[60px]"}]}),bi=({orientation:e=yr.horizontal,minimized:t=!1})=>{const{aiProfile:i}=z(Ze),{base:o,avatar:c,info:u,name:f,role:a,imgWrapper:h}=pa({orientation:e,minimized:t});return w.jsxs("div",{className:o(),children:[w.jsx("span",{className:h(),children:w.jsx("img",{className:c(),src:i.imgSrc,alt:"img"})}),w.jsxs("div",{className:u(),children:[w.jsx("div",{className:f(),children:i.name}),w.jsx("div",{className:a(),children:i.role})]})]})},ha=()=>{const e=We(),t=fo(),{base:i}=Go({theme:t.theme}),o=c=>{c.currentTarget.disabled=!0,Ie({eventType:ye.closeClicked,systemType:t.systemType,utmParams:t.marketing.lastUtmParams,customerUuid:t.cid}),setTimeout(()=>{e(er())},ys)};return w.jsxs("div",{className:i(),"data-e2e":"chat-heading",children:[w.jsx(bi,{}),t.closeVisible&&w.jsx(ir,{e2e:"chat-close-btn",onClick:o,children:w.jsx("svg",{height:"24px",viewBox:"0 0 24 24",width:"24px",children:w.jsxs("g",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[w.jsx("line",{x1:"6",x2:"18",y1:"6",y2:"18"}),w.jsx("line",{x1:"6",x2:"18",y1:"18",y2:"6"})]})})})]})},ma=e=>{const t=o=>/[?&]([^=#]+)=([^&#]*)/g.test(o);let i;if(window.location.search){const o=new URLSearchParams(window.location.search);o.append(ps,"true"),o.append(ms,localStorage.getItem("__cid")||""),i=`/?${o}`}else i="";return t(e)?e:e+i},wa=({properties:e})=>{const{purpose:t}=z(Ze),{cid:i,marketing:o,systemType:c}=z(kt),u=We(),f=e.href?ma(e.href):"#";J.useEffect(()=>{u(ci(f))});const a=h=>{t!==Sr&&localStorage.setItem(Dn,h.currentTarget.href),Ie({eventType:ye.linkClicked,systemType:c,utmParams:o.lastUtmParams,customerUuid:i}),u(er())};return w.jsx("a",{href:f,onClick:a,className:"tw--underline",children:e.href})},ya=e=>{const i=/embed\/(\w+)/.exec(e);return i?i[1]:null},ga=J.memo(function({url:t,title:i}){const[o,c]=J.useState(!1),u=ya(t),f=()=>{c(!0)};return o?w.jsx("iframe",{className:"w-full tw--h-80 tw--py-4",title:i||"Missing title",src:`${t}?enablejsapi=1&rel=0&origin=${window.location.origin}`,allow:"fullscreen"}):w.jsx("div",{className:"w-full tw--h-80 tw--py-4 tw--justify-center tw--flex tw--items-center tw--pointer-events-auto",onClick:f,style:{backgroundImage:`url(https://img.youtube.com/vi/${u}/hqdefault.jpg)`},children:w.jsx("button",{className:"tw--items-center tw--justify-center tw--w-16 tw--h-16 tw--rounded-full tw--cursor-pointer tw--pointer-events-auto tw--flex tw--bg-gradient-to-b tw--from-[#FF0000] tw--to-[#F25640]",children:w.jsx("svg",{className:"tw--pointer-events-none",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:w.jsx("path",{d:"M10.6665 9.09335V22.9067C10.6665 23.96 11.8265 24.6 12.7198 24.0267L23.5732 17.12C23.7632 16.9998 23.9197 16.8334 24.0282 16.6364C24.1366 16.4394 24.1935 16.2182 24.1935 15.9933C24.1935 15.7685 24.1366 15.5473 24.0282 15.3503C23.9197 15.1533 23.7632 14.9869 23.5732 14.8667L12.7198 7.97335C12.5187 7.84327 12.2862 7.76989 12.0469 7.76094C11.8076 7.75199 11.5702 7.8078 11.36 7.92249C11.1497 8.03718 10.9743 8.20649 10.8523 8.41257C10.7302 8.61864 10.666 8.85384 10.6665 9.09335V9.09335Z",fill:"white"})})})})}),ba=ie({slots:{base:"tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none tw--text-center tw--bg-glaze tw--text-whisper"}});ie({slots:{base:"tw--flex-1 tw--px-4 tw--py-2"}});const xa=({text:e,href:t,onClick:i})=>{const{base:o}=ba();return w.jsx("a",{href:t,onClick:i,className:o(),children:e})},va=({options:e=[]})=>{const t=We(),i=z(kt),o=!z(Os),c=(f,a)=>{t(tr({id:fe(),sequence:1,role:Z.user,content:{sequence:1,message:f,resend:!1,sent:!0,groupId:""}})),t($r(f)),o&&Ie({eventType:ye.buttonClick+a,systemType:i.systemType,utmParams:i.marketing.lastUtmParams,customerUuid:i.cid})},u=f=>{t(tr({id:fe(),sequence:1,role:Z.user,content:{sequence:1,message:f,resend:!1,sent:!0,groupId:""}}))};return[...e].sort((f,a)=>f.sequence-a.sequence).map(({value:f,link:a,sequence:h,noStream:x})=>a?w.jsx(xa,{text:f,href:a},fe()):w.jsx(ca,{text:f,onClick:x?()=>u(f):()=>c(f,h),e2e:"option-button"},fe()))},Ea=({message:e,itemId:t})=>{const{isStreaming:i}=z(Kt),{pd:o}=z(kt),c=z(a=>a.chat.historyIds.length-1===a.chat.historyIds.indexOf(t)),{base:u}=us({isTyping:i&&c}),f=[...e.content].sort(Ls);return w.jsx(w.Fragment,{children:f.map(a=>{var h,x,y,b;if(a.type===ke.text)return w.jsx("div",{className:"tw--flex tw--flex-col tw--space-y-[10px]",children:w.jsx("span",{className:u(),children:w.jsx(Fi,{components:{a(I){return w.jsx(wa,{properties:I})}},children:a[a.type]})})},fe());if(a.type===ke.buttons&&c)return w.jsx("div",{className:"tw--flex tw--flex-col tw--space-y-[10px]",children:w.jsx(va,{options:a[a.type]})},fe());if(a.type===ke.video)return w.jsx(ga,{title:((h=a[a.type])==null?void 0:h.title)||"video",url:((x=a[a.type])==null?void 0:x.url)||"https://www.youtube.com/embed/g4B8Dhl4pxY"},fe());if(a.type===ke.image)return w.jsx("img",{className:"w-full tw--h-auto tw--py-4",src:(y=a[a.type])==null?void 0:y.url,alt:((b=a[a.type])==null?void 0:b.alt)||"chat-image"},fe());if(a.type===ke.payment)return`${a[a.type]} ${o.displayPlanPrice} ${o.billingFrequencyTmsg}`;if(a.type===ke.email)return a[a.type]})})},Ia=J.memo(Ea),Ta=({itemId:e})=>{const t=z(i=>i.chat.historyData[e]);return t&&w.jsx("div",{className:Un({type:t.role}).base(),"data-e2e":t.role===Z.assistant?"stream-assistant-msg":"user-msg",children:t.role===Z.assistant?w.jsx(Ia,{message:t,itemId:e}):[...t.content].map(i=>w.jsx(_a,{record:{...i,itemId:e}},fe()))})},Sa=J.memo(Ta),Ca=({titleTxt:e})=>{const{base:t,title:i}=cs();return w.jsxs("div",{className:t(),children:[i&&w.jsx("div",{className:i(),children:e}),w.jsx(bi,{orientation:yr.vertical})]})},Pa=()=>{const{aiProfile:e}=z(Ze),t=z(h=>h.chat.historyIds||[]),i=z(h=>h.chat.historyData[t[0]]),{base:o,second:c,date:u}=as(),{base:f}=ls(),a=eo((i==null?void 0:i.time)||new Date().getTime());return w.jsx("div",{className:o(),children:w.jsxs("div",{className:c(),"data-e2e":"history-container",children:[w.jsx(Ca,{titleTxt:e.welcome}),w.jsx("div",{className:u(),"data-e2e":"stream-assistant-msg-date",children:a}),t.map(h=>w.jsx("div",{className:f(),"data-e2e":"history-item",children:w.jsx(Sa,{itemId:h})},fe()))]})})},_a=({record:e})=>{const t=We(),{action:i,separator:o}=Un({type:Z.user}),c=()=>{t(ni(e))};return w.jsxs("div",{className:o(),children:[w.jsx("span",{children:e.message}),e.resend&&!e.sent&&w.jsx("div",{className:i(),children:w.jsx(ir,{outlined:!0,onClick:()=>c(),children:w.jsxs("svg",{fill:"currentColor",viewBox:"0 0 24 24",width:"20px",height:"20px",children:[w.jsx("path",{fill:"none",d:"M0 0h24v24H0V0z"}),w.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"})]})})})]})},ja=({config:e})=>{const t=We();return t(oo(e.meta)),t(ro(e.app.purpose)),t(no(e.specialUrls)),t(yn(e.app)),w.jsx(Ho,{head:w.jsx(ha,{}),stream:w.jsx(Pa,{}),foot:w.jsx(da,{})})};var Yr={},Jr={};Jr.__esModule=!0,Jr.default=Ra;function or(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?or=function(i){return typeof i}:or=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},or(e)}function Xr(){}var ka={getItem:Xr,setItem:Xr,removeItem:Xr};function Ba(e){if((typeof self>"u"?"undefined":or(self))!=="object"||!(e in self))return!1;try{var t=self[e],i="redux-persist ".concat(e," test");t.setItem(i,"test"),t.getItem(i),t.removeItem(i)}catch{return ve.process.env.NODE_ENV!=="production"&&console.warn("redux-persist ".concat(e," test failed, persistence will be disabled.")),!1}return!0}function Ra(e){var t="".concat(e,"Storage");return Ba(t)?self[t]:(ve.process.env.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),ka)}Yr.__esModule=!0,Yr.default=Oa;var Aa=Fa(Jr);function Fa(e){return e&&e.__esModule?e:{default:e}}function Oa(e){var t=(0,Aa.default)(e);return{getItem:function(o){return new Promise(function(c,u){c(t.getItem(o))})},setItem:function(o,c){return new Promise(function(u,f){u(t.setItem(o,c))})},removeItem:function(o){return new Promise(function(c,u){c(t.removeItem(o))})}}}var xi=void 0,La=Na(Yr);function Na(e){return e&&e.__esModule?e:{default:e}}var Ma=(0,La.default)("local");xi=Ma;const Ua=e=>t=>{const i=o=>{var f;const{meta:c}=e.getState(),u={};return c.pd&&typeof o=="object"&&"billingOptionType"in o?(o.billingFrequencyTmsg=o.billingOptionType==="one-time"?c.pd.oneTimer:(f=c.pd.subscriberBillingFrequency)==null?void 0:f.replace("{1}",o.frequencyInMonths),o={...o,...u},o):u};return Re.core.on(Re.type.emailSuccess,()=>{const{meta:o,intentions:c}=e.getState();e.dispatch(Wr(!1)),e.dispatch(ai("")),e.dispatch(tr({id:fe(),role:Z.user,sequence:1,content:{sequence:1,message:c.email.current,resend:!1,sent:!0,groupId:""}})),e.dispatch($r(c.email.current)),e.dispatch(Ws(!0)),Ie({eventType:ye.emailEntered,systemType:o.systemType,utmParams:o.marketing.lastUtmParams,customerUuid:o.cid,email:c.email.current})}),Re.core.on(Re.type.emailError,o=>{const{meta:c,intentions:u,config:f}=e.getState(),{tm716:a,tm526:h,tm715:x,tm505:y}=f.translations;if(e.dispatch(Wr(!1)),o.status===409){e.dispatch(Qn({content:a,buttons:[{sequence:1,id:"opt-1",text:h,value:h,link:o.data.buttonLink,noStream:!0},{sequence:2,id:"opt-2",text:x,value:x,link:"",noStream:!0}]})),Ie({eventType:ye.emailExist,systemType:c.systemType,utmParams:c.marketing.lastUtmParams,customerUuid:c.cid,email:u.email.current});return}o.status===422&&(e.dispatch(ai(o.errors.email[0]||y)),Ie({eventType:ye.emailWrong,systemType:c.systemType,utmParams:c.marketing.lastUtmParams,customerUuid:c.cid,email:u.email.current}))}),vi("marketing",e,so),vi("__pd",e,ao,i),o=>{if(ci.match(o)&&o.payload){const{meta:c,intentions:u}=e.getState();Ie({eventType:ye.linkProvided,systemType:c.systemType,utmParams:c.marketing.lastUtmParams,customerUuid:c.cid,email:u.email.current})}t(o)}},vi=(e,t,i,o)=>{const c=setInterval(()=>{let u=localStorage.getItem(e)||"";try{u=JSON.parse(u)}catch{u=localStorage.getItem(e)||""}o&&u&&(u=o(u)),o&&u&&(t.dispatch(i(u)),clearInterval(c))},ws)};let ce;const Da=e=>t=>i=>{const{meta:o,chat:c,config:u}=e.getState(),f=()=>{const{config:y}=e.getState();e.dispatch(Nt()),e.dispatch(Qt(y.translations.error))},a=()=>{e.dispatch(ri({itemId:c.historyIds.pop()})),f()},h=y=>{if(y.role===Z.user&&e.dispatch(Zt()),ce&&ce.connected&&y.message.trim()!==""){ce.emit(_e.chat,{time:new Date().getTime(),...y},Ei(a)),e.dispatch(Vr());return}a()},x=y=>{e.dispatch(Ds(y)),e.dispatch(Zt());const b=()=>{const{config:I}=e.getState();e.dispatch(ri(y)),e.dispatch(Nt()),e.dispatch(Qt(I.translations.error))};ce!=null&&ce.connected&&y.message.trim()!==""?(ce.volatile.emit(_e.chat,{role:Z.user,message:y.message,term:ut(Ke.chat),user_id:o.cid,region:o.region},Ei(b)),e.dispatch(Vr())):b()};if($r.match(i)&&h({role:Z.user,message:i.payload,term:ut(Ke.chat),user_id:o.cid,region:o.region,messageId:[...c.historyIds].pop()}),er.match(i)){const y=document.querySelector("#chatbot-container");document.body&&y&&u.purpose!==Sr&&(y.innerHTML="",document.body.classList.remove(zn)),localStorage.setItem(hs,new Date().getTime().toString()),ce&&ce.close(),window.location.href=u.close.href||gs}if(ei.match(i)&&i.payload){const y=[...c.historyIds].pop(),b=c.historyData[y].content.map(({message:I})=>I).join(` +`);b.trim()!==""&&h({role:Z.user,message:b,term:ut(Ke.chat),user_id:o.cid,region:o.region,messageId:y})}if(ni.match(i)&&x(i.payload),!yn.match(i))return t(i);e.dispatch(Zt()),ce=Oi.io.connect(i.payload.chatUrl,{query:`cid=${o.cid}`,...xs}),ce.on(_e.connect,()=>{const{meta:y}=e.getState();ce.sendBuffer=[],ce.emit(_e.chatHistory,{user_id:y.cid,region:y.region,term:ut(Ke.chat)}),e.dispatch(ti(!0))}),ce.on(_e.chatHistory,({history:y,errors:b,region:I})=>{e.dispatch(Nt()),e.dispatch(qr(!1)),e.dispatch(co(I));const{config:P,meta:O}=e.getState();if(b.length){e.dispatch(Qt(b[0]));return}if(y.length){e.dispatch(Ms(y));return}e.dispatch(zs()),e.dispatch(Zt());let C=0;P.aiProfile.initialMessage.forEach((oe,j,N)=>{C+=1e3,setTimeout(()=>{e.dispatch($s(oe)),N.length===j+1&&(P.aiProfile.initialMessage.forEach(le=>h({role:Z.assistant,term:ut(Ke.chat),user_id:O.cid,message:JSON.stringify(le.content),messageId:le.id,region:O.region})),e.dispatch(Nt()))},C)})}),ce.on(_e.streamStart,({id:y})=>{e.dispatch(qr(!0)),e.dispatch(Nt()),e.dispatch(Ns()),e.dispatch(Vr()),e.dispatch(ii({id:y}))}),ce.on(_e.streamData,y=>{var b;e.dispatch(ii({id:y.id,sequence:y.sequence,content:{type:y.type,[y.type]:y[y.type],sequence:y.sequence}})),(b=y.errors)!=null&&b.length&&!c.error&&e.dispatch(Qt(y.errors[0]))}),ce.on(_e.streamEnd,()=>{e.dispatch(qr(!1))}),ce.on(_e.streamError,f),ce.on(_e.error,f),ce.on(_e.disconnect,()=>{e.dispatch(ti(!1))}),t(i)},Ei=(e,t=5e3)=>{let i=!1;const o=setTimeout(()=>{i||(i=!0,e())},t);return()=>{i||(i=!0,clearTimeout(o))}},za={key:"root",storage:xi,whitelist:["chat","meta","config"]},Ii=at.configureStore({reducer:rn.persistReducer(za,at.combineReducers({meta:lo,config:io,chat:Vs,intentions:Ks})),middleware:e=>e({serializableCheck:!1}).concat(Da,Ua)}),$a=rn.persistStore(Ii);let Ti=!1;const Si=e=>{Ti||(Ti=!0,_t.createRoot(e.root).render(w.jsx(lr.Provider,{store:Ii,children:w.jsx(pn,{persistor:$a,children:w.jsx(ja,{config:e.initialConfig})})})),document.body.classList.add(zn))};he.ReactBotClient=Si,he.default=Si,he.intent=Re,Object.defineProperties(he,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); //# sourceMappingURL=index.umd.js.map diff --git a/dist/index.umd.js.map b/dist/index.umd.js.map index d15f61d..a9336c9 100644 --- a/dist/index.umd.js.map +++ b/dist/index.umd.js.map @@ -1 +1 @@ -{"version":3,"file":"index.umd.js","sources":["../node_modules/base64-js/index.js","../node_modules/ieee754/index.js","../node_modules/buffer-polyfill/index.js","../node_modules/process/browser.js","../node_modules/vite-plugin-node-polyfills/shims/dist/index.cjs","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../node_modules/react-dom/client.js","../node_modules/redux-persist/es/integration/react.js","../src/config/enums.ts","../src/utils/index.js","../src/store/initialState.ts","../src/store/slices/config.ts","../src/store/slices/meta.ts","../src/hooks/index.ts","../node_modules/tailwind-variants/dist/chunk-JXBJZR5A.js","../node_modules/tailwind-merge/dist/lib/tw-join.mjs","../node_modules/tailwind-merge/dist/lib/class-utils.mjs","../node_modules/tailwind-merge/dist/lib/lru-cache.mjs","../node_modules/tailwind-merge/dist/lib/modifier-utils.mjs","../node_modules/tailwind-merge/dist/lib/config-utils.mjs","../node_modules/tailwind-merge/dist/lib/merge-classlist.mjs","../node_modules/tailwind-merge/dist/lib/create-tailwind-merge.mjs","../node_modules/tailwind-merge/dist/lib/from-theme.mjs","../node_modules/tailwind-merge/dist/lib/validators.mjs","../node_modules/tailwind-merge/dist/lib/default-config.mjs","../node_modules/tailwind-merge/dist/lib/merge-configs.mjs","../node_modules/tailwind-merge/dist/lib/extend-tailwind-merge.mjs","../node_modules/tailwind-merge/dist/lib/tw-merge.mjs","../node_modules/tailwind-variants/dist/index.js","../src/components/Layout/variants.ts","../src/components/Layout/base.tsx","../src/components/Overlay/variants.ts","../src/components/Overlay/index.tsx","../src/services/tracking.ts","../src/components/Payment/variants.ts","../src/components/Payment/btn.tsx","../src/components/Payment/close.tsx","../src/components/Payment/foot.tsx","../src/components/Payment/head.tsx","../src/components/Payment/link.tsx","../src/components/Payment/loader.tsx","../src/components/Scenes/payment.tsx","../src/components/Stream/variants.ts","../src/components/Stream/ellipsis.tsx","../src/config/env.ts","../src/config/socket.ts","../src/config/index.ts","../node_modules/immer/dist/immer.esm.mjs","../src/store/slices/chat.ts","../src/store/slices/intentions.ts","../src/hooks/foot.ts","../node_modules/events/events.js","../src/services/intentions.ts","../src/components/Button/variants.ts","../src/components/Button/basic.tsx","../src/components/Button/icon.tsx","../src/components/Input/variants.ts","../src/components/Input/basic.tsx","../src/components/Form/email.tsx","../src/components/Form/response.tsx","../src/components/Layout/foot.tsx","../src/components/Profile/variants.ts","../src/components/Profile/index.tsx","../src/components/Layout/head.tsx","../src/utils/formatting.ts","../src/components/Markdown/link.tsx","../src/components/Video/index.tsx","../src/components/Link/variants.ts","../src/components/Link/basic.tsx","../src/components/Stream/options.tsx","../src/components/Stream/assistant.tsx","../src/components/Stream/bubble.tsx","../src/components/Stream/head.tsx","../src/components/Stream/base.tsx","../src/components/Stream/user.tsx","../src/components/AppBase/index.tsx","../node_modules/redux-persist/lib/storage/getStorage.js","../node_modules/redux-persist/lib/storage/createWebStorage.js","../node_modules/redux-persist/lib/storage/index.js","../src/middleware/intentions.ts","../src/middleware/socket.ts","../src/store/index.ts","../src/main.jsx"],"sourcesContent":["'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nconst base64 = require('base64-js')\nconst ieee754 = require('ieee754')\nconst customInspectSymbol =\n (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation\n ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation\n : null\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nconst K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n const arr = new Uint8Array(1)\n const proto = { foo: function () { return 42 } }\n Object.setPrototypeOf(proto, Uint8Array.prototype)\n Object.setPrototypeOf(arr, proto)\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n const buf = new Uint8Array(length)\n Object.setPrototypeOf(buf, Buffer.prototype)\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayView(value)\n }\n\n if (value == null) {\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof SharedArrayBuffer !== 'undefined' &&\n (isInstance(value, SharedArrayBuffer) ||\n (value && isInstance(value.buffer, SharedArrayBuffer)))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n const valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n const b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nObject.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\nObject.setPrototypeOf(Buffer, Uint8Array)\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpreted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n const length = byteLength(string, encoding) | 0\n let buf = createBuffer(length)\n\n const actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n const length = array.length < 0 ? 0 : checked(array.length) | 0\n const buf = createBuffer(length)\n for (let i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayView (arrayView) {\n if (isInstance(arrayView, Uint8Array)) {\n const copy = new Uint8Array(arrayView)\n return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)\n }\n return fromArrayLike(arrayView)\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n let buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(buf, Buffer.prototype)\n\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n const len = checked(obj.length) | 0\n const buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n let x = a.length\n let y = b.length\n\n for (let i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n let i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n const buffer = Buffer.allocUnsafe(length)\n let pos = 0\n for (i = 0; i < list.length; ++i) {\n let buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n if (pos + buf.length > buffer.length) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)\n buf.copy(buffer, pos)\n } else {\n Uint8Array.prototype.set.call(\n buffer,\n buf,\n pos\n )\n }\n } else if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n } else {\n buf.copy(buffer, pos)\n }\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n const len = string.length\n const mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n let loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coercion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n const i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n const len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (let i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n const len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (let i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n const len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (let i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n const length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n let str = ''\n const max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return ''\n}\nif (customInspectSymbol) {\n Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n let x = thisEnd - thisStart\n let y = end - start\n const len = Math.min(x, y)\n\n const thisCopy = this.slice(thisStart, thisEnd)\n const targetCopy = target.slice(start, end)\n\n for (let i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n let indexSize = 1\n let arrLength = arr.length\n let valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n let i\n if (dir) {\n let foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n let found = true\n for (let j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n const remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n const strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n let i\n for (i = 0; i < length; ++i) {\n const parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n const remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n case 'latin1':\n case 'binary':\n return asciiWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n const res = []\n\n let i = start\n while (i < end) {\n const firstByte = buf[i]\n let codePoint = null\n let bytesPerSequence = (firstByte > 0xEF)\n ? 4\n : (firstByte > 0xDF)\n ? 3\n : (firstByte > 0xBF)\n ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n let secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nconst MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n const len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n let res = ''\n let i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n const len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n let out = ''\n for (let i = start; i < end; ++i) {\n out += hexSliceLookupTable[buf[i]]\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n const bytes = buf.slice(start, end)\n let res = ''\n // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)\n for (let i = 0; i < bytes.length - 1; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n const len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n const newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(newBuf, Buffer.prototype)\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUintLE =\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUintBE =\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n let val = this[offset + --byteLength]\n let mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUint8 =\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUint16LE =\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUint16BE =\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUint32LE =\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUint32BE =\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const lo = first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24\n\n const hi = this[++offset] +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n last * 2 ** 24\n\n return BigInt(lo) + (BigInt(hi) << BigInt(32))\n})\n\nBuffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const hi = first * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n const lo = this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last\n\n return (BigInt(hi) << BigInt(32)) + BigInt(lo)\n})\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let i = byteLength\n let mul = 1\n let val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = this[offset + 4] +\n this[offset + 5] * 2 ** 8 +\n this[offset + 6] * 2 ** 16 +\n (last << 24) // Overflow\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24)\n})\n\nBuffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = (first << 24) + // Overflow\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last)\n})\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUintLE =\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let mul = 1\n let i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUintBE =\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let i = byteLength - 1\n let mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUint8 =\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUint16LE =\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUint16BE =\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUint32LE =\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUint32BE =\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction wrtBigUInt64LE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n return offset\n}\n\nfunction wrtBigUInt64BE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset + 7] = lo\n lo = lo >> 8\n buf[offset + 6] = lo\n lo = lo >> 8\n buf[offset + 5] = lo\n lo = lo >> 8\n buf[offset + 4] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset + 3] = hi\n hi = hi >> 8\n buf[offset + 2] = hi\n hi = hi >> 8\n buf[offset + 1] = hi\n hi = hi >> 8\n buf[offset] = hi\n return offset + 8\n}\n\nBuffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = 0\n let mul = 1\n let sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = byteLength - 1\n let mul = 1\n let sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nBuffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n const len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n const code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n } else if (typeof val === 'boolean') {\n val = Number(val)\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n let i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n const bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n const len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// CUSTOM ERRORS\n// =============\n\n// Simplified versions from Node, changed for Buffer-only usage\nconst errors = {}\nfunction E (sym, getMessage, Base) {\n errors[sym] = class NodeError extends Base {\n constructor () {\n super()\n\n Object.defineProperty(this, 'message', {\n value: getMessage.apply(this, arguments),\n writable: true,\n configurable: true\n })\n\n // Add the error code to the name to include it in the stack trace.\n this.name = `${this.name} [${sym}]`\n // Access the stack to generate the error message including the error code\n // from the name.\n this.stack // eslint-disable-line no-unused-expressions\n // Reset the name to the actual name.\n delete this.name\n }\n\n get code () {\n return sym\n }\n\n set code (value) {\n Object.defineProperty(this, 'code', {\n configurable: true,\n enumerable: true,\n value,\n writable: true\n })\n }\n\n toString () {\n return `${this.name} [${sym}]: ${this.message}`\n }\n }\n}\n\nE('ERR_BUFFER_OUT_OF_BOUNDS',\n function (name) {\n if (name) {\n return `${name} is outside of buffer bounds`\n }\n\n return 'Attempt to access memory outside buffer bounds'\n }, RangeError)\nE('ERR_INVALID_ARG_TYPE',\n function (name, actual) {\n return `The \"${name}\" argument must be of type number. Received type ${typeof actual}`\n }, TypeError)\nE('ERR_OUT_OF_RANGE',\n function (str, range, input) {\n let msg = `The value of \"${str}\" is out of range.`\n let received = input\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input))\n } else if (typeof input === 'bigint') {\n received = String(input)\n if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {\n received = addNumericalSeparator(received)\n }\n received += 'n'\n }\n msg += ` It must be ${range}. Received ${received}`\n return msg\n }, RangeError)\n\nfunction addNumericalSeparator (val) {\n let res = ''\n let i = val.length\n const start = val[0] === '-' ? 1 : 0\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`\n }\n return `${val.slice(0, i)}${res}`\n}\n\n// CHECK FUNCTIONS\n// ===============\n\nfunction checkBounds (buf, offset, byteLength) {\n validateNumber(offset, 'offset')\n if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {\n boundsError(offset, buf.length - (byteLength + 1))\n }\n}\n\nfunction checkIntBI (value, min, max, buf, offset, byteLength) {\n if (value > max || value < min) {\n const n = typeof min === 'bigint' ? 'n' : ''\n let range\n if (byteLength > 3) {\n if (min === 0 || min === BigInt(0)) {\n range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`\n } else {\n range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +\n `${(byteLength + 1) * 8 - 1}${n}`\n }\n } else {\n range = `>= ${min}${n} and <= ${max}${n}`\n }\n throw new errors.ERR_OUT_OF_RANGE('value', range, value)\n }\n checkBounds(buf, offset, byteLength)\n}\n\nfunction validateNumber (value, name) {\n if (typeof value !== 'number') {\n throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n}\n\nfunction boundsError (value, length, type) {\n if (Math.floor(value) !== value) {\n validateNumber(value, type)\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value)\n }\n\n if (length < 0) {\n throw new errors.ERR_BUFFER_OUT_OF_BOUNDS()\n }\n\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset',\n `>= ${type ? 1 : 0} and <= ${length}`,\n value)\n}\n\n// HELPER FUNCTIONS\n// ================\n\nconst INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n let codePoint\n const length = string.length\n let leadSurrogate = null\n const bytes = []\n\n for (let i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n let c, hi, lo\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n let i\n for (i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n// Create lookup table for `toString('hex')`\n// See: https://github.com/feross/buffer/issues/219\nconst hexSliceLookupTable = (function () {\n const alphabet = '0123456789abcdef'\n const table = new Array(256)\n for (let i = 0; i < 16; ++i) {\n const i16 = i * 16\n for (let j = 0; j < 16; ++j) {\n table[i16 + j] = alphabet[i] + alphabet[j]\n }\n }\n return table\n})()\n\n// Return not function with Error if BigInt not supported\nfunction defineBigIntMethod (fn) {\n return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn\n}\n\nfunction BufferBigIntNotDefined () {\n throw new Error('BigInt not supported')\n}\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","\"use strict\";Object.defineProperty(exports,Symbol.toStringTag,{value:\"Module\"});const t=require(\"buffer-polyfill\"),r=require(\"process\"),o=e=>e&&e.__esModule?e:{default:e},l=o(r),u=globalThis||void 0||self;Object.defineProperty(exports,\"Buffer\",{enumerable:!0,get:()=>t.Buffer});Object.defineProperty(exports,\"process\",{enumerable:!0,get:()=>l.default});exports.global=u;\n//# sourceMappingURL=index.cjs.map\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('')) {\n _frame = _frame.replace('', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%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).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('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', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%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)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%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)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie.
\n // or
). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n //
, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport React, { PureComponent } from 'react'; // eslint-disable-line import/no-unresolved\n\nexport var PersistGate =\n/*#__PURE__*/\nfunction (_PureComponent) {\n _inherits(PersistGate, _PureComponent);\n\n function PersistGate() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, PersistGate);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(PersistGate)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n bootstrapped: false\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_unsubscribe\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"handlePersistorState\", function () {\n var persistor = _this.props.persistor;\n\n var _persistor$getState = persistor.getState(),\n bootstrapped = _persistor$getState.bootstrapped;\n\n if (bootstrapped) {\n if (_this.props.onBeforeLift) {\n Promise.resolve(_this.props.onBeforeLift()).finally(function () {\n return _this.setState({\n bootstrapped: true\n });\n });\n } else {\n _this.setState({\n bootstrapped: true\n });\n }\n\n _this._unsubscribe && _this._unsubscribe();\n }\n });\n\n return _this;\n }\n\n _createClass(PersistGate, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this._unsubscribe = this.props.persistor.subscribe(this.handlePersistorState);\n this.handlePersistorState();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this._unsubscribe && this._unsubscribe();\n }\n }, {\n key: \"render\",\n value: function render() {\n if (process.env.NODE_ENV !== 'production') {\n if (typeof this.props.children === 'function' && this.props.loading) console.error('redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored.');\n }\n\n if (typeof this.props.children === 'function') {\n return this.props.children(this.state.bootstrapped);\n }\n\n return this.state.bootstrapped ? this.props.children : this.props.loading;\n }\n }]);\n\n return PersistGate;\n}(PureComponent);\n\n_defineProperty(PersistGate, \"defaultProps\", {\n children: null,\n loading: null\n});","enum Definition {\n text = 'text',\n buttons = 'buttons',\n payment = 'payment',\n video = 'video',\n image = 'image',\n email = 'email',\n}\n\nenum ScreenOrientation {\n horizontal = 'horizontal',\n vertical = 'vertical',\n}\n\nenum QueryParams {\n chat = 'utm_chat'\n}\n\nenum AllEvents {\n addToCart = 'AddToCart',\n contact = 'Contact',\n initiateCheckout = 'InitiateCheckout',\n pageView = 'PageView',\n viewContent = 'ViewContent',\n purchase = 'Purchase',\n subscribe = 'Subscribe',\n recurringSubscriptionPayment = 'RecurringSubscriptionPayment',\n cancelSubscription = 'CancelSubscription',\n purchaseFailed = 'PurchaseFailed',\n subscribeFailed = 'SubscribeFailed',\n recurringSubscriptionPaymentFailed = 'RecurringSubscriptionPaymentFailed',\n customerCreated = 'CustomerCreated',\n subscriptionChargeback = 'SubscriptionChargeback',\n subscriptionRefund = 'SubscriptionRefund',\n transactionChargeback = 'TransactionChargeback',\n transactionRefund = 'TransactionRefund',\n\n // custom events\n firstMessage = 'FirstMessage',\n linkProvided = 'LinkProvided',\n linkClicked = 'LinkClicked',\n emailField = 'EmailField',\n emailEntered = 'EmailEntered',\n emailWrong = 'EmailWrong',\n emailExist = 'EmailExist',\n priceSeen = 'PriceSeen',\n buttonClick = 'ButtonClick',\n closeClicked = 'CloseClicked',\n}\n\nenum Intentions {\n email = 'email_intent',\n payment = 'payment_intent',\n emailError = 'email_validation_error',\n emailSuccess = 'email_validation_success',\n destroy = 'payment_intent_destroy'\n}\n\nenum Roles {\n user = 'user',\n assistant = 'assistant',\n}\n\nenum Events {\n chat = 'chat',\n chatHistory = 'chat-history',\n connect = 'connect',\n error = 'error',\n disconnect = 'disconnect',\n streamStart = 'stream-start',\n streamData = 'stream-data',\n streamEnd = 'stream-end',\n streamError = 'stream-error',\n}\n\nenum Theme {\n light = 'light',\n dark = 'dark',\n}\n\nexport { AllEvents, Definition, Events, Intentions, QueryParams,Roles, ScreenOrientation, Theme }\n","\n/**\n * Retrieves certain query parameter from a URL.\n *\n * @example getQueryParam('utm_chat')\n * @param {string} param\n */\nexport const getQueryParam = (param) => {\n const urlParams = new URLSearchParams(window.location.search);\n\n return urlParams.get(param) || '';\n};\n\nconst formatDateByLocaleOptions = {\n day: 'numeric',\n month: 'long',\n year: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n};\n\n/**\n * Formats a date string according to the locale, including the date and time.\n *\n * @param {number} inputDate - The date string to be formatted.\n * @returns {string} - The formatted date and time string.\n */\nexport function formatDateByLocale(inputDate, options = formatDateByLocaleOptions) {\n const date = new Date(inputDate);\n\n const formattedDate = date.toLocaleDateString([], options);\n\n return `${formattedDate}`.toUpperCase();\n}\n\nexport function uuidV4() {\n const uuid = new Array(36);\n for (let i = 0; i < 36; i++) {\n uuid[i] = Math.floor(Math.random() * 16);\n }\n uuid[14] = 4;\n uuid[19] = uuid[19] &= ~(1 << 2);\n uuid[19] = uuid[19] |= (1 << 3);\n uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';\n return uuid.map((x) => x.toString(16)).join('');\n}\n","import { Roles, Theme } from '../config/enums';\nimport { ChatState, ConfigState, IntentionsState, MetaState } from '../interfaces/store';\nimport { uuidV4 } from '../utils';\n\nexport const meta: MetaState = {\n cid: '',\n eid: '',\n region: '',\n systemType: '',\n pd: {},\n marketing: {\n screen: {},\n lastUtmParams: {},\n utmParams: {}\n },\n};\n\nexport const config: ConfigState = {\n aiProfile: {\n name: '',\n role: '',\n imgSrc: '',\n welcome: '',\n initialMessage: [],\n },\n close: {\n href: null,\n visible: false,\n },\n translations: {},\n themeId: Theme.light,\n chatUrl: '',\n enableDevTools: false,\n isPluginMode: false,\n purpose: 'default',\n specialUrls: {},\n};\n\nexport const chat: ChatState = {\n outgoing: {\n term: '',\n user_id: '',\n role: Roles.user,\n message: '',\n },\n historyData: {},\n historyIds: [],\n error: '',\n isLoading: false,\n typingTimeoutExpired: false,\n lastGroupId: uuidV4(),\n connected: false,\n closed: false,\n isStreaming: false,\n};\n\nexport const intentions: IntentionsState = {\n email: {\n current: '',\n success: false,\n error: false,\n isLoading: false,\n },\n response: {\n isFormVisible: false,\n error: false,\n },\n payment: {\n isButtonVisible: false,\n isFormVisible: false,\n isSuccessful: false,\n error: false,\n },\n messaging: {\n isVisible: false,\n },\n link: ''\n};\n\nexport default { meta, config, intentions, chat };\n","import { createSlice, PayloadAction } from '@reduxjs/toolkit';\n\nimport { ConfigState } from '../../interfaces/store';\nimport { config as initialState } from '../../store/initialState';\n\nconst configSlice = createSlice({\n name: 'config',\n initialState,\n reducers: {\n setConfig(state, { payload }: PayloadAction) {\n state.aiProfile = { ...initialState.aiProfile, ...payload.aiProfile };\n state.translations = { ...initialState.translations, ...payload.translations };\n state.close = { ...initialState.close, ...payload.close };\n state.themeId = payload.themeId;\n state.chatUrl = payload.chatUrl;\n state.purpose = payload.purpose;\n },\n setSpecialUrls(state, { payload }) {\n state.specialUrls = { ...state.specialUrls, ...payload };\n },\n setPurpose(state, { payload }) {\n state.purpose = payload;\n },\n resetConfig(state) {\n state.aiProfile = initialState.aiProfile;\n state.themeId = initialState.themeId;\n state.translations = initialState.translations;\n state.chatUrl = initialState.chatUrl;\n },\n setTheme(state, { payload }) {\n state.themeId = payload;\n },\n resetTheme(state) {\n state.themeId = initialState.themeId;\n },\n setDevToolsStatus(state, { payload }) {\n state.enableDevTools = payload;\n },\n resetDevToolsStatus(state) {\n state.enableDevTools = initialState.enableDevTools;\n },\n togglePluginMode(state) {\n state.isPluginMode = !state.isPluginMode;\n },\n setTranslations(state, { payload }) {\n state.translations = { ...state.translations, ...payload };\n },\n },\n});\n\nexport const getConfig = (state: { config: ConfigState }) => state.config;\nexport const getDevToolsStatus = (state: { config: ConfigState }) => state.config.enableDevTools;\n\nexport const {\n setConfig,\n resetConfig,\n setTheme,\n resetTheme,\n setDevToolsStatus,\n resetDevToolsStatus,\n togglePluginMode,\n setTranslations,\n setPurpose,\n setSpecialUrls,\n} = configSlice.actions;\nexport default configSlice.reducer;\n","import { createSlice } from '@reduxjs/toolkit';\n\nimport { MetaState } from '../../interfaces/store';\nimport { meta as initialState } from '../initialState';\n\nconst configSlice = createSlice({\n name: 'meta',\n initialState,\n reducers: {\n setMeta(state, { payload }) {\n state.cid = payload.cid;\n state.eid = payload.eid;\n state.systemType = payload.systemType;\n state.pd = { ...state.pd, ...payload.pd };\n state.marketing = { ...state.marketing, ...payload.marketing };\n },\n resetMeta(state) {\n state.pd = initialState.pd;\n state.cid = initialState.cid;\n state.eid = initialState.eid;\n state.systemType = initialState.systemType;\n state.marketing = initialState.marketing;\n },\n setMarketing(state, { payload }) {\n state.marketing = { ...state.marketing, ...payload };\n },\n setPd(state, { payload }) {\n state.pd = { ...state.pd, ...payload };\n },\n setRegion(state, { payload }) {\n state.region = payload;\n }\n }\n});\n\nexport const getMeta = (state: { meta: MetaState }) => state.meta;\nexport const { setMeta, resetMeta, setMarketing, setPd, setRegion } = configSlice.actions;\nexport default configSlice.reducer;\n","import { useLayoutEffect, useState } from 'react';\nimport { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux';\n\nimport { AppDispatch, RootState } from '../store/index';\nimport { getConfig } from '../store/slices/config';\nimport { getMeta } from '../store/slices/meta';\n\ntype DispatchFunc = () => AppDispatch;\nexport const useAppDispatch: DispatchFunc = useDispatch;\nexport const useAppSelector: TypedUseSelectorHook = useSelector;\n\nexport const useWindowSize = () => {\n const [size, setSize] = useState([0, 0]);\n useLayoutEffect(() => {\n function updateSize() {\n setSize([window.innerWidth, window.innerHeight]);\n }\n window.addEventListener('resize', updateSize);\n updateSize();\n return () => window.removeEventListener('resize', updateSize);\n }, []);\n return size;\n};\n\nexport const useHeadControls = () => {\n const { themeId: theme, close } = useAppSelector(getConfig);\n const { cid, systemType, marketing } = useAppSelector(getMeta);\n\n return {\n theme,\n closeVisible: close.visible,\n cid,\n systemType,\n marketing\n };\n};\n","var l=e=>typeof e==\"boolean\"?`${e}`:e===0?\"0\":e,u=e=>!e||typeof e!=\"object\"||Object.keys(e).length===0,x=(e,o)=>JSON.stringify(e)===JSON.stringify(o),A=e=>typeof e==\"boolean\";function i(e,o){e.forEach(function(r){Array.isArray(r)?i(r,o):o.push(r);});}function y(e){let o=[];return i(e,o),o}var a=(...e)=>y(e).filter(Boolean),p=(e,o)=>{let r={},c=Object.keys(e),f=Object.keys(o);for(let t of c)if(f.includes(t)){let s=e[t],n=o[t];typeof s==\"object\"&&typeof n==\"object\"?r[t]=p(s,n):Array.isArray(s)||Array.isArray(n)?r[t]=a(n,s):r[t]=n+\" \"+s;}else r[t]=e[t];for(let t of f)c.includes(t)||(r[t]=o[t]);return r},g=e=>!e||typeof e!=\"string\"?e:e.replace(/\\s+/g,\" \").trim();\n\nexport { l as a, u as b, x as c, A as d, y as e, a as f, p as g, g as h };\n","/**\n * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.\n *\n * Specifically:\n * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js\n * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts\n *\n * Original code has MIT license: Copyright (c) Luke Edwards (lukeed.com)\n */\nfunction twJoin() {\n var index = 0;\n var argument;\n var resolvedValue;\n var string = '';\n while (index < arguments.length) {\n if (argument = arguments[index++]) {\n if (resolvedValue = toValue(argument)) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\nfunction toValue(mix) {\n if (typeof mix === 'string') {\n return mix;\n }\n var resolvedValue;\n var string = '';\n for (var k = 0; k < mix.length; k++) {\n if (mix[k]) {\n if (resolvedValue = toValue(mix[k])) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\n\nexport { twJoin };\n//# sourceMappingURL=tw-join.mjs.map\n","var CLASS_PART_SEPARATOR = '-';\nfunction createClassUtils(config) {\n var classMap = createClassMap(config);\n var conflictingClassGroups = config.conflictingClassGroups,\n _config$conflictingCl = config.conflictingClassGroupModifiers,\n conflictingClassGroupModifiers = _config$conflictingCl === void 0 ? {} : _config$conflictingCl;\n function getClassGroupId(className) {\n var classParts = className.split(CLASS_PART_SEPARATOR);\n // Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and remove it from classParts.\n if (classParts[0] === '' && classParts.length !== 1) {\n classParts.shift();\n }\n return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);\n }\n function getConflictingClassGroupIds(classGroupId, hasPostfixModifier) {\n var conflicts = conflictingClassGroups[classGroupId] || [];\n if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {\n return [].concat(conflicts, conflictingClassGroupModifiers[classGroupId]);\n }\n return conflicts;\n }\n return {\n getClassGroupId: getClassGroupId,\n getConflictingClassGroupIds: getConflictingClassGroupIds\n };\n}\nfunction getGroupRecursive(classParts, classPartObject) {\n if (classParts.length === 0) {\n return classPartObject.classGroupId;\n }\n var currentClassPart = classParts[0];\n var nextClassPartObject = classPartObject.nextPart.get(currentClassPart);\n var classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;\n if (classGroupFromNextClassPart) {\n return classGroupFromNextClassPart;\n }\n if (classPartObject.validators.length === 0) {\n return undefined;\n }\n var classRest = classParts.join(CLASS_PART_SEPARATOR);\n return classPartObject.validators.find(function (_ref) {\n var validator = _ref.validator;\n return validator(classRest);\n })?.classGroupId;\n}\nvar arbitraryPropertyRegex = /^\\[(.+)\\]$/;\nfunction getGroupIdForArbitraryProperty(className) {\n if (arbitraryPropertyRegex.test(className)) {\n var arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];\n var property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));\n if (property) {\n // I use two dots here because one dot is used as prefix for class groups in plugins\n return 'arbitrary..' + property;\n }\n }\n}\n/**\n * Exported for testing only\n */\nfunction createClassMap(config) {\n var theme = config.theme,\n prefix = config.prefix;\n var classMap = {\n nextPart: new Map(),\n validators: []\n };\n var prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);\n prefixedClassGroupEntries.forEach(function (_ref2) {\n var classGroupId = _ref2[0],\n classGroup = _ref2[1];\n processClassesRecursively(classGroup, classMap, classGroupId, theme);\n });\n return classMap;\n}\nfunction processClassesRecursively(classGroup, classPartObject, classGroupId, theme) {\n classGroup.forEach(function (classDefinition) {\n if (typeof classDefinition === 'string') {\n var classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);\n classPartObjectToEdit.classGroupId = classGroupId;\n return;\n }\n if (typeof classDefinition === 'function') {\n if (isThemeGetter(classDefinition)) {\n processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);\n return;\n }\n classPartObject.validators.push({\n validator: classDefinition,\n classGroupId: classGroupId\n });\n return;\n }\n Object.entries(classDefinition).forEach(function (_ref3) {\n var key = _ref3[0],\n classGroup = _ref3[1];\n processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);\n });\n });\n}\nfunction getPart(classPartObject, path) {\n var currentClassPartObject = classPartObject;\n path.split(CLASS_PART_SEPARATOR).forEach(function (pathPart) {\n if (!currentClassPartObject.nextPart.has(pathPart)) {\n currentClassPartObject.nextPart.set(pathPart, {\n nextPart: new Map(),\n validators: []\n });\n }\n currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);\n });\n return currentClassPartObject;\n}\nfunction isThemeGetter(func) {\n return func.isThemeGetter;\n}\nfunction getPrefixedClassGroupEntries(classGroupEntries, prefix) {\n if (!prefix) {\n return classGroupEntries;\n }\n return classGroupEntries.map(function (_ref4) {\n var classGroupId = _ref4[0],\n classGroup = _ref4[1];\n var prefixedClassGroup = classGroup.map(function (classDefinition) {\n if (typeof classDefinition === 'string') {\n return prefix + classDefinition;\n }\n if (typeof classDefinition === 'object') {\n return Object.fromEntries(Object.entries(classDefinition).map(function (_ref5) {\n var key = _ref5[0],\n value = _ref5[1];\n return [prefix + key, value];\n }));\n }\n return classDefinition;\n });\n return [classGroupId, prefixedClassGroup];\n });\n}\n\nexport { createClassMap, createClassUtils };\n//# sourceMappingURL=class-utils.mjs.map\n","// LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance\nfunction createLruCache(maxCacheSize) {\n if (maxCacheSize < 1) {\n return {\n get: function get() {\n return undefined;\n },\n set: function set() {}\n };\n }\n var cacheSize = 0;\n var cache = new Map();\n var previousCache = new Map();\n function update(key, value) {\n cache.set(key, value);\n cacheSize++;\n if (cacheSize > maxCacheSize) {\n cacheSize = 0;\n previousCache = cache;\n cache = new Map();\n }\n }\n return {\n get: function get(key) {\n var value = cache.get(key);\n if (value !== undefined) {\n return value;\n }\n if ((value = previousCache.get(key)) !== undefined) {\n update(key, value);\n return value;\n }\n },\n set: function set(key, value) {\n if (cache.has(key)) {\n cache.set(key, value);\n } else {\n update(key, value);\n }\n }\n };\n}\n\nexport { createLruCache };\n//# sourceMappingURL=lru-cache.mjs.map\n","var IMPORTANT_MODIFIER = '!';\nfunction createSplitModifiers(config) {\n var separator = config.separator || ':';\n var isSeparatorSingleCharacter = separator.length === 1;\n var firstSeparatorCharacter = separator[0];\n var separatorLength = separator.length;\n // splitModifiers inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js\n return function splitModifiers(className) {\n var modifiers = [];\n var bracketDepth = 0;\n var modifierStart = 0;\n var postfixModifierPosition;\n for (var index = 0; index < className.length; index++) {\n var currentCharacter = className[index];\n if (bracketDepth === 0) {\n if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {\n modifiers.push(className.slice(modifierStart, index));\n modifierStart = index + separatorLength;\n continue;\n }\n if (currentCharacter === '/') {\n postfixModifierPosition = index;\n continue;\n }\n }\n if (currentCharacter === '[') {\n bracketDepth++;\n } else if (currentCharacter === ']') {\n bracketDepth--;\n }\n }\n var baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);\n var hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);\n var baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;\n var maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;\n return {\n modifiers: modifiers,\n hasImportantModifier: hasImportantModifier,\n baseClassName: baseClassName,\n maybePostfixModifierPosition: maybePostfixModifierPosition\n };\n };\n}\n/**\n * Sorts modifiers according to following schema:\n * - Predefined modifiers are sorted alphabetically\n * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it\n */\nfunction sortModifiers(modifiers) {\n if (modifiers.length <= 1) {\n return modifiers;\n }\n var sortedModifiers = [];\n var unsortedModifiers = [];\n modifiers.forEach(function (modifier) {\n var isArbitraryVariant = modifier[0] === '[';\n if (isArbitraryVariant) {\n sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort().concat([modifier]));\n unsortedModifiers = [];\n } else {\n unsortedModifiers.push(modifier);\n }\n });\n sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort());\n return sortedModifiers;\n}\n\nexport { IMPORTANT_MODIFIER, createSplitModifiers, sortModifiers };\n//# sourceMappingURL=modifier-utils.mjs.map\n","import { createClassUtils } from './class-utils.mjs';\nimport { createLruCache } from './lru-cache.mjs';\nimport { createSplitModifiers } from './modifier-utils.mjs';\n\nfunction createConfigUtils(config) {\n return {\n cache: createLruCache(config.cacheSize),\n splitModifiers: createSplitModifiers(config),\n ...createClassUtils(config)\n };\n}\n\nexport { createConfigUtils };\n//# sourceMappingURL=config-utils.mjs.map\n","import { sortModifiers, IMPORTANT_MODIFIER } from './modifier-utils.mjs';\n\nvar SPLIT_CLASSES_REGEX = /\\s+/;\nfunction mergeClassList(classList, configUtils) {\n var splitModifiers = configUtils.splitModifiers,\n getClassGroupId = configUtils.getClassGroupId,\n getConflictingClassGroupIds = configUtils.getConflictingClassGroupIds;\n /**\n * Set of classGroupIds in following format:\n * `{importantModifier}{variantModifiers}{classGroupId}`\n * @example 'float'\n * @example 'hover:focus:bg-color'\n * @example 'md:!pr'\n */\n var classGroupsInConflict = new Set();\n return classList.trim().split(SPLIT_CLASSES_REGEX).map(function (originalClassName) {\n var _splitModifiers = splitModifiers(originalClassName),\n modifiers = _splitModifiers.modifiers,\n hasImportantModifier = _splitModifiers.hasImportantModifier,\n baseClassName = _splitModifiers.baseClassName,\n maybePostfixModifierPosition = _splitModifiers.maybePostfixModifierPosition;\n var classGroupId = getClassGroupId(maybePostfixModifierPosition ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);\n var hasPostfixModifier = Boolean(maybePostfixModifierPosition);\n if (!classGroupId) {\n if (!maybePostfixModifierPosition) {\n return {\n isTailwindClass: false,\n originalClassName: originalClassName\n };\n }\n classGroupId = getClassGroupId(baseClassName);\n if (!classGroupId) {\n return {\n isTailwindClass: false,\n originalClassName: originalClassName\n };\n }\n hasPostfixModifier = false;\n }\n var variantModifier = sortModifiers(modifiers).join(':');\n var modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;\n return {\n isTailwindClass: true,\n modifierId: modifierId,\n classGroupId: classGroupId,\n originalClassName: originalClassName,\n hasPostfixModifier: hasPostfixModifier\n };\n }).reverse()\n // Last class in conflict wins, so we need to filter conflicting classes in reverse order.\n .filter(function (parsed) {\n if (!parsed.isTailwindClass) {\n return true;\n }\n var modifierId = parsed.modifierId,\n classGroupId = parsed.classGroupId,\n hasPostfixModifier = parsed.hasPostfixModifier;\n var classId = modifierId + classGroupId;\n if (classGroupsInConflict.has(classId)) {\n return false;\n }\n classGroupsInConflict.add(classId);\n getConflictingClassGroupIds(classGroupId, hasPostfixModifier).forEach(function (group) {\n return classGroupsInConflict.add(modifierId + group);\n });\n return true;\n }).reverse().map(function (parsed) {\n return parsed.originalClassName;\n }).join(' ');\n}\n\nexport { mergeClassList };\n//# sourceMappingURL=merge-classlist.mjs.map\n","import { createConfigUtils } from './config-utils.mjs';\nimport { mergeClassList } from './merge-classlist.mjs';\nimport { twJoin } from './tw-join.mjs';\n\nfunction createTailwindMerge() {\n for (var _len = arguments.length, createConfig = new Array(_len), _key = 0; _key < _len; _key++) {\n createConfig[_key] = arguments[_key];\n }\n var configUtils;\n var cacheGet;\n var cacheSet;\n var functionToCall = initTailwindMerge;\n function initTailwindMerge(classList) {\n var firstCreateConfig = createConfig[0],\n restCreateConfig = createConfig.slice(1);\n var config = restCreateConfig.reduce(function (previousConfig, createConfigCurrent) {\n return createConfigCurrent(previousConfig);\n }, firstCreateConfig());\n configUtils = createConfigUtils(config);\n cacheGet = configUtils.cache.get;\n cacheSet = configUtils.cache.set;\n functionToCall = tailwindMerge;\n return tailwindMerge(classList);\n }\n function tailwindMerge(classList) {\n var cachedResult = cacheGet(classList);\n if (cachedResult) {\n return cachedResult;\n }\n var result = mergeClassList(classList, configUtils);\n cacheSet(classList, result);\n return result;\n }\n return function callTailwindMerge() {\n return functionToCall(twJoin.apply(null, arguments));\n };\n}\n\nexport { createTailwindMerge };\n//# sourceMappingURL=create-tailwind-merge.mjs.map\n","function fromTheme(key) {\n var themeGetter = function themeGetter(theme) {\n return theme[key] || [];\n };\n themeGetter.isThemeGetter = true;\n return themeGetter;\n}\n\nexport { fromTheme };\n//# sourceMappingURL=from-theme.mjs.map\n","var arbitraryValueRegex = /^\\[(?:([a-z-]+):)?(.+)\\]$/i;\nvar fractionRegex = /^\\d+\\/\\d+$/;\nvar stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);\nvar tshirtUnitRegex = /^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/;\nvar lengthUnitRegex = /\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/;\n// Shadow always begins with x and y offset separated by underscore\nvar shadowRegex = /^-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/;\nfunction isLength(value) {\n return isNumber(value) || stringLengths.has(value) || fractionRegex.test(value) || isArbitraryLength(value);\n}\nfunction isArbitraryLength(value) {\n return getIsArbitraryValue(value, 'length', isLengthOnly);\n}\nfunction isArbitrarySize(value) {\n return getIsArbitraryValue(value, 'size', isNever);\n}\nfunction isArbitraryPosition(value) {\n return getIsArbitraryValue(value, 'position', isNever);\n}\nfunction isArbitraryUrl(value) {\n return getIsArbitraryValue(value, 'url', isUrl);\n}\nfunction isArbitraryNumber(value) {\n return getIsArbitraryValue(value, 'number', isNumber);\n}\n/**\n * @deprecated Will be removed in next major version. Use `isArbitraryNumber` instead.\n */\nvar isArbitraryWeight = isArbitraryNumber;\nfunction isNumber(value) {\n return !Number.isNaN(Number(value));\n}\nfunction isPercent(value) {\n return value.endsWith('%') && isNumber(value.slice(0, -1));\n}\nfunction isInteger(value) {\n return isIntegerOnly(value) || getIsArbitraryValue(value, 'number', isIntegerOnly);\n}\nfunction isArbitraryValue(value) {\n return arbitraryValueRegex.test(value);\n}\nfunction isAny() {\n return true;\n}\nfunction isTshirtSize(value) {\n return tshirtUnitRegex.test(value);\n}\nfunction isArbitraryShadow(value) {\n return getIsArbitraryValue(value, '', isShadow);\n}\nfunction getIsArbitraryValue(value, label, testValue) {\n var result = arbitraryValueRegex.exec(value);\n if (result) {\n if (result[1]) {\n return result[1] === label;\n }\n return testValue(result[2]);\n }\n return false;\n}\nfunction isLengthOnly(value) {\n return lengthUnitRegex.test(value);\n}\nfunction isNever() {\n return false;\n}\nfunction isUrl(value) {\n return value.startsWith('url(');\n}\nfunction isIntegerOnly(value) {\n return Number.isInteger(Number(value));\n}\nfunction isShadow(value) {\n return shadowRegex.test(value);\n}\n\nexport { isAny, isArbitraryLength, isArbitraryNumber, isArbitraryPosition, isArbitraryShadow, isArbitrarySize, isArbitraryUrl, isArbitraryValue, isArbitraryWeight, isInteger, isLength, isNumber, isPercent, isTshirtSize };\n//# sourceMappingURL=validators.mjs.map\n","import { fromTheme } from './from-theme.mjs';\nimport { isAny, isLength, isTshirtSize, isArbitraryValue, isPercent, isArbitraryLength, isInteger, isArbitraryNumber, isNumber, isArbitraryPosition, isArbitrarySize, isArbitraryUrl, isArbitraryShadow } from './validators.mjs';\n\nfunction getDefaultConfig() {\n var colors = fromTheme('colors');\n var spacing = fromTheme('spacing');\n var blur = fromTheme('blur');\n var brightness = fromTheme('brightness');\n var borderColor = fromTheme('borderColor');\n var borderRadius = fromTheme('borderRadius');\n var borderSpacing = fromTheme('borderSpacing');\n var borderWidth = fromTheme('borderWidth');\n var contrast = fromTheme('contrast');\n var grayscale = fromTheme('grayscale');\n var hueRotate = fromTheme('hueRotate');\n var invert = fromTheme('invert');\n var gap = fromTheme('gap');\n var gradientColorStops = fromTheme('gradientColorStops');\n var gradientColorStopPositions = fromTheme('gradientColorStopPositions');\n var inset = fromTheme('inset');\n var margin = fromTheme('margin');\n var opacity = fromTheme('opacity');\n var padding = fromTheme('padding');\n var saturate = fromTheme('saturate');\n var scale = fromTheme('scale');\n var sepia = fromTheme('sepia');\n var skew = fromTheme('skew');\n var space = fromTheme('space');\n var translate = fromTheme('translate');\n var getOverscroll = function getOverscroll() {\n return ['auto', 'contain', 'none'];\n };\n var getOverflow = function getOverflow() {\n return ['auto', 'hidden', 'clip', 'visible', 'scroll'];\n };\n var getSpacingWithAutoAndArbitrary = function getSpacingWithAutoAndArbitrary() {\n return ['auto', isArbitraryValue, spacing];\n };\n var getSpacingWithArbitrary = function getSpacingWithArbitrary() {\n return [isArbitraryValue, spacing];\n };\n var getLengthWithEmpty = function getLengthWithEmpty() {\n return ['', isLength];\n };\n var getNumberWithAutoAndArbitrary = function getNumberWithAutoAndArbitrary() {\n return ['auto', isNumber, isArbitraryValue];\n };\n var getPositions = function getPositions() {\n return ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];\n };\n var getLineStyles = function getLineStyles() {\n return ['solid', 'dashed', 'dotted', 'double', 'none'];\n };\n var getBlendModes = function getBlendModes() {\n return ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity', 'plus-lighter'];\n };\n var getAlign = function getAlign() {\n return ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];\n };\n var getZeroAndEmpty = function getZeroAndEmpty() {\n return ['', '0', isArbitraryValue];\n };\n var getBreaks = function getBreaks() {\n return ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];\n };\n var getNumber = function getNumber() {\n return [isNumber, isArbitraryNumber];\n };\n var getNumberAndArbitrary = function getNumberAndArbitrary() {\n return [isNumber, isArbitraryValue];\n };\n return {\n cacheSize: 500,\n theme: {\n colors: [isAny],\n spacing: [isLength],\n blur: ['none', '', isTshirtSize, isArbitraryValue],\n brightness: getNumber(),\n borderColor: [colors],\n borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],\n borderSpacing: getSpacingWithArbitrary(),\n borderWidth: getLengthWithEmpty(),\n contrast: getNumber(),\n grayscale: getZeroAndEmpty(),\n hueRotate: getNumberAndArbitrary(),\n invert: getZeroAndEmpty(),\n gap: getSpacingWithArbitrary(),\n gradientColorStops: [colors],\n gradientColorStopPositions: [isPercent, isArbitraryLength],\n inset: getSpacingWithAutoAndArbitrary(),\n margin: getSpacingWithAutoAndArbitrary(),\n opacity: getNumber(),\n padding: getSpacingWithArbitrary(),\n saturate: getNumber(),\n scale: getNumber(),\n sepia: getZeroAndEmpty(),\n skew: getNumberAndArbitrary(),\n space: getSpacingWithArbitrary(),\n translate: getSpacingWithArbitrary()\n },\n classGroups: {\n // Layout\n /**\n * Aspect Ratio\n * @see https://tailwindcss.com/docs/aspect-ratio\n */\n aspect: [{\n aspect: ['auto', 'square', 'video', isArbitraryValue]\n }],\n /**\n * Container\n * @see https://tailwindcss.com/docs/container\n */\n container: ['container'],\n /**\n * Columns\n * @see https://tailwindcss.com/docs/columns\n */\n columns: [{\n columns: [isTshirtSize]\n }],\n /**\n * Break After\n * @see https://tailwindcss.com/docs/break-after\n */\n 'break-after': [{\n 'break-after': getBreaks()\n }],\n /**\n * Break Before\n * @see https://tailwindcss.com/docs/break-before\n */\n 'break-before': [{\n 'break-before': getBreaks()\n }],\n /**\n * Break Inside\n * @see https://tailwindcss.com/docs/break-inside\n */\n 'break-inside': [{\n 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']\n }],\n /**\n * Box Decoration Break\n * @see https://tailwindcss.com/docs/box-decoration-break\n */\n 'box-decoration': [{\n 'box-decoration': ['slice', 'clone']\n }],\n /**\n * Box Sizing\n * @see https://tailwindcss.com/docs/box-sizing\n */\n box: [{\n box: ['border', 'content']\n }],\n /**\n * Display\n * @see https://tailwindcss.com/docs/display\n */\n display: ['block', 'inline-block', 'inline', 'flex', 'inline-flex', 'table', 'inline-table', 'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row-group', 'table-row', 'flow-root', 'grid', 'inline-grid', 'contents', 'list-item', 'hidden'],\n /**\n * Floats\n * @see https://tailwindcss.com/docs/float\n */\n \"float\": [{\n \"float\": ['right', 'left', 'none']\n }],\n /**\n * Clear\n * @see https://tailwindcss.com/docs/clear\n */\n clear: [{\n clear: ['left', 'right', 'both', 'none']\n }],\n /**\n * Isolation\n * @see https://tailwindcss.com/docs/isolation\n */\n isolation: ['isolate', 'isolation-auto'],\n /**\n * Object Fit\n * @see https://tailwindcss.com/docs/object-fit\n */\n 'object-fit': [{\n object: ['contain', 'cover', 'fill', 'none', 'scale-down']\n }],\n /**\n * Object Position\n * @see https://tailwindcss.com/docs/object-position\n */\n 'object-position': [{\n object: [].concat(getPositions(), [isArbitraryValue])\n }],\n /**\n * Overflow\n * @see https://tailwindcss.com/docs/overflow\n */\n overflow: [{\n overflow: getOverflow()\n }],\n /**\n * Overflow X\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-x': [{\n 'overflow-x': getOverflow()\n }],\n /**\n * Overflow Y\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-y': [{\n 'overflow-y': getOverflow()\n }],\n /**\n * Overscroll Behavior\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n overscroll: [{\n overscroll: getOverscroll()\n }],\n /**\n * Overscroll Behavior X\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-x': [{\n 'overscroll-x': getOverscroll()\n }],\n /**\n * Overscroll Behavior Y\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-y': [{\n 'overscroll-y': getOverscroll()\n }],\n /**\n * Position\n * @see https://tailwindcss.com/docs/position\n */\n position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],\n /**\n * Top / Right / Bottom / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n inset: [{\n inset: [inset]\n }],\n /**\n * Right / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-x': [{\n 'inset-x': [inset]\n }],\n /**\n * Top / Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-y': [{\n 'inset-y': [inset]\n }],\n /**\n * Start\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n start: [{\n start: [inset]\n }],\n /**\n * End\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n end: [{\n end: [inset]\n }],\n /**\n * Top\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n top: [{\n top: [inset]\n }],\n /**\n * Right\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n right: [{\n right: [inset]\n }],\n /**\n * Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n bottom: [{\n bottom: [inset]\n }],\n /**\n * Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n left: [{\n left: [inset]\n }],\n /**\n * Visibility\n * @see https://tailwindcss.com/docs/visibility\n */\n visibility: ['visible', 'invisible', 'collapse'],\n /**\n * Z-Index\n * @see https://tailwindcss.com/docs/z-index\n */\n z: [{\n z: ['auto', isInteger]\n }],\n // Flexbox and Grid\n /**\n * Flex Basis\n * @see https://tailwindcss.com/docs/flex-basis\n */\n basis: [{\n basis: getSpacingWithAutoAndArbitrary()\n }],\n /**\n * Flex Direction\n * @see https://tailwindcss.com/docs/flex-direction\n */\n 'flex-direction': [{\n flex: ['row', 'row-reverse', 'col', 'col-reverse']\n }],\n /**\n * Flex Wrap\n * @see https://tailwindcss.com/docs/flex-wrap\n */\n 'flex-wrap': [{\n flex: ['wrap', 'wrap-reverse', 'nowrap']\n }],\n /**\n * Flex\n * @see https://tailwindcss.com/docs/flex\n */\n flex: [{\n flex: ['1', 'auto', 'initial', 'none', isArbitraryValue]\n }],\n /**\n * Flex Grow\n * @see https://tailwindcss.com/docs/flex-grow\n */\n grow: [{\n grow: getZeroAndEmpty()\n }],\n /**\n * Flex Shrink\n * @see https://tailwindcss.com/docs/flex-shrink\n */\n shrink: [{\n shrink: getZeroAndEmpty()\n }],\n /**\n * Order\n * @see https://tailwindcss.com/docs/order\n */\n order: [{\n order: ['first', 'last', 'none', isInteger]\n }],\n /**\n * Grid Template Columns\n * @see https://tailwindcss.com/docs/grid-template-columns\n */\n 'grid-cols': [{\n 'grid-cols': [isAny]\n }],\n /**\n * Grid Column Start / End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start-end': [{\n col: ['auto', {\n span: ['full', isInteger]\n }, isArbitraryValue]\n }],\n /**\n * Grid Column Start\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start': [{\n 'col-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Column End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-end': [{\n 'col-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Template Rows\n * @see https://tailwindcss.com/docs/grid-template-rows\n */\n 'grid-rows': [{\n 'grid-rows': [isAny]\n }],\n /**\n * Grid Row Start / End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start-end': [{\n row: ['auto', {\n span: [isInteger]\n }, isArbitraryValue]\n }],\n /**\n * Grid Row Start\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start': [{\n 'row-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Row End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-end': [{\n 'row-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Auto Flow\n * @see https://tailwindcss.com/docs/grid-auto-flow\n */\n 'grid-flow': [{\n 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']\n }],\n /**\n * Grid Auto Columns\n * @see https://tailwindcss.com/docs/grid-auto-columns\n */\n 'auto-cols': [{\n 'auto-cols': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Grid Auto Rows\n * @see https://tailwindcss.com/docs/grid-auto-rows\n */\n 'auto-rows': [{\n 'auto-rows': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Gap\n * @see https://tailwindcss.com/docs/gap\n */\n gap: [{\n gap: [gap]\n }],\n /**\n * Gap X\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-x': [{\n 'gap-x': [gap]\n }],\n /**\n * Gap Y\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-y': [{\n 'gap-y': [gap]\n }],\n /**\n * Justify Content\n * @see https://tailwindcss.com/docs/justify-content\n */\n 'justify-content': [{\n justify: ['normal'].concat(getAlign())\n }],\n /**\n * Justify Items\n * @see https://tailwindcss.com/docs/justify-items\n */\n 'justify-items': [{\n 'justify-items': ['start', 'end', 'center', 'stretch']\n }],\n /**\n * Justify Self\n * @see https://tailwindcss.com/docs/justify-self\n */\n 'justify-self': [{\n 'justify-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n /**\n * Align Content\n * @see https://tailwindcss.com/docs/align-content\n */\n 'align-content': [{\n content: ['normal'].concat(getAlign(), ['baseline'])\n }],\n /**\n * Align Items\n * @see https://tailwindcss.com/docs/align-items\n */\n 'align-items': [{\n items: ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Align Self\n * @see https://tailwindcss.com/docs/align-self\n */\n 'align-self': [{\n self: ['auto', 'start', 'end', 'center', 'stretch', 'baseline']\n }],\n /**\n * Place Content\n * @see https://tailwindcss.com/docs/place-content\n */\n 'place-content': [{\n 'place-content': [].concat(getAlign(), ['baseline'])\n }],\n /**\n * Place Items\n * @see https://tailwindcss.com/docs/place-items\n */\n 'place-items': [{\n 'place-items': ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Place Self\n * @see https://tailwindcss.com/docs/place-self\n */\n 'place-self': [{\n 'place-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n // Spacing\n /**\n * Padding\n * @see https://tailwindcss.com/docs/padding\n */\n p: [{\n p: [padding]\n }],\n /**\n * Padding X\n * @see https://tailwindcss.com/docs/padding\n */\n px: [{\n px: [padding]\n }],\n /**\n * Padding Y\n * @see https://tailwindcss.com/docs/padding\n */\n py: [{\n py: [padding]\n }],\n /**\n * Padding Start\n * @see https://tailwindcss.com/docs/padding\n */\n ps: [{\n ps: [padding]\n }],\n /**\n * Padding End\n * @see https://tailwindcss.com/docs/padding\n */\n pe: [{\n pe: [padding]\n }],\n /**\n * Padding Top\n * @see https://tailwindcss.com/docs/padding\n */\n pt: [{\n pt: [padding]\n }],\n /**\n * Padding Right\n * @see https://tailwindcss.com/docs/padding\n */\n pr: [{\n pr: [padding]\n }],\n /**\n * Padding Bottom\n * @see https://tailwindcss.com/docs/padding\n */\n pb: [{\n pb: [padding]\n }],\n /**\n * Padding Left\n * @see https://tailwindcss.com/docs/padding\n */\n pl: [{\n pl: [padding]\n }],\n /**\n * Margin\n * @see https://tailwindcss.com/docs/margin\n */\n m: [{\n m: [margin]\n }],\n /**\n * Margin X\n * @see https://tailwindcss.com/docs/margin\n */\n mx: [{\n mx: [margin]\n }],\n /**\n * Margin Y\n * @see https://tailwindcss.com/docs/margin\n */\n my: [{\n my: [margin]\n }],\n /**\n * Margin Start\n * @see https://tailwindcss.com/docs/margin\n */\n ms: [{\n ms: [margin]\n }],\n /**\n * Margin End\n * @see https://tailwindcss.com/docs/margin\n */\n me: [{\n me: [margin]\n }],\n /**\n * Margin Top\n * @see https://tailwindcss.com/docs/margin\n */\n mt: [{\n mt: [margin]\n }],\n /**\n * Margin Right\n * @see https://tailwindcss.com/docs/margin\n */\n mr: [{\n mr: [margin]\n }],\n /**\n * Margin Bottom\n * @see https://tailwindcss.com/docs/margin\n */\n mb: [{\n mb: [margin]\n }],\n /**\n * Margin Left\n * @see https://tailwindcss.com/docs/margin\n */\n ml: [{\n ml: [margin]\n }],\n /**\n * Space Between X\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x': [{\n 'space-x': [space]\n }],\n /**\n * Space Between X Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x-reverse': ['space-x-reverse'],\n /**\n * Space Between Y\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y': [{\n 'space-y': [space]\n }],\n /**\n * Space Between Y Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y-reverse': ['space-y-reverse'],\n // Sizing\n /**\n * Width\n * @see https://tailwindcss.com/docs/width\n */\n w: [{\n w: ['auto', 'min', 'max', 'fit', isArbitraryValue, spacing]\n }],\n /**\n * Min-Width\n * @see https://tailwindcss.com/docs/min-width\n */\n 'min-w': [{\n 'min-w': ['min', 'max', 'fit', isArbitraryValue, isLength]\n }],\n /**\n * Max-Width\n * @see https://tailwindcss.com/docs/max-width\n */\n 'max-w': [{\n 'max-w': ['0', 'none', 'full', 'min', 'max', 'fit', 'prose', {\n screen: [isTshirtSize]\n }, isTshirtSize, isArbitraryValue]\n }],\n /**\n * Height\n * @see https://tailwindcss.com/docs/height\n */\n h: [{\n h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']\n }],\n /**\n * Min-Height\n * @see https://tailwindcss.com/docs/min-height\n */\n 'min-h': [{\n 'min-h': ['min', 'max', 'fit', isArbitraryValue, isLength]\n }],\n /**\n * Max-Height\n * @see https://tailwindcss.com/docs/max-height\n */\n 'max-h': [{\n 'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit']\n }],\n // Typography\n /**\n * Font Size\n * @see https://tailwindcss.com/docs/font-size\n */\n 'font-size': [{\n text: ['base', isTshirtSize, isArbitraryLength]\n }],\n /**\n * Font Smoothing\n * @see https://tailwindcss.com/docs/font-smoothing\n */\n 'font-smoothing': ['antialiased', 'subpixel-antialiased'],\n /**\n * Font Style\n * @see https://tailwindcss.com/docs/font-style\n */\n 'font-style': ['italic', 'not-italic'],\n /**\n * Font Weight\n * @see https://tailwindcss.com/docs/font-weight\n */\n 'font-weight': [{\n font: ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black', isArbitraryNumber]\n }],\n /**\n * Font Family\n * @see https://tailwindcss.com/docs/font-family\n */\n 'font-family': [{\n font: [isAny]\n }],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-normal': ['normal-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-ordinal': ['ordinal'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-slashed-zero': ['slashed-zero'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-figure': ['lining-nums', 'oldstyle-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-spacing': ['proportional-nums', 'tabular-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-fraction': ['diagonal-fractions', 'stacked-fractons'],\n /**\n * Letter Spacing\n * @see https://tailwindcss.com/docs/letter-spacing\n */\n tracking: [{\n tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest', isArbitraryValue]\n }],\n /**\n * Line Clamp\n * @see https://tailwindcss.com/docs/line-clamp\n */\n 'line-clamp': [{\n 'line-clamp': ['none', isNumber, isArbitraryNumber]\n }],\n /**\n * Line Height\n * @see https://tailwindcss.com/docs/line-height\n */\n leading: [{\n leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isArbitraryValue, isLength]\n }],\n /**\n * List Style Image\n * @see https://tailwindcss.com/docs/list-style-image\n */\n 'list-image': [{\n 'list-image': ['none', isArbitraryValue]\n }],\n /**\n * List Style Type\n * @see https://tailwindcss.com/docs/list-style-type\n */\n 'list-style-type': [{\n list: ['none', 'disc', 'decimal', isArbitraryValue]\n }],\n /**\n * List Style Position\n * @see https://tailwindcss.com/docs/list-style-position\n */\n 'list-style-position': [{\n list: ['inside', 'outside']\n }],\n /**\n * Placeholder Color\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/placeholder-color\n */\n 'placeholder-color': [{\n placeholder: [colors]\n }],\n /**\n * Placeholder Opacity\n * @see https://tailwindcss.com/docs/placeholder-opacity\n */\n 'placeholder-opacity': [{\n 'placeholder-opacity': [opacity]\n }],\n /**\n * Text Alignment\n * @see https://tailwindcss.com/docs/text-align\n */\n 'text-alignment': [{\n text: ['left', 'center', 'right', 'justify', 'start', 'end']\n }],\n /**\n * Text Color\n * @see https://tailwindcss.com/docs/text-color\n */\n 'text-color': [{\n text: [colors]\n }],\n /**\n * Text Opacity\n * @see https://tailwindcss.com/docs/text-opacity\n */\n 'text-opacity': [{\n 'text-opacity': [opacity]\n }],\n /**\n * Text Decoration\n * @see https://tailwindcss.com/docs/text-decoration\n */\n 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],\n /**\n * Text Decoration Style\n * @see https://tailwindcss.com/docs/text-decoration-style\n */\n 'text-decoration-style': [{\n decoration: [].concat(getLineStyles(), ['wavy'])\n }],\n /**\n * Text Decoration Thickness\n * @see https://tailwindcss.com/docs/text-decoration-thickness\n */\n 'text-decoration-thickness': [{\n decoration: ['auto', 'from-font', isLength]\n }],\n /**\n * Text Underline Offset\n * @see https://tailwindcss.com/docs/text-underline-offset\n */\n 'underline-offset': [{\n 'underline-offset': ['auto', isArbitraryValue, isLength]\n }],\n /**\n * Text Decoration Color\n * @see https://tailwindcss.com/docs/text-decoration-color\n */\n 'text-decoration-color': [{\n decoration: [colors]\n }],\n /**\n * Text Transform\n * @see https://tailwindcss.com/docs/text-transform\n */\n 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],\n /**\n * Text Overflow\n * @see https://tailwindcss.com/docs/text-overflow\n */\n 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],\n /**\n * Text Indent\n * @see https://tailwindcss.com/docs/text-indent\n */\n indent: [{\n indent: getSpacingWithArbitrary()\n }],\n /**\n * Vertical Alignment\n * @see https://tailwindcss.com/docs/vertical-align\n */\n 'vertical-align': [{\n align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryValue]\n }],\n /**\n * Whitespace\n * @see https://tailwindcss.com/docs/whitespace\n */\n whitespace: [{\n whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']\n }],\n /**\n * Word Break\n * @see https://tailwindcss.com/docs/word-break\n */\n \"break\": [{\n \"break\": ['normal', 'words', 'all', 'keep']\n }],\n /**\n * Hyphens\n * @see https://tailwindcss.com/docs/hyphens\n */\n hyphens: [{\n hyphens: ['none', 'manual', 'auto']\n }],\n /**\n * Content\n * @see https://tailwindcss.com/docs/content\n */\n content: [{\n content: ['none', isArbitraryValue]\n }],\n // Backgrounds\n /**\n * Background Attachment\n * @see https://tailwindcss.com/docs/background-attachment\n */\n 'bg-attachment': [{\n bg: ['fixed', 'local', 'scroll']\n }],\n /**\n * Background Clip\n * @see https://tailwindcss.com/docs/background-clip\n */\n 'bg-clip': [{\n 'bg-clip': ['border', 'padding', 'content', 'text']\n }],\n /**\n * Background Opacity\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/background-opacity\n */\n 'bg-opacity': [{\n 'bg-opacity': [opacity]\n }],\n /**\n * Background Origin\n * @see https://tailwindcss.com/docs/background-origin\n */\n 'bg-origin': [{\n 'bg-origin': ['border', 'padding', 'content']\n }],\n /**\n * Background Position\n * @see https://tailwindcss.com/docs/background-position\n */\n 'bg-position': [{\n bg: [].concat(getPositions(), [isArbitraryPosition])\n }],\n /**\n * Background Repeat\n * @see https://tailwindcss.com/docs/background-repeat\n */\n 'bg-repeat': [{\n bg: ['no-repeat', {\n repeat: ['', 'x', 'y', 'round', 'space']\n }]\n }],\n /**\n * Background Size\n * @see https://tailwindcss.com/docs/background-size\n */\n 'bg-size': [{\n bg: ['auto', 'cover', 'contain', isArbitrarySize]\n }],\n /**\n * Background Image\n * @see https://tailwindcss.com/docs/background-image\n */\n 'bg-image': [{\n bg: ['none', {\n 'gradient-to': ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']\n }, isArbitraryUrl]\n }],\n /**\n * Background Color\n * @see https://tailwindcss.com/docs/background-color\n */\n 'bg-color': [{\n bg: [colors]\n }],\n /**\n * Gradient Color Stops From Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from-pos': [{\n from: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops Via Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via-pos': [{\n via: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops To Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to-pos': [{\n to: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops From\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from': [{\n from: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops Via\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via': [{\n via: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops To\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to': [{\n to: [gradientColorStops]\n }],\n // Borders\n /**\n * Border Radius\n * @see https://tailwindcss.com/docs/border-radius\n */\n rounded: [{\n rounded: [borderRadius]\n }],\n /**\n * Border Radius Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-s': [{\n 'rounded-s': [borderRadius]\n }],\n /**\n * Border Radius End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-e': [{\n 'rounded-e': [borderRadius]\n }],\n /**\n * Border Radius Top\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-t': [{\n 'rounded-t': [borderRadius]\n }],\n /**\n * Border Radius Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-r': [{\n 'rounded-r': [borderRadius]\n }],\n /**\n * Border Radius Bottom\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-b': [{\n 'rounded-b': [borderRadius]\n }],\n /**\n * Border Radius Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-l': [{\n 'rounded-l': [borderRadius]\n }],\n /**\n * Border Radius Start Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ss': [{\n 'rounded-ss': [borderRadius]\n }],\n /**\n * Border Radius Start End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-se': [{\n 'rounded-se': [borderRadius]\n }],\n /**\n * Border Radius End End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ee': [{\n 'rounded-ee': [borderRadius]\n }],\n /**\n * Border Radius End Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-es': [{\n 'rounded-es': [borderRadius]\n }],\n /**\n * Border Radius Top Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tl': [{\n 'rounded-tl': [borderRadius]\n }],\n /**\n * Border Radius Top Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tr': [{\n 'rounded-tr': [borderRadius]\n }],\n /**\n * Border Radius Bottom Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-br': [{\n 'rounded-br': [borderRadius]\n }],\n /**\n * Border Radius Bottom Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-bl': [{\n 'rounded-bl': [borderRadius]\n }],\n /**\n * Border Width\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w': [{\n border: [borderWidth]\n }],\n /**\n * Border Width X\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-x': [{\n 'border-x': [borderWidth]\n }],\n /**\n * Border Width Y\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-y': [{\n 'border-y': [borderWidth]\n }],\n /**\n * Border Width Start\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-s': [{\n 'border-s': [borderWidth]\n }],\n /**\n * Border Width End\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-e': [{\n 'border-e': [borderWidth]\n }],\n /**\n * Border Width Top\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-t': [{\n 'border-t': [borderWidth]\n }],\n /**\n * Border Width Right\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-r': [{\n 'border-r': [borderWidth]\n }],\n /**\n * Border Width Bottom\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-b': [{\n 'border-b': [borderWidth]\n }],\n /**\n * Border Width Left\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-l': [{\n 'border-l': [borderWidth]\n }],\n /**\n * Border Opacity\n * @see https://tailwindcss.com/docs/border-opacity\n */\n 'border-opacity': [{\n 'border-opacity': [opacity]\n }],\n /**\n * Border Style\n * @see https://tailwindcss.com/docs/border-style\n */\n 'border-style': [{\n border: [].concat(getLineStyles(), ['hidden'])\n }],\n /**\n * Divide Width X\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x': [{\n 'divide-x': [borderWidth]\n }],\n /**\n * Divide Width X Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x-reverse': ['divide-x-reverse'],\n /**\n * Divide Width Y\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y': [{\n 'divide-y': [borderWidth]\n }],\n /**\n * Divide Width Y Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y-reverse': ['divide-y-reverse'],\n /**\n * Divide Opacity\n * @see https://tailwindcss.com/docs/divide-opacity\n */\n 'divide-opacity': [{\n 'divide-opacity': [opacity]\n }],\n /**\n * Divide Style\n * @see https://tailwindcss.com/docs/divide-style\n */\n 'divide-style': [{\n divide: getLineStyles()\n }],\n /**\n * Border Color\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color': [{\n border: [borderColor]\n }],\n /**\n * Border Color X\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-x': [{\n 'border-x': [borderColor]\n }],\n /**\n * Border Color Y\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-y': [{\n 'border-y': [borderColor]\n }],\n /**\n * Border Color Top\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-t': [{\n 'border-t': [borderColor]\n }],\n /**\n * Border Color Right\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-r': [{\n 'border-r': [borderColor]\n }],\n /**\n * Border Color Bottom\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-b': [{\n 'border-b': [borderColor]\n }],\n /**\n * Border Color Left\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-l': [{\n 'border-l': [borderColor]\n }],\n /**\n * Divide Color\n * @see https://tailwindcss.com/docs/divide-color\n */\n 'divide-color': [{\n divide: [borderColor]\n }],\n /**\n * Outline Style\n * @see https://tailwindcss.com/docs/outline-style\n */\n 'outline-style': [{\n outline: [''].concat(getLineStyles())\n }],\n /**\n * Outline Offset\n * @see https://tailwindcss.com/docs/outline-offset\n */\n 'outline-offset': [{\n 'outline-offset': [isArbitraryValue, isLength]\n }],\n /**\n * Outline Width\n * @see https://tailwindcss.com/docs/outline-width\n */\n 'outline-w': [{\n outline: [isLength]\n }],\n /**\n * Outline Color\n * @see https://tailwindcss.com/docs/outline-color\n */\n 'outline-color': [{\n outline: [colors]\n }],\n /**\n * Ring Width\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w': [{\n ring: getLengthWithEmpty()\n }],\n /**\n * Ring Width Inset\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w-inset': ['ring-inset'],\n /**\n * Ring Color\n * @see https://tailwindcss.com/docs/ring-color\n */\n 'ring-color': [{\n ring: [colors]\n }],\n /**\n * Ring Opacity\n * @see https://tailwindcss.com/docs/ring-opacity\n */\n 'ring-opacity': [{\n 'ring-opacity': [opacity]\n }],\n /**\n * Ring Offset Width\n * @see https://tailwindcss.com/docs/ring-offset-width\n */\n 'ring-offset-w': [{\n 'ring-offset': [isLength]\n }],\n /**\n * Ring Offset Color\n * @see https://tailwindcss.com/docs/ring-offset-color\n */\n 'ring-offset-color': [{\n 'ring-offset': [colors]\n }],\n // Effects\n /**\n * Box Shadow\n * @see https://tailwindcss.com/docs/box-shadow\n */\n shadow: [{\n shadow: ['', 'inner', 'none', isTshirtSize, isArbitraryShadow]\n }],\n /**\n * Box Shadow Color\n * @see https://tailwindcss.com/docs/box-shadow-color\n */\n 'shadow-color': [{\n shadow: [isAny]\n }],\n /**\n * Opacity\n * @see https://tailwindcss.com/docs/opacity\n */\n opacity: [{\n opacity: [opacity]\n }],\n /**\n * Mix Blend Mode\n * @see https://tailwindcss.com/docs/mix-blend-mode\n */\n 'mix-blend': [{\n 'mix-blend': getBlendModes()\n }],\n /**\n * Background Blend Mode\n * @see https://tailwindcss.com/docs/background-blend-mode\n */\n 'bg-blend': [{\n 'bg-blend': getBlendModes()\n }],\n // Filters\n /**\n * Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/filter\n */\n filter: [{\n filter: ['', 'none']\n }],\n /**\n * Blur\n * @see https://tailwindcss.com/docs/blur\n */\n blur: [{\n blur: [blur]\n }],\n /**\n * Brightness\n * @see https://tailwindcss.com/docs/brightness\n */\n brightness: [{\n brightness: [brightness]\n }],\n /**\n * Contrast\n * @see https://tailwindcss.com/docs/contrast\n */\n contrast: [{\n contrast: [contrast]\n }],\n /**\n * Drop Shadow\n * @see https://tailwindcss.com/docs/drop-shadow\n */\n 'drop-shadow': [{\n 'drop-shadow': ['', 'none', isTshirtSize, isArbitraryValue]\n }],\n /**\n * Grayscale\n * @see https://tailwindcss.com/docs/grayscale\n */\n grayscale: [{\n grayscale: [grayscale]\n }],\n /**\n * Hue Rotate\n * @see https://tailwindcss.com/docs/hue-rotate\n */\n 'hue-rotate': [{\n 'hue-rotate': [hueRotate]\n }],\n /**\n * Invert\n * @see https://tailwindcss.com/docs/invert\n */\n invert: [{\n invert: [invert]\n }],\n /**\n * Saturate\n * @see https://tailwindcss.com/docs/saturate\n */\n saturate: [{\n saturate: [saturate]\n }],\n /**\n * Sepia\n * @see https://tailwindcss.com/docs/sepia\n */\n sepia: [{\n sepia: [sepia]\n }],\n /**\n * Backdrop Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/backdrop-filter\n */\n 'backdrop-filter': [{\n 'backdrop-filter': ['', 'none']\n }],\n /**\n * Backdrop Blur\n * @see https://tailwindcss.com/docs/backdrop-blur\n */\n 'backdrop-blur': [{\n 'backdrop-blur': [blur]\n }],\n /**\n * Backdrop Brightness\n * @see https://tailwindcss.com/docs/backdrop-brightness\n */\n 'backdrop-brightness': [{\n 'backdrop-brightness': [brightness]\n }],\n /**\n * Backdrop Contrast\n * @see https://tailwindcss.com/docs/backdrop-contrast\n */\n 'backdrop-contrast': [{\n 'backdrop-contrast': [contrast]\n }],\n /**\n * Backdrop Grayscale\n * @see https://tailwindcss.com/docs/backdrop-grayscale\n */\n 'backdrop-grayscale': [{\n 'backdrop-grayscale': [grayscale]\n }],\n /**\n * Backdrop Hue Rotate\n * @see https://tailwindcss.com/docs/backdrop-hue-rotate\n */\n 'backdrop-hue-rotate': [{\n 'backdrop-hue-rotate': [hueRotate]\n }],\n /**\n * Backdrop Invert\n * @see https://tailwindcss.com/docs/backdrop-invert\n */\n 'backdrop-invert': [{\n 'backdrop-invert': [invert]\n }],\n /**\n * Backdrop Opacity\n * @see https://tailwindcss.com/docs/backdrop-opacity\n */\n 'backdrop-opacity': [{\n 'backdrop-opacity': [opacity]\n }],\n /**\n * Backdrop Saturate\n * @see https://tailwindcss.com/docs/backdrop-saturate\n */\n 'backdrop-saturate': [{\n 'backdrop-saturate': [saturate]\n }],\n /**\n * Backdrop Sepia\n * @see https://tailwindcss.com/docs/backdrop-sepia\n */\n 'backdrop-sepia': [{\n 'backdrop-sepia': [sepia]\n }],\n // Tables\n /**\n * Border Collapse\n * @see https://tailwindcss.com/docs/border-collapse\n */\n 'border-collapse': [{\n border: ['collapse', 'separate']\n }],\n /**\n * Border Spacing\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing': [{\n 'border-spacing': [borderSpacing]\n }],\n /**\n * Border Spacing X\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-x': [{\n 'border-spacing-x': [borderSpacing]\n }],\n /**\n * Border Spacing Y\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-y': [{\n 'border-spacing-y': [borderSpacing]\n }],\n /**\n * Table Layout\n * @see https://tailwindcss.com/docs/table-layout\n */\n 'table-layout': [{\n table: ['auto', 'fixed']\n }],\n /**\n * Caption Side\n * @see https://tailwindcss.com/docs/caption-side\n */\n caption: [{\n caption: ['top', 'bottom']\n }],\n // Transitions and Animation\n /**\n * Tranisition Property\n * @see https://tailwindcss.com/docs/transition-property\n */\n transition: [{\n transition: ['none', 'all', '', 'colors', 'opacity', 'shadow', 'transform', isArbitraryValue]\n }],\n /**\n * Transition Duration\n * @see https://tailwindcss.com/docs/transition-duration\n */\n duration: [{\n duration: getNumberAndArbitrary()\n }],\n /**\n * Transition Timing Function\n * @see https://tailwindcss.com/docs/transition-timing-function\n */\n ease: [{\n ease: ['linear', 'in', 'out', 'in-out', isArbitraryValue]\n }],\n /**\n * Transition Delay\n * @see https://tailwindcss.com/docs/transition-delay\n */\n delay: [{\n delay: getNumberAndArbitrary()\n }],\n /**\n * Animation\n * @see https://tailwindcss.com/docs/animation\n */\n animate: [{\n animate: ['none', 'spin', 'ping', 'pulse', 'bounce', isArbitraryValue]\n }],\n // Transforms\n /**\n * Transform\n * @see https://tailwindcss.com/docs/transform\n */\n transform: [{\n transform: ['', 'gpu', 'none']\n }],\n /**\n * Scale\n * @see https://tailwindcss.com/docs/scale\n */\n scale: [{\n scale: [scale]\n }],\n /**\n * Scale X\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-x': [{\n 'scale-x': [scale]\n }],\n /**\n * Scale Y\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-y': [{\n 'scale-y': [scale]\n }],\n /**\n * Rotate\n * @see https://tailwindcss.com/docs/rotate\n */\n rotate: [{\n rotate: [isInteger, isArbitraryValue]\n }],\n /**\n * Translate X\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-x': [{\n 'translate-x': [translate]\n }],\n /**\n * Translate Y\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-y': [{\n 'translate-y': [translate]\n }],\n /**\n * Skew X\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-x': [{\n 'skew-x': [skew]\n }],\n /**\n * Skew Y\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-y': [{\n 'skew-y': [skew]\n }],\n /**\n * Transform Origin\n * @see https://tailwindcss.com/docs/transform-origin\n */\n 'transform-origin': [{\n origin: ['center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left', isArbitraryValue]\n }],\n // Interactivity\n /**\n * Accent Color\n * @see https://tailwindcss.com/docs/accent-color\n */\n accent: [{\n accent: ['auto', colors]\n }],\n /**\n * Appearance\n * @see https://tailwindcss.com/docs/appearance\n */\n appearance: ['appearance-none'],\n /**\n * Cursor\n * @see https://tailwindcss.com/docs/cursor\n */\n cursor: [{\n cursor: ['auto', 'default', 'pointer', 'wait', 'text', 'move', 'help', 'not-allowed', 'none', 'context-menu', 'progress', 'cell', 'crosshair', 'vertical-text', 'alias', 'copy', 'no-drop', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 'e-resize', 's-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out', isArbitraryValue]\n }],\n /**\n * Caret Color\n * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities\n */\n 'caret-color': [{\n caret: [colors]\n }],\n /**\n * Pointer Events\n * @see https://tailwindcss.com/docs/pointer-events\n */\n 'pointer-events': [{\n 'pointer-events': ['none', 'auto']\n }],\n /**\n * Resize\n * @see https://tailwindcss.com/docs/resize\n */\n resize: [{\n resize: ['none', 'y', 'x', '']\n }],\n /**\n * Scroll Behavior\n * @see https://tailwindcss.com/docs/scroll-behavior\n */\n 'scroll-behavior': [{\n scroll: ['auto', 'smooth']\n }],\n /**\n * Scroll Margin\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-m': [{\n 'scroll-m': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin X\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mx': [{\n 'scroll-mx': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Y\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-my': [{\n 'scroll-my': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Start\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ms': [{\n 'scroll-ms': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin End\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-me': [{\n 'scroll-me': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Top\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mt': [{\n 'scroll-mt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Right\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mr': [{\n 'scroll-mr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Bottom\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mb': [{\n 'scroll-mb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Left\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ml': [{\n 'scroll-ml': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-p': [{\n 'scroll-p': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding X\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-px': [{\n 'scroll-px': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Y\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-py': [{\n 'scroll-py': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Start\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-ps': [{\n 'scroll-ps': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding End\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pe': [{\n 'scroll-pe': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Top\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pt': [{\n 'scroll-pt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Right\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pr': [{\n 'scroll-pr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Bottom\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pb': [{\n 'scroll-pb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Left\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pl': [{\n 'scroll-pl': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Snap Align\n * @see https://tailwindcss.com/docs/scroll-snap-align\n */\n 'snap-align': [{\n snap: ['start', 'end', 'center', 'align-none']\n }],\n /**\n * Scroll Snap Stop\n * @see https://tailwindcss.com/docs/scroll-snap-stop\n */\n 'snap-stop': [{\n snap: ['normal', 'always']\n }],\n /**\n * Scroll Snap Type\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-type': [{\n snap: ['none', 'x', 'y', 'both']\n }],\n /**\n * Scroll Snap Type Strictness\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-strictness': [{\n snap: ['mandatory', 'proximity']\n }],\n /**\n * Touch Action\n * @see https://tailwindcss.com/docs/touch-action\n */\n touch: [{\n touch: ['auto', 'none', 'pinch-zoom', 'manipulation', {\n pan: ['x', 'left', 'right', 'y', 'up', 'down']\n }]\n }],\n /**\n * User Select\n * @see https://tailwindcss.com/docs/user-select\n */\n select: [{\n select: ['none', 'text', 'all', 'auto']\n }],\n /**\n * Will Change\n * @see https://tailwindcss.com/docs/will-change\n */\n 'will-change': [{\n 'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryValue]\n }],\n // SVG\n /**\n * Fill\n * @see https://tailwindcss.com/docs/fill\n */\n fill: [{\n fill: [colors, 'none']\n }],\n /**\n * Stroke Width\n * @see https://tailwindcss.com/docs/stroke-width\n */\n 'stroke-w': [{\n stroke: [isLength, isArbitraryNumber]\n }],\n /**\n * Stroke\n * @see https://tailwindcss.com/docs/stroke\n */\n stroke: [{\n stroke: [colors, 'none']\n }],\n // Accessibility\n /**\n * Screen Readers\n * @see https://tailwindcss.com/docs/screen-readers\n */\n sr: ['sr-only', 'not-sr-only']\n },\n conflictingClassGroups: {\n overflow: ['overflow-x', 'overflow-y'],\n overscroll: ['overscroll-x', 'overscroll-y'],\n inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],\n 'inset-x': ['right', 'left'],\n 'inset-y': ['top', 'bottom'],\n flex: ['basis', 'grow', 'shrink'],\n gap: ['gap-x', 'gap-y'],\n p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],\n px: ['pr', 'pl'],\n py: ['pt', 'pb'],\n m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],\n mx: ['mr', 'ml'],\n my: ['mt', 'mb'],\n 'font-size': ['leading'],\n 'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],\n 'fvn-ordinal': ['fvn-normal'],\n 'fvn-slashed-zero': ['fvn-normal'],\n 'fvn-figure': ['fvn-normal'],\n 'fvn-spacing': ['fvn-normal'],\n 'fvn-fraction': ['fvn-normal'],\n rounded: ['rounded-s', 'rounded-e', 'rounded-t', 'rounded-r', 'rounded-b', 'rounded-l', 'rounded-ss', 'rounded-se', 'rounded-ee', 'rounded-es', 'rounded-tl', 'rounded-tr', 'rounded-br', 'rounded-bl'],\n 'rounded-s': ['rounded-ss', 'rounded-es'],\n 'rounded-e': ['rounded-se', 'rounded-ee'],\n 'rounded-t': ['rounded-tl', 'rounded-tr'],\n 'rounded-r': ['rounded-tr', 'rounded-br'],\n 'rounded-b': ['rounded-br', 'rounded-bl'],\n 'rounded-l': ['rounded-tl', 'rounded-bl'],\n 'border-spacing': ['border-spacing-x', 'border-spacing-y'],\n 'border-w': ['border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],\n 'border-w-x': ['border-w-r', 'border-w-l'],\n 'border-w-y': ['border-w-t', 'border-w-b'],\n 'border-color': ['border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],\n 'border-color-x': ['border-color-r', 'border-color-l'],\n 'border-color-y': ['border-color-t', 'border-color-b'],\n 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],\n 'scroll-mx': ['scroll-mr', 'scroll-ml'],\n 'scroll-my': ['scroll-mt', 'scroll-mb'],\n 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],\n 'scroll-px': ['scroll-pr', 'scroll-pl'],\n 'scroll-py': ['scroll-pt', 'scroll-pb']\n },\n conflictingClassGroupModifiers: {\n 'font-size': ['leading']\n }\n };\n}\n\nexport { getDefaultConfig };\n//# sourceMappingURL=default-config.mjs.map\n","/**\n * @param baseConfig Config where other config will be merged into. This object will be mutated.\n * @param configExtension Partial config to merge into the `baseConfig`.\n */\nfunction mergeConfigs(baseConfig, configExtension) {\n for (var key in configExtension) {\n mergePropertyRecursively(baseConfig, key, configExtension[key]);\n }\n return baseConfig;\n}\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar overrideTypes = /*#__PURE__*/new Set(['string', 'number', 'boolean']);\nfunction mergePropertyRecursively(baseObject, mergeKey, mergeValue) {\n if (!hasOwnProperty.call(baseObject, mergeKey) || overrideTypes.has(typeof mergeValue) || mergeValue === null) {\n baseObject[mergeKey] = mergeValue;\n return;\n }\n if (Array.isArray(mergeValue) && Array.isArray(baseObject[mergeKey])) {\n baseObject[mergeKey] = baseObject[mergeKey].concat(mergeValue);\n return;\n }\n if (typeof mergeValue === 'object' && typeof baseObject[mergeKey] === 'object') {\n if (baseObject[mergeKey] === null) {\n baseObject[mergeKey] = mergeValue;\n return;\n }\n for (var nextKey in mergeValue) {\n mergePropertyRecursively(baseObject[mergeKey], nextKey, mergeValue[nextKey]);\n }\n }\n}\n\nexport { mergeConfigs };\n//# sourceMappingURL=merge-configs.mjs.map\n","import { createTailwindMerge } from './create-tailwind-merge.mjs';\nimport { getDefaultConfig } from './default-config.mjs';\nimport { mergeConfigs } from './merge-configs.mjs';\n\nfunction extendTailwindMerge(configExtension) {\n for (var _len = arguments.length, createConfig = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n createConfig[_key - 1] = arguments[_key];\n }\n return typeof configExtension === 'function' ? createTailwindMerge.apply(void 0, [getDefaultConfig, configExtension].concat(createConfig)) : createTailwindMerge.apply(void 0, [function () {\n return mergeConfigs(getDefaultConfig(), configExtension);\n }].concat(createConfig));\n}\n\nexport { extendTailwindMerge };\n//# sourceMappingURL=extend-tailwind-merge.mjs.map\n","import { createTailwindMerge } from './create-tailwind-merge.mjs';\nimport { getDefaultConfig } from './default-config.mjs';\n\nvar twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);\n\nexport { twMerge };\n//# sourceMappingURL=tw-merge.mjs.map\n","import { e, b, g, c, f, a, h } from './chunk-JXBJZR5A.js';\nimport { twMerge, extendTailwindMerge } from 'tailwind-merge';\n\nvar se={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},_=s=>s||void 0,N=(...s)=>_(e(s).filter(Boolean).join(\" \")),q=null,M={},F=!1,w=(...s)=>b$1=>b$1.twMerge?((!q||F)&&(F=!1,q=b(M)?twMerge:extendTailwindMerge(M)),_(q(N(s)))):N(s),Z=(s,b)=>{for(let e in b)s.hasOwnProperty(e)?s[e]=N(s[e],b[e]):s[e]=b[e];return s},ie=(s,b$1)=>{let{extend:e=null,slots:j={},variants:U={},compoundVariants:C=[],compoundSlots:V=[],defaultVariants:W={}}=s,m={...se,...b$1},S=e!=null&&e.base?N(e.base,s==null?void 0:s.base):s==null?void 0:s.base,g$1=e!=null&&e.variants&&!b(e.variants)?g(U,e.variants):U,A=e!=null&&e.defaultVariants&&!b(e.defaultVariants)?{...e.defaultVariants,...W}:W;!b(m.twMergeConfig)&&!c(m.twMergeConfig,M)&&(F=!0,M=m.twMergeConfig);let O=b(e==null?void 0:e.slots),$=b(j)?{}:{base:N(s==null?void 0:s.base,O&&(e==null?void 0:e.base)),...j},h$1=O?$:Z({...e==null?void 0:e.slots},b($)?{base:s==null?void 0:s.base}:$),v=l=>{if(b(g$1)&&b(j)&&O)return w(S,l==null?void 0:l.class,l==null?void 0:l.className)(m);if(C&&!Array.isArray(C))throw new TypeError(`The \"compoundVariants\" prop must be an array. Received: ${typeof C}`);if(V&&!Array.isArray(V))throw new TypeError(`The \"compoundSlots\" prop must be an array. Received: ${typeof V}`);let K=(t,n,a=[],i)=>{let r=a;if(typeof n==\"string\")r=r.concat(h(n).split(\" \").map(c=>`${t}:${c}`));else if(Array.isArray(n))r=r.concat(n.reduce((c,f)=>c.concat(`${t}:${f}`),[]));else if(typeof n==\"object\"&&typeof i==\"string\"){for(let c in n)if(n.hasOwnProperty(c)&&c===i){let f=n[c];if(f&&typeof f==\"string\"){let o=h(f);r[i]?r[i]=r[i].concat(o.split(\" \").map(u=>`${t}:${u}`)):r[i]=o.split(\" \").map(u=>`${t}:${u}`);}else Array.isArray(f)&&f.length>0&&(r[i]=f.reduce((o,u)=>o.concat(`${t}:${u}`),[]));}}return r},z=(t,n=g$1,a$1=null,i=null)=>{var J;let r=n[t];if(!r||b(r))return null;let c=(J=i==null?void 0:i[t])!=null?J:l==null?void 0:l[t];if(c===null)return null;let f=a(c),o=Array.isArray(m.responsiveVariants)&&m.responsiveVariants.length>0||m.responsiveVariants===!0,u=A==null?void 0:A[t],d=[];if(typeof f==\"object\"&&o)for(let[k,L]of Object.entries(f)){let ae=r[L];if(k===\"initial\"){u=L;continue}Array.isArray(m.responsiveVariants)&&!m.responsiveVariants.includes(k)||(d=K(k,ae,d,a$1));}let T=r[f]||r[a(u)];return typeof d==\"object\"&&typeof a$1==\"string\"&&d[a$1]?Z(d,T):d.length>0?(d.push(T),d):T},P=()=>g$1?Object.keys(g$1).map(t=>z(t,g$1)):null,p=(t,n)=>{if(!g$1||typeof g$1!=\"object\")return null;let a=new Array;for(let i in g$1){let r=z(i,g$1,t,n),c=t===\"base\"&&typeof r==\"string\"?r:r&&r[t];c&&(a[a.length]=c);}return a},D={};for(let t in l)l[t]!==void 0&&(D[t]=l[t]);let G=(t,n)=>{var i;let a=typeof(l==null?void 0:l[t])==\"object\"?{[t]:(i=l[t])==null?void 0:i.initial}:{};return {...A,...D,...a,...n}},H=(t=[],n)=>{let a=[];for(let{class:i,className:r,...c}of t){let f=!0;for(let[o,u]of Object.entries(c)){let d=G(o,n);if(Array.isArray(u)){if(!u.includes(d[o])){f=!1;break}}else if(d[o]!==u){f=!1;break}}f&&(i&&a.push(i),r&&a.push(r));}return a},I=t=>{let n=H(C,t),a=H(e==null?void 0:e.compoundVariants,t);return f(a,n)},ee=t=>{let n=I(t);if(!Array.isArray(n))return n;let a={};for(let i of n)if(typeof i==\"string\"&&(a.base=w(a.base,i)(m)),typeof i==\"object\")for(let[r,c]of Object.entries(i))a[r]=w(a[r],c)(m);return a},te=t=>{if(V.length<1)return null;let n={};for(let{slots:a=[],class:i,className:r,...c}of V){if(!b(c)){let f=!0;for(let o of Object.keys(c)){let u=G(o,t)[o];if(u===void 0||(Array.isArray(c[o])?!c[o].includes(u):c[o]!==u)){f=!1;break}}if(!f)continue}for(let f of a)n[f]=n[f]||[],n[f].push([i,r]);}return n};if(!b(j)||!O){let t={};if(typeof h$1==\"object\"&&!b(h$1))for(let n of Object.keys(h$1))t[n]=a=>{var i,r;return w(h$1[n],p(n,a),((i=ee(a))!=null?i:[])[n],((r=te(a))!=null?r:[])[n],a==null?void 0:a.class,a==null?void 0:a.className)(m)};return t}return w(S,P(),I(),l==null?void 0:l.class,l==null?void 0:l.className)(m)},x=()=>{if(!(!g$1||typeof g$1!=\"object\"))return Object.keys(g$1)};return v.variantKeys=x(),v.extend=e,v.base=S,v.slots=h$1,v.variants=g$1,v.defaultVariants=A,v.compoundSlots=V,v.compoundVariants=C,v},le=s=>(b,e)=>ie(b,e?g(s,e):s);\n\nexport { w as cn, N as cnBase, le as createTV, se as defaultConfig, ie as tv, _ as voidEmpty };\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const layoutBase = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--self-stretch tw--justify-self-stretch tw--items-stretch tw--justify-center tw--overflow-hidden tw--h-full',\n wrapper: 'tw--flex tw--flex-col tw--w-full md:tw--max-w-[800px] tw--max-h-screen tw--h-full',\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-lumina',\n wrapper: 'tw--bg-light-whisper tw--text-light-zephyr-100',\n },\n dark: {\n base: 'tw--bg-dark-lumina',\n wrapper: 'tw--bg-dark-whisper tw--text-white',\n }\n },\n minimized: {\n true: 'tw--fixed tw--right-0 tw--bottom-0 tw--max-h-[700px] tw--max-w-md'\n }\n },\n});\n\nexport const layoutHead = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--px-5 tw--py-[11px] tw--shadow-[-1px_2px_5px_0] tw--justify-between',\n },\n variants: {\n theme: {\n light: 'tw--shadow-light-zephyr-200',\n dark: 'tw--shadow-dark-zephyr-200',\n },\n },\n});\n\nexport const layoutFoot = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--items-center tw--flex-wrap tw--px-5 tw--mt-[11px]',\n input: 'tw--flex-1 tw--pr-2',\n button: 'tw--flex tw--grow-0',\n },\n});\n\nexport default { layoutBase, layoutHead, layoutFoot };\n","import { useAppSelector, useWindowSize } from '../../hooks';\nimport { LayoutBaseProps } from '../../interfaces/component';\nimport { getConfig } from '../../store/slices/config';\nimport { layoutBase as variant } from './variants';\n\nexport const LayoutBase = ({ head, stream, foot }: LayoutBaseProps) => {\n const { themeId: theme, isPluginMode } = useAppSelector(getConfig);\n const { base, wrapper } = variant({ theme });\n const data = useWindowSize();\n\n return (\n \n
\n {head}\n {stream}\n {foot}\n
\n
\n );\n};\n\nexport default LayoutBase;\n","import { tv } from 'tailwind-variants';\n\n// eslint-disable-next-line spaced-comment\nexport const overlay = /*tw*/ tv({\n slots: {\n base: 'loader js-payment-loader tw--hidden tw--fixed tw--left-0 tw--top-0 tw--z-[101] tw--m-0 tw--flex tw--h-screen tw--w-screen tw--items-center tw--justify-center tw--px-5'\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-whisper'\n },\n dark: {\n base: 'tw--bg-dark-whisper'\n }\n }\n }\n});\n\nexport default overlay;\n","import { useAppSelector } from '../../hooks';\nimport { OverlayProps } from '../../interfaces/component';\nimport { getConfig } from '../../store/slices/config';\nimport overlay from './variants';\n\nexport const Overlay = ({ children }: OverlayProps) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = overlay({ theme });\n return (\n
\n {children}\n
\n );\n};\n\nexport default Overlay;\n","import { AllEvents } from '../config/enums';\n\ntype trackingData = {\n eventType: AllEvents | string;\n systemType: string;\n utmParams: {[key:string]: string};\n customerUuid: string;\n email?: string;\n phone?: string;\n};\n\nexport const track = ({\n eventType,\n systemType,\n utmParams,\n customerUuid,\n email,\n phone,\n}: trackingData): void => {\n if (window.trackEventInGTM && window.tracking) {\n const event = window.tracking.event({\n eventType,\n systemType,\n uri: window.location.pathname,\n domain: window.location.hostname,\n customerUuid,\n email: email || null,\n phone: phone || null,\n additionalData: {},\n utmParams,\n });\n\n window.tracking.trackClient(event);\n if (window.trackEventInGTM) {\n window.trackEventInGTM(event);\n }\n }\n};\n\ndeclare global {\n interface Window {\n tracking: {\n event: (data: {\n eventType: string;\n systemType: string;\n uri: string;\n domain: string;\n customerUuid: string;\n additionalData: object;\n utmParams: {[key:string]: string};\n email?: string | null;\n phone?: string | null;\n }) => string;\n trackClient: (event: string) => void;\n };\n trackEventInGTM: (data: string) => void;\n }\n}\n\nwindow.tracking = window.tracking || null;\nwindow.trackEventInGTM = window.trackEventInGTM || null;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const payment = /*tw*/ tv({\n slots: {\n btn: 'tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-bold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--text-xl max-h-[46px] tw--mb-[11px] customXs:max-h-[52px]',\n\n link: 'tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-dark-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-extrabold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--mb-[11px] spaced-letters max-h-[46px] customXs:max-h-[52px] customXs:tw--max-w-xs customXs:te--text-[20px] customXs:tw--text-xl',\n }\n});\n\nexport const wrapper = /*tw*/ tv({\n slots: {\n base: 'tw--absolute tw--top-0 tw--left-0 tw--w-full tw--h-screen tw--flex tw--flex-col tw--justify-center tw--items-center tw--px-5 tw--z-50',\n },\n variants: {\n theme: {\n light: 'tw--bg-light-lumina',\n dark: 'tw--bg-dark-lumina'\n }\n }\n});\n\nexport const head = /*tw*/ tv({\n slots: {\n wrapper: 'tw--flex tw--justify-between tw--w-full tw--mb-7',\n left: 'tw--flex tw--flex-col',\n leftTop: 'tw--flex tw--flex-row',\n icon: 'tw--pr-[5px] tw--mr-[5px] tw--flex tw--items-center tw--border-r tw--border-r-[#cacadb]',\n text: 'tw--flex tw--flex-col tw--justify-center tw--text-left tw--text-[10px] tw--leading-[1] tw--text-muted-blue',\n bottom: 'tw--opacity-60 tw--text-[10px] tw--leading-[2] tw--text-muted-blue',\n right: 'tw--flex tw--flex-col tw--items-end',\n price: 'tw--text-light-seraph tw--font-bold tw--leading-[1.4] tw--text-[20px]',\n info: 'tw--leading-[2] tw--text-[10px] tw--text-muted-blue',\n },\n});\n\nexport const close = /*tw*/ tv({\n slots: {\n base: 'tw--absolute tw--top-[-30px] tw--right-[-10px] tw--w-6 tw--h-6 tw--p-1 tw--bg-white tw--rounded-full tw--cursor-pointer tw--text-muted-blue',\n },\n});\n\nexport const foot = tv({\n slots: {\n base: 'tw--mt-[30px] tw--flex tw--items-center tw--justify-center tw--text-[12.8px] tw--leading-[1.56] tw--text-light-seraph tw--font-bold',\n icon: 'tw--mr-[5px]'\n },\n});\n\nexport const loader = tv({\n slots: {\n wrapper: 'loader js-payment-loader tw--max-w-[335px] tw--overflow-hidden tw--relative tw--flex tw--w-full tw--flex-col tw--items-center tw--justify-center tw--rounded-xl tw--p-5',\n inner: 'tw--absolute tw--left-0 tw--top-8 tw--flex tw--h-8 tw--w-full tw--items-center tw--justify-center',\n dots: 'tw--relative tw--flex tw--items-center tw--justify-center tw--p-3',\n dotsIn: 'tw--relative tw--mx-auto tw--my-4 tw--box-content tw--block tw--h-4 tw--w-4 tw--rounded-full',\n progressCheckmark: 'tw--mb-6 tw--mt-24 tw--box-border tw--flex tw--w-full tw--items-center tw--justify-center tw--text-center',\n panelTitle: 'js-payment-message tw--text-lg tw--font-bold tw--leading-5',\n icon: 'tw--mr-5 tw--h-6 tw--w-6 tw--rounded-full',\n spinningTexts: 'tw--mx-10 tw--w-64 tw--shrink-0 tw--text-[16px] tw--leading-[1.63]',\n filmContainer: 'js-msg-spin tw--flex tw--justify-center tw--overflow-hidden tw--text-center',\n film: 'tw--animate-text-spin tw--flex tw--w-full tw--max-w-xs tw--translate-x-72'\n },\n variants: {\n theme: {\n light: {\n wrapper: 'tw--shadow-light-card tw--bg-light-loader',\n dotsIn: 'tw--bg-light-pale-dots tw--shadow-light-loading-dots tw--animate-light-shadow-dots',\n icon: 'tw--bg-light-iota-dots',\n spinningTexts: 'tw--text-light-zeta tw--opacity-60'\n },\n dark: {\n wrapper: 'tw--shadow-dark-card tw--bg-dark-loader',\n dotsIn: 'tw--bg-dark-pale-dots tw--shadow-dark-loading-dots tw--animate-dark-shadow-dots',\n icon: 'tw--bg-dark-iota-dots',\n spinningTexts: 'tw--text-dark-zeta tw--opacity-60'\n }\n }\n }\n});\n\nexport default payment;\n","import { useEffect } from 'react';\n\nimport { AllEvents } from '../../config/enums';\nimport { useAppSelector } from '../../hooks';\nimport { PaymentButtonProps } from '../../interfaces/component';\nimport { track } from '../../services/tracking';\nimport { getConfig } from '../../store/slices/config';\nimport { payment as variant } from './variants';\n\nexport const PaymentButton = ({ text, onClick, e2e, disabled = false }: PaymentButtonProps) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const meta = useAppSelector((state) => state.meta);\n const currentEmail = useAppSelector((state) => state.intentions.email.current);\n const { btn } = variant({ theme });\n\n useEffect(() => {\n const data = {\n eventType: AllEvents.addToCart,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: currentEmail\n };\n\n track(data);\n\n data.eventType = AllEvents.priceSeen;\n track(data);\n }, [])\n\n return (\n \n \n \n \n \n {text}\n \n );\n};\n\nexport default PaymentButton;\n","import { CloseButtonProps } from '../../interfaces/component';\nimport { close as variants } from './variants';\n\nexport const CloseButton = ({ onClick }: CloseButtonProps) => {\n const { base } = variants();\n return (\n \n \n \n \n \n );\n};\n\nexport default CloseButton;\n","import { foot as variants } from './variants';\n\nexport const PaymentFooter = () => {\n const { base, icon } = variants();\n return (\n
\n \n \n \n SSL Secure Connection\n
\n );\n};\n\nexport default PaymentFooter;\n","import { useAppSelector } from '../../hooks';\nimport { head as variants } from './variants';\ninterface PaymentHeadProps {\n config: {\n price: string;\n period: string;\n }\n}\n\nexport const PaymentHead = ({ config }: PaymentHeadProps) => {\n const { translations } = useAppSelector((state) => state.config);\n const { wrapper, left, leftTop, icon, text, bottom, right, price, info } = variants();\n\n return (\n
\n
\n \n
\n \n \n \n \n \n { /* DEV NOTE: be aware that the text is not coming from an input so in the future it is not a good practice to use this attribute */}\n \n
\n
\n {translations.paymentHeaderTxt2}\n
\n
\n
\n
{config.price}
\n
\n {config.period}\n
\n
\n
\n
\n );\n};\n\nexport default PaymentHead;\n","import { forwardRef } from 'react';\n\nimport { LinkProps } from '../../interfaces/component';\nimport payment from './variants';\n\nexport const Link = forwardRef((props, ref) => {\n const { link } = payment();\n const { href, text, onClick, e2e = null } = props;\n\n return (\n \n {text}\n \n );\n});\n\nLink.displayName = 'Link'; \nexport default Link;\n","import { useAppSelector } from '../../hooks';\nimport { getConfig } from '../../store/slices/config';\nimport { loader as variants } from './variants';\ninterface PaymentLoaderProps {\n texts?: Array;\n title?: string;\n}\n\nexport const PaymentLoader = ({ texts = [], title = '' }: PaymentLoaderProps) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const {\n wrapper,\n inner,\n dots,\n dotsIn,\n icon,\n progressCheckmark,\n panelTitle,\n spinningTexts,\n filmContainer,\n film\n } = variants({ theme });\n return (\n \n
\n
\n \n
\n
\n\n
\n \n \n \n \n \n \n

{title}

\n
\n\n
\n
\n {texts.map((txt) => (\n
\n {txt}\n
\n ))}\n
\n
\n
\n );\n};\n\nexport default PaymentLoader;\n","import { MouseEvent } from 'react';\n\nimport { useAppSelector } from '../../hooks';\nimport { Overlay } from '../Overlay';\nimport { CloseButton, PaymentFooter, PaymentHead, PaymentLoader, } from '../Payment';\nimport { wrapper } from '../Payment/variants';\n\nexport const PaymentScene = ({ onClose }: { onClose: (e: MouseEvent) => void }) => {\n const { displayPlanPrice, billingFrequencyTmsg } = useAppSelector((state) => state.meta.pd);\n const { translations, themeId: theme } = useAppSelector((state) => state.config);\n const { base } = wrapper({ theme });\n\n return (\n (\n
\n \n \n \n \n \n
\n \n
\n \n
\n
\n )\n );\n};\n\nexport default PaymentScene;\n","import { tv } from 'tailwind-variants';\n\nexport const streamBase = /* tw*/ tv({\n slots: {\n base: 'tw--pt-10 tw--w-full tw--h-full tw--pb-5 tw--px-5 tw--overflow-y-scroll tw--flex tw--flex-col-reverse tw--translate-z-0',\n second: 'tw--mt-0 tw--mb-auto',\n date: 'tw--text-center tw--text-sm tw--pb-[5px] tw--opacity-40'\n },\n variants: {\n theme: {\n light: {\n base: 'tw--text-light-zephyr-100 tw--font-medium',\n },\n dark: {\n base: 'tw--text-dark-zephyr-100'\n }\n }\n }\n});\n\nexport const streamHead = /* tw*/ tv({\n slots: {\n base: 'tw--flex tw--flex-col tw--items-center tw--w-full tw--mx-auto tw--pt-5 tw--pb-10',\n title: 'tw--pb-[30px] tw--max-w-[400px] tw--text-center tw--mx-[30px] select-none',\n },\n variants: {\n theme: {\n light: { title: 'tw--font-medium' },\n dark: { title: '' },\n }\n }\n});\n\nexport const streamRow = /* tw*/ tv({\n slots: {\n base: 'tw--grid tw--break-words',\n },\n});\n\nexport const flickerEffect = /* tw */ tv({\n slots: {\n base: 'after:tw--inline-block after:tw--ml-1 after:tw--h-4 after:tw--w-1 select-none',\n },\n variants: {\n isTyping: {\n true: 'after:tw--animate-blink',\n false: 'after:tw--hidden'\n },\n theme: {\n light: 'after:tw--bg-light-zephyr-100',\n dark: 'after:tw--bg-dark-zephyr-100'\n }\n }\n});\n\nexport const streamBubble = /* tw*/ tv({\n slots: {\n base: 'tw--relative tw--max-w-[375px] tw--whitespace-pre-wrap tw--rounded-[20px] tw--mb-5 tw--space-y-5',\n action: 'tw--absolute tw--bottom-[-16px] tw--right-[-10px]',\n separator: 'tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--w-fit tw--ml-auto tw--mr-0'\n },\n variants: {\n theme: {\n light: {\n action: 'tw--text-light-seraph',\n base: 'tw--font-medium',\n },\n dark: {\n action: 'tw--text-dark-seraph',\n },\n },\n type: {\n assistant: {\n base: 'tw--justify-self-start',\n },\n user: {\n base: 'tw--justify-self-end',\n },\n },\n },\n compoundSlots: [\n {\n slots: ['base'],\n theme: 'light',\n type: 'assistant',\n class: 'tw--bg-light-lumina tw--px-[15px] tw--py-[11px]',\n },\n {\n slots: ['base'],\n theme: 'dark',\n type: 'assistant',\n class: 'tw--bg-dark-lumina tw--px-[15px] tw--py-[11px]',\n },\n {\n slots: ['separator'],\n theme: 'dark',\n type: 'user',\n class: 'tw--bg-dark-seraph'\n },\n {\n slots: ['separator'],\n theme: 'light',\n type: 'user',\n class: 'tw--bg-light-seraph tw--text-white'\n },\n ],\n});\n\nexport const ellipsis = tv({\n slots: {\n dotFirst: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave',\n dotSecond: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay',\n dotThird: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay-2',\n },\n compoundSlots: [{\n slots: ['dotFirst', 'dotSecond', 'dotThird'],\n theme: 'light',\n class: 'tw--bg-light-zephyr-100',\n },\n {\n slots: ['dotFirst', 'dotSecond', 'dotThird'],\n theme: 'dark',\n class: 'tw--bg-dark-zephyr-100',\n }]\n});\n\nexport default { streamBase, streamHead, streamRow, streamBubble, ellipsis };\n","import { useAppSelector } from '../../hooks';\nimport { getConfig } from '../../store/slices/config';\nimport { ellipsis as variant } from './variants';\n\nexport const Ellipsis = () => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { dotFirst, dotSecond, dotThird } = variant({ theme });\n return (\n
\n \n \n \n
\n );\n};\n\nexport default Ellipsis;\n","// DEV Note: will be deprecated, replace with env vars\nexport const STORAGE_KEY = 'history';\nexport const CHAT_SEEN_KEY = 'chatSeen';\nexport const LINK_CLICKED_KEY = 'linkClickedFromChat';\nexport const CHAT_FINISHED_TIMESTAMP = 'chatConversationFinishedTimeStamp';\nexport const ALREADY_REGISTERED_KEY = 'showAlreadyRegisteredUser';\nexport const SHOW_PAYMENT_BUTTON_KEY = 'showPaymentButton';\nexport const SOCKET_IO_URL = 'http://localhost:5000';\nexport const UNSENT_MESSAGES_KEY = 'unsent';\nexport const GO_THROUGH_QUIZ_KEY = 'hasToGoThroughQuiz';\nexport const EXISTING_PRODUCT_LINK_KEY = 'existingProductLink';\nexport const CID = 'cid';\nexport const STORING_CHECKER_INTERVAL = 1000;\nexport const SCROLL_STOP_CLASS = 'scroll-stop';\nexport const SUPPORT_PURPOSE = 'support';\nexport const SPECIAL_MERCHANT = 'MERCHANT_SITE_URL';\nexport const SPECIAL_SUPPORT_TICKET = 'NEW_SUPPORT_TICKET_URL';\nexport const CLOSE_AFTER_TIMEOUT = 500;\nexport const DEFAULT_CLOSE_HREF = '/';\nexport const TYPING_TIMEOUT = 3000;\n","export const config = {\n transports: ['websocket'],\n upgrade: false,\n pingInterval: 1000 * 60 * 5,\n pingTimeout: 1000 * 60 * 3,\n secure: true,\n reconnect: true,\n};\n\nexport default { config };\n","import { AssistantRecord } from '../interfaces/index';\nimport { getQueryParam, uuidV4 } from '../utils';\nimport { Definition, QueryParams, Roles } from './enums';\nimport { SPECIAL_MERCHANT, SPECIAL_SUPPORT_TICKET } from './env';\nimport { colors as baseThemeColors } from './themes/base';\nexport { Events, Roles } from './enums';\nexport { config } from './socket';\n\nexport const colors = {\n white: '#ffffff',\n black: '#000000',\n 'muted-blue': 'rgba(15, 14, 30, 0.6)',\n ...baseThemeColors,\n};\n\nexport const initialMessage = [\n {\n id: uuidV4(),\n role: Roles.assistant,\n time: new Date().getTime(),\n content: [\n { 'type': 'text', 'text': 'See this picture', 'sequence': 2 },\n { 'type': 'text', 'text': 'See this picture', 'sequence': 2 },\n { 'type': 'text', 'text': 'My favorite search engine is [Duck Duck Go](https://duckduckgo.com \"The best search engine for privacy\").', 'sequence': 2 },\n {\n type: 'image',\n image: { url: 'https://static.boredpanda.com/blog/wp-content/uploads/2016/08/wet-dogs-before-after-bath-fb6__700-png.jpg' },\n sequence: 1,\n },\n {\n type: 'video',\n video: { url: 'https://www.youtube.com/embed/ZwKhufmMxko' },\n sequence: 1,\n }\n ]\n },\n {\n id: uuidV4(),\n role: Roles.assistant,\n time: new Date().getTime(),\n content: [\n { 'type': 'text', 'text': 'Do you want to lose weight?', 'sequence': 2 },\n { 'type': 'buttons', 'sequence': 1, 'buttons': [{ 'value': 'Yes', 'sequence': 1, 'text': 'Yes' }, { 'value': 'No', 'sequence': 2, 'text': 'No' }] }\n ]\n },\n {\n id: uuidV4(),\n role: Roles.assistant,\n time: new Date().getTime(),\n content: [\n { 'type': 'text', 'text': 'Do you want to lose weight?', 'sequence': 2 },\n ]\n },\n];\ninterface InitiationConfig { id: string, purpose?: string, close: { href?: string, visible?: boolean } }\n\nexport const chat = ({ id, purpose, close }: InitiationConfig) => ({\n meta: {\n cid: localStorage.getItem('__cid') || id,\n systemType: 'test',\n region: null,\n pd: {\n subscriberBillingFrequency: 'Billed every {1} month(s)',\n oneTimer: 'Total price to be charged',\n billingFrequencyTmsg: '',\n },\n marketing: {\n utmParams: { utm_chat: getQueryParam(QueryParams.chat) },\n lastUtmParams: { utm_chat: getQueryParam(QueryParams.chat) },\n screen: {\n width: 2084,\n height: 1608,\n }\n },\n eid: '23c7cdcf-4d90-4ea1-aab0-c73f8426dc1d_PageView_1694521420366',\n },\n app: {\n aiProfile: {\n name: 'Meal Mentor',\n role: 'AI-powered nutritionist',\n imgSrc: 'https://storage.1forfit.com/4oZrkOwbOQcSIGJopBG5qsf0CmBbVDKDqflzEkXq.jpg',\n welcome: 'Welcome to our live support. We\\'re here to understand your requirements and suggest the best Keto diet suited for you.',\n initialMessage\n },\n chatUrl: 'https://chat-ws.test',\n purpose: purpose || 'default',\n themeId: 'light',\n translations: {\n emailPlaceholder: 'Please enter your email',\n tm526: 'Continue to my plan',\n tm715: 'Enter new email',\n tm716: 'Entered email already exists, choose below to proceed',\n tm530: 'Take the quiz',\n tm1224: 'Payment in progress...',\n tm1226: 'Payment succeeded!',\n paymentHeaderTxt1: 'SECURITY verified',\n paymentHeaderTxt2: 'secured payments',\n loaderTexts: [\n 'We securely lock up your payment details.',\n 'Details zoom to the payment center.',\n 'Payment center requests our bank to process.',\n 'Our bank contacts your card network.',\n 'Card network asks your bank for approval.',\n 'Your bank reviews funds or credit.',\n 'Decision travels back to us.',\n 'Waiting your payment to be verified and complete.'\n ],\n payButton: 'Secure payment',\n ctaTextContent: 'Create Your Menu!',\n mealButton: 'Create your meal plan',\n error: 'Oops something went wrong.',\n tm505: 'Please enter valid email address',\n supportButton: 'backEndVars.supportButton',\n merchantButton: 'backEndVars.merchantButton',\n },\n close: {\n href: close.href || '/',\n visible: close.visible || false,\n }\n },\n specialUrls: {\n [SPECIAL_MERCHANT]: '/',\n [SPECIAL_SUPPORT_TICKET]: '/'\n }\n});\n\nexport const paymentData = {\n amount: '29.90',\n amountInUSD: 29.9,\n frequency: 1,\n frequencyInMonths: 1,\n billingOptionType: 'subscription',\n isDisplayPricePlan: true,\n displayPlanPrice: '$29.90'\n};\n\nexport const getUnifiedSequence = (current: Array, incoming: AssistantRecord) => {\n return current.map((record: AssistantRecord) => {\n const hasMatch = record.sequence === incoming.sequence && record.type === incoming.type;\n\n if (hasMatch && record.type === Definition.text && incoming.text) {\n return { ...record, text: record.text + incoming.text }\n }\n\n if (hasMatch && record.type === Definition.buttons && incoming?.buttons?.length && record?.buttons?.length) {\n return { ...record, buttons: [...record.buttons, ...incoming.buttons] }\n }\n\n return record;\n })\n};\n\nexport default { colors };\n","function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a(n,r){return 2===o(n)?n.get(r):n[r]}function f(n,r,t){var e=o(n);2===e?n.set(r,t):3===e?n.add(t):n[r]=t}function c(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0)),n}function h(){n(2)}function y(n){return null==n||\"object\"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function m(n,r){tn[n]||(tn[n]=r)}function _(){return\"production\"===process.env.NODE_ENV||U||n(0),U}function j(n,r){r&&(b(\"Patches\"),n.u=[],n.s=[],n.v=r)}function g(n){O(n),n.p.forEach(S),n.p=null}function O(n){n===U&&(U=n.l)}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.g=!0}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.O||b(\"ES5\").S(e,r,o),o?(i[Q].P&&(g(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b(\"Patches\").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),g(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o,u=o,a=!1;3===e.i&&(u=new Set(o),o.clear(),a=!0),i(u,(function(r,i){return A(n,e,o,r,i,t,a)})),x(n,o,!1),t&&n.u&&b(\"Patches\").N(e,t,n.u,n.s)}return e.o}function A(e,i,o,a,c,s,v){if(\"production\"!==process.env.NODE_ENV&&c===o&&n(5),r(c)){var p=M(e,c,s&&i&&3!==i.i&&!u(i.R,a)?s.concat(a):void 0);if(f(o,a,p),!r(p))return;e.m=!1}else v&&o.add(c);if(t(c)&&!y(c)){if(!e.h.D&&e._<1)return;M(e,c),i&&i.A.l||x(e,c)}}function x(n,r,t){void 0===t&&(t=!1),!n.l&&n.h.D&&n.m&&d(r,t)}function z(n,r){var t=n[Q];return(t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t)}}function k(n){n.P||(n.P=!0,n.l&&k(n.l))}function E(n){n.o||(n.o=l(n.t))}function N(n,r,t){var e=s(r)?b(\"MapSet\").F(r,t):v(r)?b(\"MapSet\").T(r,t):n.O?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b(\"ES5\").J(r,t);return(t?t.A:_()).p.push(e),e}function R(e){return r(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=o(r);if(u){if(!u.P&&(u.i<4||!b(\"ES5\").K(u)))return u.t;u.I=!0,e=D(r,c),u.I=!1}else e=D(r,c);return i(e,(function(r,t){u&&a(u.t,r)===t||f(e,r,n(t))})),3===c?new Set(e):e}(e)}function D(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function F(){function t(n,r){var t=s[n];return t?t.enumerable=r:s[n]=t={configurable:!0,enumerable:r,get:function(){var r=this[Q];return\"production\"!==process.env.NODE_ENV&&f(r),en.get(r,n)},set:function(r){var t=this[Q];\"production\"!==process.env.NODE_ENV&&f(t),en.set(t,n,r)}},t}function e(n){for(var r=n.length-1;r>=0;r--){var t=n[r][Q];if(!t.P)switch(t.i){case 5:a(t)&&k(t);break;case 4:o(t)&&k(t)}}}function o(n){for(var r=n.t,t=n.k,e=nn(t),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=r[o];if(void 0===a&&!u(r,o))return!0;var f=t[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return!0}}var v=!!r[Q];return e.length!==nn(r).length+(v?0:1)}function a(n){var r=n.k;if(r.length!==n.t.length)return!0;var t=Object.getOwnPropertyDescriptor(r,r.length-1);if(t&&!t.get)return!0;for(var e=0;e1?t-1:0),o=1;o1?t-1:0),o=1;o=0;e--){var i=t[e];if(0===i.path.length&&\"replace\"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b(\"Patches\").$;return r(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un,fn=an.produce,cn=an.produceWithPatches.bind(an),sn=an.setAutoFreeze.bind(an),vn=an.setUseProxies.bind(an),pn=an.applyPatches.bind(an),ln=an.createDraft.bind(an),dn=an.finishDraft.bind(an);export default fn;export{un as Immer,pn as applyPatches,K as castDraft,$ as castImmutable,ln as createDraft,R as current,J as enableAllPlugins,F as enableES5,C as enableMapSet,T as enablePatches,dn as finishDraft,d as freeze,L as immerable,r as isDraft,t as isDraftable,H as nothing,e as original,fn as produce,cn as produceWithPatches,sn as setAutoFreeze,vn as setUseProxies};\n//# sourceMappingURL=immer.esm.js.map\n","import { createSlice, Draft,PayloadAction } from '@reduxjs/toolkit';\nimport produce from 'immer';\n\nimport { getUnifiedSequence } from '../../config';\nimport { Definition, QueryParams, Roles } from '../../config/enums';\nimport {\n AssistantHistoryDataFiller,\n AssistantHistoryInitialMessage,\n AssistantRecord,\n PredefinedMessagePayload,\n SocketHistoryRecord,\n UserHistoryDataFiller,\n} from '../../interfaces';\nimport { ChatState } from '../../interfaces/store';\nimport { getQueryParam, uuidV4 } from '../../utils';\nimport { chat as initialState } from '../initialState';\n\nconst configSlice = createSlice({\n name: 'chat',\n initialState,\n reducers: {\n setOutgoing(state, { payload }: PayloadAction) {\n state.outgoing = {\n term: getQueryParam(QueryParams.chat),\n user_id: localStorage.getItem('__cid') || '',\n role: Roles.user,\n message: payload,\n };\n },\n resetOutgoing(state) {\n state.outgoing = initialState.outgoing;\n },\n setExistingHistory(state, { payload }: PayloadAction>) {\n return produce(state, (draft) => {\n // server has LESS or EQUAL data than frontend -> update the status to unsent\n if (state.historyIds.length >= payload.length) {\n const unsentMessages = state.historyIds.filter((id) => !payload.find((record) => record.id === id));\n unsentMessages.forEach(\n (id) =>\n (draft.historyData[id].content = draft.historyData[id].content.map((record) => ({\n ...record,\n sent: false,\n resend: true,\n }))),\n );\n return;\n }\n\n draft.historyIds = payload.map(({ id }) => id);\n draft.historyData = payload.reduce(\n (prev, current) => ({\n ...prev,\n [current.id]: current\n }),\n {},\n );\n });\n },\n addPredefinedAssistantMessage(\n state,\n { payload }: PayloadAction\n ) {\n const id = uuidV4();\n return produce(state, (draft: Draft): void => {\n draft.historyIds.push(id);\n draft.historyData[id] = {\n id,\n role: Roles.assistant,\n content: [\n { type: Definition.text, text: payload.content, sequence: 1 },\n { type: Definition.buttons, buttons: payload.buttons || [], sequence: 2 },\n ],\n };\n });\n },\n fillAssistantHistoryData(state, { payload }: PayloadAction) {\n return produce(state, (draft: Draft) => {\n const id = payload.id;\n\n if (!draft.historyData[id]) {\n draft.historyData[id] = { id, role: Roles.assistant, content: [] };\n draft.historyIds.push(id);\n return;\n }\n\n if (!payload.content) {\n return;\n }\n\n const dataType = payload.content.type;\n const data = {\n sequence: payload.sequence || 1,\n type: dataType,\n [dataType]: payload.content[payload.content.type],\n };\n\n const hasDuplicatedSequenceAndType = draft.historyData[id].content.some(\n (record) => record.sequence === data.sequence && record.type === data.type,\n );\n\n if (hasDuplicatedSequenceAndType) {\n draft.historyData[id].content = getUnifiedSequence(\n draft.historyData[id].content as Array,\n data,\n );\n return;\n }\n\n draft.historyData[id].content.push(data);\n });\n },\n fillUserHistoryData(\n state,\n { payload: { id, content } }: PayloadAction\n ) {\n return produce(state, (draft: Draft) => {\n let belongsTo;\n\n if (content.groupId) {\n Object.entries(draft.historyData).forEach(([key, value]) => {\n if (value.content.find((el) => el.groupId === content.groupId)) {\n belongsTo = key;\n }\n });\n }\n\n if (belongsTo) {\n // this is due to keyboard interaction we send messages after timeout\n const userMessageRecord = draft.historyData[belongsTo];\n userMessageRecord.content.push(content);\n return;\n }\n\n if (!draft.historyData[id]) {\n draft.historyData[id] = { id, role: Roles.user, content: [content] };\n draft.historyIds.push(id);\n }\n });\n },\n fillInitialMessage(\n state,\n { payload }: PayloadAction\n ) {\n state.historyIds.push(payload.id);\n state.historyData[payload.id] = {\n id: payload.id,\n role: Roles.assistant,\n time: new Date().getTime(),\n content: payload.content,\n };\n },\n setIsLoading(state) {\n state.isLoading = true;\n },\n resetIsLoading(state) {\n state.isLoading = initialState.isLoading;\n },\n setTypingTimeoutExpired(state, { payload }: PayloadAction) {\n state.typingTimeoutExpired = payload;\n },\n setConnected(state, { payload }: PayloadAction) {\n state.connected = payload;\n },\n setClosed(state) {\n state.closed = true;\n },\n hideResendIcon(state, { payload }: PayloadAction<{ itemId: string }>) {\n return produce(state, (draft: Draft) => {\n draft.historyData[payload.itemId].content = draft.historyData[payload.itemId].content.map((record) => ({\n ...record,\n sent: true,\n resend: false,\n }));\n });\n },\n showResendIcon(state, { payload }: PayloadAction<{ itemId: string }>) {\n return produce(state, (draft: Draft) => {\n draft.historyData[payload.itemId].content = draft.historyData[payload.itemId].content.map((record) => ({\n ...record,\n sent: false,\n resend: true,\n }));\n });\n },\n setLastGroupPointer(state, { payload }: PayloadAction) {\n state.lastGroupId = payload;\n },\n resendMessage(state, { payload }) {\n // empty - used only to listen in the middleware for changes\n },\n setError(state, { payload }: PayloadAction) {\n state.error = payload;\n },\n resetError(state) {\n state.error = initialState.error;\n },\n setIsStreaming(state, { payload }: PayloadAction) {\n state.isStreaming = payload;\n },\n resetHistory(state) {\n state.historyIds = initialState.historyIds;\n state.historyData = initialState.historyData;\n },\n },\n});\n\nexport const getChat = (state: { chat: ChatState }) => state.chat;\nexport const userMessageFindOne = (state: { chat: ChatState }) =>\n state.chat.historyIds.find((historyId) => state.chat.historyData[historyId].role === Roles.user);\nexport const sortBySequence = (a: AssistantRecord, b: AssistantRecord) => a.sequence - b.sequence;\n\nexport const {\n setOutgoing,\n resetOutgoing,\n setExistingHistory,\n addPredefinedAssistantMessage,\n setIsLoading,\n resetIsLoading,\n setLastGroupPointer,\n setTypingTimeoutExpired,\n setError,\n resetError,\n setConnected,\n setClosed,\n hideResendIcon,\n showResendIcon,\n resendMessage,\n setIsStreaming,\n fillAssistantHistoryData,\n fillUserHistoryData,\n resetHistory,\n fillInitialMessage,\n} = configSlice.actions;\n\nexport default configSlice.reducer;\n","import { createSlice } from '@reduxjs/toolkit';\n\nimport { IntentionsState } from '../../interfaces/store';\nimport { intentions as initialState } from '../initialState';\n\nconst intentionsSlice = createSlice({\n name: 'intentions',\n initialState,\n reducers: {\n setEmail(state, { payload }) {\n state.email.current = payload;\n },\n setEmailSuccess(state, { payload }) {\n state.email.success = payload;\n },\n setEmailError(state, { payload }) {\n state.email.error = payload;\n },\n setIsEmailLoading(state, { payload }) {\n state.email.isLoading = payload;\n },\n setIsPaymentButtonVisible(state, { payload }) {\n state.payment.isButtonVisible = payload;\n },\n setPaymentFormVisibility(state, { payload }) {\n state.payment.isFormVisible = payload;\n },\n setIsPaymentSuccessful(state, { payload }) {\n state.payment.isSuccessful = payload;\n },\n setPaymentIntentError(state, { payload }) {\n state.payment.error = payload;\n },\n setLink(state, { payload }) {\n state.link = payload;\n },\n },\n});\n\nexport const getEmailIntentions = (state: { intentions: IntentionsState }) => state.intentions.email;\nexport const getPaymentIntentions = (state: { intentions: IntentionsState }) => state.intentions.payment;\nexport const getPaymentSuccess = (state: { intentions: IntentionsState }) => state.intentions.payment.isSuccessful;\nexport const getLinkIntentions = (state: { intentions: IntentionsState }) => state.intentions.link;\n\nexport const {\n setEmailSuccess,\n setIsPaymentSuccessful,\n setPaymentFormVisibility,\n setEmailError,\n setIsEmailLoading,\n setIsPaymentButtonVisible,\n setPaymentIntentError,\n setEmail,\n setLink\n} = intentionsSlice.actions;\n\nexport default intentionsSlice.reducer;\n","import { Roles } from '../config';\nimport { SUPPORT_PURPOSE } from '../config/env';\nimport { getChat } from '../store/slices/chat';\nimport { getConfig } from '../store/slices/config';\nimport { getEmailIntentions, getPaymentIntentions } from '../store/slices/intentions';\nimport { getMeta } from '../store/slices/meta';\nimport { useAppSelector } from '.';\n\nexport const useFootProps = () => {\n const { cid, systemType, marketing, pd } = useAppSelector(getMeta);\n const { translations, purpose, specialUrls } = useAppSelector(getConfig);\n const { isLoading, isStreaming } = useAppSelector(getChat);\n const { error: streamError } = useAppSelector((store) => store.chat);\n const storedLink = useAppSelector((store) => store.intentions.link);\n const { error: emailError, current: currentEmail } = useAppSelector(getEmailIntentions);\n const {\n isFormVisible: isPaymentFormVisible,\n error: paymentIntentError,\n isSuccessful: paymentSuccess\n } = useAppSelector(getPaymentIntentions);\n const error = streamError || emailError || paymentIntentError;\n const staticProps = {\n systemType,\n marketing,\n error,\n cid,\n isLoading,\n currentEmail,\n translations,\n pd,\n isStreaming,\n isPaymentButtonVisible: false,\n isPaymentFormVisible: false,\n isEmailFormVisible: false,\n isResponseFormVisible: false,\n ctaText: '',\n ctaHref: '',\n };\n const { historyData, historyIds } = useAppSelector(getChat);\n const lastMsgId = [...historyIds].pop();\n const lastMsg = lastMsgId && historyData[lastMsgId];\n const isLastAssistantMsg = lastMsg && lastMsg.role === Roles.assistant;\n const link = isLastAssistantMsg && storedLink;\n const noButtonChoices = !(lastMsg && lastMsg?.content.find((m) => m.buttons));\n const hasPaymentIntent = lastMsg && lastMsg?.content.find((m) => m.payment);\n const hasEmailIntent = lastMsg && lastMsg?.content.find((m) => m.email);\n\n if (isLastAssistantMsg && hasPaymentIntent) {\n return {\n ...staticProps,\n isPaymentButtonVisible: true,\n };\n }\n\n if (isLastAssistantMsg && hasEmailIntent) {\n return {\n ...staticProps,\n isEmailFormVisible: true,\n isPaymentFormVisible,\n };\n }\n\n if (paymentSuccess) {\n return {\n ...staticProps,\n ctaText: translations.ctaTextContent,\n ctaHref: '/',\n isPaymentFormVisible,\n };\n }\n\n const message = lastMsg && lastMsg?.content?.find((m) => m.special);\n if (isLastAssistantMsg && message && message?.special) {\n return {\n ...staticProps,\n ctaText: specialUrls[message.special].includes('merchant') ? translations.merchantButton : translations.supportButton,\n ctaHref: specialUrls[message.special],\n };\n }\n\n if (link && purpose === SUPPORT_PURPOSE) {\n return {\n ...staticProps,\n isResponseFormVisible: true,\n };\n }\n\n const isResponseFormVisible = lastMsg && !link && !isLoading && (noButtonChoices || lastMsg?.role === Roles.user);\n\n return {\n ...staticProps,\n ctaText: translations.mealButton,\n ctaHref: link,\n isResponseFormVisible,\n };\n};\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n","import { EventEmitter } from 'node:events';\n\nimport { Intentions } from '../config/enums';\n\nexport const intent = {\n type: Intentions,\n core: new EventEmitter()\n};\n\nexport default intent;\n","/* eslint-disable spaced-comment */\nimport { tv, type VariantProps } from 'tailwind-variants';\n\nexport const basic = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none',\n },\n variants: {\n theme: {\n light: {\n base: 'tw--bg-light-glazeBg tw--text-light-glazeText tw--border-light-seraph tw--font-medium',\n },\n dark: {\n base: 'tw--bg-dark-glazeBg tw--text-dark-glazeText tw--border-dark-glaze',\n },\n },\n },\n});\n\nexport const icon = /*tw*/ tv({\n slots: {\n base: 'tw--text-[inherit]',\n },\n variants: {\n theme: {\n light: { base: 'tw--text-light-status' },\n dark: { base: 'tw--text-dark-seraph' },\n },\n outlined: {\n true: 'tw--p-0.5 tw--bg-white tw--rounded-full tw--shadow',\n false: 'tw--bg-[transparent]',\n },\n },\n});\n\nexport type BasicVariants = VariantProps;\nexport type IconVariants = VariantProps;\n","import { useAppSelector } from '../../hooks';\nimport { ButtonProps } from '../../interfaces/component';\nimport { getConfig } from '../../store/slices/config';\nimport { basic as variant } from './variants';\n\nexport const Btn = ({ text = '', onClick, e2e }: ButtonProps) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n \n {text}\n \n );\n};\n\nexport default Btn;\n","import { useAppSelector } from '../../hooks';\nimport { IconProps } from '../../interfaces/component';\nimport { getConfig } from '../../store/slices/config';\nimport { icon as variant } from './variants';\n\nexport const IconBtn = ({ children, outlined = false, onClick, e2e = null, disabled = false }: IconProps) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme, outlined });\n\n return (\n \n {children}\n \n );\n};\n\nexport default IconBtn;\n","import { tv } from 'tailwind-variants';\n\nexport const basic = /* tw*/ tv({\n slots: {\n base: 'tw--relative tw--flex tw--items-center',\n input: 'tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] focus:tw--outline-none',\n loader: 'tw--absolute tw--right-4 tw--top-[50%] tw--translate-y-[-50%]',\n spin: 'tw--block tw--w-6 tw--h-6 tw--border-solid tw--border-[5px] tw--rounded-3xl tw--animate-rotate tw--m-auto'\n },\n variants: {\n theme: {\n light: {\n base: '',\n input: 'tw--bg-light-lumina tw--text-light-zephyr-100 tw--font-semibold focus:!tw--bg-light-lumina',\n loader: '',\n spin: 'tw--border-light-zephyr-200 tw--border-t-light-zephyr-600 tw--border-l-light-zephyr-600',\n },\n dark: {\n base: '',\n input: 'tw--bg-dark-lumina tw--text-dark-zephyr-100 tw--font-bold focus:!tw--bg-dark-lumina',\n loader: '',\n spin: 'w--border-dark-zephyr-200 tw--border-t-dark-zephyr-600 tw--border-l-dark-zephyr-600',\n },\n },\n },\n});\n\nexport default basic;\n","import { forwardRef } from 'react';\n\nimport { useAppSelector } from '../../hooks';\nimport { BasicInputProps } from '../../interfaces/component';\nimport { getConfig } from '../../store/slices/config';\nimport { basic as variant } from './variants';\n\nexport const Input = forwardRef((props, ref) => {\n const {\n disabled,\n e2e,\n isLoading,\n onChange,\n onKeyUp,\n placeholder,\n type,\n value,\n } = props;\n\n const { themeId: theme } = useAppSelector(getConfig);\n const { base, input, loader, spin } = variant({ theme });\n\n return (\n
\n \n\n {isLoading && (\n \n \n \n )}\n
\n );\n});\n\nInput.displayName = 'Input';\n\nexport default Input;\n","import { useEffect, useRef, useState } from 'react';\n\nimport { AllEvents } from '../../config/enums';\nimport { useAppDispatch, useAppSelector } from '../../hooks';\nimport { intent } from '../../services/intentions';\nimport { track } from '../../services/tracking';\nimport { getConfig } from '../../store/slices/config';\nimport { getEmailIntentions, setEmail, setIsEmailLoading } from '../../store/slices/intentions';\nimport { IconBtn } from '../Button';\nimport { Input } from '../Input/basic';\nimport { layoutFoot as variant } from '../Layout/variants';\n\nexport const EmailForm = () => {\n const dispatch = useAppDispatch();\n const meta = useAppSelector((state) => state.meta);\n const { themeId: theme, translations } = useAppSelector(getConfig);\n const { isLoading } = useAppSelector(getEmailIntentions);\n const { base, input, button } = variant({ theme });\n const [email, setCurrentEmail] = useState('');\n const inputElement = useRef(null);\n\n useEffect(() => {\n track({\n eventType: AllEvents.emailField,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n });\n\n setTimeout(() => {\n if (!inputElement.current) { return }\n inputElement.current.focus();\n }, 500);\n });\n\n const handleInputChange = (e: React.ChangeEvent) => {\n const currentValue = e.target.value.trim();\n setCurrentEmail(currentValue);\n };\n\n const handleFormSubmit = (e: React.FormEvent | React.MouseEvent) => {\n e.preventDefault();\n\n if (email === '') {\n return;\n }\n\n dispatch(setIsEmailLoading(true));\n dispatch(setEmail(email));\n intent.core.emit(intent.type.email, { email });\n setCurrentEmail('');\n };\n\n return (\n \n
\n \n
\n
\n \n \n \n \n \n
\n \n );\n};\n\nexport default EmailForm;\n","import { useEffect, useRef, useState } from 'react';\n\nimport { IconBtn } from '../../components/Button';\nimport { Input } from '../../components/Input';\nimport { Roles } from '../../config/enums';\nimport { useAppDispatch, useAppSelector } from '../../hooks';\nimport { fillUserHistoryData, getChat, setLastGroupPointer, setTypingTimeoutExpired } from '../../store/slices/chat';\nimport { getConfig } from '../../store/slices/config';\nimport { uuidV4 } from '../../utils';\nimport { layoutFoot as variant } from '../Layout/variants';\nimport { TYPING_TIMEOUT } from '../../config/env';\n\nexport const ResponseForm = () => {\n const dispatch = useAppDispatch();\n const { themeId: theme } = useAppSelector(getConfig);\n const { connected, isLoading } = useAppSelector(getChat);\n const { base, input, button } = variant({ theme });\n const [response, setCurrentResponse] = useState('');\n const [timerId, setTimerId] = useState(null);\n const groupId = useAppSelector((state) => state.chat.lastGroupId);\n const inputElement = useRef(null);\n\n useEffect(() => {\n setTimeout(() => {\n inputElement.current?.focus();\n }, 500);\n }, []);\n\n const handleInputChange = (e: React.ChangeEvent) => {\n setCurrentResponse(e.target.value);\n setTimerToSendMessage();\n };\n\n const handleFormSubmit = (e: React.FormEvent | React.MouseEvent) => {\n e.preventDefault();\n\n if (response.trim()) {\n dispatch(fillUserHistoryData({\n role: Roles.user,\n id: uuidV4(),\n sequence: 1,\n content: {\n sequence: 1, message: response, groupId, resend: false, sent: true\n }\n }));\n }\n\n setCurrentResponse('');\n setTimerToSendMessage();\n };\n\n const setTimerToSendMessage = () => {\n if (timerId) {\n clearTimeout(timerId);\n }\n const currentId = setTimeout(() => {\n dispatch(setTypingTimeoutExpired(true));\n dispatch(setLastGroupPointer(uuidV4()));\n }, TYPING_TIMEOUT);\n setTimerId(currentId);\n };\n\n return (\n \n
\n \n
\n
\n \n \n \n \n \n
\n \n );\n};\n\nexport default ResponseForm;\n","import { useEffect, useRef, useState } from 'react';\n\nimport { PaymentScene } from '../../components/Scenes/payment';\nimport { Ellipsis } from '../../components/Stream/ellipsis';\nimport { AllEvents } from '../../config/enums';\nimport { LINK_CLICKED_KEY } from '../../config/env';\nimport { useAppDispatch } from '../../hooks';\nimport { useFootProps } from '../../hooks/foot';\nimport intent from '../../services/intentions';\nimport { track } from '../../services/tracking';\nimport { addPredefinedAssistantMessage, setClosed } from '../../store/slices/chat';\nimport { setIsPaymentButtonVisible, setIsPaymentSuccessful, setPaymentFormVisibility, setPaymentIntentError } from '../../store/slices/intentions';\nimport { EmailForm, ResponseForm } from '../Form';\nimport { Link, PaymentButton } from '../Payment';\n\nexport const LayoutFoot = () => {\n const dispatch = useAppDispatch();\n const footState = useFootProps();\n const ctaAfterPayButton = useRef(null);\n const [disabled, setDisabled] = useState(false);\n\n const setIsPaymentContainerVisible = (isVisible: boolean): void => {\n dispatch(setPaymentFormVisibility(isVisible));\n };\n\n useEffect(() => {\n if (footState.isEmailFormVisible) {\n track({\n eventType: AllEvents.emailField,\n systemType: footState.systemType,\n utmParams: footState.marketing.lastUtmParams,\n customerUuid: footState.cid,\n email: footState.currentEmail\n });\n }\n }, [footState.isEmailFormVisible]);\n\n const onClosePaymentForm = (e: React.MouseEvent) => {\n e.currentTarget.disabled = true;\n intent.core.emit(intent.type.destroy);\n setIsPaymentContainerVisible(false);\n setDisabled(false);\n };\n\n const onPaymentSuccess = () => {\n dispatch(addPredefinedAssistantMessage({ content: footState.translations.tm1226 }));\n dispatch(setIsPaymentSuccessful(true));\n dispatch(setIsPaymentButtonVisible(false));\n setIsPaymentContainerVisible(false);\n track({\n eventType: AllEvents.linkProvided,\n systemType: footState.systemType,\n utmParams: footState.marketing.lastUtmParams,\n customerUuid: footState.cid,\n email: footState.currentEmail\n });\n setTimeout(() => {\n if (ctaAfterPayButton.current) {\n ctaAfterPayButton.current.click();\n }\n }, 7000);\n };\n\n const onError = (message: string): void => {\n dispatch(setPaymentIntentError(message));\n };\n\n const initializePaymentForm = () => {\n intent.core.emit(intent.type.payment, { setIsPaymentContainerVisible, onPaymentSuccess, onError });\n setDisabled(true);\n };\n\n const onClickCta = (e: React.MouseEvent) => {\n localStorage.setItem(LINK_CLICKED_KEY, e.currentTarget.href);\n track({\n eventType: AllEvents.linkClicked,\n systemType: footState.systemType,\n utmParams: footState.marketing.lastUtmParams,\n customerUuid: footState.cid,\n email: footState.currentEmail\n });\n dispatch(setClosed());\n };\n\n return (\n
\n {footState.error &&
{footState.error}
}\n {footState.isPaymentFormVisible && }\n {footState.isLoading && }\n {footState.ctaHref\n && (\n \n )}\n\n {!footState.isStreaming && footState.isEmailFormVisible && }\n {!footState.isStreaming && footState.isResponseFormVisible && }\n\n {footState.isPaymentButtonVisible && (\n \n )}\n
\n );\n};\n\nexport default LayoutFoot;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const profile = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--items-center tw--select-none',\n avatar: 'tw--rounded-full',\n info: '',\n name: '',\n role: '',\n imgWrapper: '',\n minimized: ''\n },\n variants: {\n theme: {\n light: {\n role: '',\n },\n dark: {\n role: '',\n },\n },\n orientation: {\n horizontal: {\n base: 'tw--flex-row tw--text-left',\n avatar: 'tw--shrink',\n name: 'tw--text-xl/7 tw--font-bold tw--leading-[30px]',\n info: 'tw--pl-[10px]'\n },\n vertical: {\n base: 'tw--flex-col tw--text-center',\n name: 'tw--text-[24px] tw--font-semibold',\n },\n },\n minimized: {\n true: '',\n false: '',\n },\n },\n compoundSlots: [\n {\n slots: ['role'],\n orientation: 'vertical',\n theme: 'light',\n class: 'tw--text-light-zephyr-600 tw--font-medium'\n },\n {\n slots: ['role'],\n orientation: 'horizontal',\n theme: 'light',\n class: 'tw--text-light-zephyr-800'\n },\n {\n slots: ['role'],\n orientation: 'vertical',\n theme: 'dark',\n class: 'tw--text-dark-zephyr-600'\n },\n {\n slots: ['role'],\n orientation: 'horizontal',\n theme: 'dark',\n class: 'tw--text-dark-zephyr-800'\n },\n {\n slots: ['imgWrapper'],\n orientation: 'horizontal',\n minimized: false,\n class: 'tw--relative tw--h-fit after:tw--absolute after:tw--w-[10px] after:tw--h-[10px] after:tw--bottom-[-2px] after:tw--left-[37px] after:tw--z-10 after:tw--rounded-full after:tw--bg-light-iota-dots'\n },\n {\n slots: ['avatar'],\n orientation: 'horizontal',\n minimized: false,\n class: 'tw--h-[50px]',\n },\n {\n slots: ['avatar'],\n orientation: 'vertical',\n minimized: false,\n class: 'tw--h-[60px]',\n },\n ],\n});\n\nexport default profile;\n","import { ScreenOrientation } from '../../config/enums';\nimport { useAppSelector } from '../../hooks';\nimport { ProfileProps } from '../../interfaces/component';\nimport { getConfig } from '../../store/slices/config';\nimport { profile as variant } from './variants';\n\nexport const Profile = ({ orientation = ScreenOrientation.horizontal, minimized = false }: ProfileProps) => {\n const { aiProfile, themeId: theme } = useAppSelector(getConfig);\n const { base, avatar, info, name, role, imgWrapper } = variant({ theme, orientation, minimized });\n\n return (\n
\n \n \n \n
\n
{aiProfile.name}
\n
{aiProfile.role}
\n
\n
\n );\n};\n\nexport default Profile;\n","import { MouseEvent } from 'react';\n\nimport { AllEvents } from '../../config/enums';\nimport { CLOSE_AFTER_TIMEOUT } from '../../config/env';\nimport { useAppDispatch, useHeadControls } from '../../hooks';\nimport { track } from '../../services/tracking';\nimport { setClosed } from '../../store/slices/chat';\nimport { IconBtn } from '../Button';\nimport { Profile } from '../Profile';\nimport { layoutHead as variant } from './variants';\n\nexport const LayoutHead = () => {\n const dispatch = useAppDispatch();\n const headState = useHeadControls();\n const { base } = variant({ theme: headState.theme });\n\n const onClick = (e: MouseEvent) => {\n e.currentTarget.disabled = true;\n track({\n eventType: AllEvents.closeClicked,\n systemType: headState.systemType,\n utmParams: headState.marketing.lastUtmParams,\n customerUuid: headState.cid,\n });\n setTimeout(() => {\n dispatch(setClosed());\n }, CLOSE_AFTER_TIMEOUT);\n };\n\n return (\n
\n \n {headState.closeVisible && (\n \n \n \n \n \n \n \n \n )}\n
\n );\n};\n\nexport default LayoutHead;\n","import { CHAT_SEEN_KEY, CID } from '../config/env';\n\n/**\n * Extracts a link from a given string and appends query parameters if specified.\n *\n * @param {string} link - The input string from which the link will be extracted.\n * @example constructLink('here is a link to a diet website https://usa.example.com', '12311231a2', hasQueryParams('https://usa.example.com'));\n * //output: https://usa.example.com/?utm_chat=salesmen-keto-redirect&chatSeen=true&cid=12311231a2\n * @returns {string} The extracted link with optional query parameters or `false` if no link is found.\n */\nexport const constructLink = (link: string): string => {\n const hasQueryParams = (url: string) => {\n // Regular expression pattern to match query parameters\n const pattern = /[?&]([^=#]+)=([^&#]*)/g;\n\n // Check if the pattern matches any query parameters\n return pattern.test(url);\n };\n\n // matching example: 'Secure site: https://www.example.com' will give [ https://www.example.com ]\n\n let search: string;\n\n if (window.location.search) {\n const searchParams = new URLSearchParams(window.location.search);\n\n searchParams.append(CHAT_SEEN_KEY, 'true');\n searchParams.append(CID, localStorage.getItem('__cid') || '');\n\n search = `/?${ searchParams}`;\n } else {\n search = '';\n }\n\n if (hasQueryParams(link)) {\n return link;\n }\n\n return link + search;\n};\n","import { MouseEvent,useEffect } from 'react';\n\nimport { AllEvents } from '../../config/enums';\nimport { LINK_CLICKED_KEY, SUPPORT_PURPOSE } from '../../config/env';\nimport { useAppDispatch, useAppSelector } from '../../hooks';\nimport { MarkdownLinkProps } from '../../interfaces/component';\nimport { track } from '../../services/tracking';\nimport { setClosed } from '../../store/slices/chat';\nimport { getConfig } from '../../store/slices/config';\nimport { setLink } from '../../store/slices/intentions';\nimport { getMeta } from '../../store/slices/meta';\nimport { constructLink } from '../../utils/formatting';\n\nexport const MarkdownLink = ({ properties }: MarkdownLinkProps) => {\n const { purpose } = useAppSelector(getConfig);\n const { cid, marketing, systemType } = useAppSelector(getMeta);\n const dispatch = useAppDispatch();\n const link = properties.href ? constructLink(properties.href) : '#';\n useEffect(() => {\n dispatch(setLink(link));\n });\n\n const onClick = (e: MouseEvent) => {\n if (purpose !== SUPPORT_PURPOSE) {\n localStorage.setItem(LINK_CLICKED_KEY, e.currentTarget.href);\n }\n \n track({\n eventType: AllEvents.linkClicked,\n systemType,\n utmParams: marketing.lastUtmParams,\n customerUuid: cid,\n });\n dispatch(setClosed());\n };\n\n return (\n {properties.href}\n \n );\n};\n\nexport default MarkdownLink;\n","import React, { useState } from 'react';\n\nconst extractVideoCode = (videoUrl: string) => {\n const pattern = /embed\\/(\\w+)/;\n const match = pattern.exec(videoUrl);\n\n if (match) {\n const videoCode = match[1];\n return videoCode;\n }\n\n return null;\n}\n\nexport const Iframe = React.memo(function Iframe({ url, title }: { url: string, title: string }) {\n const [isVisible, setIframeVisibility] = useState(false);\n\n const videoCode = extractVideoCode(url);\n\n const handleVideoClick = () => {\n setIframeVisibility(true);\n };\n\n return (\n isVisible\n ?\n \n :\n
\n \n
\n )\n});\n","import { tv } from 'tailwind-variants';\n\nexport const basic = /* tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none tw--text-center',\n },\n variants: {\n theme: {\n light: {\n base: 'tw--inline-block tw--bg-light-glaze tw--text-white',\n },\n dark: {\n base: 'tw--inline-block tw--bg-dark-glazeBg tw--text-dark-glazeText',\n },\n },\n },\n});\n\nexport const icon = /* tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--px-4 tw--py-2',\n },\n});\n","import { useAppSelector } from '../../hooks';\nimport { LinkProps } from '../../interfaces/component';\nimport { getConfig } from '../../store/slices/config';\nimport { basic as variant } from './variants';\n\nexport const Link = ({ text, href, onClick }: LinkProps) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base } = variant({ theme });\n\n return (\n \n {text}\n \n );\n};\n\nexport default Link;\n","import { AllEvents, Roles } from '../../config/enums';\nimport { useAppDispatch, useAppSelector } from '../../hooks';\nimport { OptionsListProps } from '../../interfaces/index';\nimport { track } from '../../services/tracking';\nimport { fillUserHistoryData, setOutgoing, userMessageFindOne } from '../../store/slices/chat';\nimport { getMeta } from '../../store/slices/meta';\nimport { uuidV4 } from '../../utils';\nimport { Btn } from '../Button';\nimport { Link } from '../Link';\n\nexport const OptionList = ({ options = [] }: OptionsListProps) => {\n const dispatch = useAppDispatch();\n const meta = useAppSelector(getMeta);\n const isFirstUserMessage = !useAppSelector(userMessageFindOne);\n\n const setOption = (val: string, sequence: number) => {\n dispatch(fillUserHistoryData({ id: uuidV4(), sequence: 1, role: Roles.user, content: { sequence: 1, message: val, resend: false, sent: true, groupId: '' } }));\n dispatch(setOutgoing(val));\n if (isFirstUserMessage) {\n track({\n eventType: AllEvents.buttonClick + sequence,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n });\n }\n };\n\n const setMessage = (val: string) => {\n dispatch(fillUserHistoryData({\n id: uuidV4(),\n sequence: 1,\n role: Roles.user,\n content: {\n sequence: 1,\n message: val,\n resend: false,\n sent: true,\n groupId: ''\n }\n }));\n };\n\n return [...options].sort((a, b) => a.sequence - b.sequence).map(({ value, link, sequence, noStream }) => (\n link\n ? (\n \n )\n : (\n setMessage(value) : () => setOption(value, sequence)}\n e2e=\"option-button\"\n />\n )\n ));\n};\n\nexport default OptionList;\n","import React from 'react';\nimport Markdown from 'react-markdown';\n\nimport { Definition } from '../../config/enums';\nimport { useAppSelector } from '../../hooks';\nimport { AssistantProps } from '../../interfaces/component';\nimport { getChat, sortBySequence } from '../../store/slices/chat';\nimport { getConfig } from '../../store/slices/config';\nimport { getMeta } from '../../store/slices/meta';\nimport { uuidV4 } from '../../utils';\nimport MarkdownLink from '../Markdown/link';\nimport { Iframe } from '../Video';\nimport OptionList from './options';\nimport { flickerEffect } from './variants';\n\nconst Assistant = ({ message, itemId }: AssistantProps) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { isStreaming } = useAppSelector(getChat);\n const { pd } = useAppSelector(getMeta);\n const isLast = useAppSelector((state) => state.chat.historyIds.length - 1 === state.chat.historyIds.indexOf(itemId));\n const { base: baseFlicker } = flickerEffect({ isTyping: isStreaming && isLast, theme });\n const sortedContent = [...message.content].sort(sortBySequence);\n\n return (\n <>\n {sortedContent.map((it) => {\n if (it.type === Definition.text) {\n return (\n \n \n ; }\n }}\n >{it[it.type]}\n \n \n \n );\n }\n\n if (it.type === Definition.buttons && isLast) {\n return (\n
\n \n
\n );\n }\n\n if (it.type === Definition.video) {\n return (\n \n );\n }\n\n if (it.type === Definition.image) {\n return (\n \n );\n }\n\n if (it.type === Definition.payment) {\n return `${it[it.type]} ${pd.displayPlanPrice} ${pd.billingFrequencyTmsg}`;\n }\n\n if (it.type === Definition.email) {\n return it[it.type];\n }\n\n\n })}\n \n );\n};\n\nexport const MemoizedAssistant = React.memo(Assistant);\n\nexport default MemoizedAssistant;\n","import React from 'react';\n\nimport { Roles } from '../../config/enums';\nimport { useAppSelector } from '../../hooks';\nimport { UserMessageContent } from '../../interfaces';\nimport { getConfig } from '../../store/slices/config';\nimport { uuidV4 } from '../../utils';\nimport { User } from '../Stream';\nimport { MemoizedAssistant } from './assistant';\nimport { streamBubble as variant } from './variants';\n\nconst StreamBubble = ({ itemId }: { itemId: string }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const record = useAppSelector((state) => state.chat.historyData[itemId]);\n\n return (record && (\n
\n {record.role === Roles.assistant\n ? (\n \n )\n :\n [...record.content].map((record: UserMessageContent) => )\n }\n
\n ));\n};\n\nexport const MemoizedStreamBubble = React.memo(StreamBubble);\nexport default MemoizedStreamBubble;\n","import { Profile } from '../../components/Profile';\nimport { ScreenOrientation } from '../../config/enums';\nimport { useAppSelector } from '../../hooks';\nimport { getConfig } from '../../store/slices/config';\nimport { streamHead as variant } from './variants';\n\nexport const StreamHead = ({ titleTxt }: { titleTxt: string }) => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { base, title } = variant({ theme });\n\n return (\n
\n {title &&
{titleTxt}
}\n \n
\n );\n};\n\nexport default StreamHead;\n","import { useAppSelector } from '../../hooks';\nimport { getConfig } from '../../store/slices/config';\nimport { formatDateByLocale, uuidV4 } from '../../utils';\nimport { MemoizedStreamBubble } from './bubble';\nimport { StreamHead } from './head';\nimport { streamBase, streamRow } from './variants';\n\nexport const StreamBase = () => {\n const { themeId: theme } = useAppSelector(getConfig);\n const { aiProfile } = useAppSelector(getConfig);\n const historyIds = useAppSelector((state) => state.chat.historyIds || []);\n const firstMessage = useAppSelector((state) => state.chat.historyData[historyIds[0]]);\n const { base, second, date } = streamBase({ theme });\n const { base: baseRow } = streamRow({ theme });\n const time = formatDateByLocale(firstMessage?.time || new Date().getTime());\n\n return (\n
\n
\n \n {
{time}
}\n {historyIds.map((id: string) => (\n \n \n
\n ))}\n
\n \n );\n};\n\nexport default StreamBase;\n","import { IconBtn } from '../../components/Button';\nimport { Roles } from '../../config/enums';\nimport { useAppDispatch,useAppSelector } from '../../hooks';\nimport { UserProps } from '../../interfaces/component';\nimport { resendMessage } from '../../store/slices/chat';\nimport { getConfig } from '../../store/slices/config';\nimport { streamBubble as variant } from './variants';\n\nexport const User = ({ record }: UserProps) => {\n const dispatch = useAppDispatch();\n const { themeId: theme } = useAppSelector(getConfig);\n const { action, separator } = variant({ theme, type: Roles.user });\n\n const onResend = () => {\n dispatch(resendMessage(record));\n };\n\n return (\n
\n \n {record.message}\n \n {(record.resend && !record.sent) && (\n
\n onResend()}>\n \n \n \n \n \n
\n )}\n
\n );\n};\n\nexport default User;\n","import { useAppDispatch } from '../../hooks';\nimport { AppProps } from '../../interfaces/component';\nimport { setConfig, setPurpose, setSpecialUrls } from '../../store/slices/config';\nimport { setMeta } from '../../store/slices/meta';\nimport { LayoutBase, LayoutFoot,LayoutHead } from '../Layout';\nimport { StreamBase } from '../Stream';\n\nexport const AppBase = ({ config }: AppProps) => {\n const dispatch = useAppDispatch();\n dispatch(setMeta(config.meta));\n dispatch(setPurpose(config.app.purpose));\n dispatch(setSpecialUrls(config.specialUrls));\n dispatch(setConfig(config.app));\n\n return (\n }\n stream={}\n foot={}\n />\n );\n};\n\nexport default AppBase;\n","\"use strict\";\n\nexports.__esModule = true;\nexports.default = getStorage;\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction noop() {}\n\nvar noopStorage = {\n getItem: noop,\n setItem: noop,\n removeItem: noop\n};\n\nfunction hasStorage(storageType) {\n if ((typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) !== 'object' || !(storageType in self)) {\n return false;\n }\n\n try {\n var storage = self[storageType];\n var testKey = \"redux-persist \".concat(storageType, \" test\");\n storage.setItem(testKey, 'test');\n storage.getItem(testKey);\n storage.removeItem(testKey);\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') console.warn(\"redux-persist \".concat(storageType, \" test failed, persistence will be disabled.\"));\n return false;\n }\n\n return true;\n}\n\nfunction getStorage(type) {\n var storageType = \"\".concat(type, \"Storage\");\n if (hasStorage(storageType)) return self[storageType];else {\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"redux-persist failed to create sync storage. falling back to noop storage.\");\n }\n\n return noopStorage;\n }\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = createWebStorage;\n\nvar _getStorage = _interopRequireDefault(require(\"./getStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction createWebStorage(type) {\n var storage = (0, _getStorage.default)(type);\n return {\n getItem: function getItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.getItem(key));\n });\n },\n setItem: function setItem(key, item) {\n return new Promise(function (resolve, reject) {\n resolve(storage.setItem(key, item));\n });\n },\n removeItem: function removeItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.removeItem(key));\n });\n }\n };\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _createWebStorage = _interopRequireDefault(require(\"./createWebStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _default = (0, _createWebStorage.default)('local');\n\nexports.default = _default;","import { Middleware } from '@reduxjs/toolkit';\n\nimport { AllEvents, Roles } from '../config/enums';\nimport { STORING_CHECKER_INTERVAL } from '../config/env';\nimport { PaymentDataSetterProps } from '../interfaces';\nimport intent from '../services/intentions';\nimport { track } from '../services/tracking';\nimport { RootState } from '../store';\nimport {\n addPredefinedAssistantMessage,\n fillUserHistoryData,\n setOutgoing\n} from '../store/slices/chat';\nimport {\n setEmailError,\n setEmailSuccess,\n setIsEmailLoading,\n setLink,\n} from '../store/slices/intentions';\nimport { setMarketing, setPd } from '../store/slices/meta';\nimport { uuidV4 } from '../utils';\n\nexport const intentionsMiddleware: Middleware = (store) => (next) => {\n\n const setPaymentDataTranslationAccordingly = (data: PaymentDataSetterProps | string): PaymentDataSetterProps => {\n const { meta } = store.getState();\n const transformedData = {} as PaymentDataSetterProps;\n\n if (!meta.pd) {\n return transformedData;\n }\n\n if (typeof data === 'object' && 'billingOptionType' in data) {\n data.billingFrequencyTmsg =\n data.billingOptionType === 'one-time'\n ? meta.pd.oneTimer\n : meta.pd.subscriberBillingFrequency?.replace(\n '{1}',\n data.frequencyInMonths\n );\n data = { ...data, ...transformedData };\n return data;\n }\n\n return transformedData\n };\n\n intent.core.on(intent.type.emailSuccess, () => {\n const { meta, intentions } = store.getState();\n\n store.dispatch(setIsEmailLoading(false));\n store.dispatch(setEmailError(''));\n store.dispatch(\n fillUserHistoryData({\n id: uuidV4(),\n role: Roles.user,\n sequence: 1,\n content: {\n sequence: 1,\n message: intentions.email.current,\n resend: false,\n sent: true,\n groupId: '',\n },\n })\n );\n store.dispatch(setOutgoing(intentions.email.current));\n\n // DEV NOTE: setEmailSuccess this status is for us to know if mail is validated in the endpoint\n store.dispatch(setEmailSuccess(true));\n track({\n eventType: AllEvents.emailEntered,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current,\n });\n });\n\n intent.core.on(intent.type.emailError, (response) => {\n const { meta, intentions, config } = store.getState();\n const { tm716, tm526, tm715, tm505 } = config.translations;\n\n store.dispatch(setIsEmailLoading(false));\n\n if (response.status === 409) {\n store.dispatch(addPredefinedAssistantMessage({\n content: tm716,\n buttons: [\n { sequence: 1, id: 'opt-1', text: tm526, value: tm526, link: response.data.buttonLink, noStream: true },\n { sequence: 2, id: 'opt-2', text: tm715, value: tm715, link: '', noStream: true }\n ]\n }));\n\n track({\n eventType: AllEvents.emailExist,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current,\n });\n return;\n }\n\n if (response.status === 422) {\n store.dispatch(setEmailError(response.errors.email[0] || tm505));\n\n track({\n eventType: AllEvents.emailWrong,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current,\n });\n }\n });\n\n dataIntervalChecker('marketing', store, setMarketing);\n dataIntervalChecker(\n '__pd',\n store,\n setPd,\n setPaymentDataTranslationAccordingly\n );\n\n return (action) => {\n if (setLink.match(action) && action.payload) {\n const { meta, intentions } = store.getState();\n\n track({\n eventType: AllEvents.linkProvided,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n }\n next(action);\n };\n};\n\nconst dataIntervalChecker = (\n key: string,\n store: RootState,\n setValue: (data: PaymentDataSetterProps | string) => void,\n transformData?: (\n data: string | PaymentDataSetterProps\n ) => PaymentDataSetterProps\n) => {\n const intervalId = setInterval(() => {\n let storedItem: string | PaymentDataSetterProps =\n localStorage.getItem(key) || '';\n\n try {\n storedItem = JSON.parse(storedItem);\n } catch (e) {\n storedItem = localStorage.getItem(key) || '';\n }\n\n if (transformData && storedItem) {\n storedItem = transformData(storedItem);\n }\n\n if (transformData && storedItem) {\n store.dispatch(setValue(storedItem));\n clearInterval(intervalId);\n }\n }, STORING_CHECKER_INTERVAL);\n};\n\nexport default intentionsMiddleware;\n","import { Middleware } from '@reduxjs/toolkit';\nimport { io, Socket } from 'socket.io-client';\n\nimport { config as socketConfig, Events } from '../config';\nimport { QueryParams, Roles } from '../config/enums';\nimport { CHAT_FINISHED_TIMESTAMP, DEFAULT_CLOSE_HREF, SCROLL_STOP_CLASS, SUPPORT_PURPOSE } from '../config/env';\nimport {\n AssistantHistoryInitialMessage,\n AssistantRecord,\n ClientMessage,\n SocketHistoryRecord,\n UserMessageContent\n} from '../interfaces'\nimport {\n fillAssistantHistoryData,\n fillInitialMessage,\n hideResendIcon,\n resendMessage,\n resetError,\n resetHistory,\n resetIsLoading,\n resetOutgoing,\n setClosed,\n setConnected,\n setError,\n setExistingHistory,\n setIsLoading,\n setIsStreaming,\n setOutgoing,\n setTypingTimeoutExpired,\n showResendIcon,\n} from '../store/slices/chat';\nimport { setConfig } from '../store/slices/config';\nimport { setRegion } from '../store/slices/meta';\nimport { getQueryParam } from '../utils';\n\nlet socket: Socket;\n\nconst chatMiddleware: Middleware = (store) => (next) => (action) => {\n const { meta, chat, config } = store.getState();\n\n const onError = () => {\n const { config } = store.getState();\n store.dispatch(resetIsLoading());\n store.dispatch(setError(config.translations.error));\n };\n\n const dispatchRetry = () => {\n store.dispatch(showResendIcon({ itemId: chat.historyIds.pop() }));\n onError();\n };\n\n const handleMessageSending = (data: ClientMessage): void => {\n if (data.role === Roles.user) {\n store.dispatch(setIsLoading());\n }\n\n if (socket && socket.connected && data.message.trim() !== '') {\n socket.emit(Events.chat, { time: new Date().getTime(), ...data }, withTimeout(dispatchRetry));\n store.dispatch(resetError());\n return;\n }\n\n dispatchRetry();\n };\n\n const handleMessageResending = (data: { itemId: string, message: string }) => {\n store.dispatch(hideResendIcon(data));\n store.dispatch(setIsLoading());\n\n const onResendError = () => {\n const { config } = store.getState();\n store.dispatch(showResendIcon(data));\n store.dispatch(resetIsLoading());\n store.dispatch(setError(config.translations.error));\n };\n\n if (socket?.connected && data.message.trim() !== '') {\n socket.volatile.emit(\n Events.chat,\n {\n role: Roles.user,\n message: data.message,\n term: getQueryParam(QueryParams.chat),\n user_id: meta.cid,\n region: meta.region,\n },\n withTimeout(onResendError)\n );\n store.dispatch(resetError());\n } else {\n onResendError();\n }\n };\n\n if (setOutgoing.match(action)) {\n handleMessageSending({\n role: Roles.user,\n message: action.payload,\n term: getQueryParam(QueryParams.chat),\n user_id: meta.cid,\n region: meta.region,\n messageId: [...chat.historyIds].pop(),\n });\n }\n\n if (setClosed.match(action)) {\n const chatBotContainer = document.querySelector('#chatbot-container');\n\n if (document.body && chatBotContainer && config.purpose !== SUPPORT_PURPOSE) {\n chatBotContainer.innerHTML = '';\n document.body.classList.remove(SCROLL_STOP_CLASS);\n }\n\n localStorage.setItem(CHAT_FINISHED_TIMESTAMP, new Date().getTime().toString());\n\n if (socket) {\n socket.close();\n }\n\n window.location.href = config.close.href || DEFAULT_CLOSE_HREF;\n }\n\n if (setTypingTimeoutExpired.match(action) && action.payload) {\n const messageId = [...chat.historyIds].pop();\n const lastMessage = chat.historyData[messageId].content.map(({ message }: { message: UserMessageContent }) => message).join('\\n');\n\n if (lastMessage.trim() !== '') {\n handleMessageSending({\n role: Roles.user,\n message: lastMessage,\n term: getQueryParam(QueryParams.chat),\n user_id: meta.cid,\n region: meta.region,\n messageId\n });\n }\n }\n\n if (resendMessage.match(action)) {\n handleMessageResending(action.payload);\n }\n\n if (!setConfig.match(action)) {\n return next(action);\n }\n\n store.dispatch(setIsLoading());\n\n // @ts-expect-error this is working currently\n socket = io.connect(action.payload.chatUrl, { query: `cid=${meta.cid}`, ...socketConfig });\n\n socket.on(Events.connect, () => {\n const { meta } = store.getState();\n socket.sendBuffer = [];\n socket.emit(Events.chatHistory, { user_id: meta.cid, region: meta.region, term: getQueryParam(QueryParams.chat) });\n store.dispatch(setConnected(true));\n });\n\n socket.on(Events.chatHistory, ({ history: servedHistory, errors, region }\n : { history: Array, errors: string[], region: string }) => {\n\n store.dispatch(resetIsLoading());\n store.dispatch(setIsStreaming(false));\n store.dispatch(setRegion(region));\n const { config, meta } = store.getState();\n\n if (errors.length) {\n store.dispatch(setError(errors[0]));\n return;\n }\n\n if (servedHistory.length) {\n store.dispatch(setExistingHistory(servedHistory));\n return\n }\n\n store.dispatch(resetHistory());\n store.dispatch(setIsLoading());\n let interval = 0;\n config.aiProfile.initialMessage\n .forEach((element: AssistantHistoryInitialMessage, index: number, arr: Array) => {\n interval += 1000;\n\n setTimeout(() => {\n store.dispatch(fillInitialMessage(element));\n\n if (arr.length === index + 1) {\n config.aiProfile.initialMessage.forEach((message: SocketHistoryRecord) =>\n handleMessageSending({\n role: Roles.assistant,\n term: getQueryParam(QueryParams.chat),\n user_id: meta.cid,\n message: JSON.stringify(message.content),\n messageId: message.id,\n region: meta.region,\n }));\n store.dispatch(resetIsLoading());\n }\n\n }, interval);\n\n });\n });\n\n socket.on(Events.streamStart, ({ id }: { id: string }) => {\n store.dispatch(setIsStreaming(true));\n store.dispatch(resetIsLoading());\n store.dispatch(resetOutgoing());\n store.dispatch(resetError());\n store.dispatch(fillAssistantHistoryData({ id }));\n });\n\n socket.on(Events.streamData, (data: AssistantRecord\n & {\n id: string,\n errors: Array\n }) => {\n\n store.dispatch(fillAssistantHistoryData({\n id: data.id,\n sequence: data.sequence,\n content: {\n type: data.type,\n [data.type]: data[data.type],\n sequence: data.sequence\n }\n }));\n\n if (data.errors?.length && !chat.error) {\n store.dispatch(setError(data.errors[0]));\n }\n });\n\n socket.on(Events.streamEnd, () => {\n store.dispatch(setIsStreaming(false));\n });\n\n socket.on(Events.streamError, onError);\n socket.on(Events.error, onError);\n\n socket.on(Events.disconnect, () => {\n store.dispatch(setConnected(false));\n });\n\n next(action);\n};\n\nconst withTimeout = (onTimeout: () => void, timeout: number = 5000) => {\n let called = false;\n const timer = setTimeout(() => {\n if (called) {\n return;\n }\n called = true;\n onTimeout();\n }, timeout);\n\n return () => {\n if (called) {\n return;\n }\n called = true;\n clearTimeout(timer);\n };\n};\n\nexport default chatMiddleware;\n","import { combineReducers, configureStore } from '@reduxjs/toolkit';\nimport { persistReducer,persistStore } from 'redux-persist';\nimport storage from 'redux-persist/lib/storage';\n\nimport intentionsMiddleware from '../middleware/intentions';\nimport chatMiddleware from '../middleware/socket';\nimport chatReducer from './slices/chat';\nimport configReducer from './slices/config';\nimport intentionsReducer from './slices/intentions';\nimport metaReducer from './slices/meta';\n\nconst persistConfig = {\n key: 'root',\n storage,\n whitelist: ['chat', 'meta', 'config'],\n};\n\nexport const store = configureStore({\n reducer: persistReducer(persistConfig, combineReducers({\n meta: metaReducer,\n config: configReducer,\n chat: chatReducer,\n intentions: intentionsReducer,\n })),\n middleware: (getDefaultMiddleware) => getDefaultMiddleware({ serializableCheck: false })\n .concat(chatMiddleware, intentionsMiddleware),\n});\n\n\nexport type AppDispatch = typeof store.dispatch\nexport type RootState = ReturnType\n\nexport const persistor = persistStore(store);\n","import './assets/css/index.css';\n\nimport ReactDOM from 'react-dom/client';\nimport { Provider } from 'react-redux';\nimport { PersistGate } from 'redux-persist/integration/react';\n\nimport { AppBase } from './components/AppBase';\nimport { SCROLL_STOP_CLASS } from './config/env';\nimport { persistor, store } from './store';\n\nexport { intent } from './services/intentions';\n\nlet initiated = false;\n\nexport const ReactBotClient = (config) => {\n if (initiated) {\n return;\n }\n initiated = true;\n\n ReactDOM\n .createRoot(config.root)\n .render(\n \n \n \n \n \n );\n\n document.body.classList.add(SCROLL_STOP_CLASS);\n};\n\nexport default ReactBotClient;\n"],"names":["base64Js","byteLength","toByteArray","fromByteArray","lookup","revLookup","Arr","code","i","len","getLens","b64","validLen","placeHoldersLen","lens","_byteLength","tmp","arr","curByte","tripletToBase64","num","encodeChunk","uint8","start","end","output","extraBytes","parts","maxChunkLength","len2","ieee754","buffer","offset","isLE","mLen","nBytes","e","m","eLen","eMax","eBias","nBits","d","s","value","c","rt","base64","require$$0","require$$1","customInspectSymbol","exports","Buffer","SlowBuffer","K_MAX_LENGTH","typedArraySupport","proto","createBuffer","length","buf","arg","encodingOrOffset","allocUnsafe","from","fromString","fromArrayView","isInstance","fromArrayBuffer","valueOf","b","fromObject","assertSize","size","alloc","fill","encoding","checked","string","actual","fromArrayLike","array","arrayView","copy","byteOffset","obj","numberIsNaN","a","x","y","list","pos","mustMatch","loweredCase","utf8ToBytes","base64ToBytes","slowToString","hexSlice","utf8Slice","asciiSlice","latin1Slice","base64Slice","utf16leSlice","swap","n","str","max","target","thisStart","thisEnd","thisCopy","targetCopy","bidirectionalIndexOf","val","dir","arrayIndexOf","indexSize","arrLength","valLength","read","foundIndex","found","j","hexWrite","remaining","strLen","parsed","utf8Write","blitBuffer","asciiWrite","asciiToBytes","base64Write","ucs2Write","utf16leToBytes","res","firstByte","codePoint","bytesPerSequence","secondByte","thirdByte","fourthByte","tempCodePoint","decodeCodePointsArray","MAX_ARGUMENTS_LENGTH","codePoints","ret","out","hexSliceLookupTable","bytes","newBuf","checkOffset","ext","noAssert","mul","defineBigIntMethod","validateNumber","first","last","boundsError","lo","hi","checkInt","min","maxBytes","wrtBigUInt64LE","checkIntBI","wrtBigUInt64BE","limit","sub","checkIEEE754","writeFloat","littleEndian","writeDouble","targetStart","errors","E","sym","getMessage","Base","name","range","input","msg","received","addNumericalSeparator","checkBounds","type","INVALID_BASE64_RE","base64clean","units","leadSurrogate","byteArray","src","dst","alphabet","table","i16","fn","BufferBigIntNotDefined","process","browserModule","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","defaultClearTimeout","runTimeout","fun","runClearTimeout","marker","queue","draining","currentQueue","queueIndex","cleanUpNextTick","drainQueue","timeout","args","Item","noop","r","l","f","k","p","q","g","h","reactJsxRuntime_production_min","React","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_OFFSCREEN_TYPE","MAYBE_ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","ReactSharedInternals","error","format","_len2","_key2","printWarning","level","ReactDebugCurrentFrame","stack","argsWithFormat","item","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","isValidElementType","getWrappedName","outerType","innerType","wrapperName","displayName","functionName","getContextName","getComponentNameFromType","context","provider","outerName","lazyComponent","payload","init","assign","disabledDepth","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","disabledLog","disableLogs","props","reenableLogs","ReactCurrentDispatcher","prefix","describeBuiltInComponentFrame","source","ownerFn","match","reentry","componentFrameCache","PossiblyWeakMap","describeNativeComponentFrame","construct","frame","control","previousPrepareStackTrace","previousDispatcher","Fake","sample","sampleLines","controlLines","_frame","syntheticFrame","describeFunctionComponentFrame","shouldConstruct","Component","prototype","describeUnknownElementTypeFrameInDEV","hasOwnProperty","loggedTypeFailures","setCurrentlyValidatingElement","element","owner","checkPropTypes","typeSpecs","values","location","componentName","has","typeSpecName","error$1","err","ex","isArrayImpl","isArray","typeName","hasToStringTag","willCoercionThrow","testStringCoercion","checkKeyStringCoercion","ReactCurrentOwner","RESERVED_PROPS","specialPropKeyWarningShown","specialPropRefWarningShown","didWarnAboutStringRefs","hasValidRef","config","getter","hasValidKey","warnIfStringRefCannotBeAutoConverted","self","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","key","ref","jsxDEV","maybeKey","propName","defaultProps","ReactCurrentOwner$1","ReactDebugCurrentFrame$1","setCurrentlyValidatingElement$1","propTypesMisspellWarningShown","isValidElement","object","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","fileName","lineNumber","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","info","parentName","validateExplicitKey","currentComponentErrorInfo","childOwner","validateChildKeys","node","child","iteratorFn","iterator","step","validatePropTypes","propTypes","_name","validateFragmentProps","fragment","keys","jsxWithValidation","isStaticChildren","validType","sourceInfo","typeString","children","jsxWithValidationStatic","jsxWithValidationDynamic","jsx","jsxs","reactJsxRuntime_development","jsxRuntimeModule","client","o","_typeof","_classCallCheck","instance","Constructor","_defineProperties","descriptor","_createClass","protoProps","staticProps","_possibleConstructorReturn","call","_assertThisInitialized","_getPrototypeOf","_inherits","subClass","superClass","_setPrototypeOf","_defineProperty","PersistGate","_PureComponent","_getPrototypeOf2","_this","_len","_key","persistor","_persistor$getState","bootstrapped","PureComponent","Definition","ScreenOrientation","QueryParams","AllEvents","Intentions","Roles","Events","Theme","getQueryParam","param","formatDateByLocaleOptions","formatDateByLocale","inputDate","options","uuidV4","uuid","meta","chat","intentions","configSlice","createSlice","initialState","state","getConfig","setConfig","resetConfig","setTheme","resetTheme","setDevToolsStatus","resetDevToolsStatus","togglePluginMode","setTranslations","setPurpose","setSpecialUrls","getMeta","setMeta","resetMeta","setMarketing","setPd","setRegion","useAppDispatch","useDispatch","useAppSelector","useSelector","useWindowSize","setSize","useState","useLayoutEffect","updateSize","useHeadControls","theme","close","cid","systemType","marketing","u","t","twJoin","index","argument","resolvedValue","toValue","mix","CLASS_PART_SEPARATOR","createClassUtils","classMap","createClassMap","conflictingClassGroups","_config$conflictingCl","conflictingClassGroupModifiers","getClassGroupId","className","classParts","getGroupRecursive","getGroupIdForArbitraryProperty","getConflictingClassGroupIds","classGroupId","hasPostfixModifier","conflicts","classPartObject","currentClassPart","nextClassPartObject","classGroupFromNextClassPart","classRest","_a","_ref","validator","arbitraryPropertyRegex","arbitraryPropertyClassName","property","prefixedClassGroupEntries","getPrefixedClassGroupEntries","_ref2","classGroup","processClassesRecursively","classDefinition","classPartObjectToEdit","getPart","isThemeGetter","_ref3","path","currentClassPartObject","pathPart","func","classGroupEntries","_ref4","prefixedClassGroup","_ref5","createLruCache","maxCacheSize","cacheSize","cache","previousCache","update","IMPORTANT_MODIFIER","createSplitModifiers","separator","isSeparatorSingleCharacter","firstSeparatorCharacter","separatorLength","modifiers","bracketDepth","modifierStart","postfixModifierPosition","currentCharacter","baseClassNameWithImportantModifier","hasImportantModifier","baseClassName","maybePostfixModifierPosition","sortModifiers","sortedModifiers","unsortedModifiers","modifier","isArbitraryVariant","createConfigUtils","SPLIT_CLASSES_REGEX","mergeClassList","classList","configUtils","splitModifiers","classGroupsInConflict","originalClassName","_splitModifiers","variantModifier","modifierId","classId","group","createTailwindMerge","createConfig","cacheGet","cacheSet","functionToCall","initTailwindMerge","firstCreateConfig","restCreateConfig","previousConfig","createConfigCurrent","tailwindMerge","cachedResult","result","fromTheme","themeGetter","arbitraryValueRegex","fractionRegex","stringLengths","tshirtUnitRegex","lengthUnitRegex","shadowRegex","isLength","isNumber","isArbitraryLength","getIsArbitraryValue","isLengthOnly","isArbitrarySize","isNever","isArbitraryPosition","isArbitraryUrl","isUrl","isArbitraryNumber","isPercent","isInteger","isIntegerOnly","isArbitraryValue","isAny","isTshirtSize","isArbitraryShadow","isShadow","label","testValue","getDefaultConfig","colors","spacing","blur","brightness","borderColor","borderRadius","borderSpacing","borderWidth","contrast","grayscale","hueRotate","invert","gap","gradientColorStops","gradientColorStopPositions","inset","margin","opacity","padding","saturate","scale","sepia","skew","space","translate","getOverscroll","getOverflow","getSpacingWithAutoAndArbitrary","getSpacingWithArbitrary","getLengthWithEmpty","getNumberWithAutoAndArbitrary","getPositions","getLineStyles","getBlendModes","getAlign","getZeroAndEmpty","getBreaks","getNumber","getNumberAndArbitrary","mergeConfigs","baseConfig","configExtension","mergePropertyRecursively","overrideTypes","baseObject","mergeKey","mergeValue","nextKey","extendTailwindMerge","twMerge","se","_","N","M","F","w","b$1","Z","ie","U","C","V","W","S","g$1","A","O","$","h$1","v","K","z","a$1","J","L","ae","T","P","D","G","H","I","ee","te","layoutBase","tv","layoutHead","layoutFoot","LayoutBase","head","stream","foot","isPluginMode","base","wrapper","variant","data","overlay","Overlay","track","eventType","utmParams","customerUuid","email","phone","event","payment","loader","PaymentButton","text","onClick","e2e","disabled","currentEmail","btn","useEffect","CloseButton","variants","PaymentFooter","icon","PaymentHead","translations","left","leftTop","bottom","right","price","Link","forwardRef","link","href","Link$1","PaymentLoader","texts","title","inner","dots","dotsIn","progressCheckmark","panelTitle","spinningTexts","filmContainer","film","txt","PaymentScene","onClose","displayPlanPrice","billingFrequencyTmsg","streamBase","streamHead","streamRow","flickerEffect","streamBubble","ellipsis","Ellipsis","dotFirst","dotSecond","dotThird","CHAT_SEEN_KEY","LINK_CLICKED_KEY","CHAT_FINISHED_TIMESTAMP","CID","STORING_CHECKER_INTERVAL","SCROLL_STOP_CLASS","SUPPORT_PURPOSE","CLOSE_AFTER_TIMEOUT","DEFAULT_CLOSE_HREF","TYPING_TIMEOUT","getUnifiedSequence","current","incoming","record","hasMatch","_b","Y","Q","nn","X","rn","tn","en","on","R","B","un","an","produce","draft","id","prev","dataType","content","belongsTo","el","getChat","userMessageFindOne","historyId","sortBySequence","setOutgoing","resetOutgoing","setExistingHistory","addPredefinedAssistantMessage","setIsLoading","resetIsLoading","setLastGroupPointer","setTypingTimeoutExpired","setError","resetError","setConnected","setClosed","hideResendIcon","showResendIcon","resendMessage","setIsStreaming","fillAssistantHistoryData","fillUserHistoryData","resetHistory","fillInitialMessage","chatReducer","intentionsSlice","getEmailIntentions","getPaymentIntentions","setEmailSuccess","setIsPaymentSuccessful","setPaymentFormVisibility","setEmailError","setIsEmailLoading","setIsPaymentButtonVisible","setPaymentIntentError","setEmail","setLink","intentionsReducer","useFootProps","pd","purpose","specialUrls","isLoading","isStreaming","streamError","store","storedLink","emailError","isPaymentFormVisible","paymentIntentError","paymentSuccess","historyData","historyIds","lastMsgId","lastMsg","isLastAssistantMsg","noButtonChoices","hasPaymentIntent","hasEmailIntent","message","isResponseFormVisible","ReflectApply","receiver","ReflectOwnKeys","ProcessEmitWarning","warning","NumberIsNaN","EventEmitter","eventsModule","once","defaultMaxListeners","checkListener","listener","_getMaxListeners","that","doError","events","er","handler","listeners","arrayClone","_addListener","prepend","existing","onceWrapper","_onceWrap","wrapped","position","originalListener","spliceOne","_listeners","unwrap","evlistener","unwrapListeners","emitter","listenerCount","resolve","reject","errorListener","resolver","eventTargetAgnosticAddListener","addErrorHandlerIfEventEmitter","flags","wrapListener","intent","basic","Btn","IconBtn","outlined","Input","onChange","onKeyUp","placeholder","spin","EmailForm","dispatch","button","setCurrentEmail","inputElement","useRef","handleInputChange","currentValue","handleFormSubmit","ResponseForm","connected","response","setCurrentResponse","timerId","setTimerId","groupId","setTimerToSendMessage","currentId","LayoutFoot","footState","ctaAfterPayButton","setDisabled","setIsPaymentContainerVisible","isVisible","onClosePaymentForm","onPaymentSuccess","onError","initializePaymentForm","onClickCta","profile","Profile","orientation","minimized","aiProfile","avatar","role","imgWrapper","LayoutHead","headState","constructLink","hasQueryParams","url","search","searchParams","MarkdownLink","properties","extractVideoCode","videoUrl","Iframe","setIframeVisibility","videoCode","handleVideoClick","OptionList","isFirstUserMessage","setOption","sequence","setMessage","noStream","Assistant","itemId","isLast","baseFlicker","sortedContent","Fragment","it","Markdown","_c","_d","MemoizedAssistant","StreamBubble","User","MemoizedStreamBubble","StreamHead","titleTxt","StreamBase","firstMessage","second","date","baseRow","time","action","onResend","AppBase","getStorage_1","getStorage$1","getStorage","noopStorage","hasStorage","storageType","storage","testKey","createWebStorage_1","createWebStorage$1","createWebStorage","_getStorage","_interopRequireDefault","default_1","_createWebStorage","_default","intentionsMiddleware","next","setPaymentDataTranslationAccordingly","transformedData","tm716","tm526","tm715","tm505","dataIntervalChecker","setValue","transformData","intervalId","storedItem","socket","chatMiddleware","dispatchRetry","handleMessageSending","withTimeout","handleMessageResending","onResendError","chatBotContainer","messageId","lastMessage","io","socketConfig","servedHistory","region","interval","onTimeout","called","timer","persistConfig","configureStore","persistReducer","combineReducers","metaReducer","configReducer","getDefaultMiddleware","persistStore","initiated","ReactBotClient","ReactDOM","Provider"],"mappings":"qoBAEAA,GAAA,WAAqBC,GACrBD,GAAA,YAAsBE,GACtBF,GAAA,cAAwBG,GAOxB,QALIC,GAAS,CAAE,EACXC,GAAY,CAAE,EACdC,GAAM,OAAO,WAAe,IAAc,WAAa,MAEvDC,GAAO,mEACFC,GAAI,EAAGC,GAAMF,GAAK,OAAQC,GAAIC,GAAK,EAAED,GAC5CJ,GAAOI,EAAC,EAAID,GAAKC,EAAC,EAClBH,GAAUE,GAAK,WAAWC,EAAC,CAAC,EAAIA,GAKlCH,GAAU,IAAI,WAAW,CAAC,CAAC,EAAI,GAC/BA,GAAU,IAAI,WAAW,CAAC,CAAC,EAAI,GAE/B,SAASK,GAASC,EAAK,CACrB,IAAIF,EAAME,EAAI,OAEd,GAAIF,EAAM,EAAI,EACZ,MAAM,IAAI,MAAM,gDAAgD,EAKlE,IAAIG,EAAWD,EAAI,QAAQ,GAAG,EAC1BC,IAAa,KAAIA,EAAWH,GAEhC,IAAII,EAAkBD,IAAaH,EAC/B,EACA,EAAKG,EAAW,EAEpB,MAAO,CAACA,EAAUC,CAAe,CACnC,CAGA,SAASZ,GAAYU,EAAK,CACxB,IAAIG,EAAOJ,GAAQC,CAAG,EAClBC,EAAWE,EAAK,CAAC,EACjBD,EAAkBC,EAAK,CAAC,EAC5B,OAASF,EAAWC,GAAmB,EAAI,EAAKA,CAClD,CAEA,SAASE,GAAaJ,EAAKC,EAAUC,EAAiB,CACpD,OAASD,EAAWC,GAAmB,EAAI,EAAKA,CAClD,CAEA,SAASX,GAAaS,EAAK,CACzB,IAAIK,EACAF,EAAOJ,GAAQC,CAAG,EAClBC,EAAWE,EAAK,CAAC,EACjBD,EAAkBC,EAAK,CAAC,EAExBG,EAAM,IAAIX,GAAIS,GAAYJ,EAAKC,EAAUC,CAAe,CAAC,EAEzDK,EAAU,EAG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+{"version":3,"file":"index.umd.js","sources":["../node_modules/base64-js/index.js","../node_modules/ieee754/index.js","../node_modules/buffer-polyfill/index.js","../node_modules/process/browser.js","../node_modules/vite-plugin-node-polyfills/shims/dist/index.cjs","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../node_modules/react-dom/client.js","../node_modules/redux-persist/es/integration/react.js","../src/config/enums.ts","../src/utils/index.js","../src/store/initialState.ts","../src/store/slices/config.ts","../src/store/slices/meta.ts","../src/hooks/index.ts","../node_modules/tailwind-variants/dist/chunk-JXBJZR5A.js","../node_modules/tailwind-merge/dist/lib/tw-join.mjs","../node_modules/tailwind-merge/dist/lib/class-utils.mjs","../node_modules/tailwind-merge/dist/lib/lru-cache.mjs","../node_modules/tailwind-merge/dist/lib/modifier-utils.mjs","../node_modules/tailwind-merge/dist/lib/config-utils.mjs","../node_modules/tailwind-merge/dist/lib/merge-classlist.mjs","../node_modules/tailwind-merge/dist/lib/create-tailwind-merge.mjs","../node_modules/tailwind-merge/dist/lib/from-theme.mjs","../node_modules/tailwind-merge/dist/lib/validators.mjs","../node_modules/tailwind-merge/dist/lib/default-config.mjs","../node_modules/tailwind-merge/dist/lib/merge-configs.mjs","../node_modules/tailwind-merge/dist/lib/extend-tailwind-merge.mjs","../node_modules/tailwind-merge/dist/lib/tw-merge.mjs","../node_modules/tailwind-variants/dist/index.js","../src/components/Layout/variants.ts","../src/components/Layout/base.tsx","../src/components/Overlay/variants.ts","../src/components/Overlay/index.tsx","../src/services/tracking.ts","../src/components/Payment/variants.ts","../src/components/Payment/btn.tsx","../src/components/Payment/close.tsx","../src/components/Payment/foot.tsx","../src/components/Payment/head.tsx","../src/components/Payment/link.tsx","../src/components/Payment/loader.tsx","../src/components/Scenes/payment.tsx","../src/components/Stream/variants.ts","../src/components/Stream/ellipsis.tsx","../src/config/env.ts","../src/config/socket.ts","../src/config/index.ts","../node_modules/immer/dist/immer.esm.mjs","../src/store/slices/chat.ts","../src/store/slices/intentions.ts","../src/hooks/foot.ts","../node_modules/events/events.js","../src/services/intentions.ts","../src/components/Button/variants.ts","../src/components/Button/basic.tsx","../src/components/Button/icon.tsx","../src/components/Input/variants.ts","../src/components/Input/basic.tsx","../src/components/Form/email.tsx","../src/components/Form/response.tsx","../src/components/Layout/foot.tsx","../src/components/Profile/variants.ts","../src/components/Profile/index.tsx","../src/components/Layout/head.tsx","../src/utils/formatting.ts","../src/components/Markdown/link.tsx","../src/components/Video/index.tsx","../src/components/Link/variants.ts","../src/components/Link/basic.tsx","../src/components/Stream/options.tsx","../src/components/Stream/assistant.tsx","../src/components/Stream/bubble.tsx","../src/components/Stream/head.tsx","../src/components/Stream/base.tsx","../src/components/Stream/user.tsx","../src/components/AppBase/index.tsx","../node_modules/redux-persist/lib/storage/getStorage.js","../node_modules/redux-persist/lib/storage/createWebStorage.js","../node_modules/redux-persist/lib/storage/index.js","../src/middleware/intentions.ts","../src/middleware/socket.ts","../src/store/index.ts","../src/main.jsx"],"sourcesContent":["'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nconst base64 = require('base64-js')\nconst ieee754 = require('ieee754')\nconst customInspectSymbol =\n (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation\n ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation\n : null\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nconst K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n const arr = new Uint8Array(1)\n const proto = { foo: function () { return 42 } }\n Object.setPrototypeOf(proto, Uint8Array.prototype)\n Object.setPrototypeOf(arr, proto)\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n const buf = new Uint8Array(length)\n Object.setPrototypeOf(buf, Buffer.prototype)\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayView(value)\n }\n\n if (value == null) {\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof SharedArrayBuffer !== 'undefined' &&\n (isInstance(value, SharedArrayBuffer) ||\n (value && isInstance(value.buffer, SharedArrayBuffer)))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n const valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n const b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nObject.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\nObject.setPrototypeOf(Buffer, Uint8Array)\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpreted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n const length = byteLength(string, encoding) | 0\n let buf = createBuffer(length)\n\n const actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n const length = array.length < 0 ? 0 : checked(array.length) | 0\n const buf = createBuffer(length)\n for (let i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayView (arrayView) {\n if (isInstance(arrayView, Uint8Array)) {\n const copy = new Uint8Array(arrayView)\n return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)\n }\n return fromArrayLike(arrayView)\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n let buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(buf, Buffer.prototype)\n\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n const len = checked(obj.length) | 0\n const buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n let x = a.length\n let y = b.length\n\n for (let i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n let i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n const buffer = Buffer.allocUnsafe(length)\n let pos = 0\n for (i = 0; i < list.length; ++i) {\n let buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n if (pos + buf.length > buffer.length) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)\n buf.copy(buffer, pos)\n } else {\n Uint8Array.prototype.set.call(\n buffer,\n buf,\n pos\n )\n }\n } else if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n } else {\n buf.copy(buffer, pos)\n }\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n const len = string.length\n const mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n let loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coercion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n const i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n const len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (let i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n const len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (let i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n const len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (let i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n const length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n let str = ''\n const max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return ''\n}\nif (customInspectSymbol) {\n Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n let x = thisEnd - thisStart\n let y = end - start\n const len = Math.min(x, y)\n\n const thisCopy = this.slice(thisStart, thisEnd)\n const targetCopy = target.slice(start, end)\n\n for (let i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n let indexSize = 1\n let arrLength = arr.length\n let valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n let i\n if (dir) {\n let foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n let found = true\n for (let j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n const remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n const strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n let i\n for (i = 0; i < length; ++i) {\n const parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n const remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n case 'latin1':\n case 'binary':\n return asciiWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n const res = []\n\n let i = start\n while (i < end) {\n const firstByte = buf[i]\n let codePoint = null\n let bytesPerSequence = (firstByte > 0xEF)\n ? 4\n : (firstByte > 0xDF)\n ? 3\n : (firstByte > 0xBF)\n ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n let secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nconst MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n const len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n let res = ''\n let i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n const len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n let out = ''\n for (let i = start; i < end; ++i) {\n out += hexSliceLookupTable[buf[i]]\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n const bytes = buf.slice(start, end)\n let res = ''\n // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)\n for (let i = 0; i < bytes.length - 1; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n const len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n const newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(newBuf, Buffer.prototype)\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUintLE =\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUintBE =\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n let val = this[offset + --byteLength]\n let mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUint8 =\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUint16LE =\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUint16BE =\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUint32LE =\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUint32BE =\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const lo = first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24\n\n const hi = this[++offset] +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n last * 2 ** 24\n\n return BigInt(lo) + (BigInt(hi) << BigInt(32))\n})\n\nBuffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const hi = first * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n const lo = this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last\n\n return (BigInt(hi) << BigInt(32)) + BigInt(lo)\n})\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let i = byteLength\n let mul = 1\n let val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = this[offset + 4] +\n this[offset + 5] * 2 ** 8 +\n this[offset + 6] * 2 ** 16 +\n (last << 24) // Overflow\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24)\n})\n\nBuffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = (first << 24) + // Overflow\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last)\n})\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUintLE =\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let mul = 1\n let i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUintBE =\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let i = byteLength - 1\n let mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUint8 =\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUint16LE =\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUint16BE =\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUint32LE =\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUint32BE =\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction wrtBigUInt64LE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n return offset\n}\n\nfunction wrtBigUInt64BE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset + 7] = lo\n lo = lo >> 8\n buf[offset + 6] = lo\n lo = lo >> 8\n buf[offset + 5] = lo\n lo = lo >> 8\n buf[offset + 4] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset + 3] = hi\n hi = hi >> 8\n buf[offset + 2] = hi\n hi = hi >> 8\n buf[offset + 1] = hi\n hi = hi >> 8\n buf[offset] = hi\n return offset + 8\n}\n\nBuffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = 0\n let mul = 1\n let sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = byteLength - 1\n let mul = 1\n let sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nBuffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n const len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n const code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n } else if (typeof val === 'boolean') {\n val = Number(val)\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n let i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n const bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n const len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// CUSTOM ERRORS\n// =============\n\n// Simplified versions from Node, changed for Buffer-only usage\nconst errors = {}\nfunction E (sym, getMessage, Base) {\n errors[sym] = class NodeError extends Base {\n constructor () {\n super()\n\n Object.defineProperty(this, 'message', {\n value: getMessage.apply(this, arguments),\n writable: true,\n configurable: true\n })\n\n // Add the error code to the name to include it in the stack trace.\n this.name = `${this.name} [${sym}]`\n // Access the stack to generate the error message including the error code\n // from the name.\n this.stack // eslint-disable-line no-unused-expressions\n // Reset the name to the actual name.\n delete this.name\n }\n\n get code () {\n return sym\n }\n\n set code (value) {\n Object.defineProperty(this, 'code', {\n configurable: true,\n enumerable: true,\n value,\n writable: true\n })\n }\n\n toString () {\n return `${this.name} [${sym}]: ${this.message}`\n }\n }\n}\n\nE('ERR_BUFFER_OUT_OF_BOUNDS',\n function (name) {\n if (name) {\n return `${name} is outside of buffer bounds`\n }\n\n return 'Attempt to access memory outside buffer bounds'\n }, RangeError)\nE('ERR_INVALID_ARG_TYPE',\n function (name, actual) {\n return `The \"${name}\" argument must be of type number. Received type ${typeof actual}`\n }, TypeError)\nE('ERR_OUT_OF_RANGE',\n function (str, range, input) {\n let msg = `The value of \"${str}\" is out of range.`\n let received = input\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input))\n } else if (typeof input === 'bigint') {\n received = String(input)\n if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {\n received = addNumericalSeparator(received)\n }\n received += 'n'\n }\n msg += ` It must be ${range}. Received ${received}`\n return msg\n }, RangeError)\n\nfunction addNumericalSeparator (val) {\n let res = ''\n let i = val.length\n const start = val[0] === '-' ? 1 : 0\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`\n }\n return `${val.slice(0, i)}${res}`\n}\n\n// CHECK FUNCTIONS\n// ===============\n\nfunction checkBounds (buf, offset, byteLength) {\n validateNumber(offset, 'offset')\n if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {\n boundsError(offset, buf.length - (byteLength + 1))\n }\n}\n\nfunction checkIntBI (value, min, max, buf, offset, byteLength) {\n if (value > max || value < min) {\n const n = typeof min === 'bigint' ? 'n' : ''\n let range\n if (byteLength > 3) {\n if (min === 0 || min === BigInt(0)) {\n range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`\n } else {\n range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +\n `${(byteLength + 1) * 8 - 1}${n}`\n }\n } else {\n range = `>= ${min}${n} and <= ${max}${n}`\n }\n throw new errors.ERR_OUT_OF_RANGE('value', range, value)\n }\n checkBounds(buf, offset, byteLength)\n}\n\nfunction validateNumber (value, name) {\n if (typeof value !== 'number') {\n throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n}\n\nfunction boundsError (value, length, type) {\n if (Math.floor(value) !== value) {\n validateNumber(value, type)\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value)\n }\n\n if (length < 0) {\n throw new errors.ERR_BUFFER_OUT_OF_BOUNDS()\n }\n\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset',\n `>= ${type ? 1 : 0} and <= ${length}`,\n value)\n}\n\n// HELPER FUNCTIONS\n// ================\n\nconst INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n let codePoint\n const length = string.length\n let leadSurrogate = null\n const bytes = []\n\n for (let i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n let c, hi, lo\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n let i\n for (i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n// Create lookup table for `toString('hex')`\n// See: https://github.com/feross/buffer/issues/219\nconst hexSliceLookupTable = (function () {\n const alphabet = '0123456789abcdef'\n const table = new Array(256)\n for (let i = 0; i < 16; ++i) {\n const i16 = i * 16\n for (let j = 0; j < 16; ++j) {\n table[i16 + j] = alphabet[i] + alphabet[j]\n }\n }\n return table\n})()\n\n// Return not function with Error if BigInt not supported\nfunction defineBigIntMethod (fn) {\n return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn\n}\n\nfunction BufferBigIntNotDefined () {\n throw new Error('BigInt not supported')\n}\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","\"use strict\";Object.defineProperty(exports,Symbol.toStringTag,{value:\"Module\"});const t=require(\"buffer-polyfill\"),r=require(\"process\"),o=e=>e&&e.__esModule?e:{default:e},l=o(r),u=globalThis||void 0||self;Object.defineProperty(exports,\"Buffer\",{enumerable:!0,get:()=>t.Buffer});Object.defineProperty(exports,\"process\",{enumerable:!0,get:()=>l.default});exports.global=u;\n//# sourceMappingURL=index.cjs.map\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('')) {\n _frame = _frame.replace('', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%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).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('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', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%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)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%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)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie.
\n // or
). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n //
, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","function _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport React, { PureComponent } from 'react'; // eslint-disable-line import/no-unresolved\n\nexport var PersistGate =\n/*#__PURE__*/\nfunction (_PureComponent) {\n _inherits(PersistGate, _PureComponent);\n\n function PersistGate() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, PersistGate);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(PersistGate)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_this), \"state\", {\n bootstrapped: false\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_unsubscribe\", void 0);\n\n _defineProperty(_assertThisInitialized(_this), \"handlePersistorState\", function () {\n var persistor = _this.props.persistor;\n\n var _persistor$getState = persistor.getState(),\n bootstrapped = _persistor$getState.bootstrapped;\n\n if (bootstrapped) {\n if (_this.props.onBeforeLift) {\n Promise.resolve(_this.props.onBeforeLift()).finally(function () {\n return _this.setState({\n bootstrapped: true\n });\n });\n } else {\n _this.setState({\n bootstrapped: true\n });\n }\n\n _this._unsubscribe && _this._unsubscribe();\n }\n });\n\n return _this;\n }\n\n _createClass(PersistGate, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this._unsubscribe = this.props.persistor.subscribe(this.handlePersistorState);\n this.handlePersistorState();\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this._unsubscribe && this._unsubscribe();\n }\n }, {\n key: \"render\",\n value: function render() {\n if (process.env.NODE_ENV !== 'production') {\n if (typeof this.props.children === 'function' && this.props.loading) console.error('redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored.');\n }\n\n if (typeof this.props.children === 'function') {\n return this.props.children(this.state.bootstrapped);\n }\n\n return this.state.bootstrapped ? this.props.children : this.props.loading;\n }\n }]);\n\n return PersistGate;\n}(PureComponent);\n\n_defineProperty(PersistGate, \"defaultProps\", {\n children: null,\n loading: null\n});","enum Definition {\n text = 'text',\n buttons = 'buttons',\n payment = 'payment',\n video = 'video',\n image = 'image',\n email = 'email',\n}\n\nenum ScreenOrientation {\n horizontal = 'horizontal',\n vertical = 'vertical',\n}\n\nenum QueryParams {\n chat = 'utm_chat'\n}\n\nenum AllEvents {\n addToCart = 'AddToCart',\n contact = 'Contact',\n initiateCheckout = 'InitiateCheckout',\n pageView = 'PageView',\n viewContent = 'ViewContent',\n purchase = 'Purchase',\n subscribe = 'Subscribe',\n recurringSubscriptionPayment = 'RecurringSubscriptionPayment',\n cancelSubscription = 'CancelSubscription',\n purchaseFailed = 'PurchaseFailed',\n subscribeFailed = 'SubscribeFailed',\n recurringSubscriptionPaymentFailed = 'RecurringSubscriptionPaymentFailed',\n customerCreated = 'CustomerCreated',\n subscriptionChargeback = 'SubscriptionChargeback',\n subscriptionRefund = 'SubscriptionRefund',\n transactionChargeback = 'TransactionChargeback',\n transactionRefund = 'TransactionRefund',\n\n // custom events\n firstMessage = 'FirstMessage',\n linkProvided = 'LinkProvided',\n linkClicked = 'LinkClicked',\n emailField = 'EmailField',\n emailEntered = 'EmailEntered',\n emailWrong = 'EmailWrong',\n emailExist = 'EmailExist',\n priceSeen = 'PriceSeen',\n buttonClick = 'ButtonClick',\n closeClicked = 'CloseClicked',\n}\n\nenum Intentions {\n email = 'email_intent',\n payment = 'payment_intent',\n emailError = 'email_validation_error',\n emailSuccess = 'email_validation_success',\n destroy = 'payment_intent_destroy'\n}\n\nenum Roles {\n user = 'user',\n assistant = 'assistant',\n}\n\nenum Events {\n chat = 'chat',\n chatHistory = 'chat-history',\n connect = 'connect',\n error = 'error',\n disconnect = 'disconnect',\n streamStart = 'stream-start',\n streamData = 'stream-data',\n streamEnd = 'stream-end',\n streamError = 'stream-error',\n}\n\nenum Theme {\n light = 'light',\n dark = 'dark',\n}\n\nexport { AllEvents, Definition, Events, Intentions, QueryParams,Roles, ScreenOrientation, Theme }\n","\n/**\n * Retrieves certain query parameter from a URL.\n *\n * @example getQueryParam('utm_chat')\n * @param {string} param\n */\nexport const getQueryParam = (param) => {\n const urlParams = new URLSearchParams(window.location.search);\n\n return urlParams.get(param) || '';\n};\n\nconst formatDateByLocaleOptions = {\n day: 'numeric',\n month: 'long',\n year: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n};\n\n/**\n * Formats a date string according to the locale, including the date and time.\n *\n * @param {number} inputDate - The date string to be formatted.\n * @returns {string} - The formatted date and time string.\n */\nexport function formatDateByLocale(inputDate, options = formatDateByLocaleOptions) {\n const date = new Date(inputDate);\n\n const formattedDate = date.toLocaleDateString([], options);\n\n return `${formattedDate}`.toUpperCase();\n}\n\nexport function uuidV4() {\n const uuid = new Array(36);\n for (let i = 0; i < 36; i++) {\n uuid[i] = Math.floor(Math.random() * 16);\n }\n uuid[14] = 4;\n uuid[19] = uuid[19] &= ~(1 << 2);\n uuid[19] = uuid[19] |= (1 << 3);\n uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';\n return uuid.map((x) => x.toString(16)).join('');\n}\n","import { Roles, Theme } from '../config/enums';\nimport { ChatState, ConfigState, IntentionsState, MetaState } from '../interfaces/store';\nimport { uuidV4 } from '../utils';\n\nexport const meta: MetaState = {\n cid: '',\n eid: '',\n region: '',\n systemType: '',\n pd: {},\n marketing: {\n screen: {},\n lastUtmParams: {},\n utmParams: {}\n },\n};\n\nexport const config: ConfigState = {\n aiProfile: {\n name: '',\n role: '',\n imgSrc: '',\n welcome: '',\n initialMessage: [],\n },\n close: {\n href: null,\n visible: false,\n },\n translations: {},\n themeId: Theme.light,\n chatUrl: '',\n enableDevTools: false,\n isPluginMode: false,\n purpose: 'default',\n specialUrls: {},\n};\n\nexport const chat: ChatState = {\n outgoing: {\n term: '',\n user_id: '',\n role: Roles.user,\n message: '',\n },\n historyData: {},\n historyIds: [],\n error: '',\n isLoading: false,\n typingTimeoutExpired: false,\n lastGroupId: uuidV4(),\n connected: false,\n closed: false,\n isStreaming: false,\n};\n\nexport const intentions: IntentionsState = {\n email: {\n current: '',\n success: false,\n error: false,\n isLoading: false,\n },\n response: {\n isFormVisible: false,\n error: false,\n },\n payment: {\n isButtonVisible: false,\n isFormVisible: false,\n isSuccessful: false,\n error: false,\n },\n messaging: {\n isVisible: false,\n },\n link: ''\n};\n\nexport default { meta, config, intentions, chat };\n","import { createSlice, PayloadAction } from '@reduxjs/toolkit';\n\nimport { ConfigState } from '../../interfaces/store';\nimport { config as initialState } from '../../store/initialState';\n\nconst configSlice = createSlice({\n name: 'config',\n initialState,\n reducers: {\n setConfig(state, { payload }: PayloadAction) {\n state.aiProfile = { ...initialState.aiProfile, ...payload.aiProfile };\n state.translations = { ...initialState.translations, ...payload.translations };\n state.close = { ...initialState.close, ...payload.close };\n state.themeId = payload.themeId;\n state.chatUrl = payload.chatUrl;\n state.purpose = payload.purpose;\n },\n setSpecialUrls(state, { payload }) {\n state.specialUrls = { ...state.specialUrls, ...payload };\n },\n setPurpose(state, { payload }) {\n state.purpose = payload;\n },\n resetConfig(state) {\n state.aiProfile = initialState.aiProfile;\n state.themeId = initialState.themeId;\n state.translations = initialState.translations;\n state.chatUrl = initialState.chatUrl;\n },\n setTheme(state, { payload }) {\n state.themeId = payload;\n },\n resetTheme(state) {\n state.themeId = initialState.themeId;\n },\n setDevToolsStatus(state, { payload }) {\n state.enableDevTools = payload;\n },\n resetDevToolsStatus(state) {\n state.enableDevTools = initialState.enableDevTools;\n },\n togglePluginMode(state) {\n state.isPluginMode = !state.isPluginMode;\n },\n setTranslations(state, { payload }) {\n state.translations = { ...state.translations, ...payload };\n },\n },\n});\n\nexport const getConfig = (state: { config: ConfigState }) => state.config;\nexport const getDevToolsStatus = (state: { config: ConfigState }) => state.config.enableDevTools;\n\nexport const {\n setConfig,\n resetConfig,\n setTheme,\n resetTheme,\n setDevToolsStatus,\n resetDevToolsStatus,\n togglePluginMode,\n setTranslations,\n setPurpose,\n setSpecialUrls,\n} = configSlice.actions;\nexport default configSlice.reducer;\n","import { createSlice } from '@reduxjs/toolkit';\n\nimport { MetaState } from '../../interfaces/store';\nimport { meta as initialState } from '../initialState';\n\nconst configSlice = createSlice({\n name: 'meta',\n initialState,\n reducers: {\n setMeta(state, { payload }) {\n state.cid = payload.cid;\n state.eid = payload.eid;\n state.systemType = payload.systemType;\n state.pd = { ...state.pd, ...payload.pd };\n state.marketing = { ...state.marketing, ...payload.marketing };\n },\n resetMeta(state) {\n state.pd = initialState.pd;\n state.cid = initialState.cid;\n state.eid = initialState.eid;\n state.systemType = initialState.systemType;\n state.marketing = initialState.marketing;\n },\n setMarketing(state, { payload }) {\n state.marketing = { ...state.marketing, ...payload };\n },\n setPd(state, { payload }) {\n state.pd = { ...state.pd, ...payload };\n },\n setRegion(state, { payload }) {\n state.region = payload;\n }\n }\n});\n\nexport const getMeta = (state: { meta: MetaState }) => state.meta;\nexport const { setMeta, resetMeta, setMarketing, setPd, setRegion } = configSlice.actions;\nexport default configSlice.reducer;\n","import { useLayoutEffect, useState } from 'react';\nimport { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux';\n\nimport { AppDispatch, RootState } from '../store/index';\nimport { getConfig } from '../store/slices/config';\nimport { getMeta } from '../store/slices/meta';\n\ntype DispatchFunc = () => AppDispatch;\nexport const useAppDispatch: DispatchFunc = useDispatch;\nexport const useAppSelector: TypedUseSelectorHook = useSelector;\n\nexport const useWindowSize = () => {\n const [size, setSize] = useState([0, 0]);\n useLayoutEffect(() => {\n function updateSize() {\n setSize([window.innerWidth, window.innerHeight]);\n }\n window.addEventListener('resize', updateSize);\n updateSize();\n return () => window.removeEventListener('resize', updateSize);\n }, []);\n return size;\n};\n\nexport const useHeadControls = () => {\n const { themeId: theme, close } = useAppSelector(getConfig);\n const { cid, systemType, marketing } = useAppSelector(getMeta);\n\n return {\n theme,\n closeVisible: close.visible,\n cid,\n systemType,\n marketing\n };\n};\n","var l=e=>typeof e==\"boolean\"?`${e}`:e===0?\"0\":e,u=e=>!e||typeof e!=\"object\"||Object.keys(e).length===0,x=(e,o)=>JSON.stringify(e)===JSON.stringify(o),A=e=>typeof e==\"boolean\";function i(e,o){e.forEach(function(r){Array.isArray(r)?i(r,o):o.push(r);});}function y(e){let o=[];return i(e,o),o}var a=(...e)=>y(e).filter(Boolean),p=(e,o)=>{let r={},c=Object.keys(e),f=Object.keys(o);for(let t of c)if(f.includes(t)){let s=e[t],n=o[t];typeof s==\"object\"&&typeof n==\"object\"?r[t]=p(s,n):Array.isArray(s)||Array.isArray(n)?r[t]=a(n,s):r[t]=n+\" \"+s;}else r[t]=e[t];for(let t of f)c.includes(t)||(r[t]=o[t]);return r},g=e=>!e||typeof e!=\"string\"?e:e.replace(/\\s+/g,\" \").trim();\n\nexport { l as a, u as b, x as c, A as d, y as e, a as f, p as g, g as h };\n","/**\n * The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.\n *\n * Specifically:\n * - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js\n * - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts\n *\n * Original code has MIT license: Copyright (c) Luke Edwards (lukeed.com)\n */\nfunction twJoin() {\n var index = 0;\n var argument;\n var resolvedValue;\n var string = '';\n while (index < arguments.length) {\n if (argument = arguments[index++]) {\n if (resolvedValue = toValue(argument)) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\nfunction toValue(mix) {\n if (typeof mix === 'string') {\n return mix;\n }\n var resolvedValue;\n var string = '';\n for (var k = 0; k < mix.length; k++) {\n if (mix[k]) {\n if (resolvedValue = toValue(mix[k])) {\n string && (string += ' ');\n string += resolvedValue;\n }\n }\n }\n return string;\n}\n\nexport { twJoin };\n//# sourceMappingURL=tw-join.mjs.map\n","var CLASS_PART_SEPARATOR = '-';\nfunction createClassUtils(config) {\n var classMap = createClassMap(config);\n var conflictingClassGroups = config.conflictingClassGroups,\n _config$conflictingCl = config.conflictingClassGroupModifiers,\n conflictingClassGroupModifiers = _config$conflictingCl === void 0 ? {} : _config$conflictingCl;\n function getClassGroupId(className) {\n var classParts = className.split(CLASS_PART_SEPARATOR);\n // Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and remove it from classParts.\n if (classParts[0] === '' && classParts.length !== 1) {\n classParts.shift();\n }\n return getGroupRecursive(classParts, classMap) || getGroupIdForArbitraryProperty(className);\n }\n function getConflictingClassGroupIds(classGroupId, hasPostfixModifier) {\n var conflicts = conflictingClassGroups[classGroupId] || [];\n if (hasPostfixModifier && conflictingClassGroupModifiers[classGroupId]) {\n return [].concat(conflicts, conflictingClassGroupModifiers[classGroupId]);\n }\n return conflicts;\n }\n return {\n getClassGroupId: getClassGroupId,\n getConflictingClassGroupIds: getConflictingClassGroupIds\n };\n}\nfunction getGroupRecursive(classParts, classPartObject) {\n if (classParts.length === 0) {\n return classPartObject.classGroupId;\n }\n var currentClassPart = classParts[0];\n var nextClassPartObject = classPartObject.nextPart.get(currentClassPart);\n var classGroupFromNextClassPart = nextClassPartObject ? getGroupRecursive(classParts.slice(1), nextClassPartObject) : undefined;\n if (classGroupFromNextClassPart) {\n return classGroupFromNextClassPart;\n }\n if (classPartObject.validators.length === 0) {\n return undefined;\n }\n var classRest = classParts.join(CLASS_PART_SEPARATOR);\n return classPartObject.validators.find(function (_ref) {\n var validator = _ref.validator;\n return validator(classRest);\n })?.classGroupId;\n}\nvar arbitraryPropertyRegex = /^\\[(.+)\\]$/;\nfunction getGroupIdForArbitraryProperty(className) {\n if (arbitraryPropertyRegex.test(className)) {\n var arbitraryPropertyClassName = arbitraryPropertyRegex.exec(className)[1];\n var property = arbitraryPropertyClassName?.substring(0, arbitraryPropertyClassName.indexOf(':'));\n if (property) {\n // I use two dots here because one dot is used as prefix for class groups in plugins\n return 'arbitrary..' + property;\n }\n }\n}\n/**\n * Exported for testing only\n */\nfunction createClassMap(config) {\n var theme = config.theme,\n prefix = config.prefix;\n var classMap = {\n nextPart: new Map(),\n validators: []\n };\n var prefixedClassGroupEntries = getPrefixedClassGroupEntries(Object.entries(config.classGroups), prefix);\n prefixedClassGroupEntries.forEach(function (_ref2) {\n var classGroupId = _ref2[0],\n classGroup = _ref2[1];\n processClassesRecursively(classGroup, classMap, classGroupId, theme);\n });\n return classMap;\n}\nfunction processClassesRecursively(classGroup, classPartObject, classGroupId, theme) {\n classGroup.forEach(function (classDefinition) {\n if (typeof classDefinition === 'string') {\n var classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);\n classPartObjectToEdit.classGroupId = classGroupId;\n return;\n }\n if (typeof classDefinition === 'function') {\n if (isThemeGetter(classDefinition)) {\n processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);\n return;\n }\n classPartObject.validators.push({\n validator: classDefinition,\n classGroupId: classGroupId\n });\n return;\n }\n Object.entries(classDefinition).forEach(function (_ref3) {\n var key = _ref3[0],\n classGroup = _ref3[1];\n processClassesRecursively(classGroup, getPart(classPartObject, key), classGroupId, theme);\n });\n });\n}\nfunction getPart(classPartObject, path) {\n var currentClassPartObject = classPartObject;\n path.split(CLASS_PART_SEPARATOR).forEach(function (pathPart) {\n if (!currentClassPartObject.nextPart.has(pathPart)) {\n currentClassPartObject.nextPart.set(pathPart, {\n nextPart: new Map(),\n validators: []\n });\n }\n currentClassPartObject = currentClassPartObject.nextPart.get(pathPart);\n });\n return currentClassPartObject;\n}\nfunction isThemeGetter(func) {\n return func.isThemeGetter;\n}\nfunction getPrefixedClassGroupEntries(classGroupEntries, prefix) {\n if (!prefix) {\n return classGroupEntries;\n }\n return classGroupEntries.map(function (_ref4) {\n var classGroupId = _ref4[0],\n classGroup = _ref4[1];\n var prefixedClassGroup = classGroup.map(function (classDefinition) {\n if (typeof classDefinition === 'string') {\n return prefix + classDefinition;\n }\n if (typeof classDefinition === 'object') {\n return Object.fromEntries(Object.entries(classDefinition).map(function (_ref5) {\n var key = _ref5[0],\n value = _ref5[1];\n return [prefix + key, value];\n }));\n }\n return classDefinition;\n });\n return [classGroupId, prefixedClassGroup];\n });\n}\n\nexport { createClassMap, createClassUtils };\n//# sourceMappingURL=class-utils.mjs.map\n","// LRU cache inspired from hashlru (https://github.com/dominictarr/hashlru/blob/v1.0.4/index.js) but object replaced with Map to improve performance\nfunction createLruCache(maxCacheSize) {\n if (maxCacheSize < 1) {\n return {\n get: function get() {\n return undefined;\n },\n set: function set() {}\n };\n }\n var cacheSize = 0;\n var cache = new Map();\n var previousCache = new Map();\n function update(key, value) {\n cache.set(key, value);\n cacheSize++;\n if (cacheSize > maxCacheSize) {\n cacheSize = 0;\n previousCache = cache;\n cache = new Map();\n }\n }\n return {\n get: function get(key) {\n var value = cache.get(key);\n if (value !== undefined) {\n return value;\n }\n if ((value = previousCache.get(key)) !== undefined) {\n update(key, value);\n return value;\n }\n },\n set: function set(key, value) {\n if (cache.has(key)) {\n cache.set(key, value);\n } else {\n update(key, value);\n }\n }\n };\n}\n\nexport { createLruCache };\n//# sourceMappingURL=lru-cache.mjs.map\n","var IMPORTANT_MODIFIER = '!';\nfunction createSplitModifiers(config) {\n var separator = config.separator || ':';\n var isSeparatorSingleCharacter = separator.length === 1;\n var firstSeparatorCharacter = separator[0];\n var separatorLength = separator.length;\n // splitModifiers inspired by https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js\n return function splitModifiers(className) {\n var modifiers = [];\n var bracketDepth = 0;\n var modifierStart = 0;\n var postfixModifierPosition;\n for (var index = 0; index < className.length; index++) {\n var currentCharacter = className[index];\n if (bracketDepth === 0) {\n if (currentCharacter === firstSeparatorCharacter && (isSeparatorSingleCharacter || className.slice(index, index + separatorLength) === separator)) {\n modifiers.push(className.slice(modifierStart, index));\n modifierStart = index + separatorLength;\n continue;\n }\n if (currentCharacter === '/') {\n postfixModifierPosition = index;\n continue;\n }\n }\n if (currentCharacter === '[') {\n bracketDepth++;\n } else if (currentCharacter === ']') {\n bracketDepth--;\n }\n }\n var baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.substring(modifierStart);\n var hasImportantModifier = baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER);\n var baseClassName = hasImportantModifier ? baseClassNameWithImportantModifier.substring(1) : baseClassNameWithImportantModifier;\n var maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;\n return {\n modifiers: modifiers,\n hasImportantModifier: hasImportantModifier,\n baseClassName: baseClassName,\n maybePostfixModifierPosition: maybePostfixModifierPosition\n };\n };\n}\n/**\n * Sorts modifiers according to following schema:\n * - Predefined modifiers are sorted alphabetically\n * - When an arbitrary variant appears, it must be preserved which modifiers are before and after it\n */\nfunction sortModifiers(modifiers) {\n if (modifiers.length <= 1) {\n return modifiers;\n }\n var sortedModifiers = [];\n var unsortedModifiers = [];\n modifiers.forEach(function (modifier) {\n var isArbitraryVariant = modifier[0] === '[';\n if (isArbitraryVariant) {\n sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort().concat([modifier]));\n unsortedModifiers = [];\n } else {\n unsortedModifiers.push(modifier);\n }\n });\n sortedModifiers.push.apply(sortedModifiers, unsortedModifiers.sort());\n return sortedModifiers;\n}\n\nexport { IMPORTANT_MODIFIER, createSplitModifiers, sortModifiers };\n//# sourceMappingURL=modifier-utils.mjs.map\n","import { createClassUtils } from './class-utils.mjs';\nimport { createLruCache } from './lru-cache.mjs';\nimport { createSplitModifiers } from './modifier-utils.mjs';\n\nfunction createConfigUtils(config) {\n return {\n cache: createLruCache(config.cacheSize),\n splitModifiers: createSplitModifiers(config),\n ...createClassUtils(config)\n };\n}\n\nexport { createConfigUtils };\n//# sourceMappingURL=config-utils.mjs.map\n","import { sortModifiers, IMPORTANT_MODIFIER } from './modifier-utils.mjs';\n\nvar SPLIT_CLASSES_REGEX = /\\s+/;\nfunction mergeClassList(classList, configUtils) {\n var splitModifiers = configUtils.splitModifiers,\n getClassGroupId = configUtils.getClassGroupId,\n getConflictingClassGroupIds = configUtils.getConflictingClassGroupIds;\n /**\n * Set of classGroupIds in following format:\n * `{importantModifier}{variantModifiers}{classGroupId}`\n * @example 'float'\n * @example 'hover:focus:bg-color'\n * @example 'md:!pr'\n */\n var classGroupsInConflict = new Set();\n return classList.trim().split(SPLIT_CLASSES_REGEX).map(function (originalClassName) {\n var _splitModifiers = splitModifiers(originalClassName),\n modifiers = _splitModifiers.modifiers,\n hasImportantModifier = _splitModifiers.hasImportantModifier,\n baseClassName = _splitModifiers.baseClassName,\n maybePostfixModifierPosition = _splitModifiers.maybePostfixModifierPosition;\n var classGroupId = getClassGroupId(maybePostfixModifierPosition ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);\n var hasPostfixModifier = Boolean(maybePostfixModifierPosition);\n if (!classGroupId) {\n if (!maybePostfixModifierPosition) {\n return {\n isTailwindClass: false,\n originalClassName: originalClassName\n };\n }\n classGroupId = getClassGroupId(baseClassName);\n if (!classGroupId) {\n return {\n isTailwindClass: false,\n originalClassName: originalClassName\n };\n }\n hasPostfixModifier = false;\n }\n var variantModifier = sortModifiers(modifiers).join(':');\n var modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;\n return {\n isTailwindClass: true,\n modifierId: modifierId,\n classGroupId: classGroupId,\n originalClassName: originalClassName,\n hasPostfixModifier: hasPostfixModifier\n };\n }).reverse()\n // Last class in conflict wins, so we need to filter conflicting classes in reverse order.\n .filter(function (parsed) {\n if (!parsed.isTailwindClass) {\n return true;\n }\n var modifierId = parsed.modifierId,\n classGroupId = parsed.classGroupId,\n hasPostfixModifier = parsed.hasPostfixModifier;\n var classId = modifierId + classGroupId;\n if (classGroupsInConflict.has(classId)) {\n return false;\n }\n classGroupsInConflict.add(classId);\n getConflictingClassGroupIds(classGroupId, hasPostfixModifier).forEach(function (group) {\n return classGroupsInConflict.add(modifierId + group);\n });\n return true;\n }).reverse().map(function (parsed) {\n return parsed.originalClassName;\n }).join(' ');\n}\n\nexport { mergeClassList };\n//# sourceMappingURL=merge-classlist.mjs.map\n","import { createConfigUtils } from './config-utils.mjs';\nimport { mergeClassList } from './merge-classlist.mjs';\nimport { twJoin } from './tw-join.mjs';\n\nfunction createTailwindMerge() {\n for (var _len = arguments.length, createConfig = new Array(_len), _key = 0; _key < _len; _key++) {\n createConfig[_key] = arguments[_key];\n }\n var configUtils;\n var cacheGet;\n var cacheSet;\n var functionToCall = initTailwindMerge;\n function initTailwindMerge(classList) {\n var firstCreateConfig = createConfig[0],\n restCreateConfig = createConfig.slice(1);\n var config = restCreateConfig.reduce(function (previousConfig, createConfigCurrent) {\n return createConfigCurrent(previousConfig);\n }, firstCreateConfig());\n configUtils = createConfigUtils(config);\n cacheGet = configUtils.cache.get;\n cacheSet = configUtils.cache.set;\n functionToCall = tailwindMerge;\n return tailwindMerge(classList);\n }\n function tailwindMerge(classList) {\n var cachedResult = cacheGet(classList);\n if (cachedResult) {\n return cachedResult;\n }\n var result = mergeClassList(classList, configUtils);\n cacheSet(classList, result);\n return result;\n }\n return function callTailwindMerge() {\n return functionToCall(twJoin.apply(null, arguments));\n };\n}\n\nexport { createTailwindMerge };\n//# sourceMappingURL=create-tailwind-merge.mjs.map\n","function fromTheme(key) {\n var themeGetter = function themeGetter(theme) {\n return theme[key] || [];\n };\n themeGetter.isThemeGetter = true;\n return themeGetter;\n}\n\nexport { fromTheme };\n//# sourceMappingURL=from-theme.mjs.map\n","var arbitraryValueRegex = /^\\[(?:([a-z-]+):)?(.+)\\]$/i;\nvar fractionRegex = /^\\d+\\/\\d+$/;\nvar stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);\nvar tshirtUnitRegex = /^(\\d+(\\.\\d+)?)?(xs|sm|md|lg|xl)$/;\nvar lengthUnitRegex = /\\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\\b(calc|min|max|clamp)\\(.+\\)|^0$/;\n// Shadow always begins with x and y offset separated by underscore\nvar shadowRegex = /^-?((\\d+)?\\.?(\\d+)[a-z]+|0)_-?((\\d+)?\\.?(\\d+)[a-z]+|0)/;\nfunction isLength(value) {\n return isNumber(value) || stringLengths.has(value) || fractionRegex.test(value) || isArbitraryLength(value);\n}\nfunction isArbitraryLength(value) {\n return getIsArbitraryValue(value, 'length', isLengthOnly);\n}\nfunction isArbitrarySize(value) {\n return getIsArbitraryValue(value, 'size', isNever);\n}\nfunction isArbitraryPosition(value) {\n return getIsArbitraryValue(value, 'position', isNever);\n}\nfunction isArbitraryUrl(value) {\n return getIsArbitraryValue(value, 'url', isUrl);\n}\nfunction isArbitraryNumber(value) {\n return getIsArbitraryValue(value, 'number', isNumber);\n}\n/**\n * @deprecated Will be removed in next major version. Use `isArbitraryNumber` instead.\n */\nvar isArbitraryWeight = isArbitraryNumber;\nfunction isNumber(value) {\n return !Number.isNaN(Number(value));\n}\nfunction isPercent(value) {\n return value.endsWith('%') && isNumber(value.slice(0, -1));\n}\nfunction isInteger(value) {\n return isIntegerOnly(value) || getIsArbitraryValue(value, 'number', isIntegerOnly);\n}\nfunction isArbitraryValue(value) {\n return arbitraryValueRegex.test(value);\n}\nfunction isAny() {\n return true;\n}\nfunction isTshirtSize(value) {\n return tshirtUnitRegex.test(value);\n}\nfunction isArbitraryShadow(value) {\n return getIsArbitraryValue(value, '', isShadow);\n}\nfunction getIsArbitraryValue(value, label, testValue) {\n var result = arbitraryValueRegex.exec(value);\n if (result) {\n if (result[1]) {\n return result[1] === label;\n }\n return testValue(result[2]);\n }\n return false;\n}\nfunction isLengthOnly(value) {\n return lengthUnitRegex.test(value);\n}\nfunction isNever() {\n return false;\n}\nfunction isUrl(value) {\n return value.startsWith('url(');\n}\nfunction isIntegerOnly(value) {\n return Number.isInteger(Number(value));\n}\nfunction isShadow(value) {\n return shadowRegex.test(value);\n}\n\nexport { isAny, isArbitraryLength, isArbitraryNumber, isArbitraryPosition, isArbitraryShadow, isArbitrarySize, isArbitraryUrl, isArbitraryValue, isArbitraryWeight, isInteger, isLength, isNumber, isPercent, isTshirtSize };\n//# sourceMappingURL=validators.mjs.map\n","import { fromTheme } from './from-theme.mjs';\nimport { isAny, isLength, isTshirtSize, isArbitraryValue, isPercent, isArbitraryLength, isInteger, isArbitraryNumber, isNumber, isArbitraryPosition, isArbitrarySize, isArbitraryUrl, isArbitraryShadow } from './validators.mjs';\n\nfunction getDefaultConfig() {\n var colors = fromTheme('colors');\n var spacing = fromTheme('spacing');\n var blur = fromTheme('blur');\n var brightness = fromTheme('brightness');\n var borderColor = fromTheme('borderColor');\n var borderRadius = fromTheme('borderRadius');\n var borderSpacing = fromTheme('borderSpacing');\n var borderWidth = fromTheme('borderWidth');\n var contrast = fromTheme('contrast');\n var grayscale = fromTheme('grayscale');\n var hueRotate = fromTheme('hueRotate');\n var invert = fromTheme('invert');\n var gap = fromTheme('gap');\n var gradientColorStops = fromTheme('gradientColorStops');\n var gradientColorStopPositions = fromTheme('gradientColorStopPositions');\n var inset = fromTheme('inset');\n var margin = fromTheme('margin');\n var opacity = fromTheme('opacity');\n var padding = fromTheme('padding');\n var saturate = fromTheme('saturate');\n var scale = fromTheme('scale');\n var sepia = fromTheme('sepia');\n var skew = fromTheme('skew');\n var space = fromTheme('space');\n var translate = fromTheme('translate');\n var getOverscroll = function getOverscroll() {\n return ['auto', 'contain', 'none'];\n };\n var getOverflow = function getOverflow() {\n return ['auto', 'hidden', 'clip', 'visible', 'scroll'];\n };\n var getSpacingWithAutoAndArbitrary = function getSpacingWithAutoAndArbitrary() {\n return ['auto', isArbitraryValue, spacing];\n };\n var getSpacingWithArbitrary = function getSpacingWithArbitrary() {\n return [isArbitraryValue, spacing];\n };\n var getLengthWithEmpty = function getLengthWithEmpty() {\n return ['', isLength];\n };\n var getNumberWithAutoAndArbitrary = function getNumberWithAutoAndArbitrary() {\n return ['auto', isNumber, isArbitraryValue];\n };\n var getPositions = function getPositions() {\n return ['bottom', 'center', 'left', 'left-bottom', 'left-top', 'right', 'right-bottom', 'right-top', 'top'];\n };\n var getLineStyles = function getLineStyles() {\n return ['solid', 'dashed', 'dotted', 'double', 'none'];\n };\n var getBlendModes = function getBlendModes() {\n return ['normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity', 'plus-lighter'];\n };\n var getAlign = function getAlign() {\n return ['start', 'end', 'center', 'between', 'around', 'evenly', 'stretch'];\n };\n var getZeroAndEmpty = function getZeroAndEmpty() {\n return ['', '0', isArbitraryValue];\n };\n var getBreaks = function getBreaks() {\n return ['auto', 'avoid', 'all', 'avoid-page', 'page', 'left', 'right', 'column'];\n };\n var getNumber = function getNumber() {\n return [isNumber, isArbitraryNumber];\n };\n var getNumberAndArbitrary = function getNumberAndArbitrary() {\n return [isNumber, isArbitraryValue];\n };\n return {\n cacheSize: 500,\n theme: {\n colors: [isAny],\n spacing: [isLength],\n blur: ['none', '', isTshirtSize, isArbitraryValue],\n brightness: getNumber(),\n borderColor: [colors],\n borderRadius: ['none', '', 'full', isTshirtSize, isArbitraryValue],\n borderSpacing: getSpacingWithArbitrary(),\n borderWidth: getLengthWithEmpty(),\n contrast: getNumber(),\n grayscale: getZeroAndEmpty(),\n hueRotate: getNumberAndArbitrary(),\n invert: getZeroAndEmpty(),\n gap: getSpacingWithArbitrary(),\n gradientColorStops: [colors],\n gradientColorStopPositions: [isPercent, isArbitraryLength],\n inset: getSpacingWithAutoAndArbitrary(),\n margin: getSpacingWithAutoAndArbitrary(),\n opacity: getNumber(),\n padding: getSpacingWithArbitrary(),\n saturate: getNumber(),\n scale: getNumber(),\n sepia: getZeroAndEmpty(),\n skew: getNumberAndArbitrary(),\n space: getSpacingWithArbitrary(),\n translate: getSpacingWithArbitrary()\n },\n classGroups: {\n // Layout\n /**\n * Aspect Ratio\n * @see https://tailwindcss.com/docs/aspect-ratio\n */\n aspect: [{\n aspect: ['auto', 'square', 'video', isArbitraryValue]\n }],\n /**\n * Container\n * @see https://tailwindcss.com/docs/container\n */\n container: ['container'],\n /**\n * Columns\n * @see https://tailwindcss.com/docs/columns\n */\n columns: [{\n columns: [isTshirtSize]\n }],\n /**\n * Break After\n * @see https://tailwindcss.com/docs/break-after\n */\n 'break-after': [{\n 'break-after': getBreaks()\n }],\n /**\n * Break Before\n * @see https://tailwindcss.com/docs/break-before\n */\n 'break-before': [{\n 'break-before': getBreaks()\n }],\n /**\n * Break Inside\n * @see https://tailwindcss.com/docs/break-inside\n */\n 'break-inside': [{\n 'break-inside': ['auto', 'avoid', 'avoid-page', 'avoid-column']\n }],\n /**\n * Box Decoration Break\n * @see https://tailwindcss.com/docs/box-decoration-break\n */\n 'box-decoration': [{\n 'box-decoration': ['slice', 'clone']\n }],\n /**\n * Box Sizing\n * @see https://tailwindcss.com/docs/box-sizing\n */\n box: [{\n box: ['border', 'content']\n }],\n /**\n * Display\n * @see https://tailwindcss.com/docs/display\n */\n display: ['block', 'inline-block', 'inline', 'flex', 'inline-flex', 'table', 'inline-table', 'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row-group', 'table-row', 'flow-root', 'grid', 'inline-grid', 'contents', 'list-item', 'hidden'],\n /**\n * Floats\n * @see https://tailwindcss.com/docs/float\n */\n \"float\": [{\n \"float\": ['right', 'left', 'none']\n }],\n /**\n * Clear\n * @see https://tailwindcss.com/docs/clear\n */\n clear: [{\n clear: ['left', 'right', 'both', 'none']\n }],\n /**\n * Isolation\n * @see https://tailwindcss.com/docs/isolation\n */\n isolation: ['isolate', 'isolation-auto'],\n /**\n * Object Fit\n * @see https://tailwindcss.com/docs/object-fit\n */\n 'object-fit': [{\n object: ['contain', 'cover', 'fill', 'none', 'scale-down']\n }],\n /**\n * Object Position\n * @see https://tailwindcss.com/docs/object-position\n */\n 'object-position': [{\n object: [].concat(getPositions(), [isArbitraryValue])\n }],\n /**\n * Overflow\n * @see https://tailwindcss.com/docs/overflow\n */\n overflow: [{\n overflow: getOverflow()\n }],\n /**\n * Overflow X\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-x': [{\n 'overflow-x': getOverflow()\n }],\n /**\n * Overflow Y\n * @see https://tailwindcss.com/docs/overflow\n */\n 'overflow-y': [{\n 'overflow-y': getOverflow()\n }],\n /**\n * Overscroll Behavior\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n overscroll: [{\n overscroll: getOverscroll()\n }],\n /**\n * Overscroll Behavior X\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-x': [{\n 'overscroll-x': getOverscroll()\n }],\n /**\n * Overscroll Behavior Y\n * @see https://tailwindcss.com/docs/overscroll-behavior\n */\n 'overscroll-y': [{\n 'overscroll-y': getOverscroll()\n }],\n /**\n * Position\n * @see https://tailwindcss.com/docs/position\n */\n position: ['static', 'fixed', 'absolute', 'relative', 'sticky'],\n /**\n * Top / Right / Bottom / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n inset: [{\n inset: [inset]\n }],\n /**\n * Right / Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-x': [{\n 'inset-x': [inset]\n }],\n /**\n * Top / Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n 'inset-y': [{\n 'inset-y': [inset]\n }],\n /**\n * Start\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n start: [{\n start: [inset]\n }],\n /**\n * End\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n end: [{\n end: [inset]\n }],\n /**\n * Top\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n top: [{\n top: [inset]\n }],\n /**\n * Right\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n right: [{\n right: [inset]\n }],\n /**\n * Bottom\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n bottom: [{\n bottom: [inset]\n }],\n /**\n * Left\n * @see https://tailwindcss.com/docs/top-right-bottom-left\n */\n left: [{\n left: [inset]\n }],\n /**\n * Visibility\n * @see https://tailwindcss.com/docs/visibility\n */\n visibility: ['visible', 'invisible', 'collapse'],\n /**\n * Z-Index\n * @see https://tailwindcss.com/docs/z-index\n */\n z: [{\n z: ['auto', isInteger]\n }],\n // Flexbox and Grid\n /**\n * Flex Basis\n * @see https://tailwindcss.com/docs/flex-basis\n */\n basis: [{\n basis: getSpacingWithAutoAndArbitrary()\n }],\n /**\n * Flex Direction\n * @see https://tailwindcss.com/docs/flex-direction\n */\n 'flex-direction': [{\n flex: ['row', 'row-reverse', 'col', 'col-reverse']\n }],\n /**\n * Flex Wrap\n * @see https://tailwindcss.com/docs/flex-wrap\n */\n 'flex-wrap': [{\n flex: ['wrap', 'wrap-reverse', 'nowrap']\n }],\n /**\n * Flex\n * @see https://tailwindcss.com/docs/flex\n */\n flex: [{\n flex: ['1', 'auto', 'initial', 'none', isArbitraryValue]\n }],\n /**\n * Flex Grow\n * @see https://tailwindcss.com/docs/flex-grow\n */\n grow: [{\n grow: getZeroAndEmpty()\n }],\n /**\n * Flex Shrink\n * @see https://tailwindcss.com/docs/flex-shrink\n */\n shrink: [{\n shrink: getZeroAndEmpty()\n }],\n /**\n * Order\n * @see https://tailwindcss.com/docs/order\n */\n order: [{\n order: ['first', 'last', 'none', isInteger]\n }],\n /**\n * Grid Template Columns\n * @see https://tailwindcss.com/docs/grid-template-columns\n */\n 'grid-cols': [{\n 'grid-cols': [isAny]\n }],\n /**\n * Grid Column Start / End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start-end': [{\n col: ['auto', {\n span: ['full', isInteger]\n }, isArbitraryValue]\n }],\n /**\n * Grid Column Start\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-start': [{\n 'col-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Column End\n * @see https://tailwindcss.com/docs/grid-column\n */\n 'col-end': [{\n 'col-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Template Rows\n * @see https://tailwindcss.com/docs/grid-template-rows\n */\n 'grid-rows': [{\n 'grid-rows': [isAny]\n }],\n /**\n * Grid Row Start / End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start-end': [{\n row: ['auto', {\n span: [isInteger]\n }, isArbitraryValue]\n }],\n /**\n * Grid Row Start\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-start': [{\n 'row-start': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Row End\n * @see https://tailwindcss.com/docs/grid-row\n */\n 'row-end': [{\n 'row-end': getNumberWithAutoAndArbitrary()\n }],\n /**\n * Grid Auto Flow\n * @see https://tailwindcss.com/docs/grid-auto-flow\n */\n 'grid-flow': [{\n 'grid-flow': ['row', 'col', 'dense', 'row-dense', 'col-dense']\n }],\n /**\n * Grid Auto Columns\n * @see https://tailwindcss.com/docs/grid-auto-columns\n */\n 'auto-cols': [{\n 'auto-cols': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Grid Auto Rows\n * @see https://tailwindcss.com/docs/grid-auto-rows\n */\n 'auto-rows': [{\n 'auto-rows': ['auto', 'min', 'max', 'fr', isArbitraryValue]\n }],\n /**\n * Gap\n * @see https://tailwindcss.com/docs/gap\n */\n gap: [{\n gap: [gap]\n }],\n /**\n * Gap X\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-x': [{\n 'gap-x': [gap]\n }],\n /**\n * Gap Y\n * @see https://tailwindcss.com/docs/gap\n */\n 'gap-y': [{\n 'gap-y': [gap]\n }],\n /**\n * Justify Content\n * @see https://tailwindcss.com/docs/justify-content\n */\n 'justify-content': [{\n justify: ['normal'].concat(getAlign())\n }],\n /**\n * Justify Items\n * @see https://tailwindcss.com/docs/justify-items\n */\n 'justify-items': [{\n 'justify-items': ['start', 'end', 'center', 'stretch']\n }],\n /**\n * Justify Self\n * @see https://tailwindcss.com/docs/justify-self\n */\n 'justify-self': [{\n 'justify-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n /**\n * Align Content\n * @see https://tailwindcss.com/docs/align-content\n */\n 'align-content': [{\n content: ['normal'].concat(getAlign(), ['baseline'])\n }],\n /**\n * Align Items\n * @see https://tailwindcss.com/docs/align-items\n */\n 'align-items': [{\n items: ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Align Self\n * @see https://tailwindcss.com/docs/align-self\n */\n 'align-self': [{\n self: ['auto', 'start', 'end', 'center', 'stretch', 'baseline']\n }],\n /**\n * Place Content\n * @see https://tailwindcss.com/docs/place-content\n */\n 'place-content': [{\n 'place-content': [].concat(getAlign(), ['baseline'])\n }],\n /**\n * Place Items\n * @see https://tailwindcss.com/docs/place-items\n */\n 'place-items': [{\n 'place-items': ['start', 'end', 'center', 'baseline', 'stretch']\n }],\n /**\n * Place Self\n * @see https://tailwindcss.com/docs/place-self\n */\n 'place-self': [{\n 'place-self': ['auto', 'start', 'end', 'center', 'stretch']\n }],\n // Spacing\n /**\n * Padding\n * @see https://tailwindcss.com/docs/padding\n */\n p: [{\n p: [padding]\n }],\n /**\n * Padding X\n * @see https://tailwindcss.com/docs/padding\n */\n px: [{\n px: [padding]\n }],\n /**\n * Padding Y\n * @see https://tailwindcss.com/docs/padding\n */\n py: [{\n py: [padding]\n }],\n /**\n * Padding Start\n * @see https://tailwindcss.com/docs/padding\n */\n ps: [{\n ps: [padding]\n }],\n /**\n * Padding End\n * @see https://tailwindcss.com/docs/padding\n */\n pe: [{\n pe: [padding]\n }],\n /**\n * Padding Top\n * @see https://tailwindcss.com/docs/padding\n */\n pt: [{\n pt: [padding]\n }],\n /**\n * Padding Right\n * @see https://tailwindcss.com/docs/padding\n */\n pr: [{\n pr: [padding]\n }],\n /**\n * Padding Bottom\n * @see https://tailwindcss.com/docs/padding\n */\n pb: [{\n pb: [padding]\n }],\n /**\n * Padding Left\n * @see https://tailwindcss.com/docs/padding\n */\n pl: [{\n pl: [padding]\n }],\n /**\n * Margin\n * @see https://tailwindcss.com/docs/margin\n */\n m: [{\n m: [margin]\n }],\n /**\n * Margin X\n * @see https://tailwindcss.com/docs/margin\n */\n mx: [{\n mx: [margin]\n }],\n /**\n * Margin Y\n * @see https://tailwindcss.com/docs/margin\n */\n my: [{\n my: [margin]\n }],\n /**\n * Margin Start\n * @see https://tailwindcss.com/docs/margin\n */\n ms: [{\n ms: [margin]\n }],\n /**\n * Margin End\n * @see https://tailwindcss.com/docs/margin\n */\n me: [{\n me: [margin]\n }],\n /**\n * Margin Top\n * @see https://tailwindcss.com/docs/margin\n */\n mt: [{\n mt: [margin]\n }],\n /**\n * Margin Right\n * @see https://tailwindcss.com/docs/margin\n */\n mr: [{\n mr: [margin]\n }],\n /**\n * Margin Bottom\n * @see https://tailwindcss.com/docs/margin\n */\n mb: [{\n mb: [margin]\n }],\n /**\n * Margin Left\n * @see https://tailwindcss.com/docs/margin\n */\n ml: [{\n ml: [margin]\n }],\n /**\n * Space Between X\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x': [{\n 'space-x': [space]\n }],\n /**\n * Space Between X Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-x-reverse': ['space-x-reverse'],\n /**\n * Space Between Y\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y': [{\n 'space-y': [space]\n }],\n /**\n * Space Between Y Reverse\n * @see https://tailwindcss.com/docs/space\n */\n 'space-y-reverse': ['space-y-reverse'],\n // Sizing\n /**\n * Width\n * @see https://tailwindcss.com/docs/width\n */\n w: [{\n w: ['auto', 'min', 'max', 'fit', isArbitraryValue, spacing]\n }],\n /**\n * Min-Width\n * @see https://tailwindcss.com/docs/min-width\n */\n 'min-w': [{\n 'min-w': ['min', 'max', 'fit', isArbitraryValue, isLength]\n }],\n /**\n * Max-Width\n * @see https://tailwindcss.com/docs/max-width\n */\n 'max-w': [{\n 'max-w': ['0', 'none', 'full', 'min', 'max', 'fit', 'prose', {\n screen: [isTshirtSize]\n }, isTshirtSize, isArbitraryValue]\n }],\n /**\n * Height\n * @see https://tailwindcss.com/docs/height\n */\n h: [{\n h: [isArbitraryValue, spacing, 'auto', 'min', 'max', 'fit']\n }],\n /**\n * Min-Height\n * @see https://tailwindcss.com/docs/min-height\n */\n 'min-h': [{\n 'min-h': ['min', 'max', 'fit', isArbitraryValue, isLength]\n }],\n /**\n * Max-Height\n * @see https://tailwindcss.com/docs/max-height\n */\n 'max-h': [{\n 'max-h': [isArbitraryValue, spacing, 'min', 'max', 'fit']\n }],\n // Typography\n /**\n * Font Size\n * @see https://tailwindcss.com/docs/font-size\n */\n 'font-size': [{\n text: ['base', isTshirtSize, isArbitraryLength]\n }],\n /**\n * Font Smoothing\n * @see https://tailwindcss.com/docs/font-smoothing\n */\n 'font-smoothing': ['antialiased', 'subpixel-antialiased'],\n /**\n * Font Style\n * @see https://tailwindcss.com/docs/font-style\n */\n 'font-style': ['italic', 'not-italic'],\n /**\n * Font Weight\n * @see https://tailwindcss.com/docs/font-weight\n */\n 'font-weight': [{\n font: ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black', isArbitraryNumber]\n }],\n /**\n * Font Family\n * @see https://tailwindcss.com/docs/font-family\n */\n 'font-family': [{\n font: [isAny]\n }],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-normal': ['normal-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-ordinal': ['ordinal'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-slashed-zero': ['slashed-zero'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-figure': ['lining-nums', 'oldstyle-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-spacing': ['proportional-nums', 'tabular-nums'],\n /**\n * Font Variant Numeric\n * @see https://tailwindcss.com/docs/font-variant-numeric\n */\n 'fvn-fraction': ['diagonal-fractions', 'stacked-fractons'],\n /**\n * Letter Spacing\n * @see https://tailwindcss.com/docs/letter-spacing\n */\n tracking: [{\n tracking: ['tighter', 'tight', 'normal', 'wide', 'wider', 'widest', isArbitraryValue]\n }],\n /**\n * Line Clamp\n * @see https://tailwindcss.com/docs/line-clamp\n */\n 'line-clamp': [{\n 'line-clamp': ['none', isNumber, isArbitraryNumber]\n }],\n /**\n * Line Height\n * @see https://tailwindcss.com/docs/line-height\n */\n leading: [{\n leading: ['none', 'tight', 'snug', 'normal', 'relaxed', 'loose', isArbitraryValue, isLength]\n }],\n /**\n * List Style Image\n * @see https://tailwindcss.com/docs/list-style-image\n */\n 'list-image': [{\n 'list-image': ['none', isArbitraryValue]\n }],\n /**\n * List Style Type\n * @see https://tailwindcss.com/docs/list-style-type\n */\n 'list-style-type': [{\n list: ['none', 'disc', 'decimal', isArbitraryValue]\n }],\n /**\n * List Style Position\n * @see https://tailwindcss.com/docs/list-style-position\n */\n 'list-style-position': [{\n list: ['inside', 'outside']\n }],\n /**\n * Placeholder Color\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/placeholder-color\n */\n 'placeholder-color': [{\n placeholder: [colors]\n }],\n /**\n * Placeholder Opacity\n * @see https://tailwindcss.com/docs/placeholder-opacity\n */\n 'placeholder-opacity': [{\n 'placeholder-opacity': [opacity]\n }],\n /**\n * Text Alignment\n * @see https://tailwindcss.com/docs/text-align\n */\n 'text-alignment': [{\n text: ['left', 'center', 'right', 'justify', 'start', 'end']\n }],\n /**\n * Text Color\n * @see https://tailwindcss.com/docs/text-color\n */\n 'text-color': [{\n text: [colors]\n }],\n /**\n * Text Opacity\n * @see https://tailwindcss.com/docs/text-opacity\n */\n 'text-opacity': [{\n 'text-opacity': [opacity]\n }],\n /**\n * Text Decoration\n * @see https://tailwindcss.com/docs/text-decoration\n */\n 'text-decoration': ['underline', 'overline', 'line-through', 'no-underline'],\n /**\n * Text Decoration Style\n * @see https://tailwindcss.com/docs/text-decoration-style\n */\n 'text-decoration-style': [{\n decoration: [].concat(getLineStyles(), ['wavy'])\n }],\n /**\n * Text Decoration Thickness\n * @see https://tailwindcss.com/docs/text-decoration-thickness\n */\n 'text-decoration-thickness': [{\n decoration: ['auto', 'from-font', isLength]\n }],\n /**\n * Text Underline Offset\n * @see https://tailwindcss.com/docs/text-underline-offset\n */\n 'underline-offset': [{\n 'underline-offset': ['auto', isArbitraryValue, isLength]\n }],\n /**\n * Text Decoration Color\n * @see https://tailwindcss.com/docs/text-decoration-color\n */\n 'text-decoration-color': [{\n decoration: [colors]\n }],\n /**\n * Text Transform\n * @see https://tailwindcss.com/docs/text-transform\n */\n 'text-transform': ['uppercase', 'lowercase', 'capitalize', 'normal-case'],\n /**\n * Text Overflow\n * @see https://tailwindcss.com/docs/text-overflow\n */\n 'text-overflow': ['truncate', 'text-ellipsis', 'text-clip'],\n /**\n * Text Indent\n * @see https://tailwindcss.com/docs/text-indent\n */\n indent: [{\n indent: getSpacingWithArbitrary()\n }],\n /**\n * Vertical Alignment\n * @see https://tailwindcss.com/docs/vertical-align\n */\n 'vertical-align': [{\n align: ['baseline', 'top', 'middle', 'bottom', 'text-top', 'text-bottom', 'sub', 'super', isArbitraryValue]\n }],\n /**\n * Whitespace\n * @see https://tailwindcss.com/docs/whitespace\n */\n whitespace: [{\n whitespace: ['normal', 'nowrap', 'pre', 'pre-line', 'pre-wrap', 'break-spaces']\n }],\n /**\n * Word Break\n * @see https://tailwindcss.com/docs/word-break\n */\n \"break\": [{\n \"break\": ['normal', 'words', 'all', 'keep']\n }],\n /**\n * Hyphens\n * @see https://tailwindcss.com/docs/hyphens\n */\n hyphens: [{\n hyphens: ['none', 'manual', 'auto']\n }],\n /**\n * Content\n * @see https://tailwindcss.com/docs/content\n */\n content: [{\n content: ['none', isArbitraryValue]\n }],\n // Backgrounds\n /**\n * Background Attachment\n * @see https://tailwindcss.com/docs/background-attachment\n */\n 'bg-attachment': [{\n bg: ['fixed', 'local', 'scroll']\n }],\n /**\n * Background Clip\n * @see https://tailwindcss.com/docs/background-clip\n */\n 'bg-clip': [{\n 'bg-clip': ['border', 'padding', 'content', 'text']\n }],\n /**\n * Background Opacity\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/background-opacity\n */\n 'bg-opacity': [{\n 'bg-opacity': [opacity]\n }],\n /**\n * Background Origin\n * @see https://tailwindcss.com/docs/background-origin\n */\n 'bg-origin': [{\n 'bg-origin': ['border', 'padding', 'content']\n }],\n /**\n * Background Position\n * @see https://tailwindcss.com/docs/background-position\n */\n 'bg-position': [{\n bg: [].concat(getPositions(), [isArbitraryPosition])\n }],\n /**\n * Background Repeat\n * @see https://tailwindcss.com/docs/background-repeat\n */\n 'bg-repeat': [{\n bg: ['no-repeat', {\n repeat: ['', 'x', 'y', 'round', 'space']\n }]\n }],\n /**\n * Background Size\n * @see https://tailwindcss.com/docs/background-size\n */\n 'bg-size': [{\n bg: ['auto', 'cover', 'contain', isArbitrarySize]\n }],\n /**\n * Background Image\n * @see https://tailwindcss.com/docs/background-image\n */\n 'bg-image': [{\n bg: ['none', {\n 'gradient-to': ['t', 'tr', 'r', 'br', 'b', 'bl', 'l', 'tl']\n }, isArbitraryUrl]\n }],\n /**\n * Background Color\n * @see https://tailwindcss.com/docs/background-color\n */\n 'bg-color': [{\n bg: [colors]\n }],\n /**\n * Gradient Color Stops From Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from-pos': [{\n from: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops Via Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via-pos': [{\n via: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops To Position\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to-pos': [{\n to: [gradientColorStopPositions]\n }],\n /**\n * Gradient Color Stops From\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-from': [{\n from: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops Via\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-via': [{\n via: [gradientColorStops]\n }],\n /**\n * Gradient Color Stops To\n * @see https://tailwindcss.com/docs/gradient-color-stops\n */\n 'gradient-to': [{\n to: [gradientColorStops]\n }],\n // Borders\n /**\n * Border Radius\n * @see https://tailwindcss.com/docs/border-radius\n */\n rounded: [{\n rounded: [borderRadius]\n }],\n /**\n * Border Radius Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-s': [{\n 'rounded-s': [borderRadius]\n }],\n /**\n * Border Radius End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-e': [{\n 'rounded-e': [borderRadius]\n }],\n /**\n * Border Radius Top\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-t': [{\n 'rounded-t': [borderRadius]\n }],\n /**\n * Border Radius Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-r': [{\n 'rounded-r': [borderRadius]\n }],\n /**\n * Border Radius Bottom\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-b': [{\n 'rounded-b': [borderRadius]\n }],\n /**\n * Border Radius Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-l': [{\n 'rounded-l': [borderRadius]\n }],\n /**\n * Border Radius Start Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ss': [{\n 'rounded-ss': [borderRadius]\n }],\n /**\n * Border Radius Start End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-se': [{\n 'rounded-se': [borderRadius]\n }],\n /**\n * Border Radius End End\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-ee': [{\n 'rounded-ee': [borderRadius]\n }],\n /**\n * Border Radius End Start\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-es': [{\n 'rounded-es': [borderRadius]\n }],\n /**\n * Border Radius Top Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tl': [{\n 'rounded-tl': [borderRadius]\n }],\n /**\n * Border Radius Top Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-tr': [{\n 'rounded-tr': [borderRadius]\n }],\n /**\n * Border Radius Bottom Right\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-br': [{\n 'rounded-br': [borderRadius]\n }],\n /**\n * Border Radius Bottom Left\n * @see https://tailwindcss.com/docs/border-radius\n */\n 'rounded-bl': [{\n 'rounded-bl': [borderRadius]\n }],\n /**\n * Border Width\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w': [{\n border: [borderWidth]\n }],\n /**\n * Border Width X\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-x': [{\n 'border-x': [borderWidth]\n }],\n /**\n * Border Width Y\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-y': [{\n 'border-y': [borderWidth]\n }],\n /**\n * Border Width Start\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-s': [{\n 'border-s': [borderWidth]\n }],\n /**\n * Border Width End\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-e': [{\n 'border-e': [borderWidth]\n }],\n /**\n * Border Width Top\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-t': [{\n 'border-t': [borderWidth]\n }],\n /**\n * Border Width Right\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-r': [{\n 'border-r': [borderWidth]\n }],\n /**\n * Border Width Bottom\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-b': [{\n 'border-b': [borderWidth]\n }],\n /**\n * Border Width Left\n * @see https://tailwindcss.com/docs/border-width\n */\n 'border-w-l': [{\n 'border-l': [borderWidth]\n }],\n /**\n * Border Opacity\n * @see https://tailwindcss.com/docs/border-opacity\n */\n 'border-opacity': [{\n 'border-opacity': [opacity]\n }],\n /**\n * Border Style\n * @see https://tailwindcss.com/docs/border-style\n */\n 'border-style': [{\n border: [].concat(getLineStyles(), ['hidden'])\n }],\n /**\n * Divide Width X\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x': [{\n 'divide-x': [borderWidth]\n }],\n /**\n * Divide Width X Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-x-reverse': ['divide-x-reverse'],\n /**\n * Divide Width Y\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y': [{\n 'divide-y': [borderWidth]\n }],\n /**\n * Divide Width Y Reverse\n * @see https://tailwindcss.com/docs/divide-width\n */\n 'divide-y-reverse': ['divide-y-reverse'],\n /**\n * Divide Opacity\n * @see https://tailwindcss.com/docs/divide-opacity\n */\n 'divide-opacity': [{\n 'divide-opacity': [opacity]\n }],\n /**\n * Divide Style\n * @see https://tailwindcss.com/docs/divide-style\n */\n 'divide-style': [{\n divide: getLineStyles()\n }],\n /**\n * Border Color\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color': [{\n border: [borderColor]\n }],\n /**\n * Border Color X\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-x': [{\n 'border-x': [borderColor]\n }],\n /**\n * Border Color Y\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-y': [{\n 'border-y': [borderColor]\n }],\n /**\n * Border Color Top\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-t': [{\n 'border-t': [borderColor]\n }],\n /**\n * Border Color Right\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-r': [{\n 'border-r': [borderColor]\n }],\n /**\n * Border Color Bottom\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-b': [{\n 'border-b': [borderColor]\n }],\n /**\n * Border Color Left\n * @see https://tailwindcss.com/docs/border-color\n */\n 'border-color-l': [{\n 'border-l': [borderColor]\n }],\n /**\n * Divide Color\n * @see https://tailwindcss.com/docs/divide-color\n */\n 'divide-color': [{\n divide: [borderColor]\n }],\n /**\n * Outline Style\n * @see https://tailwindcss.com/docs/outline-style\n */\n 'outline-style': [{\n outline: [''].concat(getLineStyles())\n }],\n /**\n * Outline Offset\n * @see https://tailwindcss.com/docs/outline-offset\n */\n 'outline-offset': [{\n 'outline-offset': [isArbitraryValue, isLength]\n }],\n /**\n * Outline Width\n * @see https://tailwindcss.com/docs/outline-width\n */\n 'outline-w': [{\n outline: [isLength]\n }],\n /**\n * Outline Color\n * @see https://tailwindcss.com/docs/outline-color\n */\n 'outline-color': [{\n outline: [colors]\n }],\n /**\n * Ring Width\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w': [{\n ring: getLengthWithEmpty()\n }],\n /**\n * Ring Width Inset\n * @see https://tailwindcss.com/docs/ring-width\n */\n 'ring-w-inset': ['ring-inset'],\n /**\n * Ring Color\n * @see https://tailwindcss.com/docs/ring-color\n */\n 'ring-color': [{\n ring: [colors]\n }],\n /**\n * Ring Opacity\n * @see https://tailwindcss.com/docs/ring-opacity\n */\n 'ring-opacity': [{\n 'ring-opacity': [opacity]\n }],\n /**\n * Ring Offset Width\n * @see https://tailwindcss.com/docs/ring-offset-width\n */\n 'ring-offset-w': [{\n 'ring-offset': [isLength]\n }],\n /**\n * Ring Offset Color\n * @see https://tailwindcss.com/docs/ring-offset-color\n */\n 'ring-offset-color': [{\n 'ring-offset': [colors]\n }],\n // Effects\n /**\n * Box Shadow\n * @see https://tailwindcss.com/docs/box-shadow\n */\n shadow: [{\n shadow: ['', 'inner', 'none', isTshirtSize, isArbitraryShadow]\n }],\n /**\n * Box Shadow Color\n * @see https://tailwindcss.com/docs/box-shadow-color\n */\n 'shadow-color': [{\n shadow: [isAny]\n }],\n /**\n * Opacity\n * @see https://tailwindcss.com/docs/opacity\n */\n opacity: [{\n opacity: [opacity]\n }],\n /**\n * Mix Blend Mode\n * @see https://tailwindcss.com/docs/mix-blend-mode\n */\n 'mix-blend': [{\n 'mix-blend': getBlendModes()\n }],\n /**\n * Background Blend Mode\n * @see https://tailwindcss.com/docs/background-blend-mode\n */\n 'bg-blend': [{\n 'bg-blend': getBlendModes()\n }],\n // Filters\n /**\n * Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/filter\n */\n filter: [{\n filter: ['', 'none']\n }],\n /**\n * Blur\n * @see https://tailwindcss.com/docs/blur\n */\n blur: [{\n blur: [blur]\n }],\n /**\n * Brightness\n * @see https://tailwindcss.com/docs/brightness\n */\n brightness: [{\n brightness: [brightness]\n }],\n /**\n * Contrast\n * @see https://tailwindcss.com/docs/contrast\n */\n contrast: [{\n contrast: [contrast]\n }],\n /**\n * Drop Shadow\n * @see https://tailwindcss.com/docs/drop-shadow\n */\n 'drop-shadow': [{\n 'drop-shadow': ['', 'none', isTshirtSize, isArbitraryValue]\n }],\n /**\n * Grayscale\n * @see https://tailwindcss.com/docs/grayscale\n */\n grayscale: [{\n grayscale: [grayscale]\n }],\n /**\n * Hue Rotate\n * @see https://tailwindcss.com/docs/hue-rotate\n */\n 'hue-rotate': [{\n 'hue-rotate': [hueRotate]\n }],\n /**\n * Invert\n * @see https://tailwindcss.com/docs/invert\n */\n invert: [{\n invert: [invert]\n }],\n /**\n * Saturate\n * @see https://tailwindcss.com/docs/saturate\n */\n saturate: [{\n saturate: [saturate]\n }],\n /**\n * Sepia\n * @see https://tailwindcss.com/docs/sepia\n */\n sepia: [{\n sepia: [sepia]\n }],\n /**\n * Backdrop Filter\n * @deprecated since Tailwind CSS v3.0.0\n * @see https://tailwindcss.com/docs/backdrop-filter\n */\n 'backdrop-filter': [{\n 'backdrop-filter': ['', 'none']\n }],\n /**\n * Backdrop Blur\n * @see https://tailwindcss.com/docs/backdrop-blur\n */\n 'backdrop-blur': [{\n 'backdrop-blur': [blur]\n }],\n /**\n * Backdrop Brightness\n * @see https://tailwindcss.com/docs/backdrop-brightness\n */\n 'backdrop-brightness': [{\n 'backdrop-brightness': [brightness]\n }],\n /**\n * Backdrop Contrast\n * @see https://tailwindcss.com/docs/backdrop-contrast\n */\n 'backdrop-contrast': [{\n 'backdrop-contrast': [contrast]\n }],\n /**\n * Backdrop Grayscale\n * @see https://tailwindcss.com/docs/backdrop-grayscale\n */\n 'backdrop-grayscale': [{\n 'backdrop-grayscale': [grayscale]\n }],\n /**\n * Backdrop Hue Rotate\n * @see https://tailwindcss.com/docs/backdrop-hue-rotate\n */\n 'backdrop-hue-rotate': [{\n 'backdrop-hue-rotate': [hueRotate]\n }],\n /**\n * Backdrop Invert\n * @see https://tailwindcss.com/docs/backdrop-invert\n */\n 'backdrop-invert': [{\n 'backdrop-invert': [invert]\n }],\n /**\n * Backdrop Opacity\n * @see https://tailwindcss.com/docs/backdrop-opacity\n */\n 'backdrop-opacity': [{\n 'backdrop-opacity': [opacity]\n }],\n /**\n * Backdrop Saturate\n * @see https://tailwindcss.com/docs/backdrop-saturate\n */\n 'backdrop-saturate': [{\n 'backdrop-saturate': [saturate]\n }],\n /**\n * Backdrop Sepia\n * @see https://tailwindcss.com/docs/backdrop-sepia\n */\n 'backdrop-sepia': [{\n 'backdrop-sepia': [sepia]\n }],\n // Tables\n /**\n * Border Collapse\n * @see https://tailwindcss.com/docs/border-collapse\n */\n 'border-collapse': [{\n border: ['collapse', 'separate']\n }],\n /**\n * Border Spacing\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing': [{\n 'border-spacing': [borderSpacing]\n }],\n /**\n * Border Spacing X\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-x': [{\n 'border-spacing-x': [borderSpacing]\n }],\n /**\n * Border Spacing Y\n * @see https://tailwindcss.com/docs/border-spacing\n */\n 'border-spacing-y': [{\n 'border-spacing-y': [borderSpacing]\n }],\n /**\n * Table Layout\n * @see https://tailwindcss.com/docs/table-layout\n */\n 'table-layout': [{\n table: ['auto', 'fixed']\n }],\n /**\n * Caption Side\n * @see https://tailwindcss.com/docs/caption-side\n */\n caption: [{\n caption: ['top', 'bottom']\n }],\n // Transitions and Animation\n /**\n * Tranisition Property\n * @see https://tailwindcss.com/docs/transition-property\n */\n transition: [{\n transition: ['none', 'all', '', 'colors', 'opacity', 'shadow', 'transform', isArbitraryValue]\n }],\n /**\n * Transition Duration\n * @see https://tailwindcss.com/docs/transition-duration\n */\n duration: [{\n duration: getNumberAndArbitrary()\n }],\n /**\n * Transition Timing Function\n * @see https://tailwindcss.com/docs/transition-timing-function\n */\n ease: [{\n ease: ['linear', 'in', 'out', 'in-out', isArbitraryValue]\n }],\n /**\n * Transition Delay\n * @see https://tailwindcss.com/docs/transition-delay\n */\n delay: [{\n delay: getNumberAndArbitrary()\n }],\n /**\n * Animation\n * @see https://tailwindcss.com/docs/animation\n */\n animate: [{\n animate: ['none', 'spin', 'ping', 'pulse', 'bounce', isArbitraryValue]\n }],\n // Transforms\n /**\n * Transform\n * @see https://tailwindcss.com/docs/transform\n */\n transform: [{\n transform: ['', 'gpu', 'none']\n }],\n /**\n * Scale\n * @see https://tailwindcss.com/docs/scale\n */\n scale: [{\n scale: [scale]\n }],\n /**\n * Scale X\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-x': [{\n 'scale-x': [scale]\n }],\n /**\n * Scale Y\n * @see https://tailwindcss.com/docs/scale\n */\n 'scale-y': [{\n 'scale-y': [scale]\n }],\n /**\n * Rotate\n * @see https://tailwindcss.com/docs/rotate\n */\n rotate: [{\n rotate: [isInteger, isArbitraryValue]\n }],\n /**\n * Translate X\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-x': [{\n 'translate-x': [translate]\n }],\n /**\n * Translate Y\n * @see https://tailwindcss.com/docs/translate\n */\n 'translate-y': [{\n 'translate-y': [translate]\n }],\n /**\n * Skew X\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-x': [{\n 'skew-x': [skew]\n }],\n /**\n * Skew Y\n * @see https://tailwindcss.com/docs/skew\n */\n 'skew-y': [{\n 'skew-y': [skew]\n }],\n /**\n * Transform Origin\n * @see https://tailwindcss.com/docs/transform-origin\n */\n 'transform-origin': [{\n origin: ['center', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'top-left', isArbitraryValue]\n }],\n // Interactivity\n /**\n * Accent Color\n * @see https://tailwindcss.com/docs/accent-color\n */\n accent: [{\n accent: ['auto', colors]\n }],\n /**\n * Appearance\n * @see https://tailwindcss.com/docs/appearance\n */\n appearance: ['appearance-none'],\n /**\n * Cursor\n * @see https://tailwindcss.com/docs/cursor\n */\n cursor: [{\n cursor: ['auto', 'default', 'pointer', 'wait', 'text', 'move', 'help', 'not-allowed', 'none', 'context-menu', 'progress', 'cell', 'crosshair', 'vertical-text', 'alias', 'copy', 'no-drop', 'grab', 'grabbing', 'all-scroll', 'col-resize', 'row-resize', 'n-resize', 'e-resize', 's-resize', 'w-resize', 'ne-resize', 'nw-resize', 'se-resize', 'sw-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'zoom-in', 'zoom-out', isArbitraryValue]\n }],\n /**\n * Caret Color\n * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities\n */\n 'caret-color': [{\n caret: [colors]\n }],\n /**\n * Pointer Events\n * @see https://tailwindcss.com/docs/pointer-events\n */\n 'pointer-events': [{\n 'pointer-events': ['none', 'auto']\n }],\n /**\n * Resize\n * @see https://tailwindcss.com/docs/resize\n */\n resize: [{\n resize: ['none', 'y', 'x', '']\n }],\n /**\n * Scroll Behavior\n * @see https://tailwindcss.com/docs/scroll-behavior\n */\n 'scroll-behavior': [{\n scroll: ['auto', 'smooth']\n }],\n /**\n * Scroll Margin\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-m': [{\n 'scroll-m': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin X\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mx': [{\n 'scroll-mx': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Y\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-my': [{\n 'scroll-my': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Start\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ms': [{\n 'scroll-ms': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin End\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-me': [{\n 'scroll-me': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Top\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mt': [{\n 'scroll-mt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Right\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mr': [{\n 'scroll-mr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Bottom\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-mb': [{\n 'scroll-mb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Margin Left\n * @see https://tailwindcss.com/docs/scroll-margin\n */\n 'scroll-ml': [{\n 'scroll-ml': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-p': [{\n 'scroll-p': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding X\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-px': [{\n 'scroll-px': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Y\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-py': [{\n 'scroll-py': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Start\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-ps': [{\n 'scroll-ps': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding End\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pe': [{\n 'scroll-pe': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Top\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pt': [{\n 'scroll-pt': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Right\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pr': [{\n 'scroll-pr': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Bottom\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pb': [{\n 'scroll-pb': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Padding Left\n * @see https://tailwindcss.com/docs/scroll-padding\n */\n 'scroll-pl': [{\n 'scroll-pl': getSpacingWithArbitrary()\n }],\n /**\n * Scroll Snap Align\n * @see https://tailwindcss.com/docs/scroll-snap-align\n */\n 'snap-align': [{\n snap: ['start', 'end', 'center', 'align-none']\n }],\n /**\n * Scroll Snap Stop\n * @see https://tailwindcss.com/docs/scroll-snap-stop\n */\n 'snap-stop': [{\n snap: ['normal', 'always']\n }],\n /**\n * Scroll Snap Type\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-type': [{\n snap: ['none', 'x', 'y', 'both']\n }],\n /**\n * Scroll Snap Type Strictness\n * @see https://tailwindcss.com/docs/scroll-snap-type\n */\n 'snap-strictness': [{\n snap: ['mandatory', 'proximity']\n }],\n /**\n * Touch Action\n * @see https://tailwindcss.com/docs/touch-action\n */\n touch: [{\n touch: ['auto', 'none', 'pinch-zoom', 'manipulation', {\n pan: ['x', 'left', 'right', 'y', 'up', 'down']\n }]\n }],\n /**\n * User Select\n * @see https://tailwindcss.com/docs/user-select\n */\n select: [{\n select: ['none', 'text', 'all', 'auto']\n }],\n /**\n * Will Change\n * @see https://tailwindcss.com/docs/will-change\n */\n 'will-change': [{\n 'will-change': ['auto', 'scroll', 'contents', 'transform', isArbitraryValue]\n }],\n // SVG\n /**\n * Fill\n * @see https://tailwindcss.com/docs/fill\n */\n fill: [{\n fill: [colors, 'none']\n }],\n /**\n * Stroke Width\n * @see https://tailwindcss.com/docs/stroke-width\n */\n 'stroke-w': [{\n stroke: [isLength, isArbitraryNumber]\n }],\n /**\n * Stroke\n * @see https://tailwindcss.com/docs/stroke\n */\n stroke: [{\n stroke: [colors, 'none']\n }],\n // Accessibility\n /**\n * Screen Readers\n * @see https://tailwindcss.com/docs/screen-readers\n */\n sr: ['sr-only', 'not-sr-only']\n },\n conflictingClassGroups: {\n overflow: ['overflow-x', 'overflow-y'],\n overscroll: ['overscroll-x', 'overscroll-y'],\n inset: ['inset-x', 'inset-y', 'start', 'end', 'top', 'right', 'bottom', 'left'],\n 'inset-x': ['right', 'left'],\n 'inset-y': ['top', 'bottom'],\n flex: ['basis', 'grow', 'shrink'],\n gap: ['gap-x', 'gap-y'],\n p: ['px', 'py', 'ps', 'pe', 'pt', 'pr', 'pb', 'pl'],\n px: ['pr', 'pl'],\n py: ['pt', 'pb'],\n m: ['mx', 'my', 'ms', 'me', 'mt', 'mr', 'mb', 'ml'],\n mx: ['mr', 'ml'],\n my: ['mt', 'mb'],\n 'font-size': ['leading'],\n 'fvn-normal': ['fvn-ordinal', 'fvn-slashed-zero', 'fvn-figure', 'fvn-spacing', 'fvn-fraction'],\n 'fvn-ordinal': ['fvn-normal'],\n 'fvn-slashed-zero': ['fvn-normal'],\n 'fvn-figure': ['fvn-normal'],\n 'fvn-spacing': ['fvn-normal'],\n 'fvn-fraction': ['fvn-normal'],\n rounded: ['rounded-s', 'rounded-e', 'rounded-t', 'rounded-r', 'rounded-b', 'rounded-l', 'rounded-ss', 'rounded-se', 'rounded-ee', 'rounded-es', 'rounded-tl', 'rounded-tr', 'rounded-br', 'rounded-bl'],\n 'rounded-s': ['rounded-ss', 'rounded-es'],\n 'rounded-e': ['rounded-se', 'rounded-ee'],\n 'rounded-t': ['rounded-tl', 'rounded-tr'],\n 'rounded-r': ['rounded-tr', 'rounded-br'],\n 'rounded-b': ['rounded-br', 'rounded-bl'],\n 'rounded-l': ['rounded-tl', 'rounded-bl'],\n 'border-spacing': ['border-spacing-x', 'border-spacing-y'],\n 'border-w': ['border-w-s', 'border-w-e', 'border-w-t', 'border-w-r', 'border-w-b', 'border-w-l'],\n 'border-w-x': ['border-w-r', 'border-w-l'],\n 'border-w-y': ['border-w-t', 'border-w-b'],\n 'border-color': ['border-color-t', 'border-color-r', 'border-color-b', 'border-color-l'],\n 'border-color-x': ['border-color-r', 'border-color-l'],\n 'border-color-y': ['border-color-t', 'border-color-b'],\n 'scroll-m': ['scroll-mx', 'scroll-my', 'scroll-ms', 'scroll-me', 'scroll-mt', 'scroll-mr', 'scroll-mb', 'scroll-ml'],\n 'scroll-mx': ['scroll-mr', 'scroll-ml'],\n 'scroll-my': ['scroll-mt', 'scroll-mb'],\n 'scroll-p': ['scroll-px', 'scroll-py', 'scroll-ps', 'scroll-pe', 'scroll-pt', 'scroll-pr', 'scroll-pb', 'scroll-pl'],\n 'scroll-px': ['scroll-pr', 'scroll-pl'],\n 'scroll-py': ['scroll-pt', 'scroll-pb']\n },\n conflictingClassGroupModifiers: {\n 'font-size': ['leading']\n }\n };\n}\n\nexport { getDefaultConfig };\n//# sourceMappingURL=default-config.mjs.map\n","/**\n * @param baseConfig Config where other config will be merged into. This object will be mutated.\n * @param configExtension Partial config to merge into the `baseConfig`.\n */\nfunction mergeConfigs(baseConfig, configExtension) {\n for (var key in configExtension) {\n mergePropertyRecursively(baseConfig, key, configExtension[key]);\n }\n return baseConfig;\n}\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar overrideTypes = /*#__PURE__*/new Set(['string', 'number', 'boolean']);\nfunction mergePropertyRecursively(baseObject, mergeKey, mergeValue) {\n if (!hasOwnProperty.call(baseObject, mergeKey) || overrideTypes.has(typeof mergeValue) || mergeValue === null) {\n baseObject[mergeKey] = mergeValue;\n return;\n }\n if (Array.isArray(mergeValue) && Array.isArray(baseObject[mergeKey])) {\n baseObject[mergeKey] = baseObject[mergeKey].concat(mergeValue);\n return;\n }\n if (typeof mergeValue === 'object' && typeof baseObject[mergeKey] === 'object') {\n if (baseObject[mergeKey] === null) {\n baseObject[mergeKey] = mergeValue;\n return;\n }\n for (var nextKey in mergeValue) {\n mergePropertyRecursively(baseObject[mergeKey], nextKey, mergeValue[nextKey]);\n }\n }\n}\n\nexport { mergeConfigs };\n//# sourceMappingURL=merge-configs.mjs.map\n","import { createTailwindMerge } from './create-tailwind-merge.mjs';\nimport { getDefaultConfig } from './default-config.mjs';\nimport { mergeConfigs } from './merge-configs.mjs';\n\nfunction extendTailwindMerge(configExtension) {\n for (var _len = arguments.length, createConfig = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n createConfig[_key - 1] = arguments[_key];\n }\n return typeof configExtension === 'function' ? createTailwindMerge.apply(void 0, [getDefaultConfig, configExtension].concat(createConfig)) : createTailwindMerge.apply(void 0, [function () {\n return mergeConfigs(getDefaultConfig(), configExtension);\n }].concat(createConfig));\n}\n\nexport { extendTailwindMerge };\n//# sourceMappingURL=extend-tailwind-merge.mjs.map\n","import { createTailwindMerge } from './create-tailwind-merge.mjs';\nimport { getDefaultConfig } from './default-config.mjs';\n\nvar twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);\n\nexport { twMerge };\n//# sourceMappingURL=tw-merge.mjs.map\n","import { e, b, g, c, f, a, h } from './chunk-JXBJZR5A.js';\nimport { twMerge, extendTailwindMerge } from 'tailwind-merge';\n\nvar se={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},_=s=>s||void 0,N=(...s)=>_(e(s).filter(Boolean).join(\" \")),q=null,M={},F=!1,w=(...s)=>b$1=>b$1.twMerge?((!q||F)&&(F=!1,q=b(M)?twMerge:extendTailwindMerge(M)),_(q(N(s)))):N(s),Z=(s,b)=>{for(let e in b)s.hasOwnProperty(e)?s[e]=N(s[e],b[e]):s[e]=b[e];return s},ie=(s,b$1)=>{let{extend:e=null,slots:j={},variants:U={},compoundVariants:C=[],compoundSlots:V=[],defaultVariants:W={}}=s,m={...se,...b$1},S=e!=null&&e.base?N(e.base,s==null?void 0:s.base):s==null?void 0:s.base,g$1=e!=null&&e.variants&&!b(e.variants)?g(U,e.variants):U,A=e!=null&&e.defaultVariants&&!b(e.defaultVariants)?{...e.defaultVariants,...W}:W;!b(m.twMergeConfig)&&!c(m.twMergeConfig,M)&&(F=!0,M=m.twMergeConfig);let O=b(e==null?void 0:e.slots),$=b(j)?{}:{base:N(s==null?void 0:s.base,O&&(e==null?void 0:e.base)),...j},h$1=O?$:Z({...e==null?void 0:e.slots},b($)?{base:s==null?void 0:s.base}:$),v=l=>{if(b(g$1)&&b(j)&&O)return w(S,l==null?void 0:l.class,l==null?void 0:l.className)(m);if(C&&!Array.isArray(C))throw new TypeError(`The \"compoundVariants\" prop must be an array. Received: ${typeof C}`);if(V&&!Array.isArray(V))throw new TypeError(`The \"compoundSlots\" prop must be an array. Received: ${typeof V}`);let K=(t,n,a=[],i)=>{let r=a;if(typeof n==\"string\")r=r.concat(h(n).split(\" \").map(c=>`${t}:${c}`));else if(Array.isArray(n))r=r.concat(n.reduce((c,f)=>c.concat(`${t}:${f}`),[]));else if(typeof n==\"object\"&&typeof i==\"string\"){for(let c in n)if(n.hasOwnProperty(c)&&c===i){let f=n[c];if(f&&typeof f==\"string\"){let o=h(f);r[i]?r[i]=r[i].concat(o.split(\" \").map(u=>`${t}:${u}`)):r[i]=o.split(\" \").map(u=>`${t}:${u}`);}else Array.isArray(f)&&f.length>0&&(r[i]=f.reduce((o,u)=>o.concat(`${t}:${u}`),[]));}}return r},z=(t,n=g$1,a$1=null,i=null)=>{var J;let r=n[t];if(!r||b(r))return null;let c=(J=i==null?void 0:i[t])!=null?J:l==null?void 0:l[t];if(c===null)return null;let f=a(c),o=Array.isArray(m.responsiveVariants)&&m.responsiveVariants.length>0||m.responsiveVariants===!0,u=A==null?void 0:A[t],d=[];if(typeof f==\"object\"&&o)for(let[k,L]of Object.entries(f)){let ae=r[L];if(k===\"initial\"){u=L;continue}Array.isArray(m.responsiveVariants)&&!m.responsiveVariants.includes(k)||(d=K(k,ae,d,a$1));}let T=r[f]||r[a(u)];return typeof d==\"object\"&&typeof a$1==\"string\"&&d[a$1]?Z(d,T):d.length>0?(d.push(T),d):T},P=()=>g$1?Object.keys(g$1).map(t=>z(t,g$1)):null,p=(t,n)=>{if(!g$1||typeof g$1!=\"object\")return null;let a=new Array;for(let i in g$1){let r=z(i,g$1,t,n),c=t===\"base\"&&typeof r==\"string\"?r:r&&r[t];c&&(a[a.length]=c);}return a},D={};for(let t in l)l[t]!==void 0&&(D[t]=l[t]);let G=(t,n)=>{var i;let a=typeof(l==null?void 0:l[t])==\"object\"?{[t]:(i=l[t])==null?void 0:i.initial}:{};return {...A,...D,...a,...n}},H=(t=[],n)=>{let a=[];for(let{class:i,className:r,...c}of t){let f=!0;for(let[o,u]of Object.entries(c)){let d=G(o,n);if(Array.isArray(u)){if(!u.includes(d[o])){f=!1;break}}else if(d[o]!==u){f=!1;break}}f&&(i&&a.push(i),r&&a.push(r));}return a},I=t=>{let n=H(C,t),a=H(e==null?void 0:e.compoundVariants,t);return f(a,n)},ee=t=>{let n=I(t);if(!Array.isArray(n))return n;let a={};for(let i of n)if(typeof i==\"string\"&&(a.base=w(a.base,i)(m)),typeof i==\"object\")for(let[r,c]of Object.entries(i))a[r]=w(a[r],c)(m);return a},te=t=>{if(V.length<1)return null;let n={};for(let{slots:a=[],class:i,className:r,...c}of V){if(!b(c)){let f=!0;for(let o of Object.keys(c)){let u=G(o,t)[o];if(u===void 0||(Array.isArray(c[o])?!c[o].includes(u):c[o]!==u)){f=!1;break}}if(!f)continue}for(let f of a)n[f]=n[f]||[],n[f].push([i,r]);}return n};if(!b(j)||!O){let t={};if(typeof h$1==\"object\"&&!b(h$1))for(let n of Object.keys(h$1))t[n]=a=>{var i,r;return w(h$1[n],p(n,a),((i=ee(a))!=null?i:[])[n],((r=te(a))!=null?r:[])[n],a==null?void 0:a.class,a==null?void 0:a.className)(m)};return t}return w(S,P(),I(),l==null?void 0:l.class,l==null?void 0:l.className)(m)},x=()=>{if(!(!g$1||typeof g$1!=\"object\"))return Object.keys(g$1)};return v.variantKeys=x(),v.extend=e,v.base=S,v.slots=h$1,v.variants=g$1,v.defaultVariants=A,v.compoundSlots=V,v.compoundVariants=C,v},le=s=>(b,e)=>ie(b,e?g(s,e):s);\n\nexport { w as cn, N as cnBase, le as createTV, se as defaultConfig, ie as tv, _ as voidEmpty };\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const layoutBase = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--self-stretch tw--justify-self-stretch tw--items-stretch tw--justify-center tw--overflow-hidden tw--h-full tw--bg-lumina',\n wrapper: 'tw--flex tw--flex-col tw--w-full md:tw--max-w-[800px] tw--max-h-screen tw--h-full tw--bg-whisper tw--text-zephyr-100',\n },\n variants: {\n minimized: {\n true: 'tw--fixed tw--right-0 tw--bottom-0 tw--max-h-[700px] tw--max-w-md'\n }\n },\n});\n\nexport const layoutHead = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--px-5 tw--py-[11px] tw--shadow-[-1px_2px_5px_0] tw--shadow-zephyr-200',\n },\n});\n\nexport const layoutFoot = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--items-center tw--flex-wrap tw--px-5 tw--mt-[11px]',\n input: 'tw--flex-1 tw--pr-2',\n button: 'tw--flex tw--grow-0',\n },\n});\n\nexport default { layoutBase, layoutHead, layoutFoot };\n","import { useAppSelector, useWindowSize } from '../../hooks';\nimport { LayoutBaseProps } from '../../interfaces/component';\nimport { getConfig } from '../../store/slices/config';\nimport { layoutBase as variant } from './variants';\n\nexport const LayoutBase = ({ head, stream, foot }: LayoutBaseProps) => {\n const { themeId: theme, isPluginMode } = useAppSelector(getConfig);\n const { base, wrapper } = variant();\n const data = useWindowSize();\n\n return (\n \n
\n {head}\n {stream}\n {foot}\n
\n
\n );\n};\n\nexport default LayoutBase;\n","import { tv } from 'tailwind-variants';\n\n// eslint-disable-next-line spaced-comment\nexport const overlay = /*tw*/ tv({\n slots: {\n base: 'loader js-payment-loader tw--hidden tw--fixed tw--left-0 tw--top-0 tw--z-[101] tw--m-0 tw--flex tw--h-screen tw--w-screen tw--items-center tw--justify-center tw--px-5 tw--bg-whisper'\n },\n});\n\nexport default overlay;\n","import { OverlayProps } from '../../interfaces/component';\nimport overlay from './variants';\n\nexport const Overlay = ({ children }: OverlayProps) => {\n const { base } = overlay();\n return (\n
\n {children}\n
\n );\n};\n\nexport default Overlay;\n","import { AllEvents } from '../config/enums';\n\ntype trackingData = {\n eventType: AllEvents | string;\n systemType: string;\n utmParams: {[key:string]: string};\n customerUuid: string;\n email?: string;\n phone?: string;\n};\n\nexport const track = ({\n eventType,\n systemType,\n utmParams,\n customerUuid,\n email,\n phone,\n}: trackingData): void => {\n if (window.trackEventInGTM && window.tracking) {\n const event = window.tracking.event({\n eventType,\n systemType,\n uri: window.location.pathname,\n domain: window.location.hostname,\n customerUuid,\n email: email || null,\n phone: phone || null,\n additionalData: {},\n utmParams,\n });\n\n window.tracking.trackClient(event);\n if (window.trackEventInGTM) {\n window.trackEventInGTM(event);\n }\n }\n};\n\ndeclare global {\n interface Window {\n tracking: {\n event: (data: {\n eventType: string;\n systemType: string;\n uri: string;\n domain: string;\n customerUuid: string;\n additionalData: object;\n utmParams: {[key:string]: string};\n email?: string | null;\n phone?: string | null;\n }) => string;\n trackClient: (event: string) => void;\n };\n trackEventInGTM: (data: string) => void;\n }\n}\n\nwindow.tracking = window.tracking || null;\nwindow.trackEventInGTM = window.trackEventInGTM || null;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const payment = /*tw*/ tv({\n slots: {\n btn: 'tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-bold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--text-xl max-h-[46px] tw--mb-[11px] customXs:max-h-[52px]',\n\n link: 'tw--flex-1 tw--space-x-2 tw--text-white tw--text-center tw--bg-neon tw--max-w-[280px] tw--mx-auto tw--px-4 tw--py-3 tw--font-extrabold tw--rounded-[20px] tw--shadow-[0px_12px_24px_-4px_rgba(1,154,255,0.2)] tw--flex tw--justify-center tw--items-center tw--cursor-pointer tw--relative tw--w-full tw--mb-[11px] spaced-letters max-h-[46px] customXs:max-h-[52px] customXs:tw--max-w-xs customXs:te--text-[20px] customXs:tw--text-xl',\n }\n});\n\nexport const wrapper = /*tw*/ tv({\n slots: {\n base: 'tw--absolute tw--top-0 tw--left-0 tw--w-full tw--h-screen tw--flex tw--flex-col tw--justify-center tw--items-center tw--px-5 tw--z-50 tw--bg-lumina',\n },\n});\n\nexport const head = /*tw*/ tv({\n slots: {\n wrapper: 'tw--flex tw--justify-between tw--w-full tw--mb-7',\n left: 'tw--flex tw--flex-col',\n leftTop: 'tw--flex tw--flex-row',\n icon: 'tw--pr-[5px] tw--mr-[5px] tw--flex tw--items-center tw--border-r tw--border-r-[#cacadb]',\n text: 'tw--flex tw--flex-col tw--justify-center tw--text-left tw--text-[10px] tw--leading-[1] tw--text-muted-blue',\n bottom: 'tw--opacity-60 tw--text-[10px] tw--leading-[2] tw--text-muted-blue',\n right: 'tw--flex tw--flex-col tw--items-end',\n price: 'tw--text-[#21bb5a] tw--font-bold tw--leading-[1.4] tw--text-[20px]',\n info: 'tw--leading-[2] tw--text-[10px] tw--text-muted-blue',\n },\n});\n\nexport const close = /*tw*/ tv({\n slots: {\n base: 'tw--absolute tw--top-[-30px] tw--right-[-10px] tw--w-6 tw--h-6 tw--p-1 tw--bg-white tw--rounded-full tw--cursor-pointer tw--text-muted-blue',\n },\n});\n\nexport const foot = tv({\n slots: {\n base: 'tw--mt-[30px] tw--flex tw--items-center tw--justify-center tw--text-[12.8px] tw--leading-[1.56] tw--text-[#21bb5a] tw--font-bold',\n icon: 'tw--mr-[5px]'\n },\n});\n\nexport const loader = /*tv*/ tv({\n slots: {\n wrapper: 'loader js-payment-loader tw--max-w-[335px] tw--overflow-hidden tw--relative tw--flex tw--w-full tw--flex-col tw--items-center tw--justify-center tw--rounded-xl tw--p-5 tw--shadow-card tw--bg-loader',\n inner: 'tw--absolute tw--left-0 tw--top-8 tw--flex tw--h-8 tw--w-full tw--items-center tw--justify-center',\n dots: 'tw--relative tw--flex tw--items-center tw--justify-center tw--p-3',\n dotsIn: 'tw--relative tw--mx-auto tw--my-4 tw--box-content tw--block tw--h-4 tw--w-4 tw--rounded-full tw--bg-pale-dots tw--shadow-loading-dots tw--animate-shadow-dots',\n progressCheckmark: 'tw--mb-6 tw--mt-24 tw--box-border tw--flex tw--w-full tw--items-center tw--justify-center tw--text-center',\n panelTitle: 'js-payment-message tw--text-lg tw--font-bold tw--leading-5',\n icon: 'tw--mr-5 tw--h-6 tw--w-6 tw--rounded-full tw--bg-iota-dots',\n spinningTexts: 'tw--mx-10 tw--w-64 tw--shrink-0 tw--text-[16px] tw--leading-[1.63] tw--opacity-60',\n filmContainer: 'js-msg-spin tw--flex tw--justify-center tw--overflow-hidden tw--text-center',\n film: 'tw--animate-text-spin tw--flex tw--w-full tw--max-w-xs tw--translate-x-72'\n },\n});\n\nexport default payment;\n","import { useEffect } from 'react';\n\nimport { AllEvents } from '../../config/enums';\nimport { useAppSelector } from '../../hooks';\nimport { PaymentButtonProps } from '../../interfaces/component';\nimport { track } from '../../services/tracking';\nimport { getConfig } from '../../store/slices/config';\nimport { payment as variant } from './variants';\n\nexport const PaymentButton = ({ text, onClick, e2e, disabled = false }: PaymentButtonProps) => {\n const meta = useAppSelector((state) => state.meta);\n const currentEmail = useAppSelector((state) => state.intentions.email.current);\n const { btn } = variant();\n\n useEffect(() => {\n const data = {\n eventType: AllEvents.addToCart,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: currentEmail\n };\n\n track(data);\n\n data.eventType = AllEvents.priceSeen;\n track(data);\n }, [])\n\n return (\n \n \n \n \n \n {text}\n \n );\n};\n\nexport default PaymentButton;\n","import { CloseButtonProps } from '../../interfaces/component';\nimport { close as variants } from './variants';\n\nexport const CloseButton = ({ onClick }: CloseButtonProps) => {\n const { base } = variants();\n return (\n \n \n \n \n \n );\n};\n\nexport default CloseButton;\n","import { foot as variants } from './variants';\n\nexport const PaymentFooter = () => {\n const { base, icon } = variants();\n return (\n
\n \n \n \n SSL Secure Connection\n
\n );\n};\n\nexport default PaymentFooter;\n","import { useAppSelector } from '../../hooks';\nimport { head as variants } from './variants';\ninterface PaymentHeadProps {\n config: {\n price: string;\n period: string;\n }\n}\n\nexport const PaymentHead = ({ config }: PaymentHeadProps) => {\n const { translations } = useAppSelector((state) => state.config);\n const { wrapper, left, leftTop, icon, text, bottom, right, price, info } = variants();\n\n return (\n
\n
\n \n
\n \n \n \n \n \n { /* DEV NOTE: be aware that the text is not coming from an input so in the future it is not a good practice to use this attribute */}\n \n
\n
\n {translations.paymentHeaderTxt2}\n
\n
\n
\n
{config.price}
\n
\n {config.period}\n
\n
\n
\n
\n );\n};\n\nexport default PaymentHead;\n","import { forwardRef } from 'react';\n\nimport { LinkProps } from '../../interfaces/component';\nimport payment from './variants';\n\nexport const Link = forwardRef((props, ref) => {\n const { link } = payment();\n const { href, text, onClick, e2e = null } = props;\n\n return (\n \n {text}\n \n );\n});\n\nLink.displayName = 'Link'; \nexport default Link;\n","import { loader as variants } from './variants';\ninterface PaymentLoaderProps {\n texts?: Array;\n title?: string;\n}\n\nexport const PaymentLoader = ({ texts = [], title = '' }: PaymentLoaderProps) => {\n const {\n wrapper,\n inner,\n dots,\n dotsIn,\n icon,\n progressCheckmark,\n panelTitle,\n spinningTexts,\n filmContainer,\n film\n } = variants();\n return (\n \n
\n
\n \n
\n
\n\n
\n \n \n \n \n \n \n

{title}

\n
\n\n
\n
\n {texts.map((txt) => (\n
\n {txt}\n
\n ))}\n
\n
\n
\n );\n};\n\nexport default PaymentLoader;\n","import { MouseEvent } from 'react';\n\nimport { useAppSelector } from '../../hooks';\nimport { Overlay } from '../Overlay';\nimport { CloseButton, PaymentFooter, PaymentHead, PaymentLoader, } from '../Payment';\nimport { wrapper } from '../Payment/variants';\n\nexport const PaymentScene = ({ onClose }: { onClose: (e: MouseEvent) => void }) => {\n const { displayPlanPrice, billingFrequencyTmsg } = useAppSelector((state) => state.meta.pd);\n const { translations } = useAppSelector((state) => state.config);\n const { base } = wrapper();\n\n return (\n (\n
\n \n \n \n \n \n
\n \n
\n \n
\n
\n )\n );\n};\n\nexport default PaymentScene;\n","import { tv } from 'tailwind-variants';\n\nexport const streamBase = /* tw*/ tv({\n slots: {\n base: 'tw--pt-10 tw--w-full tw--h-full tw--pb-5 tw--px-5 tw--overflow-y-scroll tw--flex tw--flex-col-reverse tw--translate-z-0 tw--text-zephyr-100 tw--font-density-different tw--mt-0 tw--mb-auto',\n second: 'tw--mt-0 tw--mb-auto',\n date: 'tw--text-center tw--text-sm tw--pb-[5px] tw--opacity-40'\n },\n});\n\nexport const streamHead = /* tw*/ tv({\n slots: {\n base: 'tw--flex tw--flex-col tw--items-center tw--w-full tw--mx-auto tw--pt-5 tw--pb-10',\n title: 'tw--pb-[30px] tw--max-w-[400px] tw--text-center tw--mx-[30px] select-none tw--font-density-different',\n },\n});\n\nexport const streamRow = /* tw*/ tv({\n slots: {\n base: 'tw--grid tw--break-words',\n },\n});\n\nexport const flickerEffect = /* tw */ tv({\n slots: {\n base: 'after:tw--inline-block after:tw--ml-1 after:tw--h-4 after:tw--w-1 select-none after:tw--bg-zephyr-100',\n },\n variants: {\n isTyping: {\n true: 'after:tw--animate-blink',\n false: 'after:tw--hidden'\n },\n }\n});\n\nexport const streamBubble = /* tw*/ tv({\n slots: {\n base: 'tw--relative tw--max-w-[375px] tw--whitespace-pre-wrap tw--rounded-[20px] tw--mb-5 tw--space-y-5 tw--font-density-different',\n action: 'tw--absolute tw--bottom-[-16px] tw--right-[-10px] tw--text-seraph',\n separator: 'tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--w-fit tw--ml-auto tw--mr-0'\n },\n compoundSlots: [\n {\n slots: ['base'],\n type: 'assistant',\n class: 'tw--bg-lumina tw--px-[15px] tw--py-[11px]',\n },\n {\n slots: ['base'],\n type: 'user',\n class: 'tw--justify-self-end',\n },\n {\n slots: ['separator'],\n type: 'user',\n class: 'tw--bg-seraph tw--text-white'\n },\n ],\n});\n\nexport const ellipsis = tv({\n slots: {\n dotFirst: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave tw--bg-zephyr-100',\n dotSecond: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay tw--bg-zephyr-100',\n dotThird: 'tw--inline-block tw--h-[12px] tw--w-[12px] tw--rounded-full tw--opacity-40 tw--animate-wave-delay-2 tw--bg-zephyr-100',\n },\n});\n\nexport default { streamBase, streamHead, streamRow, streamBubble, ellipsis };\n","import { ellipsis as variant } from './variants';\n\nexport const Ellipsis = () => {\n const { dotFirst, dotSecond, dotThird } = variant();\n return (\n
\n \n \n \n
\n );\n};\n\nexport default Ellipsis;\n","// DEV Note: will be deprecated, replace with env vars\nexport const STORAGE_KEY = 'history';\nexport const CHAT_SEEN_KEY = 'chatSeen';\nexport const LINK_CLICKED_KEY = 'linkClickedFromChat';\nexport const CHAT_FINISHED_TIMESTAMP = 'chatConversationFinishedTimeStamp';\nexport const ALREADY_REGISTERED_KEY = 'showAlreadyRegisteredUser';\nexport const SHOW_PAYMENT_BUTTON_KEY = 'showPaymentButton';\nexport const SOCKET_IO_URL = 'http://localhost:5000';\nexport const UNSENT_MESSAGES_KEY = 'unsent';\nexport const GO_THROUGH_QUIZ_KEY = 'hasToGoThroughQuiz';\nexport const EXISTING_PRODUCT_LINK_KEY = 'existingProductLink';\nexport const CID = 'cid';\nexport const STORING_CHECKER_INTERVAL = 1000;\nexport const SCROLL_STOP_CLASS = 'scroll-stop';\nexport const SUPPORT_PURPOSE = 'support';\nexport const SPECIAL_MERCHANT = 'MERCHANT_SITE_URL';\nexport const SPECIAL_SUPPORT_TICKET = 'NEW_SUPPORT_TICKET_URL';\nexport const CLOSE_AFTER_TIMEOUT = 500;\nexport const DEFAULT_CLOSE_HREF = '/';\nexport const TYPING_TIMEOUT = 3000;\n","export const config = {\n transports: ['websocket'],\n upgrade: false,\n pingInterval: 1000 * 60 * 5,\n pingTimeout: 1000 * 60 * 3,\n secure: true,\n reconnect: true,\n};\n\nexport default { config };\n","import { AssistantRecord } from '../interfaces/index';\nimport { getQueryParam, uuidV4 } from '../utils';\nimport { Definition, QueryParams, Roles } from './enums';\nimport { SPECIAL_MERCHANT, SPECIAL_SUPPORT_TICKET } from './env';\nexport { Events, Roles } from './enums';\nexport { config } from './socket';\n\nexport const initialMessage = [\n {\n id: uuidV4(),\n role: Roles.assistant,\n time: new Date().getTime(),\n content: [\n { 'type': 'text', 'text': 'See this picture', 'sequence': 2 },\n { 'type': 'text', 'text': 'See this picture', 'sequence': 2 },\n { 'type': 'text', 'text': 'My favorite search engine is [Duck Duck Go](https://duckduckgo.com \"The best search engine for privacy\").', 'sequence': 2 },\n {\n type: 'image',\n image: { url: 'https://static.boredpanda.com/blog/wp-content/uploads/2016/08/wet-dogs-before-after-bath-fb6__700-png.jpg' },\n sequence: 1,\n },\n {\n type: 'video',\n video: { url: 'https://www.youtube.com/embed/ZwKhufmMxko' },\n sequence: 1,\n }\n ]\n },\n {\n id: uuidV4(),\n role: Roles.assistant,\n time: new Date().getTime(),\n content: [\n { 'type': 'text', 'text': 'Do you want to lose weight?', 'sequence': 2 },\n { 'type': 'buttons', 'sequence': 1, 'buttons': [{ 'value': 'Yes', 'sequence': 1, 'text': 'Yes' }, { 'value': 'No', 'sequence': 2, 'text': 'No' }] }\n ]\n },\n {\n id: uuidV4(),\n role: Roles.assistant,\n time: new Date().getTime(),\n content: [\n { 'type': 'text', 'text': 'Do you want to lose weight?', 'sequence': 2 },\n ]\n },\n];\ninterface InitiationConfig { id: string, purpose?: string, close: { href?: string, visible?: boolean } }\n\nexport const chat = ({ id, purpose, close }: InitiationConfig) => ({\n meta: {\n cid: localStorage.getItem('__cid') || id,\n systemType: 'test',\n region: null,\n pd: {\n subscriberBillingFrequency: 'Billed every {1} month(s)',\n oneTimer: 'Total price to be charged',\n billingFrequencyTmsg: '',\n },\n marketing: {\n utmParams: { utm_chat: getQueryParam(QueryParams.chat) },\n lastUtmParams: { utm_chat: getQueryParam(QueryParams.chat) },\n screen: {\n width: 2084,\n height: 1608,\n }\n },\n eid: '23c7cdcf-4d90-4ea1-aab0-c73f8426dc1d_PageView_1694521420366',\n },\n app: {\n aiProfile: {\n name: 'Meal Mentor',\n role: 'AI-powered nutritionist',\n imgSrc: 'https://storage.1forfit.com/lGbeX4lzNpWGyywHuJxMdegZ6My040jsvtVwZqBv.png',\n welcome: 'Welcome to our live support. We\\'re here to understand your requirements and suggest the best Keto diet suited for you.',\n initialMessage\n },\n chatUrl: 'https://chat-ws.test',\n purpose: purpose || 'default',\n themeId: 'light',\n translations: {\n emailPlaceholder: 'Please enter your email',\n tm526: 'Continue to my plan',\n tm715: 'Enter new email',\n tm716: 'Entered email already exists, choose below to proceed',\n tm530: 'Take the quiz',\n tm1224: 'Payment in progress...',\n tm1226: 'Payment succeeded!',\n paymentHeaderTxt1: 'SECURITY verified',\n paymentHeaderTxt2: 'secured payments',\n loaderTexts: [\n 'We securely lock up your payment details.',\n 'Details zoom to the payment center.',\n 'Payment center requests our bank to process.',\n 'Our bank contacts your card network.',\n 'Card network asks your bank for approval.',\n 'Your bank reviews funds or credit.',\n 'Decision travels back to us.',\n 'Waiting your payment to be verified and complete.'\n ],\n payButton: 'Secure payment',\n ctaTextContent: 'Create Your Menu!',\n mealButton: 'Create your meal plan',\n error: 'Oops something went wrong.',\n tm505: 'Please enter valid email address',\n supportButton: 'backEndVars.supportButton',\n merchantButton: 'backEndVars.merchantButton',\n },\n close: {\n href: close.href || '/',\n visible: close.visible || false,\n }\n },\n specialUrls: {\n [SPECIAL_MERCHANT]: '/',\n [SPECIAL_SUPPORT_TICKET]: '/'\n }\n});\n\nexport const paymentData = {\n amount: '29.90',\n amountInUSD: 29.9,\n frequency: 1,\n frequencyInMonths: 1,\n billingOptionType: 'subscription',\n isDisplayPricePlan: true,\n displayPlanPrice: '$29.90'\n};\n\nexport const getUnifiedSequence = (current: Array, incoming: AssistantRecord) => {\n return current.map((record: AssistantRecord) => {\n const hasMatch = record.sequence === incoming.sequence && record.type === incoming.type;\n\n if (hasMatch && record.type === Definition.text && incoming.text) {\n return { ...record, text: record.text + incoming.text }\n }\n\n if (hasMatch && record.type === Definition.buttons && incoming?.buttons?.length && record?.buttons?.length) {\n return { ...record, buttons: [...record.buttons, ...incoming.buttons] }\n }\n\n return record;\n })\n};\n","function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a(n,r){return 2===o(n)?n.get(r):n[r]}function f(n,r,t){var e=o(n);2===e?n.set(r,t):3===e?n.add(t):n[r]=t}function c(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0)),n}function h(){n(2)}function y(n){return null==n||\"object\"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function m(n,r){tn[n]||(tn[n]=r)}function _(){return\"production\"===process.env.NODE_ENV||U||n(0),U}function j(n,r){r&&(b(\"Patches\"),n.u=[],n.s=[],n.v=r)}function g(n){O(n),n.p.forEach(S),n.p=null}function O(n){n===U&&(U=n.l)}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.g=!0}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.O||b(\"ES5\").S(e,r,o),o?(i[Q].P&&(g(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b(\"Patches\").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),g(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o,u=o,a=!1;3===e.i&&(u=new Set(o),o.clear(),a=!0),i(u,(function(r,i){return A(n,e,o,r,i,t,a)})),x(n,o,!1),t&&n.u&&b(\"Patches\").N(e,t,n.u,n.s)}return e.o}function A(e,i,o,a,c,s,v){if(\"production\"!==process.env.NODE_ENV&&c===o&&n(5),r(c)){var p=M(e,c,s&&i&&3!==i.i&&!u(i.R,a)?s.concat(a):void 0);if(f(o,a,p),!r(p))return;e.m=!1}else v&&o.add(c);if(t(c)&&!y(c)){if(!e.h.D&&e._<1)return;M(e,c),i&&i.A.l||x(e,c)}}function x(n,r,t){void 0===t&&(t=!1),!n.l&&n.h.D&&n.m&&d(r,t)}function z(n,r){var t=n[Q];return(t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t)}}function k(n){n.P||(n.P=!0,n.l&&k(n.l))}function E(n){n.o||(n.o=l(n.t))}function N(n,r,t){var e=s(r)?b(\"MapSet\").F(r,t):v(r)?b(\"MapSet\").T(r,t):n.O?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b(\"ES5\").J(r,t);return(t?t.A:_()).p.push(e),e}function R(e){return r(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=o(r);if(u){if(!u.P&&(u.i<4||!b(\"ES5\").K(u)))return u.t;u.I=!0,e=D(r,c),u.I=!1}else e=D(r,c);return i(e,(function(r,t){u&&a(u.t,r)===t||f(e,r,n(t))})),3===c?new Set(e):e}(e)}function D(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}function F(){function t(n,r){var t=s[n];return t?t.enumerable=r:s[n]=t={configurable:!0,enumerable:r,get:function(){var r=this[Q];return\"production\"!==process.env.NODE_ENV&&f(r),en.get(r,n)},set:function(r){var t=this[Q];\"production\"!==process.env.NODE_ENV&&f(t),en.set(t,n,r)}},t}function e(n){for(var r=n.length-1;r>=0;r--){var t=n[r][Q];if(!t.P)switch(t.i){case 5:a(t)&&k(t);break;case 4:o(t)&&k(t)}}}function o(n){for(var r=n.t,t=n.k,e=nn(t),i=e.length-1;i>=0;i--){var o=e[i];if(o!==Q){var a=r[o];if(void 0===a&&!u(r,o))return!0;var f=t[o],s=f&&f[Q];if(s?s.t!==a:!c(f,a))return!0}}var v=!!r[Q];return e.length!==nn(r).length+(v?0:1)}function a(n){var r=n.k;if(r.length!==n.t.length)return!0;var t=Object.getOwnPropertyDescriptor(r,r.length-1);if(t&&!t.get)return!0;for(var e=0;e1?t-1:0),o=1;o1?t-1:0),o=1;o=0;e--){var i=t[e];if(0===i.path.length&&\"replace\"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b(\"Patches\").$;return r(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un,fn=an.produce,cn=an.produceWithPatches.bind(an),sn=an.setAutoFreeze.bind(an),vn=an.setUseProxies.bind(an),pn=an.applyPatches.bind(an),ln=an.createDraft.bind(an),dn=an.finishDraft.bind(an);export default fn;export{un as Immer,pn as applyPatches,K as castDraft,$ as castImmutable,ln as createDraft,R as current,J as enableAllPlugins,F as enableES5,C as enableMapSet,T as enablePatches,dn as finishDraft,d as freeze,L as immerable,r as isDraft,t as isDraftable,H as nothing,e as original,fn as produce,cn as produceWithPatches,sn as setAutoFreeze,vn as setUseProxies};\n//# sourceMappingURL=immer.esm.js.map\n","import { createSlice, Draft,PayloadAction } from '@reduxjs/toolkit';\nimport produce from 'immer';\n\nimport { getUnifiedSequence } from '../../config';\nimport { Definition, QueryParams, Roles } from '../../config/enums';\nimport {\n AssistantHistoryDataFiller,\n AssistantHistoryInitialMessage,\n AssistantRecord,\n PredefinedMessagePayload,\n SocketHistoryRecord,\n UserHistoryDataFiller,\n} from '../../interfaces';\nimport { ChatState } from '../../interfaces/store';\nimport { getQueryParam, uuidV4 } from '../../utils';\nimport { chat as initialState } from '../initialState';\n\nconst configSlice = createSlice({\n name: 'chat',\n initialState,\n reducers: {\n setOutgoing(state, { payload }: PayloadAction) {\n state.outgoing = {\n term: getQueryParam(QueryParams.chat),\n user_id: localStorage.getItem('__cid') || '',\n role: Roles.user,\n message: payload,\n };\n },\n resetOutgoing(state) {\n state.outgoing = initialState.outgoing;\n },\n setExistingHistory(state, { payload }: PayloadAction>) {\n return produce(state, (draft) => {\n // server has LESS or EQUAL data than frontend -> update the status to unsent\n if (state.historyIds.length >= payload.length) {\n const unsentMessages = state.historyIds.filter((id) => !payload.find((record) => record.id === id));\n unsentMessages.forEach(\n (id) =>\n (draft.historyData[id].content = draft.historyData[id].content.map((record) => ({\n ...record,\n sent: false,\n resend: true,\n }))),\n );\n return;\n }\n\n draft.historyIds = payload.map(({ id }) => id);\n draft.historyData = payload.reduce(\n (prev, current) => ({\n ...prev,\n [current.id]: current\n }),\n {},\n );\n });\n },\n addPredefinedAssistantMessage(\n state,\n { payload }: PayloadAction\n ) {\n const id = uuidV4();\n return produce(state, (draft: Draft): void => {\n draft.historyIds.push(id);\n draft.historyData[id] = {\n id,\n role: Roles.assistant,\n content: [\n { type: Definition.text, text: payload.content, sequence: 1 },\n { type: Definition.buttons, buttons: payload.buttons || [], sequence: 2 },\n ],\n };\n });\n },\n fillAssistantHistoryData(state, { payload }: PayloadAction) {\n return produce(state, (draft: Draft) => {\n const id = payload.id;\n\n if (!draft.historyData[id]) {\n draft.historyData[id] = { id, role: Roles.assistant, content: [] };\n draft.historyIds.push(id);\n return;\n }\n\n if (!payload.content) {\n return;\n }\n\n const dataType = payload.content.type;\n const data = {\n sequence: payload.sequence || 1,\n type: dataType,\n [dataType]: payload.content[payload.content.type],\n };\n\n const hasDuplicatedSequenceAndType = draft.historyData[id].content.some(\n (record) => record.sequence === data.sequence && record.type === data.type,\n );\n\n if (hasDuplicatedSequenceAndType) {\n draft.historyData[id].content = getUnifiedSequence(\n draft.historyData[id].content as Array,\n data,\n );\n return;\n }\n\n draft.historyData[id].content.push(data);\n });\n },\n fillUserHistoryData(\n state,\n { payload: { id, content } }: PayloadAction\n ) {\n return produce(state, (draft: Draft) => {\n let belongsTo;\n\n if (content.groupId) {\n Object.entries(draft.historyData).forEach(([key, value]) => {\n if (value.content.find((el) => el.groupId === content.groupId)) {\n belongsTo = key;\n }\n });\n }\n\n if (belongsTo) {\n // this is due to keyboard interaction we send messages after timeout\n const userMessageRecord = draft.historyData[belongsTo];\n userMessageRecord.content.push(content);\n return;\n }\n\n if (!draft.historyData[id]) {\n draft.historyData[id] = { id, role: Roles.user, content: [content] };\n draft.historyIds.push(id);\n }\n });\n },\n fillInitialMessage(\n state,\n { payload }: PayloadAction\n ) {\n state.historyIds.push(payload.id);\n state.historyData[payload.id] = {\n id: payload.id,\n role: Roles.assistant,\n time: new Date().getTime(),\n content: payload.content,\n };\n },\n setIsLoading(state) {\n state.isLoading = true;\n },\n resetIsLoading(state) {\n state.isLoading = initialState.isLoading;\n },\n setTypingTimeoutExpired(state, { payload }: PayloadAction) {\n state.typingTimeoutExpired = payload;\n },\n setConnected(state, { payload }: PayloadAction) {\n state.connected = payload;\n },\n setClosed(state) {\n state.closed = true;\n },\n hideResendIcon(state, { payload }: PayloadAction<{ itemId: string }>) {\n return produce(state, (draft: Draft) => {\n draft.historyData[payload.itemId].content = draft.historyData[payload.itemId].content.map((record) => ({\n ...record,\n sent: true,\n resend: false,\n }));\n });\n },\n showResendIcon(state, { payload }: PayloadAction<{ itemId: string }>) {\n return produce(state, (draft: Draft) => {\n draft.historyData[payload.itemId].content = draft.historyData[payload.itemId].content.map((record) => ({\n ...record,\n sent: false,\n resend: true,\n }));\n });\n },\n setLastGroupPointer(state, { payload }: PayloadAction) {\n state.lastGroupId = payload;\n },\n resendMessage(state, { payload }) {\n // empty - used only to listen in the middleware for changes\n },\n setError(state, { payload }: PayloadAction) {\n state.error = payload;\n },\n resetError(state) {\n state.error = initialState.error;\n },\n setIsStreaming(state, { payload }: PayloadAction) {\n state.isStreaming = payload;\n },\n resetHistory(state) {\n state.historyIds = initialState.historyIds;\n state.historyData = initialState.historyData;\n },\n },\n});\n\nexport const getChat = (state: { chat: ChatState }) => state.chat;\nexport const userMessageFindOne = (state: { chat: ChatState }) =>\n state.chat.historyIds.find((historyId) => state.chat.historyData[historyId].role === Roles.user);\nexport const sortBySequence = (a: AssistantRecord, b: AssistantRecord) => a.sequence - b.sequence;\n\nexport const {\n setOutgoing,\n resetOutgoing,\n setExistingHistory,\n addPredefinedAssistantMessage,\n setIsLoading,\n resetIsLoading,\n setLastGroupPointer,\n setTypingTimeoutExpired,\n setError,\n resetError,\n setConnected,\n setClosed,\n hideResendIcon,\n showResendIcon,\n resendMessage,\n setIsStreaming,\n fillAssistantHistoryData,\n fillUserHistoryData,\n resetHistory,\n fillInitialMessage,\n} = configSlice.actions;\n\nexport default configSlice.reducer;\n","import { createSlice } from '@reduxjs/toolkit';\n\nimport { IntentionsState } from '../../interfaces/store';\nimport { intentions as initialState } from '../initialState';\n\nconst intentionsSlice = createSlice({\n name: 'intentions',\n initialState,\n reducers: {\n setEmail(state, { payload }) {\n state.email.current = payload;\n },\n setEmailSuccess(state, { payload }) {\n state.email.success = payload;\n },\n setEmailError(state, { payload }) {\n state.email.error = payload;\n },\n setIsEmailLoading(state, { payload }) {\n state.email.isLoading = payload;\n },\n setIsPaymentButtonVisible(state, { payload }) {\n state.payment.isButtonVisible = payload;\n },\n setPaymentFormVisibility(state, { payload }) {\n state.payment.isFormVisible = payload;\n },\n setIsPaymentSuccessful(state, { payload }) {\n state.payment.isSuccessful = payload;\n },\n setPaymentIntentError(state, { payload }) {\n state.payment.error = payload;\n },\n setLink(state, { payload }) {\n state.link = payload;\n },\n },\n});\n\nexport const getEmailIntentions = (state: { intentions: IntentionsState }) => state.intentions.email;\nexport const getPaymentIntentions = (state: { intentions: IntentionsState }) => state.intentions.payment;\nexport const getPaymentSuccess = (state: { intentions: IntentionsState }) => state.intentions.payment.isSuccessful;\nexport const getLinkIntentions = (state: { intentions: IntentionsState }) => state.intentions.link;\n\nexport const {\n setEmailSuccess,\n setIsPaymentSuccessful,\n setPaymentFormVisibility,\n setEmailError,\n setIsEmailLoading,\n setIsPaymentButtonVisible,\n setPaymentIntentError,\n setEmail,\n setLink\n} = intentionsSlice.actions;\n\nexport default intentionsSlice.reducer;\n","import { Roles } from '../config';\nimport { SUPPORT_PURPOSE } from '../config/env';\nimport { getChat } from '../store/slices/chat';\nimport { getConfig } from '../store/slices/config';\nimport { getEmailIntentions, getPaymentIntentions } from '../store/slices/intentions';\nimport { getMeta } from '../store/slices/meta';\nimport { useAppSelector } from '.';\n\nexport const useFootProps = () => {\n const { cid, systemType, marketing, pd } = useAppSelector(getMeta);\n const { translations, purpose, specialUrls } = useAppSelector(getConfig);\n const { isLoading, isStreaming } = useAppSelector(getChat);\n const { error: streamError } = useAppSelector((store) => store.chat);\n const storedLink = useAppSelector((store) => store.intentions.link);\n const { error: emailError, current: currentEmail } = useAppSelector(getEmailIntentions);\n const {\n isFormVisible: isPaymentFormVisible,\n error: paymentIntentError,\n isSuccessful: paymentSuccess\n } = useAppSelector(getPaymentIntentions);\n const error = streamError || emailError || paymentIntentError;\n const staticProps = {\n systemType,\n marketing,\n error,\n cid,\n isLoading,\n currentEmail,\n translations,\n pd,\n isStreaming,\n isPaymentButtonVisible: false,\n isPaymentFormVisible: false,\n isEmailFormVisible: false,\n isResponseFormVisible: false,\n ctaText: '',\n ctaHref: '',\n };\n const { historyData, historyIds } = useAppSelector(getChat);\n const lastMsgId = [...historyIds].pop();\n const lastMsg = lastMsgId && historyData[lastMsgId];\n const isLastAssistantMsg = lastMsg && lastMsg.role === Roles.assistant;\n const link = isLastAssistantMsg && storedLink;\n const noButtonChoices = !(lastMsg && lastMsg?.content.find((m) => m.buttons));\n const hasPaymentIntent = lastMsg && lastMsg?.content.find((m) => m.payment);\n const hasEmailIntent = lastMsg && lastMsg?.content.find((m) => m.email);\n\n if (isLastAssistantMsg && hasPaymentIntent) {\n return {\n ...staticProps,\n isPaymentButtonVisible: true,\n };\n }\n\n if (isLastAssistantMsg && hasEmailIntent) {\n return {\n ...staticProps,\n isEmailFormVisible: true,\n isPaymentFormVisible,\n };\n }\n\n if (paymentSuccess) {\n return {\n ...staticProps,\n ctaText: translations.ctaTextContent,\n ctaHref: '/',\n isPaymentFormVisible,\n };\n }\n\n const message = lastMsg && lastMsg?.content?.find((m) => m.special);\n if (isLastAssistantMsg && message && message?.special) {\n return {\n ...staticProps,\n ctaText: specialUrls[message.special].includes('merchant') ? translations.merchantButton : translations.supportButton,\n ctaHref: specialUrls[message.special],\n };\n }\n\n if (link && purpose === SUPPORT_PURPOSE) {\n return {\n ...staticProps,\n isResponseFormVisible: true,\n };\n }\n\n const isResponseFormVisible = lastMsg && !link && !isLoading && (noButtonChoices || lastMsg?.role === Roles.user);\n\n return {\n ...staticProps,\n ctaText: translations.mealButton,\n ctaHref: link,\n isResponseFormVisible,\n };\n};\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n","import { EventEmitter } from 'node:events';\n\nimport { Intentions } from '../config/enums';\n\nexport const intent = {\n type: Intentions,\n core: new EventEmitter()\n};\n\nexport default intent;\n","/* eslint-disable spaced-comment */\nimport { tv, type VariantProps } from 'tailwind-variants';\n\nexport const basic = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none tw--bg-glazeBg tw--text-glazeText tw--border-glaze tw--font-density-different',\n },\n});\n\nexport const icon = /*tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--text-dots',\n },\n variants: {\n outlined: {\n true: 'tw--p-0.5 tw--bg-white tw--rounded-full tw--shadow',\n false: 'tw--bg-[transparent]',\n },\n },\n});\n\nexport type BasicVariants = VariantProps;\nexport type IconVariants = VariantProps;\n","import { ButtonProps } from '../../interfaces/component';\nimport { basic as variant } from './variants';\n\nexport const Btn = ({ text = '', onClick, e2e }: ButtonProps) => {\n const { base } = variant();\n\n return (\n \n {text}\n \n );\n};\n\nexport default Btn;\n","import { IconProps } from '../../interfaces/component';\nimport { icon as variant } from './variants';\n\nexport const IconBtn = ({ children, outlined = false, onClick, e2e = null, disabled = false }: IconProps) => {\n const { base } = variant({ outlined });\n\n return (\n \n {children}\n \n );\n};\n\nexport default IconBtn;\n","import { tv } from 'tailwind-variants';\n\nexport const basic = /* tw*/ tv({\n slots: {\n base: 'tw--relative tw--flex tw--items-center',\n input: 'tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] focus:tw--outline-none focus:!tw--bg-lumina tw--bg-lumina tw--text-zephyr-100 tw--font-density-different',\n loader: 'tw--absolute tw--right-4 tw--top-[50%] tw--translate-y-[-50%]',\n spin: 'tw--block tw--w-6 tw--h-6 tw--border-solid tw--border-[5px] tw--rounded-3xl tw--animate-rotate tw--m-auto tw--border-zephyr-200 tw--border-t-zephyr-600 tw--border-l-zephyr-600'\n },\n});\n\nexport default basic;\n","import { forwardRef } from 'react';\n\nimport { BasicInputProps } from '../../interfaces/component';\nimport { basic as variant } from './variants';\n\nexport const Input = forwardRef((props, ref) => {\n const {\n disabled,\n e2e,\n isLoading,\n onChange,\n onKeyUp,\n placeholder,\n type,\n value,\n } = props;\n\n const { base, input, loader, spin } = variant();\n\n return (\n
\n \n\n {isLoading && (\n \n \n \n )}\n
\n );\n});\n\nInput.displayName = 'Input';\n\nexport default Input;\n","import { useEffect, useRef, useState } from 'react';\n\nimport { AllEvents } from '../../config/enums';\nimport { useAppDispatch, useAppSelector } from '../../hooks';\nimport { intent } from '../../services/intentions';\nimport { track } from '../../services/tracking';\nimport { getConfig } from '../../store/slices/config';\nimport { getEmailIntentions, setEmail, setIsEmailLoading } from '../../store/slices/intentions';\nimport { IconBtn } from '../Button';\nimport { Input } from '../Input/basic';\nimport { layoutFoot as variant } from '../Layout/variants';\n\nexport const EmailForm = () => {\n const dispatch = useAppDispatch();\n const meta = useAppSelector((state) => state.meta);\n const { translations } = useAppSelector(getConfig);\n const { isLoading } = useAppSelector(getEmailIntentions);\n const { base, input, button } = variant();\n const [email, setCurrentEmail] = useState('');\n const inputElement = useRef(null);\n\n useEffect(() => {\n track({\n eventType: AllEvents.emailField,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n });\n\n setTimeout(() => {\n if (!inputElement.current) { return }\n inputElement.current.focus();\n }, 500);\n });\n\n const handleInputChange = (e: React.ChangeEvent) => {\n const currentValue = e.target.value.trim();\n setCurrentEmail(currentValue);\n };\n\n const handleFormSubmit = (e: React.FormEvent | React.MouseEvent) => {\n e.preventDefault();\n\n if (email === '') {\n return;\n }\n\n dispatch(setIsEmailLoading(true));\n dispatch(setEmail(email));\n intent.core.emit(intent.type.email, { email });\n setCurrentEmail('');\n };\n\n return (\n \n
\n \n
\n
\n \n \n \n \n \n
\n \n );\n};\n\nexport default EmailForm;\n","import { useEffect, useRef, useState } from 'react';\n\nimport { IconBtn } from '../../components/Button';\nimport { Input } from '../../components/Input';\nimport { Roles } from '../../config/enums';\nimport { useAppDispatch, useAppSelector } from '../../hooks';\nimport { fillUserHistoryData, getChat, setLastGroupPointer, setTypingTimeoutExpired } from '../../store/slices/chat';\nimport { uuidV4 } from '../../utils';\nimport { layoutFoot as variant } from '../Layout/variants';\nimport { TYPING_TIMEOUT } from '../../config/env';\n\nexport const ResponseForm = () => {\n const dispatch = useAppDispatch();\n const { connected, isLoading } = useAppSelector(getChat);\n const { base, input, button } = variant();\n const [response, setCurrentResponse] = useState('');\n const [timerId, setTimerId] = useState(null);\n const groupId = useAppSelector((state) => state.chat.lastGroupId);\n const inputElement = useRef(null);\n\n useEffect(() => {\n setTimeout(() => {\n inputElement.current?.focus();\n }, 500);\n }, []);\n\n const handleInputChange = (e: React.ChangeEvent) => {\n setCurrentResponse(e.target.value);\n setTimerToSendMessage();\n };\n\n const handleFormSubmit = (e: React.FormEvent | React.MouseEvent) => {\n e.preventDefault();\n\n if (response.trim()) {\n dispatch(fillUserHistoryData({\n role: Roles.user,\n id: uuidV4(),\n sequence: 1,\n content: {\n sequence: 1, message: response, groupId, resend: false, sent: true\n }\n }));\n }\n\n setCurrentResponse('');\n setTimerToSendMessage();\n };\n\n const setTimerToSendMessage = () => {\n if (timerId) {\n clearTimeout(timerId);\n }\n const currentId = setTimeout(() => {\n dispatch(setTypingTimeoutExpired(true));\n dispatch(setLastGroupPointer(uuidV4()));\n }, TYPING_TIMEOUT);\n setTimerId(currentId);\n };\n\n return (\n \n
\n \n
\n
\n \n \n \n \n \n
\n \n );\n};\n\nexport default ResponseForm;\n","import { useEffect, useRef, useState } from 'react';\n\nimport { PaymentScene } from '../../components/Scenes/payment';\nimport { Ellipsis } from '../../components/Stream/ellipsis';\nimport { AllEvents } from '../../config/enums';\nimport { LINK_CLICKED_KEY } from '../../config/env';\nimport { useAppDispatch } from '../../hooks';\nimport { useFootProps } from '../../hooks/foot';\nimport intent from '../../services/intentions';\nimport { track } from '../../services/tracking';\nimport { addPredefinedAssistantMessage, setClosed } from '../../store/slices/chat';\nimport { setIsPaymentButtonVisible, setIsPaymentSuccessful, setPaymentFormVisibility, setPaymentIntentError } from '../../store/slices/intentions';\nimport { EmailForm, ResponseForm } from '../Form';\nimport { Link, PaymentButton } from '../Payment';\n\nexport const LayoutFoot = () => {\n const dispatch = useAppDispatch();\n const footState = useFootProps();\n const ctaAfterPayButton = useRef(null);\n const [disabled, setDisabled] = useState(false);\n\n const setIsPaymentContainerVisible = (isVisible: boolean): void => {\n dispatch(setPaymentFormVisibility(isVisible));\n };\n\n useEffect(() => {\n if (footState.isEmailFormVisible) {\n track({\n eventType: AllEvents.emailField,\n systemType: footState.systemType,\n utmParams: footState.marketing.lastUtmParams,\n customerUuid: footState.cid,\n email: footState.currentEmail\n });\n }\n }, [footState.isEmailFormVisible]);\n\n const onClosePaymentForm = (e: React.MouseEvent) => {\n e.currentTarget.disabled = true;\n intent.core.emit(intent.type.destroy);\n setIsPaymentContainerVisible(false);\n setDisabled(false);\n };\n\n const onPaymentSuccess = () => {\n dispatch(addPredefinedAssistantMessage({ content: footState.translations.tm1226 }));\n dispatch(setIsPaymentSuccessful(true));\n dispatch(setIsPaymentButtonVisible(false));\n setIsPaymentContainerVisible(false);\n track({\n eventType: AllEvents.linkProvided,\n systemType: footState.systemType,\n utmParams: footState.marketing.lastUtmParams,\n customerUuid: footState.cid,\n email: footState.currentEmail\n });\n setTimeout(() => {\n if (ctaAfterPayButton.current) {\n ctaAfterPayButton.current.click();\n }\n }, 7000);\n };\n\n const onError = (message: string): void => {\n dispatch(setPaymentIntentError(message));\n };\n\n const initializePaymentForm = () => {\n intent.core.emit(intent.type.payment, { setIsPaymentContainerVisible, onPaymentSuccess, onError });\n setDisabled(true);\n };\n\n const onClickCta = (e: React.MouseEvent) => {\n localStorage.setItem(LINK_CLICKED_KEY, e.currentTarget.href);\n track({\n eventType: AllEvents.linkClicked,\n systemType: footState.systemType,\n utmParams: footState.marketing.lastUtmParams,\n customerUuid: footState.cid,\n email: footState.currentEmail\n });\n dispatch(setClosed());\n };\n\n return (\n
\n {footState.error &&
{footState.error}
}\n {footState.isPaymentFormVisible && }\n {footState.isLoading && }\n {footState.ctaHref\n && (\n \n )}\n\n {!footState.isStreaming && footState.isEmailFormVisible && }\n {!footState.isStreaming && footState.isResponseFormVisible && }\n\n {footState.isPaymentButtonVisible && (\n \n )}\n
\n );\n};\n\nexport default LayoutFoot;\n","/* eslint-disable spaced-comment */\nimport { tv } from 'tailwind-variants';\n\nexport const profile = /*tw*/ tv({\n slots: {\n base: 'tw--flex tw--items-center tw--select-none',\n avatar: 'tw--rounded-full',\n info: '',\n name: '',\n role: '',\n imgWrapper: '',\n minimized: ''\n },\n variants: {\n orientation: {\n horizontal: {\n base: 'tw--flex-row tw--text-left',\n avatar: 'tw--shrink',\n name: 'tw--text-xl/7 tw--font-bold tw--leading-[30px]',\n info: 'tw--pl-[10px]',\n role: 'tw--text-zephyr-800',\n imgWrapper: 'after:tw--absolute after:tw--w-[10px] after:tw--h-[10px] after:tw--bottom-[-2px] after:tw--left-[37px] after:tw--z-10 after:tw--rounded-full after:tw--bg-iota-dots'\n },\n vertical: {\n base: 'tw--flex-col tw--text-center',\n name: 'tw--text-[24px] tw--font-semibold',\n role: 'tw--font-density-different tw--text-zephyr-600'\n },\n },\n minimized: {\n true: '',\n false: '',\n },\n },\n compoundSlots: [\n {\n slots: ['imgWrapper'],\n orientation: 'horizontal',\n minimized: false,\n class: 'tw--relative tw--h-fit'\n },\n {\n slots: ['avatar'],\n orientation: 'horizontal',\n minimized: false,\n class: 'tw--h-[50px]',\n },\n {\n slots: ['avatar'],\n orientation: 'vertical',\n minimized: false,\n class: 'tw--h-[60px]',\n },\n ],\n});\n\nexport default profile;\n","import { ScreenOrientation } from '../../config/enums';\nimport { useAppSelector } from '../../hooks';\nimport { ProfileProps } from '../../interfaces/component';\nimport { getConfig } from '../../store/slices/config';\nimport { profile as variant } from './variants';\n\nexport const Profile = ({ orientation = ScreenOrientation.horizontal, minimized = false }: ProfileProps) => {\n const { aiProfile } = useAppSelector(getConfig);\n const { base, avatar, info, name, role, imgWrapper } = variant({ orientation, minimized });\n\n return (\n
\n \n \n \n
\n
{aiProfile.name}
\n
{aiProfile.role}
\n
\n
\n );\n};\n\nexport default Profile;\n","import { MouseEvent } from 'react';\n\nimport { AllEvents } from '../../config/enums';\nimport { CLOSE_AFTER_TIMEOUT } from '../../config/env';\nimport { useAppDispatch, useHeadControls } from '../../hooks';\nimport { track } from '../../services/tracking';\nimport { setClosed } from '../../store/slices/chat';\nimport { IconBtn } from '../Button';\nimport { Profile } from '../Profile';\nimport { layoutHead as variant } from './variants';\n\nexport const LayoutHead = () => {\n const dispatch = useAppDispatch();\n const headState = useHeadControls();\n const { base } = variant({ theme: headState.theme });\n\n const onClick = (e: MouseEvent) => {\n e.currentTarget.disabled = true;\n track({\n eventType: AllEvents.closeClicked,\n systemType: headState.systemType,\n utmParams: headState.marketing.lastUtmParams,\n customerUuid: headState.cid,\n });\n setTimeout(() => {\n dispatch(setClosed());\n }, CLOSE_AFTER_TIMEOUT);\n };\n\n return (\n
\n \n {headState.closeVisible && (\n \n \n \n \n \n \n \n \n )}\n
\n );\n};\n\nexport default LayoutHead;\n","import { CHAT_SEEN_KEY, CID } from '../config/env';\n\n/**\n * Extracts a link from a given string and appends query parameters if specified.\n *\n * @param {string} link - The input string from which the link will be extracted.\n * @example constructLink('here is a link to a diet website https://usa.example.com', '12311231a2', hasQueryParams('https://usa.example.com'));\n * //output: https://usa.example.com/?utm_chat=salesmen-keto-redirect&chatSeen=true&cid=12311231a2\n * @returns {string} The extracted link with optional query parameters or `false` if no link is found.\n */\nexport const constructLink = (link: string): string => {\n const hasQueryParams = (url: string) => {\n // Regular expression pattern to match query parameters\n const pattern = /[?&]([^=#]+)=([^&#]*)/g;\n\n // Check if the pattern matches any query parameters\n return pattern.test(url);\n };\n\n // matching example: 'Secure site: https://www.example.com' will give [ https://www.example.com ]\n\n let search: string;\n\n if (window.location.search) {\n const searchParams = new URLSearchParams(window.location.search);\n\n searchParams.append(CHAT_SEEN_KEY, 'true');\n searchParams.append(CID, localStorage.getItem('__cid') || '');\n\n search = `/?${ searchParams}`;\n } else {\n search = '';\n }\n\n if (hasQueryParams(link)) {\n return link;\n }\n\n return link + search;\n};\n","import { MouseEvent,useEffect } from 'react';\n\nimport { AllEvents } from '../../config/enums';\nimport { LINK_CLICKED_KEY, SUPPORT_PURPOSE } from '../../config/env';\nimport { useAppDispatch, useAppSelector } from '../../hooks';\nimport { MarkdownLinkProps } from '../../interfaces/component';\nimport { track } from '../../services/tracking';\nimport { setClosed } from '../../store/slices/chat';\nimport { getConfig } from '../../store/slices/config';\nimport { setLink } from '../../store/slices/intentions';\nimport { getMeta } from '../../store/slices/meta';\nimport { constructLink } from '../../utils/formatting';\n\nexport const MarkdownLink = ({ properties }: MarkdownLinkProps) => {\n const { purpose } = useAppSelector(getConfig);\n const { cid, marketing, systemType } = useAppSelector(getMeta);\n const dispatch = useAppDispatch();\n const link = properties.href ? constructLink(properties.href) : '#';\n useEffect(() => {\n dispatch(setLink(link));\n });\n\n const onClick = (e: MouseEvent) => {\n if (purpose !== SUPPORT_PURPOSE) {\n localStorage.setItem(LINK_CLICKED_KEY, e.currentTarget.href);\n }\n \n track({\n eventType: AllEvents.linkClicked,\n systemType,\n utmParams: marketing.lastUtmParams,\n customerUuid: cid,\n });\n dispatch(setClosed());\n };\n\n return (\n {properties.href}\n \n );\n};\n\nexport default MarkdownLink;\n","import React, { useState } from 'react';\n\nconst extractVideoCode = (videoUrl: string) => {\n const pattern = /embed\\/(\\w+)/;\n const match = pattern.exec(videoUrl);\n\n if (match) {\n const videoCode = match[1];\n return videoCode;\n }\n\n return null;\n}\n\nexport const Iframe = React.memo(function Iframe({ url, title }: { url: string, title: string }) {\n const [isVisible, setIframeVisibility] = useState(false);\n\n const videoCode = extractVideoCode(url);\n\n const handleVideoClick = () => {\n setIframeVisibility(true);\n };\n\n return (\n isVisible\n ?\n \n :\n
\n \n
\n )\n});\n","import { tv } from 'tailwind-variants';\n\nexport const basic = /* tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--w-full tw--px-[15px] tw--py-[11px] tw--rounded-[20px] tw--border select-none tw--text-center tw--bg-glaze tw--text-whisper',\n },\n});\n\nexport const icon = /* tw*/ tv({\n slots: {\n base: 'tw--flex-1 tw--px-4 tw--py-2',\n },\n});\n","import { LinkProps } from '../../interfaces/component';\nimport { basic as variant } from './variants';\n\nexport const Link = ({ text, href, onClick }: LinkProps) => {\n const { base } = variant();\n\n return (\n \n {text}\n \n );\n};\n\nexport default Link;\n","import { AllEvents, Roles } from '../../config/enums';\nimport { useAppDispatch, useAppSelector } from '../../hooks';\nimport { OptionsListProps } from '../../interfaces/index';\nimport { track } from '../../services/tracking';\nimport { fillUserHistoryData, setOutgoing, userMessageFindOne } from '../../store/slices/chat';\nimport { getMeta } from '../../store/slices/meta';\nimport { uuidV4 } from '../../utils';\nimport { Btn } from '../Button';\nimport { Link } from '../Link';\n\nexport const OptionList = ({ options = [] }: OptionsListProps) => {\n const dispatch = useAppDispatch();\n const meta = useAppSelector(getMeta);\n const isFirstUserMessage = !useAppSelector(userMessageFindOne);\n\n const setOption = (val: string, sequence: number) => {\n dispatch(fillUserHistoryData({\n id: uuidV4(),\n sequence: 1,\n role: Roles.user,\n content: {\n sequence: 1, message: val, resend: false, sent: true, groupId: ''\n }\n }));\n dispatch(setOutgoing(val));\n if (isFirstUserMessage) {\n track({\n eventType: AllEvents.buttonClick + sequence,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n });\n }\n };\n\n const setMessage = (val: string) => {\n dispatch(fillUserHistoryData({\n id: uuidV4(),\n sequence: 1,\n role: Roles.user,\n content: {\n sequence: 1,\n message: val,\n resend: false,\n sent: true,\n groupId: ''\n }\n }));\n };\n\n return [...options].sort((a, b) => a.sequence - b.sequence).map(({ value, link, sequence, noStream }) => (\n link\n ? (\n \n )\n : (\n setMessage(value) : () => setOption(value, sequence)}\n e2e=\"option-button\"\n />\n )\n ));\n};\n\nexport default OptionList;\n","import React from 'react';\nimport Markdown from 'react-markdown';\n\nimport { Definition } from '../../config/enums';\nimport { useAppSelector } from '../../hooks';\nimport { AssistantProps } from '../../interfaces/component';\nimport { getChat, sortBySequence } from '../../store/slices/chat';\nimport { getMeta } from '../../store/slices/meta';\nimport { uuidV4 } from '../../utils';\nimport MarkdownLink from '../Markdown/link';\nimport { Iframe } from '../Video';\nimport OptionList from './options';\nimport { flickerEffect } from './variants';\n\nconst Assistant = ({ message, itemId }: AssistantProps) => {\n const { isStreaming } = useAppSelector(getChat);\n const { pd } = useAppSelector(getMeta);\n const isLast = useAppSelector((state) => state.chat.historyIds.length - 1 === state.chat.historyIds.indexOf(itemId));\n const { base: baseFlicker } = flickerEffect({ isTyping: isStreaming && isLast });\n const sortedContent = [...message.content].sort(sortBySequence);\n\n return (\n <>\n {sortedContent.map((it) => {\n if (it.type === Definition.text) {\n return (\n \n \n ; }\n }}\n >{it[it.type]}\n \n \n \n );\n }\n\n if (it.type === Definition.buttons && isLast) {\n return (\n
\n \n
\n );\n }\n\n if (it.type === Definition.video) {\n return (\n \n );\n }\n\n if (it.type === Definition.image) {\n return (\n \n );\n }\n\n if (it.type === Definition.payment) {\n return `${it[it.type]} ${pd.displayPlanPrice} ${pd.billingFrequencyTmsg}`;\n }\n\n if (it.type === Definition.email) {\n return it[it.type];\n }\n\n })}\n \n );\n};\n\nexport const MemoizedAssistant = React.memo(Assistant);\n\nexport default MemoizedAssistant;\n","import React from 'react';\n\nimport { Roles } from '../../config/enums';\nimport { useAppSelector } from '../../hooks';\nimport { UserMessageContent } from '../../interfaces';\nimport { uuidV4 } from '../../utils';\nimport { User } from '../Stream';\nimport { MemoizedAssistant } from './assistant';\nimport { streamBubble as variant } from './variants';\n\nconst StreamBubble = ({ itemId }: { itemId: string }) => {\n const record = useAppSelector((state) => state.chat.historyData[itemId]);\n\n return (record && (\n
\n {record.role === Roles.assistant\n ? (\n \n )\n :\n [...record.content].map((record: UserMessageContent) => )\n }\n
\n ));\n};\n\nexport const MemoizedStreamBubble = React.memo(StreamBubble);\nexport default MemoizedStreamBubble;\n","import { Profile } from '../../components/Profile';\nimport { ScreenOrientation } from '../../config/enums';\nimport { streamHead as variant } from './variants';\n\nexport const StreamHead = ({ titleTxt }: { titleTxt: string }) => {\n const { base, title } = variant();\n\n return (\n
\n {title &&
{titleTxt}
}\n \n
\n );\n};\n\nexport default StreamHead;\n","import { useAppSelector } from '../../hooks';\nimport { getConfig } from '../../store/slices/config';\nimport { formatDateByLocale, uuidV4 } from '../../utils';\nimport { MemoizedStreamBubble } from './bubble';\nimport { StreamHead } from './head';\nimport { streamBase, streamRow } from './variants';\n\nexport const StreamBase = () => {\n const { aiProfile } = useAppSelector(getConfig);\n const historyIds = useAppSelector((state) => state.chat.historyIds || []);\n const firstMessage = useAppSelector((state) => state.chat.historyData[historyIds[0]]);\n const { base, second, date } = streamBase();\n const { base: baseRow } = streamRow();\n const time = formatDateByLocale(firstMessage?.time || new Date().getTime());\n\n return (\n
\n
\n \n {
{time}
}\n {historyIds.map((id: string) => (\n \n \n
\n ))}\n
\n \n );\n};\n\nexport default StreamBase;\n","import { IconBtn } from '../../components/Button';\nimport { Roles } from '../../config/enums';\nimport { useAppDispatch } from '../../hooks';\nimport { UserProps } from '../../interfaces/component';\nimport { resendMessage } from '../../store/slices/chat';\nimport { streamBubble as variant } from './variants';\n\nexport const User = ({ record }: UserProps) => {\n const dispatch = useAppDispatch();\n const { action, separator } = variant({ type: Roles.user });\n\n const onResend = () => {\n dispatch(resendMessage(record));\n };\n\n return (\n
\n \n {record.message}\n \n {(record.resend && !record.sent) && (\n
\n onResend()}>\n \n \n \n \n \n
\n )}\n
\n );\n};\n\nexport default User;\n","import { useAppDispatch } from '../../hooks';\nimport { AppProps } from '../../interfaces/component';\nimport { setConfig, setPurpose, setSpecialUrls } from '../../store/slices/config';\nimport { setMeta } from '../../store/slices/meta';\nimport { LayoutBase, LayoutFoot,LayoutHead } from '../Layout';\nimport { StreamBase } from '../Stream';\n\nexport const AppBase = ({ config }: AppProps) => {\n const dispatch = useAppDispatch();\n dispatch(setMeta(config.meta));\n dispatch(setPurpose(config.app.purpose));\n dispatch(setSpecialUrls(config.specialUrls));\n dispatch(setConfig(config.app));\n\n return (\n }\n stream={}\n foot={}\n />\n );\n};\n\nexport default AppBase;\n","\"use strict\";\n\nexports.__esModule = true;\nexports.default = getStorage;\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction noop() {}\n\nvar noopStorage = {\n getItem: noop,\n setItem: noop,\n removeItem: noop\n};\n\nfunction hasStorage(storageType) {\n if ((typeof self === \"undefined\" ? \"undefined\" : _typeof(self)) !== 'object' || !(storageType in self)) {\n return false;\n }\n\n try {\n var storage = self[storageType];\n var testKey = \"redux-persist \".concat(storageType, \" test\");\n storage.setItem(testKey, 'test');\n storage.getItem(testKey);\n storage.removeItem(testKey);\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') console.warn(\"redux-persist \".concat(storageType, \" test failed, persistence will be disabled.\"));\n return false;\n }\n\n return true;\n}\n\nfunction getStorage(type) {\n var storageType = \"\".concat(type, \"Storage\");\n if (hasStorage(storageType)) return self[storageType];else {\n if (process.env.NODE_ENV !== 'production') {\n console.error(\"redux-persist failed to create sync storage. falling back to noop storage.\");\n }\n\n return noopStorage;\n }\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = createWebStorage;\n\nvar _getStorage = _interopRequireDefault(require(\"./getStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction createWebStorage(type) {\n var storage = (0, _getStorage.default)(type);\n return {\n getItem: function getItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.getItem(key));\n });\n },\n setItem: function setItem(key, item) {\n return new Promise(function (resolve, reject) {\n resolve(storage.setItem(key, item));\n });\n },\n removeItem: function removeItem(key) {\n return new Promise(function (resolve, reject) {\n resolve(storage.removeItem(key));\n });\n }\n };\n}","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _createWebStorage = _interopRequireDefault(require(\"./createWebStorage\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _default = (0, _createWebStorage.default)('local');\n\nexports.default = _default;","import { Middleware } from '@reduxjs/toolkit';\n\nimport { AllEvents, Roles } from '../config/enums';\nimport { STORING_CHECKER_INTERVAL } from '../config/env';\nimport { PaymentDataSetterProps } from '../interfaces';\nimport intent from '../services/intentions';\nimport { track } from '../services/tracking';\nimport { RootState } from '../store';\nimport {\n addPredefinedAssistantMessage,\n fillUserHistoryData,\n setOutgoing\n} from '../store/slices/chat';\nimport {\n setEmailError,\n setEmailSuccess,\n setIsEmailLoading,\n setLink,\n} from '../store/slices/intentions';\nimport { setMarketing, setPd } from '../store/slices/meta';\nimport { uuidV4 } from '../utils';\n\nexport const intentionsMiddleware: Middleware = (store) => (next) => {\n\n const setPaymentDataTranslationAccordingly = (data: PaymentDataSetterProps | string): PaymentDataSetterProps => {\n const { meta } = store.getState();\n const transformedData = {} as PaymentDataSetterProps;\n\n if (!meta.pd) {\n return transformedData;\n }\n\n if (typeof data === 'object' && 'billingOptionType' in data) {\n data.billingFrequencyTmsg =\n data.billingOptionType === 'one-time'\n ? meta.pd.oneTimer\n : meta.pd.subscriberBillingFrequency?.replace(\n '{1}',\n data.frequencyInMonths\n );\n data = { ...data, ...transformedData };\n return data;\n }\n\n return transformedData\n };\n\n intent.core.on(intent.type.emailSuccess, () => {\n const { meta, intentions } = store.getState();\n\n store.dispatch(setIsEmailLoading(false));\n store.dispatch(setEmailError(''));\n store.dispatch(\n fillUserHistoryData({\n id: uuidV4(),\n role: Roles.user,\n sequence: 1,\n content: {\n sequence: 1,\n message: intentions.email.current,\n resend: false,\n sent: true,\n groupId: '',\n },\n })\n );\n store.dispatch(setOutgoing(intentions.email.current));\n\n // DEV NOTE: setEmailSuccess this status is for us to know if mail is validated in the endpoint\n store.dispatch(setEmailSuccess(true));\n track({\n eventType: AllEvents.emailEntered,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current,\n });\n });\n\n intent.core.on(intent.type.emailError, (response) => {\n const { meta, intentions, config } = store.getState();\n const { tm716, tm526, tm715, tm505 } = config.translations;\n\n store.dispatch(setIsEmailLoading(false));\n\n if (response.status === 409) {\n store.dispatch(addPredefinedAssistantMessage({\n content: tm716,\n buttons: [\n { sequence: 1, id: 'opt-1', text: tm526, value: tm526, link: response.data.buttonLink, noStream: true },\n { sequence: 2, id: 'opt-2', text: tm715, value: tm715, link: '', noStream: true }\n ]\n }));\n\n track({\n eventType: AllEvents.emailExist,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current,\n });\n return;\n }\n\n if (response.status === 422) {\n store.dispatch(setEmailError(response.errors.email[0] || tm505));\n\n track({\n eventType: AllEvents.emailWrong,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current,\n });\n }\n });\n\n dataIntervalChecker('marketing', store, setMarketing);\n dataIntervalChecker(\n '__pd',\n store,\n setPd,\n setPaymentDataTranslationAccordingly\n );\n\n return (action) => {\n if (setLink.match(action) && action.payload) {\n const { meta, intentions } = store.getState();\n\n track({\n eventType: AllEvents.linkProvided,\n systemType: meta.systemType,\n utmParams: meta.marketing.lastUtmParams,\n customerUuid: meta.cid,\n email: intentions.email.current\n });\n }\n next(action);\n };\n};\n\nconst dataIntervalChecker = (\n key: string,\n store: RootState,\n setValue: (data: PaymentDataSetterProps | string) => void,\n transformData?: (\n data: string | PaymentDataSetterProps\n ) => PaymentDataSetterProps\n) => {\n const intervalId = setInterval(() => {\n let storedItem: string | PaymentDataSetterProps =\n localStorage.getItem(key) || '';\n\n try {\n storedItem = JSON.parse(storedItem);\n } catch (e) {\n storedItem = localStorage.getItem(key) || '';\n }\n\n if (transformData && storedItem) {\n storedItem = transformData(storedItem);\n }\n\n if (transformData && storedItem) {\n store.dispatch(setValue(storedItem));\n clearInterval(intervalId);\n }\n }, STORING_CHECKER_INTERVAL);\n};\n\nexport default intentionsMiddleware;\n","import { Middleware } from '@reduxjs/toolkit';\nimport { io, Socket } from 'socket.io-client';\n\nimport { config as socketConfig, Events } from '../config';\nimport { QueryParams, Roles } from '../config/enums';\nimport { CHAT_FINISHED_TIMESTAMP, DEFAULT_CLOSE_HREF, SCROLL_STOP_CLASS, SUPPORT_PURPOSE } from '../config/env';\nimport {\n AssistantHistoryInitialMessage,\n AssistantRecord,\n ClientMessage,\n SocketHistoryRecord,\n UserMessageContent\n} from '../interfaces'\nimport {\n fillAssistantHistoryData,\n fillInitialMessage,\n hideResendIcon,\n resendMessage,\n resetError,\n resetHistory,\n resetIsLoading,\n resetOutgoing,\n setClosed,\n setConnected,\n setError,\n setExistingHistory,\n setIsLoading,\n setIsStreaming,\n setOutgoing,\n setTypingTimeoutExpired,\n showResendIcon,\n} from '../store/slices/chat';\nimport { setConfig } from '../store/slices/config';\nimport { setRegion } from '../store/slices/meta';\nimport { getQueryParam } from '../utils';\n\nlet socket: Socket;\n\nconst chatMiddleware: Middleware = (store) => (next) => (action) => {\n const { meta, chat, config } = store.getState();\n\n const onError = () => {\n const { config } = store.getState();\n store.dispatch(resetIsLoading());\n store.dispatch(setError(config.translations.error));\n };\n\n const dispatchRetry = () => {\n store.dispatch(showResendIcon({ itemId: chat.historyIds.pop() }));\n onError();\n };\n\n const handleMessageSending = (data: ClientMessage): void => {\n if (data.role === Roles.user) {\n store.dispatch(setIsLoading());\n }\n\n if (socket && socket.connected && data.message.trim() !== '') {\n socket.emit(Events.chat, { time: new Date().getTime(), ...data }, withTimeout(dispatchRetry));\n store.dispatch(resetError());\n return;\n }\n\n dispatchRetry();\n };\n\n const handleMessageResending = (data: { itemId: string, message: string }) => {\n store.dispatch(hideResendIcon(data));\n store.dispatch(setIsLoading());\n\n const onResendError = () => {\n const { config } = store.getState();\n store.dispatch(showResendIcon(data));\n store.dispatch(resetIsLoading());\n store.dispatch(setError(config.translations.error));\n };\n\n if (socket?.connected && data.message.trim() !== '') {\n socket.volatile.emit(\n Events.chat,\n {\n role: Roles.user,\n message: data.message,\n term: getQueryParam(QueryParams.chat),\n user_id: meta.cid,\n region: meta.region,\n },\n withTimeout(onResendError)\n );\n store.dispatch(resetError());\n } else {\n onResendError();\n }\n };\n\n if (setOutgoing.match(action)) {\n handleMessageSending({\n role: Roles.user,\n message: action.payload,\n term: getQueryParam(QueryParams.chat),\n user_id: meta.cid,\n region: meta.region,\n messageId: [...chat.historyIds].pop(),\n });\n }\n\n if (setClosed.match(action)) {\n const chatBotContainer = document.querySelector('#chatbot-container');\n\n if (document.body && chatBotContainer && config.purpose !== SUPPORT_PURPOSE) {\n chatBotContainer.innerHTML = '';\n document.body.classList.remove(SCROLL_STOP_CLASS);\n }\n\n localStorage.setItem(CHAT_FINISHED_TIMESTAMP, new Date().getTime().toString());\n\n if (socket) {\n socket.close();\n }\n\n window.location.href = config.close.href || DEFAULT_CLOSE_HREF;\n }\n\n if (setTypingTimeoutExpired.match(action) && action.payload) {\n const messageId = [...chat.historyIds].pop();\n const lastMessage = chat.historyData[messageId].content.map(({ message }: { message: UserMessageContent }) => message).join('\\n');\n\n if (lastMessage.trim() !== '') {\n handleMessageSending({\n role: Roles.user,\n message: lastMessage,\n term: getQueryParam(QueryParams.chat),\n user_id: meta.cid,\n region: meta.region,\n messageId\n });\n }\n }\n\n if (resendMessage.match(action)) {\n handleMessageResending(action.payload);\n }\n\n if (!setConfig.match(action)) {\n return next(action);\n }\n\n store.dispatch(setIsLoading());\n\n // @ts-expect-error this is working currently\n socket = io.connect(action.payload.chatUrl, { query: `cid=${meta.cid}`, ...socketConfig });\n\n socket.on(Events.connect, () => {\n const { meta } = store.getState();\n socket.sendBuffer = [];\n socket.emit(Events.chatHistory, { user_id: meta.cid, region: meta.region, term: getQueryParam(QueryParams.chat) });\n store.dispatch(setConnected(true));\n });\n\n socket.on(Events.chatHistory, ({ history: servedHistory, errors, region }\n : { history: Array, errors: string[], region: string }) => {\n\n store.dispatch(resetIsLoading());\n store.dispatch(setIsStreaming(false));\n store.dispatch(setRegion(region));\n const { config, meta } = store.getState();\n\n if (errors.length) {\n store.dispatch(setError(errors[0]));\n return;\n }\n\n if (servedHistory.length) {\n store.dispatch(setExistingHistory(servedHistory));\n return\n }\n\n store.dispatch(resetHistory());\n store.dispatch(setIsLoading());\n let interval = 0;\n config.aiProfile.initialMessage\n .forEach((element: AssistantHistoryInitialMessage, index: number, arr: Array) => {\n interval += 1000;\n\n setTimeout(() => {\n store.dispatch(fillInitialMessage(element));\n\n if (arr.length === index + 1) {\n config.aiProfile.initialMessage.forEach((message: SocketHistoryRecord) =>\n handleMessageSending({\n role: Roles.assistant,\n term: getQueryParam(QueryParams.chat),\n user_id: meta.cid,\n message: JSON.stringify(message.content),\n messageId: message.id,\n region: meta.region,\n }));\n store.dispatch(resetIsLoading());\n }\n\n }, interval);\n\n });\n });\n\n socket.on(Events.streamStart, ({ id }: { id: string }) => {\n store.dispatch(setIsStreaming(true));\n store.dispatch(resetIsLoading());\n store.dispatch(resetOutgoing());\n store.dispatch(resetError());\n store.dispatch(fillAssistantHistoryData({ id }));\n });\n\n socket.on(Events.streamData, (data: AssistantRecord\n & {\n id: string,\n errors: Array\n }) => {\n\n store.dispatch(fillAssistantHistoryData({\n id: data.id,\n sequence: data.sequence,\n content: {\n type: data.type,\n [data.type]: data[data.type],\n sequence: data.sequence\n }\n }));\n\n if (data.errors?.length && !chat.error) {\n store.dispatch(setError(data.errors[0]));\n }\n });\n\n socket.on(Events.streamEnd, () => {\n store.dispatch(setIsStreaming(false));\n });\n\n socket.on(Events.streamError, onError);\n socket.on(Events.error, onError);\n\n socket.on(Events.disconnect, () => {\n store.dispatch(setConnected(false));\n });\n\n next(action);\n};\n\nconst withTimeout = (onTimeout: () => void, timeout: number = 5000) => {\n let called = false;\n const timer = setTimeout(() => {\n if (called) {\n return;\n }\n called = true;\n onTimeout();\n }, timeout);\n\n return () => {\n if (called) {\n return;\n }\n called = true;\n clearTimeout(timer);\n };\n};\n\nexport default chatMiddleware;\n","import { combineReducers, configureStore } from '@reduxjs/toolkit';\nimport { persistReducer,persistStore } from 'redux-persist';\nimport storage from 'redux-persist/lib/storage';\n\nimport intentionsMiddleware from '../middleware/intentions';\nimport chatMiddleware from '../middleware/socket';\nimport chatReducer from './slices/chat';\nimport configReducer from './slices/config';\nimport intentionsReducer from './slices/intentions';\nimport metaReducer from './slices/meta';\n\nconst persistConfig = {\n key: 'root',\n storage,\n whitelist: ['chat', 'meta', 'config'],\n};\n\nexport const store = configureStore({\n reducer: persistReducer(persistConfig, combineReducers({\n meta: metaReducer,\n config: configReducer,\n chat: chatReducer,\n intentions: intentionsReducer,\n })),\n middleware: (getDefaultMiddleware) => getDefaultMiddleware({ serializableCheck: false })\n .concat(chatMiddleware, intentionsMiddleware),\n});\n\n\nexport type AppDispatch = typeof store.dispatch\nexport type RootState = ReturnType\n\nexport const persistor = persistStore(store);\n","import './assets/css/index.css';\n\nimport ReactDOM from 'react-dom/client';\nimport { Provider } from 'react-redux';\nimport { PersistGate } from 'redux-persist/integration/react';\n\nimport { AppBase } from './components/AppBase';\nimport { SCROLL_STOP_CLASS } from './config/env';\nimport { persistor, store } from './store';\n\nexport { intent } from './services/intentions';\n\nlet initiated = false;\n\nexport const ReactBotClient = (config) => {\n if (initiated) {\n return;\n }\n initiated = true;\n\n ReactDOM\n .createRoot(config.root)\n .render(\n \n \n \n \n \n );\n\n document.body.classList.add(SCROLL_STOP_CLASS);\n};\n\nexport default ReactBotClient;\n"],"names":["base64Js","byteLength","toByteArray","fromByteArray","lookup","revLookup","Arr","code","i","len","getLens","b64","validLen","placeHoldersLen","lens","_byteLength","tmp","arr","curByte","tripletToBase64","num","encodeChunk","uint8","start","end","output","extraBytes","parts","maxChunkLength","len2","ieee754","buffer","offset","isLE","mLen","nBytes","e","m","eLen","eMax","eBias","nBits","d","s","value","c","rt","base64","require$$0","require$$1","customInspectSymbol","exports","Buffer","SlowBuffer","K_MAX_LENGTH","typedArraySupport","proto","createBuffer","length","buf","arg","encodingOrOffset","allocUnsafe","from","fromString","fromArrayView","isInstance","fromArrayBuffer","valueOf","b","fromObject","assertSize","size","alloc","fill","encoding","checked","string","actual","fromArrayLike","array","arrayView","copy","byteOffset","obj","numberIsNaN","a","x","y","list","pos","mustMatch","loweredCase","utf8ToBytes","base64ToBytes","slowToString","hexSlice","utf8Slice","asciiSlice","latin1Slice","base64Slice","utf16leSlice","swap","n","str","max","target","thisStart","thisEnd","thisCopy","targetCopy","bidirectionalIndexOf","val","dir","arrayIndexOf","indexSize","arrLength","valLength","read","foundIndex","found","j","hexWrite","remaining","strLen","parsed","utf8Write","blitBuffer","asciiWrite","asciiToBytes","base64Write","ucs2Write","utf16leToBytes","res","firstByte","codePoint","bytesPerSequence","secondByte","thirdByte","fourthByte","tempCodePoint","decodeCodePointsArray","MAX_ARGUMENTS_LENGTH","codePoints","ret","out","hexSliceLookupTable","bytes","newBuf","checkOffset","ext","noAssert","mul","defineBigIntMethod","validateNumber","first","last","boundsError","lo","hi","checkInt","min","maxBytes","wrtBigUInt64LE","checkIntBI","wrtBigUInt64BE","limit","sub","checkIEEE754","writeFloat","littleEndian","writeDouble","targetStart","errors","E","sym","getMessage","Base","name","range","input","msg","received","addNumericalSeparator","checkBounds","type","INVALID_BASE64_RE","base64clean","units","leadSurrogate","byteArray","src","dst","alphabet","table","i16","fn","BufferBigIntNotDefined","process","browserModule","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","defaultClearTimeout","runTimeout","fun","runClearTimeout","marker","queue","draining","currentQueue","queueIndex","cleanUpNextTick","drainQueue","timeout","args","Item","noop","r","l","f","k","p","q","g","h","reactJsxRuntime_production_min","React","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_OFFSCREEN_TYPE","MAYBE_ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","ReactSharedInternals","error","format","_len2","_key2","printWarning","level","ReactDebugCurrentFrame","stack","argsWithFormat","item","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","isValidElementType","getWrappedName","outerType","innerType","wrapperName","displayName","functionName","getContextName","getComponentNameFromType","context","provider","outerName","lazyComponent","payload","init","assign","disabledDepth","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","disabledLog","disableLogs","props","reenableLogs","ReactCurrentDispatcher","prefix","describeBuiltInComponentFrame","source","ownerFn","match","reentry","componentFrameCache","PossiblyWeakMap","describeNativeComponentFrame","construct","frame","control","previousPrepareStackTrace","previousDispatcher","Fake","sample","sampleLines","controlLines","_frame","syntheticFrame","describeFunctionComponentFrame","shouldConstruct","Component","prototype","describeUnknownElementTypeFrameInDEV","hasOwnProperty","loggedTypeFailures","setCurrentlyValidatingElement","element","owner","checkPropTypes","typeSpecs","values","location","componentName","has","typeSpecName","error$1","err","ex","isArrayImpl","isArray","typeName","hasToStringTag","willCoercionThrow","testStringCoercion","checkKeyStringCoercion","ReactCurrentOwner","RESERVED_PROPS","specialPropKeyWarningShown","specialPropRefWarningShown","didWarnAboutStringRefs","hasValidRef","config","getter","hasValidKey","warnIfStringRefCannotBeAutoConverted","self","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","key","ref","jsxDEV","maybeKey","propName","defaultProps","ReactCurrentOwner$1","ReactDebugCurrentFrame$1","setCurrentlyValidatingElement$1","propTypesMisspellWarningShown","isValidElement","object","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","fileName","lineNumber","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","info","parentName","validateExplicitKey","currentComponentErrorInfo","childOwner","validateChildKeys","node","child","iteratorFn","iterator","step","validatePropTypes","propTypes","_name","validateFragmentProps","fragment","keys","jsxWithValidation","isStaticChildren","validType","sourceInfo","typeString","children","jsxWithValidationStatic","jsxWithValidationDynamic","jsx","jsxs","reactJsxRuntime_development","jsxRuntimeModule","client","o","_typeof","_classCallCheck","instance","Constructor","_defineProperties","descriptor","_createClass","protoProps","staticProps","_possibleConstructorReturn","call","_assertThisInitialized","_getPrototypeOf","_inherits","subClass","superClass","_setPrototypeOf","_defineProperty","PersistGate","_PureComponent","_getPrototypeOf2","_this","_len","_key","persistor","_persistor$getState","bootstrapped","PureComponent","Definition","ScreenOrientation","QueryParams","AllEvents","Intentions","Roles","Events","Theme","getQueryParam","param","formatDateByLocaleOptions","formatDateByLocale","inputDate","options","uuidV4","uuid","meta","chat","intentions","configSlice","createSlice","initialState","state","getConfig","setConfig","resetConfig","setTheme","resetTheme","setDevToolsStatus","resetDevToolsStatus","togglePluginMode","setTranslations","setPurpose","setSpecialUrls","getMeta","setMeta","resetMeta","setMarketing","setPd","setRegion","useAppDispatch","useDispatch","useAppSelector","useSelector","useWindowSize","setSize","useState","useLayoutEffect","updateSize","useHeadControls","theme","close","cid","systemType","marketing","u","t","twJoin","index","argument","resolvedValue","toValue","mix","CLASS_PART_SEPARATOR","createClassUtils","classMap","createClassMap","conflictingClassGroups","_config$conflictingCl","conflictingClassGroupModifiers","getClassGroupId","className","classParts","getGroupRecursive","getGroupIdForArbitraryProperty","getConflictingClassGroupIds","classGroupId","hasPostfixModifier","conflicts","classPartObject","currentClassPart","nextClassPartObject","classGroupFromNextClassPart","classRest","_a","_ref","validator","arbitraryPropertyRegex","arbitraryPropertyClassName","property","prefixedClassGroupEntries","getPrefixedClassGroupEntries","_ref2","classGroup","processClassesRecursively","classDefinition","classPartObjectToEdit","getPart","isThemeGetter","_ref3","path","currentClassPartObject","pathPart","func","classGroupEntries","_ref4","prefixedClassGroup","_ref5","createLruCache","maxCacheSize","cacheSize","cache","previousCache","update","IMPORTANT_MODIFIER","createSplitModifiers","separator","isSeparatorSingleCharacter","firstSeparatorCharacter","separatorLength","modifiers","bracketDepth","modifierStart","postfixModifierPosition","currentCharacter","baseClassNameWithImportantModifier","hasImportantModifier","baseClassName","maybePostfixModifierPosition","sortModifiers","sortedModifiers","unsortedModifiers","modifier","isArbitraryVariant","createConfigUtils","SPLIT_CLASSES_REGEX","mergeClassList","classList","configUtils","splitModifiers","classGroupsInConflict","originalClassName","_splitModifiers","variantModifier","modifierId","classId","group","createTailwindMerge","createConfig","cacheGet","cacheSet","functionToCall","initTailwindMerge","firstCreateConfig","restCreateConfig","previousConfig","createConfigCurrent","tailwindMerge","cachedResult","result","fromTheme","themeGetter","arbitraryValueRegex","fractionRegex","stringLengths","tshirtUnitRegex","lengthUnitRegex","shadowRegex","isLength","isNumber","isArbitraryLength","getIsArbitraryValue","isLengthOnly","isArbitrarySize","isNever","isArbitraryPosition","isArbitraryUrl","isUrl","isArbitraryNumber","isPercent","isInteger","isIntegerOnly","isArbitraryValue","isAny","isTshirtSize","isArbitraryShadow","isShadow","label","testValue","getDefaultConfig","colors","spacing","blur","brightness","borderColor","borderRadius","borderSpacing","borderWidth","contrast","grayscale","hueRotate","invert","gap","gradientColorStops","gradientColorStopPositions","inset","margin","opacity","padding","saturate","scale","sepia","skew","space","translate","getOverscroll","getOverflow","getSpacingWithAutoAndArbitrary","getSpacingWithArbitrary","getLengthWithEmpty","getNumberWithAutoAndArbitrary","getPositions","getLineStyles","getBlendModes","getAlign","getZeroAndEmpty","getBreaks","getNumber","getNumberAndArbitrary","mergeConfigs","baseConfig","configExtension","mergePropertyRecursively","overrideTypes","baseObject","mergeKey","mergeValue","nextKey","extendTailwindMerge","twMerge","se","_","N","M","F","w","b$1","Z","U","C","V","W","S","g$1","A","O","$","h$1","v","K","z","a$1","J","L","ae","T","P","D","G","H","I","ee","te","layoutBase","tv","layoutHead","layoutFoot","LayoutBase","head","stream","foot","isPluginMode","base","wrapper","variant","data","overlay","Overlay","track","eventType","utmParams","customerUuid","email","phone","event","payment","loader","PaymentButton","text","onClick","e2e","disabled","currentEmail","btn","useEffect","CloseButton","variants","PaymentFooter","icon","PaymentHead","translations","left","leftTop","bottom","right","price","Link","forwardRef","link","href","Link$1","PaymentLoader","texts","title","inner","dots","dotsIn","progressCheckmark","panelTitle","spinningTexts","filmContainer","film","txt","PaymentScene","onClose","displayPlanPrice","billingFrequencyTmsg","streamBase","streamHead","streamRow","flickerEffect","streamBubble","ellipsis","Ellipsis","dotFirst","dotSecond","dotThird","CHAT_SEEN_KEY","LINK_CLICKED_KEY","CHAT_FINISHED_TIMESTAMP","CID","STORING_CHECKER_INTERVAL","SCROLL_STOP_CLASS","SUPPORT_PURPOSE","CLOSE_AFTER_TIMEOUT","DEFAULT_CLOSE_HREF","TYPING_TIMEOUT","getUnifiedSequence","current","incoming","record","hasMatch","_b","Y","Q","nn","X","rn","tn","en","on","R","B","un","an","produce","draft","id","prev","dataType","content","belongsTo","el","getChat","userMessageFindOne","historyId","sortBySequence","setOutgoing","resetOutgoing","setExistingHistory","addPredefinedAssistantMessage","setIsLoading","resetIsLoading","setLastGroupPointer","setTypingTimeoutExpired","setError","resetError","setConnected","setClosed","hideResendIcon","showResendIcon","resendMessage","setIsStreaming","fillAssistantHistoryData","fillUserHistoryData","resetHistory","fillInitialMessage","chatReducer","intentionsSlice","getEmailIntentions","getPaymentIntentions","setEmailSuccess","setIsPaymentSuccessful","setPaymentFormVisibility","setEmailError","setIsEmailLoading","setIsPaymentButtonVisible","setPaymentIntentError","setEmail","setLink","intentionsReducer","useFootProps","pd","purpose","specialUrls","isLoading","isStreaming","streamError","store","storedLink","emailError","isPaymentFormVisible","paymentIntentError","paymentSuccess","historyData","historyIds","lastMsgId","lastMsg","isLastAssistantMsg","noButtonChoices","hasPaymentIntent","hasEmailIntent","message","isResponseFormVisible","ReflectApply","receiver","ReflectOwnKeys","ProcessEmitWarning","warning","NumberIsNaN","EventEmitter","eventsModule","once","defaultMaxListeners","checkListener","listener","_getMaxListeners","that","doError","events","er","handler","listeners","arrayClone","_addListener","prepend","existing","onceWrapper","_onceWrap","wrapped","position","originalListener","spliceOne","_listeners","unwrap","evlistener","unwrapListeners","emitter","listenerCount","resolve","reject","errorListener","resolver","eventTargetAgnosticAddListener","addErrorHandlerIfEventEmitter","flags","wrapListener","intent","basic","Btn","IconBtn","outlined","Input","onChange","onKeyUp","placeholder","spin","EmailForm","dispatch","button","setCurrentEmail","inputElement","useRef","handleInputChange","currentValue","handleFormSubmit","ResponseForm","connected","response","setCurrentResponse","timerId","setTimerId","groupId","setTimerToSendMessage","currentId","LayoutFoot","footState","ctaAfterPayButton","setDisabled","setIsPaymentContainerVisible","isVisible","onClosePaymentForm","onPaymentSuccess","onError","initializePaymentForm","onClickCta","profile","Profile","orientation","minimized","aiProfile","avatar","role","imgWrapper","LayoutHead","headState","constructLink","hasQueryParams","url","search","searchParams","MarkdownLink","properties","extractVideoCode","videoUrl","Iframe","setIframeVisibility","videoCode","handleVideoClick","OptionList","isFirstUserMessage","setOption","sequence","setMessage","noStream","Assistant","itemId","isLast","baseFlicker","sortedContent","Fragment","it","Markdown","_c","_d","MemoizedAssistant","StreamBubble","User","MemoizedStreamBubble","StreamHead","titleTxt","StreamBase","firstMessage","second","date","baseRow","time","action","onResend","AppBase","getStorage_1","getStorage$1","getStorage","noopStorage","hasStorage","storageType","storage","testKey","createWebStorage_1","createWebStorage$1","createWebStorage","_getStorage","_interopRequireDefault","default_1","_createWebStorage","_default","intentionsMiddleware","next","setPaymentDataTranslationAccordingly","transformedData","tm716","tm526","tm715","tm505","dataIntervalChecker","setValue","transformData","intervalId","storedItem","socket","chatMiddleware","dispatchRetry","handleMessageSending","withTimeout","handleMessageResending","onResendError","chatBotContainer","messageId","lastMessage","io","socketConfig","servedHistory","region","interval","onTimeout","called","timer","persistConfig","configureStore","persistReducer","combineReducers","metaReducer","configReducer","getDefaultMiddleware","persistStore","initiated","ReactBotClient","ReactDOM","Provider"],"mappings":"qoBAEAA,GAAA,WAAqBC,GACrBD,GAAA,YAAsBE,GACtBF,GAAA,cAAwBG,GAOxB,QALIC,GAAS,CAAE,EACXC,GAAY,CAAE,EACdC,GAAM,OAAO,WAAe,IAAc,WAAa,MAEvDC,GAAO,mEACFC,GAAI,EAAGC,GAAMF,GAAK,OAAQC,GAAIC,GAAK,EAAED,GAC5CJ,GAAOI,EAAC,EAAID,GAAKC,EAAC,EAClBH,GAAUE,GAAK,WAAWC,EAAC,CAAC,EAAIA,GAKlCH,GAAU,IAAI,WAAW,CAAC,CAAC,EAAI,GAC/BA,GAAU,IAAI,WAAW,CAAC,CAAC,EAAI,GAE/B,SAASK,GAASC,EAAK,CACrB,IAAIF,EAAME,EAAI,OAEd,GAAIF,EAAM,EAAI,EACZ,MAAM,IAAI,MAAM,gDAAgD,EAKlE,IAAIG,EAAWD,EAAI,QAAQ,GAAG,EAC1BC,IAAa,KAAIA,EAAWH,GAEhC,IAAII,EAAkBD,IAAaH,EAC/B,EACA,EAAKG,EAAW,EAEpB,MAAO,CAACA,EAAUC,CAAe,CACnC,CAGA,SAASZ,GAAYU,EAAK,CACxB,IAAIG,EAAOJ,GAAQC,CAAG,EAClBC,EAAWE,EAAK,CAAC,EACjBD,EAAkBC,EAAK,CAAC,EAC5B,OAASF,EAAWC,GAAmB,EAAI,EAAKA,CAClD,CAEA,SAASE,GAAaJ,EAAKC,EAAUC,EAAiB,CACpD,OAASD,EAAWC,GAAmB,EAAI,EAAKA,CAClD,CAEA,SAASX,GAAaS,EAAK,CACzB,IAAIK,EACAF,EAAOJ,GAAQC,CAAG,EAClBC,EAAWE,EAAK,CAAC,EACjBD,EAAkBC,EAAK,CAAC,EAExBG,EAAM,IAAIX,GA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C,OAAQ,OAAQ,QAAQ,CACtC,EAEa9J,GAAQwM,GAAAA,eAAe,CAClC,QAASC,GAAAA,eAAeF,GAAeG,mBAAgB,CACrD,KAAMC,GACN,OAAQC,GACR,KAAMjO,GACN,WAAYa,EAAA,CACb,CAAC,EACF,WAAaqN,GAAyBA,EAAqB,CAAE,kBAAmB,EAAA,CAAO,EACpF,OAAOvB,GAAgBd,EAAoB,CAChD,CAAC,EAMYxlB,GAAY8nB,gBAAa9M,EAAK,ECpB3C,IAAI+M,GAAY,GAEH,MAAAC,GAAkBptB,GAAW,CACpCmtB,KAGQA,GAAA,GAGTE,GAAA,WAAWrtB,EAAO,IAAI,EACtB,OACEsD,EAAA,IAAAgqB,GAAA,SAAA,CAAS,MAAAlN,GACR,SAAA9c,EAAA,IAACwB,GAAY,CAAA,UAAAM,GACX,SAAC9B,EAAA,IAAAqmB,GAAA,CAAQ,OAAS3pB,EAAO,aAAgB,CAAA,CAC3C,CAAA,EACF,CAAA,EAGK,SAAA,KAAK,UAAU,IAAIwb,EAAiB,EAC/C","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,49,53,78,79,80]} \ No newline at end of file diff --git a/src/assets/css/index.css b/src/assets/css/index.css index 9384a6c..fc8e00c 100644 --- a/src/assets/css/index.css +++ b/src/assets/css/index.css @@ -41,3 +41,61 @@ p { user-select: none; } } + +.light { + --lumina: #f0f2f5; + --whisper: #ffffff; + --seraph: #21bb5a; + --ember: #cacadb; + --enigma: #ffae19; + --glaze: #21bb5a; + --glazeText: #151226; + --glazeBg: #ffffff; + --sigma: #0f0e1e; + --zeta: #0f0e1e; + --status: #21bb5a; + --loader: #f6f8fa; + --dots: #21bb5a; + --neon: #019aff; + --pale-dots: #cacadb; + --iota-dots: #21bb5a; + --overlay: rgba(15, 14, 30, 0.2); + --beta: #f6f8fa; + --ze: 43, 49, 57; + --zephyr-100: rgb(var(--ze)); + --zephyr-200: rgba(var(--ze), 0.1); + --zephyr-600: rgba(var(--ze), 0.6); + --zephyr-800: rgba(var(--ze), 0.8); + --card: 0 12px 24px 0 rgba(43, 49, 57, 0.06), 0 4px 8px 0 rgba(43, 55, 70, 0.04); + --loading-dots: -24px 0 rgba(201, 201, 201, 0.5), 24px 0 rgba(201, 201, 201, 0.5); + --density-different: 500; +} + +.dark { + --lumina: #252239; + --whisper: #151226; + --seraph: #f53373; + --ember: #cacadb; + --enigma: #ffae19; + --glaze: #b3bac6; + --glazeText: #151226; + --glazeBg: #b3bac6; + --sigma: #0f0e1e; + --zeta: #ffffff; + --status: #21bb5a; + --loader: #252239; + --dots: #f53374; + --neon: #019aff; + --pale-dots: #ffffff; + --iota-dots: #21bb5a; + --overlay: rgba(15, 14, 30, 0.9); + --beta: #25223; + --ze: 255, 255, 255; + --zephyr-100: rgb(var(--ze)); + --zephyr-200: rgba(var(--ze), 0.1); + --zephyr-600: rgba(var(--ze), 0.6); + --zephyr-800: rgba(var(--ze), 0.8); + --card: 0 12px 24px 0 rgba(0, 0, 0, 0.12), 0 4px 8px 0 rgba(0, 0, 0, 0.1); + --loading-dots: -24px 0 rgba(255, 255, 255, 0.5), 24px 0 rgba(255, 255, 255, 0.5); + --density-different: 400; +} diff --git a/src/components/Button/basic.tsx b/src/components/Button/basic.tsx index 1edd5a4..da9c116 100644 --- a/src/components/Button/basic.tsx +++ b/src/components/Button/basic.tsx @@ -1,11 +1,8 @@ -import { useAppSelector } from '../../hooks'; import { ButtonProps } from '../../interfaces/component'; -import { getConfig } from '../../store/slices/config'; import { basic as variant } from './variants'; export const Btn = ({ text = '', onClick, e2e }: ButtonProps) => { - const { themeId: theme } = useAppSelector(getConfig); - const { base } = variant({ theme }); + const { base } = variant(); return (