ed-widget 0.1.5-1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -0
- package/dist/assets/favicon.ico +0 -0
- package/dist/ed-widget.js +959 -0
- package/dist/en-CrndO_9T.mjs +24 -0
- package/dist/no-DTbedTib.mjs +24 -0
- package/npm/assets/favicon.ico +0 -0
- package/npm/ed-widget.js +758 -0
- package/npm/en-CrndO_9T.mjs +24 -0
- package/npm/no-DTbedTib.mjs +24 -0
- package/package.json +85 -0
package/npm/ed-widget.js
ADDED
|
@@ -0,0 +1,758 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@import"https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Inter:ital,wght@0,100..900;1,100..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.ed-pointer-events-none{pointer-events:none!important}.ed-fixed{position:fixed!important}.ed-absolute{position:absolute!important}.ed-relative{position:relative!important}.ed-sticky{position:sticky!important}.ed-inset-0{top:0!important;right:0!important;bottom:0!important;left:0!important}.ed-inset-2{top:.5rem!important;right:.5rem!important;bottom:.5rem!important;left:.5rem!important}.-ed-right-0\\.5{right:-.125rem!important}.-ed-top-3{top:-.75rem!important}.ed-bottom-0{bottom:0!important}.ed-bottom-12{bottom:3rem!important}.ed-bottom-28{bottom:7rem!important}.ed-bottom-32{bottom:8rem!important}.ed-bottom-5{bottom:1.25rem!important}.ed-bottom-\\[-4px\\]{bottom:-4px!important}.ed-left-0{left:0!important}.ed-left-1\\/2{left:50%!important}.ed-left-\\[-4px\\]{left:-4px!important}.ed-right-0{right:0!important}.ed-right-12{right:3rem!important}.ed-right-16{right:4rem!important}.ed-right-5{right:1.25rem!important}.ed-right-\\[-4px\\]{right:-4px!important}.ed-top-0{top:0!important}.ed-top-1\\/2{top:50%!important}.ed-top-5{top:1.25rem!important}.ed-top-9{top:2.25rem!important}.ed-top-\\[-4px\\]{top:-4px!important}.ed-z-10{z-index:10!important}.ed-z-\\[1000\\]{z-index:1000!important}.ed-z-\\[1100\\]{z-index:1100!important}.ed-z-\\[9999999\\]{z-index:9999999!important}.ed-z-\\[9999\\]{z-index:9999!important}.ed--mx-5{margin-left:-1.25rem!important;margin-right:-1.25rem!important}.ed-mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.ed-mx-3{margin-left:.75rem!important;margin-right:.75rem!important}.ed-my-10{margin-top:2.5rem!important;margin-bottom:2.5rem!important}.ed-my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.ed-my-4{margin-top:1rem!important;margin-bottom:1rem!important}.ed-mb-1{margin-bottom:.25rem!important}.ed-mb-2{margin-bottom:.5rem!important}.ed-mb-4{margin-bottom:1rem!important}.ed-mb-5{margin-bottom:1.25rem!important}.ed-mb-6{margin-bottom:1.5rem!important}.ed-ml-1{margin-left:.25rem!important}.ed-ml-16{margin-left:4rem!important}.ed-ml-2{margin-left:.5rem!important}.ed-ml-3{margin-left:.75rem!important}.ed-ml-auto{margin-left:auto!important}.ed-mr-1{margin-right:.25rem!important}.ed-mt-1\\.5{margin-top:.375rem!important}.ed-mt-2{margin-top:.5rem!important}.ed-mt-2\\.5{margin-top:.625rem!important}.ed-mt-3{margin-top:.75rem!important}.ed-mt-4{margin-top:1rem!important}.ed-mt-5{margin-top:1.25rem!important}.ed-line-clamp-1{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:1!important}.ed-line-clamp-2{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important}.ed-block{display:block!important}.ed-inline-block{display:inline-block!important}.ed-inline{display:inline!important}.ed-flex{display:flex!important}.ed-inline-flex{display:inline-flex!important}.ed-grid{display:grid!important}.ed-hidden{display:none!important}.ed-size-1{width:.25rem!important;height:.25rem!important}.ed-size-1\\.5{width:.375rem!important;height:.375rem!important}.ed-size-10{width:2.5rem!important;height:2.5rem!important}.ed-size-12{width:3rem!important;height:3rem!important}.ed-size-4{width:1rem!important;height:1rem!important}.ed-size-5{width:1.25rem!important;height:1.25rem!important}.ed-size-7{width:1.75rem!important;height:1.75rem!important}.ed-size-9{width:2.25rem!important;height:2.25rem!important}.ed-size-full{width:100%!important;height:100%!important}.ed-h-0{height:0px!important}.ed-h-10{height:2.5rem!important}.ed-h-2{height:.5rem!important}.ed-h-2\\/3{height:66.666667%!important}.ed-h-20{height:5rem!important}.ed-h-4{height:1rem!important}.ed-h-5{height:1.25rem!important}.ed-h-7{height:1.75rem!important}.ed-h-8{height:2rem!important}.ed-h-\\[41px\\]{height:41px!important}.ed-h-\\[500px\\]{height:500px!important}.ed-h-\\[50px\\]{height:50px!important}.ed-h-\\[calc\\(100vh-200px\\)\\]{height:calc(100vh - 200px)!important}.ed-h-\\[calc\\(100vh-25rem\\)\\]{height:calc(100vh - 25rem)!important}.ed-h-dvh{height:100dvh!important}.ed-h-full{height:100%!important}.ed-h-max{height:-moz-max-content!important;height:max-content!important}.ed-max-h-0{max-height:0px!important}.ed-max-h-96{max-height:24rem!important}.ed-max-h-\\[90vh\\]{max-height:90vh!important}.ed-max-h-full{max-height:100%!important}.ed-min-h-\\[24px\\]{min-height:24px!important}.ed-min-h-min{min-height:-moz-min-content!important;min-height:min-content!important}.ed-w-0{width:0px!important}.ed-w-10{width:2.5rem!important}.ed-w-11\\/12{width:91.666667%!important}.ed-w-2{width:.5rem!important}.ed-w-4{width:1rem!important}.ed-w-5{width:1.25rem!important}.ed-w-7{width:1.75rem!important}.ed-w-8{width:2rem!important}.ed-w-\\[50px\\]{width:50px!important}.ed-w-full{width:100%!important}.ed-w-max{width:-moz-max-content!important;width:max-content!important}.ed-w-min{width:-moz-min-content!important;width:min-content!important}.ed-w-px{width:1px!important}.ed-w-screen{width:100vw!important}.ed-min-w-0{min-width:0px!important}.ed-min-w-\\[16rem\\]{min-width:16rem!important}.ed-min-w-\\[3rem\\]{min-width:3rem!important}.ed-max-w-\\[100px\\]{max-width:100px!important}.ed-max-w-\\[140px\\]{max-width:140px!important}.ed-max-w-\\[150px\\]{max-width:150px!important}.ed-max-w-\\[85\\%\\]{max-width:85%!important}.ed-max-w-\\[87\\%\\]{max-width:87%!important}.ed-max-w-\\[90vw\\]{max-width:90vw!important}.ed-max-w-full{max-width:100%!important}.ed-flex-1{flex:1 1 0%!important}.ed-flex-shrink-0,.ed-shrink-0{flex-shrink:0!important}.ed-origin-center{transform-origin:center!important}.-ed-translate-x-1\\/2,.ed--translate-x-1\\/2{--tw-translate-x: -50% !important;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))!important}.ed--translate-x-2{--tw-translate-x: -.5rem !important;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))!important}.ed--translate-y-1\\/2{--tw-translate-y: -50% !important;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))!important}.ed-rotate-0{--tw-rotate: 0deg !important;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))!important}.ed-rotate-\\[360deg\\]{--tw-rotate: 360deg !important;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))!important}.ed-scale-0{--tw-scale-x: 0 !important;--tw-scale-y: 0 !important;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))!important}.ed-scale-100{--tw-scale-x: 1 !important;--tw-scale-y: 1 !important;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))!important}.ed-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}@keyframes ed-bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.ed-animate-bounce{animation:ed-bounce 1s infinite!important}@keyframes ed-spin{to{transform:rotate(360deg)}}.ed-animate-spin{animation:ed-spin 1s linear infinite!important}.ed-cursor-not-allowed{cursor:not-allowed!important}.ed-cursor-pointer{cursor:pointer!important}.ed-select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.ed-resize-none{resize:none!important}.ed-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ed-flex-col{flex-direction:column!important}.ed-flex-wrap{flex-wrap:wrap!important}.ed-flex-nowrap{flex-wrap:nowrap!important}.ed-items-start{align-items:flex-start!important}.ed-items-center{align-items:center!important}.ed-justify-start{justify-content:flex-start!important}.ed-justify-end{justify-content:flex-end!important}.ed-justify-center{justify-content:center!important}.ed-justify-between{justify-content:space-between!important}.ed-gap-0\\.5{gap:.125rem!important}.ed-gap-1{gap:.25rem!important}.ed-gap-1\\.5{gap:.375rem!important}.ed-gap-2{gap:.5rem!important}.ed-gap-2\\.5{gap:.625rem!important}.ed-gap-3{gap:.75rem!important}.ed-gap-4{gap:1rem!important}.ed-space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.5rem * var(--tw-space-x-reverse))!important;margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))!important}.ed-space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.5rem * var(--tw-space-y-reverse))!important}.ed-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.75rem * var(--tw-space-y-reverse))!important}.ed-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1rem * var(--tw-space-y-reverse))!important}.ed-space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))!important}.ed-overflow-hidden{overflow:hidden!important}.ed-overflow-x-auto{overflow-x:auto!important}.ed-overflow-y-auto{overflow-y:auto!important}.ed-truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.ed-whitespace-nowrap{white-space:nowrap!important}.ed-whitespace-pre-line{white-space:pre-line!important}.ed-break-words{overflow-wrap:break-word!important}.\\!ed-rounded,.ed-rounded{border-radius:.25rem!important}.ed-rounded-3xl{border-radius:1.5rem!important}.ed-rounded-\\[10px\\]{border-radius:10px!important}.ed-rounded-\\[20px\\]{border-radius:20px!important}.ed-rounded-\\[8px\\]{border-radius:8px!important}.ed-rounded-full{border-radius:9999px!important}.ed-rounded-lg{border-radius:.5rem!important}.ed-rounded-md{border-radius:.375rem!important}.ed-rounded-l-lg{border-top-left-radius:.5rem!important;border-bottom-left-radius:.5rem!important}.ed-rounded-r-lg{border-top-right-radius:.5rem!important;border-bottom-right-radius:.5rem!important}.ed-border{border-width:1px!important}.ed-border-0{border-width:0px!important}.ed-border-2{border-width:2px!important}.ed-border-4{border-width:4px!important}.ed-border-y{border-top-width:1px!important;border-bottom-width:1px!important}.ed-border-b{border-bottom-width:1px!important}.ed-border-l{border-left-width:1px!important}.ed-border-solid{border-style:solid!important}.ed-border-dashed{border-style:dashed!important}.ed-border-\\[\\#96D4AB\\]{--tw-border-opacity: 1 !important;border-color:rgb(150 212 171 / var(--tw-border-opacity, 1))!important}.ed-border-\\[\\#A4D1F1\\]{--tw-border-opacity: 1 !important;border-color:rgb(164 209 241 / var(--tw-border-opacity, 1))!important}.ed-border-blue-100{--tw-border-opacity: 1 !important;border-color:rgb(219 234 254 / var(--tw-border-opacity, 1))!important}.ed-border-border-light{--tw-border-opacity: 1 !important;border-color:rgb(216 224 237 / var(--tw-border-opacity, 1))!important}.ed-border-brand{border-color:var(--ed-brand-color)!important}.ed-border-disabled{--tw-border-opacity: 1 !important;border-color:rgb(248 249 251 / var(--tw-border-opacity, 1))!important}.ed-border-gray{--tw-border-opacity: 1 !important;border-color:rgb(216 224 237 / var(--tw-border-opacity, 1))!important}.ed-border-red{--tw-border-opacity: 1 !important;border-color:rgb(254 71 91 / var(--tw-border-opacity, 1))!important}.ed-border-x-transparent{border-left-color:transparent!important;border-right-color:transparent!important}.ed-border-y-transparent{border-top-color:transparent!important;border-bottom-color:transparent!important}.ed-border-b-transparent{border-bottom-color:transparent!important}.ed-border-l-transparent{border-left-color:transparent!important}.ed-border-r-transparent{border-right-color:transparent!important}.ed-border-t-transparent{border-top-color:transparent!important}.ed-bg-\\[\\#DBF8E2\\]{--tw-bg-opacity: 1 !important;background-color:rgb(219 248 226 / var(--tw-bg-opacity, 1))!important}.ed-bg-\\[\\#DDF2FF\\]{--tw-bg-opacity: 1 !important;background-color:rgb(221 242 255 / var(--tw-bg-opacity, 1))!important}.ed-bg-black\\/15{background-color:#00000026!important}.ed-bg-black\\/50{background-color:#00000080!important}.ed-bg-black\\/70{background-color:#000000b3!important}.ed-bg-black\\/80{background-color:#000c!important}.ed-bg-blue-50{--tw-bg-opacity: 1 !important;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))!important}.ed-bg-blue-light{--tw-bg-opacity: 1 !important;background-color:rgb(227 242 253 / var(--tw-bg-opacity, 1))!important}.ed-bg-border{--tw-bg-opacity: 1 !important;background-color:rgb(183 183 183 / var(--tw-bg-opacity, 1))!important}.ed-bg-brand{background-color:var(--ed-brand-color)!important}.ed-bg-brand-light{--tw-bg-opacity: 1 !important;background-color:rgb(230 246 252 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray{--tw-bg-opacity: 1 !important;background-color:rgb(243 244 248 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray-400{--tw-bg-opacity: 1 !important;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray-900{--tw-bg-opacity: 1 !important;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray-deep{--tw-bg-opacity: 1 !important;background-color:rgb(143 153 173 / var(--tw-bg-opacity, 1))!important}.ed-bg-gray-light{--tw-bg-opacity: 1 !important;background-color:rgb(238 240 243 / var(--tw-bg-opacity, 1))!important}.ed-bg-green{--tw-bg-opacity: 1 !important;background-color:rgb(12 170 27 / var(--tw-bg-opacity, 1))!important}.ed-bg-red{--tw-bg-opacity: 1 !important;background-color:rgb(254 71 91 / var(--tw-bg-opacity, 1))!important}.ed-bg-transparent{background-color:transparent!important}.ed-bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.ed-bg-white-light{--tw-bg-opacity: 1 !important;background-color:rgb(250 251 252 / var(--tw-bg-opacity, 1))!important}.ed-bg-white\\/30{background-color:#ffffff4d!important}.ed-bg-yellow{--tw-bg-opacity: 1 !important;background-color:rgb(255 171 0 / var(--tw-bg-opacity, 1))!important}.ed-bg-none{background-image:none!important}.ed-fill-border-regular{fill:#797979!important}.ed-fill-brand{fill:var(--ed-brand-color)!important}.ed-fill-white{fill:#fff!important}.ed-stroke-border-regular{stroke:#797979!important}.ed-stroke-brand{stroke:var(--ed-brand-color)!important}.ed-object-contain{-o-object-fit:contain!important;object-fit:contain!important}.ed-object-cover{-o-object-fit:cover!important;object-fit:cover!important}.ed-p-0{padding:0!important}.ed-p-0\\.5{padding:.125rem!important}.ed-p-1{padding:.25rem!important}.ed-p-1\\.5{padding:.375rem!important}.ed-p-2{padding:.5rem!important}.ed-p-2\\.5{padding:.625rem!important}.ed-p-3{padding:.75rem!important}.ed-p-4{padding:1rem!important}.ed-p-5{padding:1.25rem!important}.ed-px-2{padding-left:.5rem!important;padding-right:.5rem!important}.ed-px-2\\.5{padding-left:.625rem!important;padding-right:.625rem!important}.ed-px-3{padding-left:.75rem!important;padding-right:.75rem!important}.ed-px-4{padding-left:1rem!important;padding-right:1rem!important}.ed-px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}.ed-px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.ed-px-7{padding-left:1.75rem!important;padding-right:1.75rem!important}.ed-px-\\[25px\\]{padding-left:25px!important;padding-right:25px!important}.ed-py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.ed-py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.ed-py-2\\.5{padding-top:.625rem!important;padding-bottom:.625rem!important}.ed-py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.ed-py-4{padding-top:1rem!important;padding-bottom:1rem!important}.ed-py-5{padding-top:1.25rem!important;padding-bottom:1.25rem!important}.ed-py-6{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.ed-py-8{padding-top:2rem!important;padding-bottom:2rem!important}.ed-py-\\[9px\\]{padding-top:9px!important;padding-bottom:9px!important}.ed-pb-1{padding-bottom:.25rem!important}.ed-pb-2{padding-bottom:.5rem!important}.ed-pb-5{padding-bottom:1.25rem!important}.ed-pl-16{padding-left:4rem!important}.ed-pt-1{padding-top:.25rem!important}.ed-pt-2\\.5{padding-top:.625rem!important}.ed-pt-3{padding-top:.75rem!important}.ed-pt-5{padding-top:1.25rem!important}.ed-text-left{text-align:left!important}.ed-text-center{text-align:center!important}.ed-text-12{font-size:12px!important}.ed-text-14{font-size:14px!important}.ed-text-16{font-size:16px!important}.ed-text-18{font-size:18px!important}.ed-text-24{font-size:24px!important}.ed-text-\\[13px\\]{font-size:13px!important}.ed-text-sm{font-size:.875rem!important;line-height:1.25rem!important}.ed-font-bold{font-weight:700!important}.ed-font-medium{font-weight:500!important}.ed-font-normal{font-weight:400!important}.ed-font-semibold{font-weight:600!important}.ed-lowercase{text-transform:lowercase!important}.ed-leading-none{line-height:1!important}.ed-text-\\[\\#0E9342\\]{--tw-text-opacity: 1 !important;color:rgb(14 147 66 / var(--tw-text-opacity, 1))!important}.ed-text-\\[\\#1173C8\\]{--tw-text-opacity: 1 !important;color:rgb(17 115 200 / var(--tw-text-opacity, 1))!important}.ed-text-blue-600{--tw-text-opacity: 1 !important;color:rgb(37 99 235 / var(--tw-text-opacity, 1))!important}.ed-text-border{--tw-text-opacity: 1 !important;color:rgb(183 183 183 / var(--tw-text-opacity, 1))!important}.ed-text-border-dark{--tw-text-opacity: 1 !important;color:rgb(59 59 59 / var(--tw-text-opacity, 1))!important}.ed-text-border-regular{--tw-text-opacity: 1 !important;color:rgb(121 121 121 / var(--tw-text-opacity, 1))!important}.ed-text-brand{color:var(--ed-brand-color)!important}.ed-text-brand-link{--tw-text-opacity: 1 !important;color:rgb(0 78 146 / var(--tw-text-opacity, 1))!important}.ed-text-dark{--tw-text-opacity: 1 !important;color:rgb(33 33 78 / var(--tw-text-opacity, 1))!important}.ed-text-gray-500{--tw-text-opacity: 1 !important;color:rgb(107 114 128 / var(--tw-text-opacity, 1))!important}.ed-text-gray-900{--tw-text-opacity: 1 !important;color:rgb(17 24 39 / var(--tw-text-opacity, 1))!important}.ed-text-red{--tw-text-opacity: 1 !important;color:rgb(254 71 91 / var(--tw-text-opacity, 1))!important}.ed-text-regular{--tw-text-opacity: 1 !important;color:rgb(92 93 118 / var(--tw-text-opacity, 1))!important}.ed-text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.ed-underline{text-decoration-line:underline!important}.ed-opacity-0{opacity:0!important}.ed-opacity-100{opacity:1!important}.ed-opacity-25{opacity:.25!important}.ed-opacity-50{opacity:.5!important}.ed-opacity-75{opacity:.75!important}.ed-shadow-\\[0_-8px_10px_rgba\\(0\\,0\\,0\\,0\\.02\\)\\]{--tw-shadow: 0 -8px 10px rgba(0,0,0,.02) !important;--tw-shadow-colored: 0 -8px 10px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.ed-shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.ed-outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.ed-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-all{transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-opacity{transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-transition-transform{transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.ed-delay-150{transition-delay:.15s!important}.ed-delay-75{transition-delay:75ms!important}.ed-duration-200{transition-duration:.2s!important}.ed-duration-300{transition-duration:.3s!important}.ed-duration-500{transition-duration:.5s!important}.ed-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}:root{--ed-brand-color: #00a1e0;--ed-brand-link-color: #004e92;--ed-border-light: #d8e0ed;--ed-border: #b7b7b7;--ed-font-montserrat: "Montserrat";--ed-main-font: "Poppins"}.ed-scope{font-family:var(--ed-main-font)}.ed-scope .btn_hover_color{position:relative}.ed-scope .btn_hover_color:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;transition:.3s ease}.ed-scope .btn_hover_color:hover:before{background:#0003}.ed-no-scrollbar::-webkit-scrollbar{display:none}.ed-no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.ed-scope .ant-tooltip{z-index:9999999!important}.ed-scope .ant-tooltip-inner{size:12px!important;font-weight:500!important;color:#b7b7b7!important;font-family:var(--font-montserrat);background-color:#fff!important;box-shadow:0 0 15px #0000000f}.ed-scope .ant-tooltip-arrow{display:none!important}.ed-article-group:hover .ed-article-title{text-decoration:underline}.ed-article-group:hover .ed-external-icon{opacity:1;transition:opacity .3s ease-in-out}.ed-category-card:hover{box-shadow:0 0 15px #0000000f}.ed-category-card:hover .ed-category-title{color:var(--ed-brand-link-color)}.ed-category-card:hover .ed-category-desc{color:#3b3b3b}.ed-category-card:hover .ed-category-count{color:#797979}.ed-category-card:hover .ed-chevron-wrapper{opacity:1;transform:translate(.5rem);transition:all .3s ease}.ed-article-button:hover{background-color:#fafbfc}.ed-article-button:hover .ed-article-title{color:var(--ed-brand-link-color)}.ed-article-button:hover .ed-chevron-wrapper{opacity:1;transform:translate(.5rem);transition:all .3s ease}.ed-article-row-button:hover{background-color:#fafbfc}.ed-article-row-button:hover .ed-article-title{color:var(--ed-brand-link-color)}.ed-article-row-button:hover .ed-chevron-wrapper{opacity:1;transform:translate(.5rem);transition:opacity .3s ease,transform .3s ease}.custom-children{display:none;transition:all;transition-duration:.5s}.custom-wrapper:hover .custom-children{display:block}.hover\\:ed-size-14:hover{width:3.5rem!important;height:3.5rem!important}.hover\\:ed-bg-dark\\/15:hover{background-color:#21214e26!important}.hover\\:ed-bg-gray-50:hover{--tw-bg-opacity: 1 !important;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))!important}.hover\\:ed-bg-white-light:hover{--tw-bg-opacity: 1 !important;background-color:rgb(250 251 252 / var(--tw-bg-opacity, 1))!important}.hover\\:ed-text-border-dark:hover{--tw-text-opacity: 1 !important;color:rgb(59 59 59 / var(--tw-text-opacity, 1))!important}.hover\\:ed-opacity-90:hover{opacity:.9!important}.focus\\:ed-outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}.disabled\\:ed-cursor-not-allowed:disabled{cursor:not-allowed!important}.disabled\\:ed-bg-brand:disabled{background-color:var(--ed-brand-color)!important}.disabled\\:ed-opacity-50:disabled{opacity:.5!important}@media(min-width:768px){.md\\:ed-bottom-24{bottom:6rem!important}.md\\:ed-right-6{right:1.5rem!important}.md\\:ed-h-\\[80vh\\]{height:80vh!important}.md\\:ed-max-h-\\[704px\\]{max-height:704px!important}.md\\:ed-w-\\[400px\\]{width:400px!important}.md\\:ed-max-w-\\[85\\%\\]{max-width:85%!important}.md\\:ed-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.md\\:ed-rounded-\\[10px\\]{border-radius:10px!important}.md\\:ed-rounded-b-\\[10px\\]{border-bottom-right-radius:10px!important;border-bottom-left-radius:10px!important}.md\\:ed-rounded-t-\\[10px\\]{border-top-left-radius:10px!important;border-top-right-radius:10px!important}}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
+
(function(kn,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react"),require("react/jsx-runtime"),require("react-dom/client"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react/jsx-runtime","react-dom/client","react-dom"],R):(kn=typeof globalThis<"u"?globalThis:kn||self,R(kn.EasyDeskChatWidget={},kn.React,kn.ReactJsxRuntime,kn.ReactDOMClient,kn.ReactDOM))})(this,(function(kn,R,E,bb,Nh){"use strict";var BJ=Object.defineProperty;var HJ=(kn,R,E)=>R in kn?BJ(kn,R,{enumerable:!0,configurable:!0,writable:!0,value:E}):kn[R]=E;var ae=(kn,R,E)=>HJ(kn,typeof R!="symbol"?R+"":R,E);var d4;function w9(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const L=w9(R),Eb=!1;function di(t){try{return t()}catch{}}const Ih=di(()=>globalThis)||di(()=>window)||di(()=>self)||di(()=>global)||di(function(){return di.constructor("return this")()}),Ph="4.1.6",Sb=new Map;function wb(t){const e=Sb.get(t)||1;return Sb.set(t,e+1),`${t}:${e}:${Math.random().toString(36).slice(2)}`}function _9(t,e=0){const n=wb("stringifyForDisplay");return JSON.stringify(t,(r,i)=>i===void 0?n:i,e).split(JSON.stringify(n)).join("<undefined>")}const _b="Invariant Violation";class Mh extends Error{constructor(e=_b){super(e),this.name=_b,Object.setPrototypeOf(this,Mh.prototype)}}const Cb=["debug","log","warn","error","silent"];let C9=Cb.indexOf("silent");function Xe(t,...e){if(!t)throw Br(...e)}function au(t){return function(e,...n){if(Cb.indexOf(t)>=C9){const r=console[t]||console.log;if(typeof e=="number"){const i=e;e=Ab(i),e||(e=kb(i,n),n=[])}r(e,...n)}}}Xe.debug=au("debug"),Xe.log=au("log"),Xe.warn=au("warn"),Xe.error=au("error");function Br(t,...e){return new Mh(Ab(t,e)||kb(t,e))}const xb=Symbol.for("ApolloErrorMessageHandler_"+Ph);function Lh(t){if(typeof t=="string")return t;try{return _9(t,2).slice(0,1e3)}catch{return"<non-serializable>"}}function Ab(t,e=[]){if(t)return Ih[xb]&&Ih[xb](t,e.map(Lh))}function kb(t,e=[]){if(t)return typeof t=="string"?e.reduce((n,r)=>n.replace(/%[sdfo]/,Lh(r)),t):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:Ph,message:t,args:e.map(Lh)}))}`}const Tb=Symbol.for("__APOLLO_CONTEXT__");function Fh(){Xe("createContext"in L,37);let t=L.createContext[Tb];return t||(Object.defineProperty(L.createContext,Tb,{value:t=L.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t}const x9=({client:t,children:e})=>{const n=Fh(),r=L.useContext(n),i=L.useMemo(()=>({...r,client:t||r.client}),[r,t]);return Xe(i.client,38),L.createElement(n.Provider,{value:i},e)};function Xo(t){const e=L.useContext(Fh()),n=t||e.client;return Xe(!!n,28),n}const{toString:Ob,hasOwnProperty:A9}=Object.prototype,Rb=Function.prototype.toString,jh=new Map;function ht(t,e){try{return Dh(t,e)}finally{jh.clear()}}function Dh(t,e){if(t===e)return!0;const n=Ob.call(t),r=Ob.call(e);if(n!==r)return!1;switch(n){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(Ib(t,e))return!0;const i=Nb(t),o=Nb(e),a=i.length;if(a!==o.length)return!1;for(let s=0;s<a;++s)if(!A9.call(e,i[s]))return!1;for(let s=0;s<a;++s){const c=i[s];if(!Dh(t[c],e[c]))return!1}return!0}case"[object Error]":return t.name===e.name&&t.message===e.message;case"[object Number]":if(t!==t)return e!==e;case"[object Boolean]":case"[object Date]":return+t==+e;case"[object RegExp]":case"[object String]":return t==`${e}`;case"[object Map]":case"[object Set]":{if(t.size!==e.size)return!1;if(Ib(t,e))return!0;const i=t.entries(),o=n==="[object Map]";for(;;){const a=i.next();if(a.done)break;const[s,c]=a.value;if(!e.has(s)||o&&!Dh(c,e.get(s)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),e=new Uint8Array(e);case"[object DataView]":{let i=t.byteLength;if(i===e.byteLength)for(;i--&&t[i]===e[i];);return i===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const i=Rb.call(t);return i!==Rb.call(e)?!1:!O9(i,T9)}}return!1}function Nb(t){return Object.keys(t).filter(k9,t)}function k9(t){return this[t]!==void 0}const T9="{ [native code] }";function O9(t,e){const n=t.length-e.length;return n>=0&&t.indexOf(e,n)===n}function Ib(t,e){let n=jh.get(t);if(n){if(n.has(e))return!0}else jh.set(t,n=new Set);return n.add(e),!1}function R9(t,e){if(!!!t)throw new Error(e)}const Pb={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},N9=new Set(Object.keys(Pb));function Mb(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&N9.has(e)}var $o;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})($o||($o={}));var vt;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",t.TYPE_COORDINATE="TypeCoordinate",t.MEMBER_COORDINATE="MemberCoordinate",t.ARGUMENT_COORDINATE="ArgumentCoordinate",t.DIRECTIVE_COORDINATE="DirectiveCoordinate",t.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(vt||(vt={}));function Lb(t){return t===9||t===32}function I9(t,e){const n=t.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,o=r.length>1&&r.slice(1).every(m=>m.length===0||Lb(m.charCodeAt(0))),a=n.endsWith('\\"""'),s=t.endsWith('"')&&!a,c=t.endsWith("\\"),u=s||c,d=!i||t.length>70||u||o||a;let h="";const p=i&&Lb(t.charCodeAt(0));return(d&&!p||o)&&(h+=`
|
|
3
|
+
`),h+=n,(d||u)&&(h+=`
|
|
4
|
+
`),'"""'+h+'"""'}const P9=10,Fb=2;function M9(t){return su(t,[])}function su(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return L9(t,e);default:return String(t)}}function L9(t,e){if(t===null)return"null";if(e.includes(t))return"[Circular]";const n=[...e,t];if(F9(t)){const r=t.toJSON();if(r!==t)return typeof r=="string"?r:su(r,n)}else if(Array.isArray(t))return D9(t,n);return j9(t,n)}function F9(t){return typeof t.toJSON=="function"}function j9(t,e){const n=Object.entries(t);return n.length===0?"{}":e.length>Fb?"["+V9(t)+"]":"{ "+n.map(([i,o])=>i+": "+su(o,e)).join(", ")+" }"}function D9(t,e){if(t.length===0)return"[]";if(e.length>Fb)return"[Array]";const n=Math.min(P9,t.length),r=t.length-n,i=[];for(let o=0;o<n;++o)i.push(su(t[o],e));return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function V9(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const n=t.constructor.name;if(typeof n=="string"&&n!=="")return n}return e}function U9(t){return`"${t.replace(z9,B9)}"`}const z9=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function B9(t){return H9[t.charCodeAt(0)]}const H9=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],Vh=Object.freeze({});function Ti(t,e,n=Pb){const r=new Map;for(const w of Object.values(vt))r.set(w,W9(e,w));let i,o=Array.isArray(t),a=[t],s=-1,c=[],u=t,d,h;const p=[],m=[];do{s++;const w=s===a.length,C=w&&c.length!==0;if(w){if(d=m.length===0?void 0:p[p.length-1],u=h,h=m.pop(),C)if(o){u=u.slice();let x=0;for(const[S,A]of c){const T=S-x;A===null?(u.splice(T,1),x++):u[T]=A}}else{u={...u};for(const[x,S]of c)u[x]=S}s=i.index,a=i.keys,c=i.edits,o=i.inArray,i=i.prev}else if(h){if(d=o?s:a[s],u=h[d],u==null)continue;p.push(d)}let k;if(!Array.isArray(u)){var v,b;Mb(u)||R9(!1,`Invalid AST Node: ${M9(u)}.`);const x=w?(v=r.get(u.kind))===null||v===void 0?void 0:v.leave:(b=r.get(u.kind))===null||b===void 0?void 0:b.enter;if(k=x==null?void 0:x.call(e,u,d,h,p,m),k===Vh)break;if(k===!1){if(!w){p.pop();continue}}else if(k!==void 0&&(c.push([d,k]),!w))if(Mb(k))u=k;else{p.pop();continue}}if(k===void 0&&C&&c.push([d,u]),w)p.pop();else{var y;i={inArray:o,index:s,keys:a,edits:c,prev:i},o=Array.isArray(u),a=o?u:(y=n[u.kind])!==null&&y!==void 0?y:[],s=-1,c=[],h&&m.push(h),h=u}}while(i!==void 0);return c.length!==0?c[c.length-1][1]:t}function W9(t,e){const n=t[e];return typeof n=="object"?n:typeof n=="function"?{enter:n,leave:void 0}:{enter:t.enter,leave:t.leave}}function G9(t){return Ti(t,K9)}const Y9=80,K9={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>ke(t.definitions,`
|
|
5
|
+
|
|
6
|
+
`)},OperationDefinition:{leave(t){const e=Uh(t.variableDefinitions)?Ye(`(
|
|
7
|
+
`,ke(t.variableDefinitions,`
|
|
8
|
+
`),`
|
|
9
|
+
)`):Ye("(",ke(t.variableDefinitions,", "),")"),n=Ye("",t.description,`
|
|
10
|
+
`)+ke([t.operation,ke([t.name,e]),ke(t.directives," ")]," ");return(n==="query"?"":n+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:n,directives:r,description:i})=>Ye("",i,`
|
|
11
|
+
`)+t+": "+e+Ye(" = ",n)+Ye(" ",ke(r," "))},SelectionSet:{leave:({selections:t})=>hi(t)},Field:{leave({alias:t,name:e,arguments:n,directives:r,selectionSet:i}){const o=Ye("",t,": ")+e;let a=o+Ye("(",ke(n,", "),")");return a.length>Y9&&(a=o+Ye(`(
|
|
12
|
+
`,lu(ke(n,`
|
|
13
|
+
`)),`
|
|
14
|
+
)`)),ke([a,ke(r," "),i]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+Ye(" ",ke(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:n})=>ke(["...",Ye("on ",t),ke(e," "),n]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:n,directives:r,selectionSet:i,description:o})=>Ye("",o,`
|
|
15
|
+
`)+`fragment ${t}${Ye("(",ke(n,", "),")")} on ${e} ${Ye("",ke(r," ")," ")}`+i},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?I9(t):U9(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+ke(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+ke(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+Ye("(",ke(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:n})=>Ye("",t,`
|
|
16
|
+
`)+ke(["schema",ke(e," "),hi(n)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:n})=>Ye("",t,`
|
|
17
|
+
`)+ke(["scalar",e,ke(n," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:r,fields:i})=>Ye("",t,`
|
|
18
|
+
`)+ke(["type",e,Ye("implements ",ke(n," & ")),ke(r," "),hi(i)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:n,type:r,directives:i})=>Ye("",t,`
|
|
19
|
+
`)+e+(Uh(n)?Ye(`(
|
|
20
|
+
`,lu(ke(n,`
|
|
21
|
+
`)),`
|
|
22
|
+
)`):Ye("(",ke(n,", "),")"))+": "+r+Ye(" ",ke(i," "))},InputValueDefinition:{leave:({description:t,name:e,type:n,defaultValue:r,directives:i})=>Ye("",t,`
|
|
23
|
+
`)+ke([e+": "+n,Ye("= ",r),ke(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:n,directives:r,fields:i})=>Ye("",t,`
|
|
24
|
+
`)+ke(["interface",e,Ye("implements ",ke(n," & ")),ke(r," "),hi(i)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:n,types:r})=>Ye("",t,`
|
|
25
|
+
`)+ke(["union",e,ke(n," "),Ye("= ",ke(r," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:n,values:r})=>Ye("",t,`
|
|
26
|
+
`)+ke(["enum",e,ke(n," "),hi(r)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:n})=>Ye("",t,`
|
|
27
|
+
`)+ke([e,ke(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:n,fields:r})=>Ye("",t,`
|
|
28
|
+
`)+ke(["input",e,ke(n," "),hi(r)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:n,repeatable:r,locations:i})=>Ye("",t,`
|
|
29
|
+
`)+"directive @"+e+(Uh(n)?Ye(`(
|
|
30
|
+
`,lu(ke(n,`
|
|
31
|
+
`)),`
|
|
32
|
+
)`):Ye("(",ke(n,", "),")"))+(r?" repeatable":"")+" on "+ke(i," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>ke(["extend schema",ke(t," "),hi(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>ke(["extend scalar",t,ke(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:n,fields:r})=>ke(["extend type",t,Ye("implements ",ke(e," & ")),ke(n," "),hi(r)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:n,fields:r})=>ke(["extend interface",t,Ye("implements ",ke(e," & ")),ke(n," "),hi(r)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:n})=>ke(["extend union",t,ke(e," "),Ye("= ",ke(n," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:n})=>ke(["extend enum",t,ke(e," "),hi(n)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:n})=>ke(["extend input",t,ke(e," "),hi(n)]," ")},TypeCoordinate:{leave:({name:t})=>t},MemberCoordinate:{leave:({name:t,memberName:e})=>ke([t,Ye(".",e)])},ArgumentCoordinate:{leave:({name:t,fieldName:e,argumentName:n})=>ke([t,Ye(".",e),Ye("(",n,":)")])},DirectiveCoordinate:{leave:({name:t})=>ke(["@",t])},DirectiveArgumentCoordinate:{leave:({name:t,argumentName:e})=>ke(["@",t,Ye("(",e,":)")])}};function ke(t,e=""){var n;return(n=t==null?void 0:t.filter(r=>r).join(e))!==null&&n!==void 0?n:""}function hi(t){return Ye(`{
|
|
33
|
+
`,lu(ke(t,`
|
|
34
|
+
`)),`
|
|
35
|
+
}`)}function Ye(t,e,n=""){return e!=null&&e!==""?t+e+n:""}function lu(t){return Ye(" ",t.replace(/\n/g,`
|
|
36
|
+
`))}function Uh(t){var e;return(e=t==null?void 0:t.some(n=>n.includes(`
|
|
37
|
+
`)))!==null&&e!==void 0?e:!1}var zh=function(t,e){return zh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},zh(t,e)};function Hr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");zh(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function Z9(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(d){try{u(r.next(d))}catch(h){a(h)}}function c(d){try{u(r.throw(d))}catch(h){a(h)}}function u(d){d.done?o(d.value):i(d.value).then(s,c)}u((r=r.apply(t,e||[])).next())})}function jb(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(d){return c([u,d])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=e.call(t,n)}catch(d){u=[6,d],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Fa(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ja(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function Da(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function Va(t){return this instanceof Va?(this.v=t,this):new Va(t)}function Q9(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(m){return function(v){return Promise.resolve(v).then(m,h)}}function s(m,v){r[m]&&(i[m]=function(b){return new Promise(function(y,w){o.push([m,b,y,w])>1||c(m,b)})},v&&(i[m]=v(i[m])))}function c(m,v){try{u(r[m](v))}catch(b){p(o[0][3],b)}}function u(m){m.value instanceof Va?Promise.resolve(m.value.v).then(d,h):p(o[0][2],m)}function d(m){c("next",m)}function h(m){c("throw",m)}function p(m,v){m(v),o.shift(),o.length&&c(o[0][0],o[0][1])}}function q9(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof Fa=="function"?Fa(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(a){return new Promise(function(s,c){a=t[o](a),i(s,c,a.done,a.value)})}}function i(o,a,s,c){Promise.resolve(c).then(function(u){o({value:u,done:s})},a)}}typeof SuppressedError=="function"&&SuppressedError;function on(t){return typeof t=="function"}function Bh(t){var e=function(r){Error.call(r),r.stack=new Error().stack},n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Hh=Bh(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
38
|
+
`+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
|
|
39
|
+
`):"",this.name="UnsubscriptionError",this.errors=n}});function cu(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var gl=(function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,n,r,i,o;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=Fa(a),c=s.next();!c.done;c=s.next()){var u=c.value;u.remove(this)}}catch(b){e={error:b}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}else a.remove(this);var d=this.initialTeardown;if(on(d))try{d()}catch(b){o=b instanceof Hh?b.errors:[b]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var p=Fa(h),m=p.next();!m.done;m=p.next()){var v=m.value;try{Ub(v)}catch(b){o=o??[],b instanceof Hh?o=Da(Da([],ja(o)),ja(b.errors)):o.push(b)}}}catch(b){r={error:b}}finally{try{m&&!m.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}}if(o)throw new Hh(o)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)Ub(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}},t.prototype._hasParent=function(e){var n=this._parentage;return n===e||Array.isArray(n)&&n.includes(e)},t.prototype._addParent=function(e){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e},t.prototype._removeParent=function(e){var n=this._parentage;n===e?this._parentage=null:Array.isArray(n)&&cu(n,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&cu(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=(function(){var e=new t;return e.closed=!0,e})(),t})(),Db=gl.EMPTY;function Vb(t){return t instanceof gl||t&&"closed"in t&&on(t.remove)&&on(t.add)&&on(t.unsubscribe)}function Ub(t){on(t)?t():t.unsubscribe()}var J9={Promise:void 0},X9={setTimeout:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,Da([t,e],ja(n)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function zb(t){X9.setTimeout(function(){throw t})}function Bb(){}function uu(t){t()}var Wh=(function(t){Hr(e,t);function e(n){var r=t.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Vb(n)&&n.add(r)):r.destination=tA,r}return e.create=function(n,r,i){return new vl(n,r,i)},e.prototype.next=function(n){this.isStopped||this._next(n)},e.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(n){this.destination.next(n)},e.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e})(gl),$9=(function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var n=this.partialObserver;if(n.next)try{n.next(e)}catch(r){fu(r)}},t.prototype.error=function(e){var n=this.partialObserver;if(n.error)try{n.error(e)}catch(r){fu(r)}else fu(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(n){fu(n)}},t})(),vl=(function(t){Hr(e,t);function e(n,r,i){var o=t.call(this)||this,a;return on(n)||!n?a={next:n??void 0,error:r??void 0,complete:i??void 0}:a=n,o.destination=new $9(a),o}return e})(Wh);function fu(t){zb(t)}function eA(t){throw t}var tA={closed:!0,next:Bb,error:eA,complete:Bb},Gh=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function du(t){return t}function nA(t){return t.length===0?du:t.length===1?t[0]:function(n){return t.reduce(function(r,i){return i(r)},n)}}var Bt=(function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(e,n,r){var i=this,o=iA(e)?e:new vl(e,n,r);return uu(function(){var a=i,s=a.operator,c=a.source;o.add(s?s.call(o,c):c?i._subscribe(o):i._trySubscribe(o))}),o},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){e.error(n)}},t.prototype.forEach=function(e,n){var r=this;return n=Hb(n),new n(function(i,o){var a=new vl({next:function(s){try{e(s)}catch(c){o(c),a.unsubscribe()}},error:o,complete:i});r.subscribe(a)})},t.prototype._subscribe=function(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)},t.prototype[Gh]=function(){return this},t.prototype.pipe=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return nA(e)(this)},t.prototype.toPromise=function(e){var n=this;return e=Hb(e),new e(function(r,i){var o;n.subscribe(function(a){return o=a},function(a){return i(a)},function(){return r(o)})})},t.create=function(e){return new t(e)},t})();function Hb(t){var e;return(e=t??J9.Promise)!==null&&e!==void 0?e:Promise}function rA(t){return t&&on(t.next)&&on(t.error)&&on(t.complete)}function iA(t){return t&&t instanceof Wh||rA(t)&&Vb(t)}function oA(t){return on(t==null?void 0:t.lift)}function pi(t){return function(e){if(oA(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ki(t,e,n,r,i){return new aA(t,e,n,r,i)}var aA=(function(t){Hr(e,t);function e(n,r,i,o,a,s){var c=t.call(this,n)||this;return c.onFinalize=a,c.shouldUnsubscribe=s,c._next=r?function(u){try{r(u)}catch(d){n.error(d)}}:t.prototype._next,c._error=o?function(u){try{o(u)}catch(d){n.error(d)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=i?function(){try{i()}catch(u){n.error(u)}finally{this.unsubscribe()}}:t.prototype._complete,c}return e.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;t.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},e})(Wh),sA=Bh(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ua=(function(t){Hr(e,t);function e(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e.prototype.lift=function(n){var r=new Wb(this,this);return r.operator=n,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new sA},e.prototype.next=function(n){var r=this;uu(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var a=Fa(r.currentObservers),s=a.next();!s.done;s=a.next()){var c=s.value;c.next(n)}}catch(u){i={error:u}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}})},e.prototype.error=function(n){var r=this;uu(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},e.prototype.complete=function(){var n=this;uu(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var r=this,i=this,o=i.hasError,a=i.isStopped,s=i.observers;return o||a?Db:(this.currentObservers=null,s.push(n),new gl(function(){r.currentObservers=null,cu(s,n)}))},e.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r.thrownError,a=r.isStopped;i?n.error(o):a&&n.complete()},e.prototype.asObservable=function(){var n=new Bt;return n.source=this,n},e.create=function(n,r){return new Wb(n,r)},e})(Bt),Wb=(function(t){Hr(e,t);function e(n,r){var i=t.call(this)||this;return i.destination=n,i.source=r,i}return e.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},e.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},e.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},e.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:Db},e})(Ua),lA=(function(t){Hr(e,t);function e(n){var r=t.call(this)||this;return r._value=n,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(n){var r=t.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},e.prototype.getValue=function(){var n=this,r=n.hasError,i=n.thrownError,o=n._value;if(r)throw i;return this._throwIfClosed(),o},e.prototype.next=function(n){t.prototype.next.call(this,this._value=n)},e})(Ua),Yh={now:function(){return(Yh.delegate||Date).now()},delegate:void 0},Gb=(function(t){Hr(e,t);function e(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=Yh);var o=t.call(this)||this;return o._bufferSize=n,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,r),o}return e.prototype.next=function(n){var r=this,i=r.isStopped,o=r._buffer,a=r._infiniteTimeWindow,s=r._timestampProvider,c=r._windowTime;i||(o.push(n),!a&&o.push(s.now()+c)),this._trimBuffer(),t.prototype.next.call(this,n)},e.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,o=i._infiniteTimeWindow,a=i._buffer,s=a.slice(),c=0;c<s.length&&!n.closed;c+=o?1:2)n.next(s[c]);return this._checkFinalizedStatuses(n),r},e.prototype._trimBuffer=function(){var n=this,r=n._bufferSize,i=n._timestampProvider,o=n._buffer,a=n._infiniteTimeWindow,s=(a?1:2)*r;if(r<1/0&&s<o.length&&o.splice(0,o.length-s),!a){for(var c=i.now(),u=0,d=1;d<o.length&&o[d]<=c;d+=2)u=d;u&&o.splice(0,u+1)}},e})(Ua),cA=(function(t){Hr(e,t);function e(n,r){return t.call(this)||this}return e.prototype.schedule=function(n,r){return this},e})(gl),Yb={setInterval:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setInterval.apply(void 0,Da([t,e],ja(n)))},clearInterval:function(t){return clearInterval(t)},delegate:void 0},Kb=(function(t){Hr(e,t);function e(n,r){var i=t.call(this,n,r)||this;return i.scheduler=n,i.work=r,i.pending=!1,i}return e.prototype.schedule=function(n,r){var i;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var o=this.id,a=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(a,o,r)),this.pending=!0,this.delay=r,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(a,this.id,r),this},e.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),Yb.setInterval(n.flush.bind(n,this),i)},e.prototype.recycleAsyncId=function(n,r,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return r;r!=null&&Yb.clearInterval(r)},e.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(n,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(n,r){var i=!1,o;try{this.work(n)}catch(a){i=!0,o=a||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},e.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,i=n.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,cu(o,this),r!=null&&(this.id=this.recycleAsyncId(i,r,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e})(cA),uA=1,Kh,Zh={};function Zb(t){return t in Zh?(delete Zh[t],!0):!1}var Qb={setImmediate:function(t){var e=uA++;return Zh[e]=!0,Kh||(Kh=Promise.resolve()),Kh.then(function(){return Zb(e)&&t()}),e},clearImmediate:function(t){Zb(t)}},fA=Qb.setImmediate,dA=Qb.clearImmediate,qb={setImmediate:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return fA.apply(void 0,Da([],ja(t)))},clearImmediate:function(t){return dA(t)},delegate:void 0},hA=(function(t){Hr(e,t);function e(n,r){var i=t.call(this,n,r)||this;return i.scheduler=n,i.work=r,i}return e.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),i!==null&&i>0?t.prototype.requestAsyncId.call(this,n,r,i):(n.actions.push(this),n._scheduled||(n._scheduled=qb.setImmediate(n.flush.bind(n,void 0))))},e.prototype.recycleAsyncId=function(n,r,i){var o;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return t.prototype.recycleAsyncId.call(this,n,r,i);var a=n.actions;r!=null&&((o=a[a.length-1])===null||o===void 0?void 0:o.id)!==r&&(qb.clearImmediate(r),n._scheduled===r&&(n._scheduled=void 0))},e})(Kb),Jb=(function(){function t(e,n){n===void 0&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(e,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,e).schedule(r,n)},t.now=Yh.now,t})(),Xb=(function(t){Hr(e,t);function e(n,r){r===void 0&&(r=Jb.now);var i=t.call(this,n,r)||this;return i.actions=[],i._active=!1,i}return e.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,i){for(;n=r.shift();)n.unsubscribe();throw i}},e})(Jb),pA=(function(t){Hr(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.flush=function(n){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var i=this.actions,o;n=n||i.shift();do if(o=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===r&&i.shift());if(this._active=!1,o){for(;(n=i[0])&&n.id===r&&i.shift();)n.unsubscribe();throw o}},e})(Xb),mA=new pA(hA),gA=new Xb(Kb),vA=gA,yl=new Bt(function(t){return t.complete()});function yA(t){return t&&on(t.schedule)}function bA(t){return t[t.length-1]}function $b(t){return yA(bA(t))?t.pop():void 0}var e2=(function(t){return t&&typeof t.length=="number"&&typeof t!="function"});function t2(t){return on(t==null?void 0:t.then)}function n2(t){return on(t[Gh])}function r2(t){return Symbol.asyncIterator&&on(t==null?void 0:t[Symbol.asyncIterator])}function i2(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function EA(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var o2=EA();function a2(t){return on(t==null?void 0:t[o2])}function s2(t){return Q9(this,arguments,function(){var n,r,i,o;return jb(this,function(a){switch(a.label){case 0:n=t.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,Va(n.read())];case 3:return r=a.sent(),i=r.value,o=r.done,o?[4,Va(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,Va(i)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function l2(t){return on(t==null?void 0:t.getReader)}function vo(t){if(t instanceof Bt)return t;if(t!=null){if(n2(t))return SA(t);if(e2(t))return wA(t);if(t2(t))return _A(t);if(r2(t))return c2(t);if(a2(t))return CA(t);if(l2(t))return xA(t)}throw i2(t)}function SA(t){return new Bt(function(e){var n=t[Gh]();if(on(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function wA(t){return new Bt(function(e){for(var n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function _A(t){return new Bt(function(e){t.then(function(n){e.closed||(e.next(n),e.complete())},function(n){return e.error(n)}).then(null,zb)})}function CA(t){return new Bt(function(e){var n,r;try{for(var i=Fa(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(e.next(a),e.closed)return}}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}e.complete()})}function c2(t){return new Bt(function(e){AA(t,e).catch(function(n){return e.error(n)})})}function xA(t){return c2(s2(t))}function AA(t,e){var n,r,i,o;return Z9(this,void 0,void 0,function(){var a,s;return jb(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),n=q9(t),c.label=1;case 1:return[4,n.next()];case 2:if(r=c.sent(),!!r.done)return[3,4];if(a=r.value,e.next(a),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),i={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),r&&!r.done&&(o=n.return)?[4,o.call(n)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function ea(t,e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var o=e.schedule(function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!i)return o}function Qh(t,e){return e===void 0&&(e=0),pi(function(n,r){n.subscribe(Ki(r,function(i){return ea(r,t,function(){return r.next(i)},e)},function(){return ea(r,t,function(){return r.complete()},e)},function(i){return ea(r,t,function(){return r.error(i)},e)}))})}function u2(t,e){return e===void 0&&(e=0),pi(function(n,r){r.add(t.schedule(function(){return n.subscribe(r)},e))})}function kA(t,e){return vo(t).pipe(u2(e),Qh(e))}function TA(t,e){return vo(t).pipe(u2(e),Qh(e))}function OA(t,e){return new Bt(function(n){var r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function RA(t,e){return new Bt(function(n){var r;return ea(n,e,function(){r=t[o2](),ea(n,e,function(){var i,o,a;try{i=r.next(),o=i.value,a=i.done}catch(s){n.error(s);return}a?n.complete():n.next(o)},0,!0)}),function(){return on(r==null?void 0:r.return)&&r.return()}})}function f2(t,e){if(!t)throw new Error("Iterable cannot be null");return new Bt(function(n){ea(n,e,function(){var r=t[Symbol.asyncIterator]();ea(n,e,function(){r.next().then(function(i){i.done?n.complete():n.next(i.value)})},0,!0)})})}function NA(t,e){return f2(s2(t),e)}function IA(t,e){if(t!=null){if(n2(t))return kA(t,e);if(e2(t))return OA(t,e);if(t2(t))return TA(t,e);if(r2(t))return f2(t,e);if(a2(t))return RA(t,e);if(l2(t))return NA(t,e)}throw i2(t)}function ta(t,e){return e?IA(t,e):vo(t)}function na(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=$b(t);return ta(t,n)}function d2(t,e){var n=on(t)?t:function(){return t},r=function(i){return i.error(n())};return new Bt(r)}var h2;(function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"})(h2||(h2={}));var qh=(function(){function t(e,n,r){this.kind=e,this.value=n,this.error=r,this.hasValue=e==="N"}return t.prototype.observe=function(e){return PA(this,e)},t.prototype.do=function(e,n,r){var i=this,o=i.kind,a=i.value,s=i.error;return o==="N"?e==null?void 0:e(a):o==="E"?n==null?void 0:n(s):r==null?void 0:r()},t.prototype.accept=function(e,n,r){var i;return on((i=e)===null||i===void 0?void 0:i.next)?this.observe(e):this.do(e,n,r)},t.prototype.toObservable=function(){var e=this,n=e.kind,r=e.value,i=e.error,o=n==="N"?na(r):n==="E"?d2(function(){return i}):n==="C"?yl:0;if(!o)throw new TypeError("Unexpected notification kind "+n);return o},t.createNext=function(e){return new t("N",e)},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t})();function PA(t,e){var n,r,i,o=t,a=o.kind,s=o.value,c=o.error;if(typeof a!="string")throw new TypeError('Invalid notification, missing "kind"');a==="N"?(n=e.next)===null||n===void 0||n.call(e,s):a==="E"?(r=e.error)===null||r===void 0||r.call(e,c):(i=e.complete)===null||i===void 0||i.call(e)}var MA=Bh(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function LA(t,e){var n=typeof e=="object";return new Promise(function(r,i){var o=!1,a;t.subscribe({next:function(s){a=s,o=!0},error:i,complete:function(){o?r(a):n?r(e.defaultValue):i(new MA)}})})}function FA(t){return t instanceof Date&&!isNaN(t)}function yo(t,e){return pi(function(n,r){var i=0;n.subscribe(Ki(r,function(o){r.next(t.call(e,o,i++))}))})}function jA(t,e,n,r,i,o,a,s){var c=[],u=0,d=0,h=!1,p=function(){h&&!c.length&&!u&&e.complete()},m=function(b){return u<r?v(b):c.push(b)},v=function(b){u++;var y=!1;vo(n(b,d++)).subscribe(Ki(e,function(w){e.next(w)},function(){y=!0},void 0,function(){if(y)try{u--;for(var w=function(){var C=c.shift();a||v(C)};c.length&&u<r;)w();p()}catch(C){e.error(C)}}))};return t.subscribe(Ki(e,m,function(){h=!0,p()})),function(){}}function za(t,e,n){return n===void 0&&(n=1/0),on(e)?za(function(r,i){return yo(function(o,a){return e(r,o,i,a)})(vo(t(r,i)))},n):(typeof e=="number"&&(n=e),pi(function(r,i){return jA(r,i,t,n)}))}function DA(t){return za(du,t)}function VA(){return DA(1)}function Jh(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return VA()(ta(t,$b(t)))}function UA(t,e,n){return n===void 0&&(n=vA),new Bt(function(r){var i=FA(t)?+t-n.now():t;i<0&&(i=0);var o=0;return n.schedule(function(){r.closed||(r.next(o++),r.complete())},i)})}function p2(t,e){return pi(function(n,r){var i=0;n.subscribe(Ki(r,function(o){return t.call(e,o,i++)&&r.next(o)}))})}function hu(t){return pi(function(e,n){var r=null,i=!1,o;r=e.subscribe(Ki(n,void 0,void 0,function(a){o=vo(t(a,hu(t)(e))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function zA(t,e){return e===void 0&&(e=du),t=t??BA,pi(function(n,r){var i,o=!0;n.subscribe(Ki(r,function(a){var s=e(a);(o||!t(i,s))&&(o=!1,i=s,r.next(a))}))})}function BA(t,e){return t===e}function HA(t){return pi(function(e,n){try{e.subscribe(n)}finally{n.add(t)}})}function WA(){return pi(function(t,e){t.subscribe(Ki(e,function(n){e.next(qh.createNext(n))},function(){e.next(qh.createComplete()),e.complete()},function(n){e.next(qh.createError(n)),e.complete()}))})}function bl(t){t===void 0&&(t={});var e=t.connector,n=e===void 0?function(){return new Ua}:e,r=t.resetOnError,i=r===void 0?!0:r,o=t.resetOnComplete,a=o===void 0?!0:o,s=t.resetOnRefCountZero,c=s===void 0?!0:s;return function(u){var d,h,p,m=0,v=!1,b=!1,y=function(){h==null||h.unsubscribe(),h=void 0},w=function(){y(),d=p=void 0,v=b=!1},C=function(){var k=d;w(),k==null||k.unsubscribe()};return pi(function(k,x){m++,!b&&!v&&y();var S=p=p??n();x.add(function(){m--,m===0&&!b&&!v&&(h=Xh(C,c))}),S.subscribe(x),!d&&m>0&&(d=new vl({next:function(A){return S.next(A)},error:function(A){b=!0,y(),h=Xh(w,i,A),S.error(A)},complete:function(){v=!0,y(),h=Xh(w,a),S.complete()}}),vo(k).subscribe(d))})(u)}}function Xh(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(e===!0){t();return}if(e!==!1){var i=new vl({next:function(){i.unsubscribe(),t()}});return vo(e.apply(void 0,Da([],ja(n)))).subscribe(i)}}function $h(t,e,n){var r,i,o,a,s=!1;return t&&typeof t=="object"?(r=t.bufferSize,a=r===void 0?1/0:r,i=t.windowTime,e=i===void 0?1/0:i,o=t.refCount,s=o===void 0?!1:o,n=t.scheduler):a=t??1/0,bl({connector:function(){return new Gb(a,e,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}function El(t,e,n){var r=on(t)||e||n?{next:t,error:e,complete:n}:t;return r?pi(function(i,o){var a;(a=r.subscribe)===null||a===void 0||a.call(r);var s=!0;i.subscribe(Ki(o,function(c){var u;(u=r.next)===null||u===void 0||u.call(r,c),o.next(c)},function(){var c;s=!1,(c=r.complete)===null||c===void 0||c.call(r),o.complete()},function(c){var u;s=!1,(u=r.error)===null||u===void 0||u.call(r,c),o.error(c)},function(){var c,u;s&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):du}function Ba(t,e,n,r){if(n.kind===vt.INT||n.kind===vt.FLOAT)t[e.value]=Number(n.value);else if(n.kind===vt.BOOLEAN||n.kind===vt.STRING)t[e.value]=n.value;else if(n.kind===vt.OBJECT){const i={};n.fields.map(o=>Ba(i,o.name,o.value,r)),t[e.value]=i}else if(n.kind===vt.VARIABLE){const i=(r||{})[n.name.value];t[e.value]=i}else if(n.kind===vt.LIST)t[e.value]=n.values.map(i=>{const o={};return Ba(o,e,i,r),o[e.value]});else if(n.kind===vt.ENUM)t[e.value]=n.value;else if(n.kind===vt.NULL)t[e.value]=null;else throw Br(19,e.value,n.kind)}function ep(t,e){if(t.arguments&&t.arguments.length){const n={};return t.arguments.forEach(({name:r,value:i})=>Ba(n,r,i,e)),n}return null}const m2=typeof di(()=>window.document.createElement)=="function",GA=Symbol.for("apollo.cacheSize"),Zi={...Ih[GA]};function Ha(t,e){var n;return((n=t.definitions.find(r=>r.kind==="OperationDefinition"&&!!r.name))==null?void 0:n.name.value)??e}const YA=()=>Object.create(null),{forEach:KA,slice:g2}=Array.prototype,{hasOwnProperty:ZA}=Object.prototype;class Oi{constructor(e=!0,n=YA){this.weakness=e,this.makeData=n}lookup(){return this.lookupArray(arguments)}lookupArray(e){let n=this;return KA.call(e,r=>n=n.getChildTrie(r)),ZA.call(n,"data")?n.data:n.data=this.makeData(g2.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let n=this;for(let r=0,i=e.length;n&&r<i;++r){const o=n.mapFor(e[r],!1);n=o&&o.get(e[r])}return n&&n.data}remove(){return this.removeArray(arguments)}removeArray(e){let n;if(e.length){const r=e[0],i=this.mapFor(r,!1),o=i&&i.get(r);o&&(n=o.removeArray(g2.call(e,1)),!o.data&&!o.weak&&!(o.strong&&o.strong.size)&&i.delete(r))}else n=this.data,delete this.data;return n}getChildTrie(e){const n=this.mapFor(e,!0);let r=n.get(e);return r||n.set(e,r=new Oi(this.weakness,this.makeData)),r}mapFor(e,n){return this.weakness&&QA(e)?this.weak||(n?this.weak=new WeakMap:void 0):this.strong||(n?this.strong=new Map:void 0)}}function QA(t){switch(typeof t){case"object":if(t===null)break;case"function":return!0}return!1}function qA(){}class tp{constructor(e=1/0,n=qA){this.max=e,this.dispose=n,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const n=this.getNode(e);return n&&n.value}get size(){return this.map.size}getNode(e){const n=this.map.get(e);if(n&&n!==this.newest){const{older:r,newer:i}=n;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}return n}set(e,n){let r=this.getNode(e);return r?r.value=n:(r={key:e,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const n=this.map.get(e);return n?(n===this.newest&&(this.newest=n.older),n===this.oldest&&(this.oldest=n.newer),n.newer&&(n.newer.older=n.older),n.older&&(n.older.newer=n.newer),this.map.delete(e),this.dispose(n.value,e),!0):!1}}function np(){}const JA=np,XA=typeof WeakRef<"u"?WeakRef:function(t){return{deref:()=>t}},$A=typeof WeakMap<"u"?WeakMap:Map,e7=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:np,unregister:np}},t7=10024;class pu{constructor(e=1/0,n=JA){this.max=e,this.dispose=n,this.map=new $A,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const r=this.unfinalizedNodes.values();for(let i=0;i<t7;i++){const o=r.next().value;if(!o)break;this.unfinalizedNodes.delete(o);const a=o.key;delete o.key,o.keyRef=new XA(a),this.registry.register(a,o,o)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new e7(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const n=this.getNode(e);return n&&n.value}getNode(e){const n=this.map.get(e);if(n&&n!==this.newest){const{older:r,newer:i}=n;i&&(i.older=r),r&&(r.newer=i),n.older=this.newest,n.older.newer=n,n.newer=null,this.newest=n,n===this.oldest&&(this.oldest=i)}return n}set(e,n){let r=this.getNode(e);return r?r.value=n:(r={key:e,value:n,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const n=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,n),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),n&&this.map.delete(n)}delete(e){const n=this.map.get(e);return n?(this.deleteNode(n),!0):!1}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}const rp=new WeakSet;function v2(t){t.size<=(t.max||-1)||rp.has(t)||(rp.add(t),setTimeout(()=>{t.clean(),rp.delete(t)},100))}const ip=function(t,e){const n=new pu(t,e);return n.set=function(r,i){const o=pu.prototype.set.call(this,r,i);return v2(this),o},n},n7=function(t,e){const n=new tp(t,e);return n.set=function(r,i){const o=tp.prototype.set.call(this,r,i);return v2(this),o},n};function y2(t,{max:e,makeCacheKey:n=r=>r}){const r=new Oi(!0),i=new ip(e);return(...o)=>{const a=r.lookupArray(n(o)),s=i.get(a);if(s){if(s.error)throw s.error;return s.result}const c=i.set(a,{});try{return c.result=t(...o)}catch(u){throw c.error=u,u}}}const bo=y2((t,e)=>{Xe(t&&t.kind==="Document",1);const n=t.definitions.filter(r=>r.kind==="OperationDefinition");e&&Xe(n.length==1&&n[0].operation===e,4,e,e,n[0].operation),Ti(t,{Field(r,i,o,a){var s;if(r.alias&&(r.alias.value==="__typename"||r.alias.value.startsWith("__ac_"))&&r.alias.value!==r.name.value){let c=t,u=[];for(const d of a)c=c[d],c.kind===vt.FIELD&&u.push(((s=c.alias)==null?void 0:s.value)||c.name.value);throw u.splice(-1,1,r.name.value),Br(5,r.alias.value,u.join("."),n[0].operation,Ha(t,"(anonymous)"))}}})},{max:Zi.checkDocument||2e3});function r7(t){return t.length===0?yl:new Bt(e=>{const{length:n}=t,r=new Array(n),i=new Map;t.forEach((c,u)=>{i.has(c)||i.set(c,new Set),i.get(c).add(u)});let o=i.size,a=i.size,s;i.forEach((c,u)=>{let d=!1;const h=u.subscribe({next:p=>{c.forEach(m=>r[m]=p),d||(d=!0,a--),a||(s||(s=new Set(t.filter(m=>m.dirty))),s.delete(u),s.size||(e.next(r.slice()),s=void 0))},complete:()=>{o--,o||e.complete()},error:e.error.bind(e)});e.add(h)})})}function Tr(...t){const e={};return t.forEach(n=>{n&&Reflect.ownKeys(n).forEach(r=>{const i=n[r];i!==void 0&&(e[r]=i)})}),e}function Sl(t=[]){const e={};return t.forEach(n=>{e[n.name.value]=n}),e}function Bn(t){return t!==null&&typeof t=="object"}const{hasOwnProperty:i7}=Object.prototype,o7=function(t,e,n){return this.merge(t[n],e[n])},b2=t=>isNaN(+t)?{}:[];class Wa{constructor(e={}){ae(this,"options");ae(this,"reconciler");ae(this,"isObject",Bn);ae(this,"pastCopies",new Set);this.options=e,this.reconciler=e.reconciler||o7}merge(e,n,r={}){const i=r.atPath;if(i!=null&&i.length){const[o,...a]=i;e===void 0&&(e=b2(o));let s=e[o];s===void 0&&a.length&&(s=b2(a[0]));const c=this.merge(s,n,{...r,atPath:a});return s!==c&&(e=this.shallowCopyForMerge(e),e[o]=c),e}return Array.isArray(e)&&Array.isArray(n)&&this.options.arrayMerge==="truncate"&&e.length>n.length&&(e=e.slice(0,n.length),this.pastCopies.add(e)),Bn(n)&&Bn(e)?(Object.keys(n).forEach(o=>{if(i7.call(e,o)){const a=e[o];if(n[o]!==a){const s=this.reconciler(e,n,o);s!==a&&(e=this.shallowCopyForMerge(e),e[o]=s)}}else e=this.shallowCopyForMerge(e),e[o]=n[o]}),e):n}shallowCopyForMerge(e){return Bn(e)&&(this.pastCopies.has(e)||(Array.isArray(e)?e=e.slice(0):e={__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e))),e}}function op(t){const e={},n=t&&t.variableDefinitions;return n&&n.length&&n.forEach(r=>{r.defaultValue&&Ba(e,r.variable.name,r.defaultValue)}),e}function mu(t,e){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":{const n=t.name.value;if(typeof e=="function")return e(n);const r=e&&e[n];return Xe(r,9,n),r||null}default:return null}}function a7(t,e){let n=e;const r=[];return t.definitions.forEach(o=>{if(o.kind==="OperationDefinition")throw Br(10,o.operation,o.name?` named '${o.name.value}'`:"");o.kind==="FragmentDefinition"&&r.push(o)}),typeof n>"u"&&(Xe(r.length===1,11,r.length),n=r[0].name.value),{...t,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}},...t.definitions]}}function s7(t){Xe(t.kind==="Document",6),Xe(t.definitions.length<=1,7);const e=t.definitions[0];return Xe(e.kind==="FragmentDefinition",8),e}function wl(t){return t.definitions.filter(e=>e.kind==="FragmentDefinition")}function ap(t){bo(t);let e;for(let n of t.definitions){if(n.kind==="OperationDefinition")return n;n.kind==="FragmentDefinition"&&!e&&(e=n)}if(e)return e;throw Br(12)}function Qi(t){return bo(t),t.definitions.filter(e=>e.kind==="OperationDefinition")[0]}function l7(t){const e=Qi(t);return Xe(e&&e.operation==="query",13),e}const qi=Object.assign(function(e){return JSON.stringify(e,c7)},{reset(){_l=new n7(Zi.canonicalStringify||1e3)}});let _l;qi.reset();function c7(t,e){if(e&&typeof e=="object"){const n=Object.getPrototypeOf(e);if(n===Object.prototype||n===null){const r=Object.keys(e);if(r.every(u7))return e;const i=JSON.stringify(r);let o=_l.get(i);if(!o){r.sort();const s=JSON.stringify(r);o=_l.get(s)||r,_l.set(i,o),_l.set(s,o)}const a=Object.create(n);return o.forEach(s=>{a[s]=e[s]}),a}}return e}function u7(t,e,n){return e===0||n[e-1]<=t}const f7=["connection","include","skip","client","rest","export","nonreactive","stream"];let Cl=qi;const E2=Object.assign(function(t,e,n){if(e&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){const i=n.connection.filter?n.connection.filter:[];i.sort();const o={};i.forEach(s=>{o[s]=e[s]});const a=Cl(o);if(a!=="{}")return`${n.connection.key}(${a})`}return n.connection.key}let r=t;if(e){const i=Cl(e);i!=="{}"&&(r+=`(${i})`)}return n&&Object.keys(n).forEach(i=>{f7.indexOf(i)===-1&&(n[i]&&Object.keys(n[i]).length?r+=`@${i}(${Cl(n[i])})`:r+=`@${i}`)}),r},{setStringify(t){const e=Cl;return Cl=t,e}});function Ga(t){var e;return!!((e=t.errors)!=null&&e.length)}function Ya(t,e,n){const r=new Set(t),i=r.size;return Ti(e,{Directive(o){if(r.delete(o.name.value)&&(!n||!r.size))return Vh}}),n?!r.size:r.size<i}function d7(t){let e=!1;return Ti(t,{Directive:{enter(n){if(n.name.value==="client"&&n.arguments&&(e=n.arguments.some(r=>r.name.value==="always"&&r.value.kind==="BooleanValue"&&r.value.value===!0),e))return Vh}}}),e}const En=Array.isArray;function h7(t){return Bn(t)&&t.kind==="Document"&&Array.isArray(t.definitions)}function xl(t){return t.kind==="Field"}function sp(t){return Array.isArray(t)&&t.length>0}function Ka(t){return{__ref:String(t)}}function WJ(t){return t}function p7(t){let e=t[0]||{};const n=t.length;if(n>1){const r=new Wa;for(let i=1;i<n;++i)e=r.merge(e,t[i])}return e}function ra(t,e){return Tr(t,e,e.variables&&{variables:Tr({...t&&t.variables,...e.variables})})}function lp(t){return t.catch(()=>{}),t}function m7(t,e){bo(e);const n=S2(""),r=S2(""),i=y=>{for(let w=0,C;w<y.length&&(C=y[w]);++w)if(!En(C)){if(C.kind===vt.OPERATION_DEFINITION)return n(C.name&&C.name.value);if(C.kind===vt.FRAGMENT_DEFINITION)return r(C.name.value)}return Xe.error(14),null};let o=0;for(let y=e.definitions.length-1;y>=0;--y)e.definitions[y].kind===vt.OPERATION_DEFINITION&&++o;const a=g7(t),s=y=>sp(y)&&y.map(a).some(w=>w&&w.remove),c=new Map;let u=!1;const d={enter(y){if(s(y.directives))return u=!0,null}},h=Ti(e,{Field:d,InlineFragment:d,VariableDefinition:{enter(){return!1}},Variable:{enter(y,w,C,k,x){const S=i(x);S&&S.variables.add(y.name.value)}},FragmentSpread:{enter(y,w,C,k,x){if(s(y.directives))return u=!0,null;const S=i(x);S&&S.fragmentSpreads.add(y.name.value)}},FragmentDefinition:{enter(y,w,C,k){c.set(JSON.stringify(k),y)},leave(y,w,C,k){const x=c.get(JSON.stringify(k));if(y===x)return y;if(o>0&&y.selectionSet.selections.every(S=>S.kind===vt.FIELD&&S.name.value==="__typename"))return r(y.name.value).removed=!0,u=!0,null}},Directive:{leave(y){if(a(y))return u=!0,null}}});if(!u)return e;const p=y=>(y.transitiveVars||(y.transitiveVars=new Set(y.variables),y.removed||y.fragmentSpreads.forEach(w=>{p(r(w)).transitiveVars.forEach(C=>{y.transitiveVars.add(C)})})),y),m=new Set;h.definitions.forEach(y=>{y.kind===vt.OPERATION_DEFINITION?p(n(y.name&&y.name.value)).fragmentSpreads.forEach(w=>{m.add(w)}):y.kind===vt.FRAGMENT_DEFINITION&&o===0&&!r(y.name.value).removed&&m.add(y.name.value)}),m.forEach(y=>{p(r(y)).fragmentSpreads.forEach(w=>{m.add(w)})});const v=y=>!!(!m.has(y)||r(y).removed),b={enter(y){if(v(y.name.value))return null}};return v7(Ti(h,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave(y){if(y.variableDefinitions){const w=p(n(y.name&&y.name.value)).transitiveVars;if(w.size<y.variableDefinitions.length)return{...y,variableDefinitions:y.variableDefinitions.filter(C=>w.has(C.variable.name.value))}}}}}))}function S2(t){const e=new Map;return function(r=t){let i=e.get(r);return i||e.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}function g7(t){const e=new Map,n=new Map;return t.forEach(r=>{r&&(r.name?e.set(r.name,r):r.test&&n.set(r.test,r))}),r=>{let i=e.get(r.name.value);return!i&&n.size&&n.forEach((o,a)=>{a(r)&&(i=o)}),i}}function w2(t,e){return!t||t.selectionSet.selections.every(n=>n.kind===vt.FRAGMENT_SPREAD&&w2(e[n.name.value],e))}function v7(t){return w2(Qi(t)||s7(t),Sl(wl(t)))?null:t}function y7(t){return Ti(t,{FragmentSpread(e){var n;if(!((n=e.directives)!=null&&n.some(({name:r})=>r.value==="unmask")))return null}})}function Za(t){return t.alias?t.alias.value:t.name.value}function gu({directives:t},e){return!t||!t.length?!0:E7(t).every(({directive:n,ifArgument:r})=>{let i=!1;return r.value.kind==="Variable"?(i=e&&e[r.value.name.value],Xe(i!==void 0,15,n.name.value)):i=r.value.value,n.name.value==="skip"?!i:i})}function b7({name:{value:t}}){return t==="skip"||t==="include"}function E7(t){const e=[];return t&&t.length&&t.forEach(n=>{if(!b7(n))return;const r=n.arguments,i=n.name.value;Xe(r&&r.length===1,16,i);const o=r[0];Xe(o.name&&o.name.value==="if",17,i);const a=o.value;Xe(a&&(a.kind==="Variable"||a.kind==="BooleanValue"),18,i),e.push({directive:n,ifArgument:o})}),e}function S7(t,e){let n=null;t.directives&&(n={},t.directives.forEach(i=>{n[i.name.value]={},i.arguments&&i.arguments.forEach(({name:o,value:a})=>Ba(n[i.name.value],o,a,e))}));let r=null;return t.arguments&&t.arguments.length&&(r={},t.arguments.forEach(({name:i,value:o})=>Ba(r,i,o,e))),E2(t.name.value,r,n)}function Al(t){const e={data:t.data};return t.error&&(e.error=t.error),e}function cp(t,e=()=>{}){return n=>new Bt(r=>{let i=e();return n.subscribe({next(o){let a;try{a=t(o,i)}catch(s){r.error(s)}a!==void 0&&r.next(a)},error(o){r.error(o)},complete(){r.complete()}})})}function _2(t,{data:e,...n},{data:r,...i},o){return ht(n,i)&&vu(ap(t).selectionSet,e,r,{fragmentMap:Sl(wl(t)),variables:o})}function vu(t,e,n,r){if(e===n)return!0;const i=new Set;return t.selections.every(o=>{if(i.has(o)||(i.add(o),!gu(o,r.variables))||C2(o))return!0;if(xl(o)){const a=Za(o),s=e&&e[a],c=n&&n[a],u=o.selectionSet;if(!u)return ht(s,c);const d=Array.isArray(s),h=Array.isArray(c);if(d!==h)return!1;if(d&&h){const p=s.length;if(c.length!==p)return!1;for(let m=0;m<p;++m)if(!vu(u,s[m],c[m],r))return!1;return!0}return vu(u,s,c,r)}else{const a=mu(o,r.fragmentMap);if(a)return C2(a)?!0:vu(a.selectionSet,e,n,r)}})}function C2(t){return!!t.directives&&t.directives.some(w7)}function w7(t){return t.name.value==="nonreactive"}function _7(t,e){let n,r;function i(o){return o!==n&&(n=o,r=e(n)),r}return Object.assign(t.pipe(yo(i),$h({bufferSize:1,refCount:!0})),{getCurrentResult:()=>i(t.getCurrentResult())})}const C7=y2(function(e,n,r){return _7(e,r)},{max:1,makeCacheKey:t=>t.slice(0,2)}),x2=Symbol.for("apollo.result.extensions"),Eo=Symbol.for("apollo.result.streamInfo"),up=Symbol.for("apollo.observableQuery.variablesUnknown");let jn=null;const A2={};let x7=1;const A7=()=>class{constructor(){this.id=["slot",x7++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=jn;e;e=e.parent)if(this.id in e.slots){const n=e.slots[this.id];if(n===A2)break;return e!==jn&&(jn.slots[this.id]=n),!0}return jn&&(jn.slots[this.id]=A2),!1}getValue(){if(this.hasValue())return jn.slots[this.id]}withValue(e,n,r,i){const o={__proto__:null,[this.id]:e},a=jn;jn={parent:a,slots:o};try{return n.apply(i,r)}finally{jn=a}}static bind(e){const n=jn;return function(){const r=jn;try{return jn=n,e.apply(this,arguments)}finally{jn=r}}}static noContext(e,n,r){if(jn){const i=jn;try{return jn=null,e.apply(r,n)}finally{jn=i}}else return e.apply(r,n)}};function k2(t){try{return t()}catch{}}const fp="@wry/context:Slot",T2=k2(()=>globalThis)||k2(()=>global)||Object.create(null),yu=T2[fp]||Array[fp]||(function(t){try{Object.defineProperty(T2,fp,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}})(A7()),{bind:YJ,noContext:KJ}=yu,bu=new yu,{hasOwnProperty:k7}=Object.prototype,dp=Array.from||function(t){const e=[];return t.forEach(n=>e.push(n)),e};function hp(t){const{unsubscribe:e}=t;typeof e=="function"&&(t.unsubscribe=void 0,e())}const kl=[],T7=100;function Qa(t,e){if(!t)throw new Error(e||"assertion failure")}function O2(t,e){const n=t.length;return n>0&&n===e.length&&t[n-1]===e[n-1]}function R2(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function N2(t){return t.slice(0)}class Eu{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Eu.count}peek(){if(this.value.length===1&&!So(this))return I2(this),this.value[0]}recompute(e){return Qa(!this.recomputing,"already recomputing"),I2(this),So(this)?O7(this,e):R2(this.value)}setDirty(){this.dirty||(this.dirty=!0,P2(this),hp(this))}dispose(){this.setDirty(),D2(this),pp(this,(e,n)=>{e.setDirty(),V2(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=kl.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(dp(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),kl.push(this.deps),this.deps=null)}}Eu.count=0;function I2(t){const e=bu.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),So(t)?L2(e,t):F2(e,t),e}function O7(t,e){return D2(t),bu.withValue(t,R7,[t,e]),I7(t,e)&&N7(t),R2(t.value)}function R7(t,e){t.recomputing=!0;const{normalizeResult:n}=t;let r;n&&t.value.length===1&&(r=N2(t.value)),t.value.length=0;try{if(t.value[0]=t.fn.apply(null,e),n&&r&&!O2(r,t.value))try{t.value[0]=n(t.value[0],r[0])}catch{}}catch(i){t.value[1]=i}t.recomputing=!1}function So(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function N7(t){t.dirty=!1,!So(t)&&M2(t)}function P2(t){pp(t,L2)}function M2(t){pp(t,F2)}function pp(t,e){const n=t.parents.size;if(n){const r=dp(t.parents);for(let i=0;i<n;++i)e(r[i],t)}}function L2(t,e){Qa(t.childValues.has(e)),Qa(So(e));const n=!So(t);if(!t.dirtyChildren)t.dirtyChildren=kl.pop()||new Set;else if(t.dirtyChildren.has(e))return;t.dirtyChildren.add(e),n&&P2(t)}function F2(t,e){Qa(t.childValues.has(e)),Qa(!So(e));const n=t.childValues.get(e);n.length===0?t.childValues.set(e,N2(e.value)):O2(n,e.value)||t.setDirty(),j2(t,e),!So(t)&&M2(t)}function j2(t,e){const n=t.dirtyChildren;n&&(n.delete(e),n.size===0&&(kl.length<T7&&kl.push(n),t.dirtyChildren=null))}function D2(t){t.childValues.size>0&&t.childValues.forEach((e,n)=>{V2(t,n)}),t.forgetDeps(),Qa(t.dirtyChildren===null)}function V2(t,e){e.parents.delete(t),t.childValues.delete(e),j2(t,e)}function I7(t,e){if(typeof t.subscribe=="function")try{hp(t),t.unsubscribe=t.subscribe.apply(null,e)}catch{return t.setDirty(),!1}return!0}const P7={setDirty:!0,dispose:!0,forget:!0};function U2(t){const e=new Map;function n(r){const i=bu.getValue();if(i){let o=e.get(r);o||e.set(r,o=new Set),i.dependOn(o)}}return n.dirty=function(i,o){const a=e.get(i);if(a){const s=o&&k7.call(P7,o)?o:"setDirty";dp(a).forEach(c=>c[s]()),e.delete(i),hp(a)}},n}let z2;function B2(...t){return(z2||(z2=new Oi(typeof WeakMap=="function"))).lookupArray(t)}const mp=new Set;function Tl(t,{max:e=Math.pow(2,16),keyArgs:n,makeCacheKey:r=B2,normalizeResult:i,subscribe:o,cache:a=tp}=Object.create(null)){const s=typeof a=="function"?new a(e,p=>p.dispose()):a,c=function(){const p=r.apply(null,n?n.apply(null,arguments):arguments);if(p===void 0)return t.apply(null,arguments);let m=s.get(p);m||(s.set(p,m=new Eu(t)),m.normalizeResult=i,m.subscribe=o,m.forget=()=>s.delete(p));const v=m.recompute(Array.prototype.slice.call(arguments));return s.set(p,m),mp.add(s),bu.hasValue()||(mp.forEach(b=>b.clean()),mp.clear()),v};Object.defineProperty(c,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:e,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:o,cache:s});function u(p){const m=p&&s.get(p);m&&m.setDirty()}c.dirtyKey=u,c.dirty=function(){u(r.apply(null,arguments))};function d(p){const m=p&&s.get(p);if(m)return m.peek()}c.peekKey=d,c.peek=function(){return d(r.apply(null,arguments))};function h(p){return p?s.delete(p):!1}return c.forgetKey=h,c.forget=function(){return h(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}function M7(...t){return B2.bind(null,...t)}class L7{constructor(){ae(this,"startRequest")}isIncrementalResult(e){return!1}prepareRequest(e){return Xe(!Ya(["defer","stream"],e.query),67),e}extractErrors(){}}function F7(t,{client:e}){const n={query:t.query,variables:t.variables||{},extensions:t.extensions||{},operationName:Ha(t.query),operationType:Qi(t.query).operation};let r={...t.context};const i=a=>{typeof a=="function"?r={...r,...a(o())}:r={...r,...a}},o=()=>Object.freeze({...r});return Object.defineProperty(n,"setContext",{enumerable:!1,value:i}),Object.defineProperty(n,"getContext",{enumerable:!1,value:o}),Object.defineProperty(n,"client",{enumerable:!1,value:e}),n}function j7(t,e){const n={...t},r=new Set(Object.keys(t));return Ti(e,{Variable(i,o,a){a&&a.kind!=="VariableDefinition"&&r.delete(i.name.value)}}),r.forEach(i=>{delete n[i]}),n}class Tn{constructor(e){ae(this,"left");ae(this,"right");e&&(this.request=e)}static empty(){return new Tn(()=>yl)}static from(e){if(e.length===0)return Tn.empty();const[n,...r]=e;return n.concat(...r)}static split(e,n,r=new Tn((i,o)=>o(i))){const i=new Tn((o,a)=>e(o)?n.request(o,a):r.request(o,a));return Object.assign(i,{left:n,right:r})}static execute(e,n,r){return e.request(F7(n,r),()=>yl)}static concat(...e){return Tn.from(e)}split(e,n,r){return this.concat(Tn.split(e,n,r))}concat(...e){return e.length===0?this:e.reduce(this.combine.bind(this),this)}combine(e,n){const r=new Tn((i,o)=>e.request(i,a=>n.request(a,o)));return Object.assign(r,{left:e,right:n})}request(e,n){throw Br(65)}}const gp=Tn.execute;function D7(t){return t}class Ji{constructor(e,n={}){ae(this,"transform");ae(this,"cached");ae(this,"resultCache",new WeakSet);ae(this,"left");ae(this,"right");this.transform=e,n.getCacheKey&&(this.getCacheKey=n.getCacheKey),this.cached=n.cache!==!1,this.resetCache()}getCacheKey(e){return[e]}static identity(){return new Ji(D7,{cache:!1})}static split(e,n,r=Ji.identity()){return Object.assign(new Ji(i=>(e(i)?n:r).transformDocument(i),{cache:!1}),{left:n,right:r})}resetCache(){if(this.cached){const e=new Oi;this.performWork=Tl(Ji.prototype.performWork.bind(this),{makeCacheKey:n=>{const r=this.getCacheKey(n);if(r)return Xe(Array.isArray(r),20),e.lookupArray(r)},max:Zi["documentTransform.cache"],cache:pu})}}performWork(e){return bo(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;const n=this.performWork(e);return this.resultCache.add(n),n}concat(e){return Object.assign(new Ji(n=>e.transformDocument(this.transformDocument(n)),{cache:!1}),{left:this,right:e})}}let vp;const ia=Object.assign(t=>{let e=vp.get(t);return e||(e=G9(t),vp.set(t,e)),e},{reset(){vp=new ip(Zi.print||2e3)}});ia.reset();function Gt(t){return!!(t&&typeof t=="object"&&typeof t.__ref=="string")}const H2={kind:vt.FIELD,name:{kind:vt.NAME,value:"__typename"}},W2=Object.assign(function(t){return Ti(t,{SelectionSet:{enter(e,n,r){if(r&&r.kind===vt.OPERATION_DEFINITION)return;const{selections:i}=e;if(!i||i.some(s=>s.kind===vt.FIELD&&(s.name.value==="__typename"||s.name.value.lastIndexOf("__",0)===0)))return;const a=r;if(!(a.kind===vt.FIELD&&a.directives&&a.directives.some(s=>s.name.value==="export")))return{...e,selections:[...i,H2]}}}})},{added(t){return t===H2}});function G2(t,e){var n;return((n=Qi(t))==null?void 0:n.operation)===e}function V7(t){return G2(t,"mutation")}function U7(t){return G2(t,"subscription")}function Y2(t){return t===7||t===8}function Su(t){return!Y2(t)}class z7{constructor(){ae(this,"assumeImmutableResults",!1);ae(this,"fragmentWatches",new Oi(!0));ae(this,"onAfterBroadcast",e=>e());ae(this,"getFragmentDoc",Tl(a7,{max:Zi["cache.fragmentQueryDocuments"]||1e3,cache:pu,makeCacheKey:M7(this)}))}lookupFragment(e){return null}batch(e){const n=typeof e.optimistic=="string"?e.optimistic:e.optimistic===!1?null:void 0;let r;return this.performTransaction(()=>r=e.update(this),n),r}recordOptimisticTransaction(e,n){this.performTransaction(e,n)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,n=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:n})}watchFragment(e){const{fragment:n,fragmentName:r,from:i}=e,o=this.getFragmentDoc(n,r),s=(Array.isArray(i)?i:[i]).map(m=>m==null?m:this.toCacheId(m));if(!Array.isArray(i)){const m=this.watchSingleFragment(s[0],o,e);return i===null?m:C7(m,Symbol.for("apollo.transform.individualResult"),v=>({...v,data:v.data??{}}))}let c;function u(m){const v=m.reduce((b,y,w)=>(b.data.push(y.data),b.complete&&(b.complete=y.complete),b.dataState=b.complete?"complete":"partial",y.missing&&(b.missing||(b.missing={}),b.missing[w]=y.missing),b),{data:[],dataState:"complete",complete:!0});return ht(c,v)||(c=v),c}if(s.length===0)return H7;let d=!1;const h=s.map(m=>this.watchSingleFragment(m,o,e)),p=r7(h).pipe(yo(u),El({subscribe:()=>d=!0,unsubscribe:()=>d=!1}),$h({bufferSize:1,refCount:!0}));return Object.assign(p,{getCurrentResult:()=>{if(d&&c)return c;const m=h.map(v=>v.getCurrentResult());return u(m)}})}watchSingleFragment(e,n,r){if(e===null)return B7;const{optimistic:i=!0,variables:o}=r,a=[n,qi({id:e,optimistic:i,variables:o})],s=this.fragmentWatches.lookupArray(a);if(!s.observable){let d=function(p){const m=p.result;return(!u||!_2(n,{data:u.data},{data:m},r.variables))&&(u={data:m,dataState:p.complete?"complete":"partial",complete:p.complete},p.missing&&(u.missing=p.missing.missing)),u},c=!1,u;const h=new Bt(p=>{c=!0;const m=this.watch({variables:o,returnPartialData:!0,id:e,query:n,optimistic:i,immediate:!0,callback:v=>{h.dirty=!0,this.onAfterBroadcast(()=>{p.next(d(v)),h.dirty=!1})}});return()=>{c=!1,m(),this.fragmentWatches.removeArray(a)}}).pipe(zA(),bl({connector:()=>new Gb(1),resetOnRefCountZero:()=>UA(0)}));s.observable=Object.assign(h,{dirty:!1,getCurrentResult:()=>c&&u?u:d(this.diff({id:e,query:n,returnPartialData:!0,optimistic:i,variables:o}))})}return s.observable}readFragment(e,n=!!e.optimistic){const r=e.from!==void 0?this.toCacheId(e.from):e.id;return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:r,optimistic:n})}writeQuery({id:e,data:n,...r}){return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:n}))}writeFragment({data:e,fragment:n,fragmentName:r,...i}){const o=i.from!==void 0?this.toCacheId(i.from):i.id;return this.write(Object.assign(i,{query:this.getFragmentDoc(n,r),dataId:o,result:e}))}updateQuery(e,n){return this.batch({update(r){const i=r.readQuery(e),o=n(i);return o==null?i:(r.writeQuery({...e,data:o}),o)}})}updateFragment(e,n){return this.batch({update(r){const i=r.readFragment(e),o=n(i);return o==null?i:(r.writeFragment({...e,data:o}),o)}})}toCacheId(e){return typeof e=="string"?e:this.identify(e)}}const K2=Object.freeze({data:null,dataState:"complete",complete:!0}),B7=Object.assign(new Bt(t=>{t.next(K2)}),{dirty:!1,getCurrentResult:()=>K2}),Z2=Object.freeze({data:[],dataState:"complete",complete:!0}),H7=Object.assign(new Bt(t=>{t.next(Z2)}),{getCurrentResult:()=>Z2});class yp extends Error{constructor(n,r,i,o){super(n);ae(this,"message");ae(this,"path");ae(this,"query");ae(this,"variables");ae(this,"missing");if(this.message=n,this.path=r,this.query=i,this.variables=o,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let a=this.path.length-1;a>=0;--a)this.missing={[this.path[a]]:this.missing}}else this.missing=this.path;this.__proto__=yp.prototype}}const{hasOwnProperty:On}=Object.prototype;function Q2({__typename:t,id:e,_id:n},r){if(typeof t=="string"&&(r&&(r.keyObject=e!=null?{id:e}:n!=null?{_id:n}:void 0),e==null&&n!=null&&(e=n),e!=null))return`${t}:${typeof e=="number"||typeof e=="string"?e:JSON.stringify(e)}`}const W7={dataIdFromObject:Q2,resultCaching:!0};function G7(t){return Tr(W7,t)}const q2=/^[_a-z][_0-9a-z]*/i;function qa(t){const e=t.match(q2);return e?e[0]:t}function bp(t,e,n){return Bn(e)?En(e)?e.every(r=>bp(t,r,n)):t.selections.every(r=>{if(xl(r)&&gu(r,n)){const i=Za(r);return On.call(e,i)&&(!r.selectionSet||bp(r.selectionSet,e[i],n))}return!0}):!1}function Ja(t){return Bn(t)&&!Gt(t)&&!En(t)}function Y7(){return new Wa}function J2(t,e){const n=Sl(wl(t));return{fragmentMap:n,lookupFragment(r){let i=n[r];return!i&&e&&(i=e.lookup(r)),i||null}}}const wu={},Ep=()=>wu,X2={};class _u{constructor(e,n){ae(this,"policies");ae(this,"group");ae(this,"data",{});ae(this,"rootIds",{});ae(this,"refs",{});ae(this,"getFieldValue",(e,n)=>Gt(e)?this.get(e.__ref,n):e&&e[n]);ae(this,"canRead",e=>Gt(e)?this.has(e.__ref):typeof e=="object");ae(this,"toReference",(e,n)=>{if(typeof e=="string")return Ka(e);if(Gt(e))return e;const[r]=this.policies.identify(e);if(r){const i=Ka(r);return n&&this.merge(r,e),i}});this.policies=e,this.group=n}toObject(){return{...this.data}}has(e){return this.lookup(e,!0)!==void 0}get(e,n){if(this.group.depend(e,n),On.call(this.data,e)){const r=this.data[e];if(r&&On.call(r,n))return r[n]}if(n==="__typename"&&On.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof Ri)return this.parent.get(e,n)}lookup(e,n){if(n&&this.group.depend(e,"__exists"),On.call(this.data,e))return this.data[e];if(this instanceof Ri)return this.parent.lookup(e,n);if(this.policies.rootTypenamesById[e])return{}}merge(e,n){let r;Gt(e)&&(e=e.__ref),Gt(n)&&(n=n.__ref);const i=typeof e=="string"?this.lookup(r=e):e,o=typeof n=="string"?this.lookup(r=n):n;if(!o)return;Xe(typeof r=="string",99);const a=new Wa({reconciler:Q7}).merge(i,o);if(this.data[r]=a,a!==i&&(delete this.refs[r],this.group.caching)){const s={};i||(s.__exists=1),Object.keys(o).forEach(c=>{if(!i||i[c]!==a[c]){s[c]=1;const u=qa(c);u!==c&&!this.policies.hasKeyArgs(a.__typename,u)&&(s[u]=1),a[c]===void 0&&!(this instanceof Ri)&&delete a[c]}}),s.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===a.__typename&&delete s.__typename,Object.keys(s).forEach(c=>this.group.dirty(r,c))}}modify(e,n,r){const i=this.lookup(e);if(i){const o={};let a=!1,s=!0;const c={DELETE:wu,INVALIDATE:X2,isReference:Gt,toReference:this.toReference,canRead:this.canRead,readField:(u,d)=>this.policies.readField(typeof u=="string"?{fieldName:u,from:d||Ka(e)}:u,{store:this})};if(Object.keys(i).forEach(u=>{const d=qa(u);let h=i[u];if(h===void 0)return;const p=typeof n=="function"?n:n[u]||(r?void 0:n[d]);if(p){let m=p===Ep?wu:p(h,{...c,fieldName:d,storeFieldName:u,storage:this.getStorage(e,u)});m===X2?this.group.dirty(e,u):(m===wu&&(m=void 0),m!==h&&(o[u]=m,a=!0,h=m))}h!==void 0&&(s=!1)}),a)return this.merge(e,o),s&&(this instanceof Ri?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,n,r){const i=this.lookup(e);if(i){const o=this.getFieldValue(i,"__typename"),a=n&&r?this.policies.getStoreFieldName({typename:o,fieldName:n,args:r}):n;return this.modify(e,a?{[a]:Ep}:Ep,!!r)}return!1}evict(e,n){let r=!1;return e.id&&(On.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof Ri&&this!==n&&(r=this.parent.evict(e,n)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){const e=this.toObject(),n=[];return this.getRootIdSet().forEach(r=>{On.call(this.policies.rootTypenamesById,r)||n.push(r)}),n.length&&(e.__META={extraRootIds:n.sort()}),e}replace(e){if(Object.keys(this.data).forEach(n=>{e&&On.call(e,n)||this.delete(n)}),e){const{__META:n,...r}=e;Object.keys(r).forEach(i=>{this.merge(i,r[i])}),n&&n.extraRootIds.forEach(this.retain,this)}}retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){const n=--this.rootIds[e];return n||delete this.rootIds[e],n}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof Ri?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){const e=this.getRootIdSet(),n=this.toObject();e.forEach(i=>{On.call(n,i)&&(Object.keys(this.findChildRefIds(i)).forEach(e.add,e),delete n[i])});const r=Object.keys(n);if(r.length){let i=this;for(;i instanceof Ri;)i=i.parent;r.forEach(o=>i.delete(o))}return r}findChildRefIds(e){if(!On.call(this.refs,e)){const n=this.refs[e]={},r=this.data[e];if(!r)return n;const i=new Set([r]);i.forEach(o=>{Gt(o)&&(n[o.__ref]=!0),Bn(o)&&Object.keys(o).forEach(a=>{const s=o[a];Bn(s)&&i.add(s)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}get supportsResultCaching(){return this.group.caching}}class $2{constructor(e,n=null){ae(this,"caching");ae(this,"parent");ae(this,"d",null);ae(this,"keyMaker");this.caching=e,this.parent=n,this.resetCaching()}resetCaching(){this.d=this.caching?U2():null,this.keyMaker=new Oi}depend(e,n){if(this.d){this.d(Sp(e,n));const r=qa(n);r!==n&&this.d(Sp(e,r)),this.parent&&this.parent.depend(e,n)}}dirty(e,n){this.d&&this.d.dirty(Sp(e,n),n==="__exists"?"forget":"setDirty")}}function Sp(t,e){return e+"#"+t}function e6(t,e){Ol(t)&&t.group.depend(e,"__exists")}class K7 extends _u{constructor({policies:n,resultCaching:r=!0,seed:i}){super(n,new $2(r));ae(this,"stump",new Z7(this));ae(this,"storageTrie",new Oi);i&&this.replace(i)}addLayer(n,r){return this.stump.addLayer(n,r)}removeLayer(){return this}getStorage(){return this.storageTrie.lookupArray(arguments)}}_u.Root=K7;class Ri extends _u{constructor(n,r,i,o){super(r.policies,o);ae(this,"id");ae(this,"parent");ae(this,"replay");ae(this,"group");this.id=n,this.parent=r,this.replay=i,this.group=o,i(this)}addLayer(n,r){return new Ri(n,this,r,this.group)}removeLayer(n){const r=this.parent.removeLayer(n);return n===this.id?(this.group.caching&&Object.keys(this.data).forEach(i=>{const o=this.data[i],a=r.lookup(i);a?o?o!==a&&Object.keys(o).forEach(s=>{ht(o[s],a[s])||this.group.dirty(i,s)}):(this.group.dirty(i,"__exists"),Object.keys(a).forEach(s=>{this.group.dirty(i,s)})):this.delete(i)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(n){const r=this.parent.findChildRefIds(n);return On.call(this.data,n)?{...r,...super.findChildRefIds(n)}:r}getStorage(...n){let r=this.parent;for(;r.parent;)r=r.parent;return r.getStorage(...n)}}class Z7 extends Ri{constructor(e){super("EntityStore.Stump",e,()=>{},new $2(e.group.caching,e.group))}removeLayer(){return this}merge(e,n){return this.parent.merge(e,n)}}function Q7(t,e,n){const r=t[n],i=e[n];return ht(r,i)?r:i}function Ol(t){return!!(t&&t.supportsResultCaching)}const t6=new yu;function q7(t){var r,i;const e=(r=t.directives)==null?void 0:r.find(({name:o})=>o.value==="unmask");if(!e)return"mask";const n=(i=e.arguments)==null?void 0:i.find(({name:o})=>o.value==="mode");return n&&"value"in n.value&&n.value.value==="migrate"?"migrate":"unmask"}function n6(t,e,n){return t6.withValue(!0,()=>Rl(t,e,n,!1))}function J7(t,e){if(e.has(t))return e.get(t);const n=Array.isArray(t)?[]:{};return e.set(t,n),n}function Rl(t,e,n,r,i){const{knownChanged:o}=n,a=J7(t,n.mutableTargets);if(Array.isArray(t)){for(const[s,c]of Array.from(t.entries())){if(c===null){a[s]=null;continue}const u=Rl(c,e,n,r);o.has(u)&&o.add(a),a[s]=u}return o.has(a)?a:t}for(const s of e.selections){let c;if(r&&o.add(a),s.kind===vt.FIELD){const u=Za(s),d=s.selectionSet;if(c=a[u]||t[u],c===void 0)continue;if(d&&c!==null){const h=Rl(t[u],d,n,r);o.has(h)&&(c=h)}a[u]=c}if(s.kind===vt.INLINE_FRAGMENT&&(!s.typeCondition||n.cache.fragmentMatches(s,t.__typename))&&(c=Rl(t,s.selectionSet,n,r)),s.kind===vt.FRAGMENT_SPREAD){const u=s.name.value,d=n.fragmentMap[u]||(n.fragmentMap[u]=n.cache.lookupFragment(u));Xe(d,39,u);const h=q7(s);h!=="mask"&&(c=Rl(t,d.selectionSet,n,h==="migrate"))}o.has(c)&&o.add(a)}return"__typename"in t&&!("__typename"in a)&&(a.__typename=t.__typename),Object.keys(a).length!==Object.keys(t).length&&o.add(a),o.has(a)?a:t}function X7(t,e,n,r){const i=e.definitions.filter(a=>a.kind===vt.FRAGMENT_DEFINITION);typeof r>"u"&&(Xe(i.length===1,41,i.length),r=i[0].name.value);const o=i.find(a=>a.name.value===r);return Xe(!!o,42,r),t==null||ht(t,{})?t:n6(t,o.selectionSet,{operationName:o.name.value,fragmentMap:Sl(wl(e)),cache:n,mutableTargets:new WeakMap,knownChanged:new WeakSet})}function $7(t,e,n){var i;const r=Qi(e);return Xe(r,43),t==null?t:n6(t,r.selectionSet,{operationType:r.operation,operationName:(i=r.name)==null?void 0:i.value,fragmentMap:Sl(wl(e)),cache:n,mutableTargets:new WeakMap,knownChanged:new WeakSet})}const r6={};function wp(t){const e=JSON.stringify(t);return r6[e]||(r6[e]={})}function i6(t){const e=wp(t);return e.keyFieldsFn||(e.keyFieldsFn=(n,r)=>{const i=(a,s)=>r.readField(s,a),o=r.keyObject=_p(t,a=>{let s=Xa(r.storeObject,a,i);return s===void 0&&n!==r.storeObject&&On.call(n,a[0])&&(s=Xa(n,a,s6)),Xe(s!==void 0,102,a.join("."),n),s});return`${r.typename}:${JSON.stringify(o)}`})}function o6(t){const e=wp(t);return e.keyArgsFn||(e.keyArgsFn=(n,{field:r,variables:i,fieldName:o})=>{const a=_p(t,c=>{const u=c[0],d=u.charAt(0);if(d==="@"){if(r&&sp(r.directives)){const h=u.slice(1),p=r.directives.find(v=>v.name.value===h),m=p&&ep(p,i);return m&&Xa(m,c.slice(1))}return}if(d==="$"){const h=u.slice(1);if(i&&On.call(i,h)){const p=c.slice(0);return p[0]=h,Xa(i,p)}return}if(n)return Xa(n,c)}),s=JSON.stringify(a);return(n||s!=="{}")&&(o+=":"+s),o})}function _p(t,e){const n=new Wa;return a6(t).reduce((r,i)=>{let o=e(i);if(o!==void 0){for(let a=i.length-1;a>=0;--a)o={[i[a]]:o};r=n.merge(r,o)}return r},{})}function a6(t){const e=wp(t);if(!e.paths){const n=e.paths=[],r=[];t.forEach((i,o)=>{En(i)?(a6(i).forEach(a=>n.push(r.concat(a))),r.length=0):(r.push(i),En(t[o+1])||(n.push(r.slice(0)),r.length=0))})}return e.paths}function s6(t,e){return t[e]}function Xa(t,e,n){return n=n||s6,l6(e.reduce(function r(i,o){return En(i)?i.map(a=>r(a,o)):i&&n(i,o)},t))}function l6(t){return Bn(t)?En(t)?t.map(l6):_p(Object.keys(t).sort(),e=>Xa(t,e)):t}const c6=new yu,u6=new WeakMap;function Nl(t){let e=u6.get(t);return e||u6.set(t,e={vars:new Set,dep:U2()}),e}function f6(t){Nl(t).vars.forEach(e=>e.forgetCache(t))}function ek(t){Nl(t).vars.forEach(e=>e.attachCache(t))}function tk(t){const e=new Set,n=new Set,r=function(o){if(arguments.length>0){if(t!==o){t=o,e.forEach(s=>{Nl(s).dep.dirty(r),nk(s)});const a=Array.from(n);n.clear(),a.forEach(s=>s(t))}}else{const a=c6.getValue();a&&(i(a),Nl(a).dep(r))}return t};r.onNextChange=o=>(n.add(o),()=>{n.delete(o)});const i=r.attachCache=o=>(e.add(o),Nl(o).vars.add(r),r);return r.forgetCache=o=>e.delete(o),r}function nk(t){t.broadcastWatches&&t.broadcastWatches()}function Cp(t){return t.args!==void 0?t.args:t.field?ep(t.field,t.variables):null}const rk=()=>{},d6=(t,e)=>e.fieldName,h6=(t,e,{mergeObjects:n})=>n(t,e),p6=(t,e)=>e,ik=(t,e,{streamFieldInfo:n,existingData:r})=>{if(!t&&!r)return e;const i=[],o=t??r,a=n!=null&&n.isLastChunk?e.length:Math.max(o.length,e.length);for(let s=0;s<a;s++)i[s]=e[s]===void 0?o[s]:e[s];return i};class ok{constructor(e){ae(this,"config");ae(this,"typePolicies",{});ae(this,"toBeAdded",{});ae(this,"supertypeMap",new Map);ae(this,"fuzzySubtypes",new Map);ae(this,"cache");ae(this,"rootIdsByTypename",{});ae(this,"rootTypenamesById",{});ae(this,"usingPossibleTypes",!1);this.config=e,this.config={dataIdFromObject:Q2,...e},this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}identify(e,n){var d;const r=this,i=n&&(n.typename||((d=n.storeObject)==null?void 0:d.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];const o=n&&n.storeObject||e,a={...n,typename:i,storeObject:o,readField:n&&n.readField||((...h)=>{const p=xp(h,o);return r.readField(p,{store:r.cache.data,variables:p.variables})})};let s;const c=i&&this.getTypePolicy(i);let u=c&&c.keyFn||this.config.dataIdFromObject;return t6.withValue(!0,()=>{for(;u;){const h=u({...e,...o},a);if(En(h))u=i6(h);else{s=h;break}}}),s=s?String(s):void 0,a.keyObject?[s,a.keyObject]:[s]}addTypePolicies(e){Object.keys(e).forEach(n=>{const{queryType:r,mutationType:i,subscriptionType:o,...a}=e[n];r&&this.setRootTypename("Query",n),i&&this.setRootTypename("Mutation",n),o&&this.setRootTypename("Subscription",n),On.call(this.toBeAdded,n)?this.toBeAdded[n].push(a):this.toBeAdded[n]=[a]})}updateTypePolicy(e,n,r){const i=this.getTypePolicy(e),{keyFields:o,fields:a}=n;function s(c,u){c.merge=typeof u=="function"?u:u===!0?h6:u===!1?p6:c.merge}s(i,n.merge),i.keyFn=o===!1?rk:En(o)?i6(o):typeof o=="function"?o:i.keyFn,a&&Object.keys(a).forEach(c=>{let u=r[c];(!u||(u==null?void 0:u.typename)!==e)&&(u=r[c]={typename:e});const d=a[c];if(typeof d=="function")u.read=d;else{const{keyArgs:h,read:p,merge:m}=d;u.keyFn=h===!1?d6:En(h)?o6(h):typeof h=="function"?h:u.keyFn,typeof p=="function"&&(u.read=p),s(u,m)}u.read&&u.merge&&(u.keyFn=u.keyFn||d6)})}setRootTypename(e,n=e){const r="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[r];n!==i&&(Xe(!i||i===e,103,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[n]=r,this.rootTypenamesById[r]=n)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(n=>{this.getSupertypeSet(n,!0),e[n].forEach(r=>{this.getSupertypeSet(r,!0).add(n);const i=r.match(q2);(!i||i[0]!==r)&&this.fuzzySubtypes.set(r,new RegExp(r))})})}getTypePolicy(e){if(!On.call(this.typePolicies,e)){const r=this.typePolicies[e]={};r.fields={};let i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((o,a)=>{if(o.test(e)){const s=this.supertypeMap.get(a);s&&s.forEach(c=>i.add(c))}})),i&&i.size&&i.forEach(o=>{const{fields:a,...s}=this.getTypePolicy(o);Object.assign(r,s),Object.assign(r.fields,a)})}const n=this.toBeAdded[e];return n&&n.length&&n.splice(0).forEach(r=>{this.updateTypePolicy(e,r,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,n){if(e)return this.getTypePolicy(e).fields[n]}getSupertypeSet(e,n){let r=this.supertypeMap.get(e);return!r&&n&&this.supertypeMap.set(e,r=new Set),r}fragmentMatches(e,n,r,i){if(!e.typeCondition)return!0;if(!n)return!1;const o=e.typeCondition.name.value;if(n===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o)){const a=this.getSupertypeSet(n,!0),s=[a],c=d=>{const h=this.getSupertypeSet(d,!1);h&&h.size&&s.indexOf(h)<0&&s.push(h)};let u=!!(r&&this.fuzzySubtypes.size);for(let d=0;d<s.length;++d){const h=s[d];if(h.has(o))return a.has(o)||a.add(o),!0;h.forEach(c),u&&d===s.length-1&&bp(e.selectionSet,r,i)&&(u=!1,this.fuzzySubtypes.forEach((p,m)=>{const v=n.match(p);v&&v[0]===n&&c(m)}))}}return!1}hasKeyArgs(e,n){const r=this.getFieldPolicy(e,n);return!!(r&&r.keyFn)}getStoreFieldName(e){const{typename:n,fieldName:r}=e,i=this.getFieldPolicy(n,r);let o,a=i&&i.keyFn;if(a&&n){const s={typename:n,fieldName:r,field:e.field||null,variables:e.variables},c=Cp(e);for(;a;){const u=a(c,s);if(En(u))a=o6(u);else{o=u||r;break}}}return o===void 0&&(o=e.field?S7(e.field,e.variables):E2(r,Cp(e))),o===!1?r:r===qa(o)?o:r+":"+o}readField(e,n){const r=e.from;if(!r||!(e.field||e.fieldName))return;if(e.typename===void 0){const d=n.store.getFieldValue(r,"__typename");d&&(e.typename=d)}const o=this.getStoreFieldName(e),a=qa(o),s=n.store.getFieldValue(r,o),c=this.getFieldPolicy(e.typename,a),u=c&&c.read;if(u){const d=m6(this,r,e,n,n.store.getStorage(Gt(r)?r.__ref:r,o));return c6.withValue(this.cache,u,[s,d])}return s}getReadFunction(e,n){const r=this.getFieldPolicy(e,n);return r&&r.read}getMergeFunction(e,n,r){let i=this.getFieldPolicy(e,n),o=i&&i.merge;return!o&&r&&(i=this.getTypePolicy(r),o=i&&i.merge),o}runMergeFunction(e,n,{field:r,typename:i,merge:o,path:a},s,c){var p,m,v;const u=e;if(o===h6)return g6(s.store)(e,n);if(o===p6)return n;s.overwrite&&(e=void 0);const d=(v=(m=(p=s.extensions)==null?void 0:p[Eo])==null?void 0:m.deref())==null?void 0:v.peekArray(a);if(d){const{current:b,previous:y}=d;if(y&&ht(y.incoming,n)&&ht(y.streamFieldInfo,b))return y.result}const h=o(e,n,ak(this,void 0,{typename:i,fieldName:r.name.value,field:r,variables:s.variables,path:a},s,c||{},u));return d&&(d.previous={incoming:n,streamFieldInfo:d.current,result:h}),h}}function m6(t,e,n,r,i){const o=t.getStoreFieldName(n),a=qa(o),s=n.variables||r.variables,{toReference:c,canRead:u}=r.store;return{args:Cp(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:Gt,toReference:c,storage:i,cache:t.cache,canRead:u,readField(...d){return t.readField(xp(d,e,s),r)},mergeObjects:g6(r.store)}}function ak(t,e,n,r,i,o){var c;const a={...m6(t,e,n,r,i),extensions:r.extensions,existingData:o},s=r.extensions;if(s&&Eo in s){const{[Eo]:u,...d}=s,h=(c=u==null?void 0:u.deref())==null?void 0:c.peekArray(n.path);h&&(a.streamFieldInfo=h.current),a.extensions=Object.keys(d).length===0?void 0:d}return a}function xp(t,e,n){const{0:r,1:i,length:o}=t;let a;return typeof r=="string"?a={fieldName:r,from:o>1?i:e}:(a={...r},On.call(a,"from")||(a.from=e)),a.variables===void 0&&(a.variables=n),a}function g6(t){return function(n,r){if(En(n)||En(r))throw Br(106);if(Bn(n)&&Bn(r)){const i=t.getFieldValue(n,"__typename"),o=t.getFieldValue(r,"__typename");if(i&&o&&i!==o)return r;if(Gt(n)&&Ja(r))return t.merge(n.__ref,r),n;if(Ja(n)&&Gt(r))return t.merge(n,r.__ref),r;if(Ja(n)&&Ja(r))return{...n,...r}}return r}}function v6(t){return[t.selectionSet,t.objectOrReference,t.context]}class sk{constructor(e){ae(this,"executeSelectionSet");ae(this,"executeSubSelectedArray");ae(this,"config");ae(this,"knownResults",new WeakMap);this.config=e,this.executeSelectionSet=Tl(n=>{const r=v6(n),i=this.executeSelectionSet.peek(...r);return i||(e6(n.context.store,n.enclosingRef.__ref),this.execSelectionSetImpl(n))},{max:Zi["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:v6,makeCacheKey(n,r,i){if(Ol(i.store))return i.store.makeCacheKey(n,Gt(r)?r.__ref:r,i.varString)}}),this.executeSubSelectedArray=Tl(n=>(e6(n.context.store,n.enclosingRef.__ref),this.execSubSelectedArrayImpl(n)),{max:Zi["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:n,array:r,context:i}){if(Ol(i.store))return i.store.makeCacheKey(n,r,i.varString)}})}diffQueryAgainstStore({store:e,query:n,rootId:r="ROOT_QUERY",variables:i,returnPartialData:o=!0}){const a=this.config.cache.policies;i={...op(l7(n)),...i};const s=Ka(r),c=this.executeSelectionSet({selectionSet:ap(n).selectionSet,objectOrReference:s,enclosingRef:s,context:{store:e,query:n,policies:a,variables:i,varString:qi(i),...J2(n,this.config.fragments)}});let u;c.missing&&(u=new yp(lk(c.missing),c.missing,n,i));const d=!u,{result:h}=c;return{result:d?h:o?Object.keys(h).length===0?null:h:null,complete:d,missing:u}}isFresh(e,n,r,i){if(Ol(i.store)&&this.knownResults.get(e)===r){const o=this.executeSelectionSet.peek(r,n,i);if(o&&e===o.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:n,enclosingRef:r,context:i}){if(Gt(n)&&!i.policies.rootTypenamesById[n.__ref]&&!i.store.has(n.__ref))return{result:{},missing:`Dangling reference to missing ${n.__ref} object`};const{variables:o,policies:a,store:s}=i,c=s.getFieldValue(n,"__typename"),u=[];let d;const h=new Wa;typeof c=="string"&&!a.rootIdsByTypename[c]&&u.push({__typename:c});function p(w,C){return w.missing&&(d=h.merge(d,{[C]:w.missing})),w.result}const m=new Set(e.selections);m.forEach(w=>{if(gu(w,o))if(xl(w)){let C=a.readField({fieldName:w.name.value,field:w,variables:i.variables,from:n},i);const k=Za(w);C===void 0?W2.added(w)||(d=h.merge(d,{[k]:`Can't find field '${w.name.value}' on ${Gt(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)}`})):En(C)?C.length>0&&(C=p(this.executeSubSelectedArray({field:w,array:C,enclosingRef:r,context:i}),k)):w.selectionSet&&C!=null&&(C=p(this.executeSelectionSet({selectionSet:w.selectionSet,objectOrReference:C,enclosingRef:Gt(C)?C:r,context:i}),k)),C!==void 0&&u.push({[k]:C})}else{const C=mu(w,i.lookupFragment);if(!C&&w.kind===vt.FRAGMENT_SPREAD)throw Br(107,w.name.value);C&&a.fragmentMatches(C,c)&&C.selectionSet.selections.forEach(m.add,m)}});const b={result:p7(u),missing:d},y=b;return y.result&&this.knownResults.set(y.result,e),y}execSubSelectedArrayImpl({field:e,array:n,enclosingRef:r,context:i}){let o,a=new Wa;function s(c,u){return c.missing&&(o=a.merge(o,{[u]:c.missing})),c.result}return e.selectionSet&&(n=n.filter(c=>c===void 0||i.store.canRead(c))),n=n.map((c,u)=>c===null?null:En(c)?s(this.executeSubSelectedArray({field:e,array:c,enclosingRef:r,context:i}),u):e.selectionSet?s(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:c,enclosingRef:Gt(c)?c:r,context:i}),u):c),{result:n,missing:o}}}function lk(t){try{JSON.stringify(t,(e,n)=>{if(typeof n=="string")throw n;return n})}catch(e){return e}}function Ap(t,e,n){const r=`${e}${n}`;let i=t.flavors.get(r);return i||t.flavors.set(r,i=t.clientOnly===e&&t.deferred===n?t:{...t,clientOnly:e,deferred:n}),i}class ck{constructor(e,n,r){ae(this,"cache");ae(this,"reader");ae(this,"fragments");this.cache=e,this.reader=n,this.fragments=r}writeToStore(e,{query:n,result:r,dataId:i,variables:o,overwrite:a,extensions:s}){const c=Qi(n),u=Y7();o={...op(c),...o};const d={store:e,written:{},merge(p,m){return u.merge(p,m)},variables:o,varString:qi(o),...J2(n,this.fragments),overwrite:!!a,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:s},h=this.processSelectionSet({result:r||{},dataId:i,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:d,path:[]});if(!Gt(h))throw Br(109,r);return d.incomingById.forEach(({storeObject:p,mergeTree:m,fieldNodeSet:v},b)=>{const y=Ka(b);if(m&&m.map.size){const w=this.applyMerges(m,y,p,d);if(Gt(w))return;p=w}e.merge(b,p)}),e.retain(h.__ref),h}processSelectionSet({dataId:e,result:n,selectionSet:r,context:i,mergeTree:o,path:a}){const{policies:s}=this.cache;let c={};const u=e&&s.rootTypenamesById[e]||Tp(n,r,i.fragmentMap)||e&&i.store.get(e,"__typename");typeof u=="string"&&(c.__typename=u);const d=(...p)=>{const m=xp(p,c,i.variables);if(Gt(m.from)){const v=i.incomingById.get(m.from.__ref);if(v){const b=s.readField({...m,from:v.storeObject},i);if(b!==void 0)return b}}return s.readField(m,i)},h=new Set;this.flattenFields(r,n,i,u).forEach((p,m)=>{var w;const v=Za(m),b=n[v],y=[...a,m.name.value];if(h.add(m),b!==void 0){const C=s.getStoreFieldName({typename:u,fieldName:m.name.value,field:m,variables:p.variables}),k=b6(o,C);let x=this.processFieldValue(b,m,m.selectionSet?Ap(p,!1,!1):p,k,y),S;m.selectionSet&&(Gt(x)||Ja(x))&&(S=d("__typename",x));const A=s.getMergeFunction(u,m.name.value,S);A?k.info={field:m,typename:u,merge:A,path:y}:Ya(["stream"],m)&&Array.isArray(x)&&((w=p.extensions)!=null&&w[Eo])?k.info={field:m,typename:u,merge:ik,path:y}:E6(o,C),c=p.merge(c,{[C]:x})}});try{const[p,m]=s.identify(n,{typename:u,selectionSet:r,fragmentMap:i.fragmentMap,storeObject:c,readField:d});e=e||p,m&&(c=i.merge(c,m))}catch(p){if(!e)throw p}if(typeof e=="string"){const p=Ka(e),m=i.written[e]||(i.written[e]=[]);if(m.indexOf(r)>=0||(m.push(r),this.reader&&this.reader.isFresh(n,p,r,i)))return p;const v=i.incomingById.get(e);return v?(v.storeObject=i.merge(v.storeObject,c),v.mergeTree=kp(v.mergeTree,o),h.forEach(b=>v.fieldNodeSet.add(b))):i.incomingById.set(e,{storeObject:c,mergeTree:Cu(o)?void 0:o,fieldNodeSet:h}),p}return c}processFieldValue(e,n,r,i,o){return!n.selectionSet||e===null?e:En(e)?e.map((a,s)=>{const c=this.processFieldValue(a,n,r,b6(i,s),[...o,s]);return E6(i,s),c}):this.processSelectionSet({result:e,selectionSet:n.selectionSet,context:r,mergeTree:i,path:o})}flattenFields(e,n,r,i=Tp(n,e,r.fragmentMap)){const o=new Map,{policies:a}=this.cache,s=new Oi(!1);return(function c(u,d){const h=s.lookup(u,d.clientOnly,d.deferred);h.visited||(h.visited=!0,u.selections.forEach(p=>{if(!gu(p,r.variables))return;let{clientOnly:m,deferred:v}=d;if(!(m&&v)&&sp(p.directives)&&p.directives.forEach(b=>{const y=b.name.value;if(y==="client"&&(m=!0),y==="defer"){const w=ep(b,r.variables);(!w||w.if!==!1)&&(v=!0)}}),xl(p)){const b=o.get(p);b&&(m=m&&b.clientOnly,v=v&&b.deferred),o.set(p,Ap(r,m,v))}else{const b=mu(p,r.lookupFragment);if(!b&&p.kind===vt.FRAGMENT_SPREAD)throw Br(111,p.name.value);b&&a.fragmentMatches(b,i,n,r.variables)&&c(b.selectionSet,Ap(r,m,v))}}))})(e,r),o}applyMerges(e,n,r,i,o){if(e.map.size&&!Gt(r)){const a=!En(r)&&(Gt(n)||Ja(n))?n:void 0,s=r;a&&!o&&(o=[Gt(a)?a.__ref:a]);let c;const u=(d,h)=>En(d)?typeof h=="number"?d[h]:void 0:i.store.getFieldValue(d,String(h));e.map.forEach((d,h)=>{const p=u(a,h),m=u(s,h);if(m===void 0)return;o&&o.push(h);const v=this.applyMerges(d,p,m,i,o);v!==m&&(c=c||new Map,c.set(h,v)),o&&Xe(o.pop()===h)}),c&&(r=En(s)?s.slice(0):{...s},c.forEach((d,h)=>{r[h]=d}))}return e.info?this.cache.policies.runMergeFunction(n,r,e.info,i,o&&i.store.getStorage(...o)):r}}const y6=[];function b6({map:t},e){return t.has(e)||t.set(e,y6.pop()||{map:new Map}),t.get(e)}function kp(t,e){if(t===e||!e||Cu(e))return t;if(!t||Cu(t))return e;const n=t.info&&e.info?{...t.info,...e.info}:t.info||e.info,r=t.map.size&&e.map.size,i=r?new Map:t.map.size?t.map:e.map,o={info:n,map:i};if(r){const a=new Set(e.map.keys());t.map.forEach((s,c)=>{o.map.set(c,kp(s,e.map.get(c))),a.delete(c)}),a.forEach(s=>{o.map.set(s,kp(e.map.get(s),t.map.get(s)))})}return o}function Cu(t){return!t||!(t.info||t.map.size)}function E6({map:t},e){const n=t.get(e);n&&Cu(n)&&(y6.push(n),t.delete(e))}function Tp(t,e,n){let r;for(const i of e.selections)if(xl(i)){if(i.name.value==="__typename")return t[Za(i)]}else r?r.push(i):r=[i];if(typeof t.__typename=="string")return t.__typename;if(r)for(const i of r){const o=Tp(t,mu(i,n).selectionSet,n);if(typeof o=="string")return o}}class uk extends z7{constructor(n={}){super();ae(this,"data");ae(this,"optimisticData");ae(this,"config");ae(this,"watches",new Set);ae(this,"storeReader");ae(this,"storeWriter");ae(this,"addTypenameTransform",new Ji(W2));ae(this,"maybeBroadcastWatch");ae(this,"assumeImmutableResults",!0);ae(this,"policies");ae(this,"makeVar",tk);ae(this,"txCount",0);this.config=G7(n),this.policies=new ok({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){const n=this.data=new _u.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=n.stump,this.resetResultCache()}resetResultCache(){const{fragments:n}=this.config;this.addTypenameTransform.resetCache(),n==null||n.resetCaches(),this.storeWriter=new ck(this,this.storeReader=new sk({cache:this,fragments:n}),n),this.maybeBroadcastWatch=Tl((r,i)=>this.broadcastWatch(r,i),{max:Zi["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:r=>{const i=r.optimistic?this.optimisticData:this.data;if(Ol(i)){const{optimistic:o,id:a,variables:s}=r;return i.makeCacheKey(r.query,r.callback,qi({optimistic:o,id:a,variables:s}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(r=>r.resetCaching())}restore(n){return this.init(),n&&this.data.replace(n),this}extract(n=!1){return(n?this.optimisticData:this.data).extract()}read(n){const{returnPartialData:r=!1}=n;return this.storeReader.diffQueryAgainstStore({...n,store:n.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r}).result}write(n){try{return++this.txCount,this.storeWriter.writeToStore(this.data,n)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}modify(n){if(On.call(n,"id")&&!n.id)return!1;const r=n.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(n.id||"ROOT_QUERY",n.fields,!1)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}diff(n){return this.storeReader.diffQueryAgainstStore({...n,store:n.optimistic?this.optimisticData:this.data,rootId:n.id||"ROOT_QUERY",config:this.config})}watch(n){return this.watches.size||ek(this),this.watches.add(n),n.immediate&&this.maybeBroadcastWatch(n),()=>{this.watches.delete(n)&&!this.watches.size&&f6(this),this.maybeBroadcastWatch.forget(n)}}gc(n){qi.reset(),ia.reset();const r=this.optimisticData.gc();return n&&!this.txCount&&n.resetResultCache&&this.resetResultCache(),r}retain(n,r){return(r?this.optimisticData:this.data).retain(n)}release(n,r){return(r?this.optimisticData:this.data).release(n)}identify(n){if(Gt(n))return n.__ref;try{return this.policies.identify(n)[0]}catch{}}evict(n){if(!n.id){if(On.call(n,"id"))return!1;n={...n,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(n,this.data)}finally{!--this.txCount&&n.broadcast!==!1&&this.broadcastWatches()}}reset(n){return this.init(),qi.reset(),n&&n.discardWatches?(this.watches.forEach(r=>this.maybeBroadcastWatch.forget(r)),this.watches.clear(),f6(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(n){const r=this.optimisticData.removeLayer(n);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())}batch(n){const{update:r,optimistic:i=!0,removeOptimistic:o,onWatchUpdated:a}=n;let s;const c=d=>{const{data:h,optimisticData:p}=this;++this.txCount,d&&(this.data=this.optimisticData=d);try{return s=r(this)}finally{--this.txCount,this.data=h,this.optimisticData=p}},u=new Set;return a&&!this.txCount&&this.broadcastWatches({...n,onWatchUpdated(d){return u.add(d),!1}}),typeof i=="string"?this.optimisticData=this.optimisticData.addLayer(i,c):i===!1?c(this.data):c(),typeof o=="string"&&(this.optimisticData=this.optimisticData.removeLayer(o)),a&&u.size?(this.broadcastWatches({...n,onWatchUpdated(d,h){const p=a.call(this,d,h);return p!==!1&&u.delete(d),p}}),u.size&&u.forEach(d=>this.maybeBroadcastWatch.dirty(d))):this.broadcastWatches(n),s}performTransaction(n,r){return this.batch({update:n,optimistic:r||r!==null})}transformDocument(n){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(n))}fragmentMatches(n,r){return this.policies.fragmentMatches(n,r)}lookupFragment(n){var r;return((r=this.config.fragments)==null?void 0:r.lookup(n))||null}resolvesClientField(n,r){return!!this.policies.getReadFunction(n,r)}broadcastWatches(n){if(!this.txCount){const r=this.onAfterBroadcast,i=new Set;this.onAfterBroadcast=o=>{i.add(o)};try{this.watches.forEach(o=>this.maybeBroadcastWatch(o,n)),i.forEach(o=>o())}finally{this.onAfterBroadcast=r}}}addFragmentsToDocument(n){const{fragments:r}=this.config;return r?r.transform(n):n}broadcastWatch(n,r){const{lastDiff:i}=n,o=this.diff(n);r&&(n.optimistic&&typeof r.optimistic=="string"&&(o.fromOptimisticTransaction=!0),r.onWatchUpdated&&r.onWatchUpdated.call(this,n,o,i)===!1)||(!i||!ht(i.result,o.result))&&n.callback(n.lastDiff=o,i)}}function Il(t,e){return typeof t=="object"&&t!==null&&t[Symbol.for("apollo.error")]===e}function Pl(t){Object.defineProperty(t,Symbol.for("apollo.error"),{value:t.name,enumerable:!1,writable:!1,configurable:!1})}function S6(t){return t.map(e=>e.message||"Error message not found.").join(`
|
|
40
|
+
`)}const Uc=class Uc extends Error{constructor(n){super(Uc.formatMessage(n,{defaultFormatMessage:S6}));ae(this,"errors");this.name="CombinedProtocolErrors",this.errors=n,Pl(this),Object.setPrototypeOf(this,Uc.prototype)}static is(n){return Il(n,"CombinedProtocolErrors")}};ae(Uc,"formatMessage",S6);let xu=Uc;function fk(t){return t!==null&&typeof t=="object"&&typeof t.message=="string"&&typeof t.name=="string"&&(typeof t.stack=="string"||typeof t.stack>"u")}class Op extends Error{static is(e){return Il(e,"UnconventionalError")}constructor(e){super("An error of unexpected shape occurred.",{cause:e}),this.name="UnconventionalError",Pl(this),Object.setPrototypeOf(this,Op.prototype)}}function w6(t){return t.filter(e=>e).map(e=>e.message||"Error message not found.").join(`
|
|
41
|
+
`)}const zc=class zc extends Error{constructor(n,r=n.errors||[]){super(zc.formatMessage(r,{result:n,defaultFormatMessage:w6}));ae(this,"errors");ae(this,"data");ae(this,"extensions");this.errors=r,this.data=n.data,this.extensions=n.extensions,this.name="CombinedGraphQLErrors",Pl(this),Object.setPrototypeOf(this,zc.prototype)}static is(n){return Il(n,"CombinedGraphQLErrors")}};ae(zc,"formatMessage",w6);let Xi=zc;const dk=new WeakSet;function hk(t){dk.add(t)}class Au extends Error{constructor(n,r){super(n);ae(this,"response");ae(this,"statusCode");ae(this,"bodyText");this.name="ServerError",this.response=r.response,this.statusCode=r.response.status,this.bodyText=r.bodyText,Pl(this),Object.setPrototypeOf(this,Au.prototype)}static is(n){return Il(n,"ServerError")}}class ku extends Error{constructor(n,r){super(n instanceof Error?n.message:"Could not parse server response",{cause:n});ae(this,"response");ae(this,"statusCode");ae(this,"bodyText");this.name="ServerParseError",this.response=r.response,this.statusCode=r.response.status,this.bodyText=r.bodyText,Pl(this),Object.setPrototypeOf(this,ku.prototype)}static is(n){return Il(n,"ServerParseError")}}const Ml=Symbol();function _6(t){return"extensions"in t?xu.is(t.extensions[Ml]):!1}function Rp(t){return fk(t)?t:typeof t=="string"?new Error(t,{cause:t}):new Op(t)}var Be;(function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error",t[t.streaming=9]="streaming"})(Be||(Be={}));const{assign:C6}=Object,$a={loading:!0,networkStatus:Be.loading,data:void 0,dataState:"empty",partial:!0},Np={loading:!1,networkStatus:Be.ready,data:void 0,dataState:"empty",partial:!0};d4=Symbol.observable;class Ip{constructor({queryManager:e,options:n,transformedQuery:r=e.transform(n.query)}){ae(this,"options");ae(this,"queryName");ae(this,"variablesUnknown",!1);ae(this,"_lastWrite");ae(this,"unsubscribeFromCache");ae(this,"input");ae(this,"subject");ae(this,"isTornDown");ae(this,"queryManager");ae(this,"subscriptions",new Set);ae(this,"waitForNetworkResult");ae(this,"lastQuery");ae(this,"linkSubscription");ae(this,"pollingInfo");ae(this,"subscribe");ae(this,"pipe");ae(this,d4);ae(this,"@@observable");ae(this,"stableLastResult");ae(this,"didWarnCacheOnlyPolling",!1);ae(this,"dirty",!1);ae(this,"notifyTimeout");ae(this,"activeOperations",new Set);ae(this,"operator",cp(e=>{const{query:n,variables:r,meta:i}=e;if(e.source==="setResult")return{query:n,variables:r,result:e.value,meta:i};if(e.kind==="C"||!Ll(e,this))return;let o;const a=this.subject.getValue();if(e.source==="cache"){if(o=e.value,o.networkStatus===Be.ready&&o.partial&&(!this.options.returnPartialData||a.result.networkStatus===Be.error)&&this.options.fetchPolicy!=="cache-only")return}else if(e.source==="network")this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),o=e.kind==="E"?{...Ll(a,e)?a.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:Be.error,loading:!1}:e.value,e.kind==="E"&&o.dataState==="streaming"&&(o.dataState="complete"),o.error&&(i.shouldEmit=1);else if(e.source==="newNetworkStatus"){const s=Ll(a,e)?a.result:this.getInitialResult(i.fetchPolicy),{resetError:c}=e.value,u=c?void 0:s.error,d=u?Be.error:Be.ready;o={...s,error:u,networkStatus:d}}return Xe(o),o.error||delete o.error,o.networkStatus=this.calculateNetworkStatus(o.networkStatus),o.loading=Su(o.networkStatus),o=this.maskResult(o),{query:n,variables:r,result:o,meta:i}}));this.queryManager=e,this.waitForNetworkResult=n.fetchPolicy==="network-only",this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);const{watchQuery:{fetchPolicy:i="cache-first"}={}}=e.defaultOptions,{fetchPolicy:o=i,initialFetchPolicy:a=o==="standby"?i:o}=n;n[up]&&(Xe(o==="standby",80),this.variablesUnknown=!0),this.lastQuery=r,this.options={...n,initialFetchPolicy:a,fetchPolicy:o,variables:this.getVariablesWithDefaults(n.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);const s=Qi(this.query);this.queryName=s&&s.name&&s.name.value}get query(){return this.lastQuery}get variables(){return this.options.variables}get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}initializeObservablesQueue(){this.subject=new lA({query:this.query,variables:this.variables,result:$a,meta:{}});const e=this.subject.pipe(El({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),cp(({query:n,variables:r,result:i,meta:o},a)=>{const{shouldEmit:s}=o;if(i===$a&&(a.previous=void 0,a.previousVariables=void 0),this.options.fetchPolicy==="standby"||s===2)return;if(s===1)return d();const{previous:c,previousVariables:u}=a;if(c){const h=this.queryManager.getDocumentInfo(n),p=this.queryManager.dataMasking,m=p?h.nonReactiveQuery:n;if((p||h.hasNonreactiveDirective?_2(m,c,i,r):ht(c,i))&&ht(u,r))return}if(s===3&&(!this.options.notifyOnNetworkStatusChange||ht(c,i)))return;return d();function d(){return a.previous=i,a.previousVariables=r,i}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new Ua,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}getCacheDiff({optimistic:e=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let n=e||this.options.fetchPolicy;this.queryManager.prioritizeCacheValues&&(n==="network-only"||n==="cache-and-network")&&(n="cache-first");const r=()=>{const i=this.getCacheDiff(),o=this.options.returnPartialData||i.complete?i.result??void 0:void 0;return this.maskResult({data:o,dataState:i.complete?"complete":o===void 0?"empty":"partial",loading:!i.complete,networkStatus:i.complete?Be.ready:Be.loading,partial:!i.complete})};switch(n){case"cache-only":return{...r(),loading:!1,networkStatus:Be.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:Be.loading};case"standby":return Np;default:return $a}}resubscribeCache(){var c;const{variables:e,fetchPolicy:n}=this.options,r=this.query,i=n==="standby"||n==="no-cache"||this.waitForNetworkResult,o=!Ll({query:r,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((i||o)&&((c=this.unsubscribeFromCache)==null||c.call(this)),i||!o)return;const a={query:r,variables:e,optimistic:!0,watcher:this,callback:u=>{const d=this.queryManager.getDocumentInfo(r);if((d.hasClientExports||d.hasForcedResolvers)&&(a.lastDiff=void 0),a.lastOwnDiff===u)return;const{result:h}=this.subject.getValue();!u.complete&&(h.error||h===$a||h===Np)||ht(h.data,u.result)||this.scheduleNotify()}},s=this.cache.watch(a);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,s()},{query:r,variables:e})}getCurrentResult(){const{result:e}=this.subject.getValue();let n=e.networkStatus===Be.error||this.hasObservers()||this.options.fetchPolicy==="no-cache"?e:this.getInitialResult();return n===$a&&(n=this.getInitialResult()),ht(this.stableLastResult,n)||(this.stableLastResult=n),this.stableLastResult}refetch(e){const{fetchPolicy:n}=this.options,r={pollInterval:0};return n==="no-cache"?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",e&&!ht(this.variables,e)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:Be.refetch})}fetchMore({query:e,variables:n,context:r,errorPolicy:i,updateQuery:o}){Xe(this.options.fetchPolicy!=="cache-only",82,Ha(this.query,"(anonymous)"));const a={...Tr(this.options,{errorPolicy:"none"},{query:e,context:r,errorPolicy:i}),variables:e?n:{...this.variables,...n},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};a.query=this.transformDocument(a.query),this.lastQuery=e?this.transformDocument(this.options.query):a.query;let s=!1;const c=this.options.fetchPolicy!=="no-cache";c||Xe(o,83);const{finalize:u,pushNotification:d}=this.pushOperation(Be.fetchMore);d({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});const{promise:h,operator:p}=x6(),{observable:m}=this.queryManager.fetchObservableWithInfo(a,{networkStatus:Be.fetchMore,exposeExtensions:!0}),v=m.pipe(p,p2(b=>b.kind==="N"&&b.source==="network")).subscribe({next:b=>{s=!1;const y=b.value,w=y[x2];if(Y2(b.value.networkStatus)&&u(),c){const C=this.getCacheDiff();this.cache.batch({update:k=>{o?k.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:w},x=>o(x,{fetchMoreResult:y.data,variables:a.variables})):k.writeQuery({query:a.query,variables:a.variables,data:y.data,extensions:w})},onWatchUpdated:(k,x)=>{if(k.watcher===this&&!ht(x.result,C.result)){s=!0;const S=this.getCurrentResult();Su(y.networkStatus)&&d({kind:"N",source:"network",value:{...S,networkStatus:y.networkStatus===Be.error?Be.ready:y.networkStatus,loading:!1,data:x.result,dataState:y.dataState==="streaming"?"streaming":"complete"}})}}})}else{const C=this.getCurrentResult(),k=o(C.data,{fetchMoreResult:y.data,variables:a.variables});d({kind:"N",value:{...C,networkStatus:Be.ready,loading:!1,data:k,dataState:C.dataState==="streaming"?"streaming":"complete"},source:"network"})}}});return lp(h.then(b=>Al(this.maskResult(b))).finally(()=>{if(v.unsubscribe(),u(),c&&!s){const b=this.getCurrentResult();b.dataState==="streaming"?d({kind:"N",source:"network",value:{...b,dataState:"complete",networkStatus:Be.ready}}):d({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(e){const n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:r=>{const{updateQuery:i,onError:o}=e,{error:a}=r;if(a){o?o(a):Xe.error(84,a);return}i&&this.updateQuery((s,c)=>i(s,{subscriptionData:r,...c}))}});return this.subscriptions.add(n),()=>{this.subscriptions.delete(n)&&n.unsubscribe()}}applyOptions(e){const n=Tr(this.options,e||{});C6(this.options,n),this.updatePolling()}async setVariables(e){return e=this.getVariablesWithDefaults(e),ht(this.variables,e)?Al(this.getCurrentResult()):(this.options.variables=e,this.hasObservers()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:Be.setVariables}):Al(this.getCurrentResult()))}updateQuery(e){const{queryManager:n}=this,{result:r,complete:i}=this.getCacheDiff({optimistic:!1}),o=e(r,{variables:this.variables,complete:!!i,previousData:r});o&&(this.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),n.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,n){if(n.nextFetchPolicy){const{fetchPolicy:r="cache-first",initialFetchPolicy:i=r}=n;r==="standby"||(typeof n.nextFetchPolicy=="function"?n.fetchPolicy=n.nextFetchPolicy.call(n,r,{reason:e,options:n,observable:this,initialFetchPolicy:i}):e==="variables-changed"?n.fetchPolicy=i:n.fetchPolicy=n.nextFetchPolicy)}return n.fetchPolicy}fetch(e,n,r,i){const o=this.options.fetchPolicy;e.context??(e.context={});let a=!1;const s=()=>{a=!0},c=y=>new Bt(w=>{try{return y.subscribe({next(C){a=!0,w.next(C)},error:C=>w.error(C),complete:()=>w.complete()})}finally{a||(m.override=n,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:h,variables:p,meta:{shouldEmit:3,fetchPolicy:o}}))}});let{observable:u,fromLink:d}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:n,query:r,onCacheHit:s,fetchQueryOperator:c,observableQuery:this});const{query:h,variables:p}=this,m={abort:()=>{b.unsubscribe()},query:h,variables:p};this.activeOperations.add(m);let v=n==Be.refetch||n==Be.setVariables;u=u.pipe(i,bl());const b=u.pipe(El({next:y=>{y.source==="newNetworkStatus"||y.kind==="N"&&y.value.loading?m.override=n:delete m.override},finalize:()=>this.activeOperations.delete(m)})).subscribe({next:y=>{const w={};v&&y.kind==="N"&&"loading"in y.value&&!y.value.loading&&(v=!1,w.shouldEmit=1),this.input.next({...y,query:h,variables:p,meta:w})}});return{fromLink:d,subscription:b,observable:u}}updatePolling(){if(this.queryManager.ssrMode)return;const{pollingInfo:e,options:{fetchPolicy:n,pollInterval:r}}=this,i=()=>{const{options:c}=this;return!c.pollInterval||!this.hasObservers()||c.fetchPolicy==="cache-only"||c.fetchPolicy==="standby"};if(i()){this.cancelPolling();return}if((e==null?void 0:e.interval)===r)return;const o=e||(this.pollingInfo={});o.interval=r;const a=()=>{var c,u;if(i())return this.cancelPolling();this.pollingInfo&&(!Su(this.networkStatus)&&!((u=(c=this.options).skipPollAttempt)!=null&&u.call(c))?this._reobserve({fetchPolicy:this.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},{newNetworkStatus:Be.poll}).then(s,s):s())},s=()=>{const c=this.pollingInfo;c&&(clearTimeout(c.timeout),c.timeout=setTimeout(a,c.interval))};s()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,n){this.isTornDown=!1;let{newNetworkStatus:r}=n||{};this.queryManager.obsQueries.add(this);const i=r===Be.refetch||r===Be.poll,o=this.variables,a=this.options.fetchPolicy,s=Tr(this.options,e||{});this.variablesUnknown&&(this.variablesUnknown=s.fetchPolicy==="standby");const c=i?s:C6(this.options,s),u=this.transformDocument(c.query);this.lastQuery=u,e&&"variables"in e&&(c.variables=this.getVariablesWithDefaults(e.variables)),i||(this.updatePolling(),e&&e.variables&&!ht(e.variables,o)&&c.fetchPolicy!=="standby"&&(c.fetchPolicy===a||typeof c.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",c),r===void 0&&(r=Be.setVariables)));const d=this.networkStatus;r||(r=Be.loading,d!==Be.loading&&(e!=null&&e.variables)&&!ht(e.variables,o)&&(r=Be.setVariables),c.fetchPolicy==="standby"&&(r=Be.ready)),c.fetchPolicy==="standby"&&this.cancelPolling(),this.resubscribeCache();const{promise:h,operator:p}=x6(c.fetchPolicy==="standby"?{data:void 0}:void 0),{subscription:m,observable:v,fromLink:b}=this.fetch(c,r,u,p);!i&&(b||!this.linkSubscription)&&(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=m);const y=Object.assign(lp(h.then(w=>Al(this.maskResult(w))).finally(()=>{!this.hasObservers()&&this.activeOperations.size===0&&this.tearDownQuery()})),{retain:()=>{const w=v.subscribe({}),C=()=>w.unsubscribe();return h.then(C,C),y}});return y}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){var e;this.isTornDown||(this.resetNotifications(),(e=this.unsubscribeFromCache)==null||e.call(this),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){const n=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return n===e.data?e:{...e,data:n}}resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){const r=this.queryManager.getDocumentInfo(this.query);if(r.hasClientExports||r.hasForcedResolvers)return}const{dirty:n}=this;if(this.resetNotifications(),n&&(this.options.fetchPolicy==="cache-only"||this.options.fetchPolicy==="cache-and-network"||!this.activeOperations.size)){const r=this.getCacheDiff();ht(r.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:r.result,dataState:r.complete?"complete":r.result?"partial":"empty",networkStatus:Be.ready,loading:!1,error:void 0,partial:!r.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}pushOperation(e){let n=!1;const{query:r,variables:i}=this,o=()=>{this.activeOperations.delete(a)},a={override:e,abort:()=>{n=!0,o()},query:r,variables:i};return this.activeOperations.add(a),{finalize:o,pushNotification:(s,c)=>{n||this.input.next({...s,query:r,variables:i,meta:{...c}})}}}calculateNetworkStatus(e){if(e===Be.streaming)return e;const n=Array.from(this.activeOperations.values()).reverse().find(r=>Ll(r,this)&&r.override!==void 0);return(n==null?void 0:n.override)??e}abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){const e=this.options.fetchPolicy==="cache-only";this.setResult(e?Np:$a,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,n){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...n}})}reobserveCacheFirst(){const{fetchPolicy:e,nextFetchPolicy:n}=this.options;e==="cache-and-network"||e==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,i){return this.nextFetchPolicy=n,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(r,i):e}}):this.reobserve()}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}}function Ll(t,e){return!!(t&&e&&t.query===e.query&&ht(t.variables,e.variables))}function x6(t){let e=t,n,r;const i=new Promise((a,s)=>{n=a,r=s}),o=El({next(a){if(a.kind==="E")return r(a.error);a.kind==="N"&&a.source!=="newNetworkStatus"&&!a.value.loading&&(e=a.value)},finalize:()=>{if(e)n(e);else{const a="The operation was aborted.",s="AbortError";r(typeof DOMException<"u"?new DOMException(a,s):Object.assign(new Error(a),{name:s}))}}});return{promise:i,operator:o}}const A6={},es=new WeakMap;function Pp(t,e){const n=t[e];typeof n=="function"&&(t[e]=function(){return es.set(t,(es.get(t)+1)%1e15),n.apply(this,arguments)})}const k6=new WeakMap;class Mp{constructor(e,n){ae(this,"lastRequestId",1);ae(this,"cache");ae(this,"queryManager");ae(this,"id");ae(this,"observableQuery");ae(this,"incremental");ae(this,"_lastWrite");const r=this.cache=e.cache,i=(k6.get(e)||0)+1;k6.set(e,i),this.id=i+"",this.observableQuery=n,this.queryManager=e,es.has(r)||(es.set(r,0),Pp(r,"evict"),Pp(r,"modify"),Pp(r,"reset"))}get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(e){(this.observableQuery||this)._lastWrite=e}resetLastWrite(){this.lastWrite=void 0}shouldWrite(e,n){var i,o;const{lastWrite:r}=this;return!(r&&r.dmCount===es.get(this.cache)&&ht(n,r.variables)&&ht(e.data,r.result.data)&&((i=e.extensions)==null?void 0:i[Eo])===((o=r.result.extensions)==null?void 0:o[Eo]))}get hasNext(){return this.incremental?this.incremental.hasNext:!1}maybeHandleIncrementalResult(e,n,r){const{incrementalHandler:i}=this.queryManager;return i.isIncrementalResult(n)?(this.incremental||(this.incremental=i.startRequest({query:r})),this.incremental.handle(e,n)):n}markQueryResult(e,{document:n,variables:r,errorPolicy:i,cacheWriteBehavior:o}){var d;const a={query:n,variables:r,returnPartialData:!0,optimistic:!0};(d=this.observableQuery)==null||d.resetNotifications();const s=o===0,c=s?void 0:this.cache.diff(a);let u=this.maybeHandleIncrementalResult(c==null?void 0:c.result,e,n);return s||(Lp(u,i)?this.cache.batch({onWatchUpdated:(h,p)=>{h.watcher===this.observableQuery&&(h.lastOwnDiff=p)},update:h=>{if(this.shouldWrite(u,r))h.writeQuery({query:n,data:u.data,variables:r,overwrite:o===1,extensions:u.extensions}),this.lastWrite={result:u,variables:r,dmCount:es.get(this.cache)};else if(c&&c.complete){u={...u,data:c.result};return}const p=h.diff(a);p.complete&&(u={...u,data:p.result})}}):this.lastWrite=void 0),u}markMutationResult(e,n,r=this.cache){const i=[],o=n.cacheWriteBehavior===0;let a=this.maybeHandleIncrementalResult(o?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(n.document).asQuery,variables:n.variables,optimistic:!1,returnPartialData:!0}).result,e,n.document);if(n.errorPolicy==="ignore"&&(a={...a,errors:[]}),Ga(a)&&n.errorPolicy==="none")return Promise.resolve(a);const s=()=>({...a,dataState:this.hasNext?"streaming":"complete"});if(!o&&Lp(a,n.errorPolicy)){i.push({result:a.data,dataId:"ROOT_MUTATION",query:n.document,variables:n.variables,extensions:a.extensions});const{updateQueries:u}=n;u&&this.queryManager.getObservableQueries("all").forEach(d=>{const h=d&&d.queryName;if(!h||!Object.hasOwnProperty.call(u,h))return;const p=u[h],{query:m,variables:v}=d,{result:b,complete:y}=d.getCacheDiff({optimistic:!1});if(y&&b){const w=p(b,{mutationResult:s(),queryName:m&&Ha(m)||void 0,queryVariables:v});w&&i.push({result:w,dataId:"ROOT_QUERY",query:m,variables:v})}})}let c=n.refetchQueries;if(typeof c=="function"&&(c=c(s())),i.length>0||(c||"").length>0||n.update||n.onQueryUpdated||n.removeOptimistic){const u=[];if(this.queryManager.refetchQueries({updateCache:d=>{o||i.forEach(p=>d.write(p));const{update:h}=n;if(h){if(!o){const p=d.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(n.document).asQuery,variables:n.variables,optimistic:!1,returnPartialData:!0});p.complete&&(a={...a,data:p.result})}this.hasNext||h(d,a,{context:n.context,variables:n.variables})}!o&&!n.keepRootFields&&!this.hasNext&&d.modify({id:"ROOT_MUTATION",fields(p,{fieldName:m,DELETE:v}){return m==="__typename"?p:v}})},include:c,optimistic:!1,removeOptimistic:n.removeOptimistic,onQueryUpdated:n.onQueryUpdated||null}).forEach(d=>u.push(d)),n.awaitRefetchQueries||n.onQueryUpdated)return Promise.all(u).then(()=>a)}return Promise.resolve(a)}markMutationOptimistic(e,n){const r=typeof e=="function"?e(n.variables,{IGNORE:A6}):e;return r===A6?!1:(this.cache.recordOptimisticTransaction(i=>{try{this.markMutationResult({data:r},n,i)}catch(o){Xe.error(o)}},this.id),!0)}markSubscriptionResult(e,{document:n,variables:r,errorPolicy:i,cacheWriteBehavior:o}){o!==0&&(Lp(e,i)&&this.cache.write({query:n,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:r,extensions:e.extensions}),this.queryManager.broadcastQueries())}}function Lp(t,e="none"){const n=e==="ignore"||e==="all";let r=!Ga(t);return!r&&n&&t.data&&(r=!0),r}class pk{constructor(e){ae(this,"defaultOptions");ae(this,"client");ae(this,"clientOptions");ae(this,"assumeImmutableResults");ae(this,"documentTransform");ae(this,"ssrMode");ae(this,"defaultContext");ae(this,"dataMasking");ae(this,"incrementalHandler");ae(this,"localState");ae(this,"queryDeduplication");ae(this,"prioritizeCacheValues",!1);ae(this,"onBroadcast");ae(this,"mutationStore");ae(this,"obsQueries",new Set);ae(this,"fetchCancelFns",new Map);ae(this,"transformCache",new ip(Zi["queryManager.getDocumentInfo"]||2e3));ae(this,"requestIdCounter",1);ae(this,"inFlightLinkObservables",new Oi(!1));ae(this,"noCacheWarningsByCause",new WeakSet);const n=new Ji(i=>this.cache.transformDocument(i),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;const r=e.documentTransform;this.documentTransform=r?n.concat(r).concat(n):n,this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches(Br(87))}cancelPendingFetches(e){this.fetchCancelFns.forEach(n=>n(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:n,optimisticResponse:r,updateQueries:i,refetchQueries:o=[],awaitRefetchQueries:a=!1,update:s,onQueryUpdated:c,fetchPolicy:u,errorPolicy:d,keepRootFields:h,context:p}){const m=new Mp(this);e=this.cache.transformForLink(this.transform(e));const{hasClientExports:v}=this.getDocumentInfo(e);n=this.getVariables(e,n),v&&(n=await this.localState.getExportedVariables({client:this.client,document:e,variables:n,context:p}));const b=this.mutationStore&&(this.mutationStore[m.id]={mutation:e,variables:n,loading:!0,error:null}),y=r&&m.markMutationOptimistic(r,{document:e,variables:n,cacheWriteBehavior:u==="no-cache"?0:2,errorPolicy:d,context:p,updateQueries:i,update:s,keepRootFields:h});return this.broadcastQueries(),new Promise((w,C)=>{const k={};return this.getObservableFromLink(e,{...p,optimisticResponse:y?r:void 0},n,u,{},!1).observable.pipe(T6(),za(x=>{const S={...x};return ta(m.markMutationResult(S,{document:e,variables:n,cacheWriteBehavior:u==="no-cache"?0:2,errorPolicy:d,context:p,update:s,updateQueries:i,awaitRefetchQueries:a,refetchQueries:o,removeOptimistic:y?m.id:void 0,onQueryUpdated:c,keepRootFields:h}))})).pipe(yo(x=>{if(Ga(x)&&d==="none")throw new Xi(Fp(x));return b&&(b.loading=!1,b.error=null),x})).subscribe({next:x=>{if(this.broadcastQueries(),!m.hasNext){const S={data:this.maskOperation({document:e,data:x.data,fetchPolicy:u,cause:k})};Ga(x)&&(S.error=new Xi(x)),Object.keys(x.extensions||{}).length&&(S.extensions=x.extensions),w(S)}},error:x=>{if(b&&(b.loading=!1,b.error=x),y&&this.cache.removeOptimistic(m.id),this.broadcastQueries(),d==="ignore")return w({data:void 0});if(d==="all")return w({data:void 0,error:x});C(x)}})})}fetchQuery(e,n){return bo(e.query,$o.QUERY),(async()=>LA(this.fetchObservableWithInfo(e,{networkStatus:n}).observable.pipe(cp(r=>{switch(r.kind){case"E":throw r.error;case"N":if(r.source!=="newNetworkStatus")return Al(r.value)}})),{defaultValue:{data:void 0}}))()}transform(e){return this.documentTransform.transformDocument(e)}getDocumentInfo(e){const{transformCache:n}=this;if(!n.has(e)){const i=Qi(e),o={hasClientExports:Ya(["client","export"],e,!0),hasForcedResolvers:d7(e),hasNonreactiveDirective:Ya(["nonreactive"],e),hasIncrementalDirective:Ya(["defer"],e),nonReactiveQuery:mk(e),clientQuery:Ya(["client"],e)?e:null,serverQuery:m7([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:i==null?void 0:i.operation,defaultVars:op(i),asQuery:{...e,definitions:e.definitions.map(a=>a.kind==="OperationDefinition"&&a.operation!=="query"?{...a,operation:"query"}:a)}};n.set(e,o)}const r=n.get(e);if(r.violation)throw r.violation;return r}getVariables(e,n){const r=this.getDocumentInfo(e).defaultVars,i=Object.entries(n??{}).map(([o,a])=>[o,a===void 0?r[o]:a]);return{...r,...Object.fromEntries(i)}}watchQuery(e){bo(e.query,$o.QUERY);const n=this.transform(e.query);return e={...e,variables:this.getVariables(n,e.variables)},typeof e.notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!0),new Ip({queryManager:this,options:e,transformedQuery:n})}query(e){const n=this.transform(e.query);return this.fetchQuery({...e,query:n}).then(r=>({...r,data:this.maskOperation({document:n,data:r==null?void 0:r.data,fetchPolicy:e.fetchPolicy})}))}generateRequestId(){return this.requestIdCounter++}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches(Br(89)),this.obsQueries.forEach(n=>{n.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){const n=new Set,r=new Map,i=new Map,o=new Set;return Array.isArray(e)&&e.forEach(a=>{if(typeof a=="string")r.set(a,a),i.set(a,!1);else if(h7(a)){const s=ia(this.transform(a));r.set(s,Ha(a)),i.set(s,!1)}else Bn(a)&&a.query&&o.add(a)}),this.obsQueries.forEach(a=>{const s=ia(this.transform(a.options.query));if(e==="all"){n.add(a);return}const{queryName:c,options:{fetchPolicy:u}}=a;e==="active"&&u==="standby"||(e==="active"||c&&i.has(c)||s&&i.has(s))&&(n.add(a),c&&i.set(c,!0),s&&i.set(s,!0))}),o.size&&o.forEach(a=>{const s=new Ip({queryManager:this,options:{...ra(this.defaultOptions.watchQuery,a),fetchPolicy:"network-only"}});n.add(s)}),n}refetchObservableQueries(e=!1){const n=[];return this.getObservableQueries(e?"all":"active").forEach(r=>{const{fetchPolicy:i}=r.options;(e||i!=="standby")&&i!=="cache-only"&&n.push(r.refetch())}),this.broadcastQueries(),Promise.all(n)}startGraphQLSubscription(e){let{query:n,variables:r}=e;const{fetchPolicy:i="cache-first",errorPolicy:o="none",context:a={},extensions:s={}}=e;bo(n,$o.SUBSCRIPTION),n=this.transform(n),r=this.getVariables(n,r);let c;const u=(this.getDocumentInfo(n).hasClientExports?ta(this.localState.getExportedVariables({client:this.client,document:n,variables:r,context:a})):na(r)).pipe(za(d=>{const{observable:h,restart:p}=this.getObservableFromLink(n,a,d,i,s),m=new Mp(this);return c=p,h.pipe(yo(v=>{m.markSubscriptionResult(v,{document:n,variables:d,errorPolicy:o,cacheWriteBehavior:i==="no-cache"?0:2});const b={data:v.data??void 0};return Ga(v)?b.error=new Xi(v):_6(v)&&(b.error=v.extensions[Ml],delete v.extensions[Ml]),v.extensions&&Object.keys(v.extensions).length&&(b.extensions=v.extensions),b.error&&o==="none"&&(b.data=void 0),o==="ignore"&&delete b.error,b}),hu(v=>na(o==="ignore"?{data:void 0}:{data:void 0,error:v})),p2(v=>!!(v.data||v.error)))}));return Object.assign(u,{restart:()=>c==null?void 0:c()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}getObservableFromLink(e,n,r,i,o,a=(n==null?void 0:n.queryDeduplication)??this.queryDeduplication){let s={};const{serverQuery:c,clientQuery:u,operationType:d,hasIncrementalDirective:h}=this.getDocumentInfo(e),p=Ha(e),m={client:this.client};if(c){const{inFlightLinkObservables:v,link:b}=this;try{let w=function(C){return new Bt(k=>{function x(){return C.subscribe({next:k.next.bind(k),complete:k.complete.bind(k),error:k.error.bind(k)})}let S=x();return s.restart||(s.restart=()=>{S.unsubscribe(),S=x()}),()=>{S.unsubscribe(),s.restart=void 0}})};const y=this.incrementalHandler.prepareRequest({query:c,variables:r,context:{...this.defaultContext,...n,queryDeduplication:a},extensions:o});if(n=y.context,a){const C=ia(c),k=qi(r);s=v.lookup(C,k),s.observable||(s.observable=gp(b,y,m).pipe(w,HA(()=>{v.peek(C,k)===s&&v.remove(C,k)}),d===$o.SUBSCRIPTION?bl():$h({refCount:!0})))}else s.observable=gp(b,y,m).pipe(w)}catch(y){s.observable=d2(()=>y)}}else s.observable=na({data:{}});if(u){const{operation:v}=Qi(e);Xe(!h,94,v[0].toUpperCase()+v.slice(1),p??"(anonymous)"),s.observable=s.observable.pipe(za(b=>ta(this.localState.execute({client:this.client,document:u,remoteResult:b,context:n,variables:r,fetchPolicy:i}))))}return{restart:()=>{var v;return(v=s.restart)==null?void 0:v.call(s)},observable:s.observable.pipe(hu(v=>{throw v=Rp(v),hk(v),v}))}}getResultsFromLink(e,{queryInfo:n,cacheWriteBehavior:r,observableQuery:i,exposeExtensions:o}){const a=n.lastRequestId=this.generateRequestId(),{errorPolicy:s}=e,c=this.cache.transformForLink(e.query);return this.getObservableFromLink(c,e.context,e.variables,e.fetchPolicy).observable.pipe(yo(u=>{const d=n.markQueryResult(u,{...e,document:c,cacheWriteBehavior:r}),h=Ga(d);if(h&&s==="none")throw n.resetLastWrite(),i==null||i.resetNotifications(),new Xi(Fp(d));const p={data:d.data,...n.hasNext?{loading:!0,networkStatus:Be.streaming,dataState:"streaming",partial:!0}:{dataState:d.data?"complete":"empty",loading:!1,networkStatus:Be.ready,partial:!d.data}};return o&&"extensions"in d&&(p[x2]=d.extensions),h&&(s==="none"&&(p.data=void 0,p.dataState="empty"),s!=="ignore"&&(p.error=new Xi(Fp(d)),p.dataState!=="streaming"&&(p.networkStatus=Be.error))),p}),hu(u=>{if(a>=n.lastRequestId&&s==="none")throw n.resetLastWrite(),i==null||i.resetNotifications(),u;const d={data:void 0,dataState:"empty",loading:!1,networkStatus:Be.ready,partial:!0};return s!=="ignore"&&(d.error=u,d.networkStatus=Be.error),na(d)}))}fetchObservableWithInfo(e,{networkStatus:n=Be.loading,query:r=e.query,fetchQueryOperator:i=c=>c,onCacheHit:o=()=>{},observableQuery:a,exposeExtensions:s}){const c=this.getVariables(r,e.variables);let{fetchPolicy:u="cache-first",errorPolicy:d="none",returnPartialData:h=!1,notifyOnNetworkStatusChange:p=!0,context:m={}}=e;this.prioritizeCacheValues&&(u==="network-only"||u==="cache-and-network")&&(u="cache-first");const v=Object.assign({},e,{query:r,variables:c,fetchPolicy:u,errorPolicy:d,returnPartialData:h,notifyOnNetworkStatusChange:p,context:m}),b=new Mp(this,a),y=S=>{v.variables=S;const A=u==="no-cache"?0:n===Be.refetch&&v.refetchWritePolicy!=="merge"?1:2,T=this.fetchQueryByPolicy(v,{queryInfo:b,cacheWriteBehavior:A,onCacheHit:o,observableQuery:a,exposeExtensions:s});return T.observable=T.observable.pipe(i),v.fetchPolicy!=="standby"&&(a==null||a.applyNextFetchPolicy("after-fetch",e)),T},w=()=>{this.fetchCancelFns.delete(b.id)};this.fetchCancelFns.set(b.id,S=>{C.next({kind:"E",error:S,source:"network"})});const C=new Ua;let k,x;if(this.getDocumentInfo(v.query).hasClientExports)k=ta(this.localState.getExportedVariables({client:this.client,document:v.query,variables:v.variables,context:v.context})).pipe(za(S=>y(S).observable)),x=!0;else{const S=y(v.variables);x=S.fromLink,k=S.observable}return{observable:new Bt(S=>{S.add(w),k.subscribe(S),C.subscribe(S)}).pipe(bl()),fromLink:x}}refetchQueries({updateCache:e,include:n,optimistic:r=!1,removeOptimistic:i=r?wb("refetchQueries"):void 0,onQueryUpdated:o}){const a=new Map;n&&this.getObservableQueries(n).forEach(c=>{if(c.options.fetchPolicy==="cache-only"||c.variablesUnknown)return;const u=c.getCurrentResult();a.set(c,{oq:c,lastDiff:{result:u==null?void 0:u.data,complete:!(u!=null&&u.partial)}})});const s=new Map;if(e){const c=new Set;this.cache.batch({update:e,optimistic:r&&i||!1,removeOptimistic:i,onWatchUpdated(u,d,h){const p=u.watcher;if(p instanceof Ip&&!c.has(p)){if(c.add(p),o){a.delete(p);let m=o(p,d,h);return m===!0&&(m=p.refetch().retain()),m!==!1&&s.set(p,m),m}o!==null&&p.options.fetchPolicy!=="cache-only"&&a.set(p,{oq:p,lastDiff:h,diff:d})}}})}return a.size&&a.forEach(({oq:c,lastDiff:u,diff:d})=>{let h;o&&(d||(d=c.getCacheDiff()),h=o(c,d,u)),(!o||h===!0)&&(h=c.refetch().retain()),h!==!1&&s.set(c,h)}),i&&this.cache.removeOptimistic(i),s}maskOperation(e){const{document:n,data:r}=e;return this.dataMasking?$7(r,n,this.cache):r}maskFragment(e){const{data:n,fragment:r,fragmentName:i}=e;return this.dataMasking?X7(n,r,this.cache,i):n}fetchQueryByPolicy({query:e,variables:n,fetchPolicy:r,errorPolicy:i,returnPartialData:o,context:a},{cacheWriteBehavior:s,onCacheHit:c,queryInfo:u,observableQuery:d,exposeExtensions:h}){const p=()=>this.cache.diff({query:e,variables:n,returnPartialData:!0,optimistic:!0}),m=(b,y)=>{const w=b.result,C=x=>(!b.complete&&!o&&(x=void 0),{data:x,dataState:b.complete?"complete":x?"partial":"empty",loading:Su(y),networkStatus:y,partial:!b.complete}),k=x=>na({kind:"N",value:C(x),source:"cache"});return(b.complete||o)&&this.getDocumentInfo(e).hasForcedResolvers?(c(),ta(this.localState.execute({client:this.client,document:e,remoteResult:w?{data:w}:void 0,context:a,variables:n,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:r}).then(x=>({kind:"N",value:C(x.data||void 0),source:"cache"})))):i==="none"&&y===Be.refetch&&b.missing?k(void 0):k(w||void 0)},v=()=>this.getResultsFromLink({query:e,variables:n,context:a,fetchPolicy:r,errorPolicy:i},{cacheWriteBehavior:s,queryInfo:u,observableQuery:d,exposeExtensions:h}).pipe(T6(),WA(),yo(b=>({...b,source:"network"})));switch(r){default:case"cache-first":{const b=p();return b.complete?{fromLink:!1,observable:m(b,Be.ready)}:o?{fromLink:!0,observable:Jh(m(b,Be.loading),v())}:{fromLink:!0,observable:v()}}case"cache-and-network":{const b=p();return b.complete||o?{fromLink:!0,observable:Jh(m(b,Be.loading),v())}:{fromLink:!0,observable:v()}}case"cache-only":return{fromLink:!1,observable:Jh(m(p(),Be.ready))};case"network-only":return{fromLink:!0,observable:v()};case"no-cache":return{fromLink:!0,observable:v()};case"standby":return{fromLink:!1,observable:yl}}}}function T6(){let t=!1;return El({next(){t=!0},complete(){Xe(t,98)}})}function mk(t){return Ti(t,{FragmentSpread:e=>{var n;if(!((n=e.directives)!=null&&n.some(r=>r.name.value==="unmask")))return{...e,directives:[...e.directives||[],{kind:vt.DIRECTIVE,name:{kind:vt.NAME,value:"nonreactive"}}]}}})}function Fp(t){var i;if(((i=t.extensions)==null?void 0:i[Eo])==null)return t;const{extensions:{[Eo]:e,...n},...r}=t;return Object.keys(n).length>0&&(r.extensions=n),r}class gk{constructor(e){ae(this,"link");ae(this,"cache");ae(this,"disableNetworkFetches");ae(this,"version");ae(this,"queryDeduplication");ae(this,"defaultOptions");ae(this,"devtoolsConfig");ae(this,"queryManager");ae(this,"devToolsHookCb");ae(this,"resetStoreCallbacks",[]);ae(this,"clearStoreCallbacks",[]);ae(this,"reFetchObservableQueries");ae(this,"maskedFragmentTransform",new Ji(y7));const{cache:n,documentTransform:r,ssrMode:i=!1,ssrForceFetchDelay:o=0,queryDeduplication:a=!0,defaultOptions:s,defaultContext:c,assumeImmutableResults:u=n.assumeImmutableResults,localState:d,devtools:h,dataMasking:p,link:m,incrementalHandler:v=new L7,experiments:b=[]}=e;this.link=m,this.cache=n,this.queryDeduplication=a,this.defaultOptions=s||{},this.devtoolsConfig={...h,enabled:(h==null?void 0:h.enabled)??Eb},this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=Ph,this.queryManager=new pk({client:this,defaultOptions:this.defaultOptions,defaultContext:c,documentTransform:r,queryDeduplication:a,ssrMode:i,dataMasking:!!p,clientOptions:e,incrementalHandler:v,assumeImmutableResults:u,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:d}),this.prioritizeCacheValues=i||o>0,o&&setTimeout(()=>{this.prioritizeCacheValues=!1},o),this.devtoolsConfig.enabled&&this.connectToDevTools(),b.forEach(y=>y.call(this,e))}set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}connectToDevTools(){if(typeof window>"u")return;const e=window,n=Symbol.for("apollo.devtools");(e[n]=e[n]||[]).push(this),e.__APOLLO_CLIENT__=this}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop()}watchQuery(e){return this.defaultOptions.watchQuery&&(e=ra(this.defaultOptions.watchQuery,e)),this.queryManager.watchQuery(e)}query(e){return this.defaultOptions.query&&(e=ra(this.defaultOptions.query,e)),this.queryManager.query(e)}mutate(e){const n=ra(Tr({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return bo(n.mutation,$o.MUTATION),this.queryManager.mutate(n)}subscribe(e){const n={},r=this.queryManager.startGraphQLSubscription(e),i=r.pipe(yo(o=>({...o,data:this.queryManager.maskOperation({document:e.query,data:o.data,fetchPolicy:e.fetchPolicy,cause:n})})));return Object.assign(i,{restart:r.restart})}readQuery(e,n=!1){return this.cache.readQuery({...e,query:this.transform(e.query)},n)}watchFragment(e){const n=this.queryManager.dataMasking;return this.cache.watchFragment({...e,fragment:this.transform(e.fragment,n)})}readFragment(e,n=!1){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},n)}writeQuery(e){const n=this.cache.writeQuery(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),n}writeFragment(e){const n=this.cache.writeFragment(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),n}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return gp(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(n=>n!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(n=>n!==e)}}refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){const n=this.queryManager.refetchQueries(e),r=[],i=[];n.forEach((a,s)=>{r.push(s),i.push(a)});const o=Promise.all(i);return o.queries=r,o.results=i,o.catch(a=>{}),o}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}transform(e,n=!1){const r=this.queryManager.transform(e);return n?this.maskedFragmentTransform.transformDocument(r):r}}const{hasOwnProperty:O6}=Object.prototype;function vk(t){return Bn(t)&&"payload"in t}async function*yk(t){var p;const e=new TextDecoder("utf-8"),n=(p=t.headers)==null?void 0:p.get("content-type"),r=n==null?void 0:n.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),i=`\r
|
|
42
|
+
--`+(r?r[1]??r[2]??r[3]??"-":"-");let o="";Xe(t.body&&typeof t.body.getReader=="function",62);const s=t.body.getReader();let c=!1,u=!1,d;const h=()=>u&&o[0]=="-"&&o[1]=="-";try{for(;!c;){({value:d,done:c}=await s.read());const m=typeof d=="string"?d:e.decode(d),v=o.length-i.length+1;o+=m;let b=o.indexOf(i,v);for(;b>-1&&!h();){u=!0;let y;[y,o]=[o.slice(0,b),o.slice(b+i.length)];const w=y.indexOf(`\r
|
|
43
|
+
\r
|
|
44
|
+
`),k=Ek(y.slice(0,w))["content-type"];if(k&&k.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");const x=y.slice(w);x&&(yield x),b=o.indexOf(i)}if(h())return}throw new Error("premature end of multipart body")}finally{s.cancel()}}async function bk(t,e){for await(const n of yk(t)){const r=R6(t,n);if(Object.keys(r).length!=0)if(vk(r)){if(Object.keys(r).length===1&&r.payload===null)return;let i={...r.payload};"errors"in r&&(i.extensions={...i.extensions,[Ml]:new xu(r.errors??[])}),e(i)}else e(r)}}function Ek(t){const e={};return t.split(`
|
|
45
|
+
`).forEach(n=>{const r=n.indexOf(":");if(r>-1){const i=n.slice(0,r).trim().toLowerCase(),o=n.slice(r+1).trim();e[i]=o}}),e}function R6(t,e){if(t.status>=300)throw new Au(`Response not successful: Received status code ${t.status}`,{response:t,bodyText:e});try{return JSON.parse(e)}catch(n){throw new ku(n,{response:t,bodyText:e})}}function Sk(t,e){try{return JSON.parse(e)}catch(n){throw new ku(n,{response:t,bodyText:e})}}function wk(t,e){const n=t.headers.get("content-type");return n!=null&&n.includes("application/graphql-response+json")?Sk(t,e):R6(t,e)}function _k(t){return e=>e.text().then(n=>{const r=wk(e,n);if(!Array.isArray(r)&&!O6.call(r,"data")&&!O6.call(r,"errors"))throw new Au(`Server response was malformed for query '${Array.isArray(t)?t.map(i=>i.operationName):t.operationName}'.`,{response:e,bodyText:n});return r})}const Ck={http:{includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},headers:{accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},options:{method:"POST"}},xk=(t,e)=>e(t);function Ak(t,e,...n){let r={},i={};n.forEach(d=>{var h;r={...r,...d.options,headers:{...r.headers,...d.headers}},d.credentials&&(r.credentials=d.credentials),r.headers.accept=(((h=d.http)==null?void 0:h.accept)||[]).concat(r.headers.accept).join(","),i={...i,...d.http}}),r.headers=kk(r.headers,i.preserveHeaderCase);const{operationName:o,extensions:a,variables:s,query:c}=t,u={operationName:o,variables:s};return i.includeExtensions&&Object.keys(a||{}).length&&(u.extensions=a),i.includeQuery&&(u.query=e(c,ia)),{options:r,body:u}}function kk(t,e){if(!e){const i={};return Object.keys(Object(t)).forEach(o=>{i[o.toLowerCase()]=t[o]}),i}const n={};Object.keys(Object(t)).forEach(i=>{n[i.toLowerCase()]={originalName:i,value:t[i]}});const r={};return Object.keys(n).forEach(i=>{r[n[i].originalName]=n[i].value}),r}const Tk=(t,e)=>{const r=t.getContext().uri;return r||(typeof e=="function"?e(t):e||"/graphql")};function Ok(t,e){const n=[],r=(u,d)=>{n.push(`${u}=${encodeURIComponent(d)}`)};if("query"in e&&r("query",e.query),e.operationName&&r("operationName",e.operationName),e.variables){let u;try{u=JSON.stringify(e.variables)}catch(d){return{parseError:d}}r("variables",u)}if(e.extensions){let u;try{u=JSON.stringify(e.extensions)}catch(d){return{parseError:d}}r("extensions",u)}let i="",o=t;const a=t.indexOf("#");a!==-1&&(i=t.substr(a),o=t.substr(0,a));const s=o.indexOf("?")===-1?"?":"&";return{newURI:o+s+n.join("&")+i}}const Rk=di(()=>fetch);function Nk(){}class Ik extends Tn{constructor(e={}){let{uri:n="/graphql",fetch:r,print:i=xk,includeExtensions:o,preserveHeaderCase:a,useGETForQueries:s,includeUnusedVariables:c=!1,...u}=e;const d={http:Tr({includeExtensions:o,preserveHeaderCase:a}),options:u.fetchOptions,credentials:u.credentials,headers:u.headers};super(h=>{let p=Tk(h,n);const m=h.getContext(),v={...m.http};U7(h.query)&&(v.accept=["multipart/mixed;boundary=graphql;subscriptionSpec=1.0",...v.accept||[]]);const b={http:v,options:m.fetchOptions,credentials:m.credentials,headers:m.headers},{options:y,body:w}=Ak(h,i,Ck,d,b);w.variables&&!c&&(w.variables=j7(w.variables,h.query));let C=new AbortController,k=()=>{C=void 0};if(y.signal){const x=y.signal,S=()=>{C==null||C.abort(x.reason)};x.addEventListener("abort",S,{once:!0}),k=()=>{C==null||C.signal.removeEventListener("abort",k),C=void 0,x.removeEventListener("abort",S),k=Nk},C.signal.addEventListener("abort",k,{once:!0})}return y.signal=C.signal,s&&!V7(h.query)&&(y.method="GET"),new Bt(x=>{if(y.method==="GET"){const{newURI:T,parseError:N}=Ok(p,w);if(N)throw N;p=T}else y.body=JSON.stringify(w);const S=r||di(()=>fetch)||Rk,A=x.next.bind(x);return S(p,y).then(T=>{var P;h.setContext({response:T});const N=(P=T.headers)==null?void 0:P.get("content-type");return N!==null&&/^multipart\/mixed/i.test(N)?bk(T,A):_k(h)(T).then(A)}).then(()=>{k(),x.complete()}).catch(T=>{k(),x.error(T)}),()=>{C&&C.abort()}})})}}class Pk extends Tn{constructor(e={}){super((n,r)=>{const i=n.client,o=i.queryManager.clientOptions,a=n.getContext();{const{name:s,version:c,transport:u="headers"}=Tr({},o.clientAwareness,e.clientAwareness,a.clientAwareness);u==="headers"&&n.setContext(({headers:d})=>({headers:Tr({"apollographql-client-name":s,"apollographql-client-version":c},d)}))}{const{transport:s="extensions"}=Tr({},o.enhancedClientAwareness,e.enhancedClientAwareness);s==="extensions"&&(n.extensions=Tr({clientLibrary:{name:"@apollo/client",version:i.version}},n.extensions)),s==="headers"&&n.setContext(({headers:c})=>({headers:Tr({"apollographql-library-name":"@apollo/client","apollographql-library-version":i.version},c)}))}return r(n)})}}class Mk extends Tn{constructor(e={}){const{left:n,right:r,request:i}=Tn.from([new Pk(e),new Ik(e)]);super(i),Object.assign(this,{left:n,right:r})}}function jp(t,e){const n=L.useRef(void 0);return(!n.current||!ht(n.current.deps,e))&&(n.current={value:t(),deps:e}),n.current.value}let Dp;function Lk(){}function Fk(){return Dp||(Dp=L.createContext(null)),L.useCallback(()=>{const t=console.error;try{return console.error=Lk,L.useContext(Dp),!0}catch{return!1}finally{console.error=t}},[])}const jk=Symbol.for("apollo.skipToken"),Dk=Symbol.for("apollo.hook.wrappers");function Vk(t,e,n){var o;const r=[n.queryManager,t.startsWith("use")?L.useContext(Fh()):void 0];let i=e;for(const a of r){const s=(o=a==null?void 0:a[Dk])==null?void 0:o[t];s&&(i=s(i))}return i}const Tu=m2?L.useLayoutEffect:L.useEffect,Uk=L["useSyncExternalStore"],zk=di(()=>navigator.product)=="ReactNative",Bk=di(()=>navigator.userAgent.indexOf("jsdom")>=0)||!1,Hk=(m2||zk)&&!Bk,Vp=Uk||((t,e,n)=>{const r=e(),[{inst:i},o]=L.useState({inst:{value:r,getSnapshot:e}});return Hk?L.useLayoutEffect(()=>{Object.assign(i,{value:r,getSnapshot:e}),Up(i)&&o({inst:i})},[t,r,e]):Object.assign(i,{value:r,getSnapshot:e}),L.useEffect(()=>(Up(i)&&o({inst:i}),t(function(){Up(i)&&o({inst:i})})),[t]),r});function Up({value:t,getSnapshot:e}){try{return t!==e()}catch{return!0}}const Wk=["refetch","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function Fl(t,e){const n=Xo(e==null?void 0:e.client),r=L.useRef(void 0),i=L.useRef(void 0),o=jp(()=>e,[e]),a=Fk();function s(){return n.watchQuery({...e,query:t,initialFetchPolicy:e==null?void 0:e.fetchPolicy,fetchPolicy:"standby",[up]:!0})}const[c,u]=L.useState(n),[d,h]=L.useState(s);c!==n&&(u(n),h(s()));const p=L.useCallback((k,x)=>{var A;const S=(A=i.current)==null?void 0:A.data;S&&!ht(S,k.data)&&(r.current=S),i.current=k,x()},[]),m=Vp(L.useCallback(k=>{const x=d.subscribe(S=>{ht(i.current,S)||p(S,k)});return()=>{x.unsubscribe()}},[d,p]),()=>i.current||N6,()=>N6),v=L.useMemo(()=>{const k={};for(const x of Wk)k[x]=function(...S){return Xe(i.current,29,x),d[x](...S)};return k},[d]);L.useEffect(()=>{const k={query:t,errorPolicy:o==null?void 0:o.errorPolicy,refetchWritePolicy:o==null?void 0:o.refetchWritePolicy,returnPartialData:o==null?void 0:o.returnPartialData,notifyOnNetworkStatusChange:o==null?void 0:o.notifyOnNetworkStatusChange,nextFetchPolicy:e==null?void 0:e.nextFetchPolicy,skipPollAttempt:e==null?void 0:e.skipPollAttempt};d.options.fetchPolicy!=="standby"&&(o!=null&&o.fetchPolicy)&&(k.fetchPolicy=o.fetchPolicy),d.applyOptions(k)},[t,d,o,e==null?void 0:e.nextFetchPolicy,e==null?void 0:e.skipPollAttempt]);const b=L.useCallback((...k)=>{Xe(!a(),30);const[x]=k;let S=d.options.fetchPolicy;return S==="standby"&&(S=d.options.initialFetchPolicy),d.reobserve({fetchPolicy:S,variables:x==null?void 0:x.variables,context:(x==null?void 0:x.context)??{}})},[d,a]),y=L.useRef(b);Tu(()=>{y.current=b});const w=L.useCallback((...k)=>y.current(...k),[]),C=L.useMemo(()=>{const{partial:k,...x}=m;return{...v,...x,client:n,previousData:r.current,variables:d.variables,observable:d,called:!!i.current}},[n,m,v,d]);return[w,C]}const N6={data:void 0,dataState:"empty",loading:!1,networkStatus:Be.ready,partial:!0};function wo(t,e){const n=Xo(e==null?void 0:e.client),[r,i]=L.useState(()=>I6(n)),o=L.useRef({result:r,mutationId:0,isMounted:!0,client:n,mutation:t,options:e});Tu(()=>{Object.assign(o.current,{client:n,options:e,mutation:t})});const a=L.useCallback((c={})=>{const{options:u,mutation:d}=o.current,h={...u,mutation:d},p=c.client||o.current.client,m=typeof c.context=="function"?c.context(u==null?void 0:u.context):c.context;!o.current.result.loading&&o.current.isMounted&&i(o.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:p});const v=++o.current.mutationId,b=ra(h,{...c,context:m});return lp(p.mutate(b).then(y=>{var S,A;const{data:w,error:C}=y,k=c.onError||((S=o.current.options)==null?void 0:S.onError);if(C&&k&&k(C,b),v===o.current.mutationId){const T={called:!0,loading:!1,data:w,error:C,client:p};o.current.isMounted&&!ht(o.current.result,T)&&i(o.current.result=T)}const x=c.onCompleted||((A=o.current.options)==null?void 0:A.onCompleted);return C||x==null||x(y.data,b),y},y=>{var C;if(v===o.current.mutationId&&o.current.isMounted){const k={loading:!1,error:y,data:void 0,called:!0,client:p};ht(o.current.result,k)||i(o.current.result=k)}const w=c.onError||((C=o.current.options)==null?void 0:C.onError);throw w&&w(y,b),y}))},[]),s=L.useCallback(()=>{if(o.current.isMounted){const c=I6(o.current.client);Object.assign(o.current,{mutationId:0,result:c}),i(c)}},[]);return L.useEffect(()=>{const c=o.current;return c.isMounted=!0,()=>{c.isMounted=!1}},[]),[a,{reset:s,...r}]}function I6(t){return{data:void 0,error:void 0,called:!1,loading:!1,client:t}}const jl=Symbol();function Dl(t,...[e]){"use no memo";return Vk("useQuery",Gk,Xo(typeof e=="object"?e.client:void 0))(t,e)}function Gk(t,e={}){const n=Xo(typeof e=="object"?e.client:void 0),{ssr:r}=typeof e=="object"?e:{},i=Yk(t,e,n.defaultOptions.watchQuery);function o(m){const v=n.watchQuery(i);return{client:n,query:t,observable:v,resultData:{current:v.getCurrentResult(),previousData:m==null?void 0:m.resultData.current.data,variables:v.variables}}}let[a,s]=L.useState(o);(n!==a.client||t!==a.query)&&s(a=o(a));const{observable:c,resultData:u}=a;Kk(i,c),Qk(u,c,i);const d=Zk(c,u,r),h=L.useMemo(()=>({refetch:c.refetch.bind(c),fetchMore:c.fetchMore.bind(c),updateQuery:c.updateQuery.bind(c),startPolling:c.startPolling.bind(c),stopPolling:c.stopPolling.bind(c),subscribeToMore:c.subscribeToMore.bind(c)}),[c]),p=u.previousData;return L.useMemo(()=>{const{partial:m,...v}=d;return{...v,client:n,observable:c,variables:c.variables,previousData:p,...h}},[d,n,c,p,h])}const P6=Symbol();function Yk(t,e,n){return jp(()=>{if(e===jk){const i={...ra(n,{query:t,fetchPolicy:"standby"}),[up]:!0};return i[P6]=!0,i}const r=ra(n,{...e,query:t});return e.skip&&(r.initialFetchPolicy=e.initialFetchPolicy||e.fetchPolicy,r.fetchPolicy="standby"),r},[t,e,n])}function Kk(t,e){"use no memo";t.fetchPolicy||(t.fetchPolicy=e.options.initialFetchPolicy)}function Zk(t,e,n){"use no memo";const r=t.options.fetchPolicy;return Vp(L.useCallback(i=>{const o=t.pipe(Qh(mA)).subscribe(a=>{const s=e.current;ht(s,a)&&ht(e.variables,t.variables)||(e.variables=t.variables,s.data&&!ht(s.data,a.data)&&(e.previousData=s.data),e.current=a,i())});return()=>{setTimeout(()=>o.unsubscribe())}},[t,e]),()=>e.current,()=>r!=="standby"&&n===!1||r==="no-cache"?Dl.ssrDisabledResult:e.current)}function Qk(t,e,n){"use no memo";if(e[jl]&&!ht(e[jl],n)){e[jl][P6]&&!n.initialFetchPolicy&&(n.initialFetchPolicy=n.fetchPolicy),qk(e[jl],n)?e.reobserve(n):e.applyOptions(n);const r=e.getCurrentResult();ht(r.data,t.current.data)||(t.previousData=t.current.data||t.previousData),t.current=r,t.variables=e.variables}e[jl]=n}function qk(t,e){return t.query!==e.query||!ht(t.variables,e.variables)||t.fetchPolicy!==e.fetchPolicy&&(e.fetchPolicy==="standby"||t.fetchPolicy==="standby")}Dl.ssrDisabledResult={loading:!0,data:void 0,dataState:"empty",error:void 0,networkStatus:Be.loading,partial:!0};function M6(t,...[e={}]){const n=Xo(e.client),{skip:r,fetchPolicy:i,errorPolicy:o,shouldResubscribe:a,context:s,extensions:c,ignoreResults:u}=e,d=jp(()=>e.variables,[e.variables]),h=()=>Jk(n,t,d,i,o,s,c);let[p,m]=L.useState(e.skip?null:h);const v=L.useRef(h);Tu(()=>{v.current=h}),r?p&&m(p=null):(!p||(n!==p.__.client||t!==p.__.query||i!==p.__.fetchPolicy||o!==p.__.errorPolicy||!ht(d,p.__.variables))&&(typeof a=="function"?!!a(e):a)!==!1)&&m(p=h());const b=L.useRef(e);L.useEffect(()=>{b.current=e});const y=!r&&!u,w=L.useMemo(()=>({loading:y,error:void 0,data:void 0}),[y]),C=L.useRef(u);Tu(()=>{C.current=u});const k=Vp(L.useCallback(S=>{if(!p)return()=>{};let A=!1;const T=p.__.client,N=p.subscribe({next(P){var V,H;if(A)return;const U={loading:!1,data:P.data,error:P.error};p.__.setResult(U),C.current||S(),U.error?(H=(V=b.current).onError)==null||H.call(V,U.error):b.current.onData&&b.current.onData({client:T,data:U})},complete(){p.__.completed=!0,!A&&b.current.onComplete&&b.current.onComplete()}});return()=>{A=!0,setTimeout(()=>N.unsubscribe())}},[p]),()=>p&&!r&&!u?p.__.result:w,()=>w),x=L.useCallback(()=>{Xe(!b.current.skip,33),p!=null&&p.__.completed?m(v.current()):p==null||p.restart()},[p,m,b,v]);return L.useMemo(()=>({...k,restart:x}),[k,x])}function Jk(t,e,n,r,i,o,a){const s={query:e,variables:n,fetchPolicy:r,errorPolicy:i,context:o,extensions:a},c={...s,client:t,completed:!1,result:{loading:!0,data:void 0,error:void 0},setResult(u){c.result=u}};return Object.assign(t.subscribe(s),{__:c})}function L6(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=L6(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function oa(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=L6(t))&&(r&&(r+=" "),r+=e);return r}function Xk(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}Xk(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
46
|
+
`);var Vl=t=>typeof t=="number"&&!isNaN(t),aa=t=>typeof t=="string",$i=t=>typeof t=="function",$k=t=>aa(t)||Vl(t),zp=t=>aa(t)||$i(t)?t:null,eT=(t,e)=>t===!1||Vl(t)&&t>0?t:e,Bp=t=>R.isValidElement(t)||aa(t)||$i(t)||Vl(t);function tT(t,e,n=300){let{scrollHeight:r,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,n)})})}function nT({enter:t,exit:e,appendPosition:n=!1,collapse:r=!0,collapseDuration:i=300}){return function({children:o,position:a,preventExitTransition:s,done:c,nodeRef:u,isIn:d,playToast:h}){let p=n?`${t}--${a}`:t,m=n?`${e}--${a}`:e,v=R.useRef(0);return R.useLayoutEffect(()=>{let b=u.current,y=p.split(" "),w=C=>{C.target===u.current&&(h(),b.removeEventListener("animationend",w),b.removeEventListener("animationcancel",w),v.current===0&&C.type!=="animationcancel"&&b.classList.remove(...y))};b.classList.add(...y),b.addEventListener("animationend",w),b.addEventListener("animationcancel",w)},[]),R.useEffect(()=>{let b=u.current,y=()=>{b.removeEventListener("animationend",y),r?tT(b,c,i):c()};d||(s?y():(v.current=1,b.className+=` ${m}`,b.addEventListener("animationend",y)))},[d]),R.createElement(R.Fragment,null,o)}}function F6(t,e){return{content:j6(t.content,t.props),containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,reason:t.removalReason,status:e}}function j6(t,e,n=!1){return R.isValidElement(t)&&!aa(t.type)?R.cloneElement(t,{closeToast:e.closeToast,toastProps:e,data:e.data,isPaused:n}):$i(t)?t({closeToast:e.closeToast,toastProps:e,data:e.data,isPaused:n}):t}function rT({closeToast:t,theme:e,ariaLabel:n="close"}){return R.createElement("button",{className:`Toastify__close-button Toastify__close-button--${e}`,type:"button",onClick:r=>{r.stopPropagation(),t(!0)},"aria-label":n},R.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},R.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function iT({delay:t,isRunning:e,closeToast:n,type:r="default",hide:i,className:o,controlledProgress:a,progress:s,rtl:c,isIn:u,theme:d}){let h=i||a&&s===0,p={animationDuration:`${t}ms`,animationPlayState:e?"running":"paused"};a&&(p.transform=`scaleX(${s})`);let m=oa("Toastify__progress-bar",a?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":c}),v=$i(o)?o({rtl:c,type:r,defaultClassName:m}):oa(m,o),b={[a&&s>=1?"onTransitionEnd":"onAnimationEnd"]:a&&s<1?null:()=>{u&&n()}};return R.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":h},R.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${r}`}),R.createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:v,style:p,...b}))}var oT=1,D6=()=>`${oT++}`;function aT(t,e,n){let r=1,i=0,o=[],a=[],s=e,c=new Map,u=new Set,d=C=>(u.add(C),()=>u.delete(C)),h=()=>{a=Array.from(c.values()),u.forEach(C=>C())},p=({containerId:C,toastId:k,updateId:x})=>{let S=C?C!==t:t!==1,A=c.has(k)&&x==null;return S||A},m=(C,k)=>{c.forEach(x=>{var S;(k==null||k===x.props.toastId)&&((S=x.toggle)==null||S.call(x,C))})},v=C=>{var k,x;(x=(k=C.props)==null?void 0:k.onClose)==null||x.call(k,C.removalReason),C.isActive=!1},b=C=>{if(C==null)c.forEach(v);else{let k=c.get(C);k&&v(k)}h()},y=()=>{i-=o.length,o=[]},w=C=>{var k,x;let{toastId:S,updateId:A}=C.props,T=A==null;C.staleId&&c.delete(C.staleId),C.isActive=!0,c.set(S,C),h(),n(F6(C,T?"added":"updated")),T&&((x=(k=C.props).onOpen)==null||x.call(k))};return{id:t,props:s,observe:d,toggle:m,removeToast:b,toasts:c,clearQueue:y,buildToast:(C,k)=>{if(p(k))return;let{toastId:x,updateId:S,data:A,staleId:T,delay:N}=k,P=S==null;P&&i++;let U={...s,style:s.toastStyle,key:r++,...Object.fromEntries(Object.entries(k).filter(([H,Q])=>Q!=null)),toastId:x,updateId:S,data:A,isIn:!1,className:zp(k.className||s.toastClassName),progressClassName:zp(k.progressClassName||s.progressClassName),autoClose:k.isLoading?!1:eT(k.autoClose,s.autoClose),closeToast(H){c.get(x).removalReason=H,b(x)},deleteToast(){let H=c.get(x);if(H!=null){if(n(F6(H,"removed")),c.delete(x),i--,i<0&&(i=0),o.length>0){w(o.shift());return}h()}}};U.closeButton=s.closeButton,k.closeButton===!1||Bp(k.closeButton)?U.closeButton=k.closeButton:k.closeButton===!0&&(U.closeButton=Bp(s.closeButton)?s.closeButton:!0);let V={content:C,props:U,staleId:T};s.limit&&s.limit>0&&i>s.limit&&P?o.push(V):Vl(N)?setTimeout(()=>{w(V)},N):w(V)},setProps(C){s=C},setToggle:(C,k)=>{let x=c.get(C);x&&(x.toggle=k)},isToastActive:C=>{var k;return(k=c.get(C))==null?void 0:k.isActive},getSnapshot:()=>a}}var Jn=new Map,Ul=[],Hp=new Set,sT=t=>Hp.forEach(e=>e(t)),V6=()=>Jn.size>0;function lT(){Ul.forEach(t=>z6(t.content,t.options)),Ul=[]}var cT=(t,{containerId:e})=>{var n;return(n=Jn.get(e||1))==null?void 0:n.toasts.get(t)};function U6(t,e){var n;if(e)return!!((n=Jn.get(e))!=null&&n.isToastActive(t));let r=!1;return Jn.forEach(i=>{i.isToastActive(t)&&(r=!0)}),r}function uT(t){if(!V6()){Ul=Ul.filter(e=>t!=null&&e.options.toastId!==t);return}if(t==null||$k(t))Jn.forEach(e=>{e.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){let e=Jn.get(t.containerId);e?e.removeToast(t.id):Jn.forEach(n=>{n.removeToast(t.id)})}}var fT=(t={})=>{Jn.forEach(e=>{e.props.limit&&(!t.containerId||e.id===t.containerId)&&e.clearQueue()})};function z6(t,e){Bp(t)&&(V6()||Ul.push({content:t,options:e}),Jn.forEach(n=>{n.buildToast(t,e)}))}function dT(t){var e;(e=Jn.get(t.containerId||1))==null||e.setToggle(t.id,t.fn)}function B6(t,e){Jn.forEach(n=>{(e==null||!(e!=null&&e.containerId)||(e==null?void 0:e.containerId)===n.id)&&n.toggle(t,e==null?void 0:e.id)})}function hT(t){let e=t.containerId||1;return{subscribe(n){let r=aT(e,t,sT);Jn.set(e,r);let i=r.observe(n);return lT(),()=>{i(),Jn.delete(e)}},setProps(n){var r;(r=Jn.get(e))==null||r.setProps(n)},getSnapshot(){var n;return(n=Jn.get(e))==null?void 0:n.getSnapshot()}}}function pT(t){return Hp.add(t),()=>{Hp.delete(t)}}function mT(t){return t&&(aa(t.toastId)||Vl(t.toastId))?t.toastId:D6()}function zl(t,e){return z6(t,e),e.toastId}function Ou(t,e){return{...e,type:e&&e.type||t,toastId:mT(e)}}function Ru(t){return(e,n)=>zl(e,Ou(t,n))}function Nt(t,e){return zl(t,Ou("default",e))}Nt.loading=(t,e)=>zl(t,Ou("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e}));function gT(t,{pending:e,error:n,success:r},i){let o;e&&(o=aa(e)?Nt.loading(e,i):Nt.loading(e.render,{...i,...e}));let a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},s=(u,d,h)=>{if(d==null){Nt.dismiss(o);return}let p={type:u,...a,...i,data:h},m=aa(d)?{render:d}:d;return o?Nt.update(o,{...p,...m}):Nt(m.render,{...p,...m}),h},c=$i(t)?t():t;return c.then(u=>s("success",r,u)).catch(u=>s("error",n,u)),c}Nt.promise=gT,Nt.success=Ru("success"),Nt.info=Ru("info"),Nt.error=Ru("error"),Nt.warning=Ru("warning"),Nt.warn=Nt.warning,Nt.dark=(t,e)=>zl(t,Ou("default",{theme:"dark",...e}));function vT(t){uT(t)}Nt.dismiss=vT,Nt.clearWaitingQueue=fT,Nt.isActive=U6,Nt.update=(t,e={})=>{let n=cT(t,e);if(n){let{props:r,content:i}=n,o={delay:100,...r,...e,toastId:e.toastId||t,updateId:D6()};o.toastId!==t&&(o.staleId=t);let a=o.render||i;delete o.render,zl(a,o)}},Nt.done=t=>{Nt.update(t,{progress:1})},Nt.onChange=pT,Nt.play=t=>B6(!0,t),Nt.pause=t=>B6(!1,t);function yT(t){var e;let{subscribe:n,getSnapshot:r,setProps:i}=R.useRef(hT(t)).current;i(t);let o=(e=R.useSyncExternalStore(n,r,r))==null?void 0:e.slice();function a(s){if(!o)return[];let c=new Map;return t.newestOnTop&&o.reverse(),o.forEach(u=>{let{position:d}=u.props;c.has(d)||c.set(d,[]),c.get(d).push(u)}),Array.from(c,u=>s(u[0],u[1]))}return{getToastToRender:a,isToastActive:U6,count:o==null?void 0:o.length}}function bT(t){let[e,n]=R.useState(!1),[r,i]=R.useState(!1),o=R.useRef(null),a=R.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:s,pauseOnHover:c,closeToast:u,onClick:d,closeOnClick:h}=t;dT({id:t.toastId,containerId:t.containerId,fn:n}),R.useEffect(()=>{if(t.pauseOnFocusLoss)return p(),()=>{m()}},[t.pauseOnFocusLoss]);function p(){document.hasFocus()||w(),window.addEventListener("focus",y),window.addEventListener("blur",w)}function m(){window.removeEventListener("focus",y),window.removeEventListener("blur",w)}function v(T){if(t.draggable===!0||t.draggable===T.pointerType){C();let N=o.current;a.canCloseOnClick=!0,a.canDrag=!0,N.style.transition="none",t.draggableDirection==="x"?(a.start=T.clientX,a.removalDistance=N.offsetWidth*(t.draggablePercent/100)):(a.start=T.clientY,a.removalDistance=N.offsetHeight*(t.draggablePercent===80?t.draggablePercent*1.5:t.draggablePercent)/100)}}function b(T){let{top:N,bottom:P,left:U,right:V}=o.current.getBoundingClientRect();T.nativeEvent.type!=="touchend"&&t.pauseOnHover&&T.clientX>=U&&T.clientX<=V&&T.clientY>=N&&T.clientY<=P?w():y()}function y(){n(!0)}function w(){n(!1)}function C(){a.didMove=!1,document.addEventListener("pointermove",x),document.addEventListener("pointerup",S)}function k(){document.removeEventListener("pointermove",x),document.removeEventListener("pointerup",S)}function x(T){let N=o.current;if(a.canDrag&&N){a.didMove=!0,e&&w(),t.draggableDirection==="x"?a.delta=T.clientX-a.start:a.delta=T.clientY-a.start,a.start!==T.clientX&&(a.canCloseOnClick=!1);let P=t.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`;N.style.transform=`translate3d(${P},0)`,N.style.opacity=`${1-Math.abs(a.delta/a.removalDistance)}`}}function S(){k();let T=o.current;if(a.canDrag&&a.didMove&&T){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance){i(!0),t.closeToast(!0),t.collapseAll();return}T.style.transition="transform 0.2s, opacity 0.2s",T.style.removeProperty("transform"),T.style.removeProperty("opacity")}}let A={onPointerDown:v,onPointerUp:b};return s&&c&&(A.onMouseEnter=w,t.stacked||(A.onMouseLeave=y)),h&&(A.onClick=T=>{d&&d(T),a.canCloseOnClick&&u(!0)}),{playToast:y,pauseToast:w,isRunning:e,preventExitTransition:r,toastRef:o,eventHandlers:A}}var ET=typeof window<"u"?R.useLayoutEffect:R.useEffect,Nu=({theme:t,type:e,isLoading:n,...r})=>R.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${e})`,...r});function ST(t){return R.createElement(Nu,{...t},R.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function wT(t){return R.createElement(Nu,{...t},R.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function _T(t){return R.createElement(Nu,{...t},R.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function CT(t){return R.createElement(Nu,{...t},R.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function xT(){return R.createElement("div",{className:"Toastify__spinner"})}var Wp={info:wT,warning:ST,success:_T,error:CT,spinner:xT},AT=t=>t in Wp;function kT({theme:t,type:e,isLoading:n,icon:r}){let i=null,o={theme:t,type:e};return r===!1||($i(r)?i=r({...o,isLoading:n}):R.isValidElement(r)?i=R.cloneElement(r,o):n?i=Wp.spinner():AT(e)&&(i=Wp[e](o))),i}var TT=t=>{let{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=bT(t),{closeButton:a,children:s,autoClose:c,onClick:u,type:d,hideProgressBar:h,closeToast:p,transition:m,position:v,className:b,style:y,progressClassName:w,updateId:C,role:k,progress:x,rtl:S,toastId:A,deleteToast:T,isIn:N,isLoading:P,closeOnClick:U,theme:V,ariaLabel:H}=t,Q=oa("Toastify__toast",`Toastify__toast-theme--${V}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":S},{"Toastify__toast--close-on-click":U}),j=$i(b)?b({rtl:S,position:v,type:d,defaultClassName:Q}):oa(Q,b),F=kT(t),D=!!x||!c,Y={closeToast:p,type:d,theme:V},z=null;return a===!1||($i(a)?z=a(Y):R.isValidElement(a)?z=R.cloneElement(a,Y):z=rT(Y)),R.createElement(m,{isIn:N,done:T,position:v,preventExitTransition:n,nodeRef:r,playToast:o},R.createElement("div",{id:A,tabIndex:0,onClick:u,"data-in":N,className:j,...i,style:y,ref:r,...N&&{role:k,"aria-label":H}},F!=null&&R.createElement("div",{className:oa("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!P})},F),j6(s,t,!e),z,!t.customProgressBar&&R.createElement(iT,{...C&&!D?{key:`p-${C}`}:{},rtl:S,theme:V,delay:c,isRunning:e,isIn:N,closeToast:p,hide:h,type:d,className:w,controlledProgress:D,progress:x||0})))},OT=(t,e=!1)=>({enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}),RT=nT(OT("bounce",!0)),NT={position:"top-right",transition:RT,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:t=>t.altKey&&t.code==="KeyT"};function IT(t){let e={...NT,...t},n=t.stacked,[r,i]=R.useState(!0),o=R.useRef(null),{getToastToRender:a,isToastActive:s,count:c}=yT(e),{className:u,style:d,rtl:h,containerId:p,hotKeys:m}=e;function v(y){let w=oa("Toastify__toast-container",`Toastify__toast-container--${y}`,{"Toastify__toast-container--rtl":h});return $i(u)?u({position:y,rtl:h,defaultClassName:w}):oa(w,zp(u))}function b(){n&&(i(!0),Nt.play())}return ET(()=>{var y;if(n){let w=o.current.querySelectorAll('[data-in="true"]'),C=12,k=(y=e.position)==null?void 0:y.includes("top"),x=0,S=0;Array.from(w).reverse().forEach((A,T)=>{let N=A;N.classList.add("Toastify__toast--stacked"),T>0&&(N.dataset.collapsed=`${r}`),N.dataset.pos||(N.dataset.pos=k?"top":"bot");let P=x*(r?.2:1)+(r?0:C*T);N.style.setProperty("--y",`${k?P:P*-1}px`),N.style.setProperty("--g",`${C}`),N.style.setProperty("--s",`${1-(r?S:0)}`),x+=N.offsetHeight,S+=.025})}},[r,c,n]),R.useEffect(()=>{function y(w){var C;let k=o.current;m(w)&&((C=k.querySelector('[tabIndex="0"]'))==null||C.focus(),i(!1),Nt.pause()),w.key==="Escape"&&(document.activeElement===k||k!=null&&k.contains(document.activeElement))&&(i(!0),Nt.play())}return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[m]),R.createElement("section",{ref:o,className:"Toastify",id:p,onMouseEnter:()=>{n&&(i(!1),Nt.pause())},onMouseLeave:b,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":e["aria-label"]},a((y,w)=>{let C=w.length?{...d}:{...d,pointerEvents:"none"};return R.createElement("div",{tabIndex:-1,className:v(y),"data-stacked":n,style:C,key:`c-${y}`},w.map(({content:k,props:x})=>R.createElement(TT,{...x,stacked:n,collapseAll:b,isIn:s(x.toastId,x.containerId),key:`t-${x.key}`},k)))}))}class PT extends Tn{constructor(e){super((n,r)=>{const{...i}=n;return Object.defineProperty(i,"client",{enumerable:!1,value:n.client}),new Bt(o=>{let a=!1;return Promise.resolve(i).then(s=>e(n.getContext(),s)).then(n.setContext).then(()=>{a||r(n).subscribe(o)}).catch(o.error.bind(o)),()=>{a=!0}})})}}/*! js-cookie v3.0.5 | MIT */function Iu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var MT={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Gp(t,e){function n(i,o,a){if(!(typeof document>"u")){a=Iu({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var c in a)a[c]&&(s+="; "+c,a[c]!==!0&&(s+="="+a[c].split(";")[0]));return document.cookie=i+"="+t.write(o,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},s=0;s<o.length;s++){var c=o[s].split("="),u=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(a[d]=t.read(u,d),i===d)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",Iu({},o,{expires:-1}))},withAttributes:function(i){return Gp(this.converter,Iu({},this.attributes,i))},withConverter:function(i){return Gp(Iu({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var Wr=Gp(MT,{path:"/"}),Pu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Bl={exports:{}};/**
|
|
47
|
+
* @license
|
|
48
|
+
* Lodash <https://lodash.com/>
|
|
49
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
50
|
+
* Released under MIT license <https://lodash.com/license>
|
|
51
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
52
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
53
|
+
*/var LT=Bl.exports,H6;function FT(){return H6||(H6=1,(function(t,e){(function(){var n,r="4.17.23",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",h=1,p=2,m=4,v=1,b=2,y=1,w=2,C=4,k=8,x=16,S=32,A=64,T=128,N=256,P=512,U=30,V="...",H=800,Q=16,j=1,F=2,D=3,Y=1/0,z=9007199254740991,q=17976931348623157e292,W=NaN,G=4294967295,te=G-1,ne=G>>>1,ce=[["ary",T],["bind",y],["bindKey",w],["curry",k],["curryRight",x],["flip",P],["partial",S],["partialRight",A],["rearg",N]],ie="[object Arguments]",de="[object Array]",pe="[object AsyncFunction]",J="[object Boolean]",re="[object Date]",he="[object DOMException]",Ee="[object Error]",X="[object Function]",Re="[object GeneratorFunction]",ye="[object Map]",Fe="[object Number]",st="[object Null]",Pe="[object Object]",lt="[object Promise]",Te="[object Proxy]",nt="[object RegExp]",Le="[object Set]",Qe="[object String]",At="[object Symbol]",we="[object Undefined]",et="[object WeakMap]",kt="[object WeakSet]",Yt="[object ArrayBuffer]",Qt="[object DataView]",wn="[object Float32Array]",vr="[object Float64Array]",yt="[object Int8Array]",bt="[object Int16Array]",sn="[object Int32Array]",tn="[object Uint8Array]",Vt="[object Uint8ClampedArray]",_n="[object Uint16Array]",nn="[object Uint32Array]",Kn=/\b__p \+= '';/g,ro=/\b(__p \+=) '' \+/g,$r=/(__e\(.*?\)|\b__t\)) \+\n'';/g,yr=/&(?:amp|lt|gt|quot|#39);/g,Vi=/[&<>"']/g,br=RegExp(yr.source),rr=RegExp(Vi.source),fn=/<%-([\s\S]+?)%>/g,qe=/<%([\s\S]+?)%>/g,Cn=/<%=([\s\S]+?)%>/g,vn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gt=/^\w*$/,ft=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kt=/[\\^$.*+?()[\]{}|]/g,ir=RegExp(Kt.source),yn=/^\s+/,pt=/\s/,Ln=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Er=/\{\n\/\* \[wrapped with (.+)\] \*/,Et=/,? & /,Ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,bn=/[()=,{}\[\]\/\s]/,Pt=/\\(\\)?/g,or=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ei=/\w*$/,Zn=/^[-+]0x[0-9a-f]+$/i,Vn=/^0b[01]+$/i,Sr=/^\[object .+?Constructor\]$/,Ae=/^0o[0-7]+$/i,K=/^(?:0|[1-9]\d*)$/,me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,St=/['\n\r\u2028\u2029\\]/g,Zt="\\ud800-\\udfff",Tt="\\u0300-\\u036f",dn="\\ufe20-\\ufe2f",ar="\\u20d0-\\u20ff",wr=Tt+dn+ar,Si="\\u2700-\\u27bf",Dt="a-z\\xdf-\\xf6\\xf8-\\xff",ti="\\xac\\xb1\\xd7\\xf7",Ui="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",io="\\u2000-\\u206f",Sa=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",oo="A-Z\\xc0-\\xd6\\xd8-\\xde",_r="\\ufe0e\\ufe0f",wi=ti+Ui+io+Sa,ni="['’]",zi="["+Zt+"]",Do="["+wi+"]",Vo="["+wr+"]",wa="\\d+",Ks="["+Si+"]",_a="["+Dt+"]",Zs="[^"+Zt+wi+wa+Si+Dt+oo+"]",Ca="\\ud83c[\\udffb-\\udfff]",Qs="(?:"+Vo+"|"+Ca+")",qs="[^"+Zt+"]",xa="(?:\\ud83c[\\udde6-\\uddff]){2}",Uo="[\\ud800-\\udbff][\\udc00-\\udfff]",Bi="["+oo+"]",Js="\\u200d",Xs="(?:"+_a+"|"+Zs+")",ri="(?:"+Bi+"|"+Zs+")",zo="(?:"+ni+"(?:d|ll|m|re|s|t|ve))?",$s="(?:"+ni+"(?:D|LL|M|RE|S|T|VE))?",sr=Qs+"?",ao="["+_r+"]?",Aa="(?:"+Js+"(?:"+[qs,xa,Uo].join("|")+")"+ao+sr+")*",_i="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Hi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Bo=ao+sr+Aa,el="(?:"+[Ks,xa,Uo].join("|")+")"+Bo,Bc="(?:"+[qs+Vo+"?",Vo,xa,Uo,zi].join("|")+")",Hc=RegExp(ni,"g"),Wc=RegExp(Vo,"g"),Oe=RegExp(Ca+"(?="+Ca+")|"+Bc+Bo,"g"),Ve=RegExp([Bi+"?"+_a+"+"+zo+"(?="+[Do,Bi,"$"].join("|")+")",ri+"+"+$s+"(?="+[Do,Bi+Xs,"$"].join("|")+")",Bi+"?"+Xs+"+"+zo,Bi+"+"+$s,Hi,_i,wa,el].join("|"),"g"),Wt=RegExp("["+Js+Zt+wr+_r+"]"),hn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tl=-1,Mt={};Mt[wn]=Mt[vr]=Mt[yt]=Mt[bt]=Mt[sn]=Mt[tn]=Mt[Vt]=Mt[_n]=Mt[nn]=!0,Mt[ie]=Mt[de]=Mt[Yt]=Mt[J]=Mt[Qt]=Mt[re]=Mt[Ee]=Mt[X]=Mt[ye]=Mt[Fe]=Mt[Pe]=Mt[nt]=Mt[Le]=Mt[Qe]=Mt[et]=!1;var Lt={};Lt[ie]=Lt[de]=Lt[Yt]=Lt[Qt]=Lt[J]=Lt[re]=Lt[wn]=Lt[vr]=Lt[yt]=Lt[bt]=Lt[sn]=Lt[ye]=Lt[Fe]=Lt[Pe]=Lt[nt]=Lt[Le]=Lt[Qe]=Lt[At]=Lt[tn]=Lt[Vt]=Lt[_n]=Lt[nn]=!0,Lt[Ee]=Lt[X]=Lt[et]=!1;var nl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},oG={"&":"&","<":"<",">":">",'"':""","'":"'"},aG={"&":"&","<":"<",">":">",""":'"',"'":"'"},sG={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lG=parseFloat,cG=parseInt,h4=typeof Pu=="object"&&Pu&&Pu.Object===Object&&Pu,uG=typeof self=="object"&&self&&self.Object===Object&&self,Un=h4||uG||Function("return this")(),py=e&&!e.nodeType&&e,ka=py&&!0&&t&&!t.nodeType&&t,p4=ka&&ka.exports===py,my=p4&&h4.process,ii=(function(){try{var $=ka&&ka.require&&ka.require("util").types;return $||my&&my.binding&&my.binding("util")}catch{}})(),m4=ii&&ii.isArrayBuffer,g4=ii&&ii.isDate,v4=ii&&ii.isMap,y4=ii&&ii.isRegExp,b4=ii&&ii.isSet,E4=ii&&ii.isTypedArray;function Fr($,fe,le){switch(le.length){case 0:return $.call(fe);case 1:return $.call(fe,le[0]);case 2:return $.call(fe,le[0],le[1]);case 3:return $.call(fe,le[0],le[1],le[2])}return $.apply(fe,le)}function fG($,fe,le,Ne){for(var Ke=-1,wt=$==null?0:$.length;++Ke<wt;){var xn=$[Ke];fe(Ne,xn,le(xn),$)}return Ne}function oi($,fe){for(var le=-1,Ne=$==null?0:$.length;++le<Ne&&fe($[le],le,$)!==!1;);return $}function dG($,fe){for(var le=$==null?0:$.length;le--&&fe($[le],le,$)!==!1;);return $}function S4($,fe){for(var le=-1,Ne=$==null?0:$.length;++le<Ne;)if(!fe($[le],le,$))return!1;return!0}function Ho($,fe){for(var le=-1,Ne=$==null?0:$.length,Ke=0,wt=[];++le<Ne;){var xn=$[le];fe(xn,le,$)&&(wt[Ke++]=xn)}return wt}function Yd($,fe){var le=$==null?0:$.length;return!!le&&rl($,fe,0)>-1}function gy($,fe,le){for(var Ne=-1,Ke=$==null?0:$.length;++Ne<Ke;)if(le(fe,$[Ne]))return!0;return!1}function Jt($,fe){for(var le=-1,Ne=$==null?0:$.length,Ke=Array(Ne);++le<Ne;)Ke[le]=fe($[le],le,$);return Ke}function Wo($,fe){for(var le=-1,Ne=fe.length,Ke=$.length;++le<Ne;)$[Ke+le]=fe[le];return $}function vy($,fe,le,Ne){var Ke=-1,wt=$==null?0:$.length;for(Ne&&wt&&(le=$[++Ke]);++Ke<wt;)le=fe(le,$[Ke],Ke,$);return le}function hG($,fe,le,Ne){var Ke=$==null?0:$.length;for(Ne&&Ke&&(le=$[--Ke]);Ke--;)le=fe(le,$[Ke],Ke,$);return le}function yy($,fe){for(var le=-1,Ne=$==null?0:$.length;++le<Ne;)if(fe($[le],le,$))return!0;return!1}var pG=by("length");function mG($){return $.split("")}function gG($){return $.match(Ut)||[]}function w4($,fe,le){var Ne;return le($,function(Ke,wt,xn){if(fe(Ke,wt,xn))return Ne=wt,!1}),Ne}function Kd($,fe,le,Ne){for(var Ke=$.length,wt=le+(Ne?1:-1);Ne?wt--:++wt<Ke;)if(fe($[wt],wt,$))return wt;return-1}function rl($,fe,le){return fe===fe?TG($,fe,le):Kd($,_4,le)}function vG($,fe,le,Ne){for(var Ke=le-1,wt=$.length;++Ke<wt;)if(Ne($[Ke],fe))return Ke;return-1}function _4($){return $!==$}function C4($,fe){var le=$==null?0:$.length;return le?Sy($,fe)/le:W}function by($){return function(fe){return fe==null?n:fe[$]}}function Ey($){return function(fe){return $==null?n:$[fe]}}function x4($,fe,le,Ne,Ke){return Ke($,function(wt,xn,zt){le=Ne?(Ne=!1,wt):fe(le,wt,xn,zt)}),le}function yG($,fe){var le=$.length;for($.sort(fe);le--;)$[le]=$[le].value;return $}function Sy($,fe){for(var le,Ne=-1,Ke=$.length;++Ne<Ke;){var wt=fe($[Ne]);wt!==n&&(le=le===n?wt:le+wt)}return le}function wy($,fe){for(var le=-1,Ne=Array($);++le<$;)Ne[le]=fe(le);return Ne}function bG($,fe){return Jt(fe,function(le){return[le,$[le]]})}function A4($){return $&&$.slice(0,R4($)+1).replace(yn,"")}function jr($){return function(fe){return $(fe)}}function _y($,fe){return Jt(fe,function(le){return $[le]})}function Gc($,fe){return $.has(fe)}function k4($,fe){for(var le=-1,Ne=$.length;++le<Ne&&rl(fe,$[le],0)>-1;);return le}function T4($,fe){for(var le=$.length;le--&&rl(fe,$[le],0)>-1;);return le}function EG($,fe){for(var le=$.length,Ne=0;le--;)$[le]===fe&&++Ne;return Ne}var SG=Ey(nl),wG=Ey(oG);function _G($){return"\\"+sG[$]}function CG($,fe){return $==null?n:$[fe]}function il($){return Wt.test($)}function xG($){return hn.test($)}function AG($){for(var fe,le=[];!(fe=$.next()).done;)le.push(fe.value);return le}function Cy($){var fe=-1,le=Array($.size);return $.forEach(function(Ne,Ke){le[++fe]=[Ke,Ne]}),le}function O4($,fe){return function(le){return $(fe(le))}}function Go($,fe){for(var le=-1,Ne=$.length,Ke=0,wt=[];++le<Ne;){var xn=$[le];(xn===fe||xn===d)&&($[le]=d,wt[Ke++]=le)}return wt}function Zd($){var fe=-1,le=Array($.size);return $.forEach(function(Ne){le[++fe]=Ne}),le}function kG($){var fe=-1,le=Array($.size);return $.forEach(function(Ne){le[++fe]=[Ne,Ne]}),le}function TG($,fe,le){for(var Ne=le-1,Ke=$.length;++Ne<Ke;)if($[Ne]===fe)return Ne;return-1}function OG($,fe,le){for(var Ne=le+1;Ne--;)if($[Ne]===fe)return Ne;return Ne}function ol($){return il($)?NG($):pG($)}function Ci($){return il($)?IG($):mG($)}function R4($){for(var fe=$.length;fe--&&pt.test($.charAt(fe)););return fe}var RG=Ey(aG);function NG($){for(var fe=Oe.lastIndex=0;Oe.test($);)++fe;return fe}function IG($){return $.match(Oe)||[]}function PG($){return $.match(Ve)||[]}var MG=(function $(fe){fe=fe==null?Un:al.defaults(Un.Object(),fe,al.pick(Un,qt));var le=fe.Array,Ne=fe.Date,Ke=fe.Error,wt=fe.Function,xn=fe.Math,zt=fe.Object,xy=fe.RegExp,LG=fe.String,ai=fe.TypeError,Qd=le.prototype,FG=wt.prototype,sl=zt.prototype,qd=fe["__core-js_shared__"],Jd=FG.toString,Ot=sl.hasOwnProperty,jG=0,N4=(function(){var l=/[^.]+$/.exec(qd&&qd.keys&&qd.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""})(),Xd=sl.toString,DG=Jd.call(zt),VG=Un._,UG=xy("^"+Jd.call(Ot).replace(Kt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$d=p4?fe.Buffer:n,Yo=fe.Symbol,eh=fe.Uint8Array,I4=$d?$d.allocUnsafe:n,th=O4(zt.getPrototypeOf,zt),P4=zt.create,M4=sl.propertyIsEnumerable,nh=Qd.splice,L4=Yo?Yo.isConcatSpreadable:n,Yc=Yo?Yo.iterator:n,Ta=Yo?Yo.toStringTag:n,rh=(function(){try{var l=Pa(zt,"defineProperty");return l({},"",{}),l}catch{}})(),zG=fe.clearTimeout!==Un.clearTimeout&&fe.clearTimeout,BG=Ne&&Ne.now!==Un.Date.now&&Ne.now,HG=fe.setTimeout!==Un.setTimeout&&fe.setTimeout,ih=xn.ceil,oh=xn.floor,Ay=zt.getOwnPropertySymbols,WG=$d?$d.isBuffer:n,F4=fe.isFinite,GG=Qd.join,YG=O4(zt.keys,zt),An=xn.max,Qn=xn.min,KG=Ne.now,ZG=fe.parseInt,j4=xn.random,QG=Qd.reverse,ky=Pa(fe,"DataView"),Kc=Pa(fe,"Map"),Ty=Pa(fe,"Promise"),ll=Pa(fe,"Set"),Zc=Pa(fe,"WeakMap"),Qc=Pa(zt,"create"),ah=Zc&&new Zc,cl={},qG=Ma(ky),JG=Ma(Kc),XG=Ma(Ty),$G=Ma(ll),eY=Ma(Zc),sh=Yo?Yo.prototype:n,qc=sh?sh.valueOf:n,D4=sh?sh.toString:n;function I(l){if(ln(l)&&!Je(l)&&!(l instanceof dt)){if(l instanceof si)return l;if(Ot.call(l,"__wrapped__"))return V3(l)}return new si(l)}var ul=(function(){function l(){}return function(f){if(!rn(f))return{};if(P4)return P4(f);l.prototype=f;var g=new l;return l.prototype=n,g}})();function lh(){}function si(l,f){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}I.templateSettings={escape:fn,evaluate:qe,interpolate:Cn,variable:"",imports:{_:I}},I.prototype=lh.prototype,I.prototype.constructor=I,si.prototype=ul(lh.prototype),si.prototype.constructor=si;function dt(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function tY(){var l=new dt(this.__wrapped__);return l.__actions__=Cr(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=Cr(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=Cr(this.__views__),l}function nY(){if(this.__filtered__){var l=new dt(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function rY(){var l=this.__wrapped__.value(),f=this.__dir__,g=Je(l),_=f<0,O=g?l.length:0,M=mK(0,O,this.__views__),B=M.start,Z=M.end,ee=Z-B,ge=_?Z:B-1,ve=this.__iteratees__,be=ve.length,_e=0,Me=Qn(ee,this.__takeCount__);if(!g||!_&&O==ee&&Me==ee)return l3(l,this.__actions__);var Ue=[];e:for(;ee--&&_e<Me;){ge+=f;for(var rt=-1,ze=l[ge];++rt<be;){var ct=ve[rt],mt=ct.iteratee,Ur=ct.type,ur=mt(ze);if(Ur==F)ze=ur;else if(!ur){if(Ur==j)continue e;break e}}Ue[_e++]=ze}return Ue}dt.prototype=ul(lh.prototype),dt.prototype.constructor=dt;function Oa(l){var f=-1,g=l==null?0:l.length;for(this.clear();++f<g;){var _=l[f];this.set(_[0],_[1])}}function iY(){this.__data__=Qc?Qc(null):{},this.size=0}function oY(l){var f=this.has(l)&&delete this.__data__[l];return this.size-=f?1:0,f}function aY(l){var f=this.__data__;if(Qc){var g=f[l];return g===c?n:g}return Ot.call(f,l)?f[l]:n}function sY(l){var f=this.__data__;return Qc?f[l]!==n:Ot.call(f,l)}function lY(l,f){var g=this.__data__;return this.size+=this.has(l)?0:1,g[l]=Qc&&f===n?c:f,this}Oa.prototype.clear=iY,Oa.prototype.delete=oY,Oa.prototype.get=aY,Oa.prototype.has=sY,Oa.prototype.set=lY;function so(l){var f=-1,g=l==null?0:l.length;for(this.clear();++f<g;){var _=l[f];this.set(_[0],_[1])}}function cY(){this.__data__=[],this.size=0}function uY(l){var f=this.__data__,g=ch(f,l);if(g<0)return!1;var _=f.length-1;return g==_?f.pop():nh.call(f,g,1),--this.size,!0}function fY(l){var f=this.__data__,g=ch(f,l);return g<0?n:f[g][1]}function dY(l){return ch(this.__data__,l)>-1}function hY(l,f){var g=this.__data__,_=ch(g,l);return _<0?(++this.size,g.push([l,f])):g[_][1]=f,this}so.prototype.clear=cY,so.prototype.delete=uY,so.prototype.get=fY,so.prototype.has=dY,so.prototype.set=hY;function lo(l){var f=-1,g=l==null?0:l.length;for(this.clear();++f<g;){var _=l[f];this.set(_[0],_[1])}}function pY(){this.size=0,this.__data__={hash:new Oa,map:new(Kc||so),string:new Oa}}function mY(l){var f=Sh(this,l).delete(l);return this.size-=f?1:0,f}function gY(l){return Sh(this,l).get(l)}function vY(l){return Sh(this,l).has(l)}function yY(l,f){var g=Sh(this,l),_=g.size;return g.set(l,f),this.size+=g.size==_?0:1,this}lo.prototype.clear=pY,lo.prototype.delete=mY,lo.prototype.get=gY,lo.prototype.has=vY,lo.prototype.set=yY;function Ra(l){var f=-1,g=l==null?0:l.length;for(this.__data__=new lo;++f<g;)this.add(l[f])}function bY(l){return this.__data__.set(l,c),this}function EY(l){return this.__data__.has(l)}Ra.prototype.add=Ra.prototype.push=bY,Ra.prototype.has=EY;function xi(l){var f=this.__data__=new so(l);this.size=f.size}function SY(){this.__data__=new so,this.size=0}function wY(l){var f=this.__data__,g=f.delete(l);return this.size=f.size,g}function _Y(l){return this.__data__.get(l)}function CY(l){return this.__data__.has(l)}function xY(l,f){var g=this.__data__;if(g instanceof so){var _=g.__data__;if(!Kc||_.length<i-1)return _.push([l,f]),this.size=++g.size,this;g=this.__data__=new lo(_)}return g.set(l,f),this.size=g.size,this}xi.prototype.clear=SY,xi.prototype.delete=wY,xi.prototype.get=_Y,xi.prototype.has=CY,xi.prototype.set=xY;function V4(l,f){var g=Je(l),_=!g&&La(l),O=!g&&!_&&Jo(l),M=!g&&!_&&!O&&pl(l),B=g||_||O||M,Z=B?wy(l.length,LG):[],ee=Z.length;for(var ge in l)(f||Ot.call(l,ge))&&!(B&&(ge=="length"||O&&(ge=="offset"||ge=="parent")||M&&(ge=="buffer"||ge=="byteLength"||ge=="byteOffset")||ho(ge,ee)))&&Z.push(ge);return Z}function U4(l){var f=l.length;return f?l[Vy(0,f-1)]:n}function AY(l,f){return wh(Cr(l),Na(f,0,l.length))}function kY(l){return wh(Cr(l))}function Oy(l,f,g){(g!==n&&!Ai(l[f],g)||g===n&&!(f in l))&&co(l,f,g)}function Jc(l,f,g){var _=l[f];(!(Ot.call(l,f)&&Ai(_,g))||g===n&&!(f in l))&&co(l,f,g)}function ch(l,f){for(var g=l.length;g--;)if(Ai(l[g][0],f))return g;return-1}function TY(l,f,g,_){return Ko(l,function(O,M,B){f(_,O,g(O),B)}),_}function z4(l,f){return l&&Gi(f,Fn(f),l)}function OY(l,f){return l&&Gi(f,Ar(f),l)}function co(l,f,g){f=="__proto__"&&rh?rh(l,f,{configurable:!0,enumerable:!0,value:g,writable:!0}):l[f]=g}function Ry(l,f){for(var g=-1,_=f.length,O=le(_),M=l==null;++g<_;)O[g]=M?n:ub(l,f[g]);return O}function Na(l,f,g){return l===l&&(g!==n&&(l=l<=g?l:g),f!==n&&(l=l>=f?l:f)),l}function li(l,f,g,_,O,M){var B,Z=f&h,ee=f&p,ge=f&m;if(g&&(B=O?g(l,_,O,M):g(l)),B!==n)return B;if(!rn(l))return l;var ve=Je(l);if(ve){if(B=vK(l),!Z)return Cr(l,B)}else{var be=qn(l),_e=be==X||be==Re;if(Jo(l))return f3(l,Z);if(be==Pe||be==ie||_e&&!O){if(B=ee||_e?{}:R3(l),!Z)return ee?aK(l,OY(B,l)):oK(l,z4(B,l))}else{if(!Lt[be])return O?l:{};B=yK(l,be,Z)}}M||(M=new xi);var Me=M.get(l);if(Me)return Me;M.set(l,B),o9(l)?l.forEach(function(ze){B.add(li(ze,f,g,ze,l,M))}):r9(l)&&l.forEach(function(ze,ct){B.set(ct,li(ze,f,g,ct,l,M))});var Ue=ge?ee?qy:Qy:ee?Ar:Fn,rt=ve?n:Ue(l);return oi(rt||l,function(ze,ct){rt&&(ct=ze,ze=l[ct]),Jc(B,ct,li(ze,f,g,ct,l,M))}),B}function RY(l){var f=Fn(l);return function(g){return B4(g,l,f)}}function B4(l,f,g){var _=g.length;if(l==null)return!_;for(l=zt(l);_--;){var O=g[_],M=f[O],B=l[O];if(B===n&&!(O in l)||!M(B))return!1}return!0}function H4(l,f,g){if(typeof l!="function")throw new ai(a);return iu(function(){l.apply(n,g)},f)}function Xc(l,f,g,_){var O=-1,M=Yd,B=!0,Z=l.length,ee=[],ge=f.length;if(!Z)return ee;g&&(f=Jt(f,jr(g))),_?(M=gy,B=!1):f.length>=i&&(M=Gc,B=!1,f=new Ra(f));e:for(;++O<Z;){var ve=l[O],be=g==null?ve:g(ve);if(ve=_||ve!==0?ve:0,B&&be===be){for(var _e=ge;_e--;)if(f[_e]===be)continue e;ee.push(ve)}else M(f,be,_)||ee.push(ve)}return ee}var Ko=g3(Wi),W4=g3(Iy,!0);function NY(l,f){var g=!0;return Ko(l,function(_,O,M){return g=!!f(_,O,M),g}),g}function uh(l,f,g){for(var _=-1,O=l.length;++_<O;){var M=l[_],B=f(M);if(B!=null&&(Z===n?B===B&&!Vr(B):g(B,Z)))var Z=B,ee=M}return ee}function IY(l,f,g,_){var O=l.length;for(g=tt(g),g<0&&(g=-g>O?0:O+g),_=_===n||_>O?O:tt(_),_<0&&(_+=O),_=g>_?0:s9(_);g<_;)l[g++]=f;return l}function G4(l,f){var g=[];return Ko(l,function(_,O,M){f(_,O,M)&&g.push(_)}),g}function zn(l,f,g,_,O){var M=-1,B=l.length;for(g||(g=EK),O||(O=[]);++M<B;){var Z=l[M];f>0&&g(Z)?f>1?zn(Z,f-1,g,_,O):Wo(O,Z):_||(O[O.length]=Z)}return O}var Ny=v3(),Y4=v3(!0);function Wi(l,f){return l&&Ny(l,f,Fn)}function Iy(l,f){return l&&Y4(l,f,Fn)}function fh(l,f){return Ho(f,function(g){return po(l[g])})}function Ia(l,f){f=Qo(f,l);for(var g=0,_=f.length;l!=null&&g<_;)l=l[Yi(f[g++])];return g&&g==_?l:n}function K4(l,f,g){var _=f(l);return Je(l)?_:Wo(_,g(l))}function lr(l){return l==null?l===n?we:st:Ta&&Ta in zt(l)?pK(l):kK(l)}function Py(l,f){return l>f}function PY(l,f){return l!=null&&Ot.call(l,f)}function MY(l,f){return l!=null&&f in zt(l)}function LY(l,f,g){return l>=Qn(f,g)&&l<An(f,g)}function My(l,f,g){for(var _=g?gy:Yd,O=l[0].length,M=l.length,B=M,Z=le(M),ee=1/0,ge=[];B--;){var ve=l[B];B&&f&&(ve=Jt(ve,jr(f))),ee=Qn(ve.length,ee),Z[B]=!g&&(f||O>=120&&ve.length>=120)?new Ra(B&&ve):n}ve=l[0];var be=-1,_e=Z[0];e:for(;++be<O&&ge.length<ee;){var Me=ve[be],Ue=f?f(Me):Me;if(Me=g||Me!==0?Me:0,!(_e?Gc(_e,Ue):_(ge,Ue,g))){for(B=M;--B;){var rt=Z[B];if(!(rt?Gc(rt,Ue):_(l[B],Ue,g)))continue e}_e&&_e.push(Ue),ge.push(Me)}}return ge}function FY(l,f,g,_){return Wi(l,function(O,M,B){f(_,g(O),M,B)}),_}function $c(l,f,g){f=Qo(f,l),l=M3(l,f);var _=l==null?l:l[Yi(ui(f))];return _==null?n:Fr(_,l,g)}function Z4(l){return ln(l)&&lr(l)==ie}function jY(l){return ln(l)&&lr(l)==Yt}function DY(l){return ln(l)&&lr(l)==re}function eu(l,f,g,_,O){return l===f?!0:l==null||f==null||!ln(l)&&!ln(f)?l!==l&&f!==f:VY(l,f,g,_,eu,O)}function VY(l,f,g,_,O,M){var B=Je(l),Z=Je(f),ee=B?de:qn(l),ge=Z?de:qn(f);ee=ee==ie?Pe:ee,ge=ge==ie?Pe:ge;var ve=ee==Pe,be=ge==Pe,_e=ee==ge;if(_e&&Jo(l)){if(!Jo(f))return!1;B=!0,ve=!1}if(_e&&!ve)return M||(M=new xi),B||pl(l)?k3(l,f,g,_,O,M):dK(l,f,ee,g,_,O,M);if(!(g&v)){var Me=ve&&Ot.call(l,"__wrapped__"),Ue=be&&Ot.call(f,"__wrapped__");if(Me||Ue){var rt=Me?l.value():l,ze=Ue?f.value():f;return M||(M=new xi),O(rt,ze,g,_,M)}}return _e?(M||(M=new xi),hK(l,f,g,_,O,M)):!1}function UY(l){return ln(l)&&qn(l)==ye}function Ly(l,f,g,_){var O=g.length,M=O,B=!_;if(l==null)return!M;for(l=zt(l);O--;){var Z=g[O];if(B&&Z[2]?Z[1]!==l[Z[0]]:!(Z[0]in l))return!1}for(;++O<M;){Z=g[O];var ee=Z[0],ge=l[ee],ve=Z[1];if(B&&Z[2]){if(ge===n&&!(ee in l))return!1}else{var be=new xi;if(_)var _e=_(ge,ve,ee,l,f,be);if(!(_e===n?eu(ve,ge,v|b,_,be):_e))return!1}}return!0}function Q4(l){if(!rn(l)||wK(l))return!1;var f=po(l)?UG:Sr;return f.test(Ma(l))}function zY(l){return ln(l)&&lr(l)==nt}function BY(l){return ln(l)&&qn(l)==Le}function HY(l){return ln(l)&&Th(l.length)&&!!Mt[lr(l)]}function q4(l){return typeof l=="function"?l:l==null?kr:typeof l=="object"?Je(l)?$4(l[0],l[1]):X4(l):y9(l)}function Fy(l){if(!ru(l))return YG(l);var f=[];for(var g in zt(l))Ot.call(l,g)&&g!="constructor"&&f.push(g);return f}function WY(l){if(!rn(l))return AK(l);var f=ru(l),g=[];for(var _ in l)_=="constructor"&&(f||!Ot.call(l,_))||g.push(_);return g}function jy(l,f){return l<f}function J4(l,f){var g=-1,_=xr(l)?le(l.length):[];return Ko(l,function(O,M,B){_[++g]=f(O,M,B)}),_}function X4(l){var f=Xy(l);return f.length==1&&f[0][2]?I3(f[0][0],f[0][1]):function(g){return g===l||Ly(g,l,f)}}function $4(l,f){return eb(l)&&N3(f)?I3(Yi(l),f):function(g){var _=ub(g,l);return _===n&&_===f?fb(g,l):eu(f,_,v|b)}}function dh(l,f,g,_,O){l!==f&&Ny(f,function(M,B){if(O||(O=new xi),rn(M))GY(l,f,B,g,dh,_,O);else{var Z=_?_(nb(l,B),M,B+"",l,f,O):n;Z===n&&(Z=M),Oy(l,B,Z)}},Ar)}function GY(l,f,g,_,O,M,B){var Z=nb(l,g),ee=nb(f,g),ge=B.get(ee);if(ge){Oy(l,g,ge);return}var ve=M?M(Z,ee,g+"",l,f,B):n,be=ve===n;if(be){var _e=Je(ee),Me=!_e&&Jo(ee),Ue=!_e&&!Me&&pl(ee);ve=ee,_e||Me||Ue?Je(Z)?ve=Z:pn(Z)?ve=Cr(Z):Me?(be=!1,ve=f3(ee,!0)):Ue?(be=!1,ve=d3(ee,!0)):ve=[]:ou(ee)||La(ee)?(ve=Z,La(Z)?ve=l9(Z):(!rn(Z)||po(Z))&&(ve=R3(ee))):be=!1}be&&(B.set(ee,ve),O(ve,ee,_,M,B),B.delete(ee)),Oy(l,g,ve)}function e3(l,f){var g=l.length;if(g)return f+=f<0?g:0,ho(f,g)?l[f]:n}function t3(l,f,g){f.length?f=Jt(f,function(M){return Je(M)?function(B){return Ia(B,M.length===1?M[0]:M)}:M}):f=[kr];var _=-1;f=Jt(f,jr(De()));var O=J4(l,function(M,B,Z){var ee=Jt(f,function(ge){return ge(M)});return{criteria:ee,index:++_,value:M}});return yG(O,function(M,B){return iK(M,B,g)})}function YY(l,f){return n3(l,f,function(g,_){return fb(l,_)})}function n3(l,f,g){for(var _=-1,O=f.length,M={};++_<O;){var B=f[_],Z=Ia(l,B);g(Z,B)&&tu(M,Qo(B,l),Z)}return M}function KY(l){return function(f){return Ia(f,l)}}function Dy(l,f,g,_){var O=_?vG:rl,M=-1,B=f.length,Z=l;for(l===f&&(f=Cr(f)),g&&(Z=Jt(l,jr(g)));++M<B;)for(var ee=0,ge=f[M],ve=g?g(ge):ge;(ee=O(Z,ve,ee,_))>-1;)Z!==l&&nh.call(Z,ee,1),nh.call(l,ee,1);return l}function r3(l,f){for(var g=l?f.length:0,_=g-1;g--;){var O=f[g];if(g==_||O!==M){var M=O;ho(O)?nh.call(l,O,1):By(l,O)}}return l}function Vy(l,f){return l+oh(j4()*(f-l+1))}function ZY(l,f,g,_){for(var O=-1,M=An(ih((f-l)/(g||1)),0),B=le(M);M--;)B[_?M:++O]=l,l+=g;return B}function Uy(l,f){var g="";if(!l||f<1||f>z)return g;do f%2&&(g+=l),f=oh(f/2),f&&(l+=l);while(f);return g}function ot(l,f){return rb(P3(l,f,kr),l+"")}function QY(l){return U4(ml(l))}function qY(l,f){var g=ml(l);return wh(g,Na(f,0,g.length))}function tu(l,f,g,_){if(!rn(l))return l;f=Qo(f,l);for(var O=-1,M=f.length,B=M-1,Z=l;Z!=null&&++O<M;){var ee=Yi(f[O]),ge=g;if(ee==="__proto__"||ee==="constructor"||ee==="prototype")return l;if(O!=B){var ve=Z[ee];ge=_?_(ve,ee,Z):n,ge===n&&(ge=rn(ve)?ve:ho(f[O+1])?[]:{})}Jc(Z,ee,ge),Z=Z[ee]}return l}var i3=ah?function(l,f){return ah.set(l,f),l}:kr,JY=rh?function(l,f){return rh(l,"toString",{configurable:!0,enumerable:!1,value:hb(f),writable:!0})}:kr;function XY(l){return wh(ml(l))}function ci(l,f,g){var _=-1,O=l.length;f<0&&(f=-f>O?0:O+f),g=g>O?O:g,g<0&&(g+=O),O=f>g?0:g-f>>>0,f>>>=0;for(var M=le(O);++_<O;)M[_]=l[_+f];return M}function $Y(l,f){var g;return Ko(l,function(_,O,M){return g=f(_,O,M),!g}),!!g}function hh(l,f,g){var _=0,O=l==null?_:l.length;if(typeof f=="number"&&f===f&&O<=ne){for(;_<O;){var M=_+O>>>1,B=l[M];B!==null&&!Vr(B)&&(g?B<=f:B<f)?_=M+1:O=M}return O}return zy(l,f,kr,g)}function zy(l,f,g,_){var O=0,M=l==null?0:l.length;if(M===0)return 0;f=g(f);for(var B=f!==f,Z=f===null,ee=Vr(f),ge=f===n;O<M;){var ve=oh((O+M)/2),be=g(l[ve]),_e=be!==n,Me=be===null,Ue=be===be,rt=Vr(be);if(B)var ze=_||Ue;else ge?ze=Ue&&(_||_e):Z?ze=Ue&&_e&&(_||!Me):ee?ze=Ue&&_e&&!Me&&(_||!rt):Me||rt?ze=!1:ze=_?be<=f:be<f;ze?O=ve+1:M=ve}return Qn(M,te)}function o3(l,f){for(var g=-1,_=l.length,O=0,M=[];++g<_;){var B=l[g],Z=f?f(B):B;if(!g||!Ai(Z,ee)){var ee=Z;M[O++]=B===0?0:B}}return M}function a3(l){return typeof l=="number"?l:Vr(l)?W:+l}function Dr(l){if(typeof l=="string")return l;if(Je(l))return Jt(l,Dr)+"";if(Vr(l))return D4?D4.call(l):"";var f=l+"";return f=="0"&&1/l==-Y?"-0":f}function Zo(l,f,g){var _=-1,O=Yd,M=l.length,B=!0,Z=[],ee=Z;if(g)B=!1,O=gy;else if(M>=i){var ge=f?null:uK(l);if(ge)return Zd(ge);B=!1,O=Gc,ee=new Ra}else ee=f?[]:Z;e:for(;++_<M;){var ve=l[_],be=f?f(ve):ve;if(ve=g||ve!==0?ve:0,B&&be===be){for(var _e=ee.length;_e--;)if(ee[_e]===be)continue e;f&&ee.push(be),Z.push(ve)}else O(ee,be,g)||(ee!==Z&&ee.push(be),Z.push(ve))}return Z}function By(l,f){f=Qo(f,l);var g=-1,_=f.length;if(!_)return!0;for(var O=l==null||typeof l!="object"&&typeof l!="function";++g<_;){var M=f[g];if(typeof M=="string"){if(M==="__proto__"&&!Ot.call(l,"__proto__"))return!1;if(M==="constructor"&&g+1<_&&typeof f[g+1]=="string"&&f[g+1]==="prototype"){if(O&&g===0)continue;return!1}}}var B=M3(l,f);return B==null||delete B[Yi(ui(f))]}function s3(l,f,g,_){return tu(l,f,g(Ia(l,f)),_)}function ph(l,f,g,_){for(var O=l.length,M=_?O:-1;(_?M--:++M<O)&&f(l[M],M,l););return g?ci(l,_?0:M,_?M+1:O):ci(l,_?M+1:0,_?O:M)}function l3(l,f){var g=l;return g instanceof dt&&(g=g.value()),vy(f,function(_,O){return O.func.apply(O.thisArg,Wo([_],O.args))},g)}function Hy(l,f,g){var _=l.length;if(_<2)return _?Zo(l[0]):[];for(var O=-1,M=le(_);++O<_;)for(var B=l[O],Z=-1;++Z<_;)Z!=O&&(M[O]=Xc(M[O]||B,l[Z],f,g));return Zo(zn(M,1),f,g)}function c3(l,f,g){for(var _=-1,O=l.length,M=f.length,B={};++_<O;){var Z=_<M?f[_]:n;g(B,l[_],Z)}return B}function Wy(l){return pn(l)?l:[]}function Gy(l){return typeof l=="function"?l:kr}function Qo(l,f){return Je(l)?l:eb(l,f)?[l]:D3(Rt(l))}var eK=ot;function qo(l,f,g){var _=l.length;return g=g===n?_:g,!f&&g>=_?l:ci(l,f,g)}var u3=zG||function(l){return Un.clearTimeout(l)};function f3(l,f){if(f)return l.slice();var g=l.length,_=I4?I4(g):new l.constructor(g);return l.copy(_),_}function Yy(l){var f=new l.constructor(l.byteLength);return new eh(f).set(new eh(l)),f}function tK(l,f){var g=f?Yy(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.byteLength)}function nK(l){var f=new l.constructor(l.source,ei.exec(l));return f.lastIndex=l.lastIndex,f}function rK(l){return qc?zt(qc.call(l)):{}}function d3(l,f){var g=f?Yy(l.buffer):l.buffer;return new l.constructor(g,l.byteOffset,l.length)}function h3(l,f){if(l!==f){var g=l!==n,_=l===null,O=l===l,M=Vr(l),B=f!==n,Z=f===null,ee=f===f,ge=Vr(f);if(!Z&&!ge&&!M&&l>f||M&&B&&ee&&!Z&&!ge||_&&B&&ee||!g&&ee||!O)return 1;if(!_&&!M&&!ge&&l<f||ge&&g&&O&&!_&&!M||Z&&g&&O||!B&&O||!ee)return-1}return 0}function iK(l,f,g){for(var _=-1,O=l.criteria,M=f.criteria,B=O.length,Z=g.length;++_<B;){var ee=h3(O[_],M[_]);if(ee){if(_>=Z)return ee;var ge=g[_];return ee*(ge=="desc"?-1:1)}}return l.index-f.index}function p3(l,f,g,_){for(var O=-1,M=l.length,B=g.length,Z=-1,ee=f.length,ge=An(M-B,0),ve=le(ee+ge),be=!_;++Z<ee;)ve[Z]=f[Z];for(;++O<B;)(be||O<M)&&(ve[g[O]]=l[O]);for(;ge--;)ve[Z++]=l[O++];return ve}function m3(l,f,g,_){for(var O=-1,M=l.length,B=-1,Z=g.length,ee=-1,ge=f.length,ve=An(M-Z,0),be=le(ve+ge),_e=!_;++O<ve;)be[O]=l[O];for(var Me=O;++ee<ge;)be[Me+ee]=f[ee];for(;++B<Z;)(_e||O<M)&&(be[Me+g[B]]=l[O++]);return be}function Cr(l,f){var g=-1,_=l.length;for(f||(f=le(_));++g<_;)f[g]=l[g];return f}function Gi(l,f,g,_){var O=!g;g||(g={});for(var M=-1,B=f.length;++M<B;){var Z=f[M],ee=_?_(g[Z],l[Z],Z,g,l):n;ee===n&&(ee=l[Z]),O?co(g,Z,ee):Jc(g,Z,ee)}return g}function oK(l,f){return Gi(l,$y(l),f)}function aK(l,f){return Gi(l,T3(l),f)}function mh(l,f){return function(g,_){var O=Je(g)?fG:TY,M=f?f():{};return O(g,l,De(_,2),M)}}function fl(l){return ot(function(f,g){var _=-1,O=g.length,M=O>1?g[O-1]:n,B=O>2?g[2]:n;for(M=l.length>3&&typeof M=="function"?(O--,M):n,B&&cr(g[0],g[1],B)&&(M=O<3?n:M,O=1),f=zt(f);++_<O;){var Z=g[_];Z&&l(f,Z,_,M)}return f})}function g3(l,f){return function(g,_){if(g==null)return g;if(!xr(g))return l(g,_);for(var O=g.length,M=f?O:-1,B=zt(g);(f?M--:++M<O)&&_(B[M],M,B)!==!1;);return g}}function v3(l){return function(f,g,_){for(var O=-1,M=zt(f),B=_(f),Z=B.length;Z--;){var ee=B[l?Z:++O];if(g(M[ee],ee,M)===!1)break}return f}}function sK(l,f,g){var _=f&y,O=nu(l);function M(){var B=this&&this!==Un&&this instanceof M?O:l;return B.apply(_?g:this,arguments)}return M}function y3(l){return function(f){f=Rt(f);var g=il(f)?Ci(f):n,_=g?g[0]:f.charAt(0),O=g?qo(g,1).join(""):f.slice(1);return _[l]()+O}}function dl(l){return function(f){return vy(g9(m9(f).replace(Hc,"")),l,"")}}function nu(l){return function(){var f=arguments;switch(f.length){case 0:return new l;case 1:return new l(f[0]);case 2:return new l(f[0],f[1]);case 3:return new l(f[0],f[1],f[2]);case 4:return new l(f[0],f[1],f[2],f[3]);case 5:return new l(f[0],f[1],f[2],f[3],f[4]);case 6:return new l(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new l(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var g=ul(l.prototype),_=l.apply(g,f);return rn(_)?_:g}}function lK(l,f,g){var _=nu(l);function O(){for(var M=arguments.length,B=le(M),Z=M,ee=hl(O);Z--;)B[Z]=arguments[Z];var ge=M<3&&B[0]!==ee&&B[M-1]!==ee?[]:Go(B,ee);if(M-=ge.length,M<g)return _3(l,f,gh,O.placeholder,n,B,ge,n,n,g-M);var ve=this&&this!==Un&&this instanceof O?_:l;return Fr(ve,this,B)}return O}function b3(l){return function(f,g,_){var O=zt(f);if(!xr(f)){var M=De(g,3);f=Fn(f),g=function(Z){return M(O[Z],Z,O)}}var B=l(f,g,_);return B>-1?O[M?f[B]:B]:n}}function E3(l){return fo(function(f){var g=f.length,_=g,O=si.prototype.thru;for(l&&f.reverse();_--;){var M=f[_];if(typeof M!="function")throw new ai(a);if(O&&!B&&Eh(M)=="wrapper")var B=new si([],!0)}for(_=B?_:g;++_<g;){M=f[_];var Z=Eh(M),ee=Z=="wrapper"?Jy(M):n;ee&&tb(ee[0])&&ee[1]==(T|k|S|N)&&!ee[4].length&&ee[9]==1?B=B[Eh(ee[0])].apply(B,ee[3]):B=M.length==1&&tb(M)?B[Z]():B.thru(M)}return function(){var ge=arguments,ve=ge[0];if(B&&ge.length==1&&Je(ve))return B.plant(ve).value();for(var be=0,_e=g?f[be].apply(this,ge):ve;++be<g;)_e=f[be].call(this,_e);return _e}})}function gh(l,f,g,_,O,M,B,Z,ee,ge){var ve=f&T,be=f&y,_e=f&w,Me=f&(k|x),Ue=f&P,rt=_e?n:nu(l);function ze(){for(var ct=arguments.length,mt=le(ct),Ur=ct;Ur--;)mt[Ur]=arguments[Ur];if(Me)var ur=hl(ze),zr=EG(mt,ur);if(_&&(mt=p3(mt,_,O,Me)),M&&(mt=m3(mt,M,B,Me)),ct-=zr,Me&&ct<ge){var mn=Go(mt,ur);return _3(l,f,gh,ze.placeholder,g,mt,mn,Z,ee,ge-ct)}var ki=be?g:this,go=_e?ki[l]:l;return ct=mt.length,Z?mt=TK(mt,Z):Ue&&ct>1&&mt.reverse(),ve&&ee<ct&&(mt.length=ee),this&&this!==Un&&this instanceof ze&&(go=rt||nu(go)),go.apply(ki,mt)}return ze}function S3(l,f){return function(g,_){return FY(g,l,f(_),{})}}function vh(l,f){return function(g,_){var O;if(g===n&&_===n)return f;if(g!==n&&(O=g),_!==n){if(O===n)return _;typeof g=="string"||typeof _=="string"?(g=Dr(g),_=Dr(_)):(g=a3(g),_=a3(_)),O=l(g,_)}return O}}function Ky(l){return fo(function(f){return f=Jt(f,jr(De())),ot(function(g){var _=this;return l(f,function(O){return Fr(O,_,g)})})})}function yh(l,f){f=f===n?" ":Dr(f);var g=f.length;if(g<2)return g?Uy(f,l):f;var _=Uy(f,ih(l/ol(f)));return il(f)?qo(Ci(_),0,l).join(""):_.slice(0,l)}function cK(l,f,g,_){var O=f&y,M=nu(l);function B(){for(var Z=-1,ee=arguments.length,ge=-1,ve=_.length,be=le(ve+ee),_e=this&&this!==Un&&this instanceof B?M:l;++ge<ve;)be[ge]=_[ge];for(;ee--;)be[ge++]=arguments[++Z];return Fr(_e,O?g:this,be)}return B}function w3(l){return function(f,g,_){return _&&typeof _!="number"&&cr(f,g,_)&&(g=_=n),f=mo(f),g===n?(g=f,f=0):g=mo(g),_=_===n?f<g?1:-1:mo(_),ZY(f,g,_,l)}}function bh(l){return function(f,g){return typeof f=="string"&&typeof g=="string"||(f=fi(f),g=fi(g)),l(f,g)}}function _3(l,f,g,_,O,M,B,Z,ee,ge){var ve=f&k,be=ve?B:n,_e=ve?n:B,Me=ve?M:n,Ue=ve?n:M;f|=ve?S:A,f&=~(ve?A:S),f&C||(f&=-4);var rt=[l,f,O,Me,be,Ue,_e,Z,ee,ge],ze=g.apply(n,rt);return tb(l)&&L3(ze,rt),ze.placeholder=_,F3(ze,l,f)}function Zy(l){var f=xn[l];return function(g,_){if(g=fi(g),_=_==null?0:Qn(tt(_),292),_&&F4(g)){var O=(Rt(g)+"e").split("e"),M=f(O[0]+"e"+(+O[1]+_));return O=(Rt(M)+"e").split("e"),+(O[0]+"e"+(+O[1]-_))}return f(g)}}var uK=ll&&1/Zd(new ll([,-0]))[1]==Y?function(l){return new ll(l)}:gb;function C3(l){return function(f){var g=qn(f);return g==ye?Cy(f):g==Le?kG(f):bG(f,l(f))}}function uo(l,f,g,_,O,M,B,Z){var ee=f&w;if(!ee&&typeof l!="function")throw new ai(a);var ge=_?_.length:0;if(ge||(f&=-97,_=O=n),B=B===n?B:An(tt(B),0),Z=Z===n?Z:tt(Z),ge-=O?O.length:0,f&A){var ve=_,be=O;_=O=n}var _e=ee?n:Jy(l),Me=[l,f,g,_,O,ve,be,M,B,Z];if(_e&&xK(Me,_e),l=Me[0],f=Me[1],g=Me[2],_=Me[3],O=Me[4],Z=Me[9]=Me[9]===n?ee?0:l.length:An(Me[9]-ge,0),!Z&&f&(k|x)&&(f&=-25),!f||f==y)var Ue=sK(l,f,g);else f==k||f==x?Ue=lK(l,f,Z):(f==S||f==(y|S))&&!O.length?Ue=cK(l,f,g,_):Ue=gh.apply(n,Me);var rt=_e?i3:L3;return F3(rt(Ue,Me),l,f)}function x3(l,f,g,_){return l===n||Ai(l,sl[g])&&!Ot.call(_,g)?f:l}function A3(l,f,g,_,O,M){return rn(l)&&rn(f)&&(M.set(f,l),dh(l,f,n,A3,M),M.delete(f)),l}function fK(l){return ou(l)?n:l}function k3(l,f,g,_,O,M){var B=g&v,Z=l.length,ee=f.length;if(Z!=ee&&!(B&&ee>Z))return!1;var ge=M.get(l),ve=M.get(f);if(ge&&ve)return ge==f&&ve==l;var be=-1,_e=!0,Me=g&b?new Ra:n;for(M.set(l,f),M.set(f,l);++be<Z;){var Ue=l[be],rt=f[be];if(_)var ze=B?_(rt,Ue,be,f,l,M):_(Ue,rt,be,l,f,M);if(ze!==n){if(ze)continue;_e=!1;break}if(Me){if(!yy(f,function(ct,mt){if(!Gc(Me,mt)&&(Ue===ct||O(Ue,ct,g,_,M)))return Me.push(mt)})){_e=!1;break}}else if(!(Ue===rt||O(Ue,rt,g,_,M))){_e=!1;break}}return M.delete(l),M.delete(f),_e}function dK(l,f,g,_,O,M,B){switch(g){case Qt:if(l.byteLength!=f.byteLength||l.byteOffset!=f.byteOffset)return!1;l=l.buffer,f=f.buffer;case Yt:return!(l.byteLength!=f.byteLength||!M(new eh(l),new eh(f)));case J:case re:case Fe:return Ai(+l,+f);case Ee:return l.name==f.name&&l.message==f.message;case nt:case Qe:return l==f+"";case ye:var Z=Cy;case Le:var ee=_&v;if(Z||(Z=Zd),l.size!=f.size&&!ee)return!1;var ge=B.get(l);if(ge)return ge==f;_|=b,B.set(l,f);var ve=k3(Z(l),Z(f),_,O,M,B);return B.delete(l),ve;case At:if(qc)return qc.call(l)==qc.call(f)}return!1}function hK(l,f,g,_,O,M){var B=g&v,Z=Qy(l),ee=Z.length,ge=Qy(f),ve=ge.length;if(ee!=ve&&!B)return!1;for(var be=ee;be--;){var _e=Z[be];if(!(B?_e in f:Ot.call(f,_e)))return!1}var Me=M.get(l),Ue=M.get(f);if(Me&&Ue)return Me==f&&Ue==l;var rt=!0;M.set(l,f),M.set(f,l);for(var ze=B;++be<ee;){_e=Z[be];var ct=l[_e],mt=f[_e];if(_)var Ur=B?_(mt,ct,_e,f,l,M):_(ct,mt,_e,l,f,M);if(!(Ur===n?ct===mt||O(ct,mt,g,_,M):Ur)){rt=!1;break}ze||(ze=_e=="constructor")}if(rt&&!ze){var ur=l.constructor,zr=f.constructor;ur!=zr&&"constructor"in l&&"constructor"in f&&!(typeof ur=="function"&&ur instanceof ur&&typeof zr=="function"&&zr instanceof zr)&&(rt=!1)}return M.delete(l),M.delete(f),rt}function fo(l){return rb(P3(l,n,B3),l+"")}function Qy(l){return K4(l,Fn,$y)}function qy(l){return K4(l,Ar,T3)}var Jy=ah?function(l){return ah.get(l)}:gb;function Eh(l){for(var f=l.name+"",g=cl[f],_=Ot.call(cl,f)?g.length:0;_--;){var O=g[_],M=O.func;if(M==null||M==l)return O.name}return f}function hl(l){var f=Ot.call(I,"placeholder")?I:l;return f.placeholder}function De(){var l=I.iteratee||pb;return l=l===pb?q4:l,arguments.length?l(arguments[0],arguments[1]):l}function Sh(l,f){var g=l.__data__;return SK(f)?g[typeof f=="string"?"string":"hash"]:g.map}function Xy(l){for(var f=Fn(l),g=f.length;g--;){var _=f[g],O=l[_];f[g]=[_,O,N3(O)]}return f}function Pa(l,f){var g=CG(l,f);return Q4(g)?g:n}function pK(l){var f=Ot.call(l,Ta),g=l[Ta];try{l[Ta]=n;var _=!0}catch{}var O=Xd.call(l);return _&&(f?l[Ta]=g:delete l[Ta]),O}var $y=Ay?function(l){return l==null?[]:(l=zt(l),Ho(Ay(l),function(f){return M4.call(l,f)}))}:vb,T3=Ay?function(l){for(var f=[];l;)Wo(f,$y(l)),l=th(l);return f}:vb,qn=lr;(ky&&qn(new ky(new ArrayBuffer(1)))!=Qt||Kc&&qn(new Kc)!=ye||Ty&&qn(Ty.resolve())!=lt||ll&&qn(new ll)!=Le||Zc&&qn(new Zc)!=et)&&(qn=function(l){var f=lr(l),g=f==Pe?l.constructor:n,_=g?Ma(g):"";if(_)switch(_){case qG:return Qt;case JG:return ye;case XG:return lt;case $G:return Le;case eY:return et}return f});function mK(l,f,g){for(var _=-1,O=g.length;++_<O;){var M=g[_],B=M.size;switch(M.type){case"drop":l+=B;break;case"dropRight":f-=B;break;case"take":f=Qn(f,l+B);break;case"takeRight":l=An(l,f-B);break}}return{start:l,end:f}}function gK(l){var f=l.match(Er);return f?f[1].split(Et):[]}function O3(l,f,g){f=Qo(f,l);for(var _=-1,O=f.length,M=!1;++_<O;){var B=Yi(f[_]);if(!(M=l!=null&&g(l,B)))break;l=l[B]}return M||++_!=O?M:(O=l==null?0:l.length,!!O&&Th(O)&&ho(B,O)&&(Je(l)||La(l)))}function vK(l){var f=l.length,g=new l.constructor(f);return f&&typeof l[0]=="string"&&Ot.call(l,"index")&&(g.index=l.index,g.input=l.input),g}function R3(l){return typeof l.constructor=="function"&&!ru(l)?ul(th(l)):{}}function yK(l,f,g){var _=l.constructor;switch(f){case Yt:return Yy(l);case J:case re:return new _(+l);case Qt:return tK(l,g);case wn:case vr:case yt:case bt:case sn:case tn:case Vt:case _n:case nn:return d3(l,g);case ye:return new _;case Fe:case Qe:return new _(l);case nt:return nK(l);case Le:return new _;case At:return rK(l)}}function bK(l,f){var g=f.length;if(!g)return l;var _=g-1;return f[_]=(g>1?"& ":"")+f[_],f=f.join(g>2?", ":" "),l.replace(Ln,`{
|
|
54
|
+
/* [wrapped with `+f+`] */
|
|
55
|
+
`)}function EK(l){return Je(l)||La(l)||!!(L4&&l&&l[L4])}function ho(l,f){var g=typeof l;return f=f??z,!!f&&(g=="number"||g!="symbol"&&K.test(l))&&l>-1&&l%1==0&&l<f}function cr(l,f,g){if(!rn(g))return!1;var _=typeof f;return(_=="number"?xr(g)&&ho(f,g.length):_=="string"&&f in g)?Ai(g[f],l):!1}function eb(l,f){if(Je(l))return!1;var g=typeof l;return g=="number"||g=="symbol"||g=="boolean"||l==null||Vr(l)?!0:gt.test(l)||!vn.test(l)||f!=null&&l in zt(f)}function SK(l){var f=typeof l;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?l!=="__proto__":l===null}function tb(l){var f=Eh(l),g=I[f];if(typeof g!="function"||!(f in dt.prototype))return!1;if(l===g)return!0;var _=Jy(g);return!!_&&l===_[0]}function wK(l){return!!N4&&N4 in l}var _K=qd?po:yb;function ru(l){var f=l&&l.constructor,g=typeof f=="function"&&f.prototype||sl;return l===g}function N3(l){return l===l&&!rn(l)}function I3(l,f){return function(g){return g==null?!1:g[l]===f&&(f!==n||l in zt(g))}}function CK(l){var f=Ah(l,function(_){return g.size===u&&g.clear(),_}),g=f.cache;return f}function xK(l,f){var g=l[1],_=f[1],O=g|_,M=O<(y|w|T),B=_==T&&g==k||_==T&&g==N&&l[7].length<=f[8]||_==(T|N)&&f[7].length<=f[8]&&g==k;if(!(M||B))return l;_&y&&(l[2]=f[2],O|=g&y?0:C);var Z=f[3];if(Z){var ee=l[3];l[3]=ee?p3(ee,Z,f[4]):Z,l[4]=ee?Go(l[3],d):f[4]}return Z=f[5],Z&&(ee=l[5],l[5]=ee?m3(ee,Z,f[6]):Z,l[6]=ee?Go(l[5],d):f[6]),Z=f[7],Z&&(l[7]=Z),_&T&&(l[8]=l[8]==null?f[8]:Qn(l[8],f[8])),l[9]==null&&(l[9]=f[9]),l[0]=f[0],l[1]=O,l}function AK(l){var f=[];if(l!=null)for(var g in zt(l))f.push(g);return f}function kK(l){return Xd.call(l)}function P3(l,f,g){return f=An(f===n?l.length-1:f,0),function(){for(var _=arguments,O=-1,M=An(_.length-f,0),B=le(M);++O<M;)B[O]=_[f+O];O=-1;for(var Z=le(f+1);++O<f;)Z[O]=_[O];return Z[f]=g(B),Fr(l,this,Z)}}function M3(l,f){return f.length<2?l:Ia(l,ci(f,0,-1))}function TK(l,f){for(var g=l.length,_=Qn(f.length,g),O=Cr(l);_--;){var M=f[_];l[_]=ho(M,g)?O[M]:n}return l}function nb(l,f){if(!(f==="constructor"&&typeof l[f]=="function")&&f!="__proto__")return l[f]}var L3=j3(i3),iu=HG||function(l,f){return Un.setTimeout(l,f)},rb=j3(JY);function F3(l,f,g){var _=f+"";return rb(l,bK(_,OK(gK(_),g)))}function j3(l){var f=0,g=0;return function(){var _=KG(),O=Q-(_-g);if(g=_,O>0){if(++f>=H)return arguments[0]}else f=0;return l.apply(n,arguments)}}function wh(l,f){var g=-1,_=l.length,O=_-1;for(f=f===n?_:f;++g<f;){var M=Vy(g,O),B=l[M];l[M]=l[g],l[g]=B}return l.length=f,l}var D3=CK(function(l){var f=[];return l.charCodeAt(0)===46&&f.push(""),l.replace(ft,function(g,_,O,M){f.push(O?M.replace(Pt,"$1"):_||g)}),f});function Yi(l){if(typeof l=="string"||Vr(l))return l;var f=l+"";return f=="0"&&1/l==-Y?"-0":f}function Ma(l){if(l!=null){try{return Jd.call(l)}catch{}try{return l+""}catch{}}return""}function OK(l,f){return oi(ce,function(g){var _="_."+g[0];f&g[1]&&!Yd(l,_)&&l.push(_)}),l.sort()}function V3(l){if(l instanceof dt)return l.clone();var f=new si(l.__wrapped__,l.__chain__);return f.__actions__=Cr(l.__actions__),f.__index__=l.__index__,f.__values__=l.__values__,f}function RK(l,f,g){(g?cr(l,f,g):f===n)?f=1:f=An(tt(f),0);var _=l==null?0:l.length;if(!_||f<1)return[];for(var O=0,M=0,B=le(ih(_/f));O<_;)B[M++]=ci(l,O,O+=f);return B}function NK(l){for(var f=-1,g=l==null?0:l.length,_=0,O=[];++f<g;){var M=l[f];M&&(O[_++]=M)}return O}function IK(){var l=arguments.length;if(!l)return[];for(var f=le(l-1),g=arguments[0],_=l;_--;)f[_-1]=arguments[_];return Wo(Je(g)?Cr(g):[g],zn(f,1))}var PK=ot(function(l,f){return pn(l)?Xc(l,zn(f,1,pn,!0)):[]}),MK=ot(function(l,f){var g=ui(f);return pn(g)&&(g=n),pn(l)?Xc(l,zn(f,1,pn,!0),De(g,2)):[]}),LK=ot(function(l,f){var g=ui(f);return pn(g)&&(g=n),pn(l)?Xc(l,zn(f,1,pn,!0),n,g):[]});function FK(l,f,g){var _=l==null?0:l.length;return _?(f=g||f===n?1:tt(f),ci(l,f<0?0:f,_)):[]}function jK(l,f,g){var _=l==null?0:l.length;return _?(f=g||f===n?1:tt(f),f=_-f,ci(l,0,f<0?0:f)):[]}function DK(l,f){return l&&l.length?ph(l,De(f,3),!0,!0):[]}function VK(l,f){return l&&l.length?ph(l,De(f,3),!0):[]}function UK(l,f,g,_){var O=l==null?0:l.length;return O?(g&&typeof g!="number"&&cr(l,f,g)&&(g=0,_=O),IY(l,f,g,_)):[]}function U3(l,f,g){var _=l==null?0:l.length;if(!_)return-1;var O=g==null?0:tt(g);return O<0&&(O=An(_+O,0)),Kd(l,De(f,3),O)}function z3(l,f,g){var _=l==null?0:l.length;if(!_)return-1;var O=_-1;return g!==n&&(O=tt(g),O=g<0?An(_+O,0):Qn(O,_-1)),Kd(l,De(f,3),O,!0)}function B3(l){var f=l==null?0:l.length;return f?zn(l,1):[]}function zK(l){var f=l==null?0:l.length;return f?zn(l,Y):[]}function BK(l,f){var g=l==null?0:l.length;return g?(f=f===n?1:tt(f),zn(l,f)):[]}function HK(l){for(var f=-1,g=l==null?0:l.length,_={};++f<g;){var O=l[f];_[O[0]]=O[1]}return _}function H3(l){return l&&l.length?l[0]:n}function WK(l,f,g){var _=l==null?0:l.length;if(!_)return-1;var O=g==null?0:tt(g);return O<0&&(O=An(_+O,0)),rl(l,f,O)}function GK(l){var f=l==null?0:l.length;return f?ci(l,0,-1):[]}var YK=ot(function(l){var f=Jt(l,Wy);return f.length&&f[0]===l[0]?My(f):[]}),KK=ot(function(l){var f=ui(l),g=Jt(l,Wy);return f===ui(g)?f=n:g.pop(),g.length&&g[0]===l[0]?My(g,De(f,2)):[]}),ZK=ot(function(l){var f=ui(l),g=Jt(l,Wy);return f=typeof f=="function"?f:n,f&&g.pop(),g.length&&g[0]===l[0]?My(g,n,f):[]});function QK(l,f){return l==null?"":GG.call(l,f)}function ui(l){var f=l==null?0:l.length;return f?l[f-1]:n}function qK(l,f,g){var _=l==null?0:l.length;if(!_)return-1;var O=_;return g!==n&&(O=tt(g),O=O<0?An(_+O,0):Qn(O,_-1)),f===f?OG(l,f,O):Kd(l,_4,O,!0)}function JK(l,f){return l&&l.length?e3(l,tt(f)):n}var XK=ot(W3);function W3(l,f){return l&&l.length&&f&&f.length?Dy(l,f):l}function $K(l,f,g){return l&&l.length&&f&&f.length?Dy(l,f,De(g,2)):l}function eZ(l,f,g){return l&&l.length&&f&&f.length?Dy(l,f,n,g):l}var tZ=fo(function(l,f){var g=l==null?0:l.length,_=Ry(l,f);return r3(l,Jt(f,function(O){return ho(O,g)?+O:O}).sort(h3)),_});function nZ(l,f){var g=[];if(!(l&&l.length))return g;var _=-1,O=[],M=l.length;for(f=De(f,3);++_<M;){var B=l[_];f(B,_,l)&&(g.push(B),O.push(_))}return r3(l,O),g}function ib(l){return l==null?l:QG.call(l)}function rZ(l,f,g){var _=l==null?0:l.length;return _?(g&&typeof g!="number"&&cr(l,f,g)?(f=0,g=_):(f=f==null?0:tt(f),g=g===n?_:tt(g)),ci(l,f,g)):[]}function iZ(l,f){return hh(l,f)}function oZ(l,f,g){return zy(l,f,De(g,2))}function aZ(l,f){var g=l==null?0:l.length;if(g){var _=hh(l,f);if(_<g&&Ai(l[_],f))return _}return-1}function sZ(l,f){return hh(l,f,!0)}function lZ(l,f,g){return zy(l,f,De(g,2),!0)}function cZ(l,f){var g=l==null?0:l.length;if(g){var _=hh(l,f,!0)-1;if(Ai(l[_],f))return _}return-1}function uZ(l){return l&&l.length?o3(l):[]}function fZ(l,f){return l&&l.length?o3(l,De(f,2)):[]}function dZ(l){var f=l==null?0:l.length;return f?ci(l,1,f):[]}function hZ(l,f,g){return l&&l.length?(f=g||f===n?1:tt(f),ci(l,0,f<0?0:f)):[]}function pZ(l,f,g){var _=l==null?0:l.length;return _?(f=g||f===n?1:tt(f),f=_-f,ci(l,f<0?0:f,_)):[]}function mZ(l,f){return l&&l.length?ph(l,De(f,3),!1,!0):[]}function gZ(l,f){return l&&l.length?ph(l,De(f,3)):[]}var vZ=ot(function(l){return Zo(zn(l,1,pn,!0))}),yZ=ot(function(l){var f=ui(l);return pn(f)&&(f=n),Zo(zn(l,1,pn,!0),De(f,2))}),bZ=ot(function(l){var f=ui(l);return f=typeof f=="function"?f:n,Zo(zn(l,1,pn,!0),n,f)});function EZ(l){return l&&l.length?Zo(l):[]}function SZ(l,f){return l&&l.length?Zo(l,De(f,2)):[]}function wZ(l,f){return f=typeof f=="function"?f:n,l&&l.length?Zo(l,n,f):[]}function ob(l){if(!(l&&l.length))return[];var f=0;return l=Ho(l,function(g){if(pn(g))return f=An(g.length,f),!0}),wy(f,function(g){return Jt(l,by(g))})}function G3(l,f){if(!(l&&l.length))return[];var g=ob(l);return f==null?g:Jt(g,function(_){return Fr(f,n,_)})}var _Z=ot(function(l,f){return pn(l)?Xc(l,f):[]}),CZ=ot(function(l){return Hy(Ho(l,pn))}),xZ=ot(function(l){var f=ui(l);return pn(f)&&(f=n),Hy(Ho(l,pn),De(f,2))}),AZ=ot(function(l){var f=ui(l);return f=typeof f=="function"?f:n,Hy(Ho(l,pn),n,f)}),kZ=ot(ob);function TZ(l,f){return c3(l||[],f||[],Jc)}function OZ(l,f){return c3(l||[],f||[],tu)}var RZ=ot(function(l){var f=l.length,g=f>1?l[f-1]:n;return g=typeof g=="function"?(l.pop(),g):n,G3(l,g)});function Y3(l){var f=I(l);return f.__chain__=!0,f}function NZ(l,f){return f(l),l}function _h(l,f){return f(l)}var IZ=fo(function(l){var f=l.length,g=f?l[0]:0,_=this.__wrapped__,O=function(M){return Ry(M,l)};return f>1||this.__actions__.length||!(_ instanceof dt)||!ho(g)?this.thru(O):(_=_.slice(g,+g+(f?1:0)),_.__actions__.push({func:_h,args:[O],thisArg:n}),new si(_,this.__chain__).thru(function(M){return f&&!M.length&&M.push(n),M}))});function PZ(){return Y3(this)}function MZ(){return new si(this.value(),this.__chain__)}function LZ(){this.__values__===n&&(this.__values__=a9(this.value()));var l=this.__index__>=this.__values__.length,f=l?n:this.__values__[this.__index__++];return{done:l,value:f}}function FZ(){return this}function jZ(l){for(var f,g=this;g instanceof lh;){var _=V3(g);_.__index__=0,_.__values__=n,f?O.__wrapped__=_:f=_;var O=_;g=g.__wrapped__}return O.__wrapped__=l,f}function DZ(){var l=this.__wrapped__;if(l instanceof dt){var f=l;return this.__actions__.length&&(f=new dt(this)),f=f.reverse(),f.__actions__.push({func:_h,args:[ib],thisArg:n}),new si(f,this.__chain__)}return this.thru(ib)}function VZ(){return l3(this.__wrapped__,this.__actions__)}var UZ=mh(function(l,f,g){Ot.call(l,g)?++l[g]:co(l,g,1)});function zZ(l,f,g){var _=Je(l)?S4:NY;return g&&cr(l,f,g)&&(f=n),_(l,De(f,3))}function BZ(l,f){var g=Je(l)?Ho:G4;return g(l,De(f,3))}var HZ=b3(U3),WZ=b3(z3);function GZ(l,f){return zn(Ch(l,f),1)}function YZ(l,f){return zn(Ch(l,f),Y)}function KZ(l,f,g){return g=g===n?1:tt(g),zn(Ch(l,f),g)}function K3(l,f){var g=Je(l)?oi:Ko;return g(l,De(f,3))}function Z3(l,f){var g=Je(l)?dG:W4;return g(l,De(f,3))}var ZZ=mh(function(l,f,g){Ot.call(l,g)?l[g].push(f):co(l,g,[f])});function QZ(l,f,g,_){l=xr(l)?l:ml(l),g=g&&!_?tt(g):0;var O=l.length;return g<0&&(g=An(O+g,0)),Oh(l)?g<=O&&l.indexOf(f,g)>-1:!!O&&rl(l,f,g)>-1}var qZ=ot(function(l,f,g){var _=-1,O=typeof f=="function",M=xr(l)?le(l.length):[];return Ko(l,function(B){M[++_]=O?Fr(f,B,g):$c(B,f,g)}),M}),JZ=mh(function(l,f,g){co(l,g,f)});function Ch(l,f){var g=Je(l)?Jt:J4;return g(l,De(f,3))}function XZ(l,f,g,_){return l==null?[]:(Je(f)||(f=f==null?[]:[f]),g=_?n:g,Je(g)||(g=g==null?[]:[g]),t3(l,f,g))}var $Z=mh(function(l,f,g){l[g?0:1].push(f)},function(){return[[],[]]});function eQ(l,f,g){var _=Je(l)?vy:x4,O=arguments.length<3;return _(l,De(f,4),g,O,Ko)}function tQ(l,f,g){var _=Je(l)?hG:x4,O=arguments.length<3;return _(l,De(f,4),g,O,W4)}function nQ(l,f){var g=Je(l)?Ho:G4;return g(l,kh(De(f,3)))}function rQ(l){var f=Je(l)?U4:QY;return f(l)}function iQ(l,f,g){(g?cr(l,f,g):f===n)?f=1:f=tt(f);var _=Je(l)?AY:qY;return _(l,f)}function oQ(l){var f=Je(l)?kY:XY;return f(l)}function aQ(l){if(l==null)return 0;if(xr(l))return Oh(l)?ol(l):l.length;var f=qn(l);return f==ye||f==Le?l.size:Fy(l).length}function sQ(l,f,g){var _=Je(l)?yy:$Y;return g&&cr(l,f,g)&&(f=n),_(l,De(f,3))}var lQ=ot(function(l,f){if(l==null)return[];var g=f.length;return g>1&&cr(l,f[0],f[1])?f=[]:g>2&&cr(f[0],f[1],f[2])&&(f=[f[0]]),t3(l,zn(f,1),[])}),xh=BG||function(){return Un.Date.now()};function cQ(l,f){if(typeof f!="function")throw new ai(a);return l=tt(l),function(){if(--l<1)return f.apply(this,arguments)}}function Q3(l,f,g){return f=g?n:f,f=l&&f==null?l.length:f,uo(l,T,n,n,n,n,f)}function q3(l,f){var g;if(typeof f!="function")throw new ai(a);return l=tt(l),function(){return--l>0&&(g=f.apply(this,arguments)),l<=1&&(f=n),g}}var ab=ot(function(l,f,g){var _=y;if(g.length){var O=Go(g,hl(ab));_|=S}return uo(l,_,f,g,O)}),J3=ot(function(l,f,g){var _=y|w;if(g.length){var O=Go(g,hl(J3));_|=S}return uo(f,_,l,g,O)});function X3(l,f,g){f=g?n:f;var _=uo(l,k,n,n,n,n,n,f);return _.placeholder=X3.placeholder,_}function $3(l,f,g){f=g?n:f;var _=uo(l,x,n,n,n,n,n,f);return _.placeholder=$3.placeholder,_}function e9(l,f,g){var _,O,M,B,Z,ee,ge=0,ve=!1,be=!1,_e=!0;if(typeof l!="function")throw new ai(a);f=fi(f)||0,rn(g)&&(ve=!!g.leading,be="maxWait"in g,M=be?An(fi(g.maxWait)||0,f):M,_e="trailing"in g?!!g.trailing:_e);function Me(mn){var ki=_,go=O;return _=O=n,ge=mn,B=l.apply(go,ki),B}function Ue(mn){return ge=mn,Z=iu(ct,f),ve?Me(mn):B}function rt(mn){var ki=mn-ee,go=mn-ge,b9=f-ki;return be?Qn(b9,M-go):b9}function ze(mn){var ki=mn-ee,go=mn-ge;return ee===n||ki>=f||ki<0||be&&go>=M}function ct(){var mn=xh();if(ze(mn))return mt(mn);Z=iu(ct,rt(mn))}function mt(mn){return Z=n,_e&&_?Me(mn):(_=O=n,B)}function Ur(){Z!==n&&u3(Z),ge=0,_=ee=O=Z=n}function ur(){return Z===n?B:mt(xh())}function zr(){var mn=xh(),ki=ze(mn);if(_=arguments,O=this,ee=mn,ki){if(Z===n)return Ue(ee);if(be)return u3(Z),Z=iu(ct,f),Me(ee)}return Z===n&&(Z=iu(ct,f)),B}return zr.cancel=Ur,zr.flush=ur,zr}var uQ=ot(function(l,f){return H4(l,1,f)}),fQ=ot(function(l,f,g){return H4(l,fi(f)||0,g)});function dQ(l){return uo(l,P)}function Ah(l,f){if(typeof l!="function"||f!=null&&typeof f!="function")throw new ai(a);var g=function(){var _=arguments,O=f?f.apply(this,_):_[0],M=g.cache;if(M.has(O))return M.get(O);var B=l.apply(this,_);return g.cache=M.set(O,B)||M,B};return g.cache=new(Ah.Cache||lo),g}Ah.Cache=lo;function kh(l){if(typeof l!="function")throw new ai(a);return function(){var f=arguments;switch(f.length){case 0:return!l.call(this);case 1:return!l.call(this,f[0]);case 2:return!l.call(this,f[0],f[1]);case 3:return!l.call(this,f[0],f[1],f[2])}return!l.apply(this,f)}}function hQ(l){return q3(2,l)}var pQ=eK(function(l,f){f=f.length==1&&Je(f[0])?Jt(f[0],jr(De())):Jt(zn(f,1),jr(De()));var g=f.length;return ot(function(_){for(var O=-1,M=Qn(_.length,g);++O<M;)_[O]=f[O].call(this,_[O]);return Fr(l,this,_)})}),sb=ot(function(l,f){var g=Go(f,hl(sb));return uo(l,S,n,f,g)}),t9=ot(function(l,f){var g=Go(f,hl(t9));return uo(l,A,n,f,g)}),mQ=fo(function(l,f){return uo(l,N,n,n,n,f)});function gQ(l,f){if(typeof l!="function")throw new ai(a);return f=f===n?f:tt(f),ot(l,f)}function vQ(l,f){if(typeof l!="function")throw new ai(a);return f=f==null?0:An(tt(f),0),ot(function(g){var _=g[f],O=qo(g,0,f);return _&&Wo(O,_),Fr(l,this,O)})}function yQ(l,f,g){var _=!0,O=!0;if(typeof l!="function")throw new ai(a);return rn(g)&&(_="leading"in g?!!g.leading:_,O="trailing"in g?!!g.trailing:O),e9(l,f,{leading:_,maxWait:f,trailing:O})}function bQ(l){return Q3(l,1)}function EQ(l,f){return sb(Gy(f),l)}function SQ(){if(!arguments.length)return[];var l=arguments[0];return Je(l)?l:[l]}function wQ(l){return li(l,m)}function _Q(l,f){return f=typeof f=="function"?f:n,li(l,m,f)}function CQ(l){return li(l,h|m)}function xQ(l,f){return f=typeof f=="function"?f:n,li(l,h|m,f)}function AQ(l,f){return f==null||B4(l,f,Fn(f))}function Ai(l,f){return l===f||l!==l&&f!==f}var kQ=bh(Py),TQ=bh(function(l,f){return l>=f}),La=Z4((function(){return arguments})())?Z4:function(l){return ln(l)&&Ot.call(l,"callee")&&!M4.call(l,"callee")},Je=le.isArray,OQ=m4?jr(m4):jY;function xr(l){return l!=null&&Th(l.length)&&!po(l)}function pn(l){return ln(l)&&xr(l)}function RQ(l){return l===!0||l===!1||ln(l)&&lr(l)==J}var Jo=WG||yb,NQ=g4?jr(g4):DY;function IQ(l){return ln(l)&&l.nodeType===1&&!ou(l)}function PQ(l){if(l==null)return!0;if(xr(l)&&(Je(l)||typeof l=="string"||typeof l.splice=="function"||Jo(l)||pl(l)||La(l)))return!l.length;var f=qn(l);if(f==ye||f==Le)return!l.size;if(ru(l))return!Fy(l).length;for(var g in l)if(Ot.call(l,g))return!1;return!0}function MQ(l,f){return eu(l,f)}function LQ(l,f,g){g=typeof g=="function"?g:n;var _=g?g(l,f):n;return _===n?eu(l,f,n,g):!!_}function lb(l){if(!ln(l))return!1;var f=lr(l);return f==Ee||f==he||typeof l.message=="string"&&typeof l.name=="string"&&!ou(l)}function FQ(l){return typeof l=="number"&&F4(l)}function po(l){if(!rn(l))return!1;var f=lr(l);return f==X||f==Re||f==pe||f==Te}function n9(l){return typeof l=="number"&&l==tt(l)}function Th(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=z}function rn(l){var f=typeof l;return l!=null&&(f=="object"||f=="function")}function ln(l){return l!=null&&typeof l=="object"}var r9=v4?jr(v4):UY;function jQ(l,f){return l===f||Ly(l,f,Xy(f))}function DQ(l,f,g){return g=typeof g=="function"?g:n,Ly(l,f,Xy(f),g)}function VQ(l){return i9(l)&&l!=+l}function UQ(l){if(_K(l))throw new Ke(o);return Q4(l)}function zQ(l){return l===null}function BQ(l){return l==null}function i9(l){return typeof l=="number"||ln(l)&&lr(l)==Fe}function ou(l){if(!ln(l)||lr(l)!=Pe)return!1;var f=th(l);if(f===null)return!0;var g=Ot.call(f,"constructor")&&f.constructor;return typeof g=="function"&&g instanceof g&&Jd.call(g)==DG}var cb=y4?jr(y4):zY;function HQ(l){return n9(l)&&l>=-z&&l<=z}var o9=b4?jr(b4):BY;function Oh(l){return typeof l=="string"||!Je(l)&&ln(l)&&lr(l)==Qe}function Vr(l){return typeof l=="symbol"||ln(l)&&lr(l)==At}var pl=E4?jr(E4):HY;function WQ(l){return l===n}function GQ(l){return ln(l)&&qn(l)==et}function YQ(l){return ln(l)&&lr(l)==kt}var KQ=bh(jy),ZQ=bh(function(l,f){return l<=f});function a9(l){if(!l)return[];if(xr(l))return Oh(l)?Ci(l):Cr(l);if(Yc&&l[Yc])return AG(l[Yc]());var f=qn(l),g=f==ye?Cy:f==Le?Zd:ml;return g(l)}function mo(l){if(!l)return l===0?l:0;if(l=fi(l),l===Y||l===-Y){var f=l<0?-1:1;return f*q}return l===l?l:0}function tt(l){var f=mo(l),g=f%1;return f===f?g?f-g:f:0}function s9(l){return l?Na(tt(l),0,G):0}function fi(l){if(typeof l=="number")return l;if(Vr(l))return W;if(rn(l)){var f=typeof l.valueOf=="function"?l.valueOf():l;l=rn(f)?f+"":f}if(typeof l!="string")return l===0?l:+l;l=A4(l);var g=Vn.test(l);return g||Ae.test(l)?cG(l.slice(2),g?2:8):Zn.test(l)?W:+l}function l9(l){return Gi(l,Ar(l))}function QQ(l){return l?Na(tt(l),-z,z):l===0?l:0}function Rt(l){return l==null?"":Dr(l)}var qQ=fl(function(l,f){if(ru(f)||xr(f)){Gi(f,Fn(f),l);return}for(var g in f)Ot.call(f,g)&&Jc(l,g,f[g])}),c9=fl(function(l,f){Gi(f,Ar(f),l)}),Rh=fl(function(l,f,g,_){Gi(f,Ar(f),l,_)}),JQ=fl(function(l,f,g,_){Gi(f,Fn(f),l,_)}),XQ=fo(Ry);function $Q(l,f){var g=ul(l);return f==null?g:z4(g,f)}var eq=ot(function(l,f){l=zt(l);var g=-1,_=f.length,O=_>2?f[2]:n;for(O&&cr(f[0],f[1],O)&&(_=1);++g<_;)for(var M=f[g],B=Ar(M),Z=-1,ee=B.length;++Z<ee;){var ge=B[Z],ve=l[ge];(ve===n||Ai(ve,sl[ge])&&!Ot.call(l,ge))&&(l[ge]=M[ge])}return l}),tq=ot(function(l){return l.push(n,A3),Fr(u9,n,l)});function nq(l,f){return w4(l,De(f,3),Wi)}function rq(l,f){return w4(l,De(f,3),Iy)}function iq(l,f){return l==null?l:Ny(l,De(f,3),Ar)}function oq(l,f){return l==null?l:Y4(l,De(f,3),Ar)}function aq(l,f){return l&&Wi(l,De(f,3))}function sq(l,f){return l&&Iy(l,De(f,3))}function lq(l){return l==null?[]:fh(l,Fn(l))}function cq(l){return l==null?[]:fh(l,Ar(l))}function ub(l,f,g){var _=l==null?n:Ia(l,f);return _===n?g:_}function uq(l,f){return l!=null&&O3(l,f,PY)}function fb(l,f){return l!=null&&O3(l,f,MY)}var fq=S3(function(l,f,g){f!=null&&typeof f.toString!="function"&&(f=Xd.call(f)),l[f]=g},hb(kr)),dq=S3(function(l,f,g){f!=null&&typeof f.toString!="function"&&(f=Xd.call(f)),Ot.call(l,f)?l[f].push(g):l[f]=[g]},De),hq=ot($c);function Fn(l){return xr(l)?V4(l):Fy(l)}function Ar(l){return xr(l)?V4(l,!0):WY(l)}function pq(l,f){var g={};return f=De(f,3),Wi(l,function(_,O,M){co(g,f(_,O,M),_)}),g}function mq(l,f){var g={};return f=De(f,3),Wi(l,function(_,O,M){co(g,O,f(_,O,M))}),g}var gq=fl(function(l,f,g){dh(l,f,g)}),u9=fl(function(l,f,g,_){dh(l,f,g,_)}),vq=fo(function(l,f){var g={};if(l==null)return g;var _=!1;f=Jt(f,function(M){return M=Qo(M,l),_||(_=M.length>1),M}),Gi(l,qy(l),g),_&&(g=li(g,h|p|m,fK));for(var O=f.length;O--;)By(g,f[O]);return g});function yq(l,f){return f9(l,kh(De(f)))}var bq=fo(function(l,f){return l==null?{}:YY(l,f)});function f9(l,f){if(l==null)return{};var g=Jt(qy(l),function(_){return[_]});return f=De(f),n3(l,g,function(_,O){return f(_,O[0])})}function Eq(l,f,g){f=Qo(f,l);var _=-1,O=f.length;for(O||(O=1,l=n);++_<O;){var M=l==null?n:l[Yi(f[_])];M===n&&(_=O,M=g),l=po(M)?M.call(l):M}return l}function Sq(l,f,g){return l==null?l:tu(l,f,g)}function wq(l,f,g,_){return _=typeof _=="function"?_:n,l==null?l:tu(l,f,g,_)}var d9=C3(Fn),h9=C3(Ar);function _q(l,f,g){var _=Je(l),O=_||Jo(l)||pl(l);if(f=De(f,4),g==null){var M=l&&l.constructor;O?g=_?new M:[]:rn(l)?g=po(M)?ul(th(l)):{}:g={}}return(O?oi:Wi)(l,function(B,Z,ee){return f(g,B,Z,ee)}),g}function Cq(l,f){return l==null?!0:By(l,f)}function xq(l,f,g){return l==null?l:s3(l,f,Gy(g))}function Aq(l,f,g,_){return _=typeof _=="function"?_:n,l==null?l:s3(l,f,Gy(g),_)}function ml(l){return l==null?[]:_y(l,Fn(l))}function kq(l){return l==null?[]:_y(l,Ar(l))}function Tq(l,f,g){return g===n&&(g=f,f=n),g!==n&&(g=fi(g),g=g===g?g:0),f!==n&&(f=fi(f),f=f===f?f:0),Na(fi(l),f,g)}function Oq(l,f,g){return f=mo(f),g===n?(g=f,f=0):g=mo(g),l=fi(l),LY(l,f,g)}function Rq(l,f,g){if(g&&typeof g!="boolean"&&cr(l,f,g)&&(f=g=n),g===n&&(typeof f=="boolean"?(g=f,f=n):typeof l=="boolean"&&(g=l,l=n)),l===n&&f===n?(l=0,f=1):(l=mo(l),f===n?(f=l,l=0):f=mo(f)),l>f){var _=l;l=f,f=_}if(g||l%1||f%1){var O=j4();return Qn(l+O*(f-l+lG("1e-"+((O+"").length-1))),f)}return Vy(l,f)}var Nq=dl(function(l,f,g){return f=f.toLowerCase(),l+(g?p9(f):f)});function p9(l){return db(Rt(l).toLowerCase())}function m9(l){return l=Rt(l),l&&l.replace(me,SG).replace(Wc,"")}function Iq(l,f,g){l=Rt(l),f=Dr(f);var _=l.length;g=g===n?_:Na(tt(g),0,_);var O=g;return g-=f.length,g>=0&&l.slice(g,O)==f}function Pq(l){return l=Rt(l),l&&rr.test(l)?l.replace(Vi,wG):l}function Mq(l){return l=Rt(l),l&&ir.test(l)?l.replace(Kt,"\\$&"):l}var Lq=dl(function(l,f,g){return l+(g?"-":"")+f.toLowerCase()}),Fq=dl(function(l,f,g){return l+(g?" ":"")+f.toLowerCase()}),jq=y3("toLowerCase");function Dq(l,f,g){l=Rt(l),f=tt(f);var _=f?ol(l):0;if(!f||_>=f)return l;var O=(f-_)/2;return yh(oh(O),g)+l+yh(ih(O),g)}function Vq(l,f,g){l=Rt(l),f=tt(f);var _=f?ol(l):0;return f&&_<f?l+yh(f-_,g):l}function Uq(l,f,g){l=Rt(l),f=tt(f);var _=f?ol(l):0;return f&&_<f?yh(f-_,g)+l:l}function zq(l,f,g){return g||f==null?f=0:f&&(f=+f),ZG(Rt(l).replace(yn,""),f||0)}function Bq(l,f,g){return(g?cr(l,f,g):f===n)?f=1:f=tt(f),Uy(Rt(l),f)}function Hq(){var l=arguments,f=Rt(l[0]);return l.length<3?f:f.replace(l[1],l[2])}var Wq=dl(function(l,f,g){return l+(g?"_":"")+f.toLowerCase()});function Gq(l,f,g){return g&&typeof g!="number"&&cr(l,f,g)&&(f=g=n),g=g===n?G:g>>>0,g?(l=Rt(l),l&&(typeof f=="string"||f!=null&&!cb(f))&&(f=Dr(f),!f&&il(l))?qo(Ci(l),0,g):l.split(f,g)):[]}var Yq=dl(function(l,f,g){return l+(g?" ":"")+db(f)});function Kq(l,f,g){return l=Rt(l),g=g==null?0:Na(tt(g),0,l.length),f=Dr(f),l.slice(g,g+f.length)==f}function Zq(l,f,g){var _=I.templateSettings;g&&cr(l,f,g)&&(f=n),l=Rt(l),f=Rh({},f,_,x3);var O=Rh({},f.imports,_.imports,x3),M=Fn(O),B=_y(O,M),Z,ee,ge=0,ve=f.interpolate||xe,be="__p += '",_e=xy((f.escape||xe).source+"|"+ve.source+"|"+(ve===Cn?or:xe).source+"|"+(f.evaluate||xe).source+"|$","g"),Me="//# sourceURL="+(Ot.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tl+"]")+`
|
|
56
|
+
`;l.replace(_e,function(ze,ct,mt,Ur,ur,zr){return mt||(mt=Ur),be+=l.slice(ge,zr).replace(St,_G),ct&&(Z=!0,be+=`' +
|
|
57
|
+
__e(`+ct+`) +
|
|
58
|
+
'`),ur&&(ee=!0,be+=`';
|
|
59
|
+
`+ur+`;
|
|
60
|
+
__p += '`),mt&&(be+=`' +
|
|
61
|
+
((__t = (`+mt+`)) == null ? '' : __t) +
|
|
62
|
+
'`),ge=zr+ze.length,ze}),be+=`';
|
|
63
|
+
`;var Ue=Ot.call(f,"variable")&&f.variable;if(!Ue)be=`with (obj) {
|
|
64
|
+
`+be+`
|
|
65
|
+
}
|
|
66
|
+
`;else if(bn.test(Ue))throw new Ke(s);be=(ee?be.replace(Kn,""):be).replace(ro,"$1").replace($r,"$1;"),be="function("+(Ue||"obj")+`) {
|
|
67
|
+
`+(Ue?"":`obj || (obj = {});
|
|
68
|
+
`)+"var __t, __p = ''"+(Z?", __e = _.escape":"")+(ee?`, __j = Array.prototype.join;
|
|
69
|
+
function print() { __p += __j.call(arguments, '') }
|
|
70
|
+
`:`;
|
|
71
|
+
`)+be+`return __p
|
|
72
|
+
}`;var rt=v9(function(){return wt(M,Me+"return "+be).apply(n,B)});if(rt.source=be,lb(rt))throw rt;return rt}function Qq(l){return Rt(l).toLowerCase()}function qq(l){return Rt(l).toUpperCase()}function Jq(l,f,g){if(l=Rt(l),l&&(g||f===n))return A4(l);if(!l||!(f=Dr(f)))return l;var _=Ci(l),O=Ci(f),M=k4(_,O),B=T4(_,O)+1;return qo(_,M,B).join("")}function Xq(l,f,g){if(l=Rt(l),l&&(g||f===n))return l.slice(0,R4(l)+1);if(!l||!(f=Dr(f)))return l;var _=Ci(l),O=T4(_,Ci(f))+1;return qo(_,0,O).join("")}function $q(l,f,g){if(l=Rt(l),l&&(g||f===n))return l.replace(yn,"");if(!l||!(f=Dr(f)))return l;var _=Ci(l),O=k4(_,Ci(f));return qo(_,O).join("")}function eJ(l,f){var g=U,_=V;if(rn(f)){var O="separator"in f?f.separator:O;g="length"in f?tt(f.length):g,_="omission"in f?Dr(f.omission):_}l=Rt(l);var M=l.length;if(il(l)){var B=Ci(l);M=B.length}if(g>=M)return l;var Z=g-ol(_);if(Z<1)return _;var ee=B?qo(B,0,Z).join(""):l.slice(0,Z);if(O===n)return ee+_;if(B&&(Z+=ee.length-Z),cb(O)){if(l.slice(Z).search(O)){var ge,ve=ee;for(O.global||(O=xy(O.source,Rt(ei.exec(O))+"g")),O.lastIndex=0;ge=O.exec(ve);)var be=ge.index;ee=ee.slice(0,be===n?Z:be)}}else if(l.indexOf(Dr(O),Z)!=Z){var _e=ee.lastIndexOf(O);_e>-1&&(ee=ee.slice(0,_e))}return ee+_}function tJ(l){return l=Rt(l),l&&br.test(l)?l.replace(yr,RG):l}var nJ=dl(function(l,f,g){return l+(g?" ":"")+f.toUpperCase()}),db=y3("toUpperCase");function g9(l,f,g){return l=Rt(l),f=g?n:f,f===n?xG(l)?PG(l):gG(l):l.match(f)||[]}var v9=ot(function(l,f){try{return Fr(l,n,f)}catch(g){return lb(g)?g:new Ke(g)}}),rJ=fo(function(l,f){return oi(f,function(g){g=Yi(g),co(l,g,ab(l[g],l))}),l});function iJ(l){var f=l==null?0:l.length,g=De();return l=f?Jt(l,function(_){if(typeof _[1]!="function")throw new ai(a);return[g(_[0]),_[1]]}):[],ot(function(_){for(var O=-1;++O<f;){var M=l[O];if(Fr(M[0],this,_))return Fr(M[1],this,_)}})}function oJ(l){return RY(li(l,h))}function hb(l){return function(){return l}}function aJ(l,f){return l==null||l!==l?f:l}var sJ=E3(),lJ=E3(!0);function kr(l){return l}function pb(l){return q4(typeof l=="function"?l:li(l,h))}function cJ(l){return X4(li(l,h))}function uJ(l,f){return $4(l,li(f,h))}var fJ=ot(function(l,f){return function(g){return $c(g,l,f)}}),dJ=ot(function(l,f){return function(g){return $c(l,g,f)}});function mb(l,f,g){var _=Fn(f),O=fh(f,_);g==null&&!(rn(f)&&(O.length||!_.length))&&(g=f,f=l,l=this,O=fh(f,Fn(f)));var M=!(rn(g)&&"chain"in g)||!!g.chain,B=po(l);return oi(O,function(Z){var ee=f[Z];l[Z]=ee,B&&(l.prototype[Z]=function(){var ge=this.__chain__;if(M||ge){var ve=l(this.__wrapped__),be=ve.__actions__=Cr(this.__actions__);return be.push({func:ee,args:arguments,thisArg:l}),ve.__chain__=ge,ve}return ee.apply(l,Wo([this.value()],arguments))})}),l}function hJ(){return Un._===this&&(Un._=VG),this}function gb(){}function pJ(l){return l=tt(l),ot(function(f){return e3(f,l)})}var mJ=Ky(Jt),gJ=Ky(S4),vJ=Ky(yy);function y9(l){return eb(l)?by(Yi(l)):KY(l)}function yJ(l){return function(f){return l==null?n:Ia(l,f)}}var bJ=w3(),EJ=w3(!0);function vb(){return[]}function yb(){return!1}function SJ(){return{}}function wJ(){return""}function _J(){return!0}function CJ(l,f){if(l=tt(l),l<1||l>z)return[];var g=G,_=Qn(l,G);f=De(f),l-=G;for(var O=wy(_,f);++g<l;)f(g);return O}function xJ(l){return Je(l)?Jt(l,Yi):Vr(l)?[l]:Cr(D3(Rt(l)))}function AJ(l){var f=++jG;return Rt(l)+f}var kJ=vh(function(l,f){return l+f},0),TJ=Zy("ceil"),OJ=vh(function(l,f){return l/f},1),RJ=Zy("floor");function NJ(l){return l&&l.length?uh(l,kr,Py):n}function IJ(l,f){return l&&l.length?uh(l,De(f,2),Py):n}function PJ(l){return C4(l,kr)}function MJ(l,f){return C4(l,De(f,2))}function LJ(l){return l&&l.length?uh(l,kr,jy):n}function FJ(l,f){return l&&l.length?uh(l,De(f,2),jy):n}var jJ=vh(function(l,f){return l*f},1),DJ=Zy("round"),VJ=vh(function(l,f){return l-f},0);function UJ(l){return l&&l.length?Sy(l,kr):0}function zJ(l,f){return l&&l.length?Sy(l,De(f,2)):0}return I.after=cQ,I.ary=Q3,I.assign=qQ,I.assignIn=c9,I.assignInWith=Rh,I.assignWith=JQ,I.at=XQ,I.before=q3,I.bind=ab,I.bindAll=rJ,I.bindKey=J3,I.castArray=SQ,I.chain=Y3,I.chunk=RK,I.compact=NK,I.concat=IK,I.cond=iJ,I.conforms=oJ,I.constant=hb,I.countBy=UZ,I.create=$Q,I.curry=X3,I.curryRight=$3,I.debounce=e9,I.defaults=eq,I.defaultsDeep=tq,I.defer=uQ,I.delay=fQ,I.difference=PK,I.differenceBy=MK,I.differenceWith=LK,I.drop=FK,I.dropRight=jK,I.dropRightWhile=DK,I.dropWhile=VK,I.fill=UK,I.filter=BZ,I.flatMap=GZ,I.flatMapDeep=YZ,I.flatMapDepth=KZ,I.flatten=B3,I.flattenDeep=zK,I.flattenDepth=BK,I.flip=dQ,I.flow=sJ,I.flowRight=lJ,I.fromPairs=HK,I.functions=lq,I.functionsIn=cq,I.groupBy=ZZ,I.initial=GK,I.intersection=YK,I.intersectionBy=KK,I.intersectionWith=ZK,I.invert=fq,I.invertBy=dq,I.invokeMap=qZ,I.iteratee=pb,I.keyBy=JZ,I.keys=Fn,I.keysIn=Ar,I.map=Ch,I.mapKeys=pq,I.mapValues=mq,I.matches=cJ,I.matchesProperty=uJ,I.memoize=Ah,I.merge=gq,I.mergeWith=u9,I.method=fJ,I.methodOf=dJ,I.mixin=mb,I.negate=kh,I.nthArg=pJ,I.omit=vq,I.omitBy=yq,I.once=hQ,I.orderBy=XZ,I.over=mJ,I.overArgs=pQ,I.overEvery=gJ,I.overSome=vJ,I.partial=sb,I.partialRight=t9,I.partition=$Z,I.pick=bq,I.pickBy=f9,I.property=y9,I.propertyOf=yJ,I.pull=XK,I.pullAll=W3,I.pullAllBy=$K,I.pullAllWith=eZ,I.pullAt=tZ,I.range=bJ,I.rangeRight=EJ,I.rearg=mQ,I.reject=nQ,I.remove=nZ,I.rest=gQ,I.reverse=ib,I.sampleSize=iQ,I.set=Sq,I.setWith=wq,I.shuffle=oQ,I.slice=rZ,I.sortBy=lQ,I.sortedUniq=uZ,I.sortedUniqBy=fZ,I.split=Gq,I.spread=vQ,I.tail=dZ,I.take=hZ,I.takeRight=pZ,I.takeRightWhile=mZ,I.takeWhile=gZ,I.tap=NZ,I.throttle=yQ,I.thru=_h,I.toArray=a9,I.toPairs=d9,I.toPairsIn=h9,I.toPath=xJ,I.toPlainObject=l9,I.transform=_q,I.unary=bQ,I.union=vZ,I.unionBy=yZ,I.unionWith=bZ,I.uniq=EZ,I.uniqBy=SZ,I.uniqWith=wZ,I.unset=Cq,I.unzip=ob,I.unzipWith=G3,I.update=xq,I.updateWith=Aq,I.values=ml,I.valuesIn=kq,I.without=_Z,I.words=g9,I.wrap=EQ,I.xor=CZ,I.xorBy=xZ,I.xorWith=AZ,I.zip=kZ,I.zipObject=TZ,I.zipObjectDeep=OZ,I.zipWith=RZ,I.entries=d9,I.entriesIn=h9,I.extend=c9,I.extendWith=Rh,mb(I,I),I.add=kJ,I.attempt=v9,I.camelCase=Nq,I.capitalize=p9,I.ceil=TJ,I.clamp=Tq,I.clone=wQ,I.cloneDeep=CQ,I.cloneDeepWith=xQ,I.cloneWith=_Q,I.conformsTo=AQ,I.deburr=m9,I.defaultTo=aJ,I.divide=OJ,I.endsWith=Iq,I.eq=Ai,I.escape=Pq,I.escapeRegExp=Mq,I.every=zZ,I.find=HZ,I.findIndex=U3,I.findKey=nq,I.findLast=WZ,I.findLastIndex=z3,I.findLastKey=rq,I.floor=RJ,I.forEach=K3,I.forEachRight=Z3,I.forIn=iq,I.forInRight=oq,I.forOwn=aq,I.forOwnRight=sq,I.get=ub,I.gt=kQ,I.gte=TQ,I.has=uq,I.hasIn=fb,I.head=H3,I.identity=kr,I.includes=QZ,I.indexOf=WK,I.inRange=Oq,I.invoke=hq,I.isArguments=La,I.isArray=Je,I.isArrayBuffer=OQ,I.isArrayLike=xr,I.isArrayLikeObject=pn,I.isBoolean=RQ,I.isBuffer=Jo,I.isDate=NQ,I.isElement=IQ,I.isEmpty=PQ,I.isEqual=MQ,I.isEqualWith=LQ,I.isError=lb,I.isFinite=FQ,I.isFunction=po,I.isInteger=n9,I.isLength=Th,I.isMap=r9,I.isMatch=jQ,I.isMatchWith=DQ,I.isNaN=VQ,I.isNative=UQ,I.isNil=BQ,I.isNull=zQ,I.isNumber=i9,I.isObject=rn,I.isObjectLike=ln,I.isPlainObject=ou,I.isRegExp=cb,I.isSafeInteger=HQ,I.isSet=o9,I.isString=Oh,I.isSymbol=Vr,I.isTypedArray=pl,I.isUndefined=WQ,I.isWeakMap=GQ,I.isWeakSet=YQ,I.join=QK,I.kebabCase=Lq,I.last=ui,I.lastIndexOf=qK,I.lowerCase=Fq,I.lowerFirst=jq,I.lt=KQ,I.lte=ZQ,I.max=NJ,I.maxBy=IJ,I.mean=PJ,I.meanBy=MJ,I.min=LJ,I.minBy=FJ,I.stubArray=vb,I.stubFalse=yb,I.stubObject=SJ,I.stubString=wJ,I.stubTrue=_J,I.multiply=jJ,I.nth=JK,I.noConflict=hJ,I.noop=gb,I.now=xh,I.pad=Dq,I.padEnd=Vq,I.padStart=Uq,I.parseInt=zq,I.random=Rq,I.reduce=eQ,I.reduceRight=tQ,I.repeat=Bq,I.replace=Hq,I.result=Eq,I.round=DJ,I.runInContext=$,I.sample=rQ,I.size=aQ,I.snakeCase=Wq,I.some=sQ,I.sortedIndex=iZ,I.sortedIndexBy=oZ,I.sortedIndexOf=aZ,I.sortedLastIndex=sZ,I.sortedLastIndexBy=lZ,I.sortedLastIndexOf=cZ,I.startCase=Yq,I.startsWith=Kq,I.subtract=VJ,I.sum=UJ,I.sumBy=zJ,I.template=Zq,I.times=CJ,I.toFinite=mo,I.toInteger=tt,I.toLength=s9,I.toLower=Qq,I.toNumber=fi,I.toSafeInteger=QQ,I.toString=Rt,I.toUpper=qq,I.trim=Jq,I.trimEnd=Xq,I.trimStart=$q,I.truncate=eJ,I.unescape=tJ,I.uniqueId=AJ,I.upperCase=nJ,I.upperFirst=db,I.each=K3,I.eachRight=Z3,I.first=H3,mb(I,(function(){var l={};return Wi(I,function(f,g){Ot.call(I.prototype,g)||(l[g]=f)}),l})(),{chain:!1}),I.VERSION=r,oi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){I[l].placeholder=I}),oi(["drop","take"],function(l,f){dt.prototype[l]=function(g){g=g===n?1:An(tt(g),0);var _=this.__filtered__&&!f?new dt(this):this.clone();return _.__filtered__?_.__takeCount__=Qn(g,_.__takeCount__):_.__views__.push({size:Qn(g,G),type:l+(_.__dir__<0?"Right":"")}),_},dt.prototype[l+"Right"]=function(g){return this.reverse()[l](g).reverse()}}),oi(["filter","map","takeWhile"],function(l,f){var g=f+1,_=g==j||g==D;dt.prototype[l]=function(O){var M=this.clone();return M.__iteratees__.push({iteratee:De(O,3),type:g}),M.__filtered__=M.__filtered__||_,M}}),oi(["head","last"],function(l,f){var g="take"+(f?"Right":"");dt.prototype[l]=function(){return this[g](1).value()[0]}}),oi(["initial","tail"],function(l,f){var g="drop"+(f?"":"Right");dt.prototype[l]=function(){return this.__filtered__?new dt(this):this[g](1)}}),dt.prototype.compact=function(){return this.filter(kr)},dt.prototype.find=function(l){return this.filter(l).head()},dt.prototype.findLast=function(l){return this.reverse().find(l)},dt.prototype.invokeMap=ot(function(l,f){return typeof l=="function"?new dt(this):this.map(function(g){return $c(g,l,f)})}),dt.prototype.reject=function(l){return this.filter(kh(De(l)))},dt.prototype.slice=function(l,f){l=tt(l);var g=this;return g.__filtered__&&(l>0||f<0)?new dt(g):(l<0?g=g.takeRight(-l):l&&(g=g.drop(l)),f!==n&&(f=tt(f),g=f<0?g.dropRight(-f):g.take(f-l)),g)},dt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},dt.prototype.toArray=function(){return this.take(G)},Wi(dt.prototype,function(l,f){var g=/^(?:filter|find|map|reject)|While$/.test(f),_=/^(?:head|last)$/.test(f),O=I[_?"take"+(f=="last"?"Right":""):f],M=_||/^find/.test(f);O&&(I.prototype[f]=function(){var B=this.__wrapped__,Z=_?[1]:arguments,ee=B instanceof dt,ge=Z[0],ve=ee||Je(B),be=function(ct){var mt=O.apply(I,Wo([ct],Z));return _&&_e?mt[0]:mt};ve&&g&&typeof ge=="function"&&ge.length!=1&&(ee=ve=!1);var _e=this.__chain__,Me=!!this.__actions__.length,Ue=M&&!_e,rt=ee&&!Me;if(!M&&ve){B=rt?B:new dt(this);var ze=l.apply(B,Z);return ze.__actions__.push({func:_h,args:[be],thisArg:n}),new si(ze,_e)}return Ue&&rt?l.apply(this,Z):(ze=this.thru(be),Ue?_?ze.value()[0]:ze.value():ze)})}),oi(["pop","push","shift","sort","splice","unshift"],function(l){var f=Qd[l],g=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);I.prototype[l]=function(){var O=arguments;if(_&&!this.__chain__){var M=this.value();return f.apply(Je(M)?M:[],O)}return this[g](function(B){return f.apply(Je(B)?B:[],O)})}}),Wi(dt.prototype,function(l,f){var g=I[f];if(g){var _=g.name+"";Ot.call(cl,_)||(cl[_]=[]),cl[_].push({name:f,func:g})}}),cl[gh(n,w).name]=[{name:"wrapper",func:n}],dt.prototype.clone=tY,dt.prototype.reverse=nY,dt.prototype.value=rY,I.prototype.at=IZ,I.prototype.chain=PZ,I.prototype.commit=MZ,I.prototype.next=LZ,I.prototype.plant=jZ,I.prototype.reverse=DZ,I.prototype.toJSON=I.prototype.valueOf=I.prototype.value=VZ,I.prototype.first=I.prototype.head,Yc&&(I.prototype[Yc]=FZ),I}),al=MG();ka?((ka.exports=al)._=al,py._=al):Un._=al}).call(LT)})(Bl,Bl.exports)),Bl.exports}var Ie=FT();const W6="3.7.8",jT=W6,ts=typeof Buffer=="function",G6=typeof TextDecoder=="function"?new TextDecoder:void 0,Y6=typeof TextEncoder=="function"?new TextEncoder:void 0,Hl=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Mu=(t=>{let e={};return t.forEach((n,r)=>e[n]=r),e})(Hl),DT=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Dn=String.fromCharCode.bind(String),K6=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),Z6=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),Q6=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),q6=t=>{let e,n,r,i,o="";const a=t.length%3;for(let s=0;s<t.length;){if((n=t.charCodeAt(s++))>255||(r=t.charCodeAt(s++))>255||(i=t.charCodeAt(s++))>255)throw new TypeError("invalid character found");e=n<<16|r<<8|i,o+=Hl[e>>18&63]+Hl[e>>12&63]+Hl[e>>6&63]+Hl[e&63]}return a?o.slice(0,a-3)+"===".substring(a):o},Yp=typeof btoa=="function"?t=>btoa(t):ts?t=>Buffer.from(t,"binary").toString("base64"):q6,Kp=ts?t=>Buffer.from(t).toString("base64"):t=>{let n=[];for(let r=0,i=t.length;r<i;r+=4096)n.push(Dn.apply(null,t.subarray(r,r+4096)));return Yp(n.join(""))},Lu=(t,e=!1)=>e?Z6(Kp(t)):Kp(t),VT=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?Dn(192|e>>>6)+Dn(128|e&63):Dn(224|e>>>12&15)+Dn(128|e>>>6&63)+Dn(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return Dn(240|e>>>18&7)+Dn(128|e>>>12&63)+Dn(128|e>>>6&63)+Dn(128|e&63)}},UT=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,J6=t=>t.replace(UT,VT),X6=ts?t=>Buffer.from(t,"utf8").toString("base64"):Y6?t=>Kp(Y6.encode(t)):t=>Yp(J6(t)),ns=(t,e=!1)=>e?Z6(X6(t)):X6(t),$6=t=>ns(t,!0),zT=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,BT=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),n=e-65536;return Dn((n>>>10)+55296)+Dn((n&1023)+56320);case 3:return Dn((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return Dn((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},e5=t=>t.replace(zT,BT),t5=t=>{if(t=t.replace(/\s+/g,""),!DT.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,n,r,i=[];for(let o=0;o<t.length;)e=Mu[t.charAt(o++)]<<18|Mu[t.charAt(o++)]<<12|(n=Mu[t.charAt(o++)])<<6|(r=Mu[t.charAt(o++)]),n===64?i.push(Dn(e>>16&255)):r===64?i.push(Dn(e>>16&255,e>>8&255)):i.push(Dn(e>>16&255,e>>8&255,e&255));return i.join("")},Zp=typeof atob=="function"?t=>atob(Q6(t)):ts?t=>Buffer.from(t,"base64").toString("binary"):t5,n5=ts?t=>K6(Buffer.from(t,"base64")):t=>K6(Zp(t).split("").map(e=>e.charCodeAt(0))),r5=t=>n5(i5(t)),HT=ts?t=>Buffer.from(t,"base64").toString("utf8"):G6?t=>G6.decode(n5(t)):t=>e5(Zp(t)),i5=t=>Q6(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),Qp=t=>HT(i5(t)),WT=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},o5=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),a5=function(){const t=(e,n)=>Object.defineProperty(String.prototype,e,o5(n));t("fromBase64",function(){return Qp(this)}),t("toBase64",function(e){return ns(this,e)}),t("toBase64URI",function(){return ns(this,!0)}),t("toBase64URL",function(){return ns(this,!0)}),t("toUint8Array",function(){return r5(this)})},s5=function(){const t=(e,n)=>Object.defineProperty(Uint8Array.prototype,e,o5(n));t("toBase64",function(e){return Lu(this,e)}),t("toBase64URI",function(){return Lu(this,!0)}),t("toBase64URL",function(){return Lu(this,!0)})},GT={version:W6,VERSION:jT,atob:Zp,atobPolyfill:t5,btoa:Yp,btoaPolyfill:q6,fromBase64:Qp,toBase64:ns,encode:ns,encodeURI:$6,encodeURL:$6,utob:J6,btou:e5,decode:Qp,isValid:WT,fromUint8Array:Lu,toUint8Array:r5,extendString:a5,extendUint8Array:s5,extendBuiltins:()=>{a5(),s5()}};var qp={exports:{}},Jp={exports:{}},l5;function YT(){return l5||(l5=1,(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return e.rotl(n,8)&16711935|e.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=e.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],i=0,o=0;i<n.length;i++,o+=8)r[o>>>5]|=n[i]<<24-o%32;return r},wordsToBytes:function(n){for(var r=[],i=0;i<n.length*32;i+=8)r.push(n[i>>>5]>>>24-i%32&255);return r},bytesToHex:function(n){for(var r=[],i=0;i<n.length;i++)r.push((n[i]>>>4).toString(16)),r.push((n[i]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],i=0;i<n.length;i+=2)r.push(parseInt(n.substr(i,2),16));return r},bytesToBase64:function(n){for(var r=[],i=0;i<n.length;i+=3)for(var o=n[i]<<16|n[i+1]<<8|n[i+2],a=0;a<4;a++)i*8+a*6<=n.length*8?r.push(t.charAt(o>>>6*(3-a)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],i=0,o=0;i<n.length;o=++i%4)o!=0&&r.push((t.indexOf(n.charAt(i-1))&Math.pow(2,-2*o+8)-1)<<o*2|t.indexOf(n.charAt(i))>>>6-o*2);return r}};Jp.exports=e})()),Jp.exports}var Xp,c5;function u5(){if(c5)return Xp;c5=1;var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var n=[],r=0;r<e.length;r++)n.push(e.charCodeAt(r)&255);return n},bytesToString:function(e){for(var n=[],r=0;r<e.length;r++)n.push(String.fromCharCode(e[r]));return n.join("")}}};return Xp=t,Xp}/*!
|
|
73
|
+
* Determine if an object is a Buffer
|
|
74
|
+
*
|
|
75
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
76
|
+
* @license MIT
|
|
77
|
+
*/var $p,f5;function KT(){if(f5)return $p;f5=1,$p=function(n){return n!=null&&(t(n)||e(n)||!!n._isBuffer)};function t(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function e(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&t(n.slice(0,0))}return $p}var d5;function ZT(){return d5||(d5=1,(function(){var t=YT(),e=u5().utf8,n=KT(),r=u5().bin,i=function(o,a){o.constructor==String?a&&a.encoding==="binary"?o=r.stringToBytes(o):o=e.stringToBytes(o):n(o)?o=Array.prototype.slice.call(o,0):!Array.isArray(o)&&o.constructor!==Uint8Array&&(o=o.toString());for(var s=t.bytesToWords(o),c=o.length*8,u=1732584193,d=-271733879,h=-1732584194,p=271733878,m=0;m<s.length;m++)s[m]=(s[m]<<8|s[m]>>>24)&16711935|(s[m]<<24|s[m]>>>8)&4278255360;s[c>>>5]|=128<<c%32,s[(c+64>>>9<<4)+14]=c;for(var v=i._ff,b=i._gg,y=i._hh,w=i._ii,m=0;m<s.length;m+=16){var C=u,k=d,x=h,S=p;u=v(u,d,h,p,s[m+0],7,-680876936),p=v(p,u,d,h,s[m+1],12,-389564586),h=v(h,p,u,d,s[m+2],17,606105819),d=v(d,h,p,u,s[m+3],22,-1044525330),u=v(u,d,h,p,s[m+4],7,-176418897),p=v(p,u,d,h,s[m+5],12,1200080426),h=v(h,p,u,d,s[m+6],17,-1473231341),d=v(d,h,p,u,s[m+7],22,-45705983),u=v(u,d,h,p,s[m+8],7,1770035416),p=v(p,u,d,h,s[m+9],12,-1958414417),h=v(h,p,u,d,s[m+10],17,-42063),d=v(d,h,p,u,s[m+11],22,-1990404162),u=v(u,d,h,p,s[m+12],7,1804603682),p=v(p,u,d,h,s[m+13],12,-40341101),h=v(h,p,u,d,s[m+14],17,-1502002290),d=v(d,h,p,u,s[m+15],22,1236535329),u=b(u,d,h,p,s[m+1],5,-165796510),p=b(p,u,d,h,s[m+6],9,-1069501632),h=b(h,p,u,d,s[m+11],14,643717713),d=b(d,h,p,u,s[m+0],20,-373897302),u=b(u,d,h,p,s[m+5],5,-701558691),p=b(p,u,d,h,s[m+10],9,38016083),h=b(h,p,u,d,s[m+15],14,-660478335),d=b(d,h,p,u,s[m+4],20,-405537848),u=b(u,d,h,p,s[m+9],5,568446438),p=b(p,u,d,h,s[m+14],9,-1019803690),h=b(h,p,u,d,s[m+3],14,-187363961),d=b(d,h,p,u,s[m+8],20,1163531501),u=b(u,d,h,p,s[m+13],5,-1444681467),p=b(p,u,d,h,s[m+2],9,-51403784),h=b(h,p,u,d,s[m+7],14,1735328473),d=b(d,h,p,u,s[m+12],20,-1926607734),u=y(u,d,h,p,s[m+5],4,-378558),p=y(p,u,d,h,s[m+8],11,-2022574463),h=y(h,p,u,d,s[m+11],16,1839030562),d=y(d,h,p,u,s[m+14],23,-35309556),u=y(u,d,h,p,s[m+1],4,-1530992060),p=y(p,u,d,h,s[m+4],11,1272893353),h=y(h,p,u,d,s[m+7],16,-155497632),d=y(d,h,p,u,s[m+10],23,-1094730640),u=y(u,d,h,p,s[m+13],4,681279174),p=y(p,u,d,h,s[m+0],11,-358537222),h=y(h,p,u,d,s[m+3],16,-722521979),d=y(d,h,p,u,s[m+6],23,76029189),u=y(u,d,h,p,s[m+9],4,-640364487),p=y(p,u,d,h,s[m+12],11,-421815835),h=y(h,p,u,d,s[m+15],16,530742520),d=y(d,h,p,u,s[m+2],23,-995338651),u=w(u,d,h,p,s[m+0],6,-198630844),p=w(p,u,d,h,s[m+7],10,1126891415),h=w(h,p,u,d,s[m+14],15,-1416354905),d=w(d,h,p,u,s[m+5],21,-57434055),u=w(u,d,h,p,s[m+12],6,1700485571),p=w(p,u,d,h,s[m+3],10,-1894986606),h=w(h,p,u,d,s[m+10],15,-1051523),d=w(d,h,p,u,s[m+1],21,-2054922799),u=w(u,d,h,p,s[m+8],6,1873313359),p=w(p,u,d,h,s[m+15],10,-30611744),h=w(h,p,u,d,s[m+6],15,-1560198380),d=w(d,h,p,u,s[m+13],21,1309151649),u=w(u,d,h,p,s[m+4],6,-145523070),p=w(p,u,d,h,s[m+11],10,-1120210379),h=w(h,p,u,d,s[m+2],15,718787259),d=w(d,h,p,u,s[m+9],21,-343485551),u=u+C>>>0,d=d+k>>>0,h=h+x>>>0,p=p+S>>>0}return t.endian([u,d,h,p])};i._ff=function(o,a,s,c,u,d,h){var p=o+(a&s|~a&c)+(u>>>0)+h;return(p<<d|p>>>32-d)+a},i._gg=function(o,a,s,c,u,d,h){var p=o+(a&c|s&~c)+(u>>>0)+h;return(p<<d|p>>>32-d)+a},i._hh=function(o,a,s,c,u,d,h){var p=o+(a^s^c)+(u>>>0)+h;return(p<<d|p>>>32-d)+a},i._ii=function(o,a,s,c,u,d,h){var p=o+(s^(a|~c))+(u>>>0)+h;return(p<<d|p>>>32-d)+a},i._blocksize=16,i._digestsize=16,qp.exports=function(o,a){if(o==null)throw new Error("Illegal argument "+o);var s=t.wordsToBytes(i(o,a));return a&&a.asBytes?s:a&&a.asString?r.bytesToString(s):t.bytesToHex(s)}})()),qp.exports}var QT=ZT();const qT=sa(QT),h5=/\+/g;function p5(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function JT(t){return p5(t.replace(h5," "))}function XT(t){return p5(t.replace(h5," "))}function $T(t=""){const e=Object.create(null);t[0]==="?"&&(t=t.slice(1));for(const n of t.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const i=JT(r[1]);if(i==="__proto__"||i==="constructor")continue;const o=XT(r[2]||"");e[i]===void 0?e[i]=o:Array.isArray(e[i])?e[i].push(o):e[i]=[e[i],o]}return e}const eO=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,tO=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,nO=/^([/\\]\s*){2,}[^/\\]/;function m5(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?eO.test(t):tO.test(t)||(e.acceptRelative?nO.test(t):!1)}function g5(t){return $T(em(t).search)}const rO=Symbol.for("ufo:protocolRelative");function em(t="",e){const n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,h,p=""]=n;return{protocol:h.toLowerCase(),pathname:p,href:h+p,auth:"",host:"",search:"",hash:""}}if(!m5(t,{acceptRelative:!0}))return e?em(e+t):v5(t);const[,r="",i,o=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,a="",s=""]=o.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(s=s.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:c,search:u,hash:d}=v5(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:a,pathname:c,search:u,hash:d,[rO]:!r}}function v5(t=""){const[e="",n="",r=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:r}}function iO(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function y5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Hn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?y5(Object(n),!0).forEach(function(r){sO(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function tm(t){"@babel/helpers - typeof";return tm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tm(t)}function oO(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b5(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,w5(r.key),r)}}function aO(t,e,n){return e&&b5(t.prototype,e),n&&b5(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function sO(t,e,n){return e=w5(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function E5(t,e){return cO(t)||iO(t,e)||S5(t,e)||dO()}function nm(t){return lO(t)||uO(t)||S5(t)||fO()}function lO(t){if(Array.isArray(t))return rm(t)}function cO(t){if(Array.isArray(t))return t}function uO(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function S5(t,e){if(t){if(typeof t=="string")return rm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rm(t,e)}}function rm(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function fO(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
78
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
79
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hO(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function w5(t){var e=hO(t,"string");return typeof e=="symbol"?e:String(e)}var pO="3.8.0",mO=/^(?:[a-z\d\-_]{1,62}\.){0,125}(?:[a-z\d](?:\-(?=\-*[a-z\d])|[a-z]|\d){0,62}\.)[a-z\d]{1,63}$/i,_5=100,C5=8192,gO=.08,vO={1:75,2:50,3:35,4:23,5:20},yO=[1,2,3,4,5],bO={domain:null,useHTTPS:!0,includeLibraryParam:!0,urlPrefix:"https://",secureURLToken:null};function im(t){var e=t.url,n=e===void 0?"":e,r=t.useHttps,i=r===void 0?!1:r,o=i?"https://":"http://";return m5(n,!0)?em(n):im({url:o+n})}function EO(t){var e;t.widthTolerance!==void 0?(A5(t.widthTolerance),e=t.widthTolerance):e=gO;var n=t.minWidth===void 0?_5:t.minWidth,r=t.maxWidth===void 0?C5:t.maxWidth;return(n!=_5||r!=C5)&&x5(n,r),[e,n,r]}function x5(t,e){if(!(Number.isInteger(t)&&Number.isInteger(e))||t<=0||e<=0||t>e)throw new Error("The min and max srcset widths can only be passed positive Number values, and min must be less than max. Found min: ".concat(t," and max: ").concat(e,"."))}function A5(t){if(typeof t!="number"||t<.01)throw new Error("The srcset widthTolerance must be a number greater than or equal to 0.01")}function SO(t){if(!Array.isArray(t)||!t.length)throw new Error("The widths argument can only be passed a valid non-empty array of integers");var e=t.every(function(n){return Number.isInteger(n)&&n>0});if(!e)throw new Error("A custom widths argument can only contain positive integer values")}function wO(t){if(typeof t!="boolean")throw new Error("The disableVariableQuality argument can only be passed a Boolean value")}function _O(t){if(!Array.isArray(t)||!t.length)throw new Error("The devicePixelRatios argument can only be passed a valid non-empty array of integers");var e=t.every(function(n){return typeof n=="number"&&n>=1&&n<=5});if(!e)throw new Error("The devicePixelRatios argument can only contain positive integer values between 1 and 5")}function CO(t){if(tm(t)!=="object")throw new Error("The variableQualities argument can only be an object")}var xO=(function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(oO(this,t),this.settings=Hn(Hn({},bO),e),this.targetWidthsCache={},typeof this.settings.domain!="string")throw new Error("ImgixClient must be passed a valid string domain");if(mO.exec(this.settings.domain)==null)throw new Error('Domain must be passed in as fully-qualified domain name and should not include a protocol or any path element, i.e. "example.imgix.net".');this.settings.includeLibraryParam&&(this.settings.libraryParam="js-"+t.version()),this.settings.urlPrefix=this.settings.useHTTPS?"https://":"http://"}return aO(t,[{key:"buildURL",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this._sanitizePath(n,i),a=this._buildParams(r,i);return this.settings.secureURLToken&&(a=this._signParams(o,a)),this.settings.urlPrefix+this.settings.domain+o+a}},{key:"_buildParams",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=!!r.encoder,o=r.encoder,a=[].concat(nm(this.settings.libraryParam?["ixlib=".concat(this.settings.libraryParam)]:[]),nm(Object.entries(n).reduce(function(s,c){var u=E5(c,2),d=u[0],h=u[1];if(h==null)return s;var p=i?o(d,h):encodeURIComponent(d),m=d.substr(-2)==="64"?i?o(h,d):GT.encodeURI(h):i?o(h,d):encodeURIComponent(h);return s.push("".concat(p,"=").concat(m)),s},[])));return"".concat(a.length>0?"?":"").concat(a.join("&"))}},{key:"_signParams",value:function(n,r){var i=this.settings.secureURLToken+n+r,o=qT(i);return r.length>0?r+"&s="+o:"?s="+o}},{key:"_sanitizePath",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.replace(/^\//,"");return r.disablePathEncoding||(r.encoder?i=r.encoder(i):/^https?:\/\//.test(i)?i=encodeURIComponent(i):i=encodeURI(i).replace(/[#?:+]/g,encodeURIComponent)),"/"+i}},{key:"buildSrcSet",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=r.w,a=r.h;return o||a?this._buildDPRSrcSet(n,r,i):this._buildSrcSetPairs(n,r,i)}},{key:"_buildSrcSetPairs",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=EO(o),s=E5(a,3),c=s[0],u=s[1],d=s[2],h;o.widths?(SO(o.widths),h=nm(o.widths)):h=t.targetWidths(u,d,c,this.targetWidthsCache);var p=h.map(function(m){return"".concat(r.buildURL(n,Hn(Hn({},i),{},{w:m}),o)," ").concat(m,"w")});return p.join(`,
|
|
80
|
+
`)}},{key:"_buildDPRSrcSet",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};o.devicePixelRatios&&_O(o.devicePixelRatios);var a=o.devicePixelRatios||yO,s=o.disableVariableQuality||!1;s||wO(s),o.variableQualities&&CO(o.variableQualities);var c=Hn(Hn({},vO),o.variableQualities),u=function(p,m,v){return"".concat(r.buildURL(p,Hn(Hn({},m),{},{dpr:v,q:m.q||c[v]||c[Math.floor(v)]}),o)," ").concat(v,"x")},d=s?a.map(function(h){return"".concat(r.buildURL(n,Hn(Hn({},i),{},{dpr:h}),o)," ").concat(h,"x")}):a.map(function(h){return u(n,i,h)});return d.join(`,
|
|
81
|
+
`)}}],[{key:"version",value:function(){return pO}},{key:"_buildURL",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n==null)return"";var o=im({url:n,useHTTPS:i.useHTTPS}),a=o.host,s=o.pathname,c=o.search,u=Hn(Hn({},g5(c)),r);if(!a.length||!s.length)throw new Error("_buildURL: URL must match {host}/{pathname}?{query}");var d=new t(Hn({domain:a},i));return d.buildURL(s,u)}},{key:"_buildSrcSet",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(n==null)return"";var a=im({url:n,useHTTPS:o.useHTTPS}),s=a.host,c=a.pathname,u=a.search,d=Hn(Hn({},g5(u)),r);if(!s.length||!c.length)throw new Error("_buildOneStepURL: URL must match {host}/{pathname}?{query}");var h=new t(Hn({domain:s},o));return h.buildSrcSet(c,d,i)}},{key:"targetWidths",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:100,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:8192,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.08,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=Math.floor(n),s=Math.floor(r);x5(n,r),A5(i);var c=i+"/"+a+"/"+s;if(c in o)return o[c];if(a===s)return[a];for(var u=[],d=a;d<s;)u.push(Math.round(d)),d*=1+i*2;return u[u.length-1]<s&&u.push(s),o[c]=u,u}}]),t})();const k5=async({fit:t,height:e,path:n,quality:r,rotate:i,width:o,needActualSize:a=!1})=>{try{return new xO({domain:`${Fu("cdnDomain")}-public.imgix.net`}).buildURL(n,{f:t,h:a?1:e,q:r,r:i,w:a?1:o})}catch(s){return console.log("+++ Error happened when building file URL, error:",s,"+++"),null}};let om={};function Fu(t){return om[t]}function T5(t){om={...om,...t}}const ju=()=>Fu("apiBaseUrl"),AO=()=>{var t,e;return(e=(t=ju())==null?void 0:t.replace)==null?void 0:e.call(t,"api","link")},am=()=>Wr.get("easydesk_chat_widget_public_access_token")||"",sm=(t,e,n={})=>Wr.set(t,e,n),lm=t=>/^[\w%\+\-]+(\.[\w%\+\-]+)*@[\w%\+\-]+(\.[\w%\+\-]+)+$/.test(t),Du=(t,e,n="")=>{let r="";return t&&(r=t),e&&(r=`${r} ${e}`),!r&&n&&(r=n),r},Ni=(t,e,n)=>t&&e?Wl(t)+Wl(e):t?t.length>1?Wl(t)+t.charAt(1).toUpperCase():Wl(t):n?Wl(n):"",kO="IMAGE_KEY",TO=async t=>{const e=new DOMParser().parseFromString(t,"text/html"),n=e.querySelectorAll(`.${kO}`);for(const r of n){const i=await k5({path:r.innerHTML,fit:"scale",needActualSize:!0,quality:100});if(i){const o=document.createElement("img");o.src=i,o.classList.add("cursor-pointer"),o.setAttribute("data-key",r.innerHTML),r.replaceWith(o)}}return e.body.innerHTML},Wl=t=>(t==null?void 0:t.charAt(0).toUpperCase())||"",OO=async t=>new Promise((n,r)=>{const i=new Image;i.src=t,i.onload=()=>n({width:i.naturalWidth,height:i.naturalHeight}),i.onerror=o=>r(o)}),cm={isOpen:!1,image:null,url:null,error:null,loading:!1,height:0,width:0},RO=t=>t.trim().length>0,um=(t,e)=>typeof t!="string"||typeof e!="number"?(console.error("Invalid arguments for truncateText: text must be a string and maxLength must be a number."),t):t.length<=e?t:Ie.truncate(t,{length:e}),fm=["info","success","warning","error","default"],Rn=(t,e,n,r,i={autoClose:1e4})=>{fm!=null&&fm.includes(t)?Nt[t](e,{position:n,toastId:r,...i}):Nt(e||"Default Toast",{position:n,toastId:r,...i})};function O5(t,e){return function(){return t.apply(e,arguments)}}const{toString:NO}=Object.prototype,{getPrototypeOf:dm}=Object,{iterator:Vu,toStringTag:R5}=Symbol,Uu=(t=>e=>{const n=NO.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),mi=t=>(t=t.toLowerCase(),e=>Uu(e)===t),zu=t=>e=>typeof e===t,{isArray:rs}=Array,is=zu("undefined");function Gl(t){return t!==null&&!is(t)&&t.constructor!==null&&!is(t.constructor)&&fr(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const N5=mi("ArrayBuffer");function IO(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&N5(t.buffer),e}const PO=zu("string"),fr=zu("function"),I5=zu("number"),Yl=t=>t!==null&&typeof t=="object",MO=t=>t===!0||t===!1,Bu=t=>{if(Uu(t)!=="object")return!1;const e=dm(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(R5 in t)&&!(Vu in t)},LO=t=>{if(!Yl(t)||Gl(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},FO=mi("Date"),jO=mi("File"),DO=t=>!!(t&&typeof t.uri<"u"),VO=t=>t&&typeof t.getParts<"u",UO=mi("Blob"),zO=mi("FileList"),BO=t=>Yl(t)&&fr(t.pipe);function HO(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const P5=HO(),M5=typeof P5.FormData<"u"?P5.FormData:void 0,WO=t=>{let e;return t&&(M5&&t instanceof M5||fr(t.append)&&((e=Uu(t))==="formdata"||e==="object"&&fr(t.toString)&&t.toString()==="[object FormData]"))},GO=mi("URLSearchParams"),[YO,KO,ZO,QO]=["ReadableStream","Request","Response","Headers"].map(mi),qO=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kl(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),rs(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{if(Gl(t))return;const o=n?Object.getOwnPropertyNames(t):Object.keys(t),a=o.length;let s;for(r=0;r<a;r++)s=o[r],e.call(null,t[s],s,t)}}function L5(t,e){if(Gl(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const la=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,F5=t=>!is(t)&&t!==la;function hm(){const{caseless:t,skipUndefined:e}=F5(this)&&this||{},n={},r=(i,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const a=t&&L5(n,o)||o;Bu(n[a])&&Bu(i)?n[a]=hm(n[a],i):Bu(i)?n[a]=hm({},i):rs(i)?n[a]=i.slice():(!e||!is(i))&&(n[a]=i)};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Kl(arguments[i],r);return n}const JO=(t,e,n,{allOwnKeys:r}={})=>(Kl(e,(i,o)=>{n&&fr(i)?Object.defineProperty(t,o,{value:O5(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,o,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),XO=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),$O=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},eR=(t,e,n,r)=>{let i,o,a;const s={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)a=i[o],(!r||r(a,t,e))&&!s[a]&&(e[a]=t[a],s[a]=!0);t=n!==!1&&dm(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},tR=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},nR=t=>{if(!t)return null;if(rs(t))return t;let e=t.length;if(!I5(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},rR=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&dm(Uint8Array)),iR=(t,e)=>{const r=(t&&t[Vu]).call(t);let i;for(;(i=r.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},oR=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},aR=mi("HTMLFormElement"),sR=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),j5=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),lR=mi("RegExp"),D5=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Kl(n,(i,o)=>{let a;(a=e(i,o,t))!==!1&&(r[o]=a||i)}),Object.defineProperties(t,r)},cR=t=>{D5(t,(e,n)=>{if(fr(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(fr(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},uR=(t,e)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return rs(t)?r(t):r(String(t).split(e)),n},fR=()=>{},dR=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function hR(t){return!!(t&&fr(t.append)&&t[R5]==="FormData"&&t[Vu])}const pR=t=>{const e=new Array(10),n=(r,i)=>{if(Yl(r)){if(e.indexOf(r)>=0)return;if(Gl(r))return r;if(!("toJSON"in r)){e[i]=r;const o=rs(r)?[]:{};return Kl(r,(a,s)=>{const c=n(a,i+1);!is(c)&&(o[s]=c)}),e[i]=void 0,o}}return r};return n(t,0)},mR=mi("AsyncFunction"),gR=t=>t&&(Yl(t)||fr(t))&&fr(t.then)&&fr(t.catch),V5=((t,e)=>t?setImmediate:e?((n,r)=>(la.addEventListener("message",({source:i,data:o})=>{i===la&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),la.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",fr(la.postMessage)),vR=typeof queueMicrotask<"u"?queueMicrotask.bind(la):typeof process<"u"&&process.nextTick||V5,se={isArray:rs,isArrayBuffer:N5,isBuffer:Gl,isFormData:WO,isArrayBufferView:IO,isString:PO,isNumber:I5,isBoolean:MO,isObject:Yl,isPlainObject:Bu,isEmptyObject:LO,isReadableStream:YO,isRequest:KO,isResponse:ZO,isHeaders:QO,isUndefined:is,isDate:FO,isFile:jO,isReactNativeBlob:DO,isReactNative:VO,isBlob:UO,isRegExp:lR,isFunction:fr,isStream:BO,isURLSearchParams:GO,isTypedArray:rR,isFileList:zO,forEach:Kl,merge:hm,extend:JO,trim:qO,stripBOM:XO,inherits:$O,toFlatObject:eR,kindOf:Uu,kindOfTest:mi,endsWith:tR,toArray:nR,forEachEntry:iR,matchAll:oR,isHTMLForm:aR,hasOwnProperty:j5,hasOwnProp:j5,reduceDescriptors:D5,freezeMethods:cR,toObjectSet:uR,toCamelCase:sR,noop:fR,toFiniteNumber:dR,findKey:L5,global:la,isContextDefined:F5,isSpecCompliantForm:hR,toJSONObject:pR,isAsyncFn:mR,isThenable:gR,setImmediate:V5,asap:vR,isIterable:t=>t!=null&&fr(t[Vu])};let He=class E9 extends Error{static from(e,n,r,i,o,a){const s=new E9(e.message,n||e.code,r,i,o);return s.cause=e,s.name=e.name,e.status!=null&&s.status==null&&(s.status=e.status),a&&Object.assign(s,a),s}constructor(e,n,r,i,o){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:se.toJSONObject(this.config),code:this.code,status:this.status}}};He.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",He.ERR_BAD_OPTION="ERR_BAD_OPTION",He.ECONNABORTED="ECONNABORTED",He.ETIMEDOUT="ETIMEDOUT",He.ERR_NETWORK="ERR_NETWORK",He.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",He.ERR_DEPRECATED="ERR_DEPRECATED",He.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",He.ERR_BAD_REQUEST="ERR_BAD_REQUEST",He.ERR_CANCELED="ERR_CANCELED",He.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",He.ERR_INVALID_URL="ERR_INVALID_URL";const yR=null;function pm(t){return se.isPlainObject(t)||se.isArray(t)}function U5(t){return se.endsWith(t,"[]")?t.slice(0,-2):t}function mm(t,e,n){return t?t.concat(e).map(function(i,o){return i=U5(i),!n&&o?"["+i+"]":i}).join(n?".":""):e}function bR(t){return se.isArray(t)&&!t.some(pm)}const ER=se.toFlatObject(se,{},null,function(e){return/^is[A-Z]/.test(e)});function Hu(t,e,n){if(!se.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=se.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,y){return!se.isUndefined(y[b])});const r=n.metaTokens,i=n.visitor||d,o=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&se.isSpecCompliantForm(e);if(!se.isFunction(i))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(se.isDate(v))return v.toISOString();if(se.isBoolean(v))return v.toString();if(!c&&se.isBlob(v))throw new He("Blob is not supported. Use a Buffer instead.");return se.isArrayBuffer(v)||se.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,b,y){let w=v;if(se.isReactNative(e)&&se.isReactNativeBlob(v))return e.append(mm(y,b,o),u(v)),!1;if(v&&!y&&typeof v=="object"){if(se.endsWith(b,"{}"))b=r?b:b.slice(0,-2),v=JSON.stringify(v);else if(se.isArray(v)&&bR(v)||(se.isFileList(v)||se.endsWith(b,"[]"))&&(w=se.toArray(v)))return b=U5(b),w.forEach(function(k,x){!(se.isUndefined(k)||k===null)&&e.append(a===!0?mm([b],x,o):a===null?b:b+"[]",u(k))}),!1}return pm(v)?!0:(e.append(mm(y,b,o),u(v)),!1)}const h=[],p=Object.assign(ER,{defaultVisitor:d,convertValue:u,isVisitable:pm});function m(v,b){if(!se.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+b.join("."));h.push(v),se.forEach(v,function(w,C){(!(se.isUndefined(w)||w===null)&&i.call(e,w,se.isString(C)?C.trim():C,b,p))===!0&&m(w,b?b.concat(C):[C])}),h.pop()}}if(!se.isObject(t))throw new TypeError("data must be an object");return m(t),e}function z5(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function gm(t,e){this._pairs=[],t&&Hu(t,this,e)}const B5=gm.prototype;B5.append=function(e,n){this._pairs.push([e,n])},B5.toString=function(e){const n=e?function(r){return e.call(this,r,z5)}:z5;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function SR(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function H5(t,e,n){if(!e)return t;const r=n&&n.encode||SR,i=se.isFunction(n)?{serialize:n}:n,o=i&&i.serialize;let a;if(o?a=o(e,i):a=se.isURLSearchParams(e)?e.toString():new gm(e,i).toString(r),a){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class W5{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){se.forEach(this.handlers,function(r){r!==null&&e(r)})}}const vm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},wR={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:gm,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ym=typeof window<"u"&&typeof document<"u",bm=typeof navigator=="object"&&navigator||void 0,_R=ym&&(!bm||["ReactNative","NativeScript","NS"].indexOf(bm.product)<0),CR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xR=ym&&window.location.href||"http://localhost",Wn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ym,hasStandardBrowserEnv:_R,hasStandardBrowserWebWorkerEnv:CR,navigator:bm,origin:xR},Symbol.toStringTag,{value:"Module"})),...wR};function AR(t,e){return Hu(t,new Wn.classes.URLSearchParams,{visitor:function(n,r,i,o){return Wn.isNode&&se.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...e})}function kR(t){return se.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function TR(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}function G5(t){function e(n,r,i,o){let a=n[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),c=o>=n.length;return a=!a&&se.isArray(i)?i.length:a,c?(se.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!se.isObject(i[a]))&&(i[a]=[]),e(n,r,i[a],o)&&se.isArray(i[a])&&(i[a]=TR(i[a])),!s)}if(se.isFormData(t)&&se.isFunction(t.entries)){const n={};return se.forEachEntry(t,(r,i)=>{e(kR(r),i,n,0)}),n}return null}function OR(t,e,n){if(se.isString(t))try{return(e||JSON.parse)(t),se.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const Zl={transitional:vm,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=se.isObject(e);if(o&&se.isHTMLForm(e)&&(e=new FormData(e)),se.isFormData(e))return i?JSON.stringify(G5(e)):e;if(se.isArrayBuffer(e)||se.isBuffer(e)||se.isStream(e)||se.isFile(e)||se.isBlob(e)||se.isReadableStream(e))return e;if(se.isArrayBufferView(e))return e.buffer;if(se.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return AR(e,this.formSerializer).toString();if((s=se.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Hu(s?{"files[]":e}:e,c&&new c,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),OR(e)):e}],transformResponse:[function(e){const n=this.transitional||Zl.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(se.isResponse(e)||se.isReadableStream(e))return e;if(e&&se.isString(e)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(s){if(a)throw s.name==="SyntaxError"?He.from(s,He.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wn.classes.FormData,Blob:Wn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};se.forEach(["delete","get","head","post","put","patch"],t=>{Zl.headers[t]={}});const RR=se.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),NR=t=>{const e={};let n,r,i;return t&&t.split(`
|
|
82
|
+
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||e[n]&&RR[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Y5=Symbol("internals");function Ql(t){return t&&String(t).trim().toLowerCase()}function Wu(t){return t===!1||t==null?t:se.isArray(t)?t.map(Wu):String(t)}function IR(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const PR=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Em(t,e,n,r,i){if(se.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!se.isString(e)){if(se.isString(r))return e.indexOf(r)!==-1;if(se.isRegExp(r))return r.test(e)}}function MR(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function LR(t,e){const n=se.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,o,a){return this[r].call(this,e,i,o,a)},configurable:!0})})}let dr=class{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function o(s,c,u){const d=Ql(c);if(!d)throw new Error("header name must be a non-empty string");const h=se.findKey(i,d);(!h||i[h]===void 0||u===!0||u===void 0&&i[h]!==!1)&&(i[h||c]=Wu(s))}const a=(s,c)=>se.forEach(s,(u,d)=>o(u,d,c));if(se.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(se.isString(e)&&(e=e.trim())&&!PR(e))a(NR(e),n);else if(se.isObject(e)&&se.isIterable(e)){let s={},c,u;for(const d of e){if(!se.isArray(d))throw TypeError("Object iterator must return a key-value pair");s[u=d[0]]=(c=s[u])?se.isArray(c)?[...c,d[1]]:[c,d[1]]:d[1]}a(s,n)}else e!=null&&o(n,e,r);return this}get(e,n){if(e=Ql(e),e){const r=se.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return IR(i);if(se.isFunction(n))return n.call(this,i,r);if(se.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Ql(e),e){const r=se.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Em(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function o(a){if(a=Ql(a),a){const s=se.findKey(r,a);s&&(!n||Em(r,r[s],s,n))&&(delete r[s],i=!0)}}return se.isArray(e)?e.forEach(o):o(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!e||Em(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const n=this,r={};return se.forEach(this,(i,o)=>{const a=se.findKey(r,o);if(a){n[a]=Wu(i),delete n[o];return}const s=e?MR(o):String(o).trim();s!==o&&delete n[o],n[s]=Wu(i),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return se.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&se.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
|
83
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[Y5]=this[Y5]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Ql(a);r[s]||(LR(i,a),r[s]=!0)}return se.isArray(e)?e.forEach(o):o(e),this}};dr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),se.reduceDescriptors(dr.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),se.freezeMethods(dr);function Sm(t,e){const n=this||Zl,r=e||n,i=dr.from(r.headers);let o=r.data;return se.forEach(t,function(s){o=s.call(n,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function K5(t){return!!(t&&t.__CANCEL__)}let ql=class extends He{constructor(e,n,r){super(e??"canceled",He.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Z5(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new He("Request failed with status code "+n.status,[He.ERR_BAD_REQUEST,He.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function FR(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function jR(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,o=0,a;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),d=r[o];a||(a=u),n[i]=c,r[i]=u;let h=o,p=0;for(;h!==i;)p+=n[h++],h=h%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),u-a<e)return;const m=d&&u-d;return m?Math.round(p*1e3/m):void 0}}function DR(t,e){let n=0,r=1e3/e,i,o;const a=(u,d=Date.now())=>{n=d,i=null,o&&(clearTimeout(o),o=null),t(...u)};return[(...u)=>{const d=Date.now(),h=d-n;h>=r?a(u,d):(i=u,o||(o=setTimeout(()=>{o=null,a(i)},r-h)))},()=>i&&a(i)]}const Gu=(t,e,n=3)=>{let r=0;const i=jR(50,250);return DR(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,c=a-r,u=i(c),d=a<=s;r=a;const h={loaded:a,total:s,progress:s?a/s:void 0,bytes:c,rate:u||void 0,estimated:u&&s&&d?(s-a)/u:void 0,event:o,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(h)},n)},Q5=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},q5=t=>(...e)=>se.asap(()=>t(...e)),VR=Wn.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Wn.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Wn.origin),Wn.navigator&&/(msie|trident)/i.test(Wn.navigator.userAgent)):()=>!0,UR=Wn.hasStandardBrowserEnv?{write(t,e,n,r,i,o,a){if(typeof document>"u")return;const s=[`${t}=${encodeURIComponent(e)}`];se.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),se.isString(r)&&s.push(`path=${r}`),se.isString(i)&&s.push(`domain=${i}`),o===!0&&s.push("secure"),se.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function zR(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function BR(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function J5(t,e,n){let r=!zR(e);return t&&(r||n==!1)?BR(t,e):e}const X5=t=>t instanceof dr?{...t}:t;function ca(t,e){e=e||{};const n={};function r(u,d,h,p){return se.isPlainObject(u)&&se.isPlainObject(d)?se.merge.call({caseless:p},u,d):se.isPlainObject(d)?se.merge({},d):se.isArray(d)?d.slice():d}function i(u,d,h,p){if(se.isUndefined(d)){if(!se.isUndefined(u))return r(void 0,u,h,p)}else return r(u,d,h,p)}function o(u,d){if(!se.isUndefined(d))return r(void 0,d)}function a(u,d){if(se.isUndefined(d)){if(!se.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function s(u,d,h){if(h in e)return r(u,d);if(h in t)return r(void 0,u)}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,d,h)=>i(X5(u),X5(d),h,!0)};return se.forEach(Object.keys({...t,...e}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const h=se.hasOwnProp(c,d)?c[d]:i,p=h(t[d],e[d],d);se.isUndefined(p)&&h!==s||(n[d]=p)}),n}const $5=t=>{const e=ca({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=e;if(e.headers=a=dr.from(a),e.url=H5(J5(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),se.isFormData(n)){if(Wn.hasStandardBrowserEnv||Wn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(se.isFunction(n.getHeaders)){const c=n.getHeaders(),u=["content-type","content-length"];Object.entries(c).forEach(([d,h])=>{u.includes(d.toLowerCase())&&a.set(d,h)})}}if(Wn.hasStandardBrowserEnv&&(r&&se.isFunction(r)&&(r=r(e)),r||r!==!1&&VR(e.url))){const c=i&&o&&UR.read(o);c&&a.set(i,c)}return e},HR=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const i=$5(t);let o=i.data;const a=dr.from(i.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:u}=i,d,h,p,m,v;function b(){m&&m(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function w(){if(!y)return;const k=dr.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:k,config:t,request:y};Z5(function(T){n(T),b()},function(T){r(T),b()},S),y=null}"onloadend"in y?y.onloadend=w:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(w)},y.onabort=function(){y&&(r(new He("Request aborted",He.ECONNABORTED,t,y)),y=null)},y.onerror=function(x){const S=x&&x.message?x.message:"Network Error",A=new He(S,He.ERR_NETWORK,t,y);A.event=x||null,r(A),y=null},y.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const S=i.transitional||vm;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new He(x,S.clarifyTimeoutError?He.ETIMEDOUT:He.ECONNABORTED,t,y)),y=null},o===void 0&&a.setContentType(null),"setRequestHeader"in y&&se.forEach(a.toJSON(),function(x,S){y.setRequestHeader(S,x)}),se.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),s&&s!=="json"&&(y.responseType=i.responseType),u&&([p,v]=Gu(u,!0),y.addEventListener("progress",p)),c&&y.upload&&([h,m]=Gu(c),y.upload.addEventListener("progress",h),y.upload.addEventListener("loadend",m)),(i.cancelToken||i.signal)&&(d=k=>{y&&(r(!k||k.type?new ql(null,t,y):k),y.abort(),y=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const C=FR(i.url);if(C&&Wn.protocols.indexOf(C)===-1){r(new He("Unsupported protocol "+C+":",He.ERR_BAD_REQUEST,t));return}y.send(o||null)})},WR=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,i;const o=function(u){if(!i){i=!0,s();const d=u instanceof Error?u:this.reason;r.abort(d instanceof He?d:new ql(d instanceof Error?d.message:d))}};let a=e&&setTimeout(()=>{a=null,o(new He(`timeout of ${e}ms exceeded`,He.ETIMEDOUT))},e);const s=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),t=null)};t.forEach(u=>u.addEventListener("abort",o));const{signal:c}=r;return c.unsubscribe=()=>se.asap(s),c}},GR=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},YR=async function*(t,e){for await(const n of KR(t))yield*GR(n,e)},KR=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},eE=(t,e,n,r)=>{const i=YR(t,e);let o=0,a,s=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await i.next();if(u){s(),c.close();return}let h=d.byteLength;if(n){let p=o+=h;n(p)}c.enqueue(new Uint8Array(d))}catch(u){throw s(u),u}},cancel(c){return s(c),i.return()}},{highWaterMark:2})},tE=64*1024,{isFunction:Yu}=se,ZR=(({Request:t,Response:e})=>({Request:t,Response:e}))(se.global),{ReadableStream:nE,TextEncoder:rE}=se.global,iE=(t,...e)=>{try{return!!t(...e)}catch{return!1}},QR=t=>{t=se.merge.call({skipUndefined:!0},ZR,t);const{fetch:e,Request:n,Response:r}=t,i=e?Yu(e):typeof fetch=="function",o=Yu(n),a=Yu(r);if(!i)return!1;const s=i&&Yu(nE),c=i&&(typeof rE=="function"?(v=>b=>v.encode(b))(new rE):async v=>new Uint8Array(await new n(v).arrayBuffer())),u=o&&s&&iE(()=>{let v=!1;const b=new n(Wn.origin,{body:new nE,method:"POST",get duplex(){return v=!0,"half"}}).headers.has("Content-Type");return v&&!b}),d=a&&s&&iE(()=>se.isReadableStream(new r("").body)),h={stream:d&&(v=>v.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!h[v]&&(h[v]=(b,y)=>{let w=b&&b[v];if(w)return w.call(b);throw new He(`Response type '${v}' is not supported`,He.ERR_NOT_SUPPORT,y)})});const p=async v=>{if(v==null)return 0;if(se.isBlob(v))return v.size;if(se.isSpecCompliantForm(v))return(await new n(Wn.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(se.isArrayBufferView(v)||se.isArrayBuffer(v))return v.byteLength;if(se.isURLSearchParams(v)&&(v=v+""),se.isString(v))return(await c(v)).byteLength},m=async(v,b)=>{const y=se.toFiniteNumber(v.getContentLength());return y??p(b)};return async v=>{let{url:b,method:y,data:w,signal:C,cancelToken:k,timeout:x,onDownloadProgress:S,onUploadProgress:A,responseType:T,headers:N,withCredentials:P="same-origin",fetchOptions:U}=$5(v),V=e||fetch;T=T?(T+"").toLowerCase():"text";let H=WR([C,k&&k.toAbortSignal()],x),Q=null;const j=H&&H.unsubscribe&&(()=>{H.unsubscribe()});let F;try{if(A&&u&&y!=="get"&&y!=="head"&&(F=await m(N,w))!==0){let G=new n(b,{method:"POST",body:w,duplex:"half"}),te;if(se.isFormData(w)&&(te=G.headers.get("content-type"))&&N.setContentType(te),G.body){const[ne,ce]=Q5(F,Gu(q5(A)));w=eE(G.body,tE,ne,ce)}}se.isString(P)||(P=P?"include":"omit");const D=o&&"credentials"in n.prototype,Y={...U,signal:H,method:y.toUpperCase(),headers:N.normalize().toJSON(),body:w,duplex:"half",credentials:D?P:void 0};Q=o&&new n(b,Y);let z=await(o?V(Q,U):V(b,Y));const q=d&&(T==="stream"||T==="response");if(d&&(S||q&&j)){const G={};["status","statusText","headers"].forEach(ie=>{G[ie]=z[ie]});const te=se.toFiniteNumber(z.headers.get("content-length")),[ne,ce]=S&&Q5(te,Gu(q5(S),!0))||[];z=new r(eE(z.body,tE,ne,()=>{ce&&ce(),j&&j()}),G)}T=T||"text";let W=await h[se.findKey(h,T)||"text"](z,v);return!q&&j&&j(),await new Promise((G,te)=>{Z5(G,te,{data:W,headers:dr.from(z.headers),status:z.status,statusText:z.statusText,config:v,request:Q})})}catch(D){throw j&&j(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new He("Network Error",He.ERR_NETWORK,v,Q,D&&D.response),{cause:D.cause||D}):He.from(D,D&&D.code,v,Q,D&&D.response)}}},qR=new Map,oE=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:i}=e,o=[r,i,n];let a=o.length,s=a,c,u,d=qR;for(;s--;)c=o[s],u=d.get(c),u===void 0&&d.set(c,u=s?new Map:QR(e)),d=u;return u};oE();const wm={http:yR,xhr:HR,fetch:{get:oE}};se.forEach(wm,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const aE=t=>`- ${t}`,JR=t=>se.isFunction(t)||t===null||t===!1;function XR(t,e){t=se.isArray(t)?t:[t];const{length:n}=t;let r,i;const o={};for(let a=0;a<n;a++){r=t[a];let s;if(i=r,!JR(r)&&(i=wm[(s=String(r)).toLowerCase()],i===void 0))throw new He(`Unknown adapter '${s}'`);if(i&&(se.isFunction(i)||(i=i.get(e))))break;o[s||"#"+a]=i}if(!i){const a=Object.entries(o).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=n?a.length>1?`since :
|
|
84
|
+
`+a.map(aE).join(`
|
|
85
|
+
`):" "+aE(a[0]):"as no adapter specified";throw new He("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const sE={getAdapter:XR,adapters:wm};function _m(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ql(null,t)}function lE(t){return _m(t),t.headers=dr.from(t.headers),t.data=Sm.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),sE.getAdapter(t.adapter||Zl.adapter,t)(t).then(function(r){return _m(t),r.data=Sm.call(t,t.transformResponse,r),r.headers=dr.from(r.headers),r},function(r){return K5(r)||(_m(t),r&&r.response&&(r.response.data=Sm.call(t,t.transformResponse,r.response),r.response.headers=dr.from(r.response.headers))),Promise.reject(r)})}const cE="1.13.6",Ku={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Ku[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const uE={};Ku.transitional=function(e,n,r){function i(o,a){return"[Axios v"+cE+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(e===!1)throw new He(i(a," has been removed"+(n?" in "+n:"")),He.ERR_DEPRECATED);return n&&!uE[a]&&(uE[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,a,s):!0}},Ku.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function $R(t,e,n){if(typeof t!="object")throw new He("options must be an object",He.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],a=e[o];if(a){const s=t[o],c=s===void 0||a(s,o,t);if(c!==!0)throw new He("option "+o+" must be "+c,He.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new He("Unknown option "+o,He.ERR_BAD_OPTION)}}const Zu={assertOptions:$R,validators:Ku},Gr=Zu.validators;let ua=class{constructor(e){this.defaults=e||{},this.interceptors={request:new W5,response:new W5}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
86
|
+
`+o):r.stack=o}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ca(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Zu.assertOptions(r,{silentJSONParsing:Gr.transitional(Gr.boolean),forcedJSONParsing:Gr.transitional(Gr.boolean),clarifyTimeoutError:Gr.transitional(Gr.boolean),legacyInterceptorReqResOrdering:Gr.transitional(Gr.boolean)},!1),i!=null&&(se.isFunction(i)?n.paramsSerializer={serialize:i}:Zu.assertOptions(i,{encode:Gr.function,serialize:Gr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Zu.assertOptions(n,{baseUrl:Gr.spelling("baseURL"),withXsrfToken:Gr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&se.merge(o.common,o[n.method]);o&&se.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=dr.concat(a,o);const s=[];let c=!0;this.interceptors.request.forEach(function(b){if(typeof b.runWhen=="function"&&b.runWhen(n)===!1)return;c=c&&b.synchronous;const y=n.transitional||vm;y&&y.legacyInterceptorReqResOrdering?s.unshift(b.fulfilled,b.rejected):s.push(b.fulfilled,b.rejected)});const u=[];this.interceptors.response.forEach(function(b){u.push(b.fulfilled,b.rejected)});let d,h=0,p;if(!c){const v=[lE.bind(this),void 0];for(v.unshift(...s),v.push(...u),p=v.length,d=Promise.resolve(n);h<p;)d=d.then(v[h++],v[h++]);return d}p=s.length;let m=n;for(;h<p;){const v=s[h++],b=s[h++];try{m=v(m)}catch(y){b.call(this,y);break}}try{d=lE.call(this,m)}catch(v){return Promise.reject(v)}for(h=0,p=u.length;h<p;)d=d.then(u[h++],u[h++]);return d}getUri(e){e=ca(this.defaults,e);const n=J5(e.baseURL,e.url,e.allowAbsoluteUrls);return H5(n,e.params,e.paramsSerializer)}};se.forEach(["delete","get","head","options"],function(e){ua.prototype[e]=function(n,r){return this.request(ca(r||{},{method:e,url:n,data:(r||{}).data}))}}),se.forEach(["post","put","patch"],function(e){function n(r){return function(o,a,s){return this.request(ca(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}ua.prototype[e]=n(),ua.prototype[e+"Form"]=n(!0)});let eN=class S9{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},e(function(o,a,s){r.reason||(r.reason=new ql(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new S9(function(i){e=i}),cancel:e}}};function tN(t){return function(n){return t.apply(null,n)}}function nN(t){return se.isObject(t)&&t.isAxiosError===!0}const Cm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Cm).forEach(([t,e])=>{Cm[e]=t});function fE(t){const e=new ua(t),n=O5(ua.prototype.request,e);return se.extend(n,ua.prototype,e,{allOwnKeys:!0}),se.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return fE(ca(t,i))},n}const Xt=fE(Zl);Xt.Axios=ua,Xt.CanceledError=ql,Xt.CancelToken=eN,Xt.isCancel=K5,Xt.VERSION=cE,Xt.toFormData=Hu,Xt.AxiosError=He,Xt.Cancel=Xt.CanceledError,Xt.all=function(e){return Promise.all(e)},Xt.spread=tN,Xt.isAxiosError=nN,Xt.mergeConfig=ca,Xt.AxiosHeaders=dr,Xt.formToJSON=t=>G5(se.isHTMLForm(t)?new FormData(t):t),Xt.getAdapter=sE.getAdapter,Xt.HttpStatusCode=Cm,Xt.default=Xt;const{Axios:aX,AxiosError:sX,CanceledError:lX,isCancel:cX,CancelToken:uX,VERSION:fX,all:dX,Cancel:hX,isAxiosError:pX,spread:mX,toFormData:gX,AxiosHeaders:vX,HttpStatusCode:yX,formToJSON:bX,getAdapter:EX,mergeConfig:SX}=Xt,rN=()=>Xt.create({baseURL:ju(),headers:{Authorization:am()}});function iN(){if(console&&console.warn){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];fa(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}const dE={};function xm(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];fa(e[0])&&dE[e[0]]||(fa(e[0])&&(dE[e[0]]=new Date),iN(...e))}const hE=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},pE=(t,e,n)=>{t.loadNamespaces(e,hE(t,n))},mE=(t,e,n,r)=>{fa(n)&&(n=[n]),n.forEach(i=>{t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,hE(t,r))},oN=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=e.languages[0],i=e.options?e.options.fallbackLng:!1,o=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,c)=>{const u=e.services.backendConnector.state[`${s}|${c}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!a(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))},aN=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(xm("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(t,{lng:n.lng,precheck:(i,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!o(i.isLanguageChangingTo,t))return!1}}):oN(t,e,n)},fa=t=>typeof t=="string",sN=t=>typeof t=="object"&&t!==null,lN=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,cN={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},uN=t=>cN[t];let Am={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:t=>t.replace(lN,uN)};const fN=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Am={...Am,...t}},dN=()=>Am;let gE;const hN=t=>{gE=t},pN=()=>gE,mN={type:"3rdParty",init(t){fN(t.options.react),hN(t)}},gN=R.createContext();class vN{constructor(){ae(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}}const yN=(t,e)=>{const n=R.useRef();return R.useEffect(()=>{n.current=t},[t,e]),n.current},vE=(t,e,n,r)=>t.getFixedT(e,n,r),bN=(t,e,n,r)=>R.useCallback(vE(t,e,n,r),[t,e,n,r]),EN=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=e,{i18n:r,defaultNS:i}=R.useContext(gN)||{},o=n||r||pN();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new vN),!o){xm("You will need to pass in an i18next instance by using initReactI18next");const x=(A,T)=>fa(T)?T:sN(T)&&fa(T.defaultValue)?T.defaultValue:Array.isArray(A)?A[A.length-1]:A,S=[x,{},!1];return S.t=x,S.i18n={},S.ready=!1,S}o.options.react&&o.options.react.wait!==void 0&&xm("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...dN(),...o.options.react,...e},{useSuspense:s,keyPrefix:c}=a;let u=t||i||o.options&&o.options.defaultNS;u=fa(u)?[u]:u||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(u);const d=(o.isInitialized||o.initializedStoreOnce)&&u.every(x=>aN(x,o,a)),h=bN(o,e.lng||null,a.nsMode==="fallback"?u:u[0],c),p=()=>h,m=()=>vE(o,e.lng||null,a.nsMode==="fallback"?u:u[0],c),[v,b]=R.useState(p);let y=u.join();e.lng&&(y=`${e.lng}${y}`);const w=yN(y),C=R.useRef(!0);R.useEffect(()=>{const{bindI18n:x,bindI18nStore:S}=a;C.current=!0,!d&&!s&&(e.lng?mE(o,e.lng,u,()=>{C.current&&b(m)}):pE(o,u,()=>{C.current&&b(m)})),d&&w&&w!==y&&C.current&&b(m);const A=()=>{C.current&&b(m)};return x&&o&&o.on(x,A),S&&o&&o.store.on(S,A),()=>{C.current=!1,x&&o&&x.split(" ").forEach(T=>o.off(T,A)),S&&o&&S.split(" ").forEach(T=>o.store.off(T,A))}},[o,y]),R.useEffect(()=>{C.current&&d&&b(p)},[o,c,d]);const k=[v,o,d];if(k.t=v,k.i18n=o,k.ready=d,d||!d&&!s)return k;throw new Promise(x=>{e.lng?mE(o,e.lng,u,()=>x()):pE(o,u,()=>x())})},SN=new PT(t=>({headers:{...t.headers,Authorization:am()}}));class wN extends Tn{constructor(e){super((n,r)=>new Bt(i=>{let o,a,s;try{o=r(n).subscribe({next:c=>{const u=n.client.queryManager.incrementalHandler,d=u.isIncrementalResult(c)?u.extractErrors(c):c.errors;d?s=e({error:new Xi(c,d),result:c,operation:n,forward:r}):_6(c)&&(s=e({error:c.extensions[Ml],result:c,operation:n,forward:r})),a=s==null?void 0:s.subscribe(i),a||i.next(c)},error:c=>{s=e({operation:n,error:Rp(c),forward:r}),a=s==null?void 0:s.subscribe(i),a||i.error(c)},complete:()=>{s||i.complete()}})}catch(c){e({error:Rp(c),operation:n,forward:r}),i.error(c)}return()=>{o&&o.unsubscribe(),a&&a.unsubscribe()}}))}}const _N=new wN(({graphQLErrors:t,networkError:e,forward:n,operation:r})=>(e&&Rn("error","Something went wrong! Please try again.","top-right"),t!=null&&t.length&&t.forEach(({message:i})=>{Rn("error",i||"An error occurred","top-right")}),n(r))),CN=t=>new Mk({uri:`${t}/graphql`});function xN(t){return Bn(t)&&"code"in t&&"reason"in t}function AN(t){var e;return Bn(t)&&((e=t.target)==null?void 0:e.readyState)===WebSocket.CLOSED}class kN extends Tn{constructor(n){super();ae(this,"client");this.client=n}request(n){return new Bt(r=>{const{query:i,variables:o,operationName:a,extensions:s}=n;return this.client.subscribe({variables:o,operationName:a,extensions:s,query:ia(i)},{next:r.next.bind(r),complete:r.complete.bind(r),error:c=>{if(c instanceof Error)return r.error(c);const u=xN(c);return u||AN(c)?r.error(new Error(`Socket closed${u?` with event ${c.code}`:""}${u?` ${c.reason}`:""}`)):r.error(new Xi({errors:Array.isArray(c)?c:[c]}))}})})}}function hr(t){return t===null?"null":Array.isArray(t)?"array":typeof t}function da(t){return hr(t)==="object"}function TN(t){return Array.isArray(t)&&t.length>0&&t.every(e=>"message"in e)}function yE(t,e){return t.length<124?t:e}const ON="graphql-transport-ws";var Or;(function(t){t[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(Or||(Or={}));var cn;(function(t){t.ConnectionInit="connection_init",t.ConnectionAck="connection_ack",t.Ping="ping",t.Pong="pong",t.Subscribe="subscribe",t.Next="next",t.Error="error",t.Complete="complete"})(cn||(cn={}));function bE(t){if(!da(t))throw new Error(`Message is expected to be an object, but got ${hr(t)}`);if(!t.type)throw new Error("Message is missing the 'type' property");if(typeof t.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${hr(t.type)}`);switch(t.type){case cn.ConnectionInit:case cn.ConnectionAck:case cn.Ping:case cn.Pong:{if(t.payload!=null&&!da(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${t.payload}"`);break}case cn.Subscribe:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${hr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!da(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${hr(t.payload)}`);if(typeof t.payload.query!="string")throw new Error(`"${t.type}" message payload expects the 'query' property to be a string, but got ${hr(t.payload.query)}`);if(t.payload.variables!=null&&!da(t.payload.variables))throw new Error(`"${t.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${hr(t.payload.variables)}`);if(t.payload.operationName!=null&&hr(t.payload.operationName)!=="string")throw new Error(`"${t.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${hr(t.payload.operationName)}`);if(t.payload.extensions!=null&&!da(t.payload.extensions))throw new Error(`"${t.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${hr(t.payload.extensions)}`);break}case cn.Next:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${hr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!da(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an object, but got ${hr(t.payload)}`);break}case cn.Error:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${hr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);if(!TN(t.payload))throw new Error(`"${t.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(t.payload)}`);break}case cn.Complete:{if(typeof t.id!="string")throw new Error(`"${t.type}" message expects the 'id' property to be a string, but got ${hr(t.id)}`);if(!t.id)throw new Error(`"${t.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${t.type}"`)}return t}function RN(t,e){return bE(typeof t=="string"?JSON.parse(t,e):t)}function Jl(t,e){return bE(t),JSON.stringify(t,e)}var os=function(t){return this instanceof os?(this.v=t,this):new os(t)},NN=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(m){return function(v){return Promise.resolve(v).then(m,h)}}function s(m,v){r[m]&&(i[m]=function(b){return new Promise(function(y,w){o.push([m,b,y,w])>1||c(m,b)})},v&&(i[m]=v(i[m])))}function c(m,v){try{u(r[m](v))}catch(b){p(o[0][3],b)}}function u(m){m.value instanceof os?Promise.resolve(m.value.v).then(d,h):p(o[0][2],m)}function d(m){c("next",m)}function h(m){c("throw",m)}function p(m,v){m(v),o.shift(),o.length&&c(o[0][0],o[0][1])}};function IN(t){const{url:e,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:o=0,keepAlive:a=0,disablePong:s,connectionAckWaitTimeout:c=0,retryAttempts:u=5,retryWait:d=async function(D){let Y=1e3;for(let z=0;z<D;z++)Y*=2;await new Promise(z=>setTimeout(z,Y+Math.floor(Math.random()*2700+300)))},shouldRetry:h=km,isFatalConnectionProblem:p,on:m,webSocketImpl:v,generateID:b=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,D=>{const Y=Math.random()*16|0;return(D=="x"?Y:Y&3|8).toString(16)})},jsonMessageReplacer:y,jsonMessageReviver:w}=t;let C;if(v){if(!MN(v))throw new Error("Invalid WebSocket implementation provided");C=v}else typeof WebSocket<"u"?C=WebSocket:typeof global<"u"?C=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(C=window.WebSocket||window.MozWebSocket);if(!C)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const k=C,x=(()=>{const F=(()=>{const Y={};return{on(z,q){return Y[z]=q,()=>{delete Y[z]}},emit(z){var q;"id"in z&&((q=Y[z.id])===null||q===void 0||q.call(Y,z))}}})(),D={connecting:m!=null&&m.connecting?[m.connecting]:[],opened:m!=null&&m.opened?[m.opened]:[],connected:m!=null&&m.connected?[m.connected]:[],ping:m!=null&&m.ping?[m.ping]:[],pong:m!=null&&m.pong?[m.pong]:[],message:m!=null&&m.message?[F.emit,m.message]:[F.emit],closed:m!=null&&m.closed?[m.closed]:[],error:m!=null&&m.error?[m.error]:[]};return{onMessage:F.on,on(Y,z){const q=D[Y];return q.push(z),()=>{q.splice(q.indexOf(z),1)}},emit(Y,...z){for(const q of[...D[Y]])q(...z)}}})();function S(F){const D=[x.on("error",Y=>{D.forEach(z=>z()),F(Y)}),x.on("closed",Y=>{D.forEach(z=>z()),F(Y)})]}let A,T=0,N,P=!1,U=0,V=!1;async function H(){clearTimeout(N);const[F,D]=await(A??(A=new Promise((q,W)=>(async()=>{if(P){if(await d(U),!T)return A=void 0,W({code:1e3,reason:"All Subscriptions Gone"});U++}x.emit("connecting",P);const G=new k(typeof e=="function"?await e():e,ON);let te,ne;function ce(){isFinite(a)&&a>0&&(clearTimeout(ne),ne=setTimeout(()=>{G.readyState===k.OPEN&&(G.send(Jl({type:cn.Ping})),x.emit("ping",!1,void 0))},a))}S(de=>{A=void 0,clearTimeout(te),clearTimeout(ne),W(de),de instanceof EE&&(G.close(4499,"Terminated"),G.onerror=null,G.onclose=null)}),G.onerror=de=>x.emit("error",de),G.onclose=de=>x.emit("closed",de),G.onopen=async()=>{try{x.emit("opened",G);const de=typeof n=="function"?await n():n;if(G.readyState!==k.OPEN)return;G.send(Jl(de?{type:cn.ConnectionInit,payload:de}:{type:cn.ConnectionInit},y)),isFinite(c)&&c>0&&(te=setTimeout(()=>{G.close(Or.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},c)),ce()}catch(de){x.emit("error",de),G.close(Or.InternalClientError,yE(de instanceof Error?de.message:new Error(de).message,"Internal client error"))}};let ie=!1;G.onmessage=({data:de})=>{try{const pe=RN(de,w);if(x.emit("message",pe),pe.type==="ping"||pe.type==="pong"){x.emit(pe.type,!0,pe.payload),pe.type==="pong"?ce():s||(G.send(Jl(pe.payload?{type:cn.Pong,payload:pe.payload}:{type:cn.Pong})),x.emit("pong",!1,pe.payload));return}if(ie)return;if(pe.type!==cn.ConnectionAck)throw new Error(`First message cannot be of type ${pe.type}`);clearTimeout(te),ie=!0,x.emit("connected",G,pe.payload,P),P=!1,U=0,q([G,new Promise((J,re)=>S(re))])}catch(pe){G.onmessage=null,x.emit("error",pe),G.close(Or.BadResponse,yE(pe instanceof Error?pe.message:new Error(pe).message,"Bad response"))}}})())));F.readyState===k.CLOSING&&await D;let Y=()=>{};const z=new Promise(q=>Y=q);return[F,Y,Promise.race([z.then(()=>{if(!T){const q=()=>F.close(1e3,"Normal Closure");isFinite(o)&&o>0?N=setTimeout(()=>{F.readyState===k.OPEN&&q()},o):q()}}),D])]}function Q(F){if(km(F)&&(PN(F.code)||[Or.InternalServerError,Or.InternalClientError,Or.BadRequest,Or.BadResponse,Or.Unauthorized,Or.SubprotocolNotAcceptable,Or.SubscriberAlreadyExists,Or.TooManyInitialisationRequests].includes(F.code)))throw F;if(V)return!1;if(km(F)&&F.code===1e3)return T>0;if(!u||U>=u||!h(F)||p!=null&&p(F))throw F;return P=!0}r||(async()=>{for(T++;;)try{const[,,F]=await H();await F}catch(F){try{if(!Q(F))return}catch(D){return i==null?void 0:i(D)}}})();function j(F,D){const Y=b(F);let z=!1,q=!1,W=()=>{T--,z=!0};return(async()=>{for(T++;;)try{const[G,te,ne]=await H();if(z)return te();const ce=x.onMessage(Y,ie=>{switch(ie.type){case cn.Next:{D.next(ie.payload);return}case cn.Error:{q=!0,z=!0,D.error(ie.payload),W();return}case cn.Complete:{z=!0,W();return}}});G.send(Jl({id:Y,type:cn.Subscribe,payload:F},y)),W=()=>{!z&&G.readyState===k.OPEN&&G.send(Jl({id:Y,type:cn.Complete},y)),T--,z=!0,te()},await ne.finally(ce);return}catch(G){if(!Q(G))return}})().then(()=>{q||D.complete()}).catch(G=>{D.error(G)}),()=>{z||W()}}return{on:x.on,subscribe:j,iterate(F){const D=[],Y={done:!1,error:null,resolve:()=>{}},z=j(F,{next(W){D.push(W),Y.resolve()},error(W){Y.done=!0,Y.error=W,Y.resolve()},complete(){Y.done=!0,Y.resolve()}}),q=(function(){return NN(this,arguments,function*(){for(;;){for(D.length||(yield os(new Promise(te=>Y.resolve=te)));D.length;)yield yield os(D.shift());if(Y.error)throw Y.error;if(Y.done)return yield os(void 0)}})})();return q.throw=async W=>(Y.done||(Y.done=!0,Y.error=W,Y.resolve()),{done:!0,value:void 0}),q.return=async()=>(z(),{done:!0,value:void 0}),q},async dispose(){if(V=!0,A){const[F]=await A;F.close(1e3,"Normal Closure")}},terminate(){A&&x.emit("closed",new EE)}}}class EE extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function km(t){return da(t)&&"code"in t&&"reason"in t}function PN(t){return[1e3,1001,1006,1005,1012,1013,1014].includes(t)?!1:t>=1e3&&t<=1999}function MN(t){return typeof t=="function"&&"constructor"in t&&"CLOSED"in t&&"CLOSING"in t&&"CONNECTING"in t&&"OPEN"in t}const LN=t=>new kN(IN({connectionParams:{Authorization:am()},url:`${t==null?void 0:t.replace("http","ws")}/graphql`,keepAlive:6e4})),Tm=t=>new gk({link:Tn.from([SN,_N,Tn.split(({query:e})=>{const n=ap(e);return n.kind==="OperationDefinition"&&n.operation==="subscription"},LN(t),CN(t))]),cache:new uk});Tm();const SE=t=>{const[e,n]=R.useState(typeof window<"u"&&window.matchMedia(t).matches);return R.useLayoutEffect(()=>{const r=window.matchMedia(t),i=o=>{n(o.matches)};return r.addEventListener("change",i),()=>r.removeEventListener("change",i)},[t]),e},FN=(t,e)=>{const n=R.useRef(null);return R.useEffect(()=>()=>{n.current&&clearTimeout(n.current)},[]),(...i)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{t(...i)},e)}};var jN=R.useLayoutEffect;function DN(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function VN(){const t=DN();if(t.__xstate__)return t.__xstate__}const UN=t=>{if(typeof window>"u")return;const e=VN();e&&e.register(t)};class wE{constructor(e){this._process=e,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(e){const n={value:e,next:null};if(this._current){this._last.next=n,this._last=n;return}this._current=n,this._last=n,this._active&&this.flush()}flush(){for(;this._current;){const e=this._current;this._process(e.value),this._current=e.next}this._last=null}}const _E=".",zN="",CE="",BN="#",HN="*",xE="xstate.init",WN="xstate.error",Qu="xstate.stop";function GN(t,e){return{type:`xstate.after.${t}.${e}`}}function Om(t,e){return{type:`xstate.done.state.${t}`,output:e}}function YN(t,e){return{type:`xstate.done.actor.${t}`,output:e,actorId:t}}function AE(t,e){return{type:`xstate.error.actor.${t}`,error:e,actorId:t}}function kE(t){return{type:xE,input:t}}function Ii(t){setTimeout(()=>{throw t})}const KN=typeof Symbol=="function"&&Symbol.observable||"@@observable";function TE(t,e){const n=OE(t),r=OE(e);return typeof r=="string"?typeof n=="string"?r===n:!1:typeof n=="string"?n in r:Object.keys(n).every(i=>i in r?TE(n[i],r[i]):!1)}function Rm(t){if(IE(t))return t;const e=[];let n="";for(let r=0;r<t.length;r++){switch(t.charCodeAt(r)){case 92:n+=t[r+1],r++;continue;case 46:e.push(n),n="";continue}n+=t[r]}return e.push(n),e}function OE(t){if(TI(t))return t.value;if(typeof t!="string")return t;const e=Rm(t);return ZN(e)}function ZN(t){if(t.length===1)return t[0];const e={};let n=e;for(let r=0;r<t.length-1;r++)if(r===t.length-2)n[t[r]]=t[r+1];else{const i=n;n={},i[t[r]]=n}return e}function RE(t,e){const n={},r=Object.keys(t);for(let i=0;i<r.length;i++){const o=r[i];n[o]=e(t[o],o,t,i)}return n}function NE(t){return IE(t)?t:[t]}function _o(t){return t===void 0?[]:NE(t)}function Nm(t,e,n,r){return typeof t=="function"?t({context:e,event:n,self:r}):t}function IE(t){return Array.isArray(t)}function QN(t){return t.type.startsWith("xstate.error.actor")}function as(t){return NE(t).map(e=>typeof e>"u"||typeof e=="string"?{target:e}:e)}function PE(t){if(!(t===void 0||t===zN))return _o(t)}function Im(t,e,n){var o,a,s;const r=typeof t=="object",i=r?t:void 0;return{next:(o=r?t.next:t)==null?void 0:o.bind(i),error:(a=r?t.error:e)==null?void 0:a.bind(i),complete:(s=r?t.complete:n)==null?void 0:s.bind(i)}}function ME(t,e){return`${e}.${t}`}function Pm(t,e){const n=e.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!n)return t.implementations.actors[e];const[,r,i]=n,a=t.getStateNodeById(i).config.invoke;return(Array.isArray(a)?a[r]:a).src}function qN(t,e){if(e===t||e===HN)return!0;if(!e.endsWith(".*"))return!1;const n=e.split("."),r=t.split(".");for(let i=0;i<n.length;i++){const o=n[i],a=r[i];if(o==="*")return i===n.length-1;if(o!==a)return!1}return!0}function LE(t,e){return`${t.sessionId}.${e}`}let JN=0;function XN(t,e){const n=new Map,r=new Map,i=new WeakMap,o=new Set,a={},{clock:s,logger:c}=e,u={schedule:(p,m,v,b,y=Math.random().toString(36).slice(2))=>{const w={source:p,target:m,event:v,delay:b,id:y,startedAt:Date.now()},C=LE(p,y);h._snapshot._scheduledEvents[C]=w;const k=s.setTimeout(()=>{delete a[C],delete h._snapshot._scheduledEvents[C],h._relay(p,m,v)},b);a[C]=k},cancel:(p,m)=>{const v=LE(p,m),b=a[v];delete a[v],delete h._snapshot._scheduledEvents[v],b!==void 0&&s.clearTimeout(b)},cancelAll:p=>{for(const m in h._snapshot._scheduledEvents){const v=h._snapshot._scheduledEvents[m];v.source===p&&u.cancel(p,v.id)}}},d=p=>{if(!o.size)return;const m={...p,rootId:t.sessionId};o.forEach(v=>{var b;return(b=v.next)==null?void 0:b.call(v,m)})},h={_snapshot:{_scheduledEvents:((e==null?void 0:e.snapshot)&&e.snapshot.scheduler)??{}},_bookId:()=>`x:${JN++}`,_register:(p,m)=>(n.set(p,m),p),_unregister:p=>{n.delete(p.sessionId);const m=i.get(p);m!==void 0&&(r.delete(m),i.delete(p))},get:p=>r.get(p),getAll:()=>Object.fromEntries(r.entries()),_set:(p,m)=>{const v=r.get(p);if(v&&v!==m)throw new Error(`Actor with system ID '${p}' already exists.`);r.set(p,m),i.set(m,p)},inspect:p=>{const m=Im(p);return o.add(m),{unsubscribe(){o.delete(m)}}},_sendInspectionEvent:d,_relay:(p,m,v)=>{h._sendInspectionEvent({type:"@xstate.event",sourceRef:p,actorRef:m,event:v}),m._send(v)},scheduler:u,getSnapshot:()=>({_scheduledEvents:{...h._snapshot._scheduledEvents}}),start:()=>{const p=h._snapshot._scheduledEvents;h._snapshot._scheduledEvents={};for(const m in p){const{source:v,target:b,event:y,delay:w,id:C}=p[m];u.schedule(v,b,y,w,C)}},_clock:s,_logger:c};return h}let Mm=!1;const Lm=1;let pr=(function(t){return t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped",t})({});const $N={clock:{setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t)},logger:console.log.bind(console),devTools:!1};class eI{constructor(e,n){this.logic=e,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new wE(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=pr.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this.systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];const r={...$N,...n},{clock:i,logger:o,parent:a,syncSnapshot:s,id:c,systemId:u,inspect:d}=r;this.system=a?a.system:XN(this,{clock:i,logger:o}),d&&!a&&this.system.inspect(Im(d)),this.sessionId=this.system._bookId(),this.id=c??this.sessionId,this.logger=(n==null?void 0:n.logger)??this.system._logger,this.clock=(n==null?void 0:n.clock)??this.system._clock,this._parent=a,this._syncSnapshot=s,this.options=r,this.src=r.src??e,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:h=>{this._deferred.push(h)},system:this.system,stopChild:h=>{if(h._parent!==this)throw new Error(`Cannot stop child actor ${h.id} of ${this.id} because it is not a child`);h._stop()},emit:h=>{const p=this.eventListeners.get(h.type),m=this.eventListeners.get("*");if(!p&&!m)return;const v=[...p?p.values():[],...m?m.values():[]];for(const b of v)try{b(h)}catch(y){Ii(y)}},actionExecutor:h=>{const p=()=>{if(this._actorScope.system._sendInspectionEvent({type:"@xstate.action",actorRef:this,action:{type:h.type,params:h.params}}),!h.exec)return;const m=Mm;try{Mm=!0,h.exec(h.info,h.params)}finally{Mm=m}};this._processingStatus===pr.Running?p():this._deferred.push(p)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:"@xstate.actor",actorRef:this}),u&&(this.systemId=u,this.system._set(u,this)),this._initState((n==null?void 0:n.snapshot)??(n==null?void 0:n.state)),u&&this._snapshot.status!=="active"&&this.system._unregister(this)}_initState(e){var n;try{this._snapshot=e?this.logic.restoreSnapshot?this.logic.restoreSnapshot(e,this._actorScope):e:this.logic.getInitialSnapshot(this._actorScope,(n=this.options)==null?void 0:n.input)}catch(r){this._snapshot={status:"error",output:void 0,error:r}}}update(e,n){var i,o;this._snapshot=e;let r;for(;r=this._deferred.shift();)try{r()}catch(a){this._deferred.length=0,this._snapshot={...e,status:"error",error:a}}switch(this._snapshot.status){case"active":for(const a of this.observers)try{(i=a.next)==null||i.call(a,e)}catch(s){Ii(s)}break;case"done":for(const a of this.observers)try{(o=a.next)==null||o.call(a,e)}catch(s){Ii(s)}this._stopProcedure(),this._complete(),this._doneEvent=YN(this.id,this._snapshot.output),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case"error":this._error(this._snapshot.error);break}this.system._sendInspectionEvent({type:"@xstate.snapshot",actorRef:this,event:n,snapshot:e})}subscribe(e,n,r){var o;const i=Im(e,n,r);if(this._processingStatus!==pr.Stopped)this.observers.add(i);else switch(this._snapshot.status){case"done":try{(o=i.complete)==null||o.call(i)}catch(a){Ii(a)}break;case"error":{const a=this._snapshot.error;if(!i.error)Ii(a);else try{i.error(a)}catch(s){Ii(s)}break}}return{unsubscribe:()=>{this.observers.delete(i)}}}on(e,n){let r=this.eventListeners.get(e);r||(r=new Set,this.eventListeners.set(e,r));const i=n.bind(void 0);return r.add(i),{unsubscribe:()=>{r.delete(i)}}}start(){if(this._processingStatus===pr.Running)return this;this._syncSnapshot&&this.subscribe({next:r=>{r.status==="active"&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:r})},error:()=>{}}),this.system._register(this.sessionId,this),this.systemId&&this.system._set(this.systemId,this),this._processingStatus=pr.Running;const e=kE(this.options.input);switch(this.system._sendInspectionEvent({type:"@xstate.event",sourceRef:this._parent,actorRef:this,event:e}),this._snapshot.status){case"done":return this.update(this._snapshot,e),this;case"error":return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(r){return this._snapshot={...this._snapshot,status:"error",error:r},this._error(r),this}return this.update(this._snapshot,e),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(e){let n,r;try{n=this.logic.transition(this._snapshot,e,this._actorScope)}catch(i){r={err:i}}if(r){const{err:i}=r;this._snapshot={...this._snapshot,status:"error",error:i},this._error(i);return}this.update(n,e),e.type===Qu&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===pr.Stopped?this:(this.mailbox.clear(),this._processingStatus===pr.NotStarted?(this._processingStatus=pr.Stopped,this):(this.mailbox.enqueue({type:Qu}),this))}stop(){if(this._parent)throw new Error("A non-root actor cannot be stopped directly.");return this._stop()}_complete(){var e;for(const n of this.observers)try{(e=n.complete)==null||e.call(n)}catch(r){Ii(r)}this.observers.clear(),this.eventListeners.clear()}_reportError(e){if(!this.observers.size){this._parent||Ii(e),this.eventListeners.clear();return}let n=!1;for(const r of this.observers){const i=r.error;n||(n=!i);try{i==null||i(e)}catch(o){Ii(o)}}this.observers.clear(),this.eventListeners.clear(),n&&Ii(e)}_error(e){this._stopProcedure(),this._reportError(e),this._parent&&this.system._relay(this,this._parent,AE(this.id,e))}_stopProcedure(){return this._processingStatus!==pr.Running?this:(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new wE(this._process.bind(this)),this._processingStatus=pr.Stopped,this.system._unregister(this),this)}_send(e){this._processingStatus!==pr.Stopped&&this.mailbox.enqueue(e)}send(e){this.system._relay(void 0,this,e)}attachDevTools(){const{devTools:e}=this.options;e&&(typeof e=="function"?e:UN)(this)}toJSON(){return{xstate$$type:Lm,id:this.id}}getPersistedSnapshot(e){return this.logic.getPersistedSnapshot(this._snapshot,e)}[KN](){return this}getSnapshot(){return this._snapshot}}function ss(t,...[e]){return new eI(t,e)}function tI(t,e,n,r,{sendId:i}){const o=typeof i=="function"?i(n,r):i;return[e,{sendId:o},void 0]}function nI(t,e){t.defer(()=>{t.system.scheduler.cancel(t.self,e.sendId)})}function Fm(t){function e(n,r){}return e.type="xstate.cancel",e.sendId=t,e.resolve=tI,e.execute=nI,e}function rI(t,e,n,r,{id:i,systemId:o,src:a,input:s,syncSnapshot:c}){const u=typeof a=="string"?Pm(e.machine,a):a,d=typeof i=="function"?i(n):i;let h,p;return u&&(p=typeof s=="function"?s({context:e.context,event:n.event,self:t.self}):s,h=ss(u,{id:d,src:a,parent:t.self,syncSnapshot:c,systemId:o,input:p})),[pa(e,{children:{...e.children,[d]:h}}),{id:i,systemId:o,actorRef:h,src:a,input:p},void 0]}function iI(t,{actorRef:e}){e&&t.defer(()=>{e._processingStatus!==pr.Stopped&&e.start()})}function jm(...[t,{id:e,systemId:n,input:r,syncSnapshot:i=!1}={}]){function o(a,s){}return o.type="xstate.spawnChild",o.id=e,o.systemId=n,o.src=t,o.input=r,o.syncSnapshot=i,o.resolve=rI,o.execute=iI,o}function oI(t,e,n,r,{actorRef:i}){const o=typeof i=="function"?i(n,r):i,a=typeof o=="string"?e.children[o]:o;let s=e.children;return a&&(s={...s},delete s[a.id]),[pa(e,{children:s}),a,void 0]}function FE(t,e){const n=e.getSnapshot();if(n&&"children"in n)for(const r of Object.values(n.children))FE(t,r);t.system._unregister(e)}function aI(t,e){if(e){if(FE(t,e),e._processingStatus!==pr.Running){t.stopChild(e);return}t.defer(()=>{t.stopChild(e)})}}function qu(t){function e(n,r){}return e.type="xstate.stopChild",e.actorRef=t,e.resolve=oI,e.execute=aI,e}function Ju(t,e,n,r){const{machine:i}=r,o=typeof t=="function",a=o?t:i.implementations.guards[typeof t=="string"?t:t.type];if(!o&&!a)throw new Error(`Guard '${typeof t=="string"?t:t.type}' is not implemented.'.`);if(typeof a!="function")return Ju(a,e,n,r);const s={context:e,event:n},c=o||typeof t=="string"?void 0:"params"in t?typeof t.params=="function"?t.params({context:e,event:n}):t.params:void 0;return"check"in a?a.check(r,s,a):a(s,c)}function Dm(t){return t.type==="atomic"||t.type==="final"}function ls(t){return Object.values(t.states).filter(e=>e.type!=="history")}function Xl(t,e){const n=[];if(e===t)return n;let r=t.parent;for(;r&&r!==e;)n.push(r),r=r.parent;return n}function Xu(t){const e=new Set(t),n=DE(e);for(const r of e)if(r.type==="compound"&&(!n.get(r)||!n.get(r).length))zE(r).forEach(i=>e.add(i));else if(r.type==="parallel"){for(const i of ls(r))if(i.type!=="history"&&!e.has(i)){const o=zE(i);for(const a of o)e.add(a)}}for(const r of e){let i=r.parent;for(;i;)e.add(i),i=i.parent}return e}function jE(t,e){const n=e.get(t);if(!n)return{};if(t.type==="compound"){const i=n[0];if(i){if(Dm(i))return i.key}else return{}}const r={};for(const i of n)r[i.key]=jE(i,e);return r}function DE(t){const e=new Map;for(const n of t)e.has(n)||e.set(n,[]),n.parent&&(e.has(n.parent)||e.set(n.parent,[]),e.get(n.parent).push(n));return e}function VE(t,e){const n=Xu(e);return jE(t,DE(n))}function Vm(t,e){return e.type==="compound"?ls(e).some(n=>n.type==="final"&&t.has(n)):e.type==="parallel"?ls(e).every(n=>Vm(t,n)):e.type==="final"}const $u=t=>t[0]===BN;function sI(t,e){return t.transitions.get(e)||[...t.transitions.keys()].filter(r=>qN(e,r)).sort((r,i)=>i.length-r.length).flatMap(r=>t.transitions.get(r))}function lI(t){const e=t.config.after;if(!e)return[];const n=i=>{const o=GN(i,t.id),a=o.type;return t.entry.push(Ym(o,{id:a,delay:i})),t.exit.push(Fm(a)),a};return Object.keys(e).flatMap(i=>{const o=e[i],a=typeof o=="string"?{target:o}:o,s=Number.isNaN(+i)?i:+i,c=n(s);return _o(a).map(u=>({...u,event:c,delay:s}))}).map(i=>{const{delay:o}=i;return{...Co(t,i.event,i),delay:o}})}function Co(t,e,n){const r=PE(n.target),i=n.reenter??!1,o=dI(t,r),a={...n,actions:_o(n.actions),guard:n.guard,target:o,source:t,reenter:i,eventType:e,toJSON:()=>({...a,source:`#${t.id}`,target:o?o.map(s=>`#${s.id}`):void 0})};return a}function cI(t){const e=new Map;if(t.config.on)for(const n of Object.keys(t.config.on)){if(n===CE)throw new Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');const r=t.config.on[n];e.set(n,as(r).map(i=>Co(t,n,i)))}if(t.config.onDone){const n=`xstate.done.state.${t.id}`;e.set(n,as(t.config.onDone).map(r=>Co(t,n,r)))}for(const n of t.invoke){if(n.onDone){const r=`xstate.done.actor.${n.id}`;e.set(r,as(n.onDone).map(i=>Co(t,r,i)))}if(n.onError){const r=`xstate.error.actor.${n.id}`;e.set(r,as(n.onError).map(i=>Co(t,r,i)))}if(n.onSnapshot){const r=`xstate.snapshot.${n.id}`;e.set(r,as(n.onSnapshot).map(i=>Co(t,r,i)))}}for(const n of t.after){let r=e.get(n.eventType);r||(r=[],e.set(n.eventType,r)),r.push(n)}return e}function uI(t){const e=[],n=r=>{Object.values(r).forEach(i=>{if(i.config.route&&i.config.id){const o=i.config.id,a=i.config.route.guard,s=(u,d)=>u.event.to!==`#${o}`?!1:a&&typeof a=="function"?a(u,d):!0,c={...i.config.route,guard:s,target:`#${o}`};e.push(Co(t,"xstate.route",c))}i.states&&n(i.states)})};n(t.states),e.length>0&&t.transitions.set("xstate.route",e)}function fI(t,e){const n=typeof e=="string"?t.states[e]:e?t.states[e.target]:void 0;if(!n&&e)throw new Error(`Initial state node "${e}" not found on parent state node #${t.id}`);const r={source:t,actions:!e||typeof e=="string"?[]:_o(e.actions),eventType:null,reenter:!1,target:n?[n]:[],toJSON:()=>({...r,source:`#${t.id}`,target:n?[`#${n.id}`]:[]})};return r}function dI(t,e){if(e!==void 0)return e.map(n=>{if(typeof n!="string")return n;if($u(n))return t.machine.getStateNodeById(n);const r=n[0]===_E;if(r&&!t.parent)return ef(t,n.slice(1));const i=r?t.key+n:n;if(t.parent)try{return ef(t.parent,i)}catch(o){throw new Error(`Invalid transition definition for state node '${t.id}':
|
|
87
|
+
${o.message}`)}else throw new Error(`Invalid target: "${n}" is not a valid target from the root node. Did you mean ".${n}"?`)})}function UE(t){const e=PE(t.config.target);return e?{target:e.map(n=>typeof n=="string"?ef(t.parent,n):n)}:t.parent.initial}function ha(t){return t.type==="history"}function zE(t){const e=BE(t);for(const n of e)for(const r of Xl(n,t))e.add(r);return e}function BE(t){const e=new Set;function n(r){if(!e.has(r)){if(e.add(r),r.type==="compound")n(r.initial.target[0]);else if(r.type==="parallel")for(const i of ls(r))n(i)}}return n(t),e}function cs(t,e){if($u(e))return t.machine.getStateNodeById(e);if(!t.states)throw new Error(`Unable to retrieve child state '${e}' from '${t.id}'; no child states exist.`);const n=t.states[e];if(!n)throw new Error(`Child state '${e}' does not exist on '${t.id}'`);return n}function ef(t,e){if(typeof e=="string"&&$u(e))try{return t.machine.getStateNodeById(e)}catch{}const n=Rm(e).slice();let r=t;for(;n.length;){const i=n.shift();if(!i.length)break;r=cs(r,i)}return r}function tf(t,e){if(typeof e=="string"){const i=t.states[e];if(!i)throw new Error(`State '${e}' does not exist on '${t.id}'`);return[t,i]}const n=Object.keys(e),r=n.map(i=>cs(t,i)).filter(Boolean);return[t.machine.root,t].concat(r,n.reduce((i,o)=>{const a=cs(t,o);if(!a)return i;const s=tf(a,e[o]);return i.concat(s)},[]))}function hI(t,e,n,r){const o=cs(t,e).next(n,r);return!o||!o.length?t.next(n,r):o}function pI(t,e,n,r){const i=Object.keys(e),o=cs(t,i[0]),a=Um(o,e[i[0]],n,r);return!a||!a.length?t.next(n,r):a}function mI(t,e,n,r){const i=[];for(const o of Object.keys(e)){const a=e[o];if(!a)continue;const s=cs(t,o),c=Um(s,a,n,r);c&&i.push(...c)}return i.length?i:t.next(n,r)}function Um(t,e,n,r){return typeof e=="string"?hI(t,e,n,r):Object.keys(e).length===1?pI(t,e,n,r):mI(t,e,n,r)}function gI(t){return Object.keys(t.states).map(e=>t.states[e]).filter(e=>e.type==="history")}function xo(t,e){let n=t;for(;n.parent&&n.parent!==e;)n=n.parent;return n.parent===e}function vI(t,e){const n=new Set(t),r=new Set(e);for(const i of n)if(r.has(i))return!0;for(const i of r)if(n.has(i))return!0;return!1}function HE(t,e,n){const r=new Set;for(const i of t){let o=!1;const a=new Set;for(const s of r)if(vI(Bm([i],e,n),Bm([s],e,n)))if(xo(i.source,s.source))a.add(s);else{o=!0;break}if(!o){for(const s of a)r.delete(s);r.add(i)}}return Array.from(r)}function yI(t){const[e,...n]=t;for(const r of Xl(e,void 0))if(n.every(i=>xo(i,r)))return r}function zm(t,e){if(!t.target)return[];const n=new Set;for(const r of t.target)if(ha(r))if(e[r.id])for(const i of e[r.id])n.add(i);else for(const i of zm(UE(r),e))n.add(i);else n.add(r);return[...n]}function WE(t,e){const n=zm(t,e);if(!n)return;if(!t.reenter&&n.every(i=>i===t.source||xo(i,t.source)))return t.source;const r=yI(n.concat(t.source));if(r)return r;if(!t.reenter)return t.source.machine.root}function Bm(t,e,n){var i;const r=new Set;for(const o of t)if((i=o.target)!=null&&i.length){const a=WE(o,n);o.reenter&&o.source===a&&r.add(a);for(const s of e)xo(s,a)&&r.add(s)}return[...r]}function bI(t,e){if(t.length!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0}function EI(t,e,n,r,i){return Hm([{target:[...BE(t)],source:t,reenter:!0,actions:[],eventType:null,toJSON:null}],e,n,r,!0,i)}function Hm(t,e,n,r,i,o){const a=[];if(!t.length)return[e,a];const s=n.actionExecutor;n.actionExecutor=c=>{a.push(c),s(c)};try{const c=new Set(e._nodes);let u=e.historyValue;const d=HE(t,c,u);let h=e;i||([h,u]=CI(h,r,n,d,c,u,o,n.actionExecutor)),h=fs(h,r,n,d.flatMap(m=>m.actions),o,void 0),h=wI(h,r,n,d,c,o,u,i);const p=[...c];h.status==="done"&&(h=fs(h,r,n,p.sort((m,v)=>v.order-m.order).flatMap(m=>m.exit),o,void 0));try{return u===e.historyValue&&bI(e._nodes,c)?[h,a]:[pa(h,{_nodes:p,historyValue:u}),a]}catch(m){throw m}}finally{n.actionExecutor=s}}function SI(t,e,n,r,i){if(r.output===void 0)return;const o=Om(i.id,i.output!==void 0&&i.parent?Nm(i.output,t.context,e,n.self):void 0);return Nm(r.output,t.context,o,n.self)}function wI(t,e,n,r,i,o,a,s){let c=t;const u=new Set,d=new Set;_I(r,a,d,u),s&&d.add(t.machine.root);const h=new Set;for(const p of[...u].sort((m,v)=>m.order-v.order)){i.add(p);const m=[];m.push(...p.entry);for(const v of p.invoke)m.push(jm(v.src,{...v,syncSnapshot:!!v.onSnapshot}));if(d.has(p)){const v=p.initial.actions;m.push(...v)}if(c=fs(c,e,n,m,o,p.invoke.map(v=>v.id)),p.type==="final"){const v=p.parent;let b=(v==null?void 0:v.type)==="parallel"?v:v==null?void 0:v.parent,y=b||p;for((v==null?void 0:v.type)==="compound"&&o.push(Om(v.id,p.output!==void 0?Nm(p.output,c.context,e,n.self):void 0));(b==null?void 0:b.type)==="parallel"&&!h.has(b)&&Vm(i,b);)h.add(b),o.push(Om(b.id)),y=b,b=b.parent;if(b)continue;c=pa(c,{status:"done",output:SI(c,e,n,c.machine.root,y)})}}return c}function _I(t,e,n,r){for(const i of t){const o=WE(i,e);for(const s of i.target||[])!ha(s)&&(i.source!==s||i.source!==o||i.reenter)&&(r.add(s),n.add(s)),us(s,e,n,r);const a=zm(i,e);for(const s of a){const c=Xl(s,o);(o==null?void 0:o.type)==="parallel"&&c.push(o),GE(r,e,n,c,!i.source.parent&&i.reenter?void 0:o)}}}function us(t,e,n,r){var i;if(ha(t))if(e[t.id]){const o=e[t.id];for(const a of o)r.add(a),us(a,e,n,r);for(const a of o)Wm(a,t.parent,r,e,n)}else{const o=UE(t);for(const a of o.target)r.add(a),o===((i=t.parent)==null?void 0:i.initial)&&n.add(t.parent),us(a,e,n,r);for(const a of o.target)Wm(a,t.parent,r,e,n)}else if(t.type==="compound"){const[o]=t.initial.target;ha(o)||(r.add(o),n.add(o)),us(o,e,n,r),Wm(o,t,r,e,n)}else if(t.type==="parallel")for(const o of ls(t).filter(a=>!ha(a)))[...r].some(a=>xo(a,o))||(ha(o)||(r.add(o),n.add(o)),us(o,e,n,r))}function GE(t,e,n,r,i){for(const o of r)if((!i||xo(o,i))&&t.add(o),o.type==="parallel")for(const a of ls(o).filter(s=>!ha(s)))[...t].some(s=>xo(s,a))||(t.add(a),us(a,e,n,t))}function Wm(t,e,n,r,i){GE(n,r,i,Xl(t,e))}function CI(t,e,n,r,i,o,a,s){let c=t;const u=Bm(r,i,o);u.sort((h,p)=>p.order-h.order);let d;for(const h of u)for(const p of gI(h)){let m;p.history==="deep"?m=v=>Dm(v)&&xo(v,h):m=v=>v.parent===h,d??(d={...o}),d[p.id]=Array.from(i).filter(m)}for(const h of u)c=fs(c,e,n,[...h.exit,...h.invoke.map(p=>qu(p.id))],a,void 0),i.delete(h);return[c,d||o]}function xI(t,e){return t.implementations.actions[e]}function YE(t,e,n,r,i,o){const{machine:a}=t;let s=t;for(const c of r){const u=typeof c=="function",d=u?c:xI(a,typeof c=="string"?c:c.type),h={context:s.context,event:e,self:n.self,system:n.system},p=u||typeof c=="string"?void 0:"params"in c?typeof c.params=="function"?c.params({context:s.context,event:e}):c.params:void 0;if(!d||!("resolve"in d)){n.actionExecutor({type:typeof c=="string"?c:typeof c=="object"?c.type:c.name||"(anonymous)",info:h,params:p,exec:d});continue}const m=d,[v,b,y]=m.resolve(n,s,h,p,d,i);s=v,"retryResolve"in m&&(o==null||o.push([m,b])),"execute"in m&&n.actionExecutor({type:m.type,info:h,params:b,exec:m.execute.bind(null,n,b)}),y&&(s=YE(s,e,n,y,i,o))}return s}function fs(t,e,n,r,i,o){const a=o?[]:void 0,s=YE(t,e,n,r,{internalQueue:i,deferredActorIds:o},a);return a==null||a.forEach(([c,u])=>{c.retryResolve(n,s,u)}),s}function Gm(t,e,n,r){let i=t;const o=[];function a(u,d,h){n.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:n.self,event:d,snapshot:u[0],_transitions:h}),o.push(u)}if(e.type===Qu)return i=pa(KE(i,e,n),{status:"stopped"}),a([i,[]],e,[]),{snapshot:i,microsteps:o};let s=e;if(s.type!==xE){const u=s,d=QN(u),h=ZE(u,i);if(d&&!h.length)return i=pa(t,{status:"error",error:u.error}),a([i,[]],u,[]),{snapshot:i,microsteps:o};const p=Hm(h,t,n,s,!1,r);i=p[0],a(p,u,h)}let c=!0;for(;i.status==="active";){let u=c?AI(i,s):[];const d=u.length?i:void 0;if(!u.length){if(!r.length)break;s=r.shift(),u=ZE(s,i)}const h=Hm(u,i,n,s,!1,r);i=h[0],c=i!==d,a(h,s,u)}return i.status!=="active"&&KE(i,s,n),{snapshot:i,microsteps:o}}function KE(t,e,n){return fs(t,e,n,Object.values(t.children).map(r=>qu(r)),[],void 0)}function ZE(t,e){return e.machine.getTransitionData(e,t)}function AI(t,e){const n=new Set,r=t._nodes.filter(Dm);for(const i of r)e:for(const o of[i].concat(Xl(i,void 0)))if(o.always){for(const a of o.always)if(a.guard===void 0||Ju(a.guard,t.context,e,t)){n.add(a);break e}}return HE(Array.from(n),new Set(t._nodes),t.historyValue)}function kI(t,e){const n=Xu(tf(t,e));return VE(t,[...n])}function TI(t){return!!t&&typeof t=="object"&&"machine"in t&&"value"in t}const OI=function(e){return TE(e,this.value)},RI=function(e){return this.tags.has(e)},NI=function(e){const n=this.machine.getTransitionData(this,e);return!!(n!=null&&n.length)&&n.some(r=>r.target!==void 0||r.actions.length)},II=function(){const{_nodes:e,tags:n,machine:r,getMeta:i,toJSON:o,can:a,hasTag:s,matches:c,...u}=this;return{...u,tags:Array.from(n)}},PI=function(){return this._nodes.reduce((e,n)=>(n.meta!==void 0&&(e[n.id]=n.meta),e),{})};function nf(t,e){return{status:t.status,output:t.output,error:t.error,machine:e,context:t.context,_nodes:t._nodes,value:VE(e.root,t._nodes),tags:new Set(t._nodes.flatMap(n=>n.tags)),children:t.children,historyValue:t.historyValue||{},matches:OI,hasTag:RI,can:NI,getMeta:PI,toJSON:II}}function pa(t,e={}){return nf({...t,...e},t.machine)}function MI(t){if(typeof t!="object"||t===null)return{};const e={};for(const n in t){const r=t[n];Array.isArray(r)&&(e[n]=r.map(i=>({id:i.id})))}return e}function LI(t,e){const{_nodes:n,tags:r,machine:i,children:o,context:a,can:s,hasTag:c,matches:u,getMeta:d,toJSON:h,...p}=t,m={};for(const b in o){const y=o[b];m[b]={snapshot:y.getPersistedSnapshot(e),src:y.src,systemId:y.systemId,syncSnapshot:y._syncSnapshot}}return{...p,context:QE(a),children:m,historyValue:MI(p.historyValue)}}function QE(t){let e;for(const n in t){const r=t[n];if(r&&typeof r=="object")if("sessionId"in r&&"send"in r&&"ref"in r)e??(e=Array.isArray(t)?t.slice():{...t}),e[n]={xstate$$type:Lm,id:r.id};else{const i=QE(r);i!==r&&(e??(e=Array.isArray(t)?t.slice():{...t}),e[n]=i)}}return e??t}function FI(t,e,n,r,{event:i,id:o,delay:a},{internalQueue:s}){const c=e.machine.implementations.delays;if(typeof i=="string")throw new Error(`Only event objects may be used with raise; use raise({ type: "${i}" }) instead`);const u=typeof i=="function"?i(n,r):i;let d;if(typeof a=="string"){const h=c&&c[a];d=typeof h=="function"?h(n,r):h}else d=typeof a=="function"?a(n,r):a;return typeof d!="number"&&s.push(u),[e,{event:u,id:o,delay:d},void 0]}function jI(t,e){const{event:n,delay:r,id:i}=e;if(typeof r=="number"){t.defer(()=>{const o=t.self;t.system.scheduler.schedule(o,o,n,r,i)});return}}function Ym(t,e){function n(r,i){}return n.type="xstate.raise",n.event=t,n.id=e==null?void 0:e.id,n.delay=e==null?void 0:e.delay,n.resolve=FI,n.execute=jI,n}const qE="xstate.promise.resolve",JE="xstate.promise.reject",$l=new WeakMap;function ec(t){return{config:t,transition:(n,r,i)=>{var o;if(n.status!=="active")return n;switch(r.type){case qE:{const a=r.data;return{...n,status:"done",output:a,input:void 0}}case JE:return{...n,status:"error",error:r.data,input:void 0};case Qu:return(o=$l.get(i.self))==null||o.abort(),$l.delete(i.self),{...n,status:"stopped",input:void 0};default:return n}},start:(n,{self:r,system:i,emit:o})=>{if(n.status!=="active")return;const a=new AbortController;$l.set(r,a),Promise.resolve(t({input:n.input,system:i,self:r,signal:a.signal,emit:o})).then(c=>{r.getSnapshot().status==="active"&&($l.delete(r),i._relay(r,r,{type:qE,data:c}))},c=>{r.getSnapshot().status==="active"&&($l.delete(r),i._relay(r,r,{type:JE,data:c}))})},getInitialSnapshot:(n,r)=>({status:"active",output:void 0,error:void 0,input:r}),getPersistedSnapshot:n=>n,restoreSnapshot:n=>n}}function DI(t,{machine:e,context:n},r,i){const o=(a,s)=>{if(typeof a=="string"){const c=Pm(e,a);if(!c)throw new Error(`Actor logic '${a}' not implemented in machine '${e.id}'`);const u=ss(c,{id:s==null?void 0:s.id,parent:t.self,syncSnapshot:s==null?void 0:s.syncSnapshot,input:typeof(s==null?void 0:s.input)=="function"?s.input({context:n,event:r,self:t.self}):s==null?void 0:s.input,src:a,systemId:s==null?void 0:s.systemId});return i[u.id]=u,u}else return ss(a,{id:s==null?void 0:s.id,parent:t.self,syncSnapshot:s==null?void 0:s.syncSnapshot,input:s==null?void 0:s.input,src:a,systemId:s==null?void 0:s.systemId})};return(a,s)=>{const c=o(a,s);return i[c.id]=c,t.defer(()=>{c._processingStatus!==pr.Stopped&&c.start()}),c}}function VI(t,e,n,r,{assignment:i}){if(!e.context)throw new Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");const o={},a={context:e.context,event:n.event,spawn:DI(t,e,n.event,o),self:t.self,system:t.system};let s={};if(typeof i=="function")s=i(a,r);else for(const u of Object.keys(i)){const d=i[u];s[u]=typeof d=="function"?d(a,r):d}const c=Object.assign({},e.context,s);return[pa(e,{context:c,children:Object.keys(o).length?{...e.children,...o}:e.children}),void 0,void 0]}function We(t){function e(n,r){}return e.type="xstate.assign",e.assignment=t,e.resolve=VI,e}const XE=new WeakMap;function ds(t,e,n){let r=XE.get(t);return r?e in r||(r[e]=n()):(r={[e]:n()},XE.set(t,r)),r[e]}const UI={},tc=t=>typeof t=="string"?{type:t}:typeof t=="function"?"resolve"in t?{type:t.type}:{type:t.name}:t;class rf{constructor(e,n){if(this.config=e,this.key=void 0,this.id=void 0,this.type=void 0,this.path=void 0,this.states=void 0,this.history=void 0,this.entry=void 0,this.exit=void 0,this.parent=void 0,this.machine=void 0,this.meta=void 0,this.output=void 0,this.order=-1,this.description=void 0,this.tags=[],this.transitions=void 0,this.always=void 0,this.parent=n._parent,this.key=n._key,this.machine=n._machine,this.path=this.parent?this.parent.path.concat(this.key):[],this.id=this.config.id||[this.machine.id,...this.path].join(_E),this.type=this.config.type||(this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.description=this.config.description,this.order=this.machine.idMap.size,this.machine.idMap.set(this.id,this),this.states=this.config.states?RE(this.config.states,(r,i)=>new rf(r,{_parent:this,_key:i,_machine:this.machine})):UI,this.type==="compound"&&!this.config.initial)throw new Error(`No initial state specified for compound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);this.history=this.config.history===!0?"shallow":this.config.history||!1,this.entry=_o(this.config.entry).slice(),this.exit=_o(this.config.exit).slice(),this.meta=this.config.meta,this.output=this.type==="final"||!this.parent?this.config.output:void 0,this.tags=_o(e.tags).slice()}_initialize(){this.transitions=cI(this),this.config.always&&(this.always=as(this.config.always).map(e=>Co(this,CE,e))),Object.keys(this.states).forEach(e=>{this.states[e]._initialize()})}get definition(){return{id:this.id,key:this.key,version:this.machine.version,type:this.type,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(tc),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(e=>`#${e.id}`),source:`#${this.id}`,actions:this.initial.actions.map(tc),eventType:null})}:void 0,history:this.history,states:RE(this.states,e=>e.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(e=>({...e,actions:e.actions.map(tc)})),entry:this.entry.map(tc),exit:this.exit.map(tc),meta:this.meta,order:this.order||-1,output:this.output,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get invoke(){return ds(this,"invoke",()=>_o(this.config.invoke).map((e,n)=>{const{src:r,systemId:i}=e,o=e.id??ME(this.id,n),a=typeof r=="string"?r:`xstate.invoke.${ME(this.id,n)}`;return{...e,src:a,id:o,systemId:i,toJSON(){const{onDone:s,onError:c,...u}=e;return{...u,type:"xstate.invoke",src:a,id:o}}}}))}get on(){return ds(this,"on",()=>[...this.transitions].flatMap(([n,r])=>r.map(i=>[n,i])).reduce((n,[r,i])=>(n[r]=n[r]||[],n[r].push(i),n),{}))}get after(){return ds(this,"delayedTransitions",()=>lI(this))}get initial(){return ds(this,"initial",()=>fI(this,this.config.initial))}next(e,n){const r=n.type,i=[];let o;const a=ds(this,`candidates-${r}`,()=>sI(this,r));for(const s of a){const{guard:c}=s,u=e.context;let d=!1;try{d=!c||Ju(c,u,n,e)}catch(h){const p=typeof c=="string"?c:typeof c=="object"?c.type:void 0;throw new Error(`Unable to evaluate guard ${p?`'${p}' `:""}in transition for event '${r}' in state node '${this.id}':
|
|
88
|
+
${h.message}`)}if(d){i.push(...s.actions),o=s;break}}return o?[o]:void 0}get events(){return ds(this,"events",()=>{const{states:e}=this,n=new Set(this.ownEvents);if(e)for(const r of Object.keys(e)){const i=e[r];if(i.states)for(const o of i.events)n.add(`${o}`)}return Array.from(n)})}get ownEvents(){const e=Object.keys(Object.fromEntries(this.transitions)),n=new Set(e.filter(r=>this.transitions.get(r).some(i=>!(!i.target&&!i.actions.length&&!i.reenter))));return Array.from(n)}}const zI="#";class Km{constructor(e,n){this.config=e,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.__xstatenode=!0,this.idMap=new Map,this.root=void 0,this.id=void 0,this.states=void 0,this.events=void 0,this.id=e.id||"(machine)",this.implementations={actors:(n==null?void 0:n.actors)??{},actions:(n==null?void 0:n.actions)??{},delays:(n==null?void 0:n.delays)??{},guards:(n==null?void 0:n.guards)??{}},this.version=this.config.version,this.schemas=this.config.schemas,this.transition=this.transition.bind(this),this.getInitialSnapshot=this.getInitialSnapshot.bind(this),this.getPersistedSnapshot=this.getPersistedSnapshot.bind(this),this.restoreSnapshot=this.restoreSnapshot.bind(this),this.start=this.start.bind(this),this.root=new rf(e,{_key:this.id,_machine:this}),this.root._initialize(),uI(this.root),this.states=this.root.states,this.events=this.root.events}provide(e){const{actions:n,guards:r,actors:i,delays:o}=this.implementations;return new Km(this.config,{actions:{...n,...e.actions},guards:{...r,...e.guards},actors:{...i,...e.actors},delays:{...o,...e.delays}})}resolveState(e){const n=kI(this.root,e.value),r=Xu(tf(this.root,n));return nf({_nodes:[...r],context:e.context||{},children:{},status:Vm(r,this.root)?"done":e.status||"active",output:e.output,error:e.error,historyValue:e.historyValue},this)}transition(e,n,r){return Gm(e,n,r,[]).snapshot}microstep(e,n,r){return Gm(e,n,r,[]).microsteps.map(([i])=>i)}getTransitionData(e,n){return Um(this.root,e.value,e,n)||[]}_getPreInitialState(e,n,r){const{context:i}=this.config,o=nf({context:typeof i!="function"&&i?i:{},_nodes:[this.root],children:{},status:"active"},this);return typeof i=="function"?fs(o,n,e,[We(({spawn:s,event:c,self:u})=>i({spawn:s,input:c.input,self:u}))],r,void 0):o}getInitialSnapshot(e,n){const r=kE(n),i=[],o=this._getPreInitialState(e,r,i),[a]=EI(this.root,o,e,r,i),{snapshot:s}=Gm(a,r,e,i);return s}start(e){Object.values(e.children).forEach(n=>{n.getSnapshot().status==="active"&&n.start()})}getStateNodeById(e){const n=Rm(e),r=n.slice(1),i=$u(n[0])?n[0].slice(zI.length):n[0],o=this.idMap.get(i);if(!o)throw new Error(`Child state node '#${i}' does not exist on machine '${this.id}'`);return ef(o,r)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(e,n){return LI(e,n)}restoreSnapshot(e,n){const r={},i=e.children;Object.keys(i).forEach(h=>{const p=i[h],m=p.snapshot,v=p.src,b=typeof v=="string"?Pm(this,v):v;if(!b)return;const y=ss(b,{id:h,parent:n.self,syncSnapshot:p.syncSnapshot,snapshot:m,src:v,systemId:p.systemId});r[h]=y});function o(h,p){if(p instanceof rf)return p;try{return h.machine.getStateNodeById(p.id)}catch{}}function a(h,p){if(!p||typeof p!="object")return{};const m={};for(const v in p){const b=p[v];for(const y of b){const w=o(h,y);w&&(m[v]??(m[v]=[]),m[v].push(w))}}return m}const s=a(this.root,e.historyValue),c=nf({...e,children:r,_nodes:Array.from(Xu(tf(this.root,e.value))),historyValue:s},this),u=new Set;function d(h,p){if(!u.has(h)){u.add(h);for(const m in h){const v=h[m];if(v&&typeof v=="object"){if("xstate$$type"in v&&v.xstate$$type===Lm){h[m]=p[v.id];continue}d(v,p)}}}}return d(c.context,r),c}}function BI(t,e,n,r,{event:i}){const o=typeof i=="function"?i(n,r):i;return[e,{event:o},void 0]}function HI(t,{event:e}){t.defer(()=>t.emit(e))}function $E(t){function e(n,r){}return e.type="xstate.emit",e.event=t,e.resolve=BI,e.execute=HI,e}let Zm=(function(t){return t.Parent="#_parent",t.Internal="#_internal",t})({});function WI(t,e,n,r,{to:i,event:o,id:a,delay:s},c){var v;const u=e.machine.implementations.delays;if(typeof o=="string")throw new Error(`Only event objects may be used with sendTo; use sendTo({ type: "${o}" }) instead`);const d=typeof o=="function"?o(n,r):o;let h;if(typeof s=="string"){const b=u&&u[s];h=typeof b=="function"?b(n,r):b}else h=typeof s=="function"?s(n,r):s;const p=typeof i=="function"?i(n,r):i;let m;if(typeof p=="string"){if(p===Zm.Parent?m=t.self._parent:p===Zm.Internal?m=t.self:p.startsWith("#_")?m=e.children[p.slice(2)]:m=(v=c.deferredActorIds)!=null&&v.includes(p)?p:e.children[p],!m)throw new Error(`Unable to send event to actor '${p}' from machine '${e.machine.id}'.`)}else m=p||t.self;return[e,{to:m,targetId:typeof p=="string"?p:void 0,event:d,id:a,delay:h},void 0]}function GI(t,e,n){typeof n.to=="string"&&(n.to=e.children[n.to])}function YI(t,e){t.defer(()=>{const{to:n,event:r,delay:i,id:o}=e;if(typeof i=="number"){t.system.scheduler.schedule(t.self,n,r,i,o);return}t.system._relay(t.self,n,r.type===WN?AE(t.self.id,r.data):r)})}function Qm(t,e,n){function r(i,o){}return r.type="xstate.sendTo",r.to=t,r.event=e,r.id=n==null?void 0:n.id,r.delay=n==null?void 0:n.delay,r.resolve=WI,r.retryResolve=GI,r.execute=YI,r}function KI(t,e){return Qm(Zm.Parent,t,e)}function ZI(t,e,n,r,{collect:i}){const o=[],a=function(c){o.push(c)};return a.assign=(...s)=>{o.push(We(...s))},a.cancel=(...s)=>{o.push(Fm(...s))},a.raise=(...s)=>{o.push(Ym(...s))},a.sendTo=(...s)=>{o.push(Qm(...s))},a.sendParent=(...s)=>{o.push(KI(...s))},a.spawnChild=(...s)=>{o.push(jm(...s))},a.stopChild=(...s)=>{o.push(qu(...s))},a.emit=(...s)=>{o.push($E(...s))},i({context:n.context,event:n.event,enqueue:a,check:s=>Ju(s,e.context,n.event,e),self:t.self,system:t.system},r),[e,void 0,o]}function QI(t){function e(n,r){}return e.type="xstate.enqueueActions",e.collect=t,e.resolve=ZI,e}function qI(t,e,n,r,{value:i,label:o}){return[e,{value:typeof i=="function"?i(n,r):i,label:o},void 0]}function JI({logger:t},{value:e,label:n}){n?t(n,e):t(e)}function XI(t=({context:n,event:r})=>({context:n,event:r}),e){function n(r,i){}return n.type="xstate.log",n.value=t,n.label=e,n.resolve=qI,n.execute=JI,n}function $I(t,e){return new Km(t,e)}function qm({schemas:t,actors:e,actions:n,guards:r,delays:i}){return{assign:We,sendTo:Qm,raise:Ym,log:XI,cancel:Fm,stopChild:qu,enqueueActions:QI,emit:$E,spawnChild:jm,createStateConfig:o=>o,createAction:o=>o,createMachine:o=>$I({...o,schemas:t},{actors:e,actions:n,guards:r,delays:i}),extend:o=>qm({schemas:t,actors:e,actions:{...n,...o.actions},guards:{...r,...o.guards},delays:{...i,...o.delays}})}}var Jm={exports:{}},Xm={exports:{}},$m={},eS;function eP(){if(eS)return $m;eS=1;/**
|
|
89
|
+
* @license React
|
|
90
|
+
* use-sync-external-store-shim.development.js
|
|
91
|
+
*
|
|
92
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the MIT license found in the
|
|
95
|
+
* LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/return(function(){function t(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}function e(m,v){d||i.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var b=v();if(!h){var y=v();o(b,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),h=!0)}y=a({inst:{value:b,getSnapshot:v}});var w=y[0].inst,C=y[1];return c(function(){w.value=b,w.getSnapshot=v,n(w)&&C({inst:w})},[m,b,v]),s(function(){return n(w)&&C({inst:w}),m(function(){n(w)&&C({inst:w})})},[m]),u(b),b}function n(m){var v=m.getSnapshot;m=m.value;try{var b=v();return!o(m,b)}catch{return!0}}function r(m,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=R,o=typeof Object.is=="function"?Object.is:t,a=i.useState,s=i.useEffect,c=i.useLayoutEffect,u=i.useDebugValue,d=!1,h=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:e;$m.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),$m}var tS;function nS(){return tS||(tS=1,Xm.exports=eP()),Xm.exports}var e1={},rS;function tP(){if(rS)return e1;rS=1;/**
|
|
97
|
+
* @license React
|
|
98
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
99
|
+
*
|
|
100
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the MIT license found in the
|
|
103
|
+
* LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/return(function(){function t(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=R,n=nS(),r=typeof Object.is=="function"?Object.is:t,i=n.useSyncExternalStore,o=e.useRef,a=e.useEffect,s=e.useMemo,c=e.useDebugValue;e1.useSyncExternalStoreWithSelector=function(u,d,h,p,m){var v=o(null);if(v.current===null){var b={hasValue:!1,value:null};v.current=b}else b=v.current;v=s(function(){function w(A){if(!C){if(C=!0,k=A,A=p(A),m!==void 0&&b.hasValue){var T=b.value;if(m(T,A))return x=T}return x=A}if(T=x,r(k,A))return T;var N=p(A);return m!==void 0&&m(T,N)?(k=A,T):(k=A,x=N)}var C=!1,k,x,S=h===void 0?null:h;return[function(){return w(d())},S===null?void 0:function(){return w(S())}]},[d,h,p,m]);var y=i(u,v[0],v[1]);return a(function(){b.hasValue=!0,b.value=y},[y]),c(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),e1}var iS;function nP(){return iS||(iS=1,Jm.exports=tP()),Jm.exports}nP();var rP=nS();const oS=(t,e)=>{e(t);const n=t.getSnapshot().children;n&&Object.values(n).forEach(r=>{oS(r,e)})};function iP(t){var r,i;const e=[];oS(t,o=>{e.push([o,o.getSnapshot()]),o.observers=new Set});const n=(i=(r=t.system).getSnapshot)==null?void 0:i.call(r);t.stop(),t.system._snapshot=n,e.forEach(([o,a])=>{o._processingStatus=0,o._snapshot=a})}function oP(t,...[e]){let[[n,r],i]=R.useState(()=>{const o=ss(t,e);return[t.config,o]});if(t.config!==n){const o=ss(t,{...e,snapshot:r.getPersistedSnapshot({__unsafeAllowInlineActors:!0})});i([t.config,o]),r=o}return jN(()=>{r.logic.implementations=t.implementations}),r}function aP(t,...[e]){const n=oP(t,e),r=R.useCallback(()=>n.getSnapshot(),[n]),i=R.useCallback(s=>{const{unsubscribe:c}=n.subscribe({next:s,error:s});return c},[n]),o=rP.useSyncExternalStore(i,r,r),a="status"in o?o:void 0;if((a==null?void 0:a.status)==="error")throw a.error;return R.useEffect(()=>(n.start(),()=>{iP(n)}),[n]),[o,n.send,n]}function aS(t,...[e]){return aP(t,e)}var t1={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_CONVERSATIONS_FOR_PORTAL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getConversationsForPortal"},arguments:[{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"org_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_conversation_activity"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_customer_reply"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_ai_response"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_auto_response"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"analytics"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"seen_at"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"delivered_at"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"created_at"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"resolved_at"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"organization_brand"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"org_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sub_domain"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatar_file"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"visibility"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"setting"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"visibility"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"assignee"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatar_file"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"visibility"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"meta_data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filtered_rows"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_rows"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:1226}};t1.loc.source={body:`query GET_CONVERSATIONS_FOR_PORTAL($optionData: OptionDataType!) {
|
|
105
|
+
getConversationsForPortal(optionData: $optionData) {
|
|
106
|
+
data {
|
|
107
|
+
id
|
|
108
|
+
status
|
|
109
|
+
org_id
|
|
110
|
+
last_conversation_activity {
|
|
111
|
+
message
|
|
112
|
+
id
|
|
113
|
+
is_customer_reply
|
|
114
|
+
is_ai_response
|
|
115
|
+
is_auto_response
|
|
116
|
+
user {
|
|
117
|
+
email
|
|
118
|
+
id
|
|
119
|
+
first_name
|
|
120
|
+
last_name
|
|
121
|
+
}
|
|
122
|
+
analytics {
|
|
123
|
+
seen_at
|
|
124
|
+
id
|
|
125
|
+
delivered_at
|
|
126
|
+
status
|
|
127
|
+
}
|
|
128
|
+
created_at
|
|
129
|
+
}
|
|
130
|
+
resolved_at
|
|
131
|
+
organization_brand {
|
|
132
|
+
id
|
|
133
|
+
org_id
|
|
134
|
+
name
|
|
135
|
+
sub_domain
|
|
136
|
+
author {
|
|
137
|
+
first_name
|
|
138
|
+
last_name
|
|
139
|
+
email
|
|
140
|
+
id
|
|
141
|
+
avatar_file {
|
|
142
|
+
key
|
|
143
|
+
id
|
|
144
|
+
visibility
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
setting {
|
|
148
|
+
icon {
|
|
149
|
+
key
|
|
150
|
+
id
|
|
151
|
+
visibility
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
assignee {
|
|
156
|
+
id
|
|
157
|
+
user {
|
|
158
|
+
first_name
|
|
159
|
+
last_name
|
|
160
|
+
email
|
|
161
|
+
avatar_file {
|
|
162
|
+
key
|
|
163
|
+
id
|
|
164
|
+
visibility
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
type
|
|
169
|
+
}
|
|
170
|
+
meta_data {
|
|
171
|
+
filtered_rows
|
|
172
|
+
total_rows
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function of(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){of(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){of(r,e)}),t.definitions&&t.definitions.forEach(function(r){of(r,e)})}var n1={};(function(){t1.definitions.forEach(function(e){if(e.name){var n=new Set;of(e,n),n1[e.name.value]=n}})})();function sS(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function sP(t,e){var n={kind:t.kind,definitions:[sS(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=n1[e]||new Set,i=new Set,o=new Set;for(r.forEach(function(s){o.add(s)});o.size>0;){var a=o;o=new Set,a.forEach(function(s){if(!i.has(s)){i.add(s);var c=n1[s]||new Set;c.forEach(function(u){o.add(u)})}})}return i.forEach(function(s){var c=sS(t,s);c&&n.definitions.push(c)}),n}const lP=sP(t1,"GET_CONVERSATIONS_FOR_PORTAL");var r1={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"CONVERSATION_REALTIME_LIST_UPDATED"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"conversationRealtimeListUpdated"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"conversation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"org_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"assignee"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatar_file"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"visibility"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"contact_state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"contact_state_updated_at"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"priority"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"channel"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"last_conversation_activity"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_customer_reply"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_auto_response"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"analytics"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"seen_at"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"delivered_at"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"created_at"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"organization_brand"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"org_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sub_domain"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatar_file"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"visibility"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"setting"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"visibility"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"source"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_spam"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"view_role"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updated_at"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1274}};r1.loc.source={body:`subscription CONVERSATION_REALTIME_LIST_UPDATED {
|
|
177
|
+
conversationRealtimeListUpdated {
|
|
178
|
+
conversation {
|
|
179
|
+
id
|
|
180
|
+
status
|
|
181
|
+
org_id
|
|
182
|
+
assignee {
|
|
183
|
+
id
|
|
184
|
+
user {
|
|
185
|
+
first_name
|
|
186
|
+
last_name
|
|
187
|
+
email
|
|
188
|
+
avatar_file {
|
|
189
|
+
key
|
|
190
|
+
id
|
|
191
|
+
visibility
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
contact_state
|
|
196
|
+
contact_state_updated_at
|
|
197
|
+
status
|
|
198
|
+
priority
|
|
199
|
+
channel {
|
|
200
|
+
name
|
|
201
|
+
}
|
|
202
|
+
last_conversation_activity {
|
|
203
|
+
message
|
|
204
|
+
id
|
|
205
|
+
is_customer_reply
|
|
206
|
+
is_auto_response
|
|
207
|
+
user {
|
|
208
|
+
email
|
|
209
|
+
id
|
|
210
|
+
first_name
|
|
211
|
+
last_name
|
|
212
|
+
}
|
|
213
|
+
analytics {
|
|
214
|
+
seen_at
|
|
215
|
+
id
|
|
216
|
+
delivered_at
|
|
217
|
+
status
|
|
218
|
+
}
|
|
219
|
+
created_at
|
|
220
|
+
}
|
|
221
|
+
organization_brand {
|
|
222
|
+
id
|
|
223
|
+
org_id
|
|
224
|
+
name
|
|
225
|
+
sub_domain
|
|
226
|
+
author {
|
|
227
|
+
first_name
|
|
228
|
+
last_name
|
|
229
|
+
email
|
|
230
|
+
id
|
|
231
|
+
avatar_file {
|
|
232
|
+
key
|
|
233
|
+
id
|
|
234
|
+
visibility
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
setting {
|
|
238
|
+
icon {
|
|
239
|
+
key
|
|
240
|
+
id
|
|
241
|
+
visibility
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
source
|
|
246
|
+
is_spam
|
|
247
|
+
view_role
|
|
248
|
+
updated_at
|
|
249
|
+
}
|
|
250
|
+
status
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function af(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){af(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){af(r,e)}),t.definitions&&t.definitions.forEach(function(r){af(r,e)})}var i1={};(function(){r1.definitions.forEach(function(e){if(e.name){var n=new Set;af(e,n),i1[e.name.value]=n}})})();function lS(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function cP(t,e){var n={kind:t.kind,definitions:[lS(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=i1[e]||new Set,i=new Set,o=new Set;for(r.forEach(function(s){o.add(s)});o.size>0;){var a=o;o=new Set,a.forEach(function(s){if(!i.has(s)){i.add(s);var c=i1[s]||new Set;c.forEach(function(u){o.add(u)})}})}return i.forEach(function(s){var c=lS(t,s);c&&n.definitions.push(c)}),n}const uP=cP(r1,"CONVERSATION_REALTIME_LIST_UPDATED");var o1={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UPDATE_CONVERSATION_ACTIVITY_ANALYTICS"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConversationActivityAnalyticUpdateInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateConversationActivityAnalytics"},arguments:[{kind:"Argument",name:{kind:"Name",value:"inputData"},value:{kind:"Variable",name:{kind:"Name",value:"inputData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:199}};o1.loc.source={body:`mutation UPDATE_CONVERSATION_ACTIVITY_ANALYTICS(
|
|
254
|
+
$inputData: ConversationActivityAnalyticUpdateInputType!
|
|
255
|
+
) {
|
|
256
|
+
updateConversationActivityAnalytics(inputData: $inputData) {
|
|
257
|
+
id
|
|
258
|
+
status
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function sf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){sf(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){sf(r,e)}),t.definitions&&t.definitions.forEach(function(r){sf(r,e)})}var a1={};(function(){o1.definitions.forEach(function(e){if(e.name){var n=new Set;sf(e,n),a1[e.name.value]=n}})})();function cS(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function fP(t,e){var n={kind:t.kind,definitions:[cS(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=a1[e]||new Set,i=new Set,o=new Set;for(r.forEach(function(s){o.add(s)});o.size>0;){var a=o;o=new Set,a.forEach(function(s){if(!i.has(s)){i.add(s);var c=a1[s]||new Set;c.forEach(function(u){o.add(u)})}})}return i.forEach(function(s){var c=cS(t,s);c&&n.definitions.push(c)}),n}const s1=fP(o1,"UPDATE_CONVERSATION_ACTIVITY_ANALYTICS"),an={FETCH:"FETCH",FETCH_MORE:"FETCH_MORE",REFRESH:"REFRESH",SELECT_CONVERSATION:"SELECT_CONVERSATION",DESELECT_CONVERSATION:"DESELECT_CONVERSATION",CONVERSATION_CREATED:"CONVERSATION_CREATED",CONVERSATION_UPDATED:"CONVERSATION_UPDATED",CONVERSATION_DELETED:"CONVERSATION_DELETED"},Ft={LOAD_CONVERSATION:"LOAD_CONVERSATION",SEND_MESSAGE:"SEND_MESSAGE",UPLOAD_FILE:"UPLOAD_FILE",UPDATE_INPUT:"UPDATE_INPUT",CLEAR_INPUT:"CLEAR_INPUT",MESSAGE_RECEIVED:"MESSAGE_RECEIVED",UPDATE_ANALYTICS:"UPDATE_ANALYTICS",MARK_AS_SEEN:"MARK_AS_SEEN",MARK_AS_DELIVERED:"MARK_AS_DELIVERED",CONVERSATION_CLOSED:"CONVERSATION_CLOSED",CREATE_NEW:"CREATE_NEW",FETCH_MORE_MESSAGES:"FETCH_MORE_MESSAGES"},dP=()=>({conversationsData:[],currentConversationID:null,loadingStates:{initialLoading:!0,fetchMoreLoading:!1},metaData:{filtered_rows:0,total_rows:1},optionData:{limit:50,offset:0,order:[["created_at","desc"]]},isChatHistory:!1,error:null}),hP=()=>({conversationData:{},messages:[],loadingStates:{loadingConversation:!1,loadingActivities:!1,sending:!1,uploading:!1},optionData:{limit:50,offset:0},metaData:{},inputFieldState:{contact_person_name:"",contact_person_email:"",ticket_title:"",ticket_activity:"",ticket_activity_files:[]},unreadMessages:[],error:null,isInitialLoad:!0,lastPlayedMessageId:null,isAIThinking:!1}),pP=async()=>{var e;const t=await rN().get("/organization-brand/widget");return((e=t==null?void 0:t.data)==null?void 0:e.data)||{}},mP=ec(async({input:t})=>{const{apolloClient:e,query:n,optionData:r}=t,{data:i,error:o}=await e.query({query:n,variables:{optionData:r},errorPolicy:"all",fetchPolicy:"no-cache"});if(o)throw o;return(i==null?void 0:i.getConversationsForPortal)||{data:[],meta_data:{}}}),gP=ec(async({input:t})=>{const{apolloClient:e,query:n,conversationId:r}=t;try{const{data:i,error:o}=await e.query({query:n,variables:{queryData:{entity_id_or_serial:r}},errorPolicy:"all",fetchPolicy:"no-cache"});if(o)throw o;return(i==null?void 0:i.getAConversationForPortal)||null}catch(i){throw Wr.remove("easydesk_chat_widget_conversation_id"),i}}),vP=ec(async({input:t})=>{const{apolloClient:e,query:n,conversationId:r,optionData:i}=t,{data:o,error:a}=await e.query({query:n,variables:{queryData:{conversation_id:r},optionData:{...i,order:[["created_at","desc"]]}},errorPolicy:"all",fetchPolicy:"no-cache"});if(a)throw a;const s=(o==null?void 0:o.getConversationActivitiesForPortal)||{data:[],meta_data:{}};return{...s,data:s.data.reverse()}}),yP=ec(async({input:t})=>{const{apolloClient:e,mutation:n,conversationId:r,messageData:i}=t,{data:o,errors:a}=await e.mutate({mutation:n,variables:{inputData:{conversation_id:r,...i}}});if(a)throw a[0];return(o==null?void 0:o.createAConversationActivityForPortal)||null}),bP=ec(async({input:t})=>{const{apolloClient:e,mutation:n,inputData:r}=t,{data:i,errors:o}=await e.mutate({mutation:n,variables:{inputData:r}});if(o)throw o[0];return(i==null?void 0:i.updateConversationActivityAnalytics)||[]}),uS=({context:t})=>{var e;return((e=t.userData)==null?void 0:e.isAuthenticated)===!0},EP=({context:t})=>{var r;const{metaData:e}=t;return(((r=t.conversationsData)==null?void 0:r.length)||0)<((e==null?void 0:e.total_rows)||0)},SP=({context:t})=>{var r;const{metaData:e}=t;return(((r=t.messages)==null?void 0:r.length)||0)<((e==null?void 0:e.total_rows)||0)},wP=({context:t})=>t.conversationData&&Object.keys(t.conversationData).length>0,_P=({event:t})=>{var e;return((e=t.data)==null?void 0:e.is_conversation_deleted)===!0},CP=({context:t})=>{var e;return((e=t.optionData)==null?void 0:e.offset)>0},xP=({event:t})=>{var n,r,i;const e=((i=(r=(n=t.data)==null?void 0:n.conversation_activity)==null?void 0:r.log)==null?void 0:i.new_value)||"";return["spam","resolved","closed","clean"].includes(e)},AP=t=>{const e=t||"#00a1e0";document.documentElement.style.setProperty("--ed-brand-color",e)},kP=t=>{const e=t||"Poppins";document.documentElement.style.setProperty("--ed-main-font",e)},TP="data:audio/mpeg;base64,//vUZAAO5hx1kwGJftBKTsOiACbzEcXUkiMNmcIeOlJIBj/Z/rsNplJbWc+shtVpagm54vpfrRRvIlbl5tV9+k6wnLwkhuEYeGax+nxGydRWUZIWjBIRqKrMtObbQL1aSqI8OE6BdRc4Qi4+JEai9XLIXsJqJojxIjhOE6js6ycF0iEXE5AnUdydSdubkmT5skXq//so7m49huUZVhNqmOkvZCy+KVmaFWyMck9P/7VjPmVaaFWrFe2UamVyitSZJkJqFmBHBuEHNw7zAKEXISgdBB1xNDbk6hRNCWJ+AxrhMl2LCHOW8AEW/8oD2hl/ILaaaebuXDs9KQtp3Nh//+06rNz/5uZv/7tKrh/3rFXG5sPu54dppSFx/+/2HZ6NJDAgmVO5ububm///Ny4POQMw/PJk2QYg5YW3PTBEMvSBBB2MIJunsEMhDYIIZ/wh0WfEDi/0J/gGBgb1wMD+5QIXaaF+HAwAohP/uafmjv9NCwgAW5xE34EEOemEEV4R5fECCC3iQoEABQh9FDgYGFFhAAGBnXABCeEI5vG15LRsvE/KU8OACKKZjKscCxC0JAAYvUHcbAkOx/z+UTq3LitMzMzM/o5iOo9hOf2WOQuJBIPFnMBIAQ33DgSCmbrJmAkKF9tjOABw/+AQBIEBRPnDrRMcYcbZfyjIlk+Dsq/p3Hq/7sdDf2Nw8EPdLtLBeF4YIh+LJkItp184bS5rDBN////+b5c1MQgmYxHgLAAQGpOXxCDfFIBZgf4Wf//9bihVhhrY+OqAGM5yDk7OtnkThBAHcAjBvo9SHQoIrG1hhjEHcvU8bht/2cLsa5DlJKIxYrxh/HIfyWc3TxtyHcllI7CmBdwvApZB9JjT56w3K3IZw1yHOZ09P2n7KH8lnK9upG5fbzzp6e/KH/f9y2duXL+1IYcuL3Ixi7bO4HaQXLQBsHn6kojEOXo+j2AQQEGinA8xedtYjLKKVxu/UpKTKILkSESIXRFOSthi7GuSzGNy9uCEgxSTPTNVMywV//vUZFwACSV3MQ0/IADKbqZQouAAXnodMbmqAAIowSX3HtAA/uw7kslk/rDD8+65redyGGsM4gSJrsZZDlJKIYlk3L30LmGQkbTxuLGYAmACCjacO+E1RVfug1yOqZrrboAQQMGimxN36NkAIEM5A56TtrONkDLt/Nsrdd9F3o9mCOZZ5nomeeZo6I9JhDcv7ndBAOCigIBBRv/+efdYYfhh//rDD9YYc3Xp7dSNxu3/50+eEbl9Pn38Obww//////zz7hUw3SUmHP/908YllJSUlJSXXbVIxB+MZXG43blD/w/T/+88pQ/8P5UljcrtzDlu/L+4Yc3nhhzPPPPOvGJZY/PPPv/nn9SMSyq7apFiNcll2Nv/G6fm6en7UjFiVs4a5DlivG43L+16enp+1JRDDkLvcefqUl23ADEFAy/5hKZygobJ6CWYxi9//+qSMOW78P29UkolmEAaDQaiUbDYZjEZCAUhj/fUv+EFjWA/9PtMc4Ys2qH/UHdcyqs05PHAOWAQPAzZ3iDwbnkKDQ4MkA0S5oGXAucAscAggAzAD4sBQHyKXFjDSCESAwgAHEvx9iPwtmOeOMbQhUZ4mAv+LiBuR/EKEgbnCcHyAaBDmJuifDqhsn+IBh6haTInTJ8LmBCgcxhUyiO4gP/jnm6CCxkBZ4sYXPi4zd00EA3gaoyQuYUh//UI/IuVzchhEE1MOBA0FcIwToYBaeNwcJMjNFEljMUv/////y+XzcihcZy4aJpm7UP//w/40hiD0PlAfhZg8DHnBZAzZIl8QCASDgeDscDgUAgABj9Pqttav6RG84/4ccSQMDDkABoHgOzgPBKhFwOomInvErHmZgjY7Bn+X1j4HMJQ/jjKH47ByASZaaFNA+XqZb/MDTQPFRMPNoDAf5cHOb+mJmOMj+d/9N0P5cNCz9X/+SjOtSBTV50vCUNWOdAc7//////9BBv////lYwhv9Xq/+x/ve+VaqVYkEIdlXFWFNOM5CafKk+H4BWRK2P0d9uRgSiHE//vUZBOAB1mHV+5qIAB4a7r/xDQAHVGNW/2cACo3L2m3szABslEcwUODcgBoFghzDNCfhsDTCwAbKeTNEyLuGoEYQJFcgRgSRofJEihqOaNYkQDwUkDU2TPlVZ0oGhQL44BwjbHAMm3YsMm9ZuT6RIC4yYIaShDBvnScWgaTVJy4ZIFpM2MQ+Qd5XLTIl9/TXNTU8m7qNUlHigmsuF9I6Q0iwyBbKpmy707GCdBqTG6bmiabsmRMokHjwomyIrSG0URlFvv9+v//83UtaTHk2Z2rf//8VsRAZgaBsWRnR1EyZjKEQJ41LzODIFUc0EmMKd6rlQ7FYYEGkGPGdSFqoNwfAIRCRwS4IuXDQc5oYG+gUkS1O6CkEH6zzrTJMuoVm431t1rbcgDcXjU+T1eo97IMfQW65IHCXP+pFb6s8UO+ym/m7szl972SN1nC8g/U3/2+/6SHUczM3//+c//zImpQS5hBVfnVAARhcJIamDZDFWCeQVCoogSFEAKMDmkZlXM6jjEnrkQxxAMrtprxLDOtR2nah6BqeDGXRb5q3S4/lTO1TYU2Uql1NKnaaEDZGhKfMofZrztRp2satnHHd7LLcsLCUgXdltFf5WrP9J3ad53oetSqmtOi9kNO0/QqYuKmDFZq1ayxqyqXU0atfW7vtWMxmMxmWy2z361qlwpsu4zMoWBTYYK5MOv7GpVGoahqNS61vKtKo1TU2X5Utnn/jqmlVLZ1l9WMxmM5bpaWlwlUal2P81WpqamphUI6K6bIKCgUV4UEgopMe7oU6AAEAbs2Je+Lsn46YCxMSqFprhpCssYxBHG0HUFswFMgFpDmkyOaXUUkqyMWXWZRstdaKP60TEupGzLR/q900VjuSVU+iiiiiiiZF5zIixFiBB0QlIpC5jZJyZNUUXol1kv/1ooool0nS6YmReKQryZFiu1Hqb6KKKP/UkkYmqKP/WiiXS6FBQ2Z7BLoAUrB5irBR4OqBkAHFQSPnVCsChsSArPV2Mdbg4EAMoXcms4w//vURBOABWxf0GuPFfCy6/n9cTGWFfF/M67iMcLeJea11+I4FKBElEkozMQVDMop561BkXvYbtYc9Vbncd9Nned7xEnVwUA+3LX+P/8V1mts4ZgLp5R+EORzLF6lZzUYSc0r8XiM9H8ggw4dwdWrrefXX/w+hzwGtRKK72LBn1vH/hKZtcFyJsA3HCyxW6us2blVCje1/9b1v///+9yoPwYYQ555LO/67rafQ98ADIyOII2phINpCDAjHBcLvwWA5WJAcAQSBUPIUDABQozw4rE5SHIVZAOOCpm2lkaOGMakNHF1HkwwhVG0pY9hX+WwJJDuBLCLkka3U1dR3RU6iLALMipobBdIUcqnjYhpXFEJkSiaKY1SUOtA3Fmhg4gJqtkkbo1t1F4zPprHOIMmTJqYm1SCbIoDHEbGwRUQjDEpOrSMdJzIvJUvdv//06kXLq2mSJoVkHdjenyz/VSAUwAW0B0Ak1AEBiWZhAARiesJ6kGhgWDIKKkBCOn2WdQFFtHjpxAAlAFgDLplApGewCGAChC62jSaXU1SSwJKaeRxudoZdUlE1fg3tJVuyzKdnIzKoaJJCVq8p1as85//ze/z/GDBlkKjNVjL6xJ9HBazCGk1Xox1Pzsy821kNJwCODEhman3SWikyK6P1Or7/zJ0hSQciFsRG0wRWk26P2/1f/0ka69UyNrf/W7VmAJQAJWB7XEEiYye5hIEg6Ih4oDw6AZgMBwkAbcx4AEJSTyNiZKHAEgJBqlph2fwc+AY5XMqkVLjulVU1M12ddpxnjHLHfKaNZtgv8KGC/VrSAfA8svfu+tf71/jddXAZltl0SFF5Pc7S+pQvsFERdO3GVVS0MRUfERDECPRq/2e3ZtcmcdUv6/6stiMMY5d3fo+cw7z7sBTywK5FrIFCUlXT0pyv2O4VtsPCVPZ+DxUasYFWf/9CsYhIDhgP4YB5hpmpuYKqYJwMAQhcGjDsYhCGyTAMAF0wwALKGIhA4FBQGBSYJCaY3wybOAWkwHAKiNA//vURB2AxedIybs+6IC+SPkne10oFp1LJu9h8YLZI6SN7XSg6uIxDkklsQoO1r0CN0h6ggJ2I5fu9u0+EzKn/lUrV+KgEDhLd7K1U7dw19Xe9VKtm1DilxMBEQvojsBZ0pq7boy2eli6rseZ7GcZS1fHUytJP+k5v//mX////0t/8NUvP+7Vv4VKf8+8vVYJZgX+Xcl01+pYqhpZPr/9bf9si27q1YAAAGEAbV2TAdACIQJTAgBaDS9TqrwbvN66EiKCJAOggXwMhRl8QrBJYYAA6Yhnue4AKY9gQ/j7o9xJ2ndv15RLqa7Q5RGXRyOW6eksYflcrzcQqQHMBYFgUI30M9hljhc+rv9UmOUeqg0Bx4CH+vpxM5e+idd0ZbRxhl12gbrLd1XPmakMIcEJM9jWsb13v/+8v5Ga+OeoBy/91Z+9KK/M7+E5KYmul9bjL0kaIMBdZ62Vdu/70NVQ3Y1bvfVAAAgdSBUiWSwg6CMYDCr4t9YIgHgECMYDABQiAYRVTJEABC7EdEQgcCCYCwB4gBbMBAu0wXAZTkBDGGFUZymlkM1I/f5jNfG9bpsrFirSV5R9+m3XswhWYXlLceZZf/8q9/Hmvw4VVjRaPppEvgMTC7O6M+hoGysW8SodXCnDoM6LC//3b/5/8euu+VX+dsO/Ez8Ptwm94uVYXcA9NwsKzRzi6kj43uPfH0rYOL4zNOf/17HIBAHTQQ4FuRoAcFAFGDGIScxgAAiJnI0AoumwPFVTAwJJUxBGiMsiKAhgsGJhvX5y0BhhOCiwIsBabbpOfjEomy+H4zPSWPT0N1Kl61elO7lNU5udqwy8ZKBkO1Zdllln+ub/mOP40EnGANUtnOo/LepoahmfbtfpqdvfhyT9rv9VjMmbohKgbD/73X/zX75rVr6+6m+/9Lfwwrfq1nW/ctpYtFWdEAKTEZxotAoZEAGt+v3fR/pqABHUQUdKgAJgMgHGCQASYILoJzMA1mEICmDgNCwklo0REiiUAomj4CQTMLAnL+sY//vURBgABZhJyJvdeWC2CWk6Z9gcFy1NM7XdgCLrqWc2u7AEMhJ9NTQ9MJgEbqLAYpiOQ3UaTY8kKVU7yBMyqXDdHiR/PnsMeiikSpUt4hCreb8a3t961rMm8XAy5XEqsbHh4nXU/59tcdmT0VJH1BxZwCTEvVm/bMbXxit8Zy24s9iat7QFh9eDqDFrWt4tmzJoj0wmtKw4wTckBKDKi4td933f/+uAgAAib3YGqiIw9KjOcMA8b83ygXQKAKYHoBo8CeYCYALlIFlzJEtVCYHAiqWGAECGYABd5h1A5hYyQcklUaZPKc7k9vGUcjd2AoxGa/a1Lufyqb3vVG34qAaHTT3f1r9VsKtWxV/OmcowLc9rEPReBaeS5ytldHcnd26mWMGPZ/axVVG6szzf6xxz5++bxx/LCzlrKtf+tjS1bePe427tzLGKMhll2iluVndUHS60h6tn//6v6kACoAA5pPCUYHAcjKm+Ywk+Zd3qelFYZODkYfA8X4L6oQIGMIUpRKUDWykOKBRlhKGmZbuLQ7RTU/YsTkVdCcqRC/P0kro68btS+pLL0alPbtaXx+hFgmKWbl3PL88rNjePe7p5pBNP3ZfD9PE3dvyC9lSSyDoelNSir3MNYxIvjE8ae/SYUn8yy7dr5/zPPPf//461+FSkpLHNf/e5zXbN+1+qTDn54VKSUUlJhhhnnnfTrD9WFz5d+ADeAI2ruszMDAkMJBAeAwDEEx3N85IEYxiEYmEAkApJxYQIABcpe9lUNrNTELNmKVIGK1ltXi76RC3zXH/lDWJdYppqpXjcvi83dq3rNm7nlnduswULle8+d/+3N2K8vp7ersqjVH+7dXkvqbvUlqlp6epVzm5LbzghJZpUVxwqXZXT297zt4UkYsc3232vn3WFPXzryuXyufz7nu/NzzpTUbo7lvO5hUlEon+1JRDEYsYblFJrxf4nemoAYj2oDgfXydOAUiAMCGSxLkRliEeMesFRa9hY2AiZqwxc5+AcABxsuOra4IBg//vUZBcAB6uHVu5qYACAKyq9zDQAHWV/Rf3NAAHxJqh/tUABBtiAYfGJ5EdGh0qClwbgC5gjQgkCJLpoANYIUtAswuEesvm9zAi5ByuRQ0KLECKKbmCCBsXDQtkUJwvGIX2LpODHGrOm7Mx43MRZ4pcPUKikU0BGAaATSa3QNKaaBBy+M2HqEgm0vFEjhyRHpOrzAuMggg3KRoaJk2VyIEAKyBHF4jSHF4WcICi25v/qQHYILjvQJgihUNzNyLm6YoxHEYPkyKxiZS8mkXv////+aIqSPU05uZm6BMGn//6yKsijl4nlzEyNiiAABa0BaanWgAgKAQEBNhheiFllBGyexUnWaZXF4yd3p5xAJIRAgI8AoCmUzMlwnAuiVj2FUKg6kC1OHGbepE0SLiCSlP///6a3fmCBcGDN9I2SQPy+mmeQQuXDAoCZlufRJw0k4cSXWn7J5PNumYmeYoo6zYcSa0//KY93/8ex+UAGNZEACiQIEMEEMysOyYIjoqMOj04INzIQPOpC0xoEiwCwaIwuAzEgFBwBQCkQXCoRWg+oIKIbQSsVpruRq6jcYk8dfofIeYwGzWlkMbi0O1MsbO6WWzUPS69VnearUuHM5SmiOjGXT2Nm9U7ll3/yyrRKnq0tLUt6natZ2mvOyXzAA0HAYFjOGPOZa/985jelsql7XoGnLGVbKNWs+4VqaVUtj8d2f+td13dntqVS76bKXMoMSULPgIa+k5LpHSTUajUPSLuONLj//vuWv3eszEGu0wJm1Nl+VampbLjxH6yzxwVDR5dt0OSQAESgCAMJAQAjNA4syNBUUngqEtYOhkQGsMgAaSQmmHBJoPowZH4oBdIMYjwTxFi4tI0D4QMLTCxsVqMqZOTSbLapelSSS1V9RYImj/+t//rjLDIkCFzESLz/6TlgiVY1h3SK0jJFd9Op9nq/66KJdNSABikQoOSRVJKpiQAwZxMBesbZ5CVAOBhcRAAUOpsIArJOmhkeCZICSABTDpo4p1vK5TFLhUBi//vURBaABcBfUPuPRfKzK4ntd28+VslNN67h9wLMpqZ13LKokHPdmbdGWyp2gsBQClTEgDi+P01VfeMzi9pilvBrCbdy3+9fOOAqvZs4n8KRixBhwXz1sNbftj6teV8wbAtIVbGIsF6+xjG/61g4fMBbwwThguNYMWU5XGJvL7TUzxZHG+q5zitfm1tx4CuQoQ07FttdWuy5hyXe3vIBJAdqviNpQoPlEIPiNnybA+wCNgQHhA0LLwQAb+CgHmAQNkVilyjg8Sxp2EIGBRCGiz6PI4GpXJhqDxIYJGJRd64YXg4L7MOCwSaXqnPB8knZ/O64yRavYGd47XAhw9wWv/Xz2sGK4zZgT+1WrVIL7LgxMW8Wx9W3n5ELEEIdHtaLBewvJT/FvZxb3EwU6cq7rqtYCli0+bZmvSJNvdc5+s1r9ZtJah+lUq1jG6xcVxuud4VVFLr//e8Z1CZqtzNjI8WB7AARgAHKKyVuCmbPTBEDzA9IwdsAiDE6oNIiDB1jBYH06WhK5amw5B5RKWMMKwMf6G2tqpyeUssRqMkCFBSVpqU9STxCQW8cf3hjF7kps6u1rNjmdW3uusgOO/dnsttd13l3PeOt00qy1rW+6t0spjIoUrXFaaezljVrhijT/NsPnr4W50/fNsR99dHsuHyqnUrVJBxO+zTwrQo39cZ75zyiixl/OxDWSLpltq/kli5cS6g48dI2AAJAAGqpoxmRIESA0SCswLFc6qBwwEFE+CoQIKgRgcYfB6qVE53VN+KDP2sACREHgEYephMoKt5KWjCEHzLpiTRlSsfeJV5fD9HnS6tczhculONu9nd5jud7hXYQRHxmK7itNlWr09LjVnPr2austXs+4ZQ9MrRHCHwhqR26rttrNbfO/LVU9SKaxmOW/VyquNHR8OMScZHrrW5OWtaZ2ZmzR0VwGqOZMoDTwqEy3qBmqRWgBQAGWFGH+TlMDABMwJAGzAkLjNAgDMFAZmnmdGHBXGAKAaYPYMg8AGWwVSf0utMSl5mR//vURBoARd9TStPbZVCyymlJe48+FxU7J69x58LWJ2R17jz4lAGscRVfZXSZwUAJUHMA8EIwJjSji5AwgRUeWHmlFJ6nl2pRVq1b9WpfjP18aChpccqGWK/BQU91LyvZ1j9Jjdt1J2/UlG+btcuZ4Y5QQCAFkVrli1Vq373TMz0srQlUvT2zrQljxlqFVwtVOjplpllbG5Hvdlf1rD5ovA8E68tRrLvTlqTkOwAAAH50IprIIgPjAMABMC4OEmoxMD0Fo1q1wTNgzBwKNxnwBD5DRYZQ1Ex3nOHAMYPJwOWiN60ExWdqxIyo8mBxYY+Zxy0PFwVnrsZGX5PdzP5qfw9Xb1FAozP31m6JVQqmG8FGj2dzhU1TMrJSO5KWDGgNt9Xx5Nzbi6WAVqz76VLda31XXxvVMbVKafZ19es2/6Qr2UyLPDEPOa7pbOvbWc2w3MKhYV9UtrhqvpjdPaXRAABgAASp7QWiSgIAoDkwBgNjAFPTNV4A4wFAXTVwXGNUB0wcDjYxdTpIglAS3JcwhrqBZgAdiwRnGRt2MChJyV4I/hxsOT0Y7AGw45AoEKUqWo1zsL9Sw4sTUDVZ2Fo3JGczsbMOVANVSJ+NjcXSmU7gf0GKhLC2SP9fFfvMSM2vhpAcY8G+414/ixWRWPNPYDtYeJMpKq2D/nbjFm1jM0WsDN67x74t/m+b5p9SK54WStevHNtfYsQAABKGJGBE7zAHA8MBMB4wMxqzekASGBLzWGlKMpGUwKADuCJDiyGApgiaQYAEqHDHAQYNHYCeqwYMArAigFNCVagyYDFRjXsGyx0FAmu5IhicOnM3jccm71rFo5MzNi82HUC3jYBYhENV4veUhXcbZZJE9psj5pq3zSXDGpFET8SmH8WPjxYOsU7U6rGiRU7KllDab/b59bfbrTPm9W4tb//e9f//e30cup0qLKnaIM0Oof+hgAAjAAEmn8FInINAjoIDAZKpM24EURAsGYWiuYnDg0EDTYmL5AoBKlWMzx5M4DAgJd9///vURBmAFWROy2vcefClyZlqe28+VaU5K69yJ8KepmVpn2xIVWwYwB1FAi+xUE5kW4mhAGEANQGJw29LpyzqX/KmYINoLD8OVYCUs1sKZA4QHNzccZfZq4aa3sNwVzfq3pAh03R69PQHmzS3jqtYd5Y2/OqNlfXEN08vNBn3eKdakpesOZnibgZtBveFSl6Zxr/PhUkEfIYu4zu0Lr4AYQKzv/B2WbmA0BIYC4DZgSAcgp4UwFAhDERT7NGHjARQ8EGFiZGhQeHHBVxf4OGYYAtSXd7Pp+AmwCgMY/VGqAQOB2mV5jTeyohqs4fKvpLvwNZexZa1xLQW2NbUKz/Tp83yx5oV2qb/OP4e5fpJga6dcGWbe7STQcZo2PIeZmOZdx8omb+BFcb4rBjK529ZJWrcu8Zg6//3q3/SogShZQXH7YdUAASAAEWv2FAkuBQAzAqAKAJu4OcoMAsK0xRkXDX4vMKhE1cGSsHJfJmuM7y/mXQCXsVNKnDgEu63jvy0GBMzZSTM4nL+KxwiJP+VSuZmCT6aRXLxkcTUec2QzhDRwpT5hmDHUTUnWOJSxrdT1ETLI5wCQAjBc4J0IiiTynWmTpqWCdLhOKqmxqu9dZdKp5aac0QuttJlInDZJJRmzlgmyJAUgb8ToyiKRdDq874JYAOvojGeBrZreGCCHWCodDAlCXMg1RowcnMxCzxAgiBC3ypWVsdUtUslwiIUg2YqRdpujktsz4vaa7flIaRAUlkVSC7MpiGM7v8XevXZDKqe9dfDX00n5dehEiL7/CUUl7X0MpnrGO/q/++/+NuvMxOWEARylovy/+/vndVqbPHlezKt9qWa0ppMaOZ5vL8L1P+H6/8rnN93hl/59xo1pv7SW5/JjUQAKwAFfTrAi2IwDQECYlKYFaLZo8ASmB0DkYkCx53J4hcfSFhgWNCJaxOmWrFZ7FxgKi8rRomW5sSh1VULkRvGEeaIITWJVnhlFY8GfDnSSPK2QGZUw8xFyiUIYo7Wpwk50qVdYd4e//vURDQAhQRMSevbefKhSYkae4s+U4EvIu89dwJnpWPd7iz45s90+h/2cf////qKX4/EIcZtza1S96ZgyRtfMOn///guM3/+86mx4U3zref9V+fXDcKSOJbfRz6QANAAjwsgf9UwXAcBwBINGnNq4IMwRAtjYeblOZIYykPDl5rMLgUHASFIrqTYI8UEhQDjRPeIQgaHy4LII+sglAZoismJwmFAIivEX2ig7RFD0cpenEESR4QJhOeiZIlRKKyhgggdJobhkVVJU1CDGHMNO/+Wyq0CIgBM1Gp/i6l9R8F8JHuHTKhR+33sp+2/e2ob1zNpk4AkrHa3bVvJYi0MASZ2MMVjg8CoAgBzBQXNNTAFEwRwXTPleOJhjguBWYjgKAYAgyF+EJbBVhpW2ZE5SMhf91GJWnXkJcIwkx1jAtAoQidiMx+cq6vSeJvTntG5fTw6wpotcQtRQintbVqrZ5XGeFFr/5K798/WrNrMrE+Rt57T2lJx5uTLs+f6mariOTdvPH8X1ETG7qvu4aSg2PWGSQRj7v///6UAKURsIqNZLhFUCULGOnBECYFQnTn3eqMuI0wCTTojsIgaQgRp6Mroy14omCBYJG6kAADZHxlzDV0iELGZHEBpOpSsaajT5jcOmKQt0rsJp0xZp75LUGJFYZAglKWPqN0SbgxOzZWhxz8+1UNVRwjTWe1E497Lu37a/v+H9Xx8RLN26viq47gpKgGhEIwuCa3sAH+r//lO6hFCwwBPlGxOBYAQdAOGgOzAHYxNM4FUwEgmDZadxMBYDoOB4MTsIUiA3S4BQAb4LDRWPyJToeAJYGpF4n0g1fTTgMpFU57AYsqZo90Zp4fltJKKt7Xz96dn5X+WVPD0Roph24k/QKDR+VWJS/OF/vP1j399kPfyu6/+3N42JCPArVjvsVSsxCjosxmo+y0tX5kvplSyoFARO8wPU9Pd//2f7vSAgCqlpi8IgB1KAKBiYJaAZw9AzmA6GYeVDuphpAZGB0CcYiIjqY4BASak//vURGYAhQlLyDvaFHChyWjne21uEvjLG09x58JSl6NN7jz41VH9zWdOgI0QaP2TgIeoH0am1iKgogOBujJCAaGpRbrPXZjMuj9acx2/d6K0Ebi+rVr9Vcreok39La0dJNF0jJK6aCnIL3OqQZ1OZD+MIG8SiGzqU9Gip6kXSS1dtW72bSZ/d2UnROokqbsJmiBU3ZAWz///6xwgBAAN1skKYhcBJYpgVAEmCxHebKgGxgkBYndzTEaDB5h0TnmJMYOBAFBSPCdBbhRZvH8fpDRM5gEHtrSsuU7R7MX6EwoCS9zKXQtww6cnF5SuNKO8fxHHO2p7AqzVdJNUttvAhMEKkODPh/Ce1YPplmevG6PlnXMEToQYpZ9febwtgzFDQIMGbOx3doHszSk+21X9H/U3UBHUigrcSADmAuBKBAbzATUzCRxTClAzPqVTw4uQzDZfNmWQwaGFfKAqyJrKvaqwoEkJS5iafMWae6b0LDAQDmKU6JHUv1GI3MxNS3jO7axmG3vFazN2pWJnh0kg870IfxqPorda7+DfFob2K2YvLqLqFuDpvyH0O0xc8diUpRaro56swEpIAhIfPBZj/tZ/1/X9ckTqIApQKz6NiMOOYHIBgKAFMD5q80RAETAYBsOhRrk4oUBz4fXwgURSJYMIgJPqC2ZtdWy1l/kkoOYzGpmq042wVBV26EbvUdJCdJ5acHObaeb6TR4s7HAgP4ElJ21l7+0cw3OJBZqvko3sMO1YvU0G8dtcazPkyjwURBVImszbyBRTUD3LDZsstuleZ3JCTjaitnb/6/q4CuVOIgAGAAT/2tldI4AmJAcCICsAmomqECWYHgARzZCAnaFBCYGR6qhpcxEt8GUTLGYaFQpWlsi/p+Ezli5HTBo8DGcqk9T7CuY51FM50orkWy0Ybu4KES3bGSSd6TpWNkKEabuJGfXkZIN58MlNwL0u9i6vVSoUHEZLJhQqfJkBAME4TC9bafENj0KE6EyCa1r/q///6mBXeRoJ8P8JAUmB//vURJwIBMkwx9PbefCT5fkNe28+EKy/Hu9tJ8JTl6Mp7jD4aAaYHzJIs/aYHoPB0MpoB/EYCjnWcDH4unmvtAY67/Qy/rWHQWLGIEkUoZCFwYyWcMTAmqwxL7FszEyXtFOzoyECU603lkBQU2WPEd5JIlIhthph8zgoqzyPdTVz7FOCKZUWgfiCT+TSDIq5dlQwXXn2/Y6L//93//0kACADXWiAuxDEwHANDAcALMGpU03wAfzCJFAPyc4c0mCDN47NL2AFD4FABLoeA6HjzN5MIchIEwPF7TGZ+qzmMGcHQEMpGhX1FK6lka0scm+V6GMVexq6ntm43v1CGjT2cxe489X0Nckw1L9vO4e2Ot6LtIKhEqACa1Lqa37l36uur6u0v22U2pq0LadYnDxoF4q1xCoBtwgAOACFDQEAREQCkYC2XNmLaAQ5gJIEcaTYIxg74GACAZ/5IBAJhcSL1okcHccOSsGSA4tZ8GlQuFvWW8MwmQzEHFfKs3B107O37UMJsrOSJY4V0Olx+y5SHGA8eWZdln5yt6Rc4+zaESrroqQupG5YEIjIjtqFRf/17fGXb2qsQLpqpDrissu+ZXHrC4s43c88ycDYsIXAIBv1RIss7A5hismCusCDtcTAmCPPOpaYzMXxojnAKKYEA4FATjoDV6tyl1iXCQNjSvVjMweeHpehAZnVwMBDhzFHuSySipbN693lM1mHbEin90Ebi93uLxygsAJWNs7/TVuOzePfltNflskmqOKW7MkqU16pQ3bFBKKB0nflNWoTNdH8DJrrRbs66bijz3rcqhTG2XFnPsisS5izPgNzCAwAmAADAEQDMwA4ATMAfAjzA/jqkxkwERMBFBcDWYQWEwa0APMAqAmzALwhQwDcAWMAEAEwAAGGAGABY0ADJ9OCjcRAAYKAEV/zLBWvZTz7N0AIJ+YAQAWqwN4+zvvQPMbZkgu5YtLX3mjaKU1y6to3CShKaPaI1DUxew1eOyGkgm4k5GyqRlK5+y9QXnz//s////vUROYKhMsvxRv8YfCf5fjHZ9wSF8XXES+wVwMBtyHN/qD5/umr9KSVvb+fb2Lz2aujKr1R6q1GKyXdHuCZrO60KUmhg3WjRZ0kGKY6DIAo0AAIwAYoAFgUAhkAEmYAsT6mYJAo5gHwSsammcYmvJtGDoqnKMHGMIZBAUCQDigKoJmJQArkQAcPApAyaytqqz1v0icYGA6YbraYvAuo9TSK9CwlCIIFsVExYiioEy7ZUsPxUPRpgiicF4fCxDh4VI4XGFDho0XYiCxBtJE59jh4+FBWfL/H38w99//Mff//9cz0sJylxS9/97cRDz1X/Hz+m2yv1/zVW8tFRoVaKU2tRdQxXJQwxqSiMOgZhOoP4ABQACYAIAQmANABJgF4ASYC4bCmH7AE5gogK2aikPiGCTACZgGgDcYKQEDg4A5AQB0m6ocutdDU3DIQ71QWo6vlbjgR2aAJQ/wQiNMkisml1NJO6zpL+XzDd37fSntZ3aTsNxDC5nEIHuZ8tzNqpS3K9u9Lccf2aYOOpVMYtRRpuyeTbTm/y7ap9erpsrXP/dk2oRZkVmMzqrqBnM5ZTsyshFcTOh6uKqDIDCOQzRIN1Gd2EXHWIAyREABYAMRACmBAAQYGAEpgtRvnKIAgYOQq5+ZeUGG0EGYKYHxkrCwgYFAGgVQEKgJPeyRwODIAAsBiwRE2Jva2kD1mNEwVBgkgCsUt0lSADpWpYKyt6wnA6LyEco16dx87QqFJWaHDDboliCSly11e8iU1VFpYhQQdD4Z8ooUj6t0kIgytN9fa1W6tr0190damZjz301a/gqzKclGRzWerMZ0QG7EZiiPpN9V2WEyCLHBMAH5ABIA5SXDgEQwDIBTMB4N9zC6AEMwOED4NTBL3TPceDBoBje+CjDcFggERgBy4I0AzLmBMgIQNWlAbSpWhKf2Os9EIJAotzC0CqWkq2I2JQEQROOEYXYKA+IQZxHLElsC8TC5wwBASDWGMIwuiyZcCNsYemTTHLSxdctf9tzxfrUd///vURPgIhcdyxBP6E/KyrPiDeYK2V3HLDy/1B8rmOWHd/qD58d/f/cTxV9wn1M/tx1PdVMpEQl8vwl8alq3zRJlHV0zY9167dnm4OfUdxC+vEypw/giYLJZOD0AOJAAAgABMADAIwwBWKAAQwBYnjMluATTAbwVAzPlN/NSyAMRgRPK0sMSQFIAITzFgcRSLbqlXyscSGF009IWh0jlPFn4MUyMMMwUW2+0/Ydtw4FBynPhAE/Mi7KHLBcKFONBoHQSiIMOOccr0PU5CUkY5I4plHULMmTD/3f6TfX88e98/X/P81zy//E99jVmPbtHuI4WoWdI/L+VSE5lv+Ily7KTHNcU4x5PiGcjxiyszA60HQfvgugIB8gAQAGAUAGAgBKGAh5gFJliYKMANGAZgMppEBrsDgU0wBQAIMIYB9RoBgHAA4QAAIJAAGxLwno0hzY9DLv0jYoy5U8oepcLAIzUI1VqVSHGSKKDeQlSQLCrSBFJZw7APqPMk6zRgO6LGBLEVNhzfBZlOaZz/lLnmZfl/9m2RL3y8rzLfnkWR9PreRyUu594/S4CRfx0NNMoSqcKs5nU4yPA/eI8FM0mxgyNkBkQAAVWJQAAOAYDAFgGYGFjosn6mBaArZkxy58YWB+mkfWGaYsASDQESrRkXCrI1h1BUJR4OKUSAOJRR1ZAxoqgeACNMEQNcKNR6moREBbKwHC2SFwEig7B0RAwFxGB0FqAWKHgrDYji1iGLvCJZzNapCNE2VLxF8z217Vx/s8c/+l78tEIt1vxrc9f8zy3VL2tt8vy+1MljfSb6mN55af6u1HkRWU9ryg82Z4iC4qg7PQbE9mmFjFIYPIPoAFUAMEAB2YASALGAGARZg3h9GYHYAJmAiBIRpu6ayYKqB6GAHAAhhooRcGAdxgEQBGrpZS3UgqB5EEipobYe48Bs3ijAX0MBeABQwCXgVrUZppdT3aWtLZBq6+MVeegh/OU0+r9LOVpZTWJfUs1g4ojLkKtu0pPlXPfcq//o5KSI//vURPWIBWhzw7PpHaK6zphjf6g+V+3XCs+M3ULrOeHd/SF5p/f/b5J8M7Zt1HP5CQ7mbaFmpduij4VaXk9JiLZH3kJlOIcqibVrN5Ph3VbGPBQmSTUtVo7xWa5lA6J9oICkSAABgBAIQAUGgDhgKoAyYD8RImO8AQIBBfDC9VKUwJIAAMAoAiDDKQDwWAWjEBFRpCISFN2nxYZWoszSoYs/rbymSoTjjbgcOU7j07KIluY7DlJIO2asganIpLqrUkQjqHtjhcTAAiFFbGZMW0JJLXV42dZLcx7GzO3V8fxHt78+lc8J//xxXHxXzX7d633Js1dTSbSk85N+9203MjqRNL2RuFa5Ree/apVRw/GcjYmh2LyOcPdKHwCV6gEEOAYB8AXmATAMRAZtmDMgJxgFwGyZuckMAkCNMA1AJzCyAXkEAArrjQEkBF8HamlFwoIiVZrT+NKh+U4EIo1/IwoBLtglM6UqjlLKYZoKf85TL3XlmqfsdlAjhyHCBIUEhAqWOxMcYrX0k8k1vssp6zLxP/H9cdfXbd/Pf/63H9LDXHb9fNQ/x1addrNLNVV3ytlo9d9XsWOkdMdzYtc3UXP8OLNF2PbZBtJyzvKHjFNJdcfgARPCAAAaAThYDNMABKGzHDgCEwJMGtMQ9VhDBRwO0wBcBBBw2SFABYmAI26vopgyFzGUgQApVikSWUsdJ35c8zKDARwC4wDwAaSyjGdqarU1DMyqn/kzp74xjTUc3yff2WX8MKaWS2U2K87Kvx5+r2sd2t7WPSUdv6TFVZUOUylVGp9NSnNSoXuSNQFYQuUZnMBTNkSNNkYzY7ZT6x4pnJrZP5CytLc1HbL23wqiLaVMJAxowBAATSJMAcAAjADwDMwCAvvMKFA9TA0QZAyfNKXMSRUMGCGO9UIMTwWCoFoKIqPqzd2owok8sjZq/jZItGofS0HA/EgwvzFL2ZCcG4cC5IRuNAYDUIjwwIYnBpYfi6CA40PjA/KsoR3WXi5cmZJ6HIl0OQ5ratn///vURPKJ1bp1QzP6QvKzrjhifCb4VynXDG/1B8LTOmGN/qD4+fmuI//uqvqG17udPi+9mvtv4+b1vkZLTM//EMutTfurPfcuNqqindryupaKMuyXu5ZmJaVmKFhKNUVZHPx8hSEGABIgAHTAIwCAwBYAVMCLKWzGpgL0wMAE6Ml8TpzNZCjEYjjw8cwcT4WBBpCxWGLzdNx0EI0CcXYJVdKel1peIAFcwwANwL0tv1wXiOKHCoWFhooEAsWUWCqxFHi4gCIWILDgDB2zW3Lpev3M9XEdV9xXF8f781f/8RfHfcVMX8/zG//t+3a88nbWlQsSkccq0Lt3KbTdsmz37WMZh00qMaliI2J7lVjJbce3M3KiEsGlXF+ABORu4sAZmACgTRgBZamYgGANGAfgjZibCVcY+jSYZg2duEyYUAYDQfMAgPQRkoAJoQA3RgyeLat/RtzfyllkkEISlq3E1HLUpAwkwOxHGGyJBGKEAPix1kiMIYeuDWg7JFqPenmURLTcwj752r46q63m44q9O5/6667vvXlZ6qNPv/vn6quCud2iW2fofHffB98Ep2p9VZdTNrjJip58fF3VOc+w3muS1ejTHJljUYh5gECOMgADwBaGxgMgYGAYCOYJktppcAtmAWEmdj/hRifhNmCuDGZKAagsAaCQAUmC/ql7GnIrOkPAHtRcmli9LXoJkQANjIAsFxS5cujAcym6tophaTQPKz9a0dnZ30BVYPDl6PzGHDmkMWOHZQA5bk3l5Ef+Wfn/9vbrPO3pZZ//nW7+THmVVk1T/Pink/aVOLTPU6XQ4iCnIFvyEsKFO5VXeTQPTXqpUcg1COQiBL1GwgAFTAOwAAwEEAHMEEMQTE+wE0wJwFWMB8UHzQAnDIgeD0EYCIezAAEYojA8zPWnQAX3RZf+n0xt+5fFGbjwEBgXYRrKzWFxBCgeGAwI40CweD8saLDhc4FwcjhgQCGKoICHSfT3bdTW1/XBqvcfPdv9bzT/zddT20d1p83v8dV3cVdL//vURPQJhZp1QxP9QfKt7rh3eYO0FyXVCs/1B8r1uqFN/qD5fOk+o3u5xvTX3Rc43rlqSZvV2domUOEvKjHnmX55WlpDEoKwtmjKFFMIc+F7EVxgoQICjIAACAAwVAExkAkDAFsql3pilgDOYHoCJGgZIHZsgQRjYJh0SpJhiDpgaEAsDLNIi4ylT7FUDh4Al2vfONVb61SxIRBGGCc/1FYrSiwnCgekgiegGgDAvPe3BuC8GwLw5yBoSGGHjFOV3lWSpzI+a6/5udu6n2WO+Wbtbv241GV1Xd3d/U67XVxXbVzb3d1aRWVKPDINL7szeCzd7OSNWmBdCpHzCjpFyq2JkpR22NQdA+lkeXlIO0IH2Vc1AVHWiAAwp2i1QQBOGArEs5imoD4YEOBymI4oMhgcICyYCSAGmFVAHxgAgAkPiGgrKR2UEo4dCwV+P3AunVi/KlYh0DgqHsufmUQFHJTqXR6zW3XbgwOGping+UyzBqQwTCwYo2BEchpVEs2HuCb5i854+auJ/75v45uNli04p5v7v+4nlpqbO/4iFXnfSxy/dj1hGieLqnhepGRzTT/Sb0u0X6XPcy/FXluUHhQ62HkwtYsxtRcgAjcHAAJgBwAEOANJgHxV6YekAnmCFgDBoj5p4aOgeYUiacLL0FwAAQPiwAthSicphb1DgOSeHlwRiBcqWw3ILBANBlBNaW1ogNPEQNA87EhyAwQxEFIE4ciYeNRwwZMuhjmRVKMurpuL4qMbr8/HzF9+lDOfplj+P+ba+OWqv5mbf5jWlTa9+4WJS5LTiuB+eq0cM3eCcy1T5xx/jMdVXmTqoosNUyPNGSwNJsdXR4jqaQwShLkaAQCJCA2YBABBWCSYHEJ5pjhAmC0EobpHj5hWBdGBcBYZL4T5gTgDsUaEg0VxIS3qsDquzcinMUB1UcW4K8/A1RMr6PU79SKp6Yy01uN2Z7SDZqRlpb9rreJeTGLlFTo1SHdllPkKlPVPIq/arfN0n6o8hEmMcm9Z6Ne+qL5D//vURPYJlalzwzv4QvK1zphSf6g+VVnXDU88rcLUOuFd/KF4Oc6SnjzKouyjSzohSkoWLLM4+KWMNjkQSF2QMpIfIcaKjYfhEiB4UQYyGoynek6FQBAwA4ArMCIKMzC/ADsHAkhotRRqCgb0wD4BoMF3Bqy8blQOY4DX4sxKaHUFLG+beUvE996rBAV6BQhMGy6BYYcGfj9mkuS6pQu7e3G5iYwjT+s6iKIo0QSg+FVv6nhvW2Lnl6/X547/+n5+OPRP4h+6hoO+eK+/lf6mE0ufIhuBnVfqTMQhEpazxpVEZcMbScFRQ66lWQVog5GdSB6GsLkhy2YO4RQ4y0CUYQPGUlkABF0wBcAPKAAAwBIA6MB+LxzHowHIwDIHZM2dTrjWs7zIEqTyRJDBIAAIE6mzsNYVC+C6CUCXrWY0GzBk9brZAICQgA3bdikqUpoQi4tYPOLkB0GKckiseNHFipXLDman3r64dCurx9KtfD1FdPe5u+2vzD2sPd3tM1qk1CnzAxUSZGa2O7KqJmXLWor7PWLseNJdlLlqYPLRzIGC46bR5OkeMOs480o6soaWKHuLMQXQgSNcqi2DmCRGIEUOSDrQEQtAAAFk0IjACQAAeAmzBLidkID5B0C5NPJITDr4oMJD0454DDYgvr3JgQxJVBx3WQnDwVcVdFSAoHrRZmJhcLoJyIBrsbVy2Ih6A0kYHedISBMCgyTxMIQf3LlCCMIGoe8U99MvczR1xdvWvSRr8+6XNTCarULzUt8zDTFx/dQkxCzz+kysyMmbxsO45nH23lknGwPpLviimsvIPgexgiDrZSCROdUWw0SvNS4hmue2XIglQKDREMuEOEKKjNxhtS0pgMgBhAOxhPPcmqOAcJC+HgxlmYeQPRgSAWGPyHyYEYCZgDgBL5LnqMOnCq0Pr/Za30zLoGpbzShkBZD7KGozNOxG4TKojVg6n5nJIzD9JTdm43bp6uFJN8wwp77fnFyzb80L8XeuRl+2V3K5fvDklTWa5vn0lLjQ//vURP6Jlgx0wZP9QfC9znhHf4g+VhHPCu8M3UrnOqEZ/iD5+l5k0tIMR5wdXTRSHlw6AvCM48InGsOU7BTe3EubdOQfaXGVaSpISXlIQz4yoYQgx8JuDcFAAYquYAqAFBwEMYB0RBjwKAYAECqmlOB850g7GADMaN7JgIOhQBJ1oNN0eazTNfGgpg5Utg19rt5/zDAXRahUcopfDAfh6HQLRMIh5ZAwFI4ws8Rw/Hh/xAvZprD7ubu+45io//7R1/4nvHN2tLpe5D9otct88rysJNXUSMtp9phpS7mKe3vF0ukiKjV5lzTktBTH6zFGD0KFXFVFoGh7KuKCGmyQdyKu5Ci0iNR4rY8LrEPZ7nC6vQABwAAEgAvOYCAKxhlPjmzuBcYpoOh8t36GHuB6YCIKpjNCYGA6AYOgCp91cs3/kTaL+p25yp9IzLZVsAgEBADMqhilqzVWin5mLRnlDQwZEYpTYSeU2T0bavjzjfzLplVd+ZmpFpqUqnxjdz0P++crUzakkKyzKV8Kllc8HthT8gahnmJcjqfUIGiug2phRidxZEbNzyZ6kt+vgzMvCc10eLwhRxVVTo4TWsKPZkoo51AajaIAAEIARdMGABGAgAWYIzZJg5gHmAKIQffYnZhcgNAgFMwdRbh4DIwAgA2zo+vyrY27hoep8yluNiMZy3J9hkCwSAGazJoFbrBk5AvJnOIzczBeMz21Xi1mvq72rU+rrGk4wCmyaKNo2+dPLUcs8nA1BfU4qTuzE6CX+0dv32Du2bGlSX22L2Htrzt485j+cbv0qZiJZjzs1iL1EYhiGKJFfSOkEzzDOKxiESWiUbqTkBgC7DTAMANEgXjAEefNwcBEwkgcD/Ws3MOIEgwDgLjGNFnQbDlByo2xVuLvxhnjfS5nFtuUs7QxkCHVilWVj5TDcslD7TkujUMiKYQL5TDBFHhzTyWNRxyT9ax2r3U//e1cXcO/StETNXd2lX1fG/consjmxcltx6esUiRTpBUPyRdY9tLZJmsv//vURPeNlZV1whPDTuCx7qhXeCbmFs3VBk9hC4L3OqDZ/iD55XEB0Mo5+YMPpsWuCGZEBsJnKKENRWLUGgjDy4tFEUaQHwNg5HfwWIhIbpYvkFQAUBABjDTAOwA8wAggDMDJABDA5AK00RARIM2CswWKDZ3DGii6TioJnBYW6DpFUDs1eF5Wzvtq1hAJgkEo+x5nUdf1pYhAahhQWFgESXGM4+aFWWVJ/cubX+Xl7m9U1mbZJhZiFKqufd+X3qmvnNv+ES1WlWOyYuplOCbtZthqNTFm8HFkiju5tEWJBVRuaPpTXexkKIMMY41oW3EtQZLKaSaQOLwcUkWooVHQUjISSKlmnIHBwnEQQjRlAABI5AASDEIAKl0YAYAlmAWDipjY4EYYCKAXmgzj/Bykmmm0Wcuqg6HhGE1B3kgdgEdYkMgBOKmcq7RxW1BT1LkSDyjVuVzoBAfUOAGhEcB4YHkHTY4YJbnGjo1ib7nernn4iq4pJV69+6qt6lOO4lXmruTJib9elqK6utzIiDzO+xsLLGufjzW5ie6GiiC4rNjjXhtjiWJtjnrHjoLzShVxcVUglJy2yxAk0kPUEeKYwqhQUKEc4afZwhBIU2oBAtAAMAkAlL4wFQAjAVAxMCBwMxNQPjAHDqP5lk82yDAEETe9eMig4YBJZIIAjMohJpolArjzSj1S/epqCLmAgSXrtds7qiIdAeCosLDQmD0MKgo4cA/eiqQQTR8xXzNzy/nLLd1I6e7m/2rquLi+ZRW6Qh0qqqUttbiYQcSMma0XGMMyheJOiA5QcPsnghlLuD+WHDiGcbtI5qVZFTmexskDxc8XMlpHOLYSQMIyQ+Dk1z0NgKnkid3QgQJJcao2b8MtaoRAPmAqAwYESspregaEofZ7aF7mGEBQOAfGFKJmIAGWmpjr+c6E0sPofVITNu7EdbjM1NMsvyiQzNaH43QWb0Vv51p+M9lH09PFw+dzgIdBAY7EKyHeTfNPRmNurTETOZuysivZrXvZbdVRXVWn//vURPkJlfl0wcv8QfLArqg2e4g+VcHXCM8U2wLYOqDZ4ZthkFM198UZrJvH6EQ5d48aWg+aXwhqmtizTuic5kdETH9ma1Isksy8gkcb08jiziXcsjMieiclMEziSBBA36AYAVNIAgECoAY41mYnYKBgfiznqZBcYQwEJgSAAGJcKiDgBUkpCxqSRGJN8kqhEzReMJf25dlMcIQIEA0D1qksbk61JLKliQ0Fqao6WjsR6X15fQ+HCG0GGdsmMof27HSp7ep8h77t5kWJ8zCwy2ECH1dVX15WP93Cm7ZX+dxu9sMy6jHu4bSS3m1iibViaJm49pejS5TWs2zb1KAntr0bkRsBohidVQ2oLsanACNUUZIBRCkAPaAAIQEE9GZGAgCSYQCkJtNgrGFKFIe54XphdgZGAmAWYEYpwsCWMAErwTxcuOSN/0pHNp6tDyVzEqgsmAKVpsTll63mqXKuerM38frQ7FKSli1jOvF1Cgx2psxO/9rbmxhDtvnGyJ1NjPeIasPszFcWxUmj6Egv6WgDylmt2lY6b0SpjqQyoGIa6Ky9PJWTFMKLe06KsxPGYFgKTQcEGv6A7IlamopbaCp4dA1MaRAy3PSO82QDBOxuAMAMBJ1BGAYYDIOZgAtimSCBKYEYgB5P08mBxsY2ER42lCRPCAI9C1GauQy5920Vc/tNQyiRyqajpgMEjwFnpNLMLkU1RUwZG5l2yGE4wZb91nxed5nS3Nhe5DLj83+2of+7S3chnrfm5t3L3OKWx88m+4Xff/Pw9Zd2qr93MqWrxSuaOl2bIoxuciKc6Vfv2RIi2BjsNMS2TKJVatRD+p4bPsTk1k1Tbb0E0tKIV1K4zhOVVWmyjqIoUC0Eaa9SCMAcussYDAvmCgrWbYYQhhIBpnwIi8YUwGIXA4MKIVMOAsWs9Cgz0wzImDPUoTJ4zP7yrUlcAAEq2vxJ4zyDbcf7ZlUDWrsfuxKfwore5S+OOHBgMDqHqtkVSuENyFmWWkKG7QIc1/bGxo8zf/1k//vURPUJldR1QbPDNtK/bqghe4k+14HZBE8NOwL2OyCZ4yb4bQ81sCS4VlcuKKcPGNwVjT6ZmTRir43JmpI0exqaFyck8XQokCPF2Zb4RS1qe4eS4gSk8tmLYbVSEwyYiigfpRy+LmMRrGNx4kJVoClAOADEICD+GAYBWYRDMpkYgrGEoFudjFmQcJCKgJmN4HqTAWJXreWGaCk/SQO9DQ5GyF+nSuVqR/wwAV14RancX1CjYwpdGgelPFoui9rs+I6VPLx8v/NaHnPOo5WZ2bf9Z3Q+78w7uydp47mNtzMxu7Pae0Yx/+TeF4T3XdPcu3P3faZE1VKOU1ay7V5NMqw5Y4aSbuSLIQibhQVVU1lE45fJaRPVLjkHoSFAuLUtYiokFaMTitkU46ArR4qkAATPLTI/igCJhWJbhGRxgOBFHfi0SYRYMA8BoYcolwkD0QABhABZdyHnQcmMy9VlR6qKnt526YVAGicMyTDV7VeNRjnOzMxS5d5c/65/ojZk/M1/hgoydqVUqJkcjc9TAkhny0jQKyqdE7KSMMOlNCV8yQif0OAK0d2CmHoKIosOrzDMVU8FokmokkE4wlusTSQNt5FjTJMzR9iRfCS23rNKKLNqJl0kzpGwJGiQXNkHMljJcBDCjAArkAAs2VAAlLjArAlMFROsyCwIwqCsb5tO4WBGMDgD4xiwojAvAEUtehMVVB4orCH2h+B5RI5rOr2PCoAF9/bVj5yBaWLSW9anJTjKa2NmrewupYJJGLBKU+rafSPzyonVd2eRKWdsKV/L3mqLieFmRwoXRSvASamz8/fVylsuf3lWp5ai+/6hbqGkq8SLzt0ybYOar7cF+wmHmbYgmTrEtkxRV5dpfwRmdQyNI8mieqpTKNhWkAjkhUUMA0AEwFQUjCMOzNXcE4wKQ2TnKdcFgIQ4JcxLA/TAKAFLpqhbkyhnLqSd23Meyiose4XuP28uWeEQlEupcN2cMLcGXbtm/as1acPnosRTU4rT+SwrBRep+drRiKbx//vUROkN1cl2QRPDTtC37qg2eGnYVxHTBC8NOxrgOuCJ4adoSY+1SFQzEOeYQ4GCvdChK7lVYOWUbYj1pt985pofsSizc2WtlKUpKpxXpbUaFOm1/kcm10aSVvhPL65GqQkajLyFESjIDtiMmQvk83RIkWjonUJqo/rg8oAoAOh8NAXhUCwwtk+TGzA8MLkM012rSjB9BrMCsB8xyAqQUBYX9W6sFLG67ijhQM7jZLMvlu5yKq30tfWH0E9Qal/8v3oApaHuV2e1bMpUN/UEeqT8fpkET8ysyV6cQ2px/MuFQzmRbTKu7+YRRBBTjEcDgrvEIVHQLfZ1BBGhhWdCXQSxQ2pRO8tmvi4iil1lkCGSFq5nXryVIsZNwPEYnGFkSQrsnPIW6VP9RYlF9VKpEikotzoAAAnUABN5hxb4wBgBTA+JVGo+wAEkbprUIhBoLOmH+FkCgI2Mskf14YYfp9XBqbt16kKmuxAEAKz1PhyplVlmNbmMPxsV0zqMLfeuCVAYLpkj6Zb5XBF2s5esKk6nOeKc0yUnPXtNjuR0IW84eVCA2bK+SmhDhmQPebTMe2zTs531DN1JN5p+tM9J6Y5LUTNsuTQtEhJbJhRACPYBFAvo2jq5xp+qTADGWYAtNvAABK5AAC4AC6lsGAWAYYFhyZjkg6mCsEsZfclpgnA9GA8AQYsoJRgOgEy1/FyyWGnKfJuDrWINvfp9pdNo201SYnZu3SRXHO1YlcrAhfGQUQUiZRxLkBg85IW3AUHL2Mssyp83WtyQi63Hq/rSn7aAyI3VTHW00PdtSKBCQY0BTsGHNKCckoxuGRgolqqMiZOortiKJDiNzC7PRxz4UybJZGR9LjkkstZpg6k5VKt1mjRQeQPEMQTl1lbAuDEYCZLZqAg3GEEEyb90MRUAUakYpwZYYBgsHLFYpa3GCp9kNWRRSmjn6oJOg1ljZvX7NBS3tZW5zGQ3bmHIj927Ty6ek43+chexMNk2rXyf9ve+vLNlTN1vT3TvOM68+wyG//vUROYJlWx0wcvDNlC1rpg5eGnMV13ZAi8Zm1LauuCZ4adgtM4231Ghp6oszb114fzUpikqjy5IiTstWlNKNLTa70roZnsVxnLVX0nL6sFtv41KMzOSzp/eM6MWTmyZCLRKsnZg0OEURzc8hxn4Tp5vEJliLw0oJADCIA4uCKABChs5jcgMGAoFmYF0wBg3gmmAMBiYvwB4sAAg+zhUz0PXGPjms5r8r1exPIfUEY7hDN2VVeyymzs7ob2X7w5ziiy3caB4V0OHZOQ71Ld8tGpRZcJMwDeBK/j03mRuytRU1jh2riRAmJ5NSyU2KxhmZbD0FWZKrSV8EXwvD7UpIk6TdA0zNz4OPJPskIXdPWJmphaEkh0kIGpCiBpVxxo1JAzBhdAo2zNs2acoxQArAACC7PH6MBUBMRDomfSBAYCoShqxucmCEBMYBwCRiPhDAIDota8KvWVSiQxSS9o6aVVtzN+2svTlzeQbynZ5g+zThZ/Nq6+ZPv02enh3/jXx/sOzvsM3/+Nrs8eNg+c29eJqd/uIhtf46Vlz8Fkpil4uZR7lEdbDZGp/WNlHo2koTjGl4spyY7JRV1rI0jyNTrsMMc9rRa2HEiqxMmwdpuPWwncjUItKtQMEy+BmIiPOSwpAADBs+dg4nMAwuEeNWMHcHIyiIhzBwAwGgeDFNAFIgBnEmWewA+EOiQiXJkLSOCFVk+eyTMZHSJpEwiXkXUWZWWZmh6evclrksnssq41cbVjVp43/KsyPlGvUYf+8qe1K1NY/8fHa/jDuhU72OZUYQqasDsZxVRNxW1u4LE7Ebf3xv5sFPmMwdOu3WUvKROdSikz1VWtKRbNP5tyiE2fVXmVXtpoqtJATtI1SgLMGUeTJJQPJMg1sCgCBwE5ABAYFwxZmtgSmD6EaZ2jfBgDAEg0AMxDgUW0VtTxV1WfKWRe329DmFui7YsN7v7VSblF6VZU+HL9Obh66WORNV9lKHCyvkcyanUZMtuGf3vkcQc/oUWfjbhncORAsxle7//vUROmNlaJ1wTPGTXC17rgiY8kaFbnXBE8NOYLcuyCZ4ya4JDlC3AwcZ7mO0tQhkEClpOGBvUEC9VCaHMjK/bSyBhh7yKRdQ6xNeXF42uoKyWAsQJrTmrFk+XZnaJcWJVDbl1itMNNWEYBGACFQCEIwuAQYIxJpifgCmBaAmZxrrAKDvMCIA8xCAMCwAMX1gSxDcZk9PTXsYCyq2e0k63GFdTJUEVfjVAUWTWLzBLdeQVP7+r/f90/N53yG+x8/Q7Y/eVpZuPHaIZO/Xa/zoayldsla2y9XZnjOMV5JerUYy6hqayKM1VdqbM7SXbu5NHUBOXVabmfe2iSyKmIEEGlVURiaqYIo3JlThh73yOLE5iliFdVrSyiFpCHk0lmc4ALgBLwLtDoARgECHjTfRgyA3GOu5qZsIBgQRHBxoYHBat6nmCguBwaEqrSQJ4w0pMgBYWZk5NtWo+9iiefajhRqTUavJ7XgpVzxWWRZ9T3+F+VVV//3XqbH8KrI+7emlK981XapWSqpzR+F5Au61FNtarqrQ5BsvtSImCjc8ZI0mXlYtpzW8ZPXKXdo46qvFiTDT2ZE6m7pUq0gFDJQ0TkgebI6guC4RIkgySnhtypUeUPFanNFBklW4BQtQJQRVcwGiDTFfAaMIgFo1FHCzOgmMYCw4STQCB1LX2aLE3WiyCGYSqRfTZGjp0nHH8Rtp/JL61ajN74esu3Yxb/XjPtx7dV/mbfU1LuSn/4vlW27+M/qb6rfO5OuKT1XwldrpVHLnOW2nBKL3I5EmzlBBlJKNMP/TFsyfNvy2kHuUGm1Te7Ek5pxVtVSiBN1Fblhw4ky4NjZYTj6ULeKCxMTkxUkLarEPEIfeXYu11GNRjTQbUsAEGAUHeZb4DQjB1MJVl4wPQCwIBaGD+oaJryuXQQ+tm/eo/szXMe2J9lYT4lILPBWIL2Un5ycjlO0cqe/r1NNs+myWbcI77mjb03ty234/Z+rLeIrEkIZOsTj0WnVSUWgZuX5ypM5y4SLvQlF//vURPAP1dB1wIvcSaC0DsgRe4k2Fr3ZAg8ZNcLdOuBJ4zL4Gr1hLXp0Srn6plHKF0V8jCWSiaIKVU5AU0WgRt5SEcJWFRnpHhCIzI+qTsCBY0zsVyB6tCoPKkqqJ5VZY2hFKKZcytrQJFDAASRLCDAJH3MREAYDA/mrCtgYN4FpgPAfmGoDcztAWuJhjRoZhNW7KKr78mNZ9v3rE5ypMV6JJApzFIhdAyKCrJb3mF9iqjC88M7Nt7WfHTn1j+mXLNIH6rNyfml0g7FSXFGf7nhJ9tinIXOxTdkk6A09XN0i1Qsm8mlJYeLWH8bXOJVq2lq/Cy0h6zbophMdviyGy16WTh5mFWxx6vOJ6h7DJlSLXtWnbCgTIYTJBklw2dsq4BONF5QUFADBYN0yrQDDAnAkMdhY0waAOjAwAoMMEAVcymLT33cKgoqSpR2qWtV+7f6+UD3rOrl+DtMkpeVlrqjNRybeP/ONt7rxzdeP5qdjGKzO3/psbXv1BRTo77FzTe8ee1KQY49nQ6W/Ku3Ts+unJR6SyRZwATTpZxKTEovVkkFx/bqEy2RJfB6xIgIXqPSqCgbWPsC4wySNk4iQCcyZSaabJLSPlxGHy1toGrzBUQkqASJIGAIgDhQAB2UozBEIdMVEBoSAONiZO8wbgDgMDIYSoQsPL/ZPNz8BQDNctUcMamO409iAKnOWJdYRGZqYpPXIJc8g8o5lnxiaMPvZ2ZB5wzbt1qjl+yOf07VpHbzEanoaKKN6GmURdGvp7RUKYHPzNqg7sqhNMnW4dmMkBe6cCpIIsDQO2pk4u8v5cyVaPxNpMea4ukhMeN9KfaoJRXvuRJzjqr0SJStSrVz7QNTcrMpDu5sLjlaOXSpggQ1sMdgrIsOgiU5JAHDAcBdCEBjANBFMitBQDAvCAAcwgADGRLxdyHpXFe3a1+zLst1bsgvNapFKRC1lMk3EcG+oGgrjraaeMROkbH/81//fbWy/8zH1tbc+u3Teu2YyL/ZaE3toS2PTZJ3T80fj//vURPAJ1bp1QIvGTfK+jsgBeMy+FkHZBM8ZNcLVuyBJ7STQHNSk8glOl8R3s18TOVCqR+DC76mrmkIoRXNeR5FkWoTlUVE0UVF2VWZJUVxkkZVKJyKLDhRgcKlV2xK9dvBWryZO6JkhOq1NoEN19QpK4wLBbTDhAAEYBhqbmXAceiKdDUFwCgs1EBGZJ15JqK1B0oMF3Tm5tAiJyiJHcVUmIiJcRJICWNSvZ/blqnq+liWf+5fXZOUHK+01rrEWqtXOsyqY3dxRuV5T0qb1vpR7mGG9T7eINq2d6dvxSE4PrY9dOEoM5FpCmmnCexcxYmPZJhFp5GuTEJ9RvUU1SAgTVK0SAUfmaHjiFYUI2qLG2GdJcQ6Qk7S1xWwSlUZpWdVZAAU2TGZM5QUD04XBowkAA8a90xEBouwZBhCIwBX29jXbs9TYQBqlinLPdZ4wSiYNDHQ4uBaPX9Q55wgkVeiJUF54OmLx8raymeaX9z7d5iVv3dmePbPEY8dCLbudCE7u91U5RymSyLKA2T1VrEdzTVRcyrTDLaiJdlK/OaNtZQqvalNbjEsR2kfSfRh+t0KWHUi8VSY+Gn9C5cgJDQ0hbUUNIjQuYjnCaI0JdQMKiMuFVsaSjTGWalIYEQwIcMUYIgJJrPE/gPCGFDm8094hoQkgNuQQjALdJSz/YWqVqv6TMofrtV5QWqT5nLqPWh73YZO51cNy8tPcfG+5Tbltwm607g0nCeJVi6i6bf7KnlVRXtfPGTTmt1A4VIYKoJI3tJOuEoG5XEQJIz8i567OO7iMoqVXkkfWthImfYfNBZcosWaCT6Q7L9IUkUzRUR0Tkp0fKwPxJjyiCjBKQjwHmEnzD2pis+oRYnEtBiJUAIEh+bcgsYOhCeu4sbkOYgeepxHV3wqSDTJ6aCC5PFzdVqvhc5Qppy8vHSOVET0qnm15zf5c18Shc44iu5+98IRuFt/fc9jl4lnqcXeqj8leXk0c/D3k/KqmvmqRnfqe2cpWUY1bEOvDPahieq2u//vURO8N1aJ2QJOmTXC0zqgAe0kyVgXZAi7pJoLIuqBF4aZ5uTEx3+qQvPxPHDOCJDNGSEiyKxmT6SQPLkQ2Ve4ePkb0OCaZ0GjgpBdjWmhoVuITIWUdATijHnRObXmxccqL0l+DATFHMIUAkwNQbDRzEOMDEANdJgDAvKXvu58seKQ2N3O4vzjS02KYDCC0EJRSFnmZgRh0QF5Li0cEUuhtXKvpkCM183eOZTJCshvw1Q2nWencvW1JSK77YmzJg7RZ825ORLT6CDbEUFM4UpXirDeuR0jeqsfyBDuI5NoYFF03W0vBdJUoXmWH0CTIePkQgqRxRsfC7JdJERjxlUTkQKpisQLBAyUXQKk4bFdp1SAW83BL0FAGQDebtgoYcAgf7XaYCAYUAYYniS+EjcOA7eXyqas5VMql/8OTXPqbmedWlpb0xZREhgFj9kXiGj9LlXTX2gvX3quOnl55RO50GvklUorVSUMTVbzcxSQNVIMxMqpabaQYjGAhRzGHiirosoMugYgBOeNooFkYWoPdQJUJkrGyllomr13pDpW6yqYfYiWPC3Woqn7BPO1rUawpvma48tzTCEXlD2rCAcxIWEsQF3JCmONERPLCy5a5RploOALMBoYEwqwIxIFg1EgWwQA2LAAmAgDqqFlzjwt95irq5arxevVYGcpXUh354VIG+rp2mJPuonboxRFGC0hJ7wcS6DekaegLB65x5ylNJ+mGm1hddFzU9/IQxjLnawPP152G9oGs3VVMxd6p/Lwnbjp4tgVqOexW0QJy6R5dHvWjMyYfScL1pwcOvncR4jI0aGXzGBVcloz5ehFRGdqFDB8mFSyI3ebLYn4TDw+EpgJhLiUD2OAqHM6aH4kmY6RHDjAKXrYoxwBAIAZqeAhgcCh6rBwcKZEBphQHSCZhsuuUMttYzVL9D8Yr7wq18b125NztaN53K1LrVhPVQ6R1e9UpDpmCs0RiUsoXIc7CdT39AiI51sCC4Ig0za4oWRgxM3ZnKAxhTGMSmhRN//vURPcN9el2QAumZfDGDrfweMyeFgHbAk6NOUL9Ox/B7STQETUEtU6Td6qxpGhRIokCUWzLDCtGF1VEJ6UOidbi0HMa2SUa6Zs00cdp9JlYgc2MDKhfSfBO5dWSIujFXmfkSjAIjyrWDQA7gNwUuJRMzCHATMC4CY0mQdw5OkiAbwFCTb3y0KjpvlHwAhHFDJSBRpg2xE/pn3CCv33snI2F4IfK4MtfteW5HK2mPm0q51IndVj0zSFRKcH+dpqN1FgitTWFoyS7dLqI6QlkusUYcbYaJ1VHlem1a6BdCWmVaMTQMJGeKUTYgJzbZhP3kIpPKlWSKE1HEHcTB0UkcUYIGxEboKHExYjZJ0WHIMIi6ZkFSV4BAaMxaKm0gcliR2rHsbAkOnZK4Bp8NQExsLAuDpyMAAVPSlZHhZBwMGFIcq3uxD1PYnreFiz2NamivV3TMgJl1WBNFGJVDMWhk6Z2Pjscz27Nlw9e/1u9XH+Z+6Oe3qbbfD2W3I1Su/nL/Vl18kynbULMzVlBtmPYOLJJZSi5nXomJKxQRJrtQUTKr3FDKJdo5mzMRSeYPGiGkaSqhgciZMzjJEXISA6ZESrKMLtw24omWdFrBE2MSbNFA0awVCMLo3+ApOINpDoNQkBFUVQXPlkwMMABBACGCAhvS5FHXgqewv0HNS/v6/9+diRHXKNTDbfQltbYudtDHssvgBUM7/38N3KdmNaCrfPzZ85WbrTj7bvggIzMiHuo3LDnp2mXBAChb7ZxHM3vyFlZy59xayhvQrTKfRqmkJ+NCOHCR/pksWfGcokRnC0cpTh5RZ1gfynGqXaTXmtLcnxNP4Q4YOV5hhwuPy2R09F7vVWwWNyCOxxSB5p3Uus01SgBDAsexq7zAMRD9tBAwTzAoATAIUlM2xtXmICk0h+YwwhOPIdHQIYapj76BxSHS5b7KR5O7MSfK7zEPP1t+Z1nsj9K30POLvWwTZExfO/u2k8rZZnygwwwYzeW1mVaZilnK//Zfdbdo+k5cJ62//vUROuN1X12QIumTPC1rsgBdMyuGAXY/g6Zk4LkuqAF0zK4bHS9NNKR/GzDGz5w+wHo9JDouc0xxTXGTjx+8ZmKIsUTUt5wlEVk4Lq8qjv+RMK/PcfgOiAfGhkTzBw/GoZk6tBHVDwseaOErKZgtlV67E4nnbVNQdRUxLA0wlEQ7rbkDAWlCYghwinFHuisukN7Pv9hqzjP41L9evsiFhZLpCVrdMsqGYo94KQzaz4jVRD6xX77HLxth7M3Ls/wilZ114ZyBbksZPXs/wnjyaiURaGxivaj0ScxW1s8cXiuxFidtysvnfFtN7MFVyHhokLNozJxGhwc0qPL5G/GXqrhIy7lj1y5NbLPspi1eEl8ViKvRq1i0G4kxC4xbLxPKqUulRUYqtMXDuqaY8xpTUOAswGCUWqswSA08WB8SBkWBgwKDN3Hmjc/E8rVrKx2L7/Crb5eaJvLVr6zoVcWeerZ/z2hqGZmldnxcv3jclpQOptzVcP8zazCktmtlG20tbYbZIQlsJu6Y5XlNZswcR+I1y3lGPPWo09XjHVCGztESyJhpJK+62yRGsTLnT8yEhcR6HSWccecIcMZ9VAtCtdO8PY0qBR9O2uYJpTWHR6VDMjAdRrMOSq+yXDNctVmdx8SMAuKNM5VGFFiPJYw8Iz9maAoJgUx4IW1yn6Orf3cxqX4Z5UgwpQxuYkEgUAMwMaUL0fBIKGJCwwQwamtSRASQ2KtWjywHcdLkSq0oLTfaSufQosqhW4hT1vxhdsPzXpr5FmE7avwhJOSx79uDZKKnJ4jeaTSxGbKuWakoRFkZHZmJHiKrMT4rHSIVEy8iE/AB3EZmkTY9SA3gqMJJKLEjSpCTmzDciFs4EyQ+nBM+AKqMhIAwKoMGBMeFlWLAEXhMDQqLJO22+5TCc6srxxhyzs2gQi+mwoysZyaFPpxfQxI6uzbh8JSpmMTTp8xFDKaEzIiT7IsRhJGNMSWZlTmy0Y/NWNs8pUr3ultlK5S/2hUJ7JI0JaYpZPcXvsd//vUROoP1bl1wAOmZXCs7sgRcGmeF5nU/g6Zk8rxOp/F0zJxWNdBka7E2psbq2kTrkN8nKIDKtVpYvHVsv2Kii/WMzgwkoo1cBRJ1Dv9UmCY+VmEDB4Hg7wkChuwrbH+GU6gquOFs/VIgpoYlQ7WMjIK+h9nhcAEGiNEEQhgb8xm0Npph6DSV0apI3IKn77SS+F15ITpBKxwzEQaGNKNMtF68qw8xkzJR2Wx396xmlF3ofw0Lcm67KlAS8RBSTRmxuN7lnbFK2x/jM1cnPYl5yux/C7uQnjXuRSlqzDsdzFcfGz1/TKK2gS5seuJVS1LU9ePaGBPafWni8r0ud1VMLT4rD7UtwnL1RvTqkJOcMQrCYfkxU26sXlkgoQwUljLUXuNFITxJUkZkip4FeAalcj1cKBQ26BACCz9DaDCl7DVmIgQQTQNTZn0k1y7rnbLVL4iqJnoV+u2bgtGLz15/X20deXXus2obk08jWe4vQXkqnl+DvPbT3vn6nm4zFuq8kk0ur4taUaTVNI8RteUYRrZY2hlj0220MEXPqRc25Is5VHCHgdc4kPo1Gy0XtSbbSRIKtWMScQ9CcEEB5FY2wTnBeBUgKUlMgH4ro0S6hOPjgfNC2k4jRAKTC0AWfStwL/CpgmG4DGDoZmfkCCJVnZ/HtUBSI8RNkFkNpjlpMJ79lVdGSrIoHVYKrKP8Mjv3yuaFOotYms/+EH5q+LatcIpt3OFtMM3WT2PvsWSbBLpMayxeRhfya+P1pn2opJq8JJ5sEdtI+5iJ6EYwNpLzsvTKq41DuIEUhxVVCkeLCVMEiLsyLlZXyogYRFEMkFHQxQMIrEwicGuHXlyImFwJcswoFPc2EQiVGDQEyZcQFWsZvWZatQUGQtvzAIcPV0kOA7XDF4OSvjEWjNuTVa0dyzlW6Gvq3Xvl7t6CFDmKSuJdo3XjN/1VPlF6T13aWebisJJnRFpHe3MpNm3DIaDoNdC5x10PS6UIOYZZXl8KcGQiqKx0e1RMHsb677q43Di//vUROmN1XZ1wIuYSZK1TsgBdykyFonTAA4ZlcrkO2AJwzK4sezHZj8cMCfRxuy2Xp8nIdVrT8oTbF1qE9dWmL5+qOTg7PDpbC6vRQnCE2cGQOoTBja5cO4LNLHbnR/Y6M0XvJXi+bC52UVqkrOVwGBE2NJdHwzP3xYGpUApDJjv4807TSDPOV36SN8t2cLtTMUTyhJPQhA9IkljYSRYRr5lQUZJ+FHS/+XU/VlZ2mX+d9qfzeftvZ1ImPiktzaRhzCgJz2yI2ZlA/WIakmdarr28q5dmqhcsP30t5fMndi1auc5mW1UMDpSgUJX6IFp+NK3CXDskmfyrmuIjVScPKWFq5DhwlIRTbWLW11jItD00XyqQUUQoKBePimIAnFaPXeqVqoEvU6gQcjXIiMRCE4dNDBBh07g3Ni7320c12Sp/BKnFroN6UXaMs1GpQR5tQTW+t3uRUgp+lvh2O+cauoVd6pXZ9rVBqGJJPtVSVMwqTmK6mx3spKTpZumZwcrrSSVGWNRvQxW6pI2RqL27XMIYnVZwFbaJ446YrEqMgPFShOUlrzqugumgWIkkZRCMFQqrgfCpsgE4qWYmLpAe2uojLvXeuqBtYVlUCNYFyeaYuaIBPMgSPqkLWlIABQA461lYwwYzHYKMDB8yXmAEH0wyIwv7RxvVL3D6trOPcr1O8r2uzlOTYAmgSe2SFkQ4OSWJi6P1zGeFpnxhbs2lTFRM6rMaoPdinp0smF0m3YpF8ShjcFoFCZyX2+q4u0sR6MBz+ZeLHyFZE6tYVeiawPp3RDOXN42mgRkU3FiQSGzWoEiBVjCzoqCDGXiglcLm1LCmaiFNAeRwAMICJoN0IiOY0vpIUmylBdRlRw/ILnTjl2BAOGEfEJAg+H9EjJAbv5oQw4DhplwDEaG2ZL01TSMQPR3SkMZne2qmGlVnx1lmBOWkr/DJTe9vxvuhzy0LnezgkxBL7cslcrzW2ZzSgbRwlBX3OjWPLta0oUpGG8dZ/JSQll9QWYuBl0ImJls//vURO6N1cV2QAOZSaC3LrgCcMmuVznZAC1tJILeOqAFwzL5XlGNrOuSGMF2EJIouSI36Pn3ox8GeKLEX3J1SR8UKYHyC1JBsRLEKMGiRQ8aFCNEujBsbawaJw/ZOOo2ZFwoJkIgAVMWAGHxkqdJ19QLCOHi7iyguVzJYVS+NrTkSELdiIPTzvRmH5ZLMd2ctQ7yURrdJnvtfv6rhQ9iZgRDn+TUfvfCFZ7zUJdlTRychzGuZ2dLfbIkuxzXsx04xz4KZyEGJJWtg+sso8sLzhWZCQTsprXfOiSfgQOMgppZFBRHkgBJXQEX5JwwpaVWa5V2BxBUHVyb5/A100JBxRcfoqmzUa8/LxXPC7qGP6wyOkGEhUiPyvVg/DocRAWtlvi6jo8T3gdqAAFQcYgBYgFfArUGNzb9iKTPB6E40tTdwlBKmISCIIYTnwiCQVzMqJQ/LRMEh07CNaCZbLgDFA5iObA3JaQkD6dldUeH7xwHg8lsfjgwLZcRcZ/AxFAkgXx2YihYrq/llKtuMtwrHKr4Yb+1SLYX7t4knn/2PVFJ/2GaNKOu/BFh11JudRMaxrr/OV75uyhYhRNvT8CG1Vfy87pHAxeZpFziTGlyzolDHOk4QV3TV9qYzRoviipfga43dSmROqrmB0fkfKnIFVJXRSMgAD6iQOXUDAgQmZgRAFQ43+AFieQI0qbUUXgZ9KCpEJZJ5falE1dr6wjckFKcLEk0yAEMBx4cLXiBH3uXeI5Z9MlHnbRpA1RlraN31C3wqS4Ln5DLeV12kS1VtkmdeE7yq2/99eDU5Db1o1PfcYjQl/H9lL9LQl2sCWBTeJbDqU6vSxXTom+o/OWsyuxp06SvWVKWVx4Vr4dQFWKr1UR8JyGeoZbKkaPFTSeyPb6BeG/FqBE/Dq4ZkXJOUJcSfCxCKhKQkxeUOQ5RNZ0ulcrtMTNKrYsJXRoSujp1lsrnJhfbYXtH0aVWxmFlo+crsIDQqwCdRODVmNVjLGPUoebalM41Vdjv/w6tBlyO//vUROwJ1l11QJNYYbK3TqgSbMyuUxHXBMeM20JoOyAA8aa4RW8RPkTN1IjE+azgoE0kCKQqsiIgS9OfGaCMnzRmgbJzg5ZtsR+DIWCTwijSu86GRciU1gdk/1gwWnvzqBr1tLALHTcfI6Q4i5m0ZQtoyjoR0V9dWxYTNpifZe6hQva2xJRmreWzUBdS2PUlUox1WUjY+8+G6kze3aTPN1WH1KS6Fp+czdTtPeESRQY8IAchYEk3O9RStRQxznlTV9zyZGjb2CGj6asyCDaKCWISeadECSM0NqprwUEiSEPsUoPoYE54QokzTRKYPJyLFyAitAKDYjMlmULDIsQFDyWVUOTBmQYSCXIypOEYyCPi1QY0O4axqQi5yEioHZGAXWx1jGCaiFwRFkQ9ipu3/MfyrV2W3nb3U423ur15Ipc/2O6v23YlbBUTp4DNg1OLmz7JwlW2LCt1K88IygIxKLyxLADMP0iUsUVNFkqI0NoSHV6Sj3OZyfpImpOYaVUikyb59pZsTyWcDBO04SHRTlOAuTXHMMQlyMtmTY8xih1uD87B8FuZVw/LwfRrF1MNUlGfylHwP0akzGaaoH+nxHnSEsWJhAAADQUGcDVwpAOYDiTuZq5e2bLz30E/2mz4o1sP3cj0QE7oSNsobopo26MThFqQq6dGZSUTrbQODBJkC/ZhxZB+0t247PbNm95adxnOek7LO2RnyhRiTxtqs3Zc0syoJKvIbG6lQkpWJqVSpnZUgVdVEYxcj/TT8gKIQlXwEKeKZGl8apE4kmZvRyyf5zKk2mtduikHphK8kZJy5KR+UpJSBk2Yi8JUfZgI0uIfgdCWFoIUnDrDKLGQkuidWUMbIkSoQduuNDSKdohCkVDSM03as+AK9KSsfPt+ZQoYYss0R4tckK6nXu5sQitKCeLMXH7DCZr7FGknCMejYowarBleZM+iukqhYu0TnhE5BhIkWBREBI+TSEgKuLg0CyNzAJEgiC8iE+yoyrY3aLsnZbRIiZYiZtq6J6jS//vURP8Pdhp2vQBsf7DBzselDM/yFn3a9gGl/sL9u16AMz/IuPN6TIgTChBgHkgmFEknmLnIpniEp8tZ0G5FtUsUy0qSw5yr0XEmZ0sq+oVeaZul7oijoHUM5dOUGbO+hCiB1gR5edzc8HA7uRvKaMqEFQYLQxGxQhHGozHkarXDVmEINK4TaOFREo0QeniESi97lH2xXCBRi7q8T2dwZ81jXZY1M4qsO4GWdkgMcaZncYDZhGubt8uIrMdzCnZJ9bP5qjQEPIlbW1Eolamk2qToUZAE6QtD2GKlzqVR3HWTU40NNBMKaEfo+VQScv5/pkeDIzqUlx3k3gKovpfXJMIw00cLQvRzfLaaJxofGbFYfSVVxTuxPUPRZoq6PtUQAAPDclMo3HL67Flxq1INsNE3gPhp/AlaRSc7YagvRn3IsryvDzqXzei1bWq+VJtSLO45eVO74+DaaBWawlghefbFANWQEs3hZd7a5WZTYYH51xFlgYrvXqQSz2ZUS5VrCxH6f7EcacUD4/VUh+Eu5ny+J0mUuhPRJrIcuod5Cdl8sX8/WM93hxiZnIWNXFzU5B3JgT6HQiUnOYJ6IyKu10miFPxABnq1XMcNuG+rUuOky1OdStj7GQ7lm6qSFsClQJabi/ZRZaEZfnkZP003ciOKfmpnfGyYHKzaqbTKi7FtHeDDMFXE0WpDRVGdqe4cTTVEgteGNmbFC9Z7Nr2EvM7Rd4xv4V3kaPKmewsKUXrNrEXdKr8RtfKmx8pxZPpjj4OdXGyny5qlGps8SYn28USHLMYkrHOXA51K5G8tH6XYvJwKEsZ2PE4rkuS9tFtPUsJyrkhihUhLSGkGSBxHmS1NsKWQ1XJJD3EyY1XwVyGkM+mWb+pQjakjygyhKd8hL61nGIeU4j/qxRSp7Q+1dvnUp7Lvl/eVT16WnDqN528nC8cVbUyRQqXiswVcjDKSqA8hoyKEQhTJE0Z4quhGDAjFQmGoIxwE2w8QkUxKLk9TiZUVC04r4yuX1WZasdLq//vURPCHdcB2vahpf6C2rsewDG+eFkXS9qGl/srUux7UND/K6VXTZBVBjNSPQ8WxOnAwqlcIWezm7SLmYc7NCViyrVYnx9i1IadQsa9kXFTlITVbSJ1nMd5mm4h5LJT+XLi2NoEysJNC1gG3Rbmys4LM0O9NbnuoVPL1V1rF3Y+qSmYQGcgb1bS31T6vESPilLIXWrLckUGxfIsDq+NjPHJ++Y3bqMswLzbgYwiEUx4RCxDZWtbWJGS6hgK9ghuDxtXMBFpGhUL8W7JBbGyHBdRz8cTYOSGtq9NoFDzqUrQpJ8mi0N5SEfFjOCWypE6dZ1n4uWJBqBRwE6uyeI5qkbW9OK9IltLGSlDzdC8QR7nQ4DsPtreOUHRMAAKtHB640cSkMerhjkI9VSkxcGiDm/buhmoR2xGTSaV3uQ/SPCwPPWbedRWCr3a3jGwQKJ9Kvr2LD0ZG0hWgxEs5tpc2q5cEplpEgcikRo0ROn0+yt90+wN5+LtwV8FkYGJ4zuRyqlxXTosLaslgRKiPGqyQ5CWRFxD6ZIqGkHQR2F1XnRO20uahO9PxIpHshvMJ7GiZpf1Q2pRVny4mm2GG7MBPMi4NQmrk3JAmCVamx6oT2OQ1ywGGYqrY4W2SzNS59O9Y+JShyJkSg7VhuozKnfc/mHrM7t2xf11kHdwfHp1M393E7NWs5XHqW2822Vf/8TeRzemuw2WQR3bKrW2RwJ2D5LrRNZ7FV4zG42vWh0fKyypunHdk/dHAmrlR2fEpIdqh9OCsOYMyThPWIa4qjQyB9E0IAN/JQoAmCka4GLBaAHO7nQPxifHYc0I36mW0HUcBd0OfIed55FKVopo7i6H+TAcY9L86VcYpPRDSGEsQCkN44DTLMdo6z/WtjaSPJLuZIPDO3OApSy1MmLmgLOZO88nOeVMlI/KnCNCKqt/yDP+HpyndNaz2c9eY42FtD76w5a66aMHeUgcabYc11S9CvuVkOrkZ+tonMnkjJgYK9X051szfN0R2fFwO0Z0wIB+4//vURPOH9f52vahpf6DBbtegGY/4FaXW+AGx/wrHOx7AMz/QTAKGBLTqBrCBYeEWIvl8dkpysXNj+Ql47FChpVLRpINQKM3Ij6MdrFGgCzm8wl2HC5p5C46tOmRPvFYR4w2Y/kNPA/oDhAUZKs6ecdZM2GP4uqecOq5o+eX+rvSFKeRaFlxsicoSZ9ftby3e+01L83D8qeWC1OKN7jF0eQUEZdgk1BIvnHCQyJID0DIE367cWh6qGJXv2toePV9iYkOVM015ZGU5j/whL9OxSuQtYbiXvVQiYEE/EayrlTHY6blaby2jkSaZfEif6EJpdqtkOFPLLcVJDy7EzKNySI/SwlgQgOlEFYXc2TvUilJwX8iTSN1ncDjPVqmnAECAABDmwtctnyBOxlqjT04FkYw+bP8UssgnJBWdHM7Cz8ymsEiaIDzfF0Pf9Vsqg6mfrLUsksrNiBmMO8NUJ0FtvQm2HEWRcOKk1B4TqmDhDFeQX6l8FFF3rlgfrKVQluXjBTrErUNfua9Y0bnlBVqYNFLJxEoyEcLNGP4+0lPlUKhsIlgQtncVeZrYVEFVNr9BsCnTzwmqIJwcKLL42o5cukeqJUNjUWF0NZTn6NnIhrKoy2n4yRgEkAAAzyQnMqTPo5lwyBnmZzhwus+eSHTNX4tOnnh/0G3MFGRzhk3mu+nepx7f8mVnJsw8fA2mQposXdLSaLapIZQUxEsjIRAyWZNOkkTI2yVYPKiOZPxUcBYlRDrgwF01wBHkYEFVgoD4BWrZ5tb8naKR51pQ5njA+XmRPJ1K3YS+zMTltXRID1DYRiM53HUpnBeQhLP1IojGiqY5kXMX1Uq6BduP02rHwNY4zQRo+yWjdZCWJwSgQACh8qE2lBvYdhEZQzJ0rl4PuqHuXa92zasVQ0ilnY+IrLqTEsnK8uM8+ST2kdR+GGJQ7SiO2ppRPQY1I3ybUCkV6sjfB6QKFbB6aPIn9GYr0uhITRg8KhWMkCETBYcBAQAwD+kcnJRv19WnK/O+RtYJ//vURPGBNcZ2PcBpf6C3bre4DS/2VrHW9wGl/srUux7gNL/YE44MeWypc1chheOo1ajiZJ9C2xpmYj9ZsKY3ESW4jCmUZLB4KM5GMxWIjQkyVqbi2pWc5zjH2vD6VqLE4K1XDqP0lACAjjIRMZR2i3NSsL7LYOZYSnlr115smbnDKxztz7mcbMrD5V7ty768I3Vz8Y3k7nmnIprmyC6UVx8khVhKi1gVPklloBeILcSGVwofEDaMeQBRYhKEwiBEqKAQVaXF0yoHCg0USp1K5DlZc8k4bhpvEYfJ7xDrdqlmYTvVBnFiPo61pUq6RWqoxCRrZbC2tZiMBY6HvcuJYTrOYW1NIJhXRuvFxUvhxpc9FCSl/CWlU1khR27QSgqBc7hWcjQxgoXWokKPke7kKP/d8jKzYP7oarXYL9NpGSItv1LxfK2a35HbjbcDDcTqWMfsxQ9Au+K6ywgMKGBAqUXAtNSTZgj4qE6pxKXCXgPGtRqpnTrIgjLcYymdp5ZRyuRK00wGxQKVSmAu2tPG2hqpUSejM6REbiHm0tp9M7K9VuhvKUqijSpMzAjKdnL+nR1p48AtY9zTQZoOCkgpZGqgt47CmSA7ynfrkhJNaMse6kWY95AJBBACmFMRQ/ixyplB0dgfiRk8UVDWfiOrIziu4YSc3VDLv5ERKczhIpx+f7ccl16aT2NLwu4dpilsuB+jF/V3W6LnqNIkBfILKOJhZkUjJEFhUjJCcrJQhFzosonAJ0KYDJ5Y0BQAyak7FZjdV6UYkGSpOLyaJ1FcViAdr40FeXOeRCS9JAypDiZrKZnbzQjsDWe5RESnMHCTszV1KyH64HQPFYN00jlMEtiSPRYUg/leWIyjuWXtbDwQphOw9GU0wmr4IMTgxndeG6nlidjhs9akZ2sxk+PbGVT9FmyWQcRE9vGffN/SbZpSqLknRyadXKbwoDk72d1q/ljxYfbGXO2SY5IcGDLd5l9ltkgLzxnevUacEBD3LEBnb3Ur490s3XUjaciLeIcz//vURPIJNc51vQBpf6K4jte4DS/2Fw3a9qGZ/ILNut7ANL/ZOCKrhdG0PUX5jfKGK0nBk9iHHSnKGnHXZKGVhJYYSTN1WMDEeyvRJoqyOxsa8hJlQj8J+eTIiVYpyxJNEthJD5L+O1xkWtg87nCCVVMmam1VQZMKqdWrCYQSz2LM0VH3qy3L3hm5rTh/XL53QS+LRjC1fGK0HTx9ITGNufJaVMW5RBSpxiLx+ycnRoFpInNyL8VIWEJdUTihC9ogKiteyMA9siYSMIRK8+DR+1WXBcs0ZIRjEX0MVzf1ajl0hChF3LglWhLxTaRp8MZ1I0nZf1MgzjQk/WR6lEOYRsuKJRqJUbBoUguhNiwsZuMCawZ5pl/Qg0Aw3qhfJwXShK/czIweabkqHZsFN3bYxpI5ORNcJme5GqVyDU88sy39AdJzaVQ0nWyKtL777DiOz9LOJnHIaxLrHbp3586bu6dc8uXwmbRg0tTPsmaelUMlJx9jM8CsqaneKxwKKFMwN2lpRF5nE0THSyMyIgHgJrCwIReMx4GgeD0nCUAIBEMgXHgITh9CiXFSdBurqZEIs1njgtISYKvN1eIahTNBPplgFuOsOCHDUSKLieSHHUfyXLmcacO5ZiQAAB9TkVIbGsYOlHyIidoYSM0VImRw50LkUOKDfnlnokhvhlJUJAUd9xLxH2qpSdSpOW+sJhhxI0mfnqHbXFjdigwIkejykrqrrw7oYzK1RvZPGjYfsp/oNqTLU5Jdu8VQJZdLpJq09D1S7xXoVi2FFGNVcWQCnQ0yzwo/ZXFFKZhVcQ8mshKUqhy4GWjIZtjILDPOrYCVYWxrSw9JMESZaqT6ZULmijNMhkWzjP9XIWhiMONTiLccIL4EDlLtEUsphAzZluZ5NYTozZdO6yaaaX3oM6xdYhjDwvzKTjLmXaftVr/r712OjmzjMf1pdVRFNH2bMtDhpYdwyS44mOklKpDdPSyGVHKmpJYulq866sHclD2XFwpQkTBkJ6kb2MpToc2dWRSz//vURPEPddV2PQBsf8C2bre1DM/yVtnY9gGx/sLaux7UNj/YUN3ZupswnMz1IxHaoVaaS4bcm+W4/Wk3k8b5gKggh/FgUJ3id0PVTsSUMFKJRnPBMHMdZzGQpVAuFMXExQ1aNiqweUKLBKXKZH6tJ6spJpC0lgzqZmRwL1QQJmjSfzPdYlMn8WVcLbeNs3m35tsdq/zC1ds13O/6ZHrjcXuqYEOB3r77DcGI1qG8pfiTkx4urhc1FxIXsycjiUoEZ4QdLZu4VhOGk9MCyeFVCbWaEuUcjCQKElRJkOSzNDucKZ2aS5elvP8/kPPRDE+I4YK8aLuAb7C5LR5oadSRUK2P442w9joWz8y4oeSxULk0TkaKnGP1RnedyPIKXZUs1ULosACyhkQR0hyxNOqMz1kJRbiVCsmwP0GTp3pMxqanLSSgQcy/49IJLh6Jz1pXbKbarXV/mM1Jwh7XOIOcUPQ5tkEmLLpkIJsdAsw6lvY0pkow6aoTY2s7yEwIbqPB0wsCmfw4K0mE6XdedLu0rchDGuIdFSf6fOhzeoYrz+Q+5jsatRCmVz43R/RymKlPNR4p829GIhbMS5cotVMyEsaUMo/XMtra8eKxiem8uRMIqrT5CD8ZGTaO6SnbMNCJEipT6rF4W8ohh2zkHEHBs9CCU3IEuJks1HiW4ciI9z++ZMHrMy8i755qDSGY9kEQliyah8vmF6uYdavn2Y/Z5Viycfw4SmlXTYp4a7Vb988UqgUCvgLadWV4nx85LgVBb2Q+2OCqXh3PENiMJyajF8sp4LKwI5OszkZqcVqGLk9jtUyrWEJLii1GhrYrIiHo5JoI/5w6ifromaFkyCQHadiILqLqY48j+HsK6TRuKpNv1Cuz+VM8LFAiI1JjnmDI64t23oQs+k+cY2YxEQu7jzt1RfU/tc0pnVIQlmtSSuUI5U9nDZtRuWLam3JYu04rqR5FN3dsWRO0RBYlubb2iZsskMGzJ/WTBOhPlygqGzgVYJFgiOLAoGw+ukoKSDJ0//vURO+BFb92vjBmfzC9zsegDM/yFlXY9gGl/sK+O18UNj/gnCwk1aoH+3ygQxQXVZyuC+5Q0MZlwqm9sLCsrSBXLOJMP5ZUu9H8kB2shI1c2ZdtKfQJ0qtmYNmesHazuJNnRcVMbhQ1V5bFBcQIXGYjtam5UvdbSM3I6xbsD6+e1eqVyfvlO8nNezJFXM3Cj2/JtLc0zuxq2wNb9YX/l7MZomo4to9VRZpouWetySmuLlcnpcTIjJO64eLbxOOlVOaLDlJc7RVP6r20yRQYnQSlgS1B89A8WD9xcTSCSx1ZEsf1w6HbBoM1B4awY5xKU65kQyqhSObacTMxF9SWjofMrgyIsyyEtzgzssMW9MF9UmErQ4xMyel9UTldggBEBEBUEQ6XKHHqjSdd3PYJGo5RHmagu71jZAZBdSryhcgTFP3174abT6UmldWVvrkFqUisy5G1N3LfpceWm7L7N1mbkS8zaS2M7WrDAxKbYIqmDJtGZF1SN8FMnQfOiKS7q+QFSqRFoEthpLLjtWOllDVe2rqAmqEkSiwvmezI9tK83CUqVzQa5JwXhjLY6KYgrmN6QsRYEQsnIiCpKo5BMiLQkn5TinH2XUOA/VNcvinBzl0aZXCPCIASyAA40Wk5V2NrkcS7aF4YYqNpGopoQ8rCU2m1zb6lT8uWQqF7dw++Utyc93YvyC1xr1dIfuvi3BFXqPn0lNbj1Um145U5EziTE8FkiMmMF2SAjFBdRvZQJ9PvWERQgS6MzoQFK57QJndVsi6SUBnc+6gxJzRVrW5R4j5vLkarBIgYp/HfOkU+h7bAJGdzCeR1Ls9Tab0Y5u1chyjOJpMkthhkrL+d68aJOzTb9FxNggi0kXYpBzKvlaz5RiMpkpZGruHBHGVSbMHbGqRT2XEU/6eZVtWYRyHTjO6l5Xm46D4Qa+ylOS0I1lLFoHEMT1SvTqZKjQtFVhWwkoI4kFzZnJlERCoobMmyUwXBZSBPAXFCxlsTk8ScGSR9OrE84PkexUPU00Sb//vURPGHFc92vQBsf7C27rfJDS/MVqXa9qGl/sLdu17ENj/Y6epM2GUoFH0+bzY7Ps8z/PVNKZFLtgUCNZFCrynHjFPAuDOxLtUmgkzdfJpJLZkl9JufxjnENMvh2IUjBMS9n+zw7ED+oJC0NzJBjJAYRWDp710gxFSiUqmeyuefWkuz2UtR9THbIvO0/3bLMxzWC2/9GpmuTy3KXtesL7Momtu66ywyubu5R88Wvckk6LYgH7xnA6YNJj0eFjJ0nXC5MqUMGJ5c7JGl2EdKAYjIQ/bUqS+M5wFzjlhbEWuyHoxKqaGqi1SZc4ijTJaIUdZ9YPBQNCGJZdQI5XIlVnwiCeLbY3lUq1Emy3G8WpqOI5DKR6MT6GkpGOb7ltXal6rF5YZbRwGMpcXa6ylrKEHE4W/DQwpRy2BiQoCzGJaq2qkaDu21ml+2l+nl1mtWuzWy57crFtTpWxH3ytWtqdaKawpqLpVLt0TZNOXMOStc6ZstQzZYWnC1QnBKYE0SQWI8BdPI/OimIpeXk1IDZ8ggNdqhmqYnP71y8B4uqCUShBMSbGNHBon8+UgaohSnQktpsIXMf0EIcYyHJ1MGUO00w5chenId5+GGP1coEhUUlx0kuElDaKVVVI0cOmf3eeWi1Hb+856ps+VW/EjnmfUnPyX2f5znXG5vl58tWz3zZjfGstaX6tdDVxg1WpQ2rtmSwml7UPstQXPxBUUE1FWE12ExSKUlSzaZxcUoA0nEsYDRYeYOmQFBQ8sAZ5qBpltoVETkujrOBLuDLXByqZWokmrSLcep0oo4lcTpXQiehykJVjScsymW2knJsKuKrcK1sLaqLi3JNxcEcqScsrIXJImiyocW03S7K4lwhJfjpMp1I92xIkl/TzW15NR87MmkZaqZ8/85Pk0AhJHK/9U8tX/Oo4k/+mkW9WROz0+GxWtj29tLNWmdrVnt7TGL1tDI+MoEqJ6YT2xJLpw8VkdLmNGVtuCYdjK6aBOpupPiSmBUvmD6EZHQlCEPxWfc//vURPCPFd52vIBsf8C7bteQGS/2Fk3WzgMx/wrJO1pUNL/YeW80qKr57zT2urmUrn6OKAueZtbezSSTVs4lQmMrXxbSZHon1Y/bGNoOZ2xP3FDm1TP24wUKYldGYp5j+VVYLpyQ2EbqgWoIkFAQzhjJtuk2qqWxrGakBEspGTBbKtJlDSxyolV4ZcazBicmpaxl/+WbHPlofLZXWyusVZ8avkK+RWakqkmISUAoGWa20KrkSKbiImu4NfUKxVkLLqTOGlmqiqoCScFcAU2wTNyFH6fBYldCUqIQROZjlO5HHKZx9zMxui4qxRIaTIXInQ9RlTwrG6QlZuyvqp5rXKYQsuO0NUy7gF2SymWsXOUhKxqjMvFiOUnxslAlHelMQU1FMy4xMDBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV",fS=()=>{new Audio(TP).play().catch(e=>console.log("Audio play failed:",e))};We({isPopupOpen:!0}),We({isPopupOpen:!1,searchedText:"",selectedCategory:null,articleId:null}),We({activeTab:({event:t})=>t.tab,searchedText:"",selectedCategory:null,articleId:null}),We({activeTab:({event:t})=>t.tab}),We({orgBrandSetting:({event:t})=>t.data,isOrgBrandSettingLoading:!1}),We({orgBrandSetting:({event:t})=>t.output,isOrgBrandSettingLoading:!1}),We({hasLiveChat:({event:t})=>t.hasLiveChat});const OP=We({loadingStates:{initialLoading:!0,fetchMoreLoading:!1}}),RP=We({loadingStates:({context:t})=>({...t.loadingStates,fetchMoreLoading:!0})}),NP=We({conversationsData:({event:t})=>{var e;return((e=t.output)==null?void 0:e.data)||[]},metaData:({event:t})=>{var e;return((e=t.output)==null?void 0:e.meta_data)||{}},loadingStates:{initialLoading:!1,fetchMoreLoading:!1}}),IP=We({conversationsData:({context:t,event:e})=>{var n;return[...t.conversationsData||[],...((n=e.output)==null?void 0:n.data)||[]]},metaData:({event:t})=>{var e;return((e=t.output)==null?void 0:e.meta_data)||{}},loadingStates:{initialLoading:!1,fetchMoreLoading:!1}}),PP=We({loadingStates:{initialLoading:!1,fetchMoreLoading:!1}}),MP=We({currentConversationID:({event:t})=>t.conversationId,isChatHistory:!1}),LP=We({currentConversationID:null,isChatHistory:!0}),FP=We({isChatHistory:({event:t})=>t.value}),jP=We({optionData:({context:t})=>{var e,n;return{...t.optionData,offset:(((e=t.optionData)==null?void 0:e.offset)||0)+(((n=t.optionData)==null?void 0:n.limit)||50)}}}),DP=We({optionData:({context:t})=>({...t.optionData,offset:0})}),VP=We({conversationsData:({context:t,event:e})=>{var r;return[e.conversation||((r=e.data)==null?void 0:r.conversation),...t.conversationsData||[]]}}),UP=We({conversationsData:({context:t,event:e})=>{var h,p;const n=e.conversation||((h=e.data)==null?void 0:h.conversation),{id:r,last_conversation_activity:i}=n||{};if(!r)return t.conversationsData;const o=t.conversationsData.find(m=>m.id===r),a=t.conversationsData.filter(m=>m.id!==r),s=t.currentConversationID,c=((p=o==null?void 0:o.last_conversation_activity)==null?void 0:p.id)===(i==null?void 0:i.id),u=Wr.get("widget_isMute")==="true";return!!r&&!u&&!(i!=null&&i.is_customer_reply)&&!c&&r!==s&&fS(),[n,...a]}}),zP=We({conversationsData:({context:t,event:e})=>{var r,i;const n=e.conversationId||((i=(r=e.data)==null?void 0:r.conversation)==null?void 0:i.id);return t.conversationsData.filter(o=>o.id!==n)}}),BP=We({error:({event:t})=>t.error,loadingStates:{initialLoading:!1,fetchMoreLoading:!1}}),HP=We({loadingStates:({context:t})=>({...t.loadingStates,loadingConversation:!0})}),WP=We({loadingStates:({context:t})=>({...t.loadingStates,loadingActivities:!0})}),GP=We({loadingStates:({context:t})=>({...t.loadingStates,sending:!0})}),YP=We({loadingStates:({context:t})=>({...t.loadingStates,uploading:!0})}),KP=We({conversationData:({event:t})=>t.output||t.data,inputFieldState:({event:t})=>{var n,r;const e=t.output||t.data;return{contact_person_name:((n=e==null?void 0:e.contact)==null?void 0:n.person_name)||"",contact_person_email:((r=e==null?void 0:e.contact)==null?void 0:r.person_email)||""}},loadingStates:({context:t})=>({...t.loadingStates,loadingConversation:!1})}),ZP=We({messages:({event:t,context:e})=>{var i,o;const n=((i=t.output)==null?void 0:i.data)||[];return(((o=e.optionData)==null?void 0:o.offset)||0)===0?n:[...e.messages,...n]},metaData:({event:t})=>{var e;return((e=t.output)==null?void 0:e.meta_data)||{}},loadingStates:({context:t})=>({...t.loadingStates,loadingActivities:!1}),isInitialLoad:!1}),QP=We({messages:({context:t,event:e})=>{var i;const n=e.output||e.message||((i=e.data)==null?void 0:i.conversation_activity);return[...t.messages.filter(o=>o.id!==n.id),n]},loadingStates:({context:t})=>({...t.loadingStates,sending:!1,uploading:!1})}),qP=We({messages:({context:t,event:e})=>{var i;const n=e.message||((i=e.data)==null?void 0:i.conversation_activity);return[...t.messages.filter(o=>o.id!==n.id),n]}}),JP=We({inputFieldState:({context:t,event:e})=>({...t.inputFieldState,[e.field]:e.value})}),XP=We({inputFieldState:{contact_person_name:"",contact_person_email:"",ticket_title:"",ticket_activity:"",ticket_activity_files:[]}}),$P=We({messages:({context:t,event:e})=>{const n=e.activityIds;return t.messages.map(r=>{var i;return n.includes(r.id)?{...r,analytics:(i=r.analytics)==null?void 0:i.map(o=>({...o,status:"seen"}))}:r})}}),eM=We({conversationData:({context:t,event:e})=>{var r,i,o;const n=((o=(i=(r=e.data)==null?void 0:r.conversation_activity)==null?void 0:i.log)==null?void 0:o.new_value)||"";return["spam","resolved","closed","clean"].includes(n)?{...t.conversationData,status:n,is_spam:n==="spam"}:t.conversationData}}),tM=({event:t})=>{var n;(((n=t.data)==null?void 0:n.conversation_activity)||t.activity)&&fS()},nM=We({lastPlayedMessageId:({event:t})=>{var n;const e=((n=t.data)==null?void 0:n.conversation_activity)||t.activity;return(e==null?void 0:e.id)||null}}),rM=We({conversationData:{},messages:[],inputFieldState:{contact_person_name:"",contact_person_email:"",ticket_title:"",ticket_activity:"",ticket_activity_files:[]},loadingStates:{loadingConversation:!1,loadingActivities:!1,sending:!1,uploading:!1}}),iM=We({error:({event:t})=>t.error,loadingStates:{loadingConversation:!1,loadingActivities:!1,sending:!1,uploading:!1}}),oM=We({error:null}),aM=We({unreadMessages:({context:t})=>Ie.filter(t.messages,e=>{var n,r;return!(e!=null&&e.is_customer_reply)&&Array.isArray(e==null?void 0:e.analytics)&&((n=e==null?void 0:e.analytics)==null?void 0:n.length)>0&&((r=e.analytics[0])==null?void 0:r.status)!=="seen"})}),sM=()=>{Wr.remove("easydesk_chat_widget_conversation_id")},lM=qm({guards:{isAuthenticated:uS,hasMoreConversations:EP,isLoadingMore:CP},actors:{fetchConversations:mP},actions:{setLoadingInitial:OP,setLoadingMore:RP,setConversationsData:NP,appendConversationsData:IP,setLoadingComplete:PP,selectConversation:MP,deselectConversation:LP,setChatHistory:FP,incrementOffset:jP,resetOffset:DP,addConversationToList:VP,updateConversationInList:UP,removeConversationFromList:zP,setConversationsError:BP}}).createMachine({id:"conversations",initial:"idle",context:({input:t})=>{var r;const e=dP(),n=(r=t.userData)==null?void 0:r.isAuthenticated;return{...e,apolloClient:t.apolloClient,query:t.query,userData:t.userData,loadingStates:{...e.loadingStates,initialLoading:!!n}}},states:{idle:{on:{[an.FETCH]:{target:"loading",guard:"isAuthenticated",actions:["resetOffset","setLoadingInitial"]},[an.SELECT_CONVERSATION]:{actions:"selectConversation"},[an.DESELECT_CONVERSATION]:{actions:"deselectConversation"}}},loading:{invoke:{id:"fetchConversations",src:"fetchConversations",input:({context:t})=>({apolloClient:t.apolloClient,query:t.query,optionData:t.optionData}),onDone:{target:"loaded",actions:["setConversationsData",We({isChatHistory:!0})]},onError:{target:"error",actions:"setConversationsError"}}},loaded:{on:{[an.FETCH]:{target:"loading",guard:"isAuthenticated",actions:["resetOffset","setLoadingInitial"]},[an.REFRESH]:{target:"loading",guard:"isAuthenticated",actions:["resetOffset","setLoadingInitial"]},[an.FETCH_MORE]:{target:"loadingMore",guard:{type:"hasMoreConversations"},actions:["incrementOffset","setLoadingMore"]},[an.SELECT_CONVERSATION]:{actions:"selectConversation"},[an.DESELECT_CONVERSATION]:{actions:"deselectConversation"},[an.CONVERSATION_CREATED]:{actions:"addConversationToList"},[an.CONVERSATION_UPDATED]:{actions:"updateConversationInList"},[an.CONVERSATION_DELETED]:{actions:"removeConversationFromList"}}},loadingMore:{invoke:{id:"fetchMoreConversations",src:"fetchConversations",input:({context:t})=>({apolloClient:t.apolloClient,query:t.query,optionData:t.optionData}),onDone:{target:"loaded",actions:"appendConversationsData"},onError:{target:"loaded",actions:"setLoadingComplete"}}},error:{on:{[an.FETCH]:{target:"loading",guard:"isAuthenticated",actions:["resetOffset","setLoadingInitial"]},[an.REFRESH]:{target:"loading",guard:"isAuthenticated",actions:["resetOffset","setLoadingInitial"]}}}}}),dS=R.createContext(null),cM=({userData:t,children:e})=>{const n=Xo(),[r,i]=R.useState({}),[o,a]=aS(lM,{input:{apolloClient:n,query:lP,userData:t}}),[s]=wo(s1),c=R.useCallback(async h=>{try{await s({variables:{inputData:h}})}catch(p){console.log(p)}},[s]);M6(uP,{skip:!(t!=null&&t.isAuthenticated),errorPolicy:"all",fetchPolicy:"no-cache",onData:({data:h})=>{var C,k;const p=(C=h==null?void 0:h.data)==null?void 0:C.conversationRealtimeListUpdated;if(!p)return;const{status:m,conversation:v}=p,{id:b,last_conversation_activity:y}=v||{},w=y==null?void 0:y.analytics;b&&(m==="conversation_created"&&a({type:an.CONVERSATION_CREATED,conversation:v}),m==="conversation_updated"&&b!==o.context.currentConversationID&&(a({type:an.CONVERSATION_UPDATED,conversation:v,data:p}),y!=null&&y.id&&((k=w[0])==null?void 0:k.status)==="sent"&&c({delivered_activity_ids:[y==null?void 0:y.id]})),m==="conversation_deleted"&&a({type:an.CONVERSATION_DELETED,conversationId:v.id}))},onError:console.error}),R.useEffect(()=>{t!=null&&t.isAuthenticated&&!o.context.currentConversationID&&a({type:an.FETCH})},[t==null?void 0:t.isAuthenticated,o.context.currentConversationID,a]),R.useEffect(()=>{o.context.optionData.offset>0&&o.matches("loaded")},[o.context.optionData,o.value]);const u=R.useMemo(()=>Ie.reduce(o.context.conversationsData,(h,p)=>{var b;const{analytics:m,is_customer_reply:v}=(p==null?void 0:p.last_conversation_activity)||{};return!v&&Ie.size(m)>0&&((b=m==null?void 0:m[0])==null?void 0:b.status)!=="seen"?h+1:h},0),[o.context.conversationsData]),d=R.useMemo(()=>({conversationsData:o.context.conversationsData,setConversationsData:h=>{console.warn("Direct setConversationsData is deprecated. Use machine events instead.")},loadingStates:o.context.loadingStates,getConversationsForPortal:()=>a({type:an.REFRESH}),isChatHistory:o.context.isChatHistory,setIsChatHistory:()=>a({type:an.DESELECT_CONVERSATION}),optionData:o.context.optionData,setOptionData:h=>{h.offset>o.context.optionData.offset&&a({type:an.FETCH_MORE})},metaData:o.context.metaData,setLoadingStates:h=>{},setOrgBrandSetting:i,orgBrandSetting:r,setCurrentConversationID:h=>{a(h?{type:an.SELECT_CONVERSATION,conversationId:h}:{type:an.DESELECT_CONVERSATION})},currentConversationID:o.context.currentConversationID,messageListUnreadCount:u,handleUpdateConversationActivityAnalytics:c,state:o,send:a}),[o,a,u,c,r]);return E.jsx(dS.Provider,{value:d,children:e})},Ao=()=>R.useContext(dS);var l1={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_CONVERSATION_ACTIVITIES_FOR_PORTAL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConversationActivitiesForPortalQueryInputType"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getConversationActivitiesForPortal"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"created_at"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_customer_reply"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_ai_response"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_auto_response"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatar_file"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"analytics"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"emails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"is_channel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"files"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"log"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sub_context"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"new_assignee"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"metadata"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ai_summary"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"has_results"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"current_stage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"next_stage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"channel"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"meta_data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filtered_rows"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_rows"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:1103}};l1.loc.source={body:`query GET_CONVERSATION_ACTIVITIES_FOR_PORTAL(
|
|
262
|
+
$queryData: ConversationActivitiesForPortalQueryInputType!
|
|
263
|
+
$optionData: OptionDataType
|
|
264
|
+
) {
|
|
265
|
+
getConversationActivitiesForPortal(queryData: $queryData, optionData: $optionData) {
|
|
266
|
+
data {
|
|
267
|
+
created_at
|
|
268
|
+
message
|
|
269
|
+
is_customer_reply
|
|
270
|
+
is_ai_response
|
|
271
|
+
is_auto_response
|
|
272
|
+
type
|
|
273
|
+
user {
|
|
274
|
+
last_name
|
|
275
|
+
first_name
|
|
276
|
+
email
|
|
277
|
+
id
|
|
278
|
+
avatar_file {
|
|
279
|
+
key
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
analytics {
|
|
283
|
+
status
|
|
284
|
+
}
|
|
285
|
+
emails {
|
|
286
|
+
is_channel
|
|
287
|
+
email
|
|
288
|
+
type
|
|
289
|
+
id
|
|
290
|
+
}
|
|
291
|
+
id
|
|
292
|
+
files {
|
|
293
|
+
id
|
|
294
|
+
name
|
|
295
|
+
title
|
|
296
|
+
key
|
|
297
|
+
}
|
|
298
|
+
log {
|
|
299
|
+
id
|
|
300
|
+
sub_context
|
|
301
|
+
new_assignee {
|
|
302
|
+
user {
|
|
303
|
+
id
|
|
304
|
+
last_name
|
|
305
|
+
first_name
|
|
306
|
+
email
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
metadata {
|
|
311
|
+
ai_summary
|
|
312
|
+
has_results
|
|
313
|
+
current_stage
|
|
314
|
+
next_stage
|
|
315
|
+
channel {
|
|
316
|
+
id
|
|
317
|
+
name
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
meta_data {
|
|
322
|
+
filtered_rows
|
|
323
|
+
total_rows
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function lf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){lf(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){lf(r,e)}),t.definitions&&t.definitions.forEach(function(r){lf(r,e)})}var c1={};(function(){l1.definitions.forEach(function(e){if(e.name){var n=new Set;lf(e,n),c1[e.name.value]=n}})})();function hS(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function uM(t,e){var n={kind:t.kind,definitions:[hS(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=c1[e]||new Set,i=new Set,o=new Set;for(r.forEach(function(s){o.add(s)});o.size>0;){var a=o;o=new Set,a.forEach(function(s){if(!i.has(s)){i.add(s);var c=c1[s]||new Set;c.forEach(function(u){o.add(u)})}})}return i.forEach(function(s){var c=hS(t,s);c&&n.definitions.push(c)}),n}const fM=uM(l1,"GET_CONVERSATION_ACTIVITIES_FOR_PORTAL");var u1={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_A_CONVERSATION_FOR_PORTAL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConversationSingleQueryInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAConversationForPortal"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contact"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"person_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"person_email"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_spam"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"serial"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_initiated_at_off_hour"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:283}};u1.loc.source={body:`query GET_A_CONVERSATION_FOR_PORTAL($queryData: ConversationSingleQueryInputType!) {
|
|
328
|
+
getAConversationForPortal(queryData: $queryData) {
|
|
329
|
+
contact {
|
|
330
|
+
person_name
|
|
331
|
+
person_email
|
|
332
|
+
}
|
|
333
|
+
type
|
|
334
|
+
is_spam
|
|
335
|
+
status
|
|
336
|
+
title
|
|
337
|
+
serial
|
|
338
|
+
is_initiated_at_off_hour
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function cf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){cf(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){cf(r,e)}),t.definitions&&t.definitions.forEach(function(r){cf(r,e)})}var f1={};(function(){u1.definitions.forEach(function(e){if(e.name){var n=new Set;cf(e,n),f1[e.name.value]=n}})})();function pS(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function dM(t,e){var n={kind:t.kind,definitions:[pS(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=f1[e]||new Set,i=new Set,o=new Set;for(r.forEach(function(s){o.add(s)});o.size>0;){var a=o;o=new Set,a.forEach(function(s){if(!i.has(s)){i.add(s);var c=f1[s]||new Set;c.forEach(function(u){o.add(u)})}})}return i.forEach(function(s){var c=pS(t,s);c&&n.definitions.push(c)}),n}const hM=dM(u1,"GET_A_CONVERSATION_FOR_PORTAL");var d1={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CREATE_A_CONVERSATION_ACTIVITY_FOR_PORTAL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConversationActivityForPortalCreateInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createAConversationActivityForPortal"},arguments:[{kind:"Argument",name:{kind:"Name",value:"inputData"},value:{kind:"Variable",name:{kind:"Name",value:"inputData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"files"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"metadata"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ai_summary"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"has_results"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"current_stage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"next_stage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"channel"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"is_customer_reply"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_ai_response"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_auto_response"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:465}};d1.loc.source={body:`mutation CREATE_A_CONVERSATION_ACTIVITY_FOR_PORTAL(
|
|
342
|
+
$inputData: ConversationActivityForPortalCreateInputType!
|
|
343
|
+
) {
|
|
344
|
+
createAConversationActivityForPortal(inputData: $inputData) {
|
|
345
|
+
id
|
|
346
|
+
message
|
|
347
|
+
files {
|
|
348
|
+
id
|
|
349
|
+
key
|
|
350
|
+
name
|
|
351
|
+
}
|
|
352
|
+
metadata {
|
|
353
|
+
ai_summary
|
|
354
|
+
has_results
|
|
355
|
+
current_stage
|
|
356
|
+
next_stage
|
|
357
|
+
channel {
|
|
358
|
+
id
|
|
359
|
+
name
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
is_customer_reply
|
|
363
|
+
is_ai_response
|
|
364
|
+
is_auto_response
|
|
365
|
+
type
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function uf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){uf(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){uf(r,e)}),t.definitions&&t.definitions.forEach(function(r){uf(r,e)})}var h1={};(function(){d1.definitions.forEach(function(e){if(e.name){var n=new Set;uf(e,n),h1[e.name.value]=n}})})();function mS(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function pM(t,e){var n={kind:t.kind,definitions:[mS(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=h1[e]||new Set,i=new Set,o=new Set;for(r.forEach(function(s){o.add(s)});o.size>0;){var a=o;o=new Set,a.forEach(function(s){if(!i.has(s)){i.add(s);var c=h1[s]||new Set;c.forEach(function(u){o.add(u)})}})}return i.forEach(function(s){var c=mS(t,s);c&&n.definitions.push(c)}),n}const gS=pM(d1,"CREATE_A_CONVERSATION_ACTIVITY_FOR_PORTAL");var p1={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"CONVERSATION_ACTIVITY_REALTIME_STATUS_UPDATED"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConversationActivityRealtimeStatusUpdatedQueryInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"conversationActivityRealtimeStatusUpdated"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"is_writing_reply"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_conversation_deleted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"conversation_activity"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"metadata"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"current_stage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"next_stage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ai_summary"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"has_results"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"channel"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatar_file"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"visibility"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"analytics"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_customer_reply"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_ai_response"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_auto_response"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"files"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"log"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sub_context"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"new_value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"new_assignee"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatar_file"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"visibility"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:1210}};p1.loc.source={body:`subscription CONVERSATION_ACTIVITY_REALTIME_STATUS_UPDATED(
|
|
369
|
+
$queryData: ConversationActivityRealtimeStatusUpdatedQueryInputType!
|
|
370
|
+
) {
|
|
371
|
+
conversationActivityRealtimeStatusUpdated(queryData: $queryData) {
|
|
372
|
+
is_writing_reply
|
|
373
|
+
is_conversation_deleted
|
|
374
|
+
conversation_activity {
|
|
375
|
+
id
|
|
376
|
+
metadata {
|
|
377
|
+
current_stage
|
|
378
|
+
next_stage
|
|
379
|
+
ai_summary
|
|
380
|
+
has_results
|
|
381
|
+
channel {
|
|
382
|
+
id
|
|
383
|
+
name
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
user {
|
|
387
|
+
id
|
|
388
|
+
avatar_file {
|
|
389
|
+
id
|
|
390
|
+
key
|
|
391
|
+
type
|
|
392
|
+
visibility
|
|
393
|
+
}
|
|
394
|
+
email
|
|
395
|
+
first_name
|
|
396
|
+
last_name
|
|
397
|
+
}
|
|
398
|
+
analytics {
|
|
399
|
+
status
|
|
400
|
+
}
|
|
401
|
+
message
|
|
402
|
+
type
|
|
403
|
+
is_customer_reply
|
|
404
|
+
is_ai_response
|
|
405
|
+
is_auto_response
|
|
406
|
+
files {
|
|
407
|
+
id
|
|
408
|
+
name
|
|
409
|
+
title
|
|
410
|
+
key
|
|
411
|
+
}
|
|
412
|
+
log {
|
|
413
|
+
id
|
|
414
|
+
sub_context
|
|
415
|
+
new_value
|
|
416
|
+
new_assignee {
|
|
417
|
+
user {
|
|
418
|
+
id
|
|
419
|
+
last_name
|
|
420
|
+
first_name
|
|
421
|
+
email
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
user {
|
|
427
|
+
id
|
|
428
|
+
avatar_file {
|
|
429
|
+
id
|
|
430
|
+
key
|
|
431
|
+
type
|
|
432
|
+
visibility
|
|
433
|
+
}
|
|
434
|
+
email
|
|
435
|
+
first_name
|
|
436
|
+
last_name
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function ff(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){ff(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){ff(r,e)}),t.definitions&&t.definitions.forEach(function(r){ff(r,e)})}var m1={};(function(){p1.definitions.forEach(function(e){if(e.name){var n=new Set;ff(e,n),m1[e.name.value]=n}})})();function vS(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function mM(t,e){var n={kind:t.kind,definitions:[vS(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=m1[e]||new Set,i=new Set,o=new Set;for(r.forEach(function(s){o.add(s)});o.size>0;){var a=o;o=new Set,a.forEach(function(s){if(!i.has(s)){i.add(s);var c=m1[s]||new Set;c.forEach(function(u){o.add(u)})}})}return i.forEach(function(s){var c=vS(t,s);c&&n.definitions.push(c)}),n}const gM=mM(p1,"CONVERSATION_ACTIVITY_REALTIME_STATUS_UPDATED"),vM=qm({guards:{isAuthenticated:uS,hasMoreMessages:SP,isConversationValid:wP,isConversationDeleted:_P,isConversationClosed:xP},actors:{fetchConversation:gP,fetchConversationActivities:vP,createConversationActivity:yP,updateActivityAnalytics:bP},actions:{setLoadingConversation:HP,setLoadingActivities:WP,setSending:GP,setUploading:YP,setConversationData:KP,setMessagesData:ZP,addMessageToList:QP,updateMessageInList:qP,updateInputField:JP,clearInputField:XP,markMessagesAsSeen:$P,updateConversationStatus:eM,playMessageNotification:tM,updateLastPlayedMessageId:nM,clearConversationData:rM,setMessagingError:iM,clearMessagingError:oM,calculateUnreadMessages:aM,clearConversationCookie:sM}}).createMachine({id:"messaging",initial:"idle",context:({input:t})=>({...hP(),apolloClient:t.apolloClient,conversationQuery:t.conversationQuery,activitiesQuery:t.activitiesQuery,createActivityMutation:t.createActivityMutation,updateAnalyticsMutation:t.updateAnalyticsMutation,conversationId:t.conversationId||null,isMute:Wr.get("widget_isMute")==="true"}),states:{idle:{on:{[Ft.LOAD_CONVERSATION]:{target:"loadingConversation",actions:["setLoadingConversation",We({conversationId:({event:t})=>t.conversationId})]}}},loadingConversation:{invoke:{id:"fetchConversation",src:"fetchConversation",input:({context:t})=>({apolloClient:t.apolloClient,query:t.conversationQuery,conversationId:t.conversationId}),onDone:{target:"loadingActivities",actions:"setConversationData"},onError:{target:"error",actions:["setMessagingError","clearConversationCookie"]}}},loadingActivities:{invoke:{id:"fetchConversationActivities",src:"fetchConversationActivities",input:({context:t})=>({apolloClient:t.apolloClient,query:t.activitiesQuery,conversationId:t.conversationId,optionData:t.optionData}),onDone:{target:"active",actions:["setMessagesData","calculateUnreadMessages"]},onError:{target:"error",actions:"setMessagingError"}}},active:{on:{[Ft.SEND_MESSAGE]:{target:"sending"},[Ft.UPLOAD_FILE]:{target:"uploading"},[Ft.UPDATE_INPUT]:{actions:"updateInputField"},[Ft.CLEAR_INPUT]:{actions:"clearInputField"},[Ft.MESSAGE_RECEIVED]:[{target:"closed",guard:"isConversationDeleted",actions:["clearConversationData","clearConversationCookie"]},{actions:["updateConversationStatus","addMessageToList","playMessageNotification","updateLastPlayedMessageId","calculateUnreadMessages"],guard:"isConversationClosed"},{actions:["addMessageToList","calculateUnreadMessages"]}],[Ft.MARK_AS_SEEN]:{target:"markingAsSeen"},[Ft.MARK_AS_DELIVERED]:{target:"markingAsDelivered"},[Ft.FETCH_MORE_MESSAGES]:{target:"loadingMoreMessages",guard:"hasMoreMessages"},[Ft.LOAD_CONVERSATION]:{target:"loadingConversation",actions:["clearConversationData","setLoadingConversation",We({conversationId:({event:t})=>t.conversationId})]},[Ft.CONVERSATION_CLOSED]:{target:"closed",actions:["clearConversationData","clearConversationCookie"]}}},sending:{invoke:{id:"createConversationActivity",src:"createConversationActivity",input:({context:t,event:e})=>({apolloClient:t.apolloClient,mutation:t.createActivityMutation,conversationId:t.conversationId,messageData:e.messageData}),onDone:{target:"active",actions:["addMessageToList","clearInputField","calculateUnreadMessages"]},onError:{target:"active",actions:"setMessagingError"}}},uploading:{invoke:{id:"uploadFile",src:"createConversationActivity",input:({context:t,event:e})=>({apolloClient:t.apolloClient,mutation:t.createActivityMutation,conversationId:t.conversationId,messageData:e.fileData}),onDone:{target:"active",actions:["addMessageToList","calculateUnreadMessages"]},onError:{target:"active",actions:"setMessagingError"}}},markingAsSeen:{invoke:{id:"markAsSeen",src:"updateActivityAnalytics",input:({context:t,event:e})=>({apolloClient:t.apolloClient,mutation:t.updateAnalyticsMutation,inputData:{seen_activity_ids:e.activityIds}}),onDone:{target:"active",actions:["markMessagesAsSeen","calculateUnreadMessages"]},onError:{target:"active"}}},markingAsDelivered:{invoke:{id:"markAsDelivered",src:"updateActivityAnalytics",input:({context:t,event:e})=>({apolloClient:t.apolloClient,mutation:t.updateAnalyticsMutation,inputData:{delivered_activity_ids:e.activityIds}}),onDone:{target:"active"},onError:{target:"active"}}},loadingMoreMessages:{invoke:{id:"fetchMoreMessages",src:"fetchConversationActivities",input:({context:t})=>({apolloClient:t.apolloClient,query:t.activitiesQuery,conversationId:t.conversationId,optionData:{...t.optionData,offset:t.messages.length}}),onDone:{target:"active",actions:["setMessagesData","calculateUnreadMessages"]},onError:{target:"active"}}},closed:{on:{[Ft.LOAD_CONVERSATION]:{target:"loadingConversation",actions:["clearConversationData","clearMessagingError","setLoadingConversation",We({conversationId:({event:t})=>t.conversationId})]}}},error:{on:{[Ft.LOAD_CONVERSATION]:{target:"loadingConversation",actions:["clearConversationData","clearMessagingError","setLoadingConversation",We({conversationId:({event:t})=>t.conversationId})]}}}}}),yS=R.createContext(null),yM=({children:t})=>{const{currentConversationID:e,setCurrentConversationID:n}=Ao(),r=Wr.get("easydesk_chat_widget_conversation_id"),i=e||r,o=Xo(),[a,s]=aS(vM,{input:{apolloClient:o,conversationQuery:hM,activitiesQuery:fM,createActivityMutation:gS,updateAnalyticsMutation:s1,conversationId:i}});wo(s1);const c=R.useCallback(h=>{s({type:Ft.UPDATE_INPUT,field:"isAIThinking",value:h})},[s]),u=R.useCallback(async h=>{try{h!=null&&h.seen_activity_ids?s({type:Ft.MARK_AS_SEEN,activityIds:h.seen_activity_ids}):h!=null&&h.delivered_activity_ids&&s({type:Ft.MARK_AS_DELIVERED,activityIds:h.delivered_activity_ids})}catch(p){console.log(p)}},[s]);M6(gM,{errorPolicy:"all",fetchPolicy:"no-cache",skip:!i,variables:{queryData:{conversation_id:i}},onData:({data:h})=>{var v,b;const p=(v=h==null?void 0:h.data)==null?void 0:v.conversationActivityRealtimeStatusUpdated;if(p!=null&&p.is_conversation_deleted){Wr.remove("easydesk_chat_widget_conversation_id"),n(null),s({type:Ft.CONVERSATION_CLOSED});return}const m=p==null?void 0:p.conversation_activity;m&&(s({type:Ft.MESSAGE_RECEIVED,data:p,activity:m}),m.is_customer_reply||setTimeout(()=>{s({type:Ft.UPDATE_INPUT,field:"isAIThinking",value:!1})},500),m!=null&&m.id&&((b=m==null?void 0:m.analytics)!=null&&b.some(y=>(y==null?void 0:y.status)==="sent"))&&u({delivered_activity_ids:[m==null?void 0:m.id]}))},onError:console.error}),R.useEffect(()=>{i&&s({type:Ft.LOAD_CONVERSATION,conversationId:i})},[i,s]);const d=R.useMemo(()=>({conversationData:a.context.conversationData,setConversationData:h=>{console.warn("Direct setConversationData is deprecated. Use machine events instead.")},conversationState:{isReplying:a.matches("sending")||a.matches("uploading"),loadingActivities:a.matches("loadingActivities")||a.matches("loadingMoreMessages"),messages:a.context.messages,optionData:a.context.optionData,metaData:a.context.metaData},setConversationState:h=>{console.warn("Direct setConversationState is deprecated. Use machine events instead.")},inputFieldState:a.context.inputFieldState,setInputFieldState:h=>{if(typeof h=="function"){const p=h(a.context.inputFieldState);Object.entries(p).forEach(([m,v])=>{s({type:Ft.UPDATE_INPUT,field:m,value:v})})}else Object.entries(h).forEach(([p,m])=>{s({type:Ft.UPDATE_INPUT,field:p,value:m})})},isGettingAConversation:a.matches("loadingConversation"),isGettingConversationActivities:a.matches("loadingActivities"),handleUpdateConversationActivityAnalytics:u,unreadMessages:a.context.unreadMessages,isAIThinking:a.context.inputFieldState.isAIThinking||!1,setIsAIThinking:c,initialStatesData:{conversationState:{isReplying:!1,loadingActivities:!1,messages:[],optionData:{limit:50,offset:0}},inputFieldState:{contact_person_name:"",contact_person_email:"",ticket_title:"",ticket_activity:"",ticket_activity_files:[]}},state:a,send:s}),[a,s,u]);return E.jsx(yS.Provider,{value:d,children:t})},hs=()=>R.useContext(yS),g1=()=>{const{state:t,send:e}=hs(),[n]=wo(gS),r=R.useCallback(async(u,d=!1)=>{var h;try{const p=t.context.conversationId,{data:m}=await n({variables:{inputData:{conversation_id:p,...u}}}),v=m==null?void 0:m.createAConversationActivityForPortal;if(v!=null&&v.id)return d||e({type:Ft.MESSAGE_RECEIVED,data:{conversation_activity:v},activity:v}),v}catch(p){const{message:m,response:v}=p;return m!=="BRAND_WENT_OFF_HOUR"&&Rn("error",((h=v==null?void 0:v.data)==null?void 0:h.message)||m,"top-left"),{error:m}}return{}},[n,e,t.context.conversationId]),i=R.useCallback((u,d)=>{e({type:Ft.UPDATE_INPUT,field:u,value:d})},[e]),o=R.useCallback(()=>{e({type:Ft.CLEAR_INPUT})},[e]),a=R.useCallback(u=>{e({type:Ft.MARK_AS_SEEN,activityIds:u})},[e]),s=R.useCallback(u=>{e({type:Ft.MARK_AS_DELIVERED,activityIds:u})},[e]),c=R.useCallback(()=>{e({type:Ft.FETCH_MORE_MESSAGES})},[e]);return{sendMessage:r,updateInput:i,clearInput:o,markAsSeen:a,markAsDelivered:s,loadMoreMessages:c,isLoading:t.matches("sending")||t.matches("uploading"),isSending:t.matches("sending"),isUploading:t.matches("uploading"),state:t,send:e}},ma=()=>E.jsxs("svg",{"aria-hidden":"true",role:"status",className:"ed-inline ed-w-4 ed-h-4 ed-mr-1 ed-text-brand ed-animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"#E5E7EB"}),E.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentColor"})]});var v1={exports:{}},y1={exports:{}},_t={},bS;function bM(){if(bS)return _t;bS=1;/** @license React v16.13.1
|
|
441
|
+
* react-is.development.js
|
|
442
|
+
*
|
|
443
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
444
|
+
*
|
|
445
|
+
* This source code is licensed under the MIT license found in the
|
|
446
|
+
* LICENSE file in the root directory of this source tree.
|
|
447
|
+
*/return(function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,v=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,C=t?Symbol.for("react.scope"):60119;function k(X){return typeof X=="string"||typeof X=="function"||X===r||X===u||X===o||X===i||X===h||X===p||typeof X=="object"&&X!==null&&(X.$$typeof===v||X.$$typeof===m||X.$$typeof===a||X.$$typeof===s||X.$$typeof===d||X.$$typeof===y||X.$$typeof===w||X.$$typeof===C||X.$$typeof===b)}function x(X){if(typeof X=="object"&&X!==null){var Re=X.$$typeof;switch(Re){case e:var ye=X.type;switch(ye){case c:case u:case r:case o:case i:case h:return ye;default:var Fe=ye&&ye.$$typeof;switch(Fe){case s:case d:case v:case m:case a:return Fe;default:return Re}}case n:return Re}}}var S=c,A=u,T=s,N=a,P=e,U=d,V=r,H=v,Q=m,j=n,F=o,D=i,Y=h,z=!1;function q(X){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),W(X)||x(X)===c}function W(X){return x(X)===u}function G(X){return x(X)===s}function te(X){return x(X)===a}function ne(X){return typeof X=="object"&&X!==null&&X.$$typeof===e}function ce(X){return x(X)===d}function ie(X){return x(X)===r}function de(X){return x(X)===v}function pe(X){return x(X)===m}function J(X){return x(X)===n}function re(X){return x(X)===o}function he(X){return x(X)===i}function Ee(X){return x(X)===h}_t.AsyncMode=S,_t.ConcurrentMode=A,_t.ContextConsumer=T,_t.ContextProvider=N,_t.Element=P,_t.ForwardRef=U,_t.Fragment=V,_t.Lazy=H,_t.Memo=Q,_t.Portal=j,_t.Profiler=F,_t.StrictMode=D,_t.Suspense=Y,_t.isAsyncMode=q,_t.isConcurrentMode=W,_t.isContextConsumer=G,_t.isContextProvider=te,_t.isElement=ne,_t.isForwardRef=ce,_t.isFragment=ie,_t.isLazy=de,_t.isMemo=pe,_t.isPortal=J,_t.isProfiler=re,_t.isStrictMode=he,_t.isSuspense=Ee,_t.isValidElementType=k,_t.typeOf=x})(),_t}var ES;function SS(){return ES||(ES=1,y1.exports=bM()),y1.exports}/*
|
|
448
|
+
object-assign
|
|
449
|
+
(c) Sindre Sorhus
|
|
450
|
+
@license MIT
|
|
451
|
+
*/var b1,wS;function EM(){if(wS)return b1;wS=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return b1=i()?Object.assign:function(o,a){for(var s,c=r(o),u,d=1;d<arguments.length;d++){s=Object(arguments[d]);for(var h in s)e.call(s,h)&&(c[h]=s[h]);if(t){u=t(s);for(var p=0;p<u.length;p++)n.call(s,u[p])&&(c[u[p]]=s[u[p]])}}return c},b1}var E1,_S;function CS(){if(_S)return E1;_S=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return E1=t,E1}var S1,xS;function AS(){return xS||(xS=1,S1=Function.call.bind(Object.prototype.hasOwnProperty)),S1}var w1,kS;function SM(){if(kS)return w1;kS=1;var t=function(){};{var e=CS(),n={},r=AS();t=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,c,u){for(var d in o)if(r(o,d)){var h;try{if(typeof o[d]!="function"){var p=Error((c||"React class")+": "+s+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}h=o[d](a,d,c,s,null,e)}catch(v){h=v}if(h&&!(h instanceof Error)&&t((c||"React class")+": type specification of "+s+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var m=u?u():"";t("Failed "+s+" type: "+h.message+(m??""))}}}return i.resetWarningCache=function(){n={}},w1=i,w1}var _1,TS;function wM(){if(TS)return _1;TS=1;var t=SS(),e=EM(),n=CS(),r=AS(),i=SM(),o=function(){};o=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}};function a(){return null}return _1=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function h(W){var G=W&&(u&&W[u]||W[d]);if(typeof G=="function")return G}var p="<<anonymous>>",m={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:C(),arrayOf:k,element:x(),elementType:S(),instanceOf:A,node:U(),objectOf:N,oneOf:T,oneOfType:P,shape:H,exact:Q};function v(W,G){return W===G?W!==0||1/W===1/G:W!==W&&G!==G}function b(W,G){this.message=W,this.data=G&&typeof G=="object"?G:{},this.stack=""}b.prototype=Error.prototype;function y(W){var G={},te=0;function ne(ie,de,pe,J,re,he,Ee){if(J=J||p,he=he||pe,Ee!==n){if(c){var X=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw X.name="Invariant Violation",X}else if(typeof console<"u"){var Re=J+":"+pe;!G[Re]&&te<3&&(o("You are manually calling a React.PropTypes validation function for the `"+he+"` prop on `"+J+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),G[Re]=!0,te++)}}return de[pe]==null?ie?de[pe]===null?new b("The "+re+" `"+he+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new b("The "+re+" `"+he+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:W(de,pe,J,re,he)}var ce=ne.bind(null,!1);return ce.isRequired=ne.bind(null,!0),ce}function w(W){function G(te,ne,ce,ie,de,pe){var J=te[ne],re=D(J);if(re!==W){var he=Y(J);return new b("Invalid "+ie+" `"+de+"` of type "+("`"+he+"` supplied to `"+ce+"`, expected ")+("`"+W+"`."),{expectedType:W})}return null}return y(G)}function C(){return y(a)}function k(W){function G(te,ne,ce,ie,de){if(typeof W!="function")return new b("Property `"+de+"` of component `"+ce+"` has invalid PropType notation inside arrayOf.");var pe=te[ne];if(!Array.isArray(pe)){var J=D(pe);return new b("Invalid "+ie+" `"+de+"` of type "+("`"+J+"` supplied to `"+ce+"`, expected an array."))}for(var re=0;re<pe.length;re++){var he=W(pe,re,ce,ie,de+"["+re+"]",n);if(he instanceof Error)return he}return null}return y(G)}function x(){function W(G,te,ne,ce,ie){var de=G[te];if(!s(de)){var pe=D(de);return new b("Invalid "+ce+" `"+ie+"` of type "+("`"+pe+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return y(W)}function S(){function W(G,te,ne,ce,ie){var de=G[te];if(!t.isValidElementType(de)){var pe=D(de);return new b("Invalid "+ce+" `"+ie+"` of type "+("`"+pe+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return y(W)}function A(W){function G(te,ne,ce,ie,de){if(!(te[ne]instanceof W)){var pe=W.name||p,J=q(te[ne]);return new b("Invalid "+ie+" `"+de+"` of type "+("`"+J+"` supplied to `"+ce+"`, expected ")+("instance of `"+pe+"`."))}return null}return y(G)}function T(W){if(!Array.isArray(W))return arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array."),a;function G(te,ne,ce,ie,de){for(var pe=te[ne],J=0;J<W.length;J++)if(v(pe,W[J]))return null;var re=JSON.stringify(W,function(Ee,X){var Re=Y(X);return Re==="symbol"?String(X):X});return new b("Invalid "+ie+" `"+de+"` of value `"+String(pe)+"` "+("supplied to `"+ce+"`, expected one of "+re+"."))}return y(G)}function N(W){function G(te,ne,ce,ie,de){if(typeof W!="function")return new b("Property `"+de+"` of component `"+ce+"` has invalid PropType notation inside objectOf.");var pe=te[ne],J=D(pe);if(J!=="object")return new b("Invalid "+ie+" `"+de+"` of type "+("`"+J+"` supplied to `"+ce+"`, expected an object."));for(var re in pe)if(r(pe,re)){var he=W(pe,re,ce,ie,de+"."+re,n);if(he instanceof Error)return he}return null}return y(G)}function P(W){if(!Array.isArray(W))return o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var G=0;G<W.length;G++){var te=W[G];if(typeof te!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(te)+" at index "+G+"."),a}function ne(ce,ie,de,pe,J){for(var re=[],he=0;he<W.length;he++){var Ee=W[he],X=Ee(ce,ie,de,pe,J,n);if(X==null)return null;X.data&&r(X.data,"expectedType")&&re.push(X.data.expectedType)}var Re=re.length>0?", expected one of type ["+re.join(", ")+"]":"";return new b("Invalid "+pe+" `"+J+"` supplied to "+("`"+de+"`"+Re+"."))}return y(ne)}function U(){function W(G,te,ne,ce,ie){return j(G[te])?null:new b("Invalid "+ce+" `"+ie+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return y(W)}function V(W,G,te,ne,ce){return new b((W||"React class")+": "+G+" type `"+te+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ce+"`.")}function H(W){function G(te,ne,ce,ie,de){var pe=te[ne],J=D(pe);if(J!=="object")return new b("Invalid "+ie+" `"+de+"` of type `"+J+"` "+("supplied to `"+ce+"`, expected `object`."));for(var re in W){var he=W[re];if(typeof he!="function")return V(ce,ie,de,re,Y(he));var Ee=he(pe,re,ce,ie,de+"."+re,n);if(Ee)return Ee}return null}return y(G)}function Q(W){function G(te,ne,ce,ie,de){var pe=te[ne],J=D(pe);if(J!=="object")return new b("Invalid "+ie+" `"+de+"` of type `"+J+"` "+("supplied to `"+ce+"`, expected `object`."));var re=e({},te[ne],W);for(var he in re){var Ee=W[he];if(r(W,he)&&typeof Ee!="function")return V(ce,ie,de,he,Y(Ee));if(!Ee)return new b("Invalid "+ie+" `"+de+"` key `"+he+"` supplied to `"+ce+"`.\nBad object: "+JSON.stringify(te[ne],null," ")+`
|
|
452
|
+
Valid keys: `+JSON.stringify(Object.keys(W),null," "));var X=Ee(pe,he,ce,ie,de+"."+he,n);if(X)return X}return null}return y(G)}function j(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(j);if(W===null||s(W))return!0;var G=h(W);if(G){var te=G.call(W),ne;if(G!==W.entries){for(;!(ne=te.next()).done;)if(!j(ne.value))return!1}else for(;!(ne=te.next()).done;){var ce=ne.value;if(ce&&!j(ce[1]))return!1}}else return!1;return!0;default:return!1}}function F(W,G){return W==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function D(W){var G=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":F(G,W)?"symbol":G}function Y(W){if(typeof W>"u"||W===null)return""+W;var G=D(W);if(G==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return G}function z(W){var G=Y(W);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function q(W){return!W.constructor||!W.constructor.name?p:W.constructor.name}return m.checkPropTypes=i,m.resetWarningCache=i.resetWarningCache,m.PropTypes=m,m},_1}var OS;function _M(){if(OS)return v1.exports;OS=1;{var t=SS(),e=!0;v1.exports=wM()(t.isElement,e)}return v1.exports}var CM=_M();const Se=sa(CM);function C1(){return C1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},C1.apply(this,arguments)}function xM(t,e){if(t==null)return{};var n=AM(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function AM(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var x1=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=xM(t,["color","size"]);return R.createElement("svg",C1({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("polyline",{points:"20 6 9 17 4 12"}))});x1.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},x1.displayName="Check";function A1(){return A1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},A1.apply(this,arguments)}function kM(t,e){if(t==null)return{};var n=TM(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function TM(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var ps=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=kM(t,["color","size"]);return R.createElement("svg",A1({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("polyline",{points:"6 9 12 15 18 9"}))});ps.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},ps.displayName="ChevronDown";function k1(){return k1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},k1.apply(this,arguments)}function OM(t,e){if(t==null)return{};var n=RM(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function RM(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var df=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=OM(t,["color","size"]);return R.createElement("svg",k1({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("polyline",{points:"15 18 9 12 15 6"}))});df.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},df.displayName="ChevronLeft";function T1(){return T1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},T1.apply(this,arguments)}function NM(t,e){if(t==null)return{};var n=IM(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function IM(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var eo=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=NM(t,["color","size"]);return R.createElement("svg",T1({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("polyline",{points:"9 18 15 12 9 6"}))});eo.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},eo.displayName="ChevronRight";function O1(){return O1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},O1.apply(this,arguments)}function PM(t,e){if(t==null)return{};var n=MM(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function MM(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var hf=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=PM(t,["color","size"]);return R.createElement("svg",O1({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("polyline",{points:"18 15 12 9 6 15"}))});hf.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},hf.displayName="ChevronUp";function R1(){return R1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},R1.apply(this,arguments)}function LM(t,e){if(t==null)return{};var n=FM(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function FM(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var N1=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=LM(t,["color","size"]);return R.createElement("svg",R1({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("polyline",{points:"8 17 12 21 16 17"}),R.createElement("line",{x1:"12",y1:"12",x2:"12",y2:"21"}),R.createElement("path",{d:"M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"}))});N1.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},N1.displayName="DownloadCloud";function I1(){return I1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},I1.apply(this,arguments)}function jM(t,e){if(t==null)return{};var n=DM(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function DM(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var P1=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=jM(t,["color","size"]);return R.createElement("svg",I1({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),R.createElement("polyline",{points:"7 10 12 15 17 10"}),R.createElement("line",{x1:"12",y1:"15",x2:"12",y2:"3"}))});P1.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},P1.displayName="Download";function M1(){return M1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},M1.apply(this,arguments)}function VM(t,e){if(t==null)return{};var n=UM(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function UM(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var L1=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=VM(t,["color","size"]);return R.createElement("svg",M1({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),R.createElement("polyline",{points:"15 3 21 3 21 9"}),R.createElement("line",{x1:"10",y1:"14",x2:"21",y2:"3"}))});L1.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},L1.displayName="ExternalLink";function F1(){return F1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},F1.apply(this,arguments)}function zM(t,e){if(t==null)return{};var n=BM(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function BM(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var j1=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=zM(t,["color","size"]);return R.createElement("svg",F1({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),R.createElement("polyline",{points:"14 2 14 8 20 8"}),R.createElement("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),R.createElement("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),R.createElement("polyline",{points:"10 9 9 9 8 9"}))});j1.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},j1.displayName="FileText";function D1(){return D1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},D1.apply(this,arguments)}function HM(t,e){if(t==null)return{};var n=WM(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function WM(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var V1=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=HM(t,["color","size"]);return R.createElement("svg",D1({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("path",{d:"M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"}))});V1.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},V1.displayName="Paperclip";function U1(){return U1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},U1.apply(this,arguments)}function GM(t,e){if(t==null)return{};var n=YM(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function YM(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var z1=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=GM(t,["color","size"]);return R.createElement("svg",U1({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("polyline",{points:"1 4 1 10 7 10"}),R.createElement("path",{d:"M3.51 15a9 9 0 1 0 2.13-9.36L1 10"}))});z1.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},z1.displayName="RotateCcw";function B1(){return B1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},B1.apply(this,arguments)}function KM(t,e){if(t==null)return{};var n=ZM(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function ZM(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var H1=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=KM(t,["color","size"]);return R.createElement("svg",B1({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("circle",{cx:"11",cy:"11",r:"8"}),R.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});H1.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},H1.displayName="Search";function W1(){return W1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},W1.apply(this,arguments)}function QM(t,e){if(t==null)return{};var n=qM(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function qM(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var G1=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=QM(t,["color","size"]);return R.createElement("svg",W1({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("line",{x1:"22",y1:"2",x2:"11",y2:"13"}),R.createElement("polygon",{points:"22 2 15 22 11 13 2 9 22 2"}))});G1.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},G1.displayName="Send";function Y1(){return Y1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Y1.apply(this,arguments)}function JM(t,e){if(t==null)return{};var n=XM(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function XM(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var K1=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=JM(t,["color","size"]);return R.createElement("svg",Y1({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("path",{d:"M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"}))});K1.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},K1.displayName="ThumbsDown";function Z1(){return Z1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Z1.apply(this,arguments)}function $M(t,e){if(t==null)return{};var n=eL(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function eL(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Q1=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=$M(t,["color","size"]);return R.createElement("svg",Z1({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("path",{d:"M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"}))});Q1.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Q1.displayName="ThumbsUp";function q1(){return q1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},q1.apply(this,arguments)}function tL(t,e){if(t==null)return{};var n=nL(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function nL(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var J1=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=tL(t,["color","size"]);return R.createElement("svg",q1({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("polyline",{points:"3 6 5 6 21 6"}),R.createElement("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}))});J1.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},J1.displayName="Trash";function X1(){return X1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},X1.apply(this,arguments)}function rL(t,e){if(t==null)return{};var n=iL(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function iL(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var $1=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=rL(t,["color","size"]);return R.createElement("svg",X1({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),R.createElement("polyline",{points:"17 8 12 3 7 8"}),R.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"}))});$1.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},$1.displayName="Upload";function eg(){return eg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},eg.apply(this,arguments)}function oL(t,e){if(t==null)return{};var n=aL(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function aL(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var tg=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=oL(t,["color","size"]);return R.createElement("svg",eg({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),R.createElement("path",{d:"M15.54 8.46a5 5 0 0 1 0 7.07"}))});tg.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},tg.displayName="Volume1";function ng(){return ng=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ng.apply(this,arguments)}function sL(t,e){if(t==null)return{};var n=lL(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function lL(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var rg=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=sL(t,["color","size"]);return R.createElement("svg",ng({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),R.createElement("line",{x1:"23",y1:"9",x2:"17",y2:"15"}),R.createElement("line",{x1:"17",y1:"9",x2:"23",y2:"15"}))});rg.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},rg.displayName="VolumeX";function ig(){return ig=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ig.apply(this,arguments)}function cL(t,e){if(t==null)return{};var n=uL(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function uL(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var Pi=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=cL(t,["color","size"]);return R.createElement("svg",ig({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),R.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});Pi.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},Pi.displayName="X";function og(){return og=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},og.apply(this,arguments)}function fL(t,e){if(t==null)return{};var n=dL(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function dL(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var ag=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=fL(t,["color","size"]);return R.createElement("svg",og({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("circle",{cx:"11",cy:"11",r:"8"}),R.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),R.createElement("line",{x1:"11",y1:"8",x2:"11",y2:"14"}),R.createElement("line",{x1:"8",y1:"11",x2:"14",y2:"11"}))});ag.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},ag.displayName="ZoomIn";function sg(){return sg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},sg.apply(this,arguments)}function hL(t,e){if(t==null)return{};var n=pL(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function pL(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var lg=R.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,i=t.size,o=i===void 0?24:i,a=hL(t,["color","size"]);return R.createElement("svg",sg({ref:e,xmlns:"http://www.w3.org/2000/svg",width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),R.createElement("circle",{cx:"11",cy:"11",r:"8"}),R.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),R.createElement("line",{x1:"8",y1:"11",x2:"14",y2:"11"}))});lg.propTypes={color:Se.string,size:Se.oneOfType([Se.string,Se.number])},lg.displayName="ZoomOut";var nc={},ms={},pf={},ko={},ga={},cg={},RS;function NS(){return RS||(RS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function n(r){return r.type===e.Tag||r.type===e.Script||r.type===e.Style}t.isTag=n,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})(cg)),cg}var $e={},IS;function PS(){if(IS)return $e;IS=1;var t=$e&&$e.__extends||(function(){var S=function(A,T){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,P){N.__proto__=P}||function(N,P){for(var U in P)Object.prototype.hasOwnProperty.call(P,U)&&(N[U]=P[U])},S(A,T)};return function(A,T){if(typeof T!="function"&&T!==null)throw new TypeError("Class extends value "+String(T)+" is not a constructor or null");S(A,T);function N(){this.constructor=A}A.prototype=T===null?Object.create(T):(N.prototype=T.prototype,new N)}})(),e=$e&&$e.__assign||function(){return e=Object.assign||function(S){for(var A,T=1,N=arguments.length;T<N;T++){A=arguments[T];for(var P in A)Object.prototype.hasOwnProperty.call(A,P)&&(S[P]=A[P])}return S},e.apply(this,arguments)};Object.defineProperty($e,"__esModule",{value:!0}),$e.cloneNode=$e.hasChildren=$e.isDocument=$e.isDirective=$e.isComment=$e.isText=$e.isCDATA=$e.isTag=$e.Element=$e.Document=$e.CDATA=$e.NodeWithChildren=$e.ProcessingInstruction=$e.Comment=$e.Text=$e.DataNode=$e.Node=void 0;var n=NS(),r=(function(){function S(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(S.prototype,"parentNode",{get:function(){return this.parent},set:function(A){this.parent=A},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"previousSibling",{get:function(){return this.prev},set:function(A){this.prev=A},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"nextSibling",{get:function(){return this.next},set:function(A){this.next=A},enumerable:!1,configurable:!0}),S.prototype.cloneNode=function(A){return A===void 0&&(A=!1),k(this,A)},S})();$e.Node=r;var i=(function(S){t(A,S);function A(T){var N=S.call(this)||this;return N.data=T,N}return Object.defineProperty(A.prototype,"nodeValue",{get:function(){return this.data},set:function(T){this.data=T},enumerable:!1,configurable:!0}),A})(r);$e.DataNode=i;var o=(function(S){t(A,S);function A(){var T=S!==null&&S.apply(this,arguments)||this;return T.type=n.ElementType.Text,T}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),A})(i);$e.Text=o;var a=(function(S){t(A,S);function A(){var T=S!==null&&S.apply(this,arguments)||this;return T.type=n.ElementType.Comment,T}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),A})(i);$e.Comment=a;var s=(function(S){t(A,S);function A(T,N){var P=S.call(this,N)||this;return P.name=T,P.type=n.ElementType.Directive,P}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),A})(i);$e.ProcessingInstruction=s;var c=(function(S){t(A,S);function A(T){var N=S.call(this)||this;return N.children=T,N}return Object.defineProperty(A.prototype,"firstChild",{get:function(){var T;return(T=this.children[0])!==null&&T!==void 0?T:null},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"childNodes",{get:function(){return this.children},set:function(T){this.children=T},enumerable:!1,configurable:!0}),A})(r);$e.NodeWithChildren=c;var u=(function(S){t(A,S);function A(){var T=S!==null&&S.apply(this,arguments)||this;return T.type=n.ElementType.CDATA,T}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),A})(c);$e.CDATA=u;var d=(function(S){t(A,S);function A(){var T=S!==null&&S.apply(this,arguments)||this;return T.type=n.ElementType.Root,T}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),A})(c);$e.Document=d;var h=(function(S){t(A,S);function A(T,N,P,U){P===void 0&&(P=[]),U===void 0&&(U=T==="script"?n.ElementType.Script:T==="style"?n.ElementType.Style:n.ElementType.Tag);var V=S.call(this,P)||this;return V.name=T,V.attribs=N,V.type=U,V}return Object.defineProperty(A.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"tagName",{get:function(){return this.name},set:function(T){this.name=T},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"attributes",{get:function(){var T=this;return Object.keys(this.attribs).map(function(N){var P,U;return{name:N,value:T.attribs[N],namespace:(P=T["x-attribsNamespace"])===null||P===void 0?void 0:P[N],prefix:(U=T["x-attribsPrefix"])===null||U===void 0?void 0:U[N]}})},enumerable:!1,configurable:!0}),A})(c);$e.Element=h;function p(S){return(0,n.isTag)(S)}$e.isTag=p;function m(S){return S.type===n.ElementType.CDATA}$e.isCDATA=m;function v(S){return S.type===n.ElementType.Text}$e.isText=v;function b(S){return S.type===n.ElementType.Comment}$e.isComment=b;function y(S){return S.type===n.ElementType.Directive}$e.isDirective=y;function w(S){return S.type===n.ElementType.Root}$e.isDocument=w;function C(S){return Object.prototype.hasOwnProperty.call(S,"children")}$e.hasChildren=C;function k(S,A){A===void 0&&(A=!1);var T;if(v(S))T=new o(S.data);else if(b(S))T=new a(S.data);else if(p(S)){var N=A?x(S.children):[],P=new h(S.name,e({},S.attribs),N);N.forEach(function(Q){return Q.parent=P}),S.namespace!=null&&(P.namespace=S.namespace),S["x-attribsNamespace"]&&(P["x-attribsNamespace"]=e({},S["x-attribsNamespace"])),S["x-attribsPrefix"]&&(P["x-attribsPrefix"]=e({},S["x-attribsPrefix"])),T=P}else if(m(S)){var N=A?x(S.children):[],U=new u(N);N.forEach(function(j){return j.parent=U}),T=U}else if(w(S)){var N=A?x(S.children):[],V=new d(N);N.forEach(function(j){return j.parent=V}),S["x-mode"]&&(V["x-mode"]=S["x-mode"]),T=V}else if(y(S)){var H=new s(S.name,S.data);S["x-name"]!=null&&(H["x-name"]=S["x-name"],H["x-publicId"]=S["x-publicId"],H["x-systemId"]=S["x-systemId"]),T=H}else throw new Error("Not implemented yet: ".concat(S.type));return T.startIndex=S.startIndex,T.endIndex=S.endIndex,S.sourceCodeLocation!=null&&(T.sourceCodeLocation=S.sourceCodeLocation),T}$e.cloneNode=k;function x(S){for(var A=S.map(function(N){return k(N,!0)}),T=1;T<A.length;T++)A[T].prev=A[T-1],A[T-1].next=A[T];return A}return $e}var MS;function LS(){return MS||(MS=1,(function(t){var e=ga&&ga.__createBinding||(Object.create?(function(s,c,u,d){d===void 0&&(d=u);var h=Object.getOwnPropertyDescriptor(c,u);(!h||("get"in h?!c.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return c[u]}}),Object.defineProperty(s,d,h)}):(function(s,c,u,d){d===void 0&&(d=u),s[d]=c[u]})),n=ga&&ga.__exportStar||function(s,c){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(c,u)&&e(c,s,u)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var r=NS(),i=PS();n(PS(),t);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=(function(){function s(c,u,d){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(d=u,u=o),typeof c=="object"&&(u=c,c=void 0),this.callback=c??null,this.options=u??o,this.elementCB=d??null}return s.prototype.onparserinit=function(c){this.parser=c},s.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},s.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},s.prototype.onerror=function(c){this.handleCallback(c)},s.prototype.onclosetag=function(){this.lastNode=null;var c=this.tagStack.pop();this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(c)},s.prototype.onopentag=function(c,u){var d=this.options.xmlMode?r.ElementType.Tag:void 0,h=new i.Element(c,u,void 0,d);this.addNode(h),this.tagStack.push(h)},s.prototype.ontext=function(c){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=c,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var d=new i.Text(c);this.addNode(d),this.lastNode=d}},s.prototype.oncomment=function(c){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=c;return}var u=new i.Comment(c);this.addNode(u),this.lastNode=u},s.prototype.oncommentend=function(){this.lastNode=null},s.prototype.oncdatastart=function(){var c=new i.Text(""),u=new i.CDATA([c]);this.addNode(u),c.parent=u,this.lastNode=c},s.prototype.oncdataend=function(){this.lastNode=null},s.prototype.onprocessinginstruction=function(c,u){var d=new i.ProcessingInstruction(c,u);this.addNode(d)},s.prototype.handleCallback=function(c){if(typeof this.callback=="function")this.callback(c,this.dom);else if(c)throw c},s.prototype.addNode=function(c){var u=this.tagStack[this.tagStack.length-1],d=u.children[u.children.length-1];this.options.withStartIndices&&(c.startIndex=this.parser.startIndex),this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),u.children.push(c),d&&(c.prev=d,d.next=c),c.parent=u,this.lastNode=null},s})();t.DomHandler=a,t.default=a})(ga)),ga}var ug={},FS;function mL(){return FS||(FS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,n){return e[n.toLowerCase()]=n,e},{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")})(ug)),ug}var jS;function DS(){if(jS)return ko;jS=1,Object.defineProperty(ko,"__esModule",{value:!0}),ko.formatAttributes=r,ko.hasOpenTag=o,ko.escapeSpecialCharacters=a,ko.revertEscapedCharacters=s,ko.formatDOM=c;var t=LS(),e=mL();function n(u){return e.CASE_SENSITIVE_TAG_NAMES_MAP[u]}function r(u){for(var d={},h=0,p=u.length;h<p;h++){var m=u[h];d[m.name]=m.value}return d}function i(u){u=u.toLowerCase();var d=n(u);return d||u}function o(u,d){var h="<"+d,p=u.toLowerCase().indexOf(h);if(p===-1)return!1;var m=u[p+h.length];return m===">"||m===" "||m===" "||m===`
|
|
453
|
+
`||m==="\r"||m==="/"}function a(u){return u.replace(e.CARRIAGE_RETURN_REGEX,e.CARRIAGE_RETURN_PLACEHOLDER)}function s(u){return u.replace(e.CARRIAGE_RETURN_PLACEHOLDER_REGEX,e.CARRIAGE_RETURN)}function c(u,d,h){var p,m,v,b;d===void 0&&(d=null);for(var y=[],w,C=0,k=u.length;C<k;C++){var x=u[C];switch(x.nodeType){case 1:{var S=i(x.nodeName);w=new t.Element(S,r(x.attributes)),w.children=c(S==="template"?x.content.childNodes:x.childNodes,w);break}case 3:w=new t.Text(s((p=x.nodeValue)!==null&&p!==void 0?p:""));break;case 8:w=new t.Comment((m=x.nodeValue)!==null&&m!==void 0?m:"");break;default:continue}var A=(v=y[C-1])!==null&&v!==void 0?v:null;A&&(A.next=w),w.parent=d,w.prev=A,w.next=null,y.push(w)}return h&&(w=new t.ProcessingInstruction(h.substring(0,h.indexOf(" ")).toLowerCase(),h),w.next=(b=y[0])!==null&&b!==void 0?b:null,w.parent=d,y.unshift(w),y[1]&&(y[1].prev=y[0])),y}return ko}var VS;function gL(){if(VS)return pf;VS=1,Object.defineProperty(pf,"__esModule",{value:!0}),pf.default=v;var t=DS(),e="html",n="head",r="body",i=/<([a-zA-Z]+[0-9]?)/,o=function(b,y){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},a=function(b,y){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},s=typeof window=="object"&&window.DOMParser;if(typeof s=="function"){var c=new s,u="text/html";a=function(b,y){return y&&(b="<".concat(y,">").concat(b,"</").concat(y,">")),c.parseFromString(b,u)},o=a}if(typeof document=="object"&&document.implementation){var d=document.implementation.createHTMLDocument();o=function(b,y){if(y){var w=d.documentElement.querySelector(y);return w&&(w.innerHTML=b),d}return d.documentElement.innerHTML=b,d}}var h=typeof document=="object"&&document.createElement("template"),p;h&&h.content&&(p=function(b){return h.innerHTML=b,h.content.childNodes});var m=function(){return document.createDocumentFragment().childNodes};function v(b){var y,w,C,k,x,S;b=(0,t.escapeSpecialCharacters)(b);var A=i.exec(b),T=(y=A==null?void 0:A[1])===null||y===void 0?void 0:y.toLowerCase();switch(T){case e:{var N=a(b);if(!(0,t.hasOpenTag)(b,n)){var P=N.querySelector(n);(w=P==null?void 0:P.parentNode)===null||w===void 0||w.removeChild(P)}if(!(0,t.hasOpenTag)(b,r)){var P=N.querySelector(r);(C=P==null?void 0:P.parentNode)===null||C===void 0||C.removeChild(P)}return N.querySelectorAll(e)}case n:case r:{var U=o(b).querySelectorAll(T);return(0,t.hasOpenTag)(b,r)&&(0,t.hasOpenTag)(b,n)?(x=(k=U[0].parentNode)===null||k===void 0?void 0:k.childNodes)!==null&&x!==void 0?x:m():U}default:{if(p)return p(b);var P=o(b,r).querySelector(r);return(S=P==null?void 0:P.childNodes)!==null&&S!==void 0?S:m()}}}return pf}var US;function vL(){if(US)return ms;US=1;var t=ms&&ms.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(ms,"__esModule",{value:!0}),ms.default=i;var e=t(gL()),n=DS(),r=/<(![a-zA-Z\s]+)>/;function i(o){if(typeof o!="string")throw new TypeError("First argument must be a string");if(!o)return[];var a=r.exec(o),s=a?a[1]:void 0;return(0,n.formatDOM)((0,e.default)(o),null,s)}return ms}var mf={},Yr={},rc={},zS;function yL(){if(zS)return rc;zS=1;var t=0;rc.SAME=t;var e=1;return rc.CAMELCASE=e,rc.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},rc}var BS;function bL(){if(BS)return Yr;BS=1;const t=0,e=1,n=2,r=3,i=4,o=5,a=6;function s(S){return u.hasOwnProperty(S)?u[S]:null}function c(S,A,T,N,P,U,V){this.acceptsBooleans=A===n||A===r||A===i,this.attributeName=N,this.attributeNamespace=P,this.mustUseProperty=T,this.propertyName=S,this.type=A,this.sanitizeURL=U,this.removeEmptyString=V}const u={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(S=>{u[S]=new c(S,t,!1,S,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([S,A])=>{u[S]=new c(S,e,!1,A,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(S=>{u[S]=new c(S,n,!1,S.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(S=>{u[S]=new c(S,n,!1,S,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(S=>{u[S]=new c(S,r,!1,S.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(S=>{u[S]=new c(S,r,!0,S,null,!1,!1)}),["capture","download"].forEach(S=>{u[S]=new c(S,i,!1,S,null,!1,!1)}),["cols","rows","size","span"].forEach(S=>{u[S]=new c(S,a,!1,S,null,!1,!1)}),["rowSpan","start"].forEach(S=>{u[S]=new c(S,o,!1,S.toLowerCase(),null,!1,!1)});const h=/[\-\:]([a-z])/g,p=S=>S[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(S=>{const A=S.replace(h,p);u[A]=new c(A,e,!1,S,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(S=>{const A=S.replace(h,p);u[A]=new c(A,e,!1,S,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(S=>{const A=S.replace(h,p);u[A]=new c(A,e,!1,S,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(S=>{u[S]=new c(S,e,!1,S.toLowerCase(),null,!1,!1)});const m="xlinkHref";u[m]=new c("xlinkHref",e,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(S=>{u[S]=new c(S,e,!1,S.toLowerCase(),null,!0,!0)});const{CAMELCASE:v,SAME:b,possibleStandardNames:y}=yL(),C=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",k=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+C+"]*$")),x=Object.keys(y).reduce((S,A)=>{const T=y[A];return T===b?S[A]=A:T===v?S[A.toLowerCase()]=A:S[A]=T,S},{});return Yr.BOOLEAN=r,Yr.BOOLEANISH_STRING=n,Yr.NUMERIC=o,Yr.OVERLOADED_BOOLEAN=i,Yr.POSITIVE_NUMERIC=a,Yr.RESERVED=t,Yr.STRING=e,Yr.getPropertyInfo=s,Yr.isCustomAttribute=k,Yr.possibleStandardNames=x,Yr}var ic={},gs={},fg,HS;function EL(){if(HS)return fg;HS=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,c=`
|
|
454
|
+
`,u="/",d="*",h="",p="comment",m="declaration";function v(y,w){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];w=w||{};var C=1,k=1;function x(j){var F=j.match(e);F&&(C+=F.length);var D=j.lastIndexOf(c);k=~D?j.length-D:k+j.length}function S(){var j={line:C,column:k};return function(F){return F.position=new A(j),P(),F}}function A(j){this.start=j,this.end={line:C,column:k},this.source=w.source}A.prototype.content=y;function T(j){var F=new Error(w.source+":"+C+":"+k+": "+j);if(F.reason=j,F.filename=w.source,F.line=C,F.column=k,F.source=y,!w.silent)throw F}function N(j){var F=j.exec(y);if(F){var D=F[0];return x(D),y=y.slice(D.length),F}}function P(){N(n)}function U(j){var F;for(j=j||[];F=V();)F!==!1&&j.push(F);return j}function V(){var j=S();if(!(u!=y.charAt(0)||d!=y.charAt(1))){for(var F=2;h!=y.charAt(F)&&(d!=y.charAt(F)||u!=y.charAt(F+1));)++F;if(F+=2,h===y.charAt(F-1))return T("End of comment missing");var D=y.slice(2,F-2);return k+=2,x(D),y=y.slice(F),k+=2,j({type:p,comment:D})}}function H(){var j=S(),F=N(r);if(F){if(V(),!N(i))return T("property missing ':'");var D=N(o),Y=j({type:m,property:b(F[0].replace(t,h)),value:D?b(D[0].replace(t,h)):h});return N(a),Y}}function Q(){var j=[];U(j);for(var F;F=H();)F!==!1&&(j.push(F),U(j));return j}return P(),Q()}function b(y){return y?y.replace(s,h):h}return fg=v,fg}var WS;function SL(){if(WS)return gs;WS=1;var t=gs&&gs.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(gs,"__esModule",{value:!0}),gs.default=n;const e=t(EL());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const a=(0,e.default)(r),s=typeof i=="function";return a.forEach(c=>{if(c.type!=="declaration")return;const{property:u,value:d}=c;s?i(u,d,c):d&&(o=o||{},o[u]=d)}),o}return gs}var oc={},GS;function wL(){if(GS)return oc;GS=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(u){return!u||n.test(u)||t.test(u)},a=function(u,d){return d.toUpperCase()},s=function(u,d){return"".concat(d,"-")},c=function(u,d){return d===void 0&&(d={}),o(u)?u:(u=u.toLowerCase(),d.reactCompat?u=u.replace(i,s):u=u.replace(r,s),u.replace(e,a))};return oc.camelCase=c,oc}var ac,YS;function _L(){if(YS)return ac;YS=1;var t=ac&&ac.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},e=t(SL()),n=wL();function r(i,o){var a={};return!i||typeof i!="string"||(0,e.default)(i,function(s,c){s&&c&&(a[(0,n.camelCase)(s,o)]=c)}),a}return r.default=r,ac=r,ac}var KS;function ZS(){return KS||(KS=1,(function(t){var e=ic&&ic.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=o,t.setStyleProp=s;var n=R,r=e(_L()),i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function o(d,h){return d.includes("-")?!i.has(d):!!(h&&typeof h.is=="string")}var a={reactCompat:!0};function s(d,h){if(typeof d=="string"){if(!d.trim()){h.style={};return}try{h.style=(0,r.default)(d,a)}catch{h.style={}}}}t.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var c=function(d){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(d.name)};t.canTextBeChildOfNode=c;var u=function(d){return d};t.returnFirstArg=u})(ic)),ic}var QS;function qS(){if(QS)return mf;QS=1,Object.defineProperty(mf,"__esModule",{value:!0}),mf.default=o;var t=bL(),e=ZS(),n=["checked","value"],r=["input","select","textarea"],i={reset:!0,submit:!0};function o(s,c){s===void 0&&(s={});var u={},d=!!(s.type&&i[s.type]);for(var h in s){var p=s[h];if((0,t.isCustomAttribute)(h)){u[h]=p;continue}var m=h.toLowerCase(),v=a(m);if(v){var b=(0,t.getPropertyInfo)(v);switch(n.includes(v)&&r.includes(c)&&!d&&(v=a("default"+m)),u[v]=p,b==null?void 0:b.type){case t.BOOLEAN:u[v]=!0;break;case t.OVERLOADED_BOOLEAN:p===""&&(u[v]=!0);break}continue}e.PRESERVE_CUSTOM_ATTRIBUTES&&(u[h]=p)}return(0,e.setStyleProp)(s.style,u),u}function a(s){return t.possibleStandardNames[s]}return mf}var vs={},JS;function CL(){if(JS)return vs;JS=1;var t=vs&&vs.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(vs,"__esModule",{value:!0}),vs.default=o;var e=R,n=t(qS()),r=ZS(),i={cloneElement:e.cloneElement,createElement:e.createElement,isValidElement:e.isValidElement};function o(s,c){var u,d,h,p,m;c===void 0&&(c={});for(var v=[],b=typeof c.replace=="function",y=(u=c.transform)!==null&&u!==void 0?u:r.returnFirstArg,w=(d=c.library)!==null&&d!==void 0?d:i,C=w.cloneElement,k=w.createElement,x=w.isValidElement,S=s.length,A=0;A<S;A++){var T=s[A];if(b){var N=(h=c.replace)===null||h===void 0?void 0:h.call(c,T,A);if(x(N)){S>1&&(N=C(N,{key:(p=N.key)!==null&&p!==void 0?p:A})),v.push(y(N,T,A));continue}}if(T.type==="text"){var P=!T.data.trim().length;if(P&&T.parent&&!(0,r.canTextBeChildOfNode)(T.parent)||c.trim&&P)continue;v.push(y(T.data,T,A));continue}var U=T,V={};a(U)?((0,r.setStyleProp)(U.attribs.style,U.attribs),V=U.attribs):U.attribs&&(V=(0,n.default)(U.attribs,U.name));var H=void 0;switch(T.type){case"script":case"style":T.children[0]&&(V.dangerouslySetInnerHTML={__html:T.children[0].data});break;case"tag":T.name==="textarea"&&T.children[0]?V.defaultValue=T.children[0].data:!((m=T.children)===null||m===void 0)&&m.length&&(H=o(T.children,c));break;default:continue}S>1&&(V.key=A),v.push(y(k(T.name,V,H),T,A))}return v.length===1?v[0]:v}function a(s){return r.PRESERVE_CUSTOM_ATTRIBUTES&&s.type==="tag"&&(0,r.isCustomComponent)(s.name,s.attribs)}return vs}var XS;function xL(){return XS||(XS=1,(function(t){var e=nc&&nc.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=s;var n=e(vL());t.htmlToDOM=n.default;var r=e(qS());t.attributesToProps=r.default;var i=e(CL());t.domToReact=i.default;var o=LS();Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return o.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return o.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return o.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return o.Text}});var a={lowerCaseAttributeNames:!1};function s(c,u){var d;if(typeof c!="string")throw new TypeError("First argument must be a string");return c?(0,i.default)((0,n.default)(c,(d=u==null?void 0:u.htmlparser2)!==null&&d!==void 0?d:a),u):[]}})(nc)),nc}var AL=xL();const $S=sa(AL),sc=$S.default||$S,kL=({articlesData:t,setArticleId:e,setSearchedText:n,setArticlesData:r})=>E.jsxs("div",{children:[E.jsxs("p",{className:"ed-text-14 ed-text-border-regular ed-font-medium ed-py-4 ed-px-2 ed-border-b ed-border-border-light ed-block ed-first-letter:uppercase ed-lowercase",children:[Ie.size(t)," articles"]}),E.jsx("div",{className:"ed-mt-4 ed-space-y-4",children:t==null?void 0:t.map(i=>E.jsxs("button",{type:"button",className:"ed-article-row-button ed-flex ed-items-center ed-gap-2 ed-flex-1 ed-w-full ed-px-5 ed-py-2 ed-hover:bg-white-light ed-text-left",onClick:()=>{e(i==null?void 0:i.id),n(""),r([])},children:[E.jsx("p",{className:"ed-article-title ed-text-border-dark ed-text-14 ed-font-medium ed-flex-1 ed-duration-500 ed-ease-in-out ed-transition-all",children:sc((i==null?void 0:i.title)||"")}),E.jsx("div",{className:"ed-chevron-wrapper ed-size-4 ed--translate-x-2 ed-opacity-0 ed-duration-300 ed-transition-all",children:E.jsx(eo,{className:"ed-text-border ed-size-4"})})]},i==null?void 0:i.id))})]});for(var va=256,ew=[],tw=256,gf;va--;)ew[va]=(va+256).toString(16).substring(1);function dg(t){var e=0,n=11;if(!gf||va+n>tw*2)for(gf="",va=0;e<tw;e++)gf+=ew[Math.random()*256|0];return gf.substring(va,va+++n)}const TL=(t,e,n)=>{const r=t[e];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((i,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},Ge=t=>typeof t=="string",lc=()=>{let t,e;const n=new Promise((r,i)=>{t=r,e=i});return n.resolve=t,n.reject=e,n},nw=t=>t==null?"":""+t,OL=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},RL=/###/g,rw=t=>t&&t.indexOf("###")>-1?t.replace(RL,"."):t,iw=t=>!t||Ge(t),cc=(t,e,n)=>{const r=Ge(e)?e.split("."):e;let i=0;for(;i<r.length-1;){if(iw(t))return{};const o=rw(r[i]);!t[o]&&n&&(t[o]=new n),Object.prototype.hasOwnProperty.call(t,o)?t=t[o]:t={},++i}return iw(t)?{}:{obj:t,k:rw(r[i])}},ow=(t,e,n)=>{const{obj:r,k:i}=cc(t,e,Object);if(r!==void 0||e.length===1){r[i]=n;return}let o=e[e.length-1],a=e.slice(0,e.length-1),s=cc(t,a,Object);for(;s.obj===void 0&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=cc(t,a,Object),s&&s.obj&&typeof s.obj[`${s.k}.${o}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},NL=(t,e,n,r)=>{const{obj:i,k:o}=cc(t,e,Object);i[o]=i[o]||[],i[o].push(n)},vf=(t,e)=>{const{obj:n,k:r}=cc(t,e);if(n)return n[r]},IL=(t,e,n)=>{const r=vf(t,n);return r!==void 0?r:vf(e,n)},aw=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?Ge(t[r])||t[r]instanceof String||Ge(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):aw(t[r],e[r],n):t[r]=e[r]);return t},ys=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var PL={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ML=t=>Ge(t)?t.replace(/[&<>"'\/]/g,e=>PL[e]):t;class LL{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const FL=[" ",",","?","!",";"],jL=new LL(20),DL=(t,e,n)=>{e=e||"",n=n||"";const r=FL.filter(a=>e.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const i=jL.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let o=!i.test(t);if(!o){const a=t.indexOf(n);a>0&&!i.test(t.substring(0,a))&&(o=!0)}return o},hg=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const r=e.split(n);let i=t;for(let o=0;o<r.length;){if(!i||typeof i!="object")return;let a,s="";for(let c=o;c<r.length;++c)if(c!==o&&(s+=n),s+=r[c],a=i[s],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&c<r.length-1)continue;o+=c-o+1;break}i=a}return i},yf=t=>t&&t.replace("_","-"),VL={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class bf{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||VL,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,i){return i&&!this.debug?null:(Ge(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new bf(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new bf(this.logger,e)}}var Mi=new bf;class Ef{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(a=>{let[s,c]=a;for(let u=0;u<c;u++)s(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[s,c]=a;for(let u=0;u<c;u++)s.apply(s,[e,...r])})}}class sw extends Ef{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;e.indexOf(".")>-1?s=e.split("."):(s=[e,n],r&&(Array.isArray(r)?s.push(...r):Ge(r)&&o?s.push(...r.split(o)):s.push(r)));const c=vf(this.data,s);return!c&&!n&&!r&&e.indexOf(".")>-1&&(e=s[0],n=s[1],r=s.slice(2).join(".")),c||!a||!Ge(r)?c:hg(this.data&&this.data[e]&&this.data[e][n],r,o)}addResource(e,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[e,n];r&&(s=s.concat(a?r.split(a):r)),e.indexOf(".")>-1&&(s=e.split("."),i=n,n=s[1]),this.addNamespaces(n),ow(this.data,s,i),o.silent||this.emit("added",e,n,r,i)}addResources(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(Ge(r[o])||Array.isArray(r[o]))&&this.addResource(e,n,o,r[o],{silent:!0});i.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[e,n];e.indexOf(".")>-1&&(s=e.split("."),i=r,r=n,n=s[1]),this.addNamespaces(n);let c=vf(this.data,s)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?aw(c,r,o):c={...c,...r},ow(this.data,s,c),a.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,n)}:this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var lw={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,i){return t.forEach(o=>{this.processors[o]&&(e=this.processors[o].process(e,n,r,i))}),e}};const cw={};class Sf extends Ef{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),OL(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Mi.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const r=this.resolve(e,n);return r&&r.res!==void 0}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const a=r&&e.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!DL(e,r,i);if(a&&!s){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:Ge(o)?[o]:o};const u=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),e=u.join(i)}return{key:e,namespaces:Ge(o)?[o]:o}}translate(e,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],n),c=s[s.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const x=n.nsSeparator||this.options.nsSeparator;return i?{res:`${c}${x}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${x}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:a}const h=this.resolve(e,n);let p=h&&h.res;const m=h&&h.usedKey||a,v=h&&h.exactUsedKey||a,b=Object.prototype.toString.apply(p),y=["[object Number]","[object Function]","[object RegExp]"],w=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject,k=!Ge(p)&&typeof p!="boolean"&&typeof p!="number";if(C&&p&&k&&y.indexOf(b)<0&&!(Ge(w)&&Array.isArray(p))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const x=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,p,{...n,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(h.res=x,h.usedParams=this.getUsedParamsDetails(n),h):x}if(o){const x=Array.isArray(p),S=x?[]:{},A=x?v:m;for(const T in p)if(Object.prototype.hasOwnProperty.call(p,T)){const N=`${A}${o}${T}`;S[T]=this.translate(N,{...n,joinArrays:!1,ns:s}),S[T]===N&&(S[T]=p[T])}p=S}}else if(C&&Ge(w)&&Array.isArray(p))p=p.join(w),p&&(p=this.extendTranslation(p,e,n,r));else{let x=!1,S=!1;const A=n.count!==void 0&&!Ge(n.count),T=Sf.hasDefaultValue(n),N=A?this.pluralResolver.getSuffix(u,n.count,n):"",P=n.ordinal&&A?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",U=A&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),V=U&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${N}`]||n[`defaultValue${P}`]||n.defaultValue;!this.isValidLookup(p)&&T&&(x=!0,p=V),this.isValidLookup(p)||(S=!0,p=a);const Q=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:p,j=T&&V!==p&&this.options.updateMissing;if(S||x||j){if(this.logger.log(j?"updateKey":"missingKey",u,c,a,j?V:p),o){const z=this.resolve(a,{...n,keySeparator:!1});z&&z.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let F=[];const D=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&D&&D[0])for(let z=0;z<D.length;z++)F.push(D[z]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(n.lng||this.language):F.push(n.lng||this.language);const Y=(z,q,W)=>{const G=T&&W!==p?W:Q;this.options.missingKeyHandler?this.options.missingKeyHandler(z,c,q,G,j,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(z,c,q,G,j,n),this.emit("missingKey",z,c,q,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?F.forEach(z=>{const q=this.pluralResolver.getSuffixes(z,n);U&&n[`defaultValue${this.options.pluralSeparator}zero`]&&q.indexOf(`${this.options.pluralSeparator}zero`)<0&&q.push(`${this.options.pluralSeparator}zero`),q.forEach(W=>{Y([z],a+W,n[`defaultValue${W}`]||V)})}):Y(F,a,V))}p=this.extendTranslation(p,e,n,h,r),S&&p===a&&this.options.appendNamespaceToMissingKey&&(p=`${c}:${a}`),(S||x)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${a}`:a,x?p:void 0):p=this.options.parseMissingKeyHandler(p))}return i?(h.res=p,h.usedParams=this.getUsedParamsDetails(n),h):p}extendTranslation(e,n,r,i,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=Ge(e)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const p=e.match(this.interpolator.nestingRegexp);d=p&&p.length}let h=r.replace&&!Ge(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),e=this.interpolator.interpolate(e,h,r.lng||this.language||i.usedLng,r),u){const p=e.match(this.interpolator.nestingRegexp),m=p&&p.length;d<m&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var p=arguments.length,m=new Array(p),v=0;v<p;v++)m[v]=arguments[v];return o&&o[0]===m[0]&&!r.context?(a.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${n[0]}`),null):a.translate(...m,n)},r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,c=Ge(s)?[s]:s;return e!=null&&c&&c.length&&r.applyPostProcessor!==!1&&(e=lw.handle(c,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,a,s;return Ge(e)&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(c,n),d=u.key;i=d;let h=u.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const p=n.count!==void 0&&!Ge(n.count),m=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=n.context!==void 0&&(Ge(n.context)||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(y=>{this.isValidLookup(r)||(s=y,!cw[`${b[0]}-${y}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(cw[`${b[0]}-${y}`]=!0,this.logger.warn(`key "${i}" for languages "${b.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(w=>{if(this.isValidLookup(r))return;a=w;const C=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(C,d,w,y,n);else{let x;p&&(x=this.pluralResolver.getSuffix(w,n.count,n));const S=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(C.push(d+x),n.ordinal&&x.indexOf(A)===0&&C.push(d+x.replace(A,this.options.pluralSeparator)),m&&C.push(d+S)),v){const T=`${d}${this.options.contextSeparator}${n.context}`;C.push(T),p&&(C.push(T+x),n.ordinal&&x.indexOf(A)===0&&C.push(T+x.replace(A,this.options.pluralSeparator)),m&&C.push(T+S))}}let k;for(;k=C.pop();)this.isValidLookup(r)||(o=k,r=this.getResource(w,y,k,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:s}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,r,i):this.resourceStore.getResource(e,n,r,i)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!Ge(e.replace);let i=r?e.replace:e;if(r&&typeof e.count<"u"&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}const pg=t=>t.charAt(0).toUpperCase()+t.slice(1);class uw{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Mi.create("languageUtils")}getScriptPartFromCode(e){if(e=yf(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=yf(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(Ge(e)&&e.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(e)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=pg(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=pg(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=pg(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),Ge(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],o=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return Ge(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(e))):Ge(e)&&o(this.formatLanguageCode(e)),r.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}let UL=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],zL={1:t=>+(t>1),2:t=>+(t!=1),3:t=>0,4:t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,5:t=>t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5,6:t=>t==1?0:t>=2&&t<=4?1:2,7:t=>t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,8:t=>t==1?0:t==2?1:t!=8&&t!=11?2:3,9:t=>+(t>=2),10:t=>t==1?0:t==2?1:t<7?2:t<11?3:4,11:t=>t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3,12:t=>+(t%10!=1||t%100==11),13:t=>+(t!==0),14:t=>t==1?0:t==2?1:t==3?2:3,15:t=>t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2,16:t=>t%10==1&&t%100!=11?0:t!==0?1:2,17:t=>t==1||t%10==1&&t%100!=11?0:1,18:t=>t==0?0:t==1?1:2,19:t=>t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3,20:t=>t==1?0:t==0||t%100>0&&t%100<20?1:2,21:t=>t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0,22:t=>t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3};const BL=["v1","v2","v3"],HL=["v4"],fw={zero:0,one:1,two:2,few:3,many:4,other:5},WL=()=>{const t={};return UL.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:zL[e.fc]}})}),t};class GL{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=Mi.create("pluralResolver"),(!this.options.compatibilityJSON||HL.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=WL(),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=yf(e==="dev"?"en":e),i=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let a;try{a=new Intl.PluralRules(r,{type:i})}catch{if(!e.match(/-|_/))return;const c=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(c,n)}return this.pluralRulesCache[o]=a,a}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,r).map(i=>`${n}${i}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,o)=>fw[i]-fw[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(e,i,n)):[]}getSuffix(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(e,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,n){const r=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let i=e.numbers[r];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!BL.includes(this.options.compatibilityJSON)}}const dw=function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=IL(t,e,n);return!o&&i&&Ge(n)&&(o=hg(t,n,r),o===void 0&&(o=hg(e,n,r))),o},mg=t=>t.replace(/\$/g,"$$$$");class YL{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Mi.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:a,suffix:s,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:h,nestingPrefix:p,nestingPrefixEscaped:m,nestingSuffix:v,nestingSuffixEscaped:b,nestingOptionsSeparator:y,maxReplaces:w,alwaysFormat:C}=e.interpolation;this.escape=n!==void 0?n:ML,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?ys(o):a||"{{",this.suffix=s?ys(s):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=p?ys(p):m||ys("$t("),this.nestingSuffix=v?ys(v):b||ys(")"),this.nestingOptionsSeparator=y||",",this.maxReplaces=w||1e3,this.alwaysFormat=C!==void 0?C:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,r,i){let o,a,s;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=m=>{if(m.indexOf(this.formatSeparator)<0){const w=dw(n,c,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(w,void 0,r,{...i,...n,interpolationkey:m}):w}const v=m.split(this.formatSeparator),b=v.shift().trim(),y=v.join(this.formatSeparator).trim();return this.format(dw(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure),y,r,{...i,...n,interpolationkey:b})};this.resetRegExp();const d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>mg(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?mg(this.escape(m)):mg(m)}].forEach(m=>{for(s=0;o=m.regex.exec(e);){const v=o[1].trim();if(a=u(v),a===void 0)if(typeof d=="function"){const y=d(e,o,i);a=Ge(y)?y:""}else if(i&&Object.prototype.hasOwnProperty.call(i,v))a="";else if(h){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${e}`),a="";else!Ge(a)&&!this.useRawValueToEscape&&(a=nw(a));const b=m.safeValue(a);if(e=e.replace(o[0],b),h?(m.regex.lastIndex+=a.length,m.regex.lastIndex-=o[0].length):m.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),e}nest(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,a;const s=(c,u)=>{const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const h=c.split(new RegExp(`${d}[ ]*{`));let p=`{${h[1]}`;c=h[0],p=this.interpolate(p,a);const m=p.match(/'/g),v=p.match(/"/g);(m&&m.length%2===0&&!v||v.length%2!==0)&&(p=p.replace(/'/g,'"'));try{a=JSON.parse(p),u&&(a={...u,...a})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,b),`${c}${d}${p}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,c};for(;i=this.nestingRegexp.exec(e);){let c=[];a={...r},a=a.replace&&!Ge(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const d=i[1].split(this.formatSeparator).map(h=>h.trim());i[1]=d.shift(),c=d,u=!0}if(o=n(s.call(this,i[1].trim(),a),a),o&&i[0]===e&&!Ge(o))return o;Ge(o)||(o=nw(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),o=""),u&&(o=c.reduce((d,h)=>this.format(d,h,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),e=e.replace(i[0],o),this.regexp.lastIndex=0}return e}}const KL=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);e==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(a){const[s,...c]=a.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),d=s.trim();n[d]||(n[d]=u),u==="false"&&(n[d]=!1),u==="true"&&(n[d]=!0),isNaN(u)||(n[d]=parseInt(u,10))}})}return{formatName:e,formatOptions:n}},bs=t=>{const e={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=e[a];return s||(s=t(yf(r),i),e[a]=s),s(n)}};class ZL{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Mi.create("formatter"),this.options=e,this.formats={number:bs((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:bs((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:bs((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:bs((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:bs((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},this.init(e)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=bs(n)}format(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){const s=o.findIndex(c=>c.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,c)=>{const{formatName:u,formatOptions:d}=KL(c);if(this.formats[u]){let h=s;try{const p=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},m=p.locale||p.lng||i.locale||i.lng||r;h=this.formats[u](s,m,{...d,...i,...p})}catch(p){this.logger.warn(p)}return h}else this.logger.warn(`there was no format function for ${u}`);return s},e)}}const QL=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class qL extends Ef{constructor(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Mi.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(e,n,r,i){const o={},a={},s={},c={};return e.forEach(u=>{let d=!0;n.forEach(h=>{const p=`${u}|${h}`;!r.reload&&this.store.hasResourceBundle(u,h)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?a[p]===void 0&&(a[p]=!0):(this.state[p]=1,d=!1,a[p]===void 0&&(a[p]=!0),o[p]===void 0&&(o[p]=!0),c[h]===void 0&&(c[h]=!0)))}),d||(s[u]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(c)}}loaded(e,n,r){const i=e.split("|"),o=i[0],a=i[1];n&&this.emit("failedLoading",o,a,n),!n&&r&&this.store.addResourceBundle(o,a,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const s={};this.queue.forEach(c=>{NL(c.loaded,[o],a),QL(c,e),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{s[u]||(s[u]={});const d=c.loaded[u];d.length&&d.forEach(h=>{s[u][h]===void 0&&(s[u][h]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(c=>!c.done)}read(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:i,wait:o,callback:a});return}this.readingCalls++;const s=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(u&&d&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,r,i+1,o*2,a)},o);return}a(u,d)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const u=c(e,n);u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}return}return c(e,n,s)}prepareLoading(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();Ge(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Ge(n)&&(n=[n]);const o=this.queueLoad(e,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,a),!a&&s&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,s),this.loaded(e,a,s)})}saveMissing(e,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const c={...a,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(e,n,r,i,c):d=u(e,n,r,i),d&&typeof d.then=="function"?d.then(h=>s(null,h)).catch(s):s(null,d)}catch(d){s(d)}else u(e,n,r,i,s,c)}!e||!e[0]||this.store.addResource(e[0],n,r,i)}}}const hw=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),Ge(t[1])&&(e.defaultValue=t[1]),Ge(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),pw=t=>(Ge(t.ns)&&(t.ns=[t.ns]),Ge(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Ge(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),wf=()=>{},JL=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class uc extends Ef{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=pw(e),this.services={},this.logger=Mi,this.modules={external:[]},JL(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(Ge(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=hw();this.options={...i,...this.options,...pw(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Mi.init(o(this.modules.logger),this.options):Mi.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=ZL);const h=new uw(this.options);this.store=new sw(this.options.resources,this.options);const p=this.services;p.logger=Mi,p.resourceStore=this.store,p.languageUtils=h,p.pluralResolver=new GL(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(p.formatter=o(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new YL(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new qL(o(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(m){for(var v=arguments.length,b=new Array(v>1?v-1:0),y=1;y<v;y++)b[y-1]=arguments[y];e.emit(m,...b)}),this.modules.languageDetector&&(p.languageDetector=o(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=o(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new Sf(this.services,this.options),this.translator.on("*",function(m){for(var v=arguments.length,b=new Array(v>1?v-1:0),y=1;y<v;y++)b[y-1]=arguments[y];e.emit(m,...b)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,r||(r=wf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return e.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return e.store[d](...arguments),e}});const c=lc(),u=()=>{const d=(h,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(p),r(h,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wf;const i=Ge(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],a=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>a(c)),this.options.preload&&this.options.preload.forEach(s=>a(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(s)})}else r(null)}reloadResources(e,n,r){const i=lc();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=wf),this.services.backendConnector.reload(e,n,o=>{i.resolve(),r(o)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&lw.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(e,n){var r=this;this.isLanguageChangingTo=e;const i=lc();this.emit("languageChanging",e);const o=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},a=(c,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},s=c=>{!e&&!c&&this.services.languageDetector&&(c=[]);const u=Ge(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{a(d,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e),i}getFixedT(e,n,r){var i=this;const o=function(a,s){let c;if(typeof s!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),h=2;h<u;h++)d[h-2]=arguments[h];c=i.options.overloadTranslationOptionHandler([a,s].concat(d))}else c={...s};c.lng=c.lng||o.lng,c.lngs=c.lngs||o.lngs,c.ns=c.ns||o.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||o.keyPrefix);const p=i.options.keySeparator||".";let m;return c.keyPrefix&&Array.isArray(a)?m=a.map(v=>`${c.keyPrefix}${p}${v}`):m=c.keyPrefix?`${c.keyPrefix}${p}${a}`:a,i.t(m,c)};return Ge(e)?o.lng=e:o.lngs=e,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,c)=>{const u=this.services.backendConnector.state[`${s}|${c}`];return u===-1||u===0||u===2};if(n.precheck){const s=n.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,e)&&(!i||a(o,e)))}loadNamespaces(e,n){const r=lc();return this.options.ns?(Ge(e)&&(e=[e]),e.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=lc();Ge(e)&&(e=[e]);const i=this.options.preload||[],o=e.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new uw(hw());return n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new uc(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wf;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},o=new uc(i);return(e.debug!==void 0||e.prefix!==void 0)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new sw(this.store.data,i),o.services.resourceStore=o.store),o.translator=new Sf(o.services,i),o.translator.on("*",function(s){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];o.emit(s,...u)}),o.init(i,n),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Gn=uc.createInstance();Gn.createInstance=uc.createInstance,Gn.createInstance,Gn.dir,Gn.init,Gn.loadResources,Gn.reloadResources,Gn.use,Gn.changeLanguage,Gn.getFixedT,Gn.t,Gn.exists,Gn.setDefaultNamespace,Gn.hasLoadedNamespace,Gn.loadNamespaces,Gn.loadLanguages;var _f={};/*!
|
|
455
|
+
* cookie
|
|
456
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
457
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
458
|
+
* MIT Licensed
|
|
459
|
+
*/var mw;function XL(){if(mw)return _f;mw=1,_f.parse=a,_f.serialize=u;var t=Object.prototype.toString,e=Object.prototype.hasOwnProperty,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,r=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/;function a(m,v){if(typeof m!="string")throw new TypeError("argument str must be a string");var b={},y=m.length;if(y<2)return b;var w=v&&v.decode||d,C=0,k=0,x=0;do{if(k=m.indexOf("=",C),k===-1)break;if(x=m.indexOf(";",C),x===-1)x=y;else if(k>x){C=m.lastIndexOf(";",k-1)+1;continue}var S=s(m,C,k),A=c(m,k,S),T=m.slice(S,A);if(!e.call(b,T)){var N=s(m,k+1,x),P=c(m,x,N);m.charCodeAt(N)===34&&m.charCodeAt(P-1)===34&&(N++,P--);var U=m.slice(N,P);b[T]=p(U,w)}C=x+1}while(C<y);return b}function s(m,v,b){do{var y=m.charCodeAt(v);if(y!==32&&y!==9)return v}while(++v<b);return b}function c(m,v,b){for(;v>b;){var y=m.charCodeAt(--v);if(y!==32&&y!==9)return v+1}return b}function u(m,v,b){var y=b&&b.encode||encodeURIComponent;if(typeof y!="function")throw new TypeError("option encode is invalid");if(!n.test(m))throw new TypeError("argument name is invalid");var w=y(v);if(!r.test(w))throw new TypeError("argument val is invalid");var C=m+"="+w;if(!b)return C;if(b.maxAge!=null){var k=Math.floor(b.maxAge);if(!isFinite(k))throw new TypeError("option maxAge is invalid");C+="; Max-Age="+k}if(b.domain){if(!i.test(b.domain))throw new TypeError("option domain is invalid");C+="; Domain="+b.domain}if(b.path){if(!o.test(b.path))throw new TypeError("option path is invalid");C+="; Path="+b.path}if(b.expires){var x=b.expires;if(!h(x)||isNaN(x.valueOf()))throw new TypeError("option expires is invalid");C+="; Expires="+x.toUTCString()}if(b.httpOnly&&(C+="; HttpOnly"),b.secure&&(C+="; Secure"),b.partitioned&&(C+="; Partitioned"),b.priority){var S=typeof b.priority=="string"?b.priority.toLowerCase():b.priority;switch(S){case"low":C+="; Priority=Low";break;case"medium":C+="; Priority=Medium";break;case"high":C+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(b.sameSite){var A=typeof b.sameSite=="string"?b.sameSite.toLowerCase():b.sameSite;switch(A){case!0:C+="; SameSite=Strict";break;case"lax":C+="; SameSite=Lax";break;case"strict":C+="; SameSite=Strict";break;case"none":C+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return C}function d(m){return m.indexOf("%")!==-1?decodeURIComponent(m):m}function h(m){return t.call(m)==="[object Date]"}function p(m,v){try{return v(m)}catch{return m}}return _f}var Cf=XL();function $L(){const t=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof t=="boolean"?t:typeof document=="object"&&typeof document.cookie=="string"}function eF(t){return typeof t=="string"?Cf.parse(t):typeof t=="object"&&t!==null?t:{}}function gg(t,e={}){const n=tF(t);if(!e.doNotParse)try{return JSON.parse(n)}catch{}return t}function tF(t){return t&&t[0]==="j"&&t[1]===":"?t.substr(2):t}class nF{constructor(e,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const i=this.cookies;this.cookies=Cf.parse(document.cookie),this._checkChanges(i)};const r=typeof document>"u"?"":document.cookie;this.cookies=eF(e||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=$L()}_emitChange(e){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](e)}_checkChanges(e){new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach(r=>{e[r]!==this.cookies[r]&&this._emitChange({name:r,value:gg(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(e,n={}){return n.doNotUpdate||this.update(),gg(this.cookies[e],n)}getAll(e={}){e.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=gg(this.cookies[r],e);return n}set(e,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const i=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:i}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=Cf.serialize(e,i,r)),this._emitChange({name:e,value:n,options:r})}remove(e,n){const r=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=Cf.serialize(e,"",r)),this._emitChange({name:e,value:void 0,options:n})}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(e){const n=this.changeListeners.indexOf(e);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const gw=L.createContext(new nF),{Provider:_X,Consumer:CX}=gw;typeof SuppressedError=="function"&&SuppressedError;var vg={exports:{}},Ct={};/** @license React v16.13.1
|
|
460
|
+
* react-is.development.js
|
|
461
|
+
*
|
|
462
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
463
|
+
*
|
|
464
|
+
* This source code is licensed under the MIT license found in the
|
|
465
|
+
* LICENSE file in the root directory of this source tree.
|
|
466
|
+
*/var vw;function rF(){return vw||(vw=1,(function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,h=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,v=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,C=t?Symbol.for("react.scope"):60119;function k(X){return typeof X=="string"||typeof X=="function"||X===r||X===u||X===o||X===i||X===h||X===p||typeof X=="object"&&X!==null&&(X.$$typeof===v||X.$$typeof===m||X.$$typeof===a||X.$$typeof===s||X.$$typeof===d||X.$$typeof===y||X.$$typeof===w||X.$$typeof===C||X.$$typeof===b)}function x(X){if(typeof X=="object"&&X!==null){var Re=X.$$typeof;switch(Re){case e:var ye=X.type;switch(ye){case c:case u:case r:case o:case i:case h:return ye;default:var Fe=ye&&ye.$$typeof;switch(Fe){case s:case d:case v:case m:case a:return Fe;default:return Re}}case n:return Re}}}var S=c,A=u,T=s,N=a,P=e,U=d,V=r,H=v,Q=m,j=n,F=o,D=i,Y=h,z=!1;function q(X){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),W(X)||x(X)===c}function W(X){return x(X)===u}function G(X){return x(X)===s}function te(X){return x(X)===a}function ne(X){return typeof X=="object"&&X!==null&&X.$$typeof===e}function ce(X){return x(X)===d}function ie(X){return x(X)===r}function de(X){return x(X)===v}function pe(X){return x(X)===m}function J(X){return x(X)===n}function re(X){return x(X)===o}function he(X){return x(X)===i}function Ee(X){return x(X)===h}Ct.AsyncMode=S,Ct.ConcurrentMode=A,Ct.ContextConsumer=T,Ct.ContextProvider=N,Ct.Element=P,Ct.ForwardRef=U,Ct.Fragment=V,Ct.Lazy=H,Ct.Memo=Q,Ct.Portal=j,Ct.Profiler=F,Ct.StrictMode=D,Ct.Suspense=Y,Ct.isAsyncMode=q,Ct.isConcurrentMode=W,Ct.isContextConsumer=G,Ct.isContextProvider=te,Ct.isElement=ne,Ct.isForwardRef=ce,Ct.isFragment=ie,Ct.isLazy=de,Ct.isMemo=pe,Ct.isPortal=J,Ct.isProfiler=re,Ct.isStrictMode=he,Ct.isSuspense=Ee,Ct.isValidElementType=k,Ct.typeOf=x})()),Ct}var yw;function iF(){return yw||(yw=1,vg.exports=rF()),vg.exports}var yg,bw;function oF(){if(bw)return yg;bw=1;var t=iF(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[t.ForwardRef]=r,o[t.Memo]=i;function a(v){return t.isMemo(v)?i:o[v.$$typeof]||e}var s=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;function m(v,b,y){if(typeof b!="string"){if(p){var w=h(b);w&&w!==p&&m(v,w,y)}var C=c(b);u&&(C=C.concat(u(b)));for(var k=a(v),x=a(b),S=0;S<C.length;++S){var A=C[S];if(!n[A]&&!(y&&y[A])&&!(x&&x[A])&&!(k&&k[A])){var T=d(b,A);try{s(v,A,T)}catch{}}}}return v}return yg=m,yg}oF();function aF(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function sF(t,e){const n=R.useContext(gw);if(!n)throw new Error("Missing <CookiesProvider>");const i=Object.assign(Object.assign({},{doNotUpdate:!0}),e),[o,a]=R.useState(()=>n.getAll(i));aF()&&R.useLayoutEffect(()=>{function d(){const h=n.getAll(i);lF(t||null,h,o)&&a(h)}return n.addChangeListener(d),()=>{n.removeChangeListener(d)}},[n,o]);const s=R.useMemo(()=>n.set.bind(n),[n]),c=R.useMemo(()=>n.remove.bind(n),[n]),u=R.useMemo(()=>n.update.bind(n),[n]);return[o,s,c,u]}function lF(t,e,n){if(!t)return!0;for(let r of t)if(e[r]!==n[r])return!0;return!1}var cF=function(e){return{type:"backend",init:function(r,i,o){},read:function(r,i,o){if(typeof e=="function"){if(e.length<3){try{var a=e(r,i);a&&typeof a.then=="function"?a.then(function(s){return o(null,s&&s.default||s)}).catch(o):o(null,a)}catch(s){o(s)}return}e(r,i,o);return}o(null,e&&e[r]&&e[r][i])}}};const{slice:uF,forEach:fF}=[];function dF(t){return fF.call(uF.call(arguments,1),e=>{if(e)for(const n in e)t[n]===void 0&&(t[n]=e[n])}),t}function hF(t){return typeof t!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(t))}const Ew=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,pF=function(t,e){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(e);let o=`${t}=${i}`;if(r.maxAge>0){const a=r.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(a)}`}if(r.domain){if(!Ew.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!Ew.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(o+="; Partitioned"),o},Sw={create(t,e,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+n*60*1e3)),r&&(i.domain=r),document.cookie=pF(t,e,i)},read(t){const e=`${t}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(e)===0)return i.substring(e.length,i.length)}return null},remove(t,e){this.create(t,"",-1,e)}};var mF={name:"cookie",lookup(t){let{lookupCookie:e}=t;if(e&&typeof document<"u")return Sw.read(e)||void 0},cacheUserLanguage(t,e){let{lookupCookie:n,cookieMinutes:r,cookieDomain:i,cookieOptions:o}=e;n&&typeof document<"u"&&Sw.create(n,t,r,i,o)}},gF={name:"querystring",lookup(t){var r;let{lookupQuerystring:e}=t,n;if(typeof window<"u"){let{search:i}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const a=i.substring(1).split("&");for(let s=0;s<a.length;s++){const c=a[s].indexOf("=");c>0&&a[s].substring(0,c)===e&&(n=a[s].substring(c+1))}}return n}},vF={name:"hash",lookup(t){var i;let{lookupHash:e,lookupFromHashIndex:n}=t,r;if(typeof window<"u"){const{hash:o}=window.location;if(o&&o.length>2){const a=o.substring(1);if(e){const s=a.split("&");for(let c=0;c<s.length;c++){const u=s[c].indexOf("=");u>0&&s[c].substring(0,u)===e&&(r=s[c].substring(u+1))}}if(r)return r;if(!r&&n>-1){const s=o.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?(i=s[typeof n=="number"?n:0])==null?void 0:i.replace("/",""):void 0}}}return r}};let Es=null;const ww=()=>{if(Es!==null)return Es;try{if(Es=typeof window<"u"&&window.localStorage!==null,!Es)return!1;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Es=!1}return Es};var yF={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&ww())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:n}=e;n&&ww()&&window.localStorage.setItem(n,t)}};let Ss=null;const _w=()=>{if(Ss!==null)return Ss;try{if(Ss=typeof window<"u"&&window.sessionStorage!==null,!Ss)return!1;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Ss=!1}return Ss};var bF={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&_w())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:n}=e;n&&_w()&&window.sessionStorage.setItem(n,t)}},EF={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:i}=navigator;if(n)for(let o=0;o<n.length;o++)e.push(n[o]);r&&e.push(r),i&&e.push(i)}return e.length>0?e:void 0}},SF={name:"htmlTag",lookup(t){let{htmlTag:e}=t,n;const r=e||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},wF={name:"path",lookup(t){var i;let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(i=n[typeof e=="number"?e:0])==null?void 0:i.replace("/",""):void 0}},_F={name:"subdomain",lookup(t){var i,o;let{lookupFromSubdomainIndex:e}=t;const n=typeof e=="number"?e+1:1,r=typeof window<"u"&&((o=(i=window.location)==null?void 0:i.hostname)==null?void 0:o.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};let Cw=!1;try{document.cookie,Cw=!0}catch{}const xw=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Cw||xw.splice(1,1);const CF=()=>({order:xw,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t});class Aw{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,n)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=dF(n,this.options||{},CF()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(mF),this.addDetector(gF),this.addDetector(yF),this.addDetector(bF),this.addDetector(EF),this.addDetector(SF),this.addDetector(wF),this.addDetector(_F),this.addDetector(vF)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return e.forEach(r=>{if(this.detectors[r]){let i=this.detectors[r].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(n=n.concat(i))}}),n=n.filter(r=>r!=null&&!hF(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(e,this.options)}))}}Aw.type="languageDetector";const bg="en",kw=[bg,"no"],Eg="translation",Sg="i18next";function xF(t=bg,e=Eg){return{returnObjects:!0,debug:!1,supportedLngs:kw,fallbackLng:bg,lng:t,fallbackNS:Eg,defaultNS:Eg,ns:e,interpolation:{escapeValue:!1}}}const AF=typeof window>"u",kF={order:["path","navigator","localStorage","cookie","htmlTag"],lookupQuerystring:"lng",lookupCookie:"linaroResourcesHubLang",lookupLocalStorage:"linaroResourcesHubLang",lookupSessionStorage:"linaroResourcesHubLang",lookupFromPathIndex:0,lookupFromSubdomainIndex:0,caches:["localStorage","cookie"],excludeCacheFor:["cimode"],cookieOptions:{path:"/",sameSite:"strict"}};Gn.use(mN).use(Aw).use(cF((t,e)=>TL(Object.assign({"../../helpers/lang/en.js":()=>Promise.resolve().then(()=>rG),"../../helpers/lang/no.js":()=>Promise.resolve().then(()=>iG)}),`../../helpers/lang/${t}.js`,5))).init({...xF(),lng:void 0,detection:kF,preload:AF?kw:[]});function ws(t,e,n){const[r,i]=sF([Sg]),o=EN(e,n),{i18n:a}=o,s=r[Sg];{const[c,u]=R.useState(a.resolvedLanguage);R.useEffect(()=>{c!==a.resolvedLanguage&&u(a.resolvedLanguage)},[c,a.resolvedLanguage]),R.useEffect(()=>{},[t,a]),R.useEffect(()=>{s!==t&&i(Sg,t,{path:"/"})},[t,s,i])}return o}const _s=({Icon:t=x1,btnType:e="btn_primary",title:n="Save",disabled:r=!1,loader:i=!1,loaderText:o="loading",callBack:a=()=>{},customClass:s="",fullWidthBtn:c=!1,customPadding:u="ed-px-7 ed-h-[41px]",btnBorder:d="ed-border-light",buttonTitleStylings:h="ed-text-sm ed-font-medium",buttonWidth:p="w-[100%]",iconSize:m=20,iconPosition:v="left",loaderPosition:b="left",submitType:y=!1,noIcon:w=!1})=>{const{t:C}=ws(),k=()=>{const S=T=>!w&&!i&&v===T||i&&b===T,A=()=>i?E.jsx(ma,{}):!w&&E.jsx(t,{size:m});return E.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2.5",children:[S("left")&&A(),E.jsx("span",{className:`whitespace-nowrap ${h}`,children:C(i?o:n)}),S("right")&&A()]})},x={btn_primary:E.jsx("button",{type:y?"submit":"button",className:`ed-flex ${s||""} ${p} ${c&&"ed-lg:w-max"} ${u||"ed-px-7 ed-h-[41px]"} ed-gap-2.5 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-whitespace-nowrap ed-focus:outline-none ed-text-white disabled:ed-bg-brand disabled:ed-opacity-50 ed-bg-brand ${r?"":"btn_hover_color"}`,onClick:a,disabled:r,children:k()}),btn_secondary:E.jsx("button",{type:"button",className:`${s||""} ed-flex ${p} ed-lg:w-max px-7 ed-gap-2.5 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-h-[41px] ed-text-center ed-text-white ed-bg-gray-deep disabled:ed-opacity-50 ed-focus:outline-none ed-bg-none ed-rounded-[8px] ed-border ed-border-light ${r?"":"btn_hover_color"}`,onClick:a,disabled:r,children:k()}),btn_danger:E.jsx("button",{type:"button",className:`ed-flex ${s||""} ${p} ed-lg:w-max px-7 ed-gap-2.5 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-h-[41px] ed-focus:outline-none ed-text-white ed-bg-red disabled:ed-opacity-50 ${r?"":"btn_hover_color"}`,onClick:a,disabled:r,children:k()}),btn_bordered:E.jsx("button",{type:"button",className:`${s||""} ed-flex ${u||"ed-px-7 ed-h-[41px]"} ${p} ${!c&&"lg:w-max"} ed-gap-2.5 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-whitespace-nowrap ed-text-center ed-text-border-regular disabled:ed-opacity-50 ed-focus:outline-none ed-bg-none ed-rounded-[8px] ed-border ed-border-${d||"light"}`,onClick:a,disabled:r,children:k()}),btn_bordered_danger:E.jsx("button",{type:"button",className:`ed-flex ${s||""} ${p} ${!c&&"ed-lg:w-max"} ed-px-[25px] ed-gap-2.5 ed-items-center ed-text-14 ed-font-medium ed-h-[41px] ed-text-center ed-text-red disabled:ed-opacity-50 ed-focus:outline-none ed-bg-none ed-rounded-[8px] ed-border ed-border-red`,onClick:a,disabled:r,children:k()}),btn_success:E.jsx("button",{type:"button",className:`ed-flex ${s||""} ${p} ed-gap-2.5 ed-px-[25px] ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-h-[41px] ed-focus:outline-none ed-text-white ed-bg-green ed-hover:bg-green-600 disabled:ed-opacity-50 ${r?"":"btn_hover_color"}`,onClick:a,disabled:r,children:k()}),btn_warning:E.jsx("button",{type:"button",className:`ed-flex ed-gap-2.5 ${s||""} ${p} ed-lg:w-max px-7 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-h-[41px] ed-focus:outline-none ed-text-white ed-bg-yellow disabled:ed-opacity-50 ${r?"":"btn_hover_color"}`,onClick:a,disabled:r,children:k()}),btn_preview:E.jsxs("button",{type:"button",className:`ed-flex ed-gap-2.5 ${s||""} ${p} ed-lg:w-max ed-px-7 ed-md:px-3 ed-xl:px-7 ed-justify-center ed-items-center ed-text-14 ed-font-medium ed-rounded-[8px] ed-h-[41px] ed-focus:outline-none ed-text-white disabled:ed-bg-brand disabled:ed-opacity-50 ed-bg-brand ${r?"":"btn_hover_color"}`,onClick:a,disabled:r,children:[k()," ",E.jsx("div",{className:"ed-border ed-border-l ed-border-gray ed-h-2/3 ed-flex ed-items-center ed-mx-3"})," ",E.jsx(ps,{className:"ed-w-5 ed-h-5"})]}),btn_bordered_brand:E.jsx("button",{type:"button",className:`gap-2.5 ${s}`,onClick:a,disabled:r,children:k()})};return E.jsx("div",{className:"ed-flex",children:x[e]})},TF=()=>E.jsxs("svg",{width:"240",height:"240",viewBox:"0 0 240 240",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsxs("g",{"clip-path":"url(#clip0_28564_181684)",children:[E.jsx("path",{d:"M240 183.523H0V183.643H240V183.523Z",fill:"#E0E0E0"}),E.jsx("path",{d:"M181.28 188.609H164.766V188.729H181.28V188.609Z",fill:"#E0E0E0"}),E.jsx("path",{d:"M53.3001 188.672H44.0078V188.792H53.3001V188.672Z",fill:"#E0E0E0"}),E.jsx("path",{d:"M120.481 188.391H101.646V188.511H120.481V188.391Z",fill:"#E0E0E0"}),E.jsx("path",{d:"M101.166 186.68H92.7461V186.8H101.166V186.68Z",fill:"#E0E0E0"}),E.jsx("path",{d:"M203.786 186.734H178.354V186.854H203.786V186.734Z",fill:"#E0E0E0"}),E.jsx("path",{d:"M23.4492 72.2422L132.875 87.9934L147.561 102.813L23.4492 72.2422Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.6",d:"M23.4492 72.2422L132.875 87.9934L147.561 102.813L23.4492 72.2422Z",fill:"white"}),E.jsx("path",{d:"M23.4492 72.2422L132.875 87.9934L127.797 109.423L23.4492 72.2422Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.2",d:"M23.4492 72.2422L132.875 87.9934L127.797 109.423L23.4492 72.2422Z",fill:"black"}),E.jsx("path",{d:"M125.55 47.4265L131.904 77.1995C132.248 78.8118 131.211 80.4126 129.598 80.7568L72.9203 92.8523C71.308 93.1964 69.7072 92.1587 69.363 90.5464L63.0093 60.7734C62.8293 59.9305 63.0275 59.0886 63.4873 58.4286C63.9088 57.8305 64.5457 57.3803 65.3152 57.2161L121.993 45.1206C122.763 44.9564 123.528 45.1072 124.157 45.4811C124.846 45.8958 125.371 46.5836 125.55 47.4265Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.4",d:"M125.55 47.4265L131.904 77.1995C132.248 78.8118 131.211 80.4126 129.598 80.7568L72.9203 92.8523C71.308 93.1964 69.7072 92.1587 69.363 90.5464L63.0093 60.7734C62.8293 59.9305 63.0275 59.0886 63.4873 58.4286C63.9088 57.8305 64.5457 57.3803 65.3152 57.2161L121.993 45.1206C122.763 44.9564 123.528 45.1072 124.157 45.4811C124.846 45.8958 125.371 46.5836 125.55 47.4265Z",fill:"black"}),E.jsx("path",{d:"M124.156 45.4815L105.217 68.7288C101.6 73.1688 95.3799 74.496 90.2655 71.9194L63.4863 58.4285C63.9078 57.8304 64.5447 57.3802 65.3142 57.216L121.992 45.1205C122.762 44.9564 123.528 45.1076 124.156 45.4815Z",fill:"#00A1E0"}),E.jsx("path",{d:"M23.4492 72.2422L113.705 93.691L127.797 109.423L23.4492 72.2422Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.6",d:"M23.4492 72.2422L113.705 93.691L127.797 109.423L23.4492 72.2422Z",fill:"white"}),E.jsx("path",{d:"M56.3718 92.937L56.1289 93.3516L66.1707 99.2349L66.4135 98.8203L56.3718 92.937Z",fill:"#00A1E0"}),E.jsx("path",{d:"M70.8483 101.414L70.6055 101.828L74.218 103.945L74.4609 103.53L70.8483 101.414Z",fill:"#00A1E0"}),E.jsx("path",{d:"M23.4492 72.25L113.705 93.6988L96.1615 114.846L23.4492 72.25Z",fill:"#00A1E0"}),E.jsx("path",{d:"M144.174 122.501C144.057 122.501 143.937 122.479 143.821 122.432L129.117 116.611C128.624 116.416 128.382 115.858 128.578 115.365C128.772 114.872 129.328 114.63 129.824 114.826L144.528 120.647C145.021 120.842 145.262 121.4 145.067 121.893C144.918 122.27 144.556 122.501 144.174 122.501Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.3",d:"M144.174 122.501C144.057 122.501 143.937 122.479 143.821 122.432L129.117 116.611C128.624 116.416 128.382 115.858 128.578 115.365C128.772 114.872 129.328 114.63 129.824 114.826L144.528 120.647C145.021 120.842 145.262 121.4 145.067 121.893C144.918 122.27 144.556 122.501 144.174 122.501Z",fill:"black"}),E.jsx("path",{d:"M143.306 114.071C143.189 114.071 143.069 114.049 142.953 114.003L135.056 110.877C134.563 110.682 134.322 110.124 134.517 109.631C134.711 109.138 135.268 108.895 135.763 109.092L143.66 112.218C144.153 112.413 144.394 112.971 144.199 113.464C144.049 113.841 143.688 114.071 143.306 114.071Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.5",d:"M143.306 114.071C143.189 114.071 143.069 114.049 142.953 114.003L135.056 110.877C134.563 110.682 134.322 110.124 134.517 109.631C134.711 109.138 135.268 108.895 135.763 109.092L143.66 112.218C144.153 112.413 144.394 112.971 144.199 113.464C144.049 113.841 143.688 114.071 143.306 114.071Z",fill:"white"}),E.jsx("path",{d:"M126.799 122.355C126.682 122.355 126.562 122.333 126.446 122.287L112.109 116.611C111.616 116.416 111.374 115.858 111.57 115.365C111.765 114.872 112.322 114.63 112.816 114.826L127.153 120.502C127.646 120.697 127.887 121.255 127.692 121.748C127.543 122.125 127.181 122.355 126.799 122.355Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.3",d:"M126.799 122.355C126.682 122.355 126.562 122.333 126.446 122.287L112.109 116.611C111.616 116.416 111.374 115.858 111.57 115.365C111.765 114.872 112.322 114.63 112.816 114.826L127.153 120.502C127.646 120.697 127.887 121.255 127.692 121.748C127.543 122.125 127.181 122.355 126.799 122.355Z",fill:"black"}),E.jsx("path",{d:"M178.705 79.125C179.976 81.6085 181.143 84.0925 182.25 86.6389C183.35 89.1853 184.394 91.7581 185.293 94.4586L185.621 95.4824C185.677 95.6644 185.762 95.9634 185.807 96.176C185.852 96.3978 185.9 96.6268 185.926 96.8298C186.053 97.666 186.075 98.4215 186.089 99.1645C186.113 100.645 186.013 102.057 185.89 103.461C185.621 106.264 185.184 108.992 184.583 111.728L181.951 111.436C181.917 108.732 181.892 106.002 181.798 103.338C181.751 102.009 181.675 100.683 181.54 99.4324C181.472 98.8112 181.372 98.2021 181.255 97.6924C181.228 97.5575 181.192 97.4548 181.161 97.3434C181.123 97.2244 181.107 97.1965 181.055 97.054L180.693 96.1463C179.69 93.7175 178.561 91.2671 177.41 88.8292L173.926 81.5173L178.705 79.125Z",fill:"#E4897B"}),E.jsx("path",{d:"M181.991 110.617L180.762 112.915L184.686 114.01C184.686 114.01 185.434 112.161 184.544 110.704L181.991 110.617Z",fill:"#E4897B"}),E.jsx("path",{d:"M179.256 116.228L182.865 116.513L184.686 114.009L180.761 112.914L179.256 116.228Z",fill:"#E4897B"}),E.jsx("path",{d:"M162.18 62.5371C162.123 62.816 161.929 63.0118 161.747 62.9749C161.565 62.9379 161.463 62.6821 161.52 62.4032C161.576 62.1243 161.77 61.9285 161.952 61.9654C162.134 62.0029 162.236 62.2587 162.18 62.5371Z",fill:"#263238"}),E.jsx("path",{d:"M161.955 63.0234C161.955 63.0234 160.994 64.5028 160.139 65.1364C160.538 65.697 161.419 65.6572 161.419 65.6572L161.955 63.0234Z",fill:"#DE5753"}),E.jsx("path",{d:"M163.515 61.2049C163.469 61.2049 163.425 61.1867 163.392 61.1511C162.892 60.6097 162.298 60.698 162.272 60.7009C162.184 60.7167 162.095 60.6543 162.08 60.5631C162.065 60.4724 162.126 60.3865 162.217 60.3711C162.248 60.3654 163.01 60.2449 163.637 60.9236C163.7 60.9913 163.696 61.0969 163.628 61.1598C163.596 61.19 163.555 61.2049 163.515 61.2049Z",fill:"#263238"}),E.jsx("path",{d:"M170.119 66.4609C169.613 69.0405 169.108 73.7675 170.913 75.4888C170.913 75.4888 170.208 78.1057 165.415 78.1057C160.144 78.1057 162.896 75.4893 162.896 75.4893C165.772 74.8024 165.698 72.6678 165.197 70.6638L170.119 66.4609Z",fill:"#E4897B"}),E.jsx("path",{d:"M171.637 77.1177C172.018 75.8534 172.437 74.4067 171.57 73.9535C170.616 73.4548 165.396 72.9465 163.596 73.8825C161.796 74.8185 162.307 77.3827 162.307 77.3827L171.637 77.1177Z",fill:"#263238"}),E.jsx("path",{d:"M182.708 196.822C182.347 196.822 181.998 196.767 181.862 196.59C181.804 196.515 181.758 196.386 181.864 196.193C181.92 196.092 182.008 196.026 182.127 195.999C182.644 195.88 183.615 196.545 183.657 196.573C183.684 196.591 183.698 196.624 183.691 196.657C183.685 196.689 183.661 196.715 183.629 196.723C183.448 196.766 183.072 196.822 182.708 196.822ZM182.268 196.15C182.231 196.15 182.197 196.153 182.165 196.161C182.094 196.178 182.043 196.215 182.011 196.273C181.935 196.41 181.98 196.469 181.995 196.488C182.145 196.686 182.866 196.689 183.392 196.6C183.088 196.413 182.588 196.15 182.268 196.15Z",fill:"#00A1E0"}),E.jsx("path",{d:"M183.61 196.721C183.596 196.721 183.582 196.718 183.57 196.711C183.205 196.513 182.499 195.741 182.574 195.348C182.587 195.276 182.64 195.153 182.84 195.128C182.966 195.114 183.089 195.148 183.195 195.236C183.605 195.57 183.689 196.588 183.693 196.631C183.696 196.661 183.681 196.691 183.655 196.707C183.641 196.717 183.625 196.721 183.61 196.721ZM182.897 195.292C182.885 195.292 182.872 195.293 182.86 195.295C182.751 195.308 182.742 195.358 182.737 195.379C182.694 195.612 183.143 196.196 183.506 196.47C183.465 196.173 183.352 195.58 183.089 195.365C183.029 195.316 182.966 195.292 182.897 195.292Z",fill:"#00A1E0"}),E.jsx("path",{d:"M161.534 196.826C161.082 196.826 160.645 196.763 160.499 196.56C160.447 196.489 160.407 196.367 160.506 196.195C160.561 196.098 160.65 196.032 160.771 195.999C161.355 195.843 162.59 196.542 162.642 196.572C162.672 196.589 162.689 196.623 162.683 196.658C162.677 196.692 162.651 196.719 162.617 196.726C162.391 196.771 161.956 196.826 161.534 196.826ZM160.975 196.141C160.917 196.141 160.863 196.148 160.814 196.161C160.737 196.182 160.684 196.22 160.65 196.277C160.591 196.381 160.613 196.432 160.634 196.462C160.793 196.682 161.683 196.694 162.345 196.603C162.018 196.435 161.388 196.141 160.975 196.141Z",fill:"#00A1E0"}),E.jsx("path",{d:"M162.599 196.721C162.588 196.721 162.576 196.718 162.565 196.714C162.14 196.523 161.297 195.761 161.361 195.361C161.376 195.268 161.442 195.151 161.672 195.128C161.842 195.112 161.998 195.159 162.135 195.271C162.584 195.64 162.678 196.589 162.682 196.63C162.685 196.659 162.672 196.688 162.648 196.705C162.633 196.716 162.617 196.721 162.599 196.721ZM161.739 195.292C161.723 195.292 161.706 195.293 161.689 195.294C161.538 195.31 161.529 195.369 161.525 195.388C161.487 195.628 162.06 196.227 162.494 196.488C162.449 196.211 162.323 195.642 162.029 195.4C161.94 195.327 161.845 195.292 161.739 195.292Z",fill:"#00A1E0"}),E.jsx("path",{d:"M166.477 196.642H162.951L162.6 188.477H166.126L166.477 196.642Z",fill:"#E4897B"}),E.jsx("path",{d:"M187.65 196.642H184.124L182.352 188.477H185.878L187.65 196.642Z",fill:"#E4897B"}),E.jsx("path",{d:"M183.872 196.234H187.834C187.978 196.234 188.103 196.335 188.134 196.475L188.831 199.61C188.903 199.935 188.647 200.242 188.314 200.237C186.931 200.213 186.259 200.131 184.517 200.131C183.445 200.131 181.237 200.243 179.757 200.243C178.309 200.243 178.083 198.779 178.689 198.647C181.406 198.053 182.43 197.233 183.3 196.451C183.457 196.31 183.662 196.234 183.872 196.234Z",fill:"#263238"}),E.jsx("path",{d:"M162.975 196.234H166.826C166.97 196.234 167.095 196.335 167.126 196.475L167.823 199.61C167.895 199.935 167.648 200.242 167.316 200.237C165.926 200.214 163.919 200.132 162.173 200.132C160.132 200.132 158.369 200.243 155.975 200.243C154.527 200.243 154.125 198.78 154.731 198.647C157.49 198.044 159.742 197.979 162.126 196.509C162.385 196.35 162.671 196.234 162.975 196.234Z",fill:"#263238"}),E.jsx("path",{d:"M161.273 81.6813C158.283 81.4476 155.409 81.0607 152.486 80.513C151.031 80.2336 149.573 79.9212 148.116 79.529C146.657 79.1378 145.196 78.6943 143.718 78.0775C143.349 77.9258 142.976 77.7554 142.604 77.5783C142.137 77.3474 141.748 77.1074 141.406 76.8799C140.713 76.422 140.12 75.9496 139.529 75.4788C138.355 74.5384 137.262 73.5612 136.184 72.5733C134.037 70.588 132 68.5332 130.039 66.3712L131.805 64.3984L138.769 69.4034C139.919 70.2324 141.079 71.0416 142.22 71.8053C142.789 72.1831 143.371 72.5416 143.9 72.8402C144.168 72.9924 144.406 73.1061 144.591 73.1791C144.876 73.2909 145.165 73.4013 145.469 73.5026C147.907 74.3157 150.663 74.838 153.401 75.2791C156.142 75.713 158.974 76.0701 161.71 76.3538L161.273 81.6813Z",fill:"#E4897B"}),E.jsx("path",{d:"M177.227 76.2875C180.531 77.0454 183.873 86.7083 183.873 86.7083L177.07 91.588C177.07 91.588 175.17 87.0875 173.3 83.1515C171.341 79.0274 173.847 75.5128 177.227 76.2875Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.4",d:"M177.227 76.2875C180.531 77.0454 183.873 86.7083 183.873 86.7083L177.07 91.588C177.07 91.588 175.17 87.0875 173.3 83.1515C171.341 79.0274 173.847 75.5128 177.227 76.2875Z",fill:"black"}),E.jsx("path",{d:"M175.32 81.5625L173.971 84.5817C175.368 87.5961 176.644 90.5817 176.985 91.3785C176.937 87.8121 176.26 83.3865 175.32 81.5625Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.6",d:"M175.32 81.5625L173.971 84.5817C175.368 87.5961 176.644 90.5817 176.985 91.3785C176.937 87.8121 176.26 83.3865 175.32 81.5625Z",fill:"black"}),E.jsx("path",{d:"M157.472 76.4562C157.472 76.4562 153.719 80.6955 157.263 106.935C162.946 106.935 173.358 106.935 176.124 106.935C176.254 104.039 174.435 89.9158 177.227 76.2742C177.227 76.2742 173.994 75.6253 170.913 75.4769C168.503 75.3608 165.014 75.284 162.895 75.4774C160.103 75.7323 157.472 76.4562 157.472 76.4562Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.4",d:"M157.472 76.4562C157.472 76.4562 153.719 80.6955 157.263 106.935C162.946 106.935 173.358 106.935 176.124 106.935C176.254 104.039 174.435 89.9158 177.227 76.2742C177.227 76.2742 173.994 75.6253 170.913 75.4769C168.503 75.3608 165.014 75.284 162.895 75.4774C160.103 75.7323 157.472 76.4562 157.472 76.4562Z",fill:"black"}),E.jsx("path",{d:"M156.078 81.5625C155.953 82.5561 155.857 83.7321 155.795 85.1193C157.355 84.6345 159.294 83.8569 161.046 82.6521L156.078 81.5625Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.6",d:"M156.078 81.5625C155.953 82.5561 155.857 83.7321 155.795 85.1193C157.355 84.6345 159.294 83.8569 161.046 82.6521L156.078 81.5625Z",fill:"black"}),E.jsx("path",{d:"M164.148 82.08C161.625 84.3158 151.986 84.0922 151.986 84.0922L151.668 74.7734C151.668 74.7734 157.133 75.5746 161.493 75.4858C166.88 75.3768 166.918 79.6262 164.148 82.08Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.4",d:"M164.148 82.08C161.625 84.3158 151.986 84.0922 151.986 84.0922L151.668 74.7734C151.668 74.7734 157.133 75.5746 161.493 75.4858C166.88 75.3768 166.918 79.6262 164.148 82.08Z",fill:"black"}),E.jsx("path",{d:"M131.889 64.443L129.469 61.6172L126.885 64.479C126.885 64.479 128.475 67.1549 131.009 66.7325L131.889 64.443Z",fill:"#E4897B"}),E.jsx("path",{d:"M126.052 58.3281L125.121 62.0155L126.886 64.486L129.469 61.6238L126.052 58.3281Z",fill:"#E4897B"}),E.jsx("path",{d:"M162.602 188.484L162.782 192.694H166.31L166.129 188.484H162.602Z",fill:"#CE6F64"}),E.jsx("path",{d:"M185.88 188.484H182.352L183.267 192.694H186.795L185.88 188.484Z",fill:"#CE6F64"}),E.jsx("path",{d:"M164.726 59.0347C161.563 57.5731 160.563 51.1929 169.663 52.7731C169.663 52.7731 168.291 54.2933 171.077 55.2533C173.863 56.2128 171.531 62.1797 164.726 59.0347Z",fill:"#263238"}),E.jsx("path",{d:"M171.597 63.8387C170.691 67.2188 170.333 69.2435 168.247 70.6494C165.109 72.7638 161.202 70.3374 161.08 66.7542C160.97 63.5291 162.47 58.5428 166.097 57.8617C169.671 57.1907 172.503 60.4585 171.597 63.8387Z",fill:"#E4897B"}),E.jsx("path",{d:"M169.537 54.4899C171.69 55.6942 174.609 56.4123 174.316 58.1197C173.958 60.2067 176.081 58.9011 175.587 62.0106C175.264 64.041 171.519 70.1936 168.883 69.8931C164.92 69.4414 165.422 63.3882 165.409 60.2072C165.401 58.3323 165.313 52.1278 169.537 54.4899Z",fill:"#263238"}),E.jsx("path",{d:"M164.932 57.1875C163.972 57.4141 162.7 62.9475 166.418 63.4544C170.699 64.0376 164.932 57.1875 164.932 57.1875Z",fill:"#263238"}),E.jsx("path",{d:"M165.031 59.153C163.855 59.2567 161.201 57.8407 161.518 55.7109C161.518 55.7109 163.209 58.2031 165.031 59.153Z",fill:"#263238"}),E.jsx("path",{d:"M166.774 63.8966C166.406 64.7361 165.709 65.3966 165.034 65.7479C164.02 66.2759 163.45 65.5036 163.679 64.4889C163.886 63.5754 164.663 62.1998 165.706 62.087C166.735 61.9756 167.195 62.9366 166.774 63.8966Z",fill:"#E4897B"}),E.jsx("path",{d:"M172.057 59.9843C172.769 59.6219 174.391 58.8001 174.833 56.4688C174.833 56.4688 176.418 60.8919 172.057 59.9843Z",fill:"#263238"}),E.jsx("path",{d:"M176.061 59.9373C175.705 59.729 174.898 59.2543 173.764 59.7108C173.764 59.7108 175.242 57.7932 176.061 59.9373Z",fill:"#263238"}),E.jsx("path",{d:"M163.955 106.945C163.955 106.945 167.957 133.893 170.154 143.989C172.56 155.045 181.623 191.872 181.623 191.872H188.082C188.082 191.872 182.105 155.937 180.733 144.992C179.243 133.112 176.125 106.945 176.125 106.945H163.955Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.5",d:"M163.955 106.945C163.955 106.945 167.957 133.893 170.154 143.989C172.56 155.045 181.623 191.872 181.623 191.872H188.082C188.082 191.872 182.105 155.937 180.733 144.992C179.243 133.112 176.125 106.945 176.125 106.945H163.955Z",fill:"white"}),E.jsx("path",{d:"M180.591 189.492C180.563 189.492 181.257 191.972 181.257 191.972H188.524L188.39 189.759L180.591 189.492Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.1",d:"M180.591 189.492C180.563 189.492 181.257 191.972 181.257 191.972H188.524L188.39 189.759L180.591 189.492Z",fill:"black"}),E.jsx("path",{d:"M166.483 116.544C171.11 117.451 170.621 134.707 170.064 143.582C168.729 137.309 166.776 125.237 165.441 116.669C165.749 116.515 166.094 116.467 166.483 116.544Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.4",d:"M166.483 116.544C171.11 117.451 170.621 134.707 170.064 143.582C168.729 137.309 166.776 125.237 165.441 116.669C165.749 116.515 166.094 116.467 166.483 116.544Z",fill:"white"}),E.jsx("path",{d:"M157.265 106.945C157.265 106.945 156.78 133.31 157.163 144.064C157.562 155.249 161.469 191.872 161.469 191.872H167.442C167.442 191.872 167.662 155.902 167.927 144.918C168.217 132.942 169.663 106.946 169.663 106.946H157.265V106.945Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.5",d:"M157.265 106.945C157.265 106.945 156.78 133.31 157.163 144.064C157.562 155.249 161.469 191.872 161.469 191.872H167.442C167.442 191.872 167.662 155.902 167.927 144.918C168.217 132.942 169.663 106.946 169.663 106.946H157.265V106.945Z",fill:"white"}),E.jsx("path",{d:"M162.712 187.581C162.682 187.581 162.656 187.558 162.653 187.528C161.6 177.391 159.117 152.865 158.803 144.066C158.482 135.085 158.773 114.935 158.87 108.973C158.871 108.94 158.898 108.914 158.93 108.914H158.931C158.964 108.915 158.991 108.942 158.99 108.975C158.893 114.936 158.602 135.084 158.923 144.062C159.236 152.857 161.719 177.38 162.772 187.515C162.776 187.548 162.752 187.577 162.718 187.581C162.716 187.581 162.714 187.581 162.712 187.581Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.4",d:"M162.712 187.581C162.682 187.581 162.656 187.558 162.653 187.528C161.6 177.391 159.117 152.865 158.803 144.066C158.482 135.085 158.773 114.935 158.87 108.973C158.871 108.94 158.898 108.914 158.93 108.914H158.931C158.964 108.915 158.991 108.942 158.99 108.975C158.893 114.936 158.602 135.084 158.923 144.062C159.236 152.857 161.719 177.38 162.772 187.515C162.776 187.548 162.752 187.577 162.718 187.581C162.716 187.581 162.714 187.581 162.712 187.581Z",fill:"white"}),E.jsx("path",{d:"M160.318 189.492C160.291 189.492 160.655 191.972 160.655 191.972H167.922L168.118 189.759L160.318 189.492Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.1",d:"M160.318 189.492C160.291 189.492 160.655 191.972 160.655 191.972H167.922L168.118 189.759L160.318 189.492Z",fill:"black"})]}),E.jsx("defs",{children:E.jsx("clipPath",{id:"clip0_28564_181684",children:E.jsx("rect",{width:"240",height:"240",fill:"white"})})})]}),Tw=({value:t,onChange:e,placeholder:n="Type something...",className:r="",rows:i=4,disabled:o=!1,label:a,isRequired:s=!1,stylings:{wrapperRounded:c="ed-rounded-md",wrapperPadding:u="ed-py-2.5 ed-px-4",placeholderStyle:d="ed-placeholder:text-14 ed-placeholder:font-medium ed-placeholder:text-border-regular",labelCustomClass:h=""}={},name:p="",...m})=>E.jsxs("div",{children:[a&&E.jsxs("label",{className:`ed-text-14 ed-font-semibold ed-text-border-dark ed-mb-1 ed-inline-block ${h}`,children:[a," ",s&&E.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),E.jsx("textarea",{value:t,onChange:e,placeholder:n,rows:i,name:p,disabled:o,className:`ed-w-full ed-border ed-border-border-light ed-focus:outline-none ed-resize-none ed-transition ed-duration-200 ${u} ${c} ${d}`,...m})]});var wg={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_FILE_UPLOADING_URL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FileUploadingPolicyInputDataType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getFileUploadingURL"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:140}};wg.loc.source={body:`query GET_FILE_UPLOADING_URL($queryData: FileUploadingPolicyInputDataType!) {
|
|
467
|
+
getFileUploadingURL(queryData: $queryData) {
|
|
468
|
+
key
|
|
469
|
+
url
|
|
470
|
+
}
|
|
471
|
+
}`,name:"GraphQL request",locationOffset:{line:1,column:1}};function xf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){xf(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){xf(r,e)}),t.definitions&&t.definitions.forEach(function(r){xf(r,e)})}var _g={};(function(){wg.definitions.forEach(function(e){if(e.name){var n=new Set;xf(e,n),_g[e.name.value]=n}})})();function Ow(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function OF(t,e){var n={kind:t.kind,definitions:[Ow(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=_g[e]||new Set,i=new Set,o=new Set;for(r.forEach(function(s){o.add(s)});o.size>0;){var a=o;o=new Set,a.forEach(function(s){if(!i.has(s)){i.add(s);var c=_g[s]||new Set;c.forEach(function(u){o.add(u)})}})}return i.forEach(function(s){var c=Ow(t,s);c&&n.definitions.push(c)}),n}const RF=OF(wg,"GET_FILE_UPLOADING_URL"),Cg=async(t={})=>{var n;const e=Tm(ju());try{const r=await e.query({query:RF,variables:{queryData:t}});return(n=r==null?void 0:r.data)==null?void 0:n.getFileUploadingURL}catch{return null}},xg=async({key:t,url:e},n)=>{try{const r=await Xt.put(e,n);return r&&(r.status===204||r.status===200)?{key:t,file:n,url:e,success:!0}:{error:!0,success:!1}}catch{return{error:!0,success:!1}}},Cs=({label:t,isRequired:e=!1,placeholder:n,value:r="",type:i="text",onChange:o=()=>{},stylings:{wrapperRounded:a="ed-rounded-md",wrapperPadding:s="ed-py-2.5 ed-px-4",placeholderStyle:c="ed-placeholder:text-14 ed-placeholder:font-medium ed-placeholder:text-border-regular",labelCustomClass:u=""}={},name:d=""})=>E.jsxs("div",{children:[t&&E.jsxs("label",{className:`ed-text-14 ed-font-semibold ed-text-border-dark ed-mb-1 ed-inline-block ${u}`,children:[t," ",e&&E.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),E.jsx("input",{type:i,className:`ed-w-full ed-border ed-border-border-light ${s} ${a} ${c}`,placeholder:n,onChange:o,value:r,name:d})]}),Af=()=>E.jsxs("div",{className:"ed-flex ed-justify-start ed-items-center ed-space-x-2",children:[E.jsx("div",{className:"ed-bg-brand ed-w-2 ed-h-2 ed-rounded-full ed-animate-bounce"}),E.jsx("div",{className:"ed-bg-brand ed-w-2 ed-h-2 ed-rounded-full ed-animate-bounce ed-delay-75"}),E.jsx("div",{className:"ed-bg-brand ed-w-2 ed-h-2 ed-rounded-full aed-nimate-bounce ed-delay-150"})]}),Rr=({alt:t="Image",className:e,height:n=500,path:r,src:i,rotate:o,width:a=500,quality:s=100,defaultImageName:c="",defaultImageClasses:u="ed-w-5 ed-h-5",defaultUserNameTextSize:d="ed-text-16"})=>{var w,C;const[h,p]=R.useState(""),[m,v]=R.useState(!1),[b,y]=R.useState(!!r);return R.useLayoutEffect(()=>{(async()=>{if(!m&&r){const x=`https://${Fu("cdnDomain")}-public.imgix.net/${r}?h=${n}&w=${a}&q=${s}`;x?p(x):v(!0),y(!1)}})()},[n,r,o,a]),b?E.jsx("div",{className:`ed-flex ed-items-center ed-justify-center ${e}`,children:E.jsxs("svg",{className:`ed-animate-spin ed-h-${((w=n==null?void 0:n.replace)==null?void 0:w.call(n,"px",""))||10} ed-w-${((C=a==null?void 0:a.replace)==null?void 0:C.call(a,"px",""))||10} ed-text-brand`,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[E.jsx("circle",{className:"ed-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),E.jsx("path",{className:"ed-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}):i||h?E.jsx("img",{alt:t,className:e,height:n,loading:"lazy",onError:()=>{v(!0)},src:i||h,width:a}):E.jsx("div",{className:`${e} ed-bg-blue-light ed-text-brand ed-rounded-full ed-flex ed-items-center ed-justify-center ${u}`,children:E.jsx("p",{className:`ed-text-brand ed-font-medium ${d}`,children:c||"ED"})})},NF=["image/jpeg","image/png","application/pdf"],Rw=({selectedFiles:t,setSelectedFiles:e,options:{bgColor:n=""}={},subtitle:r="Works with any jpg, png file and max 5 files"})=>{const i=R.useRef(null),[o,a]=R.useState(!1),s=m=>{m.preventDefault();const v=5*1024*1024,b=Array.from(m.target.files);let y="";if(Ie.forEach(b,w=>{if(!NF.includes(w.type)){y=`${w.name} is not supported. `;return}if(w.size>v){y="Each file must be under 5MB";return}}),y){Rn("error",y,"top-left");return}e(w=>[...w,...b])},c=m=>{m.preventDefault(),m.stopPropagation(),a(!0)},u=m=>{m.preventDefault(),m.stopPropagation(),m.currentTarget===i.current&&a(!1)},d=m=>{m.preventDefault(),m.stopPropagation()},h=m=>{if(m.preventDefault(),m.stopPropagation(),Ie.size(t)>5){Rn("error","You can upload maximum 5 files","top-right");return}a(!1),e(v=>[...v,...Array.from(m.dataTransfer.files)])},p=m=>{e(v=>v==null?void 0:v.filter(b=>(b==null?void 0:b.name)!==(m==null?void 0:m.name)))};return E.jsxs("div",{className:"ed-mt-5",children:[E.jsx("p",{className:"ed-text-14 ed-font-semibold ed-text-border-dark ed-mb-1",children:"Attachment"}),E.jsxs("label",{htmlFor:"image_upload",ref:i,onDragEnter:c,onDragLeave:u,onDragOver:d,onDrop:h,className:`ed-relative ed-mb-1 ed-py-8 ed-flex ed-flex-col ed-items-center ed-justify-center ed-border-2 ${n} ${o?"ed-border-brand ed-border-solid ed-bg-brand-light":"ed-border-border-light ed-border-dashed"} ed-cursor-pointer ed-rounded-md ed-hover:bg-brand-light ed-duration-500 ed-px-4`,children:[E.jsx("input",{id:"image_upload",type:"file",className:"ed-hidden",multiple:!0,accept:".jpg,.jpeg,.png,.gif,.svg,.pdf",onChange:s,max:5,disabled:Ie.size(t)>=5}),E.jsx($1,{size:24,className:"ed-text-brand-link"}),E.jsxs("p",{className:"ed-text-14 ed-font-semibold ed-text-border-regular ed-mt-4 ed-mb-1",children:["Drag & drop or"," ",E.jsx("span",{className:"ed-text-14 ed-font-semibold ed-text-brand-link",children:"choose file"})," to upload"]}),E.jsx("span",{className:"ed-text-12 ed-font-medium ed-text-border",children:r})]}),Ie.size(t)>0&&(t==null?void 0:t.map(m=>{const v=URL==null?void 0:URL.createObjectURL(m),b=(m==null?void 0:m.type)==="application/pdf";return E.jsx("div",{className:"ed-p-4 ed-border ed-border-border-light ed-rounded-[10px] ed-mt-2",children:E.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-w-full",children:[b?E.jsx(j1,{size:48,className:"ed-text-border"}):E.jsx(Rr,{className:"ed-size-12 ed-rounded-md",defaultImageClasses:"h-12 w-12",src:v}),E.jsxs("div",{className:"ed-flex-1 ed-flex ed-items-center ed-justify-between",children:[E.jsxs("div",{children:[E.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-border-dark ed-leading-none ed-truncate ed-max-w-[140px]",children:m==null?void 0:m.name}),E.jsxs("span",{className:"ed-text-12 ed-font-medium ed-text-border",children:[(m.size/(1024*1024)).toFixed(2)," MB"]})]}),E.jsx(J1,{size:16,className:"ed-text-border-regular ed-cursor-pointer",onClick:()=>p(m)})]})]})},m==null?void 0:m.name)}))]})};var Ag={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CREATE_A_CONVERSATION_FOR_PORTAL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConversationCreateForPortalInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createAConversationForPortal"},arguments:[{kind:"Argument",name:{kind:"Name",value:"inputData"},value:{kind:"Variable",name:{kind:"Name",value:"inputData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"serial"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:175}};Ag.loc.source={body:`mutation CREATE_A_CONVERSATION_FOR_PORTAL($inputData: ConversationCreateForPortalInputType!) {
|
|
472
|
+
createAConversationForPortal(inputData: $inputData) {
|
|
473
|
+
id
|
|
474
|
+
serial
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function kf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){kf(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){kf(r,e)}),t.definitions&&t.definitions.forEach(function(r){kf(r,e)})}var kg={};(function(){Ag.definitions.forEach(function(e){if(e.name){var n=new Set;kf(e,n),kg[e.name.value]=n}})})();function Nw(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function IF(t,e){var n={kind:t.kind,definitions:[Nw(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=kg[e]||new Set,i=new Set,o=new Set;for(r.forEach(function(s){o.add(s)});o.size>0;){var a=o;o=new Set,a.forEach(function(s){if(!i.has(s)){i.add(s);var c=kg[s]||new Set;c.forEach(function(u){o.add(u)})}})}return i.forEach(function(s){var c=Nw(t,s);c&&n.definitions.push(c)}),n}const Iw=IF(Ag,"CREATE_A_CONVERSATION_FOR_PORTAL"),PF=({setIsCreateNewTicketClicked:t,isAuthenticated:e,setSearchedText:n,searchedText:r})=>{var x,S,A;const{t:i}=ws(),[o,a]=R.useState([]),[s,c]=R.useState(!1),[u,d]=R.useState({title:r}),[h,p]=R.useState(!1),[m,{loading:v}]=wo(Iw),b=async()=>{var T;try{if(c(!0),Ie.size(o)&&Ie.size(o)>5){Rn("error","You can upload maximum 5 files","top-right");return}const N=[],P=[],{message:U,...V}=u;Ie.forEach(o,Q=>{const j=`${dg()}.${Ie.last(Ie.split(Q.name,"."))}`;N.push({name:j,title:Q.name,size:Q.size,type:"conversation_activity_attachment"}),P.push({file:Q,name:j})});const{data:H}=await m({variables:{inputData:{...V,type:"ticket",conversation_activities:[{message:U,is_customer_reply:!0,conversation_activity_files:N}]}}});(T=H==null?void 0:H.createAConversationForPortal)!=null&&T.id&&(Ie.size(P)&&P.forEach(async Q=>{var j;try{const F=await Cg({name:Q.name,type:"conversation_activity_attachment",sub_type:(j=H==null?void 0:H.createAConversationForPortal)==null?void 0:j.id});if(F!=null&&F.error){Rn("error",`Failed to process ${Q.name}`,"top-right");return}await xg({key:F.key,url:F.url},Q.file)}catch(F){console.error(`Error processing file ${Q.name}:`,F),Rn("error",`Failed to upload ${Q.name}`,"top-right")}}),p(!0),n(""))}catch(N){Rn("error","Something went wrong","top-right"),console.error("error",N)}finally{c(!1)}},y=(T,N)=>{d(P=>({...P,[T]:N}))},w=lm(u.contact_person_email),C=!e&&(!((x=u.contact_person_name)!=null&&x.trim())||!w||!u.contact_person_email)||!((S=u.title)!=null&&S.trim())||!((A=u.message)!=null&&A.trim()),k=()=>v||s?!0:C;return E.jsxs("div",{className:"ed-bg-white ed-absolute ed-inset-2 ed-rounded-[10px] ed-overflow-y-auto ed-no-scrollbar",children:[E.jsxs("div",{className:"ed-p-5 ed-flex ed-items-center ed-justify-between ed-sticky ed-top-0 ed-bg-white ed-z-10",children:[E.jsx("h6",{className:"ed-text-18 ed-font-semibold ed-text-border-dark",children:i("widget.label.create_a_ticket")}),E.jsx("button",{type:"button",onClick:()=>t(!1),children:E.jsx(Pi,{className:"ed-text-border-dark ed-size-5"})})]}),h?E.jsxs("div",{className:"ed-p-5 ed-space-y-4 ed-flex ed-items-center ed-justify-center ed-flex-col ed-h-[calc(100vh-25rem)]",children:[E.jsx(TF,{}),E.jsxs("div",{className:"ed-text-center",children:[E.jsx("h6",{className:"ed-leading-none ed-text-16 ed-font-semibold ed-text-border-dark ed-mb-1",children:i("widget.label.ticket_created")}),E.jsx("p",{className:"ed-text-border-regular",children:i("widget.label.soon_get_response")})]}),E.jsx(_s,{title:i("widget.label.explore_more_articles"),iconPosition:"right",Icon:eo,callBack:()=>t(!1)})]}):E.jsxs("div",{className:"ed-p-5 ed-space-y-4",children:[!e&&E.jsxs(E.Fragment,{children:[E.jsx(Cs,{isRequired:!0,label:"Name",placeholder:"Enter your name",value:u.contact_person_name,onChange:T=>y("contact_person_name",T.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"contact_person_name"}),E.jsx(Cs,{isRequired:!0,type:"email",label:"Email",placeholder:"Enter your email",value:u.contact_person_email,onChange:T=>y("contact_person_email",T.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"contact_person_email"}),(u==null?void 0:u.contact_person_email)&&!w&&E.jsx("span",{className:"ed-text-red ed-font-12",children:"Please enter a valid email address!"})]}),E.jsx(Cs,{isRequired:!0,label:"Subject",placeholder:"Tell us what this feedback is about",value:u.title,onChange:T=>y("title",T.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"title"}),E.jsx(Tw,{label:`${e?"Summary":"Description"}`,isRequired:!0,placeholder:"Add more details for us to resolve the issue",value:u.message,onChange:T=>y("message",T.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"message"}),E.jsx(Rw,{subtitle:"Supported file types: jpg, png, pdf (max 5MB)",selectedFiles:o,setSelectedFiles:a}),E.jsx(_s,{title:"Create ticket",fullWidthBtn:!0,disabled:k(),loader:v||s,callBack:b})]})]})},MF=({height:t="48",width:e="49"})=>E.jsx("svg",{width:e,height:t,viewBox:"0 0 49 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M42.5 23.0001C42.5069 25.6398 41.8901 28.2438 40.7 30.6001C39.2889 33.4235 37.1195 35.7984 34.4349 37.4586C31.7503 39.1188 28.6565 39.9988 25.5 40.0001C22.8603 40.0069 20.2562 39.3902 17.9 38.2001L6.5 42.0001L10.3 30.6001C9.10986 28.2438 8.49312 25.6398 8.5 23.0001C8.50122 19.8436 9.38122 16.7498 11.0414 14.0652C12.7017 11.3806 15.0765 9.21119 17.9 7.80006C20.2562 6.60992 22.8603 5.99317 25.5 6.00006H26.5C30.6687 6.23004 34.6061 7.98958 37.5583 10.9418C40.5105 13.894 42.27 17.8314 42.5 22.0001V23.0001Z",fill:"white",stroke:"#00A1E0",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),LF=()=>E.jsxs("svg",{width:"192",height:"165",viewBox:"0 0 192 165",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{opacity:"0.4",d:"M124.365 148.68H57.3652L63.8177 119.68H117.913L124.365 148.68Z",fill:"#44A9F1"}),E.jsx("path",{opacity:"0.4",d:"M173.775 119.874H7.99173C3.77973 119.874 0.365234 116.459 0.365234 112.247V7.80619C0.365234 3.59419 3.77973 0.179688 7.99173 0.179688H173.775C177.987 0.179688 181.402 3.59419 181.402 7.80619V112.247C181.402 116.459 177.987 119.874 173.775 119.874Z",fill:"#44A9F1"}),E.jsx("path",{d:"M169.382 107.314H12.3843C8.17232 107.314 4.75781 103.9 4.75781 99.6877V11.4077C4.75781 7.19575 8.17232 3.78125 12.3843 3.78125H169.382C173.594 3.78125 177.009 7.19575 177.009 11.4077V99.6877C177.009 103.9 173.594 107.314 169.382 107.314Z",fill:"white"}),E.jsx("path",{opacity:"0.4",d:"M138.348 159.397H43.418V154.811C43.418 151.265 46.2925 148.391 49.8385 148.391H131.927C135.473 148.391 138.348 151.265 138.348 154.811V159.397Z",fill:"#44A9F1"}),E.jsx("path",{d:"M10.375 107.312H168.21",stroke:"#3B3B3B","stroke-width":"0.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),E.jsx("path",{d:"M47.5977 157.107V154.699C47.5977 153.243 48.7781 152.062 50.2346 152.062H121.432",stroke:"#3B3B3B","stroke-width":"0.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),E.jsx("path",{d:"M113.863 123.398L116.385 142.66",stroke:"#3B3B3B","stroke-width":"0.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),E.jsx("path",{d:"M89.2912 117.684C91.331 117.684 92.9847 116.03 92.9847 113.99C92.9847 111.951 91.331 110.297 89.2912 110.297C87.2513 110.297 85.5977 111.951 85.5977 113.99C85.5977 116.03 87.2513 117.684 89.2912 117.684Z",fill:"white"}),E.jsx("path",{d:"M141.84 10.8125H161.445C165.181 10.8125 168.209 13.841 168.209 17.577V58.3125",stroke:"white","stroke-width":"0.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),E.jsx("g",{opacity:"0.5",children:E.jsx("path",{d:"M88.1608 69.8837C88.0874 66.9345 88.253 64.5539 88.6584 62.7429C89.0634 60.9321 89.8966 59.2607 91.1596 57.7286C91.8875 56.8101 92.7171 56.0144 93.6518 55.3405C94.5848 54.6678 95.4423 53.9582 96.2249 53.213C97.0058 52.469 97.6603 51.639 98.1883 50.7253C98.7159 49.8117 98.9617 48.6306 98.9257 47.1804C98.8644 44.7316 98.1469 43.0353 96.7729 42.0943C95.3989 41.1533 93.7863 40.7055 91.9372 40.7516C89.2865 40.8179 87.4805 41.6012 86.518 43.1003C85.5544 44.6005 84.9787 46.6032 84.7917 49.1089L75.1185 49.3502C75.0577 46.9012 75.4013 44.6662 76.1517 42.6464C76.9013 40.6275 77.9965 38.8991 79.4365 37.4622C80.8761 36.0265 82.6238 34.9069 84.6804 34.105C86.7351 33.3035 89.0133 32.8716 91.5136 32.8092C96.9126 32.6746 101.201 33.6687 104.382 35.79C107.56 37.9127 109.212 41.4473 109.335 46.3966C109.375 47.9972 109.247 49.4003 108.953 50.6083C108.657 51.8161 108.196 52.9155 107.572 53.9068C106.945 54.8976 106.168 55.8304 105.24 56.7039C104.311 57.578 103.258 58.479 102.081 59.4086C101.002 60.2865 100.135 61.0962 99.4778 61.837C98.821 62.5793 98.3267 63.3549 97.9977 64.1625C97.6672 64.9714 97.4633 65.8153 97.3853 66.6912C97.3066 67.5691 97.2818 68.5583 97.3095 69.6569L88.1608 69.8837ZM88.2219 84.3642L87.977 74.5405L98.1001 74.2883L98.345 84.112L88.2219 84.3642Z",fill:"#44A9F1"})}),E.jsx("path",{d:"M189.428 162.528C186.451 165.558 181.581 165.6 178.551 162.622L142.516 127.208L153.299 116.236L189.333 151.65C192.364 154.628 192.406 159.498 189.428 162.528Z",fill:"#004E92"}),E.jsx("path",{opacity:"0.2",d:"M156.307 99.3327C156.268 82.1553 142.311 68.2623 125.133 68.3018C107.956 68.3413 94.0628 82.2984 94.1023 99.4757C94.1418 116.653 108.099 130.546 125.276 130.507C142.454 130.467 156.347 116.51 156.307 99.3327Z",fill:"#F8F9FB"}),E.jsx("path",{d:"M99.6105 74.257C85.7147 88.3958 85.9121 111.123 100.051 125.018C114.19 138.914 136.917 138.717 150.813 124.577C164.709 110.439 164.511 87.7118 150.372 73.816C136.232 59.9202 113.506 60.1176 99.6105 74.257ZM146.295 120.137C134.851 131.781 116.136 131.944 104.491 120.5C92.8472 109.057 92.6847 90.341 104.128 78.6972C115.571 67.0533 134.287 66.8909 145.932 78.3342C157.576 89.777 157.738 108.493 146.295 120.137Z",fill:"#004E92"}),E.jsx("path",{d:"M156.613 124.724L185.106 152.727",stroke:"white","stroke-width":"0.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),E.jsx("path",{d:"M91.8946 96.8405C91.0045 105.663 94.0498 114.81 100.05 121.339C106.052 127.869 114.91 131.672 123.777 131.527",stroke:"white","stroke-width":"0.5","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})]}),FF=({height:t="238",width:e="300"})=>E.jsxs("svg",{width:e,height:t,viewBox:"0 0 300 238",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M59.041 51C59.041 51 177.481 15.24 231.121 19.26C231.121 19.26 256.261 126.48 250.321 133.08C244.381 139.68 87.121 166.2 82.681 162.84C78.241 159.48 59.041 51 59.041 51Z",fill:"#00A1E0"}),E.jsx("path",{d:"M77.7021 72.12C77.7021 72.12 77.5221 74.58 78.1821 74.64C78.8421 74.7 89.4021 72.42 89.4021 72.42C89.4021 72.42 93.1821 97.92 94.5621 98.34C95.9421 98.76 99.7221 97.32 99.7221 97.32L93.9621 71.22C93.9621 71.22 106.562 69.3 106.442 68.52L106.082 66.54L77.7021 72.12Z",fill:"#F2EBEB"}),E.jsx("path",{d:"M109.98 66.4201C110.16 66.3601 110.28 66.3001 110.46 66.2401C111.54 65.7601 114.06 64.6201 114.6 65.5201C115.26 66.6601 117.72 77.3401 117.72 77.3401L130.2 74.8801C130.2 74.8801 127.56 62.6401 128.28 62.1601C129 61.6801 131.82 61.1401 132.54 61.3201C133.26 61.5001 138.18 87.6601 138 89.0401C137.82 90.4201 134.28 90.9601 133.8 90.3601C133.32 89.7601 130.92 77.1601 130.92 77.1601L117.84 79.1401C117.84 79.1401 120.72 93.1201 119.94 93.6601C119.16 94.2001 116.76 94.8001 115.86 94.4401C114.96 94.0801 109.98 66.4201 109.98 66.4201Z",fill:"#F2EBEB"}),E.jsx("path",{d:"M144.841 88.6799C145.681 88.3199 146.521 87.8399 147.181 87.2399C147.841 86.4599 150.901 65.2199 150.901 65.2199C150.901 65.2199 163.441 85.2599 164.041 84.9599C164.641 84.6599 169.321 83.3999 169.321 83.3999C169.321 83.3999 152.701 56.9999 151.381 57.2999L150.061 57.5999C150.061 57.5999 143.641 87.8399 144.841 88.6799Z",fill:"#F2EBEB"}),E.jsx("path",{d:"M147.781 77.3999L159.181 75.1799L158.821 73.4399L148.501 74.9399L147.061 77.5799L147.781 77.3999Z",fill:"#F2EBEB"}),E.jsx("path",{d:"M175.26 81.6601C175.26 81.6601 176.4 81.9601 176.7 81.3601C177 80.7601 172.08 58.0201 172.08 58.0201C172.08 58.0201 192.72 77.9401 194.1 77.8801C194.88 77.8801 195.66 77.7601 196.44 77.6401C196.44 77.6401 191.88 50.6401 191.04 50.2201C190.2 49.8001 188.34 50.7601 188.34 50.7601L192.54 70.5001C192.54 70.5001 174.48 53.1001 173.46 53.4601C172.44 53.8201 169.74 53.8201 168.9 54.3601C168.06 54.9001 175.26 81.6601 175.26 81.6601Z",fill:"#F2EBEB"}),E.jsx("path",{d:"M203.941 76.2001C203.941 76.2001 208.261 76.0201 208.501 75.3001C208.741 74.5801 206.161 63.5401 206.161 63.5401C206.161 63.5401 221.461 73.0201 223.021 72.7201C224.581 72.4201 229.741 71.6401 229.561 71.1601C229.381 70.6801 208.681 60.2401 208.681 60.2401C208.681 60.2401 219.661 46.2601 219.481 45.4201C219.301 44.5801 215.281 45.1201 215.281 45.1201L205.381 60.1201C205.381 60.1201 203.341 47.5201 202.981 47.5201C202.621 47.5201 198.001 48.5401 197.881 49.0201C197.761 49.5001 203.941 76.2001 203.941 76.2001Z",fill:"#F2EBEB"}),E.jsx("path",{d:"M118.08 111.36C118.08 111.36 130.92 124.02 131.4 125.52C131.88 127.02 133.38 135.54 134.28 136.2C135.18 136.86 137.22 135.9 137.88 135.48C138.54 135.06 135.72 124.5 135.72 124.5C135.72 124.5 143.58 105.54 142.56 105.3C141.54 105.06 139.26 105.96 139.26 105.96L133.92 121.8C133.92 121.8 122.82 109.2 121.8 109.44C120.78 109.68 116.94 110.22 118.08 111.36Z",fill:"#F2EBEB"}),E.jsx("path",{d:"M177.84 98.3397C177.84 98.3397 182.94 96.5997 183.24 97.8597C183.54 99.1197 185.28 119.82 189.84 122.16C194.4 124.5 202.2 120 201.78 116.04C201.36 112.08 198 95.5797 198.78 95.0397C199.56 94.4997 201.36 93.7197 201.78 96.4197C202.2 99.1197 207.18 115.62 202.62 120.3C198.06 124.98 185.46 128.1 181.98 119.34C178.5 110.58 177.84 98.3397 177.84 98.3397Z",fill:"#F2EBEB"}),E.jsx("path",{d:"M173.581 111.6C170.881 103.56 162.061 100.2 155.881 102.54C155.881 102.54 147.421 105.24 146.161 113.82C144.901 122.4 151.321 131.52 161.521 130.92C171.721 130.32 176.281 119.64 173.581 111.6ZM162.481 127.74C155.761 127.92 151.201 120.54 151.861 113.76C152.521 106.98 157.981 105.12 157.981 105.12C162.001 103.44 167.941 106.38 169.981 112.8C172.021 119.22 169.201 127.56 162.481 127.74Z",fill:"#F2EBEB"}),E.jsx("path",{d:"M52.2605 112.2L49.5005 111C53.2205 102.3 53.2805 99.9603 53.1605 99.3603C52.2605 99.3603 49.9205 100.62 48.3605 101.46C45.1805 103.14 41.6405 105 38.5805 104.76C36.4805 104.58 35.5805 103.5 35.2205 102.6C33.3005 98.0403 41.8205 87.4203 44.4605 84.3003L46.7405 86.2203C41.8805 91.9803 37.2005 99.4803 37.9805 101.46C38.0405 101.64 38.3405 101.76 38.8205 101.82C40.9805 102 44.2805 100.26 46.9805 98.8203C50.5805 96.9003 53.4605 95.4003 55.2605 97.0803C57.3605 99.0003 55.7405 104.1 52.2605 112.2Z",fill:"#00A1E0"}),E.jsx("path",{d:"M258.481 51.3602L256.621 49.0202C258.541 47.4602 258.961 46.5602 259.021 46.3202C258.781 46.2002 258.001 45.7802 255.481 45.8402C252.241 45.9002 250.381 45.1202 249.841 43.3802C248.941 40.5602 252.661 37.6202 254.881 36.1202C255.721 35.5802 256.081 35.1002 256.021 34.8602C255.961 34.2002 254.221 33.0602 252.841 32.5202L253.921 29.7002C254.701 30.0002 258.721 31.6202 259.021 34.5002C259.201 36.0002 258.361 37.3802 256.561 38.5802C253.741 40.4402 252.781 41.9402 252.721 42.3602C252.841 42.4802 253.501 42.7802 255.421 42.7802C256.801 42.7202 260.941 42.6602 261.841 45.1802C262.501 47.0402 261.421 49.0202 258.481 51.3602Z",fill:"#004E92"}),E.jsx("path",{d:"M49.0805 60.9C48.9605 60.3 45.8405 46.56 54.2405 43.5L55.2605 46.32C49.4405 48.42 52.0205 60.06 52.0205 60.18L49.0805 60.9Z",fill:"#004E92"}),E.jsx("path",{d:"M253.92 164.04L253.44 161.1C259.26 160.2 261.06 159.42 261.54 159C260.88 158.28 258.66 157.02 257.16 156.12C254.28 154.44 250.98 152.58 249.24 150.24C247.8 148.32 248.1 146.94 248.64 146.16C250.68 142.8 260.76 144.18 265.02 144.96L264.48 147.9C258.42 146.82 252.18 146.76 251.22 147.66C251.34 147.96 251.46 148.2 251.64 148.44C252.96 150.24 255.96 151.98 258.6 153.48C262.32 155.64 265.02 157.14 264.6 159.48C264.3 161.7 261.36 162.9 253.92 164.04Z",fill:"#00A1E0"}),E.jsx("path",{d:"M61.0198 156.66C60.2398 156.36 56.2198 154.74 55.9198 151.86C55.7398 150.36 56.5798 148.98 58.3798 147.78C61.1998 145.92 62.1598 144.42 62.2198 144C62.0998 143.88 61.4398 143.52 59.5198 143.58C58.1398 143.64 53.9998 143.7 53.0998 141.18C52.4398 139.44 53.5798 137.46 56.4598 135.12L58.3198 137.46C56.3998 139.02 55.9798 139.92 55.9198 140.16C56.1598 140.28 56.9998 140.7 59.4598 140.64C62.6998 140.58 64.5598 141.42 65.0998 143.1C65.9998 145.92 62.2798 148.86 60.0598 150.36C59.2198 150.9 58.9198 151.38 58.9198 151.62C58.9798 152.28 60.7198 153.42 62.0998 153.96L61.0198 156.66Z",fill:"#00A1E0"}),E.jsx("path",{d:"M258.421 83.2799L257.881 80.3399C259.561 80.0399 260.641 79.3799 261.121 78.4799C261.841 77.1599 261.241 75.2399 260.941 74.6399L263.641 73.3799C263.701 73.4999 265.261 76.9199 263.761 79.8599C262.861 81.5999 261.061 82.7999 258.421 83.2799Z",fill:"#00A1E0"}),E.jsx("path",{d:"M46.5003 195.48C42.8403 190.44 41.9403 188.1 43.0803 186.54C44.4003 184.74 47.2203 185.58 51.1803 186.84C53.8803 187.68 56.8803 188.64 59.0403 188.52C59.2203 188.52 59.4603 188.46 59.6403 188.46C59.0403 187.14 55.5603 183.9 51.7803 181.26L53.5203 178.8C58.1403 182.04 63.4803 186.54 62.6403 189.48C62.4003 190.38 61.5603 191.4 59.1603 191.52C56.5203 191.64 53.1603 190.62 50.2803 189.72C48.7803 189.18 47.2803 188.82 45.7203 188.52C45.9603 189.18 46.6803 190.68 48.9003 193.74L46.5003 195.48Z",fill:"#004E92"}),E.jsx("path",{d:"M194.281 164.46L191.521 163.38C191.821 162.6 192.421 160.2 191.581 158.58C191.101 157.68 190.141 157.02 188.701 156.72L189.301 153.78C191.641 154.26 193.261 155.4 194.221 157.14C195.841 160.32 194.341 164.28 194.281 164.46Z",fill:"#004E92"}),E.jsx("path",{d:"M240.54 218.22L238.86 215.76C238.86 215.76 241.38 214.02 241.68 211.8C241.8 210.6 241.38 209.46 240.54 208.56C237.78 205.32 235.38 200.76 236.88 197.82C237.3 196.92 238.5 195.42 241.56 195.6C242.88 195.66 243.84 195.42 244.08 194.94C244.44 194.22 244.14 192.3 241.98 189.18L244.44 187.5C247.08 191.28 247.8 194.4 246.72 196.44C246.12 197.52 244.68 198.78 241.44 198.66C240.72 198.66 239.82 198.72 239.58 199.26C239.04 200.34 240 203.34 242.88 206.76C244.26 208.26 244.92 210.3 244.68 212.34C244.14 215.76 240.66 218.1 240.54 218.22Z",fill:"#004E92"})]}),jF=({isActive:t=!1})=>E.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M3.5 21.29V6C3.5 5.46957 3.71071 4.96086 4.08579 4.58579C4.46086 4.21071 4.96957 4 5.5 4H19.5C20.0304 4 20.5391 4.21071 20.9142 4.58579C21.2893 4.96086 21.5 5.46957 21.5 6V16C21.5 16.5304 21.2893 17.0391 20.9142 17.4142C20.5391 17.7893 20.0304 18 19.5 18H8.461C8.16123 18 7.86531 18.0675 7.59511 18.1973C7.32491 18.3271 7.08735 18.516 6.9 18.75L4.569 21.664C4.49143 21.7612 4.38556 21.8319 4.26604 21.8664C4.14652 21.9008 4.01926 21.8972 3.90186 21.8561C3.78446 21.815 3.68273 21.7385 3.61073 21.6371C3.53874 21.5357 3.50005 21.4144 3.5 21.29Z",className:t?"ed-stroke-brand":"ed-fill-white",stroke:"#797979",strokeWidth:"1.5"}),E.jsx("path",{d:"M7.5 13H17.5M7.5 9H13.5",className:t?"ed-stroke-brand":"ed-stroke-border-regular",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),DF=({isActive:t=!1})=>E.jsxs("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.8571 7.5H13.7857L13.3357 7.68987L12.5 8.5L11.6643 7.68987L11.2143 7.5H4.14286L3.5 8.13291V20.7911L4.14286 21.424H10.9443L12.05 22.5H12.95L14.0557 21.424H20.8571L21.5 20.7911V8.13291L20.8571 7.5ZM11.8571 20.5633L11.6257 20.3481L11.2143 20.1582H4.78571V8.76582H10.9443L11.8957 9.70253L11.8571 20.5633ZM20.2143 20.1582H13.7857L13.3357 20.3481L13.1557 20.5127V9.6519L14.0557 8.76582H20.2143V20.1582ZM9.92857 12.2975H6.07143C5.3 12.2975 5.3 13.5633 6.07143 13.5633H9.92857C10.7 13.5633 10.7 12.2975 9.92857 12.2975ZM9.92857 17.3608H6.07143C5.3 17.3608 5.3 18.6266 6.07143 18.6266H9.92857C10.7 18.6266 10.7 17.3608 9.92857 17.3608ZM6.07143 14.8291H9.92857C10.7 14.8291 10.7 16.0949 9.92857 16.0949H6.07143C5.29297 16.0949 5.3 14.8291 6.07143 14.8291ZM18.9286 12.2975H15.0714C14.3 12.2975 14.3 13.5633 15.0714 13.5633H18.9286C19.7 13.5633 19.7 12.2975 18.9286 12.2975ZM15.0714 14.8291H18.9286C19.7 14.8291 19.7 16.0949 18.9286 16.0949H15.0714C14.3 16.0949 14.3 14.8291 15.0714 14.8291ZM15.0714 17.3608H18.9286C19.7 17.3608 19.7 18.6266 18.9286 18.6266H15.0714C14.3 18.6266 14.3 17.3608 15.0714 17.3608Z",className:t?"ed-fill-brand":"ed-fill-border-regular"}),E.jsx("path",{d:"M11.3634 7.22827C11.1775 8.71234 10.1635 9.30535 9.72555 9.73582C9.28695 10.1676 9.3655 10.2535 9.39496 10.8867C9.39988 10.965 9.38801 11.0435 9.36008 11.1173C9.33216 11.191 9.28877 11.2585 9.23259 11.3156C9.17641 11.3727 9.10863 11.4182 9.03343 11.4492C8.95823 11.4802 8.87719 11.4961 8.79532 11.496H7.05532C6.97351 11.4959 6.89258 11.4798 6.81748 11.4487C6.74237 11.4175 6.67467 11.3721 6.6185 11.3151C6.56232 11.2581 6.51886 11.1907 6.49075 11.117C6.46265 11.0434 6.45049 10.965 6.45503 10.8867C6.45503 10.2654 6.51525 10.1211 6.12509 9.73582C5.62757 9.25891 4.4571 8.58558 4.4571 6.73378C4.45411 6.27381 4.55056 5.81824 4.74036 5.39577C4.93017 4.9733 5.20922 4.59311 5.55992 4.27916C5.91062 3.9652 6.32536 3.72429 6.77801 3.57161C7.23066 3.41894 7.71139 3.3578 8.18991 3.39206C8.66843 3.42632 9.13436 3.55524 9.55833 3.77068C9.98229 3.98612 10.3551 4.28342 10.6533 4.64383C10.9514 5.00424 11.1684 5.41996 11.2907 5.86476C11.4129 6.30957 11.4377 6.77382 11.3634 7.22827Z",fill:"white",className:t?"ed-stroke-brand":"ed-stroke-border-regular",strokeLinecap:"round",strokeLinejoin:"round"}),E.jsx("path",{d:"M6.91717 11.4599V12.4087C6.91717 12.6679 7.06773 12.8806 7.25299 12.8806H8.59694C8.78351 12.8806 8.93342 12.6672 8.93342 12.4087V11.4599M10.5 2.5L11.5 1.5M8 1L8 2M4.5 1.5L5.5 2.5",className:t?"ed-stroke-brand":"ed-stroke-border-regular",strokeLinecap:"round",strokeLinejoin:"round"})]}),VF=()=>E.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M4.875 0C4.04662 0 3.375 0.671625 3.375 1.5V22.5C3.375 23.3284 4.04662 24 4.875 24H19.125C19.9534 24 20.625 23.3284 20.625 22.5V6L14.625 0H4.875Z",fill:"#E2E7F0"}),E.jsx("path",{d:"M16.125 6H20.625L14.625 0V4.5C14.625 5.32837 15.2966 6 16.125 6ZM9 7.5H15C15.207 7.5 15.375 7.668 15.375 7.875C15.375 8.082 15.207 8.25 15 8.25H9C8.793 8.25 8.625 8.082 8.625 7.875C8.625 7.668 8.793 7.5 9 7.5ZM6.75 15.375H17.25C17.457 15.375 17.625 15.543 17.625 15.75C17.625 15.957 17.457 16.125 17.25 16.125H6.75C6.543 16.125 6.375 15.957 6.375 15.75C6.375 15.543 6.543 15.375 6.75 15.375ZM6.75 19.875H12.75C12.957 19.875 13.125 20.043 13.125 20.25C13.125 20.457 12.957 20.625 12.75 20.625H6.75C6.543 20.625 6.375 20.457 6.375 20.25C6.375 20.043 6.543 19.875 6.75 19.875ZM6.75 17.625H17.25C17.457 17.625 17.625 17.793 17.625 18C17.625 18.207 17.457 18.375 17.25 18.375H6.75C6.543 18.375 6.375 18.207 6.375 18C6.375 17.793 6.543 17.625 6.75 17.625ZM6.75 13.125H17.25C17.457 13.125 17.625 13.293 17.625 13.5C17.625 13.707 17.457 13.875 17.25 13.875H6.75C6.543 13.875 6.375 13.707 6.375 13.5C6.375 13.293 6.543 13.125 6.75 13.125ZM6.75 10.875H17.25C17.457 10.875 17.625 11.043 17.625 11.25C17.625 11.457 17.457 11.625 17.25 11.625H6.75C6.543 11.625 6.375 11.457 6.375 11.25C6.375 11.043 6.543 10.875 6.75 10.875Z",fill:"#9DACBA"}),E.jsx("path",{d:"M16.125 6L19.6537 9.52875C19.7239 9.59855 19.7796 9.68153 19.8175 9.77292C19.8555 9.8643 19.875 9.96229 19.875 10.0612V22.5C19.875 22.9144 19.5394 23.25 19.125 23.25H5.625C5.21062 23.25 4.875 23.5856 4.875 24H19.125C19.9534 24 20.625 23.3284 20.625 22.5V6H16.125Z",fill:"#C9D5E3"})]}),UF=()=>E.jsxs("svg",{width:"240",height:"240",viewBox:"0 0 240 240",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M240 183.523H0V183.643H240V183.523Z",fill:"#E0E0E0"}),E.jsx("path",{d:"M181.28 188.609H164.766V188.729H181.28V188.609Z",fill:"#E0E0E0"}),E.jsx("path",{d:"M53.3001 188.672H44.0078V188.792H53.3001V188.672Z",fill:"#E0E0E0"}),E.jsx("path",{d:"M120.481 188.391H101.646V188.511H120.481V188.391Z",fill:"#E0E0E0"}),E.jsx("path",{d:"M101.166 186.68H92.7461V186.8H101.166V186.68Z",fill:"#E0E0E0"}),E.jsx("path",{d:"M203.786 186.734H178.354V186.854H203.786V186.734Z",fill:"#E0E0E0"}),E.jsx("path",{d:"M23.4492 72.2422L132.875 87.9934L147.561 102.813L23.4492 72.2422Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.6",d:"M23.4492 72.2422L132.875 87.9934L147.561 102.813L23.4492 72.2422Z",fill:"white"}),E.jsx("path",{d:"M23.4492 72.2422L132.875 87.9934L127.797 109.423L23.4492 72.2422Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.2",d:"M23.4492 72.2422L132.875 87.9934L127.797 109.423L23.4492 72.2422Z",fill:"black"}),E.jsx("path",{d:"M125.55 47.4265L131.904 77.1995C132.248 78.8118 131.211 80.4126 129.598 80.7568L72.9203 92.8523C71.308 93.1964 69.7072 92.1587 69.363 90.5464L63.0093 60.7734C62.8293 59.9305 63.0275 59.0886 63.4873 58.4286C63.9088 57.8305 64.5457 57.3803 65.3152 57.2161L121.993 45.1206C122.763 44.9564 123.528 45.1072 124.157 45.4811C124.846 45.8958 125.371 46.5836 125.55 47.4265Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.4",d:"M125.55 47.4265L131.904 77.1995C132.248 78.8118 131.211 80.4126 129.598 80.7568L72.9203 92.8523C71.308 93.1964 69.7072 92.1587 69.363 90.5464L63.0093 60.7734C62.8293 59.9305 63.0275 59.0886 63.4873 58.4286C63.9088 57.8305 64.5457 57.3803 65.3152 57.2161L121.993 45.1206C122.763 44.9564 123.528 45.1072 124.157 45.4811C124.846 45.8958 125.371 46.5836 125.55 47.4265Z",fill:"black"}),E.jsx("path",{d:"M124.156 45.4815L105.217 68.7288C101.6 73.1688 95.3799 74.496 90.2655 71.9194L63.4863 58.4285C63.9078 57.8304 64.5447 57.3802 65.3142 57.216L121.992 45.1205C122.762 44.9564 123.528 45.1076 124.156 45.4815Z",fill:"#00A1E0"}),E.jsx("path",{d:"M23.4492 72.2422L113.705 93.691L127.797 109.423L23.4492 72.2422Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.6",d:"M23.4492 72.2422L113.705 93.691L127.797 109.423L23.4492 72.2422Z",fill:"white"}),E.jsx("path",{d:"M56.3718 92.937L56.1289 93.3516L66.1707 99.2349L66.4135 98.8203L56.3718 92.937Z",fill:"#00A1E0"}),E.jsx("path",{d:"M70.8483 101.414L70.6055 101.828L74.218 103.945L74.4609 103.53L70.8483 101.414Z",fill:"#00A1E0"}),E.jsx("path",{d:"M23.4492 72.25L113.705 93.6988L96.1615 114.846L23.4492 72.25Z",fill:"#00A1E0"}),E.jsx("path",{d:"M144.174 122.501C144.057 122.501 143.937 122.479 143.821 122.432L129.117 116.611C128.624 116.416 128.382 115.858 128.578 115.365C128.772 114.872 129.328 114.63 129.824 114.826L144.528 120.647C145.021 120.842 145.262 121.4 145.067 121.893C144.918 122.27 144.556 122.501 144.174 122.501Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.3",d:"M144.174 122.501C144.057 122.501 143.937 122.479 143.821 122.432L129.117 116.611C128.624 116.416 128.382 115.858 128.578 115.365C128.772 114.872 129.328 114.63 129.824 114.826L144.528 120.647C145.021 120.842 145.262 121.4 145.067 121.893C144.918 122.27 144.556 122.501 144.174 122.501Z",fill:"black"}),E.jsx("path",{d:"M143.306 114.071C143.189 114.071 143.069 114.049 142.953 114.003L135.056 110.877C134.563 110.682 134.322 110.124 134.517 109.631C134.711 109.138 135.268 108.895 135.763 109.092L143.66 112.218C144.153 112.413 144.394 112.971 144.199 113.464C144.049 113.841 143.688 114.071 143.306 114.071Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.5",d:"M143.306 114.071C143.189 114.071 143.069 114.049 142.953 114.003L135.056 110.877C134.563 110.682 134.322 110.124 134.517 109.631C134.711 109.138 135.268 108.895 135.763 109.092L143.66 112.218C144.153 112.413 144.394 112.971 144.199 113.464C144.049 113.841 143.688 114.071 143.306 114.071Z",fill:"white"}),E.jsx("path",{d:"M126.799 122.355C126.682 122.355 126.562 122.333 126.446 122.287L112.109 116.611C111.616 116.416 111.374 115.858 111.57 115.365C111.765 114.872 112.322 114.63 112.816 114.826L127.153 120.502C127.646 120.697 127.887 121.255 127.692 121.748C127.543 122.125 127.181 122.355 126.799 122.355Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.3",d:"M126.799 122.355C126.682 122.355 126.562 122.333 126.446 122.287L112.109 116.611C111.616 116.416 111.374 115.858 111.57 115.365C111.765 114.872 112.322 114.63 112.816 114.826L127.153 120.502C127.646 120.697 127.887 121.255 127.692 121.748C127.543 122.125 127.181 122.355 126.799 122.355Z",fill:"black"}),E.jsx("path",{d:"M178.705 79.125C179.976 81.6085 181.143 84.0925 182.25 86.6389C183.35 89.1853 184.394 91.7581 185.293 94.4586L185.621 95.4824C185.677 95.6644 185.762 95.9634 185.807 96.176C185.852 96.3978 185.9 96.6268 185.926 96.8298C186.053 97.666 186.075 98.4215 186.089 99.1645C186.113 100.645 186.013 102.057 185.89 103.461C185.621 106.264 185.184 108.992 184.583 111.728L181.951 111.436C181.917 108.732 181.892 106.002 181.798 103.338C181.751 102.009 181.675 100.683 181.54 99.4324C181.472 98.8112 181.372 98.2021 181.255 97.6924C181.228 97.5575 181.192 97.4548 181.161 97.3434C181.123 97.2244 181.107 97.1965 181.055 97.054L180.693 96.1463C179.69 93.7175 178.561 91.2671 177.41 88.8292L173.926 81.5173L178.705 79.125Z",fill:"#E4897B"}),E.jsx("path",{d:"M181.991 110.617L180.762 112.915L184.686 114.01C184.686 114.01 185.434 112.161 184.544 110.704L181.991 110.617Z",fill:"#E4897B"}),E.jsx("path",{d:"M179.256 116.228L182.865 116.513L184.686 114.009L180.761 112.914L179.256 116.228Z",fill:"#E4897B"}),E.jsx("path",{d:"M162.18 62.5371C162.123 62.816 161.929 63.0118 161.747 62.9749C161.565 62.9379 161.463 62.6821 161.52 62.4032C161.576 62.1243 161.77 61.9285 161.952 61.9654C162.134 62.0029 162.236 62.2587 162.18 62.5371Z",fill:"#263238"}),E.jsx("path",{d:"M161.955 63.0234C161.955 63.0234 160.994 64.5028 160.139 65.1364C160.538 65.697 161.419 65.6572 161.419 65.6572L161.955 63.0234Z",fill:"#DE5753"}),E.jsx("path",{d:"M163.515 61.2049C163.469 61.2049 163.425 61.1867 163.392 61.1511C162.892 60.6097 162.298 60.698 162.272 60.7009C162.184 60.7167 162.095 60.6543 162.08 60.5631C162.065 60.4724 162.126 60.3865 162.217 60.3711C162.248 60.3654 163.01 60.2449 163.637 60.9236C163.7 60.9913 163.696 61.0969 163.628 61.1598C163.596 61.19 163.555 61.2049 163.515 61.2049Z",fill:"#263238"}),E.jsx("path",{d:"M170.119 66.4609C169.613 69.0405 169.108 73.7675 170.913 75.4888C170.913 75.4888 170.208 78.1057 165.415 78.1057C160.144 78.1057 162.896 75.4893 162.896 75.4893C165.772 74.8024 165.698 72.6678 165.197 70.6638L170.119 66.4609Z",fill:"#E4897B"}),E.jsx("path",{d:"M171.637 77.1177C172.018 75.8534 172.437 74.4067 171.57 73.9535C170.616 73.4548 165.396 72.9465 163.596 73.8825C161.796 74.8185 162.307 77.3827 162.307 77.3827L171.637 77.1177Z",fill:"#263238"}),E.jsx("path",{d:"M182.708 196.822C182.347 196.822 181.998 196.767 181.862 196.59C181.804 196.515 181.758 196.386 181.864 196.193C181.92 196.092 182.008 196.026 182.127 195.999C182.644 195.88 183.615 196.545 183.657 196.573C183.684 196.591 183.698 196.624 183.691 196.657C183.685 196.689 183.661 196.715 183.629 196.723C183.448 196.766 183.072 196.822 182.708 196.822ZM182.268 196.15C182.231 196.15 182.197 196.153 182.165 196.161C182.094 196.178 182.043 196.215 182.011 196.273C181.935 196.41 181.98 196.469 181.995 196.488C182.145 196.686 182.866 196.689 183.392 196.6C183.088 196.413 182.588 196.15 182.268 196.15Z",fill:"#00A1E0"}),E.jsx("path",{d:"M183.61 196.721C183.596 196.721 183.582 196.718 183.57 196.711C183.205 196.513 182.499 195.741 182.574 195.348C182.587 195.276 182.64 195.153 182.84 195.128C182.966 195.114 183.089 195.148 183.195 195.236C183.605 195.57 183.689 196.588 183.693 196.631C183.696 196.661 183.681 196.691 183.655 196.707C183.641 196.717 183.625 196.721 183.61 196.721ZM182.897 195.292C182.885 195.292 182.872 195.293 182.86 195.295C182.751 195.308 182.742 195.358 182.737 195.379C182.694 195.612 183.143 196.196 183.506 196.47C183.465 196.173 183.352 195.58 183.089 195.365C183.029 195.316 182.966 195.292 182.897 195.292Z",fill:"#00A1E0"}),E.jsx("path",{d:"M161.534 196.826C161.082 196.826 160.645 196.763 160.499 196.56C160.447 196.489 160.407 196.367 160.506 196.195C160.561 196.098 160.65 196.032 160.771 195.999C161.355 195.843 162.59 196.542 162.642 196.572C162.672 196.589 162.689 196.623 162.683 196.658C162.677 196.692 162.651 196.719 162.617 196.726C162.391 196.771 161.956 196.826 161.534 196.826ZM160.975 196.141C160.917 196.141 160.863 196.148 160.814 196.161C160.737 196.182 160.684 196.22 160.65 196.277C160.591 196.381 160.613 196.432 160.634 196.462C160.793 196.682 161.683 196.694 162.345 196.603C162.018 196.435 161.388 196.141 160.975 196.141Z",fill:"#00A1E0"}),E.jsx("path",{d:"M162.599 196.721C162.588 196.721 162.576 196.718 162.565 196.714C162.14 196.523 161.297 195.761 161.361 195.361C161.376 195.268 161.442 195.151 161.672 195.128C161.842 195.112 161.998 195.159 162.135 195.271C162.584 195.64 162.678 196.589 162.682 196.63C162.685 196.659 162.672 196.688 162.648 196.705C162.633 196.716 162.617 196.721 162.599 196.721ZM161.739 195.292C161.723 195.292 161.706 195.293 161.689 195.294C161.538 195.31 161.529 195.369 161.525 195.388C161.487 195.628 162.06 196.227 162.494 196.488C162.449 196.211 162.323 195.642 162.029 195.4C161.94 195.327 161.845 195.292 161.739 195.292Z",fill:"#00A1E0"}),E.jsx("path",{d:"M166.477 196.642H162.951L162.6 188.477H166.126L166.477 196.642Z",fill:"#E4897B"}),E.jsx("path",{d:"M187.65 196.642H184.124L182.352 188.477H185.878L187.65 196.642Z",fill:"#E4897B"}),E.jsx("path",{d:"M183.872 196.234H187.834C187.978 196.234 188.103 196.335 188.134 196.475L188.831 199.61C188.903 199.935 188.647 200.242 188.314 200.237C186.931 200.213 186.259 200.131 184.517 200.131C183.445 200.131 181.237 200.243 179.757 200.243C178.309 200.243 178.083 198.779 178.689 198.647C181.406 198.053 182.43 197.233 183.3 196.451C183.457 196.31 183.662 196.234 183.872 196.234Z",fill:"#263238"}),E.jsx("path",{d:"M162.975 196.234H166.826C166.97 196.234 167.095 196.335 167.126 196.475L167.823 199.61C167.895 199.935 167.648 200.242 167.316 200.237C165.926 200.214 163.919 200.132 162.173 200.132C160.132 200.132 158.369 200.243 155.975 200.243C154.527 200.243 154.125 198.78 154.731 198.647C157.49 198.044 159.742 197.979 162.126 196.509C162.385 196.35 162.671 196.234 162.975 196.234Z",fill:"#263238"}),E.jsx("path",{d:"M161.273 81.6813C158.283 81.4476 155.409 81.0607 152.486 80.513C151.031 80.2336 149.573 79.9212 148.116 79.529C146.657 79.1378 145.196 78.6943 143.718 78.0775C143.349 77.9258 142.976 77.7554 142.604 77.5783C142.137 77.3474 141.748 77.1074 141.406 76.8799C140.713 76.422 140.12 75.9496 139.529 75.4788C138.355 74.5384 137.262 73.5612 136.184 72.5733C134.037 70.588 132 68.5332 130.039 66.3712L131.805 64.3984L138.769 69.4034C139.919 70.2324 141.079 71.0416 142.22 71.8053C142.789 72.1831 143.371 72.5416 143.9 72.8402C144.168 72.9924 144.406 73.1061 144.591 73.1791C144.876 73.2909 145.165 73.4013 145.469 73.5026C147.907 74.3157 150.663 74.838 153.401 75.2791C156.142 75.713 158.974 76.0701 161.71 76.3538L161.273 81.6813Z",fill:"#E4897B"}),E.jsx("path",{d:"M177.227 76.2875C180.531 77.0454 183.873 86.7083 183.873 86.7083L177.07 91.588C177.07 91.588 175.17 87.0875 173.3 83.1515C171.341 79.0274 173.847 75.5128 177.227 76.2875Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.4",d:"M177.227 76.2875C180.531 77.0454 183.873 86.7083 183.873 86.7083L177.07 91.588C177.07 91.588 175.17 87.0875 173.3 83.1515C171.341 79.0274 173.847 75.5128 177.227 76.2875Z",fill:"black"}),E.jsx("path",{d:"M175.32 81.5625L173.971 84.5817C175.368 87.5961 176.644 90.5817 176.985 91.3785C176.937 87.8121 176.26 83.3865 175.32 81.5625Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.6",d:"M175.32 81.5625L173.971 84.5817C175.368 87.5961 176.644 90.5817 176.985 91.3785C176.937 87.8121 176.26 83.3865 175.32 81.5625Z",fill:"black"}),E.jsx("path",{d:"M157.472 76.4562C157.472 76.4562 153.719 80.6955 157.263 106.935C162.946 106.935 173.358 106.935 176.124 106.935C176.254 104.039 174.435 89.9158 177.227 76.2742C177.227 76.2742 173.994 75.6253 170.913 75.4769C168.503 75.3608 165.014 75.284 162.895 75.4774C160.103 75.7323 157.472 76.4562 157.472 76.4562Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.4",d:"M157.472 76.4562C157.472 76.4562 153.719 80.6955 157.263 106.935C162.946 106.935 173.358 106.935 176.124 106.935C176.254 104.039 174.435 89.9158 177.227 76.2742C177.227 76.2742 173.994 75.6253 170.913 75.4769C168.503 75.3608 165.014 75.284 162.895 75.4774C160.103 75.7323 157.472 76.4562 157.472 76.4562Z",fill:"black"}),E.jsx("path",{d:"M156.078 81.5625C155.953 82.5561 155.857 83.7321 155.795 85.1193C157.355 84.6345 159.294 83.8569 161.046 82.6521L156.078 81.5625Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.6",d:"M156.078 81.5625C155.953 82.5561 155.857 83.7321 155.795 85.1193C157.355 84.6345 159.294 83.8569 161.046 82.6521L156.078 81.5625Z",fill:"black"}),E.jsx("path",{d:"M164.148 82.08C161.625 84.3158 151.986 84.0922 151.986 84.0922L151.668 74.7734C151.668 74.7734 157.133 75.5746 161.493 75.4858C166.88 75.3768 166.918 79.6262 164.148 82.08Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.4",d:"M164.148 82.08C161.625 84.3158 151.986 84.0922 151.986 84.0922L151.668 74.7734C151.668 74.7734 157.133 75.5746 161.493 75.4858C166.88 75.3768 166.918 79.6262 164.148 82.08Z",fill:"black"}),E.jsx("path",{d:"M131.889 64.443L129.469 61.6172L126.885 64.479C126.885 64.479 128.475 67.1549 131.009 66.7325L131.889 64.443Z",fill:"#E4897B"}),E.jsx("path",{d:"M126.052 58.3281L125.121 62.0155L126.886 64.486L129.469 61.6238L126.052 58.3281Z",fill:"#E4897B"}),E.jsx("path",{d:"M162.602 188.484L162.782 192.694H166.31L166.129 188.484H162.602Z",fill:"#CE6F64"}),E.jsx("path",{d:"M185.88 188.484H182.352L183.267 192.694H186.795L185.88 188.484Z",fill:"#CE6F64"}),E.jsx("path",{d:"M164.726 59.0347C161.563 57.5731 160.563 51.1929 169.663 52.7731C169.663 52.7731 168.291 54.2933 171.077 55.2533C173.863 56.2128 171.531 62.1797 164.726 59.0347Z",fill:"#263238"}),E.jsx("path",{d:"M171.597 63.8387C170.691 67.2188 170.333 69.2435 168.247 70.6494C165.109 72.7638 161.202 70.3374 161.08 66.7542C160.97 63.5291 162.47 58.5428 166.097 57.8617C169.671 57.1907 172.503 60.4585 171.597 63.8387Z",fill:"#E4897B"}),E.jsx("path",{d:"M169.537 54.4899C171.69 55.6942 174.609 56.4123 174.316 58.1197C173.958 60.2067 176.081 58.9011 175.587 62.0106C175.264 64.041 171.519 70.1936 168.883 69.8931C164.92 69.4414 165.422 63.3882 165.409 60.2072C165.401 58.3323 165.313 52.1278 169.537 54.4899Z",fill:"#263238"}),E.jsx("path",{d:"M164.932 57.1875C163.972 57.4141 162.7 62.9475 166.418 63.4544C170.699 64.0376 164.932 57.1875 164.932 57.1875Z",fill:"#263238"}),E.jsx("path",{d:"M165.031 59.153C163.855 59.2567 161.201 57.8407 161.518 55.7109C161.518 55.7109 163.209 58.2031 165.031 59.153Z",fill:"#263238"}),E.jsx("path",{d:"M166.774 63.8966C166.406 64.7361 165.709 65.3966 165.034 65.7479C164.02 66.2759 163.45 65.5036 163.679 64.4889C163.886 63.5754 164.663 62.1998 165.706 62.087C166.735 61.9756 167.195 62.9366 166.774 63.8966Z",fill:"#E4897B"}),E.jsx("path",{d:"M172.057 59.9843C172.769 59.6219 174.391 58.8001 174.833 56.4688C174.833 56.4688 176.418 60.8919 172.057 59.9843Z",fill:"#263238"}),E.jsx("path",{d:"M176.061 59.9373C175.705 59.729 174.898 59.2543 173.764 59.7108C173.764 59.7108 175.242 57.7932 176.061 59.9373Z",fill:"#263238"}),E.jsx("path",{d:"M163.955 106.945C163.955 106.945 167.957 133.893 170.154 143.989C172.56 155.045 181.623 191.872 181.623 191.872H188.082C188.082 191.872 182.105 155.937 180.733 144.992C179.243 133.112 176.125 106.945 176.125 106.945H163.955Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.5",d:"M163.955 106.945C163.955 106.945 167.957 133.893 170.154 143.989C172.56 155.045 181.623 191.872 181.623 191.872H188.082C188.082 191.872 182.105 155.937 180.733 144.992C179.243 133.112 176.125 106.945 176.125 106.945H163.955Z",fill:"white"}),E.jsx("path",{d:"M180.591 189.492C180.563 189.492 181.257 191.972 181.257 191.972H188.524L188.39 189.759L180.591 189.492Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.1",d:"M180.591 189.492C180.563 189.492 181.257 191.972 181.257 191.972H188.524L188.39 189.759L180.591 189.492Z",fill:"black"}),E.jsx("path",{d:"M166.483 116.544C171.11 117.451 170.621 134.707 170.064 143.582C168.729 137.309 166.776 125.237 165.441 116.669C165.749 116.515 166.094 116.467 166.483 116.544Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.4",d:"M166.483 116.544C171.11 117.451 170.621 134.707 170.064 143.582C168.729 137.309 166.776 125.237 165.441 116.669C165.749 116.515 166.094 116.467 166.483 116.544Z",fill:"white"}),E.jsx("path",{d:"M157.265 106.945C157.265 106.945 156.78 133.31 157.163 144.064C157.562 155.249 161.469 191.872 161.469 191.872H167.442C167.442 191.872 167.662 155.902 167.927 144.918C168.217 132.942 169.663 106.946 169.663 106.946H157.265V106.945Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.5",d:"M157.265 106.945C157.265 106.945 156.78 133.31 157.163 144.064C157.562 155.249 161.469 191.872 161.469 191.872H167.442C167.442 191.872 167.662 155.902 167.927 144.918C168.217 132.942 169.663 106.946 169.663 106.946H157.265V106.945Z",fill:"white"}),E.jsx("path",{d:"M162.712 187.581C162.682 187.581 162.656 187.558 162.653 187.528C161.6 177.391 159.117 152.865 158.803 144.066C158.482 135.085 158.773 114.935 158.87 108.973C158.871 108.94 158.898 108.914 158.93 108.914H158.931C158.964 108.915 158.991 108.942 158.99 108.975C158.893 114.936 158.602 135.084 158.923 144.062C159.236 152.857 161.719 177.38 162.772 187.515C162.776 187.548 162.752 187.577 162.718 187.581C162.716 187.581 162.714 187.581 162.712 187.581Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.4",d:"M162.712 187.581C162.682 187.581 162.656 187.558 162.653 187.528C161.6 177.391 159.117 152.865 158.803 144.066C158.482 135.085 158.773 114.935 158.87 108.973C158.871 108.94 158.898 108.914 158.93 108.914H158.931C158.964 108.915 158.991 108.942 158.99 108.975C158.893 114.936 158.602 135.084 158.923 144.062C159.236 152.857 161.719 177.38 162.772 187.515C162.776 187.548 162.752 187.577 162.718 187.581C162.716 187.581 162.714 187.581 162.712 187.581Z",fill:"white"}),E.jsx("path",{d:"M160.318 189.492C160.291 189.492 160.655 191.972 160.655 191.972H167.922L168.118 189.759L160.318 189.492Z",fill:"#00A1E0"}),E.jsx("path",{opacity:"0.1",d:"M160.318 189.492C160.291 189.492 160.655 191.972 160.655 191.972H167.922L168.118 189.759L160.318 189.492Z",fill:"black"})]}),Pw=({stroke:t="#797979"})=>E.jsx("svg",{width:"15",height:"12",viewBox:"0 0 15 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M9.1884 0.758229V2.44509M9.1884 4.72029V6.40714M9.1884 8.69057V10.3774M0.75 9.34886C0.75 9.62165 0.858367 9.88327 1.05126 10.0762C1.24416 10.2691 1.50578 10.3774 1.77857 10.3774H12.2577C12.5305 10.3774 12.7921 10.2691 12.985 10.0762C13.1779 9.88327 13.2862 9.62165 13.2862 9.34886V7.45629C12.8709 7.3432 12.5044 7.09664 12.243 6.75463C11.9817 6.41262 11.8401 5.99414 11.8401 5.56371C11.8401 5.13329 11.9817 4.71481 12.243 4.3728C12.5044 4.03079 12.8709 3.78423 13.2862 3.67114V1.77857C13.2862 1.50578 13.1779 1.24416 12.985 1.05126C12.7921 0.858367 12.5305 0.75 12.2577 0.75H1.77857C1.50578 0.75 1.24416 0.858367 1.05126 1.05126C0.858367 1.24416 0.75 1.50578 0.75 1.77857V3.66703C1.16884 3.77744 1.53935 4.02339 1.80373 4.3665C2.0681 4.7096 2.21148 5.13057 2.21148 5.56371C2.21148 5.99686 2.0681 6.41783 1.80373 6.76093C1.53935 7.10404 1.16884 7.34998 0.75 7.4604V9.34886Z",stroke:t,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Mw=({stroke:t="#B7B7B7",fill:e="white"})=>E.jsx("svg",{width:"16",height:"16",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:E.jsx("path",{d:"M42 23.0001C42.0069 25.6398 41.3901 28.2438 40.2 30.6001C38.7889 33.4235 36.6195 35.7984 33.9349 37.4586C31.2503 39.1188 28.1565 39.9988 25 40.0001C22.3603 40.0069 19.7562 39.3902 17.4 38.2001L6 42.0001L9.8 30.6001C8.60986 28.2438 7.99312 25.6398 8 23.0001C8.00122 19.8436 8.88122 16.7498 10.5414 14.0652C12.2017 11.3806 14.5765 9.21119 17.4 7.80006C19.7562 6.60992 22.3603 5.99317 25 6.00006H26C30.1687 6.23004 34.1061 7.98958 37.0583 10.9418C40.0105 13.894 41.77 17.8314 42 22.0001V23.0001Z",fill:e,stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),zF=()=>E.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M0.833252 12.3066C1.45198 12.2781 1.97551 12.0401 2.40386 11.5927C2.83221 11.1453 3.05114 10.6123 3.05114 9.99353C3.05114 10.6123 3.26056 11.1453 3.68891 11.5927C4.11725 12.0401 4.64079 12.2781 5.25952 12.3066C4.64079 12.3352 4.11725 12.5731 3.68891 13.0205C3.48181 13.2314 3.31877 13.4814 3.20927 13.756C3.09978 14.0306 3.04602 14.3242 3.05114 14.6197C3.05114 14.001 2.84173 13.4679 2.40386 13.0205C1.97551 12.5731 1.45198 12.3352 0.833252 12.3066ZM12.6937 11.1929C13.598 11.1548 14.3595 10.8026 14.9878 10.1458C15.616 9.48903 15.9206 8.70848 15.9206 7.78516C15.9206 8.69897 16.2347 9.47951 16.863 10.1363C17.4912 10.7931 18.2623 11.1453 19.1666 11.1834C18.2623 11.2215 17.4912 11.5737 16.863 12.2305C16.2347 12.8873 15.9206 13.6678 15.9206 14.5816C15.9206 13.6678 15.6065 12.8873 14.9878 12.2305C14.3595 11.5832 13.598 11.231 12.6937 11.1929Z",fill:"#00B8D9"}),E.jsx("path",{d:"M6.10633 4.05187C5.26867 4.9276 4.25016 5.39403 3.05078 5.45114C4.25016 5.50825 5.26867 5.97468 6.10633 6.85993C6.94399 7.73566 7.36282 8.78274 7.36282 9.99163C7.36282 9.19205 7.5532 8.4591 7.93395 7.77374C8.32422 7.08838 8.84776 6.53629 9.50456 6.12698C10.1709 5.70815 10.8943 5.48921 11.6844 5.45114C10.4755 5.38451 9.45697 4.9276 8.61931 4.05187C7.78165 3.17614 7.36282 2.13858 7.36282 0.929688C7.36282 2.13858 6.94399 3.17614 6.10633 4.05187Z",fill:"#00A1E0"}),E.jsx("path",{d:"M8.5145 14.6558C7.88625 15.3126 7.11523 15.6648 6.21094 15.7029C7.08661 15.7354 7.91423 16.1116 8.5145 16.75C9.14274 17.4068 9.45686 18.1873 9.45686 19.1011C9.45686 18.1873 9.77099 17.4068 10.3992 16.75C11.0275 16.0932 11.789 15.741 12.6933 15.7029C11.789 15.6648 11.0275 15.3126 10.3992 14.6558C9.77099 13.999 9.45686 13.2185 9.45686 12.3047C9.45686 13.2185 9.14274 13.999 8.5145 14.6558Z",fill:"#00A1E0"})]});/*! *****************************************************************************
|
|
478
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
479
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
480
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
481
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
482
|
+
|
|
483
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
484
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
485
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
486
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
487
|
+
|
|
488
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
489
|
+
and limitations under the License.
|
|
490
|
+
***************************************************************************** */var Tg=function(t,e){return Tg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},Tg(t,e)};function BF(t,e){Tg(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var fc=function(){return fc=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},fc.apply(this,arguments)};function HF(t,e,n,r){var i,o=!1,a=0;function s(){i&&clearTimeout(i)}function c(){s(),o=!0}typeof e!="boolean"&&(r=n,n=e,e=void 0);function u(){var d=this,h=Date.now()-a,p=arguments;if(o)return;function m(){a=Date.now(),n.apply(d,p)}function v(){i=void 0}r&&!i&&m(),s(),r===void 0&&h>t?m():e!==!0&&(i=setTimeout(r?v:m,r===void 0?t-h:t))}return u.cancel=c,u}var xs={Pixel:"Pixel",Percent:"Percent"},Lw={unit:xs.Percent,value:.8};function Fw(t){return typeof t=="number"?{unit:xs.Percent,value:t*100}:typeof t=="string"?t.match(/^(\d*(\.\d+)?)px$/)?{unit:xs.Pixel,value:parseFloat(t)}:t.match(/^(\d*(\.\d+)?)%$/)?{unit:xs.Percent,value:parseFloat(t)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),Lw):(console.warn("scrollThreshold should be string or number"),Lw)}var Og=(function(t){BF(e,t);function e(n){var r=t.call(this,n)||this;return r.lastScrollTop=0,r.actionTriggered=!1,r.startY=0,r.currentY=0,r.dragging=!1,r.maxPullDownDistance=0,r.getScrollableTarget=function(){return r.props.scrollableTarget instanceof HTMLElement?r.props.scrollableTarget:typeof r.props.scrollableTarget=="string"?document.getElementById(r.props.scrollableTarget):(r.props.scrollableTarget===null&&console.warn(`You are trying to pass scrollableTarget but it is null. This might
|
|
491
|
+
happen because the element may not have been added to DOM yet.
|
|
492
|
+
See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.
|
|
493
|
+
`),null)},r.onStart=function(i){r.lastScrollTop||(r.dragging=!0,i instanceof MouseEvent?r.startY=i.pageY:i instanceof TouchEvent&&(r.startY=i.touches[0].pageY),r.currentY=r.startY,r._infScroll&&(r._infScroll.style.willChange="transform",r._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},r.onMove=function(i){r.dragging&&(i instanceof MouseEvent?r.currentY=i.pageY:i instanceof TouchEvent&&(r.currentY=i.touches[0].pageY),!(r.currentY<r.startY)&&(r.currentY-r.startY>=Number(r.props.pullDownToRefreshThreshold)&&r.setState({pullToRefreshThresholdBreached:!0}),!(r.currentY-r.startY>r.maxPullDownDistance*1.5)&&r._infScroll&&(r._infScroll.style.overflow="visible",r._infScroll.style.transform="translate3d(0px, "+(r.currentY-r.startY)+"px, 0px)")))},r.onEnd=function(){r.startY=0,r.currentY=0,r.dragging=!1,r.state.pullToRefreshThresholdBreached&&(r.props.refreshFunction&&r.props.refreshFunction(),r.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){r._infScroll&&(r._infScroll.style.overflow="auto",r._infScroll.style.transform="none",r._infScroll.style.willChange="unset")})},r.onScrollListener=function(i){typeof r.props.onScroll=="function"&&setTimeout(function(){return r.props.onScroll&&r.props.onScroll(i)},0);var o=r.props.height||r._scrollableNode?i.target:document.documentElement.scrollTop?document.documentElement:document.body;if(!r.actionTriggered){var a=r.props.inverse?r.isElementAtTop(o,r.props.scrollThreshold):r.isElementAtBottom(o,r.props.scrollThreshold);a&&r.props.hasMore&&(r.actionTriggered=!0,r.setState({showLoader:!0}),r.props.next&&r.props.next()),r.lastScrollTop=o.scrollTop}},r.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:n.dataLength},r.throttledOnScrollListener=HF(150,r.onScrollListener).bind(r),r.onStart=r.onStart.bind(r),r.onMove=r.onMove.bind(r),r.onEnd=r.onEnd.bind(r),r}return e.prototype.componentDidMount=function(){if(typeof this.props.dataLength>"u")throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),typeof this.props.initialScrollY=="number"&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),typeof this.props.refreshFunction!="function"))throw new Error(`Mandatory prop "refreshFunction" missing.
|
|
494
|
+
Pull Down To Refresh functionality will not work
|
|
495
|
+
as expected. Check README.md for usage'`)},e.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},e.prototype.componentDidUpdate=function(n){this.props.dataLength!==n.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},e.getDerivedStateFromProps=function(n,r){var i=n.dataLength!==r.prevDataLength;return i?fc(fc({},r),{prevDataLength:n.dataLength}):null},e.prototype.isElementAtTop=function(n,r){r===void 0&&(r=.8);var i=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,o=Fw(r);return o.unit===xs.Pixel?n.scrollTop<=o.value+i-n.scrollHeight+1:n.scrollTop<=o.value/100+i-n.scrollHeight+1},e.prototype.isElementAtBottom=function(n,r){r===void 0&&(r=.8);var i=n===document.body||n===document.documentElement?window.screen.availHeight:n.clientHeight,o=Fw(r);return o.unit===xs.Pixel?n.scrollTop+i>=n.scrollHeight-o.value:n.scrollTop+i>=o.value/100*n.scrollHeight},e.prototype.render=function(){var n=this,r=fc({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),i=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),o=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return R.createElement("div",{style:o,className:"infinite-scroll-component__outerdiv"},R.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(a){return n._infScroll=a},style:r},this.props.pullDownToRefresh&&R.createElement("div",{style:{position:"relative"},ref:function(a){return n._pullDown=a}},R.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!i&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},e})(R.Component),Tf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_CATEGORIES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NamedType",name:{kind:"Name",value:"CategoryQueryInput"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getCategories"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_faqs"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_sections"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"serial"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_articles"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"meta_data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filtered_rows"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total_rows"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:353}};Tf.loc.source={body:`query GET_CATEGORIES($queryData: CategoryQueryInput, $optionData: OptionDataType) {
|
|
496
|
+
getCategories(queryData: $queryData, optionData: $optionData) {
|
|
497
|
+
data {
|
|
498
|
+
id
|
|
499
|
+
name
|
|
500
|
+
total_faqs
|
|
501
|
+
total_sections
|
|
502
|
+
type
|
|
503
|
+
description
|
|
504
|
+
serial
|
|
505
|
+
total_articles
|
|
506
|
+
}
|
|
507
|
+
meta_data {
|
|
508
|
+
filtered_rows
|
|
509
|
+
total_rows
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Of(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){Of(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){Of(r,e)}),t.definitions&&t.definitions.forEach(function(r){Of(r,e)})}var Rg={};(function(){Tf.definitions.forEach(function(e){if(e.name){var n=new Set;Of(e,n),Rg[e.name.value]=n}})})();function jw(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function WF(t,e){var n={kind:t.kind,definitions:[jw(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=Rg[e]||new Set,i=new Set,o=new Set;for(r.forEach(function(s){o.add(s)});o.size>0;){var a=o;o=new Set,a.forEach(function(s){if(!i.has(s)){i.add(s);var c=Rg[s]||new Set;c.forEach(function(u){o.add(u)})}})}return i.forEach(function(s){var c=jw(t,s);c&&n.definitions.push(c)}),n}WF(Tf,"GET_CATEGORIES");const GF=({setSelectedCategory:t})=>{const[e,n]=R.useState([]),[r,i]=R.useState({limit:50,offset:0,order:[["serial","asc"]]}),[o,a]=R.useState({}),[s,c]=R.useState({initialLoading:!0,fetchMoreLoading:!0}),{data:u,error:d}=Dl(Tf,{errorPolicy:"all",fetchPolicy:"no-cache",variables:{queryData:{type:"ARTICLE"},optionData:r}}),h=()=>{c({initialLoading:!1,fetchMoreLoading:!0});const m=r.offset+r.limit;i(v=>({...v,offset:m}))},p=!!(o!=null&&o.filtered_rows&&Ie.size(e)<(o==null?void 0:o.filtered_rows));return R.useEffect(()=>{if(u!=null&&u.getCategories){const m=u.getCategories.data;(r==null?void 0:r.offset)===0?n(m):n([...e,...m]),a(u.getCategories.meta_data),c({initialLoading:!1,fetchMoreLoading:!1})}d&&console.error(d)},[u,d]),s.initialLoading?E.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:E.jsx(ma,{})}):E.jsx(Og,{dataLength:Ie.size(e),next:h,hasMore:p,scrollableTarget:"root-scrollbar",loader:"",children:E.jsxs("div",{className:"ed-px-3",children:[e==null?void 0:e.map(m=>E.jsxs("div",{role:"button",tabIndex:0,onClick:()=>t(m==null?void 0:m.id),className:"ed-category-card ed-py-3 ed-px-5 ed-mt-3 ed-rounded-lg ed-border ed-border-border-light ed-hover:shadow-lg ed-duration-300 ed-transition-all ed-cursor-pointer",children:[E.jsx("h6",{className:"ed-text-16 ed-font-semibold ed-text-border-dark ed-category-title",children:m==null?void 0:m.name}),E.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-border-regular ed-category-desc ed-my-2 ed-duration-300 ed-transition-all",children:m==null?void 0:m.description}),E.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-justify-between",children:[E.jsxs("span",{className:"ed-text-14 ed-text-border ed-category-count ed-duration-300 ed-transition-all",children:[m==null?void 0:m.total_articles," article",(m==null?void 0:m.total_articles)>1&&"s"]}),E.jsx("div",{className:"ed-chevron-wrapper ed-size-4 ed--translate-x-2 ed-opacity-0 ed-duration-300 ed-transition-all",children:E.jsx(eo,{className:"ed-text-border ed-size-4"})})]})]},m==null?void 0:m.id)),(s==null?void 0:s.fetchMoreLoading)&&E.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:E.jsx(ma,{})})]})})};var Rf={exports:{}},YF=Rf.exports,Dw;function KF(){return Dw||(Dw=1,(function(t,e){(function(n,r){t.exports=r()})(YF,(function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",s="minute",c="hour",u="day",d="week",h="month",p="quarter",m="year",v="date",b="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var F=["th","st","nd","rd"],D=j%100;return"["+j+(F[(D-20)%10]||F[D]||F[0])+"]"}},k=function(j,F,D){var Y=String(j);return!Y||Y.length>=F?j:""+Array(F+1-Y.length).join(D)+j},x={s:k,z:function(j){var F=-j.utcOffset(),D=Math.abs(F),Y=Math.floor(D/60),z=D%60;return(F<=0?"+":"-")+k(Y,2,"0")+":"+k(z,2,"0")},m:function j(F,D){if(F.date()<D.date())return-j(D,F);var Y=12*(D.year()-F.year())+(D.month()-F.month()),z=F.clone().add(Y,h),q=D-z<0,W=F.clone().add(Y+(q?-1:1),h);return+(-(Y+(D-z)/(q?z-W:W-z))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:h,y:m,w:d,d:u,D:v,h:c,m:s,s:a,ms:o,Q:p}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},S="en",A={};A[S]=C;var T="$isDayjsObject",N=function(j){return j instanceof H||!(!j||!j[T])},P=function j(F,D,Y){var z;if(!F)return S;if(typeof F=="string"){var q=F.toLowerCase();A[q]&&(z=q),D&&(A[q]=D,z=q);var W=F.split("-");if(!z&&W.length>1)return j(W[0])}else{var G=F.name;A[G]=F,z=G}return!Y&&z&&(S=z),z||!Y&&S},U=function(j,F){if(N(j))return j.clone();var D=typeof F=="object"?F:{};return D.date=j,D.args=arguments,new H(D)},V=x;V.l=P,V.i=N,V.w=function(j,F){return U(j,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var H=(function(){function j(D){this.$L=P(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[T]=!0}var F=j.prototype;return F.parse=function(D){this.$d=(function(Y){var z=Y.date,q=Y.utc;if(z===null)return new Date(NaN);if(V.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var W=z.match(y);if(W){var G=W[2]-1||0,te=(W[7]||"0").substring(0,3);return q?new Date(Date.UTC(W[1],G,W[3]||1,W[4]||0,W[5]||0,W[6]||0,te)):new Date(W[1],G,W[3]||1,W[4]||0,W[5]||0,W[6]||0,te)}}return new Date(z)})(D),this.init()},F.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},F.$utils=function(){return V},F.isValid=function(){return this.$d.toString()!==b},F.isSame=function(D,Y){var z=U(D);return this.startOf(Y)<=z&&z<=this.endOf(Y)},F.isAfter=function(D,Y){return U(D)<this.startOf(Y)},F.isBefore=function(D,Y){return this.endOf(Y)<U(D)},F.$g=function(D,Y,z){return V.u(D)?this[Y]:this.set(z,D)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(D,Y){var z=this,q=!!V.u(Y)||Y,W=V.p(D),G=function(re,he){var Ee=V.w(z.$u?Date.UTC(z.$y,he,re):new Date(z.$y,he,re),z);return q?Ee:Ee.endOf(u)},te=function(re,he){return V.w(z.toDate()[re].apply(z.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(he)),z)},ne=this.$W,ce=this.$M,ie=this.$D,de="set"+(this.$u?"UTC":"");switch(W){case m:return q?G(1,0):G(31,11);case h:return q?G(1,ce):G(0,ce+1);case d:var pe=this.$locale().weekStart||0,J=(ne<pe?ne+7:ne)-pe;return G(q?ie-J:ie+(6-J),ce);case u:case v:return te(de+"Hours",0);case c:return te(de+"Minutes",1);case s:return te(de+"Seconds",2);case a:return te(de+"Milliseconds",3);default:return this.clone()}},F.endOf=function(D){return this.startOf(D,!1)},F.$set=function(D,Y){var z,q=V.p(D),W="set"+(this.$u?"UTC":""),G=(z={},z[u]=W+"Date",z[v]=W+"Date",z[h]=W+"Month",z[m]=W+"FullYear",z[c]=W+"Hours",z[s]=W+"Minutes",z[a]=W+"Seconds",z[o]=W+"Milliseconds",z)[q],te=q===u?this.$D+(Y-this.$W):Y;if(q===h||q===m){var ne=this.clone().set(v,1);ne.$d[G](te),ne.init(),this.$d=ne.set(v,Math.min(this.$D,ne.daysInMonth())).$d}else G&&this.$d[G](te);return this.init(),this},F.set=function(D,Y){return this.clone().$set(D,Y)},F.get=function(D){return this[V.p(D)]()},F.add=function(D,Y){var z,q=this;D=Number(D);var W=V.p(Y),G=function(ce){var ie=U(q);return V.w(ie.date(ie.date()+Math.round(ce*D)),q)};if(W===h)return this.set(h,this.$M+D);if(W===m)return this.set(m,this.$y+D);if(W===u)return G(1);if(W===d)return G(7);var te=(z={},z[s]=r,z[c]=i,z[a]=n,z)[W]||1,ne=this.$d.getTime()+D*te;return V.w(ne,this)},F.subtract=function(D,Y){return this.add(-1*D,Y)},F.format=function(D){var Y=this,z=this.$locale();if(!this.isValid())return z.invalidDate||b;var q=D||"YYYY-MM-DDTHH:mm:ssZ",W=V.z(this),G=this.$H,te=this.$m,ne=this.$M,ce=z.weekdays,ie=z.months,de=z.meridiem,pe=function(he,Ee,X,Re){return he&&(he[Ee]||he(Y,q))||X[Ee].slice(0,Re)},J=function(he){return V.s(G%12||12,he,"0")},re=de||function(he,Ee,X){var Re=he<12?"AM":"PM";return X?Re.toLowerCase():Re};return q.replace(w,(function(he,Ee){return Ee||(function(X){switch(X){case"YY":return String(Y.$y).slice(-2);case"YYYY":return V.s(Y.$y,4,"0");case"M":return ne+1;case"MM":return V.s(ne+1,2,"0");case"MMM":return pe(z.monthsShort,ne,ie,3);case"MMMM":return pe(ie,ne);case"D":return Y.$D;case"DD":return V.s(Y.$D,2,"0");case"d":return String(Y.$W);case"dd":return pe(z.weekdaysMin,Y.$W,ce,2);case"ddd":return pe(z.weekdaysShort,Y.$W,ce,3);case"dddd":return ce[Y.$W];case"H":return String(G);case"HH":return V.s(G,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return re(G,te,!0);case"A":return re(G,te,!1);case"m":return String(te);case"mm":return V.s(te,2,"0");case"s":return String(Y.$s);case"ss":return V.s(Y.$s,2,"0");case"SSS":return V.s(Y.$ms,3,"0");case"Z":return W}return null})(he)||W.replace(":","")}))},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(D,Y,z){var q,W=this,G=V.p(Y),te=U(D),ne=(te.utcOffset()-this.utcOffset())*r,ce=this-te,ie=function(){return V.m(W,te)};switch(G){case m:q=ie()/12;break;case h:q=ie();break;case p:q=ie()/3;break;case d:q=(ce-ne)/6048e5;break;case u:q=(ce-ne)/864e5;break;case c:q=ce/i;break;case s:q=ce/r;break;case a:q=ce/n;break;default:q=ce}return z?q:V.a(q)},F.daysInMonth=function(){return this.endOf(h).$D},F.$locale=function(){return A[this.$L]},F.locale=function(D,Y){if(!D)return this.$L;var z=this.clone(),q=P(D,Y,!0);return q&&(z.$L=q),z},F.clone=function(){return V.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},j})(),Q=H.prototype;return U.prototype=Q,[["$ms",o],["$s",a],["$m",s],["$H",c],["$W",u],["$M",h],["$y",m],["$D",v]].forEach((function(j){Q[j[1]]=function(F){return this.$g(F,j[0],j[1])}})),U.extend=function(j,F){return j.$i||(j(F,H,U),j.$i=!0),U},U.locale=P,U.isDayjs=N,U.unix=function(j){return U(1e3*j)},U.en=A[S],U.Ls=A,U.p={},U}))})(Rf)),Rf.exports}var ZF=KF();const to=sa(ZF);var Nf={exports:{}},Ng={},Vw;function Uw(){if(Vw)return Ng;Vw=1;function t(e){return e&&e.__esModule?e:{default:e}}return Ng._=t,Ng}var If={exports:{}},Ig={},zw;function Bw(){return zw||(zw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(a,s){for(var c in s)Object.defineProperty(a,c,{enumerable:!0,get:s[c]})}e(t,{assign:function(){return o},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}});function n(a){const s={};return a.forEach((c,u)=>{typeof s[u]>"u"?s[u]=c:Array.isArray(s[u])?s[u].push(c):s[u]=[s[u],c]}),s}function r(a){return typeof a=="string"||typeof a=="number"&&!isNaN(a)||typeof a=="boolean"?String(a):""}function i(a){const s=new URLSearchParams;return Object.entries(a).forEach(c=>{let[u,d]=c;Array.isArray(d)?d.forEach(h=>s.append(u,r(h))):s.set(u,r(d))}),s}function o(a){for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];return c.forEach(d=>{Array.from(d.keys()).forEach(h=>a.delete(h)),d.forEach((h,p)=>a.append(p,h))}),a}})(Ig)),Ig}var Pg={},Mg={},Hw;function QF(){if(Hw)return Mg;Hw=1;function t(n){if(typeof WeakMap!="function")return null;var r=new WeakMap,i=new WeakMap;return(t=function(o){return o?i:r})(n)}function e(n,r){if(!r&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var i=t(r);if(i&&i.has(n))return i.get(n);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in n)if(s!=="default"&&Object.prototype.hasOwnProperty.call(n,s)){var c=a?Object.getOwnPropertyDescriptor(n,s):null;c&&(c.get||c.set)?Object.defineProperty(o,s,c):o[s]=n[s]}return o.default=n,i&&i.set(n,o),o}return Mg._=e,Mg}var Ww;function Gw(){return Ww||(Ww=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(c,u){for(var d in u)Object.defineProperty(c,d,{enumerable:!0,get:u[d]})}e(t,{formatUrl:function(){return o},formatWithValidation:function(){return s},urlObjectKeys:function(){return a}});const r=QF()._(Bw()),i=/https?|ftp|gopher|file/;function o(c){let{auth:u,hostname:d}=c,h=c.protocol||"",p=c.pathname||"",m=c.hash||"",v=c.query||"",b=!1;u=u?encodeURIComponent(u).replace(/%3A/i,":")+"@":"",c.host?b=u+c.host:d&&(b=u+(~d.indexOf(":")?"["+d+"]":d),c.port&&(b+=":"+c.port)),v&&typeof v=="object"&&(v=String(r.urlQueryToSearchParams(v)));let y=c.search||v&&"?"+v||"";return h&&!h.endsWith(":")&&(h+=":"),c.slashes||(!h||i.test(h))&&b!==!1?(b="//"+(b||""),p&&p[0]!=="/"&&(p="/"+p)):b||(b=""),m&&m[0]!=="#"&&(m="#"+m),y&&y[0]!=="?"&&(y="?"+y),p=p.replace(/[?#]/g,encodeURIComponent),y=y.replace("#","%23"),""+h+b+p+y+m}const a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(c){return o(c)}})(Pg)),Pg}var Lg={},Yw;function qF(){return Yw||(Yw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return e}});function e(n,r){const i={};return Object.keys(n).forEach(o=>{r.includes(o)||(i[o]=n[o])}),i}})(Lg)),Lg}var Fg={},Kw;function Pf(){return Kw||(Kw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(x,S){for(var A in S)Object.defineProperty(x,A,{enumerable:!0,get:S[A]})}e(t,{DecodeError:function(){return v},MiddlewareNotFoundError:function(){return C},MissingStaticPage:function(){return w},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return p},ST:function(){return m},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return c},getLocationOrigin:function(){return a},getURL:function(){return s},isAbsoluteUrl:function(){return o},isResSent:function(){return u},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return d},stringifyError:function(){return k}});const n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(x){let S=!1,A;return function(){for(var T=arguments.length,N=new Array(T),P=0;P<T;P++)N[P]=arguments[P];return S||(S=!0,A=x(...N)),A}}const i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=x=>i.test(x);function a(){const{protocol:x,hostname:S,port:A}=window.location;return x+"//"+S+(A?":"+A:"")}function s(){const{href:x}=window.location,S=a();return x.substring(S.length)}function c(x){return typeof x=="string"?x:x.displayName||x.name||"Unknown"}function u(x){return x.finished||x.headersSent}function d(x){const S=x.split("?");return S[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(S[1]?"?"+S.slice(1).join("?"):"")}async function h(x,S){{var A;if((A=x.prototype)!=null&&A.getInitialProps){const P='"'+c(x)+'.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';throw new Error(P)}}const T=S.res||S.ctx&&S.ctx.res;if(!x.getInitialProps)return S.ctx&&S.Component?{pageProps:await h(S.Component,S.ctx)}:{};const N=await x.getInitialProps(S);if(T&&u(T))return N;if(!N){const P='"'+c(x)+'.getInitialProps()" should resolve to an object. But found "'+N+'" instead.';throw new Error(P)}return Object.keys(N).length===0&&!S.ctx&&console.warn(""+c(x)+" returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"),N}const p=typeof performance<"u",m=p&&["mark","measure","getEntriesByName"].every(x=>typeof performance[x]=="function");class v extends Error{}class b extends Error{}class y extends Error{constructor(S){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+S}}class w extends Error{constructor(S,A){super(),this.message="Failed to load static file for page: "+S+" "+A}}class C extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function k(x){return JSON.stringify({message:x.message,stack:x.stack})}})(Fg)),Fg}var Mf={exports:{}},jg={},Zw;function Qw(){return Zw||(Zw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return e}});function e(n){return n.replace(/\/$/,"")||"/"}})(jg)),jg}var Dg={},qw;function Vg(){return qw||(qw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return e}});function e(n){const r=n.indexOf("#"),i=n.indexOf("?"),o=i>-1&&(r<0||i<r);return o||r>-1?{pathname:n.substring(0,o?i:r),query:o?n.substring(i,r>-1?r:void 0):"",hash:r>-1?n.slice(r):""}:{pathname:n,query:"",hash:""}}})(Dg)),Dg}var Jw;function Lf(){return Jw||(Jw=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});const r=Qw(),i=Vg(),o=a=>{if(!a.startsWith("/")||n.__NEXT_MANUAL_TRAILING_SLASH)return a;const{pathname:s,query:c,hash:u}=(0,i.parsePath)(a);return n.__NEXT_TRAILING_SLASH?/\.[^/]+\/?$/.test(s)?""+(0,r.removeTrailingSlash)(s)+c+u:s.endsWith("/")?""+s+c+u:s+"/"+c+u:""+(0,r.removeTrailingSlash)(s)+c+u};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(Mf,Mf.exports)),Mf.exports}var Ug={},Ff={exports:{}},zg={},Xw;function $w(){return Xw||(Xw=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return n}});const e=Vg();function n(r,i){if(typeof r!="string")return!1;const{pathname:o}=(0,e.parsePath)(r);return o===i||o.startsWith(i+"/")}})(zg)),zg}var e_;function JF(){return e_||(e_=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"hasBasePath",{enumerable:!0,get:function(){return o}});const r=$w(),i=n.__NEXT_ROUTER_BASEPATH||"";function o(a){return(0,r.pathHasPrefix)(a,i)}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(Ff,Ff.exports)),Ff.exports}var t_;function n_(){return t_||(t_=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return r}});const e=Pf(),n=JF();function r(i){if(!(0,e.isAbsoluteUrl)(i))return!0;try{const o=(0,e.getLocationOrigin)(),a=new URL(i,o);return a.origin===o&&(0,n.hasBasePath)(a.pathname)}catch{return!1}}})(Ug)),Ug}var Bg={},Hg={},r_;function XF(){return r_||(r_=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(o,a){for(var s in a)Object.defineProperty(o,s,{enumerable:!0,get:a[s]})}e(t,{getSortedRouteObjects:function(){return i},getSortedRoutes:function(){return r}});class n{insert(a){this._insert(a.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(a){a===void 0&&(a="/");const s=[...this.children.keys()].sort();this.slugName!==null&&s.splice(s.indexOf("[]"),1),this.restSlugName!==null&&s.splice(s.indexOf("[...]"),1),this.optionalRestSlugName!==null&&s.splice(s.indexOf("[[...]]"),1);const c=s.map(u=>this.children.get(u)._smoosh(""+a+u+"/")).reduce((u,d)=>[...u,...d],[]);if(this.slugName!==null&&c.push(...this.children.get("[]")._smoosh(a+"["+this.slugName+"]/")),!this.placeholder){const u=a==="/"?"/":a.slice(0,-1);if(this.optionalRestSlugName!=null)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'+u+'" and "'+u+"[[..."+this.optionalRestSlugName+']]").');c.unshift(u)}return this.restSlugName!==null&&c.push(...this.children.get("[...]")._smoosh(a+"[..."+this.restSlugName+"]/")),this.optionalRestSlugName!==null&&c.push(...this.children.get("[[...]]")._smoosh(a+"[[..."+this.optionalRestSlugName+"]]/")),c}_insert(a,s,c){if(a.length===0){this.placeholder=!1;return}if(c)throw new Error("Catch-all must be the last part of the URL.");let u=a[0];if(u.startsWith("[")&&u.endsWith("]")){let p=function(m,v){if(m!==null&&m!==v)throw new Error("You cannot use different slug names for the same dynamic path ('"+m+"' !== '"+v+"').");s.forEach(b=>{if(b===v)throw new Error('You cannot have the same slug name "'+v+'" repeat within a single dynamic path');if(b.replace(/\W/g,"")===u.replace(/\W/g,""))throw new Error('You cannot have the slug names "'+b+'" and "'+v+'" differ only by non-word symbols within a single dynamic path')}),s.push(v)},d=u.slice(1,-1),h=!1;if(d.startsWith("[")&&d.endsWith("]")&&(d=d.slice(1,-1),h=!0),d.startsWith("…"))throw new Error("Detected a three-dot character ('…') at ('"+d+"'). Did you mean ('...')?");if(d.startsWith("...")&&(d=d.substring(3),c=!0),d.startsWith("[")||d.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('"+d+"').");if(d.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('"+d+"').");if(c)if(h){if(this.restSlugName!=null)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+a[0]+'" ).');p(this.optionalRestSlugName,d),this.optionalRestSlugName=d,u="[[...]]"}else{if(this.optionalRestSlugName!=null)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+a[0]+'").');p(this.restSlugName,d),this.restSlugName=d,u="[...]"}else{if(h)throw new Error('Optional route parameters are not yet supported ("'+a[0]+'").');p(this.slugName,d),this.slugName=d,u="[]"}}this.children.has(u)||this.children.set(u,new n),this.children.get(u)._insert(a.slice(1),s,c)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(o){const a=new n;return o.forEach(s=>a.insert(s)),a.smoosh()}function i(o,a){const s={},c=[];for(let d=0;d<o.length;d++){const h=a(o[d]);s[h]=d,c[d]=h}return r(c).map(d=>o[s[d]])}})(Hg)),Hg}var Wg={},Gg={},Yg={},Kg={},i_;function $F(){return i_||(i_=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return e}});function e(n){return n.startsWith("/")?n:"/"+n}})(Kg)),Kg}var Zg={},o_;function ej(){return o_||(o_=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(s,c){for(var u in c)Object.defineProperty(s,u,{enumerable:!0,get:c[u]})}e(t,{DEFAULT_SEGMENT_KEY:function(){return a},PAGE_SEGMENT_KEY:function(){return o},addSearchParamsIfPageSegment:function(){return i},isGroupSegment:function(){return n},isParallelRouteSegment:function(){return r}});function n(s){return s[0]==="("&&s.endsWith(")")}function r(s){return s.startsWith("@")&&s!=="@children"}function i(s,c){if(s.includes(o)){const d=JSON.stringify(c);return d!=="{}"?o+"?"+d:o}return s}const o="__PAGE__",a="__DEFAULT__"})(Zg)),Zg}var a_;function tj(){return a_||(a_=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(a,s){for(var c in s)Object.defineProperty(a,c,{enumerable:!0,get:s[c]})}e(t,{normalizeAppPath:function(){return i},normalizeRscURL:function(){return o}});const n=$F(),r=ej();function i(a){return(0,n.ensureLeadingSlash)(a.split("/").reduce((s,c,u,d)=>!c||(0,r.isGroupSegment)(c)||c[0]==="@"||(c==="page"||c==="route")&&u===d.length-1?s:s+"/"+c,""))}function o(a){return a.replace(/\.rsc($|\?)/,"$1")}})(Yg)),Yg}var s_;function l_(){return s_||(s_=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(a,s){for(var c in s)Object.defineProperty(a,c,{enumerable:!0,get:s[c]})}e(t,{INTERCEPTION_ROUTE_MARKERS:function(){return r},extractInterceptionRouteInformation:function(){return o},isInterceptionRouteAppPath:function(){return i}});const n=tj(),r=["(..)(..)","(.)","(..)","(...)"];function i(a){return a.split("/").find(s=>r.find(c=>s.startsWith(c)))!==void 0}function o(a){let s,c,u;for(const d of a.split("/"))if(c=r.find(h=>d.startsWith(h)),c){[s,u]=a.split(c,2);break}if(!s||!c||!u)throw new Error(`Invalid interception route: ${a}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(s=(0,n.normalizeAppPath)(s),c){case"(.)":s==="/"?u=`/${u}`:u=s+"/"+u;break;case"(..)":if(s==="/")throw new Error(`Invalid interception route: ${a}. Cannot use (..) marker at the root level, use (.) instead.`);u=s.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":const d=s.split("/");if(d.length<=2)throw new Error(`Invalid interception route: ${a}. Cannot use (..)(..) marker at the root level or one level up.`);u=d.slice(0,-2).concat(u).join("/");break;default:throw new Error("Invariant: unexpected marker")}return{interceptingRoute:s,interceptedRoute:u}}})(Gg)),Gg}var c_;function nj(){return c_||(c_=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return r}});const e=l_(),n=/\/\[[^/]+?\](?=\/|$)/;function r(i){return(0,e.isInterceptionRouteAppPath)(i)&&(i=(0,e.extractInterceptionRouteInformation)(i).interceptedRoute),n.test(i)}})(Wg)),Wg}var u_;function rj(){return u_||(u_=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(i,o){for(var a in o)Object.defineProperty(i,a,{enumerable:!0,get:o[a]})}e(t,{getSortedRouteObjects:function(){return n.getSortedRouteObjects},getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return r.isDynamicRoute}});const n=XF(),r=nj()})(Bg)),Bg}var Qg={},qg={},f_;function ij(){return f_||(f_=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return n}});const e=Pf();function n(r){let{re:i,groups:o}=r;return a=>{const s=i.exec(a);if(!s)return!1;const c=d=>{try{return decodeURIComponent(d)}catch{throw new e.DecodeError("failed to decode param")}},u={};return Object.keys(o).forEach(d=>{const h=o[d],p=s[h.pos];p!==void 0&&(u[d]=~p.indexOf("/")?p.split("/").map(m=>c(m)):h.repeat?[c(p)]:c(p))}),u}}})(qg)),qg}var Jg={},Xg={},d_;function oj(){return d_||(d_=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(nt,Le){for(var Qe in Le)Object.defineProperty(nt,Qe,{enumerable:!0,get:Le[Qe]})}e(t,{ACTION_SUFFIX:function(){return h},APP_DIR_ALIAS:function(){return D},CACHE_ONE_YEAR:function(){return N},DOT_NEXT_ALIAS:function(){return j},ESLINT_DEFAULT_DIRS:function(){return Fe},GSP_NO_RETURNED_VALUE:function(){return re},GSSP_COMPONENT_MEMBER_ERROR:function(){return X},GSSP_NO_RETURNED_VALUE:function(){return he},INFINITE_CACHE:function(){return P},INSTRUMENTATION_HOOK_FILENAME:function(){return H},MATCHED_PATH_HEADER:function(){return i},MIDDLEWARE_FILENAME:function(){return U},MIDDLEWARE_LOCATION_REGEXP:function(){return V},NEXT_BODY_SUFFIX:function(){return v},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return T},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return w},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return C},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return y},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return A},NEXT_CACHE_TAGS_HEADER:function(){return b},NEXT_CACHE_TAG_MAX_ITEMS:function(){return x},NEXT_CACHE_TAG_MAX_LENGTH:function(){return S},NEXT_DATA_SUFFIX:function(){return p},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return r},NEXT_META_SUFFIX:function(){return m},NEXT_QUERY_PARAM_PREFIX:function(){return n},NEXT_RESUME_HEADER:function(){return k},NON_STANDARD_NODE_ENV:function(){return Re},PAGES_DIR_ALIAS:function(){return Q},PRERENDER_REVALIDATE_HEADER:function(){return o},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return ne},ROOT_DIR_ALIAS:function(){return F},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return te},RSC_ACTION_ENCRYPTION_ALIAS:function(){return G},RSC_ACTION_PROXY_ALIAS:function(){return q},RSC_ACTION_VALIDATE_ALIAS:function(){return z},RSC_CACHE_WRAPPER_ALIAS:function(){return W},RSC_MOD_REF_PROXY_ALIAS:function(){return Y},RSC_PREFETCH_SUFFIX:function(){return s},RSC_SEGMENTS_DIR_SUFFIX:function(){return c},RSC_SEGMENT_SUFFIX:function(){return u},RSC_SUFFIX:function(){return d},SERVER_PROPS_EXPORT_ERROR:function(){return J},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return ie},SERVER_PROPS_SSG_CONFLICT:function(){return de},SERVER_RUNTIME:function(){return st},SSG_FALLBACK_EXPORT_ERROR:function(){return ye},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return ce},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return pe},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return Ee},WEBPACK_LAYERS:function(){return lt},WEBPACK_RESOURCE_QUERIES:function(){return Te}});const n="nxtP",r="nxtI",i="x-matched-path",o="x-prerender-revalidate",a="x-prerender-revalidate-if-generated",s=".prefetch.rsc",c=".segments",u=".segment.rsc",d=".rsc",h=".action",p=".json",m=".meta",v=".body",b="x-next-cache-tags",y="x-next-cache-soft-tags",w="x-next-revalidated-tags",C="x-next-revalidate-tag-token",k="next-resume",x=128,S=256,A=1024,T="_N_T_",N=31536e3,P=4294967294,U="middleware",V=`(?:src/)?${U}`,H="instrumentation",Q="private-next-pages",j="private-dot-next",F="private-next-root-dir",D="private-next-app-dir",Y="private-next-rsc-mod-ref-proxy",z="private-next-rsc-action-validate",q="private-next-rsc-server-reference",W="private-next-rsc-cache-wrapper",G="private-next-rsc-action-encryption",te="private-next-rsc-action-client-wrapper",ne="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",ce="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",ie="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",de="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",pe="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",J="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",re="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",he="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",Ee="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",X="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",Re='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',ye="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",Fe=["app","pages","components","lib","src"],st={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},Pe={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser"},lt={...Pe,GROUP:{builtinReact:[Pe.reactServerComponents,Pe.actionBrowser],serverOnly:[Pe.reactServerComponents,Pe.actionBrowser,Pe.instrument,Pe.middleware],neutralTarget:[Pe.api],clientOnly:[Pe.serverSideRendering,Pe.appPagesBrowser],bundled:[Pe.reactServerComponents,Pe.actionBrowser,Pe.serverSideRendering,Pe.appPagesBrowser,Pe.shared,Pe.instrument],appPages:[Pe.reactServerComponents,Pe.serverSideRendering,Pe.appPagesBrowser,Pe.actionBrowser]}},Te={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}})(Xg)),Xg}var $g={},h_;function aj(){return h_||(h_=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return r}});const e=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function r(i){return e.test(i)?i.replace(n,"\\$&"):i}})($g)),$g}var p_;function sj(){return p_||(p_=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0});function e(y,w){for(var C in w)Object.defineProperty(y,C,{enumerable:!0,get:w[C]})}e(t,{getNamedMiddlewareRegex:function(){return b},getNamedRouteRegex:function(){return v},getRouteRegex:function(){return d},parseParameter:function(){return s}});const n=oj(),r=l_(),i=aj(),o=Qw(),a=/\[((?:\[.*\])|.+)\]/;function s(y){const w=y.match(a);return c(w?w[1]:y)}function c(y){const w=y.startsWith("[")&&y.endsWith("]");w&&(y=y.slice(1,-1));const C=y.startsWith("...");return C&&(y=y.slice(3)),{key:y,repeat:C,optional:w}}function u(y){const w=(0,o.removeTrailingSlash)(y).slice(1).split("/"),C={};let k=1;return{parameterizedRoute:w.map(x=>{const S=r.INTERCEPTION_ROUTE_MARKERS.find(T=>x.startsWith(T)),A=x.match(a);if(S&&A){const{key:T,optional:N,repeat:P}=c(A[1]);return C[T]={pos:k++,repeat:P,optional:N},"/"+(0,i.escapeStringRegexp)(S)+"([^/]+?)"}else if(A){const{key:T,repeat:N,optional:P}=c(A[1]);return C[T]={pos:k++,repeat:N,optional:P},N?P?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}else return"/"+(0,i.escapeStringRegexp)(x)}).join(""),groups:C}}function d(y){const{parameterizedRoute:w,groups:C}=u(y);return{re:new RegExp("^"+w+"(?:/)?$"),groups:C}}function h(){let y=0;return()=>{let w="",C=++y;for(;C>0;)w+=String.fromCharCode(97+(C-1)%26),C=Math.floor((C-1)/26);return w}}function p(y){let{interceptionMarker:w,getSafeRouteKey:C,segment:k,routeKeys:x,keyPrefix:S}=y;const{key:A,optional:T,repeat:N}=c(k);let P=A.replace(/\W/g,"");S&&(P=""+S+P);let U=!1;(P.length===0||P.length>30)&&(U=!0),isNaN(parseInt(P.slice(0,1)))||(U=!0),U&&(P=C()),S?x[P]=""+S+A:x[P]=A;const V=w?(0,i.escapeStringRegexp)(w):"";return N?T?"(?:/"+V+"(?<"+P+">.+?))?":"/"+V+"(?<"+P+">.+?)":"/"+V+"(?<"+P+">[^/]+?)"}function m(y,w){const C=(0,o.removeTrailingSlash)(y).slice(1).split("/"),k=h(),x={};return{namedParameterizedRoute:C.map(S=>{const A=r.INTERCEPTION_ROUTE_MARKERS.some(N=>S.startsWith(N)),T=S.match(/\[((?:\[.*\])|.+)\]/);if(A&&T){const[N]=S.split(T[0]);return p({getSafeRouteKey:k,interceptionMarker:N,segment:T[1],routeKeys:x,keyPrefix:w?n.NEXT_INTERCEPTION_MARKER_PREFIX:void 0})}else return T?p({getSafeRouteKey:k,segment:T[1],routeKeys:x,keyPrefix:w?n.NEXT_QUERY_PARAM_PREFIX:void 0}):"/"+(0,i.escapeStringRegexp)(S)}).join(""),routeKeys:x}}function v(y,w){const C=m(y,w);return{...d(y),namedRegex:"^"+C.namedParameterizedRoute+"(?:/)?$",routeKeys:C.routeKeys}}function b(y,w){const{parameterizedRoute:C}=u(y),{catchAll:k=!0}=w;if(C==="/")return{namedRegex:"^/"+(k?".*":"")+"$"};const{namedParameterizedRoute:x}=m(y,!1);let S=k?"(?:(/.*)?)":"";return{namedRegex:"^"+x+S+"$"}}})(Jg)),Jg}var m_;function lj(){return m_||(m_=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return r}});const e=ij(),n=sj();function r(i,o,a){let s="";const c=(0,n.getRouteRegex)(i),u=c.groups,d=(o!==i?(0,e.getRouteMatcher)(c)(o):"")||a;s=i;const h=Object.keys(u);return h.every(p=>{let m=d[p]||"";const{repeat:v,optional:b}=u[p];let y="["+(v?"...":"")+p+"]";return b&&(y=(m?"":"/")+"["+y+"]"),v&&!Array.isArray(m)&&(m=[m]),(b||p in d)&&(s=s.replace(y,v?m.map(w=>encodeURIComponent(w)).join("/"):encodeURIComponent(m))||"/")})||(s=""),{params:h,result:s}}})(Qg)),Qg}var g_;function cj(){return g_||(g_=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"resolveHref",{enumerable:!0,get:function(){return d}});const n=Bw(),r=Gw(),i=qF(),o=Pf(),a=Lf(),s=n_(),c=rj(),u=lj();function d(h,p,m){let v,b=typeof p=="string"?p:(0,r.formatWithValidation)(p);const y=b.match(/^[a-zA-Z]{1,}:\/\//),w=y?b.slice(y[0].length):b;if((w.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+b+"' passed to next/router in page: '"+h.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");const k=(0,o.normalizeRepeatedSlashes)(w);b=(y?y[0]:"")+k}if(!(0,s.isLocalURL)(b))return m?[b]:b;try{v=new URL(b.startsWith("#")?h.asPath:h.pathname,"http://n")}catch{v=new URL("/","http://n")}try{const k=new URL(b,v);k.pathname=(0,a.normalizePathTrailingSlash)(k.pathname);let x="";if((0,c.isDynamicRoute)(k.pathname)&&k.searchParams&&m){const A=(0,n.searchParamsToUrlQuery)(k.searchParams),{result:T,params:N}=(0,u.interpolateAs)(k.pathname,k.pathname,A);T&&(x=(0,r.formatWithValidation)({pathname:T,hash:k.hash,query:(0,i.omit)(A,N)}))}const S=k.origin===v.origin?k.href.slice(k.origin.length):k.href;return m?[S,x||S]:S}catch{return m?[b]:b}}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(If,If.exports)),If.exports}var jf={exports:{}},ev={},tv={},v_;function y_(){return v_||(v_=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return n}});const e=Vg();function n(r,i){if(!r.startsWith("/")||!i)return r;const{pathname:o,query:a,hash:s}=(0,e.parsePath)(r);return""+i+o+a+s}})(tv)),tv}var b_;function uj(){return b_||(b_=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}});const e=y_(),n=$w();function r(i,o,a,s){if(!o||o===a)return i;const c=i.toLowerCase();return!s&&((0,n.pathHasPrefix)(c,"/api")||(0,n.pathHasPrefix)(c,"/"+o.toLowerCase()))?i:(0,e.addPathPrefix)(i,"/"+o)}})(ev)),ev}var E_;function fj(){return E_||(E_=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addLocale",{enumerable:!0,get:function(){return i}});const r=Lf(),i=function(o){for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];return n.__NEXT_I18N_SUPPORT?(0,r.normalizePathTrailingSlash)(uj().addLocale(o,...s)):o};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(jf,jf.exports)),jf.exports}var nv={},S_;function dj(){return S_||(S_=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});const r=Uw()._(R).default.createContext(null);r.displayName="RouterContext"})(nv)),nv}var Df={exports:{}},Vf={exports:{}},w_;function hj(){return w_||(w_=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});function n(o,a){for(var s in a)Object.defineProperty(o,s,{enumerable:!0,get:a[s]})}n(e,{cancelIdleCallback:function(){return i},requestIdleCallback:function(){return r}});const r=typeof self<"u"&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(o){let a=Date.now();return self.setTimeout(function(){o({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-a))}})},1)},i=typeof self<"u"&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(o){return clearTimeout(o)};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(Vf,Vf.exports)),Vf.exports}var __;function pj(){return __||(__=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return u}});const n=R,r=hj(),i=typeof IntersectionObserver=="function",o=new Map,a=[];function s(d){const h={root:d.root||null,margin:d.rootMargin||""},p=a.find(y=>y.root===h.root&&y.margin===h.margin);let m;if(p&&(m=o.get(p),m))return m;const v=new Map,b=new IntersectionObserver(y=>{y.forEach(w=>{const C=v.get(w.target),k=w.isIntersecting||w.intersectionRatio>0;C&&k&&C(k)})},d);return m={id:h,observer:b,elements:v},a.push(h),o.set(h,m),m}function c(d,h,p){const{id:m,observer:v,elements:b}=s(p);return b.set(d,h),v.observe(d),function(){if(b.delete(d),v.unobserve(d),b.size===0){v.disconnect(),o.delete(m);const w=a.findIndex(C=>C.root===m.root&&C.margin===m.margin);w>-1&&a.splice(w,1)}}}function u(d){let{rootRef:h,rootMargin:p,disabled:m}=d;const v=m||!i,[b,y]=(0,n.useState)(!1),w=(0,n.useRef)(null),C=(0,n.useCallback)(x=>{w.current=x},[]);(0,n.useEffect)(()=>{if(i){if(v||b)return;const x=w.current;if(x&&x.tagName)return c(x,A=>A&&y(A),{root:h==null?void 0:h.current,rootMargin:p})}else if(!b){const x=(0,r.requestIdleCallback)(()=>y(!0));return()=>(0,r.cancelIdleCallback)(x)}},[v,p,h,b,w.current]);const k=(0,n.useCallback)(()=>{y(!1)},[]);return[C,b,k]}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(Df,Df.exports)),Df.exports}var Uf={exports:{}},zf={exports:{}},rv={},C_;function mj(){return C_||(C_=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return e}});function e(n,r){let i;const o=n.split("/");return(r||[]).some(a=>o[1]&&o[1].toLowerCase()===a.toLowerCase()?(i=a,o.splice(1,1),n=o.join("/")||"/",!0):!1),{pathname:n,detectedLocale:i}}})(rv)),rv}var x_;function gj(){return x_||(x_=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"normalizeLocalePath",{enumerable:!0,get:function(){return r}});const r=(i,o)=>n.__NEXT_I18N_SUPPORT?mj().normalizeLocalePath(i,o):{pathname:i,detectedLocale:void 0};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(zf,zf.exports)),zf.exports}var Bf={exports:{}},iv={},A_;function vj(){return A_||(A_=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return e}});function e(n,r,i){if(n){i&&(i=i.toLowerCase());for(const s of n){var o,a;const c=(o=s.domain)==null?void 0:o.split(":",1)[0].toLowerCase();if(r===c||i===s.defaultLocale.toLowerCase()||(a=s.locales)!=null&&a.some(u=>u.toLowerCase()===i))return s}}}})(iv)),iv}var k_;function yj(){return k_||(k_=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"detectDomainLocale",{enumerable:!0,get:function(){return r}});const r=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];if(n.__NEXT_I18N_SUPPORT)return vj().detectDomainLocale(...o)};(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(Bf,Bf.exports)),Bf.exports}var T_;function bj(){return T_||(T_=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return o}});const r=Lf(),i=n.__NEXT_ROUTER_BASEPATH||"";function o(a,s,c,u){if(n.__NEXT_I18N_SUPPORT){const d=gj().normalizeLocalePath,h=yj().detectDomainLocale,p=s||d(a,c).detectedLocale,m=h(u,void 0,p);if(m){const v="http"+(m.http?"":"s")+"://",b=p===m.defaultLocale?"":"/"+p;return""+v+m.domain+(0,r.normalizePathTrailingSlash)(""+i+b+a)}return!1}else return!1}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(Uf,Uf.exports)),Uf.exports}var Hf={exports:{}},O_;function Ej(){return O_||(O_=1,(function(t,e){var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"addBasePath",{enumerable:!0,get:function(){return a}});const r=y_(),i=Lf(),o=n.__NEXT_ROUTER_BASEPATH||"";function a(s,c){return(0,i.normalizePathTrailingSlash)(n.__NEXT_MANUAL_CLIENT_BASE_PATH&&!c?s:(0,r.addPathPrefix)(s,o))}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(Hf,Hf.exports)),Hf.exports}var Wf={exports:{}},R_;function Sj(){return R_||(R_=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useMergedRef",{enumerable:!0,get:function(){return r}});const n=R;function r(o,a){const s=(0,n.useRef)(()=>{}),c=(0,n.useRef)(()=>{});return(0,n.useMemo)(()=>!o||!a?o||a:u=>{u===null?(s.current(),c.current()):(s.current=i(o,u),c.current=i(a,u))},[o,a])}function i(o,a){if(typeof o=="function"){const s=o(a);return typeof s=="function"?s:()=>o(null)}else return o.current=a,()=>{o.current=null}}(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(Wf,Wf.exports)),Wf.exports}var N_;function wj(){return N_||(N_=1,(function(t,e){"use client";var n={};Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return A}});const r=Uw(),i=E,o=r._(R),a=cj(),s=n_(),c=Gw(),u=Pf(),d=fj(),h=dj(),p=pj(),m=bj(),v=Ej(),b=Sj(),y=new Set;function w(T,N,P,U){if(!(typeof window>"u")&&(0,s.isLocalURL)(N)){if(!U.bypassPrefetchedCheck){const V=typeof U.locale<"u"?U.locale:"locale"in T?T.locale:void 0,H=N+"%"+P+"%"+V;if(y.has(H))return;y.add(H)}T.prefetch(N,P,U).catch(V=>{throw V})}}function C(T){const P=T.currentTarget.getAttribute("target");return P&&P!=="_self"||T.metaKey||T.ctrlKey||T.shiftKey||T.altKey||T.nativeEvent&&T.nativeEvent.which===2}function k(T,N,P,U,V,H,Q,j){const{nodeName:F}=T.currentTarget;if(F.toUpperCase()==="A"&&(C(T)||!(0,s.isLocalURL)(P)))return;T.preventDefault(),(()=>{const z=Q??!0;"beforePopState"in N?N[V?"replace":"push"](P,U,{shallow:H,locale:j,scroll:z}):N[V?"replace":"push"](U||P,{scroll:z})})()}function x(T){return typeof T=="string"?T:(0,c.formatUrl)(T)}const A=o.default.forwardRef(function(N,P){let U;const{href:V,as:H,children:Q,prefetch:j=null,passHref:F,replace:D,shallow:Y,scroll:z,locale:q,onClick:W,onMouseEnter:G,onTouchStart:te,legacyBehavior:ne=!1,...ce}=N;U=Q,ne&&(typeof U=="string"||typeof U=="number")&&(U=(0,i.jsx)("a",{children:U}));const ie=o.default.useContext(h.RouterContext),de=j!==!1;{let Te=function(we){return new Error("Failed prop type: The prop `"+we.key+"` expects a "+we.expected+" in `<Link>`, but got `"+we.actual+"` instead."+(typeof window<"u"?`
|
|
514
|
+
Open your browser's console to view the Component stack trace.`:""))};Object.keys({href:!0}).forEach(we=>{if(we==="href"&&(N[we]==null||typeof N[we]!="string"&&typeof N[we]!="object"))throw Te({key:we,expected:"`string` or `object`",actual:N[we]===null?"null":typeof N[we]})}),Object.keys({as:!0,replace:!0,scroll:!0,shallow:!0,passHref:!0,prefetch:!0,locale:!0,onClick:!0,onMouseEnter:!0,onTouchStart:!0,legacyBehavior:!0}).forEach(we=>{const et=typeof N[we];if(we==="as"){if(N[we]&&et!=="string"&&et!=="object")throw Te({key:we,expected:"`string` or `object`",actual:et})}else if(we==="locale"){if(N[we]&&et!=="string")throw Te({key:we,expected:"`string`",actual:et})}else if(we==="onClick"||we==="onMouseEnter"||we==="onTouchStart"){if(N[we]&&et!=="function")throw Te({key:we,expected:"`function`",actual:et})}else if((we==="replace"||we==="scroll"||we==="shallow"||we==="passHref"||we==="prefetch"||we==="legacyBehavior")&&N[we]!=null&&et!=="boolean")throw Te({key:we,expected:"`boolean`",actual:et})})}const{href:pe,as:J}=o.default.useMemo(()=>{if(!ie){const Le=x(V);return{href:Le,as:H?x(H):Le}}const[Te,nt]=(0,a.resolveHref)(ie,V,!0);return{href:Te,as:H?(0,a.resolveHref)(ie,H):nt||Te}},[ie,V,H]),re=o.default.useRef(pe),he=o.default.useRef(J);let Ee;ne&&(Ee=o.default.Children.only(U));const X=ne?Ee&&typeof Ee=="object"&&Ee.ref:P,[Re,ye,Fe]=(0,p.useIntersection)({rootMargin:"200px"}),st=o.default.useCallback(Te=>{(he.current!==J||re.current!==pe)&&(Fe(),he.current=J,re.current=pe),Re(Te)},[J,pe,Fe,Re]),Pe=(0,b.useMergedRef)(st,X);o.default.useEffect(()=>{},[J,pe,ye,q,de,ie==null?void 0:ie.locale,ie]);const lt={ref:Pe,onClick(Te){if(!Te)throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');!ne&&typeof W=="function"&&W(Te),ne&&Ee.props&&typeof Ee.props.onClick=="function"&&Ee.props.onClick(Te),ie&&(Te.defaultPrevented||k(Te,ie,pe,J,D,Y,z,q))},onMouseEnter(Te){!ne&&typeof G=="function"&&G(Te),ne&&Ee.props&&typeof Ee.props.onMouseEnter=="function"&&Ee.props.onMouseEnter(Te),ie&&w(ie,pe,J,{locale:q,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:n.__NEXT_LINK_NO_TOUCH_START?void 0:function(nt){!ne&&typeof te=="function"&&te(nt),ne&&Ee.props&&typeof Ee.props.onTouchStart=="function"&&Ee.props.onTouchStart(nt),ie&&w(ie,pe,J,{locale:q,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(J))lt.href=J;else if(!ne||F||Ee.type==="a"&&!("href"in Ee.props)){const Te=typeof q<"u"?q:ie==null?void 0:ie.locale,nt=(ie==null?void 0:ie.isLocaleDomain)&&(0,m.getDomainLocale)(J,Te,ie==null?void 0:ie.locales,ie==null?void 0:ie.domainLocales);lt.href=nt||(0,v.addBasePath)((0,d.addLocale)(J,Te,ie==null?void 0:ie.defaultLocale))}return ne?o.default.cloneElement(Ee,lt):(0,i.jsx)("a",{...ce,...lt,children:U})});(typeof e.default=="function"||typeof e.default=="object"&&e.default!==null)&&typeof e.default.__esModule>"u"&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)})(Nf,Nf.exports)),Nf.exports}var ov,I_;function _j(){return I_||(I_=1,ov=wj()),ov}var Cj=_j();const P_=sa(Cj),M_=({from:t="knowledge-base",isAuthenticated:e,onSubmit:n,reqId:r,setFeedbackForTheArticle:i=()=>{},userData:o})=>{var S,A,T;const[a,s]=R.useState([]),[c,u]=R.useState(!1),[d,h]=R.useState({}),p=t==="message",m=p?{contact_person_name:o==null?void 0:o.contact_person_name,contact_person_email:o==null?void 0:o.contact_person_email,title:d==null?void 0:d.title,message:d==null?void 0:d.message}:d,[v,{loading:b}]=wo(Iw),y=async()=>{var N,P,U;try{if(u(!0),Ie.size(a)&&Ie.size(a)>5){Rn("error","You can upload maximum 5 files","top-right");return}const V=[],H=[],{message:Q,...j}=m;Ie.forEach(a,D=>{const Y=`${dg()}.${Ie.last(Ie.split(D.name,"."))}`;V.push({name:Y,title:D.name,size:D.size,type:"conversation_activity_attachment"}),H.push({file:D,name:Y})});const{data:F}=await v({variables:{inputData:{...j,...r,type:"ticket",conversation_activities:[{message:Q,is_customer_reply:!0,conversation_activity_files:V}]}}});if((N=F==null?void 0:F.createAConversationForPortal)!=null&&N.id){let D=[];if(Ie.size(H)){const Y=H.map(async q=>{var W;try{const G=await Cg({name:q.name,type:"conversation_activity_attachment",sub_type:(W=F==null?void 0:F.createAConversationForPortal)==null?void 0:W.id});if(G!=null&&G.error)return Rn("error",`Failed to process ${q.name}`,"top-right"),null;const{key:te,url:ne,file:ce,success:ie}=await xg({key:G.key,url:G.url},q.file);return ie?{key:te,url:ne,file:ce}:null}catch(G){return console.error(`Error processing file ${q.name}:`,G),Rn("error",`Failed to upload ${q.name}`,"top-right"),null}});D=(await Promise.all(Y)).filter(Boolean)}i(Y=>({...Y,isNotHelpful:!0,notHelpfulModal:!1})),n&&n({conversation_id:(P=F==null?void 0:F.createAConversationForPortal)==null?void 0:P.id,title:m.title,message:m.message,conversation_activity_files:D,ticketId:(U=F==null?void 0:F.createAConversationForPortal)==null?void 0:U.serial})}}catch(V){Rn("error","Something went wrong","top-right"),console.error("error",V)}finally{u(!1)}},w=(N,P)=>{h(U=>({...U,[N]:P}))},C=lm(d.contact_person_email),k=!e&&(!((S=d.contact_person_name)!=null&&S.trim())||!C||!d.contact_person_email)||!((A=d.title)!=null&&A.trim())||!((T=d.message)!=null&&T.trim()),x=()=>b||c?!0:k;return E.jsxs("div",{className:`ed-px-5 ed-pb-5 ${p&&"ed-bg-white-light ed-rounded-md ed-py-2 ed-max-w-full md:ed-max-w-[85%] ed-ml-auto"}`,children:[!p&&E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"ed-flex ed-items-start ed-justify-between ed-pt-5 ed-sticky ed-top-0 ed-bg-white",children:[E.jsx("h5",{className:"ed-text-18 ed-font-semibold ed-text-border-dark ed-mb-5",children:"Get in touch"}),E.jsx(Pi,{size:24,className:"ed-text-border-dark ed-cursor-pointer",onClick:()=>i(N=>({...N,notHelpfulModal:!1}))})]}),E.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-border-regular ed-mt-5 ed-mb-4 ed-inline-block ed-w-11/12",children:"Tell us how can we make our product more useful for you."})]}),E.jsxs("div",{className:"ed-space-y-4 ed-mb-6",children:[!e&&E.jsxs(E.Fragment,{children:[E.jsx(Cs,{isRequired:!0,label:"Name",placeholder:"Enter your name",value:d.contact_person_name,onChange:N=>w("contact_person_name",N.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"contact_person_name"}),E.jsx(Cs,{isRequired:!0,type:"email",label:"Email",placeholder:"Enter your email",value:d.contact_person_email,onChange:N=>w("contact_person_email",N.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"contact_person_email"}),(d==null?void 0:d.contact_person_email)&&!C&&E.jsx("span",{className:"ed-text-red ed-font-12",children:"Please enter a valid email address!"})]}),E.jsx(Cs,{isRequired:!0,label:"Subject",placeholder:"Tell us what this feedback is about",value:d.title,onChange:N=>w("title",N.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"title"}),E.jsx(Tw,{label:`${e?"Summary":"Description"}`,isRequired:!0,placeholder:"Add more details for us to resolve the issue",value:d.message,onChange:N=>w("message",N.target.value),stylings:{placeholderStyle:"placeholder:text-14 placeholder:font-medium placeholder:text-border"},name:"message"}),E.jsx(Rw,{subtitle:"Supported file types: jpg, png, pdf (max 5MB)",selectedFiles:a,setSelectedFiles:s})]}),E.jsx("div",{className:"ed-flex ed-justify-end",children:E.jsx(_s,{title:"Submit",loaderText:"Submitting",fullWidthBtn:!0,disabled:x(),loader:b||c,callBack:y})})]})};var av={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_AN_ARTICLE"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"EntityIdOrSlugInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAnArticle"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"serial"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"author"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatar_file"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"category"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"section"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"published_at"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:378}};av.loc.source={body:`query GET_AN_ARTICLE($queryData: EntityIdOrSlugInputType!) {
|
|
515
|
+
getAnArticle(queryData: $queryData) {
|
|
516
|
+
id
|
|
517
|
+
serial
|
|
518
|
+
slug
|
|
519
|
+
author {
|
|
520
|
+
id
|
|
521
|
+
first_name
|
|
522
|
+
email
|
|
523
|
+
last_name
|
|
524
|
+
avatar_file {
|
|
525
|
+
id
|
|
526
|
+
key
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
title
|
|
530
|
+
content
|
|
531
|
+
category {
|
|
532
|
+
id
|
|
533
|
+
name
|
|
534
|
+
}
|
|
535
|
+
section {
|
|
536
|
+
id
|
|
537
|
+
name
|
|
538
|
+
}
|
|
539
|
+
published_at
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Gf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){Gf(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){Gf(r,e)}),t.definitions&&t.definitions.forEach(function(r){Gf(r,e)})}var sv={};(function(){av.definitions.forEach(function(e){if(e.name){var n=new Set;Gf(e,n),sv[e.name.value]=n}})})();function L_(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function xj(t,e){var n={kind:t.kind,definitions:[L_(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=sv[e]||new Set,i=new Set,o=new Set;for(r.forEach(function(s){o.add(s)});o.size>0;){var a=o;o=new Set,a.forEach(function(s){if(!i.has(s)){i.add(s);var c=sv[s]||new Set;c.forEach(function(u){o.add(u)})}})}return i.forEach(function(s){var c=L_(t,s);c&&n.definitions.push(c)}),n}const Aj=xj(av,"GET_AN_ARTICLE");var lv={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CREATE_AN_ARTICLE_ANALYTIC"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ArticleAnalyticCreateInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createAnArticleAnalytic"},arguments:[{kind:"Argument",name:{kind:"Name",value:"inputData"},value:{kind:"Variable",name:{kind:"Name",value:"inputData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:147}};lv.loc.source={body:`mutation CREATE_AN_ARTICLE_ANALYTIC($inputData: ArticleAnalyticCreateInputType!) {
|
|
543
|
+
createAnArticleAnalytic(inputData: $inputData) {
|
|
544
|
+
id
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Yf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){Yf(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){Yf(r,e)}),t.definitions&&t.definitions.forEach(function(r){Yf(r,e)})}var cv={};(function(){lv.definitions.forEach(function(e){if(e.name){var n=new Set;Yf(e,n),cv[e.name.value]=n}})})();function F_(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function kj(t,e){var n={kind:t.kind,definitions:[F_(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=cv[e]||new Set,i=new Set,o=new Set;for(r.forEach(function(s){o.add(s)});o.size>0;){var a=o;o=new Set,a.forEach(function(s){if(!i.has(s)){i.add(s);var c=cv[s]||new Set;c.forEach(function(u){o.add(u)})}})}return i.forEach(function(s){var c=F_(t,s);c&&n.definitions.push(c)}),n}const Tj=kj(lv,"CREATE_AN_ARTICLE_ANALYTIC"),Oj=({articleId:t,setArticleId:e,isAuthenticated:n,orgBrandSetting:r})=>{var x,S,A,T,N,P,U,V,H,Q;const{custom_domain:i,sub_domain:o}=(r==null?void 0:r.brand)||{},a=Fu("cdnDomain").split("-")[1],s=i||`${o}.portal.${a&&a!=="prod"?`${a}.easydesk`:"easydesk"}.app`,{t:c}=ws(),[u,d]=R.useState({}),[h,p]=R.useState(!0),[m,v]=R.useState({isHelpful:!1,isNotHelpful:!1,notHelpfulModal:!1}),[b]=Fl(Aj,{errorPolicy:"all",fetchPolicy:"no-cache"}),y=async()=>{var j;try{const{data:F}=await b({variables:{queryData:{entity_id:t}}});if(F!=null&&F.getAnArticle){const D=await TO(((j=F.getAnArticle)==null?void 0:j.content)||"");d({...F.getAnArticle,content:D}),p(!1)}}catch(F){console.error(F),p(!1)}},[w,{loading:C}]=wo(Tj),k=async j=>{try{await w({variables:{inputData:{article_id:t,action_type:j}}}),j==="like"&&v({isHelpful:!0})}catch(F){console.error(F)}};return R.useEffect(()=>{y(),k("view")},[t]),h?E.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:E.jsx(ma,{})}):E.jsxs("div",{className:"ed-bg-white ed-absolute ed-inset-2 ed-rounded-[10px] ed-overflow-y-auto ed-no-scrollbar",children:[!m.notHelpfulModal&&E.jsxs(E.Fragment,{children:[E.jsx("div",{className:"ed-flex ed-items-center ed-justify-end",children:E.jsx("button",{type:"button",onClick:()=>e(null),className:"ed-p-5 ed-sticky ed-top-0 ed-bg-white ed-z-10",children:E.jsx(Pi,{className:"ed-text-border-regular ed-size-5"})})}),E.jsxs("div",{className:"ed-px-5",children:[E.jsx("div",{className:"ed-article-group ed-mb-4 ed-cursor-pointer ed-duration-300 ed-ease-in-out ed-transition-all",children:E.jsxs(P_,{href:`https://${s}/solutions/articles/${u==null?void 0:u.slug}`,target:"_blank",rel:"noreferrer",className:"ed-flex ed-items-center ed-gap-2",children:[E.jsx("h3",{className:"ed-text-18 ed-font-semibold ed-text-border-dark ed-line-clamp-2 ed-article-title",children:sc((u==null?void 0:u.title)||"")}),E.jsx("span",{className:"ed-shrink-0",children:E.jsx(L1,{className:"ed-size-5 ed-text-brand-link ed-external-icon"})})]})}),E.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-mb-4",children:[E.jsx(Rr,{alt:`${(S=(x=u==null?void 0:u.author)==null?void 0:x.avatar_file)==null?void 0:S.first_name}'s profile`,defaultUserNameTextSize:"text-10",className:"ed-size-9 ed-object-cover ed-rounded-full",defaultImageClasses:"w-9 h-9",path:(T=(A=u==null?void 0:u.author)==null?void 0:A.avatar_file)==null?void 0:T.key,defaultImageName:Ni((N=u==null?void 0:u.author)==null?void 0:N.first_name,(P=u==null?void 0:u.author)==null?void 0:P.last_name,(U=u==null?void 0:u.author)==null?void 0:U.email)}),E.jsxs("div",{children:[E.jsxs("h6",{className:"ed-text-14 ed-font-semibold ed-text-brand-link",children:[" ",Du((V=u==null?void 0:u.author)==null?void 0:V.first_name,(H=u==null?void 0:u.author)==null?void 0:H.last_name,(Q=u==null?void 0:u.author)==null?void 0:Q.email)]}),E.jsx("p",{className:"ed-text-12 ed-font-medium ed-text-border-regular",children:to(u==null?void 0:u.published_at).format("DD MMMM, YYYY")})]})]}),E.jsx("div",{className:"tiptap ProseMirror",children:u!=null&&u.content?sc(u.content):null}),E.jsxs("div",{className:"ed-px-5 ed-py-6 ed-mt-4 ed-rounded-[10px] ed-bg-gray ed-mb-5",children:[!m.isHelpful&&!(m!=null&&m.isNotHelpful)&&E.jsxs("div",{children:[E.jsx("h6",{className:"ed-text-14 ed-font-medium ed-text-border-regular ed-mb-4 ed-text-center",children:"Was this information helpful?"}),E.jsxs("div",{className:"ed-grid md:ed-grid-cols-2 ed-gap-2",children:[E.jsx(_s,{title:"Helpful",Icon:Q1,btnType:"btn_bordered",fullWidthBtn:!0,loader:C,callBack:()=>k("like")}),E.jsx(_s,{title:"Not helpful",Icon:K1,btnType:"btn_bordered",fullWidthBtn:!0,customPadding:"ed-px-5 ed-h-[41px]",callBack:()=>v({...m,notHelpfulModal:!0})})]})]}),(m.isHelpful||(m==null?void 0:m.isNotHelpful))&&E.jsxs("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:[E.jsx(FF,{width:"105",height:"80"}),E.jsx("p",{className:"ed-mt-2.5 ed-text-14 ed-font-medium ed-text-border-regular ed-text-center",children:c("widget.label.thank_you_for_your_feedback")})]})]})]})]}),m.notHelpfulModal&&E.jsx(M_,{setFeedbackForTheArticle:v,reqId:{article_id:t},isAuthenticated:n})]})};var uv={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_SECTIONS_WITH_ARTICLES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SectionQueryInput"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getSectionsWithArticles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parent_category"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"total_articles"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"section_articles"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:388}};uv.loc.source={body:`query GET_SECTIONS_WITH_ARTICLES($queryData: SectionQueryInput!, $optionData: OptionDataType) {
|
|
548
|
+
getSectionsWithArticles(queryData: $queryData, optionData: $optionData) {
|
|
549
|
+
data {
|
|
550
|
+
id
|
|
551
|
+
description
|
|
552
|
+
name
|
|
553
|
+
parent_category {
|
|
554
|
+
id
|
|
555
|
+
name
|
|
556
|
+
description
|
|
557
|
+
}
|
|
558
|
+
total_articles
|
|
559
|
+
section_articles {
|
|
560
|
+
id
|
|
561
|
+
title
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Kf(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){Kf(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){Kf(r,e)}),t.definitions&&t.definitions.forEach(function(r){Kf(r,e)})}var fv={};(function(){uv.definitions.forEach(function(e){if(e.name){var n=new Set;Kf(e,n),fv[e.name.value]=n}})})();function j_(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function Rj(t,e){var n={kind:t.kind,definitions:[j_(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=fv[e]||new Set,i=new Set,o=new Set;for(r.forEach(function(s){o.add(s)});o.size>0;){var a=o;o=new Set,a.forEach(function(s){if(!i.has(s)){i.add(s);var c=fv[s]||new Set;c.forEach(function(u){o.add(u)})}})}return i.forEach(function(s){var c=j_(t,s);c&&n.definitions.push(c)}),n}const Nj=Rj(uv,"GET_SECTIONS_WITH_ARTICLES"),Ij=({setArticleId:t,selectedCategory:e})=>{const[n,r]=R.useState(null),[i,o]=R.useState([]),a=d=>{r(n===d?null:d)},[s,{loading:c}]=Fl(Nj,{errorPolicy:"all",fetchPolicy:"no-cache"}),u=async()=>{const{data:d,error:h}=await s({variables:{queryData:{category_id:e},optionData:{order:[["serial","asc"]]}}});d!=null&&d.getSectionsWithArticles&&o(d.getSectionsWithArticles.data),h&&console.error(h)};return R.useEffect(()=>{e&&u()},[e]),c?E.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:E.jsx(ma,{})}):E.jsx("div",{children:i.map(d=>{var h;return E.jsx("div",{className:`ed-border-b ed-border-disabled ${n===d.id?"pb-2":""}`,children:E.jsxs("div",{className:"ed-py-3 ed-px-4",children:[E.jsxs("div",{role:"button",tabIndex:0,onClick:()=>a(d.id),className:`ed-flex ed-items-center ed-justify-between ed-gap-2 ed-p-2 ed-cursor-pointer ed-transition-all hover:ed-bg-white-light ed-duration-300 ed-ease-in-out ${n===d.id?"ed-bg-white-light":""}`,children:[E.jsx("h6",{className:"ed-text-14 ed-font-semibold ed-text-border-dark",children:d.name}),E.jsx("div",{className:"ed-transform ed-transition-transform ed-duration-300 ed-ease-in-out",children:n===d.id?E.jsx(hf,{className:"ed-text-border-regular ed-size-5"}):E.jsx(ps,{className:"ed-text-border-regular ed-size-5"})})]}),E.jsx("div",{className:`ed-overflow-hidden ed-transition-all ed-ease-in-out ${n===d.id?"ed-max-h-96 ed-opacity-100 ed-mt-3":"ed-max-h-0 ed-opacity-0"}`,children:(h=d==null?void 0:d.section_articles)==null?void 0:h.map(p=>E.jsxs("button",{type:"button",onClick:()=>t(p==null?void 0:p.id),className:"ed-article-button ed-flex ed-items-center ed-gap-2 ed-flex-1 ed-w-full ed-px-6 ed-py-2 ed-hover:bg-white-light ed-text-left",children:[E.jsx("p",{className:"ed-text-border-dark ed-text-14 ed-font-medium ed-article-title ed-flex-1 ed-ease-in-out ed-transition-all",children:sc((p==null?void 0:p.title)||"")}),E.jsx("div",{className:"ed-chevron-wrapper ed-size-4 ed--translate-x-2 ed-opacity-0 ed-transition-all",children:E.jsx(eo,{className:"ed-text-border ed-size-4"})})]},p.id))})]})},d.id)})})},Pj=({loading:t,selectedCategory:e,setArticleId:n,articleId:r,isAuthenticated:i,setSelectedCategory:o,orgBrandSetting:a})=>E.jsx("div",{children:t?E.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:E.jsx(ma,{})}):e&&r||!e&&r?E.jsx(Oj,{articleId:r,setArticleId:n,isAuthenticated:i,orgBrandSetting:a}):e&&!r?E.jsx(Ij,{setArticleId:n,selectedCategory:e}):E.jsx(GF,{setSelectedCategory:o})}),Mj=({setIsCreateNewTicketClicked:t})=>{const{t:e}=ws();return E.jsxs("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center ed-min-h-min ed-h-full",children:[E.jsx(LF,{}),E.jsxs("p",{className:"ed-text-14 ed-text-border-regular ed-text-center",children:[e("widget.label.no_article_found"),E.jsx("button",{type:"button",onClick:()=>t(!0),className:"ed-text-14 ed-font-semibold ed-text-brand-link ed-ml-1",children:e("widget.label.click_here")})]})]})};var dv={exports:{}};/*!
|
|
567
|
+
Copyright (c) 2018 Jed Watson.
|
|
568
|
+
Licensed under the MIT License (MIT), see
|
|
569
|
+
http://jedwatson.github.io/classnames
|
|
570
|
+
*/var D_;function Lj(){return D_||(D_=1,(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)e.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(dv)),dv.exports}var Fj=Lj();const It=sa(Fj);function Nr(){return Nr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Nr.apply(null,arguments)}function Ze(t){"@babel/helpers - typeof";return Ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ze(t)}var jj=Symbol.for("react.element"),Dj=Symbol.for("react.transitional.element"),Vj=Symbol.for("react.fragment");function V_(t){return t&&Ze(t)==="object"&&(t.$$typeof===jj||t.$$typeof===Dj)&&t.type===Vj}function Zf(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return R.Children.forEach(t,function(r){r==null&&!e.keepEmpty||(Array.isArray(r)?n=n.concat(Zf(r)):V_(r)&&r.props?n=n.concat(Zf(r.props.children,e)):n.push(r))}),n}var hv={},pv=[],Uj=function(e){pv.push(e)};function As(t,e){if(!t&&console!==void 0){var n=pv.reduce(function(r,i){return i(r??"","warning")},e);n&&console.error("Warning: ".concat(n))}}function zj(t,e){if(!t&&console!==void 0){var n=pv.reduce(function(r,i){return i(r??"","note")},e);n&&console.warn("Note: ".concat(n))}}function Bj(){hv={}}function U_(t,e,n){!e&&!hv[n]&&(t(!1,n),hv[n]=!0)}function $t(t,e){U_(As,t,e)}function Hj(t,e){U_(zj,t,e)}$t.preMessage=Uj,$t.resetWarned=Bj,$t.noteOnce=Hj;function Wj(t,e){if(Ze(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ze(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function z_(t){var e=Wj(t,"string");return Ze(e)=="symbol"?e:e+""}function oe(t,e,n){return(e=z_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function B_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ue(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?B_(Object(n),!0).forEach(function(r){oe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B_(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function dc(t){return t instanceof HTMLElement||t instanceof SVGElement}function Gj(t){return t&&Ze(t)==="object"&&dc(t.nativeElement)?t.nativeElement:dc(t)?t:null}function Qf(t){var e=Gj(t);if(e)return e;if(t instanceof R.Component){var n;return(n=Nh.findDOMNode)===null||n===void 0?void 0:n.call(Nh,t)}return null}var mv={exports:{}},xt={},H_;function Yj(){if(H_)return xt;H_=1;/**
|
|
571
|
+
* @license React
|
|
572
|
+
* react-is.development.js
|
|
573
|
+
*
|
|
574
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
575
|
+
*
|
|
576
|
+
* This source code is licensed under the MIT license found in the
|
|
577
|
+
* LICENSE file in the root directory of this source tree.
|
|
578
|
+
*/return(function(){var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=!1,b=!1,y=!1,w=!1,C=!1,k;k=Symbol.for("react.module.reference");function x(ye){return!!(typeof ye=="string"||typeof ye=="function"||ye===n||ye===i||C||ye===r||ye===u||ye===d||w||ye===m||v||b||y||typeof ye=="object"&&ye!==null&&(ye.$$typeof===p||ye.$$typeof===h||ye.$$typeof===o||ye.$$typeof===a||ye.$$typeof===c||ye.$$typeof===k||ye.getModuleId!==void 0))}function S(ye){if(typeof ye=="object"&&ye!==null){var Fe=ye.$$typeof;switch(Fe){case t:var st=ye.type;switch(st){case n:case i:case r:case u:case d:return st;default:var Pe=st&&st.$$typeof;switch(Pe){case s:case a:case c:case p:case h:case o:return Pe;default:return Fe}}case e:return Fe}}}var A=a,T=o,N=t,P=c,U=n,V=p,H=h,Q=e,j=i,F=r,D=u,Y=d,z=!1,q=!1;function W(ye){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(ye){return q||(q=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(ye){return S(ye)===a}function ne(ye){return S(ye)===o}function ce(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===t}function ie(ye){return S(ye)===c}function de(ye){return S(ye)===n}function pe(ye){return S(ye)===p}function J(ye){return S(ye)===h}function re(ye){return S(ye)===e}function he(ye){return S(ye)===i}function Ee(ye){return S(ye)===r}function X(ye){return S(ye)===u}function Re(ye){return S(ye)===d}xt.ContextConsumer=A,xt.ContextProvider=T,xt.Element=N,xt.ForwardRef=P,xt.Fragment=U,xt.Lazy=V,xt.Memo=H,xt.Portal=Q,xt.Profiler=j,xt.StrictMode=F,xt.Suspense=D,xt.SuspenseList=Y,xt.isAsyncMode=W,xt.isConcurrentMode=G,xt.isContextConsumer=te,xt.isContextProvider=ne,xt.isElement=ce,xt.isForwardRef=ie,xt.isFragment=de,xt.isLazy=pe,xt.isMemo=J,xt.isPortal=re,xt.isProfiler=he,xt.isStrictMode=Ee,xt.isSuspense=X,xt.isSuspenseList=Re,xt.isValidElementType=x,xt.typeOf=S})(),xt}var W_;function Kj(){return W_||(W_=1,mv.exports=Yj()),mv.exports}var gv=Kj();function vv(t,e,n){var r=L.useRef({});return(!("value"in r.current)||n(r.current.condition,e))&&(r.current.value=t(),r.current.condition=e),r.current.value}var Zj=Number(R.version.split(".")[0]),yv=function(e,n){typeof e=="function"?e(n):Ze(e)==="object"&&e&&"current"in e&&(e.current=n)},G_=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n.filter(Boolean);return i.length<=1?i[0]:function(o){n.forEach(function(a){yv(a,o)})}},bv=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return vv(function(){return G_.apply(void 0,n)},n,function(i,o){return i.length!==o.length||i.every(function(a,s){return a!==o[s]})})},qf=function(e){var n,r;if(!e)return!1;if(Y_(e)&&Zj>=19)return!0;var i=gv.isMemo(e)?e.type.type:e.type;return!(typeof i=="function"&&!((n=i.prototype)!==null&&n!==void 0&&n.render)&&i.$$typeof!==gv.ForwardRef||typeof e=="function"&&!((r=e.prototype)!==null&&r!==void 0&&r.render)&&e.$$typeof!==gv.ForwardRef)};function Y_(t){return R.isValidElement(t)&&!V_(t)}var Ev=function(e){if(e&&Y_(e)){var n=e;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},Sv=L.createContext(null);function Qj(t){var e=t.children,n=t.onBatchResize,r=L.useRef(0),i=L.useRef([]),o=L.useContext(Sv),a=L.useCallback(function(s,c,u){r.current+=1;var d=r.current;i.current.push({size:s,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(i.current),i.current=[])}),o==null||o(s,c,u)},[n,o]);return L.createElement(Sv.Provider,{value:a},e)}var K_=(function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}return(function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var r=t(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},e.prototype.set=function(n,r){var i=t(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},e.prototype.delete=function(n){var r=this.__entries__,i=t(r,n);~i&&r.splice(i,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];n.call(r,a[1],a[0])}},e})()})(),wv=typeof window<"u"&&typeof document<"u"&&window.document===document,Jf=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),qj=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Jf):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}})(),Jj=2;function Xj(t,e){var n=!1,r=!1,i=0;function o(){n&&(n=!1,t()),r&&s()}function a(){qj(o)}function s(){var c=Date.now();if(n){if(c-i<Jj)return;r=!0}else n=!0,r=!1,setTimeout(a,e);i=c}return s}var $j=20,eD=["top","right","bottom","left","width","height","size","weight"],tD=typeof MutationObserver<"u",nD=(function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Xj(this.refresh.bind(this),$j)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var n=this.observers_,r=n.indexOf(e);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!wv||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),tD?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!wv||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,i=eD.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t})(),Z_=(function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t}),ks=(function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||Jf}),Q_=$f(0,0,0,0);function Xf(t){return parseFloat(t)||0}function q_(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,i){var o=t["border-"+i+"-width"];return r+Xf(o)},0)}function rD(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var o=i[r],a=t["padding-"+o];n[o]=Xf(a)}return n}function iD(t){var e=t.getBBox();return $f(0,0,e.width,e.height)}function oD(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return Q_;var r=ks(t).getComputedStyle(t),i=rD(r),o=i.left+i.right,a=i.top+i.bottom,s=Xf(r.width),c=Xf(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+o)!==e&&(s-=q_(r,"left","right")+o),Math.round(c+a)!==n&&(c-=q_(r,"top","bottom")+a)),!sD(t)){var u=Math.round(s+o)-e,d=Math.round(c+a)-n;Math.abs(u)!==1&&(s-=u),Math.abs(d)!==1&&(c-=d)}return $f(i.left,i.top,s,c)}var aD=(function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof ks(t).SVGGraphicsElement}:function(t){return t instanceof ks(t).SVGElement&&typeof t.getBBox=="function"}})();function sD(t){return t===ks(t).document.documentElement}function lD(t){return wv?aD(t)?iD(t):oD(t):Q_}function cD(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return Z_(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function $f(t,e,n,r){return{x:t,y:e,width:n,height:r}}var uD=(function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=$f(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=lD(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t})(),fD=(function(){function t(e,n){var r=cD(n);Z_(this,{target:e,contentRect:r})}return t})(),dD=(function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new K_,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ks(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new uD(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ks(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new fD(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t})(),J_=typeof WeakMap<"u"?new WeakMap:new K_,X_=(function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=nD.getInstance(),r=new dD(e,n,this);J_.set(this,r)}return t})();["observe","unobserve","disconnect"].forEach(function(t){X_.prototype[t]=function(){var e;return(e=J_.get(this))[t].apply(e,arguments)}});var hD=(function(){return typeof Jf.ResizeObserver<"u"?Jf.ResizeObserver:X_})(),To=new Map;function pD(t){t.forEach(function(e){var n,r=e.target;(n=To.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var $_=new hD(pD);function mD(t,e){To.has(t)||(To.set(t,new Set),$_.observe(t)),To.get(t).add(e)}function gD(t,e){To.has(t)&&(To.get(t).delete(e),To.get(t).size||($_.unobserve(t),To.delete(t)))}function Nn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function eC(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,z_(r.key),r)}}function In(t,e,n){return e&&eC(t.prototype,e),n&&eC(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function hc(t,e){return hc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},hc(t,e)}function Oo(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&hc(t,e)}function pc(t){return pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pc(t)}function _v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_v=function(){return!!t})()}function it(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vD(t,e){if(e&&(Ze(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return it(t)}function Ro(t){var e=_v();return function(){var n,r=pc(t);if(e){var i=pc(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return vD(this,n)}}var yD=(function(t){Oo(n,t);var e=Ro(n);function n(){return Nn(this,n),e.apply(this,arguments)}return In(n,[{key:"render",value:function(){return this.props.children}}]),n})(L.Component);function bD(t,e){var n=t.children,r=t.disabled,i=L.useRef(null),o=L.useRef(null),a=L.useContext(Sv),s=typeof n=="function",c=s?n(i):n,u=L.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&L.isValidElement(c)&&qf(c),h=d?Ev(c):null,p=bv(h,i),m=function(){var w;return Qf(i.current)||(i.current&&Ze(i.current)==="object"?Qf((w=i.current)===null||w===void 0?void 0:w.nativeElement):null)||Qf(o.current)};L.useImperativeHandle(e,function(){return m()});var v=L.useRef(t);v.current=t;var b=L.useCallback(function(y){var w=v.current,C=w.onResize,k=w.data,x=y.getBoundingClientRect(),S=x.width,A=x.height,T=y.offsetWidth,N=y.offsetHeight,P=Math.floor(S),U=Math.floor(A);if(u.current.width!==P||u.current.height!==U||u.current.offsetWidth!==T||u.current.offsetHeight!==N){var V={width:P,height:U,offsetWidth:T,offsetHeight:N};u.current=V;var H=T===Math.round(S)?S:T,Q=N===Math.round(A)?A:N,j=ue(ue({},V),{},{offsetWidth:H,offsetHeight:Q});a==null||a(j,y,k),C&&Promise.resolve().then(function(){C(j,y)})}},[]);return L.useEffect(function(){var y=m();return y&&!r&&mD(y,b),function(){return gD(y,b)}},[i.current,r]),L.createElement(yD,{ref:o},d?L.cloneElement(c,{ref:p}):c)}var tC=L.forwardRef(bD);tC.displayName="SingleObserver";var ED="rc-observer-key";function SD(t,e){var n=t.children,r=typeof n=="function"?[n]:Zf(n);return r.length>1?As(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&As(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),r.map(function(i,o){var a=(i==null?void 0:i.key)||"".concat(ED,"-").concat(o);return L.createElement(tC,Nr({},t,{key:a,ref:o===0?e:void 0}),i)})}var ed=L.forwardRef(SD);ed.displayName="ResizeObserver",ed.Collection=Qj;function Cv(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function wD(t){if(Array.isArray(t))return Cv(t)}function nC(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function xv(t,e){if(t){if(typeof t=="string")return Cv(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cv(t,e):void 0}}function _D(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
579
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function je(t){return wD(t)||nC(t)||xv(t)||_D()}var rC=function(e){return+setTimeout(e,16)},iC=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(rC=function(e){return window.requestAnimationFrame(e)},iC=function(e){return window.cancelAnimationFrame(e)});var oC=0,td=new Map;function aC(t){td.delete(t)}var nd=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;oC+=1;var r=oC;function i(o){if(o===0)aC(r),e();else{var a=rC(function(){i(o-1)});td.set(r,a)}}return i(n),r};nd.cancel=function(t){var e=td.get(t);return aC(t),iC(e)},nd.ids=function(){return td};function sC(t){if(Array.isArray(t))return t}function CD(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(d){u=!0,i=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function lC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
580
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ce(t,e){return sC(t)||CD(t,e)||xv(t,e)||lC()}function mc(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}function mr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function xD(t,e){if(!t)return!1;if(t.contains)return t.contains(e);for(var n=e;n;){if(n===t)return!0;n=n.parentNode}return!1}var cC="data-rc-order",uC="data-rc-priority",AD="rc-util-key",Av=new Map;function fC(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.mark;return e?e.startsWith("data-")?e:"data-".concat(e):AD}function rd(t){if(t.attachTo)return t.attachTo;var e=document.querySelector("head");return e||document.body}function kD(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function kv(t){return Array.from((Av.get(t)||t).children).filter(function(e){return e.tagName==="STYLE"})}function dC(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!mr())return null;var n=e.csp,r=e.prepend,i=e.priority,o=i===void 0?0:i,a=kD(r),s=a==="prependQueue",c=document.createElement("style");c.setAttribute(cC,a),s&&o&&c.setAttribute(uC,"".concat(o)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=t;var u=rd(e),d=u.firstChild;if(r){if(s){var h=(e.styles||kv(u)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(cC)))return!1;var m=Number(p.getAttribute(uC)||0);return o>=m});if(h.length)return u.insertBefore(c,h[h.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function hC(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=rd(e);return(e.styles||kv(n)).find(function(r){return r.getAttribute(fC(e))===t})}function gc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=hC(t,e);if(n){var r=rd(e);r.removeChild(n)}}function TD(t,e){var n=Av.get(t);if(!n||!xD(document,n)){var r=dC("",e),i=r.parentNode;Av.set(t,i),t.removeChild(r)}}function No(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=rd(n),i=kv(r),o=ue(ue({},n),{},{styles:i});TD(r,o);var a=hC(e,o);if(a){var s,c;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var u;a.nonce=(u=o.csp)===null||u===void 0?void 0:u.nonce}return a.innerHTML!==t&&(a.innerHTML=t),a}var d=dC(t,o);return d.setAttribute(fC(o),e),d}function OD(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Li(t,e){if(t==null)return{};var n,r,i=OD(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Tv(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(o);if($t(!c,"Warning: There may be circular references"),c)return!1;if(o===a)return!0;if(n&&s>1)return!1;r.add(o);var u=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var d=0;d<o.length;d++)if(!i(o[d],a[d],u))return!1;return!0}if(o&&a&&Ze(o)==="object"&&Ze(a)==="object"){var h=Object.keys(o);return h.length!==Object.keys(a).length?!1:h.every(function(p){return i(o[p],a[p],u)})}return!1}return i(t,e)}var RD="%";function Ov(t){return t.join(RD)}var ND=(function(){function t(e){Nn(this,t),oe(this,"instanceId",void 0),oe(this,"cache",new Map),oe(this,"extracted",new Set),this.instanceId=e}return In(t,[{key:"get",value:function(n){return this.opGet(Ov(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Ov(n),r)}},{key:"opUpdate",value:function(n,r){var i=this.cache.get(n),o=r(i);o===null?this.cache.delete(n):this.cache.set(n,o)}}]),t})(),Ts="data-token-hash",gi="data-css-hash",ID="data-cache-path",Io="__cssinjs_instance__";function PD(){var t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var e=document.body.querySelectorAll("style[".concat(gi,"]"))||[],n=document.head.firstChild;Array.from(e).forEach(function(i){i[Io]=i[Io]||t,i[Io]===t&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(gi,"]"))).forEach(function(i){var o=i.getAttribute(gi);if(r[o]){if(i[Io]===t){var a;(a=i.parentNode)===null||a===void 0||a.removeChild(i)}}else r[o]=!0})}return new ND(t)}var vc=L.createContext({hashPriority:"low",cache:PD(),defaultCache:!0});function MD(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}var Rv=(function(){function t(){Nn(this,t),oe(this,"cache",void 0),oe(this,"keys",void 0),oe(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return In(t,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else{var c;a=(c=a)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(r=a)!==null&&r!==void 0&&r.value&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>t.MAX_CACHE_SIZE+t.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(u,d){var h=Ce(u,2),p=h[1];return i.internalGet(d)[1]<p?[d,i.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),a=Ce(o,1),s=a[0];this.delete(s)}this.keys.push(n)}var c=this.cache;n.forEach(function(u,d){if(d===n.length-1)c.set(u,{value:[r,i.cacheCallTimes++]});else{var h=c.get(u);h?h.map||(h.map=new Map):c.set(u,{map:new Map}),c=c.get(u).map}})}},{key:"deleteByPath",value:function(n,r){var i=n.get(r[0]);if(r.length===1){var o;return i.map?n.set(r[0],{map:i.map}):n.delete(r[0]),(o=i.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(i.map,r.slice(1));return(!i.map||i.map.size===0)&&!i.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!MD(r,n)}),this.deleteByPath(this.cache,n)}}]),t})();oe(Rv,"MAX_CACHE_SIZE",20),oe(Rv,"MAX_CACHE_OFFSET",5);var pC=0,mC=(function(){function t(e){Nn(this,t),oe(this,"derivatives",void 0),oe(this,"id",void 0),this.derivatives=Array.isArray(e)?e:[e],this.id=pC,e.length===0&&As(e.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),pC+=1}return In(t,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),t})(),Nv=new Rv;function Iv(t){var e=Array.isArray(t)?t:[t];return Nv.has(e)||Nv.set(e,new mC(e)),Nv.get(e)}var LD=new WeakMap,Pv={};function FD(t,e){for(var n=LD,r=0;r<e.length;r+=1){var i=e[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(Pv)||n.set(Pv,t()),n.get(Pv)}var gC=new WeakMap;function yc(t){var e=gC.get(t)||"";return e||(Object.keys(t).forEach(function(n){var r=t[n];e+=n,r instanceof mC?e+=r.id:r&&Ze(r)==="object"?e+=yc(r):e+=r}),e=mc(e),gC.set(t,e)),e}function vC(t,e){return mc("".concat(e,"_").concat(yc(t)))}var Mv=mr();function Xn(t){return typeof t=="number"?"".concat(t,"px"):t}function id(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return t;var o=ue(ue({},r),{},oe(oe({},Ts,e),gi,n)),a=Object.keys(o).map(function(s){var c=o[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(a,">").concat(t,"</style>")}var od=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},jD=function(e,n,r){return Object.keys(e).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(e).map(function(i){var o=Ce(i,2),a=o[0],s=o[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},yC=function(e,n,r){var i={},o={};return Object.entries(e).forEach(function(a){var s,c,u=Ce(a,2),d=u[0],h=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])o[d]=h;else if((typeof h=="string"||typeof h=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var p,m=od(d,r==null?void 0:r.prefix);i[m]=typeof h=="number"&&!(r!=null&&(p=r.unitless)!==null&&p!==void 0&&p[d])?"".concat(h,"px"):String(h),o[d]="var(".concat(m,")")}}),[o,jD(i,n,{scope:r==null?void 0:r.scope})]},bC=mr()?L.useLayoutEffect:L.useEffect,$n=function(e,n){var r=L.useRef(!0);bC(function(){return e(r.current)},n),bC(function(){return r.current=!1,function(){r.current=!0}},[])},EC=function(e,n){$n(function(r){if(!r)return e()},n)},DD=ue({},L),SC=DD.useInsertionEffect,VD=function(e,n,r){L.useMemo(e,r),$n(function(){return n(!0)},r)},UD=SC?function(t,e,n){return SC(function(){return t(),e()},n)}:VD,zD=ue({},L),BD=zD.useInsertionEffect,HD=function(e){var n=[],r=!1;function i(o){if(r){As(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(o)}return L.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},e),i},WD=function(){return function(e){e()}},GD=typeof BD<"u"?HD:WD,Lv=!1;function YD(){return Lv}const KD=YD;if(typeof module<"u"&&module&&module.hot&&typeof window<"u"){var ad=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(ad&&typeof ad.webpackHotUpdate=="function"){var ZD=ad.webpackHotUpdate;ad.webpackHotUpdate=function(){return Lv=!0,setTimeout(function(){Lv=!1},0),ZD.apply(void 0,arguments)}}}function Fv(t,e,n,r,i){var o=L.useContext(vc),a=o.cache,s=[t].concat(je(e)),c=Ov(s),u=GD([c]),d=KD(),h=function(b){a.opUpdate(c,function(y){var w=y||[void 0,void 0],C=Ce(w,2),k=C[0],x=k===void 0?0:k,S=C[1],A=S;S&&d&&(r==null||r(A,d),A=null);var T=A||n(),N=[x,T];return b?b(N):N})};L.useMemo(function(){h()},[c]);var p=a.opGet(c);p||(h(),p=a.opGet(c));var m=p[1];return UD(function(){i==null||i(m)},function(v){return h(function(b){var y=Ce(b,2),w=y[0],C=y[1];return v&&w===0&&(i==null||i(m)),[w+1,C]}),function(){a.opUpdate(c,function(b){var y=b||[],w=Ce(y,2),C=w[0],k=C===void 0?0:C,x=w[1],S=k-1;return S===0?(u(function(){(v||!a.opGet(c))&&(r==null||r(x,!1))}),null):[k-1,x]})}},[c]),m}var QD={},qD="css-dev-only-do-not-override",ya=new Map;function JD(t){ya.set(t,(ya.get(t)||0)+1)}function XD(t,e){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ts,'="').concat(t,'"]'));n.forEach(function(r){if(r[Io]===e){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var $D=0;function eV(t,e){ya.set(t,(ya.get(t)||0)-1);var n=new Set;ya.forEach(function(r,i){r<=0&&n.add(i)}),ya.size-n.size>$D&&n.forEach(function(r){XD(r,e),ya.delete(r)})}var tV=function(e,n,r,i){var o=r.getDerivativeToken(e),a=ue(ue({},o),n);return i&&(a=i(a)),a},wC="token";function nV(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=R.useContext(vc),i=r.cache.instanceId,o=r.container,a=n.salt,s=a===void 0?"":a,c=n.override,u=c===void 0?QD:c,d=n.formatToken,h=n.getComputedToken,p=n.cssVar,m=FD(function(){return Object.assign.apply(Object,[{}].concat(je(e)))},e),v=yc(m),b=yc(u),y=p?yc(p):"",w=Fv(wC,[s,t.id,v,b,y],function(){var C,k=h?h(m,u,t):tV(m,u,t,d),x=ue({},k),S="";if(p){var A=yC(k,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),T=Ce(A,2);k=T[0],S=T[1]}var N=vC(k,s);k._tokenKey=N,x._tokenKey=vC(x,s);var P=(C=p==null?void 0:p.key)!==null&&C!==void 0?C:N;k._themeKey=P,JD(P);var U="".concat(qD,"-").concat(mc(N));return k._hashId=U,[k,U,x,S,(p==null?void 0:p.key)||""]},function(C){eV(C[0]._themeKey,i)},function(C){var k=Ce(C,4),x=k[0],S=k[3];if(p&&S){var A=No(S,mc("css-variables-".concat(x._themeKey)),{mark:gi,prepend:"queue",attachTo:o,priority:-999});A[Io]=i,A.setAttribute(Ts,x._themeKey)}});return w}var rV=function(e,n,r){var i=Ce(e,5),o=i[2],a=i[3],s=i[4],c=r||{},u=c.plain;if(!a)return null;var d=o._tokenKey,h=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(h)},m=id(a,s,d,p,u);return[h,d,m]},iV={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_C="comm",CC="rule",xC="decl",oV="@import",aV="@namespace",sV="@keyframes",lV="@layer",AC=Math.abs,jv=String.fromCharCode;function kC(t){return t.trim()}function sd(t,e,n){return t.replace(e,n)}function cV(t,e,n){return t.indexOf(e,n)}function Os(t,e){return t.charCodeAt(e)|0}function Rs(t,e,n){return t.slice(e,n)}function Fi(t){return t.length}function uV(t){return t.length}function ld(t,e){return e.push(t),t}var cd=1,Ns=1,TC=0,Kr=0,gn=0,Is="";function Dv(t,e,n,r,i,o,a,s){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:cd,column:Ns,length:a,return:"",siblings:s}}function fV(){return gn}function dV(){return gn=Kr>0?Os(Is,--Kr):0,Ns--,gn===10&&(Ns=1,cd--),gn}function vi(){return gn=Kr<TC?Os(Is,Kr++):0,Ns++,gn===10&&(Ns=1,cd++),gn}function Po(){return Os(Is,Kr)}function ud(){return Kr}function fd(t,e){return Rs(Is,t,e)}function bc(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function hV(t){return cd=Ns=1,TC=Fi(Is=t),Kr=0,[]}function pV(t){return Is="",t}function Vv(t){return kC(fd(Kr-1,Uv(t===91?t+2:t===40?t+1:t)))}function mV(t){for(;(gn=Po())&&gn<33;)vi();return bc(t)>2||bc(gn)>3?"":" "}function gV(t,e){for(;--e&&vi()&&!(gn<48||gn>102||gn>57&&gn<65||gn>70&&gn<97););return fd(t,ud()+(e<6&&Po()==32&&vi()==32))}function Uv(t){for(;vi();)switch(gn){case t:return Kr;case 34:case 39:t!==34&&t!==39&&Uv(gn);break;case 40:t===41&&Uv(t);break;case 92:vi();break}return Kr}function vV(t,e){for(;vi()&&t+gn!==57;)if(t+gn===84&&Po()===47)break;return"/*"+fd(e,Kr-1)+"*"+jv(t===47?t:vi())}function yV(t){for(;!bc(Po());)vi();return fd(t,Kr)}function bV(t){return pV(dd("",null,null,null,[""],t=hV(t),0,[0],t))}function dd(t,e,n,r,i,o,a,s,c){for(var u=0,d=0,h=a,p=0,m=0,v=0,b=1,y=1,w=1,C=0,k="",x=i,S=o,A=r,T=k;y;)switch(v=C,C=vi()){case 40:if(v!=108&&Os(T,h-1)==58){cV(T+=sd(Vv(C),"&","&\f"),"&\f",AC(u?s[u-1]:0))!=-1&&(w=-1);break}case 34:case 39:case 91:T+=Vv(C);break;case 9:case 10:case 13:case 32:T+=mV(v);break;case 92:T+=gV(ud()-1,7);continue;case 47:switch(Po()){case 42:case 47:ld(EV(vV(vi(),ud()),e,n,c),c),(bc(v||1)==5||bc(Po()||1)==5)&&Fi(T)&&Rs(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*b:s[u++]=Fi(T)*w;case 125*b:case 59:case 0:switch(C){case 0:case 125:y=0;case 59+d:w==-1&&(T=sd(T,/\f/g,"")),m>0&&(Fi(T)-h||b===0&&v===47)&&ld(m>32?RC(T+";",r,n,h-1,c):RC(sd(T," ","")+";",r,n,h-2,c),c);break;case 59:T+=";";default:if(ld(A=OC(T,e,n,u,d,i,s,k,x=[],S=[],h,o),o),C===123)if(d===0)dd(T,e,A,A,x,o,h,s,S);else{switch(p){case 99:if(Os(T,3)===110)break;case 108:if(Os(T,2)===97)break;default:d=0;case 100:case 109:case 115:}d?dd(t,A,A,r&&ld(OC(t,A,A,0,0,i,s,k,i,x=[],h,S),S),i,S,h,s,r?x:S):dd(T,A,A,A,[""],S,0,s,S)}}u=d=m=0,b=w=1,k=T="",h=a;break;case 58:h=1+Fi(T),m=v;default:if(b<1){if(C==123)--b;else if(C==125&&b++==0&&dV()==125)continue}switch(T+=jv(C),C*b){case 38:w=d>0?1:(T+="\f",-1);break;case 44:s[u++]=(Fi(T)-1)*w,w=1;break;case 64:Po()===45&&(T+=Vv(vi())),p=Po(),d=h=Fi(k=T+=yV(ud())),C++;break;case 45:v===45&&Fi(T)==2&&(b=0)}}return o}function OC(t,e,n,r,i,o,a,s,c,u,d,h){for(var p=i-1,m=i===0?o:[""],v=uV(m),b=0,y=0,w=0;b<r;++b)for(var C=0,k=Rs(t,p+1,p=AC(y=a[b])),x=t;C<v;++C)(x=kC(y>0?m[C]+" "+k:sd(k,/&\f/g,m[C])))&&(c[w++]=x);return Dv(t,e,n,i===0?CC:s,c,u,d,h)}function EV(t,e,n,r){return Dv(t,e,n,_C,jv(fV()),Rs(t,2,-2),0,r)}function RC(t,e,n,r,i){return Dv(t,e,n,xC,Rs(t,0,r),Rs(t,r+1,-1),r,i)}function zv(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function SV(t,e,n,r){switch(t.type){case lV:if(t.children.length)break;case oV:case aV:case xC:return t.return=t.return||t.value;case _C:return"";case sV:return t.return=t.value+"{"+zv(t.children,r)+"}";case CC:if(!Fi(t.value=t.props.join(",")))return""}return Fi(n=zv(t.children,r))?t.return=t.value+"{"+n+"}":""}function NC(t,e){var n=e.path,r=e.parentSelectors;$t(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(t).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var wV=function(e,n,r){if(e==="content"){var i=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,o=["normal","none","initial","inherit","unset"];(typeof n!="string"||o.indexOf(n)===-1&&!i.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&NC("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},_V=function(e,n,r){e==="animation"&&r.hashId&&n!=="none"&&NC("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},IC="data-ant-cssinjs-cache-path",PC="_FILE_STYLE__",ba,MC=!0;function CV(){if(!ba&&(ba={},mr())){var t=document.createElement("div");t.className=IC,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var e=getComputedStyle(t).content||"";e=e.replace(/^"/,"").replace(/"$/,""),e.split(";").forEach(function(i){var o=i.split(":"),a=Ce(o,2),s=a[0],c=a[1];ba[s]=c});var n=document.querySelector("style[".concat(IC,"]"));if(n){var r;MC=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(t)}}function xV(t){return CV(),!!ba[t]}function AV(t){var e=ba[t],n=null;if(e&&mr())if(MC)n=PC;else{var r=document.querySelector("style[".concat(gi,'="').concat(ba[t],'"]'));r?n=r.innerHTML:delete ba[t]}return[n,e]}var LC="_skip_check_",FC="_multi_value_";function hd(t){var e=zv(bV(t),SV);return e.replace(/\{%%%\:[^;];}/g,";")}function kV(t){return Ze(t)==="object"&&t&&(LC in t||FC in t)}function jC(t,e,n){if(!e)return t;var r=".".concat(e),i=n==="low"?":where(".concat(r,")"):r,o=t.split(",").map(function(a){var s,c=a.trim().split(/\s+/),u=c[0]||"",d=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u="".concat(d).concat(i).concat(u.slice(d.length)),[u].concat(je(c.slice(1))).join(" ")});return o.join(",")}var TV=function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,o=r.injectHash,a=r.parentSelectors,s=n.hashId,c=n.layer,u=n.path,d=n.hashPriority,h=n.transformers,p=h===void 0?[]:h,m=n.linters,v=m===void 0?[]:m,b="",y={};function w(x){var S=x.getName(s);if(!y[S]){var A=t(x.style,n,{root:!1,parentSelectors:a}),T=Ce(A,1),N=T[0];y[S]="@keyframes ".concat(x.getName(s)).concat(N)}}function C(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return x.forEach(function(A){Array.isArray(A)?C(A,S):A&&S.push(A)}),S}var k=C(Array.isArray(e)?e:[e]);return k.forEach(function(x){var S=typeof x=="string"&&!i?{}:x;if(typeof S=="string")b+="".concat(S,`
|
|
581
|
+
`);else if(S._keyframe)w(S);else{var A=p.reduce(function(T,N){var P;return(N==null||(P=N.visit)===null||P===void 0?void 0:P.call(N,T))||T},S);Object.keys(A).forEach(function(T){var N=A[T];if(Ze(N)==="object"&&N&&(T!=="animationName"||!N._keyframe)&&!kV(N)){var P=!1,U=T.trim(),V=!1;(i||o)&&s?U.startsWith("@")?P=!0:U==="&"?U=jC("",s,d):U=jC(T,s,d):i&&!s&&(U==="&"||U==="")&&(U="",V=!0);var H=t(N,n,{root:V,injectHash:P,parentSelectors:[].concat(je(a),[U])}),Q=Ce(H,2),j=Q[0],F=Q[1];y=ue(ue({},y),F),b+="".concat(U).concat(j)}else{let z=function(q,W){(Ze(N)!=="object"||!(N!=null&&N[LC]))&&[wV,_V].concat(je(v)).forEach(function(ne){return ne(q,W,{path:u,hashId:s,parentSelectors:a})});var G=q.replace(/[A-Z]/g,function(ne){return"-".concat(ne.toLowerCase())}),te=W;!iV[q]&&typeof te=="number"&&te!==0&&(te="".concat(te,"px")),q==="animationName"&&W!==null&&W!==void 0&&W._keyframe&&(w(W),te=W.getName(s)),b+="".concat(G,":").concat(te,";")};var D,Y=(D=N==null?void 0:N.value)!==null&&D!==void 0?D:N;Ze(N)==="object"&&N!==null&&N!==void 0&&N[FC]&&Array.isArray(Y)?Y.forEach(function(q){z(T,q)}):z(T,Y)}})}}),i?c&&(b&&(b="@layer ".concat(c.name," {").concat(b,"}")),c.dependencies&&(y["@layer ".concat(c.name)]=c.dependencies.map(function(x){return"@layer ".concat(x,", ").concat(c.name,";")}).join(`
|
|
582
|
+
`))):b="{".concat(b,"}"),[b,y]};function DC(t,e){return mc("".concat(t.join("%")).concat(e))}function OV(){return null}var VC="style";function Bv(t,e){var n=t.token,r=t.path,i=t.hashId,o=t.layer,a=t.nonce,s=t.clientOnly,c=t.order,u=c===void 0?0:c,d=L.useContext(vc),h=d.autoClear,p=d.mock,m=d.defaultCache,v=d.hashPriority,b=d.container,y=d.ssrInline,w=d.transformers,C=d.linters,k=d.cache,x=d.layer,S=n._tokenKey,A=[S];x&&A.push("layer"),A.push.apply(A,je(r));var T=Mv;p!==void 0&&(T=p==="client");var N=Fv(VC,A,function(){var Q=A.join("|");if(xV(Q)){var j=AV(Q),F=Ce(j,2),D=F[0],Y=F[1];if(D)return[D,S,Y,{},s,u]}var z=e(),q=TV(z,{hashId:i,hashPriority:v,layer:x?o:void 0,path:r.join("-"),transformers:w,linters:C}),W=Ce(q,2),G=W[0],te=W[1],ne=hd(G),ce=DC(A,ne);return[ne,S,ce,te,s,u]},function(Q,j){var F=Ce(Q,3),D=F[2];(j||h)&&Mv&&gc(D,{mark:gi,attachTo:b})},function(Q){var j=Ce(Q,4),F=j[0];j[1];var D=j[2],Y=j[3];if(T&&F!==PC){var z={mark:gi,prepend:x?!1:"queue",attachTo:b,priority:u},q=typeof a=="function"?a():a;q&&(z.csp={nonce:q});var W=[],G=[];Object.keys(Y).forEach(function(ne){ne.startsWith("@layer")?W.push(ne):G.push(ne)}),W.forEach(function(ne){No(hd(Y[ne]),"_layer-".concat(ne),ue(ue({},z),{},{prepend:!0}))});var te=No(F,D,z);te[Io]=k.instanceId,te.setAttribute(Ts,S),te.setAttribute(ID,A.join("|")),G.forEach(function(ne){No(hd(Y[ne]),"_effect-".concat(ne),z)})}}),P=Ce(N,3),U=P[0],V=P[1],H=P[2];return function(Q){var j;return!y||T||!m?j=L.createElement(OV,null):j=L.createElement("style",Nr({},oe(oe({},Ts,V),gi,H),{dangerouslySetInnerHTML:{__html:U}})),L.createElement(L.Fragment,null,j,Q)}}var RV=function(e,n,r){var i=Ce(e,6),o=i[0],a=i[1],s=i[2],c=i[3],u=i[4],d=i[5],h=r||{},p=h.plain;if(u)return null;var m=o,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return m=id(o,a,s,v,p),c&&Object.keys(c).forEach(function(b){if(!n[b]){n[b]=!0;var y=hd(c[b]),w=id(y,a,"_effect-".concat(b),v,p);b.startsWith("@layer")?m=w+m:m+=w}}),[d,s,m]},UC="cssVar",NV=function(e,n){var r=e.key,i=e.prefix,o=e.unitless,a=e.ignore,s=e.token,c=e.scope,u=c===void 0?"":c,d=R.useContext(vc),h=d.cache.instanceId,p=d.container,m=s._tokenKey,v=[].concat(je(e.path),[r,u,m]),b=Fv(UC,v,function(){var y=n(),w=yC(y,r,{prefix:i,unitless:o,ignore:a,scope:u}),C=Ce(w,2),k=C[0],x=C[1],S=DC(v,x);return[k,x,S,r]},function(y){var w=Ce(y,3),C=w[2];Mv&&gc(C,{mark:gi,attachTo:p})},function(y){var w=Ce(y,3),C=w[1],k=w[2];if(C){var x=No(C,k,{mark:gi,prepend:"queue",attachTo:p,priority:-999});x[Io]=h,x.setAttribute(Ts,r)}});return b},IV=function(e,n,r){var i=Ce(e,4),o=i[1],a=i[2],s=i[3],c=r||{},u=c.plain;if(!o)return null;var d=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=id(o,s,a,h,u);return[d,a,p]};oe(oe(oe({},VC,RV),wC,rV),UC,IV);var Pn=(function(){function t(e,n){Nn(this,t),oe(this,"name",void 0),oe(this,"style",void 0),oe(this,"_keyframe",!0),this.name=e,this.style=n}return In(t,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),t})();function Ps(t){return t.notSplit=!0,t}Ps(["borderTop","borderBottom"]),Ps(["borderTop"]),Ps(["borderBottom"]),Ps(["borderLeft","borderRight"]),Ps(["borderLeft"]),Ps(["borderRight"]);var PV=R.createContext({});function MV(t){return sC(t)||nC(t)||xv(t)||lC()}function ji(t,e){for(var n=t,r=0;r<e.length;r+=1){if(n==null)return;n=n[e[r]]}return n}function zC(t,e,n,r){if(!e.length)return n;var i=MV(e),o=i[0],a=i.slice(1),s;return!t&&typeof o=="number"?s=[]:Array.isArray(t)?s=je(t):s=ue({},t),r&&n===void 0&&a.length===1?delete s[o][a[0]]:s[o]=zC(s[o],a,n,r),s}function yi(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return e.length&&r&&n===void 0&&!ji(t,e.slice(0,-1))?t:zC(t,e,n,r)}function LV(t){return Ze(t)==="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype}function BC(t){return Array.isArray(t)?[]:{}}var FV=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Ms(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=BC(e[0]);return e.forEach(function(i){function o(a,s){var c=new Set(s),u=ji(i,a),d=Array.isArray(u);if(d||LV(u)){if(!c.has(u)){c.add(u);var h=ji(r,a);d?r=yi(r,a,[]):(!h||Ze(h)!=="object")&&(r=yi(r,a,BC(u))),FV(u).forEach(function(p){o([].concat(je(a),[p]),c)})}}else r=yi(r,a,u)}o([])}),r}function jV(){}let Mo=null,HC=jV;HC=(t,e,n)=>{$t(t,`[antd: ${e}] ${n}`)};const pd=HC,WC=L.createContext({}),Ls=t=>{const{strict:e}=L.useContext(WC),n=(r,i,o)=>{if(!r)if(e===!1&&i==="deprecated"){const a=Mo;Mo||(Mo={}),Mo[t]=Mo[t]||[],Mo[t].includes(o||"")||Mo[t].push(o||""),a||console.warn("[antd] There exists deprecated usage in your code:",Mo)}else pd(r,t,o)};return n.deprecated=(r,i,o,a)=>{n(r,"deprecated",`\`${i}\` is deprecated. Please use \`${o}\` instead.${a?` ${a}`:""}`)},n},DV=R.createContext(void 0);var VV={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},UV=ue(ue({},VV),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const zV={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},UV),Object.assign({},zV);const Ir="${label} is not a valid ${type}",md={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ir,method:Ir,array:Ir,object:Ir,number:Ir,date:Ir,boolean:Ir,integer:Ir,float:Ir,regexp:Ir,email:Ir,url:Ir,hex:Ir},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}}};Object.assign({},md.Modal);let gd=[];const GC=()=>gd.reduce((t,e)=>Object.assign(Object.assign({},t),e),md.Modal);function BV(t){if(t){const e=Object.assign({},t);return gd.push(e),GC(),()=>{gd=gd.filter(n=>n!==e),GC()}}Object.assign({},md.Modal)}const YC=R.createContext(void 0),KC="internalMark",ZC=t=>{const{locale:e={},children:n,_ANT_MARK__:r}=t;Ls("LocaleProvider")(r===KC,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),L.useEffect(()=>BV(e==null?void 0:e.Modal),[e]);const i=L.useMemo(()=>Object.assign(Object.assign({},e),{exist:!0}),[e]);return L.createElement(YC.Provider,{value:i},n)};ZC.displayName="LocaleProvider";const QC={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Ec=Object.assign(Object.assign({},QC),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
583
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
584
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Mn=Math.round;function Hv(t,e){const n=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=e(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const qC=(t,e,n)=>n===0?t:t/100;function Sc(t,e){const n=e||255;return t>n?n:t<0?0:t}class en{constructor(e){oe(this,"isValid",!0),oe(this,"r",0),oe(this,"g",0),oe(this,"b",0),oe(this,"a",1),oe(this,"_h",void 0),oe(this,"_s",void 0),oe(this,"_l",void 0),oe(this,"_v",void 0),oe(this,"_max",void 0),oe(this,"_min",void 0),oe(this,"_brightness",void 0);function n(r){return r[0]in e&&r[1]in e&&r[2]in e}if(e)if(typeof e=="string"){let i=function(o){return r.startsWith(o)};const r=e.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):i("rgb")?this.fromRgbString(r):i("hsl")?this.fromHslString(r):(i("hsv")||i("hsb"))&&this.fromHsvString(r)}else if(e instanceof en)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(n("rgb"))this.r=Sc(e.r),this.g=Sc(e.g),this.b=Sc(e.b),this.a=typeof e.a=="number"?Sc(e.a,1):1;else if(n("hsl"))this.fromHsl(e);else if(n("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const n=this.toHsv();return n.h=e,this._c(n)}getLuminance(){function e(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=e(this.r),r=e(this.g),i=e(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=Mn(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-e/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(e=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+e/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(e,n=50){const r=this._c(e),i=n/100,o=s=>(r[s]-this[s])*i+this[s],a={r:Mn(o("r")),g:Mn(o("g")),b:Mn(o("b")),a:Mn(o("a")*100)/100};return this._c(a)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const n=this._c(e),r=this.a+n.a*(1-this.a),i=o=>Mn((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const n=(this.r||0).toString(16);e+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);e+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(e+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=Mn(this.a*255).toString(16);e+=o.length===2?o:"0"+o}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),n=Mn(this.getSaturation()*100),r=Mn(this.getLightness()*100);return this.a!==1?`hsla(${e},${n}%,${r}%,${this.a})`:`hsl(${e},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,n,r){const i=this.clone();return i[e]=Sc(n,r),i}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const n=e.replace("#","");function r(i,o){return parseInt(n[i]+n[o||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:e,s:n,l:r,a:i}){if(this._h=e%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const p=Mn(r*255);this.r=p,this.g=p,this.b=p}let o=0,a=0,s=0;const c=e/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(o=u,a=d):c>=1&&c<2?(o=d,a=u):c>=2&&c<3?(a=u,s=d):c>=3&&c<4?(a=d,s=u):c>=4&&c<5?(o=d,s=u):c>=5&&c<6&&(o=u,s=d);const h=r-u/2;this.r=Mn((o+h)*255),this.g=Mn((a+h)*255),this.b=Mn((s+h)*255)}fromHsv({h:e,s:n,v:r,a:i}){this._h=e%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const o=Mn(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const a=e/60,s=Math.floor(a),c=a-s,u=Mn(r*(1-n)*255),d=Mn(r*(1-n*c)*255),h=Mn(r*(1-n*(1-c))*255);switch(s){case 0:this.g=h,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=h;break;case 3:this.r=u,this.g=d;break;case 4:this.r=h,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(e){const n=Hv(e,qC);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(e){const n=Hv(e,qC);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(e){const n=Hv(e,(r,i)=>i.includes("%")?Mn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var vd=2,JC=.16,HV=.05,WV=.05,GV=.15,XC=5,$C=4,YV=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function ex(t,e,n){var r;return Math.round(t.h)>=60&&Math.round(t.h)<=240?r=n?Math.round(t.h)-vd*e:Math.round(t.h)+vd*e:r=n?Math.round(t.h)+vd*e:Math.round(t.h)-vd*e,r<0?r+=360:r>=360&&(r-=360),r}function tx(t,e,n){if(t.h===0&&t.s===0)return t.s;var r;return n?r=t.s-JC*e:e===$C?r=t.s+JC:r=t.s+HV*e,r>1&&(r=1),n&&e===XC&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function nx(t,e,n){var r;return n?r=t.v+WV*e:r=t.v-GV*e,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function yd(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new en(t),i=r.toHsv(),o=XC;o>0;o-=1){var a=new en({h:ex(i,o,!0),s:tx(i,o,!0),v:nx(i,o,!0)});n.push(a)}n.push(r);for(var s=1;s<=$C;s+=1){var c=new en({h:ex(i,s),s:tx(i,s),v:nx(i,s)});n.push(c)}return e.theme==="dark"?YV.map(function(u){var d=u.index,h=u.amount;return new en(e.backgroundColor||"#141414").mix(n[d],h).toHexString()}):n.map(function(u){return u.toHexString()})}var Wv={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Gv=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Gv.primary=Gv[5];var Yv=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Yv.primary=Yv[5];var Kv=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Kv.primary=Kv[5];var Zv=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Zv.primary=Zv[5];var Qv=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Qv.primary=Qv[5];var qv=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];qv.primary=qv[5];var Jv=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Jv.primary=Jv[5];var Xv=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Xv.primary=Xv[5];var $v=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];$v.primary=$v[5];var e0=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];e0.primary=e0[5];var t0=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];t0.primary=t0[5];var n0=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];n0.primary=n0[5];var r0=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];r0.primary=r0[5];var i0={red:Gv,volcano:Yv,orange:Kv,gold:Zv,yellow:Qv,lime:qv,green:Jv,cyan:Xv,blue:$v,geekblue:e0,purple:t0,magenta:n0,grey:r0};function KV(t,{generateColorPalettes:e,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:i,colorError:o,colorInfo:a,colorPrimary:s,colorBgBase:c,colorTextBase:u}=t,d=e(s),h=e(r),p=e(i),m=e(o),v=e(a),b=n(c,u),y=t.colorLink||t.colorInfo,w=e(y),C=new en(m[1]).mix(new en(m[3]),50).toHexString();return Object.assign(Object.assign({},b),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:C,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],colorBgMask:new en("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const ZV=t=>{let e=t,n=t,r=t,i=t;return t<6&&t>=5?e=t+1:t<16&&t>=6?e=t+2:t>=16&&(e=16),t<7&&t>=5?n=4:t<8&&t>=7?n=5:t<14&&t>=8?n=6:t<16&&t>=14?n=7:t>=16&&(n=8),t<6&&t>=2?r=1:t>=6&&(r=2),t>4&&t<8?i=4:t>=8&&(i=6),{borderRadius:t,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:e,borderRadiusOuter:i}};function QV(t){const{motionUnit:e,motionBase:n,borderRadius:r,lineWidth:i}=t;return Object.assign({motionDurationFast:`${(n+e).toFixed(1)}s`,motionDurationMid:`${(n+e*2).toFixed(1)}s`,motionDurationSlow:`${(n+e*3).toFixed(1)}s`,lineWidthBold:i+1},ZV(r))}const qV=t=>{const{controlHeight:e}=t;return{controlHeightSM:e*.75,controlHeightXS:e*.5,controlHeightLG:e*1.25}};function JV(t){return(t+8)/t}function XV(t){const e=Array.from({length:10}).map((n,r)=>{const i=r-1,o=t*Math.pow(Math.E,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return e[1]=t,e.map(n=>({size:n,lineHeight:JV(n)}))}const $V=t=>{const e=XV(t),n=e.map(d=>d.size),r=e.map(d=>d.lineHeight),i=n[1],o=n[0],a=n[2],s=r[1],c=r[0],u=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(s*i),fontHeightLG:Math.round(u*a),fontHeightSM:Math.round(c*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function eU(t){const{sizeUnit:e,sizeStep:n}=t;return{sizeXXL:e*(n+8),sizeXL:e*(n+4),sizeLG:e*(n+2),sizeMD:e*(n+1),sizeMS:e*n,size:e*n,sizeSM:e*(n-1),sizeXS:e*(n-2),sizeXXS:e*(n-3)}}const Zr=(t,e)=>new en(t).setA(e).toRgbString(),wc=(t,e)=>new en(t).darken(e).toHexString(),tU=t=>{const e=yd(t);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},nU=(t,e)=>{const n=t||"#fff",r=e||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Zr(r,.88),colorTextSecondary:Zr(r,.65),colorTextTertiary:Zr(r,.45),colorTextQuaternary:Zr(r,.25),colorFill:Zr(r,.15),colorFillSecondary:Zr(r,.06),colorFillTertiary:Zr(r,.04),colorFillQuaternary:Zr(r,.02),colorBgSolid:Zr(r,1),colorBgSolidHover:Zr(r,.75),colorBgSolidActive:Zr(r,.95),colorBgLayout:wc(n,4),colorBgContainer:wc(n,0),colorBgElevated:wc(n,0),colorBgSpotlight:Zr(r,.85),colorBgBlur:"transparent",colorBorder:wc(n,15),colorBorderSecondary:wc(n,6)}};function rU(t){Wv.pink=Wv.magenta,i0.pink=i0.magenta;const e=Object.keys(QC).map(n=>{const r=t[n]===Wv[n]?i0[n]:yd(t[n]);return Array.from({length:10},()=>1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i[`${n}${a+1}`]=r[a],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),e),KV(t,{generateColorPalettes:tU,generateNeutralColorPalettes:nU})),$V(t.fontSize)),eU(t)),qV(t)),QV(t))}const rx=Iv(rU),o0={token:Ec,override:{override:Ec},hashed:!0},ix=R.createContext(o0),a0="ant",s0="anticon",iU=(t,e)=>e||(t?`${a0}-${t}`:a0),bi=L.createContext({getPrefixCls:iU,iconPrefixCls:s0}),{Consumer:xX}=bi,ox={};function oU(t){const e=L.useContext(bi),{getPrefixCls:n,direction:r,getPopupContainer:i}=e,o=e[t];return Object.assign(Object.assign({classNames:ox,styles:ox},o),{getPrefixCls:n,direction:r,getPopupContainer:i})}const aU=`-ant-${Date.now()}-${Math.random()}`;function sU(t,e){const n={},r=(a,s)=>{let c=a.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},i=(a,s)=>{const c=new en(a),u=yd(c.toRgbString());n[`${s}-color`]=r(c),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=c.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(e.primaryColor){i(e.primaryColor,"primary");const a=new en(e.primaryColor),s=yd(a.toRgbString());s.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(a,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(a,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(a,u=>u.setA(u.a*.12));const c=new en(s[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setA(u.a*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.darken(2))}return e.successColor&&i(e.successColor,"success"),e.warningColor&&i(e.warningColor,"warning"),e.errorColor&&i(e.errorColor,"error"),e.infoColor&&i(e.infoColor,"info"),`
|
|
585
|
+
:root {
|
|
586
|
+
${Object.keys(n).map(a=>`--${t}-${a}: ${n[a]};`).join(`
|
|
587
|
+
`)}
|
|
588
|
+
}
|
|
589
|
+
`.trim()}function lU(t,e){const n=sU(t,e);mr()?No(n,`${aU}-dynamic-theme`):pd(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const l0=L.createContext(!1),cU=({children:t,disabled:e})=>{const n=L.useContext(l0);return L.createElement(l0.Provider,{value:e??n},t)},_c=L.createContext(void 0),uU=({children:t,size:e})=>{const n=L.useContext(_c);return L.createElement(_c.Provider,{value:e||n},t)};function fU(){const t=R.useContext(l0),e=R.useContext(_c);return{componentDisabled:t,componentSize:e}}var ax=In(function t(){Nn(this,t)}),sx="CALC_UNIT",dU=new RegExp(sx,"g");function c0(t){return typeof t=="number"?"".concat(t).concat(sx):t}var hU=(function(t){Oo(n,t);var e=Ro(n);function n(r,i){var o;Nn(this,n),o=e.call(this),oe(it(o),"result",""),oe(it(o),"unitlessCssVar",void 0),oe(it(o),"lowPriority",void 0);var a=Ze(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=c0(r):a==="string"&&(o.result=r),o}return In(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(c0(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(c0(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var o=this,a=i||{},s=a.unit,c=!0;return typeof s=="boolean"?c=s:Array.from(this.unitlessCssVar).some(function(u){return o.result.includes(u)})&&(c=!1),this.result=this.result.replace(dU,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(ax),pU=(function(t){Oo(n,t);var e=Ro(n);function n(r){var i;return Nn(this,n),i=e.call(this),oe(it(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return In(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n})(ax),mU=function(e,n){var r=e==="css"?hU:pU;return function(i){return new r(i,n)}},lx=function(e,n){return"".concat([n,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function gr(t){var e=L.useRef();e.current=t;var n=L.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=e.current)===null||r===void 0?void 0:r.call.apply(r,[e].concat(o))},[]);return n}function Cc(t){var e=L.useRef(!1),n=L.useState(t),r=Ce(n,2),i=r[0],o=r[1];L.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]);function a(s,c){c&&e.current||o(s)}return[i,a]}function u0(t){return t!==void 0}function cx(t,e){var n=e||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,s=Cc(function(){return u0(i)?i:u0(r)?typeof r=="function"?r():r:typeof t=="function"?t():t}),c=Ce(s,2),u=c[0],d=c[1],h=i!==void 0?i:u,p=a?a(h):h,m=gr(o),v=Cc([h]),b=Ce(v,2),y=b[0],w=b[1];EC(function(){var k=y[0];u!==k&&m(u,k)},[y]),EC(function(){u0(i)||d(i)},[i]);var C=gr(function(k,x){d(k,x),w([h],x)});return[p,C]}function ux(t,e,n,r){var i=ue({},e[t]);if(r!=null&&r.deprecatedTokens){var o=r.deprecatedTokens;o.forEach(function(s){var c=Ce(s,2),u=c[0],d=c[1];if($t(!(i!=null&&i[u]),"Component Token `".concat(String(u),"` of ").concat(String(t)," is deprecated. Please use `").concat(String(d),"` instead.")),i!=null&&i[u]||i!=null&&i[d]){var h;(h=i[d])!==null&&h!==void 0||(i[d]=i==null?void 0:i[u])}})}var a=ue(ue({},n),i);return Object.keys(a).forEach(function(s){a[s]===e[s]&&delete a[s]}),a}var f0=!0;function xc(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];f0=!1;var r={};return e.forEach(function(i){if(Ze(i)==="object"){var o=Object.keys(i);o.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return i[a]}})})}}),f0=!0,r}var fx={};function gU(){}var vU=function(e){var n,r=e,i=gU;return typeof Proxy<"u"&&(n=new Set,r=new Proxy(e,{get:function(a,s){if(f0){var c;(c=n)===null||c===void 0||c.add(s)}return a[s]}}),i=function(a,s){var c;fx[a]={global:Array.from(n),component:ue(ue({},(c=fx[a])===null||c===void 0?void 0:c.component),s)}}),{token:r,keys:n,flush:i}};function dx(t,e,n){if(typeof n=="function"){var r;return n(xc(e,(r=e[t])!==null&&r!==void 0?r:{}))}return n??{}}function yU(t){return t==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(o){return Xn(o)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(o){return Xn(o)}).join(","),")")}}}var bU=1e3*60*10,EU=(function(){function t(){Nn(this,t),oe(this,"map",new Map),oe(this,"objectIDMap",new WeakMap),oe(this,"nextID",0),oe(this,"lastAccessBeat",new Map),oe(this,"accessBeat",0)}return In(t,[{key:"set",value:function(n,r){this.clear();var i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var r=this,i=n.map(function(o){return o&&Ze(o)==="object"?"obj_".concat(r.getObjectID(o)):"".concat(Ze(o),"_").concat(o)});return i.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,o){r-i>bU&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),t})(),hx=new EU;function SU(t,e){return R.useMemo(function(){var n=hx.get(e);if(n)return n;var r=t();return hx.set(e,r),r},e)}var wU=function(){return{}};function _U(t){var e=t.useCSP,n=e===void 0?wU:e,r=t.useToken,i=t.usePrefix,o=t.getResetStyles,a=t.getCommonStyle,s=t.getCompUnitless;function c(p,m,v,b){var y=Array.isArray(p)?p[0]:p;function w(N){return"".concat(String(y)).concat(N.slice(0,1).toUpperCase()).concat(N.slice(1))}var C=(b==null?void 0:b.unitless)||{},k=typeof s=="function"?s(p):{},x=ue(ue({},k),{},oe({},w("zIndexPopup"),!0));Object.keys(C).forEach(function(N){x[w(N)]=C[N]});var S=ue(ue({},b),{},{unitless:x,prefixToken:w}),A=d(p,m,v,S),T=u(y,v,S);return function(N){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N,U=A(N,P),V=Ce(U,2),H=V[1],Q=T(P),j=Ce(Q,2),F=j[0],D=j[1];return[F,H,D]}}function u(p,m,v){var b=v.unitless,y=v.injectStyle,w=y===void 0?!0:y,C=v.prefixToken,k=v.ignore,x=function(T){var N=T.rootCls,P=T.cssVar,U=P===void 0?{}:P,V=r(),H=V.realToken;return NV({path:[p],prefix:U.prefix,key:U.key,unitless:b,ignore:k,token:H,scope:N},function(){var Q=dx(p,H,m),j=ux(p,H,Q,{deprecatedTokens:v==null?void 0:v.deprecatedTokens});return Object.keys(Q).forEach(function(F){j[C(F)]=j[F],delete j[F]}),j}),null},S=function(T){var N=r(),P=N.cssVar;return[function(U){return w&&P?R.createElement(R.Fragment,null,R.createElement(x,{rootCls:T,cssVar:P,component:p}),U):U},P==null?void 0:P.key]};return S}function d(p,m,v){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(p)?p:[p,p],w=Ce(y,1),C=w[0],k=y.join("-"),x=t.layer||{name:"antd"};return function(S){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,T=r(),N=T.theme,P=T.realToken,U=T.hashId,V=T.token,H=T.cssVar,Q=i(),j=Q.rootPrefixCls,F=Q.iconPrefixCls,D=n(),Y=H?"css":"js",z=SU(function(){var ce=new Set;return H&&Object.keys(b.unitless||{}).forEach(function(ie){ce.add(od(ie,H.prefix)),ce.add(od(ie,lx(C,H.prefix)))}),mU(Y,ce)},[Y,C,H==null?void 0:H.prefix]),q=yU(Y),W=q.max,G=q.min,te={theme:N,token:V,hashId:U,nonce:function(){return D.nonce},clientOnly:b.clientOnly,layer:x,order:b.order||-999};typeof o=="function"&&Bv(ue(ue({},te),{},{clientOnly:!1,path:["Shared",j]}),function(){return o(V,{prefix:{rootPrefixCls:j,iconPrefixCls:F},csp:D})});var ne=Bv(ue(ue({},te),{},{path:[k,S,F]}),function(){if(b.injectStyle===!1)return[];var ce=vU(V),ie=ce.token,de=ce.flush,pe=dx(C,P,v),J=".".concat(S),re=ux(C,P,pe,{deprecatedTokens:b.deprecatedTokens});H&&pe&&Ze(pe)==="object"&&Object.keys(pe).forEach(function(Re){pe[Re]="var(".concat(od(Re,lx(C,H.prefix)),")")});var he=xc(ie,{componentCls:J,prefixCls:S,iconCls:".".concat(F),antCls:".".concat(j),calc:z,max:W,min:G},H?pe:re),Ee=m(he,{hashId:U,prefixCls:S,rootPrefixCls:j,iconPrefixCls:F});de(C,re);var X=typeof a=="function"?a(he,S,A,b.resetFont):null;return[b.resetStyle===!1?null:X,Ee]});return[ne,U]}}function h(p,m,v){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=d(p,m,v,ue({resetStyle:!1,order:-998},b)),w=function(k){var x=k.prefixCls,S=k.rootCls,A=S===void 0?x:S;return y(x,A),null};return w.displayName="SubStyle_".concat(String(Array.isArray(p)?p.join("."):p)),w}return{genStyleHooks:c,genSubStyleComponent:h,genComponentStyleHook:d}}const bd=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],CU="5.29.3";function d0(t){return t>=0&&t<=255}function Ed(t,e){const{r:n,g:r,b:i,a:o}=new en(t).toRgb();if(o<1)return t;const{r:a,g:s,b:c}=new en(e).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-a*(1-u))/u),h=Math.round((r-s*(1-u))/u),p=Math.round((i-c*(1-u))/u);if(d0(d)&&d0(h)&&d0(p))return new en({r:d,g:h,b:p,a:Math.round(u*100)/100}).toRgbString()}return new en({r:n,g:r,b:i,a:1}).toRgbString()}var xU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function px(t){const{override:e}=t,n=xU(t,["override"]),r=Object.assign({},e);Object.keys(Ec).forEach(p=>{delete r[p]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,s=768,c=992,u=1200,d=1600;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Ed(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Ed(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Ed(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Ed(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
|
|
590
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
591
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
592
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
593
|
+
`,boxShadowSecondary:`
|
|
594
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
595
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
596
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
597
|
+
`,boxShadowTertiary:`
|
|
598
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
599
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
600
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
601
|
+
`,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
602
|
+
0 1px 2px -2px ${new en("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
603
|
+
0 3px 6px 0 ${new en("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
604
|
+
0 5px 12px 4px ${new en("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
605
|
+
`,boxShadowDrawerRight:`
|
|
606
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
607
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
608
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
609
|
+
`,boxShadowDrawerLeft:`
|
|
610
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
611
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
612
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
613
|
+
`,boxShadowDrawerUp:`
|
|
614
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
615
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
616
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
617
|
+
`,boxShadowDrawerDown:`
|
|
618
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
619
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
620
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
621
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var mx=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const gx={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},AU={motionBase:!0,motionUnit:!0},kU={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},vx=(t,e,n)=>{const r=n.getDerivativeToken(t),{override:i}=e,o=mx(e,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=px(a),o&&Object.entries(o).forEach(([s,c])=>{const{theme:u}=c,d=mx(c,["theme"]);let h=d;u&&(h=vx(Object.assign(Object.assign({},a),d),{override:d},u)),a[s]=h}),a};function Ac(){const{token:t,hashed:e,theme:n,override:r,cssVar:i}=R.useContext(ix),o=`${CU}-${e||""}`,a=n||rx,[s,c,u]=nV(a,[Ec,t],{salt:o,override:r,getComputedToken:vx,formatToken:px,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:gx,ignore:AU,preserve:kU}});return[a,u,e?c:"",s,i]}const h0=(t,e=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none",fontFamily:e?"inherit":t.fontFamily}),TU=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),OU=t=>({a:{color:t.colorLink,textDecoration:t.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive},"&:active, &:hover":{textDecoration:t.linkHoverDecoration,outline:0},"&:focus":{textDecoration:t.linkFocusDecoration,outline:0},"&[disabled]":{color:t.colorTextDisabled,cursor:"not-allowed"}}}),RU=(t,e,n,r)=>{const i=`[class^="${e}"], [class*=" ${e}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:t.fontFamily,fontSize:t.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}},yx=t=>({[`.${t}`]:Object.assign(Object.assign({},TU()),{[`.${t} .${t}-icon`]:{display:"block"}})}),{genStyleHooks:p0}=_U({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:e}=R.useContext(bi);return{rootPrefixCls:t(),iconPrefixCls:e}},useToken:()=>{const[t,e,n,r,i]=Ac();return{theme:t,realToken:e,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:t}=R.useContext(bi);return t??{}},getResetStyles:(t,e)=>{var n;const r=OU(t);return[r,{"&":r},yx((n=e==null?void 0:e.prefix.iconPrefixCls)!==null&&n!==void 0?n:s0)]},getCommonStyle:RU,getCompUnitless:()=>gx});function m0(t,e){return bd.reduce((n,r)=>{const i=t[`${r}1`],o=t[`${r}3`],a=t[`${r}6`],s=t[`${r}7`];return Object.assign(Object.assign({},n),e(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const NU=(t,e)=>{const[n,r]=Ac();return Bv({token:r,hashId:"",path:["ant-design-icons",t],nonce:()=>e==null?void 0:e.nonce,layer:{name:"antd"}},()=>yx(t))},IU=Object.assign({},L),{useId:bx}=IU,PU=typeof bx>"u"?()=>"":bx;function MU(t,e,n){var r,i;const o=Ls("ConfigProvider"),a=t||{},s=a.inherit===!1||!e?Object.assign(Object.assign({},o0),{hashed:(r=e==null?void 0:e.hashed)!==null&&r!==void 0?r:o0.hashed,cssVar:e==null?void 0:e.cssVar}):e,c=PU();{const u=a.cssVar||s.cssVar,d=!!(typeof a.cssVar=="object"&&(!((i=a.cssVar)===null||i===void 0)&&i.key)||c);o(!u||d,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return vv(()=>{var u,d;if(!t)return e;const h=Object.assign({},s.components);Object.keys(t.components||{}).forEach(v=>{h[v]=Object.assign(Object.assign({},h[v]),t.components[v])});const p=`css-var-${c.replace(/:/g,"")}`,m=((u=a.cssVar)!==null&&u!==void 0?u:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((d=a.cssVar)===null||d===void 0?void 0:d.key)||p});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:h,cssVar:m})},[a,s],(u,d)=>u.some((h,p)=>{const m=d[p];return!Tv(h,m,!0)}))}var LU=["children"],Ex=L.createContext({});function FU(t){var e=t.children,n=Li(t,LU);return L.createElement(Ex.Provider,{value:n},e)}var jU=(function(t){Oo(n,t);var e=Ro(n);function n(){return Nn(this,n),e.apply(this,arguments)}return In(n,[{key:"render",value:function(){return this.props.children}}]),n})(L.Component);function DU(t){var e=L.useReducer(function(s){return s+1},0),n=Ce(e,2),r=n[1],i=L.useRef(t),o=gr(function(){return i.current}),a=gr(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[o,a]}var Lo="none",Sd="appear",wd="enter",_d="leave",Sx="none",Ei="prepare",Fs="start",js="active",g0="end",wx="prepared";function _x(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit".concat(t)]="webkit".concat(e),n["Moz".concat(t)]="moz".concat(e),n["ms".concat(t)]="MS".concat(e),n["O".concat(t)]="o".concat(e.toLowerCase()),n}function VU(t,e){var n={animationend:_x("Animation","AnimationEnd"),transitionend:_x("Transition","TransitionEnd")};return t&&("AnimationEvent"in e||delete n.animationend.animation,"TransitionEvent"in e||delete n.transitionend.transition),n}var UU=VU(mr(),typeof window<"u"?window:{}),Cx={};if(mr()){var zU=document.createElement("div");Cx=zU.style}var Cd={};function xx(t){if(Cd[t])return Cd[t];var e=UU[t];if(e)for(var n=Object.keys(e),r=n.length,i=0;i<r;i+=1){var o=n[i];if(Object.prototype.hasOwnProperty.call(e,o)&&o in Cx)return Cd[t]=e[o],Cd[t]}return""}var Ax=xx("animationend"),kx=xx("transitionend"),Tx=!!(Ax&&kx),Ox=Ax||"animationend",Rx=kx||"transitionend";function Nx(t,e){if(!t)return null;if(Ze(t)==="object"){var n=e.replace(/-\w/g,function(r){return r[1].toUpperCase()});return t[n]}return"".concat(t,"-").concat(e)}const BU=(function(t){var e=R.useRef();function n(i){i&&(i.removeEventListener(Rx,t),i.removeEventListener(Ox,t))}function r(i){e.current&&e.current!==i&&n(e.current),i&&i!==e.current&&(i.addEventListener(Rx,t),i.addEventListener(Ox,t),e.current=i)}return L.useEffect(function(){return function(){n(e.current)}},[]),[r,n]});var Ix=mr()?R.useLayoutEffect:R.useEffect;const HU=(function(){var t=L.useRef(null);function e(){nd.cancel(t.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;e();var o=nd(function(){i<=1?r({isCanceled:function(){return o!==t.current}}):n(r,i-1)});t.current=o}return L.useEffect(function(){return function(){e()}},[]),[n,e]});var WU=[Ei,Fs,js,g0],GU=[Ei,wx],Px=!1,YU=!0;function Mx(t){return t===js||t===g0}const KU=(function(t,e,n){var r=Cc(Sx),i=Ce(r,2),o=i[0],a=i[1],s=HU(),c=Ce(s,2),u=c[0],d=c[1];function h(){a(Ei,!0)}var p=e?GU:WU;return Ix(function(){if(o!==Sx&&o!==g0){var m=p.indexOf(o),v=p[m+1],b=n(o);b===Px?a(v,!0):v&&u(function(y){function w(){y.isCanceled()||a(v,!0)}b===!0?w():Promise.resolve(b).then(w)})}},[t,o]),L.useEffect(function(){return function(){d()}},[]),[h,o]});function ZU(t,e,n,r){var i=r.motionEnter,o=i===void 0?!0:i,a=r.motionAppear,s=a===void 0?!0:a,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,h=r.motionLeaveImmediately,p=r.onAppearPrepare,m=r.onEnterPrepare,v=r.onLeavePrepare,b=r.onAppearStart,y=r.onEnterStart,w=r.onLeaveStart,C=r.onAppearActive,k=r.onEnterActive,x=r.onLeaveActive,S=r.onAppearEnd,A=r.onEnterEnd,T=r.onLeaveEnd,N=r.onVisibleChanged,P=Cc(),U=Ce(P,2),V=U[0],H=U[1],Q=DU(Lo),j=Ce(Q,2),F=j[0],D=j[1],Y=Cc(null),z=Ce(Y,2),q=z[0],W=z[1],G=F(),te=R.useRef(!1),ne=R.useRef(null);function ce(){return n()}var ie=R.useRef(!1);function de(){D(Lo),W(null,!0)}var pe=gr(function(Le){var Qe=F();if(Qe!==Lo){var At=ce();if(!(Le&&!Le.deadline&&Le.target!==At)){var we=ie.current,et;Qe===Sd&&we?et=S==null?void 0:S(At,Le):Qe===wd&&we?et=A==null?void 0:A(At,Le):Qe===_d&&we&&(et=T==null?void 0:T(At,Le)),we&&et!==!1&&de()}}}),J=BU(pe),re=Ce(J,1),he=re[0],Ee=function(Qe){switch(Qe){case Sd:return oe(oe(oe({},Ei,p),Fs,b),js,C);case wd:return oe(oe(oe({},Ei,m),Fs,y),js,k);case _d:return oe(oe(oe({},Ei,v),Fs,w),js,x);default:return{}}},X=L.useMemo(function(){return Ee(G)},[G]),Re=KU(G,!t,function(Le){if(Le===Ei){var Qe=X[Ei];return Qe?Qe(ce()):Px}if(st in X){var At;W(((At=X[st])===null||At===void 0?void 0:At.call(X,ce(),null))||null)}return st===js&&G!==Lo&&(he(ce()),d>0&&(clearTimeout(ne.current),ne.current=setTimeout(function(){pe({deadline:!0})},d))),st===wx&&de(),YU}),ye=Ce(Re,2),Fe=ye[0],st=ye[1],Pe=Mx(st);ie.current=Pe;var lt=R.useRef(null);Ix(function(){if(!(te.current&<.current===e)){H(e);var Le=te.current;te.current=!0;var Qe;!Le&&e&&s&&(Qe=Sd),Le&&e&&o&&(Qe=wd),(Le&&!e&&u||!Le&&h&&!e&&u)&&(Qe=_d);var At=Ee(Qe);Qe&&(t||At[Ei])?(D(Qe),Fe()):D(Lo),lt.current=e}},[e]),R.useEffect(function(){(G===Sd&&!s||G===wd&&!o||G===_d&&!u)&&D(Lo)},[s,o,u]),R.useEffect(function(){return function(){te.current=!1,clearTimeout(ne.current)}},[]);var Te=L.useRef(!1);R.useEffect(function(){V&&(Te.current=!0),V!==void 0&&G===Lo&&((Te.current||V)&&(N==null||N(V)),Te.current=!0)},[V,G]);var nt=q;return X[Ei]&&st===Fs&&(nt=ue({transition:"none"},nt)),[G,st,nt,V??e]}function QU(t){var e=t;Ze(t)==="object"&&(e=t.transitionSupport);function n(i,o){return!!(i.motionName&&e&&o!==!1)}var r=L.forwardRef(function(i,o){var a=i.visible,s=a===void 0?!0:a,c=i.removeOnLeave,u=c===void 0?!0:c,d=i.forceRender,h=i.children,p=i.motionName,m=i.leavedClassName,v=i.eventProps,b=L.useContext(Ex),y=b.motion,w=n(i,y),C=R.useRef(),k=R.useRef();function x(){try{return C.current instanceof HTMLElement?C.current:Qf(k.current)}catch{return null}}var S=ZU(w,s,x,i),A=Ce(S,4),T=A[0],N=A[1],P=A[2],U=A[3],V=L.useRef(U);U&&(V.current=!0);var H=L.useCallback(function(z){C.current=z,yv(o,z)},[o]),Q,j=ue(ue({},v),{},{visible:s});if(!h)Q=null;else if(T===Lo)U?Q=h(ue({},j),H):!u&&V.current&&m?Q=h(ue(ue({},j),{},{className:m}),H):d||!u&&!m?Q=h(ue(ue({},j),{},{style:{display:"none"}}),H):Q=null;else{var F;N===Ei?F="prepare":Mx(N)?F="active":N===Fs&&(F="start");var D=Nx(p,"".concat(T,"-").concat(F));Q=h(ue(ue({},j),{},{className:It(Nx(p,T),oe(oe({},D,D&&F),p,typeof p=="string")),style:P}),H)}if(L.isValidElement(Q)&&qf(Q)){var Y=Ev(Q);Y||(Q=L.cloneElement(Q,{ref:H}))}return L.createElement(jU,{ref:k},Q)});return r.displayName="CSSMotion",r}const xd=QU(Tx);var v0="add",y0="keep",b0="remove",E0="removed";function qU(t){var e;return t&&Ze(t)==="object"&&"key"in t?e=t:e={key:t},ue(ue({},e),{},{key:String(e.key)})}function S0(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(qU)}function JU(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=e.length,o=S0(t),a=S0(e);o.forEach(function(u){for(var d=!1,h=r;h<i;h+=1){var p=a[h];if(p.key===u.key){r<h&&(n=n.concat(a.slice(r,h).map(function(m){return ue(ue({},m),{},{status:v0})})),r=h),n.push(ue(ue({},p),{},{status:y0})),r+=1,d=!0;break}}d||n.push(ue(ue({},u),{},{status:b0}))}),r<i&&(n=n.concat(a.slice(r).map(function(u){return ue(ue({},u),{},{status:v0})})));var s={};n.forEach(function(u){var d=u.key;s[d]=(s[d]||0)+1});var c=Object.keys(s).filter(function(u){return s[u]>1});return c.forEach(function(u){n=n.filter(function(d){var h=d.key,p=d.status;return h!==u||p!==b0}),n.forEach(function(d){d.key===u&&(d.status=y0)})}),n}var XU=["component","children","onVisibleChanged","onAllRemoved"],$U=["status"],ez=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function tz(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xd,n=(function(r){Oo(o,r);var i=Ro(o);function o(){var a;Nn(this,o);for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return a=i.call.apply(i,[this].concat(c)),oe(it(a),"state",{keyEntities:[]}),oe(it(a),"removeKey",function(d){a.setState(function(h){var p=h.keyEntities.map(function(m){return m.key!==d?m:ue(ue({},m),{},{status:E0})});return{keyEntities:p}},function(){var h=a.state.keyEntities,p=h.filter(function(m){var v=m.status;return v!==E0}).length;p===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return In(o,[{key:"render",value:function(){var s=this,c=this.state.keyEntities,u=this.props,d=u.component,h=u.children,p=u.onVisibleChanged;u.onAllRemoved;var m=Li(u,XU),v=d||L.Fragment,b={};return ez.forEach(function(y){b[y]=m[y],delete m[y]}),delete m.keys,L.createElement(v,m,c.map(function(y,w){var C=y.status,k=Li(y,$U),x=C===v0||C===y0;return L.createElement(e,Nr({},b,{key:k.key,visible:x,eventProps:k,onVisibleChanged:function(A){p==null||p(A,{key:k.key}),A||s.removeKey(k.key)}}),function(S,A){return h(ue(ue({},S),{},{index:w}),A)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,c){var u=s.keys,d=c.keyEntities,h=S0(u),p=JU(d,h);return{keyEntities:p.filter(function(m){var v=d.find(function(b){var y=b.key;return m.key===y});return!(v&&v.status===E0&&m.status===b0)})}}}]),o})(L.Component);return oe(n,"defaultProps",{component:"div"}),n}tz(Tx);const w0=L.createContext(!0);w0.displayName="MotionCacheContext";function nz(t){const e=L.useContext(w0),{children:n}=t,[,r]=Ac(),{motion:i}=r,o=L.useRef(!1);return o.current||(o.current=e!==i),o.current?L.createElement(w0.Provider,{value:i},L.createElement(FU,{motion:i},n)):n}const Lx=L.memo(({dropdownMatchSelectWidth:t})=>(Ls("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));Lx.displayName="PropWarning";const rz=Lx;var iz=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const oz=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Fx;function az(){return Fx||a0}function sz(t){return Object.keys(t).some(e=>e.endsWith("Color"))}const lz=t=>{const{prefixCls:e,iconPrefixCls:n,theme:r,holderRender:i}=t;e!==void 0&&(Fx=e),r&&sz(r)&&(pd(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),lU(az(),r))},cz=t=>{const{children:e,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:o,form:a,locale:s,componentSize:c,direction:u,space:d,splitter:h,virtual:p,dropdownMatchSelectWidth:m,popupMatchSelectWidth:v,popupOverflow:b,legacyLocale:y,parentContext:w,iconPrefixCls:C,theme:k,componentDisabled:x,segmented:S,statistic:A,spin:T,calendar:N,carousel:P,cascader:U,collapse:V,typography:H,checkbox:Q,descriptions:j,divider:F,drawer:D,skeleton:Y,steps:z,image:q,layout:W,list:G,mentions:te,modal:ne,progress:ce,result:ie,slider:de,breadcrumb:pe,menu:J,pagination:re,input:he,textArea:Ee,empty:X,badge:Re,radio:ye,rate:Fe,switch:st,transfer:Pe,avatar:lt,message:Te,tag:nt,table:Le,card:Qe,tabs:At,timeline:we,timePicker:et,upload:kt,notification:Yt,tree:Qt,colorPicker:wn,datePicker:vr,rangePicker:yt,flex:bt,wave:sn,dropdown:tn,warning:Vt,tour:_n,tooltip:nn,popover:Kn,popconfirm:ro,floatButton:$r,floatButtonGroup:yr,variant:Vi,inputNumber:br,treeSelect:rr}=t,fn=L.useCallback((Et,Ut)=>{const{prefixCls:bn}=t;if(Ut)return Ut;const Pt=bn||w.getPrefixCls("");return Et?`${Pt}-${Et}`:Pt},[w.getPrefixCls,t.prefixCls]),qe=C||w.iconPrefixCls||s0,Cn=n||w.csp;NU(qe,Cn);const vn=MU(k,w.theme,{prefixCls:fn("")}),gt={csp:Cn,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:s||y,direction:u,space:d,splitter:h,virtual:p,popupMatchSelectWidth:v??m,popupOverflow:b,getPrefixCls:fn,iconPrefixCls:qe,theme:vn,segmented:S,statistic:A,spin:T,calendar:N,carousel:P,cascader:U,collapse:V,typography:H,checkbox:Q,descriptions:j,divider:F,drawer:D,skeleton:Y,steps:z,image:q,input:he,textArea:Ee,layout:W,list:G,mentions:te,modal:ne,progress:ce,result:ie,slider:de,breadcrumb:pe,menu:J,pagination:re,empty:X,badge:Re,radio:ye,rate:Fe,switch:st,transfer:Pe,avatar:lt,message:Te,tag:nt,table:Le,card:Qe,tabs:At,timeline:we,timePicker:et,upload:kt,notification:Yt,tree:Qt,colorPicker:wn,datePicker:vr,rangePicker:yt,flex:bt,wave:sn,dropdown:tn,warning:Vt,tour:_n,tooltip:nn,popover:Kn,popconfirm:ro,floatButton:$r,floatButtonGroup:yr,variant:Vi,inputNumber:br,treeSelect:rr};Ls("ConfigProvider")(!("autoInsertSpaceInButton"in t),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const ft=Object.assign({},w);Object.keys(gt).forEach(Et=>{gt[Et]!==void 0&&(ft[Et]=gt[Et])}),oz.forEach(Et=>{const Ut=t[Et];Ut&&(ft[Et]=Ut)}),typeof r<"u"&&(ft.button=Object.assign({autoInsertSpace:r},ft.button));const Kt=vv(()=>ft,ft,(Et,Ut)=>{const bn=Object.keys(Et),Pt=Object.keys(Ut);return bn.length!==Pt.length||bn.some(or=>Et[or]!==Ut[or])}),{layer:ir}=L.useContext(vc),yn=L.useMemo(()=>({prefixCls:qe,csp:Cn,layer:ir?"antd":void 0}),[qe,Cn,ir]);let pt=L.createElement(L.Fragment,null,L.createElement(rz,{dropdownMatchSelectWidth:m}),e);const Ln=L.useMemo(()=>{var Et,Ut,bn,Pt;return Ms(((Et=md.Form)===null||Et===void 0?void 0:Et.defaultValidateMessages)||{},((bn=(Ut=Kt.locale)===null||Ut===void 0?void 0:Ut.Form)===null||bn===void 0?void 0:bn.defaultValidateMessages)||{},((Pt=Kt.form)===null||Pt===void 0?void 0:Pt.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Kt,a==null?void 0:a.validateMessages]);Object.keys(Ln).length>0&&(pt=L.createElement(DV.Provider,{value:Ln},pt)),s&&(pt=L.createElement(ZC,{locale:s,_ANT_MARK__:KC},pt)),pt=L.createElement(PV.Provider,{value:yn},pt),c&&(pt=L.createElement(uU,{size:c},pt)),pt=L.createElement(nz,null,pt);const Er=L.useMemo(()=>{const Et=vn||{},{algorithm:Ut,token:bn,components:Pt,cssVar:or}=Et,ei=iz(Et,["algorithm","token","components","cssVar"]),Zn=Ut&&(!Array.isArray(Ut)||Ut.length>0)?Iv(Ut):rx,Vn={};Object.entries(Pt||{}).forEach(([Ae,K])=>{const me=Object.assign({},K);"algorithm"in me&&(me.algorithm===!0?me.theme=Zn:(Array.isArray(me.algorithm)||typeof me.algorithm=="function")&&(me.theme=Iv(me.algorithm)),delete me.algorithm),Vn[Ae]=me});const Sr=Object.assign(Object.assign({},Ec),bn);return Object.assign(Object.assign({},ei),{theme:Zn,token:Sr,components:Vn,override:Object.assign({override:Sr},Vn),cssVar:or})},[vn]);return k&&(pt=L.createElement(ix.Provider,{value:Er},pt)),Kt.warning&&(pt=L.createElement(WC.Provider,{value:Kt.warning},pt)),x!==void 0&&(pt=L.createElement(cU,{disabled:x},pt)),L.createElement(bi.Provider,{value:Kt},pt)},Ds=t=>{const e=L.useContext(bi),n=L.useContext(YC);return L.createElement(cz,Object.assign({parentContext:e,legacyLocale:n},t))};Ds.ConfigContext=bi,Ds.SizeContext=_c,Ds.config=lz,Ds.useConfig=fU,Object.defineProperty(Ds,"SizeContext",{get:()=>(pd(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),_c)}),Ds.displayName="ConfigProvider";function jx(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}function uz(t){return jx(t)instanceof ShadowRoot}function _0(t){return uz(t)?jx(t):null}function fz(t){return t&&R.isValidElement(t)&&t.type===R.Fragment}const dz=(t,e,n)=>R.isValidElement(t)?R.cloneElement(t,typeof n=="function"?n(t.props||{}):n):e;function C0(t,e){return dz(t,t,e)}const x0=R.createContext(void 0);x0.displayName="zIndexContext";const no=100,hz=no*10+no,Dx={Modal:no,Drawer:no,Popover:no,Popconfirm:no,Tooltip:no,Tour:no,FloatButton:no},pz={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function mz(t){return t in Dx}const gz=(t,e)=>{const[,n]=Ac(),r=R.useContext(x0),i=mz(t);let o;if(e!==void 0)o=[e,e];else{let a=r??0;i?a+=(r?0:n.zIndexPopupBase)+Dx[t]:a+=pz[t],o=[r===void 0?e:a,a]}{const a=Ls(t),s=n.zIndexPopupBase+hz,c=o[0]||0;a(e!==void 0||c<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return o};function Vx(t,e){this.v=t,this.k=e}function Yn(t,e,n,r){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}Yn=function(a,s,c,u){function d(h,p){Yn(a,h,function(m){return this._invoke(h,p,m)})}s?i?i(a,s,{value:c,enumerable:!u,configurable:!u,writable:!u}):a[s]=c:(d("next",0),d("throw",1),d("return",2))},Yn(t,e,n,r)}function A0(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,e,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(m,v,b,y){var w=v&&v.prototype instanceof s?v:s,C=Object.create(w.prototype);return Yn(C,"_invoke",(function(k,x,S){var A,T,N,P=0,U=S||[],V=!1,H={p:0,n:0,v:t,a:Q,f:Q.bind(t,4),d:function(F,D){return A=F,T=0,N=t,H.n=D,a}};function Q(j,F){for(T=j,N=F,e=0;!V&&P&&!D&&e<U.length;e++){var D,Y=U[e],z=H.p,q=Y[2];j>3?(D=q===F)&&(N=Y[(T=Y[4])?5:(T=3,3)],Y[4]=Y[5]=t):Y[0]<=z&&((D=j<2&&z<Y[1])?(T=0,H.v=F,H.n=Y[1]):z<q&&(D=j<3||Y[0]>F||F>q)&&(Y[4]=j,Y[5]=F,H.n=q,T=0))}if(D||j>1)return a;throw V=!0,F}return function(j,F,D){if(P>1)throw TypeError("Generator is already running");for(V&&F===1&&Q(F,D),T=F,N=D;(e=T<2?t:N)||!V;){A||(T?T<3?(T>1&&(H.n=-1),Q(T,N)):H.n=N:H.v=N);try{if(P=2,A){if(T||(j="next"),e=A[j]){if(!(e=e.call(A,N)))throw TypeError("iterator result is not an object");if(!e.done)return e;N=e.value,T<2&&(T=0)}else T===1&&(e=A.return)&&e.call(A),T<2&&(N=TypeError("The iterator does not provide a '"+j+"' method"),T=1);A=t}else if((e=(V=H.n<0)?N:k.call(x,H))!==a)break}catch(Y){A=t,T=1,N=Y}finally{P=1}}return{value:e,done:V}}})(m,b,y),!0),C}var a={};function s(){}function c(){}function u(){}e=Object.getPrototypeOf;var d=[][r]?e(e([][r]())):(Yn(e={},r,function(){return this}),e),h=u.prototype=s.prototype=Object.create(d);function p(m){return Object.setPrototypeOf?Object.setPrototypeOf(m,u):(m.__proto__=u,Yn(m,i,"GeneratorFunction")),m.prototype=Object.create(h),m}return c.prototype=u,Yn(h,"constructor",u),Yn(u,"constructor",c),c.displayName="GeneratorFunction",Yn(u,i,"GeneratorFunction"),Yn(h),Yn(h,i,"Generator"),Yn(h,r,function(){return this}),Yn(h,"toString",function(){return"[object Generator]"}),(A0=function(){return{w:o,m:p}})()}function Ad(t,e){function n(i,o,a,s){try{var c=t[i](o),u=c.value;return u instanceof Vx?e.resolve(u.v).then(function(d){n("next",d,a,s)},function(d){n("throw",d,a,s)}):e.resolve(u).then(function(d){c.value=d,a(c)},function(d){return n("throw",d,a,s)})}catch(d){s(d)}}var r;this.next||(Yn(Ad.prototype),Yn(Ad.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Yn(this,"_invoke",function(i,o,a){function s(){return new e(function(c,u){n(i,a,c,u)})}return r=r?r.then(s,s):s()},!0)}function Ux(t,e,n,r,i){return new Ad(A0().w(t,e,n,r),i||Promise)}function vz(t,e,n,r,i){var o=Ux(t,e,n,r,i);return o.next().then(function(a){return a.done?a.value:o.next()})}function yz(t){var e=Object(t),n=[];for(var r in e)n.unshift(r);return function i(){for(;n.length;)if((r=n.pop())in e)return i.value=r,i.done=!1,i;return i.done=!0,i}}function zx(t){if(t!=null){var e=t[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length))return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}throw new TypeError(Ze(t)+" is not iterable")}function Qr(){var t=A0(),e=t.m(Qr),n=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function r(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function o(a){var s,c;return function(u){s||(s={stop:function(){return c(u.a,2)},catch:function(){return u.v},abrupt:function(h,p){return c(u.a,i[h],p)},delegateYield:function(h,p,m){return s.resultName=p,c(u.d,zx(h),m)},finish:function(h){return c(u.f,h)}},c=function(h,p,m){u.p=s.prev,u.n=s.next;try{return h(p,m)}finally{s.next=u.n}}),s.resultName&&(s[s.resultName]=u.v,s.resultName=void 0),s.sent=u.v,s.next=u.n;try{return a.call(this,s)}finally{u.p=s.prev,u.n=s.next}}}return(Qr=function(){return{wrap:function(c,u,d,h){return t.w(o(c),u,d,h&&h.reverse())},isGeneratorFunction:r,mark:t.m,awrap:function(c,u){return new Vx(c,u)},AsyncIterator:Ad,async:function(c,u,d,h,p){return(r(u)?Ux:vz)(o(c),u,d,h,p)},keys:yz,values:zx}})()}function Bx(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,i)}function kc(t){return function(){var e=this,n=arguments;return new Promise(function(r,i){var o=t.apply(e,n);function a(c){Bx(o,r,i,a,s,"next",c)}function s(c){Bx(o,r,i,a,s,"throw",c)}a(void 0)})}}const bz=(t,e,n)=>n!==void 0?n:`${t}-${e}`,Ez=(function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox(),n=e.width,r=e.height;if(n||r)return!0}if(t.getBoundingClientRect){var i=t.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1}),Sz=L.createContext(null),wz=t=>{const{children:e}=t;return L.createElement(Sz.Provider,{value:null},e)};var _z=["b"],Cz=["v"],k0=function(e){return Math.round(Number(e||0))},xz=function(e){if(e instanceof en)return e;if(e&&Ze(e)==="object"&&"h"in e&&"b"in e){var n=e,r=n.b,i=Li(n,_z);return ue(ue({},i),{},{v:r})}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},Fo=(function(t){Oo(n,t);var e=Ro(n);function n(r){return Nn(this,n),e.call(this,xz(r))}return In(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),o=k0(i.s*100),a=k0(i.b*100),s=k0(i.h),c=i.a,u="hsb(".concat(s,", ").concat(o,"%, ").concat(a,"%)"),d="hsba(".concat(s,", ").concat(o,"%, ").concat(a,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?u:d}},{key:"toHsb",value:function(){var i=this.toHsv(),o=i.v,a=Li(i,Cz);return ue(ue({},a),{},{b:o,a:this.a})}}]),n})(en),Az="rc-color-picker",Vs=function(e){return e instanceof Fo?e:new Fo(e)},kz=Vs("#1677ff"),Hx=function(e){var n=e.offset,r=e.targetRef,i=e.containerRef,o=e.color,a=e.type,s=i.current.getBoundingClientRect(),c=s.width,u=s.height,d=r.current.getBoundingClientRect(),h=d.width,p=d.height,m=h/2,v=p/2,b=(n.x+m)/c,y=1-(n.y+v)/u,w=o.toHsb(),C=b,k=(n.x+m)/c*360;if(a)switch(a){case"hue":return Vs(ue(ue({},w),{},{h:k<=0?0:k}));case"alpha":return Vs(ue(ue({},w),{},{a:C<=0?0:C}))}return Vs({h:w.h,s:b<=0?0:b,b:y>=1?1:y,a:w.a})},Wx=function(e,n){var r=e.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:e.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},Tz=function(e){var n=e.color,r=e.prefixCls,i=e.className,o=e.style,a=e.onClick,s="".concat(r,"-color-block");return R.createElement("div",{className:It(s,i),style:o,onClick:a},R.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function Oz(t){var e="touches"in t?t.touches[0]:t,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:e.pageX-n,pageY:e.pageY-r}}function Gx(t){var e=t.targetRef,n=t.containerRef,r=t.direction,i=t.onDragChange,o=t.onDragChangeComplete,a=t.calculate,s=t.color,c=t.disabledDrag,u=R.useState({x:0,y:0}),d=Ce(u,2),h=d[0],p=d[1],m=R.useRef(null),v=R.useRef(null);R.useEffect(function(){p(a())},[s]),R.useEffect(function(){return function(){document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",m.current),document.removeEventListener("touchend",v.current),m.current=null,v.current=null}},[]);var b=function(x){var S=Oz(x),A=S.pageX,T=S.pageY,N=n.current.getBoundingClientRect(),P=N.x,U=N.y,V=N.width,H=N.height,Q=e.current.getBoundingClientRect(),j=Q.width,F=Q.height,D=j/2,Y=F/2,z=Math.max(0,Math.min(A-P,V))-D,q=Math.max(0,Math.min(T-U,H))-Y,W={x:z,y:r==="x"?h.y:q};if(j===0&&F===0||j!==F)return!1;i==null||i(W)},y=function(x){x.preventDefault(),b(x)},w=function(x){x.preventDefault(),document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",v.current),document.removeEventListener("touchmove",m.current),document.removeEventListener("touchend",v.current),m.current=null,v.current=null,o==null||o()},C=function(x){document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",v.current),!c&&(b(x),document.addEventListener("mousemove",y),document.addEventListener("mouseup",w),document.addEventListener("touchmove",y),document.addEventListener("touchend",w),m.current=y,v.current=w)};return[h,C]}var Yx=function(e){var n=e.size,r=n===void 0?"default":n,i=e.color,o=e.prefixCls;return R.createElement("div",{className:It("".concat(o,"-handler"),oe({},"".concat(o,"-handler-sm"),r==="small")),style:{backgroundColor:i}})},Kx=function(e){var n=e.children,r=e.style,i=e.prefixCls;return R.createElement("div",{className:"".concat(i,"-palette"),style:ue({position:"relative"},r)},n)},Zx=R.forwardRef(function(t,e){var n=t.children,r=t.x,i=t.y;return R.createElement("div",{ref:e,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),Rz=function(e){var n=e.color,r=e.onChange,i=e.prefixCls,o=e.onChangeComplete,a=e.disabled,s=R.useRef(),c=R.useRef(),u=R.useRef(n),d=gr(function(b){var y=Hx({offset:b,targetRef:c,containerRef:s,color:n});u.current=y,r(y)}),h=Gx({color:n,containerRef:s,targetRef:c,calculate:function(){return Wx(n)},onDragChange:d,onDragChangeComplete:function(){return o==null?void 0:o(u.current)},disabledDrag:a}),p=Ce(h,2),m=p[0],v=p[1];return R.createElement("div",{ref:s,className:"".concat(i,"-select"),onMouseDown:v,onTouchStart:v},R.createElement(Kx,{prefixCls:i},R.createElement(Zx,{x:m.x,y:m.y,ref:c},R.createElement(Yx,{color:n.toRgbString(),prefixCls:i})),R.createElement("div",{className:"".concat(i,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Nz=function(e,n){var r=cx(e,{value:n}),i=Ce(r,2),o=i[0],a=i[1],s=R.useMemo(function(){return Vs(o)},[o]);return[s,a]},Iz=function(e){var n=e.colors,r=e.children,i=e.direction,o=i===void 0?"to right":i,a=e.type,s=e.prefixCls,c=R.useMemo(function(){return n.map(function(u,d){var h=Vs(u);return a==="alpha"&&d===n.length-1&&(h=new Fo(h.setA(1))),h.toRgbString()}).join(",")},[n,a]);return R.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(c,")")}},r)},Pz=function(e){var n=e.prefixCls,r=e.colors,i=e.disabled,o=e.onChange,a=e.onChangeComplete,s=e.color,c=e.type,u=R.useRef(),d=R.useRef(),h=R.useRef(s),p=function(S){return c==="hue"?S.getHue():S.a*100},m=gr(function(x){var S=Hx({offset:x,targetRef:d,containerRef:u,color:s,type:c});h.current=S,o(p(S))}),v=Gx({color:s,targetRef:d,containerRef:u,calculate:function(){return Wx(s,c)},onDragChange:m,onDragChangeComplete:function(){a(p(h.current))},direction:"x",disabledDrag:i}),b=Ce(v,2),y=b[0],w=b[1],C=R.useMemo(function(){if(c==="hue"){var x=s.toHsb();x.s=1,x.b=1,x.a=1;var S=new Fo(x);return S}return s},[s,c]),k=R.useMemo(function(){return r.map(function(x){return"".concat(x.color," ").concat(x.percent,"%")})},[r]);return R.createElement("div",{ref:u,className:It("".concat(n,"-slider"),"".concat(n,"-slider-").concat(c)),onMouseDown:w,onTouchStart:w},R.createElement(Kx,{prefixCls:n},R.createElement(Zx,{x:y.x,y:y.y,ref:d},R.createElement(Yx,{size:"small",color:C.toHexString(),prefixCls:n})),R.createElement(Iz,{colors:k,type:c,prefixCls:n})))};function Mz(t){return L.useMemo(function(){var e=t||{},n=e.slider;return[n||Pz]},[t])}var Lz=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],Fz=R.forwardRef(function(t,e){var n=t.value,r=t.defaultValue,i=t.prefixCls,o=i===void 0?Az:i,a=t.onChange,s=t.onChangeComplete,c=t.className,u=t.style,d=t.panelRender,h=t.disabledAlpha,p=h===void 0?!1:h,m=t.disabled,v=m===void 0?!1:m,b=t.components,y=Mz(b),w=Ce(y,1),C=w[0],k=Nz(r||kz,n),x=Ce(k,2),S=x[0],A=x[1],T=R.useMemo(function(){return S.setA(1).toRgbString()},[S]),N=function(q,W){n||A(q),a==null||a(q,W)},P=function(q){return new Fo(S.setHue(q))},U=function(q){return new Fo(S.setA(q/100))},V=function(q){N(P(q),{type:"hue",value:q})},H=function(q){N(U(q),{type:"alpha",value:q})},Q=function(q){s&&s(P(q))},j=function(q){s&&s(U(q))},F=It("".concat(o,"-panel"),c,oe({},"".concat(o,"-panel-disabled"),v)),D={prefixCls:o,disabled:v,color:S},Y=R.createElement(R.Fragment,null,R.createElement(Rz,Nr({onChange:N},D,{onChangeComplete:s})),R.createElement("div",{className:"".concat(o,"-slider-container")},R.createElement("div",{className:It("".concat(o,"-slider-group"),oe({},"".concat(o,"-slider-group-disabled-alpha"),p))},R.createElement(C,Nr({},D,{type:"hue",colors:Lz,min:0,max:359,value:S.getHue(),onChange:V,onChangeComplete:Q})),!p&&R.createElement(C,Nr({},D,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:T}],min:0,max:100,value:S.a*100,onChange:H,onChangeComplete:j}))),R.createElement(Tz,{color:S.toRgbString(),prefixCls:o})));return R.createElement("div",{className:F,style:u,ref:e},typeof d=="function"?d(Y):Y)});Fz.displayName="ColorPicker";const jz=(t,e)=>(t==null?void 0:t.replace(/[^\w/]/g,"").slice(0,e?8:6))||"",Dz=(t,e)=>t?jz(t,e):"";let Qx=(function(){function t(e){Nn(this,t);var n;if(this.cleared=!1,e instanceof t){this.metaColor=e.metaColor.clone(),this.colors=(n=e.colors)===null||n===void 0?void 0:n.map(i=>({color:new t(i.color),percent:i.percent})),this.cleared=e.cleared;return}const r=Array.isArray(e);r&&e.length?(this.colors=e.map(({color:i,percent:o})=>({color:new t(i),percent:o})),this.metaColor=new Fo(this.colors[0].color.metaColor)):this.metaColor=new Fo(r?"":e),(!e||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return In(t,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Dz(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const o=n.colors[i];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])})();const Vz=t=>({animationDuration:t,animationFillMode:"both"}),Uz=t=>({animationDuration:t,animationFillMode:"both"}),zz=(t,e,n,r,i=!1)=>{const o=i?"&":"";return{[`
|
|
622
|
+
${o}${t}-enter,
|
|
623
|
+
${o}${t}-appear
|
|
624
|
+
`]:Object.assign(Object.assign({},Vz(r)),{animationPlayState:"paused"}),[`${o}${t}-leave`]:Object.assign(Object.assign({},Uz(r)),{animationPlayState:"paused"}),[`
|
|
625
|
+
${o}${t}-enter${t}-enter-active,
|
|
626
|
+
${o}${t}-appear${t}-appear-active
|
|
627
|
+
`]:{animationName:e,animationPlayState:"running"},[`${o}${t}-leave${t}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Bz=new Pn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Hz=new Pn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),qx=new Pn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Jx=new Pn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Wz=new Pn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Gz=new Pn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Yz=new Pn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Kz=new Pn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Zz=new Pn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Qz=new Pn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),qz=new Pn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Jz=new Pn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Xz={zoom:{inKeyframes:Bz,outKeyframes:Hz},"zoom-big":{inKeyframes:qx,outKeyframes:Jx},"zoom-big-fast":{inKeyframes:qx,outKeyframes:Jx},"zoom-left":{inKeyframes:Yz,outKeyframes:Kz},"zoom-right":{inKeyframes:Zz,outKeyframes:Qz},"zoom-up":{inKeyframes:Wz,outKeyframes:Gz},"zoom-down":{inKeyframes:qz,outKeyframes:Jz}},$z=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:i,outKeyframes:o}=Xz[e];return[zz(r,i,o,t.motionDurationFast),{[`
|
|
628
|
+
${r}-enter,
|
|
629
|
+
${r}-appear
|
|
630
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:t.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]},eB=t=>t instanceof Qx?t:new Qx(t);var Xx=L.createContext(null),$x=[];function tB(t,e){var n=L.useState(function(){if(!mr())return null;var v=document.createElement("div");return e&&v.setAttribute("data-debug",e),v}),r=Ce(n,1),i=r[0],o=L.useRef(!1),a=L.useContext(Xx),s=L.useState($x),c=Ce(s,2),u=c[0],d=c[1],h=a||(o.current?void 0:function(v){d(function(b){var y=[v].concat(je(b));return y})});function p(){i.parentElement||document.body.appendChild(i),o.current=!0}function m(){var v;(v=i.parentElement)===null||v===void 0||v.removeChild(i),o.current=!1}return $n(function(){return t?a?a(p):p():m(),m},[t]),$n(function(){u.length&&(u.forEach(function(v){return v()}),d($x))},[u]),[i,h]}function nB(t){var e="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=e;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,o;if(t){var a=getComputedStyle(t);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(t,"::-webkit-scrollbar"),c=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=c?"width: ".concat(s.width,";"):"",h=u?"height: ".concat(s.height,";"):"";No(`
|
|
631
|
+
#`.concat(e,`::-webkit-scrollbar {
|
|
632
|
+
`).concat(d,`
|
|
633
|
+
`).concat(h,`
|
|
634
|
+
}`),e)}catch(v){console.error(v),i=c,o=u}}document.body.appendChild(n);var p=t&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,m=t&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),gc(e),{width:p,height:m}}function rB(t){return typeof document>"u"||!t||!(t instanceof Element)?{width:0,height:0}:nB(t)}function iB(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var oB="rc-util-locker-".concat(Date.now()),e8=0;function aB(t){var e=!!t,n=L.useState(function(){return e8+=1,"".concat(oB,"_").concat(e8)}),r=Ce(n,1),i=r[0];$n(function(){if(e){var o=rB(document.body).width,a=iB();No(`
|
|
635
|
+
html body {
|
|
636
|
+
overflow-y: hidden;
|
|
637
|
+
`.concat(a?"width: calc(100% - ".concat(o,"px);"):"",`
|
|
638
|
+
}`),i)}else gc(i);return function(){gc(i)}},[e,i])}var sB=!1;function lB(t){return sB}var t8=function(e){return e===!1?!1:!mr()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e},T0=L.forwardRef(function(t,e){var n=t.open,r=t.autoLock,i=t.getContainer,o=t.debug,a=t.autoDestroy,s=a===void 0?!0:a,c=t.children,u=L.useState(n),d=Ce(u,2),h=d[0],p=d[1],m=h||n;$t(mr()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),L.useEffect(function(){(s||n)&&p(n)},[n,s]);var v=L.useState(function(){return t8(i)}),b=Ce(v,2),y=b[0],w=b[1];L.useEffect(function(){var H=t8(i);w(H??null)});var C=tB(m&&!y,o),k=Ce(C,2),x=k[0],S=k[1],A=y??x;aB(r&&n&&mr()&&(A===x||A===document.body));var T=null;if(c&&qf(c)&&e){var N=c;T=N.ref}var P=bv(T,e);if(!m||!mr()||y===void 0)return null;var U=A===!1||lB(),V=c;return e&&(V=L.cloneElement(c,{ref:P})),L.createElement(Xx.Provider,{value:S},U?V:Nh.createPortal(V,A))});T0.displayName="Portal";function cB(){var t=ue({},L);return t.useId}var n8=0,r8=cB();const i8=r8?(function(e){var n=r8();return e||n}):(function(e){var n=L.useState("ssr-id"),r=Ce(n,2),i=r[0],o=r[1];return L.useEffect(function(){var a=n8;n8+=1,o("rc_unique_".concat(a))},[]),e||i});var Ea="RC_FORM_INTERNAL_HOOKS",jt=function(){$t(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Us=L.createContext({getFieldValue:jt,getFieldsValue:jt,getFieldError:jt,getFieldWarning:jt,getFieldsError:jt,isFieldsTouched:jt,isFieldTouched:jt,isFieldValidating:jt,isFieldsValidating:jt,resetFields:jt,setFields:jt,setFieldValue:jt,setFieldsValue:jt,validateFields:jt,submit:jt,getInternalHooks:function(){return jt(),{dispatch:jt,initEntityValue:jt,registerField:jt,useSubscribe:jt,setInitialValues:jt,destroyForm:jt,setCallbacks:jt,registerWatch:jt,getFields:jt,setValidateMessages:jt,setPreserve:jt,getInitialValue:jt}}}),kd=L.createContext(null);function O0(t){return t==null?[]:Array.isArray(t)?t:[t]}function uB(t){return t&&!!t._init}function R0(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",tel:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var N0=R0();function fB(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}function dB(t,e,n){if(_v())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return n&&hc(i,n.prototype),i}function I0(t){var e=typeof Map=="function"?new Map:void 0;return I0=function(r){if(r===null||!fB(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return dB(r,arguments,pc(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),hc(i,r)},I0(t)}var o8={NODE_ENV:'"production"'},hB=/%[sdj%]/g,a8=function(){};typeof process<"u"&&o8&&o8.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(a8=function(e,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(e,n)});function P0(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var r=n.field;e[r]=e[r]||[],e[r].push(n)}),e}function Pr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=0,o=n.length;if(typeof t=="function")return t.apply(null,n);if(typeof t=="string"){var a=t.replace(hB,function(s){if(s==="%%")return"%";if(i>=o)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return a}return t}function pB(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"||t==="tel"}function Sn(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||pB(e)&&typeof t=="string"&&!t)}function mB(t,e,n){var r=[],i=0,o=t.length;function a(s){r.push.apply(r,je(s||[])),i++,i===o&&n(r)}t.forEach(function(s){e(s,a)})}function s8(t,e,n){var r=0,i=t.length;function o(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<i?e(t[s],o):n([])}o([])}function gB(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,je(t[n]||[]))}),e}var l8=(function(t){Oo(n,t);var e=Ro(n);function n(r,i){var o;return Nn(this,n),o=e.call(this,"Async Validation Error"),oe(it(o),"errors",void 0),oe(it(o),"fields",void 0),o.errors=r,o.fields=i,o}return In(n)})(I0(Error));function vB(t,e,n,r,i){if(e.first){var o=new Promise(function(p,m){var v=function(w){return r(w),w.length?m(new l8(w,P0(w))):p(i)},b=gB(t);s8(b,n,v)});return o.catch(function(p){return p}),o}var a=e.firstFields===!0?Object.keys(t):e.firstFields||[],s=Object.keys(t),c=s.length,u=0,d=[],h=new Promise(function(p,m){var v=function(y){if(d.push.apply(d,y),u++,u===c)return r(d),d.length?m(new l8(d,P0(d))):p(i)};s.length||(r(d),p(i)),s.forEach(function(b){var y=t[b];a.indexOf(b)!==-1?s8(y,n,v):mB(y,n,v)})});return h.catch(function(p){return p}),h}function yB(t){return!!(t&&t.message!==void 0)}function bB(t,e){for(var n=t,r=0;r<e.length;r++){if(n==null)return n;n=n[e[r]]}return n}function c8(t,e){return function(n){var r;return t.fullFields?r=bB(e,t.fullFields):r=e[n.field||t.fullField],yB(n)?(n.field=n.field||t.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||t.fullField}}}function u8(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];Ze(r)==="object"&&Ze(t[n])==="object"?t[n]=ue(ue({},t[n]),r):t[n]=r}}return t}var zs="enum",EB=function(e,n,r,i,o){e[zs]=Array.isArray(e[zs])?e[zs]:[],e[zs].indexOf(n)===-1&&i.push(Pr(o.messages[zs],e.fullField,e[zs].join(", ")))},SB=function(e,n,r,i,o){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||i.push(Pr(o.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(n)||i.push(Pr(o.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},wB=function(e,n,r,i,o){var a=typeof e.len=="number",s=typeof e.min=="number",c=typeof e.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,h=null,p=typeof n=="number",m=typeof n=="string",v=Array.isArray(n);if(p?h="number":m?h="string":v&&(h="array"),!h)return!1;v&&(d=n.length),m&&(d=n.replace(u,"_").length),a?d!==e.len&&i.push(Pr(o.messages[h].len,e.fullField,e.len)):s&&!c&&d<e.min?i.push(Pr(o.messages[h].min,e.fullField,e.min)):c&&!s&&d>e.max?i.push(Pr(o.messages[h].max,e.fullField,e.max)):s&&c&&(d<e.min||d>e.max)&&i.push(Pr(o.messages[h].range,e.fullField,e.min,e.max))},f8=function(e,n,r,i,o,a){e.required&&(!r.hasOwnProperty(e.field)||Sn(n,a||e.type))&&i.push(Pr(o.messages.required,e.fullField))},Td;const _B=(function(){if(Td)return Td;var t="[a-fA-F\\d:]",e=function(A){return A&&A.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(t,")|(?<=").concat(t,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(i.join("|"),")").concat(o),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(a,"$")),d=function(A){return A&&A.exact?s:new RegExp("(?:".concat(e(A)).concat(n).concat(e(A),")|(?:").concat(e(A)).concat(a).concat(e(A),")"),"g")};d.v4=function(S){return S&&S.exact?c:new RegExp("".concat(e(S)).concat(n).concat(e(S)),"g")},d.v6=function(S){return S&&S.exact?u:new RegExp("".concat(e(S)).concat(a).concat(e(S)),"g")};var h="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",m=d.v4().source,v=d.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",w="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",C="(?::\\d{2,5})?",k='(?:[/?#][^\\s"]*)?',x="(?:".concat(h,"|www\\.)").concat(p,"(?:localhost|").concat(m,"|").concat(v,"|").concat(b).concat(y).concat(w,")").concat(C).concat(k);return Td=new RegExp("(?:^".concat(x,"$)"),"i"),Td});var M0={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Tc={integer:function(e){return Tc.number(e)&&parseInt(e,10)===e},float:function(e){return Tc.number(e)&&!Tc.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return Ze(e)==="object"&&!Tc.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(M0.email)},tel:function(e){return typeof e=="string"&&e.length<=32&&!!e.match(M0.tel)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(_B())},hex:function(e){return typeof e=="string"&&!!e.match(M0.hex)}},CB=function(e,n,r,i,o){if(e.required&&n===void 0){f8(e,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],s=e.type;a.indexOf(s)>-1?Tc[s](n)||i.push(Pr(o.messages.types[s],e.fullField,e.type)):s&&Ze(n)!==e.type&&i.push(Pr(o.messages.types[s],e.fullField,e.type))},xB=function(e,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(Pr(o.messages.whitespace,e.fullField))};const ut={required:f8,whitespace:xB,type:CB,range:wB,enum:EB,pattern:SB};var AB=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sn(n)&&!e.required)return r();ut.required(e,n,i,a,o)}r(a)},kB=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(n==null&&!e.required)return r();ut.required(e,n,i,a,o,"array"),n!=null&&(ut.type(e,n,i,a,o),ut.range(e,n,i,a,o))}r(a)},TB=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sn(n)&&!e.required)return r();ut.required(e,n,i,a,o),n!==void 0&&ut.type(e,n,i,a,o)}r(a)},OB=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sn(n,"date")&&!e.required)return r();if(ut.required(e,n,i,a,o),!Sn(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),ut.type(e,c,i,a,o),c&&ut.range(e,c.getTime(),i,a,o)}}r(a)},RB="enum",NB=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sn(n)&&!e.required)return r();ut.required(e,n,i,a,o),n!==void 0&&ut[RB](e,n,i,a,o)}r(a)},IB=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sn(n)&&!e.required)return r();ut.required(e,n,i,a,o),n!==void 0&&(ut.type(e,n,i,a,o),ut.range(e,n,i,a,o))}r(a)},PB=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sn(n)&&!e.required)return r();ut.required(e,n,i,a,o),n!==void 0&&(ut.type(e,n,i,a,o),ut.range(e,n,i,a,o))}r(a)},MB=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sn(n)&&!e.required)return r();ut.required(e,n,i,a,o),n!==void 0&&ut.type(e,n,i,a,o)}r(a)},LB=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(n===""&&(n=void 0),Sn(n)&&!e.required)return r();ut.required(e,n,i,a,o),n!==void 0&&(ut.type(e,n,i,a,o),ut.range(e,n,i,a,o))}r(a)},FB=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sn(n)&&!e.required)return r();ut.required(e,n,i,a,o),n!==void 0&&ut.type(e,n,i,a,o)}r(a)},jB=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sn(n,"string")&&!e.required)return r();ut.required(e,n,i,a,o),Sn(n,"string")||ut.pattern(e,n,i,a,o)}r(a)},DB=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sn(n)&&!e.required)return r();ut.required(e,n,i,a,o),Sn(n)||ut.type(e,n,i,a,o)}r(a)},VB=function(e,n,r,i,o){var a=[],s=Array.isArray(n)?"array":Ze(n);ut.required(e,n,i,a,o,s),r(a)},UB=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sn(n,"string")&&!e.required)return r();ut.required(e,n,i,a,o,"string"),Sn(n,"string")||(ut.type(e,n,i,a,o),ut.range(e,n,i,a,o),ut.pattern(e,n,i,a,o),e.whitespace===!0&&ut.whitespace(e,n,i,a,o))}r(a)},Od=function(e,n,r,i,o){var a=e.type,s=[],c=e.required||!e.required&&i.hasOwnProperty(e.field);if(c){if(Sn(n,a)&&!e.required)return r();ut.required(e,n,i,s,o,a),Sn(n,a)||ut.type(e,n,i,s,o)}r(s)};const Oc={string:UB,method:MB,number:LB,boolean:TB,regexp:DB,integer:PB,float:IB,array:kB,object:FB,enum:NB,pattern:jB,date:OB,url:Od,hex:Od,email:Od,tel:Od,required:VB,any:AB};var Rc=(function(){function t(e){Nn(this,t),oe(this,"rules",null),oe(this,"_messages",N0),this.define(e)}return In(t,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Ze(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];r.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=u8(R0(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,s=i,c=o;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function u(v){var b=[],y={};function w(k){if(Array.isArray(k)){var x;b=(x=b).concat.apply(x,je(k))}else b.push(k)}for(var C=0;C<v.length;C++)w(v[C]);b.length?(y=P0(b),c(b,y)):c(null,a)}if(s.messages){var d=this.messages();d===N0&&(d=R0()),u8(d,s.messages),s.messages=d}else s.messages=this.messages();var h={},p=s.keys||Object.keys(this.rules);p.forEach(function(v){var b=r.rules[v],y=a[v];b.forEach(function(w){var C=w;typeof C.transform=="function"&&(a===n&&(a=ue({},a)),y=a[v]=C.transform(y),y!=null&&(C.type=C.type||(Array.isArray(y)?"array":Ze(y)))),typeof C=="function"?C={validator:C}:C=ue({},C),C.validator=r.getValidationMethod(C),C.validator&&(C.field=v,C.fullField=C.fullField||v,C.type=r.getType(C),h[v]=h[v]||[],h[v].push({rule:C,value:y,source:a,field:v}))})});var m={};return vB(h,s,function(v,b){var y=v.rule,w=(y.type==="object"||y.type==="array")&&(Ze(y.fields)==="object"||Ze(y.defaultField)==="object");w=w&&(y.required||!y.required&&v.value),y.field=v.field;function C(T,N){return ue(ue({},N),{},{fullField:"".concat(y.fullField,".").concat(T),fullFields:y.fullFields?[].concat(je(y.fullFields),[T]):[T]})}function k(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],N=Array.isArray(T)?T:[T];!s.suppressWarning&&N.length&&t.warning("async-validator:",N),N.length&&y.message!==void 0&&y.message!==null&&(N=[].concat(y.message));var P=N.map(c8(y,a));if(s.first&&P.length)return m[y.field]=1,b(P);if(!w)b(P);else{if(y.required&&!v.value)return y.message!==void 0?P=[].concat(y.message).map(c8(y,a)):s.error&&(P=[s.error(y,Pr(s.messages.required,y.field))]),b(P);var U={};y.defaultField&&Object.keys(v.value).map(function(Q){U[Q]=y.defaultField}),U=ue(ue({},U),v.rule.fields);var V={};Object.keys(U).forEach(function(Q){var j=U[Q],F=Array.isArray(j)?j:[j];V[Q]=F.map(C.bind(null,Q))});var H=new t(V);H.messages(s.messages),v.rule.options&&(v.rule.options.messages=s.messages,v.rule.options.error=s.error),H.validate(v.value,v.rule.options||s,function(Q){var j=[];P&&P.length&&j.push.apply(j,je(P)),Q&&Q.length&&j.push.apply(j,je(Q)),b(j.length?j:null)})}}var x;if(y.asyncValidator)x=y.asyncValidator(y,v.value,k,v.source,s);else if(y.validator){try{x=y.validator(y,v.value,k,v.source,s)}catch(T){var S,A;(S=(A=console).error)===null||S===void 0||S.call(A,T),s.suppressValidatorError||setTimeout(function(){throw T},0),k(T.message)}x===!0?k():x===!1?k(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):x instanceof Array?k(x):x instanceof Error&&k(x.message)}x&&x.then&&x.then(function(){return k()},function(T){return k(T)})},function(v){u(v)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Oc.hasOwnProperty(n.type))throw new Error(Pr("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?Oc.required:Oc[this.getType(n)]||void 0}}]),t})();oe(Rc,"register",function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Oc[e]=n}),oe(Rc,"warning",a8),oe(Rc,"messages",N0),oe(Rc,"validators",Oc);var Mr="'${name}' is not a valid ${type}",d8={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Mr,method:Mr,array:Mr,object:Mr,number:Mr,date:Mr,boolean:Mr,integer:Mr,float:Mr,regexp:Mr,email:Mr,url:Mr,hex:Mr},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},h8=Rc;function zB(t,e){return t.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return e[r]})}var p8="CODE_LOGIC_ERROR";function L0(t,e,n,r,i){return F0.apply(this,arguments)}function F0(){return F0=kc(Qr().mark(function t(e,n,r,i,o){var a,s,c,u,d,h,p,m,v;return Qr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return a=ue({},r),delete a.ruleIndex,h8.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(w){return console.error(w),Promise.reject(p8)}}),c=null,a&&a.type==="array"&&a.defaultField&&(c=a.defaultField,delete a.defaultField),u=new h8(oe({},e,[a])),d=Ms(d8,i.validateMessages),u.messages(d),h=[],y.prev=10,y.next=13,Promise.resolve(u.validate(oe({},e,n),ue({},i)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(h=y.t0.errors.map(function(w,C){var k=w.message,x=k===p8?d.default:k;return L.isValidElement(x)?L.cloneElement(x,{key:"error_".concat(C)}):x}));case 18:if(!(!h.length&&c&&Array.isArray(n)&&n.length>0)){y.next=23;break}return y.next=21,Promise.all(n.map(function(w,C){return L0("".concat(e,".").concat(C),w,c,i,o)}));case 21:return p=y.sent,y.abrupt("return",p.reduce(function(w,C){return[].concat(je(w),je(C))},[]));case 23:return m=ue(ue({},r),{},{name:e,enum:(r.enum||[]).join(", ")},o),v=h.map(function(w){return typeof w=="string"?zB(w,m):w}),y.abrupt("return",v);case 26:case"end":return y.stop()}},t,null,[[10,15]])})),F0.apply(this,arguments)}function BB(t,e,n,r,i,o){var a=t.join("."),s=n.map(function(d,h){var p=d.validator,m=ue(ue({},d),{},{ruleIndex:h});return p&&(m.validator=function(v,b,y){var w=!1,C=function(){for(var S=arguments.length,A=new Array(S),T=0;T<S;T++)A[T]=arguments[T];Promise.resolve().then(function(){$t(!w,"Your validator function has already return a promise. `callback` will be ignored."),w||y.apply(void 0,A)})},k=p(v,b,C);w=k&&typeof k.then=="function"&&typeof k.catch=="function",$t(w,"`callback` is deprecated. Please return a promise instead."),w&&k.then(function(){y()}).catch(function(x){y(x||" ")})}),m}).sort(function(d,h){var p=d.warningOnly,m=d.ruleIndex,v=h.warningOnly,b=h.ruleIndex;return!!p==!!v?m-b:p?1:-1}),c;if(i===!0)c=new Promise((function(){var d=kc(Qr().mark(function h(p,m){var v,b,y;return Qr().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:v=0;case 1:if(!(v<s.length)){C.next=12;break}return b=s[v],C.next=5,L0(a,e,b,r,o);case 5:if(y=C.sent,!y.length){C.next=9;break}return m([{errors:y,rule:b}]),C.abrupt("return");case 9:v+=1,C.next=1;break;case 12:p([]);case 13:case"end":return C.stop()}},h)}));return function(h,p){return d.apply(this,arguments)}})());else{var u=s.map(function(d){return L0(a,e,d,r,o).then(function(h){return{errors:h,rule:d}})});c=(i?WB(u):HB(u)).then(function(d){return Promise.reject(d)})}return c.catch(function(d){return d}),c}function HB(t){return j0.apply(this,arguments)}function j0(){return j0=kc(Qr().mark(function t(e){return Qr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(e).then(function(i){var o,a=(o=[]).concat.apply(o,je(i));return a}));case 1:case"end":return r.stop()}},t)})),j0.apply(this,arguments)}function WB(t){return D0.apply(this,arguments)}function D0(){return D0=kc(Qr().mark(function t(e){var n;return Qr().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return n=0,i.abrupt("return",new Promise(function(o){e.forEach(function(a){a.then(function(s){s.errors.length&&o([s]),n+=1,n===e.length&&o([])})})}));case 2:case"end":return i.stop()}},t)})),D0.apply(this,arguments)}function un(t){return O0(t)}function m8(t,e){var n={};return e.forEach(function(r){var i=ji(t,r);n=yi(n,r,i)}),n}function Bs(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return t&&t.some(function(r){return g8(e,r,n)})}function g8(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!t||!e||!n&&t.length!==e.length?!1:e.every(function(r,i){return t[i]===r})}function GB(t,e){if(t===e)return!0;if(!t&&e||t&&!e||!t||!e||Ze(t)!=="object"||Ze(e)!=="object")return!1;var n=Object.keys(t),r=Object.keys(e),i=new Set([].concat(n,r));return je(i).every(function(o){var a=t[o],s=e[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function YB(t){var e=arguments.length<=1?void 0:arguments[1];return e&&e.target&&Ze(e.target)==="object"&&t in e.target?e.target[t]:e}function v8(t,e,n){var r=t.length;if(e<0||e>=r||n<0||n>=r)return t;var i=t[e],o=e-n;return o>0?[].concat(je(t.slice(0,n)),[i],je(t.slice(n,e)),je(t.slice(e+1,r))):o<0?[].concat(je(t.slice(0,e)),je(t.slice(e+1,n+1)),[i],je(t.slice(n+1,r))):t}var KB=["name"],qr=[];function V0(t,e,n,r,i,o){return typeof t=="function"?t(e,n,"source"in o?{source:o.source}:{}):r!==i}var U0=(function(t){Oo(n,t);var e=Ro(n);function n(r){var i;if(Nn(this,n),i=e.call(this,r),oe(it(i),"state",{resetCount:0}),oe(it(i),"cancelRegisterFunc",null),oe(it(i),"mounted",!1),oe(it(i),"touched",!1),oe(it(i),"dirty",!1),oe(it(i),"validatePromise",void 0),oe(it(i),"prevValidating",void 0),oe(it(i),"errors",qr),oe(it(i),"warnings",qr),oe(it(i),"cancelRegister",function(){var c=i.props,u=c.preserve,d=c.isListField,h=c.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(d,u,un(h)),i.cancelRegisterFunc=null}),oe(it(i),"getNamePath",function(){var c=i.props,u=c.name,d=c.fieldContext,h=d.prefixName,p=h===void 0?[]:h;return u!==void 0?[].concat(je(p),je(u)):[]}),oe(it(i),"getRules",function(){var c=i.props,u=c.rules,d=u===void 0?[]:u,h=c.fieldContext;return d.map(function(p){return typeof p=="function"?p(h):p})}),oe(it(i),"refresh",function(){i.mounted&&i.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),oe(it(i),"metaCache",null),oe(it(i),"triggerMetaEvent",function(c){var u=i.props.onMetaChange;if(u){var d=ue(ue({},i.getMeta()),{},{destroy:c});Tv(i.metaCache,d)||u(d),i.metaCache=d}else i.metaCache=null}),oe(it(i),"onStoreChange",function(c,u,d){var h=i.props,p=h.shouldUpdate,m=h.dependencies,v=m===void 0?[]:m,b=h.onReset,y=d.store,w=i.getNamePath(),C=i.getValue(c),k=i.getValue(y),x=u&&Bs(u,w);switch(d.type==="valueUpdate"&&d.source==="external"&&!Tv(C,k)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=qr,i.warnings=qr,i.triggerMetaEvent()),d.type){case"reset":if(!u||x){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=qr,i.warnings=qr,i.triggerMetaEvent(),b==null||b(),i.refresh();return}break;case"remove":{if(p&&V0(p,c,y,C,k,d)){i.reRender();return}break}case"setField":{var S=d.data;if(x){"touched"in S&&(i.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(i.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(i.errors=S.errors||qr),"warnings"in S&&(i.warnings=S.warnings||qr),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in S&&Bs(u,w,!0)){i.reRender();return}if(p&&!w.length&&V0(p,c,y,C,k,d)){i.reRender();return}break}case"dependenciesUpdate":{var A=v.map(un);if(A.some(function(T){return Bs(d.relatedFields,T)})){i.reRender();return}break}default:if(x||(!v.length||w.length||p)&&V0(p,c,y,C,k,d)){i.reRender();return}break}p===!0&&i.reRender()}),oe(it(i),"validateRules",function(c){var u=i.getNamePath(),d=i.getValue(),h=c||{},p=h.triggerName,m=h.validateOnly,v=m===void 0?!1:m,b=Promise.resolve().then(kc(Qr().mark(function y(){var w,C,k,x,S,A,T;return Qr().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(i.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(w=i.props,C=w.validateFirst,k=C===void 0?!1:C,x=w.messageVariables,S=w.validateDebounce,A=i.getRules(),p&&(A=A.filter(function(U){return U}).filter(function(U){var V=U.validateTrigger;if(!V)return!0;var H=O0(V);return H.includes(p)})),!(S&&p)){P.next=10;break}return P.next=8,new Promise(function(U){setTimeout(U,S)});case 8:if(i.validatePromise===b){P.next=10;break}return P.abrupt("return",[]);case 10:return T=BB(u,d,A,c,k,x),T.catch(function(U){return U}).then(function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qr;if(i.validatePromise===b){var V;i.validatePromise=null;var H=[],Q=[];(V=U.forEach)===null||V===void 0||V.call(U,function(j){var F=j.rule.warningOnly,D=j.errors,Y=D===void 0?qr:D;F?Q.push.apply(Q,je(Y)):H.push.apply(H,je(Y))}),i.errors=H,i.warnings=Q,i.triggerMetaEvent(),i.reRender()}}),P.abrupt("return",T);case 13:case"end":return P.stop()}},y)})));return v||(i.validatePromise=b,i.dirty=!0,i.errors=qr,i.warnings=qr,i.triggerMetaEvent(),i.reRender()),b}),oe(it(i),"isFieldValidating",function(){return!!i.validatePromise}),oe(it(i),"isFieldTouched",function(){return i.touched}),oe(it(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var c=i.props.fieldContext,u=c.getInternalHooks(Ea),d=u.getInitialValue;return d(i.getNamePath())!==void 0}),oe(it(i),"getErrors",function(){return i.errors}),oe(it(i),"getWarnings",function(){return i.warnings}),oe(it(i),"isListField",function(){return i.props.isListField}),oe(it(i),"isList",function(){return i.props.isList}),oe(it(i),"isPreserve",function(){return i.props.preserve}),oe(it(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var c={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return c}),oe(it(i),"getOnlyChild",function(c){if(typeof c=="function"){var u=i.getMeta();return ue(ue({},i.getOnlyChild(c(i.getControlled(),u,i.props.fieldContext))),{},{isFunction:!0})}var d=Zf(c);return d.length!==1||!L.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),oe(it(i),"getValue",function(c){var u=i.props.fieldContext.getFieldsValue,d=i.getNamePath();return ji(c||u(!0),d)}),oe(it(i),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=i.props,d=u.name,h=u.trigger,p=u.validateTrigger,m=u.getValueFromEvent,v=u.normalize,b=u.valuePropName,y=u.getValueProps,w=u.fieldContext,C=p!==void 0?p:w.validateTrigger,k=i.getNamePath(),x=w.getInternalHooks,S=w.getFieldsValue,A=x(Ea),T=A.dispatch,N=i.getValue(),P=y||function(j){return oe({},b,j)},U=c[h],V=d!==void 0?P(N):{};V&&Object.keys(V).forEach(function(j){$t(typeof V[j]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(j,")"))});var H=ue(ue({},c),V);H[h]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var j,F=arguments.length,D=new Array(F),Y=0;Y<F;Y++)D[Y]=arguments[Y];m?j=m.apply(void 0,D):j=YB.apply(void 0,[b].concat(D)),v&&(j=v(j,N,S(!0))),j!==N&&T({type:"updateValue",namePath:k,value:j}),U&&U.apply(void 0,D)};var Q=O0(C||[]);return Q.forEach(function(j){var F=H[j];H[j]=function(){F&&F.apply(void 0,arguments);var D=i.props.rules;D&&D.length&&T({type:"validateField",namePath:k,triggerName:j})}}),H}),r.fieldContext){var o=r.fieldContext.getInternalHooks,a=o(Ea),s=a.initEntityValue;s(it(i))}return i}return In(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.shouldUpdate,a=i.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,c=s(Ea),u=c.registerField;this.cancelRegisterFunc=u(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var i=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),s=a.child,c=a.isFunction,u;return c?u=s:L.isValidElement(s)?u=L.cloneElement(s,this.getControlled(s.props)):($t(!s,"`children` of Field is not validate ReactElement."),u=s),L.createElement(L.Fragment,{key:i},u)}}]),n})(L.Component);oe(U0,"contextType",Us),oe(U0,"defaultProps",{trigger:"onChange",valuePropName:"value"});function y8(t){var e,n=t.name,r=Li(t,KB),i=L.useContext(Us),o=L.useContext(kd),a=n!==void 0?un(n):void 0,s=(e=r.isListField)!==null&&e!==void 0?e:!!o,c="keep";return s||(c="_".concat((a||[]).join("_"))),r.preserve===!1&&s&&a.length<=1&&$t(!1,"`preserve` should not apply on Form.List fields."),L.createElement(U0,Nr({key:c,name:a,isListField:s},r,{fieldContext:i}))}function ZB(t){var e=t.name,n=t.initialValue,r=t.children,i=t.rules,o=t.validateTrigger,a=t.isListField,s=L.useContext(Us),c=L.useContext(kd),u=L.useRef({keys:[],id:0}),d=u.current,h=L.useMemo(function(){var b=un(s.prefixName)||[];return[].concat(je(b),je(un(e)))},[s.prefixName,e]),p=L.useMemo(function(){return ue(ue({},s),{},{prefixName:h})},[s,h]),m=L.useMemo(function(){return{getKey:function(y){var w=h.length,C=y[w];return[d.keys[C],y.slice(w+1)]}}},[h]);if(typeof r!="function")return $t(!1,"Form.List only accepts function as children."),null;var v=function(y,w,C){var k=C.source;return k==="internal"?!1:y!==w};return L.createElement(kd.Provider,{value:m},L.createElement(Us.Provider,{value:p},L.createElement(y8,{name:[],shouldUpdate:v,rules:i,validateTrigger:o,initialValue:n,isList:!0,isListField:a??!!c},function(b,y){var w=b.value,C=w===void 0?[]:w,k=b.onChange,x=s.getFieldValue,S=function(){var P=x(h||[]);return P||[]},A={add:function(P,U){var V=S();U>=0&&U<=V.length?(d.keys=[].concat(je(d.keys.slice(0,U)),[d.id],je(d.keys.slice(U))),k([].concat(je(V.slice(0,U)),[P],je(V.slice(U))))):((U<0||U>V.length)&&$t(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(je(d.keys),[d.id]),k([].concat(je(V),[P]))),d.id+=1},remove:function(P){var U=S(),V=new Set(Array.isArray(P)?P:[P]);V.size<=0||(d.keys=d.keys.filter(function(H,Q){return!V.has(Q)}),k(U.filter(function(H,Q){return!V.has(Q)})))},move:function(P,U){if(P!==U){var V=S();P<0||P>=V.length||U<0||U>=V.length||(d.keys=v8(d.keys,P,U),k(v8(V,P,U)))}}},T=C||[];return Array.isArray(T)||(T=[],$t(!1,"Current value of '".concat(h.join(" > "),"' is not an array type."))),r(T.map(function(N,P){var U=d.keys[P];return U===void 0&&(d.keys[P]=d.id,U=d.keys[P],d.id+=1),{name:P,key:U,isListField:!0}}),A,y)})))}function QB(t){var e=!1,n=t.length,r=[];return t.length?new Promise(function(i,o){t.forEach(function(a,s){a.catch(function(c){return e=!0,c}).then(function(c){n-=1,r[s]=c,!(n>0)&&(e&&o(r),i(r))})})}):Promise.resolve([])}var b8="__@field_split__";function z0(t){return t.map(function(e){return"".concat(Ze(e),":").concat(e)}).join(b8)}var Hs=(function(){function t(){Nn(this,t),oe(this,"kvs",new Map)}return In(t,[{key:"set",value:function(n,r){this.kvs.set(z0(n),r)}},{key:"get",value:function(n){return this.kvs.get(z0(n))}},{key:"update",value:function(n,r){var i=this.get(n),o=r(i);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(z0(n))}},{key:"map",value:function(n){return je(this.kvs.entries()).map(function(r){var i=Ce(r,2),o=i[0],a=i[1],s=o.split(b8);return n({key:s.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=Ce(u,3),h=d[1],p=d[2];return h==="number"?Number(p):p}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),t})(),qB=["name"],JB=In(function t(e){var n=this;Nn(this,t),oe(this,"formHooked",!1),oe(this,"forceRootUpdate",void 0),oe(this,"subscribable",!0),oe(this,"store",{}),oe(this,"fieldEntities",[]),oe(this,"initialValues",{}),oe(this,"callbacks",{}),oe(this,"validateMessages",null),oe(this,"preserve",null),oe(this,"lastValidatePromise",null),oe(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),oe(this,"getInternalHooks",function(r){return r===Ea?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):($t(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),oe(this,"useSubscribe",function(r){n.subscribable=r}),oe(this,"prevWithoutPreserves",null),oe(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,a=Ms(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var c=s.key;a=yi(a,c,ji(r,c))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),oe(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new Hs;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),oe(this,"getInitialValue",function(r){var i=ji(n.initialValues,r);return r.length?Ms(i):i}),oe(this,"setCallbacks",function(r){n.callbacks=r}),oe(this,"setValidateMessages",function(r){n.validateMessages=r}),oe(this,"setPreserve",function(r){n.preserve=r}),oe(this,"watchList",[]),oe(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),oe(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(i,o,r)})}}),oe(this,"timeoutId",null),oe(this,"warningUnhooked",function(){!n.timeoutId&&typeof window<"u"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||$t(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),oe(this,"updateStore",function(r){n.store=r}),oe(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),oe(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new Hs;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),oe(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=un(o);return i.get(a)||{INVALIDATE_NAME_PATH:un(o)}})}),oe(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,s;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&Ze(r)==="object"&&(s=r.strict,a=r.filter),o===!0&&!a)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return c.forEach(function(d){var h,p,m="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var v,b;if((v=(b=d).isList)!==null&&v!==void 0&&v.call(b))return}else if(!o&&(h=(p=d).isListField)!==null&&h!==void 0&&h.call(p))return;if(!a)u.push(m);else{var y="getMeta"in d?d.getMeta():null;a(y)&&u.push(m)}}),m8(n.store,u.map(un))}),oe(this,"getFieldValue",function(r){n.warningUnhooked();var i=un(r);return ji(n.store,i)}),oe(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:un(r[a]),errors:[],warnings:[]}})}),oe(this,"getFieldError",function(r){n.warningUnhooked();var i=un(r),o=n.getFieldsError([i])[0];return o.errors}),oe(this,"getFieldWarning",function(r){n.warningUnhooked();var i=un(r),o=n.getFieldsError([i])[0];return o.warnings}),oe(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i[0],s=i[1],c,u=!1;i.length===0?c=null:i.length===1?Array.isArray(a)?(c=a.map(un),u=!1):(c=null,u=a):(c=a.map(un),u=s);var d=n.getFieldEntities(!0),h=function(y){return y.isFieldTouched()};if(!c)return u?d.every(function(b){return h(b)||b.isList()}):d.some(h);var p=new Hs;c.forEach(function(b){p.set(b,[])}),d.forEach(function(b){var y=b.getNamePath();c.forEach(function(w){w.every(function(C,k){return y[k]===C})&&p.update(w,function(C){return[].concat(je(C),[b])})})});var m=function(y){return y.some(h)},v=p.map(function(b){var y=b.value;return y});return u?v.every(m):v.some(m)}),oe(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),oe(this,"isFieldsValidating",function(r){n.warningUnhooked();var i=n.getFieldEntities();if(!r)return i.some(function(a){return a.isFieldValidating()});var o=r.map(un);return i.some(function(a){var s=a.getNamePath();return Bs(o,s)&&a.isFieldValidating()})}),oe(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),oe(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new Hs,o=n.getFieldEntities(!0);o.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var h=i.get(d)||new Set;h.add({entity:c,value:u}),i.set(d,h)}});var a=function(u){u.forEach(function(d){var h=d.props.initialValue;if(h!==void 0){var p=d.getNamePath(),m=n.getInitialValue(p);if(m!==void 0)$t(!1,"Form already set 'initialValues' with path '".concat(p.join("."),"'. Field can not overwrite it."));else{var v=i.get(p);if(v&&v.size>1)$t(!1,"Multiple Field with path '".concat(p.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var b=n.getFieldValue(p),y=d.isListField();!y&&(!r.skipExist||b===void 0)&&n.updateStore(yi(n.store,p,je(v)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(c){var u=i.get(c);if(u){var d;(d=s).push.apply(d,je(je(u).map(function(h){return h.entity})))}})):s=o,a(s)}),oe(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Ms(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(un);o.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(yi(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),oe(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var s=a.name,c=Li(a,qB),u=un(s);o.push(u),"value"in c&&n.updateStore(yi(n.store,u,c.value)),n.notifyObservers(i,[u],{type:"setField",data:a})}),n.notifyWatch(o)}),oe(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),s=o.getMeta(),c=ue(ue({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return i}),oe(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=ji(n.store,o);a===void 0&&n.updateStore(yi(n.store,o,i))}}),oe(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),oe(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(h){return h!==r}),!n.isMergedPreserve(s)&&(!a||c.length>1)){var u=a?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==u&&n.fieldEntities.every(function(h){return!g8(h.getNamePath(),i)})){var d=n.store;n.updateStore(yi(d,i,u,!0)),n.notifyObservers(d,[i],{type:"remove"}),n.triggerDependenciesUpdate(d,i)}}n.notifyWatch([i])}}),oe(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,o=r.value;n.updateValue(i,o);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),oe(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=ue(ue({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(r,i,a)})}else n.forceRootUpdate()}),oe(this,"triggerDependenciesUpdate",function(r,i){var o=n.getDependencyChildrenFields(i);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[i].concat(je(o))}),o}),oe(this,"updateValue",function(r,i){var o=un(r),a=n.store;n.updateStore(yi(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(a,o),c=n.callbacks.onValuesChange;if(c){var u=m8(n.store,[o]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(je(s)))}),oe(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=Ms(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),oe(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i,errors:[],warnings:[]}])}),oe(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],a=new Hs;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var h=un(d);a.update(h,function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return p.add(c),p})})});var s=function c(u){var d=a.get(u)||new Set;d.forEach(function(h){if(!i.has(h)){i.add(h);var p=h.getNamePath();h.isFieldDirty()&&p.length&&(o.push(p),c(p))}})};return s(r),o}),oe(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var s=new Hs;i.forEach(function(u){var d=u.name,h=u.errors;s.set(d,h)}),a.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var c=a.filter(function(u){var d=u.name;return Bs(r,d)});c.length&&o(c,a)}}),oe(this,"validateFields",function(r,i){n.warningUnhooked();var o,a;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(o=r,a=i):a=r;var s=!!o,c=s?o.map(un):[],u=[],d=String(Date.now()),h=new Set,p=a||{},m=p.recursive,v=p.dirty;n.getFieldEntities(!0).forEach(function(C){if(s||c.push(C.getNamePath()),!(!C.props.rules||!C.props.rules.length)&&!(v&&!C.isFieldDirty())){var k=C.getNamePath();if(h.add(k.join(d)),!s||Bs(c,k,m)){var x=C.validateRules(ue({validateMessages:ue(ue({},d8),n.validateMessages)},a));u.push(x.then(function(){return{name:k,errors:[],warnings:[]}}).catch(function(S){var A,T=[],N=[];return(A=S.forEach)===null||A===void 0||A.call(S,function(P){var U=P.rule.warningOnly,V=P.errors;U?N.push.apply(N,je(V)):T.push.apply(T,je(V))}),T.length?Promise.reject({name:k,errors:T,warnings:N}):{name:k,errors:T,warnings:N}}))}}});var b=QB(u);n.lastValidatePromise=b,b.catch(function(C){return C}).then(function(C){var k=C.map(function(x){var S=x.name;return S});n.notifyObservers(n.store,k,{type:"validateFinish"}),n.triggerOnFieldsChange(k,C)});var y=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(C){var k=C.filter(function(x){return x&&x.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:k,outOfDate:n.lastValidatePromise!==b})});y.catch(function(C){return C});var w=c.filter(function(C){return h.has(C.join(d))});return n.triggerOnFieldsChange(w),y}),oe(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(o){console.error(o)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=e});function E8(t){var e=L.useRef(),n=L.useState({}),r=Ce(n,2),i=r[1];if(!e.current)if(t)e.current=t;else{var o=function(){i({})},a=new JB(o);e.current=a.getForm()}return[e.current]}var B0=L.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),XB=function(e){var n=e.validateMessages,r=e.onFormChange,i=e.onFormFinish,o=e.children,a=L.useContext(B0),s=L.useRef({});return L.createElement(B0.Provider,{value:ue(ue({},a),{},{validateMessages:ue(ue({},a.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:s.current}),a.triggerFormChange(u,d)},triggerFormFinish:function(u,d){i&&i(u,{values:d,forms:s.current}),a.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=ue(ue({},s.current),{},oe({},u,d))),a.registerForm(u,d)},unregisterForm:function(u){var d=ue({},s.current);delete d[u],s.current=d,a.unregisterForm(u)}})},o)},$B=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],eH=function(e,n){var r=e.name,i=e.initialValues,o=e.fields,a=e.form,s=e.preserve,c=e.children,u=e.component,d=u===void 0?"form":u,h=e.validateMessages,p=e.validateTrigger,m=p===void 0?"onChange":p,v=e.onValuesChange,b=e.onFieldsChange,y=e.onFinish,w=e.onFinishFailed,C=e.clearOnDestroy,k=Li(e,$B),x=L.useRef(null),S=L.useContext(B0),A=E8(a),T=Ce(A,1),N=T[0],P=N.getInternalHooks(Ea),U=P.useSubscribe,V=P.setInitialValues,H=P.setCallbacks,Q=P.setValidateMessages,j=P.setPreserve,F=P.destroyForm;L.useImperativeHandle(n,function(){return ue(ue({},N),{},{nativeElement:x.current})}),L.useEffect(function(){return S.registerForm(r,N),function(){S.unregisterForm(r)}},[S,N,r]),Q(ue(ue({},S.validateMessages),h)),H({onValuesChange:v,onFieldsChange:function(ce){if(S.triggerFormChange(r,ce),b){for(var ie=arguments.length,de=new Array(ie>1?ie-1:0),pe=1;pe<ie;pe++)de[pe-1]=arguments[pe];b.apply(void 0,[ce].concat(de))}},onFinish:function(ce){S.triggerFormFinish(r,ce),y&&y(ce)},onFinishFailed:w}),j(s);var D=L.useRef(null);V(i,!D.current),D.current||(D.current=!0),L.useEffect(function(){return function(){return F(C)}},[]);var Y,z=typeof c=="function";if(z){var q=N.getFieldsValue(!0);Y=c(q,N)}else Y=c;U(!z);var W=L.useRef();L.useEffect(function(){GB(W.current||[],o||[])||N.setFields(o||[]),W.current=o},[o,N]);var G=L.useMemo(function(){return ue(ue({},N),{},{validateTrigger:m})},[N,m]),te=L.createElement(kd.Provider,{value:null},L.createElement(Us.Provider,{value:G},Y));return d===!1?te:L.createElement(d,Nr({},k,{ref:x,onSubmit:function(ce){ce.preventDefault(),ce.stopPropagation(),N.submit()},onReset:function(ce){var ie;ce.preventDefault(),N.resetFields(),(ie=k.onReset)===null||ie===void 0||ie.call(k,ce)}}),te)};function S8(t){try{return JSON.stringify(t)}catch{return Math.random()}}var tH=function(t){var e=t.join("__RC_FIELD_FORM_SPLIT__"),n=R.useRef(e);$t(n.current===e,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")};function nH(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],i=e[1],o=i===void 0?{}:i,a=uB(o)?{form:o}:o,s=a.form,c=R.useState(),u=Ce(c,2),d=u[0],h=u[1],p=R.useMemo(function(){return S8(d)},[d]),m=R.useRef(p);m.current=p;var v=R.useContext(Us),b=s||v,y=b&&b._init;$t(e.length===2?s?y:!0:y,"useWatch requires a form instance since it can not auto detect from context.");var w=un(r),C=R.useRef(w);return C.current=w,tH(w),R.useEffect(function(){if(y){var k=b.getFieldsValue,x=b.getInternalHooks,S=x(Ea),A=S.registerWatch,T=function(V,H){var Q=a.preserve?H:V;return typeof r=="function"?r(Q):ji(Q,C.current)},N=A(function(U,V){var H=T(U,V),Q=S8(H);m.current!==Q&&(m.current=Q,h(H))}),P=T(k(),k(!0));return d!==P&&h(P),N}},[y]),d}var rH=L.forwardRef(eH),Nc=rH;Nc.FormProvider=XB,Nc.Field=y8,Nc.List=ZB,Nc.useForm=E8,Nc.useWatch=nH;const H0=L.createContext({});H0.displayName="FormItemInputContext";const iH=({children:t,status:e,override:n})=>{const r=L.useContext(H0),i=L.useMemo(()=>{const o=Object.assign({},r);return n&&delete o.isFormItemInput,e&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[e,n,r]);return L.createElement(H0.Provider,{value:i},t)},oH=t=>{const{space:e,form:n,children:r}=t;if(r==null)return null;let i=r;return n&&(i=R.createElement(iH,{override:!0,status:!0},i)),e&&(i=R.createElement(wz,null,i)),i},aH=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t==null?void 0:t.substr(0,4))});function sH(t){var e=t.prefixCls,n=t.align,r=t.arrow,i=t.arrowPos,o=r||{},a=o.className,s=o.content,c=i.x,u=c===void 0?0:c,d=i.y,h=d===void 0?0:d,p=L.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(n.autoArrow!==!1){var v=n.points[0],b=n.points[1],y=v[0],w=v[1],C=b[0],k=b[1];y===C||!["t","b"].includes(y)?m.top=h:y==="t"?m.top=0:m.bottom=0,w===k||!["l","r"].includes(w)?m.left=u:w==="l"?m.left=0:m.right=0}return L.createElement("div",{ref:p,className:It("".concat(e,"-arrow"),a),style:m},s)}function lH(t){var e=t.prefixCls,n=t.open,r=t.zIndex,i=t.mask,o=t.motion;return i?L.createElement(xd,Nr({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return L.createElement("div",{style:{zIndex:r},className:It("".concat(e,"-mask"),s)})}):null}var w8=L.memo(function(t){var e=t.children;return e},function(t,e){return e.cache});w8.displayName="PopupContent";var _8=L.forwardRef(function(t,e){var n=t.popup,r=t.className,i=t.prefixCls,o=t.style,a=t.target,s=t.onVisibleChanged,c=t.open,u=t.keepDom,d=t.fresh,h=t.onClick,p=t.mask,m=t.arrow,v=t.arrowPos,b=t.align,y=t.motion,w=t.maskMotion,C=t.forceRender,k=t.getPopupContainer,x=t.autoDestroy,S=t.portal,A=t.zIndex,T=t.onMouseEnter,N=t.onMouseLeave,P=t.onPointerEnter,U=t.onPointerDownCapture,V=t.ready,H=t.offsetX,Q=t.offsetY,j=t.offsetR,F=t.offsetB,D=t.onAlign,Y=t.onPrepare,z=t.stretch,q=t.targetWidth,W=t.targetHeight,G=typeof n=="function"?n():n,te=c||u,ne=(k==null?void 0:k.length)>0,ce=L.useState(!k||!ne),ie=Ce(ce,2),de=ie[0],pe=ie[1];if($n(function(){!de&&ne&&a&&pe(!0)},[de,ne,a]),!de)return null;var J="auto",re={left:"-1000vw",top:"-1000vh",right:J,bottom:J};if(V||!c){var he,Ee=b.points,X=b.dynamicInset||((he=b._experimental)===null||he===void 0?void 0:he.dynamicInset),Re=X&&Ee[0][1]==="r",ye=X&&Ee[0][0]==="b";Re?(re.right=j,re.left=J):(re.left=H,re.right=J),ye?(re.bottom=F,re.top=J):(re.top=Q,re.bottom=J)}var Fe={};return z&&(z.includes("height")&&W?Fe.height=W:z.includes("minHeight")&&W&&(Fe.minHeight=W),z.includes("width")&&q?Fe.width=q:z.includes("minWidth")&&q&&(Fe.minWidth=q)),c||(Fe.pointerEvents="none"),L.createElement(S,{open:C||te,getContainer:k&&function(){return k(a)},autoDestroy:x},L.createElement(lH,{prefixCls:i,open:c,zIndex:A,mask:p,motion:w}),L.createElement(ed,{onResize:D,disabled:!c},function(st){return L.createElement(xd,Nr({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(i,"-hidden")},y,{onAppearPrepare:Y,onEnterPrepare:Y,visible:c,onVisibleChanged:function(lt){var Te;y==null||(Te=y.onVisibleChanged)===null||Te===void 0||Te.call(y,lt),s(lt)}}),function(Pe,lt){var Te=Pe.className,nt=Pe.style,Le=It(i,Te,r);return L.createElement("div",{ref:G_(st,e,lt),className:Le,style:ue(ue(ue(ue({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},re),Fe),nt),{},{boxSizing:"border-box",zIndex:A},o),onMouseEnter:T,onMouseLeave:N,onPointerEnter:P,onClick:h,onPointerDownCapture:U},m&&L.createElement(sH,{prefixCls:i,arrow:m,arrowPos:v,align:b}),L.createElement(w8,{cache:!c&&!d},G))})}))});_8.displayName="Popup";var C8=L.forwardRef(function(t,e){var n=t.children,r=t.getTriggerDOMNode,i=qf(n),o=L.useCallback(function(s){yv(e,r?r(s):s)},[r]),a=bv(o,Ev(n));return i?L.cloneElement(n,{ref:a}):n});C8.displayName="TriggerWrapper";var x8=L.createContext(null);function A8(t){return t?Array.isArray(t)?t:[t]:[]}function cH(t,e,n,r){return L.useMemo(function(){var i=A8(n??e),o=A8(r??e),a=new Set(i),s=new Set(o);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[t,e,n,r])}function uH(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function fH(t,e,n,r){for(var i=n.points,o=Object.keys(t),a=0;a<o.length;a+=1){var s,c=o[a];if(uH((s=t[c])===null||s===void 0?void 0:s.points,i,r))return"".concat(e,"-placement-").concat(c)}return""}function k8(t,e,n,r){return e||(n?{motionName:"".concat(t,"-").concat(n)}:r?{motionName:r}:null)}function Ic(t){return t.ownerDocument.defaultView}function W0(t){for(var e=[],n=t==null?void 0:t.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=Ic(n).getComputedStyle(n),o=i.overflowX,a=i.overflowY,s=i.overflow;[o,a,s].some(function(c){return r.includes(c)})&&e.push(n),n=n.parentElement}return e}function Pc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(t)?e:t}function Mc(t){return Pc(parseFloat(t),0)}function T8(t,e){var n=ue({},t);return(e||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=Ic(r).getComputedStyle(r),o=i.overflow,a=i.overflowClipMargin,s=i.borderTopWidth,c=i.borderBottomWidth,u=i.borderLeftWidth,d=i.borderRightWidth,h=r.getBoundingClientRect(),p=r.offsetHeight,m=r.clientHeight,v=r.offsetWidth,b=r.clientWidth,y=Mc(s),w=Mc(c),C=Mc(u),k=Mc(d),x=Pc(Math.round(h.width/v*1e3)/1e3),S=Pc(Math.round(h.height/p*1e3)/1e3),A=(v-b-C-k)*x,T=(p-m-y-w)*S,N=y*S,P=w*S,U=C*x,V=k*x,H=0,Q=0;if(o==="clip"){var j=Mc(a);H=j*x,Q=j*S}var F=h.x+U-H,D=h.y+N-Q,Y=F+h.width+2*H-U-V-A,z=D+h.height+2*Q-N-P-T;n.left=Math.max(n.left,F),n.top=Math.max(n.top,D),n.right=Math.min(n.right,Y),n.bottom=Math.min(n.bottom,z)}}),n}function O8(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(e),r=n.match(/^(.*)\%$/);return r?t*(parseFloat(r[1])/100):parseFloat(n)}function R8(t,e){var n=e||[],r=Ce(n,2),i=r[0],o=r[1];return[O8(t.width,i),O8(t.height,o)]}function N8(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[t[0],t[1]]}function Ws(t,e){var n=e[0],r=e[1],i,o;return n==="t"?o=t.y:n==="b"?o=t.y+t.height:o=t.y+t.height/2,r==="l"?i=t.x:r==="r"?i=t.x+t.width:i=t.x+t.width/2,{x:i,y:o}}function jo(t,e){var n={t:"b",b:"t",l:"r",r:"l"};return t.map(function(r,i){return i===e?n[r]||"c":r}).join("")}function dH(t,e,n,r,i,o,a){var s=L.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),c=Ce(s,2),u=c[0],d=c[1],h=L.useRef(0),p=L.useMemo(function(){return e?W0(e):[]},[e]),m=L.useRef({}),v=function(){m.current={}};t||v();var b=gr(function(){if(e&&n&&t){let sr=function(Aa,_i){var Hi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:et,Bo=te.x+Aa,el=te.y+_i,Bc=Bo+ye,Hc=el+Re,Wc=Math.max(Bo,Hi.left),Oe=Math.max(el,Hi.top),Ve=Math.min(Bc,Hi.right),Wt=Math.min(Hc,Hi.bottom);return Math.max(0,(Ve-Wc)*(Wt-Oe))},ao=function(){Zn=te.y+ft,Vn=Zn+Re,Sr=te.x+gt,Ae=Sr+ye};var C,k,x,S,A=e,T=A.ownerDocument,N=Ic(A),P=N.getComputedStyle(A),U=P.position,V=A.style.left,H=A.style.top,Q=A.style.right,j=A.style.bottom,F=A.style.overflow,D=ue(ue({},i[r]),o),Y=T.createElement("div");(C=A.parentElement)===null||C===void 0||C.appendChild(Y),Y.style.left="".concat(A.offsetLeft,"px"),Y.style.top="".concat(A.offsetTop,"px"),Y.style.position=U,Y.style.height="".concat(A.offsetHeight,"px"),Y.style.width="".concat(A.offsetWidth,"px"),A.style.left="0",A.style.top="0",A.style.right="auto",A.style.bottom="auto",A.style.overflow="hidden";var z;if(Array.isArray(n))z={x:n[0],y:n[1],width:0,height:0};else{var q,W,G=n.getBoundingClientRect();G.x=(q=G.x)!==null&&q!==void 0?q:G.left,G.y=(W=G.y)!==null&&W!==void 0?W:G.top,z={x:G.x,y:G.y,width:G.width,height:G.height}}var te=A.getBoundingClientRect(),ne=N.getComputedStyle(A),ce=ne.height,ie=ne.width;te.x=(k=te.x)!==null&&k!==void 0?k:te.left,te.y=(x=te.y)!==null&&x!==void 0?x:te.top;var de=T.documentElement,pe=de.clientWidth,J=de.clientHeight,re=de.scrollWidth,he=de.scrollHeight,Ee=de.scrollTop,X=de.scrollLeft,Re=te.height,ye=te.width,Fe=z.height,st=z.width,Pe={left:0,top:0,right:pe,bottom:J},lt={left:-X,top:-Ee,right:re-X,bottom:he-Ee},Te=D.htmlRegion,nt="visible",Le="visibleFirst";Te!=="scroll"&&Te!==Le&&(Te=nt);var Qe=Te===Le,At=T8(lt,p),we=T8(Pe,p),et=Te===nt?we:At,kt=Qe?we:et;A.style.left="auto",A.style.top="auto",A.style.right="0",A.style.bottom="0";var Yt=A.getBoundingClientRect();A.style.left=V,A.style.top=H,A.style.right=Q,A.style.bottom=j,A.style.overflow=F,(S=A.parentElement)===null||S===void 0||S.removeChild(Y);var Qt=Pc(Math.round(ye/parseFloat(ie)*1e3)/1e3),wn=Pc(Math.round(Re/parseFloat(ce)*1e3)/1e3);if(Qt===0||wn===0||dc(n)&&!Ez(n))return;var vr=D.offset,yt=D.targetOffset,bt=R8(te,vr),sn=Ce(bt,2),tn=sn[0],Vt=sn[1],_n=R8(z,yt),nn=Ce(_n,2),Kn=nn[0],ro=nn[1];z.x-=Kn,z.y-=ro;var $r=D.points||[],yr=Ce($r,2),Vi=yr[0],br=yr[1],rr=N8(br),fn=N8(Vi),qe=Ws(z,rr),Cn=Ws(te,fn),vn=ue({},D),gt=qe.x-Cn.x+tn,ft=qe.y-Cn.y+Vt,Kt=sr(gt,ft),ir=sr(gt,ft,we),yn=Ws(z,["t","l"]),pt=Ws(te,["t","l"]),Ln=Ws(z,["b","r"]),Er=Ws(te,["b","r"]),Et=D.overflow||{},Ut=Et.adjustX,bn=Et.adjustY,Pt=Et.shiftX,or=Et.shiftY,ei=function(_i){return typeof _i=="boolean"?_i:_i>=0},Zn,Vn,Sr,Ae;ao();var K=ei(bn),me=fn[0]===rr[0];if(K&&fn[0]==="t"&&(Vn>kt.bottom||m.current.bt)){var xe=ft;me?xe-=Re-Fe:xe=yn.y-Er.y-Vt;var St=sr(gt,xe),Zt=sr(gt,xe,we);St>Kt||St===Kt&&(!Qe||Zt>=ir)?(m.current.bt=!0,ft=xe,Vt=-Vt,vn.points=[jo(fn,0),jo(rr,0)]):m.current.bt=!1}if(K&&fn[0]==="b"&&(Zn<kt.top||m.current.tb)){var Tt=ft;me?Tt+=Re-Fe:Tt=Ln.y-pt.y-Vt;var dn=sr(gt,Tt),ar=sr(gt,Tt,we);dn>Kt||dn===Kt&&(!Qe||ar>=ir)?(m.current.tb=!0,ft=Tt,Vt=-Vt,vn.points=[jo(fn,0),jo(rr,0)]):m.current.tb=!1}var wr=ei(Ut),Si=fn[1]===rr[1];if(wr&&fn[1]==="l"&&(Ae>kt.right||m.current.rl)){var Dt=gt;Si?Dt-=ye-st:Dt=yn.x-Er.x-tn;var ti=sr(Dt,ft),Ui=sr(Dt,ft,we);ti>Kt||ti===Kt&&(!Qe||Ui>=ir)?(m.current.rl=!0,gt=Dt,tn=-tn,vn.points=[jo(fn,1),jo(rr,1)]):m.current.rl=!1}if(wr&&fn[1]==="r"&&(Sr<kt.left||m.current.lr)){var io=gt;Si?io+=ye-st:io=Ln.x-pt.x-tn;var Sa=sr(io,ft),oo=sr(io,ft,we);Sa>Kt||Sa===Kt&&(!Qe||oo>=ir)?(m.current.lr=!0,gt=io,tn=-tn,vn.points=[jo(fn,1),jo(rr,1)]):m.current.lr=!1}ao();var _r=Pt===!0?0:Pt;typeof _r=="number"&&(Sr<we.left&&(gt-=Sr-we.left-tn,z.x+st<we.left+_r&&(gt+=z.x-we.left+st-_r)),Ae>we.right&&(gt-=Ae-we.right-tn,z.x>we.right-_r&&(gt+=z.x-we.right+_r)));var wi=or===!0?0:or;typeof wi=="number"&&(Zn<we.top&&(ft-=Zn-we.top-Vt,z.y+Fe<we.top+wi&&(ft+=z.y-we.top+Fe-wi)),Vn>we.bottom&&(ft-=Vn-we.bottom-Vt,z.y>we.bottom-wi&&(ft+=z.y-we.bottom+wi)));var ni=te.x+gt,zi=ni+ye,Do=te.y+ft,Vo=Do+Re,wa=z.x,Ks=wa+st,_a=z.y,Zs=_a+Fe,Ca=Math.max(ni,wa),Qs=Math.min(zi,Ks),qs=(Ca+Qs)/2,xa=qs-ni,Uo=Math.max(Do,_a),Bi=Math.min(Vo,Zs),Js=(Uo+Bi)/2,Xs=Js-Do;a==null||a(e,vn);var ri=Yt.right-te.x-(gt+te.width),zo=Yt.bottom-te.y-(ft+te.height);Qt===1&&(gt=Math.floor(gt),ri=Math.floor(ri)),wn===1&&(ft=Math.floor(ft),zo=Math.floor(zo));var $s={ready:!0,offsetX:gt/Qt,offsetY:ft/wn,offsetR:ri/Qt,offsetB:zo/wn,arrowX:xa/Qt,arrowY:Xs/wn,scaleX:Qt,scaleY:wn,align:vn};d($s)}}),y=function(){h.current+=1;var k=h.current;Promise.resolve().then(function(){h.current===k&&b()})},w=function(){d(function(k){return ue(ue({},k),{},{ready:!1})})};return $n(w,[r]),$n(function(){t||w()},[t]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,y]}function hH(t,e,n,r,i){$n(function(){if(t&&e&&n){let h=function(){r(),i()};var o=e,a=n,s=W0(o),c=W0(a),u=Ic(a),d=new Set([u].concat(je(s),je(c)));return d.forEach(function(p){p.addEventListener("scroll",h,{passive:!0})}),u.addEventListener("resize",h,{passive:!0}),r(),function(){d.forEach(function(p){p.removeEventListener("scroll",h),u.removeEventListener("resize",h)})}}},[t,e,n])}function pH(t,e,n,r,i,o,a,s){var c=L.useRef(t);c.current=t;var u=L.useRef(!1);L.useEffect(function(){if(e&&r&&(!i||o)){var h=function(){u.current=!1},p=function(x){var S;c.current&&!a(((S=x.composedPath)===null||S===void 0||(S=S.call(x))===null||S===void 0?void 0:S[0])||x.target)&&!u.current&&s(!1)},m=Ic(r);m.addEventListener("pointerdown",h,!0),m.addEventListener("mousedown",p,!0),m.addEventListener("contextmenu",p,!0);var v=_0(n);v&&(v.addEventListener("mousedown",p,!0),v.addEventListener("contextmenu",p,!0));{var b,y,w=n==null||(b=n.getRootNode)===null||b===void 0?void 0:b.call(n),C=(y=r.getRootNode)===null||y===void 0?void 0:y.call(r);As(w===C,"trigger element and popup element should in same shadow root.")}return function(){m.removeEventListener("pointerdown",h,!0),m.removeEventListener("mousedown",p,!0),m.removeEventListener("contextmenu",p,!0),v&&(v.removeEventListener("mousedown",p,!0),v.removeEventListener("contextmenu",p,!0))}}},[e,n,r,i,o]);function d(){u.current=!0}return d}var mH=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function gH(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:T0,e=L.forwardRef(function(n,r){var i=n.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=n.children,s=n.action,c=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,h=n.popupVisible,p=n.defaultPopupVisible,m=n.onPopupVisibleChange,v=n.afterPopupVisibleChange,b=n.mouseEnterDelay,y=n.mouseLeaveDelay,w=y===void 0?.1:y,C=n.focusDelay,k=n.blurDelay,x=n.mask,S=n.maskClosable,A=S===void 0?!0:S,T=n.getPopupContainer,N=n.forceRender,P=n.autoDestroy,U=n.destroyPopupOnHide,V=n.popup,H=n.popupClassName,Q=n.popupStyle,j=n.popupPlacement,F=n.builtinPlacements,D=F===void 0?{}:F,Y=n.popupAlign,z=n.zIndex,q=n.stretch,W=n.getPopupClassNameFromAlign,G=n.fresh,te=n.alignPoint,ne=n.onPopupClick,ce=n.onPopupAlign,ie=n.arrow,de=n.popupMotion,pe=n.maskMotion,J=n.popupTransitionName,re=n.popupAnimation,he=n.maskTransitionName,Ee=n.maskAnimation,X=n.className,Re=n.getTriggerDOMNode,ye=Li(n,mH),Fe=P||U||!1,st=L.useState(!1),Pe=Ce(st,2),lt=Pe[0],Te=Pe[1];$n(function(){Te(aH())},[]);var nt=L.useRef({}),Le=L.useContext(x8),Qe=L.useMemo(function(){return{registerSubPopup:function(Ve,Wt){nt.current[Ve]=Wt,Le==null||Le.registerSubPopup(Ve,Wt)}}},[Le]),At=i8(),we=L.useState(null),et=Ce(we,2),kt=et[0],Yt=et[1],Qt=L.useRef(null),wn=gr(function(Oe){Qt.current=Oe,dc(Oe)&&kt!==Oe&&Yt(Oe),Le==null||Le.registerSubPopup(At,Oe)}),vr=L.useState(null),yt=Ce(vr,2),bt=yt[0],sn=yt[1],tn=L.useRef(null),Vt=gr(function(Oe){dc(Oe)&&bt!==Oe&&(sn(Oe),tn.current=Oe)}),_n=L.Children.only(a),nn=(_n==null?void 0:_n.props)||{},Kn={},ro=gr(function(Oe){var Ve,Wt,hn=bt;return(hn==null?void 0:hn.contains(Oe))||((Ve=_0(hn))===null||Ve===void 0?void 0:Ve.host)===Oe||Oe===hn||(kt==null?void 0:kt.contains(Oe))||((Wt=_0(kt))===null||Wt===void 0?void 0:Wt.host)===Oe||Oe===kt||Object.values(nt.current).some(function(qt){return(qt==null?void 0:qt.contains(Oe))||Oe===qt})}),$r=k8(o,de,re,J),yr=k8(o,pe,Ee,he),Vi=L.useState(p||!1),br=Ce(Vi,2),rr=br[0],fn=br[1],qe=h??rr,Cn=gr(function(Oe){h===void 0&&fn(Oe)});$n(function(){fn(h||!1)},[h]);var vn=L.useRef(qe);vn.current=qe;var gt=L.useRef([]);gt.current=[];var ft=gr(function(Oe){var Ve;Cn(Oe),((Ve=gt.current[gt.current.length-1])!==null&&Ve!==void 0?Ve:qe)!==Oe&&(gt.current.push(Oe),m==null||m(Oe))}),Kt=L.useRef(),ir=function(){clearTimeout(Kt.current)},yn=function(Ve){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ir(),Wt===0?ft(Ve):Kt.current=setTimeout(function(){ft(Ve)},Wt*1e3)};L.useEffect(function(){return ir},[]);var pt=L.useState(!1),Ln=Ce(pt,2),Er=Ln[0],Et=Ln[1];$n(function(Oe){(!Oe||qe)&&Et(!0)},[qe]);var Ut=L.useState(null),bn=Ce(Ut,2),Pt=bn[0],or=bn[1],ei=L.useState(null),Zn=Ce(ei,2),Vn=Zn[0],Sr=Zn[1],Ae=function(Ve){Sr([Ve.clientX,Ve.clientY])},K=dH(qe,kt,te&&Vn!==null?Vn:bt,j,D,Y,ce),me=Ce(K,11),xe=me[0],St=me[1],Zt=me[2],Tt=me[3],dn=me[4],ar=me[5],wr=me[6],Si=me[7],Dt=me[8],ti=me[9],Ui=me[10],io=cH(lt,c,u,d),Sa=Ce(io,2),oo=Sa[0],_r=Sa[1],wi=oo.has("click"),ni=_r.has("click")||_r.has("contextMenu"),zi=gr(function(){Er||Ui()}),Do=function(){vn.current&&te&&ni&&yn(!1)};hH(qe,bt,kt,zi,Do),$n(function(){zi()},[Vn,j]),$n(function(){qe&&!(D!=null&&D[j])&&zi()},[JSON.stringify(Y)]);var Vo=L.useMemo(function(){var Oe=fH(D,o,ti,te);return It(Oe,W==null?void 0:W(ti))},[ti,W,D,o,te]);L.useImperativeHandle(r,function(){return{nativeElement:tn.current,popupElement:Qt.current,forceAlign:zi}});var wa=L.useState(0),Ks=Ce(wa,2),_a=Ks[0],Zs=Ks[1],Ca=L.useState(0),Qs=Ce(Ca,2),qs=Qs[0],xa=Qs[1],Uo=function(){if(q&&bt){var Ve=bt.getBoundingClientRect();Zs(Ve.width),xa(Ve.height)}},Bi=function(){Uo(),zi()},Js=function(Ve){Et(!1),Ui(),v==null||v(Ve)},Xs=function(){return new Promise(function(Ve){Uo(),or(function(){return Ve})})};$n(function(){Pt&&(Ui(),Pt(),or(null))},[Pt]);function ri(Oe,Ve,Wt,hn){Kn[Oe]=function(qt){var tl;hn==null||hn(qt),yn(Ve,Wt);for(var Mt=arguments.length,Lt=new Array(Mt>1?Mt-1:0),nl=1;nl<Mt;nl++)Lt[nl-1]=arguments[nl];(tl=nn[Oe])===null||tl===void 0||tl.call.apply(tl,[nn,qt].concat(Lt))}}(wi||ni)&&(Kn.onClick=function(Oe){var Ve;vn.current&&ni?yn(!1):!vn.current&&wi&&(Ae(Oe),yn(!0));for(var Wt=arguments.length,hn=new Array(Wt>1?Wt-1:0),qt=1;qt<Wt;qt++)hn[qt-1]=arguments[qt];(Ve=nn.onClick)===null||Ve===void 0||Ve.call.apply(Ve,[nn,Oe].concat(hn))});var zo=pH(qe,ni,bt,kt,x,A,ro,yn),$s=oo.has("hover"),sr=_r.has("hover"),ao,Aa;$s&&(ri("onMouseEnter",!0,b,function(Oe){Ae(Oe)}),ri("onPointerEnter",!0,b,function(Oe){Ae(Oe)}),ao=function(Ve){(qe||Er)&&kt!==null&&kt!==void 0&&kt.contains(Ve.target)&&yn(!0,b)},te&&(Kn.onMouseMove=function(Oe){var Ve;(Ve=nn.onMouseMove)===null||Ve===void 0||Ve.call(nn,Oe)})),sr&&(ri("onMouseLeave",!1,w),ri("onPointerLeave",!1,w),Aa=function(){yn(!1,w)}),oo.has("focus")&&ri("onFocus",!0,C),_r.has("focus")&&ri("onBlur",!1,k),oo.has("contextMenu")&&(Kn.onContextMenu=function(Oe){var Ve;vn.current&&_r.has("contextMenu")?yn(!1):(Ae(Oe),yn(!0)),Oe.preventDefault();for(var Wt=arguments.length,hn=new Array(Wt>1?Wt-1:0),qt=1;qt<Wt;qt++)hn[qt-1]=arguments[qt];(Ve=nn.onContextMenu)===null||Ve===void 0||Ve.call.apply(Ve,[nn,Oe].concat(hn))}),X&&(Kn.className=It(nn.className,X));var _i=L.useRef(!1);_i.current||(_i.current=N||qe||Er);var Hi=ue(ue({},nn),Kn),Bo={},el=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];el.forEach(function(Oe){ye[Oe]&&(Bo[Oe]=function(){for(var Ve,Wt=arguments.length,hn=new Array(Wt),qt=0;qt<Wt;qt++)hn[qt]=arguments[qt];(Ve=Hi[Oe])===null||Ve===void 0||Ve.call.apply(Ve,[Hi].concat(hn)),ye[Oe].apply(ye,hn)})});var Bc=L.cloneElement(_n,ue(ue({},Hi),Bo)),Hc={x:ar,y:wr},Wc=ie?ue({},ie!==!0?ie:{}):null;return L.createElement(L.Fragment,null,L.createElement(ed,{disabled:!qe,ref:Vt,onResize:Bi},L.createElement(C8,{getTriggerDOMNode:Re},Bc)),_i.current&&L.createElement(x8.Provider,{value:Qe},L.createElement(_8,{portal:t,ref:wn,prefixCls:o,popup:V,className:It(H,Vo),style:Q,target:bt,onMouseEnter:ao,onMouseLeave:Aa,onPointerEnter:ao,zIndex:z,open:qe,keepDom:Er,fresh:G,onClick:ne,onPointerDownCapture:zo,mask:x,motion:$r,maskMotion:yr,onVisibleChanged:Js,onPrepare:Xs,forceRender:N,autoDestroy:Fe,getPopupContainer:T,align:ti,arrow:Wc,arrowPos:Hc,ready:xe,offsetX:St,offsetY:Zt,offsetR:Tt,offsetB:dn,onAlign:zi,stretch:q,targetWidth:_a/Si,targetHeight:qs/Dt})))});return e.displayName="Trigger",e}const vH=gH(T0);function I8(t){var e=t.children,n=t.prefixCls,r=t.id,i=t.overlayInnerStyle,o=t.bodyClassName,a=t.className,s=t.style;return L.createElement("div",{className:It("".concat(n,"-content"),a),style:s},L.createElement("div",{className:It("".concat(n,"-inner"),o),id:r,role:"tooltip",style:i},typeof e=="function"?e():e))}var Gs={shiftX:64,adjustY:1},Ys={adjustX:1,shiftY:!0},Jr=[0,0],yH={left:{points:["cr","cl"],overflow:Ys,offset:[-4,0],targetOffset:Jr},right:{points:["cl","cr"],overflow:Ys,offset:[4,0],targetOffset:Jr},top:{points:["bc","tc"],overflow:Gs,offset:[0,-4],targetOffset:Jr},bottom:{points:["tc","bc"],overflow:Gs,offset:[0,4],targetOffset:Jr},topLeft:{points:["bl","tl"],overflow:Gs,offset:[0,-4],targetOffset:Jr},leftTop:{points:["tr","tl"],overflow:Ys,offset:[-4,0],targetOffset:Jr},topRight:{points:["br","tr"],overflow:Gs,offset:[0,-4],targetOffset:Jr},rightTop:{points:["tl","tr"],overflow:Ys,offset:[4,0],targetOffset:Jr},bottomRight:{points:["tr","br"],overflow:Gs,offset:[0,4],targetOffset:Jr},rightBottom:{points:["bl","br"],overflow:Ys,offset:[4,0],targetOffset:Jr},bottomLeft:{points:["tl","bl"],overflow:Gs,offset:[0,4],targetOffset:Jr},leftBottom:{points:["br","bl"],overflow:Ys,offset:[-4,0],targetOffset:Jr}},bH=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],EH=function(e,n){var r=e.overlayClassName,i=e.trigger,o=i===void 0?["hover"]:i,a=e.mouseEnterDelay,s=a===void 0?0:a,c=e.mouseLeaveDelay,u=c===void 0?.1:c,d=e.overlayStyle,h=e.prefixCls,p=h===void 0?"rc-tooltip":h,m=e.children,v=e.onVisibleChange,b=e.afterVisibleChange,y=e.transitionName,w=e.animation,C=e.motion,k=e.placement,x=k===void 0?"right":k,S=e.align,A=S===void 0?{}:S,T=e.destroyTooltipOnHide,N=T===void 0?!1:T,P=e.defaultVisible,U=e.getTooltipContainer,V=e.overlayInnerStyle;e.arrowContent;var H=e.overlay,Q=e.id,j=e.showArrow,F=j===void 0?!0:j,D=e.classNames,Y=e.styles,z=Li(e,bH),q=i8(Q),W=R.useRef(null);R.useImperativeHandle(n,function(){return W.current});var G=ue({},z);"visible"in e&&(G.popupVisible=e.visible);var te=function(){return L.createElement(I8,{key:"content",prefixCls:p,id:q,bodyClassName:D==null?void 0:D.body,overlayInnerStyle:ue(ue({},V),Y==null?void 0:Y.body)},H)},ne=function(){var ie=L.Children.only(m),de=(ie==null?void 0:ie.props)||{},pe=ue(ue({},de),{},{"aria-describedby":H?q:null});return L.cloneElement(m,pe)};return L.createElement(vH,Nr({popupClassName:It(r,D==null?void 0:D.root),prefixCls:p,popup:te,action:o,builtinPlacements:yH,popupPlacement:x,ref:W,popupAlign:A,getPopupContainer:U,onPopupVisibleChange:v,afterPopupVisibleChange:b,popupTransitionName:y,popupAnimation:w,popupMotion:C,defaultPopupVisible:P,autoDestroy:N,mouseLeaveDelay:u,popupStyle:ue(ue({},d),Y==null?void 0:Y.root),mouseEnterDelay:s,arrow:F},G),ne())};const SH=R.forwardRef(EH);function wH(t){const{sizePopupArrow:e,borderRadiusXS:n,borderRadiusOuter:r}=t,i=e/2,o=0,a=i,s=r*1/Math.sqrt(2),c=i-r*(1-1/Math.sqrt(2)),u=i-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),h=2*i-u,p=d,m=2*i-s,v=c,b=2*i-o,y=a,w=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),C=r*(Math.sqrt(2)-1),k=`polygon(${C}px 100%, 50% ${C}px, ${2*i-C}px 100%, ${C}px 100%)`,x=`path('M ${o} ${a} A ${r} ${r} 0 0 0 ${s} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${h} ${p} L ${m} ${v} A ${r} ${r} 0 0 0 ${b} ${y} Z')`;return{arrowShadowWidth:w,arrowPath:x,arrowPolygon:k}}const _H=(t,e,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:c}=t;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:e,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Xn(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},P8=8;function M8(t){const{contentRadius:e,limitVerticalRadius:n}=t,r=e>12?e+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?P8:r}}function Rd(t,e){return t?e:{}}function CH(t,e,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=t,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},_H(t,e,i)),{"&:before":{background:e}})]},Rd(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Xn(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Rd(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Xn(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Rd(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),Rd(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function xH(t,e,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},o={};switch(t){case"top":case"bottom":o.shiftX=e.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=e.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const L8={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},AH={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},kH=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function TH(t){const{arrowWidth:e,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o}=t,a=e/2,s={},c=M8({contentRadius:o,limitVerticalRadius:!0});return Object.keys(L8).forEach(u=>{const d=r&&AH[u]||L8[u],h=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(s[u]=h,kH.has(u)&&(h.autoArrow=!1),u){case"top":case"topLeft":case"topRight":h.offset[1]=-a-i;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=a+i;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-a-i;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=a+i;break}if(r)switch(u){case"topLeft":case"bottomLeft":h.offset[0]=-c.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":h.offset[0]=c.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":h.offset[1]=-c.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":h.offset[1]=c.arrowOffsetHorizontal*2-a;break}h.overflow=xH(u,c,e,n),h.htmlRegion="visibleFirst"}),s}const OH=t=>{const{calc:e,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:c,boxShadowSecondary:u,paddingSM:d,paddingXS:h,arrowOffsetHorizontal:p,sizePopupArrow:m}=t,v=e(a).add(m).add(p).equal(),b=e(a).mul(2).add(m).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},h0(t)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${n}-inner`]:{minWidth:b,minHeight:c,padding:`${Xn(t.calc(d).div(2).equal())} ${Xn(h)}`,color:`var(--ant-tooltip-color, ${i})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:v},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:t.min(a,P8)}},[`${n}-content`]:{position:"relative"}}),m0(t,(y,{darkColor:w})=>({[`&${n}-${y}`]:{[`${n}-inner`]:{backgroundColor:w},[`${n}-arrow`]:{"--antd-arrow-background-color":w}}}))),{"&-rtl":{direction:"rtl"}})},CH(t,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:t.sizePopupArrow}}]},RH=t=>Object.assign(Object.assign({zIndexPopup:t.zIndexPopupBase+70},M8({contentRadius:t.borderRadius,limitVerticalRadius:!0})),wH(xc(t,{borderRadiusOuter:Math.min(t.borderRadiusOuter,4)}))),F8=(t,e=!0)=>p0("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=r,s=xc(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[OH(s),$z(r,"zoom-big-fast")]},RH,{resetStyle:!1,injectStyle:e})(t),NH=bd.map(t=>`${t}-inverse`);function G0(t,e=!0){return e?[].concat(je(NH),je(bd)).includes(t):bd.includes(t)}function j8(t,e){const n=G0(e),r=It({[`${t}-${e}`]:e&&n}),i={},o={},a=eB(e).toRgb(),c=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return e&&!n&&(i.background=e,i["--ant-tooltip-color"]=c,o["--antd-arrow-background-color"]=e),{className:r,overlayStyle:i,arrowStyle:o}}const IH=t=>{const{prefixCls:e,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a}=t,{getPrefixCls:s}=L.useContext(bi),c=s("tooltip",e),[u,d,h]=F8(c),p=j8(c,o),m=p.arrowStyle,v=Object.assign(Object.assign({},a),p.overlayStyle),b=It(d,h,c,`${c}-pure`,`${c}-placement-${r}`,n,p.className);return u(L.createElement("div",{className:b,style:m},L.createElement("div",{className:`${c}-arrow`}),L.createElement(I8,Object.assign({},t,{className:d,prefixCls:c,overlayInnerStyle:v}),i)))};var PH=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const Y0=L.forwardRef((t,e)=>{var n,r;const{prefixCls:i,openClassName:o,getTooltipContainer:a,color:s,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:h,destroyTooltipOnHide:p,destroyOnHidden:m,arrow:v=!0,title:b,overlay:y,builtinPlacements:w,arrowPointAtCenter:C=!1,autoAdjustOverflow:k=!0,motion:x,getPopupContainer:S,placement:A="top",mouseEnterDelay:T=.1,mouseLeaveDelay:N=.1,overlayStyle:P,rootClassName:U,overlayClassName:V,styles:H,classNames:Q}=t,j=PH(t,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),F=!!v,[,D]=Ac(),{getPopupContainer:Y,getPrefixCls:z,direction:q,className:W,style:G,classNames:te,styles:ne}=oU("tooltip"),ce=Ls("Tooltip"),ie=L.useRef(null),de=()=>{var yt;(yt=ie.current)===null||yt===void 0||yt.forceAlign()};L.useImperativeHandle(e,()=>{var yt,bt;return{forceAlign:de,forcePopupAlign:()=>{ce.deprecated(!1,"forcePopupAlign","forceAlign"),de()},nativeElement:(yt=ie.current)===null||yt===void 0?void 0:yt.nativeElement,popupElement:(bt=ie.current)===null||bt===void 0?void 0:bt.popupElement}}),[["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["destroyTooltipOnHide","destroyOnHidden"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(([yt,bt])=>{ce.deprecated(!(yt in t),yt,bt)}),ce(!p||typeof p=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),ce(!v||typeof v=="boolean"||!("arrowPointAtCenter"in v),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead.");const[pe,J]=cx(!1,{value:(n=t.open)!==null&&n!==void 0?n:t.visible,defaultValue:(r=t.defaultOpen)!==null&&r!==void 0?r:t.defaultVisible}),re=!b&&!y&&b!==0,he=yt=>{var bt,sn;J(re?!1:yt),re||((bt=t.onOpenChange)===null||bt===void 0||bt.call(t,yt),(sn=t.onVisibleChange)===null||sn===void 0||sn.call(t,yt))},Ee=L.useMemo(()=>{var yt,bt;let sn=C;return typeof v=="object"&&(sn=(bt=(yt=v.pointAtCenter)!==null&&yt!==void 0?yt:v.arrowPointAtCenter)!==null&&bt!==void 0?bt:C),w||TH({arrowPointAtCenter:sn,autoAdjustOverflow:k,arrowWidth:F?D.sizePopupArrow:0,borderRadius:D.borderRadius,offset:D.marginXXS})},[C,v,w,D]),X=L.useMemo(()=>b===0?b:y||b||"",[y,b]),Re=L.createElement(oH,{space:!0},typeof X=="function"?X():X),ye=z("tooltip",i),Fe=z(),st=t["data-popover-inject"];let Pe=pe;!("open"in t)&&!("visible"in t)&&re&&(Pe=!1);const lt=L.isValidElement(u)&&!fz(u)?u:L.createElement("span",null,u),Te=lt.props,nt=!Te.className||typeof Te.className=="string"?It(Te.className,o||`${ye}-open`):Te.className,[Le,Qe,At]=F8(ye,!st),we=j8(ye,s),et=we.arrowStyle,kt=It(V,{[`${ye}-rtl`]:q==="rtl"},we.className,U,Qe,At,W,te.root,Q==null?void 0:Q.root),Yt=It(te.body,Q==null?void 0:Q.body),[Qt,wn]=gz("Tooltip",j.zIndex),vr=L.createElement(SH,Object.assign({},j,{zIndex:Qt,showArrow:F,placement:A,mouseEnterDelay:T,mouseLeaveDelay:N,prefixCls:ye,classNames:{root:kt,body:Yt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},et),ne.root),G),P),H==null?void 0:H.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},ne.body),c),H==null?void 0:H.body),we.overlayStyle)},getTooltipContainer:S||a||Y,ref:ie,builtinPlacements:Ee,overlay:Re,visible:Pe,onVisibleChange:he,afterVisibleChange:d??h,arrowContent:L.createElement("span",{className:`${ye}-arrow-content`}),motion:{motionName:bz(Fe,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:m??!!p}),Pe?C0(lt,{className:nt}):lt);return Le(L.createElement(x0.Provider,{value:wn},vr))});Y0.displayName="Tooltip",Y0._InternalPanelDoNotUseOrYouWillBeFired=IH;const MH=new Pn("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),LH=new Pn("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),FH=new Pn("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),jH=new Pn("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),DH=new Pn("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),VH=new Pn("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),UH=t=>{const{componentCls:e,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:o,textFontSizeSM:a,statusSize:s,dotSize:c,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:h,marginXS:p,calc:m}=t,v=`${r}-scroll-number`,b=m0(t,(y,{darkColor:w})=>({[`&${e} ${e}-color-${y}`]:{background:w,[`&:not(${e}-count)`]:{color:w},"a:hover &":{background:w}}}));return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},h0(t)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${e}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:t.indicatorZIndex,minWidth:d,height:d,color:t.badgeTextColor,fontWeight:u,fontSize:o,lineHeight:Xn(d),whiteSpace:"nowrap",textAlign:"center",background:t.badgeColor,borderRadius:m(d).div(2).equal(),boxShadow:`0 0 0 ${Xn(i)} ${t.badgeShadowColor}`,transition:`background ${t.motionDurationMid}`,a:{color:t.badgeTextColor},"a:hover":{color:t.badgeTextColor},"a:hover &":{background:t.badgeColorHover}},[`${e}-count-sm`]:{minWidth:h,height:h,fontSize:a,lineHeight:Xn(h),borderRadius:m(h).div(2).equal()},[`${e}-multiple-words`]:{padding:`0 ${Xn(t.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${e}-dot`]:{zIndex:t.indicatorZIndex,width:c,minWidth:c,height:c,background:t.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${Xn(i)} ${t.badgeShadowColor}`},[`${e}-count, ${e}-dot, ${v}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:VH,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${e}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${e}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${e}-status-success`]:{backgroundColor:t.colorSuccess},[`${e}-status-processing`]:{overflow:"visible",color:t.colorInfo,backgroundColor:t.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:MH,animationDuration:t.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${e}-status-default`]:{backgroundColor:t.colorTextPlaceholder},[`${e}-status-error`]:{backgroundColor:t.colorError},[`${e}-status-warning`]:{backgroundColor:t.colorWarning},[`${e}-status-text`]:{marginInlineStart:p,color:t.colorText,fontSize:t.fontSize}}}),b),{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:LH,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`${e}-zoom-leave`]:{animationName:FH,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`&${e}-not-a-wrapper`]:{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:jH,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`${e}-zoom-leave`]:{animationName:DH,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`&:not(${e}-status)`]:{verticalAlign:"middle"},[`${v}-custom-component, ${e}-count`]:{transform:"none"},[`${v}-custom-component, ${v}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[v]:{overflow:"hidden",transition:`all ${t.motionDurationMid} ${t.motionEaseOutBack}`,[`${v}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${t.motionDurationSlow} ${t.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${v}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${v}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${e}-count, ${e}-dot, ${v}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},D8=t=>{const{fontHeight:e,lineWidth:n,marginXS:r,colorBorderBg:i}=t,o=e,a=n,s=t.colorTextLightSolid,c=t.colorError,u=t.colorErrorHover;return xc(t,{badgeFontHeight:o,badgeShadowSize:a,badgeTextColor:s,badgeColor:c,badgeColorHover:u,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},V8=t=>{const{fontSize:e,lineHeight:n,fontSizeSM:r,lineWidth:i}=t;return{indicatorZIndex:"auto",indicatorHeight:Math.round(e*n)-2*i,indicatorHeightSM:e,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},zH=p0("Badge",t=>{const e=D8(t);return UH(e)},V8),BH=t=>{const{antCls:e,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:o}=t,a=`${e}-ribbon`,s=`${e}-ribbon-wrapper`,c=m0(t,(u,{darkColor:d})=>({[`&${a}-color-${u}`]:{background:d,color:d}}));return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},h0(t)),{position:"absolute",top:r,padding:`0 ${Xn(t.paddingXS)}`,color:t.colorPrimary,lineHeight:Xn(n),whiteSpace:"nowrap",backgroundColor:t.colorPrimary,borderRadius:t.borderRadiusSM,[`${a}-text`]:{color:t.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${Xn(o(i).div(2).equal())} solid`,transform:t.badgeRibbonCornerTransform,transformOrigin:"top",filter:t.badgeRibbonCornerFilter}}),c),{[`&${a}-placement-end`]:{insetInlineEnd:o(i).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:o(i).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},HH=p0(["Badge","Ribbon"],t=>{const e=D8(t);return BH(e)},V8),U8=t=>{const{className:e,prefixCls:n,style:r,color:i,children:o,text:a,placement:s="end",rootClassName:c}=t,{getPrefixCls:u,direction:d}=L.useContext(bi),h=u("ribbon",n),p=`${h}-wrapper`,[m,v,b]=HH(h,p),y=G0(i,!1),w=It(h,`${h}-placement-${s}`,{[`${h}-rtl`]:d==="rtl",[`${h}-color-${i}`]:y},e),C={},k={};return i&&!y&&(C.background=i,k.color=i),m(L.createElement("div",{className:It(p,c,v,b)},o,L.createElement("div",{className:It(w,v),style:Object.assign(Object.assign({},C),r)},L.createElement("span",{className:`${h}-text`},a),L.createElement("div",{className:`${h}-corner`,style:k}))))};U8.displayName="Ribbon";const z8=t=>{const{prefixCls:e,value:n,current:r,offset:i=0}=t;let o;return i&&(o={position:"absolute",top:`${i}00%`,left:0}),L.createElement("span",{style:o,className:It(`${e}-only-unit`,{current:r})},n)};function WH(t,e,n){let r=t,i=0;for(;(r+10)%10!==e;)r+=n,i+=n;return i}const GH=t=>{const{prefixCls:e,count:n,value:r}=t,i=Number(r),o=Math.abs(n),[a,s]=L.useState(i),[c,u]=L.useState(o),d=()=>{s(i),u(o)};L.useEffect(()=>{const m=setTimeout(d,1e3);return()=>clearTimeout(m)},[i]);let h,p;if(a===i||Number.isNaN(i)||Number.isNaN(a))h=[L.createElement(z8,Object.assign({},t,{key:i,current:!0}))],p={transition:"none"};else{h=[];const m=i+10,v=[];for(let C=i;C<=m;C+=1)v.push(C);const b=c<o?1:-1,y=v.findIndex(C=>C%10===a);h=(b<0?v.slice(0,y+1):v.slice(y)).map((C,k)=>{const x=C%10;return L.createElement(z8,Object.assign({},t,{key:C,value:x,offset:b<0?k-y:k,current:k===y}))}),p={transform:`translateY(${-WH(a,i,b)}00%)`}}return L.createElement("span",{className:`${e}-only`,style:p,onTransitionEnd:d},h)};var YH=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const KH=L.forwardRef((t,e)=>{const{prefixCls:n,count:r,className:i,motionClassName:o,style:a,title:s,show:c,component:u="sup",children:d}=t,h=YH(t,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:p}=L.useContext(bi),m=p("scroll-number",n),v=Object.assign(Object.assign({},h),{"data-show":c,style:a,className:It(m,i,o),title:s});let b=r;if(r&&Number(r)%1===0){const y=String(r).split("");b=L.createElement("bdi",null,y.map((w,C)=>L.createElement(GH,{prefixCls:m,count:Number(r),value:w,key:y.length-C})))}return a!=null&&a.borderColor&&(v.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),d?C0(d,y=>({className:It(`${m}-custom-component`,y==null?void 0:y.className,o)})):L.createElement(u,Object.assign({},v,{ref:e}),b)});var ZH=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const K0=L.forwardRef((t,e)=>{var n,r,i,o,a;const{prefixCls:s,scrollNumberPrefixCls:c,children:u,status:d,text:h,color:p,count:m=null,overflowCount:v=99,dot:b=!1,size:y="default",title:w,offset:C,style:k,className:x,rootClassName:S,classNames:A,styles:T,showZero:N=!1}=t,P=ZH(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:U,direction:V,badge:H}=L.useContext(bi),Q=U("badge",s),[j,F,D]=zH(Q),Y=m>v?`${v}+`:m,z=Y==="0"||Y===0||h==="0"||h===0,q=m===null||z&&!N,W=(d!=null||p!=null)&&q,G=d!=null||!z,te=b&&!z,ne=te?"":Y,ce=R.useMemo(()=>((ne==null||ne==="")&&(h==null||h==="")||z&&!N)&&!te,[ne,z,N,te,h]),ie=R.useRef(m);ce||(ie.current=m);const de=ie.current,pe=R.useRef(ne);ce||(pe.current=ne);const J=pe.current,re=R.useRef(te);ce||(re.current=te);const he=R.useMemo(()=>{if(!C)return Object.assign(Object.assign({},H==null?void 0:H.style),k);const Te={marginTop:C[1]};return V==="rtl"?Te.left=Number.parseInt(C[0],10):Te.right=-Number.parseInt(C[0],10),Object.assign(Object.assign(Object.assign({},Te),H==null?void 0:H.style),k)},[V,C,k,H==null?void 0:H.style]),Ee=w??(typeof de=="string"||typeof de=="number"?de:void 0),X=!ce&&(h===0?N:!!h&&h!==!0),Re=X?L.createElement("span",{className:`${Q}-status-text`},h):null,ye=!de||typeof de!="object"?void 0:C0(de,Te=>({style:Object.assign(Object.assign({},he),Te.style)})),Fe=G0(p,!1),st=It(A==null?void 0:A.indicator,(n=H==null?void 0:H.classNames)===null||n===void 0?void 0:n.indicator,{[`${Q}-status-dot`]:W,[`${Q}-status-${d}`]:!!d,[`${Q}-color-${p}`]:Fe}),Pe={};p&&!Fe&&(Pe.color=p,Pe.background=p);const lt=It(Q,{[`${Q}-status`]:W,[`${Q}-not-a-wrapper`]:!u,[`${Q}-rtl`]:V==="rtl"},x,S,H==null?void 0:H.className,(r=H==null?void 0:H.classNames)===null||r===void 0?void 0:r.root,A==null?void 0:A.root,F,D);if(!u&&W&&(h||G||!q)){const Te=he.color;return j(L.createElement("span",Object.assign({},P,{className:lt,style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.root),(i=H==null?void 0:H.styles)===null||i===void 0?void 0:i.root),he)}),L.createElement("span",{className:st,style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.indicator),(o=H==null?void 0:H.styles)===null||o===void 0?void 0:o.indicator),Pe)}),X&&L.createElement("span",{style:{color:Te},className:`${Q}-status-text`},h)))}return j(L.createElement("span",Object.assign({ref:e},P,{className:lt,style:Object.assign(Object.assign({},(a=H==null?void 0:H.styles)===null||a===void 0?void 0:a.root),T==null?void 0:T.root)}),u,L.createElement(xd,{visible:!ce,motionName:`${Q}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:Te})=>{var nt,Le;const Qe=U("scroll-number",c),At=re.current,we=It(A==null?void 0:A.indicator,(nt=H==null?void 0:H.classNames)===null||nt===void 0?void 0:nt.indicator,{[`${Q}-dot`]:At,[`${Q}-count`]:!At,[`${Q}-count-sm`]:y==="small",[`${Q}-multiple-words`]:!At&&J&&J.toString().length>1,[`${Q}-status-${d}`]:!!d,[`${Q}-color-${p}`]:Fe});let et=Object.assign(Object.assign(Object.assign({},T==null?void 0:T.indicator),(Le=H==null?void 0:H.styles)===null||Le===void 0?void 0:Le.indicator),he);return p&&!Fe&&(et=et||{},et.background=p),L.createElement(KH,{prefixCls:Qe,show:!ce,motionClassName:Te,className:we,count:J,title:Ee,style:et,key:"scrollNumber"},ye)}),Re))});K0.Ribbon=U8,K0.displayName="Badge";const QH=({isPopupOpen:t,handlePopupTrigger:e,orgBrandSetting:n,isAuthenticated:r})=>{const i=SE("(max-width: 768px)"),{brand:o,widget_icon_key:a}=n,{unreadMessages:s}=hs(),{messageListUnreadCount:c}=Ao(),u=r?c:Ie.size(s);let d=0;return u>0&&(d=r?u:1),E.jsxs("button",{type:"button",onClick:e,style:{transformOrigin:"center",translate:"50% 50%"},className:`${i&&t?"ed-hidden":""} hover:ed-size-14 ed-fixed ed-bottom-12 ed-right-12 ed-z-[9999999] ed-rounded-full ed-inline-flex ed-justify-center ed-items-center ed-bg-brand ed-size-12 ed-cursor-pointer ed-origin-center ed-transition-all ed-duration-200 ed-ease-in-out`,"aria-label":"Open/Close Chat Widget",children:[E.jsx("div",{className:"ed-absolute -ed-top-3 -ed-right-0.5",children:E.jsx(K0,{count:d})}),E.jsxs("div",{className:"ed-relative ed-w-8 ed-h-8 ed-flex ed-items-center ed-justify-center",children:[E.jsx("div",{className:`ed-absolute ed-transition-all ed-duration-300 ${t?"ed-opacity-100 ed-scale-100 ed-rotate-[360deg]":"ed-opacity-0 ed-scale-0 ed-rotate-0"}`,children:E.jsx(ps,{className:"ed-size-7 ed-text-white"})}),E.jsx("div",{className:`ed-absolute ed-transition-all ed-duration-300 ${t?"ed-opacity-0 ed-scale-0 ed-rotate-[360deg]":"ed-opacity-100 ed-scale-100 ed-rotate-0"}`,children:a?E.jsx(Rr,{alt:`${o==null?void 0:o.name}'s widget icon`,defaultUserNameTextSize:"text-10",className:"ed-size-7 ed-object-cover ed-rounded-full",defaultImageClasses:"ed-w-7 ed-h-7",path:a,defaultImageName:Ni(o==null?void 0:o.name)}):E.jsx(MF,{height:28,width:28})})]})]})},qH=({activeTab:t,handleTabChange:e,hasLiveChat:n,orgBrandSetting:r={}})=>{const{t:i}=ws(),{remove_app_branding:o,is_knowledge_base_enabled:a}=r,s=[{id:1,key:"messages",label:"Messages",icon:jF},{id:2,key:"knowledge_base",label:"Knowledge base",icon:DF}],c=R.useMemo(()=>a&&n,[a,n]);return E.jsxs("div",{className:`${c&&"ed-shadow-[0_-8px_10px_rgba(0,0,0,0.02)] ed-pt-2.5"} 'ed-h-max'`,children:[a&&n&&E.jsx("div",{className:"ed-grid ed-grid-cols-2",children:s.map(u=>{const d=t===u.key;return E.jsxs("button",{type:"button",onClick:()=>e(u.key),className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:[E.jsx(u.icon,{isActive:d}),E.jsx("h3",{className:`ed-text-14 ed-font-semibold ${d?"ed-text-brand":"ed-text-border-regular"} ed-inline-block`,children:u.label})]},u.id)})}),!o&&E.jsxs("p",{className:"ed-py-2 ed-text-center ed-text-12 ed-font-medium ed-text-border-regular ed-bg-gray md:ed-rounded-b-[10px] ed-mt-1.5",children:[i("widget.label.powerd_by")," ",E.jsx(P_,{href:"https://easydesk.app/",target:"_blank",className:"ed-text-14 ed-font-semibold ed-text-border-regular",children:i("widget.label.easydesk")})]})]})},Nd=({children:t,content:e,position:n="top",delay:r=200,arrow:i=!0,maxWidth:o=250,className:a="",disabled:s=!1,theme:c="light"})=>{const[u,d]=R.useState(!1),[h,p]=R.useState({top:0,left:0}),m=R.useRef(null),v=R.useRef(null),b=R.useRef(null),y=()=>{if(!m.current||!v.current||!u)return;const S=m.current.getBoundingClientRect(),A=v.current.getBoundingClientRect();let T=0,N=0;switch(n){case"top":T=S.top-A.height-8,N=S.left+(S.width-A.width)/2;break;case"bottom":T=S.bottom+8,N=S.left+(S.width-A.width)/2;break;case"left":T=S.top+(S.height-A.height)/2,N=S.left-A.width-8;break;case"right":T=S.top+(S.height-A.height)/2,N=S.right+8;break}const P=10;T=Math.max(P,Math.min(T,window.innerHeight-A.height-P)),N=Math.max(P,Math.min(N,window.innerWidth-A.width-P)),p({top:T,left:N})},w=()=>{s||(b.current=setTimeout(()=>{d(!0)},r))},C=()=>{b.current&&clearTimeout(b.current),d(!1)};R.useEffect(()=>{u&&y()},[u]),R.useEffect(()=>{if(u){const S=()=>y();return window.addEventListener("scroll",S,!0),window.addEventListener("resize",S),()=>{window.removeEventListener("scroll",S,!0),window.removeEventListener("resize",S)}}return()=>{}},[u]);const k={dark:"ed-bg-gray-900 ed-text-white",light:"ed-bg-white ed-text-gray-900 ed-border ed-border-gray-200",custom:""},x={top:"ed-bottom-[-4px] ed-left-1/2 ed--translate-x-1/2 ed-border-t-gray-900 ed-border-x-transparent ed-border-b-transparent",bottom:"ed-top-[-4px] ed-left-1/2 ed--translate-x-1/2 ed-border-b-gray-900 ed-border-x-transparent ed-border-t-transparent",left:"ed-right-[-4px] ed-top-1/2 ed--translate-y-1/2 ed-border-l-gray-900 ed-border-y-transparent ed-border-r-transparent",right:"ed-left-[-4px] ed-top-1/2 ed--translate-y-1/2 ed-border-r-gray-900 ed-border-y-transparent ed-border-l-transparent"};return c==="light"&&(x.top=x.top.replace("gray-900","white"),x.bottom=x.bottom.replace("gray-900","white"),x.left=x.left.replace("gray-900","white"),x.right=x.right.replace("gray-900","white")),E.jsxs(E.Fragment,{children:[E.jsx("div",{ref:m,onMouseEnter:w,onMouseLeave:C,className:"ed-inline-block",children:t}),u&&e&&E.jsxs("div",{ref:v,className:`
|
|
639
|
+
ed-fixed ed-px-3 ed-py-2 ed-rounded ed-text-sm ed-shadow-lg
|
|
640
|
+
ed-pointer-events-none ed-z-[9999] ed-transition-opacity
|
|
641
|
+
${k[c]}
|
|
642
|
+
${a}
|
|
643
|
+
`,style:{top:`${h.top}px`,left:`${h.left}px`,maxWidth:`${o}px`},role:"tooltip",children:[e,i&&E.jsx("div",{className:`ed-absolute ed-w-0 ed-h-0 ed-border-4 ${x[n]}`})]})]})},JH=({searchedText:t,selectedCategory:e,setSearchedText:n,setArticleId:r,setSelectedCategory:i,setIsPopupOpen:o,handleSearch:a,setArticlesData:s,brandInfo:c,activeTab:u,userData:d})=>{const{t:h}=ws(),p=SE("(max-width: 768px)"),{isChatHistory:m,setIsChatHistory:v,setCurrentConversationID:b}=Ao(),{conversationData:y}=hs(),[w,C]=R.useState(()=>Wr.get("widget_isMute")==="true");R.useEffect(()=>{Wr.set("widget_isMute",w,{expires:365})},[w]);const k=()=>{n(""),r(null),i(null)},x=()=>{C(S=>!S)};return E.jsx("div",{className:"ed-bg-brand ed-py-8 ed-px-5 md:ed-rounded-t-[10px] ed-h-max",children:u==="messages"?E.jsxs("div",{className:"ed-flex ed-items-center ed-justify-between",children:[m?E.jsx("p",{className:"ed-text-center ed-w-full ed-text-16 ed-font-semibold ed-text-white",children:"Message"}):E.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-w-full",children:[(d==null?void 0:d.isAuthenticated)&&!m&&E.jsx("button",{type:"button",onClick:()=>{b(null),v(!0)},children:E.jsx(df,{size:20,className:"ed-text-white"})}),E.jsxs("div",{className:"ed-flex ed-items-center ed-justify-between ed-gap-2 ed-w-full",children:[E.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[E.jsx(Rr,{className:"ed-size-10 ed-rounded-full ed-object-cover ed-shrink-0",defaultImageClasses:"ed-h-10 ed-w-10 ed-shrink-0",path:c==null?void 0:c.logo_icon_key,defaultImageName:Ni(c==null?void 0:c.name)}),E.jsx("h6",{className:"ed-text-14 ed-font-semibold ed-text-white",children:c==null?void 0:c.name}),E.jsxs(Nd,{content:E.jsx("p",{className:"ed-text-12 ed-text-center ed-font-medium ed-text-regular",children:(y==null?void 0:y.type)==="chat"?"Chat":"Ticket"}),children:[(y==null?void 0:y.type)==="chat"&&E.jsx(Mw,{stroke:"white"}),(y==null?void 0:y.type)==="ticket"&&E.jsx(Pw,{stroke:"white"})]})]}),E.jsx("button",{className:"ed-flex ed-items-center",type:"button",onClick:x,children:E.jsx(Nd,{content:E.jsx("p",{className:"ed-text-12 ed-text-center ed-font-medium ed-text-regular",children:w?"Unmute":"Mute"}),children:w?E.jsx(rg,{className:"ed-text-white"}):E.jsx(tg,{className:"ed-text-white"})})})]})]}),p&&E.jsx("button",{className:"ed-ml-3",type:"button",onClick:()=>o(!1),children:E.jsx(Pi,{size:20,className:"ed-text-white"})})]}):E.jsxs("div",{children:[E.jsxs("div",{className:"ed-flex ed-items-start ed-justify-between",children:[Ie.size(t)||e?E.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-mb-4",children:[E.jsx("button",{type:"button",onClick:k,className:"ed-p-2 ed-inline-block ed-rounded-lg hover:ed-bg-dark/15 ed-cursor-pointer ed-duration-500 ed-transition-all",children:E.jsx(df,{className:"ed-text-white ed-size-5"})}),E.jsx("p",{className:"ed-text-16 ed-font-medium ed-text-white",children:h("widget.label.knowledge_base")})]}):E.jsxs("div",{children:[E.jsx("p",{className:"ed-text-14 ed-font-medium ed-text-white",children:h("widget.label.lets_explore")}),E.jsx("h4",{className:"ed-text-24 ed-font-bold ed-text-white ed-mt-2 ed-mb-4",children:h("widget.label.knowledge_base")})]}),p&&E.jsx("button",{type:"button",onClick:()=>o(!1),children:E.jsx(Pi,{size:20,className:"ed-text-white"})})]}),E.jsxs("div",{className:"ed-bg-white ed-rounded-full ed-border ed-border-border-light ed-flex ed-items-center ed-justify-between ed-gap-2 ed-px-4 ed-py-2.5",children:[E.jsx("input",{value:t,onChange:S=>a(S.target.value),placeholder:h("widget.placeholder.search_for_articles"),type:"text",className:"ed-bg-transparent ed-outline-none ed-w-full ed-text-[13px] ed-placeholder:text-[13px] ed-placeholder:font-medium ed-placeholder:text-border",style:{border:"none",outline:"none",fontSize:"14px",fontFamily:"inherit",color:"inherit",lineHeight:"1.5",padding:0,margin:0}}),E.jsxs("div",{className:"ed-flex ed-items-center ed-gap-3",children:[t&&E.jsx("button",{type:"button",onClick:()=>{n(""),s([])},children:E.jsx(Pi,{size:20,className:"ed-text-border"})}),E.jsx(H1,{size:18,className:"ed-text-border"})]})]})]})})},XH=({log:t})=>{const{sub_context:e,new_assignee:n}=t||{},{user:r}=n||{},i=Du(r==null?void 0:r.first_name,r==null?void 0:r.last_name,r==null?void 0:r.email);return e==="ADDED_AGENT"||e==="CHANGED_AGENT"?E.jsxs("div",{className:"ed-text-center ed-my-2",children:[E.jsx("span",{className:"ed-text-14 ed-font-semibold",children:i})," joined the chat"]}):null};var Z0={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CREATE_A_CONVERSATION_FOR_PORTAL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConversationCreateForPortalInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createAConversationForPortal"},arguments:[{kind:"Argument",name:{kind:"Name",value:"inputData"},value:{kind:"Variable",name:{kind:"Name",value:"inputData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"serial"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:175}};Z0.loc.source={body:`mutation CREATE_A_CONVERSATION_FOR_PORTAL($inputData: ConversationCreateForPortalInputType!) {
|
|
644
|
+
createAConversationForPortal(inputData: $inputData) {
|
|
645
|
+
id
|
|
646
|
+
serial
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Id(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){Id(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){Id(r,e)}),t.definitions&&t.definitions.forEach(function(r){Id(r,e)})}var Q0={};(function(){Z0.definitions.forEach(function(e){if(e.name){var n=new Set;Id(e,n),Q0[e.name.value]=n}})})();function B8(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function $H(t,e){var n={kind:t.kind,definitions:[B8(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=Q0[e]||new Set,i=new Set,o=new Set;for(r.forEach(function(s){o.add(s)});o.size>0;){var a=o;o=new Set,a.forEach(function(s){if(!i.has(s)){i.add(s);var c=Q0[s]||new Set;c.forEach(function(u){o.add(u)})}})}return i.forEach(function(s){var c=B8(t,s);c&&n.definitions.push(c)}),n}const eW=$H(Z0,"CREATE_A_CONVERSATION_FOR_PORTAL");var q0={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_CHANNELS_FOR_PORTAL"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NamedType",name:{kind:"Name",value:"ChannelQueryInputForPortal"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getChannelsForPortal"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:163}};q0.loc.source={body:`query GET_CHANNELS_FOR_PORTAL($queryData: ChannelQueryInputForPortal) {
|
|
650
|
+
getChannelsForPortal(queryData: $queryData) {
|
|
651
|
+
data {
|
|
652
|
+
id
|
|
653
|
+
name
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Pd(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){Pd(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){Pd(r,e)}),t.definitions&&t.definitions.forEach(function(r){Pd(r,e)})}var J0={};(function(){q0.definitions.forEach(function(e){if(e.name){var n=new Set;Pd(e,n),J0[e.name.value]=n}})})();function H8(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function tW(t,e){var n={kind:t.kind,definitions:[H8(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=J0[e]||new Set,i=new Set,o=new Set;for(r.forEach(function(s){o.add(s)});o.size>0;){var a=o;o=new Set,a.forEach(function(s){if(!i.has(s)){i.add(s);var c=J0[s]||new Set;c.forEach(function(u){o.add(u)})}})}return i.forEach(function(s){var c=H8(t,s);c&&n.definitions.push(c)}),n}const Md=tW(q0,"GET_CHANNELS_FOR_PORTAL"),Ld=(t,e)=>{let n=t;return Object.keys(e).forEach(r=>{n=n.replace(new RegExp(`{{${r}}}`,"g"),e[r])}),n},Ht={initial:{greeting:"Hi! 👋 Thanks for reaching out. Please provide your name and email to start a conversation.",greetingOnline:"Hi! 👋 Thanks for reaching out. Please provide your name and email to start a conversation.",greetingOffline:"Hello! 👋 Our team is currently away, but we'd love to help when we're back online. Please provide your name and email below."},followUp:{withAI:"Hey {{name}}! 😊</br>How can I help you now? You can describe your question or issue below — I'll be happy to assist you.",withAainAI:"Got it. What else would you like help with?",withoutAI:"How can I help you today?",withLiveChat:"Thank you! Please select a channel below to connect with our support team.",withoutLiveChat:"Thank you! Please tell us about your query below. We'll get back to you via email during our business hours.",afterChannelSelection:"Please type your message here. Our support team will get back to you as soon as possible."},ai:{searching:"Searching for relevant articles...",noResults:"I couldn't find a help article that directly answers this yet. But I can still help you get this resolved 👇",foundResults:"Here's what I found that might help 👇",needMoreHelp:"No problem — I'll get you connected with our support team. How would you like to continue?",thanksFeedback:"Great! 🎉 I'm glad I could help. Is there anything else you'd like me to assist you with today?",goodbye:`Thanks for chatting with us, {{name}}! 😊
|
|
658
|
+
If anything else comes up, I'm just one message away. 👋`,channelConnecting:"Please hold on for a moment while I connect you to one of our support specialists in {{channel_name}}. You might experience a short wait if our team is busy — thanks for your patience. 🙏"},ticket:{success:"Got it! 🎫 Your support ticket has been created successfully.</br></br>Ticket ID: #{{ticket_id}}</br></br>Our team will review the details and get back to you at {{customer_email}} as soon as possible.</br></br>Thanks for reaching out — we'll be in touch shortly! 🙌"},quickActions:{chatWithAgent:"Chat with an Agent",createTicket:"Create a Support Ticket",searchKnowledgeBase:"🔍 Search in Knowledge Base",chatWithAgentShort:"Chat with an agent",createTicketShort:"Create a support ticket",yes:"Yes, that helped",no:"No, I still need help",yesMore:"Yes",noThanks:"No"}},W8=(t,e)=>t?Ld(Ht.followUp.withAI,{name:e}):Ht.followUp.withoutAI,X0=(t=800,e=1500)=>{const n=Math.floor(Math.random()*(e-t+1))+t;return new Promise(r=>{setTimeout(r,n)})},nW=({onSubmit:t,orgBrandSetting:e,setSelectedConversationId:n,userData:r})=>{const{brand:i}=e,o=r==null?void 0:r.isAuthenticated,[a,s]=R.useState(!1),[c,u]=R.useState(!1),[d,h]=R.useState(!0),[p,m]=R.useState(!1),[v,b]=R.useState(!1),[y,w]=R.useState({contact_person_name:o?r==null?void 0:r.name:"",contact_person_email:o?r==null?void 0:r.email:""}),[C]=wo(eW),[k,x]=R.useState(!1),[S]=Fl(Md,{errorPolicy:"all",fetchPolicy:"no-cache"}),A=v||!(e!=null&&e.is_off_hour);R.useEffect(()=>{(async()=>{var Q;h(!0);const{data:V}=await S({variables:{queryData:{is_ai_enabled:!0}}}),H=((Q=V==null?void 0:V.getChannelsForPortal)==null?void 0:Q.data)||[];b(H.length>0),await X0(800,1200),h(!1),s(!0),await X0(300,500),u(!0)})()},[]);const T=async U=>{var V,H;U.preventDefault(),x(!0),m(!0);try{const Q=e==null?void 0:e.is_off_hour,j=A?Ht.initial.greetingOnline:Ht.initial.greetingOffline;let F="",D;if(v)F=W8(v,y==null?void 0:y.contact_person_name),D="ai_available";else{const{data:W}=await S({variables:{queryData:{is_live_chat_enabled:!0}}});(((V=W==null?void 0:W.getChannelsForPortal)==null?void 0:V.data)||[]).length>0?Q?(F=Ht.followUp.withoutLiveChat,D="create_a_support_ticket"):(F=Ht.followUp.withLiveChat,D="select_channel"):F=W8(!1,y==null?void 0:y.contact_person_name)}const Y=[{message:j,is_auto_response:!0},{message:`<div
|
|
659
|
+
style="border-radius:20px; border:1px solid #e3f2fd; background-color:#e3f2fd; padding:20px;"
|
|
660
|
+
class="form-response x_name-card"
|
|
661
|
+
>
|
|
662
|
+
<div style="margin-bottom:20px;">
|
|
663
|
+
<h6 style="font-size:13px; font-weight:600; color:#3b3b3b; margin:0; padding:0;">Name</h6>
|
|
664
|
+
<p style="font-size:13px; color:#797979;">${y==null?void 0:y.contact_person_name}</p>
|
|
665
|
+
</div>
|
|
666
|
+
|
|
667
|
+
<div>
|
|
668
|
+
<h6 style="font-size:13px; font-weight:600; color:#3b3b3b; margin:0; padding:0;">Email</h6>
|
|
669
|
+
<p
|
|
670
|
+
style="font-size:13px; color:#797979; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;"
|
|
671
|
+
title="${y==null?void 0:y.contact_person_email}"
|
|
672
|
+
>${y==null?void 0:y.contact_person_email}</p>
|
|
673
|
+
</div>
|
|
674
|
+
</div>`,is_customer_reply:!0},{message:F,is_auto_response:!0,current_stage:D}];await X0(600,1e3);const{data:z}=await C({variables:{inputData:{type:"chat",contact_person_name:y==null?void 0:y.contact_person_name,contact_person_email:y==null?void 0:y.contact_person_email,conversation_activities:Y}}}),q=z==null?void 0:z.createAConversationForPortal;q!=null&&q.id&&(n(q==null?void 0:q.id),sm("easydesk_chat_widget_conversation_id",q==null?void 0:q.id,{expires:30}),t==null||t({contact_person_name:y==null?void 0:y.contact_person_name,contact_person_email:y==null?void 0:y.contact_person_email}))}catch(Q){const{message:j,response:F}=Q;Rn("error",((H=F==null?void 0:F.data)==null?void 0:H.message)||j,"top-left"),m(!1)}finally{x(!1)}},N=U=>{const{name:V,value:H}=U.target;w(Q=>({...Q,[V]:H}))},P=R.useMemo(()=>!(y!=null&&y.contact_person_name)||!(y!=null&&y.contact_person_email)||!lm(y==null?void 0:y.contact_person_email)||k,[y,k]);return E.jsxs("div",{className:"ed-space-y-5 ed-px-5 ed-pt-1",children:[d&&!p&&E.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%]",children:[E.jsx(Rr,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:Ni(i==null?void 0:i.name)}),E.jsxs("div",{children:[E.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[E.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:i==null?void 0:i.name}),E.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:to().format("HH:mm")})]}),E.jsxs("div",{className:"ed-p-3 ed-bg-white-light ed-rounded-lg ed-mt-2 ed-inline-flex ed-items-center ed-gap-1.5",children:[E.jsx("span",{className:"ed-w-2 ed-h-2 ed-bg-gray-400 ed-rounded-full ed-typing-dot"}),E.jsx("span",{className:"ed-w-2 ed-h-2 ed-bg-gray-400 ed-rounded-full ed-typing-dot"}),E.jsx("span",{className:"ed-w-2 ed-h-2 ed-bg-gray-400 ed-rounded-full ed-typing-dot"})]})]})]}),a&&!p&&E.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%] ed-animate-fadeInUp",children:[E.jsx(Rr,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:Ni(i==null?void 0:i.name)}),E.jsxs("div",{children:[E.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[E.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:i==null?void 0:i.name}),E.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:to().format("HH:mm")})]}),E.jsx("div",{className:"ed-p-2.5 ed-bg-white-light ed-text-[13px] ed-rounded-lg ed-mt-2",children:E.jsx("p",{className:"ed-text-border-dark",children:A?Ht.initial.greetingOnline:Ht.initial.greetingOffline})})]})]}),c&&!p&&E.jsx("div",{className:"ed-max-w-[85%] ed-ml-auto ed-animate-fadeInUp",children:E.jsxs("form",{onSubmit:T,className:"ed-p-5 ed-rounded-[20px] ed-bg-white-light ed-space-y-5",children:[E.jsxs("div",{className:"ed-space-y-2",children:[E.jsxs("label",{className:"ed-block ed-text-border-dark ed-text-14 ed-font-semibold",children:["Name ",E.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),E.jsx("input",{type:"text",name:"contact_person_name",required:!0,placeholder:"Enter your name",value:y==null?void 0:y.contact_person_name,onChange:N,disabled:o,className:"ed-w-full ed-p-2.5 ed-px-4 ed-border ed-border-border-light ed-rounded-lg ed-outline-none ed-bg-white ed-text-14 ed-font-normal"})]}),E.jsxs("div",{className:"ed-space-y-2",children:[E.jsxs("label",{className:"ed-block ed-text-border-dark ed-text-14 ed-font-semibold",children:["Email ",E.jsx("span",{className:"ed-text-red ed-text-14 ed-font-semibold",children:"*"})]}),E.jsx("input",{type:"email",name:"contact_person_email",required:!0,placeholder:"Enter your email",value:y==null?void 0:y.contact_person_email,onChange:N,disabled:o,className:"ed-w-full ed-p-2.5 ed-px-4 ed-border ed-border-border-light ed-rounded-lg ed-outline-none ed-bg-white ed-text-14 ed-font-normal"})]}),E.jsx("div",{className:"ed-flex ed-justify-end",children:E.jsx(_s,{title:"Submit",loaderText:"Submitting",fullWidthBtn:!0,disabled:P,loader:k,callBack:T})})]})}),p&&E.jsxs(E.Fragment,{children:[E.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%]",children:[E.jsx(Rr,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:Ni(i==null?void 0:i.name)}),E.jsxs("div",{children:[E.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[E.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:i==null?void 0:i.name}),E.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:to().format("HH:mm")})]}),E.jsx("div",{className:"ed-p-2.5 ed-bg-white-light ed-text-[13px] ed-rounded-lg ed-mt-2",children:E.jsx("p",{className:"ed-text-border-dark",children:A?Ht.initial.greetingOnline:Ht.initial.greetingOffline})})]})]}),E.jsx("div",{className:"ed-max-w-[85%] ed-ml-auto ed-animate-fadeInUp",children:E.jsxs("div",{className:"ed-p-5 ed-rounded-[20px] ed-bg-blue-50 ed-border ed-border-blue-100",style:{borderRadius:"20px",border:"1px solid #e3f2fd",backgroundColor:"#e3f2fd",padding:"20px"},children:[E.jsxs("div",{style:{marginBottom:"20px"},children:[E.jsx("h6",{style:{fontSize:"13px",fontWeight:"600",color:"#3b3b3b",margin:0,padding:0},children:"Name"}),E.jsx("p",{style:{fontSize:"13px",color:"#797979"},children:y==null?void 0:y.contact_person_name})]}),E.jsxs("div",{children:[E.jsx("h6",{style:{fontSize:"13px",fontWeight:"600",color:"#3b3b3b",margin:0,padding:0},children:"Email"}),E.jsx("p",{style:{fontSize:"13px",color:"#797979",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:y==null?void 0:y.contact_person_email})]})]})}),E.jsxs("div",{className:"ed-flex ed-gap-4 ed-max-w-[85%] ed-animate-fadeIn",children:[E.jsx(Rr,{className:"ed-size-7 ed-object-cover ed-rounded-full ed-flex-shrink-0",defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:i==null?void 0:i.logo_icon_key,defaultImageName:Ni(i==null?void 0:i.name)}),E.jsxs("div",{children:[E.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[E.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:i==null?void 0:i.name}),E.jsx("span",{className:"ed-text-border ed-font-medium ed-text-[13px]",children:to().format("HH:mm")})]}),E.jsxs("div",{className:"ed-p-3 ed-bg-white-light ed-rounded-lg ed-mt-2 ed-inline-flex ed-items-center ed-gap-1.5",children:[E.jsx("span",{className:"ed-w-2 ed-h-2 ed-bg-gray-400 ed-rounded-full ed-typing-dot"}),E.jsx("span",{className:"ed-w-2 ed-h-2 ed-bg-gray-400 ed-rounded-full ed-typing-dot"}),E.jsx("span",{className:"ed-w-2 ed-h-2 ed-bg-gray-400 ed-rounded-full ed-typing-dot"})]})]})]})]})]})};/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:G8,setPrototypeOf:Y8,isFrozen:rW,getPrototypeOf:iW,getOwnPropertyDescriptor:oW}=Object;let{freeze:er,seal:Xr,create:Fd}=Object,{apply:$0,construct:ey}=typeof Reflect<"u"&&Reflect;er||(er=function(e){return e}),Xr||(Xr=function(e){return e}),$0||($0=function(e,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return e.apply(n,i)}),ey||(ey=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new e(...r)});const jd=nr(Array.prototype.forEach),aW=nr(Array.prototype.lastIndexOf),K8=nr(Array.prototype.pop),Lc=nr(Array.prototype.push),sW=nr(Array.prototype.splice),Dd=nr(String.prototype.toLowerCase),ty=nr(String.prototype.toString),ny=nr(String.prototype.match),Fc=nr(String.prototype.replace),lW=nr(String.prototype.indexOf),cW=nr(String.prototype.trim),Lr=nr(Object.prototype.hasOwnProperty),tr=nr(RegExp.prototype.test),jc=uW(TypeError);function nr(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return $0(t,e,r)}}function uW(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return ey(t,n)}}function at(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Dd;Y8&&Y8(t,null);let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const o=n(i);o!==i&&(rW(e)||(e[r]=o),i=o)}t[i]=!0}return t}function fW(t){for(let e=0;e<t.length;e++)Lr(t,e)||(t[e]=null);return t}function Di(t){const e=Fd(null);for(const[n,r]of G8(t))Lr(t,n)&&(Array.isArray(r)?e[n]=fW(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=Di(r):e[n]=r);return e}function Dc(t,e){for(;t!==null;){const r=oW(t,e);if(r){if(r.get)return nr(r.get);if(typeof r.value=="function")return nr(r.value)}t=iW(t)}function n(){return null}return n}const Z8=er(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ry=er(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),iy=er(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),dW=er(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),oy=er(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),hW=er(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Q8=er(["#text"]),q8=er(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ay=er(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),J8=er(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Vd=er(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),pW=Xr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),mW=Xr(/<%[\w\W]*|[\w\W]*%>/gm),gW=Xr(/\$\{[\w\W]*/gm),vW=Xr(/^data-[\-\w.\u00B7-\uFFFF]+$/),yW=Xr(/^aria-[\-\w]+$/),X8=Xr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),bW=Xr(/^(?:\w+script|data):/i),EW=Xr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$8=Xr(/^html$/i),SW=Xr(/^[a-z][.\w]*(-[.\w]+)+$/i);var e4=Object.freeze({__proto__:null,ARIA_ATTR:yW,ATTR_WHITESPACE:EW,CUSTOM_ELEMENT:SW,DATA_ATTR:vW,DOCTYPE_NAME:$8,ERB_EXPR:mW,IS_ALLOWED_URI:X8,IS_SCRIPT_OR_DATA:bW,MUSTACHE_EXPR:pW,TMPLIT_EXPR:gW});const Vc={element:1,text:3,progressingInstruction:7,comment:8,document:9},wW=function(){return typeof window>"u"?null:window},_W=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},t4=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function n4(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wW();const e=Ae=>n4(Ae);if(e.version="3.3.3",e.removed=[],!t||!t.document||t.document.nodeType!==Vc.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:m}=t,v=c.prototype,b=Dc(v,"cloneNode"),y=Dc(v,"remove"),w=Dc(v,"nextSibling"),C=Dc(v,"childNodes"),k=Dc(v,"parentNode");if(typeof a=="function"){const Ae=n.createElement("template");Ae.content&&Ae.content.ownerDocument&&(n=Ae.content.ownerDocument)}let x,S="";const{implementation:A,createNodeIterator:T,createDocumentFragment:N,getElementsByTagName:P}=n,{importNode:U}=r;let V=t4();e.isSupported=typeof G8=="function"&&typeof k=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:H,ERB_EXPR:Q,TMPLIT_EXPR:j,DATA_ATTR:F,ARIA_ATTR:D,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:z,CUSTOM_ELEMENT:q}=e4;let{IS_ALLOWED_URI:W}=e4,G=null;const te=at({},[...Z8,...ry,...iy,...oy,...Q8]);let ne=null;const ce=at({},[...q8,...ay,...J8,...Vd]);let ie=Object.seal(Fd(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),de=null,pe=null;const J=Object.seal(Fd(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let re=!0,he=!0,Ee=!1,X=!0,Re=!1,ye=!0,Fe=!1,st=!1,Pe=!1,lt=!1,Te=!1,nt=!1,Le=!0,Qe=!1;const At="user-content-";let we=!0,et=!1,kt={},Yt=null;const Qt=at({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let wn=null;const vr=at({},["audio","video","img","source","image","track"]);let yt=null;const bt=at({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),sn="http://www.w3.org/1998/Math/MathML",tn="http://www.w3.org/2000/svg",Vt="http://www.w3.org/1999/xhtml";let _n=Vt,nn=!1,Kn=null;const ro=at({},[sn,tn,Vt],ty);let $r=at({},["mi","mo","mn","ms","mtext"]),yr=at({},["annotation-xml"]);const Vi=at({},["title","style","font","a","script"]);let br=null;const rr=["application/xhtml+xml","text/html"],fn="text/html";let qe=null,Cn=null;const vn=n.createElement("form"),gt=function(K){return K instanceof RegExp||K instanceof Function},ft=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Cn&&Cn===K)){if((!K||typeof K!="object")&&(K={}),K=Di(K),br=rr.indexOf(K.PARSER_MEDIA_TYPE)===-1?fn:K.PARSER_MEDIA_TYPE,qe=br==="application/xhtml+xml"?ty:Dd,G=Lr(K,"ALLOWED_TAGS")?at({},K.ALLOWED_TAGS,qe):te,ne=Lr(K,"ALLOWED_ATTR")?at({},K.ALLOWED_ATTR,qe):ce,Kn=Lr(K,"ALLOWED_NAMESPACES")?at({},K.ALLOWED_NAMESPACES,ty):ro,yt=Lr(K,"ADD_URI_SAFE_ATTR")?at(Di(bt),K.ADD_URI_SAFE_ATTR,qe):bt,wn=Lr(K,"ADD_DATA_URI_TAGS")?at(Di(vr),K.ADD_DATA_URI_TAGS,qe):vr,Yt=Lr(K,"FORBID_CONTENTS")?at({},K.FORBID_CONTENTS,qe):Qt,de=Lr(K,"FORBID_TAGS")?at({},K.FORBID_TAGS,qe):Di({}),pe=Lr(K,"FORBID_ATTR")?at({},K.FORBID_ATTR,qe):Di({}),kt=Lr(K,"USE_PROFILES")?K.USE_PROFILES:!1,re=K.ALLOW_ARIA_ATTR!==!1,he=K.ALLOW_DATA_ATTR!==!1,Ee=K.ALLOW_UNKNOWN_PROTOCOLS||!1,X=K.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Re=K.SAFE_FOR_TEMPLATES||!1,ye=K.SAFE_FOR_XML!==!1,Fe=K.WHOLE_DOCUMENT||!1,lt=K.RETURN_DOM||!1,Te=K.RETURN_DOM_FRAGMENT||!1,nt=K.RETURN_TRUSTED_TYPE||!1,Pe=K.FORCE_BODY||!1,Le=K.SANITIZE_DOM!==!1,Qe=K.SANITIZE_NAMED_PROPS||!1,we=K.KEEP_CONTENT!==!1,et=K.IN_PLACE||!1,W=K.ALLOWED_URI_REGEXP||X8,_n=K.NAMESPACE||Vt,$r=K.MATHML_TEXT_INTEGRATION_POINTS||$r,yr=K.HTML_INTEGRATION_POINTS||yr,ie=K.CUSTOM_ELEMENT_HANDLING||{},K.CUSTOM_ELEMENT_HANDLING&>(K.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ie.tagNameCheck=K.CUSTOM_ELEMENT_HANDLING.tagNameCheck),K.CUSTOM_ELEMENT_HANDLING&>(K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ie.attributeNameCheck=K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),K.CUSTOM_ELEMENT_HANDLING&&typeof K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ie.allowCustomizedBuiltInElements=K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(he=!1),Te&&(lt=!0),kt&&(G=at({},Q8),ne=Fd(null),kt.html===!0&&(at(G,Z8),at(ne,q8)),kt.svg===!0&&(at(G,ry),at(ne,ay),at(ne,Vd)),kt.svgFilters===!0&&(at(G,iy),at(ne,ay),at(ne,Vd)),kt.mathMl===!0&&(at(G,oy),at(ne,J8),at(ne,Vd))),Lr(K,"ADD_TAGS")||(J.tagCheck=null),Lr(K,"ADD_ATTR")||(J.attributeCheck=null),K.ADD_TAGS&&(typeof K.ADD_TAGS=="function"?J.tagCheck=K.ADD_TAGS:(G===te&&(G=Di(G)),at(G,K.ADD_TAGS,qe))),K.ADD_ATTR&&(typeof K.ADD_ATTR=="function"?J.attributeCheck=K.ADD_ATTR:(ne===ce&&(ne=Di(ne)),at(ne,K.ADD_ATTR,qe))),K.ADD_URI_SAFE_ATTR&&at(yt,K.ADD_URI_SAFE_ATTR,qe),K.FORBID_CONTENTS&&(Yt===Qt&&(Yt=Di(Yt)),at(Yt,K.FORBID_CONTENTS,qe)),K.ADD_FORBID_CONTENTS&&(Yt===Qt&&(Yt=Di(Yt)),at(Yt,K.ADD_FORBID_CONTENTS,qe)),we&&(G["#text"]=!0),Fe&&at(G,["html","head","body"]),G.table&&(at(G,["tbody"]),delete de.tbody),K.TRUSTED_TYPES_POLICY){if(typeof K.TRUSTED_TYPES_POLICY.createHTML!="function")throw jc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof K.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw jc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=K.TRUSTED_TYPES_POLICY,S=x.createHTML("")}else x===void 0&&(x=_W(m,i)),x!==null&&typeof S=="string"&&(S=x.createHTML(""));er&&er(K),Cn=K}},Kt=at({},[...ry,...iy,...dW]),ir=at({},[...oy,...hW]),yn=function(K){let me=k(K);(!me||!me.tagName)&&(me={namespaceURI:_n,tagName:"template"});const xe=Dd(K.tagName),St=Dd(me.tagName);return Kn[K.namespaceURI]?K.namespaceURI===tn?me.namespaceURI===Vt?xe==="svg":me.namespaceURI===sn?xe==="svg"&&(St==="annotation-xml"||$r[St]):!!Kt[xe]:K.namespaceURI===sn?me.namespaceURI===Vt?xe==="math":me.namespaceURI===tn?xe==="math"&&yr[St]:!!ir[xe]:K.namespaceURI===Vt?me.namespaceURI===tn&&!yr[St]||me.namespaceURI===sn&&!$r[St]?!1:!ir[xe]&&(Vi[xe]||!Kt[xe]):!!(br==="application/xhtml+xml"&&Kn[K.namespaceURI]):!1},pt=function(K){Lc(e.removed,{element:K});try{k(K).removeChild(K)}catch{y(K)}},Ln=function(K,me){try{Lc(e.removed,{attribute:me.getAttributeNode(K),from:me})}catch{Lc(e.removed,{attribute:null,from:me})}if(me.removeAttribute(K),K==="is")if(lt||Te)try{pt(me)}catch{}else try{me.setAttribute(K,"")}catch{}},Er=function(K){let me=null,xe=null;if(Pe)K="<remove></remove>"+K;else{const Tt=ny(K,/^[\r\n\t ]+/);xe=Tt&&Tt[0]}br==="application/xhtml+xml"&&_n===Vt&&(K='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+K+"</body></html>");const St=x?x.createHTML(K):K;if(_n===Vt)try{me=new p().parseFromString(St,br)}catch{}if(!me||!me.documentElement){me=A.createDocument(_n,"template",null);try{me.documentElement.innerHTML=nn?S:St}catch{}}const Zt=me.body||me.documentElement;return K&&xe&&Zt.insertBefore(n.createTextNode(xe),Zt.childNodes[0]||null),_n===Vt?P.call(me,Fe?"html":"body")[0]:Fe?me.documentElement:Zt},Et=function(K){return T.call(K.ownerDocument||K,K,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ut=function(K){return K instanceof h&&(typeof K.nodeName!="string"||typeof K.textContent!="string"||typeof K.removeChild!="function"||!(K.attributes instanceof d)||typeof K.removeAttribute!="function"||typeof K.setAttribute!="function"||typeof K.namespaceURI!="string"||typeof K.insertBefore!="function"||typeof K.hasChildNodes!="function")},bn=function(K){return typeof s=="function"&&K instanceof s};function Pt(Ae,K,me){jd(Ae,xe=>{xe.call(e,K,me,Cn)})}const or=function(K){let me=null;if(Pt(V.beforeSanitizeElements,K,null),Ut(K))return pt(K),!0;const xe=qe(K.nodeName);if(Pt(V.uponSanitizeElement,K,{tagName:xe,allowedTags:G}),ye&&K.hasChildNodes()&&!bn(K.firstElementChild)&&tr(/<[/\w!]/g,K.innerHTML)&&tr(/<[/\w!]/g,K.textContent)||K.nodeType===Vc.progressingInstruction||ye&&K.nodeType===Vc.comment&&tr(/<[/\w]/g,K.data))return pt(K),!0;if(!(J.tagCheck instanceof Function&&J.tagCheck(xe))&&(!G[xe]||de[xe])){if(!de[xe]&&Zn(xe)&&(ie.tagNameCheck instanceof RegExp&&tr(ie.tagNameCheck,xe)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(xe)))return!1;if(we&&!Yt[xe]){const St=k(K)||K.parentNode,Zt=C(K)||K.childNodes;if(Zt&&St){const Tt=Zt.length;for(let dn=Tt-1;dn>=0;--dn){const ar=b(Zt[dn],!0);ar.__removalCount=(K.__removalCount||0)+1,St.insertBefore(ar,w(K))}}}return pt(K),!0}return K instanceof c&&!yn(K)||(xe==="noscript"||xe==="noembed"||xe==="noframes")&&tr(/<\/no(script|embed|frames)/i,K.innerHTML)?(pt(K),!0):(Re&&K.nodeType===Vc.text&&(me=K.textContent,jd([H,Q,j],St=>{me=Fc(me,St," ")}),K.textContent!==me&&(Lc(e.removed,{element:K.cloneNode()}),K.textContent=me)),Pt(V.afterSanitizeElements,K,null),!1)},ei=function(K,me,xe){if(pe[me]||Le&&(me==="id"||me==="name")&&(xe in n||xe in vn))return!1;if(!(he&&!pe[me]&&tr(F,me))){if(!(re&&tr(D,me))){if(!(J.attributeCheck instanceof Function&&J.attributeCheck(me,K))){if(!ne[me]||pe[me]){if(!(Zn(K)&&(ie.tagNameCheck instanceof RegExp&&tr(ie.tagNameCheck,K)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(K))&&(ie.attributeNameCheck instanceof RegExp&&tr(ie.attributeNameCheck,me)||ie.attributeNameCheck instanceof Function&&ie.attributeNameCheck(me,K))||me==="is"&&ie.allowCustomizedBuiltInElements&&(ie.tagNameCheck instanceof RegExp&&tr(ie.tagNameCheck,xe)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(xe))))return!1}else if(!yt[me]){if(!tr(W,Fc(xe,z,""))){if(!((me==="src"||me==="xlink:href"||me==="href")&&K!=="script"&&lW(xe,"data:")===0&&wn[K])){if(!(Ee&&!tr(Y,Fc(xe,z,"")))){if(xe)return!1}}}}}}}return!0},Zn=function(K){return K!=="annotation-xml"&&ny(K,q)},Vn=function(K){Pt(V.beforeSanitizeAttributes,K,null);const{attributes:me}=K;if(!me||Ut(K))return;const xe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let St=me.length;for(;St--;){const Zt=me[St],{name:Tt,namespaceURI:dn,value:ar}=Zt,wr=qe(Tt),Si=ar;let Dt=Tt==="value"?Si:cW(Si);if(xe.attrName=wr,xe.attrValue=Dt,xe.keepAttr=!0,xe.forceKeepAttr=void 0,Pt(V.uponSanitizeAttribute,K,xe),Dt=xe.attrValue,Qe&&(wr==="id"||wr==="name")&&(Ln(Tt,K),Dt=At+Dt),ye&&tr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Dt)){Ln(Tt,K);continue}if(wr==="attributename"&&ny(Dt,"href")){Ln(Tt,K);continue}if(xe.forceKeepAttr)continue;if(!xe.keepAttr){Ln(Tt,K);continue}if(!X&&tr(/\/>/i,Dt)){Ln(Tt,K);continue}Re&&jd([H,Q,j],Ui=>{Dt=Fc(Dt,Ui," ")});const ti=qe(K.nodeName);if(!ei(ti,wr,Dt)){Ln(Tt,K);continue}if(x&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!dn)switch(m.getAttributeType(ti,wr)){case"TrustedHTML":{Dt=x.createHTML(Dt);break}case"TrustedScriptURL":{Dt=x.createScriptURL(Dt);break}}if(Dt!==Si)try{dn?K.setAttributeNS(dn,Tt,Dt):K.setAttribute(Tt,Dt),Ut(K)?pt(K):K8(e.removed)}catch{Ln(Tt,K)}}Pt(V.afterSanitizeAttributes,K,null)},Sr=function Ae(K){let me=null;const xe=Et(K);for(Pt(V.beforeSanitizeShadowDOM,K,null);me=xe.nextNode();)Pt(V.uponSanitizeShadowNode,me,null),or(me),Vn(me),me.content instanceof o&&Ae(me.content);Pt(V.afterSanitizeShadowDOM,K,null)};return e.sanitize=function(Ae){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=null,xe=null,St=null,Zt=null;if(nn=!Ae,nn&&(Ae="<!-->"),typeof Ae!="string"&&!bn(Ae))if(typeof Ae.toString=="function"){if(Ae=Ae.toString(),typeof Ae!="string")throw jc("dirty is not a string, aborting")}else throw jc("toString is not a function");if(!e.isSupported)return Ae;if(st||ft(K),e.removed=[],typeof Ae=="string"&&(et=!1),et){if(Ae.nodeName){const ar=qe(Ae.nodeName);if(!G[ar]||de[ar])throw jc("root node is forbidden and cannot be sanitized in-place")}}else if(Ae instanceof s)me=Er("<!---->"),xe=me.ownerDocument.importNode(Ae,!0),xe.nodeType===Vc.element&&xe.nodeName==="BODY"||xe.nodeName==="HTML"?me=xe:me.appendChild(xe);else{if(!lt&&!Re&&!Fe&&Ae.indexOf("<")===-1)return x&&nt?x.createHTML(Ae):Ae;if(me=Er(Ae),!me)return lt?null:nt?S:""}me&&Pe&&pt(me.firstChild);const Tt=Et(et?Ae:me);for(;St=Tt.nextNode();)or(St),Vn(St),St.content instanceof o&&Sr(St.content);if(et)return Ae;if(lt){if(Te)for(Zt=N.call(me.ownerDocument);me.firstChild;)Zt.appendChild(me.firstChild);else Zt=me;return(ne.shadowroot||ne.shadowrootmode)&&(Zt=U.call(r,Zt,!0)),Zt}let dn=Fe?me.outerHTML:me.innerHTML;return Fe&&G["!doctype"]&&me.ownerDocument&&me.ownerDocument.doctype&&me.ownerDocument.doctype.name&&tr($8,me.ownerDocument.doctype.name)&&(dn="<!DOCTYPE "+me.ownerDocument.doctype.name+`>
|
|
675
|
+
`+dn),Re&&jd([H,Q,j],ar=>{dn=Fc(dn,ar," ")}),x&&nt?x.createHTML(dn):dn},e.setConfig=function(){let Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ft(Ae),st=!0},e.clearConfig=function(){Cn=null,st=!1},e.isValidAttribute=function(Ae,K,me){Cn||ft({});const xe=qe(Ae),St=qe(K);return ei(xe,St,me)},e.addHook=function(Ae,K){typeof K=="function"&&Lc(V[Ae],K)},e.removeHook=function(Ae,K){if(K!==void 0){const me=aW(V[Ae],K);return me===-1?void 0:sW(V[Ae],me,1)[0]}return K8(V[Ae])},e.removeHooks=function(Ae){V[Ae]=[]},e.removeAllHooks=function(){V=t4()},e}var r4=n4();const CW=({previewImageInfo:t,setPreviewImageInfo:e,isPrivate:n=!1})=>{const[r,i]=R.useState(1),o=R.useRef(null),a=()=>{e(cm),i(1)};R.useEffect(()=>{const b=y=>{y.key==="Escape"&&a()};return window.addEventListener("keydown",b),()=>{window.removeEventListener("keydown",b)}},[]);const{fileName:s,isOpen:c,loading:u,error:d,url:h,height:p,width:m}=t||{},v=R.useMemo(()=>h==null?void 0:h.split("?")[0].split("/").pop(),[h]);return E.jsx("div",{children:c&&E.jsxs("div",{className:"ed-overflow-hidden",children:[E.jsx("div",{className:"ed-h-full ed-w-full ed-z-[1000] ed-fixed ed-bg-black/80 ed-inset-0"}),E.jsxs("div",{className:"ed-size-full ed-flex items-center ed-w-full ed-h-full ed-justify-center ed-overflow-hidden ed-fixed ed-top-9 ed-left-0 ed-z-[1100]",children:[u?E.jsx(Af,{}):!d&&h&&E.jsx("div",{ref:o,style:{transform:`scale(${r})`,transformOrigin:"center center",transition:"transform 0.2s ease-out"},children:E.jsx(Rr,{alt:"Feedback attachment",className:"ed-max-w-[90vw] ed-max-h-[90vh] ed-object-contain ed-select-none",height:p,src:h,width:m,isPrivate:n})}),d&&E.jsx("p",{className:"ed-text-14 ed-font-semibold ed-text-red",children:d})]}),E.jsxs("div",{className:"ed-fixed ed-z-[1100] ed-top-5 ed-right-16 ed-flex ed-items-center ed-gap-3",children:[E.jsx("a",{href:`${h}&dl=${s||v}`,className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors ed-bg-black/50 ed-rounded-lg ed-p-2",title:"Download",children:E.jsx(N1,{className:"ed-size-4",strokeWidth:"2"})}),E.jsx("button",{type:"button",className:"ed-fixed ed-z-[1100] ed-top-5 ed-right-5 ed-text-white ed-hover:text-gray-300 ed-transition-colors ed-bg-black/50 ed-rounded-lg ed-p-2",onClick:a,title:"Close (Esc)",children:E.jsx(Pi,{className:"ed-size-4",strokeWidth:"2"})})]}),!u&&!d&&E.jsx("div",{className:"ed-fixed ed-z-[1100] ed-bottom-5 ed-left-1/2 ed-transform -ed-translate-x-1/2",children:E.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-bg-black/70 ed-rounded-lg ed-p-3",children:[E.jsx("button",{type:"button",className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors",onClick:()=>i(b=>Math.max(b/1.5,.5)),disabled:r<=.5,title:"Zoom Out",children:E.jsx(lg,{className:"ed-size-5",strokeWidth:"2"})}),E.jsxs("span",{className:"ed-text-white ed-text-sm ed-min-w-[3rem] ed-text-center ed-font-medium",children:[Math.round(r*100),"%"]}),E.jsx("button",{type:"button",className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors",onClick:()=>i(b=>Math.min(b*1.5,5)),disabled:r>=5,title:"Zoom In",children:E.jsx(ag,{className:"ed-size-5",strokeWidth:"2"})}),E.jsx("div",{className:"ed-w-px ed-h-5 ed-bg-white/30 ed-mx-1"}),E.jsx("button",{type:"button",className:"ed-text-white ed-hover:text-gray-300 ed-transition-colors",onClick:()=>i(1),title:"Reset",children:E.jsx(z1,{className:"ed-size-5",strokeWidth:"2"})})]})})]})})},xW=({filesData:t=[]})=>{var p;const[e,n]=R.useState(!1),[r,i]=R.useState(cm),o=t==null?void 0:t.filter(m=>/\.(jpg|jpeg|png|gif|webp)$/i.test(m.name)),a=t==null?void 0:t.filter(m=>!/\.(jpg|jpeg|png|gif|webp)$/i.test(m.name)),s=()=>n(!0),c=e?o:o==null?void 0:o.slice(0,2),u=Ie.size(o)-2,d=m=>{try{const v=`${AO()}?id=${m}&download=true`;v&&window.open(v,"_blank")}catch(v){console.error(v)}},h=async m=>{i(v=>({...v,loading:!0}));try{const v=await k5({fit:"scale",isPrivate:!1,needActualSize:!0,path:m==null?void 0:m.key,quality:100});if(v){const b=await OO(v);i(y=>({...y,isOpen:!0,url:v,fileName:m==null?void 0:m.title,image:v,loading:!1,height:b==null?void 0:b.height,width:b==null?void 0:b.width}))}}catch{i({...cm,error:"Failed to load image"})}};return E.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-3",children:[Ie.size(o)>0&&E.jsxs("div",{className:"ed-grid ed-grid-cols-2 ed-gap-2.5",children:[c.map(m=>E.jsx("div",{onClick:()=>h(m),role:"button",tabIndex:0,children:E.jsx(Rr,{path:m.key,className:"ed-w-full ed-rounded",defaultImageClasses:"ed-w-full ed-h-20 !ed-rounded"})},m==null?void 0:m.id)),!e&&u>0&&E.jsxs("div",{role:"button",tabIndex:0,className:"ed-relative cursor-pointer",onClick:s,children:[E.jsx(Rr,{path:(p=o[2])==null?void 0:p.key,className:"ed-w-full ed-rounded",defaultImageClasses:"ed-w-full ed-h-20 !ed-rounded"}),E.jsx("div",{className:"ed-w-full ed-h-full ed-bg-black/15 ed-absolute ed-top-0 ed-left-0 ed-rounded",children:E.jsx("div",{className:"ed-bg-white ed-h-8 ed-w-8 ed-flex ed-items-center ed-justify-center ed-rounded-full ed-absolute ed-top-1/2 ed-left-1/2 ed--translate-x-1/2 ed--translate-y-1/2",children:E.jsxs("span",{className:"ed-text-12 ed-text-border-dark ed-font-semibold",children:["+",u]})})})]})]}),Ie.size(a)>0&&E.jsx("div",{className:"ed-flex ed-flex-col ed-gap-2.5",children:a.map(m=>E.jsxs("div",{className:"ed-p-2.5 ed-bg-white-light ed-rounded-lg ed-flex ed-items-center ed-gap-2 ed-justify-between",children:[E.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[E.jsx("div",{className:"ed-flex-shrink-0",children:E.jsx(VF,{})}),E.jsx("p",{title:m.title,className:"ed-text-12 ed-font-semibold ed-text-border-dark",children:um(m.title,20)})]}),E.jsx("button",{className:"ed-flex-shrink-0",type:"button",onClick:()=>d(m==null?void 0:m.id),children:E.jsx(P1,{className:"ed-text-brand-link ed-size-5"})})]},m==null?void 0:m.id))}),(r==null?void 0:r.isOpen)&&E.jsx(CW,{previewImageInfo:r,setPreviewImageInfo:i})]})},sy=({context:t,emails:e})=>E.jsxs("div",{className:"ed-flex ed-items-start ed-gap-2 ",children:[E.jsxs("p",{className:"ed-text-dark",children:[t,":"]}),E.jsx("div",{className:"ed-flex ed-flex-wrap ed-gap-1",children:e.slice(0,3).map((n,r)=>E.jsxs("p",{className:"ed-text-regular ed-flex ed-items-center ed-gap-2",children:[um(n,30),r===2&&Ie.size(e)-3>0?E.jsx(Y0,{classNames:{body:"ed-text-regular"},zIndex:99999999,placement:"top",title:e.join(", "),children:E.jsxs("span",{className:"ed-text-brand ed-cursor-pointer",children:["+",Ie.size(e)-3," more"]})}):""]},n))})]});var Ud={exports:{}},AW=Ud.exports,i4;function kW(){return i4||(i4=1,(function(t,e){(function(n,r){t.exports=r()})(AW,(function(){return function(n,r,i){n=n||{};var o=r.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(u,d,h,p){return o.fromToBase(u,d,h,p)}i.en.relativeTime=a,o.fromToBase=function(u,d,h,p,m){for(var v,b,y,w=h.$locale().relativeTime||a,C=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],k=C.length,x=0;x<k;x+=1){var S=C[x];S.d&&(v=p?i(u).diff(h,S.d,!0):h.diff(u,S.d,!0));var A=(n.rounding||Math.round)(Math.abs(v));if(y=v>0,A<=S.r||!S.r){A<=1&&x>0&&(S=C[x-1]);var T=w[S.l];m&&(A=m(""+A)),b=typeof T=="string"?T.replace("%d",A):T(A,d,S.l,y);break}}if(d)return b;var N=y?w.future:w.past;return typeof N=="function"?N(b):N.replace("%s",b)},o.to=function(u,d){return s(u,d,this,!0)},o.from=function(u,d){return s(u,d,this)};var c=function(u){return u.$u?i.utc():i()};o.toNow=function(u){return this.to(c(this),u)},o.fromNow=function(u){return this.from(c(this),u)}}}))})(Ud)),Ud.exports}var TW=kW();const OW=sa(TW);to.extend(OW);const RW=async(t,e)=>{const{policy:n,file:r}=t||{};return(await xg(n,r)).success?{name:t==null?void 0:t.name,title:r==null?void 0:r.name,size:r==null?void 0:r.size,sub_type:e,type:"conversation_activity_attachment"}:{}},NW=async(t,e)=>{var r;const n=[];try{const i=[];for(let o=0;o<t.length;o+=1)(r=t[o])!=null&&r.id||i.push(RW(t[o],e));n.push(...await Promise.all(i))}catch(i){console.error("Error occurred during file upload:",i),Rn("error","File upload fails","top-left")}return n};function IW(t){if(!t)return"";const e=to(t),n=to();return e.isValid()?n.diff(e,"minute")<1?"Just now":e.fromNow():""}const PW={open:{label:"Open",className:"ed-bg-[#DDF2FF] ed-text-[#1173C8] ed-border ed-border-[#A4D1F1] ed-rounded-full"},resolved:{label:"Resolved",className:"ed-bg-[#DBF8E2] ed-text-[#0E9342] ed-border ed-border-[#96D4AB] ed-rounded-full"}},MW=t=>{if(!t)return"";if(typeof window>"u")return t;const e=r4.sanitize(t,{FORBID_TAGS:["script"],FORBID_ATTR:["style","class"]}),n=document.createElement("div");return n.innerHTML=e,n.textContent||n.innerText||""},LW=(t=[],e=!1)=>{const n=[],r=[],i=[];return Ie.forEach(t,o=>{(o==null?void 0:o.type)==="to_email"&&(e?!(o!=null&&o.is_channel)&&!n.includes(o==null?void 0:o.email)&&n.push(o==null?void 0:o.email):n.push(o==null?void 0:o.email)),(o==null?void 0:o.type)==="cc_email"&&(e?Ie.some(r,{person_email:o==null?void 0:o.email})||r.push({person_email:o==null?void 0:o.email}):r.push(o==null?void 0:o.email)),(o==null?void 0:o.type)==="bcc_email"&&i.push(o==null?void 0:o.email)}),{toEmails:n,ccEmails:r,bccEmails:i}},FW="hh:mm A",o4=({activityMessage:t={},brand:e={},isReplying:n=!1})=>{const{id:r,analytics:i,emails:o=[],user:a,files:s,message:c,is_customer_reply:u,is_auto_response:d,is_ai_response:h,created_at:p}=t||{},[m,v]=R.useState(!1),b=()=>{v(!m)},{toEmails:y,ccEmails:w,bccEmails:C}=LW(o),k=R.useMemo(()=>h||d?"Easy AI bot":a!=null&&a.id?Du(a==null?void 0:a.first_name,a==null?void 0:a.last_name,a==null?void 0:a.email):(e==null?void 0:e.name)||"",[a==null?void 0:a.id,h,d]),x=R.useMemo(()=>a!=null&&a.id?{...(a==null?void 0:a.avatar_file)||{},default_image_name:Ni(a==null?void 0:a.first_name,a==null?void 0:a.last_name,a==null?void 0:a.email)}:{key:e==null?void 0:e.logo_icon_key,default_image_name:Ni(e==null?void 0:e.name)},[a==null?void 0:a.id]),S=R.useMemo(()=>n||!c?"":r4.sanitize(c,{ADD_ATTR:["class","className","style"],ADD_TAGS:["div","h6","p","span"]}),[c,n]),A=!n&&sc(S),T=Array.isArray(A)||R.isValidElement(A),N=T?"div":"p",P=R.useMemo(()=>T?(Array.isArray(A)?A:[A]).some(Q=>{var j,F;return(F=(j=Q==null?void 0:Q.props)==null?void 0:j.className)==null?void 0:F.includes("form-response")}):!1,[A,T]),U=()=>A?E.jsxs("div",{className:`ed-p-2.5 ${u?"ed-bg-blue-light":"ed-bg-white-light"} ${P?"ed-p-0 ed-bg-white":""} ed-rounded-lg ed-mt-2 ed-text-[13px]`,children:[E.jsxs(N,{className:`ed-text-border-dark ${P||T?"":"ed-whitespace-pre-line ed-break-words"}`,children:[Ie.size(o)>0&&E.jsxs("div",{className:"ed-border-b ed-pb-2",children:[E.jsxs("button",{type:"button",onClick:b,className:"ed-flex ed-gap-1 ed-text-regular ed-items-center",children:[E.jsx("span",{children:m?E.jsx(hf,{className:"ed-size-4"}):E.jsx(ps,{className:"ed-size-4"})})," ",E.jsxs("span",{children:[m?"Hide":"View"," recipient"]})]}),m&&E.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-2 ed-mt-2",children:[Ie.size(y)>0&&E.jsx(sy,{context:"To",emails:y}),Ie.size(w)>0&&E.jsx(sy,{context:"CC",emails:w}),Ie.size(C)>0&&E.jsx(sy,{context:"BCC",emails:C})]})]}),E.jsx("div",{className:"ed-mt-2 ed-text-dark",children:A})]}),E.jsx(xW,{filesData:s})]}):null,V=i==null?void 0:i.some(H=>(H==null?void 0:H.status)!=="seen");return u?E.jsx("div",{className:"ed-max-w-[85%] ed-w-max ed-ml-auto",children:E.jsx(U,{})}):E.jsxs("div",{...V&&{"data-message-id":r},className:"ed-message ed-flex ed-gap-4 ed-my-4 ed-max-w-[85%] ed-w-max",children:[E.jsx("div",{className:"ed-size-7 ed-flex-shrink-0",children:h||d?E.jsx("div",{className:"ed-size-7 ed-flex ed-items-center ed-justify-center",children:E.jsx(zF,{})}):E.jsx(Rr,{className:"ed-size-7 ed-object-cover ed-rounded-full",alt:k,defaultImageClasses:"ed-w-7 ed-h-7",defaultUserNameTextSize:"ed-text-12",path:x==null?void 0:x.key,defaultImageName:x==null?void 0:x.default_image_name})}),E.jsxs("div",{children:[E.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2",children:[E.jsx("p",{className:"ed-text-border-regular ed-font-medium ed-text-[13px]",children:k}),E.jsx("span",{className:"ed-text-border ed-text-[13px] ed-font-medium",children:to(p).format(FW)})]}),n?E.jsx("div",{className:"ed-py-4",children:E.jsx(Af,{})}):E.jsx(U,{})]})]})},zd={recommend_from_knowledge_base:`<div>
|
|
676
|
+
<p style="font-size: 15px; color: #1f2937; line-height: 1.5;">Here's what I found that might help </br>👇</p>
|
|
677
|
+
|
|
678
|
+
<div style="font-size: 14px; line-height: 1.6;">
|
|
679
|
+
{{ai_summary}}
|
|
680
|
+
</div>
|
|
681
|
+
</br>
|
|
682
|
+
<p style="font-size: 14px; color: #1f2937;">👉 Read full article</p>
|
|
683
|
+
|
|
684
|
+
<div style="margin: 0;">
|
|
685
|
+
{{#each articles}}
|
|
686
|
+
<div style="margin-bottom: 8px;">
|
|
687
|
+
<a href="{{url}}" style="color: #2563eb; text-decoration: underline; font-size: 14px; display: inline-block;">
|
|
688
|
+
{{title}}
|
|
689
|
+
</a>
|
|
690
|
+
</div>
|
|
691
|
+
{{/each}}
|
|
692
|
+
</div>`,recommend_from_knowledge_base_fallback:"<p>Thanks for your question! I couldn’t find a help article that directly answers this yet. But I can still help you get this resolved 👇</p>",recommend_channel:`<p>Based on the details you shared, the recommended channel is <strong>{{channel.name}}</strong>.</p></br>
|
|
693
|
+
<p>Would you like to continue with {{channel.name}}, or choose a different channel?</p>
|
|
694
|
+
`,summarize_issue:`<p>Here’s a quick summary of your issue based on what you’ve shared so far.Take a moment to review the details — you can edit them if something doesn’t look right. </br></br>
|
|
695
|
+
<strong>Subject:</strong> {{ai_title}} </br>
|
|
696
|
+
<strong>Description:</strong> {{ai_summary}} </br>
|
|
697
|
+
<strong>Channel:</strong> {{channel.name}} </br>
|
|
698
|
+
</p>`},jW=async({message:t,conversationId:e,sendMessage:n,files:r})=>{const i={conversation_id:e,message:t,is_customer_reply:!0,auto_response_trigger_type:"recommend_from_knowledge_base",message_template:zd.recommend_from_knowledge_base,fallback_message_template:zd.recommend_from_knowledge_base_fallback,...r&&r.length>0&&{files:r}};return n(i)};var ly={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CREATE_OR_UPDATE_A_CONVERSATION_ACTIVITY_REALTIME_STATUS"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"inputData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ConversationActivityRealtimeStatusCreateInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createOrUpdateAConversationActivityRealtimeStatus"},arguments:[{kind:"Argument",name:{kind:"Name",value:"inputData"},value:{kind:"Variable",name:{kind:"Name",value:"inputData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:226}};ly.loc.source={body:`mutation CREATE_OR_UPDATE_A_CONVERSATION_ACTIVITY_REALTIME_STATUS(
|
|
699
|
+
$inputData: ConversationActivityRealtimeStatusCreateInputType!
|
|
700
|
+
) {
|
|
701
|
+
createOrUpdateAConversationActivityRealtimeStatus(inputData: $inputData) {
|
|
702
|
+
id
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Bd(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){Bd(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){Bd(r,e)}),t.definitions&&t.definitions.forEach(function(r){Bd(r,e)})}var cy={};(function(){ly.definitions.forEach(function(e){if(e.name){var n=new Set;Bd(e,n),cy[e.name.value]=n}})})();function a4(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function DW(t,e){var n={kind:t.kind,definitions:[a4(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=cy[e]||new Set,i=new Set,o=new Set;for(r.forEach(function(s){o.add(s)});o.size>0;){var a=o;o=new Set,a.forEach(function(s){if(!i.has(s)){i.add(s);var c=cy[s]||new Set;c.forEach(function(u){o.add(u)})}})}return i.forEach(function(s){var c=a4(t,s);c&&n.definitions.push(c)}),n}const VW=DW(ly,"CREATE_OR_UPDATE_A_CONVERSATION_ACTIVITY_REALTIME_STATUS"),UW=()=>{const[t]=wo(VW);return{handleCreateOrUpdateRealtimeStatus:async(n,r=()=>{})=>{try{const{data:i}=await t({variables:{inputData:n}});r(i==null?void 0:i.createOrUpdateAConversationActivityRealtimeStatus)}catch(i){console.error(i)}}}},zW=["image/jpeg","image/png","application/pdf"],BW=({conversationId:t,handleCreateMessage:e,useAITemplate:n=!0,onAIThinkingChange:r})=>{const i=R.useRef(null),o=R.useRef(null),a=R.useRef(null),[s,c]=R.useState(""),[u,d]=R.useState([]),[h,p]=R.useState(!1),{sendMessage:m}=g1(),{handleCreateOrUpdateRealtimeStatus:v}=UW(),b=async N=>{var j;const P=N==null?void 0:N.name,U=(j=P==null?void 0:P.split)==null?void 0:j.call(P,"."),V=Ie.last(U),H=`${dg()}.${V}`,Q=await Cg({name:H,sub_type:t,type:"conversation_activity_attachment"});return Q!=null&&Q.url?{name:H,file:N,title:P,policy:Q}:(Rn("error",`${P} cannot be uploaded`,"top-left"),null)},y=async N=>{N.preventDefault();const P=5*1024*1024,U=Array.from(N.target.files);let V="";if(Ie.forEach(U,H=>{if(!zW.includes(H.type)){V=`${H.name} is not supported. `;return}if(H.size>P){V="Each file must be under 5MB";return}}),V){Rn("error",V,"top-left");return}try{const H=[];for(let j=0;j<U.length;j+=1)H.push(b(U[j]));const Q=await Promise.all(H);d(j=>[...j,...Q.filter(F=>F!==null)])}catch(H){console.error("Error occurred while fetching policies:",H)}a.current.value=null},w=N=>{d(P=>P.filter((U,V)=>V!==N)),a.current&&(a.current.value="")},C=u.slice(0,5),k=u.length-5;R.useEffect(()=>{const N=i.current,P=o.current;if(N&&P){N.style.height="auto";const V=P.offsetWidth*.5,H=Math.min(N.scrollHeight,V);N.style.height=`${H}px`,P.style.height=`${H+16}px`,N.style.overflowY=N.scrollHeight>V?"auto":"hidden"}},[s,u]);const x=async N=>{if(N&&N.preventDefault(),!(!s&&!u.length)){p(!0);try{const P=Ie.size(u)&&await NW(u,t);n?(await jW({message:s,conversationId:t,sendMessage:m,files:P}),setTimeout(()=>{r&&r(!0)},100)):await e({message:s,is_customer_reply:!0,current_stage:"agent_chat",...P&&{files:P}}),c(""),d([]),setTimeout(()=>{i.current&&i.current.focus()},150)}catch(P){console.error("Error sending message:",P),n&&r&&r(!1)}finally{p(!1)}}},S=R.useMemo(()=>!RO(s)&&!Ie.size(u)||h,[s,u,h]),A=async N=>{N?await v({conversation_id:t,is_writing_reply:!0}):await v({conversation_id:t,is_writing_reply:!1})},T=N=>{N.key==="Enter"&&!N.shiftKey&&!h&&!S&&(N.preventDefault(),x(N))};return E.jsxs(E.Fragment,{children:[u.length>0&&E.jsxs("div",{className:"ed-flex ed-flex-wrap ed-items-center ed-gap-2 ed-mb-2",children:[C.map((N,P)=>E.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2 ed-text-12 ed-font-medium ed-text-border-regular ed-bg-white-light ed-p-1.5 ed-rounded-full",children:[E.jsx("span",{className:"ed-truncate ed-max-w-[100px]",children:N.name}),E.jsx("button",{type:"button",onClick:()=>w(P),className:"ed-text-border hover:ed-text-border-dark ed-flex-shrink-0",children:E.jsx(Pi,{size:14})})]},N)),k>0&&E.jsxs("span",{className:"ed-text-12 ed-text-border-regular",children:["+",k," ",k===1?"item":"items"]})]}),E.jsxs("div",{ref:o,className:"ed-border ed-border-border-light ed-rounded-3xl ed-flex ed-justify-between ed-transition-all ed-duration-200",style:{padding:"8px 16px",border:"1px solid #D8E0ED",borderRadius:"24px"},children:[E.jsx("div",{className:"ed-flex-1 ed-flex ed-flex-col ed-min-w-0",children:E.jsx("textarea",{ref:i,value:s,onBlur:()=>A(!1),onChange:N=>c(N.target.value),onFocus:()=>A(!0),onKeyDown:N=>T(N),rows:1,className:"ed-w-full ed-text-14 ed-min-h-[24px] ed-resize-none ed-overflow-x-auto ed-outline-none ed-bg-transparent ed-no-scrollbar",placeholder:"Enter your message",disabled:h,style:{border:"none",outline:"none",fontSize:"14px",fontFamily:"inherit",color:"inherit",lineHeight:"1.5",padding:0,margin:0}})}),E.jsxs("div",{className:"ed-flex ed-items-center ed-gap-2.5 ed-ml-2 ed-flex-shrink-0",children:[E.jsx("input",{type:"file",ref:a,onChange:y,className:"ed-hidden",accept:".pdf, .png, .jpeg, .jpg",multiple:!0,disabled:h}),E.jsx(Nd,{content:E.jsx("p",{className:"ed-text-12 ed-text-center ed-font-medium ed-text-regular",children:"Supported file types: jpg, png, pdf (max 5MB)"}),children:E.jsx("button",{type:"button",onClick:()=>{var N;return(N=a.current)==null?void 0:N.click()},className:"ed-text-border hover:ed-text-border-dark",children:E.jsx(V1,{className:"ed-size-5 ed-cursor-pointer ed-mt-2"})})}),E.jsx("button",{onClick:x,type:"button",disabled:S,children:h?E.jsx(ma,{className:"ed-size-5"}):E.jsx(G1,{className:`${S?"ed-text-border":"ed-text-brand"} ed-size-5`})})]})]})]})},s4=t=>`<p>${t}</p>
|
|
706
|
+
`,l4=({type:t="no_results",showChatButton:e=!0,onCreateTicket:n,sendMessage:r,conversationId:i})=>{const[o,a]=R.useState(!1),s=t==="no_results",c=s?Ht.quickActions.chatWithAgent:Ht.quickActions.chatWithAgentShort,u=s?Ht.quickActions.createTicket:Ht.quickActions.createTicketShort,d=async(h,p,m=!1)=>{if(!o){a(!0);try{if(r&&i){const v=s4(h),b={conversation_id:i,message:v,is_customer_reply:!0};m?(b.auto_response_trigger_type="recommend_channel",b.message_template=zd.recommend_channel,b.current_stage="recommend_channel",b.next_stage="select_channel"):(b.auto_response_trigger_type="summarize_issue",b.message_template=zd.summarize_issue,b.current_stage="req_for_support_ticket",b.next_stage="create_a_support_ticket"),await r(b)}p&&p()}finally{setTimeout(()=>a(!1),500)}}};return E.jsxs("div",{className:"ed-pl-16 ed-space-y-2 ed-px-5 ed-flex ed-flex-col",children:[(s||e)&&E.jsxs("button",{type:"button",onClick:()=>d(c,()=>{},!0),disabled:o,className:"ed-w-min ed-whitespace-nowrap ed-px-2.5 ed-py-1 ed-text-left ed-bg-white ed-border ed-border-brand ed-rounded-lg hover:ed-bg-gray-50 ed-transition-colors ed-text-12 ed-font-medium ed-text-brand disabled:ed-opacity-50 disabled:ed-cursor-not-allowed",children:["💬 ",c]}),E.jsxs("button",{type:"button",onClick:()=>d(u,n,!1),disabled:o,className:"ed-w-min ed-whitespace-nowrap ed-px-2.5 ed-py-1 ed-text-left ed-bg-white ed-border ed-border-brand ed-rounded-lg hover:ed-bg-gray-50 ed-transition-colors ed-text-12 ed-font-medium ed-text-brand disabled:ed-opacity-50 disabled:ed-cursor-not-allowed",children:["📝 ",u]})]})},Hd=({type:t="initial",onYes:e=()=>{},onNo:n=()=>{},sendMessage:r,conversationId:i})=>{const[o,a]=R.useState(!1),s=t==="initial",c=s?Ht.quickActions.yes:Ht.quickActions.yesMore,u=s?Ht.quickActions.no:Ht.quickActions.noThanks,d=async(h,p,m)=>{if(!o){a(!0);try{if(r&&i){const v=s4(h,p);await r({conversation_id:i,message:v,is_customer_reply:!0})}m&&m()}finally{setTimeout(()=>a(!1),500)}}};return E.jsxs("div",{className:`ed-max-w-[85%] ed-w-max ed-ml-16 ed-p-2.5 ed-flex ${t!=="followup"?"ed-flex-col ed-space-y-2 ed-bg-white-light":"ed-gap-2"} ed-rounded-lg ed-mt-2 ed-text-[13px]`,children:[t!=="followup"&&E.jsx("p",{children:"Did any of these solve your problem?"}),E.jsx("button",{type:"button",onClick:()=>d(c,!0,e),disabled:o,className:"ed-w-min ed-whitespace-nowrap ed-px-2.5 ed-py-1 ed-text-left ed-bg-white ed-border ed-border-brand ed-rounded-lg hover:ed-bg-gray-50 ed-transition-colors ed-text-12 ed-font-medium ed-text-brand disabled:ed-opacity-50 disabled:ed-cursor-not-allowed",children:c}),E.jsx("button",{type:"button",onClick:()=>d(u,!1,n),disabled:o,className:"ed-w-min ed-whitespace-nowrap ed-px-2.5 ed-py-1 ed-text-left ed-bg-white ed-border ed-border-brand ed-rounded-lg hover:ed-bg-gray-50 ed-transition-colors ed-text-12 ed-font-medium ed-text-brand disabled:ed-opacity-50 disabled:ed-cursor-not-allowed",children:u})]})},HW=({onSubmit:t})=>{var o,a;const[e,n]=R.useState(!1),{data:r,loading:i}=Dl(Md,{errorPolicy:"all",fetchPolicy:"no-cache",variables:{queryData:{is_live_chat_enabled:!0}}});return i?null:(a=(o=r==null?void 0:r.getChannelsForPortal)==null?void 0:o.data)==null?void 0:a.map(s=>E.jsx("div",{className:"ed-max-w-[87%] ed-ml-auto ed-mb-2 ed-px-5",children:E.jsx("button",{type:"button",disabled:e,className:`ed-border ed-border-brand ed-text-12 ed-text-brand ed-p-1 ed-rounded ${e?"ed-opacity-50 ed-cursor-not-allowed":""}`,onClick:()=>{n(!0),t({is_customer_reply:!0,message:`<span style="font-size:12px; padding:4px; color:#172554; font-weight:600;" className="selected-channel">
|
|
707
|
+
${s==null?void 0:s.name}
|
|
708
|
+
</span>`,channel_id:s==null?void 0:s.id,channel_name:s==null?void 0:s.name})},children:s==null?void 0:s.name})},s==null?void 0:s.id))},WW=t=>!t||t.length===0?"":`
|
|
709
|
+
<div>
|
|
710
|
+
<h6 class="ed-text-14 ed-font-semibold ed-text-border-dark ed-pb-2">Attachment</h6>
|
|
711
|
+
${t.map(n=>{var c,u,d;const r=URL.createObjectURL(n==null?void 0:n.file),i=((c=n==null?void 0:n.file)==null?void 0:c.name)||"file",o=(u=n==null?void 0:n.file)!=null&&u.size?(n.file.size/(1024*1024)).toFixed(2):"0.00";return`
|
|
712
|
+
<div class="ed-flex ed-gap-2 ed-pb-1 ed-items-center">
|
|
713
|
+
<div class="ed-border ed-rounded-md ed-p-1 ed-w-[50px] ed-h-[50px] ed-flex ed-items-center ed-justify-center">
|
|
714
|
+
${(((d=n==null?void 0:n.file)==null?void 0:d.type)||"").startsWith("image/")?`<img
|
|
715
|
+
src="${r}"
|
|
716
|
+
alt="${i}"
|
|
717
|
+
class="ed-w-full ed-max-h-full ed-object-contain ed-rounded"
|
|
718
|
+
/>`:`<svg
|
|
719
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
720
|
+
x="0px"
|
|
721
|
+
y="0px"
|
|
722
|
+
width="100"
|
|
723
|
+
height="100"
|
|
724
|
+
viewBox="0 0 24 24"
|
|
725
|
+
>
|
|
726
|
+
<path
|
|
727
|
+
d="M4,19V5c0-1.657,1.343-3,3-3h7l6,6v11c0,1.657-1.343,3-3,3H7C5.343,22,4,20.657,4,19z"
|
|
728
|
+
opacity=".35"
|
|
729
|
+
></path>
|
|
730
|
+
<path d="M14,6V2l6,6h-4C14.895,8,14,7.105,14,6z"></path>
|
|
731
|
+
</svg>`}
|
|
732
|
+
</div>
|
|
733
|
+
<div>
|
|
734
|
+
<p class="ed-text-14 ed-truncate ed-max-w-[150px]">${i}</p>
|
|
735
|
+
<span class="ed-text-12 ed-font-medium ed-text-border">${o} MB</span>
|
|
736
|
+
</div>
|
|
737
|
+
</div>`}).join("")}
|
|
738
|
+
</div>`,GW=({title:t,message:e,files:n=[]})=>{const r=WW(n);return`<div
|
|
739
|
+
className="ed-min-w-[16rem] ed-rounded-[20px] ed-border ed-bg-white-light ed-p-5 ed-space-y-5 form-response"
|
|
740
|
+
>
|
|
741
|
+
<div>
|
|
742
|
+
<h6 className="ed-text-14 ed-font-semibold ed-text-border-dark">Subject</h6>
|
|
743
|
+
<p className="ed-text-border-regular">${t}</p>
|
|
744
|
+
</div>
|
|
745
|
+
<div>
|
|
746
|
+
<h6 className="ed-text-14 ed-font-semibold ed-text-border-dark">Summary</h6>
|
|
747
|
+
<p className="ed-text-border-regular ed-whitespace-pre-line">${e}</p>
|
|
748
|
+
</div>
|
|
749
|
+
${r}
|
|
750
|
+
</div>`},YW=({orgBrandSetting:t={},userData:e={},currentConversationID:n,setCurrentConversationID:r})=>{var ne,ce,ie,de,pe;const{conversationData:i,conversationState:o,inputFieldState:a,setInputFieldState:s,isAIThinking:c,setIsAIThinking:u,handleUpdateConversationActivityAnalytics:d}=hs(),{sendMessage:h}=g1(),p=R.useRef(null),m=R.useRef(null),v=Wr.get("easydesk_chat_widget_conversation_id"),{brand:b}=t,[y,w]=R.useState(null),[C,k]=R.useState(!1),[x,S]=R.useState([]),A=n||v,[T]=Fl(Md,{errorPolicy:"all",fetchPolicy:"no-cache"}),N=async J=>{var re,he;try{const Ee=GW({title:J==null?void 0:J.title,message:J==null?void 0:J.message,files:J.conversation_activity_files}),X=await h({is_customer_reply:!0,message:Ee,conversation_id:J==null?void 0:J.conversation_id});if(X!=null&&X.id){s(ye=>({...ye,ticket_title:J==null?void 0:J.ticket_title,ticket_activity:J==null?void 0:J.ticket_activity,conversation_activity_files:J==null?void 0:J.conversation_activity_files}));const Re=Ld(Ht.ticket.success,{ticket_id:(J==null?void 0:J.ticketId)||"N/A",customer_email:((re=i==null?void 0:i.contact)==null?void 0:re.person_email)||(a==null?void 0:a.contact_person_email)||"your email"});await h({is_auto_response:!0,message:Re,current_stage:"closed"},!0)}}catch(Ee){const{message:X,response:Re}=Ee;Rn("error",((he=Re==null?void 0:Re.data)==null?void 0:he.message)||X,"top-left")}},P=async()=>{try{await h({conversation_id:A,message:Ht.ai.thanksFeedback,is_auto_response:!0,current_stage:"followup_feedback"})}catch(J){console.error("Error creating follow-up message:",J)}},U=async()=>{var J;try{const{data:re}=await T({variables:{queryData:{is_live_chat_enabled:!0}}}),he=Ie.size((J=re==null?void 0:re.getChannelsForPortal)==null?void 0:J.data)>0&&!(t!=null&&t.is_off_hour);k(he),await h({conversation_id:A,message:Ht.ai.needMoreHelp,is_auto_response:!0,current_stage:"need_help"})}catch(re){console.error("Error handling initial no click:",re)}},V=async()=>{var J;try{const{data:re}=await T({variables:{queryData:{is_live_chat_enabled:!0}}}),he=Ie.size((J=re==null?void 0:re.getChannelsForPortal)==null?void 0:J.data)>0&&!(t!=null&&t.is_off_hour);k(he),await h({conversation_id:A,message:Ht.ai.needMoreHelp,is_auto_response:!0,current_stage:"need_help"})}catch(re){console.error("Error handling intermediate yes click:",re)}},H=async()=>{var J;try{const re=((J=i==null?void 0:i.contact)==null?void 0:J.person_name)||"there",he=Ld(Ht.ai.goodbye,{name:re});await h({conversation_id:A,message:he,is_auto_response:!0,current_stage:"closed"}),w("CONVERSATION_ENDED")}catch(re){console.error("Error handling intermediate no click:",re)}},Q=async()=>{try{await h({conversation_id:A,message:Ht.followUp.withAainAI,is_auto_response:!0,current_stage:"ai_available"})}catch(J){console.error("Error restarting conversation:",J)}},j=async()=>{var J;try{const re=((J=i==null?void 0:i.contact)==null?void 0:J.person_name)||"there",he=Ld(Ht.ai.goodbye,{name:re});await h({conversation_id:A,message:he,is_auto_response:!0,current_stage:"closed"}),w("CONVERSATION_ENDED")}catch(re){console.error("Error handling follow-up no click:",re)}},F=async J=>{try{await h({conversation_id:A,message:J.message,is_customer_reply:J.is_customer_reply,channel_id:J.channel_id,current_stage:"agent_chat"}),S([]),await h({conversation_id:A,message:Ht.followUp.afterChannelSelection,is_auto_response:!0,is_customer_reply:!1,current_stage:"agent_chat"})}catch(re){console.error("Error selecting channel:",re)}},D=()=>{w("BRAND_WENT_OFF_HOUR")},Y=((ne=o==null?void 0:o.metaData)==null?void 0:ne.filtered_rows)&&Ie.size(o==null?void 0:o.messages)<((ce=o==null?void 0:o.metaData)==null?void 0:ce.filtered_rows),{loadMoreMessages:z}=g1(),q=z;R.useEffect(()=>{const J=setTimeout(()=>{var Ee;const re=(Ee=p.current)==null?void 0:Ee.querySelectorAll(".single-message"),he=re==null?void 0:re[Ie.size(re)-1];he==null||he.scrollIntoView({behavior:"smooth",block:"nearest"})},200);return()=>clearTimeout(J)},[Ie.size(o==null?void 0:o.messages)]),R.useEffect(()=>{A&&(m.current=null)},[A]);const W=(i==null?void 0:i.is_spam)||["closed","resolved"].includes(i==null?void 0:i.status),G=()=>{var re;if(!(o!=null&&o.messages)||Ie.size(o.messages)===0)return!1;const J=o.messages[o.messages.length-1];return((re=J==null?void 0:J.metadata)==null?void 0:re.current_stage)==="agent_chat"},te=()=>{if(!(o!=null&&o.messages)||Ie.size(o.messages)===0)return!1;const J=o.messages[o.messages.length-1],re=J==null?void 0:J.metadata;return!re||J!=null&&J.is_customer_reply||c?!1:!!(re.current_stage&&!["agent_chat","ai_available"].includes(re.current_stage)||re.has_results===!0||re.has_results===!1)};return R.useEffect(()=>{let J=[];const re=Ie.debounce(async()=>{await d({seen_activity_ids:J}),J=[]},1e3),he=new IntersectionObserver(X=>{X.forEach(Re=>{if(Re.isIntersecting){const ye=Re.target.getAttribute("data-message-id");ye&&J.push(ye)}}),Ie.size(J)&&re()},{threshold:1}),Ee=document.querySelectorAll(".ed-message");return Ee.forEach(X=>he.observe(X)),()=>{re.cancel(),Ee.forEach(X=>he.unobserve(X))}},[o==null?void 0:o.messages]),E.jsxs("div",{children:[E.jsx("div",{ref:p,id:"activities-scroll-target",className:"ed-flex ed-flex-col ed-pb-5 ed-space-y-5 ed-h-[calc(100vh-200px)] ed-overflow-y-auto ed-no-scrollbar",children:E.jsx(Og,{dataLength:Ie.size(o==null?void 0:o.messages),hasMore:Y,loader:o!=null&&o.loadingActivities?"Loading...":"",scrollableTarget:"activities-scroll-target",inverse:!0,next:q,children:E.jsxs("div",{className:"ed-flex-1 ed-space-y-3",children:[Ie.size(o==null?void 0:o.messages)?E.jsxs("div",{children:[(i==null?void 0:i.type)==="ticket"&&E.jsxs("div",{className:"ed-bg-gray-light ed-p-2 ed-rounded",children:[E.jsxs("p",{className:"ed-text-regular ed-font-normal ed-text-14",children:["ID",i==null?void 0:i.serial]}),E.jsx("h5",{className:"ed-text-dark ed-font-normal ed-text-14",children:i==null?void 0:i.title})]}),(ie=o==null?void 0:o.messages)==null?void 0:ie.map(J=>E.jsx("div",{className:"single-message ed-px-5 ed-pt-3 ed-animate-fadeInUp",children:["reply","file"].includes(J==null?void 0:J.type)?E.jsx(o4,{activityMessage:J,brand:b},J==null?void 0:J.id):E.jsx(XH,{log:J==null?void 0:J.log},J==null?void 0:J.id)},J==null?void 0:J.id))]}):E.jsx(nW,{onSubmit:J=>{s(re=>({...re,contact_person_name:J==null?void 0:J.contact_person_name,contact_person_email:J==null?void 0:J.contact_person_email}))},orgBrandSetting:t,setSelectedConversationId:r,userData:e}),!c&&(o==null?void 0:o.messages)&&Ie.size(o.messages)>0&&(()=>{const J=o.messages[o.messages.length-1],{metadata:re}=J||{};if(re&&!(J!=null&&J.is_customer_reply)){const{current_stage:he}=re;if(!he&&re.has_results===!0)return E.jsx(Hd,{type:"initial",sendMessage:h,conversationId:A,onYes:P,onNo:U});if(he==="initial_feedback")return E.jsx(Hd,{type:"initial",sendMessage:h,conversationId:A,onYes:P,onNo:U});if(he==="followup_feedback")return E.jsx(Hd,{type:"followup",sendMessage:h,conversationId:A,onYes:Q,onNo:j});if(he==="intermediate_help")return E.jsx(Hd,{type:"intermediate",sendMessage:h,conversationId:A,onYes:V,onNo:H});if(he==="need_help")return E.jsx(l4,{type:"need_help",sendMessage:h,conversationId:A,showChatButton:C,onCreateTicket:D});if(!re.has_results&&!he)return E.jsx(l4,{type:"no_results",sendMessage:h,conversationId:A,onCreateTicket:D});if(he==="select_channel")return E.jsx(HW,{channels:x,onSubmit:F});if(he==="create_a_support_ticket")return E.jsx(M_,{from:"message",isAuthenticated:!0,onSubmit:N,reqId:null,userData:a})}return null})(),(((de=o==null?void 0:o.writing_realtime_status)==null?void 0:de.is_writing_reply)||c)&&E.jsx("div",{className:"single-message ed-px-5",children:E.jsx(o4,{brand:b,activityMessage:{author:(pe=o==null?void 0:o.writing_realtime_status)==null?void 0:pe.author,is_customer_reply:!1,created_at:Date.now()},isReplying:!0})})]})})}),((i==null?void 0:i.type)==="ticket"||!W&&Ie.size(o==null?void 0:o.messages)>=3&&!y&&!te()&&y!=="CONVERSATION_ENDED")&&E.jsx("div",{className:"ed-sticky ed-bottom-0 ed-bg-white ed-py-5 ed-border-y ed-border-border-light ed--mx-5 ed-px-5",children:E.jsx(BW,{conversationId:A,handleCreateMessage:h,onAIThinkingChange:u,useAITemplate:!G()})})]})},KW=({item:t,onSelect:e,userData:n})=>{const{id:r,type:i,status:o,last_conversation_activity:a,organization_brand:s,assignee:c}=t||{},{handleUpdateConversationActivityAnalytics:u,setConversationsData:d}=Ao(),{message:h,user:p,created_at:m,analytics:v}=a||{},{status:b}=(v==null?void 0:v[0])||{},{setting:y,name:w}=s||{},{first_name:C,last_name:k,email:x,avatar_file:S}=(c==null?void 0:c.user)||{},A=R.useMemo(()=>Du(C,k,x)||w||"Unknown User",[C,k,x,w]),T=S||(y==null?void 0:y.icon),N=(n==null?void 0:n.id)===(p==null?void 0:p.id),P=j=>N?"ed-text-border-dark":j?"ed-text-border-dark ed-font-medium":"ed-text-border-dark ed-font-semibold",U=async()=>{b!=="seen"&&(await u({seen_activity_ids:[a==null?void 0:a.id]}),d(j=>{var Y,z;const{existing:F,updated:D}=Ie.reduce(j,(q,W)=>(W.id===r?q.existing=W:q.updated.push(W),q),{existing:null,updated:[]});if(F){const q={...F,last_conversation_activity:{...F.last_conversation_activity,analytics:(z=(Y=F.last_conversation_activity)==null?void 0:Y.analytics)==null?void 0:z.map((W,G)=>G===0?{...W,status:"seen"}:W)}};return[...D,q]}return j})),e(r)},V=R.useMemo(()=>PW[o],[o]),H=N&&b==="seen",Q=R.useMemo(()=>MW(h),[h]);return E.jsxs("div",{role:"button",tabIndex:0,onClick:U,className:"ed-flex ed-items-center ed-gap-2.5 ed-border-b ed-py-5 ed-px-5 hover:ed-bg-light/40 ed-cursor-pointer custom-wrapper hover:ed-bg-white-light",children:[E.jsx("div",{className:"ed-size-12 ed-flex ed-items-center ed-justify-center",children:E.jsx(Rr,{alt:A,path:T==null?void 0:T.key,defaultImageName:Ni(x||w),className:"ed-size-10 ed-object-cover ed-rounded-full",defaultUserNameTextSize:"ed-text-12",defaultImageClasses:"ed-size-10 ed-object-cover ed-rounded-full"})}),E.jsxs("div",{className:"ed-w-full ed-flex ed-justify-between ed-items-center",children:[E.jsxs("div",{className:"ed-flex ed-flex-col ed-gap-0.5",children:[E.jsx("p",{className:`ed-font-medium ed-text-12 ed-line-clamp-1 ed-text-border-dark ${P(H)}`,children:h?Q:"[Attachment]"}),E.jsxs("div",{className:"ed-flex ed-items-center ed-gap-1",children:[E.jsx(Nd,{content:E.jsx("p",{className:"ed-text-12 ed-text-center ed-font-medium ed-text-regular",children:i==="chat"?"Chat":"Ticket"}),children:i==="chat"?E.jsx(Mw,{}):E.jsx(Pw,{})}),E.jsx("span",{className:"ed-size-1.5 ed-rounded-full ed-bg-border"}),E.jsx("p",{className:`ed-text-12 ${P(H)}`,children:um(A,20)}),E.jsx("span",{className:"ed-size-1.5 ed-rounded-full ed-bg-border"}),E.jsx("p",{className:"ed-text-12 ed-text-brand",children:IW(m)})]})]}),E.jsxs("div",{className:"ed-flex ed-gap-2 ed-items-center",children:[!N&&b!=="seen"&&E.jsx("div",{className:"ed-size-1 ed-rounded-full ed-bg-red"}),E.jsx("span",{className:"custom-children",children:E.jsx(eo,{className:"ed-size-4 ed-text-regular"})})]}),["open","resolved"].includes(o)&&E.jsx("span",{className:`ed-text-12 ed-px-3 ed-py-1 ${V==null?void 0:V.className}`,children:V==null?void 0:V.label})]})]})},ZW="easydesk_chat_widget_conversation_id",QW=({setCurrentConversationID:t,userData:e})=>{const n=R.useRef(null),{setIsChatHistory:r,conversationsData:i,metaData:o,loadingStates:a,setOptionData:s,optionData:c,setLoadingStates:u}=Ao(),{initialStatesData:d,setConversationState:h}=hs(),p=async()=>{Wr.remove(ZW),t(null),h(d.conversationState),r(!1)},m=b=>{b&&(t(b),r(!1))};R.useEffect(()=>{const b=setTimeout(()=>{var C;const y=(C=n.current)==null?void 0:C.querySelectorAll(".single-message-container"),w=y==null?void 0:y[Ie.size(y)-1];w==null||w.scrollIntoView({behavior:"smooth",block:"nearest"})},200);return()=>clearTimeout(b)},[Ie.size(i)]);const v=(o==null?void 0:o.total_rows)>Ie.size(i);return E.jsxs("div",{children:[E.jsx("div",{className:"ed-h-[500px] ed-overflow-y-auto ed-no-scrollbar",id:"conversations-scroll-target",children:E.jsx(Og,{dataLength:Ie.size(i),hasMore:v,loader:a!=null&&a.fetchMoreLoading?E.jsx("div",{className:"ed-flex ed-items-center ed-justify-center",children:E.jsx(Af,{})}):"",scrollableTarget:"conversations-scroll-target",next:()=>{u({...a,fetchMoreLoading:!0}),s({...c,offset:c.offset+c.limit})},children:i==null?void 0:i.map(b=>E.jsx(KW,{item:b,onSelect:m,userData:e},b.id))})}),E.jsx("div",{className:"ed-flex ed-items-center ed-justify-center",children:E.jsxs("button",{onClick:p,type:"button",className:"ed-bg-brand ed-flex ed-text-white ed-items-center ed-px-6 ed-py-3 ed-rounded-lg ed-gap-2.5 ed-w-min ed-flex-nowrap ed-mt-5 ed-bottom-28 ed-absolute hover:ed-opacity-90 focus:ed-outline-none",children:[E.jsx("span",{className:"ed-whitespace-nowrap",children:"Send us a message"}),E.jsx(eo,{size:16})]})})]})},qW=()=>{const{setIsChatHistory:t}=Ao();return E.jsx("div",{className:"ed-flex ed-flex-col ed-items-center ed-justify-center",children:E.jsxs("div",{className:"ed-bottom-32 ed-absolute ed-flex ed-flex-col ed-items-center",children:[E.jsx(UF,{}),E.jsxs("button",{onClick:()=>t(e=>!e),type:"button",className:"ed-bg-brand ed-flex ed-text-white ed-items-center ed-px-6 ed-py-3 ed-rounded-lg ed-gap-2.5 ed-w-min ed-flex-nowrap ed-mt-5",children:[E.jsx("span",{className:"ed-whitespace-nowrap",children:"Send us a message"})," ",E.jsx(eo,{})]})]})})},JW=({orgBrandSetting:t,setIsPopupOpen:e,userData:n})=>{const{conversationsData:r,loadingStates:i,getConversationsForPortal:o,isChatHistory:a,setIsChatHistory:s,setCurrentConversationID:c,currentConversationID:u}=Ao();R.useEffect(()=>{n!=null&&n.isAuthenticated&&o()},[n==null?void 0:n.isAuthenticated]);const d=R.useMemo(()=>a?Ie.size(r)?E.jsx(QW,{data:r,userData:n,setCurrentConversationID:c}):E.jsx(qW,{}):E.jsx(YW,{orgBrandSetting:t,setIsPopupOpen:e,userData:n,currentConversationID:u,setCurrentConversationID:c,refreshConversations:o}),[r,n,u,a,t,s,e]);return i!=null&&i.initialLoading?E.jsx("div",{className:"ed-flex ed-justify-center ed-items-center ed-my-10",children:E.jsx(Af,{})}):E.jsx("div",{children:d})};var uy={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GET_ARTICLES"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"queryData"}},type:{kind:"NamedType",name:{kind:"Name",value:"ArticleQueryInputType"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"optionData"}},type:{kind:"NamedType",name:{kind:"Name",value:"OptionDataType"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getArticles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"queryData"},value:{kind:"Variable",name:{kind:"Name",value:"queryData"}}},{kind:"Argument",name:{kind:"Name",value:"optionData"},value:{kind:"Variable",name:{kind:"Name",value:"optionData"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:193}};uy.loc.source={body:`query GET_ARTICLES($queryData: ArticleQueryInputType, $optionData: OptionDataType) {
|
|
751
|
+
getArticles(queryData: $queryData, optionData: $optionData) {
|
|
752
|
+
data {
|
|
753
|
+
id
|
|
754
|
+
title
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Wd(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){var n=t.type;n.kind==="NamedType"&&e.add(n.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(r){Wd(r,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(r){Wd(r,e)}),t.definitions&&t.definitions.forEach(function(r){Wd(r,e)})}var fy={};(function(){uy.definitions.forEach(function(e){if(e.name){var n=new Set;Wd(e,n),fy[e.name.value]=n}})})();function c4(t,e){for(var n=0;n<t.definitions.length;n++){var r=t.definitions[n];if(r.name&&r.name.value==e)return r}}function XW(t,e){var n={kind:t.kind,definitions:[c4(t,e)]};t.hasOwnProperty("loc")&&(n.loc=t.loc);var r=fy[e]||new Set,i=new Set,o=new Set;for(r.forEach(function(s){o.add(s)});o.size>0;){var a=o;o=new Set,a.forEach(function(s){if(!i.has(s)){i.add(s);var c=fy[s]||new Set;c.forEach(function(u){o.add(u)})}})}return i.forEach(function(s){var c=c4(t,s);c&&n.definitions.push(c)}),n}const $W=XW(uy,"GET_ARTICLES"),eG=t=>{const{userData:e,widgetIntent:n}=t||{},{orgBrandSetting:r,setOrgBrandSetting:i,setCurrentConversationID:o,messageListUnreadCount:a}=Ao(),{unreadMessages:s}=hs(),c=a||Ie.size(s),[u,d]=R.useState(!1),[h,p]=R.useState(""),[m,v]=R.useState(null),[b,y]=R.useState(null),[w,C]=R.useState(!1),[k,x]=R.useState([]),[S,A]=R.useState(""),[T,N]=R.useState(!1),[P,U]=R.useState(!1),[V,H]=R.useState(!1),[Q,j]=R.useState(!1),F=new URLSearchParams(window.location.search).get("intent");R.useEffect(()=>{const re=F||n;re?re==="chat"?(H(!0),j(!1),A("messages"),d(!0)):re==="kb"&&(j(!0),H(!1),A("knowledge_base"),d(!0)):(H(!1),j(!1),d(!1))},[n,F]);const[D,{loading:Y}]=Fl($W,{errorPolicy:"all",fetchPolicy:"no-cache"}),{loading:z,data:q}=Dl(Md,{errorPolicy:"all",fetchPolicy:"no-cache"}),W=async re=>{var X;const{data:he,error:Ee}=await D(re);he!=null&&he.getArticles&&x(((X=he==null?void 0:he.getArticles)==null?void 0:X.data)||[]),Ee&&console.error(Ee)};R.useEffect(()=>{var re;q!=null&&q.getChannelsForPortal&&U(Ie.size((re=q==null?void 0:q.getChannelsForPortal)==null?void 0:re.data)>0)},[q]);const G=FN(re=>{W({variables:{queryData:{search_keyword:re}}})},500),te=re=>{p(re),G(re)},ne=async()=>{N(!0);try{const re=await pP();if(re){const{font:he,is_knowledge_base_enabled:Ee,theme_color:X}=re;i(re),AP(X),kP(he),c>0&&P?A("messages"):Ee&&!P||Ee&&P?A("knowledge_base"):!Ee&&P&&A("messages"),N(!1)}}catch(re){console.error(re),N(!1)}},ce=()=>{const re=document.getElementById("ed-widget");d(!u),u&&(e!=null&&e.isAuthenticated)&&o(null),p(""),v(null),y(null),C(!1),ne(),n&&re&&re.removeAttribute("ed-widget-intent"),H(!1),j(!1)};R.useEffect(()=>{ne()},[]),R.useEffect(()=>{if(!r)return;const{is_knowledge_base_enabled:re}=r;P&&V?(A("messages"),d(!0)):re&&Q&&(A("knowledge_base"),d(!0))},[r,P]);const ie=()=>S==="knowledge_base"?E.jsx(Pj,{loading:Y,articleId:b,isAuthenticated:e==null?void 0:e.isAuthenticated,selectedCategory:m,setArticleId:y,setSelectedCategory:v,orgBrandSetting:r}):S==="messages"?E.jsx(JW,{orgBrandSetting:r,setIsPopupOpen:d,userData:e}):null,{brand:de,is_knowledge_base_enabled:pe}=r||{},J=re=>{A(re),p(""),v(null),y(null),C(!1)};return!pe&&!P?null:E.jsxs("div",{children:[E.jsx(QH,{isPopupOpen:u,handlePopupTrigger:ce,orgBrandSetting:r,isAuthenticated:e==null?void 0:e.isAuthenticated}),E.jsx("div",{className:`ed-fixed ${u?"ed-opacity-100 ed-w-screen ed-h-dvh md:ed-max-h-[704px] md:ed-h-[80vh] md:ed-w-[400px]":"ed-opacity-0 ed-max-h-0 ed-h-0 ed-w-0 ed-pointer-events-none"} md:ed-bottom-24 md:ed-right-6 ed-bottom-0 ed-right-0 ed-bg-white ed-shadow-lg md:ed-rounded-[10px] ed-z-[9999999] ed-p-0.5 ed-overflow-hidden ed-transition-all ed-duration-300 ed-ease-in-out ed-flex ed-flex-col`,children:u&&E.jsxs(E.Fragment,{children:[E.jsx(JH,{searchedText:h,selectedCategory:m,setSearchedText:p,setArticleId:y,setSelectedCategory:v,setIsPopupOpen:d,handleSearch:te,setArticlesData:x,brandInfo:de,activeTab:S,userData:e}),E.jsx("div",{className:`ed-flex-1 ed-overflow-y-auto ed-no-scrollbar ${S==="knowledge_base"?"ed-pb-5":""} ed-root-scrollbar`,children:h?E.jsx("div",{className:"ed-h-full",children:Ie.size(k)?E.jsx(kL,{articlesData:k,setArticleId:y,setSearchedText:p,setArticlesData:x}):E.jsx(Mj,{setIsCreateNewTicketClicked:C})}):E.jsx("div",{className:`${S==="knowledge_base"?"ed-py-1":""} ed-space-y-4`,children:ie()})}),E.jsx(qH,{activeTab:S,handleTabChange:J,orgBrandSetting:r,hasLiveChat:P}),w&&E.jsx(PF,{setIsCreateNewTicketClicked:C,setSearchedText:p,searchedText:h,isAuthenticated:e==null?void 0:e.isAuthenticated})]})})]})},tG=async(t,e)=>{var n;try{const r=await Xt.post(`${ju()||e}/auth/widget-login`,{api_key:t});return((n=r==null?void 0:r.data)==null?void 0:n.data)||{}}catch{return{access_token:null,refresh_token:null}}},Gd=t=>{const{apiKey:e,envVariables:n}=t,[r,i]=R.useState(!1),[o,a]=R.useState(!1),s=(n==null?void 0:n.apiBaseUrl)||"https://api.easydesk.app",c=async d=>{i(!0);const h=await tG(d,s);h!=null&&h.access_token&&(sm("easydesk_chat_widget_public_access_token",h==null?void 0:h.access_token,{expires:30}),i(!1))};R.useEffect(()=>{e&&c(e)},[e]),R.useEffect(()=>{n!=null&&n.apiBaseUrl&&(n!=null&&n.cdnDomain)?T5(n):T5({apiBaseUrl:"https://api.easydesk.app",cdnDomain:"easydesk-prod"}),n!=null&&n.tokenName&&sm("easydesk_chat_widget_public_access_token",n==null?void 0:n.tokenName,{expires:30}),a(!0)},[n]);const u=R.useMemo(()=>Tm(s),[s]);return r||!o?null:E.jsxs(x9,{client:u,children:[E.jsx(IT,{}),E.jsx(cM,{userData:t==null?void 0:t.userData,orgBrandSetting:t==null?void 0:t.orgBrandSetting,children:E.jsx(yM,{children:E.jsx(eG,{...t})})})]})},u4=t=>{let e=document.getElementById("easydesk-chat-container");e||(e=document.createElement("div"),e.id="ed-widget",document.body.appendChild(e)),bb.createRoot(e).render(E.jsx(Gd,{...t}))};let dy=null;const nG=()=>{const t=document.getElementById("ed-widget");return t?{apiKey:t.getAttribute("ed-key"),apiBaseUrl:t.getAttribute("ed-api-url"),cdnDomain:t.getAttribute("ed-cdn-domain"),widgetIntent:t.getAttribute("ed-widget-intent")}:null},hy=()=>{const t=nG();if(t!=null&&t.apiKey){let e=document.getElementById("easydesk-chat-container");e||(e=document.createElement("div"),e.id="easydesk-chat-container",document.body.appendChild(e)),dy||(dy=bb.createRoot(e)),dy.render(E.jsx(Gd,{apiKey:t.apiKey,envVariables:{apiBaseUrl:t.apiBaseUrl,cdnDomain:t.cdnDomain},widgetIntent:t.widgetIntent}))}else console.error("ChatKey: API key is required for initialization")},f4=()=>{const t=document.getElementById("ed-widget");if(!t)return;new MutationObserver(n=>{n.forEach(r=>{r.type==="attributes"&&r.attributeName==="ed-widget-intent"&&hy()})}).observe(t,{attributes:!0,attributeFilter:["ed-widget-intent"]})};typeof window<"u"&&(window.ChatKey={init:u4},document.readyState==="complete"?(hy(),f4()):window.addEventListener("load",()=>{hy(),f4()}));const rG=Object.freeze(Object.defineProperty({__proto__:null,default:{widget:{label:{click_here:"click here",copy_code:"Copy code",create_a_ticket:"Create a ticket",easydesk:"EasyDesk",explore_more_articles:"Explore more articles",knowledge_base:"Knowledge Base",lets_explore:"Let's explore",no_article_found:"We couldn't find any articles that match your search. Want to create a ticket?",powerd_by:"Powered by",soon_get_response:"Soon you will get an email",ticket_created:"Ticket created",thank_you_for_your_feedback:"Thank you for your valuable feedback!"},placeholder:{search_for_articles:"Search for articles"}}}},Symbol.toStringTag,{value:"Module"})),iG=Object.freeze(Object.defineProperty({__proto__:null,default:{widget:{label:{click_here:"klikk her",copy_code:"Kopier kode",create_a_ticket:"Opprett en sak",easydesk:"EasyDesk",explore_more_articles:"Utforsk flere artikler",knowledge_base:"Kunnskapsbase",lets_explore:"La oss utforske",no_article_found:"Vi fant ingen artikler som samsvarer med søket ditt. Vil du opprette en sak?",powerd_by:"Drevet av",soon_get_response:"Du vil snart motta en e-post",ticket_created:"Sak opprettet",thank_you_for_your_feedback:"Takk for tilbakemeldingen din!"},placeholder:{search_for_articles:"Søk etter artikler"}}}},Symbol.toStringTag,{value:"Module"}));kn.Widget=Gd,kn.default=Gd,kn.initChatKey=u4,Object.defineProperties(kn,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|