// Universal Chat Assistant
// Build Date: 2026-11-04T03:20:08.789Z
// Commit: 9d80132fd394f5f110a56f0b66f6449ec7d266da
// Build Number: 20261104.1

!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('#unified-chat-assistant{--ds-spacing-2xs: 4px;--ds-spacing-xs: 8px;--ds-spacing-s: 12px;--ds-spacing-m: 16px;--ds-spacing-l: 20px;--ds-spacing-xl: 24px;--ds-spacing-2xl: 32px;--ds-body-xs-font-size: 12px;--ds-body-xs-font-weight: 400;--ds-body-xs-line-height: 16px;--ds-body-xs-letter-spacing: -.01em;--ds-body-s-font-size: 14px;--ds-body-s-font-weight: 400;--ds-body-s-line-height: 20px;--ds-body-s-letter-spacing: -.02em;--ds-body-m-font-size: 16px;--ds-body-m-font-weight: 400;--ds-body-m-line-height: 24px;--ds-body-m-letter-spacing: -.03em;--ds-heading-xs-font-size: 18px;--ds-heading-xs-font-weight: 600;--ds-heading-xs-line-height: 22.4px;--ds-heading-xs-letter-spacing: 0em;--ds-heading-s-font-size: 20px;--ds-heading-s-font-weight: 600;--ds-heading-s-line-height: 22.4px;--ds-heading-s-letter-spacing: 0em;--ds-heading-m-font-size: 22px;--ds-heading-m-font-weight: 600;--ds-heading-m-line-height: 21.6px;--ds-heading-m-letter-spacing: -.005em;--ds-heading-l-font-size: 26px;--ds-heading-l-font-weight: 700;--ds-heading-l-line-height: 20.8px;--ds-heading-l-letter-spacing: -.01em;--ds-radii-xs: 2px;--ds-radii-s: 4px;--ds-radii-m: 6px;--ds-radii-l: 8px;--ds-radii-xl: 12px;--ds-border-width-xs: 1px;--ds-border-width-s: 2px;--ds-border-width-m: 4px;--ds-elevation-level-1: 0 1px 2px rgba(0, 0, 0, .1);--ds-elevation-level-2: 0 2px 4px rgba(0, 0, 0, .1);--ds-elevation-level-3: 0 4px 8px rgba(0, 0, 0, .12);--ds-elevation-level-4: 0 8px 16px rgba(0, 0, 0, .15);--ds-elevation-level-5: 0 16px 32px rgba(0, 0, 0, .2);--ai-chat-drawer-width: 360px}#unified-chat-assistant#unified-chat-assistant{--ds-body-font-size: 16px;--ds-body-line-height: 24px;--ds-body-xs-font-size: 12px;--ds-body-xs-line-height: 16px;--ds-body-s-font-size: 14px;--ds-body-s-line-height: 20px;--ds-body-m-font-size: 16px;--ds-body-m-line-height: 24px;--ds-heading-3xs-font-size: 16px;--ds-heading-3xs-line-height: 24px;--ds-heading-2xs-font-size: 18px;--ds-heading-2xs-line-height: 24px;--ds-heading-xs-font-size: 18px;--ds-heading-xs-line-height: 24px;--ds-label-s-font-size: 12px;--ds-label-s-line-height: 16px;--ds-label-l-font-size: 16px;--ds-label-l-line-height: 24px;--ds-action-button-font-size: 15px;--ds-action-button-line-height: 22px}@media(min-width:540px){#unified-chat-assistant#unified-chat-assistant{--ds-heading-xs-font-size: 20px;--ds-heading-xs-line-height: 28px}}@media(min-width:1440px){#unified-chat-assistant{--ai-chat-drawer-width: 432px}}#unified-chat-assistant,#unified-chat-assistant.theme-light,#unified-chat-assistant.theme-day{--ds-theme-background-base-neutral: #ffffff;--ds-theme-background-base-fade: #f8f9fa;--ds-theme-background-base-color: #f0f2f5;--ds-theme-background-accent-subtle-normal: #e1f5fe;--ds-theme-text-primary: #212529;--ds-theme-text-muted: #6c757d;--ds-theme-foreground-base-icon: #0078d4;--ds-theme-foreground-accent-subtle-normal: #0078d4;--ds-theme-foreground-special-ai-gradient: linear-gradient(90deg, #0a86c4 .65%, #71ede8 100.65%);--ds-theme-drawer-button-color: #212529;--ds-theme-border-base-fade: #dee2e6;--ds-theme-chat-timestamp-color: #6c757d;--ds-theme-chat-suggested-action-background: #ffffff;--ds-theme-chat-suggested-action-color: #0078d4;--ds-theme-chat-suggested-action-border: #0078d4;--ds-theme-chat-suggested-action-color-hover: #106ebe;--ds-theme-chat-suggested-action-border-hover: #106ebe}#unified-chat-assistant.theme-dark,#unified-chat-assistant.theme-night{--ds-theme-background-base-neutral: #1e1e1e;--ds-theme-background-base-fade: #252526;--ds-theme-background-base-color: #2d2d30;--ds-theme-background-accent-subtle-normal: #0e4f88;--ds-theme-text-primary: #ffffff;--ds-theme-text-muted: #cccccc;--ds-theme-foreground-base-icon: #4fc3f7;--ds-theme-foreground-accent-subtle-normal: #4fc3f7;--ds-theme-foreground-special-ai-gradient: linear-gradient(90deg, #0a86c4 .65%, #71ede8 100.65%);--ds-theme-drawer-button-color: #ffffff;--ds-theme-border-base-fade: #3e3e42;--ds-theme-chat-timestamp-color: #cccccc;--ds-theme-chat-suggested-action-background: #2d2d30;--ds-theme-chat-suggested-action-color: #4fc3f7;--ds-theme-chat-suggested-action-border: #4fc3f7;--ds-theme-chat-suggested-action-color-hover: #29b6f6;--ds-theme-chat-suggested-action-border-hover: #29b6f6}@media(prefers-contrast:high){#unified-chat-assistant{--ds-theme-background-base-neutral: #ffffff;--ds-theme-background-base-fade: #ffffff;--ds-theme-background-base-color: #ffffff;--ds-theme-text-primary: #000000;--ds-theme-text-muted: #000000;--ds-theme-border-base-fade: #000000;--ds-theme-foreground-base-icon: #0000ff;--ds-theme-chat-suggested-action-background: #ffffff;--ds-theme-chat-suggested-action-color: #0000ff;--ds-theme-chat-suggested-action-border: #000000;--ds-elevation-level-4: 0 0 0 2px #000000}}@media(prefers-reduced-motion:reduce){#unified-chat-assistant{--ds-animation-duration-fast: 0s;--ds-animation-duration-normal: 0s;--ds-animation-duration-slow: 0s}}#unified-chat-assistant{height:100%;min-height:100%}@media screen and (max-device-width:539px){body.uca-sidecar-mode #unified-chat-assistant{display:none!important}}@media(min-width:540px){body.uca-sidecar-mode{margin-right:var(--ai-chat-drawer-width, 360px)}}@media(min-width:860px){body.uca-sidecar-mode{margin-right:var(--ai-chat-drawer-width, 360px)}}@media(min-width:1440px){body.uca-sidecar-mode{margin-right:var(--ai-chat-drawer-width, 432px)}}.ac-container,.ac-adaptiveCard,.ac-textBlock{color:var(--ds-theme-drawer-text-color)!important;background-color:var(--ds-theme-background-base-neutral)!important}div:has(>.ac-input-container)>.ac-textBlock:last-child{color:var(--ds-theme-chat-error-color, #c50f1f)!important;background-color:transparent!important}.ac-actionSet{flex-direction:column!important;align-items:stretch!important;gap:8px!important}.ac-actionSet>div{width:100%!important}.ac-actionSet button{width:100%!important;justify-content:center!important;border:var(--ds-border-width-s) solid var(--ds-theme-border-accent-strong-normal)!important;border-radius:.5rem!important;border-color:var(--ds-theme-drawer-button-color)!important;color:var(--ds-theme-drawer-text-color)!important;background-color:transparent!important;padding:12px 16px!important;font-weight:500!important}.adaptive-card-container.actions-disabled .ac-actionSet button{opacity:.5!important;pointer-events:none!important;cursor:not-allowed!important;background-color:var(--ds-theme-background-disabled)!important;border-color:var(--ds-theme-border-disabled)!important;color:var(--ds-theme-text-disabled)!important}.adaptive-card-container.actions-disabled .ac-actionSet button.action-executed{opacity:.7!important;background-color:var(--ds-theme-background-accent)!important;border-color:var(--ds-theme-border-accent)!important;color:var(--ds-theme-text-on-accent)!important}.adaptive-card-container.actions-disabled input,.adaptive-card-container.actions-disabled textarea,.adaptive-card-container.actions-disabled select{pointer-events:none!important;cursor:not-allowed!important}.adaptive-card-container.actions-disabled .fui-Input,.adaptive-card-container.actions-disabled .ac-input-container{opacity:.7!important;pointer-events:none!important;cursor:not-allowed!important}.adaptive-card-container[data-card-id=uca-quotex-productlist-container] #uca-quotex-product-select-error.ac-textBlock{color:var(--ds-theme-chat-error-color, #c50f1f)!important;background-color:transparent!important}.adaptive-card-container[data-card-id=uca-quotex-quote-card] .ac-adaptiveCard>div>.ac-container{color:var(--ds-theme-drawer-text-color)!important;background:linear-gradient(180deg,#f4fafd 0% 50%,#e6f2fb)!important;border-radius:16px!important;box-shadow:var(--ds-elevation-level-4)!important}.adaptive-card-container[data-card-id=uca-quotex-quote-card] .ac-container,.adaptive-card-container[data-card-id=uca-quotex-quote-card] .ac-container .ac-textBlock{background:transparent!important}.adaptive-card-container[data-card-id=uca-quotex-productlist-container] .ac-textBlock,.adaptive-card-container[data-card-id=uca-quotex-quote-card] .ac-textBlock{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}.adaptive-card-container[data-card-id=uca-quotex-contact-card] .ac-adaptiveCard>div>.ac-container>div div:has(.ac-richTextBlock):has(.ac-input-container){border:1px solid var(--ds-theme-background-neutral-color)!important;border-radius:8px!important;padding:8px}.adaptive-card-container[data-card-id=uca-quotex-productlist-container] .ac-adaptiveCard>div>.ac-container>div>.ac-container{border-radius:16px!important}.adaptive-card-container[data-card-id=uca-quotex-contact-card] .ac-adaptiveCard>div>.ac-container>div div:has(.ac-richTextBlock):has(.ac-input-container) label .ac-textRun:first-child{color:var(--ds-theme-border-accent-strong-normal)!important;font-weight:600!important}.adaptive-card-container[data-card-id=uca-quotex-contact-card] .ac-adaptiveCard>div>.ac-container>div div:has(.ac-richTextBlock):has(.ac-input-container) .ac-input-container .fui-Input{border:none!important}.adaptive-card-container[data-card-id=uca-quotex-contact-card] .ac-adaptiveCard>div>.ac-container>div div:has(.ac-richTextBlock):has(.ac-input-container) .ac-input-container .fui-Input input{padding-left:0!important}.adaptive-card-container[data-card-id=uca-quotex-quote-card] .ac-actionSet,.adaptive-card-container[data-card-id=uca-quotex-contact-card] .ac-actionSet,.adaptive-card-container[data-card-id=uca-quotex-productlist-container] .ac-actionSet{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:var(--ds-spacing-xs)!important}.adaptive-card-container[data-card-id=uca-quotex-quote-card] .ac-actionSet>div,.adaptive-card-container[data-card-id=uca-quotex-contact-card] .ac-actionSet>div,.adaptive-card-container[data-card-id=uca-quotex-productlist-container] .ac-actionSet>div{flex:0 1 auto!important;width:auto!important;max-width:100%!important;min-width:0!important}.adaptive-card-container[data-card-id=uca-quotex-quote-card] .ac-actionSet button,.adaptive-card-container[data-card-id=uca-quotex-contact-card] .ac-actionSet button,.adaptive-card-container[data-card-id=uca-quotex-productlist-container] .ac-actionSet button{width:auto!important;min-width:80px!important;max-width:100%!important;height:auto!important;white-space:normal!important;overflow:visible!important}.adaptive-card-container[data-card-id=uca-quotex-quote-card] .ac-actionSet>div:first-child>button,.adaptive-card-container[data-card-id=uca-quotex-contact-card] .ac-actionSet>div:first-child>button,.adaptive-card-container[data-card-id=uca-quotex-productlist-container] .ac-actionSet>div:first-child>button{background-color:var(--ds-theme-border-accent-strong-normal)!important;border-radius:8px!important;border:1px solid var(--ds-theme-border-accent-strong-normal)!important;color:var(--ds-theme-background-base-neutral)!important;cursor:pointer!important;font-weight:600!important;padding:6px 8px!important}.adaptive-card-container[data-card-id=uca-quotex-quote-card] .ac-actionSet>div:first-child>button:hover,.adaptive-card-container[data-card-id=uca-quotex-contact-card] .ac-actionSet>div:first-child>button:hover,.adaptive-card-container[data-card-id=uca-quotex-productlist-container] .ac-actionSet>div:first-child>button:hover{background-color:var(--ds-theme-border-accent-subtle-hover)!important;border-color:var(--ds-theme-border-accent-subtle-hover)!important}.adaptive-card-container[data-card-id=uca-quotex-quote-card] .ac-actionSet>div:first-child>button:active,.adaptive-card-container[data-card-id=uca-quotex-contact-card] .ac-actionSet>div:first-child>button:active,.adaptive-card-container[data-card-id=uca-quotex-productlist-container] .ac-actionSet>div:first-child>button:active{background-color:var(--ds-theme-border-accent-subtle-selected)!important;border-color:var(--ds-theme-border-accent-subtle-selected)!important}.adaptive-card-container[data-card-id=uca-quotex-quote-card] .ac-actionSet>div:first-child>button:focus,.adaptive-card-container[data-card-id=uca-quotex-quote-card] .ac-actionSet>div:first-child>button:focus-visible,.adaptive-card-container[data-card-id=uca-quotex-contact-card] .ac-actionSet>div:first-child>button:focus,.adaptive-card-container[data-card-id=uca-quotex-contact-card] .ac-actionSet>div:first-child>button:focus-visible,.adaptive-card-container[data-card-id=uca-quotex-productlist-container] .ac-actionSet>div:first-child>button:focus,.adaptive-card-container[data-card-id=uca-quotex-productlist-container] .ac-actionSet>div:first-child>button:focus-visible{outline:2px solid var(--ds-theme-border-accent-strong-normal)!important;outline-offset:2px!important}.adaptive-card-container[data-card-id=uca-quotex-quote-card] .ac-actionSet>div:last-child>button,.adaptive-card-container[data-card-id=uca-quotex-contact-card] .ac-actionSet>div:last-child>button,.adaptive-card-container[data-card-id=uca-quotex-productlist-container] .ac-actionSet>div:last-child>button{background-color:transparent!important;border-radius:8px!important;border:2px solid var(--ds-theme-background-neutral-color)!important;color:var(--ds-theme-drawer-text-color)!important;cursor:pointer!important;font-weight:400!important;padding:6px 8px!important}.adaptive-card-container[data-card-id=uca-quotex-quote-card] .ac-actionSet>div:last-child>button:hover,.adaptive-card-container[data-card-id=uca-quotex-contact-card] .ac-actionSet>div:last-child>button:hover,.adaptive-card-container[data-card-id=uca-quotex-productlist-container] .ac-actionSet>div:last-child>button:hover{border:2px solid var(--ds-theme-background-neutral-color)!important;background-color:var(--ds-theme-background-neutral-fade)!important}.adaptive-card-container[data-card-id=uca-quotex-quote-card] .ac-actionSet>div:last-child>button:focus,.adaptive-card-container[data-card-id=uca-quotex-quote-card] .ac-actionSet>div:last-child>button:focus-visible,.adaptive-card-container[data-card-id=uca-quotex-contact-card] .ac-actionSet>div:last-child>button:focus,.adaptive-card-container[data-card-id=uca-quotex-contact-card] .ac-actionSet>div:last-child>button:focus-visible,.adaptive-card-container[data-card-id=uca-quotex-productlist-container] .ac-actionSet>div:last-child>button:focus,.adaptive-card-container[data-card-id=uca-quotex-productlist-container] .ac-actionSet>div:last-child>button:focus-visible{outline:2px solid var(--ds-theme-border-accent-strong-normal)!important;outline-offset:2px!important}@font-face{#unified-chat-assistant{font-family:MWF-FLUENT-ICONS;src:url(../fonts/MWFFluentIcons.woff2) format("woff2"),url(../fonts/MWFFluentIcons.woff) format("woff"),url(../fonts/MWFFluentIcons.ttf) format("truetype")}}@font-face{#unified-chat-assistant{font-family:SegoeUI;src:local("Segoe UI"),url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/normal/latest.woff2) format("woff2"),url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/normal/latest.woff) format("woff"),url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/normal/latest.ttf) format("ttf");font-weight:400}}@font-face{#unified-chat-assistant{font-family:SegoeUI;src:local("Segoe UI"),url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/light/latest.woff2) format("woff2"),url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/light/latest.woff) format("woff"),url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/light/latest.ttf) format("ttf");font-weight:100}}@font-face{#unified-chat-assistant{font-family:SegoeUI;src:local("Segoe UI"),url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/semilight/latest.woff2) format("woff2"),url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/semilight/latest.woff) format("woff"),url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/semilight/latest.ttf) format("ttf");font-weight:200}}@font-face{#unified-chat-assistant{font-family:SegoeUI;src:local("Segoe UI"),url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/semibold/latest.woff2) format("woff2"),url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/semibold/latest.woff) format("woff"),url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/semibold/latest.ttf) format("ttf");font-weight:600}}@font-face{#unified-chat-assistant{font-family:SegoeUI;src:local("Segoe UI"),url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/bold/latest.woff2) format("woff2"),url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/bold/latest.woff) format("woff"),url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/bold/latest.ttf) format("ttf");font-weight:700}}#unified-chat-assistant *,#unified-chat-assistant :after,#unified-chat-assistant :before{box-sizing:border-box}#unified-chat-assistant html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}#unified-chat-assistant article,#unified-chat-assistant aside,#unified-chat-assistant figcaption,#unified-chat-assistant figure,#unified-chat-assistant footer,#unified-chat-assistant header,#unified-chat-assistant hgroup,#unified-chat-assistant main,#unified-chat-assistant nav,#unified-chat-assistant section{display:block}#unified-chat-assistant body{margin:0;font-family:Segoe UI,SegoeUI,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:1rem;font-weight:400;line-height:1.5;color:#000;background-color:#fff}#unified-chat-assistant html:not([dir=rtl]) body{text-align:left}#unified-chat-assistant html[dir=rtl] body{text-align:right}#unified-chat-assistant [contentEditable=true]:focus,#unified-chat-assistant [tabindex]:focus,#unified-chat-assistant a[href]:focus,#unified-chat-assistant area[href]:focus,#unified-chat-assistant iframe:focus,#unified-chat-assistant input:focus,#unified-chat-assistant select:focus,#unified-chat-assistant textarea:focus{outline:.1875rem dotted currentColor}#unified-chat-assistant [tabindex="-1"]:focus{outline:0!important}#unified-chat-assistant hr{box-sizing:content-box;height:0}#unified-chat-assistant h1,#unified-chat-assistant h2,#unified-chat-assistant h3,#unified-chat-assistant h4,#unified-chat-assistant h5,#unified-chat-assistant h6,#unified-chat-assistant p{margin-top:0;margin-bottom:0}#unified-chat-assistant abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}#unified-chat-assistant address{margin-bottom:1rem;font-style:normal;line-height:inherit}#unified-chat-assistant dl,#unified-chat-assistant ol,#unified-chat-assistant ul{margin-top:0;margin-bottom:1rem}#unified-chat-assistant ol ol,#unified-chat-assistant ol ul,#unified-chat-assistant ul ol,#unified-chat-assistant ul ul{margin-bottom:0}#unified-chat-assistant dt{font-weight:700}#unified-chat-assistant dd{margin-bottom:.5rem}#unified-chat-assistant html:not([dir=rtl]) dd{margin-left:0}#unified-chat-assistant html[dir=rtl] dd{margin-right:0}#unified-chat-assistant blockquote{margin:0 0 1rem}#unified-chat-assistant b,#unified-chat-assistant strong{font-weight:bolder}#unified-chat-assistant small{font-size:80%}#unified-chat-assistant sub,#unified-chat-assistant sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}#unified-chat-assistant sub{bottom:-.25em}#unified-chat-assistant sup{top:-.5em}#unified-chat-assistant a{color:var(--ds-theme-foreground-base-icon)}#unified-chat-assistant code,#unified-chat-assistant kbd,#unified-chat-assistant pre,#unified-chat-assistant samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}#unified-chat-assistant pre{margin-top:0;margin-bottom:1rem;overflow:auto}#unified-chat-assistant figure{margin:0 0 1rem}#unified-chat-assistant img,#unified-chat-assistant svg{vertical-align:middle}#unified-chat-assistant table{border-collapse:collapse}#unified-chat-assistant caption{padding-top:1.5rem;padding-bottom:1.5rem;color:#000;caption-side:bottom}#unified-chat-assistant html:not([dir=rtl]) caption{text-align:left}#unified-chat-assistant html[dir=rtl] caption{text-align:right}#unified-chat-assistant th{text-align:inherit}#unified-chat-assistant label{display:inline-block}#unified-chat-assistant button,#unified-chat-assistant input,#unified-chat-assistant optgroup,#unified-chat-assistant select,#unified-chat-assistant textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}#unified-chat-assistant button,#unified-chat-assistant select{text-transform:none}#unified-chat-assistant select{word-wrap:normal}#unified-chat-assistant [type=button],#unified-chat-assistant [type=reset],#unified-chat-assistant [type=submit],#unified-chat-assistant button{-webkit-appearance:button}#unified-chat-assistant [type=button]:not(:disabled),#unified-chat-assistant [type=reset]:not(:disabled),#unified-chat-assistant [type=submit]:not(:disabled),#unified-chat-assistant button:not(:disabled){cursor:pointer}#unified-chat-assistant [type=button]::-moz-focus-inner,#unified-chat-assistant [type=reset]::-moz-focus-inner,#unified-chat-assistant [type=submit]::-moz-focus-inner,#unified-chat-assistant button::-moz-focus-inner{padding:0;border-style:none}#unified-chat-assistant input[type=date],#unified-chat-assistant input[type=datetime-local],#unified-chat-assistant input[type=month],#unified-chat-assistant input[type=time]{-webkit-appearance:listbox}#unified-chat-assistant textarea{resize:vertical}#unified-chat-assistant fieldset{min-width:0;padding:0;margin:0;border:0}#unified-chat-assistant legend{display:block;width:100%;padding:0;font-size:inherit;line-height:inherit}#unified-chat-assistant progress{vertical-align:baseline}#unified-chat-assistant [type=number]::-webkit-inner-spin-button,#unified-chat-assistant [type=number]::-webkit-outer-spin-button{height:auto}#unified-chat-assistant [type=search]{outline-offset:-2px;-webkit-appearance:none}#unified-chat-assistant [type=search]::-webkit-search-decoration{-webkit-appearance:none}#unified-chat-assistant ::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}#unified-chat-assistant output{display:inline-block}#unified-chat-assistant summary{display:list-item;cursor:pointer}#unified-chat-assistant template{display:none}#unified-chat-assistant [hidden]{display:none!important}#unified-chat-assistant .fade{transition:opacity .15s linear}@media(prefers-reduced-motion:reduce){#unified-chat-assistant .fade{transition:none}}#unified-chat-assistant .fade:not(.show){opacity:0}#unified-chat-assistant .collapse:not(.show){display:none}#unified-chat-assistant .collapsing{height:0;overflow:hidden;transition:height .35s ease}@media(prefers-reduced-motion:reduce){#unified-chat-assistant .collapsing{transition:none}}#unified-chat-assistant .uhf,#unified-chat-assistant .universalheader{line-height:normal!important;letter-spacing:normal!important}#unified-chat-assistant body,#unified-chat-assistant p{font-weight:var(--ds-body-m-font-weight, 400);font-size:var(--ds-body-s-font-size, 1rem);line-height:var(--ds-body-m-line-height, 1.5rem);letter-spacing:var(--ds-body-m-letter-spacing, -.03em)}#unified-chat-assistant .h1,#unified-chat-assistant h1{font-weight:var(--ds-heading-l-font-weight, 700);font-size:var(--ds-heading-l-font-size, 1.625rem);line-height:var(--ds-heading-l-line-height, 1.3rem);letter-spacing:var(--ds-heading-l-letter-spacing, -.01em)}#unified-chat-assistant .h2,#unified-chat-assistant h2{font-weight:var(--ds-heading-m-font-weight, 600);font-size:var(--ds-heading-m-font-size, 1.375rem);line-height:var(--ds-heading-m-line-height, 1.35rem);letter-spacing:var(--ds-heading-m-letter-spacing, -.005em)}#unified-chat-assistant .h3,#unified-chat-assistant h3{font-weight:var(--ds-heading-s-font-weight, 600);font-size:var(--ds-heading-s-font-size, 1.25rem);line-height:var(--ds-heading-s-line-height, 1.4rem);letter-spacing:var(--ds-heading-s-letter-spacing, -0em)}#unified-chat-assistant .h4,#unified-chat-assistant h4{font-weight:var(--ds-heading-xs-font-weight, 600);font-size:var(--ds-heading-xs-font-size, 1.125rem);line-height:var(--ds-heading-xs-line-height, 1.4rem);letter-spacing:var(--ds-heading-xs-letter-spacing, -0em)}#unified-chat-assistant .h5,#unified-chat-assistant h5{font-weight:var(--ds-heading-2xs-font-weight, 600);font-size:var(--ds-heading-2xs-font-size, 1rem);line-height:var(--ds-heading-2xs-line-height, 1.45rem);letter-spacing:var(--ds-heading-2xs-letter-spacing, -.01em)}#unified-chat-assistant .h6,#unified-chat-assistant h6{font-weight:var(--ds-heading-3xs-font-weight, 600);font-size:var(--ds-heading-3xs-font-size, .875rem);line-height:var(--ds-heading-3xs-line-height, 1.45rem);letter-spacing:var(--ds-heading-3xs-letter-spacing, -.015em)}#unified-chat-assistant{--ds-spacing-1: .125rem;--ds-spacing-3xs: .125rem;--ds-spacing-2: .25rem;--ds-spacing-2xs: .25rem;--ds-spacing-3: .5rem;--ds-spacing-xs: .5rem;--ds-spacing-4: .75rem;--ds-spacing-s: .75rem;--ds-spacing-5: .75rem;--ds-spacing-m: .75rem;--ds-spacing-6: 1rem;--ds-spacing-l: 1rem;--ds-spacing-7: 1.5rem;--ds-spacing-xl: 1.5rem;--ds-spacing-8: 2rem;--ds-spacing-2xl: 2rem;--ds-spacing-9: 3rem;--ds-spacing-3xl: 3rem;--ds-spacing-10: 3.5rem;--ds-spacing-4xl: 3.5rem;--ds-copy-padding-s: 0rem;--ds-copy-padding-m: 0rem;--ds-copy-padding-l: 0rem;--ds-copy-padding-xl: 0rem;--ds-card-padding-default: 1rem;--ds-card-padding-comfortable: 1.5rem;--ds-card-padding-relaxed: 2rem;--ds-breadth-vertical-default: var(--ds-spacing-4xl);--ds-breadth-vertical-relaxed: var(--ds-spacing-4xl);--ds-breadth-vertical-comfortable: var(--ds-spacing-3xl);--ds-breadth-vertical-none: 0;--ds-density-vertical-default: var(--ds-spacing-2xl);--ds-density-vertical-compact: var(--ds-spacing-xl);--ds-density-vertical-none: 0;--ds-density-horizontal-default: var(--ds-spacing-m);--ds-density-horizontal-relaxed: var(--ds-spacing-4xl);--ds-radii-xs: .25rem;--ds-radii-s: .5rem;--ds-radii-m: .5rem;--ds-radii-l: 1rem;--ds-radii-circle: 12.5rem;--ds-blur-s: blur(.5rem);--ds-blur-m: blur(1.5rem);--ds-blur-l: blur(2.5rem);--ds-blur-glass-background: rgba(255, 255, 255, .05);--ds-blur-glass: blur(5rem);--ds-border-width-xs: .0625rem;--ds-border-width-s: .125rem;--ds-border-width-m: .25rem;--ds-border-width-l: .5rem;--ds-elevation-color-1: rgba(0, 0, 0, .12);--ds-elevation-color-2: rgba(0, 0, 0, .14);--ds-elevation-level-1: 0 0 .125rem var(--ds-elevation-color-1, rgba(0, 0, 0, .12)), 0 .063rem .125rem var(--ds-elevation-color-2, rgba(0, 0, 0, .14));--ds-elevation-level-2: 0 0 .125rem var(--ds-elevation-color-1, rgba(0, 0, 0, .12)), 0 .125rem .25rem var(--ds-elevation-color-2, rgba(0, 0, 0, .14));--ds-elevation-level-3: 0 0 .125rem var(--ds-elevation-color-1, rgba(0, 0, 0, .12)), 0 .25rem .5rem var(--ds-elevation-color-2, rgba(0, 0, 0, .14));--ds-elevation-level-4: 0 0 .125rem var(--ds-elevation-color-1, rgba(0, 0, 0, .12)), 0 .5rem 1rem var(--ds-elevation-color-2, rgba(0, 0, 0, .14));--ds-elevation-level-5: 0 0 .5rem var(--ds-elevation-color-1, rgba(0, 0, 0, .12)), 0 .875rem 1.75rem var(--ds-elevation-color-2, rgba(0, 0, 0, .14));--ds-elevation-level-6: 0 0 .5rem var(--ds-elevation-color-1, rgba(0, 0, 0, .12)), 0 2rem 4rem var(--ds-elevation-color-2, rgba(0, 0, 0, .14));--ds-body-font-weight: 400;--ds-body-font-size: 1rem;--ds-body-line-height: 1.5rem;--ds-body-letter-spacing: -.03em;--ds-heading-3xl-font-weight: 600;--ds-heading-3xl-font-size: 3.5rem;--ds-heading-3xl-line-height: 3.875rem;--ds-heading-3xl-letter-spacing: -.05em;--ds-heading-2xl-font-weight: 600;--ds-heading-2xl-font-size: 3rem;--ds-heading-2xl-line-height: 3.5rem;--ds-heading-2xl-letter-spacing: -.05em;--ds-heading-xl-font-weight: 600;--ds-heading-xl-font-size: 2.5rem;--ds-heading-xl-line-height: 3rem;--ds-heading-xl-letter-spacing: -.05em;--ds-heading-l-font-weight: 600;--ds-heading-l-font-size: 2rem;--ds-heading-l-line-height: 2.5rem;--ds-heading-l-letter-spacing: -.05em;--ds-heading-m-font-weight: 600;--ds-heading-m-font-size: 1.75rem;--ds-heading-m-line-height: 2.25rem;--ds-heading-m-letter-spacing: -.05em;--ds-heading-s-font-weight: 600;--ds-heading-s-font-size: 1.5rem;--ds-heading-s-line-height: 2rem;--ds-heading-s-letter-spacing: -.05em;--ds-heading-xs-font-weight: 600;--ds-heading-xs-font-size: 1.25rem;--ds-heading-xs-line-height: 1.75rem;--ds-heading-xs-letter-spacing: -.05em;--ds-heading-2xs-font-weight: 600;--ds-heading-2xs-font-size: 1.125rem;--ds-heading-2xs-line-height: 1.5rem;--ds-heading-2xs-letter-spacing: -.03em;--ds-heading-3xs-font-weight: 600;--ds-heading-3xs-font-size: 1rem;--ds-heading-3xs-line-height: 1.5rem;--ds-heading-3xs-letter-spacing: -.03em;--ds-body-l-font-weight: 400;--ds-body-l-font-size: 1.125rem;--ds-body-l-line-height: 1.75rem;--ds-body-l-letter-spacing: -.03em;--ds-body-m-font-weight: 400;--ds-body-m-font-size: 1rem;--ds-body-m-line-height: 1.5rem;--ds-body-m-letter-spacing: -.03em;--ds-body-s-font-weight: 400;--ds-body-s-font-size: .875rem;--ds-body-s-line-height: 1.25rem;--ds-body-s-letter-spacing: -.03em;--ds-body-xs-font-weight: 400;--ds-body-xs-font-size: .75rem;--ds-body-xs-line-height: 1rem;--ds-body-xs-letter-spacing: -.03em;--ds-label-font-weight: 600;--ds-label-font-size: .875rem;--ds-label-line-height: 1.25rem;--ds-label-l-font-weight: 600;--ds-label-l-font-size: 1rem;--ds-label-l-line-height: 1.5rem;--ds-label-m-font-weight: 600;--ds-label-m-font-size: .875rem;--ds-label-m-line-height: 1.25rem;--ds-label-s-font-weight: 600;--ds-label-s-font-size: .75rem;--ds-label-s-line-height: 1rem;--ds-label-eyebrow-font-weight: 600;--ds-label-eyebrow-font-size: .75rem;--ds-label-eyebrow-line-height: 1rem;--ds-label-eyebrow-letter-spacing: .08em;--ds-action-button-font-weight: 600;--ds-action-button-font-size: .9375rem;--ds-action-button-line-height: 1.375rem;--ds-action-button-letter-spacing: -.02em;--ds-color-brilliant-blue-50: #e6f2fb;--ds-color-brilliant-blue-100: #b0d5f2;--ds-color-brilliant-blue-200: #8ac1eb;--ds-color-brilliant-blue-300: #54a5e2;--ds-color-brilliant-blue-400: #3393dd;--ds-color-brilliant-blue-500: #0078d4;--ds-color-brilliant-blue-600: #006dc1;--ds-color-brilliant-blue-700: #005597;--ds-color-brilliant-blue-800: #004275;--ds-color-brilliant-blue-900: #002948;--ds-color-blue-black-50: #e6e9ea;--ds-color-blue-black-100: #b3babe;--ds-color-blue-black-200: #8e989e;--ds-color-blue-black-300: #5a6972;--ds-color-blue-black-400: #3a4c56;--ds-color-blue-black-500: #091f2c;--ds-color-blue-black-600: #081c28;--ds-color-blue-black-700: #06161f;--ds-color-blue-black-800: #051118;--ds-color-blue-black-900: #030b0f;--ds-color-sea-salt-50: #fdfdfc;--ds-color-sea-salt-100: #f8f7f5;--ds-color-sea-salt-200: #f4f4f0;--ds-color-sea-salt-300: #f0eeea;--ds-color-sea-salt-400: #edebe5;--ds-color-sea-salt-500: #e8e6df;--ds-color-sea-salt-600: #d3d1cb;--ds-color-sea-salt-700: #a5a39e;--ds-color-sea-salt-800: #807f7b;--ds-color-sea-salt-900: #4f4e4c;--ds-color-sky-blue-50: #f4fafd;--ds-color-sky-blue-100: #dceef8;--ds-color-sky-blue-200: #cbe6f4;--ds-color-sky-blue-300: #b3daf0;--ds-color-sky-blue-400: #a4d3ed;--ds-color-sky-blue-500: #8dc8e8;--ds-color-sky-blue-600: #80b6d3;--ds-color-sky-blue-700: #648ea5;--ds-color-sky-blue-800: #4e6e80;--ds-color-sky-blue-900: #30444f;--ds-color-dark-blue-50: #eaecf1;--ds-color-dark-blue-100: #bdc5d2;--ds-color-dark-blue-200: #9da9bd;--ds-color-dark-blue-300: #70829f;--ds-color-dark-blue-400: #55698c;--ds-color-dark-blue-500: #2a446f;--ds-color-dark-blue-600: #263e65;--ds-color-dark-blue-700: #1e304f;--ds-color-dark-blue-800: #17253d;--ds-color-dark-blue-900: #0e1726;--ds-color-aqua-foam-50: #f8fcfb;--ds-color-aqua-foam-100: #e9f4f1;--ds-color-aqua-foam-200: #dfefea;--ds-color-aqua-foam-300: #d0e8e1;--ds-color-aqua-foam-400: #c7e3db;--ds-color-aqua-foam-500: #b9dcd2;--ds-color-aqua-foam-600: #a8c8bf;--ds-color-aqua-foam-700: #839c95;--ds-color-aqua-foam-800: #667974;--ds-color-aqua-foam-900: #3f4b47;--ds-color-pale-lime-50: #fbfdf4;--ds-color-pale-lime-100: #f2f9dc;--ds-color-pale-lime-200: #ebf6cb;--ds-color-pale-lime-300: #e2f2b3;--ds-color-pale-lime-400: #ddf0a5;--ds-color-pale-lime-500: #d4ec8e;--ds-color-pale-lime-600: #c1d781;--ds-color-pale-lime-700: #97a865;--ds-color-pale-lime-800: #75824e;--ds-color-pale-lime-900: #485030;--ds-color-deep-teal-50: #e9efef;--ds-color-deep-teal-100: #baccce;--ds-color-deep-teal-200: #99b4b7;--ds-color-deep-teal-300: #6b9196;--ds-color-deep-teal-400: #4e7c81;--ds-color-deep-teal-500: #225b62;--ds-color-deep-teal-600: #1f5359;--ds-color-deep-teal-700: #184146;--ds-color-deep-teal-800: #133236;--ds-color-deep-teal-900: #0c1f21;--ds-color-lavender-50: #f9f8fc;--ds-color-lavender-100: #ede8f6;--ds-color-lavender-200: #e4ddf2;--ds-color-lavender-300: #d8cdec;--ds-color-lavender-400: #d1c3e9;--ds-color-lavender-500: #c5b4e3;--ds-color-lavender-600: #b3a4cf;--ds-color-lavender-700: #8c80a1;--ds-color-lavender-800: #6c637d;--ds-color-lavender-900: #433d4d;--ds-color-violet-50: #f1e9f1;--ds-color-violet-100: #d3bbd4;--ds-color-violet-200: #bd9bbf;--ds-color-violet-300: #9f6da1;--ds-color-violet-400: #8d518f;--ds-color-violet-500: #702573;--ds-color-violet-600: #662269;--ds-color-violet-700: #501a52;--ds-color-violet-800: #3e143f;--ds-color-violet-900: #260d27;--ds-color-twilight-purple-50: #edebf0;--ds-color-twilight-purple-100: #c6c1d0;--ds-color-twilight-purple-200: #aaa3ba;--ds-color-twilight-purple-300: #83789a;--ds-color-twilight-purple-400: #6b5e86;--ds-color-twilight-purple-500: #463668;--ds-color-twilight-purple-600: #40315f;--ds-color-twilight-purple-700: #32264a;--ds-color-twilight-purple-800: #271e39;--ds-color-twilight-purple-900: #181223;--ds-color-teams-50: #efeffb;--ds-color-teams-100: #cdccf2;--ds-color-teams-200: #b4b4eb;--ds-color-teams-300: #9291e2;--ds-color-teams-400: #7d7cdd;--ds-color-teams-500: #5d5bd4;--ds-color-teams-600: #5553c1;--ds-color-teams-700: #424197;--ds-color-teams-800: #333275;--ds-color-teams-900: #201f48;--ds-color-pink-50: #fff7f8;--ds-color-pink-100: #ffe7ea;--ds-color-pink-200: #ffdce0;--ds-color-pink-300: #ffccd1;--ds-color-pink-400: #ffc2c9;--ds-color-pink-500: #ffb3bb;--ds-color-pink-600: #e8a3aa;--ds-color-pink-700: #b57f85;--ds-color-pink-800: #8c6267;--ds-color-pink-900: #573d40;--ds-color-orange-coral-50: #fff6f3;--ds-color-orange-coral-100: #ffe2db;--ds-color-orange-coral-200: #ffd5ca;--ds-color-orange-coral-300: #ffc1b1;--ds-color-orange-coral-400: #ffb5a2;--ds-color-orange-coral-500: #ffa38b;--ds-color-orange-coral-600: #e8947e;--ds-color-orange-coral-700: #b57463;--ds-color-orange-coral-800: #8c5a4c;--ds-color-orange-coral-900: #57372f;--ds-color-maroon-50: #f1e9ea;--ds-color-maroon-100: #d4bcbf;--ds-color-maroon-200: #bf9b9f;--ds-color-maroon-300: #a16e74;--ds-color-maroon-400: #8f5159;--ds-color-maroon-500: #73262f;--ds-color-maroon-600: #69232b;--ds-color-maroon-700: #521b21;--ds-color-maroon-800: #3f151a;--ds-color-maroon-900: #270d10;--ds-color-custard-yellow-50: #fffcf5;--ds-color-custard-yellow-100: #fff6df;--ds-color-custard-yellow-200: #fff2d0;--ds-color-custard-yellow-300: #ffecbb;--ds-color-custard-yellow-400: #ffe9ad;--ds-color-custard-yellow-500: #ffe399;--ds-color-custard-yellow-600: #e8cf8b;--ds-color-custard-yellow-700: #b5a16d;--ds-color-custard-yellow-800: #8c7d54;--ds-color-custard-yellow-900: #574d34;--ds-color-golden-yellow-50: #fff8e6;--ds-color-golden-yellow-100: #ffe9b0;--ds-color-golden-yellow-200: #ffdf8a;--ds-color-golden-yellow-300: #ffd054;--ds-color-golden-yellow-400: #ffc733;--ds-color-golden-yellow-500: #ffb900;--ds-color-golden-yellow-600: #e8a800;--ds-color-golden-yellow-700: #b58300;--ds-color-golden-yellow-800: #8c6600;--ds-color-golden-yellow-900: #573f00;--ds-color-dark-brown-50: #efedeb;--ds-color-dark-brown-100: #ccc6c1;--ds-color-dark-brown-200: #b4aaa3;--ds-color-dark-brown-300: #92847a;--ds-color-dark-brown-400: #7d6c60;--ds-color-dark-brown-500: #5c4738;--ds-color-dark-brown-600: #544133;--ds-color-dark-brown-700: #413228;--ds-color-dark-brown-800: #33271f;--ds-color-dark-brown-900: #1f1813;--ds-color-green-black-50: #e7e9e9;--ds-color-green-black-100: #b4babb;--ds-color-green-black-200: #90999a;--ds-color-green-black-300: #5d6a6c;--ds-color-green-black-400: #3d4d50;--ds-color-green-black-500: #0d2124;--ds-color-green-black-600: #0c1e21;--ds-color-green-black-700: #09171a;--ds-color-green-black-800: #071214;--ds-color-green-black-900: #040b0c;--ds-color-purple-black-50: #e8e7ea;--ds-color-purple-black-100: #b7b4bd;--ds-color-purple-black-200: #94909d;--ds-color-purple-black-300: #645d71;--ds-color-purple-black-400: #453d55;--ds-color-purple-black-500: #170d2b;--ds-color-purple-black-600: #150c27;--ds-color-purple-black-700: #10091f;--ds-color-purple-black-800: #0d0718;--ds-color-purple-black-900: #08040f;--ds-color-red-black-50: #eae7e7;--ds-color-red-black-100: #bdb4b6;--ds-color-red-black-200: #9d9092;--ds-color-red-black-300: #715d60;--ds-color-red-black-400: #553d41;--ds-color-red-black-500: #2b0d12;--ds-color-red-black-600: #270c10;--ds-color-red-black-700: #1f090d;--ds-color-red-black-800: #18070a;--ds-color-red-black-900: #0f0406;--ds-color-brown-black-50: #eae8e8;--ds-color-brown-black-100: #bdb7b7;--ds-color-brown-black-200: #9d9594;--ds-color-brown-black-300: #706464;--ds-color-brown-black-400: #544645;--ds-color-brown-black-500: #291817;--ds-color-brown-black-600: #251615;--ds-color-brown-black-700: #1d1110;--ds-color-brown-black-800: #170d0d;--ds-color-brown-black-900: #0e0808;--ds-color-off-white-50: #fefefe;--ds-color-off-white-100: #fcfbfc;--ds-color-off-white-200: #faf9fa;--ds-color-off-white-300: #f8f7f8;--ds-color-off-white-400: #f6f5f7;--ds-color-off-white-500: #f4f3f5;--ds-color-off-white-600: #dedddf;--ds-color-off-white-700: #adadae;--ds-color-off-white-800: #868687;--ds-color-off-white-900: #535353;--ds-color-warm-white-50: #fffefe;--ds-color-warm-white-100: #fffdfb;--ds-color-warm-white-200: #fffcf9;--ds-color-warm-white-300: #fffaf7;--ds-color-warm-white-400: #fff9f5;--ds-color-warm-white-500: #fff8f3;--ds-color-warm-white-600: #e8e2dd;--ds-color-warm-white-700: #b5b0ad;--ds-color-warm-white-800: #8c8886;--ds-color-warm-white-900: #575453;--ds-color-pale-gray-50: #fbfbfb;--ds-color-pale-gray-100: #f3f3f2;--ds-color-pale-gray-200: #eeeeec;--ds-color-pale-gray-300: #e6e6e4;--ds-color-pale-gray-400: #e1e1de;--ds-color-pale-gray-500: #d9d9d6;--ds-color-pale-gray-600: #c5c5c3;--ds-color-pale-gray-700: #9a9a98;--ds-color-pale-gray-800: #777776;--ds-color-pale-gray-900: #4a4a49;--ds-color-vapor-gray-50: #f7f7f7;--ds-color-vapor-gray-100: #e7e7e7;--ds-color-vapor-gray-200: #dbdcdc;--ds-color-vapor-gray-300: #cbcccc;--ds-color-vapor-gray-400: #c1c2c2;--ds-color-vapor-gray-500: #b1b3b3;--ds-color-vapor-gray-600: #a1a3a3;--ds-color-vapor-gray-700: #7e7f7f;--ds-color-vapor-gray-800: #616262;--ds-color-vapor-gray-900: #3c3d3d;--ds-color-dark-slate-50: #ececec;--ds-color-dark-slate-100: #c5c4c4;--ds-color-dark-slate-200: #a9a8a8;--ds-color-dark-slate-300: #828080;--ds-color-dark-slate-400: #6a6768;--ds-color-dark-slate-500: #454142;--ds-color-dark-slate-600: #3f3b3c;--ds-color-dark-slate-700: #312e2f;--ds-color-dark-slate-800: #262424;--ds-color-dark-slate-900: #171616;--ds-color-morganite-50: #fcfbf9;--ds-color-morganite-100: #f6f1ee;--ds-color-morganite-200: #f1ebe5;--ds-color-morganite-300: #ebe2d9;--ds-color-morganite-400: #e7dcd2;--ds-color-morganite-500: #e1d3c7;--ds-color-morganite-600: #cdc0b5;--ds-color-morganite-700: #a0968d;--ds-color-morganite-800: #7c746d;--ds-color-morganite-900: #4d4844;--ds-color-brown-50: #f9f4f1;--ds-color-brown-100: #ebded4;--ds-color-brown-200: #e2cebf;--ds-color-brown-300: #d4b7a2;--ds-color-brown-400: #cca990;--ds-color-brown-500: #bf9474;--ds-color-brown-600: #ae876a;--ds-color-brown-700: #886952;--ds-color-brown-800: #695140;--ds-color-brown-900: #413227;--ds-color-breen-50: #f2efe8;--ds-color-breen-100: #d7ccb8;--ds-color-breen-200: #c4b396;--ds-color-breen-300: #a99066;--ds-color-breen-400: #997b48;--ds-color-breen-500: #7f5a1a;--ds-color-breen-600: #745218;--ds-color-breen-700: #5a4012;--ds-color-breen-800: #46320e;--ds-color-breen-900: #2b1f09;--ds-color-bright-orange-50: #ffefeb;--ds-color-bright-orange-100: #ffccc2;--ds-color-bright-orange-200: #ffb4a4;--ds-color-bright-orange-300: #ff927a;--ds-color-bright-orange-400: #ff7d61;--ds-color-bright-orange-500: #ff5c39;--ds-color-bright-orange-600: #e85434;--ds-color-bright-orange-700: #b54128;--ds-color-bright-orange-800: #8c331f;--ds-color-bright-orange-900: #571f13;--ds-color-ginger-bread-50: #f1ebe8;--ds-color-ginger-bread-100: #d4c2b9;--ds-color-ginger-bread-200: #bfa497;--ds-color-ginger-bread-300: #a17a68;--ds-color-ginger-bread-400: #8f614a;--ds-color-ginger-bread-500: #73391d;--ds-color-ginger-bread-600: #69341a;--ds-color-ginger-bread-700: #522815;--ds-color-ginger-bread-800: #3f1f10;--ds-color-ginger-bread-900: #27130a;--ds-color-red-50: #feebed;--ds-color-red-100: #fcc1c8;--ds-color-red-200: #faa3ad;--ds-color-red-300: #f87887;--ds-color-red-400: #f65e70;--ds-color-red-500: #f4364c;--ds-color-red-600: #de3145;--ds-color-red-700: #ad2636;--ds-color-red-800: #861e2a;--ds-color-red-900: #53121a;--ds-color-lilac-50: #fbf5fb;--ds-color-lilac-100: #f2e1f3;--ds-color-lilac-200: #ecd2ed;--ds-color-lilac-300: #e3bee4;--ds-color-lilac-400: #ddb1df;--ds-color-lilac-500: #d59ed7;--ds-color-lilac-600: #c290c4;--ds-color-lilac-700: #977099;--ds-color-lilac-800: #755776;--ds-color-lilac-900: #483649;--ds-color-red-violet-50: #f9ebf9;--ds-color-red-violet-100: #ebc2ed;--ds-color-red-violet-200: #e2a5e4;--ds-color-red-violet-300: #d57cd7;--ds-color-red-violet-400: #cd62d0;--ds-color-red-violet-500: #c03bc4;--ds-color-red-violet-600: #af36b2;--ds-color-red-violet-700: #882a8b;--ds-color-red-violet-800: #6a206c;--ds-color-red-violet-900: #411443;--ds-color-purple-50: #f3eff9;--ds-color-purple-100: #d9ceed;--ds-color-purple-200: #c7b6e4;--ds-color-purple-300: #ae95d8;--ds-color-purple-400: #9e81d1;--ds-color-purple-500: #8661c5;--ds-color-purple-600: #7a58b3;--ds-color-purple-700: #5f458c;--ds-color-purple-800: #4a356c;--ds-color-purple-900: #2e2143;--ds-color-mint-green-50: #f4fdf1;--ds-color-mint-green-100: #dcf8d3;--ds-color-mint-green-200: #cbf5be;--ds-color-mint-green-300: #b3f0a0;--ds-color-mint-green-400: #a4ed8d;--ds-color-mint-green-500: #8de971;--ds-color-mint-green-600: #80d467;--ds-color-mint-green-700: #64a550;--ds-color-mint-green-800: #4e803e;--ds-color-mint-green-900: #304f26;--ds-color-grass-green-50: #e6f0e8;--ds-color-grass-green-100: #b2cfb9;--ds-color-grass-green-200: #8db897;--ds-color-grass-green-300: #599768;--ds-color-grass-green-400: #39834a;--ds-color-grass-green-500: #07641d;--ds-color-grass-green-600: #065b1a;--ds-color-grass-green-700: #054715;--ds-color-grass-green-800: #043710;--ds-color-grass-green-900: #02220a;--ds-color-biscay-green-50: #edf9f7;--ds-color-biscay-green-100: #c7ede7;--ds-color-biscay-green-200: #abe4db;--ds-color-biscay-green-300: #85d8cb;--ds-color-biscay-green-400: #6dd1c1;--ds-color-biscay-green-500: #49c5b1;--ds-color-biscay-green-600: #42b3a1;--ds-color-biscay-green-700: #348c7e;--ds-color-biscay-green-800: #286c61;--ds-color-biscay-green-900: #19433c;--ds-color-oyster-gray-50: #fbfbfa;--ds-color-oyster-gray-100: #f3f1ef;--ds-color-oyster-gray-200: #edeae7;--ds-color-oyster-gray-300: #e4e1dc;--ds-color-oyster-gray-400: #dfdbd5;--ds-color-oyster-gray-500: #d7d2cb;--ds-color-oyster-gray-600: #c4bfb9;--ds-color-oyster-gray-700: #999590;--ds-color-oyster-gray-800: #767470;--ds-color-oyster-gray-900: #494745;--ds-color-warm-gray-50: #f4f3f1;--ds-color-warm-gray-100: #dbd8d5;--ds-color-warm-gray-200: #cac6c0;--ds-color-warm-gray-300: #b2aba3;--ds-color-warm-gray-400: #a39b91;--ds-color-warm-gray-500: #8c8276;--ds-color-warm-gray-600: #7f766b;--ds-color-warm-gray-700: #635c54;--ds-color-warm-gray-800: #4d4841;--ds-color-warm-gray-900: #302c28;--ds-color-success-50: #e7f3ea;--ds-color-success-100: #b4dabc;--ds-color-success-200: #90c89c;--ds-color-success-300: #5eaf6f;--ds-color-success-400: #3e9f53;--ds-color-success-500: #0e8728;--ds-color-success-600: #0d7b24;--ds-color-success-700: #0a601c;--ds-color-success-800: #084a16;--ds-color-success-900: #052e0e;--ds-color-error-50: #fceaec;--ds-color-error-100: #f5bfc5;--ds-color-error-200: #f0a0a9;--ds-color-error-300: #e97582;--ds-color-error-400: #e55a6a;--ds-color-error-500: #de3145;--ds-color-error-600: #ca2d3f;--ds-color-error-700: #9e2331;--ds-color-error-800: #7a1b26;--ds-color-error-900: #4b1117;--ds-color-warning-50: #fffbe9;--ds-color-warning-100: #fdf4bb;--ds-color-warning-200: #fdee9a;--ds-color-warning-300: #fce66c;--ds-color-warning-400: #fbe14f;--ds-color-warning-500: #fada23;--ds-color-warning-600: #e4c620;--ds-color-warning-700: #b29b19;--ds-color-warning-800: #8a7813;--ds-color-warning-900: #554a0c;--ds-color-info-50: #e6effd;--ds-color-info-100: #b0ccf8;--ds-color-info-200: #8ab4f4;--ds-color-info-300: #5492f0;--ds-color-info-400: #337ded;--ds-color-info-500: #005ce8;--ds-color-info-600: #0054d3;--ds-color-info-700: #0041a5;--ds-color-info-800: #003380;--ds-color-info-900: #001f4f;--ds-color-neutral-white: #fff;--ds-color-neutral-black: #000;--ds-color-neutral-bright-lime: #89c402;--ds-color-alpha-50: rgba(255, 255, 255, .05);--ds-color-alpha-100: rgba(255, 255, 255, .1);--ds-color-alpha-200: rgba(255, 255, 255, .2);--ds-color-alpha-300: rgba(255, 255, 255, .3);--ds-color-alpha-400: rgba(255, 255, 255, .4);--ds-color-alpha-500: rgba(255, 255, 255, .5);--ds-color-alpha-600: rgba(255, 255, 255, .6);--ds-color-alpha-700: rgba(255, 255, 255, .7);--ds-color-alpha-800: rgba(255, 255, 255, .8);--ds-color-alpha-900: rgba(255, 255, 255, .9);--ds-overlay-day-full: rgba(255, 255, 255, .6);--ds-overlay-day-gradient: linear-gradient( 180deg, rgba(244, 250, 253, 0) 0%, #f4fafd 100% );--ds-overlay-day-bg-overlay-fill: rgba(255, 255, 255, .6);--ds-overlay-day-bg-overlay-horizontal: linear-gradient( 270deg, rgba(255, 255, 255, 0) 33.48%, white 66.52% );--ds-overlay-day-bg-overlay-horizontal-faded: linear-gradient( 270deg, rgba(255, 255, 255, 0) 33.48%, rgba(255, 255, 255, .6) 66.52% );--ds-overlay-day-bg-overlay-vertical: linear-gradient( 0deg, rgba(244, 250, 253, 0) 0%, #f4fafd 100% );--ds-overlay-day-bg-overlay-vertical-color: linear-gradient( 180deg, #c03bc4 26.79%, rgba(244, 250, 253, 0) 100% );--ds-overlay-day-video-overlay-fill: rgba(0, 0, 0, .6);--ds-overlay-day-video-overlay-vertical: linear-gradient( 180deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, 0) 50% );--ds-overlay-day-video-overlay-bottom-vertical: linear-gradient( 180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .8) 100% );--ds-overlay-day-video-overlay-bottom-vertical-light: linear-gradient( 180deg, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, .8) 100% );--ds-overlay-day-video-overlay-bottom-vertical-strong: linear-gradient( 180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .75) 48%, rgba(0, 0, 0, .9) 100% );--ds-overlay-day-video-overlay-bottom-vertical-strong-light: linear-gradient( 180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .75) 48%, rgba(255, 255, 255, .9) 100% );--ds-overlay-night-full: rgba(0, 8, 20, .6);--ds-overlay-night-gradient: linear-gradient( 180deg, rgba(4, 13, 18, 0) 0%, rgba(4, 13, 18, .8) 93.59% );--ds-overlay-night-bg-overlay-fill: rgba(0, 0, 0, .6);--ds-overlay-night-bg-overlay-horizontal: linear-gradient( 90deg, black 33.48%, rgba(0, 0, 0, 0) 66.74% );--ds-overlay-night-bg-overlay-horizontal-faded: linear-gradient( 90deg, rgba(0, 0, 0, .6) 33.48%, rgba(0, 0, 0, 0) 66.74% );--ds-overlay-night-bg-overlay-vertical: linear-gradient( 0deg, rgba(4, 13, 18, 0) 0%, #040d12 100% );--ds-overlay-night-video-overlay-fill: rgba(0, 0, 0, .6);--ds-overlay-night-video-overlay-vertical: linear-gradient( 180deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, 0) 50% );--ds-overlay-night-video-overlay-bottom-vertical: linear-gradient( 180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .8) 100% );--ds-overlay-night-video-overlay-bottom-vertical-light: linear-gradient( 180deg, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, .8) 100% );--ds-overlay-night-video-overlay-bottom-vertical-strong: linear-gradient( 180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .75) 48%, rgba(0, 0, 0, .9) 100% );--ds-overlay-night-video-overlay-bottom-vertical-strong-light: linear-gradient( 180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .75) 48%, white 100% );--ds-gradient-mesh-brilliant-blue: linear-gradient( 122deg, #b3daf0 -18.47%, #54a5e2 50.34%, #8ac1eb 118.47% );--ds-gradient-mesh-sky-blue: linear-gradient( 131deg, #cbe6f4 0%, #8dc8e8 50.25%, #c5b4e3 100% );--ds-gradient-mesh-pale-lime-green: linear-gradient( 122deg, #ebf6cb -18.47%, #d4ec8e 50.34%, #85d8cb 118.47% );--ds-gradient-mesh-pale-lime-foam: linear-gradient( 127deg, #ebf6cb 0%, #d4ec8e 49.48%, #badcd2 100% );--ds-gradient-mesh-aqua-foam: linear-gradient( 122deg, #dfefea -18.47%, #badcd2 50.34%, #b0d5f2 118.47% );--ds-gradient-mesh-custard-yellow: linear-gradient( 122deg, #fff2cb -18.47%, #ffe38e 50.34%, #ffbead 118.47% );--ds-gradient-mesh-pink: linear-gradient( 122deg, #fed7e2 -18.47%, #fbb6ce 50.34%, #ffcf54 118.47% );--ds-gradient-mesh-orange-coral: linear-gradient( 122deg, #ffe1d9 -18.47%, #ffb19d 50.34%, #ffe38e 118.47% );--ds-gradient-mesh-blue-black: linear-gradient( 131deg, #003259 0%, #091f2c 50.25%, #004275 100% );--ds-gradient-mesh-dark-blue-sky: linear-gradient( 122deg, #2a446f -18.47%, #1e304f 50.34%, #3b5461 118.47% );--ds-gradient-mesh-dark-blue-lime: linear-gradient( 122deg, #2a446f -18.47%, #1e304f 50.34%, #59633c 118.47% );--ds-gradient-mesh-deep-teal: linear-gradient( 126deg, #225b62 0%, #133236 50%, #4e5c58 100% );--ds-gradient-mesh-biscay-green: linear-gradient( 122deg, #286c61 -18.47%, #1f534a 50.34%, #75824e 118.47% );--ds-gradient-mesh-maroon: linear-gradient( 122deg, #591520 -18.47%, #2b0d12 50.34%, #8c7d4e 118.47% );--ds-gradient-linear-sea-salt: linear-gradient( 90deg, #dceef8 0%, #f8f7f5 49.65%, #ede8f6 100% );--ds-gradient-linear-sky-blue: linear-gradient( 90deg, #ede8f6 0%, #f4fafd 49.99%, #dceef8 100% );--ds-gradient-linear-pale-lime-custard-yellow: linear-gradient( 90deg, #fff6dc 0%, #fbfdf4 49.99%, #edf9f7 100% );--ds-gradient-linear-pale-lime-dark-blue: linear-gradient( 90deg, #eaecf1 0%, #fbfdf4 49.99%, #eaf4f1 100% );--ds-gradient-linear-aqua-foam: linear-gradient( 90deg, #e9efef 0%, #f8fcfb 49.99%, #dceef8 100% );--ds-gradient-linear-custard-yellow: linear-gradient( 90deg, #ffe1d9 0%, #fffcf4 50%, #f2e9ea 100% );--ds-gradient-linear-pink: linear-gradient( 90deg, #fff8e6 0%, #fff7f8 49.99%, #f1e9f1 100% );--ds-gradient-linear-orange-coral: linear-gradient( 90deg, #edebf0 0%, #fff5f3 49.99%, #fff6dc 100% );--ds-gradient-linear-blue-black: linear-gradient( 90deg, #06161f 0%, #091f2c 49.99%, #003259 100% );--ds-gradient-linear-green-black: linear-gradient( 90deg, #050e0f 0%, #0d2124 49.99%, #133236 100% );--ds-gradient-linear-brown-black: linear-gradient( 90deg, #110a0a 0%, #291817 49.99%, #33271f 100% );--ds-gradient-linear-red-black: linear-gradient( 90deg, #120508 0%, #2b0d12 49.99%, #350d13 100% );--ds-gradient-linear-purple-black: linear-gradient( 90deg, #0a0512 0%, #170d2b 49.99%, #271e39 100% );--ds-gradient-linear-viva-light-blue: linear-gradient( 90deg, #e6f2fb 0%, #b0d5f2 100% );--ds-gradient-linear-viva-dark-blue: linear-gradient( 90deg, #2a446f 0%, #006dc1 100% );--ds-gradient-linear-viva-light-purple: linear-gradient( 90deg, #f3eff9, #d9ceed 100% );--ds-gradient-linear-viva-dark-purple: linear-gradient( 90deg, #463668, #7a58b3 100% );--ds-gradient-linear-viva-light-teal: linear-gradient( 90deg, #f8fcfb 0%, #c7ede7 100% );--ds-gradient-linear-viva-dark-teal: linear-gradient( 90deg, #225b62 0%, #348c7e 100% );--ds-gradient-linear-redviolet-brightorange: linear-gradient( 90deg, #882a8b 0%, #dc2c04 100%, #b54128 100% );--ds-gradient-linear-brilliantblue-purple: linear-gradient( 90deg, #0778d4 0%, #8661c5 100% );--ds-gradient-linear-brilliantblue-biscaygreen: linear-gradient( 89.97deg, #0078d4 .03%, #6dd1c1 99.97% );--ds-gradient-linear-mintgreen-brilliantblue: linear-gradient( 90deg, #8de971 0%, #0778d4 100% );--ds-gradient-linear-lavender-brilliantblue: linear-gradient( 180deg, #f9f8fc 0%, #e6f2fb 100% );--ds-gradient-linear-aquafoam-brilliantblue: linear-gradient( 180deg, #f8fcfb 0%, #e6f2fb 100% );--ds-gradient-linear-skyblue-brilliantblue: linear-gradient( 180deg, #f4fafd 0%, #e6f2fb 100% );--ds-gradient-linear-skyblue2: linear-gradient( 180deg, #b8e5ff 0%, #f4fafd 100% );--ds-gradient-linear-skyblue-template: linear-gradient( 180deg, #f4fafd 0%, #dbf2ff 10%, #f4fafd 50%, #dcf2ff 90%, #b8e5ff 100% );--ds-gradient-linear-blue-black-template: linear-gradient( 180deg, #011f60 0%, #bfdcf8 13%, #dbf2ff 25%, #f4fafd 50%, #bfdcf8 75%, #2164a6 87%, #011f60 100% );--ds-theme-background-accent-strong-normal: var( --ds-color-brilliant-blue-500 );--ds-theme-background-accent-strong-hover: var(--ds-color-brilliant-blue-600);--ds-theme-background-accent-strong-pressed: var( --ds-color-brilliant-blue-800 );--ds-theme-background-accent-strong-selected: var( --ds-color-brilliant-blue-700 );--ds-theme-background-accent-subtle-normal: rgba(0, 85, 151, .15);--ds-theme-background-accent-subtle-hover: rgba(0, 85, 151, .4);--ds-theme-background-accent-subtle-pressed: var( --ds-color-brilliant-blue-300 );--ds-theme-background-accent-subtle-selected: var( --ds-color-brilliant-blue-700 );--ds-theme-background-base-fade: var(--ds-color-sky-blue-50);--ds-theme-background-base-color: var(--ds-color-sky-blue-100);--ds-theme-background-base-neutral: var(--ds-color-neutral-white);--ds-theme-background-special-fade: var(--ds-gradient-linear-sky-blue);--ds-theme-background-special-color: var(--ds-gradient-mesh-sky-blue);--ds-theme-background-special-neutral: var( --ds-gradient-linear-skyblue-brilliantblue );--ds-theme-background-special-subtle: var(--ds-gradient-linear-skyblue2);--ds-theme-background-special-template-subtle: var( --ds-gradient-linear-skyblue-template );--ds-theme-background-neutral-fade: var(--ds-color-vapor-gray-50);--ds-theme-background-neutral-color: var(--ds-color-vapor-gray-100);--ds-theme-background-supportive-fade: var(--ds-color-pink-50);--ds-theme-background-supportive-color: var(--ds-color-pink-300);--ds-theme-background-card-normal: var(--ds-color-off-white-50);--ds-theme-background-card-hover: var(--ds-color-off-white-50);--ds-theme-background-card-pressed: var(--ds-color-off-white-400);--ds-theme-background-card-selected: var(--ds-color-off-white-50);--ds-theme-background-glass-normal: var(--ds-color-alpha-400);--ds-theme-background-glass-hover: var(--ds-color-alpha-500);--ds-theme-background-glass-pressed: var(--ds-color-alpha-600);--ds-theme-background-glass-selected: var(--ds-color-alpha-700);--ds-theme-background-highlight-normal: var(--ds-color-sky-blue-100);--ds-theme-background-highlight-hover: var(--ds-color-sky-blue-200);--ds-theme-background-highlight-pressed: var(--ds-color-sky-blue-400);--ds-theme-background-highlight-selected: var(--ds-color-sky-blue-300);--ds-theme-background-overlay-full: var(--ds-overlay-day-full);--ds-theme-background-overlay-gradient: var(--ds-overlay-day-gradient);--ds-theme-background-background-overlay-fill: var( --ds-overlay-day-bg-overlay-fill );--ds-theme-background-background-overlay-horizontal: var( --ds-overlay-day-bg-overlay-horizontal );--ds-theme-background-background-overlay-horizontal-faded: var( --ds-overlay-day-bg-overlay-horizontal-faded );--ds-theme-background-background-overlay-vertical: var( --ds-overlay-day-bg-overlay-vertical );--ds-theme-background-background-overlay-vertical-color: var( --ds-overlay-day-bg-overlay-vertical-color );--ds-theme-background-video-overlay-fill: var( --ds-overlay-day-video-overlay-fill );--ds-theme-background-video-overlay-vertical: var( --ds-overlay-day-video-overlay-vertical );--ds-theme-background-video-overlay-bottom-vertical: var( --ds-overlay-day-video-overlay-bottom-vertical );--ds-theme-background-video-overlay-bottom-vertical-light: var( --ds-overlay-day-video-overlay-bottom-vertical-light );--ds-theme-background-video-overlay-bottom-vertical-strong: var( --ds-overlay-day-video-overlay-bottom-vertical-strong );--ds-theme-background-video-overlay-bottom-vertical-strong-light: var( --ds-overlay-day-video-overlay-bottom-vertical-strong-light );--ds-theme-foreground-accent-strong-normal: var(--ds-color-neutral-white);--ds-theme-foreground-accent-strong-hover: var(--ds-color-neutral-white);--ds-theme-foreground-accent-strong-pressed: var(--ds-color-neutral-white);--ds-theme-foreground-accent-strong-selected: var(--ds-color-neutral-white);--ds-theme-foreground-accent-subtle-normal: var(--ds-color-dark-blue-500);--ds-theme-foreground-accent-subtle-hover: var(--ds-color-dark-blue-600);--ds-theme-foreground-accent-subtle-pressed: var(--ds-color-dark-blue-900);--ds-theme-foreground-accent-subtle-selected: var(--ds-color-neutral-white);--ds-theme-foreground-base-strong: var(--ds-color-dark-blue-900);--ds-theme-foreground-base-subtle: var(--ds-color-dark-blue-800);--ds-theme-foreground-base-highlight: var(--ds-color-brilliant-blue-700);--ds-theme-foreground-base-icon: var(--ds-color-brilliant-blue-500);--ds-theme-foreground-base-icon-light: var(--ds-color-sky-blue-50);--ds-theme-foreground-special-strong: var(--ds-color-dark-blue-900);--ds-theme-foreground-special-subtle: var(--ds-color-dark-blue-800);--ds-theme-foreground-special-highlight: var(--ds-color-brilliant-blue-700);--ds-theme-foreground-special-icon: var(--ds-color-brilliant-blue-500);--ds-theme-foreground-special-icon-light: var(--ds-color-sky-blue-50);--ds-theme-foreground-special-strong-gradient-1: var( --ds-gradient-linear-redviolet-brightorange );--ds-theme-foreground-special-strong-gradient-2: var( --ds-gradient-linear-brilliantblue-purple );--ds-theme-foreground-special-ai-gradient-1: var( --ds-gradient-linear-brilliantblue-biscaygreen );--ds-theme-foreground-neutral-strong: var(--ds-color-dark-blue-900);--ds-theme-foreground-neutral-subtle: var(--ds-color-dark-blue-800);--ds-theme-foreground-neutral-highlight: var(--ds-color-dark-blue-800);--ds-theme-foreground-neutral-icon: var(--ds-color-dark-blue-900);--ds-theme-foreground-neutral-icon-light: var(--ds-color-dark-blue-50);--ds-theme-foreground-supportive-strong: var(--ds-color-violet-900);--ds-theme-foreground-supportive-subtle: var(--ds-color-violet-800);--ds-theme-foreground-supportive-highlight: var(--ds-color-violet-800);--ds-theme-foreground-supportive-icon: var(--ds-color-violet-500);--ds-theme-foreground-supportive-icon-light: var(--ds-color-violet-50);--ds-theme-border-accent-strong-normal: var(--ds-color-brilliant-blue-500);--ds-theme-border-accent-strong-hover: var(--ds-color-brilliant-blue-600);--ds-theme-border-accent-strong-pressed: var(--ds-color-brilliant-blue-800);--ds-theme-border-accent-strong-selected: var(--ds-color-brilliant-blue-700);--ds-theme-border-accent-subtle-normal: var(--ds-color-dark-blue-500);--ds-theme-border-accent-subtle-hover: var(--ds-color-dark-blue-600);--ds-theme-border-accent-subtle-pressed: var(--ds-color-dark-blue-800);--ds-theme-border-accent-subtle-selected: var(--ds-color-dark-blue-700);--ds-theme-border-base-strong: var(--ds-color-brilliant-blue-900);--ds-theme-border-base-fade: var(--ds-color-sky-blue-200);--ds-theme-border-special-strong: var(--ds-color-brilliant-blue-900);--ds-theme-border-special-fade: var(--ds-color-sky-blue-200);--ds-theme-border-neutral-strong: var(--ds-color-dark-blue-900);--ds-theme-border-neutral-fade: var(--ds-color-dark-blue-100);--ds-theme-border-supportive-strong: var(--ds-color-violet-900);--ds-theme-border-supportive-fade: var(--ds-color-pink-100);--ds-theme-border-card-strong: var(--ds-color-off-white-600);--ds-theme-border-card-fade: var(--ds-color-brilliant-blue-50);--ds-theme-border-glass-strong: var(--ds-color-alpha-900);--ds-theme-border-glass-fade: var(--ds-color-alpha-100);--ds-theme-border-highlight-strong: var(--ds-color-sky-blue-400);--ds-theme-border-highlight-fade: var(--ds-color-sky-blue-200)}@media(min-width:540px){#unified-chat-assistant{--ds-copy-padding-m: 1.5rem;--ds-copy-padding-l: 1.5rem;--ds-copy-padding-xl: 1.5rem}}@media(min-width:860px){#unified-chat-assistant{--ds-spacing-5: 1rem;--ds-spacing-m: 1rem;--ds-spacing-6: 1.5rem;--ds-spacing-l: 1.5rem;--ds-spacing-7: 2rem;--ds-spacing-xl: 2rem;--ds-spacing-8: 3rem;--ds-spacing-2xl: 3rem;--ds-spacing-9: 4.5rem;--ds-spacing-3xl: 4.5rem;--ds-spacing-10: 6rem;--ds-spacing-4xl: 6rem;--ds-copy-padding-l: 2rem;--ds-copy-padding-xl: 5.5rem;--ds-card-padding-default: 1.5rem;--ds-card-padding-comfortable: 3rem;--ds-card-padding-relaxed: 4.5rem;--ds-radii-m: 1rem;--ds-radii-l: 1.5rem;--ds-heading-3xl-font-size: 4.75rem;--ds-heading-3xl-line-height: 5.125rem;--ds-heading-2xl-font-size: 3.75rem;--ds-heading-2xl-line-height: 4.5rem;--ds-heading-xl-font-size: 2.75rem;--ds-heading-xl-line-height: 3.5rem;--ds-heading-l-font-size: 2.5rem;--ds-heading-l-line-height: 3rem;--ds-heading-m-font-size: 1.875rem;--ds-heading-m-line-height: 2.25rem;--ds-heading-xs-font-size: 1.25rem;--ds-heading-xs-line-height: 1.75rem}}@media(min-width:1440px){#unified-chat-assistant{--ds-copy-padding-l: 3rem;--ds-copy-padding-xl: 11.75rem;--ds-heading-3xl-font-size: 6.25rem;--ds-heading-3xl-line-height: 6.625rem;--ds-heading-2xl-font-size: 4.75rem;--ds-heading-2xl-line-height: 5.375rem;--ds-heading-xl-font-size: 3.875rem;--ds-heading-xl-line-height: 4.5rem;--ds-heading-l-font-size: 3rem;--ds-heading-l-line-height: 3.5rem;--ds-heading-m-font-size: 2.5rem;--ds-heading-m-line-height: 3rem;--ds-heading-s-font-size: 2rem;--ds-heading-s-line-height: 2.5rem;--ds-heading-xs-font-size: 1.5rem;--ds-heading-xs-line-height: 2rem;--ds-heading-2xs-font-size: 1.25rem;--ds-heading-2xs-line-height: 1.75rem;--ds-body-l-font-size: 1.25rem;--ds-body-l-line-height: 2rem}}.theme-day,[theme=day]{--ds-elevation-color-1: rgba(0, 0, 0, .12);--ds-elevation-color-2: rgba(0, 0, 0, .14);--ds-theme-background-accent-strong-normal: var( --ds-color-brilliant-blue-500 );--ds-theme-background-accent-strong-hover: var(--ds-color-brilliant-blue-600);--ds-theme-background-accent-strong-pressed: var( --ds-color-brilliant-blue-800 );--ds-theme-background-accent-strong-selected: var( --ds-color-brilliant-blue-700 );--ds-theme-background-accent-subtle-normal: rgba(0, 85, 151, .15);--ds-theme-background-accent-subtle-hover: rgba(0, 85, 151, .4);--ds-theme-background-accent-subtle-pressed: var( --ds-color-brilliant-blue-300 );--ds-theme-background-accent-subtle-selected: var( --ds-color-brilliant-blue-700 );--ds-theme-background-base-fade: var(--ds-color-sky-blue-50);--ds-theme-background-base-color: var(--ds-color-sky-blue-100);--ds-theme-background-base-neutral: var(--ds-color-neutral-white);--ds-theme-background-special-fade: var(--ds-gradient-linear-sky-blue);--ds-theme-background-special-color: var(--ds-gradient-mesh-sky-blue);--ds-theme-background-special-neutral: var( --ds-gradient-linear-skyblue-brilliantblue );--ds-theme-background-special-subtle: var(--ds-gradient-linear-skyblue2);--ds-theme-background-special-template-subtle: var( --ds-gradient-linear-skyblue-template );--ds-theme-background-neutral-fade: var(--ds-color-vapor-gray-50);--ds-theme-background-neutral-color: var(--ds-color-vapor-gray-100);--ds-theme-background-supportive-fade: var(--ds-color-pink-50);--ds-theme-background-supportive-color: var(--ds-color-pink-300);--ds-theme-background-card-normal: var(--ds-color-off-white-50);--ds-theme-background-card-hover: var(--ds-color-off-white-50);--ds-theme-background-card-pressed: var(--ds-color-off-white-400);--ds-theme-background-card-selected: var(--ds-color-off-white-50);--ds-theme-background-glass-normal: var(--ds-color-alpha-400);--ds-theme-background-glass-hover: var(--ds-color-alpha-500);--ds-theme-background-glass-pressed: var(--ds-color-alpha-600);--ds-theme-background-glass-selected: var(--ds-color-alpha-700);--ds-theme-background-highlight-normal: var(--ds-color-sky-blue-100);--ds-theme-background-highlight-hover: var(--ds-color-sky-blue-200);--ds-theme-background-highlight-pressed: var(--ds-color-sky-blue-400);--ds-theme-background-highlight-selected: var(--ds-color-sky-blue-300);--ds-theme-background-overlay-full: var(--ds-overlay-day-full);--ds-theme-background-overlay-gradient: var(--ds-overlay-day-gradient);--ds-theme-background-background-overlay-fill: var( --ds-overlay-day-bg-overlay-fill );--ds-theme-background-background-overlay-horizontal: var( --ds-overlay-day-bg-overlay-horizontal );--ds-theme-background-background-overlay-horizontal-faded: var( --ds-overlay-day-bg-overlay-horizontal-faded );--ds-theme-background-background-overlay-vertical: var( --ds-overlay-day-bg-overlay-vertical );--ds-theme-background-background-overlay-vertical-color: var( --ds-overlay-day-bg-overlay-vertical-color );--ds-theme-background-video-overlay-fill: var( --ds-overlay-day-video-overlay-fill );--ds-theme-background-video-overlay-vertical: var( --ds-overlay-day-video-overlay-vertical );--ds-theme-background-video-overlay-bottom-vertical: var( --ds-overlay-day-video-overlay-bottom-vertical );--ds-theme-background-video-overlay-bottom-vertical-light: var( --ds-overlay-day-video-overlay-bottom-vertical-light );--ds-theme-background-video-overlay-bottom-vertical-strong: var( --ds-overlay-day-video-overlay-bottom-vertical-strong );--ds-theme-background-video-overlay-bottom-vertical-strong-light: var( --ds-overlay-day-video-overlay-bottom-vertical-strong-light );--ds-theme-foreground-accent-strong-normal: var(--ds-color-neutral-white);--ds-theme-foreground-accent-strong-hover: var(--ds-color-neutral-white);--ds-theme-foreground-accent-strong-pressed: var(--ds-color-neutral-white);--ds-theme-foreground-accent-strong-selected: var(--ds-color-neutral-white);--ds-theme-foreground-accent-subtle-normal: var(--ds-color-dark-blue-500);--ds-theme-foreground-accent-subtle-hover: var(--ds-color-dark-blue-600);--ds-theme-foreground-accent-subtle-pressed: var(--ds-color-dark-blue-900);--ds-theme-foreground-accent-subtle-selected: var(--ds-color-neutral-white);--ds-theme-foreground-base-strong: var(--ds-color-dark-blue-900);--ds-theme-foreground-base-subtle: var(--ds-color-dark-blue-800);--ds-theme-foreground-base-highlight: var(--ds-color-brilliant-blue-700);--ds-theme-foreground-base-icon: var(--ds-color-brilliant-blue-500);--ds-theme-foreground-base-icon-light: var(--ds-color-sky-blue-50);--ds-theme-foreground-special-strong: var(--ds-color-dark-blue-900);--ds-theme-foreground-special-subtle: var(--ds-color-dark-blue-800);--ds-theme-foreground-special-highlight: var(--ds-color-brilliant-blue-700);--ds-theme-foreground-special-icon: var(--ds-color-brilliant-blue-500);--ds-theme-foreground-special-icon-light: var(--ds-color-sky-blue-50);--ds-theme-foreground-special-strong-gradient-1: var( --ds-gradient-linear-redviolet-brightorange );--ds-theme-foreground-special-strong-gradient-2: var( --ds-gradient-linear-brilliantblue-purple );--ds-theme-foreground-special-ai-gradient-1: var( --ds-gradient-linear-brilliantblue-biscaygreen );--ds-theme-foreground-neutral-strong: var(--ds-color-dark-blue-900);--ds-theme-foreground-neutral-subtle: var(--ds-color-dark-blue-800);--ds-theme-foreground-neutral-highlight: var(--ds-color-dark-blue-800);--ds-theme-foreground-neutral-icon: var(--ds-color-dark-blue-900);--ds-theme-foreground-neutral-icon-light: var(--ds-color-dark-blue-50);--ds-theme-foreground-supportive-strong: var(--ds-color-violet-900);--ds-theme-foreground-supportive-subtle: var(--ds-color-violet-800);--ds-theme-foreground-supportive-highlight: var(--ds-color-violet-800);--ds-theme-foreground-supportive-icon: var(--ds-color-violet-500);--ds-theme-foreground-supportive-icon-light: var(--ds-color-violet-50);--ds-theme-border-accent-strong-normal: var(--ds-color-brilliant-blue-500);--ds-theme-border-accent-strong-hover: var(--ds-color-brilliant-blue-600);--ds-theme-border-accent-strong-pressed: var(--ds-color-brilliant-blue-800);--ds-theme-border-accent-strong-selected: var(--ds-color-brilliant-blue-700);--ds-theme-border-accent-subtle-normal: var(--ds-color-dark-blue-500);--ds-theme-border-accent-subtle-hover: var(--ds-color-dark-blue-600);--ds-theme-border-accent-subtle-pressed: var(--ds-color-dark-blue-800);--ds-theme-border-accent-subtle-selected: var(--ds-color-dark-blue-700);--ds-theme-border-base-strong: var(--ds-color-brilliant-blue-900);--ds-theme-border-base-fade: var(--ds-color-sky-blue-200);--ds-theme-border-special-strong: var(--ds-color-brilliant-blue-900);--ds-theme-border-special-fade: var(--ds-color-sky-blue-200);--ds-theme-border-neutral-strong: var(--ds-color-dark-blue-900);--ds-theme-border-neutral-fade: var(--ds-color-dark-blue-100);--ds-theme-border-supportive-strong: var(--ds-color-violet-900);--ds-theme-border-supportive-fade: var(--ds-color-pink-100);--ds-theme-border-card-strong: var(--ds-color-off-white-600);--ds-theme-border-card-fade: var(--ds-color-brilliant-blue-50);--ds-theme-border-glass-strong: var(--ds-color-alpha-900);--ds-theme-border-glass-fade: var(--ds-color-alpha-100);--ds-theme-border-highlight-strong: var(--ds-color-sky-blue-400);--ds-theme-border-highlight-fade: var(--ds-color-sky-blue-200);--ds-theme-drawer-text-color: var(--ds-color-neutral-black);--ds-theme-drawer-button-color: var(--ds-color-neutral-black);--ds-theme-drawer-disclaimer-color: var(--ds-color-neutral-black);--ds-theme-chat-timestamp-color: var(--ds-color-dark-slate-400);--ds-theme-chat-error-color: rgba(197, 15, 31);--ds-theme-chat-error-background: rgba(252, 244, 246);--ds-theme-chat-info-color: rgba(0, 0, 0);--ds-theme-chat-info-background: rgba(230, 230, 230);--ds-theme-chat-warn-color: rgba(50, 49, 48);--ds-theme-chat-warn-background: rgba(255, 244, 206);--ds-theme-chat-success-color: rgba(50, 49, 48);--ds-theme-chat-success-background: rgba(223, 246, 221);--ds-theme-chat-suggested-action-color: rgb(36, 36, 36);--ds-theme-chat-suggested-action-background: rgba(0, 0, 0, 0);--ds-theme-chat-suggested-action-border: rgb(164, 212, 230);--ds-theme-chat-suggested-action-color-hover: var( --ds-color-brilliant-blue-900 );--ds-theme-chat-suggested-action-background-hover: var( --ds-color-sky-blue-200 );--ds-theme-chat-suggested-action-border-hover: rgb(164, 212, 230);--ds-theme-chat-feedback-thumb-disabled: rgba(200, 198, 196)}.theme-night,[theme=night]{--ds-elevation-color-1: rgba(0, 0, 0, .28);--ds-elevation-color-2: rgba(0, 0, 0, .24);--ds-theme-background-accent-strong-normal: var(--ds-color-sky-blue-300);--ds-theme-background-accent-strong-hover: var(--ds-color-sky-blue-200);--ds-theme-background-accent-strong-pressed: var(--ds-color-sky-blue-50);--ds-theme-background-accent-strong-selected: var(--ds-color-sky-blue-100);--ds-theme-background-accent-subtle-normal: rgba(84, 165, 226, .15);--ds-theme-background-accent-subtle-hover: rgba(84, 165, 226, .4);--ds-theme-background-accent-subtle-pressed: var( --ds-color-brilliant-blue-600 );--ds-theme-background-accent-subtle-selected: var( --ds-color-brilliant-blue-100 );--ds-theme-background-base-fade: var(--ds-color-brilliant-blue-900);--ds-theme-background-base-color: var(--ds-color-brilliant-blue-700);--ds-theme-background-base-neutral: var(--ds-color-neutral-black);--ds-theme-background-special-fade: var(--ds-gradient-linear-blue-black);--ds-theme-background-special-color: var(--ds-gradient-mesh-blue-black);--ds-theme-background-special-template-subtle: var( --ds-gradient-linear-blue-black-template );--ds-theme-background-neutral-fade: var(--ds-color-blue-black-500);--ds-theme-background-neutral-color: var(--ds-color-dark-blue-700);--ds-theme-background-supportive-fade: var(--ds-color-twilight-purple-900);--ds-theme-background-supportive-color: var(--ds-color-twilight-purple-700);--ds-theme-background-card-normal: var(--ds-color-dark-blue-900);--ds-theme-background-card-hover: var(--ds-color-dark-blue-900);--ds-theme-background-card-pressed: var(--ds-color-dark-blue-800);--ds-theme-background-card-selected: var(--ds-color-neutral-black);--ds-theme-background-glass-normal: var(--ds-color-alpha-50);--ds-theme-background-glass-hover: var(--ds-color-alpha-200);--ds-theme-background-glass-pressed: var(--ds-color-alpha-300);--ds-theme-background-glass-selected: var(--ds-color-alpha-200);--ds-theme-background-highlight-normal: var(--ds-color-brilliant-blue-600);--ds-theme-background-highlight-hover: var(--ds-color-brilliant-blue-500);--ds-theme-background-highlight-pressed: var(--ds-color-brilliant-blue-300);--ds-theme-background-highlight-selected: var(--ds-color-brilliant-blue-400);--ds-theme-background-overlay-full: var(--ds-overlay-night-full);--ds-theme-background-overlay-gradient: var(--ds-overlay-night-gradient);--ds-theme-background-background-overlay-fill: var( --ds-overlay-night-bg-overlay-fill );--ds-theme-background-background-overlay-horizontal: var( --ds-overlay-night-bg-overlay-horizontal );--ds-theme-background-background-overlay-horizontal-faded: var( --ds-overlay-night-bg-overlay-horizontal-faded );--ds-theme-background-background-overlay-vertical: var( --ds-overlay-night-bg-overlay-vertical );--ds-theme-background-video-overlay-fill: var( --ds-overlay-night-video-overlay-fill );--ds-theme-background-video-overlay-vertical: var( --ds-overlay-night-video-overlay-vertical );--ds-theme-background-video-overlay-bottom-vertical: var( --ds-overlay-night-video-overlay-bottom-vertical );--ds-theme-background-video-overlay-bottom-vertical-light: var( --ds-overlay-night-video-overlay-bottom-vertical-light );--ds-theme-background-video-overlay-bottom-vertical-strong: var( --ds-overlay-night-video-overlay-bottom-vertical-strong );--ds-theme-background-video-overlay-bottom-vertical-strong-light: var( --ds-overlay-night-video-overlay-bottom-vertical-strong-light );--ds-theme-foreground-accent-strong-normal: var(--ds-color-dark-blue-900);--ds-theme-foreground-accent-strong-hover: var(--ds-color-dark-blue-900);--ds-theme-foreground-accent-strong-pressed: var(--ds-color-dark-blue-900);--ds-theme-foreground-accent-strong-selected: var(--ds-color-dark-blue-900);--ds-theme-foreground-accent-subtle-normal: var(--ds-color-sky-blue-100);--ds-theme-foreground-accent-subtle-hover: var(--ds-color-sky-blue-100);--ds-theme-foreground-accent-subtle-pressed: var(--ds-color-sky-blue-50);--ds-theme-foreground-accent-subtle-selected: var(--ds-color-dark-blue-900);--ds-theme-foreground-base-strong: var(--ds-color-sky-blue-50);--ds-theme-foreground-base-subtle: var(--ds-color-sky-blue-100);--ds-theme-foreground-base-highlight: var(--ds-color-sky-blue-300);--ds-theme-foreground-base-icon: var(--ds-color-brilliant-blue-300);--ds-theme-foreground-base-icon-dark: var(--ds-color-dark-blue-900);--ds-theme-foreground-special-strong: var(--ds-color-sky-blue-50);--ds-theme-foreground-special-subtle: var(--ds-color-sky-blue-100);--ds-theme-foreground-special-highlight: var(--ds-color-sky-blue-300);--ds-theme-foreground-special-icon: var(--ds-color-brilliant-blue-300);--ds-theme-foreground-special-icon-dark: var(--ds-color-dark-blue-900);--ds-theme-foreground-special-strong-gradient: var( --ds-gradient-linear-mintgreen-brilliantblue );--ds-theme-foreground-neutral-strong: var(--ds-color-sky-blue-50);--ds-theme-foreground-neutral-subtle: var(--ds-color-sky-blue-100);--ds-theme-foreground-neutral-highlight: var(--ds-color-sky-blue-300);--ds-theme-foreground-neutral-icon: var(--ds-color-sky-blue-50);--ds-theme-foreground-neutral-icon-dark: var(--ds-color-dark-blue-900);--ds-theme-foreground-supportive-strong: var(--ds-color-twilight-purple-50);--ds-theme-foreground-supportive-subtle: var(--ds-color-twilight-purple-100);--ds-theme-foreground-supportive-highlight: var( --ds-color-twilight-purple-500 );--ds-theme-foreground-supportive-icon: var(--ds-color-violet-300);--ds-theme-foreground-supportive-icon-dark: var( --ds-color-twilight-purple-900 );--ds-theme-border-accent-strong-normal: var(--ds-color-sky-blue-500);--ds-theme-border-accent-strong-hover: var(--ds-color-sky-blue-400);--ds-theme-border-accent-strong-pressed: var(--ds-color-sky-blue-100);--ds-theme-border-accent-strong-selected: var(--ds-color-sky-blue-400);--ds-theme-border-accent-subtle-normal: var(--ds-color-sky-blue-100);--ds-theme-border-accent-subtle-hover: var(--ds-color-sky-blue-100);--ds-theme-border-accent-subtle-pressed: var(--ds-color-sky-blue-50);--ds-theme-border-accent-subtle-selected: var(--ds-color-sky-blue-500);--ds-theme-border-base-strong: var(--ds-color-sky-blue-50);--ds-theme-border-base-fade: var(--ds-color-sky-blue-900);--ds-theme-border-special-strong: var(--ds-color-sky-blue-50);--ds-theme-border-special-fade: var(--ds-color-sky-blue-900);--ds-theme-border-neutral-strong: var(--ds-color-neutral-white);--ds-theme-border-neutral-fade: rgba(244, 250, 253, .1);--ds-theme-border-supportive-strong: var(--ds-color-twilight-purple-50);--ds-theme-border-supportive-fade: var(--ds-color-twilight-purple-800);--ds-theme-border-card-strong: var(--ds-color-dark-blue-500);--ds-theme-border-card-fade: var(--ds-color-dark-blue-800);--ds-theme-border-glass-strong: rgba(255, 255, 255, .38);--ds-theme-border-glass-fade: var(--ds-color-alpha-100);--ds-theme-border-highlight-strong: var(--ds-color-sky-blue-50);--ds-theme-border-highlight-fade: var(--ds-color-brilliant-blue-500);--ds-theme-drawer-text-color: var(--ds-color-neutral-white);--ds-theme-drawer-button-color: var(--ds-color-neutral-white);--ds-theme-drawer-disclaimer-color: var(--ds-color-neutral-white);--ds-theme-chat-timestamp-color: var(--ds-color-dark-slate-400);--ds-theme-chat-error-color: rgba(197, 15, 31);--ds-theme-chat-error-background: rgba(252, 244, 246);--ds-theme-chat-info-color: rgba(0, 0, 0);--ds-theme-chat-info-background: rgba(230, 230, 230);--ds-theme-chat-warn-color: rgba(50, 49, 48);--ds-theme-chat-warn-background: rgba(255, 244, 206);--ds-theme-chat-success-color: rgba(50, 49, 48);--ds-theme-chat-success-background: rgba(223, 246, 221);--ds-theme-chat-suggested-action-color: var(--ds-theme-drawer-text-color);--ds-theme-chat-suggested-action-background: var( --ds-theme-background-base-neutral );--ds-theme-chat-suggested-action-border: var(--ds-theme-border-base-fade);--ds-theme-chat-suggested-action-color-hover: var( --ds-theme-drawer-text-color );--ds-theme-chat-suggested-action-background-hover: var( --ds-theme-background-base-color );--ds-theme-chat-suggested-action-border-hover: var( --ds-theme-border-base-fade );--ds-theme-chat-feedback-thumb-disabled: rgba(200, 198, 196)}.assistant-drawer-button,.assistant-drawer-panel,.assistant-sidecar-panel{font-family:Segoe UI,sans-serif;color:var(--ds-theme-text-primary, #212529)}.uca-assistant-drawer-button{font-family:Segoe UI,sans-serif;display:flex;flex-wrap:nowrap;align-items:center;position:fixed;inset-inline-end:1rem;bottom:0;padding:16px;line-height:24px;box-shadow:var(--ds-elevation-level-4);text-align:start;border:1px solid;border-color:var(--ds-theme-border-base-fade);border-radius:var(--ds-radii-s);background-color:var(--ds-theme-background-base-fade);cursor:pointer;z-index:1040}.uca-assistant-drawer-button-hidden{display:none}.uca-chat-icon{display:flex;width:24px;height:100%;max-width:24px;max-height:24px;font-size:24px}.uca-drawer-ai-icon-container{align-items:center;background-color:var(--ds-theme-background-base-normal);border:1px solid;border-color:var(--ds-theme-border-base-fade);border-radius:var(--ds-radii-s);padding:2px 5px 6px;height:32px}.uca-drawer-ai-icon{display:block;height:20px;overflow-clip-margin:content-box;overflow:clip}.uca-chat-button__text{display:flex;flex-direction:column;justify-content:center;text-align:start;white-space:nowrap;margin-inline-start:12px}.uca-assistant-drawer-button .h5{font-weight:var(--ds-heading-2xs-font-weight);font-size:var(--ds-heading-2xs-font-size);line-height:var(--ds-heading-2xs-line-height);letter-spacing:var(--ds-heading-2xs-letter-spacing);margin-bottom:0;color:var(--ds-theme-drawer-button-color)}.assistant-drawer-button small{font-weight:var(--ds-body-s-font-weight);font-size:var(--ds-body-s-font-size);line-height:var(--ds-body-s-line-height);letter-spacing:var(--ds-body-s-letter-spacing);margin-bottom:0;color:var(--ds-theme-background-accent-strong-normal)}.uca-chat-button__icon{margin-inline-start:32px;align-items:center;background-color:var(--ds-theme-background-accent-strong-normal);border:1px solid;border-color:var(--ds-theme-background-accent-strong-normal);color:var(--ds-theme-foreground-accent-strong-normal);border-radius:var(--ds-radii-s);cursor:pointer;height:32px}.uca-add-icon{cursor:pointer;padding:0 8px}#unified-chat-assistant .uca-assistant-drawer-button .uca-glyph-add svg{fill:var(--ds-theme-foreground-accent-strong-normal)}.uca-prompt-popover{position:fixed;inset-inline-end:1rem;bottom:80px;background:var(--ds-theme-background-base-neutral);border:1px solid var(--ds-theme-border-base-fade);border-radius:var(--ds-radii-m);box-shadow:var(--ds-elevation-level-4);padding:var(--ds-spacing-s);z-index:1040;max-width:450px;min-width:280px;animation:slideUp .2s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.uca-prompt-popover__content{display:flex;flex-direction:column;align-items:flex-end;gap:var(--ds-spacing-2xs)}.uca-prompt-popover__button{position:relative;background:var(--ds-theme-chat-suggested-action-background);border:none;border-radius:var(--ds-radii-s);padding:calc(var(--ds-spacing-xs) + 1px) calc(var(--ds-spacing-s) + 1px);cursor:pointer;transition:background-color .2s ease;text-align:right;display:inline-flex;align-items:center;justify-content:center;font-size:var(--ds-body-s-font-size);font-weight:var(--ds-action-button-font-weight, 600);line-height:var(--ds-body-s-line-height);color:var(--ds-theme-chat-suggested-action-color)}.uca-prompt-popover__button:before{content:"";position:absolute;inset:0;border-radius:var(--ds-radii-s);padding:1px;background:linear-gradient(90deg,#0a86c4 .65%,#71ede8 100.65%);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;pointer-events:none}.uca-prompt-popover__button:hover{background-color:var(--ds-theme-background-base-fade, #f8f9fa)}.uca-prompt-popover__button:focus-visible{outline:var(--ds-border-width-s) solid var(--ds-color-deep-teal-500, #225b62);outline-offset:2px;border-color:var(--ds-color-deep-teal-500, #225b62)}@media(max-width:768px){.uca-prompt-popover{display:none}}@media screen and (max-width:359.9px){#unified-chat-assistant .uca-assistant-drawer-button{display:none}}@media(forced-colors:active){#unified-chat-assistant .uca-assistant-drawer-button .uca-glyph-add svg{fill:var(--ds-theme-foreground-base-icon)}}@media screen and (max-height:199.9px){.uca-assistant-drawer-button{display:none}}.uca-chat-history{font-family:Segoe UI,sans-serif;height:100%;background-color:var(--ds-theme-background-base-fade);border:1px solid;border-color:var(--ds-theme-border-base-fade);color:var(--ds-theme-drawer-text-color);padding:10px;max-height:calc(100vh - 200px);overflow-y:auto;display:flex;flex-direction:column-reverse}@media(hover:none)and (pointer:coarse)and (any-hover:none)and (any-pointer:coarse)and (max-width:768px)and (max-device-width:1100px),(hover:none)and (pointer:coarse)and (any-hover:none)and (any-pointer:coarse)and (orientation:landscape)and (max-width:1100px)and (max-height:539.98px)and (max-device-width:1100px){#unified-chat-assistant .uca-chat-history{height:auto;max-height:none;padding:var(--ds-spacing-xs, 8px);overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}}.uca-typing-indicator{display:flex;align-items:center;min-height:1.25rem;gap:var(--ds-spacing-xs);margin:var(--ds-spacing-xs) 0;position:relative}.uca-typing-dots{display:flex;align-items:center;gap:6px;padding:0 2px;position:relative;overflow:hidden;z-index:2}.uca-typing-text{font-weight:var(--ds-body-s-font-weight);font-size:var(--ds-body-s-font-size);line-height:var(--ds-body-s-line-height);letter-spacing:var(--ds-body-s-letter-spacing);color:var(--ds-theme-foreground-base-strong, #0e1726);animation:fade-in .3s ease-out;white-space:nowrap;z-index:2}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.uca-typing-dots span{background:linear-gradient(45deg,#d63031,#00b894,#0984e3,#00a085,#fdcb6e,#e84393,#e17055,#6c5ce7);background-size:300% 300%;animation:rainbow-pulse 2s infinite ease-in-out,rainbow-colors 3s infinite linear;position:relative;box-shadow:0 2px 8px #00000026}.uca-typing-dots span.dot{width:10px;height:10px;border-radius:50%}.uca-typing-dots span.dash{width:20px;height:10px;border-radius:5px}.uca-typing-dots span:nth-child(1){animation-delay:-.8s,0s}.uca-typing-dots span:nth-child(2){animation-delay:-.6s,-.6s}.uca-typing-dots span:nth-child(3){animation-delay:-.4s,-1.2s}.uca-typing-dots span:nth-child(4){animation-delay:-.2s,-1.8s}.uca-typing-dots span:nth-child(5){animation-delay:0s,-2.4s}.uca-typing-dots:before{content:"";position:absolute;inset:0;background:linear-gradient(45deg,#d630311a,#00b8941a,#0984e31a,#00a0851a);border-radius:20px;animation:glow-pulse 2s infinite ease-in-out;z-index:1}@keyframes glow-pulse{0%,to{opacity:.3}50%{opacity:.6}}@media(forced-colors:active){.uca-typing-dots span{background:ButtonText!important;background-size:unset!important;animation:simple-pulse 1s infinite ease-in-out!important;box-shadow:none!important}.uca-typing-dots:before{display:none}.uca-typing-dots span.dot,.uca-typing-dots span.dash{background:ButtonText!important;border:1px solid ButtonText!important}.uca-typing-text{color:ButtonText!important}}@media(prefers-contrast:high){.uca-typing-dots span{background:var(--ds-theme-text-primary, #000000)!important;background-size:unset!important;animation:simple-pulse 1s infinite ease-in-out!important;box-shadow:none!important}.uca-typing-dots:before{display:none}.uca-typing-text{color:var(--ds-theme-foreground-base-strong, #000000)!important}}@keyframes simple-pulse{0%,to{opacity:.4;transform:scale(.8)}50%{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.uca-typing-dots span{animation:none!important}.uca-typing-dots:before{animation:none!important}.uca-typing-text{animation:none!important}}.uca-screen-reader-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.uca-screen-reader-only:not(:focus):not(:active){position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}.uca-feedback-button-bar{display:flex;gap:2px;border:none;margin:0;padding:0}.uca-feedback-thumb-button{border:none;background:none;color:var(--ds-theme-background-base-neutral);padding:4px;border-radius:4px;cursor:pointer;stroke-width:1.5;stroke:var(--ds-theme-foreground-base-icon)}.uca-feedback-thumb-button:focus,.uca-feedback-thumb-button:focus-visible,.uca-feedback-thumb-button[data-fui-focus-visible]{outline:2px solid var(--ds-theme-border-accent-strong-normal, #0078d4);outline-offset:2px;box-shadow:0 0 0 2px var(--ds-theme-background-base-neutral, #ffffff),0 0 0 4px var(--ds-theme-border-accent-strong-normal, #0078d4)}.uca-feedback-thumb-button:hover,.uca-feedback-thumb-button.selected{color:var(--ds-theme-foreground-base-icon)}@media(forced-colors:active){.uca-feedback-thumb-button.selected path{fill:var(--ds-theme-foreground-base-icon)}}.uca-feedback-thumb-button.selected.disabled{color:var(--ds-theme-chat-feedback-thumb-disabled);stroke-width:1.5;stroke:var(--ds-theme-chat-feedback-thumb-disabled)}.uca-feedback-thumb-button.disabled{color:var(--ds-theme-background-base-neutral);stroke-width:1.5;stroke:var(--ds-theme-chat-feedback-thumb-disabled)}.uca-feedback-form{display:flex;flex-direction:column;gap:4px;position:relative;width:100%;padding:0 20px 20px}.uca-feedback-form-header{color:#373435;display:flex;flex-direction:column;font-family:var(--webchat__font--primary);font-size:14px;font-style:normal;font-weight:400;line-height:20px;padding:8px 0}.uca-feedback-form-textarea{background-color:#fff;border-radius:4px;border:1px solid #e8e8e8;font-size:14px;line-height:20px;padding:8px 12px;position:relative;width:100%;resize:none!important}.uca-feedback-form-textarea:after{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:3px solid var(--webchat__color--accent);bottom:-1px;clip-path:inset(calc(100% - 3px) 50% 0 50%);content:"";height:4px;left:-1px;position:absolute;right:-1px;transition:none}.uca-feedback-form-textarea:focus-within{border:1px solid #e8e8e8}.uca-feedback-form-textarea:focus-within:after{clip-path:inset(calc(100% - 3px) 0 0 0);transition:clip-path .2s cubic-bezier(0,0,0,1)}.uca-feedback-form-textarea::placeholder{color:#6c6c6c;opacity:1}[data-theme=dark] .uca-feedback-form-textarea::placeholder{color:#a0a0a0;opacity:1}.uca-feedback-form-textarea{resize:none;margin-inline-end:-8px}.uca-feedback-form-footer{font-style:normal;font-weight:400;line-height:14px}.feedback-form__submission-button-bar{display:flex;gap:8px;margin-block-start:6px}.uca-feedback-submit-button{background-color:var(--ds-theme-border-accent-strong-normal);border-radius:4px;border:1px solid var(--ds-theme-border-accent-strong-normal);color:var(--ds-theme-background-base-neutral);cursor:pointer;height:24px;padding:0 8px}.uca-feedback-submit-button:hover{background-color:var(--ds-theme-border-accent-subtle-hover);border:1px solid var(--ds-theme-border-accent-subtle-hover);color:var(--ds-theme-background-base-neutral)}.uca-feedback-submit-button:active{background-color:var(--ds-theme-border-accent-subtle-hover);border:1px solid var(--ds-theme-border-accent-subtle-selected);color:var(--ds-theme-background-base-neutral)}.uca-feedback-submit-button:focus,.uca-feedback-submit-button:focus-visible{outline:2px solid var(--ds-theme-border-accent-strong-normal, #0078d4);outline-offset:2px}.uca-feedback-cancel-button{background-color:var(--ds-theme-background-base-neutral);border-radius:4px;border:1px solid var(--ds-theme-background-neutral-color);cursor:pointer;height:24px;padding:0 8px}.uca-feedback-cancel-button:hover{background-color:var(--ds-theme-background-neutral-fade)}.uca-feedback-cancel-button:focus,.uca-feedback-cancel-button:focus-visible{outline:2px solid var(--ds-theme-border-accent-strong-normal, #0078d4);outline-offset:2px}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.uca-citations{margin:8px 16px;border:1px solid #e1e1e1;border-radius:6px;background-color:#fafafa;font-family:var(--uca-font-family-base);max-width:100%;overflow:hidden}[data-theme=dark] .uca-citations{border-color:#404040;background-color:#2a2a2a}@media(max-width:768px){.uca-citations{margin-left:12px;margin-right:12px}}@media(max-width:480px){.uca-citations{margin-left:8px;margin-right:8px}}.uca-citations-header{display:flex;align-items:center;padding:6px 12px;background:none;border:none;width:100%;text-align:left;cursor:pointer;font-family:inherit;font-size:inherit;border-bottom:1px solid #e1e1e1;transition:background-color .15s ease}@media(max-width:768px){.uca-citations-header{padding:5px 10px}}.uca-citations-header:hover{background-color:#f0f0f0}[data-theme=dark] .uca-citations-header{border-bottom-color:#404040}[data-theme=dark] .uca-citations-header:hover{background-color:#333}.uca-citations-header:focus{outline:2px solid #0078d4;outline-offset:-2px}.uca-citations-caret{margin-right:8px;font-size:.75rem;color:#616161;transition:transform .2s ease;-webkit-user-select:none;user-select:none}@media(max-width:768px){.uca-citations-caret{margin-right:6px;font-size:.7rem}}[data-theme=dark] .uca-citations-caret{color:#ccc}.uca-citations-title{font-weight:400;color:#616161;font-size:.75rem}@media(max-width:768px){.uca-citations-title{font-size:.7rem}}[data-theme=dark] .uca-citations-title{color:#ccc}.uca-citations-list{padding:8px 12px 10px;background-color:#fff}@media(max-width:768px){.uca-citations-list{padding:6px 10px 8px}}[data-theme=dark] .uca-citations-list{background-color:#2a2a2a}.uca-citation-item{display:flex;align-items:flex-start;margin-bottom:4px;gap:6px;line-height:1.3}@media(max-width:768px){.uca-citation-item{margin-bottom:3px;gap:5px}}.uca-citation-item:last-child{margin-bottom:0}.uca-citation-number{color:#616161;font-size:.75rem;font-weight:400;min-width:14px;text-align:left;margin-top:1px;-webkit-user-select:none;user-select:none;flex-shrink:0}@media(max-width:768px){.uca-citation-number{font-size:.7rem;min-width:12px}}[data-theme=dark] .uca-citation-number{color:#ccc}.uca-citation-link{color:#0063b1;text-decoration:none;cursor:pointer;font-size:.75rem;line-height:1.4;font-family:inherit;flex:1;word-wrap:break-word;overflow-wrap:break-word;display:inline-block}@media(max-width:768px){.uca-citation-link{font-size:.7rem;line-height:1.3}}.uca-citation-link:hover{text-decoration:underline;color:#106ebe}.uca-citation-link:focus{outline:2px solid #0078d4;outline-offset:1px;border-radius:2px}[data-theme=dark] .uca-citation-link{color:#4cc2ff}[data-theme=dark] .uca-citation-link:hover{color:#6ccbff}.uca-citation-text{color:#323130;font-size:.75rem;line-height:1.4;flex:1;word-wrap:break-word;overflow-wrap:break-word}@media(max-width:768px){.uca-citation-text{font-size:.7rem;line-height:1.3}}[data-theme=dark] .uca-citation-text{color:#fff}.uca-chat-suggested-actions{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;width:100%;gap:var(--ds-spacing-xs, .5rem);flex-wrap:wrap}.uca-chat-suggested-action-button{box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:var(--ds-spacing-2xs, .25rem);min-width:2rem;min-height:2rem;border:var(--ds-border-width-s, .125rem) solid var(--ds-theme-border-accent-subtle-normal, #2a446f);border-radius:var(--ds-radii-s, .5rem);font-size:var(--ds-action-button-font-size, .9375rem);font-weight:var(--ds-action-button-font-weight, 600);line-height:var(--ds-action-button-line-height, 1.375rem);letter-spacing:var(--ds-action-button-letter-spacing, -.02em);text-align:center;padding:var(--ds-spacing-2xs, .25rem) var(--ds-spacing-s, .75rem);background-color:transparent;color:var(--ds-theme-foreground-accent-subtle-normal, #2a446f);cursor:pointer}.uca-chat-suggested-action-button:hover{background-color:var(--ds-theme-background-base-neutral, #ffffff);border-color:var(--ds-theme-border-accent-subtle-hover, #263e65);color:var(--ds-theme-foreground-accent-subtle-hover, #263e65)}.uca-chat-suggested-action-button:disabled,.uca-chat-suggested-action-button:disabled:hover{opacity:.5;cursor:not-allowed;background-color:var(--ds-theme-background-base-fade, #f3f2f1);border-color:var(--ds-theme-drawer-text-muted-color, #8a8886);color:var(--ds-theme-drawer-text-muted-color, #8a8886)}.uca-chat-suggested-action-button:focus,.uca-chat-suggested-action-button:focus-visible{outline:var(--ds-border-width-s, .125rem) solid var(--ds-theme-border-accent-strong-normal, #0078d4);outline-offset:var(--ds-border-width-s, .125rem)}@media(forced-colors:active){.uca-chat-suggested-action-button{border:1px solid ButtonText;color:ButtonText;background:Canvas}}.uca-chat-message-agent .uca-chat-message-bubble{background-color:var(--ds-theme-background-base-neutral);font-size:var(--ds-body-s-font-size)}.uca-chat-message-agent .uca-chat-layout{display:flex;display:row}.uca__render-markdown__pure-identifier{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap}.uca__render-markdown__pure-identifier:before{content:"["}.uca__render-markdown__pure-identifier:after{content:"]"}.uca__render-markdown__citation{background:transparent;border:0;cursor:pointer;display:inline-block;font-family:unset;font-size:unset;overflow:hidden;padding:0;text-decoration:underline;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap}@media(forced-colors:active){.uca__render-markdown__citation{color:LinkText}}@media(forced-colors:none){.uca__render-markdown__citation{color:var(--ds-theme-background-accent-subtle-normal)}}.uca__render-markdown__external-link-icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIzIDMgMTggMTgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcuMjUwMSA0LjUwMDE3SDEwLjc0OTVDMTEuMTYzNyA0LjUwMDE3IDExLjQ5OTUgNC44MzU5NiAxMS40OTk1IDUuMjUwMTdDMTEuNDk5NSA1LjYyOTg2IDExLjIxNzMgNS45NDM2NiAxMC44NTEzIDUuOTkzMzJMMTAuNzQ5NSA2LjAwMDE3SDcuMjQ5NzRDNi4wNzA3OSA1Ljk5OTYxIDUuMTAzNDkgNi45MDY1NiA1LjAwNzg2IDguMDYxMTJMNS4wMDAyOCA4LjIyMDAzTDUuMDAzMTIgMTYuNzUwN0M1LjAwMzQzIDE3Ljk0MTUgNS45Mjg4NSAxOC45MTYxIDcuMDk5NjYgMTguOTk0OUw3LjI1MzcxIDE5LjAwMDFMMTUuNzUxOCAxOC45ODg0QzE2Ljk0MTUgMTguOTg2OCAxNy45MTQ1IDE4LjA2MiAxNy45OTM1IDE2Ljg5MjNMMTcuOTk4NyAxNi43Mzg0VjEzLjIzMjFDMTcuOTk4NyAxMi44MTc5IDE4LjMzNDUgMTIuNDgyMSAxOC43NDg3IDEyLjQ4MjFDMTkuMTI4NCAxMi40ODIxIDE5LjQ0MjIgMTIuNzY0MyAxOS40OTE4IDEzLjEzMDNMMTkuNDk4NyAxMy4yMzIxVjE2LjczODRDMTkuNDk4NyAxOC43NDA3IDE3LjkyOTMgMjAuMzc2OSAxNS45NTI4IDIwLjQ4MjlMMTUuNzUzOCAyMC40ODg0TDcuMjU4MjcgMjAuNTAwMUw3LjA1NDk1IDIwLjQ5NDlDNS4xNDIzOSAyMC4zOTU0IDMuNjA4OTUgMTguODYyNyAzLjUwODM3IDE2Ljk1MDJMMy41MDMxMiAxNi43NTExTDMuNTAwODkgOC4yNTI3TDMuNTA1MjkgOC4wNTAyQzMuNjA1MzkgNi4xMzc0OSA1LjEzODY3IDQuNjA0NDkgNy4wNTA5NiA0LjUwNTI3TDcuMjUwMSA0LjUwMDE3SDEwLjc0OTVINy4yNTAxWk0xMy43NDgxIDMuMDAxNDZMMjAuMzAxOCAzLjAwMTk3TDIwLjQwMTQgMy4wMTU3NUwyMC41MDIyIDMuMDQzOTNMMjAuNTU5IDMuMDY4MDNDMjAuNjEyMiAzLjA5MTIyIDIwLjY2MzQgMy4xMjE2MyAyMC43MTExIDMuMTU4ODVMMjAuNzgwNCAzLjIyMTU2TDIwLjg2NDEgMy4zMjAxNEwyMC45MTgzIDMuNDEwMjVMMjAuOTU3IDMuNTAwNTdMMjAuOTc2MiAzLjU2NDc2TDIwLjk4OTggMy42Mjg2MkwyMC45OTkyIDMuNzIyODJMMjAuOTk5NyAxMC4yNTU0QzIwLjk5OTcgMTAuNjY5NiAyMC42NjM5IDExLjAwNTQgMjAuMjQ5NyAxMS4wMDU0QzE5Ljg3IDExLjAwNTQgMTkuNTU2MiAxMC43MjMyIDE5LjUwNjUgMTAuMzU3MUwxOS40OTk3IDEwLjI1NTRMMTkuNDk4OSA1LjU2MTQ3TDEyLjI3OTcgMTIuNzg0N0MxMi4wMTM0IDEzLjA1MSAxMS41OTY4IDEzLjA3NTMgMTEuMzAzMSAxMi44NTc1TDExLjIxOSAxMi43ODQ5QzEwLjk1MjcgMTIuNTE4NyAxMC45Mjg0IDEyLjEwMjEgMTEuMTQ2MiAxMS44MDg0TDExLjIxODggMTEuNzI0M0wxOC40MzY5IDQuNTAxNDZIMTMuNzQ4MUMxMy4zNjg0IDQuNTAxNDYgMTMuMDU0NiA0LjIxOTMxIDEzLjAwNSAzLjg1MzI0TDEyLjk5ODEgMy43NTE0NkMxMi45OTgxIDMuMzcxNzcgMTMuMjgwMyAzLjA1Nzk3IDEzLjY0NjQgMy4wMDgzMUwxMy43NDgxIDMuMDAxNDZaIiBmaWxsPSIjMjEyMTIxIiAvPjwvc3ZnPg==);height:.75em;margin-left:.25em}@media(forced-colors:active)and (prefers-color-scheme:dark){.uca__render-markdown__external-link-icon{filter:invert(1)}}article.uca-dbg .uca-chat-message-bubble{background-color:#ffffe0}article.uca-dbg .uca-chat-layout{justify-content:center}article.uca-dbg .uca-chat-message-content{text-align:center}.uca-dbg-copy-btn{background:none;border:1px solid #ccc;border-radius:4px;cursor:pointer;font-size:.75em;margin-left:4px;padding:1px 4px;vertical-align:middle}.uca-dbg-copy-btn:hover{background-color:#0000000d}.uca-message-banner-container{display:flex;flex-direction:column;gap:8px;z-index:10}.uca-message-banner{margin:8px 0;animation:uca-message-banner-slide-in .3s ease-out}.uca-message-banner--error{background-color:var(--ds-theme-chat-error-background);color:var(--ds-theme-chat-error-color)}.uca-message-banner--warn{background-color:var(--ds-theme-chat-warn-background);color:var(--ds-theme-chat-warn-color)}.uca-message-banner--info{background-color:var(--ds-theme-chat-info-background);color:var(--ds-theme-chat-info-color)}.uca-message-banner--success{background-color:var(--ds-theme-chat-success-background);color:var(--ds-theme-chat-success-color)}.uca-message-banner__content{display:flex;align-items:center;padding:12px 16px;gap:8px}.uca-message-banner__message{flex:1;font-size:14px;line-height:1.4;margin:0}.uca-message-banner__dismiss{background:none;border:none;cursor:pointer;padding:4px;border-radius:4px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.uca-message-banner__dismiss:focus,.uca-message-banner__dismiss:focus-visible{outline:2px solid var(--ds-theme-border-accent-strong-normal, #0078d4);outline-offset:2px}.uca-message-banner__dismiss svg{width:16px;height:16px}@keyframes uca-message-banner-slide-in{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.uca-proactive-prompts-overlay{position:static;pointer-events:none}.uca-proactive-prompts{display:flex;flex-direction:column;gap:var(--ds-radii-xs);padding:var(--ds-spacing-2xs) var(--ds-spacing-xs);max-width:100%;margin-left:auto;align-items:flex-end;pointer-events:auto;animation:proactive-slide-up .3s ease-out}@keyframes proactive-slide-up{0%{opacity:0;transform:translateY(var(--ds-spacing-l))}to{opacity:1;transform:translateY(0)}}.uca-proactive-prompts__grid{display:flex;flex-direction:column;gap:var(--ds-radii-xs);align-items:flex-end;max-width:100%}.uca-proactive-prompts__button{background:var(--colorNeutralBackground1);border:var(--ds-border-width-s) solid var(--ds-color-dark-blue-600);border-radius:var(--ds-radii-l);padding:var(--ds-spacing-2xs) var(--ds-spacing-s);cursor:pointer;text-align:center;min-height:unset;display:flex;align-items:center;justify-content:flex-end;position:relative;overflow:hidden;font-size:var(--ds-body-s-font-size);max-width:100%}.uca-proactive-prompts__button:focus-visible{outline:var(--ds-border-width-s) solid var(--colorBrandBackground);outline-offset:var(--ds-border-width-s)}.uca-proactive-prompts__button-text{font-size:var(--ds-body-s-font-size);font-weight:var(--ds-action-button-font-weight);line-height:var(--ds-body-s-line-height);color:var(--ds-color-dark-blue-600);text-align:right}@media(min-width:768px){.uca-proactive-prompts{padding:var(--ds-spacing-2xs) var(--ds-spacing-xs)}.uca-proactive-prompts__grid{flex-direction:column;gap:var(--ds-radii-xs);align-items:flex-end;max-width:100%}.uca-proactive-prompts__button{min-height:unset;padding:var(--ds-spacing-2xs) var(--ds-spacing-s);max-width:fit-content}.uca-proactive-prompts__button-text{font-size:var(--ds-body-xs-font-size)}}.uca-proactive-prompts__button{animation:fadeInUp .6s ease forwards;transform:translateY(20px)}.uca-proactive-prompts__button:nth-child(1){animation-delay:.1s}.uca-proactive-prompts__button:nth-child(2){animation-delay:.2s}.uca-proactive-prompts__button:nth-child(3){animation-delay:.3s}@keyframes fadeInUp{0%{transform:translateY(var(--ds-spacing-l))}to{transform:translateY(0)}}@media(prefers-contrast:high){.uca-proactive-prompts__button{border-width:var(--ds-border-width-s)}}@media(prefers-reduced-motion:reduce){.uca-proactive-prompts__button{animation:none;transform:none}}.uca-streaming-cursor:after{content:"▎";display:inline;animation:uca-cursor-blink 1s step-end infinite;color:var(--ds-theme-text-primary, #333);font-weight:700}@keyframes uca-cursor-blink{0%,to{opacity:1}50%{opacity:0}}.uca-streaming-bubble{transition:min-height .2s ease-out}@media(forced-colors:active){.uca-streaming-cursor:after{color:ButtonText!important}}@media(prefers-reduced-motion:reduce){.uca-streaming-cursor:after{animation:none!important;opacity:1}.uca-streaming-bubble{transition:none!important}}uca-code-block{position:relative;display:block;margin:var(--ds-spacing-xs) 0;background:var(--ds-theme-background-card-normal);border-radius:4px;overflow:hidden}uca-code-block[language]:before{content:attr(language);display:block;padding:var(--ds-spacing-2xs) var(--ds-spacing-s);font-size:.75rem;font-weight:600;line-height:1rem;color:var(--ds-theme-foreground-base-secondary);background:var(--ds-theme-background-neutral-fade);text-transform:uppercase}uca-code-block:not([language]):before{display:none}uca-code-block>code{display:block;padding:var(--ds-spacing-xs) var(--ds-spacing-l);font-size:.875rem;line-height:1.4;color:var(--ds-theme-foreground-base-default);white-space:pre-wrap;word-break:break-word}#unified-chat-assistant .uca-terms-and-conditions{display:flex;flex-direction:column;padding-block:var(--ds-spacing-xs, 12px);padding-inline:var(--ds-spacing-m, 16px);text-align:center}#unified-chat-assistant .uca-terms-and-conditions__disclaimer{margin:0;font-family:var(--ds-body-xs-font-family, inherit);font-size:var(--ds-body-xs-font-size, 12px);line-height:var(--ds-body-xs-line-height, 16px);font-weight:var(--ds-body-xs-font-weight, 400);color:var(--ds-color-vapor-gray-800, #616262)}#unified-chat-assistant .uca-terms-and-conditions__links{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--ds-spacing-s, 12px);margin:0;padding:0;list-style:none}#unified-chat-assistant .uca-terms-and-conditions__item{margin:0;padding:0}#unified-chat-assistant .uca-terms-and-conditions__item:not(:first-child):before{content:"|";margin-inline-end:var(--ds-spacing-s, 12px);color:var(--ds-theme-border-neutral-fade, #d1d5db)}#unified-chat-assistant .uca-terms-and-conditions__link{font-family:var(--ds-body-xs-font-family, inherit);font-size:var(--ds-body-xs-font-size, 12px);line-height:var(--ds-body-xs-line-height, 16px);font-weight:var(--ds-body-xs-font-weight, 400);color:var(--ds-color-brilliant-blue-600, #006dc1);text-decoration:none;border-radius:var(--ds-corner-radius-s, 4px)}[data-theme=dark] #unified-chat-assistant .uca-terms-and-conditions__link{color:#4cc2ff}#unified-chat-assistant .uca-terms-and-conditions__link:hover{text-decoration:underline}#unified-chat-assistant .uca-terms-and-conditions__link:focus-visible{outline:var(--ds-border-width-s, 2px) solid var(--ds-theme-border-accent-strong-normal, #0078d4);outline-offset:var(--ds-spacing-2xs, 4px)}@media(forced-colors:active){#unified-chat-assistant .uca-terms-and-conditions__link{color:LinkText}#unified-chat-assistant .uca-terms-and-conditions__link:focus-visible{outline-color:LinkText}}@media(prefers-reduced-motion:reduce){#unified-chat-assistant .uca-terms-and-conditions__link{transition:none}}.uca-chat-message{font-size:var(--ds-body-s-font-size, 14px)}.uca-chat-message-user .uca-chat-layout{display:flex;flex-direction:row-reverse}.uca-chat-message-bubble{margin:8px 0;border:1px solid;border-radius:var(--ds-radii-m, 6px);border-color:var(--ds-theme-border-base-fade, #dee2e6);overflow:hidden}.uca-chat-message-user .uca-chat-message-bubble{flex-direction:row-reverse;background-color:var(--ds-theme-background-base-color, #f0f2f5)}.uca-chat-message-content{padding:16px 24px}.uca-chat-message-content>:first-child:not(:only-child){padding-bottom:16px}.uca-chat-message-timestamp{display:flex;justify-content:flex-start;align-items:flex-start;width:100%}.uca-chat-message-timestamp small{display:flex;align-items:center;color:var(--ds-theme-chat-timestamp-color, #6c757d);font-weight:var(--ds-body-xs-font-weight, 400);font-size:10px;line-height:14px;letter-spacing:normal;margin-bottom:0}.uca-chat-message-user .uca-chat-message-timestamp{justify-content:flex-end}.uca-chat-message>.uca-chat-layout+.uca-chat-layout>.uca-chat-message-timestamp{margin-top:calc(var(--ds-spacing-2xs, 4px) * -1)}.uca-chat-message-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;font-size:inherit;font-weight:inherit;line-height:inherit}@media(hover:none)and (pointer:coarse)and (any-hover:none)and (any-pointer:coarse)and (max-width:768px)and (max-device-width:1100px),(hover:none)and (pointer:coarse)and (any-hover:none)and (any-pointer:coarse)and (orientation:landscape)and (max-width:1100px)and (max-height:539.98px)and (max-device-width:1100px){#unified-chat-assistant .uca-chat-message-bubble{margin-block:var(--ds-spacing-2xs, 4px)}#unified-chat-assistant .uca-chat-message>.uca-chat-layout+.uca-chat-layout>.uca-chat-message-timestamp{margin-top:0}#unified-chat-assistant .uca-chat-message-content{padding:var(--ds-spacing-s, 12px)}#unified-chat-assistant .uca-chat-message-content>:first-child:not(:only-child){padding-bottom:var(--ds-spacing-xs, 8px)}}.uca-divider{border:0;margin:0;border-style:solid;border-top-width:var(--ds-border-width-xs);border-color:var(--ds-theme-border-base-fade)}@media(hover:none)and (pointer:coarse)and (any-hover:none)and (any-pointer:coarse)and (max-width:768px)and (max-device-width:1100px),(hover:none)and (pointer:coarse)and (any-hover:none)and (any-pointer:coarse)and (orientation:landscape)and (max-width:1100px)and (max-height:539.98px)and (max-device-width:1100px){#unified-chat-assistant .uca-divider{flex-shrink:0}}.uca-voice-activity{position:absolute;left:16px;right:16px;bottom:16px;isolation:isolate;overflow:hidden;height:56px;padding:8px 14px;border-radius:var(--ds-radii-s);border:1px solid var(--ds-theme-border-base-fade);background-color:var(--ds-theme-background-base-neutral);color:var(--ds-theme-drawer-text-color);transition:border-color .4s ease;animation:voicePanelIn .35s ease forwards}@keyframes voicePanelIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.uca-voice-activity.leaving{opacity:0;transform:translateY(8px);transition:opacity .25s ease,transform .25s ease}.uca-voice-activity>*{position:relative;z-index:1}.uca-voice-center{position:absolute;left:14px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;min-width:0;max-width:45%}.uca-voice-activity-label{color:var(--ds-theme-drawer-text-color);font-weight:600;font-size:var(--ds-body-xs-font-size);line-height:var(--ds-body-xs-line-height);transition:color .3s ease}.uca-voice-bars-container{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:inline-flex;align-items:center;justify-content:center;gap:3px;height:24px;width:100%;opacity:1;transition:opacity .3s ease}.uca-voice-bars-container i{display:inline-block;width:4px;height:100%;border-radius:999px;transform-origin:50% 50%;transform:scaleY(.2);background:linear-gradient(45deg,#d63031,#00b894,#0984e3,#00a085,#fdcb6e,#e84393,#e17055,#6c5ce7);background-size:300% 300%;animation:rainbow-colors 3s infinite linear;transition:width .4s ease,height .4s ease,border-radius .4s ease}.uca-voice-activity.state-thinking .uca-voice-bars-container{gap:6px;height:8px;width:auto}.uca-voice-activity.state-thinking .uca-voice-bars-container i{height:8px;transform:scale(1);animation:rainbow-pulse 2s infinite ease-in-out,rainbow-colors 3s infinite linear;box-shadow:0 2px 8px #00000026}.uca-voice-activity.state-thinking .uca-voice-bars-container i:nth-child(1),.uca-voice-activity.state-thinking .uca-voice-bars-container i:nth-child(3),.uca-voice-activity.state-thinking .uca-voice-bars-container i:nth-child(5){width:8px;height:8px;border-radius:50%}.uca-voice-activity.state-thinking .uca-voice-bars-container i:nth-child(2),.uca-voice-activity.state-thinking .uca-voice-bars-container i:nth-child(4){width:16px;height:8px;border-radius:4px}.uca-voice-activity.state-thinking .uca-voice-bars-container i:nth-child(1){animation-delay:-.8s,0s}.uca-voice-activity.state-thinking .uca-voice-bars-container i:nth-child(2){animation-delay:-.6s,-.6s}.uca-voice-activity.state-thinking .uca-voice-bars-container i:nth-child(3){animation-delay:-.4s,-1.2s}.uca-voice-activity.state-thinking .uca-voice-bars-container i:nth-child(4){animation-delay:-.2s,-1.8s}.uca-voice-activity.state-thinking .uca-voice-bars-container i:nth-child(5){animation-delay:0s,-2.4s}.uca-voice-activity.state-speaking .uca-voice-bars-container{opacity:0;transition:opacity .3s ease}.uca-glow-layer{position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;background-color:transparent;transition:box-shadow 90ms linear}.uca-voice-activity-stop{position:absolute;top:50%;right:14px;transform:translateY(-50%);border:1px solid var(--ds-theme-border-base-fade);background-color:var(--ds-theme-background-base-fade);color:var(--ds-theme-drawer-text-color);border-radius:var(--ds-radii-s);height:28px;padding:0 10px;font-size:var(--ds-body-xs-font-size);font-weight:600;cursor:pointer;z-index:1}.uca-voice-activity-stop:hover{border-color:var(--ds-theme-border-accent-strong-normal, #0078d4)}@keyframes rainbow-colors{0%{background-position:0% 50%}25%{background-position:50% 0%}50%{background-position:100% 50%}75%{background-position:50% 100%}to{background-position:0% 50%}}@keyframes rainbow-pulse{0%,60%,to{opacity:.6;transform:scale(.85)}30%{opacity:1;transform:scale(1.1)}}@media(prefers-reduced-motion:reduce){.uca-voice-activity{animation:none}.uca-voice-bars-container i{animation:none!important}}.uca-footer{font-family:Segoe UI,sans-serif;align-items:center;padding:16px;line-height:24px;box-shadow:var(--ds-elevation-level-4);text-align:start;border:1px solid;border-color:var(--ds-theme-border-base-fade);border-bottom-left-radius:var(--ds-radii-s);border-bottom-right-radius:var(--ds-radii-s);background-color:var(--ds-theme-background-base-fade);position:relative;z-index:1040}.uca-footer-status{display:flex;flex-direction:row;font-weight:var(--ds-body-xs-font-weight);font-size:var(--ds-body-xs-font-size);line-height:var(--ds-body-xs-line-height);letter-spacing:var(--ds-body-xs-letter-spacing);margin-bottom:6px}.uca-footer-lp-status{justify-content:flex-end}.uca-footer-quotex-status{justify-content:space-between;align-items:center}.uca-footer-quotex-status .uca-footer-lp-link{margin-inline-start:auto}.uca-footer-lp-text{margin-right:6px;color:var(--ds-theme-drawer-text-color)}.uca-footer-lp-link{color:#0063b1;text-decoration:underline;cursor:pointer;background:none;border:none;font-family:inherit;font-size:inherit;padding:0;margin:0}.uca-footer-lp-link:hover{text-decoration:underline;color:#106ebe}.uca-footer-lp-link:focus{outline:2px solid #0078d4;outline-offset:1px;border-radius:2px;text-decoration:underline}[data-theme=dark] .uca-footer-lp-link{color:#4cc2ff}[data-theme=dark] .uca-footer-lp-link:hover{color:#87cefa}.uca-footer-lp-link:disabled{color:var(--ds-theme-drawer-text-muted-color, #999);cursor:default;text-decoration:none}.uca-send-box{display:flex;background-color:var(--ds-theme-background-card-normal);border:1px solid var(--ds-theme-border-base-fade);position:relative;border-radius:var(--ds-radii-s);box-shadow:0 2px 4px #00000024,0 0 2px #0000001f;overflow:hidden;min-height:64px;opacity:1;transition:opacity .25s ease}.uca-footer.voice-mode-active .uca-send-box{opacity:0;pointer-events:none}.uca-send-box:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#0a86c4 .65%,#71ede8 100.65%)}.uca-text-box{padding:10px;flex-grow:1}.uca-send-box-form{-webkit-box-align:center;align-items:center;font-family:inherit;padding:10px 0;position:relative;display:flex;flex-grow:1}.uca-send-box-textarea{color:var(--ds-theme-drawer-text-color);background-color:var(--ds-theme-background-card-normal);appearance:none;border:0px;height:100%;margin:0;outline:0px;overflow-y:auto;padding:10px;resize:none!important;width:100%;word-break:break-word;font-family:inherit;font-size:inherit}.uca-send-box-textarea:focus{outline:none!important}@media(hover:none)and (pointer:coarse)and (any-hover:none)and (any-pointer:coarse)and (max-width:768px)and (max-device-width:1100px),(hover:none)and (pointer:coarse)and (any-hover:none)and (any-pointer:coarse)and (orientation:landscape)and (max-width:1100px)and (max-height:539.98px)and (max-device-width:1100px){#unified-chat-assistant .uca-footer{flex-shrink:0;padding:var(--ds-spacing-xs, 8px) var(--ds-spacing-s, 12px)}#unified-chat-assistant .uca-footer-status{inline-size:100%;align-items:center;margin-bottom:var(--ds-spacing-2xs, 4px)}#unified-chat-assistant .uca-footer-lp-status,#unified-chat-assistant .uca-footer-quotex-status{justify-content:flex-end}#unified-chat-assistant .uca-footer-lp-link{display:inline-flex;align-items:center;justify-content:center;min-block-size:max(calc(var(--ds-spacing-xs, 8px) * 6),48px);min-inline-size:max(calc(var(--ds-spacing-xs, 8px) * 6),48px);padding-inline:var(--ds-spacing-s, 12px);font-weight:var(--ds-action-button-font-weight, 600);font-size:max(var(--ds-body-m-font-size, 16px),16px);line-height:var(--ds-body-m-line-height, 24px);letter-spacing:var(--ds-body-m-letter-spacing, -.03em)}#unified-chat-assistant .uca-send-box{min-height:calc(var(--ds-spacing-xs, 8px) * 7)}#unified-chat-assistant .uca-send-box-form{padding-block:var(--ds-spacing-2xs, 4px)}#unified-chat-assistant .uca-send-box-textarea{font-family:Segoe UI,SegoeUI,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:max(var(--ds-body-m-font-size, 16px),16px);padding:var(--ds-spacing-xs, 8px);transform:translateZ(0)}#unified-chat-assistant .uca-send-box-textarea::placeholder{font-size:var(--ds-body-s-font-size, 14px)}#unified-chat-assistant .uca-send-box-textarea{min-width:0}#unified-chat-assistant .uca-send-box-button{width:max(calc(var(--ds-spacing-xs, 8px) * 6),48px);min-block-size:max(calc(var(--ds-spacing-xs, 8px) * 6),48px);flex-shrink:0;display:flex;align-items:center;justify-content:center}}.uca-send-box-textarea::placeholder{color:#6c6c6c;opacity:1}[data-theme=dark] .uca-send-box-textarea::placeholder{color:#a0a0a0;opacity:1}.uca-send-box-textarea:disabled{opacity:.6;cursor:not-allowed;color:var(--ds-theme-drawer-text-muted-color, #888)}.uca-send-box-button{background-color:transparent;border:0px;fill:var(--theme-foreground-accent-subtle-normal);width:64px;cursor:pointer}.uca-send-box-button:disabled{opacity:.6;cursor:not-allowed}.uca-send-box-button:disabled svg path{fill:var(--ds-theme-foreground-base-subtle, #666)}.uca-send-box-button:focus,.uca-send-box-button:focus-visible{outline:2px solid var(--ds-theme-border-accent-strong-normal, #0078d4);outline-offset:2px;border-radius:4px}.uca-footer-disclaimer{display:block;text-align:end;color:var(--ds-theme-drawer-disclaimer-color)}.uca-header{font-family:Segoe UI,sans-serif;display:flex;justify-content:space-between;flex-wrap:nowrap;align-items:center;inset-inline-end:1rem;padding:16px;box-shadow:var(--ds-elevation-level-4);text-align:start;border:1px solid;border-color:var(--ds-theme-border-base-fade);border-top-left-radius:var(--ds-radii-s);border-top-right-radius:var(--ds-radii-s);border-bottom:0;background-color:var(--ds-theme-background-base-neutral);cursor:pointer;letter-spacing:var(--ds-body-m-letter-spacing);z-index:1040}@media(hover:none)and (pointer:coarse)and (any-hover:none)and (any-pointer:coarse)and (max-width:768px)and (max-device-width:1100px),(hover:none)and (pointer:coarse)and (any-hover:none)and (any-pointer:coarse)and (orientation:landscape)and (max-width:1100px)and (max-height:539.98px)and (max-device-width:1100px){#unified-chat-assistant .uca-header{flex-shrink:0;padding:var(--ds-spacing-2xs, 4px) var(--ds-spacing-s, 12px)}#unified-chat-assistant .uca-header-text{column-gap:var(--ds-spacing-xs, 8px)}#unified-chat-assistant .uca-ai-icon-container{padding:var(--ds-spacing-2xs, 4px) var(--ds-spacing-xs, 8px)}#unified-chat-assistant .uca-header-chat-button__icon{display:flex;align-items:center;justify-content:center;min-inline-size:max(calc(var(--ds-spacing-xs, 8px) * 6),48px);min-block-size:max(calc(var(--ds-spacing-xs, 8px) * 6),48px)}#unified-chat-assistant .uca-close-icon{padding:0}}.uca-header-text{display:flex;flex-direction:row;align-items:center;column-gap:12px}.uca-header-controls{display:flex}.uca-chat-icon{display:flex;width:24px;max-width:24px;max-height:24px;font-size:24px}.uca-ai-icon-container{align-items:center;background-color:var(--ds-theme-background-base-neutral);border:1px solid;border-color:var(--ds-theme-border-base-fade);border-radius:var(--ds-radii-s);padding:8px 10px}.uca-ai-icon{display:block;height:24px;overflow-clip-margin:content-box;overflow:clip}.uca-chat-button__text{display:flex;flex-direction:column;justify-content:center;text-align:start;margin-inline-start:12px}.uca-chat-header-content small{font-weight:var(--ds-body-xs-font-weight);font-size:var(--ds-body-xs-font-size);line-height:var(--ds-body-xs-line-height);letter-spacing:var(--ds-body-xs-letter-spacing);margin-top:4px!important;margin-bottom:0;color:var(--ds-theme-foreground-accent-subtle-normal)}#unified-chat-assistant .uca-header h2.uca-title{font-weight:var(--ds-heading-xs-font-weight);font-size:var(--ds-heading-xs-font-size);line-height:var(--ds-heading-xs-line-height);letter-spacing:var(--ds-heading-xs-letter-spacing);margin-bottom:0;color:var(--ds-theme-drawer-button-color)}.uca-header-chat-button__icon{align-items:center;cursor:pointer}.uca-close-icon{cursor:pointer;padding:6px 8px}.glyph-close svg{fill:var(--ds-theme-foreground-base-icon);color:var(--ds-theme-foreground-base-icon)}.uca-assistant{height:100%;display:flex;flex-direction:column}.uca-assistant-content{flex-grow:1}@media(hover:none)and (pointer:coarse)and (any-hover:none)and (any-pointer:coarse)and (max-width:768px)and (max-device-width:1100px),(hover:none)and (pointer:coarse)and (any-hover:none)and (any-pointer:coarse)and (orientation:landscape)and (max-width:1100px)and (max-height:539.98px)and (max-device-width:1100px){#unified-chat-assistant .uca-assistant,#unified-chat-assistant .uca-assistant-content{min-height:0}}.uca-assistant-drawer-panel{top:0;right:0;height:100%;display:flex;position:fixed;z-index:1032;flex-direction:column;transform:translate(100%);will-change:transform,opacity;transition:transform .24s ease-in-out,opacity .24s ease-in-out;opacity:0;pointer-events:none;z-index:4000001}@media(hover:none)and (pointer:coarse)and (any-hover:none)and (any-pointer:coarse)and (max-width:768px)and (max-device-width:1100px),(hover:none)and (pointer:coarse)and (any-hover:none)and (any-pointer:coarse)and (orientation:landscape)and (max-width:1100px)and (max-height:539.98px)and (max-device-width:1100px){#unified-chat-assistant .uca-assistant-drawer-panel{top:var(--uca-visual-viewport-offset-top, 0);height:var(--uca-visual-viewport-height, 100%);overscroll-behavior:none}#unified-chat-assistant .uca-assistant-drawer-panel:after{content:"";position:absolute;inset-block-start:100%;inset-inline:0;block-size:var(--uca-visual-viewport-bottom-cover, 0);background-color:var(--ds-theme-background-base-fade, #f5fafd);pointer-events:none}@supports (height: 100dvh){#unified-chat-assistant .uca-assistant-drawer-panel{height:var(--uca-visual-viewport-height, 100dvh)}}}.uca-assistant-drawer-panel.open{transform:translate(0);opacity:1;pointer-events:auto}@media(prefers-reduced-motion:reduce){.uca-assistant-drawer-panel{transition:none}}@media(min-width:540px){.uca-assistant-drawer-panel{width:var(--ai-chat-drawer-width, 360px)}}@media(min-width:1440px){.uca-assistant-drawer-panel{width:var(--ai-chat-drawer-width, 432px)}}@media(max-width:539.98px),(hover:none)and (pointer:coarse)and (any-hover:none)and (any-pointer:coarse)and (orientation:landscape)and (max-width:1100px)and (max-height:539.98px)and (max-device-width:1100px){.uca-assistant-drawer-panel{width:100%}}@media screen and (max-height:199.9px){.uca-assistant-drawer-panel{display:none}}.uca-assistant-sidecar-panel{top:0;right:0;height:100%;display:flex;position:fixed;z-index:1032;flex-direction:column;z-index:4000001}.uca-assistant{flex-grow:1}@media(min-width:540px){.uca-assistant-sidecar-panel{width:var(--ai-chat-drawer-width, 360px)}}@media(min-width:1440px){.uca-assistant-sidecar-panel{width:var(--ai-chat-drawer-width, 432px)}}@media screen and (max-height:199.9px){.uca-assistant-sidecar-panel{display:none}}.uca-persistent-bottom-banner{position:fixed;z-index:1040;display:none;justify-content:center;padding:0;box-shadow:var(--ds-elevation-level-4);animation:uca-persistent-bottom-banner-slide-in .44s cubic-bezier(.34,1.2,.4,1) both;will-change:transform,opacity}.uca-persistent-bottom-banner--exiting{animation:uca-persistent-bottom-banner-slide-out .44s cubic-bezier(.5,0,.9,.35) both;pointer-events:none}@keyframes uca-persistent-bottom-banner-slide-in{0%{transform:translateY(100%)}70%{transform:translateY(-8px)}to{transform:translateY(0)}}@keyframes uca-persistent-bottom-banner-slide-out{0%{transform:translateY(0);opacity:1;animation-timing-function:ease-out}40%{transform:translateY(-8px);opacity:1;animation-timing-function:cubic-bezier(.55,0,.85,.3)}to{transform:translateY(100%);opacity:0}}@media(prefers-reduced-motion:reduce){.uca-persistent-bottom-banner,.uca-persistent-bottom-banner--exiting{animation-duration:1ms}}.uca-persistent-bottom-banner__stack{width:100%;display:flex;flex-direction:column;align-items:stretch;gap:0}.uca-persistent-bottom-banner__brand{flex:0 0 auto;display:flex;align-items:center;justify-content:flex-start;gap:var(--ds-spacing-xs, .5rem);padding:var(--ds-spacing-m, 1rem) var(--ds-spacing-m, 1rem) 0}.uca-persistent-bottom-banner__content{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:var(--ds-spacing-xs);padding:var(--ds-spacing-m)}.uca-persistent-bottom-banner__inner{position:relative;width:100%;display:flex;align-items:center;gap:var(--ds-spacing-s);padding:var(--ds-spacing-xs) var(--ds-spacing-s);background-color:var(--ds-theme-background-base-neutral);border:var(--ds-border-width-xs) solid var(--ds-theme-border-base-fade);border-radius:var(--ds-radii-s, 4px);box-shadow:var(--ds-elevation-level-4);overflow:hidden}.uca-persistent-bottom-banner__inner:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--ds-theme-foreground-special-ai-gradient);pointer-events:none}.uca-persistent-bottom-banner__prompts{display:flex;flex-wrap:wrap;gap:var(--ds-spacing-xs, .5rem)}#unified-chat-assistant .uca-persistent-bottom-banner__prompt{display:inline-flex;align-items:center;justify-content:center;padding:var(--ds-spacing-2xs, .25rem) var(--ds-spacing-xs, .5rem);background-color:var( --ds-theme-chat-suggested-action-background, #ffffff );color:var(--ds-theme-chat-suggested-action-color, #0067b8);border:var(--ds-border-width-xs, .0625rem) solid var(--ds-theme-chat-suggested-action-border, #0067b8);border-radius:var(--ds-radii-s, .5rem);cursor:pointer;font-family:inherit;font-size:var(--ds-label-s-font-size, .75rem);font-weight:var(--ds-label-s-font-weight, 600);line-height:var(--ds-label-s-line-height, 1rem);letter-spacing:var(--ds-label-s-letter-spacing, 0)}#unified-chat-assistant .uca-persistent-bottom-banner__prompt:hover{background-color:var( --ds-theme-chat-suggested-action-background-hover, #e6f2fb );color:var(--ds-theme-chat-suggested-action-color-hover, #004578);border-color:var( --ds-theme-chat-suggested-action-border-hover, #004578 )}#unified-chat-assistant .uca-persistent-bottom-banner__prompt:focus-visible{outline:var(--ds-border-width-s, .125rem) solid var(--ds-theme-border-accent-strong-normal, #0078d4);outline-offset:var(--ds-border-width-s, .125rem)}@media(forced-colors:active){#unified-chat-assistant .uca-persistent-bottom-banner__prompt{border-color:ButtonText}#unified-chat-assistant .uca-persistent-bottom-banner__prompt:focus-visible{outline-color:Highlight}}.uca-persistent-bottom-banner__icon{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:var(--ds-spacing-xl, 1.5rem);height:var(--ds-spacing-xl, 1.5rem);color:var(--ds-theme-foreground-base-icon, #0078d4)}.uca-persistent-bottom-banner__icon svg{width:var(--ds-spacing-xl, 1.5rem);height:var(--ds-spacing-xl, 1.5rem);display:block}.uca-persistent-bottom-banner__label{flex:0 0 auto;font-weight:var(--ds-heading-2xs-font-weight, 600);font-size:var(--ds-heading-xs-font-size, 20px);line-height:var(--ds-heading-xs-line-height, 28px);letter-spacing:var(--ds-heading-xs-letter-spacing, 0);color:var(--ds-theme-foreground-base-strong, #0e1726);white-space:nowrap}.uca-persistent-bottom-banner__input{flex:1 1 auto;min-width:0;background:transparent;border:0;outline:0;padding:var(--ds-spacing-xs) 0;font-family:inherit;font-size:var(--ds-label-l-font-size, 1rem);font-weight:var(--ds-label-l-font-weight, 600);line-height:var(--ds-label-l-line-height, 1.5rem);letter-spacing:var(--ds-label-l-letter-spacing, 0);color:var(--ds-theme-text-primary)}.uca-persistent-bottom-banner__input::placeholder{color:var(--ds-theme-text-muted);opacity:1}.uca-persistent-bottom-banner__input:focus-visible{outline:var(--ds-border-width-s) solid var(--ds-theme-foreground-base-icon);outline-offset:2px;border-radius:var(--ds-radii-s)}.uca-persistent-bottom-banner__send{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:999px;background:transparent;color:var(--ds-theme-foreground-base-icon);cursor:pointer}.uca-persistent-bottom-banner__send:hover{background-color:var(--ds-theme-background-base-fade)}.uca-persistent-bottom-banner__send:focus-visible{outline:var(--ds-border-width-s) solid var(--ds-theme-foreground-base-icon);outline-offset:2px}.uca-persistent-bottom-banner__send svg{width:20px;height:20px;display:block}.uca-persistent-bottom-banner__close{position:absolute;bottom:calc(100% + var(--ds-spacing-2xs));right:0;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:0;border-radius:999px;background-color:var(--ds-theme-background-base-neutral);color:var(--ds-theme-foreground-base-icon);box-shadow:var(--ds-elevation-level-2);cursor:pointer}.uca-persistent-bottom-banner__close:hover{background-color:var(--ds-theme-background-base-fade)}.uca-persistent-bottom-banner__close:focus-visible{outline:var(--ds-border-width-s) solid var(--ds-theme-foreground-base-icon);outline-offset:calc(-1 * var(--ds-border-width-s))}.uca-persistent-bottom-banner__close svg{width:16px;height:16px;display:block}@media(min-width:768.02px){.uca-persistent-bottom-banner{display:flex;left:auto;right:1rem;bottom:var(--ds-spacing-l);width:400px;max-width:calc(100% - 2 * var(--ds-spacing-l));background-color:var(--ds-theme-background-base-fade, #f4fafd);border:var(--ds-border-width-xs, 1px) solid var(--ds-theme-border-base-fade, #cbe6f4);border-radius:var(--ds-radii-m, 1rem)}}.uca-proactive-chat[role=dialog]{position:fixed;bottom:0;inset-inline-end:var(--ds-spacing-l);display:flex;flex-direction:column;max-width:608px;width:100%;border-radius:var(--ds-radii-l);gap:var(--ds-spacing-xl);padding:var(--ds-spacing-l);background:var(--ds-theme-background-card-normal);box-shadow:var(--ds-elevation-level-1);z-index:1041}.uca-proactive-chat img{width:112px;height:112px;border-radius:var(--ds-radii-s)}.uca-proactive-chat__header{display:flex;align-items:center;justify-content:space-between}.uca-proactive-chat__header button{width:40px;height:40px;margin-bottom:auto}.uca-proactive-chat__body{display:flex;gap:var(--ds-spacing-xl)}.uca-proactive-chat__body .block-feature{display:flex;flex-direction:column;align-items:flex-start;gap:var(--ds-spacing-3)}.uca-proactive-chat__body .block-feature__body{display:flex;flex-direction:column;gap:var(--ds-spacing-xl)}.uca-proactive-chat__body .block-feature__title{margin:0}.uca-proactive-chat__body .block-feature__paragraph{font-weight:var(--ds-body-font-weight);font-size:var(--ds-body-font-size);line-height:var(--ds-body-line-height)}.uca-proactive-chat .btn--icon-only{border:1.5px solid;background:transparent;padding:15px;border-radius:10px;cursor:pointer;line-height:0;display:inline-flex;align-items:center;justify-content:center}.uca-proactive-chat .glyph-close svg path{fill:var(--ds-theme-foreground-accent-subtle-normal)}.uca-proactive-chat .button-group{display:flex;flex-wrap:wrap;column-gap:var(--ds-spacing-5)}.uca-proactive-chat__body .btn{--button-justify-content: center;border:2px solid transparent;padding:var(--ds-spacing-xs);justify-content:center;white-space:nowrap;font-weight:var(--ds-heading-3xs-font-weight)!important;font-size:var(--ds-heading-3xs-font-size)!important;line-height:var(--ds-heading-3xs-line-height)!important;letter-spacing:var(--ds-heading-3xs-letter-spacing)!important;background-color:var(--ds-theme-background-accent-strong-normal);color:var(--ds-theme-foreground-accent-strong-normal);border-radius:var(--ds-radii-s)}.uca-proactive-chat__body .uca-close-link{box-sizing:border-box;background-color:transparent;border:1px solid var(--ds-theme-border-accent-subtle-normal);color:var(--ds-theme-background-accent-strong-pressed)!important}.uca-proactive-chat .btn:focus,.uca-proactive-chat .btn:focus-visible{outline:2px solid var(--ds-theme-border-accent-strong-normal, #0078d4);outline-offset:2px}.uca-proactive-chat .btn--icon-only:focus,.uca-proactive-chat .btn--icon-only:focus-visible{outline:2px solid var(--ds-theme-border-accent-strong-normal, #0078d4);outline-offset:2px}.uca-proactive-chat--compact[role=dialog]{max-width:420px;gap:var(--ds-spacing-m, 16px)}.uca-proactive-chat--compact .uca-proactive-chat__body,.uca-proactive-chat--compact .block-feature__body{gap:var(--ds-spacing-m, 16px)}@media(max-width:640px){.uca-proactive-chat[role=dialog]{inset-inline-start:var(--ds-spacing-s, 8px);inset-inline-end:var(--ds-spacing-s, 8px);width:auto;max-width:none;padding:var(--ds-spacing-m, 12px);gap:var(--ds-spacing-l, 16px)}.uca-proactive-chat img{width:80px;height:80px}}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}}();
function e(e,t){for(var r=0;r<t.length;r++){const n=t[r];if("string"!=typeof n&&!Array.isArray(n))for(const t in n)if("default"!==t&&!(t in e)){const r=Object.getOwnPropertyDescriptor(n,t);r&&Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const r of e)if("childList"===r.type)for(const e of r.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var o,i,a,s,l={exports:{}},c={},u={exports:{}},d={};function f(){if(o)return d;o=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||p}function y(){}function b(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,k={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function T(t,r,n){var o,i={},a=null,s=null;if(null!=r)for(o in void 0!==r.ref&&(s=r.ref),void 0!==r.key&&(a=""+r.key),r)S.call(r,o)&&!E.hasOwnProperty(o)&&(i[o]=r[o]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(t&&t.defaultProps)for(o in l=t.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:e,type:t,key:a,ref:s,props:i,_owner:k.current}}function _(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var C=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function I(r,n,o,i,a){var s=typeof r;"undefined"!==s&&"boolean"!==s||(r=null);var l=!1;if(null===r)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(r.$$typeof){case e:case t:l=!0}}if(l)return a=a(l=r),r=""===i?"."+A(l,0):i,x(a)?(o="",null!=r&&(o=r.replace(C,"$&/")+"/"),I(a,n,o,"",function(e){return e})):null!=a&&(_(a)&&(a=function(t,r){return{$$typeof:e,type:t.type,key:r,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+r)),n.push(a)),1;if(l=0,i=""===i?".":i+":",x(r))for(var c=0;c<r.length;c++){var u=i+A(s=r[c],c);l+=I(s,n,o,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(r),"function"==typeof u)for(r=u.call(r),c=0;!(s=r.next()).done;)l+=I(s=s.value,n,o,u=i+A(s,c++),a);else if("object"===s)throw n=String(r),Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(r).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,r){if(null==e)return e;var n=[],o=0;return I(e,n,"","",function(e){return t.call(r,e,o++)}),n}function N(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var B={current:null},O={transition:null},D={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:O,ReactCurrentOwner:k};function R(){throw Error("act(...) is not supported in production builds of React.")}return d.Children={map:P,forEach:function(e,t,r){P(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},d.Component=v,d.Fragment=r,d.Profiler=i,d.PureComponent=b,d.StrictMode=n,d.Suspense=c,d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,d.act=R,d.cloneElement=function(t,r,n){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=m({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=r){if(void 0!==r.ref&&(a=r.ref,s=k.current),void 0!==r.key&&(i=""+r.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in r)S.call(r,c)&&!E.hasOwnProperty(c)&&(o[c]=void 0===r[c]&&void 0!==l?l[c]:r[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:s}},d.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},d.createElement=T,d.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},d.createRef=function(){return{current:null}},d.forwardRef=function(e){return{$$typeof:l,render:e}},d.isValidElement=_,d.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:N}},d.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},d.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},d.unstable_act=R,d.useCallback=function(e,t){return B.current.useCallback(e,t)},d.useContext=function(e){return B.current.useContext(e)},d.useDebugValue=function(){},d.useDeferredValue=function(e){return B.current.useDeferredValue(e)},d.useEffect=function(e,t){return B.current.useEffect(e,t)},d.useId=function(){return B.current.useId()},d.useImperativeHandle=function(e,t,r){return B.current.useImperativeHandle(e,t,r)},d.useInsertionEffect=function(e,t){return B.current.useInsertionEffect(e,t)},d.useLayoutEffect=function(e,t){return B.current.useLayoutEffect(e,t)},d.useMemo=function(e,t){return B.current.useMemo(e,t)},d.useReducer=function(e,t,r){return B.current.useReducer(e,t,r)},d.useRef=function(e){return B.current.useRef(e)},d.useState=function(e){return B.current.useState(e)},d.useSyncExternalStore=function(e,t,r){return B.current.useSyncExternalStore(e,t,r)},d.useTransition=function(){return B.current.useTransition()},d.version="18.3.1",d}function h(){return i||(i=1,u.exports=f()),u.exports}var p=(s||(s=1,l.exports=function(){if(a)return c;a=1;var e=h(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(u=r.ref),r)n.call(r,s)&&!i.hasOwnProperty(s)&&(l[s]=r[s]);if(e&&e.defaultProps)for(s in r=e.defaultProps)void 0===l[s]&&(l[s]=r[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return c.Fragment=r,c.jsx=s,c.jsxs=s,c}()),l.exports);const m=e({__proto__:null,default:r(p)},[p]);var g=h();const v=r(g),y=e({__proto__:null,default:v},[g]);var b,w,x,S,k,E={},T={exports:{}},_={},C={exports:{}},A={};function I(){return w||(w=1,C.exports=(b||(b=1,function(e){function t(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(!(0<o(i,t)))break e;e[n]=t,e[r]=i,r=n}}function r(e){return 0===e.length?null:e[0]}function n(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,a=i>>>1;n<a;){var s=2*(n+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,r))c<i&&0>o(u,l)?(e[n]=u,e[c]=r,n=c):(e[n]=l,e[s]=r,n=s);else{if(!(c<i&&0>o(u,r)))break e;e[n]=u,e[c]=r,n=c}}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,h=!1,p=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=r(c);null!==o;){if(null===o.callback)n(c);else{if(!(o.startTime<=e))break;n(c),o.sortIndex=o.expirationTime,t(l,o)}o=r(c)}}function w(e){if(m=!1,b(e),!p)if(null!==r(l))p=!0,B(x);else{var t=r(c);null!==t&&O(w,t.startTime-e)}}function x(t,o){p=!1,m&&(m=!1,v(T),T=-1),h=!0;var i=f;try{for(b(o),d=r(l);null!==d&&(!(d.expirationTime>o)||t&&!A());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===r(l)&&n(l),b(o)}else n(l);d=r(l)}if(null!==d)var u=!0;else{var g=r(c);null!==g&&O(w,g.startTime-o),u=!1}return u}finally{d=null,f=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,E=null,T=-1,_=5,C=-1;function A(){return!(e.unstable_now()-C<_)}function I(){if(null!==E){var t=e.unstable_now();C=t;var r=!0;try{r=E(!0,t)}finally{r?S():(k=!1,E=null)}}else k=!1}if("function"==typeof y)S=function(){y(I)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,N=P.port2;P.port1.onmessage=I,S=function(){N.postMessage(null)}}else S=function(){g(I,0)};function B(e){E=e,k||(k=!0,S())}function O(t,r){T=g(function(){t(e.unstable_now())},r)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,B(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var r=f;f=t;try{return e()}finally{f=r}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=f;f=e;try{return t()}finally{f=r}},e.unstable_scheduleCallback=function(n,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,n){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return n={id:u++,callback:o,priorityLevel:n,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(n.sortIndex=i,t(c,n),null===r(l)&&n===r(c)&&(m?(v(T),T=-1):m=!0,O(w,i-a))):(n.sortIndex=s,t(l,n),p||h||(p=!0,B(x))),n},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(e){var t=f;return function(){var r=f;f=t;try{return e.apply(this,arguments)}finally{f=r}}}}(A)),A)),C.exports}function P(){if(x)return _;x=1;var e=h(),t=I();function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,o={};function i(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(o[e]=t,e=0;e<t.length;e++)n.add(t[e])}var s=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),l=Object.prototype.hasOwnProperty,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][: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]*$/,u={},d={};function f(e,t,r,n,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){p[e]=new f(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){p[e]=new f(e,2,!1,e,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".split(" ").forEach(function(e){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){p[e]=new f(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){p[e]=new f(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){p[e]=new f(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)});var m=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function v(e,t,r,n){var o=p.hasOwnProperty(t)?p[t]:null;(null!==o?0!==o.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,o,n)&&(r=null),n||null===o?function(e){return!!l.call(d,e)||!l.call(u,e)&&(c.test(e)?d[e]=!0:(u[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"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".split(" ").forEach(function(e){var t=e.replace(m,g);p[t]=new f(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(m,g);p[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(m,g);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)}),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)});var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.element"),w=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),C=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),R=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var z,j=Object.assign;function L(e){if(void 0===z)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var F=!1;function V(e,t){if(!e||F)return"";F=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}catch(c){if(c&&n&&"string"==typeof c.stack){for(var o=c.stack.split("\n"),i=n.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?L(e):""}function q(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 1:return e=V(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case w:return"Portal";case E:return"Profiler";case k:return"StrictMode";case P:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case B:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return H(e(t))}catch(r){}}return null}function U(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=$(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function K(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function X(e,t){var r=t.checked;return j({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function J(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=W(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function Z(e,t){Q(e,t);var r=W(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?te(e,t.type,r):t.hasOwnProperty("defaultValue")&&te(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ee(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function te(e,t,r){"number"===t&&K(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var re=Array.isArray;function ne(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+W(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(r(91));return j({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(r(92));if(re(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ae(e,t){var r=W(t.value),n=W(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ce(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,de,fe=(de=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction(function(){return de(e,t)})}:de);function he(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function ge(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=ge(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(pe).forEach(function(e){me.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var ye=j({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(r(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(r(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(r(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(r(62))}}function we(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function Se(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Ee=null,Te=null;function _e(e){if(e=xo(e)){if("function"!=typeof ke)throw Error(r(280));var t=e.stateNode;t&&(t=ko(t),ke(e.stateNode,e.type,t))}}function Ce(e){Ee?Te?Te.push(e):Te=[e]:Ee=e}function Ae(){if(Ee){var e=Ee,t=Te;if(Te=Ee=null,_e(e),t)for(e=0;e<t.length;e++)_e(t[e])}}function Ie(e,t){return e(t)}function Pe(){}var Ne=!1;function Be(e,t,r){if(Ne)return e(t,r);Ne=!0;try{return Ie(e,t,r)}finally{Ne=!1,(null!==Ee||null!==Te)&&(Pe(),Ae())}}function Oe(e,t){var n=e.stateNode;if(null===n)return null;var o=ko(n);if(null===o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(r(231,t,typeof n));return n}var De=!1;if(s)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){De=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(de){De=!1}function Me(e,t,r,n,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(u){this.onError(u)}}var ze=!1,je=null,Le=!1,Fe=null,Ve={onError:function(e){ze=!0,je=e}};function qe(e,t,r,n,o,i,a,s,l){ze=!1,je=null,Me.apply(Ve,arguments)}function He(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Ue(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function We(e){if(He(e)!==e)throw Error(r(188))}function $e(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(r(188));return t!==e?null:e}for(var n=e,o=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){n=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return We(i),e;if(a===o)return We(i),t;a=a.sibling}throw Error(r(188))}if(n.return!==o.return)n=i,o=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,o=a;break}if(l===o){s=!0,o=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,o=i;break}if(l===o){s=!0,o=a,n=i;break}l=l.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==o)throw Error(r(190))}if(3!==n.tag)throw Error(r(188));return n.stateNode.current===n?e:t}(e))?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var Ye=t.unstable_scheduleCallback,Ke=t.unstable_cancelCallback,Xe=t.unstable_shouldYield,Je=t.unstable_requestPaint,Qe=t.unstable_now,Ze=t.unstable_getCurrentPriorityLevel,et=t.unstable_ImmediatePriority,tt=t.unstable_UserBlockingPriority,rt=t.unstable_NormalPriority,nt=t.unstable_LowPriority,ot=t.unstable_IdlePriority,it=null,at=null;var st=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/ct|0)|0},lt=Math.log,ct=Math.LN2;var ut=64,dt=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&r;if(0!==a){var s=a&~o;0!==s?n=ft(s):0!==(i&=a)&&(n=ft(i))}else 0!==(a=r&~o)?n=ft(a):0!==i&&(n=ft(i));if(0===n)return 0;if(0!==t&&t!==n&&0===(t&o)&&((o=n&-n)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&n&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-st(t)),n|=e[r],t&=~o;return n}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function vt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function yt(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=r}function bt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-st(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var wt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var St,kt,Et,Tt,_t,Ct=!1,At=[],It=null,Pt=null,Nt=null,Bt=new Map,Ot=new Map,Dt=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":It=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":Bt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function zt(e,t,r,n,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&kt(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function jt(e){var t=wo(e.target);if(null!==t){var r=He(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Ue(r)))return e.blockedOn=t,void _t(e.priority,function(){Et(r)})}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=xo(r))&&kt(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);xe=n,r.target.dispatchEvent(n),xe=null,t.shift()}return!0}function Ft(e,t,r){Lt(e)&&r.delete(t)}function Vt(){Ct=!1,null!==It&&Lt(It)&&(It=null),null!==Pt&&Lt(Pt)&&(Pt=null),null!==Nt&&Lt(Nt)&&(Nt=null),Bt.forEach(Ft),Ot.forEach(Ft)}function qt(e,r){e.blockedOn===r&&(e.blockedOn=null,Ct||(Ct=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Vt)))}function Ht(e){function t(t){return qt(t,e)}if(0<At.length){qt(At[0],e);for(var r=1;r<At.length;r++){var n=At[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==It&&qt(It,e),null!==Pt&&qt(Pt,e),null!==Nt&&qt(Nt,e),Bt.forEach(t),Ot.forEach(t),r=0;r<Dt.length;r++)(n=Dt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Dt.length&&null===(r=Dt[0]).blockedOn;)jt(r),null===r.blockedOn&&Dt.shift()}var Ut=y.ReactCurrentBatchConfig,Wt=!0;function $t(e,t,r,n){var o=wt,i=Ut.transition;Ut.transition=null;try{wt=1,Yt(e,t,r,n)}finally{wt=o,Ut.transition=i}}function Gt(e,t,r,n){var o=wt,i=Ut.transition;Ut.transition=null;try{wt=4,Yt(e,t,r,n)}finally{wt=o,Ut.transition=i}}function Yt(e,t,r,n){if(Wt){var o=Xt(e,t,r,n);if(null===o)Wn(e,t,n,Kt,r),Mt(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return It=zt(It,e,t,r,n,o),!0;case"dragenter":return Pt=zt(Pt,e,t,r,n,o),!0;case"mouseover":return Nt=zt(Nt,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return Bt.set(i,zt(Bt.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,Ot.set(i,zt(Ot.get(i)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(Mt(e,n),4&t&&-1<Rt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&St(i),null===(i=Xt(e,t,r,n))&&Wn(e,t,n,Kt,r),i===o)break;o=i}null!==o&&n.stopPropagation()}else Wn(e,t,n,null,r)}}var Kt=null;function Xt(e,t,r,n){if(Kt=null,null!==(e=wo(e=Se(n))))if(null===(t=He(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=Ue(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Jt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case et:return 1;case tt:return 4;case rt:case nt:return 16;case ot:return 536870912;default:return 16}default:return 16}}var Qt=null,Zt=null,er=null;function tr(){if(er)return er;var e,t,r=Zt,n=r.length,o="value"in Qt?Qt.value:Qt.textContent,i=o.length;for(e=0;e<n&&r[e]===o[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===o[i-t];t++);return er=o.slice(e,1<t?1-t:void 0)}function rr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nr(){return!0}function or(){return!1}function ir(e){function t(t,r,n,o,i){for(var a in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nr:or,this.isPropagationStopped=or,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nr)},persist:function(){},isPersistent:nr}),t}var ar,sr,lr,cr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ur=ir(cr),dr=j({},cr,{view:0,detail:0}),fr=ir(dr),hr=j({},dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==lr&&(lr&&"mousemove"===e.type?(ar=e.screenX-lr.screenX,sr=e.screenY-lr.screenY):sr=ar=0,lr=e),ar)},movementY:function(e){return"movementY"in e?e.movementY:sr}}),pr=ir(hr),mr=ir(j({},hr,{dataTransfer:0})),gr=ir(j({},dr,{relatedTarget:0})),vr=ir(j({},cr,{animationName:0,elapsedTime:0,pseudoElement:0})),yr=j({},cr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),br=ir(yr),wr=ir(j({},cr,{data:0})),xr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Er(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kr[e])&&!!t[e]}function Tr(){return Er}var _r=j({},dr,{key:function(e){if(e.key){var t=xr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tr,charCode:function(e){return"keypress"===e.type?rr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cr=ir(_r),Ar=ir(j({},hr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ir=ir(j({},dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tr})),Pr=ir(j({},cr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nr=j({},hr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Br=ir(Nr),Or=[9,13,27,32],Dr=s&&"CompositionEvent"in window,Rr=null;s&&"documentMode"in document&&(Rr=document.documentMode);var Mr=s&&"TextEvent"in window&&!Rr,zr=s&&(!Dr||Rr&&8<Rr&&11>=Rr),jr=String.fromCharCode(32),Lr=!1;function Fr(e,t){switch(e){case"keyup":return-1!==Or.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var qr=!1;var Hr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ur(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hr[e.type]:"textarea"===t}function Wr(e,t,r,n){Ce(n),0<(t=Gn(t,"onChange")).length&&(r=new ur("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var $r=null,Gr=null;function Yr(e){Ln(e,0)}function Kr(e){if(Y(So(e)))return e}function Xr(e,t){if("change"===e)return t}var Jr=!1;if(s){var Qr;if(s){var Zr="oninput"in document;if(!Zr){var en=document.createElement("div");en.setAttribute("oninput","return;"),Zr="function"==typeof en.oninput}Qr=Zr}else Qr=!1;Jr=Qr&&(!document.documentMode||9<document.documentMode)}function tn(){$r&&($r.detachEvent("onpropertychange",rn),Gr=$r=null)}function rn(e){if("value"===e.propertyName&&Kr(Gr)){var t=[];Wr(t,Gr,e,Se(e)),Be(Yr,t)}}function nn(e,t,r){"focusin"===e?(tn(),Gr=r,($r=t).attachEvent("onpropertychange",rn)):"focusout"===e&&tn()}function on(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kr(Gr)}function an(e,t){if("click"===e)return Kr(t)}function sn(e,t){if("input"===e||"change"===e)return Kr(t)}var ln="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function cn(e,t){if(ln(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!l.call(t,o)||!ln(e[o],t[o]))return!1}return!0}function un(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var r,n=un(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=un(n)}}function fn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hn(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(n){r=!1}if(!r)break;t=K((e=t.contentWindow).document)}return t}function pn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mn(e){var t=hn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&fn(r.ownerDocument.documentElement,r)){if(null!==n&&pn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=void 0===n.end?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=dn(r,i);var a=dn(r,n);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gn=s&&"documentMode"in document&&11>=document.documentMode,vn=null,yn=null,bn=null,wn=!1;function xn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;wn||null==vn||vn!==K(n)||("selectionStart"in(n=vn)&&pn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},bn&&cn(bn,n)||(bn=n,0<(n=Gn(yn,"onSelect")).length&&(t=new ur("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=vn)))}function Sn(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var kn={animationend:Sn("Animation","AnimationEnd"),animationiteration:Sn("Animation","AnimationIteration"),animationstart:Sn("Animation","AnimationStart"),transitionend:Sn("Transition","TransitionEnd")},En={},Tn={};function _n(e){if(En[e])return En[e];if(!kn[e])return e;var t,r=kn[e];for(t in r)if(r.hasOwnProperty(t)&&t in Tn)return En[e]=r[t];return e}s&&(Tn=document.createElement("div").style,"AnimationEvent"in window||(delete kn.animationend.animation,delete kn.animationiteration.animation,delete kn.animationstart.animation),"TransitionEvent"in window||delete kn.transitionend.transition);var Cn=_n("animationend"),An=_n("animationiteration"),In=_n("animationstart"),Pn=_n("transitionend"),Nn=new Map,Bn="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function On(e,t){Nn.set(e,t),i(t,[e])}for(var Dn=0;Dn<Bn.length;Dn++){var Rn=Bn[Dn];On(Rn.toLowerCase(),"on"+(Rn[0].toUpperCase()+Rn.slice(1)))}On(Cn,"onAnimationEnd"),On(An,"onAnimationIteration"),On(In,"onAnimationStart"),On("dblclick","onDoubleClick"),On("focusin","onFocus"),On("focusout","onBlur"),On(Pn,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),zn=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mn));function jn(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,o,i,a,s,l,c){if(qe.apply(this,arguments),ze){if(!ze)throw Error(r(198));var u=je;ze=!1,je=null,Le||(Le=!0,Fe=u)}}(o,t,void 0,e),e.currentTarget=null}function Ln(e,t){t=!!(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;jn(o,s,c),i=l}else for(a=0;a<n.length;a++){if(l=(s=n[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;jn(o,s,c),i=l}}}if(Le)throw e=Fe,Le=!1,Fe=null,e}function Fn(e,t){var r=t[vo];void 0===r&&(r=t[vo]=new Set);var n=e+"__bubble";r.has(n)||(Un(t,e,2,!1),r.add(n))}function Vn(e,t,r){var n=0;t&&(n|=4),Un(r,e,n,t)}var qn="_reactListening"+Math.random().toString(36).slice(2);function Hn(e){if(!e[qn]){e[qn]=!0,n.forEach(function(t){"selectionchange"!==t&&(zn.has(t)||Vn(t,!1,e),Vn(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[qn]||(t[qn]=!0,Vn("selectionchange",!1,t))}}function Un(e,t,r,n){switch(Jt(t)){case 1:var o=$t;break;case 4:o=Gt;break;default:o=Yt}r=o.bind(null,t,r,e),o=void 0,!De||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Wn(e,t,r,n,o){var i=n;if(!(1&t||2&t||null===n))e:for(;;){if(null===n)return;var a=n.tag;if(3===a||4===a){var s=n.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=n.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=wo(s)))return;if(5===(l=a.tag)||6===l){n=i=a;continue e}s=s.parentNode}}n=n.return}Be(function(){var n=i,o=Se(r),a=[];e:{var s=Nn.get(e);if(void 0!==s){var l=ur,c=e;switch(e){case"keypress":if(0===rr(r))break e;case"keydown":case"keyup":l=Cr;break;case"focusin":c="focus",l=gr;break;case"focusout":c="blur",l=gr;break;case"beforeblur":case"afterblur":l=gr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Ir;break;case Cn:case An:case In:l=vr;break;case Pn:l=Pr;break;case"scroll":l=fr;break;case"wheel":l=Br;break;case"copy":case"cut":case"paste":l=br;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Ar}var u=!!(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=n;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=Oe(p,f))&&u.push($n(p,m,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,r,o),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===xe||!(c=r.relatedTarget||r.fromElement)||!wo(c)&&!c[go])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(c=(c=r.relatedTarget||r.toElement)?wo(c):null)&&(c!==(d=He(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=n),l!==c)){if(u=pr,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=Ar,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:So(l),h=null==c?s:So(c),(s=new u(m,p+"leave",l,r,o)).target=d,s.relatedTarget=h,m=null,wo(o)===n&&((u=new u(f,p+"enter",c,r,o)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,p=0,h=u=l;h;h=Yn(h))p++;for(h=0,m=f;m;m=Yn(m))h++;for(;0<p-h;)u=Yn(u),p--;for(;0<h-p;)f=Yn(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=Yn(u),f=Yn(f)}u=null}else u=null;null!==l&&Kn(a,s,l,u,!1),null!==c&&null!==d&&Kn(a,d,c,u,!0)}if("select"===(l=(s=n?So(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Xr;else if(Ur(s))if(Jr)g=sn;else{g=on;var v=nn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=an);switch(g&&(g=g(e,n))?Wr(a,g,r,o):(v&&v(e,s,n),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&te(s,"number",s.value)),v=n?So(n):window,e){case"focusin":(Ur(v)||"true"===v.contentEditable)&&(vn=v,yn=n,bn=null);break;case"focusout":bn=yn=vn=null;break;case"mousedown":wn=!0;break;case"contextmenu":case"mouseup":case"dragend":wn=!1,xn(a,r,o);break;case"selectionchange":if(gn)break;case"keydown":case"keyup":xn(a,r,o)}var y;if(Dr)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qr?Fr(e,r)&&(b="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(b="onCompositionStart");b&&(zr&&"ko"!==r.locale&&(qr||"onCompositionStart"!==b?"onCompositionEnd"===b&&qr&&(y=tr()):(Zt="value"in(Qt=o)?Qt.value:Qt.textContent,qr=!0)),0<(v=Gn(n,b)).length&&(b=new wr(b,e,null,r,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=Vr(r))&&(b.data=y))),(y=Mr?function(e,t){switch(e){case"compositionend":return Vr(t);case"keypress":return 32!==t.which?null:(Lr=!0,jr);case"textInput":return(e=t.data)===jr&&Lr?null:e;default:return null}}(e,r):function(e,t){if(qr)return"compositionend"===e||!Dr&&Fr(e,t)?(e=tr(),er=Zt=Qt=null,qr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zr&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=Gn(n,"onBeforeInput")).length&&(o=new wr("onBeforeInput","beforeinput",null,r,o),a.push({event:o,listeners:n}),o.data=y))}Ln(a,t)})}function $n(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Gn(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Oe(e,r))&&n.unshift($n(e,i,o)),null!=(i=Oe(e,t))&&n.push($n(e,i,o))),e=e.return}return n}function Yn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kn(e,t,r,n,o){for(var i=t._reactName,a=[];null!==r&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Oe(r,i))&&a.unshift($n(r,l,s)):o||null!=(l=Oe(r,i))&&a.push($n(r,l,s))),r=r.return}0!==a.length&&e.push({event:t,listeners:a})}var Xn=/\r\n?/g,Jn=/\u0000|\uFFFD/g;function Qn(e){return("string"==typeof e?e:""+e).replace(Xn,"\n").replace(Jn,"")}function Zn(e,t,n){if(t=Qn(t),Qn(e)!==t&&n)throw Error(r(425))}function eo(){}var to=null,ro=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var oo="function"==typeof setTimeout?setTimeout:void 0,io="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,so="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(lo)}:oo;function lo(e){setTimeout(function(){throw e})}function co(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return e.removeChild(o),void Ht(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);Ht(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function fo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var ho=Math.random().toString(36).slice(2),po="__reactFiber$"+ho,mo="__reactProps$"+ho,go="__reactContainer$"+ho,vo="__reactEvents$"+ho,yo="__reactListeners$"+ho,bo="__reactHandles$"+ho;function wo(e){var t=e[po];if(t)return t;for(var r=e.parentNode;r;){if(t=r[go]||r[po]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=fo(e);null!==e;){if(r=e[po])return r;e=fo(e)}return t}r=(e=r).parentNode}return null}function xo(e){return!(e=e[po]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function So(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(r(33))}function ko(e){return e[mo]||null}var Eo=[],To=-1;function _o(e){return{current:e}}function Co(e){0>To||(e.current=Eo[To],Eo[To]=null,To--)}function Ao(e,t){To++,Eo[To]=e.current,e.current=t}var Io={},Po=_o(Io),No=_o(!1),Bo=Io;function Oo(e,t){var r=e.type.contextTypes;if(!r)return Io;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in r)i[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Do(e){return null!=(e=e.childContextTypes)}function Ro(){Co(No),Co(Po)}function Mo(e,t,n){if(Po.current!==Io)throw Error(r(168));Ao(Po,t),Ao(No,n)}function zo(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(var i in o=o.getChildContext())if(!(i in t))throw Error(r(108,U(e)||"Unknown",i));return j({},n,o)}function jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Io,Bo=Po.current,Ao(Po,e),Ao(No,No.current),!0}function Lo(e,t,n){var o=e.stateNode;if(!o)throw Error(r(169));n?(e=zo(e,t,Bo),o.__reactInternalMemoizedMergedChildContext=e,Co(No),Co(Po),Ao(Po,e)):Co(No),Ao(No,n)}var Fo=null,Vo=!1,qo=!1;function Ho(e){null===Fo?Fo=[e]:Fo.push(e)}function Uo(){if(!qo&&null!==Fo){qo=!0;var e=0,t=wt;try{var r=Fo;for(wt=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Fo=null,Vo=!1}catch(o){throw null!==Fo&&(Fo=Fo.slice(e+1)),Ye(et,Uo),o}finally{wt=t,qo=!1}}return null}var Wo=[],$o=0,Go=null,Yo=0,Ko=[],Xo=0,Jo=null,Qo=1,Zo="";function ei(e,t){Wo[$o++]=Yo,Wo[$o++]=Go,Go=e,Yo=t}function ti(e,t,r){Ko[Xo++]=Qo,Ko[Xo++]=Zo,Ko[Xo++]=Jo,Jo=e;var n=Qo;e=Zo;var o=32-st(n)-1;n&=~(1<<o),r+=1;var i=32-st(t)+o;if(30<i){var a=o-o%5;i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,Qo=1<<32-st(t)+o|r<<o|n,Zo=i+e}else Qo=1<<i|r<<o|n,Zo=e}function ri(e){null!==e.return&&(ei(e,1),ti(e,1,0))}function ni(e){for(;e===Go;)Go=Wo[--$o],Wo[$o]=null,Yo=Wo[--$o],Wo[$o]=null;for(;e===Jo;)Jo=Ko[--Xo],Ko[Xo]=null,Zo=Ko[--Xo],Ko[Xo]=null,Qo=Ko[--Xo],Ko[Xo]=null}var oi=null,ii=null,ai=!1,si=null;function li(e,t){var r=Bc(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function ci(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,oi=e,ii=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,oi=e,ii=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Jo?{id:Qo,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Bc(18,null,null,0)).stateNode=t,r.return=e,e.child=r,oi=e,ii=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function di(e){if(ai){var t=ii;if(t){var n=t;if(!ci(e,t)){if(ui(e))throw Error(r(418));t=uo(n.nextSibling);var o=oi;t&&ci(e,t)?li(o,n):(e.flags=-4097&e.flags|2,ai=!1,oi=e)}}else{if(ui(e))throw Error(r(418));e.flags=-4097&e.flags|2,ai=!1,oi=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;oi=e}function hi(e){if(e!==oi)return!1;if(!ai)return fi(e),ai=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=ii)){if(ui(e))throw pi(),Error(r(418));for(;t;)li(e,t),t=uo(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(r(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ii=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ii=null}}else ii=oi?uo(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=ii;e;)e=uo(e.nextSibling)}function mi(){ii=oi=null,ai=!1}function gi(e){null===si?si=[e]:si.push(e)}var vi=y.ReactCurrentBatchConfig;function yi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(r(309));var o=n.stateNode}if(!o)throw Error(r(147,e));var i=o,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function bi(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function wi(e){return(0,e._init)(e._payload)}function xi(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function n(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Dc(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=jc(r,e.mode,n)).return=e,t):((t=i(t,r)).return=e,t)}function c(e,t,r,n){var o=r.type;return o===S?d(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===O&&wi(o)===t.type)?((n=i(t,r.props)).ref=yi(e,t,r),n.return=e,n):((n=Rc(r.type,r.key,r.props,null,e.mode,n)).ref=yi(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Lc(r,e.mode,n)).return=e,t):((t=i(t,r.children||[])).return=e,t)}function d(e,t,r,n,o){return null===t||7!==t.tag?((t=Mc(r,e.mode,n,o)).return=e,t):((t=i(t,r)).return=e,t)}function f(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=jc(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case b:return(r=Rc(t.type,t.key,t.props,null,e.mode,r)).ref=yi(e,null,t),r.return=e,r;case w:return(t=Lc(t,e.mode,r)).return=e,t;case O:return f(e,(0,t._init)(t._payload),r)}if(re(t)||M(t))return(t=Mc(t,e.mode,r,null)).return=e,t;bi(e,t)}return null}function h(e,t,r,n){var o=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==o?null:l(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case b:return r.key===o?c(e,t,r,n):null;case w:return r.key===o?u(e,t,r,n):null;case O:return h(e,t,(o=r._init)(r._payload),n)}if(re(r)||M(r))return null!==o?null:d(e,t,r,n,null);bi(e,r)}return null}function p(e,t,r,n,o){if("string"==typeof n&&""!==n||"number"==typeof n)return l(t,e=e.get(r)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case b:return c(t,e=e.get(null===n.key?r:n.key)||null,n,o);case w:return u(t,e=e.get(null===n.key?r:n.key)||null,n,o);case O:return p(e,t,r,(0,n._init)(n._payload),o)}if(re(n)||M(n))return d(t,e=e.get(r)||null,n,o,null);bi(t,n)}return null}return function l(c,u,d,m){if("object"==typeof d&&null!==d&&d.type===S&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case b:e:{for(var g=d.key,v=u;null!==v;){if(v.key===g){if((g=d.type)===S){if(7===v.tag){n(c,v.sibling),(u=i(v,d.props.children)).return=c,c=u;break e}}else if(v.elementType===g||"object"==typeof g&&null!==g&&g.$$typeof===O&&wi(g)===v.type){n(c,v.sibling),(u=i(v,d.props)).ref=yi(c,v,d),u.return=c,c=u;break e}n(c,v);break}t(c,v),v=v.sibling}d.type===S?((u=Mc(d.props.children,c.mode,m,d.key)).return=c,c=u):((m=Rc(d.type,d.key,d.props,null,c.mode,m)).ref=yi(c,u,d),m.return=c,c=m)}return s(c);case w:e:{for(v=d.key;null!==u;){if(u.key===v){if(4===u.tag&&u.stateNode.containerInfo===d.containerInfo&&u.stateNode.implementation===d.implementation){n(c,u.sibling),(u=i(u,d.children||[])).return=c,c=u;break e}n(c,u);break}t(c,u),u=u.sibling}(u=Lc(d,c.mode,m)).return=c,c=u}return s(c);case O:return l(c,u,(v=d._init)(d._payload),m)}if(re(d))return function(r,i,s,l){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=h(r,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(r,d),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(r,d),ai&&ei(r,m),c;if(null===d){for(;m<s.length;m++)null!==(d=f(r,s[m],l))&&(i=a(d,i,m),null===u?c=d:u.sibling=d,u=d);return ai&&ei(r,m),c}for(d=o(r,d);m<s.length;m++)null!==(g=p(d,r,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),ai&&ei(r,m),c}(c,u,d,m);if(M(d))return function(i,s,l,c){var u=M(l);if("function"!=typeof u)throw Error(r(150));if(null==(l=u.call(l)))throw Error(r(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=h(i,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(i,m),ai&&ei(i,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(i,y.value,c))&&(s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return ai&&ei(i,g),u}for(m=o(i,m);!y.done;g++,y=l.next())null!==(y=p(m,i,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(i,e)}),ai&&ei(i,g),u}(c,u,d,m);bi(c,d)}return"string"==typeof d&&""!==d||"number"==typeof d?(d=""+d,null!==u&&6===u.tag?(n(c,u.sibling),(u=i(u,d)).return=c,c=u):(n(c,u),(u=jc(d,c.mode,m)).return=c,c=u),s(c)):n(c,u)}}var Si=xi(!0),ki=xi(!1),Ei=_o(null),Ti=null,_i=null,Ci=null;function Ai(){Ci=_i=Ti=null}function Ii(e){var t=Ei.current;Co(Ei),e._currentValue=t}function Pi(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Ni(e,t){Ti=e,Ci=_i=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ws=!0),e.firstContext=null)}function Bi(e){var t=e._currentValue;if(Ci!==e)if(e={context:e,memoizedValue:t,next:null},null===_i){if(null===Ti)throw Error(r(308));_i=e,Ti.dependencies={lanes:0,firstContext:e}}else _i=_i.next=e;return t}var Oi=null;function Di(e){null===Oi?Oi=[e]:Oi.push(e)}function Ri(e,t,r,n){var o=t.interleaved;return null===o?(r.next=r,Di(t)):(r.next=o.next,o.next=r),t.interleaved=r,Mi(e,n)}function Mi(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var zi=!1;function ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Li(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vi(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,2&Il){var o=n.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Mi(e,r)}return null===(o=n.interleaved)?(t.next=t,Di(n)):(t.next=o.next,o.next=t),n.interleaved=t,Mi(e,r)}function qi(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,bt(e,r)}}function Hi(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,i=null;if(null!==(r=r.firstBaseUpdate)){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===i?o=i=a:i=i.next=a,r=r.next}while(null!==r);null===i?o=i=t:i=i.next=t}else o=i=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ui(e,t,r,n){var o=e.updateQueue;zi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var f=s.lane,h=s.eventTime;if((n&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=r,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=j({},d,f);break e;case 2:zi=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);zl|=a,e.lanes=a,e.memoizedState=d}}function Wi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=n,"function"!=typeof i)throw Error(r(191,i));i.call(o)}}}var $i={},Gi=_o($i),Yi=_o($i),Ki=_o($i);function Xi(e){if(e===$i)throw Error(r(174));return e}function Ji(e,t){switch(Ao(Ki,t),Ao(Yi,e),Ao(Gi,$i),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Co(Gi),Ao(Gi,t)}function Qi(){Co(Gi),Co(Yi),Co(Ki)}function Zi(e){Xi(Ki.current);var t=Xi(Gi.current),r=ce(t,e.type);t!==r&&(Ao(Yi,e),Ao(Gi,r))}function ea(e){Yi.current===e&&(Co(Gi),Co(Yi))}var ta=_o(0);function ra(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function oa(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var ia=y.ReactCurrentDispatcher,aa=y.ReactCurrentBatchConfig,sa=0,la=null,ca=null,ua=null,da=!1,fa=!1,ha=0,pa=0;function ma(){throw Error(r(321))}function ga(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ln(e[r],t[r]))return!1;return!0}function va(e,t,n,o,i,a){if(sa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?es:ts,e=n(o,i),fa){a=0;do{if(fa=!1,ha=0,25<=a)throw Error(r(301));a+=1,ua=ca=null,t.updateQueue=null,ia.current=rs,e=n(o,i)}while(fa)}if(ia.current=Za,t=null!==ca&&null!==ca.next,sa=0,ua=ca=la=null,da=!1,t)throw Error(r(300));return e}function ya(){var e=0!==ha;return ha=0,e}function ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?la.memoizedState=ua=e:ua=ua.next=e,ua}function wa(){if(null===ca){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=ca.next;var t=null===ua?la.memoizedState:ua.next;if(null!==t)ua=t,ca=e;else{if(null===e)throw Error(r(310));e={memoizedState:(ca=e).memoizedState,baseState:ca.baseState,baseQueue:ca.baseQueue,queue:ca.queue,next:null},null===ua?la.memoizedState=ua=e:ua=ua.next=e}return ua}function xa(e,t){return"function"==typeof t?t(e):t}function Sa(e){var t=wa(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=ca,i=o.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}o.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,o=o.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((sa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),o=u.hasEagerState?u.eagerState:e(o,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=o):c=c.next=f,la.lanes|=d,zl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=o:c.next=l,ln(o,t.memoizedState)||(ws=!0),t.memoizedState=o,t.baseState=s,t.baseQueue=c,n.lastRenderedState=o}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,la.lanes|=a,zl|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ka(e){var t=wa(),n=t.queue;if(null===n)throw Error(r(311));n.lastRenderedReducer=e;var o=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);ln(a,t.memoizedState)||(ws=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,o]}function Ea(){}function Ta(e,t){var n=la,o=wa(),i=t(),a=!ln(o.memoizedState,i);if(a&&(o.memoizedState=i,ws=!0),o=o.queue,za(Aa.bind(null,n,o,e),[e]),o.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(n.flags|=2048,Ba(9,Ca.bind(null,n,o,i,t),void 0,null),null===Pl)throw Error(r(349));30&sa||_a(n,t,i)}return i}function _a(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Ca(e,t,r,n){t.value=r,t.getSnapshot=n,Ia(t)&&Pa(e)}function Aa(e,t,r){return r(function(){Ia(t)&&Pa(e)})}function Ia(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ln(e,r)}catch(n){return!0}}function Pa(e){var t=Mi(e,1);null!==t&&nc(t,e,1,-1)}function Na(e){var t=ba();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ka.bind(null,la,e),[t.memoizedState,e]}function Ba(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Oa(){return wa().memoizedState}function Da(e,t,r,n){var o=ba();la.flags|=e,o.memoizedState=Ba(1|t,r,void 0,void 0===n?null:n)}function Ra(e,t,r,n){var o=wa();n=void 0===n?null:n;var i=void 0;if(null!==ca){var a=ca.memoizedState;if(i=a.destroy,null!==n&&ga(n,a.deps))return void(o.memoizedState=Ba(t,r,i,n))}la.flags|=e,o.memoizedState=Ba(1|t,r,i,n)}function Ma(e,t){return Da(8390656,8,e,t)}function za(e,t){return Ra(2048,8,e,t)}function ja(e,t){return Ra(4,2,e,t)}function La(e,t){return Ra(4,4,e,t)}function Fa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Va(e,t,r){return r=null!=r?r.concat([e]):null,Ra(4,4,Fa.bind(null,t,e),r)}function qa(){}function Ha(e,t){var r=wa();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ga(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Ua(e,t){var r=wa();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ga(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Wa(e,t,r){return 21&sa?(ln(r,t)||(r=gt(),la.lanes|=r,zl|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=r)}function $a(e,t){var r=wt;wt=0!==r&&4>r?r:4,e(!0);var n=aa.transition;aa.transition={};try{e(!1),t()}finally{wt=r,aa.transition=n}}function Ga(){return wa().memoizedState}function Ya(e,t,r){var n=rc(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Xa(e))Ja(t,r);else if(null!==(r=Ri(e,t,r,n))){nc(r,e,n,tc()),Qa(r,t,n)}}function Ka(e,t,r){var n=rc(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Xa(e))Ja(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,ln(s,a)){var l=t.interleaved;return null===l?(o.next=o,Di(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(r=Ri(e,t,o,n))&&(nc(r,e,n,o=tc()),Qa(r,t,n))}}function Xa(e){var t=e.alternate;return e===la||null!==t&&t===la}function Ja(e,t){fa=da=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Qa(e,t,r){if(4194240&r){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,bt(e,r)}}var Za={readContext:Bi,useCallback:ma,useContext:ma,useEffect:ma,useImperativeHandle:ma,useInsertionEffect:ma,useLayoutEffect:ma,useMemo:ma,useReducer:ma,useRef:ma,useState:ma,useDebugValue:ma,useDeferredValue:ma,useTransition:ma,useMutableSource:ma,useSyncExternalStore:ma,useId:ma,unstable_isNewReconciler:!1},es={readContext:Bi,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Bi,useEffect:Ma,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,Da(4194308,4,Fa.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Da(4194308,4,e,t)},useInsertionEffect:function(e,t){return Da(4,2,e,t)},useMemo:function(e,t){var r=ba();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=ba();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Ya.bind(null,la,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Na,useDebugValue:qa,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Na(!1),t=e[0];return e=$a.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=la,i=ba();if(ai){if(void 0===n)throw Error(r(407));n=n()}else{if(n=t(),null===Pl)throw Error(r(349));30&sa||_a(o,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ma(Aa.bind(null,o,a,e),[e]),o.flags|=2048,Ba(9,Ca.bind(null,o,a,n,t),void 0,null),n},useId:function(){var e=ba(),t=Pl.identifierPrefix;if(ai){var r=Zo;t=":"+t+"R"+(r=(Qo&~(1<<32-st(Qo)-1)).toString(32)+r),0<(r=ha++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ts={readContext:Bi,useCallback:Ha,useContext:Bi,useEffect:za,useImperativeHandle:Va,useInsertionEffect:ja,useLayoutEffect:La,useMemo:Ua,useReducer:Sa,useRef:Oa,useState:function(){return Sa(xa)},useDebugValue:qa,useDeferredValue:function(e){return Wa(wa(),ca.memoizedState,e)},useTransition:function(){return[Sa(xa)[0],wa().memoizedState]},useMutableSource:Ea,useSyncExternalStore:Ta,useId:Ga,unstable_isNewReconciler:!1},rs={readContext:Bi,useCallback:Ha,useContext:Bi,useEffect:za,useImperativeHandle:Va,useInsertionEffect:ja,useLayoutEffect:La,useMemo:Ua,useReducer:ka,useRef:Oa,useState:function(){return ka(xa)},useDebugValue:qa,useDeferredValue:function(e){var t=wa();return null===ca?t.memoizedState=e:Wa(t,ca.memoizedState,e)},useTransition:function(){return[ka(xa)[0],wa().memoizedState]},useMutableSource:Ea,useSyncExternalStore:Ta,useId:Ga,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var r in t=j({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}function os(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:j({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=tc(),o=rc(e),i=Fi(n,o);i.payload=t,null!=r&&(i.callback=r),null!==(t=Vi(e,i,o))&&(nc(t,e,o,n),qi(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=tc(),o=rc(e),i=Fi(n,o);i.tag=1,i.payload=t,null!=r&&(i.callback=r),null!==(t=Vi(e,i,o))&&(nc(t,e,o,n),qi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=tc(),n=rc(e),o=Fi(r,n);o.tag=2,null!=t&&(o.callback=t),null!==(t=Vi(e,o,n))&&(nc(t,e,n,r),qi(t,e,n))}};function as(e,t,r,n,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!cn(r,n)||!cn(o,i))}function ss(e,t,r){var n=!1,o=Io,i=t.contextType;return"object"==typeof i&&null!==i?i=Bi(i):(o=Do(t)?Bo:Po.current,i=(n=null!=(n=t.contextTypes))?Oo(e,o):Io),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ls(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function cs(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},ji(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Bi(i):(i=Do(t)?Bo:Po.current,o.context=Oo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(os(e,t,i,r),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&is.enqueueReplaceState(o,o.state,null),Ui(e,r,o,n),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var r="",n=t;do{r+=q(n),n=n.return}while(n);var o=r}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function ds(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var hs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,r){(r=Fi(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Wl||(Wl=!0,$l=n),fs(0,t)},r}function ms(e,t,r){(r=Fi(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){fs(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(r.callback=function(){fs(0,t),"function"!=typeof n&&(null===Gl?Gl=new Set([this]):Gl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function gs(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new hs;var o=new Set;n.set(t,o)}else void 0===(o=n.get(t))&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=_c.bind(null,e,t,r),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,r,n,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Fi(-1,1)).tag=2,Vi(r,t,1))),r.lanes|=1),e)}var bs=y.ReactCurrentOwner,ws=!1;function xs(e,t,r,n){t.child=null===e?ki(t,null,r,n):Si(t,e.child,r,n)}function Ss(e,t,r,n,o){r=r.render;var i=t.ref;return Ni(t,o),n=va(e,t,r,n,i,o),r=ya(),null===e||ws?(ai&&r&&ri(t),t.flags|=1,xs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ws(e,t,o))}function ks(e,t,r,n,o){if(null===e){var i=r.type;return"function"!=typeof i||Oc(i)||void 0!==i.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Rc(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Es(e,t,i,n,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((r=null!==(r=r.compare)?r:cn)(a,n)&&e.ref===t.ref)return Ws(e,t,o)}return t.flags|=1,(e=Dc(i,n)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,r,n,o){if(null!==e){var i=e.memoizedProps;if(cn(i,n)&&e.ref===t.ref){if(ws=!1,t.pendingProps=n=i,0===(e.lanes&o))return t.lanes=e.lanes,Ws(e,t,o);131072&e.flags&&(ws=!0)}}return Cs(e,t,r,n,o)}function Ts(e,t,r){var n=t.pendingProps,o=n.children,i=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(1&t.mode){if(!(1073741824&r))return e=null!==i?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ao(Dl,Ol),Ol|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==i?i.baseLanes:r,Ao(Dl,Ol),Ol|=n}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ao(Dl,Ol),Ol|=r;else null!==i?(n=i.baseLanes|r,t.memoizedState=null):n=r,Ao(Dl,Ol),Ol|=n;return xs(e,t,o,r),t.child}function _s(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,r,n,o){var i=Do(r)?Bo:Po.current;return i=Oo(t,i),Ni(t,o),r=va(e,t,r,n,i,o),n=ya(),null===e||ws?(ai&&n&&ri(t),t.flags|=1,xs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ws(e,t,o))}function As(e,t,r,n,o){if(Do(r)){var i=!0;jo(t)}else i=!1;if(Ni(t,o),null===t.stateNode)Us(e,t),ss(t,r,n),cs(t,r,n,o),n=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=r.contextType;"object"==typeof c&&null!==c?c=Bi(c):c=Oo(t,c=Do(r)?Bo:Po.current);var u=r.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==n||l!==c)&&ls(t,a,n,c),zi=!1;var f=t.memoizedState;a.state=f,Ui(t,n,a,o),l=t.memoizedState,s!==n||f!==l||No.current||zi?("function"==typeof u&&(os(t,r,u,n),l=t.memoizedState),(s=zi||as(t,r,s,n,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=c,n=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,Li(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(l=r.contextType)&&null!==l?l=Bi(l):l=Oo(t,l=Do(r)?Bo:Po.current);var h=r.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ls(t,a,n,l),zi=!1,f=t.memoizedState,a.state=f,Ui(t,n,a,o);var p=t.memoizedState;s!==d||f!==p||No.current||zi?("function"==typeof h&&(os(t,r,h,n),p=t.memoizedState),(c=zi||as(t,r,c,n,f,p,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(n,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),a.props=n,a.state=p,a.context=l,n=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return Is(e,t,r,n,i,o)}function Is(e,t,r,n,o,i){_s(e,t);var a=!!(128&t.flags);if(!n&&!a)return o&&Lo(t,r,!1),Ws(e,t,i);n=t.stateNode,bs.current=t;var s=a&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&a?(t.child=Si(t,e.child,null,i),t.child=Si(t,null,s,i)):xs(e,t,s,i),t.memoizedState=n.state,o&&Lo(t,r,!0),t.child}function Ps(e){var t=e.stateNode;t.pendingContext?Mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mo(0,t.context,!1),Ji(e,t.containerInfo)}function Ns(e,t,r,n,o){return mi(),gi(o),t.flags|=256,xs(e,t,r,n),t.child}var Bs,Os,Ds,Rs,Ms={dehydrated:null,treeContext:null,retryLane:0};function zs(e){return{baseLanes:e,cachePool:null,transitions:null}}function js(e,t,n){var o,i=t.pendingProps,a=ta.current,s=!1,l=!!(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&!!(2&a)),o?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ao(ta,1&a),null===e)return di(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=zc(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Mc(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=zs(n),t.memoizedState=Ms,e):Ls(t,l));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,n,o,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,o=ds(Error(r(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,i=t.mode,o=zc({mode:"visible",children:o.children},i,0,null),(a=Mc(a,i,s,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,1&t.mode&&Si(t,e.child,null,s),t.child.memoizedState=zs(s),t.memoizedState=Ms,a);if(!(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(o=i.nextSibling&&i.nextSibling.dataset)var l=o.dgst;return o=l,Fs(e,t,s,o=ds(a=Error(r(419)),o,void 0))}if(l=0!==(s&e.childLanes),ws||l){if(null!==(o=Pl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(o.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Mi(e,i),nc(o,e,i,-1))}return gc(),Fs(e,t,s,o=ds(Error(r(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Ac.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ii=uo(i.nextSibling),oi=t,ai=!0,si=null,null!==e&&(Ko[Xo++]=Qo,Ko[Xo++]=Zo,Ko[Xo++]=Jo,Qo=e.id,Zo=e.overflow,Jo=t),t=Ls(t,o.children),t.flags|=4096,t)}(e,t,l,i,o,a,n);if(s){s=i.fallback,l=t.mode,o=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 1&l||t.child===a?(i=Dc(a,c)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null),null!==o?s=Dc(o,s):(s=Mc(s,l,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?zs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Ms,i}return e=(s=e.child).sibling,i=Dc(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Ls(e,t){return(t=zc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,r,n){return null!==n&&gi(n),Si(t,e.child,null,r),(e=Ls(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Vs(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Pi(e.return,t,r)}function qs(e,t,r,n,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function Hs(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(xs(e,t,n.children,r),2&(n=ta.current))n=1&n|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Vs(e,r,t);else if(19===e.tag)Vs(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ao(ta,n),1&t.mode)switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===ra(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),qs(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ra(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}qs(t,!0,r,null,i);break;case"together":qs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Us(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ws(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),zl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(r(153));if(null!==t.child){for(n=Dc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $s(e,t){if(!ai)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Gs(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Ys(e,t,n){var i=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return Do(t.type)&&Ro(),Gs(t),null;case 3:return i=t.stateNode,Qi(),Co(No),Co(Po),oa(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(hi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==si&&(sc(si),si=null))),Os(e,t),Gs(t),null;case 5:ea(t);var a=Xi(Ki.current);if(n=t.type,null!==e&&null!=t.stateNode)Ds(e,t,n,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(r(166));return Gs(t),null}if(e=Xi(Gi.current),hi(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[po]=t,i[mo]=s,e=!!(1&t.mode),n){case"dialog":Fn("cancel",i),Fn("close",i);break;case"iframe":case"object":case"embed":Fn("load",i);break;case"video":case"audio":for(a=0;a<Mn.length;a++)Fn(Mn[a],i);break;case"source":Fn("error",i);break;case"img":case"image":case"link":Fn("error",i),Fn("load",i);break;case"details":Fn("toggle",i);break;case"input":J(i,s),Fn("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},Fn("invalid",i);break;case"textarea":ie(i,s),Fn("invalid",i)}for(var l in be(n,s),a=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?i.textContent!==c&&(!0!==s.suppressHydrationWarning&&Zn(i.textContent,c,e),a=["children",c]):"number"==typeof c&&i.textContent!==""+c&&(!0!==s.suppressHydrationWarning&&Zn(i.textContent,c,e),a=["children",""+c]):o.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fn("scroll",i)}switch(n){case"input":G(i),ee(i,s,!0);break;case"textarea":G(i),se(i);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(i.onclick=eo)}i=a,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(n,{is:i.is}):(e=l.createElement(n),"select"===n&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,n),e[po]=t,e[mo]=i,Bs(e,t,!1,!1),t.stateNode=e;e:{switch(l=we(n,i),n){case"dialog":Fn("cancel",e),Fn("close",e),a=i;break;case"iframe":case"object":case"embed":Fn("load",e),a=i;break;case"video":case"audio":for(a=0;a<Mn.length;a++)Fn(Mn[a],e);a=i;break;case"source":Fn("error",e),a=i;break;case"img":case"image":case"link":Fn("error",e),Fn("load",e),a=i;break;case"details":Fn("toggle",e),a=i;break;case"input":J(e,i),a=X(e,i),Fn("invalid",e);break;case"option":default:a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=j({},i,{value:void 0}),Fn("invalid",e);break;case"textarea":ie(e,i),a=oe(e,i),Fn("invalid",e)}for(s in be(n,a),c=a)if(c.hasOwnProperty(s)){var u=c[s];"style"===s?ve(e,u):"dangerouslySetInnerHTML"===s?null!=(u=u?u.__html:void 0)&&fe(e,u):"children"===s?"string"==typeof u?("textarea"!==n||""!==u)&&he(e,u):"number"==typeof u&&he(e,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(o.hasOwnProperty(s)?null!=u&&"onScroll"===s&&Fn("scroll",e):null!=u&&v(e,s,u,l))}switch(n){case"input":G(e),ee(e,i,!1);break;case"textarea":G(e),se(e);break;case"option":null!=i.value&&e.setAttribute("value",""+W(i.value));break;case"select":e.multiple=!!i.multiple,null!=(s=i.value)?ne(e,!!i.multiple,s,!1):null!=i.defaultValue&&ne(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=eo)}switch(n){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)Rs(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(r(166));if(n=Xi(Ki.current),Xi(Gi.current),hi(t)){if(i=t.stateNode,n=t.memoizedProps,i[po]=t,(s=i.nodeValue!==n)&&null!==(e=oi))switch(e.tag){case 3:Zn(i.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zn(i.nodeValue,n,!!(1&e.mode))}s&&(t.flags|=4)}else(i=(9===n.nodeType?n:n.ownerDocument).createTextNode(i))[po]=t,t.stateNode=i}return Gs(t),null;case 13:if(Co(ta),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ai&&null!==ii&&1&t.mode&&!(128&t.flags))pi(),mi(),t.flags|=98560,s=!1;else if(s=hi(t),null!==i&&null!==i.dehydrated){if(null===e){if(!s)throw Error(r(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(r(317));s[po]=t}else mi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),s=!1}else null!==si&&(sc(si),si=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ta.current?0===Rl&&(Rl=3):gc())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return Qi(),Os(e,t),null===e&&Hn(t.stateNode.containerInfo),Gs(t),null;case 10:return Ii(t.type._context),Gs(t),null;case 19:if(Co(ta),null===(s=t.memoizedState))return Gs(t),null;if(i=!!(128&t.flags),null===(l=s.rendering))if(i)$s(s,!1);else{if(0!==Rl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ra(e))){for(t.flags|=128,$s(s,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;null!==n;)e=i,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ao(ta,1&ta.current|2),t.child}e=e.sibling}null!==s.tail&&Qe()>Hl&&(t.flags|=128,i=!0,$s(s,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=ra(l))){if(t.flags|=128,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),$s(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ai)return Gs(t),null}else 2*Qe()-s.renderingStartTime>Hl&&1073741824!==n&&(t.flags|=128,i=!0,$s(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Qe(),t.sibling=null,n=ta.current,Ao(ta,i?1&n|2:1&n),t):(Gs(t),null);case 22:case 23:return fc(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?!!(1073741824&Ol)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(r(156,t.tag))}function Ks(e,t){switch(ni(t),t.tag){case 1:return Do(t.type)&&Ro(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Co(No),Co(Po),oa(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ea(t),null;case 13:if(Co(ta),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(r(340));mi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Co(ta),null;case 4:return Qi(),null;case 10:return Ii(t.type._context),null;case 22:case 23:return fc(),null;default:return null}}Bs=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Os=function(){},Ds=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Xi(Gi.current);var a,s=null;switch(r){case"input":i=X(e,i),n=X(e,n),s=[];break;case"select":i=j({},i,{value:void 0}),n=j({},n,{value:void 0}),s=[];break;case"textarea":i=oe(e,i),n=oe(e,n),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof n.onClick&&(e.onclick=eo)}for(u in be(r,n),r=null,i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(o.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in n){var c=n[u];if(l=null!=i?i[u]:void 0,n.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(r||(r={}),r[a]=c[a])}else r||(s||(s=[]),s.push(u,r)),r=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(o.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fn("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}r&&(s=s||[]).push("style",r);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},Rs=function(e,t,r,n){r!==n&&(t.flags|=4)};var Xs=!1,Js=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Zs=null;function el(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(n){Tc(e,t,n)}else r.current=null}function tl(e,t,r){try{r()}catch(n){Tc(e,t,n)}}var rl=!1;function nl(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&tl(t,r,i)}o=o.next}while(o!==n)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function il(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[mo],delete t[vo],delete t[yo],delete t[bo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=eo));else if(4!==n&&null!==(e=e.child))for(cl(e,t,r),e=e.sibling;null!==e;)cl(e,t,r),e=e.sibling}function ul(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(ul(e,t,r),e=e.sibling;null!==e;)ul(e,t,r),e=e.sibling}var dl=null,fl=!1;function hl(e,t,r){for(r=r.child;null!==r;)pl(e,t,r),r=r.sibling}function pl(e,t,r){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(it,r)}catch(s){}switch(r.tag){case 5:Js||el(r,t);case 6:var n=dl,o=fl;dl=null,hl(e,t,r),fl=o,null!==(dl=n)&&(fl?(e=dl,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):dl.removeChild(r.stateNode));break;case 18:null!==dl&&(fl?(e=dl,r=r.stateNode,8===e.nodeType?co(e.parentNode,r):1===e.nodeType&&co(e,r),Ht(e)):co(dl,r.stateNode));break;case 4:n=dl,o=fl,dl=r.stateNode.containerInfo,fl=!0,hl(e,t,r),dl=n,fl=o;break;case 0:case 11:case 14:case 15:if(!Js&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&tl(r,t,a),o=o.next}while(o!==n)}hl(e,t,r);break;case 1:if(!Js&&(el(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Tc(r,t,s)}hl(e,t,r);break;case 21:hl(e,t,r);break;case 22:1&r.mode?(Js=(n=Js)||null!==r.memoizedState,hl(e,t,r),Js=n):hl(e,t,r);break;default:hl(e,t,r)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Qs),t.forEach(function(t){var n=Ic.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))})}}function gl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var i=n[o];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,fl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,fl=!0;break e}l=l.return}if(null===dl)throw Error(r(160));pl(a,s,i),dl=null,fl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(u){Tc(i,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),yl(e),4&o){try{nl(3,e,e.return),ol(3,e)}catch(g){Tc(e,e.return,g)}try{nl(5,e,e.return)}catch(g){Tc(e,e.return,g)}}break;case 1:gl(t,e),yl(e),512&o&&null!==n&&el(n,n.return);break;case 5:if(gl(t,e),yl(e),512&o&&null!==n&&el(n,n.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(g){Tc(e,e.return,g)}}if(4&o&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(i,a),we(l,s);var u=we(l,a);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];"style"===d?ve(i,f):"dangerouslySetInnerHTML"===d?fe(i,f):"children"===d?he(i,f):v(i,d,f,u)}switch(l){case"input":Z(i,a);break;case"textarea":ae(i,a);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(i,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[mo]=a}catch(g){Tc(e,e.return,g)}}break;case 6:if(gl(t,e),yl(e),4&o){if(null===e.stateNode)throw Error(r(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(g){Tc(e,e.return,g)}}break;case 3:if(gl(t,e),yl(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(g){Tc(e,e.return,g)}break;case 4:default:gl(t,e),yl(e);break;case 13:gl(t,e),yl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(ql=Qe())),4&o&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Js=(u=Js)||d,gl(t,e),Js=u):gl(t,e),yl(e),8192&o){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Zs=e,d=e.child;null!==d;){for(f=Zs=d;null!==Zs;){switch(p=(h=Zs).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:el(h,h.return);var m=h.stateNode;if("function"==typeof m.componentWillUnmount){o=h,n=h.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Tc(o,n,g)}}break;case 5:el(h,h.return);break;case 22:if(null!==h.memoizedState){Sl(f);continue}}null!==p?(p.return=h,Zs=p):Sl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,u?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(c=f.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=ge("display",s))}catch(g){Tc(e,e.return,g)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){Tc(e,e.return,g)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gl(t,e),yl(e),4&o&&ml(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var o=n;break e}n=n.return}throw Error(r(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(he(i,""),o.flags&=-33),ul(e,ll(e),i);break;case 3:case 4:var a=o.stateNode.containerInfo;cl(e,ll(e),a);break;default:throw Error(r(161))}}catch(s){Tc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,r){Zs=e,wl(e)}function wl(e,t,r){for(var n=!!(1&e.mode);null!==Zs;){var o=Zs,i=o.child;if(22===o.tag&&n){var a=null!==o.memoizedState||Xs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Js;s=Xs;var c=Js;if(Xs=a,(Js=l)&&!c)for(Zs=o;null!==Zs;)l=(a=Zs).child,22===a.tag&&null!==a.memoizedState?kl(o):null!==l?(l.return=a,Zs=l):kl(o);for(;null!==i;)Zs=i,wl(i),i=i.sibling;Zs=o,Xs=s,Js=c}xl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Zs=i):xl(e)}}function xl(e){for(;null!==Zs;){var t=Zs;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Js||ol(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Js)if(null===n)o.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);o.componentDidUpdate(i,n.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wi(t,a,o);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Wi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Ht(f)}}}break;default:throw Error(r(163))}Js||512&t.flags&&il(t)}catch(h){Tc(t,t.return,h)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function Sl(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Zs=r;break}Zs=t.return}}function kl(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ol(4,t)}catch(l){Tc(t,r,l)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(l){Tc(t,o,l)}}var i=t.return;try{il(t)}catch(l){Tc(t,i,l)}break;case 5:var a=t.return;try{il(t)}catch(l){Tc(t,a,l)}}}catch(l){Tc(t,t.return,l)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var El,Tl=Math.ceil,_l=y.ReactCurrentDispatcher,Cl=y.ReactCurrentOwner,Al=y.ReactCurrentBatchConfig,Il=0,Pl=null,Nl=null,Bl=0,Ol=0,Dl=_o(0),Rl=0,Ml=null,zl=0,jl=0,Ll=0,Fl=null,Vl=null,ql=0,Hl=1/0,Ul=null,Wl=!1,$l=null,Gl=null,Yl=!1,Kl=null,Xl=0,Jl=0,Ql=null,Zl=-1,ec=0;function tc(){return 6&Il?Qe():-1!==Zl?Zl:Zl=Qe()}function rc(e){return 1&e.mode?2&Il&&0!==Bl?Bl&-Bl:null!==vi.transition?(0===ec&&(ec=gt()),ec):0!==(e=wt)?e:e=void 0===(e=window.event)?16:Jt(e.type):1}function nc(e,t,n,o){if(50<Jl)throw Jl=0,Ql=null,Error(r(185));yt(e,n,o),2&Il&&e===Pl||(e===Pl&&(!(2&Il)&&(jl|=n),4===Rl&&lc(e,Bl)),oc(e,o),1===n&&0===Il&&!(1&t.mode)&&(Hl=Qe()+500,Vo&&Uo()))}function oc(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-st(i),s=1<<a,l=o[a];-1===l?0!==(s&r)&&0===(s&n)||(o[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var n=ht(e,e===Pl?Bl:0);if(0===n)null!==r&&Ke(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Ke(r),1===t)0===e.tag?function(e){Vo=!0,Ho(e)}(cc.bind(null,e)):Ho(cc.bind(null,e)),so(function(){!(6&Il)&&Uo()}),r=null;else{switch(xt(n)){case 1:r=et;break;case 4:r=tt;break;case 16:default:r=rt;break;case 536870912:r=ot}r=Pc(r,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function ic(e,t){if(Zl=-1,ec=0,6&Il)throw Error(r(327));var n=e.callbackNode;if(kc()&&e.callbackNode!==n)return null;var o=ht(e,e===Pl?Bl:0);if(0===o)return null;if(30&o||0!==(o&e.expiredLanes)||t)t=vc(e,o);else{t=o;var i=Il;Il|=2;var a=mc();for(Pl===e&&Bl===t||(Ul=null,Hl=Qe()+500,hc(e,t));;)try{bc();break}catch(l){pc(e,l)}Ai(),_l.current=a,Il=i,null!==Nl?t=0:(Pl=null,Bl=0,t=Rl)}if(0!==t){if(2===t&&(0!==(i=mt(e))&&(o=i,t=ac(e,i))),1===t)throw n=Ml,hc(e,0),lc(e,o),oc(e,Qe()),n;if(6===t)lc(e,o);else{if(i=e.current.alternate,!(30&o||function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var o=r[n],i=o.getSnapshot;o=o.value;try{if(!ln(i(),o))return!1}catch(s){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=vc(e,o),2===t&&(a=mt(e),0!==a&&(o=a,t=ac(e,a))),1!==t)))throw n=Ml,hc(e,0),lc(e,o),oc(e,Qe()),n;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(r(345));case 2:case 5:Sc(e,Vl,Ul);break;case 3:if(lc(e,o),(130023424&o)===o&&10<(t=ql+500-Qe())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&o)!==o){tc(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=oo(Sc.bind(null,e,Vl,Ul),t);break}Sc(e,Vl,Ul);break;case 4:if(lc(e,o),(4194240&o)===o)break;for(t=e.eventTimes,i=-1;0<o;){var s=31-st(o);a=1<<s,(s=t[s])>i&&(i=s),o&=~a}if(o=i,10<(o=(120>(o=Qe()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Tl(o/1960))-o)){e.timeoutHandle=oo(Sc.bind(null,e,Vl,Ul),o);break}Sc(e,Vl,Ul);break;default:throw Error(r(329))}}}return oc(e,Qe()),e.callbackNode===n?ic.bind(null,e):null}function ac(e,t){var r=Fl;return e.current.memoizedState.isDehydrated&&(hc(e,t).flags|=256),2!==(e=vc(e,t))&&(t=Vl,Vl=r,null!==t&&sc(t)),e}function sc(e){null===Vl?Vl=e:Vl.push.apply(Vl,e)}function lc(e,t){for(t&=~Ll,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-st(t),n=1<<r;e[r]=-1,t&=~n}}function cc(e){if(6&Il)throw Error(r(327));kc();var t=ht(e,0);if(!(1&t))return oc(e,Qe()),null;var n=vc(e,t);if(0!==e.tag&&2===n){var o=mt(e);0!==o&&(t=o,n=ac(e,o))}if(1===n)throw n=Ml,hc(e,0),lc(e,t),oc(e,Qe()),n;if(6===n)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sc(e,Vl,Ul),oc(e,Qe()),null}function uc(e,t){var r=Il;Il|=1;try{return e(t)}finally{0===(Il=r)&&(Hl=Qe()+500,Vo&&Uo())}}function dc(e){null!==Kl&&0===Kl.tag&&!(6&Il)&&kc();var t=Il;Il|=1;var r=Al.transition,n=wt;try{if(Al.transition=null,wt=1,e)return e()}finally{wt=n,Al.transition=r,!(6&(Il=t))&&Uo()}}function fc(){Ol=Dl.current,Co(Dl)}function hc(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,io(r)),null!==Nl)for(r=Nl.return;null!==r;){var n=r;switch(ni(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Ro();break;case 3:Qi(),Co(No),Co(Po),oa();break;case 5:ea(n);break;case 4:Qi();break;case 13:case 19:Co(ta);break;case 10:Ii(n.type._context);break;case 22:case 23:fc()}r=r.return}if(Pl=e,Nl=e=Dc(e.current,null),Bl=Ol=t,Rl=0,Ml=null,Ll=jl=zl=0,Vl=Fl=null,null!==Oi){for(t=0;t<Oi.length;t++)if(null!==(n=(r=Oi[t]).interleaved)){r.interleaved=null;var o=n.next,i=r.pending;if(null!==i){var a=i.next;i.next=o,n.next=a}r.pending=n}Oi=null}return e}function pc(e,t){for(;;){var n=Nl;try{if(Ai(),ia.current=Za,da){for(var o=la.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}da=!1}if(sa=0,ua=ca=la=null,fa=!1,ha=0,Cl.current=null,null===n||null===n.return){Rl=1,Ml=t,Nl=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Bl,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=vs(s);if(null!==p){p.flags&=-257,ys(p,s,l,0,t),1&p.mode&&gs(a,u,t),c=u;var m=(t=p).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(!(1&t)){gs(a,u,t),gc();break e}c=Error(r(426))}else if(ai&&1&l.mode){var v=vs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),ys(v,s,l,0,t),gi(us(c,l));break e}}a=c=us(c,l),4!==Rl&&(Rl=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Hi(a,ps(0,c,t));break e;case 1:l=c;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Gl&&Gl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Hi(a,ms(a,l,t));break e}}a=a.return}while(null!==a)}xc(n)}catch(w){t=w,Nl===n&&null!==n&&(Nl=n=n.return);continue}break}}function mc(){var e=_l.current;return _l.current=Za,null===e?Za:e}function gc(){0!==Rl&&3!==Rl&&2!==Rl||(Rl=4),null===Pl||!(268435455&zl)&&!(268435455&jl)||lc(Pl,Bl)}function vc(e,t){var n=Il;Il|=2;var o=mc();for(Pl===e&&Bl===t||(Ul=null,hc(e,t));;)try{yc();break}catch(i){pc(e,i)}if(Ai(),Il=n,_l.current=o,null!==Nl)throw Error(r(261));return Pl=null,Bl=0,Rl}function yc(){for(;null!==Nl;)wc(Nl)}function bc(){for(;null!==Nl&&!Xe();)wc(Nl)}function wc(e){var t=El(e.alternate,e,Ol);e.memoizedProps=e.pendingProps,null===t?xc(e):Nl=t,Cl.current=null}function xc(e){var t=e;do{var r=t.alternate;if(e=t.return,32768&t.flags){if(null!==(r=Ks(r,t)))return r.flags&=32767,void(Nl=r);if(null===e)return Rl=6,void(Nl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(r=Ys(r,t,Ol)))return void(Nl=r);if(null!==(t=t.sibling))return void(Nl=t);Nl=t=e}while(null!==t);0===Rl&&(Rl=5)}function Sc(e,t,n){var o=wt,i=Al.transition;try{Al.transition=null,wt=1,function(e,t,n,o){do{kc()}while(null!==Kl);if(6&Il)throw Error(r(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-st(r),i=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~i}}(e,a),e===Pl&&(Nl=Pl=null,Bl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Yl||(Yl=!0,Pc(rt,function(){return kc(),null})),a=!!(15990&n.flags),!!(15990&n.subtreeFlags)||a){a=Al.transition,Al.transition=null;var s=wt;wt=1;var l=Il;Il|=4,Cl.current=null,function(e,t){if(to=Wt,pn(e=hn())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{n.nodeType,a.nodeType}catch(x){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==o&&3!==f.nodeType||(c=s+o),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===i&&(l=s),h===a&&++d===o&&(c=s),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ro={focusedElem:e,selectionRange:n},Wt=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ns(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(r(163))}}catch(x){Tc(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}m=rl,rl=!1}(e,n),vl(n,e),mn(ro),Wt=!!to,ro=to=null,e.current=n,bl(n),Je(),Il=l,wt=s,Al.transition=a}else e.current=n;if(Yl&&(Yl=!1,Kl=e,Xl=i),a=e.pendingLanes,0===a&&(Gl=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(t){}}(n.stateNode),oc(e,Qe()),null!==t)for(o=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],o(i.value,{componentStack:i.stack,digest:i.digest});if(Wl)throw Wl=!1,e=$l,$l=null,e;!!(1&Xl)&&0!==e.tag&&kc(),a=e.pendingLanes,1&a?e===Ql?Jl++:(Jl=0,Ql=e):Jl=0,Uo()}(e,t,n,o)}finally{Al.transition=i,wt=o}return null}function kc(){if(null!==Kl){var e=xt(Xl),t=Al.transition,n=wt;try{if(Al.transition=null,wt=16>e?16:e,null===Kl)var o=!1;else{if(e=Kl,Kl=null,Xl=0,6&Il)throw Error(r(331));var i=Il;for(Il|=4,Zs=e.current;null!==Zs;){var a=Zs,s=a.child;if(16&Zs.flags){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Zs=u;null!==Zs;){var d=Zs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Zs=f;else for(;null!==Zs;){var h=(d=Zs).sibling,p=d.return;if(al(d),d===u){Zs=null;break}if(null!==h){h.return=p,Zs=h;break}Zs=p}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Zs=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Zs=s;else e:for(;null!==Zs;){if(2048&(a=Zs).flags)switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Zs=y;break e}Zs=a.return}}var b=e.current;for(Zs=b;null!==Zs;){var w=(s=Zs).child;if(2064&s.subtreeFlags&&null!==w)w.return=s,Zs=w;else e:for(s=b;null!==Zs;){if(2048&(l=Zs).flags)try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(S){Tc(l,l.return,S)}if(l===s){Zs=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Zs=x;break e}Zs=l.return}}if(Il=i,Uo(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(it,e)}catch(S){}o=!0}return o}finally{wt=n,Al.transition=t}}return!1}function Ec(e,t,r){e=Vi(e,t=ps(0,t=us(r,t),1),1),t=tc(),null!==e&&(yt(e,1,t),oc(e,t))}function Tc(e,t,r){if(3===e.tag)Ec(e,e,r);else for(;null!==t;){if(3===t.tag){Ec(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Gl||!Gl.has(n))){t=Vi(t,e=ms(t,e=us(r,e),1),1),e=tc(),null!==t&&(yt(t,1,e),oc(t,e));break}}t=t.return}}function _c(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&r,Pl===e&&(Bl&r)===r&&(4===Rl||3===Rl&&(130023424&Bl)===Bl&&500>Qe()-ql?hc(e,0):Ll|=r),oc(e,t)}function Cc(e,t){0===t&&(1&e.mode?(t=dt,!(130023424&(dt<<=1))&&(dt=4194304)):t=1);var r=tc();null!==(e=Mi(e,t))&&(yt(e,t,r),oc(e,r))}function Ac(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Cc(e,r)}function Ic(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(r(314))}null!==o&&o.delete(t),Cc(e,n)}function Pc(e,t){return Ye(e,t)}function Nc(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bc(e,t,r,n){return new Nc(e,t,r,n)}function Oc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dc(e,t){var r=e.alternate;return null===r?((r=Bc(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Rc(e,t,n,o,i,a){var s=2;if(o=e,"function"==typeof e)Oc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Mc(n.children,i,a,t);case k:s=8,i|=8;break;case E:return(e=Bc(12,n,t,2|i)).elementType=E,e.lanes=a,e;case P:return(e=Bc(13,n,t,i)).elementType=P,e.lanes=a,e;case N:return(e=Bc(19,n,t,i)).elementType=N,e.lanes=a,e;case D:return zc(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case C:s=9;break e;case A:s=11;break e;case B:s=14;break e;case O:s=16,o=null;break e}throw Error(r(130,null==e?e:typeof e,""))}return(t=Bc(s,n,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Mc(e,t,r,n){return(e=Bc(7,e,n,t)).lanes=r,e}function zc(e,t,r,n){return(e=Bc(22,e,n,t)).elementType=D,e.lanes=r,e.stateNode={isHidden:!1},e}function jc(e,t,r){return(e=Bc(6,e,null,t)).lanes=r,e}function Lc(e,t,r){return(t=Bc(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Vc(e,t,r,n,o,i,a,s,l){return e=new Fc(e,t,r,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Bc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},ji(i),e}function qc(e){if(!e)return Io;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Do(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(r(171))}if(1===e.tag){var n=e.type;if(Do(n))return zo(e,n,t)}return t}function Hc(e,t,r,n,o,i,a,s,l){return(e=Vc(r,n,!0,e,0,i,0,s,l)).context=qc(null),r=e.current,(i=Fi(n=tc(),o=rc(r))).callback=null!=t?t:null,Vi(r,i,o),e.current.lanes=o,yt(e,o,n),oc(e,n),e}function Uc(e,t,r,n){var o=t.current,i=tc(),a=rc(o);return r=qc(r),null===t.context?t.context=r:t.pendingContext=r,(t=Fi(i,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Vi(o,t,a))&&(nc(e,o,a,i),qi(e,o,a)),a}function Wc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function $c(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Gc(e,t){$c(e,t),(e=e.alternate)&&$c(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||No.current)ws=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return ws=!1,function(e,t,r){switch(t.tag){case 3:Ps(t),mi();break;case 5:Zi(t);break;case 1:Do(t.type)&&jo(t);break;case 4:Ji(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;Ao(Ei,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(Ao(ta,1&ta.current),t.flags|=128,null):0!==(r&t.child.childLanes)?js(e,t,r):(Ao(ta,1&ta.current),null!==(e=Ws(e,t,r))?e.sibling:null);Ao(ta,1&ta.current);break;case 19:if(n=0!==(r&t.childLanes),128&e.flags){if(n)return Hs(e,t,r);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ao(ta,ta.current),n)break;return null;case 22:case 23:return t.lanes=0,Ts(e,t,r)}return Ws(e,t,r)}(e,t,n);ws=!!(131072&e.flags)}else ws=!1,ai&&1048576&t.flags&&ti(t,Yo,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Us(e,t),e=t.pendingProps;var i=Oo(t,Po.current);Ni(t,n),i=va(null,t,o,e,i,n);var a=ya();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Do(o)?(a=!0,jo(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ji(t),i.updater=is,t.stateNode=i,i._reactInternals=t,cs(t,o,e,n),t=Is(null,t,o,!0,a,n)):(t.tag=0,ai&&a&&ri(t),xs(null,t,i,n),t=t.child),t;case 16:o=t.elementType;e:{switch(Us(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Oc(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===B)return 14}return 2}(o),e=ns(o,e),i){case 0:t=Cs(null,t,o,e,n);break e;case 1:t=As(null,t,o,e,n);break e;case 11:t=Ss(null,t,o,e,n);break e;case 14:t=ks(null,t,o,ns(o.type,e),n);break e}throw Error(r(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,Cs(e,t,o,i=t.elementType===o?i:ns(o,i),n);case 1:return o=t.type,i=t.pendingProps,As(e,t,o,i=t.elementType===o?i:ns(o,i),n);case 3:e:{if(Ps(t),null===e)throw Error(r(387));o=t.pendingProps,i=(a=t.memoizedState).element,Li(e,t),Ui(t,o,null,n);var s=t.memoizedState;if(o=s.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ns(e,t,o,n,i=us(Error(r(423)),t));break e}if(o!==i){t=Ns(e,t,o,n,i=us(Error(r(424)),t));break e}for(ii=uo(t.stateNode.containerInfo.firstChild),oi=t,ai=!0,si=null,n=ki(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(mi(),o===i){t=Ws(e,t,n);break e}xs(e,t,o,n)}t=t.child}return t;case 5:return Zi(t),null===e&&di(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,no(o,i)?s=null:null!==a&&no(o,a)&&(t.flags|=32),_s(e,t),xs(e,t,s,n),t.child;case 6:return null===e&&di(t),null;case 13:return js(e,t,n);case 4:return Ji(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Si(t,null,o,n):xs(e,t,o,n),t.child;case 11:return o=t.type,i=t.pendingProps,Ss(e,t,o,i=t.elementType===o?i:ns(o,i),n);case 7:return xs(e,t,t.pendingProps,n),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ao(Ei,o._currentValue),o._currentValue=s,null!==a)if(ln(a.value,s)){if(a.children===i.children&&!No.current){t=Ws(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===o){if(1===a.tag){(c=Fi(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Pi(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(r(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Pi(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Ni(t,n),o=o(i=Bi(i)),t.flags|=1,xs(e,t,o,n),t.child;case 14:return i=ns(o=t.type,t.pendingProps),ks(e,t,o,i=ns(o.type,i),n);case 15:return Es(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:ns(o,i),Us(e,t),t.tag=1,Do(o)?(e=!0,jo(t)):e=!1,Ni(t,n),ss(t,o,i),cs(t,o,i,n),Is(null,t,o,!0,e,n);case 19:return Hs(e,t,n);case 22:return Ts(e,t,n)}throw Error(r(156,t.tag))};var Yc="function"==typeof reportError?reportError:function(e){console.error(e)};function Kc(e){this._internalRoot=e}function Xc(e){this._internalRoot=e}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function eu(e,t,r,n,o){var i=r._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Wc(a);s.call(e)}}Uc(t,a,e,o)}else a=function(e,t,r,n,o){if(o){if("function"==typeof n){var i=n;n=function(){var e=Wc(a);i.call(e)}}var a=Hc(t,n,e,0,null,!1,0,"",Zc);return e._reactRootContainer=a,e[go]=a.current,Hn(8===e.nodeType?e.parentNode:e),dc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof n){var s=n;n=function(){var e=Wc(l);s.call(e)}}var l=Vc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=l,e[go]=l.current,Hn(8===e.nodeType?e.parentNode:e),dc(function(){Uc(t,l,r,n)}),l}(r,t,e,o,n);return Wc(a)}Xc.prototype.render=Kc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));Uc(e,t,null,null)},Xc.prototype.unmount=Kc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc(function(){Uc(null,e,null,null)}),t[go]=null}},Xc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Tt();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Dt.length&&0!==t&&t<Dt[r].priority;r++);Dt.splice(r,0,e),0===r&&jt(e)}},St=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ft(t.pendingLanes);0!==r&&(bt(t,1|r),oc(t,Qe()),!(6&Il)&&(Hl=Qe()+500,Uo()))}break;case 13:dc(function(){var t=Mi(e,1);if(null!==t){var r=tc();nc(t,e,1,r)}}),Gc(e,1)}},kt=function(e){if(13===e.tag){var t=Mi(e,134217728);if(null!==t)nc(t,e,134217728,tc());Gc(e,134217728)}},Et=function(e){if(13===e.tag){var t=rc(e),r=Mi(e,t);if(null!==r)nc(r,e,t,tc());Gc(e,t)}},Tt=function(){return wt},_t=function(e,t){var r=wt;try{return wt=e,t()}finally{wt=r}},ke=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var i=ko(o);if(!i)throw Error(r(90));Y(o),Z(o,i)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ie=uc,Pe=dc;var tu={usingClientEntryPoint:!1,Events:[xo,So,ko,Ce,Ae,uc]},ru={findFiberByHostInstance:wo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:ru.bundleType,version:ru.version,rendererPackageName:ru.rendererPackageName,rendererConfig:ru.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:y.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:ru.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{it=ou.inject(nu),at=ou}catch(de){}}return _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,_.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Jc(t))throw Error(r(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,n)},_.createRoot=function(e,t){if(!Jc(e))throw Error(r(299));var n=!1,o="",i=Yc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Vc(e,1,!1,null,0,n,0,o,i),e[go]=t.current,Hn(8===e.nodeType?e.parentNode:e),new Kc(t)},_.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(r(188));throw e=Object.keys(e).join(","),Error(r(268,e))}return e=null===(e=$e(t))?null:e.stateNode},_.flushSync=function(e){return dc(e)},_.hydrate=function(e,t,n){if(!Qc(t))throw Error(r(200));return eu(null,e,t,!0,n)},_.hydrateRoot=function(e,t,n){if(!Jc(e))throw Error(r(405));var o=null!=n&&n.hydratedSources||null,i=!1,a="",s=Yc;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Hc(t,null,e,1,null!=n?n:null,i,0,a,s),e[go]=t.current,Hn(e),o)for(e=0;e<o.length;e++)i=(i=(n=o[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Xc(t)},_.render=function(e,t,n){if(!Qc(t))throw Error(r(200));return eu(null,e,t,!1,n)},_.unmountComponentAtNode=function(e){if(!Qc(e))throw Error(r(40));return!!e._reactRootContainer&&(dc(function(){eu(null,null,e,!1,function(){e._reactRootContainer=null,e[go]=null})}),!0)},_.unstable_batchedUpdates=uc,_.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!Qc(n))throw Error(r(200));if(null==e||void 0===e._reactInternals)throw Error(r(38));return eu(e,t,n,!1,o)},_.version="18.3.1-next-f1338f8080-20240426",_}function N(){if(S)return T.exports;return S=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),T.exports=P(),T.exports}const B=r(function(){if(k)return E;k=1;var e=N();return E.createRoot=e.createRoot,E.hydrateRoot=e.hydrateRoot,E}()),O=(e,t)=>t.some(t=>e===t||e.endsWith(`.${t}`)),D=class e{static setLogEnabled(e){this.logEnabled=e}static setWarnEnabled(e){this.warnEnabled=e}static setErrorEnabled(e){this.errorEnabled=e}static setLogAllowedKinds(e){this.logAllowedKinds=e}static setWarnAllowedKinds(e){this.warnAllowedKinds=e}static setErrorAllowedKinds(e){this.errorAllowedKinds=e}static setLogDisallowedKinds(e){this.logDisallowedKinds=e}static setWarnDisallowedKinds(e){this.warnDisallowedKinds=e}static setErrorDisallowedKinds(e){this.errorDisallowedKinds=e}static get isProduction(){return!0}static group(...t){e.logEnabled&&!e.isProduction&&console.group(...t)}static groupWithKind(t,...r){!e.logEnabled||e.isProduction||e.logAllowedKinds&&!e.logAllowedKinds.includes(t)||e.logDisallowedKinds&&e.logDisallowedKinds.includes(t)||console.group(...r)}static groupEnd(){e.logEnabled&&!e.isProduction&&console.groupEnd()}static groupEndWithKind(t){!e.logEnabled||e.isProduction||e.logAllowedKinds&&!e.logAllowedKinds.includes(t)||e.logDisallowedKinds&&e.logDisallowedKinds.includes(t)||console.groupEnd()}static info(...t){e.logEnabled&&!e.isProduction&&console.info(...t)}static infoWithKind(t,...r){!e.logEnabled||e.isProduction||e.logAllowedKinds&&!e.logAllowedKinds.includes(t)||e.logDisallowedKinds&&e.logDisallowedKinds.includes(t)||console.info(...r)}static log(...t){e.logEnabled&&!e.isProduction&&console.log(...t)}static logWithKind(t,...r){!e.logEnabled||e.isProduction||e.logAllowedKinds&&!e.logAllowedKinds.includes(t)||e.logDisallowedKinds&&e.logDisallowedKinds.includes(t)||console.log(...r)}static warn(...t){e.warnEnabled&&!e.isProduction&&console.warn(...t)}static warnWithKind(t,...r){!e.warnEnabled||e.isProduction||e.warnAllowedKinds&&!e.warnAllowedKinds.includes(t)||e.warnDisallowedKinds&&e.warnDisallowedKinds.includes(t)||console.warn(...r)}static error(...t){e.errorEnabled&&!e.isProduction&&console.error(...t)}static errorWithKind(t,...r){!e.errorEnabled||e.isProduction||e.errorAllowedKinds&&!e.errorAllowedKinds.includes(t)||e.errorDisallowedKinds&&e.errorDisallowedKinds.includes(t)||console.error(...r)}static withKind(t){return{log:(...r)=>e.logWithKind(t,...r),logWarn:(...r)=>e.warnWithKind(t,...r),logError:(...r)=>e.errorWithKind(t,...r),group:(...r)=>e.groupWithKind(t,...r),groupEnd:()=>e.groupEndWithKind(t),info:(...r)=>e.infoWithKind(t,...r)}}};D.logEnabled=!0,D.warnEnabled=!0,D.errorEnabled=!0,D.logAllowedKinds=null,D.warnAllowedKinds=null,D.errorAllowedKinds=null,D.logDisallowedKinds=null,D.warnDisallowedKinds=null,D.errorDisallowedKinds=null;let R=D;var M=(e=>(e.DirectLine="directline",e.LivePerson="liveperson",e))(M||{}),z=(e=>(e.WaaPro="WaaPro",e.WaaProLocal="WaaProLocal",e))(z||{}),j=(e=>(e.Day="theme-day",e.Night="theme-night",e))(j||{}),L=(e=>(e.Drawer="drawer",e.Fullscreen="fullscreen",e.Sidecar="sidecar",e))(L||{});const F="DirectLine",V="WebAssistantTokenApi",q="BotframeworkTokenApi",H="send-message",U="onAiSearchSubmit",W="waa:sendPrompt",$="startConversation",G="updatedPageContext",K="agentChanged",X="endQuoting",J="disableEndQuote",Q="enableEndQuote",Z="uca:chat-opened",ee="WAA",te="QuoteX",re="message",ne="legal",oe="waa.exp.uca.starterprompts",ie="waa.uca.eng.floatingbanner",ae="waa.uca.floatingbanner.master",se="waa.rollout.uca.offhours",le="waa.rollout.uca.telemetryproxy",ce="waa.rollout.uca.geoexpansion",ue="waa.rollout.uca.geoexpansion2a",de="waa.uca.sourcesitedetection",fe="waa.uca.eng.ratelimit",he="waa.exp.uca.copilotbusiness",pe={"6b3946b7-f637-400e-98a0-efd0d8dc1fa9":{featureFlag:"waa.exp.uca.azpricing",engine:"Feature Evaluator",name:"Azure Pricing",variationId:"20260909-W071-Azure Pricing",status:"50%"}},me=["ai","microsoft-fabric","security","microsoft-teams"],ge=["azure","power-platform","microsoft-365"],ve=["signup.azure.com","signup-staging.azure.com"],ye={agent:z.WaaPro,directLineDomain:"",directLineTokenUrl:"",partnerId:"00000000-0000-0000-0000-000000000000",theme:j.Day,mode:L.Sidecar,disableUnhandledErrorHandlers:!0,promptId:"",locale:""},be="[data-oc-chat]",we="data-oc-chat",xe="data-oc-ai-chat",Se=["Top","Right","Bottom","Left"];function ke(e,t,...r){const[n,o=n,i=n,a=o]=r,s=[n,o,i,a],l={};for(let c=0;c<s.length;c+=1)if(s[c]||0===s[c]){l[e+Se[c]+t]=s[c]}return l}function Ee(...e){return ke("border","Width",...e)}function Te(...e){return ke("border","Style",...e)}function _e(...e){return ke("border","Color",...e)}const Ce=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function Ae(e){return Ce.includes(e)}const Ie=e=>"number"==typeof e&&!Number.isNaN(e),Pe=e=>"auto"===e,Ne=["content","fit-content","max-content","min-content"],Be=e=>Ne.some(t=>e===t)||(e=>"string"==typeof e&&/(\d+(\w+|%))/.test(e))(e);const Oe=/var\(.*\)/gi;const De=/^[a-zA-Z0-9\-_\\#;]+$/,Re=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function Me(e){return void 0!==e&&"string"==typeof e&&De.test(e)&&!Re.test(e)}const ze=["-moz-initial","inherit","initial","revert","unset"];const je=["dashed","dotted","double","solid","wavy"];const Le="undefined"==typeof window?global:window,Fe="@griffel/";function Ve(e,t){return Le[Symbol.for(Fe+e)]||(Le[Symbol.for(Fe+e)]=t),Le[Symbol.for(Fe+e)]}const qe=Ve("DEFINITION_LOOKUP_TABLE",{}),He="data-make-styles-bucket",Ue="___",We={all:1,borderColor:1,borderStyle:1,borderWidth:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1},$e="DO_NOT_USE_DIRECTLY: @griffel/reset-value";function Ge(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}function Ye(e,t,r=[]){return Ue+function(e){const t=e.length;if(7===t)return e;for(let r=t;r<7;r++)e+="0";return e}(Ge(e+t))}function Ke(e,t){let r="",n="";for(const o in e){const i=e[o];if(0===i){n+=o+" ";continue}const a=Array.isArray(i),s="rtl"===t?(a?i[1]:i)+" ":(a?i[0]:i)+" ";r+=s,n+=s}return[r.slice(0,-1),n.slice(0,-1)]}function Xe(e,t){const r={};for(const n in e){const[o,i]=Ke(e[n],t);if(""===i){r[n]="";continue}const a=Ye(i,t),s=a+(""===o?"":" "+o);qe[a]=[e[n],t],r[n]=s}return r}const Je={};function Qe(){let e=null,t="",r="";const n=new Array(arguments.length);for(let d=0;d<arguments.length;d++){const e=arguments[d];if("string"==typeof e&&""!==e){const o=e.indexOf(Ue);if(-1===o)t+=e+" ";else{const i=e.substr(o,10);o>0&&(t+=e.slice(0,o)),r+=i,n[d]=i}}}if(""===r)return t.slice(0,-1);const o=Je[r];if(void 0!==o)return t+o;const i=[];for(let d=0;d<arguments.length;d++){const t=n[d];if(t){const r=qe[t];r&&(i.push(r[0]),e=r[1])}}const a=Object.assign.apply(Object,[{}].concat(i)),[s,l]=Ke(a,e),c=Ye(l,e,n),u=c+" "+s;return Je[r]=u,qe[c]=[a,e],t+u}function Ze(e){return Array.isArray(e)?e:[e]}const et=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"].reduce((e,t,r)=>(e[t]=r,e),{});function tt(e,t,r,n,o={}){var i,a;const s="m"===e,l=null!==(i=o.m)&&void 0!==i?i:"0",c=null!==(a=o.p)&&void 0!==a?a:0,u=function(e,t,r){return("m"===e?e+t:e)+r}(e,l,c);if(!n.stylesheets[u]){const i=t&&t.createElement("style"),a=function(e,t,r,n){const o=[];if(n[He]=t,n["data-priority"]=String(r),e)for(const i in n)e.setAttribute(i,n[i]);return{elementAttributes:n,insertRule:function(t){return(null==e?void 0:e.sheet)?e.sheet.insertRule(t,e.sheet.cssRules.length):o.push(t)},element:e,bucketName:t,cssRules:()=>(null==e?void 0:e.sheet)?Array.from(e.sheet.cssRules).map(e=>e.cssText):o}}(i,e,c,Object.assign({},n.styleElementAttributes,s&&{media:l}));n.stylesheets[u]=a,(null==t?void 0:t.head)&&i&&t.head.insertBefore(i,function(e,t,r,n,o={}){var i,a;const s=et[r],l=null!==(i=o.m)&&void 0!==i?i:"",c=null!==(a=o.p)&&void 0!==a?a:0;let u=e=>s-et[e.getAttribute(He)],d=e.head.querySelectorAll(`[${He}]`);if("m"===r){const t=e.head.querySelectorAll(`[${He}="${r}"]`);t.length&&(d=t,u=e=>n.compareMediaQueries(l,e.media))}const f=e=>function(e,t,r){var n,o;const i=t+(null!==(n=r.m)&&void 0!==n?n:""),a=e.getAttribute(He)+(null!==(o=e.media)&&void 0!==o?o:"");return i===a}(e,r,o)?c-Number(e.getAttribute("data-priority")):u(e),h=d.length;let p=h-1;for(;p>=0;){const e=d.item(p);if(f(e)>0)return e.nextSibling;p--}if(h>0)return d.item(0);return t?t.nextSibling:null}(t,r,e,n,o))}return n.stylesheets[u]}function rt(e,t){try{e.insertRule(t)}catch(r){}}let nt=0;const ot=(e,t)=>e<t?-1:e>t?1:0;function it(e=("undefined"==typeof document?void 0:document),t={}){const{classNameHashSalt:r,unstable_filterCSSRule:n,insertionPoint:o,styleElementAttributes:i,compareMediaQueries:a=ot}=t,s={classNameHashSalt:r,insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(i),compareMediaQueries:a,id:"d"+nt++,insertCSSRules(t){for(const r in t){const i=t[r];for(let t=0,a=i.length;t<a;t++){const[a,l]=Ze(i[t]),c=tt(r,e,o||null,s,l);s.insertionCache[a]||(s.insertionCache[a]=r,n?n(a)&&rt(c,a):rt(c,a))}}}};return s}const at=()=>{const e={};return function(t,r){void 0===e[t.id]&&(t.insertCSSRules(r),e[t.id]=!0)}};function st(e){return e.reduce(function(e,t){var r=t[0],n=t[1];return e[r]=n,e[n]=r,e},{})}function lt(e){return"number"==typeof e}function ct(e,t){return-1!==e.indexOf(t)}function ut(e,t,r,n){return t+(o=r,0===parseFloat(o)?o:"-"===o[0]?o.slice(1):"-"+o)+n;var o}function dt(e){return e.replace(/ +/g," ").split(" ").map(function(e){return e.trim()}).filter(Boolean).reduce(function(e,t){var r=e.list,n=e.state,o=(t.match(/\(/g)||[]).length,i=(t.match(/\)/g)||[]).length;return n.parensDepth>0?r[r.length-1]=r[r.length-1]+" "+t:r.push(t),n.parensDepth+=o-i,{list:r,state:n}},{list:[],state:{parensDepth:0}}).list}function ft(e){var t=dt(e);if(t.length<=3||t.length>4)return e;var r=t[0],n=t[1],o=t[2];return[r,t[3],o,n].join(" ")}var ht={padding:function(e){var t=e.value;return lt(t)?t:ft(t)},textShadow:function(e){var t=function(e){for(var t=[],r=0,n=0,o=!1;n<e.length;)o||","!==e[n]?"("===e[n]?(o=!0,n++):")"===e[n]?(o=!1,n++):n++:(t.push(e.substring(r,n).trim()),r=++n);return r!=n&&t.push(e.substring(r,n+1)),t}(e.value).map(function(e){return e.replace(/(^|\s)(-*)([.|\d]+)/,function(e,t,r,n){return"0"===n?e:""+t+(""===r?"-":"")+n})});return t.join(",")},borderColor:function(e){return ft(e.value)},borderRadius:function(e){var t=e.value;if(lt(t))return t;if(ct(t,"/")){var r=t.split("/"),n=r[0],o=r[1];return ht.borderRadius({value:n.trim()})+" / "+ht.borderRadius({value:o.trim()})}var i=dt(t);switch(i.length){case 2:return i.reverse().join(" ");case 4:var a=i[0],s=i[1],l=i[2];return[s,a,i[3],l].join(" ");default:return t}},background:function(e){var t=e.value,r=e.valuesToConvert,n=e.isRtl,o=e.bgImgDirectionRegex,i=e.bgPosDirectionRegex;if(lt(t))return t;var a=t.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return t=t.replace(a,ht.backgroundPosition({value:a,valuesToConvert:r,isRtl:n,bgPosDirectionRegex:i})),ht.backgroundImage({value:t,valuesToConvert:r,bgImgDirectionRegex:o})},backgroundImage:function(e){var t=e.value,r=e.valuesToConvert,n=e.bgImgDirectionRegex;return ct(t,"url(")||ct(t,"linear-gradient(")?t.replace(n,function(e,t,n){return e.replace(n,r[n])}):t},backgroundPosition:function(e){var t=e.value,r=e.valuesToConvert,n=e.isRtl,o=e.bgPosDirectionRegex;return t.replace(n?/^((-|\d|\.)+%)/:null,function(e,t){return function(e){var t=e.indexOf(".");if(-1===t)e=100-parseFloat(e)+"%";else{var r=e.length-t-2;e=(e=100-parseFloat(e)).toFixed(r)+"%"}return e}(t)}).replace(o,function(e){return r[e]})},backgroundPositionX:function(e){var t=e.value,r=e.valuesToConvert,n=e.isRtl,o=e.bgPosDirectionRegex;return lt(t)?t:ht.backgroundPosition({value:t,valuesToConvert:r,isRtl:n,bgPosDirectionRegex:o})},transition:function(e){var t=e.value,r=e.propertiesToConvert;return t.split(/,\s*/g).map(function(e){var t=e.split(" ");return t[0]=r[t[0]]||t[0],t.join(" ")}).join(", ")},transitionProperty:function(e){var t=e.value,r=e.propertiesToConvert;return t.split(/,\s*/g).map(function(e){return r[e]||e}).join(", ")},transform:function(e){var t=e.value,r="[^\\u0020-\\u007e]",n="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",o="((?:-?(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|-?(?:[_a-z]|"+r+"|"+n+")(?:[_a-z0-9-]|"+r+"|"+n+")*)?)|(?:inherit|auto))",i=new RegExp("(translateX\\s*\\(\\s*)"+o+"(\\s*\\))","gi"),a=new RegExp("(translate\\s*\\(\\s*)"+o+"((?:\\s*,\\s*"+o+"){0,1}\\s*\\))","gi"),s=new RegExp("(translate3d\\s*\\(\\s*)"+o+"((?:\\s*,\\s*"+o+"){0,2}\\s*\\))","gi"),l=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+o+"(\\s*\\))","gi");return t.replace(i,ut).replace(a,ut).replace(s,ut).replace(l,ut)}};ht.objectPosition=ht.backgroundPosition,ht.margin=ht.padding,ht.borderWidth=ht.padding,ht.boxShadow=ht.textShadow,ht.webkitBoxShadow=ht.boxShadow,ht.mozBoxShadow=ht.boxShadow,ht.WebkitBoxShadow=ht.boxShadow,ht.MozBoxShadow=ht.boxShadow,ht.borderStyle=ht.borderColor,ht.webkitTransform=ht.transform,ht.mozTransform=ht.transform,ht.WebkitTransform=ht.transform,ht.MozTransform=ht.transform,ht.transformOrigin=ht.backgroundPosition,ht.webkitTransformOrigin=ht.transformOrigin,ht.mozTransformOrigin=ht.transformOrigin,ht.WebkitTransformOrigin=ht.transformOrigin,ht.MozTransformOrigin=ht.transformOrigin,ht.webkitTransition=ht.transition,ht.mozTransition=ht.transition,ht.WebkitTransition=ht.transition,ht.MozTransition=ht.transition,ht.webkitTransitionProperty=ht.transitionProperty,ht.mozTransitionProperty=ht.transitionProperty,ht.WebkitTransitionProperty=ht.transitionProperty,ht.MozTransitionProperty=ht.transitionProperty,ht["text-shadow"]=ht.textShadow,ht["border-color"]=ht.borderColor,ht["border-radius"]=ht.borderRadius,ht["background-image"]=ht.backgroundImage,ht["background-position"]=ht.backgroundPosition,ht["background-position-x"]=ht.backgroundPositionX,ht["object-position"]=ht.objectPosition,ht["border-width"]=ht.padding,ht["box-shadow"]=ht.textShadow,ht["-webkit-box-shadow"]=ht.textShadow,ht["-moz-box-shadow"]=ht.textShadow,ht["border-style"]=ht.borderColor,ht["-webkit-transform"]=ht.transform,ht["-moz-transform"]=ht.transform,ht["transform-origin"]=ht.transformOrigin,ht["-webkit-transform-origin"]=ht.transformOrigin,ht["-moz-transform-origin"]=ht.transformOrigin,ht["-webkit-transition"]=ht.transition,ht["-moz-transition"]=ht.transition,ht["transition-property"]=ht.transitionProperty,ht["-webkit-transition-property"]=ht.transitionProperty,ht["-moz-transition-property"]=ht.transitionProperty;var pt=st([["paddingLeft","paddingRight"],["marginLeft","marginRight"],["left","right"],["borderLeft","borderRight"],["borderLeftColor","borderRightColor"],["borderLeftStyle","borderRightStyle"],["borderLeftWidth","borderRightWidth"],["borderTopLeftRadius","borderTopRightRadius"],["borderBottomLeftRadius","borderBottomRightRadius"],["padding-left","padding-right"],["margin-left","margin-right"],["border-left","border-right"],["border-left-color","border-right-color"],["border-left-style","border-right-style"],["border-left-width","border-right-width"],["border-top-left-radius","border-top-right-radius"],["border-bottom-left-radius","border-bottom-right-radius"]]),mt=["content"],gt=st([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),vt=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),yt=new RegExp("(left)|(right)");function bt(e){return Object.keys(e).reduce(function(t,r){var n=e[r];if("string"==typeof n&&(n=n.trim()),ct(mt,r))return t[r]=n,t;var o=wt(r,n),i=o.key,a=o.value;return t[i]=a,t},Array.isArray(e)?[]:{})}function wt(e,t){var r,n=/\/\*\s?@noflip\s?\*\//.test(t),o=n?e:pt[r=e]||r,i=n?t:function(e,t){if(!function(e){return t=e,!("boolean"==typeof t||function(e){return null==e}(e));var t}(t))return t;if(r=t,r&&"object"==typeof r)return bt(t);var r;var n,o=lt(t),i=function(e){return"function"==typeof e}(t),a=o||i?t:t.replace(/ !important.*?$/,""),s=!o&&a.length!==t.length,l=ht[e];n=l?l({value:a,valuesToConvert:gt,propertiesToConvert:pt,isRtl:!0,bgImgDirectionRegex:vt,bgPosDirectionRegex:yt}):gt[a]||a;if(s)return n+" !important";return n}(o,t);return{key:o,value:i}}const xt=/[A-Z]/g,St=/^ms-/,kt={};function Et(e){return"-"+e.toLowerCase()}function Tt(e){if(Object.prototype.hasOwnProperty.call(kt,e))return kt[e];if("--"===e.substr(0,2))return e;const t=e.replace(xt,Et);return kt[e]=St.test(t)?"-"+t:t}function _t(e){return"&"===e.charAt(0)?e.slice(1):e}var Ct="-moz-",At="-webkit-",It="comm",Pt="rule",Nt="decl",Bt="@layer",Ot=Math.abs,Dt=String.fromCharCode,Rt=Object.assign;function Mt(e){return e.trim()}function zt(e,t){return(e=t.exec(e))?e[0]:e}function jt(e,t,r){return e.replace(t,r)}function Lt(e,t,r){return e.indexOf(t,r)}function Ft(e,t){return 0|e.charCodeAt(t)}function Vt(e,t,r){return e.slice(t,r)}function qt(e){return e.length}function Ht(e){return e.length}function Ut(e,t){return t.push(e),e}var Wt=1,$t=1,Gt=0,Yt=0,Kt=0,Xt="";function Jt(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Wt,column:$t,length:a,return:"",siblings:s}}function Qt(e,t){return Rt(Jt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Zt(){return Kt=Yt>0?Ft(Xt,--Yt):0,$t--,10===Kt&&($t=1,Wt--),Kt}function er(){return Kt=Yt<Gt?Ft(Xt,Yt++):0,$t++,10===Kt&&($t=1,Wt++),Kt}function tr(){return Ft(Xt,Yt)}function rr(){return Yt}function nr(e,t){return Vt(Xt,e,t)}function or(e){switch(e){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 ir(e){return Wt=$t=1,Gt=qt(Xt=e),Yt=0,[]}function ar(e){return Xt="",e}function sr(e){return Mt(nr(Yt-1,dr(91===e?e+2:40===e?e+1:e)))}function lr(e){return ar(function(e){for(;er();)switch(or(Kt)){case 0:Ut(hr(Yt-1),e);break;case 2:Ut(sr(Kt),e);break;default:Ut(Dt(Kt),e)}return e}(ir(e)))}function cr(e){for(;(Kt=tr())&&Kt<33;)er();return or(e)>2||or(Kt)>3?"":" "}function ur(e,t){for(;--t&&er()&&!(Kt<48||Kt>102||Kt>57&&Kt<65||Kt>70&&Kt<97););return nr(e,rr()+(t<6&&32==tr()&&32==er()))}function dr(e){for(;er();)switch(Kt){case e:return Yt;case 34:case 39:34!==e&&39!==e&&dr(Kt);break;case 40:41===e&&dr(e);break;case 92:er()}return Yt}function fr(e,t){for(;er()&&e+Kt!==57&&(e+Kt!==84||47!==tr()););return"/*"+nr(t,Yt-1)+"*"+Dt(47===e?e:er())}function hr(e){for(;!or(tr());)er();return nr(e,Yt)}function pr(e){return ar(mr("",null,null,null,[""],e=ir(e),0,[0],e))}function mr(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,m=1,g=1,v=1,y=0,b="",w=o,x=i,S=n,k=b;g;)switch(p=y,y=er()){case 40:if(108!=p&&58==Ft(k,d-1)){-1!=Lt(k+=jt(sr(y),"&","&\f"),"&\f",Ot(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:k+=sr(y);break;case 9:case 10:case 13:case 32:k+=cr(p);break;case 92:k+=ur(rr()-1,7);continue;case 47:switch(tr()){case 42:case 47:Ut(vr(fr(er(),rr()),t,r,l),l),5!=or(p||1)&&5!=or(tr()||1)||!qt(k)||" "===Vt(k,-1,void 0)||(k+=" ");break;default:k+="/"}break;case 123*m:s[c++]=qt(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(k=jt(k,/\f/g,"")),h>0&&(qt(k)-d||0===m&&47===p)&&Ut(h>32?yr(k+";",n,r,d-1,l):yr(jt(k," ","")+";",n,r,d-2,l),l);break;case 59:k+=";";default:if(Ut(S=gr(k,t,r,c,u,o,s,b,w=[],x=[],d,i),i),123===y)if(0===u)mr(k,t,S,S,w,i,d,s,x);else{switch(f){case 99:if(110===Ft(k,3))break;case 108:if(97===Ft(k,2))break;default:u=0;case 100:case 109:case 115:}u?mr(e,S,S,n&&Ut(gr(e,S,S,0,0,o,s,b,o,w=[],d,x),x),o,x,d,s,n?w:x):mr(k,S,S,S,[""],x,0,s,x)}}c=u=h=0,m=v=1,b=k="",d=a;break;case 58:d=1+qt(k),h=p;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Zt())continue;switch(k+=Dt(y),y*m){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(qt(k)-1)*v,v=1;break;case 64:45===tr()&&(k+=sr(er())),f=tr(),u=d=qt(b=k+=hr(rr())),y++;break;case 45:45===p&&2==qt(k)&&(m=0)}}return i}function gr(e,t,r,n,o,i,a,s,l,c,u,d){for(var f=o-1,h=0===o?i:[""],p=Ht(h),m=0,g=0,v=0;m<n;++m)for(var y=0,b=Vt(e,f+1,f=Ot(g=a[m])),w=e;y<p;++y)(w=Mt(g>0?h[y]+" "+b:jt(b,/&\f/g,h[y])))&&(l[v++]=w);return Jt(e,t,r,0===o?Pt:s,l,c,u,d)}function vr(e,t,r,n){return Jt(e,t,r,It,Dt(Kt),Vt(e,2,-2),0,n)}function yr(e,t,r,n,o){return Jt(e,t,r,Nt,Vt(e,0,n),Vt(e,n+1,-1),n,o)}function br(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function wr(e,t,r,n){switch(e.type){case Bt:if(e.children.length)break;case"@import":case"@namespace":case Nt:return e.return=e.return||e.value;case It:return"";case"@keyframes":return e.return=e.value+"{"+br(e.children,n)+"}";case Pt:if(!qt(e.value=e.props.join(",")))return""}return qt(r=br(e.children,n))?e.return=e.value+"{"+r+"}":""}function xr(e){var t=Ht(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function Sr(e){return function(t){t.root||(t=t.return)&&e(t)}}const kr=e=>{if(e.type===Pt){if("string"==typeof e.props)return;e.props=e.props.map(e=>-1===e.indexOf(":global(")?e:lr(e).reduce((e,t,r,n)=>{if(""===t)return e;if(":"===t&&"global"===n[r+1]){const t=n[r+2].slice(1,-1)+" ";return e.unshift(t),n[r+1]="",n[r+2]="",e}return e.push(t),e},[]).join(""))}};function Er(e,t,r){switch(function(e,t){return 45^Ft(e,0)?(((t<<2^Ft(e,0))<<2^Ft(e,1))<<2^Ft(e,2))<<2^Ft(e,3):0}(e,t)){case 5103:return At+"print-"+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return At+e+e;case 4215:if(102===Ft(e,9))return At+e+e;if(116===Ft(e,t+1))return At+e+e;break;case 4789:return Ct+e+e;case 5349:case 4246:case 6968:return At+e+Ct+e+e;case 6187:if(!zt(e,/grab/))return jt(jt(jt(e,/(zoom-|grab)/,At+"$1"),/(image-set)/,At+"$1"),e,"")+e;case 5495:case 3959:return jt(e,/(image-set\([^]*)/,At+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return jt(e,/(.+)-inline(.+)/,At+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(qt(e)-1-t>6)switch(Ft(e,t+1)){case 102:if(108===Ft(e,t+3))return jt(e,/(.+:)(.+)-([^]+)/,"$1"+At+"$2-$3$1"+Ct+(108==Ft(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Lt(e,"stretch")?Er(jt(e,"stretch","fill-available"),t)+e:e}}return e}function Tr(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Nt:return void(e.return=Er(e.value,e.length));case Pt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(zt(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return br([Qt(e,{props:[jt(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return br([Qt(e,{props:[jt(t,/:(plac\w+)/,":"+At+"input-$1")]}),Qt(e,{props:[jt(t,/:(plac\w+)/,":-moz-$1")]})],n)}return""})}}const _r=e=>{(function(e){switch(e.type){case"@container":case"@media":case"@supports":case Bt:return!0}return!1})(e)&&Array.isArray(e.children)&&e.children.sort((e,t)=>e.props[0]>t.props[0]?1:-1)};const Cr=/,( *[^ &])/g;function Ar(e,t,r){let n=t;return r.length>0&&(n=r.reduceRight((e,t)=>{return`${r=t,"&"+_t(r.replace(Cr,",&$1"))} { ${e} }`;var r},t)),`${e}{${n}}`}function Ir(e,t){const{className:r,selectors:n,property:o,rtlClassName:i,rtlProperty:a,rtlValue:s,value:l}=e,{container:c,layer:u,media:d,supports:f}=t;let h=Ar(`.${r}`,Array.isArray(l)?`${l.map(e=>`${Tt(o)}: ${e}`).join(";")};`:`${Tt(o)}: ${l};`,n);if(a&&i){h+=Ar(`.${i}`,Array.isArray(s)?`${s.map(e=>`${Tt(a)}: ${e}`).join(";")};`:`${Tt(a)}: ${s};`,n)}return d&&(h=`@media ${d} { ${h} }`),u&&(h=`@layer ${u} { ${h} }`),f&&(h=`@supports ${f} { ${h} }`),c&&(h=`@container ${c} { ${h} }`),function(e){const t=[];return br(pr(e),xr([kr,_r,Tr,wr,Sr(e=>t.push(e))])),t}(h)}function Pr(e){let t="";for(const r in e){const n=e[r];if("string"!=typeof n&&"number"!=typeof n){if(Array.isArray(n))for(const e of n)t+=Tt(r)+":"+e+";"}else t+=Tt(r)+":"+n+";"}return t}function Nr(e){let t="";for(const r in e)t+=`${r}{${Pr(e[r])}}`;return t}function Br(e,t){const r=[];return br(pr(`@keyframes ${e} {${t}}`),xr([wr,Tr,Sr(e=>r.push(e))])),r}const Or={animation:[-1,["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimeline","animationTimingFunction"]],animationRange:[-1,["animationRangeEnd","animationRangeStart"]],background:[-2,["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"]],backgroundPosition:[-1,["backgroundPositionX","backgroundPositionY"]],border:[-2,["borderBottom","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderTop","borderTopColor","borderTopStyle","borderTopWidth"]],borderBottom:[-1,["borderBottomColor","borderBottomStyle","borderBottomWidth"]],borderImage:[-1,["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"]],borderLeft:[-1,["borderLeftColor","borderLeftStyle","borderLeftWidth"]],borderRadius:[-1,["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"]],borderRight:[-1,["borderRightColor","borderRightStyle","borderRightWidth"]],borderTop:[-1,["borderTopColor","borderTopStyle","borderTopWidth"]],caret:[-1,["caretColor","caretShape"]],columnRule:[-1,["columnRuleColor","columnRuleStyle","columnRuleWidth"]],columns:[-1,["columnCount","columnWidth"]],containIntrinsicSize:[-1,["containIntrinsicHeight","containIntrinsicWidth"]],container:[-1,["containerName","containerType"]],flex:[-1,["flexBasis","flexGrow","flexShrink"]],flexFlow:[-1,["flexDirection","flexWrap"]],font:[-1,["fontFamily","fontSize","fontStretch","fontStyle","fontVariant","fontWeight","lineHeight"]],gap:[-1,["columnGap","rowGap"]],grid:[-1,["columnGap","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumnGap","gridRowGap","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","rowGap"]],gridArea:[-1,["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"]],gridColumn:[-1,["gridColumnEnd","gridColumnStart"]],gridRow:[-1,["gridRowEnd","gridRowStart"]],gridTemplate:[-1,["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"]],inset:[-1,["bottom","left","right","top"]],insetBlock:[-1,["insetBlockEnd","insetBlockStart"]],insetInline:[-1,["insetInlineEnd","insetInlineStart"]],listStyle:[-1,["listStyleImage","listStylePosition","listStyleType"]],margin:[-1,["marginBottom","marginLeft","marginRight","marginTop"]],marginBlock:[-1,["marginBlockEnd","marginBlockStart"]],marginInline:[-1,["marginInlineEnd","marginInlineStart"]],mask:[-1,["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPosition","maskRepeat","maskSize"]],maskBorder:[-1,["maskBorderMode","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth"]],offset:[-1,["offsetAnchor","offsetDistance","offsetPath","offsetPosition","offsetRotate"]],outline:[-1,["outlineColor","outlineStyle","outlineWidth"]],overflow:[-1,["overflowX","overflowY"]],overscrollBehavior:[-1,["overscrollBehaviorX","overscrollBehaviorY"]],padding:[-1,["paddingBottom","paddingLeft","paddingRight","paddingTop"]],paddingBlock:[-1,["paddingBlockEnd","paddingBlockStart"]],paddingInline:[-1,["paddingInlineEnd","paddingInlineStart"]],placeContent:[-1,["alignContent","justifyContent"]],placeItems:[-1,["alignItems","justifyItems"]],placeSelf:[-1,["alignSelf","justifySelf"]],scrollMargin:[-1,["scrollMarginBottom","scrollMarginLeft","scrollMarginRight","scrollMarginTop"]],scrollMarginBlock:[-1,["scrollMarginBlockEnd","scrollMarginBlockStart"]],scrollMarginInline:[-1,["scrollMarginInlineEnd","scrollMarginInlineStart"]],scrollPadding:[-1,["scrollPaddingBottom","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop"]],scrollPaddingBlock:[-1,["scrollPaddingBlockEnd","scrollPaddingBlockStart"]],scrollPaddingInline:[-1,["scrollPaddingInlineEnd","scrollPaddingInlineStart"]],scrollTimeline:[-1,["scrollTimelineAxis","scrollTimelineName"]],textDecoration:[-1,["textDecorationColor","textDecorationLine","textDecorationStyle","textDecorationThickness"]],textEmphasis:[-1,["textEmphasisColor","textEmphasisStyle"]],transition:[-1,["transitionBehavior","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"]],viewTimeline:[-1,["viewTimelineAxis","viewTimelineName"]]};function Dr(e,t){return 0===e.length?t:`${e} and ${t}`}function Rr(e){return"@media"===e.substr(0,6)}function Mr(e){return"@layer"===e.substr(0,6)}const zr=/^(:|\[|>|&)/;function jr(e){return zr.test(e)}function Lr(e){return"@supports"===e.substr(0,9)}function Fr(e){return"@container"===e.substring(0,10)}function Vr(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}const qr={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function Hr(e,t){if(t.media)return"m";if(t.layer||t.supports)return"t";if(t.container)return"c";if(e.length>0){const t=e[0].trim();if(58===t.charCodeAt(0))return qr[t.slice(4,8)]||qr[t.slice(3,5)]||"d"}return"d"}function Ur(e,t){return e?t+e:e}function Wr(e){return Ur(e.container,"c")+Ur(e.media,"m")+Ur(e.layer,"l")+Ur(e.supports,"s")}function $r(e,t,r){const n=Ge(e+Wr(r)+t),o=n.charCodeAt(0);return o>=48&&o<=57?String.fromCharCode(o+17)+n.slice(1):n}function Gr({property:e,selector:t,salt:r,value:n},o){return"f"+Ge(r+t+Wr(o)+e+n.trim())}function Yr(e){return e===$e}function Kr(e){return e.replace(/>\s+/g,">")}function Xr(e,t){}function Jr(e){return Or[e]}function Qr(e){var t;return null!==(t=null==e?void 0:e[0])&&void 0!==t?t:0}function Zr(e,t,r,n){e[t]=n?[r,n]:r}function en(e,t){return t.length>0?[e,Object.fromEntries(t)]:e}function tn(e,t,r,n,o,i){var a;const s=[];0!==i&&s.push(["p",i]),"m"===t&&o&&s.push(["m",o]),null!==(a=e[t])&&void 0!==a||(e[t]=[]),r&&e[t].push(en(r,s)),n&&e[t].push(en(n,s))}function rn(e,t="",r=[],n={container:"",layer:"",media:"",supports:""},o={},i={},a){for(const s in e){if(We.hasOwnProperty(s)){Xr(0,e[s]);continue}const l=e[s];if(null!=l){if(Yr(l)){Zr(o,$r(Kr(r.join("")),s,n),0,void 0);continue}if("string"==typeof l||"number"==typeof l){const e=Kr(r.join("")),c=Jr(s);if(c){const e=c[1];rn(Object.fromEntries(e.map(e=>[e,$e])),t,r,n,o,i)}const u=$r(e,s,n),d=Gr({value:l.toString(),salt:t,selector:e,property:s},n),f=a&&{key:s,value:a}||wt(s,l),h=f.key!==s||f.value!==l,p=h?Gr({value:f.value.toString(),property:f.key,salt:t,selector:e},n):void 0,m=h?{rtlClassName:p,rtlProperty:f.key,rtlValue:f.value}:void 0,g=Hr(r,n),[v,y]=Ir(Object.assign({className:d,selectors:r,property:s,value:l},m),n);Zr(o,u,d,p),tn(i,g,v,y,n.media,Qr(c))}else if("animationName"===s){const e=Array.isArray(l)?l:[l],a=[],s=[];for(const t of e){const e=Nr(t),r=Nr(bt(t)),o="f"+Ge(e);let l;const c=Br(o,e);let u=[];e===r?l=o:(l="f"+Ge(r),u=Br(l,r));for(let t=0;t<c.length;t++)tn(i,"k",c[t],u[t],n.media,0);a.push(o),s.push(l)}rn({animationName:a.join(", ")},t,r,n,o,i,s.join(", "))}else if(Array.isArray(l)){if(0===l.length)continue;const e=Kr(r.join("")),a=Jr(s);if(a){const e=a[1];rn(Object.fromEntries(e.map(e=>[e,$e])),t,r,n,o,i)}const c=$r(e,s,n),u=Gr({value:l.map(e=>(null!=e?e:"").toString()).join(";"),salt:t,selector:e,property:s},n),d=l.map(e=>wt(s,e));if(!!d.some(e=>e.key!==d[0].key))continue;const f=d[0].key!==s||d.some((e,t)=>e.value!==l[t]),h=f?Gr({value:d.map(e=>{var t;return(null!==(t=null==e?void 0:e.value)&&void 0!==t?t:"").toString()}).join(";"),salt:t,property:d[0].key,selector:e},n):void 0,p=f?{rtlClassName:h,rtlProperty:d[0].key,rtlValue:d.map(e=>e.value)}:void 0,m=Hr(r,n),[g,v]=Ir(Object.assign({className:u,selectors:r,property:s,value:l},p),n);Zr(o,c,u,h),tn(i,m,g,v,n.media,Qr(a))}else if(Vr(l))if(jr(s))rn(l,t,r.concat(_t(s)),n,o,i);else if(Rr(s)){const e=Dr(n.media,s.slice(6).trim());rn(l,t,r,Object.assign({},n,{media:e}),o,i)}else if(Mr(s)){const e=(n.layer?`${n.layer}.`:"")+s.slice(6).trim();rn(l,t,r,Object.assign({},n,{layer:e}),o,i)}else if(Lr(s)){const e=Dr(n.supports,s.slice(9).trim());rn(l,t,r,Object.assign({},n,{supports:e}),o,i)}else if(Fr(s)){const e=s.slice(10).trim();rn(l,t,r,Object.assign({},n,{container:e}),o,i)}}}return[o,i]}function nn(e,t=at){const r=t();let n=null,o=null,i=null,a=null;return function(t){const{dir:s,renderer:l}=t;null===n&&([n,o]=function(e,t=""){const r={},n={};for(const o in e){const i=e[o],[a,s]=rn(i,t);r[o]=a,Object.keys(s).forEach(e=>{n[e]=(n[e]||[]).concat(s[e])})}return[r,n]}(e,l.classNameHashSalt));const c="ltr"===s;return c?null===i&&(i=Xe(n,s)):null===a&&(a=Xe(n,s)),r(l,o),c?i:a}}function on(e,t,r=at){const n=r();let o=null,i=null;return function(r){const{dir:a,renderer:s}=r,l="ltr"===a;return l?null===o&&(o=Xe(e,a)):null===i&&(i=Xe(e,a)),n(s,t),l?o:i}}const an={border:function(...e){return Ae(e[0])?Object.assign({},Te(e[0]),e[1]&&Ee(e[1]),e[2]&&_e(e[2])):Object.assign({},Ee(e[0]),e[1]&&Te(e[1]),e[2]&&_e(e[2]))},borderLeft:function(...e){return Ae(e[0])?Object.assign({borderLeftStyle:e[0]},e[1]&&{borderLeftWidth:e[1]},e[2]&&{borderLeftColor:e[2]}):Object.assign({borderLeftWidth:e[0]},e[1]&&{borderLeftStyle:e[1]},e[2]&&{borderLeftColor:e[2]})},borderBottom:function(...e){return Ae(e[0])?Object.assign({borderBottomStyle:e[0]},e[1]&&{borderBottomWidth:e[1]},e[2]&&{borderBottomColor:e[2]}):Object.assign({borderBottomWidth:e[0]},e[1]&&{borderBottomStyle:e[1]},e[2]&&{borderBottomColor:e[2]})},borderRight:function(...e){return Ae(e[0])?Object.assign({borderRightStyle:e[0]},e[1]&&{borderRightWidth:e[1]},e[2]&&{borderRightColor:e[2]}):Object.assign({borderRightWidth:e[0]},e[1]&&{borderRightStyle:e[1]},e[2]&&{borderRightColor:e[2]})},borderTop:function(...e){return Ae(e[0])?Object.assign({borderTopStyle:e[0]},e[1]&&{borderTopWidth:e[1]},e[2]&&{borderTopColor:e[2]}):Object.assign({borderTopWidth:e[0]},e[1]&&{borderTopStyle:e[1]},e[2]&&{borderTopColor:e[2]})},borderColor:_e,borderStyle:Te,borderRadius:function(e,t=e,r=e,n=t){return{borderBottomRightRadius:r,borderBottomLeftRadius:n,borderTopRightRadius:t,borderTopLeftRadius:e}},borderWidth:Ee,flex:function(...e){const t=1===e.length,r=2===e.length,n=3===e.length;if(t){const[t]=e;if("initial"===t)return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(Pe(t))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if((e=>"none"===e)(t))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(Ie(t))return{flexGrow:t,flexShrink:1,flexBasis:0};if(Be(t))return{flexGrow:1,flexShrink:1,flexBasis:t}}if(r){const[t,r]=e;if(Ie(r))return{flexGrow:t,flexShrink:r,flexBasis:0};if(Be(r))return{flexGrow:t,flexShrink:1,flexBasis:r}}if(n){const[t,r,n]=e;if(Ie(t)&&Ie(r)&&(Pe(n)||Be(n)))return{flexGrow:t,flexShrink:r,flexBasis:n}}return{}},gap:function(e,t=e){return{columnGap:e,rowGap:t}},gridArea:function(...e){if(e.some(e=>!function(e){return void 0===e||"number"==typeof e||"string"==typeof e&&!Oe.test(e)}(e)))return{};const t=void 0!==e[0]?e[0]:"auto",r=void 0!==e[1]?e[1]:Me(t)?t:"auto";return{gridRowStart:t,gridColumnStart:r,gridRowEnd:void 0!==e[2]?e[2]:Me(t)?t:"auto",gridColumnEnd:void 0!==e[3]?e[3]:Me(r)?r:"auto"}},margin:function(...e){return ke("margin","",...e)},marginBlock:function(e,t=e){return{marginBlockStart:e,marginBlockEnd:t}},marginInline:function(e,t=e){return{marginInlineStart:e,marginInlineEnd:t}},padding:function(...e){return ke("padding","",...e)},paddingBlock:function(e,t=e){return{paddingBlockStart:e,paddingBlockEnd:t}},paddingInline:function(e,t=e){return{paddingInlineStart:e,paddingInlineEnd:t}},overflow:function(e,t=e){return{overflowX:e,overflowY:t}},inset:function(...e){const[t,r=t,n=t,o=r]=e;return{top:t,right:r,bottom:n,left:o}},outline:function(e,t,r){return Object.assign({outlineWidth:e},t&&{outlineStyle:t},r&&{outlineColor:r})},transition:function(...e){return function(e){return 1===e.length&&ze.includes(e[0])}(e)?{transitionDelay:e[0],transitionDuration:e[0],transitionProperty:e[0],transitionTimingFunction:e[0]}:function(e){if(1===e.length&&Array.isArray(e[0]))return e[0];return[e]}(e).reduce((e,[t,r="0s",n="0s",o="ease"],i)=>(0===i?(e.transitionProperty=t,e.transitionDuration=r,e.transitionDelay=n,e.transitionTimingFunction=o):(e.transitionProperty+=`, ${t}`,e.transitionDuration+=`, ${r}`,e.transitionDelay+=`, ${n}`,e.transitionTimingFunction+=`, ${o}`),e),{})},textDecoration:function(e,...t){if(0===t.length)return function(e){return je.includes(e)}(e)?{textDecorationStyle:e}:{textDecorationLine:e};const[r,n,o]=t;return Object.assign({textDecorationLine:e},r&&{textDecorationStyle:r},n&&{textDecorationColor:n},o&&{textDecorationThickness:o})}};const sn=y.useInsertionEffect?y.useInsertionEffect:void 0,ln=()=>{const e={};return function(t,r){sn&&"undefined"!=typeof window&&window.document&&window.document.createElement?sn(()=>{t.insertCSSRules(r)},[t,r]):void 0===e[t.id]&&(t.insertCSSRules(r),e[t.id]=!0)}},cn=g.createContext(it());function un(){return g.useContext(cn)}const dn=g.createContext("ltr"),fn=({children:e,dir:t})=>g.createElement(dn.Provider,{value:t},e);function hn(){return g.useContext(dn)}function pn(e){const t=nn(e,ln);return function(){const e=hn(),r=un();return t({dir:e,renderer:r})}}function mn(e,t){const r=on(e,t,ln);return function(){const e=hn(),t=un();return r({dir:e,renderer:t})}}function gn(e,t,r){const n=function(e,t,r,n=at){const o=n();return function(n){const{dir:i,renderer:a}=n,s="ltr"===i?e:t||e;return o(a,Array.isArray(r)?{r:r}:r),s}}(e,t,r,ln);return function(){const e=hn(),t=un();return n({dir:e,renderer:t})}}const vn=Symbol.for("fui.slotRenderFunction"),yn=Symbol.for("fui.slotElementType"),bn=Symbol.for("fui.slotClassNameProp");function wn(e,t){const{defaultProps:r,elementType:n}=t,o=function(e){if("string"==typeof e||"number"==typeof e||Sn(e)||g.isValidElement(e))return{children:e};return e}(e),i={...r,...o,[yn]:n,[bn]:null==o?void 0:o.className};return o&&"function"==typeof o.children&&(i[vn]=o.children,i.children=null==r?void 0:r.children),i}function xn(e,t){if(null!==e&&(void 0!==e||t.renderByDefault))return wn(e,t)}const Sn=e=>"object"==typeof e&&null!==e&&Symbol.iterator in e;function kn(e){return Boolean(null==e?void 0:e.hasOwnProperty(yn))}const En=(...e)=>{const t={};for(const r of e){const e=Array.isArray(r)?r:Object.keys(r);for(const r of e)t[r]=1}return t},Tn=En(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),_n=En(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Cn=En(["itemID","itemProp","itemRef","itemScope","itemType"]),An=En(_n,Tn,Cn),In=En(An,["form"]),Pn=En(An,["height","loop","muted","preload","src","width"]),Nn=En(Pn,["poster"]),Bn=En(An,["start"]),On=En(An,["value"]),Dn=En(An,["download","href","hrefLang","media","rel","target","type"]),Rn=En(An,["dateTime"]),Mn=En(An,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]);const zn={label:In,audio:Pn,video:Nn,ol:Bn,li:On,a:Dn,button:Mn,input:En(Mn,["accept","alt","autoCorrect","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),textarea:En(Mn,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),select:En(Mn,["form","multiple","required"]),option:En(An,["selected","value"]),table:En(An,["cellPadding","cellSpacing"]),tr:An,th:En(An,["colSpan","rowSpan","scope"]),td:En(An,["colSpan","headers","rowSpan","scope"]),colGroup:En(An,["span"]),col:En(An,["span"]),fieldset:En(An,["disabled","form"]),form:En(An,["acceptCharset","action","encType","encType","method","noValidate","target"]),iframe:En(An,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),img:En(An,["alt","crossOrigin","height","src","srcSet","useMap","width"]),time:Rn,dialog:En(An,["open","onCancel","onClose"])};function jn(e,t,r){const n=e&&zn[e]||An;return n.as=1,function(e,t,r){const n=Array.isArray(t),o={},i=Object.keys(e);for(const a of i)!(!n&&t[a]||n&&t.indexOf(a)>=0||0===a.indexOf("data-")||0===a.indexOf("aria-"))||r&&-1!==(null==r?void 0:r.indexOf(a))||(o[a]=e[a]);return o}(t,n,r)}const Ln=({primarySlotTagName:e,props:t,excludedPropNames:r})=>({root:{style:t.style,className:t.className},primary:jn(e,t,[...r||[],"style","className"])}),Fn=(e,t,r)=>{var n;return jn(null!==(n=t.as)&&void 0!==n?n:e,t,r)};function Vn(e,t){const r=g.useRef(void 0),n=g.useCallback((n,o)=>(void 0!==r.current&&t(r.current),r.current=e(n,o),r.current),[t,e]),o=g.useCallback(()=>{void 0!==r.current&&(t(r.current),r.current=void 0)},[t]);return g.useEffect(()=>o,[o]),[n,o]}const qn=g.createContext(void 0),Hn=qn.Provider,Un=g.createContext(void 0),Wn=Un.Provider;const $n=g.createContext(void 0),Gn={},Yn=$n.Provider;const Kn=g.createContext(void 0),Xn={targetDocument:"object"==typeof document?document:void 0,dir:"ltr"},Jn=Kn.Provider;function Qn(){var e;return null!==(e=g.useContext(Kn))&&void 0!==e?e:Xn}const Zn=g.createContext(void 0),eo=Zn.Provider;function to(){var e;return null!==(e=g.useContext(Zn))&&void 0!==e?e:{}}const ro=g.createContext(void 0),no=()=>{},oo=ro.Provider,io=e=>{var t,r;return null!==(r=null===(t=g.useContext(ro))||void 0===t?void 0:t[e])&&void 0!==r?r:no},ao=g.createContext(void 0);ao.Provider;const so=e=>(e(0),0),lo=e=>e;const co=e=>{const[t,r]=g.useState(()=>void 0===e.defaultState?e.initialState:"function"==typeof e.defaultState?e.defaultState():e.defaultState),n=g.useRef(e.state);g.useEffect(()=>{n.current=e.state},[e.state]);const o=g.useCallback(e=>{(function(e){return"function"==typeof e})(e)&&e(n.current)},[]);return uo(e.state)?[e.state,o]:[t,r]};const uo=e=>{const[t]=g.useState(()=>void 0!==e);return t};function fo(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}const ho={current:0},po=g.createContext(void 0);function mo(){var e;return null!==(e=g.useContext(po))&&void 0!==e?e:ho}const go=fo()?g.useLayoutEffect:g.useEffect,vo=e=>{const t=g.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return go(()=>{t.current=e},[e]),g.useCallback((...e)=>(0,t.current)(...e),[t])};function yo(){const e=g.useRef(!0);return e.current?(e.current=!1,!0):e.current}const bo=g.createContext(void 0);function wo(e="fui-",t){const r=mo(),n=g.useContext(bo)||"",o=y.useId;if(o){const r=o(),i=g.useMemo(()=>r.replace(/:/g,""),[r]);return t||`${n}${e}${i}`}return g.useMemo(()=>t||`${n}${e}${++r.current}`,[n,e,t,r])}function xo(...e){const t=g.useCallback(r=>{t.current=r;for(const t of e)"function"==typeof t?t(r):t&&(t.current=r)},[...e]);return t}bo.Provider;const So=(e,t)=>!!(null==e?void 0:e.contains(t)),ko=e=>{const{targetDocument:t}=Qn(),r=null==t?void 0:t.defaultView,{refs:n,callback:o,element:i,disabled:a,disabledFocusOnIframe:s,contains:l=So}=e,c=g.useRef(void 0);_o({element:i,disabled:s||a,callback:o,refs:n,contains:l});const u=g.useRef(!1),d=vo(e=>{if(u.current)return void(u.current=!1);const t=e.composedPath()[0];n.every(e=>!l(e.current||null,t))&&!a&&o(e)}),f=vo(e=>{u.current=n.some(t=>l(t.current||null,e.target))});g.useEffect(()=>{if(a)return;let e=Eo(r);const t=t=>{t!==e?d(t):e=void 0};return null==i||i.addEventListener("click",t,!0),null==i||i.addEventListener("touchstart",t,!0),null==i||i.addEventListener("contextmenu",t,!0),null==i||i.addEventListener("mousedown",f,!0),c.current=null==r?void 0:r.setTimeout(()=>{e=void 0},1),()=>{null==i||i.removeEventListener("click",t,!0),null==i||i.removeEventListener("touchstart",t,!0),null==i||i.removeEventListener("contextmenu",t,!0),null==i||i.removeEventListener("mousedown",f,!0),null==r||r.clearTimeout(c.current),e=void 0}},[d,i,a,f,r])},Eo=e=>{var t,r,n;if(e)return"object"==typeof e.window&&e.window===e?e.event:null!==(n=null===(r=e.ownerDocument)||void 0===r||null===(t=r.defaultView)||void 0===t?void 0:t.event)&&void 0!==n?n:void 0},To="fuiframefocus",_o=e=>{const{disabled:t,element:r,callback:n,contains:o=So,pollDuration:i=100,refs:a}=e,s=g.useRef(),l=vo(e=>{a.every(t=>!o(t.current||null,e.target))&&!t&&n(e)});g.useEffect(()=>{if(!t)return null==r||r.addEventListener(To,l,!0),()=>{null==r||r.removeEventListener(To,l,!0)}},[r,t,l]),g.useEffect(()=>{var e;if(!t)return s.current=null==r||null===(e=r.defaultView)||void 0===e?void 0:e.setInterval(()=>{const e=null==r?void 0:r.activeElement;if("IFRAME"===(null==e?void 0:e.tagName)||"WEBVIEW"===(null==e?void 0:e.tagName)){const t=new CustomEvent(To,{bubbles:!0});e.dispatchEvent(t)}},i),()=>{var e;null==r||null===(e=r.defaultView)||void 0===e||e.clearTimeout(s.current)}},[r,t,i])},Co=e=>{const{refs:t,callback:r,element:n,disabled:o,contains:i}=e,a=vo(e=>{const n=i||((e,t)=>!!(null==e?void 0:e.contains(t))),a=e.composedPath()[0];t.every(e=>!n(e.current||null,a))&&!o&&r(e)});g.useEffect(()=>{if(!o)return null==n||n.addEventListener("wheel",a),null==n||n.addEventListener("touchmove",a),()=>{null==n||n.removeEventListener("wheel",a),null==n||n.removeEventListener("touchmove",a)}},[a,n,o])},Ao=e=>-1,Io=e=>{};function Po(){const{targetDocument:e}=Qn(),t=null==e?void 0:e.defaultView;return Vn(t?t.setTimeout:Ao,t?t.clearTimeout:Io)}const No=(e,t)=>{if("rtl"===t)switch(e){case"ArrowLeft":return"ArrowRight";case"ArrowRight":return"ArrowLeft"}return e};function Bo(e,t){return(...r)=>{null==e||e(...r),null==t||t(...r)}}function Oo(e,t){var r;const n=e;var o;return Boolean((null==n||null===(r=n.ownerDocument)||void 0===r?void 0:r.defaultView)&&n instanceof n.ownerDocument.defaultView[null!==(o=null==t?void 0:t.constructorName)&&void 0!==o?o:"HTMLElement"])}function Do(e){return Boolean(e.type.isFluentTriggerComponent)}function Ro(e,t){return"function"==typeof e?e(t):e?Mo(e,t):e||null}function Mo(e,t){if(!g.isValidElement(e)||e.type===g.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(Do(e)){const r=Mo(e.props.children,t);return g.cloneElement(e,void 0,r)}return g.cloneElement(e,t)}function zo(e){return g.isValidElement(e)?Do(e)?zo(e.props.children):e:null}function jo(e,t={}){if(!e)return null;if(!t.skipVirtual){const t=function(e){return(t=e)&&t._virtual&&e._virtual.parent||null;var t}(e);if(t)return t}const r=e.parentNode;return r&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?r.host:r}function Lo(e,t){if(!e||!t)return!1;if(e===t)return!0;{const r=new WeakSet;for(;t;){const n=jo(t,{skipVirtual:r.has(t)});if(r.add(t),n===e)return!0;t=n}}return!1}function Fo(e,t){e&&Object.assign(e,{_virtual:{parent:t}})}function Vo(e,t){return function(r,n,o,i,a){return kn(n)?t(function(e,t){return{...t,[yn]:e}}(r,n),null,o,i,a):kn(r)?t(r,n,o,i,a):e(r,n,o,i,a)}}function qo(e){const{as:t,[bn]:r,[yn]:n,[vn]:o,...i}=e,a=i,s="string"==typeof n&&null!=t?t:n;return"string"!=typeof s&&t&&(a.as=t),{elementType:s,props:a,renderFunction:o}}const Ho=m,Uo=Vo(Ho.jsx,(e,t,r)=>{const{elementType:n,renderFunction:o,props:i}=qo(e),a={...i,...t};return o?Ho.jsx(g.Fragment,{children:o(n,a)},r):Ho.jsx(n,a,r)}),Wo=Vo(Ho.jsxs,(e,t,r)=>{const{elementType:n,renderFunction:o,props:i}=qo(e),a={...i,...t};return o?Ho.jsx(g.Fragment,{children:o(n,{...a,children:Ho.jsxs(g.Fragment,{children:a.children},void 0)})},r):Ho.jsxs(n,a,r)}),$o=g.createContext(void 0),Go={},Yo=$o.Provider;var Ko="undefined"!=typeof WeakRef,Xo=class{constructor(e){Ko&&"object"==typeof e?this._weakRef=new WeakRef(e):this._instance=e}deref(){var e,t;let r;return this._weakRef?(r=null==(e=this._weakRef)?void 0:e.deref(),r||delete this._weakRef):(r=this._instance,(null==(t=null==r?void 0:r.isDisposed)?void 0:t.call(r))&&delete this._instance),r}},Jo="keyborg:focusin",Qo="keyborg:focusout";var Zo=!1;function ei(e){const t=e.focus;t.__keyborgNativeFocus?t.__keyborgNativeFocus.call(e):e.focus()}var ti=0,ri=class{constructor(e,t){this._isNavigatingWithKeyboard_DO_NOT_USE=!1,this._onFocusIn=e=>{if(this._isMouseOrTouchUsedTimer)return;if(this.isNavigatingWithKeyboard)return;const t=e.detail;t.relatedTarget&&(t.isFocusedProgrammatically||void 0===t.isFocusedProgrammatically||(this.isNavigatingWithKeyboard=!0))},this._onMouseDown=e=>{0===e.buttons||0===e.clientX&&0===e.clientY&&0===e.screenX&&0===e.screenY||this._onMouseOrTouch()},this._onMouseOrTouch=()=>{const e=this._win;e&&(this._isMouseOrTouchUsedTimer&&e.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=e.setTimeout(()=>{delete this._isMouseOrTouchUsedTimer},1e3)),this.isNavigatingWithKeyboard=!1},this._onKeyDown=e=>{this.isNavigatingWithKeyboard?this._shouldDismissKeyboardNavigation(e)&&this._scheduleDismiss():this._shouldTriggerKeyboardNavigation(e)&&(this.isNavigatingWithKeyboard=!0)},this.id="c"+ ++ti,this._win=e;const r=e.document;if(t){const e=t.triggerKeys,r=t.dismissKeys;(null==e?void 0:e.length)&&(this._triggerKeys=new Set(e)),(null==r?void 0:r.length)&&(this._dismissKeys=new Set(r))}r.addEventListener(Jo,this._onFocusIn,!0),r.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("keydown",this._onKeyDown,!0),r.addEventListener("touchstart",this._onMouseOrTouch,!0),r.addEventListener("touchend",this._onMouseOrTouch,!0),r.addEventListener("touchcancel",this._onMouseOrTouch,!0),function(e){const t=e;Zo||(Zo=function(e){const t=e.HTMLElement,r=t.prototype.focus;let n=!1;return t.prototype.focus=function(){n=!0},e.document.createElement("button").focus(),t.prototype.focus=r,n}(t));const r=t.HTMLElement.prototype.focus;if(r.__keyborgNativeFocus)return;t.HTMLElement.prototype.focus=l;const n=new Set,o=e=>{const t=e.target;if(!t)return;const r=new CustomEvent(Qo,{cancelable:!0,bubbles:!0,composed:!0,detail:{originalEvent:e}});t.dispatchEvent(r)},i=e=>{const t=e.target;if(!t)return;let r=e.composedPath()[0];const s=new Set;for(;r;)r.nodeType===Node.DOCUMENT_FRAGMENT_NODE?(s.add(r),r=r.host):r=r.parentNode;for(const a of n){const e=a.deref();e&&s.has(e)||(n.delete(a),e&&(e.removeEventListener("focusin",i,!0),e.removeEventListener("focusout",o,!0)))}a(t,e.relatedTarget||void 0)},a=(e,t,r)=>{var a;const l=e.shadowRoot;if(l){for(const e of n)if(e.deref()===l)return;return l.addEventListener("focusin",i,!0),l.addEventListener("focusout",o,!0),void n.add(new Xo(l))}const c={relatedTarget:t,originalEvent:r},u=new CustomEvent(Jo,{cancelable:!0,bubbles:!0,composed:!0,detail:c});u.details=c,(Zo||s.lastFocusedProgrammatically)&&(c.isFocusedProgrammatically=e===(null==(a=s.lastFocusedProgrammatically)?void 0:a.deref()),s.lastFocusedProgrammatically=void 0),e.dispatchEvent(u)},s=t.__keyborgData={focusInHandler:i,focusOutHandler:o,shadowTargets:n};function l(){const e=t.__keyborgData;return e&&(e.lastFocusedProgrammatically=new Xo(this)),r.apply(this,arguments)}t.document.addEventListener("focusin",t.__keyborgData.focusInHandler,!0),t.document.addEventListener("focusout",t.__keyborgData.focusOutHandler,!0);let c=t.document.activeElement;for(;c&&c.shadowRoot;)a(c),c=c.shadowRoot.activeElement;l.__keyborgNativeFocus=r}(e)}get isNavigatingWithKeyboard(){return this._isNavigatingWithKeyboard_DO_NOT_USE}set isNavigatingWithKeyboard(e){this._isNavigatingWithKeyboard_DO_NOT_USE!==e&&(this._isNavigatingWithKeyboard_DO_NOT_USE=e,this.update())}dispose(){const e=this._win;if(e){this._isMouseOrTouchUsedTimer&&(e.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=void 0),this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),function(e){const t=e,r=t.HTMLElement.prototype,n=r.focus.__keyborgNativeFocus,o=t.__keyborgData;if(o){t.document.removeEventListener("focusin",o.focusInHandler,!0),t.document.removeEventListener("focusout",o.focusOutHandler,!0);for(const e of o.shadowTargets){const t=e.deref();t&&(t.removeEventListener("focusin",o.focusInHandler,!0),t.removeEventListener("focusout",o.focusOutHandler,!0))}o.shadowTargets.clear(),delete t.__keyborgData}n&&(r.focus=n)}(e);const t=e.document;t.removeEventListener(Jo,this._onFocusIn,!0),t.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener("touchstart",this._onMouseOrTouch,!0),t.removeEventListener("touchend",this._onMouseOrTouch,!0),t.removeEventListener("touchcancel",this._onMouseOrTouch,!0),delete this._win}}isDisposed(){return!!this._win}update(){var e,t;const r=null==(t=null==(e=this._win)?void 0:e.__keyborg)?void 0:t.refs;if(r)for(const n of Object.keys(r))ni.update(r[n],this.isNavigatingWithKeyboard)}_shouldTriggerKeyboardNavigation(e){var t;if("Tab"===e.key)return!0;const r=null==(t=this._win)?void 0:t.document.activeElement,n=!this._triggerKeys||this._triggerKeys.has(e.keyCode),o=r&&("INPUT"===r.tagName||"TEXTAREA"===r.tagName||r.isContentEditable);return n&&!o}_shouldDismissKeyboardNavigation(e){var t;return null==(t=this._dismissKeys)?void 0:t.has(e.keyCode)}_scheduleDismiss(){const e=this._win;if(e){this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const t=e.document.activeElement;this._dismissTimer=e.setTimeout(()=>{this._dismissTimer=void 0;const r=e.document.activeElement;t&&r&&t===r&&(this.isNavigatingWithKeyboard=!1)},500)}}},ni=class e{constructor(e,t){this._cb=[],this._id="k"+ ++ti,this._win=e;const r=e.__keyborg;r?(this._core=r.core,r.refs[this._id]=this):(this._core=new ri(e,t),e.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(t,r){return new e(t,r)}static dispose(e){e.dispose()}static update(e,t){e._cb.forEach(e=>e(t))}dispose(){var e;const t=null==(e=this._win)?void 0:e.__keyborg;(null==t?void 0:t.refs[this._id])&&(delete t.refs[this._id],0===Object.keys(t.refs).length&&(t.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){var e;return!!(null==(e=this._core)?void 0:e.isNavigatingWithKeyboard)}subscribe(e){this._cb.push(e)}unsubscribe(e){const t=this._cb.indexOf(e);t>=0&&this._cb.splice(t,1)}setVal(e){this._core&&(this._core.isNavigatingWithKeyboard=e)}};function oi(e,t){return ni.create(e,t)}function ii(e){ni.dispose(e)}const ai="data-tabster",si=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]","details > summary","audio[controls]","video[controls]"].join(", "),li=1,ci=2,ui=3,di=0,fi=1,hi=2,pi=0,mi=1,gi=0,vi=1,yi=2,bi=3,wi=4,xi=1,Si=2,ki=3,Ei=4,Ti=5,_i=6,Ci=7,Ai=8,Ii=2;function Pi(e,t){var r;return null===(r=e.storageEntry(t))||void 0===r?void 0:r.tabster}function Ni(e,t,r){var n,o;const i=r||e._noop?void 0:t.getAttribute(ai);let a,s=e.storageEntry(t);if(i){if(i===(null===(n=null==s?void 0:s.attr)||void 0===n?void 0:n.string))return;try{const e=JSON.parse(i);if("object"!=typeof e)throw new Error(`Value is not a JSON object, got '${i}'.`);a={string:i,object:e}}catch(d){}}else if(!s)return;s||(s=e.storageEntry(t,!0)),s.tabster||(s.tabster={});const l=s.tabster||{},c=(null===(o=s.attr)||void 0===o?void 0:o.object)||{},u=(null==a?void 0:a.object)||{};for(const f of Object.keys(c))if(!u[f]){if("root"===f){const t=l[f];t&&e.root.onRoot(t,!0)}switch(f){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const r=l[f];r&&(r.dispose(),delete l[f]);break;case"observed":delete l[f],e.observedElement&&e.observedElement.onObservedElementUpdate(t);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete l[f]}}for(const f of Object.keys(u)){const r=u.sys;switch(f){case"deloser":l.deloser?l.deloser.setProps(u.deloser):e.deloser&&(l.deloser=e.deloser.createDeloser(t,u.deloser));break;case"root":l.root?l.root.setProps(u.root):l.root=e.root.createRoot(t,u.root,r),e.root.onRoot(l.root);break;case"modalizer":l.modalizer?l.modalizer.setProps(u.modalizer):e.modalizer&&(l.modalizer=e.modalizer.createModalizer(t,u.modalizer,r));break;case"restorer":l.restorer?l.restorer.setProps(u.restorer):e.restorer&&u.restorer&&(l.restorer=e.restorer.createRestorer(t,u.restorer));break;case"focusable":l.focusable=u.focusable;break;case"groupper":l.groupper?l.groupper.setProps(u.groupper):e.groupper&&(l.groupper=e.groupper.createGroupper(t,u.groupper,r));break;case"mover":l.mover?l.mover.setProps(u.mover):e.mover&&(l.mover=e.mover.createMover(t,u.mover,r));break;case"observed":e.observedElement&&(l.observed=u.observed,e.observedElement.onObservedElementUpdate(t));break;case"uncontrolled":l.uncontrolled=u.uncontrolled;break;case"outline":e.outline&&(l.outline=u.outline);break;case"sys":l.sys=u.sys;break;default:console.error(`Unknown key '${f}' in data-tabster attribute value.`)}}a?s.attr=a:(0===Object.keys(l).length&&(delete s.tabster,delete s.attr),e.storageEntry(t,!1))}const Bi="tabster:movefocus",Oi="tabster:mover:movefocus",Di="tabster:mover:memorized-element",Ri="tabster:restorer:restore-focus",Mi="undefined"!=typeof CustomEvent?CustomEvent:function(){};class zi extends Mi{constructor(e,t){super(e,{bubbles:!0,cancelable:!0,composed:!0,detail:t}),this.details=t}}class ji extends zi{constructor(e){super("tabster:focusin",e)}}class Li extends zi{constructor(e){super("tabster:focusout",e)}}class Fi extends zi{constructor(e){super(Bi,e)}}class Vi extends zi{constructor(e){super("tabster:mover:state",e)}}class qi extends zi{constructor(e){super("tabster:modalizer:active",e)}}class Hi extends zi{constructor(e){super("tabster:modalizer:inactive",e)}}class Ui extends zi{constructor(){super(Ri)}}class Wi extends zi{constructor(e){super("tabster:root:focus",e)}}class $i extends zi{constructor(e){super("tabster:root:blur",e)}}const Gi={createMutationObserver:e=>new MutationObserver(e),createTreeWalker:(e,t,r,n)=>e.createTreeWalker(t,r,n),getParentNode:e=>e?e.parentNode:null,getParentElement:e=>e?e.parentElement:null,nodeContains:(e,t)=>!(!t||!(null==e?void 0:e.contains(t))),getActiveElement:e=>e.activeElement,querySelector:(e,t)=>e.querySelector(t),querySelectorAll:(e,t)=>Array.prototype.slice.call(e.querySelectorAll(t),0),getElementById:(e,t)=>e.getElementById(t),getFirstChild:e=>(null==e?void 0:e.firstChild)||null,getLastChild:e=>(null==e?void 0:e.lastChild)||null,getNextSibling:e=>(null==e?void 0:e.nextSibling)||null,getPreviousSibling:e=>(null==e?void 0:e.previousSibling)||null,getFirstElementChild:e=>(null==e?void 0:e.firstElementChild)||null,getLastElementChild:e=>(null==e?void 0:e.lastElementChild)||null,getNextElementSibling:e=>(null==e?void 0:e.nextElementSibling)||null,getPreviousElementSibling:e=>(null==e?void 0:e.previousElementSibling)||null,appendChild:(e,t)=>e.appendChild(t),insertBefore:(e,t,r)=>e.insertBefore(t,r),getSelection:e=>{var t;return(null===(t=e.ownerDocument)||void 0===t?void 0:t.getSelection())||null},getElementsByName:(e,t)=>e.ownerDocument.getElementsByName(t)};let Yi;const Ki="undefined"!=typeof DOMRect?DOMRect:class{constructor(e,t,r,n){this.left=e||0,this.top=t||0,this.right=(e||0)+(r||0),this.bottom=(t||0)+(n||0)}};let Xi=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),Yi=!1}catch(Wqe){Yi=!0}function Ji(e){const t=e();let r=t.__tabsterInstanceContext;return r||(r={elementByUId:{},basics:{Promise:t.Promise||void 0,WeakRef:t.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},t.__tabsterInstanceContext=r),r}class Qi{constructor(e){this._target=e}deref(){return this._target}static cleanup(e,t){return!e._target||!(!t&&ca(e._target.ownerDocument,e._target))&&(delete e._target,!0)}}class Zi{constructor(e,t,r){const n=Ji(e);let o;n.WeakRef?o=new n.WeakRef(t):(o=new Qi(t),n.fakeWeakRefs.push(o)),this._ref=o,this._data=r}get(){const e=this._ref;let t;return e&&(t=e.deref(),t||delete this._ref),t}getData(){return this._data}}function ea(e,t){const r=Ji(e);r.fakeWeakRefs=r.fakeWeakRefs.filter(e=>!Qi.cleanup(e,t))}function ta(e){const t=Ji(e);t.fakeWeakRefsStarted||(t.fakeWeakRefsStarted=!0,t.WeakRef=function(e){return e.basics.WeakRef}(t)),t.fakeWeakRefsTimer||(t.fakeWeakRefsTimer=e().setTimeout(()=>{t.fakeWeakRefsTimer=void 0,ea(e),ta(e)},12e4))}function ra(e,t,r){if(t.nodeType!==Node.ELEMENT_NODE)return;const n=Yi?r:{acceptNode:r};return Gi.createTreeWalker(e,t,NodeFilter.SHOW_ELEMENT,n,!1)}function na(e,t){let r=t.__tabsterCacheId;const n=Ji(e),o=r?n.containerBoundingRectCache[r]:void 0;if(o)return o.rect;const i=t.ownerDocument&&t.ownerDocument.documentElement;if(!i)return new Ki;let a=0,s=0,l=i.clientWidth,c=i.clientHeight;if(t!==i){const e=t.getBoundingClientRect();a=Math.max(a,e.left),s=Math.max(s,e.top),l=Math.min(l,e.right),c=Math.min(c,e.bottom)}const u=new Ki(a<l?a:-1,s<c?s:-1,a<l?l-a:0,s<c?c-s:0);return r||(r="r-"+ ++n.lastContainerBoundingRectCacheId,t.__tabsterCacheId=r),n.containerBoundingRectCache[r]={rect:u,element:t},n.containerBoundingRectCacheTimer||(n.containerBoundingRectCacheTimer=window.setTimeout(()=>{n.containerBoundingRectCacheTimer=void 0;for(const e of Object.keys(n.containerBoundingRectCache))delete n.containerBoundingRectCache[e].element.__tabsterCacheId;n.containerBoundingRectCache={}},50)),u}function oa(e,t,r){const n=ia(t);if(!n)return!1;const o=na(e,n),i=t.getBoundingClientRect(),a=i.height*(1-r),s=Math.max(0,o.top-i.top)+Math.max(0,i.bottom-o.bottom);return 0===s||s<=a}function ia(e){const t=e.ownerDocument;if(t){for(let t=Gi.getParentElement(e);t;t=Gi.getParentElement(t))if(t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight)return t;return t.documentElement}return null}function aa(e){return!!e.__shouldIgnoreFocus}function sa(e,t){const r=Ji(e);let n=t.__tabsterElementUID;return n||(n=t.__tabsterElementUID=function(e){const t=new Uint32Array(4);if(e.crypto&&e.crypto.getRandomValues)e.crypto.getRandomValues(t);else if(e.msCrypto&&e.msCrypto.getRandomValues)e.msCrypto.getRandomValues(t);else for(let n=0;n<t.length;n++)t[n]=4294967295*Math.random();const r=[];for(let n=0;n<t.length;n++)r.push(t[n].toString(36));return r.push("|"),r.push((++Xi).toString(36)),r.push("|"),r.push(Date.now().toString(36)),r.join("")}(e())),!r.elementByUId[n]&&ca(t.ownerDocument,t)&&(r.elementByUId[n]=new Zi(e,t)),n}function la(e,t){const r=Ji(e);for(const n of Object.keys(r.elementByUId)){const e=r.elementByUId[n],o=e&&e.get();o&&t&&!Gi.nodeContains(t,o)||delete r.elementByUId[n]}}function ca(e,t){return Gi.nodeContains(null==e?void 0:e.body,t)}function ua(e,t){const r=e.matches||e.matchesSelector||e.msMatchesSelector||e.webkitMatchesSelector;return r&&r.call(e,t)}let da=0;class fa{constructor(e,t,r){const n=e.getWindow;this._tabster=e,this._element=new Zi(n,t),this._props={...r},this.id="i"+ ++da}getElement(){return this._element.get()}getProps(){return this._props}setProps(e){this._props={...e}}}class ha{constructor(e,t,r,n,o){var i;this._focusIn=e=>{if(this._fixedTarget){const e=this._fixedTarget.get();return void(e&&ei(e))}const t=this.input;if(this.onFocusIn&&t){const r=e.relatedTarget;this.onFocusIn(this,this._isBackward(!0,t,r),r)}},this._focusOut=e=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const t=this.input;if(this.onFocusOut&&t){const r=e.relatedTarget;this.onFocusOut(this,this._isBackward(!1,t,r),r)}};const a=e(),s=a.document.createElement("i");s.tabIndex=0,s.setAttribute("role","none"),s.setAttribute("data-tabster-dummy",""),s.setAttribute("aria-hidden","true");const l=s.style;l.position="fixed",l.width=l.height="1px",l.opacity="0.001",l.zIndex="-1",l.setProperty("content-visibility","hidden"),function(e){e.__shouldIgnoreFocus=!0}(s),this.input=s,this.isFirst=r.isFirst,this.isOutside=t,this._isPhantom=null!==(i=r.isPhantom)&&void 0!==i&&i,this._fixedTarget=o,s.addEventListener("focusin",this._focusIn),s.addEventListener("focusout",this._focusOut),s.__tabsterDummyContainer=n,this._isPhantom&&(this._disposeTimer=a.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(a.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var e;this._clearDisposeTimeout&&this._clearDisposeTimeout();const t=this.input;t&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,t.removeEventListener("focusin",this._focusIn),t.removeEventListener("focusout",this._focusOut),delete t.__tabsterDummyContainer,null===(e=Gi.getParentNode(t))||void 0===e||e.removeChild(t))}setTopLeft(e,t){var r;const n=null===(r=this.input)||void 0===r?void 0:r.style;n&&(n.top=`${e}px`,n.left=`${t}px`)}_isBackward(e,t,r){return e&&!r?!this.isFirst:!!(r&&t.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_FOLLOWING)}}const pa=1,ma=2,ga=3;class va{constructor(e,t,r,n,o,i){this._element=t,this._instance=new ba(e,t,this,r,n,o,i)}_setHandlers(e,t){this._onFocusIn=e,this._onFocusOut=t}moveOut(e){var t;null===(t=this._instance)||void 0===t||t.moveOut(e)}moveOutWithDefaultAction(e,t){var r;null===(r=this._instance)||void 0===r||r.moveOutWithDefaultAction(e,t)}getHandler(e){return e?this._onFocusIn:this._onFocusOut}setTabbable(e){var t;null===(t=this._instance)||void 0===t||t.setTabbable(this,e)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(e,t,r,n,o){const i=new ha(e.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(i){let a,s;if("BODY"===t.tagName)a=t,s=r&&n||!r&&!n?Gi.getFirstElementChild(t):null;else{let o,i;r&&(!n||n&&!e.focusable.isFocusable(t,!1,!0,!0))?(a=t,s=n?t.firstElementChild:null):(a=Gi.getParentElement(t),s=r&&n||!r&&!n?t:Gi.getNextElementSibling(t));do{o=r&&n||!r&&!n?Gi.getPreviousElementSibling(s):s,i=ka(o),i===t?s=r&&n||!r&&!n?o:Gi.getNextElementSibling(o):i=null}while(i)}(null==a?void 0:a.dispatchEvent(new Fi({by:"root",owner:a,next:null,relatedEvent:o})))&&(Gi.insertBefore(a,i,s),ei(i))}}static addPhantomDummyWithTarget(e,t,r,n){const o=new ha(e.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new Zi(e.getWindow,n)).input;if(o){let e,n;t.querySelector(si)&&!r?(e=t,n=Gi.getFirstElementChild(t)):(e=Gi.getParentElement(t),n=r?t:Gi.getNextElementSibling(t)),e&&Gi.insertBefore(e,o,n)}}}class ya{constructor(e){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=e=>{var t;this._changedParents.has(e)||(this._changedParents.add(e),this._updateDummyInputsTimer||(this._updateDummyInputsTimer=null===(t=this._win)||void 0===t?void 0:t.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const e of this._dummyElements){const t=e.get();if(t){const e=this._dummyCallbacks.get(t);if(e){const r=Gi.getParentNode(t);r&&!this._changedParents.has(r)||e()}}}this._changedParents=new WeakSet},100)))},this._win=e}add(e,t){!this._dummyCallbacks.has(e)&&this._win&&(this._dummyElements.push(new Zi(this._win,e)),this._dummyCallbacks.set(e,t),this.domChanged=this._domChanged)}remove(e){this._dummyElements=this._dummyElements.filter(t=>{const r=t.get();return r&&r!==e}),this._dummyCallbacks.delete(e),0===this._dummyElements.length&&delete this.domChanged}dispose(){var e;const t=null===(e=this._win)||void 0===e?void 0:e.call(this);this._updateTimer&&(null==t||t.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(null==t||t.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(e){this._win&&(this._updateQueue.add(e),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var e;this._updateTimer||(this._updateTimer=null===(e=this._win)||void 0===e?void 0:e.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+100<=Date.now()){const e=new Map,t=[];for(const r of this._updateQueue)t.push(r(e));this._updateQueue.clear();for(const r of t)r();e.clear()}else this._scheduledUpdatePositions()},100))}}class ba{constructor(e,t,r,n,o,i,a){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(e,t,r)=>{this._onFocus(!0,e,t,r)},this._onFocusOut=(e,t,r)=>{this._onFocus(!1,e,t,r)},this.moveOut=e=>{var t;const r=this._firstDummy,n=this._lastDummy;if(r&&n){this._ensurePosition();const o=r.input,i=n.input,a=null===(t=this._element)||void 0===t?void 0:t.get();if(o&&i&&a){let t;e?(o.tabIndex=0,t=o):(i.tabIndex=0,t=i),t&&ei(t)}}},this.moveOutWithDefaultAction=(e,t)=>{var r;const n=this._firstDummy,o=this._lastDummy;if(n&&o){this._ensurePosition();const i=n.input,a=o.input,s=null===(r=this._element)||void 0===r?void 0:r.get();if(i&&a&&s){let r;e?!n.isOutside&&this._tabster.focusable.isFocusable(s,!0,!0,!0)?r=s:(n.useDefaultAction=!0,i.tabIndex=0,r=i):(o.useDefaultAction=!0,a.tabIndex=0,r=a),r&&s.dispatchEvent(new Fi({by:"root",owner:s,next:null,relatedEvent:t}))&&ei(r)}}},this.setTabbable=(e,t)=>{var r,n;for(const i of this._wrappers)if(i.manager===e){i.tabbable=t;break}const o=this._getCurrent();if(o){const e=o.tabbable?0:-1;let t=null===(r=this._firstDummy)||void 0===r?void 0:r.input;t&&(t.tabIndex=e),t=null===(n=this._lastDummy)||void 0===n?void 0:n.input,t&&(t.tabIndex=e)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=e=>{var t,r;const n=(null===(t=this._firstDummy)||void 0===t?void 0:t.input)||(null===(r=this._lastDummy)||void 0===r?void 0:r.input),o=this._transformElements,i=new Set;let a=0,s=0;const l=this._getWindow();for(let c=n;c&&c.nodeType===Node.ELEMENT_NODE;c=Gi.getParentElement(c)){let t=e.get(c);if(void 0===t){const r=l.getComputedStyle(c).transform;r&&"none"!==r&&(t={scrollTop:c.scrollTop,scrollLeft:c.scrollLeft}),e.set(c,t||null)}t&&(i.add(c),o.has(c)||c.addEventListener("scroll",this._addTransformOffsets),a+=t.scrollTop,s+=t.scrollLeft)}for(const c of o)i.has(c)||c.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=i,()=>{var e,t;null===(e=this._firstDummy)||void 0===e||e.setTopLeft(a,s),null===(t=this._lastDummy)||void 0===t||t.setTopLeft(a,s)}};const s=t.get();if(!s)throw new Error("No element");this._tabster=e,this._getWindow=e.getWindow,this._callForDefaultAction=a;const l=s.__tabsterDummy;if((l||this)._wrappers.push({manager:r,priority:n,tabbable:!0}),l)return l;s.__tabsterDummy=this;const c=null==o?void 0:o.dummyInputsPosition,u=s.tagName;this._isOutside=c?c===Ii:(i||"UL"===u||"OL"===u||"TABLE"===u)&&!("LI"===u||"TD"===u||"TH"===u),this._firstDummy=new ha(this._getWindow,this._isOutside,{isFirst:!0},t),this._lastDummy=new ha(this._getWindow,this._isOutside,{isFirst:!1},t);const d=this._firstDummy.input;d&&e._dummyObserver.add(d,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=t,this._addDummyInputs()}dispose(e,t){var r,n,o,i;if(0===(this._wrappers=this._wrappers.filter(r=>r.manager!==e&&!t)).length){delete(null===(r=this._element)||void 0===r?void 0:r.get()).__tabsterDummy;for(const r of this._transformElements)r.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const e=this._getWindow();this._addTimer&&(e.clearTimeout(this._addTimer),delete this._addTimer);const t=null===(n=this._firstDummy)||void 0===n?void 0:n.input;t&&this._tabster._dummyObserver.remove(t),null===(o=this._firstDummy)||void 0===o||o.dispose(),null===(i=this._lastDummy)||void 0===i||i.dispose()}}_onFocus(e,t,r,n){var o;const i=this._getCurrent();!i||t.useDefaultAction&&!this._callForDefaultAction||null===(o=i.manager.getHandler(e))||void 0===o||o(t,r,n)}_getCurrent(){return this._wrappers.sort((e,t)=>e.tabbable!==t.tabbable?e.tabbable?-1:1:e.priority-t.priority),this._wrappers[0]}_ensurePosition(){var e,t,r;const n=null===(e=this._element)||void 0===e?void 0:e.get(),o=null===(t=this._firstDummy)||void 0===t?void 0:t.input,i=null===(r=this._lastDummy)||void 0===r?void 0:r.input;if(n&&o&&i)if(this._isOutside){const e=Gi.getParentNode(n);if(e){const t=Gi.getNextSibling(n);t!==i&&Gi.insertBefore(e,i,t),Gi.getPreviousElementSibling(n)!==o&&Gi.insertBefore(e,o,n)}}else{Gi.getLastElementChild(n)!==i&&Gi.appendChild(n,i);const e=Gi.getFirstElementChild(n);e&&e!==o&&e.parentNode&&Gi.insertBefore(e.parentNode,o,e)}}}function wa(e){let t=null;for(let r=Gi.getLastElementChild(e);r;r=Gi.getLastElementChild(r))t=r;return t||void 0}function xa(e,t,r,n){const o=e.storageEntry(t,!0);let i=!1;if(!o.aug){if(void 0===n)return i;o.aug={}}if(void 0===n){if(r in o.aug){const e=o.aug[r];delete o.aug[r],null===e?t.removeAttribute(r):t.setAttribute(r,e),i=!0}}else{let e;r in o.aug||(e=t.getAttribute(r)),void 0!==e&&e!==n&&(o.aug[r]=e,null===n?t.removeAttribute(r):t.setAttribute(r,n),i=!0)}return void 0===n&&0===Object.keys(o.aug).length&&(delete o.aug,e.storageEntry(t,!1)),i}function Sa(e){return"INPUT"===e.tagName&&!!e.name&&"radio"===e.type}function ka(e){var t;return(null===(t=null==e?void 0:e.__tabsterDummyContainer)||void 0===t?void 0:t.get())||null}function Ea(e,t){const r=JSON.stringify(e);return!0===t?r:{[ai]:r}}function Ta(e,t,r){let n;{const t=e.getAttribute(ai);if(t)try{n=JSON.parse(t)}catch(Wqe){}}n||(n={}),function(e,t){for(const r of Object.keys(t)){const n=t[r];n?e[r]=n:delete e[r]}}(n,t),Object.keys(n).length>0?e.setAttribute(ai,Ea(n,!0)):e.removeAttribute(ai)}class _a extends va{constructor(e,t,r,n){super(e,t,pa,n,void 0,!0),this._onDummyInputFocus=e=>{var t;if(e.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const r=this._element.get();if(r){this._setFocused(!0);const t=this._tabster.focusedElement.getFirstOrLastTabbable(e.isFirst,{container:r,ignoreAccessibility:!0});if(t)return void ei(t)}null===(t=e.input)||void 0===t||t.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=e,this._setFocused=r}}class Ca extends fa{constructor(e,t,r,n,o){super(e,t,n),this._isFocused=!1,this._setFocused=e=>{var t;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===e)return;const r=this._element.get();r&&(e?(this._isFocused=!0,null===(t=this._dummyManager)||void 0===t||t.setTabbable(!1),r.dispatchEvent(new Wi({element:r}))):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var e;delete this._setFocusedTimer,this._isFocused=!1,null===(e=this._dummyManager)||void 0===e||e.setTabbable(!0),r.dispatchEvent(new $i({element:r}))},0))},this._onFocusIn=e=>{const t=this._tabster.getParent,r=this._element.get();let n=e.composedPath()[0];do{if(n===r)return void this._setFocused(!0);n=n&&t(n)}while(n)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=r;const i=e.getWindow;this.uid=sa(i,t),this._sys=o,(e.controlTab||e.rootDummyInputs)&&this.addDummyInputs();const a=i().document;a.addEventListener(Jo,this._onFocusIn),a.addEventListener(Qo,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new _a(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var e;this._onDispose(this);const t=this._tabster.getWindow(),r=t.document;r.removeEventListener(Jo,this._onFocusIn),r.removeEventListener(Qo,this._onFocusOut),this._setFocusedTimer&&(t.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),null===(e=this._dummyManager)||void 0===e||e.dispose(),this._remove()}moveOutWithDefaultAction(e,t){const r=this._dummyManager;if(r)r.moveOutWithDefaultAction(e,t);else{const r=this.getElement();r&&_a.moveWithPhantomDummy(this._tabster,r,!0,e,t)}}_add(){}_remove(){}}class Aa{constructor(e,t){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var e;const t=this._win().document,r=t.body;if(r){this._autoRootUnwait(t);const n=this._autoRoot;if(n)return Ta(r,{root:n}),Ni(this._tabster,r),null===(e=Pi(this._tabster,r))||void 0===e?void 0:e.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,t.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=e=>{delete this._roots[e.id]},this._tabster=e,this._win=e.getWindow,this._autoRoot=t,e.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(e){e.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const e=this._win();this._autoRootUnwait(e.document),delete this._autoRoot,Object.keys(this._roots).forEach(e=>{this._roots[e]&&(this._roots[e].dispose(),delete this._roots[e])}),this.rootById={}}createRoot(e,t,r){const n=new Ca(this._tabster,e,this._onRootDispose,t,r);return this._roots[n.id]=n,this._forceDummy&&n.addDummyInputs(),n}addDummyInputs(){this._forceDummy=!0;const e=this._roots;for(const t of Object.keys(e))e[t].addDummyInputs()}static getRootByUId(e,t){const r=e().__tabsterInstance;return r&&r.root.rootById[t]}static getTabsterContext(e,t,r){var n,o,i,a;if(void 0===r&&(r={}),!t.ownerDocument)return;const{checkRtl:s,referenceElement:l}=r,c=e.getParent;let u,d,f,h;e.drainInitQueue();let p,m,g,v,y=!1,b=l||t;const w={};for(;b&&(!u||s);){const r=Pi(e,b);if(s&&void 0===g){const e=b.dir;e&&(g="rtl"===e.toLowerCase())}if(!r){b=c(b);continue}const a=b.tagName;(r.uncontrolled||"IFRAME"===a||"WEBVIEW"===a)&&e.focusable.isVisible(b)&&(v=b),h||!(null===(n=r.focusable)||void 0===n?void 0:n.excludeFromMover)||f||(y=!0);const l=r.modalizer,x=r.groupper,S=r.mover;!d&&l&&(d=l),f||!x||d&&!l||(d?(!x.isActive()&&x.getProps().tabbability&&d.userId!==(null===(o=e.modalizer)||void 0===o?void 0:o.activeId)&&(d=void 0,f=x),m=x):f=x),h||!S||d&&!l||x&&b===t||!b.contains(t)||(h=S,p=!!f&&f!==x),r.root&&(u=r.root),(null===(i=r.focusable)||void 0===i?void 0:i.ignoreKeydown)&&Object.assign(w,r.focusable.ignoreKeydown),b=c(b)}if(!u){const r=e.root;r._autoRoot&&(null===(a=t.ownerDocument)||void 0===a?void 0:a.body)&&(u=r._autoRootCreate())}f&&!h&&(p=!0);return u?{root:u,modalizer:d,groupper:f,mover:h,groupperBeforeMover:p,modalizerInGroupper:m,rtl:s?!!g:void 0,uncontrolled:v,excludedFromMover:y,ignoreKeydown:e=>!!w[e.key]}:void 0}static getRoot(e,t){var r;const n=e.getParent;for(let o=t;o;o=n(o)){const t=null===(r=Pi(e,o))||void 0===r?void 0:r.root;if(t)return t}}onRoot(e,t){t?delete this.rootById[e.uid]:this.rootById[e.uid]=e}}class Ia{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(e){const t=this._callbacks;t.indexOf(e)<0&&t.push(e)}subscribeFirst(e){const t=this._callbacks,r=t.indexOf(e);r>=0&&t.splice(r,1),t.unshift(e)}unsubscribe(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}setVal(e,t){this._val!==e&&(this._val=e,this._callCallbacks(e,t))}getVal(){return this._val}trigger(e,t){this._callCallbacks(e,t)}_callCallbacks(e,t){this._callbacks.forEach(r=>r(e,t))}}class Pa{constructor(e){this._tabster=e}dispose(){}getProps(e){const t=Pi(this._tabster,e);return t&&t.focusable||{}}isFocusable(e,t,r,n){return!(!ua(e,si)||!t&&-1===e.tabIndex)&&((r||this.isVisible(e))&&(n||this.isAccessible(e)))}isVisible(e){if(!e.ownerDocument||e.nodeType!==Node.ELEMENT_NODE)return!1;if(function(e){var t,r;const n=e.ownerDocument,o=null===(t=n.defaultView)||void 0===t?void 0:t.getComputedStyle(e);if(null===e.offsetParent&&n.body!==e&&"fixed"!==(null==o?void 0:o.position))return!0;if("hidden"===(null==o?void 0:o.visibility))return!0;if("fixed"===(null==o?void 0:o.position)){if("none"===o.display)return!0;if(null===(null===(r=e.parentElement)||void 0===r?void 0:r.offsetParent)&&n.body!==e.parentElement)return!0}return!1}(e))return!1;const t=e.ownerDocument.body.getBoundingClientRect();return 0!==t.width||0!==t.height}isAccessible(e){var t;for(let r=e;r;r=Gi.getParentElement(r)){const e=Pi(this._tabster,r);if(this._isHidden(r))return!1;if(!(null===(t=null==e?void 0:e.focusable)||void 0===t?void 0:t.ignoreAriaDisabled)&&this._isDisabled(r))return!1}return!0}_isDisabled(e){return e.hasAttribute("disabled")}_isHidden(e){var t;const r=e.getAttribute("aria-hidden");return!(!r||"true"!==r.toLowerCase()||(null===(t=this._tabster.modalizer)||void 0===t?void 0:t.isAugmented(e)))}findFirst(e,t){return this.findElement({...e},t)}findLast(e,t){return this.findElement({isBackward:!0,...e},t)}findNext(e,t){return this.findElement({...e},t)}findPrev(e,t){return this.findElement({...e,isBackward:!0},t)}findDefault(e,t){return this.findElement({...e,acceptCondition:t=>this.isFocusable(t,e.includeProgrammaticallyFocusable)&&!!this.getProps(t).isDefault},t)||null}findAll(e){return this._findElements(!0,e)||[]}findElement(e,t){const r=this._findElements(!1,e,t);return r?r[0]:r}_findElements(e,t,r){var n,o,i;const{container:a,currentElement:s=null,includeProgrammaticallyFocusable:l,useActiveModalizer:c,ignoreAccessibility:u,modalizerId:d,isBackward:f,onElement:h}=t;r||(r={});const p=[];let{acceptCondition:m}=t;const g=!!m;if(!a)return null;m||(m=e=>this.isFocusable(e,l,!1,u));const v={container:a,modalizerUserId:void 0===d&&c?null===(n=this._tabster.modalizer)||void 0===n?void 0:n.activeId:d||(null===(i=null===(o=Aa.getTabsterContext(this._tabster,a))||void 0===o?void 0:o.modalizer)||void 0===i?void 0:i.userId),from:s||a,isBackward:f,isFindAll:e,acceptCondition:m,hasCustomCondition:g,includeProgrammaticallyFocusable:l,ignoreAccessibility:u,cachedGrouppers:{},cachedRadioGroups:{}},y=ra(a.ownerDocument,a,e=>this._acceptElement(e,v));if(!y)return null;const b=t=>{var n,o;const i=null!==(n=v.foundElement)&&void 0!==n?n:v.foundBackward;return i&&p.push(i),e?!(i&&(v.found=!1,delete v.foundElement,delete v.foundBackward,delete v.fromCtx,v.from=i,h&&!h(i)))&&!(!i&&!t):(i&&r&&(r.uncontrolled=null===(o=Aa.getTabsterContext(this._tabster,i))||void 0===o?void 0:o.uncontrolled),!(!t||i))};if(s||(r.outOfDOMOrder=!0),s&&Gi.nodeContains(a,s))y.currentNode=s;else if(f){const e=wa(a);if(!e)return null;if(this._acceptElement(e,v)===NodeFilter.FILTER_ACCEPT&&!b(!0))return v.skippedFocusable&&(r.outOfDOMOrder=!0),p;y.currentNode=e}do{f?y.previousNode():y.nextNode()}while(b());return v.skippedFocusable&&(r.outOfDOMOrder=!0),p.length?p:null}_acceptElement(e,t){var r,n,o;if(t.found)return NodeFilter.FILTER_ACCEPT;const i=t.foundBackward;if(i&&(e===i||!Gi.nodeContains(i,e)))return t.found=!0,t.foundElement=i,NodeFilter.FILTER_ACCEPT;const a=t.container;if(e===a)return NodeFilter.FILTER_SKIP;if(!Gi.nodeContains(a,e))return NodeFilter.FILTER_REJECT;if(ka(e))return NodeFilter.FILTER_REJECT;if(Gi.nodeContains(t.rejectElementsFrom,e))return NodeFilter.FILTER_REJECT;const s=t.currentCtx=Aa.getTabsterContext(this._tabster,e);if(!s)return NodeFilter.FILTER_SKIP;if(aa(e))return this.isFocusable(e,void 0,!0,!0)&&(t.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!t.hasCustomCondition&&("IFRAME"===e.tagName||"WEBVIEW"===e.tagName))return this.isVisible(e)&&(null===(r=s.modalizer)||void 0===r?void 0:r.userId)===(null===(n=this._tabster.modalizer)||void 0===n?void 0:n.activeId)?(t.found=!0,t.rejectElementsFrom=t.foundElement=e,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!t.ignoreAccessibility&&!this.isAccessible(e))return this.isFocusable(e,!1,!0,!0)&&(t.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let l,c=t.fromCtx;c||(c=t.fromCtx=Aa.getTabsterContext(this._tabster,t.from));const u=null==c?void 0:c.mover;let d=s.groupper,f=s.mover;if(l=null===(o=this._tabster.modalizer)||void 0===o?void 0:o.acceptElement(e,t),void 0!==l&&(t.skippedFocusable=!0),void 0===l&&(d||f||u)){const r=null==d?void 0:d.getElement(),n=null==u?void 0:u.getElement();let o=null==f?void 0:f.getElement();if(o&&Gi.nodeContains(n,o)&&Gi.nodeContains(a,n)&&(!r||!f||Gi.nodeContains(n,r))&&(f=u,o=n),r)if(r!==a&&Gi.nodeContains(a,r)){if(!Gi.nodeContains(r,e))return NodeFilter.FILTER_REJECT}else d=void 0;if(o)if(Gi.nodeContains(a,o)){if(!Gi.nodeContains(o,e))return NodeFilter.FILTER_REJECT}else f=void 0;d&&f&&(o&&r&&!Gi.nodeContains(r,o)?f=void 0:d=void 0),d&&(l=d.acceptElement(e,t)),f&&(l=f.acceptElement(e,t))}if(void 0===l&&(l=t.acceptCondition(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,l===NodeFilter.FILTER_SKIP&&this.isFocusable(e,!1,!0,!0)&&(t.skippedFocusable=!0)),l===NodeFilter.FILTER_ACCEPT&&!t.found){if(!t.isFindAll&&Sa(e)&&!e.checked){const r=e.name;let n=t.cachedRadioGroups[r];if(n||(n=function(e){if(!Sa(e))return;const t=e.name;let r,n=Array.from(Gi.getElementsByName(e,t));return n=n.filter(e=>!!Sa(e)&&(e.checked&&(r=e),!0)),{name:t,buttons:new Set(n),checked:r}}(e),n&&(t.cachedRadioGroups[r]=n)),(null==n?void 0:n.checked)&&n.checked!==e)return NodeFilter.FILTER_SKIP}t.isBackward?(t.foundBackward=e,l=NodeFilter.FILTER_SKIP):(t.found=!0,t.foundElement=e)}return l}}const Na="Tab",Ba="Escape",Oa="PageUp",Da="PageDown",Ra="End",Ma="Home",za="ArrowLeft",ja="ArrowUp",La="ArrowRight",Fa="ArrowDown";const Va={[ci]:0,[ui]:1,[li]:2};class qa extends Ia{constructor(e,t){super(),this._init=()=>{const e=this._win(),t=e.document;t.addEventListener(Jo,this._onFocusIn,!0),t.addEventListener(Qo,this._onFocusOut,!0),e.addEventListener("keydown",this._onKeyDown,!0);const r=Gi.getActiveElement(t);r&&r!==t.body&&this._setFocusedElement(r),this.subscribe(this._onChanged)},this._onFocusIn=e=>{const t=e.composedPath()[0];t&&this._setFocusedElement(t,e.detail.relatedTarget,e.detail.isFocusedProgrammatically)},this._onFocusOut=e=>{var t;this._setFocusedElement(void 0,null===(t=e.detail)||void 0===t?void 0:t.originalEvent.relatedTarget)},this._validateFocusedElement=e=>{},this._onKeyDown=e=>{if(e.key!==Na||e.ctrlKey)return;const t=this.getVal();if(!t||!t.ownerDocument||"true"===t.contentEditable)return;const r=this._tabster,n=r.controlTab,o=Aa.getTabsterContext(r,t);if(!o||o.ignoreKeydown(e))return;const i=e.shiftKey,a=qa.findNextTabbable(r,o,void 0,t,void 0,i,!0),s=o.root.getElement();if(!s)return;const l=null==a?void 0:a.element,c=function(e,t){var r;const n=e.getParent;let o=t;do{const t=null===(r=Pi(e,o))||void 0===r?void 0:r.uncontrolled;if(t&&e.uncontrolled.isUncontrolledCompletely(o,!!t.completely))return o;o=n(o)}while(o)}(r,t);if(l){const u=a.uncontrolled;if(o.uncontrolled||Gi.nodeContains(u,t)){if(!a.outOfDOMOrder&&u===o.uncontrolled||c&&!Gi.nodeContains(c,l))return;return void va.addPhantomDummyWithTarget(r,t,i,l)}if(u&&r.focusable.isVisible(u)||"IFRAME"===l.tagName&&r.focusable.isVisible(l))return void(s.dispatchEvent(new Fi({by:"root",owner:s,next:l,relatedEvent:e}))&&va.moveWithPhantomDummy(r,null!=u?u:l,!1,i,e));(n||(null==a?void 0:a.outOfDOMOrder))&&s.dispatchEvent(new Fi({by:"root",owner:s,next:l,relatedEvent:e}))&&(e.preventDefault(),e.stopImmediatePropagation(),ei(l))}else!c&&s.dispatchEvent(new Fi({by:"root",owner:s,next:null,relatedEvent:e}))&&o.root.moveOutWithDefaultAction(i,e)},this._onChanged=(e,t)=>{var r,n;if(e)e.dispatchEvent(new ji(t));else{const e=null===(r=this._lastVal)||void 0===r?void 0:r.get();if(e){const r={...t},o=Aa.getTabsterContext(this._tabster,e),i=null===(n=null==o?void 0:o.modalizer)||void 0===n?void 0:n.userId;i&&(r.modalizerId=i),e.dispatchEvent(new Li(r))}}},this._tabster=e,this._win=t,e.queueInit(this._init)}dispose(){super.dispose();const e=this._win(),t=e.document;t.removeEventListener(Jo,this._onFocusIn,!0),t.removeEventListener(Qo,this._onFocusOut,!0),e.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged);const r=this._asyncFocus;r&&(e.clearTimeout(r.timeout),delete this._asyncFocus),delete qa._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(e,t){var r,n;let o=qa._lastResetElement,i=o&&o.get();i&&Gi.nodeContains(t,i)&&delete qa._lastResetElement,i=null===(n=null===(r=e._nextVal)||void 0===r?void 0:r.element)||void 0===n?void 0:n.get(),i&&Gi.nodeContains(t,i)&&delete e._nextVal,o=e._lastVal,i=o&&o.get(),i&&Gi.nodeContains(t,i)&&delete e._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var e;let t=null===(e=this._lastVal)||void 0===e?void 0:e.get();return(!t||t&&!ca(t.ownerDocument,t))&&(this._lastVal=t=void 0),t}focus(e,t,r,n){return!!this._tabster.focusable.isFocusable(e,t,!1,r)&&(e.focus({preventScroll:n}),!0)}focusDefault(e){const t=this._tabster.focusable.findDefault({container:e});return!!t&&(this._tabster.focusedElement.focus(t),!0)}getFirstOrLastTabbable(e,t){var r;const{container:n,ignoreAccessibility:o}=t;let i;if(n){const t=Aa.getTabsterContext(this._tabster,n);t&&(i=null===(r=qa.findNextTabbable(this._tabster,t,n,void 0,void 0,!e,o))||void 0===r?void 0:r.element)}return i&&!Gi.nodeContains(n,i)&&(i=void 0),i||void 0}_focusFirstOrLast(e,t){const r=this.getFirstOrLastTabbable(e,t);return!!r&&(this.focus(r,!1,!0),!0)}focusFirst(e){return this._focusFirstOrLast(!0,e)}focusLast(e){return this._focusFirstOrLast(!1,e)}resetFocus(e){if(!this._tabster.focusable.isVisible(e))return!1;if(this._tabster.focusable.isFocusable(e,!0,!0,!0))this.focus(e);else{const t=e.getAttribute("tabindex"),r=e.getAttribute("aria-hidden");e.tabIndex=-1,e.setAttribute("aria-hidden","true"),qa._lastResetElement=new Zi(this._win,e),this.focus(e,!0,!0),this._setOrRemoveAttribute(e,"tabindex",t),this._setOrRemoveAttribute(e,"aria-hidden",r)}return!0}requestAsyncFocus(e,t,r){const n=this._tabster.getWindow(),o=this._asyncFocus;if(o){if(Va[e]>Va[o.source])return;n.clearTimeout(o.timeout)}this._asyncFocus={source:e,callback:t,timeout:n.setTimeout(()=>{this._asyncFocus=void 0,t()},r)}}cancelAsyncFocus(e){const t=this._asyncFocus;(null==t?void 0:t.source)===e&&(this._tabster.getWindow().clearTimeout(t.timeout),this._asyncFocus=void 0)}_setOrRemoveAttribute(e,t,r){null===r?e.removeAttribute(t):e.setAttribute(t,r)}_setFocusedElement(e,t,r){var n,o;if(this._tabster._noop)return;const i={relatedTarget:t};if(e){const t=null===(n=qa._lastResetElement)||void 0===n?void 0:n.get();if(qa._lastResetElement=void 0,t===e||aa(e))return;i.isFocusedProgrammatically=r;const a=Aa.getTabsterContext(this._tabster,e),s=null===(o=null==a?void 0:a.modalizer)||void 0===o?void 0:o.userId;s&&(i.modalizerId=s)}const a=this._nextVal={element:e?new Zi(this._win,e):void 0,detail:i};e&&e!==this._val&&this._validateFocusedElement(e),this._nextVal===a&&this.setVal(e,i),this._nextVal=void 0}setVal(e,t){super.setVal(e,t),e&&(this._lastVal=new Zi(this._win,e))}static findNextTabbable(e,t,r,n,o,i,a){const s=r||t.root.getElement();if(!s)return null;let l=null;const c=qa._isTabbingTimer,u=e.getWindow();c&&u.clearTimeout(c),qa.isTabbing=!0,qa._isTabbingTimer=u.setTimeout(()=>{delete qa._isTabbingTimer,qa.isTabbing=!1},0);const d=t.modalizer,f=t.groupper,h=t.mover,p=t=>{if(l=t.findNextTabbable(n,o,i,a),n&&!(null==l?void 0:l.element)){const o=t!==d&&Gi.getParentElement(t.getElement());if(o){const s=Aa.getTabsterContext(e,n,{referenceElement:o});if(s){const n=t.getElement(),c=i?n:n&&wa(n)||n;c&&(l=qa.findNextTabbable(e,s,r,c,o,i,a),l&&(l.outOfDOMOrder=!0))}}}};if(f&&h)p(t.groupperBeforeMover?f:h);else if(f)p(f);else if(h)p(h);else if(d)p(d);else{const t={container:s,currentElement:n,referenceElement:o,ignoreAccessibility:a,useActiveModalizer:!0},r={},c=e.focusable[i?"findPrev":"findNext"](t,r);l={element:c,outOfDOMOrder:r.outOfDOMOrder,uncontrolled:r.uncontrolled}}return l}}qa.isTabbing=!1;class Ha extends Ia{constructor(e){super(),this._onChange=e=>{this.setVal(e,void 0)},this._keyborg=oi(e()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),ii(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(e){var t;null===(t=this._keyborg)||void 0===t||t.setVal(e)}isNavigatingWithKeyboard(){var e;return!!(null===(e=this._keyborg)||void 0===e?void 0:e.isNavigatingWithKeyboard())}}let Ua=0;const Wa="aria-hidden";class $a extends va{constructor(e,t,r){super(t,e,ma,r),this._setHandlers((r,n)=>{var o,i;const a=e.get(),s=a&&(null===(o=Aa.getRoot(t,a))||void 0===o?void 0:o.getElement()),l=r.input;let c;if(s&&l){const e=ka(l),r=Aa.getTabsterContext(t,e||l);r&&(c=null===(i=qa.findNextTabbable(t,r,s,l,void 0,n,!0))||void 0===i?void 0:i.element),c&&ei(c)}})}}class Ga extends fa{constructor(e,t,r,n,o,i){super(e,t,n),this._wasFocused=0,this.userId=n.id,this._onDispose=r,this._activeElements=i,e.controlTab||(this.dummyManager=new $a(this._element,e,o))}makeActive(e){if(this._isActive!==e){this._isActive=e;const t=this.getElement();if(t){const r=this._activeElements,n=r.map(e=>e.get()).indexOf(t);e?n<0&&r.push(new Zi(this._tabster.getWindow,t)):n>=0&&r.splice(n,1)}this._dispatchEvent(e)}}focused(e){return e||(this._wasFocused=++Ua),this._wasFocused}setProps(e){e.id&&(this.userId=e.id),this._props={...e}}dispose(){var e;this.makeActive(!1),this._onDispose(this),null===(e=this.dummyManager)||void 0===e||e.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}isActive(){return!!this._isActive}contains(e){return Gi.nodeContains(this.getElement(),e)}findNextTabbable(e,t,r,n){var o,i;if(!this.getElement())return null;const a=this._tabster;let s,l=null,c=!1;const u=e&&(null===(o=Aa.getRoot(a,e))||void 0===o?void 0:o.getElement());if(u){const o={container:u,currentElement:e,referenceElement:t,ignoreAccessibility:n,useActiveModalizer:!0},d={};l=a.focusable[r?"findPrev":"findNext"](o,d),!l&&this._props.isTrapped&&(null===(i=a.modalizer)||void 0===i?void 0:i.activeId)?(l=a.focusable[r?"findLast":"findFirst"]({container:u,ignoreAccessibility:n,useActiveModalizer:!0},d),null===l&&(l=e),c=!0):c=!!d.outOfDOMOrder,s=d.uncontrolled}return{element:l,uncontrolled:s,outOfDOMOrder:c}}_dispatchEvent(e,t){const r=this.getElement();let n=!1;if(r){const o=t?this._activeElements.map(e=>e.get()):[r];for(const t of o)if(t){const o={id:this.userId,element:r},i=e?new qi(o):new Hi(o);t.dispatchEvent(i),i.defaultPrevented&&(n=!0)}}return n}_remove(){}}class Ya{constructor(e,t,r){this._onModalizerDispose=e=>{const t=e.id,r=e.userId,n=this._parts[r];if(delete this._modalizers[t],n&&(delete n[t],0===Object.keys(n).length)){delete this._parts[r];const e=this._activationHistory,t=[];let n;for(let o=e.length;o--;){const i=e[o];i!==r&&(i!==n&&(n=i,(i||t.length>0)&&t.unshift(i)))}if(this._activationHistory=t,this.activeId===r){const e=t[0],r=e?Object.values(this._parts[e])[0]:void 0;this.setActive(r)}}},this._onKeyDown=e=>{var t;if(e.key!==Ba)return;const r=this._tabster,n=r.focusedElement.getFocusedElement();if(n){const o=Aa.getTabsterContext(r,n),i=null==o?void 0:o.modalizer;if(o&&!o.groupper&&(null==i?void 0:i.isActive())&&!o.ignoreKeydown(e)){const n=i.userId;if(n){const o=this._parts[n];if(o){const n=Object.keys(o).map(e=>{var t;const n=o[e],i=n.getElement();let a;return i&&(a=null===(t=Pi(r,i))||void 0===t?void 0:t.groupper),n&&i&&a?{el:i,focusedSince:n.focused(!0)}:{focusedSince:0}}).filter(e=>e.focusedSince>0).sort((e,t)=>e.focusedSince>t.focusedSince?-1:e.focusedSince<t.focusedSince?1:0);if(n.length){const o=n[0].el;o&&(null===(t=r.groupper)||void 0===t||t.handleKeyPress(o,e,!0))}}}}}},this._onFocus=(e,t)=>{var r;const n=this._tabster,o=e&&Aa.getTabsterContext(n,e);if(!o||!e)return;const i=this._augMap;for(let c=e;c;c=Gi.getParentElement(c))i.has(c)&&(i.delete(c),xa(n,c,Wa));let a=o.modalizer;const s=Pi(n,e),l=null==s?void 0:s.modalizer;if(l&&(l.focused(),l.userId===this.activeId&&s.groupper)){const t=n.getParent(e),o=t&&(null===(r=Aa.getTabsterContext(n,t))||void 0===r?void 0:r.modalizer);if(!o)return void this.setActive(void 0);a=o}if(null==a||a.focused(),(null==a?void 0:a.userId)!==this.activeId)if(t.isFocusedProgrammatically||this.currentIsOthersAccessible||(null==a?void 0:a.getProps().isAlwaysAccessible))this.setActive(a);else{const t=this._win();t.clearTimeout(this._restoreModalizerFocusTimer),this._restoreModalizerFocusTimer=t.setTimeout(()=>this._restoreModalizerFocus(e),100)}else this.currentIsOthersAccessible=null==a?void 0:a.getProps().isOthersAccessible},this._tabster=e,this._win=e.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=t,this._accessibleCheck=r,this._activationHistory=[],this.activeElements=[],e.controlTab||e.root.addDummyInputs();this._win().addEventListener("keydown",this._onKeyDown,!0),e.queueInit(()=>{this._tabster.focusedElement.subscribe(this._onFocus)})}dispose(){const e=this._win();e.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach(e=>{this._modalizers[e]&&(this._modalizers[e].dispose(),delete this._modalizers[e])}),e.clearTimeout(this._restoreModalizerFocusTimer),e.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}createModalizer(e,t,r){var n;const o=new Ga(this._tabster,e,this._onModalizerDispose,t,r,this.activeElements),i=o.id,a=t.id;this._modalizers[i]=o;let s=this._parts[a];s||(s=this._parts[a]={}),s[i]=o;const l=null!==(n=this._tabster.focusedElement.getFocusedElement())&&void 0!==n?n:null;return e!==l&&Gi.nodeContains(e,l)&&(a!==this.activeId?this.setActive(o):o.makeActive(!0)),o}isAugmented(e){return this._augMap.has(e)}hiddenUpdate(){this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout(()=>{delete this._hiddenUpdateTimer,this._hiddenUpdate()},250))}setActive(e){const t=null==e?void 0:e.userId,r=this.activeId;if(r===t)return;if(this.activeId=t,r){const e=this._parts[r];if(e)for(const t of Object.keys(e))e[t].makeActive(!1)}if(t){const e=this._parts[t];if(e)for(const t of Object.keys(e))e[t].makeActive(!0)}this.currentIsOthersAccessible=null==e?void 0:e.getProps().isOthersAccessible,this.hiddenUpdate();const n=this._activationHistory;n[0]!==t&&(void 0!==t||n.length>0)&&n.unshift(t)}focus(e,t,r){const n=this._tabster,o=Aa.getTabsterContext(n,e),i=null==o?void 0:o.modalizer;if(i){this.setActive(i);const e=i.getProps(),o=i.getElement();if(o){if(void 0===t&&(t=e.isNoFocusFirst),!t&&n.keyboardNavigation.isNavigatingWithKeyboard()&&n.focusedElement.focusFirst({container:o}))return!0;if(void 0===r&&(r=e.isNoFocusDefault),!r&&n.focusedElement.focusDefault(o))return!0;n.focusedElement.resetFocus(o)}}return!1}activate(e){var t;const r=e?null===(t=Aa.getTabsterContext(this._tabster,e))||void 0===t?void 0:t.modalizer:void 0;return!(e&&!r)&&(this.setActive(r),!0)}acceptElement(e,t){var r;const n=t.modalizerUserId,o=null===(r=t.currentCtx)||void 0===r?void 0:r.modalizer;if(n)for(const a of this.activeElements){const t=a.get();if(t&&(Gi.nodeContains(e,t)||t===e))return NodeFilter.FILTER_SKIP}const i=n===(null==o?void 0:o.userId)||!n&&(null==o?void 0:o.getProps().isAlwaysAccessible)?void 0:NodeFilter.FILTER_SKIP;return void 0!==i&&(t.skippedFocusable=!0),i}_hiddenUpdate(){var e;const t=this._tabster,r=t.getWindow().document.body,n=this.activeId,o=this._parts,i=[],a=[],s=this._alwaysAccessibleSelector,l=s?Array.from(Gi.querySelectorAll(r,s)):[],c=[];for(const g of Object.keys(o)){const e=o[g];for(const t of Object.keys(e)){const r=e[t],o=r.getElement(),s=r.getProps().isAlwaysAccessible;o&&(g===n?(c.push(o),this.currentIsOthersAccessible||i.push(o)):s?l.push(o):a.push(o))}}const u=this._augMap,d=i.length>0?[...i,...l]:void 0,f=[],h=new WeakMap,p=(e,r)=>{var n;const o=e.tagName;if("SCRIPT"===o||"STYLE"===o)return;let i=!1;u.has(e)?r?i=!0:(u.delete(e),xa(t,e,Wa)):r&&!(null===(n=this._accessibleCheck)||void 0===n?void 0:n.call(this,e,c))&&xa(t,e,Wa,"true")&&(u.set(e,!0),i=!0),i&&(f.push(new Zi(t.getWindow,e)),h.set(e,!0))},m=e=>{var r;for(let n=Gi.getFirstElementChild(e);n;n=Gi.getNextElementSibling(n)){let e=!1,o=!1,i=!1;if(d){const a=t.getParent(n);for(const t of d){if(n===t){e=!0;break}if(Gi.nodeContains(n,t)){o=!0;break}Gi.nodeContains(t,a)&&(i=!0)}o||(null===(r=n.__tabsterElementFlags)||void 0===r?void 0:r.noDirectAriaHidden)?m(n):e||i||p(n,!0)}else p(n,!1)}};d||l.forEach(e=>p(e,!1)),a.forEach(e=>p(e,!0)),r&&m(r),null===(e=this._aug)||void 0===e||e.map(e=>e.get()).forEach(e=>{e&&!h.get(e)&&p(e,!1)}),this._aug=f,this._augMap=h}_restoreModalizerFocus(e){var t;const r=null==e?void 0:e.ownerDocument;if(!e||!r)return;const n=this._tabster.focusedElement.getFocusedElement(),o=n&&(null===(t=Aa.getTabsterContext(this._tabster,n))||void 0===t?void 0:t.modalizer);if(!n||n&&(null==o?void 0:o.userId)===this.activeId)return;const i=this._tabster,a=Aa.getTabsterContext(i,e),s=null==a?void 0:a.modalizer,l=this.activeId;if(!s&&!l||s&&l===s.userId)return;const c=null==a?void 0:a.root.getElement();if(c){let t=i.focusable.findFirst({container:c,useActiveModalizer:!0});if(t){if(e.compareDocumentPosition(t)&document.DOCUMENT_POSITION_PRECEDING&&(t=i.focusable.findLast({container:c,useActiveModalizer:!0}),!t))throw new Error("Something went wrong.");return void i.focusedElement.focus(t)}}e.blur()}}const Ka=["input","textarea","*[contenteditable]"].join(", ");class Xa extends va{constructor(e,t,r,n){super(t,e,ga,n),this._onFocusDummyInput=e=>{var t,r;const n=this._element.get(),o=e.input;if(n&&o){const i=Aa.getTabsterContext(this._tabster,n);let a;i&&(a=null===(t=qa.findNextTabbable(this._tabster,i,void 0,o,void 0,!e.isFirst,!0))||void 0===t?void 0:t.element);const s=null===(r=this._getMemorized())||void 0===r?void 0:r.get();s&&this._tabster.focusable.isFocusable(s)&&(a=s),a&&ei(a)}},this._tabster=t,this._getMemorized=r,this._setHandlers(this._onFocusDummyInput)}}class Ja extends fa{constructor(e,t,r,n,o){var i;super(e,t,n),this._visible={},this._onIntersection=e=>{for(const t of e){const e=t.target,r=sa(this._win,e);let n,o=this._fullyVisible;if(t.intersectionRatio>=.25?(n=t.intersectionRatio>=.75?hi:fi,n===hi&&(o=r)):n=di,this._visible[r]!==n){void 0===n?(delete this._visible[r],o===r&&delete this._fullyVisible):(this._visible[r]=n,this._fullyVisible=o);const t=this.getState(e);t&&e.dispatchEvent(new Vi(t))}}},this._win=e.getWindow,this.visibilityTolerance=null!==(i=n.visibilityTolerance)&&void 0!==i?i:.8,(this._props.trackState||this._props.visibilityAware)&&(this._intersectionObserver=new IntersectionObserver(this._onIntersection,{threshold:[0,.25,.5,.75,1]}),this._observeState()),this._onDispose=r;const a=()=>n.memorizeCurrent?this._current:void 0;e.controlTab||(this.dummyManager=new Xa(this._element,e,a,o))}dispose(){var e;this._onDispose(this),this._intersectionObserver&&(this._intersectionObserver.disconnect(),delete this._intersectionObserver),delete this._current,delete this._fullyVisible,delete this._allElements,delete this._updateQueue,this._unobserve&&(this._unobserve(),delete this._unobserve);const t=this._win();this._setCurrentTimer&&(t.clearTimeout(this._setCurrentTimer),delete this._setCurrentTimer),this._updateTimer&&(t.clearTimeout(this._updateTimer),delete this._updateTimer),null===(e=this.dummyManager)||void 0===e||e.dispose(),delete this.dummyManager}setCurrent(e){this._current=e?new Zi(this._win,e):void 0,!this._props.trackState&&!this._props.visibilityAware||this._setCurrentTimer||(this._setCurrentTimer=this._win().setTimeout(()=>{var e;delete this._setCurrentTimer;const t=[];this._current!==this._prevCurrent&&(t.push(this._current),t.push(this._prevCurrent),this._prevCurrent=this._current);for(const r of t){const t=null==r?void 0:r.get();if(t&&(null===(e=this._allElements)||void 0===e?void 0:e.get(t))===this){const e=this._props;if(t&&(void 0!==e.visibilityAware||e.trackState)){const e=this.getState(t);e&&t.dispatchEvent(new Vi(e))}}}}))}getCurrent(){var e;return(null===(e=this._current)||void 0===e?void 0:e.get())||null}findNextTabbable(e,t,r,n){const o=this.getElement(),i=o&&ka(e)===o;if(!o)return null;let a,s=null,l=!1;if(this._props.tabbable||i||e&&!Gi.nodeContains(o,e)){const i={currentElement:e,referenceElement:t,container:o,ignoreAccessibility:n,useActiveModalizer:!0},c={};s=this._tabster.focusable[r?"findPrev":"findNext"](i,c),l=!!c.outOfDOMOrder,a=c.uncontrolled}return{element:s,uncontrolled:a,outOfDOMOrder:l}}acceptElement(e,t){var r,n;if(!qa.isTabbing)return(null===(r=t.currentCtx)||void 0===r?void 0:r.excludedFromMover)?NodeFilter.FILTER_REJECT:void 0;const{memorizeCurrent:o,visibilityAware:i,hasDefault:a=!0}=this._props,s=this.getElement();if(s&&(o||i||a)&&(!Gi.nodeContains(s,t.from)||ka(t.from)===s)){let e;if(o){const r=null===(n=this._current)||void 0===n?void 0:n.get();r&&t.acceptCondition(r)&&(e=r)}if(!e&&a&&(e=this._tabster.focusable.findDefault({container:s,useActiveModalizer:!0})),!e&&i&&(e=this._tabster.focusable.findElement({container:s,useActiveModalizer:!0,isBackward:t.isBackward,acceptCondition:e=>{var r;const n=sa(this._win,e),o=this._visible[n];return s!==e&&!!(null===(r=this._allElements)||void 0===r?void 0:r.get(e))&&t.acceptCondition(e)&&(o===hi||o===fi&&(i===fi||!this._fullyVisible))}})),e)return t.found=!0,t.foundElement=e,t.rejectElementsFrom=s,t.skippedFocusable=!0,NodeFilter.FILTER_ACCEPT}}_observeState(){const e=this.getElement();if(this._unobserve||!e||"undefined"==typeof MutationObserver)return;const t=this._win(),r=this._allElements=new WeakMap,n=this._tabster.focusable;let o=this._updateQueue=[];const i=Gi.createMutationObserver(e=>{for(const t of e){const e=t.target,r=t.removedNodes,n=t.addedNodes;if("attributes"===t.type)"tabindex"===t.attributeName&&o.push({element:e,type:2});else{for(let e=0;e<r.length;e++)o.push({element:r[e],type:3});for(let e=0;e<n.length;e++)o.push({element:n[e],type:1})}}u()}),a=(e,t)=>{var n,o;const i=r.get(e);i&&t&&(null===(n=this._intersectionObserver)||void 0===n||n.unobserve(e),r.delete(e)),i||t||(r.set(e,this),null===(o=this._intersectionObserver)||void 0===o||o.observe(e))},s=e=>{const t=n.isFocusable(e);r.get(e)?t||a(e,!0):t&&a(e)},l=e=>{const{mover:r}=d(e);if(r&&r!==this){if(r.getElement()!==e||!n.isFocusable(e))return;a(e)}const o=ra(t.document,e,e=>{const{mover:t,groupper:r}=d(e);if(t&&t!==this)return NodeFilter.FILTER_REJECT;const o=null==r?void 0:r.getFirst(!0);return r&&r.getElement()!==e&&o&&o!==e?NodeFilter.FILTER_REJECT:(n.isFocusable(e)&&a(e),NodeFilter.FILTER_SKIP)});if(o)for(o.currentNode=e;o.nextNode(););},c=e=>{r.get(e)&&a(e,!0);for(let t=Gi.getFirstElementChild(e);t;t=Gi.getNextElementSibling(t))c(t)},u=()=>{!this._updateTimer&&o.length&&(this._updateTimer=t.setTimeout(()=>{delete this._updateTimer;for(const{element:e,type:t}of o)switch(t){case 2:s(e);break;case 1:l(e);break;case 3:c(e)}o=this._updateQueue=[]},0))},d=e=>{const t={};for(let r=e;r;r=Gi.getParentElement(r)){const e=Pi(this._tabster,r);if(e&&(e.groupper&&!t.groupper&&(t.groupper=e.groupper),e.mover)){t.mover=e.mover;break}}return t};o.push({element:e,type:1}),u(),i.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),this._unobserve=()=>{i.disconnect()}}getState(e){const t=sa(this._win,e);if(t in this._visible){const r=this._visible[t]||di;return{isCurrent:this._current?this._current.get()===e:void 0,visibility:r}}}}class Qa{constructor(e,t){this._init=()=>{const e=this._win();e.addEventListener("keydown",this._onKeyDown,!0),e.addEventListener(Oi,this._onMoveFocus),e.addEventListener(Di,this._onMemorizedElement),this._tabster.focusedElement.subscribe(this._onFocus)},this._onMoverDispose=e=>{delete this._movers[e.id]},this._onFocus=e=>{var t;let r=e,n=e;for(let o=Gi.getParentElement(e);o;o=Gi.getParentElement(o)){const e=null===(t=Pi(this._tabster,o))||void 0===t?void 0:t.mover;e&&(e.setCurrent(n),r=void 0),!r&&this._tabster.focusable.isFocusable(o)&&(r=n=o)}},this._onKeyDown=async e=>{var t;if(this._ignoredInputTimer&&(this._win().clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),null===(t=this._ignoredInputResolve)||void 0===t||t.call(this,!1),e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)return;const r=e.key;let n;if(r===Fa?n=Si:r===La?n=Ei:r===ja?n=xi:r===za?n=ki:r===Da?n=_i:r===Oa?n=Ti:r===Ma?n=Ci:r===Ra&&(n=Ai),!n)return;const o=this._tabster.focusedElement.getFocusedElement();o&&!(await this._isIgnoredInput(o,r))&&this._moveFocus(o,n,e)},this._onMoveFocus=e=>{var t;const r=e.composedPath()[0],n=null===(t=e.detail)||void 0===t?void 0:t.key;r&&void 0!==n&&!e.defaultPrevented&&(this._moveFocus(r,n),e.stopImmediatePropagation())},this._onMemorizedElement=e=>{var t;const r=e.composedPath()[0];let n=null===(t=e.detail)||void 0===t?void 0:t.memorizedElement;if(r){const t=Aa.getTabsterContext(this._tabster,r),o=null==t?void 0:t.mover;o&&(n&&!Gi.nodeContains(o.getElement(),n)&&(n=void 0),o.setCurrent(n),e.stopImmediatePropagation())}},this._tabster=e,this._win=t,this._movers={},e.queueInit(this._init)}dispose(){var e;const t=this._win();this._tabster.focusedElement.unsubscribe(this._onFocus),null===(e=this._ignoredInputResolve)||void 0===e||e.call(this,!1),this._ignoredInputTimer&&(t.clearTimeout(this._ignoredInputTimer),delete this._ignoredInputTimer),t.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener(Oi,this._onMoveFocus),t.removeEventListener(Di,this._onMemorizedElement),Object.keys(this._movers).forEach(e=>{this._movers[e]&&(this._movers[e].dispose(),delete this._movers[e])})}createMover(e,t,r){const n=new Ja(this._tabster,e,this._onMoverDispose,t,r);return this._movers[n.id]=n,n}moveFocus(e,t){return this._moveFocus(e,t)}_moveFocus(e,t,r){var n,o;const i=this._tabster,a=Aa.getTabsterContext(i,e,{checkRtl:!0});if(!a||!a.mover||a.excludedFromMover||r&&a.ignoreKeydown(r))return null;const s=a.mover,l=s.getElement();if(a.groupperBeforeMover){const e=a.groupper;if(!e||e.isActive(!0))return null;for(let t=Gi.getParentElement(e.getElement());t&&t!==l;t=Gi.getParentElement(t))if(null===(o=null===(n=Pi(i,t))||void 0===n?void 0:n.groupper)||void 0===o?void 0:o.isActive(!0))return null}if(!l)return null;const c=i.focusable,u=s.getProps(),d=u.direction||gi,f=d===gi,h=f||d===vi,p=f||d===yi,m=d===wi,g=m||d===bi,v=u.cyclic;let y,b,w,x=0,S=0;if(g&&(w=e.getBoundingClientRect(),x=Math.ceil(w.left),S=Math.floor(w.right)),a.rtl&&(t===Ei?t=ki:t===ki&&(t=Ei)),t===Si&&h||t===Ei&&(p||g))if(y=c.findNext({currentElement:e,container:l,useActiveModalizer:!0}),y&&g){const e=Math.ceil(y.getBoundingClientRect().left);!m&&S>e&&(y=void 0)}else!y&&v&&(y=c.findFirst({container:l,useActiveModalizer:!0}));else if(t===xi&&h||t===ki&&(p||g))if(y=c.findPrev({currentElement:e,container:l,useActiveModalizer:!0}),y&&g){const e=Math.floor(y.getBoundingClientRect().right);!m&&e>x&&(y=void 0)}else!y&&v&&(y=c.findLast({container:l,useActiveModalizer:!0}));else if(t===Ci)g?c.findElement({container:l,currentElement:e,useActiveModalizer:!0,isBackward:!0,acceptCondition:t=>{var r;if(!c.isFocusable(t))return!1;const n=Math.ceil(null!==(r=t.getBoundingClientRect().left)&&void 0!==r?r:0);return t!==e&&x<=n||(y=t,!1)}}):y=c.findFirst({container:l,useActiveModalizer:!0});else if(t===Ai)g?c.findElement({container:l,currentElement:e,useActiveModalizer:!0,acceptCondition:t=>{var r;if(!c.isFocusable(t))return!1;const n=Math.ceil(null!==(r=t.getBoundingClientRect().left)&&void 0!==r?r:0);return t!==e&&x>=n||(y=t,!1)}}):y=c.findLast({container:l,useActiveModalizer:!0});else if(t===Ti){if(c.findElement({currentElement:e,container:l,useActiveModalizer:!0,isBackward:!0,acceptCondition:e=>!!c.isFocusable(e)&&(!oa(this._win,e,s.visibilityTolerance)||(y=e,!1))}),g&&y){const e=Math.ceil(y.getBoundingClientRect().left);c.findElement({currentElement:y,container:l,useActiveModalizer:!0,acceptCondition:t=>{if(!c.isFocusable(t))return!1;const r=Math.ceil(t.getBoundingClientRect().left);return x<r||e>=r||(y=t,!1)}})}b=!1}else if(t===_i){if(c.findElement({currentElement:e,container:l,useActiveModalizer:!0,acceptCondition:e=>!!c.isFocusable(e)&&(!oa(this._win,e,s.visibilityTolerance)||(y=e,!1))}),g&&y){const e=Math.ceil(y.getBoundingClientRect().left);c.findElement({currentElement:y,container:l,useActiveModalizer:!0,isBackward:!0,acceptCondition:t=>{if(!c.isFocusable(t))return!1;const r=Math.ceil(t.getBoundingClientRect().left);return x>r||e<=r||(y=t,!1)}})}b=!0}else if(g){const r=t===xi,n=x,o=Math.ceil(w.top),i=S,a=Math.floor(w.bottom);let s,u,d=0;c.findAll({container:l,currentElement:e,isBackward:r,onElement:e=>{const t=e.getBoundingClientRect(),l=Math.ceil(t.left),c=Math.ceil(t.top),f=Math.floor(t.right),h=Math.floor(t.bottom);if(r&&o<h||!r&&a>c)return!0;const p=Math.ceil(Math.min(i,f))-Math.floor(Math.max(n,l)),m=Math.ceil(Math.min(i-n,f-l));if(p>0&&m>=p){const t=p/m;t>d&&(s=e,d=t)}else if(0===d){const t=function(e,t,r,n,o,i,a,s){const l=r<o?o-r:a<e?e-a:0,c=n<i?i-n:s<t?t-s:0;return 0===l?c:0===c?l:Math.sqrt(l*l+c*c)}(n,o,i,a,l,c,f,h);(void 0===u||t<u)&&(u=t,s=e)}else if(d>0)return!1;return!0}}),y=s}return y&&(!r||r&&l.dispatchEvent(new Fi({by:"mover",owner:l,next:y,relatedEvent:r})))?(void 0!==b&&function(e,t,r){const n=ia(t);if(n){const o=na(e,n),i=t.getBoundingClientRect();n.scrollTop+=r?i.top-o.top:i.bottom-o.bottom}}(this._win,y,b),r&&(r.preventDefault(),r.stopImmediatePropagation()),ei(y),y):null}async _isIgnoredInput(e,t){if("true"===e.getAttribute("aria-expanded")&&e.hasAttribute("aria-activedescendant"))return!0;if(ua(e,Ka)){let r,n=0,o=0,i=0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName){const r=e.type,a=e.value;if(i=(a||"").length,"email"===r||"number"===r){if(i){const r=Gi.getSelection(e);if(r){const e=r.toString().length,n=t===za||t===ja;if(r.modify("extend",n?"backward":"forward","character"),e!==r.toString().length)return r.modify("extend",n?"forward":"backward","character"),!0;i=0}}}else{const t=e.selectionStart;if(null===t)return"hidden"===r;n=t||0,o=e.selectionEnd||0}}else"true"===e.contentEditable&&(r=new(function(e){const t=Ji(e);if(t.basics.Promise)return t.basics.Promise;throw new Error("No Promise defined.")}(this._win))(t=>{this._ignoredInputResolve=e=>{delete this._ignoredInputResolve,t(e)};const r=this._win();this._ignoredInputTimer&&r.clearTimeout(this._ignoredInputTimer);const{anchorNode:a,focusNode:s,anchorOffset:l,focusOffset:c}=Gi.getSelection(e)||{};this._ignoredInputTimer=r.setTimeout(()=>{var t,r,u;delete this._ignoredInputTimer;const{anchorNode:d,focusNode:f,anchorOffset:h,focusOffset:p}=Gi.getSelection(e)||{};if(d===a&&f===s&&h===l&&p===c){if(n=h||0,o=p||0,i=(null===(r=e.textContent)||void 0===r?void 0:r.length)||0,d&&f&&Gi.nodeContains(e,d)&&Gi.nodeContains(e,f)&&d!==e){let t=!1;const r=e=>{if(e===d)t=!0;else if(e===f)return!0;const i=e.textContent;if(i&&!Gi.getFirstChild(e)){const e=i.length;t?f!==d&&(o+=e):(n+=e,o+=e)}let a=!1;for(let t=Gi.getFirstChild(e);t&&!a;t=t.nextSibling)a=r(t);return a};r(e)}null===(u=this._ignoredInputResolve)||void 0===u||u.call(this,!0)}else null===(t=this._ignoredInputResolve)||void 0===t||t.call(this,!1)},0)}));if(r&&!(await r))return!0;if(n!==o)return!0;if(n>0&&(t===za||t===ja||t===Ma))return!0;if(n<i&&(t===La||t===Fa||t===Ra))return!0}return!1}}class Za{constructor(e){this._isUncontrolledCompletely=e}isUncontrolledCompletely(e,t){var r;const n=null===(r=this._isUncontrolledCompletely)||void 0===r?void 0:r.call(this,e,t);return void 0===n?t:n}}class es extends fa{constructor(e,t,r){var n;if(super(e,t,r),this._hasFocus=!1,this._onFocusOut=e=>{var t;const r=null===(t=this._element)||void 0===t?void 0:t.get();r&&null===e.relatedTarget&&r.dispatchEvent(new Ui),r&&!Gi.nodeContains(r,e.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===pi){const e=null===(n=this._element)||void 0===n?void 0:n.get();null==e||e.addEventListener("focusout",this._onFocusOut),null==e||e.addEventListener("focusin",this._onFocusIn),this._hasFocus=Gi.nodeContains(e,e&&Gi.getActiveElement(e.ownerDocument))}}dispose(){var e;if(this._props.type===pi){const t=null===(e=this._element)||void 0===e?void 0:e.get();if(null==t||t.removeEventListener("focusout",this._onFocusOut),null==t||t.removeEventListener("focusin",this._onFocusIn),this._hasFocus){this._tabster.getWindow().document.body.dispatchEvent(new Ui)}}}}class ts{constructor(e){this._stack=[],this._getWindow=e}push(e){var t;(null===(t=this._stack[this._stack.length-1])||void 0===t?void 0:t.get())!==e&&(this._stack.length>ts.DEPTH&&this._stack.shift(),this._stack.push(new Zi(this._getWindow,e)))}pop(e){var t;void 0===e&&(e=()=>!0);const r=this._getWindow().document;for(let n=this._stack.length-1;n>=0;n--){const n=null===(t=this._stack.pop())||void 0===t?void 0:t.get();if(n&&Gi.nodeContains(r.body,Gi.getParentElement(n))&&e(n))return n}}}ts.DEPTH=10;class rs{constructor(e){this._onRestoreFocus=e=>{var t,r;this._focusedElementState.cancelAsyncFocus(ci);const n=e.composedPath()[0];if(n){const e=null===(r=null===(t=Pi(this._tabster,n))||void 0===t?void 0:t.restorer)||void 0===r?void 0:r.getProps().id;this._focusedElementState.requestAsyncFocus(ci,()=>this._restoreFocus(n,e),0)}},this._onFocusIn=e=>{var t;if(!e)return;const r=Pi(this._tabster,e);(null===(t=null==r?void 0:r.restorer)||void 0===t?void 0:t.getProps().type)===mi&&this._history.push(e)},this._restoreFocus=(e,t)=>{var r;const n=this._getWindow().document;if(Gi.getActiveElement(n)!==n.body)return;if(!this._keyboardNavState.isNavigatingWithKeyboard()&&Gi.nodeContains(n.body,e))return;const o=e=>{var t,r;const n=null===(r=null===(t=Pi(this._tabster,e))||void 0===t?void 0:t.restorer)||void 0===r?void 0:r.getProps();return n?n.id:null};null===(r=this._history.pop(e=>t===o(e)))||void 0===r||r.focus()},this._tabster=e,this._getWindow=e.getWindow,this._getWindow().addEventListener(Ri,this._onRestoreFocus),this._history=new ts(this._getWindow),this._keyboardNavState=e.keyboardNavigation,this._focusedElementState=e.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}dispose(){const e=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),this._focusedElementState.cancelAsyncFocus(ci),e.removeEventListener(Ri,this._onRestoreFocus)}createRestorer(e,t){const r=new es(this._tabster,e,t);return t.type===mi&&Gi.getActiveElement(e.ownerDocument)===e&&this._history.push(e),r}}class ns{constructor(e){this.keyboardNavigation=e.keyboardNavigation,this.focusedElement=e.focusedElement,this.focusable=e.focusable,this.root=e.root,this.uncontrolled=e.uncontrolled,this.core=e}}class os{constructor(e,t){var r,n;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="8.5.6",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=function(e){const t=e.__tabsterInstanceContext;return new((null==t?void 0:t.basics.WeakMap)||WeakMap)}(e),this._win=e;const o=this.getWindow;(null==t?void 0:t.DOMAPI)&&function(e){for(const t of Object.keys(e))Gi[t]=e[t]}({...t.DOMAPI}),this.keyboardNavigation=new Ha(o),this.focusedElement=new qa(this,o),this.focusable=new Pa(this),this.root=new Aa(this,null==t?void 0:t.autoRoot),this.uncontrolled=new Za((null==t?void 0:t.checkUncontrolledCompletely)||(null==t?void 0:t.checkUncontrolledTrappingFocus)),this.controlTab=null===(r=null==t?void 0:t.controlTab)||void 0===r||r,this.rootDummyInputs=!!(null==t?void 0:t.rootDummyInputs),this._dummyObserver=new ya(o),this.getParent=null!==(n=null==t?void 0:t.getParent)&&void 0!==n?n:Gi.getParentNode,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:e=>{if(!this._unobserve){const t=o().document;this._unobserve=function(e,t,r,n){if("undefined"==typeof MutationObserver)return()=>{};const o=t.getWindow;let i;function a(t,r){i||(i=Ji(o).elementByUId),s(t,r);const n=ra(e,t,e=>s(e,r));if(n)for(;n.nextNode(););}function s(e,n){var a;if(!e.getAttribute)return NodeFilter.FILTER_SKIP;const s=e.__tabsterElementUID;return s&&i&&(n?delete i[s]:null!==(a=i[s])&&void 0!==a||(i[s]=new Zi(o,e))),(Pi(t,e)||e.hasAttribute(ai))&&r(t,e,n),NodeFilter.FILTER_SKIP}const l=Gi.createMutationObserver(e=>{var n,o,i,s,l;const c=new Set;for(const u of e){const e=u.target,l=u.removedNodes,d=u.addedNodes;if("attributes"===u.type)u.attributeName===ai&&(c.has(e)||r(t,e));else{for(let r=0;r<l.length;r++){const i=l[r];c.add(i),a(i,!0),null===(o=(n=t._dummyObserver).domChanged)||void 0===o||o.call(n,e)}for(let r=0;r<d.length;r++)a(d[r]),null===(s=(i=t._dummyObserver).domChanged)||void 0===s||s.call(i,e)}}c.clear(),null===(l=t.modalizer)||void 0===l||l.hiddenUpdate()});return n&&a(o().document.body),l.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[ai]}),()=>{l.disconnect()}}(t,this,Ni,e)}}},ta(o),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(e){var t;e&&(this.getParent=null!==(t=e.getParent)&&void 0!==t?t:this.getParent)}createTabster(e,t){const r=new ns(this);return e||this._wrappers.add(r),this._mergeProps(t),r}disposeTabster(e,t){t?this._wrappers.clear():this._wrappers.delete(e),0===this._wrappers.size&&this.dispose()}dispose(){var e,t,r,n,o,i,a,s;this.internal.stopObserver();const l=this._win;null==l||l.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],l&&this._forgetMemorizedTimer&&(l.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),null===(e=this.outline)||void 0===e||e.dispose(),null===(t=this.crossOrigin)||void 0===t||t.dispose(),null===(r=this.deloser)||void 0===r||r.dispose(),null===(n=this.groupper)||void 0===n||n.dispose(),null===(o=this.mover)||void 0===o||o.dispose(),null===(i=this.modalizer)||void 0===i||i.dispose(),null===(a=this.observedElement)||void 0===a||a.dispose(),null===(s=this.restorer)||void 0===s||s.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),function(e){const t=Ji(e);t.fakeWeakRefsStarted=!1,t.fakeWeakRefsTimer&&(e().clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefsTimer=void 0,t.fakeWeakRefs=[])}(this.getWindow),la(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),l&&(!function(e){const t=e.__tabsterInstanceContext;t&&(t.elementByUId={},delete t.WeakRef,t.containerBoundingRectCache={},t.containerBoundingRectCacheTimer&&e.clearTimeout(t.containerBoundingRectCacheTimer),t.fakeWeakRefsTimer&&e.clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefs=[],delete e.__tabsterInstanceContext)}(l),delete l.__tabsterInstance,delete this._win)}storageEntry(e,t){const r=this._storage;let n=r.get(e);return n?!1===t&&0===Object.keys(n).length&&r.delete(e):!0===t&&(n={},r.set(e,n)),n}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),this._forgetMemorizedTimer||(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let e=this._forgetMemorizedElements.shift();e;e=this._forgetMemorizedElements.shift())la(this.getWindow,e),qa.forgetMemorized(this.focusedElement,e)},0),ea(this.getWindow,!0)))}queueInit(e){var t;this._win&&(this._initQueue.push(e),this._initTimer||(this._initTimer=null===(t=this._win)||void 0===t?void 0:t.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const e=this._initQueue;this._initQueue=[],e.forEach(e=>e())}}function is(e){const t=e.core;return t.mover||(t.mover=new Qa(t,t.getWindow)),t.mover}function as(e,t,r){const n=e.core;return n.modalizer||(n.modalizer=new Ya(n,t,r)),n.modalizer}function ss(e){const t=e.core;return t.restorer||(t.restorer=new rs(t)),t.restorer}const ls=e=>e;function cs(e){const t=(null==e?void 0:e.defaultView)||void 0,r=null==t?void 0:t.__tabsterShadowDOMAPI;if(t)return function(e,t){let r=function(e){return e.__tabsterInstance}(e);return r?r.createTabster(!1,t):(r=new os(e,t),e.__tabsterInstance=r,r.createTabster())}(t,{autoRoot:{},controlTab:!1,getParent:jo,checkUncontrolledTrappingFocus:e=>{var t;return!!(null===(t=e.firstElementChild)||void 0===t?void 0:t.hasAttribute("data-is-focus-trap-zone-bumper"))},DOMAPI:r})}function us(e=ls){const{targetDocument:t}=Qn(),r=g.useRef(null);return go(()=>{const n=cs(t);if(n)return r.current=e(n),()=>{!function(e,t){e.core.disposeTabster(e,t)}(n),r.current=null}},[t,e]),r}const ds=e=>{us();const t=Ea(e,!0);return g.useMemo(()=>({[ai]:t}),[t])},fs=(e={})=>{const{circular:t,axis:r,memorizeCurrent:n=!0,tabbable:o,ignoreDefaultKeydown:i,unstable_hasDefault:a}=e;return us(is),ds({mover:{cyclic:!!t,direction:hs(null!=r?r:"vertical"),memorizeCurrent:n,tabbable:o,hasDefault:a},...i&&{focusable:{ignoreKeydown:i}}})};function hs(e){switch(e){case"horizontal":return yi;case"grid":return bi;case"grid-linear":return wi;case"both":return gi;default:return vi}}const ps=()=>{const e=us(),{targetDocument:t}=Qn();return{findAllFocusable:g.useCallback((t,r)=>{var n;return(null===(n=e.current)||void 0===n?void 0:n.focusable.findAll({container:t,acceptCondition:r}))||[]},[e]),findFirstFocusable:g.useCallback(t=>{var r;return null===(r=e.current)||void 0===r?void 0:r.focusable.findFirst({container:t})},[e]),findLastFocusable:g.useCallback(t=>{var r;return null===(r=e.current)||void 0===r?void 0:r.focusable.findLast({container:t})},[e]),findNextFocusable:g.useCallback((r,n={})=>{if(!e.current||!t)return null;const{container:o=t.body}=n;return e.current.focusable.findNext({currentElement:r,container:o})},[e,t]),findPrevFocusable:g.useCallback((r,n={})=>{if(!e.current||!t)return null;const{container:o=t.body}=n;return e.current.focusable.findPrev({currentElement:r,container:o})},[e,t])}},gs="data-fui-focus-visible",vs="data-fui-focus-within";function bs(e,t){if(ws(e))return()=>{};const r={current:void 0},n=oi(t);function o(e){n.isNavigatingWithKeyboard()&&Oo(e)&&(r.current=e,e.setAttribute(gs,""))}function i(){r.current&&(r.current.removeAttribute(gs),r.current=void 0)}n.subscribe(e=>{e?o(t.document.activeElement):i()});const a=e=>{i();o(e.composedPath()[0])},s=t=>{(!t.relatedTarget||Oo(t.relatedTarget)&&!e.contains(t.relatedTarget))&&i()};return e.addEventListener(Jo,a),e.addEventListener("focusout",s),e.focusVisible=!0,e.contains(t.document.activeElement)&&o(t.document.activeElement),()=>{i(),e.removeEventListener(Jo,a),e.removeEventListener("focusout",s),e.focusVisible=void 0,ii(n)}}function ws(e){return!!e&&(!!e.focusVisible||ws(null==e?void 0:e.parentElement))}function xs(e={}){const t=Qn(),r=g.useRef(null);var n;const o=null!==(n=e.targetDocument)&&void 0!==n?n:t.targetDocument;return g.useEffect(()=>{if((null==o?void 0:o.defaultView)&&r.current)return bs(r.current,o.defaultView)},[r,o]),r}function Ss(e,t){const r=oi(t);r.subscribe(t=>{t||ks(e)});const n=t=>{r.isNavigatingWithKeyboard()&&Es(t.target)&&e.setAttribute(vs,"")},o=t=>{(!t.relatedTarget||Es(t.relatedTarget)&&!e.contains(t.relatedTarget))&&ks(e)};return e.addEventListener(Jo,n),e.addEventListener("focusout",o),()=>{e.removeEventListener(Jo,n),e.removeEventListener("focusout",o),ii(r)}}function ks(e){e.removeAttribute(vs)}function Es(e){return!!e&&Boolean(e&&"object"==typeof e&&"classList"in e&&"contains"in e)}function Ts(){const{targetDocument:e}=Qn(),t=g.useRef(null);return g.useEffect(()=>{if((null==e?void 0:e.defaultView)&&t.current)return Ss(t.current,e.defaultView)},[t,e]),t}function _s(){const{targetDocument:e}=Qn(),t=g.useRef(null);return g.useEffect(()=>{const r=null==e?void 0:e.defaultView;if(r){const e=oi(r);return t.current=e,()=>{ii(e),t.current=null}}},[e]),t}function Cs(e){const t=_s(),r=vo(e);g.useEffect(()=>{const e=t.current;if(e){const t=e=>{r(e)};return e.subscribe(t),t(e.isNavigatingWithKeyboard()),()=>{e.unsubscribe(t)}}},[t,r])}const As=e=>e.hasAttribute("data-tabster-never-hide");function Is(e){as(e,void 0,As),ss(e)}const Ps=(e={})=>{const{trapFocus:t,alwaysFocusable:r,legacyTrapFocus:n}=e;us(Is);const o=wo("modal-",e.id);return{modalAttributes:ds({restorer:{type:pi},...t&&{modalizer:{id:o,isOthersAccessible:!t,isAlwaysAccessible:r,isTrapped:n&&t}}}),triggerAttributes:ds({restorer:{type:mi}})}};const Ns="#050505",Bs="#0a0a0a",Os="#0f0f0f",Ds="#141414",Rs="#1a1a1a",Ms="#1f1f1f",zs="#242424",js="#292929",Ls="#2e2e2e",Fs="#333333",Vs="#383838",qs="#3d3d3d",Hs="#424242",Us="#4d4d4d",Ws="#525252",$s="#575757",Gs="#5c5c5c",Ys="#616161",Ks="#666666",Xs="#6b6b6b",Js="#707070",Qs="#757575",Zs="#999999",el="#adadad",tl="#b3b3b3",rl="#bdbdbd",nl="#c7c7c7",ol="#d1d1d1",il="#d6d6d6",al="#dbdbdb",sl="#e0e0e0",ll="#e6e6e6",cl="#ebebeb",ul="#f0f0f0",dl="#f5f5f5",fl="#fafafa",hl="rgba(255, 255, 255, 0.05)",pl="rgba(255, 255, 255, 0.1)",ml="rgba(255, 255, 255, 0.2)",gl="rgba(255, 255, 255, 0.4)",vl="rgba(255, 255, 255, 0.5)",yl="rgba(255, 255, 255, 0.6)",bl="rgba(255, 255, 255, 0.7)",wl="rgba(255, 255, 255, 0.8)",xl="rgba(0, 0, 0, 0.05)",Sl="rgba(0, 0, 0, 0.1)",kl="rgba(0, 0, 0, 0.2)",El="rgba(0, 0, 0, 0.3)",Tl="rgba(0, 0, 0, 0.4)",_l="rgba(0, 0, 0, 0.5)",Cl="rgba(26, 26, 26, 0.5)",Al="rgba(31, 31, 31, 0.7)",Il="rgba(36, 36, 36, 0.5)",Pl="rgba(36, 36, 36, 0.8)",Nl="#ffffff",Bl="#000000",Ol={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},Dl={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},Rl={red:{shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},green:Dl,darkOrange:{shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},yellow:{shade50:"#282400",shade40:"#4c4400",shade30:"#817400",shade20:"#c0ad00",shade10:"#e4cc00",primary:"#fde300",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},berry:{shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},lightGreen:{shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},marigold:{shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"}},Ml={darkRed:{shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},cranberry:Ol,pumpkin:{shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},peach:{shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},gold:{shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},brass:{shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},brown:{shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},forest:{shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},seafoam:{shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},darkGreen:{shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},lightTeal:{shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},teal:{shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},steel:{shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},blue:{shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},royalBlue:{shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},cornflower:{shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},navy:{shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},lavender:{shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},purple:{shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},grape:{shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},lilac:{shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},pink:{shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},magenta:{shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},plum:{shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},beige:{shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},mink:{shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},platinum:{shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},anchor:{shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"}},zl={cranberry:Ol,green:Dl,orange:{shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"}},jl=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],Ll=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],Fl={success:"green",warning:"orange",danger:"cranberry"},Vl=jl.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background1`]:Rl[t].tint60,[`colorPalette${r}Background2`]:Rl[t].tint40,[`colorPalette${r}Background3`]:Rl[t].primary,[`colorPalette${r}Foreground1`]:Rl[t].shade10,[`colorPalette${r}Foreground2`]:Rl[t].shade30,[`colorPalette${r}Foreground3`]:Rl[t].primary,[`colorPalette${r}BorderActive`]:Rl[t].primary,[`colorPalette${r}Border1`]:Rl[t].tint40,[`colorPalette${r}Border2`]:Rl[t].primary};return Object.assign(e,n)},{});Vl.colorPaletteYellowForeground1=Rl.yellow.shade30,Vl.colorPaletteRedForegroundInverted=Rl.red.tint20,Vl.colorPaletteGreenForegroundInverted=Rl.green.tint20,Vl.colorPaletteYellowForegroundInverted=Rl.yellow.tint40;const ql=Ll.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background2`]:Ml[t].tint40,[`colorPalette${r}Foreground2`]:Ml[t].shade30,[`colorPalette${r}BorderActive`]:Ml[t].primary};return Object.assign(e,n)},{}),Hl={...Vl,...ql},Ul=Object.entries(Fl).reduce((e,[t,r])=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorStatus${n}Background1`]:zl[r].tint60,[`colorStatus${n}Background2`]:zl[r].tint40,[`colorStatus${n}Background3`]:zl[r].primary,[`colorStatus${n}Foreground1`]:zl[r].shade10,[`colorStatus${n}Foreground2`]:zl[r].shade30,[`colorStatus${n}Foreground3`]:zl[r].primary,[`colorStatus${n}ForegroundInverted`]:zl[r].tint30,[`colorStatus${n}BorderActive`]:zl[r].primary,[`colorStatus${n}Border1`]:zl[r].tint40,[`colorStatus${n}Border2`]:zl[r].primary};return Object.assign(e,o)},{});Ul.colorStatusDangerBackground3Hover=zl[Fl.danger].shade10,Ul.colorStatusDangerBackground3Pressed=zl[Fl.danger].shade20,Ul.colorStatusWarningForeground1=zl[Fl.warning].shade20,Ul.colorStatusWarningForeground3=zl[Fl.warning].shade20,Ul.colorStatusWarningBorder2=zl[Fl.warning].shade20;const Wl={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},$l={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},Gl={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},Yl={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},Kl={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},Xl={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},Jl={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},Ql="0",Zl="2px",ec="4px",tc="6px",rc="8px",nc="10px",oc="12px",ic="16px",ac="20px",sc="24px",lc="32px",cc={spacingHorizontalNone:Ql,spacingHorizontalXXS:Zl,spacingHorizontalXS:ec,spacingHorizontalSNudge:tc,spacingHorizontalS:rc,spacingHorizontalMNudge:nc,spacingHorizontalM:oc,spacingHorizontalL:ic,spacingHorizontalXL:ac,spacingHorizontalXXL:sc,spacingHorizontalXXXL:lc},uc={spacingVerticalNone:Ql,spacingVerticalXXS:Zl,spacingVerticalXS:ec,spacingVerticalSNudge:tc,spacingVerticalS:rc,spacingVerticalMNudge:nc,spacingVerticalM:oc,spacingVerticalL:ic,spacingVerticalXL:ac,spacingVerticalXXL:sc,spacingVerticalXXXL:lc},dc={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},fc="var(--colorNeutralForeground1)",hc="var(--colorNeutralForeground3)",pc="var(--colorNeutralForeground3Hover)",mc="var(--colorNeutralForegroundOnBrand)",gc="var(--colorBrandForeground1)",vc="var(--colorBrandForeground2)",yc="var(--colorNeutralForeground1Static)",bc="var(--colorNeutralBackground1)",wc="var(--colorNeutralBackground4)",xc="var(--colorNeutralBackground5)",Sc="var(--colorTransparentBackground)",kc="var(--colorNeutralStencil1)",Ec="var(--colorBrandBackground)",Tc="var(--colorNeutralStroke1)",_c="var(--colorNeutralStroke2)",Cc="var(--colorBrandStroke2)",Ac="var(--colorTransparentStroke)",Ic="var(--colorPaletteRedBackground3)",Pc="var(--colorPaletteGreenBackground1)",Nc="var(--colorPaletteMarigoldBackground1)",Bc="var(--colorPaletteMarigoldBackground3)",Oc="var(--colorPaletteMarigoldBorder1)",Dc="var(--colorPaletteMarigoldForeground2)",Rc="var(--colorStatusSuccessBackground3)",Mc="var(--colorStatusSuccessForeground1)",zc="var(--colorStatusSuccessBorder1)",jc="var(--colorStatusDangerBackground1)",Lc="var(--colorStatusDangerBackground3)",Fc="var(--colorStatusDangerBackground3Hover)",Vc="var(--colorStatusDangerBackground3Pressed)",qc="var(--colorStatusDangerForeground3)",Hc="var(--colorStatusDangerBorder1)",Uc="var(--fontFamilyBase)",Wc="var(--fontSizeBase300)",$c="var(--fontWeightRegular)",Gc="var(--fontWeightSemibold)",Yc="var(--lineHeightBase300)",Kc="var(--spacingHorizontalXS)",Xc="var(--spacingHorizontalS)";function Jc(e,t,r=""){return{[`shadow2${r}`]:`0 0 2px ${e}, 0 1px 2px ${t}`,[`shadow4${r}`]:`0 0 2px ${e}, 0 2px 4px ${t}`,[`shadow8${r}`]:`0 0 2px ${e}, 0 4px 8px ${t}`,[`shadow16${r}`]:`0 0 2px ${e}, 0 8px 16px ${t}`,[`shadow28${r}`]:`0 0 8px ${e}, 0 14px 28px ${t}`,[`shadow64${r}`]:`0 0 8px ${e}, 0 32px 64px ${t}`}}const Qc={10:"#061724",20:"#082338",30:"#0a2e4a",40:"#0c3b5e",50:"#0e4775",60:"#0f548c",70:"#115ea3",80:"#0f6cbd",90:"#2886de",100:"#479ef5",110:"#62abf5",120:"#77b7f7",130:"#96c6fa",140:"#b4d6fa",150:"#cfe4fa",160:"#ebf3fc"},Zc=jl.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background1`]:Rl[t].shade40,[`colorPalette${r}Background2`]:Rl[t].shade30,[`colorPalette${r}Background3`]:Rl[t].primary,[`colorPalette${r}Foreground1`]:Rl[t].tint30,[`colorPalette${r}Foreground2`]:Rl[t].tint40,[`colorPalette${r}Foreground3`]:Rl[t].tint20,[`colorPalette${r}BorderActive`]:Rl[t].tint30,[`colorPalette${r}Border1`]:Rl[t].primary,[`colorPalette${r}Border2`]:Rl[t].tint20};return Object.assign(e,n)},{});Zc.colorPaletteRedForeground3=Rl.red.tint30,Zc.colorPaletteRedBorder2=Rl.red.tint30,Zc.colorPaletteGreenForeground3=Rl.green.tint40,Zc.colorPaletteGreenBorder2=Rl.green.tint40,Zc.colorPaletteDarkOrangeForeground3=Rl.darkOrange.tint30,Zc.colorPaletteDarkOrangeBorder2=Rl.darkOrange.tint30,Zc.colorPaletteRedForegroundInverted=Rl.red.primary,Zc.colorPaletteGreenForegroundInverted=Rl.green.primary,Zc.colorPaletteYellowForegroundInverted=Rl.yellow.shade30;const eu=Ll.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background2`]:Ml[t].shade30,[`colorPalette${r}Foreground2`]:Ml[t].tint40,[`colorPalette${r}BorderActive`]:Ml[t].tint30};return Object.assign(e,n)},{});eu.colorPaletteDarkRedBackground2=Ml.darkRed.shade20,eu.colorPalettePlumBackground2=Ml.plum.shade20;const tu={...Zc,...eu},ru=Object.entries(Fl).reduce((e,[t,r])=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorStatus${n}Background1`]:zl[r].shade40,[`colorStatus${n}Background2`]:zl[r].shade30,[`colorStatus${n}Background3`]:zl[r].primary,[`colorStatus${n}Foreground1`]:zl[r].tint30,[`colorStatus${n}Foreground2`]:zl[r].tint40,[`colorStatus${n}Foreground3`]:zl[r].tint20,[`colorStatus${n}BorderActive`]:zl[r].tint30,[`colorStatus${n}ForegroundInverted`]:zl[r].shade10,[`colorStatus${n}Border1`]:zl[r].primary,[`colorStatus${n}Border2`]:zl[r].tint20};return Object.assign(e,o)},{});ru.colorStatusDangerBackground3Hover=zl[Fl.danger].shade10,ru.colorStatusDangerBackground3Pressed=zl[Fl.danger].shade20,ru.colorStatusDangerForeground3=zl[Fl.danger].tint40,ru.colorStatusDangerBorder2=zl[Fl.danger].tint30,ru.colorStatusSuccessForeground3=zl[Fl.success].tint40,ru.colorStatusSuccessBorder2=zl[Fl.success].tint40,ru.colorStatusWarningForegroundInverted=zl[Fl.warning].shade20;const nu=(e=>{const t=(e=>({colorNeutralForeground1:zs,colorNeutralForeground1Hover:zs,colorNeutralForeground1Pressed:zs,colorNeutralForeground1Selected:zs,colorNeutralForeground2:Hs,colorNeutralForeground2Hover:zs,colorNeutralForeground2Pressed:zs,colorNeutralForeground2Selected:zs,colorNeutralForeground2BrandHover:e[80],colorNeutralForeground2BrandPressed:e[70],colorNeutralForeground2BrandSelected:e[80],colorNeutralForeground3:Ys,colorNeutralForeground3Hover:Hs,colorNeutralForeground3Pressed:Hs,colorNeutralForeground3Selected:Hs,colorNeutralForeground3BrandHover:e[80],colorNeutralForeground3BrandPressed:e[70],colorNeutralForeground3BrandSelected:e[80],colorNeutralForeground4:Js,colorNeutralForegroundDisabled:rl,colorNeutralForegroundInvertedDisabled:gl,colorBrandForegroundLink:e[70],colorBrandForegroundLinkHover:e[60],colorBrandForegroundLinkPressed:e[40],colorBrandForegroundLinkSelected:e[70],colorNeutralForeground2Link:Hs,colorNeutralForeground2LinkHover:zs,colorNeutralForeground2LinkPressed:zs,colorNeutralForeground2LinkSelected:zs,colorCompoundBrandForeground1:e[80],colorCompoundBrandForeground1Hover:e[70],colorCompoundBrandForeground1Pressed:e[60],colorBrandForeground1:e[80],colorBrandForeground2:e[70],colorBrandForeground2Hover:e[60],colorBrandForeground2Pressed:e[30],colorNeutralForeground1Static:zs,colorNeutralForegroundStaticInverted:Nl,colorNeutralForegroundInverted:Nl,colorNeutralForegroundInvertedHover:Nl,colorNeutralForegroundInvertedPressed:Nl,colorNeutralForegroundInvertedSelected:Nl,colorNeutralForegroundInverted2:Nl,colorNeutralForegroundOnBrand:Nl,colorNeutralForegroundInvertedLink:Nl,colorNeutralForegroundInvertedLinkHover:Nl,colorNeutralForegroundInvertedLinkPressed:Nl,colorNeutralForegroundInvertedLinkSelected:Nl,colorBrandForegroundInverted:e[100],colorBrandForegroundInvertedHover:e[110],colorBrandForegroundInvertedPressed:e[100],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:Nl,colorNeutralBackground1Hover:dl,colorNeutralBackground1Pressed:sl,colorNeutralBackground1Selected:cl,colorNeutralBackground2:fl,colorNeutralBackground2Hover:ul,colorNeutralBackground2Pressed:al,colorNeutralBackground2Selected:ll,colorNeutralBackground3:dl,colorNeutralBackground3Hover:cl,colorNeutralBackground3Pressed:il,colorNeutralBackground3Selected:sl,colorNeutralBackground4:ul,colorNeutralBackground4Hover:fl,colorNeutralBackground4Pressed:dl,colorNeutralBackground4Selected:Nl,colorNeutralBackground5:cl,colorNeutralBackground5Hover:dl,colorNeutralBackground5Pressed:ul,colorNeutralBackground5Selected:fl,colorNeutralBackground6:ll,colorNeutralBackgroundInverted:js,colorNeutralBackgroundStatic:Fs,colorNeutralBackgroundAlpha:vl,colorNeutralBackgroundAlpha2:wl,colorSubtleBackground:"transparent",colorSubtleBackgroundHover:dl,colorSubtleBackgroundPressed:sl,colorSubtleBackgroundSelected:cl,colorSubtleBackgroundLightAlphaHover:bl,colorSubtleBackgroundLightAlphaPressed:vl,colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:Sl,colorSubtleBackgroundInvertedPressed:El,colorSubtleBackgroundInvertedSelected:kl,colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:ul,colorNeutralBackgroundInvertedDisabled:pl,colorNeutralStencil1:ll,colorNeutralStencil2:fl,colorNeutralStencil1Alpha:Sl,colorNeutralStencil2Alpha:xl,colorBackgroundOverlay:Tl,colorScrollbarOverlay:_l,colorBrandBackground:e[80],colorBrandBackgroundHover:e[70],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[80],colorCompoundBrandBackgroundHover:e[70],colorCompoundBrandBackgroundPressed:e[60],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[160],colorBrandBackground2Hover:e[150],colorBrandBackground2Pressed:e[130],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:Nl,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:fl,colorNeutralCardBackgroundHover:Nl,colorNeutralCardBackgroundPressed:dl,colorNeutralCardBackgroundSelected:cl,colorNeutralCardBackgroundDisabled:ul,colorNeutralStrokeAccessible:Ys,colorNeutralStrokeAccessibleHover:$s,colorNeutralStrokeAccessiblePressed:Us,colorNeutralStrokeAccessibleSelected:e[80],colorNeutralStroke1:ol,colorNeutralStroke1Hover:nl,colorNeutralStroke1Pressed:tl,colorNeutralStroke1Selected:rl,colorNeutralStroke2:sl,colorNeutralStroke3:ul,colorNeutralStrokeSubtle:sl,colorNeutralStrokeOnBrand:Nl,colorNeutralStrokeOnBrand2:Nl,colorNeutralStrokeOnBrand2Hover:Nl,colorNeutralStrokeOnBrand2Pressed:Nl,colorNeutralStrokeOnBrand2Selected:Nl,colorBrandStroke1:e[80],colorBrandStroke2:e[140],colorBrandStroke2Hover:e[120],colorBrandStroke2Pressed:e[80],colorBrandStroke2Contrast:e[140],colorCompoundBrandStroke:e[80],colorCompoundBrandStrokeHover:e[70],colorCompoundBrandStrokePressed:e[60],colorNeutralStrokeDisabled:sl,colorNeutralStrokeInvertedDisabled:gl,colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:xl,colorNeutralStrokeAlpha2:ml,colorStrokeFocus1:Nl,colorStrokeFocus2:Bl,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}))(e);return{...Wl,...Yl,...Kl,...Jl,...Xl,...dc,...cc,...uc,...Gl,...$l,...t,...Hl,...Ul,...Jc(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...Jc(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}})(Qc),ou=(e=>{const t=(e=>({colorNeutralForeground1:Nl,colorNeutralForeground1Hover:Nl,colorNeutralForeground1Pressed:Nl,colorNeutralForeground1Selected:Nl,colorNeutralForeground2:il,colorNeutralForeground2Hover:Nl,colorNeutralForeground2Pressed:Nl,colorNeutralForeground2Selected:Nl,colorNeutralForeground2BrandHover:e[100],colorNeutralForeground2BrandPressed:e[90],colorNeutralForeground2BrandSelected:e[100],colorNeutralForeground3:el,colorNeutralForeground3Hover:il,colorNeutralForeground3Pressed:il,colorNeutralForeground3Selected:il,colorNeutralForeground3BrandHover:e[100],colorNeutralForeground3BrandPressed:e[90],colorNeutralForeground3BrandSelected:e[100],colorNeutralForeground4:Zs,colorNeutralForegroundDisabled:Gs,colorNeutralForegroundInvertedDisabled:gl,colorBrandForegroundLink:e[100],colorBrandForegroundLinkHover:e[110],colorBrandForegroundLinkPressed:e[90],colorBrandForegroundLinkSelected:e[100],colorNeutralForeground2Link:il,colorNeutralForeground2LinkHover:Nl,colorNeutralForeground2LinkPressed:Nl,colorNeutralForeground2LinkSelected:Nl,colorCompoundBrandForeground1:e[100],colorCompoundBrandForeground1Hover:e[110],colorCompoundBrandForeground1Pressed:e[90],colorBrandForeground1:e[100],colorBrandForeground2:e[110],colorBrandForeground2Hover:e[130],colorBrandForeground2Pressed:e[160],colorNeutralForeground1Static:zs,colorNeutralForegroundStaticInverted:Nl,colorNeutralForegroundInverted:zs,colorNeutralForegroundInvertedHover:zs,colorNeutralForegroundInvertedPressed:zs,colorNeutralForegroundInvertedSelected:zs,colorNeutralForegroundInverted2:zs,colorNeutralForegroundOnBrand:Nl,colorNeutralForegroundInvertedLink:Nl,colorNeutralForegroundInvertedLinkHover:Nl,colorNeutralForegroundInvertedLinkPressed:Nl,colorNeutralForegroundInvertedLinkSelected:Nl,colorBrandForegroundInverted:e[80],colorBrandForegroundInvertedHover:e[70],colorBrandForegroundInvertedPressed:e[60],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:js,colorNeutralBackground1Hover:qs,colorNeutralBackground1Pressed:Ms,colorNeutralBackground1Selected:Vs,colorNeutralBackground2:Ms,colorNeutralBackground2Hover:Fs,colorNeutralBackground2Pressed:Ds,colorNeutralBackground2Selected:Ls,colorNeutralBackground3:Ds,colorNeutralBackground3Hover:js,colorNeutralBackground3Pressed:Bs,colorNeutralBackground3Selected:zs,colorNeutralBackground4:Bs,colorNeutralBackground4Hover:Ms,colorNeutralBackground4Pressed:Bl,colorNeutralBackground4Selected:Rs,colorNeutralBackground5:Bl,colorNeutralBackground5Hover:Ds,colorNeutralBackground5Pressed:Ns,colorNeutralBackground5Selected:Os,colorNeutralBackground6:Fs,colorNeutralBackgroundInverted:Nl,colorNeutralBackgroundStatic:qs,colorNeutralBackgroundAlpha:Cl,colorNeutralBackgroundAlpha2:Al,colorSubtleBackground:"transparent",colorSubtleBackgroundHover:Vs,colorSubtleBackgroundPressed:Ls,colorSubtleBackgroundSelected:Fs,colorSubtleBackgroundLightAlphaHover:Pl,colorSubtleBackgroundLightAlphaPressed:Il,colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:Sl,colorSubtleBackgroundInvertedPressed:El,colorSubtleBackgroundInvertedSelected:kl,colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:Ds,colorNeutralBackgroundInvertedDisabled:pl,colorNeutralStencil1:$s,colorNeutralStencil2:Fs,colorNeutralStencil1Alpha:pl,colorNeutralStencil2Alpha:hl,colorBackgroundOverlay:_l,colorScrollbarOverlay:yl,colorBrandBackground:e[70],colorBrandBackgroundHover:e[80],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[100],colorCompoundBrandBackgroundHover:e[110],colorCompoundBrandBackgroundPressed:e[90],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[20],colorBrandBackground2Hover:e[40],colorBrandBackground2Pressed:e[10],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:Nl,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:Fs,colorNeutralCardBackgroundHover:qs,colorNeutralCardBackgroundPressed:Ls,colorNeutralCardBackgroundSelected:Vs,colorNeutralCardBackgroundDisabled:Ds,colorNeutralStrokeAccessible:el,colorNeutralStrokeAccessibleHover:rl,colorNeutralStrokeAccessiblePressed:tl,colorNeutralStrokeAccessibleSelected:e[100],colorNeutralStroke1:Ks,colorNeutralStroke1Hover:Qs,colorNeutralStroke1Pressed:Xs,colorNeutralStroke1Selected:Js,colorNeutralStroke2:Ws,colorNeutralStroke3:qs,colorNeutralStrokeSubtle:Bs,colorNeutralStrokeOnBrand:js,colorNeutralStrokeOnBrand2:Nl,colorNeutralStrokeOnBrand2Hover:Nl,colorNeutralStrokeOnBrand2Pressed:Nl,colorNeutralStrokeOnBrand2Selected:Nl,colorBrandStroke1:e[100],colorBrandStroke2:e[50],colorBrandStroke2Hover:e[50],colorBrandStroke2Pressed:e[30],colorBrandStroke2Contrast:e[50],colorCompoundBrandStroke:e[100],colorCompoundBrandStrokeHover:e[110],colorCompoundBrandStrokePressed:e[90],colorNeutralStrokeDisabled:Hs,colorNeutralStrokeInvertedDisabled:gl,colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:pl,colorNeutralStrokeAlpha2:ml,colorStrokeFocus1:Bl,colorStrokeFocus2:Nl,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}))(e);return{...Wl,...Yl,...Kl,...Jl,...Xl,...dc,...cc,...uc,...Gl,...$l,...t,...tu,...ru,...Jc(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...Jc(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}})(Qc),iu="fui-FluentProvider",au=on({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),su=g.useInsertionEffect?g.useInsertionEffect:go,lu=e=>{const{targetDocument:t,theme:r,rendererAttributes:n}=e,o=g.useRef(),i=wo(iu),a=n,s=g.useMemo(()=>function(e,t){if(t)return`${e} { ${Object.keys(t).reduce((e,r)=>`${e}--${r}: ${t[r]}; `,"")} }`;return`${e} {}`}(`.${i}`,r),[r,i]);return function(e,t){g.useState(()=>{if(!e)return;const r=e.getElementById(t);r&&e.head.append(r)})}(t,i),su(()=>{const e=null==t?void 0:t.getElementById(i);return e?o.current=e:(o.current=((e,t)=>{if(!(null==e?void 0:e.head))return;const r=e.createElement("style");return Object.keys(t).forEach(e=>{r.setAttribute(e,t[e])}),e.head.appendChild(r),r})(t,{...a,id:i}),o.current&&((e,t)=>{const r=e.sheet;r&&(r.cssRules.length>0&&r.deleteRule(0),r.insertRule(t,0))})(o.current,s)),()=>{var e;null===(e=o.current)||void 0===e||e.remove()}},[i,t,s,a]),{styleTagId:i,rule:s}};const cu={},uu={},du=(e,t)=>{const r=Qn(),n=g.useContext(qn),o=to(),i=g.useContext(ro)||cu,{applyStylesToPortals:a=!0,customStyleHooks_unstable:s,dir:l=r.dir,targetDocument:c=r.targetDocument,theme:u,overrides_unstable:d={}}=e,f=fu(n,u),h=fu(o,d),p=fu(i,s),m=un();var v;const{styleTagId:y,rule:b}=lu({theme:f,targetDocument:c,rendererAttributes:null!==(v=m.styleElementAttributes)&&void 0!==v?v:uu});return{applyStylesToPortals:a,customStyleHooks_unstable:p,dir:l,targetDocument:c,theme:f,overrides_unstable:h,themeClassName:y,components:{root:"div"},root:wn(Fn("div",{...e,dir:l,ref:xo(t,xs({targetDocument:c}))}),{elementType:"div"}),serverStyleProps:{cssRule:b,attributes:{...m.styleElementAttributes,id:y}}}};function fu(e,t){return e&&t?{...e,...t}:e||t}const hu=g.forwardRef((e,t)=>{const r=du(e,t);(e=>{const t=un(),r=au({dir:e.dir,renderer:t});e.root.className=Qe(iu,e.themeClassName,r.root,e.root.className)})(r);const n=function(e){const{applyStylesToPortals:t,customStyleHooks_unstable:r,dir:n,root:o,targetDocument:i,theme:a,themeClassName:s,overrides_unstable:l}=e,c=g.useMemo(()=>({dir:n,targetDocument:i}),[n,i]),[u]=g.useState(()=>({})),d=g.useMemo(()=>({textDirection:n}),[n]);return{customStyleHooks_unstable:r,overrides_unstable:l,provider:c,textDirection:n,iconDirection:d,tooltip:u,theme:a,themeClassName:t?o.className:s}}(r);return((e,t)=>Uo(Jn,{value:t.provider,children:Uo(Hn,{value:t.theme,children:Uo(Wn,{value:t.themeClassName,children:Uo(oo,{value:t.customStyleHooks_unstable,children:Uo(Yn,{value:t.tooltip,children:Uo(fn,{dir:t.textDirection,children:Uo(Yo,{value:t.iconDirection,children:Uo(eo,{value:t.overrides_unstable,children:Wo(e.root,{children:[fo()?null:Uo("style",{dangerouslySetInnerHTML:{__html:e.serverStyleProps.cssRule},...e.serverStyleProps.attributes}),e.root.children]})})})})})})})})}))(r,n)});hu.displayName="FluentProvider";var pu,mu,gu={exports:{}},vu={};var yu=(mu||(mu=1,gu.exports=(pu||(pu=1,function(e){function t(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(!(0<o(i,t)))break e;e[n]=t,e[r]=i,r=n}}function r(e){return 0===e.length?null:e[0]}function n(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,a=i>>>1;n<a;){var s=2*(n+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,r))c<i&&0>o(u,l)?(e[n]=u,e[c]=r,n=c):(e[n]=l,e[s]=r,n=s);else{if(!(c<i&&0>o(u,r)))break e;e[n]=u,e[c]=r,n=c}}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,h=!1,p=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=r(c);null!==o;){if(null===o.callback)n(c);else{if(!(o.startTime<=e))break;n(c),o.sortIndex=o.expirationTime,t(l,o)}o=r(c)}}function w(e){if(m=!1,b(e),!p)if(null!==r(l))p=!0,B(x);else{var t=r(c);null!==t&&O(w,t.startTime-e)}}function x(t,o){p=!1,m&&(m=!1,v(T),T=-1),h=!0;var i=f;try{for(b(o),d=r(l);null!==d&&(!(d.expirationTime>o)||t&&!A());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===r(l)&&n(l),b(o)}else n(l);d=r(l)}if(null!==d)var u=!0;else{var g=r(c);null!==g&&O(w,g.startTime-o),u=!1}return u}finally{d=null,f=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,k=!1,E=null,T=-1,_=5,C=-1;function A(){return!(e.unstable_now()-C<_)}function I(){if(null!==E){var t=e.unstable_now();C=t;var r=!0;try{r=E(!0,t)}finally{r?S():(k=!1,E=null)}}else k=!1}if("function"==typeof y)S=function(){y(I)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,N=P.port2;P.port1.onmessage=I,S=function(){N.postMessage(null)}}else S=function(){g(I,0)};function B(e){E=e,k||(k=!0,S())}function O(t,r){T=g(function(){t(e.unstable_now())},r)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,B(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var r=f;f=t;try{return e()}finally{f=r}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=f;f=e;try{return t()}finally{f=r}},e.unstable_scheduleCallback=function(n,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,n){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return n={id:u++,callback:o,priorityLevel:n,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(n.sortIndex=i,t(c,n),null===r(l)&&n===r(c)&&(m?(v(T),T=-1):m=!0,O(w,i-a))):(n.sortIndex=s,t(l,n),p||h||(p=!0,B(x))),n},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(e){var t=f;return function(){var r=f;f=t;try{return e.apply(this,arguments)}finally{f=r}}}}(vu)),vu)),gu.exports);const bu=e=>{const t=g.createContext({value:{current:e},version:{current:-1},listeners:[]});var r;return t.Provider=(r=t.Provider,e=>{const t=g.useRef(e.value),n=g.useRef(0),o=g.useRef();return o.current||(o.current={value:t,version:n,listeners:[]}),go(()=>{t.current=e.value,n.current+=1,yu.unstable_runWithPriority(yu.unstable_NormalPriority,()=>{o.current.listeners.forEach(t=>{t([n.current,e.value])})})},[e.value]),g.createElement(r,{value:o.current},e.children)}),delete t.Consumer,t},wu=(e,t)=>{const r=g.useContext(e),{value:{current:n},version:{current:o},listeners:i}=r,a=t(n),[s,l]=g.useState([n,a]),c=e=>{l(r=>{if(!e)return[n,a];if(e[0]<=o)return Object.is(r[1],a)?r:[n,a];try{if(Object.is(r[0],e[1]))return r;const n=t(e[1]);return Object.is(r[1],n)?r:[e[1],n]}catch(Wqe){}return[r[0],r[1]]})};Object.is(s[1],a)||c(void 0);const u=vo(c);return go(()=>(i.push(u),()=>{const e=i.indexOf(u);i.splice(e,1)}),[u,i]),s[1]};function xu(e){const t=g.useContext(e);return!!t.version&&-1!==t.version.current}const Su="Enter",ku=" ",Eu="ArrowDown",Tu="ArrowLeft",_u="ArrowRight",Cu="ArrowUp",Au="Home",Iu="PageDown",Pu="PageUp",Nu="Backspace",Bu="Escape";function Ou(e,t){const{disabled:r,disabledFocusable:n=!1,"aria-disabled":o,onClick:i,onKeyDown:a,onKeyUp:s,...l}=null!=t?t:{},c="string"==typeof o?"true"===o:o,u=r||n||c,d=vo(e=>{u?(e.preventDefault(),e.stopPropagation()):null==i||i(e)}),f=vo(e=>{if(null==a||a(e),e.isDefaultPrevented())return;const t=e.key;if(u&&(t===Su||t===ku))return e.preventDefault(),void e.stopPropagation();t!==ku?t===Su&&(e.preventDefault(),e.currentTarget.click()):e.preventDefault()}),h=vo(e=>{if(null==s||s(e),e.isDefaultPrevented())return;const t=e.key;if(u&&(t===Su||t===ku))return e.preventDefault(),void e.stopPropagation();t===ku&&(e.preventDefault(),e.currentTarget.click())});if("button"===e||void 0===e)return{...l,disabled:r&&!n,"aria-disabled":!!n||c,onClick:n?void 0:d,onKeyUp:n?void 0:s,onKeyDown:n?void 0:a};{const t=!!l.href;let o=t?void 0:"button";!o&&u&&(o="link");const i={role:o,tabIndex:n||!t&&!r?0:void 0,...l,onClick:d,onKeyUp:h,onKeyDown:f,"aria-disabled":u};return"a"===e&&u&&(i.href=void 0),i}}const Du=()=>{},Ru={controller:{active:Du,blur:Du,find:Du,first:Du,focus:Du,focusLastActive:Du,scrollActiveIntoView:Du,last:Du,next:Du,prev:Du,showAttributes:Du,hideAttributes:Du,showFocusVisibleAttributes:Du,hideFocusVisibleAttributes:Du}},Mu=g.createContext(void 0),zu=Mu.Provider,ju=()=>{var e;return null!==(e=g.useContext(Mu))&&void 0!==e?e:Ru};const Lu="data-activedescendant",Fu="data-activedescendant-focusvisible",Vu=e=>{if(!e)return;const t=qu(e.parentElement);if(!t)return;const{offsetHeight:r}=e,n=Hu(e,t),{scrollMarginTop:o,scrollMarginBottom:i}=Uu(e),{offsetHeight:a,scrollTop:s}=t,l=n+r+i>s+a;n-o<s?t.scrollTo(0,n-o-2):l&&t.scrollTo(0,n+r+i-a+2)},qu=e=>e?e.scrollHeight>e.offsetHeight?e:qu(e.parentElement):null,Hu=(e,t)=>e&&e!==t?e.contains(t)?-1*t.offsetTop:e.offsetTop+Hu(e.offsetParent,t):0,Uu=e=>{var t;const r=null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;if(!r)return{scrollMarginTop:0,scrollMarginBottom:0};const n=r.getComputedStyle(e);var o;var i;return{scrollMarginTop:null!==(o=Wu(n.scrollMarginTop))&&void 0!==o?o:Wu(n.scrollMarginBlockStart),scrollMarginBottom:null!==(i=Wu(n.scrollMarginBottom))&&void 0!==i?i:Wu(n.scrollMarginBlockEnd)}},Wu=e=>e?parseInt(e,10):0;function $u(e){const{imperativeRef:t,matchOption:r}=e,n=g.useRef(!1),o=g.useRef(!0),i=g.useRef(null),a=g.useRef(null),s=g.useRef(null),l=g.useRef(!0),c=g.useCallback(()=>{var e;null===(e=s.current)||void 0===e||e.removeAttribute("aria-activedescendant")},[]),u=g.useCallback(e=>{var t;(e&&(i.current=e),l.current&&i.current)&&(null===(t=s.current)||void 0===t||t.setAttribute("aria-activedescendant",i.current))},[]);Cs(e=>{n.current=e;const t=m();t&&(e&&o.current?t.setAttribute(Fu,""):t.removeAttribute(Fu))});const d=vo(r),f=g.useRef(null),{optionWalker:h,listboxCallbackRef:p}=function(e){const{matchOption:t}=e,{targetDocument:r}=Qn(),n=g.useRef(null),o=g.useRef(null),i=g.useCallback(e=>Oo(e)&&t(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,[t]),a=g.useCallback(e=>{e&&r?(o.current=e,n.current=r.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,i)):(o.current=null,n.current=null)},[r,i]);return{optionWalker:g.useMemo(()=>({first:()=>n.current&&o.current?(n.current.currentNode=o.current,n.current.firstChild()):null,last:()=>n.current&&o.current?(n.current.currentNode=o.current,n.current.lastChild()):null,next:()=>n.current?n.current.nextNode():null,prev:()=>n.current?n.current.previousNode():null,find:(e,t)=>{if(!n.current||!o.current)return null;const i=t?null==r?void 0:r.getElementById(t):null;n.current.currentNode=null!=i?i:o.current;let a=n.current.currentNode;for(;a&&!e(a.id);)a=n.current.nextNode();return a},setCurrent:e=>{n.current&&(n.current.currentNode=e)}}),[r]),listboxCallbackRef:a}}({matchOption:d}),m=g.useCallback(()=>{var e;return null===(e=f.current)||void 0===e?void 0:e.querySelector(`#${i.current}`)},[f]),v=g.useCallback(e=>{o.current=e;const t=m();t&&(e&&n.current?t.setAttribute(Fu,""):t.removeAttribute(Fu))},[m]),y=g.useCallback(()=>{const e=m();var t;return e&&(e.removeAttribute(Lu),e.removeAttribute(Fu)),c(),a.current=i.current,i.current=null,null!==(t=null==e?void 0:e.id)&&void 0!==t?t:null},[m,c]),b=g.useCallback(e=>{if(!e)return;const t=y();Vu(e),u(e.id),e.setAttribute(Lu,""),n.current&&o.current&&e.setAttribute(Fu,"");const r=(i={id:e.id,previousId:t},new CustomEvent("activedescendantchange",{bubbles:!0,cancelable:!1,composed:!0,detail:i}));var i;e.dispatchEvent(r)},[y,u]),w=g.useMemo(()=>({first:({passive:e}={})=>{const t=h.first();return e||b(t),null==t?void 0:t.id},last:({passive:e}={})=>{const t=h.last();return e||b(t),null==t?void 0:t.id},next:({passive:e}={})=>{const t=m();if(!t)return;h.setCurrent(t);const r=h.next();return e||b(r),null==r?void 0:r.id},prev:({passive:e}={})=>{const t=m();if(!t)return;h.setCurrent(t);const r=h.prev();return e||b(r),null==r?void 0:r.id},blur:()=>{y()},active:()=>{var e;return null===(e=m())||void 0===e?void 0:e.id},focus:e=>{if(!f.current)return;const t=f.current.querySelector(`#${e}`);t&&b(t)},focusLastActive:()=>{if(!f.current||!a.current)return;const e=f.current.querySelector(`#${a.current}`);return e?(b(e),!0):void 0},find(e,{passive:t,startFrom:r}={}){const n=h.find(e,r);return t||b(n),null==n?void 0:n.id},scrollActiveIntoView:()=>{if(!f.current)return;const e=m();e&&Vu(e)},showAttributes(){l.current=!0,u()},hideAttributes(){l.current=!1,c()},showFocusVisibleAttributes(){v(!0)},hideFocusVisibleAttributes(){v(!1)}}),[h,f,u,c,b,y,m,v]);return g.useImperativeHandle(t,()=>w),{listboxRef:xo(f,p),activeParentRef:s,controller:w}}const Gu=mn({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"]}),Yu=(e,t)=>{const{title:r,primaryFill:n="currentColor",...o}=e,i={...o,title:void 0,fill:n},a=Gu(),s=(()=>{const e=g.useContext($o);return null!=e?e:Go})();return i.className=Qe(a.root,(null==t?void 0:t.flipInRtl)&&"rtl"===(null==s?void 0:s.textDirection)&&a.rtl,i.className),r&&(i["aria-label"]=r),i["aria-label"]||i["aria-labelledby"]?i.role="img":i["aria-hidden"]=!0,i},Ku=mn({root:{ycbfsm:"fg4l7m0"}},{t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),Xu=(e,t,r,n)=>{const o="1em"===t?"20":t,i=g.forwardRef((e,i)=>{const a=Ku(),s=Yu(e,{flipInRtl:null==n?void 0:n.flipInRtl}),l={...s,className:Qe(s.className,a.root),ref:i,width:t,height:t,viewBox:`0 0 ${o} ${o}`,xmlns:"http://www.w3.org/2000/svg"};return"string"==typeof r?g.createElement("svg",{...l,dangerouslySetInnerHTML:{__html:r}}):g.createElement("svg",l,...r.map(e=>g.createElement("path",{d:e,fill:l.fill})))});return i.displayName=e,i},Ju=Xu("ArrowDownRegular","1em",["M16.87 10.84a.5.5 0 1 0-.74-.68l-5.63 6.17V2.5a.5.5 0 0 0-1 0v13.83l-5.63-6.17a.5.5 0 0 0-.74.68l6.31 6.91a.75.75 0 0 0 1.11 0l6.32-6.91Z"]),Qu=Xu("ArrowUpRegular","1em",["M3.13 9.16a.5.5 0 1 0 .74.68L9.5 3.67V17.5a.5.5 0 1 0 1 0V3.67l5.63 6.17a.5.5 0 0 0 .74-.68l-6.32-6.92a.75.75 0 0 0-1.1 0L3.13 9.16Z"],{flipInRtl:!0}),Zu=Xu("CalendarMonthRegular","1em",["M14.5 3A2.5 2.5 0 0 1 17 5.5v9a2.5 2.5 0 0 1-2.5 2.5h-9A2.5 2.5 0 0 1 3 14.5v-9A2.5 2.5 0 0 1 5.5 3h9Zm0 1h-9C4.67 4 4 4.67 4 5.5v9c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5v-9c0-.83-.67-1.5-1.5-1.5ZM7 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm3 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2ZM7 7a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm3 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm3 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"]),ed=Xu("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),td=Xu("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),rd=Xu("ChevronLeftFilled","1em",["M12.27 15.8a.75.75 0 0 1-1.06-.03l-5-5.25a.75.75 0 0 1 0-1.04l5-5.25a.75.75 0 1 1 1.08 1.04L7.8 10l4.5 4.73c.29.3.28.78-.02 1.06Z"]),nd=Xu("ChevronLeftRegular","1em",["M12.35 15.85a.5.5 0 0 1-.7 0L6.16 10.4a.55.55 0 0 1 0-.78l5.49-5.46a.5.5 0 1 1 .7.7L7.2 10l5.16 5.15c.2.2.2.5 0 .7Z"]),od=Xu("ChevronRightFilled","1em",["M7.73 4.2a.75.75 0 0 1 1.06.03l5 5.25c.28.3.28.75 0 1.04l-5 5.25a.75.75 0 1 1-1.08-1.04L12.2 10l-4.5-4.73a.75.75 0 0 1 .02-1.06Z"]),id=Xu("ChevronRightRegular","1em",["M7.65 4.15c.2-.2.5-.2.7 0l5.49 5.46c.21.22.21.57 0 .78l-5.49 5.46a.5.5 0 0 1-.7-.7L12.8 10 7.65 4.85a.5.5 0 0 1 0-.7Z"]),ad=Xu("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),sd=Xu("DismissRegular","1em",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),ld=Xu("StarFilled","1em",["M9.1 2.9a1 1 0 0 1 1.8 0l1.93 3.91 4.31.63a1 1 0 0 1 .56 1.7l-3.12 3.05.73 4.3a1 1 0 0 1-1.45 1.05L10 15.51l-3.86 2.03a1 1 0 0 1-1.45-1.05l.74-4.3L2.3 9.14a1 1 0 0 1 .56-1.7l4.31-.63L9.1 2.9Z"]),cd=Xu("StarRegular","1em",["M9.1 2.9a1 1 0 0 1 1.8 0l1.93 3.91 4.31.63a1 1 0 0 1 .56 1.7l-3.12 3.05.73 4.3a1 1 0 0 1-1.45 1.05L10 15.51l-3.86 2.03a1 1 0 0 1-1.45-1.05l.74-4.3L2.3 9.14a1 1 0 0 1 .56-1.7l4.31-.63L9.1 2.9Zm.9.44L8.07 7.25a1 1 0 0 1-.75.55L3 8.43l3.12 3.04a1 1 0 0 1 .3.89l-.75 4.3 3.87-2.03a1 1 0 0 1 .93 0l3.86 2.03-.74-4.3a1 1 0 0 1 .29-.89L17 8.43l-4.32-.63a1 1 0 0 1-.75-.55L10 3.35Z"]),ud=Xu("CheckboxChecked20Filled","20",["M6 3a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3H6Zm7.85 4.85-5 5a.5.5 0 0 1-.7 0l-2-2a.5.5 0 0 1 .7-.7l1.65 1.64 4.65-4.64a.5.5 0 0 1 .7.7Z"]),dd=Xu("CheckboxUnchecked20Regular","20",["M3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Zm3-2a2 2 0 0 0-2 2v8c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H6Z"]),fd=Xu("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),hd=Xu("Checkmark16Filled","16",["M14.05 3.49c.28.3.27.77-.04 1.06l-7.93 7.47A.85.85 0 0 1 4.9 12L2.22 9.28a.75.75 0 1 1 1.06-1.06l2.24 2.27 7.47-7.04a.75.75 0 0 1 1.06.04Z"]),pd=Xu("ChevronDown16Regular","16",["M3.15 5.65c.2-.2.5-.2.7 0L8 9.79l4.15-4.14a.5.5 0 0 1 .7.7l-4.5 4.5a.5.5 0 0 1-.7 0l-4.5-4.5a.5.5 0 0 1 0-.7Z"]),md=Xu("ChevronLeft24Regular","24",["M15.53 4.22c.3.3.3.77 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25c.3-.3.77-.3 1.06 0Z"]),gd=Xu("ChevronRight24Regular","24",["M8.47 4.22c-.3.3-.3.77 0 1.06L15.19 12l-6.72 6.72a.75.75 0 1 0 1.06 1.06l7.25-7.25c.3-.3.3-.77 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0Z"]),vd=Xu("ChevronUp16Regular","16",["M3.15 10.35c.2.2.5.2.7 0L8 6.21l4.15 4.14a.5.5 0 0 0 .7-.7l-4.5-4.5a.5.5 0 0 0-.7 0l-4.5 4.5a.5.5 0 0 0 0 .7Z"]),yd=Xu("ErrorCircle20Filled","20",["M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 10.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5ZM10 6a.5.5 0 0 0-.5.41v4.68a.5.5 0 0 0 1 0V6.41A.5.5 0 0 0 10 6Z"]),bd=Xu("Eye24Regular","24",["M12 9a4 4 0 1 1 0 8 4 4 0 0 1 0-8Zm0 1.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Zm0-5a10 10 0 0 1 9.7 7.56.75.75 0 1 1-1.45.37 8.5 8.5 0 0 0-16.5 0 .75.75 0 0 1-1.45-.36A10 10 0 0 1 12 5.5Z"]),wd=Xu("EyeOff24Regular","24",["M2.22 2.22a.75.75 0 0 0-.07.98l.07.08 4.03 4.03a9.99 9.99 0 0 0-3.95 5.75.75.75 0 0 0 1.45.37 8.49 8.49 0 0 1 3.58-5.04l1.81 1.81A3.99 3.99 0 0 0 12 17c1.09 0 2.08-.43 2.8-1.14l5.92 5.92a.75.75 0 0 0 1.13-.98l-.07-.08-6.11-6.11-1.2-1.2-2.87-2.87-2.88-2.88-1.13-1.13-4.31-4.31a.75.75 0 0 0-1.06 0Zm7.98 9.05 3.54 3.53A2.5 2.5 0 0 1 9.5 13c0-.67.27-1.28.7-1.73ZM12 5.5a10 10 0 0 0-2.89.42l1.24 1.24a8.52 8.52 0 0 1 9.9 6.27.75.75 0 0 0 1.45-.36A10 10 0 0 0 12 5.5Zm.2 3.5 3.8 3.81a4 4 0 0 0-3.8-3.8Z"]),xd=Xu("Square12Filled","12",["M2 4c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4Z"]),Sd=Xu("Square16Filled","16",["M2 4.5A2.5 2.5 0 0 1 4.5 2h7A2.5 2.5 0 0 1 14 4.5v7a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 11.5v-7Z"]),kd=mn({root:{mc9l5x:"fjseox"},visible:{mc9l5x:"f1w7gpdv"}},{d:[".fjseox{display:none;}",".f1w7gpdv{display:inline;}"]}),Ed=(e,t)=>{const r=r=>{const{className:n,filled:o,...i}=r,a=kd();return g.createElement(g.Fragment,null,g.createElement(e,Object.assign({},i,{className:Qe(a.root,o&&a.visible,"fui-Icon-filled",n)})),g.createElement(t,Object.assign({},i,{className:Qe(a.root,!o&&a.visible,"fui-Icon-regular",n)})))};return r.displayName="CompoundIcon",r},Td="fui-Badge",_d="fui-Badge__icon",Cd=gn("r1iycov","r115jdol",[".r1iycov{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;min-width:20px;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.r1iycov::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}',".r115jdol{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;min-width:20px;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.r115jdol::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}']),Ad=mn({fontSmallToTiny:{Bahqtrf:"fk6fouc",Be2twd7:"f13mqy1h",Bhrd7zp:"fl43uef",Bg96gwp:"fcpl73t"},tiny:{a9b677:"f16dn6v3",Bqenvij:"f3mu39s",Be2twd7:"f130uwy9",Bg96gwp:"fod1mrr",Bf4jedk:"f18p0k4z",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f19jm9xf"},"extra-small":{a9b677:"fpd43o0",Bqenvij:"f30q22z",Be2twd7:"f1tccstq",Bg96gwp:"f1y3arg5",Bf4jedk:"f18p0k4z",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f19jm9xf"},small:{Bf4jedk:"fq2vo04",Bqenvij:"fd461yt",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fupdldz"},medium:{},large:{Bf4jedk:"f17fgpbq",Bqenvij:"frvgh55",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1996nqw"},"extra-large":{Bf4jedk:"fwbmr0d",Bqenvij:"f1d2rq10",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fty64o7"},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},rounded:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},roundedSmallToTiny:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fq9zq91"},circular:{},borderGhost:{ap17g6:"f10ludwy"},filled:{},"filled-brand":{De3pzq:"ffp7eso",sj55zd:"f1phragk"},"filled-danger":{De3pzq:"fdl5y0r",sj55zd:"f1phragk"},"filled-important":{De3pzq:"f1c73kur",sj55zd:"fr0bkrk"},"filled-informative":{De3pzq:"f3vzo32",sj55zd:"f11d4kpn"},"filled-severe":{De3pzq:"f1s438gw",sj55zd:"f1phragk"},"filled-subtle":{De3pzq:"fxugw4r",sj55zd:"f19n0e5"},"filled-success":{De3pzq:"flxk52p",sj55zd:"f1phragk"},"filled-warning":{De3pzq:"ffq97bm",sj55zd:"ff5vbop"},ghost:{},"ghost-brand":{sj55zd:"f16muhyy"},"ghost-danger":{sj55zd:"f1whyuy6"},"ghost-important":{sj55zd:"f19n0e5"},"ghost-informative":{sj55zd:"f11d4kpn"},"ghost-severe":{sj55zd:"f1l8vj45"},"ghost-subtle":{sj55zd:"fonrgv7"},"ghost-success":{sj55zd:"f1m7fhi8"},"ghost-warning":{sj55zd:"fpti2h4"},outline:{g2u3we:"f23ftbb",h3c5rm:["f1gkuv52","f1p1bl80"],B9xav0g:"fioka3i",zhjwy3:["f1p1bl80","f1gkuv52"]},"outline-brand":{sj55zd:"f16muhyy"},"outline-danger":{sj55zd:"f1whyuy6",g2u3we:"fyqpifd",h3c5rm:["f3ukxca","f1k7dugc"],B9xav0g:"f1njxb2b",zhjwy3:["f1k7dugc","f3ukxca"]},"outline-important":{sj55zd:"f11d4kpn",g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"]},"outline-informative":{sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"outline-severe":{sj55zd:"f1l8vj45"},"outline-subtle":{sj55zd:"fonrgv7"},"outline-success":{sj55zd:"f1m7fhi8",g2u3we:"f1mmhl11",h3c5rm:["f1tjpp2f","f1ocn5n7"],B9xav0g:"f1gjv25d",zhjwy3:["f1ocn5n7","f1tjpp2f"]},"outline-warning":{sj55zd:"fpti2h4"},tint:{},"tint-brand":{De3pzq:"f16xkysk",sj55zd:"faj9fo0",g2u3we:"f161y7kd",h3c5rm:["f1c8dzaj","f1sl6hi9"],B9xav0g:"f1619yhw",zhjwy3:["f1sl6hi9","f1c8dzaj"]},"tint-danger":{De3pzq:"ff0poqj",sj55zd:"f1hcrxcs",g2u3we:"f1oqjm8o",h3c5rm:["fkgrb8g","frb5wm0"],B9xav0g:"f1iai1ph",zhjwy3:["frb5wm0","fkgrb8g"]},"tint-important":{De3pzq:"f945g0u",sj55zd:"fr0bkrk",g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"tint-informative":{De3pzq:"f1ctqxl6",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-severe":{De3pzq:"f1xzsg4",sj55zd:"f1k5f75o",g2u3we:"fxy9dsj",h3c5rm:["f54u6j2","fcm23ze"],B9xav0g:"f4vf0uq",zhjwy3:["fcm23ze","f54u6j2"]},"tint-subtle":{De3pzq:"fxugw4r",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-success":{De3pzq:"f2vsrz6",sj55zd:"ffmvakt",g2u3we:"fdmic9h",h3c5rm:["f196y6m","fetptd8"],B9xav0g:"f1pev5xq",zhjwy3:["fetptd8","f196y6m"]},"tint-warning":{De3pzq:"f10s6hli",sj55zd:"f42v8de",g2u3we:"fn9i3n",h3c5rm:["f1aw8cx4","f51if14"],B9xav0g:"fvq8iai",zhjwy3:["f51if14","f1aw8cx4"]}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",".f130uwy9{font-size:4px;}",".fod1mrr{line-height:4px;}",".f18p0k4z{min-width:unset;}",[".f19jm9xf{padding:unset;}",{p:-1}],".fpd43o0{width:10px;}",".f30q22z{height:10px;}",".f1tccstq{font-size:6px;}",".f1y3arg5{line-height:6px;}",[".f19jm9xf{padding:unset;}",{p:-1}],".fq2vo04{min-width:16px;}",".fd461yt{height:16px;}",[".fupdldz{padding:0 calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",{p:-1}],".f17fgpbq{min-width:24px;}",".frvgh55{height:24px;}",[".f1996nqw{padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",{p:-1}],".fwbmr0d{min-width:32px;}",".f1d2rq10{height:32px;}",[".fty64o7{padding:0 calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".fq9zq91{border-radius:var(--borderRadiusSmall);}",{p:-1}],".f10ludwy::after{display:none;}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}",".f1c73kur{background-color:var(--colorNeutralForeground1);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f3vzo32{background-color:var(--colorNeutralBackground5);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".flxk52p{background-color:var(--colorPaletteGreenBackground3);}",".ffq97bm{background-color:var(--colorPaletteYellowBackground3);}",".ff5vbop{color:var(--colorNeutralForeground1Static);}",".f16muhyy{color:var(--colorBrandForeground1);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}",".fpti2h4{color:var(--colorPaletteYellowForeground2);}",".f23ftbb{border-top-color:currentColor;}",".f1gkuv52{border-right-color:currentColor;}",".f1p1bl80{border-left-color:currentColor;}",".fioka3i{border-bottom-color:currentColor;}",".fyqpifd{border-top-color:var(--colorPaletteRedBorder2);}",".f3ukxca{border-right-color:var(--colorPaletteRedBorder2);}",".f1k7dugc{border-left-color:var(--colorPaletteRedBorder2);}",".f1njxb2b{border-bottom-color:var(--colorPaletteRedBorder2);}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f68mrw8{border-top-color:var(--colorNeutralStroke2);}",".f7pw515{border-right-color:var(--colorNeutralStroke2);}",".fw35ms5{border-left-color:var(--colorNeutralStroke2);}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}",".f1mmhl11{border-top-color:var(--colorPaletteGreenBorder2);}",".f1tjpp2f{border-right-color:var(--colorPaletteGreenBorder2);}",".f1ocn5n7{border-left-color:var(--colorPaletteGreenBorder2);}",".f1gjv25d{border-bottom-color:var(--colorPaletteGreenBorder2);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f161y7kd{border-top-color:var(--colorBrandStroke2);}",".f1c8dzaj{border-right-color:var(--colorBrandStroke2);}",".f1sl6hi9{border-left-color:var(--colorBrandStroke2);}",".f1619yhw{border-bottom-color:var(--colorBrandStroke2);}",".ff0poqj{background-color:var(--colorPaletteRedBackground1);}",".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1oqjm8o{border-top-color:var(--colorPaletteRedBorder1);}",".fkgrb8g{border-right-color:var(--colorPaletteRedBorder1);}",".frb5wm0{border-left-color:var(--colorPaletteRedBorder1);}",".f1iai1ph{border-bottom-color:var(--colorPaletteRedBorder1);}",".f945g0u{background-color:var(--colorNeutralForeground3);}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f1ctqxl6{background-color:var(--colorNeutralBackground4);}",".f1xzsg4{background-color:var(--colorPaletteDarkOrangeBackground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".fxy9dsj{border-top-color:var(--colorPaletteDarkOrangeBorder1);}",".f54u6j2{border-right-color:var(--colorPaletteDarkOrangeBorder1);}",".fcm23ze{border-left-color:var(--colorPaletteDarkOrangeBorder1);}",".f4vf0uq{border-bottom-color:var(--colorPaletteDarkOrangeBorder1);}",".f2vsrz6{background-color:var(--colorPaletteGreenBackground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}",".fdmic9h{border-top-color:var(--colorPaletteGreenBorder1);}",".f196y6m{border-right-color:var(--colorPaletteGreenBorder1);}",".fetptd8{border-left-color:var(--colorPaletteGreenBorder1);}",".f1pev5xq{border-bottom-color:var(--colorPaletteGreenBorder1);}",".f10s6hli{background-color:var(--colorPaletteYellowBackground1);}",".f42v8de{color:var(--colorPaletteYellowForeground1);}",".fn9i3n{border-top-color:var(--colorPaletteYellowBorder1);}",".f1aw8cx4{border-right-color:var(--colorPaletteYellowBorder1);}",".f51if14{border-left-color:var(--colorPaletteYellowBorder1);}",".fvq8iai{border-bottom-color:var(--colorPaletteYellowBorder1);}"]}),Id=gn("rttl5z0",null,[".rttl5z0{display:flex;line-height:1;margin:0 calc(-1 * var(--spacingHorizontalXXS));font-size:12px;}"]),Pd=mn({beforeText:{t21cq0:["f1t8l4o1","f11juvx6"]},afterText:{Frg6f3:["f11juvx6","f1t8l4o1"]},beforeTextXL:{t21cq0:["f1rs9grm","f1kwmkpi"]},afterTextXL:{Frg6f3:["f1kwmkpi","f1rs9grm"]},tiny:{Be2twd7:"f1tccstq"},"extra-small":{Be2twd7:"fnmn6fi"},small:{Be2twd7:"f1ugzwwg"},medium:{},large:{Be2twd7:"f4ybsrx"},"extra-large":{Be2twd7:"fe5j1ua"}},{d:[".f1t8l4o1{margin-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f11juvx6{margin-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1rs9grm{margin-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1kwmkpi{margin-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1tccstq{font-size:6px;}",".fnmn6fi{font-size:10px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}"]}),Nd=g.forwardRef((e,t)=>{const r=((e,t)=>{const{shape:r="circular",size:n="medium",iconPosition:o="before",appearance:i="filled",color:a="brand"}=e;return{shape:r,size:n,iconPosition:o,appearance:i,color:a,components:{root:"div",icon:"span"},root:wn(Fn("div",{ref:t,...e}),{elementType:"div"}),icon:xn(e.icon,{elementType:"span"})}})(e,t);return(e=>{const t=Cd(),r=Ad(),n="small"===e.size||"extra-small"===e.size||"tiny"===e.size;e.root.className=Qe(Td,t,n&&r.fontSmallToTiny,r[e.size],r[e.shape],"rounded"===e.shape&&n&&r.roundedSmallToTiny,"ghost"===e.appearance&&r.borderGhost,r[e.appearance],r[`${e.appearance}-${e.color}`],e.root.className);const o=Id(),i=Pd();if(e.icon){let t;e.root.children&&(t="extra-large"===e.size?"after"===e.iconPosition?i.afterTextXL:i.beforeTextXL:"after"===e.iconPosition?i.afterText:i.beforeText),e.icon.className=Qe(_d,o,t,i[e.size],e.icon.className)}})(r),io("useBadgeStyles_unstable")(r),(e=>Wo(e.root,{children:["before"===e.iconPosition&&e.icon&&Uo(e.icon,{}),e.root.children,"after"===e.iconPosition&&e.icon&&Uo(e.icon,{})]}))(r)});Nd.displayName="Badge";const Bd=g.createContext(void 0).Provider;const Od="data-popper-is-intersecting",Dd="data-popper-escaped",Rd="data-popper-reference-hidden",Md="fui-positioningend",zd=({options:e})=>e,jd=g.createContext(void 0);jd.Provider;const Ld=["top","right","bottom","left"],Fd=Math.min,Vd=Math.max,qd=Math.round,Hd=e=>({x:e,y:e}),Ud={left:"right",right:"left",bottom:"top",top:"bottom"},Wd={start:"end",end:"start"};function $d(e,t,r){return Vd(e,Fd(t,r))}function Gd(e,t){return"function"==typeof e?e(t):e}function Yd(e){return e.split("-")[0]}function Kd(e){return e.split("-")[1]}function Xd(e){return"x"===e?"y":"x"}function Jd(e){return"y"===e?"height":"width"}const Qd=new Set(["top","bottom"]);function Zd(e){return Qd.has(Yd(e))?"y":"x"}function ef(e){return Xd(Zd(e))}function tf(e){return e.replace(/start|end/g,e=>Wd[e])}const rf=["left","right"],nf=["right","left"],of=["top","bottom"],af=["bottom","top"];function sf(e,t,r,n){const o=Kd(e);let i=function(e,t,r){switch(e){case"top":case"bottom":return r?t?nf:rf:t?rf:nf;case"left":case"right":return t?of:af;default:return[]}}(Yd(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(tf)))),i}function lf(e){return e.replace(/left|right|bottom|top/g,e=>Ud[e])}function cf(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function uf(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function df(e,t,r){let{reference:n,floating:o}=e;const i=Zd(t),a=ef(t),s=Jd(a),l=Yd(t),c="y"===i,u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let h;switch(l){case"top":h={x:u,y:n.y-o.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-o.width,y:d};break;default:h={x:n.x,y:n.y}}switch(Kd(t)){case"start":h[a]-=f*(r&&c?-1:1);break;case"end":h[a]+=f*(r&&c?-1:1)}return h}async function ff(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=Gd(t,e),p=cf(h),m=s[f?"floating"===d?"reference":"floating":d],g=uf(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(m)))||r?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=uf(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-w.top+p.top)/b.y,bottom:(w.bottom-g.bottom+p.bottom)/b.y,left:(g.left-w.left+p.left)/b.x,right:(w.right-g.right+p.right)/b.x}}function hf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pf(e){return Ld.some(t=>e[t]>=0)}const mf=new Set(["left","top"]);function gf(){return"undefined"!=typeof window}function vf(e){return wf(e)?(e.nodeName||"").toLowerCase():"#document"}function yf(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function bf(e){var t;return null==(t=(wf(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function wf(e){return!!gf()&&(e instanceof Node||e instanceof yf(e).Node)}function xf(e){return!!gf()&&(e instanceof Element||e instanceof yf(e).Element)}function Sf(e){return!!gf()&&(e instanceof HTMLElement||e instanceof yf(e).HTMLElement)}function kf(e){return!(!gf()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof yf(e).ShadowRoot)}const Ef=new Set(["inline","contents"]);function Tf(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=zf(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Ef.has(o)}const _f=new Set(["table","td","th"]);function Cf(e){return _f.has(vf(e))}const Af=[":popover-open",":modal"];function If(e){return Af.some(t=>{try{return e.matches(t)}catch(r){return!1}})}const Pf=["transform","translate","scale","rotate","perspective"],Nf=["transform","translate","scale","rotate","perspective","filter"],Bf=["paint","layout","strict","content"];function Of(e){const t=Df(),r=xf(e)?zf(e):e;return Pf.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||Nf.some(e=>(r.willChange||"").includes(e))||Bf.some(e=>(r.contain||"").includes(e))}function Df(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Rf=new Set(["html","body","#document"]);function Mf(e){return Rf.has(vf(e))}function zf(e){return yf(e).getComputedStyle(e)}function jf(e){return xf(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Lf(e){if("html"===vf(e))return e;const t=e.assignedSlot||e.parentNode||kf(e)&&e.host||bf(e);return kf(t)?t.host:t}function Ff(e){const t=Lf(e);return Mf(t)?e.ownerDocument?e.ownerDocument.body:e.body:Sf(t)&&Tf(t)?t:Ff(t)}function Vf(e,t,r){var n;void 0===t&&(t=[]);const o=Ff(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=yf(o);return i?(qf(a),t.concat(a,a.visualViewport||[],Tf(o)?o:[],[])):t.concat(o,Vf(o,[]))}function qf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hf(e){const t=zf(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Sf(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=qd(r)!==i||qd(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function Uf(e){return xf(e)?e:e.contextElement}function Wf(e){const t=Uf(e);if(!Sf(t))return Hd(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=Hf(t);let a=(i?qd(r.width):r.width)/n,s=(i?qd(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const $f=Hd(0);function Gf(e){const t=yf(e);return Df()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:$f}function Yf(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=Uf(e);let a=Hd(1);t&&(n?xf(n)&&(a=Wf(n)):a=Wf(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==yf(e))&&t}(i,r,n)?Gf(i):Hd(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=yf(i),t=n&&xf(n)?yf(n):n;let r=e,o=qf(r);for(;o&&n&&t!==r;){const e=Wf(o),t=o.getBoundingClientRect(),n=zf(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,r=yf(o),o=qf(r)}}return uf({width:u,height:d,x:l,y:c})}function Kf(e,t){const r=jf(e).scrollLeft;return t?t.left+r:Yf(bf(e)).left+r}function Xf(e,t,r){void 0===r&&(r=!1);const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:Kf(e,n)),y:n.top+t.scrollTop}}const Jf=new Set(["absolute","fixed"]);function Qf(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=yf(e),n=bf(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Df();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,r);else if("document"===t)n=function(e){const t=bf(e),r=jf(e),n=e.ownerDocument.body,o=Vd(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Vd(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Kf(e);const s=-r.scrollTop;return"rtl"===zf(n).direction&&(a+=Vd(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}(bf(e));else if(xf(t))n=function(e,t){const r=Yf(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Sf(e)?Wf(e):Hd(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=Gf(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return uf(n)}function Zf(e,t){const r=Lf(e);return!(r===t||!xf(r)||Mf(r))&&("fixed"===zf(r).position||Zf(r,t))}function eh(e,t,r){const n=Sf(t),o=bf(t),i="fixed"===r,a=Yf(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Hd(0);function c(){l.x=Kf(o)}if(n||!n&&!i)if(("body"!==vf(t)||Tf(o))&&(s=jf(t)),n){const e=Yf(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();i&&!n&&o&&c();const u=!o||n||i?Hd(0):Xf(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function th(e){return"static"===zf(e).position}function rh(e,t){if(!Sf(e)||"fixed"===zf(e).position)return null;if(t)return t(e);let r=e.offsetParent;return bf(e)===r&&(r=r.ownerDocument.body),r}function nh(e,t){const r=yf(e);if(If(e))return r;if(!Sf(e)){let t=Lf(e);for(;t&&!Mf(t);){if(xf(t)&&!th(t))return t;t=Lf(t)}return r}let n=rh(e,t);for(;n&&Cf(n)&&th(n);)n=rh(n,t);return n&&Mf(n)&&th(n)&&!Of(n)?r:n||function(e){let t=Lf(e);for(;Sf(t)&&!Mf(t);){if(Of(t))return t;if(If(t))return null;t=Lf(t)}return null}(e)||r}const oh={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,a=bf(n),s=!!t&&If(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=Hd(1);const u=Hd(0),d=Sf(n);if((d||!d&&!i)&&(("body"!==vf(n)||Tf(a))&&(l=jf(n)),Sf(n))){const e=Yf(n);c=Wf(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const f=!a||d||i?Hd(0):Xf(a,l,!0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:bf,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?If(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=Vf(e,[]).filter(e=>xf(e)&&"body"!==vf(e)),o=null;const i="fixed"===zf(e).position;let a=i?Lf(e):e;for(;xf(a)&&!Mf(a);){const t=zf(a),r=Of(a);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&Jf.has(o.position)||Tf(a)&&!r&&Zf(e,a))?n=n.filter(e=>e!==a):o=t,a=Lf(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=i[0],s=i.reduce((e,r)=>{const n=Qf(t,r,o);return e.top=Vd(n.top,e.top),e.right=Fd(n.right,e.right),e.bottom=Fd(n.bottom,e.bottom),e.left=Vd(n.left,e.left),e},Qf(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:nh,getElementRects:async function(e){const t=this.getOffsetParent||nh,r=this.getDimensions,n=await r(e.floating);return{reference:eh(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=Hf(e);return{width:t,height:r}},getScale:Wf,isElement:xf,isRTL:function(e){return"rtl"===zf(e).direction}},ih=ff,ah=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),a=Yd(r),s=Kd(r),l="y"===Zd(r),c=mf.has(a)?-1:1,u=i&&l?-1:1,d=Gd(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},sh=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=Gd(e,t),c={x:r,y:n},u=await ff(t,l),d=Zd(Yd(o)),f=Xd(d);let h=c[f],p=c[d];if(i){const e="y"===f?"bottom":"right";h=$d(h+u["y"===f?"top":"left"],h,h-u[e])}if(a){const e="y"===d?"bottom":"right";p=$d(p+u["y"===d?"top":"left"],p,p-u[e])}const m=s.fn({...t,[f]:h,[d]:p});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[f]:i,[d]:a}}}}}},lh=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=Gd(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const v=Yd(o),y=Zd(s),b=Yd(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(b||!m?[lf(s)]:function(e){const t=lf(e);return[tf(e),t,tf(t)]}(s)),S="none"!==p;!f&&S&&x.push(...sf(s,m,p,w));const k=[s,...x],E=await ff(t,g),T=[];let _=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&T.push(E[v]),d){const e=function(e,t,r){void 0===r&&(r=!1);const n=Kd(e),o=ef(e),i=Jd(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=lf(a)),[a,lf(a)]}(o,a,w);T.push(E[e[0]],E[e[1]])}if(_=[..._,{placement:o,overflows:T}],!T.every(e=>e<=0)){var C,A;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=k[e];if(t){if(!("alignment"===d&&y!==Zd(t))||_.every(e=>Zd(e.placement)!==y||e.overflows[0]>0))return{data:{index:e,overflows:_},reset:{placement:t}}}let r=null==(A=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:A.placement;if(!r)switch(h){case"bestFit":{var I;const e=null==(I=_.filter(e=>{if(S){const t=Zd(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:I[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},ch=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=Gd(e,t),u=await ff(t,c),d=Yd(o),f=Kd(o),h="y"===Zd(o),{width:p,height:m}=i.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const y=m-u.top-u.bottom,b=p-u.left-u.right,w=Fd(m-u[g],y),x=Fd(p-u[v],b),S=!t.middlewareData.shift;let k=w,E=x;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(E=b),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(k=y),S&&!f){const e=Vd(u.left,0),t=Vd(u.right,0),r=Vd(u.top,0),n=Vd(u.bottom,0);h?E=p-2*(0!==e||0!==t?e+t:Vd(u.left,u.right)):k=m-2*(0!==r||0!==n?r+n:Vd(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:k});const T=await a.getDimensions(s.floating);return p!==T.width||m!==T.height?{reset:{rects:!0}}:{}}}},uh=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Gd(e,t);switch(n){case"referenceHidden":{const e=hf(await ff(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:pf(e)}}}case"escaped":{const e=hf(await ff(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:pf(e)}}}default:return{}}}}},dh=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Gd(e,t)||{};if(null==c)return{};const d=cf(u),f={x:r,y:n},h=ef(o),p=Jd(h),m=await a.getDimensions(c),g="y"===h,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=i.reference[p]+i.reference[h]-f[h]-i.floating[p],x=f[h]-i.reference[h],S=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let k=S?S[b]:0;k&&await(null==a.isElement?void 0:a.isElement(S))||(k=s.floating[b]||i.floating[p]);const E=w/2-x/2,T=k/2-m[p]/2-1,_=Fd(d[v],T),C=Fd(d[y],T),A=_,I=k-m[p]-C,P=k/2-m[p]/2+E,N=$d(A,P,I),B=!l.arrow&&null!=Kd(o)&&P!==N&&i.reference[p]/2-(P<A?_:C)-m[p]/2<0,O=B?P<A?P-A:P-I:0;return{[h]:f[h]+O,data:{[h]:N,centerOffset:P-N-O,...B&&{alignmentOffset:O}},reset:B}}}),fh=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Gd(e,t),u={x:r,y:n},d=Zd(o),f=Xd(d);let h=u[f],p=u[d];const m=Gd(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,r=i.reference[f]+i.reference[e]-g.mainAxis;h<t?h=t:h>r&&(h=r)}if(c){var v,y;const e="y"===f?"width":"height",t=mf.has(Yd(o)),r=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),n=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);p<r?p=r:p>n&&(p=n)}return{[f]:h,[d]:p}}}},hh=(e,t,r)=>{const n=new Map,o={platform:oh,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=df(c,n,l),f=n,h={},p=0;for(let m=0;m<s.length;m++){const{name:r,fn:i}=s[m],{x:g,y:v,data:y,reset:b}=await i({x:u,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,h={...h,[r]:{...h[r],...y}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=df(c,f,l))),m=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};function ph(e){const t=e.split("-");return{side:t[0],alignment:t[1]}}const mh=e=>{const t=e&&(e=>"HTML"===e.nodeName?e:e.parentNode||e.host)(e);if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:r,overflowX:n,overflowY:o}=(e=>{var t;if(1!==e.nodeType)return{};const r=null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView;return r?r.getComputedStyle(e,null):{}})(t);return/(auto|scroll|overlay)/.test(r+o+n)?t:mh(t)};function gh(e,t){if("window"===t)return null==e?void 0:e.ownerDocument.documentElement;if("clippingParents"===t)return"clippingAncestors";if("scrollParent"===t){let t=mh(e);return"BODY"===t.nodeName&&(t=null==e?void 0:e.ownerDocument.documentElement),t}return t}function vh(e,t){return"number"==typeof e||"object"==typeof e&&null!==e?yh(e,t):"function"==typeof e?r=>{const n=e(r);return yh(n,t)}:{mainAxis:t}}const yh=(e,t)=>{return"number"==typeof e?{mainAxis:e+t}:{...e,mainAxis:(null!==(r=e.mainAxis)&&void 0!==r?r:0)+t};var r};function bh(e,t){if("number"==typeof e)return e;const{start:r,end:n,...o}=e,i=o,a=t?"end":"start",s=t?"start":"end";return e[a]&&(i.left=e[a]),e[s]&&(i.right=e[s]),i}const wh=(e,t,r)=>{const n=((e,t)=>{const r="above"===e||"below"===e,n="top"===t||"bottom"===t;return r&&n||!r&&!n})(t,e)?"center":e,o=t&&(e=>({above:"top",below:"bottom",before:e?"right":"left",after:e?"left":"right"}))(r)[t],i=n&&{start:"start",end:"end",top:"start",bottom:"end",center:void 0}[n];return o&&i?`${o}-${i}`:o},xh={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function Sh(e){return null==e?{}:"string"==typeof e?xh[e]:e}function kh(e,t,r){const n=g.useRef(!0),[o]=g.useState(()=>({value:e,callback:t,facade:{get current(){return o.value},set current(e){const t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}));return go(()=>{n.current=!1},[]),o.callback=t,o.facade}function Eh(e){const t=[];let r=e;for(;r;){const n=mh(r);if(e.ownerDocument.body===n){t.push(n);break}if("BODY"===n.nodeName&&n!==e.ownerDocument.body)break;t.push(n),r=n}return t}function Th(e){let t=!1;const{container:r,target:n,arrow:o,strategy:i,middleware:a,placement:s,useTransform:l=!0,disableUpdateOnResize:c=!1}=e,u=r.ownerDocument.defaultView;if(!n||!r||!u)return{updatePosition:()=>{},dispose:()=>{}};const d=c?null:function(e,t){return new e.ResizeObserver(t)}(u,e=>{e.every(e=>e.contentRect.width>0&&e.contentRect.height>0)&&m()});let f=!0;const h=new Set;Object.assign(r.style,{position:"fixed",left:0,top:0,margin:0});const p=()=>{t||(f&&(Eh(r).forEach(e=>h.add(e)),Oo(n)&&Eh(n).forEach(e=>h.add(e)),h.forEach(e=>{e.addEventListener("scroll",m,{passive:!0})}),null==d||d.observe(r),Oo(n)&&(null==d||d.observe(n)),f=!1),Object.assign(r.style,{position:i}),hh(n,r,{placement:s,middleware:a,strategy:i}).then(({x:e,y:n,middlewareData:a,placement:s})=>{t||(!function(e){const{arrow:t,middlewareData:r}=e;if(!r.arrow||!t)return;const{x:n,y:o}=r.arrow;Object.assign(t.style,{left:null!=n?`${n}px`:"",top:null!=o?`${o}px`:""})}({arrow:o,middlewareData:a}),function(e){var t,r,n;const{container:o,placement:i,middlewareData:a,strategy:s,lowPPI:l,coordinates:c,useTransform:u=!0}=e;if(!o)return;o.setAttribute("data-popper-placement",i),o.removeAttribute(Od),a.intersectionObserver.intersecting&&o.setAttribute(Od,""),o.removeAttribute(Dd),(null===(t=a.hide)||void 0===t?void 0:t.escaped)&&o.setAttribute(Dd,""),o.removeAttribute(Rd),(null===(r=a.hide)||void 0===r?void 0:r.referenceHidden)&&o.setAttribute(Rd,"");const d=(null===(n=o.ownerDocument.defaultView)||void 0===n?void 0:n.devicePixelRatio)||1,f=Math.round(c.x*d)/d,h=Math.round(c.y*d)/d;Object.assign(o.style,{position:s}),u?Object.assign(o.style,{transform:l?`translate(${f}px, ${h}px)`:`translate3d(${f}px, ${h}px, 0)`}):Object.assign(o.style,{left:`${f}px`,top:`${h}px`})}({container:r,middlewareData:a,placement:s,coordinates:{x:e,y:n},lowPPI:((null==u?void 0:u.devicePixelRatio)||1)<=1,strategy:i,useTransform:l}),r.dispatchEvent(new CustomEvent(Md)))}).catch(e=>{}))},m=function(e){let t;return()=>(t||(t=new Promise(r=>{Promise.resolve().then(()=>{t=void 0,r(e())})})),t)}(()=>p());return u&&(u.addEventListener("scroll",m,{passive:!0}),u.addEventListener("resize",m)),m(),{updatePosition:m,dispose:()=>{t=!0,u&&(u.removeEventListener("scroll",m),u.removeEventListener("resize",m)),h.forEach(e=>{e.removeEventListener("scroll",m)}),h.clear(),null==d||d.disconnect()}}}function _h(e){const{hasScrollableElement:t,flipBoundary:r,container:n,fallbackPositions:o=[],isRtl:i}=e,a=o.reduce((e,t)=>{const{position:r,align:n}=Sh(t),o=wh(n,r,i);return o&&e.push(o),e},[]);return lh({...t&&{boundary:"clippingAncestors"},...r&&{altBoundary:!0,boundary:gh(n,r)},fallbackStrategy:"bestFit",...a.length&&{fallbackPlacements:a}})}const Ch=e=>({name:"resetMaxSize",fn({middlewareData:t,elements:r}){var n;if(null===(n=t.resetMaxSize)||void 0===n?void 0:n.maxSizeAlreadyReset)return{};const{applyMaxWidth:o,applyMaxHeight:i}=e;return o&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-width"),r.floating.style.removeProperty("width")),i&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-height"),r.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function Ah(e,t){const{container:r,overflowBoundary:n,overflowBoundaryPadding:o,isRtl:i}=t;return ch({...o&&{padding:bh(o,i)},...n&&{altBoundary:!0,boundary:gh(r,n)},apply({availableHeight:t,availableWidth:r,elements:n,rects:o}){const i=(e,t,r)=>{if(e&&(n.floating.style.setProperty("box-sizing","border-box"),n.floating.style.setProperty(`max-${t}`,`${r}px`),o.floating[t]>r)){n.floating.style.setProperty(t,`${r}px`);const e="width"===t?"x":"y";n.floating.style.getPropertyValue(`overflow-${e}`)||n.floating.style.setProperty(`overflow-${e}`,"auto")}},{applyMaxWidth:a,applyMaxHeight:s}=e;i(a,"width",r),i(s,"height",t)}})}function Ih(e){return e?"number"==typeof e||"object"==typeof e?e:({rects:{floating:t,reference:r},placement:n})=>{const{position:o,alignment:i}=(e=>{const{side:t,alignment:r}=ph(e),n={top:"above",bottom:"below",right:"after",left:"before"}[t],o=r&&(e=>"above"===e||"below"===e?{start:"start",end:"end"}:{start:"top",end:"bottom"})(n)[r];return{position:n,alignment:o}})(n);return e({positionedRect:t,targetRect:r,position:o,alignment:i})}:e}function Ph(e){const t=Ih(e);return ah(t)}function Nh(e){const{hasScrollableElement:t,shiftToCoverTarget:r,disableTether:n,overflowBoundary:o,container:i,overflowBoundaryPadding:a,isRtl:s}=e;return sh({...t&&{boundary:"clippingAncestors"},...r&&{crossAxis:!0,limiter:fh({crossAxis:!0,mainAxis:!1})},...n&&{crossAxis:"all"===n,limiter:fh({crossAxis:"all"!==n,mainAxis:!1})},...a&&{padding:bh(a,s)},...o&&{altBoundary:!0,boundary:gh(i,o)}})}const Bh="--fui-match-target-size";function Oh(e){const{dir:t,targetDocument:r}=Qn(),n="rtl"===t,o=function(e,t){const{align:r,arrowPadding:n,autoSize:o,coverTarget:i,disableUpdateOnResize:a,flipBoundary:s,offset:l,overflowBoundary:c,pinned:u,position:d,unstable_disableTether:f,strategy:h,overflowBoundaryPadding:p,fallbackPositions:m,useTransform:v,matchTargetSize:y,shiftToCoverTarget:b}=t;return g.useCallback((t,g)=>e({container:t,arrow:g,options:{autoSize:o,disableUpdateOnResize:a,matchTargetSize:y,offset:l,strategy:h,coverTarget:i,flipBoundary:s,overflowBoundary:c,useTransform:v,overflowBoundaryPadding:p,pinned:u,arrowPadding:n,align:r,fallbackPositions:m,shiftToCoverTarget:b,position:d,unstable_disableTether:f}}),[o,a,y,l,h,i,s,c,v,p,u,n,r,m,b,d,f,e])}(null!==(i=g.useContext(jd))&&void 0!==i?i:zd,e);var i;const{positionFixed:a}=e;return g.useCallback((e,t)=>{const r=(e=>{var t;const r=mh(e);return!!r&&r!==(null===(t=r.ownerDocument)||void 0===t?void 0:t.body)})(e),i=o(e,t),{autoSize:s,disableUpdateOnResize:l,matchTargetSize:c,offset:u,coverTarget:d,flipBoundary:f,overflowBoundary:h,useTransform:p,overflowBoundaryPadding:m,pinned:g,position:v,arrowPadding:y,strategy:b,align:w,fallbackPositions:x,shiftToCoverTarget:S,unstable_disableTether:k}=i,E=(e=>{switch(e){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}})(s),T=[E&&Ch(E),c&&{name:"matchTargetSize",fn:async e=>{const{rects:{reference:t,floating:r},elements:{floating:n},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:o=!1}={}}}=e;if(t.width===r.width||o)return{};const{width:i}=t;return n.style.setProperty(Bh,`${i}px`),n.style.width||(n.style.width=`var(${Bh})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}},u&&Ph(u),d&&{name:"coverTarget",fn:e=>{const{placement:t,rects:r,x:n,y:o}=e,i={x:n,y:o};switch(ph(t).side){case"bottom":i.y-=r.reference.height;break;case"top":i.y+=r.reference.height;break;case"left":i.x+=r.reference.width;break;case"right":i.x-=r.reference.width}return i}},!g&&_h({container:e,flipBoundary:f,hasScrollableElement:r,isRtl:n,fallbackPositions:x}),Nh({container:e,hasScrollableElement:r,overflowBoundary:h,disableTether:k,overflowBoundaryPadding:m,isRtl:n,shiftToCoverTarget:S}),E&&Ah(E,{container:e,overflowBoundary:h,overflowBoundaryPadding:m,isRtl:n}),{name:"intersectionObserver",fn:async e=>{const t=e.rects.floating,r=await ih(e,{altBoundary:!0}),n=r.top<t.height&&r.top>0,o=r.bottom<t.height&&r.bottom>0;return{data:{intersecting:n||o}}}},t&&dh({element:t,padding:y}),uh({strategy:"referenceHidden"}),uh({strategy:"escaped"}),!1].filter(Boolean);return{placement:wh(w,v,n),middleware:T,strategy:(null!=b?b:a)?"fixed":"absolute",disableUpdateOnResize:l,useTransform:p}},[o,n,r,a])}function Dh(e){const t=g.useRef(null),r=g.useRef(null),n=g.useRef(null),o=g.useRef(null),i=g.useRef(null),{enabled:a=!0}=e,s=Oh(e),l=g.useCallback(()=>{var e;t.current&&t.current.dispose(),t.current=null;const l=null!==(e=n.current)&&void 0!==e?e:r.current;a&&fo()&&l&&o.current&&(t.current=Th({container:o.current,target:l,arrow:i.current,...s(o.current,i.current)}))},[a,s]),c=vo(e=>{n.current=e,l()});g.useImperativeHandle(e.positioningRef,()=>({updatePosition:()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.updatePosition()},setTarget:t=>{e.target,c(t)}}),[e.target,c]),go(()=>{var t;c(null!==(t=e.target)&&void 0!==t?t:null)},[e.target,c]),go(()=>{l()},[l]);const u=kh(null,e=>{r.current!==e&&(r.current=e,l())}),d=vo(()=>{var t;return null===(t=e.onPositioningEnd)||void 0===t?void 0:t.call(e)});return{targetRef:u,containerRef:kh(null,e=>{var t;o.current!==e&&(null===(t=o.current)||void 0===t||t.removeEventListener(Md,d),null==e||e.addEventListener(Md,d),o.current=e,l())}),arrowRef:kh(null,e=>{i.current!==e&&(i.current=e,l())})}}const Rh=e=>{const[t,r]=g.useState(e);return[t,e=>{if(null==e)return void r(void 0);let t;t=e instanceof MouseEvent?e:e.nativeEvent;const n=function(e){const t=e.clientX,r=e.clientY,n=t+1,o=r+1;return{getBoundingClientRect:function(){return{left:t,top:r,right:n,bottom:o,x:t,y:r,height:1,width:1}}}}(t);r(n)}]};function Mh(){let e=!1;const t=[];return{isActive:()=>e,toggleActive(r){e!==r&&(e=r,t.forEach(t=>t(e)))},subscribe:e=>(t.push(e),()=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)})}}var zh,jh,Lh={exports:{}},Fh={};function Vh(){return jh||(jh=1,Lh.exports=function(){if(zh)return Fh;zh=1;var e=h(),t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useState,n=e.useEffect,o=e.useLayoutEffect,i=e.useDebugValue;function a(e){var r=e.getSnapshot;e=e.value;try{var n=r();return!t(e,n)}catch(o){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),l=r({inst:{value:s,getSnapshot:t}}),c=l[0].inst,u=l[1];return o(function(){c.value=s,c.getSnapshot=t,a(c)&&u({inst:c})},[e,s,t]),n(function(){return a(c)&&u({inst:c}),e(function(){a(c)&&u({inst:c})})},[e]),i(s),s};return Fh.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,Fh}()),Lh.exports}var qh=Vh();function Hh(e,t){return{topLeft:[e.left-t[0],e.top-t[1]],topRight:[e.right-t[0],e.top-t[1]],bottomRight:[e.right-t[0],e.bottom-t[1]],bottomLeft:[e.left-t[0],e.bottom-t[1]]}}function Uh(e,t){return Math.sqrt((e[0]-t[0])**2+(e[1]-t[1])**2)}function Wh(e,t,r){const n=[(e[0]+t[0])/2,(e[1]+t[1])/2],o=function(e,t){const r=Uh(e,t);return 0===r?[0,0]:[(e[0]-t[0])/r,(e[1]-t[1])/r]}([r[0],r[1]],[n[0],n[1]]),i=Uh([n[0],n[1]],[r[0],r[1]]);return[n[0]+o[0]*(i+20),n[1]+o[1]*(i+20)]}function $h(e){return`M ${e} z`}const Gh=mn({wrapper:{mc9l5x:"fjseox",Bqenvij:"fniina8",a9b677:"f3tsq5r",Bkecrkj:"f1aehjj5"},wrapperActive:{mc9l5x:"ftgm304"},svg:{Bkfmm31:"f1au8mb3",Bkecrkj:"f1aehjj5",qhf8xq:"f19dog8a",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"]},triangle:{Bkecrkj:"f1cguypg"},triangleDebug:{Bceei9c:"f7116n6",Bkfmm31:"f1xab38x"},rectDebug:{Bkfmm31:"fyegryc"}},{d:[".fjseox{display:none;}",".fniina8{height:0;}",".f3tsq5r{width:0;}",".f1aehjj5{pointer-events:none;}",".ftgm304{display:block;}",".f1au8mb3{fill:transparent;}",".f19dog8a{position:fixed;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f1cguypg{pointer-events:auto;}",".f7116n6{cursor:crosshair;}",".f1xab38x{fill:color-mix(in srgb, var(--colorPaletteGreenBackground3) 20%, transparent);}",".fyegryc{fill:color-mix(in srgb, var(--colorPaletteRedBackground3) 20%, transparent);}"]});function Yh(e){if(e.width<=0||e.height<=0)return"";let t="";return t+=`M ${e.x},${e.y} `,t+=`V ${e.y+e.height} `,t+=`H ${e.x+e.width} `,t+=`V ${e.y} `,t+=`H ${e.x} `,t+="Z ",t}const Kh={top:0,right:0,bottom:0,left:0,width:0,height:0,x:0,y:0,toJSON:()=>""};function Xh(e,t){return e.top===t.top&&e.right===t.right&&e.bottom===t.bottom&&e.left===t.left&&e.width===t.width&&e.height===t.height}const Jh=g.memo(e=>{const{debug:t,onMouseEnter:r,onMouseMove:n,onMouseLeave:o,stateStore:i}=e,a=wo(),s=Gh(),l=qh.useSyncExternalStore(i.subscribe,i.isActive),c=g.useRef(null),[u,d]=g.useState(()=>({containerRect:Kh,targetRect:Kh,mouseCoordinates:[0,0]}));g.useImperativeHandle(e.imperativeRef,()=>({updateSVG(e){d(t=>{return Xh(t.containerRect,e.containerRect)&&Xh(t.targetRect,e.targetRect)&&(r=t.mouseCoordinates,n=e.mouseCoordinates,r[0]===n[0]&&r[1]===n[1])?t:e;var r,n})}}),[]);const{containerRect:f,targetRect:h,mouseCoordinates:p}=u,m=Math.min(h.top,f.top),v=Math.min(h.left,f.left),y=Math.max(h.bottom,f.bottom),b=Math.max(h.right,f.right),w=Hh(f,[v,m]),x=Hh(h,[v,m]),S=[p[0]-v,p[1]-m],k=Wh(w.topLeft,w.bottomRight,S),E=[k,w.topLeft,w.topRight],T=[k,w.topRight,w.bottomRight],_=[k,w.bottomRight,w.bottomLeft],C=[k,w.bottomLeft,w.topLeft],A=b-v,I=y-m,P=function(e,t,r,n){let o=`M 0,0 H ${e} V ${t} H 0 Z `;return o+=Yh(r),o+=Yh(n),o}(A,I,{x:x.topLeft[0],y:x.topLeft[1],width:h.width,height:h.height},{x:w.topLeft[0],y:w.topLeft[1],width:f.width,height:f.height});return g.createElement("div",{className:Qe(s.wrapper,l&&s.wrapperActive),"data-safe-zone":""},l?g.createElement("svg",{"aria-hidden":!0,className:s.svg,xmlns:"http://www.w3.org/2000/svg",ref:c,style:{width:`${A}px`,height:`${I}px`,transform:`translate(${v}px, ${m}px)`}},g.createElement("g",{className:Qe(s.triangle,t&&s.triangleDebug),clipPath:`url(#${a})`,onMouseEnter:r,onMouseMove:n,onMouseLeave:o},g.createElement("path",{d:$h(E)}),g.createElement("path",{d:$h(T)}),g.createElement("path",{d:$h(_)}),g.createElement("path",{d:$h(C)})),g.createElement("clipPath",{id:a},g.createElement("path",{d:P})),t&&g.createElement("path",{className:s.rectDebug,d:P})):null)});function Qh({debug:e=!1,disabled:t=!1,onSafeZoneEnter:r,onSafeZoneMove:n,onSafeZoneLeave:o,onSafeZoneTimeout:i,timeout:a=1500}={}){const[s]=g.useState(Mh),l=g.useRef(null),c=g.useRef(null),u=g.useRef(null),[d,f]=Po(),[h,p]=function(){const{targetDocument:e}=Qn(),t=null==e?void 0:e.defaultView;return Vn(t?t.requestAnimationFrame:so,t?t.cancelAnimationFrame:lo)}(),m=g.useRef({x:0,y:0}),v=g.useMemo(()=>{if(t)return()=>{};let e=null;function r(){f(),s.toggleActive(!1)}return t=>{null===t&&(null==e||e.removeEventListener("mouseenter",r)),e=t,null==t||t.addEventListener("mouseenter",r)}},[f,t,s]),y=g.useMemo(()=>{if(t)return()=>{};let e=null;function r(e){m.current={x:e.clientX,y:e.clientY},s.isActive()||s.toggleActive(!0),d(()=>{s.toggleActive(!1)},2e3)}return t=>{null===t&&(p(),f(),null==e||e.removeEventListener("mousemove",r)),e=t,null==t||t.addEventListener("mousemove",r)}},[p,f,t,s,d]),b=vo(e=>{null==r||r(e),d(()=>{s.toggleActive(!1),null==i||i()},a)}),w=vo(e=>{d(()=>{s.toggleActive(!1),null==i||i()},a),null==n||n(e)}),x=vo(e=>{null==o||o(e)});return g.useEffect(()=>s.subscribe(e=>{if(e){let e=function(){const t=c.current,r=u.current;var n;t&&r&&(null===(n=l.current)||void 0===n||n.updateSVG({containerRect:t.getBoundingClientRect(),mouseCoordinates:[m.current.x,m.current.y],targetRect:r.getBoundingClientRect()}));h(e)};return void e()}p()}),[p,h,s]),{containerRef:xo(c,v),targetRef:xo(u,y),elementToRender:g.useMemo(()=>t?null:g.createElement(Jh,{debug:e,onMouseEnter:b,onMouseMove:w,onMouseLeave:x,imperativeRef:l,stateStore:s}),[t,e,b,w,x,s])}}const Zh=bu(void 0),ep={open:!1,setOpen:()=>null,toggleOpen:()=>null,triggerRef:{current:null},contentRef:{current:null},arrowRef:{current:null},openOnContext:!1,openOnHover:!1,size:"medium",trapFocus:!1,inline:!1};Zh.Provider;const tp=e=>wu(Zh,(t=ep)=>e(t));const rp=mn({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),np=y.useInsertionEffect,op=()=>{let e;return{get:function(t,r){return e||(r&&(e=t.ownerDocument.createElement("div"),t.appendChild(e)),e)},dispose:function(){e&&(e.remove(),e=void 0)}}},ip=np?e=>{const{className:t,dir:r,focusVisibleRef:n,targetNode:o}=e,[i]=g.useState(op),a=g.useMemo(()=>void 0===o||e.disabled?null:new Proxy({},{get(e,t){if("nodeType"===t)return Node.ELEMENT_NODE;if("remove"===t){const e=i.get(o,!1);if(e){0===e.childNodes.length&&i.dispose()}return()=>{}}const r=i.get(o,!0),n=r?r[t]:void 0;return"function"==typeof n?n.bind(r):n},set(e,t,r){const n="_virtual"===t||"focusVisible"===t,a=n?i.get(o,!1):i.get(o,!0);return!(!n||a)||!!a&&(Object.assign(a,{[t]:r}),!0)}}),[i,o,e.disabled]);return np(()=>{if(!a)return;const e=t.split(" ").filter(Boolean);return a.classList.add(...e),a.setAttribute("dir",r),a.setAttribute("data-portal-node","true"),n.current=a,()=>{a.classList.remove(...e),a.removeAttribute("dir")}},[t,r,a,n]),g.useEffect(()=>()=>{null==a||a.remove()},[a]),a}:e=>{const{className:t,dir:r,focusVisibleRef:n,targetNode:o}=e,i=g.useMemo(()=>{if(void 0===o||e.disabled)return null;const t=o.ownerDocument.createElement("div");return o.appendChild(t),t},[o,e.disabled]);return g.useMemo(()=>{i&&(i.className=t,i.setAttribute("dir",r),i.setAttribute("data-portal-node","true"),n.current=i)},[t,r,i,n]),g.useEffect(()=>()=>{null==i||i.remove()},[i]),i},ap=e=>{const{targetDocument:t,dir:r}=Qn(),n=g.useContext(ao),o=xs(),i=rp(),a=null!==(s=g.useContext(Un))&&void 0!==s?s:"";var s;const l={dir:r,disabled:e.disabled,focusVisibleRef:o,className:Qe(a,i.root,e.className),targetNode:null!=n?n:null==t?void 0:t.body};return ip(l)},sp=e=>{const{element:t,className:r}=function(e){return Oo(e)?{element:e}:"object"==typeof e?null===e?{element:null}:e:{}}(e.mountNode),n=g.useRef(null),o=ap({disabled:!!t,className:r}),i=null!=t?t:o,a={children:e.children,mountNode:i,virtualParentRootRef:n};return g.useEffect(()=>{if(!i)return;const e=n.current,t=i.contains(e);return e&&!t?(Fo(i,e),()=>{Fo(i,void 0)}):void 0},[n,i]),a};var lp=N();const cp=e=>(e=>g.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&lp.createPortal(g.createElement(g.Fragment,null,e.children,g.createElement("span",{hidden:!0})),e.mountNode)))(sp(e));cp.displayName="Portal";const up="fui-PopoverSurface",dp={small:6,medium:8,large:8},fp=mn({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f9ggezi",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"f1noc5he",z0t1cu:"fi19xcv",Bks05zx:"f1mxk9aa",Bvtglag:"ffzg62k",Bhu2qc9:"fymb6k8"},inline:{Bj3rh1h:"f19g0ac"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},brand:{De3pzq:"ffp7eso",sj55zd:"f1phragk"},smallPadding:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1sy4kr4"},mediumPadding:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f4zyqsv"},largePadding:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fop8ug2"},smallArrow:{rhnwrx:"f1s3jn22",Bdy53xb:"fv40uqz"},mediumLargeArrow:{rhnwrx:"f1f72gjr",Bdy53xb:"f69yoe5"},arrow:{B7ck84d:"f1ewtqcl",qhf8xq:"f1euv43f",Bj3rh1h:"f1bsuimh",De3pzq:"f1u2r49w",B2eet1l:"fqhgnl",Beyfa6y:"f17bz04i",Bz10aip:"f36o3x3",Bqenvij:"fzofk8q",a9b677:"f1wbx1ie",Ftih45:"f1wl9k8s",Br0sdwz:"f1aocrix",cmx5o7:"f1ljr5q2",susq4k:0,Biibvgv:0,Bicfajf:0,qehafq:0,Brs5u8j:"f155f1qt",Ccq8qp:"f9mhzq7",Baz25je:"fr6rhvx",Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f1kc0wz4",r59vdv:"fgq90dz",Bkw5xw4:"fq0y47f",hl6cv3:"f1pwrbz6",aea9ga:"f1hxxcvm",yayu3t:"fw8rgyo",Bhsv975:"f1wnzycx",rhl9o9:"f1730wal",B7gxrvb:"f1fy4ixr",B6q6orb:"fobkauc",B0lu1f8:"f16bqv1l"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".f1noc5he{animation-name:f1m0q9mo,f79suad;}",".fymb6k8{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 8px 16px var(--colorNeutralShadowKey));}",".f19g0ac{z-index:1;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",[".f1sy4kr4{padding:12px;}",{p:-1}],[".f4zyqsv{padding:16px;}",{p:-1}],[".fop8ug2{padding:20px;}",{p:-1}],".f1s3jn22{--fui-positioning-arrow-height:8.484px;}",".fv40uqz{--fui-positioning-arrow-offset:-4.242px;}",".f1f72gjr{--fui-positioning-arrow-height:11.312px;}",".f69yoe5{--fui-positioning-arrow-offset:-5.656px;}",".f1ewtqcl{box-sizing:border-box;}",".f1euv43f{position:absolute;}",".f1bsuimh{z-index:-1;}",".f1u2r49w{background-color:inherit;}",".fqhgnl{background-clip:content-box;}",".f17bz04i{border-bottom-left-radius:var(--borderRadiusSmall);}",".f36o3x3{transform:rotate(var(--fui-positioning-arrow-angle));}",".fzofk8q{height:var(--fui-positioning-arrow-height);}",".f1wbx1ie{width:var(--fui-positioning-arrow-height);}",'.f1wl9k8s::before{content:"";}',".f1aocrix::before{display:block;}",".f1ljr5q2::before{background-color:inherit;}",[".f155f1qt::before{margin:-1px;}",{p:-1}],".f9mhzq7::before{width:100%;}",".fr6rhvx::before{height:100%;}",[".f1kc0wz4::before{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fgq90dz::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".fq0y47f::before{clip-path:polygon(0% 0%, 100% 100%, 0% 100%);}",'[data-popper-placement^="top"] .f1pwrbz6{bottom:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="top"] .f1hxxcvm{--fui-positioning-arrow-angle:-45deg;}','[data-popper-placement^="right"] .fw8rgyo{left:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="right"] .f1wnzycx{--fui-positioning-arrow-angle:45deg;}','[data-popper-placement^="bottom"] .f1730wal{top:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="bottom"] .f1fy4ixr{--fui-positioning-arrow-angle:135deg;}','[data-popper-placement^="left"] .fobkauc{right:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="left"] .f16bqv1l{--fui-positioning-arrow-angle:225deg;}'],k:["@keyframes f1m0q9mo{from{opacity:-1;}to{opacity:0;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mxk9aa[data-popper-placement]{animation-name:f1m0q9mo;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.ffzg62k[data-popper-placement]{animation-name:f1m0q9mo;}}"]}),hp=g.forwardRef((e,t)=>{const r=((e,t)=>{const r=tp(e=>e.contentRef),n=tp(e=>e.openOnHover),o=tp(e=>e.setOpen),i=tp(e=>e.mountNode),a=tp(e=>e.arrowRef),s=tp(e=>e.size),l=tp(e=>e.withArrow),c=tp(e=>e.appearance),u=tp(e=>e.trapFocus),d=tp(e=>e.inertTrapFocus),f=tp(e=>e.inline),{modalAttributes:h}=Ps({trapFocus:u,legacyTrapFocus:!d,alwaysFocusable:!u}),p={inline:f,appearance:c,withArrow:l,size:s,arrowRef:a,mountNode:i,components:{root:"div"},root:wn(Fn("div",{ref:xo(t,r),role:u?"dialog":"group","aria-modal":!!u||void 0,...h,...e}),{elementType:"div"})},{onMouseEnter:m,onMouseLeave:g,onKeyDown:v}=p.root;return p.root.onMouseEnter=e=>{n&&o(e,!0),null==m||m(e)},p.root.onMouseLeave=e=>{n&&o(e,!1),null==g||g(e)},p.root.onKeyDown=e=>{var t;"Escape"===e.key&&(null===(t=r.current)||void 0===t?void 0:t.contains(e.target))&&(e.preventDefault(),o(e,!1)),null==v||v(e)},p})(e,t);return(e=>{const t=fp();e.root.className=Qe(up,t.root,e.inline&&t.inline,"small"===e.size&&t.smallPadding,"medium"===e.size&&t.mediumPadding,"large"===e.size&&t.largePadding,"inverted"===e.appearance&&t.inverted,"brand"===e.appearance&&t.brand,e.root.className),e.arrowClassName=Qe(t.arrow,"small"===e.size?t.smallArrow:t.mediumLargeArrow)})(r),io("usePopoverSurfaceStyles_unstable")(r),(e=>{const t=Wo(e.root,{children:[e.withArrow&&Uo("div",{ref:e.arrowRef,className:e.arrowClassName}),e.root.children]});return e.inline?t:Uo(cp,{mountNode:e.mountNode,children:t})})(r)});hp.displayName="PopoverSurface";const pp=e=>{const[t,r]=Rh(),n={size:"medium",contextTarget:t,setContextTarget:r,...e},o=g.Children.toArray(e.children);let i,a;2===o.length?(i=o[0],a=o[1]):1===o.length&&(a=o[0]);const[s,l]=function(e){const t=vo((t,r)=>{var n;return null===(n=e.onOpenChange)||void 0===n?void 0:n.call(e,t,r)}),[r,n]=co({state:e.open,defaultState:e.defaultOpen,initialState:!1});e.open=void 0!==r?r:e.open;const o=e.setContextTarget,i=g.useCallback((e,r)=>{r&&"contextmenu"===e.type&&o(e),r||o(void 0),n(r),null==t||t(e,{open:r})},[n,t,o]);return[r,i]}(n),[c,u]=Po(),d=vo((t,r)=>{var n;(u(),t instanceof Event||!t.persist||t.persist(),"mouseleave"===t.type)?c(()=>{l(t,r)},null!==(n=e.mouseLeaveDelay)&&void 0!==n?n:500):l(t,r)}),f=g.useCallback(e=>{d(e,!s)},[d,s]),h=function(e){const t={position:"above",align:"center",arrowPadding:8,target:e.openOnContext?e.contextTarget:void 0,...Sh(e.positioning)};t.coverTarget&&(e.withArrow=!1);e.withArrow&&(t.offset=vh(t.offset,dp[e.size]));const{targetRef:r,containerRef:n,arrowRef:o}=Dh(t);return{triggerRef:r,contentRef:n,arrowRef:o}}(n),{targetDocument:p}=Qn();var m;ko({contains:Lo,element:p,callback:e=>d(e,!1),refs:[h.triggerRef,h.contentRef],disabled:!s,disabledFocusOnIframe:!(null===(m=e.closeOnIframeFocus)||void 0===m||m)});const v=n.openOnContext||n.closeOnScroll;Co({contains:Lo,element:p,callback:e=>d(e,!1),refs:[h.triggerRef,h.contentRef],disabled:!s||!v});const{findFirstFocusable:y}=ps(),b=function(){const e=us(as),[t]=Po();return g.useCallback(r=>{t(()=>{var t;null===(t=e.current)||void 0===t||t.activate(r)},0)},[e,t])}();var w,x;return g.useEffect(()=>{if(e.unstable_disableAutoFocus)return;const t=h.contentRef.current;if(s&&t){var r;const e=!isNaN(null!==(r=t.getAttribute("tabIndex"))&&void 0!==r?r:void 0),n=e?t:y(t);null==n||n.focus(),e&&b(t)}},[y,b,s,h.contentRef,e.unstable_disableAutoFocus]),{...n,...h,inertTrapFocus:null!==(w=e.inertTrapFocus)&&void 0!==w?w:void 0!==e.legacyTrapFocus&&!e.legacyTrapFocus,popoverTrigger:i,popoverSurface:a,open:s,setOpen:d,toggleOpen:f,setContextTarget:r,contextTarget:t,inline:null!==(x=e.inline)&&void 0!==x&&x}};const mp=e=>(e=>{const{appearance:t,arrowRef:r,contentRef:n,inline:o,mountNode:i,open:a,openOnContext:s,openOnHover:l,setOpen:c,size:u,toggleOpen:d,trapFocus:f,triggerRef:h,withArrow:p,inertTrapFocus:m}=e;return g.createElement(Zh.Provider,{value:{appearance:t,arrowRef:r,contentRef:n,inline:o,mountNode:i,open:a,openOnContext:s,openOnHover:l,setOpen:c,toggleOpen:d,triggerRef:h,size:u,trapFocus:f,inertTrapFocus:m,withArrow:p}},e.popoverTrigger,e.open&&e.popoverSurface)})(pp(e));mp.displayName="Popover";const gp=e=>{const t=(e=>{const{children:t,disableButtonEnhancement:r=!1}=e,n=zo(t),o=tp(e=>e.open),i=tp(e=>e.setOpen),a=tp(e=>e.toggleOpen),s=tp(e=>e.triggerRef),l=tp(e=>e.openOnHover),c=tp(e=>e.openOnContext),{triggerAttributes:u}=Ps(),d={...u,"aria-expanded":`${o}`,...null==n?void 0:n.props,onMouseEnter:vo(Bo(null==n?void 0:n.props.onMouseEnter,e=>{l&&i(e,!0)})),onMouseLeave:vo(Bo(null==n?void 0:n.props.onMouseLeave,e=>{l&&i(e,!1)})),onContextMenu:vo(Bo(null==n?void 0:n.props.onContextMenu,e=>{c&&(e.preventDefault(),i(e,!0))})),ref:xo(s,null==n?void 0:n.ref)},f={...d,onClick:vo(Bo(null==n?void 0:n.props.onClick,e=>{c||a(e)})),onKeyDown:vo(Bo(null==n?void 0:n.props.onKeyDown,e=>{e.key===Bu&&o&&!e.isDefaultPrevented()&&(i(e,!1),e.preventDefault())}))},h=Ou("button"===(null==n?void 0:n.type)||"a"===(null==n?void 0:n.type)?n.type:"div",f);return{children:Ro(e.children,Ou("button"===(null==n?void 0:n.type)||"a"===(null==n?void 0:n.type)?n.type:"div",c?d:r?f:h))}})(e);return(e=>e.children)(t)};gp.displayName="PopoverTrigger",gp.isFluentTriggerComponent=!0;const vp=e=>{var t,r,n,o,i,a;const s=null!==(l=g.useContext($n))&&void 0!==l?l:Gn;var l;const c=function(){const e=mo()!==ho,[t,r]=g.useState(e);return fo()&&e&&g.useLayoutEffect(()=>{r(!1)},[]),t}(),{targetDocument:u}=Qn(),[d,f]=Po(),{appearance:h="normal",children:p,content:m,withArrow:v=!1,positioning:y="above",onVisibleChange:b,relationship:w,showDelay:x=250,hideDelay:S=250,mountNode:k}=e,[E,T]=co({state:e.visible,initialState:!1}),_=g.useCallback((e,t)=>{f(),T(r=>(t.visible!==r&&(null==b||b(e,t)),t.visible))},[f,T,b]),C={withArrow:v,positioning:y,showDelay:x,hideDelay:S,relationship:w,visible:E,shouldRenderTooltip:E,appearance:h,mountNode:k,components:{content:"div"},content:wn(m,{defaultProps:{role:"tooltip"},elementType:"div"})};C.content.id=wo("tooltip-",C.content.id);const A={enabled:C.visible,arrowPadding:8,position:"above",align:"center",offset:4,...Sh(C.positioning)};C.withArrow&&(A.offset=vh(A.offset,6));const{targetRef:I,containerRef:P,arrowRef:N}=Dh(A);C.content.ref=xo(C.content.ref,P),C.arrowRef=N,go(()=>{if(E){var e;const t={hide:e=>_(void 0,{visible:!1,documentKeyboardEvent:e})};null===(e=s.visibleTooltip)||void 0===e||e.hide(),s.visibleTooltip=t;const r=e=>{e.key!==Bu||e.defaultPrevented||(t.hide(e),e.preventDefault())};return null==u||u.addEventListener("keydown",r,{capture:!0}),()=>{s.visibleTooltip===t&&(s.visibleTooltip=void 0),null==u||u.removeEventListener("keydown",r,{capture:!0})}}},[s,u,E,_]);const B=g.useRef(!1),O=g.useCallback(e=>{if("focus"===e.type&&B.current)return void(B.current=!1);const t=s.visibleTooltip?0:C.showDelay;d(()=>{_(e,{visible:!0})},t),e.persist()},[d,_,C.showDelay,s]),D=function(){const e=_s();return g.useCallback(()=>{var t,r;return null!==(r=null===(t=e.current)||void 0===t?void 0:t.isNavigatingWithKeyboard())&&void 0!==r&&r},[e])}(),[R]=g.useState(()=>{const e=e=>{var t;(null===(t=e.detail)||void 0===t?void 0:t.isFocusedProgrammatically)&&!D()&&(B.current=!0)};let t=null;return r=>{null==t||t.removeEventListener(Jo,e),null==r||r.addEventListener(Jo,e),t=r}}),M=g.useCallback(e=>{let t=C.hideDelay;"blur"===e.type&&(t=0,B.current=(null==u?void 0:u.activeElement)===e.target),d(()=>{_(e,{visible:!1})},t),e.persist()},[d,_,C.hideDelay,u]);C.content.onPointerEnter=Bo(C.content.onPointerEnter,f),C.content.onPointerLeave=Bo(C.content.onPointerLeave,M),C.content.onFocus=Bo(C.content.onFocus,f),C.content.onBlur=Bo(C.content.onBlur,M);const z=zo(p),j={},L=!0===(null==z||null===(t=z.props)||void 0===t?void 0:t["aria-expanded"])||"true"===(null==z||null===(r=z.props)||void 0===r?void 0:r["aria-expanded"]);return"label"===w?"string"==typeof C.content.children?j["aria-label"]=C.content.children:(j["aria-labelledby"]=C.content.id,C.shouldRenderTooltip=!0):"description"===w&&(j["aria-describedby"]=C.content.id,C.shouldRenderTooltip=!0),(c||L)&&(C.shouldRenderTooltip=!1),C.children=Ro(p,{...j,...null==z?void 0:z.props,ref:xo(null==z?void 0:z.ref,R,void 0===A.target?I:void 0),onPointerEnter:vo(Bo(null==z||null===(n=z.props)||void 0===n?void 0:n.onPointerEnter,O)),onPointerLeave:vo(Bo(null==z||null===(o=z.props)||void 0===o?void 0:o.onPointerLeave,M)),onFocus:vo(Bo(null==z||null===(i=z.props)||void 0===i?void 0:i.onFocus,O)),onBlur:vo(Bo(null==z||null===(a=z.props)||void 0===a?void 0:a.onBlur,M))}),C},yp="fui-Tooltip__content",bp=mn({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f9ggezi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1bzqsji",De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{B7ck84d:"f1ewtqcl",qhf8xq:"f1euv43f",Bj3rh1h:"f1bsuimh",rhnwrx:"f1s3jn22",Bdy53xb:"fv40uqz",De3pzq:"f1u2r49w",B2eet1l:"fqhgnl",Beyfa6y:"f17bz04i",Bz10aip:"f36o3x3",Bqenvij:"fzofk8q",a9b677:"f1wbx1ie",Ftih45:"f1wl9k8s",Br0sdwz:"f1aocrix",cmx5o7:"f1ljr5q2",susq4k:0,Biibvgv:0,Bicfajf:0,qehafq:0,Brs5u8j:"f155f1qt",Ccq8qp:"f9mhzq7",Baz25je:"fr6rhvx",Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f1kc0wz4",r59vdv:"fgq90dz",Bkw5xw4:"fq0y47f",hl6cv3:"f1pwrbz6",aea9ga:"f1hxxcvm",yayu3t:"fw8rgyo",Bhsv975:"f1wnzycx",rhl9o9:"f1730wal",B7gxrvb:"f1fy4ixr",B6q6orb:"fobkauc",B0lu1f8:"f16bqv1l"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],[".f1bzqsji{padding:4px 11px 6px 11px;}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1bsuimh{z-index:-1;}",".f1s3jn22{--fui-positioning-arrow-height:8.484px;}",".fv40uqz{--fui-positioning-arrow-offset:-4.242px;}",".f1u2r49w{background-color:inherit;}",".fqhgnl{background-clip:content-box;}",".f17bz04i{border-bottom-left-radius:var(--borderRadiusSmall);}",".f36o3x3{transform:rotate(var(--fui-positioning-arrow-angle));}",".fzofk8q{height:var(--fui-positioning-arrow-height);}",".f1wbx1ie{width:var(--fui-positioning-arrow-height);}",'.f1wl9k8s::before{content:"";}',".f1aocrix::before{display:block;}",".f1ljr5q2::before{background-color:inherit;}",[".f155f1qt::before{margin:-1px;}",{p:-1}],".f9mhzq7::before{width:100%;}",".fr6rhvx::before{height:100%;}",[".f1kc0wz4::before{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fgq90dz::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".fq0y47f::before{clip-path:polygon(0% 0%, 100% 100%, 0% 100%);}",'[data-popper-placement^="top"] .f1pwrbz6{bottom:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="top"] .f1hxxcvm{--fui-positioning-arrow-angle:-45deg;}','[data-popper-placement^="right"] .fw8rgyo{left:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="right"] .f1wnzycx{--fui-positioning-arrow-angle:45deg;}','[data-popper-placement^="bottom"] .f1730wal{top:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="bottom"] .f1fy4ixr{--fui-positioning-arrow-angle:135deg;}','[data-popper-placement^="left"] .fobkauc{right:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="left"] .f16bqv1l{--fui-positioning-arrow-angle:225deg;}']}),wp=e=>{const t=vp(e);return(e=>{const t=bp();e.content.className=Qe(yp,t.root,"inverted"===e.appearance&&t.inverted,e.visible&&t.visible,e.content.className),e.arrowClassName=t.arrow})(t),io("useTooltipStyles_unstable")(t),(e=>Wo(g.Fragment,{children:[e.children,e.shouldRenderTooltip&&Uo(cp,{mountNode:e.mountNode,children:Wo(e.content,{children:[e.withArrow&&Uo("div",{ref:e.arrowRef,className:e.arrowClassName}),e.content.children]})})]}))(t)};wp.displayName="Tooltip",wp.isFluentTriggerComponent=!0;const xp=g.createContext(void 0),Sp={};xp.Provider;const kp=(e,t)=>{const{size:r}=null!==(n=g.useContext(xp))&&void 0!==n?n:Sp;var n;const{appearance:o="secondary",as:i="button",disabled:a=!1,disabledFocusable:s=!1,icon:l,iconPosition:c="before",shape:u="rounded",size:d=(null!=r?r:"medium")}=e,f=xn(l,{elementType:"span"});return{appearance:o,disabled:a,disabledFocusable:s,iconPosition:c,shape:u,size:d,iconOnly:Boolean((null==f?void 0:f.children)&&!e.children),components:{root:"button",icon:"span"},root:wn(Fn(i,Ou(e.as,e)),{elementType:"button",defaultProps:{ref:t,type:"button"===i?"button":void 0}}),icon:f}},Ep="fui-Button",Tp="fui-Button__icon",_p=gn("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),Cp=gn("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),Ap=mn({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"},rounded:{},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},small:{Bf4jedk:"fh7ncta",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fneth5b",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f4db1ww",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],".fh7ncta{min-width:64px;}",[".fneth5b{padding:3px var(--spacingHorizontalS);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",[".f4db1ww{padding:8px var(--spacingHorizontalL);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),Ip=mn({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",Bm2fdqk:"fuigjrg",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",Bx3q9su:"f4dhi0o",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x",xd2cci:"fequ9m0"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fuigjrg .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4dhi0o:hover .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fequ9m0:hover:active .fui-Button__icon{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),Pp=mn({circular:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1062rbf"},rounded:{},square:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fj0ryk1"},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"fazmxh"},medium:{},large:{Bw81rd7:0,kdpuga:0,dm238s:0,B6xbmo0:0,B3whbx2:"f1b6alqh"}},{d:[[".f1062rbf[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".fj0ryk1[data-fui-focus-visible]{border-radius:var(--borderRadiusNone);}",{p:-1}],".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",[".fazmxh[data-fui-focus-visible]{border-radius:var(--borderRadiusSmall);}",{p:-1}],[".f1b6alqh[data-fui-focus-visible]{border-radius:var(--borderRadiusLarge);}",{p:-1}]],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),Np=mn({small:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fu97m5z",Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f18ktai2",Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1hbd1aw",Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[[".fu97m5z{padding:1px;}",{p:-1}],".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",[".f18ktai2{padding:5px;}",{p:-1}],".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",[".f1hbd1aw{padding:7px;}",{p:-1}],".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),Bp=mn({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),Op=e=>{const t=_p(),r=Cp(),n=Ap(),o=Ip(),i=Pp(),a=Np(),s=Bp(),{appearance:l,disabled:c,disabledFocusable:u,icon:d,iconOnly:f,iconPosition:h,shape:p,size:m}=e;return e.root.className=Qe(Ep,t,l&&n[l],n[m],d&&"small"===m&&n.smallWithIcon,d&&"large"===m&&n.largeWithIcon,n[p],(c||u)&&o.base,(c||u)&&o.highContrast,l&&(c||u)&&o[l],"primary"===l&&i.primary,i[m],i[p],f&&a[m],e.root.className),e.icon&&(e.icon.className=Qe(Tp,r,!!e.root.children&&s[h],s[m],e.icon.className)),e},Dp=g.forwardRef((e,t)=>{const r=kp(e,t);return Op(r),io("useButtonStyles_unstable")(r),(e=>{const{iconOnly:t,iconPosition:r}=e;return Wo(e.root,{children:["after"!==r&&e.icon&&Uo(e.icon,{}),!t&&e.root.children,"after"===r&&e.icon&&Uo(e.icon,{})]})})(r)});Dp.displayName="Button";const Rp="fui-MenuButton",Mp="fui-MenuButton__icon",zp="fui-MenuButton__menuIcon",jp=mn({base:{D0sxk3:"fxoiby5",t6yez3:"f15q0o9g"},outline:{g2u3we:"f1ly1fcm",h3c5rm:["fi8bssc","fj6btzu"],B9xav0g:"f1s9tnsa",zhjwy3:["fj6btzu","fi8bssc"],B4j52fo:"fgx37oo",Bekrc4i:["f130t4y6","f1efpmoh"],Bn0qgzm:"fv51ejd",ibv6hh:["f1efpmoh","f130t4y6"],sj55zd:"f14nttnl"},primary:{De3pzq:"f8w4g0q"},secondary:{De3pzq:"f1nfm20t",g2u3we:"f1ly1fcm",h3c5rm:["fi8bssc","fj6btzu"],B9xav0g:"f1s9tnsa",zhjwy3:["fj6btzu","fi8bssc"],sj55zd:"f14nttnl"},subtle:{De3pzq:"fq5gl1p",sj55zd:"f1eryozh"},transparent:{De3pzq:"f1q9pm1r",sj55zd:"f1qj7y59"}},{d:[".fxoiby5 .fui-Icon-filled{display:inline;}",".f15q0o9g .fui-Icon-regular{display:none;}",".f1ly1fcm{border-top-color:var(--colorNeutralStroke1Selected);}",".fi8bssc{border-right-color:var(--colorNeutralStroke1Selected);}",".fj6btzu{border-left-color:var(--colorNeutralStroke1Selected);}",".f1s9tnsa{border-bottom-color:var(--colorNeutralStroke1Selected);}",".fgx37oo{border-top-width:var(--strokeWidthThicker);}",".f130t4y6{border-right-width:var(--strokeWidthThicker);}",".f1efpmoh{border-left-width:var(--strokeWidthThicker);}",".fv51ejd{border-bottom-width:var(--strokeWidthThicker);}",".f14nttnl{color:var(--colorNeutralForeground1Selected);}",".f8w4g0q{background-color:var(--colorBrandBackgroundSelected);}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1eryozh{color:var(--colorNeutralForeground2Selected);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"]}),Lp=mn({outline:{sj55zd:"f14nttnl"},primary:{},secondary:{sj55zd:"f14nttnl"},subtle:{sj55zd:"f1qj7y59"},transparent:{sj55zd:"f1qj7y59"},highContrast:{ze5xyy:"f4xjyn1"}},{d:[".f14nttnl{color:var(--colorNeutralForeground1Selected);}",".f1qj7y59{color:var(--colorNeutralForeground2BrandSelected);}"],m:[["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}]]}),Fp=mn({base:{Bg96gwp:"fez10in"},small:{Be2twd7:"f1ugzwwg",Bqenvij:"fvblgha",Bg96gwp:"fwrc4pm",a9b677:"frx94fk"},medium:{Be2twd7:"f1ugzwwg",Bqenvij:"fvblgha",Bg96gwp:"fwrc4pm",a9b677:"frx94fk"},large:{Be2twd7:"f4ybsrx",Bqenvij:"fd461yt",Bg96gwp:"faaz57k",a9b677:"fjw5fx7"},notIconOnly:{Frg6f3:["fbyavb5","fm0x6gh"]}},{d:[".fez10in{line-height:0;}",".f1ugzwwg{font-size:12px;}",".fvblgha{height:12px;}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".frx94fk{width:12px;}",".f4ybsrx{font-size:16px;}",".fd461yt{height:16px;}",".faaz57k{line-height:var(--lineHeightBase400);}",".fjw5fx7{width:16px;}",".fbyavb5{margin-left:var(--spacingHorizontalXS);}",".fm0x6gh{margin-right:var(--spacingHorizontalXS);}"]}),Vp=g.forwardRef((e,t)=>{const r=(({menuIcon:e,...t},r)=>{const n=kp(t,r);return n.root["aria-expanded"]=!!t["aria-expanded"]&&("true"===t["aria-expanded"]||!0===t["aria-expanded"]),{...n,iconOnly:Boolean(!t.children),components:{root:"button",icon:"span",menuIcon:"span"},menuIcon:xn(e,{defaultProps:{children:g.createElement(td,null)},renderByDefault:!0,elementType:"span"})}})(e,t);return(e=>{const t=jp(),r=Lp(),n=Fp();e.root.className=Qe(Rp,e.root["aria-expanded"]&&t.base,e.root["aria-expanded"]&&t[e.appearance],e.root.className),e.icon&&(e.icon.className=Qe(Mp,e.root["aria-expanded"]&&r[e.appearance]&&r.highContrast,e.icon.className)),e.menuIcon&&(e.menuIcon.className=Qe(zp,n.base,n[e.size],!e.iconOnly&&n.notIconOnly,e.menuIcon.className)),Op({...e,iconPosition:"before"})})(r),io("useMenuButtonStyles_unstable")(r),(e=>{const{icon:t,iconOnly:r}=e;return Wo(e.root,{children:[e.icon&&Uo(e.icon,{}),!r&&e.root.children,(!r||!(null==t?void 0:t.children))&&e.menuIcon&&Uo(e.menuIcon,{})]})})(r)});Vp.displayName="MenuButton";const qp="fui-SplitButton",Hp="fui-SplitButton__menuButton",Up="fui-SplitButton__primaryActionButton",Wp=mn({primaryActionButton:{B6xbmo0:["f1x37qnr","f1um7c6d"],kdpuga:["fn4c73s","f6pwzcr"]},menuButton:{lbo84a:["frrbwxo","f1rgcpbv"],dm238s:["f1um7c6d","f1x37qnr"],Bw81rd7:["f6pwzcr","fn4c73s"]}},{d:[".f1x37qnr[data-fui-focus-visible]{border-top-right-radius:0;}",".f1um7c6d[data-fui-focus-visible]{border-top-left-radius:0;}",".fn4c73s[data-fui-focus-visible]{border-bottom-right-radius:0;}",".f6pwzcr[data-fui-focus-visible]{border-bottom-left-radius:0;}",".frrbwxo[data-fui-focus-visible]{border-left-width:0;}",".f1rgcpbv[data-fui-focus-visible]{border-right-width:0;}"]}),$p=mn({base:{mc9l5x:"ftuwxu6",Brf1p80:"fsxf2b5",qhf8xq:"f10pi13n",ha4doy:"fmrv4ls",kn2xc0:["f14uur2j","fc1btbj"],Bs76p8a:["fye5tvs","fc597qq"],cuxpm9:["f1e8brtx","fr36rk3"],Biffepf:["fxp12j1","f1m6nt2y"],Defnvf:["fr7y8no","f1dn0c6m"],z0pv9t:"f1b65x5h"},outline:{},primary:{B1l9wao:["f4rm5b0","f1tuwo13"],lcnrd8:["fdwdeeo","f1ezdslh"],Brbpp8k:["fckzjn8","f8ohr2i"],Bcsxniv:["ff0tx2l","fnrj3rw"],tl7e51:["f3jppgx","f1m2s8ie"],mba178:["f96h41g","fdxf0pi"]},secondary:{},subtle:{B1l9wao:["f16kf41h","fxiafvi"],lcnrd8:["ffl6mx9","f1t5sw6t"],Brbpp8k:["f1t42bc8","fsw5hli"]},transparent:{B1l9wao:["f16kf41h","fxiafvi"],lcnrd8:["ffl6mx9","f1t5sw6t"],Brbpp8k:["f1t42bc8","fsw5hli"]},circular:{},rounded:{},square:{},disabled:{B1l9wao:["f10xrnr8","f15nylwb"],lcnrd8:["f11fwhjz","f18vtcsx"],Brbpp8k:["f31btwb","fzgm9gq"]},disabledHighContrast:{Bcsxniv:["fj2q5vi","f13tct40"],tl7e51:["fb2mzc7","f179dhpp"],mba178:["f1ma39qa","f1nzpdru"]}},{d:[".ftuwxu6{display:inline-flex;}",".fsxf2b5{justify-content:stretch;}",".f10pi13n{position:relative;}",".fmrv4ls{vertical-align:middle;}",".f14uur2j .fui-SplitButton__primaryActionButton{border-top-right-radius:0;}",".fc1btbj .fui-SplitButton__primaryActionButton{border-top-left-radius:0;}",".fye5tvs .fui-SplitButton__primaryActionButton{border-bottom-right-radius:0;}",".fc597qq .fui-SplitButton__primaryActionButton{border-bottom-left-radius:0;}",".f1e8brtx .fui-SplitButton__menuButton{border-left-width:0;}",".fr36rk3 .fui-SplitButton__menuButton{border-right-width:0;}",".fxp12j1 .fui-SplitButton__menuButton{border-top-left-radius:0;}",".f1m6nt2y .fui-SplitButton__menuButton{border-top-right-radius:0;}",".fr7y8no .fui-SplitButton__menuButton{border-bottom-left-radius:0;}",".f1dn0c6m .fui-SplitButton__menuButton{border-bottom-right-radius:0;}",".f1b65x5h .fui-SplitButton__menuButton{min-width:24px;}",".f4rm5b0 .fui-SplitButton__primaryActionButton{border-right-color:var(--colorNeutralStrokeOnBrand);}",".f1tuwo13 .fui-SplitButton__primaryActionButton{border-left-color:var(--colorNeutralStrokeOnBrand);}",".f16kf41h .fui-SplitButton__primaryActionButton{border-right-color:var(--colorTransparentBackground);}",".fxiafvi .fui-SplitButton__primaryActionButton{border-left-color:var(--colorTransparentBackground);}",".f10xrnr8 .fui-SplitButton__primaryActionButton{border-right-color:var(--colorNeutralStrokeDisabled);}",".f15nylwb .fui-SplitButton__primaryActionButton{border-left-color:var(--colorNeutralStrokeDisabled);}"],h:[".fdwdeeo:hover .fui-SplitButton__primaryActionButton{border-right-color:var(--colorNeutralStrokeOnBrand);}",".f1ezdslh:hover .fui-SplitButton__primaryActionButton{border-left-color:var(--colorNeutralStrokeOnBrand);}",".fckzjn8:hover:active .fui-SplitButton__primaryActionButton{border-right-color:var(--colorNeutralStrokeOnBrand);}",".f8ohr2i:hover:active .fui-SplitButton__primaryActionButton{border-left-color:var(--colorNeutralStrokeOnBrand);}",".ffl6mx9:hover .fui-SplitButton__primaryActionButton{border-right-color:var(--colorTransparentBackgroundHover);}",".f1t5sw6t:hover .fui-SplitButton__primaryActionButton{border-left-color:var(--colorTransparentBackgroundHover);}",".f1t42bc8:hover:active .fui-SplitButton__primaryActionButton{border-right-color:var(--colorTransparentBackgroundPressed);}",".fsw5hli:hover:active .fui-SplitButton__primaryActionButton{border-left-color:var(--colorTransparentBackgroundPressed);}",".f11fwhjz:hover .fui-SplitButton__primaryActionButton{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18vtcsx:hover .fui-SplitButton__primaryActionButton{border-left-color:var(--colorNeutralStrokeDisabled);}",".f31btwb:hover:active .fui-SplitButton__primaryActionButton{border-right-color:var(--colorNeutralStrokeDisabled);}",".fzgm9gq:hover:active .fui-SplitButton__primaryActionButton{border-left-color:var(--colorNeutralStrokeDisabled);}"],m:[["@media (forced-colors: active){.ff0tx2l .fui-SplitButton__primaryActionButton{border-right-color:HighlightText;}.fnrj3rw .fui-SplitButton__primaryActionButton{border-left-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1m2s8ie:hover .fui-SplitButton__primaryActionButton{border-left-color:Highlight;}.f3jppgx:hover .fui-SplitButton__primaryActionButton{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f96h41g:hover:active .fui-SplitButton__primaryActionButton{border-right-color:Highlight;}.fdxf0pi:hover:active .fui-SplitButton__primaryActionButton{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13tct40 .fui-SplitButton__primaryActionButton{border-left-color:GrayText;}.fj2q5vi .fui-SplitButton__primaryActionButton{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f179dhpp:hover .fui-SplitButton__primaryActionButton{border-left-color:GrayText;}.fb2mzc7:hover .fui-SplitButton__primaryActionButton{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ma39qa:hover:active .fui-SplitButton__primaryActionButton{border-right-color:GrayText;}.f1nzpdru:hover:active .fui-SplitButton__primaryActionButton{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}]]}),Gp=g.forwardRef((e,t)=>{const r=((e,t)=>{const{appearance:r="secondary",children:n,disabled:o=!1,disabledFocusable:i=!1,icon:a,iconPosition:s="before",menuButton:l,menuIcon:c,primaryActionButton:u,shape:d="rounded",size:f="medium"}=e,h=wo("splitButton-"),p=xn(l,{defaultProps:{appearance:r,disabled:o,disabledFocusable:i,menuIcon:c,shape:d,size:f},renderByDefault:!0,elementType:Vp}),m=xn(u,{defaultProps:{appearance:r,children:n,disabled:o,disabledFocusable:i,icon:a,iconPosition:s,id:h+"__primaryActionButton",shape:d,size:f},renderByDefault:!0,elementType:Dp});return p&&m&&!p["aria-label"]&&!p["aria-labelledby"]&&(p["aria-labelledby"]=m.id),{appearance:r,disabled:o,disabledFocusable:i,iconPosition:s,shape:d,size:f,components:{root:"div",menuButton:Vp,primaryActionButton:Dp},root:wn(Fn("div",{ref:t,...e}),{elementType:"div"}),menuButton:p,primaryActionButton:m}})(e,t);return(e=>{const t=$p(),r=Wp(),{appearance:n,disabled:o,disabledFocusable:i}=e;e.root.className=Qe(qp,t.base,n&&t[n],(o||i)&&t.disabled,(o||i)&&t.disabledHighContrast,e.root.className),e.menuButton&&(e.menuButton.className=Qe(Hp,r.menuButton,e.menuButton.className)),e.primaryActionButton&&(e.primaryActionButton.className=Qe(Up,r.primaryActionButton,e.primaryActionButton.className))})(r),io("useSplitButtonStyles_unstable")(r),(e=>Wo(e.root,{children:[e.primaryActionButton&&Uo(e.primaryActionButton,{}),e.menuButton&&Uo(e.menuButton,{})]}))(r)});Gp.displayName="SplitButton";const Yp=g.createContext(void 0);Yp.Provider;const Kp=()=>g.useContext(Yp);function Xp(e,t){return function(e,t,r){if(!e)return t;t={...t};const{generatedControlId:n,hintId:o,labelFor:i,labelId:a,required:s,validationMessageId:l,validationState:c}=e;var u,d,f,h,p,m,g,v,y,b;n&&(null!==(d=(u=t).id)&&void 0!==d||(u.id=n));!a||(null==r?void 0:r.supportsLabelFor)&&i===t.id||null!==(p=(f=t)[h="aria-labelledby"])&&void 0!==p||(f[h]=a);(l||o)&&(t["aria-describedby"]=[l,o,null==t?void 0:t["aria-describedby"]].filter(Boolean).join(" "));"error"===c&&(null!==(v=(m=t)[g="aria-invalid"])&&void 0!==v||(m[g]=!0));if(s){var w,x,S,k,E;if(null==r?void 0:r.supportsRequired)null!==(x=(w=t).required)&&void 0!==x||(w.required=!0);else null!==(E=(S=t)[k="aria-required"])&&void 0!==E||(S[k]=!0)}(null==r?void 0:r.supportsSize)&&(null!==(b=(y=t).size)&&void 0!==b||(y.size=e.size));return t}(Kp(),e,t)}const Jp="fui-Label",Qp="fui-Label__required",Zp=mn({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"},required:{sj55zd:"f1whyuy6",uwmqm3:["fruq291","f7x41pl"]},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),em=g.forwardRef((e,t)=>{const r=((e,t)=>{const{disabled:r=!1,required:n=!1,weight:o="regular",size:i="medium"}=e;return{disabled:r,required:xn(!0===n?"*":n||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:o,size:i,components:{root:"label",required:"span"},root:wn(Fn("label",{ref:t,...e}),{elementType:"label"})}})(e,t);return(e=>{const t=Zp();e.root.className=Qe(Jp,t.root,e.disabled&&t.disabled,t[e.size],"semibold"===e.weight&&t.semibold,e.root.className),e.required&&(e.required.className=Qe(Qp,t.required,e.disabled&&t.disabled,e.required.className))})(r),io("useLabelStyles_unstable")(r),(e=>Wo(e.root,{children:[e.root.children,e.required&&Uo(e.required,{})]}))(r)});em.displayName="Label";const tm="fui-Checkbox",rm="fui-Checkbox__label",nm="fui-Checkbox__input",om="fui-Checkbox__indicator",im=gn("r1q22k1j","r18ze4k2",{r:[".r1q22k1j{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r1q22k1j:focus{outline-style:none;}",".r1q22k1j:focus-visible{outline-style:none;}",".r1q22k1j[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1q22k1j[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r18ze4k2{position:relative;display:inline-flex;cursor:pointer;vertical-align:middle;color:var(--colorNeutralForeground3);}",".r18ze4k2:focus{outline-style:none;}",".r18ze4k2:focus-visible{outline-style:none;}",".r18ze4k2[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r18ze4k2[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1q22k1j[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.r18ze4k2[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),am=mn({unchecked:{Bi91k9c:"f3p8bqa",pv5h1i:"fium13f",lj723h:"f1r2dosr",Hnthvo:"f1729es6"},checked:{sj55zd:"f19n0e5",wkncrt:"f35ds98",zxk7z7:"f12mnkne",Hmsnfy:"fei9a8h",e6czan:"fix56y3",pv5h1i:"f1bcv2js",qbydtz:"f7dr4go",Hnthvo:"f1r5cpua"},mixed:{sj55zd:"f19n0e5",Hmsnfy:"f1l27tf0",zxk7z7:"fcilktj",pv5h1i:"f1lphd54",Bunfa6h:"f1obkvq7",Hnthvo:"f2gmbuh",B15ykmv:"f1oy4fa1"},disabled:{Bceei9c:"f158kwzp",sj55zd:"f1s2aq7o",Hmsnfy:"f1w7mfl5",zxk7z7:"fcoafq6",Bbusuzp:"f1dcs8yz",mrqfp9:"fxb3eh3"}},{h:[".f3p8bqa:hover{color:var(--colorNeutralForeground2);}",".fium13f:hover{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessibleHover);}",".fix56y3:hover{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundHover);}",".f1bcv2js:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundHover);}",".f1lphd54:hover{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokeHover);}",".f1obkvq7:hover{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Hover);}"],a:[".f1r2dosr:active{color:var(--colorNeutralForeground1);}",".f1729es6:active{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeAccessiblePressed);}",".f7dr4go:active{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackgroundPressed);}",".f1r5cpua:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackgroundPressed);}",".f2gmbuh:active{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStrokePressed);}",".f1oy4fa1:active{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1Pressed);}"],d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f35ds98{--fui-Checkbox__indicator--backgroundColor:var(--colorCompoundBrandBackground);}",".f12mnkne{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundInverted);}",".fei9a8h{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandBackground);}",".f1l27tf0{--fui-Checkbox__indicator--borderColor:var(--colorCompoundBrandStroke);}",".fcilktj{--fui-Checkbox__indicator--color:var(--colorCompoundBrandForeground1);}",".f158kwzp{cursor:default;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1w7mfl5{--fui-Checkbox__indicator--borderColor:var(--colorNeutralStrokeDisabled);}",".fcoafq6{--fui-Checkbox__indicator--color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fxb3eh3{--fui-Checkbox__indicator--color:GrayText;}}",{m:"(forced-colors: active)"}]]}),sm=gn("ruo9svu",null,[".ruo9svu{box-sizing:border-box;cursor:inherit;height:100%;margin:0;opacity:0;position:absolute;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));}"]),lm=mn({before:{j35jbq:["f1e31b4d","f1vgc2s3"]},after:{oyh7mz:["f1vgc2s3","f1e31b4d"]},large:{a9b677:"f1mq5jt6"}},{d:[".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1mq5jt6{width:calc(20px + 2 * var(--spacingHorizontalS));}"]}),cm=gn("rl7ci6d",null,[".rl7ci6d{align-self:flex-start;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--fui-Checkbox__indicator--color);background-color:var(--fui-Checkbox__indicator--backgroundColor);border-color:var(--fui-Checkbox__indicator--borderColor, var(--colorNeutralStrokeAccessible));border-style:solid;border-width:var(--strokeWidthThin);border-radius:var(--borderRadiusSmall);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;font-size:12px;height:16px;width:16px;}"]),um=mn({large:{Be2twd7:"f4ybsrx",Bqenvij:"fjamq6b",a9b677:"f64fuq3"},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"}},{d:[".f4ybsrx{font-size:16px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}]]}),dm=mn({base:{qb2dma:"f7nlbp4",sj55zd:"f1ym3bx4",Bceei9c:"fpo1scq",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1f5q0n8"},before:{z189sj:["f7x41pl","fruq291"]},after:{uwmqm3:["fruq291","f7x41pl"]},medium:{B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},large:{B6of3ja:"f1xlvstr",jrapky:"f49ad5g"}},{d:[".f7nlbp4{align-self:center;}",".f1ym3bx4{color:inherit;}",".fpo1scq{cursor:inherit;}",[".f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}",{p:-1}],".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}",".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}"]}),fm=g.forwardRef((e,t)=>{const r=((e,t)=>{e=Xp(e,{supportsLabelFor:!0,supportsRequired:!0});const{disabled:r=!1,required:n,shape:o="square",size:i="medium",labelPosition:a="after",onChange:s}=e,[l,c]=co({defaultState:e.defaultChecked,state:e.checked,initialState:!1}),u=Ln({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","size","onChange"]}),d="mixed"===l,f=wo("checkbox-",u.primary.id);let h;d?h="circular"===o?g.createElement(ad,null):"large"===i?g.createElement(Sd,null):g.createElement(xd,null):l&&(h="large"===i?g.createElement(hd,null):g.createElement(fd,null));const p={shape:o,checked:l,disabled:r,size:i,labelPosition:a,components:{root:"span",input:"input",indicator:"div",label:em},root:wn(e.root,{defaultProps:{ref:Ts(),...u.root},elementType:"span"}),input:wn(e.input,{defaultProps:{type:"checkbox",id:f,ref:t,checked:!0===l,...u.primary},elementType:"input"}),label:xn(e.label,{defaultProps:{htmlFor:f,disabled:r,required:n,size:"medium"},elementType:em}),indicator:xn(e.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0,children:h},elementType:"div"})};p.input.onChange=vo(e=>{const t=e.currentTarget.indeterminate?"mixed":e.currentTarget.checked;null==s||s(e,{checked:t}),c(t)});const m=xo(p.input.ref);return p.input.ref=m,go(()=>{m.current&&(m.current.indeterminate=d)},[m,d]),p})(e,t);return(e=>{const{checked:t,disabled:r,labelPosition:n,shape:o,size:i}=e,a=im(),s=am();e.root.className=Qe(tm,a,r?s.disabled:"mixed"===t?s.mixed:t?s.checked:s.unchecked,e.root.className);const l=sm(),c=lm();e.input.className=Qe(nm,l,"large"===i&&c.large,c[n],e.input.className);const u=cm(),d=um();e.indicator&&(e.indicator.className=Qe(om,u,"large"===i&&d.large,"circular"===o&&d.circular,e.indicator.className));const f=dm();e.label&&(e.label.className=Qe(rm,f.base,f[i],f[n],e.label.className))})(r),io("useCheckboxStyles_unstable")(r),(e=>Wo(e.root,{children:[Uo(e.input,{}),"before"===e.labelPosition&&e.label&&Uo(e.label,{}),e.indicator&&Uo(e.indicator,{}),"after"===e.labelPosition&&e.label&&Uo(e.label,{})]}))(r)});fm.displayName="Checkbox";const hm=bu({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption:()=>()=>{},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});hm.Provider;const pm={activeOption:void 0,focusVisible:!1,multiselect:!1,getOptionById(){},getOptionsMatchingValue:()=>[],registerOption:()=>()=>{},selectedOptions:[],onOptionClick(){},onActiveDescendantChange(){},selectOption(){},setActiveOption(){}},mm=bu(void 0),gm=e=>wu(mm,(t=pm)=>e(t)),vm=mm.Provider;function ym(e){const{appearance:t,open:r,getOptionById:n,getOptionsMatchingValue:o,registerOption:i,selectedOptions:a,selectOption:s,setOpen:l,size:c,activeDescendantController:u,onOptionClick:d,onActiveDescendantChange:f}=e,h={activeOption:void 0,focusVisible:!1,getOptionById:n,getOptionsMatchingValue:o,registerOption:i,selectedOptions:a,selectOption:s,setActiveOption:()=>null,onOptionClick:d,onActiveDescendantChange:f};return{combobox:{activeOption:void 0,appearance:t,focusVisible:!1,open:r,registerOption:i,selectedOptions:a,selectOption:s,setActiveOption:()=>null,setOpen:l,size:c},activeDescendant:g.useMemo(()=>({controller:u}),[u]),listbox:h}}function bm(e,t={}){const{open:r=!0,multiselect:n=!1}=t,o=e.key,{altKey:i,ctrlKey:a,key:s,metaKey:l}=e;return 1!==s.length||o===ku||i||a||l?r?o===Cu&&i||o===Su||!n&&o===ku?"CloseSelect":n&&o===ku?"Select":o===Bu?"Close":o===Eu?"Next":o===Cu?"Previous":o===Au?"First":"End"===o?"Last":o===Pu?"PageUp":o===Iu?"PageDown":"Tab"===o?"Tab":"None":o===Eu||o===Cu||o===Su||o===ku?"Open":"None":"Type"}const wm=()=>{const e=g.useRef(new Map),t=g.useMemo(()=>({getCount:()=>e.current.size,getOptionAtIndex:()=>{},getIndexOfId:()=>-1,getOptionById:t=>e.current.get(t),getOptionsMatchingText:t=>Array.from(e.current.values()).filter(({text:e})=>t(e)),getOptionsMatchingValue:t=>{const r=[];for(const n of e.current.values())t(n.value)&&r.push(n);return r}}),[]),r=g.useCallback(t=>(e.current.set(t.id,t),()=>e.current.delete(t.id)),[]);return{...t,options:Array.from(e.current.values()),registerOption:r}},xm=e=>{const{defaultSelectedOptions:t,multiselect:r,onOptionSelect:n}=e,[o,i]=co({state:e.selectedOptions,defaultState:t,initialState:[]});return{clearSelection:e=>{i([]),null==n||n(e,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:g.useCallback((e,t)=>{if(t.disabled)return;let a=[t.value];if(r){const e=o.findIndex(e=>e===t.value);a=e>-1?[...o.slice(0,e),...o.slice(e+1)]:[...o,t.value]}i(a),null==n||n(e,{optionValue:t.value,optionText:t.text,selectedOptions:a})},[n,r,o,i]),selectedOptions:o}},Sm="fui-Option",km="fui-Option__checkIcon",Em=mn({root:{Bt984gj:"f122n59",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fm5eomj",qhf8xq:"f10pi13n",Jwef8y:"f1knas48",Bi91k9c:"feu1g3u",zqbkvg:"fo79ri9",h82x05:["f1osiabc","f1e8le25"],cqj998:"f1yusjty",j3hlsh:["f1e8le25","f1osiabc"],ecr2s2:"fb40n2d",lj723h:"f1g4hkjv",Btxx2vb:"f1lnr2zp",sltcwy:["f1ogfk9z","f1g7j8ec"],dnwvvm:"fiuf46r",Blyvkvs:["f1g7j8ec","f1ogfk9z"]},active:{Bowz1zl:"f11vrvdw",oxogb1:"f17hxjb7",Ix2sn8:"f1dha69c",q7v32p:"f1lm7500",B7cbj04:0,Bewtojm:0,b50fsz:0,B1wzb3v:0,Bqwk70n:0,B37u8z8:0,avt0cx:0,f0sref:0,B9fkznv:0,Be3o27t:0,Bertapg:0,B53xpsf:0,Bsv72rj:0,B39dzdd:0,Btq9bd3:0,Bqfxd14:0,atup0s:"fo7xqb",Fffuxt:0,Bttcd12:0,Beitzug:0,Bqougee:0,B86i8pi:"f1kurthe",Bhijsxg:"fwq15dy",kktds4:"f1pb3wry",Bmau3bo:["ftjv2f4","f1flhb1f"],npektv:["f1flhb1f","ftjv2f4"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",Bi91k9c:"fvgxktp",zqbkvg:"f185j3qj",h82x05:["f1dligi3","f1vydzie"],cqj998:"fjw1di3",j3hlsh:["f1vydzie","f1dligi3"],ecr2s2:"fgj9um3",lj723h:"f19wldhg",Btxx2vb:"f1ss0kt2",sltcwy:["f1t6oli3","fjy9ci8"],dnwvvm:"fresaxk",Blyvkvs:["fjy9ci8","f1t6oli3"],Bbusuzp:"f1dcs8yz"},selected:{},checkIcon:{Bnnss6s:"fi64zpg",Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f1l3cf7o",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fq9zq91",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"},multiselectCheckDisabled:{g2u3we:"f1r1t4y1",h3c5rm:["fmj8ijw","figx54m"],B9xav0g:"f360ss8",zhjwy3:["figx54m","fmj8ijw"]}},{d:[".f122n59{align-items:center;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".fm5eomj{padding:var(--spacingVerticalSNudge) var(--spacingHorizontalS);}",{p:-1}],".f10pi13n{position:relative;}",'.f11vrvdw[data-activedescendant-focusvisible]::after{content:"";}',".f17hxjb7[data-activedescendant-focusvisible]::after{position:absolute;}",".f1dha69c[data-activedescendant-focusvisible]::after{pointer-events:none;}",".f1lm7500[data-activedescendant-focusvisible]::after{z-index:1;}",[".fo7xqb[data-activedescendant-focusvisible]::after{border:2px solid var(--colorStrokeFocus2);}",{p:-2}],[".f1kurthe[data-activedescendant-focusvisible]::after{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fwq15dy[data-activedescendant-focusvisible]::after{top:-2px;}",".f1pb3wry[data-activedescendant-focusvisible]::after{bottom:-2px;}",".ftjv2f4[data-activedescendant-focusvisible]::after{left:-2px;}",".f1flhb1f[data-activedescendant-focusvisible]::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fi64zpg{flex-shrink:0;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",[".f1l3cf7o{border:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}",{p:-2}],[".fq9zq91{border-radius:var(--borderRadiusSmall);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}",".f1r1t4y1{border-top-color:var(--colorNeutralForegroundDisabled);}",".fmj8ijw{border-right-color:var(--colorNeutralForegroundDisabled);}",".figx54m{border-left-color:var(--colorNeutralForegroundDisabled);}",".f360ss8{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".fo79ri9:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1osiabc:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1e8le25:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".f1yusjty:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f185j3qj:hover .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1dligi3:hover .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".f1vydzie:hover .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fjw1di3:hover .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1g4hkjv:active{color:var(--colorNeutralForeground1Pressed);}",".f1lnr2zp:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForeground1Hover);}",".f1ogfk9z:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForeground1Hover);}",".f1g7j8ec:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForeground1Hover);}",".fiuf46r:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForeground1Hover);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1ss0kt2:active .fui-Option__checkIcon{border-top-color:var(--colorNeutralForegroundDisabled);}",".f1t6oli3:active .fui-Option__checkIcon{border-right-color:var(--colorNeutralForegroundDisabled);}",".fjy9ci8:active .fui-Option__checkIcon{border-left-color:var(--colorNeutralForegroundDisabled);}",".fresaxk:active .fui-Option__checkIcon{border-bottom-color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),Tm=e=>{const{disabled:t,multiselect:r,selected:n}=e,o=Em();return e.root.className=Qe(Sm,o.root,o.active,t&&o.disabled,n&&o.selected,e.root.className),e.checkIcon&&(e.checkIcon.className=Qe(km,o.checkIcon,r&&o.multiselectCheck,n&&o.selectedCheck,n&&r&&o.selectedMultiselectCheck,t&&o.checkDisabled,t&&r&&o.multiselectCheckDisabled,e.checkIcon.className)),e},_m={activeOption:void 0,focusVisible:!1,setActiveOption:()=>null},Cm=(e,t)=>{const{multiselect:r,disableAutoFocus:n=!1}=e,o=wm(),{listboxRef:i,activeParentRef:a,controller:s}=$u({matchOption:e=>e.classList.contains(Sm)}),l=xu(mm),c=gm(e=>e.onActiveDescendantChange),u=gm(e=>e.getOptionById),d=gm(e=>e.getOptionsMatchingValue),f=l?u:o.getOptionById,h=l?d:o.getOptionsMatchingValue,p=g.useMemo(()=>{let e=null;const t=e=>{null==c||c(e)};return r=>{r?(e=r,e.addEventListener("activedescendantchange",t)):null==e||e.removeEventListener("activedescendantchange",t)}},[c]),[m,v]=g.useState(!1);Cs(v);const y=ju(),b=!!g.useContext(Mu),w=b?y.controller:s,{clearSelection:x,selectedOptions:S,selectOption:k}=xm(e),E=gm(e=>e.selectedOptions),T=gm(e=>e.selectOption),_=l?{selectedOptions:E,selectOption:T,..._m}:{selectedOptions:S,selectOption:k,..._m};g.useEffect(()=>{if(!b){if(w.hideFocusVisibleAttributes(),!n)if(!r&&_.selectedOptions.length>0){const e=h(e=>e===_.selectedOptions[0]).pop();(null==e?void 0:e.id)&&w.focus(e.id)}else w.first();return()=>{w.blur()}}},[]);const C=g.useCallback(()=>{b||(w.showFocusVisibleAttributes(),m&&w.scrollActiveIntoView())},[w,b,m]),A=g.useCallback(()=>{b||w.hideFocusVisibleAttributes()},[w,b]),I={components:{root:"div"},root:wn(Fn("div",{ref:xo(t,a,i,p),role:r?"menu":"listbox",tabIndex:0,...e}),{elementType:"div"}),standalone:!l,multiselect:r,clearSelection:x,activeDescendantController:w,onActiveDescendantChange:c,...o,..._};return I.root.onKeyDown=vo(Bo(I.root.onKeyDown,e=>{const t=bm(e,{open:!0}),r=w.active(),n=r?f(r):null;switch(t){case"First":case"Last":case"Next":case"Previous":case"PageDown":case"PageUp":case"CloseSelect":case"Select":e.preventDefault()}switch(t){case"Next":n?w.next():w.first();break;case"Previous":n?w.prev():w.first();break;case"PageUp":case"First":w.first();break;case"PageDown":case"Last":w.last();break;case"Select":case"CloseSelect":n&&k(e,n)}})),I.root.onFocus=vo(Bo(I.root.onFocus,C)),I.root.onBlur=vo(Bo(I.root.onBlur,A)),I},Am="fui-Listbox",Im=mn({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bw0xxkn:0,oeaueh:0,Bpd4iqm:0,Befb4lg:"f1iepc6i",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1t35pdg",Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",[".f1iepc6i{outline:1px solid var(--colorTransparentStroke);}",{p:-1}],[".f1t35pdg{padding:var(--spacingHorizontalXS);}",{p:-1}],".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),Pm=g.forwardRef((e,t)=>{const r=Cm(e,t),n=function(e){const t=xu(mm),{getOptionById:r,getOptionsMatchingValue:n,multiselect:o,registerOption:i,selectedOptions:a,selectOption:s,activeDescendantController:l}=e,c=gm(e=>e.registerOption);return{listbox:{activeOption:void 0,focusVisible:!1,getOptionById:r,getOptionsMatchingValue:n,multiselect:o,registerOption:t?c:i,selectedOptions:a,selectOption:s,setActiveOption:()=>{},onOptionClick:gm(e=>e.onOptionClick),onActiveDescendantChange:gm(e=>e.onActiveDescendantChange)},activeDescendant:g.useMemo(()=>({controller:l}),[l])}}(r);return(e=>{const t=Im();e.root.className=Qe(Am,t.root,e.root.className)})(r),io("useListboxStyles_unstable")(r),((e,t)=>Uo(zu,{value:t.activeDescendant,children:Uo(mm.Provider,{value:t.listbox,children:Uo(e.root,{})})}))(r,n)});Pm.displayName="Listbox";const Nm=(e,t)=>{const{children:r,disabled:n,text:o,value:i}=e,a=g.useRef(null),s=function(e,t){if(void 0!==e)return e;let r="",n=!1;return g.Children.forEach(t,e=>{"string"==typeof e?r+=e:n=!0}),n&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),r}(o,r),l=null!=i?i:s,c=wo("fluent-option",e.id),u=g.useMemo(()=>({id:c,disabled:n,text:s,value:l}),[c,n,s,l]),{controller:d}=ju(),f=gm(e=>e.multiselect),h=gm(e=>e.registerOption),p=gm(e=>{const t=e.selectedOptions;return void 0!==l&&void 0!==t.find(e=>e===l)}),m=gm(e=>e.selectOption),v=gm(e=>e.onOptionClick);let y=g.createElement(ed,null);f&&(y=p?g.createElement(fd,null):"");g.useEffect(()=>{if(c&&a.current)return h(u,a.current)},[c,u,h]);const b=f?{role:"menuitemcheckbox","aria-checked":p}:{role:"option","aria-selected":p};return{components:{root:"div",checkIcon:"span"},root:wn(Fn("div",{ref:xo(t,a),"aria-disabled":n?"true":void 0,id:c,...b,...e,onClick:t=>{var r;n?t.preventDefault():(d.focus(c),m(t,u),v(t),null===(r=e.onClick)||void 0===r||r.call(e,t))}}),{elementType:"div"}),checkIcon:xn(e.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:y},elementType:"span"}),disabled:n,multiselect:f,selected:p,focusVisible:!1,active:!1}},Bm=g.forwardRef((e,t)=>{const r=Nm(e,t);return Tm(r),io("useOptionStyles_unstable")(r),(e=>Wo(e.root,{children:[e.checkIcon&&Uo(e.checkIcon,{}),e.root.children]}))(r)});Bm.displayName="Option";const Om=e=>{const{appearance:t="outline",disableAutoFocus:r,children:n,clearable:o=!1,editable:i=!1,inlinePopup:a=!1,mountNode:s,multiselect:l,onOpenChange:c,size:u="medium",activeDescendantController:d,freeform:f=!1,disabled:h=!1,onActiveOptionChange:p=null}=e,m=wm(),{getOptionsMatchingValue:v}=m,{getOptionById:y}=m,b=g.useCallback(()=>{const e=d.active();return e?y(e):void 0},[d,y]),w=b(),x=g.useCallback(e=>{let t;if("function"==typeof e){t=e(b())}t?d.focus(t.id):d.blur()},[d,b]),[S,k]=g.useState(!1),[E,T]=g.useState(!1),_=g.useRef(!1),C=yo(),[A,I]=co({state:e.value,initialState:void 0}),{selectedOptions:P,selectOption:N,clearSelection:B}=xm(e),O=g.useCallback((e,t)=>{lp.unstable_batchedUpdates(()=>{I(void 0),N(e,t)})},[I,N]),D=g.useMemo(()=>{if(void 0!==A)return A;if(C&&void 0!==e.defaultValue)return e.defaultValue;const t=v(e=>P.includes(e)).map(e=>e.text);return l?i?"":t.join(", "):t[0]},[A,i,v,l,P]),[R,M]=co({state:e.open,defaultState:e.defaultOpen,initialState:!1}),z=g.useCallback((e,t)=>{h||(null==c||c(e,{open:t}),lp.unstable_batchedUpdates(()=>{t||f||I(void 0),M(t)}))},[c,M,I,f,h]);g.useEffect(()=>{if(R){if(!l&&P.length>0){const e=v(e=>e===P[0]).pop();(null==e?void 0:e.id)&&d.focus(e.id)}}else d.blur()},[R,d]),g.useEffect(()=>{!R||r||d.active()||d.first()},[R,n,r,d,y]);const j=vo(e=>{const t=e.detail.previousId?m.getOptionById(e.detail.previousId):null,r=m.getOptionById(e.detail.id);null==p||p(e,{event:e,type:"change",previousOption:t,nextOption:r})});return{...m,freeform:f,disabled:h,selectOption:O,clearSelection:B,selectedOptions:P,activeOption:w,appearance:t,clearable:o,focusVisible:S,ignoreNextBlur:_,inlinePopup:a,mountNode:s,open:R,hasFocus:E,setActiveOption:x,setFocusVisible:k,setHasFocus:T,setOpen:z,setValue:I,size:u,value:D,multiselect:l,onOptionClick:vo(e=>{l||z(e,!1)}),onActiveDescendantChange:j}};function Dm(e,t,r){const{state:{multiselect:n},triggerRef:o,defaultProps:i}=r,a=wo("fluent-listbox",null===(s=e)||"object"!=typeof s||Array.isArray(s)||g.isValidElement(s)?void 0:e.id);var s;const l=xn(e,{renderByDefault:!0,elementType:Pm,defaultProps:{id:a,multiselect:n,tabIndex:void 0,...i}}),c=Xp({id:a},{supportsLabelFor:!0});l&&!l["aria-label"]&&!l["aria-labelledby"]&&c["aria-labelledby"]&&(l["aria-labelledby"]=c["aria-labelledby"]);const u=vo(Bo(e=>{e.preventDefault()},null==l?void 0:l.onMouseDown)),d=vo(Bo(e=>{var t;e.preventDefault(),null===(t=o.current)||void 0===t||t.focus()},null==l?void 0:l.onClick)),f=xo(null==l?void 0:l.ref,t);return l&&(l.ref=f,l.onMouseDown=u,l.onClick=d),l}function Rm(e,t,r){const{state:{open:n,setOpen:o,setHasFocus:i},defaultProps:a,elementType:s,activeDescendantController:l}=r,c=wn(e,{defaultProps:{type:"text","aria-expanded":n,role:"combobox",..."object"==typeof a&&a},elementType:s}),u=g.useRef(null);return c.ref=xo(u,c.ref,t),c.onBlur=Bo(e=>{o(e,!1),i(!1)},c.onBlur),c.onFocus=Bo(e=>{e.target===e.currentTarget&&i(!0)},c.onFocus),c.onClick=Bo(e=>{o(e,!n)},c.onClick),c.onKeyDown=Bo(function(e){const{activeDescendantController:t,getOptionById:r,setOpen:n,selectOption:o,multiselect:i,open:a}=e,s=g.useCallback(()=>{const e=t.active();return e?r(e):void 0},[t,r]),l=()=>{t.first()},c=()=>{t.last()},u=e=>{e?t.next():t.first()},d=e=>{e?t.prev():t.first()},f=()=>{for(let e=0;e<10;e++)t.prev()},h=()=>{for(let e=0;e<10;e++)t.next()},p=function(){const e=_s();return g.useCallback(t=>{var r;null===(r=e.current)||void 0===r||r.setVal(t)},[e])}();return vo(e=>{const t=bm(e,{open:a,multiselect:i}),r=s();switch(t){case"First":case"Last":case"Next":case"Previous":case"PageDown":case"PageUp":case"Open":case"Close":case"CloseSelect":case"Select":e.preventDefault()}switch(p(!0),t){case"First":l();break;case"Last":c();break;case"Next":u(r);break;case"Previous":d(r);break;case"PageDown":h();break;case"PageUp":f();break;case"Open":n(e,!0);break;case"Close":e.stopPropagation(),n(e,!1);break;case"CloseSelect":!i&&!(null==r?void 0:r.disabled)&&n(e,!1);case"Select":r&&o(e,r);break;case"Tab":!i&&r&&o(e,r)}})}({activeDescendantController:l,...r.state}),c.onKeyDown),c}function Mm(e,t,r){const{state:{open:n,value:o,selectOption:i,setValue:a,multiselect:s,selectedOptions:l,clearSelection:c,getOptionById:u,setOpen:d},freeform:f,defaultProps:h,activeDescendantController:p}=r,m=e=>{const t=null==e?void 0:e.trim().toLowerCase();if(!t||0===t.length)return void p.blur();const r=p.find(e=>{const r=u(e);return!!r&&0===r.text.toLowerCase().indexOf(t)});if(r)return u(r);p.blur()},v=Rm(e,t,{state:r.state,defaultProps:h,elementType:"input",activeDescendantController:p});v.onChange=Bo(v.onChange,e=>{const t=e.target.value;a(t);const r=m(t);s||1!==l.length||!(t.length<1)&&r||c(e)}),v.onBlur=Bo(v.onBlur,e=>{if(!n&&!f){const t=p.active(),r=t?u(t):null;o&&r&&o.trim().toLowerCase()===(null==r?void 0:r.text.toLowerCase())&&i(e,r),a(void 0)}});const[y,b]=g.useState(!1),w=g.useRef(!1),x=v.onKeyDown,S=vo(t=>{n||"Type"!==bm(t)||d(t,!0),t.key===Tu||t.key===_u?b(!0):b(!1);const r=bm(t,{open:n,multiselect:s});var o;("Type"===r?w.current=!0:("Open"===r&&" "!==t.key||"Next"===r||"Previous"===r||"First"===r||"Last"===r||"PageUp"===r||"PageDown"===r)&&(w.current=!1),!w.current&&n||" "!==t.key)?null==x||x(t):null==e||null===(o=e.onKeyDown)||void 0===o||o.call(e,t)});return v.onKeyDown=S,y&&(v["aria-activedescendant"]=void 0),v}const zm=(e,t)=>{var r,n;e=Xp(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const{listboxRef:o,activeParentRef:i,controller:a}=$u({matchOption:e=>e.classList.contains(Sm)}),s=Om({...e,editable:!0,activeDescendantController:a}),{clearable:l,clearSelection:c,disabled:u,multiselect:d,open:f,selectedOptions:h,setOpen:p,value:m,hasFocus:v}=s,[y,b]=function(e){const{positioning:t}=e,r={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",autoSize:!0,...Sh(t)},{targetRef:n,containerRef:o}=Dh(r);return[o,n]}(e),{disableAutoFocus:w=!1,freeform:x,inlinePopup:S}=e,k=wo("combobox-"),{primary:E,root:T}=Ln({props:e,primarySlotTagName:"input",excludedPropNames:["children","size"]}),_=g.useRef(null),C=Dm(e.listbox,xo(y,o),{state:s,triggerRef:_,defaultProps:{children:e.children,disableAutoFocus:w}});var A;const I=Mm(null!==(A=e.input)&&void 0!==A?A:{},xo(_,i,t),{state:s,freeform:x,defaultProps:{type:"text",value:null!=m?m:"","aria-controls":f?null==C?void 0:C.id:void 0,...E},activeDescendantController:a}),P=wn(e.root,{defaultProps:{"aria-owns":!S&&f?null==C?void 0:C.id:void 0,...T},elementType:"div"});P.ref=xo(P.ref,b);const N=h.length>0&&!u&&l&&!d,B={components:{root:"div",input:"input",expandIcon:"span",listbox:Pm,clearIcon:"span"},root:P,input:I,listbox:f||v?C:void 0,clearIcon:xn(e.clearIcon,{defaultProps:{"aria-hidden":"true",children:g.createElement(sd,null)},elementType:"span",renderByDefault:!0}),expandIcon:xn(e.expandIcon,{renderByDefault:!0,defaultProps:{"aria-disabled":u?"true":void 0,"aria-expanded":f,children:g.createElement(td,null),role:"button"},elementType:"span"}),showClearIcon:N,activeDescendantController:a,...s},{targetDocument:O}=Qn();ko({element:O,callback:e=>p(e,!1),refs:[_,y,b],disabled:!f});const{onMouseDown:D}=B.expandIcon||{},R=vo(Bo(D,e=>{var t;e.preventDefault(),B.setOpen(e,!B.open),null===(t=_.current)||void 0===t||t.focus()}));if(B.expandIcon){B.expandIcon.onMouseDown=R;const t="Open";if(!(B.expandIcon["aria-label"]||B.expandIcon["aria-labelledby"]))if(e["aria-labelledby"]){var M;const e=null!==(M=B.expandIcon.id)&&void 0!==M?M:`${k}-chevron`,r=`${e} ${B.input["aria-labelledby"]}`;B.expandIcon["aria-label"]=t,B.expandIcon.id=e,B.expandIcon["aria-labelledby"]=r}else e["aria-label"]?B.expandIcon["aria-label"]=`${t} ${e["aria-label"]}`:B.expandIcon["aria-label"]=t}const z=vo(Bo(null===(r=B.clearIcon)||void 0===r?void 0:r.onMouseDown,e=>{e.preventDefault()})),j=vo(Bo(null===(n=B.clearIcon)||void 0===n?void 0:n.onClick,e=>{c(e)}));return B.clearIcon&&(B.clearIcon.onMouseDown=z,B.clearIcon.onClick=j),d&&(B.clearIcon=void 0),B},jm=(e,t)=>Uo(e.root,{children:Uo(zu,{value:t.activeDescendant,children:Uo(vm,{value:t.listbox,children:Wo(hm.Provider,{value:t.combobox,children:[Uo(e.input,{}),e.clearIcon&&Uo(e.clearIcon,{}),e.expandIcon&&Uo(e.expandIcon,{}),e.listbox&&(e.inlinePopup?Uo(e.listbox,{}):Uo(cp,{mountNode:e.mountNode,children:Uo(e.listbox,{})}))]})})})}),Lm="fui-Combobox",Fm="fui-Combobox__input",Vm="fui-Combobox__expandIcon",qm="fui-Combobox__clearIcon",Hm="fui-Combobox__listbox",Um=mn({root:{Bt984gj:"f122n59",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",B7ck84d:"f1ewtqcl",i8kkvl:"f14mj54c",mc9l5x:"fwk3njj",Budl1dq:"fz17x9o",Brf1p80:"f1869bpl",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",ha4doy:"fmrv4ls",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"f145g4dw",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],B1q35kw:0,Bw17bha:0,Bcgy8vk:0,Bjuhk93:"f1mnjydx",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51"},listbox:{E5pizo:"f1hg901r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bxyxcbc:"fmmk62d",B7ck84d:"f1ewtqcl"},listboxCollapsed:{mc9l5x:"fjseox"},inlineListbox:{Bj3rh1h:"f19g0ac"},small:{Bqenvij:"frvgh55",z189sj:["fdw0yi8","fk8j09s"]},medium:{Bqenvij:"f1d2rq10",z189sj:["f11gcy0p","f1ng84yb"]},large:{i8kkvl:"f1rjii52",Bqenvij:"fbhnoac",z189sj:["fw5db7e","f1uw59to"]},outline:{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:"f1c1zstj",oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fhz96rm"},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"f1z0osm6",B50zh58:["f4ruux4","f1assf6x"],Bvq3b66:"f1b473iu",Brahy3i:["f381qr8","ft4skwv"],zoxjo1:"f1qzcrsd",an54nd:["ft4skwv","f381qr8"]},underline:{De3pzq:"f1c21dwh",B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f9ez7ne",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779"},"filled-lighter":{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f88035w"},"filled-darker":{De3pzq:"f16xq7d1",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f88035w"},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]}},{d:[".f122n59{align-items:center;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fwk3njj{display:inline-grid;}",".fz17x9o{grid-template-columns:1fr auto;}",".f1869bpl{justify-content:space-between;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".fmrv4ls{vertical-align:middle;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".f145g4dw::after{height:max(2px, var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",[".f1mnjydx::after{border-bottom:var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);}",{p:-1}],".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".f19g0ac{z-index:1;}",".frvgh55{height:24px;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1d2rq10{height:32px;}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fbhnoac{height:40px;}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".fhz96rm{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}",{p:-2}],".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f9ez7ne{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}",{p:-1}],[".fokr779{border-radius:0;}",{p:-1}],[".f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",[".f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-2}],".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".f1b473iu:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".f381qr8:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".ft4skwv:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1qzcrsd:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"]}),Wm=mn({input:{qb2dma:"f1ub7u0d",De3pzq:"f1c21dwh",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",sj55zd:"f19n0e5",Bahqtrf:"fk6fouc",Brovlpu:"ftqa4ok",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["fxe2rs","f1gflqzi"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["fzy81xo","f58b53b"]},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f1kdav7a","footqm6"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1ub7u0d{align-self:stretch;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f3bhgqh{border:none;}",{p:-2}],".f19n0e5{color:var(--colorNeutralForeground1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",[".fxe2rs{padding:0 0 0 calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f1gflqzi{padding:0 calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS)) 0 0;}",{p:-1}],".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".fzy81xo{padding:0 0 0 calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f58b53b{padding:0 calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS)) 0 0;}",{p:-1}],".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f1kdav7a{padding:0 0 0 calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",{p:-1}],[".footqm6{padding:0 calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge)) 0 0;}",{p:-1}],".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"],f:[".ftqa4ok:focus{outline-style:none;}"]}),$m=mn({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",Bceei9c:"f1k6fduh",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Bo70h7d:"fvc9v3g"},hidden:{mc9l5x:"fjseox"},visuallyHidden:{Bh84pgu:"f1ekcaio",Bqenvij:"f1mpe4l3",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1jlpb2r",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1c5fvqg",a9b677:"frkrog8",qhf8xq:"f1euv43f"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".f1k6fduh{cursor:pointer;}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fvc9v3g svg{display:block;}",".fjseox{display:none;}",".f1ekcaio{clip:rect(0px, 0px, 0px, 0px);}",".f1mpe4l3{height:1px;}",[".f1jlpb2r{margin:-1px;}",{p:-1}],[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".f1c5fvqg{padding:0px;}",{p:-1}],".frkrog8{width:1px;}",".f1euv43f{position:absolute;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}"]}),Gm=e=>{const{appearance:t,open:r,size:n,showClearIcon:o}=e,i="true"==`${e.input["aria-invalid"]}`,a=e.input.disabled,s=Um(),l=$m(),c=Wm();return e.root.className=Qe(Lm,s.root,s[t],s[n],!a&&"outline"===t&&s.outlineInteractive,i&&"underline"!==t&&s.invalid,i&&"underline"===t&&s.invalidUnderline,a&&s.disabled,e.root.className),e.input.className=Qe(Fm,c.input,c[n],a&&c.disabled,e.input.className),e.listbox&&(e.listbox.className=Qe(Hm,s.listbox,e.inlinePopup&&s.inlineListbox,!r&&s.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=Qe(Vm,l.icon,l[n],a&&l.disabled,o&&l.visuallyHidden,e.expandIcon.className)),e.clearIcon&&(e.clearIcon.className=Qe(qm,l.icon,l[n],a&&l.disabled,!o&&l.hidden,e.clearIcon.className)),e},Ym=g.forwardRef((e,t)=>{const r=zm(e,t),n=ym(r);return Gm(r),io("useComboboxStyles_unstable")(r),jm(r,n)});Ym.displayName="Combobox";const Km=(e,t)=>{const r=wo("group-label"),{label:n}=e;return{components:{root:"div",label:"span"},root:wn(Fn("div",{ref:t,role:"group","aria-labelledby":n?r:void 0,...e}),{elementType:"div"}),label:xn(n,{defaultProps:{id:r,role:"presentation"},elementType:"span"})}},Xm=e=>Wo(e.root,{children:[e.label&&Uo(e.label,{children:e.label.children}),e.root.children]}),Jm="fui-OptionGroup",Qm="fui-OptionGroup__label",Zm=mn({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Belr9w4:"fiut8dr",B8lkq7l:"f1xxzjds",eii1in:0,H93o2g:0,Gwp8xu:0,Bd39igo:"f16cmn8k",om0q45:"f5642y",Hl9o3s:"ffdf81h",sl1c2c:0,z4hxbw:0,B0i58d9:0,Bi9x0x4:0,Bgurq3m:"f1bsn9kn"},label:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",sj55zd:"f11d4kpn",mc9l5x:"ftgm304",Be2twd7:"fy9rknc",Bhrd7zp:"fl43uef",Bg96gwp:"fwrc4pm",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mpq0zz"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}",'.f1xxzjds:not(:last-child)::after{content:"";}',[".f16cmn8k:not(:last-child)::after{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStroke2);}",{p:-1}],".f5642y:not(:last-child)::after{display:block;}",".ffdf81h:not(:last-child)::after{padding-bottom:var(--spacingHorizontalXS);}",[".f1bsn9kn:not(:last-child)::after{margin:0 calc(var(--spacingHorizontalXS) * -1) var(--spacingVerticalXS);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f11d4kpn{color:var(--colorNeutralForeground3);}",".ftgm304{display:block;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",[".f1mpq0zz{padding:var(--spacingHorizontalS) var(--spacingHorizontalSNudge);}",{p:-1}]]}),eg=e=>{const t=Zm();return e.root.className=Qe(Jm,t.root,e.root.className),e.label&&(e.label.className=Qe(Qm,t.label,e.label.className)),e},tg=g.forwardRef((e,t)=>{const r=Km(e,t);return eg(r),io("useOptionGroupStyles_unstable")(r),Xm(r)});tg.displayName="OptionGroup";const rg="fui-Input",ng="fui-Input__input",og="fui-Input__contentBefore",ig="fui-Input__contentAfter",ag=gn("r1oeeo9n","r9sxh5",{r:[".r1oeeo9n{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1oeeo9n::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1oeeo9n:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1oeeo9n:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1oeeo9n:focus-within{outline:2px solid transparent;}",".r9sxh5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r9sxh5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r9sxh5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r9sxh5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r9sxh5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),sg=mn({small:{sshi5w:"f1pha7fy",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:0,Belr9w4:0,rmohyg:"f1eyhf9v"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"f2ale1x"},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"},smallWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},smallWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},mediumWithContentBefore:{uwmqm3:["f1ng84yb","f11gcy0p"]},mediumWithContentAfter:{z189sj:["f11gcy0p","f1ng84yb"]},largeWithContentBefore:{uwmqm3:["f1uw59to","fw5db7e"]},largeWithContentAfter:{z189sj:["fw5db7e","f1uw59to"]}},{d:[".f1pha7fy{min-height:24px;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f1eyhf9v{gap:var(--spacingHorizontalSNudge);}",{p:-1}],".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".fokr779{border-radius:0;}",{p:-1}],".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",[".f2ale1x::after{border-radius:0;}",{p:-1}],".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),lg=gn("r12stul0",null,[".r12stul0{align-self:stretch;box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalM);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".r12stul0::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),cg=mn({small:{uwmqm3:["f1f5gg8d","f1vdfbxk"],z189sj:["f1vdfbxk","f1f5gg8d"]},medium:{},large:{uwmqm3:["fnphzt9","flt1dlf"],z189sj:["flt1dlf","fnphzt9"]},smallWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},smallWithContentAfter:{z189sj:["ffczdla","fgiv446"]},mediumWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},mediumWithContentAfter:{z189sj:["ffczdla","fgiv446"]},largeWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},largeWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),ug=gn("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),dg=mn({disabled:{sj55zd:"f1s2aq7o"},small:{Duoase:"f3qv9w"},medium:{},large:{Duoase:"f16u2scb"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3qv9w>svg{font-size:16px;}",".f16u2scb>svg{font-size:24px;}"]}),fg=g.forwardRef((e,t)=>{const r=((e,t)=>{e=Xp(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=to();var n;const{size:o="medium",appearance:i=(null!==(n=r.inputDefaultAppearance)&&void 0!==n?n:"outline"),onChange:a}=e,[s,l]=co({state:e.value,defaultState:e.defaultValue,initialState:""}),c=Ln({props:e,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),u={size:o,appearance:i,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:wn(e.input,{defaultProps:{type:"text",ref:t,...c.primary},elementType:"input"}),contentAfter:xn(e.contentAfter,{elementType:"span"}),contentBefore:xn(e.contentBefore,{elementType:"span"}),root:wn(e.root,{defaultProps:c.root,elementType:"span"})};return u.input.value=s,u.input.onChange=vo(e=>{const t=e.target.value;null==a||a(e,{value:t}),l(t)}),u})(e,t);return(e=>{const{size:t,appearance:r}=e,n=e.input.disabled,o="true"==`${e.input["aria-invalid"]}`,i=r.startsWith("filled"),a=sg(),s=cg(),l=dg();e.root.className=Qe(rg,ag(),a[t],e.contentBefore&&a[`${t}WithContentBefore`],e.contentAfter&&a[`${t}WithContentAfter`],a[r],!n&&"outline"===r&&a.outlineInteractive,!n&&"underline"===r&&a.underlineInteractive,!n&&i&&a.filledInteractive,i&&a.filled,!n&&o&&a.invalid,n&&a.disabled,e.root.className),e.input.className=Qe(ng,lg(),s[t],e.contentBefore&&s[`${t}WithContentBefore`],e.contentAfter&&s[`${t}WithContentAfter`],n&&s.disabled,e.input.className);const c=[ug(),n&&l.disabled,l[t]];e.contentBefore&&(e.contentBefore.className=Qe(og,...c,e.contentBefore.className)),e.contentAfter&&(e.contentAfter.className=Qe(ig,...c,e.contentAfter.className))})(r),io("useInputStyles_unstable")(r),(e=>Wo(e.root,{children:[e.contentBefore&&Uo(e.contentBefore,{}),Uo(e.input,{}),e.contentAfter&&Uo(e.contentAfter,{})]}))(r)});fg.displayName="Input";const hg=bu(void 0),pg={open:!1,setOpen:()=>!1,checkedValues:{},onCheckedValueChange:()=>null,isSubmenu:!1,triggerRef:{current:null},menuPopoverRef:{current:null},mountNode:null,triggerId:"",openOnContext:!1,openOnHover:!1,hasIcons:!1,hasCheckmarks:!1,inline:!1,persistOnItemClick:!1},mg=hg.Provider,gg=e=>wu(hg,(t=pg)=>e(t)),vg=g.createContext(void 0),yg=vg.Provider,bg=bu(void 0),wg={checkedValues:{},setFocusByFirstCharacter:()=>null,toggleCheckbox:()=>null,selectRadio:()=>null,hasIcons:!1,hasCheckmarks:!1},xg=bg.Provider,Sg=e=>wu(bg,(t=wg)=>e(t)),kg="fuimenuenter";function Eg(){const e=gg(e=>e.isSubmenu),t=xu(bg);return e||t}const Tg="fuimenusafezonetimeout",_g=mn({root:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",Bcdw1i0:"fd7fpy0",Bnnss6s:"fi64zpg"},rootChecked:{Bcdw1i0:"f1022m68",Bnnss6s:"fi64zpg"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".fd7fpy0{visibility:hidden;}",".fi64zpg{flex-shrink:0;}",".f1022m68{visibility:visible;}"]}),Cg="fui-MenuItem",Ag="fui-MenuItem__icon",Ig="fui-MenuItem__checkmark",Pg="fui-MenuItem__submenuIndicator",Ng="fui-MenuItem__content",Bg="fui-MenuItem__secondaryContent",Og="fui-MenuItem__subText",Dg=gn("rfoezjv","r8lt3v0",{r:[".rfoezjv{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-right:var(--spacingVerticalSNudge);padding-left:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);padding-bottom:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".rfoezjv:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".rfoezjv:hover .fui-Icon-filled{display:inline;}",".rfoezjv:hover .fui-Icon-regular{display:none;}",".rfoezjv:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".rfoezjv:hover .fui-MenuItem__subText{color:var(--colorNeutralForeground3Hover);}",".rfoezjv:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".rfoezjv:hover:active .fui-MenuItem__subText{color:var(--colorNeutralForeground3Pressed);}",".rfoezjv:focus{outline-style:none;}",".rfoezjv:focus-visible{outline-style:none;}",".rfoezjv[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.rfoezjv[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".r8lt3v0{border-radius:var(--borderRadiusMedium);position:relative;color:var(--colorNeutralForeground2);background-color:var(--colorNeutralBackground1);padding-left:var(--spacingVerticalSNudge);padding-right:var(--spacingVerticalSNudge);padding-top:var(--spacingVerticalSNudge);padding-bottom:var(--spacingVerticalSNudge);box-sizing:border-box;max-width:290px;min-height:32px;flex-shrink:0;display:flex;align-items:start;font-size:var(--fontSizeBase300);cursor:pointer;gap:4px;-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".r8lt3v0:hover{background-color:var(--colorNeutralBackground1Hover);color:var(--colorNeutralForeground2Hover);}",".r8lt3v0:hover .fui-Icon-filled{display:inline;}",".r8lt3v0:hover .fui-Icon-regular{display:none;}",".r8lt3v0:hover .fui-MenuItem__icon{color:var(--colorNeutralForeground2BrandSelected);}",".r8lt3v0:hover .fui-MenuItem__subText{color:var(--colorNeutralForeground3Hover);}",".r8lt3v0:hover:active{background-color:var(--colorNeutralBackground1Pressed);color:var(--colorNeutralForeground2Pressed);}",".r8lt3v0:hover:active .fui-MenuItem__subText{color:var(--colorNeutralForeground3Pressed);}",".r8lt3v0:focus{outline-style:none;}",".r8lt3v0:focus-visible{outline-style:none;}",".r8lt3v0[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.r8lt3v0[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:['@media (forced-colors: active){.rfoezjv:hover{background-color:Canvas;border-color:Highlight;color:Highlight;}.rfoezjv:focus{outline-style:none;}.rfoezjv:focus-visible{outline-style:none;}.rfoezjv[data-fui-focus-visible]{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}@media (forced-colors: active){.rfoezjv[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}.rfoezjv[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid Highlight;border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}}',"@media (forced-colors: active){.rfoezjv[data-fui-focus-visible]::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}",'@media (forced-colors: active){.r8lt3v0:hover{background-color:Canvas;border-color:Highlight;color:Highlight;}.r8lt3v0:focus{outline-style:none;}.r8lt3v0:focus-visible{outline-style:none;}.r8lt3v0[data-fui-focus-visible]{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}@media (forced-colors: active){.r8lt3v0[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}.r8lt3v0[data-fui-focus-visible]::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid Highlight;border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}}',"@media (forced-colors: active){.r8lt3v0[data-fui-focus-visible]::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),Rg=gn("r1ls86vo","rpbc5dr",[".r1ls86vo{padding-left:2px;padding-right:2px;background-color:transparent;flex-grow:1;}",".rpbc5dr{padding-right:2px;padding-left:2px;background-color:transparent;flex-grow:1;}"]),Mg=gn("r12mwwux","r1ewgu5j",[".r12mwwux{padding-left:2px;padding-right:2px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);color:var(--colorNeutralForeground3);}",".r12mwwux:hover{color:var(--colorNeutralForeground3Hover);}",".r12mwwux:focus{color:var(--colorNeutralForeground3Hover);}",".r1ewgu5j{padding-right:2px;padding-left:2px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);color:var(--colorNeutralForeground3);}",".r1ewgu5j:hover{color:var(--colorNeutralForeground3Hover);}",".r1ewgu5j:focus{color:var(--colorNeutralForeground3Hover);}"]),zg=gn("ro9koqv",null,[".ro9koqv{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;flex-shrink:0;}"]),jg=gn("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),Lg=gn("rk2ppru",null,[".rk2ppru{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);color:var(--colorNeutralForeground3);}"]),Fg=mn({checkmark:{B6of3ja:"fmnzpld"},splitItemMain:{Bh6795r:"fqerorx"},splitItemTrigger:{Btl43ni:["f1ozlkrg","f10ostut"],Beyfa6y:["f1deotkl","f1krrbdw"],uwmqm3:["f1cnd47f","fhxju0i"],Ftih45:"f1wl9k8s",Ccq8qp:"f1yn80uh",Baz25je:"f68mna0",cmx5o7:"f1p5zmk"},disabled:{sj55zd:"f1s2aq7o",Bi91k9c:"fvgxktp",Jwef8y:"f1ijtazh",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bg7n49j:"f1q1x1ba",c7f7en:"ff3wrqt",B2d53fq:"fcvwxyo",iro3zm:"f1to34ca",Bumww26:"fszh5vc",t0hwav:"ft33916",Bbusuzp:"f1dcs8yz",ze5xyy:"f1kc2mi9",Bqrx1nm:"fkavljg",Bctn1xl:"fk56vqo",h5esng:"ff3wi9b",Bsk3rfj:"fduv4kr",pc6evw:"fb3rf2x",g2kj27:"f183y0b2",evg1t5:"f12is0ou",Bh6z0a4:"f1ikwg0d",Bh953qp:"f10l1t5h"}},{d:[".fmnzpld{margin-top:2px;}",".fqerorx{flex-grow:1;}",".f1ozlkrg{border-top-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f1krrbdw{border-bottom-right-radius:0;}",".f1cnd47f{padding-left:0;}",".fhxju0i{padding-right:0;}",'.f1wl9k8s::before{content:"";}',".f1yn80uh::before{width:var(--strokeWidthThin);}",".f68mna0::before{height:24px;}",".f1p5zmk::before{background-color:var(--colorNeutralStroke1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],h:[".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1ijtazh:hover{background-color:var(--colorNeutralBackground1);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1q1x1ba:hover .fui-MenuItem__icon{color:var(--colorNeutralForegroundDisabled);}",".ff3wrqt:hover .fui-MenuItem__subText{color:var(--colorNeutralForegroundDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f1to34ca:hover:active{background-color:var(--colorNeutralBackground1);}",".fszh5vc:hover:active .fui-MenuItem__subText{color:var(--colorNeutralForegroundDisabled);}"],f:[".ft33916:focus{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkavljg:hover{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fk56vqo:hover .fui-MenuItem__icon{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff3wi9b:hover .fui-MenuItem__icon{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fduv4kr:hover .fui-MenuItem__subText{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f183y0b2:hover:active{background-color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f12is0ou:hover:active .fui-MenuItem__subText{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ikwg0d:focus{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f10l1t5h:focus{background-color:Canvas;}}",{m:"(forced-colors: active)"}]]}),Vg=mn({disabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),qg=mn({content:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62"},secondaryContent:{qb2dma:"f7nlbp4"},submenuIndicator:{qb2dma:"f7nlbp4"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f7nlbp4{align-self:center;}"]}),Hg=e=>{const t=Fg(),r=Dg(),n=Rg(),o=Mg(),i=zg(),a=jg(),s=qg(),l=Lg(),c=Vg(),u=!!e.subText;return e.root.className=Qe(Cg,r,e.disabled&&t.disabled,e.root.className),e.content&&(e.content.className=Qe(Ng,n,e.content.className,u&&s.content)),e.checkmark&&(e.checkmark.className=Qe(Ig,t.checkmark,e.checkmark.className)),e.secondaryContent&&(e.secondaryContent.className=Qe(Bg,o,e.disabled&&t.disabled,e.secondaryContent.className,u&&s.secondaryContent)),e.icon&&(e.icon.className=Qe(Ag,i,e.icon.className)),e.submenuIndicator&&(e.submenuIndicator.className=Qe(Pg,a,e.submenuIndicator.className,u&&s.submenuIndicator)),e.subText&&(e.subText.className=Qe(Og,e.disabled&&c.disabled,e.subText.className,l)),(e=>{const t=_g();e.checkmark&&(e.checkmark.className=Qe(t.root,e.checked&&t.rootChecked,e.checkmark.className))})(e),e},Ug=["after","after-bottom","before-top","before","before-bottom","above"],Wg=e=>{const[t,r]=co({state:e.checkedValues,defaultState:e.defaultCheckedValues,initialState:{}});return[t,vo((t,{name:n,checkedItems:o})=>{var i;null===(i=e.onCheckedValueChange)||void 0===i||i.call(e,t,{name:n,checkedItems:o}),r(e=>({...e,[n]:o}))})]},$g=e=>{const{targetDocument:t}=Qn(),r=gg(e=>e.setOpen),n=vo((t,r)=>{var n;return null===(n=e.onOpenChange)||void 0===n?void 0:n.call(e,t,r)}),o=g.useRef(!1),[i,a]=co({state:e.open,defaultState:e.defaultOpen,initialState:!1}),s=vo((t,o)=>{const i=t instanceof CustomEvent&&t.type===kg?t.detail.nativeEvent:t;null==n||n(i,{...o}),o.open&&"contextmenu"===t.type&&e.setContextTarget(t),o.open||e.setContextTarget(void 0),o.bubble&&r(t,{...o}),a(o.open)}),[l,c]=Po(),u=vo((t,r)=>{c(),t instanceof Event||!t.persist||t.persist();var n;r.ignoreHoverDelay||"mouseleave"!==t.type&&"mouseover"!==t.type&&"mousemove"!==t.type&&t.type!==kg?s(t,r):((null===(n=e.triggerRef.current)||void 0===n?void 0:n.contains(t.target))&&(o.current="mouseover"===t.type||"mousemove"===t.type),l(()=>s(t,r),e.hoverDelay))});ko({contains:Lo,disabled:!i,element:t,refs:[e.menuPopoverRef,!e.openOnContext&&e.triggerRef].filter(Boolean),callback:e=>u(e,{open:!1,type:"clickOutside",event:e})});const d=e.openOnContext||e.closeOnScroll;Co({contains:Lo,element:t,callback:e=>u(e,{open:!1,type:"scrollOutside",event:e}),refs:[e.menuPopoverRef,!e.openOnContext&&e.triggerRef].filter(Boolean),disabled:!i||!d}),(e=>{const{refs:t,callback:r,element:n,disabled:o}=e,i=vo(e=>{const n=t[0],i=e.target;var a;!Lo(null!==(a=n.current)&&void 0!==a?a:null,i)&&!o&&r(e)});g.useEffect(()=>{if(null!=n)return o||n.addEventListener(kg,i),()=>{n.removeEventListener(kg,i)}},[i,n,o])})({element:t,callback:e=>{o.current||u(e,{open:!1,type:"menuMouseEnter",event:e})},disabled:!i,refs:[e.menuPopoverRef]});const{findFirstFocusable:f}=ps(),h=g.useCallback(()=>{const t=f(e.menuPopoverRef.current);null==t||t.focus()},[f,e.menuPopoverRef]),p=yo();return g.useEffect(()=>{var r;i?h():p||(null==t?void 0:t.activeElement)===(null==t?void 0:t.body)&&(null===(r=e.triggerRef.current)||void 0===r||r.focus())},[e.triggerRef,e.isSubmenu,i,h,t,e.menuPopoverRef]),[i,u]};const Gg=e=>{const t=(e=>{const t=Eg(),{hoverDelay:r=500,inline:n=!1,hasCheckmarks:o=!1,hasIcons:i=!1,closeOnScroll:a=!1,openOnContext:s=!1,persistOnItemClick:l=!1,openOnHover:c=t,defaultCheckedValues:u,mountNode:d=null,safeZone:f}=e,{targetDocument:h}=Qn(),p=wo("menu"),[m,v]=Rh(),y={position:t?"after":"below",align:t?"top":"start",target:e.openOnContext?m:void 0,fallbackPositions:t?Ug:void 0,...Sh(e.positioning)},b=g.Children.toArray(e.children);let w,x;2===b.length?(w=b[0],x=b[1]):1===b.length&&(x=b[0]);const{targetRef:S,containerRef:k}=Dh(y),E=f&&c,T=g.useRef({isInside:!1,mouseCoordinates:{x:0,y:0}}),_=Qh({disabled:!E,timeout:"object"==typeof f?f.timeout:300,onSafeZoneEnter:e=>{P(e,{open:!0,keyboard:!1,type:"menuSafeZoneMouseEnter",event:e}),T.current.isInside=!0},onSafeZoneLeave:()=>{T.current.isInside=!1},onSafeZoneMove:e=>{T.current.mouseCoordinates={x:e.clientX,y:e.clientY}},onSafeZoneTimeout:()=>{const e=new CustomEvent(Tg);if(P(e,{open:!1,keyboard:!1,type:"menuSafeZoneTimeout",event:e}),T.current.isInside&&h){const t=h.elementsFromPoint(T.current.mouseCoordinates.x,T.current.mouseCoordinates.y).find(e=>e.classList.contains(Cg));null==t||t.dispatchEvent(e)}}}),C=xo(S,_.targetRef),A=xo(k,_.containerRef),[I,P]=$g({hoverDelay:r,isSubmenu:t,setContextTarget:v,closeOnScroll:a,menuPopoverRef:A,triggerRef:C,open:e.open,defaultOpen:e.defaultOpen,onOpenChange:e.onOpenChange,openOnContext:s}),[N,B]=Wg({checkedValues:e.checkedValues,defaultCheckedValues:u,onCheckedValueChange:e.onCheckedValueChange});return{inline:n,hoverDelay:r,triggerId:p,isSubmenu:t,openOnHover:c,contextTarget:m,setContextTarget:v,hasCheckmarks:o,hasIcons:i,closeOnScroll:a,menuTrigger:w,menuPopover:x,mountNode:d,triggerRef:C,menuPopoverRef:A,components:{},openOnContext:s,open:I,setOpen:P,checkedValues:N,onCheckedValueChange:B,persistOnItemClick:l,safeZone:_.elementToRender}})(e),r=function(e){const{checkedValues:t,hasCheckmarks:r,hasIcons:n,inline:o,isSubmenu:i,menuPopoverRef:a,mountNode:s,onCheckedValueChange:l,open:c,openOnContext:u,openOnHover:d,persistOnItemClick:f,safeZone:h,setOpen:p,triggerId:m,triggerRef:g}=e;return{menu:{checkedValues:t,hasCheckmarks:r,hasIcons:n,inline:o,isSubmenu:i,menuPopoverRef:a,mountNode:s,onCheckedValueChange:l,open:c,openOnContext:u,openOnHover:d,persistOnItemClick:f,safeZone:h,setOpen:p,triggerId:m,triggerRef:g}}}(t);return((e,t)=>g.createElement(mg,{value:t.menu},e.menuTrigger,e.open&&e.menuPopover))(t,r)};Gg.displayName="Menu";const Yg=g.createContext(void 0),Kg={setMultiline:()=>null};Yg.Provider;const Xg=()=>{var e;return null!==(e=g.useContext(Yg))&&void 0!==e?e:Kg},Jg=()=>Xg()!==Kg,Qg=Ed(od,id),Zg=Ed(rd,nd),ev=(e,t)=>{const r=null!==(n=g.useContext(vg))&&void 0!==n&&n;var n;const o=gg(e=>e.persistOnItemClick),{as:i="div",disabled:a=!1,hasSubmenu:s=r,persistOnClick:l=o,content:c,...u}=e,{hasIcons:d,hasCheckmarks:f}=rv({hasSubmenu:s}),h=gg(e=>e.setOpen);tv({multiline:!!e.subText,hasSubmenu:s});const{dir:p}=Qn(),m=g.useRef(null),v=g.useRef(!1),y={hasSubmenu:s,disabled:a,persistOnClick:l,components:{root:"div",icon:"span",checkmark:"span",submenuIndicator:"span",content:"span",secondaryContent:"span",subText:"span"},root:wn(Fn(i,Ou(i,{role:"menuitem",...u,disabled:!1,disabledFocusable:a,ref:xo(t,m),onKeyDown:vo(t=>{var r;null===(r=e.onKeyDown)||void 0===r||r.call(e,t),t.isDefaultPrevented()||t.key!==ku&&t.key!==Su||(v.current=!0)}),onMouseMove:vo(t=>{var r,n;t.currentTarget.ownerDocument.activeElement!==t.currentTarget&&(null===(n=m.current)||void 0===n||n.focus());null===(r=e.onMouseMove)||void 0===r||r.call(e,t)}),onClick:vo(t=>{var r;s||l||(h(t,{open:!1,keyboard:v.current,bubble:!0,type:"menuItemClick",event:t}),v.current=!1),null===(r=e.onClick)||void 0===r||r.call(e,t)})})),{elementType:"div"}),icon:xn(e.icon,{renderByDefault:d,elementType:"span"}),checkmark:xn(e.checkmark,{renderByDefault:f,elementType:"span"}),submenuIndicator:xn(e.submenuIndicator,{renderByDefault:s,defaultProps:{children:"ltr"===p?g.createElement(Qg,null):g.createElement(Zg,null)},elementType:"span"}),content:xn(e.content,{renderByDefault:!!e.children,defaultProps:{children:e.children},elementType:"span"}),secondaryContent:xn(e.secondaryContent,{elementType:"span"}),subText:xn(e.subText,{elementType:"span"})};return((e,t)=>{const r=Sg(e=>e.setFocusByFirstCharacter),{onKeyDown:n}=e.root;e.root.onKeyDown=e=>{var o;null==n||n(e),(null===(o=e.key)||void 0===o?void 0:o.length)>1||t.current&&(null==r||r(e,t.current))}})(y,m),y},tv=e=>{const{hasSubmenu:t,multiline:r}=e,n=Jg()&&t,{setMultiline:o}=Xg();go(()=>{n||o(r)},[o,r,n])},rv=e=>{const{hasSubmenu:t}=e,r=Sg(e=>e.hasIcons),n=Sg(e=>e.hasCheckmarks),o=Jg()&&t;return{hasIcons:r&&!o,hasCheckmarks:n&&!o}},nv=g.forwardRef((e,t)=>{const r=ev(e,t);return Hg(r),io("useMenuItemStyles_unstable")(r),(e=>Wo(e.root,{children:[e.checkmark&&Uo(e.checkmark,{}),e.icon&&Uo(e.icon,{}),e.content&&Wo(e.content,{children:[e.content.children,e.subText&&Uo(e.subText,{})]}),e.secondaryContent&&Uo(e.secondaryContent,{}),e.submenuIndicator&&Uo(e.submenuIndicator,{})]}))(r)});nv.displayName="MenuItem";const ov=()=>({checkedValues:gg(e=>e.checkedValues),onCheckedValueChange:gg(e=>e.onCheckedValueChange),triggerId:gg(e=>e.triggerId),hasIcons:gg(e=>e.hasIcons),hasCheckmarks:gg(e=>e.hasCheckmarks)}),iv=(e,t,r)=>{let n=!1;for(const o in t)e[o]&&(n=!0);return r&&n};const av="fui-MenuList",sv=mn({root:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",i8kkvl:0,Belr9w4:0,rmohyg:"f1t6b6ee"},hasMenuContext:{Bqenvij:"f1l02sjl"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",[".f1t6b6ee{gap:2px;}",{p:-1}],".f1l02sjl{height:100%;}"]}),lv=g.forwardRef((e,t)=>{const r=((e,t)=>{const{findAllFocusable:r}=ps(),{targetDocument:n}=Qn(),o=ov(),i=xu(hg),a=fs({circular:!0});iv(e,o,i)&&console.warn("You are using both MenuList and Menu props, we recommend you to use Menu props when available");const s=g.useRef(null);g.useEffect(()=>{const e=s.current;if(i&&n&&e){const t=t=>{const r=t.detail.next;r&&e.contains(n.activeElement)&&!e.contains(r)&&t.preventDefault()};return n.addEventListener(Bi,t),()=>{n.removeEventListener(Bi,t)}}},[s,n,i]);const l=g.useCallback((e,t)=>{const n=["menuitem","menuitemcheckbox","menuitemradio"];if(!s.current)return;const o=r(s.current,e=>e.hasAttribute("role")&&-1!==n.indexOf(e.getAttribute("role")));let i=o.indexOf(t)+1;i===o.length&&(i=0);const a=o.map(e=>{var t;return null===(t=e.textContent)||void 0===t?void 0:t.charAt(0).toLowerCase()}),l=e.key.toLowerCase(),c=(e,t)=>{for(let r=e;r<a.length;r++)if(l===a[r])return r;return-1};let u=c(i);-1===u&&(u=c(0)),u>-1&&o[u].focus()},[r]);var c;const[u,d]=co({state:null!==(c=e.checkedValues)&&void 0!==c?c:i?o.checkedValues:void 0,defaultState:e.defaultCheckedValues,initialState:{}});var f;const h=null!==(f=e.onCheckedValueChange)&&void 0!==f?f:i?o.onCheckedValueChange:void 0,p=vo((e,t,r,n)=>{const o=[...(null==u?void 0:u[t])||[]];n?o.splice(o.indexOf(r),1):o.push(r),null==h||h(e,{name:t,checkedItems:o}),d(e=>({...e,[t]:o}))}),m=vo((e,t,r)=>{const n=[r];d(e=>({...e,[t]:n})),null==h||h(e,{name:t,checkedItems:n})});return{components:{root:"div"},root:wn(Fn("div",{ref:xo(t,s),role:"menu","aria-labelledby":o.triggerId,...a,...e}),{elementType:"div"}),hasIcons:o.hasIcons||!1,hasCheckmarks:o.hasCheckmarks||!1,checkedValues:u,hasMenuContext:i,setFocusByFirstCharacter:l,selectRadio:m,toggleCheckbox:p}})(e,t),n=function(e){const{checkedValues:t,hasCheckmarks:r,hasIcons:n,selectRadio:o,setFocusByFirstCharacter:i,toggleCheckbox:a}=e;return{menuList:{checkedValues:t,hasCheckmarks:r,hasIcons:n,selectRadio:o,setFocusByFirstCharacter:i,toggleCheckbox:a}}}(r);return(e=>{const t=sv();e.root.className=Qe(av,t.root,e.hasMenuContext&&t.hasMenuContext,e.root.className)})(r),io("useMenuListStyles_unstable")(r),((e,t)=>Uo(xg,{value:t.menuList,children:Uo(e.root,{})}))(r,n)});lv.displayName="MenuList";const cv=(e,t)=>{const r=gg(e=>e.safeZone),n=gg(e=>e.menuPopoverRef),o=gg(e=>e.setOpen),i=gg(e=>e.open),a=gg(e=>e.openOnHover),s=gg(e=>e.triggerRef),l=Eg(),c=g.useRef(!0),u=(us(ss),Ea({restorer:{type:pi}})),[d,f]=Po(),{dir:h}=Qn(),p="ltr"===h?Tu:_u,m=g.useCallback(e=>{e&&e.addEventListener("mouseover",e=>{var t,r;c.current&&(c.current=!1,t=n.current,r=e,t.dispatchEvent(new CustomEvent(kg,{bubbles:!0,detail:{nativeEvent:r}})),d(()=>{c.current=!0},250))})},[n,d]);var v;g.useEffect(()=>()=>f(),[f]);const y=null!==(v=gg(e=>e.inline))&&void 0!==v&&v,b=gg(e=>e.mountNode),w=wn(Fn("div",{role:"presentation",...u,...e,ref:xo(t,n,m)}),{elementType:"div"}),{onMouseEnter:x,onKeyDown:S}=w;return w.onMouseEnter=vo(e=>{(a||l)&&o(e,{open:!0,keyboard:!1,type:"menuPopoverMouseEnter",event:e}),null==x||x(e)}),w.onKeyDown=vo(e=>{const t=e.key;var r,a;(t===Bu||l&&t===p)&&(i&&(null===(r=n.current)||void 0===r?void 0:r.contains(e.target))&&!e.isDefaultPrevented()&&(o(e,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:e}),e.preventDefault()));"Tab"===t&&(o(e,{open:!1,keyboard:!0,type:"menuPopoverKeyDown",event:e}),l||null===(a=s.current)||void 0===a||a.focus());null==S||S(e)}),{inline:y,mountNode:b,safeZone:r,components:{root:"div"},root:w}},uv="fui-MenuPopover",dv=mn({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",De3pzq:"fxugw4r",sj55zd:"f19n0e5",B7ck84d:"f1ewtqcl",Bf4jedk:"fl8fusi",B2u0y6b:"f1kaai3v",B68tc82:"f1p9o1ba",a9b677:"f1ahpp82",E5pizo:"f1hg901r",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fd3pd8h",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f9ggezi",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",B93otf3:"f18k4bn6",vin17d:"fo1kyvf",Ezkn3b:"fetxo7e",nyiy2g:"f8x1vz1",swvrvq:"f8g0anz",Bkovbt3:"fezwn9i",hgjdhn:"fz5efge",fsy9dk:"f1ydixl4",B3ogreh:"f8dgqj5",jv49x5:"fnyfnr8",Bk7o48c:"fgw77r4",Bv12yb3:"f1noc5he",z0t1cu:"fi19xcv",Bks05zx:"f1mxk9aa",Bvtglag:"ffzg62k"}},{d:[[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ewtqcl{box-sizing:border-box;}",".fl8fusi{min-width:138px;}",".f1kaai3v{max-width:300px;}",".f1p9o1ba{overflow-x:hidden;}",".f1ahpp82{width:max-content;}",".f1hg901r{box-shadow:var(--shadow16);}",[".fd3pd8h{padding:4px;}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f18k4bn6{animation-composition:accumulate;}",".fo1kyvf{animation-duration:var(--durationSlower);}",".fetxo7e{animation-timing-function:var(--curveDecelerateMid);}",".f8x1vz1{--fui-positioning-slide-distance-x:0px;}",".f8g0anz{--fui-positioning-slide-distance-y:10px;}",".fezwn9i[data-popper-placement^=right]{--fui-positioning-slide-distance-x:-10px;}",".fz5efge[data-popper-placement^=right]{--fui-positioning-slide-distance-y:0px;}",".f1ydixl4[data-popper-placement^=bottom]{--fui-positioning-slide-distance-x:0px;}",".f8dgqj5[data-popper-placement^=bottom]{--fui-positioning-slide-distance-y:-10px;}",".fnyfnr8[data-popper-placement^=left]{--fui-positioning-slide-distance-x:10px;}",".fgw77r4[data-popper-placement^=left]{--fui-positioning-slide-distance-y:0px;}",".f1noc5he{animation-name:f1m0q9mo,f79suad;}"],k:["@keyframes f1m0q9mo{from{opacity:-1;}to{opacity:0;}}","@keyframes f79suad{from{transform:translate(var(--fui-positioning-slide-distance-x), var(--fui-positioning-slide-distance-y));}}"],m:[["@media (prefers-reduced-motion){.fi19xcv[data-popper-placement]{animation-duration:1ms;}}",{m:"(prefers-reduced-motion)"}],["@media (prefers-reduced-motion){.f1mxk9aa[data-popper-placement]{animation-name:f1m0q9mo;}}",{m:"(prefers-reduced-motion)"}]],t:["@supports not (animation-composition: accumulate){.ffzg62k[data-popper-placement]{animation-name:f1m0q9mo;}}"]}),fv=g.forwardRef((e,t)=>{const r=cv(e,t);return(e=>{const t=dv();e.root.className=Qe(uv,t.root,e.root.className)})(r),io("useMenuPopoverStyles_unstable")(r),(e=>e.inline?Wo(g.Fragment,{children:[Uo(e.root,{}),e.safeZone]}):Wo(cp,{mountNode:e.mountNode,children:[Uo(e.root,{}),e.safeZone]}))(r)});function hv(){}fv.displayName="MenuPopover";const pv=e=>{const{children:t,disableButtonEnhancement:r=!1}=e,n=gg(e=>e.triggerRef),o=gg(e=>e.menuPopoverRef),i=gg(e=>e.setOpen),a=gg(e=>e.open),s=gg(e=>e.triggerId),l=gg(e=>e.openOnHover),c=gg(e=>e.openOnContext),u=Eg(),{findFirstFocusable:d}=ps(),f=g.useCallback(()=>{const e=d(o.current);null==e||e.focus()},[d,o]),h=g.useRef(!1),p=g.useRef(!1),m=g.useRef(!1),{dir:v}=Qn(),y="ltr"===v?_u:Tu,b=zo(t),w=(e=>{const t=g.useRef(null);return g.useCallback(r=>{var n;null===(n=t.current)||void 0===n||n.removeEventListener(Tg,e),null==r||r.addEventListener(Tg,e),t.current=r},[e])})(vo(()=>{u&&(p.current=!0)}));var x;const S={id:s,...null==b?void 0:b.props,ref:xo(n,null==b?void 0:b.ref,w),onMouseEnter:vo(null!==(x=null==b?void 0:b.props.onMouseEnter)&&void 0!==x?x:hv),onMouseLeave:vo(Bo(null==b?void 0:b.props.onMouseLeave,e=>{mv(e)||l&&i(e,{open:!1,keyboard:!1,type:"menuTriggerMouseLeave",event:e})})),onContextMenu:vo(Bo(null==b?void 0:b.props.onContextMenu,e=>{mv(e)||e.isDefaultPrevented()||c&&(e.preventDefault(),i(e,{open:!0,keyboard:!1,type:"menuTriggerContextMenu",event:e}))})),onMouseMove:vo(Bo(null==b?void 0:b.props.onMouseMove,e=>{mv(e)||l&&!m.current&&(i(e,{open:!0,keyboard:!1,type:"menuTriggerMouseMove",event:e}),m.current=!0)})),onMouseOver:vo(Bo(null==b?void 0:b.props.onMouseOver,e=>{mv(e)||l&&(m.current?i(e,{open:!0,keyboard:!1,type:"menuTriggerMouseEnter",event:e}):p.current&&(i(e,{open:!0,keyboard:!1,ignoreHoverDelay:!0,type:"menuTriggerMouseEnter",event:e}),p.current=!1))}))},k={"aria-haspopup":"menu","aria-expanded":a||u?a:void 0,...S,onClick:vo(Bo(null==b?void 0:b.props.onClick,e=>{mv(e)||c||(i(e,{open:!a,keyboard:h.current,type:"menuTriggerClick",event:e}),h.current=!1)})),onKeyDown:vo(Bo(null==b?void 0:b.props.onKeyDown,e=>{if(mv(e)||e.isDefaultPrevented())return;const t=e.key;!c&&(u&&t===y||!u&&t===Eu)&&i(e,{open:!0,keyboard:!0,type:"menuTriggerKeyDown",event:e}),t!==Bu||u||i(e,{open:!1,keyboard:!0,type:"menuTriggerKeyDown",event:e}),a&&t===y&&u&&f()}))},E=Ou("button"===(null==b?void 0:b.type)||"a"===(null==b?void 0:b.type)?b.type:"div",k);return{isSubmenu:u,children:Ro(t,c?S:r?k:E)}},mv=e=>{const t=e=>e.hasAttribute("disabled")||e.hasAttribute("aria-disabled")&&"true"===e.getAttribute("aria-disabled");return!(!Oo(e.target)||!t(e.target))||Oo(e.currentTarget)&&t(e.currentTarget)},gv=e=>(e=>g.createElement(yg,{value:e.isSubmenu},e.children))(pv(e));gv.displayName="MenuTrigger",gv.isFluentTriggerComponent=!0;const vv=g.createContext(void 0),yv={};vv.Provider;const bv="fui-RadioGroup",wv=mn({root:{mc9l5x:"f22iagw",Bt984gj:"f6jr5hl"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f6jr5hl{align-items:flex-start;}",".f1vx9l62{flex-direction:column;}"]}),xv=g.forwardRef((e,t)=>{const r=((e,t)=>{e=Xp(e);const r=wo("radiogroup-"),{name:n=r,value:o,defaultValue:i,disabled:a,layout:s="vertical",onChange:l,required:c}=e;return{layout:s,name:n,value:o,defaultValue:i,disabled:a,required:c,components:{root:"div"},root:{ref:t,role:"radiogroup",...wn(Fn("div",e,["onChange","name"]),{elementType:"div"}),onChange:vo(e=>{l&&Oo(e.target,{constructorName:"HTMLInputElement"})&&"radio"===e.target.type&&l(e,{value:e.target.value})})}}})(e,t),n=(e=>{const{name:t,value:r,defaultValue:n,disabled:o,layout:i,required:a}=e,s=e.root["aria-describedby"];return{radioGroup:g.useMemo(()=>({name:t,value:r,defaultValue:n,disabled:o,layout:i,required:a,"aria-describedby":s}),[t,r,n,o,i,a,s])}})(r);return(e=>{const t=wv();e.root.className=Qe(bv,t.root,"vertical"===e.layout&&t.vertical,e.root.className)})(r),io("useRadioGroupStyles_unstable")(r),((e,t)=>Uo(vv.Provider,{value:t.radioGroup,children:Uo(e.root,{})}))(r,n)});xv.displayName="RadioGroup";const Sv=(e,t)=>{const r=g.useContext(vv)||yv,{name:n=r.name,checked:o=(void 0!==r.value?r.value===e.value:void 0),defaultChecked:i=(void 0!==r.defaultValue?r.defaultValue===e.value:void 0),labelPosition:a=("horizontal-stacked"===r.layout?"below":"after"),disabled:s=r.disabled,required:l=r.required,"aria-describedby":c=r["aria-describedby"],onChange:u}=e,d=Ln({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),f=wn(e.root,{defaultProps:{ref:Ts(),...d.root},elementType:"span"}),h=wn(e.input,{defaultProps:{ref:t,type:"radio",id:wo("radio-",d.primary.id),name:n,checked:o,defaultChecked:i,disabled:s,required:l,"aria-describedby":c,...d.primary},elementType:"input"});h.onChange=Bo(h.onChange,e=>null==u?void 0:u(e,{value:e.currentTarget.value}));const p=xn(e.label,{defaultProps:{htmlFor:h.id,disabled:h.disabled},elementType:em}),m=wn(e.indicator,{defaultProps:{"aria-hidden":!0},elementType:"div"});return{labelPosition:a,components:{root:"span",input:"input",label:em,indicator:"div"},root:f,input:h,label:p,indicator:m}},kv="fui-Radio",Ev="fui-Radio__indicator",Tv="fui-Radio__input",_v="fui-Radio__label",Cv=gn("r1siqwd8","rmnplyc",{r:[".r1siqwd8{display:inline-flex;position:relative;}",".r1siqwd8:focus{outline-style:none;}",".r1siqwd8:focus-visible{outline-style:none;}",".r1siqwd8[data-fui-focus-within]:focus-within{border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent;}",'.r1siqwd8[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);right:calc(2px * -1);bottom:calc(2px * -1);left:calc(2px * -1);}',".rmnplyc{display:inline-flex;position:relative;}",".rmnplyc:focus{outline-style:none;}",".rmnplyc:focus-visible{outline-style:none;}",".rmnplyc[data-fui-focus-within]:focus-within{border-top-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;}",'.rmnplyc[data-fui-focus-within]:focus-within::after{content:"";position:absolute;pointer-events:none;z-index:1;border:2px solid var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);top:calc(2px * -1);left:calc(2px * -1);bottom:calc(2px * -1);right:calc(2px * -1);}'],s:["@media (forced-colors: active){.r1siqwd8[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-right-color:Highlight;border-bottom-color:Highlight;border-left-color:Highlight;}}","@media (forced-colors: active){.rmnplyc[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;border-left-color:Highlight;border-bottom-color:Highlight;border-right-color:Highlight;}}"]}),Av=mn({vertical:{Beiy3e4:"f1vx9l62",Bt984gj:"f122n59"}},{d:[".f1vx9l62{flex-direction:column;}",".f122n59{align-items:center;}"]}),Iv=gn("rg1upok","rzwdzb4",{r:[".rg1upok{position:absolute;left:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".rg1upok:enabled{cursor:pointer;}",".rg1upok:enabled~.fui-Radio__label{cursor:pointer;}",".rg1upok:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".rg1upok:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".rg1upok:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".rg1upok:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".rg1upok:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rg1upok:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rg1upok:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rg1upok:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".rg1upok:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".rg1upok:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".rg1upok:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".rg1upok:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}",".rzwdzb4{position:absolute;right:0;top:0;width:calc(16px + 2 * var(--spacingHorizontalS));height:100%;box-sizing:border-box;margin:0;opacity:0;}",".rzwdzb4:enabled{cursor:pointer;}",".rzwdzb4:enabled~.fui-Radio__label{cursor:pointer;}",".rzwdzb4:enabled:not(:checked)~.fui-Radio__label{color:var(--colorNeutralForeground3);}",".rzwdzb4:enabled:not(:checked)~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessible);}",".rzwdzb4:enabled:not(:checked):hover~.fui-Radio__label{color:var(--colorNeutralForeground2);}",".rzwdzb4:enabled:not(:checked):hover~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessibleHover);}",".rzwdzb4:enabled:not(:checked):hover:active~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rzwdzb4:enabled:not(:checked):hover:active~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeAccessiblePressed);}",".rzwdzb4:enabled:checked~.fui-Radio__label{color:var(--colorNeutralForeground1);}",".rzwdzb4:enabled:checked~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStroke);color:var(--colorCompoundBrandForeground1);}",".rzwdzb4:enabled:checked:hover~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokeHover);color:var(--colorCompoundBrandForeground1Hover);}",".rzwdzb4:enabled:checked:hover:active~.fui-Radio__indicator{border-color:var(--colorCompoundBrandStrokePressed);color:var(--colorCompoundBrandForeground1Pressed);}",".rzwdzb4:disabled~.fui-Radio__label{color:var(--colorNeutralForegroundDisabled);cursor:default;}",".rzwdzb4:disabled~.fui-Radio__indicator{border-color:var(--colorNeutralStrokeDisabled);color:var(--colorNeutralForegroundDisabled);}"],s:["@media (forced-colors: active){.rg1upok:enabled:not(:checked)~.fui-Radio__indicator{border-color:ButtonBorder;}}","@media (forced-colors: active){.rg1upok:enabled:checked~.fui-Radio__indicator{border-color:Highlight;color:Highlight;}.rg1upok:enabled:checked~.fui-Radio__indicator::after{background-color:Highlight;}}","@media (forced-colors: active){.rg1upok:disabled~.fui-Radio__label{color:GrayText;}}","@media (forced-colors: active){.rg1upok:disabled~.fui-Radio__indicator{border-color:GrayText;color:GrayText;}.rg1upok:disabled~.fui-Radio__indicator::after{background-color:GrayText;}}","@media (forced-colors: active){.rzwdzb4:enabled:not(:checked)~.fui-Radio__indicator{border-color:ButtonBorder;}}","@media (forced-colors: active){.rzwdzb4:enabled:checked~.fui-Radio__indicator{border-color:Highlight;color:Highlight;}.rzwdzb4:enabled:checked~.fui-Radio__indicator::after{background-color:Highlight;}}","@media (forced-colors: active){.rzwdzb4:disabled~.fui-Radio__label{color:GrayText;}}","@media (forced-colors: active){.rzwdzb4:disabled~.fui-Radio__indicator{border-color:GrayText;color:GrayText;}.rzwdzb4:disabled~.fui-Radio__indicator::after{background-color:GrayText;}}"]}),Pv=mn({below:{a9b677:"fly5x3f",Bqenvij:"f1je6zif"},defaultIndicator:{Blbys7f:"f9ma1gx"},customIndicator:{Bj53wkj:"f12zxao0"}},{d:[".fly5x3f{width:100%;}",".f1je6zif{height:calc(16px + 2 * var(--spacingVerticalS));}",'.f9ma1gx:checked~.fui-Radio__indicator::after{content:"";}',".f12zxao0:not(:checked)~.fui-Radio__indicator>*{opacity:0;}"]}),Nv=gn("rwtekvw",null,[".rwtekvw{position:relative;width:16px;height:16px;font-size:12px;box-sizing:border-box;flex-shrink:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:var(--strokeWidthThin) solid;border-radius:var(--borderRadiusCircular);margin:var(--spacingVerticalS) var(--spacingHorizontalS);fill:currentColor;pointer-events:none;}",".rwtekvw::after{position:absolute;width:16px;height:16px;border-radius:var(--borderRadiusCircular);transform:scale(0.625);background-color:currentColor;}"]),Bv=mn({base:{qb2dma:"f7nlbp4",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1f5q0n8"},after:{uwmqm3:["fruq291","f7x41pl"],B6of3ja:"fjzwpt6",jrapky:"fh6j2fo"},below:{z8tnut:"f1ywm7hm",fsow6f:"f17mccla"}},{d:[".f7nlbp4{align-self:center;}",[".f1f5q0n8{padding:var(--spacingVerticalS) var(--spacingHorizontalS);}",{p:-1}],".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}",".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f17mccla{text-align:center;}"]}),Ov=g.forwardRef((e,t)=>{const r=Sv(e,t);return(e=>{const{labelPosition:t}=e,r=Cv(),n=Av();e.root.className=Qe(kv,r,"below"===t&&n.vertical,e.root.className);const o=Iv(),i=Pv();e.input.className=Qe(Tv,o,"below"===t&&i.below,e.indicator.children?i.customIndicator:i.defaultIndicator,e.input.className);const a=Nv();e.indicator.className=Qe(Ev,a,e.indicator.className);const s=Bv();e.label&&(e.label.className=Qe(_v,s.base,s[t],e.label.className))})(r),io("useRadioStyles_unstable")(r),(e=>Wo(e.root,{children:[Uo(e.input,{}),Uo(e.indicator,{}),e.label&&Uo(e.label,{})]}))(r)});Ov.displayName="Radio";const Dv=(e,t,r)=>{let n=e;if(void 0!==t){if(void 0!==r&&t>r)return e;n=Math.max(t,n)}return void 0!==r&&(n=Math.min(r,n)),n},Rv=(e,t,r)=>void 0!==t&&e===t?r===t?"both":"min":void 0!==r&&e===r?"max":"none";function Mv(e,t,r=10){const n=Math.pow(r,t);return Math.round(e*n)/n}const zv=(e,t)=>{e=Xp(e,{supportsLabelFor:!0,supportsRequired:!0});const r=Ln({props:e,primarySlotTagName:"input",excludedPropNames:["defaultValue","max","min","onChange","size","value"]}),n=to();var o;const{value:i,displayValue:a,defaultValue:s,min:l,max:c,step:u=1,stepPage:d=1,precision:f,onChange:h,size:p="medium",appearance:m=(null!==(o=n.inputDefaultAppearance)&&void 0!==o?o:"outline"),root:v,input:y,incrementButton:b,decrementButton:w}=e,x=g.useMemo(()=>null!=f?f:Math.max(function(e){const t=/[1-9]([0]+$)|\.([0-9]*)/.exec(String(e));return t?t[1]?-t[1].length:t[2]?t[2].length:0:0}(u),0),[f,u]),[S,k]=co({state:i,defaultState:s,initialState:0}),E=g.useRef(null),T=void 0!==i,[_,C]=g.useState(void 0),[A,I]=g.useState("rest"),P=g.useRef({value:S,spinState:"rest",spinTime:0,spinDelay:150,atBound:null!==S?Rv(Mv(S,x),l,c):"none"}),[N,B]=Po(),O=(e,t,r)=>{let n=P.current.value;if(r){const e=parseFloat(r);isNaN(e)||(n=e)}const o=n,i="up"===t||"upPage"===t?1:-1,a="upPage"===t||"downPage"===t?d:u;if(null===o){const t=Dv((void 0===l?0:l)+a*i,l,c);return void M(e,t)}let s=o+a*i;Number.isNaN(s)||(s=Dv(s,l,c)),M(e,s),"rest"!==P.current.spinState&&N(()=>{var r,n,o;P.current.spinTime+=P.current.spinDelay,P.current.spinDelay=(r=150,n=80,o=P.current.spinTime/1e3,r+(n-r)*o),O(e,t)},P.current.spinDelay)},D=e=>{P.current.previousTextValue||(P.current.previousTextValue=null!=_?_:String(S));const t=e.target.value;C(t),E.current&&(E.current.ariaValueNow=t)},R=e=>{B(),P.current.spinState="rest",P.current.spinDelay=150,P.current.spinTime=0},M=(e,t,r)=>{const n=void 0!==t&&S!==t,o=void 0!==r&&void 0!==P.current.previousTextValue&&P.current.previousTextValue!==r;let i;if(n)i=Mv(t,x),k(i),P.current.value=i;else if(o&&!T){const e=parseFloat(r);isNaN(e)||(k(Mv(e,x)),P.current.value=Mv(e,x))}(n||o)&&(null==h||h(e,{value:i,displayValue:r})),C(void 0)};let z;if(void 0!==_)z=_;else if(null===i||null===S)z=null!=a?a:"",P.current.value=null,P.current.atBound="none";else{const e=Mv(S,x);P.current.value=e,P.current.atBound=Rv(e,l,c),z=T&&null!=a?a:String(e)}const j={size:p,appearance:m,spinState:A,atBound:P.current.atBound,components:{root:"span",input:"input",incrementButton:"button",decrementButton:"button"},root:wn(v,{defaultProps:r.root,elementType:"span"}),input:wn(y,{defaultProps:{autoComplete:"off",role:"spinbutton",appearance:m,type:"text",...r.primary},elementType:"input"}),incrementButton:wn(b,{defaultProps:{tabIndex:-1,children:g.createElement(vd,null),disabled:r.primary.disabled||"max"===P.current.atBound||"both"===P.current.atBound,"aria-label":"Increment value",type:"button"},elementType:"button"}),decrementButton:wn(w,{defaultProps:{tabIndex:-1,children:g.createElement(pd,null),disabled:r.primary.disabled||"min"===P.current.atBound||"both"===P.current.atBound,"aria-label":"Decrement value",type:"button"},elementType:"button"})};var L,F;return j.input.value=z,j.input.ref=xo(E,t),j.input["aria-valuemin"]=l,j.input["aria-valuemax"]=c,j.input["aria-valuenow"]=null!==(L=P.current.value)&&void 0!==L?L:void 0,j.input["aria-valuetext"]=null!==(F=j.input["aria-valuetext"])&&void 0!==F?F:void 0!==i&&a||void 0,j.input.onChange=Bo(j.input.onChange,D),j.input.onInput=Bo(j.input.onInput,D),j.input.onBlur=Bo(j.input.onBlur,e=>{M(e,S,_),P.current.previousTextValue=void 0}),j.input.onKeyDown=Bo(j.input.onKeyDown,e=>{let t="rest";e.key===Cu?(O(e,"up",_),t="up"):e.key===Eu?(O(e,"down",_),t="down"):e.key===Pu?(e.preventDefault(),O(e,"upPage",_),t="up"):e.key===Iu?(e.preventDefault(),O(e,"downPage",_),t="down"):e.shiftKey||e.key!==Au||void 0===l?e.shiftKey||"End"!==e.key||void 0===c?e.key===Su?(M(e,S,_),P.current.previousTextValue=void 0):e.key===Bu&&P.current.previousTextValue&&(C(void 0),P.current.previousTextValue=void 0):(M(e,c),t="up"):(M(e,l),t="down"),A!==t&&I(t)}),j.input.onKeyUp=Bo(j.input.onKeyUp,e=>{"rest"!==A&&(I("rest"),P.current.spinState="rest")}),j.incrementButton.onMouseDown=Bo(e=>{M(e,S,_),P.current.spinState="up",O(e,"up")},j.incrementButton.onMouseDown),j.incrementButton.onMouseUp=Bo(j.incrementButton.onMouseUp,R),j.incrementButton.onMouseLeave=Bo(j.incrementButton.onMouseLeave,R),j.decrementButton.onMouseDown=Bo(e=>{M(e,S,_),P.current.spinState="down",O(e,"down")},j.decrementButton.onMouseDown),j.decrementButton.onMouseUp=Bo(j.decrementButton.onMouseUp,R),j.decrementButton.onMouseLeave=Bo(j.decrementButton.onMouseLeave,R),j},jv="fui-SpinButton",Lv="fui-SpinButton__input",Fv="fui-SpinButton__incrementButton",Vv="fui-SpinButton__decrementButton",qv="fui-SpinButton__button_active",Hv=gn("r109xulx","r1h2jnch",{r:[".r109xulx{display:inline-grid;grid-template-columns:1fr 24px;grid-template-rows:1fr 1fr;column-gap:var(--spacingHorizontalXS);row-gap:0;position:relative;isolation:isolate;vertical-align:middle;background-color:var(--colorNeutralBackground1);min-height:32px;padding:0 0 0 var(--spacingHorizontalMNudge);border-radius:var(--borderRadiusMedium);}",'.r109xulx::before{content:"";box-sizing:border-box;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:10;border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);border-radius:var(--borderRadiusMedium);}','.r109xulx::after{box-sizing:border-box;content:"";position:absolute;right:0;bottom:0;left:0;z-index:20;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r109xulx:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r109xulx:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r109xulx:focus-within{outline:2px solid transparent;}",".r1h2jnch{display:inline-grid;grid-template-columns:1fr 24px;grid-template-rows:1fr 1fr;column-gap:var(--spacingHorizontalXS);row-gap:0;position:relative;isolation:isolate;vertical-align:middle;background-color:var(--colorNeutralBackground1);min-height:32px;padding:0 var(--spacingHorizontalMNudge) 0 0;border-radius:var(--borderRadiusMedium);}",'.r1h2jnch::before{content:"";box-sizing:border-box;position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none;z-index:10;border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);border-radius:var(--borderRadiusMedium);}','.r1h2jnch::after{box-sizing:border-box;content:"";position:absolute;left:0;bottom:0;right:0;z-index:20;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1h2jnch:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1h2jnch:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1h2jnch:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r109xulx::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r109xulx:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1h2jnch::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1h2jnch:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),Uv=mn({small:{sshi5w:"f1pha7fy",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",uwmqm3:["f1f5gg8d","f1vdfbxk"]},medium:{},outline:{},outlineInteractive:{Bo3r8zu:"f1w2y1rc",Hpvxnh:["f1gofhvl","f18htlvq"],Bx11ytk:"ffcnd28",B1rg0w0:["f18htlvq","f1gofhvl"],Bsg1tlv:"f6lmxco",Brjw370:["fcoc0mf","f15r4wkl"],xcfy85:"f1ipdth8",Bcc6kan:["f15r4wkl","fcoc0mf"]},underline:{B0qfbqy:"f1o236ok",B4f6apu:["faeg28l","f64aojp"],y0oebl:"fdw6hkg",uvfttm:["f64aojp","faeg28l"],r59vdv:0,Budzafs:0,ck0cow:0,n07z76:0,Gng75u:"f1xyh2jw"},underlineInteractive:{Bx11ytk:"ffcnd28",xcfy85:"f1ipdth8",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"fkp7w9h"},filled:{Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f1kc0wz4"},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},filledInteractive:{B05mzqr:"f1xqt08",tb9y6h:["fzt5lgo","f8tv3r9"],jcehpj:"fyhrops",B23o0hn:["f8tv3r9","fzt5lgo"]},invalid:{emecyz:"fl48pg9",lz0pba:["f1a168p3","f1pvdymy"],Bo1k74p:"f11knvgl",Ba322q7:["f1pvdymy","f1a168p3"]},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",Bq4z7u6:"f1a0lfh7",Bk5zm6e:["f1p2ejm6","fmzytvz"],Bqjgrrk:"fas2e61",Bm6vgfq:["fmzytvz","f1p2ejm6"],Cffpyd:"flb8es4",hxi8he:["f1lclws","frjp63v"],Bcuq369:"f1yv9wnt",Imo2if:["frjp63v","f1lclws"]}},{d:[".f1pha7fy{min-height:24px;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1o236ok::before{border-top-width:0;}",".faeg28l::before{border-right-width:0;}",".f64aojp::before{border-left-width:0;}",".fdw6hkg::before{border-bottom-width:1px;}",[".f1xyh2jw::before{border-radius:var(--borderRadiusNone);}",{p:-1}],[".fkp7w9h::after{border-radius:var(--borderRadiusNone);}",{p:-1}],[".f1kc0wz4::before{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fl48pg9:not(:focus-within)::before,.fl48pg9:hover:not(:focus-within)::before{border-top-color:var(--colorPaletteRedBorder2);}",".f1a168p3:not(:focus-within)::before,.f1a168p3:hover:not(:focus-within)::before{border-right-color:var(--colorPaletteRedBorder2);}",".f1pvdymy:not(:focus-within)::before,.f1pvdymy:hover:not(:focus-within)::before{border-left-color:var(--colorPaletteRedBorder2);}",".f11knvgl:not(:focus-within)::before,.f11knvgl:hover:not(:focus-within)::before{border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1a0lfh7::before{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1p2ejm6::before{border-right-color:var(--colorNeutralStrokeDisabled);}",".fmzytvz::before{border-left-color:var(--colorNeutralStrokeDisabled);}",".fas2e61::before{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],h:[".f1w2y1rc:hover::before{border-top-color:var(--colorNeutralStroke1Hover);}",".f1gofhvl:hover::before{border-right-color:var(--colorNeutralStroke1Hover);}",".f18htlvq:hover::before{border-left-color:var(--colorNeutralStroke1Hover);}",".ffcnd28:hover::before{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".f1xqt08:hover::before,.f1xqt08:focus-within::before{border-top-color:var(--colorTransparentStrokeInteractive);}",".fzt5lgo:hover::before,.fzt5lgo:focus-within::before{border-right-color:var(--colorTransparentStrokeInteractive);}",".f8tv3r9:hover::before,.f8tv3r9:focus-within::before{border-left-color:var(--colorTransparentStrokeInteractive);}",".fyhrops:hover::before,.fyhrops:focus-within::before{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f6lmxco:active::before,.f6lmxco:focus-within::before{border-top-color:var(--colorNeutralStroke1Pressed);}",".fcoc0mf:active::before,.fcoc0mf:focus-within::before{border-right-color:var(--colorNeutralStroke1Pressed);}",".f15r4wkl:active::before,.f15r4wkl:focus-within::before{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1ipdth8:active::before,.f1ipdth8:focus-within::before{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.flb8es4::before{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lclws::before{border-right-color:GrayText;}.frjp63v::before{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1yv9wnt::before{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]]}),Wv=gn("r1ljrqje",null,[".r1ljrqje{grid-column-start:1;grid-column-end:2;grid-row-start:1;grid-row-end:3;outline-style:none;border:0;padding:0;color:var(--colorNeutralForeground1);background-color:transparent;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;width:100%;}",".r1ljrqje::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r1ljrqje::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r1ljrqje::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),$v=mn({disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",yvdlaj:"fahhnxm"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),Gv=gn("r1g4chgs",null,[".r1g4chgs{display:inline-flex;width:24px;align-items:center;justify-content:center;border:0;position:absolute;outline-style:none;height:16px;background-color:transparent;color:var(--colorNeutralForeground3);grid-column-start:2;border-radius:0;padding:0 5px 0 5px;}",".r1g4chgs:active{outline-style:none;}",".r1g4chgs:enabled:hover{cursor:pointer;color:var(--colorNeutralForeground3Hover);background-color:var(--colorSubtleBackgroundHover);}",".r1g4chgs:enabled:active{color:var(--colorNeutralForeground3Pressed);background-color:var(--colorSubtleBackgroundPressed);}",".r1g4chgs:enabled.fui-SpinButton__button_active{color:var(--colorNeutralForeground3Pressed);background-color:var(--colorSubtleBackgroundPressed);}",".r1g4chgs:disabled{cursor:not-allowed;color:var(--colorNeutralForegroundDisabled);}"]),Yv=mn({increment:{Ijaq50:"f16hsg94",B7oj6ja:["f1jar5jt","fyu767a"],z8tnut:"f10ra9hq",Byoj8tv:"f1brlhvm"},decrement:{Ijaq50:"faunodf",Bbmb7ep:["f1aa9q02","f16jpd5f"],z8tnut:"f1sl3k7w",Byoj8tv:"f1y2xyjm"},incrementButtonSmall:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f4lv8q1","fm3uwd2"],Bqenvij:"fvblgha"},decrementButtonSmall:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f1q86st8","frkrfqj"],Bqenvij:"fvblgha"},outline:{},underline:{De3pzq:"f3rmtva",sj55zd:"f11d4kpn",r4wkhp:"f1no7wuu",B95qlz1:"f1bifk9c",p743kt:"fp1zg4s",B7xitij:"fo6hitd",B6siaa6:"f1wiab75",Ba9qmo4:"fj9zm5z",Dyrjrp:"f1cqwcg4"},"filled-darker":{De3pzq:"f3rmtva",sj55zd:"f11d4kpn",r4wkhp:"f1no7wuu",B95qlz1:"fwwxidx",p743kt:"fp1zg4s",B7xitij:"f14i52sd",B6siaa6:"f1wiab75",Ba9qmo4:"fwry2ka",Dyrjrp:"f1cqwcg4"},"filled-lighter":{De3pzq:"f3rmtva",sj55zd:"f11d4kpn",r4wkhp:"f1no7wuu",B95qlz1:"f1yywxnv",drw0cw:"fzaa11h",idzz8t:"f4fpmm9",Dyrjrp:"f1cqwcg4"}},{d:[".f16hsg94{grid-row-start:1;}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".f10ra9hq{padding-top:4px;}",".f1brlhvm{padding-bottom:1px;}",".faunodf{grid-row-start:2;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1sl3k7w{padding-top:1px;}",".f1y2xyjm{padding-bottom:4px;}",[".f4lv8q1{padding:3px 6px 0px 4px;}",{p:-1}],[".fm3uwd2{padding:3px 4px 0px 6px;}",{p:-1}],".fvblgha{height:12px;}",[".f1q86st8{padding:0px 6px 3px 4px;}",{p:-1}],[".frkrfqj{padding:0px 4px 3px 6px;}",{p:-1}],".f3rmtva{background-color:transparent;}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f1no7wuu:enabled:hover{color:var(--colorNeutralForeground3Hover);}",".f1bifk9c:enabled:hover{background-color:var(--colorSubtleBackgroundHover);}",".fp1zg4s:enabled:active{color:var(--colorNeutralForeground3Pressed);}",".fo6hitd:enabled:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1wiab75:enabled.fui-SpinButton__button_active{color:var(--colorNeutralForeground3Pressed);}",".fj9zm5z:enabled.fui-SpinButton__button_active{background-color:var(--colorSubtleBackgroundPressed);}",".f1cqwcg4:disabled{color:var(--colorNeutralForegroundDisabled);}",".fwwxidx:enabled:hover{background-color:var(--colorNeutralBackground3Hover);}",".f14i52sd:enabled:active{background-color:var(--colorNeutralBackground3Pressed);}",".fwry2ka:enabled.fui-SpinButton__button_active{background-color:var(--colorNeutralBackground3Pressed);}",".f1yywxnv:enabled:hover{background-color:var(--colorNeutralBackground1Hover);}",".fzaa11h:enabled:active,.fzaa11h:enabled.fui-SpinButton__button_active{color:var(--colorNeutralForeground3Pressed);}",".f4fpmm9:enabled:active,.f4fpmm9:enabled.fui-SpinButton__button_active{background-color:var(--colorNeutralBackground1Pressed);}"]}),Kv=g.forwardRef((e,t)=>{const r=zv(e,t);return(e=>{const{appearance:t,spinState:r,size:n}=e,o=e.input.disabled,i="true"==`${e.input["aria-invalid"]}`,a=t.startsWith("filled"),s=Uv(),l=Yv(),c=$v();e.root.className=Qe(jv,Hv(),s[n],s[t],a&&s.filled,!o&&"outline"===t&&s.outlineInteractive,!o&&"underline"===t&&s.underlineInteractive,!o&&a&&s.filledInteractive,!o&&i&&s.invalid,o&&s.disabled,e.root.className),e.incrementButton.className=Qe(Fv,"up"===r&&`${qv}`,Gv(),l.increment,l[t],"small"===n&&l.incrementButtonSmall,e.incrementButton.className),e.decrementButton.className=Qe(Vv,"down"===r&&`${qv}`,Gv(),l.decrement,l[t],"small"===n&&l.decrementButtonSmall,e.decrementButton.className),e.input.className=Qe(Lv,Wv(),o&&c.disabled,e.input.className)})(r),io("useSpinButtonStyles_unstable")(r),(e=>Wo(e.root,{children:[Uo(e.input,{}),Uo(e.incrementButton,{}),Uo(e.decrementButton,{})]}))(r)});Kv.displayName="SpinButton";const Xv=g.createContext(void 0),Jv={};Xv.Provider;const Qv=(e,t)=>{const{size:r}=null!==(n=g.useContext(Xv))&&void 0!==n?n:Jv;var n;const{appearance:o="primary",labelPosition:i="after",size:a=(null!=r?r:"medium"),delay:s=0}=e,l=wo("spinner"),{role:c="progressbar",...u}=e,d=wn(Fn("div",{ref:t,role:c,...u},["size"]),{elementType:"div"}),[f,h]=g.useState(!1),[p,m]=Po();g.useEffect(()=>{if(!(s<=0))return p(()=>{h(!0)},s),()=>{m()}},[p,m,s]);const v=xn(e.label,{defaultProps:{id:l},renderByDefault:!1,elementType:em}),y=xn(e.spinner,{renderByDefault:!0,elementType:"span"});v&&d&&!d["aria-labelledby"]&&(d["aria-labelledby"]=v.id);return{appearance:o,delay:s,labelPosition:i,size:a,shouldRenderSpinner:!s||f,components:{root:"div",spinner:"span",spinnerTail:"span",label:em},root:d,spinner:y,spinnerTail:wn(e.spinnerTail,{elementType:"span"}),label:v}},Zv="fui-Spinner",ey="fui-Spinner__spinner",ty="fui-Spinner__spinnerTail",ry="fui-Spinner__label",ny=gn("r82apo5",null,[".r82apo5{display:flex;align-items:center;justify-content:center;line-height:0;gap:8px;overflow:hidden;}"]),oy=mn({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),iy=gn("rvgcg50","r15nd2jo",{r:[".rvgcg50{position:relative;flex-shrink:0;-webkit-mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);background-color:var(--colorBrandStroke2Contrast);color:var(--colorBrandStroke1);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:rb7n1on;}","@keyframes rb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}",".r15nd2jo{position:relative;flex-shrink:0;-webkit-mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);background-color:var(--colorBrandStroke2Contrast);color:var(--colorBrandStroke1);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:r1gx3jof;}","@keyframes r1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],s:["@media screen and (forced-colors: active){.rvgcg50{background-color:HighlightText;color:Highlight;forced-color-adjust:none;}}","@media screen and (prefers-reduced-motion: reduce){.rvgcg50{animation-duration:1.8s;}}","@media screen and (forced-colors: active){.r15nd2jo{background-color:HighlightText;color:Highlight;forced-color-adjust:none;}}","@media screen and (prefers-reduced-motion: reduce){.r15nd2jo{animation-duration:1.8s;}}"]}),ay=gn("rxov3xa","r1o544mv",{r:[".rxov3xa{position:absolute;display:block;width:100%;height:100%;-webkit-mask-image:conic-gradient(transparent 105deg, white 105deg);mask-image:conic-gradient(transparent 105deg, white 105deg);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:var(--curveEasyEase);animation-name:r15mim6k;}",'.rxov3xa::before,.rxov3xa::after{content:"";position:absolute;display:block;width:100%;height:100%;animation:inherit;background-image:conic-gradient(currentcolor 135deg, transparent 135deg);}',"@keyframes r15mim6k{0%{transform:rotate(-135deg);}50%{transform:rotate(0deg);}100%{transform:rotate(225deg);}}",".rxov3xa::before{animation-name:r18vhmn8;}","@keyframes r18vhmn8{0%{transform:rotate(0deg);}50%{transform:rotate(105deg);}100%{transform:rotate(0deg);}}",".rxov3xa::after{animation-name:rkgrvoi;}","@keyframes rkgrvoi{0%{transform:rotate(0deg);}50%{transform:rotate(225deg);}100%{transform:rotate(0deg);}}",".r1o544mv{position:absolute;display:block;width:100%;height:100%;-webkit-mask-image:conic-gradient(transparent 105deg, white 105deg);mask-image:conic-gradient(transparent 105deg, white 105deg);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:var(--curveEasyEase);animation-name:r109gmi5;}",'.r1o544mv::before,.r1o544mv::after{content:"";position:absolute;display:block;width:100%;height:100%;animation:inherit;background-image:conic-gradient(currentcolor 135deg, transparent 135deg);}',"@keyframes r109gmi5{0%{transform:rotate(135deg);}50%{transform:rotate(0deg);}100%{transform:rotate(-225deg);}}",".r1o544mv::before{animation-name:r17whflh;}","@keyframes r17whflh{0%{transform:rotate(0deg);}50%{transform:rotate(-105deg);}100%{transform:rotate(0deg);}}",".r1o544mv::after{animation-name:re4odhl;}","@keyframes re4odhl{0%{transform:rotate(0deg);}50%{transform:rotate(-225deg);}100%{transform:rotate(0deg);}}"],s:["@media screen and (prefers-reduced-motion: reduce){.rxov3xa{animation-iteration-count:0;background-image:conic-gradient(transparent 120deg, currentcolor 360deg);}.rxov3xa::before,.rxov3xa::after{content:none;}}","@media screen and (prefers-reduced-motion: reduce){.r1o544mv{animation-iteration-count:0;background-image:conic-gradient(transparent 120deg, currentcolor 360deg);}.r1o544mv::before,.r1o544mv::after{content:none;}}"]}),sy=mn({inverted:{De3pzq:"fr407j0",sj55zd:"f1f7voed"},rtlTail:{btxmck:"f179dep3",gb5jj2:"fbz9ihp",Br2kee7:"f1wkkxo7"},"extra-tiny":{Bqenvij:"fd461yt",a9b677:"fjw5fx7",qmp6fs:"f1v3ph3m"},tiny:{Bqenvij:"fjamq6b",a9b677:"f64fuq3",qmp6fs:"f1v3ph3m"},"extra-small":{Bqenvij:"frvgh55",a9b677:"fq4mcun",qmp6fs:"f1v3ph3m"},small:{Bqenvij:"fxldao9",a9b677:"f1w9dchk",qmp6fs:"f1v3ph3m"},medium:{Bqenvij:"f1d2rq10",a9b677:"f1szoe96",qmp6fs:"fb52u90"},large:{Bqenvij:"f8ljn23",a9b677:"fpdz1er",qmp6fs:"fb52u90"},"extra-large":{Bqenvij:"fbhnoac",a9b677:"feqmc2u",qmp6fs:"fb52u90"},huge:{Bqenvij:"f1ft4266",a9b677:"fksc0bp",qmp6fs:"fa3u9ii"}},{d:[".fr407j0{background-color:var(--colorNeutralStrokeAlpha2);}",".f1f7voed{color:var(--colorNeutralStrokeOnBrand2);}",".f179dep3{-webkit-mask-image:conic-gradient(white 255deg, transparent 255deg);mask-image:conic-gradient(white 255deg, transparent 255deg);}",".fbz9ihp::before,.fbz9ihp::after{background-image:conic-gradient(transparent 225deg, currentcolor 225deg);}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".f1v3ph3m{--fui-Spinner--strokeWidth:var(--strokeWidthThick);}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxldao9{height:28px;}",".f1w9dchk{width:28px;}",".f1d2rq10{height:32px;}",".f1szoe96{width:32px;}",".fb52u90{--fui-Spinner--strokeWidth:var(--strokeWidthThicker);}",".f8ljn23{height:36px;}",".fpdz1er{width:36px;}",".fbhnoac{height:40px;}",".feqmc2u{width:40px;}",".f1ft4266{height:44px;}",".fksc0bp{width:44px;}",".fa3u9ii{--fui-Spinner--strokeWidth:var(--strokeWidthThickest);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1wkkxo7{background-image:conic-gradient(currentcolor 0deg, transparent 240deg);}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),ly=mn({inverted:{sj55zd:"fonrgv7"},"extra-tiny":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},tiny:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},huge:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),cy=g.forwardRef((e,t)=>{const r=Qv(e,t);return(e=>{const{labelPosition:t,size:r,appearance:n}=e,{dir:o}=Qn(),i=ny(),a=oy(),s=iy(),l=sy(),c=ay(),u=ly();e.root.className=Qe(Zv,i,("above"===t||"below"===t)&&a.vertical,e.root.className),e.spinner&&(e.spinner.className=Qe(ey,s,l[r],"inverted"===n&&l.inverted,e.spinner.className)),e.spinnerTail&&(e.spinnerTail.className=Qe(ty,c,"rtl"===o&&l.rtlTail,e.spinnerTail.className)),e.label&&(e.label.className=Qe(ry,u[r],"inverted"===n&&u.inverted,e.label.className))})(r),io("useSpinnerStyles_unstable")(r),(e=>{const{labelPosition:t,shouldRenderSpinner:r}=e;return Wo(e.root,{children:[e.label&&r&&("above"===t||"before"===t)&&Uo(e.label,{}),e.spinner&&r&&Uo(e.spinner,{children:e.spinnerTail&&Uo(e.spinnerTail,{})}),e.label&&r&&("below"===t||"after"===t)&&Uo(e.label,{})]})})(r)});cy.displayName="Spinner";const uy="fui-Textarea",dy="fui-Textarea__textarea",fy=mn({base:{mc9l5x:"ftuwxu6",B7ck84d:"f1ewtqcl",qhf8xq:"f10pi13n",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1yiegib",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",ha4doy:"f12kltsn"},disabled:{De3pzq:"f1c21dwh",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"ff3nzm7",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]},interactive:{li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],B1q35kw:0,Bw17bha:0,Bcgy8vk:0,Bjuhk93:"f1mnjydx",Gjdm7m:"fj2g8qd",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51",Bbr2w1p:"f1vnc8sk",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7"},filled:{Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f88035w",q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f1gmd7mu",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f1gmd7mu",E5pizo:"fyed02w"},outline:{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:"f1c1zstj",oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fhz96rm"},outlineInteractive:{kzujx5:0,oetu4i:"f1l4zc64",gvrnp0:0,xv9156:0,jek2p4:0,gg5e9n:0,Beu9t3s:0,dt87k2:0,Bt1vbvt:0,Bwzppfd:0,Bop6t4b:0,B2zwrfe:0,Bwp2tzp:0,Bgoe8wy:0,Bf40cpq:0,ckks6v:0,Baalond:"f9mts5e",v2iqwr:0,wmxk5l:"f1z0osm6",Bj33j0h:0,Bs0cc2w:0,qwjtx1:0,B50zh58:0,f7epvg:0,e1hlit:0,B7mkhst:0,ak43y8:0,Bbcopvn:0,Bvecx4l:0,lwioe0:0,B6oc9vd:0,e2sjt0:0,uqwnxt:0,asj8p9:"f1acnei2",Br8fjdy:0,zoxjo1:"f1so894s",Bt3ojkv:0,B7pmvfx:0,Bfht2n1:0,an54nd:0,t1ykpo:0,Belqbek:0,bbt1vd:0,Brahy3i:0,r7b1zc:0,rexu52:0,ovtnii:0,Bvq3b66:0,Bawrxx6:0,Bbs6y8j:0,B2qpgjt:"f19ezbcq"},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]}},{d:[".ftuwxu6{display:inline-flex;}",".f1ewtqcl{box-sizing:border-box;}",".f10pi13n{position:relative;}",[".f1yiegib{padding:0 0 var(--strokeWidthThick) 0;}",{p:-1}],[".f1s184ao{margin:0;}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f12kltsn{vertical-align:top;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".ff3nzm7{border:var(--strokeWidthThin) solid var(--colorNeutralStrokeDisabled);}",{p:-2}],".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".ffyw7fx::after{height:max(var(--strokeWidthThick), var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",[".f1mnjydx::after{border-bottom:var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);}",{p:-1}],".fj2g8qd::after{clip-path:inset(calc(100% - var(--strokeWidthThick)) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",[".f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".f1gmd7mu{border:var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);}",{p:-2}],".fyed02w{box-shadow:var(--shadow2);}",[".f1gmd7mu{border:var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);}",{p:-2}],[".fhz96rm{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}",{p:-2}],".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]],w:[".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".f1vnc8sk:focus-within{outline-width:var(--strokeWidthThick);}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",[".f19ezbcq:focus-within{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1Pressed);}",{p:-2}],".f1so894s:focus-within{border-bottom-color:var(--colorCompoundBrandStroke);}"],h:[".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}",[".f9mts5e:hover{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1Hover);}",{p:-2}],".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}"],a:[[".f1acnei2:active{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1Pressed);}",{p:-2}],".f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"]}),hy=mn({base:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",Bh6795r:"fqerorx",Bahqtrf:"fk6fouc",Bqenvij:"f1l02sjl",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih",oeaueh:"f1s6fcnf"},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"},small:{sshi5w:"f1w5jphr",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1pnffij",Bxyxcbc:"f192z54u",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{sshi5w:"fvmd9f",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1ww82xo",Bxyxcbc:"f1if7ixc",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},large:{sshi5w:"f1kfson",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f15hvtkj",Bxyxcbc:"f3kip1f",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"}},{d:[".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",[".f1s184ao{margin:0;}",{p:-1}],".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fqerorx{flex-grow:1;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1l02sjl{height:100%;}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".f1s6fcnf{outline-style:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}",".f1w5jphr{min-height:40px;}",[".f1pnffij{padding:var(--spacingVerticalXS) calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],".f192z54u{max-height:200px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fvmd9f{min-height:52px;}",[".f1ww82xo{padding:var(--spacingVerticalSNudge) calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",{p:-1}],".f1if7ixc{max-height:260px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1kfson{min-height:64px;}",[".f15hvtkj{padding:var(--spacingVerticalS) calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));}",{p:-1}],".f3kip1f{max-height:320px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}"]}),py=mn({none:{B3rzk8w:"f1o1s39h"},both:{B3rzk8w:"f1pxm0xe"},horizontal:{B3rzk8w:"fq6nmtn"},vertical:{B3rzk8w:"f1f5ktr4"}},{d:[".f1o1s39h{resize:none;}",".f1pxm0xe{resize:both;}",".fq6nmtn{resize:horizontal;}",".f1f5ktr4{resize:vertical;}"]}),my=g.forwardRef((e,t)=>{const r=((e,t)=>{e=Xp(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=to();var n;const{size:o="medium",appearance:i=(null!==(n=r.inputDefaultAppearance)&&void 0!==n?n:"outline"),resize:a="none",onChange:s}=e,[l,c]=co({state:e.value,defaultState:e.defaultValue,initialState:void 0}),u=Ln({props:e,primarySlotTagName:"textarea",excludedPropNames:["onChange","value","defaultValue"]}),d={size:o,appearance:i,resize:a,components:{root:"span",textarea:"textarea"},textarea:wn(e.textarea,{defaultProps:{ref:t,...u.primary},elementType:"textarea"}),root:wn(e.root,{defaultProps:u.root,elementType:"span"})};return d.textarea.value=l,d.textarea.onChange=vo(e=>{const t=e.target.value;null==s||s(e,{value:t}),c(t)}),d})(e,t);return(e=>{const{size:t,appearance:r,resize:n}=e,o=e.textarea.disabled,i="true"==`${e.textarea["aria-invalid"]}`,a=r.startsWith("filled"),s=fy();e.root.className=Qe(uy,s.base,o&&s.disabled,!o&&a&&s.filled,!o&&s[r],!o&&s.interactive,!o&&"outline"===r&&s.outlineInteractive,!o&&i&&s.invalid,e.root.className);const l=hy(),c=py();e.textarea.className=Qe(dy,l.base,l[t],c[n],o&&l.disabled,e.textarea.className)})(r),io("useTextareaStyles_unstable")(r),(e=>Uo(e.root,{children:Uo(e.textarea,{})}))(r)});my.displayName="Textarea";const gy="fui-ProgressBar",vy="fui-ProgressBar__bar",yy=mn({root:{mc9l5x:"ftgm304",De3pzq:"f18f03hv",a9b677:"fly5x3f",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Bpep1pd:"fu42dvn"},rounded:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},medium:{Bqenvij:"f4t8t6x"},large:{Bqenvij:"f6ywr7j"}},{d:[".ftgm304{display:block;}",".f18f03hv{background-color:var(--colorNeutralBackground6);}",".fly5x3f{width:100%;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],".f4t8t6x{height:2px;}",".f6ywr7j{height:4px;}"],m:[["@media screen and (forced-colors: active){.fu42dvn{background-color:CanvasText;}}",{m:"screen and (forced-colors: active)"}]]}),by=mn({base:{Bpep1pd:"f1neahkh",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f12b9xdw",Bqenvij:"f1l02sjl"},nonZeroDeterminate:{Bmy1vo4:"fjt6zfz",B3o57yi:"f1wofebd",Bkqvd7p:"fv71qf3"},indeterminate:{B2u0y6b:"fa0wk36",qhf8xq:"f10pi13n",Bcmaq0h:["fpo0yib","f1u5hf6c"],Bv12yb3:["fwd2bol","f14gig94"],vin17d:"f1a27w2r",Ezkn3b:"f452v7t",w3vfg9:"f1cpbl36",B3ks32h:"f2xo07b",B3vm3ge:"f1f2ih6z",Gqtpxc:"f7h4d4t",vr3tzx:"f32r5lb"},brand:{De3pzq:"ftywsgz"},error:{De3pzq:"fdl5y0r"},warning:{De3pzq:"f1s438gw"},success:{De3pzq:"flxk52p"}},{m:[["@media screen and (forced-colors: active){.f1neahkh{background-color:Highlight;}}",{m:"screen and (forced-colors: active)"}],["@media screen and (prefers-reduced-motion: reduce){.f2xo07b{max-width:100%;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1f2ih6z{animation-iteration-count:infinite;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f7h4d4t{animation-duration:3s;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f32r5lb{animation-name:ftc26vs;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]],d:[[".f12b9xdw{border-radius:inherit;}",{p:-1}],".f1l02sjl{height:100%;}",".fjt6zfz{transition-property:width;}",".f1wofebd{transition-duration:0.3s;}",".fv71qf3{transition-timing-function:ease;}",".fa0wk36{max-width:33%;}",".f10pi13n{position:relative;}",".fpo0yib{background-image:linear-gradient(\n      to right,\n      var(--colorNeutralBackground6) 0%,\n      var(--colorTransparentBackground) 50%,\n      var(--colorNeutralBackground6) 100%\n    );}",".f1u5hf6c{background-image:linear-gradient(\n      to left,\n      var(--colorNeutralBackground6) 0%,\n      var(--colorTransparentBackground) 50%,\n      var(--colorNeutralBackground6) 100%\n    );}",".fwd2bol{animation-name:f1keuaan;}",".f14gig94{animation-name:f10x8f8u;}",".f1a27w2r{animation-duration:3s;}",".f452v7t{animation-timing-function:linear;}",".f1cpbl36{animation-iteration-count:infinite;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}",".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}",".flxk52p{background-color:var(--colorPaletteGreenBackground3);}"],k:["@keyframes f1keuaan{0%{left:-33%;}100%{left:100%;}}","@keyframes f10x8f8u{0%{right:-33%;}100%{right:100%;}}","@keyframes ftc26vs{0%{opacity:.2;}50%{opacity:1;}100%{opacity:.2;}}"]}),wy=g.forwardRef((e,t)=>{const r=((e,t)=>{const r=Kp(),n=null==r?void 0:r.validationState,{color:o=("error"===n||"warning"===n||"success"===n?n:"brand"),shape:i="rounded",thickness:a="medium"}=e;var s;const l=(e=>e<=0?1:e)(null!==(s=e.max)&&void 0!==s?s:1),c=((e,t)=>void 0===e?e:e<0?0:e>t?t:e)(e.value,l),u=wn(Fn("div",{ref:t,role:"progressbar","aria-valuemin":void 0!==c?0:void 0,"aria-valuemax":void 0!==c?l:void 0,"aria-valuenow":c,"aria-labelledby":null==r?void 0:r.labelId,...e}),{elementType:"div"});return r&&(r.validationMessageId||r.hintId)&&(u["aria-describedby"]=[null==r?void 0:r.validationMessageId,null==r?void 0:r.hintId,u["aria-describedby"]].filter(Boolean).join(" ")),{color:o,max:l,shape:i,thickness:a,value:c,components:{root:"div",bar:"div"},root:u,bar:wn(e.bar,{elementType:"div"})}})(e,t);return(e=>{const{color:t,max:r,shape:n,thickness:o,value:i}=e,a=yy(),s=by();e.root.className=Qe(gy,a.root,a[n],a[o],e.root.className),e.bar&&(e.bar.className=Qe(vy,s.base,s.brand,void 0===i&&s.indeterminate,void 0!==i&&i>.01&&s.nonZeroDeterminate,t&&void 0!==i&&s[t],e.bar.className)),e.bar&&void 0!==i&&(e.bar.style={width:Math.min(100,Math.max(0,i/r*100))+"%",...e.bar.style})})(r),io("useProgressBarStyles_unstable")(r),(e=>Uo(e.root,{children:e.bar&&Uo(e.bar,{})}))(r)});wy.displayName="ProgressBar";const xy=g.createContext(void 0),Sy={handleTagDismiss:()=>({}),size:"medium",role:"toolbar",handleTagSelect:void 0},ky=xy.Provider,Ey={medium:28,small:20,"extra-small":16},Ty={rounded:"square",circular:"circular"},_y=(e,t)=>{const{handleTagDismiss:r,size:n,disabled:o,appearance:i,dismissible:a,role:s}=null!==(l=g.useContext(xy))&&void 0!==l?l:Sy;var l;const c=wo("fui-Tag",e.id),{appearance:u=(null!=i?i:"filled"),disabled:d=!1,dismissible:f=null!=a&&a,selected:h,shape:p="rounded",size:m=n,value:v=c}=e,y=vo(t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),t.defaultPrevented||null==r||r(t,{value:v})}),b=vo(t=>{var n;null==e||null===(n=e.onKeyDown)||void 0===n||n.call(e,t),t.defaultPrevented||"Delete"!==t.key&&t.key!==Nu||null==r||r(t,{value:v})}),w=f?"button":"span",x="listbox"===s?"aria-selected":"aria-pressed",S="boolean"==typeof h||"listbox"===s;return{appearance:u,avatarShape:Ty[p],avatarSize:Ey[m],disabled:!!o||d,dismissible:f,selected:!!h,shape:p,size:m,components:{root:w,media:"span",icon:"span",primaryText:"span",secondaryText:"span",dismissIcon:"span"},root:wn(Fn(w,{ref:t,role:"listbox"===s?"option":void 0,[x]:S?h:void 0,...e,disabled:!!o||d,id:c,...f&&{onClick:y,onKeyDown:b}}),{elementType:w}),media:xn(e.media,{elementType:"span"}),icon:xn(e.icon,{elementType:"span"}),primaryText:xn(e.primaryText,{renderByDefault:!0,defaultProps:{children:e.children},elementType:"span"}),secondaryText:xn(e.secondaryText,{elementType:"span"}),dismissIcon:xn(e.dismissIcon,{renderByDefault:f,defaultProps:{children:g.createElement(sd,null)},elementType:"span"})}},Cy="fui-Tag",Ay="fui-Tag__media",Iy="fui-Tag__icon",Py="fui-Tag__primaryText",Ny="fui-Tag__secondaryText",By="fui-Tag__dismissIcon",Oy=gn("r1wstn2o","r7a32g8",{r:['.r1wstn2o{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary   dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r1wstn2o[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",'.r7a32g8{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary   dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusMedium);}',".r7a32g8[data-fui-focus-visible]{border-radius:var(--borderRadiusMedium);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.r1wstn2o{position:relative;}.r1wstn2o::before{content:"";border-top:var(--strokeWidthThin) solid;position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-top-left-radius:var(--borderRadiusMedium);border-top-right-radius:var(--borderRadiusMedium);}}','@media (forced-colors: active){.r7a32g8{position:relative;}.r7a32g8::before{content:"";border-top:var(--strokeWidthThin) solid;position:absolute;top:-1px;right:-1px;left:-1px;bottom:-1px;border-top-right-radius:var(--borderRadiusMedium);border-top-left-radius:var(--borderRadiusMedium);}}']}),Dy=gn("rlv0lsa","r18mdwmi",{r:['.rlv0lsa{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary   dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".rlv0lsa[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",'.r18mdwmi{font-family:inherit;padding:0px;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-align:unset;display:inline-grid;align-items:center;grid-template-areas:"media primary   dismissIcon" "media secondary dismissIcon";box-sizing:border-box;width:fit-content;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);border-radius:var(--borderRadiusCircular);}',".r18mdwmi[data-fui-focus-visible]{border-radius:var(--borderRadiusCircular);outline:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}"],s:['@media (forced-colors: active){.rlv0lsa{position:relative;}.rlv0lsa::before{content:"";border-top:var(--strokeWidthThin) solid;border-left:var(--strokeWidthThin) solid;border-right:var(--strokeWidthThin) solid;position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;border-radius:var(--borderRadiusCircular);}}','@media (forced-colors: active){.r18mdwmi{position:relative;}.r18mdwmi::before{content:"";border-top:var(--strokeWidthThin) solid;border-right:var(--strokeWidthThin) solid;border-left:var(--strokeWidthThin) solid;position:absolute;top:-1px;right:-1px;left:-1px;bottom:-1px;border-radius:var(--borderRadiusCircular);}}']}),Ry=mn({filled:{De3pzq:"f16xq7d1",sj55zd:"fkfq4zb"},outline:{De3pzq:"fhovq9v",sj55zd:"fkfq4zb",g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"]},brand:{De3pzq:"f16xkysk",sj55zd:"faj9fo0"},selected:{De3pzq:"ffp7eso",sj55zd:"f1phragk",g2u3we:"fk9qgl1",h3c5rm:["f1vfbj5f","f1qpacp7"],B9xav0g:"fdf0ba2",zhjwy3:["f1qpacp7","f1vfbj5f"],ycbfsm:"fkc42ay",Bsw6fvg:"f1rirnrt",Bbusuzp:"f1lkg8j3"},medium:{Bqenvij:"f1d2rq10"},small:{Bqenvij:"frvgh55"},"extra-small":{qhf8xq:"f10pi13n",Bqenvij:"fjamq6b",b7i14k:"f15j58gw",Bej73l1:"fitnkyp",sg3u8k:"f12jc7rs",dpul0f:"fitizsl",Bj2wrql:"ff8e2ck",u6d25:"f1oinwhq"}},{d:[".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fk9qgl1{border-top-color:var(--colorBrandStroke1);}",".f1vfbj5f{border-right-color:var(--colorBrandStroke1);}",".f1qpacp7{border-left-color:var(--colorBrandStroke1);}",".fdf0ba2{border-bottom-color:var(--colorBrandStroke1);}",".f1d2rq10{height:32px;}",".frvgh55{height:24px;}",".f10pi13n{position:relative;}",".fjamq6b{height:20px;}",'.f15j58gw:before,.f15j58gw:after{content:"";}',".fitnkyp:before,.fitnkyp:after{position:absolute;}",".f12jc7rs:before,.f12jc7rs:after{height:2px;}",".fitizsl:before,.fitizsl:after{width:100%;}",".ff8e2ck:before{bottom:100%;}",".f1oinwhq:after{top:100%;}"],m:[["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}]]}),My=mn({filled:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]},outline:{Bceei9c:"fdrzuqr",De3pzq:"fhovq9v",sj55zd:"f1s2aq7o",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"]},brand:{Bceei9c:"fdrzuqr",De3pzq:"f1bg9a2p",sj55zd:"f1s2aq7o",g2u3we:"fgig46g",h3c5rm:["f1mxt3zg","fziff3p"],B9xav0g:"f250w3l",zhjwy3:["fziff3p","f1mxt3zg"]}},{d:[".fdrzuqr{cursor:not-allowed;}",".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fgig46g{border-top-color:var(--colorTransparentStrokeDisabled);}",".f1mxt3zg{border-right-color:var(--colorTransparentStrokeDisabled);}",".fziff3p{border-left-color:var(--colorTransparentStrokeDisabled);}",".f250w3l{border-bottom-color:var(--colorTransparentStrokeDisabled);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"]}),zy=mn({medium:{uwmqm3:["f1rtp3s9","f18k1jr3"]},small:{uwmqm3:["f15vdbe4","fwiuce9"]},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"]}},{d:[".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}"]}),jy=mn({medium:{z189sj:["f18k1jr3","f1rtp3s9"]},small:{z189sj:["fwiuce9","f15vdbe4"]},"extra-small":{z189sj:["fwiuce9","f15vdbe4"]}},{d:[".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}"]}),Ly=mn({base:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:"fujjg13",mc9l5x:"f22iagw",B7ck84d:"f1e4lqlz"},medium:{uwmqm3:["f1rtp3s9","f18k1jr3"],z189sj:["f7x41pl","fruq291"],a9b677:"f64fuq3",Be2twd7:"fe5j1ua"},small:{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"fjw5fx7",Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["f15vdbe4","fwiuce9"],z189sj:["ffczdla","fgiv446"],a9b677:"frx94fk",Be2twd7:"f1ugzwwg"}},{d:[[".fujjg13{grid-area:media;}",{p:-1}],".f22iagw{display:flex;}",".f1e4lqlz{box-sizing:content-box;}",".f1rtp3s9{padding-left:7px;}",".f18k1jr3{padding-right:7px;}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f64fuq3{width:20px;}",".fe5j1ua{font-size:20px;}",".f15vdbe4{padding-left:5px;}",".fwiuce9{padding-right:5px;}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".fjw5fx7{width:16px;}",".f4ybsrx{font-size:16px;}",".frx94fk{width:12px;}",".f1ugzwwg{font-size:12px;}"]}),Fy=mn({base:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:"fujjg13",mc9l5x:"f22iagw",uwmqm3:["f10xn8zz","f136y8j8"]},medium:{z189sj:["f1vdfbxk","f1f5gg8d"]},small:{z189sj:["fdw0yi8","fk8j09s"]},"extra-small":{z189sj:["fdw0yi8","fk8j09s"]}},{d:[[".fujjg13{grid-area:media;}",{p:-1}],".f22iagw{display:flex;}",".f10xn8zz{padding-left:1px;}",".f136y8j8{padding-right:1px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}"]}),Vy=mn({base:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:"f1k1gsvr",mc9l5x:"f22iagw",ze5xyy:"f4xjyn1",oy3o9n:"f1xtr1b3"},medium:{uwmqm3:["fruq291","f7x41pl"],z189sj:["f18k1jr3","f1rtp3s9"],Be2twd7:"fe5j1ua"},small:{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f4ybsrx"},"extra-small":{uwmqm3:["fgiv446","ffczdla"],z189sj:["fwiuce9","f15vdbe4"],Be2twd7:"f1ugzwwg"},filled:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},outline:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},brand:{eoavqd:"f8491dx",Bi91k9c:"f3ymbdj",lj723h:"fryz5bw"},selected:{Bi91k9c:"f1rq72xc",lj723h:"f18otbis"}},{d:[[".f1k1gsvr{grid-area:dismissIcon;}",{p:-1}],".f22iagw{display:flex;}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fe5j1ua{font-size:20px;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".f4ybsrx{font-size:16px;}",".f1ugzwwg{font-size:12px;}"],m:[["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1xtr1b3:active{color:Highlight;}}",{m:"(forced-colors: active)"}]],h:[".f8491dx:hover{cursor:pointer;}",".f3ymbdj:hover{color:var(--colorCompoundBrandForeground1Hover);}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}"],a:[".fryz5bw:active{color:var(--colorCompoundBrandForeground1Pressed);}",".f18otbis:active{color:var(--colorNeutralForegroundOnBrand);}"]}),qy=mn({base:{Huce71:"fz5stix",uwmqm3:["fgiv446","ffczdla"],z189sj:["ffczdla","fgiv446"]},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},withoutSecondaryText:{Br312pm:"faqcfhe",Ijaq50:"f1q3ipgb",nk6f5a:"fc0ab3q",Byoj8tv:"f1g03r3y"},withSecondaryText:{Bw0ie65:0,Br312pm:0,nk6f5a:0,Ijaq50:0,Bq1tomu:"f1ebragv",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",B6of3ja:"f1ryq6si"}},{d:[".fz5stix{white-space:nowrap;}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".faqcfhe{grid-column-start:primary;}",".f1q3ipgb{grid-row-start:primary;}",".fc0ab3q{grid-row-end:secondary;}",".f1g03r3y{padding-bottom:var(--spacingHorizontalXXS);}",[".f1ebragv{grid-area:primary;}",{p:-1}],".f1ryq6si{margin-top:-2px;}"]}),Hy=gn("r7hv1ps","rnrslm9",[".r7hv1ps{grid-area:secondary;padding-left:var(--spacingHorizontalXXS);padding-right:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}",".rnrslm9{grid-area:secondary;padding-right:var(--spacingHorizontalXXS);padding-left:var(--spacingHorizontalXXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);white-space:nowrap;}"]);const Uy=g.forwardRef((e,t)=>{const r=_y(e,t);return(e=>{const t=Oy(),r=Dy(),n=Ry(),o=My(),i=zy(),a=jy(),s=Ly(),l=Fy(),c=Vy(),u=qy(),d=Hy(),{disabled:f,shape:h,size:p,appearance:m,selected:g}=e;e.root.className=Qe(Cy,"rounded"===h?t:r,f?o[m]:n[m],g&&!f&&n.selected,n[p],!e.media&&!e.icon&&i[p],!e.dismissIcon&&a[p],e.root.className),e.media&&(e.media.className=Qe(Ay,l.base,l[p],e.media.className)),e.icon&&(e.icon.className=Qe(Iy,s.base,s[p],e.icon.className)),e.primaryText&&(e.primaryText.className=Qe(Py,u.base,u[p],e.secondaryText?u.withSecondaryText:u.withoutSecondaryText,e.primaryText.className)),e.secondaryText&&(e.secondaryText.className=Qe(Ny,d,e.secondaryText.className)),e.dismissIcon&&(e.dismissIcon.className=Qe(By,c.base,c[p],!f&&c[m],g&&!f&&c.selected,e.dismissIcon.className))})(r),io("useTagStyles_unstable")(r),((e,t)=>Wo(e.root,{children:[e.media&&Uo(Bd,{value:t.avatar,children:Uo(e.media,{})}),e.icon&&Uo(e.icon,{}),e.primaryText&&Uo(e.primaryText,{}),e.secondaryText&&Uo(e.secondaryText,{}),e.dismissIcon&&e.dismissible&&Uo(e.dismissIcon,{})]}))(r,function(e){const{avatarSize:t,avatarShape:r}=e;return{avatar:g.useMemo(()=>({size:t,shape:r}),[r,t])}}(r))});Uy.displayName="Tag";const Wy="fui-InteractionTagSecondary",$y="fui-TagGroup",Gy=mn({base:{mc9l5x:"ftuwxu6"},medium:{i8kkvl:"fsnqrgy"},small:{i8kkvl:"f1rjii52"},"extra-small":{i8kkvl:"f1ufnopg"}},{d:[".ftuwxu6{display:inline-flex;}",".fsnqrgy{column-gap:var(--spacingHorizontalS);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}"]});function Yy(){return Yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yy.apply(null,arguments)}const Ky=g.createContext(void 0),Xy={color:"neutral",iconFilled:ld,iconOutline:cd,step:1,size:"medium"},Jy=Ky.Provider,Qy=e=>e+"",Zy=(e,t)=>{const r=g.useContext(Ky)||Xy,{value:n=0}=e,{itemLabel:o=Qy,iconFilled:i,iconOutline:a}=r,s=Math.round(2*(r.value||0))/2;var l;const c=null!==(l=r.hoveredValue)&&void 0!==l?l:s,u=r.interactive?"outline":"filled";let d;d=r.compact||c>=n?1:c>=n-.5?.5:0;const f=wn(Fn("span",{ref:xo(Ts(),t),...e}),{elementType:"span"});let h,p,m,v;d<1&&(h=wn(e.unselectedIcon,{defaultProps:{children:"filled"===u?g.createElement(i,null):g.createElement(a,null),"aria-hidden":!0},elementType:"div"})),d>0&&(p=wn(e.selectedIcon,{defaultProps:{children:g.createElement(i,null),"aria-hidden":!0},elementType:"div"})),r.interactive&&.5===r.step&&(m=wn(e.halfValueInput,{defaultProps:{type:"radio",name:r.name,value:n-.5,checked:s===n-.5,"aria-label":o(n-.5),onChange:()=>{}},elementType:"input"})),r.interactive&&(v=wn(e.fullValueInput,{defaultProps:{type:"radio",name:r.name,value:n,checked:s===n,"aria-label":o(n),onChange:()=>{}},elementType:"input"}));return{appearance:u,color:r.color,step:r.step,size:r.size,iconFillWidth:d,value:n,components:{root:"span",selectedIcon:"div",unselectedIcon:"div",halfValueInput:"input",fullValueInput:"input"},root:f,selectedIcon:p,unselectedIcon:h,halfValueInput:m,fullValueInput:v}},eb="fui-RatingItem",tb="fui-RatingItem__selectedIcon",rb="fui-RatingItem__unselectedIcon",nb="fui-RatingItem__halfValueInput",ob="fui-RatingItem__fullValueInput",ib=mn({root:{qhf8xq:"f10pi13n",Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],Bm3wd5j:"f1k55ka9",Bbrhkcr:["fgclinu","f16pcs8n"],f1oku:"fycbxed",aywvf2:["f16pcs8n","fgclinu"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",Byrf0fs:0,Bsiemmq:0,Bwckmig:0,skfxo0:0,Iidy0u:0,B98u21t:0,Bvwlmkc:0,jo1ztg:0,Ba1iezr:0,Blmvk6g:0,B24cy0v:0,Bil7v7r:0,Br3gin4:0,nr063g:0,ghq09:0,Bbgo44z:0,Bseh09z:"fmj8fco",az1dzo:0,Ba3ybja:0,B6352mv:0,vppk2z:0,Biaj6j7:"f1iwowo3",B2pnrqr:"f1spmvte",B29w5g4:["fgp7k2s","f13pb23"],Bhhzhcn:"f1ihbrwi",Bec0n69:["f13pb23","fgp7k2s"]},small:{Be2twd7:"f1ugzwwg",a9b677:"frx94fk",Bqenvij:"fvblgha"},medium:{Be2twd7:"f4ybsrx",a9b677:"fjw5fx7",Bqenvij:"fd461yt"},large:{Be2twd7:"fe5j1ua",a9b677:"f64fuq3",Bqenvij:"fjamq6b"},"extra-large":{Be2twd7:"f24l1pt",a9b677:"f1w9dchk",Bqenvij:"fxldao9"}},{d:[".f10pi13n{position:relative;}",".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}",".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}",".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}",".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}",'.ffht0p2[data-fui-focus-within]:focus-within::after{content:"";}',".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}",".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}",".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}",[".fmj8fco[data-fui-focus-within]:focus-within::after{border:2px solid var(--colorStrokeFocus2);}",{p:-2}],[".f1iwowo3[data-fui-focus-within]:focus-within::after{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1spmvte[data-fui-focus-within]:focus-within::after{top:calc(2px * -1);}",".fgp7k2s[data-fui-focus-within]:focus-within::after{right:calc(2px * -1);}",".f13pb23[data-fui-focus-within]:focus-within::after{left:calc(2px * -1);}",".f1ihbrwi[data-fui-focus-within]:focus-within::after{bottom:calc(2px * -1);}",".f1ugzwwg{font-size:12px;}",".frx94fk{width:12px;}",".fvblgha{height:12px;}",".f4ybsrx{font-size:16px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".fe5j1ua{font-size:20px;}",".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".f24l1pt{font-size:28px;}",".f1w9dchk{width:28px;}",".fxldao9{height:28px;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],m:[["@media (forced-colors: active){.f1k55ka9[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16pcs8n[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}.fgclinu[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fycbxed[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}]]}),ab=gn("r1qfsv1p","rh8pzaz",[".r1qfsv1p{position:absolute;left:0;top:0;right:0;bottom:0;box-sizing:border-box;margin:0;opacity:0;cursor:pointer;height:100%;}",".rh8pzaz{position:absolute;right:0;top:0;left:0;bottom:0;box-sizing:border-box;margin:0;opacity:0;cursor:pointer;height:100%;}"]),sb=mn({lowerHalf:{j35jbq:["ffenbu1","f1ktbn1t"]},upperHalf:{oyh7mz:["f1ktbn1t","ffenbu1"]}},{d:[".ffenbu1{right:50%;}",".f1ktbn1t{left:50%;}"]}),lb=gn("r1420l2m","r1yt29v5",[".r1420l2m{display:flex;overflow:hidden;color:var(--colorNeutralForeground1);fill:currentColor;pointer-events:none;position:absolute;left:0;right:0;top:0;bottom:0;}",".r1yt29v5{display:flex;overflow:hidden;color:var(--colorNeutralForeground1);fill:currentColor;pointer-events:none;position:absolute;right:0;left:0;top:0;bottom:0;}"]),cb=mn({lowerHalf:{j35jbq:["ffenbu1","f1ktbn1t"],l5kjut:0,uoufgc:0,v39lw8:0,Bbwb3tu:"f10jwh99"},upperHalf:{oyh7mz:["f1ktbn1t","ffenbu1"],Frg6f3:["fbm7ezh","f3ev47i"]},brand:{sj55zd:"f16muhyy"},marigold:{sj55zd:"f1whvut0"},filled:{sj55zd:"f1qaymga",ojy3ng:"f13qq9og",Bbusuzp:"f1cg6951",B6jmk37:"f1am6ztc"},brandFilled:{sj55zd:"f1kdv6iu"},marigoldFilled:{sj55zd:"f1ymbmfq"}},{d:[".ffenbu1{right:50%;}",".f1ktbn1t{left:50%;}",[".f10jwh99>svg{flex:0 0 auto;}",{p:-1}],".fbm7ezh{margin-left:-50%;}",".f3ev47i{margin-right:-50%;}",".f16muhyy{color:var(--colorBrandForeground1);}",".f1whvut0{color:var(--colorPaletteMarigoldBorderActive);}",".f1qaymga{color:var(--colorNeutralBackground6);}",".f13qq9og{stroke:var(--colorTransparentStroke);}",".f1kdv6iu{color:var(--colorBrandBackground2);}",".f1ymbmfq{color:var(--colorPaletteMarigoldBackground2);}"],m:[["@media (forced-colors: active){.f1cg6951{color:Canvas;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1am6ztc{stroke:CanvasText;}}",{m:"(forced-colors: active)"}]]}),ub=g.forwardRef((e,t)=>{const r=Zy(e,t);return(e=>{const{color:t,size:r,iconFillWidth:n,appearance:o}=e,i=ib(),a=ab(),s=sb(),l=lb(),c=cb();e.root.className=Qe(eb,i.root,i[r],e.root.className),e.halfValueInput&&(e.halfValueInput.className=Qe(nb,a,s.lowerHalf,e.halfValueInput.className)),e.fullValueInput&&(e.fullValueInput.className=Qe(ob,a,e.halfValueInput&&s.upperHalf,e.fullValueInput.className)),e.unselectedIcon&&(e.unselectedIcon.className=Qe(rb,l,"filled"===o&&c.filled,"brand"===t&&("filled"===o?c.brandFilled:c.brand),"marigold"===t&&("filled"===o?c.marigoldFilled:c.marigold),.5===n&&c.upperHalf,e.unselectedIcon.className)),e.selectedIcon&&(e.selectedIcon.className=Qe(tb,l,"brand"===t&&c.brand,"marigold"===t&&c.marigold,.5===n&&c.lowerHalf,e.selectedIcon.className))})(r),io("useRatingItemStyles_unstable")(r),(e=>Wo(e.root,{children:[e.halfValueInput&&Uo(e.halfValueInput,{}),e.fullValueInput&&Uo(e.fullValueInput,{}),e.unselectedIcon&&Uo(e.unselectedIcon,{}),e.selectedIcon&&Uo(e.selectedIcon,{})]}))(r)});ub.displayName="RatingItem";const db="fui-Rating",fb=gn("r2imjyh",null,[".r2imjyh{display:flex;flex-wrap:wrap;}"]),hb=g.forwardRef((e,t)=>{const r=((e,t)=>{const r=wo("rating-"),{color:n="neutral",iconFilled:o=ld,iconOutline:i=cd,max:a=5,name:s=r,onChange:l,step:c=1,size:u="extra-large",itemLabel:d}=e,[f,h]=co({state:e.value,defaultState:e.defaultValue,initialState:0}),p=e=>Oo(e,{constructorName:"HTMLInputElement"})&&"radio"===e.type&&e.name===s,[m,v]=g.useState(void 0),y=g.useMemo(()=>Array.from(Array(a),(e,t)=>g.createElement(ub,{value:t+1,key:t+1})),[a]),b={color:n,iconFilled:o,iconOutline:i,name:s,step:c,size:u,itemLabel:d,value:f,hoveredValue:m,components:{root:"div"},root:wn(Fn("div",{ref:t,children:y,role:"radiogroup",...e},["onChange"]),{elementType:"div"})};return b.root.onChange=e=>{if(p(e.target)){const t=parseFloat(e.target.value);isNaN(t)||(h(t),null==l||l(e,{type:"change",event:e,value:t}))}},b.root.onMouseOver=Bo(e.onMouseOver,e=>{if(p(e.target)){const t=parseFloat(e.target.value);isNaN(t)||v(t)}}),b.root.onMouseLeave=Bo(e.onMouseLeave,e=>{v(void 0)}),b})(e,t),n=(e=>{const{color:t,hoveredValue:r,iconFilled:n,iconOutline:o,itemLabel:i,name:a,step:s,size:l,value:c}=e;return{ratingItem:g.useMemo(()=>({color:t,hoveredValue:r,iconFilled:n,iconOutline:o,interactive:!0,itemLabel:i,name:a,step:s,size:l,value:c}),[t,r,n,o,i,a,s,l,c])}})(r);return(e=>{const t=fb();e.root.className=Qe(db,t,e.root.className)})(r),io("useRatingStyles_unstable")(r),((e,t)=>Uo(Jy,{value:t.ratingItem,children:Uo(e.root,{})}))(r,n)});hb.displayName="Rating";const pb="fui-RatingDisplay",mb="fui-RatingDisplay__valueText",gb="fui-RatingDisplay__countText",vb=gn("rxxdqwu",null,[".rxxdqwu{display:flex;flex-wrap:wrap;align-items:center;}"]),yb=gn("rkwnos5","rwei36a",[".rkwnos5{color:var(--colorNeutralForeground1);margin-left:var(--spacingHorizontalXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}",".rwei36a{color:var(--colorNeutralForeground1);margin-right:var(--spacingHorizontalXS);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),bb=mn({large:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Frg6f3:["f1t5qyk5","f1ikr372"]},extraLarge:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Frg6f3:["foyynoy","f1vcna3q"]},strong:{Bhrd7zp:"fl43uef"},divider:{Ftih45:"f169p45e"}},{d:[".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".foyynoy{margin-left:var(--spacingHorizontalS);}",".f1vcna3q{margin-right:var(--spacingHorizontalS);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",'.f169p45e::before{content:"· ";}']}),wb=g.forwardRef((e,t)=>{const r=((e,t)=>{const{color:r="neutral",count:n,compact:o=!1,icon:i=ld,max:a=5,size:s="medium",value:l}=e,c=wo("rating-value-"),u=wo("rating-count-"),d=g.useMemo(()=>o?g.createElement(ub,{value:1,key:1,"aria-hidden":!0}):Array.from(Array(a),(e,t)=>g.createElement(ub,{value:t+1,key:t+1,"aria-hidden":!0})),[o,a]),f={color:r,compact:o,icon:i,max:a,size:s,value:l,components:{root:"div",valueText:"span",countText:"span"},root:wn(Fn("div",{ref:t,children:d,role:"img",...e}),{elementType:"div"}),valueText:xn(e.valueText,{renderByDefault:void 0!==l,defaultProps:{children:l,id:c,"aria-hidden":!0},elementType:"span"}),countText:xn(e.countText,{renderByDefault:void 0!==n,defaultProps:{children:null==n?void 0:n.toLocaleString(),id:u,"aria-hidden":!0},elementType:"span"})};var h,p;return f.root["aria-label"]||f.root["aria-labelledby"]||(f.root["aria-labelledby"]=[null===(h=f.valueText)||void 0===h?void 0:h.id,null===(p=f.countText)||void 0===p?void 0:p.id].filter(Boolean).join(" ")),f})(e,t),n=(e=>{const{color:t,compact:r,icon:n,size:o,value:i}=e;return{ratingItem:g.useMemo(()=>({color:t,compact:r,iconFilled:n,iconOutline:n,interactive:!1,step:.5,size:o,value:i}),[t,r,n,o,i])}})(r);return(e=>{const{size:t}=e,r=vb();e.root.className=Qe(pb,r,e.root.className);const n=yb(),o=bb();e.valueText&&(e.valueText.className=Qe(mb,n,o.strong,"large"===t&&o.large,"extra-large"===t&&o.extraLarge,e.valueText.className)),e.countText&&(e.countText.className=Qe(gb,n,"large"===t&&o.large,"extra-large"===t&&o.extraLarge,e.valueText&&o.divider,e.countText.className))})(r),io("useRatingDisplayStyles_unstable")(r),((e,t)=>Uo(Jy,{value:t.ratingItem,children:Wo(e.root,{children:[e.root.children,e.valueText&&Uo(e.valueText,{}),e.countText&&Uo(e.countText,{})]})}))(r,n)});wb.displayName="RatingDisplay";const xb=["above","after","after-top","before","before-top"],Sb=(e,t)=>{const r=g.Children.toArray(e);if(t)return{trigger:r[0]};let n,o;return 2===r.length?(n=r[0],o=r[1]):1===r.length&&(o=r[0]),{trigger:n,popover:o}},kb={triggerRef:g.createRef(),popoverRef:g.createRef(),targetRef:g.createRef(),tagPickerGroupRef:g.createRef(),secondaryActionRef:g.createRef(),open:!1,clearSelection:()=>null,getOptionById:()=>{},selectedOptions:[],selectOption:()=>null,setHasFocus:()=>null,setOpen:()=>null,setValue:()=>null,value:void 0,popoverId:"",size:"medium",appearance:"outline",disabled:!1},Eb=bu(void 0),Tb=Eb.Provider,_b=e=>wu(Eb,(t=kb)=>e(t));const Cb=()=>{},Ab=g.memo(e=>{const t=(e=>{const t=wo("picker-listbox"),r=g.useRef(null),n=g.useRef(null),o=g.useRef(null),{positioning:i,size:a="medium",inline:s=!1,noPopover:l=!1}=e,{targetRef:c,containerRef:u}=Dh({position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:xb,matchTargetSize:"width",...Sh(i)}),{controller:d,activeParentRef:f,listboxRef:h}=$u({matchOption:e=>e.classList.contains(Sm)}),p=Om({...e,onOptionSelect:vo((t,r)=>{var n;return null===(n=e.onOptionSelect)||void 0===n?void 0:n.call(e,t,{selectedOptions:r.selectedOptions,value:r.optionValue,type:t.type,event:t})}),onOpenChange:vo((t,r)=>{var n;return null===(n=e.onOpenChange)||void 0===n?void 0:n.call(e,t,{...r,type:t.type,event:t})}),activeDescendantController:d,editable:!0,multiselect:!0,size:"medium"}),{trigger:m,popover:v}=Sb(e.children,l);return{activeDescendantController:d,components:{},trigger:m,popover:p.open||p.hasFocus?v:void 0,popoverId:t,noPopover:l,disabled:p.disabled,triggerRef:xo(r,f),popoverRef:xo(h,u),secondaryActionRef:n,tagPickerGroupRef:o,targetRef:c,size:a,inline:s,open:p.open,mountNode:p.mountNode,onOptionClick:vo(e=>{p.onOptionClick(e),p.setOpen(e,!1)}),appearance:p.appearance,clearSelection:p.clearSelection,getOptionById:p.getOptionById,getOptionsMatchingValue:p.getOptionsMatchingValue,registerOption:p.registerOption,selectedOptions:p.selectedOptions,selectOption:vo((t,r)=>{var n;!p.selectedOptions.includes(r.value)||Lo(o.current,t.target)?p.selectOption(t,r):null===(n=e.onOptionSelect)||void 0===n||n.call(e,t,{selectedOptions:p.selectedOptions,value:r.value,type:t.type,event:t})}),setHasFocus:p.setHasFocus,setOpen:p.setOpen,setValue:p.setValue,value:p.value}})(e),r=function(e){const{onOptionClick:t,registerOption:r,selectedOptions:n,selectOption:o,value:i,triggerRef:a,secondaryActionRef:s,tagPickerGroupRef:l,targetRef:c,size:u,setValue:d,setOpen:f,setHasFocus:h,popoverRef:p,appearance:m,clearSelection:v,getOptionById:y,getOptionsMatchingValue:b,open:w,popoverId:x,disabled:S,noPopover:k}=e;return{activeDescendant:g.useMemo(()=>({controller:e.activeDescendantController}),[e.activeDescendantController]),listbox:{onOptionClick:t,registerOption:r,getOptionById:y,getOptionsMatchingValue:b,selectedOptions:n,selectOption:o,focusVisible:!1,setActiveOption:Cb},picker:{value:i,triggerRef:a,targetRef:c,secondaryActionRef:s,tagPickerGroupRef:l,size:u,setValue:d,setOpen:f,setHasFocus:h,selectOption:o,popoverRef:p,selectedOptions:n,appearance:m,clearSelection:v,getOptionById:y,open:w,popoverId:x,disabled:S,noPopover:k}}}(t);return((e,t)=>g.createElement(Tb,{value:t.picker},g.createElement(zu,{value:t.activeDescendant},g.createElement(vm,{value:t.listbox},e.trigger,e.inline?e.popover:g.createElement(cp,{mountNode:e.mountNode},e.popover)))))(t,r)});Ab.displayName="TagPicker";const Ib="--fluent-TagPickerInput__width",Pb=e=>{e.style.removeProperty(Ib),e.scrollWidth>e.offsetWidth+1?e.style.setProperty(Ib,"100%"):e.style.removeProperty(Ib)},Nb="fui-TagPickerInput",Bb=gn("r1hdk6fw",null,[".r1hdk6fw{background-color:var(--colorTransparentBackground);color:var(--colorNeutralForeground1);font-family:var(--fontFamilyBase);box-sizing:border-box;border:none;min-width:24px;max-width:100%;width:var(--fluent-TagPickerInput__width, 0);flex-grow:1;}",".r1hdk6fw:focus{outline-style:none;}",".r1hdk6fw::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r1hdk6fw::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r1hdk6fw::placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r1hdk6fw::after{visibility:hidden;white-space:pre-wrap;}"]),Ob=mn({medium:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fa2pw7h"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"ft37c3"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f3abo53"},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",[".fa2pw7h{padding:var(--spacingVerticalSNudge) 0 var(--spacingVerticalSNudge) 0;}",{p:-1}],[".ft37c3{padding:var(--spacingVerticalMNudge) 0 var(--spacingVerticalMNudge) 0;}",{p:-1}],[".f3abo53{padding:var(--spacingVerticalM) 0 var(--spacingVerticalM) 0;}",{p:-1}],".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),Db=g.forwardRef((e,t)=>{const r=((e,t)=>{const r=Xp(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0}),{controller:n}=ju(),o=_b(e=>e.size),i=_b(e=>e.disabled),a=_b(e=>e.tagPickerGroupRef),s=_b(e=>e.triggerRef),l=_b(e=>e.selectedOptions),c=_b(e=>e.setValue),u=_b(e=>e.setOpen),d=_b(e=>e.setHasFocus),f=_b(e=>e.clearSelection),h=_b(e=>e.open),p=_b(e=>e.noPopover?void 0:e.popoverId),m=_b(e=>e.selectOption),v=_b(e=>e.getOptionById),y=_b(e=>e.value);go(()=>{s.current&&Pb(s.current)},[l,s]),go(()=>{if(s.current){const e=s.current,t=()=>Pb(e);return e.addEventListener("input",t),()=>{e.removeEventListener("input",t)}}},[s]);const{value:b=y,disabled:w=i}=r,{findLastFocusable:x}=ps(),S=g.useRef(!1);return{components:{root:"input"},root:Mm({type:"text",value:null!=b?b:"","aria-controls":h?p:void 0,disabled:w,...Fn("input",r),onKeyDown:vo(e=>{var t,n;null===(t=r.onKeyDown)||void 0===t||t.call(r,e),e.key!==Tu&&e.key!==Nu||0!==e.currentTarget.selectionStart||0!==e.currentTarget.selectionEnd||!a.current?e.key===ku?h&&!S.current&&u(e,!1):e.key===Su&&(h?lp.unstable_batchedUpdates(()=>{c(void 0),u(e,!1)}):u(e,!0)):null===(n=x(a.current))||void 0===n||n.focus(),S.current=1===e.key.length&&e.code!==ku&&!e.altKey&&!e.ctrlKey&&!e.metaKey})},xo(s,t),{activeDescendantController:n,freeform:!1,state:{clearSelection:f,getOptionById:v,open:h,selectedOptions:l,selectOption:m,setHasFocus:d,setOpen:u,setValue:c,multiselect:!0,value:r.value}}),disabled:w,size:o}})(e,t);return(e=>{const t=Bb(),r=Ob();e.root.className=Qe(Nb,t,r[e.size],e.disabled&&r.disabled,e.root.className)})(r),io("useTagPickerInputStyles_unstable")(r),(e=>Uo(e.root,{}))(r)});Db.displayName="TagPickerInput";const Rb="fui-TagPickerList",Mb=mn({root:{E5pizo:"f1hg901r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bxyxcbc:"fmmk62d",B7ck84d:"f1ewtqcl"},collapsed:{mc9l5x:"fjseox"}},{d:[".f1hg901r{box-shadow:var(--shadow16);}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fmmk62d{max-height:80vh;}",".f1ewtqcl{box-sizing:border-box;}",".fjseox{display:none;}"]}),zb=g.forwardRef((e,t)=>{const r=((e,t)=>{const r=_b(e=>e.triggerRef),n=_b(e=>e.popoverRef),o=_b(e=>e.popoverId);return{open:_b(e=>e.open),components:{root:Pm},root:wn({...Dm(e,xo(n,t),{state:{multiselect:!0},triggerRef:r,defaultProps:{id:o}}),role:"listbox"},{elementType:Pm})}})(e,t);return(e=>{const t=Mb();e.root.className=Qe(Rb,t.root,!e.open&&t.collapsed,e.root.className)})(r),io("useTagPickerListStyles_unstable")(r),(e=>Uo(e.root,{}))(r)});zb.displayName="TagPickerList";const jb="fui-TagPickerControl",Lb="fui-TagPickerControl__expandIcon",Fb="fui-TagPickerControl__secondaryAction",Vb="fui-TagPickerControl__aside",qb=mn({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",z189sj:["f1d8q41i","f8lqu5g"],uwmqm3:["f1uw59to","fw5db7e"],Bt984gj:"f122n59",i8kkvl:"f14mj54c",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",Eh141a:"fni485r",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"f145g4dw",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],B1q35kw:0,Bw17bha:0,Bcgy8vk:0,Bjuhk93:"f1mnjydx",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51"},listbox:{E5pizo:"f1hg901r",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bxyxcbc:"fmmk62d",B7ck84d:"f1ewtqcl"},listboxCollapsed:{mc9l5x:"fjseox"},medium:{sshi5w:"f1nxs5xn"},large:{sshi5w:"f1w5jphr"},"extra-large":{sshi5w:"f5pgtk9"},outline:{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:"f1c1zstj",oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fhz96rm"},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"f1z0osm6",B50zh58:["f4ruux4","f1assf6x"],Bvq3b66:"f1b473iu",Brahy3i:["f381qr8","ft4skwv"],zoxjo1:"f1qzcrsd",an54nd:["ft4skwv","f381qr8"]},underline:{De3pzq:"f1c21dwh",B9xav0g:0,oivjwe:0,Bn0qgzm:0,Bgfg5da:"f9ez7ne",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779"},"filled-lighter":{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f88035w"},"filled-darker":{De3pzq:"f16xq7d1",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f88035w"},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]}},{d:[[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1d8q41i{padding-right:calc(var(--spacingHorizontalM) + var(--fui-TagPickerControl-aside-width, 0px));}",".f8lqu5g{padding-left:calc(var(--spacingHorizontalM) + var(--fui-TagPickerControl-aside-width, 0px));}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f122n59{align-items:center;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".fni485r{flex-wrap:wrap;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".f145g4dw::after{height:max(2px, var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",[".f1mnjydx::after{border-bottom:var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);}",{p:-1}],".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".f1nxs5xn{min-height:32px;}",".f1w5jphr{min-height:40px;}",".f5pgtk9{min-height:44px;}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".fhz96rm{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}",{p:-2}],".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f9ez7ne{border-bottom:var(--strokeWidthThin) solid var(--colorNeutralStrokeAccessible);}",{p:-1}],[".fokr779{border-radius:0;}",{p:-1}],[".f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",[".f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-2}],".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".f1b473iu:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".f381qr8:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".ft4skwv:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1qzcrsd:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"]}),Hb=mn({root:{mc9l5x:"f22iagw",qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",j35jbq:["f8b87gs","fedtrts"],Bqenvij:"f1l02sjl",Bceei9c:"f113hnb5"},medium:{sshi5w:"f1nxs5xn"},large:{sshi5w:"f1w5jphr"},"extra-large":{sshi5w:"f5pgtk9"}},{d:[".f22iagw{display:flex;}",".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f8b87gs{right:var(--spacingHorizontalM);}",".fedtrts{left:var(--spacingHorizontalM);}",".f1l02sjl{height:100%;}",".f113hnb5{cursor:text;}",".f1nxs5xn{min-height:32px;}",".f1w5jphr{min-height:40px;}",".f5pgtk9{min-height:44px;}"]}),Ub=mn({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Brf1p80:"f4d9j23",Bt984gj:"f122n59",qb2dma:"fjgzulp",Be2twd7:"f1pp30po",Bo70h7d:"fvc9v3g"},medium:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"],sshi5w:"f1nxs5xn"},large:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"],sshi5w:"f1w5jphr"},"extra-large":{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"],sshi5w:"f5pgtk9"},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".f4d9j23{justify-content:center;}",".f122n59{align-items:center;}",".fjgzulp{align-self:flex-start;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1nxs5xn{min-height:32px;}",".fe5j1ua{font-size:20px;}",".f1w5jphr{min-height:40px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f5pgtk9{min-height:44px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}"]}),Wb=mn({root:{mc9l5x:"f22iagw"}},{d:[".f22iagw{display:flex;}"]});const $b=(e,t)=>{var r;const n=_b(e=>e.targetRef),o=_b(e=>e.triggerRef),i=_b(e=>e.tagPickerGroupRef),a=_b(e=>e.open),s=_b(e=>e.popoverId),l=_b(e=>e.setOpen),c=_b(e=>e.secondaryActionRef),u=_b(e=>e.size),d=_b(e=>e.appearance),f=_b(e=>e.disabled),h="error"===(null===(r=Kp())||void 0===r?void 0:r.validationState),p=_b(e=>{var t;return null!==(t=e.noPopover)&&void 0!==t&&t}),{targetDocument:m}=Qn(),v=wo("tagPicker-"),y=g.useRef(null),b=g.useRef(null),w=g.useRef(null),x=g.useRef(null),S=xn(e.secondaryAction,{elementType:"span"}),k=xo(c,null==S?void 0:S.ref);S&&(S.ref=k);const E=xn(e.expandIcon,{renderByDefault:!p,defaultProps:{"aria-expanded":a,"aria-disabled":f?"true":void 0,children:g.createElement(td,null),role:"button"},elementType:"span"}),T=xo(null==E?void 0:E.ref,w);E&&(E.ref=T);const _=(e=>{const{targetDocument:t}=Qn(),[r]=g.useState(()=>{var r;const n=null==t||null===(r=t.defaultView)||void 0===r?void 0:r.ResizeObserver;if(n)return new n(e)});return g.useCallback(e=>{e?null==r||r.observe(e):null==r||r.disconnect()},[r])})(([e])=>{const t=null==m?void 0:m.defaultView;t&&(y.current=t.requestAnimationFrame(()=>{var t;null===(t=b.current)||void 0===t||t.style.setProperty("--fui-TagPickerControl-aside-width",`${e.contentRect.width}px`)}))}),C=xn(void 0,{elementType:"span",renderByDefault:Boolean(S||E),defaultProps:{ref:_}}),A=xo(x,null==C?void 0:C.ref);C&&(C.ref=A);const I=vo(e=>{var t;e.isDefaultPrevented()||(Lo(w.current,e.target)||e.target===b.current||e.target===i.current||e.target===x.current)&&(e.preventDefault(),l(e,!a),null===(t=o.current)||void 0===t||t.focus())}),P={components:{root:"div",expandIcon:"span",secondaryAction:"span",aside:"span"},root:wn(Fn("div",{ref:xo(t,n,b),"aria-owns":a&&!p?s:void 0,...e,onMouseDown:I}),{elementType:"div"}),aside:C,expandIcon:E,secondaryAction:S,size:u,appearance:d,disabled:f,invalid:h},N=function(e){const{tagPickerId:t,state:r}=e,{targetDocument:n}=Qn(),o=_b(e=>e.triggerRef),i=g.useRef(null),a=!!r.expandIcon,{"aria-label":s,"aria-labelledby":l,id:c}=r.expandIcon||{},u=g.useCallback((e,r)=>{let n,o,i;if(a){const a="Open";s||l||(r?(n=a,i=null!=c?c:`${t}-chevron`,o=`${i} ${r}`):n=e?`${a} ${e}`:a)}return{expandAriaLabel:n,expandAriaLabelledBy:o,expandId:i}},[s,l,c,a,t]),d=g.useCallback(()=>{var e,t;const r=null===(e=o.current)||void 0===e?void 0:e.getAttribute("aria-label"),n=null===(t=o.current)||void 0===t?void 0:t.getAttribute("aria-labelledby"),{expandAriaLabel:a,expandAriaLabelledBy:s,expandId:l}=u(r,n);var c,d,f;s&&(null===(c=i.current)||void 0===c||c.setAttribute("aria-labelledby",s)),a&&(null===(d=i.current)||void 0===d||d.setAttribute("aria-label",a)),l&&(null===(f=i.current)||void 0===f||f.setAttribute("id",l))},[u,o]);return g.useEffect(()=>{const e=s||l;if(!(null==n?void 0:n.defaultView)||!o.current||!a||e)return;const t=n.defaultView;d();const r=new t.MutationObserver(d);return r.observe(o.current,{attributes:!0,attributeFilter:["aria-label","aria-labelledby"]}),()=>r.disconnect()},[u,d,s,l,a,t,o,n]),i}({tagPickerId:v,state:P}),B=xo(null==E?void 0:E.ref,N);return P.expandIcon&&(P.expandIcon.ref=B),g.useEffect(()=>{y.current&&(null==m?void 0:m.defaultView)&&m.defaultView.cancelAnimationFrame(y.current)},[m]),P},Gb=g.forwardRef((e,t)=>{const r=$b(e,t);return(e=>{const t=qb(),r=Ub(),n=Hb(),o=Wb();e.root.className=Qe(jb,t.root,t[e.size],t[e.appearance],!e.disabled&&"outline"===e.appearance&&t.outlineInteractive,e.invalid&&"underline"!==e.appearance&&t.invalid,e.invalid&&"underline"===e.appearance&&t.invalidUnderline,e.disabled&&t.disabled,e.root.className),e.aside&&(e.aside.className=Qe(Vb,n.root,n[e.size],e.aside.className)),e.expandIcon&&(e.expandIcon.className=Qe(Lb,r.icon,r[e.size],e.disabled&&r.disabled,e.expandIcon.className)),e.secondaryAction&&(e.secondaryAction.className=Qe(Fb,o.root,e.secondaryAction.className))})(r),io("useTagPickerControlStyles_unstable")(r),(e=>Wo(e.root,{children:[e.root.children,e.aside&&Wo(e.aside,{children:[e.secondaryAction&&Uo(e.secondaryAction,{}),e.expandIcon&&Uo(e.expandIcon,{})]})]}))(r)});Gb.displayName="TagPickerControl";const Yb="fui-TagPickerOption",Kb="fui-TagPickerOption__media",Xb="fui-TagPickerOption__secondaryContent",Jb=gn("r70qvj9",null,[".r70qvj9{display:flex;align-items:center;}"]),Qb=mn({secondaryContent:{mc9l5x:"f13qh94s",Budl1dq:"fjxzuw"}},{d:[".f13qh94s{display:grid;}",".fjxzuw{grid-template-columns:auto 1fr;}"]}),Zb=gn("r131qrbm",null,[".r131qrbm{grid-column-start:2;grid-row-start:2;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),ew=gn("rrip69g",null,[".rrip69g{grid-row-start:span 2;}"]),tw=g.forwardRef((e,t)=>{const r=((e,t)=>{const r=Nm(e,t);return{components:{...r.components,media:"div",secondaryContent:"span"},media:xn(e.media,{elementType:"div"}),secondaryContent:xn(e.secondaryContent,{elementType:"span"}),root:wn({...r.root,role:"option","aria-checked":e["aria-checked"]},{elementType:"div"})}})(e,t);return(e=>{const t=Jb(),r=Qb(),n=Zb(),o=ew();e.root.className=Qe(Yb,t,e.secondaryContent&&r.secondaryContent,e.root.className),Tm({...e,active:!1,disabled:!1,focusVisible:!1,checkIcon:void 0,selected:!1}),e.media&&(e.media.className=Qe(Kb,o,e.media.className)),e.secondaryContent&&(e.secondaryContent.className=Qe(Xb,n,e.secondaryContent.className))})(r),io("useTagPickerOptionStyles_unstable")(r),(e=>Wo(e.root,{children:[e.media&&Uo(e.media,{}),e.root.children,e.secondaryContent&&Uo(e.secondaryContent,{})]}))(r)});function rw(e){return"filled-darker"===e?"outline":"filled"}tw.displayName="TagPickerOption";const nw=(e,t)=>{const r=_b(e=>e.selectedOptions.length>0),n=_b(e=>1===e.selectedOptions.length),o=_b(e=>e.triggerRef),i=_b(e=>e.tagPickerGroupRef),a=_b(e=>e.selectOption),s=_b(e=>function(e){switch(e){case"medium":default:return"extra-small";case"large":return"small";case"extra-large":return"medium"}}(e.size)),l=_b(e=>e.appearance),c=_b(e=>e.disabled),u=fs({circular:!1,axis:"both",memorizeCurrent:!0}),d=((e,t)=>{const{onDismiss:r,disabled:n=!1,defaultSelectedValues:o,size:i="medium",appearance:a="filled",dismissible:s=!1,role:l="toolbar",onTagSelect:c,selectedValues:u,...d}=e,f=g.useRef(),{targetDocument:h}=Qn(),{findNextFocusable:p,findPrevFocusable:m}=ps(),[v,y]=co({defaultState:o,state:u,initialState:[]}),b=vo((e,t)=>{var n;null==r||r(e,t);const o=null==h?void 0:h.activeElement;if(null===(n=f.current)||void 0===n?void 0:n.contains(o)){const e=p(o,{container:f.current});if(e)return void e.focus();if(null==o?void 0:o.className.includes(Wy)){const e=m(o.parentElement,{container:f.current});null==e||e.focus()}else{const e=m(o,{container:f.current});null==e||e.focus()}}}),w=vo(Bo(c,(e,t)=>{v.includes(t.value)?y(v.filter(e=>e!==t.value)):y([...v,t.value])})),x=fs({circular:!0,axis:"both",memorizeCurrent:!0});return{handleTagDismiss:b,handleTagSelect:c?w:void 0,selectedValues:v,role:l,size:i,disabled:n,appearance:a,dismissible:s,components:{root:"div"},root:wn(Fn("div",{ref:xo(t,f),role:l,"aria-disabled":n,...x,...d}),{elementType:"div"})}})({role:"listbox",disabled:c,...e,...u,size:s,appearance:rw(l),dismissible:!0,onKeyDown:vo(t=>{var r,n;(null===(r=e.onKeyDown)||void 0===r||r.call(e,t),Oo(t.target)&&t.key===_u)&&(null===(n=o.current)||void 0===n||n.focus())}),onDismiss:vo((e,t)=>{var r;(a(e,{value:t.value,id:"ERROR_DO_NOT_USE",text:"ERROR_DO_NOT_USE"}),n&&!e.isDefaultPrevented())&&(null===(r=o.current)||void 0===r||r.focus())})},xo(t,i));return{...d,hasSelectedOptions:r}};function ow(e,t){return e.hasSelectedOptions?((e,t)=>Uo(ky,{value:t.tagGroup,children:Uo(e.root,{})}))(e,t):null}const iw="fui-TagPickerGroup",aw=mn({root:{Eh141a:"fni485r",B7ck84d:"f1ewtqcl",Bceei9c:"f113hnb5"},medium:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fa2pw7h",i8kkvl:0,Belr9w4:0,rmohyg:"fkln5zr"},large:{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fc0zr7g",i8kkvl:0,Belr9w4:0,rmohyg:"f1eyhf9v"},"extra-large":{Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fc0zr7g",i8kkvl:0,Belr9w4:0,rmohyg:"f1eyhf9v"}},{d:[".fni485r{flex-wrap:wrap;}",".f1ewtqcl{box-sizing:border-box;}",".f113hnb5{cursor:text;}",[".fa2pw7h{padding:var(--spacingVerticalSNudge) 0 var(--spacingVerticalSNudge) 0;}",{p:-1}],[".fkln5zr{gap:var(--spacingHorizontalXS);}",{p:-1}],[".fc0zr7g{padding:var(--spacingVerticalS) 0 var(--spacingVerticalS) 0;}",{p:-1}],[".f1eyhf9v{gap:var(--spacingHorizontalSNudge);}",{p:-1}],[".fc0zr7g{padding:var(--spacingVerticalS) 0 var(--spacingVerticalS) 0;}",{p:-1}],[".f1eyhf9v{gap:var(--spacingHorizontalSNudge);}",{p:-1}]]}),sw=e=>{(e=>{const t=Gy(),{size:r}=e;e.root.className=Qe($y,t.base,t[r],e.root.className)})(e);const t=aw();return e.root.className=Qe(iw,t[function(e){switch(e){case"extra-small":default:return"medium";case"small":return"large";case"medium":return"extra-large"}}(e.size)],t.root,e.root.className),e},lw=g.forwardRef((e,t)=>{const r=nw(e,t);return sw(r),io("useTagPickerGroupStyles_unstable")(r),ow(r,function(e){const{handleTagDismiss:t,handleTagSelect:r,selectedValues:n,size:o,disabled:i,appearance:a,dismissible:s,role:l}=e;return{tagGroup:g.useMemo(()=>({handleTagDismiss:t,handleTagSelect:r,selectedValues:n,size:o,disabled:i,appearance:a,dismissible:s,role:l}),[t,r,n,o,i,a,s,l])}}(r))});lw.displayName="TagPickerGroup";const cw=Km,uw=Xm,dw="fui-TagPickerOptionGroup",fw="fui-TagPickerOptionGroup__label",hw=g.forwardRef((e,t)=>{const r=cw(e,t);return(e=>{eg(e),e.root.className=Qe(dw,e.root.className),e.label&&(e.label.className=Qe(fw,e.label.className))})(r),io("useTagPickerOptionGroupStyles_unstable")(r),uw(r)});function pw(e){return g.createElement(tw,{value:e,key:e},e)}hw.displayName="TagPickerOptionGroup";var mw,gw,vw={exports:{}},yw={};var bw=(gw||(gw=1,vw.exports=function(){if(mw)return yw;mw=1;var e=h(),t=Vh(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=t.useSyncExternalStore,o=e.useRef,i=e.useEffect,a=e.useMemo,s=e.useDebugValue;return yw.useSyncExternalStoreWithSelector=function(e,t,l,c,u){var d=o(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=a(function(){function e(e){if(!i){if(i=!0,n=e,e=c(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return o=t}return o=e}if(t=o,r(n,e))return t;var a=c(e);return void 0!==u&&u(t,a)?(n=e,t):(n=e,o=a)}var n,o,i=!1,a=void 0===l?null:l;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]},[t,l,c,u]);var h=n(e,d[0],d[1]);return i(function(){f.hasValue=!0,f.value=h},[h]),s(h),h},yw}()),vw.exports);let ww=function(e){e()};const xw=Symbol.for("react-redux-context"),Sw="undefined"!=typeof globalThis?globalThis:{};function kw(){var e;if(!g.createContext)return{};const t=null!=(e=Sw[xw])?e:Sw[xw]=new Map;let r=t.get(g.createContext);return r||(r=g.createContext(null),t.set(g.createContext,r)),r}const Ew=kw();function Tw(e=Ew){return function(){return g.useContext(e)}}const _w=Tw();let Cw=()=>{throw new Error("uSES not initialized!")};const Aw=(e,t)=>e===t;function Iw(e=Ew){const t=e===Ew?_w:Tw(e);return function(e,r={}){const{equalityFn:n=Aw,stabilityCheck:o,noopCheck:i}="function"==typeof r?{equalityFn:r}:r,{store:a,subscription:s,getServerState:l,stabilityCheck:c,noopCheck:u}=t();g.useRef(!0);const d=g.useCallback({[e.name]:t=>e(t)}[e.name],[e,c,o]),f=Cw(s.addNestedSub,a.getState,l||a.getState,d,n);return g.useDebugValue(f),f}}const Pw=Iw();var Nw,Bw,Ow,Dw,Rw={exports:{}},Mw={};function zw(){return Bw||(Bw=1,Rw.exports=function(){if(Nw)return Mw;Nw=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var f=e.$$typeof;switch(f){case t:switch(e=e.type){case l:case c:case n:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case p:case h:case a:return e;default:return f}}case r:return f}}}function w(e){return b(e)===c}return Mw.AsyncMode=l,Mw.ConcurrentMode=c,Mw.ContextConsumer=s,Mw.ContextProvider=a,Mw.Element=t,Mw.ForwardRef=u,Mw.Fragment=n,Mw.Lazy=p,Mw.Memo=h,Mw.Portal=r,Mw.Profiler=i,Mw.StrictMode=o,Mw.Suspense=d,Mw.isAsyncMode=function(e){return w(e)||b(e)===l},Mw.isConcurrentMode=w,Mw.isContextConsumer=function(e){return b(e)===s},Mw.isContextProvider=function(e){return b(e)===a},Mw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Mw.isForwardRef=function(e){return b(e)===u},Mw.isFragment=function(e){return b(e)===n},Mw.isLazy=function(e){return b(e)===p},Mw.isMemo=function(e){return b(e)===h},Mw.isPortal=function(e){return b(e)===r},Mw.isProfiler=function(e){return b(e)===i},Mw.isStrictMode=function(e){return b(e)===o},Mw.isSuspense=function(e){return b(e)===d},Mw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===i||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},Mw.typeOf=b,Mw}()),Rw.exports}!function(){if(Dw)return Ow;Dw=1;var e=zw(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(r){return e.isMemo(r)?n:o[r.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=n;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;Ow=function e(t,n,o){if("string"!=typeof n){if(d){var f=u(n);f&&f!==d&&e(t,f,o)}var h=s(n);l&&(h=h.concat(l(n)));for(var p=i(t),m=i(n),g=0;g<h.length;++g){var v=h[g];if(!(r[v]||o&&o[v]||m&&m[v]||p&&p[v])){var y=c(n,v);try{a(t,v,y)}catch(Wqe){}}}}return t}}();var jw,Lw,Fw={exports:{}},Vw={};function qw(){const e=ww;let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let e=t;for(;e;)e.callback(),e=e.next})},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let n=!0,o=r={callback:e,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){n&&null!==t&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}Lw||(Lw=1,Fw.exports=function(){if(jw)return Vw;jw=1;var e,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case n:case i:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case h:case f:case a:return e;default:return p}}case r:return p}}}return e=Symbol.for("react.module.reference"),Vw.ContextConsumer=s,Vw.ContextProvider=a,Vw.Element=t,Vw.ForwardRef=c,Vw.Fragment=n,Vw.Lazy=h,Vw.Memo=f,Vw.Portal=r,Vw.Profiler=i,Vw.StrictMode=o,Vw.Suspense=u,Vw.SuspenseList=d,Vw.isAsyncMode=function(){return!1},Vw.isConcurrentMode=function(){return!1},Vw.isContextConsumer=function(e){return m(e)===s},Vw.isContextProvider=function(e){return m(e)===a},Vw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Vw.isForwardRef=function(e){return m(e)===c},Vw.isFragment=function(e){return m(e)===n},Vw.isLazy=function(e){return m(e)===h},Vw.isMemo=function(e){return m(e)===f},Vw.isPortal=function(e){return m(e)===r},Vw.isProfiler=function(e){return m(e)===i},Vw.isStrictMode=function(e){return m(e)===o},Vw.isSuspense=function(e){return m(e)===u},Vw.isSuspenseList=function(e){return m(e)===d},Vw.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===o||t===u||t===d||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===f||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Vw.typeOf=m,Vw}()),Fw.exports;const Hw={notify(){},get:()=>[]};const Uw=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?g.useLayoutEffect:g.useEffect;function Ww({store:e,context:t,children:r,serverState:n,stabilityCheck:o="once",noopCheck:i="once"}){const a=g.useMemo(()=>{const t=function(e){let t,r=Hw,n=0,o=!1;function i(){l.onStateChange&&l.onStateChange()}function a(){n++,t||(t=e.subscribe(i),r=qw())}function s(){n--,t&&0===n&&(t(),t=void 0,r.clear(),r=Hw)}const l={addNestedSub:function(e){a();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,a())},tryUnsubscribe:function(){o&&(o=!1,s())},getListeners:()=>r};return l}(e);return{store:e,subscription:t,getServerState:n?()=>n:void 0,stabilityCheck:o,noopCheck:i}},[e,n,o,i]),s=g.useMemo(()=>e.getState(),[e]);Uw(()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}},[a,s]);const l=t||Ew;return g.createElement(l.Provider,{value:a},r)}function $w(e=Ew){const t=e===Ew?_w:Tw(e);return function(){const{store:e}=t();return e}}const Gw=$w();function Yw(e=Ew){const t=e===Ew?Gw:$w(e);return function(){return t().dispatch}}const Kw=Yw();var Xw,Jw;function Qw(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}Xw=bw.useSyncExternalStoreWithSelector,Cw=Xw,Jw=lp.unstable_batchedUpdates,ww=Jw;var Zw=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),ex=()=>Math.random().toString(36).substring(7).split("").join("."),tx={INIT:`@@redux/INIT${ex()}`,REPLACE:`@@redux/REPLACE${ex()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ex()}`};function rx(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function nx(e,t,r){if("function"!=typeof e)throw new Error(Qw(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(Qw(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(Qw(1));return r(nx)(e,t)}let n=e,o=t,i=new Map,a=i,s=0,l=!1;function c(){a===i&&(a=new Map,i.forEach((e,t)=>{a.set(t,e)}))}function u(){if(l)throw new Error(Qw(3));return o}function d(e){if("function"!=typeof e)throw new Error(Qw(4));if(l)throw new Error(Qw(5));let t=!0;c();const r=s++;return a.set(r,e),function(){if(t){if(l)throw new Error(Qw(6));t=!1,c(),a.delete(r),i=null}}}function f(e){if(!rx(e))throw new Error(Qw(7));if(void 0===e.type)throw new Error(Qw(8));if("string"!=typeof e.type)throw new Error(Qw(17));if(l)throw new Error(Qw(9));try{l=!0,o=n(o,e)}finally{l=!1}return(i=a).forEach(e=>{e()}),e}f({type:tx.INIT});return{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Qw(10));n=e,f({type:tx.REPLACE})},[Zw]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(Qw(11));function r(){const e=t;e.next&&e.next(u())}r();return{unsubscribe:e(r)}},[Zw](){return this}}}}}function ox(e){const t=Object.keys(e),r={};for(let i=0;i<t.length;i++){const n=t[i];"function"==typeof e[n]&&(r[n]=e[n])}const n=Object.keys(r);let o;try{!function(e){Object.keys(e).forEach(t=>{const r=e[t];if(void 0===r(void 0,{type:tx.INIT}))throw new Error(Qw(12));if(void 0===r(void 0,{type:tx.PROBE_UNKNOWN_ACTION()}))throw new Error(Qw(13))})}(r)}catch(Wqe){o=Wqe}return function(e={},t){if(o)throw o;let i=!1;const a={};for(let o=0;o<n.length;o++){const s=n[o],l=r[s],c=e[s],u=l(c,t);if(void 0===u)throw t&&t.type,new Error(Qw(14));a[s]=u,i=i||u!==c}return i=i||n.length!==Object.keys(e).length,i?a:e}}function ix(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}var ax=Symbol.for("immer-nothing"),sx=Symbol.for("immer-draftable"),lx=Symbol.for("immer-state");function cx(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ux=Object.getPrototypeOf;function dx(e){return!!e&&!!e[lx]}function fx(e){return!!e&&(px(e)||Array.isArray(e)||!!e[sx]||!!e.constructor?.[sx]||bx(e)||wx(e))}var hx=Object.prototype.constructor.toString();function px(e){if(!e||"object"!=typeof e)return!1;const t=ux(e);if(null===t)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===hx}function mx(e,t){0===gx(e)?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function gx(e){const t=e[lx];return t?t.type_:Array.isArray(e)?1:bx(e)?2:wx(e)?3:0}function vx(e,t){return 2===gx(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function yx(e,t,r){const n=gx(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function bx(e){return e instanceof Map}function wx(e){return e instanceof Set}function xx(e){return e.copy_||e.base_}function Sx(e,t){if(bx(e))return new Map(e);if(wx(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=px(e);if(!0===t||"class_only"===t&&!r){const t=Object.getOwnPropertyDescriptors(e);delete t[lx];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){const o=r[n],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(ux(e),t)}{const t=ux(e);if(null!==t&&r)return{...e};const n=Object.create(t);return Object.assign(n,e)}}function kx(e,t=!1){return Tx(e)||dx(e)||!fx(e)||(gx(e)>1&&(e.set=e.add=e.clear=e.delete=Ex),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>kx(t,!0))),e}function Ex(){cx(2)}function Tx(e){return Object.isFrozen(e)}var _x,Cx={};function Ax(e){const t=Cx[e];return t||cx(0),t}function Ix(){return _x}function Px(e,t){t&&(Ax("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Nx(e){Bx(e),e.drafts_.forEach(Dx),e.drafts_=null}function Bx(e){e===_x&&(_x=e.parent_)}function Ox(e){return _x={drafts_:[],parent_:_x,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Dx(e){const t=e[lx];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function Rx(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return void 0!==e&&e!==r?(r[lx].modified_&&(Nx(t),cx(4)),fx(e)&&(e=Mx(t,e),t.parent_||jx(t,e)),t.patches_&&Ax("Patches").generateReplacementPatches_(r[lx].base_,e,t.patches_,t.inversePatches_)):e=Mx(t,r,[]),Nx(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ax?e:void 0}function Mx(e,t,r){if(Tx(t))return t;const n=t[lx];if(!n)return mx(t,(o,i)=>zx(e,n,t,o,i,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return jx(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const t=n.copy_;let o=t,i=!1;3===n.type_&&(o=new Set(t),t.clear(),i=!0),mx(o,(o,a)=>zx(e,n,t,o,a,r,i)),jx(e,t,!1),r&&e.patches_&&Ax("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function zx(e,t,r,n,o,i,a){if(dx(o)){const a=Mx(e,o,i&&t&&3!==t.type_&&!vx(t.assigned_,n)?i.concat(n):void 0);if(yx(r,n,a),!dx(a))return;e.canAutoFreeze_=!1}else a&&r.add(o);if(fx(o)&&!Tx(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Mx(e,o),t&&t.scope_.parent_||"symbol"==typeof n||!Object.prototype.propertyIsEnumerable.call(r,n)||jx(e,o)}}function jx(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&kx(t,r)}var Lx={get(e,t){if(t===lx)return e;const r=xx(e);if(!vx(r,t))return function(e,t,r){const n=qx(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}(e,r,t);const n=r[t];return e.finalized_||!fx(n)?n:n===Vx(e.base_,t)?(Ux(e),e.copy_[t]=Wx(n,e)):n},has:(e,t)=>t in xx(e),ownKeys:e=>Reflect.ownKeys(xx(e)),set(e,t,r){const n=qx(xx(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=Vx(xx(e),t),a=n?.[lx];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(((o=r)===(i=n)?0!==o||1/o==1/i:o!=o&&i!=i)&&(void 0!==r||vx(e.base_,t)))return!0;Ux(e),Hx(e)}var o,i;return e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Vx(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Ux(e),Hx(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=xx(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){cx(11)},getPrototypeOf:e=>ux(e.base_),setPrototypeOf(){cx(12)}},Fx={};function Vx(e,t){const r=e[lx];return(r?xx(r):e)[t]}function qx(e,t){if(!(t in e))return;let r=ux(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=ux(r)}}function Hx(e){e.modified_||(e.modified_=!0,e.parent_&&Hx(e.parent_))}function Ux(e){e.copy_||(e.copy_=Sx(e.base_,e.scope_.immer_.useStrictShallowCopy_))}mx(Lx,(e,t)=>{Fx[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Fx.deleteProperty=function(e,t){return Fx.set.call(this,e,t,void 0)},Fx.set=function(e,t,r){return Lx.set.call(this,e[0],t,r,e[0])};function Wx(e,t){const r=bx(e)?Ax("MapSet").proxyMap_(e,t):wx(e)?Ax("MapSet").proxySet_(e,t):function(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Ix(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=n,i=Lx;r&&(o=[n],i=Fx);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,s}(e,t);return(t?t.scope_:Ix()).drafts_.push(r),r}function $x(e){if(!fx(e)||Tx(e))return e;const t=e[lx];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Sx(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Sx(e,!0);return mx(r,(e,t)=>{yx(r,e,$x(t))}),t&&(t.finalized_=!1),r}var Gx=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{if("function"==typeof e&&"function"!=typeof t){const r=t;t=e;const n=this;return function(e=r,...o){return n.produce(e,e=>t.call(this,e,...o))}}let n;if("function"!=typeof t&&cx(6),void 0!==r&&"function"!=typeof r&&cx(7),fx(e)){const o=Ox(this),i=Wx(e,void 0);let a=!0;try{n=t(i),a=!1}finally{a?Nx(o):Bx(o)}return Px(o,r),Rx(n,o)}if(!e||"object"!=typeof e){if(n=t(e),void 0===n&&(n=e),n===ax&&(n=void 0),this.autoFreeze_&&kx(n,!0),r){const t=[],o=[];Ax("Patches").generateReplacementPatches_(e,n,t,o),r(t,o)}return n}cx(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,t=>e(t,...r));let r,n;return[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){fx(e)||cx(8),dx(e)&&(e=function(e){dx(e)||cx(10);return $x(e)}(e));const t=Ox(this),r=Wx(e,void 0);return r[lx].isManual_=!0,Bx(t),r}finishDraft(e,t){const r=e&&e[lx];r&&r.isManual_||cx(9);const{scope_:n}=r;return Px(n,t),Rx(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));const n=Ax("Patches").applyPatches_;return dx(e)?n(e,t):this.produce(e,e=>n(e,t))}},Yx=Gx.produce;Gx.produceWithPatches.bind(Gx),Gx.setAutoFreeze.bind(Gx),Gx.setUseStrictShallowCopy.bind(Gx),Gx.applyPatches.bind(Gx),Gx.createDraft.bind(Gx),Gx.finishDraft.bind(Gx);var Kx=e=>Array.isArray(e)?e:[e];function Xx(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${r}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}var Jx="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function Qx(){return{s:0,v:void 0,o:null,p:null}}function Zx(e,t={}){let r={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:n}=t;let o,i=0;function a(){let t=r;const{length:a}=arguments;for(let e=0,r=a;e<r;e++){const r=arguments[e];if("function"==typeof r||"object"==typeof r&&null!==r){let e=t.o;null===e&&(t.o=e=new WeakMap);const n=e.get(r);void 0===n?(t=Qx(),e.set(r,t)):t=n}else{let e=t.p;null===e&&(t.p=e=new Map);const n=e.get(r);void 0===n?(t=Qx(),e.set(r,t)):t=n}}const s=t;let l;if(1===t.s)l=t.v;else if(l=e.apply(null,arguments),i++,n){const e=o?.deref?.()??o;null!=e&&n(e,l)&&(l=e,0!==i&&i--);o="object"==typeof l&&null!==l||"function"==typeof l?new Jx(l):l}return s.s=1,s.v=l,l}return a.clearCache=()=>{r={s:0,v:void 0,o:null,p:null},a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function eS(e,...t){const r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n=0,o=0,i={},a=e.pop();"object"==typeof a&&(i=a,a=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const s={...r,...i},{memoize:l,memoizeOptions:c=[],argsMemoize:u=Zx,argsMemoizeOptions:d=[]}=s,f=Kx(c),h=Kx(d),p=Xx(e),m=l(function(){return n++,a.apply(null,arguments)},...f),g=u(function(){o++;const e=function(e,t){const r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}(p,arguments);return t=m.apply(null,e),t},...h);return Object.assign(g,{resultFunc:a,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>t,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:l,argsMemoize:u})};return Object.assign(n,{withTypes:()=>n}),n}var tS=eS(Zx),rS=Object.assign((e,t=tS)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const r=Object.keys(e);return t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,n)=>(e[r[n]]=t,e),{}))},{withTypes:()=>rS});function nS(e){return({dispatch:t,getState:r})=>n=>o=>"function"==typeof o?o(t,r,e):n(o)}var oS=nS(),iS=nS,aS="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ix:ix.apply(null,arguments)};function sS(e,t){function r(...r){if(t){let n=t(...r);if(!n)throw new Error(AS(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:r[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>function(e){return rx(e)&&"type"in e&&"string"==typeof e.type}(t)&&t.type===e,r}var lS=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function cS(e){return fx(e)?Yx(e,()=>{}):e}function uS(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}var dS=e=>t=>{setTimeout(t,e)},fS=e=>function(t){const{autoBatch:r=!0}=t??{};let n=new lS(e);return r&&n.push(((e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let o=!0,i=!1,a=!1;const s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:dS(10):"callback"===e.type?e.queueNotification:dS(e.timeout),c=()=>{a=!1,i&&(i=!1,s.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){const t=n.subscribe(()=>o&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return o=!e?.meta?.RTK_autoBatch,i=!o,i&&(a||(a=!0,l(c))),n.dispatch(e)}finally{o=!0}}})})("object"==typeof r?r:void 0)),n};function hS(e){const t={},r=[];let n;const o={addCase(e,r){const n="string"==typeof e?e:e.type;if(!n)throw new Error(AS(28));if(n in t)throw new Error(AS(29));return t[n]=r,o},addMatcher:(e,t)=>(r.push({matcher:e,reducer:t}),o),addDefaultCase:e=>(n=e,o)};return e(o),[t,r,n]}function pS(...e){return t=>e.some(e=>((e,t)=>{return(r=e)&&"function"==typeof r.match?e.match(t):e(t);var r})(e,t))}var mS=["name","message","stack","code"],gS=class{constructor(e,t){this.payload=e,this.meta=t}_type},vS=class{constructor(e,t){this.payload=e,this.meta=t}_type},yS=e=>{if("object"==typeof e&&null!==e){const t={};for(const r of mS)"string"==typeof e[r]&&(t[r]=e[r]);return t}return{message:String(e)}},bS="External signal was aborted",wS=(()=>{function e(e,t,r){const n=sS(e+"/fulfilled",(e,t,r,n)=>({payload:e,meta:{...n||{},arg:r,requestId:t,requestStatus:"fulfilled"}})),o=sS(e+"/pending",(e,t,r)=>({payload:void 0,meta:{...r||{},arg:t,requestId:e,requestStatus:"pending"}})),i=sS(e+"/rejected",(e,t,n,o,i)=>({payload:o,error:(r&&r.serializeError||yS)(e||"Rejected"),meta:{...i||{},arg:n,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===e?.name,condition:"ConditionError"===e?.name}}));return Object.assign(function(e,{signal:a}={}){return(s,l,c)=>{const u=r?.idGenerator?r.idGenerator(e):((e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t})(),d=new AbortController;let f,h;function p(e){h=e,d.abort()}a&&(a.aborted?p(bS):a.addEventListener("abort",()=>p(bS),{once:!0}));const m=async function(){let a;try{let i=r?.condition?.(e,{getState:l,extra:c});if(null!==(m=i)&&"object"==typeof m&&"function"==typeof m.then&&(i=await i),!1===i||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const g=new Promise((e,t)=>{f=()=>{t({name:"AbortError",message:h||"Aborted"})},d.signal.addEventListener("abort",f)});s(o(u,e,r?.getPendingMeta?.({requestId:u,arg:e},{getState:l,extra:c}))),a=await Promise.race([g,Promise.resolve(t(e,{dispatch:s,getState:l,extra:c,requestId:u,signal:d.signal,abort:p,rejectWithValue:(e,t)=>new gS(e,t),fulfillWithValue:(e,t)=>new vS(e,t)})).then(t=>{if(t instanceof gS)throw t;return t instanceof vS?n(t.payload,u,e,t.meta):n(t,u,e)})])}catch(g){a=g instanceof gS?i(null,u,e,g.payload,g.meta):i(g,u,e)}finally{f&&d.signal.removeEventListener("abort",f)}var m;return r&&!r.dispatchConditionRejection&&i.match(a)&&a.meta.condition||s(a),a}();return Object.assign(m,{abort:p,requestId:u,arg:e,unwrap:()=>m.then(xS)})}},{pending:o,rejected:i,fulfilled:n,settled:pS(i,n),typePrefix:e})}return e.withTypes=()=>e,e})();function xS(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var SS=Symbol.for("rtk-slice-createasyncthunk");function kS(e,t){return`${e}/${t}`}function ES({creators:e}={}){const t=e?.asyncThunk?.[SS];return function(e){const{name:r,reducerPath:n=r}=e;if(!r)throw new Error(AS(11));const o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},i=Object.keys(o),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){const r="string"==typeof e?e:e.type;if(!r)throw new Error(AS(12));if(r in a.sliceCaseReducersByType)throw new Error(AS(13));return a.sliceCaseReducersByType[r]=t,s},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),s),exposeAction:(e,t)=>(a.actionCreators[e]=t,s),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,s)};function l(){const[t={},r=[],n]="function"==typeof e.extraReducers?hS(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return function(e,t){let r,[n,o,i]=hS(t);if("function"==typeof e)r=()=>cS(e());else{const t=cS(e);r=()=>t}function a(e=r(),t){let a=[n[t.type],...o.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===a.filter(e=>!!e).length&&(a=[i]),a.reduce((e,r)=>{if(r){if(dx(e)){const n=r(e,t);return void 0===n?e:n}if(fx(e))return Yx(e,e=>r(e,t));{const n=r(e,t);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}}return e},e)}return a.getInitialState=r,a}(e.initialState,e=>{for(let t in o)e.addCase(t,o[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)})}i.forEach(n=>{const i=o[n],a={reducerName:n,type:kS(r,n),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(i)?function({type:e,reducerName:t,createNotation:r},n,o){let i,a;if("reducer"in n){if(r&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(n))throw new Error(AS(17));i=n.reducer,a=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?sS(e,a):sS(e))}(a,i,s):function({type:e,reducerName:t},r,n,o){if(!o)throw new Error(AS(18));const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=r,d=o(e,i,u);n.exposeAction(t,d),a&&n.addCase(d.fulfilled,a);s&&n.addCase(d.pending,s);l&&n.addCase(d.rejected,l);c&&n.addMatcher(d.settled,c);n.exposeCaseReducer(t,{fulfilled:a||CS,pending:s||CS,rejected:l||CS,settled:c||CS})}(a,i,s,t)});const c=e=>e,u=new Map,d=new WeakMap;let f;function h(e,t){return f||(f=l()),f(e,t)}function p(){return f||(f=l()),f.getInitialState()}function m(t,r=!1){function n(e){let o=e[t];return void 0===o&&r&&(o=uS(d,n,p)),o}function o(t=c){const n=uS(u,r,()=>new WeakMap);return uS(n,t,()=>{const n={};for(const[o,i]of Object.entries(e.selectors??{}))n[o]=TS(i,t,()=>uS(d,t,p),r);return n})}return{reducerPath:t,getSelectors:o,get selectors(){return o(n)},selectSlice:n}}const g={name:r,reducer:h,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:p,...m(n),injectInto(e,{reducerPath:t,...r}={}){const o=t??n;return e.inject({reducerPath:o,reducer:h},r),{...g,...m(o,!0)}}};return g}}function TS(e,t,r,n){function o(o,...i){let a=t(o);return void 0===a&&n&&(a=r()),e(a,...i)}return o.unwrapped=e,o}var _S=ES();function CS(){}function AS(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const IS=_S({name:"externalPrompt",initialState:{isWelcomeMessageReady:!1,draftRequest:null,focusRequest:null},reducers:{setWelcomeMessageReady:e=>{e.isWelcomeMessageReady=!0},resetWelcomeMessageReady:e=>{e.isWelcomeMessageReady=!1},executeExternalPrompt:(e,t)=>{},queueDraftRequest:(e,t)=>{e.draftRequest={value:t.payload.value,requestId:(e.draftRequest?.requestId??0)+1}},clearDraftRequest:e=>{e.draftRequest=null},queueFocusRequest:(e,t)=>{e.focusRequest={requestId:(e.focusRequest?.requestId??0)+1,delayMs:t.payload.delayMs??300}},clearFocusRequest:e=>{e.focusRequest=null}}}),{setWelcomeMessageReady:PS,executeExternalPrompt:NS,queueDraftRequest:BS,clearDraftRequest:OS,queueFocusRequest:DS,clearFocusRequest:RS}=IS.actions,MS=e=>e.externalPrompt.isWelcomeMessageReady,zS=e=>e.externalPrompt.draftRequest,jS=e=>e.externalPrompt.focusRequest,LS=IS.reducer,FS="persistent-prompt-banner",VS=_S({name:"persistentBanner",initialState:{isVisible:!0,isUserDismissed:!1},reducers:{hidePersistentBanner:e=>{e.isVisible=!1,e.isUserDismissed=!0},showPersistentBanner:e=>{e.isVisible=!0,e.isUserDismissed=!1}},extraReducers:e=>{e.addCase(NS,(e,t)=>{t.payload.metadata?.source===FS&&(e.isVisible=!1)})}}),{hidePersistentBanner:qS,showPersistentBanner:HS}=VS.actions,US=e=>e.persistentBanner.isVisible,WS=VS.reducer,$S=_S({name:"optionsProvider",initialState:{options:{}},reducers:{setOptions:(e,t)=>{e.options=t.payload}}}),{setOptions:GS}=$S.actions,YS=$S.reducer,{log:KS}=R.withKind("messageSubmissionLockSlice"),XS=_S({name:"messageSubmissionLock",initialState:{enabled:!1,status:"idle",lockId:0,lockedAt:null},reducers:{setMessageSubmissionLockEnabled:(e,t)=>{e.enabled=t.payload,t.payload||(e.status="idle",e.lockedAt=null)},messageSubmissionLockEngaged:(e,t)=>{e.enabled&&(KS("messageSubmissionLockEngaged",t.payload.lockedAt),e.status="locked",e.lockId+=1,e.lockedAt=t.payload.lockedAt)},messageSubmissionLockReleased:(e,t)=>{t.payload.lockId===e.lockId?(KS("messageSubmissionLockReleased",t.payload.lockId),e.status="idle",e.lockedAt=null):KS("messageSubmissionLockReleased ignored (stale generation)",t.payload.lockId,e.lockId)}},selectors:{isMessageSubmissionLockEnabledSelector:e=>e.enabled,isMessageSubmissionLockedSelector:e=>"locked"===e.status,lockIdSelector:e=>e.lockId,lockedAtSelector:e=>e.lockedAt}}),{messageSubmissionLockEngaged:JS,messageSubmissionLockReleased:QS,setMessageSubmissionLockEnabled:ZS}=XS.actions,{isMessageSubmissionLockEnabledSelector:ek,isMessageSubmissionLockedSelector:tk,lockIdSelector:rk,lockedAtSelector:nk}=XS.selectors,ok=XS.reducer,ik={"3237876c-9234-447f-987c-559ac6194158":{default_promptId:{"en-US":["How can I try Azure for free?","Help me choose the right Azure product.","How can I estimate my costs?","How do I create a billing or technical support ticket?"]}},"89ad2ef5-000e-4446-be6d-7d88a1383d5a":{default_promptId:{"en-US":["What is Power Platform?","What is the pricing on Power Platform?","How can I try Power Platform?","How does Power Platform work with M365 Copilot? "]}},default:{default_promptId:{"en-US":["How can Copilot help my business?","How do I try Microsoft 365 for my business?","Connect me with sales representative"]}}},{logError:ak}=R.withKind("promptStore"),sk=(e,t,r="en-US")=>{try{const n=ik[e];if(n&&n[t]){const e=n[t][r];if(e&&Array.isArray(e))return e;if("en-US"!==r&&n[t]["en-US"])return n[t]["en-US"].slice()}return"default"!==e?sk("default","general_promptId",r):[]}catch(n){return ak("Failed to get prompts from local store.",n),[]}};sk("default","general_promptId","en-US");const lk={},ck=function(e,t,r){let n=Promise.resolve();if(t&&t.length>0){let e=function(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))};document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),o=r?.nonce||r?.getAttribute("nonce");n=e(t.map(e=>{if((e=function(e){return"https://webassistant-prod.microsoft.com/webassistant/v1/"+e}(e))in lk)return;lk[e]=!0;const t=e.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${r}`))return;const n=document.createElement("link");return n.rel=t?"stylesheet":"modulepreload",t||(n.as="script"),n.crossOrigin="",n.href=e,o&&n.setAttribute("nonce",o),document.head.appendChild(n),t?new Promise((t,r)=>{n.addEventListener("load",t),n.addEventListener("error",()=>r(new Error(`Unable to preload CSS for ${e}`)))}):void 0}))}function o(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return n.then(t=>{for(const e of t||[])"rejected"===e.status&&o(e.reason);return e().catch(o)})};function uk(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function dk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return uk(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?uk(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const fk=Object.entries,hk=Object.setPrototypeOf,pk=Object.isFrozen,mk=Object.getPrototypeOf,gk=Object.getOwnPropertyDescriptor;let vk=Object.freeze,yk=Object.seal,bk=Object.create,wk="undefined"!=typeof Reflect&&Reflect,xk=wk.apply,Sk=wk.construct;vk||(vk=function(e){return e}),yk||(yk=function(e){return e}),xk||(xk=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return e.apply(t,n)}),Sk||(Sk=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new e(...r)});const kk=Uk(Array.prototype.forEach),Ek=Uk(Array.prototype.lastIndexOf),Tk=Uk(Array.prototype.pop),_k=Uk(Array.prototype.push),Ck=Uk(Array.prototype.splice),Ak=Array.isArray,Ik=Uk(String.prototype.toLowerCase),Pk=Uk(String.prototype.toString),Nk=Uk(String.prototype.match),Bk=Uk(String.prototype.replace),Ok=Uk(String.prototype.indexOf),Dk=Uk(String.prototype.trim),Rk=Uk(Number.prototype.toString),Mk=Uk(Boolean.prototype.toString),zk="undefined"==typeof BigInt?null:Uk(BigInt.prototype.toString),jk="undefined"==typeof Symbol?null:Uk(Symbol.prototype.toString),Lk=Uk(Object.prototype.hasOwnProperty),Fk=Uk(Object.prototype.toString),Vk=Uk(RegExp.prototype.test),qk=(Hk=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Sk(Hk,t)});var Hk;function Uk(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return xk(e,t,n)}}function Wk(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ik;if(hk&&hk(e,null),!Ak(t))return e;let n=t.length;for(;n--;){let o=t[n];if("string"==typeof o){const e=r(o);e!==o&&(pk(t)||(t[n]=e),o=e)}e[o]=!0}return e}function $k(e){for(let t=0;t<e.length;t++){Lk(e,t)||(e[t]=null)}return e}function Gk(e){const t=bk(null);for(const n of fk(e)){var r=dk(n,2);const o=r[0],i=r[1];Lk(e,o)&&(Ak(i)?t[o]=$k(i):i&&"object"==typeof i&&i.constructor===Object?t[o]=Gk(i):t[o]=i)}return t}function Yk(e,t){for(;null!==e;){const r=gk(e,t);if(r){if(r.get)return Uk(r.get);if("function"==typeof r.value)return Uk(r.value)}e=mk(e)}return function(){return null}}const Kk=vk(["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"]),Xk=vk(["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"]),Jk=vk(["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"]),Qk=vk(["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"]),Zk=vk(["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"]),eE=vk(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),tE=vk(["#text"]),rE=vk(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),nE=vk(["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","dominant-baseline","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-orientation","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"]),oE=vk(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),iE=vk(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),aE=yk(/{{[\w\W]*|^[\w\W]*}}/g),sE=yk(/<%[\w\W]*|^[\w\W]*%>/g),lE=yk(/\${[\w\W]*/g),cE=yk(/^data-[\-\w.\u00B7-\uFFFF]+$/),uE=yk(/^aria-[\-\w]+$/),dE=yk(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fE=yk(/^(?:\w+script|data):/i),hE=yk(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),pE=yk(/^html$/i),mE=yk(/^[a-z][.\w]*(-[.\w]+)+$/i),gE=yk(/<[/\w!]/g),vE=yk(/<[/\w]/g),yE=yk(/<\/no(script|embed|frames)/i),bE=yk(/\/>/i),wE=1,xE=3,SE=7,kE=8,EE=9,TE=11,_E=function(e,t,r,n){return Lk(e,t)&&Ak(e[t])?Wk(n.base?Gk(n.base):{},e[t],n.transform):r};var CE=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const r=t=>e(t);if(r.version="3.4.12",r.removed=[],!t||!t.document||t.document.nodeType!==EE||!t.Element)return r.isSupported=!1,r;let n=t.document;const o=n,i=o.currentScript;t.DocumentFragment;const a=t.HTMLTemplateElement,s=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap;void 0===u&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,f=t.trustedTypes,h=l.prototype,p=Yk(h,"cloneNode"),m=Yk(h,"remove"),g=Yk(h,"nextSibling"),v=Yk(h,"childNodes"),y=Yk(h,"parentNode"),b=Yk(h,"shadowRoot"),w=Yk(h,"attributes"),x=s&&s.prototype?Yk(s.prototype,"nodeType"):null,S=s&&s.prototype?Yk(s.prototype,"nodeName"):null;if("function"==typeof a){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let k,E,T="",_=!1,C=0;const A=function(){if(C>0)throw qk('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},I=function(e){A(),C++;try{return k.createHTML(e)}finally{C--}},P=function(){return _||(E=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(i){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(f,i),_=!0),E},N=n,B=N.implementation,O=N.createNodeIterator,D=N.createDocumentFragment,R=N.getElementsByTagName,M=o.importNode;let z={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof fk&&"function"==typeof y&&B&&void 0!==B.createHTMLDocument;const j=aE,L=sE,F=lE,V=cE,q=uE,H=fE,U=hE,W=mE;let $=dE,G=null;const Y=Wk({},[...Kk,...Xk,...Jk,...Zk,...tE]);let K=null;const X=Wk({},[...rE,...nE,...oE,...iE]);let J=Object.seal(bk(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}})),Q=null,Z=null;const ee=Object.seal(bk(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let te=!0,re=!0,ne=!1,oe=!0,ie=!1,ae=!0,se=!1,le=!1,ce=null,ue=null,de=!1,fe=!1,he=!1,pe=!1,me=!0,ge=!1;const ve="user-content-";let ye=!0,be=!1,we={},xe=null;const Se=Wk({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let ke=null;const Ee=Wk({},["audio","video","img","source","image","track"]);let Te=null;const _e=Wk({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ce="http://www.w3.org/1998/Math/MathML",Ae="http://www.w3.org/2000/svg",Ie="http://www.w3.org/1999/xhtml";let Pe=Ie,Ne=!1,Be=null;const Oe=Wk({},[Ce,Ae,Ie],Pk),De=vk(["mi","mo","mn","ms","mtext"]);let Re=Wk({},De);const Me=vk(["annotation-xml"]);let ze=Wk({},Me);const je=Wk({},["title","style","font","a","script"]);let Le=null;const Fe=["application/xhtml+xml","text/html"];let Ve=null,qe=null;const He=n.createElement("form"),Ue=function(e){return e instanceof RegExp||e instanceof Function},We=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(qe&&qe===e)return;e&&"object"==typeof e||(e={}),e=Gk(e),Le=-1===Fe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ve="application/xhtml+xml"===Le?Pk:Ik,G=_E(e,"ALLOWED_TAGS",Y,{transform:Ve}),K=_E(e,"ALLOWED_ATTR",X,{transform:Ve}),Be=_E(e,"ALLOWED_NAMESPACES",Oe,{transform:Pk}),Te=_E(e,"ADD_URI_SAFE_ATTR",_e,{transform:Ve,base:_e}),ke=_E(e,"ADD_DATA_URI_TAGS",Ee,{transform:Ve,base:Ee}),xe=_E(e,"FORBID_CONTENTS",Se,{transform:Ve}),Q=_E(e,"FORBID_TAGS",Gk({}),{transform:Ve}),Z=_E(e,"FORBID_ATTR",Gk({}),{transform:Ve}),we=!!Lk(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?Gk(e.USE_PROFILES):e.USE_PROFILES),te=!1!==e.ALLOW_ARIA_ATTR,re=!1!==e.ALLOW_DATA_ATTR,ne=e.ALLOW_UNKNOWN_PROTOCOLS||!1,oe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ie=e.SAFE_FOR_TEMPLATES||!1,ae=!1!==e.SAFE_FOR_XML,se=e.WHOLE_DOCUMENT||!1,fe=e.RETURN_DOM||!1,he=e.RETURN_DOM_FRAGMENT||!1,pe=e.RETURN_TRUSTED_TYPE||!1,de=e.FORCE_BODY||!1,me=!1!==e.SANITIZE_DOM,ge=e.SANITIZE_NAMED_PROPS||!1,ye=!1!==e.KEEP_CONTENT,be=e.IN_PLACE||!1,$=function(e){try{return Vk(e,""),!0}catch(t){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:dE,Pe="string"==typeof e.NAMESPACE?e.NAMESPACE:Ie,Re=Lk(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?Gk(e.MATHML_TEXT_INTEGRATION_POINTS):Wk({},De),ze=Lk(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?Gk(e.HTML_INTEGRATION_POINTS):Wk({},Me);const t=Lk(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?Gk(e.CUSTOM_ELEMENT_HANDLING):bk(null);if(J=bk(null),Lk(t,"tagNameCheck")&&Ue(t.tagNameCheck)&&(J.tagNameCheck=t.tagNameCheck),Lk(t,"attributeNameCheck")&&Ue(t.attributeNameCheck)&&(J.attributeNameCheck=t.attributeNameCheck),Lk(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(J.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),yk(J),ie&&(re=!1),he&&(fe=!0),we&&(G=Wk({},tE),K=bk(null),!0===we.html&&(Wk(G,Kk),Wk(K,rE)),!0===we.svg&&(Wk(G,Xk),Wk(K,nE),Wk(K,iE)),!0===we.svgFilters&&(Wk(G,Jk),Wk(K,nE),Wk(K,iE)),!0===we.mathMl&&(Wk(G,Zk),Wk(K,oE),Wk(K,iE))),ee.tagCheck=null,ee.attributeCheck=null,Lk(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?ee.tagCheck=e.ADD_TAGS:Ak(e.ADD_TAGS)&&(G===Y&&(G=Gk(G)),Wk(G,e.ADD_TAGS,Ve))),Lk(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?ee.attributeCheck=e.ADD_ATTR:Ak(e.ADD_ATTR)&&(K===X&&(K=Gk(K)),Wk(K,e.ADD_ATTR,Ve))),Lk(e,"ADD_URI_SAFE_ATTR")&&Ak(e.ADD_URI_SAFE_ATTR)&&Wk(Te,e.ADD_URI_SAFE_ATTR,Ve),Lk(e,"FORBID_CONTENTS")&&Ak(e.FORBID_CONTENTS)&&(xe===Se&&(xe=Gk(xe)),Wk(xe,e.FORBID_CONTENTS,Ve)),Lk(e,"ADD_FORBID_CONTENTS")&&Ak(e.ADD_FORBID_CONTENTS)&&(xe===Se&&(xe=Gk(xe)),Wk(xe,e.ADD_FORBID_CONTENTS,Ve)),ye&&(G["#text"]=!0),se&&Wk(G,["html","head","body"]),G.table&&(Wk(G,["tbody"]),delete Q.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw qk('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw qk('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=k;k=e.TRUSTED_TYPES_POLICY;try{T=I("")}catch(r){throw k=t,r}}else null===e.TRUSTED_TYPES_POLICY?(k=void 0,T=""):(void 0===k&&(k=P()),k&&"string"==typeof T&&(T=I("")));vk&&vk(e),qe=e},$e=Wk({},[...Xk,...Jk,...Qk]),Ge=Wk({},[...Zk,...eE]),Ye=function(e){let t=y(e);t&&t.tagName||(t={namespaceURI:Pe,tagName:"template"});const r=Ik(e.tagName),n=Ik(t.tagName);return!!Be[e.namespaceURI]&&(e.namespaceURI===Ae?function(e,t,r){return t.namespaceURI===Ie?"svg"===e:t.namespaceURI===Ce?"svg"===e&&("annotation-xml"===r||Re[r]):Boolean($e[e])}(r,t,n):e.namespaceURI===Ce?function(e,t,r){return t.namespaceURI===Ie?"math"===e:t.namespaceURI===Ae?"math"===e&&ze[r]:Boolean(Ge[e])}(r,t,n):e.namespaceURI===Ie?function(e,t,r){return!(t.namespaceURI===Ae&&!ze[r])&&!(t.namespaceURI===Ce&&!Re[r])&&!Ge[e]&&(je[e]||!$e[e])}(r,t,n):!("application/xhtml+xml"!==Le||!Be[e.namespaceURI]))},Ke=function(e){_k(r.removed,{element:e});try{y(e).removeChild(e)}catch(t){if(m(e),!y(e))throw qk("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Xe=function(e){Ze(e);const t=v(e);if(t){const e=[];kk(t,t=>{_k(e,t)}),kk(e,e=>{try{m(e)}catch(t){}})}const r=w(e);if(r)for(let o=r.length-1;o>=0;--o){const t=r[o],i=t&&t.name;if("string"==typeof i)try{e.removeAttribute(i)}catch(n){}}},Je=function(e,t){try{_k(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(n){_k(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(fe||he)try{Ke(t)}catch(n){}else try{t.setAttribute(e,"")}catch(n){}},Qe=function(e){const t=w(e);if(t)for(let n=t.length-1;n>=0;--n){const o=t[n],i=o&&o.name;if("string"==typeof i&&!K[Ve(i)])try{e.removeAttribute(i)}catch(r){}}},Ze=function(e){const t=[e];for(;t.length>0;){const e=t.pop();(x?x(e):e.nodeType)===wE&&Qe(e);const r=v(e);if(r)for(let n=r.length-1;n>=0;--n)t.push(r[n])}},et=function(e){let t=null,r=null;if(de)e="<remove></remove>"+e;else{const t=Nk(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===Le&&Pe===Ie&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=k?I(e):e;if(Pe===Ie)try{t=(new d).parseFromString(o,Le)}catch(a){}if(!t||!t.documentElement){t=B.createDocument(Pe,"template",null);try{t.documentElement.innerHTML=Ne?T:o}catch(a){}}const i=t.body||t.documentElement;return e&&r&&i.insertBefore(n.createTextNode(r),i.childNodes[0]||null),Pe===Ie?R.call(t,se?"html":"body")[0]:se?t.documentElement:i},tt=function(e){return O.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},rt=function(e){return e=Bk(e,j," "),e=Bk(e,L," "),e=Bk(e,F," ")},nt=function(e){var t;e.normalize();const r=O.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let n=r.nextNode();for(;n;)n.data=rt(n.data),n=r.nextNode();const o=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");o&&kk(o,e=>{it(e.content)&&nt(e.content)})},ot=function(e){const t=S?S(e):null;return"string"==typeof t&&("form"===Ve(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==w(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==x(e)||e.childNodes!==v(e)))},it=function(e){if(!x||"object"!=typeof e||null===e)return!1;try{return x(e)===TE}catch(t){return!1}},at=function(e){if(!x||"object"!=typeof e||null===e)return!1;try{return"number"==typeof x(e)}catch(t){return!1}};function st(e,t,n){0!==e.length&&kk(e,e=>{e.call(r,t,n,qe)})}const lt=function(e,t){if(st(z.beforeSanitizeElements,e,null),e!==t&&null===y(e))return!0;if(ot(e))return Ke(e),!0;const n=Ve(S?S(e):e.nodeName);if(st(z.uponSanitizeElement,e,{tagName:n,allowedTags:G}),e!==t&&null===y(e))return!0;if(function(e,t){return!!(ae&&e.hasChildNodes()&&!at(e.firstElementChild)&&Vk(gE,e.textContent)&&Vk(gE,e.innerHTML))||!(!ae||e.namespaceURI!==Ie||"style"!==t||!at(e.firstElementChild))||e.nodeType===SE||!(!ae||e.nodeType!==kE||!Vk(vE,e.data))}(e,n))return Ke(e),!0;if(Q[n]||!(ee.tagCheck instanceof Function&&ee.tagCheck(n))&&!G[n]){const t=function(e,t){if(!Q[t]&&dt(t)){if(J.tagNameCheck instanceof RegExp&&Vk(J.tagNameCheck,t))return!1;if(J.tagNameCheck instanceof Function&&J.tagNameCheck(t))return!1}if(ye&&!xe[t]){const t=y(e),r=v(e);if(r&&t)for(let n=r.length-1;n>=0;--n){const o=be?r[n]:p(r[n],!0);t.insertBefore(o,g(e))}}return Ke(e),!0}(e,n);return!1===t&&st(z.afterSanitizeElements,e,null),t}if((x?x(e):e.nodeType)===wE&&!Ye(e))return Ke(e),!0;if(("noscript"===n||"noembed"===n||"noframes"===n)&&Vk(yE,e.innerHTML))return Ke(e),!0;if(ie&&e.nodeType===xE){const t=rt(e.textContent);e.textContent!==t&&(_k(r.removed,{element:e.cloneNode()}),e.textContent=t)}return st(z.afterSanitizeElements,e,null),!1},ct=function(e,t,r){if(Z[t])return!1;if(ae&&"patchsrc"===t)return!1;if(ae&&"for"===t&&"label"!==e&&"output"!==e)return!1;if(me&&("id"===t||"name"===t)&&(r in n||r in He))return!1;const o=K[t]||ee.attributeCheck instanceof Function&&ee.attributeCheck(t,e);if(re&&Vk(V,t));else if(te&&Vk(q,t));else if(o)if(Te[t]);else if(Vk($,Bk(r,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Ok(r,"data:")||!ke[e]){if(ne&&!Vk(H,Bk(r,U,"")));else if(r)return!1}else;else if(!(dt(e)&&(J.tagNameCheck instanceof RegExp&&Vk(J.tagNameCheck,e)||J.tagNameCheck instanceof Function&&J.tagNameCheck(e))&&(J.attributeNameCheck instanceof RegExp&&Vk(J.attributeNameCheck,t)||J.attributeNameCheck instanceof Function&&J.attributeNameCheck(t,e))||"is"===t&&J.allowCustomizedBuiltInElements&&(J.tagNameCheck instanceof RegExp&&Vk(J.tagNameCheck,r)||J.tagNameCheck instanceof Function&&J.tagNameCheck(r))))return!1;return!0},ut=Wk({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),dt=function(e){return!ut[Ik(e)]&&Vk(W,e)},ft=function(e,t,r,n){if(k&&"object"==typeof f&&"function"==typeof f.getAttributeType&&!r)switch(f.getAttributeType(e,t)){case"TrustedHTML":return I(n);case"TrustedScriptURL":return function(e){A(),C++;try{return k.createScriptURL(e)}finally{C--}}(n)}return n},ht=function(e,t,n,o){try{n?e.setAttributeNS(n,t,o):e.setAttribute(t,o),ot(e)?Ke(e):Tk(r.removed)}catch(i){Je(t,e)}},pt=function(e){st(z.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||ot(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K,forceKeepAttr:void 0};let n=t.length;const o=Ve(e.nodeName);for(;n--;){const i=t[n],a=i.name,s=i.namespaceURI,l=i.value,c=Ve(a),u=l;let d="value"===a?u:Dk(u);r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,st(z.uponSanitizeAttribute,e,r),d=r.attrValue,!ge||"id"!==c&&"name"!==c||0===Ok(d,ve)||(Je(a,e),d=ve+d),ae&&Vk(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)?Je(a,e):"attributename"===c&&Nk(d,"href")?Je(a,e):r.forceKeepAttr||(r.keepAttr&&(oe||!Vk(bE,d))?(ie&&(d=rt(d)),ct(o,c,d)?(d=ft(o,c,s,d),d!==u&&ht(e,a,s,d)):Je(a,e)):Je(a,e))}st(z.afterSanitizeAttributes,e,null)},mt=function(e){let t=null;const r=tt(e);for(st(z.beforeSanitizeShadowDOM,e,null);t=r.nextNode();){st(z.uponSanitizeShadowNode,t,null),lt(t,e),pt(t),it(t.content)&&mt(t.content);if((x?x(t):t.nodeType)===wE){const e=b(t);it(e)&&(gt(e),mt(e))}}st(z.afterSanitizeShadowDOM,e,null)},gt=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){mt(e.shadow);continue}const r=e.node,n=(x?x(r):r.nodeType)===wE,o=v(r);if(o)for(let i=o.length-1;i>=0;--i)t.push({node:o[i],shadow:null});if(n){const e=S?S(r):null;if("string"==typeof e&&"template"===Ve(e)){const e=r.content;it(e)&&t.push({node:e,shadow:null})}}if(n){const e=b(r);it(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,i=null,a=null,s=null;if(Ne=!e,Ne&&(e="\x3c!--\x3e"),"string"!=typeof e&&!at(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return Rk(e);case"boolean":return Mk(e);case"bigint":return zk?zk(e):"0";case"symbol":return jk?jk(e):"Symbol()";case"undefined":default:return Fk(e);case"function":case"object":{if(null===e)return Fk(e);const t=e,r=Yk(t,"toString");if("function"==typeof r){const e=r(t);return"string"==typeof e?e:Fk(e)}return Fk(e)}}}(e)))throw qk("dirty is not a string, aborting");if(!r.isSupported)return e;le?(G=ce,K=ue):We(t),(z.uponSanitizeElement.length>0||z.uponSanitizeAttribute.length>0)&&(G=Gk(G)),z.uponSanitizeAttribute.length>0&&(K=Gk(K)),r.removed=[];const l=be&&"string"!=typeof e&&at(e);if(l){!function(e){if(!ae)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=x?x(e):e.nodeType;if(n===SE||n===kE&&Vk(vE,e.data)){try{m(e)}catch(r){}continue}if(n===wE){const t=e,n=Ve(S?S(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&"label"!==n&&"output"!==n&&t.removeAttribute("for")}catch(r){}}const o=v(e);if(o)for(let r=o.length-1;r>=0;--r)t.push(o[r])}}(e);const t=S?S(e):e.nodeName;if("string"==typeof t){const r=Ve(t);if(!G[r]||Q[r])throw Xe(e),qk("root node is forbidden and cannot be sanitized in-place")}if(ot(e))throw Xe(e),qk("root node is clobbered and cannot be sanitized in-place");try{gt(e)}catch(f){throw Xe(e),f}}else if(at(e))n=et("\x3c!----\x3e"),i=n.ownerDocument.importNode(e,!0),i.nodeType===wE&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i),gt(i);else{if(!fe&&!ie&&!se&&-1===e.indexOf("<"))return k&&pe?I(e):e;if(n=et(e),!n)return fe?null:pe?T:""}n&&de&&Ke(n.firstChild);const c=l?e:n,u=tt(c);try{for(;a=u.nextNode();)lt(a,c),pt(a),it(a.content)&&mt(a.content)}catch(f){throw l&&(Xe(e),kk(r.removed,e=>{e.element&&Ze(e.element)})),f}if(l)return kk(r.removed,e=>{e.element&&Ze(e.element)}),ie&&nt(e),e;if(fe){if(ie&&nt(n),he)for(s=D.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(K.shadowroot||K.shadowrootmode)&&(s=M.call(o,s,!0)),s}let d=se?n.outerHTML:n.innerHTML;return se&&G["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&Vk(pE,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),ie&&(d=rt(d)),k&&pe?I(d):d},r.setConfig=function(){We(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),le=!0,ce=G,ue=K},r.clearConfig=function(){qe=null,le=!1,ce=null,ue=null,k=E,T=""},r.isValidAttribute=function(e,t,r){qe||We({});const n=Ve(e),o=Ve(t);return ct(n,o,r)},r.addHook=function(e,t){"function"==typeof t&&Lk(z,e)&&_k(z[e],t)},r.removeHook=function(e,t){if(Lk(z,e)){if(void 0!==t){const r=Ek(z[e],t);return-1===r?void 0:Ck(z[e],r,1)[0]}return Tk(z[e])}},r.removeHooks=function(e){Lk(z,e)&&(z[e]=[])},r.removeAllHooks=function(){z={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}();const AE="ocrAIChat",IE="ocrAIChatDrawerSourceSite";function PE(){return["5173","9002","4502","4503"].includes(window.location.port)||["local","localhost","127.0.0.1"].some(e=>window.location.hostname.includes(e))}function NE(){if(PE())return null;const e=window.location.hostname.toLowerCase();if(e.includes(".adobeaemcloud.com"))return window.location.hostname;const t=["azurewebsites.net"];for(const n of t)if(e===n||e.endsWith(`.${n}`))return null;const r=["microsoft.com","azure.com"];for(const n of r)if(e===n||e.endsWith(`.${n}`))return`.${n}`;return".microsoft.com"}const BE={domain:NE(),expiryDays:PE()?30:-1,secure:!PE(),sameSite:PE()?void 0:"Strict",path:"/",isLocalDevelopment:PE()},OE="OPEN",DE="CLOSED",{log:RE,logWarn:ME,logError:zE}=R.withKind("cookieUtils");let jE=null,LE=!1;const FE=()=>{try{return LE||(LE=!0,ck(()=>Promise.resolve().then(()=>X7),void 0).then(e=>{jE=e.getFeatureEvalService()}).catch(()=>{})),jE?.isFeatureEnabled(de)??!1}catch{return!1}};let VE=!1;const qE=(e,t,r)=>{VE||(VE=!0,ck(async()=>{const{trackSourceSiteDetected:e}=await Promise.resolve().then(()=>p8);return{trackSourceSiteDetected:e}},void 0).then(({trackSourceSiteDetected:n})=>n(e,t,r)).catch(()=>{}))},HE={business:"commercial-front-door"},UE=/^\/(?:[a-z]{2}-[a-z]{2}|sr-(?:latn|cyrl)-rs)\/([^/]+)/,WE=()=>{try{const e=new URL(window.location.href),t=e.searchParams.get("sourceSite");if(t){return t.trim().toLowerCase()}const r=e.hostname,n=e.pathname.split("/").map(e=>e.toLowerCase()),o=document.documentElement.lang.toLowerCase();let i=-1;const a={"sr-rs":["sr-rs","sr-latn-rs","sr-cyrl-rs"],default:[o]};if(i=(a[o]??a.default??[]).map(e=>n.indexOf(e)).find(e=>e>-1)??-1,"azure.microsoft.com"===r||"azure-int.microsoft.com"===r||"azure-staging.microsoft.com"===r||e.pathname.startsWith("/content/azure/acom"))return"azure";if(["signup.microsoft.com","prv.signup.microsoft.com","signupppe.microsoft.com"].includes(r))return"signup";if(ve.includes(r))return"azure-signup";if("licensingdocsuat.azurewebsites.net"===r||"licensetermsuat.azurewebsites.net"===r||"www.microsoft.com"===r&&/^\/licensing\/(?:docs|terms)(?:\/[^/]+)*\/?$/.test(e.pathname.toLowerCase()))return"licensing";if(i>-1&&n.length>i+1){const e=n[i+1],t=e&&"string"==typeof e?e.replace(/\.html/g,""):"";if(t){const e=Object.prototype.hasOwnProperty.call(HE,t)?HE[t]:t;return"string"==typeof e?e:t}}else if(FE()){const t=e.pathname.toLowerCase().match(UE),r=t&&t[1]?t[1].replace(/\.html/g,""):"";if(r){const e=Object.prototype.hasOwnProperty.call(HE,r)?HE[r]:r,t="string"==typeof e?e:r;return qE("path-regex",t,o),t}qE("path-regex-unresolved","azure",o)}}catch(e){zE("Failed to get source site:",e),FE()&&(e=>{VE||(VE=!0,ck(async()=>{const{trackExceptions:e}=await Promise.resolve().then(()=>p8);return{trackExceptions:e}},void 0).then(({trackExceptions:t})=>t("getSourceSite",e instanceof Error?e:new Error(String(e)))).catch(()=>{}))})(e)}return"azure"},$E=e=>{let t;try{t=(()=>{const e={};if(!document.cookie)return RE("No cookies found in document.cookie"),null;const t=document.cookie.split("; ");for(const n of t){const t=n.indexOf("=");if(-1!==t){const o=CE.sanitize(n.slice(0,t));try{const r=decodeURIComponent(n.slice(t+1));e[o]=CE.sanitize(r)}catch(r){zE(`Error decoding cookie value for key ${o}:`,r);continue}}else zE(`Malformed cookie without separator: ${n}`)}return Object.keys(e).length>0?e:(RE("No valid cookies found after processing"),null)})()}catch(r){return zE(`Error getting all cookies: ${r}`),null}if(t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,e)){const r=t[e];if(void 0!==r)return r}return null},GE=(e,t,r=BE.expiryDays,n=BE.domain,o=BE.secure,i=!1,a=BE.sameSite,s=BE.path)=>{if("string"!=typeof t||"number"!=typeof r||null!=n&&"string"!=typeof n)throw new Error("Error setting cookie: Invalid parameters.");let l=null;r>-1&&(l=new Date,l.setTime(l.getTime()+24*r*60*60*1e3)),!l&&r>0&&(l=new Date,l.setTime(l.getTime()+2592e6));const c=[`${e}=${encodeURIComponent(t)}`];c.push(`expires=${l?l.toUTCString():""}`);const u=window.location.hostname.includes("local");c.push(`path=${s}`),u||(n&&c.push(`domain=${n}`),o&&c.push("secure"),i&&c.push("httponly"),a&&c.push(`samesite=${a}`));!window.location.port&&!window.location.hostname.includes("local")&&!o&&ME("Attempting to set insecure cookie in production environment",{key:e,domain:n,protocol:window.location.protocol});const d=c.join("; ");try{document.cookie=d}catch(h){zE("Error setting cookie:",h)}const f=$E(e);RE("Cookie set verification:",{key:e,wasSet:null!==f,valueLength:f?.length,currentUrl:window.location.href,protocol:window.location.protocol,host:window.location.host})},YE=()=>{let e=null;const t=$E(AE);if(!t)return null;try{e=JSON.parse(t)}catch(r){zE("Failed to parse ocrAIChat cookie",r)}return e},KE=e=>{try{const t={...YE()||{},...e};return GE(AE,JSON.stringify(t),BE.expiryDays,BE.domain,BE.secure,!1,BE.sameSite),RE("OcrAIChat cookie updated successfully",{cookieName:AE,domain:BE.domain,expiryDays:BE.expiryDays,updatedCookieObject:t}),{success:!0}}catch(t){const e=t instanceof Error?t.message:"Unknown error occurred";return zE("Failed to update ocrAIChat cookie:",t),{success:!1,error:e}}},XE=()=>{try{return"signup"===WE()?KE({ocrAIChatUserInteracted:!0}):{success:!1,error:"User interaction tracking is disabled on this site."}}catch(e){const t=e instanceof Error?e.message:"Unknown error occurred";return zE("Failed to set user interaction status:",e),{success:!1,error:t}}},JE="en-us",QE=/^([A-Za-z]{2}(?:-[A-Za-z]{4})?-[A-Za-z]{2})$/i,ZE=/^\/([A-Za-z]{2}(?:-[A-Za-z]{4})?-[A-Za-z]{2})(?:\/|$)/i,eT=e=>{if("string"!=typeof e)return"";const t=e.match(QE);return t&&t[1]?t[1].toLowerCase():""},tT=(e=window.location.pathname)=>{const t=e.match(ZE);return t&&t[1]?t[1].toLowerCase():""},rT=e=>{try{const t=tT();if(t)return t;const r=new URLSearchParams(window.location.search);return eT(r.get("culture"))||eT(e)||eT(navigator.language)||JE}catch(t){return console.error("Error getting locale:",t),JE}},nT=_S({name:"starterPrompts",initialState:{customPrompts:null,dismissed:!1,isStarterPromptsEnabled:null},reducers:{setCustomPrompts:(e,t)=>{e.customPrompts=t.payload,e.dismissed=!1},dismissPrompts:e=>{e.customPrompts=null,e.dismissed=!0},reset:e=>{e.dismissed=!1},setStarterPromptsEnabled:(e,t)=>{e.isStarterPromptsEnabled=t.payload}}}),{setCustomPrompts:oT,dismissPrompts:iT,reset:aT,setStarterPromptsEnabled:sT}=nT.actions,lT=tS([e=>e.starterPrompts.customPrompts,e=>e.starterPrompts.dismissed,e=>e.optionsProvider?.options?.partnerId||"default",e=>e.optionsProvider?.options?.promptId||"default_promptId",e=>e.optionsProvider?.options?.locale||"en-US",()=>(()=>{try{const e=YE();return!0===e?.ocrAIChatUserInteracted}catch(e){return zE("Failed to check user interaction status:",e),!1}})(),e=>e.starterPrompts.isStarterPromptsEnabled],(e,t,r,n,o,i,a)=>a?t||i&&!e?[]:e&&e.length>0?e:sk(r,n,o):[]),cT=tS([lT],e=>e.length>0),uT=tS([e=>e.starterPrompts.customPrompts,e=>e.optionsProvider?.options?.partnerId||"default",e=>e.optionsProvider?.options?.promptId||"default_promptId",e=>e.optionsProvider?.options?.locale||"en-US",e=>e.starterPrompts.isStarterPromptsEnabled],(e,t,r,n,o)=>o?e&&e.length>0?e:sk(t,r,n):[]);tS([uT],e=>e.length>0);const dT=nT.reducer;var fT=function(e){return"@@redux-saga/"+e},hT=fT("CANCEL_PROMISE"),pT=fT("CHANNEL_END"),mT=fT("IO"),gT=fT("MATCH"),vT=fT("MULTICAST"),yT=fT("SAGA_ACTION"),bT=fT("SELF_CANCELLATION"),wT=fT("TASK"),xT=fT("TASK_CANCEL"),ST=fT("TERMINATE"),kT=fT("LOCATION"),ET=function(e){return null==e},TT=function(e){return null!=e},_T=function(e){return"function"==typeof e},CT=function(e){return"string"==typeof e},AT=Array.isArray,IT=function(e){return e&&_T(e.then)},PT=function(e){return e&&_T(e.next)&&_T(e.throw)},NT=function e(t){return t&&(CT(t)||DT(t)||_T(t)||AT(t)&&t.every(e))},BT=function(e){return e&&_T(e.take)&&_T(e.close)},OT=function(e){return _T(e)&&e.hasOwnProperty("toString")},DT=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype};function RT(e,t){var r;void 0===t&&(t=!0);var n=new Promise(function(n){r=setTimeout(n,Math.min(2147483647,e),t)});return n[hT]=function(){clearTimeout(r)},n}var MT=function(e){return function(){return e}}(!0),zT=function(){},jT=function(e){return e},LT=function(e,t){Yy(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(function(r){e[r]=t[r]})};function FT(e,t){var r=e.indexOf(t);r>=0&&e.splice(r,1)}function VT(e){var t=!1;return function(){t||(t=!0,e())}}var qT=function(e){throw e},HT=function(e){return{value:e,done:!0}};function UT(e,t,r){void 0===t&&(t=qT),void 0===r&&(r="iterator");var n={meta:{name:r},next:e,throw:t,return:HT,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(n[Symbol.iterator]=function(){return n}),n}function WT(e,t){var r=t.sagaStack;console.error(e),console.error(r)}var $T=function(e){return Array.apply(null,new Array(e))},GT=function(e){return function(t){return e(Object.defineProperty(t,yT,{value:!0}))}},YT=function(e){return e===ST},KT=function(e){return e===xT},XT=function(e){return YT(e)||KT(e)};function JT(e,t){var r,n=Object.keys(e),o=n.length,i=0,a=AT(e)?$T(o):{},s={};return n.forEach(function(e){var n=function(n,s){r||(s||XT(n)?(t.cancel(),t(n,s)):(a[e]=n,++i===o&&(r=!0,t(a))))};n.cancel=zT,s[e]=n}),t.cancel=function(){r||(r=!0,n.forEach(function(e){return s[e].cancel()}))},s}function QT(e){return{name:e.name||"anonymous",location:ZT(e)}}function ZT(e){return e[kT]}function e_(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}var t_={isEmpty:MT,put:zT,take:zT};function r_(e,t){void 0===e&&(e=10);var r=new Array(e),n=0,o=0,i=0,a=function(t){r[o]=t,o=(o+1)%e,n++},s=function(){if(0!=n){var t=r[i];return r[i]=null,n--,i=(i+1)%e,t}},l=function(){for(var e=[];n;)e.push(s());return e};return{isEmpty:function(){return 0==n},put:function(s){var c;if(n<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:r[o]=s,i=o=(o+1)%e;break;case 4:c=2*e,r=l(),n=r.length,o=r.length,i=0,r.length=c,e=c,a(s)}},take:s,flush:l}}var n_=function(){return t_},o_=function(e){return r_(e,4)},i_=Object.freeze({__proto__:null,none:n_,fixed:function(e){return r_(e,1)},dropping:function(e){return r_(e,2)},sliding:function(e){return r_(e,3)},expanding:o_}),a_="TAKE",s_="RACE",l_="CALL",c_="FORK",u_="JOIN",d_="CANCEL",f_="SELECT",h_="CANCELLED",p_=function(e,t){var r;return(r={})[mT]=!0,r.combinator=!1,r.type=e,r.payload=t,r};function m_(e,t){return void 0===e&&(e="*"),NT(e)?(TT(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),p_(a_,{pattern:e})):BT(r=e)&&r[vT]&&TT(t)&&NT(t)?p_(a_,{channel:e,pattern:t}):BT(e)?(TT(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),p_(a_,{channel:e})):void 0;var r}function g_(e,t){return ET(t)&&(t=e,e=void 0),p_("PUT",{channel:e,action:t})}function v_(e){var t=p_("ALL",e);return t.combinator=!0,t}function y_(e){var t=p_(s_,e);return t.combinator=!0,t}function b_(e,t){var r,n=null;return _T(e)?r=e:(AT(e)?(n=e[0],r=e[1]):(n=e.context,r=e.fn),n&&CT(r)&&_T(n[r])&&(r=n[r])),{context:n,fn:r,args:t}}function w_(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return p_(l_,b_(e,r))}function x_(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return p_(c_,b_(e,r))}function S_(e){return p_(u_,e)}function k_(e){return void 0===e&&(e=bT),p_(d_,e)}function E_(e){void 0===e&&(e=jT);for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return p_(f_,{selector:e,args:r})}function T_(){return p_(h_,{})}var __=w_.bind(null,RT);var C_=[],A_=0;function I_(e){try{B_(),e()}finally{O_()}}function P_(e){C_.push(e),A_||(B_(),D_())}function N_(e){try{return B_(),e()}finally{D_()}}function B_(){A_++}function O_(){A_--}function D_(){var e;for(O_();!A_&&void 0!==(e=C_.shift());)I_(e)}var R_=function(e){return function(t){return e.some(function(e){return F_(e)(t)})}},M_=function(e){return function(t){return e(t)}},z_=function(e){return function(t){return t.type===String(e)}},j_=function(e){return function(t){return t.type===e}},L_=function(){return MT};function F_(e){var t="*"===e?L_:CT(e)?z_:AT(e)?R_:OT(e)?z_:_T(e)?M_:DT(e)?j_:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var V_={type:pT},q_=function(e){return e&&e.type===pT};function H_(e){void 0===e&&(e=o_());var t=!1,r=[];return{take:function(n){t&&e.isEmpty()?n(V_):e.isEmpty()?(r.push(n),n.cancel=function(){FT(r,n)}):n(e.take())},put:function(n){if(!t){if(0===r.length)return e.put(n);r.shift()(n)}},flush:function(r){t&&e.isEmpty()?r(V_):r(e.flush())},close:function(){if(!t){t=!0;var e=r;r=[];for(var n=0,o=e.length;n<o;n++){(0,e[n])(V_)}}}}}function U_(e,t){void 0===t&&(t=n_());var r,n=!1,o=H_(t),i=function(){n||(n=!0,_T(r)&&r(),o.close())};return r=VT(r=e(function(e){q_(e)?i():o.put(e)})),n&&r(),{take:o.take,flush:o.flush,close:i}}function W_(){var e,t,r,n,o,i,a=(t=!1,n=r=[],o=function(){n===r&&(n=r.slice())},i=function(){t=!0;var e=r=n;n=[],e.forEach(function(e){e(V_)})},(e={})[vT]=!0,e.put=function(e){if(!t)if(q_(e))i();else for(var o=r=n,a=0,s=o.length;a<s;a++){var l=o[a];l[gT](e)&&(l.cancel(),l(e))}},e.take=function(e,r){void 0===r&&(r=L_),t?e(V_):(e[gT]=r,o(),n.push(e),e.cancel=VT(function(){o(),FT(n,e)}))},e.close=i,e),s=a.put;return a.put=function(e){e[yT]?s(e):P_(function(){s(e)})},a}function $_(e,t){var r=e[hT];_T(r)&&(t.cancel=r),e.then(t,function(e){t(e,!0)})}var G_,Y_=0,K_=function(){return++Y_};function X_(e){e.isRunning()&&e.cancel()}var J_=((G_={})[a_]=function(e,t,r){var n=t.channel,o=void 0===n?e.channel:n,i=t.pattern,a=t.maybe,s=function(e){e instanceof Error?r(e,!0):!q_(e)||a?r(e):r(ST)};try{o.take(s,TT(i)?F_(i):null)}catch(l){return void r(l,!0)}r.cancel=s.cancel},G_.PUT=function(e,t,r){var n=t.channel,o=t.action,i=t.resolve;P_(function(){var t;try{t=(n?n.put:e.dispatch)(o)}catch(a){return void r(a,!0)}i&&IT(t)?$_(t,r):r(t)})},G_.ALL=function(e,t,r,n){var o=n.digestEffect,i=Y_,a=Object.keys(t);if(0!==a.length){var s=JT(t,r);a.forEach(function(e){o(t[e],i,s[e],e)})}else r(AT(t)?[]:{})},G_[s_]=function(e,t,r,n){var o=n.digestEffect,i=Y_,a=Object.keys(t),s=AT(t)?$T(a.length):{},l={},c=!1;a.forEach(function(e){var t=function(t,n){c||(n||XT(t)?(r.cancel(),r(t,n)):(r.cancel(),c=!0,s[e]=t,r(s)))};t.cancel=zT,l[e]=t}),r.cancel=function(){c||(c=!0,a.forEach(function(e){return l[e].cancel()}))},a.forEach(function(e){c||o(t[e],i,l[e],e)})},G_[l_]=function(e,t,r,n){var o=t.context,i=t.fn,a=t.args,s=n.task;try{var l=i.apply(o,a);if(IT(l))return void $_(l,r);if(PT(l))return void sC(e,l,s.context,Y_,QT(i),!1,r);r(l)}catch(c){r(c,!0)}},G_.CPS=function(e,t,r){var n=t.context,o=t.fn,i=t.args;try{var a=function(e,t){ET(e)?r(t):r(e,!0)};o.apply(n,i.concat(a)),a.cancel&&(r.cancel=a.cancel)}catch(s){r(s,!0)}},G_[c_]=function(e,t,r,n){var o=t.context,i=t.fn,a=t.args,s=t.detached,l=n.task,c=function(e){var t=e.context,r=e.fn,n=e.args;try{var o=r.apply(t,n);if(PT(o))return o;var i=!1;return UT(function(e){return i?{value:e,done:!0}:(i=!0,{value:o,done:!IT(o)})})}catch(a){return UT(function(){throw a})}}({context:o,fn:i,args:a}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:QT(t)}(c,i);N_(function(){var t=sC(e,c,l.context,Y_,u,s,void 0);s?r(t):t.isRunning()?(l.queue.addTask(t),r(t)):t.isAborted()?l.queue.abort(t.error()):r(t)})},G_[u_]=function(e,t,r,n){var o=n.task,i=function(e,t){if(e.isRunning()){var r={task:o,cb:t};t.cancel=function(){e.isRunning()&&FT(e.joiners,r)},e.joiners.push(r)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(AT(t)){if(0===t.length)return void r([]);var a=JT(t,r);t.forEach(function(e,t){i(e,a[t])})}else i(t,r)},G_[d_]=function(e,t,r,n){var o=n.task;t===bT?X_(o):AT(t)?t.forEach(X_):X_(t),r()},G_[f_]=function(e,t,r){var n=t.selector,o=t.args;try{r(n.apply(void 0,[e.getState()].concat(o)))}catch(i){r(i,!0)}},G_.ACTION_CHANNEL=function(e,t,r){var n=t.pattern,o=H_(t.buffer),i=F_(n),a=function t(r){q_(r)||e.channel.take(t,i),o.put(r)},s=o.close;o.close=function(){a.cancel(),s()},e.channel.take(a,i),r(o)},G_[h_]=function(e,t,r,n){r(n.task.isCancelled())},G_.FLUSH=function(e,t,r){t.flush(r)},G_.GET_CONTEXT=function(e,t,r,n){r(n.task.context[t])},G_.SET_CONTEXT=function(e,t,r,n){var o=n.task;LT(o.context,t),r()},G_);function Q_(e,t){return e+"?"+t}function Z_(e){var t=e.name,r=e.location;return r?t+"  "+Q_(r.fileName,r.lineNumber):t}var eC=null,tC=[],rC=function(e){e.crashedEffect=eC,tC.push(e)},nC=function(){eC=null,tC.length=0},oC=function(e){eC=e},iC=function(){var e,t,r,n,o,i,a,s=tC[0],l=tC.slice(1),c=s.crashedEffect?(e=s.crashedEffect,(t=ZT(e))?t.code+"  "+Q_(t.fileName,t.lineNumber):""):null;return["The above error occurred in task "+Z_(s.meta)+(c?" \n when executing effect "+c:"")].concat(l.map(function(e){return"    created by "+Z_(e.meta)}),[(r=tC,n=function(e){return e.cancelledTasks},o=r,a=(i=[]).concat.apply(i,o.map(n)),a.length?["Tasks cancelled due to error:"].concat(a).join("\n"):"")]).join("\n")};function aC(e,t,r,n,o,i,a){var s;void 0===a&&(a=zT);var l,c,u=0,d=null,f=[],h=Object.create(r),p=function(e,t,r){var n,o=[],i=!1;function a(e){t(),l(),r(e,!0)}function s(t){o.push(t),t.cont=function(s,l){i||(FT(o,t),t.cont=zT,l?a(s):(t===e&&(n=s),o.length||(i=!0,r(n))))}}function l(){i||(i=!0,o.forEach(function(e){e.cont=zT,e.cancel()}),o=[])}return s(e),{addTask:s,cancelAll:l,abort:a,getTasks:function(){return o}}}(t,function(){f.push.apply(f,p.getTasks().map(function(e){return e.meta.name}))},m);function m(t,r){if(r){if(u=2,rC({meta:o,cancelledTasks:f}),g.isRoot){var n=iC();nC(),e.onError(t,{sagaStack:n})}c=t,d&&d.reject(t)}else t===xT?u=1:1!==u&&(u=3),l=t,d&&d.resolve(t);g.cont(t,r),g.joiners.forEach(function(e){e.cb(t,r)}),g.joiners=null}var g=((s={})[wT]=!0,s.id=n,s.meta=o,s.isRoot=i,s.context=h,s.joiners=[],s.queue=p,s.cancel=function(){0===u&&(u=1,p.cancelAll(),m(xT,!1))},s.cont=a,s.end=m,s.setContext=function(e){LT(h,e)},s.toPromise=function(){return d||((e={}).promise=new Promise(function(t,r){e.resolve=t,e.reject=r}),d=e,2===u?d.reject(c):0!==u&&d.resolve(l)),d.promise;var e},s.isRunning=function(){return 0===u},s.isCancelled=function(){return 1===u||0===u&&1===t.status},s.isAborted=function(){return 2===u},s.result=function(){return l},s.error=function(){return c},s);return g}function sC(e,t,r,n,o,i,a){var s=e.finalizeRunEffect(function(t,r,n){if(IT(t))$_(t,n);else if(PT(t))sC(e,t,c.context,r,o,!1,n);else if(t&&t[mT]){(0,J_[t.type])(e,t.payload,n,u)}else n(t)});d.cancel=zT;var l={meta:o,cancel:function(){0===l.status&&(l.status=1,d(xT))},status:0},c=aC(e,l,r,n,o,i,a),u={task:c,digestEffect:f};return a&&(a.cancel=c.cancel),d(),c;function d(e,r){try{var o;r?(o=t.throw(e),nC()):KT(e)?(l.status=1,d.cancel(),o=_T(t.return)?t.return(xT):{done:!0,value:xT}):o=YT(e)?_T(t.return)?t.return():{done:!0}:t.next(e),o.done?(1!==l.status&&(l.status=3),l.cont(o.value)):f(o.value,n,d)}catch(i){if(1===l.status)throw i;l.status=2,l.cont(i,!0)}}function f(t,r,n,o){void 0===o&&(o="");var i,a=K_();function l(r,o){i||(i=!0,n.cancel=zT,e.sagaMonitor&&(o?e.sagaMonitor.effectRejected(a,r):e.sagaMonitor.effectResolved(a,r)),o&&oC(t),n(r,o))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:r,label:o,effect:t}),l.cancel=zT,n.cancel=function(){i||(i=!0,l.cancel(),l.cancel=zT,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,l)}}function lC(e,t){for(var r=e.channel,n=void 0===r?W_():r,o=e.dispatch,i=e.getState,a=e.context,s=void 0===a?{}:a,l=e.sagaMonitor,c=e.effectMiddlewares,u=e.onError,d=void 0===u?WT:u,f=arguments.length,h=new Array(f>2?f-2:0),p=2;p<f;p++)h[p-2]=arguments[p];var m,g=t.apply(void 0,h),v=K_();if(l&&(l.rootSagaStarted=l.rootSagaStarted||zT,l.effectTriggered=l.effectTriggered||zT,l.effectResolved=l.effectResolved||zT,l.effectRejected=l.effectRejected||zT,l.effectCancelled=l.effectCancelled||zT,l.actionDispatched=l.actionDispatched||zT,l.rootSagaStarted({effectId:v,saga:t,args:h})),c){var y=e_.apply(void 0,c);m=function(e){return function(t,r,n){return y(function(t){return e(t,r,n)})(t)}}}else m=jT;var b={channel:n,dispatch:GT(o),getState:i,sagaMonitor:l,onError:d,finalizeRunEffect:m};return N_(function(){var e=sC(b,g,s,v,QT(t),!0,void 0);return l&&l.effectResolved(v,e),e})}const cC=e=>{if(!(e.token&&e.created&&e.expiresIn&&e.tuid))return!1;if("string"!=typeof e.token||0===e.token.trim().length)return!1;return Date.now()/1e3-e.created<e.expiresIn-180},uC=_S({name:"directLine",initialState:{token:"",tokenCreated:0,tokenExpiresIn:0,tuid:"",isConnecting:!1},reducers:{setDirectLineToken:(e,t)=>{e.token=t.payload.token,e.tokenCreated=t.payload.created,e.tokenExpiresIn=t.payload.expiresIn,e.tuid=t.payload.tuid,KE({ocrAIChatToken:t.payload.token,ocrAIChatTokenCreated:t.payload.created,tuid:t.payload.tuid})},clearDirectLineToken:e=>{e.token="",e.tokenCreated=0,e.tokenExpiresIn=0,KE({ocrAIChatToken:void 0,ocrAIChatTokenCreated:void 0,tuid:void 0,agent:void 0})},setConnecting:(e,t)=>{e.isConnecting=t.payload}},selectors:{directLineTokenSelector:e=>e.token,tokenCreatedSelector:e=>e.tokenCreated,tokenExpiresInSelector:e=>e.tokenExpiresIn,tuidSelector:e=>e.tuid,isConnectingSelector:e=>e.isConnecting,isTokenValidSelector:e=>cC({token:e.token,created:e.tokenCreated,expiresIn:e.tokenExpiresIn,tuid:e.tuid})}}),{setDirectLineToken:dC,clearDirectLineToken:fC,setConnecting:hC}=uC.actions,{directLineTokenSelector:pC,tokenCreatedSelector:mC,tokenExpiresInSelector:gC,tuidSelector:vC,isConnectingSelector:yC,isTokenValidSelector:bC}=uC.selectors,wC=uC.reducer,xC=Object.freeze(Object.defineProperty({__proto__:null,clearDirectLineToken:fC,default:wC,directLineTokenSelector:pC,isConnectingSelector:yC,isTokenValidSelector:bC,setConnecting:hC,setDirectLineToken:dC,tokenCreatedSelector:mC,tokenExpiresInSelector:gC,tuidSelector:vC},Symbol.toStringTag,{value:"Module"})),{logError:SC}=R.withKind("drawerControlsSlice"),kC=wS("drawerControls/initializeDrawerState",async(e=L.Drawer,{dispatch:t})=>{try{const r=YE();if(r&&r.ocrAIChatDrawerState){const e=r.ocrAIChatDrawerState===OE;return t(_C(e)),{isDrawerOpen:e,fromCookie:!0}}return e===L.Sidecar?(KE({ocrAIChatDrawerState:OE}),t(_C(!0)),{isDrawerOpen:!0,fromCookie:!1,reason:"sidecar_mode"}):(t(_C(!1)),{isDrawerOpen:!1,fromCookie:!1,reason:"drawer_mode_default"})}catch(r){return SC("❌ Error initializing drawer state:",r),t(_C(!1)),{isDrawerOpen:!1,fromCookie:!1,reason:"error_fallback"}}}),EC=_S({name:"drawerControls",initialState:{isDrawerOpen:!1},reducers:{toggleDrawerOpen:e=>{e.isDrawerOpen=!e.isDrawerOpen},setDrawerOpen:(e,t)=>{e.isDrawerOpen=t.payload}},extraReducers:e=>{e.addCase(kC.fulfilled,(e,t)=>{e.isDrawerOpen=t.payload.isDrawerOpen}).addCase(kC.rejected,(e,t)=>{e.isDrawerOpen=!1,SC("❌ Drawer state initialization failed:",t.error)})}}),{toggleDrawerOpen:TC,setDrawerOpen:_C}=EC.actions,CC=EC.reducer,AC=_S({name:"message",initialState:{messages:[],lastMessageId:null},reducers:{addMessage:(e,t)=>{const r=`message_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,n={...t.payload,id:r,timestamp:Date.now()};e.messages.push(n),e.lastMessageId=r},removeMessage:(e,t)=>{e.messages=e.messages.filter(e=>e.id!==t.payload),e.lastMessageId===t.payload&&(e.lastMessageId=e.messages.length>0?e.messages[e.messages.length-1]?.id??null:null)},clearAllMessages:e=>{e.messages=[],e.lastMessageId=null},clearMessagesByType:(e,t)=>{e.messages=e.messages.filter(e=>e.type!==t.payload),e.lastMessageId&&!e.messages.find(t=>t.id===e.lastMessageId)&&(e.lastMessageId=e.messages.length>0?e.messages[e.messages.length-1]?.id??null:null)}},selectors:{messagesSelector:e=>e.messages,latestMessageSelector:e=>e.lastMessageId&&e.messages.find(t=>t.id===e.lastMessageId)||null,messagesByTypeSelector:(e,t)=>e.messages.filter(e=>e.type===t),hasMessagesSelector:e=>e.messages.length>0}}),{addMessage:IC,removeMessage:PC,clearAllMessages:NC,clearMessagesByType:BC}=AC.actions,{messagesSelector:OC,latestMessageSelector:DC,messagesByTypeSelector:RC,hasMessagesSelector:MC}=AC.selectors,zC=AC.reducer,jC=Object.freeze(Object.defineProperty({__proto__:null,addMessage:IC,clearAllMessages:NC,clearMessagesByType:BC,default:zC,hasMessagesSelector:MC,latestMessageSelector:DC,messagesByTypeSelector:RC,messagesSelector:OC,removeMessage:PC},Symbol.toStringTag,{value:"Module"})),{log:LC}=R.withKind("streamingSlice"),FC=_S({name:"streaming",initialState:{status:"idle",streamId:null,accumulatedText:"",streamSequence:0,tokenMode:"unknown"},reducers:{streamStarted:(e,t)=>{LC("streamStarted",t.payload.streamId),e.status="waiting",e.streamId=t.payload.streamId,e.accumulatedText="",e.streamSequence=0,e.tokenMode="unknown"},tokenReceived:(e,t)=>{if(null===e.streamId)LC("auto-starting stream from first token",t.payload.streamId),e.streamId=t.payload.streamId,e.accumulatedText="",e.streamSequence=0,e.tokenMode="unknown";else if(e.streamId!==t.payload.streamId)return;e.status="streaming";const r=t.payload.text;"unknown"===e.tokenMode?""===e.accumulatedText?e.accumulatedText=r:r.length>e.accumulatedText.length&&r.startsWith(e.accumulatedText)?(e.tokenMode="full",e.accumulatedText=r):(e.tokenMode="delta",e.accumulatedText+=r):"full"===e.tokenMode?e.accumulatedText=r:e.accumulatedText+=r,e.streamSequence=t.payload.streamSequence},streamCompleted:e=>{LC("streamCompleted"),e.status="idle",e.streamId=null,e.streamSequence=0,e.tokenMode="unknown"}},selectors:{streamingStatusSelector:e=>e.status,streamingTextSelector:e=>e.accumulatedText,streamIdSelector:e=>e.streamId}}),{streamStarted:VC,tokenReceived:qC,streamCompleted:HC}=FC.actions,{streamingStatusSelector:UC,streamingTextSelector:WC,streamIdSelector:$C}=FC.selectors,GC=FC.reducer,YC=_S({name:"themeProvider",initialState:{theme:j.Day},reducers:{setTheme:(e,t)=>{e.theme=t.payload}}}),{setTheme:KC}=YC.actions,XC=YC.reducer,JC=_S({name:"voice",initialState:{voiceState:"inactive",micRms:0,isCapturing:!1},reducers:{setVoiceState:(e,t)=>{e.voiceState=t.payload,e.isCapturing="listening"===t.payload,"inactive"===t.payload&&(e.micRms=0)},updateMicRms:(e,t)=>{e.micRms=t.payload}},selectors:{voiceStateSelector:e=>e.voiceState,micRmsSelector:e=>e.micRms,isCapturingSelector:e=>e.isCapturing}}),{setVoiceState:QC,updateMicRms:ZC}=JC.actions,{voiceStateSelector:eA,micRmsSelector:tA,isCapturingSelector:rA}=JC.selectors,nA=JC.reducer;function oA(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{l(n.next(e))}catch(Wqe){i(Wqe)}}function s(e){try{l(n.throw(e))}catch(Wqe){i(Wqe)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const iA=["long","short","compact"];function aA(e){if(null==e)throw new Error('parseFloat: "input" parameter is null or undefined');if("number"==typeof e)return e;if("string"==typeof e)return parseFloat(e);throw new Error(`parseFloat: "input" parameter is not a number or a string (received "${typeof e}")`)}const sA=new Map([["substr",function(e,t,r){if("string"!=typeof e)throw new Error(`substr: "input" parameter is not a string (${e})`);if("number"!=typeof t)throw new Error(`substr: "start" parameter is not a number (${t})`);if(void 0!==r&&"number"!=typeof r)throw new Error(`substr: "end" parameter is not undefined or a number (${r})`);return e.substring(t,r)}],["JSON.parse",function(e){return JSON.parse(e)}],["toString",function(e){return String(e)}],["parseInt",function(e,t){if("number"==typeof typeof e)return e;if("string"!=typeof e)throw new Error(`parseInt: "input" parameter is not a number or a string (${e})`);if(void 0!==t&&"number"!=typeof t)throw new Error(`parseInt: "radix" is not undefined or a number (${t})`);return parseInt(e,t)}],["parseFloat",aA],["if",function(e,t,r){if("boolean"==typeof e)return e?t:r;throw new Error(`if: "condition" parameter is not a boolean (${e})`)}],["toUpper",function(e){if("string"==typeof e)return e.toUpperCase();throw new Error(`toUpper: "input" parameter is not a string (${e})`)}],["toLower",function(e){if("string"==typeof e)return e.toLowerCase();throw new Error(`toLower: "input" parameter is not a string (${e})`)}],["Date.format",function(e,t){let r;if("string"==typeof e)r=Date.parse(e);else{if("number"!=typeof e)throw new Error(`Date.format: "input" parameter is invalid (${e})`);r=e}const n=new Date(r);let o="compact";"string"==typeof t&&(o=t.toLowerCase(),iA.includes(o)||(o="compact"));const i="compact"===o?n.toLocaleDateString():n.toLocaleDateString(void 0,{day:"numeric",weekday:o,month:o,year:"numeric"});if("Invalid Date"===i)throw new Error(`Date.format: "input" parameter is invalid (${e})`);return i}],["Time.format",function(e){let t;if("string"==typeof e)t=Date.parse(e);else{if("number"!=typeof e)throw new Error(`Time.format: "input" parameter is invalid (${e})`);t=e}const r=new Date(t).toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"});if("Invalid Date"===r)throw new Error(`Time.format: "input" parameter is invalid (${e})`);return r}],["round",function(e){if("number"==typeof e)return Math.round(e);throw new Error(`round: "input" parameter is not a number (${e})`)}],["ceil",function(e){if("number"==typeof e)return Math.ceil(e);throw new Error(`ceil: "input" parameter is not a number (${e})`)}],["floor",function(e){if("number"==typeof e)return Math.floor(e);throw new Error(`floor: "input" parameter is not a number (${e})`)}],["length",function(e){if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new Error(`length: "input" parameter is not a string or an array (${e})`)}]]);function lA(e){return"object"==typeof e&&null!==e}function cA(e){return void 0!==e&&("string"==typeof e||"number"==typeof e)}function uA(e,t){return e===t||(Array.isArray(e)&&Array.isArray(t)?dA(e,t):!Array.isArray(e)&&!Array.isArray(t)&&(!(!e||"object"!=typeof e||!t||"object"!=typeof t)&&function(e,t){if("object"!=typeof e||"object"!=typeof t)return!1;if(null===e||null===t)return!1;if(void 0===e||void 0===t)return!1;if(e===t)return!0;if(!e||!t)return!1;const r=Object.keys(e),n=Object.keys(t);if(!dA(r,n))return!1;let o=!0;for(const i of r)o&&(o=uA(e[i],t[i]));return o}(e,t)))}function dA(e,t){if(e===t)return!0;if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;let r=!0;for(let n=0;n<e.length;n++){const o=e[n],i=t[n];r&&(r=uA(o,i))}return r}class fA{constructor(e,t){this.declaration=e,this.params=t}execute(){return oA(this,void 0,void 0,function*(){const e=!this._executionPromise;e&&(this._executionPromise=this.declaration.call(this.params));const t=yield this._executionPromise;return e&&(this._timeStamp=Date.now()),t})}isOutdated(){return void 0===this.declaration.cacheResultFor||!!this._timeStamp&&Date.now()-this._timeStamp>this.declaration.cacheResultFor}}class hA{scheduleSweep(){this._sweepInterval<=0||this._sweepTimeoutId||(this._sweepTimeoutId=setTimeout(()=>{try{this.sweep()}catch(e){console.warn("FunctionCallCache sweep failed:",e)}},this._sweepInterval))}cancelSweep(){this._sweepTimeoutId&&(clearTimeout(this._sweepTimeoutId),this._sweepTimeoutId=void 0)}constructor(e){var t;this._callCache=new Map,this._sweepInterval=e&&null!==(t=e.sweepInterval)&&void 0!==t?t:-1}sweep(){const e=[];for(const[t,r]of this._callCache.entries()){const n=[];for(const e of r)e.isOutdated()&&n.push(e);for(const e of n)r.delete(e);0===r.size&&e.push(t)}for(const t of e)this._callCache.delete(t)}clear(){this.cancelSweep(),this._callCache.clear()}callFunction(e,t){return oA(this,void 0,void 0,function*(){if(void 0===e.cacheResultFor||e.cacheResultFor<=0)return yield e.call(t);let r,n=this._callCache.get(e.name);if(n){for(const e of n)if(uA(e.params,t)){r=e;break}r&&r.isOutdated()&&(n.delete(r),r=void 0),r||(r=new fA(e,t),n.add(r))}else r=new fA(e,t),n=new Set([r]),this._callCache.set(e.name,n);this.scheduleSweep();try{return yield r.execute()}catch(o){throw n.delete(r),0===n.size&&this._callCache.delete(e.name),o}})}}class pA{constructor(e){this.name=e}withCacheResultFor(e){return this.cacheResultFor=e,this}}class mA extends pA{constructor(e,t){super(e),this.callback=t}call(e){return oA(this,void 0,void 0,function*(){return this.callback(...null!=e?e:[])})}}const gA=["string","number","boolean","identifier"],vA=[["/","*"],["-","+"],["==","!=","<","<=",">",">=","&&","||","in"]];class yA{static parse(e){const t=[];let r=0;for(;r<e.length;){const n=e.substring(r);let o=!1;for(const e of yA.rules){const i=e.regEx.exec(n);if(i){if(i.length>2)throw new Error("A tokenizer rule matched more than one group.");void 0!==e.tokenType&&t.push({type:e.tokenType,value:i[1===i.length?0:1],originalPosition:r}),r+=i[0].length,o=!0;break}}if(!o)throw new Error(`Unexpected character "${n[0]}" at position ${r}.`)}return t}}function bA(e){if("object"==typeof e&&!Array.isArray(e))throw new Error(`Invalid value type "${typeof e}"`);return e}yA.rules=[{tokenType:void 0,regEx:/^\s/},{tokenType:"${",regEx:/^\$\{/},{tokenType:"?#",regEx:/^\?#/},{tokenType:"}",regEx:/^}/},{tokenType:"[",regEx:/^\[/},{tokenType:"]",regEx:/^\]/},{tokenType:"(",regEx:/^\(/},{tokenType:")",regEx:/^\)/},{tokenType:"boolean",regEx:/^true|^false/},{tokenType:".",regEx:/^\./},{tokenType:",",regEx:/^,/},{tokenType:"+",regEx:/^\+/},{tokenType:"-",regEx:/^-/},{tokenType:"*",regEx:/^\*/},{tokenType:"/",regEx:/^\//},{tokenType:"==",regEx:/^==/},{tokenType:"!=",regEx:/^!=/},{tokenType:"<=",regEx:/^<=/},{tokenType:"<",regEx:/^</},{tokenType:">=",regEx:/^>=/},{tokenType:">",regEx:/^>/},{tokenType:"&&",regEx:/^&&/},{tokenType:"||",regEx:/^\|\|/},{tokenType:"in",regEx:/^in/},{tokenType:"string",regEx:/^"([^"]*)"/},{tokenType:"string",regEx:/^'([^']*)'/},{tokenType:"number",regEx:/^\d*\.?\d+/},{tokenType:"identifier",regEx:/^[$_a-zA-Z][\w\d]*/i}];const wA=["/","*","-","+","==","!=","<","<=",">",">=","&&","||","in"];class xA{constructor(e){let t;if(this._stateStack=[],this._functions=new Map,this.groupId=null==e?void 0:e.groupId,this.$root=null==e?void 0:e.$root,this.$index=0,(null==e?void 0:e.groupId)&&(t=xA._functionCallCacheMap.get(e.groupId),t||(t=new hA,xA._functionCallCacheMap.set(e.groupId,t))),this._functionCallCache=null!=t?t:new hA,null==e?void 0:e.functions)for(const r of e.functions)this._functions.set(r.name,r)}clone(){return new xA({$root:this.$root,groupId:this.groupId,functions:Array.from(this._functions.values())})}executeFunction(e,...t){return oA(this,void 0,void 0,function*(){const r=this.getFunction(e);if(void 0!==r){const e=yield Promise.all(t.map(e=>e.evaluate(this)));return yield this._functionCallCache.callFunction(r,e)}throw new Error(`Unknown function "${e}"`)})}registerFunctions(...e){for(const t of e)this._functions.has(t.name)||this._functions.set(t.name,t)}getFunction(e){const t=this._functions.get(e);if(t)return t;const r=sA.get(e);return r?new mA(e,r):void 0}saveState(){this._stateStack.push({$data:this.$data,$index:this.$index})}restoreLastState(){const e=this._stateStack.pop();if(void 0===e)throw new Error("There is no evaluation context state to restore.");this.$data=e.$data,this.$index=e.$index}get currentDataContext(){return void 0!==this.$data?this.$data:this.$root}}xA._functionCallCacheMap=new Map;class SA{}class kA extends SA{constructor(e){super(),this.operator=e}evaluate(e,t,r){return oA(this,void 0,void 0,function*(){if(Array.isArray(t)||Array.isArray(r))switch(this.operator){case"in":if(!Array.isArray(t)&&Array.isArray(r))return r.includes(t);break;case"+":if(Array.isArray(t)&&Array.isArray(r))return[...t,...r];if(Array.isArray(t))return[...t,r];if(Array.isArray(r))return[t,...r]}const e=void 0!==t&&void 0!==r;switch(this.operator){case"/":return t/r;case"*":return t*r;case"-":return t-r;case"+":return t+r;case"==":return t===r;case"!=":return t!==r;case"<":return!!e&&t<r;case"<=":return!!e&&t<=r;case">":return!!e&&t>r;case">=":return!!e&&t>=r;case"&&":return t&&r;case"||":return t||r}throw new Error(`Incompatible operand types ${t} (${typeof t}) and ${r} (${typeof r}) for operator "${this.operator}"`)})}}class EA extends SA{constructor(){super(...arguments),this.nodes=[],this.allowNull=!0}evaluate(e){return oA(this,void 0,void 0,function*(){if(1===this.nodes.length)return yield this.nodes[0].evaluate(e);const t=this.nodes.slice();for(const r of vA){let n=0;for(;n<t.length;){const o=t[n];if(o instanceof kA&&r.includes(o.operator)){const[r,i]=yield Promise.all([t[n-1].evaluate(e),t[n+1].evaluate(e)]),a=yield o.evaluate(e,bA(r),bA(i));t.splice(n-1,3,new AA(a)),n--}n++}}return yield t[0].evaluate(e)})}}class TA extends SA{evaluate(e){return oA(this,void 0,void 0,function*(){return this.identifier})}}class _A extends SA{evaluate(e){return oA(this,void 0,void 0,function*(){return void 0!==this.index?yield this.index.evaluate(e):void 0})}}class CA extends SA{constructor(e){super(),this.functionName=e,this.parameters=[]}evaluate(e){return oA(this,void 0,void 0,function*(){return yield e.executeFunction(this.functionName,...this.parameters)})}}class AA extends SA{constructor(e){super(),this.value=e}evaluate(e){return oA(this,void 0,void 0,function*(){return this.value})}}class IA extends SA{constructor(){super(...arguments),this.items=[]}evaluate(e){return oA(this,void 0,void 0,function*(){return yield Promise.all(this.items.map(t=>t.evaluate(e)))})}}let PA=class extends SA{constructor(){super(...arguments),this.parts=[]}evaluate(e){return oA(this,void 0,void 0,function*(){let t,r=0;for(;r<this.parts.length;){const n=this.parts[r];if(n instanceof TA&&0===r)switch(n.identifier){case"$root":t=e.$root;break;case"$data":t=e.currentDataContext;break;case"$index":t=e.$index;break;case"$var":t=e.$var;break;default:lA(e.currentDataContext)&&n.identifier&&(t=e.currentDataContext[n.identifier])}else{const o=yield n.evaluate(e);if(0===r)t=o;else{if(!lA(t)||!cA(o))throw new Error("Invalid path node.");t=t[o]}}r++}return t})}};class NA{static isReservedField(e){return NA._reservedFields.has(e)}unexpectedToken(){throw new Error(`Unexpected token "${this.current.value}" at position ${this.current.originalPosition}.`)}unexpectedEoe(){throw new Error("Unexpected end of expression.")}moveNext(){this._index++}parseToken(...e){this.eoe&&this.unexpectedEoe();const t=this.current;return e.includes(this.current.type)||this.unexpectedToken(),this.moveNext(),t}parseOptionalToken(...e){if(!this.eoe)return!!e.includes(this.current.type)&&(this.moveNext(),!0);this.unexpectedEoe()}parseFunctionCall(e){const t=new CA(e);if(this.parseToken("("),")"!==this.current.type){const e=this.parseExpression();let r=!1;if(e){t.parameters.push(e);do{if(r=this.parseOptionalToken(","),r){const e=this.parseExpression();t.parameters.push(e)}}while(r)}}return this.parseToken(")"),t}parseIdentifier(){const e=new TA;return e.identifier=this.current.value,this.moveNext(),e}parseIndexer(){const e=new _A;return this.parseToken("["),e.index=this.parseExpression(),this.parseToken("]"),e}parsePath(){const e=new PA;let t=["identifier","("],r=!1;for(;!this.eoe;){if(!t.includes(this.current.type)){if(e.parts.length>0&&r)return e;throw new Error("Invalid path.")}switch(r=!1,this.current.type){case"(":if(0===e.parts.length)this.moveNext(),e.parts.push(this.parseExpression()),this.parseToken(")");else{let t="";for(const r of e.parts)r instanceof TA||this.unexpectedToken(),""!==t&&(t+="."),t+=r.identifier;e.parts=[],e.parts.push(this.parseFunctionCall(t))}t=[".","["],r=!0;break;case"[":e.parts.push(this.parseIndexer()),t=[".","(","["],r=!0;break;case"identifier":e.parts.push(this.parseIdentifier()),t=[".","(","["],r=!0;break;case".":this.moveNext(),t=["identifier"];break;default:t=[]}}if(e.parts.length>0&&r)return e;throw new Error("Invalid path.")}parseArray(){const e=new IA;this.parseToken("[");const t=this.parseExpression();let r=!1;if(t){e.items.push(t);do{if(r=this.parseOptionalToken(","),r){const t=this.parseExpression();e.items.push(t)}}while(r)}return this.parseToken("]"),e}parseExpression(){const e=new EA;let t=[...gA,"(","[","+","-"],r=!1;for(;!this.eoe;){if(!t.includes(this.current.type)){if(0===e.nodes.length&&this.unexpectedToken(),r)return e;this.unexpectedToken()}switch(r=!1,this.current.type){case"(":case"identifier":e.nodes.push(this.parsePath()),t=wA,r=!0;break;case"[":e.nodes.push(this.parseArray()),t=["+"],r=!0;break;case"string":case"number":case"boolean":"string"===this.current.type?e.nodes.push(new AA(this.current.value)):"number"===this.current.type?e.nodes.push(new AA(aA(this.current.value))):e.nodes.push(new AA("true"===this.current.value)),this.moveNext(),t=wA,r=!0;break;case"-":0===e.nodes.length?(e.nodes.push(new AA(-1)),e.nodes.push(new kA("*")),t=["identifier","number","("]):(e.nodes.push(new kA(this.current.type)),t=[...gA,"("]),this.moveNext();break;case"+":0===e.nodes.length?t=[...gA,"("]:(e.nodes.push(new kA(this.current.type)),t=[...gA,"(","["]),this.moveNext();break;case"*":case"/":case"==":case"!=":case"<":case"<=":case">":case">=":case"&&":case"||":e.nodes.push(new kA(this.current.type)),this.moveNext(),t=[...gA,"("];break;case"in":e.nodes.push(new kA(this.current.type)),this.moveNext(),t=["["];break;default:t=[]}}if(r&&e.nodes.length>0)return e;this.unexpectedEoe()}constructor(e){this._index=0,this._tokens=yA.parse(e)}get eoe(){return this._index>=this._tokens.length}get current(){return this._tokens[this._index]}parse(){const e=this.parseExpression();if(this.eoe)return e;this.unexpectedToken()}parseBinding(){this.parseToken("${");const e=!this.parseOptionalToken("?#"),t=this.parseExpression();if(this.parseToken("}"),this.eoe)return{expression:t,allowNull:e};this.unexpectedToken()}}NA._reservedFields=new Set(["$data","$root","$var","$index"]);class BA{constructor(e,t){if(this.expressionString=e,this._options={allowAssignment:!1},this._options.allowAssignment=void 0!==(null==t?void 0:t.allowAssignment)?t.allowAssignment:this._options.allowAssignment,this._options.allowAssignment){const t=/^\s*([A-Za-z_][A-Za-z0-9_]*)\s*:=\s*/.exec(e);t&&t.length>1&&(this._assignResultTo=t[1],e=e.substring(t[0].length).trim())}const r=new NA(e);this._rootNode=r.parse()}evaluate(e){return oA(this,void 0,void 0,function*(){const t=null!=e?e:new xA,r=yield this._rootNode.evaluate(t);return this._assignResultTo&&(void 0===t.$var&&(t.$var={}),t.$var[this._assignResultTo]=r),r})}}function OA(e,t){for(const r in e){const n=parseInt(r,10);if(n>=0){const o=e[r];if(o&&"string"==typeof o&&o.toLowerCase()===t.toLowerCase())return n}}}function DA(e){const t=[];for(const r in e){if(parseInt(r,10)>=0){const n=e[r];n&&"string"==typeof n&&t.push(n)}}return t}const RA=new Map;function MA(e,t){RA.set(e,t)}class zA{}var jA,LA,FA,VA,qA,HA,UA,WA,$A,GA,YA,KA,XA,JA,QA,ZA,eI,tI,rI,nI,oI,iI,aI,sI,lI,cI,uI,dI,fI,hI,pI,mI,gI,vI,yI,bI,wI,xI,SI,kI,EI,TI,_I,CI,AI,II,PI,NI,BI,OI,DI,RI,MI,zI,jI,LI,FI,VI;zA.Default="default",zA.Emphasis="emphasis",zA.Accent="accent",zA.Good="good",zA.Attention="attention",zA.Warning="warning",(LA=jA||(jA={})).Default="default",LA.Positive="positive",LA.Destructive="destructive",MA(jA,"ActionStyle"),(VA=FA||(FA={})).Primary="primary",VA.Secondary="secondary",MA(FA,"ActionMode"),(HA=qA||(qA={}))[HA.Auto=0]="Auto",HA[HA.Stretch=1]="Stretch",HA[HA.Small=2]="Small",HA[HA.Medium=3]="Medium",HA[HA.Large=4]="Large",MA(qA,"Size"),(WA=UA||(UA={}))[WA.Small=0]="Small",WA[WA.Medium=1]="Medium",WA[WA.Large=2]="Large",MA(UA,"ImageSize"),(GA=$A||($A={}))[GA.Cover=0]="Cover",GA[GA.Contain=1]="Contain",GA[GA.Fill=2]="Fill",MA($A,"ImageFitMode"),(KA=YA||(YA={}))[KA.xxSmall=0]="xxSmall",KA[KA.xSmall=1]="xSmall",KA[KA.Small=2]="Small",KA[KA.Standard=3]="Standard",KA[KA.Medium=4]="Medium",KA[KA.Large=5]="Large",KA[KA.xLarge=6]="xLarge",KA[KA.xxLarge=7]="xxLarge",MA(YA,"IconSize"),(JA=XA||(XA={}))[JA.Regular=0]="Regular",JA[JA.Filled=1]="Filled",MA(XA,"IconStyle"),(ZA=QA||(QA={}))[ZA.Weight=0]="Weight",ZA[ZA.Pixel=1]="Pixel",MA(QA,"SizeUnit"),(tI=eI||(eI={}))[tI.Small=0]="Small",tI[tI.Default=1]="Default",tI[tI.Medium=2]="Medium",tI[tI.Large=3]="Large",tI[tI.ExtraLarge=4]="ExtraLarge",MA(eI,"TextSize"),(nI=rI||(rI={}))[nI.Lighter=0]="Lighter",nI[nI.Default=1]="Default",nI[nI.Bolder=2]="Bolder",MA(rI,"TextWeight"),(iI=oI||(oI={}))[iI.Default=0]="Default",iI[iI.Monospace=1]="Monospace",MA(oI,"FontType"),(sI=aI||(aI={}))[sI.None=0]="None",sI[sI.ExtraSmall=1]="ExtraSmall",sI[sI.Small=2]="Small",sI[sI.Default=3]="Default",sI[sI.Medium=4]="Medium",sI[sI.Large=5]="Large",sI[sI.ExtraLarge=6]="ExtraLarge",sI[sI.Padding=7]="Padding",MA(aI,"Spacing"),(cI=lI||(lI={}))[cI.Default=0]="Default",cI[cI.Dark=1]="Dark",cI[cI.Light=2]="Light",cI[cI.Accent=3]="Accent",cI[cI.Good=4]="Good",cI[cI.Warning=5]="Warning",cI[cI.Attention=6]="Attention",MA(lI,"TextColor"),(dI=uI||(uI={}))[dI.Left=0]="Left",dI[dI.Center=1]="Center",dI[dI.Right=2]="Right",MA(uI,"HorizontalAlignment"),(hI=fI||(fI={}))[hI.Top=0]="Top",hI[hI.Center=1]="Center",hI[hI.Bottom=2]="Bottom",MA(fI,"VerticalAlignment"),(mI=pI||(pI={}))[mI.Left=0]="Left",mI[mI.Center=1]="Center",mI[mI.Right=2]="Right",mI[mI.Stretch=3]="Stretch",MA(pI,"ActionAlignment"),(vI=gI||(gI={}))[vI.Default=0]="Default",vI[vI.Person=1]="Person",vI[vI.RoundedCorners=2]="RoundedCorners",MA(gI,"ImageStyle"),(bI=yI||(yI={}))[bI.Inline=0]="Inline",bI[bI.Popup=1]="Popup",MA(yI,"ShowCardActionMode"),(xI=wI||(wI={}))[xI.Horizontal=0]="Horizontal",xI[xI.Vertical=1]="Vertical",MA(wI,"Orientation"),(kI=SI||(SI={}))[kI.Cover=0]="Cover",kI[kI.RepeatHorizontally=1]="RepeatHorizontally",kI[kI.RepeatVertically=2]="RepeatVertically",kI[kI.Repeat=3]="Repeat",MA(SI,"FillMode"),(TI=EI||(EI={}))[TI.Normal=0]="Normal",TI[TI.Expanded=1]="Expanded",TI[TI.Subdued=2]="Subdued",MA(EI,"ActionButtonState"),(CI=_I||(_I={}))[CI.LeftOfTitle=0]="LeftOfTitle",CI[CI.AboveTitle=1]="AboveTitle",MA(_I,"ActionIconPlacement"),(II=AI||(AI={}))[II.Text=0]="Text",II[II.Tel=1]="Tel",II[II.Url=2]="Url",II[II.Email=3]="Email",II[II.Password=4]="Password",MA(AI,"InputTextStyle"),(NI=PI||(PI={}))[NI.Parse=0]="Parse",NI[NI.ToJSON=1]="ToJSON",NI[NI.Validation=2]="Validation",(OI=BI||(BI={}))[OI.Hint=0]="Hint",OI[OI.ActionTypeNotAllowed=1]="ActionTypeNotAllowed",OI[OI.CollectionCantBeEmpty=2]="CollectionCantBeEmpty",OI[OI.Deprecated=3]="Deprecated",OI[OI.ElementTypeNotAllowed=4]="ElementTypeNotAllowed",OI[OI.InteractivityNotAllowed=5]="InteractivityNotAllowed",OI[OI.InvalidPropertyValue=6]="InvalidPropertyValue",OI[OI.MissingCardType=7]="MissingCardType",OI[OI.PropertyCantBeNull=8]="PropertyCantBeNull",OI[OI.PropertyShouldBeSet=9]="PropertyShouldBeSet",OI[OI.TooManyActions=10]="TooManyActions",OI[OI.UnknownActionType=11]="UnknownActionType",OI[OI.UnknownElementType=12]="UnknownElementType",OI[OI.UnsupportedCardVersion=13]="UnsupportedCardVersion",OI[OI.DuplicateId=14]="DuplicateId",OI[OI.UnsupportedProperty=15]="UnsupportedProperty",OI[OI.RequiredInputsShouldHaveLabel=16]="RequiredInputsShouldHaveLabel",OI[OI.RequiredInputsShouldHaveErrorMessage=17]="RequiredInputsShouldHaveErrorMessage",OI[OI.Other=18]="Other",OI[OI.UnknownProperty=19]="UnknownProperty",(RI=DI||(DI={}))[RI.UnknownType=0]="UnknownType",RI[RI.ForbiddenType=1]="ForbiddenType",(zI=MI||(MI={}))[zI.Light=0]="Light",zI[zI.Dark=1]="Dark",MA(MI,"ThemeName"),(LI=jI||(jI={}))[LI.VeryNarrow=0]="VeryNarrow",LI[LI.Narrow=1]="Narrow",LI[LI.Standard=2]="Standard",LI[LI.Wide=3]="Wide",(VI=FI||(FI={}))[VI.AtLeast=0]="AtLeast",VI[VI.AtMost=1]="AtMost";class qI{}qI.useMarkdownInRadioButtonAndCheckbox=!0,qI.alwaysBleedSeparators=!1,qI.enableFullJsonRoundTrip=!1,qI.displayInputValidationErrors=!0,qI.allowPreProcessingPropertyValues=!1,qI.enableFallback=!0,qI.useWebkitLineClamp=!0,qI.allowMoreThanMaxActionsInOverflowMenu=!0,qI.removePaddingFromContainersWithBackgroundImage=!1,qI.resetInputsDirtyStateAfterActionExecution=!1,qI.defaultUnlocalizableStringFallback="Undefined",qI.useBorderColorForSeparator=!1,qI.failRenderingWhenUnknownPropertiesAreFound=!1,qI.failRenderingWhenInvalidPropertyValuesAreFound=!1,qI.fluentIconCdnBasePath="https://res-1.cdn.office.net/assets/fluentui-react-icons/2.0.226/",qI.enableIconSupportForActionButtons=!1,qI.allowSimultaneousVideoPlayback=!1,qI.enablePropagateIdToDOM=!1,qI.enableResourceStringApplication=!0;class HI{constructor(e=0,t=0,r=0,n=0){this.left=0,this.top=0,this.right=0,this.bottom=0,this.top=e,this.right=t,this.bottom=r,this.left=n}}class UI{constructor(e=aI.None,t=aI.None,r=aI.None,n=aI.None){this.top=aI.None,this.right=aI.None,this.bottom=aI.None,this.left=aI.None,this.top=e,this.right=t,this.bottom=r,this.left=n}}const WI={regEx:/^\d+px$/,displayText:"<number>px"};class $I{static parse(e,t=!1){const r=new $I(0,QA.Weight);if("number"==typeof e)return r.physicalSize=e,r;if("string"==typeof e){const n=/^([0-9]+)(px|\*)?$/g.exec(e),o=t?3:2;if(n&&n.length>=o)return r.physicalSize=parseInt(n[1],10),3===n.length&&"px"===n[2]&&(r.unit=QA.Pixel),r}throw new Error(`Invalid size: ${e}`)}constructor(e,t){this.physicalSize=e,this.unit=t}}class GI{static parse(e){var t,r;const n=DA(FI).join("|"),o=DA(jI).join("|"),i=new RegExp(`^(?:(${n}):)?(${o})$`,"i").exec(e);if(i&&i.length>=3){const e=new GI,n=null===(t=i[1])||void 0===t?void 0:t.toLowerCase();if(void 0!==n){const t=OA(FI,n);if(void 0===t)return;e.condition=t}const o=null===(r=i[2])||void 0===r?void 0:r.toLowerCase();if(void 0!==o){const t=OA(jI,o);if(void 0===t)return;return e.width=t,e}}}constructor(e=jI.Wide,t){this.width=e,this.condition=t}matches(e){return void 0===this.condition?this.width===e:this.condition===FI.AtLeast?this.width<=e:e<=this.width}toString(){return void 0!==this.condition?`${FI[this.condition]}:${jI[this.width]}`:jI[this.width]}}class YI{static generate(){const e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,r=4294967295*Math.random()|0,n=4294967295*Math.random()|0;return YI.lut[255&e]+YI.lut[e>>8&255]+YI.lut[e>>16&255]+YI.lut[e>>24&255]+"-"+YI.lut[255&t]+YI.lut[t>>8&255]+"-"+YI.lut[t>>16&15|64]+YI.lut[t>>24&255]+"-"+YI.lut[63&r|128]+YI.lut[r>>8&255]+"-"+YI.lut[r>>16&255]+YI.lut[r>>24&255]+YI.lut[255&n]+YI.lut[n>>8&255]+YI.lut[n>>16&255]+YI.lut[n>>24&255]}static initialize(){for(let e=0;e<256;e++)YI.lut[e]=(e<16?"0":"")+e.toString(16)}}var KI,XI;YI.lut=[],YI.initialize(),(XI=KI||(KI={}))[XI.Person=0]="Person",XI[XI.Tag=1]="Tag",MA(KI,"MentionType");const JI="CardElement",QI=`${JI}Array`,ZI="Action",eP=`${ZI}Array`;class tP{}function rP(e,...t){const r=e.className?e.className.split(/\s+/g):[];r.push(...t),e.className=r.join(" ")}function nP(){return`__ac-${YI.generate()}`}function oP(e,t){return"string"==typeof e?e:t}function iP(e,t){return"number"==typeof e?e:t}function aP(e,t){if("boolean"==typeof e)return e;if("string"==typeof e)switch(e.toLowerCase()){case"true":return!0;case"false":return!1;default:return t}return t}function sP(e,t,r){let n=e;for(;n.length<r;)n=t+n;return n}function lP(e){return`${e.getFullYear()}-${sP((e.getMonth()+1).toString(),"0",2)}-${sP(e.getDate().toString(),"0",2)}`}function cP(e){if(e){const t=/#([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?/gi.exec(e);if(t&&t[4]){const e=parseInt(t[1],16)/255;return`rgba(${parseInt(t[2],16)},${parseInt(t[3],16)},${parseInt(t[4],16)},${e})`}}return e}tP.errors={unknownElementType:e=>`Unknown element type "${e}". Fallback will be used if present.`,unknownActionType:e=>`Unknown action type "${e}". Fallback will be used if present.`,elementTypeNotAllowed:e=>`Element type "${e}" is not allowed in this context.`,actionTypeNotAllowed:e=>`Action type "${e}" is not allowed in this context.`,invalidPropertyValue:(e,t)=>`Invalid value "${e}" for property "${t}".`,showCardMustHaveCard:()=>'"An Action.ShowCard must have its "card" property set to a valid AdaptiveCard object.',invalidColumnWidth:e=>`Invalid column width "${e}" - defaulting to "auto".`,invalidCardVersion:e=>`Invalid card version. Defaulting to "${e}".`,invalidVersionString:e=>`Invalid version string "${e}".`,invalidDialogDimension:e=>`Invalid dialog dimension "${e}"`,propertyValueNotSupported:(e,t,r,n)=>`Value "${e}" for property "${t}" is supported in version ${r}, but you are using version ${n}.`,propertyNotSupported:(e,t,r)=>`Property "${e}" is supported in version ${t}, but you are using version ${r}.`,indexOutOfRange:e=>`Index out of range (${e}).`,elementCannotBeUsedAsInline:()=>"RichTextBlock.addInline: the specified card element cannot be used as a RichTextBlock inline.",inlineAlreadyParented:()=>"RichTextBlock.addInline: the specified inline already belongs to another RichTextBlock.",interactivityNotAllowed:()=>"Interactivity is not allowed.",inputsMustHaveUniqueId:()=>"All inputs must have a unique Id.",choiceSetMustHaveAtLeastOneChoice:()=>"An Input.ChoiceSet must have at least one choice defined.",choiceSetChoicesMustHaveTitleAndValue:()=>"All choices in an Input.ChoiceSet must have their title and value properties set.",propertyMustBeSet:e=>`Property "${e}" must be set.`,actionHttpHeadersMustHaveNameAndValue:()=>"All headers of an Action.Http must have their name and value properties set.",tooManyActions:e=>`Maximum number of actions exceeded (${e}).`,tooLittleTimeDelay:e=>`Autoplay Delay is too short (${e}).`,columnAlreadyBelongsToAnotherSet:()=>"This column already belongs to another ColumnSet.",invalidCardType:()=>'Invalid or missing card type. Make sure the card\'s type property is set to "AdaptiveCard".',unsupportedCardVersion:(e,t)=>`The specified card version (${e}) is not supported or still in preview. The latest released card version is ${t}.`,duplicateId:e=>`Duplicate Id "${e}".`,markdownProcessingNotEnabled:()=>"Markdown processing isn't enabled. Please see https://www.npmjs.com/package/adaptivecards#supporting-markdown",elementAlreadyParented:()=>"The element already belongs to another container.",actionAlreadyParented:()=>"The action already belongs to another element.",elementTypeNotStandalone:e=>`Elements of type ${e} cannot be used as standalone elements.`,unknownProperty:e=>`Unknown property "${e}"`,speakPropertyShouldBeSet:()=>'The "speak" property should always be set as it provides a way for screen readers to describe the card to an end-user that relies on assistive technologies.',menuActionsNotAllowedInPopovers:()=>"Menu actions are not allowed in popovers and will be ignored."},tP.hints={dontUseWeightedAndStretchedColumnsInSameSet:()=>"It is not recommended to use weighted and stretched columns in the same ColumnSet, because in such a situation stretched columns will always get the minimum amount of space."},tP.overflowButtonText={key:"overflowButtonText",defaultValue:"..."},tP.overflowButtonTooltip={key:"overflowButtonTooltip",defaultValue:"More options"},tP.mediaPlayerAriaLabel={key:"mediaPlayerAriaLabel",defaultValue:"Media content"},tP.mediaPlayerPlayMedia={key:"mediaPlayerPlayMedia",defaultValue:"Play media"},tP.youTubeVideoPlayer={key:"youTubeVideoPlayer",defaultValue:"YouTube video player"},tP.vimeoVideoPlayer={key:"vimeoVideoPlayer",defaultValue:"Vimeo video player"},tP.dailymotionVideoPlayer={key:"dailymotionVideoPlayer",defaultValue:"Dailymotion video player"},tP.mediaPlayerPosterAltText={key:"mediaPlayerPosterAltText",defaultValue:"Video poster"},tP.emptyElementText={key:"emptyElementText",defaultValue:"Empty {{elementType}}"};let uP=class e{constructor(e=1,t=1,r){this._isValid=!0,this._major=e,this._minor=t,this._label=r}static parse(t,r){if(!t)return;const n=new e;n._versionString=t;const o=/(\d+).(\d+)/gi.exec(t);return null!=o&&3===o.length?(n._major=parseInt(o[1],10),n._minor=parseInt(o[2],10)):n._isValid=!1,n._isValid||r.logParseEvent(void 0,BI.InvalidPropertyValue,tP.errors.invalidVersionString(n._versionString)),n}toString(){return this._isValid?`${this._major}.${this._minor}`:this._versionString}toJSON(){return this.toString()}compareTo(e){if(!this.isValid||!e.isValid)throw new Error("Cannot compare invalid version.");return this.major>e.major?1:this.major<e.major?-1:this.minor>e.minor?1:this.minor<e.minor?-1:0}get label(){return this._label?this._label:this.toString()}get major(){return this._major}get minor(){return this._minor}get isValid(){return this._isValid}};class dP{static getAllDeclaredVersions(){const e=[];for(const r in dP)if(r.match(/^v[0-9_]*$/))try{const t=dP[r];t instanceof uP&&e.push(t)}catch(t){}return e.sort((e,t)=>e.compareTo(t))}}dP.v1_0=new uP(1,0),dP.v1_1=new uP(1,1),dP.v1_2=new uP(1,2),dP.v1_3=new uP(1,3),dP.v1_4=new uP(1,4),dP.v1_5=new uP(1,5),dP.v1_6=new uP(1,6,"1.6 Preview"),dP.latest=dP.v1_5;class fP{constructor(e=dP.latest){this._validationEvents=[],this.targetVersion=e}postProcessParsedPropertyValue(e,t){var r;const n=null!==(r=this.onPostProcessParsedPropertyValue)&&void 0!==r?r:fP.onPostProcessParsedPropertyValue;return n?n(e,t):t}serializeValue(e,t,r,n=void 0,o=!1){null==r||r===n?o&&delete e[t]:e[t]=r}serializeString(e,t,r,n){null==r||r===n?delete e[t]:e[t]=r}serializeDate(e,t,r,n){null==r||r===n?delete e[t]:e[t]=lP(r)}serializeBool(e,t,r,n){null==r||r===n?delete e[t]:e[t]=r}serializeNumber(e,t,r,n){null==r||isNaN(r)||r===n?delete e[t]:e[t]=r}serializeEnum(e,t,r,n,o=void 0){null==n||n===o?delete t[r]:t[r]=e[n]}serializeArray(e,t,r){const n=[];if(r)for(const o of r){let e;e=o instanceof IP?o.toJSON(this):o.toJSON?o.toJSON():o,void 0!==e&&n.push(e)}0===n.length?e.hasOwnProperty(t)&&Array.isArray(e[t])&&delete e[t]:this.serializeValue(e,t,n)}clearEvents(){this._validationEvents=[]}logEvent(e,t,r,n){this._validationEvents.push({source:e,phase:t,event:r,message:n})}logParseEvent(e,t,r){this.logEvent(e,PI.Parse,t,r)}getEventAt(e){return this._validationEvents[e]}get eventCount(){return this._validationEvents.length}shouldFailRendering(){return qI.failRenderingWhenUnknownPropertiesAreFound&&this._validationEvents.some(e=>e.event===BI.UnknownProperty)||qI.failRenderingWhenInvalidPropertyValuesAreFound&&this._validationEvents.some(e=>e.event===BI.InvalidPropertyValue)}hasEvent(...e){return this._validationEvents.some(t=>e.includes(t.event))}getAttachableElementProperties(){return[]}getAttachableElementProperty(e){}}class hP extends fP{}class pP{getValueMetadata(e){}getInternalName(){return this.name}parse(e,t,r){return t[this.name]}toJSON(e,t,r,n){n.serializeValue(t,this.name,r,this.defaultValue)}validateValue(e){return!0}preProcessValue(e){return e}getDescriptor(e){return{valueTypes:[{type:"any"}],defaultValue:this.defaultValue}}setContentType(e){return this.contentType=e,this}setEnableSerialization(e){return this.isSerializationEnabled=e,this}setAlternateDefinition(e){return this.alternateDefinition=e,this}setHighPriority(e){return this.isHighPriority=e,this}setShouldApplyResources(e){return this.shouldApplyResources=e,this}setTypeName(e){return this.typeName=e,this}setIsRequired(e=!0){return this.isRequired=e,this}setIsHero(e=!0){return this.isHero=e,this}applyResourceStrings(e,t,r){return e}applyToObject(e){return oA(this,void 0,void 0,function*(){})}constructor(e,t,r,n){this.targetVersion=e,this.name=t,this.defaultValue=r,this.onGetInitialValue=n,this.isSerializationEnabled=!0,this.isRequired=!1,this.isHero=!1,this.isHighPriority=!1,this.shouldApplyResources=!1,this.sequentialNumber=pP._sequentialNumber,pP._sequentialNumber++}}pP._sequentialNumber=0;class mP extends pP{parse(e,t,r){let n=oP(t[this.name],this.defaultValue);if(""!==n||this.allowEmptyString||(n=void 0),n&&void 0!==this.regEx){if(!this.regEx.exec(n))return void r.logParseEvent(e,BI.InvalidPropertyValue,tP.errors.invalidPropertyValue(n,this.name))}return n}toJSON(e,t,r,n){n.serializeString(t,this.name,""===r?void 0:r,this.defaultValue)}validateValue(e){const t=""===e&&this.allowEmptyString?void 0:e;return"string"==typeof t||void 0===t}getDescriptor(e){return{valueTypes:[{type:"string"}],defaultValue:this.defaultValue,contentType:this.contentType}}applyResourceStrings(e,t,r){const n=/\$\{rs:(.+?)\}/g;return"string"==typeof e&&(e=e.replace(n,(e,n)=>{if(n in t){const e=t[n].getLocalizedValue(r);if(e)return e}return`\${rs:${n}}`})),e}constructor(e,t,r,n,o,i){super(e,t,n,o),this.targetVersion=e,this.name=t,this.regEx=r,this.defaultValue=n,this.onGetInitialValue=o,this.allowEmptyString=i,this.shouldApplyResources=!0}}class gP extends pP{parse(e,t,r){const n=oP(t[this.name]);if(n)try{return new BA(n)}catch(o){r.logParseEvent(e,BI.InvalidPropertyValue,tP.errors.invalidPropertyValue(n,this.name))}}toJSON(e,t,r,n){r&&n.serializeString(t,this.name,r.expressionString)}getDescriptor(e){return{valueTypes:[{type:"string"}],defaultValue:this.defaultValue,contentType:this.contentType}}constructor(e,t){super(e,t),this.targetVersion=e,this.name=t}}class vP extends gP{constructor(e,t,r){super(e,t),this.targetVersion=e,this.name=t,this.targetProperty=r}applyToObject(e){return oA(this,void 0,void 0,function*(){var t;const r=null===(t=e.expressionEvaluationContext)||void 0===t?void 0:t.clone(),n=e.getValue(this);if(n instanceof BA)try{const t=yield n.evaluate(r);n===e.getValue(this)&&e.setValue(this.targetProperty,t)}catch(o){console.warn(`Failed to evaluate dynamic property "${this.name}" with expression: "${n.expressionString}". ${o}`)}})}}class yP extends pP{parse(e,t,r){return aP(t[this.name],this.defaultValue)}toJSON(e,t,r,n){n.serializeBool(t,this.name,r,this.defaultValue)}validateValue(e){return"boolean"==typeof e||void 0===e}getDescriptor(e){return{valueTypes:[{type:"boolean"}],defaultValue:this.defaultValue}}constructor(e,t,r,n){super(e,t,r,n),this.targetVersion=e,this.name=t,this.defaultValue=r,this.onGetInitialValue=n}}class bP extends pP{parse(e,t,r){return iP(t[this.name],this.defaultValue)}toJSON(e,t,r,n){n.serializeNumber(t,this.name,r,this.defaultValue)}validateValue(e){return"number"==typeof e||void 0===e}getDescriptor(e){return{valueTypes:[{type:"number"}],defaultValue:this.defaultValue}}constructor(e,t,r,n){super(e,t,r,n),this.targetVersion=e,this.name=t,this.defaultValue=r,this.onGetInitialValue=n}}class wP extends pP{parse(e,t,r){let n;const o=t[this.name];if("string"==typeof o){let a=!1;try{const e=$I.parse(o,!0);e.unit===QA.Pixel&&(n=e.physicalSize,a=!0)}catch(i){}a||r.logParseEvent(e,BI.InvalidPropertyValue,tP.errors.invalidPropertyValue(t[this.name],"minHeight"))}return n}toJSON(e,t,r,n){n.serializeValue(t,this.name,"number"!=typeof r||isNaN(r)?void 0:`${r}px`)}getDescriptor(e){return{valueTypes:[{type:"string",validValues:[WI]}],defaultValue:this.defaultValue}}}class xP extends pP{parse(e,t,r){const n=t[this.name];if(void 0===n||!Array.isArray(n))return this.defaultValue;const o=[];for(const i of n)"string"==typeof i?o.push(i):r.logParseEvent(e,BI.InvalidPropertyValue,`Invalid array value "${JSON.stringify(i)}" of type "${typeof i}" ignored for "${this.name}".`);return o}toJSON(e,t,r,n){n.serializeArray(t,this.name,r)}getDescriptor(e){return{valueTypes:[{type:"string"}],defaultValue:this.defaultValue,propertyType:"array"}}constructor(e,t,r,n){super(e,t,r,n),this.targetVersion=e,this.name=t,this.defaultValue=r,this.onGetInitialValue=n}}class SP extends pP{isValidValue(e,t){for(const r of this.values)if(e.toLowerCase()===r.value.toLowerCase()){return(r.targetVersion?r.targetVersion:this.targetVersion).compareTo(t.targetVersion)<=0}return!1}parse(e,t,r){const n=t[this.name];if(void 0===n)return this.defaultValue;if("string"==typeof n)for(const o of this.values)if(n.toLowerCase()===o.value.toLowerCase()){const t=o.targetVersion?o.targetVersion:this.targetVersion;return t.compareTo(r.targetVersion)<=0?o.value:(r.logParseEvent(e,BI.InvalidPropertyValue,tP.errors.propertyValueNotSupported(n,this.name,t.toString(),r.targetVersion.toString())),this.defaultValue)}return r.logParseEvent(e,BI.InvalidPropertyValue,tP.errors.invalidPropertyValue(n,this.name)),this.defaultValue}toJSON(e,t,r,n){let o=!1;if(void 0!==r){o=!0;for(const t of this.values)if(t.value===r){const i=t.targetVersion?t.targetVersion:this.targetVersion;if(i.compareTo(n.targetVersion)<=0){o=!1;break}n.logEvent(e,PI.ToJSON,BI.InvalidPropertyValue,tP.errors.propertyValueNotSupported(r,this.name,i.toString(),n.targetVersion.toString()))}}o||n.serializeValue(t,this.name,r,this.defaultValue,!0)}getDescriptor(e){return{valueTypes:[{type:"string",validValues:this.values.map(e=>e.value)}],defaultValue:this.defaultValue,suggestedSchemaTypeName:this.typeName}}constructor(e,t,r,n,o){super(e,t,n,o),this.targetVersion=e,this.name=t,this.values=r,this.defaultValue=n,this.onGetInitialValue=o}}class kP extends pP{getValueMetadata(e){if("number"==typeof e&&this.valuesMetadata)return this.valuesMetadata[e]}parse(e,t,r){const n=t[this.name];if("string"!=typeof n)return this.defaultValue;const o=OA(this.enumType,n);if(void 0!==o)for(const i of this.values)if(i.value===o){const t=i.targetVersion?i.targetVersion:this.targetVersion;return t.compareTo(r.targetVersion)<=0?o:(r.logParseEvent(e,BI.InvalidPropertyValue,tP.errors.propertyValueNotSupported(n,this.name,t.toString(),r.targetVersion.toString())),this.defaultValue)}return r.logParseEvent(e,BI.InvalidPropertyValue,tP.errors.invalidPropertyValue(n,this.name)),this.defaultValue}toJSON(e,t,r,n){let o=!1;if(void 0!==r){o=!0;for(const t of this.values)if(t.value===r){if((t.targetVersion?t.targetVersion:this.targetVersion).compareTo(n.targetVersion)<=0){o=!1;break}n.logEvent(e,PI.ToJSON,BI.InvalidPropertyValue,tP.errors.invalidPropertyValue(r,this.name))}}o||n.serializeEnum(this.enumType,t,this.name,r,this.defaultValue)}getDescriptor(e){const t=DA(this.enumType),r={};for(const n of t){const e=OA(this.enumType,n),t=this.getValueMetadata(e);t&&(r[n]=t)}return{valueTypes:[{type:"string",validValues:DA(this.enumType)}],valuesMetadata:Object.keys(r).length>0?r:void 0,defaultValue:void 0!==this.defaultValue?this.enumType[this.defaultValue]:void 0,suggestedSchemaTypeName:this.typeName}}constructor(e,t,r,n,o,i){if(super(e,t,n,i),this.targetVersion=e,this.name=t,this.enumType=r,this.defaultValue=n,this.onGetInitialValue=i,this._values=[],this.typeName=function(e){return RA.get(e)}(r),o)this._values=o;else for(const a in r){const e=parseInt(a,10);e>=0&&this._values.push({value:e})}}get values(){return this._values}}class EP extends pP{setAllowAdditionalProperties(e){return this.allowAdditionalProperties=e,this}setPreserveAdditionalProperties(e){return this.preserveAdditionalProperties=e,this}parse(e,t,r){const n=t[this.name];if(void 0===n)return this.onGetInitialValue?this.onGetInitialValue(e):this.defaultValue;const o=this.createInstance(t);return o.parse(n,r),o}toJSON(e,t,r,n){let o;void 0===r||r.hasAllDefaultValues()||(o=r.toJSON(n)),"object"==typeof o&&0===Object.keys(o).length&&(o=void 0),n.serializeValue(t,this.name,o,this.defaultValue,!0)}getDescriptor(e){const t=new OP(this.createInstance(),this.allowAdditionalProperties);return t.preserveAdditionalProperties=this.preserveAdditionalProperties,{valueTypes:[{type:"object",validValues:[t]}],defaultValue:this.defaultValue}}constructor(e,t,r,n=!1,o){super(e,t,o,e=>this.nullable?void 0:this.createInstance()),this.targetVersion=e,this.name=t,this.createInstance=r,this.nullable=n,this.allowAdditionalProperties=!0,this.preserveAdditionalProperties=!1}}class TP extends pP{parse(e,t,r){const n=[],o=t[this.name];if(Array.isArray(o))for(const i of o){const t=this.createInstance(i);t&&(t.parse(i,r),n.push(t),this.onItemAdded&&this.onItemAdded(e,t))}return n.length>0?n:this.onGetInitialValue?this.onGetInitialValue(e):void 0}toJSON(e,t,r,n){n.serializeArray(t,this.name,r)}getDescriptor(e){const t=this.createInstance();return{valueTypes:[{type:"object",validValues:t?[new OP(t)]:void 0}],defaultValue:this.defaultValue,propertyType:"array"}}constructor(e,t,r,n){super(e,t,void 0,e=>[]),this.targetVersion=e,this.name=t,this.createInstance=r,this.onItemAdded=n}}class _P extends pP{parse(e,t,r){return this.onParse(e,this,t,r)}toJSON(e,t,r,n){this.onToJSON(e,this,t,r,n)}constructor(e,t,r,n,o,i){if(super(e,t,o,i),this.targetVersion=e,this.name=t,this.onParse=r,this.onToJSON=n,this.defaultValue=o,this.onGetInitialValue=i,!this.onParse)throw new Error("CustomPropertyDefinition instances must have an onParse handler.");if(!this.onToJSON)throw new Error("CustomPropertyDefinition instances must have an onToJSON handler.")}}class CP{constructor(e){this.owner=e,this._properties=new Map}determinePropertyOrigins(){const e=new AP(this.owner);for(const r in this.owner.constructor)try{const t=this.owner.constructor[r];if(t instanceof pP){const n=e.getDeclaringClass(r);n&&(t.origin={declaringClass:n,isInherited:n!==this.owner.constructor,schemaVersion:t.targetVersion})}}catch(t){}}add(...e){for(const t of e)this._properties.set(t.name.toLowerCase(),t)}remove(...e){for(const t of e)this._properties.delete(t.name.toLowerCase())}getItem(e){const t=this._properties.get(e.toLowerCase());let r=t;for(;r&&r.name!==e;)r=r.alternateDefinition;return r?t:void 0}get key(){return this.owner.getSchemaKey()}get properties(){return this._properties.values()}}class AP{constructor(e){this._serializableObject=e;let t,r=[this._serializableObject.constructor];do{t=Object.getPrototypeOf(r[0].prototype).constructor,(Object.prototype.isPrototypeOf.call(IP,t)||t===IP)&&(r=[t,...r])}while(t!==IP);this._constructorHierarchy=r}getDeclaringClass(e){for(const t of this._constructorHierarchy)if(e in t)return t}}class IP{get key(){return this.getValue(IP.keyProperty)}set key(e){this.setValue(IP.keyProperty,e)}shouldStoreRawProperties(){return qI.enableFullJsonRoundTrip||this.preserveSourcePropertiesOnParse}propertyChanged(e,t,r){this.isDesignMode()||e.applyToObject(this),this.onPropertyChanged&&this.onPropertyChanged(this,e,t,r)}afterParse(){}getDefaultSerializationContext(){return new hP}populateSchema(e){const t=[];for(const n in this.constructor)try{const e=this.constructor[n];e instanceof pP&&t.push(e)}catch(r){}if(t.length>0){const r=t.sort((e,t)=>e.sequentialNumber>t.sequentialNumber?1:e.sequentialNumber<t.sequentialNumber?-1:0);e.add(...r)}IP.onRegisterCustomProperties&&IP.onRegisterCustomProperties(this,e)}getAttachableProperties(e){return[]}internalParse(e,t){if(!this._isParsing){this._isParsing=!0;try{if(this._propertyBag={},this.preserveSourcePropertiesOnParse&&"object"==typeof e&&Object.assign(this,e),this._rawProperties=this.shouldStoreRawProperties()&&e||{},e){const r=this.getSchema(),n=this.getAdditionalValidSchemaProperties();for(const i in e)r.getItem(i)||n.includes(i)||t.getAttachableElementProperty(i)||t.logParseEvent(this,BI.UnknownProperty,tP.errors.unknownProperty(i));const o=Array.from(r.properties).concat(this.getAttachableProperties(t));qI.enableResourceStringApplication&&o.sort((e,t)=>Number(t.isHighPriority)-Number(e.isHighPriority));for(const i of o)if(i.isSerializationEnabled){let r=i.onGetInitialValue?i.onGetInitialValue(this):void 0,n=i;for(;n&&!e.hasOwnProperty(n.name);)n=n.alternateDefinition;n&&(n.targetVersion.compareTo(t.targetVersion)<=0?r=t.postProcessParsedPropertyValue(n,n.parse(this,e,t)):t.logParseEvent(this,BI.UnsupportedProperty,tP.errors.propertyNotSupported(n.name,n.targetVersion.toString(),t.targetVersion.toString()))),this.setValue(i,r)}}else this.resetDefaultValues()}finally{this._isParsing=!1,this.afterParse()}}}internalToJSON(e,t){const r=this.getSchema(),n=[];for(const o of r.properties)o.isSerializationEnabled&&o.targetVersion.compareTo(t.targetVersion)<=0&&-1===n.indexOf(o.name)&&(o.toJSON(this,e,this.getValue(o),t),n.push(o.name))}shouldSerialize(e){return!0}get isParsing(){return this._isParsing}constructor(){this._isParsing=!1,this._propertyBag={},this._rawProperties={},this.preserveSourcePropertiesOnParse=!1,this.maxVersion=IP.defaultMaxVersion;const e=this.getSchema();for(const t of e.properties)t.onGetInitialValue&&this.setValue(t,t.onGetInitialValue(this))}isDesignMode(){return!1}getAdditionalValidSchemaProperties(){return[]}getKey(e){const t=this.getValue(IP.keyProperty);return null!=t?t:`${this.getSchemaKey()}-${e}`}processImageUrl(e){return e}processApplicableProperties(){if(!this.isDesignMode()){const e=this.getSchema();for(const t of e.properties)t.applyToObject(this)}}getAdditionalPropertyDescriptors(e){return[]}reflect(e){var t,r;const n=this.getSchema();n.determinePropertyOrigins();const o=this.getAdditionalPropertyDescriptors(e),i=new Map,a=[...n.properties,...this.getAttachableProperties(e)];for(const s of a)s.isSerializationEnabled&&i.set(s.name,Object.assign(Object.assign({name:s.name},s.getDescriptor(e)),{declaringClassName:null===(t=s.origin)||void 0===t?void 0:t.declaringClass.name,schemaVersion:null===(r=s.origin)||void 0===r?void 0:r.schemaVersion,metadata:s.metadata,isRequired:s.isRequired,isHero:s.isHero}));for(const s of o)s.declaringClassName||(s.declaringClassName=this.constructor.name),i.set(s.name,s);return[...i.values()]}getSerializationContext(){return this.getDefaultSerializationContext()}getValue(e){return this._propertyBag.hasOwnProperty(e.getInternalName())?this._propertyBag[e.getInternalName()]:e.defaultValue}setValue(e,t){if(!e.validateValue(t))return;const r=(e,t,r)=>{this._isParsing||this.propertyChanged(e,t,r)};if(null==t)this._propertyBag.hasOwnProperty(e.getInternalName())&&(delete this._propertyBag[e.getInternalName()],r(e,t));else{let n=e.preProcessValue(t);if("imageUrl"===e.contentType&&"string"==typeof n&&(n=this.processImageUrl(n)),this._propertyBag[e.getInternalName()]!==n){const t=this._propertyBag[e.getInternalName()];this._propertyBag[e.getInternalName()]=n,r(e,n,t)}}}parse(e,t){const r=null!=t?t:this.getSerializationContext();this.internalParse(e,r),r.onAfterObjectParsed&&r.onAfterObjectParsed(this,e)}toJSON(e){const t=e&&e instanceof fP?e:this.getSerializationContext();if(this.shouldSerialize(t)){let e;return e=this.shouldStoreRawProperties()&&this._rawProperties&&"object"==typeof this._rawProperties?this._rawProperties:{},this.internalToJSON(e,t),e}}hasDefaultValue(e){return this.getValue(e)===e.defaultValue}hasAllDefaultValues(){const e=this.getSchema();for(const t of e.properties)if(!this.hasDefaultValue(t))return!1;return!0}resetDefaultValues(){const e=this.getSchema();for(const t of e.properties)this.setValue(t,t.defaultValue)}setCustomProperty(e,t){"string"==typeof t&&!t||null==t?delete this._rawProperties[e]:this._rawProperties[e]=t}getCustomProperty(e){return this._rawProperties[e]}getSchema(){let e=IP._schemaCache[this.getSchemaKey()];return e||(e=new CP(this),this.populateSchema(e),IP._schemaCache[e.key]=e),e}getCodeGenOptions(){}get expressionEvaluationContext(){}}IP.keyProperty=new mP(dP.v1_0,"key"),IP.defaultMaxVersion=dP.latest,IP._schemaCache={};class PP extends IP{getSchemaKey(){return this.getJsonTypeName()}getAdditionalPropertyDescriptors(e){return[...super.getAdditionalPropertyDescriptors(e),{name:"type",valueTypes:[{type:"string"}],requiredValue:this.getJsonTypeName(),declaringClassName:this.constructor.name,schemaVersion:dP.v1_0}]}}PP.typeNameProperty=new mP(dP.v1_0,"type",void 0,void 0,e=>e.getJsonTypeName());class NP{constructor(e){this.allowAdditionalProperties=e,this.preserveAdditionalProperties=!1}get describedObject(){}get codeGenOptions(){var e;return null===(e=this.describedObject)||void 0===e?void 0:e.getCodeGenOptions()}}class BP extends NP{constructor(e,t,r=!0){super(r),this._name=e,this._properties=t;for(const n of this._properties)n.declaringClassName=this._name}getProperties(e){return this._properties}get name(){return this._name}}class OP extends NP{constructor(e,t=!0){super(t),this._objectToReflect=e}getProperties(e){return this._properties||(this._properties=this._objectToReflect.reflect(e)),this._properties}get name(){return this._objectToReflect.getSchemaKey()}get describedObject(){return this._objectToReflect}}class DP extends pP{parse(e,t,r){const n=e;return r.parseAction(n,t[this.name],this.forbiddenActionTypes,n.isDesignMode())}toJSON(e,t,r,n){n.serializeValue(t,this.name,r?r.toJSON(n):void 0,void 0,!0)}getDescriptor(e){return{valueTypes:[{type:"object",validValues:e.actionRegistry.getDescriptors(e,this.forbiddenActionTypes,this.allowedActionTypes).sort((e,t)=>e.name.localeCompare(t.name))}]}}constructor(e,t,r=[],n=[]){super(e,t,void 0),this.targetVersion=e,this.name=t,this.forbiddenActionTypes=r,this.allowedActionTypes=n}}const RP=["12","16","20","24","28","32","40","48"],MP=/^([\w\d_-]+)(?:,(regular|filled)){0,1}$/i;const zP={[YA.xxSmall]:16,[YA.xSmall]:20,[YA.Small]:24,[YA.Standard]:32,[YA.Medium]:48,[YA.Large]:56,[YA.xLarge]:72,[YA.xxLarge]:96};function jP(e,t){const r=[];for(const o in t)r.push({rawSize:parseInt(o),icon:t[o]});const n=r.sort((e,t)=>e.rawSize-t.rawSize);for(let o=0;o<n.length;o++)if(e<=n[o].rawSize){return(o>0?e-n[o-1].rawSize:1/0)<n[o].rawSize-e?n[o-1].icon:n[o].icon}return n[n.length-1].icon}function LP(e){const t=`${e}px`;return g.createElement("div",{style:{width:t,height:t}})}const FP=e=>{const[t,r]=g.useState("notLoaded");let n=zP[YA.Standard],o=YA.Standard;if("number"==typeof e.iconSize)n=zP[e.iconSize],o=e.iconSize;else if("string"==typeof e.iconSize)try{const t=$I.parse(e.iconSize,!0);t.unit===QA.Pixel&&(n=t.physicalSize,o=function(e){for(const t in YA){const r=parseInt(t);if("number"==typeof r&&zP[r]>=e)return r}return YA.xxLarge}(n))}catch(Wqe){}switch(g.useEffect(()=>{r(UP.getIconOrState(e.name,o,e.iconStyle)),"notLoaded"===t&&UP.getIcon(e.name,o,e.iconStyle,e.rawIconSet).then(e=>{r(null!=e?e:"unavailable")})},[t,e.name,o,e.iconStyle,e.rawIconSet]),t){case"notLoaded":return void 0===e.showPlaceholder||e.showPlaceholder?LP(n):null;case"unavailable":return void 0===e.allowFallback||e.allowFallback?jN.imagePlaceholderRenderer?jN.imagePlaceholderRenderer({width:n+"px",height:n+"px"}):n?LP(n):null:null;default:return g.createElement(t,{style:Object.assign({color:e.iconColor,width:`${n}px`,height:`${n}px`,flex:"0 0 auto"},e.isInline&&{verticalAlign:"text-bottom"})})}};function VP(e){return"object"==typeof e&&RP.every(t=>function(e){return null==e||Array.isArray(e)&&e.every(e=>"string"==typeof e)}(e[t]))}function qP(e){return"object"==typeof e&&VP(e.regular)&&VP(e.filled)}function HP(e,t,r){const n={};for(const[o,i]of Object.entries(t))n[o]=Xu(e,o,i,{flipInRtl:r});return n}class UP{static getIconFromSet(e,t,r){const n=r===XA.Regular?[e.regular,e.filled]:[e.filled,e.regular];for(const o of n)if(Object.keys(o).length>0)return jP(zP[t],o)}static getIcon(e,t,r,n){return oA(this,void 0,void 0,function*(){if(this._invalidIconNames.has(e))return;let o=this._loadedIcons.get(e);if(!o){let t;if(n&&qP(n))t=n;else try{const r=yield fetch(function(e){return`${qI.fluentIconCdnBasePath}${e}/${e}.json`}(e));if(r.ok){const e=yield r.json();qP(e)&&(t=e)}}catch(Wqe){}t&&(o={regular:HP(e,t.regular,t.flipInRtl),filled:HP(e,t.filled,t.flipInRtl),flipInRtl:t.flipInRtl},this._loadedIcons.set(e,o))}if(o)return UP.getIconFromSet(o,t,r);this._invalidIconNames.add(e)})}static getIconOrState(e,t,r){var n;if(this._invalidIconNames.has(e))return"unavailable";const o=this._loadedIcons.get(e);return o?null!==(n=UP.getIconFromSet(o,t,r))&&void 0!==n?n:"unavailable":"notLoaded"}}UP._loadedIcons=new Map,UP._invalidIconNames=new Set;class WP extends IP{constructor(){super(...arguments),this._capabilities={}}getSchemaKey(){return"HostCapabilities"}internalParse(e,t){if(super.internalParse(e,t),e)for(const r in e){const n=e[r];if("string"==typeof n)if("*"===n)this.addCapability(r,"*");else{const e=uP.parse(n,t);(null==e?void 0:e.isValid)&&this.addCapability(r,e)}}}internalToJSON(e,t){super.internalToJSON(e,t);for(const r in this._capabilities)e[r]=this._capabilities[r]}addCapability(e,t){this._capabilities[e]=t}removeCapability(e){delete this._capabilities[e]}clear(){this._capabilities={}}hasCapability(e,t){return!!this._capabilities.hasOwnProperty(e)&&("*"===t||"*"===this._capabilities[e]||t.compareTo(this._capabilities[e])<=0)}areAllMet(e){for(const t in this._capabilities)if(!e.hasCapability(t,this._capabilities[t]))return!1;return!0}getCodeGenOptions(){const e=super.getCodeGenOptions();return Object.assign(Object.assign({},e),{treatAsDictionary:!0,dictionaryValueType:"string"})}}function $P(e,t,r){if("string"==typeof t){const n=function(e,t,r){if(!t)return r;const n=OA(e,t);return void 0!==n?n:r}(e,t,r);return void 0!==n?n:r}return"number"==typeof t?t:r}class GP{constructor(e,t){this.default="#000000",this.subtle="#666666",e&&(this.default=e),t&&(this.subtle=t)}parse(e){e&&(this.default=e.default||this.default,this.subtle=e.subtle||this.subtle)}}class YP extends GP{constructor(){super(...arguments),this.highlightColors=new GP("#22000000","#11000000")}parse(e){super.parse(e),e&&this.highlightColors.parse(e.highlightColors)}}class KP{constructor(e){this.allowCustomStyle=!1,e&&(this.allowCustomStyle=e.allowCustomStyle||this.allowCustomStyle)}}class XP{constructor(e){this.imageSize=qA.Medium,this.maxImageHeight=100,e&&(this.imageSize=null!=e.imageSize?e.imageSize:this.imageSize,this.maxImageHeight=iP(e.maxImageHeight,XP.defaultMaxImageHeight))}toJSON(){return{imageSize:qA[this.imageSize],maxImageHeight:this.maxImageHeight}}}XP.defaultMaxImageHeight=100;class JP{constructor(e){this.useHTML5PlayerAsFallback=!1,this.placeholderHeights={veryNarrow:120,narrow:175,standard:250,wide:300},e&&(this.defaultPoster=e.defaultPoster,this.useHTML5PlayerAsFallback=e.useHTML5PlayerAsFallback||this.useHTML5PlayerAsFallback)}toJSON(){return{defaultPoster:this.defaultPoster}}}class QP{constructor(e){this.cellSpacing=8,e&&(this.cellSpacing=e.cellSpacing&&"number"==typeof e.cellSpacing?e.cellSpacing:this.cellSpacing)}toJSON(){return{cellSpacing:this.cellSpacing}}}class ZP{constructor(e){this.size=eI.Default,this.color=lI.Default,this.isSubtle=!1,this.weight=rI.Default,this.parse(e)}parse(e){e&&(this.size=$P(eI,e.size,this.size),this.color=$P(lI,e.color,this.color),this.isSubtle=void 0!==e.isSubtle&&"boolean"==typeof e.isSubtle?e.isSubtle:this.isSubtle,this.weight=$P(rI,e.weight,this.getDefaultWeight()))}getDefaultWeight(){return rI.Default}toJSON(){return{size:eI[this.size],color:lI[this.color],isSubtle:this.isSubtle,weight:rI[this.weight]}}}class eN extends ZP{constructor(){super(...arguments),this.fontType=oI.Default}parse(e){super.parse(e),e&&(this.fontType=$P(oI,e.fontType,this.fontType))}}class tN{constructor(e){this.default=new eN,this.heading=new eN({size:"Large",weight:"Bolder"}),this.columnHeader=new eN({weight:"Bolder"}),this.label=new eN({weight:"Bolder"}),this.captionLabel=new eN({size:"Small",weight:"Bolder"}),this.caption=new eN({size:"Small"}),this.captionSubtle=new eN({size:"Small",weight:"Bolder",isSubtle:!0}),this.captionSubtleLabel=new eN({size:"Small",isSubtle:!0}),e&&(this.heading.parse(e.heading),this.columnHeader.parse(e.columnHeader),this.label.parse(e.label),this.captionLabel.parse(e.captionLabel),this.caption.parse(e.caption),this.captionSubtle.parse(e.captionSubtle),this.captionSubtleLabel.parse(e.captionSubtleLabel))}getStyleByName(e){switch(e.toLowerCase()){case"heading":return this.heading;case"columnHeader":return this.columnHeader;default:return this.default}}}class rN{constructor(e){e&&(this.headingLevel=iP(e.headingLevel))}}class nN extends ZP{constructor(){super(...arguments),this.suffix=" *",this.suffixColor=lI.Attention}parse(e){super.parse(e),e&&(this.suffix=e.suffix||this.suffix,this.suffixColor=$P(lI,e.suffixColor,this.suffixColor))}toJSON(){const e=super.toJSON();return e.suffix=this.suffix,e.suffixColor=lI[this.suffixColor],e}}class oN{constructor(e){this.inputSpacing=aI.ExtraSmall,this.requiredInputs=new nN,this.optionalInputs=new ZP,e&&(this.inputSpacing=$P(aI,e.inputSpacing,this.inputSpacing),this.requiredInputs=new nN(e.requiredInputs),this.optionalInputs=new ZP(e.optionalInputs))}}class iN{constructor(e){this.label=new oN,this.errorMessage=new ZP({color:lI.Attention}),e&&(this.label=new oN(e.label),this.errorMessage=new ZP(e.errorMessage))}}class aN extends ZP{constructor(){super(...arguments),this.wrap=!0}parse(e){super.parse(e),e&&(this.wrap=null!=e.wrap?e.wrap:this.wrap)}toJSON(){const e=super.toJSON();return e.wrap=this.wrap,e}}class sN extends aN{constructor(e){super(e),this.maxWidth=150,this.weight=rI.Bolder,e&&(this.maxWidth=null!=e.maxWidth?e.maxWidth:this.maxWidth,this.weight=$P(rI,e.weight,rI.Bolder))}getDefaultWeight(){return rI.Bolder}}class lN{constructor(e){this.rowGap=10,"object"==typeof e&&(this.rowGap="number"==typeof e.rowGap?Math.max(e.rowGap,0):this.rowGap)}}class cN extends lN{constructor(e){super(e),this.columnGap=10,"object"==typeof e&&(this.columnGap="number"==typeof e.columnGap?Math.max(e.columnGap,0):this.columnGap)}}class uN extends lN{constructor(e){super(e),this.titleValueGap=0,"object"==typeof e&&(this.titleValueGap="number"==typeof e.titleValueGap?Math.max(e.titleValueGap,0):this.titleValueGap)}}class dN{constructor(e){this.title=new sN,this.value=new aN,this.tableLayout=new cN,this.stackLayout=new uN,this.layoutSwitchBreakpoint=jI.Standard,"object"==typeof e&&(this.title=new sN(e.title),this.value=new aN(e.value),this.tableLayout=new cN(e.tableLayout),this.stackLayout=new uN(e.stackLayout),this.layoutSwitchBreakpoint=$P(jI,e.layoutSwitchBreakpoint,jI.Standard))}}class fN{constructor(e){this.actionMode=yI.Inline,this.inlineTopMargin=16,this.style=zA.Emphasis,e&&(this.actionMode=$P(yI,e.actionMode,yI.Inline),this.inlineTopMargin=null!=e.inlineTopMargin?e.inlineTopMargin:this.inlineTopMargin,this.style=e.style&&"string"==typeof e.style?e.style:zA.Emphasis)}toJSON(){return{actionMode:yI[this.actionMode],inlineTopMargin:this.inlineTopMargin,style:this.style}}}class hN{constructor(e){if(this.maxActions=5,this.spacing=aI.Default,this.buttonSpacing=20,this.showCard=new fN,this.preExpandSingleShowCardAction=!1,this.actionsOrientation=wI.Horizontal,this.actionAlignment=pI.Left,this.iconPlacement=_I.LeftOfTitle,this.allowTitleToWrap=!1,this.allowButtonsToWrap=!1,this.iconSize=16,e){this.maxActions=null!=e.maxActions?e.maxActions:this.maxActions,this.spacing=$P(aI,e.spacing&&e.spacing,aI.Default),this.buttonSpacing=null!=e.buttonSpacing?e.buttonSpacing:this.buttonSpacing,this.showCard=new fN(e.showCard),this.preExpandSingleShowCardAction=aP(e.preExpandSingleShowCardAction,!1),this.actionsOrientation=$P(wI,e.actionsOrientation,wI.Horizontal),this.actionAlignment=$P(pI,e.actionAlignment,pI.Left),this.iconPlacement=$P(_I,e.iconPlacement,_I.LeftOfTitle),this.allowTitleToWrap=null!=e.allowTitleToWrap?e.allowTitleToWrap:this.allowTitleToWrap,this.allowButtonsToWrap=null!=e.allowButtonsToWrap?e.allowButtonsToWrap:this.allowTitleToWrap;try{const t=$I.parse(e.iconSize);t.unit===QA.Pixel&&(this.iconSize=t.physicalSize)}catch(Wqe){}}}toJSON(){return{maxActions:this.maxActions,spacing:aI[this.spacing],buttonSpacing:this.buttonSpacing,showCard:this.showCard,preExpandSingleShowCardAction:this.preExpandSingleShowCardAction,actionsOrientation:wI[this.actionsOrientation],actionAlignment:pI[this.actionAlignment]}}}class pN{parseSingleColor(e,t){e&&this[t].parse(e[t])}constructor(e){this.default=new YP,this.dark=new YP,this.light=new YP,this.accent=new YP,this.good=new YP,this.warning=new YP,this.attention=new YP,this.parse(e)}parse(e){e&&(this.parseSingleColor(e,"default"),this.parseSingleColor(e,"dark"),this.parseSingleColor(e,"light"),this.parseSingleColor(e,"accent"),this.parseSingleColor(e,"good"),this.parseSingleColor(e,"warning"),this.parseSingleColor(e,"attention"))}getColorDefinition(e){switch(e){case lI.Accent:return this.accent;case lI.Dark:return this.dark;case lI.Light:return this.light;case lI.Good:return this.good;case lI.Warning:return this.warning;case lI.Attention:return this.attention;default:return this.default}}}class mN{parse(e){e&&(this.backgroundColor=e.backgroundColor,this.foregroundColors.parse(e.foregroundColors),this.highlightBackgroundColor=e.highlightBackgroundColor,this.highlightForegroundColor=e.highlightForegroundColor,this.borderColor=e.borderColor)}constructor(e){this.foregroundColors=new pN({default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#E69500",subtle:"#DDE69500"},attention:{default:"#CC3300",subtle:"#DDCC3300"}}),this.parse(e)}get isBuiltIn(){return!1}}class gN extends mN{get isBuiltIn(){return!0}}class vN{constructor(e){if(this._allStyles={},this._allStyles[zA.Default]=new gN,this._allStyles[zA.Emphasis]=new gN,this._allStyles[zA.Accent]=new gN,this._allStyles[zA.Good]=new gN,this._allStyles[zA.Attention]=new gN,this._allStyles[zA.Warning]=new gN,e){this._allStyles[zA.Default].parse(e[zA.Default]),this._allStyles[zA.Emphasis].parse(e[zA.Emphasis]),this._allStyles[zA.Accent].parse(e[zA.Accent]),this._allStyles[zA.Good].parse(e[zA.Good]),this._allStyles[zA.Attention].parse(e[zA.Attention]),this._allStyles[zA.Warning].parse(e[zA.Warning]);const t=e.customStyles;if(t&&Array.isArray(t))for(const e of t)if(e){const t=e.name;t&&"string"==typeof t&&(this._allStyles.hasOwnProperty(t)?this._allStyles[t].parse(e.style):this._allStyles[t]=new mN(e.style))}}}toJSON(){const e=[];Object.keys(this._allStyles).forEach(t=>{this._allStyles[t].isBuiltIn||e.push({name:t,style:this._allStyles[t]})});const t={default:this.default,emphasis:this.emphasis};return e.length>0&&(t.customStyles=e),t}getStyleByName(e,t){return e&&this._allStyles.hasOwnProperty(e)?this._allStyles[e]:t||this._allStyles[zA.Default]}get default(){return this._allStyles[zA.Default]}get emphasis(){return this._allStyles[zA.Emphasis]}}class yN{constructor(e){this.fontFamily="Segoe UI,Segoe,Segoe WP,Helvetica Neue,Helvetica,sans-serif",this.fontSizes={small:12,default:14,medium:17,large:21,extraLarge:26},this.fontWeights={lighter:200,default:400,bolder:600},this.inlineImageSizes={small:14,default:16,medium:16,large:18,extraLarge:24},e&&(this.fontFamily=e)}parse(e){this.fontFamily=e.fontFamily||this.fontFamily,this.fontSizes={small:e.fontSizes&&e.fontSizes.small||this.fontSizes.small,default:e.fontSizes&&e.fontSizes.default||this.fontSizes.default,medium:e.fontSizes&&e.fontSizes.medium||this.fontSizes.medium,large:e.fontSizes&&e.fontSizes.large||this.fontSizes.large,extraLarge:e.fontSizes&&e.fontSizes.extraLarge||this.fontSizes.extraLarge},this.fontWeights={lighter:e.fontWeights&&e.fontWeights.lighter||this.fontWeights.lighter,default:e.fontWeights&&e.fontWeights.default||this.fontWeights.default,bolder:e.fontWeights&&e.fontWeights.bolder||this.fontWeights.bolder}}getFontSize(e){switch(e){case eI.Small:return this.fontSizes.small;case eI.Medium:return this.fontSizes.medium;case eI.Large:return this.fontSizes.large;case eI.ExtraLarge:return this.fontSizes.extraLarge;default:return this.fontSizes.default}}}yN.monospace=new yN("'Courier New', Courier, monospace");class bN{constructor(e){this.default=new yN,this.monospace=new yN("'Courier New', Courier, monospace"),e&&(this.default.parse(e.default),this.monospace.parse(e.monospace))}getStyleDefinition(e){switch(e){case oI.Monospace:return this.monospace;case oI.Default:default:return this.default}}}const wN=new class{constructor(e){this.hostCapabilities=new WP,this.designMode=!1,this.choiceSetInputValueSeparator=",",this.dataGridInputValueSeparator=",",this.supportsInteractivity=!0,this.hostWidthBreakpoints={veryNarrow:216,narrow:345,standard:500},this.spacing={extraSmall:4,small:8,default:12,medium:16,large:20,extraLarge:24,padding:16},this.separator={lineThickness:1,lineColor:"#EEEEEE"},this.roundedCornerRadius=6,this.imageSizes={small:40,medium:80,large:160},this.containerStyles=new vN,this.inputs=new iN,this.actions=new hN,this.adaptiveCard=new KP,this.imageSet=new XP,this.media=new JP,this.factSet=new dN,this.table=new QP,this.textStyles=new tN,this.textBlock=new rN,this.alwaysAllowBleed=!1,this._legacyFontType=new yN,e&&(("string"==typeof e||e instanceof String)&&(e=JSON.parse(e)),this.choiceSetInputValueSeparator=e&&"string"==typeof e.choiceSetInputValueSeparator?e.choiceSetInputValueSeparator:this.choiceSetInputValueSeparator,this.dataGridInputValueSeparator=e&&"string"==typeof e.dataGridInputValueSeparator?e.dataGridInputValueSeparator:this.dataGridInputValueSeparator,this.supportsInteractivity=e&&"boolean"==typeof e.supportsInteractivity?e.supportsInteractivity:this.supportsInteractivity,this._legacyFontType.parse(e),e.fontTypes&&(this.fontTypes=new bN(e.fontTypes)),e.lineHeights&&(this.lineHeights={small:e.lineHeights.small,default:e.lineHeights.default,medium:e.lineHeights.medium,large:e.lineHeights.large,extraLarge:e.lineHeights.extraLarge}),this.imageSizes={small:e.imageSizes&&e.imageSizes.small||this.imageSizes.small,medium:e.imageSizes&&e.imageSizes.medium||this.imageSizes.medium,large:e.imageSizes&&e.imageSizes.large||this.imageSizes.large},this.containerStyles=new vN(e.containerStyles),this.spacing={extraSmall:e.spacing&&e.spacing.extraSmall||this.spacing.extraSmall,small:e.spacing&&e.spacing.small||this.spacing.small,default:e.spacing&&e.spacing.default||this.spacing.default,medium:e.spacing&&e.spacing.medium||this.spacing.medium,large:e.spacing&&e.spacing.large||this.spacing.large,extraLarge:e.spacing&&e.spacing.extraLarge||this.spacing.extraLarge,padding:e.spacing&&e.spacing.padding||this.spacing.padding},this.separator={lineThickness:e.separator&&e.separator.lineThickness||this.separator.lineThickness,lineColor:e.separator&&e.separator.lineColor||this.separator.lineColor},this.inputs=new iN(e.inputs||this.inputs),this.actions=new hN(e.actions||this.actions),this.adaptiveCard=new KP(e.adaptiveCard||this.adaptiveCard),this.imageSet=new XP(e.imageSet),this.factSet=new dN(e.factSet),this.textStyles=new tN(e.textStyles),this.textBlock=new rN(e.textBlock),this.media=new JP(e.media))}getFontTypeDefinition(e){return this.fontTypes?this.fontTypes.getStyleDefinition(e):e===oI.Monospace?yN.monospace:this._legacyFontType}getEffectiveSpacing(e){switch(e){case aI.ExtraSmall:return this.spacing.extraSmall;case aI.Small:return this.spacing.small;case aI.Default:return this.spacing.default;case aI.Medium:return this.spacing.medium;case aI.Large:return this.spacing.large;case aI.ExtraLarge:return this.spacing.extraLarge;case aI.Padding:return this.spacing.padding;default:return 0}}getHostWidthForPixelWidth(e){return e<=this.hostWidthBreakpoints.veryNarrow?jI.VeryNarrow:e<=this.hostWidthBreakpoints.narrow?jI.Narrow:e<=this.hostWidthBreakpoints.standard?jI.Standard:jI.Wide}paddingDefinitionToSpacingDefinition(e){return new HI(this.getEffectiveSpacing(e.top),this.getEffectiveSpacing(e.right),this.getEffectiveSpacing(e.bottom),this.getEffectiveSpacing(e.left))}makeCssClassNames(...e){const t=[];for(const r of e)t.push((this.cssClassNamePrefix?`${this.cssClassNamePrefix}-`:"")+r);return t}makeCssClassName(...e){const t=this.makeCssClassNames(...e).join(" ");return t||""}get fontFamily(){return this._legacyFontType.fontFamily}set fontFamily(e){this._legacyFontType.fontFamily=e}get fontSizes(){return this._legacyFontType.fontSizes}get fontWeights(){return this._legacyFontType.fontWeights}}({preExpandSingleShowCardAction:!0,supportsInteractivity:!0,spacing:{small:10,default:20,medium:30,large:40,extraLarge:50,padding:20},separator:{lineThickness:1,lineColor:"#EEEEEE"},imageSizes:{small:40,medium:80,large:160},fontTypes:{default:{fontFamily:"'Segoe UI', Tahoma, Geneva, Verdana, sans-serif",fontSizes:{small:12,default:14,medium:17,large:21,extraLarge:26},fontWeights:{lighter:200,default:400,bolder:600},inlineImageSizes:{small:16,default:19,medium:20,large:28,extraLarge:32}},monospace:{fontFamily:"'Courier New', Courier, monospace",fontSizes:{small:12,default:14,medium:17,large:21,extraLarge:26},fontWeights:{lighter:200,default:400,bolder:600},inlineImageSizes:{small:16,default:19,medium:23,large:28,extraLarge:35}}},textStyles:{heading:{fontType:"default",size:"large",weight:"bolder",color:"default",isSubtle:!1}},textBlock:{headingLevel:2},containerStyles:{default:{borderColor:"#CCCCCC",backgroundColor:"#FFFFFF",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},emphasis:{borderColor:"#666666",backgroundColor:"#08000000",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},accent:{borderColor:"#62A8F7",backgroundColor:"#C7DEF9",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},good:{borderColor:"#69E569",backgroundColor:"#CCFFCC",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},attention:{borderColor:"#FF764C",backgroundColor:"#FFC5B2",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}},warning:{borderColor:"#FFBC51",backgroundColor:"#FFE2B2",foregroundColors:{default:{default:"#333333",subtle:"#EE333333"},dark:{default:"#000000",subtle:"#66000000"},light:{default:"#FFFFFF",subtle:"#33000000"},accent:{default:"#2E89FC",subtle:"#882E89FC"},attention:{default:"#cc3300",subtle:"#DDcc3300"},good:{default:"#028A02",subtle:"#DD027502"},warning:{default:"#e69500",subtle:"#DDe69500"}}}},actions:{maxActions:5,spacing:"default",buttonSpacing:10,showCard:{actionMode:"inline",inlineTopMargin:16},actionsOrientation:"horizontal",actionAlignment:"left"},adaptiveCard:{allowCustomStyle:!0},imageSet:{imageSize:"medium",maxImageHeight:100},factSet:{title:{color:"default",size:"default",isSubtle:!1,weight:"bolder",wrap:!0,maxWidth:150},value:{color:"default",size:"default",isSubtle:!1,weight:"default",wrap:!0},tableLayout:{columnGap:10,rowGap:6},stackLayout:{rowGap:10},layoutSwitchBreakpoint:"standard"}});class xN extends IP{getSchemaKey(){return"StringResource"}get defaultValue(){return this.getValue(xN.defaultValue)}set defaultValue(e){this.setValue(xN.defaultValue,e)}get localizedValues(){return this.getValue(xN.localizedValues)}set localizedValues(e){this.setValue(xN.localizedValues,e)}getLocalizedValue(e){var t;let r;if(e){const t=/^[a-z]{2}(-[a-z]{2})?$/i.test(e)?e.toLowerCase():void 0;if(this.localizedValues&&t&&(r=Object.keys(this.localizedValues).find(e=>e.toLowerCase()===t),void 0===r)){const e=t.substring(0,2);for(const t in this.localizedValues)t.substring(0,2).toLowerCase()===e&&(void 0===r||t.localeCompare(r,void 0,{sensitivity:"base"})<0)&&(r=t)}}return r?null===(t=this.localizedValues)||void 0===t?void 0:t[r]:this.defaultValue}}xN.defaultValue=new mP(dP.v1_5,"defaultValue").setShouldApplyResources(!1),xN.localizedValues=new class extends pP{getDescriptor(e){return{valueTypes:[{type:"string"}],defaultValue:this.defaultValue,propertyType:"dictionary",contentType:this.contentType}}}(dP.v1_5,"localizedValues");class SN extends IP{getSchemaKey(){return"Resources"}get strings(){return this.getValue(SN.stringsProperty)}set strings(e){this.setValue(SN.stringsProperty,e)}}SN.stringsProperty=new class extends pP{parse(e,t,r){const n=t[this.name],o={};for(const i in n){const e=new xN;e.parse(n[i],r),o[i]=e}return o}getDescriptor(e){return{valueTypes:[{type:"object",validValues:[new OP(new xN)]}],defaultValue:this.defaultValue,propertyType:"dictionary",contentType:this.contentType}}}(dP.v1_5,"strings");class kN{constructor(e){this.customValidators=e,this.allIds={},this.validationEvents=[]}addFailure(e,t,r){this.validationEvents.push({phase:PI.Validation,source:e,event:t,message:r})}}class EN extends IP{get theme(){return this.getValue(EN.themeProperty)}set theme(e){this.setValue(EN.themeProperty,e)}get url(){return this.getValue(EN.urlProperty)}set url(e){this.setValue(EN.urlProperty,e)}getSchemaKey(){return"ThemedUrl"}constructor(e=MI.Light,t){super(),this.theme=e,this.url=t}}EN.themeProperty=new kP(dP.v1_5,"theme",MI,MI.Light),EN.urlProperty=new mP(dP.v1_5,"url").setContentType("imageUrl");class TN extends PP{constructor(){super(...arguments),this._shouldFallback=!1,this._openPopoverCount=0,this.isPopoverContent=!1}get id(){return this.getValue(TN.idProperty)}set id(e){this.setValue(TN.idProperty,e)}get requires(){return this.getValue(TN.requiresProperty)}get internalId(){}actionExecuted(e){}getDefaultSerializationContext(){return new RN}mediaPlaybackStarted(e){this.onMediaPlaybackStarted?this.onMediaPlaybackStarted(e):this.parent&&this.parent.mediaPlaybackStarted(e)}closePopover(){var e;this.onClosePopover&&this.onClosePopover(),null===(e=this.parent)||void 0===e||e.closePopover()}getAdditionalValidSchemaProperties(){return[...super.getAdditionalValidSchemaProperties(),"fallback"]}getSerializationContext(){return this._serializationContext?this._serializationContext:this.parent?this.parent.getSerializationContext():this.getDefaultSerializationContext()}setSerializationContext(e){this._serializationContext=e}localizeString(e,t){let r;return this.onLocalizeString?r=this.onLocalizeString(e.key,t):this.parent&&(r=this.parent.localizeString(e,t)),void 0===r?function(e,t={}){return Object.entries(t).forEach(([t,r])=>{const n=void 0!==r?r.toString():"";e=e.replace(new RegExp(`{{${t}}}`,"g"),n)}),e}(e.defaultValue,t):r}getAllInputs(e=!0){return[]}getResourceStrings(){var e;return null===(e=this.parent)||void 0===e?void 0:e.getResourceStrings()}getValue(e){let t=super.getValue(e);if(qI.enableResourceStringApplication&&!this.isDesignMode()&&e.shouldApplyResources){const r=this.getResourceStrings();r&&(t=e.applyResourceStrings(t,r,this.hostConfig.hostLocale))}return t}preProcessPropertyValue(e,t){const r=void 0===t?this.getValue(e):t;if(qI.allowPreProcessingPropertyValues){let t=this;for(;t&&!t.onPreProcessPropertyValue;)t=t.parent;if(t&&t.onPreProcessPropertyValue)return t.onPreProcessPropertyValue(this,e,r)}return r}setParent(e){this._parent=e}setShouldFallback(e){this._shouldFallback=e}shouldFallback(){return this._shouldFallback||!this.requires.areAllMet(this.hostConfig.hostCapabilities)}getRootObject(){let e=this;for(;e.parent;)e=e.parent;return e}hasAsParent(e){let t=this.parent;for(;t;){if(t===e)return!0;t=t.parent}return!1}internalValidateProperties(e){var t;const r=null===(t=e.customValidators)||void 0===t?void 0:t[this.getJsonTypeName()];r&&r(this,e),this.id&&(e.allIds.hasOwnProperty(this.id)?(1===e.allIds[this.id]&&e.addFailure(this,BI.DuplicateId,tP.errors.duplicateId(this.id)),e.allIds[this.id]+=1):e.allIds[this.id]=1)}isAtTheVeryLeft(){return!1}isAtTheVeryRight(){return!1}isAtTheVeryTop(){return!1}isAtTheVeryBottom(){return!1}isDesignMode(){return this.hostConfig.designMode}validateProperties(e){const t=new kN(e);return this.internalValidateProperties(t),t}releaseDOMResources(){}updateActionsEnabledState(){}updateLayout(e=!1){}renderAnchor(e,t){return this.parent?this.parent.renderAnchor(e,t):((e,t)=>g.createElement("a",t,null!=e?e:t.href))(e,t)}renderImage(e,t){return this.parent?this.parent.renderImage(e,t):((e,t)=>g.createElement("img",Object.assign({},t)))(0,t)}formatDate(e){return this.parent?this.parent.formatDate(e):e.toLocaleDateString(void 0,{dateStyle:"long"})}processImageUrlAsync(e){return!!this.parent&&this.parent.processImageUrlAsync(e)}processImageUrl(e){return this.parent?this.parent.processImageUrl(e):e}dataQuery(e){return!!this.parent&&this.parent.dataQuery(e)}popoverOpened(){this._openPopoverCount++,this.parent&&this.parent.popoverOpened()}popoverClosed(){this._openPopoverCount>0&&(this._openPopoverCount--,0===this._openPopoverCount&&this.getRootObject().updateLayout()),this.parent&&this.parent.popoverClosed()}isInPopover(){return!!this.isPopoverContent||!!this.parent&&this.parent.isInPopover()}setLabelElementForInputId(e,t){var r;null===(r=this.parent)||void 0===r||r.setLabelElementForInputId(e,t)}getLabelElementForInputId(e){var t;return null===(t=this.parent)||void 0===t?void 0:t.getLabelElementForInputId(e)}removeLabelElementForInputId(e){var t;null===(t=this.parent)||void 0===t||t.removeLabelElementForInputId(e)}registerInput(e){var t;null===(t=this.parent)||void 0===t||t.registerInput(e)}getInput(e){var t;return null===(t=this.parent)||void 0===t?void 0:t.getInput(e)}unregisterInput(e){var t;null===(t=this.parent)||void 0===t||t.unregisterInput(e)}inputHasExternalLabel(e){return!!this.parent&&this.parent.inputHasExternalLabel(e)}getSize(){}get groupId(){return this._groupId?this._groupId:this.parent?this.parent.groupId:void 0}set groupId(e){this._groupId=e}get isInSubCard(){return!!this.parent&&this.parent.isInSubCard}get horizontalAlignment(){}get parent(){return this._parent}get expressionEvaluationContext(){return this._expressionEvaluationContext?this._expressionEvaluationContext:this.parent?this.parent.expressionEvaluationContext:void 0}set expressionEvaluationContext(e){this._expressionEvaluationContext=e}}TN.idProperty=new mP(dP.v1_0,"id"),TN.requiresProperty=new class extends EP{constructor(e,t){super(e,t,e=>new WP,!1,new WP),this.targetVersion=e,this.name=t,this.allowAdditionalProperties=!0,this.preserveAdditionalProperties=!0}}(dP.v1_2,"requires");class _N extends TN{constructor(){super(...arguments),this._hasBeenRendered=!1,this._disableAutomaticReRenderCount=0,this.Render=e=>g.createElement(CN,{cardObject:this,args:e.args})}invalidate(){var e;null===(e=this.onInvalidate)||void 0===e||e.call(this,this)}propertyChanged(e,t,r){super.propertyChanged(e,t,r),0===this._disableAutomaticReRenderCount&&this.invalidate()}mounted(){this._hasBeenRendered=!0,this.onMounted&&this.onMounted(this)}unmounted(){}renderedElementChanged(e,t){this.onRenderedElementChanged&&this.onRenderedElementChanged(e,t)}updateLayout(e=!1){super.updateLayout(e),this.invalidate()}disableAutomaticReRender(){this._disableAutomaticReRenderCount++}enableAutomaticReRender(){this._disableAutomaticReRenderCount>0&&this._disableAutomaticReRenderCount--}get hasBeenRendered(){return this._hasBeenRendered}get renderedElement(){}}const CN=e=>{const[,t]=g.useState(0),r=g.useCallback(()=>{t(e=>e+1)},[]);return g.useEffect(()=>(e.cardObject.onInvalidate=r,e.cardObject.mounted(),()=>{e.cardObject.onInvalidate=void 0,e.cardObject.unmounted()}),[e.cardObject,r]),e.cardObject.render(e.args)};function AN(e,t,r,n,o){if(t.spacing>0||void 0!==t.lineThickness&&t.lineThickness>0){const i={style:{}};i.className=e.makeCssClassName(`ac-${r===wI.Horizontal?"horizontal":"vertical"}-separator`),i["aria-hidden"]=!0,i.style.overflow="hidden",i.style.flex="0 0 auto";const a=t.lineColor?cP(t.lineColor):"";return r===wI.Horizontal?(t.lineThickness?(i.style.paddingTop=t.spacing/2+"px",i.style.marginBottom=t.spacing/2+"px",i.style.borderBottom=`${t.lineThickness}px solid ${a}`):i.style.height=`${t.spacing}px`,i.style.marginLeft=n.margin.left,i.style.marginRight=n.margin.right):t.lineThickness?(i.style.paddingLeft=t.spacing/2+"px",i.style.marginRight=t.spacing/2+"px",i.style.borderRight=`${t.lineThickness}px solid ${a}`):i.style.width=`${t.spacing}px`,g.createElement("div",Object.assign({},i,{ref:o}))}return null}class IN extends pP{parse(e,t,r){const n=t[this.name];return"string"==typeof n?GI.parse(n):this.defaultValue}toJSON(e,t,r,n){n.serializeValue(t,this.name,r?r.toString():void 0,void 0,!0)}getDescriptor(e){const t=DA(jI),r=[...t];return t.forEach(e=>{r.push(`atLeast:${e}`,`atMost:${e}`)}),{valueTypes:[{type:"string",validValues:r}],defaultValue:void 0!==this.defaultValue?jI[this.defaultValue]:void 0,suggestedSchemaTypeName:"TargetWidth"}}}class PN extends _N{get isSortKey(){return this.getValue(PN.isSortKey)}set isSortKey(e){this.setValue(PN.isSortKey,e)}get horizontalAlignment(){return this.getValue(PN.horizontalAlignmentProperty)}set horizontalAlignment(e){this.setValue(PN.horizontalAlignmentProperty,e)}get spacing(){return this.getValue(PN.spacingProperty)}set spacing(e){this.setValue(PN.spacingProperty,e)}get separator(){return this.getValue(PN.separatorProperty)}set separator(e){this.setValue(PN.separatorProperty,e)}get height(){return this.getValue(PN.heightProperty)}set height(e){this.setValue(PN.heightProperty,e)}get lang(){const e=this.getValue(PN.langProperty);return e||(this.parent?this.parent.lang:void 0)}set lang(e){this.setValue(PN.langProperty,e)}get isVisible(){return this.getValue(PN.isVisibleProperty)}set isVisible(e){this.setValue(PN.isVisibleProperty,e)}get isVisibleDynamic(){return this.getValue(PN.isVisibleDynamicProperty)}set isVisibleDynamic(e){this.setValue(PN.isVisibleDynamicProperty,e)}get targetWidth(){return this.getValue(PN.targetWidthProperty)}set targetWidth(e){this.setValue(PN.targetWidthProperty,e)}createPlaceholderElement(e){const t=cP(this.getEffectiveStyleDefinition().foregroundColors.default.subtle),r=null!=e?e:this.localizeString(tP.emptyElementText,{elementType:this.getJsonTypeName()});return g.createElement("div",{style:{border:"1px dashed "+t,padding:"4px",minHeight:"32px",fontSize:"10px",color:t}},r)}providesDesignModeElement(){return!1}getSeparatorColor(e){if(!this.separator)return;const t=null!=e?e:this.getEffectiveStyleDefinition(),r=qI.useBorderColorForSeparator?t.borderColor:void 0;return null!=r?r:this.hostConfig.separator.lineColor}getAttachableProperties(e){return[...super.getAttachableProperties(e),...e.getAttachableElementProperties()]}render(e){var t;let r=this.isVisible||this.isDesignMode()?this.internalRender(e):null;qI.enablePropagateIdToDOM&&r&&this.id&&(r=g.cloneElement(r,{"data-ac-id":this.id}));let n=null;const o=!this.parent||this.parent.allowSpaceBetweenElements;if(r&&this.hasVisibleSeparator&&o){const e={padding:{},margin:{}};this.getSeparatorSpacings(e),n=AN(this.hostConfig,{spacing:this.hostConfig.getEffectiveSpacing(this.spacing),lineThickness:this.separator?this.hostConfig.separator.lineThickness:void 0,lineColor:this.getSeparatorColor()},this.separatorOrientation,e,this.isDesignMode()?e=>this._renderedSeparatorElement=null!=e?e:void 0:void 0)}if(this.isDesignMode()&&this.isStandalone&&!this.providesDesignModeElement()){const e={className:"designer-wrapper",style:{display:"flex",flexDirection:"column"}};return this.adjustSize(e.style),(null===(t=null==r?void 0:r.props)||void 0===t?void 0:t.style)&&this.adjustSize(r.props.style),g.createElement(g.Fragment,null,n,g.createElement("div",Object.assign({},e,{ref:e=>this.renderedElement=null!=e?e:void 0}),r))}(null==r?void 0:r.props.style)&&this.adjustSize(r.props.style);const i=this.getMainAction();return r&&i&&(r=i.applyTo(r)),g.createElement(g.Fragment,null,n,r)}elementVisibilityChanged(e){this.getRootElement().elementVisibilityChanged(e)}adjustSize(e){"auto"===this.height?e.flex="0 0 auto":e.flex="1 1 auto"}getSpacings(e){}getSeparatorSpacings(e){if(this.separatorOrientation===wI.Horizontal)if(qI.alwaysBleedSeparators&&!this.isBleeding()){const t=new UI;this.getImmediateSurroundingPadding(t);const r=this.hostConfig.paddingDefinitionToSpacingDefinition(t);e.margin.left=-r.left,e.margin.right=-r.right}else e.margin.right=0,e.margin.left=0}getDefaultPadding(){return new UI}getHasBackground(e=!1){return!1}getHasBorder(){return!1}getPadding(){return this._padding}setPadding(e){this._padding=e}shouldSerialize(e){return void 0!==e.elementRegistry.findByName(this.getJsonTypeName())}getMainAction(){}get useDefaultSizing(){return!0}get separatorOrientation(){return wI.Horizontal}get defaultStyle(){return zA.Default}processMarkdown(e){return this.parent?this.parent.processMarkdown(e):{didProcess:!1}}setValue(e,t){if(e!==PN.isVisibleProperty||this.isParsing)super.setValue(e,t);else if(this.isVisible!==t){this.disableAutomaticReRender();try{super.setValue(PN.isVisibleProperty,t)}finally{this.enableAutomaticReRender()}0===this._openPopoverCount&&this.getRootElement().updateLayout(),this.elementVisibilityChanged(this)}}asString(){return""}getSortKey(){}isBleeding(){return!1}getCodeGenOptions(){return{baseClassName:JI}}getEffectiveStyle(){return this.parent?this.parent.getEffectiveStyle():this.defaultStyle}getEffectiveStyleDefinition(){return this.hostConfig.containerStyles.getStyleByName(this.getEffectiveStyle())}getEffectiveTextStyleDefinition(){return this.parent?this.parent.getEffectiveTextStyleDefinition():this.hostConfig.textStyles.default}getImmediateSurroundingPadding(e,t=!0,r=!0,n=!0,o=!0){if(this.parent){let i=t&&this.parent.isTopElement(this),a=r&&this.parent.isRightMostElement(this),s=n&&this.parent.isBottomElement(this),l=o&&this.parent.isLeftMostElement(this);const c=this.parent.getEffectivePadding();c&&(i&&c.top!==aI.None&&(e.top=c.top,i=!1),a&&c.right!==aI.None&&(e.right=c.right,a=!1),s&&c.bottom!==aI.None&&(e.bottom=c.bottom,s=!1),l&&c.left!==aI.None&&(e.left=c.left,l=!1)),(i||a||s||l)&&this.parent.getImmediateSurroundingPadding(e,i,a,s,l)}}getActionCount(){return 0}getActionAt(e){throw new Error(tP.errors.indexOutOfRange(e))}processApplicableProperties(){super.processApplicableProperties();for(let e=0;e<this.getActionCount();e++){const t=this.getActionAt(e);t&&t.processApplicableProperties()}}indexOfAction(e){for(let t=0;t<this.getActionCount();t++)if(this.getActionAt(t)===e)return t;return-1}updateActionsEnabledState(){const e=this.getRootElement().getAllActions();for(const t of e)t.updateEnabledState()}indexOf(e){return-1}isFirstElement(e){return!0}isLastElement(e){return!0}isAtTheVeryLeft(){return!this.parent||this.parent.isLeftMostElement(this)&&this.parent.isAtTheVeryLeft()}isAtTheVeryRight(){return!this.parent||this.parent.isRightMostElement(this)&&this.parent.isAtTheVeryRight()}isAtTheVeryTop(){return!this.parent||this.parent.isFirstElement(this)&&this.parent.isAtTheVeryTop()}isAtTheVeryBottom(){return!this.parent||this.parent.isLastElement(this)&&this.parent.isAtTheVeryBottom()}isBleedingAtTop(){return!1}isBleedingAtBottom(){return!1}isLeftMostElement(e){return!0}isRightMostElement(e){return!0}isResponsive(){var e,t;return null!==(t=null===(e=this.getMainAction())||void 0===e?void 0:e.hasResponsiveElements())&&void 0!==t&&t||void 0!==this.targetWidth}isTopElement(e){return this.isFirstElement(e)}isBottomElement(e){return this.isLastElement(e)}getRootElement(){return this.getRootObject()}getAllActions(){const e=[];for(let t=0;t<this.getActionCount();t++){const r=this.getActionAt(t);r&&e.push(r)}return e}getResourceInformation(){return[]}getElementById(e){return this.id===e?this:void 0}getActionById(e){}getEffectivePadding(){const e=this.getPadding();return e||this.getDefaultPadding()}getEffectiveHorizontalAlignment(){return void 0!==this.horizontalAlignment?this.horizontalAlignment:this.parent?this.parent.getEffectiveHorizontalAlignment():uI.Left}focusFirstFocusableElement(){const e=this.getAllInputs(!0);for(const r of e)if(r.focus())return!0;const t=this.getAllActions();for(const r of t)return!!r.focus();return!1}shouldRender(e){return this.isDesignMode()||this._openPopoverCount>0||this.isVisible&&this.shouldRenderForTargetWidth(e)}shouldRenderForTargetWidth(e){const t=null!=e?e:this.hostWidth;return void 0===this.targetWidth||this.targetWidth.matches(t)}removeItem(e){return!1}remove(){return!!this.parent&&this.parent.removeItem(this)}getAdditionalPropertyDescriptors(e){const t=e.elementRegistry.getDescriptors(e,[],[],!0);return[...super.getAdditionalPropertyDescriptors(e),{name:"fallback",valueTypes:[{type:"object",validValues:t},{type:"string",validValues:["drop"]}],declaringClassName:JI,schemaVersion:dP.v1_2,suggestedSchemaTypeName:"FallbackElement"}]}get allowSpaceBetweenElements(){return!0}get allowChildContainersToBleed(){return!0}get hostWidth(){return void 0!==this._hostWidth?this._hostWidth:this.parent?this.parent.hostWidth:jI.Wide}set hostWidth(e){this._hostWidth=e}get hostConfig(){return this._hostConfig?this._hostConfig:this.parent?this.parent.hostConfig:wN}set hostConfig(e){this._hostConfig=e}get theme(){return this._theme?this._theme:this.parent?this.parent.theme:MI.Light}set theme(e){this._theme=e}get index(){return this.parent?this.parent.indexOf(this):0}get isEnabled(){const e=this.getValue(PN.isEnabledProperty);return void 0!==e?e:!this.parent||this.parent.isEnabled}set isEnabled(e){this.setValue(PN.isEnabledProperty,e)}get isInteractive(){return!1}get isStandalone(){return!0}get isInline(){return!1}get isExpandableInlineElement(){return!1}get hasVisibleSeparator(){return!this.isInline&&(!!this.parent&&(!this.parent.isFirstElement(this)&&this.shouldRender()))}get parent(){return this._parent}get renderedElement(){return this._renderedElement}set renderedElement(e){const t=this._renderedElement;this._renderedElement=e,this.renderedElementChanged(t,this._renderedElement)}get renderedSeparatorElement(){return this._renderedSeparatorElement}}PN.langProperty=new mP(dP.v1_1,"lang",/^[a-z]{2,3}$/gi),PN.isVisibleProperty=new yP(dP.v1_2,"isVisible",!0),PN.isVisibleDynamicProperty=new vP(dP.v1_5,"isVisible.dynamic",PN.isVisibleProperty),PN.separatorProperty=new yP(dP.v1_0,"separator",!1),PN.heightProperty=new SP(dP.v1_1,"height",[{value:"auto"},{value:"stretch"}],"auto").setTypeName("ElementHeight"),PN.horizontalAlignmentProperty=new kP(dP.v1_0,"horizontalAlignment",uI),PN.spacingProperty=new kP(dP.v1_0,"spacing",aI,aI.Default),PN.targetWidthProperty=new IN(dP.v1_0,"targetWidth"),PN.isEnabledProperty=new yP(dP.v1_0,"isEnabled").setEnableSerialization(!1),PN.isSortKey=new yP(dP.v1_5,"isSortKey",!1);class NN extends pP{parse(e,t,r){const n=t[this.name];if(void 0!==n&&"string"==typeof n)return"none"===n.toLowerCase()?"none":"auto"}toJSON(e,t,r,n){n.serializeValue(t,this.name,r)}getDescriptor(e){return{valueTypes:[{type:"string",validValues:["auto","none"]}],suggestedSchemaTypeName:"AssociatedInputs"}}constructor(e,t){super(e,t,void 0),this.targetVersion=e,this.name=t}}function BN(e,t){return void 0!==e?e:t}function ON(e){const t={};let r=e.parent;const n=[];for(;r;)n.push(...r.getAllInputs(!1)),r=r.parent;for(const o of n)o.id&&(t[o.id]=o);return t}let DN=class e extends _N{constructor(){super(...arguments),this._isFocusable=!0,this.state=EI.Normal}get themedIconUrls(){return this.getValue(e.themedIconUrlsProperty)}set themedIconUrls(t){this.setValue(e.themedIconUrlsProperty,t)}get menuActions(){return this.getValue(e.menuActionsProperty)}set menuActions(t){this.setValue(e.menuActionsProperty,t)}get title(){return this.getValue(e.titleProperty)}set title(t){this.setValue(e.titleProperty,t)}get titleCondition(){return this.getValue(e.titleDynamicProperty)}set titleCondition(t){this.setValue(e.titleDynamicProperty,t)}get iconUrl(){return this.getValue(e.iconUrlProperty)}set iconUrl(t){this.setValue(e.iconUrlProperty,t)}get style(){return this.getValue(e.styleProperty)}set style(t){this.setValue(e.styleProperty,t)}get mode(){return this.getValue(e.modeProperty)}set mode(t){this.setValue(e.modeProperty,t)}get tooltip(){return this.getValue(e.tooltipProperty)}set tooltip(t){this.setValue(e.tooltipProperty,t)}get tooltipCondition(){return this.getValue(e.tooltipDynamicProperty)}set tooltipCondition(t){this.setValue(e.tooltipDynamicProperty,t)}get isEnabled(){return this.getValue(e.isEnabledProperty)}set isEnabled(t){this.setValue(e.isEnabledProperty,t)}get isVisible(){return this.getValue(e.isVisibleProperty)}set isVisible(t){this.setValue(e.isVisibleProperty,t)}get isEnabledCondition(){return this.getValue(e.isEnabledDynamicProperty)}set isEnabledCondition(t){this.setValue(e.isEnabledDynamicProperty,t)}renderTitle(e=!1){var t;const r=this._actionButton&&null!==(t=this._actionButton.renderTitle(this.title))&&void 0!==t?t:void 0;if(r)return r;if(this.title){const t=this.hostConfig,r={style:{}};return r.style.overflow="hidden",r.style.textOverflow="ellipsis",t.actions.iconPlacement===_I.AboveTitle||t.actions.allowTitleToWrap||e||(r.style.whiteSpace="nowrap"),g.createElement(g.Fragment,{key:"title"},g.createElement("div",r,this.title))}return null}getEffectiveIconUrl(){if(this.themedIconUrls)for(const e of this.themedIconUrls)if(e.url&&this.theme===e.theme)return e.url;return this.iconUrl}renderIcon(){let e=null;const t=this.getEffectiveIconUrl();if(t){const r=/^icon:([\w\d_-]+)(?:,(regular|filled)){0,1}$/i,n=t.match(r);if(n){if(qI.enableIconSupportForActionButtons){const t=void 0!==n[2]&&"filled"===n[2].toLowerCase()?XA.Filled:XA.Regular;e=g.createElement(FP,{name:n[1],iconSize:YA.xSmall,iconStyle:t,showPlaceholder:!1,allowFallback:!1})}}else{const r=this.hostConfig,n={style:{}};n.src=t,n.style.width=`${r.actions.iconSize}px`,n.style.height=`${r.actions.iconSize}px`,n.style.flex="0 0 auto",r.actions.iconPlacement!==_I.AboveTitle&&(n.style.maxHeight="100%"),e=this.renderImage({allowExpand:!1,isSelectable:!1},n)}}return g.createElement(g.Fragment,{key:"icon"},e)}renderButtonContent(e,t=!0,r=!1){const n=this.hostConfig,o={style:{}};let i;switch(o.className="ac-pushButton-content",o.style.display="flex",o.style.gap="6px",o.style.alignItems="center",t&&(o.style.justifyContent="center"),o.style.minWidth="0",this.iconUrl?e?(rP(o,"iconOnly"),i=[this.renderIcon()]):(n.actions.iconPlacement===_I.AboveTitle?(rP(o,"iconAbove"),o.style.flexDirection="column"):rP(o,"iconLeft"),i=[this.renderIcon(),this.renderTitle(r)]):(rP(o,"noIcon"),i=[this.renderTitle(r)]),n.actions.actionsOrientation===wI.Horizontal&&n.actions.actionAlignment===pI.Stretch?o.style.flex="0 1 100%":o.style.flex="0 1 auto",this.state){case EI.Normal:break;case EI.Expanded:rP(o,n.makeCssClassName("expanded"));break;case EI.Subdued:rP(o,n.makeCssClassName("subdued"))}return this.style&&this.isEffectivelyEnabled()&&(this.style===jA.Positive?rP(o,...n.makeCssClassNames("primary","style-positive")):rP(o,...n.makeCssClassNames(`style-${this.style.toLowerCase()}`))),this.isExpandable&&(rP(o,this.hostConfig.makeCssClassName("expandable")),o["aria-expanded"]=this.state===EI.Expanded),g.createElement("div",Object.assign({},o),i)}propertyChanged(t,r,n){var o;super.propertyChanged(t,r,n),t===e.isVisibleProperty&&(null===(o=this.parent)||void 0===o||o.invalidate())}getButtonMenuItems(){return!this.isInPopover()&&this.menuActions&&this.menuActions.length>0?this.menuActions.map((e,t)=>e.asMenuItem(t.toString())):void 0}getAriaControlsAttribute(){}internalGetReferencedInputs(){return{}}internalPrepareForExecution(e){}internalValidateInputs(e){const t=[];if(e)for(const r of Object.keys(e)){const n=e[r];n.validateValue()||t.push(n)}return t}shouldSerialize(e){return void 0!==e.actionRegistry.findByName(this.getJsonTypeName())}getEffectiveTooltip(){return this.tooltip||this.hostConfig.actions.defaultActionTooltip}internalExecute(){this._owner&&this._owner.actionExecuted(this),this.prepareForExecution()&&(this.onExecute&&this.onExecute(this),this.getRootObject().actionExecuted(this)),this.internalAfterExecute()}internalAfterExecute(){this.getRootObject().updateActionsEnabledState()}render(e){const t={};t.isSplitButton=this.menuActions&&this.menuActions.length>0&&!this.isInPopover(),this.setupElementForAccessibility(t);const r=!!e&&e.isInline,n={forcePrimary:!1,renderedContent:this.renderButtonContent(r),isInline:r,onClick:"click"===this.applicationMode?e=>{this.isEffectivelyEnabled()&&(e.preventDefault(),e.stopPropagation(),this.execute())}:void 0};!this._actionButton&&jN.actionButtonRenderer&&(this._actionButton=new jN.actionButtonRenderer(this,this.getButtonMenuItems()),this._actionButton.onDomElementChanged=(e,t)=>{this.renderedElementChanged(e,t)});let o=this._actionButton?this._actionButton.render(t,n):null;return"wrap"===this.applicationMode&&o&&(o=this.wrapElement(o)),o}get domElement(){var e,t;return null!==(t=null===(e=this._actionButton)||void 0===e?void 0:e.domElement)&&void 0!==t?t:void 0}getHref(){return""}getCodeGenOptions(){return{baseClassName:ZI}}getAriaRole(){return"button"}wrapElement(e){return e}applyTo(e,t){if(this.isEffectivelyEnabled()&&this.hostConfig.supportsInteractivity){const r={handleKeyboard:BN(null==t?void 0:t.handleKeyboard,!0),promoteTooltipToLabel:BN(null==t?void 0:t.promoteTooltipToLabel,!1),updateClassName:BN(null==t?void 0:t.updateClassName,!0)},n=Object.assign({},e.props);return this.setupElementForAccessibility(n,r.promoteTooltipToLabel,r.updateClassName),"click"===this.applicationMode?(r.handleKeyboard&&(n.onKeyPress=e=>{"Enter"!==e.code&&"Space"!==e.code||(e.preventDefault(),e.stopPropagation(),this.execute())}),n.onClick=e=>{e.preventDefault(),e.stopPropagation(),this.execute()},g.cloneElement(e,n)):this.wrapElement(g.cloneElement(e,n))}return e}setupElementForAccessibility(e,t=!1,r=!0){e.tabIndex=this.isEffectivelyEnabled()?0:-1,e.role=this.getAriaRole(),this.isEffectivelyEnabled()?r&&rP(e,this.hostConfig.makeCssClassName("ac-selectable")):(e.disabled=!0,e["aria-disabled"]=!0),e["aria-label"]=this.title,e["aria-controls"]=this.getAriaControlsAttribute(),e.title=this.title;const n=this.getEffectiveTooltip();if(n){e[t?this.title?"aria-describedby":"aria-label":"aria-describedby"]=n,e.title=n}}parse(e,t){return super.parse(e,t||new RN)}execute(e){null!=e&&null!=e&&e>0?(this._executeTimer&&clearTimeout(this._executeTimer),this._executeTimer=setTimeout(()=>this.internalExecute(),e)):this.internalExecute()}focus(){var e;return!(!this._isFocusable||!(null===(e=this._actionButton)||void 0===e?void 0:e.domElement))&&(this._actionButton.domElement.focus(),!0)}expand(e=!1,t=!1){}collapse(){}prepareForExecution(){const e=this.getReferencedInputs(),t=this.internalValidateInputs(e);return t.length>0?(t[0].focus(),!1):(this.internalPrepareForExecution(e),!0)}asMenuItem(e){return{key:e,text:this.title,tooltip:this.getEffectiveTooltip(),disabled:!this.isEffectivelyEnabled(),iconUrl:this.iconUrl,renderedContent:this.renderButtonContent(!1,!1,!0),onClick:()=>{this.execute()}}}getAdditionalPropertyDescriptors(e){const t=e.actionRegistry.getDescriptors(e);return[...super.getAdditionalPropertyDescriptors(e),{name:"fallback",valueTypes:[{type:"object",validValues:t},{type:"string",validValues:["drop"]}],declaringClassName:"Action",schemaVersion:dP.v1_2,suggestedSchemaTypeName:"FallbackAction"}]}getAllInputs(e=!0){const t=[];if(this.menuActions)for(const r of this.menuActions)t.push(...r.getAllInputs());return t}getAllActions(){const e=[this];if(this.menuActions)for(const t of this.menuActions)e.push(...t.getAllActions());return e}getResourceInformation(){return this.iconUrl?[{url:this.iconUrl,mimeType:"image"}]:[]}getActionById(e){return this.id===e?this:void 0}getElementById(e){}getReferencedInputs(){return this.internalGetReferencedInputs()}getInlineContent(){}hasResponsiveElements(){return!1}internalValidateProperties(e){super.internalValidateProperties(e),this.menuActions&&this.menuActions.length>0&&this.isInPopover()&&e.addFailure(this,BI.Other,tP.errors.menuActionsNotAllowedInPopovers())}validateInputs(){return this.internalValidateInputs(this.getReferencedInputs())}updateEnabledState(){}isEffectivelyEnabled(){return this.isEnabled&&(!this.parent||this.parent.isEnabled)}shouldRaiseOnExecuteEvent(){return!0}remove(){return!!this._owner&&this._owner.removeAction(this)}get dismissesPopover(){return!0}get applicationMode(){return"click"}get isPrimary(){return this.style===jA.Positive}set isPrimary(e){e?this.style=jA.Positive:this.style===jA.Positive&&(this.style=jA.Default)}get hostConfig(){return this.parent?this.parent.hostConfig:wN}get theme(){return this.parent?this.parent.theme:MI.Light}get isFocusable(){return this._isFocusable}set isFocusable(e){this._isFocusable!==e&&(this._isFocusable=e,this.updateLayout())}get isExpandable(){return!1}get isExpanded(){return this.state===EI.Expanded}get isAtRootLevel(){var e;return!(null===(e=this.parent)||void 0===e?void 0:e.parent)}get isSupportedInPopover(){return!0}get renderedElement(){var e,t;return null!==(t=null===(e=this._actionButton)||void 0===e?void 0:e.domElement)&&void 0!==t?t:void 0}};DN.titleProperty=new mP(dP.v1_0,"title").setContentType("text"),DN.titleDynamicProperty=new vP(dP.v1_5,"title.dynamic",DN.titleProperty).setContentType("text"),DN.iconUrlProperty=new mP(dP.v1_1,"iconUrl").setContentType("imageUrl"),DN.styleProperty=new SP(dP.v1_2,"style",[{value:jA.Default},{value:jA.Positive},{value:jA.Destructive}],jA.Default).setTypeName("ActionStyle"),DN.modeProperty=new SP(dP.v1_5,"mode",[{value:FA.Primary},{value:FA.Secondary}],FA.Primary).setTypeName("ActionMode"),DN.tooltipProperty=new mP(dP.v1_5,"tooltip").setContentType("text"),DN.tooltipDynamicProperty=new vP(dP.v1_5,"tooltip.dynamic",DN.tooltipProperty).setContentType("text"),DN.isEnabledProperty=new yP(dP.v1_5,"isEnabled",!0),DN.isEnabledDynamicProperty=new vP(dP.v1_5,"isEnabled.dynamic",DN.isEnabledProperty),DN.isVisibleProperty=new yP(dP.v1_5,"isVisible",!0),DN.isVisibleDynamicProperty=new vP(dP.v1_5,"isVisible.dynamic",DN.isVisibleProperty),DN.menuActionsProperty=new class extends pP{parse(e,t,r){const n=e,o=t[this.name];if(void 0===o||!Array.isArray(o))return;const i=[];if(Array.isArray(o))for(const a of o){const t=r.parseAction(n,a,this.forbiddenActionTypes,n.isDesignMode());t?i.push(t):r.logParseEvent(e,BI.InvalidPropertyValue,`Invalid array value "${JSON.stringify(a)}" of type Action, hence ignored.`)}return i}toJSON(e,t,r,n){if(r)for(const o of r)n.serializeValue(t,this.name,o?o.toJSON(n):void 0,void 0,!0)}getDescriptor(e){return{valueTypes:[{type:"object",validValues:e.actionRegistry.getDescriptors(e,this.forbiddenActionTypes).sort((e,t)=>e.name.localeCompare(t.name))}],propertyType:"array",suggestedSchemaTypeName:this.typeName}}constructor(e,t,r=[]){super(e,t,void 0),this.targetVersion=e,this.name=t,this.forbiddenActionTypes=r}}(dP.v1_5,"menuActions",["Action.ShowCard","Action.Popover"]).setTypeName("MenuActionArray"),DN.themedIconUrlsProperty=new TP(dP.v1_5,"themedIconUrls",e=>new EN);class RN extends fP{constructor(){super(...arguments),this._forbiddenTypes=new Set,this.allowExtensionElementInGeneratedSchema=!1}internalParseCardObject(e,t,r,n,o,i){let a;if(t&&"object"==typeof t){const s=new Set;this._forbiddenTypes.forEach(e=>{s.add(e)}),r.forEach(e=>{this._forbiddenTypes.add(e)});const l=oP(t.type);if(l)if(this._forbiddenTypes.has(l))i(l,DI.ForbiddenType);else{let s=!1;const c=o(l);if("drop"===c)return;if(a=c,a?(a.setParent(e),a.parse(t,this),s=qI.enableFallback&&n&&a.shouldFallback()):(s=qI.enableFallback&&n,i(l,DI.UnknownType)),s){const n=t.fallback;void 0===n&&e&&e.setShouldFallback(!0),a="string"==typeof n&&"drop"===n.toLowerCase()?void 0:"object"==typeof n?this.internalParseCardObject(e,n,r,!0,o,i):void 0}}this._forbiddenTypes=s}return a}cardObjectParsed(e,t){e instanceof DN&&this.onParseAction?this.onParseAction(e,t,this):e instanceof PN&&this.onParseElement&&this.onParseElement(e,t,this)}shouldSerialize(e){return e instanceof DN?void 0!==this.actionRegistry.findByName(e.getJsonTypeName()):!(e instanceof PN)||void 0!==this.elementRegistry.findByName(e.getJsonTypeName())}parseCardObject(e,t,r,n,o,i){const a=new Set(r),s=this.internalParseCardObject(e,t,a,n,o,i);return void 0!==s&&this.cardObjectParsed(s,t),s}parseElement(e,t,r,n,o){return this.parseCardObject(e,t,r,n,e=>{const r=e===RN.componentTypeName&&"name"in t&&"string"==typeof t.name?`${e}.${t.name}`:e,n=this.elementRegistry.createInstance({context:this,typeName:r,payload:t,targetVersion:this.targetVersion});return n&&o&&(n.isPopoverContent=!!o.isPopoverContent),n},(e,t)=>{t===DI.UnknownType?this.logParseEvent(void 0,BI.UnknownElementType,tP.errors.unknownElementType(e)):this.logParseEvent(void 0,BI.ElementTypeNotAllowed,tP.errors.elementTypeNotAllowed(e))})}parseAction(e,t,r,n){return this.parseCardObject(e,t,r,n,r=>{const n=this.actionRegistry.createInstance({context:this,typeName:r,payload:t,targetVersion:this.targetVersion});if(n)return!n.isSupportedInPopover&&e.isInPopover()?"drop":n},(e,t)=>{t===DI.UnknownType?this.logParseEvent(void 0,BI.UnknownActionType,tP.errors.unknownActionType(e)):this.logParseEvent(void 0,BI.ActionTypeNotAllowed,tP.errors.actionTypeNotAllowed(e))})}get elementRegistry(){var e;return null!==(e=this._elementRegistry)&&void 0!==e?e:jN.elements}setElementRegistry(e){this._elementRegistry=e}get actionRegistry(){var e;return null!==(e=this._actionRegistry)&&void 0!==e?e:jN.actions}setActionRegistry(e){this._actionRegistry=e}getAttachableElementProperties(){return this.elementRegistry.getAttachableProperties()}getAttachableElementProperty(e){return this.elementRegistry.getAttachableProperty(e)}getMetadata(e){var t;return null!==(t=this.elementRegistry.getMetadata(e))&&void 0!==t?t:this.actionRegistry.getMetadata(e)}getElementDescriptors(e=[],t=[],r=!1,n=!1){return[...this.elementRegistry.getDescriptors(this,e,t,r,n)]}}RN.componentTypeName="Component";class MN{constructor(){this._items={},this._attachableProperties=new Map}findByName(e){return this._items.hasOwnProperty(e)?this._items[e]:void 0}clear(){this._items={}}copyTo(e){const t=Object.keys(this._items);for(const r of t){const t=this._items[r];e.register(t.typeName,t.createInstance,t.schemaVersion,t.metadata)}for(const[,r]of this._attachableProperties)e.registerAttachableProperty(r)}register(e,t,r=dP.v1_0,n){let o=this.findByName(e);void 0!==o?o.createInstance=t:o={typeName:e,createInstance:t,schemaVersion:r,metadata:n},this._items[e]=o}unregister(e){delete this._items[e]}registerAttachableProperty(e){e.origin={declaringClass:IP,isInherited:!1,schemaVersion:dP.v1_5},this._attachableProperties.set(e.name,e)}unregisterAttachableProperty(e){this._attachableProperties.delete(e)}getMetadata(e){const t=this.findByName(e);return t?t.metadata:void 0}getAttachableProperty(e){return this._attachableProperties.get(e)}getAttachableProperties(){return Array.from(this._attachableProperties.values())}createInstance(e){const t=this.findByName(e.typeName);return t&&t.schemaVersion.compareTo(e.targetVersion)<=0?t.createInstance(e):void 0}getItemCount(){return Object.keys(this._items).length}getItemAt(e){return Object.keys(this._items).map(e=>this._items[e])[e]}getDescriptors(e,t=[],r=[],n=!1,o=!1){const i=[];for(let a=0;a<this.getItemCount();a++){const o=this.getItemAt(a);if(r.includes(o.typeName)||!t.includes(o.typeName)){const t=o.createInstance({context:e,typeName:o.typeName,targetVersion:e.targetVersion}),r=!(t instanceof PN)||t.isStandalone;n&&!r||i.push(new OP(t))}}if(o){const e=new BP("ExtensionObject",[{name:"type",valueTypes:[{type:"string",validValues:[{regEx:/^[Xx]-[\w\d]+$/,displayText:"X-"}]}]}]);e.preserveAdditionalProperties=!0,i.push(e)}return i}}class zN{constructor(e,t){this.action=e,this.menuItems=t}renderTitle(e){return null}}class jN{static populateWithDefaultElements(e){e.clear(),jN.defaultElements.copyTo(e)}static populateWithDefaultActions(e){e.clear(),jN.defaultActions.copyTo(e)}static get elements(){return jN._elements||(jN._elements=new MN,jN.populateWithDefaultElements(jN._elements)),jN._elements}static get actions(){return jN._actions||(jN._actions=new MN,jN.populateWithDefaultActions(jN._actions)),jN._actions}static reset(){jN._elements=void 0,jN._actions=void 0}}jN.defaultElements=new MN,jN.defaultActions=new MN;var LN,FN;(FN=LN||(LN={}))[FN.msWord=0]="msWord",FN[FN.msExcel=1]="msExcel",FN[FN.msPowerPoint=2]="msPowerPoint",FN[FN.msOneNote=3]="msOneNote",FN[FN.msSharePoint=4]="msSharePoint",FN[FN.msVisio=5]="msVisio",FN[FN.msLoop=6]="msLoop",FN[FN.msWhiteboard=7]="msWhiteboard",FN[FN.code=8]="code",FN[FN.sketch=9]="sketch",FN[FN.adobeIllustrator=10]="adobeIllustrator",FN[FN.adobePhotoshop=11]="adobePhotoshop",FN[FN.adobeInDesign=12]="adobeInDesign",FN[FN.adobeFlash=13]="adobeFlash",FN[FN.image=14]="image",FN[FN.gif=15]="gif",FN[FN.video=16]="video",FN[FN.sound=17]="sound",FN[FN.zip=18]="zip",FN[FN.text=19]="text",FN[FN.pdf=20]="pdf",MA(LN,"FileIconType");class VN extends PP{get title(){return this.getValue(VN.titleProperty)}set title(e){this.setValue(VN.titleProperty,e)}get icon(){return this.getValue(VN.iconProperty)}set icon(e){this.setValue(VN.iconProperty,e)}get url(){return this.getValue(VN.urlProperty)}set url(e){this.setValue(VN.urlProperty,e)}get keywords(){return this.getValue(VN.keywordsProperty)}set keywords(e){this.setValue(VN.keywordsProperty,e)}}VN.titleProperty=new mP(dP.v1_5,"title").setContentType("text"),VN.iconProperty=new kP(dP.v1_5,"icon",LN),VN.urlProperty=new mP(dP.v1_5,"url").setContentType("link"),VN.keywordsProperty=new xP(dP.v1_5,"keywords");class qN{static createInstance(e){const t=qN._entries.get(e);return t?new t:void 0}static registerReferenceType(e){qN._entries.set(e.jsonTypeName,e)}static unregisterReferenceType(e){const t="string"==typeof e?e:e.jsonTypeName;qN._entries.delete(t)}static getDescriptors(){const e=[];for(const t of qN._entries.values())e.push(new OP(new t));return e}}qN._entries=new Map;class HN{constructor(){this._observedElements=new Map}getResizeObserver(){return this._resizeObserver||(this._resizeObserver=new ResizeObserver(e=>this.resizeObserverCallback(e))),this._resizeObserver}resizeObserverCallback(e){for(const t of e){const e=this._observedElements.get(t.target);e&&e(t.target,{left:t.contentRect.left,top:t.contentRect.top,width:t.contentRect.width,height:t.contentRect.height})}}observe(e,t){this.unobserve(e),this._observedElements.set(e,t),this.getResizeObserver().observe(e)}unobserve(e){const t=this.getResizeObserver();this._observedElements.has(e)&&(this._observedElements.delete(e),t.unobserve(e))}disconnect(){this.getResizeObserver().disconnect(),this._observedElements.clear()}setResizeObserver(e){this._resizeObserver!==e&&(this._resizeObserver&&this._resizeObserver.disconnect(),this._resizeObserver=e)}}class UN extends PP{}class WN{static createInstance(e){const t=WN._entries.get(e);return t?new t:void 0}static registerEntityType(e){WN._entries.set(e.jsonTypeName,e)}static unregisterEntityType(e){const t="string"==typeof e?e:e.jsonTypeName;WN._entries.delete(t)}static getDescriptors(){const e=[];for(const t of WN._entries.values())e.push(new OP(new t));return e}}WN._entries=new Map;class $N extends IP{get id(){return this.getValue($N.idProperty)}set id(e){this.setValue($N.idProperty,e)}get name(){return this.getValue($N.nameProperty)}set name(e){this.setValue($N.nameProperty,e)}get mentionType(){return this.getValue($N.mentionTypeProperty)}set mentionType(e){this.setValue($N.mentionTypeProperty,e)}getSchemaKey(){return"MentionedEntity"}}$N.idProperty=new mP(dP.v1_0,"id"),$N.nameProperty=new mP(dP.v1_0,"name").setContentType("text"),$N.mentionTypeProperty=new kP(dP.v1_0,"mentionType",KI,KI.Person);class GN extends UN{get text(){return this.getValue(GN.textProperty)}set text(e){this.setValue(GN.textProperty,e)}get mentioned(){return this.getValue(GN.mentionedProperty)}set mentioned(e){this.setValue(GN.mentionedProperty,e)}getJsonTypeName(){return GN.jsonTypeName}}GN.jsonTypeName="mention",GN.textProperty=new mP(dP.v1_0,"text"),GN.mentionedProperty=new EP(dP.v1_0,"mentioned",e=>new $N);class YN extends IP{get width(){return this.getValue(YN.widthProperty)}set width(e){this.setValue(YN.widthProperty,e)}get entities(){return this.getValue(YN.entitiesProperty)}getSchemaKey(){return"TeamsCardProperties"}afterParse(){this._mappedEntities=void 0}propertyChanged(e,t,r){e===YN.entitiesProperty&&(this._mappedEntities=void 0)}getEntitiesOfType(e){if(this._mappedEntities||(this._mappedEntities=new Map),this._mappedEntities.has(e))return this._mappedEntities.get(e);const t=this.entities.filter(t=>t instanceof e);return this._mappedEntities.set(e,t),t}}YN.widthProperty=new SP(dP.v1_0,"width",[{value:"full"}]).setTypeName("TeamsCardWidth"),YN.entitiesProperty=new class extends TP{constructor(e,t){super(e,t,e=>{if(e){const t=e.type;if("string"==typeof t)return t?WN.createInstance(t):void 0}}),this.targetVersion=e,this.name=t}getDescriptor(e){return{valueTypes:[{type:"object",validValues:WN.getDescriptors().sort((e,t)=>e.name.localeCompare(t.name))}],propertyType:"array"}}}(dP.v1_0,"entities"),WN.registerEntityType(GN);class KN{constructor(e){this._regularExpression=e}format(e,t){let r;if(t){let n=t;for(;null!=(r=this._regularExpression.exec(t));)n=n.replace(r[0],this.internalFormat(e,r));return n}return t}}class XN extends KN{internalFormat(e,t){const r=new Date(Date.parse(t[1])),n=void 0!==t[2]?t[2].toLowerCase():"compact";return"compact"!==n?r.toLocaleDateString(e,{day:"numeric",weekday:n,month:n,year:"numeric"}):r.toLocaleDateString()}}class JN extends KN{internalFormat(e,t){return new Date(Date.parse(t[1])).toLocaleTimeString(e,{hour:"numeric",minute:"2-digit"})}}function QN(e,t){const r=[new XN(/\{{2}DATE\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))(?:, ?(COMPACT|LONG|SHORT))?\)\}{2}/g),new JN(/\{{2}TIME\((\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:Z|(?:(?:-|\+)\d{2}:\d{2})))\)\}{2}/g)];let n=t;for(const o of r)n=o.format(e,n);return n}class ZN extends IP{getAdditionalPropertyDescriptors(e){return[...super.getAdditionalPropertyDescriptors(e),{name:"type",valueTypes:[{type:"string"}],requiredValue:this.getTypeName(),schemaVersion:dP.v1_0}]}}ZN.typeNameProperty=new mP(dP.v1_0,"type",void 0,void 0,e=>e.getTypeName());class eB extends ZN{get value(){return this.getValue(eB.valueProperty)}set value(e){this.setValue(eB.valueProperty,e)}getSchemaKey(){return eB.className}getTypeName(){return eB.jsonTypeName}}eB.jsonTypeName="imBack",eB.className="ImBackSubmitActionData",eB.valueProperty=new mP(dP.v1_0,"value").setIsHero();class tB extends ZN{get value(){return this.getValue(tB.valueProperty)}set value(e){this.setValue(tB.valueProperty,e)}getSchemaKey(){return tB.className}getTypeName(){return tB.jsonTypeName}}tB.jsonTypeName="invoke",tB.className="InvokeSubmitActionData",tB.valueProperty=new pP(dP.v1_0,"value").setIsHero();class rB extends ZN{get text(){return this.getValue(rB.textProperty)}set text(e){this.setValue(rB.textProperty,e)}get displayText(){return this.getValue(rB.displayTextProperty)}set displayText(e){this.setValue(rB.displayTextProperty,e)}get value(){return this.getValue(rB.valueProperty)}set value(e){this.setValue(rB.valueProperty,e)}getSchemaKey(){return rB.className}getTypeName(){return rB.jsonTypeName}}rB.jsonTypeName="messageBack",rB.className="MessageBackSubmitActionData",rB.textProperty=new mP(dP.v1_0,"text"),rB.displayTextProperty=new mP(dP.v1_0,"displayText"),rB.valueProperty=new mP(dP.v1_0,"value");class nB extends ZN{get value(){return this.getValue(nB.valueProperty)}set value(e){this.setValue(nB.valueProperty,e)}getSchemaKey(){return nB.className}getTypeName(){return nB.jsonTypeName}}nB.jsonTypeName="signin",nB.className="SigninSubmitActionData",nB.valueProperty=new mP(dP.v1_0,"value").setIsHero();class oB extends ZN{get value(){return this.getValue(oB.valueProperty)}set value(e){this.setValue(oB.valueProperty,e)}getSchemaKey(){return oB.className}getTypeName(){return oB.jsonTypeName}}oB.jsonTypeName="task/fetch",oB.className="TaskFetchSubmitActionData",oB.valueProperty=new pP(dP.v1_0,"value").setIsHero();const iB=new Map([[eB.jsonTypeName,()=>new eB],[tB.jsonTypeName,()=>new tB],[rB.jsonTypeName,()=>new rB],[nB.jsonTypeName,()=>new nB],[oB.jsonTypeName,()=>new oB]]);class aB extends pP{parse(e,t,r){let n;const o=t[this.name];if("object"==typeof o){const e=iB.get(o.type);e&&(n=e(),n.parse(o,r))}return n}toJSON(e,t,r,n){n.serializeValue(t,this.name,r)}getDescriptor(e){const t=[];for(const r of iB.values()){const e=r(),n=new OP(e);t.push(n)}return{valueTypes:[{type:"object",validValues:t}]}}constructor(e,t){super(e,t,void 0),this.targetVersion=e,this.name=t}}class sB extends IP{getSchemaKey(){return"SubmitActionData"}constructor(){super(),this.preserveSourcePropertiesOnParse=!0}getCodeGenOptions(){return{treatAsDictionary:!0}}}sB.msTeamsProperty=new aB(dP.v1_0,"msTeams").setAlternateDefinition(new aB(dP.v1_0,"msteams"));class lB extends DN{constructor(){super(...arguments),this._isPrepared=!1,this._areReferencedInputsDirty=!1}get _originalData(){return this.getValue(lB.dataProperty)}set _originalData(e){this.setValue(lB.dataProperty,e)}get associatedInputs(){return this.getValue(lB.associatedInputsProperty)}set associatedInputs(e){this.setValue(lB.associatedInputsProperty,e)}get conditionallyEnabled(){return this.getValue(lB.conditionallyEnabledProperty)}set conditionallyEnabled(e){this.setValue(lB.conditionallyEnabledProperty,e)}updateReferencedInputsDirtyState(){this._areReferencedInputsDirty=!1;const e=this.getReferencedInputs();if(e)for(const t of Object.keys(e)){if(e[t].isDirty()){this._areReferencedInputsDirty=!0;break}}}internalGetReferencedInputs(){return"none"!==this.associatedInputs?ON(this):{}}internalPrepareForExecution(e){if(this._originalData?this._processedData=JSON.parse(JSON.stringify(this._originalData)):this._processedData={},this._processedData&&"object"==typeof this._processedData&&e)for(const t of Object.keys(e)){const r=e[t];r.id&&r.isSet()&&(this._processedData[r.id]=r.valueAsString)}this._isPrepared=!0}internalAfterExecute(){qI.resetInputsDirtyStateAfterActionExecution&&this.resetReferencedInputsDirtyState()}resetReferencedInputsDirtyState(){const e=this.getReferencedInputs();if(this._areReferencedInputsDirty=!1,e)for(const t of Object.keys(e)){e[t].resetDirtyState()}}updateEnabledState(){const e=this._areReferencedInputsDirty;this.updateReferencedInputsDirtyState();const t=this.getReferencedInputs();if(t)for(const r of Object.keys(t)){if(t[r].isDirty()){this._areReferencedInputsDirty=!0;break}}this._areReferencedInputsDirty!==e&&this.updateLayout()}isEffectivelyEnabled(){const e=super.isEffectivelyEnabled();return this.updateReferencedInputsDirtyState(),this.conditionallyEnabled?e&&this._areReferencedInputsDirty:e}get data(){return this._isPrepared?this._processedData:this._originalData}set data(e){this._originalData=e,this._isPrepared=!1}}lB.dataProperty=new class extends pP{parse(e,t,r){const n=t[this.name];if("object"==typeof n){const e=new sB;return e.parse(n,r),e}if("string"==typeof n)return n}toJSON(e,t,r,n){"string"==typeof r?n.serializeString(t,this.name,r):r instanceof sB?n.serializeValue(t,this.name,r.toJSON(n),this.defaultValue,!0):super.toJSON(e,t,r,n)}getDescriptor(e){const t=new OP(new sB);return t.preserveAdditionalProperties=!0,{valueTypes:[{type:"string"},{type:"object",validValues:[t]}]}}constructor(e,t){super(e,t,void 0),this.targetVersion=e,this.name=t}}(dP.v1_0,"data"),lB.associatedInputsProperty=new NN(dP.v1_3,"associatedInputs"),lB.conditionallyEnabledProperty=new yP(dP.v1_5,"conditionallyEnabled",!1);class cB extends IP{get hide(){return this.getValue(cB.hideProperty)}set hide(e){this.setValue(cB.hideProperty,e)}getSchemaKey(){return"TeamsSubmitActionFeedback"}}cB.hideProperty=new yP(dP.v1_0,"hide");class uB extends IP{get feedback(){return this.getValue(uB.feedbackProperty)}set feedback(e){this.setValue(uB.feedbackProperty,e)}getSchemaKey(){return"TeamsSubmitActionProperties"}}uB.feedbackProperty=new EP(dP.v1_0,"feedback",e=>new cB);class dB extends lB{getJsonTypeName(){return dB.JsonTypeName}}dB.JsonTypeName="Action.Submit",dB.msTeamsProperty=new EP(dP.v1_0,"msTeams",e=>new uB).setAlternateDefinition(new EP(dP.v1_0,"msteams",e=>new uB));class fB extends lB{get verb(){return this.getValue(fB.verbProperty)}set verb(e){this.setValue(fB.verbProperty,e)}getJsonTypeName(){return fB.JsonTypeName}}fB.JsonTypeName="Action.Execute",fB.verbProperty=new mP(dP.v1_4,"verb");class hB extends DN{get url(){return this.getValue(hB.urlProperty)}set url(e){this.setValue(hB.urlProperty,e)}getEffectiveTooltip(){const e=super.getEffectiveTooltip();return e?`${e}\n${this.getHref()}`:this.getHref()}getJsonTypeName(){return hB.JsonTypeName}getAriaRole(){return"link"}internalValidateProperties(e){super.internalValidateProperties(e),this.url||e.addFailure(this,BI.PropertyCantBeNull,tP.errors.propertyMustBeSet("url"))}getHref(){return this.url}}hB.urlProperty=new mP(dP.v1_0,"url").setContentType("link").setIsHero(),hB.JsonTypeName="Action.OpenUrl";const pB=new BP("TargetElement",[{name:"elementId",valueTypes:[{type:"string"}],schemaVersion:dP.v1_5},{name:"isVisible",valueTypes:[{type:"boolean"}],schemaVersion:dP.v1_5}]);class mB extends DN{get targetElements(){return this.getValue(mB.targetElementsProperty)}set targetElements(e){this.setValue(mB.targetElementsProperty,e)}getAriaControlsAttribute(){if(this.targetElements){const e=Object.keys(this.targetElements);if(e.length>0)return e.join(" ")}}internalValidateProperties(e){super.internalValidateProperties(e),this.targetElements||e.addFailure(this,BI.PropertyCantBeNull,tP.errors.propertyMustBeSet("targetElements"))}getJsonTypeName(){return mB.JsonTypeName}execute(){var e;super.execute();const t=null===(e=this.parent)||void 0===e?void 0:e.getRootObject();if(t&&t instanceof PN)for(const r of Object.keys(this.targetElements)){const e=t.getElementById(r);e&&("boolean"==typeof this.targetElements[r]?e.isVisible=this.targetElements[r]:e.isVisible=!e.isVisible)}}addTargetElement(e,t=void 0){this.targetElements[e]=t}removeTargetElement(e){delete this.targetElements[e]}get isSupportedInPopover(){return!1}}mB.targetElementsProperty=new class extends _P{getDescriptor(e){return{valueTypes:[{type:"string"},{type:"object",validValues:[pB]}],propertyType:"array"}}}(dP.v1_2,"targetElements",(e,t,r,n)=>{const o={};if(Array.isArray(r[t.name]))for(const i of r[t.name])if("string"==typeof i)o[i]=void 0;else if("object"==typeof i){const e=i.elementId;"string"==typeof e&&(o[e]=aP(i.isVisible))}return o},(e,t,r,n,o)=>{const i=[];for(const a of Object.keys(n))"boolean"==typeof n[a]?i.push({elementId:a,isVisible:n[a]}):i.push(a);o.serializeArray(r,t.name,i)},{},e=>({})),mB.JsonTypeName="Action.ToggleVisibility";class gB extends DN{shouldDisplayBuiltInOverflowActionMenu(){return!this.onShouldDisplayBuiltInOverflowActionMenu||this.onShouldDisplayBuiltInOverflowActionMenu(this)}displayOverflowActionMenu(e){this.onDisplayOverflowActionMenu&&this.onDisplayOverflowActionMenu(this,e)}getButtonMenuItems(){if(this.shouldDisplayBuiltInOverflowActionMenu()){const e=[];return this._actions.forEach((t,r)=>{"click"===t.applicationMode&&e.push(t.asMenuItem(r.toString()))}),e.length>0?e:void 0}}constructor(e){super(),this._actions=e,this.title=this.localizeString(tP.overflowButtonText),this.tooltip=this.localizeString(tP.overflowButtonTooltip)}getActions(){return this._actions}getAllActions(){const e=super.getAllActions();return e.push(...this._actions),e}getJsonTypeName(){return"Internal_Action.Overflow"}execute(){this.shouldDisplayBuiltInOverflowActionMenu()||this.displayOverflowActionMenu(this.domElement)}setupElementForAccessibility(e,t=!1){super.setupElementForAccessibility(e,t),e["aria-label"]=this.localizeString(tP.overflowButtonTooltip)}}gB.JsonTypeName="Action.Overflow";class vB{static getActionsPropertyDescriptor(e,t,r=!1){return{name:"actions",valueTypes:[{type:"object",validValues:e.actionRegistry.getDescriptors(e).sort((e,t)=>e.name.localeCompare(t.name))}],propertyType:"array",declaringClassName:t,schemaVersion:dP.v1_0,suggestedSchemaTypeName:eP,isHero:r}}renderInlineAdaptiveCard(e,t){return t?g.createElement(CN,{cardObject:e}):g.createElement("div",{style:{marginTop:`${this._owner.hostConfig.actions.showCard.inlineTopMargin}px`},key:e.getKey("inline-content")},g.createElement(CN,{cardObject:e}))}updateLayout(){this._owner.getRootObject().updateLayout()}collapseExpandedAction(){for(const t of this._renderedActions){if(t instanceof gB)for(const e of t.getActions())e.state=EI.Normal;t.state=EI.Normal}const e=this._expandedAction;this._expandedAction=void 0,e&&(e.collapse(),this.updateLayout())}shouldDisplayBuiltInOverflowActionButton(e){return!this.onShouldDisplayBuiltInOverflowActionButton||this.onShouldDisplayBuiltInOverflowActionButton(e)}shouldDisplayBuiltInOverflowActionMenu(e){return!this.onShouldDisplayBuiltInOverflowActionMenu||this.onShouldDisplayBuiltInOverflowActionMenu(e)}displayOverflowActionMenu(e,t){this.onDisplayOverflowActionMenu&&this.onDisplayOverflowActionMenu(e,t)}constructor(e){this._items=[],this._renderedActions=[],this._owner=e}releaseDOMResources(){for(const e of this._renderedActions)e.releaseDOMResources()}actionExecuted(e){if(e.dismissesPopover&&this._owner.closePopover(),e.isExpandable){if(e===this._expandedAction)this.collapseExpandedAction();else if(this._owner.hostConfig.actions.showCard.actionMode===yI.Inline){for(const t of this._renderedActions)if(t instanceof gB)for(const r of t.getActions())r.state=r!==e?EI.Subdued:EI.Expanded;else t.state=t!==e?EI.Subdued:EI.Expanded;this._expandedAction=e,e.expand(!(this._owner.isAtTheVeryLeft()&&this._owner.isAtTheVeryRight()),!0)}}else this.collapseExpandedAction();this.updateLayout()}parse(e,t){if(this.clear(),Array.isArray(e))for(const r of e){const e=t.parseAction(this._owner,r,[],!0);e&&this.addAction(e)}}toJSON(e,t,r){r.serializeArray(e,t,this._items)}getActionAt(e){return this._items[e]}getActionCount(){return this._items.length}getActionById(e){let t;for(const r of this._items)if(t=r.getActionById(e),t)break;return t}getElementById(e){let t;for(const r of this._items)if(t=r.getElementById(e),t)break;return t}validateProperties(e){this._owner.hostConfig.actions.maxActions&&this._items.length>this._owner.hostConfig.actions.maxActions&&e.addFailure(this._owner,BI.TooManyActions,tP.errors.tooManyActions(this._owner.hostConfig.actions.maxActions)),this._items.length>0&&!this._owner.hostConfig.supportsInteractivity&&e.addFailure(this._owner,BI.InteractivityNotAllowed,tP.errors.interactivityNotAllowed());for(const t of this._items)t.internalValidateProperties(e)}render(e){const t=this._owner.hostConfig;if(!t.supportsInteractivity)return null;const r=this._items.filter(e=>e.isVisible||this._owner.isDesignMode()),n=t.actions.maxActions?Math.min(t.actions.maxActions,r.length):r.length;this._renderedActions=[];const o=[],i=1===n?r[0].getInlineContent():void 0;if(t.actions.preExpandSingleShowCardAction&&i)this._renderedActions.push(r[0]),o.push(this.renderInlineAdaptiveCard(i,!0));else{const n={style:{}};if(n.className=t.makeCssClassName("ac-actionSet"),n.style.display="flex",n.style.gap=t.actions.buttonSpacing,e===wI.Horizontal)if(n.style.flexDirection="row",t.actions.allowButtonsToWrap&&(n.style.flexWrap="wrap"),this._owner.horizontalAlignment&&t.actions.actionAlignment!==pI.Stretch)switch(this._owner.horizontalAlignment){case uI.Center:n.style.justifyContent="center";break;case uI.Right:n.style.justifyContent="flex-end";break;default:n.style.justifyContent="flex-start"}else switch(t.actions.actionAlignment){case pI.Center:n.style.justifyContent="center";break;case pI.Right:n.style.justifyContent="flex-end";break;default:n.style.justifyContent="flex-start"}else if(n.style.flexDirection="column",this._owner.horizontalAlignment&&t.actions.actionAlignment!==pI.Stretch)switch(this._owner.horizontalAlignment){case uI.Center:n.style.alignItems="center";break;case uI.Right:n.style.alignItems="flex-end";break;default:n.style.alignItems="flex-start"}else switch(t.actions.actionAlignment){case pI.Center:n.style.alignItems="center";break;case pI.Right:n.style.alignItems="flex-end";break;case pI.Stretch:n.style.alignItems="stretch";break;default:n.style.alignItems="flex-start"}const i=[],a=[];if(this._owner.isDesignMode())i.push(...r);else{r.forEach(e=>{e.mode===FA.Primary||"wrap"===e.applicationMode||e.menuActions&&e.menuActions.length>0?i.push(e):a.push(e)});const e=i.splice(t.actions.maxActions);qI.allowMoreThanMaxActionsInOverflowMenu&&a.push(...e);let n=!0;a.length>0&&(this._overflowAction||(this._overflowAction=new gB(a),this._overflowAction.onShouldDisplayBuiltInOverflowActionMenu=e=>this.shouldDisplayBuiltInOverflowActionMenu(e),this._overflowAction.onDisplayOverflowActionMenu=(e,t)=>{this.displayOverflowActionMenu(e,t)},this._overflowAction.setParent(this._owner)),n=this.shouldDisplayBuiltInOverflowActionButton(this._overflowAction)),this._overflowAction&&n&&i.push(this._overflowAction)}const s=i.map((e,t)=>{const r=g.createElement(CN,{key:e.getKey(t),cardObject:e});if(r)return this._renderedActions.push(e),r}).filter(e=>void 0!==e);s.length>0&&o.push(g.createElement("div",{style:{overflow:"hidden"},key:"buttonStripContainer"},g.createElement("div",n,s)))}for(const a of this._renderedActions){if(a instanceof gB){const e=a.getActions().find(e=>e.state===EI.Expanded),t=null==e?void 0:e.getInlineContent();t&&o.push(this.renderInlineAdaptiveCard(t,!1));break}if(a.state===EI.Expanded){const e=a.getInlineContent();e&&o.push(this.renderInlineAdaptiveCard(e,!1));break}}return o.length>0?g.createElement(g.Fragment,null,o):null}addAction(e){if(!e)throw new Error("The action parameter cannot be null.");if(e.parent&&e.parent!==this._owner||!(this._items.indexOf(e)<0))throw new Error(tP.errors.actionAlreadyParented());this._items.push(e),e._owner=this,e.parent||e.setParent(this._owner)}removeAction(e){this.expandedAction&&this._expandedAction===e&&this.collapseExpandedAction();const t=this._items.indexOf(e);if(t>=0){this._items.splice(t,1),e.setParent(void 0);for(let t=0;t<this._renderedActions.length;t++)if(this._renderedActions[t]===e){this._renderedActions.splice(t,1);break}return!0}return!1}clear(){this._items=[],this._renderedActions=[],this._expandedAction=void 0}getAllInputs(e=!0){const t=[];if(e)for(const r of this._items)t.push(...r.getAllInputs());return t}getResourceInformation(){const e=[];for(const t of this._items)e.push(...t.getResourceInformation());return e}hasResponsiveElements(){for(const e of this._items)if(e.hasResponsiveElements())return!0;return!1}get renderedActionCount(){return this._renderedActions.length}get expandedAction(){return this._expandedAction}}class yB extends PN{get orientation(){return this.getValue(yB.orientationProperty)}set orientation(e){this.setValue(yB.orientationProperty,e)}populateSchema(e){super.populateSchema(e),e.remove(yB.orientationProperty)}internalParse(e,t){super.internalParse(e,t),this._actionCollection.parse(e.actions,t)}internalToJSON(e,t){super.internalToJSON(e,t),this._actionCollection.toJSON(e,"actions",t)}internalRender(e){var t;return null!==(t=this._actionCollection.render(void 0!==this.orientation?this.orientation:this.hostConfig.actions.actionsOrientation))&&void 0!==t?t:this.isDesignMode()?this.createPlaceholderElement():null}constructor(){super(),this._actionCollection=new vB(this)}releaseDOMResources(){super.releaseDOMResources(),this._actionCollection.releaseDOMResources()}isBleedingAtBottom(){return 0===this._actionCollection.renderedActionCount?super.isBleedingAtBottom():1===this._actionCollection.getActionCount()?void 0!==this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:void 0!==this._actionCollection.expandedAction}getJsonTypeName(){return"ActionSet"}getActionCount(){return this._actionCollection.getActionCount()}getActionAt(e){return e>=0&&e<this.getActionCount()?this._actionCollection.getActionAt(e):super.getActionAt(e)}getActionById(e){const t=this._actionCollection.getActionById(e);return t||super.getActionById(e)}getElementById(e){const t=this._actionCollection.getElementById(e);return t||super.getElementById(e)}getAllActions(){const e=super.getAllActions();for(let t=0;t<this.getActionCount();t++){const r=this.getActionAt(t);r&&e.push(r)}return e}internalValidateProperties(e){super.internalValidateProperties(e),this._actionCollection.validateProperties(e)}addAction(e){this._actionCollection.addAction(e)}getAllInputs(e=!0){return e?this._actionCollection.getAllInputs():[]}getResourceInformation(){return this._actionCollection.getResourceInformation()}getAdditionalValidSchemaProperties(){return[...super.getAdditionalValidSchemaProperties(),"actions"]}getAdditionalPropertyDescriptors(e){return[...super.getAdditionalPropertyDescriptors(e),vB.getActionsPropertyDescriptor(e,this.getJsonTypeName(),!0)]}isLastElement(e){return e.parent===this&&e.isExpandableInlineElement}get isInteractive(){return!0}}yB.orientationProperty=new kP(dP.v1_1,"orientation",wI);class bB extends PN{constructor(){super(...arguments),this.allowVerticalOverflow=!1}populateSchema(e){super.populateSchema(e),this.isSelectable||e.remove(bB.selectActionProperty)}get _selectAction(){return this.getValue(bB.selectActionProperty)}set _selectAction(e){this.setValue(bB.selectActionProperty,e)}isElementAllowed(e){return this.hostConfig.supportsInteractivity||!e.isInteractive}getSpacings(e){super.getSpacings(e);let t=new HI;this.getEffectivePadding()&&(t=this.hostConfig.paddingDefinitionToSpacingDefinition(this.getEffectivePadding())),e.padding={top:t.top,right:t.right,bottom:t.bottom,left:t.left}}getMainAction(){return this._selectAction}customizeProps(e){}get isSelectable(){return!1}get renderIfEmpty(){return!1}forbiddenChildElements(){return[]}processApplicableProperties(){super.processApplicableProperties();for(let e=0;e<this.getItemCount();e++)this.getItemAt(e).processApplicableProperties()}releaseDOMResources(){super.releaseDOMResources();for(let e=0;e<this.getItemCount();e++)this.getItemAt(e).releaseDOMResources()}internalValidateProperties(e){super.internalValidateProperties(e);for(let t=0;t<this.getItemCount();t++){const r=this.getItemAt(t);!this.hostConfig.supportsInteractivity&&r.isInteractive&&e.addFailure(this,BI.InteractivityNotAllowed,tP.errors.interactivityNotAllowed()),this.isElementAllowed(r)||e.addFailure(this,BI.InteractivityNotAllowed,tP.errors.elementTypeNotAllowed(r.getJsonTypeName())),r.internalValidateProperties(e)}this._selectAction&&this._selectAction.internalValidateProperties(e)}updateLayout(e=!1){if(super.updateLayout(e),e)for(let t=0;t<this.getItemCount();t++)this.getItemAt(t).updateLayout()}getAllInputs(e=!0){const t=[];for(let r=0;r<this.getItemCount();r++){const n=this.getItemAt(r);n.shouldRenderForTargetWidth()&&t.push(...n.getAllInputs(e))}return t}getAllActions(){const e=super.getAllActions();for(let t=0;t<this.getItemCount();t++){const r=this.getItemAt(t);r.shouldRenderForTargetWidth()&&e.push(...r.getAllActions())}return this._selectAction&&e.push(this._selectAction),e}getResourceInformation(){const e=[];for(let t=0;t<this.getItemCount();t++)e.push(...this.getItemAt(t).getResourceInformation());return e}getElementById(e){let t=super.getElementById(e);if(!t)for(let r=0;r<this.getItemCount();r++){const n=this.getItemAt(r);if(n.shouldRenderForTargetWidth()&&(t=n.getElementById(e)),t)break}return t}getSortKey(){const e=[];for(let t=0;t<this.getItemCount();t++){const r=this.getItemAt(t).getSortKey();r&&e.push(r)}return e.join("-")}isResponsive(){if(super.isResponsive())return!0;for(let e=0;e<this.getItemCount();e++){if(this.getItemAt(e).isResponsive())return!0}return!1}}bB.selectActionProperty=new DP(dP.v1_1,"selectAction",["Action.ShowCard"]);class wB extends SP{constructor(e,t,r,n){super(e,t,[{value:zA.Default},{value:zA.Emphasis},{targetVersion:dP.v1_2,value:zA.Accent},{targetVersion:dP.v1_2,value:zA.Good},{targetVersion:dP.v1_2,value:zA.Attention},{targetVersion:dP.v1_2,value:zA.Warning}],r,n),this.targetVersion=e,this.name=t,this.defaultValue=r,this.onGetInitialValue=n,this.typeName="ContainerStyle"}}class xB extends PP{get targetWidth(){return this.getValue(xB.targetWidthProperty)}set targetWidth(e){this.setValue(xB.targetWidthProperty,e)}getAdditionalPropertyDescriptors(e){return[...super.getAdditionalPropertyDescriptors(e),{name:"type",valueTypes:[{type:"string"}],requiredValue:this.getSchemaKey(),schemaVersion:dP.v1_5}]}getCodeGenOptions(){return{baseClassName:"ContainerLayout"}}renderItem(e,t,r){return g.createElement(CN,{key:t.getKey(r),cardObject:t})}isResponsive(){return void 0!==this.targetWidth}get allowSpaceBetweenElements(){return!0}get allowContainersToBleed(){return!0}}xB.targetWidthProperty=new IN(dP.v1_5,"targetWidth");class SB extends xB{getJsonTypeName(){return SB.jsonTypeName}apply(e,t){switch(t.style.display="flex",t.style.flexDirection="column",e.getEffectiveVerticalContentAlignment()){case fI.Center:t.style.justifyContent="center";break;case fI.Bottom:t.style.justifyContent="flex-end";break;default:t.style.justifyContent="flex-start"}}}SB.jsonTypeName="Layout.Stack";const kB=new mP(dP.v1_5,"grid.area");class EB extends IP{get name(){return this.getValue(EB.nameProperty)}set name(e){this.setValue(EB.nameProperty,e)}get column(){return this.getValue(EB.columnProperty)}set column(e){this.setValue(EB.columnProperty,e)}get columnSpan(){return this.getValue(EB.columnSpanProperty)}set columnSpan(e){this.setValue(EB.columnSpanProperty,e)}get row(){return this.getValue(EB.rowProperty)}set row(e){this.setValue(EB.rowProperty,e)}get rowSpan(){return this.getValue(EB.rowSpanProperty)}set rowSpan(e){this.setValue(EB.rowSpanProperty,e)}getSchemaKey(){return EB.jsonTypeName}constructor(e){super(),this.name=e}}EB.jsonTypeName="GridArea",EB.nameProperty=new mP(dP.v1_5,"name"),EB.columnProperty=new bP(dP.v1_5,"column",1),EB.columnSpanProperty=new bP(dP.v1_5,"columnSpan",1),EB.rowProperty=new bP(dP.v1_5,"row",1),EB.rowSpanProperty=new bP(dP.v1_5,"rowSpan",1);class TB extends xB{get columns(){return this.getValue(TB.columnsProperty)}set columns(e){this.setValue(TB.columnsProperty,e)}get areas(){return this.getValue(TB.areasProperty)}set areas(e){this.setValue(TB.areasProperty,e)}get columnSpacing(){return this.getValue(TB.columnSpacingProperty)}set columnSpacing(e){this.setValue(TB.columnSpacingProperty,e)}get rowSpacing(){return this.getValue(TB.rowSpacingProperty)}set rowSpacing(e){this.setValue(TB.rowSpacingProperty,e)}getJsonTypeName(){return TB.jsonTypeName}getEffectiveAreas(){return 0===this.areas.length?[TB.defaultArea]:this.areas}apply(e,t){t.style.display="grid",t.style.columnGap=e.hostConfig.getEffectiveSpacing(this.columnSpacing)+"px",t.style.rowGap=e.hostConfig.getEffectiveSpacing(this.rowSpacing)+"px";const r=this.columns.map(e=>"auto"===e?e:e.physicalSize<=0?"auto":e.unit===QA.Pixel?`minmax(0, ${e.physicalSize}px)`:`minmax(0, ${Math.min(100,e.physicalSize)}%)`),n=this.getEffectiveAreas();let o=1;n.forEach(e=>{const t=e.row+e.rowSpan-1;t>o&&(o=t)});const i=[];for(let s=0;s<o;s++)i.push(new Array(r.length).fill(TB.defaultArea.name));for(const s of n)if(s.name){const e=s.row-1,t=e+s.rowSpan,r=s.column-1,n=r+s.columnSpan;for(let o=e;o<t;o++)for(let e=r;e<n;e++)i[o][e]=s.name}let a="";for(const s of i)a+=`"${s.join(" ")}"\n`;t.style.gridTemplateColumns=r.join(" "),t.style.gridTemplateAreas=a}renderItem(e,t,r){var n;const o=this.getEffectiveAreas(),i=t.getValue(kB),a=null!==(n=this.areas.find(e=>e.name===i))&&void 0!==n?n:o[0];return g.createElement("div",{style:{overflow:"hidden",display:"flex",flexDirection:"column",gridArea:a.name},key:t.getKey(r)},g.createElement(CN,{cardObject:t}))}get allowSpaceBetweenElements(){return!1}get allowContainersToBleed(){return!1}}var _B,CB;TB.defaultArea=new EB("."),TB.jsonTypeName="Layout.AreaGrid",TB.columnsProperty=new class extends pP{parse(e,t,r){const n=[],o=t[this.name];if(Array.isArray(o))for(const a of o)try{n.push($I.parse(a))}catch(i){"auto"!==a&&"stretch"!==a||n.push(a)}return n}toJSON(e,t,r,n){const o=[];if(Array.isArray(r))for(const i of r)i instanceof $I?i.unit===QA.Pixel?o.push(`${i.physicalSize}px`):o.push(i.physicalSize):"auto"!==i&&"stretch"!==i||o.push(i);n.serializeArray(t,this.name,r)}getDescriptor(e){return{valueTypes:[{type:"number"},{type:"string"}],propertyType:"array"}}constructor(e,t,r){super(e,t,r),this.targetVersion=e,this.name=t,this.defaultValue=r}}(dP.v1_5,"columns",[]),TB.areasProperty=new TP(dP.v1_5,"areas",()=>new EB),TB.columnSpacingProperty=new kP(dP.v1_5,"columnSpacing",aI,aI.Default),TB.rowSpacingProperty=new kP(dP.v1_5,"rowSpacing",aI,aI.Default),(CB=_B||(_B={}))[CB.Fit=0]="Fit",CB[CB.Fill=1]="Fill",MA(_B,"FlowLayoutItemFit");class AB extends xB{get horizontalItemsAlignment(){return this.getValue(AB.horizontalItemsAlignmentProperty)}set horizontalItemsAlignment(e){this.setValue(AB.horizontalItemsAlignmentProperty,e)}get verticalItemsAlignment(){return this.getValue(AB.verticalItemsAlignmentProperty)}set verticalItemsAlignment(e){this.setValue(AB.verticalItemsAlignmentProperty,e)}get itemFit(){return this.getValue(AB.itemFitProperty)}set itemFit(e){this.setValue(AB.itemFitProperty,e)}get minItemWidth(){return this.getValue(AB.minItemWidthProperty)}set minItemWidth(e){this.setValue(AB.minItemWidthProperty,e)}get maxItemWidth(){return this.getValue(AB.maxItemWidthProperty)}set maxItemWidth(e){this.setValue(AB.maxItemWidthProperty,e)}get itemWidth(){return this.getValue(AB.itemWidthProperty)}set itemWidth(e){this.setValue(AB.itemWidthProperty,e)}get columnSpacing(){return this.getValue(AB.columnSpacingProperty)}set columnSpacing(e){this.setValue(AB.columnSpacingProperty,e)}get rowSpacing(){return this.getValue(AB.rowSpacingProperty)}set rowSpacing(e){this.setValue(AB.rowSpacingProperty,e)}getJsonTypeName(){return AB.jsonTypeName}renderItem(e,t,r){const n=Math.max(this.minItemWidth,0),o=void 0!==this.maxItemWidth&&this.maxItemWidth>n?this.maxItemWidth:void 0,i=void 0!==this.itemWidth&&this.itemWidth>n?this.itemWidth:void 0,a=this.minItemWidth?`calc(min(${n}px, 100%))`:"0";let s;if(this.itemFit===_B.Fill)s="1 1 auto";else s=void 0;return g.createElement("div",{style:{minWidth:a,maxWidth:o?`${o}px`:void 0,width:i?`${i}px`:void 0,overflow:"hidden",flex:s,display:"flex",flexDirection:"column"},key:t.getKey(r)},g.createElement(CN,{cardObject:t}))}apply(e,t){switch(t.style.display="flex",t.style.flexWrap="wrap",t.style.justifyContent="center",t.style.columnGap=e.hostConfig.getEffectiveSpacing(this.columnSpacing)+"px",t.style.rowGap=e.hostConfig.getEffectiveSpacing(this.rowSpacing)+"px",e.getEffectiveVerticalContentAlignment()){case fI.Center:t.style.alignContent="center";break;case fI.Bottom:t.style.alignContent="flex-end";break;default:t.style.alignContent="flex-start"}switch(this.horizontalItemsAlignment){case uI.Center:t.style.justifyContent="center";break;case uI.Right:t.style.justifyContent="flex-end";break;default:t.style.justifyContent="flex-start"}switch(this.verticalItemsAlignment){case fI.Center:t.style.alignItems="center";break;case fI.Bottom:t.style.alignItems="flex-end";break;default:t.style.alignItems="flex-start"}}get allowSpaceBetweenElements(){return!1}get allowContainersToBleed(){return!1}}AB.jsonTypeName="Layout.Flow",AB.horizontalItemsAlignmentProperty=new kP(dP.v1_5,"horizontalItemsAlignment",uI,uI.Center),AB.verticalItemsAlignmentProperty=new kP(dP.v1_5,"verticalItemsAlignment",fI,fI.Top),AB.itemFitProperty=new kP(dP.v1_5,"itemFit",_B,_B.Fit),AB.minItemWidthProperty=new wP(dP.v1_5,"minItemWidth",0),AB.maxItemWidthProperty=new wP(dP.v1_5,"maxItemWidth"),AB.itemWidthProperty=new wP(dP.v1_5,"itemWidth"),AB.columnSpacingProperty=new kP(dP.v1_5,"columnSpacing",aI,aI.Default),AB.rowSpacingProperty=new kP(dP.v1_5,"rowSpacing",aI,aI.Default);const IB=new Map([[SB.jsonTypeName,()=>new SB],[AB.jsonTypeName,()=>new AB],[TB.jsonTypeName,()=>new TB]]);class PB extends bB{constructor(){super(...arguments),this._resizeManager=new HN,this._containerSize=void 0,this.enableAutomaticReflow=!1}get style(){if(this.allowCustomStyle){const e=this.getValue(PB.styleProperty);if(e&&this.hostConfig.containerStyles.getStyleByName(e))return e}}set style(e){this.setValue(PB.styleProperty,e)}get showBorder(){return this.getValue(PB.showBorderProperty)}set showBorder(e){this.setValue(PB.showBorderProperty,e)}get roundedCorners(){return this.getValue(PB.roundedCornersProperty)}set roundedCorners(e){this.setValue(PB.roundedCornersProperty,e)}get layouts(){return this.getValue(PB.layoutsProperty)}set layouts(e){this.setValue(PB.layoutsProperty,e)}onRef(e){this.resizeManager.disconnect(),this.isResizeTracked?(this.renderedElement=null!=e?e:void 0,this.renderedElement&&this.enableAutomaticReflow&&this.resizeManager.observe(this.renderedElement,(e,t)=>{const r=this.hostConfig.getHostWidthForPixelWidth(t.width);this._containerSize=t,this.hostWidth!==r&&(this.hostWidth=r,this.invalidate())})):this.renderedElement=null!=e?e:void 0}get allowCustomStyle(){return!0}get hasExplicitStyle(){return void 0!==this.getValue(PB.styleProperty)}get isResizeTracked(){return!1}providesDesignModeElement(){return!0}getEffectiveLayout(){var e;const t=null!==(e=this.layouts)&&void 0!==e?e:[];let r=t.find(e=>!!e.targetWidth&&e.targetWidth.matches(this.hostWidth));return r||(r=t.find(e=>!e.targetWidth)),null!=r?r:PB._defaultLayout}applyBorder(e){if(this.getHasBorder()&&!this.isBleeding()){const t=this.getEffectiveStyleDefinition();t.borderColor&&(e.style.border=`1px solid ${cP(t.borderColor)}`)}}applyRoundedCorners(e){this.getHasRoundedCorners()&&(e.style.borderRadius=`${this.hostConfig.roundedCornerRadius}px`,e.style.overflow="hidden")}applyBackground(e){if(this.getHasBackground()){const t=this.hostConfig.containerStyles.getStyleByName(this.style,this.hostConfig.containerStyles.getStyleByName(this.defaultStyle));if(t.backgroundColor){const r=cP(t.backgroundColor);r&&(e.style.backgroundColor=r)}}}getSpacings(e){if(super.getSpacings(e),this.getEffectivePadding()&&(e.padding=this.hostConfig.paddingDefinitionToSpacingDefinition(this.getEffectivePadding())),this.isBleeding()){const t=new UI;this.getImmediateSurroundingPadding(t);const r=this.hostConfig.paddingDefinitionToSpacingDefinition(t);e.margin={right:-r.right,left:-r.left,top:this.isDesignMode()?void 0:-r.top,bottom:this.isDesignMode()?void 0:-r.bottom}}}getSeparatorSpacings(e){if(super.getSeparatorSpacings(e),this.isBleeding()){const t=new UI;this.getImmediateSurroundingPadding(t);const r=this.hostConfig.paddingDefinitionToSpacingDefinition(t);this.separatorOrientation===wI.Horizontal&&(e.margin.left=-r.left,e.margin.right=-r.right)}else this.separatorOrientation===wI.Horizontal&&(e.margin.left=0,e.margin.right=0)}getSeparatorColor(e){return e||!this.parent?super.getSeparatorColor(e):super.getSeparatorColor(this.parent.getEffectiveStyleDefinition())}getHasBackground(e=!1){let t=this.parent;for(;t;){let r=!1;if(r=!e&&(t instanceof OB&&t.backgroundImage.isValid()),t instanceof PB&&this.hasExplicitStyle&&(t.getEffectiveStyle()!==this.getEffectiveStyle()||r))return!0;t=t.parent}return!1}getHasBorder(){return"boolean"==typeof this.showBorder&&this.showBorder}getHasRoundedCorners(){return"boolean"==typeof this.roundedCorners&&this.roundedCorners}getDefaultPadding(){return this.getHasBackground()||this.getHasBorder()?new UI(aI.Padding,aI.Padding,aI.Padding,aI.Padding):super.getDefaultPadding()}internalRenderActions(e=!1){return null}applyLayout(e){this.getEffectiveLayout().apply(this,e)}internalRender(e){const t=this.hostConfig,r={style:{}};r.className=t.makeCssClassName("ac-container"),r.style.display="flex",r.style.flexDirection="column";const n=this.renderItems(),o={padding:{},margin:{}};if(this.getSpacings(o),r.style.paddingLeft=o.padding.left,r.style.paddingRight=o.padding.right,r.style.paddingTop=o.padding.top,r.style.paddingBottom=o.padding.bottom,r.style.marginLeft=o.margin.left,r.style.marginRight=o.margin.right,r.style.marginTop=o.margin.top,r.style.marginBottom=o.margin.bottom,this.applyBackground(r),this.applyBorder(r),this.applyRoundedCorners(r),this.customizeProps(r),0===n.length&&!this.isDesignMode()&&!this.renderIfEmpty)return null;let i=null;n.length>0?i=n:this.isDesignMode()&&(i=this.createPlaceholderElement(this.localizeString(tP.emptyElementText,{elementType:this.getJsonTypeName()})));const a={style:{}};return a.style.flex="1",this.applyLayout(a),g.createElement("div",Object.assign({},r,{ref:this.isDesignMode()||this.isResizeTracked?e=>this.onRef(e):void 0}),g.createElement("div",Object.assign({},a),i),this.internalRenderActions(n.length>0||this.isDesignMode()))}internalValidateProperties(e){super.internalValidateProperties(e);const t=this.getValue(PB.styleProperty);if(void 0!==t){this.hostConfig.containerStyles.getStyleByName(t)||e.addFailure(this,BI.InvalidPropertyValue,tP.errors.invalidPropertyValue(t,"style"))}}isResponsive(){if(void 0!==this.layouts&&this.layouts.length>0)for(const e of this.layouts)if(e.isResponsive())return!0;return super.isResponsive()}getEffectiveStyle(){const e=this.style;return e||super.getEffectiveStyle()}getEffectiveVerticalContentAlignment(){return fI.Top}get resizeManager(){return this._resizeManager}getSize(){return this._containerSize}}PB.styleProperty=new wB(dP.v1_0,"style"),PB.showBorderProperty=new yP(dP.v1_5,"showBorder",!1),PB.roundedCornersProperty=new yP(dP.v1_5,"roundedCorners",!1),PB.layoutsProperty=new class extends pP{parse(e,t,r){const n=[],o=t[this.name];if(Array.isArray(o))for(const i of o){const e=IB.get(i.type);if(e){const t=e();t.parse(i,r),n.push(t)}}return n.length>0?n:void 0}toJSON(e,t,r,n){n.serializeArray(t,this.name,r)}getDescriptor(e){const t=[];for(const r of IB.values()){const e=r(),n=new OP(e);t.push(n)}return{valueTypes:[{type:"object",validValues:t}],propertyType:"array"}}constructor(e,t){super(e,t,void 0),this.targetVersion=e,this.name=t}}(dP.v1_5,"layouts"),PB._defaultLayout=new SB;class NB extends PB{get _bleed(){return this.getValue(NB.bleedProperty)}set _bleed(e){this.setValue(NB.bleedProperty,e)}get minPixelHeight(){return this.getValue(NB.minHeightProperty)}set minPixelHeight(e){this.setValue(NB.minHeightProperty,e)}internalInsertItemAt(e,t,r){if(!r){if(e.parent)throw new Error(tP.errors.elementAlreadyParented());if(!e.isStandalone)throw new Error(tP.errors.elementTypeNotStandalone(e.getJsonTypeName()))}e.setParent(this);const n=this.getRawItems();t>=n.length||0===n.length?n.push(e):n.splice(t>=0?t:0,0,e)}adjustSize(e){super.adjustSize(e),void 0!==this.minPixelHeight&&(e.minHeight=`${this.minPixelHeight}px`)}getHasExpandedAction(){return!1}getBleed(){return(!this.parent||this.parent.allowChildContainersToBleed)&&this._bleed}setBleed(e){this._bleed=e}get renderedActionCount(){return 0}addItem(e){this.internalInsertItemAt(e,this.getRawItems().length,!1)}insertItemAt(e,t){this.internalInsertItemAt(e,t,!1)}insertItemBefore(e,t){const r=this.getRawItems().indexOf(t);this.internalInsertItemAt(e,r,!1)}insertItemAfter(e,t){this.internalInsertItemAt(e,this.getRawItems().indexOf(t)+1,!1)}removeItem(e){const t=this.getRawItems(),r=t.indexOf(e);return r>=0&&(t.splice(r,1),e.setParent(void 0),this.updateLayout(),!0)}isBleeding(){return(this.getHasBackground()||this.getHasBorder()||this.hostConfig.alwaysAllowBleed)&&this.getBleed()}getAdditionalValidSchemaProperties(){return[...super.getAdditionalValidSchemaProperties(),this.getItemsCollectionPropertyName()]}}NB.bleedProperty=new yP(dP.v1_2,"bleed",!1),NB.minHeightProperty=new wP(dP.v1_2,"minHeight");class BB extends IP{constructor(){super(...arguments),this.isProcessed=!1}get url(){return this.getValue(BB.urlProperty)}set url(e){this.setValue(BB.urlProperty,e)}get fillMode(){return this.getValue(BB.fillModeProperty)}set fillMode(e){this.setValue(BB.fillModeProperty,e)}get horizontalAlignment(){return this.getValue(BB.horizontalAlignmentProperty)}set horizontalAlignment(e){this.setValue(BB.horizontalAlignmentProperty,e)}get verticalAlignment(){return this.getValue(BB.verticalAlignmentProperty)}set verticalAlignment(e){this.setValue(BB.verticalAlignmentProperty,e)}get themedUrls(){return this.getValue(BB.themedUrlsProperty)}set themedUrls(e){this.setValue(BB.themedUrlsProperty,e)}propertyChanged(e,t){super.propertyChanged(e,t),e===BB.urlProperty&&(this.isProcessed=!1)}getSchemaKey(){return"BackgroundImage"}internalParse(e,t){if("string"!=typeof e)return super.internalParse(e,t);this.resetDefaultValues(),this.url=e}apply(e,t){let r=this.url;if(this.themedUrls)for(const n of this.themedUrls)if(n.url&&e.theme===n.theme){r=n.url;break}if(this.url){switch(t.style.backgroundImage=`url('${e.preProcessPropertyValue(BB.urlProperty,r)}')`,this.fillMode){case SI.Repeat:t.style.backgroundRepeat="repeat";break;case SI.RepeatHorizontally:t.style.backgroundRepeat="repeat-x";break;case SI.RepeatVertically:t.style.backgroundRepeat="repeat-y";break;case SI.Cover:default:t.style.backgroundRepeat="no-repeat",t.style.backgroundSize="cover"}switch(this.horizontalAlignment){case uI.Left:break;case uI.Center:t.style.backgroundPositionX="center";break;case uI.Right:t.style.backgroundPositionX="right"}switch(this.verticalAlignment){case fI.Top:break;case fI.Center:t.style.backgroundPositionY="center";break;case fI.Bottom:t.style.backgroundPositionY="bottom"}}}isValid(){if(this.url)return!0;if(this.themedUrls)for(const e of this.themedUrls)if(e.url)return!0;return!1}}BB.urlProperty=new mP(dP.v1_0,"url").setContentType("imageUrl"),BB.fillModeProperty=new kP(dP.v1_2,"fillMode",SI,SI.Cover),BB.horizontalAlignmentProperty=new kP(dP.v1_2,"horizontalAlignment",uI,uI.Left),BB.verticalAlignmentProperty=new kP(dP.v1_2,"verticalAlignment",fI,fI.Top),BB.themedUrlsProperty=new TP(dP.v1_5,"themedUrls",e=>new EN);class OB extends NB{constructor(){super(...arguments),this._items=[],this._renderedItems=[]}get backgroundImage(){return this.getValue(OB.backgroundImageProperty)}get verticalContentAlignment(){return this.getValue(OB.verticalContentAlignmentProperty)}set verticalContentAlignment(e){this.setValue(OB.verticalContentAlignmentProperty,e)}get rtl(){return this.getValue(OB.rtlProperty)}set rtl(e){this.setValue(OB.rtlProperty,e)}get maxPixelHeight(){return this.getValue(OB.maxHeightProperty)}set maxPixelHeight(e){this.setValue(OB.maxHeightProperty,e)}get renderIfEmpty(){return!(!this.minPixelHeight||!this.backgroundImage.isValid())}getRawItems(){return this._items}getItemsCollectionPropertyName(){return"items"}applyBackground(e){if(this.backgroundImage.isValid()){!this.backgroundImage.isProcessed&&this.processImageUrlAsync({unprocessedUrl:this.backgroundImage.url,setProcessedUrl:e=>{this.backgroundImage.url=e,this.backgroundImage.isProcessed=!0,this.updateLayout()}})||this.backgroundImage.apply(this,e)}super.applyBackground(e)}renderItem(e,t){return this.getEffectiveLayout().renderItem(this,e,t)}renderItems(){const e=[];return this._renderedItems=[],this._items.forEach((t,r)=>{if(t.shouldRender()&&this.isElementAllowed(t)){const n=this.renderItem(t,r);n&&(e.push(n),this._renderedItems.push(t))}}),e}customizeProps(e){super.customizeProps(e),e.dir=this.isRtl()?"rtl":"ltr"}getHasBackground(e=!1){return!e&&this.backgroundImage.isValid()||super.getHasBackground(e)}internalParse(e,t){super.internalParse(e,t),this.clear(),this.setShouldFallback(!1);const r=e[this.getItemsCollectionPropertyName()];if(Array.isArray(r))for(const n of r){const e=t.parseElement(this,n,this.forbiddenChildElements(),!this.isDesignMode());e&&this.internalInsertItemAt(e,this._items.length,!0)}}internalToJSON(e,t){super.internalToJSON(e,t);const r=this.getItemsCollectionPropertyName();t.serializeArray(e,r,this._items)}adjustSize(e){if(super.adjustSize(e),void 0!==this.maxPixelHeight){const t=void 0!==this.minPixelHeight?Math.max(this.minPixelHeight,this.maxPixelHeight):this.maxPixelHeight;e.maxHeight=`${t}px`,e.overflowY="auto"}}get isSelectable(){return!0}getAdditionalPropertyDescriptors(e){const t=e.getElementDescriptors(this.forbiddenChildElements(),[],!0,e.allowExtensionElementInGeneratedSchema);return[...super.getAdditionalPropertyDescriptors(e),{name:this.getItemsCollectionPropertyName(),valueTypes:[{type:"object",validValues:t.sort((e,t)=>e.name.localeCompare(t.name))}],propertyType:"array",declaringClassName:this.constructor.name,schemaVersion:dP.v1_0,suggestedSchemaTypeName:QI,isHero:!0}]}getEffectivePadding(){if(qI.removePaddingFromContainersWithBackgroundImage&&!this.getHasBackground(!0))return new UI;return super.getEffectivePadding()}getParentContainer(){let e=this.parent;for(;e;){if(e instanceof OB)return e;e=e.parent}}getEffectiveVerticalContentAlignment(){if(void 0!==this.verticalContentAlignment)return this.verticalContentAlignment;const e=this.getParentContainer();return e?e.getEffectiveVerticalContentAlignment():fI.Top}getItemCount(){return this._items.length}getItemAt(e){return this._items[e]}getFirstVisibleRenderedItem(){if(this._renderedItems&&this._renderedItems.length>0)for(const e of this._renderedItems)if(e.isVisible)return e}getLastVisibleRenderedItem(){if(this._renderedItems&&this._renderedItems.length>0)for(let e=this._renderedItems.length-1;e>=0;e--)if(this._renderedItems[e].isVisible)return this._renderedItems[e]}getJsonTypeName(){return"Container"}isFirstElement(e){for(const t of this._items)if(t.shouldRender())return t===e;return!1}isLastElement(e){for(let t=this._items.length-1;t>=0;t--)if(this._items[t].shouldRender())return this._items[t]===e;return!1}isRtl(){if(void 0!==this.rtl)return this.rtl;{const e=this.getParentContainer();return!!e&&e.isRtl()}}isBleedingAtTop(){const e=this.getFirstVisibleRenderedItem();return this.isBleeding()||!!e&&e.isBleedingAtTop()}isBleedingAtBottom(){const e=this.getLastVisibleRenderedItem();return this.isBleeding()||!!e&&(e.isBleedingAtBottom()&&e.getEffectiveStyle()===this.getEffectiveStyle())}indexOf(e){return this._items.indexOf(e)}clear(){this._items=[],this._renderedItems=[]}getResourceInformation(){const e=super.getResourceInformation();return this.backgroundImage.isValid()&&e.push({url:this.backgroundImage.url,mimeType:"image"}),e}getActionById(e){let t=super.getActionById(e);if(!t&&(this.selectAction&&(t=this.selectAction.getActionById(e)),!t))for(const r of this._items)if(r.shouldRenderForTargetWidth()&&(t=r.getActionById(e)),t)break;return t}get allowSpaceBetweenElements(){return this.getEffectiveLayout().allowSpaceBetweenElements}get allowChildContainersToBleed(){return this.getEffectiveLayout().allowContainersToBleed}get padding(){return this.getPadding()}set padding(e){this.setPadding(e)}get selectAction(){return this._selectAction}set selectAction(e){this._selectAction=e}get bleed(){return this.getBleed()}set bleed(e){this.setBleed(e)}}OB.backgroundImageProperty=new class extends EP{getDescriptor(e){return{valueTypes:[{type:"string",contentType:"imageUrl"},{type:"object",validValues:[new OP(this.createInstance(),this.allowAdditionalProperties)]}],defaultValue:this.defaultValue}}constructor(e,t){super(e,t,e=>new BB),this.targetVersion=e,this.name=t}}(dP.v1_0,"backgroundImage"),OB.verticalContentAlignmentProperty=new kP(dP.v1_1,"verticalContentAlignment",fI),OB.rtlProperty=new yP(dP.v1_0,"rtl"),OB.maxHeightProperty=new wP(dP.v1_5,"maxHeight");class DB extends OB{get width(){return this.getValue(DB.widthProperty)}set width(e){this.setValue(DB.widthProperty,e)}adjustSize(e){this.isDesignMode()?(e.minWidth="20px",e.minHeight=(this.minPixelHeight?Math.max(this.minPixelHeight,20):20)+"px"):(e.minWidth="0",this.minPixelHeight&&(e.minHeight=`${this.minPixelHeight}px`)),"auto"===this.width?e.flex="0 1 auto":"stretch"===this.width?e.flex="1 1 50px":this.width instanceof $I&&(this.width.unit===QA.Pixel?(e.flex="0 0 auto",e.width=`${this.width.physicalSize}px`):e.flex=`1 1 ${this._computedWeight>0?this._computedWeight:this.width.physicalSize}%`)}shouldSerialize(e){return!0}get separatorOrientation(){return wI.Vertical}get renderIfEmpty(){return!0}constructor(e="stretch"){super(),this._computedWeight=0,this.width=e}getJsonTypeName(){return"Column"}get hasVisibleSeparator(){return!!(this.parent&&this.parent instanceof RB)&&(!this.parent.isFirstElement(this)&&this.shouldRender())}get isStandalone(){return!1}}DB.widthProperty=new class extends pP{parse(e,t,r){let n=this.defaultValue;const o=t[this.name];let i=!1;if("number"!=typeof o||isNaN(o))if("auto"===o||"stretch"===o)n=o;else if("string"==typeof o)try{n=$I.parse(o),n.unit===QA.Pixel&&this.targetVersion.compareTo(r.targetVersion)>0&&(i=!0)}catch(Wqe){i=!0}else i=!0;else n=new $I(o,QA.Weight);return i&&(r.logParseEvent(e,BI.InvalidPropertyValue,tP.errors.invalidColumnWidth(o)),n="auto"),n}toJSON(e,t,r,n){r instanceof $I?r.unit===QA.Pixel?n.serializeValue(t,"width",`${r.physicalSize}px`):n.serializeNumber(t,"width",r.physicalSize):n.serializeValue(t,"width",r)}getDescriptor(e){return{valueTypes:[{type:"string",validValues:["auto","stretch",WI]},{type:"number"}],defaultValue:this.defaultValue}}}(dP.v1_0,"width","stretch");class RB extends NB{constructor(){super(...arguments),this._columns=[]}createColumnInstance(e,t){return"object"!=typeof e||"type"in e||(e.type="Column"),t.parseCardObject(this,e,[],!this.isDesignMode(),e=>e&&"Column"!==e?void 0:new DB,(e,r)=>{t.logParseEvent(void 0,BI.ElementTypeNotAllowed,tP.errors.elementTypeNotAllowed(e))})}populateSchema(e){super.populateSchema(e),e.remove(PB.layoutsProperty)}getRawItems(){return this._columns}renderItems(){const e=this._columns.filter(e=>e.shouldRender());let t=0;for(const n of e)n.width instanceof $I&&n.width.unit===QA.Weight&&(t+=n.width.physicalSize);const r=[];return this._renderedColumns=[],e.forEach((e,n)=>{if(e.width instanceof $I&&e.width.unit===QA.Weight&&t>0){const r=100/t*e.width.physicalSize;e._computedWeight=r}const o=g.createElement(CN,{key:e.getKey(n),cardObject:e});o&&(r.push(o),this._renderedColumns.push(e))}),r}applyLayout(e){switch(e.style.display="flex",e.style.flexDirection="row",this.getEffectiveHorizontalAlignment()){case uI.Center:e.style.justifyContent="center";break;case uI.Right:e.style.justifyContent="flex-end";break;default:e.style.justifyContent="flex-start"}}internalParse(e,t){super.internalParse(e,t),this._columns=[],this._renderedColumns=[];const r=e[this.getItemsCollectionPropertyName()];if(Array.isArray(r))for(const n of r){const e=this.createColumnInstance(n,t);e&&this._columns.push(e)}}internalToJSON(e,t){super.internalToJSON(e,t),t.serializeArray(e,this.getItemsCollectionPropertyName(),this._columns)}get isSelectable(){return!0}getAdditionalPropertyDescriptors(e){return[...super.getAdditionalPropertyDescriptors(e),{name:this.getItemsCollectionPropertyName(),valueTypes:[{type:"object",validValues:[new OP(new DB)]}],propertyType:"array",declaringClassName:this.constructor.name,schemaVersion:dP.v1_0,suggestedSchemaTypeName:"ColumnArray"}]}getItemsCollectionPropertyName(){return"columns"}isFirstElement(e){for(const t of this._columns)if(t.shouldRender())return t===e;return!1}isBleedingAtTop(){if(this.isBleeding())return!0;if(this._renderedColumns&&this._renderedColumns.length>0)for(const e of this._columns)if(e.isBleedingAtTop())return!0;return!1}isBleedingAtBottom(){if(this.isBleeding())return!0;if(this._renderedColumns&&this._renderedColumns.length>0)for(const e of this._columns)if(e.isBleedingAtBottom())return!0;return!1}getItemCount(){return this._columns.length}getFirstVisibleRenderedItem(){return this._renderedColumns&&this._renderedColumns.length>0?this._renderedColumns[0]:void 0}getLastVisibleRenderedItem(){return this._renderedColumns&&this._renderedColumns.length>0?this._renderedColumns[this._renderedColumns.length-1]:void 0}getColumnAt(e){return this._columns[e]}getItemAt(e){return this.getColumnAt(e)}getJsonTypeName(){return"ColumnSet"}internalValidateProperties(e){super.internalValidateProperties(e);let t=0,r=0;for(const n of this._columns)"number"==typeof n.width?t++:"stretch"===n.width&&r++;t>0&&r>0&&e.addFailure(this,BI.Hint,tP.hints.dontUseWeightedAndStretchedColumnsInSameSet())}addColumn(e){this.internalInsertItemAt(e,this._columns.length,!0)}removeItem(e){if(e instanceof DB){const t=this._columns.indexOf(e);if(t>=0)return this._columns.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1}indexOf(e){return e instanceof DB?this._columns.indexOf(e):-1}isLeftMostElement(e){return 0===this._columns.indexOf(e)}isRightMostElement(e){return this._columns.indexOf(e)===this._columns.length-1}isTopElement(e){return this._columns.indexOf(e)>=0}isBottomElement(e){return this._columns.indexOf(e)>=0}getActionById(e){let t;for(const r of this._columns)if(t=r.getActionById(e),t)break;return t}get bleed(){return this.getBleed()}set bleed(e){this.setBleed(e)}get padding(){return this.getPadding()}set padding(e){this.setPadding(e)}get selectAction(){return this._selectAction}set selectAction(e){this._selectAction=e}}class MB extends PN{populateSchema(e){super.populateSchema(e),e.remove(MB.selectActionProperty)}get size(){return this.getValue(MB.sizeProperty)}set size(e){this.setValue(MB.sizeProperty,e)}get weight(){return this.getValue(MB.weightProperty)}set weight(e){this.setValue(MB.weightProperty,e)}get color(){return this.getValue(MB.colorProperty)}set color(e){this.setValue(MB.colorProperty,e)}get fontType(){return this.getValue(MB.fontTypeProperty)}set fontType(e){this.setValue(MB.fontTypeProperty,e)}get isSubtle(){return this.getValue(MB.isSubtleProperty)}set isSubtle(e){this.setValue(MB.isSubtleProperty,e)}get text(){return this.getValue(MB.textProperty)}set text(e){this.setText(e)}get textDynamic(){return this.getValue(MB.textDynamicProperty)}set textDynamic(e){this.setValue(MB.textDynamicProperty,e)}get selectAction(){return this.getValue(MB.selectActionProperty)}set selectAction(e){this.setValue(MB.selectActionProperty,e)}getFontSize(e){switch(this.effectiveSize){case eI.Small:return e.fontSizes.small;case eI.Medium:return e.fontSizes.medium;case eI.Large:return e.fontSizes.large;case eI.ExtraLarge:return e.fontSizes.extraLarge;default:return e.fontSizes.default}}setText(e){this.setValue(MB.textProperty,e)}constructor(e){super(),this.ariaHidden=!1,e&&(this.text=e)}init(e){this.size=e.size,this.weight=e.weight,this.color=e.color,this.isSubtle=e.isSubtle}asString(){return this.text}applyStylesTo(e){const t=this.hostConfig.getFontTypeDefinition(this.effectiveFontType);t.fontFamily&&(e.style.fontFamily=t.fontFamily),e.style.fontSize=`${t.getFontSize(this.effectiveSize)}px`;const r=this.getEffectiveStyleDefinition().foregroundColors.getColorDefinition(this.effectiveColor),n=cP(this.effectiveIsSubtle?r.subtle:r.default);switch(n&&(e.style.color=n),this.effectiveWeight){case rI.Lighter:e.style.fontWeight=t.fontWeights.lighter;break;case rI.Bolder:e.style.fontWeight=t.fontWeights.bolder;break;default:e.style.fontWeight=t.fontWeights.default}this.ariaHidden&&(e["aria-hidden"]="true")}getAllActions(){const e=super.getAllActions();return this.selectAction&&e.push(this.selectAction),e}get effectiveColor(){return void 0!==this.color?this.color:this.getEffectiveTextStyleDefinition().color}get effectiveFontType(){return void 0!==this.fontType?this.fontType:this.getEffectiveTextStyleDefinition().fontType}get effectiveIsSubtle(){return void 0!==this.isSubtle?this.isSubtle:this.getEffectiveTextStyleDefinition().isSubtle}get effectiveSize(){return void 0!==this.size?this.size:this.getEffectiveTextStyleDefinition().size}get effectiveWeight(){return void 0!==this.weight?this.weight:this.getEffectiveTextStyleDefinition().weight}}MB.textProperty=new mP(dP.v1_0,"text").setContentType("text").setIsHero(),MB.textDynamicProperty=new vP(dP.v1_5,"text.dynamic",MB.textProperty),MB.sizeProperty=new kP(dP.v1_0,"size",eI),MB.weightProperty=new kP(dP.v1_0,"weight",rI),MB.colorProperty=new kP(dP.v1_0,"color",lI),MB.isSubtleProperty=new yP(dP.v1_0,"isSubtle"),MB.fontTypeProperty=new kP(dP.v1_2,"fontType",oI),MB.selectActionProperty=new DP(dP.v1_1,"selectAction",["Action.ShowCard"]);const zB=pn({lastParagraph:{"& > div > p:last-of-type":{display:"inline"},"& > div":{display:"inline"}}});class jB extends MB{constructor(){super(...arguments),this._internalId=nP(),this.useMarkdown=!0,this.renderAs="div"}get wrap(){return this.getValue(jB.wrapProperty)}set wrap(e){this.setValue(jB.wrapProperty,e)}get maxLines(){return this.getValue(jB.maxLinesProperty)}set maxLines(e){this.setValue(jB.maxLinesProperty,e)}get style(){return this.getValue(jB.styleProperty)}set style(e){this.setValue(jB.styleProperty,e)}get labelFor(){return this.getValue(jB.labelForProperty)}set labelFor(e){this.setValue(jB.labelForProperty,e)}populateSchema(e){super.populateSchema(e),e.remove(MB.selectActionProperty)}propertyChanged(e,t,r){super.propertyChanged(e,t,r),e===jB.labelForProperty&&(r&&this.removeLabelElementForInputId(r),t&&this.setLabelElementForInputId(t,this))}afterParse(){super.afterParse(),this.labelFor&&this.setLabelElementForInputId(this.labelFor,this)}internalRender(e){var t;const r=zB();if(this.text){const e=this.preProcessPropertyValue(MB.textProperty),n=this.hostConfig,o={style:{}};if(o.id=null!==(t=this.id)&&void 0!==t?t:this._internalId,o.className=n.makeCssClassName("ac-textBlock"),o.style.overflow="hidden",o.style.margin=0,o.style.padding=0,this.applyStylesTo(o),"heading"===this.style){o.role="heading";const e=this.hostConfig.textBlock.headingLevel;void 0!==e&&e>0&&(o["aria-level"]=e)}const i=QN(this.lang,e),a=this.useMarkdown&&i?this.processMarkdown({text:i,properties:this}):{didProcess:!1};a.didProcess&&a.output?o.children=a.output:o.children=i,this.wrap?(o.style.wordWrap="break-word",this.maxLines&&this.maxLines>0&&(o.style.overflow="hidden",qI.useWebkitLineClamp?(o.style.lineHeight=void 0,o.style.display="-webkit-box",o.style.WebkitBoxOrient="vertical",o.style.WebkitLineClamp=this.maxLines):o.style.maxHeight=this._computedLineHeight*this.maxLines+"px")):o.style.whiteSpace="nowrap",o.style.textOverflow="ellipsis";const s=this.labelFor&&this.getLabelElementForInputId(this.labelFor)?this.getInput(this.labelFor):void 0;if(o.htmlFor=null==s?void 0:s.internalId,s&&(null==s?void 0:s.isRequired)&&(null==s?void 0:s.isEnabled)){const e=new jB(n.inputs.label.requiredInputs.suffix);e.init(n.inputs.label.requiredInputs),e.color=n.inputs.label.requiredInputs.suffixColor,e.ariaHidden=!0,e.renderAs="span",o.children=[g.createElement(g.Fragment,{key:"text"},o.children),g.createElement(CN,{key:"requiredCue",cardObject:e})],o.className=r.lastParagraph}return g.createElement(s?"label":this.renderAs,o)}return null}applyStylesTo(e){switch(super.applyStylesTo(e),this.getEffectiveHorizontalAlignment()){case uI.Center:e.style.textAlign="center";break;case uI.Right:e.style.textAlign="end";break;default:e.style.textAlign="start"}const t=this.hostConfig.lineHeights;if(t)switch(this.effectiveSize){case eI.Small:this._computedLineHeight=t.small;break;case eI.Medium:this._computedLineHeight=t.medium;break;case eI.Large:this._computedLineHeight=t.large;break;case eI.ExtraLarge:this._computedLineHeight=t.extraLarge;break;default:this._computedLineHeight=t.default}else this._computedLineHeight=1.33*this.getFontSize(this.hostConfig.getFontTypeDefinition(this.effectiveFontType));e.style.lineHeight=`${this._computedLineHeight}px`}getSortKey(){return this.text||""}getJsonTypeName(){return"TextBlock"}getEffectiveTextStyleDefinition(){return this.style?this.hostConfig.textStyles.getStyleByName(this.style):super.getEffectiveTextStyleDefinition()}get internalId(){return this._internalId}}jB.wrapProperty=new yP(dP.v1_0,"wrap",!1),jB.maxLinesProperty=new bP(dP.v1_0,"maxLines"),jB.styleProperty=new SP(dP.v1_5,"style",[{value:"default"},{value:"columnHeader"},{value:"heading"}]),jB.labelForProperty=new mP(dP.v1_5,"labelFor");class LB extends IP{get name(){return this.getValue(LB.titleProperty)}set name(e){this.setValue(LB.titleProperty,e)}get value(){return this.getValue(LB.valueProperty)}set value(e){this.setValue(LB.valueProperty,e)}getSchemaKey(){return"Fact"}constructor(e,t){super(),this.name=e,this.value=t}}LB.titleProperty=new mP(dP.v1_0,"title").setContentType("text").setIsHero(),LB.valueProperty=new mP(dP.v1_0,"value").setContentType("text").setIsHero();class FB extends PN{get facts(){return this.getValue(FB.factsProperty)}set facts(e){this.setValue(FB.factsProperty,e)}populateSchema(e){super.populateSchema(e),e.remove(PN.horizontalAlignmentProperty)}get useDefaultSizing(){return!1}internalRender(e){const t=this.hostConfig,r=e=>{const t=new jB;return t.setParent(this),t.text=e.value,t.size=e.style.size,t.color=e.style.color,t.isSubtle=e.style.isSubtle,t.weight=e.style.weight,t.wrap=e.style.wrap,t.spacing=aI.None,g.createElement(CN,{cardObject:t})};if(this.facts.length>0){const e=(n=this.hostWidth,o=t.factSet.layoutSwitchBreakpoint,(n===o?0:n<o?-1:1)<0),i=void 0!==t.factSet.title.maxWidth?t.factSet.title.maxWidth:150,a=t.makeCssClassName("ac-fact-title"),s=t.makeCssClassName("ac-fact-value");return g.createElement("div",{style:{display:"grid",overflow:"hidden",gridTemplateColumns:e?"auto":"minmax(min-content, max-content) auto",gap:`${e?t.factSet.stackLayout.rowGap:t.factSet.tableLayout.rowGap}px ${t.factSet.tableLayout.columnGap}px`}},this.facts.map((n,o)=>{const l=n.getKey(o),c=g.createElement(r,{value:n.name,style:t.factSet.title}),u=g.createElement(r,{value:n.value,style:t.factSet.value});return e?g.createElement("div",{key:l,style:{display:"grid",gridAutoColumns:"auto",gap:`${t.factSet.stackLayout.titleValueGap}px`}},g.createElement("div",{className:a},c),g.createElement("div",{className:s},u)):g.createElement(g.Fragment,null,g.createElement("div",{key:l+"_title",className:a,style:{maxWidth:`${i}px`}},c),g.createElement("div",{key:l+"_value",className:s,style:{gridColumn:2}},u))}))}var n,o;return null}isResponsive(){return!0}getJsonTypeName(){return"FactSet"}}var VB,qB,HB,UB;FB.factsProperty=new TP(dP.v1_0,"facts",e=>new LB).setIsHero(),(qB=VB||(VB={}))[qB.Small=0]="Small",qB[qB.Default=1]="Default",qB[qB.Medium=2]="Medium",qB[qB.Large=3]="Large",qB[qB.ExtraLarge=4]="ExtraLarge",(UB=HB||(HB={}))[UB.Top=0]="Top",UB[UB.Center=1]="Center",UB[UB.Bottom=2]="Bottom";const WB={[VB.Small]:"14px",[VB.Default]:"16px",[VB.Medium]:"16px",[VB.Large]:"18px",[VB.ExtraLarge]:"24px"};class $B extends PN{populateSchema(e){super.populateSchema(e),e.remove(PN.targetWidthProperty),e.remove(PN.horizontalAlignmentProperty),e.remove(PN.heightProperty),e.remove(PN.separatorProperty),e.remove(PN.spacingProperty),e.remove(PN.requiresProperty)}get name(){return this.getValue($B.nameProperty)}set name(e){this.setValue($B.nameProperty,e)}get size(){return this.getValue($B.sizeProperty)}set size(e){this.setValue($B.sizeProperty,e)}get style(){return this.getValue($B.styleProperty)}set style(e){this.setValue($B.styleProperty,e)}get color(){return this.getValue($B.colorProperty)}set color(e){this.setValue($B.colorProperty,e)}get selectAction(){return this.getValue($B.selectActionProperty)}set selectAction(e){this.setValue($B.selectActionProperty,e)}internalRender(e){const t=this.hostConfig,r=this.getEffectiveStyleDefinition().foregroundColors.getColorDefinition(this.color);return g.createElement("span",{className:t.makeCssClassName("ac-iconRun"),style:{whiteSpace:"pre-wrap"}},g.createElement(FP,{name:this.name,iconSize:WB[this.size],iconStyle:this.style,iconColor:cP(r.default),isInline:!0}))}getJsonTypeName(){return"IconRun"}get isStandalone(){return!1}get isInline(){return!0}}$B.nameProperty=new mP(dP.v1_5,"name"),$B.sizeProperty=new kP(dP.v1_5,"size",VB,VB.Default),$B.styleProperty=new kP(dP.v1_5,"style",XA,XA.Regular),$B.colorProperty=new kP(dP.v1_5,"color",lI,lI.Default),$B.selectActionProperty=new DP(dP.v1_5,"selectAction",["Action.ShowCard"]);class GB extends pP{getInternalName(){return this.internalName}parse(e,t,r){let n;const o=t[this.name];if(void 0===o)return this.defaultValue;let i=!1;if("string"==typeof o){try{const e=$I.parse(o,!0);e.unit===QA.Pixel&&(n=e.physicalSize,i=!0)}catch(a){}!i&&this.fallbackProperty&&(i=this.fallbackProperty.isValidValue(o,r))}return i||r.logParseEvent(e,BI.InvalidPropertyValue,tP.errors.invalidPropertyValue(o,this.name)),n}toJSON(e,t,r,n){n.serializeValue(t,this.name,"number"!=typeof r||isNaN(r)?void 0:`${r}px`)}getDescriptor(e){return{valueTypes:[{type:"string",validValues:["auto","stretch",WI]}],defaultValue:"auto"}}constructor(e,t,r,n){super(e,t),this.targetVersion=e,this.name=t,this.internalName=r,this.fallbackProperty=n}}class YB extends IP{get allowExpand(){return this.getValue(YB.allowExpand)}set allowExpand(e){this.setValue(YB.allowExpand,e)}getSchemaKey(){return"TeamsImageProperties"}}YB.allowExpand=new yP(dP.v1_0,"allowExpand");class KB extends PN{populateSchema(e){super.populateSchema(e),e.remove(PN.heightProperty),e.add(KB.pixelHeightProperty)}get url(){return this.getValue(KB.urlProperty)}set url(e){this.setValue(KB.urlProperty,e)}get altText(){return this.getValue(KB.altTextProperty)}set altText(e){this.setValue(KB.altTextProperty,e)}get backgroundColor(){return this.getValue(KB.backgroundColorProperty)}set backgroundColor(e){this.setValue(KB.backgroundColorProperty,e)}get size(){return this.getValue(KB.sizeProperty)}set size(e){this.setValue(KB.sizeProperty,e)}get style(){return this.getValue(KB.styleProperty)}set style(e){this.setValue(KB.styleProperty,e)}get pixelWidth(){return this.getValue(KB.pixelWidthProperty)}set pixelWidth(e){this.setValue(KB.pixelWidthProperty,e)}get pixelHeight(){return this.getValue(KB.pixelHeightProperty)}set pixelHeight(e){this.setValue(KB.pixelHeightProperty,e)}get selectAction(){return this.getValue(KB.selectActionProperty)}set selectAction(e){this.setValue(KB.selectActionProperty,e)}get allowExpand(){return this.getValue(KB.allowExpandProperty)}set allowExpand(e){this.setValue(KB.allowExpandProperty,e)}get themedUrls(){return this.getValue(KB.themedUrlsProperty)}set themedUrls(e){this.setValue(KB.themedUrlsProperty,e)}get fitMode(){return this.getValue(KB.fitModeProperty)}set fitMode(e){this.setValue(KB.fitModeProperty,e)}get horizontalContentAlignment(){return this.getValue(KB.horizontalContentAlignmentProperty)}set horizontalContentAlignment(e){this.setValue(KB.horizontalContentAlignmentProperty,e)}get verticalContentAlignment(){return this.getValue(KB.verticalContentAlignmentProperty)}set verticalContentAlignment(e){this.setValue(KB.verticalContentAlignmentProperty,e)}applySize(e){if(this.pixelWidth||this.pixelHeight)this.pixelWidth&&(e.style.width=`${this.pixelWidth}px`),this.pixelHeight&&(e.style.height=`${this.pixelHeight}px`);else if(this.maxHeight){switch(this.size){case qA.Small:e.style.height=`${this.hostConfig.imageSizes.small}px`;break;case qA.Large:e.style.height=`${this.hostConfig.imageSizes.large}px`;break;default:e.style.height=`${this.hostConfig.imageSizes.medium}px`}e.style.maxHeight=`${this.maxHeight}px`}else{switch(this.size){case qA.Stretch:e.style.width="100%";break;case qA.Auto:e.style.maxWidth="100%";break;case qA.Small:e.style.width=`${this.hostConfig.imageSizes.small}px`;break;case qA.Large:e.style.width=`${this.hostConfig.imageSizes.large}px`;break;case qA.Medium:e.style.width=`${this.hostConfig.imageSizes.medium}px`}e.style.maxHeight="100%"}}getEffectiveUrl(){if(this.themedUrls)for(const e of this.themedUrls)if(e.url&&this.theme===e.theme)return e.url;return this.url}get useDefaultSizing(){return!1}getMainAction(){return this.selectAction}internalRender(e){const t=this.getEffectiveUrl();if(t){const e=this.hostConfig,r={style:{}};switch(r.style={minWidth:"0"},r.className=e.makeCssClassName("ac-image"),this.applySize(r),this.fitMode){case $A.Cover:r.style.objectFit="cover";break;case $A.Contain:r.style.objectFit="contain";break;case $A.Fill:r.style.objectFit="fill"}const n=uI[this.horizontalContentAlignment],o=fI[this.verticalContentAlignment];switch(r.style.objectPosition=`${n} ${o}`,this.style!==gI.Default&&this.fitMode!==$A.Contain&&(r.style.borderRadius=this.style===gI.Person?"50%":`${this.hostConfig.roundedCornerRadius}px`,r.style.backgroundPosition="50% 50%",r.style.backgroundRepeat="no-repeat"),this.getEffectiveHorizontalAlignment()){case uI.Center:r.style.alignSelf="center";break;case uI.Right:r.style.alignSelf="flex-end";break;default:r.style.alignSelf="flex-start"}const i=cP(this.backgroundColor);i&&(r.style.backgroundColor=i),r.src=this.preProcessPropertyValue(EN.urlProperty,t);const a=this.preProcessPropertyValue(KB.altTextProperty);return a&&(r.alt=a),this.renderImage({allowExpand:this.allowExpand,isSelectable:void 0!==this.selectAction},r)}return this.isDesignMode()?this.createPlaceholderElement():null}getJsonTypeName(){return"Image"}getAllActions(){const e=super.getAllActions();return this.selectAction&&e.push(this.selectAction),e}getActionById(e){let t=super.getActionById(e);return!t&&this.selectAction&&(t=this.selectAction.getActionById(e)),t}getResourceInformation(){const e=this.getEffectiveUrl();return e?[{url:e,mimeType:"image"}]:[]}}var XB,JB,QB,ZB,eO,tO;KB.urlProperty=new mP(dP.v1_0,"url").setContentType("imageUrl").setIsHero(),KB.altTextProperty=new mP(dP.v1_0,"altText",void 0,void 0,void 0,!0).setContentType("text"),KB.backgroundColorProperty=new mP(dP.v1_1,"backgroundColor"),KB.styleProperty=new kP(dP.v1_0,"style",gI,gI.Default),KB.sizeProperty=new kP(dP.v1_0,"size",qA,qA.Auto),KB.pixelWidthProperty=new GB(dP.v1_1,"width","pixelWidth"),KB.pixelHeightProperty=new GB(dP.v1_1,"height","pixelHeight",PN.heightProperty),KB.selectActionProperty=new DP(dP.v1_1,"selectAction",["Action.ShowCard"]),KB.allowExpandProperty=new yP(dP.v1_2,"allowExpand",!1),KB.msTeamsProperty=new EP(dP.v1_2,"msTeams",e=>new YB).setAlternateDefinition(new EP(dP.v1_2,"msteams",e=>new YB)),KB.themedUrlsProperty=new TP(dP.v1_5,"themedUrls",e=>new EN),KB.fitModeProperty=new kP(dP.v1_5,"fitMode",$A,$A.Fill),KB.horizontalContentAlignmentProperty=new kP(dP.v1_5,"horizontalContentAlignment",uI,uI.Left),KB.verticalContentAlignmentProperty=new kP(dP.v1_5,"verticalContentAlignment",fI,fI.Top),(JB=XB||(XB={}))[JB.Small=0]="Small",JB[JB.Default=1]="Default",JB[JB.Medium=2]="Medium",JB[JB.Large=3]="Large",JB[JB.ExtraLarge=4]="ExtraLarge",(ZB=QB||(QB={}))[ZB.Top=0]="Top",ZB[ZB.Center=1]="Center",ZB[ZB.Bottom=2]="Bottom";class rO extends PN{populateSchema(e){super.populateSchema(e),e.remove(PN.targetWidthProperty),e.remove(PN.horizontalAlignmentProperty),e.remove(PN.heightProperty),e.remove(PN.separatorProperty),e.remove(PN.spacingProperty),e.remove(PN.requiresProperty)}get url(){return this.getValue(rO.urlProperty)}set url(e){this.setValue(rO.urlProperty,e)}get size(){return this.getValue(rO.sizeProperty)}set size(e){this.setValue(rO.sizeProperty,e)}get style(){return this.getValue(rO.styleProperty)}set style(e){this.setValue(rO.styleProperty,e)}get selectAction(){return this.getValue(rO.selectActionProperty)}set selectAction(e){this.setValue(rO.selectActionProperty,e)}get themedUrls(){return this.getValue(rO.themedUrlsProperty)}set themedUrls(e){this.setValue(rO.themedUrlsProperty,e)}getImageSize(){const e=this.getEffectiveTextStyleDefinition().fontType,t=this.hostConfig.getFontTypeDefinition(e);switch(this.size){case XB.Small:return t.inlineImageSizes.small;case XB.Medium:return t.inlineImageSizes.medium;case XB.Large:return t.inlineImageSizes.large;case XB.ExtraLarge:return t.inlineImageSizes.extraLarge;default:return t.inlineImageSizes.default}}getEffectiveUrl(){if(this.themedUrls)for(const e of this.themedUrls)if(e.url&&this.theme===e.theme)return e.url;return this.url}internalRender(e){const t=this.getEffectiveUrl();if(t){const e=this.hostConfig,r={style:{}};return r.style={minWidth:"0",height:`${this.getImageSize()}px`},r.className=e.makeCssClassName("ac-imageRun"),this.style!==gI.Default&&(r.style.borderRadius=this.style===gI.Person?"50%":`${this.hostConfig.roundedCornerRadius}px`,r.style.backgroundPosition="50% 50%",r.style.backgroundRepeat="no-repeat"),r.src=this.preProcessPropertyValue(EN.urlProperty,t),this.renderImage({allowExpand:!1,isSelectable:void 0!==this.selectAction},r)}return this.isDesignMode()?this.createPlaceholderElement():null}getJsonTypeName(){return"ImageRun"}get isStandalone(){return!1}get isInline(){return!0}}rO.urlProperty=new mP(dP.v1_5,"url").setContentType("imageUrl"),rO.sizeProperty=new kP(dP.v1_5,"size",XB,XB.Default),rO.styleProperty=new kP(dP.v1_5,"style",gI,gI.Default),rO.selectActionProperty=new DP(dP.v1_5,"selectAction",["Action.ShowCard"]),rO.themedUrlsProperty=new TP(dP.v1_5,"themedUrls",e=>new EN);class nO extends bB{get _images(){return this.getValue(nO.imagesProperty)}set _images(e){this.setValue(nO.imagesProperty,e)}get imageSize(){return this.getValue(nO.imageSizeProperty)}set imageSize(e){this.setValue(nO.imageSizeProperty,e)}internalRender(e){if(this._images.length>0){const e=[];let t;switch(this._images.forEach((t,r)=>{switch(this.imageSize){case UA.Small:t.size=qA.Small;break;case UA.Large:t.size=qA.Large;break;default:t.size=qA.Medium}t.maxHeight=this.hostConfig.imageSet.maxImageHeight,e.push(g.createElement(CN,{key:t.getKey(r),cardObject:t}))}),this.horizontalAlignment){case uI.Right:t="flex-end";break;case uI.Center:t="center"}return g.createElement("div",{style:{display:"flex",flexWrap:"wrap",gap:"10px",justifyContent:t}},e)}return this.isDesignMode()?this.createPlaceholderElement():null}getItemCount(){return this._images.length}getItemAt(e){return this._images[e]}getFirstVisibleRenderedItem(){return this._images&&this._images.length>0?this._images[0]:void 0}getLastVisibleRenderedItem(){return this._images&&this._images.length>0?this._images[this._images.length-1]:void 0}removeItem(e){if(e instanceof KB){const t=this._images.indexOf(e);if(t>=0)return this._images.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1}getJsonTypeName(){return"ImageSet"}addImage(e){if(e.parent)throw new Error("This image already belongs to another ImageSet");this._images.push(e),e.setParent(this)}indexOf(e){return e instanceof KB?this._images.indexOf(e):-1}}nO.imagesProperty=new TP(dP.v1_0,"images",e=>new KB,(e,t)=>{t.setParent(e)}).setIsHero(),nO.imageSizeProperty=new kP(dP.v1_0,"imageSize",UA,UA.Medium);class oO extends IP{get mimeType(){return this.getValue(oO.mimeTypeProperty)}set mimeType(e){this.setValue(oO.mimeTypeProperty,e)}get url(){return this.getValue(oO.urlProperty)}set url(e){this.setValue(oO.urlProperty,e)}constructor(e,t){super(),this.url=e,this.mimeType=t}isValid(){return!(!this.mimeType||!this.url)}}oO.mimeTypeProperty=new mP(dP.v1_1,"mimeType"),oO.urlProperty=new mP(dP.v1_1,"url").setContentType("mediaUrl");class iO extends oO{get label(){return this.getValue(iO.labelProperty)}set label(e){this.setValue(iO.labelProperty,e)}constructor(e,t,r){super(e,t),this.label=r}getSchemaKey(){return"CaptionSource"}render(e){return this.isValid()?g.createElement("track",{src:this.url,kind:"captions",label:this.label}):null}}iO.labelProperty=new mP(dP.v1_6,"label").setContentType("text");class aO extends oO{getSchemaKey(){return"MediaSource"}render(){return this.isValid()?g.createElement("source",{src:this.url,type:this.mimeType}):null}}class sO{constructor(){this.isPlaying=!1}play(){}get selectedMediaType(){}}class lO extends sO{processSources(){this._selectedSources=[],this._captionSources=[],this._selectedMediaType=void 0;for(const e of this.owner.sources){const t=e.mimeType?e.mimeType.split("/"):[];if(2===t.length){if(!this._selectedMediaType){const e=lO.supportedMediaTypes.indexOf(t[0]);e>=0&&(this._selectedMediaType=lO.supportedMediaTypes[e])}t[0]===this._selectedMediaType&&this._selectedSources.push(e)}}this._captionSources.push(...this.owner.captionSources)}constructor(e){super(),this.owner=e,this._selectedSources=[],this._captionSources=[],this.processSources()}canPlay(){return this._selectedSources.length>0}fetchVideoDetails(){return oA(this,void 0,void 0,function*(){})}render(){"video"===this._selectedMediaType?this._mediaElement=document.createElement("video"):this._mediaElement=document.createElement("audio");const e={style:{}};e["aria-label"]=this.owner.altText?this.owner.altText:this.owner.localizeString(tP.mediaPlayerAriaLabel),e.playsInline=!0,e.crossOrigin="",e.autoPlay=!0,e.controls=!0,e.preload="none",e.style.width="100%",function(){const e=window.navigator.userAgent;return!!e.match(/Android/i)||!!e.match(/iPad/i)||!!e.match(/iPhone/i)}()&&(e.muted=!0);const t=this.owner.sources.map(e=>e.render()).filter(e=>void 0!==e),r=this.owner.captionSources.filter(e=>"vtt"===e.mimeType).map(e=>e.render()).filter(e=>void 0!==e);return g.createElement("video"===this._selectedMediaType?"video":"audio",e,t,r)}play(){this._mediaElement&&this._mediaElement.play()}get selectedMediaType(){return this._selectedMediaType}}lO.supportedMediaTypes=["audio","video"];class cO extends sO{constructor(e){super()}}class uO extends cO{constructor(e,t,r){super(t),this.owner=e,this.matches=t,this.iFrameTitle=r,t.length>=2&&(this._videoId=t[1])}canPlay(){return void 0!==this._videoId}render(){return g.createElement("div",{style:{position:"relative",width:"100%",height:"0",paddingBottom:"56.25%"}},g.createElement("iframe",{sandbox:"allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox",style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},src:this.getEmbedVideoUrl(),frameBorder:"0",title:this.iFrameTitle?this.owner.localizeString(this.iFrameTitle):void 0,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}))}get videoId(){return this._videoId}}class dO extends uO{fetchVideoDetails(){return oA(this,void 0,void 0,function*(){const e=`https://vimeo.com/api/oembed.json?url=${this.getEmbedVideoUrl()}`,t=yield fetch(e);if(t.ok){const e=yield t.json();this.posterUrl=e.thumbnail_url}})}getEmbedVideoUrl(){return`https://player.vimeo.com/video/${this.videoId}?autoplay=1`}}class fO extends uO{fetchVideoDetails(){return oA(this,void 0,void 0,function*(){const e=`https://api.dailymotion.com/video/${this.videoId}?fields=thumbnail_720_url`,t=yield fetch(e);if(t.ok){const e=yield t.json();this.posterUrl=e.thumbnail_720_url}})}getEmbedVideoUrl(){return`https://www.dailymotion.com/embed/video/${this.videoId}?autoplay=1`}}class hO extends uO{constructor(e,t,r){super(e,t,r),this.owner=e,this.matches=t,this.iFrameTitle=r,t.length>=3&&void 0!==t[2]&&(this._startTimeIndex=parseInt(t[2],10))}fetchVideoDetails(){return oA(this,void 0,void 0,function*(){this.posterUrl=this.videoId?`https://img.youtube.com/vi/${this.videoId}/maxresdefault.jpg`:void 0})}getEmbedVideoUrl(){let e=`https://www.youtube.com/embed/${this.videoId}?autoplay=1`;return void 0!==this._startTimeIndex&&(e+=`&start=${this._startTimeIndex}`),e}}(tO=eO||(eO={}))[tO.Loading=0]="Loading",tO[tO.ShowPoster=1]="ShowPoster",tO[tO.ShowPlayer=2]="ShowPlayer";const pO=e=>g.createElement("div",{tabIndex:0,role:"button","aria-label":e.ariaLabel,onClick:t=>{t.preventDefault(),t.stopPropagation(),e.startPlayback()},onKeyDown:t=>{"Enter"!==t.code&&"Space"!==t.code||(t.preventDefault(),t.stopPropagation(),e.startPlayback())},style:{position:"absolute",transform:"translate(-50%, -50%)",top:"50%",left:"50%",display:"flex",alignItems:"center",justifyContent:"center",width:"56px",height:"56px",border:"1px solid #eeeeee",borderRadius:"28px",boxShadow:"0px 0px 10px #eeeeee",backgroundColor:"rgba(255, 255, 255, 0.9)",color:"black",cursor:"pointer"}},g.createElement(FP,{name:"Play",iconSize:112/3,iconStyle:XA.Filled,iconColor:"black"}));class mO{static registerMediaElement(e){var t;const r=null!==(t=e.groupId)&&void 0!==t?t:mO.defaultGroupId;let n=mO._groupedMediaElements.get(r);n||(n=new Set,mO._groupedMediaElements.set(r,n)),n.add(e)}static unregisterMediaElement(e){for(const t of mO._groupedMediaElements.values())t.delete(e)}static stopPlayback(e,t){if(e){const r=mO._groupedMediaElements.get(e);if(r)for(const e of r)e!==t&&e.releaseDOMResources()}else for(const[,r]of mO._groupedMediaElements)if(!t||r.has(t))for(const e of r)e!==t&&e.releaseDOMResources()}static stopPlaybackInChildren(e){for(const[,t]of mO._groupedMediaElements)for(const r of t)r.hasAsParent(e)&&r.releaseDOMResources()}}mO.defaultGroupId="__defaultGroupId__",mO._groupedMediaElements=new Map;class gO extends PN{static stopPlayback(e){mO.stopPlayback(e)}static stopPlaybackInChildren(e){mO.stopPlaybackInChildren(e)}get sources(){return this.getValue(gO.sourcesProperty)}set sources(e){this.setValue(gO.sourcesProperty,e)}get captionSources(){return this.getValue(gO.captionSourcesProperty)}set captionSources(e){this.setValue(gO.captionSourcesProperty,e)}get poster(){return this.getValue(gO.posterProperty)}set poster(e){this.setValue(gO.posterProperty,e)}get altText(){return this.getValue(gO.altTextProperty)}set altText(e){this.setValue(gO.altTextProperty,e)}populateSchema(e){super.populateSchema(e),e.remove(PN.horizontalAlignmentProperty)}mounted(){super.mounted(),mO.registerMediaElement(this)}unmounted(){super.unmounted(),mO.unregisterMediaElement(this)}getJsonTypeName(){return"Media"}}gO.sourcesProperty=new TP(dP.v1_1,"sources",e=>new aO),gO.captionSourcesProperty=new TP(dP.v1_6,"captionSources",e=>new iO),gO.posterProperty=new mP(dP.v1_1,"poster").setContentType("imageUrl"),gO.altTextProperty=new mP(dP.v1_1,"altText").setContentType("text");const vO=e=>{var t;const[r,n]=g.useState(eO.Loading);g.useEffect(()=>{var t;(null===(t=e.mediaPlayer)||void 0===t?void 0:t.isPlaying)||(n(eO.Loading),e.mediaPlayer&&e.mediaPlayer.fetchVideoDetails().then(()=>{n(eO.ShowPoster)}))},[e.mediaPlayer,null===(t=e.mediaPlayer)||void 0===t?void 0:t.isPlaying]);switch(r){case eO.Loading:return g.createElement("div",{style:{height:`${e.placeholderHeight}px`}});case eO.ShowPoster:return(()=>{var t,r,o;const i=null!==(o=null!==(t=e.posterUrl)&&void 0!==t?t:null===(r=e.mediaPlayer)||void 0===r?void 0:r.posterUrl)&&void 0!==o?o:e.defaultPosterUrl;let a,s=null;if(i){const t={src:i,alt:e.localizeString(tP.mediaPlayerPosterAltText),style:{width:"100%",height:"100%"}};s=e.renderImage({isSelectable:!1,allowExpand:!1},t)}else a=`${e.placeholderHeight}px`;const l=()=>{e.startPlayback(),n(eO.ShowPlayer)};return g.createElement("div",{role:"contentinfo","aria-label":e.ariaLabel,style:{position:"relative",display:"flex",height:a}},s,(()=>{if(e.mediaPlayer&&e.mediaPlayer.canPlay()){const t={ariaLabel:e.localizeString(tP.mediaPlayerAriaLabel),startPlayback:l};return jN.mediaPlayButtonRenderer?jN.mediaPlayButtonRenderer(t):g.createElement(pO,Object.assign({},t))}return null})())})();case eO.ShowPlayer:return e.mediaPlayer?e.mediaPlayer.render():null}},yO={urlPatterns:[/^(?:https:\/\/)?(?:www\.)?youtube\.com\/watch\?(?=.*v=([\w\d-_]+))(?=(?:.*t=(\d+))?).*/i,/^(?:https:\/\/)?youtu\.be\/([\w\d-_]+)(?:\?t=(\d+))?/i],createMediaPlayer:(e,t)=>new hO(e,t,tP.youTubeVideoPlayer)},bO={urlPatterns:[/^(?:https:\/\/)?vimeo\.com\/([\w\d-_]+).*/i],createMediaPlayer:(e,t)=>new dO(e,t,tP.vimeoVideoPlayer)},wO={urlPatterns:[/^(?:https:\/\/)?(?:www\.)?dailymotion\.com\/video\/([\w\d-_]+).*/i],createMediaPlayer:(e,t)=>new fO(e,t,tP.dailymotionVideoPlayer)};class xO extends gO{static registerCustomMediaPlayers(...e){xO._customMediaPlayers.push(...e)}createMediaPlayerFromRegistry(){for(const e of xO._customMediaPlayers)for(const t of this.sources)if(t.url)for(const r of e.urlPatterns){const n=r.exec(t.url);if(null!==n)return e.createMediaPlayer(this,n)}}propertyChanged(e,t){this._mediaPlayer=void 0,super.propertyChanged(e,t)}internalRender(e){var t;void 0===this._mediaPlayer&&(this._mediaPlayer=this.createMediaPlayerFromRegistry(),!this._mediaPlayer&&this.hostConfig.media.useHTML5PlayerAsFallback&&(this._mediaPlayer=new lO(this)));return g.createElement(vO,{mediaPlayer:this._mediaPlayer,posterUrl:this.poster,defaultPosterUrl:this.hostConfig.media.defaultPoster,placeholderHeight:(()=>{switch(this.hostWidth){case jI.VeryNarrow:return this.hostConfig.media.placeholderHeights.veryNarrow;case jI.Narrow:return this.hostConfig.media.placeholderHeights.narrow;case jI.Standard:return this.hostConfig.media.placeholderHeights.standard;default:return this.hostConfig.media.placeholderHeights.wide}})(),ariaLabel:null!==(t=this.altText)&&void 0!==t?t:this.localizeString(tP.mediaPlayerAriaLabel),renderImage:(e,t)=>this.renderImage(e,t),localizeString:(e,t)=>this.localizeString(e,t),startPlayback:()=>{this._mediaPlayer&&(this._mediaPlayer.isPlaying=!0),qI.allowSimultaneousVideoPlayback||mO.stopPlayback(void 0,this),this.mediaPlaybackStarted(this)}})}releaseDOMResources(){super.releaseDOMResources(),this._mediaPlayer&&(this._mediaPlayer.isPlaying=!1),this.updateLayout()}getResourceInformation(){const e=[];if(this._mediaPlayer){const t=this.poster?this.poster:this.hostConfig.media.defaultPoster;t&&e.push({url:t,mimeType:"image"})}for(const t of this.sources)t.isValid()&&e.push({url:t.url,mimeType:t.mimeType});for(const t of this.captionSources)t.isValid()&&e.push({url:t.url,mimeType:t.mimeType});return e}get selectedMediaType(){var e;return null===(e=this._mediaPlayer)||void 0===e?void 0:e.selectedMediaType}}xO._customMediaPlayers=[];class SO extends MB{populateSchema(e){super.populateSchema(e),e.remove(PN.targetWidthProperty),e.remove(PN.horizontalAlignmentProperty),e.remove(PN.heightProperty),e.remove(PN.separatorProperty),e.remove(PN.spacingProperty),e.remove(PN.requiresProperty),e.add(MB.selectActionProperty)}get italic(){return this.getValue(SO.italicProperty)}set italic(e){this.setValue(SO.italicProperty,e)}get strikethrough(){return this.getValue(SO.strikethroughProperty)}set strikethrough(e){this.setValue(SO.strikethroughProperty,e)}get highlight(){return this.getValue(SO.highlightProperty)}set highlight(e){this.setValue(SO.highlightProperty,e)}get underline(){return this.getValue(SO.underlineProperty)}set underline(e){this.setValue(SO.underlineProperty,e)}internalRender(e){var t;if(this.text){const e=this.preProcessPropertyValue(MB.textProperty),r=this.hostConfig,n=QN(this.lang,e);let o=null!=n?n:"";if((null===(t=this.selectAction)||void 0===t?void 0:t.isEffectivelyEnabled())&&r.supportsInteractivity){const e={style:{}};e.className=r.makeCssClassName("ac-anchor"),e.href=this.selectAction.getHref(),e.target="_blank",e.rel="noopener noreferrer",e.onClick=e=>{var t,r;e.preventDefault(),e.stopPropagation(),"click"===(null===(t=this.selectAction)||void 0===t?void 0:t.applicationMode)&&(null===(r=this.selectAction)||void 0===r||r.execute())};const t=this.renderAnchor(n,e);null!==t&&(o=this.selectAction.applyTo(t))}const i={style:{}};return i.className=r.makeCssClassName("ac-textRun"),i.style.whiteSpace="pre-wrap",this.applyStylesTo(i),g.createElement("span",i,o)}return null}applyStylesTo(e){if(super.applyStylesTo(e),this.italic&&(e.style.fontStyle="italic"),this.strikethrough&&(e.style.textDecoration="line-through"),this.highlight){const t=this.getEffectiveStyleDefinition().foregroundColors.getColorDefinition(this.effectiveColor),r=cP(this.effectiveIsSubtle?t.highlightColors.subtle:t.highlightColors.default);r&&(e.style.backgroundColor=r)}this.underline&&(e.style.textDecoration="underline")}getJsonTypeName(){return"TextRun"}get isStandalone(){return!1}get isInline(){return!0}}SO.italicProperty=new yP(dP.v1_2,"italic",!1),SO.strikethroughProperty=new yP(dP.v1_2,"strikethrough",!1),SO.highlightProperty=new yP(dP.v1_2,"highlight",!1),SO.underlineProperty=new yP(dP.v1_3,"underline",!1);class kO extends PN{constructor(){super(...arguments),this._inlines=[],this._internalId=nP()}get labelFor(){return this.getValue(kO.labelForProperty)}set labelFor(e){this.setValue(kO.labelForProperty,e)}propertyChanged(e,t,r){super.propertyChanged(e,t,r),e===kO.labelForProperty&&(r&&this.removeLabelElementForInputId(r),t&&this.setLabelElementForInputId(t,this))}afterParse(){super.afterParse(),this.labelFor&&this.setLabelElementForInputId(this.labelFor,this)}internalAddInline(e,t=!1){if(!e.isInline)throw new Error(tP.errors.elementCannotBeUsedAsInline());if(!(void 0===e.parent||t)&&e.parent!==this)throw new Error(tP.errors.inlineAlreadyParented());e.setParent(this),this._inlines.push(e)}internalParse(e,t){if(super.internalParse(e,t),this._inlines=[],Array.isArray(e.inlines))for(const r of e.inlines){let e;if("string"==typeof r){const t=new SO;t.text=r,e=t}else e=t.parseElement(this,r,[],!1);e&&this.internalAddInline(e,!0)}}internalToJSON(e,t){if(super.internalToJSON(e,t),this._inlines.length>0){const r=[];for(const e of this._inlines)r.push(e.toJSON(t));t.serializeValue(e,"inlines",r)}}internalRender(e){var t;if(this._inlines.length>0){const e={style:{}};e.id=null!==(t=this.id)&&void 0!==t?t:this._internalId,e.className=this.hostConfig.makeCssClassName("ac-richTextBlock"),e.style.margin=0,e.style.padding=0;const r=this.hostConfig;switch(this.getEffectiveHorizontalAlignment()){case uI.Center:e.style.textAlign="center";break;case uI.Right:e.style.textAlign="end";break;default:e.style.textAlign="start"}const n=[...this._inlines];let o="div";if(this.forElementId)e.htmlFor=this.forElementId,o="label";else{const t=this.labelFor&&this.getLabelElementForInputId(this.labelFor)?this.getInput(this.labelFor):void 0;if(t&&(e.htmlFor=t.internalId,o="label",t.isRequired&&t.isEnabled)){const e=new SO(r.inputs.label.requiredInputs.suffix);e.setParent(this),e.color=r.inputs.label.requiredInputs.suffixColor,e.ariaHidden=!0,n.push(e)}}const i=n.map((e,t)=>g.createElement(CN,{key:e.getKey(t),cardObject:e}));if(i.length>0)return g.createElement(o,e,i)}return null}asString(){let e="";for(const t of this._inlines)e+=t.asString();return e}getJsonTypeName(){return"RichTextBlock"}getAdditionalValidSchemaProperties(){return[...super.getAdditionalValidSchemaProperties(),"inlines"]}getAdditionalPropertyDescriptors(e){const t=e.getElementDescriptors().filter(e=>e.describedObject instanceof PN&&e.describedObject.isInline);return[...super.getAdditionalPropertyDescriptors(e),{name:"inlines",valueTypes:[{type:"object",validValues:t},{type:"string",contentType:"text"}],propertyType:"array",schemaVersion:dP.v1_2,suggestedSchemaTypeName:"RichTextBlockInlineArray"}]}getInlineCount(){return this._inlines.length}getInlineAt(e){if(e>=0&&e<this._inlines.length)return this._inlines[e];throw new Error(tP.errors.indexOutOfRange(e))}addInline(e){"string"==typeof e?this.internalAddInline(new SO(e)):this.internalAddInline(e)}removeInline(e){const t=this._inlines.indexOf(e);return t>=0&&(this._inlines[t].setParent(void 0),this._inlines.splice(t,1),!0)}get internalId(){return this._internalId}}kO.labelForProperty=new mP(dP.v1_5,"labelFor");class EO extends OB{internalParse(e,t){super.internalParse(e,t),this.parseActions(e,t)}parseActions(e,t){this._actionCollection.parse(e.actions,t)}internalToJSON(e,t){super.internalToJSON(e,t),this._actionCollection.toJSON(e,"actions",t)}internalRenderActions(e=!1){const t=this._actionCollection.render(this.hostConfig.actions.actionsOrientation);return t?g.createElement(g.Fragment,null,e&&AN(this.hostConfig,{spacing:this.hostConfig.getEffectiveSpacing(this.hostConfig.actions.spacing)},wI.Horizontal,{margin:{}}),t):null}getHasExpandedAction(){return 0!==this.renderedActionCount&&(1===this.renderedActionCount?void 0!==this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:void 0!==this._actionCollection.expandedAction)}populateSchema(e){super.populateSchema(e),e.remove(OB.maxHeightProperty)}get renderedActionCount(){return this._actionCollection.renderedActionCount}constructor(){super(),this._actionCollection=new vB(this),this._actionCollection.onShouldDisplayBuiltInOverflowActionButton=e=>this.shouldDisplayBuiltInOverflowActionButton(e),this._actionCollection.onShouldDisplayBuiltInOverflowActionMenu=e=>this.shouldDisplayBuiltInOverflowActionMenu(e),this._actionCollection.onDisplayOverflowActionMenu=(e,t)=>{this.displayOverflowActionMenu(e,t)}}releaseDOMResources(){super.releaseDOMResources(),this._actionCollection.releaseDOMResources()}getActionCount(){return this._actionCollection.getActionCount()}getActionAt(e){return e>=0&&e<this.getActionCount()?this._actionCollection.getActionAt(e):super.getActionAt(e)}getActionById(e){const t=this._actionCollection.getActionById(e);return t||super.getActionById(e)}internalValidateProperties(e){super.internalValidateProperties(e),this._actionCollection&&this._actionCollection.validateProperties(e)}isLastElement(e){return super.isLastElement(e)&&0===this._actionCollection.getActionCount()||e.parent===this&&e.isExpandableInlineElement}addAction(e){this._actionCollection.addAction(e)}clear(){super.clear(),this._actionCollection.clear()}getAllInputs(e=!0){const t=super.getAllInputs(e);return e&&t.push(...this._actionCollection.getAllInputs(e)),t}getResourceInformation(){const e=super.getResourceInformation();return e.push(...this._actionCollection.getResourceInformation()),e}isBleedingAtBottom(){return 0===this._actionCollection.renderedActionCount?super.isBleedingAtBottom():1===this._actionCollection.getActionCount()?void 0!==this._actionCollection.expandedAction&&!this.hostConfig.actions.preExpandSingleShowCardAction:void 0!==this._actionCollection.expandedAction}getElementById(e){let t=super.getElementById(e);return t||(t=this._actionCollection.getElementById(e)),t}isResponsive(){let e=super.isResponsive();return e||(e=this._actionCollection.hasResponsiveElements()),e}getAdditionalValidSchemaProperties(){return[...super.getAdditionalValidSchemaProperties(),"actions"]}get isStandalone(){return!1}}class TO extends IP{get action(){return this.getValue(TO.actionProperty)}set action(e){this.setValue(TO.actionProperty,e),e&&e.setParent(this.parent)}get userIds(){return this.getValue(TO.userIdsProperty)}set userIds(e){this.setValue(TO.userIdsProperty,e)}getSchemaKey(){return"RefreshDefinition"}}TO.actionProperty=new class extends pP{parse(e,t,r){const n=r.parseAction(e.parent,t[this.name],[],!1);if(void 0!==n){if(n instanceof fB)return n;r.logParseEvent(e,BI.ActionTypeNotAllowed,tP.errors.actionTypeNotAllowed(n.getJsonTypeName()))}r.logParseEvent(e,BI.PropertyCantBeNull,tP.errors.propertyMustBeSet("action"))}toJSON(e,t,r,n){n.serializeValue(t,this.name,r?r.toJSON(n):void 0,void 0,!0)}getDescriptor(e){return{valueTypes:[{type:"object",validValues:[new OP(new fB)]}]}}constructor(e,t){super(e,t,void 0),this.targetVersion=e,this.name=t}}(dP.v1_4,"action"),TO.userIdsProperty=new xP(dP.v1_4,"userIds");class _O extends IP{getSchemaKey(){return"AuthCardButton"}get type(){return this.getValue(_O.typeProperty)}set type(e){this.setValue(_O.typeProperty,e)}get title(){return this.getValue(_O.titleProperty)}set title(e){this.setValue(_O.titleProperty,e)}get image(){return this.getValue(_O.imageProperty)}set image(e){this.setValue(_O.imageProperty,e)}get value(){return this.getValue(_O.valueProperty)}set value(e){this.setValue(_O.valueProperty,e)}}_O.typeProperty=new mP(dP.v1_4,"type"),_O.titleProperty=new mP(dP.v1_4,"title").setContentType("text"),_O.imageProperty=new mP(dP.v1_4,"image"),_O.valueProperty=new mP(dP.v1_4,"value");class CO extends IP{getSchemaKey(){return"TokenExchangeResource"}get id(){return this.getValue(CO.idProperty)}set id(e){this.setValue(CO.idProperty,e)}get uri(){return this.getValue(CO.uriProperty)}set uri(e){this.setValue(CO.uriProperty,e)}get providerId(){return this.getValue(CO.providerIdProperty)}set providerId(e){this.setValue(CO.providerIdProperty,e)}}CO.idProperty=new mP(dP.v1_4,"id"),CO.uriProperty=new mP(dP.v1_4,"uri"),CO.providerIdProperty=new mP(dP.v1_4,"providerId");class AO extends IP{getSchemaKey(){return"Authentication"}get text(){return this.getValue(AO.textProperty)}set text(e){this.setValue(AO.textProperty,e)}get connectionName(){return this.getValue(AO.connectionNameProperty)}set connectionName(e){this.setValue(AO.connectionNameProperty,e)}get buttons(){return this.getValue(AO.buttonsProperty)}set buttons(e){this.setValue(AO.buttonsProperty,e)}get tokenExchangeResource(){return this.getValue(AO.tokenExchangeResourceProperty)}set tokenExchangeResource(e){this.setValue(AO.tokenExchangeResourceProperty,e)}}AO.textProperty=new mP(dP.v1_4,"text").setContentType("text"),AO.connectionNameProperty=new mP(dP.v1_4,"connectionName"),AO.buttonsProperty=new TP(dP.v1_4,"buttons",e=>new _O),AO.tokenExchangeResourceProperty=new EP(dP.v1_4,"tokenExchangeResource",e=>new CO,!0);class IO extends IP{getSchemaKey(){return"CardMetadata"}}IO.webUrlProperty=new mP(dP.v1_4,"webUrl").setContentType("link");let PO=class e extends EO{constructor(){super(...arguments),this._inputIdToLabelElementMap=new Map,this._inputIdToInputElementMap=new Map,this.isFocusable=!0}populateSchema(e){super.populateSchema(e),e.remove(NB.bleedProperty),e.remove(NB.showBorderProperty),e.remove(NB.roundedCornersProperty),e.remove(PN.heightProperty),e.remove(PN.horizontalAlignmentProperty),e.remove(PN.separatorProperty),e.remove(PN.spacingProperty),e.remove(PN.targetWidthProperty),e.remove(PN.targetWidthProperty),e.remove(PN.isVisibleProperty),e.remove(PN.isVisibleDynamicProperty)}get version(){return this.getValue(e.versionProperty)}set version(t){this.setValue(e.versionProperty,t)}get fallbackText(){return this.getValue(e.fallbackTextProperty)}set fallbackText(t){this.setValue(e.fallbackTextProperty,t)}get speak(){return this.getValue(e.speakProperty)}set speak(t){this.setValue(e.speakProperty,t)}get refresh(){return this.getValue(e.refreshProperty)}set refresh(t){this.setValue(e.refreshProperty,t),t&&(t.parent=this)}get authentication(){return this.getValue(e.authenticationProperty)}set authentication(t){this.setValue(e.authenticationProperty,t)}get msTeams(){return this.getValue(e.msTeamsProperty)}set msTeams(t){this.setValue(e.msTeamsProperty,t)}get resources(){return this.getValue(e.resourcesProperty)}set resources(t){this.setValue(e.resourcesProperty,t)}get references(){return this.getValue(e.referencesProperty)}set references(t){this.setValue(e.referencesProperty,t)}isVersionSupported(){if(this.bypassVersionCheck)return!0;return!(!this.version||!this.version.isValid||this.maxVersion.major<this.version.major||this.maxVersion.major===this.version.major&&this.maxVersion.minor<this.version.minor)}getRootCard(){if(!this.parent)return this;const t=this.getRootObject();return t instanceof e?t:this}shouldDisplayBuiltInOverflowActionButton(t){var r;const n=null!==(r=this.getRootCard().onShouldDisplayBuiltInOverflowActionButton)&&void 0!==r?r:e.onShouldDisplayBuiltInOverflowActionButton;return void 0===n||n(t.getActions(),t.isAtRootLevel)}shouldDisplayBuiltInOverflowActionMenu(t){var r;const n=null!==(r=this.getRootCard().onShouldDisplayBuiltInOverflowActionMenu)&&void 0!==r?r:e.onShouldDisplayBuiltInOverflowActionMenu;return void 0===n||n(t.isAtRootLevel)}displayOverflowActionMenu(t,r){var n;const o=null!==(n=this.getRootCard().onDisplayOverflowActionMenu)&&void 0!==n?n:e.onDisplayOverflowActionMenu;void 0!==o&&o(t.getActions(),r)}actionExecuted(t){var r;const n=null!==(r=this.getRootCard().onExecuteAction)&&void 0!==r?r:e.onExecuteAction;n&&n(t)}elementVisibilityChanged(t){var r;const n=null!==(r=this.getRootCard().onElementVisibilityChanged)&&void 0!==r?r:e.onElementVisibilityChanged;n&&n(t)}internalRender(e){return this.shouldFallback()&&this._fallbackCard?(this._fallbackCard.hostConfig=this.hostConfig,this._fallbackCard.render()):super.internalRender()}customizeProps(e){super.customizeProps(e),rP(e,this.hostConfig.makeCssClassName("ac-adaptiveCard")),this.isFocusable&&(e.tabIndex=0),this.speak&&(e["aria-label"]=this.speak)}getDefaultSerializationContext(){return new RN(this.version)}getItemsCollectionPropertyName(){return"body"}internalParse(t,r){this._fallbackCard=void 0;const n=r.parseElement(void 0,t.fallback,this.forbiddenChildElements(),!this.isDesignMode());n&&(this._fallbackCard=new e,this._fallbackCard.addItem(n)),super.internalParse(t,r)}internalToJSON(t,r){this.setValue(e.versionProperty,r.targetVersion),super.internalToJSON(t,r)}getHasBackground(e=!1){return!0}getHasBorder(){return!1}getHasRoundedCorners(){return!1}getDefaultPadding(){return new UI(aI.Padding,aI.Padding,aI.Padding,aI.Padding)}shouldSerialize(e){return!0}mounted(){super.mounted(),this.parent||this.processApplicableProperties()}get renderIfEmpty(){return!0}get bypassVersionCheck(){return!1}get allowCustomStyle(){return this.hostConfig.adaptiveCard&&this.hostConfig.adaptiveCard.allowCustomStyle}get hasBackground(){return!0}get isResizeTracked(){return this.enableAutomaticReflow&&this.isResponsive()}processMarkdown(t){var r,n;if(this.parent)return this.parent.processMarkdown(t);if(this.markdownProcessor){const e=Object.assign(Object.assign({},t),{mentions:null===(r=this.msTeams)||void 0===r?void 0:r.getEntitiesOfType(GN),references:this.references});return{didProcess:!0,output:this.markdownProcessor.processMarkdown(e)}}const o={didProcess:!1},i=null!==(n=this.onProcessMarkdown)&&void 0!==n?n:e.onProcessMarkdown;return i&&i(t.text,t.properties,o),o}getJsonTypeName(){return"AdaptiveCard"}getAdditionalPropertyDescriptors(e){return[...super.getAdditionalPropertyDescriptors(e),vB.getActionsPropertyDescriptor(e,this.getJsonTypeName())]}getResourceStrings(){var e;return this.parent?this.parent.getResourceStrings():null===(e=this.resources)||void 0===e?void 0:e.strings}internalValidateProperties(e){super.internalValidateProperties(e),"AdaptiveCard"!==this.getValue(PN.typeNameProperty)&&e.addFailure(this,BI.MissingCardType,tP.errors.invalidCardType()),this.bypassVersionCheck||this.version?this.isVersionSupported()||e.addFailure(this,BI.UnsupportedCardVersion,tP.errors.unsupportedCardVersion(this.version.toString(),this.maxVersion.toString())):e.addFailure(this,BI.PropertyCantBeNull,tP.errors.propertyMustBeSet("version")),this.speak||e.addFailure(this,BI.PropertyShouldBeSet,tP.errors.speakPropertyShouldBeSet())}shouldFallback(){return super.shouldFallback()||!this.isVersionSupported()}renderImage(t,r){var n;if(this.parent)return this.parent.renderImage(t,r);const o=null!==(n=this.onRenderImage)&&void 0!==n?n:e.onRenderImage;return o?o(t,r):super.renderImage(t,r)}renderAnchor(t,r){var n;if(this.parent)return this.parent.renderAnchor(t,r);const o=null!==(n=this.onRenderAnchor)&&void 0!==n?n:e.onRenderAnchor;return o?o(t,r):super.renderAnchor(t,r)}formatDate(t){var r;if(this.parent)return this.parent.formatDate(t);const n=null!==(r=this.onFormatDate)&&void 0!==r?r:e.onFormatDate;return n?n(t):super.formatDate(t)}processImageUrlAsync(t){var r;if(this.parent)return this.parent.processImageUrlAsync(t);const n=null!==(r=this.onProcessImageUrlAsync)&&void 0!==r?r:e.onProcessImageUrlAsync;return n?n(t):super.processImageUrlAsync(t)}processImageUrl(t){var r;if(this.parent)return this.parent.processImageUrl(t);const n=null!==(r=this.onProcessImageUrl)&&void 0!==r?r:e.onProcessImageUrl;return n?n(t):super.processImageUrl(t)}dataQuery(t){var r;if(this.parent)return this.parent.dataQuery(t);const n=null!==(r=this.onDataQuery)&&void 0!==r?r:e.onDataQuery;return n?n(t):super.dataQuery(t)}setLabelElementForInputId(e,t){this.parent?super.setLabelElementForInputId(e,t):this._inputIdToLabelElementMap.set(e,t)}getLabelElementForInputId(e){return this.parent?super.getLabelElementForInputId(e):this._inputIdToLabelElementMap.get(e)}removeLabelElementForInputId(e){this.parent?super.removeLabelElementForInputId(e):this._inputIdToLabelElementMap.delete(e)}inputHasExternalLabel(e){return this.parent?super.inputHasExternalLabel(e):this._inputIdToLabelElementMap.has(e)}registerInput(e){this.parent?super.registerInput(e):e.id&&this._inputIdToInputElementMap.set(e.id,e)}getInput(e){return this.parent?super.getInput(e):this._inputIdToInputElementMap.get(e)}unregisterInput(e){this.parent?super.unregisterInput(e):this._inputIdToInputElementMap.delete(e)}get isInSubCard(){return!!this.parent}get hasVisibleSeparator(){return!1}};PO.schemaUrl="https://adaptivecards.io/schemas/adaptive-card.json",PO.$schemaProperty=new class extends _P{getDescriptor(e){return{valueTypes:[{type:"string"}]}}}(dP.v1_0,"$schema",(e,t,r,n)=>PO.schemaUrl,(e,t,r,n,o)=>{o.serializeValue(r,t.name,PO.schemaUrl)}),PO.versionProperty=new class extends pP{parse(e,t,r){let n=uP.parse(t[this.name],r);return void 0===n&&(n=dP.latest,r.logParseEvent(e,BI.InvalidPropertyValue,tP.errors.invalidCardVersion(n.toString()))),n}toJSON(e,t,r,n){void 0!==r&&n.serializeValue(t,this.name,r.toString())}constructor(e,t){super(e,t,dP.v1_0),this.targetVersion=e,this.name=t}getDescriptor(e){return{valueTypes:[{type:"string",validValues:dP.getAllDeclaredVersions().map(e=>e.toString())}],defaultValue:this.defaultValue.toString(),suggestedSchemaTypeName:"Version"}}}(dP.v1_0,"version"),PO.fallbackTextProperty=new mP(dP.v1_0,"fallbackText").setContentType("text"),PO.speakProperty=new mP(dP.v1_0,"speak").setContentType("text"),PO.refreshProperty=new EP(dP.v1_4,"refresh",e=>new TO,!0),PO.authenticationProperty=new EP(dP.v1_4,"authentication",e=>new AO,!0),PO.msTeamsProperty=new EP(dP.v1_0,"msTeams",e=>new YN).setAlternateDefinition(new EP(dP.v1_0,"msteams",e=>new YN)),PO.metadataProperty=new EP(dP.v1_4,"metadata",e=>new IO),PO.resourcesProperty=new EP(dP.v1_5,"resources",e=>new SN).setHighPriority(!0).setPreserveAdditionalProperties(!0),PO.referencesProperty=new class extends TP{constructor(e,t){super(e,t,e=>{if(e){const t=e.type;if("string"==typeof t)return t?qN.createInstance(t):void 0}}),this.targetVersion=e,this.name=t}getDescriptor(e){return{valueTypes:[{type:"object",validValues:qN.getDescriptors().sort((e,t)=>e.name.localeCompare(t.name))}],propertyType:"array"}}}(dP.v1_5,"references");class NO extends PO{constructor(){super(...arguments),this.suppressStyle=!1}getAdditionalValidSchemaProperties(){return[...super.getAdditionalValidSchemaProperties(),"$schema","version"]}getSchemaKey(){return"InlineAdaptiveCard"}getDefaultPadding(){const e=this.suppressStyle?aI.None:aI.Padding;return new UI(e,e,e,e)}getSpacings(e){if(super.getSpacings(e),!this.suppressStyle){const t=new UI;this.getImmediateSurroundingPadding(t);const r=this.hostConfig.paddingDefinitionToSpacingDefinition(t);e.padding.left=r.left,e.padding.right=r.right,e.margin.left=-r.left,e.margin.right=-r.right,0!==r.bottom&&(e.padding.bottom=r.bottom,e.margin.bottom=-r.bottom)}}customizeProps(e){super.customizeProps(e),e["aria-live"]="polite",e.tabIndex=void 0}get bypassVersionCheck(){return!0}get isResizeTracked(){return!1}populateSchema(e){super.populateSchema(e),e.remove(PO.resourcesProperty)}get defaultStyle(){return this.suppressStyle?zA.Default:this.hostConfig.actions.showCard.style?this.hostConfig.actions.showCard.style:zA.Emphasis}get isExpandableInlineElement(){return!0}get hasVisibleSeparator(){return!1}}class BO extends DN{constructor(){super(...arguments),this.card=new NO}inlineCardExpanded(e){var t;const r=null===(t=this.parent)||void 0===t?void 0:t.getRootObject(),n=r instanceof PO&&r.onInlineCardExpanded?r.onInlineCardExpanded:PO.onInlineCardExpanded;n&&n(this,e)}internalParse(e,t){super.internalParse(e,t);const r=e.card;r?this.card.parse(r,t):t.logParseEvent(this,BI.PropertyCantBeNull,tP.errors.showCardMustHaveCard())}internalToJSON(e,t){super.internalToJSON(e,t),this.card&&t.serializeValue(e,"card",this.card.toJSON(t))}processApplicableProperties(){super.processApplicableProperties(),this.card.processApplicableProperties()}getAdditionalPropertyDescriptors(e){return[...super.getAdditionalPropertyDescriptors(e),{name:"card",valueTypes:[{type:"object",validValues:[new OP(new PO)]}],schemaVersion:dP.v1_0}]}expand(e=!1,t=!1){this.card.suppressStyle=e,t&&this.inlineCardExpanded(!0)}collapse(){this.inlineCardExpanded(!1)}releaseDOMResources(){super.releaseDOMResources(),this.card.releaseDOMResources()}getJsonTypeName(){return BO.JsonTypeName}internalValidateProperties(e){super.internalValidateProperties(e),this.card.internalValidateProperties(e)}setParent(e){super.setParent(e),this.card.setParent(e)}getAllInputs(e=!0){return this.card.getAllInputs(e)}getAllActions(){const e=super.getAllActions();return e.push(...this.card.getAllActions()),e}getResourceInformation(){const e=super.getResourceInformation();return e.push(...this.card.getResourceInformation()),e}getInlineContent(){return this.card}getActionById(e){let t=super.getActionById(e);return t||(t=this.card.getActionById(e)),t}getElementById(e){let t=super.getElementById(e);return t||(t=this.card.getElementById(e)),t}hasResponsiveElements(){return this.card.isResponsive()}shouldRaiseOnExecuteEvent(){return this.hostConfig.actions.showCard.actionMode===yI.Popup}getAdditionalValidSchemaProperties(){return[...super.getAdditionalValidSchemaProperties(),"card"]}get isExpandable(){return!0}get isSupportedInPopover(){return!1}}BO.JsonTypeName="Action.ShowCard";class OO extends IP{get horizontalCellContentAlignment(){return this.getValue(OO.horizontalCellContentAlignmentProperty)}set horizontalCellContentAlignment(e){this.setValue(OO.horizontalCellContentAlignmentProperty,e)}get verticalCellContentAlignment(){return this.getValue(OO.verticalCellContentAlignmentProperty)}set verticalCellContentAlignment(e){this.setValue(OO.verticalCellContentAlignmentProperty,e)}get width(){return this.getValue(OO.widthProperty)}set width(e){this.setValue(OO.widthProperty,e)}getSchemaKey(){return"ColumnDefinition"}}OO.horizontalCellContentAlignmentProperty=new kP(dP.v1_5,"horizontalCellContentAlignment",uI),OO.verticalCellContentAlignmentProperty=new kP(dP.v1_5,"verticalCellContentAlignment",fI),OO.widthProperty=new class extends _P{getDescriptor(e){return{valueTypes:[{type:"string",validValues:[WI]},{type:"number"}]}}}(dP.v1_5,"width",(e,t,r,n)=>{let o=t.defaultValue;const i=r[t.name];let a=!1;if("number"!=typeof i||isNaN(i))if("string"==typeof i)try{o=$I.parse(i)}catch(Wqe){a=!0}else a=!0;else o=new $I(i,QA.Weight);return a&&n.logParseEvent(e,BI.InvalidPropertyValue,tP.errors.invalidColumnWidth(i)),o},(e,t,r,n,o)=>{n.unit===QA.Pixel?o.serializeValue(r,"width",`${n.physicalSize}px`):o.serializeNumber(r,"width",n.physicalSize)},new $I(1,QA.Weight));class DO extends PB{constructor(){super(...arguments),this._items=[]}parseItem(e,t){return t.parseCardObject(this,e,[],!0,e=>this.createItemInstance(e),(e,r)=>{t.logParseEvent(void 0,BI.ElementTypeNotAllowed,tP.errors.elementTypeNotAllowed(e))})}internalAddItem(e){if(e.parent)throw new Error(tP.errors.elementAlreadyParented());this._items.push(e),e.setParent(this)}internalRemoveItem(e){const t=this._items.indexOf(e);return t>=0&&(this._items.splice(t,1),e.setParent(void 0),this.updateLayout(),!0)}internalIndexOf(e){return this._items.indexOf(e)}internalParse(e,t){super.internalParse(e,t),this._items=[];const r=e[this.getCollectionPropertyName()];if(Array.isArray(r))for(const n of r){const e=this.parseItem(n,t);e&&this._items.push(e)}}internalToJSON(e,t){super.internalToJSON(e,t),t.serializeArray(e,this.getCollectionPropertyName(),this._items)}removeItem(e){return this.internalRemoveItem(e)}getItemCount(){return this._items.length}getItemAt(e){return this._items[e]}getFirstVisibleRenderedItem(){return this.getItemCount()>0?this.getItemAt(0):void 0}getLastVisibleRenderedItem(){return this.getItemCount()>0?this.getItemAt(this.getItemCount()-1):void 0}getAdditionalValidSchemaProperties(){return[...super.getAdditionalValidSchemaProperties(),this.getCollectionPropertyName()]}}class RO extends OB{constructor(){super(...arguments),this._columnIndex=-1,this._cellType="data"}populateSchema(e){super.populateSchema(e),e.remove(PB.horizontalAlignmentProperty),e.remove(OB.showBorderProperty),e.remove(OB.roundedCornersProperty)}getHasBorder(){return this.parentRow.parentTable.showGridLines}applyBorder(e){if(this.getHasBorder()){const t=this.hostConfig.containerStyles.getStyleByName(this.parentRow.parentTable.gridStyle);if(t.borderColor){const r=cP(t.borderColor);r&&this.parentRow.parentTable.showGridLines&&this.parentRow.indexOf(this)>0&&(e.style.borderLeft=`1px solid ${r}`)}}}getDefaultPadding(){return this.getHasBackground()||this.getHasBorder()?new UI(aI.Small,aI.Small,aI.Small,aI.Small):super.getDefaultPadding()}adjustSize(e){const t=this.parentRow.parentTable.getColumnAt(this.columnIndex);t.computedWidth.unit===QA.Pixel?e.flex=`0 0 ${t.computedWidth.physicalSize}px`:e.flex=`1 1 ${t.computedWidth.physicalSize}%`}customizeProps(e){super.customizeProps(e),e.role="data"===this.cellType?"cell":"columnheader",e.style.minWidth=0,"header"===this.cellType&&(e.scope="col")}shouldSerialize(e){return!0}getJsonTypeName(){return"TableCell"}getEffectiveTextStyleDefinition(){return"header"===this.cellType?this.hostConfig.textStyles.columnHeader:super.getEffectiveTextStyleDefinition()}getEffectiveHorizontalAlignment(){if(void 0!==this.horizontalAlignment)return this.horizontalAlignment;if(void 0!==this.parentRow.horizontalCellContentAlignment)return this.parentRow.horizontalCellContentAlignment;if(this.columnIndex>=0){const e=this.parentRow.parentTable.getColumnAt(this.columnIndex).horizontalCellContentAlignment;if(void 0!==e)return e}return void 0!==this.parentRow.parentTable.horizontalCellContentAlignment?this.parentRow.parentTable.horizontalCellContentAlignment:super.getEffectiveHorizontalAlignment()}getEffectiveVerticalContentAlignment(){if(void 0!==this.verticalContentAlignment)return this.verticalContentAlignment;if(void 0!==this.parentRow.verticalCellContentAlignment)return this.parentRow.verticalCellContentAlignment;if(this.columnIndex>=0){const e=this.parentRow.parentTable.getColumnAt(this.columnIndex).verticalCellContentAlignment;if(void 0!==e)return e}return void 0!==this.parentRow.parentTable.verticalCellContentAlignment?this.parentRow.parentTable.verticalCellContentAlignment:super.getEffectiveVerticalContentAlignment()}get hasVisibleSeparator(){return!1}get columnIndex(){return this._columnIndex}get cellType(){return this._cellType}get parentRow(){return this.parent}get isStandalone(){return!1}}class MO extends DO{get horizontalCellContentAlignment(){return this.getValue(MO.horizontalCellContentAlignmentProperty)}set horizontalCellContentAlignment(e){this.setValue(MO.horizontalCellContentAlignmentProperty,e)}get verticalCellContentAlignment(){return this.getValue(MO.verticalCellContentAlignmentProperty)}set verticalCellContentAlignment(e){this.setValue(MO.verticalCellContentAlignmentProperty,e)}populateSchema(e){super.populateSchema(e),e.remove(PB.layoutsProperty)}getDefaultPadding(){return new UI(aI.None,aI.None,aI.None,aI.None)}applyBackground(e){const t=this.hostConfig.containerStyles.getStyleByName(this.style,this.hostConfig.containerStyles.getStyleByName(this.defaultStyle));if(t.backgroundColor){const r=cP(t.backgroundColor);r&&(e.style.backgroundColor=r)}}getCollectionPropertyName(){return"cells"}createItemInstance(e){return e&&"TableCell"!==e?void 0:new RO}renderItems(){const e=[],t=this.getIsFirstRow();for(let r=0;r<Math.min(this.getItemCount(),this.parentTable.getColumnCount());r++){const n=this.getItemAt(r);n._columnIndex=r,n._cellType=this.parentTable.firstRowAsHeaders&&t?"header":"data";const o=g.createElement(CN,{key:n.getKey(r),cardObject:n});o&&e.push(o)}return e}customizeProps(e){e.role="row"}applyLayout(e){e.style.display="flex",e.style.flexDirection="row";const t=this.hostConfig.table.cellSpacing;if(!this.parentTable.showGridLines&&t>0&&(e.style.gap=t),this.parentTable.showGridLines&&this.parentTable.indexOf(this)>0){const t=this.hostConfig.containerStyles.getStyleByName(this.parentTable.gridStyle);if(t.borderColor){const r=cP(t.borderColor);r&&(e.style.borderTop=`1px solid ${r}`)}}}shouldSerialize(e){return!0}addCell(e){this.internalAddItem(e)}removeCellAt(e){return e>=0&&e<this.getItemCount()&&this.removeItem(this.getItemAt(e))}indexOf(e){return e instanceof RO?this.internalIndexOf(e):-1}ensureHasEnoughCells(e){for(;this.getItemCount()<e;)this.addCell(new RO)}getJsonTypeName(){return"TableRow"}getIsFirstRow(){return this.parentTable.getItemAt(0)===this}getAdditionalPropertyDescriptors(e){return[...super.getAdditionalPropertyDescriptors(e),{name:this.getCollectionPropertyName(),valueTypes:[{type:"object",validValues:[new OP(new RO)]}],propertyType:"array",schemaVersion:dP.v1_5,suggestedSchemaTypeName:"TableCellArray"}]}get hasVisibleSeparator(){return!1}get parentTable(){return this.parent}get isStandalone(){return!1}}MO.styleProperty=new wB(dP.v1_5,"style"),MO.horizontalCellContentAlignmentProperty=new kP(dP.v1_5,"horizontalCellContentAlignment",uI),MO.verticalCellContentAlignmentProperty=new kP(dP.v1_5,"verticalCellContentAlignment",fI);class zO extends DO{get _columns(){return this.getValue(zO._columnsProperty)}set _columns(e){this.setValue(zO._columnsProperty,e)}get firstRowAsHeaders(){return this.getValue(zO.firstRowAsHeadersProperty)}set firstRowAsHeaders(e){this.setValue(zO.firstRowAsHeadersProperty,e)}get showGridLines(){return this.getValue(zO.showGridLinesProperty)}set showGridLines(e){this.setValue(zO.showGridLinesProperty,e)}get gridStyle(){const e=this.getValue(zO.gridStyleProperty);if(e&&this.hostConfig.containerStyles.getStyleByName(e))return e}set gridStyle(e){this.setValue(zO.gridStyleProperty,e)}get horizontalCellContentAlignment(){return this.getValue(zO.horizontalCellContentAlignmentProperty)}set horizontalCellContentAlignment(e){this.setValue(zO.horizontalCellContentAlignmentProperty,e)}get verticalCellContentAlignment(){return this.getValue(zO.verticalCellContentAlignmentProperty)}set verticalCellContentAlignment(e){this.setValue(zO.verticalCellContentAlignmentProperty,e)}populateSchema(e){super.populateSchema(e),e.remove(PB.layoutsProperty)}ensureRowsHaveEnoughCells(){for(let e=0;e<this.getItemCount();e++)this.getItemAt(e).ensureHasEnoughCells(this.getColumnCount())}removeCellsFromColumn(e){for(let t=0;t<this.getItemCount();t++)this.getItemAt(t).removeCellAt(e)}getCollectionPropertyName(){return"rows"}createItemInstance(e){return e&&"TableRow"!==e?void 0:new MO}internalParse(e,t){super.internalParse(e,t),this.ensureRowsHaveEnoughCells()}renderItems(){const e=[];for(let t=0;t<this.getItemCount();t++){const r=this.getItemAt(t),n=g.createElement(CN,{key:r.getKey(t),cardObject:r});n&&e.push(n)}return e}applyLayout(e){let t=0;for(const n of this._columns)n.width.unit===QA.Weight&&(t+=n.width.physicalSize);for(const n of this._columns)n.width.unit===QA.Pixel?n.computedWidth=new $I(n.width.physicalSize,QA.Pixel):n.computedWidth=new $I(100/t*n.width.physicalSize,QA.Weight);e.role="table",e.style.display="flex",e.style.flexDirection="column",e.style.overflow="hidden";const r=this.hostConfig.table.cellSpacing;if(this.showGridLines){const t=this.hostConfig.containerStyles.getStyleByName(this.gridStyle);if(t.borderColor){const r=cP(t.borderColor);r&&(e.style.border=`1px solid ${r}`,this.applyRoundedCorners(e))}}else e.style.gap=r>0?r:void 0}getDefaultPadding(){return this.getHasBackground()?new UI(aI.Padding,aI.Padding,aI.Padding,aI.Padding):new UI}getHasBorder(){return this.showGridLines&&this.getHasBackground()||super.getHasBorder()}addColumn(e){this._columns.push(e),this.ensureRowsHaveEnoughCells()}removeColumn(e){const t=this._columns.indexOf(e);t>=0&&(this.removeCellsFromColumn(t),this._columns.splice(t,1))}getColumnCount(){return this._columns.length}getColumnAt(e){return this._columns[e]}addRow(e){this.internalAddItem(e),e.ensureHasEnoughCells(this.getColumnCount())}indexOf(e){return e instanceof MO?this.internalIndexOf(e):-1}getJsonTypeName(){return"Table"}getAdditionalPropertyDescriptors(e){return[...super.getAdditionalPropertyDescriptors(e),{name:this.getCollectionPropertyName(),valueTypes:[{type:"object",validValues:[new OP(new MO)]}],propertyType:"array",schemaVersion:dP.v1_5,suggestedSchemaTypeName:"TableRowArray"}]}getAdditionalValidSchemaProperties(){return[...super.getAdditionalValidSchemaProperties(),"columns"]}}zO._columnsProperty=new TP(dP.v1_5,"columns",e=>new OO),zO.firstRowAsHeadersProperty=new yP(dP.v1_5,"firstRowAsHeaders",!0),zO.showGridLinesProperty=new yP(dP.v1_5,"showGridLines",!0),zO.gridStyleProperty=new wB(dP.v1_5,"gridStyle"),zO.horizontalCellContentAlignmentProperty=new kP(dP.v1_5,"horizontalCellContentAlignment",uI),zO.verticalCellContentAlignmentProperty=new kP(dP.v1_5,"verticalCellContentAlignment",fI);class jO extends PN{constructor(){super(...arguments),this._hasError=!1,this._internalId=nP(),this.labelId=nP(),this.errorId=nP()}get label(){return this.getValue(jO.labelProperty)}set label(e){this.setValue(jO.labelProperty,e)}get isRequired(){return this.getValue(jO.isRequiredProperty)}set isRequired(e){this.setValue(jO.isRequiredProperty,e)}get errorMessage(){return this.getValue(jO.errorMessageProperty)}set errorMessage(e){this.setValue(jO.errorMessageProperty,e)}get valueChangedAction(){return this.getValue(jO.valueChangedActionProperty)}set valueChangedAction(e){this.setValue(jO.valueChangedActionProperty,e)}get internalId(){return this._internalId}populateSchema(e){super.populateSchema(e),e.remove(PN.horizontalAlignmentProperty)}internalParse(e,t){super.internalParse(e,t),this._value=this.defaultValue}getAllLabelIds(){var e;const t=[];if(this.labelledBy&&t.push(this.labelledBy),this.id&&this.inputHasExternalLabel(this.id)){const r=this.getLabelElementForInputId(this.id),n=null!==(e=null==r?void 0:r.id)&&void 0!==e?e:null==r?void 0:r.internalId;n&&t.push(n)}else t.push(this.labelId,this.errorId);return t}getAriaLabelledBy(){const e=this.getAllLabelIds();return e.length>0?e.join(" "):void 0}get isNullable(){return!0}renderLabel(){const e=this.hostConfig;if(!(this.id&&this.inputHasExternalLabel(this.id))&&this.label){const t=new kO;t.id=this.labelId,t.setParent(this),t.forElementId=this.internalId;const r=new SO(this.label);if(t.addInline(r),this.isRequired&&this.isEnabled){r.init(e.inputs.label.requiredInputs);const n=new SO(e.inputs.label.requiredInputs.suffix);n.color=e.inputs.label.requiredInputs.suffixColor,n.ariaHidden=!0,t.addInline(n)}else r.init(e.inputs.label.optionalInputs);return g.createElement(CN,{cardObject:t})}return null}renderExtraContent(){return null}afterParse(){super.afterParse(),this.registerInput(this)}internalRender(e){const t=this.hostConfig,r=this.renderExtraContent(),n={display:"flex",flexDirection:"row",gap:r?"10px":void 0,flex:"stretch"===this.height?"1 1 auto":void 0};return g.createElement("div",{style:{display:"flex",flexDirection:"column",gap:`${t.getEffectiveSpacing(t.inputs.label.inputSpacing)}px`}},this.renderLabel(),g.createElement("div",{className:this.hostConfig.makeCssClassName("ac-input-container"),style:n},this.renderInputControl(),r),this.renderValidationError())}renderValidationError(){if(this.hasError&&this.errorMessage&&qI.displayInputValidationErrors){const e=new jB;return e.id=this.errorId,e.setParent(this),e.text=this.errorMessage,e.wrap=!0,e.init(this.hostConfig.inputs.errorMessage),g.createElement(CN,{cardObject:e})}return null}executeValueChangedAction(){var e;null===(e=this.valueChangedAction)||void 0===e||e.execute()}valueChanged(e){this._value=e,this.getRootElement().updateActionsEnabledState(),this.executeValueChangedAction();!this.isValid()||(this.hasError=!1),this.onValueChanged&&this.onValueChanged(this);const t=this.getRootElement(),r=t&&t.onInputValueChanged?t.onInputValueChanged:PO.onInputValueChanged;r&&r(this)}getValue(e){return(e!==jO.isRequiredProperty||!this.isInPopover())&&super.getValue(e)}focus(){return!1}resetValue(){this.isSet()&&(this.value=this.defaultValue,this.updateLayout())}isValid(){return!0}isDirty(){return this.isSet()&&this.value!==this._oldValue}resetDirtyState(){this._oldValue=this.value}internalValidateProperties(e){super.internalValidateProperties(e),this.id||e.addFailure(this,BI.PropertyCantBeNull,tP.errors.inputsMustHaveUniqueId());!0===super.getValue(jO.isRequiredProperty)&&(this.label||e.addFailure(this,BI.RequiredInputsShouldHaveLabel,"Required inputs should have a label"),this.errorMessage||e.addFailure(this,BI.RequiredInputsShouldHaveErrorMessage,"Required inputs should have an error message"),this.isInPopover()&&e.addFailure(this,BI.Other,"Required inputs are not allowed in popovers. The input will be treated as optional."))}validateValue(){if(!this.isEnabled)return!0;const e=this.isRequired?this.isSet()&&this.isValid():this.isValid();return this.hasError=!e,e}getAllInputs(e=!0){return[this]}get valueAsString(){return void 0!==this.value&&null!==this.value?this.value.toString():void 0}get isInteractive(){return!0}get hasError(){return this._hasError}set hasError(e){this._hasError!==e&&(this._hasError=e,this.updateLayout())}}jO.labelProperty=new mP(dP.v1_3,"label").setContentType("text"),jO.isRequiredProperty=new yP(dP.v1_3,"isRequired",!1),jO.errorMessageProperty=new mP(dP.v1_3,"errorMessage").setContentType("text"),jO.valueChangedActionProperty=new DP(dP.v1_5,"valueChangedAction",["Action.ToggleVisibility","Action.Execute","Action.Submit","Action.OpenUrl","Action.Overflow","Action.Http","Action.ShowCard","Action.InsertImage"]);class LO extends IP{get title(){return this.getValue(LO.titleProperty)}set title(e){this.setValue(LO.titleProperty,e)}get value(){return this.getValue(LO.valueProperty)}set value(e){this.setValue(LO.valueProperty,e)}getSchemaKey(){return"Choice"}constructor(e,t){super(),this.title=e,this.value=t}}LO.titleProperty=new mP(dP.v1_0,"title").setContentType("text"),LO.valueProperty=new mP(dP.v1_0,"value");class FO extends PP{get dataset(){return this.getValue(FO.datasetProperty)}set dataset(e){this.setValue(FO.datasetProperty,e)}get count(){return this.getValue(FO.countProperty)}set count(e){this.setValue(FO.countProperty,e)}get skip(){return this.getValue(FO.skipProperty)}set skip(e){this.setValue(FO.skipProperty,e)}get associatedInputs(){return this.getValue(FO.associatedInputsProperty)}set associatedInputs(e){this.setValue(FO.associatedInputsProperty,e)}getJsonTypeName(){return"Data.Query"}getAdditionalPropertyDescriptors(e){return[...super.getAdditionalPropertyDescriptors(e),{name:"type",valueTypes:[{type:"string"}],requiredValue:this.getJsonTypeName(),schemaVersion:dP.v1_0}]}}FO.datasetProperty=new mP(dP.v1_0,"dataset"),FO.associatedInputsProperty=new NN(dP.v1_0,"associatedInputs"),FO.countProperty=new bP(dP.v1_0,"count"),FO.skipProperty=new bP(dP.v1_0,"skip");class VO extends jO{constructor(){super(...arguments),this.selectedValues=new Set}get defaultValue(){return this.getValue(VO.valueProperty)}set defaultValue(e){this.setValue(VO.valueProperty,e)}get style(){return this.getValue(VO.styleProperty)}set style(e){this.setValue(VO.styleProperty,e)}get isMultiSelect(){return this.getValue(VO.isMultiSelectProperty)}set isMultiSelect(e){this.setValue(VO.isMultiSelectProperty,e)}get placeholder(){return this.getValue(VO.placeholderProperty)}set placeholder(e){this.setValue(VO.placeholderProperty,e)}get wrap(){return this.getValue(VO.wrapProperty)}set wrap(e){this.setValue(VO.wrapProperty,e)}get choices(){return this.getValue(VO.choicesProperty)}set choices(e){this.setValue(VO.choicesProperty,e)}get choicesData(){return this.getValue(VO.choicesDataProperty)}set choicesData(e){this.setValue(VO.choicesDataProperty,e)}propertyChanged(e,t){if(super.propertyChanged(e,t),e===VO.valueProperty){const e=this.defaultValue?this.defaultValue.split(this.hostConfig.choiceSetInputValueSeparator):[];this.selectedValues.clear(),e.forEach(e=>this.selectedValues.add(e))}}getJsonTypeName(){return"Input.ChoiceSet"}internalValidateProperties(e){super.internalValidateProperties(e),0===this.choices.length&&e.addFailure(this,BI.CollectionCantBeEmpty,tP.errors.choiceSetMustHaveAtLeastOneChoice());for(const t of this.choices)t.title&&t.value||e.addFailure(this,BI.PropertyCantBeNull,tP.errors.choiceSetChoicesMustHaveTitleAndValue())}isSet(){return!!this.value}isValid(){if(this.choicesData)return!0;if(""===this.value||void 0===this.value)return!this.isRequired;const e=this.isMultiSelect?this.value.split(this.hostConfig.choiceSetInputValueSeparator):[this.value],t=this.choices.map(e=>e.value);for(const r of e)if(!t.includes(r))return!1;return!0}isValidValue(e){if(this.choicesData)return!0;const t=this.isMultiSelect?e.split(this.hostConfig.choiceSetInputValueSeparator):[e],r=this.choices.map(e=>e.value);for(const n of t)if(!r.includes(n))return!1;return!0}getAssociatedInputs(){return this.choicesData&&"none"!==this.choicesData.associatedInputs?this.getRootElement().getAllInputs():[]}get value(){return this._value}set value(e){this._value===e||void 0!==e&&!this.isValidValue(e)||super.valueChanged(e)}}VO.valueProperty=new mP(dP.v1_0,"value"),VO.choicesProperty=new TP(dP.v1_0,"choices",e=>new LO).setIsHero(),VO.choicesDataProperty=new class extends EP{parse(e,t,r){const n=t[this.name];if("object"==typeof n&&"type"in n&&n.type===this.objectTypeName)return super.parse(e,t,r)}constructor(e,t,r,n,o=!1,i){super(e,t,n,o,i),this.targetVersion=e,this.name=t,this.objectTypeName=r,this.createInstance=n,this.nullable=o}}(dP.v1_5,"choices.data","Data.Query",e=>new FO,!0),VO.styleProperty=new SP(dP.v1_0,"style",[{value:"compact"},{value:"expanded"},{value:"filtered",targetVersion:dP.v1_5}],"compact"),VO.isMultiSelectProperty=new yP(dP.v1_0,"isMultiSelect",!1),VO.placeholderProperty=new mP(dP.v1_0,"placeholder").setContentType("text"),VO.wrapProperty=new yP(dP.v1_2,"wrap",!0);class qO extends pP{parse(e,t,r){const n=t[this.name];let o=!1;if("string"!=typeof n)o=!0;else{const e=function(e,t=!1){const r=(t?/^(\d{4})-(\d{1,2})-(\d{1,2})$/:/^(\d{4})-(\d{2})-(\d{2})$/).exec(e);if(r&&4===r.length){const e=parseInt(r[1],10),t=parseInt(r[2],10)-1,n=parseInt(r[3],10);return new Date(e,t,n)}}(n);if(e)return e;o=!0}return o&&r.logParseEvent(e,BI.InvalidPropertyValue,tP.errors.invalidPropertyValue(n,this.name)),this.defaultValue}toJSON(e,t,r,n){n.serializeDate(t,this.name,r,this.defaultValue)}getDescriptor(e){return{valueTypes:[{type:"string"}]}}constructor(e,t,r){super(e,t,r),this.targetVersion=e,this.name=t,this.defaultValue=r}}class HO extends jO{get defaultValue(){return this.getValue(HO.valueProperty)}set defaultValue(e){this.setValue(HO.valueProperty,e)}get min(){return this.getValue(HO.minProperty)}set min(e){this.setValue(HO.minProperty,e)}get max(){return this.getValue(HO.maxProperty)}set max(e){this.setValue(HO.maxProperty,e)}get placeholder(){return this.getValue(HO.placeholderProperty)}set placeholder(e){this.setValue(HO.placeholderProperty,e)}getJsonTypeName(){return"Input.Date"}isSet(){return!!this.value}isValid(){return this.value?this.isValidValue(this.value):!this.isRequired}isValidValue(e){let t=!0;return this.min&&(t=t&&e>=this.min),this.max&&(t=t&&e<=this.max),t}get value(){return this._value}set value(e){this._value===e||void 0!==e&&!this.isValidValue(e)||this.valueChanged(e)}get valueAsString(){if(void 0!==this.value)return lP(this.value)}}HO.valueProperty=new qO(dP.v1_0,"value"),HO.placeholderProperty=new mP(dP.v1_0,"placeholder").setContentType("text"),HO.minProperty=new qO(dP.v1_0,"min"),HO.maxProperty=new qO(dP.v1_0,"max");class UO extends jO{get defaultValue(){return this.getValue(UO.valueProperty)}set defaultValue(e){this.setValue(UO.valueProperty,e)}get min(){return this.getValue(UO.minProperty)}set min(e){this.setValue(UO.minProperty,e)}get max(){return this.getValue(UO.maxProperty)}set max(e){this.setValue(UO.maxProperty,e)}get placeholder(){return this.getValue(UO.placeholderProperty)}set placeholder(e){this.setValue(UO.placeholderProperty,e)}getJsonTypeName(){return"Input.Number"}isSet(){return void 0!==this.value&&!isNaN(this.value)}isValid(){return void 0===this.value?!this.isRequired:this.isValidValue(this.value)}isValidValue(e){let t=!0;return void 0!==this.min&&(t=t&&e>=this.min),void 0!==this.max&&(t=t&&e<=this.max),t}get value(){return this._value}set value(e){this._value===e||void 0!==e&&!this.isValidValue(e)||this.valueChanged(e)}}UO.valueProperty=new class extends bP{parse(e,t,r){const n=t[this.name];return"string"==typeof n?Number(n):iP(n,this.defaultValue)}}(dP.v1_0,"value"),UO.placeholderProperty=new mP(dP.v1_0,"placeholder").setContentType("text"),UO.minProperty=new bP(dP.v1_0,"min"),UO.maxProperty=new bP(dP.v1_0,"max");class WO extends jO{get defaultValue(){return this.getValue(WO.valueProperty)}set defaultValue(e){this.setValue(WO.valueProperty,e)}get maxLength(){return this.getValue(WO.maxLengthProperty)}set maxLength(e){this.setValue(WO.maxLengthProperty,e)}get isMultiline(){return this.getValue(WO.isMultilineProperty)}set isMultiline(e){this.setValue(WO.isMultilineProperty,e)}get placeholder(){return this.getValue(WO.placeholderProperty)}set placeholder(e){this.setValue(WO.placeholderProperty,e)}get style(){return this.getValue(WO.styleProperty)}set style(e){this.setValue(WO.styleProperty,e)}get inlineAction(){return this.getValue(WO.inlineActionProperty)}set inlineAction(e){this.setValue(WO.inlineActionProperty,e)}get regex(){return this.getValue(WO.regexProperty)}set regex(e){this.setValue(WO.regexProperty,e)}renderExtraContent(){return this.inlineAction?g.createElement(CN,{cardObject:this.inlineAction,args:{isInline:!0}}):null}executeValueChangedAction(){var e;null===(e=this.valueChangedAction)||void 0===e||e.execute(WO.valueChangedActionExecutionDelay)}getJsonTypeName(){return"Input.Text"}getAllActions(){const e=super.getAllActions();return this.inlineAction&&e.push(this.inlineAction),e}getActionById(e){let t=super.getActionById(e);return!t&&this.inlineAction&&(t=this.inlineAction.getActionById(e)),t}isDirty(){const e=""!==this.value?this.value:void 0,t=""!==this._oldValue?this._oldValue:void 0;return this.isSet()&&e!==t}isSet(){return!!this.value}isValid(){return this.value?this.isValidValue(this.value):!this.isRequired}isValidValue(e){return!this.regex||new RegExp(this.regex,"g").test(e)}get value(){return this._value}set value(e){this._value===e||void 0!==e&&!this.isValidValue(e)||this.valueChanged(e)}}WO.valueChangedActionExecutionDelay=1e3,WO.valueProperty=new mP(dP.v1_0,"value").setContentType("text"),WO.maxLengthProperty=new bP(dP.v1_0,"maxLength"),WO.isMultilineProperty=new yP(dP.v1_0,"isMultiline",!1),WO.placeholderProperty=new mP(dP.v1_0,"placeholder").setContentType("text"),WO.styleProperty=new kP(dP.v1_0,"style",AI,AI.Text,[{value:AI.Text},{value:AI.Tel},{value:AI.Url},{value:AI.Email},{value:AI.Password,targetVersion:dP.v1_5}]),WO.inlineActionProperty=new DP(dP.v1_0,"inlineAction",["Action.ShowCard"]),WO.regexProperty=new mP(dP.v1_3,"regex");class $O extends _P{static validateTimeString(e){return void 0===e||$O.validationRegEx.test(e)}static timeStringToDate(e){const t=$O.validationRegEx.exec(e);if(null!==t){const e=parseInt(t[1],10),r=parseInt(t[2],10);return new Date($O.referenceDate.getFullYear(),$O.referenceDate.getMonth(),$O.referenceDate.getDay(),e,r,0,0)}}static dateToTimeString(e){const t=e.getHours(),r=e.getMinutes();return`${t<10?"0":""}${t}:${r<10?"0":""}${r}`}constructor(e,t){super(e,t,(e,t,r,n)=>{const o=r[t.name];if("string"==typeof o&&o&&$O.validateTimeString(o))return o},(e,t,r,n,o)=>{o.serializeValue(r,t.name,n)}),this.targetVersion=e,this.name=t}preProcessValue(e){return $O.validateTimeString(e)?e:void 0}getDescriptor(e){return{valueTypes:[{type:"string"}]}}}$O.referenceDate=new Date(1973,9,4,0,0,0,0),$O.validationRegEx=/^(0[0-9]|1[0-9]|2[0-3]):([0-5][0-9])$/;class GO extends jO{get defaultValue(){return this.getValue(GO.valueProperty)}set defaultValue(e){this.setValue(GO.valueProperty,e)}get min(){return this.getValue(GO.minProperty)}set min(e){this.setValue(GO.minProperty,e)}get max(){return this.getValue(GO.maxProperty)}set max(e){this.setValue(GO.maxProperty,e)}get placeholder(){return this.getValue(GO.placeholderProperty)}set placeholder(e){this.setValue(GO.placeholderProperty,e)}valueChanged(e){super.valueChanged(e?$O.dateToTimeString(e):void 0)}getJsonTypeName(){return"Input.Time"}isSet(){return!!this.value}isValid(){return void 0===this.valueAsDate?!this.isRequired:this.isValidValue(this.valueAsDate)}isValidValue(e){const t="string"==typeof e?$O.timeStringToDate(e):e;if(void 0===t)return!1;let r=!0;return this.minAsDate&&(r=r&&t>=this.minAsDate),this.maxAsDate&&(r=r&&t<=this.maxAsDate),r}get value(){return this._value}set value(e){this._value===e||void 0!==e&&!this.isValidValue(e)||super.valueChanged(e)}get valueAsDate(){return this.value?$O.timeStringToDate(this.value):void 0}get minAsDate(){return this.min?$O.timeStringToDate(this.min):void 0}get maxAsDate(){return this.max?$O.timeStringToDate(this.max):void 0}}GO.valueProperty=new $O(dP.v1_0,"value"),GO.placeholderProperty=new mP(dP.v1_0,"placeholder").setContentType("text"),GO.minProperty=new $O(dP.v1_0,"min"),GO.maxProperty=new $O(dP.v1_0,"max");const YO="true",KO="false";class XO extends jO{get defaultValue(){return this.getValue(XO.valueProperty)}set defaultValue(e){this.setValue(XO.valueProperty,e)}get title(){return this.getValue(XO.titleProperty)}set title(e){this.setValue(XO.titleProperty,e)}get valueOn(){return this.getValue(XO.valueOnProperty)}set valueOn(e){this.setValue(XO.valueOnProperty,e)}get valueOff(){return this.getValue(XO.valueOffProperty)}set valueOff(e){this.setValue(XO.valueOffProperty,e)}get wrap(){return this.getValue(XO.wrapProperty)}set wrap(e){this.setValue(XO.wrapProperty,e)}get isNullable(){return!1}getJsonTypeName(){return"Input.Toggle"}isSet(){return this.isRequired?this.value===this.valueOn:!!this.value}isValidValue(e){return e===this.valueOn||e===this.valueOff}get value(){return this._value}set value(e){this._value===e||void 0!==e&&!this.isValidValue(e)||this.valueChanged(e)}}XO.valueProperty=new mP(dP.v1_0,"value",void 0,KO),XO.titleProperty=new mP(dP.v1_0,"title").setContentType("text").setIsHero(),XO.valueOnProperty=new mP(dP.v1_0,"valueOn",void 0,YO,e=>YO),XO.valueOffProperty=new mP(dP.v1_0,"valueOff",void 0,KO,e=>KO),XO.wrapProperty=new yP(dP.v1_2,"wrap",!0);let JO=!1;function QO(){JO||(jN.defaultActions.register(dB.JsonTypeName,e=>new dB),jN.defaultActions.register(hB.JsonTypeName,e=>new hB),jN.defaultActions.register(fB.JsonTypeName,e=>new fB,dP.v1_4),jN.defaultActions.register(mB.JsonTypeName,e=>new mB,dP.v1_2),jN.defaultElements.register("Container",e=>new OB),jN.defaultElements.register("ActionSet",e=>new yB,dP.v1_2),jN.defaultElements.register("ColumnSet",e=>new RB),jN.defaultElements.register("Media",e=>new xO,dP.v1_1),jN.defaultElements.register("RichTextBlock",e=>new kO,dP.v1_2),jN.defaultElements.register("Table",e=>new zO,dP.v1_5),jN.defaultElements.register("TextBlock",e=>new jB),jN.defaultElements.register("TextRun",e=>new SO,dP.v1_2),jN.defaultElements.register("IconRun",e=>new $B,dP.v1_5),jN.defaultElements.register("ImageRun",e=>new rO,dP.v1_5),jN.defaultElements.register("FactSet",e=>new FB),jN.defaultElements.register("ImageSet",e=>new nO),jN.defaultElements.register("Image",e=>new KB),jN.defaultActions.register(BO.JsonTypeName,e=>new BO),jN.defaultElements.registerAttachableProperty(kB),JO=!0)}class ZO{}ZO.basicInputAppearance="outline",ZO.comboboxAppearance="outline",ZO.textareaAppearance="outline",ZO.numberInputAppearance="outline",ZO.timeInputAppearance="outline",ZO.shouldUseInlinePopup=!1,ZO.destructiveActionButton=Object.assign(Object.assign({backgroundColor:Lc,color:mc},an.borderColor(Lc)),{"&:hover":Object.assign({backgroundColor:Fc,color:mc},an.borderColor(Fc)),"&:focus:active":Object.assign({backgroundColor:Vc,color:mc},an.borderColor(Vc))});const eD={width:"100%",minWidth:"0"},tD={overflow:"hidden"},rD=pn({textInput:Object.assign(Object.assign({},eD),ZO.textInput),multilineTextInput:Object.assign(Object.assign(Object.assign({},eD),{minHeight:"90px"}),ZO.multilineTextInput),multilineTextInputTextArea:Object.assign(Object.assign({},eD),{maxHeight:"unset"}),passwordInputHideRevealButton:{"::-ms-reveal":{display:"none"}},dateInput:Object.assign(Object.assign(Object.assign({},eD),ZO.dateInput),{"& + .fui-DatePicker__popupSurface":{zIndex:1,"& td.fui-CalendarDayGrid__dayCell":{paddingLeft:"0",paddingRight:"0"},"& th.fui-CalendarDayGrid__dayCell":{paddingLeft:"0",paddingRight:"0"}}}),numberInput:Object.assign(Object.assign({},eD),ZO.numberInput),timeInput:Object.assign(Object.assign({},eD),ZO.timeInput),toggleInput:Object.assign(Object.assign({},eD),ZO.toggleInput),toggleInputLabelNoWrap:Object.assign(Object.assign({},tD),{whiteSpace:"nowrap",textOverflow:"ellipsis"}),toggleInputLabelWrap:Object.assign({},tD),compactChoiceSetInput:Object.assign(Object.assign({},eD),ZO.compactChoiceSetInput),actionButton:Object.assign(Object.assign({minWidth:0,height:"100%"},ZO.actionButton),{"@media (forced-colors: active)":{"&:focus":{outline:"2px solid",outlineOffset:"-2px"}}}),destructiveActionButton:Object.assign({},ZO.destructiveActionButton),splitActionButtonDestructive:{borderRightColor:bc,"&:hover":{borderRightColor:bc},"&:focus:active":{borderRightColor:bc}},splitMenuButton:{alignItems:"center"},inlineActionButton:Object.assign({minWidth:0,height:"100%",flexShrink:0,flexGrow:0,flexBasis:"auto"},ZO.actionButton)});class nD extends zN{constructor(){super(...arguments),this._domElement=null}render(e,t){let r;switch(this.action.style){case jA.Positive:r=jA.Positive;break;case jA.Destructive:r=jA.Destructive;break;default:r=this.action.isExpanded||this.action.isInSubCard||t.forcePrimary?jA.Positive:jA.Default}return g.createElement(oD,Object.assign({buttonProps:e},t,{style:r,isInline:t.isInline,onRef:e=>{var t;const r=this._domElement;this._domElement=e,this.onDomElementChanged&&this.onDomElementChanged(null!=r?r:void 0,null!==(t=this._domElement)&&void 0!==t?t:void 0)},menuItems:this.menuItems,isExpanded:this.action.isExpandable?this.action.isExpanded:void 0,onPopupMenuOpenedOrClosed:e=>{const t=this.action.parent;t&&(e?t.popoverOpened():t.popoverClosed())}}))}get domElement(){return this._domElement}}const oD=g.forwardRef((e,t)=>{const r=rD(),n=e.isInline?r.inlineActionButton:r.actionButton,o=e.style!==jA.Destructive||e.buttonProps.disabled?n:Qe(n,r.destructiveActionButton),i=e.style===jA.Positive?"primary":void 0;if(!e.menuItems||0===e.menuItems.length)return g.createElement("div",{ref:t},g.createElement(Dp,Object.assign({},e.buttonProps,{ref:e.onRef,className:o,appearance:i,onClick:e.onClick,"aria-expanded":e.isExpanded}),e.renderedContent));return g.createElement(Gg,Object.assign({},e.buttonProps.isSplitButton?{}:{onOpenChange:(t,r)=>{e.onPopupMenuOpenedOrClosed(r.open)}}),g.createElement(gv,{disableButtonEnhancement:!0},g.createElement("div",{ref:t},e.buttonProps.isSplitButton?(()=>{const t=Qe(o,e.style===jA.Destructive?r.splitActionButtonDestructive:void 0),n=Object.assign(Object.assign({},e.buttonProps),{className:t,onClick:e.onClick,ariaExpanded:e.isExpanded}),a=Qe(o,r.splitMenuButton),s=Object.assign(Object.assign({},e.buttonProps),{className:a});return g.createElement(Gp,Object.assign({},e.buttonProps,{ref:e.onRef,className:o,appearance:i,primaryActionButton:n,menuButton:s}),e.renderedContent)})():g.createElement(Vp,Object.assign({},e.buttonProps,{ref:e.onRef,className:o,appearance:i,menuIcon:e.renderedContent})))),g.createElement(fv,null,g.createElement(lv,null,null===(a=e.menuItems)||void 0===a?void 0:a.map(e=>{var t;return g.createElement(nv,{key:e.key,disabled:e.disabled,title:e.tooltip,onClick:()=>{e.onClick&&e.onClick()}},null!==(t=e.renderedContent)&&void 0!==t?t:e.text)}))));var a});var iD,aD;oD.displayName="ActionButtonComponent",(aD=iD||(iD={}))[aD.Above=0]="Above",aD[aD.Below=1]="Below",aD[aD.Before=2]="Before",aD[aD.After=3]="After",MA(iD,"PopoverPosition");const sD={[iD.Above]:"above",[iD.Below]:"below",[iD.Before]:"before",[iD.After]:"after"},lD=e=>{const[t,r]=g.useState(!1);g.useEffect(()=>{e.ownerEvents.onClosePopover=()=>{r(!1)}},[e.ownerEvents]);return g.createElement(mp,{withArrow:e.displayArrow,trapFocus:!0,positioning:sD[e.position],onOpenChange:(e,t)=>{r(t.open)},size:"medium",open:t},g.createElement(gp,{disableButtonEnhancement:!0},e.triggerElement),g.createElement(hp,{tabIndex:-1,style:{maxWidth:e.maxWidth}},g.createElement(CN,{cardObject:e.content})))};class cD extends DN{populateSchema(e){super.populateSchema(e),e.remove(DN.menuActionsProperty)}get content(){return this.getValue(cD.contentProperty)}set content(e){this.setValue(cD.contentProperty,e)}get displayArrow(){return this.getValue(cD.displayArrowProperty)}set displayArrow(e){this.setValue(cD.displayArrowProperty,e)}get position(){return this.getValue(cD.positionProperty)}set position(e){this.setValue(cD.positionProperty,e)}get maxPopoverWidth(){return this.getValue(cD.maxPopoverWidthProperty)}set maxPopoverWidth(e){this.setValue(cD.maxPopoverWidthProperty,e)}processApplicableProperties(){var e;super.processApplicableProperties(),null===(e=this.content)||void 0===e||e.processApplicableProperties()}getJsonTypeName(){return cD.JsonTypeName}getAllInputs(e=!0){return[...super.getAllInputs(),...this.content?this.content.getAllInputs():[]]}getAllActions(){return[...super.getAllActions(),...this.content?this.content.getAllActions():[]]}internalValidateProperties(e){var t;super.internalValidateProperties(e),null===(t=this.content)||void 0===t||t.internalValidateProperties(e)}hasResponsiveElements(){return!0}closeParentPopover(){alert("closeParentPopover")}wrapElement(e){var t,r;if(this.content){this.content.separator=!1,this.content.spacing=aI.None;const n=this.maxPopoverWidth&&this.maxPopoverWidth>0?this.maxPopoverWidth:null===(r=null===(t=this.getRootObject())||void 0===t?void 0:t.getSize())||void 0===r?void 0:r.width,o={};return this.content.onClosePopover=()=>{o.onClosePopover&&o.onClosePopover()},g.createElement(lD,{triggerElement:e,content:this.content,maxWidth:n,displayArrow:this.displayArrow,position:this.position,ownerEvents:o})}return e}get applicationMode(){return"wrap"}get isSupportedInPopover(){return!1}}var uD,dD,fD,hD,pD,mD,gD,vD,yD,bD;cD.contentProperty=new class extends pP{parse(e,t,r){let n=e;for(;n&&!(n instanceof PN);)n=n.parent;if(n)return r.parseElement(n,t[this.name],this.forbiddenElementTypes,!0,{isPopoverContent:this.isPopoverContent})}toJSON(e,t,r,n){n.serializeValue(t,this.name,r?r.toJSON(n):void 0,void 0,!0)}getDescriptor(e){return{valueTypes:[{type:"object",validValues:e.getElementDescriptors(this.forbiddenElementTypes).sort((e,t)=>e.name.localeCompare(t.name))}]}}setIsPopoverContent(e){return this.isPopoverContent=e,this}constructor(e,t,r=[]){super(e,t,void 0),this.targetVersion=e,this.name=t,this.forbiddenElementTypes=r,this.isPopoverContent=!1}}(dP.v1_5,"content").setIsPopoverContent(!0),cD.displayArrowProperty=new yP(dP.v1_5,"displayArrow",!0),cD.positionProperty=new kP(dP.v1_5,"position",iD,iD.Above),cD.maxPopoverWidthProperty=new wP(dP.v1_5,"maxPopoverWidth"),cD.JsonTypeName="Action.Popover",(dD=uD||(uD={}))[dD.Filled=0]="Filled",dD[dD.Tint=1]="Tint",MA(uD,"BadgeAppearance"),(hD=fD||(fD={}))[hD.Before=0]="Before",hD[hD.After=1]="After",MA(fD,"BadgeIconPosition"),(mD=pD||(pD={}))[mD.Square=0]="Square",mD[mD.Rounded=1]="Rounded",mD[mD.Circular=2]="Circular",MA(pD,"BadgeShape"),(vD=gD||(gD={}))[vD.Medium=0]="Medium",vD[vD.Large=1]="Large",vD[vD.ExtraLarge=2]="ExtraLarge",MA(gD,"BadgeSize"),(bD=yD||(yD={}))[bD.Default=0]="Default",bD[bD.Subtle=1]="Subtle",bD[bD.Informative=2]="Informative",bD[bD.Accent=3]="Accent",bD[bD.Good=4]="Good",bD[bD.Attention=5]="Attention",bD[bD.Warning=6]="Warning",MA(yD,"BadgeStyle");const wD={[gD.Medium]:{fontSize:10,iconSize:12,height:20,columnGap:2},[gD.Large]:{fontSize:12,iconSize:16,height:24,columnGap:2},[gD.ExtraLarge]:{fontSize:12,iconSize:20,height:28,columnGap:4}},xD={[gD.Medium]:{textOnly:6,iconAndText:{left:4,right:6}},[gD.Large]:{textOnly:6,iconAndText:{left:4,right:6}},[gD.ExtraLarge]:{textOnly:8,iconAndText:{left:6,right:6}}},SD={[yD.Default]:{[uD.Filled]:{backgroundColor:fc,textColor:bc},[uD.Tint]:{backgroundColor:kc,textColor:pc,strokeColor:Tc}},[yD.Subtle]:{[uD.Filled]:{backgroundColor:xc,textColor:hc,strokeColor:Ac},[uD.Tint]:{backgroundColor:wc,textColor:hc,strokeColor:_c}},[yD.Informative]:{[uD.Filled]:{backgroundColor:bc,textColor:fc,strokeColor:Ac},[uD.Tint]:{backgroundColor:bc,textColor:hc,strokeColor:_c}},[yD.Accent]:{[uD.Filled]:{backgroundColor:Ec,textColor:mc},[uD.Tint]:{backgroundColor:{dark:"#00061d",light:"#f2f4fc",highContrast:"#000000"},textColor:vc,strokeColor:Cc}},[yD.Good]:{[uD.Filled]:{backgroundColor:Rc,textColor:mc},[uD.Tint]:{backgroundColor:Pc,textColor:Mc,strokeColor:zc}},[yD.Attention]:{[uD.Filled]:{backgroundColor:Ic,textColor:mc},[uD.Tint]:{backgroundColor:jc,textColor:qc,strokeColor:Hc}},[yD.Warning]:{[uD.Filled]:{backgroundColor:Bc,textColor:yc},[uD.Tint]:{backgroundColor:Nc,textColor:Dc,strokeColor:Oc}}};class kD extends PN{get text(){return this.getValue(kD.textProperty)}set text(e){this.setValue(kD.textProperty,e)}get icon(){return this.getValue(kD.iconProperty)}set icon(e){this.setValue(kD.iconProperty,e)}get iconPosition(){return this.getValue(kD.iconPositionProperty)}set iconPosition(e){this.setValue(kD.iconPositionProperty,e)}get appearance(){return this.getValue(kD.appearanceProperty)}set appearance(e){this.setValue(kD.appearanceProperty,e)}get size(){return this.getValue(kD.sizeProperty)}set size(e){this.setValue(kD.sizeProperty,e)}get shape(){return this.getValue(kD.shapeProperty)}set shape(e){this.setValue(kD.shapeProperty,e)}get style(){return this.getValue(kD.styleProperty)}set style(e){this.setValue(kD.styleProperty,e)}get tooltip(){return this.getValue(kD.tooltipProperty)}set tooltip(e){this.setValue(kD.tooltipProperty,e)}getJsonTypeName(){return kD.jsonTypeName}internalRender(e){var t;const r=this.icon?function(e){const t=e.match(MP);if(t)return{name:t[1],style:void 0!==t[2]&&"filled"===t[2].toLowerCase()?XA.Filled:XA.Regular}}(this.icon):void 0,n=SD[this.style][this.appearance],o=this.getBackgroundColor(n);let i;switch(this.shape){case pD.Circular:i="10000px";break;case pD.Rounded:i="4px";break;default:i=void 0}const a=wD[this.size],s=this.getBadgePadding(),l=this.text?g.createElement("div",{key:"text",style:{flex:"1 1 auto",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontFamily:null===(t=this.hostConfig.fontTypes)||void 0===t?void 0:t.default.fontFamily,fontSize:a.fontSize,fontWeight:600}},this.text):null,c=r?g.createElement(FP,{key:"icon",name:r.name,iconStyle:r.style,iconSize:`${a.iconSize}px`,showPlaceholder:!1,allowFallback:!1}):null,u=this.iconPosition===fD.Before?[c,l]:[l,c];let d;switch(this.horizontalAlignment){case uI.Center:d="center";break;case uI.Right:d="flex-end";break;default:d="flex-start"}const f=g.createElement("div",{style:Object.assign(Object.assign({boxSizing:"border-box",alignSelf:d,display:"flex",alignItems:"center",justifyContent:"center",columnGap:`${a.columnGap}px`,color:n.textColor,backgroundColor:o,paddingLeft:`${s.left}px`,paddingRight:`${s.right}px`,borderRadius:i,height:`${a.height}px`,minWidth:`${a.height}px`},n.strokeColor?{border:`1px solid ${n.strokeColor}`}:{}),{cursor:"default"})},u);return this.tooltip?g.createElement(wp,{content:this.tooltip,relationship:"description"},f):f}getBackgroundColor(e){const t=e.backgroundColor;if("string"==typeof t)return t;switch(this.theme){case MI.Dark:return t.dark;case MI.Light:return t.light;default:return t.highContrast}}getBadgePadding(){const e=this.icon&&!this.text,t=this.text&&!this.icon,r=!this.text&&!this.icon,n=xD[this.size];return e||r?{left:0,right:0}:t?{left:n.textOnly,right:n.textOnly}:this.iconPosition===fD.Before?n.iconAndText:{left:n.iconAndText.right,right:n.iconAndText.left}}}kD.jsonTypeName="Badge",kD.textProperty=new mP(dP.v1_5,"text").setContentType("text"),kD.iconProperty=new mP(dP.v1_5,"icon",MP),kD.iconPositionProperty=new kP(dP.v1_5,"iconPosition",fD,fD.Before),kD.appearanceProperty=new kP(dP.v1_5,"appearance",uD,uD.Filled),kD.sizeProperty=new kP(dP.v1_5,"size",gD,gD.Medium),kD.shapeProperty=new kP(dP.v1_5,"shape",pD,pD.Circular),kD.styleProperty=new kP(dP.v1_5,"style",yD,yD.Default),kD.tooltipProperty=new mP(dP.v1_5,"tooltip").setContentType("text");class ED{}ED.carouselPageDotButtonTooltip={key:"carouselPageDotButtonTooltip",defaultValue:"Go to page {{pageIndex}}"},ED.carouselPageNOfTotal={key:"carouselAriaLive",defaultValue:"Page {{pageIndex}} of {{pageCount}}"},ED.carouselAriaRoleDescription={key:"carouselAriaRoleDescription",defaultValue:"Slide"},ED.carouselNextPageButtonAriaLabel={key:"carouselNextPageButtonAriaLabel",defaultValue:"Next page"},ED.carouselPreviousPageButtonAriaLabel={key:"carouselPreviousPageButtonAriaLabel",defaultValue:"Previous page"};const TD=250,_D=160,CD=24,AD=6,ID=16,PD=0,ND=Object.assign(Object.assign({},an.padding(0)),{minWidth:0,flex:"0 0 auto","&:focus":{outline:0}}),BD={height:"8px",borderRadius:"4px"},OD={animationDuration:`.${TD}s`},DD=pn({slideInFromLeft:Object.assign(Object.assign({},OD),{animationName:{from:{transform:"translateX(-100%)"},to:{transform:"translateX(0)"}}}),slideOutToRight:Object.assign(Object.assign({},OD),{animationName:{from:{transform:"translateX(0)"},to:{transform:"translateX(100%)"}}}),slideInFromRight:Object.assign(Object.assign({},OD),{animationName:{from:{transform:"translateX(100%)"},to:{transform:"translateX(0)"}}}),slideOutToLeft:Object.assign(Object.assign({},OD),{animationName:{from:{transform:"translateX(0)"},to:{transform:"translateX(-100%)"}}}),fadeIn:Object.assign(Object.assign({},OD),{animationName:{from:{opacity:0},to:{opacity:1}}}),fadeOut:Object.assign(Object.assign({},OD),{animationName:{from:{opacity:1},to:{opacity:0}}}),navigationButton:Object.assign(Object.assign({},ND),{width:`${CD}px`,height:`${CD}px`}),pageDotsHost:{display:"flex",justifyContent:"center",flex:"0 1 auto",overflow:"hidden",columnGap:`${PD}px`},navigationBar:{display:"flex",justifyContent:"center",columnGap:`${AD}px`},pageDot:Object.assign(Object.assign({},BD),{backgroundColor:fc,opacity:.65,"&:hover":{opacity:.75},"&:active":{opacity:1},width:"8px"}),selectedPageDot:Object.assign(Object.assign({},BD),{backgroundColor:fc,width:"16px"}),pageNumberLabelContainer:{overflow:"hidden",display:"flex",flexDirection:"column",justifyContent:"center"}});var RD,MD;(MD=RD||(RD={}))[MD.Slide=0]="Slide",MD[MD.CrossFade=1]="CrossFade",MD[MD.None=2]="None",MA(RD,"CarouselPageAnimation");const zD=e=>{const t=DD();let r=fs({axis:"horizontal",circular:!0});e.displayPageDots||(r={});const n=[];if(e.displayPageDots){const r=t=>{e.goToPage(t,e.pageInfo.currentIndex,t<e.pageInfo.currentIndex?"rightToLeft":"leftToRight")};for(let o=0;o<e.pageCount;o++)n.push(g.createElement(Dp,{key:`dot-${o}`,className:t.navigationButton,appearance:"transparent",title:e.localizeString(ED.carouselPageDotButtonTooltip,{pageIndex:o+1}),onClick:()=>r(o)},g.createElement("div",{tabIndex:-1,"aria-hidden":!0,className:o===e.pageInfo.currentIndex?t.selectedPageDot:t.pageDot})))}else{const r=e.localizeString(ED.carouselPageNOfTotal,{pageIndex:e.pageInfo.currentIndex+1,pageCount:e.pageCount}),o=new jB;o.text=r,o.useMarkdown=!1,o.spacing=aI.None,o.setParent(e.parent),n.push(g.createElement("div",{key:"page-number",className:t.pageNumberLabelContainer},g.createElement(CN,{cardObject:o})))}return g.createElement("div",Object.assign({className:t.pageDotsHost},r),n)},jD=e=>{const[t,r]=g.useState({currentIndex:0}),[n,o]=g.useState(!1),[i,a]=g.useState(!0),s=g.useRef(null),l=g.useRef(null),c=DD();g.useEffect(()=>{const e=()=>{o(!1)};if(s.current){const t=s.current;return s.current.addEventListener("animationend",e),()=>{t.removeEventListener("animationend",e)}}},[t]),g.useEffect(()=>{if(l.current&&e.resizeManager)return e.resizeManager.observe(l.current,(t,r)=>{const n=(o=e.children.length,3*CD+4*AD+(o-1)*(ID+PD));var o;a(n<=r.width&&n<=_D)}),()=>{e.resizeManager.unobserve(l.current)}});const u=(e,t,n)=>{e!==t&&(o(n),r({currentIndex:e,previousIndex:t}))},d=e.localizeString(ED.carouselNextPageButtonAriaLabel),f=e.localizeString(ED.carouselPreviousPageButtonAriaLabel),h=e.localizeString(ED.carouselPageNOfTotal,{pageIndex:t.currentIndex+1,pageCount:e.children.length});return g.createElement(g.Fragment,null,g.createElement("div",{"aria-live":"polite",style:{position:"absolute",left:"-99999px",width:0,height:0}},h),g.createElement("section",{ref:e.pageAnimation!==RD.None?s:void 0,style:{display:"grid"},tabIndex:0,"aria-roledescription":e.localizeString(ED.carouselAriaRoleDescription)},(()=>{let r,o;return!1!==n&&(e.pageAnimation===RD.CrossFade?(r=c.fadeOut,o=c.fadeIn):e.pageAnimation===RD.Slide&&("leftToRight"===n?(r=c.slideOutToLeft,o=c.slideInFromRight):"rightToLeft"===n&&(r=c.slideOutToRight,o=c.slideInFromLeft))),e.children.map((i,a)=>{const s=e.pageAnimation===RD.None||!1===n?a===t.currentIndex:a===t.currentIndex||a===t.previousIndex;let l;return a===t.previousIndex?l=r:a===t.currentIndex&&(l=o),g.createElement("div",{className:l,key:a,style:{gridColumn:1,gridRow:1,visibility:s?"visible":"hidden"},"aria-hidden":s},i)})})()),e.children.length>1&&g.createElement(g.Fragment,null,AN(e.parent.hostConfig,{spacing:e.parent.hostConfig.getEffectiveSpacing(aI.Default)},wI.Horizontal,{margin:{}}),g.createElement("div",{className:c.navigationBar,ref:l},g.createElement(Dp,{className:c.navigationButton,appearance:"subtle",icon:g.createElement(md,null),title:f,onClick:()=>{let r=t.currentIndex-1;r<0&&(r=e.children.length-1),u(r,t.currentIndex,"rightToLeft")},"aria-label":f}),g.createElement(zD,{parent:e.parent,pageCount:e.children.length,pageInfo:t,goToPage:u,displayPageDots:i,localizeString:e.localizeString}),g.createElement(Dp,{className:c.navigationButton,appearance:"subtle",icon:g.createElement(gd,null),title:d,onClick:()=>{let r=t.currentIndex+1;r>=e.children.length&&(r=0),u(r,t.currentIndex,"leftToRight")},"aria-label":d}))))};class LD extends OB{populateSchema(e){super.populateSchema(e),e.remove(LD.bleedProperty),e.remove(LD.horizontalAlignmentProperty),e.remove(LD.separatorProperty),e.remove(LD.spacingProperty)}shouldSerialize(e){return!0}adjustSize(e){e.height="100%"}get renderIfEmpty(){return!0}getJsonTypeName(){return"CarouselPage"}getEffectivePadding(){const e=super.getEffectivePadding();let t=!1,r=!1;if(this.parent){const e=this.parent.getHasBackground()||this.parent.isBleeding();t=e&&this.parent.isAtTheVeryLeft(),r=e&&this.parent.isAtTheVeryRight()}return{top:e.top,right:r?aI.Padding:e.right,bottom:e.bottom,left:t?aI.Padding:e.left}}isResponsive(){return!0}get hasVisibleSeparator(){return!1}get isStandalone(){return!1}}class FD extends NB{constructor(){super(...arguments),this._pages=[]}get pageAnimation(){return this.getValue(FD.pageAnimationProperty)}set pageAnimation(e){this.setValue(FD.pageAnimationProperty,e)}createPageInstance(e,t){return t.parseCardObject(this,e,[],!this.isDesignMode(),e=>e&&"CarouselPage"!==e?void 0:new LD,(e,r)=>{t.logParseEvent(void 0,BI.ElementTypeNotAllowed,tP.errors.elementTypeNotAllowed(e))})}getPagesToRender(){return this._pages.filter(e=>e.shouldRender())}getResizeManager(){const e=this.getRootElement();return e instanceof PO?e.resizeManager:void 0}populateSchema(e){super.populateSchema(e),e.remove(FD.layoutsProperty),e.remove(FD.horizontalAlignmentProperty),e.remove(FD.styleProperty),e.remove(FD.showBorderProperty),e.remove(FD.roundedCornersProperty),e.remove(FD.selectActionProperty)}getRawItems(){return this._pages}renderItems(){const e=this.getPagesToRender().map((e,t)=>g.createElement(g.Fragment,{key:e.getKey(t)},g.createElement(CN,{cardObject:e})));return[g.createElement(jD,{key:"carousel",parent:this,pageAnimation:this.pageAnimation,resizeManager:this.getResizeManager(),localizeString:this.localizeString},e)]}applyLayout(e){e.style.display="flex",e.style.flexDirection="column",e.style.overflowX="hidden"}internalParse(e,t){super.internalParse(e,t),this._pages=[];const r=e[this.getItemsCollectionPropertyName()];if(Array.isArray(r))for(const n of r){const e=this.createPageInstance(n,t);e&&this._pages.push(e)}else t.logParseEvent(this,BI.InvalidPropertyValue,tP.errors.invalidPropertyValue(r,"pages"))}internalToJSON(e,t){super.internalToJSON(e,t),t.serializeArray(e,this.getItemsCollectionPropertyName(),this._pages)}getAdditionalPropertyDescriptors(e){return[...super.getAdditionalPropertyDescriptors(e),{name:this.getItemsCollectionPropertyName(),valueTypes:[{type:"object",validValues:[new OP(new LD)]}],propertyType:"array"}]}isBleeding(){return this.getBleed()}getItemsCollectionPropertyName(){return"pages"}getEffectivePadding(){const e=super.getEffectivePadding(),t=this.getPagesToRender();return{top:e.top,right:aI.None,bottom:this.isAtTheVeryBottom()&&t.length>1?aI.Padding:e.bottom,left:aI.None}}getHasBackground(e=!1){return super.getHasBackground(e)}isFirstElement(e){return e instanceof LD&&this._pages.includes(e)&&e.shouldRender()}getItemCount(){return this._pages.length}getFirstVisibleRenderedItem(){}getLastVisibleRenderedItem(){}getPageAt(e){return this._pages[e]}getItemAt(e){return this.getPageAt(e)}getJsonTypeName(){return"Carousel"}addPage(e){this.internalInsertItemAt(e,this._pages.length,!0)}removeItem(e){if(e instanceof LD){const t=this._pages.indexOf(e);if(t>=0)return this._pages.splice(t,1),e.setParent(void 0),this.updateLayout(),!0}return!1}indexOf(e){return e instanceof LD?this._pages.indexOf(e):-1}getActionById(e){let t;for(const r of this._pages)if(t=r.getActionById(e),t)break;return t}get bleed(){return this.getBleed()}set bleed(e){this.setBleed(e)}get padding(){return this.getPadding()}set padding(e){this.setPadding(e)}}FD.pageAnimationProperty=new kP(dP.v1_5,"pageAnimation",RD,RD.Slide);class VD{constructor(e){this.sendDataQueryRequest=e}debouncedQuery(e,t,r,n=250){this._timer&&(clearTimeout(this._timer),this._timer=void 0),this._timer=setTimeout(()=>{this.sendDataQueryRequest({searchString:t,dataQuery:e,onDataQueryCompleted:r})},n)}cancelPendingQuery(){this._timer&&(clearTimeout(this._timer),this._timer=void 0)}}const qD=(e,t,r,n,o)=>oA(void 0,void 0,void 0,function*(){n(r({searchString:e,dataQuery:t,onDataQueryCompleted:e=>{o(e),n(!1)}}))}),HD=(e,t)=>{let r;return function(...n){r&&clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}},UD=e=>{const{title:t,value:r}=e,n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["title","value"]);return g.createElement(Bm,Object.assign({key:t+r,text:t,value:r},n),t)},WD=g.forwardRef((e,t)=>{const{staticChoices:r,choicesData:n,internalId:o,placeholder:i,ariaLabelledBy:a,isRequired:s,valueChanged:l,onDataQuery:c,value:u}=e,d=rD(),f=e=>e.map((e,t)=>e.title&&e.value?g.createElement(UD,{key:t,title:e.title,value:e.value}):null).filter(e=>null!==e),[h,p]=g.useState(0),[m,v]=g.useState(""),[y,b]=g.useState(!1),w=g.useCallback(e=>{b(e)},[b]),x=((e,t,r,n)=>{const[o,i]=g.useState(void 0),a=g.useCallback(e=>{i(e)},[i]),s=g.useCallback(e=>{t(e)},[t]),l=g.useMemo(()=>HD(qD,250),[]);return g.useEffect(()=>{e&&n&&r&&l(e,r,n,s,a)},[e,r,n,s,a,l]),o})(m,w,n,c);let S=[];x&&(null==x?void 0:x.query)===m&&(S=f((e=>{const t=[];return e&&Array.isArray(e)&&e.map(e=>{e.title&&e.value&&t.push(new LO(e.title,e.value))}),t})(x.data)));let k=null;y?k=g.createElement(tg,{label:e.strings.loadingResults}):(null==x?void 0:x.error)&&(k=g.createElement(tg,{label:e.strings.errorLoadingResults}));const E=g.useRef(void 0);g.useEffect(()=>{u!==E.current&&(u!==E.current&&(E.current=u),null!=u&&0!==u.length?v(u.join(",")):v(""))},[u]);const T={id:o,appearance:ZO.comboboxAppearance,className:d.compactChoiceSetInput,placeholder:i,multiselect:!1,selectedOptions:u,value:m,disabled:!e.isEnabled,onOptionSelect:(e,t)=>{l(t.selectedOptions)},onChange:e=>{const t=e.target.value.trim();v(t)},"aria-label":i,"aria-labelledby":a,"aria-required":s,onOpenChange(e,t){t.open&&p(e.currentTarget.clientWidth)},input:{style:{minWidth:0}},listbox:{style:{maxHeight:"200px",width:`${h}px`}}};return g.createElement(Ym,Object.assign({ref:t},T),(()=>{if(m){const e=r.filter(e=>e.title&&0===e.title.toLowerCase().indexOf(m.toLowerCase()));return f(e)}return[]})(),S,k)});WD.displayName="DynamicTypeahead";class $D{}$D.passwordInputHidePasswordAriaLabel={key:"passwordInputHidePasswordAriaLabel",defaultValue:"Hide password"},$D.passwordInputRevealPasswordAriaLabel={key:"passwordInputRevealPasswordAriaLabel",defaultValue:"Reveal password"},$D.dateInputDefaultPlaceholder={key:"dateInputDefaultPlaceholder",defaultValue:"Select a date..."},$D.timeInputDefaultPlaceholder={key:"timeInputDefaultPlaceholder",defaultValue:"Select a time..."},$D.noResults={key:"noResults",defaultValue:"No results"},$D.noResultsFound={key:"noResultsFound",defaultValue:"We couldn't find any matches."},$D.selectMultipleOptions={key:"selectMultipleOptions",defaultValue:"Select multiple options"},$D.selectAnOption={key:"selectAnOption",defaultValue:"Select an option"},$D.comboBoxClearButtonAriaLabel={key:"comboBoxClearButtonAriaLabel",defaultValue:"Clear"},$D.loadingResults={key:"loadingResults",defaultValue:"Loading..."},$D.errorLoadingResults={key:"errorLoadingResults",defaultValue:"Results couldn't be loaded"},$D.selectedValues={key:"selectedValues",defaultValue:"Selected values"},$D.selectedPeople={key:"selectedPeople",defaultValue:"Selected people"},$D.selectedPerson={key:"selectedPerson",defaultValue:"Selected person"},$D.selectPeople={key:"SelectPeople",defaultValue:"Select people"},$D.selectPerson={key:"SelectPerson",defaultValue:"Select a person"},$D.noMatchesFound={key:"noMatchesFound",defaultValue:"No matches found"},$D.sliderInputCurrentValue={key:"sliderInputCurrentValue",defaultValue:"Current value: {{value}}"},$D.checkboxGroupLabel={key:"checkboxGroupLabel",defaultValue:"Select at least one"},$D.january={key:"january",defaultValue:"January"},$D.february={key:"february",defaultValue:"February"},$D.march={key:"march",defaultValue:"March"},$D.april={key:"april",defaultValue:"April"},$D.may={key:"may",defaultValue:"May"},$D.june={key:"june",defaultValue:"June"},$D.july={key:"july",defaultValue:"July"},$D.august={key:"august",defaultValue:"August"},$D.september={key:"september",defaultValue:"September"},$D.october={key:"october",defaultValue:"October"},$D.november={key:"november",defaultValue:"November"},$D.december={key:"december",defaultValue:"December"},$D.januaryShort={key:"januaryShort",defaultValue:"Jan"},$D.februaryShort={key:"februaryShort",defaultValue:"Feb"},$D.marchShort={key:"marchShort",defaultValue:"Mar"},$D.aprilShort={key:"aprilShort",defaultValue:"Apr"},$D.mayShort={key:"mayShort",defaultValue:"May"},$D.juneShort={key:"juneShort",defaultValue:"Jun"},$D.julyShort={key:"julyShort",defaultValue:"Jul"},$D.augustShort={key:"augustShort",defaultValue:"Aug"},$D.septemberShort={key:"septemberShort",defaultValue:"Sep"},$D.octoberShort={key:"octoberShort",defaultValue:"Oct"},$D.novemberShort={key:"novemberShort",defaultValue:"Nov"},$D.decemberShort={key:"decemberShort",defaultValue:"Dec"},$D.sunday={key:"sunday",defaultValue:"Sunday"},$D.monday={key:"monday",defaultValue:"Monday"},$D.tuesday={key:"tuesday",defaultValue:"Tuesday"},$D.wednesday={key:"wednesday",defaultValue:"Wednesday"},$D.thursday={key:"thursday",defaultValue:"Thursday"},$D.friday={key:"friday",defaultValue:"Friday"},$D.saturday={key:"saturday",defaultValue:"Saturday"},$D.sundayShort={key:"sundayShort",defaultValue:"Sun"},$D.mondayShort={key:"mondayShort",defaultValue:"Mon"},$D.tuesdayShort={key:"tuesdayShort",defaultValue:"Tue"},$D.wednesdayShort={key:"wednesdayShort",defaultValue:"Wed"},$D.thursdayShort={key:"thursdayShort",defaultValue:"Thu"},$D.fridayShort={key:"fridayShort",defaultValue:"Fri"},$D.saturdayShort={key:"saturdayShort",defaultValue:"Sat"},$D.calendarWeekNumberFormatString={key:"calendarWeekNumberFormatString",defaultValue:"Week number {0}"},$D.calendarPreviousMonthAriaLabel={key:"calendarPreviousMonthAriaLabel",defaultValue:"Previous month"},$D.calendarNextMonthAriaLabel={key:"calendarNextMonthAriaLabel",defaultValue:"Next month"},$D.calendarGoToToday={key:"calendarGoToToday",defaultValue:"Go to today"};const GD=pn({optionContainer:{display:"flex",gap:"8px",alignItems:"center"}});function YD(e){return"string"==typeof e.title&&"string"==typeof e.value}const KD=g.forwardRef((e,t)=>{var r,n;const o=GD(),{search:i,cancelSearch:a}=e,s=rD(),[l,c]=g.useState(""),[u,d]=g.useState(void 0),[f,h]=g.useState(function(e){const t=new Map;return e.forEach(e=>{YD(e)&&t.set(e.value,e)}),t}(e.staticChoices));g.useEffect(()=>{if(!l)return a(),void d(void 0);d("loading"),i(l,e=>{if(e.error)d("error");else if(d(void 0),e.data&&Array.isArray(e.data)){const t=[];e.data.forEach(e=>{YD(e)&&t.push(new LO(e.title,e.value))}),h(e=>{const r=new Map(e);return t.forEach(e=>{YD(e)&&r.set(e.value,e)}),r})}})},[l,i,a]);const p=function({filter:e,noOptionsElement:t,renderOption:r=pw,query:n,options:o}){const i=g.useCallback(e=>{const t=n.trim();return""===t||e.toLowerCase().includes(t.toLowerCase())},[n]),a=null!=e?e:i,s=g.useMemo(()=>o.reduce((e,t,n)=>(a(t,n)&&e.push(r(t)),e),[]),[o,r,a]);return 0===s.length?[t.key?t:g.cloneElement(t,{key:"no-options"})]:s}({query:l,options:[...f.values()].map(e=>e.value),noOptionsElement:g.createElement(hw,null,e.localizeString($D.noMatchesFound)),renderOption:t=>{var r,n,i;const a=f.get(t),s=!!e.value&&e.value.includes(t);let l=null;return e.isMultiSelect&&(l=s?g.createElement(ud,{color:gc}):g.createElement(dd,null)),g.createElement(tw,{key:t,text:null!==(r=null==a?void 0:a.title)&&void 0!==r?r:t,value:null!==(n=null==a?void 0:a.value)&&void 0!==n?n:t},g.createElement("div",{className:o.optionContainer},l,null!==(i=null==a?void 0:a.title)&&void 0!==i?i:t))},filter:e=>e.toLowerCase().startsWith(l.toLowerCase())});return g.createElement(Ab,{appearance:ZO.comboboxAppearance,selectedOptions:e.value,disabled:!e.isEnabled,onOptionSelect:(t,r)=>{e.isMultiSelect?e.valueChanged(r.selectedOptions):e.valueChanged(r.selectedOptions.length>0?[r.selectedOptions[r.selectedOptions.length-1]]:[]),c("")}},g.createElement(Gb,{className:s.compactChoiceSetInput,id:e.internalId,style:{width:"100%"}},g.createElement(lw,{"aria-label":e.localizeString($D.selectedValues),"aria-labelledby":e.ariaLabelledBy},null===(r=e.value)||void 0===r?void 0:r.map((e,t)=>{var r;return g.createElement(Uy,{key:t,value:e},null===(r=f.get(e))||void 0===r?void 0:r.title)})),g.createElement(Db,{ref:t,placeholder:0===(null===(n=e.value)||void 0===n?void 0:n.length)?e.placeholder:void 0,value:l,onChange:e=>{const t=e.target.value.trim();c(t)},"aria-label":e.placeholder,"aria-labelledby":e.ariaLabelledBy,"aria-required":e.isRequired})),g.createElement(zb,{style:{maxHeight:"200px"}},p,"loading"===u&&g.createElement(hw,null,g.createElement("div",{className:o.optionContainer},g.createElement(cy,{size:"tiny"}),e.localizeString($D.loadingResults))),"error"===u&&g.createElement(hw,null,g.createElement("div",{className:o.optionContainer},g.createElement(yd,{color:Lc}),e.localizeString($D.errorLoadingResults)))))});KD.displayName="DynamicTypeaheadV2";const XD=g.forwardRef((e,t)=>{const r=rD(),n=new Set(e.choices.filter(e=>e.isSelected).map(e=>e.value)),o=e.localizeString($D.checkboxGroupLabel);return g.createElement("div",{id:e.internalId,ref:t,style:{display:"flex",flexDirection:"column",overflow:"hidden"},"aria-label":e.isRequired?o:""},e.choices.map((t,o)=>{const i=`${e.internalId}-${o}`;let a=t.title;if(qI.useMarkdownInRadioButtonAndCheckbox&&e.parent){const r=new jB(t.title);r.wrap=e.wrap,r.setParent(e.parent),a=g.createElement(CN,{cardObject:r})}return g.createElement(fm,{key:o,id:i,className:r.toggleInput,label:{className:e.wrap?r.toggleInputLabelWrap:r.toggleInputLabelNoWrap,children:a},checked:t.isSelected,disabled:!e.isEnabled,input:{"aria-label":t.title},onChange:(r,o)=>{"boolean"==typeof o.checked&&(o.checked?n.add(t.value):n.delete(t.value),e.valueChanged([...n.values()]))},"aria-labelledby":`${e.ariaLabelledBy} ${i}`})}))});XD.displayName="CheckboxGroupComponent";const JD=g.forwardRef((e,t)=>g.createElement(xv,{id:e.internalId,ref:t,onChange:(t,r)=>{e.valueChanged(r.value)},value:e.value,disabled:!e.isEnabled,"aria-label":e.label,"aria-labelledby":e.ariaLabelledBy,"aria-required":e.isRequired},e.choices.map((t,r)=>{let n=t.title;if(qI.useMarkdownInRadioButtonAndCheckbox&&e.parent){const r=new jB(t.title);r.wrap=e.wrap,r.setParent(e.parent),n=g.createElement(CN,{cardObject:r})}return g.createElement(Ov,{key:r,value:t.value,label:n})})));JD.displayName="RadioGroupComponent";const QD=g.forwardRef((e,t)=>{const r=rD(),n=e.choices.filter(e=>e.isSelected).map(e=>e.value),[o,i]=g.useState(e.choices),a=g.useMemo(()=>{const t=[];return n.forEach(r=>{const n=e.choices.find(e=>e.value===r);n&&t.push(n)}),t.map(e=>e.title).join(", ")},[e.choices,n]),[s,l]=g.useState(a);g.useEffect(()=>{l(a)},[a]);const c=()=>{l(""),i(e.choices)},u=()=>{l(a)},d=t=>{if(e.isFiltered){const r=e.choices.filter(e=>e.title.toLowerCase().includes(t.target.value.toLowerCase()));i(r)}l(t.target.value)},f={id:e.internalId,appearance:ZO.comboboxAppearance,className:r.compactChoiceSetInput,placeholder:e.placeholder,multiselect:e.isMultiSelect,onOptionSelect:(t,r)=>{e.valueChanged(r.selectedOptions)},selectedOptions:n,onInput:d,value:s,"aria-label":e.placeholder,"aria-labelledby":e.ariaLabelledBy,"aria-required":e.isRequired,disabled:!e.isEnabled,input:{style:{minWidth:0}},inlinePopup:ZO.shouldUseInlinePopup};return(e.isFiltered||e.isMultiSelect)&&(f.onChange=d,f.onFocus=c,f.onBlur=u),g.createElement(Ym,Object.assign({ref:t},f),o.map((e,t)=>g.createElement(Bm,{key:t,value:e.value},e.title)),0===o.length&&e.isFiltered?g.createElement(tg,{label:e.strings.noResults}):null)});function ZD(e,t=["radio","checkbox"]){for(let r=0;r<e.children.length;r++){const n=e.children[r];if(n instanceof HTMLInputElement){if("INPUT"===n.tagName&&t.includes(n.type))return n}else{const e=ZD(n);if(e)return e}}}QD.displayName="ComboboxComponent";class eR extends VO{isDynamicTypeahead(){var e;return void 0!==(null===(e=this.choicesData)||void 0===e?void 0:e.dataset)}ensureValidValue(){if(this.isDynamicTypeahead())return;const e=this.value;if(e){const t=this.isMultiSelect?e.split(this.hostConfig.choiceSetInputValueSeparator):[e],r=this.choices.map(e=>e.value),n=[];for(const e of t)r.indexOf(e)>=0&&n.push(e);this._value=n.length>0?n.join(this.hostConfig.choiceSetInputValueSeparator):void 0}}search(e,t){this.choicesData&&this._dataQueryManager.debouncedQuery(this.choicesData,e,t)}cancelPendingSearch(){this._dataQueryManager.cancelPendingQuery()}renderAsDynamicTypeahead(e){const t=e=>{e&&e.length>0?this.valueChanged(e.join(this.hostConfig.choiceSetInputValueSeparator)):this.valueChanged(void 0),this.updateLayout()};return this.useDynamicSearchTypeaheadV2?g.createElement(KD,{ref:this._inputRef,staticChoices:this.choices,internalId:this.internalId,placeholder:this.placeholder,isEnabled:this.isEnabled,isRequired:this.isRequired,ariaLabelledBy:this.getAriaLabelledBy(),valueChanged:t,search:(e,t)=>this.search(e,t),cancelSearch:()=>this.cancelPendingSearch(),isMultiSelect:this.isMultiSelect,value:e,localizeString:(e,t)=>this.localizeString(e,t)}):g.createElement(WD,{ref:this._inputRef,staticChoices:this.choices,choicesData:this.choicesData,internalId:this.internalId,placeholder:this.placeholder,isEnabled:this.isEnabled,isRequired:this.isRequired,ariaLabelledBy:this.getAriaLabelledBy(),valueChanged:t,onDataQuery:this.onDataQueryRequest,isMultiSelect:this.isMultiSelect,value:e,strings:{dropdownPlaceholder:this.localizeString($D.selectAnOption),noResults:this.localizeString($D.noResults),loadingResults:this.localizeString($D.loadingResults),errorLoadingResults:this.localizeString($D.errorLoadingResults)}})}renderAsRadioGroup(e){var t;return g.createElement(JD,{ref:this._inputRef,internalId:this.internalId,choices:e,value:null!==(t=this.value)&&void 0!==t?t:"",isEnabled:this.isEnabled,isRequired:this.isRequired,ariaLabelledBy:this.getAriaLabelledBy(),valueChanged:e=>{this.valueChanged(e),this.updateLayout()},wrap:this.wrap,parent:this,localizeString:(e,t)=>this.localizeString(e,t)})}renderAsCheckboxGroup(e,t){return g.createElement(XD,{ref:this._inputRef,internalId:this.internalId,choices:e,value:t,isEnabled:this.isEnabled,isRequired:this.isRequired,ariaLabelledBy:this.getAriaLabelledBy(),valueChanged:e=>{e&&e.length>0?this.valueChanged(e.join(this.hostConfig.choiceSetInputValueSeparator)):this.valueChanged(void 0),this.updateLayout()},wrap:this.wrap,label:this.label,localizeString:(e,t)=>this.localizeString(e,t),parent:this})}getAllLabelIds(){const e=[];return this.labelledBy&&e.push(this.labelledBy),e.push(this.labelId,this.checkboxLabelId,this.errorId),e}renderAsComboBox(e,t){return g.createElement(QD,{ref:this._inputRef,internalId:this.internalId,choices:e,value:t,isMultiSelect:this.isMultiSelect,isFiltered:"filtered"===this.style,placeholder:this.placeholder,isEnabled:this.isEnabled,isRequired:this.isRequired,ariaLabelledBy:this.getAriaLabelledBy(),strings:{dropdownPlaceholder:this.isMultiSelect?this.localizeString($D.selectMultipleOptions):this.localizeString($D.selectAnOption),noResults:this.localizeString($D.noResults),clearButtonAriaLabel:this.localizeString($D.comboBoxClearButtonAriaLabel)},valueChanged:e=>{e&&e.length>0?this.valueChanged(e.join(this.hostConfig.choiceSetInputValueSeparator)):this.valueChanged(void 0),this.updateLayout()}})}renderInputControl(){this.ensureValidValue();const e=this.value,t=e?this.isMultiSelect?e.split(this.hostConfig.choiceSetInputValueSeparator):[e]:[],r=this.choices.map((e,r)=>{var n,o;return{title:null!==(n=e.title)&&void 0!==n?n:r.toString(),value:null!==(o=e.value)&&void 0!==o?o:r.toString(),isSelected:!!e.value&&t.includes(e.value)}});return this.isDynamicTypeahead()?this.renderAsDynamicTypeahead(t):"compact"===this.style||"filtered"===this.style?this.renderAsComboBox(r,t):this.isMultiSelect?this.renderAsCheckboxGroup(r,t):this.renderAsRadioGroup(r)}constructor(e=!1){super(),this.useDynamicSearchTypeaheadV2=e,this.checkboxLabelId=nP(),this.onDataQueryRequest=e=>{const t="none"!==e.dataQuery.associatedInputs?ON(this):void 0;let r;if(t){r={};for(const e in t){const n=t[e];r[e]=n.value}}return e.inputData=r,this.dataQuery(e)},this._inputRef=g.createRef(),this._dataQueryManager=new VD(this.onDataQueryRequest)}focus(){if(this._inputRef.current){if("expanded"!==this.style)return this._inputRef.current.focus(),!0;{const e=ZD(this._inputRef.current);if(e)return e.focus(),!0}}return!1}isValid(){if(""===this.value||void 0===this.value||this.isDynamicTypeahead())return!0;const e=this.isMultiSelect?this.value.split(this.hostConfig.choiceSetInputValueSeparator):[this.value],t=this.choices.map(e=>e.value);for(const r of e)if(!t.includes(r))return!1;return!0}}const tR={gridColumn:2,lineHeight:Yc,fontSize:Wc,fontFamily:Uc,paddingTop:"2px",overflow:"hidden"},rR=pn({root:{display:"grid",gridTemplateColumns:"auto 1fr",padding:"6px 8px 8px 8px",rowGap:Kc,columnGap:Xc,textAlign:"start",minWidth:0},icon:{alignSelf:"baseline",marginTop:"1px",gridRowStart:1},textContainerSingleRow:Object.assign({},tR),textContainerMultiRow:Object.assign(Object.assign({},tR),{display:"flex",flexDirection:"column",gap:Kc}),titleAndBadgeContainer:{display:"flex",flexWrap:"wrap",gap:Kc},category:{fontWeight:Gc},prompt:{fontWeight:$c}}),nR=g.forwardRef((e,t)=>{const r=rR(),n=e.badge?g.createElement(Nd,{appearance:"tint"},e.badge):null,o=e.category?g.createElement("span",{className:r.category},e.category):null,i=o&&n?g.createElement("div",{className:r.titleAndBadgeContainer},o,n):o||n,a=i&&e.description?r.textContainerMultiRow:r.textContainerSingleRow;return g.createElement(Dp,Object.assign({},e,{ref:t,className:r.root,icon:void 0}),g.createElement(g.Fragment,null,g.createElement("span",{className:r.icon},e.icon),g.createElement("div",{className:a},i,e.description&&g.createElement("span",{className:r.prompt},e.description))))});nR.displayName="PromptStarterWrapper";class oR extends IP{get name(){return this.getValue(oR.nameProperty)}set name(e){this.setValue(oR.nameProperty,e)}get size(){return this.getValue(oR.sizeProperty)}set size(e){this.setValue(oR.sizeProperty,e)}get style(){return this.getValue(oR.styleProperty)}set style(e){this.setValue(oR.styleProperty,e)}get color(){return this.getValue(oR.colorProperty)}set color(e){this.setValue(oR.colorProperty,e)}getSchemaKey(){return"IconInfo"}constructor(e,t,r,n){super(),this.name=e,void 0!==t&&(this.size=t),void 0!==r&&(this.style=r),void 0!==n&&(this.color=n)}render(e){var t;return g.createElement(FP,{name:null!==(t=this.name)&&void 0!==t?t:iR.defaultIconName,iconSize:this.size,iconStyle:this.style,iconColor:this.color?cP(e.foregroundColors.getColorDefinition(this.color).default):void 0})}}oR.nameProperty=new mP(dP.v1_5,"name"),oR.sizeProperty=new kP(dP.v1_5,"size",YA,YA.xSmall),oR.styleProperty=new kP(dP.v1_5,"style",XA,XA.Regular),oR.colorProperty=new kP(dP.v1_5,"color",lI,lI.Default);class iR extends PN{static getDefaultIcon(){return iR._defaultIcon||(iR._defaultIcon=new oR("Info",YA.xSmall,XA.Regular,lI.Default)),iR._defaultIcon}get icon(){return this.getValue(iR.iconProperty)}set icon(e){this.setValue(iR.iconProperty,e)}get title(){return this.getValue(iR.titleProperty)}set title(e){this.setValue(iR.titleProperty,e)}get badge(){return this.getValue(iR.badgeProperty)}set badge(e){this.setValue(iR.badgeProperty,e)}get description(){return this.getValue(iR.descriptionProperty)}set description(e){this.setValue(iR.descriptionProperty,e)}get selectAction(){return this.getValue(iR.selectActionProperty)}set selectAction(e){this.setValue(iR.selectActionProperty,e)}getMainAction(){return this.selectAction}internalRender(e){var t;const r={icon:(null!==(t=this.icon)&&void 0!==t?t:iR.getDefaultIcon()).render(this.getEffectiveStyleDefinition()),category:this.title,description:this.description,badge:this.badge,disabled:!this.isEnabled};return this.selectAction&&this.hostConfig.supportsInteractivity&&(r.onKeyPress=e=>{this.selectAction&&this.selectAction.isEffectivelyEnabled()&&("Enter"===e.code||"Space"===e.code)&&(e.preventDefault(),e.stopPropagation(),this.selectAction.execute())},r.onClick=e=>{this.selectAction&&this.selectAction.isEffectivelyEnabled()&&(e.preventDefault(),e.stopPropagation(),this.selectAction.execute())},this.selectAction.setupElementForAccessibility(r,!1,!1)),g.createElement(nR,Object.assign({},r))}getJsonTypeName(){return"CompoundButton"}}var aR,sR,lR,cR,uR,dR,fR,hR;iR.defaultIconName="Info",iR.iconProperty=new EP(dP.v1_5,"icon",()=>new oR,!0),iR.badgeProperty=new mP(dP.v1_5,"badge").setContentType("text"),iR.titleProperty=new mP(dP.v1_5,"title").setContentType("text"),iR.descriptionProperty=new mP(dP.v1_5,"description").setContentType("text"),iR.selectActionProperty=new DP(dP.v1_5,"selectAction",["Action.ShowCard"]),(sR=aR||(aR={}))[sR.Sunday=0]="Sunday",sR[sR.Monday=1]="Monday",sR[sR.Tuesday=2]="Tuesday",sR[sR.Wednesday=3]="Wednesday",sR[sR.Thursday=4]="Thursday",sR[sR.Friday=5]="Friday",sR[sR.Saturday=6]="Saturday",(cR=lR||(lR={}))[cR.January=0]="January",cR[cR.February=1]="February",cR[cR.March=2]="March",cR[cR.April=3]="April",cR[cR.May=4]="May",cR[cR.June=5]="June",cR[cR.July=6]="July",cR[cR.August=7]="August",cR[cR.September=8]="September",cR[cR.October=9]="October",cR[cR.November=10]="November",cR[cR.December=11]="December",(dR=uR||(uR={}))[dR.FirstDay=0]="FirstDay",dR[dR.FirstFullWeek=1]="FirstFullWeek",dR[dR.FirstFourDayWeek=2]="FirstFourDayWeek",(hR=fR||(fR={}))[hR.Day=0]="Day",hR[hR.Week=1]="Week",hR[hR.Month=2]="Month",hR[hR.WorkWeek=3]="WorkWeek";const pR=7,mR=12,gR={formatDay:e=>e.getDate().toString(),formatMonth:(e,t)=>t.months[e.getMonth()],formatYear:e=>e.getFullYear().toString(),formatMonthDayYear:(e,t)=>t.months[e.getMonth()]+" "+e.getDate()+", "+e.getFullYear(),formatMonthYear:(e,t)=>t.months[e.getMonth()]+" "+e.getFullYear()},vR={months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["S","M","T","W","T","F","S"],goToToday:"Go to today",weekNumberFormatString:"Week number {0}",prevMonthAriaLabel:"Previous month",nextMonthAriaLabel:"Next month",prevYearAriaLabel:"Previous year",nextYearAriaLabel:"Next year",prevYearRangeAriaLabel:"Previous year range",nextYearRangeAriaLabel:"Next year range",closeButtonAriaLabel:"Close",selectedDateFormatString:"Selected date {0}",todayDateFormatString:"Today's date {0}",monthPickerHeaderAriaLabel:"{0}, change year",yearPickerHeaderAriaLabel:"{0}, change month",dayMarkedAriaLabel:"marked"};function yR(e,t){const r=new Date(e.getTime());return r.setDate(r.getDate()+t),r}function bR(e,t){return yR(e,t*pR)}function wR(e,t){let r=new Date(e.getTime());const n=r.getMonth()+t;return r.setMonth(n),r.getMonth()!==(n%mR+mR)%mR&&(r=yR(r,-r.getDate())),r}function xR(e,t){let r=new Date(e.getTime());return r.setFullYear(e.getFullYear()+t),r.getMonth()!==(e.getMonth()%mR+mR)%mR&&(r=yR(r,-r.getDate())),r}function SR(e){return new Date(e.getFullYear(),e.getMonth(),1,0,0,0,0)}function kR(e){return new Date(e.getFullYear(),e.getMonth()+1,0,0,0,0,0)}function ER(e,t){return wR(e,t-e.getMonth())}function TR(e,t){return!e&&!t||!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate())}function _R(e,t){return BR(e)-BR(t)}function CR(e,t,r,n,o=1){const i=[];let a,s=null;switch(n||(n=[aR.Monday,aR.Tuesday,aR.Wednesday,aR.Thursday,aR.Friday]),o=Math.max(o,1),t){case fR.Day:a=NR(e),s=yR(a,o);break;case fR.Week:case fR.WorkWeek:a=function(e,t){let r=t-e.getDay();r>0&&(r-=pR);return yR(e,r)}(NR(e),r),s=yR(a,pR);break;case fR.Month:a=new Date(e.getFullYear(),e.getMonth(),1),s=wR(a,1);break;default:throw new Error("Unexpected object: "+t)}let l=a;do{(t!==fR.WorkWeek||-1!==n.indexOf(l.getDay()))&&i.push(l),l=yR(l,1)}while(!TR(l,s));return i}function AR(e,t){for(const r of t)if(TR(e,r))return!0;return!1}function IR(e,t,r,n){const o=n.getFullYear(),i=n.getMonth();let a=1;const s=new Date(o,i,a),l=a+(t+pR-1)-function(e,t){return e!==aR.Sunday&&t<e?t+pR:t}(t,s.getDay());let c=new Date(o,i,l);a=c.getDate();const u=[];for(let d=0;d<e;d++)u.push(PR(c,t,r)),a+=pR,c=new Date(o,i,a);return u}function PR(e,t,r){switch(r){case uR.FirstFullWeek:return OR(e,t,pR);case uR.FirstFourDayWeek:return OR(e,t,4);default:return function(e,t){const r=DR(e)-1,n=e.getDay()-r%pR,o=(n-t+2*pR)%pR;return Math.floor((r+o)/pR+1)}(e,t)}}function NR(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function BR(e){return e.getDate()+(e.getMonth()<<5)+(e.getFullYear()<<9)}function OR(e,t,r){const n=DR(e)-1;let o=e.getDay()-n%pR;const i=DR(new Date(e.getFullYear()-1,lR.December,31))-1;let a=(t-o+2*pR)%pR;0!==a&&a>=r&&(a-=pR);let s=n-a;return s<0&&(o-=i%pR,a=(t-o+2*pR)%pR,0!==a&&a+1>=r&&(a-=pR),s=i-a),Math.floor(s/pR+1)}function DR(e){const t=e.getMonth(),r=e.getFullYear();let n=0;for(let o=0;o<t;o++)n+=RR(o+1,r);return n+=e.getDate(),n}function RR(e,t){return new Date(t,e,0).getDate()}const MR=(e,t)=>{const{minDate:r}=t;return!!r&&_R(r,e)>=1},zR=(e,t)=>{const{maxDate:r}=t;return!!r&&_R(e,r)>=1},jR=(e,t)=>{const{restrictedDates:r,minDate:n,maxDate:o}=t;if(!r&&!n&&!o)return!1;return r&&r.some(t=>TR(t,e))||MR(e,t)||zR(e,t)},LR=e=>{const{targetDate:t,initialDate:r,direction:n,...o}=e;let i=t;if(!jR(t,o))return t;for(;0!==_R(r,i)&&jR(i,o)&&!zR(i,o)&&!MR(i,o);)i=yR(i,n);return 0===_R(r,i)||jR(i,o)?void 0:i},FR=(e,t,r)=>{let n=[...e];return t&&(n=n.filter(e=>_R(e,t)>=0)),r&&(n=n.filter(e=>_R(e,r)<=0)),n},VR=(e,t,r)=>!t||e!==fR.WorkWeek||((e,t,r)=>{const n=new Set(e);let o=0;for(const i of e){const e=(i+1)%7;n.has(e)&&r!==e||o++}return o<2})(t,0,r)&&0!==t.length?e:fR.Week;let qR;function HR(e,t){if(e){if(qR)return void(qR=e);qR=e,t&&t.requestAnimationFrame(()=>{qR&&qR.focus(),qR=void 0})}}var UR,WR;(WR=UR||(UR={}))[WR.Horizontal=0]="Horizontal",WR[WR.Vertical=1]="Vertical";const $R="fui-CalendarDayGrid__topRightCornerDate",GR="fui-CalendarDayGrid__topLeftCornerDate",YR="fui-CalendarDayGrid__bottomRightCornerDate",KR="fui-CalendarDayGrid__bottomLeftCornerDate";const XR="fui-CalendarDayGrid__wrapper",JR="fui-CalendarDayGrid__table",QR="fui-CalendarDayGrid__dayCell",ZR="fui-CalendarDayGrid__daySelected",eM="fui-CalendarDayGrid__daySingleSelected",tM="fui-CalendarDayGrid__weekRow",rM="fui-CalendarDayGrid__weekDayLabelCell",nM="fui-CalendarDayGrid__weekNumberCell",oM="fui-CalendarDayGrid__dayOutsideBounds",iM="fui-CalendarDayGrid__dayOutsideNavigatedMonth",aM="fui-CalendarDayGrid__dayButton",sM="fui-CalendarDayGrid__dayIsToday",lM="fui-CalendarDayGrid__firstTransitionWeek",cM="fui-CalendarDayGrid__lastTransitionWeek",uM="fui-CalendarDayGrid__dayMarker",dM="fui-CalendarDayGrid__dayTodayMarker",fM="fui-CalendarDayGrid__hoverStyle",hM="fui-CalendarDayGrid__pressedStyle",pM=mn({base:{Byoj8tv:"f1fow5ox"}},{d:[".f1fow5ox{padding-bottom:10px;}"]}),mM=mn({base:{po53p8:"fgkb47j",Bxjg3zr:"f16vktn6",Be2twd7:"fjoy568",B6of3ja:"fvjh0tl",Byoj8tv:"f1fow5ox",qhf8xq:"f10pi13n",B73mfa3:"f14m3nip",fsow6f:"f17mccla",a9b677:"f4m2ahc"},showWeekNumbers:{a9b677:"fl524qk"}},{d:[".fgkb47j{border-collapse:collapse;}",".f16vktn6{border-spacing:0;}",".fjoy568{font-size:inherit;}",".fvjh0tl{margin-top:4px;}",".f1fow5ox{padding-bottom:10px;}",".f10pi13n{position:relative;}",".f14m3nip{table-layout:fixed;}",".f17mccla{text-align:center;}",".f4m2ahc{width:196px;}",".fl524qk{width:226px;}"]}),gM=mn({base:{sj55zd:"f19n0e5",Bceei9c:"f1k6fduh",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fqtknz5",qhf8xq:"f10pi13n",Bsw6fvg:"f8pusc0",Bbusuzp:"fqgauei",cvlxnx:"fp6dsbd",Bweudez:"f4xgodq",Bsnevi5:0,z1p9vi:0,dua3dm:0,Bf7el8m:"f1ko8o2g",xnb59o:"fts5qqo",B0mcfed:"fq2wdp5",Bj67fi1:"f1lhgsq9",B2gfgcj:"fdbuq6n",B6cqqer:"f16j2ub3",fpurfy:"f5hk6jp",Fioj4w:["f1d258es","f1llk4aj"],Bq9yiu4:"ftezgwa",cpbo2x:["f1llk4aj","f1d258es"],Bq268z6:"f1iohfpm"},focusIndicator:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",f6g5ot:0,Boxcth7:0,Bhdgwq3:0,hgwjuy:0,Bshpdp8:0,Bsom6fd:0,Blkhhs4:0,Bonggc9:0,Ddfuxk:0,i03rao:0,kclons:0,clg4pj:0,Bpqj9nj:0,B6dhp37:0,Bf4ptjt:0,Bqtpl0w:0,i4rwgc:"fpqizxz",Dah5zi:0,B1tsrr9:0,qqdqy8:0,Bkh64rk:0,e3fwne:"f3znvyf",J0r882:"fqkqgbk",Bule8hv:["f1as04kd","ft30ozv"],Bjwuhne:"f8pxvb2",Ghsupd:["ft30ozv","f1as04kd"]}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".f1k6fduh{cursor:pointer;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",[".f1s184ao{margin:0;}",{p:-1}],[".fqtknz5{padding:2px;}",{p:-1}],".f10pi13n{position:relative;}",".fp6dsbd.fui-CalendarDayGrid__hoverStyle{color:var(--colorNeutralForeground1Static);}",".f4xgodq.fui-CalendarDayGrid__hoverStyle{background-color:var(--colorBrandBackgroundInvertedHover);}",".f1lhgsq9.fui-CalendarDayGrid__pressedStyle{color:var(--colorNeutralForeground1Static);}",".fdbuq6n.fui-CalendarDayGrid__pressedStyle{background-color:var(--colorBrandBackgroundInvertedPressed);}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",[".fpqizxz[data-fui-focus-visible]::after{border:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",{p:-2}],[".f3znvyf[data-fui-focus-visible]::after{border-radius:var(--borderRadiusMedium);}",{p:-1}],".fqkqgbk[data-fui-focus-visible]::after{top:calc(var(--strokeWidthThick) * -1);}",".f1as04kd[data-fui-focus-visible]::after{right:calc(var(--strokeWidthThick) * -1);}",".ft30ozv[data-fui-focus-visible]::after{left:calc(var(--strokeWidthThick) * -1);}",".f8pxvb2[data-fui-focus-visible]::after{bottom:calc(var(--strokeWidthThick) * -1);}"],m:[["@media (forced-colors: active){.f8pusc0{background-color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fqgauei{color:WindowText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ko8o2g.fui-CalendarDayGrid__hoverStyle{outline:1px solid Highlight;}}",{p:-1,m:"(forced-colors: active)"}],["@media (forced-colors: active){.fts5qqo.fui-CalendarDayGrid__hoverStyle{z-index:3;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq2wdp5.fui-CalendarDayGrid__hoverStyle .fui-CalendarDayGrid__dayTodayMarker{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16j2ub3.fui-CalendarDayGrid__pressedStyle{background-color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f5hk6jp.fui-CalendarDayGrid__pressedStyle{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1d258es.fui-CalendarDayGrid__pressedStyle{border-right-color:Highlight;}.f1llk4aj.fui-CalendarDayGrid__pressedStyle{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ftezgwa.fui-CalendarDayGrid__pressedStyle{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1iohfpm.fui-CalendarDayGrid__pressedStyle{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}]],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"]}),vM=mn({base:{De3pzq:"f1vevd59",sj55zd:"ff5vbop",Bsw6fvg:"f1rirnrt",Bjwas2f:"f132fbg1",Bn1d65q:["f1ene5x0","fzbc999"],Bxeuatn:"f6jgcol",n51gp8:["fzbc999","f1ene5x0"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",a3nq4f:"f1chdfq9",Bnf3alp:"fq0dbue",H2c3sd:"f3pe0v7",qu8ld:"f3t0uu2",E9zv3o:"ft4goo8"}},{d:[".f1vevd59{background-color:var(--colorBrandBackgroundInvertedSelected);}",".ff5vbop{color:var(--colorNeutralForeground1Static);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f132fbg1{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ene5x0{border-right-color:Highlight;}.fzbc999{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f6jgcol{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3pe0v7:hover,.f3pe0v7.fui-CalendarDayGrid__hoverStyle,.f3pe0v7.fui-CalendarDayGrid__pressedStyle{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f3t0uu2:hover,.f3t0uu2.fui-CalendarDayGrid__hoverStyle,.f3t0uu2.fui-CalendarDayGrid__pressedStyle{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ft4goo8>.fui-CalendarDayGrid__dayMarker{background-color:Window;}}",{m:"(forced-colors: active)"}]],h:[".f1chdfq9:hover,.f1chdfq9.fui-CalendarDayGrid__hoverStyle,.f1chdfq9.fui-CalendarDayGrid__pressedStyle{color:var(--colorNeutralForeground1Static);}",".fq0dbue:hover,.fq0dbue.fui-CalendarDayGrid__hoverStyle,.fq0dbue.fui-CalendarDayGrid__pressedStyle{background-color:var(--colorBrandBackgroundInvertedSelected);}"]}),yM=mn({base:{sj55zd:"ff5vbop",E9zv3o:"ft4goo8",B2ns3jv:"fy35frb",Bwxf4zv:0,Bp8cau8:0,Buy161k:0,Bpzqh5e:0,Fh6yq5:"f8kna22",B75pphk:"f3ef5pp",Cmeexk:["f1lmnm0c","f1nrej41"],yen2pv:"f1pt3b1q",ydc5we:["f1nrej41","f1lmnm0c"],Bz06psx:"fcydihv",Bvql7r5:["fgb2y1b","fzbode6"],k24jl4:"fofq8g1",Bksmc0g:["fzbode6","fgb2y1b"],Buxuwzc:"f36ub4m",xn840g:["f19aczhj","ffhc5ea"],Jh9m0u:"flfq9gv",Fmkg4n:["ffhc5ea","f19aczhj"],kmtgwu:"fv38a4k",g6m10a:"f1wil596",Birdjzs:["f1941p3i","fsfopon"],yojo9v:"f14tb4e3",qdeutu:["fsfopon","f1941p3i"],yfp87c:"f161hy0n",zuskld:"fbp2bxz"}},{d:[".ff5vbop{color:var(--colorNeutralForeground1Static);}",".fy35frb>.fui-CalendarDayGrid__dayButton{background-color:var(--colorBrandBackgroundInvertedSelected);}",[".f8kna22>.fui-CalendarDayGrid__dayButton{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f3ef5pp>.fui-CalendarDayGrid__dayButton{border-top-width:1px;}",".f1lmnm0c>.fui-CalendarDayGrid__dayButton{border-right-width:1px;}",".f1nrej41>.fui-CalendarDayGrid__dayButton{border-left-width:1px;}",".f1pt3b1q>.fui-CalendarDayGrid__dayButton{border-bottom-width:1px;}",".fcydihv>.fui-CalendarDayGrid__dayButton{border-top-style:solid;}",".fgb2y1b>.fui-CalendarDayGrid__dayButton{border-right-style:solid;}",".fzbode6>.fui-CalendarDayGrid__dayButton{border-left-style:solid;}",".fofq8g1>.fui-CalendarDayGrid__dayButton{border-bottom-style:solid;}",".f36ub4m>.fui-CalendarDayGrid__dayButton{border-top-color:var(--colorBrandStroke1);}",".f19aczhj>.fui-CalendarDayGrid__dayButton{border-right-color:var(--colorBrandStroke1);}",".ffhc5ea>.fui-CalendarDayGrid__dayButton{border-left-color:var(--colorBrandStroke1);}",".flfq9gv>.fui-CalendarDayGrid__dayButton{border-bottom-color:var(--colorBrandStroke1);}"],m:[["@media (forced-colors: active){.ft4goo8>.fui-CalendarDayGrid__dayMarker{background-color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fv38a4k>.fui-CalendarDayGrid__dayButton{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wil596>.fui-CalendarDayGrid__dayButton{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1941p3i>.fui-CalendarDayGrid__dayButton{border-right-color:Highlight;}.fsfopon>.fui-CalendarDayGrid__dayButton{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14tb4e3>.fui-CalendarDayGrid__dayButton{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f161hy0n>.fui-CalendarDayGrid__dayButton{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbp2bxz>.fui-CalendarDayGrid__dayButton{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}]]}),bM=mn({base:{qhf8xq:"f10pi13n",mlyf9c:"f1gazwyt"},animation:{vin17d:"f5f2jbu",Bf5fcs:"fywypte",Ezkn3b:"f1ee2ue"},horizontalBackward:{Bv12yb3:["f1o9w3l8","f1kwjajc"]},horizontalForward:{Bv12yb3:["f1kwjajc","f1o9w3l8"]},verticalBackward:{Bv12yb3:"fgl3yn7"},verticalForward:{Bv12yb3:"faiu5ye"}},{d:[".f10pi13n{position:relative;}",".f5f2jbu{animation-duration:0.367s;}",".fywypte{animation-fill-mode:both;}",".f1ee2ue{animation-timing-function:cubic-bezier(.1,.9,.2,1);}",".f1o9w3l8{animation-name:f5j8bii,f2lgmc3;}",".f1kwjajc{animation-name:f5j8bii,fpktcv7;}",".fgl3yn7{animation-name:f5j8bii,f3bv9km;}",".faiu5ye{animation-name:f5j8bii,funtx0y;}"],w:[".f1gazwyt:focus-within{z-index:1;}"],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f2lgmc3{from{pointer-events:none;transform:translate3d(-20px, 0, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}","@keyframes fpktcv7{from{pointer-events:none;transform:translate3d(20px, 0, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}","@keyframes f3bv9km{from{pointer-events:none;transform:translate3d(0, -20px, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}","@keyframes funtx0y{from{pointer-events:none;transform:translate3d(0, 20px, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}"]}),wM=mn({base:{famaaq:"f1xqy1su",vin17d:"fhsqnsn",Bf5fcs:"fywypte",Bv12yb3:"f1h7u52p",Ezkn3b:"fjq4c94"}},{d:[".f1xqy1su{-webkit-user-select:none;-moz-user-select:none;user-select:none;}",".fhsqnsn{animation-duration:0.267s;}",".fywypte{animation-fill-mode:both;}",".f1h7u52p{animation-name:f5j8bii;}",".fjq4c94{animation-timing-function:cubic-bezier(.1,.25,.75,.9);}"],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}"]}),xM=mn({base:{De3pzq:"f1c21dwh",h3c5rm:0,vrafjx:0,Bekrc4i:0,u1mtju:["fe2nn5g","f1rcbay7"],B7ck84d:"f1ewtqcl",sj55zd:"fxc4j92",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bqenvij:"fxldao9",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",a9b677:"f1w9dchk"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".fe2nn5g{border-right:1px solid var(--colorNeutralStroke2);}",{p:-1}],[".f1rcbay7{border-left:1px solid var(--colorNeutralStroke2);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".fxc4j92{color:var(--colorNeutralForeground4);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fxldao9{height:28px;}",[".f1s184ao{margin:0;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],".f1w9dchk{width:28px;}"]}),SM=mn({base:{x734em:"f1v4z6xg",B0ssf13:"f1u9q7oh",B8h8h5z:"f1a22lcc",Bbusuzp:"f1dcs8yz"}},{d:[".f1v4z6xg,.f1v4z6xg:disabled,.f1v4z6xg button,.f1v4z6xg.fui-CalendarDayGrid__hoverStyle,.f1v4z6xg.fui-CalendarDayGrid__pressedStyle{background-color:var(--colorTransparentBackground);}",".f1u9q7oh,.f1u9q7oh:disabled,.f1u9q7oh button,.f1u9q7oh.fui-CalendarDayGrid__hoverStyle,.f1u9q7oh.fui-CalendarDayGrid__pressedStyle{color:var(--colorNeutralForegroundDisabled);}",".f1a22lcc,.f1a22lcc:disabled,.f1a22lcc button,.f1a22lcc.fui-CalendarDayGrid__hoverStyle,.f1a22lcc.fui-CalendarDayGrid__pressedStyle{pointer-events:none;}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),kM=mn({lightenDaysOutsideNavigatedMonth:{sj55zd:"fxc4j92",Bhrd7zp:"figsok6",Bbusuzp:"f1dcs8yz"}},{d:[".fxc4j92{color:var(--colorNeutralForeground4);}",".figsok6{font-weight:var(--fontWeightRegular);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),EM=mn({base:{De3pzq:"f1c21dwh",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",sj55zd:"f1ym3bx4",Bceei9c:"f1k6fduh",Be2twd7:"fy9rknc",Bhrd7zp:"ff5ikls",Bqenvij:"frvgh55",Bg96gwp:"f8xlz6g",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",a9b677:"fq4mcun",Bx0yju7:"f10y451g",l98f4w:"f1dwpgx3",Jwef8y:"f18a0fwf",Btmb5he:0,gu71dq:0,B2zomw9:0,Fgk69s:0,Bw6eyry:"f1mhq3ai",ecr2s2:"f7la2e8"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f3bhgqh{border:none;}",{p:-2}],".f1ym3bx4{color:inherit;}",".f1k6fduh{cursor:pointer;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".ff5ikls{font-weight:inherit;}",".frvgh55{height:24px;}",".f8xlz6g{line-height:24px;}",[".f1gl81tg{overflow:visible;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],".fq4mcun{width:24px;}",".f10y451gspan{height:inherit;}",".f1dwpgx3span{line-height:inherit;}"],h:[".f18a0fwf:hover{background-color:var(--colorBrandBackgroundInvertedHover);}",[".f1mhq3ai:hover{border-radius:var(--borderRadiusMedium);}",{p:-1}]],a:[".f7la2e8:active{background-color:var(--colorBrandBackgroundInvertedPressed);}"]}),TM=mn({base:{mc9l5x:"f22iagw",Brf1p80:"f4d9j23",Bt984gj:"f122n59",sj55zd:"f1phragk",Bhrd7zp:"fl43uef",kof2un:"f1b5s8wn",E9zv3o:"ft4goo8"}},{d:[".f22iagw{display:flex;}",".f4d9j23{justify-content:center;}",".f122n59{align-items:center;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f1b5s8wn>.fui-CalendarDayGrid__dayMarker{background-color:var(--colorNeutralForegroundOnBrand);}"],m:[["@media (forced-colors: active){.ft4goo8>.fui-CalendarDayGrid__dayMarker{background-color:Window;}}",{m:"(forced-colors: active)"}]]}),_M=mn({base:{mc9l5x:"f22iagw",Brf1p80:"f4d9j23",Bt984gj:"f122n59",De3pzq:"ffp7eso",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1qtlz2s",a9b677:"f64fuq3",Bqenvij:"fjamq6b",Bg96gwp:"f1n95isl",Bsw6fvg:"fg374yq",Bjwas2f:"fx4t0an",Bn1d65q:["f1bd7qk0","fk5vpic"],Bxeuatn:"fgxnpfp",n51gp8:["fk5vpic","f1bd7qk0"],Bbusuzp:"f1yig07e",ycbfsm:"fkc42ay"}},{d:[".f22iagw{display:flex;}",".f4d9j23{justify-content:center;}",".f122n59{align-items:center;}",".ffp7eso{background-color:var(--colorBrandBackground);}",[".f1qtlz2s{border-radius:100%;}",{p:-1}],".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".f1n95isl{line-height:20px;}"],m:[["@media (forced-colors: active){.fg374yq{background-color:WindowText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx4t0an{border-top-color:WindowText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1bd7qk0{border-right-color:WindowText;}.fk5vpic{border-left-color:WindowText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fgxnpfp{border-bottom-color:WindowText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1yig07e{color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}]]}),CM=mn({base:{Bqenvij:"fniina8",abs64n:"fk73vx1",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",qhf8xq:"f1euv43f",a9b677:"f3tsq5r"},verticalForward:{vin17d:"f5f2jbu",Bf5fcs:"fywypte",Bv12yb3:"fupj2f5",Ezkn3b:"f1ee2ue"}},{d:[".fniina8{height:0;}",".fk73vx1{opacity:0;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1euv43f{position:absolute;}",".f3tsq5r{width:0;}",".f5f2jbu{animation-duration:0.367s;}",".fywypte{animation-fill-mode:both;}",".fupj2f5{animation-name:f199e34v,f76svrd,f13agkrc;}",".f1ee2ue{animation-timing-function:cubic-bezier(.1,.9,.2,1);}"],k:["@keyframes f199e34v{from{opacity:1;}to{opacity:0;visibility:hidden;}}","@keyframes f76svrd{from{transform:translate3d(0, 0, 0);}to{transform:translate3d(0, -20px, 0);}}","@keyframes f13agkrc{100%{height:0px;overflow:hidden;width:0px;}99.9%{height:28px;overflow:visible;width:100%;}0%{height:28px;overflow:visible;width:100%;}}"]}),AM=mn({base:{Bqenvij:"fniina8",B6of3ja:"flykjtj",abs64n:"fk73vx1",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",qhf8xq:"f1euv43f",a9b677:"f3tsq5r"},verticalBackward:{vin17d:"f5f2jbu",Bf5fcs:"fywypte",Bv12yb3:"fifoktk",Ezkn3b:"f1ee2ue"}},{d:[".fniina8{height:0;}",".flykjtj{margin-top:-28px;}",".fk73vx1{opacity:0;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1euv43f{position:absolute;}",".f3tsq5r{width:0;}",".f5f2jbu{animation-duration:0.367s;}",".fywypte{animation-fill-mode:both;}",".fifoktk{animation-name:f199e34v,f18895iq,f13agkrc;}",".f1ee2ue{animation-timing-function:cubic-bezier(.1,.9,.2,1);}"],k:["@keyframes f199e34v{from{opacity:1;}to{opacity:0;visibility:hidden;}}","@keyframes f18895iq{from{transform:translate3d(0, 0, 0);}to{transform:translate3d(0, 20px, 0);}}","@keyframes f13agkrc{100%{height:0px;overflow:hidden;width:0px;}99.9%{height:28px;overflow:visible;width:100%;}0%{height:28px;overflow:visible;width:100%;}}"]}),IM=mn({base:{De3pzq:"fnggedw",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1qtlz2s",B5kzvoi:"f1oq0udb",Bqenvij:"f6ywr7j",oyh7mz:["f1vgc2s3","f1e31b4d"],jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"fcpdi13",qhf8xq:"f1euv43f",j35jbq:["f1e31b4d","f1vgc2s3"],a9b677:"faro0ui",Bsw6fvg:"fg374yq",ycbfsm:"fkc42ay"}},{d:[".fnggedw{background-color:var(--colorBrandForeground2);}",[".f1qtlz2s{border-radius:100%;}",{p:-1}],".f1oq0udb{bottom:1px;}",".f6ywr7j{height:4px;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",[".fcpdi13{margin:auto;}",{p:-1}],".f1euv43f{position:absolute;}",".faro0ui{width:4px;}"],m:[["@media (forced-colors: active){.fg374yq{background-color:WindowText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}]]}),PM=mn({corners:{Cy64m2:["f1yxjewa","f5xfyye"],Bnn43bw:["f1kpdnd7","fokqrni"],feanbc:["f127emps","f1s6s1el"],B4268ip:["f39vr2a","frpqyrn"]}},{d:[".f1yxjewa.fui-CalendarDayGrid__topRightCornerDate{border-top-right-radius:var(--borderRadiusMedium);}",".f5xfyye.fui-CalendarDayGrid__topRightCornerDate{border-top-left-radius:var(--borderRadiusMedium);}",".f1kpdnd7.fui-CalendarDayGrid__topLeftCornerDate{border-top-left-radius:var(--borderRadiusMedium);}",".fokqrni.fui-CalendarDayGrid__topLeftCornerDate{border-top-right-radius:var(--borderRadiusMedium);}",".f127emps.fui-CalendarDayGrid__bottomRightCornerDate{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1s6s1el.fui-CalendarDayGrid__bottomRightCornerDate{border-bottom-left-radius:var(--borderRadiusMedium);}",".f39vr2a.fui-CalendarDayGrid__bottomLeftCornerDate{border-bottom-left-radius:var(--borderRadiusMedium);}",".frpqyrn.fui-CalendarDayGrid__bottomLeftCornerDate{border-bottom-right-radius:var(--borderRadiusMedium);}"]}),NM=e=>{const{showWeekNumbers:t,strings:r,firstDayOfWeek:n,allFocusable:o,weeksToShow:i,weeks:a,classNames:s}=e,l=r.shortDays.slice();let c=-1;const u=a[1];for(let d=0;d<a[1].length;d++)if(1===u[d].originalDate.getDate()){c=d;break}if(1===i&&c>=0){l[(c+n)%7]=r.shortMonths[a[1][c].originalDate.getMonth()]}return g.createElement("tr",null,t&&g.createElement("th",{className:s.dayCell}),l.map((e,t)=>{const i=(t+n)%7,a=r.days[i];return g.createElement("th",{className:Qe(s.dayCell,s.weekDayLabelCell),scope:"col",key:l[i]+" "+t,title:a,"aria-label":a,tabIndex:o?0:void 0},l[i])}))},BM=e=>{const{navigatedDate:t,dateTimeFormatter:r,allFocusable:n,strings:o,activeDescendantId:i,navigatedDayRef:a,calculateRoundedStyles:s,weeks:l,classNames:c,day:u,dayIndex:d,weekIndex:f,weekCorners:h,ariaHidden:p,customDayCellRef:m,dateRangeType:v,daysToSelectInDayView:y,onSelectDate:b,restrictedDates:w,minDate:x,maxDate:S,onNavigateDate:k,getDayInfosInRangeOfDay:E,getRefsFromDayInfos:T}=e;var _;const C=null!==(_=null==h?void 0:h[f+"_"+d])&&void 0!==_?_:"",A=TR(t,u.originalDate),{dir:I}=Qn();let P=u.originalDate.getDate()+", "+o.months[u.originalDate.getMonth()]+", "+u.originalDate.getFullYear();u.isMarked&&(P=P+", "+o.dayMarkedAriaLabel);const N=!p&&(n||!!u.isInBounds||void 0);return g.createElement("td",{className:Qe(c.dayCell,h&&C,u.isSelected&&!u.isSingleSelected&&c.daySelected,u.isSingleSelected&&c.daySingleSelected,!u.isInBounds&&c.dayOutsideBounds,!u.isInMonth&&c.dayOutsideNavigatedMonth),ref:e=>{null==m||m(e,u.originalDate,c),u.setRef(e),A&&(a.current=e)},"aria-disabled":!p&&!u.isInBounds,onClick:u.isInBounds&&!p?u.onSelected:void 0,onMouseOver:p?void 0:e=>{const t=E(u),r=T(t);r.forEach((e,n)=>{if(e&&(e.classList.add(fM),!t[n].isSelected&&v===fR.Day&&y&&y>1)){e.classList.remove(KR,YR,GR,$R);const t=s(!1,!1,n>0,n<r.length-1).trim();t&&e.classList.add(...t.trim().split(" "))}})},onMouseDown:p?void 0:e=>{const t=E(u);T(t).forEach(e=>{e&&e.classList.add(hM)})},onMouseUp:p?void 0:e=>{const t=E(u);T(t).forEach(e=>{e&&e.classList.remove(hM)})},onMouseOut:p?void 0:e=>{const t=E(u),r=T(t);r.forEach((e,n)=>{if(e&&(e.classList.remove(fM),e.classList.remove(hM),!t[n].isSelected&&v===fR.Day&&y&&y>1)){const t=s(!1,!1,n>0,n<r.length-1).trim();t&&e.classList.remove(...t.trim().split(" "))}})},onKeyDown:p?void 0:e=>{e.key===Su?null==b||b(u.originalDate):((e,t)=>{let r,n=1;if(e.key===Cu?(r=bR(t,-1),n=-1):e.key===Eu?r=bR(t,1):e.key===No(Tu,I)?(r=yR(t,-1),n=-1):e.key===No(_u,I)&&(r=yR(t,1)),!r)return;const o={initialDate:t,targetDate:r,direction:n,restrictedDates:w,minDate:x,maxDate:S};let i=LR(o);i||(o.direction=-n,i=LR(o)),l&&i&&l.slice(1,l.length-1).some(e=>e.some(e=>TR(e.originalDate,i)))||i&&(k(i,!0),e.preventDefault())})(e,u.originalDate)},role:"gridcell",tabIndex:A||N?0:void 0,"aria-current":u.isToday?"date":void 0,"aria-selected":u.isInBounds?u.isSelected:void 0},g.createElement("button",{key:u.key+"button",className:Qe(c.dayButton,u.isToday&&c.dayIsToday),"aria-label":P,id:A?i:void 0,disabled:!p&&!u.isInBounds,type:"button",tabIndex:-1},g.createElement("span",{className:u.isToday?Qe(c.dayTodayMarker):void 0},r.formatDay(u.originalDate)),u.isMarked&&g.createElement("div",{"aria-hidden":"true",className:c.dayMarker})))},OM=e=>{const{ariaHidden:t,classNames:r,week:n,weeks:o,weekIndex:i,rowClassName:a,ariaRole:s,showWeekNumbers:l,firstDayOfWeek:c,firstWeekOfYear:u,navigatedDate:d,strings:f}=e,h=l?IR(o.length,c,u,d):null,p=h?f.weekNumberFormatString&&f.weekNumberFormatString.replace("{0}",`${h[i]}`):"";return g.createElement("tr",{role:s,"aria-hidden":t,className:a,key:i+"_"+n[0].key},l&&h&&g.createElement("th",{className:r.weekNumberCell,key:i,title:p,"aria-label":p,scope:"row"},g.createElement("span",null,h[i])),n.map((t,r)=>g.createElement(BM,{...e,key:t.key,day:t,dayIndex:r})))};function DM(e,t,r){return g.useMemo(()=>{var n;const o=(e=>{const{selectedDate:t,dateRangeType:r,firstDayOfWeek:n,today:o,minDate:i,maxDate:a,weeksToShow:s,workWeekDays:l,daysToSelectInDayView:c,restrictedDates:u,markedDays:d}=e,f={minDate:i,maxDate:a,restrictedDates:u},h=o||new Date,p=e.navigatedDate?e.navigatedDate:h;let m;m=s&&s<=4?new Date(p.getFullYear(),p.getMonth(),p.getDate()):new Date(p.getFullYear(),p.getMonth(),1);const g=[];for(;m.getDay()!==n;)m.setDate(m.getDate()-1);m=yR(m,-7);let v=!1;const y=VR(r,l,n);let b=[];t&&(b=CR(t,y,n,l,c),b=FR(b,i,a));let w=!0;for(let x=0;w;x++){const e=[];v=!0;for(let r=0;r<7;r++){const r=new Date(m.getTime()),n={key:m.toString(),date:m.getDate().toString(),originalDate:r,isInMonth:m.getMonth()===p.getMonth(),isToday:TR(h,m),isSelected:AR(m,b),isSingleSelected:1===b.length&&TR(m,t),isInBounds:!jR(m,f),isMarked:(null==d?void 0:d.some(e=>TR(r,e)))||!1};e.push(n),n.isInMonth&&(v=!1),m.setDate(m.getDate()+1)}w=s?x<s+1:!v||0===x,g.push(e)}return g})(e),i=o[1][0].originalDate,a=o[o.length-1][6].originalDate,s=(null===(n=e.getMarkedDays)||void 0===n?void 0:n.call(e,i,a))||[],l=[];for(let e=0;e<o.length;e++){const n=[];for(let i=0;i<7;i++){const a=o[e][i],l={onSelected:()=>t(a.originalDate),setRef:r(a.key),...a,isMarked:a.isMarked||(null==s?void 0:s.some(e=>TR(a.originalDate,e)))};n.push(l)}l.push(n)}return l},[e])}const RM=e=>{const t=g.useRef(null),r=wo(),[n,o]=function(){const e=g.useRef({});return[e,t=>r=>{null===r?delete e.current[t]:e.current[t]=r}]}(),i=DM(e,t=>{var r,n;const{firstDayOfWeek:o,minDate:i,maxDate:a,workWeekDays:s,daysToSelectInDayView:l,restrictedDates:c}=e,d={minDate:i,maxDate:a,restrictedDates:c};let f=CR(t,u,o,s,l);f=FR(f,i,a),f=f.filter(e=>!jR(e,d)),null===(r=e.onSelectDate)||void 0===r||r.call(e,t,f),null===(n=e.onNavigateDate)||void 0===n||n.call(e,t,!0)},o),a=function(e){const t=g.useRef();g.useEffect(()=>{t.current=e[0][0].originalDate});const r=t.current;return r&&r.getTime()!==e[0][0].originalDate.getTime()?!(r<=e[0][0].originalDate):void 0}(i),[s,l]=function(e){const{dir:t}=Qn(),r=(e,r,n,o)=>{const i=[],a=!e&&!o,s=!r&&!n,l=!r&&!o;return!e&&!n&&i.push("rtl"===t?$R:GR),a&&i.push("rtl"===t?GR:$R),s&&i.push("rtl"===t?YR:KR),l&&i.push("rtl"===t?KR:YR),Qe(...i)},n=(t,r,n,o)=>{const{dateRangeType:i,firstDayOfWeek:a,workWeekDays:s}=e,l=CR(t,i===fR.WorkWeek?fR.Week:i,a,s);return n===o&&(!(!n||!o)||l.filter(e=>e.getTime()===r.getTime()).length>0)};return[e=>{const t={},o=e.slice(1,e.length-1);return o.forEach((e,i)=>{e.forEach((e,a)=>{const s=o[i-1]&&o[i-1][a]&&n(o[i-1][a].originalDate,e.originalDate,o[i-1][a].isSelected,e.isSelected),l=o[i+1]&&o[i+1][a]&&n(o[i+1][a].originalDate,e.originalDate,o[i+1][a].isSelected,e.isSelected),c=o[i][a-1]&&n(o[i][a-1].originalDate,e.originalDate,o[i][a-1].isSelected,e.isSelected),u=o[i][a+1]&&n(o[i][a+1].originalDate,e.originalDate,o[i][a+1].isSelected,e.isSelected);t[i+"_"+a]=r(s,l,c,u)})}),t},r]}(e);g.useImperativeHandle(e.componentRef,()=>({focus(){var e,r;null===(r=t.current)||void 0===r||null===(e=r.focus)||void 0===e||e.call(r)}}),[]);const{gridLabel:c,dateRangeType:u,showWeekNumbers:d,labelledBy:f,lightenDaysOutsideNavigatedMonth:h,animationDirection:p}=e,m=(e=>{const t=pM(),r=mM(),n=gM(),o=vM(),i=yM(),a=bM(),s=wM(),l=xM(),c=SM(),u=kM(),d=EM(),f=TM(),h=CM(),p=AM(),m=IM(),g=PM(),v=_M(),{animateBackwards:y,animationDirection:b,lightenDaysOutsideNavigatedMonth:w,showWeekNumbers:x}=e;return{wrapper:Qe(XR,t.base),table:Qe(JR,r.base,x&&r.showWeekNumbers),dayCell:Qe(QR,n.base,n.focusIndicator,g.corners),daySelected:Qe(ZR,o.base),daySingleSelected:Qe(eM,i.base),weekRow:Qe(tM,a.base,void 0!==y&&a.animation,void 0!==y&&(b===UR.Horizontal?y?a.horizontalBackward:a.horizontalForward:y?a.verticalBackward:a.verticalForward)),weekDayLabelCell:Qe(rM,s.base),weekNumberCell:Qe(nM,l.base),dayOutsideBounds:Qe(oM,c.base),dayOutsideNavigatedMonth:Qe(iM,w&&u.lightenDaysOutsideNavigatedMonth),dayButton:Qe(aM,d.base),dayIsToday:Qe(sM,f.base),firstTransitionWeek:Qe(lM,h.base,void 0!==y&&b!==UR.Horizontal&&!y&&h.verticalForward),lastTransitionWeek:Qe(cM,p.base,void 0!==y&&b!==UR.Horizontal&&y&&p.verticalBackward),dayMarker:Qe(uM,m.base),dayTodayMarker:Qe(dM,v.base)}})({animateBackwards:a,animationDirection:p,lightenDaysOutsideNavigatedMonth:void 0===h||h,showWeekNumbers:d}),v=s(i),y={weeks:i,navigatedDayRef:t,calculateRoundedStyles:l,activeDescendantId:r,classNames:m,weekCorners:v,getDayInfosInRangeOfDay:t=>{const r=function(e,t){if(t&&e===fR.WorkWeek){const e=t.slice().sort();let r=!0;for(let t=1;t<e.length;t++)if(e[t]!==e[t-1]+1){r=!1;break}if(!r||0===t.length)return fR.Week}return e}(e.dateRangeType,e.workWeekDays),n=CR(t.originalDate,r,e.firstDayOfWeek,e.workWeekDays,e.daysToSelectInDayView).map(e=>e.getTime());return i.reduce((e,t)=>e.concat(t.filter(e=>-1!==n.indexOf(e.originalDate.getTime()))),[])},getRefsFromDayInfos:e=>{let t=[];return t=e.map(e=>n.current[e.key]),t}},b=fs({axis:"grid"});return g.createElement("table",{className:Qe(m.table,e.className),"aria-multiselectable":"false","aria-label":c,"aria-labelledby":f,"aria-activedescendant":r,role:"grid",...b},g.createElement("tbody",null,g.createElement(NM,{...e,classNames:m,weeks:i}),g.createElement(OM,{...e,...y,week:i[0],weekIndex:-1,rowClassName:m.firstTransitionWeek,"aria-role":"presentation",ariaHidden:!0}),i.slice(1,i.length-1).map((t,r)=>g.createElement(OM,{...e,...y,key:r,week:t,weekIndex:r,rowClassName:m.weekRow})),g.createElement(OM,{...e,...y,week:i[i.length-1],weekIndex:-2,rowClassName:m.lastTransitionWeek,"aria-role":"presentation",ariaHidden:!0})))};RM.displayName="CalendarDayGrid";const MM="fui-CalendarDay",zM="fui-CalendarDay__header",jM="fui-CalendarDay__monthAndYear",LM="fui-CalendarDay__monthComponents",FM="fui-CalendarDay__headerIconButton",VM="fui-CalendarDay__disabledStyle",qM=mn({base:{B7ck84d:"f1e4lqlz",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1sy4kr4",a9b677:"f4m2ahc"},normalize:{E5pizo:"f1couhl3",B7ck84d:"f1ewtqcl",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai"},showWeekNumbers:{a9b677:"fl524qk"}},{d:[".f1e4lqlz{box-sizing:content-box;}",[".f1sy4kr4{padding:12px;}",{p:-1}],".f4m2ahc{width:196px;}",".f1couhl3{box-shadow:none;}",".f1ewtqcl{box-sizing:border-box;}",[".f1s184ao{margin:0;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],".fl524qk{width:226px;}"]}),HM=mn({base:{mc9l5x:"ftuwxu6",Bqenvij:"fxldao9",Bg96gwp:"f1vzymgo",qhf8xq:"f10pi13n",a9b677:"fly5x3f"}},{d:[".ftuwxu6{display:inline-flex;}",".fxldao9{height:28px;}",".f1vzymgo{line-height:44px;}",".f10pi13n{position:relative;}",".fly5x3f{width:100%;}"]}),UM=mn({base:{Bt984gj:"f122n59",De3pzq:"f1c21dwh",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",sj55zd:"f19n0e5",mc9l5x:"f14t3ns0",Bh6795r:"fqerorx",Bahqtrf:"f1mo0ibp",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",Bg96gwp:"f336tjw",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f1td8mcv","f1udkdxo"],fsow6f:["f1o700av","fes3tcz"],ygn44y:"f1cmbuwj",Huce71:"fz5stix"},animation:{vin17d:"fhsqnsn",Bf5fcs:"fywypte",Bv12yb3:"f1h7u52p",Ezkn3b:"fjq4c94"},headerIsClickable:{Jwef8y:"f18a0fwf",Bi91k9c:"f3sdaeg",eoavqd:"f8491dx",pugfm4:0,ukgb2i:0,Dwtyhm:0,Biisq0s:"f15rpok4",iro3zm:"f1wvkgvo",B2d53fq:"f1wdoaqd",c3iz72:"f13c0t7h",mghro0:0,Bx68yb:0,syojd9:0,E5hylx:"fy2scak"}},{d:[".f122n59{align-items:center;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f19n0e5{color:var(--colorNeutralForeground1);}",".f14t3ns0{display:inline-block;}",".fqerorx{flex-grow:1;}",".f1mo0ibp{font-family:inherit;}",".fkhj508{font-size:var(--fontSizeBase300);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".f336tjw{line-height:28px;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".f1td8mcv{padding:0 4px 0 10px;}",{p:-1}],[".f1udkdxo{padding:0 10px 0 4px;}",{p:-1}],".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".f1cmbuwj{text-overflow:ellipsis;}",".fz5stix{white-space:nowrap;}",".fhsqnsn{animation-duration:0.267s;}",".fywypte{animation-fill-mode:both;}",".f1h7u52p{animation-name:f5j8bii;}",".fjq4c94{animation-timing-function:cubic-bezier(.1,.25,.75,.9);}"],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}"],h:[".f18a0fwf:hover{background-color:var(--colorBrandBackgroundInvertedHover);}",".f3sdaeg:hover{color:var(--colorBrandForegroundOnLightHover);}",".f8491dx:hover{cursor:pointer;}",[".f15rpok4:hover{outline:1px solid var(--colorTransparentStroke);}",{p:-1}],".f1wvkgvo:hover:active{background-color:var(--colorBrandBackgroundInvertedPressed);}",".f1wdoaqd:hover:active{color:var(--colorBrandForegroundOnLightPressed);}",".f13c0t7h:hover:active{cursor:pointer;}",[".fy2scak:hover:active{outline:1px solid var(--colorTransparentStroke);}",{p:-1}]]}),WM=mn({base:{qb2dma:"fpydfdc",mc9l5x:"ftuwxu6"}},{d:[".fpydfdc{align-self:flex-end;}",".ftuwxu6{display:inline-flex;}"]}),$M=mn({base:{De3pzq:"f1c21dwh",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",sj55zd:"f11d4kpn",mc9l5x:"ftgm304",Bahqtrf:"f1mo0ibp",Be2twd7:"fy9rknc",Bqenvij:"fxldao9",Bg96gwp:"f336tjw",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",qhf8xq:"f10pi13n",fsow6f:"f17mccla",a9b677:"f1w9dchk",Jwef8y:"f18a0fwf",Bi91k9c:"f3sdaeg",eoavqd:"f8491dx",pugfm4:0,ukgb2i:0,Dwtyhm:0,Biisq0s:"f15rpok4",iro3zm:"f1wvkgvo",B2d53fq:"f1wdoaqd"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f11d4kpn{color:var(--colorNeutralForeground3);}",".ftgm304{display:block;}",".f1mo0ibp{font-family:inherit;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fxldao9{height:28px;}",".f336tjw{line-height:28px;}",[".f1gl81tg{overflow:visible;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],".f10pi13n{position:relative;}",".f17mccla{text-align:center;}",".f1w9dchk{width:28px;}"],h:[".f18a0fwf:hover{background-color:var(--colorBrandBackgroundInvertedHover);}",".f3sdaeg:hover{color:var(--colorBrandForegroundOnLightHover);}",".f8491dx:hover{cursor:pointer;}",[".f15rpok4:hover{outline:1px solid var(--colorTransparentStroke);}",{p:-1}],".f1wvkgvo:hover:active{background-color:var(--colorBrandBackgroundInvertedPressed);}",".f1wdoaqd:hover:active{color:var(--colorBrandForegroundOnLightPressed);}"]}),GM=mn({base:{Bg33ivm:"f1oelgmz",t69wg0:"fhh1ekj"}},{d:[".f1oelgmz,.f1oelgmz:disabled,.f1oelgmz button{color:var(--colorNeutralForegroundDisabled);}",".fhh1ekj,.fhh1ekj:disabled,.fhh1ekj button{pointer-events:none;}"]}),YM=e=>{const t=g.useRef(null);g.useImperativeHandle(e.componentRef,()=>({focus(){var e,r;null===(r=t.current)||void 0===r||null===(e=r.focus)||void 0===e||e.call(r)}}),[]);const{strings:r,gridLabel:n,navigatedDate:o,dateTimeFormatter:i,className:a,onHeaderSelect:s,showSixWeeksByDefault:l,minDate:c,maxDate:u,restrictedDates:d,onNavigateDate:f,showWeekNumbers:h,dateRangeType:p,animationDirection:m}=e,v=(e=>{const t=qM(),r=HM(),n=UM(),o=WM(),i=$M(),a=GM(),{className:s,headerIsClickable:l,showWeekNumbers:c}=e;return{root:Qe(MM,t.normalize,t.base,c&&t.showWeekNumbers,s),header:Qe(zM,r.base),monthAndYear:Qe(jM,n.base,n.animation,l&&n.headerIsClickable),monthComponents:Qe(LM,o.base),headerIconButton:Qe(FM,i.base),disabledStyle:Qe(VM,a.base)}})({className:a,headerIsClickable:!!s,showWeekNumbers:h}),y=i.formatMonthYear(o,r),b=s?"button":"div",w=r.yearPickerHeaderAriaLabel?r.yearPickerHeaderAriaLabel.replace("{0}",y):y,{...x}=e;return g.createElement("div",{className:v.root},g.createElement("div",{className:v.header},g.createElement(b,{"aria-label":s?w:void 0,className:v.monthAndYear,onClick:s,tabIndex:s?0:-1,onKeyDown:XM(s),type:"button"},g.createElement("span",{"aria-live":"polite","aria-atomic":"true"},y)),g.createElement(KM,{...e,classNames:v})),g.createElement(RM,{...x,gridLabel:`${y}, ${n}`,componentRef:t,strings:r,navigatedDate:o,weeksToShow:l?6:void 0,dateTimeFormatter:i,minDate:c,maxDate:u,restrictedDates:d,onNavigateDate:f,dateRangeType:p}))};YM.displayName="CalendarDay";const KM=e=>{const{minDate:t,maxDate:r,navigatedDate:n,navigationIcons:o,allFocusable:i,strings:a,showCloseButton:s,classNames:l,onNavigateDate:c,onDismiss:u}=e,d=()=>{c(wR(n,1),!1)},f=()=>{c(wR(n,-1),!1)},h=!t||_R(t,SR(n))<0,p=!r||_R(kR(n),r)<0;return g.createElement("div",{className:l.monthComponents},g.createElement("button",{className:Qe(l.headerIconButton,!h&&l.disabledStyle),tabIndex:h?void 0:i?0:-1,"aria-disabled":!h,onClick:h?f:void 0,onKeyDown:h?XM(f):void 0,title:a.prevMonthAriaLabel?a.prevMonthAriaLabel+" "+a.months[wR(n,-1).getMonth()]:void 0,type:"button"},o.upNavigation),g.createElement("button",{className:Qe(l.headerIconButton,!p&&l.disabledStyle),tabIndex:p?void 0:i?0:-1,"aria-disabled":!p,onClick:p?d:void 0,onKeyDown:p?XM(d):void 0,title:a.nextMonthAriaLabel?a.nextMonthAriaLabel+" "+a.months[wR(n,1).getMonth()]:void 0,type:"button"},o.downNavigation),s&&g.createElement("button",{className:l.headerIconButton,onClick:u,onKeyDown:XM(u),title:a.closeButtonAriaLabel,type:"button"},o.dismiss))};KM.displayName="CalendarDayNavigationButtons";const XM=e=>t=>{if(t.key===Su)null==e||e()},JM="fui-CalendarPicker",QM="fui-CalendarPicker__headerContainer",ZM="fui-CalendarPicker__currentItemButton",ez="fui-CalendarPicker__navigationButtonsContainer",tz="fui-CalendarPicker__navigationButton",rz="fui-CalendarPicker__gridContainer",nz="fui-CalendarPicker__buttonRow",oz="fui-CalendarPicker__itemButton",iz="fui-CalendarPicker__current",az="fui-CalendarPicker__selected",sz="fui-CalendarPicker__disabled",lz=mn({base:{B7ck84d:"f1e4lqlz",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1sy4kr4",a9b677:"f4m2ahc"},normalize:{E5pizo:"f1couhl3",B7ck84d:"f1ewtqcl",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai"}},{d:[".f1e4lqlz{box-sizing:content-box;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".f1sy4kr4{padding:12px;}",{p:-1}],".f4m2ahc{width:196px;}",".f1couhl3{box-shadow:none;}",".f1ewtqcl{box-sizing:border-box;}",[".f1s184ao{margin:0;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}]]}),cz=mn({base:{mc9l5x:"f22iagw"}},{d:[".f22iagw{display:flex;}"]}),uz=mn({base:{De3pzq:"f1c21dwh",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",sj55zd:"f1ym3bx4",Bh6795r:"fqerorx",Bahqtrf:"f1mo0ibp",Be2twd7:"fkhj508",Bhrd7zp:"fl43uef",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:["f1td8mcv","f1udkdxo"],fsow6f:["f1o700av","fes3tcz"]},animation:{vin17d:"fhsqnsn",Bf5fcs:"fywypte",Bv12yb3:"f1h7u52p",Ezkn3b:"fjq4c94"},hasHeaderClickCallback:{Jwef8y:"f18a0fwf",Bi91k9c:"f3sdaeg",eoavqd:"f8491dx",pugfm4:0,ukgb2i:0,Dwtyhm:0,Biisq0s:"f15rpok4",iro3zm:"f1wvkgvo",B2d53fq:"f1wdoaqd",c3iz72:"f13c0t7h",mghro0:0,Bx68yb:0,syojd9:0,E5hylx:"fy2scak"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1ym3bx4{color:inherit;}",".fqerorx{flex-grow:1;}",".f1mo0ibp{font-family:inherit;}",".fkhj508{font-size:var(--fontSizeBase300);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",[".f1gl81tg{overflow:visible;}",{p:-1}],[".f1td8mcv{padding:0 4px 0 10px;}",{p:-1}],[".f1udkdxo{padding:0 10px 0 4px;}",{p:-1}],".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fhsqnsn{animation-duration:0.267s;}",".fywypte{animation-fill-mode:both;}",".f1h7u52p{animation-name:f5j8bii;}",".fjq4c94{animation-timing-function:cubic-bezier(.1,.25,.75,.9);}"],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}"],h:[".f18a0fwf:hover{background-color:var(--colorBrandBackgroundInvertedHover);}",".f3sdaeg:hover{color:var(--colorBrandForegroundOnLightHover);}",".f8491dx:hover{cursor:pointer;}",[".f15rpok4:hover{outline:1px solid var(--colorTransparentStroke);}",{p:-1}],".f1wvkgvo:hover:active{background-color:var(--colorBrandBackgroundInvertedPressed);}",".f1wdoaqd:hover:active{color:var(--colorBrandForegroundOnLightPressed);}",".f13c0t7h:hover:active{cursor:pointer;}",[".fy2scak:hover:active{outline:1px solid var(--colorTransparentStroke);}",{p:-1}]]}),dz=mn({base:{Bt984gj:"f122n59",mc9l5x:"f22iagw"}},{d:[".f122n59{align-items:center;}",".f22iagw{display:flex;}"]}),fz=mn({base:{De3pzq:"f1c21dwh",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",sj55zd:"f19n0e5",mc9l5x:"ftgm304",Bahqtrf:"f1mo0ibp",Be2twd7:"fy9rknc",Bqenvij:"fxldao9",Bg96gwp:"f336tjw",sshi5w:"f1ysfysz",Bf4jedk:"f107v6xj",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",qhf8xq:"f10pi13n",fsow6f:"f17mccla",a9b677:"f1w9dchk",Jwef8y:"f18a0fwf",Bi91k9c:"f3sdaeg",eoavqd:"f8491dx",pugfm4:0,ukgb2i:0,Dwtyhm:0,Biisq0s:"f15rpok4",iro3zm:"f1wvkgvo",B2d53fq:"f1wdoaqd"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f3bhgqh{border:none;}",{p:-2}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f19n0e5{color:var(--colorNeutralForeground1);}",".ftgm304{display:block;}",".f1mo0ibp{font-family:inherit;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fxldao9{height:28px;}",".f336tjw{line-height:28px;}",".f1ysfysz{min-height:28px;}",".f107v6xj{min-width:28px;}",[".f1gl81tg{overflow:visible;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],".f10pi13n{position:relative;}",".f17mccla{text-align:center;}",".f1w9dchk{width:28px;}"],h:[".f18a0fwf:hover{background-color:var(--colorBrandBackgroundInvertedHover);}",".f3sdaeg:hover{color:var(--colorBrandForegroundOnLightHover);}",".f8491dx:hover{cursor:pointer;}",[".f15rpok4:hover{outline:1px solid var(--colorTransparentStroke);}",{p:-1}],".f1wvkgvo:hover:active{background-color:var(--colorBrandBackgroundInvertedPressed);}",".f1wdoaqd:hover:active{color:var(--colorBrandForegroundOnLightPressed);}"]}),hz=mn({base:{B6of3ja:"fvjh0tl"}},{d:[".fvjh0tl{margin-top:4px;}"]}),pz=mn({base:{jrapky:"f15tpi3i",sw9gdo:"f1gdbdba"},animation:{vin17d:"f5f2jbu",Bf5fcs:"fywypte",Ezkn3b:"f1ee2ue"},horizontalBackward:{Bv12yb3:["f1o9w3l8","f1kwjajc"]},horizontalForward:{Bv12yb3:["f1kwjajc","f1o9w3l8"]},verticalBackward:{Bv12yb3:"fgl3yn7"},verticalForward:{Bv12yb3:"faiu5ye"}},{d:[".f15tpi3i{margin-bottom:16px;}",".f1gdbdba:last-of-type{margin-bottom:0;}",".f5f2jbu{animation-duration:0.367s;}",".fywypte{animation-fill-mode:both;}",".f1ee2ue{animation-timing-function:cubic-bezier(.1,.9,.2,1);}",".f1o9w3l8{animation-name:f5j8bii,f2lgmc3;}",".f1kwjajc{animation-name:f5j8bii,fpktcv7;}",".fgl3yn7{animation-name:f5j8bii,f3bv9km;}",".faiu5ye{animation-name:f5j8bii,funtx0y;}"],k:["@keyframes f5j8bii{from{opacity:0;}to{opacity:1;}}","@keyframes f2lgmc3{from{pointer-events:none;transform:translate3d(-20px, 0, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}","@keyframes fpktcv7{from{pointer-events:none;transform:translate3d(20px, 0, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}","@keyframes f3bv9km{from{pointer-events:none;transform:translate3d(0, -20px, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}","@keyframes funtx0y{from{pointer-events:none;transform:translate3d(0, 20px, 0);}to{pointer-events:auto;transform:translate3d(0, 0, 0);}}"]}),mz=mn({base:{De3pzq:"f1c21dwh",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",sj55zd:"f11d4kpn",Bahqtrf:"f1mo0ibp",Be2twd7:"fy9rknc",Bqenvij:"fbhnoac",Bg96gwp:"fc76cdq",sshi5w:"f1w5jphr",Bf4jedk:"f12clzc2",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:["f1ytixos","fqk6p8t"],B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",a9b677:"feqmc2u",Btgfwho:["f65zstl","f1yt3tqw"],xrote9:"flfbxit",Bja5ulm:"ff5vbxt",Jwef8y:"f18a0fwf",Bi91k9c:"f1u69ym5",eoavqd:"f8491dx",pugfm4:0,ukgb2i:0,Dwtyhm:0,Biisq0s:"f15rpok4",Bqrx1nm:"f9ep5xw",ze5xyy:"f1qvjex",iyr2r2:"fd2qbv0",Bx7pl5v:0,Bnosqey:0,Bv57zgv:0,Bbxjs3m:"fm3bo9w",iro3zm:"f1wvkgvo",g2kj27:"f1b9qfq3",pc6evw:"f9ddjv3",B76w7ga:"fr4cgi0"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".f3bhgqh{border:none;}",{p:-2}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f11d4kpn{color:var(--colorNeutralForeground3);}",".f1mo0ibp{font-family:inherit;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fbhnoac{height:40px;}",".fc76cdq{line-height:40px;}",".f1w5jphr{min-height:40px;}",".f12clzc2{min-width:40px;}",[".f1ytixos{margin:0 12px 0 0;}",{p:-1}],[".fqk6p8t{margin:0 0 0 12px;}",{p:-1}],[".f1gl81tg{overflow:visible;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],".feqmc2u{width:40px;}",".f65zstl:nth-child(4n + 4){margin-right:0;}",".f1yt3tqw:nth-child(4n + 4){margin-left:0;}",".flfbxit:nth-child(n + 9){margin-bottom:0;}",".ff5vbxt div{font-weight:var(--fontWeightRegular);}"],h:[".f18a0fwf:hover{background-color:var(--colorBrandBackgroundInvertedHover);}",".f1u69ym5:hover{color:var(--colorNeutralForeground1Static);}",".f8491dx:hover{cursor:pointer;}",[".f15rpok4:hover{outline:1px solid var(--colorTransparentStroke);}",{p:-1}],".f1wvkgvo:hover:active{background-color:var(--colorBrandBackgroundInvertedPressed);}"],m:[["@media (forced-colors: active){.f9ep5xw:hover{background-color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1qvjex:hover{color:WindowText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fd2qbv0:hover{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fm3bo9w:hover{outline:1px solid Highlight;}}",{p:-1,m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1b9qfq3:hover:active{background-color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fr4cgi0:hover:active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}]]}),gz=mn({highlightCurrent:{De3pzq:"ffp7eso",sj55zd:"f1phragk",Bhrd7zp:"fl43uef",Bsw6fvg:"fg374yq",Bbusuzp:"f1yig07e",ycbfsm:"fkc42ay",mk428o:"ffic4m0",B1lrsqs:"f13lyc4l",z0vste:"f13g7o2i",Bgjd7nk:"fbbf6h8",kur00z:"f1fsg2me"}},{d:[".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],m:[["@media (forced-colors: active){.fg374yq{background-color:WindowText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1yig07e{color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13g7o2i:hover,.f13g7o2i:hover:active{background-color:WindowText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbbf6h8:hover,.fbbf6h8:hover:active{color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1fsg2me:hover,.f1fsg2me:hover:active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}]],h:[".ffic4m0:hover,.ffic4m0:hover:active{background-color:var(--colorBrandBackground);}",".f13lyc4l:hover,.f13lyc4l:hover:active{color:var(--colorNeutralForegroundOnBrand);}"]}),vz=mn({highlightSelected:{De3pzq:"f1vevd59",sj55zd:"ff5vbop",Bhrd7zp:"fl43uef",Bsw6fvg:"f1rirnrt",Bbusuzp:"f1yig07e",ycbfsm:"fkc42ay",Bja5ulm:"fospawf",Jwef8y:"fbo057p",Bi91k9c:"f1u69ym5",Bqrx1nm:"fiu8gst",ze5xyy:"f1v4q6pl",iyr2r2:"fd2qbv0",iro3zm:"f1wvkgvo"}},{d:[".f1vevd59{background-color:var(--colorBrandBackgroundInvertedSelected);}",".ff5vbop{color:var(--colorNeutralForeground1Static);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fospawf div{font-weight:var(--fontWeightSemibold);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1yig07e{color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fiu8gst:hover{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1v4q6pl:hover{color:Window;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fd2qbv0:hover{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}]],h:[".fbo057p:hover{background-color:var(--colorBrandBackgroundInvertedSelected);}",".f1u69ym5:hover{color:var(--colorNeutralForeground1Static);}",".f1wvkgvo:hover:active{background-color:var(--colorBrandBackgroundInvertedPressed);}"]}),yz=mn({base:{Bg33ivm:"f1oelgmz",t69wg0:"fhh1ekj",Bbusuzp:"f1dcs8yz",ycbfsm:"fkc42ay"}},{d:[".f1oelgmz,.f1oelgmz:disabled,.f1oelgmz button{color:var(--colorNeutralForegroundDisabled);}",".fhh1ekj,.fhh1ekj:disabled,.fhh1ekj button{pointer-events:none;}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}]]}),bz=e=>{const t=lz(),r=cz(),n=uz(),o=dz(),i=fz(),a=hz(),s=pz(),l=mz(),c=gz(),u=vz(),d=yz(),{animateBackwards:f,animationDirection:h,className:p,hasHeaderClickCallback:m,highlightCurrent:g,highlightSelected:v}=e;return{root:Qe(JM,t.normalize,t.base,p),headerContainer:Qe(QM,r.base),currentItemButton:Qe(ZM,n.base,void 0!==f&&n.animation,m&&n.hasHeaderClickCallback),navigationButtonsContainer:Qe(ez,o.base),navigationButton:Qe(tz,i.base),gridContainer:Qe(rz,a.base),buttonRow:Qe(nz,s.base,s.animation,void 0!==f&&(h===UR.Horizontal?f?s.horizontalBackward:s.horizontalForward:f?s.verticalBackward:s.verticalForward)),itemButton:Qe(oz,l.base),selected:Qe(az,v&&u.highlightSelected),current:Qe(iz,g&&c.highlightCurrent),disabled:Qe(sz,d.base)}},wz=e=>bz(e),xz=12,Sz={prevRangeAriaLabel:void 0,nextRangeAriaLabel:void 0},kz=e=>{const{className:t,highlightCurrentYear:r,highlightSelectedYear:n,year:o,selected:i,disabled:a,componentRef:s,onSelectYear:l,onRenderYear:c}=e,u=g.useRef(null);g.useImperativeHandle(s,()=>({focus(){var e,t;null===(t=u.current)||void 0===t||null===(e=t.focus)||void 0===e||e.call(t)}}),[]);const d=wz({className:t,highlightCurrent:r,highlightSelected:n});var f;return g.createElement("button",{className:Qe(d.itemButton,i&&d.selected,a&&d.disabled),type:"button",role:"gridcell",onClick:a?void 0:()=>{null==l||l(o)},onKeyDown:a?void 0:e=>{e.key===Su&&(null==l||l(o))},disabled:a,"aria-selected":i,ref:u},null!==(f=null==c?void 0:c(o))&&void 0!==f?f:o)};kz.displayName="CalendarYearGridCell";const Ez=e=>{const{className:t,fromYear:r,toYear:n,animationDirection:o,animateBackwards:i,minYear:a,maxYear:s,onSelectYear:l,selectedYear:c,componentRef:u}=e,d=g.useRef(null),f=g.useRef(null);g.useImperativeHandle(u,()=>({focus(){var e,t;null===(t=d.current||f.current)||void 0===t||null===(e=t.focus)||void 0===e||e.call(t)}}),[]);const h=t=>{const r=t===c,n=void 0!==a&&t<a||void 0!==s&&t>s,o=t===(new Date).getFullYear();return g.createElement(kz,{...e,key:t,year:t,selected:r,current:o,disabled:n,onSelectYear:l,componentRef:r?d:o?f:void 0})},p=wz({className:t,animateBackwards:i,animationDirection:o}),m=t=>{var r,n;return null!==(n=null===(r=e.onRenderYear)||void 0===r?void 0:r.call(e,t))&&void 0!==n?n:t},v=`${m(r)} - ${m(n)}`;let y=r;const b=[];for(let g=0;g<(n-r+1)/4;g++){b.push([]);for(let e=0;e<4;e++)b[g].push(h(y)),y++}const w=fs({axis:"grid"});return g.createElement("div",{...w,className:p.gridContainer,role:"grid","aria-label":v},b.map((e,t)=>g.createElement("div",{key:"yearPickerRow_"+t+"_"+r,role:"row",className:p.buttonRow},e)))};Ez.displayName="CalendarYearGrid";const Tz=0,_z=1,Cz=e=>{const{className:t,strings:r=Sz,direction:n,onSelectPrev:o,onSelectNext:i,fromYear:a,toYear:s,maxYear:l,minYear:c,navigationIcons:u}=e,d=wz({className:t}),f=n===Tz?r.prevRangeAriaLabel:r.nextRangeAriaLabel,h=n===Tz?-12:xz,p=f?"string"==typeof f?f:f({fromYear:a+h,toYear:s+h}):void 0,m=n===Tz?void 0!==c&&a<c:void 0!==l&&e.fromYear+xz>l,v=()=>{n===Tz?null==o||o():null==i||i()};return g.createElement("button",{className:Qe(d.navigationButton,m&&d.disabled),onClick:m?void 0:v,onKeyDown:m?void 0:e=>{e.key===Su&&v()},type:"button",title:p,disabled:m},n===Tz?u.upNavigation:u.downNavigation)};Cz.displayName="CalendarYearNavArrow";const Az=e=>{const{className:t}=e,r=wz({className:t});return g.createElement("div",{className:r.navigationButtonsContainer},g.createElement(Cz,{...e,direction:Tz}),g.createElement(Cz,{...e,direction:_z}))};Az.displayName="CalendarYearNav";const Iz=e=>{const{className:t,fromYear:r,toYear:n,strings:o=Sz,animateBackwards:i,animationDirection:a}=e,s=()=>{var t;null===(t=e.onHeaderSelect)||void 0===t||t.call(e,!0)},l=e=>{e.key!==Su&&e.key!==ku||s()},c=t=>{var r,n;return null!==(n=null===(r=e.onRenderYear)||void 0===r?void 0:r.call(e,t))&&void 0!==n?n:t},u=wz({className:t,hasHeaderClickCallback:!!e.onHeaderSelect,animateBackwards:i,animationDirection:a});if(e.onHeaderSelect){const t=o.rangeAriaLabel,i=o.headerAriaLabelFormatString,a=t?"string"==typeof t?t:t(e):void 0,d=i?i.replace("{0}",null!=a?a:""):a;return g.createElement("button",{className:u.currentItemButton,onClick:s,onKeyDown:l,"aria-label":d,role:"button",type:"button"},g.createElement("span",{"aria-live":"assertive","aria-atomic":"true"},c(r)," - ",c(n)))}return g.createElement("div",{className:u.current},c(r)," - ",c(n))};Iz.displayName="CalendarYearTitle";const Pz=e=>{const{className:t,animateBackwards:r,animationDirection:n,onRenderTitle:o}=e,i=wz({className:t,hasHeaderClickCallback:!!e.onHeaderSelect,animateBackwards:r,animationDirection:n});var a;return g.createElement("div",{className:i.headerContainer},null!==(a=null==o?void 0:o(e))&&void 0!==a?a:g.createElement(Iz,e),g.createElement(Az,e))};Pz.displayName="CalendarYearHeader";const Nz=e=>{const t=function({selectedYear:e,navigatedYear:t}){const r=e||t||(new Date).getFullYear(),n=10*Math.floor(r/10),o=g.useRef(n);g.useRef(()=>{o.current=n});const i=o.current;return i&&i!==n?i>n:void 0}(e),[r,n,o,i]=function({selectedYear:e,navigatedYear:t}){const r=g.useMemo(()=>e||t||10*Math.floor((new Date).getFullYear()/10),[t,e]),[n,o]=g.useState(r);return g.useEffect(()=>{o(r)},[r]),[n,n+xz-1,()=>{o(e=>e+xz)},()=>{o(e=>e-xz)}]}(e),a=g.useRef(null);g.useImperativeHandle(e.componentRef,()=>({focus(){var e,t;null===(t=a.current)||void 0===t||null===(e=t.focus)||void 0===e||e.call(t)}}));const{className:s}=e,l=wz({className:s});return g.createElement("div",{className:l.root},g.createElement(Pz,{...e,fromYear:r,toYear:n,onSelectPrev:i,onSelectNext:o,animateBackwards:t}),g.createElement(Ez,{...e,fromYear:r,toYear:n,animateBackwards:t,componentRef:a}))};Nz.displayName="CalendarYear";const Bz=e=>{const{allFocusable:t,animationDirection:r,className:n,componentRef:o,dateTimeFormatter:i=gR,highlightCurrentMonth:a,highlightSelectedMonth:s,maxDate:l,minDate:c,navigatedDate:u,navigationIcons:d,onHeaderSelect:f,onNavigateDate:h,selectedDate:p,strings:m,today:v=new Date,yearPickerHidden:y=!1}=e,[b,w,x]=function({componentRef:e}){const t=g.useRef(null),r=g.useRef(null),n=g.useRef(!1),o=g.useCallback(()=>{r.current?r.current.focus():t.current&&t.current.focus()},[]);return g.useImperativeHandle(e,()=>({focus:o}),[o]),g.useEffect(()=>{n.current&&(o(),n.current=!1)}),[t,r,()=>{n.current=!0}]}({componentRef:o}),[S,k]=g.useState(!1),E=function({navigatedDate:e}){const t=e.getFullYear(),r=g.useRef();g.useEffect(()=>{r.current=t});const n=r.current;return void 0===n||n===t?void 0:n>t}({navigatedDate:u}),T=e=>()=>A(e),_=()=>{h(xR(u,1),!1)},C=()=>{h(xR(u,-1),!1)},A=e=>{null==f||f(),h(ER(u,e),!0)},I=()=>{y?null==f||f():(x(),k(!0))},P=e=>{x();if(u.getFullYear()!==e){let t=new Date(u.getTime());t.setFullYear(e),l&&t>l?t=ER(t,l.getMonth()):c&&t<c&&(t=ER(t,c.getMonth())),h(t,!0)}k(!1)},N=e=>{x(),k(!1)},B=i,O=!c||_R(c,new Date(u.getFullYear(),0,1,0,0,0,0))<0;const D=!l||_R(function(e){return new Date(e.getFullYear()+1,0,0,0,0,0,0)}(u),l)<0,R=(e=>bz(e))({className:n,hasHeaderClickCallback:!!f||!y,highlightCurrent:a,highlightSelected:s,animateBackwards:E,animationDirection:r}),M=fs({axis:"grid"});if(S){const[e,t]=function({dateTimeFormatter:e,navigatedDate:t,strings:r}){const n=r=>{if(e){const n=new Date(t.getTime());return n.setFullYear(r),e.formatYear(n)}return String(r)},o=e=>`${n(e.fromYear)} - ${n(e.toYear)}`,i=e=>r.nextYearRangeAriaLabel?`${r.nextYearRangeAriaLabel} ${o(e)}`:"",a=e=>r.prevYearRangeAriaLabel?`${r.prevYearRangeAriaLabel} ${o(e)}`:"";return[n,{rangeAriaLabel:o,prevRangeAriaLabel:a,nextRangeAriaLabel:i,headerAriaLabelFormatString:r.yearPickerHeaderAriaLabel}]}({dateTimeFormatter:i,navigatedDate:u,strings:m});return g.createElement(Nz,{key:"calendarYear",minYear:c?c.getFullYear():void 0,maxYear:l?l.getFullYear():void 0,onSelectYear:P,onHeaderSelect:N,selectedYear:p?p.getFullYear():u?u.getFullYear():void 0,navigatedYear:u.getFullYear(),navigationIcons:d,onRenderYear:e,strings:t,componentRef:w,highlightCurrentYear:a,highlightSelectedYear:s,animationDirection:r})}const z=[];for(let g=0;g<m.shortMonths.length/4;g++)z.push(g);const j=B.formatYear(u),L=m.monthPickerHeaderAriaLabel?m.monthPickerHeaderAriaLabel.replace("{0}",j):j;return g.createElement("div",{className:R.root},g.createElement("div",{className:R.headerContainer},g.createElement("button",{className:R.currentItemButton,onClick:I,onKeyDown:Dz(I),"aria-label":L,tabIndex:f||!y?0:-1,type:"button"},g.createElement("span",{"aria-live":"polite","aria-atomic":"true"},j)),g.createElement("div",{className:R.navigationButtonsContainer},g.createElement("button",{className:Qe(R.navigationButton,!O&&R.disabled),"aria-disabled":!O,tabIndex:O?void 0:t?0:-1,onClick:O?C:void 0,onKeyDown:O?Dz(C):void 0,title:m.prevYearAriaLabel?m.prevYearAriaLabel+" "+B.formatYear(xR(u,-1)):void 0,type:"button"},d.upNavigation),g.createElement("button",{className:Qe(R.navigationButton,!D&&R.disabled),"aria-disabled":!D,tabIndex:D?void 0:t?0:-1,onClick:D?_:void 0,onKeyDown:D?Dz(_):void 0,title:m.nextYearAriaLabel?m.nextYearAriaLabel+" "+B.formatYear(xR(u,1)):void 0,type:"button"},d.downNavigation))),g.createElement("div",{...M,className:R.gridContainer,role:"grid","aria-label":j},z.map(e=>{const r=m.shortMonths.slice(4*e,4*(e+1));return g.createElement("div",{key:"monthRow_"+e+u.getFullYear(),role:"row",className:R.buttonRow},r.map((r,n)=>{const o=4*e+n,i=ER(u,o),d=u.getMonth()===o,f=p.getMonth()===o,h=p.getFullYear()===u.getFullYear(),y=(!c||_R(c,kR(i))<1)&&(!l||_R(SR(i),l)<1);return g.createElement("button",{ref:d?b:void 0,role:"gridcell",className:Qe(R.itemButton,a&&Oz(o,u.getFullYear(),v)&&R.current,s&&f&&h&&R.selected,!y&&R.disabled),disabled:!t&&!y,key:o,onClick:y?T(o):void 0,onKeyDown:y?Dz(T(o)):void 0,"aria-label":B.formatMonth(i,m),"aria-selected":d,tabIndex:y?0:-1,type:"button"},r)}))})))};function Oz(e,t,r){return r.getFullYear()===t&&r.getMonth()===e}function Dz(e){return t=>{if(t.key===Su)e()}}Bz.displayName="CalendarMonth";const Rz={dismiss:g.createElement(sd,null),downNavigation:g.createElement(Ju,null),upNavigation:g.createElement(Qu,null)},Mz="fui-Calendar",zz="fui-Calendar__divider",jz="fui-Calendar__goTodayButton",Lz="fui-Calendar__monthPickerWrapper",Fz="fui-Calendar__liveRegion",Vz=mn({base:{mc9l5x:"f22iagw",a9b677:"f13dwy2t"},normalize:{E5pizo:"f1couhl3",B7ck84d:"f1ewtqcl",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai"},monthPickerNotVisible:{Beiy3e4:"f1vx9l62"},dayAndMonthPickersVisible:{a9b677:"fcy5b15"},dayPickerVisibleAndWeekNumbersShown:{a9b677:"fhsg0in"},dayAndMonthPickersVisibleAndWeekNumbersShown:{a9b677:"fcarq7f"}},{d:[".f22iagw{display:flex;}",".f13dwy2t{width:220px;}",".f1couhl3{box-shadow:none;}",".f1ewtqcl{box-sizing:border-box;}",[".f1s184ao{margin:0;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],".f1vx9l62{flex-direction:column;}",".fcy5b15{width:440px;}",".fhsg0in{width:250px;}",".fcarq7f{width:470px;}"]}),qz=mn({base:{h3c5rm:0,vrafjx:0,Bekrc4i:0,u1mtju:["fe2nn5g","f1rcbay7"],Bhzewxz:"f15twtuk"}},{d:[[".fe2nn5g{border-right:1px solid var(--colorNeutralStroke2);}",{p:-1}],[".f1rcbay7{border-left:1px solid var(--colorNeutralStroke2);}",{p:-1}],".f15twtuk{top:0;}"]}),Hz=mn({base:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}"]}),Uz=mn({base:{qb2dma:"fpydfdc",De3pzq:"f1c21dwh",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],B5kzvoi:"f1yab3r1",B7ck84d:"f1e4lqlz",sj55zd:"f19n0e5",Bahqtrf:"f1mo0ibp",Be2twd7:"fy9rknc",Bqenvij:"f1tvdnth",Bg96gwp:"fpfng1i",t21cq0:["f17vyym1","fb5scp"],B6of3ja:"f4gg0ds",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1p2x7z2",seuwu7:"fvy6vk6",Jwef8y:"f9ql6rf",Bi91k9c:"f1f1pb61",eoavqd:"f8491dx",Bx7pl5v:0,Bnosqey:0,Bv57zgv:0,Bbxjs3m:"fzk52v6",knvgbf:0,B23s7e0:0,Be8uuq8:0,B3ons6i:0,Bnj8mme:"fxh1mxx",B2d53fq:"fc9d3oc",Dyrjrp:"f1cqwcg4",Be90el1:"fmjaa5u"}},{d:[".fpydfdc{align-self:flex-end;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".f1yab3r1{bottom:0;}",".f1e4lqlz{box-sizing:content-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1mo0ibp{font-family:inherit;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".f1tvdnth{height:30px;}",".fpfng1i{line-height:30px;}",".f17vyym1{margin-right:16px;}",".fb5scp{margin-left:16px;}",".f4gg0ds{margin-top:3px;}",[".f1gl81tg{overflow:visible;}",{p:-1}],[".f1p2x7z2{padding:0 4px;}",{p:-1}],".fvy6vk6 div{font-size:var(--fontSizeBase200);}",".f1cqwcg4:disabled{color:var(--colorNeutralForegroundDisabled);}",".fmjaa5u:disabled{pointer-events:none;}"],h:[".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f1f1pb61:hover{color:var(--colorBrandForeground1);}",".f8491dx:hover{cursor:pointer;}",".fc9d3oc:hover:active{color:var(--colorBrandForeground2);}"],m:[["@media (forced-colors: active){.fzk52v6:hover{outline:var(--strokeWidthThin);}}",{p:-1,m:"(forced-colors: active)"}],["@media (forced-colors: active){.fxh1mxx:hover{border-radius:var(--borderRadiusSmall);}}",{p:-1,m:"(forced-colors: active)"}]]}),Wz=mn({base:{Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f3bhgqh",Bqenvij:"f1mpe4l3",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1jlpb2r",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",qhf8xq:"f1euv43f",a9b677:"frkrog8"}},{d:[[".f3bhgqh{border:none;}",{p:-2}],".f1mpe4l3{height:1px;}",[".f1jlpb2r{margin:-1px;}",{p:-1}],[".f1a3p1vp{overflow:hidden;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],".f1euv43f{position:absolute;}",".frkrog8{width:1px;}"]}),$z=[aR.Monday,aR.Tuesday,aR.Wednesday,aR.Thursday,aR.Friday];const Gz=g.forwardRef((e,t)=>{const{allFocusable:r=!1,calendarDayProps:n,calendarMonthProps:o,className:i,componentRef:a,dateRangeType:s=fR.Day,dateTimeFormatter:l=gR,firstDayOfWeek:c=aR.Sunday,firstWeekOfYear:u=uR.FirstDay,highlightCurrentMonth:d=!1,highlightSelectedMonth:f=!1,id:h,isDayPickerVisible:p=!0,isMonthPickerVisible:m=!0,maxDate:v,minDate:y,onDismiss:b,onSelectDate:w,restrictedDates:x,showCloseButton:S=!1,showGoToToday:k=!0,showMonthPickerAsOverlay:E=!1,showSixWeeksByDefault:T=!1,showWeekNumbers:_=!1,strings:C=vR,today:A,value:I,workWeekDays:P=$z}=e,N=g.useMemo(()=>null!=A?A:new Date,[A]),[B,O,D,R,M,z]=function(e){const{value:t,today:r,onSelectDate:n}=e,o=g.useMemo(()=>null!=r?r:new Date,[r]),[i,a]=co({state:t,defaultState:t?void 0:o,initialState:o}),[s=o,l]=g.useState(t),[c=o,u]=g.useState(t),[d=o,f]=g.useState(t);return t&&d.valueOf()!==t.valueOf()&&(l(t),u(t),f(t)),[i,s,c,(e,t)=>{u(e),l(e),a(e),null==n||n(e,t)},e=>{u(e),l(e)},e=>{u(e)}]}({onSelectDate:w,value:I,today:N}),[j,L,F]=function({isDayPickerVisible:e,isMonthPickerVisible:t,showMonthPickerAsOverlay:r}){const n=Yz({isDayPickerVisible:e,showMonthPickerAsOverlay:r}),[o,i]=g.useState(()=>!n&&null!=t&&t),[a,s]=g.useState(()=>!!n||null==e||e);return[o,a,()=>{i(!o),s(!a)}]}({isDayPickerVisible:p,isMonthPickerVisible:m,showMonthPickerAsOverlay:E}),[V,q,H]=function({componentRef:e},t,r){const n=g.useRef(null),o=g.useRef(null),i=g.useRef(!1),{targetDocument:a}=Qn(),s=null==a?void 0:a.defaultView,l=g.useCallback(()=>{t&&n.current?HR(n.current,s):r&&o.current&&HR(o.current,s)},[t,r,s]);return g.useImperativeHandle(e,()=>({focus:l}),[l]),g.useEffect(()=>{i.current&&(l(),i.current=!1)}),[n,o,()=>{i.current=!0}]}({componentRef:a},L,j),U=()=>{let e=k;return e&&N&&(e=O.getFullYear()!==N.getFullYear()||O.getMonth()!==N.getMonth()||D.getFullYear()!==N.getFullYear()||D.getMonth()!==N.getMonth()),k&&g.createElement("button",{className:X.goTodayButton,onClick:G,onKeyDown:Y(G),type:"button",disabled:!e},C.goToToday)},W=Yz({isDayPickerVisible:p,showMonthPickerAsOverlay:E}),$=W?()=>{F(),H()}:void 0,G=()=>{M(N),W&&j&&F(),H()},Y=e=>t=>{switch(t.key){case Su:case ku:e()}},K=!W&&!L,X=(e=>{const t=Vz(),r=qz(),n=Hz(),o=Uz(),i=Wz(),{className:a,isDayPickerVisible:s,isMonthPickerVisible:l,showWeekNumbers:c}=e;return{root:Qe(Mz,t.base,t.normalize,!l&&t.monthPickerNotVisible,s&&l&&!c&&t.dayAndMonthPickersVisible,s&&!l&&c&&t.dayPickerVisibleAndWeekNumbersShown,s&&l&&c&&t.dayAndMonthPickersVisibleAndWeekNumbersShown,a),divider:Qe(zz,r.base),monthPickerWrapper:Qe(Lz,n.base),goTodayButton:Qe(jz,o.base),liveRegion:Qe(Fz,i.base)}})({className:i,isDayPickerVisible:L,isMonthPickerVisible:j,showWeekNumbers:_});let J="",Q="";if(l&&C.todayDateFormatString&&(J=C.todayDateFormatString.replace("{0}",l.formatMonthDayYear(N,C))),l&&C.selectedDateFormatString){const e=K?l.formatMonthYear:l.formatMonthDayYear;Q=C.selectedDateFormatString.replace("{0}",e(B,C))}const Z=Q+", "+J;return g.createElement("div",{id:h,ref:t,className:X.root,onKeyDown:e=>{switch(e.key){case Su:case Nu:e.preventDefault();break;case Bu:e.stopPropagation(),null==b||b();break;case Pu:e.ctrlKey?M(xR(O,1)):M(wR(O,1)),e.preventDefault();break;case Iu:e.ctrlKey?M(xR(O,-1)):M(wR(O,-1)),e.preventDefault()}}},g.createElement("div",{className:X.liveRegion,"aria-live":"polite","aria-atomic":"true"},g.createElement("span",null,Q)),L&&g.createElement(YM,{gridLabel:Z,selectedDate:B,navigatedDate:O,today:N,onSelectDate:R,onNavigateDate:(e,t)=>{M(e),t&&H()},onDismiss:b,firstDayOfWeek:c,dateRangeType:s,strings:C,onHeaderSelect:$,showWeekNumbers:_,firstWeekOfYear:u,dateTimeFormatter:l,showSixWeeksByDefault:T,minDate:y,maxDate:v,navigationIcons:Rz,restrictedDates:x,workWeekDays:P,componentRef:V,showCloseButton:S,allFocusable:r,...n}),L&&j&&g.createElement("div",{className:X.divider}),j?g.createElement("div",{className:X.monthPickerWrapper},g.createElement(Bz,{navigatedDate:D,selectedDate:O,strings:C,onNavigateDate:(e,t)=>{t&&H(),t?(K&&R(e),M(e)):z(e)},today:N,highlightCurrentMonth:d,highlightSelectedMonth:f,onHeaderSelect:$,dateTimeFormatter:l,minDate:y,maxDate:v,componentRef:q,navigationIcons:Rz,...o}),U()):U())});Gz.displayName="Calendar";const Yz=({isDayPickerVisible:e,showMonthPickerAsOverlay:t})=>{const{targetDocument:r}=Qn(),n=null==r?void 0:r.defaultView;return t||e&&n&&n.innerWidth<=440},Kz={...vR,prevMonthAriaLabel:"Go to previous month",nextMonthAriaLabel:"Go to next month",prevYearAriaLabel:"Go to previous year",nextYearAriaLabel:"Go to next year",closeButtonAriaLabel:"Close date picker"};const Xz=e=>e?e.toDateString():"",Jz=e=>{const t=Date.parse(e);return t?new Date(t):null},Qz=(e,t)=>{const{allowTextInput:r=!1,allFocusable:n=!1,borderless:o=!1,dateTimeFormatter:i,defaultOpen:a=!1,disableAutoFocus:s=!0,firstDayOfWeek:l=aR.Sunday,firstWeekOfYear:c=uR.FirstDay,formatDate:u=Xz,highlightCurrentMonth:d=!1,highlightSelectedMonth:f=!1,initialPickerDate:h,inlinePopup:p=!1,isMonthPickerVisible:m=!0,maxDate:v,minDate:y,mountNode:b,onOpenChange:w,onSelectDate:x,openOnClick:S=!0,onValidationResult:k,parseDateFromString:E=Jz,showCloseButton:T=!1,showGoToToday:_=!0,showMonthPickerAsOverlay:C=!1,showWeekNumbers:A=!1,strings:I=Kz,today:P,underlined:N=!1,value:B,...O}=e,D=g.useMemo(()=>null!=h?h:new Date,[h]),R=g.useRef(null),[M,z,j,L]=function(){const e=g.useRef(null),t=g.useRef(!1),r=g.useCallback(()=>{var t,r;null===(r=e.current)||void 0===r||null===(t=r.focus)||void 0===t||t.call(r)},[]),n=g.useCallback(()=>{t.current=!0},[]);return[r,e,t,n]}(),[F,V,q,H]=function({formatDate:e,onSelectDate:t,value:r}){const[n,o]=co({initialState:null,state:r}),[i,a]=g.useState(()=>r&&e?e(r):"");return g.useEffect(()=>{a(r&&e?e(r):"")},[e,r]),[n,i,r=>{null==t||t(r),o(r),a(r&&e?e(r):"")},a]}({formatDate:u,onSelectDate:x,value:B}),[U,W]=function(e){const[t,r]=co({initialState:!1,defaultState:e.defaultOpen,state:e.open}),n=g.useRef(!1);return g.useEffect(()=>{var r;n.current&&!t&&(null===(r=e.onOpenChange)||void 0===r||r.call(e,!1)),n.current=!0},[e.allowTextInput,t]),[t,r]}(e),$=Kp();var G;const Y=null!==(G=null==$?void 0:$.required)&&void 0!==G?G:e.required,K=wo("datePicker-input"),X=wo("datePicker-popupSurface"),J=g.useCallback((e=null)=>{let t;if(r)if(V||e){if(F&&u&&u(null!=e?e:F)===V)return;!(e=e||E(V))||isNaN(e.getTime())?(q(F),t="invalid-input"):!function(e,t,r){return!!t&&_R(t,e)>0||!!r&&_R(r,e)<0}(e,y,v)?q(e):t="out-of-bounds"}else Y&&(t="required-input"),null==x||x(e);else Y&&!V&&(t="required-input");null==k||k({error:t})},[r,u,V,v,y,x,k,E,Y,F,q]),Q=g.useCallback(t=>{null==w||w(t),W(t),U||e.disabled||M()},[M,w,e.disabled,W]),Z=g.useCallback(e=>{U&&(Q(!1),J(e),!r&&e&&q(e))},[r,U,Q,q,J]),ee=g.useCallback(()=>{U||(L(),Q(!0))},[U,L,Q]),te=g.useCallback(e=>{L(),Z(e)},[Z,L]),re=g.useCallback((e,t)=>{const{value:n}=t;r&&(U&&Z(),H(n))},[r,Z,U,H]),ne=g.useCallback(()=>{J()},[J]),oe=g.useCallback(t=>{switch(t.key){case Su:t.preventDefault(),t.stopPropagation(),U?e.allowTextInput&&Z():(J(),ee());break;case Bu:t.stopPropagation(),t.preventDefault(),U&&te();break;case Eu:t.preventDefault(),U||ee()}},[te,Z,U,e.allowTextInput,ee,J]),ie=g.useCallback(()=>{s||r||(j.current||ee(),j.current=!1)},[r,s,j,ee]),ae=g.useCallback(()=>{!e.openOnClick&&e.disableAutoFocus||U||e.disabled?r&&Z():ee()},[r,Z,U,e.disabled,e.disableAutoFocus,e.openOnClick,ee]),se=N?"underline":o?"filled-lighter":"outline",[le,ce]=function(e){const{positioning:t}=e,r={position:"below",align:"start",...Sh(t)},{targetRef:n,containerRef:o}=Dh(r);return[n,o]}(e),ue=wn(e.root,{defaultProps:{ref:le},elementType:"span"});ue.ref=xo(ue.ref,le);const de=wn(e.input,{elementType:"input"});de.ref=xo(de.ref,t,z);const fe=e["aria-labelledby"];var he;const pe=null!==(he=e.id)&&void 0!==he?he:K,me=g.useMemo(()=>({role:"button","aria-expanded":U,"aria-labelledby":null!=fe?fe:pe}),[U,fe,pe]),ge=wn(e.contentAfter||{},{defaultProps:{children:g.createElement(Zu,null),...me},elementType:"span"});ge.onClick=vo(Bo(ge.onClick,t=>{t.stopPropagation(),U||e.disabled?e.allowTextInput&&Z():ee()}));const ve=wn(O,{defaultProps:{appearance:se,"aria-controls":U?X:void 0,"aria-expanded":U,"aria-haspopup":"dialog",readOnly:!r,role:"combobox",id:pe},elementType:fg});ve.root=ue,ve.input=de,ve.contentAfter=ge,ve.onChange=vo(Bo(ve.onChange,re)),ve.onBlur=vo(Bo(ve.onBlur,ne)),ve.onKeyDown=vo(Bo(ve.onKeyDown,oe)),ve.onFocus=vo(Bo(ve.onFocus,ie)),ve.onClick=vo(Bo(ve.onClick,ae));const{modalAttributes:ye}=Ps({trapFocus:!0,alwaysFocusable:!0,legacyTrapFocus:!0}),be=U?xn(e.popupSurface,{renderByDefault:!0,defaultProps:{"aria-label":"Calendar","aria-modal":!0,id:X,role:"dialog",ref:ce,...ye},elementType:"div"}):void 0,{targetDocument:we}=Qn();ko({element:we,callback:e=>Z(),refs:[le,ce],disabled:!U}),Co({element:we,callback:e=>Z(),refs:[le,ce],disabled:!U}),g.useEffect(()=>{U&&!e.disabled&&R.current&&R.current.focus()},[s,U,e.disabled]);const xe=wn(e.calendar,{defaultProps:{allFocusable:n,componentRef:R,dateTimeFormatter:i,firstDayOfWeek:l,firstWeekOfYear:c,highlightCurrentMonth:d,highlightSelectedMonth:f,isMonthPickerVisible:m,maxDate:v,minDate:y,showCloseButton:T,showGoToToday:_,showMonthPickerAsOverlay:C,showWeekNumbers:A,strings:I,today:P,value:F||D},elementType:Gz});xe.onDismiss=vo(Bo(xe.onDismiss,te)),xe.onSelectDate=vo(Bo(xe.onSelectDate,te));const Se={disabled:!!e.disabled,inlinePopup:p,components:{root:fg,calendar:Gz,popupSurface:"div"},calendar:xe,mountNode:b,root:ve,popupSurface:be};return Se.root.value=V,Se},Zz="fui-DatePicker",ej="fui-DatePicker__calendar",tj="fui-DatePicker__popupSurface",rj=mn({base:{qhf8xq:"f10pi13n",Bceei9c:"f1k6fduh",xfaavh:"faxec97"},disabled:{Bceei9c:"f158kwzp",xfaavh:"f19qwlmg"},inline:{Bj3rh1h:"f19g0ac"}},{d:[".f10pi13n{position:relative;}",".f1k6fduh{cursor:pointer;}",".faxec97 input{cursor:pointer;}",".f158kwzp{cursor:default;}",".f19qwlmg input{cursor:default;}",".f19g0ac{z-index:1;}"]}),nj=gn("r1ytv1z8",null,[".r1ytv1z8{background-color:var(--colorNeutralBackground1);box-shadow:var(--shadow16);border-radius:var(--borderRadiusMedium);border-width:1px;border-style:solid;border-color:var(--colorTransparentStroke);display:inline-flex;color:var(--colorNeutralForeground1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);}"]),oj=g.forwardRef((e,t)=>{const r=Qz(e,t);return(e=>{const t=rj(),r=nj(),{disabled:n,inlinePopup:o}=e;e.root.className=Qe(Zz,t.base,n&&t.disabled,e.root.className),e.popupSurface&&(e.popupSurface.className=Qe(tj,r,e.popupSurface.className,o&&t.inline)),e.calendar.className=Qe(ej,e.calendar.className)})(r),(e=>{const{inlinePopup:t}=e;return Wo(g.Fragment,{children:[Uo(e.root,{}),e.popupSurface&&(t?Uo(e.popupSurface,{children:Uo(e.calendar,{})}):Uo(cp,{mountNode:e.mountNode,children:Uo(e.popupSurface,{children:Uo(e.calendar,{})})}))]})})(r)});oj.displayName="DatePicker";const ij=g.forwardRef((e,t)=>{var r;const n=rD();return g.createElement(oj,{id:e.internalId,strings:e.strings,appearance:ZO.basicInputAppearance,className:n.dateInput,onSelectDate:t=>{e.valueChanged(null!=t?t:void 0)},allowTextInput:!0,value:null!==(r=e.value)&&void 0!==r?r:null,placeholder:e.placeholder,showGoToToday:!1,showMonthPickerAsOverlay:!0,formatDate:e.formatDate,disabled:!e.isEnabled,inlinePopup:ZO.shouldUseInlinePopup,input:{ref:t,"aria-label":e.placeholder,"aria-labelledby":e.ariaLabelledBy,"aria-required":e.isRequired}})});ij.displayName="DateInputComponent";class aj extends HO{constructor(){super(...arguments),this._inputRef=g.createRef()}getStrings(){return{months:[this.localizeString($D.january),this.localizeString($D.february),this.localizeString($D.march),this.localizeString($D.april),this.localizeString($D.may),this.localizeString($D.june),this.localizeString($D.july),this.localizeString($D.august),this.localizeString($D.september),this.localizeString($D.october),this.localizeString($D.november),this.localizeString($D.december)],shortMonths:[this.localizeString($D.januaryShort),this.localizeString($D.februaryShort),this.localizeString($D.marchShort),this.localizeString($D.aprilShort),this.localizeString($D.mayShort),this.localizeString($D.juneShort),this.localizeString($D.julyShort),this.localizeString($D.augustShort),this.localizeString($D.septemberShort),this.localizeString($D.octoberShort),this.localizeString($D.novemberShort),this.localizeString($D.decemberShort)],days:[this.localizeString($D.sunday),this.localizeString($D.monday),this.localizeString($D.tuesday),this.localizeString($D.wednesday),this.localizeString($D.thursday),this.localizeString($D.friday),this.localizeString($D.saturday)],shortDays:[this.localizeString($D.sundayShort),this.localizeString($D.mondayShort),this.localizeString($D.tuesdayShort),this.localizeString($D.wednesdayShort),this.localizeString($D.thursdayShort),this.localizeString($D.fridayShort),this.localizeString($D.saturdayShort)],weekNumberFormatString:this.localizeString($D.calendarWeekNumberFormatString),prevMonthAriaLabel:this.localizeString($D.calendarPreviousMonthAriaLabel),nextMonthAriaLabel:this.localizeString($D.calendarNextMonthAriaLabel),goToToday:this.localizeString($D.calendarGoToToday)}}focus(){return!!this._inputRef.current&&(this._inputRef.current.focus(),!0)}renderInputControl(){const e=this.placeholder||this.localizeString($D.dateInputDefaultPlaceholder),t=e=>e?this.formatDate(e):"";return g.createElement(ij,{strings:this.getStrings(),internalId:this.internalId,valueChanged:e=>{this.valueChanged(e),this.updateLayout()},value:this.value,placeholder:e,ariaLabelledBy:this.getAriaLabelledBy(),isEnabled:this.isEnabled,isRequired:this.isRequired,formatDate:e=>t(e),ref:this._inputRef})}}const sj=g.forwardRef((e,t)=>{const r=rD();return g.createElement(Kv,{id:e.internalId,appearance:ZO.numberInputAppearance,className:r.numberInput,ref:t,placeholder:e.placeholder,value:void 0!==e.value?e.value:null,min:e.min,max:e.max,precision:10,disabled:!e.isEnabled,input:{"aria-label":e.placeholder,"aria-labelledby":e.ariaLabelledBy,"aria-required":e.isRequired},onChange:(t,r)=>{let n;if(void 0===r.value){if(r.displayValue){const t=Number(r.displayValue);isNaN(t)||(n=void 0!==e.min&&t<e.min?e.min:void 0!==e.max&&t>e.max?e.max:t)}}else n=null!==r.value?r.value:void 0;e.valueChanged(n)}})});sj.displayName="NumberInputComponent";class lj extends UO{constructor(){super(...arguments),this._inputRef=g.createRef()}focus(){var e,t;return!!(null===(e=this._inputRef)||void 0===e?void 0:e.current)&&(null===(t=this._inputRef)||void 0===t||t.current.focus(),!0)}renderInputControl(){return g.createElement(sj,{internalId:this.internalId,valueChanged:e=>{this.valueChanged(e),this.updateLayout()},placeholder:this.placeholder,value:this.value,ariaLabelledBy:this.getAriaLabelledBy(),isEnabled:this.isEnabled,isRequired:this.isRequired,min:this.min,max:this.max,ref:this._inputRef})}}var cj,uj;(uj=cj||(cj={}))[uj.Accent=0]="Accent",uj[uj.Good=1]="Good",uj[uj.Warning=2]="Warning",uj[uj.Attention=3]="Attention",MA(cj,"ProgressBarColor");const dj={[MI.Light]:"#0000001a",[MI.Dark]:"#ffffff26"},fj=gc,hj=Rc,pj=Bc,mj=Lc,gj=pn({accent:{backgroundColor:dj[MI.Light],[`& > .${vy}`]:{backgroundColor:fj}},good:{backgroundColor:dj[MI.Light],[`& > .${vy}`]:{backgroundColor:hj}},warning:{backgroundColor:dj[MI.Light],[`& > .${vy}`]:{backgroundColor:pj}},attention:{backgroundColor:dj[MI.Light],[`& > .${vy}`]:{backgroundColor:mj}}}),vj=pn({accent:{backgroundColor:dj[MI.Dark],[`& > .${vy}`]:{backgroundColor:fj}},good:{backgroundColor:dj[MI.Dark],[`& > .${vy}`]:{backgroundColor:hj}},warning:{backgroundColor:dj[MI.Dark],[`& > .${vy}`]:{backgroundColor:pj}},attention:{backgroundColor:dj[MI.Dark],[`& > .${vy}`]:{backgroundColor:mj}}}),yj=pn({accent:{backgroundColor:dj[MI.Dark],[`& > .${vy}`]:{backgroundColor:Sc,backgroundImage:`linear-gradient(to right, ${Sc}, ${fj}, ${Sc})`}},good:{backgroundColor:dj[MI.Dark],[`& > .${vy}`]:{backgroundColor:Sc,backgroundImage:`linear-gradient(to right, ${Sc}, ${hj}, ${Sc})`}},warning:{backgroundColor:dj[MI.Dark],[`& > .${vy}`]:{backgroundColor:Sc,backgroundImage:`linear-gradient(to right, ${Sc}, ${pj}, ${Sc})`}},attention:{backgroundColor:dj[MI.Dark],[`& > .${vy}`]:{backgroundColor:Sc,backgroundImage:`linear-gradient(to right, ${Sc}, ${mj}, ${Sc})`}}});class bj extends PN{get value(){return this.getValue(bj.valueProperty)}set value(e){this.setValue(bj.valueProperty,e)}get max(){return this.getValue(bj.maxProperty)}set max(e){this.setValue(bj.maxProperty,e)}get color(){return this.getValue(bj.colorProperty)}set color(e){this.setValue(bj.colorProperty,e)}getJsonTypeName(){return bj.jsonTypeName}internalRender(e){return wj({value:this.value,max:this.max,color:this.color,theme:this.theme})}}bj.jsonTypeName="ProgressBar",bj.valueProperty=new bP(dP.v1_5,"value"),bj.maxProperty=new bP(dP.v1_5,"max",100),bj.colorProperty=new kP(dP.v1_5,"color",cj,cj.Accent);const wj=e=>{const t=gj(),r=vj(),n=yj(),o=void 0===e.value,i=e.theme===MI.Light?t:o?n:r;let a=i.accent;if(!o)switch(e.color){case cj.Good:a=i.good;break;case cj.Warning:a=i.warning;break;case cj.Attention:a=i.attention}return g.createElement(wy,{thickness:"large",className:a,value:e.value,max:e.max})};var xj,Sj,kj,Ej;(Sj=xj||(xj={}))[Sj.Tiny=0]="Tiny",Sj[Sj.Small=1]="Small",Sj[Sj.Medium=2]="Medium",Sj[Sj.Large=3]="Large",MA(xj,"ProgressRingSize"),(Ej=kj||(kj={}))[Ej.Before=0]="Before",Ej[Ej.After=1]="After",Ej[Ej.Above=2]="Above",Ej[Ej.Below=3]="Below",MA(kj,"ProgressRingLabelPosition");const Tj={[xj.Tiny]:"tiny",[xj.Small]:"small",[xj.Medium]:"medium",[xj.Large]:"large"},_j={[kj.Before]:"before",[kj.After]:"after",[kj.Above]:"above",[kj.Below]:"below"};class Cj extends PN{get label(){return this.getValue(Cj.labelProperty)}set label(e){this.setValue(Cj.labelProperty,e)}get labelPosition(){return this.getValue(Cj.labelPositionProperty)}set labelPosition(e){this.setValue(Cj.labelPositionProperty,e)}get size(){return this.getValue(Cj.sizeProperty)}set size(e){this.setValue(Cj.sizeProperty,e)}getJsonTypeName(){return Cj.jsonTypeName}internalRender(e){const t=_j[this.labelPosition],r=Tj[this.size];let n;switch(this.horizontalAlignment){case uI.Center:n="center";break;case uI.Right:n="flex-end";break;default:n="flex-start"}return g.createElement("div",{style:{alignSelf:n,display:"flex"}},g.createElement(cy,{label:this.label,labelPosition:t,size:r}))}}var Aj,Ij,Pj,Nj,Bj,Oj;Cj.jsonTypeName="ProgressRing",Cj.labelProperty=new mP(dP.v1_5,"label"),Cj.labelPositionProperty=new kP(dP.v1_5,"labelPosition",kj,kj.Below),Cj.sizeProperty=new kP(dP.v1_5,"size",xj,xj.Medium),(Ij=Aj||(Aj={}))[Ij.Medium=0]="Medium",Ij[Ij.Large=1]="Large",MA(Aj,"RatingSize"),(Nj=Pj||(Pj={}))[Nj.Neutral=0]="Neutral",Nj[Nj.Marigold=1]="Marigold",MA(Pj,"RatingColor"),(Oj=Bj||(Bj={}))[Oj.Default=0]="Default",Oj[Oj.Compact=1]="Compact",MA(Bj,"RatingStyle");const Dj={[Aj.Medium]:"medium",[Aj.Large]:"large"},Rj={[Pj.Neutral]:"neutral",[Pj.Marigold]:"marigold"};class Mj extends PN{get value(){return this.getValue(Mj.valueProperty)}set value(e){this.setValue(Mj.valueProperty,e)}get count(){return this.getValue(Mj.countProperty)}set count(e){this.setValue(Mj.countProperty,e)}get max(){return this.getValue(Mj.maxProperty)}set max(e){this.setValue(Mj.maxProperty,e)}get size(){return this.getValue(Mj.sizeProperty)}set size(e){this.setValue(Mj.sizeProperty,e)}get color(){return this.getValue(Mj.colorProperty)}set color(e){this.setValue(Mj.colorProperty,e)}get style(){return this.getValue(Mj.styleProperty)}set style(e){this.setValue(Mj.styleProperty,e)}internalRender(e){const t=this.max>0?Math.min(this.max,Mj.maxMax):Mj.defaultMax;let r;switch(this.horizontalAlignment){case uI.Right:r="flex-end";break;case uI.Center:r="center"}return g.createElement("div",{style:{display:"flex",justifyContent:r}},g.createElement(wb,{value:this.value,max:t,size:Dj[this.size],color:Rj[this.color],count:this.count,compact:this.style===Bj.Compact}))}getJsonTypeName(){return"Rating"}}Mj.defaultMax=5,Mj.maxMax=5,Mj.valueProperty=new bP(dP.v1_5,"value"),Mj.countProperty=new bP(dP.v1_5,"count"),Mj.maxProperty=new bP(dP.v1_5,"max",Mj.defaultMax),Mj.sizeProperty=new kP(dP.v1_5,"size",Aj,Aj.Large),Mj.colorProperty=new kP(dP.v1_5,"color",Pj,Pj.Neutral),Mj.styleProperty=new kP(dP.v1_5,"style",Bj,Bj.Default);const zj=g.forwardRef((e,t)=>e.isEnabled?g.createElement(hb,{ref:t,step:e.step,id:e.internalId,max:e.max,size:e.size,color:e.color,value:e.value,onChange:(t,r)=>{e.valueChanged(r.value)}}):g.createElement(wb,{value:e.value,max:e.max,size:e.size,color:e.color,valueText:""}));zj.displayName="RatingInputComponent";const jj={[Aj.Medium]:"medium",[Aj.Large]:"large"},Lj={[Pj.Neutral]:"neutral",[Pj.Marigold]:"marigold"};class Fj extends jO{constructor(){super(...arguments),this._inputRef=g.createRef()}get defaultValue(){return this.getValue(Fj.valueProperty)}set defaultValue(e){this.setValue(Fj.valueProperty,e)}get max(){return this.getValue(Fj.maxProperty)}set max(e){this.setValue(Fj.maxProperty,e)}get allowHalfSteps(){return this.getValue(Fj.allowHalfStepsProperty)}set allowHalfSteps(e){this.setValue(Fj.allowHalfStepsProperty,e)}get size(){return this.getValue(Fj.sizeProperty)}set size(e){this.setValue(Fj.sizeProperty,e)}get color(){return this.getValue(Fj.colorProperty)}set color(e){this.setValue(Fj.colorProperty,e)}focus(){var e;if(null===(e=this._inputRef)||void 0===e?void 0:e.current){const e=this._inputRef.current,t=e.querySelector("input[type=radio]:checked")||e.querySelector("input[type=radio]:enabled");if(t)return null==t||t.focus(),!0}return!1}internalParse(e,t){super.internalParse(e,t),this.max>0&&this._value>this.max&&(this._value=this.max)}renderInputControl(){const e=this.max>0?Math.min(this.max,Fj.maxMax):Fj.defaultMax;return g.createElement(zj,{ref:this._inputRef,internalId:this.internalId,isEnabled:this.isEnabled,isRequired:this.isRequired,max:e,step:this.allowHalfSteps?.5:1,size:jj[this.size],color:Lj[this.color],value:this.value,valueChanged:e=>{this.valueChanged(e),this.updateLayout()}})}getJsonTypeName(){return"Input.Rating"}isSet(){return void 0!==this.value&&!isNaN(this.value)}isValid(){return void 0===this.value?!this.isRequired:this.isValidValue(this.value)}isValidValue(e){let t=!0;return void 0!==this.max&&(t=t&&e<=this.max),t}get value(){return this._value}set value(e){this._value===e||void 0!==e&&!this.isValidValue(e)||this.valueChanged(e)}}Fj.defaultMax=5,Fj.maxMax=5,Fj.valueProperty=new bP(dP.v1_5,"value"),Fj.maxProperty=new bP(dP.v1_5,"max",Fj.defaultMax),Fj.allowHalfStepsProperty=new yP(dP.v1_5,"allowHalfSteps",!1),Fj.sizeProperty=new kP(dP.v1_5,"size",Aj,Aj.Large),Fj.colorProperty=new kP(dP.v1_5,"color",Pj,Pj.Neutral);const Vj=g.forwardRef((e,t)=>{var r,n;const[o,i]=g.useState(!1),a=rD(),s=(t,r)=>{e.valueChanged(r.value)},l=t=>{t.ctrlKey&&"Enter"===t.key&&e.inlineAction&&e.inlineAction.isEffectivelyEnabled()&&e.inlineAction.execute()},c=e.maxLength&&e.maxLength>0?e.maxLength:void 0,u=e.style===AI.Password;if(!e.isMultiline){const n=u?o?"text":"password":AI[e.style].toLowerCase();let d;if(u){let t,r;o?(t=g.createElement(wd,null),r=e.strings.passwordInputIconHideAriaLabel):(t=g.createElement(bd,null),r=e.strings.passwordInputIconRevealAriaLabel);const n=()=>{i(!o)};d=g.createElement(Dp,{icon:t,appearance:"transparent",disabled:!e.isEnabled,"aria-label":r,onClick:n})}const f=u?a.passwordInputHideRevealButton:void 0;return g.createElement(fg,{id:e.internalId,className:a.textInput,appearance:ZO.basicInputAppearance,type:n,ref:t,placeholder:e.placeholder,value:null!==(r=e.value)&&void 0!==r?r:"",maxLength:c,contentAfter:d,disabled:!e.isEnabled,input:{className:f,"aria-label":e.placeholder,"aria-labelledby":e.ariaLabelledBy,"aria-required":e.isRequired},onChange:s,onKeyDown:l})}return g.createElement(my,{id:e.internalId,className:a.multilineTextInput,appearance:ZO.textareaAppearance,ref:t,placeholder:e.placeholder,maxLength:c,value:null!==(n=e.value)&&void 0!==n?n:"",disabled:!e.isEnabled,textarea:{className:a.multilineTextInputTextArea,"aria-label":e.placeholder,"aria-labelledby":e.ariaLabelledBy,"aria-required":e.isRequired},onChange:s,onKeyDown:l})});Vj.displayName="TextInputComponent";class qj extends WO{constructor(){super(...arguments),this._inputRef=g.createRef()}focus(){var e,t;return!!(null===(e=this._inputRef)||void 0===e?void 0:e.current)&&(null===(t=this._inputRef)||void 0===t||t.current.focus(),!0)}internalParse(e,t){super.internalParse(e,t),this.style===AI.Password&&this.isMultiline&&(this.style=AI.Text)}renderInputControl(){return g.createElement(Vj,{internalId:this.internalId,valueChanged:e=>{this.valueChanged(e),this.updateLayout()},value:this.value,inlineAction:this.inlineAction,maxLength:this.maxLength,style:this.style,isMultiline:this.isMultiline,placeholder:this.placeholder,ariaLabelledBy:this.getAriaLabelledBy(),isEnabled:this.isEnabled,isRequired:this.isRequired,strings:{passwordInputIconHideAriaLabel:this.localizeString($D.passwordInputHidePasswordAriaLabel),passwordInputIconRevealAriaLabel:this.localizeString($D.passwordInputRevealPasswordAriaLabel)},ref:this._inputRef})}}function Hj(e){return!isNaN(e.getTime())}function Uj(e){return e?Hj(e)?e.toISOString():"invalid":""}function Wj(e){if(""===e||"invalid"===e)return null;const t=new Date(e);return Hj(t)?t:null}function $j(e,{hourCycle:t,showSeconds:r}={}){return e.toLocaleTimeString(void 0,{hour:"numeric",hourCycle:t,minute:"2-digit",second:r?"2-digit":void 0})}const Gj=/^((1[0-2]|0?[0-9]):([0-5][0-9]):([0-5][0-9])\s([AaPp][Mm]))$/,Yj=/^((1[0-2]|0?[0-9]):[0-5][0-9]\s([AaPp][Mm]))$/,Kj=/^([0-1]?[0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9]$/,Xj=/^([0-1]?[0-9]|2[0-4]):[0-5][0-9]$/;const Jj=(e,t)=>{var r;const{dateAnchor:n,defaultSelectedTime:o,endHour:i=24,formatDateToTimeString:a=$j,hourCycle:s,increment:l=30,onTimeChange:c,selectedTime:u,showSeconds:d=!1,startHour:f=0,parseTimeStringToDate:h,...p}=e,{freeform:m=!1}=p;var v;const{dateStartAnchor:y,dateEndAnchor:b}=Qj(null!==(v=null!=n?n:u)&&void 0!==v?v:o,f,i),w=g.useMemo(()=>function(e,t,r){if(r<=0)return console.error("Increment value should be a positive number."),[];const n=[],o=new Date(e);for(;o<t;)n.push(new Date(o)),o.setMinutes(o.getMinutes()+r);return n}(y,b,l).map(e=>({date:e,key:Uj(e),text:a(e,{showSeconds:d,hourCycle:s})})),[b,y,a,s,l,d]),[x,S]=co({state:u,defaultState:o,initialState:null}),[k,E]=g.useState(void 0),T=vo((e,t)=>{S(t.selectedTime),E(t.selectedTimeText),null==c||c(e,t)}),_=g.useMemo(()=>{const e=Uj(x),t=w.find(t=>t.key===e);return t?[t.key]:[]},[w,x]),C=g.useRef(null),A=vo((e,t)=>{if(m&&void 0===t.optionValue&&(!p.clearable||"click"!==e.type||e.currentTarget!==C.current))return;var r;const n={selectedTime:Wj(null!==(r=t.optionValue)&&void 0!==r?r:""),selectedTimeText:t.optionText,errorType:void 0};T(e,n)}),I=zm({autoComplete:"off",...p,selectedOptions:_,onOptionSelect:A,children:w.map(e=>g.createElement(Bm,{key:e.key,value:e.key},e.text))},t),P=g.useCallback(e=>function(e,t,r,n){if(!e)return{date:null,errorType:"required-input"};const{hourCycle:o,showSeconds:i}=n,a="h11"===o||"h12"===o;if(!(a?i?Gj:Yj:i?Kj:Xj).test(e))return{date:null,errorType:"invalid-input"};const s=/^(\d\d?):(\d\d):?(\d\d)? ?([ap]m)?/i.exec(e);if(!s)return{date:null,errorType:"invalid-input"};const[,l,c,u,d]=s;let f=l;a&&d&&("pm"===d.toLowerCase()&&12!==+f?f=(+f+12).toString():"am"===d.toLowerCase()&&12===+f&&(f="0"));const h=new Date(t);return h.setHours(+f,+c,u?+u:0),h<t&&h.setDate(h.getDate()+1),h>=r?{date:h,errorType:"out-of-bounds"}:{date:h}}(e,y,b,{hourCycle:s,showSeconds:d}),[b,y,s,d]),N=xo(null===(r=I.clearIcon)||void 0===r?void 0:r.ref,C),B={...I,clearIcon:I.clearIcon?{...I.clearIcon,ref:N}:void 0,freeform:m,parseTimeStringToDate:null!=h?h:P,submittedText:k};return eL(B),Zj(B,T),B},Qj=(e,t,r)=>{const[n]=g.useState(()=>new Date),o=Uj(null!=e?e:null);return g.useMemo(()=>{const o=null!=e?e:n,i=function(e,t){const r=new Date(e);return r.setHours(t,0,0,0),r}(o,t),a=function(e,t,r){const n=new Date(e);return(t>r||24===r)&&n.setDate(n.getDate()+1),n.setHours(24===r?0:r,0,0,0),n}(o,t,r);return{dateStartAnchor:i,dateEndAnchor:a}},[r,n,o,t])},Zj=(e,t)=>{const{getOptionById:r,freeform:n,parseTimeStringToDate:o,submittedText:i,value:a,activeDescendantController:s}=e,l=g.useCallback(()=>{const e=s.active();return e?r(e):null},[s,r]);g.useEffect(()=>{if(n&&a){const e=l();if(!e)return;0===e.text.toLowerCase().indexOf(a.toLowerCase())||s.blur()}},[n,a,s,l]);const c=vo(e=>{if(!n)return;const{date:r,errorType:s}=o(a);i!==a&&(null==t||t(e,{selectedTime:r,selectedTimeText:a,errorType:s}))}),u=vo(e=>{l()||e.key!==Su||c(e)});e.root.onKeyDown=Bo(u,e.root.onKeyDown);const d=g.useRef(null);e.root.ref=xo(e.root.ref,d),e.listbox&&(e.listbox.tabIndex=-1),e.expandIcon&&(e.expandIcon.tabIndex=-1);const f=vo(e=>{(!e.relatedTarget||!Lo(d.current,e.relatedTarget))&&c(e)});e.input.onBlur=Bo(f,e.input.onBlur)},eL=e=>{var t;const r=Kp(),n=wo("timepicker-chevron-");if((null==r?void 0:r.labelId)&&"Open"===(null===(t=e.expandIcon)||void 0===t?void 0:t["aria-label"])){var o;const t=null!==(o=e.expandIcon.id)&&void 0!==o?o:n;e.expandIcon["aria-labelledby"]=`${t} ${r.labelId}`}},tL="fui-TimePicker",rL="fui-TimePicker__input",nL="fui-TimePicker__expandIcon",oL="fui-TimePicker__clearIcon",iL="fui-TimePicker__listbox",aL=mn({listbox:{Bxyxcbc:"f1vfnyiv"}},{d:[".f1vfnyiv{max-height:min(80vh, 416px);}"]}),sL=g.forwardRef((e,t)=>{const r=Jj(e,t),n=ym(r);return(e=>{const t=aL();e.root.className=Qe(tL,e.root.className),e.input.className=Qe(rL,e.input.className),e.expandIcon&&(e.expandIcon.className=Qe(nL,e.expandIcon.className)),e.clearIcon&&(e.clearIcon.className=Qe(oL,e.clearIcon.className)),e.listbox&&(e.listbox.className=Qe(iL,t.listbox,e.listbox.className)),Gm(e)})(r),io("useTimePickerCompatStyles_unstable")(r),jm(r,n)});function lL(e){return e?$j(e):""}sL.displayName="TimePicker";const cL=g.forwardRef((e,t)=>{var r;const[n,o]=g.useState(lL(e.value));g.useEffect(()=>{o(lL(e.value))},[e.value]);const i=rD();return g.createElement(sL,{id:e.internalId,className:i.timeInput,appearance:ZO.timeInputAppearance,ref:t,placeholder:e.placeholder,dateAnchor:$O.referenceDate,selectedTime:e.value||null,value:n,startHour:null===(r=e.min)||void 0===r?void 0:r.getHours(),endHour:e.max?e.max.getHours()+1:void 0,freeform:!0,disabled:!e.isEnabled,required:!1,input:{"aria-label":e.placeholder,"aria-labelledby":e.ariaLabelledBy,"aria-required":e.isRequired},listbox:{style:{maxHeight:"212px"}},positioning:{autoSize:"width"},onInput:e=>{o(e.target.value)},onTimeChange:(t,r)=>{if("required-input"===r.errorType)o(""),e.valueChanged(void 0);else if(void 0!==r.errorType)o(lL(e.value));else{let t=null!==r.selectedTime?r.selectedTime:void 0;void 0!==t&&(void 0!==e.min&&t<e.min?t=e.min:void 0!==e.max&&t>e.max&&(t=e.max)),o(lL(t)),e.valueChanged(t)}},inlinePopup:ZO.shouldUseInlinePopup})});cL.displayName="TimeInputComponent";class uL extends GO{constructor(){super(...arguments),this._inputRef=g.createRef()}focus(){var e,t;return!!(null===(e=this._inputRef)||void 0===e?void 0:e.current)&&(null===(t=this._inputRef)||void 0===t||t.current.focus(),!0)}renderInputControl(){const e=this.placeholder||this.localizeString($D.timeInputDefaultPlaceholder);return g.createElement(cL,{internalId:this.internalId,valueChanged:e=>{this.valueChanged(e),this.updateLayout()},placeholder:e,value:this.valueAsDate,ariaLabelledBy:this.getAriaLabelledBy(),isEnabled:this.isEnabled,isRequired:this.isRequired,min:this.minAsDate,max:this.maxAsDate,ref:this._inputRef})}}const dL=g.forwardRef((e,t)=>{const r=rD(),n=e.wrap?r.toggleInputLabelWrap:r.toggleInputLabelNoWrap;let o=e.title;if(qI.useMarkdownInRadioButtonAndCheckbox&&e.parent){const t=new jB(e.title);t.wrap=e.wrap,t.setParent(e.parent),o=g.createElement(CN,{cardObject:t})}return g.createElement(fm,{id:e.internalId,ref:t,className:r.toggleInput,label:{id:e.checkboxLabelId,className:n,children:o},disabled:!e.isEnabled,checked:e.value,input:{"aria-label":e.title,"aria-labelledby":e.ariaLabelledBy,"aria-required":e.isRequired},onChange:(t,r)=>{"boolean"==typeof r.checked&&e.valueChanged(r.checked)}})});dL.displayName="ToggleInputComponent";class fL extends XO{constructor(){super(...arguments),this._inputRef=g.createRef(),this.checkboxLabelId=nP()}focus(){return!!this._inputRef.current&&(this._inputRef.current.focus(),!0)}getAllLabelIds(){const e=[];return this.labelledBy&&e.push(this.labelledBy),e.push(this.labelId,this.checkboxLabelId,this.errorId),e}renderInputControl(){return g.createElement(dL,{internalId:this.internalId,checkboxLabelId:this.checkboxLabelId,ref:this._inputRef,isEnabled:this.isEnabled,title:this.title,value:this.value===this.valueOn,valueChanged:e=>{const t=e?this.valueOn:this.valueOff;this.valueChanged(t),this.updateLayout()},isRequired:this.isRequired,wrap:this.wrap,ariaLabelledBy:this.getAriaLabelledBy(),parent:this})}}const hL=document.createElement("i");function pL(e){const t="&"+e+";";hL.innerHTML=t;const r=hL.textContent;return(59!==r.charCodeAt(r.length-1)||"semi"===e)&&(r!==t&&r)}function mL(e,t,r,n){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,r=r>0?r:0,n.length<1e4)i=Array.from(n),i.unshift(t,r),e.splice(...i);else for(r&&e.splice(t,r);a<n.length;)i=n.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function gL(e,t){return e.length>0?(mL(e,e.length,0,t),e):t}const vL={}.hasOwnProperty;function yL(e){const t={};let r=-1;for(;++r<e.length;)bL(t,e[r]);return t}function bL(e,t){let r;for(r in t){const n=(vL.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r];let i;if(o)for(i in o){vL.call(n,i)||(n[i]=[]);const e=o[i];wL(n[i],Array.isArray(e)?e:e?[e]:[])}}}function wL(e,t){let r=-1;const n=[];for(;++r<t.length;)("after"===t[r].add?e:n).push(t[r]);mL(e,0,0,n)}function xL(e){const t={};let r=-1;for(;++r<e.length;)SL(t,e[r]);return t}function SL(e,t){let r;for(r in t){const n=(vL.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r];let i;if(o)for(i in o)n[i]=o[i]}}const kL={'"':"quot","&":"amp","<":"lt",">":"gt"};function EL(e){return e.replace(/["&<>]/g,function(e){return"&"+kL[e]+";"})}function TL(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const _L=jL(/[A-Za-z]/),CL=jL(/[\dA-Za-z]/),AL=jL(/[#-'*+\--9=?A-Z^-~]/);function IL(e){return null!==e&&(e<32||127===e)}const PL=jL(/\d/),NL=jL(/[\dA-Fa-f]/),BL=jL(/[!-/:-@[-`{-~]/);function OL(e){return null!==e&&e<-2}function DL(e){return null!==e&&(e<0||32===e)}function RL(e){return-2===e||-1===e||32===e}const ML=jL(new RegExp("\\p{P}|\\p{S}","u")),zL=jL(/\s/);function jL(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function LL(e,t){const r=EL(function(e){const t=[];let r=-1,n=0,o=0;for(;++r<e.length;){const i=e.charCodeAt(r);let a="";if(37===i&&CL(e.charCodeAt(r+1))&&CL(e.charCodeAt(r+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(r+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(n,r),encodeURIComponent(a)),n=r+o+1,a=""),o&&(r+=o,o=0)}return t.join("")+e.slice(n)}(e||""));if(!t)return r;const n=r.indexOf(":"),o=r.indexOf("?"),i=r.indexOf("#"),a=r.indexOf("/");return n<0||a>-1&&n>a||o>-1&&n>o||i>-1&&n>i||t.test(r.slice(0,n))?r:""}const FL={}.hasOwnProperty,VL=/^(https?|ircs?|mailto|xmpp)$/i,qL=/^https?$/i;function HL(e){const t=e||{};let r=!0;const n={},o=[[]],i=[],a=[],s=xL([{enter:{blockQuote:function(){a.push(!1),b(),g("<blockquote>")},codeFenced:function(){b(),g("<pre><code"),f("fencesCount",0)},codeFencedFenceInfo:p,codeFencedFenceMeta:p,codeIndented:function(){b(),g("<pre><code>")},codeText:function(){f("inCodeText",!0),g("<code>")},content:function(){f("slurpAllLineEndings",!0)},definition:function(){p(),i.push({})},definitionDestinationString:function(){p(),f("ignoreEncode",!0)},definitionLabelString:p,definitionTitleString:p,emphasis:function(){g("<em>")},htmlFlow:function(){b(),A()},htmlText:A,image:function(){i.push({image:!0}),r=void 0},label:p,link:function(){i.push({})},listItemMarker:function(){h("expectFirstItem")?g(">"):S();b(),g("<li>"),f("expectFirstItem"),f("lastWasTag")},listItemValue:function(e){if(h("expectFirstItem")){const t=Number.parseInt(this.sliceSerialize(e),10);1!==t&&g(' start="'+w(String(t))+'"')}},listOrdered:function(e){a.push(!e._loose),b(),g("<ol"),f("expectFirstItem",!0)},listUnordered:function(e){a.push(!e._loose),b(),g("<ul"),f("expectFirstItem",!0)},paragraph:function(){a[a.length-1]||(b(),g("<p>"));f("slurpAllLineEndings")},reference:p,resource:function(){p(),i[i.length-1].destination=""},resourceDestinationString:function(){p(),f("ignoreEncode",!0)},resourceTitleString:p,setextHeading:function(){p(),f("slurpAllLineEndings")},strong:function(){g("<strong>")}},exit:{atxHeading:function(){g("</h"+h("headingRank")+">"),f("headingRank")},atxHeadingSequence:function(e){if(h("headingRank"))return;f("headingRank",this.sliceSerialize(e).length),b(),g("<h"+h("headingRank")+">")},autolinkEmail:function(e){const t=this.sliceSerialize(e);g('<a href="'+LL("mailto:"+t)+'">'),v(w(t)),g("</a>")},autolinkProtocol:function(e){const r=this.sliceSerialize(e);g('<a href="'+LL(r,t.allowDangerousProtocol?void 0:VL)+'">'),v(w(r)),g("</a>")},blockQuote:function(){a.pop(),b(),g("</blockquote>"),f("slurpAllLineEndings")},characterEscapeValue:T,characterReferenceMarkerHexadecimal:I,characterReferenceMarkerNumeric:I,characterReferenceValue:function(e){const t=this.sliceSerialize(e);v(w(h("characterReferenceType")?function(e,t){const r=Number.parseInt(e,t);return r<9||11===r||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||!(65535&~r)||65534==(65535&r)||r>1114111?"�":String.fromCodePoint(r)}(t,"characterReferenceMarkerNumeric"===h("characterReferenceType")?10:16):pL(t))),f("characterReferenceType")},codeFenced:k,codeFencedFence:function(){const e=h("fencesCount")||0;e||(g(">"),f("slurpOneLineEnding",!0));f("fencesCount",e+1)},codeFencedFenceInfo:function(){g(' class="language-'+m()+'"')},codeFencedFenceMeta:x,codeFlowValue:function(e){v(w(this.sliceSerialize(e))),f("flowCodeSeenData",!0)},codeIndented:k,codeText:function(){f("inCodeText"),g("</code>")},codeTextData:T,data:T,definition:function(){const e=TL(i[i.length-1].labelId);m(),FL.call(n,e)||(n[e]=i[i.length-1]);i.pop()},definitionDestinationString:function(){i[i.length-1].destination=m(),f("ignoreEncode")},definitionLabelString:function(e){m(),i[i.length-1].labelId=this.sliceSerialize(e)},definitionTitleString:function(){i[i.length-1].title=m()},emphasis:function(){g("</em>")},hardBreakEscape:_,hardBreakTrailing:_,htmlFlow:C,htmlFlowData:T,htmlText:C,htmlTextData:T,image:E,label:function(){i[i.length-1].label=m()},labelText:function(e){i[i.length-1].labelId=this.sliceSerialize(e)},lineEnding:function(e){if(h("slurpAllLineEndings"))return;if(h("slurpOneLineEnding"))return void f("slurpOneLineEnding");if(h("inCodeText"))return void v(" ");v(w(this.sliceSerialize(e)))},link:E,listOrdered:function(){S(),a.pop(),y(),g("</ol>")},listUnordered:function(){S(),a.pop(),y(),g("</ul>")},paragraph:function(){a[a.length-1]?f("slurpAllLineEndings",!0):g("</p>")},reference:x,referenceString:function(e){i[i.length-1].referenceId=this.sliceSerialize(e)},resource:x,resourceDestinationString:function(){i[i.length-1].destination=m(),f("ignoreEncode")},resourceTitleString:function(){i[i.length-1].title=m()},setextHeading:function(){const e=m();b(),g("<h"+h("headingRank")+">"),v(e),g("</h"+h("headingRank")+">"),f("slurpAllLineEndings"),f("headingRank")},setextHeadingLineSequence:function(e){f("headingRank",61===this.sliceSerialize(e).charCodeAt(0)?1:2)},setextHeadingText:function(){f("slurpAllLineEndings",!0)},strong:function(){g("</strong>")},thematicBreak:function(){b(),g("<hr />")}}},...t.htmlExtensions||[]]),l={definitions:n,tightStack:a},c={buffer:p,encode:w,getData:h,lineEndingIfNeeded:b,options:t,raw:v,resume:m,setData:f,tag:g};let u=t.defaultLineEnding;return function(e){let t=-1,r=0;const n=[];let i=[],a=[];for(;++t<e.length;)u||"lineEnding"!==e[t][1].type&&"lineEndingBlank"!==e[t][1].type||(u=e[t][2].sliceSerialize(e[t][1])),"listOrdered"!==e[t][1].type&&"listUnordered"!==e[t][1].type||("enter"===e[t][0]?n.push(t):d(e.slice(n.pop(),t))),"definition"===e[t][1].type&&("enter"===e[t][0]?(a=gL(a,e.slice(r,t)),r=t):(i=gL(i,e.slice(r,t+1)),r=t+1));i=gL(i,a),i=gL(i,e.slice(r)),t=-1;const l=i;s.enter.null&&s.enter.null.call(c);for(;++t<e.length;){const e=s[l[t][0]],r=l[t][1].type,n=e[r];FL.call(e,r)&&n&&n.call({sliceSerialize:l[t][2].sliceSerialize,...c},l[t][1])}s.exit.null&&s.exit.null.call(c);return o[0].join("")};function d(e){const t=e.length;let r,n=0,o=0,i=!1;for(;++n<t;){const t=e[n];if(t[1]._container)r=void 0,"enter"===t[0]?o++:o--;else switch(t[1].type){case"listItemPrefix":"exit"===t[0]&&(r=!0);break;case"linePrefix":break;case"lineEndingBlank":"enter"!==t[0]||o||(r?r=void 0:i=!0);break;default:r=void 0}}e[0][1]._loose=i}function f(e,t){l[e]=t}function h(e){return l[e]}function p(){o.push([])}function m(){return o.pop().join("")}function g(e){r&&(f("lastWasTag",!0),o[o.length-1].push(e))}function v(e){f("lastWasTag"),o[o.length-1].push(e)}function y(){v(u||"\n")}function b(){const e=o[o.length-1],t=e[e.length-1],r=t?t.charCodeAt(t.length-1):null;10!==r&&13!==r&&null!==r&&y()}function w(e){return h("ignoreEncode")?e:EL(e)}function x(){m()}function S(){h("lastWasTag")&&!h("slurpAllLineEndings")&&b(),g("</li>"),f("slurpAllLineEndings")}function k(){const e=h("fencesCount");void 0!==e&&e<2&&l.tightStack.length>0&&!h("lastWasTag")&&y(),h("flowCodeSeenData")&&b(),g("</code></pre>"),void 0!==e&&e<2&&b(),f("flowCodeSeenData"),f("fencesCount"),f("slurpOneLineEnding")}function E(){let e=i.length-1;const o=i[e],a=o.referenceId||o.labelId,s=void 0===o.destination?n[TL(a)]:o;for(r=!0;e--;)if(i[e].image){r=void 0;break}o.image?(g('<img src="'+LL(s.destination,t.allowDangerousProtocol?void 0:qL)+'" alt="'),v(o.label),g('"')):g('<a href="'+LL(s.destination,t.allowDangerousProtocol?void 0:VL)+'"'),g(s.title?' title="'+s.title+'"':""),o.image?g(" />"):(g(">"),v(o.label),g("</a>")),i.pop()}function T(e){v(w(this.sliceSerialize(e)))}function _(){g("<br />")}function C(){f("ignoreEncode")}function A(){t.allowDangerousHtml&&f("ignoreEncode",!0)}function I(e){f("characterReferenceType",e.type)}}function UL(e,t,r,n){const o=n?n-1:Number.POSITIVE_INFINITY;let i=0;return function(n){if(RL(n))return e.enter(r),a(n);return t(n)};function a(n){return RL(n)&&i++<o?(e.consume(n),a):(e.exit(r),t(n))}}const WL={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(r){if(null===r)return void e.consume(r);return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),UL(e,t,"linePrefix")},function(t){return e.enter("paragraph"),n(t)});let r;return t;function n(t){const n=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=n),r=n,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):OL(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),o)}}};const $L={tokenize:function(e){const t=this,r=[];let n,o,i,a=0;return s;function s(n){if(a<r.length){const o=r[a];return t.containerState=o[1],e.attempt(o[0].continuation,l,c)(n)}return c(n)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&y();const r=t.events.length;let o,i=r;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}v(a);let s=r;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return mL(t.events,i+1,0,t.events.slice(r)),t.events.length=s,c(e)}return s(e)}function c(o){if(a===r.length){if(!n)return f(o);if(n.currentConstruct&&n.currentConstruct.concrete)return p(o);t.interrupt=Boolean(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(GL,u,d)(o)}function u(e){return n&&y(),v(a),f(e)}function d(e){return t.parser.lazy[t.now().line]=a!==r.length,i=t.now().offset,p(e)}function f(r){return t.containerState={},e.attempt(GL,h,p)(r)}function h(e){return a++,r.push([t.currentConstruct,t.containerState]),f(e)}function p(r){return null===r?(n&&y(),v(0),void e.consume(r)):(n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:o}),m(r))}function m(r){return null===r?(g(e.exit("chunkFlow"),!0),v(0),void e.consume(r)):OL(r)?(e.consume(r),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(r),m)}function g(e,r){const s=t.sliceStream(e);if(r&&s.push(null),e.previous=o,o&&(o.next=e),o=e,n.defineSkip(e.start),n.write(s),t.parser.lazy[e.start.line]){let e=n.events.length;for(;e--;)if(n.events[e][1].start.offset<i&&(!n.events[e][1].end||n.events[e][1].end.offset>i))return;const r=t.events.length;let o,s,l=r;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){s=t.events[l][1].end;break}o=!0}for(v(a),e=r;e<t.events.length;)t.events[e][1].end={...s},e++;mL(t.events,l+1,0,t.events.slice(r)),t.events.length=e}}function v(n){let o=r.length;for(;o-- >n;){const n=r[o];t.containerState=n[1],n[0].exit.call(t,e)}r.length=n}function y(){n.write([null]),o=void 0,n=void 0,t.containerState._closeFlow=void 0}}},GL={tokenize:function(e,t,r){return UL(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function YL(e){return null===e||DL(e)||zL(e)?1:ML(e)?2:void 0}function KL(e,t,r){const n=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!n.includes(i)&&(t=i(t,r),n.push(i))}return t}const XL={name:"attention",resolveAll:function(e,t){let r,n,o,i,a,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(r=u;r--;)if("exit"===e[r][0]&&"attentionSequence"===e[r][1].type&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[r][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[r][1].end},f={...e[u][1].start};JL(d,-s),JL(f,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:f},o={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[u][1].start}},n={type:s>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},e[r][1].end={...i.start},e[u][1].start={...a.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=gL(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=gL(l,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=gL(l,KL(t.parser.constructs.insideSpan.null,e.slice(r+1,u),t)),l=gL(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",n,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=gL(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,mL(e,r-1,u-r+3,l),u=r+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,o=YL(n);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===i)return e.consume(s),a;const l=e.exit("attentionSequence"),c=YL(s),u=!c||2===c&&o||r.includes(s),d=!o||2===o&&c||r.includes(n);return l._open=Boolean(42===i?u:u&&(o||!d)),l._close=Boolean(42===i?d:d&&(c||!u)),t(s)}}};function JL(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const QL={name:"autolink",tokenize:function(e,t,r){let n=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return _L(t)?(e.consume(t),i):64===t?r(t):l(t)}function i(e){return 43===e||45===e||46===e||CL(e)?(n=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),n=0,s):(43===t||45===t||46===t||CL(t))&&n++<32?(e.consume(t),a):(n=0,l(t))}function s(n){return 62===n?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):null===n||32===n||60===n||IL(n)?r(n):(e.consume(n),s)}function l(t){return 64===t?(e.consume(t),c):AL(t)?(e.consume(t),l):r(t)}function c(e){return CL(e)?u(e):r(e)}function u(r){return 46===r?(e.consume(r),n=0,c):62===r?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):d(r)}function d(t){if((45===t||CL(t))&&n++<63){const r=45===t?d:u;return e.consume(t),r}return r(t)}}};const ZL={partial:!0,tokenize:function(e,t,r){return function(t){return RL(t)?UL(e,n,"linePrefix")(t):n(t)};function n(e){return null===e||OL(e)?t(e):r(e)}}};const eF={continuation:{tokenize:function(e,t,r){const n=this;return function(t){if(RL(t))return UL(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(n){return e.attempt(eF,t,r)(n)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,r){const n=this;return function(t){if(62===t){const r=n.containerState;return r.open||(e.enter("blockQuote",{_container:!0}),r.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return r(t)};function o(r){return RL(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}}};const tF={name:"characterEscape",tokenize:function(e,t,r){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),n};function n(n){return BL(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}};const rF={name:"characterReference",tokenize:function(e,t,r){const n=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,i=CL,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=NL,c):(e.enter("characterReferenceValue"),o=7,i=PL,c(t))}function c(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==CL||pL(n.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):r(s)}return i(s)&&a++<o?(e.consume(s),c):r(s)}}};const nF={partial:!0,tokenize:function(e,t,r){const n=this;return function(t){if(null===t)return r(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}},oF={concrete:!0,name:"codeFenced",tokenize:function(e,t,r){const n=this,o={partial:!0,tokenize:function(e,t,r){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),RL(t)?UL(e,c,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):r(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=s?(e.exit("codeFencedFenceSequence"),RL(t)?UL(e,d,"whitespace")(t):d(t)):r(t)}function d(n){return null===n||OL(n)?(e.exit("codeFencedFence"),t(n)):r(n)}}};let i,a=0,s=0;return function(t){return function(t){const r=n.events[n.events.length-1];return a=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(s++,e.consume(t),l):s<3?r(t):(e.exit("codeFencedFenceSequence"),RL(t)?UL(e,c,"whitespace")(t):c(t))}function c(r){return null===r||OL(r)?(e.exit("codeFencedFence"),n.interrupt?t(r):e.check(nF,h,y)(r)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(r))}function u(t){return null===t||OL(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):RL(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),UL(e,d,"whitespace")(t)):96===t&&t===i?r(t):(e.consume(t),u)}function d(t){return null===t||OL(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||OL(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?r(t):(e.consume(t),f)}function h(t){return e.attempt(o,y,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&RL(t)?UL(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||OL(t)?e.check(nF,h,y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||OL(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function y(r){return e.exit("codeFenced"),t(r)}}};const iF={name:"codeIndented",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("codeIndented"),UL(e,o,"linePrefix",5)(t)};function o(e){const t=n.events[n.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):r(e)}function i(t){return null===t?s(t):OL(t)?e.attempt(aF,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||OL(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(r){return e.exit("codeIndented"),t(r)}}},aF={partial:!0,tokenize:function(e,t,r){const n=this;return o;function o(t){return n.parser.lazy[n.now().line]?r(t):OL(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):UL(e,i,"linePrefix",5)(t)}function i(e){const i=n.events[n.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):OL(e)?o(e):r(e)}}};const sF={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,r,n=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[n][1].type&&"space"!==e[n][1].type))for(t=o;++t<n;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[n][1].type="codeTextPadding",o+=2,n-=2;break}t=o-1,n++;for(;++t<=n;)void 0===r?t!==n&&"lineEnding"!==e[t][1].type&&(r=t):t!==n&&"lineEnding"!==e[t][1].type||(e[r][1].type="codeTextData",t!==r+2&&(e[r][1].end=e[t-1][1].end,e.splice(r+2,t-r-2),n-=t-r-2,t=r+2),r=void 0);return e},tokenize:function(e,t,r){let n,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?r(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(o=e.enter("codeTextSequence"),n=0,c(t)):OL(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||OL(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(r){return 96===r?(e.consume(r),n++,c):n===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(o.type="codeTextData",l(r))}}};class lF{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const r=null==t?Number.POSITIVE_INFINITY:t;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,t,r){const n=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return r&&cF(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),cF(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),cF(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);cF(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);cF(this.left,t.reverse())}}}function cF(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function uF(e){const t={};let r,n,o,i,a,s,l,c=-1;const u=new lF(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(r=u.get(c),c&&"chunkFlow"===r[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=r[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===r[0])r[1].contentType&&(Object.assign(t,dF(u,c)),c=t[c],l=!0);else if(r[1]._container){for(o=c,n=void 0;o--;)if(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(u.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=o);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;n&&(r[1].end={...u.get(n)[1].start},a=u.slice(n,c),a.unshift(r),u.splice(n,c-n+1,a))}}return mL(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function dF(e,t){const r=e.get(t)[1],n=e.get(t)[2];let o=t-1;const i=[];let a=r._tokenizer;a||(a=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],c={};let u,d,f=-1,h=r,p=0,m=0;const g=[m];for(;h;){for(;e.get(++o)[1]!==h;);i.push(o),h._tokenizer||(u=n.sliceStream(h),h.next||u.push(null),d&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=r;++f<s.length;)"exit"===s[f][0]&&"enter"===s[f-1][0]&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(m=f+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),f=g.length;f--;){const t=s.slice(g[f],g[f+1]),r=i.pop();l.push([r,r+t.length-1]),e.splice(r,2,t)}for(l.reverse(),f=-1;++f<l.length;)c[p+l[f][0]]=p+l[f][1],p+=l[f][1]-l[f][0]-1;return c}const fF={resolve:function(e){return uF(e),e},tokenize:function(e,t){let r;return function(t){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(t)};function n(t){return null===t?o(t):OL(t)?e.check(hF,i,o)(t):(e.consume(t),n)}function o(r){return e.exit("chunkContent"),e.exit("content"),t(r)}function i(t){return e.consume(t),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}}},hF={partial:!0,tokenize:function(e,t,r){const n=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),UL(e,o,"linePrefix")};function o(o){if(null===o||OL(o))return r(o);const i=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}};function pF(e,t,r,n,o,i,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(n),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||IL(t))return r(t);return e.enter(n),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),p(t)};function d(r){return 62===r?(e.enter(i),e.consume(r),e.exit(i),e.exit(o),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(r))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||OL(t)?r(t):(e.consume(t),92===t?h:f)}function h(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function p(o){return u||null!==o&&41!==o&&!DL(o)?u<c&&40===o?(e.consume(o),u++,p):41===o?(e.consume(o),u--,p):null===o||32===o||40===o||IL(o)?r(o):(e.consume(o),92===o?m:p):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(n),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function mF(e,t,r,n,o,i){const a=this;let s,l=0;return function(t){return e.enter(n),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?r(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(n),t):OL(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||OL(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!RL(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function gF(e,t,r,n,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(n),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s;return r(t)};function s(r){return r===a?(e.enter(o),e.consume(r),e.exit(o),e.exit(n),t):(e.enter(i),l(r))}function l(t){return t===a?(e.exit(i),s(a)):null===t?r(t):OL(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),UL(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||OL(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function vF(e,t){let r;return function n(o){if(OL(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,n;if(RL(o))return UL(e,n,r?"linePrefix":"lineSuffix")(o);return t(o)}}const yF={name:"definition",tokenize:function(e,t,r){const n=this;let o;return function(t){return e.enter("definition"),function(t){return mF.call(n,e,i,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=TL(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):r(t)}function a(t){return DL(t)?vF(e,s)(t):s(t)}function s(t){return pF(e,l,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(bF,c,c)(t)}function c(t){return RL(t)?UL(e,u,"whitespace")(t):u(t)}function u(i){return null===i||OL(i)?(e.exit("definition"),n.parser.defined.push(o),t(i)):r(i)}}},bF={partial:!0,tokenize:function(e,t,r){return function(t){return DL(t)?vF(e,n)(t):r(t)};function n(t){return gF(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return RL(t)?UL(e,i,"whitespace")(t):i(t)}function i(e){return null===e||OL(e)?t(e):r(e)}}};const wF={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.consume(t),n};function n(n){return OL(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}};const xF={name:"headingAtx",resolve:function(e,t){let r,n,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},n={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},mL(e,i,o-i+1,[["enter",r,t],["enter",n,t],["exit",n,t],["exit",r,t]]));return e},tokenize:function(e,t,r){let n=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&n++<6?(e.consume(t),o):null===t||DL(t)?(e.exit("atxHeadingSequence"),i(t)):r(t)}function i(r){return 35===r?(e.enter("atxHeadingSequence"),a(r)):null===r||OL(r)?(e.exit("atxHeading"),t(r)):RL(r)?UL(e,i,"whitespace")(r):(e.enter("atxHeadingText"),s(r))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||DL(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}}};const SF=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],kF=["pre","script","style","textarea"],EF={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,r){const n=this;let o,i,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,h):63===s?(e.consume(s),o=3,n.interrupt?t:D):_L(s)?(e.consume(s),a=String.fromCharCode(s),p):r(s)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,s=0,f):_L(i)?(e.consume(i),o=4,n.interrupt?t:D):r(i)}function d(o){return 45===o?(e.consume(o),n.interrupt?t:D):r(o)}function f(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?n.interrupt?t:_:f):r(o)}function h(t){return _L(t)?(e.consume(t),a=String.fromCharCode(t),p):r(t)}function p(s){if(null===s||47===s||62===s||DL(s)){const l=47===s,c=a.toLowerCase();return l||i||!kF.includes(c)?SF.includes(a.toLowerCase())?(o=6,l?(e.consume(s),m):n.interrupt?t(s):_(s)):(o=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(s):i?g(s):v(s)):(o=1,n.interrupt?t(s):_(s))}return 45===s||CL(s)?(e.consume(s),a+=String.fromCharCode(s),p):r(s)}function m(o){return 62===o?(e.consume(o),n.interrupt?t:_):r(o)}function g(t){return RL(t)?(e.consume(t),g):E(t)}function v(t){return 47===t?(e.consume(t),E):58===t||95===t||_L(t)?(e.consume(t),y):RL(t)?(e.consume(t),v):E(t)}function y(t){return 45===t||46===t||58===t||95===t||CL(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),w):RL(t)?(e.consume(t),b):v(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),l=t,x):RL(t)?(e.consume(t),w):S(t)}function x(t){return t===l?(e.consume(t),l=null,k):null===t||OL(t)?r(t):(e.consume(t),x)}function S(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||DL(t)?b(t):(e.consume(t),S)}function k(e){return 47===e||62===e||RL(e)?v(e):r(e)}function E(t){return 62===t?(e.consume(t),T):r(t)}function T(t){return null===t||OL(t)?_(t):RL(t)?(e.consume(t),T):r(t)}function _(t){return 45===t&&2===o?(e.consume(t),P):60===t&&1===o?(e.consume(t),N):62===t&&4===o?(e.consume(t),R):63===t&&3===o?(e.consume(t),D):93===t&&5===o?(e.consume(t),O):!OL(t)||6!==o&&7!==o?null===t||OL(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),_):(e.exit("htmlFlowData"),e.check(TF,M,C)(t))}function C(t){return e.check(_F,A,M)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||OL(t)?C(t):(e.enter("htmlFlowData"),_(t))}function P(t){return 45===t?(e.consume(t),D):_(t)}function N(t){return 47===t?(e.consume(t),a="",B):_(t)}function B(t){if(62===t){const r=a.toLowerCase();return kF.includes(r)?(e.consume(t),R):_(t)}return _L(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),B):_(t)}function O(t){return 93===t?(e.consume(t),D):_(t)}function D(t){return 62===t?(e.consume(t),R):45===t&&2===o?(e.consume(t),D):_(t)}function R(t){return null===t||OL(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),R)}function M(r){return e.exit("htmlFlow"),t(r)}}},TF={partial:!0,tokenize:function(e,t,r){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(ZL,t,r)}}},_F={partial:!0,tokenize:function(e,t,r){const n=this;return function(t){if(OL(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return r(t)};function o(e){return n.parser.lazy[n.now().line]?r(e):t(e)}}};const CF={name:"htmlText",tokenize:function(e,t,r){const n=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),y):_L(t)?(e.consume(t),k):r(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,h):_L(t)?(e.consume(t),v):r(t)}function c(t){return 45===t?(e.consume(t),f):r(t)}function u(t){return null===t?r(t):45===t?(e.consume(t),d):OL(t)?(a=u,B(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?N(e):45===e?d(e):u(e)}function h(t){const n="CDATA[";return t===n.charCodeAt(i++)?(e.consume(t),6===i?p:h):r(t)}function p(t){return null===t?r(t):93===t?(e.consume(t),m):OL(t)?(a=p,B(t)):(e.consume(t),p)}function m(t){return 93===t?(e.consume(t),g):p(t)}function g(t){return 62===t?N(t):93===t?(e.consume(t),g):p(t)}function v(t){return null===t||62===t?N(t):OL(t)?(a=v,B(t)):(e.consume(t),v)}function y(t){return null===t?r(t):63===t?(e.consume(t),b):OL(t)?(a=y,B(t)):(e.consume(t),y)}function b(e){return 62===e?N(e):y(e)}function w(t){return _L(t)?(e.consume(t),x):r(t)}function x(t){return 45===t||CL(t)?(e.consume(t),x):S(t)}function S(t){return OL(t)?(a=S,B(t)):RL(t)?(e.consume(t),S):N(t)}function k(t){return 45===t||CL(t)?(e.consume(t),k):47===t||62===t||DL(t)?E(t):r(t)}function E(t){return 47===t?(e.consume(t),N):58===t||95===t||_L(t)?(e.consume(t),T):OL(t)?(a=E,B(t)):RL(t)?(e.consume(t),E):N(t)}function T(t){return 45===t||46===t||58===t||95===t||CL(t)?(e.consume(t),T):_(t)}function _(t){return 61===t?(e.consume(t),C):OL(t)?(a=_,B(t)):RL(t)?(e.consume(t),_):E(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),o=t,A):OL(t)?(a=C,B(t)):RL(t)?(e.consume(t),C):(e.consume(t),I)}function A(t){return t===o?(e.consume(t),o=void 0,P):null===t?r(t):OL(t)?(a=A,B(t)):(e.consume(t),A)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):47===t||62===t||DL(t)?E(t):(e.consume(t),I)}function P(e){return 47===e||62===e||DL(e)?E(e):r(e)}function N(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}function B(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return RL(t)?UL(e,D,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):D(t)}function D(t){return e.enter("htmlTextData"),a(t)}}};const AF={name:"labelEnd",resolveAll:function(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),"labelImage"===n.type||"labelLink"===n.type||"labelEnd"===n.type){const e="labelImage"===n.type?4:2;n.type="data",t+=e}}e.length!==r.length&&mL(e,0,e.length,r);return e},resolveTo:function(e,t){let r,n,o,i,a=e.length,s=0;for(;a--;)if(r=e[a][1],n){if("link"===r.type||"labelLink"===r.type&&r._inactive)break;"enter"===e[a][0]&&"labelLink"===r.type&&(r._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===r.type||"labelLink"===r.type)&&!r._balanced&&(n=a,"labelLink"!==r.type)){s=2;break}}else"labelEnd"===r.type&&(o=a);const l={type:"labelLink"===e[n][1].type?"link":"image",start:{...e[n][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[n][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[n+s+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",l,t],["enter",c,t]],i=gL(i,e.slice(n+1,n+s+3)),i=gL(i,[["enter",u,t]]),i=gL(i,KL(t.parser.constructs.insideSpan.null,e.slice(n+s+4,o-3),t)),i=gL(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=gL(i,e.slice(o+1)),i=gL(i,[["exit",l,t]]),mL(e,n,e.length,i),e},tokenize:function(e,t,r){const n=this;let o,i,a=n.events.length;for(;a--;)if(("labelImage"===n.events[a][1].type||"labelLink"===n.events[a][1].type)&&!n.events[a][1]._balanced){o=n.events[a][1];break}return function(t){if(!o)return r(t);if(o._inactive)return u(t);return i=n.parser.defined.includes(TL(n.sliceSerialize({start:o.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(IF,c,i?c:u)(t):91===t?e.attempt(PF,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(NF,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,r(e)}}},IF={tokenize:function(e,t,r){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),n};function n(t){return DL(t)?vF(e,o)(t):o(t)}function o(t){return 41===t?c(t):pF(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return DL(t)?vF(e,s)(t):c(t)}function a(e){return r(e)}function s(t){return 34===t||39===t||40===t?gF(e,l,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return DL(t)?vF(e,c)(t):c(t)}function c(n){return 41===n?(e.enter("resourceMarker"),e.consume(n),e.exit("resourceMarker"),e.exit("resource"),t):r(n)}}},PF={tokenize:function(e,t,r){const n=this;return function(t){return mF.call(n,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return n.parser.defined.includes(TL(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}function i(e){return r(e)}}},NF={tokenize:function(e,t,r){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),n};function n(n){return 93===n?(e.enter("referenceMarker"),e.consume(n),e.exit("referenceMarker"),e.exit("reference"),t):r(n)}}};const BF={name:"labelStartImage",resolveAll:AF.resolveAll,tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):r(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}}};const OF={name:"labelStartLink",resolveAll:AF.resolveAll,tokenize:function(e,t,r){const n=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in n.parser.constructs?r(e):t(e)}}};const DF={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),UL(e,t,"linePrefix")}}};const RF={name:"thematicBreak",tokenize:function(e,t,r){let n,o=0;return function(t){return e.enter("thematicBreak"),function(e){return n=e,i(e)}(t)};function i(i){return i===n?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||OL(i))?(e.exit("thematicBreak"),t(i)):r(i)}function a(t){return t===n?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),RL(t)?UL(e,i,"whitespace")(t):i(t))}}};const MF={continuation:{tokenize:function(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(ZL,function(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,UL(e,t,"listItemIndent",n.containerState.size+1)(r)},function(r){if(n.containerState.furtherBlankLines||!RL(r))return n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(r);return n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(jF,t,o)(r)});function o(o){return n.containerState._closeFlow=!0,n.interrupt=void 0,UL(e,e.attempt(MF,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,r){const n=this,o=n.events[n.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=n.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!n.containerState.marker||t===n.containerState.marker:PL(t)){if(n.containerState.type||(n.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(RF,r,l)(t):l(t);if(!n.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return r(t)};function s(t){return PL(t)&&++a<10?(e.consume(t),s):(!n.interrupt||a<2)&&(n.containerState.marker?t===n.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):r(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||t,e.check(ZL,n.interrupt?r:c,e.attempt(zF,d,u))}function c(e){return n.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return RL(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):r(t)}function d(r){return n.containerState.size=i+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(r)}}},zF={partial:!0,tokenize:function(e,t,r){const n=this;return UL(e,function(e){const o=n.events[n.events.length-1];return!RL(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):r(e)},"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},jF={partial:!0,tokenize:function(e,t,r){const n=this;return UL(e,function(e){const o=n.events[n.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(e):r(e)},"listItemIndent",n.containerState.size+1)}};const LF={name:"setextUnderline",resolveTo:function(e,t){let r,n,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){r=i;break}"paragraph"===e[i][1].type&&(n=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};e[n][1].type="setextHeadingText",o?(e.splice(n,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=a;return e.push(["exit",a,t]),e},tokenize:function(e,t,r){const n=this;let o;return function(t){let a,s=n.events.length;for(;s--;)if("lineEnding"!==n.events[s][1].type&&"linePrefix"!==n.events[s][1].type&&"content"!==n.events[s][1].type){a="paragraph"===n.events[s][1].type;break}if(!n.parser.lazy[n.now().line]&&(n.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return r(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),RL(t)?UL(e,a,"lineSuffix")(t):a(t))}function a(n){return null===n||OL(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}}};const FF={tokenize:function(e){const t=this,r=e.attempt(ZL,function(n){if(null===n)return void e.consume(n);return e.enter("lineEndingBlank"),e.consume(n),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r},e.attempt(this.parser.constructs.flowInitial,n,UL(e,e.attempt(this.parser.constructs.flow,n,e.attempt(fF,n)),"linePrefix")));return r;function n(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),t.currentConstruct=void 0,r;e.consume(n)}}};const VF={resolveAll:WF()},qF=UF("string"),HF=UF("text");function UF(e){return{resolveAll:WF("text"===e?$F:void 0),tokenize:function(t){const r=this,n=this.parser.constructs[e],o=t.attempt(n,i,a);return i;function i(e){return l(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=n[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(r,r.previous))return!0}return!1}}}}function WF(e){return function(t,r){let n,o=-1;for(;++o<=t.length;)void 0===n?t[o]&&"data"===t[o][1].type&&(n=o,o++):t[o]&&"data"===t[o][1].type||(o!==n+2&&(t[n][1].end=t[o-1][1].end,t.splice(n+2,o-n-2),o=n+2),n=void 0);return e?e(t,r):t}}function $F(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||"lineEnding"===e[r][1].type)&&"data"===e[r-1][1].type){const n=e[r-1][1],o=t.sliceStream(n);let i,a=o.length,s=-1,l=0;for(;a--;){const e=o[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)i=!0,l++;else if(-1!==e){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(l=0),l){const o={type:r===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:n.start._bufferIndex+s,_index:n.start._index+a,line:n.end.line,column:n.end.column-l,offset:n.end.offset-l},end:{...n.end}};n.end={...o.start},n.start.offset===n.end.offset?Object.assign(n,o):(e.splice(r,0,["enter",o,t],["exit",o,t]),r+=2)}r++}return e}const GF={42:MF,43:MF,45:MF,48:MF,49:MF,50:MF,51:MF,52:MF,53:MF,54:MF,55:MF,56:MF,57:MF,62:eF},YF={91:yF},KF={[-2]:iF,[-1]:iF,32:iF},XF={35:xF,42:RF,45:[LF,RF],60:EF,61:LF,95:RF,96:oF,126:oF},JF={38:rF,92:tF},QF={[-5]:DF,[-4]:DF,[-3]:DF,33:BF,38:rF,42:XL,60:[QL,CF],91:OF,92:[wF,tF],93:AF,95:XL,96:sF},ZF={null:[XL,VF]},eV=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:YF,disable:{null:[]},document:GF,flow:XF,flowInitial:KF,insideSpan:ZF,string:JF,text:QF},Symbol.toStringTag,{value:"Module"}));function tV(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},i=[];let a=[],s=[];const l={attempt:g(function(e,t){v(e,t.from)}),check:g(m),consume:function(e){OL(e)?(n.line++,n.column=1,n.offset+=-3===e?2:1,y()):-1!==e&&(n.column++,n.offset++);n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++));c.previous=e},enter:function(e,t){const r=t||{};return r.type=e,r.start=f(),c.events.push(["enter",r,c]),s.push(r),r},exit:function(e){const t=s.pop();return t.end=f(),c.events.push(["exit",t,c]),t},interrupt:g(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,y()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let r=-1;const n=[];let o;for(;++r<e.length;){const i=e[r];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,n.push(a)}return n.join("")}(d(e),t)},sliceStream:d,write:function(e){if(a=gL(a,e),h(),null!==a[a.length-1])return[];return v(t,0),c.events=KL(i,c.events,c),c.events}};let u=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d(e){return function(e,t){const r=t.start._index,n=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(r===o)a=[e[r].slice(n,i)];else{if(a=e.slice(r,o),n>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(n):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function f(){const{_bufferIndex:e,_index:t,line:r,column:o,offset:i}=n;return{_bufferIndex:e,_index:t,line:r,column:o,offset:i}}function h(){let e;for(;n._index<a.length;){const t=a[n._index];if("string"==typeof t)for(e=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===e&&n._bufferIndex<t.length;)p(t.charCodeAt(n._bufferIndex));else p(t)}}function p(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(r,o,i){let a,u,d,h;return Array.isArray(r)?p(r):"tokenize"in r?p([r]):function(e){return t;function t(t){const r=null!==t&&e[t],n=null!==t&&e.null;return p([...Array.isArray(r)?r:r?[r]:[],...Array.isArray(n)?n:n?[n]:[]])(t)}}(r);function p(e){return a=e,u=0,0===e.length?i:m(e[u])}function m(e){return function(r){h=function(){const e=f(),t=c.previous,r=c.currentConstruct,o=c.events.length,i=Array.from(s);return{from:o,restore:a};function a(){n=e,c.previous=t,c.currentConstruct=r,c.events.length=o,s=i,y()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return v();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,v)(r)}}function g(t){return e(d,h),o}function v(e){return h.restore(),++u<a.length?m(a[u]):i}}}function v(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&mL(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function y(){n.line in o&&n.column<2&&(n.column=o[n.line],n.offset+=o[n.line]-1)}}const rV=/[\0\t\n\r]/g;function nV(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),HL(r)(function(e){for(;!uF(e););return e}(function(e){const t={constructs:yL([eV,...(e||{}).extensions||[]]),content:r(WL),defined:[],document:r($L),flow:r(FF),lazy:{},string:r(qF),text:r(HF)};return t;function r(e){return function(r){return tV(t,e,r)}}}(r).document().write(function(){let e,t=1,r="",n=!0;return function(o,i,a){const s=[];let l,c,u,d,f;for(o=r+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),u=0,r="",n&&(65279===o.charCodeAt(0)&&u++,n=void 0);u<o.length;){if(rV.lastIndex=u,l=rV.exec(o),d=l&&void 0!==l.index?l.index:o.length,f=o.charCodeAt(d),!l){r=o.slice(u);break}if(10===f&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(o.slice(u,d)),t+=d-u),f){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&s.push(-5),r&&s.push(r),s.push(null)),s}}()(e,t,!0))))}const oV="WEB_CHAT/SEND_MESSAGE";function iV(e,t,{attachments:r,channelData:n,value:o}={}){return{type:oV,payload:{attachments:r,channelData:n,method:t,text:e,value:o}}}const aV="WEB_CHAT/SEND_MESSAGE_BACK";const sV={initLivePersonChat:sS("LIVEPERSON/INITLIVEPERSONCHAT"),messageReceived:sS("LIVEPERSON/MESSAGERECEIVED"),messageSend:sS("LIVEPERSON/MESSAGESEND"),setLivePersonConnectionState:sS("LIVEPERSON/SETLIVEPERSONCONNECTIONSTATE"),setLivePersonState:sS("LIVEPERSON/SETLIVEPERSONSTATE"),userTyping:sS("LIVEPERSON/USERTYPING"),userRequestDisconnect:sS("LIVEPERSON/USERREQUESTDISCONNECT"),setLivePersonData:sS("LIVEPERSON/SETLIVEPERSONDATA"),dbgCommand:sS("LIVEPERSON/DBG/COMMAND"),dbgForceSwitchToLivePerson:sS("LIVEPERSON/DBG/FORCESWITCHTOLIVEPERSON"),dbgForceSwitchToDirectLine:sS("LIVEPERSON/DBG/FORCESWITCHTODIRECTLINE"),endTask:sS("LIVEPERSON/ENDTASK"),endAgentChat:sS("LIVEPERSON/ENDAGENTCHAT"),signalTypingInUI:sS("LIVEPERSON/UI/SIGNALTYPINGINUI")},lV={"?":"Displays this help message",help:"Displays this help message","enable dbg":"Enables all debug logging (log, warn, error) to the chat window","disable dbg":"Disables all debug logging (log, warn, error) to the chat window","enable dbg log":"Enables debug log messages to the chat window","disable dbg log":"Disables debug log messages to the chat window","enable dbg warn":"Enables debug warning messages to the chat window","disable dbg warn":"Disables debug warning messages to the chat window","enable dbg error":"Enables debug error messages to the chat window","disable dbg error":"Disables debug error messages to the chat window","show dbg config":"Displays the current debug configuration","enabled flags":"Displays all currently enabled feature flags",directline:"Forces switching to DirectLine",liveperson:"Forces switching to LivePerson",end:"Force ends a connection to LivePerson","show liveperson state":"Displays the current livePerson state in the redux store","show liveperson debugoptions":"Displays the current livePersonDebugOptions state in redux store",typing:"Displays a typing indicator","show info":"Displays the current conversationId, connected agent, and enabled feature flags",conversationid:"Displays the current conversationId and connected agent",cid:"Displays the current conversationId and connected agent (alias for conversationid)"},cV=["conversationid","cid","show info","help","?","enabled flags"],uV=e=>{const t=e.trim().toLowerCase();if(t.startsWith("lynx:")){const e=t.split("lynx:").pop()?.trim();return e&&cV.includes(e)?e:void 0}if(t.startsWith("/debug ")){const e=t.slice(7).trim();if(e&&cV.includes(e))return e}},dV={logTelemetry:sS("TELEMETRY/LOG_TELEMETRY"),logUserFeedback:sS("TELEMETRY/LOG_FEEDBACK_TELEMETRY")};var fV=(e=>(e[e.Verbose=0]="Verbose",e[e.Information=1]="Information",e[e.Warning=2]="Warning",e[e.Error=3]="Error",e[e.Critical=4]="Critical",e))(fV||{});const hV="StartConversationFulfilled",pV="ChatSessionStarted",mV="ChatMessageSent",gV="ChatMessageReceived",vV="ChatSessionEnded",yV="ChatMessageDelivered",bV="ChatMessageNotDelivered",wV="ChatMessageNotSent",xV="ChatSessionDuration",SV="ChatComponentLoaded",kV="ActivityFeedbackSent",EV="ActivityFeedbackNotSent",TV="ThemeChanged",_V="ModeChanged",CV="DirectLineConnected",AV="DirectLineReconnected",IV="DirectLinePostActivity",PV="DirectLinePostActivityFailed",NV="DirectLineFirstWelcomeMessageReceived",BV="DirectLineConnectionStateResolved",OV="DirectLineApiResponseTime",DV="TokenApiResponseTime",RV="BotFrameworkApiResponseTime",MV="FetchDirectLineToken",zV="RefreshDirectLineToken",jV="AgentEnvironmentSwitched",LV="AgentEnvironmentSelected",FV="FeatureEvalInitializationCompleted",VV="FeatureEvalInitializationFailed",qV="BlockedBotMessageMarkerDetected",HV="ExternalPromptReceived",UV="SourceSiteDetected",WV="WebAi-Modern_Activated",$V="WebAi-GeoExp-Modern_Activated",GV="WebAi-GeoExp-Legacy_Activated",YV="WebAi-GeoExp-NoAssistant",KV="WebAi-AzPricing-Modern_Activated",XV="WebAi-AzPricing-Legacy_Activated",JV="WebAi-CopilotBusiness-FloatingBanner_Activated",QV="WebAi-CopilotBusiness-NoAssistant",ZV="LivePersonApiResponseTime",eq="LivePersonAvailabilityCheckStarted",tq="LivePersonAvailabilityAttempt",rq="LivePersonAvailabilityCheckCompleted",nq="LivePersonSessionManagementStarted",oq="LivePersonSessionReused",iq="LivePersonSessionManagementCompleted",aq="LivePersonWebSocketDisconnected",sq="LivePersonWebSocketReconnectStarted",lq="LivePersonWebSocketReconnectCompleted",cq="LivePersonMessageRenderError",uq="LivePersonAcceptStatusError",dq="LivePersonFirstAgentMessageReceived",fq="LivePersonUserRequestedDisconnect",hq="LivePersonUserEndedSurvey",pq="LivePersonSurveyCompleted",mq="LivePersonMessageEvent",gq="LivePersonSaga",vq="LivePersonAvailabilityAPI",yq="LivePersonSessionUpdate",bq="LivePersonSessionCreate";function wq(e,t){return e||t}function xq(e,t){return null!=e?e[t]:void 0}var Sq,kq=void 0,Eq=null,Tq="function",_q="object",Cq="prototype",Aq="__proto__",Iq="undefined",Pq="constructor",Nq="Symbol",Bq="length",Oq="name",Dq="call",Rq="toString",Mq="getOwnPropertyDescriptor",zq="getOwnPropertySymbols",jq=wq(Object),Lq=xq(jq,Cq),Fq=wq(String),Vq=xq(Fq,Cq),qq=wq(Math),Hq=wq(Array),Uq=xq(Hq,Cq),Wq=xq(Uq,"slice"),$q=xq(wq(Number),Cq),Gq=xq(wq(Function),Cq),Yq=xq(wq(Date),Cq),Kq=xq(wq(RegExp),Cq),Xq=xq(wq(Boolean),Cq),Jq=xq(wq(Error),Cq),Qq="_polyfill",Zq="__nw21$polytype__";function eH(e,t){try{return{v:e.apply(this,t)}}catch(Wqe){return{e:Wqe}}}function tH(e,t,r){var n=eH(e,r);return n.e?t:n.v}function rH(e){return function(t){return typeof t===e}}function nH(e){var t="[object "+e+"]";return function(e){return!(!e||oH(e)!==t)}}function oH(e){return Lq[Rq].call(e)}function iH(e){return typeof e===Iq||e===Iq}function aH(e){return e===kq}function sH(e){return e===Eq||iH(e)}function lH(e){return e===Eq||e===kq}function cH(e){return!!e||e!==kq}function uH(e){return!Sq&&(Sq=["string","number","boolean",Iq,"symbol","bigint"]),!(e===_q||-1===Sq.indexOf(e))}var dH=rH("string"),fH=rH(Tq);function hH(e){return!(!e&&sH(e))&&(!!e&&typeof e===_q)}var pH=xq(Hq,"isArray"),mH=nH("Date"),gH=rH("number"),vH=rH("boolean"),yH=nH("Error");function bH(e){return!!(e&&e.then&&fH(e.then))}function wH(e){return!(!e||tH(function(){return!(e&&0+e)},!e))}function xH(){}function SH(){return[]}function kH(){return!1}var EH=wq(Fq);function TH(e,t){var r="",n=Lq[Rq][Dq](e);"[object Error]"===n&&(e={stack:EH(e.stack),message:EH(e.message),name:EH(e.name)});try{r=((r=JSON.stringify(e,Eq,t?"number"==typeof t?t:4:kq))?r.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):Eq)||EH(e)}catch(Wqe){r=" - "+TH(Wqe,t)}return n+": "+r}function _H(e){throw new Error(e)}function CH(e){throw new TypeError(e)}function AH(e){lH(e)&&CH("Cannot convert undefined or null to object")}function IH(e){dH(e)||CH("'"+TH(e)+"' is not a string")}function PH(e,t){return!!e&&Lq.hasOwnProperty[Dq](e,t)}var NH=wq(xq(jq,Mq),xH),BH=wq(xq(jq,"hasOwn"),OH);function OH(e,t){return AH(e),PH(e,t)||!!NH(e,t)}function DH(e){return e===Aq||e===Pq||e===Cq}function RH(e,t,r){if(e&&(hH(e)||fH(e)))for(var n in e)if(BH(e,n)&&-1===t[Dq](lH(r)?e:r,n,e[n]))break}function MH(e,t,r){if(e)for(var n=e[Bq]>>>0,o=0;o<n&&(!(o in e)||-1!==t[Dq](lH(r)?e:r,e[o],o,e));o++);}var zH=jH;function jH(e,t,r){var n=t?t[e]:Eq;return function(t){var o=(t?t[e]:Eq)||n;if(o||r){var i=arguments;return(o||r).apply(t,o?Wq[Dq](i,1):i)}CH('"'+EH(e)+'" not defined for '+TH(t))}}function LH(e,t,r){var n=t?t[e]:Eq;return function(t){var o=n;if(o||r){var i=arguments;return(o||r).apply(t,o?Wq[Dq](i,1):i)}CH('"'+EH(e)+'" not defined for '+TH(t))}}function FH(e){return function(t){return t[e]}}function VH(e,t){var r,n=jq.getOwnPropertyDescriptor;return!lH(e)&&n&&(r=eH(n,[e,t]).v||Eq),r||lH(e)||(r=eH(function(){for(var r in e)if(r==t)return{enumerable:PH(e,r)}}).v),r&&r.enumerable||!1}var qH=LH("propertyIsEnumerable",Lq,VH),HH=wq(xq(jq,Mq),xH),UH=wq(xq(jq,zq),SH),WH={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};function $H(e){var t={};if(t[WH.c]=!0,t[WH.e]=!0,e.l){t.get=function(){return e.l.v};var r=HH(e.l,"v");r&&r.set&&(t.set=function(t){e.l.v=t})}return RH(e,function(e,r){t[WH[e]]=aH(r)?t[WH[e]]:r}),t}var GH=xq(jq,"defineProperty"),YH=xq(jq,"defineProperties");function KH(e,t,r){return GH(e,t,$H(r))}function XH(e,t){var r={};return RH(t,function(e,t){r[e]=$H(t)}),MH(UH(t),function(e){qH(t,e)&&(r[e]=$H(t[e]))}),YH(e,r)}function JH(e,t,r,n,o){var i={};return RH(e,function(e,r){QH(i,e,t?r:e),QH(i,r,e)}),n?n(i):i}function QH(e,t,r,n){GH(e,t,{value:r,enumerable:!0,writable:!1})}var ZH=wq(xq(jq,"isFrozen"),kH),eU=xq(jq,"freeze");function tU(e){return e}function rU(e){return AH(e),e[Aq]||Eq}var nU=xq(jq,"assign"),oU=xq(jq,"keys");function iU(e,t){if((pH(e)||hH(e)||fH(e))&&!ZH(e)){for(var r=0;r<t.length;r++)if(t[r]===e)return e;t.push(e),RH(e,function(e,r){iU(r,t)}),sU(e)}return e}function aU(e){return eU?iU(e,[]):e}var sU=wq(eU,tU),lU=wq(xq(jq,"getPrototypeOf"),rU);function cU(e){return JH(e,0,0,sU)}function uU(e){var t={};return RH(e,function(e,r){QH(t,e,r[1]),QH(t,r[0],r[1])}),sU(t)}var dU,fU=cU({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),hU="__tsUtils$gblCfg";function pU(){var e;return typeof globalThis!==Iq&&(e=globalThis),e||typeof self===Iq||(e=self),e||typeof window===Iq||(e=window),e||typeof global===Iq||(e=global),e}function mU(){if(!dU){var e=eH(pU).v||{};dU=e[hU]=e[hU]||{}}return dU}var gU=xq(qq,"min"),vU=xq(qq,"max"),yU=zH("slice",Vq),bU=zH("substring",Vq),wU=jH("substr",Vq,xU);function xU(e,t,r){return AH(e),r<0?"":((t=t||0)<0&&(t=vU(t+e[Bq],0)),iH(r)?yU(e,t):yU(e,t,t+r))}function SU(e,t){return bU(e,0,t)}var kU,EU=wq(xq(jq,"create"),TU);function TU(e,t){var r=null;function n(){}if(lH(e))r={};else{var o=typeof e;o!==_q&&o!==Tq&&CH("Prototype must be an Object or function: "+TH(e)),n[Cq]=e,eH(function(){n[Aq]=e}),r=new n}return t&&eH(YH,[r,t]),r}function _U(){return(Date.now||CU)()}function CU(){return(new Date).getTime()}function AU(e,t,r){return e.apply(t,r)}function IU(){kU=mU()}function PU(e,t){var r={};return!kU&&IU(),r.b=kU.lzy,GH(r,"v",{configurable:!0,get:function(){var n=AU(e,null,t);return kU.lzy||GH(r,"v",{value:n}),r.b=kU.lzy,n}}),r}var NU,BU,OU=xq(qq,"random"),DU=PU(function(){for(var e=_U().toString(36).slice(2);e.length<16;)e+=OU().toString(36).slice(2);return e=e.substring(0,16)}),RU="_urid",MU=0;function zU(){if(!NU){var e=mU();NU=e.gblSym=e.gblSym||{k:{},s:{}}}return NU}function jU(e){var t="_"+MU+++"_"+DU.v,r=Nq+"("+e+")";function n(e,t){KH(a,e,{v:t,e:!1,w:!1})}var o,i,a=EU(null);return n("description",EH(e)),n(Rq,function(){return r+"$nw21sym"+t}),n("valueOf",function(){return a}),n("v",r),n("_uid",t),i="symbol",(o=a)&&(eH(function(){o[Qq]=!0,o[Zq]=i}),eH(KH,[o,Qq,{v:!0,w:!1,e:!1}]),eH(KH,[o,Zq,{v:i,w:!1,e:!1}])),o}function LU(e){var t=zU();if(!BH(t.k,e)){var r=jU(e),n=oU(t.s).length;r[RU]=function(){return n+"_"+r[Rq]()},t.k[e]=r,t.s[r[RU]()]=EH(e)}return t.k[e]}function FU(e){var t;!BU&&(BU={});var r=fU[e];return r&&(t=BU[r]=BU[r]||jU(Nq+"."+r)),t}function VU(e){return GH({toJSON:function(){return e}},"v",{value:e})}var qU,HU="window";function UU(e,t){var r;return function(){return!kU&&IU(),r&&!kU.lzy||(r=VU(eH(e,t).v)),r.v}}function WU(e){return!kU&&IU(),qU&&!1!==e&&!kU.lzy||(qU=VU(eH(pU).v||Eq)),qU.v}function $U(e,t){var r;if((r=qU&&!1!==t?qU.v:WU(t))&&r[e])return r[e];if(e===HU)try{return window}catch(Wqe){}return Eq}function GU(){return!!YU()}var YU=UU($U,["document"]);function KU(){return!!XU()}var XU=UU($U,[HU]);function JU(){return!!QU()}var QU=UU($U,["navigator"]);function ZU(){return!!nW()}var eW,tW,rW,nW=UU($U,["history"]),oW=UU(function(){return!!eH(function(){return process&&(process.versions||{}).node}).v}),iW=UU(function(){return!!eH(function(){return self&&self instanceof WorkerGlobalScope}).v});function aW(){return eW=VU(eH($U,[Nq]).v)}function sW(e){var t=(kU.lzy?0:eW)||aW();return t.v?t.v[e]:kq}function lW(){return!!cW()}function cW(){return!kU&&IU(),((kU.lzy?0:eW)||aW()).v}function uW(e,t){var r=fU[e];!kU&&IU();var n=(kU.lzy?0:eW)||aW();return n.v?n.v[r||e]:FU(e)}function dW(e,t){!kU&&IU();var r=(kU.lzy?0:eW)||aW();return r.v?r.v(e):jU(e)}function fW(e){return!kU&&IU(),((tW=(kU.lzy?0:tW)||VU(eH(sW,["for"]).v)).v||LU)(e)}function hW(e){return!!e&&fH(e.next)}function pW(e){return!lH(e)&&fH(e[uW(3)])}function mW(e,t,r){if(e&&(hW(e)||(!rW&&(rW=VU(uW(3))),e=e[rW.v]?e[rW.v]():Eq),hW(e))){var n=kq,o=kq;try{for(var i=0;!(o=e.next()).done&&-1!==t[Dq](lH(r)?e:r,o.value,i,e);)i++}catch(a){n={e:a},e.throw&&(o=Eq,e.throw(n))}finally{try{o&&!o.done&&e.return&&e.return(o)}finally{if(n)throw n.e}}}}function gW(e,t){return!iH(t)&&e&&(pH(t)?AU(e.push,e,t):hW(t)||pW(t)?mW(t,function(t){e.push(t)}):e.push(t)),e}var vW=zH("indexOf",Uq),yW=zH("map",Uq);function bW(e,t,r){return((e?e.slice:Eq)||Wq).apply(e,Wq[Dq](arguments,1))}var wW,xW,SW=FH(Bq),kW=xq(qq,"floor"),EW=xq(qq,"ceil"),TW=zH("reduce",Uq),_W=wq(xq(jq,"setPrototypeOf"),CW);function CW(e,t){var r;return!wW&&(wW=VU(((r={})[Aq]=[],r instanceof Array))),wW.v?e[Aq]=t:RH(t,function(t,r){return e[t]=r}),e}function AW(e,t,r){function n(){this[Pq]=t,eH(KH,[this,Oq,{v:e,c:!0,e:!1}])}return eH(KH,[t,Oq,{v:e,c:!0,e:!1}]),(t=_W(t,r))[Cq]=r===Eq?EU(r):(n[Cq]=r[Cq],new n),t}function IW(e,t){t&&(e[Oq]=t)}function PW(e,t,r,n){var o=Error,i=o[Cq][Oq],a=Error.captureStackTrace;return AW(e,function(){var r=this,s=arguments;try{eH(IW,[o,e]);var l=AU(o,r,n?n(s):Wq[Dq](s))||r;if(l!==r){var c=lU(r);c!==lU(l)&&_W(l,c)}return a&&a(l,r[Pq]),t&&t(l,s),l}finally{eH(IW,[o,i])}},o)}var NW=zH("replace",Vq);function BW(e){return function(t){return AH(t),(t=EH(t))&&(t=NW(t,e,"")),t}}var OW,DW,RW,MW,zW=jH("trim",Vq,BW(/^\s+|(?=\s)\s+$/g)),jW=wq(xq(jq,Mq),xH),LW=wq(xq(jq,zq),SH);function FW(e,t,r){!function(e,t,r){if(e!==Eq&&e!==kq){for(var n in e)if(BH(e,n)&&-1===t[Dq](lH(r)?e:r,n,e[n]))return;MH(LW(e),function(n){if(qH(e,n)&&-1===t[Dq](lH(r)?e:r,n,e[n]))return-1})}}(e,function(n,o){if(!DH(n))return t[Dq](lH(r)?e:r,n,o)},r)}function VW(e){if(!e||typeof e!==_q)return!1;RW||(RW=!KU()||XU());var t=!1;if(e!==RW){DW||(OW=Function[Cq][Rq],DW=OW[Dq](jq));try{var r=lU(e);(t=!r)||(PH(r,Pq)&&(r=r[Pq]),t=!(!r||typeof r!==Tq||OW[Dq](r)!==DW))}catch(n){}}return t}function qW(){var e=[Lq,Vq,Uq,$q,Gq,Yq,Kq,Xq,Jq];return eH($U,["Map"]).v,eH($U,["Set"]).v,eH($U,["WeakMap"]).v,eH($U,["WeakSet"]).v,eH($U,["Promise"]).v,eH($U,["Symbol"]).v,eH($U,["ArrayBuffer"]).v,eH($U,["SharedArrayBuffer"]).v,eH($U,["DataView"]).v,eH($U,["Int8Array"]).v,eH($U,["Uint8Array"]).v,eH($U,["Uint8ClampedArray"]).v,eH($U,["Int16Array"]).v,eH($U,["Uint16Array"]).v,eH($U,["Int32Array"]).v,eH($U,["Uint32Array"]).v,eH($U,["Float32Array"]).v,eH($U,["Float64Array"]).v,eH($U,["BigInt64Array"]).v,eH($U,["BigUint64Array"]).v,eH($U,["WeakRef"]).v,eH($U,["FinalizationRegistry"]).v,e}function HW(e){return MW||(MW=VU(qW())),vW(MW.v,e)>=0}function UW(e){return e.value&&XW(e),!0}var WW=[function(e){var t=e.value;if(pH(t)){var r=e.result=[];return r.length=t.length,e.copyTo(r,t),!0}return!1},XW,function(e){if(e.type===Tq)return!0;return!1},function(e){var t=e.value;if(mH(t))return e.result=new Date(t.getTime()),!0;return!1}];function $W(e,t,r,n){var o;return MH(e,function(e){if(e.k===t)return o=e,-1}),o||(o={k:t,v:t},e.push(o),n(o)),o.v}function GW(e,t,r,n){var o=r.handler,i=r.path?n?r.path.concat(n):r.path:[],a={handler:r.handler,src:r.src,path:i},s=typeof t,l=!1,c=t===Eq;c||(t&&s===_q?l=VW(t):c=uH(s));var u={type:s,isPrim:c,isPlain:l,value:t,result:t,path:i,origin:r.src,copy:function(t,n){return GW(e,t,n?a:r,n)},copyTo:function(t,r){return YW(e,t,r,a)}};return u.isPrim?o&&o[Dq](r,u)?u.result:t:$W(e,t,0,function(e){KH(u,"result",{g:function(){return e.v},s:function(t){e.v=t}});for(var t=0,n=o;!(n||(t<WW.length?WW[t++]:UW))[Dq](r,u);)n=Eq})}function YW(e,t,r,n){return HW(r)||FW(r,function(r,o){t[r]=GW(e,o,n,r)}),t}function KW(e,t){return GW([],e,{handler:t,src:e})}function XW(e){var t=e.value;if(t&&e.isPlain){var r=e.result={};return e.copyTo(r,t),!0}return!1}function JW(e,t){return MH(t,function(t){!function(e,t,r){YW([],e,t,{handler:r,src:t,path:[]})}(e,t)}),e}function QW(e,t,r,n,o,i,a){return JW(KW(e)||{},Wq[Dq](arguments))}var ZW,e$=zH("split",Vq);function t$(e,t,r){if(e&&t){var n,o,i=e$(t,"."),a=i.pop(),s=!0;if(MH(i,function(t){if(HW(e)||DH(t))return s=!1,-1;sH(e[t])&&(e[t]={},n||(n=e,o=t)),e=e[t]}),!s||lH(a)||HW(e)||DH(a)){if(n)try{delete n[o]}catch(Wqe){}}else e[a]=r}}function r$(){return!kU&&IU(),ZW&&!kU.lzy||(ZW=VU(eH($U,["performance"]).v)),ZW.v}var n$=xq(qq,"round"),o$=zH("indexOf",Vq),i$=jH("endsWith",Vq,a$);function a$(e,t,r){IH(e);var n=dH(t)?t:EH(t),o=!iH(r)&&r<e[Bq]?r:e[Bq];return bU(e,o-n[Bq],o)===n}var s$=jH("startsWith",Vq,l$);function l$(e,t,r){IH(e);var n=dH(t)?t:EH(t),o=r>0?r:0;return bU(e,o,o+n[Bq])===n}var c$,u$="ref",d$="unref",f$="hasRef";function h$(e,t,r){var n,o=!0,i=e?t(Eq):Eq;function a(){return o=!1,i&&i[d$]&&i[d$](),n}function s(){i&&r(i),i=Eq}function l(){return i=t(i),o||a(),n}return(n={cancel:s,refresh:l})[f$]=function(){return i&&i[f$]?i[f$]():o},n[u$]=function(){return o=!0,i&&i[u$]&&i[u$](),n},n[d$]=a,{h:n=GH(n,"enabled",{get:function(){return!!i},set:function(e){!e&&i&&s(),e&&!i&&l()}}),dn:function(){i=Eq}}}function p$(e,t,r){var n=pH(t),o=n?t.length:0,i=function(e){var t=fH(e)?e:void 0;if(!t){var r=mU().tmOut||[];pH(r)&&r.length>0&&fH(r[0])&&(t=r[0])}return t||setTimeout}(o>0?t[0]:n?kq:t),a=function(e){var t=fH(e)?e:void 0;if(!t){var r=mU().tmOut||[];pH(r)&&r.length>1&&fH(r[1])&&(t=r[1])}return t||clearTimeout}(o>1?t[1]:kq),s=r[0];r[0]=function(){l.dn(),AU(s,kq,Wq[Dq](arguments))};var l=h$(e,function(e){if(e){if(e.refresh)return e.refresh(),e;AU(a,kq,[e])}return AU(i,kq,r)},function(e){AU(a,kq,[e])});return l.h}function m$(e,t){return p$(!0,kq,Wq[Dq](arguments))}var g$="constructor",v$="prototype",y$="function",b$="_dynInstFuncs",w$="_isDynProxy",x$="_dynClass",S$="_dynInstChk",k$=S$,E$="_dfOpts",T$="_unknown_",_$="__proto__",C$="_dyn"+_$,A$="__dynProto$Gbl",I$="_dynInstProto",P$="useBaseInst",N$="setInstFuncs",B$=Object,O$=B$.getPrototypeOf,D$=B$.getOwnPropertyNames,R$=WU(),M$=R$[A$]||(R$[A$]={o:(c$={},c$[N$]=!0,c$[P$]=!0,c$),n:1e3});function z$(e){return e&&(e===B$[v$]||e===Array[v$])}function j$(e){return z$(e)||e===Function[v$]}function L$(e){var t;if(e){if(O$)return O$(e);var r=e[_$]||e[v$]||(e[g$]?e[g$][v$]:null);t=e[C$]||r,PH(e,C$)||(delete e[I$],t=e[C$]=e[I$]||e[C$],e[I$]=r)}return t}function F$(e,t){var r=[];if(D$)r=D$(e);else for(var n in e)"string"==typeof n&&PH(e,n)&&r.push(n);if(r&&r.length>0)for(var o=0;o<r.length;o++)t(r[o])}function V$(e,t,r){return t!==g$&&typeof e[t]===y$&&(r||PH(e,t))&&t!==_$&&t!==v$}function q$(e){CH("DynamicProto: "+e)}function H$(e,t){for(var r=e.length-1;r>=0;r--)if(e[r]===t)return!0;return!1}function U$(e,t,r,n,o){function i(e,t){var r=function(){var n=function(e,t,r,n){var o=null;if(e&&PH(r,x$)){var i=e[b$]||EU(null);if((o=(i[r[x$]]||EU(null))[t])||q$("Missing ["+t+"] "+y$),!o[S$]&&!1!==i[k$]){for(var a=!PH(e,t),s=L$(e),l=[];a&&s&&!j$(s)&&!H$(l,s);){var c=s[t];if(c){a=c===n;break}l.push(s),s=L$(s)}try{a&&(e[t]=o),o[S$]=1}catch(Wqe){i[k$]=!1}}}return o}(this,t,e,r)||function(e,t,r){var n=t[e];return n===r&&(n=L$(t)[e]),typeof n!==y$&&q$("["+e+"] is not a "+y$),n}(t,e,r);return n.apply(this,arguments)};return r[w$]=1,r}if(!z$(e)){var a=r[b$]=r[b$]||EU(null);if(!z$(a)){var s=a[t]=a[t]||EU(null);!1!==a[k$]&&(a[k$]=!!o),z$(s)||F$(r,function(t){V$(r,t,!1)&&r[t]!==n[t]&&(s[t]=r[t],delete r[t],(!PH(e,t)||e[t]&&!e[t][w$])&&(e[t]=i(e,t)))})}}}function W$(e,t){return PH(e,v$)?e.name||t||T$:((e||{})[g$]||{}).name||t||T$}function $$(e,t,r,n){PH(e,v$)||q$("theClass is an invalid class definition.");var o=e[v$];(function(e,t){if(O$){for(var r=[],n=L$(t);n&&!j$(n)&&!H$(r,n);){if(n===e)return!0;r.push(n),n=L$(n)}return!1}return!0})(o,t)||q$("["+W$(e)+"] not in hierarchy of ["+W$(t)+"]");var i=null;PH(o,x$)?i=o[x$]:(i="_dynCls$"+W$(e,"_")+"$"+M$.n,M$.n++,o[x$]=i);var a=$$[E$],s=!!a[P$];s&&n&&void 0!==n[P$]&&(s=!!n[P$]);var l=function(e){var t=EU(null);return F$(e,function(r){!t[r]&&V$(e,r,!1)&&(t[r]=e[r])}),t}(t),c=function(e,t,r,n){function o(e,t,r){var o=t[r];if(o[w$]&&n){var i=e[b$]||{};!1!==i[k$]&&(o=(i[t[x$]]||{})[r]||o)}return function(){return o.apply(e,arguments)}}var i=EU(null);F$(r,function(e){i[e]=o(t,r,e)});for(var a=L$(e),s=[];a&&!j$(a)&&!H$(s,a);)F$(a,function(e){!i[e]&&V$(a,e,!O$)&&(i[e]=o(t,a,e))}),s.push(a),a=L$(a);return i}(o,t,l,s);r(t,c);var u=!!O$&&!!a[N$];u&&n&&(u=!!n[N$]),U$(o,i,t,l,!1!==u)}$$[E$]=M$.o;var G$="function",Y$="object",K$="undefined",X$="prototype",J$=Object,Q$=J$[X$];(WU()||{}).Symbol,(WU()||{}).Reflect;var Z$="hasOwnProperty",eG=nU||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Q$[Z$].call(t,o)&&(e[o]=t[o]);return e},tG=function(e,t){return(tG=J$.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t[Z$](r)&&(e[r]=t[r])})(e,t)};function rG(e,t){function r(){this.constructor=e}typeof t!==G$&&null!==t&&CH("Class extends value "+String(t)+" is not a constructor or null"),tG(e,t),e[X$]=null===t?EU(t):(r[X$]=t[X$],new r)}function nG(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}var oG,iG=function(e){return JH(e,1,0,sU)},aG=function(e){return uU(e)},sG=iG({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),lG=iG({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2}),cG="toLowerCase",uG="length",dG="warnToConsole",fG="throwInternal",hG="watch",pG="apply",mG="push",gG="splice",vG="logger",yG="cancel",bG="initialize",wG="identifier",xG="removeNotificationListener",SG="addNotificationListener",kG="isInitialized",EG="getNotifyMgr",TG="getPlugin",_G="name",CG="processNext",AG="getProcessTelContext",IG="value",PG="enabled",NG="stopPollingInternalLogs",BG="unload",OG="onComplete",DG="version",RG="loggingLevelConsole",MG="createNew",zG="teardown",jG="messageId",LG="message",FG="diagLog",VG="_doTeardown",qG="update",HG="getNext",UG="setNextPlugin",WG="userAgent",$G="split",GG="replace",YG="type",KG="evtName",XG="status",JG="getAllResponseHeaders",QG="isChildEvt",ZG="data",eY="getCtx",tY="setCtx",rY="itemsReceived",nY="headers",oY="urlString",iY="timeout",aY="traceFlags",sY="getAttribute";var lY="Promise",cY="rejected";function uY(e,t){return dY(e,function(e){return t?t({status:"fulfilled",rejected:!1,value:e}):e},function(e){return t?t({status:cY,rejected:!0,reason:e}):e})}function dY(e,t,r,n){var o=e;try{if(bH(e))(t||r)&&(o=e.then(t,r));else try{t&&(o=t(e))}catch(i){if(!r)throw i;o=r(i)}}finally{}return o}var fY,hY=["pending","resolving","resolved",cY],pY="dispatchEvent";function mY(e){var t;return e&&e.createEvent&&(t=e.createEvent("Event")),!!t&&t.initEvent}var gY,vY,yY,bY,wY="unhandledRejection",xY=wY.toLowerCase(),SY=[],kY=0;function EY(e){return fH(e)?e.toString():TH(e)}function TY(e,t,r){var n,o,i=bW(arguments,3),a=0,s=!1,l=[],c=kY++,u=!1,d=null;function f(t,r){try{return SY.push(c),u=!0,d&&d.cancel(),d=null,e(function(e,o){l.push(function(){try{var i=2===a?t:r,s=iH(i)?n:fH(i)?i(n):i;bH(s)?s.then(e,o):i?e(s):3===a?o(s):e(s)}catch(Wqe){o(Wqe)}}),s&&p()},i)}finally{SY.pop()}}function h(){return hY[a]}function p(){if(l.length>0){var e=l.slice();l=[],u=!0,d&&d.cancel(),d=null,t(e)}}function m(e,t){return function(r){if(a===t){if(2===e&&bH(r))return a=1,void r.then(m(2,1),m(3,1));a=e,s=!0,n=r,p(),u||3!==e||d||(d=m$(g,10))}}}function g(){if(!u)if(u=!0,oW())process.emit(wY,n,o);else{var e=XU()||WU();!gY&&(gY=VU(eH($U,[lY+"RejectionEvent"]).v)),function(e,t,r,n){var o=YU();!fY&&(fY=VU(!!eH(mY,[o]).v));var i=fY.v?o.createEvent("Event"):n?new Event(t):{};if(r&&r(i),fY.v&&i.initEvent(t,!1,!0),i&&e[pY])e[pY](i);else{var a=e["on"+t];if(a)a(i);else{var s=$U("console");s&&(s.error||s.log)(t,TH(i))}}}(e,xY,function(e){return KH(e,"promise",{g:function(){return o}}),e.reason=n,e},!!gY.v)}}return GH(o={then:f,catch:function(e){return f(void 0,e)},finally:function(e){var t=e,r=e;return fH(e)&&(t=function(t){return e&&e(),t},r=function(t){throw e&&e(),t}),f(t,r)}},"state",{get:h}),lW()&&(o[uW(11)]="IPromise"),o.toString=function(){return"IPromise "+h()+(s?" - "+EY(n):"")},function(){fH(r)||CH(lY+": executor is not a function - "+EY(r));var e=m(3,0);try{r.call(o,m(2,0),e)}catch(Wqe){e(Wqe)}}(),o}function _Y(e){return function(t){var r=bW(arguments,1);return e(function(e,r){try{var n=[],o=1;mW(t,function(t,i){t&&(o++,dY(t,function(t){n[i]=t,0===--o&&e(n)},r))}),0===--o&&e(n)}catch(Wqe){r(Wqe)}},r)}}function CY(e){return VU(function(t){var r=bW(arguments,1);return e(function(e,r){var n=[],o=1;function i(t,r){o++,uY(t,function(t){t.rejected?n[r]={status:cY,reason:t.reason}:n[r]={status:"fulfilled",value:t.value},0===--o&&e(n)})}try{pH(t)?MH(t,i):pW(t)?mW(t,i):CH("Input is not an iterable"),0===--o&&e(n)}catch(Wqe){r(Wqe)}},r)})}function AY(e){MH(e,function(e){try{e()}catch(Wqe){}})}function IY(e,t){return TY(IY,function(e){var t=gH(e)?e:0;return function(e){m$(function(){AY(e)},t)}}(t),e,t)}function PY(e,t){!vY&&(vY=VU(eH($U,[lY]).v||null));var r=vY.v;if(!r)return IY(e);fH(e)||CH(lY+": executor is not a function - "+TH(e));var n=0;var o=new r(function(t,r){e(function(e){n=2,t(e)},function(e){n=3,r(e)})});return GH(o,"state",{get:function(){return hY[n]}}),o}function NY(e){return TY(NY,AY,e)}function BY(e,t){return!bY&&(bY=VU(PY)),bY.v.call(this,e,t)}var OY=_Y(BY),DY=void 0,RY="",MY="channels",zY="core",jY="createPerfMgr",LY="disabled",FY="extensionConfig",VY="extensions",qY="processTelemetry",HY="priority",UY="eventsSent",WY="eventsDiscarded",$Y="eventsSendRequest",GY="perfEvent",YY="offlineEventsStored",KY="offlineBatchSent",XY="offlineBatchDrop",JY="getPerfMgr",QY="domain",ZY="path",eK=/-([a-z])/g,tK=/([^\w\d_$])/g,rK=/^(\d+[\w\d_$])/,nK=Object.getPrototypeOf;function oK(e){return!sH(e)}function iK(e){var t=e;return t&&dH(t)&&(t=(t=(t=t[GG](eK,function(e,t){return t.toUpperCase()}))[GG](tK,"_"))[GG](rK,function(e,t){return"_"+t})),t}function aK(e,t){return!(!e||!t)&&-1!==o$(e,t)}function sK(e){return e&&e.toISOString()||""}function lK(e){return yH(e)?e[_G]:RY}function cK(e,t,r,n,o){var i=r;return e&&((i=e[t])===r||o&&!o(i)||n&&!n(r)||(i=r,e[t]=i)),i}function uK(e,t,r){var n;return e?!(n=e[t])&&sH(n)&&(n=iH(r)?{}:r,e[t]=n):n=iH(r)?{}:r,n}function dK(e,t){var r=null,n=null;return fH(e)?r=e:n=e,function(){var e=arguments;if(r&&(n=r()),n)return n[t][pG](n,e)}}function fK(e,t,r){if(e&&t&&hH(e)&&hH(t)){var n=function(n){if(dH(n)){var o=t[n];fH(o)?r&&!r(n,!0,t,e)||(e[n]=dK(t,n)):r&&!r(n,!1,t,e)||(BH(e,n)&&delete e[n],KH(e,n,{g:function(){return t[n]},s:function(e){t[n]=e}}))}};for(var o in t)n(o)}return e}function hK(e,t,r,n,o){e&&t&&r&&(e[t]=dK(r,n))}function pK(e,t,r,n){return e&&t&&hH(e)&&pH(r)&&MH(r,function(r){dH(r)&&hK(e,r,t,r)}),e}function mK(e){return e&&nU&&(e=J$(nU({},e))),e}function gK(e,t,r,n,o,i){var a=arguments,s=a[0]||{},l=a[uG],c=!1,u=1;for(l>0&&vH(s)&&(c=s,s=a[u]||{},u++),hH(s)||(s={});u<l;u++){var d=a[u],f=pH(d),h=hH(d);for(var p in d){if(f&&p in d||h&&BH(d,p)){var m=d[p],g=void 0;if(c&&m&&((g=pH(m))||VW(m))){var v=s[p];g?pH(v)||(v=[]):VW(v)||(v={}),m=gK(c,v,m)}void 0!==m&&(s[p]=m)}}}return s}function vK(e,t,r){var n=t&&t.featureOptIn&&t.featureOptIn[e];if(e&&n){var o=n.mode;if(3===o)return!0;if(2===o)return!1}return r}function yK(e){try{return e.responseText}catch(Wqe){}return null}function bK(e,t){return e?"XDomainRequest,Response:"+yK(e)||"":t}function wK(e,t){return e?"XMLHttpRequest,Status:"+e[XG]+",Response:"+yK(e)||e.response||"":t}function xK(e,t){return t&&(gH(t)?e=[t].concat(e):pH(t)&&(e=t.concat(e))),e}var SK="withCredentials";function kK(e,t,r){if(!e[r]&&t&&t.getResponseHeader){var n=t.getResponseHeader(r);n&&(e[r]=zW(n))}return e}function EK(e,t){var r,n,o={};return e[JG]?(r=e[JG](),n={},dH(r)&&MH(zW(r)[$G](/[\r\n]+/),function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var r=zW(e.substring(0,t))[cG](),o=zW(e.substring(t+1));n[r]=o}else n[zW(e)]=1}}),o=n):t&&(o=kK(o,e,"time-delta-millis"),o=kK(o,e,"kill-duration"),o=kK(o,e,"kill-duration-seconds")),o}var TK="JSON",_K="msie",CK="trident/",AK="XMLHttpRequest",IK=null,PK=null,NK=null,BK=null;function OK(e,t){var r=!1;if(e){try{if(!(r=t in e)){var n=e[X$];n&&(r=t in n)}}catch(Wqe){}if(!r)try{r=!iH((new e)[t])}catch(Wqe){}}return r}function DK(e){return typeof location===Y$&&location?location:$U("location")}function RK(){return Boolean(typeof JSON===Y$&&JSON||null!==$U(TK))}function MK(){return RK()?JSON||$U(TK):null}function zK(){var e=QU();return!(!e||!e.product)&&"ReactNative"===e.product}function jK(){var e=QU();if(e&&(e[WG]!==PK||null===IK)){var t=((PK=e[WG])||RY)[cG]();IK=aK(t,_K)||aK(t,CK)}return IK}function LK(e){if(void 0===e&&(e=null),!e){var t=QU()||{};e=t?(t.userAgent||RY)[cG]():RY}var r=(e||RY)[cG]();if(aK(r,_K)){var n=YU()||{};return vU(parseInt(r[$G](_K)[1]),n.documentMode||0)}if(aK(r,CK)){var o=parseInt(r[$G](CK)[1]);if(o)return o+4}return null}function FK(e){return null!==BK&&!1!==e||(BK=JU()&&Boolean(QU().sendBeacon)),BK}function VK(e){var t=!1;try{t=!!$U("fetch");var r=$U("Request");t&&e&&r&&(t=OK(r,"keepalive"))}catch(Wqe){}return t}function qK(){return null===NK&&(NK=typeof XDomainRequest!==K$)&&HK()&&(NK=NK&&!OK($U(AK),"withCredentials")),NK}function HK(){var e=!1;try{e=!!$U(AK)}catch(Wqe){}return e}function UK(e,t,r){var n,o,i=WU();if(i&&i.CustomEvent)try{return n=i,o=function(e,t){var r=null,n={detail:t||null};if(fH(CustomEvent))r=new CustomEvent(e,n);else{var o=YU();o&&o.createEvent&&(r=o.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,n)}return r}(e,{cfg:t||null,customDetails:r||null}),!!(n&&n.dispatchEvent&&o)&&(n.dispatchEvent(o),!0)}catch(Wqe){}return!1}var WK=4294967296,$K=4294967295,GK=123456789,YK=987654321,KK=!1,XK=GK,JK=YK;function QK(){try{var e=2147483647&_U();(t=(Math.random()*WK^e)+e)<0&&(t>>>=0),XK=GK+t&$K,JK=YK-t&$K,KK=!0}catch(Wqe){}var t}function ZK(e){var t=0,r=$U("crypto")||$U("msCrypto");return r&&r.getRandomValues&&(t=r.getRandomValues(new Uint32Array(1))[0]&$K),0===t&&jK()&&(KK||QK(),t=function(){var e=((JK=36969*(65535&JK)+(JK>>16)&$K)<<16)+(65535&(XK=18e3*(65535&XK)+(XK>>16)&$K))>>>0&$K;return e>>>=0,e}()&$K),0===t&&(t=kW(WK*Math.random()|0)),e||(t>>>=0),t}function eX(e){void 0===e&&(e=22);for(var t=ZK()>>>0,r=0,n=RY;n[uG]<e;)r++,n+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===r&&(t=(ZK()<<2&4294967295|3&t)>>>0,r=0);return n}var tX="3.3.9",rX="."+eX(6),nX=0;function oX(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function iX(e,t){return void 0===t&&(t=!1),iK(e+nX+++(t?"."+tX:RY)+rX)}function aX(e){var t={id:iX("_aiData-"+(e||RY)+"."+tX),accept:function(e){return oX(e)},get:function(e,r,n,o){var i=e[t.id];return i?i[iK(r)]:(o&&(i=function(e,t){var r=t[e.id];if(!r){r={};try{oX(t)&&KH(t,e.id,{e:!1,v:r})}catch(Wqe){}}return r}(t,e),i[iK(r)]=n),n)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(Wqe){}}};return t}function sX(e){return e&&hH(e)&&!pH(e)&&(e.isVal||e.fb||BH(e,"v")||BH(e,"mrg")||BH(e,"ref")||e.set)}function lX(e,t,r){var n,o=r.dfVal||cH;if(t&&r.fb){var i=r.fb;pH(i)||(i=[i]);for(var a=0;a<i[uG];a++){var s=i[a],l=t[s];if(o(l)?n=l:e&&(o(l=e.cfg[s])&&(n=l),e.set(e.cfg,EH(s),l)),o(n))break}}return!o(n)&&o(r.v)&&(n=r.v),n}function cX(e,t,r){var n,o=r;(r&&sX(r)&&(o=lX(e,t,r)),o)&&(sX(o)&&(o=cX(e,t,o)),pH(o)?(n=[])[uG]=o[uG]:VW(o)&&(n={}),n&&(RH(o,function(r,o){o&&sX(o)&&(o=cX(e,t,o)),n[r]=o}),o=n));return o}function uX(e,t,r,n){var o,i,a,s,l,c,u,d,f=n;sX(f)?(o=f.isVal,i=f.set,c=f.rdOnly,u=f.blkVal,s=f.mrg,!(l=f.ref)&&iH(l)&&(l=!!s),a=lX(e,t,f)):a=n,u&&e.blkVal(t,r);var h=!0,p=t[r];!p&&sH(p)||(d=p,h=!1,o&&d!==a&&!o(d)&&(d=a,h=!0),i&&(h=(d=i(d,a,t))===a)),h?d=a?cX(e,t,a):a:(VW(d)||pH(a))&&s&&a&&(VW(a)||pH(a))&&RH(a,function(t,r){uX(e,d,t,r)}),e.set(t,r,d),l&&e.ref(t,r),c&&e.rdOnly(t,r)}var dX=fW("[[ai_dynCfg_1]]"),fX=fW("[[ai_blkDynCfg_1]]"),hX=fW("[[ai_frcDynCfg_1]]");function pX(e){var t;if(e&&(pH(e)?(t=[])[uG]=e[uG]:VW(e)&&(t={}),t))return RH(e,function(e,r){t[e]=pX(r)}),t;return e}function mX(e,t,r){var n=!1;return r&&!e[t.blkVal]&&((n=r[hX])||r[fX]||(n=VW(r)||pH(r))),n}function gX(e){CH("InvalidAccess:"+e)}var vX=["push","pop","shift","unshift","splice"],yX=function(e,t,r,n){e&&e[fG](3,108,"".concat(r," [").concat(t,"] failed - ")+TH(n))};function bX(e,t){var r=jW(e,t);return r&&r.get}function wX(e,t,r,n){if(t){var o=bX(t,r);o&&!!o[e.prop]?t[r]=n:function(e,t,r,n){var o={n:r,h:[],trk:function(t){t&&t.fn&&(-1===vW(o.h,t)&&o.h[mG](t),e.trk(t,o))},clr:function(e){var t=vW(o.h,e);-1!==t&&o.h[gG](t,1)}},i=!0,a=!1;function s(){i&&(a=a||mX(s,e,n),n&&!n[dX]&&a&&(n=SX(e,n,r,"Converting")),i=!1);var t=e.act;return t&&o.trk(t),n}s[e.prop]={chng:function(){e.add(o)}},KH(t,o.n,{g:s,s:function(l){if(n!==l){s[e.ro]&&!e.upd&&gX("["+r+"] is read-only:"+TH(t)),i&&(a=a||mX(s,e,n),i=!1);var c=a&&s[e.rf];if(a)if(c){RH(n,function(e){n[e]=l?l[e]:DY});try{RH(l,function(t,r){wX(e,n,t,r)}),l=n}catch(Wqe){yX((e.hdlr||{})[vG],r,"Assigning",Wqe),a=!1}}else n&&n[dX]&&RH(n,function(t){var r=bX(n,t);if(r){var o=r[e.prop];o&&o.chng()}});if(l!==n){var u=l&&mX(s,e,l);!c&&u&&(l=SX(e,l,r,"Converting")),n=l,a=u}e.add(o)}}})}(e,t,r,n)}return t}function xX(e,t,r,n){if(t){var o=bX(t,r),i=o&&!!o[e.prop],a=n&&n[0],s=n&&n[1],l=n&&n[2];if(!i){if(l)try{!function(e){if(e&&(VW(e)||pH(e)))try{e[fX]=!0}catch(Wqe){}}(t)}catch(Wqe){yX((e.hdlr||{})[vG],r,"Blocking",Wqe)}try{wX(e,t,r,t[r]),o=bX(t,r)}catch(Wqe){yX((e.hdlr||{})[vG],r,"State",Wqe)}}a&&(o[e.rf]=a),s&&(o[e.ro]=s),l&&(o[e.blkVal]=!0)}return t}function SX(e,t,r,n){try{RH(t,function(r,n){wX(e,t,r,n)}),t[dX]||(GH(t,dX,{get:function(){return e.hdlr}}),function(e,t,r){pH(t)&&MH(vX,function(n){var o=t[n];t[n]=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var a=o[pG](this,n);return SX(e,t,r,"Patching"),a}})}(e,t,r))}catch(Wqe){yX((e.hdlr||{})[vG],r,n,Wqe)}return t}var kX="[[ai_",EX="]]";function TX(e){var t,r=dW(kX+"get"+e.uid+EX),n=dW(kX+"ro"+e.uid+EX),o=dW(kX+"rf"+e.uid+EX),i=dW(kX+"blkVal"+e.uid+EX),a=dW(kX+"dtl"+e.uid+EX),s=null,l=null;function c(r,n){var o=t.act;try{t.act=r,r&&r[a]&&(MH(r[a],function(e){e.clr(r)}),r[a]=[]),n({cfg:e.cfg,set:e.set.bind(e),setDf:e.setDf.bind(e),ref:e.ref.bind(e),rdOnly:e.rdOnly.bind(e)})}catch(Wqe){var i=e[vG];throw i&&i[fG](1,107,TH(Wqe)),Wqe}finally{t.act=o||null}}function u(){if(s){var e=s;s=null,l&&l[yG](),l=null;var t=[];if(MH(e,function(e){if(e&&(e[a]&&(MH(e[a],function(t){t.clr(e)}),e[a]=null),e.fn))try{c(e,e.fn)}catch(Wqe){t[mG](Wqe)}}),s)try{u()}catch(Wqe){t[mG](Wqe)}t[uG]>0&&function(e,t){oG||(oG=PW("AggregationError",function(e,t){t[uG]>1&&(e.errors=t[1])}));var r=e;throw MH(t,function(e,t){r+="\n".concat(t," > ").concat(TH(e))}),new oG(r,t||[])}("Watcher error(s): ",t)}}return t={prop:r,ro:n,rf:o,blkVal:i,hdlr:e,add:function(e){if(e&&e.h[uG]>0){s||(s=[]),l||(l=m$(function(){l=null,u()},0));for(var t=0;t<e.h[uG];t++){var r=e.h[t];r&&-1===vW(s,r)&&s[mG](r)}}},notify:u,use:c,trk:function(e,t){if(e){var r=e[a]=e[a]||[];-1===vW(r,t)&&r[mG](t)}}}}function _X(e,t,r){var n=function(e){if(e){var t=e[dX]||e;if(t.cfg&&(t.cfg===e||t.cfg[dX]===t))return t}return null}(t);if(n)return n;var o,i=iX("dyncfg",!0),a=t&&!1!==r?t:pX(t);var s={uid:null,cfg:a,logger:e,notify:function(){o.notify()},set:function(t,r,n){try{t=wX(o,t,r,n)}catch(Wqe){yX(e,r,"Setting value",Wqe)}return t[r]},setDf:function(e,t){return t&&RH(t,function(t,r){uX(s,e,t,r)}),e},watch:function(e){return function(e,t){var r={fn:t,rm:function(){r.fn=null,e=null,t=null}};return KH(r,"toJSON",{v:function(){return"WatcherHandler"+(r.fn?"":"[X]")}}),e.use(r,t),r}(o,e)},ref:function(e,t){var r;return xX(o,e,t,(r={},r[0]=!0,r))[t]},rdOnly:function(e,t){var r;return xX(o,e,t,(r={},r[1]=!0,r))[t]},blkVal:function(e,t){var r;return xX(o,e,t,(r={},r[2]=!0,r))[t]},_block:function(e,t){o.use(null,function(r){var n=o.upd;try{iH(t)||(o.upd=t),e(r)}finally{o.upd=n}})}};return KH(s,"uid",{c:!1,e:!1,w:!1,v:i}),SX(o=TX(s),a,"config","Creating"),s}function CX(e,t,r,n){var o=_X(r,e||{},n);return t&&o.setDf(o.cfg,t),o}function AX(e,t,r){var n=e[dX]||e;return!n.cfg||n.cfg!==e&&n.cfg[dX]!==n?(function(e,t){e?(e[dG](t),e[fG](2,108,t)):gX(t)}(r,"Not dynamic - "+TH(e)),CX(e,null,r)[hG](t)):n[hG](t)}function IX(e,t){if(e&&e[BG])return e[BG](t)}function PX(e,t,r){var n;return r||(n=BY(function(e){r=e})),e&&SW(e)>0?uY(IX(e[0],t),function(){PX(bW(e,1),t,r)}):r(),n}var NX="Microsoft_ApplicationInsights_BypassAjaxInstrumentation";function BX(e,t,r){return!e&&sH(e)?t:vH(e)?e:"true"===EH(e)[cG]()}function OX(e){return{mrg:!0,v:e}}function DX(e,t){return{set:e,v:t}}function RX(e,t,r){return{fb:r,isVal:e,v:t}}function MX(e,t){return{fb:t,set:BX,v:!!e}}function zX(e){return{isVal:fH,v:e||null}}function jX(e){return{isVal:dH,v:EH(RY)}}var LX,FX,VX=[UY,WY,$Y,GY],qX=null;function HX(e,t){return function(){var r=arguments,n=UX(t);if(n){var o=n.listener;o&&o[e]&&o[e][pG](o,r)}}}function UX(e){var t,r=qX;return r||!0===e.disableDbgExt||(r=qX||((t=$U("Microsoft"))&&(qX=t.ApplicationInsights),qX)),r?r.ChromeDbgExt:null}var WX="warnToConsole",$X={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},GX=((FX={})[0]=null,FX[1]="errorToConsole",FX[2]=WX,FX[3]="debugToConsole",FX);function YX(e){return e?'"'+e[GG](/\"/g,RY)+'"':RY}function KX(e,t){var r=typeof console!==K$?console:$U("console");if(r){var n="log";r[e]&&(n=e),fH(r[n])&&r[n](t)}}var XX=function(){function e(e,t,r,n){void 0===r&&(r=!1);var o=this;o[jG]=e,o[LG]=(r?"AI: ":"AI (Internal): ")+e;var i=RY;RK()&&(i=MK().stringify(n));var a=(t?" message:"+YX(t):RY)+(n?" props:"+YX(i):RY);o[LG]+=a}return e.dataType="MessageData",e}();function JX(e,t){return(e||{})[vG]||new eJ(t)}var QX,ZX,eJ=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var r,n,o,i,a,s=0,l={};$$(e,this,function(e){function c(t,r){if(!(s>=o)){var i=!0,a="AITR_"+r[jG];if(l[a]?i=!1:l[a]=!0,i&&(t<=n&&(e.queue[mG](r),s++,u(1===t?"error":"warn",r)),s===o)){var c="Internal events throttle limit per PageView reached for this app.",d=new XX(23,c,!1);e.queue[mG](d),1===t?e.errorToConsole(c):e[dG](c)}}}function u(e,r){var n=UX(t||{});n&&n[FG]&&n[FG](e,r)}a=AX(CX(t||{},$X,e).cfg,function(e){var t=e.cfg;r=t[RG],n=t.loggingLevelTelemetry,o=t.maxMessageLimit,i=t.enableDebug}),e.consoleLoggingLevel=function(){return r},e[fG]=function(t,n,o,a,s){void 0===s&&(s=!1);var d=new XX(n,o,s,a);if(i)throw TH(d);var f=GX[t]||WX;if(iH(d[LG]))u("throw"+(1===t?"Critical":"Warning"),d);else{if(s){var h=+d[jG];!l[h]&&r>=t&&(e[f](d[LG]),l[h]=!0)}else r>=t&&e[f](d[LG]);c(t,d)}},e.debugToConsole=function(e){KX("debug",e),u("warning",e)},e[dG]=function(e){KX("warn",e),u("warning",e)},e.errorToConsole=function(e){KX("error",e),u("error",e)},e.resetInternalMessageCount=function(){s=0,l={}},e.logInternalMessage=c,e[BG]=function(e){a&&a.rm(),a=null}})}return e.__ieDyn=1,e}();function tJ(e){return e||new eJ}function rJ(e,t,r,n,o,i){void 0===i&&(i=!1),tJ(e)[fG](t,r,n,o,i)}function nJ(e,t){tJ(e)[dG](t)}var oJ,iJ="toGMTString",aJ="toUTCString",sJ="cookie",lJ="expires",cJ="isCookieUseDisabled",uJ="disableCookiesUsage",dJ="_ckMgr",fJ=null,hJ=null,pJ=null,mJ={},gJ={},vJ=((QX={cookieCfg:OX((ZX={},ZX[QY]={fb:"cookieDomain",dfVal:oK},ZX.path={fb:"cookiePath",dfVal:oK},ZX.enabled=DY,ZX.ignoreCookies=DY,ZX.blockedCookies=DY,ZX)),cookieDomain:DY,cookiePath:DY})[uJ]=DY,QX);function yJ(){!oJ&&(oJ=PU(function(){return YU()}))}function bJ(e){return!e||e.isEnabled()}function wJ(e,t){return!!(t&&e&&pH(e.ignoreCookies))&&-1!==vW(e.ignoreCookies,t)}function xJ(e,t){var r=t[PG];if(sH(r)){var n=void 0;iH(e[cJ])||(n=!e[cJ]),iH(e[uJ])||(n=!e[uJ]),r=n}return r}function SJ(e,t){var r;return e&&(r=e.getCookieMgr()),r||(r=function(e,t){var r=kJ[dJ]||gJ[dJ];return r||(r=kJ[dJ]=kJ(e,t),gJ[dJ]=r),r}(t,(e||{})[vG])),r}function kJ(e,t){var r,n,o,i,a,s,l,c;e=CX(e||gJ,null,t).cfg,i=AX(e,function(t){t.setDf(t.cfg,vJ),r=t.ref(t.cfg,"cookieCfg"),n=r[ZY]||"/",o=r[QY],a=!1!==xJ(e,r),s=r.getCookie||AJ,l=r.setCookie||IJ,c=r.delCookie||IJ},t);var u={isEnabled:function(){var n=!1!==xJ(e,r)&&a&&EJ(t),o=gJ[dJ];return n&&o&&u!==o&&(n=bJ(o)),n},setEnabled:function(e){a=!1!==e,r[PG]=e},set:function(e,t,i,a,s){var c=!1;if(bJ(u)&&!function(e,t){return!!(t&&e&&pH(e.blockedCookies)&&-1!==vW(e.blockedCookies,t))||wJ(e,t)}(r,e)){var d={},f=zW(t||RY),h=o$(f,";");if(-1!==h&&(f=zW(SU(t,h)),d=TJ(bU(t,h+1))),cK(d,QY,a||o,wH,iH),!sH(i)){var p=jK();if(iH(d[lJ])){var m=_U()+1e3*i;if(m>0){var g=new Date;g.setTime(m),cK(d,lJ,_J(g,p?iJ:aJ)||_J(g,p?iJ:aJ)||RY,wH)}}p||cK(d,"max-age",RY+i,null,iH)}var v=DK();v&&"https:"===v.protocol&&(cK(d,"secure",null,null,iH),null===hJ&&(hJ=!function(e){if(!dH(e))return!1;if(aK(e,"CPU iPhone OS 12")||aK(e,"iPad; CPU OS 12"))return!0;if(aK(e,"Macintosh; Intel Mac OS X 10_14")&&aK(e,"Version/")&&aK(e,"Safari"))return!0;if(aK(e,"Macintosh; Intel Mac OS X 10_14")&&i$(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))return!0;if(aK(e,"Chrome/5")||aK(e,"Chrome/6"))return!0;if(aK(e,"UnrealEngine")&&!aK(e,"Chrome"))return!0;if(aK(e,"UCBrowser/12")||aK(e,"UCBrowser/11"))return!0;return!1}((QU()||{})[WG])),hJ&&cK(d,"SameSite","None",null,iH)),cK(d,ZY,s||n,null,iH),l(e,CJ(f,d)),c=!0}return c},get:function(e){var t=RY;return bJ(u)&&!wJ(r,e)&&(t=s(e)),t},del:function(e,t){var r=!1;return bJ(u)&&(r=u.purge(e,t)),r},purge:function(e,r){var n,o=!1;if(EJ(t)){var i=((n={})[ZY]=r||"/",n[lJ]="Thu, 01 Jan 1970 00:00:01 GMT",n);jK()||(i["max-age"]="0"),c(e,CJ(RY,i)),o=!0}return o},unload:function(e){i&&i.rm(),i=null}};return u[dJ]=u,u}function EJ(e){if(null===fJ){fJ=!1,!oJ&&yJ();try{var t=oJ.v||{};fJ=void 0!==t[sJ]}catch(Wqe){rJ(e,2,68,"Cannot access document.cookie - "+lK(Wqe),{exception:TH(Wqe)})}}return fJ}function TJ(e){var t={};e&&e[uG]&&MH(zW(e)[$G](";"),function(e){if(e=zW(e||RY)){var r=o$(e,"=");-1===r?t[e]=null:t[zW(SU(e,r))]=zW(bU(e,r+1))}});return t}function _J(e,t){return fH(e[t])?e[t]():null}function CJ(e,t){var r=e||RY;return RH(t,function(e,t){r+="; "+e+(sH(t)?RY:"="+t)}),r}function AJ(e){var t=RY;if(!oJ&&yJ(),oJ.v){var r=oJ.v[sJ]||RY;pJ!==r&&(mJ=TJ(r),pJ=r),t=zW(mJ[e]||RY)}return t}function IJ(e,t){!oJ&&yJ(),oJ.v&&(oJ.v[sJ]=e+"="+t)}var PJ={perfEvtsSendAll:!1};function NJ(e){e.h=null;var t=e.cb;e.cb=[],MH(t,function(e){eH(e.fn,[e.arg])})}function BJ(e,t,r,n){MH(e,function(e){e&&e[t]&&(r?(r.cb[mG]({fn:n,arg:e}),r.h=r.h||m$(NJ,0,r)):eH(n,[e]))})}var OJ=function(){function e(t){var r,n;this.listeners=[];var o=[],i={h:null,cb:[]},a=CX(t,PJ);n=a[hG](function(e){r=!!e.cfg.perfEvtsSendAll}),$$(e,this,function(e){KH(e,"listeners",{g:function(){return o}}),e[SG]=function(e){o[mG](e)},e[xG]=function(e){for(var t=vW(o,e);t>-1;)o[gG](t,1),t=vW(o,e)},e[UY]=function(e){BJ(o,UY,i,function(t){t[UY](e)})},e[WY]=function(e,t){BJ(o,WY,i,function(r){r[WY](e,t)})},e[$Y]=function(e,t){BJ(o,$Y,t?i:null,function(r){r[$Y](e,t)})},e[GY]=function(e){e&&(!r&&e[QG]()||BJ(o,GY,null,function(t){e.isAsync?m$(function(){return t[GY](e)},0):t[GY](e)}))},e[YY]=function(e){e&&e[uG]&&BJ(o,YY,i,function(t){t[YY](e)})},e[KY]=function(e){e&&e[ZG]&&BJ(o,KY,i,function(t){t[KY](e)})},e[XY]=function(e,t){if(e>0){var r=t||0;BJ(o,XY,i,function(t){t[XY](e,r)})}},e[BG]=function(e){var t,r=function(){n&&n.rm(),n=null,o=[],i.h&&i.h[yG](),i.h=null,i.cb=[]};if(BJ(o,"unload",null,function(r){var n=r[BG](e);n&&(t||(t=[]),t[mG](n))}),t)return BY(function(e){return uY(OY(t),function(){r(),e()})});r()}})}return e.__ieDyn=1,e}(),DJ="ctx",RJ="ParentContextKey",MJ="ChildrenContextKey",zJ=function(){function e(t,r,n){var o,i=this;(i.start=_U(),i[_G]=t,i.isAsync=n,i[QG]=function(){return!1},fH(r))&&KH(i,"payload",{g:function(){return!o&&fH(r)&&(o=r(),r=null),o}});i[eY]=function(t){return t?t===e[RJ]||t===e[MJ]?i[t]:(i[DJ]||{})[t]:null},i[tY]=function(t,r){if(t)if(t===e[RJ])i[t]||(i[QG]=function(){return!0}),i[t]=r;else if(t===e[MJ])i[t]=r;else{(i[DJ]=i[DJ]||{})[t]=r}},i.complete=function(){var t=0,r=i[eY](e[MJ]);if(pH(r))for(var n=0;n<r[uG];n++){var o=r[n];o&&(t+=o.time)}i.time=_U()-i.start,i.exTime=i.time-t,i.complete=function(){}}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),jJ=function(){function e(t){this.ctx={},$$(e,this,function(e){e.create=function(e,t,r){return new zJ(e,t,r)},e.fire=function(e){e&&(e.complete(),t&&fH(t[GY])&&t[GY](e))},e[tY]=function(t,r){t&&((e[DJ]=e[DJ]||{})[t]=r)},e[eY]=function(t){return(e[DJ]||{})[t]}})}return e.__ieDyn=1,e}(),LJ="CoreUtils.doPerf";function FJ(e,t,r,n,o){if(e){var i=e;if(i[JY]&&(i=i[JY]()),i){var a=void 0,s=i[eY](LJ);try{if(a=i.create(t(),n,o)){if(s&&a[tY]&&(a[tY](zJ[RJ],s),s[eY]&&s[tY])){var l=s[eY](zJ[MJ]);l||(l=[],s[tY](zJ[MJ],l)),l[mG](a)}return i[tY](LJ,a),r(a)}}catch(c){a&&a[tY]&&a[tY]("exception",c)}finally{a&&i.fire(a),i[tY](LJ,s)}}}return r()}function VJ(){var e=qJ();return bU(e,0,8)+"-"+bU(e,8,12)+"-"+bU(e,12,16)+"-"+bU(e,16,20)+"-"+bU(e,20)}function qJ(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r=RY,n=0;n<4;n++)r+=t[15&(e=ZK())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var o=t[8+(3&ZK())|0];return wU(r,0,8)+wU(r,9,4)+"4"+wU(r,13,3)+o+wU(r,16,3)+wU(r,19,12)}var HJ="00",UJ="00000000000000000000000000000000",WJ="0000000000000000";function $J(e,t,r){return!(!e||e[uG]!==t||e===r)&&!!e.match(/^[\da-f]*$/i)}function GJ(e,t,r){return $J(e,t)?e:r}function YJ(e,t,r,n){return{version:$J(n,2,"ff")?n:HJ,traceId:KJ(e)?e:qJ(),spanId:XJ(t)?t:SU(qJ(),16),traceFlags:r>=0&&r<=255?r:1}}function KJ(e){return $J(e,32,UJ)}function XJ(e){return $J(e,16,WJ)}function JJ(e){if(e){var t=function(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[uG]<2;)t="0"+t;return t}(e[aY]);$J(t,2)||(t="01");var r=e[DG]||HJ;return"00"!==r&&"ff"!==r&&(r=HJ),"".concat(r.toLowerCase(),"-").concat(GJ(e.traceId,32,UJ).toLowerCase(),"-").concat(GJ(e.spanId,16,WJ).toLowerCase(),"-").concat(t.toLowerCase())}return""}var QJ=aX("plugin");function ZJ(e){return QJ.get(e,"state",{},!0)}function eQ(e,t){for(var r,n=[],o=null,i=e[HG]();i;){var a=i[TG]();if(a){o&&o[UG]&&a[qY]&&o[UG](a);var s=!!(r=ZJ(a))[kG];a[kG]&&(s=a[kG]()),s||n[mG](a),o=a,i=i[HG]()}}MH(n,function(n){var o=e[zY]();n[bG](e.getCfg(),o,t,e[HG]()),r=ZJ(n),n[zY]||r[zY]||(r[zY]=o),r[kG]=!0,delete r[zG]})}function tQ(e){return e.sort(function(e,t){var r=0;if(t){var n=t[qY];e[qY]?r=n?e[HY]-t[HY]:1:n&&(r=-1)}else r=e?1:-1;return r})}var rQ,nQ="TelemetryPluginChain",oQ="_hasRun",iQ="_getTelCtx",aQ=0;function sQ(e,t,r,n){var o=null,i=[];t||(t=CX({},null,r[vG])),null!==n&&(o=n?function(e,t,r){for(;e;){if(e[TG]()===r)return e;e=e[HG]()}return dQ([r],t.config||{},t)}(e,r,n):e);var a={_next:function(){var e=o;if(o=e?e[HG]():null,!e){var t=i;t&&t[uG]>0&&(MH(t,function(e){try{e.func.call(e.self,e.args)}catch(Wqe){rJ(r[vG],2,73,"Unexpected Exception during onComplete - "+TH(Wqe))}}),i=[])}return e},ctx:{core:function(){return r},diagLog:function(){return JX(r,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:function(e,r){var n=s(e,!0);r&&RH(r,function(e,r){if(sH(n[e])){var o=t.cfg[e];!o&&sH(o)||(n[e]=o)}uX(t,n,e,r)});return t.setDf(n,r)},getConfig:function(e,r,n){void 0===n&&(n=!1);var o,i=s(e,!1),a=t.cfg;!i||!i[r]&&sH(i[r])?!a[r]&&sH(a[r])||(o=a[r]):o=i[r];return o||!sH(o)?o:n},hasNext:function(){return!!o},getNext:function(){return o},setNext:function(e){o=e},iterate:function(e){var t;for(;t=a._next();){var r=t[TG]();r&&e(r)}},onComplete:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e&&i[mG]({func:e,self:iH(t)?a.ctx:t,args:r})}}};function s(e,r){var n=null,o=t.cfg;if(o&&e){var i=o[FY];!i&&r&&(i={}),o[FY]=i,(i=t.ref(o,FY))&&(!(n=i[e])&&r&&(n={}),i[e]=n,n=t.ref(i,e))}return n}return a}function lQ(e,t,r,n){var o=CX(t),i=sQ(e,o,r,n),a=i.ctx;return a[CG]=function(e){var t=i._next();return t&&t[qY](e,a),!t},a[MG]=function(e,t){return void 0===e&&(e=null),pH(e)&&(e=dQ(e,o.cfg,r,t)),lQ(e||a[HG](),o.cfg,r,t)},a}function cQ(e,t,r){var n=CX(t.config),o=sQ(e,n,t,r),i=o.ctx;return i[CG]=function(e){var t=o._next();return t&&t[BG](i,e),!t},i[MG]=function(e,r){return void 0===e&&(e=null),pH(e)&&(e=dQ(e,n.cfg,t,r)),cQ(e||i[HG](),t,r)},i}function uQ(e,t,r){var n=CX(t.config),o=sQ(e,n,t,r).ctx;return o[CG]=function(e){return o.iterate(function(t){fH(t[qG])&&t[qG](o,e)})},o[MG]=function(e,r){return void 0===e&&(e=null),pH(e)&&(e=dQ(e,n.cfg,t,r)),uQ(e||o[HG](),t,r)},o}function dQ(e,t,r,n){var o=null,i=!n;if(pH(e)&&e[uG]>0){var a=null;MH(e,function(e){if(i||n!==e||(i=!0),i&&e&&fH(e[qY])){var s=function(e,t,r){var n,o=null,i=fH(e[qY]),a=fH(e[UG]);n=e?e[wG]+"-"+e[HY]+"-"+aQ++:"Unknown-0-"+aQ++;var s={getPlugin:function(){return e},getNext:function(){return o},processTelemetry:u,unload:d,update:f,_id:n,_setNext:function(e){o=e}};function l(){var n;return e&&fH(e[iQ])&&(n=e[iQ]()),n||(n=lQ(s,t,r)),n}function c(t,r,i,a,s){var l=!1,c=e?e[wG]:nQ,u=t[oQ];return u||(u=t[oQ]={}),t.setNext(o),e&&FJ(t[zY](),function(){return c+":"+i},function(){u[n]=!0;try{var e=o?o._id:RY;e&&(u[e]=!1),l=r(t)}catch(s){var a=!o||u[o._id];a&&(l=!0),o&&a||rJ(t[FG](),1,73,"Plugin ["+c+"] failed during "+i+" - "+TH(s)+", run flags: "+TH(u))}},a,s),l}function u(t,r){function n(r){if(!e||!i)return!1;var n=ZJ(e);return!n[zG]&&!n[LY]&&(a&&e[UG](o),e[qY](t,r),!0)}c(r=r||l(),n,"processTelemetry",function(){return{item:t}},!t.sync)||r[CG](t)}function d(t,r){function n(){var n=!1;if(e){var o=ZJ(e),i=e[zY]||o[zY];!e||i&&i!==t.core()||o[zG]||(o[zY]=null,o[zG]=!0,o[kG]=!1,e[zG]&&!0===e[zG](t,r)&&(n=!0))}return n}c(t,n,"unload",function(){},r.isAsync)||t[CG](r)}function f(t,r){function n(){var n=!1;if(e){var o=ZJ(e),i=e[zY]||o[zY];!e||i&&i!==t.core()||o[zG]||e[qG]&&!0===e[qG](t,r)&&(n=!0)}return n}c(t,n,"update",function(){},!1)||t[CG](r)}return sU(s)}(e,t,r);o||(o=s),a&&a._setNext(s),a=s}})}return n&&!o?dQ([n],t,r):o}function fQ(){var e=[];return{add:function(t){t&&e[mG](t)},run:function(t,r){MH(e,function(e){try{e(t,r)}catch(Wqe){rJ(t[FG](),2,73,"Unexpected error calling unload handler - "+TH(Wqe))}}),e=[]}}}function hQ(){var e=[];return{run:function(t){var r=e;e=[],MH(r,function(e){try{(e.rm||e.remove).call(e)}catch(Wqe){rJ(t,2,73,"Unloading:"+TH(Wqe))}})},add:function(t){t&&gW(e,t)}}}var pQ="getPlugin",mQ=((rQ={})[FY]={isVal:oK,v:{}},rQ),gQ=function(){function e(){var t,r,n,o,i,a=this;function s(e){void 0===e&&(e=null);var t=e;if(!t){var o=r||lQ(null,{},a[zY]);t=n&&n[pQ]?o[MG](null,n[pQ]):o[MG](null,n)}return t}function l(e,t,o){CX(e,mQ,JX(t)),!o&&t&&(o=t[AG]()[HG]());var i=n;n&&n[pQ]&&(i=n[pQ]()),a[zY]=t,r=lQ(o,e,t,i)}function c(){t=!1,a[zY]=null,r=null,n=null,i=hQ(),o=fQ()}c(),$$(e,a,function(e){e[bG]=function(e,r,n,o){l(e,r,o),t=!0},e[zG]=function(t,r){var a=e[zY];if(a&&(!t||a===t[zY]())){var s,l=!1,u=t||cQ(null,a,n&&n[pQ]?n[pQ]():n),d=r||{reason:0,isAsync:!1};return e[VG]&&!0===e[VG](u,d,f)?s=!0:f(),s}function f(){l||(l=!0,o.run(u,r),i.run(u[FG]()),!0===s&&u[CG](d),c())}},e[qG]=function(t,r){var o=e[zY];if(o&&(!t||o===t[zY]())){var i,a=!1,s=t||uQ(null,o,n&&n[pQ]?n[pQ]():n),c=r||{reason:0};return e._doUpdate&&!0===e._doUpdate(s,c,u)?i=!0:u(),i}function u(){a||(a=!0,l(s.getCfg(),s.core(),s[HG]()))}},hK(e,"_addUnloadCb",function(){return o},"add"),hK(e,"_addHook",function(){return i},"add"),KH(e,"_unloadHooks",{g:function(){return i}})}),a[FG]=function(e){return s(e)[FG]()},a[kG]=function(){return t},a.setInitialized=function(e){t=e},a[UG]=function(e){n=e},a[CG]=function(e,t){t?t[CG](e):n&&fH(n[qY])&&n[qY](e,null)},a._getTelCtx=s}return e.__ieDyn=1,e}();var vQ,yQ=function(e){function t(){var r,n,o=e.call(this)||this;function i(){r=0,n=[]}return o.identifier="TelemetryInitializerPlugin",o.priority=199,i(),$$(t,o,function(e,t){e.addTelemetryInitializer=function(e){return function(e,t,r){var n={id:t,fn:r};return gW(e,n),{remove:function(){MH(e,function(t,r){if(t.id===n.id)return e[gG](r,1),-1})}}}(n,r++,e)},e[qY]=function(t,r){(function(e,t,r){for(var n=!1,o=e[uG],i=0;i<o;++i){var a=e[i];if(a)try{if(!1===a.fn[pG](null,[t])){n=!0;break}}catch(Wqe){rJ(r,2,64,"Telemetry initializer failed: "+lK(Wqe),{exception:TH(Wqe)},!0)}}return!n})(n,t,r?r[FG]():e[FG]())&&e[CG](t,r)},e[VG]=function(){i()}}),o}return rG(t,e),t.__ieDyn=1,t}(gQ),bQ="Plugins must provide initialize method",wQ="SDK is still unloading...",xQ=aU(((vQ={cookieCfg:{}})[VY]={rdOnly:!0,ref:!0,v:[]},vQ[MY]={rdOnly:!0,ref:!0,v:[]},vQ[FY]={ref:!0,v:{}},vQ[jY]=DY,vQ.loggingLevelConsole=0,vQ.diagnosticLogInterval=DY,vQ));function SQ(e,t){return new jJ(t)}function kQ(e,t){var r=!1;return MH(t,function(t){if(t===e)return r=!0,-1}),r}function EQ(e,t,r,n){r&&RH(r,function(r,o){n&&VW(o)&&VW(t[r])&&EQ(e,t[r],o,n),n&&VW(o)&&VW(t[r])?EQ(e,t[r],o,n):e.set(t,r,o)})}function TQ(e,t){var r=null,n=-1;return MH(e,function(e,o){if(e.w===t)return r=e,n=o,-1}),{i:n,l:r}}function _Q(e,t,r,n){return t.add(e[hG](function(e){var t=e.cfg.disableDbgExt;!0===t&&n&&(r[xG](n),n=null),r&&!n&&!0!==t&&(n=function(e){if(!LX){LX={};for(var t=0;t<VX[uG];t++)LX[VX[t]]=HX(VX[t],e)}return LX}(e.cfg),r[SG](n))})),n}var CQ=function(){function e(){var t,r,n,o,i,a,s,l,c,u,d,f,h,p,m,g,v,y,b,w,x,S,k,E,T,_,C,A,I,P,N,B,O;$$(e,this,function(e){function D(){I=!0,sH(x)?(_=lG.INACTIVE,rJ(n,1,112,"ikey can't be resolved from promises")):_=lG.ACTIVE,R()}function R(){r&&(e.releaseQueue(),e.pollInternalLogs())}function M(e){N&&N[PG]||O||(e||n&&n.queue[uG]>0)&&(B||(B=!0,K(t[hG](function(e){var t=e.cfg.diagnosticLogInterval;t&&t>0||(t=1e4);var r=!1;N&&(r=N[PG],N[yG]()),N=function(e,t){return p$(!1,kq,Wq[Dq](arguments))}(U,t),N.unref(),N[PG]=r}))),N[PG]=!0);return N}function z(){var e={};E=[];var t=function(t){t&&MH(t,function(t){if(t[wG]&&t[DG]&&!e[t.identifier]){var r=t[wG]+"="+t[DG];E[mG](r),e[t.identifier]=t}})};t(f),d&&MH(d,function(e){t(e)}),t(u)}function j(){r=!1,(t=CX({},xQ,e[vG])).cfg[RG]=1,KH(e,"config",{g:function(){return t.cfg},s:function(t){e.updateCfg(t,!1)}}),KH(e,"pluginVersionStringArr",{g:function(){return E||z(),E}}),KH(e,"pluginVersionString",{g:function(){return T||(E||z(),T=E.join(";")),T||RY}}),KH(e,"logger",{g:function(){return n||(n=new eJ(t.cfg),t[vG]=n),n},s:function(e){t[vG]=e,n!==e&&(IX(n,!1),n=e)}}),e[vG]=new eJ(t.cfg),k=[];var b=e.config[VY]||[];b.splice(0,b[uG]),gW(b,k),p=new yQ,o=[],IX(i,!1),i=null,a=null,s=null,IX(l,!1),l=null,c=null,u=[],d=null,f=null,h=!1,m=null,g=iX("AIBaseCore",!0),v=fQ(),w=null,x=null,y=hQ(),S=[],T=null,E=null,O=!1,N=null,B=!1,_=0,C=null,A=null,I=!1,P=null}function L(){var r=lQ(q(),t.cfg,e);return r[OG](M),r}function F(t){var r=function(e,t,r){var n=[],o=[],i={};return MH(r,function(r){(sH(r)||sH(r[bG]))&&_H(bQ);var a=r[HY],s=r[wG];r&&a&&(sH(i[a])?i[a]=s:nJ(e,"Two extensions have same priority #"+a+" - "+i[a]+", "+s)),!a||a<t?n[mG](r):o[mG](r)}),{core:n,channels:o}}(e[vG],500,u);c=null,T=null,E=null,f=tQ(gW(f=(d||[])[0]||[],r[MY]));var n=gW(tQ(r[zY]),f);k=sU(n);var o=e.config[VY]||[];o.splice(0,o[uG]),gW(o,k);var i=L();f&&f[uG]>0&&eQ(i[MG](f),n),eQ(i,n),t&&$(t)}function V(e){var t=null,r=null,n=[];return MH(k,function(t){if(t[wG]===e&&t!==p)return r=t,-1;t.getChannel&&n[mG](t)}),!r&&n[uG]>0&&MH(n,function(t){if(!(r=t.getChannel(e)))return-1}),r&&(t={plugin:r,setEnabled:function(e){ZJ(r)[LY]=!e},isEnabled:function(){var e=ZJ(r);return!e[zG]&&!e[LY]},remove:function(e,t){void 0===e&&(e=!0);var n=[r];H(n,{reason:1,isAsync:e},function(e){e&&F({reason:32,removed:n}),t&&t(e)})}}),t}function q(){if(!c){var r=(k||[]).slice();-1===vW(r,p)&&r[mG](p),c=dQ(tQ(r),t.cfg,e)}return c}function H(r,n,o){if(r&&r[uG]>0){var i=cQ(dQ(r,t.cfg,e),e);i[OG](function(){var e=!1,t=[];MH(u,function(n,o){kQ(n,r)?e=!0:t[mG](n)}),u=t,T=null,E=null;var n=[];d&&(MH(d,function(t,o){var i=[];MH(t,function(t){kQ(t,r)?e=!0:i[mG](t)}),n[mG](i)}),d=n),o&&o(e),M()}),i[CG](n)}else o(!1)}function U(){if(n&&n.queue){var t=n.queue.slice(0);n.queue[uG]=0,MH(t,function(t){var r={name:m||"InternalMessageId: "+t[jG],iKey:x,time:sK(new Date),baseType:XX.dataType,baseData:{message:t[LG]}};e.track(r)})}}function W(e,t,r,n){var o=1,i=!1,a=null;function s(){o--,i&&0===o&&(a&&a[yG](),a=null,t&&t(i),t=null)}(n=n||5e3,f&&f[uG]>0)&&L()[MG](f).iterate(function(t){if(t.flush){o++;var i=!1;t.flush(e,function(){i=!0,s()},r)||i||(e&&null==a?a=m$(function(){a=null,s()},n):s())}});return i=!0,s(),!0}function $(t){var r=uQ(q(),e);r[OG](M),e._updateHook&&!0===e._updateHook(r,t)||r[CG](t)}function G(t){var r=e[vG];r?(rJ(r,2,73,t),M()):_H(t)}function Y(t){var r=e[EG]();r&&r[WY]([t],2)}function K(e){y.add(e)}j(),e._getDbgPlgTargets=function(){return[k,o]},e[kG]=function(){return r},e.activeStatus=function(){return _},e._setPendingStatus=function(){_=3},e[bG]=function(o,l,c,p){var m;h&&_H(wQ),e[kG]()&&_H("Core cannot be initialized more than once"),o=(t=CX(o,xQ,c||e[vG],!1)).cfg,K(t[hG](function(e){var t=e.cfg;A=t.initInMemoMaxSize||100,function(e){var t=e.instrumentationKey,o=e.endpointUrl;if(3!==_){if(sH(t)){x=null,_=lG.INACTIVE;var i="Please provide instrumentation key";return void(r?(rJ(n,1,100,i),R()):_H(i))}var a=[];bH(t)?(a[mG](t),x=null):x=t,bH(o)?(a[mG](o),C=null):C=o,a[uG]?function(e,t){I=!1,_=3;var r=oK(e.initTimeOut)?e.initTimeOut:5e4,n=(o=t,!yY&&(yY=CY(NY)),yY.v(o,i));var o,i;P&&P[yG]();P=m$(function(){P=null,I||D()},r),uY(n,function(t){try{if(I)return;if(!t.rejected){var r=t[IG];if(r&&r[uG]){var n=r[0];if(x=n&&n[IG],r[uG]>1){var o=r[1];C=o&&o[IG]}}x&&(e.instrumentationKey=x,e.endpointUrl=C)}D()}catch(Wqe){I||D()}})}(e,a):D()}}(t);var o=e.ref(e.cfg,FY);RH(o,function(t){e.ref(o,t)})})),b=_Q(t,y,(i=p)&&e[EG](),b),K(t[hG](function(t){if(t.cfg.enablePerfMgr){var r=t.cfg[jY];m===r&&m||(r||(r=SQ),uK(t.cfg,jY,r),m=r,s=null),a||s||!fH(r)||(s=r(e,e[EG]()))}else s=null,m=null})),e[vG]=c;var g=o[VY];if((u=[])[mG].apply(u,nG(nG([],l),g)),d=o[MY],F(null),f&&0!==f[uG]||_H("No "+MY+" available"),d&&d[uG]>1){var v=e[TG]("TeeChannelController");v&&v.plugin||rJ(n,1,28,"TeeChannel required")}!function(e,t,r){MH(t,function(t){var n=AX(e,t.w,r);delete t.w,t.rm=function(){n.rm()}})}(o,S,n),S=null,r=!0,_===lG.ACTIVE&&R()},e.getChannels=function(){var e=[];return f&&MH(f,function(t){e[mG](t)}),sU(e)},e.track=function(t){FJ(e[JY](),function(){return"AppInsightsCore:track"},function(){null===t&&(Y(t),_H("Invalid telemetry item")),!t[_G]&&sH(t[_G])&&(Y(t),_H("telemetry name required")),t.iKey=t.iKey||x,t.time=t.time||sK(new Date),t.ver=t.ver||"4.0",!h&&e[kG]()&&_===lG.ACTIVE?L()[CG](t):_!==lG.INACTIVE&&o[uG]<=A&&o[mG](t)},function(){return{item:t}},!t.sync)},e[AG]=L,e[EG]=function(){return i||(i=new OJ(t.cfg),e._notificationManager=i),i},e[SG]=function(t){e.getNotifyMgr()[SG](t)},e[xG]=function(e){i&&i[xG](e)},e.getCookieMgr=function(){return l||(l=kJ(t.cfg,e[vG])),l},e.setCookieMgr=function(e){l!==e&&(IX(l,!1),l=e)},e[JY]=function(){return a||s||null},e.setPerfMgr=function(e){a=e},e.eventCnt=function(){return o[uG]},e.releaseQueue=function(){if(r&&o[uG]>0){var e=o;o=[],2===_?MH(e,function(e){e.iKey=e.iKey||x,L()[CG](e)}):rJ(n,2,20,"core init status is not active")}},e.pollInternalLogs=function(e){return m=e||null,O=!1,N&&N[yG](),M(!0)},e[NG]=function(){O=!0,N&&N[yG](),U()},pK(e,function(){return p},["addTelemetryInitializer"]),e[BG]=function(t,o,a){void 0===t&&(t=!0),r||_H("SDK is not initialized"),h&&_H(wQ);var s,c={reason:50,isAsync:t,flushComplete:!1};t&&!o&&(s=BY(function(e){o=e}));var u=cQ(q(),e);return u[OG](function(){y.run(e[vG]),PX([l,i,n],t,function(){j(),o&&o(c)})},e),U(),W(t,function(t){c.flushComplete=t,h=!0,v.run(u,c),e[NG](),u[CG](c)},6,a),s},e[TG]=V,e.addPlugin=function(e,t,r,n){if(!e)return n&&n(!1),void G(bQ);var o=V(e[wG]);if(o&&!t)return n&&n(!1),void G("Plugin ["+e[wG]+"] is already loaded!");var i={reason:16};function a(t){u[mG](e),i.added=[e],F(i),n&&n(!0)}if(o){var s=[o.plugin];H(s,{reason:2,isAsync:!!r},function(e){e?(i.removed=s,i.reason|=32,a()):n&&n(!1)})}else a()},e.updateCfg=function(r,n){var o;if(void 0===n&&(n=!0),e[kG]()){o={reason:1,cfg:t.cfg,oldCfg:QW({},t.cfg),newConfig:QW({},r),merge:n},r=o.newConfig;var i=t.cfg;r[VY]=i[VY],r[MY]=i[MY]}t._block(function(e){var t=e.cfg;EQ(e,t,r,n),n||RH(t,function(n){BH(r,n)||e.set(t,n,DY)}),e.setDf(t,xQ)},!0),t.notify(),o&&$(o)},e.evtNamespace=function(){return g},e.flush=W,e.getTraceCtx=function(e){var t;return w||(t={},w={getName:function(){return t[_G]},setName:function(e){t[_G]=e},getTraceId:function(){return t.traceId},setTraceId:function(e){KJ(e)&&(t.traceId=e)},getSpanId:function(){return t.spanId},setSpanId:function(e){XJ(e)&&(t.spanId=e)},getTraceFlags:function(){return t[aY]},setTraceFlags:function(e){t[aY]=e}}),w},e.setTraceCtx=function(e){w=e||null},e.addUnloadHook=K,hK(e,"addUnloadCb",function(){return v},"add"),e.onCfgChange=function(n){var o,i,a,s;return r?o=AX(t.cfg,n,e[vG]):((s=TQ(i=S,a=n).l)||(s={w:a,rm:function(){var e=TQ(i,a);-1!==e.i&&i[gG](e.i,1)}},i[mG](s)),o=s),function(e){return KH({rm:function(){e.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(e)+">"}})}(o)},e.getWParam=function(){return GU()||t.cfg.enableWParam?0:-1}})}return e.__ieDyn=1,e}();function AQ(e,t){try{if(e&&""!==e){var r=MK().parse(e);if(r&&r[rY]&&r[rY]>=r.itemsAccepted&&r.itemsReceived-r.itemsAccepted===r.errors[uG])return r}}catch(Wqe){rJ(t,1,43,"Cannot parse the response. "+(Wqe[_G]||TH(Wqe)),{response:e})}return null}var IQ="",PQ="&NoResponseBody=true",NQ="POST",BQ=function(){function e(){var t,r,n,o,i,a,s,l,c,u,d,f,h,p,m=0;$$(e,this,function(e,g){var v=!0;function y(e,t){rJ(n,2,26,"Failed to send telemetry.",{message:e}),w(t,400,{})}function b(e){y("No endpoint url is provided for the batch",e)}function w(e,t,r,n){try{e&&e(t,r,n)}catch(Wqe){}}function x(e,t){var r=QU(),n=e[oY];if(!n)return b(t),!0;n=e[oY]+(h?PQ:IQ);var i=e[ZG],a=o?i:new Blob([i],{type:"text/plain;charset=UTF-8"});return r.sendBeacon(n,a)}function S(e,t,r){var a=e[ZG];try{if(a)if(x(e,t))w(t,200,{},IQ);else{var s=i&&i.beaconOnRetry;s&&fH(s)?s(e,t,x):(l&&l.sendPOST(e,t,!0),rJ(n,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(Wqe){o&&nJ(n,"Failed to send telemetry using sendBeacon API. Ex:"+TH(Wqe)),w(t,o?0:400,{},IQ)}}function k(e,r,n){var a,s,l,c=e[nY]||{};!n&&t&&(a=BY(function(e,t){s=e,l=t})),o&&n&&e.disableXhrSync&&(n=!1);var u=e[oY];if(!u)return b(r),void(s&&s(!1));var d=function(e,t,r,n,o,i){function a(e,t,r){try{e[t]=r}catch(Wqe){}}void 0===o&&(o=!1);var s=new XMLHttpRequest;return a(s,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",n),r&&a(s,SK,r),s.open(e,t,!o),r&&a(s,SK,r),!o&&i&&a(s,"timeout",i),s}(NQ,u,v,!0,n,e[iY]);function f(t){var n=i&&i.xhrOnComplete;if(n&&fH(n))n(t,r,e);else{var a=yK(t);w(r,t[XG],EK(t,o),a)}}return o||d.setRequestHeader("Content-type","application/json"),MH(oU(c),function(e){d.setRequestHeader(e,c[e])}),d.onreadystatechange=function(){o||(f(d),4===d.readyState&&s&&s(!0))},d.onload=function(){o&&f(d)},d.onerror=function(e){w(r,o?d[XG]:400,EK(d,o),o?IQ:wK(d)),l&&l(e)},d.ontimeout=function(){w(r,o?d[XG]:500,EK(d,o),o?IQ:wK(d)),s&&s(!1)},d.send(e[ZG]),a}function E(e,r,n){var a,l,c,u,d=e[oY],f=e[ZG],g=o?f:new Blob([f],{type:"application/json"}),y=new Headers,x=f[uG],S=!1,k=!1,E=e[nY]||{},T=((a={method:NQ,body:g})[NX]=!0,a);e.headers&&oU(e.headers)[uG]>0&&(MH(oU(E),function(e){y.append(e,E[e])}),T[nY]=y),s?T.credentials=s:v&&o&&(T.credentials="include"),n&&(T.keepalive=!0,m+=x,o?2===e._sendReason&&(S=!0,h&&(d+=PQ)):S=!0);var _=new Request(d,T);try{_[NX]=!0}catch(Wqe){}if(!n&&t&&(l=BY(function(e,t){c=e,u=t})),!d)return b(r),void(c&&c(!1));function C(e,t){w(r,t?o?0:t:o?0:400,{},o?IQ:e)}function A(e,t,n){var o=e[XG],a=i.fetchOnComplete;a&&fH(a)?a(e,r,n||IQ,t):w(r,o,{},n||IQ)}try{uY(fetch(o?d:_,o?T:null),function(t){if(n&&(m-=x,x=0),!k)if(k=!0,t.rejected)C(t.reason&&t.reason[LG],499),u&&u(t.reason);else{var r=t[IG];try{o||r.ok?o&&!r.body?(A(r,null,IQ),c&&c(!0)):uY(r.text(),function(t){A(r,e,t[IG]),c&&c(!0)}):(r[XG]?C(r.statusText,r[XG]):C(r.statusText,499),c&&c(!1))}catch(Wqe){r&&r[XG]?C(TH(Wqe),r[XG]):C(TH(Wqe),499),u&&u(Wqe)}}})}catch(Wqe){k||(C(TH(Wqe),499),u&&u(Wqe))}return S&&!k&&(k=!0,w(r,200,{}),c&&c(!0)),o&&!k&&e[iY]>0&&p&&p.set(function(){k||(k=!0,w(r,500,{}),c&&c(!0))},e[iY]),l}function T(e,t,r){var a=XU(),s=new XDomainRequest,l=e[ZG];s.onload=function(){var r=yK(s),n=i&&i.xdrOnComplete;n&&fH(n)?n(s,t,e):w(t,200,{},r)},s.onerror=function(){w(t,400,{},o?IQ:bK(s))},s.ontimeout=function(){w(t,500,{})},s.onprogress=function(){};var c=a&&a.location&&a.location.protocol||"",u=e[oY];if(u){if(!o&&0!==u.lastIndexOf(c,0)){var d="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";return rJ(n,2,40,". "+d),void y(d,t)}var f=o?u:u[GG](/^(https?:)/,"");s.open(NQ,f),e[iY]&&(s[iY]=e[iY]),s.send(l),o&&r?p&&p.set(function(){s.send(l)},0):s.send(l)}else b(t)}function _(){m=0,r=!1,t=!1,n=null,o=null,i=null,a=null,s=null,l=null,c=!1,u=!1,d=!1,f=!1,h=!1,p=null}_(),e[bG]=function(t,o){n=o,r&&rJ(n,1,28,"Sender is already initialized"),e.SetConfig(t),r=!0},e._getDbgPlgTargets=function(){return[r,o,a,t]},e.SetConfig=function(e){try{if(i=e.senderOnCompleteCallBack||{},a=!!e.disableCredentials,s=e.fetchCredentials,o=!!e.isOneDs,t=!!e.enableSendPromise,c=!!e.disableXhr,u=!!e.disableBeacon,d=!!e.disableBeaconSync,p=e.timeWrapper,h=!!e.addNoResponse,f=!!e.disableFetchKeepAlive,l={sendPOST:k},o||(v=!1),a){var r=DK();r&&r.protocol&&"file:"===r.protocol[cG]()&&(v=!1)}return!0}catch(Wqe){}return!1},e.getSyncFetchPayload=function(){return m},e.getSenderInst=function(e,t){return e&&e[uG]?function(e,t){var r=0,n=null,o=0;for(;null==n&&o<e[uG];)r=e[o],c||1!==r?2!==r||!VK(t)||t&&f?3!==r||!FK()||(t?d:u)||(n=S):n=E:qK()?n=T:HK()&&(n=k),o++;if(n)return{_transport:r,_isSync:t,sendPOST:n};return null}(e,t):null},e.getFallbackInst=function(){return l},e[VG]=function(e,t){_()},e.preparePayload=function(e,t,r,n){if(t&&!n&&r[ZG])try{var o=$U("CompressionStream");if(!fH(o))return void e(r);var i=new ReadableStream({start:function(e){e.enqueue(dH(r[ZG])?(new TextEncoder).encode(r[ZG]):r[ZG]),e.close()}}).pipeThrough(new o("gzip")).getReader(),a=[],s=0,l=!1;return uY(i.read(),function t(n){if(!l&&!n.rejected){var o=n[IG];if(!o.done)return a[mG](o[IG]),s+=o.value[uG],uY(i.read(),t);for(var c=new Uint8Array(s),u=0,d=0,f=a;d<f.length;d++){var h=f[d];c.set(h,u),u+=h[uG]}r[ZG]=c,r[nY]["Content-Encoding"]="gzip",r._chunkCount=a[uG]}l||(l=!0,e(r))}),i}catch(c){return void e(r)}else e(r)}})}return e.__ieDyn=1,e}(),OQ="attachEvent",DQ="addEventListener",RQ="detachEvent",MQ="removeEventListener",zQ="events",jQ="visibilitychange",LQ="pagehide",FQ="pageshow",VQ="unload",qQ="beforeunload",HQ=iX("aiEvtPageHide"),UQ=iX("aiEvtPageShow"),WQ=/\.[\.]+/g,$Q=/[\.]+$/,GQ=1,YQ=aX("events"),KQ=/^([^.]*)(?:\.(.+)|)/;function XQ(e){return e&&e[GG]?e[GG](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,RY):e}function JQ(e,t){if(t){var r=RY;pH(t)?(r=RY,MH(t,function(e){(e=XQ(e))&&("."!==e[0]&&(e="."+e),r+=e)})):r=XQ(t),r&&("."!==r[0]&&(r="."+r),e=(e||RY)+r)}var n=KQ.exec(e||RY)||[];return{type:n[1],ns:(n[2]||RY).replace(WQ,".").replace($Q,RY)[$G](".").sort().join(".")}}function QQ(e,t,r){void 0===r&&(r=!0);var n=YQ.get(e,zQ,{},r),o=n[t];return o||(o=n[t]=[]),o}function ZQ(e,t,r,n){e&&t&&t[YG]&&(e[MQ]?e[MQ](t[YG],r,n):e[RQ]&&e[RQ]("on"+t[YG],r))}function eZ(e,t,r,n){for(var o=t[uG];o--;){var i=t[o];i&&(r.ns&&r.ns!==i[KG].ns||n&&!n(i)||(ZQ(e,i[KG],i.handler,i.capture),t[gG](o,1)))}}function tZ(e,t){return t?JQ("xx",pH(t)?[e].concat(t):[e,t]).ns[$G]("."):e}function rZ(e,t,r,n,o){void 0===o&&(o=!1);var i=!1;if(e)try{var a=JQ(t,n);if(i=function(e,t,r,n){var o=!1;return e&&t&&t[YG]&&r&&(e[DQ]?(e[DQ](t[YG],r,n),o=!0):e[OQ]&&(e[OQ]("on"+t[YG],r),o=!0)),o}(e,a,r,o),i&&YQ.accept(e)){var s={guid:GQ++,evtName:a,handler:r,capture:o};QQ(e,a.type)[mG](s)}}catch(Wqe){}return i}function nZ(e,t,r,n,o){if(void 0===o&&(o=!1),e)try{var i=JQ(t,n),a=!1;!function(e,t,r){if(t[YG])eZ(e,QQ(e,t[YG]),t,r);else{var n=YQ.get(e,zQ,{});RH(n,function(n,o){eZ(e,o,t,r)}),0===oU(n)[uG]&&YQ.kill(e,zQ)}}(e,i,function(e){return!((!i.ns||r)&&e.handler!==r)&&(a=!0,!0)}),a||ZQ(e,i,r,o)}catch(Wqe){}}function oZ(e,t,r,n){var o=!1;return t&&e&&e[uG]>0&&MH(e,function(e){e&&(r&&-1!==vW(r,e)||(o=function(e,t,r){var n=!1,o=XU();o&&(n=rZ(o,e,t,r),n=rZ(o.body,e,t,r)||n);var i=YU();return i&&(n=rZ(i,e,t,r)||n),n}(e,t,n)||o))}),o}function iZ(e,t,r){e&&pH(e)&&MH(e,function(e){e&&function(e,t,r){var n=XU();n&&(nZ(n,e,t,r),nZ(n.body,e,t,r));var o=YU();o&&nZ(o,e,t,r)}(e,t,r)})}function aZ(e,t,r){return function(e,t,r,n){var o=!1;return t&&e&&pH(e)&&!(o=oZ(e,t,r,n))&&r&&r[uG]>0&&(o=oZ(e,t,null,n)),o}([qQ,VQ,LQ],e,t,r)}function sZ(e,t){iZ([qQ,VQ,LQ],e,t)}function lZ(e,t,r){var n=tZ(HQ,r),o=oZ([LQ],e,t,n);return t&&-1!==vW(t,jQ)||(o=oZ([jQ],function(t){var r=YU();e&&r&&"hidden"===r.visibilityState&&e(t)},t,n)||o),!o&&t&&(o=lZ(e,null,r)),o}function cZ(e,t){var r=tZ(HQ,t);iZ([LQ],e,r),iZ([jQ],null,r)}function uZ(e,t,r){var n=tZ(UQ,r),o=oZ([FQ],e,t,n);return!(o=oZ([jQ],function(t){var r=YU();e&&r&&"visible"===r.visibilityState&&e(t)},t,n)||o)&&t&&(o=uZ(e,null,r)),o}var dZ="_aiHooks",fZ=["req","rsp","hkErr","fnErr"];function hZ(e,t){if(e)for(var r=0;r<e[uG]&&!t(e[r],r);r++);}function pZ(e,t,r,n,o){o>=0&&o<=2&&hZ(e,function(e,i){var a=e.cbks,s=a[fZ[o]];if(s){t.ctx=function(){return n[i]=n[i]||{}};try{s[pG](t.inst,r)}catch(u){var l=t.err;try{var c=a[fZ[2]];c&&(t.err=u,c[pG](t.inst,r))}catch(Wqe){}finally{t.err=l}}}})}function mZ(e,t,r,n){var o=null;return e&&(PH(e,t)?o=e:r&&(o=mZ(nK(e),t,n,!1))),o}function gZ(e,t,r,n){var o=r&&r[dZ];if(!o){var i=function(e){return function(){var t=arguments,r=e.h,n={name:e.n,inst:this,ctx:null,set:function(e,r){(t=a([],t))[e]=r,i=a([n],t)}},o=[],i=a([n],t);function a(e,t){return hZ(t,function(t){e[mG](t)}),e}n.evt=$U("event"),pZ(r,n,i,o,0);var s=e.f;if(s)try{n.rslt=s[pG](this,t)}catch(l){throw n.err=l,pZ(r,n,i,o,3),l}return pZ(r,n,i,o,1),n.rslt}}(o={i:0,n:t,f:r,h:[]});i[dZ]=o,e[t]=i}var a={id:o.i,cbks:n,rm:function(){var e=this.id;hZ(o.h,function(t,r){if(t.id===e)return o.h[gG](r,1),1})}};return o.i++,o.h[mG](a),a}function vZ(e,t,r,n,o){if(void 0===n&&(n=!0),e&&t&&r){var i=mZ(e,t,n,o);if(i){var a=i[t];if(typeof a===G$)return gZ(i,t,a,r)}}return null}function yZ(e,t,r,n,o){if(e&&t&&r){var i=mZ(e,t,n,o)||e;if(i)return gZ(i,t,i[t],r)}return null}var bZ="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",wZ="sampleRate",xZ="ProcessLegacy",SZ="http.method",kZ="https://dc.services.visualstudio.com",EZ="/v2/track",TZ="not_specified",_Z="iKey",CZ=aG({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]}),AZ="split",IZ="length",PZ="toLowerCase",NZ="ingestionendpoint",BZ="toString",OZ="removeItem",DZ="message",RZ="count",MZ="preTriggerDate",zZ="getUTCDate",jZ="stringify",LZ="pathname",FZ="match",VZ="correlationHeaderExcludePatterns",qZ="name",HZ="properties",UZ="measurements",WZ="sizeInBytes",$Z="typeName",GZ="exceptions",YZ="severityLevel",KZ="problemGroup",XZ="parsedStack",JZ="hasFullStack",QZ="assembly",ZZ="fileName",e0="line",t0="aiDataContract",r0="duration";function n0(e,t,r){var n=t[IZ],o=function(e,t){var r;t&&(t=zW(EH(t)))[IZ]>150&&(r=bU(t,0,150),rJ(e,2,57,"name is too long.  It has been truncated to 150 characters.",{name:t},!0));return r||t}(e,t);if(o[IZ]!==n){for(var i=0,a=o;void 0!==r[a];)i++,a=bU(o,0,147)+u0(i);o=a}return o}function o0(e,t,r){var n;return void 0===r&&(r=1024),t&&(r=r||1024,(t=zW(EH(t)))[IZ]>r&&(n=bU(t,0,r),rJ(e,2,61,"string value is too long. It has been truncated to "+r+" characters.",{value:t},!0))),n||t}function i0(e,t){return c0(e,t,2048,66)}function a0(e,t){var r;return t&&t[IZ]>32768&&(r=bU(t,0,32768),rJ(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),r||t}function s0(e,t){if(t){var r={};RH(t,function(t,n){if(hH(n)&&RK())try{n=MK()[jZ](n)}catch(Wqe){rJ(e,2,49,"custom property is not valid",{exception:Wqe},!0)}n=o0(e,n,8192),t=n0(e,t,r),r[t]=n}),t=r}return t}function l0(e,t){if(t){var r={};RH(t,function(t,n){t=n0(e,t,r),r[t]=n}),t=r}return t}function c0(e,t,r,n){var o;return t&&(t=zW(EH(t)))[IZ]>r&&(o=bU(t,0,r),rJ(e,2,n,"input is too long, it has been truncated to "+r+" characters.",{data:t},!0)),o||t}function u0(e){var t="00"+e;return wU(t,t[IZ]-3)}var d0=YU()||{},f0=0,h0=[null,null,null,null,null];function p0(e){var t=f0,r=h0,n=r[t];return d0.createElement?r[t]||(n=r[t]=d0.createElement("a")):n={host:m0(e)},n.href=e,++t>=r[IZ]&&(t=0),f0=t,n}function m0(e,t){var r=g0(e)||"";if(r){var n=r[FZ](/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=n&&n[IZ]>3&&dH(n[2])&&n[2][IZ]>0)return n[2]+(n[3]||"")}return r}function g0(e,t){var r=null;if(e){var n=e[FZ](/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=n&&n[IZ]>2&&dH(n[2])&&n[2][IZ]>0&&(r=n[2]||"",n[IZ]>2)){var o=(n[1]||"")[PZ](),i=n[3]||"";("http"===o&&":80"===i||"https"===o&&":443"===i)&&(i=""),r+=i}}return r}var v0=[kZ+EZ,"https://breeze.aimon.applicationinsights.io"+EZ,"https://dc-int.services.visualstudio.com"+EZ];function y0(e){return-1!==vW(v0,e[PZ]())}function b0(e,t,r){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[VZ])for(var n=0;n<e.correlationHeaderExcludePatterns[IZ];n++)if(e[VZ][n].test(t))return!1;var o=p0(t).host[PZ]();if(!o||-1===o$(o,":443")&&-1===o$(o,":80")||(o=(g0(t)||"")[PZ]()),(!e||!e.enableCorsCorrelation)&&o&&o!==r)return!1;var i,a=e&&e.correlationHeaderDomains;if(a&&(MH(a,function(e){var t=new RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));i=i||t.test(o)}),!i))return!1;var s=e&&e.correlationHeaderExcludedDomains;if(!s||0===s[IZ])return!0;for(n=0;n<s[IZ];n++){if(new RegExp(s[n].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(o))return!1}return o&&o[IZ]>0}function w0(e){if(e){var t=function(e,t){if(e)for(var r=e[AZ](","),n=0;n<r[IZ];++n){var o=r[n][AZ]("=");if(2===o[IZ]&&o[0]===t)return o[1]}}(e,CZ[1]);if(t&&"cid-v1:"!==t)return t}}function x0(){var e=r$();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return _U()}function S0(e,t){var r=null;return 0===e||0===t||sH(e)||sH(t)||(r=t-e),r}function k0(e,t){var r=e||{};return{getName:function(){return r[qZ]},setName:function(e){t&&t.setName(e),r[qZ]=e},getTraceId:function(){return r.traceID},setTraceId:function(e){t&&t.setTraceId(e),KJ(e)&&(r.traceID=e)},getSpanId:function(){return r.parentID},setSpanId:function(e){t&&t.setSpanId(e),XJ(e)&&(r.parentID=e)},getTraceFlags:function(){return r.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),r.traceFlags=e}}}var E0=iG({LocalStorage:0,SessionStorage:1}),T0=void 0,_0=void 0,C0="";function A0(){return B0()?I0(E0.LocalStorage):null}function I0(e){try{if(sH(WU()))return null;var t=(new Date)[BZ](),r=$U(e===E0.LocalStorage?"localStorage":"sessionStorage"),n=C0+t;r.setItem(n,t);var o=r.getItem(n)!==t;if(r[OZ](n),!o)return r}catch(i){}return null}function P0(){return R0()?I0(E0.SessionStorage):null}function N0(e){C0=e||""}function B0(e){return(e||void 0===T0)&&(T0=!!I0(E0.LocalStorage)),T0}function O0(e,t){var r=A0();if(null!==r)try{return r.getItem(t)}catch(Wqe){T0=!1,rJ(e,2,1,"Browser failed read of local storage. "+lK(Wqe),{exception:TH(Wqe)})}return null}function D0(e,t,r){var n=A0();if(null!==n)try{return n.setItem(t,r),!0}catch(Wqe){T0=!1,rJ(e,2,3,"Browser failed write to local storage. "+lK(Wqe),{exception:TH(Wqe)})}return!1}function R0(e){return(e||void 0===_0)&&(_0=!!I0(E0.SessionStorage)),_0}function M0(e,t){var r=P0();if(null!==r)try{return r.getItem(t)}catch(Wqe){_0=!1,rJ(e,2,2,"Browser failed read of session storage. "+lK(Wqe),{exception:TH(Wqe)})}return null}function z0(e,t,r){var n=P0();if(null!==n)try{return n.setItem(t,r),!0}catch(Wqe){_0=!1,rJ(e,2,4,"Browser failed write to session storage. "+lK(Wqe),{exception:TH(Wqe)})}return!1}function j0(e,t){var r=P0();if(null!==r)try{return r[OZ](t),!0}catch(Wqe){_0=!1,rJ(e,2,6,"Browser failed removal of session storage item. "+lK(Wqe),{exception:TH(Wqe)})}return!1}var L0=function(){return function(e,t){var r,n,o,i,a,s,l,c=this,u=!1,d=!1;function f(e,t,o,i){if(u){var s=function(e){try{var t=h(e);return r=1e6,kW(ZK()/$K*(r+1))>>>0<=t.limit.samplingRate}catch(Wqe){}var r;return!1}(e);if(!s)return;var l=h(e),c=x(e),d=m(l,r,c),f=!1,p=0,v=S(e);try{d&&!v?(p=gU(l.limit.maxSendNumber,c[RZ]+1),c[RZ]=0,f=!0,a[e]=!0,c[MZ]=new Date):(a[e]=d,c[RZ]+=1);var b=g(e);y(n,b,c);for(var E=0;E<p;E++)w(e,n,t,o)}catch(Wqe){}return{isThrottled:f,throttleNum:p}}return i&&k(e).push({msgID:e,message:t,severity:o}),null}function h(e){return o[e]||o[109]}function p(e,t){var r,n;try{var i=t||{},a={};a.disabled=!!i.disabled;var s=i.interval||{};d=(null==s?void 0:s.daysOfMonth)&&(null==s?void 0:s.daysOfMonth[IZ])>0,a.interval=function(e){var t=null===(e=e||{})||void 0===e?void 0:e.monthInterval,r=null==e?void 0:e.dayInterval;sH(t)&&sH(r)&&(e.monthInterval=3,d||(e.daysOfMonth=[28],d=!0));return e={monthInterval:null==e?void 0:e.monthInterval,dayInterval:null==e?void 0:e.dayInterval,daysOfMonth:null==e?void 0:e.daysOfMonth}}(s);var l={samplingRate:(null===(r=i.limit)||void 0===r?void 0:r.samplingRate)||100,maxSendNumber:(null===(n=i.limit)||void 0===n?void 0:n.maxSendNumber)||1};a.limit=l,o[e]=a}catch(Wqe){}}function m(e,t,r){if(e&&!e.disabled&&t&&oK(r)){var n=v(),o=r.date,i=e.interval,a=1;if(null==i?void 0:i.monthInterval){var s=12*(n.getUTCFullYear()-o.getUTCFullYear())+n.getUTCMonth()-o.getUTCMonth();a=b(i.monthInterval,0,s)}var l=1;if(d)l=vW(i.daysOfMonth,n[zZ]());else if(null==i?void 0:i.dayInterval){var c=kW((n.getTime()-o.getTime())/864e5);l=b(i.dayInterval,0,c)}return a>=0&&l>=0}return!1}function g(e,t){var r=oK(t)?t:"";return e?"appInsightsThrottle"+r+"-"+e:null}function v(e){try{if(!e)return new Date;var t=new Date(e);if(!isNaN(t.getDate()))return t}catch(Wqe){}return null}function y(e,t,r){try{return D0(e,t,zW(JSON[jZ](r)))}catch(Wqe){}return!1}function b(e,t,r){return e<=0?1:r>=t&&(r-t)%e==0?kW((r-t)/e)+1:-1}function w(e,t,r,n){rJ(t,n||1,e,r)}function x(e){try{var t=i[e];if(!t){var r=g(e,s);t=function(e,t,r){try{var n={date:v(),count:0};if(e){var o=JSON.parse(e);return{date:v(o.date)||n.date,count:o[RZ]||n[RZ],preTriggerDate:o.preTriggerDate?v(o[MZ]):void 0}}return y(t,r,n),n}catch(Wqe){}return null}(O0(n,r),n,r),i[e]=t}return i[e]}catch(Wqe){}return null}function S(e){var t=a[e];if(sH(t)){t=!1;var r=x(e);r&&(t=function(e){try{if(e){var t=new Date;return e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e[zZ]()===t[zZ]()}}catch(Wqe){}return!1}(r[MZ])),a[e]=t}return a[e]}function k(e){return sH((l=l||{})[e])&&(l[e]=[]),l[e]}n=JX(e),a={},i={},l={},o={},p(109),s=oK(t)?t:"",e.addUnloadHook(AX(e.config,function(e){var t=e.cfg;r=B0(),RH(t.throttleMgrCfg||{},function(e,t){p(parseInt(e),t)})})),c._getDbgPlgTargets=function(){return[l]},c.getConfig=function(){return o},c.canThrottle=function(e){var t=x(e);return m(h(e),r,t)},c.isTriggered=function(e){return S(e)},c.isReady=function(){return u},c.flush=function(e){try{var t=k(e);if(t&&t[IZ]>0){var r=t.slice(0);return l[e]=[],MH(r,function(e){f(e.msgID,e[DZ],e.severity,!1)}),!0}}catch(n){}return!1},c.flushAll=function(){try{if(l){var e=!0;return RH(l,function(t){var r=c.flush(parseInt(t));e=e&&r}),e}}catch(t){}return!1},c.onReadyState=function(e,t){return void 0===t&&(t=!0),(u=!!sH(e)||e)&&t?c.flushAll():null},c.sendMessage=function(e,t,r){return f(e,t,r,!0)}}}();function F0(e){if(!e)return{};var t=e[AZ](";"),r=TW(t,function(e,t){var r=t[AZ]("=");if(2===r[IZ]){var n=r[0][PZ](),o=r[1];e[n]=o}return e},{});if(oU(r)[IZ]>0){if(r.endpointsuffix){var n=r.location?r.location+".":"";r[NZ]=r[NZ]||"https://"+n+"dc."+r.endpointsuffix}r[NZ]=r[NZ]||kZ,i$(r[NZ],"/")&&(r[NZ]=r[NZ].slice(0,-1))}return r}var V0=function(){return function(e,t,r){var n=this,o=this;o.ver=1,o.sampleRate=100,o.tags={},o[qZ]=o0(e,r)||TZ,o.data=t,o.time=sK(new Date),o[t0]={time:1,iKey:1,name:1,sampleRate:function(){return 100===n.sampleRate?4:1},tags:1,data:1}}}(),q0=function(){function e(e,t,r,n){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var o=this;o.ver=2,o[qZ]=o0(e,t)||TZ,o[HZ]=s0(e,r),o[UZ]=l0(e,n)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),H0=/^\s{0,50}(from\s|at\s|Line\s{1,5}\d{1,10}\s{1,5}of|\w{1,50}@\w{1,80}|[^\(\s\n]+:[0-9\?]+(?::[0-9\?]+)?)/,U0=/([^\(\s\n]+):([0-9]+):([0-9]+)$/,W0=/([^\(\s\n]+):([0-9]+)$/,$0="<no_method>",G0="error",Y0="stack",K0="stackDetails",X0="errorSrc",J0="message",Q0="description",Z0=[{re:/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\]]+):([0-9\?]+):([0-9\?]+)\)?$/,len:5,m:1,fn:2,ln:3,col:4},{chk:function(e){return o$(e,"[native")<0},pre:function(e){return e.replace(/(\(anonymous\))/,"<anonymous>")},re:/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\]]+):([0-9\?]+)\)?$/,len:4,m:1,fn:2,ln:3},{re:/^(?:\s{0,50}at)?\s{0,50}([^\@\()\s]+)?\s{0,50}(?:\s|\@|\()\s{0,5}([^\(\s\n\)\]]+)\)?$/,len:3,m:1,fn:2,hdl:h1},{re:/(?:^|\(|\s{0,10}[\w\)]+\@)?([^\(\n\s\]\)]+)(?:\:([0-9]+)(?:\:([0-9]+))?)?\)?(?:,|$)/,len:2,fn:1,hdl:h1}];function e1(e,t){var r=e;return r&&!dH(r)&&(JSON&&JSON[jZ]?(r=JSON[jZ](e),!t||r&&"{}"!==r||(r=fH(e[BZ])?e[BZ]():""+e)):r=e+" - (Missing JSON.stringify)"),r||""}function t1(e,t){var r=e;return e&&(r&&!dH(r)&&(r=e[J0]||e[Q0]||r),r&&!dH(r)&&(r=e1(r,!0)),e.filename&&(r=r+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===o$(r||"",t)&&(r=t+": "+r),r||""}function r1(e){return e&&e.src&&dH(e.src)&&e.obj&&pH(e.obj)}function n1(e){var t=e||"";dH(t)||(t=dH(t[Y0])?t[Y0]:""+t);var r=t[AZ]("\n");return{src:t,obj:r}}function o1(e){var t=null;if(e)try{if(e[Y0])t=n1(e[Y0]);else if(e[G0]&&e[G0][Y0])t=n1(e[G0][Y0]);else if(e.exception&&e.exception[Y0])t=n1(e.exception[Y0]);else if(r1(e))t=e;else if(r1(e[K0]))t=e[K0];else if(XU()&&XU().opera&&e[J0])t=function(e){for(var t=[],r=e[AZ]("\n"),n=0;n<r[IZ];n++){var o=r[n];r[n+1]&&(o+="@"+r[n+1],n++),t.push(o)}return{src:e,obj:t}}(e[DZ]);else if(e.reason&&e.reason[Y0])t=n1(e.reason[Y0]);else if(dH(e))t=n1(e);else{var r=e[J0]||e[Q0]||"";dH(e[X0])&&(r&&(r+="\n"),r+=" from "+e[X0]),r&&(t=n1(r))}}catch(Wqe){t=n1(Wqe)}return t||{src:"",obj:null}}function i1(e){var t,r=e.obj;if(r&&r[IZ]>0){t=[];var n=0,o=!1,i=0;MH(r,function(e){if(o||function(e){var t=!1;if(e&&dH(e)){var r=zW(e);r&&(t=H0.test(r))}return t}(e)){var r=EH(e);o=!0;var a=function(e,t){var r,n;if(e&&dH(e)&&zW(e)){(r={})[t0]=p1,r.level=t,r.assembly=zW(e),r.method=$0,r.fileName="",r.line=0,r.sizeInBytes=0,n=r;for(var o=0;o<Z0[IZ];){var i=Z0[o];if(i.chk&&!i.chk(e))break;i.pre&&(e=i.pre(e));var a=e[FZ](i.re);if(a&&a[IZ]>=i.len){i.m&&(n.method=zW(a[i.m]||$0)),i.hdl?i.hdl(n,i,a):i.fn&&(i.ln?(n[ZZ]=zW(a[i.fn]||""),n[e0]=parseInt(zW(a[i.ln]||""))||0):f1(n,a[i.fn]||""));break}o++}}return m1(n)}(r,n);a&&(i+=a[WZ],t.push(a),n++)}});if(i>32768)for(var a=0,s=t[IZ]-1,l=0,c=a,u=s;a<s;){if((l+=t[a][WZ]+t[s][WZ])>32768){var d=u-c+1;t.splice(c,d);break}c=a,u=s,a++,s--}}return t}function a1(e){var t="";if(e&&!(t=e.typeName||e[qZ]||""))try{var r=/function (.{1,200})\(/.exec(e.constructor[BZ]());t=r&&r[IZ]>1?r[1]:""}catch(Wqe){}return t}function s1(e){if(e)try{if(!dH(e)){var t=a1(e),r=e1(e,!1);return r&&"{}"!==r||(e[G0]&&(t=a1(e=e[G0])),r=e1(e,!0)),0!==o$(r,t)&&"String"!==t?t+":"+r:r}}catch(Wqe){}return""+(e||"")}var l1=function(){function e(e,t,r,n,o,i){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var a=this;a.ver=2,!function(e){try{if(hH(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(Wqe){}return!1}(t)?(r||(r={}),i&&(r.id=i),a[GZ]=[d1(e,t,r)],a[HZ]=s0(e,r),a[UZ]=l0(e,n),o&&(a[YZ]=o),i&&(a.id=i)):(a[GZ]=t[GZ]||[],a[HZ]=t[HZ],a[UZ]=t[UZ],t[YZ]&&(a[YZ]=t[YZ]),t.id&&(a.id=t.id,t[HZ].id=t.id),t[KZ]&&(a[KZ]=t[KZ]),sH(t.isManual)||(a.isManual=t.isManual))}return e.CreateAutoException=function(e,t,r,n,o,i,a,s){var l=a1(o||i||e);return{message:t1(e,l),url:t,lineNumber:r,columnNumber:n,error:s1(o||i||e),evt:s1(i||e),typeName:l,stackDetails:o1(a||o||i),errorSrc:s}},e.CreateFromInterface=function(t,r,n,o){var i=r[GZ]&&yW(r[GZ],function(e){return function(e,t){var r=pH(t[XZ])&&yW(t[XZ],function(e){return function(e){var t,r=((t={})[t0]=p1,t.level=e.level,t.method=e.method,t.assembly=e[QZ],t.fileName=e[ZZ],t.line=e[e0],t.sizeInBytes=0,t);return m1(r)}(e)})||t[XZ],n=d1(e,eG(eG({},t),{parsedStack:r}));return n}(t,e)});return new e(t,eG(eG({},r),{exceptions:i}),n,o)},e.prototype.toInterface=function(){var e=this,t=e.exceptions,r=e.properties,n=e.measurements,o=e.severityLevel,i=e.problemGroup,a=e.id,s=e.isManual;return{ver:"4.0",exceptions:t instanceof Array&&yW(t,function(e){return e.toInterface()})||void 0,severityLevel:o,properties:r,measurements:n,problemGroup:i,id:a,isManual:s}},e.CreateSimpleException=function(e,t,r,n,o,i){var a;return{exceptions:[(a={},a[JZ]=!0,a.message=e,a.stack=o,a.typeName=t,a)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=s1,e}(),c1=sU({id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2});function u1(){var e=this,t=pH(e[XZ])&&yW(e[XZ],function(e){return function(e){return{level:e.level,method:e.method,assembly:e[QZ],fileName:e[ZZ],line:e[e0]}}(e)});return{id:e.id,outerId:e.outerId,typeName:e[$Z],message:e[DZ],hasFullStack:e[JZ],stack:e[Y0],parsedStack:t||void 0}}function d1(e,t,r){var n,o,i,a,s,l;if(function(e){try{if(hH(e))return"hasFullStack"in e&&"typeName"in e}catch(Wqe){}return!1}(t))o=t[$Z],i=t[DZ],s=t[Y0],l=t[XZ]||[],a=t[JZ];else{var c=t,u=c&&c.evt;yH(c)||(c=c[G0]||u||c),o=o0(e,a1(c))||TZ,i=a0(e,t1(t||c,o))||TZ;var d=t[K0]||o1(t);l=i1(d),pH(l)&&yW(l,function(t){t[QZ]=o0(e,t[QZ]),t[ZZ]=o0(e,t[ZZ])}),s=function(e,t){var r;if(t){var n=""+t;n[IZ]>32768&&(r=bU(n,0,32768),rJ(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return r||t}(e,function(e){var t="";return e&&(t=e.obj?e.obj.join("\n"):e.src||""),t}(d)),a=pH(l)&&l[IZ]>0,r&&(r[$Z]=r[$Z]||o)}return(n={})[t0]=c1,n.id=undefined,n.outerId=undefined,n.typeName=o,n.message=i,n[JZ]=a,n.stack=s,n.parsedStack=l,n.toInterface=u1,n}function f1(e,t){var r=t[FZ](U0);if(r&&r[IZ]>=4)e[ZZ]=r[1],e[e0]=parseInt(r[2]);else{var n=t[FZ](W0);n&&n[IZ]>=3?(e[ZZ]=n[1],e[e0]=parseInt(n[2])):e[ZZ]=t}}function h1(e,t,r){var n=e[ZZ];t.fn&&r&&r[IZ]>t.fn&&(t.ln&&r[IZ]>t.ln?(n=zW(r[t.fn]||""),e[e0]=parseInt(zW(r[t.ln]||""))||0):n=zW(r[t.fn]||"")),n&&f1(e,n)}var p1=sU({level:1,method:1,assembly:0,fileName:0,line:0});function m1(e){var t=58;return e&&(t+=e.method[IZ],t+=e.assembly[IZ],t+=e.fileName[IZ],t+=e.level.toString()[IZ],t+=e.line.toString()[IZ],e[WZ]=t),e}var g1=function(){return function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}}(),v1=function(){function e(e,t,r,n,o,i,a,s,l){this.aiDataContract={ver:1,metrics:1,properties:0};var c=this;c.ver=2;var u=new g1;u[RZ]=n>0?n:void 0,u.max=isNaN(i)||null===i?void 0:i,u.min=isNaN(o)||null===o?void 0:o,u[qZ]=o0(e,t)||TZ,u.value=r,u.stdDev=isNaN(a)||null===a?void 0:a,c.metrics=[u],c[HZ]=s0(e,s),c[UZ]=l0(e,l)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}();function y1(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=n$(e))%1e3,r=""+kW(e/1e3)%60,n=""+kW(e/6e4)%60,o=""+kW(e/36e5)%24,i=kW(e/864e5);return t=1===t[IZ]?"00"+t:2===t[IZ]?"0"+t:t,r=r[IZ]<2?"0"+r:r,n=n[IZ]<2?"0"+n:n,(i>0?i+".":"")+(o=o[IZ]<2?"0"+o:o)+":"+n+":"+r+"."+t}var b1=function(){function e(e,t,r,n,o,i,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var s=this;s.ver=2,s.id=function(e,t){return t?c0(e,t,128,69)[BZ]():t}(e,a),s.url=i0(e,r),s[qZ]=o0(e,t)||TZ,isNaN(n)||(s[r0]=y1(n)),s[HZ]=s0(e,o),s[UZ]=l0(e,i)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),w1=function(){function e(e,t,r,n,o,i,a,s,l,c,u,d){void 0===l&&(l="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var f=this;f.ver=2,f.id=t,f[r0]=y1(o),f.success=i,f.resultCode=a+"",f.type=o0(e,l);var h=function(e,t,r,n){var o,i=n,a=n;if(t&&t[IZ]>0){var s=p0(t);if(o=s.host,!i)if(null!=s[LZ]){var l=0===s.pathname[IZ]?"/":s[LZ];"/"!==l.charAt(0)&&(l="/"+l),a=s[LZ],i=o0(e,r?r+" "+l:l)}else i=o0(e,t)}else o=n,i=n;return{target:o,name:i,data:a}}(e,r,s,n);f.data=i0(e,n)||h.data,f.target=o0(e,h.target),c&&(f.target="".concat(f.target," | ").concat(c)),f[qZ]=o0(e,h[qZ]),f[HZ]=s0(e,u),f[UZ]=l0(e,d)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}(),x1=function(){function e(e,t,r,n,o){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var i=this;i.ver=2,t=t||TZ,i[DZ]=a0(e,t),i[HZ]=s0(e,n),i[UZ]=l0(e,o),r&&(i[YZ]=r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),S1=function(){function e(e,t,r,n,o,i,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var s=this;s.ver=2,s.url=i0(e,r),s[qZ]=o0(e,t)||TZ,s[HZ]=s0(e,o),s[UZ]=l0(e,i),a&&(s.domProcessing=a.domProcessing,s[r0]=a[r0],s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s.receivedResponse=a.receivedResponse,s.sentRequest=a.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}(),k1=function(){return function(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t}}();function E1(e){var t="ai."+e+".";return function(e){return t+e}}var T1,_1=E1("application"),C1=E1("device"),A1=E1("location"),I1=E1("operation"),P1=E1("session"),N1=E1("user"),B1=E1("cloud"),O1=E1("internal"),D1=function(e){function t(){return e.call(this)||this}return rG(t,e),t}((T1={applicationVersion:_1("ver"),applicationBuild:_1("build"),applicationTypeId:_1("typeId"),applicationId:_1("applicationId"),applicationLayer:_1("layer"),deviceId:C1("id"),deviceIp:C1("ip"),deviceLanguage:C1("language"),deviceLocale:C1("locale"),deviceModel:C1("model"),deviceFriendlyName:C1("friendlyName"),deviceNetwork:C1("network"),deviceNetworkName:C1("networkName"),deviceOEMName:C1("oemName"),deviceOS:C1("os"),deviceOSVersion:C1("osVersion"),deviceRoleInstance:C1("roleInstance"),deviceRoleName:C1("roleName"),deviceScreenResolution:C1("screenResolution"),deviceType:C1("type"),deviceMachineName:C1("machineName"),deviceVMName:C1("vmName"),deviceBrowser:C1("browser"),deviceBrowserVersion:C1("browserVersion"),locationIp:A1("ip"),locationCountry:A1("country"),locationProvince:A1("province"),locationCity:A1("city"),operationId:I1("id"),operationName:I1("name"),operationParentId:I1("parentId"),operationRootId:I1("rootId"),operationSyntheticSource:I1("syntheticSource"),operationCorrelationVector:I1("correlationVector"),sessionId:P1("id"),sessionIsFirst:P1("isFirst"),sessionIsNew:P1("isNew"),userAccountAcquisitionDate:N1("accountAcquisitionDate"),userAccountId:N1("accountId"),userAgent:N1("userAgent"),userId:N1("id"),userStoreRegion:N1("storeRegion"),userAuthUserId:N1("authUserId"),userAnonymousUserAcquisitionDate:N1("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:N1("authUserAcquisitionDate"),cloudName:B1("name"),cloudRole:B1("role"),cloudRoleVer:B1("roleVer"),cloudRoleInstance:B1("roleInstance"),cloudEnvironment:B1("environment"),cloudLocation:B1("location"),cloudDeploymentUnit:B1("deploymentUnit"),internalNodeName:O1("nodeName"),internalSdkVersion:O1("sdkVersion"),internalAgentVersion:O1("agentVersion"),internalSnippet:O1("snippet"),internalSdkSrc:O1("sdkSrc")},function(){return function(){var e=this;T1&&RH(T1,function(t,r){e[t]=r})}}()));function R1(e,t,r,n,o,i){r=o0(n,r)||TZ,(sH(e)||sH(t)||sH(r))&&_H("Input doesn't contain all required fields");var a="";e[_Z]&&(a=e[_Z],delete e[_Z]);var s={name:r,time:sK(new Date),iKey:a,ext:i||{},tags:[],data:{},baseType:t,baseData:e};return sH(o)||RH(o,function(e,t){s.data[e]=t}),s}var M1="user",z1="device",j1="trace",L1="web",F1="app",V1="os",q1=new D1;function H1(e){var t=null;if(fH(Event))t=new Event(e);else{var r=YU();r&&r.createEvent&&(t=r.createEvent("Event")).initEvent(e,!0,!0)}return t}function U1(e,t){nZ(e,null,null,t)}var W1="AppInsightsPropertiesPlugin",$1="AppInsightsChannelPlugin",G1="ApplicationInsightsAnalytics",Y1="toString",K1="isStorageUseDisabled",X1="_addHook",J1="core",Q1="dataType",Z1="envelopeType",e4="diagLog",t4="track",r4="trackPageView",n4="trackPreviousPageVisit",o4="sendPageViewInternal",i4="startTime",a4="properties",s4="duration",l4="sendPageViewPerformanceInternal",c4="populatePageViewPerformanceEvent",u4="href",d4="sendExceptionInternal",f4="error",h4="lineNumber",p4="columnNumber",m4="CreateAutoException",g4="addTelemetryInitializer",v4="autoExceptionInstrumented",y4="autoTrackPageVisitTime",b4="isBrowserLinkTrackingEnabled",w4="length",x4="enableAutoRouteTracking",S4="enableUnhandledPromiseRejectionTracking",k4="autoUnhandledPromiseInstrumented",E4="getEntriesByType",T4="isPerformanceTimingSupported",_4="getPerformanceTiming",C4="navigationStart",A4="shouldCollectDuration",I4="isPerformanceTimingDataReady",P4="responseStart",N4="loadEventEnd",B4="responseEnd",O4="connectEnd",D4=function(){function e(t,r,n,o){$$(e,this,function(e){var i,a=null,s=[],l=!1,c=!1;function u(e){n&&n.flush(e,function(){})}function d(){a||(a=m$(function(){a=null;var e=s.slice(0),t=!1;s=[],MH(e,function(e){e()?t=!0:s.push(e)}),s[w4]>0&&d(),t&&u(!0)},100))}function f(e){s.push(e),d()}n&&(i=n.logger),e[r4]=function(e,n){var a=e.name;if(sH(a)||"string"!=typeof a){var s=YU();a=e.name=s&&s.title||""}var d=e.uri;if(sH(d)||"string"!=typeof d){var h=DK();d=e.uri=h&&h[u4]||""}if(!c){var p=r$(),m=p&&p[E4]&&p[E4]("navigation");if(m&&m[0]&&!iH(p.timeOrigin)){var g=m[0].loadEventStart;e[i4]=new Date(p.timeOrigin+g)}else{var v=(n||e[a4]||{})[s4]||0;e[i4]=new Date((new Date).getTime()-v)}c=!0}if(!o[T4]())return t[o4](e,n),u(!0),void(iW()||rJ(i,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info."));var y,b,w=!1,x=o[_4]()[C4];x>0&&(y=S0(x,+new Date),o[A4](y)||(y=void 0)),sH(n)||sH(n[s4])||(b=n[s4]),!r&&isNaN(b)||(isNaN(b)&&(n||(n={}),n[s4]=y),t[o4](e,n),u(!0),w=!0);n||(n={}),f(function(){var r=!1;try{if(o[I4]()){r=!0;var s={name:a,uri:d};o[c4](s),s.isValid||w?(w||(n[s4]=s.durationMs,t[o4](e,n)),l||(t[l4](s,n),l=!0)):(n[s4]=y,t[o4](e,n))}else x>0&&S0(x,+new Date)>6e4&&(r=!0,w||(n[s4]=6e4,t[o4](e,n)))}catch(Wqe){rJ(i,1,38,"trackPageView failed on page load calculation: "+lK(Wqe),{exception:TH(Wqe)})}return r})},e.teardown=function(e,t){if(a){a.cancel(),a=null;var r=s.slice(0);s=[],MH(r,function(e){e()})}}})}return e.__ieDyn=1,e}(),R4=["googlebot","adsbot-google","apis-google","mediapartners-google"];function M4(){var e=r$();return e&&!!e.timing}function z4(){var e=r$(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t[C4]>0&&t[P4]>0&&t.requestStart>0&&t[N4]>0&&t[B4]>0&&t[O4]>0&&t.domLoading>0}function j4(){return M4()?r$().timing:null}function L4(){return(e=r$())&&e.getEntriesByType&&e.getEntriesByType("navigation")[w4]>0?r$()[E4]("navigation")[0]:null;var e}function F4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(QU()||{}).userAgent,n=!1;if(r)for(var o=0;o<R4[w4];o++)n=n||-1!==o$(r.toLowerCase(),R4[o]);if(n)return!1;for(o=0;o<e[w4];o++)if(e[o]<0||e[o]>=36e5)return!1;return!0}var V4,q4=function(){function e(t){var r=JX(t);$$(e,this,function(e){e[c4]=function(t){t.isValid=!1;var n=L4(),o=j4(),i=0,a=0,s=0,l=0,c=0;(n||o)&&(n?(i=n[s4],a=0===n[i4]?n[O4]:S0(n[i4],n[O4]),s=S0(n.requestStart,n[P4]),l=S0(n[P4],n[B4]),c=S0(n.responseEnd,n[N4])):(i=S0(o[C4],o[N4]),a=S0(o[C4],o[O4]),s=S0(o.requestStart,o[P4]),l=S0(o[P4],o[B4]),c=S0(o.responseEnd,o[N4])),0===i?rJ(r,2,10,"error calculating page view performance.",{total:i,network:a,request:s,response:l,dom:c}):e[A4](i,a,s,l,c)?i<kW(a)+kW(s)+kW(l)+kW(c)?rJ(r,2,8,"client performance math error.",{total:i,network:a,request:s,response:l,dom:c}):(t.durationMs=i,t.perfTotal=t[s4]=y1(i),t.networkConnect=y1(a),t.sentRequest=y1(s),t.receivedResponse=y1(l),t.domProcessing=y1(c),t.isValid=!0):rJ(r,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:i,network:a,request:s,response:l,dom:c}))},e[_4]=j4,e[T4]=M4,e[I4]=z4,e[A4]=F4})}return e.__ieDyn=1,e}(),H4=function(){function e(t,r){var n="prevPageVisitData";$$(e,this,function(e){e[n4]=function(e,o){try{var i=function(e,r){var o=null;try{if(o=function(){var e=null;try{if(R0()){var r=_U(),o=M0(t,n);o&&RK()&&((e=MK().parse(o)).pageVisitTime=r-e.pageVisitStartTime,j0(t,n))}}catch(Wqe){nJ(t,"Stop page visit timer failed: "+TH(Wqe)),e=null}return e}(),R0()){null!=M0(t,n)&&_H("Cannot call startPageVisit consecutively without first calling stopPageVisit");var i=MK().stringify(new U4(e,r));z0(t,n,i)}}catch(Wqe){nJ(t,"Call to restart failed: "+TH(Wqe)),o=null}return o}(e,o);i&&r(i.pageName,i.pageUrl,i.pageVisitTime)}catch(Wqe){nJ(t,"Auto track page visit time failed, metric will not be collected: "+TH(Wqe))}},KH(e,"_logger",{g:function(){return t}}),KH(e,"pageVisitTimeTrackingHandler",{g:function(){return r}})})}return e.__ieDyn=1,e}(),U4=function(){return function(e,t){this.pageVisitStartTime=_U(),this.pageName=e,this.pageUrl=t}}(),W4=function(){return function(e,t){var r=this,n={};r.start=function(t){void 0!==n[t]&&rJ(e,2,62,"start was called more than once for this event without calling stop.",{name:t,key:t},!0),n[t]=+new Date},r.stop=function(t,o,i,a){var s=n[t];if(isNaN(s))rJ(e,2,63,"stop was called without a corresponding start.",{name:t,key:t},!0);else{var l=S0(s,+new Date);r.action(t,o,l,i,a)}delete n[t],n[t]=void 0}}}();function $4(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}var G4=aU(((V4={sessionRenewalMs:DX(Y4,18e5),sessionExpirationMs:DX(Y4,864e5),disableExceptionTracking:MX()})[y4]=MX(),V4.overridePageViewDuration=MX(),V4[S4]=MX(),V4[k4]=!1,V4.samplingPercentage=RX(function(e){return!isNaN(e)&&e>0&&e<=100},100),V4[K1]=MX(),V4[b4]=MX(),V4[x4]=MX(),V4.namePrefix=jX(),V4.enableDebug=MX(),V4.disableFlushOnBeforeUnload=MX(),V4.disableFlushOnUnload=MX(!1,"disableFlushOnBeforeUnload"),V4.expCfg=OX({inclScripts:!1,expLog:void 0,maxLogs:50}),V4));function Y4(e,t){return(e=e||t)<6e4&&(e=6e4),+e}function K4(e){iH(e[K1])||(e[K1]?(T0=!1,_0=!1):(T0=B0(!0),_0=R0(!0)))}var X4=function(e){function t(){var r,n,o,i,a,s,l,c,u,d,f,h,p,m,g,v,y,b,w,x,S,k=e.call(this)||this;return k.identifier=G1,k.priority=180,k.autoRoutePVDelay=500,$$(t,k,function(e,t){var k=t[X1];function E(t,r,n,o,i){e[e4]().throwInternal(t,r,n,o,i)}function T(){r=null,n=null,o=null,i=null,a=null,s=null,l=!1,c=!1,u=!1,d=!1,f=!1,h=!1,p=!1,m=!1,v=!1;var t=DK();b=t&&t[u4]||"",w=null,x=null,g=null,S=0,KH(e,"config",{g:function(){return g}})}T(),e.getCookieMgr=function(){return SJ(e[J1])},e.processTelemetry=function(t,r){e.processNext(t,r)},e.trackEvent=function(t,r){try{var n=R1(t,q0[Q1],q0[Z1],e[e4](),r);e[J1][t4](n)}catch(Wqe){E(2,39,"trackTrace failed, trace will not be collected: "+lK(Wqe),{exception:TH(Wqe)})}},e.startTrackEvent=function(e){try{r.start(e)}catch(Wqe){E(1,29,"startTrackEvent failed, event will not be collected: "+lK(Wqe),{exception:TH(Wqe)})}},e.stopTrackEvent=function(e,t,n){try{r.stop(e,void 0,t,n)}catch(Wqe){E(1,30,"stopTrackEvent failed, event will not be collected: "+lK(Wqe),{exception:TH(Wqe)})}},e.trackTrace=function(t,r){try{var n=R1(t,x1[Q1],x1[Z1],e[e4](),r);e[J1][t4](n)}catch(Wqe){E(2,39,"trackTrace failed, trace will not be collected: "+lK(Wqe),{exception:TH(Wqe)})}},e.trackMetric=function(t,r){try{var n=R1(t,v1[Q1],v1[Z1],e[e4](),r);e[J1][t4](n)}catch(Wqe){E(1,36,"trackMetric failed, metric will not be collected: "+lK(Wqe),{exception:TH(Wqe)})}},e[r4]=function(e,t){try{var r=e||{};o[r4](r,eG(eG(eG({},r.properties),r.measurements),t)),v&&a[n4](r.name,r.uri)}catch(Wqe){E(1,37,"trackPageView failed, page view will not be collected: "+lK(Wqe),{exception:TH(Wqe)})}},e[o4]=function(t,r,n){var o=YU();if(o&&(t.refUri=void 0===t.refUri?o.referrer:t.refUri),sH(t[i4])){var i=(r||t[a4]||{})[s4]||0;t[i4]=new Date((new Date).getTime()-i)}var a=R1(t,b1[Q1],b1[Z1],e[e4](),r,n);e[J1][t4](a)},e[l4]=function(t,r,n){var o=R1(t,S1[Q1],S1[Z1],e[e4](),r,n);e[J1][t4](o)},e.trackPageViewPerformance=function(t,r){var n=t||{};try{i[c4](n),e[l4](n,r)}catch(Wqe){E(1,37,"trackPageViewPerformance failed, page view will not be collected: "+lK(Wqe),{exception:TH(Wqe)})}},e.startTrackPage=function(e){try{if("string"!=typeof e){var t=YU();e=t&&t.title||""}n.start(e)}catch(Wqe){E(1,31,"startTrackPage failed, page view may not be collected: "+lK(Wqe),{exception:TH(Wqe)})}},e.stopTrackPage=function(e,t,r,o){try{if("string"!=typeof e){var i=YU();e=i&&i.title||""}if("string"!=typeof t){var s=DK();t=s&&s[u4]||""}n.stop(e,t,r,o),v&&a[n4](e,t)}catch(Wqe){E(1,32,"stopTrackPage failed, page view will not be collected: "+lK(Wqe),{exception:TH(Wqe)})}},e[d4]=function(t,r,n){var o=t&&(t.exception||t[f4])||yH(t)&&t||{name:t&&typeof t,message:t||TZ};t=t||{};var i=new l1(e[e4](),o,t[a4]||r,t.measurements,t.severityLevel,t.id).toInterface(),a=YU();if(a&&(null==y?void 0:y.inclScripts)){var s=function(e){var t=e.getElementsByTagName("script"),r=[];return MH(t,function(e){var t=e[sY]("src");if(t){var n=e[sY]("crossorigin"),o=!0===e.hasAttribute("async"),i=!0===e.hasAttribute("defer"),a=e[sY]("referrerpolicy"),s={url:t};n&&(s.crossOrigin=n),o&&(s.async=o),i&&(s.defer=i),a&&(s.referrerPolicy=a),r[mG](s)}}),r}(a);i[a4].exceptionScripts=JSON.stringify(s)}if(null==y?void 0:y.expLog){var l=y.expLog();l&&l.logs&&pH(l.logs)&&(i[a4].exceptionLog=l.logs.slice(0,y.maxLogs).join("\n"))}var c=R1(i,l1[Q1],l1[Z1],e[e4](),r,n);e[J1][t4](c)},e.trackException=function(t,r){t&&!t.exception&&t[f4]&&(t.exception=t[f4]);try{e[d4](t,r)}catch(Wqe){E(1,35,"trackException failed, exception will not be collected: "+lK(Wqe),{exception:TH(Wqe)})}},e._onerror=function(t){var r=t&&t[f4],n=t&&t.evt;try{if(!n){var o=XU();o&&(n=o.event)}var i=t&&t.url||(YU()||{}).URL,a=t.errorSrc||"window.onerror@"+i+":"+(t[h4]||0)+":"+(t[p4]||0),s={errorSrc:a,url:i,lineNumber:t[h4]||0,columnNumber:t[p4]||0,message:t.message};!function(e,t,r,n,o){return!o&&dH(e)&&("Script error."===e||"Script error"===e)}(t.message,t.url,t.lineNumber,t.columnNumber,t[f4])?(t.errorSrc||(t.errorSrc=a),e.trackException({exception:t,severityLevel:3},s)):function(t,r){var n=R1(t,l1[Q1],l1[Z1],e[e4](),r);e[J1][t4](n)}(l1[m4]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",i,t[h4]||0,t[p4]||0,r,n,null,a),s)}catch(Wqe){var l=r?r.name+", "+r.message:"null";E(1,11,"_onError threw exception while logging error, error will not be collected: "+lK(Wqe),{exception:TH(Wqe),errorString:l})}},e[g4]=function(t){if(e[J1])return e[J1][g4](t);s||(s=[]),s.push(t)},e.initialize=function(E,T,_,C){if(!e.isInitialized()){sH(T)&&_H("Error initializing"),t.initialize(E,T,_,C);try{x=tZ(iX(e.identifier),T.evtNamespace&&T.evtNamespace()),s&&(MH(s,function(e){T[g4](e)}),s=null),function(t){var r=e.identifier,n=e[J1];e[X1](AX(t,function(){var o=lQ(null,t,n);g=o.getExtCfg(r,G4),h=h||t[v4]||g[v4],y=g.expCfg,v=g[y4],t.storagePrefix&&N0(t.storagePrefix),K4(g),l=g[b4],function(){if(!c&&l){var t=["/browserLinkSignalR/","/__browserLink/"],r=function(e){if(l&&e.baseType===w1[Q1]){var r=e.baseData;if(r)for(var n=0;n<t[w4];n++)if(r.target&&o$(r.target,t[n])>=0)return!1}return!0};e[X1](e[g4](r)),c=!0}}()}))}(E),i=new q4(e[J1]),o=new D4(e,g.overridePageViewDuration,e[J1],i),a=new H4(e[e4](),function(t,r,n){return function(t,r,n){var o={PageName:t,PageUrl:r};e.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},o)}(t,r,n)}),(r=new W4(e[e4](),"trackEvent")).action=function(t,r,n,o,i){o||(o={}),i||(i={}),o.duration=n[Y1](),e.trackEvent({name:t,properties:o,measurements:i})},(n=new W4(e[e4](),"trackPageView")).action=function(t,r,n,o,i){sH(o)&&(o={}),o.duration=n[Y1]();var a={name:t,uri:r,properties:o,measurements:i};e[o4](a,o)},KU()&&(A=XU(),I=DK(),e[X1](AX(g,function(){(f=g.disableExceptionTracking)||h||g[v4]||(k(yZ(A,"onerror",{ns:x,rsp:function(t,r,n,o,i,a){f||!0===t.rslt||e._onerror(l1[m4](r,n,o,i,a,t.evt))}},!1)),S++,h=!0)})),function(t,r){e[X1](AX(g,function(){p=!0===g[S4],h=h||g[k4],p&&!m&&(k(yZ(t,"onunhandledrejection",{ns:x,rsp:function(t,n){p&&!0!==t.rslt&&e._onerror(l1[m4](function(e){if(e&&e.reason){var t=e.reason;return!dH(t)&&fH(t[Y1])?t[Y1]():TH(t)}return e||""}(n),r?r[u4]:"",0,0,n,t.evt))}},!1)),S++,g[k4]=m=!0)}))}(A,I),function(){var t=XU(),r=DK();e[X1](AX(g,function(){if(u=!0===g[x4],t&&u&&!d&&ZU()){var n=nW();fH(n.pushState)&&fH(n.replaceState)&&typeof Event!==K$&&function(t,r,n){if(d)return;var o=g.namePrefix||"";function i(){u&&$4(t,H1(o+"locationchange"))}function a(){if(w?(b=w,w=n&&n[u4]||""):w=n&&n[u4]||"",u){var t=function(){var t=null;e[J1]&&e[J1].getTraceCtx&&(t=e[J1].getTraceCtx(!1));if(!t){var r=e[J1].getPlugin(W1);if(r){var n=r.plugin.context;n&&(t=k0(n.telemetryTrace))}}return t}();if(t){t.setTraceId(qJ());var r="_unknown_";n&&n.pathname&&(r=n.pathname+(n.hash||"")),t.setName(o0(e[e4](),r))}m$(function(t){e[r4]({refUri:t,properties:{duration:0}})}.bind(e,b),e.autoRoutePVDelay)}}k(yZ(r,"pushState",{ns:x,rsp:function(){u&&($4(t,H1(o+"pushState")),$4(t,H1(o+"locationchange")))}},!0)),k(yZ(r,"replaceState",{ns:x,rsp:function(){u&&($4(t,H1(o+"replaceState")),$4(t,H1(o+"locationchange")))}},!0)),rZ(t,o+"popstate",i,x),rZ(t,o+"locationchange",a,x),d=!0}(t,n,r)}}))}())}catch(Wqe){throw e.setInitialized(!1),Wqe}var A,I}},e._doTeardown=function(e,t){o&&o.teardown(e,t),nZ(window,null,null,x),T()},e._getDbgPlgTargets=function(){return[S,h]},KH(e,"_pageViewManager",{g:function(){return o}}),KH(e,"_pageViewPerformanceManager",{g:function(){return i}}),KH(e,"_pageVisitTimeManager",{g:function(){return a}}),KH(e,"_evtNamespace",{g:function(){return"."+x}})}),k}return rG(t,e),t.Version="3.3.9",t}(gQ),J4="featureOptIn",Q4="scheduleFetchTimeout";function Z4(e,t,r,n){try{var o=r>n;o&&(e=null);var i=0==r?function(e,t,r,n,o,i,a){return JW(e||{},Wq[Dq](arguments))}({},e):e;return i&&t&&!o&&RH(i,function(e){var o=t[e];o&&(hH(i[e])&&hH(o)?i[e]=Z4(i[e],o,++r,n):delete i[e])}),i}catch(Wqe){}return e}var e2,t2="featureOptIn.",r2=".mode",n2=".onCfg",o2=".offCfg";function i2(e,t){try{if(!e||!e.enabled)return null;if(!e[J4])return e.config;var r=e[J4],n=e.config||{};return RH(r,function(r){var o=function(e,t,r){var n;if(!t||!t.enabled)return null;var o=(t[J4]||{})[e]||{mode:1},i=o.mode,a=o.onCfg,s=o.offCfg,l=(r||{})[e]||{mode:2},c=l.mode,u=l.onCfg,d=l.offCfg,f=!!l.blockCdnCfg,h=t2+e+n2,p=t2+e+o2,m=c,g=u,v=d;return f||(4===i||5===i?(m=4==i?3:2,g=a||u,v=s||d):2===i||2===c?(m=2,g=u||a,v=d||s):3===i?(m=3,g=u||a,v=d||s):1===i&&1===c&&(m=1)),(n={})[t2+e+r2]=m,n[h]=g,n[p]=v,n}(r,e,t.config[J4]);sH(o)||(RH(o,function(e,t){t$(n,e,t)}),function(e,t,r){var n=t[t2+e+r2],o=t[t2+e+n2],i=t[t2+e+o2],a=null;3===n&&(a=o);2===n&&(a=i);a&&RH(a,function(e,t){t$(r,e,t)})}(r,o,n))}),n}catch(Wqe){}return null}var a2="ai_cfgsync",s2=void 0,l2=aU(((e2={syncMode:1,blkCdnCfg:s2,customEvtName:s2,cfgUrl:s2,overrideSyncFn:s2,overrideFetchFn:s2,onCfgChangeReceive:s2})[Q4]=18e5,e2.nonOverrideConfigs={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},e2.enableAjax=!1,e2)),c2=function(e){function t(){var r,n,o,i,a,s,l,c,u,d,f,h,p,m,g,v,y=e.call(this)||this;y.priority=198,y.identifier="AppInsightsCfgSyncPlugin";var b,w=!1;return $$(t,y,function(e,t){function y(){n=null,o=null,i=null,a=null,l=null,c=null,p=null,s=null,d=null,f=null,u=null,b=!1,g=null,v=null,h=null}function x(t,r){if(t){if(n=t,r&&!w)return k();if(l&&!w)return e.core.updateCfg(t),!0}return!1}function S(){try{var e=WU();e&&nZ(e,null,null,i)}catch(Wqe){}}function k(e){try{return v&&fH(v)?v(n,e):UK(o,n,e)}catch(Wqe){}return!1}function E(e){try{return S(),e&&(o=e,function(){if(l){var e=WU();if(e)try{rZ(e,o,function(e){var t=e&&e.detail;if(h&&t)h(t);else{var r=t&&t.cfg,n=r&&VW(r)&&I(r);n&&x(n)}},i,!0)}catch(Wqe){}}}()),!0}catch(Wqe){}return!1}function T(e,t,r){var n=WU(),o=n&&n.fetch||null;if(e&&o&&fH(o))try{var i={method:"GET"};b||(i[bZ]=!0);var a=new Request(e,i);if(!b)try{a[bZ]=!0}catch(Wqe){}uY(fetch(a),function(e){var n=e.value;e.rejected?A(t,400):n.ok?uY(n.text(),function(e){A(t,n.status,e.value,r)}):A(t,n.status,null,r)})}catch(Wqe){}}function _(e,t,r){try{var n=new XMLHttpRequest;b||(n[bZ]=!0),n.open("GET",e),n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&A(t,n.status,n.responseText,r)},n.onerror=function(){A(t,400)},n.ontimeout=function(){A(t,400)},n.send()}catch(Wqe){}}function C(t,r,n){try{if(t>=200&&t<400&&r){f=0;var o=MK();if(o){var i=i2(o.parse(r),e.core),a=i&&VW(i)&&I(i);a&&x(a,n)}}else f++;f<3&&P()}catch(Wqe){}}function A(e,t,r,n){try{e(t,r,n)}catch(Wqe){}}function I(e,t){var r=null;try{e&&(r=Z4(e,p,0,5))}catch(Wqe){}return r}function P(){!s&&d&&(s=m$(function(){s=null,m(a,C,c)},d)).unref()}function N(){s&&s.cancel(),s=null,f=0}y(),e.initialize=function(s,y,w,x){t.initialize(s,y,w,x),i=tZ(iX(e.identifier),y.evtNamespace&&y.evtNamespace()),function(t){var i=e.identifier,s=e.core;e._addHook(AX(t,function(){var e=lQ(null,t,s);r=e.getExtCfg(i,l2);var d=u;u=!!r.blkCdnCfg,b=!!r.enableAjax,sH(d)||d===u||(!u&&a?m&&m(a,C,c):N()),sH(l)&&(l=2===r.syncMode),sH(c)&&(c=1===r.syncMode);var f=r.customEvtName||a2;o!==f&&(l?E(f):(S(),o=f)),sH(a)&&(a=r.cfgUrl),a||(n=t,c&&k())})),v=r.overrideSyncFn,g=r.overrideFetchFn,h=r.onCfgChangeReceive,p=r.nonOverrideConfigs,d=r[Q4],m=function(){var e=g;sH(e)&&(VK()?e=T:HK()&&(e=_));return e}(),f=0,a&&!u&&m&&m(a,C,c)}(s)},e.getCfg=function(){return n},e.pause=function(){w=!0,N()},e.resume=function(){w=!1,P()},e.setCfg=function(e){return x(e)},e.sync=function(e){return k(e)},e.updateEventListenerName=function(e){return E(e)},e._doTeardown=function(e,t){S(),N(),y()},e._getDbgPlgTargets=function(){return[c,l,o,u,p]},e.processTelemetry=function(t,r){e.processNext(t,r)}}),y}return rG(t,e),t.__ieDyn=1,t}(gQ),u2="duration",d2="tags",f2="deviceType",h2="data",p2="name",m2="traceID",g2="length",v2="stringify",y2="measurements",b2="dataType",w2="envelopeType",x2="toString",S2="enqueue",k2="count",E2="push",T2="emitLineDelimitedJson",_2="clear",C2="markAsSent",A2="clearSent",I2="bufferOverride",P2="BUFFER_KEY",N2="SENT_BUFFER_KEY",B2="concat",O2="MAX_BUFFER_SIZE",D2="triggerSend",R2="diagLog",M2="initialize",z2="_sender",j2="endpointUrl",L2="instrumentationKey",F2="customHeaders",V2="maxBatchSizeInBytes",q2="onunloadDisableBeacon",H2="isBeaconApiDisabled",U2="alwaysUseXhrOverride",W2="enableSessionStorageBuffer",$2="_buffer",G2="onunloadDisableFetch",Y2="disableSendBeaconSplit",K2="getSenderInst",X2="_onError",J2="_onPartialSuccess",Q2="_onSuccess",Z2="itemsReceived",e5="itemsAccepted",t5="baseType",r5="sampleRate",n5="baseType",o5="baseData",i5="properties",a5="true";function s5(e,t,r){return cK(e,t,r,wH)}function l5(e,t,r){sH(e)||RH(e,function(e,n){gH(n)?r[e]=n:dH(n)?t[e]=n:RK()&&(t[e]=MK()[v2](n))})}function c5(e,t){sH(e)||RH(e,function(r,n){e[r]=n||t})}function u5(e,t,r,n){var o=new V0(e,n,t);s5(o,"sampleRate",r[wZ]),(r[o5]||{}).startTime&&(o.time=sK(r[o5].startTime)),o.iKey=r.iKey;var i=r.iKey.replace(/-/g,"");return o[p2]=o[p2].replace("{0}",i),function(e,t,r){var n=r[d2]=r[d2]||{},o=t.ext=t.ext||{},i=t[d2]=t[d2]||[],a=o.user;a&&(s5(n,q1.userAuthUserId,a.authId),s5(n,q1.userId,a.id||a.localId));var s=o.app;s&&s5(n,q1.sessionId,s.sesId);var l=o.device;l&&(s5(n,q1.deviceId,l.id||l.localId),s5(n,q1[f2],l.deviceClass),s5(n,q1.deviceIp,l.ip),s5(n,q1.deviceModel,l.model),s5(n,q1[f2],l[f2]));var c=t.ext.web;if(c){s5(n,q1.deviceLanguage,c.browserLang),s5(n,q1.deviceBrowserVersion,c.browserVer),s5(n,q1.deviceBrowser,c.browser);var u=r[h2]=r[h2]||{},d=u[o5]=u[o5]||{},f=d[i5]=d[i5]||{};s5(f,"domain",c.domain),s5(f,"isManual",c.isManual?a5:null),s5(f,"screenRes",c.screenRes),s5(f,"userConsent",c.userConsent?a5:null)}var h=o.os;h&&(s5(n,q1.deviceOS,h[p2]),s5(n,q1.deviceOSVersion,h.osVer));var p=o.trace;p&&(s5(n,q1.operationParentId,p.parentID),s5(n,q1.operationName,o0(e,p[p2])),s5(n,q1.operationId,p[m2]));for(var m={},g=i[g2]-1;g>=0;g--)RH(i[g],function(e,t){m[e]=t}),i.splice(g,1);RH(i,function(e,t){m[e]=t});var v=eG(eG({},n),m);v[q1.internalSdkVersion]||(v[q1.internalSdkVersion]=o0(e,"javascript:".concat(f5.Version),64)),r[d2]=mK(v)}(e,r,o),r[d2]=r[d2]||[],mK(o)}function d5(e,t){sH(t[o5])&&rJ(e,1,46,"telemetryItem.baseData cannot be null.")}var f5={Version:"3.3.9"};function h5(e,t,r){d5(e,t);var n={},o={};t[n5]!==q0[b2]&&(n.baseTypeSource=t[n5]),t[n5]===q0[b2]?(n=t[o5][i5]||{},o=t[o5][y2]||{}):t[o5]&&l5(t[o5],n,o),l5(t[h2],n,o),sH(r)||c5(n,r);var i=t[o5][p2],a=new q0(e,i,n,o),s=new k1(q0[b2],a);return u5(e,q0[w2],t,s)}var p5,m5,g5=function(){function e(t,r){var n=[],o=!1,i=r.maxRetryCnt;this._get=function(){return n},this._set=function(e){return n=e},$$(e,this,function(e){e[S2]=function(a){e[k2]()>=r.eventsLimitInMem?o||(rJ(t,2,105,"Maximum in-memory buffer size reached: "+e[k2](),!0),o=!0):(a.cnt=a.cnt||0,!sH(i)&&a.cnt>i||n[E2](a))},e[k2]=function(){return n[g2]},e.size=function(){for(var e=n[g2],t=0;t<n[g2];t++)e+=n[t].item[g2];return r[T2]||(e+=2),e},e[_2]=function(){n=[],o=!1},e.getItems=function(){return n.slice(0)},e.batchPayloads=function(e){if(e&&e[g2]>0){var t=[];return MH(e,function(e){t[E2](e.item)}),r[T2]?t.join("\n"):"["+t.join(",")+"]"}return null},e.createNew=function(e,r,o){var i=n.slice(0);e=e||t,r=r||{};var a=o?new b5(e,r):new v5(e,r);return MH(i,function(e){a[S2](e)}),a}})}return e.__ieDyn=1,e}(),v5=function(e){function t(r,n){var o=e.call(this,r,n)||this;return $$(t,o,function(e,t){e[C2]=function(e){t[_2]()},e[A2]=function(e){}}),o}return rG(t,e),t.__ieDyn=1,t}(g5),y5=["AI_buffer","AI_sentBuffer"],b5=function(e){function t(r,n){var o=e.call(this,r,n)||this,i=!1,a=null==n?void 0:n.namePrefix,s=n[I2]||{getItem:M0,setItem:z0},l=s.getItem,c=s.setItem,u=n.maxRetryCnt;return $$(t,o,function(e,n){var o=m(t[P2]),s=m(t[N2]),d=function(){var e=[];try{return MH(y5,function(t){var r=y(t);if(e=e[B2](r),a){var n=y(a+"_"+t);e=e[B2](n)}}),e}catch(Wqe){rJ(r,2,41,"Transfer events from previous buffers: "+lK(Wqe)+". previous Buffer items can not be removed",{exception:TH(Wqe)})}return[]}(),f=s[B2](d),h=e._set(o[B2](f));function p(e,t){var r=[],n=[];return MH(e,function(e){n[E2](e.item)}),MH(t,function(e){fH(e)||-1!==vW(n,e.item)||r[E2](e)}),r}function m(e){var t=e;return g(t=a?a+"_"+t:t)}function g(e){try{var t=l(r,e);if(t){var n=MK().parse(t);if(dH(n)&&(n=MK().parse(n)),n&&pH(n))return n}}catch(Wqe){rJ(r,1,42," storage key: "+e+", "+lK(Wqe),{exception:TH(Wqe)})}return[]}function v(e,t){var n=e;try{n=a?a+"_"+n:n;var o=JSON[v2](t);c(r,n,o)}catch(Wqe){c(r,n,JSON[v2]([])),rJ(r,2,41," storage key: "+n+", "+lK(Wqe)+". Buffer cleared",{exception:TH(Wqe)})}}function y(e){try{var t=g(e),n=[];return MH(t,function(e){var t={item:e,cnt:0};n[E2](t)}),j0(r,e),n}catch(Wqe){}return[]}h[g2]>t[O2]&&(h[g2]=t[O2]),v(t[N2],[]),v(t[P2],h),e[S2]=function(o){e[k2]()>=t[O2]?i||(rJ(r,2,67,"Maximum buffer size reached: "+e[k2](),!0),i=!0):(o.cnt=o.cnt||0,!sH(u)&&o.cnt>u||(n[S2](o),v(t[P2],e._get())))},e[_2]=function(){n[_2](),v(t[P2],e._get()),v(t[N2],[]),i=!1},e[C2]=function(n){v(t[P2],e._set(p(n,e._get())));var o=m(t[N2]);o instanceof Array&&n instanceof Array&&((o=o[B2](n))[g2]>t[O2]&&(rJ(r,1,67,"Sent buffer reached its maximum size: "+o[g2],!0),o[g2]=t[O2]),v(t[N2],o))},e[A2]=function(e){var r=m(t[N2]);r=p(e,r),v(t[N2],r)},e.createNew=function(n,o,i){i=!!i;var a=e._get().slice(0),s=m(t[N2]).slice(0);n=n||r,o=o||{},e[_2]();var l=i?new t(n,o):new v5(n,o);return MH(a,function(e){l[S2](e)}),i&&l[C2](s),l}}),o}var r;return rG(t,e),r=t,t.VERSION="_1",t.BUFFER_KEY="AI_buffer"+r.VERSION,t.SENT_BUFFER_KEY="AI_sentBuffer"+r.VERSION,t.MAX_BUFFER_SIZE=2e3,t}(g5),w5=function(){function e(t){$$(e,this,function(e){function r(e,i){var a="__aiCircularRefCheck",s={};if(!e)return rJ(t,1,48,"cannot serialize object because it is null or undefined",{name:i},!0),s;if(e[a])return rJ(t,2,50,"Circular reference detected while serializing object",{name:i},!0),s;if(!e.aiDataContract){if("measurements"===i)s=o(e,"number",i);else if("properties"===i)s=o(e,"string",i);else if("tags"===i)s=o(e,"string",i);else if(pH(e))s=n(e,i);else{rJ(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:i},!0);try{MK()[v2](e),s=e}catch(Wqe){rJ(t,1,48,Wqe&&fH(Wqe[x2])?Wqe[x2]():"Error serializing object",null,!0)}}return s}return e[a]=!0,RH(e.aiDataContract,function(o,a){var l=fH(a)?1&a():1&a,c=fH(a)?4&a():4&a,u=2&a,d=void 0!==e[o],f=hH(e[o])&&null!==e[o];if(!l||d||u){if(!c){var h=void 0;void 0!==(h=f?u?n(e[o],o):r(e[o],o):e[o])&&(s[o]=h)}}else rJ(t,1,24,"Missing required field specification. The field is required but not present on source",{field:o,name:i})}),delete e[a],s}function n(e,n){var o;if(e)if(pH(e)){o=[];for(var i=0;i<e[g2];i++){var a=r(e[i],n+"["+i+"]");o[E2](a)}}else rJ(t,1,54,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:n},!0);return o}function o(e,r,n){var o;return e&&(o={},RH(e,function(e,i){if("string"===r)void 0===i?o[e]="undefined":null===i?o[e]="null":i[x2]?o[e]=i[x2]():o[e]="invalid field: toString() is not defined.";else if("number"===r)if(void 0===i)o[e]="undefined";else if(null===i)o[e]="null";else{var a=parseFloat(i);o[e]=a}else o[e]="invalid field: "+n+" is of unknown type.",rJ(t,1,o[e],null,!0)})),o}e.serialize=function(e){var n=r(e,"root");try{return MK()[v2](n)}catch(Wqe){rJ(t,1,48,Wqe&&fH(Wqe[x2])?Wqe[x2]():"Error serializing object",null,!0)}}})}return e.__ieDyn=1,e}(),x5=function(){function e(){}return e.prototype.getHashCodeScore=function(t){return 100*(this.getHashCode(t)/e.INT_MAX_VALUE)},e.prototype.getHashCode=function(e){if(""===e)return 0;for(;e[g2]<8;)e=e[B2](e);for(var t=5381,r=0;r<e[g2];++r)t=(t<<5)+t+e.charCodeAt(r),t&=t;return Math.abs(t)},e.INT_MAX_VALUE=2147483647,e}(),S5=function(){return function(){var e=new x5,t=new D1;this.getSamplingScore=function(r){return r[d2]&&r[d2][t.userId]?e.getHashCodeScore(r[d2][t.userId]):r.ext&&r.ext.user&&r.ext.user.id?e.getHashCodeScore(r.ext.user.id):r[d2]&&r[d2][t.operationId]?e.getHashCodeScore(r[d2][t.operationId]):r.ext&&r.ext.telemetryTrace&&r.ext.telemetryTrace[m2]?e.getHashCodeScore(r.ext.telemetryTrace[m2]):100*Math.random()}}}(),k5=function(){function e(e,t){this.INT_MAX_VALUE=2147483647;var r=t||JX(null);(e>100||e<0)&&(r.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),e=100),this[r5]=e,this.samplingScoreGenerator=new S5}return e.prototype.isSampledIn=function(e){var t=this[r5];return null==t||t>=100||(e.baseType===v1[b2]||this.samplingScoreGenerator.getSamplingScore(e)<t)},e}(),E5=void 0;function T5(e){try{return e.responseText}catch(Wqe){}return null}var _5=aU(((p5={endpointUrl:RX(wH,kZ+EZ)})[T2]=MX(),p5.maxBatchInterval=15e3,p5[V2]=102400,p5.disableTelemetry=MX(),p5[W2]=MX(!0),p5.isRetryDisabled=MX(),p5[H2]=MX(!0),p5[Y2]=MX(!0),p5.disableXhr=MX(),p5[G2]=MX(),p5[q2]=MX(),p5[L2]=E5,p5.namePrefix=E5,p5.samplingPercentage=RX(function(e){return!isNaN(e)&&e>0&&e<=100},100),p5[F2]=E5,p5.convertUndefined=E5,p5.eventsLimitInMem=1e4,p5[I2]=!1,p5.httpXHROverride={isVal:function(e){return e&&e.sendPOST},v:E5},p5[U2]=MX(),p5.transports=E5,p5.retryCodes=E5,p5.corsPolicy=E5,p5.maxRetryCnt={isVal:gH,v:10},p5)),C5="X-Set-Cross-Origin-Resource-Policy";var A5=((m5={})[q0.dataType]=h5,m5[x1.dataType]=function(e,t,r){d5(e,t);var n=t[o5].message,o=t[o5].severityLevel,i=t[o5][i5]||{},a=t[o5][y2]||{};l5(t[h2],i,a),sH(r)||c5(i,r);var s=new x1(e,n,o,i,a),l=new k1(x1[b2],s);return u5(e,x1[w2],t,l)},m5[b1.dataType]=function(e,t,r){var n;d5(e,t);var o=t[o5];sH(o)||sH(o[i5])||sH(o[i5][u2])?sH(t[h2])||sH(t[h2][u2])||(n=t[h2][u2],delete t[h2][u2]):(n=o[i5][u2],delete o[i5][u2]);var i,a=t[o5];((t.ext||{}).trace||{})[m2]&&(i=t.ext.trace[m2]);var s=a.id||i,l=a[p2],c=a.uri,u=a[i5]||{},d=a[y2]||{};sH(a.refUri)||(u.refUri=a.refUri),sH(a.pageType)||(u.pageType=a.pageType),sH(a.isLoggedIn)||(u.isLoggedIn=a.isLoggedIn[x2]()),sH(a[i5])||RH(a[i5],function(e,t){u[e]=t}),l5(t[h2],u,d),sH(r)||c5(u,r);var f=new b1(e,l,c,n,u,d,s),h=new k1(b1[b2],f);return u5(e,b1[w2],t,h)},m5[S1.dataType]=function(e,t,r){d5(e,t);var n=t[o5],o=n[p2],i=n.uri||n.url,a=n[i5]||{},s=n[y2]||{};l5(t[h2],a,s),sH(r)||c5(a,r);var l=new S1(e,o,i,void 0,a,s,n),c=new k1(S1[b2],l);return u5(e,S1[w2],t,c)},m5[l1.dataType]=function(e,t,r){d5(e,t);var n=t[o5][y2]||{},o=t[o5][i5]||{};l5(t[h2],o,n),sH(r)||c5(o,r);var i=t[o5],a=l1.CreateFromInterface(e,i,o,n),s=new k1(l1[b2],a);return u5(e,l1[w2],t,s)},m5[v1.dataType]=function(e,t,r){d5(e,t);var n=t[o5],o=n[i5]||{},i=n[y2]||{};l5(t[h2],o,i),sH(r)||c5(o,r);var a=new v1(e,n[p2],n.average,n.sampleCount,n.min,n.max,n.stdDev,o,i),s=new k1(v1[b2],a);return u5(e,v1[w2],t,s)},m5[w1.dataType]=function(e,t,r){d5(e,t);var n=t[o5][y2]||{},o=t[o5][i5]||{};l5(t[h2],o,n),sH(r)||c5(o,r);var i=t[o5];if(sH(i))return nJ(e,"Invalid input for dependency data"),null;var a=i[i5]&&i[i5][SZ]?i[i5][SZ]:"GET",s=new w1(e,i.id,i.target,i[p2],i[u2],i.success,i.responseCode,a,i.type,i.correlationContext,o,n),l=new k1(w1[b2],s);return u5(e,w1[w2],t,l)},m5),I5=function(e){function t(){var r,n,o,i,a,s,l,c=e.call(this)||this;c.priority=1001,c.identifier=$1;var u,d,f,h,p,m,g,v,y,b,w,x,S,k,E,T,_,C,A,I,P,N,B,O,D,R,M,z,j=0;return $$(t,c,function(e,L){function F(t,n){var o=T5(t);if(!t||o+""!="200"&&""!==o){var i=AQ(o);i&&i[Z2]&&i[Z2]>i[e5]&&!k?e[J2](n,i):e[X2](n,bK(t))}else r=0,e[Q2](n,0)}function V(e,t,r){4===e.readyState&&Q(e.status,t,e.responseURL,r,wK(e),T5(e)||e.response)}function q(e){try{if(e){var t=e.oriPayload;return t&&t[g2]?t:null}}catch(Wqe){}return null}function H(t,r){return!w&&(t?t.baseData&&!t[t5]?(r&&rJ(r,1,70,"Cannot send telemetry without baseData and baseType"),!1):(t[t5]||(t[t5]="EventData"),e[z2]?(n=t,e._sample.isSampledIn(n)?(t[wZ]=e._sample[r5],!0):(r&&rJ(r,2,33,"Telemetry item was sampled out and not sent",{SampleRate:e._sample[r5]}),!1)):(r&&rJ(r,1,28,"Sender was not initialized"),!1)):(r&&rJ(r,1,7,"Cannot send empty telemetry"),!1));var n}function U(e,r){var n=e.iKey||x,o=t.constructEnvelope(e,n,r,S);if(o){var i=!1;if(e[d2]&&e[d2][xZ]&&(MH(e[d2][xZ],function(e){try{e&&!1===e(o)&&(i=!0,nJ(r,"Telemetry processor check returns false"))}catch(Wqe){rJ(r,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+lK(Wqe),{exception:TH(Wqe)},!0)}}),delete e[d2][xZ]),!i)return o}else rJ(r,1,47,"Unable to create an AppInsights envelope")}function W(t){var r="",n=e[R2]();try{var o=H(t,n),i=null;o&&(i=U(t,n)),i&&(r=a.serialize(i))}catch(Wqe){}return r}function $(e){var t="";return e&&e[g2]&&(t="["+e.join(",")+"]"),t}function G(e){var t=X();return{urlString:h,data:e,headers:t}}function Y(t,r,n,o){void 0===o&&(o=!0);var i=function(t,n,o){return function(t,r,n,o){200===r&&t?e._onSuccess(t,t[g2]):o&&e[X2](t,o)}(r,t,0,o)},a=K(r),s=t&&t.sendPOST;return s&&a&&(o&&e._buffer[C2](r),R.preparePayload(function(e){return s(e,i,!n)},z,a,!n)),null}function K(t){if(pH(t)&&t[g2]>0){var r=e[$2].batchPayloads(t),n=X();return{data:r,urlString:h,headers:n,disableXhrSync:P,disableFetchKeepAlive:!N,oriPayload:t}}return null}function X(){try{var e=l||{};return y0(h)&&(e[CZ[6]]=CZ[7]),e}catch(Wqe){}return null}function J(t){var r=t?t[g2]:0;return e[$2].size()+r>m&&(d&&!d.isOnline()||e[D2](!0,null,10),!0)}function Q(t,n,o,i,a,s){var l=null;if(e._appId||(l=AQ(s))&&l.appId&&(e._appId=l.appId),(t<200||t>=300)&&0!==t){if((301===t||307===t||308===t)&&!Z(o))return void e[X2](n,a);if(d&&!d.isOnline()){if(!k){ne(n,10),rJ(e[R2](),2,40,". Offline - Response Code: ".concat(t,". Offline status: ").concat(!d.isOnline(),". Will retry to send ").concat(n.length," items."))}return}!k&&ae(t)?(ne(n),rJ(e[R2](),2,40,". Response code "+t+". Will retry to send "+n[g2]+" items.")):e[X2](n,a)}else Z(o),206===t?(l||(l=AQ(s)),l&&!k?e[J2](n,l):e[X2](n,a)):(r=0,e[Q2](n,i))}function Z(e){return!(s>=10)&&(!sH(e)&&""!==e&&e!==h&&(h=e,++s,!0))}function ee(e,t){if(!u)return Y(R&&R[K2]([3],!0),e,t);u(e,!1)}function te(e){try{if(e&&e[g2])return dH(e[0])}catch(Wqe){}return null}function re(t,r){var n=null;if(pH(t)){for(var o=t[g2],i=0;i<t[g2];i++)o+=t[i].item[g2];return R.getSyncFetchPayload()+o<=65e3?n=2:FK()?n=3:(n=1,rJ(e[R2](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender.")),Y(R&&R[K2]([n],!0),t,r)}return null}function ne(t,o){if(void 0===o&&(o=1),t&&0!==t[g2]){var i=e[$2];i[A2](t),r++;for(var a=0,s=t;a<s.length;a++){var l=s[a];l.cnt=l.cnt||0,l.cnt++,i[S2](l)}!function(e){var t,o=10;if(r<=1)t=o;else{var i=(Math.pow(2,r)-1)/2,a=kW(Math.random()*i*o)+1;t=vU(gU(a*=e,3600),o)}n=_U()+1e3*t}(o),oe()}}function oe(){if(!i&&!o){var t=n?vU(0,n-_U()):0,r=vU(E,t);i=m$(function(){i=null,e[D2](!0,null,1)},r)}}function ie(){i&&i.cancel(),i=null,n=null}function ae(e){return sH(M)?401===e||408===e||429===e||500===e||502===e||503===e||504===e:M[g2]&&M.indexOf(e)>-1}function se(){e[z2]=null,e[$2]=null,e._appId=null,e._sample=null,l={},d=null,r=0,n=null,o=!1,i=null,a=null,s=0,j=0,u=null,f=null,h=null,p=null,m=0,g=!1,b=null,w=!1,x=null,S=E5,k=!1,T=null,C=E5,P=!1,N=!1,D=!1,B=null,O=null,R=null,KH(e,"_senderConfig",{g:function(){return gK({},_5)}})}se(),e.pause=function(){ie(),o=!0},e.resume=function(){o&&(o=!1,n=null,J(),oe())},e.flush=function(t,r,n){if(void 0===t&&(t=!0),!o){ie();try{return e[D2](t,null,n||1)}catch(Wqe){rJ(e[R2](),1,22,"flush failed, telemetry will not be collected: "+lK(Wqe),{exception:TH(Wqe)})}}},e.onunloadFlush=function(){if(!o)if(g||I)try{return e[D2](!0,ee,2)}catch(Wqe){rJ(e[R2](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+lK(Wqe),{exception:TH(Wqe)})}else e.flush(!1)},e.addHeader=function(e,t){l[e]=t},e[M2]=function(t,o,i,j){e.isInitialized()&&rJ(e[R2](),1,28,"Sender is already initialized"),L[M2](t,o,i,j);var H=e.identifier;a=new w5(o.logger),r=0,n=null,e[z2]=null,s=0;var U=e[R2]();f=tZ(iX("Sender"),o.evtNamespace&&o.evtNamespace()),d=function(e){var t=YU(),r=QU(),n=!1,o=[],i=1;!r||sH(r.onLine)||r.onLine||(i=2);var a=0,s=d(),l=tZ(iX("OfflineListener"),e);try{if(u(XU())&&(n=!0),t){var c=t.body||t;c.ononline&&u(c)&&(n=!0)}}catch(Wqe){n=!1}function u(e){var t=!1;return e&&(t=rZ(e,"online",h,l))&&rZ(e,"offline",p,l),t}function d(){return 2!==a&&2!==i}function f(){var e=d();s!==e&&(s=e,MH(o,function(e){var t={isOnline:s,rState:i,uState:a};try{e(t)}catch(Wqe){}}))}function h(){i=1,f()}function p(){i=2,f()}return{isOnline:function(){return s},isListening:function(){return n},unload:function(){var e=XU();if(e&&n){if(U1(e,l),t){var r=t.body||t;iH(r.ononline)||U1(r,l)}n=!1}},addListener:function(e){return o.push(e),{rm:function(){var t=o.indexOf(e);return t>-1?o.splice(t,1):void 0}}},setOnlineState:function(e){a=e,f()}}}(f),e._addHook(AX(t,function(t){var r=t.cfg;r.storagePrefix&&N0(r.storagePrefix);var n=lQ(null,r,o).getExtCfg(H,_5),i=n[j2];if(h&&i===h){var a=r[j2];a&&a!==i&&(n[j2]=a)}var s=$U("CompressionStream");z=vK("zipPayload",r,!1),fH(s)||(z=!1);var d=n.corsPolicy;d?"same-origin"!==d&&"same-site"!==d&&"cross-origin"!==d||c.addHeader(C5,d):delete l[C5],bH(n[L2])&&(n[L2]=r[L2]),KH(e,"_senderConfig",{g:function(){return n}}),p!==n[j2]&&(h=p=n[j2]),o.activeStatus()===lG.PENDING?e.pause():o.activeStatus()===lG.ACTIVE&&e.resume(),b&&b!==n[F2]&&MH(b,function(e){delete l[e.header]}),m=n[V2],g=(!1===n[q2]||!1===n[H2])&&FK(),v=!1===n[q2]&&FK(),y=!1===n[H2]&&FK(),I=n[U2],P=!!n.disableXhr,M=n.retryCodes;var f=n[I2],j=!!n[W2]&&(!!f||R0()),L=n.namePrefix,W=j!==T||j&&C!==L||j&&_!==f;if(e[$2]){if(W)try{e[$2]=e[$2].createNew(U,n,j)}catch(Wqe){rJ(e[R2](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+lK(Wqe),{exception:TH(Wqe)})}J()}else e[$2]=j?new b5(U,n):new v5(U,n);C=L,T=j,_=f,N=!n[G2]&&VK(!0),D=!!n[Y2],e._sample=new k5(n.samplingPercentage,U),bH(x=n[L2])||function(e,t){var r=t.disableInstrumentationKeyValidation;if(!sH(r)&&r)return!0;return new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(e)}(x,r)||rJ(U,1,100,"Invalid Instrumentation key "+x),b=n[F2],dH(h)&&!y0(h)&&b&&b[g2]>0?MH(b,function(e){c.addHeader(e.header,e.value)}):b=null,A=n.enableSendPromise;var $=function(){try{return{enableSendPromise:A,isOneDs:!1,disableCredentials:!1,disableXhr:P,disableBeacon:!y,disableBeaconSync:!v,senderOnCompleteCallBack:{xdrOnComplete:function(e,t,r){var n=q(r);if(n)return F(e,n)},fetchOnComplete:function(e,t,r,n){var o=q(n);if(o)return Q(e.status,o,e.url,o[g2],e.statusText,r||"")},xhrOnComplete:function(e,t,r){var n=q(r);if(n)return V(e,n,n[g2])},beaconOnRetry:function(t,r,n){return function(t,r,n){var o=t,i=o&&o.oriPayload;if(D)O&&O(i,!0),rJ(e[R2](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var a=[],s=0;s<i[g2];s++){var l=i[s],c=[l];n(K(c),r)?e._onSuccess(c,c[g2]):a[E2](l)}a[g2]>0&&(O&&O(a,!0),rJ(e[R2](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}(t,r,n)}}}}catch(Wqe){}return null}();R?R.SetConfig($):(R=new BQ)[M2]($,U);var G=n.httpXHROverride,X=null,Z=null,ee=xK([3,1,2],n.transports);X=R&&R[K2](ee,!1);var te=R&&R.getFallbackInst();B=function(e,t){return Y(te,e,t)},O=function(e,t){return Y(te,e,t,!1)},X=I?G:X||G||te,e[z2]=function(e,t){return Y(X,e,t)},N&&(u=re);var ne=xK([3,1],n.unloadTransports);N||(ne=ne.filter(function(e){return 2!==e})),Z=R&&R[K2](ne,!0),Z=I?G:Z||G,(I||n.unloadTransports||!u)&&Z&&(u=function(e,t){return Y(Z,e,t)}),u||(u=B),w=n.disableTelemetry,S=n.convertUndefined||E5,k=n.isRetryDisabled,E=n.maxBatchInterval}))},e.processTelemetry=function(t,r){var n=(r=e._getTelCtx(r))[R2]();try{if(!H(t,n))return;var o=U(t,n);if(!o)return;var i=a.serialize(o),s=e[$2];J(i);var l={item:i,cnt:0};s[S2](l),oe()}catch(Wqe){rJ(n,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+lK(Wqe),{exception:TH(Wqe)})}e.processNext(t,r)},e.isCompletelyIdle=function(){return!o&&0===j&&0===e._buffer[k2]()},e.getOfflineListener=function(){return d},e._xhrReadyStateChange=function(e,t,r){if(!te(t))return V(e,t,r)},e[D2]=function(t,r,n){var i;if(void 0===t&&(t=!0),!o)try{var a=e[$2];if(w)a[_2]();else{if(a[k2]()>0){var s=a.getItems();!function(t,r){var n=function(){var t,r="getNotifyMgr",n=e.core;n&&(t=n[r]?n[r]():n._notificationManager);return t}();if(n&&n.eventsSendRequest)try{n.eventsSendRequest(t,r)}catch(Wqe){rJ(e[R2](),1,74,"send request notification failed: "+lK(Wqe),{exception:TH(Wqe)})}}(n||0,t),i=r?r.call(e,s,t):e[z2](s,t)}0}ie()}catch(Wqe){var l=LK();(!l||l>9)&&rJ(e[R2](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+lK(Wqe),{exception:TH(Wqe)})}return i},e.getOfflineSupport=function(){return{getUrl:function(){return h},createPayload:G,serialize:W,batch:$,shouldProcess:function(e){return!!H(e)}}},e._doTeardown=function(t,r){e.onunloadFlush(),IX(d,!1),se()},e[X2]=function(t,r,n){if(!te(t))return function(t,r){rJ(e[R2](),2,26,"Failed to send telemetry.",{message:r}),e._buffer&&e._buffer[A2](t)}(t,r)},e[J2]=function(t,r){if(!te(t))return function(t,r){for(var n=[],o=[],i=r.errors.reverse(),a=0,s=i;a<s.length;a++){var l=s[a],c=t.splice(l.index,1)[0];ae(l.statusCode)?o[E2](c):n[E2](c)}t[g2]>0&&e[Q2](t,r[e5]);n[g2]>0&&e[X2](n,wK(null,["partial success",r[e5],"of",r.itemsReceived].join(" ")));o[g2]>0&&(ne(o),rJ(e[R2](),2,40,"Partial success. Delivered: "+t[g2]+", Failed: "+n[g2]+". Will retry to send "+o[g2]+" our of "+r[Z2]+" items"))}(t,r)},e[Q2]=function(t,r){if(!te(t))return function(t){e._buffer&&e._buffer[A2](t)}(t)},e._xdrOnLoad=function(e,t){if(!te(t))return F(e,t)}}),c}return rG(t,e),t.constructEnvelope=function(e,t,r,n){var o;return o=t===e.iKey||sH(t)?e:eG(eG({},e),{iKey:t}),(A5[o.baseType]||h5)(r,o,n)},t}(gQ),P5="duration",N5="properties",B5="requestUrl",O5="length",D5="traceID",R5="spanID",M5="traceFlags",z5="context",j5="aborted",L5="_addHook",F5="core",V5="includeCorrelationHeaders",q5="getAbsoluteUrl",H5="headers",U5="requestHeaders",W5="setRequestHeader",$5="trackDependencyDataInternal",G5="startTime",Y5="toLowerCase",K5="enableRequestHeaderTracking",X5="enableAjaxErrorStatusText",J5="enableAjaxPerfTracking",Q5="maxAjaxCallsPerView",Z5="excludeRequestFromAutoTrackingPatterns",e3="disableAjaxTracking",t3="ajaxPerfLookupDelay",r3="disableFetchTracking",n3="enableResponseHeaderTracking",o3="status",i3="statusText",a3="headerMap",s3="requestSentTime",l3="getTraceId",c3="getTraceFlags",u3="method",d3="errorStatusText",f3="stateChangeAttached",h3="responseText",p3="responseFinishedTime",m3="CreateTrackItem",g3="getAllResponseHeaders",v3="getPartAProps",y3="perfMark",b3="perfTiming",w3="ajaxDiagnosticsMessage",x3="correlationContext",S3="ajaxTotalDuration",k3="eventTraceCtx";function E3(e,t,r){var n=0,o=e[t],i=e[r];return o&&i&&(n=S0(o,i)),n}function T3(e,t,r,n,o){var i=0,a=E3(r,n,o);return a&&(i=_3(e,t,y1(a))),i}function _3(e,t,r){var n="ajaxPerf",o=0;e&&t&&r&&((e[n]=e[n]||{})[t]=r,o=1);return o}var C3,A3=function(){return function(){var e=this;e.openDone=!1,e.setRequestHeaderDone=!1,e.sendDone=!1,e.abortDone=!1,e[f3]=!1}}(),I3=function(){function e(t,r,n,o){var i=this,a=n;i[y3]=null,i.completed=!1,i.requestHeadersSize=null,i[U5]=null,i.responseReceivingDuration=null,i.callbackDuration=null,i[S3]=null,i[j5]=0,i.pageUrl=null,i[B5]=null,i.requestSize=0,i[u3]=null,i[o3]=null,i[s3]=null,i.responseStartedTime=null,i[p3]=null,i.callbackFinishedTime=null,i.endTime=null,i.xhrMonitoringState=new A3,i.clientFailure=0,i[D5]=t,i[R5]=r,i[M5]=null==o?void 0:o.getTraceFlags(),i[k3]=o?{traceId:o[l3](),spanId:o.getSpanId(),traceFlags:o[c3]()}:null,$$(e,i,function(e){e.getAbsoluteUrl=function(){return e[B5]?(t=e[B5],(n=p0(t))&&(r=n.href),r):null;var t,r,n},e.getPathName=function(){return e[B5]?i0(a,(t=e[u3],r=e[B5],t?t.toUpperCase()+" "+r:r)):null;var t,r},e[m3]=function(t,r,n){var o;if(e.ajaxTotalDuration=n$(1e3*S0(e.requestSentTime,e.responseFinishedTime))/1e3,e[S3]<0)return null;var i=((o={id:"|"+e[D5]+"."+e[R5],target:e[q5](),name:e.getPathName(),type:t,startTime:null,duration:e[S3],success:+e[o3]>=200&&+e[o3]<400,responseCode:+e[o3]})[N5]={HttpMethod:e[u3]},o),a=i[N5];if(e[j5]&&(a[j5]=!0),e[s3]&&(i[G5]=new Date,i[G5].setTime(e[s3])),function(e,t){var r=e[b3],n=t[N5]||{},o=0,i="name",a="Start",s="End",l="domainLookup",c="connect",u="redirect",d="request",f="response",h="startTime",p=l+a,m=l+s,g=c+a,v=c+s,y=d+a,b=d+s,w=f+a,x=f+s,S=u+a,k=u=s,E="transferSize",T="encodedBodySize",_="decodedBodySize",C="serverTiming";if(r){o|=T3(n,u,r,S,k),o|=T3(n,l,r,p,m),o|=T3(n,c,r,g,v),o|=T3(n,d,r,y,b),o|=T3(n,f,r,w,x),o|=T3(n,"networkConnect",r,h,v),o|=T3(n,"sentRequest",r,y,x);var A=r[P5];A||(A=E3(r,h,x)||0),o|=_3(n,P5,A),o|=_3(n,"perfTotal",A);var I=r[C];if(I){var P={};MH(I,function(e,t){var r=iK(e[i]||""+t),n=P[r]||{};RH(e,function(e,t){(e!==i&&dH(t)||gH(t))&&(n[e]&&(t=n[e]+";"+t),!t&&dH(t)||(n[e]=t))}),P[r]=n}),o|=_3(n,C,P)}o|=_3(n,E,r[E]),o|=_3(n,T,r[T]),o|=_3(n,_,r[_])}else e[y3]&&(o|=_3(n,"missing",e.perfAttempts));o&&(t[N5]=n)}(e,i),r&&oU(e.requestHeaders)[O5]>0&&(a[U5]=e[U5]),n){var s=n();if(s){var l=s[x3];if(l&&(i.correlationContext=l),s[a3]&&oU(s.headerMap)[O5]>0&&(a.responseHeaders=s[a3]),e[d3])if(e[o3]>=400){var c=s.type;""!==c&&"text"!==c||(a.responseText=s.responseText?s[i3]+" - "+s.responseText:s[i3]),"json"===c&&(a.responseText=s.response?s[i3]+" - "+JSON.stringify(s.response):s[i3])}else 0===e[o3]&&(a.responseText=s[i3]||"")}}return i},e[v3]=function(){var t=null,r=e[k3];if(r&&(r.traceId||r.spanId)){var n=(t={})[j1]={traceID:r.traceId,parentID:r.spanId};sH(r[M5])||(n[M5]=r[M5])}return t}})}return e.__ieDyn=1,e}(),P3="diagLog",N3="_ajaxData",B3="fetch",O3="Failed to monitor XMLHttpRequest",D3=", monitoring data for this ajax call ",R3=D3+"may be incorrect.",M3=D3+"won't be sent.",z3="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",j3="Failed to add custom defined request context as configured call back may missing a null check.",L3="Failed to calculate the duration of the ",F3=0;var V3=function(e,t){return e&&t&&e[N3]?(e[N3].i||{})[t]:null},q3=function(e,t){var r=!1;if(e){var n=(e[N3]||{}).xh;n&&MH(n,function(e){if(e.n===t)return r=!0,-1})}return r};function H3(e,t){var r="";try{var n=V3(e,t);n&&n[B5]&&(r+="(url: '"+n[B5]+"')")}catch(Wqe){}return r}function U3(e,t,r,n,o){rJ(e[P3](),1,t,r,n,o)}function W3(e,t,r,n,o){rJ(e[P3](),2,t,r,n,o)}function $3(e,t,r){return function(n){var o;U3(e,t,r,((o={})[w3]=H3(n.inst,e._ajaxDataId),o.exception=TH(n.err),o))}}function G3(e,t){return e&&t?o$(e,t):-1}function Y3(e,t,r){var n={id:t,fn:r};return e.push(n),{remove:function(){MH(e,function(t,r){if(t.id===n.id)return e.splice(r,1),-1})}}}function K3(e,t,r,n){var o=!0;return MH(t,function(t,i){try{!1===t.fn.call(null,r)&&(o=!1)}catch(Wqe){rJ(e&&e.logger,1,64,"Dependency "+n+" [#"+i+"] failed: "+lK(Wqe),{exception:TH(Wqe)},!0)}}),o}var X3="*.blob.core.",J3=sU([X3+"windows.net",X3+"chinacloudapi.cn",X3+"cloudapi.de",X3+"usgovcloudapi.net"]),Q3=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],Z3=sU(((C3={})[Q5]=500,C3[e3]=!1,C3[r3]=!1,C3[Z5]=void 0,C3.disableCorrelationHeaders=!1,C3.distributedTracingMode=1,C3.correlationHeaderExcludedDomains=J3,C3.correlationHeaderDomains=void 0,C3.correlationHeaderExcludePatterns=void 0,C3.appId=void 0,C3.enableCorsCorrelation=!1,C3[K5]=!1,C3[n3]=!1,C3[X5]=!1,C3[J5]=!1,C3.maxAjaxPerfLookupAttempts=3,C3[t3]=25,C3.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],C3.addRequestContext=void 0,C3.addIntEndpoints=!0,C3)),e6=function(e){function t(){var r,n,o,i,a,s,l,c,u,d,f,h,p,m,g,v,y,b,w,x,S,k,E,T,_,C,A,I,P,N,B=e.call(this)||this;return B.identifier=t.identifier,B.priority=120,$$(t,B,function(e,B){var O=B[L5];function D(){var t=DK();r=!1,n=!1,N=!1,o=t&&t.host&&t.host[Y5](),i=null,a=!1,s=!1,l=0,c=null,u=!1,d=!1,f=null,h=!1,p=0,m=!1,g={},v=!1,y=!1,b=null,w=null,x=null,k=0,E=[],T=[],S=iX("ajaxData"),e._ajaxDataId=S,_=null,C=1,A=1,I=1,P=null}function R(e){var t=!0;return(e||_)&&MH(_,function(r){if(r[Y5]()===e[Y5]())return t=!1,-1}),t}function M(e,t,r){O(function(e,t,r){return e?vZ(e[X$],t,r,!1):null}(e,t,r))}function z(e,t,r){var n=!1,o=((dH(t)?t:(t||{}).url||"")||"")[Y5]();if(MH(b,function(e){var t=e;dH(e)&&(t=new RegExp(e)),n||(n=t.test(o))}),n)return n;var i=G3(o,"?"),a=G3(o,"#");return(-1===i||-1!==a&&a<i)&&(i=a),-1!==i&&(o=o.substring(0,i)),sH(e)?sH(t)||(n="object"==typeof t&&!0===t[bZ]||!!r&&!0===r[bZ]):n=!0===e[bZ]||!0===o[bZ],!n&&o&&y0(o)&&(n=!0),n?g[o]||(g[o]=1):g[o]&&(n=!0),n}function j(e,t,r){var o=!0,i=n;return sH(e)||(o=!0===r||!sH(t)),i&&o}function L(){var t=null;return e[F5]&&e[F5].getTraceCtx&&(t=e[F5].getTraceCtx(!1)),!t&&c&&c.telemetryTrace&&(t=k0(c.telemetryTrace)),t}function F(e,t){if(t[B5]&&f&&h){var r=r$();if(r&&fH(r.mark)){F3++;var n=f+e+"#"+F3;r.mark(n);var o=r.getEntriesByName(n);o&&1===o[O5]&&(t[y3]=o[0])}}}function V(e,t,r,n){var o=t[y3],i=r$(),a=C,s=A,l=t[B5],c=0;!function u(){try{if(i&&o){c++;for(var d=null,f=i.getEntries(),h=f[O5]-1;h>=0;h--){var p=f[h];if(p){if("resource"===p.entryType)p.initiatorType!==e||-1===G3(p.name,l)&&-1===G3(l,p.name)||(d=p);else if("mark"===p.entryType&&p.name===o.name){t[b3]=d;break}if(p[G5]<o[G5]-1e3)break}}}!o||t[b3]||c>=a||!1===t.async?(o&&fH(i.clearMarks)&&i.clearMarks(o.name),t.perfAttempts=c,r()):m$(u,s)}catch(Wqe){n(Wqe)}}()}function q(t){var r="";try{sH(t)||(r+="(url: '".concat("string"==typeof t?t:t.url,"')"))}catch(Wqe){U3(e,15,"Failed to grab failed fetch diagnostics message",{exception:TH(Wqe)})}return r}function H(t,r,n,o,i,s,l){function c(t,r,o){var i=o||{};i.fetchDiagnosticsMessage=q(n),r&&(i.exception=TH(r)),W3(e,t,L3+"fetch call"+M3,i)}i&&(i[p3]=x0(),i[o3]=r,V(B3,i,function(){var t,l=i[m3]("Fetch",a,s);try{w&&(t=w({status:r,request:n,response:o}))}catch(Wqe){W3(e,104,j3)}if(l){void 0!==t&&(l[N5]=eG(eG({},l.properties),t));var u=i[v3]();U(T,e[F5],i,l,null,u)}else c(14,null,{requestSentTime:i[s3],responseFinishedTime:i[p3]})},function(e){c(18,e,null)}))}function U(t,r,n,o,i,a){var s=!0;t[O5]>0&&(s=K3(r,t,{item:o,properties:i,sysProperties:a,context:n?n[z5]:null,aborted:!!n&&!!n[j5]},"initializer"));s&&e[$5](o,i,a)}D(),e.initialize=function(o,l,g,k){var E;e.isInitialized()||(B.initialize(o,l,g,k),x=tZ(iX("ajax"),l&&l.evtNamespace&&l.evtNamespace()),function(r){e[L5](AX(r,function(r){var n=lQ(null,r.cfg,e[F5]);i=n.getExtCfg(t.identifier,Z3),I=i.distributedTracingMode,a=i[K5],s=i[X5],h=i[J5],p=i[Q5],b=[].concat(i[Z5]||[],!1!==i.addIntEndpoints?Q3:[]),w=i.addRequestContext,d=0===I||1===I,u=1===I||2===I,h&&(f=S),v=!!i[e3],C=i.maxAjaxPerfLookupAttempts,A=i[t3],_=i.ignoreHeaders,P=i.appId}))}(o),function(){if(!function(e,t){var r,n=!1;if(HK()){var o=XMLHttpRequest[X$];n=!(sH(o)||sH(o.open)||sH(o.send)||sH(o.abort))}var i=LK();if(i&&i<9&&(n=!1),n)try{var a=new XMLHttpRequest,s={xh:[],i:(r={},r[t]={},r)};a[N3]=s;var l=XMLHttpRequest[X$].open;XMLHttpRequest[X$].open=l}catch(Wqe){n=!1,U3(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:TH(Wqe)})}return n}(e,S))return;e[L5](AX(i,function(){v=!!i[e3],a=i[K5],v||n||(M(XMLHttpRequest,"open",{ns:x,req:function(t,r,n,o){if(!v){var i=t.inst,l=V3(i,S);!z(i,n)&&j(i,l,!0)&&(l&&l.xhrMonitoringState.openDone||(l=function(t,r,n,o){var i,a=L(),l=a&&a[l3]()||qJ(),c=wU(qJ(),0,16),u=t[N3]=t[N3]||{xh:[],i:{}},d=u.i=u.i||{},f=d[S]=d[S]||new I3(l,c,e[P3](),null===(i=e.core)||void 0===i?void 0:i.getTraceCtx());return f[M5]=a&&a[c3](),f[u3]=r,f[B5]=n,f.xhrMonitoringState.openDone=!0,f[U5]={},f.async=o,f[d3]=s,f}(i,r,n,o)),function(t,r){r.xhrMonitoringState[f3]=rZ(t,"readystatechange",function(){var n;try{t&&4===t.readyState&&j(t,r)&&function(t){var r=V3(t,S);function n(r,n){var o=n||{};o.ajaxDiagnosticsMessage=H3(t,S),r&&(o.exception=TH(r)),W3(e,14,L3+"ajax call"+M3,o)}r[p3]=x0(),r[o3]=t[o3],V("xmlhttprequest",r,function(){try{var o=r[m3]("Ajax",a,function(){var r,n=((r={statusText:t[i3],headerMap:null})[x3]=function(t){var r;try{var n=t[g3]();if(null!==n)if(-1!==G3(n[Y5](),CZ[8]))return w0(t.getResponseHeader(CZ[0]))}catch(Wqe){W3(e,18,z3,((r={})[w3]=H3(t,S),r.exception=TH(Wqe),r))}}(t),r.type=t.responseType,r[h3]=function(e){try{var t=e.responseType;if(""===t||"text"===t)return e[h3]}catch(Wqe){}return null}(t),r.response=t.response,r);if(m){var o=t[g3]();if(o){var i=zW(o).split(/[\r\n]+/),a={};MH(i,function(e){var t=e.split(": "),r=t.shift(),n=t.join(": ");R(r)&&(a[r]=n)}),n[a3]=a}}return n}),i=void 0;try{w&&(i=w({status:t[o3],xhr:t}))}catch(Wqe){W3(e,104,j3)}if(o){void 0!==i&&(o[N5]=eG(eG({},o.properties),i));var s=r[v3]();U(T,e[F5],r,o,null,s)}else n(null,{requestSentTime:r[s3],responseFinishedTime:r[p3]})}finally{try{var l=(t[N3]||{i:{}}).i||{};l[S]&&(l[S]=null)}catch(Wqe){}}},function(e){n(e,null)})}(t)}catch(Wqe){var o=TH(Wqe);o&&-1!==G3(o[Y5](),"c00c023f")||U3(e,16,O3+" 'readystatechange' event handler"+R3,((n={})[w3]=H3(t,S),n.exception=o,n))}},x)}(i,l))}},hkErr:$3(e,15,O3+".open"+R3)}),M(XMLHttpRequest,"send",{ns:x,req:function(t,r){if(!v){var n=t.inst,o=V3(n,S);j(n,o)&&!o.xhrMonitoringState.sendDone&&(F("xhr",o),o[s3]=x0(),e[V5](o,void 0,void 0,n),o.xhrMonitoringState.sendDone=!0)}},hkErr:$3(e,17,O3+R3)}),M(XMLHttpRequest,"abort",{ns:x,req:function(e){if(!v){var t=e.inst,r=V3(t,S);j(t,r)&&!r.xhrMonitoringState.abortDone&&(r[j5]=1,r.xhrMonitoringState.abortDone=!0)}},hkErr:$3(e,13,O3+".abort"+R3)}),M(XMLHttpRequest,"setRequestHeader",{ns:x,req:function(e,t,r){if(!v){var n=e.inst,o=V3(n,S);o&&j(n,o)&&(!function(e,t,r){if(e){var n=(e[N3]||{}).xh;n&&n.push({n:t,v:r})}}(n,t,r),a&&R(t)&&(o[U5][t]=r))}},hkErr:$3(e,71,O3+".setRequestHeader"+R3)}),n=!0)}))}(),function(){var t=(o=WU(),!o||sH(o.Request)||sH(o.Request[X$])||sH(o[B3])?null:o[B3]);var o;if(!t)return;var l=WU(),c=t.polyfill;e[L5](AX(i,function(){y=!!i[r3],m=i[n3],y||r?c&&!N&&(O(vZ(l,B3,{ns:x,req:function(e,t,r){z(null,t,r)}})),N=!0):(O(vZ(l,B3,{ns:x,req:function(t,o,i){var l;if(!y&&r&&!z(null,o,i)&&(!c||!n)){var u=t.ctx();l=function(t,r){var n,o,i=L(),l=i&&i[l3]()||qJ(),c=wU(qJ(),0,16),u=new I3(l,c,e[P3](),null===(n=e.core)||void 0===n?void 0:n.getTraceCtx());u[M5]=i&&i[c3](),u[s3]=x0(),u[d3]=s,o=t instanceof Request?(t||{}).url||"":t;if(""===o){var d=DK();d&&d.href&&(o=e$(d.href,"#")[0])}u[B5]=o;var f="GET";r&&r[u3]?f=r[u3]:t&&t instanceof Request&&(f=t[u3]);u[u3]=f;var h={};if(a){new Headers((r?r[H5]:0)||t instanceof Request&&t[H5]||{}).forEach(function(e,t){R(t)&&(h[t]=e)})}return u[U5]=h,F(B3,u),u}(o,i);var d=e[V5](l,o,i);d!==i&&t.set(1,d),u.data=l}},rsp:function(t,r){if(!y){var n=t.ctx().data;n&&(t.rslt=t.rslt.then(function(o){return H(t,(o||{})[o3],r,o,n,function(){var t,r=((t={statusText:(o||{})[i3],headerMap:null})[x3]=function(t){if(t&&t[H5])try{return w0(t[H5].get(CZ[0]))}catch(Wqe){W3(e,18,z3,{fetchDiagnosticsMessage:q(t),exception:TH(Wqe)})}}(o),t);if(m&&o){var n={};o.headers.forEach(function(e,t){R(t)&&(n[t]=e)}),r[a3]=n}return r}),o}).catch(function(e){throw H(t,0,r,null,n,null,{error:e.message||TH(e)}),e}))}},hkErr:$3(e,15,"Failed to monitor Window.fetch"+R3)},!0,iW())),r=!0)})),c&&(l[B3].polyfill=c)}(),(E=e[F5].getPlugin(W1))&&(c=E.plugin[z5]))},e._doTeardown=function(){D()},e.trackDependencyData=function(t,r){U(T,e[F5],null,t,r)},e[V5]=function(t,r,n,s){var l=e._currentWindowHost||o;if(function(e,t,r,n,o,i){var a=!0;if(e[O5]>0){var s={core:t,xhr:n,input:o,init:i,traceId:r[D5],spanId:r[R5],traceFlags:r[M5],context:r[z5]||{},aborted:!!r[j5]};a=K3(t,e,s,"listener"),r[D5]=s.traceId,r[R5]=s.spanId,r[M5]=s[M5],r[z5]=s[z5]}return a}(E,e[F5],t,s,r,n)){if(r||""===r){if(b0(i,t[q5](),l)){n||(n={});var f=new Headers(n[H5]||r instanceof Request&&r[H5]||{});if(d){var h="|"+t[D5]+"."+t[R5];f.set(CZ[3],h),a&&(t[U5][CZ[3]]=h)}if((m=P||c&&c.appId())&&(f.set(CZ[0],CZ[2]+m),a&&(t[U5][CZ[0]]=CZ[2]+m)),u){sH(g=t[M5])&&(g=1);var p=JJ(YJ(t[D5],t[R5],g));f.set(CZ[4],p),a&&(t[U5][CZ[4]]=p)}n[H5]=f}return n}if(s){if(b0(i,t[q5](),l)){if(d)if(q3(s,CZ[3]))W3(e,71,"Unable to set ["+CZ[3]+"] as it has already been set by another instance");else{h="|"+t[D5]+"."+t[R5];s[W5](CZ[3],h),a&&(t[U5][CZ[3]]=h)}var m,g;if((m=P||c&&c.appId())&&(q3(s,CZ[0])?W3(e,71,"Unable to set ["+CZ[0]+"] as it has already been set by another instance"):(s[W5](CZ[0],CZ[2]+m),a&&(t[U5][CZ[0]]=CZ[2]+m))),u)if(sH(g=t[M5])&&(g=1),q3(s,CZ[4]))W3(e,71,"Unable to set ["+CZ[4]+"] as it has already been set by another instance");else{p=JJ(YJ(t[D5],t[R5],g));s[W5](CZ[4],p),a&&(t[U5][CZ[4]]=p)}}return s}}},e[$5]=function(t,r,n){if(-1===p||l<p){2!==I&&1!==I||"string"!=typeof t.id||"."===t.id[t.id[O5]-1]||(t.id+="."),sH(t[G5])&&(t[G5]=new Date);var o=R1(t,w1.dataType,w1.envelopeType,e[P3](),r,n);e[F5].track(o)}else l===p&&U3(e,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++l},e.addDependencyListener=function(e){return Y3(E,k++,e)},e.addDependencyInitializer=function(e){return Y3(T,k++,e)}}),B}return rG(t,e),t.prototype.processTelemetry=function(e,t){this.processNext(e,t)},t.prototype.addDependencyInitializer=function(e){return null},t.identifier="AjaxDependencyPlugin",t}(gQ),t6=function(){return function(){}}(),r6=function(){return function(){this.id="browser",this.deviceClass="Browser"}}(),n6=function(){return function(e,t){var r=this,n=AX(e,function(){var t=e.sdkExtension;r.sdkVersion=(t?t+"_":"")+"javascript:3.3.9"});t&&t.add(n)}}(),o6=function(){return function(){}}(),i6="session",a6="sessionManager",s6="isUserCookieSet",l6="isNewUser",c6="getTraceCtx",u6="telemetryTrace",d6="applySessionContext",f6="applyApplicationContext",h6="applyOperationContext",p6="applyOperatingSystemContxt",m6="applyLocationContext",g6="applyInternalContext",v6="getSessionId",y6="sessionCookiePostfix",b6="automaticSession",w6="accountId",x6="authenticatedId",S6="acquisitionDate",k6="renewalDate",E6="cookieSeparator",T6="authUserCookieName",_6=function(){return function(){}}(),C6=function(){function e(t,r,n){var o,i,a,s,l=JX(r),c=SJ(r);$$(e,this,function(e){t||(t={});var r=AX(t,function(e){a=t.sessionExpirationMs||864e5,s=t.sessionRenewalMs||18e5;var r=t[y6]||t.namePrefix||"";o="ai_session"+r});function u(e,t){var r=!1,n=", session will be reset",o=t.split("|");if(o.length>=2)try{var i=+o[1]||0,a=+o[2]||0;isNaN(i)||i<=0?rJ(l,2,27,"AI session acquisition date is 0"+n):isNaN(a)||a<=0?rJ(l,2,27,"AI session renewal date is 0"+n):o[0]&&(e.id=o[0],e[S6]=i,e[k6]=a,r=!0)}catch(Wqe){rJ(l,1,9,"Error parsing ai_session value ["+(t||"")+"]"+n+" - "+lK(Wqe),{exception:TH(Wqe)})}return r}function d(e,r){var n=e[S6];e[k6]=r;var l=s,u=n+a-r,d=[e.id,n,r],f=0;f=u<l?u/1e3:l/1e3;var h=t.cookieDomain||null;c.set(o,d.join("|"),a>0?f:null,h),i=r}n&&n.add(r),e[b6]=new _6,e.update=function(){var r=_U(),n=!1,f=e[b6];if(f.id||(n=!function(e){var t=!1,r=c.get(o);if(r&&fH(r.split))t=u(e,r);else{var n=O0(l,o);n&&(t=u(e,n))}return t||!!e.id}(f)),!n&&a>0){var h=r-f[S6],p=r-f[k6];n=(n=(n=h<0||p<0)||h>a)||p>s}n?function(r){var n=t.getNewId||eX;e[b6].id=n(t.idLength||22),e[b6][S6]=r,d(e[b6],r),B0()||rJ(l,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}(r):(!i||r-i>6e4)&&d(f,r)},e.backup=function(){var t,r,n,i=e[b6];t=i.id,r=i[S6],n=i[k6],D0(l,o,[t,r,n].join("|"))}})}return e.__ieDyn=1,e}(),A6=function(){return function(e,t,r,n){var o=this;o.traceID=e||qJ(),o.parentID=t;var i=DK();!r&&i&&i.pathname&&(r=i.pathname),o.name=o0(n,r)}}();function I6(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))}var P6=function(){function e(t,r,n){this.isNewUser=!1,this.isUserCookieSet=!1;var o,i=JX(r),a=SJ(r);$$(e,this,function(r){KH(r,"config",{g:function(){return t}});var s=AX(t,function(){var n=t.userCookiePostfix||"";o=e.userCookieName+n;var s=a.get(o);if(s){r[l6]=!1;var d=s.split(e[E6]);d.length>0&&(r.id=d[0],r[s6]=!!r.id)}if(!r.id){r.id=l(),u(c(r.id).join(e[E6]));var f=(t.namePrefix||"")+"ai_session";!function(e,t){var r=A0();if(null!==r)try{return r[OZ](t),!0}catch(Wqe){T0=!1,rJ(e,2,5,"Browser failed removal of local storage item. "+lK(Wqe),{exception:TH(Wqe)})}}(i,f)}r[w6]=t[w6]||void 0;var h=a.get(e[T6]);if(h){var p=(h=decodeURI(h)).split(e[E6]);p[0]&&(r[x6]=p[0]),p.length>1&&p[1]&&(r[w6]=p[1])}});function l(){var e=t||{};return(e.getNewId||eX)(e.idLength?t.idLength:22)}function c(e){var t=sK(new Date);return r.accountAcquisitionDate=t,r[l6]=!0,[e,t]}function u(e){r[s6]=a.set(o,e,31536e3)}n&&n.add(s),r.setAuthenticatedUserContext=function(t,n,o){if(void 0===o&&(o=!1),!I6(t)||n&&!I6(n))rJ(i,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{r[x6]=t;var s=r[x6];n&&(r[w6]=n,s=[r[x6],r.accountId].join(e[E6])),o&&a.set(e[T6],encodeURI(s))}},r.clearAuthenticatedUserContext=function(){r[x6]=null,r[w6]=null,a.del(e[T6])},r.update=function(t){r.id===t&&r[s6]||u(c(t||l()).join(e[E6]))}})}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}(),N6="ext",B6="tags";function O6(e,t){e&&e[t]&&0===oU(e[t]).length&&delete e[t]}function D6(){return null}var R6,M6,z6,j6,L6,F6,V6,q6=function(){function e(t,r,n,o){var i=this,a=t.logger;$$(e,this,function(e){if(e.appId=D6,e[v6]=D6,e.application=new t6,e.internal=new n6(r,o),KU()){e[a6]=new C6(r,t,o),e.device=new r6,e.location=new o6,e.user=new P6(r,t,o);var s,l=void 0,c=void 0;n&&(l=n.getTraceId(),c=n.getSpanId(),s=n.getName()),e[u6]=new A6(l,c,s,a),e[i6]=new _6}e[v6]=function(){var t=e[i6],r=null;if(t&&dH(t.id))r=t.id;else{var n=(e[a6]||{})[b6];r=n&&dH(n.id)?n.id:null}return r},e[d6]=function(t,r){cK(uK(t.ext,F1),"sesId",e[v6](),dH)},e[p6]=function(t,r){cK(t.ext,V1,e.os)},e[f6]=function(t,r){var n=e.application;if(n){var o=uK(t,B6);cK(o,q1.applicationVersion,n.ver,dH),cK(o,q1.applicationBuild,n.build,dH)}},e.applyDeviceContext=function(t,r){var n=e.device;if(n){var o=uK(uK(t,N6),z1);cK(o,"localId",n.id,dH),cK(o,"ip",n.ip,dH),cK(o,"model",n.model,dH),cK(o,"deviceClass",n.deviceClass,dH)}},e[g6]=function(t,r){var n=e.internal;if(n){var o=uK(t,B6);cK(o,q1.internalAgentVersion,n.agentVersion,dH),cK(o,q1.internalSdkVersion,o0(a,n.sdkVersion,64),dH),t.baseType!==XX.dataType&&t.baseType!==b1.dataType||(cK(o,q1.internalSnippet,n.snippetVer,dH),cK(o,q1.internalSdkSrc,n.sdkSrc,dH))}},e[m6]=function(e,t){var r=i.location;r&&cK(uK(e,B6,[]),q1.locationIp,r.ip,dH)},e[h6]=function(t,r){var n=e[u6];if(n){var o=uK(uK(t,N6),j1,{traceID:void 0,parentID:void 0});cK(o,"traceID",n.traceID,dH,sH),cK(o,"name",n.name,dH,sH),cK(o,"parentID",n.parentID,dH,sH)}},e.applyWebContext=function(e,t){var r=i.web;r&&cK(uK(e,N6),L1,r)},e.applyUserContext=function(t,r){var n=e.user;if(n){cK(uK(t,B6,[]),q1.userAccountId,n[w6],dH);var o=uK(uK(t,N6),M1);cK(o,"id",n.id,dH),cK(o,"authId",n[x6],dH)}},e.cleanUp=function(e,t){var r=e.ext;r&&(O6(r,z1),O6(r,M1),O6(r,L1),O6(r,V1),O6(r,F1),O6(r,j1))}})}return e.__ieDyn=1,e}(),H6=null,U6=aU(((R6={accountId:H6,sessionRenewalMs:18e5,samplingPercentage:100,sessionExpirationMs:864e5,cookieDomain:H6,sdkExtension:H6,isBrowserLinkTrackingEnabled:!1,appId:H6})[v6]=H6,R6.namePrefix=M6,R6[y6]=M6,R6.userCookiePostfix=M6,R6.idLength=22,R6.getNewId=H6,R6)),W6=function(e){function t(){var r,n,o,i,a,s=e.call(this)||this;return s.priority=110,s.identifier=W1,$$(t,s,function(e,t){function s(){r=null,n=null,o=null,i=null,a=!0}s(),KH(e,"context",{g:function(){return i}}),e.initialize=function(s,l,c,u){t.initialize(s,l,c,u),function(t){var s=e.identifier,l=e.core;e._addHook(AX(t,function(){var n=lQ(null,t,l);t.storagePrefix&&N0(t.storagePrefix),a=!1!==t.disableUserInitMessage,r=n.getExtCfg(s,U6),e._extConfig=r})),o=l[c6](!1),i=new q6(l,r,o,e._unloadHooks),n=k0(e.context[u6],o),l.setTraceCtx(n),e.context.appId=function(){var e=l.getPlugin($1);return e?e.plugin._appId:null}}(s)},e.processTelemetry=function(t,r){if(!sH(t)){r=e._getTelCtx(r),t.name===b1.envelopeType&&r.diagLog().resetInternalMessageCount();var n=i||{};n[i6]&&"string"!=typeof i[i6].id&&n[a6]&&n[a6].update();var o=n.user;if(o&&!o[s6]&&o.update(n.user.id),function(t,r){uK(t,"tags",[]),uK(t,"ext",{});var n=e.context;n[d6](t,r),n[f6](t,r),n.applyDeviceContext(t,r),n[h6](t,r),n.applyUserContext(t,r),n[p6](t,r),n.applyWebContext(t,r),n[m6](t,r),n[g6](t,r),n.cleanUp(t,r)}(t,r),o&&o[l6]&&(o[l6]=!1,!a)){var s=new XX(72,(QU()||{}).userAgent||"");!function(e,t,r){tJ(e).logInternalMessage(t,r)}(r.diagLog(),1,s)}e.processNext(t,r)}},e._doTeardown=function(e,t){var r=(e||{}).core();r&&r[c6]&&(r[c6](!1)===n&&r.setTraceCtx(o));s()}}),s}return rG(t,e),t.__ieDyn=1,t}(gQ),$6="AuthenticatedUserContext",G6="track",Y6="snippet",K6="flush",X6="pollInternalLogs",J6="getPlugin",Q6="evtNamespace",Z6=G6+"Event",e7=G6+"Trace",t7=G6+"Metric",r7=G6+"PageView",n7=G6+"Exception",o7=G6+"DependencyData",i7="set"+$6,a7="clear"+$6,s7="connectionString",l7="version",c7="queue",u7="instrumentationKey",d7="userOverrideEndpointUrl",f7="endpointUrl",h7="onunloadFlush",p7="context",m7="addHousekeepingBeforeUnload",g7="sendMessage",v7=[Y6,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],y7="iKeyUsage",b7="CdnUsage",w7="SdkLoaderVer",x7=void 0,S7={disabled:!0,limit:OX({samplingRate:100,maxSendNumber:1}),interval:OX({monthInterval:3,daysOfMonth:[28]})},k7=((z6={})[s7]=x7,z6.endpointUrl=x7,z6[u7]=x7,z6[d7]=x7,z6.diagnosticLogInterval=RX(function(e){return e&&e>0},1e4),z6.featureOptIn=((j6={})[y7]={mode:3},j6[b7]={mode:2},j6[w7]={mode:2},j6.zipPayload={mode:1},j6),z6.throttleMgrCfg=OX(((L6={})[109]=OX(S7),L6[106]=OX(S7),L6[111]=OX(S7),L6[110]=OX(S7),L6)),z6.extensionConfig=OX(((F6={}).AppInsightsCfgSyncPlugin=OX({cfgUrl:"https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json",syncMode:2}),F6)),z6);function E7(e,t){return NY(function(r,n){uY(t,function(t){var n=t&&t.value,o=null;!t.rejected&&n&&(e[s7]=n,o=F0(n)),r(o)})})}var T7=function(){function e(t){var r,n,o,i,a,s,l,c,u,d,f,h,p,m,g=this;$$(e,this,function(e){y(),KH(e,"config",{g:function(){return c}}),MH(["pluginVersionStringArr","pluginVersionString"],function(t){KH(e,t,{g:function(){return l?l[t]:null}})}),i=""+(t.sv||t[l7]||""),t[c7]=t[c7]||[],t[l7]=t[l7]||2;var v=CX(t.config||{},k7);function y(){a=iX("AISKU"),s=null,r=null,n=null,o=null,i=null,f=null,h=!1,p=!1,m=!1,d=new c2}function b(){s&&(sZ(null,s),cZ(null,s))}function w(e){l.addUnloadHook(e)}c=v.cfg,u=new X4,KH(e,"appInsights",{g:function(){return u}}),n=new W6,r=new e6,o=new I5,l=new CQ,KH(e,"core",{g:function(){return l}}),w(AX(v,function(){var e=c[s7];if(bH(e)){var t=NY(function(t,r){uY(E7(c,e),function(e){if(e.rejected)t(null);else{var r=c[u7],n=e.value;r=n&&n.instrumentationkey||r,t(r)}})}),r=c[d7];sH(r)&&(r=NY(function(t,r){uY(E7(c,e),function(e){if(e.rejected)t(null);else{var r=c[f7],n=e.value,o=n&&n.ingestionendpoint;t(r=o?o+EZ:r)}})})),c[u7]=t,c[f7]=r}if(dH(e)&&e){var n=F0(e),o=n.ingestionendpoint;c.endpointUrl=c[d7]?c[d7]:o+EZ,c[u7]=n.instrumentationkey||c[u7]}c.endpointUrl=c[d7]?c[d7]:c[f7]})),e[Y6]=t,e[K6]=function(e,t){var r;return void 0===e&&(e=!0),FJ(l,function(){return"AISKU.flush"},function(){e&&!t&&(r=BY(function(e){t=e}));var n=1,o=function(){0===--n&&t()};MH(l.getChannels(),function(t){t&&(n++,t[K6](e,o))}),o()},null,e),r},e[h7]=function(e){void 0===e&&(e=!0),MH(l.getChannels(),function(t){t[h7]?t[h7]():t[K6](e)})},e.loadAppInsights=function(t,a,s){return void 0===t&&(t=!1),t&&function(e){throw xW||(xW=PW("UnsupportedError")),new xW(e)}("Legacy Mode is no longer supported"),FJ(e.core,function(){return"AISKU.loadAppInsights"},function(){l.initialize(c,[o,n,r,u,d],a,s),KH(e,"context",{g:function(){return n[p7]}}),f||(f=new L0(l));var t=function(){if(V6)return V6;var e=null,t=!1,r=["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"];try{var n=(document||{}).currentScript;n&&(e=n.src)}catch(Wqe){}if(e){try{var o=e.toLowerCase();if(o){var i="";MH(r,function(e,r){if(-1!==o$(o,e))return i="cdn"+(r+1),-1===o$(o,"/scripts/")&&(-1!==o$(o,"/next/")?i+="-next":-1!==o$(o,"/beta/")&&(i+="-beta")),V6=i+(t?".mod":""),-1})}}catch(Wqe){}V6=e}return V6}();t&&e[p7]&&(e[p7].internal.sdkSrc=t),function(t){if(t){var r="";sH(i)||(r+=i),e[p7]&&e[p7].internal&&(e[p7].internal.snippetVer=r||"-"),RH(e,function(e,r){dH(e)&&!fH(r)&&e&&"_"!==e[0]&&-1===vW(v7,e)&&t[e]!==r&&(t[e]=r)})}}(e[Y6]),e.emptyQueue(),e[X6](),e[m7](e),w(AX(v,function(){var t=!1;c.throttleMgrCfg[109]&&(t=!c.throttleMgrCfg[109].disabled),!f.isReady()&&c.extensionConfig&&c.extensionConfig[d.identifier]&&t&&f.onReadyState(!0),h||c[s7]||!vK(y7,c,!0)||(f[g7](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),h=!0),!p&&e[p7].internal.sdkSrc&&-1!=e[p7].internal.sdkSrc.indexOf("az416426")&&vK(b7,c,!0)&&(f[g7](110,"See Cdn support notice at aka.ms/JsActiveCdn"),p=!0),!m&&parseInt(i)<6&&vK(w7,c,!0)&&(f[g7](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),m=!0)}))}),e},e.updateSnippetDefinitions=function(t){fK(t,e,function(e){return e&&-1===vW(v7,e)})},e.emptyQueue=function(){try{if(pH(e.snippet[c7])){for(var t=e.snippet[c7].length,r=0;r<t;r++){(0,e.snippet[c7][r])()}e.snippet[c7]=void 0,delete e.snippet[c7]}}catch(n){n&&fH(n.toString)&&n.toString()}},e[m7]=function(t){if(KU()||GU()){var r=function(){if(t[h7](!1),fH(e.core[J6])){var r=g.core[J6](W1);if(r){var n=r.plugin;n&&n[p7]&&n[p7]._sessionManager&&n[p7]._sessionManager.backup()}}},n=!1;s||(s=tZ(a,l[Q6]&&l[Q6]())),w(AX(c,function(e){var o=e.cfg,i=t.appInsights,a=lQ(null,o,i.core).getExtCfg(i.identifier||G1);b();var c=o.disablePageUnloadEvents;a.disableFlushOnBeforeUnload||(aZ(r,c,s)&&(n=!0),lZ(r,c,s)&&(n=!0),n||zK()||rJ(l.logger,1,19,"Could not add handler for beforeunload and pagehide")),n||a.disableFlushOnUnload||lZ(r,c,s)}))}},e.getSender=function(){return o},e.unload=function(t,r,n){var o,i=!1;return t&&!r&&(o=BY(function(e){r=e})),e[h7](t),b(),l.unload&&l.unload(t,function(e){i||(i=!0,y(),r&&r(e))},n),o},pK(e,u,["getCookieMgr",Z6,r7,"trackPageViewPerformance",n7,"_onerror",e7,t7,"startTrackPage","stopTrackPage","startTrackEvent","stopTrackEvent"]),pK(e,function(){return r},[o7,"addDependencyListener","addDependencyInitializer"]),pK(e,l,["addTelemetryInitializer",X6,"stopPollingInternalLogs",J6,"addPlugin",Q6,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),pK(e,function(){var e=n[p7];return e?e.user:null},[i7,a7])})}return e.prototype.addDependencyInitializer=function(e){return null},e}();const _7={status:"OPT_OUT",raw:"",source:"default"};function C7(){try{const e=function(){const e=window.WcpConsent?.siteConsent;if(!e||"function"!=typeof e.getConsent)return null;if(!1===e.isConsentRequired)return{status:"NOT_REQUIRED",raw:"NR",source:"WcpConsent"};const t=e.getConsent(),r=!0===t.Analytics&&!0===t.SocialMedia&&!0===t.Advertising,n=!1===t.Analytics||!1===t.SocialMedia||!1===t.Advertising,o=[];"boolean"==typeof t.Analytics&&o.push("c1="+(t.Analytics?2:1)),"boolean"==typeof t.SocialMedia&&o.push("c2="+(t.SocialMedia?2:1)),"boolean"==typeof t.Advertising&&o.push("c3="+(t.Advertising?2:1));const i=o.join("-");return n?{status:"OPT_OUT",raw:i,source:"WcpConsent"}:r?{status:"OPT_IN",raw:i,source:"WcpConsent"}:{status:"NO_ACTION",raw:i,source:"WcpConsent"}}();if(e)return e;const t=$E("MSCC");return t?function(e){if("NR"===e)return{status:"NOT_REQUIRED",raw:e,source:"MsccCookie"};const t=e.split("-"),r={};for(const a of t){const e=a.indexOf("=");e>0&&(r[a.slice(0,e)]=a.slice(e+1))}const n=["c1","c2","c3"].filter(e=>void 0!==r[e]);if(0===n.length)return{..._7,raw:e};if(n.some(e=>"1"!==r[e]&&"2"!==r[e]))return{..._7,raw:e};const o=n.some(e=>"1"===r[e]),i=3===n.length&&n.every(e=>"2"===r[e]);return o?{status:"OPT_OUT",raw:e,source:"MsccCookie"}:i?{status:"OPT_IN",raw:e,source:"MsccCookie"}:{status:"NO_ACTION",raw:e,source:"MsccCookie"}}(t):{..._7}}catch{return{..._7}}}let A7=null;function I7(){return A7||(A7={mode:"production",buildTime:"2026-11-04T03:21:35.518Z",version:"1.0.0-alpha.1",commitHash:"9d80132fd394f5f110a56f0b66f6449ec7d266da"},A7)}function P7(){const e=I7();return{build_mode:e.mode,build_time:e.buildTime,build_version:e.version,build_commit_hash:e.commitHash}}const{log:N7,logWarn:B7}=R.withKind("telemetryService"),O7="AppInsightsChannelPlugin";let D7,R7=!1;function M7(e){R7&&D7.trackEvent({name:e.name,properties:{...e.properties},measurements:e.measurements})}function z7(e){R7&&D7.trackException({exception:e.exception,severityLevel:e.severityLevel,properties:e.properties})}function j7(){R7&&D7.flush()}window.ucaAppInsights={trackEvent:M7,trackException:z7},window.uca??={},window.uca.insights??={get conversationId(){const e=Dwe.getState(),t=e.webChat?.livePerson?.initiatingConversationId;if(t)return t;const r=e.webChat?.activities||[],n=r.length>0?r[r.length-1]?.conversation?.id:null;return n||null}};const L7={initialize:function(e){R7||(D7=new T7({config:{disableFetchTracking:!1,disableAjaxTracking:!1,enableAutoRouteTracking:!1,enableCorsCorrelation:!0,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,samplingPercentage:e.samplingPercentage||100,...e,extensionConfig:{[O7]:{unloadTransports:2}}}}),D7.loadAppInsights(),D7.addTelemetryInitializer(e=>{if(e.data){e.data.baseData=e.data.baseData||{};try{const t=window.location.hostname,r="production",n="UnifiedChatAssistant",o=Dwe.getState(),i=o.optionsProvider?.options?.partnerId||"unknown",a=o.webChat?.activities||[],s=a.length>0?a[a.length-1]:null,l=o.webChat?.livePerson?.initiatingConversationId||null,c=s?.conversation?.id||null;let u="unknown";l?u=l:c?u=c:B7("Unable to determine effective conversation ID from both initiating and latest activity sources.");const d=o.webChat?.livePersonDebugOptions?.skillId||o.webChat?.livePerson?.skillId||null,f=P7();e.tags=e.tags||{},e.tags["ai.cloud.role"]=n,e.tags["ai.cloud.roleInstance"]=`${r}`;const h=C7(),p={component:n,selectedAgent:YE()?.agent||o.optionsProvider?.options?.agent||"WaaPro",hostname:t,environment:r,partnerId:i,conversationId:u,...f,siteUrl:window.location.origin+window.location.pathname,referrer:document.referrer||"direct",userAgent:navigator.userAgent,consentStatus:h.status,rawConsent:h.raw,consentSource:h.source},m=e.data.baseData,g=("string"==typeof m?.name?String(m.name):"").startsWith("LivePerson"),v=m&&"object"==typeof m.properties&&m.properties?m.properties:{},y={...p,...v};"string"==typeof v.conversationId&&0!==v.conversationId.trim().length||(y.conversationId=u),g&&"string"==typeof d&&d.trim().length>0&&("string"!=typeof v.skillId||0===v.skillId.trim().length)&&(y.skillId=d),e.data.baseData={...m,properties:y}}catch(t){const r=P7(),n=e.data.baseData,o=n&&"object"==typeof n.properties&&n.properties?n.properties:{};e.data.baseData={...n,properties:{component:"UnifiedChatAssistant",...r,...o}}}}}),R7=!0,N7("TelemetryService initialized successfully"))},trackEvent:M7,trackException:z7,trackDependency:function(e){if(!R7)return;const t={id:e.id,name:e.name,data:e.data,duration:e.duration,success:e.success,properties:e.properties};void 0!==e.resultCode&&(t.responseCode=e.resultCode),D7.trackDependencyData(t)},trackMetric:function(e,t,r){R7&&D7.trackMetric({name:e,average:t,properties:r})},flush:j7},F7={fieldsToRemove:["password","passwd","secret","key","token","auth","authorization","cookie","session","credentials","apikey","api_key","access_token","refresh_token","private_key","client_secret"],fieldsToRedact:["email","phone","ssn","credit_card","user_id","username","ip_address","address"],maxStringLength:500,maxDepth:5,customPatterns:[{pattern:/Bearer\s+[A-Za-z0-9\-._~+/]+=*/gi,replacement:"Bearer [REDACTED]"},{pattern:/eyJ[A-Za-z0-9\-._~+/]+=*/gi,replacement:"[JWT_REDACTED]"},{pattern:/[A-Za-z0-9]{32,}/g,replacement:"[APIKEY_REDACTED]"},{pattern:/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,replacement:"[EMAIL_REDACTED]"},{pattern:/\b\d{3}-?\d{3}-?\d{4}\b/g,replacement:"[PHONE_REDACTED]"},{pattern:/\b\d{4}[\s-]?\d{4}[\s-]?\d{4}[\s-]?\d{4}\b/g,replacement:"[CC_REDACTED]"},{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,replacement:e=>e.substring(0,8)+"-[REDACTED]"}]};function V7(e,t=F7,r=0){return r>(t.maxDepth||5)?"[MAX_DEPTH_EXCEEDED]":null==e?e:"string"==typeof e?q7(e,t):"number"==typeof e||"boolean"==typeof e?e:e instanceof Date?e.toISOString():e instanceof Error?{name:e.name,message:q7(e.message,t),stack:q7(e.stack||"",t)}:Array.isArray(e)?e.slice(0,10).map(e=>V7(e,t,r+1)):"object"==typeof e?function(e,t,r){const n={};for(const[o,i]of Object.entries(e)){const e=o.toLowerCase();t.fieldsToRemove?.some(t=>e.includes(t.toLowerCase()))||(t.fieldsToRedact?.some(t=>e.includes(t.toLowerCase()))?n[o]="[REDACTED]":n[o]=V7(i,t,r+1))}return n}(e,t,r):String(e)}function q7(e,t){if(!e||"string"!=typeof e)return e;let r=e;if(t.customPatterns)for(const{pattern:n,replacement:o}of t.customPatterns)r=r.replace(n,o);return t.maxStringLength&&r.length>t.maxStringLength&&(r=r.substring(0,t.maxStringLength)+"...[TRUNCATED]"),r}function H7(e,t,r){const n=r?function(e){return V7(e,{...F7,fieldsToRemove:[...F7.fieldsToRemove,"directline_token","bot_token","conversation_key","client_secret","private_key"],fieldsToRedact:[...F7.fieldsToRedact,"conversation_id","user_message","bot_response","activity_id","channel_data"]})}(r):{};s8(e,t,{...n,security:{sanitized:!0,sanitizationTimestamp:(new Date).toISOString(),originalContextKeys:r?Object.keys(r):[]}})}const{log:U7,logError:W7}=R.withKind("featureEvalService"),$7="V2_READY_TIMEOUT";function G7(e){if(!e)return"unset";try{return new URL(e).host}catch{return"invalid"}}class Y7{constructor(){this.featureOverrides=new Map,this.isInitialized=!1,this.initializationPromise=null,this.clientMetadata=null,this.initialize().catch(e=>{this.trackServiceException(e,"constructor","AutoInitSafety",fV.Error)})}static getInstance(){return Y7.instance||(Y7.instance=new Y7),Y7.instance}async loadFeatureEvaluatorScript(){if("undefined"==typeof window)return;if(window.featureEvaluatorV2)return U7("Feature Evaluator V2 SDK already loaded"),void(await this.awaitV2Ready());const e="https://www.microsoft.com/fe/static/feature-evaluator-v2.js",t=new URL(e).pathname;if(document.querySelector(`script[src$="${t}"]`)){U7("Feature Evaluator SDK script already in DOM");return void(await this.awaitV2Attached(5e3)?await this.awaitV2Ready():(W7("Feature Evaluator SDK script in DOM never attached window.featureEvaluatorV2 within the bound; proceeding all-false"),this.trackServiceEvent("V2SDKAttachTimeout",{method:"awaitV2Attached",reason:"existing-script-never-attached",timeoutMs:String(5e3),endpointHost:G7("https://www.microsoft.com/fe/api/features/variants"),environment:"production"})))}U7("Loading Feature Evaluator SDK from:",e),await new Promise((t,r)=>{const n=document.createElement("script");n.src=e,n.async=!0,n.setAttribute("data-endpoint","https://www.microsoft.com/fe/api/features/variants");const o=setTimeout(()=>{W7("Feature Evaluator SDK load timeout"),r(new Error("Feature Evaluator SDK load timeout"))},5e3);n.onload=()=>{clearTimeout(o),U7("Feature Evaluator SDK loaded successfully"),t()},n.onerror=e=>{clearTimeout(o),W7("Failed to load Feature Evaluator SDK:",e),r(new Error("Failed to load Feature Evaluator SDK"))},document.head.appendChild(n)}),await this.awaitV2Ready()}async awaitV2Attached(e){if("undefined"==typeof window)return!1;if(window.featureEvaluatorV2)return!0;const t=Date.now()+e;for(;!window.featureEvaluatorV2&&Date.now()<t;)await new Promise(e=>setTimeout(e,50));return!!window.featureEvaluatorV2}async awaitV2Ready(){if("undefined"==typeof window)return;const e=window.featureEvaluatorV2;if(!e||"function"!=typeof e.ready)return;let t;try{const r=await Promise.race([e.ready(),new Promise((e,r)=>{t=setTimeout(()=>{const e=new Error("Feature Evaluator V2 ready() timeout");e.code=$7,r(e)},5e3)})]);this.captureReadyMetadata(e,r)}catch(r){const e=r?.code===$7?"timeout":"rejected";U7("V2 SDK ready() timed out or rejected; proceeding all-false",r),this.trackServiceEvent("V2SDKInitializationTimeout",{method:"ready",reason:e,error:String(V7(r instanceof Error?r.message:String(r))),endpointHost:G7("https://www.microsoft.com/fe/api/features/variants"),environment:"production"})}finally{clearTimeout(t)}}captureReadyMetadata(e,t){try{const r=t&&"object"==typeof t&&t.clientMetadata||e.getClientMetadata?.()||null;if(!r)return;this.clientMetadata=r;const n=r.fallback?.type??"UNKNOWN";this.trackServiceEvent("V2SDKReady",{method:"ready",fallbackType:String(n),fallbackError:r.fallback?.error?String(r.fallback.error):"none",usedCache:String("LOCAL_STORAGE"===n),timedOut:String("ALL_FEATURES_DISABLED"===n),featureEnabledCount:String(r.featureEnabledCount??""),featureTotalCount:String(r.featureTotalCount??""),durationMs:String(r.durationMs??""),endpointHost:G7("https://www.microsoft.com/fe/api/features/variants"),environment:"production"})}catch(r){W7("Failed to capture V2 ready() metadata",r)}}getClientMetadata(){return this.clientMetadata}getFallbackType(){return this.clientMetadata?.fallback?.type??null}async initialize(){if(!this.isInitialized)return this.initializationPromise||(U7("FeatureEvalService not already initialized."),this.initializationPromise=this._initialize()),this.initializationPromise;U7("FeatureEvalService already initialized.")}async _initialize(){try{if("undefined"==typeof window)return U7("Not in browser environment, skipping initialization."),void(this.isInitialized=!0);if(window.featureEvaluatorV2)return console.log("WAA: using host site V2 Feature Evaluator SDK instance"),await this.awaitV2Ready(),void(this.isInitialized=!0);try{U7("V2 not found, attempting to load V2 SDK script..."),await this.loadFeatureEvaluatorScript(),this.trackServiceEvent("FeatureEvalSDKLoad",{method:"SDK"})}catch(e){W7("Failed to load V2 SDK script:",e);const t=e instanceof Error?e.message:String(e),r=t.includes("timeout")?"timeout":"network";this.trackServiceEvent("V2SDKLoadFailure",{method:"loadFeatureEvaluatorScript",reason:r,error:String(V7(t)),endpointHost:G7("https://www.microsoft.com/fe/static/feature-evaluator-v2.js"),environment:"production"})}this.isInitialized=!0}catch(e){console.log("Failed to initialize feature evaluator - all features will return false"),this.isInitialized=!0,this.trackServiceException(e,"initialize","FeatureEvalInitializationFailure",fV.Error)}}isFeatureEnabled(e){try{if("undefined"!=typeof window&&window.featureEvaluatorV2?.isFeatureEnabled)try{return window.featureEvaluatorV2.isFeatureEnabled(e)}catch(Wqe){W7(`Error in featureEvaluatorV2 for ${e}`,Wqe)}return!1}catch(t){return W7(`Critical error checking feature '${e}':`,t),this.trackServiceEvent("FeatureEvaluationSafeGuard",{method:"isFeatureEnabled",featureName:e,error:t instanceof Error?t.message:String(t)}),!1}}getEnabledVariants(){try{if("undefined"!=typeof window&&window.featureEvaluatorV2?.getEnabledVariants)try{const e=window.featureEvaluatorV2.getEnabledVariants();return U7(`Loaded ${e.length} features from V2`),e}catch(e){W7("V2 getEnabledVariants failed",e)}return U7("No feature variants available"),[]}catch(e){return W7("Error getting enabled variants:",e),this.trackServiceEvent("GetEnabledVariantsSafeGuard",{method:"getEnabledVariants",error:e instanceof Error?e.message:String(e)}),[]}}trackServiceEvent(e,t){M7({name:e,properties:{component:"FeatureEvalService",...t}})}trackServiceException(e,t,r,n){z7({exception:e instanceof Error?e:new Error(String(e)),severityLevel:n,properties:{component:"FeatureEvalService",method:t,operation:r}})}}const K7=()=>Y7.getInstance(),X7=Object.freeze(Object.defineProperty({__proto__:null,FeatureEvalService:Y7,getFeatureEvalService:K7},Symbol.toStringTag,{value:"Module"})),{log:J7,logWarn:Q7,logError:Z7}=R.withKind("telemetryHelpers");let e8=!1,t8=!1;function r8(){try{const e="InstrumentationKey=2cee91dc-782a-400b-bdd2-10285db5ec55;IngestionEndpoint=https://westus3-1.in.applicationinsights.azure.com/;LiveEndpoint=https://westus3.livediagnostics.monitor.azure.com/;ApplicationId=8dc45c18-7182-4c96-b720-4be7dc02e112",t=100,r=isNaN(t)?100:t,n="https://webassistant-prod.microsoft.com/t/v2/track",o=K7().isFeatureEnabled(le),i=Boolean(n)&&o;i&&J7("Telemetry routed through proxy:",n),L7.initialize({connectionString:e,enableAutoRouteTracking:!1,enableCorsCorrelation:!0,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,disableFetchTracking:!0,disableAjaxTracking:!0,disableExceptionTracking:!0,samplingPercentage:r,...i&&{userOverrideEndpointUrl:n}})}catch(e){Z7("UCA Telemetry: Failed to initialize:",e)}}function n8(){try{L7.trackEvent({name:SV})}catch(e){console.error("Failed to track assistant loaded event:",e)}}function o8(e){try{if(e8)return;L7.trackEvent({name:TV,properties:{theme:e}}),e8=!0}catch(t){console.error("Failed to track theme change:",t)}}function i8(e){try{if(t8)return;L7.trackEvent({name:_V,properties:{mode:e}}),t8=!0}catch(t){console.error("Failed to track mode change:",t)}}function a8(e){try{L7.trackEvent({name:qV,properties:{marker:e}})}catch(t){console.error("Failed to track blocked bot message marker:",t)}}function s8(e,t,r){try{const n={component:e,errorMessage:t.message,errorName:t.name,errorType:t.constructor.name,timestamp:(new Date).toISOString(),userAgent:navigator.userAgent,url:window.location.href,...t.stack&&{originalStack:t.stack}};if(r){const e=V7(r);Object.keys(e).forEach(t=>{n[`context_${t}`]="object"==typeof e[t]?JSON.stringify(e[t]):String(e[t])})}if(t.stack){const e=t.stack.split("\n"),r=e.find(e=>e.includes(".ts")||e.includes(".tsx")||e.includes(".js")||e.includes(".jsx"));r&&(n.meaningfulStackFrame=r.trim());const o=e.map(e=>{const t=e.match(/at\s+([^\s]+)/);return t?t[1]:null}).filter(Boolean).slice(0,5);o.length>0&&(n.functionChain=o.join(" -> "))}const o=new Error(`[${e}] ${t.message}`);o.name=t.name,o.stack=t.stack;const i={...V7(n)};L7.trackException({exception:o,properties:i})}catch(n){console.error("Failed to track component error:",n)}}function l8(e,t,r,n,o,i,a){try{L7.trackMetric(e,n,{apiName:t,action:r,success:o.toString(),statusCode:i?.toString()||"unknown",responseTime:n.toString(),...a&&{url:a},statusCategory:i?i>=200&&i<300?"success":i>=400&&i<500?"client_error":i>=500?"server_error":"other":"unknown"})}catch(s){console.error("Failed to track API performance metrics:",s)}}function c8(e){try{void 0!==e&&L7.trackMetric(xV,e||0,{sessionDuration:e?.toString()||"0"})}catch(t){console.error("Failed to track chat session metrics:",t)}}function u8(e){try{L7.trackEvent({name:e,properties:{actionType:e}})}catch(t){console.error("Failed to track user engagement events:",t)}}function d8(e,t,r,n){try{const o=r&&!isNaN(new Date(r).getTime())?Math.max(0,(new Date).getTime()-new Date(r).getTime()):0;L7.trackEvent({name:gV,properties:{activityId:e,replyToId:t,sentTimestamp:r||(new Date).toISOString(),conversationId:n||""},measurements:{duration:o}})}catch(o){console.error("Failed to track chat message event:",o)}}function f8(e){try{L7.trackEvent({name:e.name,properties:{actionType:e.name,replyToId:e.replyToId}})}catch(t){console.error("Failed to track user engagement events:",t)}}function h8(){try{L7.flush()}catch(e){console.error("Failed to flush telemetry:",e)}}const p8=Object.freeze(Object.defineProperty({__proto__:null,flushTelemetry:h8,initializeTelemetry:r8,trackApiPerformanceMetrics:l8,trackAssistantLoaded:n8,trackBlockedBotMessageMarker:a8,trackChatMessageReceived:d8,trackChatSessionMetrics:c8,trackExceptions:s8,trackModeChange:i8,trackSourceSiteDetected:function(e,t,r){try{L7.trackEvent({name:UV,properties:{detectionMethod:e,sourceSite:t,langLoc:r||"empty"}})}catch(n){console.error("Failed to track source site detection:",n)}},trackThemeChange:o8,trackUserEngagementFeedback:f8,trackUserEngagementMetrics:u8},Symbol.toStringTag,{value:"Module"})),{log:m8,logWarn:g8}=R.withKind("sendMessageWithTelemetry"),v8=()=>{const e=Kw(),t=Pw(lue),r=Pw(ek),n=Pw(tk),o=t=>{e(sV.messageSend(t))};return{sendMessageWithTelemetry:(i,a="text",s={},l)=>{try{if(i.trim()||l){if(r&&n&&t===M.DirectLine)return!1;const c=XE();c.success||g8("Failed to update user interaction status:",c.error),e(iT());const u=uV(i);if(u)m8(`Dispatching dbg command to saga: ${u}`),e(sV.dbgCommand(i));else if(t==M.LivePerson)o(i.trim());else{const t=C7();e(iV(i,a,{channelData:{...s,pageUrl:window.location.href,consentStatus:t.status,rawConsent:t.raw},value:l}))}return!0}return!1}catch(c){return s8(wV,c),!1}},sendMessageBackWithTelemetry:(t,r,n="")=>!!t.trim()&&(e(function(e,t,r){return{type:aV,payload:{displayText:r,text:t,value:e}}}(t,r,n)),e(dV.logTelemetry("MessageSentBack")),!0),sendMessageToLivePerson:o}},y8="ai-chat-drawer",b8={EVENT_NAMES:{SUGGESTED_ACTION_CLICK:"SuggestedActionClick"},CONTENT_TYPES:{FOOTNOTE_LINK:"Footnote link",THUMBS_UP:"Thumbs Up",THUMBS_DOWN:"Thumbs Down",AI_CHAT_LINK:"AI Chat Link",FREEFORM_PROMPT_SUBMIT:"Freeform Prompt Submit",CANNED_PROMPT_BUTTON:"Canned prompt button",PROMPT_BUTTON:"Prompt Button",CANNED_PROMPT_SUBMIT:"Canned Prompt Submit",HOVER_PROMPT:"Hover prompt",WELCOME_MESSAGE_LINK:"welcome-message-link",PRIVACY_LINK_TEXT:"Privacy Statement",SUBMIT:"Submit",CHECKBOX:"Checkbox",CLOSEX:"Close X",STARS:"Stars",EXPAND:"Expand",COLLAPSE:"Collapse",EMAIL:"Email",AI_ASSISTANT_ACTION:"AI Assistant action",BUTTON:"Button",PROACTIVE_MODAL:"Proactive-modal"},HELP_TEXT:{GET_QUOTE_HELP_TEXT:"Get Quote Suggested Action",STARTQUOTE_HELP_TEXT:"start a quote",WELCOMEQUOTE_HELP_TEXT:"Welcome to the new quoting experience",WELCOMEQUOTE_HELP_TEXT_AGENTIC:"Welcome to the Agentic Quoting Experience",EMAIL_SENT_HELP_TEXT:"an email has been sent to",SEND_EMAIL_HELP_TEXT:"Yes, send it to my email."},SCENARIO_NAMES:{QUOTE:"Quote"},ACTION_TYPES:{AUTOMATIC:"A",RESIZE:"R",CLICK:"CL",KEYBOARD:"KE"},SCENARIO_STEPS:{START:"Start",COMPLETE:"Complete",TRIGGERED:"Triggered",DRAFT:"Draft",CONFIRM:"Confirm",ENTER_EMAIL:"Enter Email",WELCOME:"Welcome"},STEP_NUMBERS:{ONE:"1",TWO:"2",THREE:"3",FOUR:"4",FIVE:"5",SIX:"6"},COMPONENT_NAMES:{AI_ASSISTANT:"AI assistant",AI_ASSISTANT_VARIANT:"AI assistant Variant",AI_ASSISTANT_CONTROL:"AI assistant Control",AI_ASSISTANT_VARIANT_WAA_PRO:"AI assistant Variant-WAA Pro",AI_ASSISTANT_CONTROL_WAA_PRO:"AI assistant Control-WAA Pro",AI_ASSISTANT_CONTROL_FALLBACK:"AI assistant Control-Fallback",AI_CHAT_BANNER:"AI Chat Banner",UCA_CHAT_BUTTON:"UCA Chat Button",UCA_WELCOME_MESSAGE_LINK:"uca-welcome-message-link",HIDE_CHAT:"Hide AI chat",SHOW_CHAT:"Show AI Chat",AI_CHAT_PROACTIVE_POPUP:"AI Chat Proactive Popup"},CONTENT_NAMES:{SURVEY_COMPLETE:"Survey Complete",END_LIVE_CHAT:"End Live Chat",END_QUOTE:"End Quote",AI_ASSISTANT_LOAD:"AI Assistant Load",AI_ASSISTANT_LOAD_EXPERIMENT:"EE | AI assistant | Load",AI_ASSISTANT_GEO_EXPANSION_MODERN:"WAA Geo Expansion - WAA Shown",AI_ASSISTANT_GEO_EXPANSION_LEGACY:"WAA Geo Expansion - Contact Sales Shown",AI_ASSISTANT_GEO_EXPANSION_NO_ASSISTANT:"WAA Geo Expansion - No Assistant Shown",AI_AZURE_PRICING_EXPERIMENT_MODERN:"WAA Azure Pricing - WAA Shown",AI_AZURE_PRICING_EXPERIMENT_LEGACY:"WAA Azure Pricing - Legacy Chat Shown",AI_COPILOT_BUSINESS_FLOATING_BANNER:"WAA Copilot Business - Floating Banner Shown",AI_COPILOT_BUSINESS_NO_ASSISTANT:"WAA Copilot Business - No Assistant Shown",CHAT_WITH_SALES:"Chat with Sales",RESUME_CONVERSATION:"Yes, Continue this conversation",START_FRESH:"No, start fresh",CHAT_INVITE_ACCEPT:"Chat_invite_accept",CHAT_INVITE_DECLINE:"Chat_invite_decline",ASK_NOW:"Ask Now",NO_THANKS:"No Thanks",X:"X",PROACTIVE_MODAL:"proactive-modal",CHAT_INVITE:"ChatInvite",CHAT_INVITE_TIMEOUT:"Chat_invite_timeout"},AREA_NAMES:{AI_CHAT_DRAWER:"AI Chat Drawer",FLOATING_BANNER:"Floating Banner",PROACTIVE_MODAL:"proactive-modal",BANNER:"Banner"},HEADER_NAMES:{AI_POWERED_ASSISTANT:"AI-Powered Assistant",ASK_MICROSOFT:"Ask Microsoft",SUBMIT:"Tell us about your experience.",RESUME_OFFER_FROM_EMAIL:"Resume Offer from Email",COPILOT_REF:"It looks like you're attempting to use the Agent for unsupported scenarios. Navigate to https://copilot.microsoft.com for this use!"},IDS:{CLOSE_AI_CHAT:"Close AI Chat",SHOW_AI_CHAT:"Show AI Chat",PROMPT_SUBMIT:"Prompt Submit",AI_CHAT_MANUAL:"ai-chat-manual",AI_CHAT_OPEN_CONFIRMATION:"ai-chat-open-confirmation",AI_CHAT_OPEN_CONFIRMATION_WITH_SENT:"ai-chat-open-confirmation-with-sent",AI_CHAT_OPEN_CONFIRMATION_WITH_UNSENT:"ai-chat-open-confirmation-with-unsent",AI_CHAT_RESUME_OFFER_FROM_EMAIL:"ai-chat-resume-offer-from-email",AI_QUOTE_OFFERED:"ai-quote-offered",AI_QUOTE_CLICK:"ai-quote-click",AI_QUOTE_WELCOME:"ai-quote-welcome",AI_QUOTE_DRAFT_PRESENTED:"ai-quote-draft-presented",AI_QUOTE_DRAFT_ACCEPTED:"ai-quote-draft-accepted",AI_QUOTE_EMAIL_REQUESTED:"ai-quote-email-requested",AI_QUOTE_EMAIL_SENT:"ai-quote-email-sent",AI_HOVER_MANUAL:"ai-hover-manual",AI_HOVER_CANNED:"ai-hover-canned",AI_HOVER_MINIMIZE:"ai-hover-minimize",AI_CHAT_COPILOT_REF:"ai-chat-copilot-ref",CHAT_ENGAGEMENT:"chatEngagement",CHAT_DISENGAGEMENT:"chatDisengagement",CHAT_APPEARANCE:"chatAppearance",CHAT_TIMEOUT:"chatTimeout",AI_BANNER_MANUAL:"ai-banner-manual",AI_CHAT_THUMBSUP:"ai-chat-thumbsup",AI_CHAT_THUMBSDOWN:"ai-chat-thumbsdown",AI_CHAT_CANNED:"ai-chat-canned",AI_CHAT_FOOTNOTE_NUM:"ai-chat-footnote-num",AI_CHAT_FOOTNOTE_OPEN:"ai-chat-footnote-open",AI_CHAT_FOOTNOTE_CLOSE:"ai-chat-footnote-close",AI_CHAT_FOOTNOTE_LINK:"ai-chat-footnote-link"},SLOT_NUMBER:{SUBMIT:"1",RESUME_BUTTON:"1",START_FRESH_BUTTON:"2"},BEHAVIORS:{FEEDBACK_INTERACTION:140,SURVEY_INITIATE:"141",SURVEY_COMPLETE:"142",CHAT_TOGGLE:14,CHAT_CLOSE:15,CLICK:20,TRIGGERED:21,COMPLETED:22,CHAT_OPEN:14,CHAT_END:181,CHAT_INITIATE:180,CONTENT_INTERACTION:122,WELCOME_LINK_BHVR:"124",FOOTNOTE_LINK_BHVR:"232",PROMPT_BUTTON_BHVR:"180",OPEN_APP_LINK_BHVR:"19",FOOTNOTE_ARROW_OPEN:"7",FOOTNOTE_ARROW_CLOSE:"8",COPILOT_REF:"93",CONTENT_UPDATE:12},VIEW:{AI_CHAT_DRAWER:"AI assistant | AI Chat Drawer",PROACTIVE:"AI assistant | Proactive",AI_ASSISTANT_BANNER:"AI assistant | Banner"},PAGE_NAMES:{SIGNUP:"signup"},DECORATOR_TYPES:{WELCOME:"welcome",FOOTNOTE:"footnote",PRIVACY:"privacy",OPENAPP:"openapp"},COPILOT_REF_URL:"https://copilot.microsoft.com",EXPERIMENT_FIELDS:{EXPENG:"expengine",EXPNM:"expname",VRID:"variationid",VRNM:"variationname",EXPST:"expstatus"},VARIANT_NAMES:{VARIANT:"variant",CONTROL:"control",FALLBACK:"fallback"}};function w8(e,t){try{return e()}catch{return t}}const x8=".uca-header .uca-title";function S8(){if("undefined"==typeof document)return b8.HEADER_NAMES.ASK_MICROSOFT;const e=document.querySelector(x8),t=e?.textContent?.replace(/\s+/g," ").trim();return t||b8.HEADER_NAMES.ASK_MICROSOFT}function k8(e){e.currentTarget.setAttribute("data-bi-hn",S8())}const E8={dataBiCompnm:b8.COMPONENT_NAMES.AI_ASSISTANT,dataBiView:b8.VIEW.AI_CHAT_DRAWER,dataBiHn:b8.HEADER_NAMES.AI_POWERED_ASSISTANT,dataBiEhn:b8.HEADER_NAMES.AI_POWERED_ASSISTANT,dataBiAn:b8.AREA_NAMES.AI_CHAT_DRAWER};function T8(e){return{...E8,...e}}const _8={[b8.DECORATOR_TYPES.WELCOME]:{decoration:T8({dataBiCt:b8.CONTENT_TYPES.AI_CHAT_LINK,dataBiBhvr:b8.BEHAVIORS.WELCOME_LINK_BHVR}),contentGenerator:(e,t,r)=>({dataBiCn:e?.title||t||r?.toString()||"1",dataBiEcn:e?.title||t||r?.toString()||"1"})},[b8.DECORATOR_TYPES.OPENAPP]:{decoration:T8({dataBiCt:b8.CONTENT_TYPES.AI_CHAT_LINK,dataBiBhvr:b8.BEHAVIORS.OPEN_APP_LINK_BHVR}),contentGenerator:(e,t,r)=>({dataBiCn:e?.title||t||r?.toString()||e?.url||"1",dataBiEcn:e?.title||t||r?.toString()||e?.url||"1"})},[b8.DECORATOR_TYPES.FOOTNOTE]:{decoration:T8({dataBiCt:b8.CONTENT_TYPES.FOOTNOTE_LINK,dataBiBhvr:b8.BEHAVIORS.FOOTNOTE_LINK_BHVR}),contentGenerator:(e,t,r,n)=>({dataBiCn:r?.toString()||"1",dataBiEcn:r?.toString()||"1"})},[b8.DECORATOR_TYPES.PRIVACY]:{decoration:T8({dataBiCt:b8.CONTENT_TYPES.FOOTNOTE_LINK,dataBiBhvr:"0"}),contentGenerator:(e,t,r)=>({dataBiCn:r?.toString()||"1",dataBiEcn:r?.toString()||"1"})}};function C8(e,t=!1){if(t)return _8[b8.DECORATOR_TYPES.PRIVACY];e&&!function(e){if(!e)return!1;const t=Object.values(b8.DECORATOR_TYPES),r=t.includes(e);return r||R.errorWithKind("DataBiTagDecorator",`Unsupported decorator type: '${e}'. Valid types are: ${t.join(", ")}`),r}(e)&&(e=void 0);const r=e||b8.DECORATOR_TYPES.FOOTNOTE;return _8[r]}class A8{constructor(e,t,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=r}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new A8(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class I8{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new I8(t,A8.range(this,e))}}class P8{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r,n,o="KaTeX parse error: "+e,i=t&&t.loc;if(i&&i.start<=i.end){var a=i.lexer.input;r=i.start,n=i.end,r===a.length?o+=" at end of input: ":o+=" at position "+(r+1)+": ";var s=a.slice(r,n).replace(/[^]/g,"$&̲");o+=(r>15?"…"+a.slice(r-15,r):a.slice(0,r))+s+(n+15<a.length?a.slice(n,n+15)+"…":a.slice(n))}var l=new Error(o);return l.name="ParseError",l.__proto__=P8.prototype,l.position=r,null!=r&&null!=n&&(l.length=n-r),l.rawMessage=e,l}}P8.prototype.__proto__=Error.prototype;var N8=/([A-Z])/g,B8={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},O8=/[&><"']/g;var D8=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},R8={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(O8,e=>B8[e])},hyphenate:function(e){return e.replace(N8,"-$1").toLowerCase()},getBaseElem:D8,isCharacterBox:function(e){var t=D8(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?":"!==t[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"}},M8={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function z8(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if("string"!=typeof r)return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class j8{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},M8)if(M8.hasOwnProperty(t)){var r=M8[t];this[t]=void 0!==e[t]?r.processor?r.processor(e[t]):e[t]:z8(r)}}reportNonstrict(e,t,r){var n=this.strict;if("function"==typeof n&&(n=n(e,t,r)),n&&"ignore"!==n){if(!0===n||"error"===n)throw new P8("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r);"warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,r){var n=this.strict;if("function"==typeof n)try{n=n(e,t,r)}catch(o){n="error"}return!(!n||"ignore"===n)&&(!0===n||"error"===n||("warn"===n?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),!1)))}isTrusted(e){if(e.url&&!e.protocol){var t=R8.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}var r="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(r)}}class L8{constructor(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}sup(){return F8[V8[this.id]]}sub(){return F8[q8[this.id]]}fracNum(){return F8[H8[this.id]]}fracDen(){return F8[U8[this.id]]}cramp(){return F8[W8[this.id]]}text(){return F8[$8[this.id]]}isTight(){return this.size>=2}}var F8=[new L8(0,0,!1),new L8(1,0,!0),new L8(2,1,!1),new L8(3,1,!0),new L8(4,2,!1),new L8(5,2,!0),new L8(6,3,!1),new L8(7,3,!0)],V8=[4,5,4,5,6,7,6,7],q8=[5,5,5,5,7,7,7,7],H8=[2,3,4,5,6,7,6,7],U8=[3,3,5,5,7,7,7,7],W8=[1,1,3,3,5,5,7,7],$8=[0,1,2,3,2,3,2,3],G8={DISPLAY:F8[0],TEXT:F8[2],SCRIPT:F8[4],SCRIPTSCRIPT:F8[6]},Y8=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];var K8=[];function X8(e){for(var t=0;t<K8.length;t+=2)if(e>=K8[t]&&e<=K8[t+1])return!0;return!1}Y8.forEach(e=>e.blocks.forEach(e=>K8.push(...e)));var J8=80,Q8={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class Z8{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return R8.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>e.toText()).join("")}}var e9={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},t9={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},r9={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function n9(e,t,r){if(!e9[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),o=e9[t][n];if(!o&&e[0]in r9&&(n=r9[e[0]].charCodeAt(0),o=e9[t][n]),o||"text"!==r||X8(n)&&(o=e9[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var o9={};var i9=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],a9=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],s9=function(e,t){return t.size<2?e:i9[e-1][t.size-1]};class l9{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||l9.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=a9[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return new l9(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:s9(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:a9[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=s9(l9.BASESIZE,e);return this.size===t&&this.textSize===l9.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==l9.BASESIZE?["sizing","reset-size"+this.size,"size"+l9.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!o9[t=e>=5?0:e>=3?1:2]){var r=o9[t]={cssEmPerMu:t9.quad[t]/18};for(var n in t9)t9.hasOwnProperty(n)&&(r[n]=t9[n][t])}return o9[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}l9.BASESIZE=6;var c9={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},u9={ex:!0,em:!0,mu:!0},d9=function(e){return"string"!=typeof e&&(e=e.unit),e in c9||e in u9||"ex"===e},f9=function(e,t){var r;if(e.unit in c9)r=c9[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{var n;if(n=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=n.fontMetrics().xHeight;else{if("em"!==e.unit)throw new P8("Invalid unit: '"+e.unit+"'");r=n.fontMetrics().quad}n!==t&&(r*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},h9=function(e){return+e.toFixed(4)+"em"},p9=function(e){return e.filter(e=>e).join(" ")},m9=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},g9=function(e){var t=document.createElement(e);for(var r in t.className=p9(this.classes),this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var n in this.attributes)this.attributes.hasOwnProperty(n)&&t.setAttribute(n,this.attributes[n]);for(var o=0;o<this.children.length;o++)t.appendChild(this.children[o].toNode());return t},v9=/[\s"'>/=\x00-\x1f]/,y9=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+R8.escape(p9(this.classes))+'"');var r="";for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=R8.hyphenate(n)+":"+this.style[n]+";");for(var o in r&&(t+=' style="'+R8.escape(r)+'"'),this.attributes)if(this.attributes.hasOwnProperty(o)){if(v9.test(o))throw new P8("Invalid attribute name '"+o+"'");t+=" "+o+'="'+R8.escape(this.attributes[o])+'"'}t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+e+">"};class b9{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,m9.call(this,e,r,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return R8.contains(this.classes,e)}toNode(){return g9.call(this,"span")}toMarkup(){return y9.call(this,"span")}}class w9{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,m9.call(this,t,n),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return R8.contains(this.classes,e)}toNode(){return g9.call(this,"a")}toMarkup(){return y9.call(this,"a")}}class x9{constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return R8.contains(this.classes,e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e='<img src="'+R8.escape(this.src)+'" alt="'+R8.escape(this.alt)+'"',t="";for(var r in this.style)this.style.hasOwnProperty(r)&&(t+=R8.hyphenate(r)+":"+this.style[r]+";");return t&&(e+=' style="'+R8.escape(t)+'"'),e+="'/>"}}var S9={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"};class k9{constructor(e,t,r,n,o,i,a,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=r||0,this.italic=n||0,this.skew=o||0,this.width=i||0,this.classes=a||[],this.style=s||{},this.maxFontSize=0;var l=function(e){for(var t=0;t<Y8.length;t++)for(var r=Y8[t],n=0;n<r.blocks.length;n++){var o=r.blocks[n];if(e>=o[0]&&e<=o[1])return r.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=S9[this.text])}hasClass(e){return R8.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var r in this.italic>0&&((t=document.createElement("span")).style.marginRight=h9(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=p9(this.classes)),this.style)this.style.hasOwnProperty(r)&&((t=t||document.createElement("span")).style[r]=this.style[r]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=R8.escape(p9(this.classes)),t+='"');var r="";for(var n in this.italic>0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(n)&&(r+=R8.hyphenate(n)+":"+this.style[n]+";");r&&(e=!0,t+=' style="'+R8.escape(r)+'"');var o=R8.escape(this.text);return e?(t+=">",t+=o,t+="</span>"):o}}class E9{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+R8.escape(this.attributes[t])+'"');e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</svg>"}}class T9{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",Q8[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+R8.escape(this.alternate)+'"/>':'<path d="'+R8.escape(Q8[this.pathName])+'"/>'}}class _9{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+R8.escape(this.attributes[t])+'"');return e+="/>"}}function C9(e){if(e instanceof k9)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var A9={bin:1,close:1,inner:1,open:1,punct:1,rel:1},I9={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},P9={math:{},text:{}};function N9(e,t,r,n,o,i){P9[e][o]={font:t,group:r,replace:n},i&&n&&(P9[e][n]=P9[e][o])}var B9="math",O9="text",D9="main",R9="ams",M9="accent-token",z9="bin",j9="close",L9="inner",F9="mathord",V9="op-token",q9="open",H9="punct",U9="rel",W9="spacing",$9="textord";N9(B9,D9,U9,"≡","\\equiv",!0),N9(B9,D9,U9,"≺","\\prec",!0),N9(B9,D9,U9,"≻","\\succ",!0),N9(B9,D9,U9,"∼","\\sim",!0),N9(B9,D9,U9,"⊥","\\perp"),N9(B9,D9,U9,"⪯","\\preceq",!0),N9(B9,D9,U9,"⪰","\\succeq",!0),N9(B9,D9,U9,"≃","\\simeq",!0),N9(B9,D9,U9,"∣","\\mid",!0),N9(B9,D9,U9,"≪","\\ll",!0),N9(B9,D9,U9,"≫","\\gg",!0),N9(B9,D9,U9,"≍","\\asymp",!0),N9(B9,D9,U9,"∥","\\parallel"),N9(B9,D9,U9,"⋈","\\bowtie",!0),N9(B9,D9,U9,"⌣","\\smile",!0),N9(B9,D9,U9,"⊑","\\sqsubseteq",!0),N9(B9,D9,U9,"⊒","\\sqsupseteq",!0),N9(B9,D9,U9,"≐","\\doteq",!0),N9(B9,D9,U9,"⌢","\\frown",!0),N9(B9,D9,U9,"∋","\\ni",!0),N9(B9,D9,U9,"∝","\\propto",!0),N9(B9,D9,U9,"⊢","\\vdash",!0),N9(B9,D9,U9,"⊣","\\dashv",!0),N9(B9,D9,U9,"∋","\\owns"),N9(B9,D9,H9,".","\\ldotp"),N9(B9,D9,H9,"⋅","\\cdotp"),N9(B9,D9,$9,"#","\\#"),N9(O9,D9,$9,"#","\\#"),N9(B9,D9,$9,"&","\\&"),N9(O9,D9,$9,"&","\\&"),N9(B9,D9,$9,"ℵ","\\aleph",!0),N9(B9,D9,$9,"∀","\\forall",!0),N9(B9,D9,$9,"ℏ","\\hbar",!0),N9(B9,D9,$9,"∃","\\exists",!0),N9(B9,D9,$9,"∇","\\nabla",!0),N9(B9,D9,$9,"♭","\\flat",!0),N9(B9,D9,$9,"ℓ","\\ell",!0),N9(B9,D9,$9,"♮","\\natural",!0),N9(B9,D9,$9,"♣","\\clubsuit",!0),N9(B9,D9,$9,"℘","\\wp",!0),N9(B9,D9,$9,"♯","\\sharp",!0),N9(B9,D9,$9,"♢","\\diamondsuit",!0),N9(B9,D9,$9,"ℜ","\\Re",!0),N9(B9,D9,$9,"♡","\\heartsuit",!0),N9(B9,D9,$9,"ℑ","\\Im",!0),N9(B9,D9,$9,"♠","\\spadesuit",!0),N9(B9,D9,$9,"§","\\S",!0),N9(O9,D9,$9,"§","\\S"),N9(B9,D9,$9,"¶","\\P",!0),N9(O9,D9,$9,"¶","\\P"),N9(B9,D9,$9,"†","\\dag"),N9(O9,D9,$9,"†","\\dag"),N9(O9,D9,$9,"†","\\textdagger"),N9(B9,D9,$9,"‡","\\ddag"),N9(O9,D9,$9,"‡","\\ddag"),N9(O9,D9,$9,"‡","\\textdaggerdbl"),N9(B9,D9,j9,"⎱","\\rmoustache",!0),N9(B9,D9,q9,"⎰","\\lmoustache",!0),N9(B9,D9,j9,"⟯","\\rgroup",!0),N9(B9,D9,q9,"⟮","\\lgroup",!0),N9(B9,D9,z9,"∓","\\mp",!0),N9(B9,D9,z9,"⊖","\\ominus",!0),N9(B9,D9,z9,"⊎","\\uplus",!0),N9(B9,D9,z9,"⊓","\\sqcap",!0),N9(B9,D9,z9,"∗","\\ast"),N9(B9,D9,z9,"⊔","\\sqcup",!0),N9(B9,D9,z9,"◯","\\bigcirc",!0),N9(B9,D9,z9,"∙","\\bullet",!0),N9(B9,D9,z9,"‡","\\ddagger"),N9(B9,D9,z9,"≀","\\wr",!0),N9(B9,D9,z9,"⨿","\\amalg"),N9(B9,D9,z9,"&","\\And"),N9(B9,D9,U9,"⟵","\\longleftarrow",!0),N9(B9,D9,U9,"⇐","\\Leftarrow",!0),N9(B9,D9,U9,"⟸","\\Longleftarrow",!0),N9(B9,D9,U9,"⟶","\\longrightarrow",!0),N9(B9,D9,U9,"⇒","\\Rightarrow",!0),N9(B9,D9,U9,"⟹","\\Longrightarrow",!0),N9(B9,D9,U9,"↔","\\leftrightarrow",!0),N9(B9,D9,U9,"⟷","\\longleftrightarrow",!0),N9(B9,D9,U9,"⇔","\\Leftrightarrow",!0),N9(B9,D9,U9,"⟺","\\Longleftrightarrow",!0),N9(B9,D9,U9,"↦","\\mapsto",!0),N9(B9,D9,U9,"⟼","\\longmapsto",!0),N9(B9,D9,U9,"↗","\\nearrow",!0),N9(B9,D9,U9,"↩","\\hookleftarrow",!0),N9(B9,D9,U9,"↪","\\hookrightarrow",!0),N9(B9,D9,U9,"↘","\\searrow",!0),N9(B9,D9,U9,"↼","\\leftharpoonup",!0),N9(B9,D9,U9,"⇀","\\rightharpoonup",!0),N9(B9,D9,U9,"↙","\\swarrow",!0),N9(B9,D9,U9,"↽","\\leftharpoondown",!0),N9(B9,D9,U9,"⇁","\\rightharpoondown",!0),N9(B9,D9,U9,"↖","\\nwarrow",!0),N9(B9,D9,U9,"⇌","\\rightleftharpoons",!0),N9(B9,R9,U9,"≮","\\nless",!0),N9(B9,R9,U9,"","\\@nleqslant"),N9(B9,R9,U9,"","\\@nleqq"),N9(B9,R9,U9,"⪇","\\lneq",!0),N9(B9,R9,U9,"≨","\\lneqq",!0),N9(B9,R9,U9,"","\\@lvertneqq"),N9(B9,R9,U9,"⋦","\\lnsim",!0),N9(B9,R9,U9,"⪉","\\lnapprox",!0),N9(B9,R9,U9,"⊀","\\nprec",!0),N9(B9,R9,U9,"⋠","\\npreceq",!0),N9(B9,R9,U9,"⋨","\\precnsim",!0),N9(B9,R9,U9,"⪹","\\precnapprox",!0),N9(B9,R9,U9,"≁","\\nsim",!0),N9(B9,R9,U9,"","\\@nshortmid"),N9(B9,R9,U9,"∤","\\nmid",!0),N9(B9,R9,U9,"⊬","\\nvdash",!0),N9(B9,R9,U9,"⊭","\\nvDash",!0),N9(B9,R9,U9,"⋪","\\ntriangleleft"),N9(B9,R9,U9,"⋬","\\ntrianglelefteq",!0),N9(B9,R9,U9,"⊊","\\subsetneq",!0),N9(B9,R9,U9,"","\\@varsubsetneq"),N9(B9,R9,U9,"⫋","\\subsetneqq",!0),N9(B9,R9,U9,"","\\@varsubsetneqq"),N9(B9,R9,U9,"≯","\\ngtr",!0),N9(B9,R9,U9,"","\\@ngeqslant"),N9(B9,R9,U9,"","\\@ngeqq"),N9(B9,R9,U9,"⪈","\\gneq",!0),N9(B9,R9,U9,"≩","\\gneqq",!0),N9(B9,R9,U9,"","\\@gvertneqq"),N9(B9,R9,U9,"⋧","\\gnsim",!0),N9(B9,R9,U9,"⪊","\\gnapprox",!0),N9(B9,R9,U9,"⊁","\\nsucc",!0),N9(B9,R9,U9,"⋡","\\nsucceq",!0),N9(B9,R9,U9,"⋩","\\succnsim",!0),N9(B9,R9,U9,"⪺","\\succnapprox",!0),N9(B9,R9,U9,"≆","\\ncong",!0),N9(B9,R9,U9,"","\\@nshortparallel"),N9(B9,R9,U9,"∦","\\nparallel",!0),N9(B9,R9,U9,"⊯","\\nVDash",!0),N9(B9,R9,U9,"⋫","\\ntriangleright"),N9(B9,R9,U9,"⋭","\\ntrianglerighteq",!0),N9(B9,R9,U9,"","\\@nsupseteqq"),N9(B9,R9,U9,"⊋","\\supsetneq",!0),N9(B9,R9,U9,"","\\@varsupsetneq"),N9(B9,R9,U9,"⫌","\\supsetneqq",!0),N9(B9,R9,U9,"","\\@varsupsetneqq"),N9(B9,R9,U9,"⊮","\\nVdash",!0),N9(B9,R9,U9,"⪵","\\precneqq",!0),N9(B9,R9,U9,"⪶","\\succneqq",!0),N9(B9,R9,U9,"","\\@nsubseteqq"),N9(B9,R9,z9,"⊴","\\unlhd"),N9(B9,R9,z9,"⊵","\\unrhd"),N9(B9,R9,U9,"↚","\\nleftarrow",!0),N9(B9,R9,U9,"↛","\\nrightarrow",!0),N9(B9,R9,U9,"⇍","\\nLeftarrow",!0),N9(B9,R9,U9,"⇏","\\nRightarrow",!0),N9(B9,R9,U9,"↮","\\nleftrightarrow",!0),N9(B9,R9,U9,"⇎","\\nLeftrightarrow",!0),N9(B9,R9,U9,"△","\\vartriangle"),N9(B9,R9,$9,"ℏ","\\hslash"),N9(B9,R9,$9,"▽","\\triangledown"),N9(B9,R9,$9,"◊","\\lozenge"),N9(B9,R9,$9,"Ⓢ","\\circledS"),N9(B9,R9,$9,"®","\\circledR"),N9(O9,R9,$9,"®","\\circledR"),N9(B9,R9,$9,"∡","\\measuredangle",!0),N9(B9,R9,$9,"∄","\\nexists"),N9(B9,R9,$9,"℧","\\mho"),N9(B9,R9,$9,"Ⅎ","\\Finv",!0),N9(B9,R9,$9,"⅁","\\Game",!0),N9(B9,R9,$9,"‵","\\backprime"),N9(B9,R9,$9,"▲","\\blacktriangle"),N9(B9,R9,$9,"▼","\\blacktriangledown"),N9(B9,R9,$9,"■","\\blacksquare"),N9(B9,R9,$9,"⧫","\\blacklozenge"),N9(B9,R9,$9,"★","\\bigstar"),N9(B9,R9,$9,"∢","\\sphericalangle",!0),N9(B9,R9,$9,"∁","\\complement",!0),N9(B9,R9,$9,"ð","\\eth",!0),N9(O9,D9,$9,"ð","ð"),N9(B9,R9,$9,"╱","\\diagup"),N9(B9,R9,$9,"╲","\\diagdown"),N9(B9,R9,$9,"□","\\square"),N9(B9,R9,$9,"□","\\Box"),N9(B9,R9,$9,"◊","\\Diamond"),N9(B9,R9,$9,"¥","\\yen",!0),N9(O9,R9,$9,"¥","\\yen",!0),N9(B9,R9,$9,"✓","\\checkmark",!0),N9(O9,R9,$9,"✓","\\checkmark"),N9(B9,R9,$9,"ℶ","\\beth",!0),N9(B9,R9,$9,"ℸ","\\daleth",!0),N9(B9,R9,$9,"ℷ","\\gimel",!0),N9(B9,R9,$9,"ϝ","\\digamma",!0),N9(B9,R9,$9,"ϰ","\\varkappa"),N9(B9,R9,q9,"┌","\\@ulcorner",!0),N9(B9,R9,j9,"┐","\\@urcorner",!0),N9(B9,R9,q9,"└","\\@llcorner",!0),N9(B9,R9,j9,"┘","\\@lrcorner",!0),N9(B9,R9,U9,"≦","\\leqq",!0),N9(B9,R9,U9,"⩽","\\leqslant",!0),N9(B9,R9,U9,"⪕","\\eqslantless",!0),N9(B9,R9,U9,"≲","\\lesssim",!0),N9(B9,R9,U9,"⪅","\\lessapprox",!0),N9(B9,R9,U9,"≊","\\approxeq",!0),N9(B9,R9,z9,"⋖","\\lessdot"),N9(B9,R9,U9,"⋘","\\lll",!0),N9(B9,R9,U9,"≶","\\lessgtr",!0),N9(B9,R9,U9,"⋚","\\lesseqgtr",!0),N9(B9,R9,U9,"⪋","\\lesseqqgtr",!0),N9(B9,R9,U9,"≑","\\doteqdot"),N9(B9,R9,U9,"≓","\\risingdotseq",!0),N9(B9,R9,U9,"≒","\\fallingdotseq",!0),N9(B9,R9,U9,"∽","\\backsim",!0),N9(B9,R9,U9,"⋍","\\backsimeq",!0),N9(B9,R9,U9,"⫅","\\subseteqq",!0),N9(B9,R9,U9,"⋐","\\Subset",!0),N9(B9,R9,U9,"⊏","\\sqsubset",!0),N9(B9,R9,U9,"≼","\\preccurlyeq",!0),N9(B9,R9,U9,"⋞","\\curlyeqprec",!0),N9(B9,R9,U9,"≾","\\precsim",!0),N9(B9,R9,U9,"⪷","\\precapprox",!0),N9(B9,R9,U9,"⊲","\\vartriangleleft"),N9(B9,R9,U9,"⊴","\\trianglelefteq"),N9(B9,R9,U9,"⊨","\\vDash",!0),N9(B9,R9,U9,"⊪","\\Vvdash",!0),N9(B9,R9,U9,"⌣","\\smallsmile"),N9(B9,R9,U9,"⌢","\\smallfrown"),N9(B9,R9,U9,"≏","\\bumpeq",!0),N9(B9,R9,U9,"≎","\\Bumpeq",!0),N9(B9,R9,U9,"≧","\\geqq",!0),N9(B9,R9,U9,"⩾","\\geqslant",!0),N9(B9,R9,U9,"⪖","\\eqslantgtr",!0),N9(B9,R9,U9,"≳","\\gtrsim",!0),N9(B9,R9,U9,"⪆","\\gtrapprox",!0),N9(B9,R9,z9,"⋗","\\gtrdot"),N9(B9,R9,U9,"⋙","\\ggg",!0),N9(B9,R9,U9,"≷","\\gtrless",!0),N9(B9,R9,U9,"⋛","\\gtreqless",!0),N9(B9,R9,U9,"⪌","\\gtreqqless",!0),N9(B9,R9,U9,"≖","\\eqcirc",!0),N9(B9,R9,U9,"≗","\\circeq",!0),N9(B9,R9,U9,"≜","\\triangleq",!0),N9(B9,R9,U9,"∼","\\thicksim"),N9(B9,R9,U9,"≈","\\thickapprox"),N9(B9,R9,U9,"⫆","\\supseteqq",!0),N9(B9,R9,U9,"⋑","\\Supset",!0),N9(B9,R9,U9,"⊐","\\sqsupset",!0),N9(B9,R9,U9,"≽","\\succcurlyeq",!0),N9(B9,R9,U9,"⋟","\\curlyeqsucc",!0),N9(B9,R9,U9,"≿","\\succsim",!0),N9(B9,R9,U9,"⪸","\\succapprox",!0),N9(B9,R9,U9,"⊳","\\vartriangleright"),N9(B9,R9,U9,"⊵","\\trianglerighteq"),N9(B9,R9,U9,"⊩","\\Vdash",!0),N9(B9,R9,U9,"∣","\\shortmid"),N9(B9,R9,U9,"∥","\\shortparallel"),N9(B9,R9,U9,"≬","\\between",!0),N9(B9,R9,U9,"⋔","\\pitchfork",!0),N9(B9,R9,U9,"∝","\\varpropto"),N9(B9,R9,U9,"◀","\\blacktriangleleft"),N9(B9,R9,U9,"∴","\\therefore",!0),N9(B9,R9,U9,"∍","\\backepsilon"),N9(B9,R9,U9,"▶","\\blacktriangleright"),N9(B9,R9,U9,"∵","\\because",!0),N9(B9,R9,U9,"⋘","\\llless"),N9(B9,R9,U9,"⋙","\\gggtr"),N9(B9,R9,z9,"⊲","\\lhd"),N9(B9,R9,z9,"⊳","\\rhd"),N9(B9,R9,U9,"≂","\\eqsim",!0),N9(B9,D9,U9,"⋈","\\Join"),N9(B9,R9,U9,"≑","\\Doteq",!0),N9(B9,R9,z9,"∔","\\dotplus",!0),N9(B9,R9,z9,"∖","\\smallsetminus"),N9(B9,R9,z9,"⋒","\\Cap",!0),N9(B9,R9,z9,"⋓","\\Cup",!0),N9(B9,R9,z9,"⩞","\\doublebarwedge",!0),N9(B9,R9,z9,"⊟","\\boxminus",!0),N9(B9,R9,z9,"⊞","\\boxplus",!0),N9(B9,R9,z9,"⋇","\\divideontimes",!0),N9(B9,R9,z9,"⋉","\\ltimes",!0),N9(B9,R9,z9,"⋊","\\rtimes",!0),N9(B9,R9,z9,"⋋","\\leftthreetimes",!0),N9(B9,R9,z9,"⋌","\\rightthreetimes",!0),N9(B9,R9,z9,"⋏","\\curlywedge",!0),N9(B9,R9,z9,"⋎","\\curlyvee",!0),N9(B9,R9,z9,"⊝","\\circleddash",!0),N9(B9,R9,z9,"⊛","\\circledast",!0),N9(B9,R9,z9,"⋅","\\centerdot"),N9(B9,R9,z9,"⊺","\\intercal",!0),N9(B9,R9,z9,"⋒","\\doublecap"),N9(B9,R9,z9,"⋓","\\doublecup"),N9(B9,R9,z9,"⊠","\\boxtimes",!0),N9(B9,R9,U9,"⇢","\\dashrightarrow",!0),N9(B9,R9,U9,"⇠","\\dashleftarrow",!0),N9(B9,R9,U9,"⇇","\\leftleftarrows",!0),N9(B9,R9,U9,"⇆","\\leftrightarrows",!0),N9(B9,R9,U9,"⇚","\\Lleftarrow",!0),N9(B9,R9,U9,"↞","\\twoheadleftarrow",!0),N9(B9,R9,U9,"↢","\\leftarrowtail",!0),N9(B9,R9,U9,"↫","\\looparrowleft",!0),N9(B9,R9,U9,"⇋","\\leftrightharpoons",!0),N9(B9,R9,U9,"↶","\\curvearrowleft",!0),N9(B9,R9,U9,"↺","\\circlearrowleft",!0),N9(B9,R9,U9,"↰","\\Lsh",!0),N9(B9,R9,U9,"⇈","\\upuparrows",!0),N9(B9,R9,U9,"↿","\\upharpoonleft",!0),N9(B9,R9,U9,"⇃","\\downharpoonleft",!0),N9(B9,D9,U9,"⊶","\\origof",!0),N9(B9,D9,U9,"⊷","\\imageof",!0),N9(B9,R9,U9,"⊸","\\multimap",!0),N9(B9,R9,U9,"↭","\\leftrightsquigarrow",!0),N9(B9,R9,U9,"⇉","\\rightrightarrows",!0),N9(B9,R9,U9,"⇄","\\rightleftarrows",!0),N9(B9,R9,U9,"↠","\\twoheadrightarrow",!0),N9(B9,R9,U9,"↣","\\rightarrowtail",!0),N9(B9,R9,U9,"↬","\\looparrowright",!0),N9(B9,R9,U9,"↷","\\curvearrowright",!0),N9(B9,R9,U9,"↻","\\circlearrowright",!0),N9(B9,R9,U9,"↱","\\Rsh",!0),N9(B9,R9,U9,"⇊","\\downdownarrows",!0),N9(B9,R9,U9,"↾","\\upharpoonright",!0),N9(B9,R9,U9,"⇂","\\downharpoonright",!0),N9(B9,R9,U9,"⇝","\\rightsquigarrow",!0),N9(B9,R9,U9,"⇝","\\leadsto"),N9(B9,R9,U9,"⇛","\\Rrightarrow",!0),N9(B9,R9,U9,"↾","\\restriction"),N9(B9,D9,$9,"‘","`"),N9(B9,D9,$9,"$","\\$"),N9(O9,D9,$9,"$","\\$"),N9(O9,D9,$9,"$","\\textdollar"),N9(B9,D9,$9,"%","\\%"),N9(O9,D9,$9,"%","\\%"),N9(B9,D9,$9,"_","\\_"),N9(O9,D9,$9,"_","\\_"),N9(O9,D9,$9,"_","\\textunderscore"),N9(B9,D9,$9,"∠","\\angle",!0),N9(B9,D9,$9,"∞","\\infty",!0),N9(B9,D9,$9,"′","\\prime"),N9(B9,D9,$9,"△","\\triangle"),N9(B9,D9,$9,"Γ","\\Gamma",!0),N9(B9,D9,$9,"Δ","\\Delta",!0),N9(B9,D9,$9,"Θ","\\Theta",!0),N9(B9,D9,$9,"Λ","\\Lambda",!0),N9(B9,D9,$9,"Ξ","\\Xi",!0),N9(B9,D9,$9,"Π","\\Pi",!0),N9(B9,D9,$9,"Σ","\\Sigma",!0),N9(B9,D9,$9,"Υ","\\Upsilon",!0),N9(B9,D9,$9,"Φ","\\Phi",!0),N9(B9,D9,$9,"Ψ","\\Psi",!0),N9(B9,D9,$9,"Ω","\\Omega",!0),N9(B9,D9,$9,"A","Α"),N9(B9,D9,$9,"B","Β"),N9(B9,D9,$9,"E","Ε"),N9(B9,D9,$9,"Z","Ζ"),N9(B9,D9,$9,"H","Η"),N9(B9,D9,$9,"I","Ι"),N9(B9,D9,$9,"K","Κ"),N9(B9,D9,$9,"M","Μ"),N9(B9,D9,$9,"N","Ν"),N9(B9,D9,$9,"O","Ο"),N9(B9,D9,$9,"P","Ρ"),N9(B9,D9,$9,"T","Τ"),N9(B9,D9,$9,"X","Χ"),N9(B9,D9,$9,"¬","\\neg",!0),N9(B9,D9,$9,"¬","\\lnot"),N9(B9,D9,$9,"⊤","\\top"),N9(B9,D9,$9,"⊥","\\bot"),N9(B9,D9,$9,"∅","\\emptyset"),N9(B9,R9,$9,"∅","\\varnothing"),N9(B9,D9,F9,"α","\\alpha",!0),N9(B9,D9,F9,"β","\\beta",!0),N9(B9,D9,F9,"γ","\\gamma",!0),N9(B9,D9,F9,"δ","\\delta",!0),N9(B9,D9,F9,"ϵ","\\epsilon",!0),N9(B9,D9,F9,"ζ","\\zeta",!0),N9(B9,D9,F9,"η","\\eta",!0),N9(B9,D9,F9,"θ","\\theta",!0),N9(B9,D9,F9,"ι","\\iota",!0),N9(B9,D9,F9,"κ","\\kappa",!0),N9(B9,D9,F9,"λ","\\lambda",!0),N9(B9,D9,F9,"μ","\\mu",!0),N9(B9,D9,F9,"ν","\\nu",!0),N9(B9,D9,F9,"ξ","\\xi",!0),N9(B9,D9,F9,"ο","\\omicron",!0),N9(B9,D9,F9,"π","\\pi",!0),N9(B9,D9,F9,"ρ","\\rho",!0),N9(B9,D9,F9,"σ","\\sigma",!0),N9(B9,D9,F9,"τ","\\tau",!0),N9(B9,D9,F9,"υ","\\upsilon",!0),N9(B9,D9,F9,"ϕ","\\phi",!0),N9(B9,D9,F9,"χ","\\chi",!0),N9(B9,D9,F9,"ψ","\\psi",!0),N9(B9,D9,F9,"ω","\\omega",!0),N9(B9,D9,F9,"ε","\\varepsilon",!0),N9(B9,D9,F9,"ϑ","\\vartheta",!0),N9(B9,D9,F9,"ϖ","\\varpi",!0),N9(B9,D9,F9,"ϱ","\\varrho",!0),N9(B9,D9,F9,"ς","\\varsigma",!0),N9(B9,D9,F9,"φ","\\varphi",!0),N9(B9,D9,z9,"∗","*",!0),N9(B9,D9,z9,"+","+"),N9(B9,D9,z9,"−","-",!0),N9(B9,D9,z9,"⋅","\\cdot",!0),N9(B9,D9,z9,"∘","\\circ",!0),N9(B9,D9,z9,"÷","\\div",!0),N9(B9,D9,z9,"±","\\pm",!0),N9(B9,D9,z9,"×","\\times",!0),N9(B9,D9,z9,"∩","\\cap",!0),N9(B9,D9,z9,"∪","\\cup",!0),N9(B9,D9,z9,"∖","\\setminus",!0),N9(B9,D9,z9,"∧","\\land"),N9(B9,D9,z9,"∨","\\lor"),N9(B9,D9,z9,"∧","\\wedge",!0),N9(B9,D9,z9,"∨","\\vee",!0),N9(B9,D9,$9,"√","\\surd"),N9(B9,D9,q9,"⟨","\\langle",!0),N9(B9,D9,q9,"∣","\\lvert"),N9(B9,D9,q9,"∥","\\lVert"),N9(B9,D9,j9,"?","?"),N9(B9,D9,j9,"!","!"),N9(B9,D9,j9,"⟩","\\rangle",!0),N9(B9,D9,j9,"∣","\\rvert"),N9(B9,D9,j9,"∥","\\rVert"),N9(B9,D9,U9,"=","="),N9(B9,D9,U9,":",":"),N9(B9,D9,U9,"≈","\\approx",!0),N9(B9,D9,U9,"≅","\\cong",!0),N9(B9,D9,U9,"≥","\\ge"),N9(B9,D9,U9,"≥","\\geq",!0),N9(B9,D9,U9,"←","\\gets"),N9(B9,D9,U9,">","\\gt",!0),N9(B9,D9,U9,"∈","\\in",!0),N9(B9,D9,U9,"","\\@not"),N9(B9,D9,U9,"⊂","\\subset",!0),N9(B9,D9,U9,"⊃","\\supset",!0),N9(B9,D9,U9,"⊆","\\subseteq",!0),N9(B9,D9,U9,"⊇","\\supseteq",!0),N9(B9,R9,U9,"⊈","\\nsubseteq",!0),N9(B9,R9,U9,"⊉","\\nsupseteq",!0),N9(B9,D9,U9,"⊨","\\models"),N9(B9,D9,U9,"←","\\leftarrow",!0),N9(B9,D9,U9,"≤","\\le"),N9(B9,D9,U9,"≤","\\leq",!0),N9(B9,D9,U9,"<","\\lt",!0),N9(B9,D9,U9,"→","\\rightarrow",!0),N9(B9,D9,U9,"→","\\to"),N9(B9,R9,U9,"≱","\\ngeq",!0),N9(B9,R9,U9,"≰","\\nleq",!0),N9(B9,D9,W9," ","\\ "),N9(B9,D9,W9," ","\\space"),N9(B9,D9,W9," ","\\nobreakspace"),N9(O9,D9,W9," ","\\ "),N9(O9,D9,W9," "," "),N9(O9,D9,W9," ","\\space"),N9(O9,D9,W9," ","\\nobreakspace"),N9(B9,D9,W9,null,"\\nobreak"),N9(B9,D9,W9,null,"\\allowbreak"),N9(B9,D9,H9,",",","),N9(B9,D9,H9,";",";"),N9(B9,R9,z9,"⊼","\\barwedge",!0),N9(B9,R9,z9,"⊻","\\veebar",!0),N9(B9,D9,z9,"⊙","\\odot",!0),N9(B9,D9,z9,"⊕","\\oplus",!0),N9(B9,D9,z9,"⊗","\\otimes",!0),N9(B9,D9,$9,"∂","\\partial",!0),N9(B9,D9,z9,"⊘","\\oslash",!0),N9(B9,R9,z9,"⊚","\\circledcirc",!0),N9(B9,R9,z9,"⊡","\\boxdot",!0),N9(B9,D9,z9,"△","\\bigtriangleup"),N9(B9,D9,z9,"▽","\\bigtriangledown"),N9(B9,D9,z9,"†","\\dagger"),N9(B9,D9,z9,"⋄","\\diamond"),N9(B9,D9,z9,"⋆","\\star"),N9(B9,D9,z9,"◃","\\triangleleft"),N9(B9,D9,z9,"▹","\\triangleright"),N9(B9,D9,q9,"{","\\{"),N9(O9,D9,$9,"{","\\{"),N9(O9,D9,$9,"{","\\textbraceleft"),N9(B9,D9,j9,"}","\\}"),N9(O9,D9,$9,"}","\\}"),N9(O9,D9,$9,"}","\\textbraceright"),N9(B9,D9,q9,"{","\\lbrace"),N9(B9,D9,j9,"}","\\rbrace"),N9(B9,D9,q9,"[","\\lbrack",!0),N9(O9,D9,$9,"[","\\lbrack",!0),N9(B9,D9,j9,"]","\\rbrack",!0),N9(O9,D9,$9,"]","\\rbrack",!0),N9(B9,D9,q9,"(","\\lparen",!0),N9(B9,D9,j9,")","\\rparen",!0),N9(O9,D9,$9,"<","\\textless",!0),N9(O9,D9,$9,">","\\textgreater",!0),N9(B9,D9,q9,"⌊","\\lfloor",!0),N9(B9,D9,j9,"⌋","\\rfloor",!0),N9(B9,D9,q9,"⌈","\\lceil",!0),N9(B9,D9,j9,"⌉","\\rceil",!0),N9(B9,D9,$9,"\\","\\backslash"),N9(B9,D9,$9,"∣","|"),N9(B9,D9,$9,"∣","\\vert"),N9(O9,D9,$9,"|","\\textbar",!0),N9(B9,D9,$9,"∥","\\|"),N9(B9,D9,$9,"∥","\\Vert"),N9(O9,D9,$9,"∥","\\textbardbl"),N9(O9,D9,$9,"~","\\textasciitilde"),N9(O9,D9,$9,"\\","\\textbackslash"),N9(O9,D9,$9,"^","\\textasciicircum"),N9(B9,D9,U9,"↑","\\uparrow",!0),N9(B9,D9,U9,"⇑","\\Uparrow",!0),N9(B9,D9,U9,"↓","\\downarrow",!0),N9(B9,D9,U9,"⇓","\\Downarrow",!0),N9(B9,D9,U9,"↕","\\updownarrow",!0),N9(B9,D9,U9,"⇕","\\Updownarrow",!0),N9(B9,D9,V9,"∐","\\coprod"),N9(B9,D9,V9,"⋁","\\bigvee"),N9(B9,D9,V9,"⋀","\\bigwedge"),N9(B9,D9,V9,"⨄","\\biguplus"),N9(B9,D9,V9,"⋂","\\bigcap"),N9(B9,D9,V9,"⋃","\\bigcup"),N9(B9,D9,V9,"∫","\\int"),N9(B9,D9,V9,"∫","\\intop"),N9(B9,D9,V9,"∬","\\iint"),N9(B9,D9,V9,"∭","\\iiint"),N9(B9,D9,V9,"∏","\\prod"),N9(B9,D9,V9,"∑","\\sum"),N9(B9,D9,V9,"⨂","\\bigotimes"),N9(B9,D9,V9,"⨁","\\bigoplus"),N9(B9,D9,V9,"⨀","\\bigodot"),N9(B9,D9,V9,"∮","\\oint"),N9(B9,D9,V9,"∯","\\oiint"),N9(B9,D9,V9,"∰","\\oiiint"),N9(B9,D9,V9,"⨆","\\bigsqcup"),N9(B9,D9,V9,"∫","\\smallint"),N9(O9,D9,L9,"…","\\textellipsis"),N9(B9,D9,L9,"…","\\mathellipsis"),N9(O9,D9,L9,"…","\\ldots",!0),N9(B9,D9,L9,"…","\\ldots",!0),N9(B9,D9,L9,"⋯","\\@cdots",!0),N9(B9,D9,L9,"⋱","\\ddots",!0),N9(B9,D9,$9,"⋮","\\varvdots"),N9(O9,D9,$9,"⋮","\\varvdots"),N9(B9,D9,M9,"ˊ","\\acute"),N9(B9,D9,M9,"ˋ","\\grave"),N9(B9,D9,M9,"¨","\\ddot"),N9(B9,D9,M9,"~","\\tilde"),N9(B9,D9,M9,"ˉ","\\bar"),N9(B9,D9,M9,"˘","\\breve"),N9(B9,D9,M9,"ˇ","\\check"),N9(B9,D9,M9,"^","\\hat"),N9(B9,D9,M9,"⃗","\\vec"),N9(B9,D9,M9,"˙","\\dot"),N9(B9,D9,M9,"˚","\\mathring"),N9(B9,D9,F9,"","\\@imath"),N9(B9,D9,F9,"","\\@jmath"),N9(B9,D9,$9,"ı","ı"),N9(B9,D9,$9,"ȷ","ȷ"),N9(O9,D9,$9,"ı","\\i",!0),N9(O9,D9,$9,"ȷ","\\j",!0),N9(O9,D9,$9,"ß","\\ss",!0),N9(O9,D9,$9,"æ","\\ae",!0),N9(O9,D9,$9,"œ","\\oe",!0),N9(O9,D9,$9,"ø","\\o",!0),N9(O9,D9,$9,"Æ","\\AE",!0),N9(O9,D9,$9,"Œ","\\OE",!0),N9(O9,D9,$9,"Ø","\\O",!0),N9(O9,D9,M9,"ˊ","\\'"),N9(O9,D9,M9,"ˋ","\\`"),N9(O9,D9,M9,"ˆ","\\^"),N9(O9,D9,M9,"˜","\\~"),N9(O9,D9,M9,"ˉ","\\="),N9(O9,D9,M9,"˘","\\u"),N9(O9,D9,M9,"˙","\\."),N9(O9,D9,M9,"¸","\\c"),N9(O9,D9,M9,"˚","\\r"),N9(O9,D9,M9,"ˇ","\\v"),N9(O9,D9,M9,"¨",'\\"'),N9(O9,D9,M9,"˝","\\H"),N9(O9,D9,M9,"◯","\\textcircled");var G9={"--":!0,"---":!0,"``":!0,"''":!0};N9(O9,D9,$9,"–","--",!0),N9(O9,D9,$9,"–","\\textendash"),N9(O9,D9,$9,"—","---",!0),N9(O9,D9,$9,"—","\\textemdash"),N9(O9,D9,$9,"‘","`",!0),N9(O9,D9,$9,"‘","\\textquoteleft"),N9(O9,D9,$9,"’","'",!0),N9(O9,D9,$9,"’","\\textquoteright"),N9(O9,D9,$9,"“","``",!0),N9(O9,D9,$9,"“","\\textquotedblleft"),N9(O9,D9,$9,"”","''",!0),N9(O9,D9,$9,"”","\\textquotedblright"),N9(B9,D9,$9,"°","\\degree",!0),N9(O9,D9,$9,"°","\\degree"),N9(O9,D9,$9,"°","\\textdegree",!0),N9(B9,D9,$9,"£","\\pounds"),N9(B9,D9,$9,"£","\\mathsterling",!0),N9(O9,D9,$9,"£","\\pounds"),N9(O9,D9,$9,"£","\\textsterling",!0),N9(B9,R9,$9,"✠","\\maltese"),N9(O9,R9,$9,"✠","\\maltese");for(var Y9='0123456789/@."',K9=0;K9<14;K9++){var X9=Y9.charAt(K9);N9(B9,D9,$9,X9,X9)}for(var J9='0123456789!@*()-=+";:?/.,',Q9=0;Q9<25;Q9++){var Z9=J9.charAt(Q9);N9(O9,D9,$9,Z9,Z9)}for(var eee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",tee=0;tee<52;tee++){var ree=eee.charAt(tee);N9(B9,D9,F9,ree,ree),N9(O9,D9,$9,ree,ree)}N9(B9,R9,$9,"C","ℂ"),N9(O9,R9,$9,"C","ℂ"),N9(B9,R9,$9,"H","ℍ"),N9(O9,R9,$9,"H","ℍ"),N9(B9,R9,$9,"N","ℕ"),N9(O9,R9,$9,"N","ℕ"),N9(B9,R9,$9,"P","ℙ"),N9(O9,R9,$9,"P","ℙ"),N9(B9,R9,$9,"Q","ℚ"),N9(O9,R9,$9,"Q","ℚ"),N9(B9,R9,$9,"R","ℝ"),N9(O9,R9,$9,"R","ℝ"),N9(B9,R9,$9,"Z","ℤ"),N9(O9,R9,$9,"Z","ℤ"),N9(B9,D9,F9,"h","ℎ"),N9(O9,D9,F9,"h","ℎ");for(var nee="",oee=0;oee<52;oee++){var iee=eee.charAt(oee);N9(B9,D9,F9,iee,nee=String.fromCharCode(55349,56320+oee)),N9(O9,D9,$9,iee,nee),N9(B9,D9,F9,iee,nee=String.fromCharCode(55349,56372+oee)),N9(O9,D9,$9,iee,nee),N9(B9,D9,F9,iee,nee=String.fromCharCode(55349,56424+oee)),N9(O9,D9,$9,iee,nee),N9(B9,D9,F9,iee,nee=String.fromCharCode(55349,56580+oee)),N9(O9,D9,$9,iee,nee),N9(B9,D9,F9,iee,nee=String.fromCharCode(55349,56684+oee)),N9(O9,D9,$9,iee,nee),N9(B9,D9,F9,iee,nee=String.fromCharCode(55349,56736+oee)),N9(O9,D9,$9,iee,nee),N9(B9,D9,F9,iee,nee=String.fromCharCode(55349,56788+oee)),N9(O9,D9,$9,iee,nee),N9(B9,D9,F9,iee,nee=String.fromCharCode(55349,56840+oee)),N9(O9,D9,$9,iee,nee),N9(B9,D9,F9,iee,nee=String.fromCharCode(55349,56944+oee)),N9(O9,D9,$9,iee,nee),oee<26&&(N9(B9,D9,F9,iee,nee=String.fromCharCode(55349,56632+oee)),N9(O9,D9,$9,iee,nee),N9(B9,D9,F9,iee,nee=String.fromCharCode(55349,56476+oee)),N9(O9,D9,$9,iee,nee))}N9(B9,D9,F9,"k",nee=String.fromCharCode(55349,56668)),N9(O9,D9,$9,"k",nee);for(var aee=0;aee<10;aee++){var see=aee.toString();N9(B9,D9,F9,see,nee=String.fromCharCode(55349,57294+aee)),N9(O9,D9,$9,see,nee),N9(B9,D9,F9,see,nee=String.fromCharCode(55349,57314+aee)),N9(O9,D9,$9,see,nee),N9(B9,D9,F9,see,nee=String.fromCharCode(55349,57324+aee)),N9(O9,D9,$9,see,nee),N9(B9,D9,F9,see,nee=String.fromCharCode(55349,57334+aee)),N9(O9,D9,$9,see,nee)}for(var lee="ÐÞþ",cee=0;cee<3;cee++){var uee=lee.charAt(cee);N9(B9,D9,F9,uee,uee),N9(O9,D9,$9,uee,uee)}var dee=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],fee=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],hee=function(e,t,r){return P9[r][e]&&P9[r][e].replace&&(e=P9[r][e].replace),{value:e,metrics:n9(e,t,r)}},pee=function(e,t,r,n,o){var i,a=hee(e,t,r),s=a.metrics;if(e=a.value,s){var l=s.italic;("text"===r||n&&"mathit"===n.font)&&(l=0),i=new k9(e,s.height,s.depth,l,s.skew,s.width,o)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+r+"'"),i=new k9(e,0,0,0,0,0,o);if(n){i.maxFontSize=n.sizeMultiplier,n.style.isTight()&&i.classes.push("mtight");var c=n.getColor();c&&(i.style.color=c)}return i},mee=(e,t)=>{if(p9(e.classes)!==p9(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var r=e.classes[0];if("mbin"===r||"mord"===r)return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var o in t.style)if(t.style.hasOwnProperty(o)&&e.style[o]!==t.style[o])return!1;return!0},gee=function(e){for(var t=0,r=0,n=0,o=0;o<e.children.length;o++){var i=e.children[o];i.height>t&&(t=i.height),i.depth>r&&(r=i.depth),i.maxFontSize>n&&(n=i.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=n},vee=function(e,t,r,n){var o=new b9(e,t,r,n);return gee(o),o},yee=(e,t,r,n)=>new b9(e,t,r,n),bee=function(e){var t=new Z8(e);return gee(t),t},wee=function(e,t,r){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},xee={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},See={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},kee={fontMap:xee,makeSymbol:pee,mathsym:function(e,t,r,n){return void 0===n&&(n=[]),"boldsymbol"===r.font&&hee(e,"Main-Bold",t).metrics?pee(e,"Main-Bold",t,r,n.concat(["mathbf"])):"\\"===e||"main"===P9[t][e].font?pee(e,"Main-Regular",t,r,n):pee(e,"AMS-Regular",t,r,n.concat(["amsrm"]))},makeSpan:vee,makeSvgSpan:yee,makeLineSpan:function(e,t,r){var n=vee([e],[],t);return n.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=h9(n.height),n.maxFontSize=1,n},makeAnchor:function(e,t,r,n){var o=new w9(e,t,r,n);return gee(o),o},makeFragment:bee,wrapFragment:function(e,t){return e instanceof Z8?vee([],[e],t):e},makeVList:function(e,t){for(var{children:r,depth:n}=function(e){if("individualShift"===e.positionType){for(var t=e.children,r=[t[0]],n=-t[0].shift-t[0].elem.depth,o=n,i=1;i<t.length;i++){var a=-t[i].shift-o-t[i].elem.depth,s=a-(t[i-1].elem.height+t[i-1].elem.depth);o+=a,r.push({type:"kern",size:s}),r.push(t[i])}return{children:r,depth:n}}var l;if("top"===e.positionType){for(var c=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];c-="kern"===d.type?d.size:d.elem.height+d.elem.depth}l=c}else if("bottom"===e.positionType)l=-e.positionData;else{var f=e.children[0];if("elem"!==f.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-f.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-f.elem.depth}}return{children:e.children,depth:l}}(e),o=0,i=0;i<r.length;i++){var a=r[i];if("elem"===a.type){var s=a.elem;o=Math.max(o,s.maxFontSize,s.height)}}o+=2;var l=vee(["pstrut"],[]);l.style.height=h9(o);for(var c=[],u=n,d=n,f=n,h=0;h<r.length;h++){var p=r[h];if("kern"===p.type)f+=p.size;else{var m=p.elem,g=p.wrapperClasses||[],v=p.wrapperStyle||{},y=vee(g,[l,m],void 0,v);y.style.top=h9(-o-f-m.depth),p.marginLeft&&(y.style.marginLeft=p.marginLeft),p.marginRight&&(y.style.marginRight=p.marginRight),c.push(y),f+=m.height+m.depth}u=Math.min(u,f),d=Math.max(d,f)}var b,w=vee(["vlist"],c);if(w.style.height=h9(d),u<0){var x=vee([],[]),S=vee(["vlist"],[x]);S.style.height=h9(-u);var k=vee(["vlist-s"],[new k9("​")]);b=[vee(["vlist-r"],[w,k]),vee(["vlist-r"],[S])]}else b=[vee(["vlist-r"],[w])];var E=vee(["vlist-t"],b);return 2===b.length&&E.classes.push("vlist-t2"),E.height=d,E.depth=-u,E},makeOrd:function(e,t,r){var n=e.mode,o=e.text,i=["mord"],a="math"===n||"text"===n&&t.font,s=a?t.font:t.fontFamily,l="",c="";if(55349===o.charCodeAt(0)&&([l,c]=function(e,t){var r=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,n="math"===t?0:1;if(119808<=r&&r<120484){var o=Math.floor((r-119808)/26);return[dee[o][2],dee[o][n]]}if(120782<=r&&r<=120831){var i=Math.floor((r-120782)/10);return[fee[i][2],fee[i][n]]}if(120485===r||120486===r)return[dee[0][2],dee[0][n]];if(120486<r&&r<120782)return["",""];throw new P8("Unsupported character: "+e)}(o,n)),l.length>0)return pee(o,l,n,t,i.concat(c));if(s){var u,d;if("boldsymbol"===s){var f=function(e,t,r,n,o){return"textord"!==o&&hee(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(o,n,0,0,r);u=f.fontName,d=[f.fontClass]}else a?(u=xee[s].fontName,d=[s]):(u=wee(s,t.fontWeight,t.fontShape),d=[s,t.fontWeight,t.fontShape]);if(hee(o,u,n).metrics)return pee(o,u,n,t,i.concat(d));if(G9.hasOwnProperty(o)&&"Typewriter"===u.slice(0,10)){for(var h=[],p=0;p<o.length;p++)h.push(pee(o[p],u,n,t,i.concat(d)));return bee(h)}}if("mathord"===r)return pee(o,"Math-Italic",n,t,i.concat(["mathnormal"]));if("textord"===r){var m=P9[n][o]&&P9[n][o].font;if("ams"===m){var g=wee("amsrm",t.fontWeight,t.fontShape);return pee(o,g,n,t,i.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==m&&m){var v=wee(m,t.fontWeight,t.fontShape);return pee(o,v,n,t,i.concat(v,t.fontWeight,t.fontShape))}var y=wee("textrm",t.fontWeight,t.fontShape);return pee(o,y,n,t,i.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+r+" in makeOrd")},makeGlue:(e,t)=>{var r=vee(["mspace"],[],t),n=f9(e,t);return r.style.marginRight=h9(n),r},staticSvg:function(e,t){var[r,n,o]=See[e],i=new T9(r),a=new E9([i],{width:h9(n),height:h9(o),style:"width:"+h9(n),viewBox:"0 0 "+1e3*n+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),s=yee(["overlay"],[a],t);return s.height=o,s.style.height=h9(o),s.style.width=h9(n),s},svgData:See,tryCombineChars:e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof k9&&n instanceof k9&&mee(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e}},Eee={number:3,unit:"mu"},Tee={number:4,unit:"mu"},_ee={number:5,unit:"mu"},Cee={mord:{mop:Eee,mbin:Tee,mrel:_ee,minner:Eee},mop:{mord:Eee,mop:Eee,mrel:_ee,minner:Eee},mbin:{mord:Tee,mop:Tee,mopen:Tee,minner:Tee},mrel:{mord:_ee,mop:_ee,mopen:_ee,minner:_ee},mopen:{},mclose:{mop:Eee,mbin:Tee,mrel:_ee,minner:Eee},mpunct:{mord:Eee,mop:Eee,mrel:_ee,mopen:Eee,mclose:Eee,mpunct:Eee,minner:Eee},minner:{mord:Eee,mop:Eee,mbin:Tee,mrel:_ee,mopen:Eee,mpunct:Eee,minner:Eee}},Aee={mord:{mop:Eee},mop:{mord:Eee,mop:Eee},mbin:{},mrel:{},mopen:{},mclose:{mop:Eee},mpunct:{},minner:{mop:Eee}},Iee={},Pee={},Nee={};function Bee(e){for(var{type:t,names:r,props:n,handler:o,htmlBuilder:i,mathmlBuilder:a}=e,s={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:void 0===n.allowedInMath||n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:o},l=0;l<r.length;++l)Iee[r[l]]=s;t&&(i&&(Pee[t]=i),a&&(Nee[t]=a))}function Oee(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;Bee({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var Dee=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},Ree=function(e){return"ordgroup"===e.type?e.body:[e]},Mee=kee.makeSpan,zee=["leftmost","mbin","mopen","mrel","mop","mpunct"],jee=["rightmost","mrel","mclose","mpunct"],Lee={display:G8.DISPLAY,text:G8.TEXT,script:G8.SCRIPT,scriptscript:G8.SCRIPTSCRIPT},Fee={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Vee=function(e,t,r,n){void 0===n&&(n=[null,null]);for(var o=[],i=0;i<e.length;i++){var a=Gee(e[i],t);if(a instanceof Z8){var s=a.children;o.push(...s)}else o.push(a)}if(kee.tryCombineChars(o),!r)return o;var l=t;if(1===e.length){var c=e[0];"sizing"===c.type?l=t.havingSize(c.size):"styling"===c.type&&(l=t.havingStyle(Lee[c.style]))}var u=Mee([n[0]||"leftmost"],[],t),d=Mee([n[1]||"rightmost"],[],t),f="root"===r;return qee(o,(e,t)=>{var r=t.classes[0],n=e.classes[0];"mbin"===r&&R8.contains(jee,n)?t.classes[0]="mord":"mbin"===n&&R8.contains(zee,r)&&(e.classes[0]="mord")},{node:u},d,f),qee(o,(e,t)=>{var r=Wee(t),n=Wee(e),o=r&&n?e.hasClass("mtight")?Aee[r][n]:Cee[r][n]:null;if(o)return kee.makeGlue(o,l)},{node:u},d,f),o},qee=function e(t,r,n,o,i){o&&t.push(o);for(var a=0;a<t.length;a++){var s=t[a],l=Hee(s);if(l)e(l.children,r,n,null,i);else{var c=!s.hasClass("mspace");if(c){var u=r(s,n.node);u&&(n.insertAfter?n.insertAfter(u):(t.unshift(u),a++))}c?n.node=s:i&&s.hasClass("newline")&&(n.node=Mee(["leftmost"])),n.insertAfter=(e=>r=>{t.splice(e+1,0,r),a++})(a)}}o&&t.pop()},Hee=function(e){return e instanceof Z8||e instanceof w9||e instanceof b9&&e.hasClass("enclosing")?e:null},Uee=function e(t,r){var n=Hee(t);if(n){var o=n.children;if(o.length){if("right"===r)return e(o[o.length-1],"right");if("left"===r)return e(o[0],"left")}}return t},Wee=function(e,t){return e?(t&&(e=Uee(e,t)),Fee[e.classes[0]]||null):null},$ee=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return Mee(t.concat(r))},Gee=function(e,t,r){if(!e)return Mee();if(Pee[e.type]){var n=Pee[e.type](e,t);if(r&&t.size!==r.size){n=Mee(t.sizingClasses(r),[n],t);var o=t.sizeMultiplier/r.sizeMultiplier;n.height*=o,n.depth*=o}return n}throw new P8("Got group of unknown type: '"+e.type+"'")};function Yee(e,t){var r=Mee(["base"],e,t),n=Mee(["strut"]);return n.style.height=h9(r.height+r.depth),r.depth&&(n.style.verticalAlign=h9(-r.depth)),r.children.unshift(n),r}function Kee(e,t){var r=null;1===e.length&&"tag"===e[0].type&&(r=e[0].tag,e=e[0].body);var n,o=Vee(e,t,"root");2===o.length&&o[1].hasClass("tag")&&(n=o.pop());for(var i,a=[],s=[],l=0;l<o.length;l++)if(s.push(o[l]),o[l].hasClass("mbin")||o[l].hasClass("mrel")||o[l].hasClass("allowbreak")){for(var c=!1;l<o.length-1&&o[l+1].hasClass("mspace")&&!o[l+1].hasClass("newline");)l++,s.push(o[l]),o[l].hasClass("nobreak")&&(c=!0);c||(a.push(Yee(s,t)),s=[])}else o[l].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(Yee(s,t)),s=[]),a.push(o[l]));s.length>0&&a.push(Yee(s,t)),r?((i=Yee(Vee(r,t,!0))).classes=["tag"],a.push(i)):n&&a.push(n);var u=Mee(["katex-html"],a);if(u.setAttribute("aria-hidden","true"),i){var d=i.children[0];d.style.height=h9(u.height+u.depth),u.depth&&(d.style.verticalAlign=h9(-u.depth))}return u}function Xee(e){return new Z8(e)}class Jee{constructor(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=p9(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof Qee&&this.children[r+1]instanceof Qee){for(var n=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof Qee;)n+=this.children[++r].toText();e.appendChild(new Qee(n).toNode())}else e.appendChild(this.children[r].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=R8.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+R8.escape(p9(this.classes))+'"'),e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</"+this.type+">"}toText(){return this.children.map(e=>e.toText()).join("")}}class Qee{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return R8.escape(this.toText())}toText(){return this.text}}var Zee={MathNode:Jee,TextNode:Qee,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?"  ":e>=-.05556&&e<=-.05555?" ⁣":e>=-.1667&&e<=-.1666?" ⁣":e>=-.2223&&e<=-.2222?" ⁣":e>=-.2778&&e<=-.2777?" ⁣":null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",h9(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+h9(this.width)+'"/>'}toText(){return this.character?this.character:" "}},newDocumentFragment:Xee},ete=function(e,t,r){return!P9[t][e]||!P9[t][e].replace||55349===e.charCodeAt(0)||G9.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.slice(4,6)||r.font&&"tt"===r.font.slice(4,6))||(e=P9[t][e].replace),new Zee.TextNode(e)},tte=function(e){return 1===e.length?e[0]:new Zee.MathNode("mrow",e)},rte=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var r=t.font;if(!r||"mathnormal"===r)return null;var n=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===r)return"bold";if("mathbb"===r)return"double-struck";if("mathsfit"===r)return"sans-serif-italic";if("mathfrak"===r)return"fraktur";if("mathscr"===r||"mathcal"===r)return"script";if("mathsf"===r)return"sans-serif";if("mathtt"===r)return"monospace";var o=e.text;return R8.contains(["\\imath","\\jmath"],o)?null:(P9[n][o]&&P9[n][o].replace&&(o=P9[n][o].replace),n9(o,kee.fontMap[r].fontName,n)?kee.fontMap[r].variant:null)};function nte(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof Qee&&"."===t.text}if("mo"===e.type&&1===e.children.length&&"true"===e.getAttribute("separator")&&"0em"===e.getAttribute("lspace")&&"0em"===e.getAttribute("rspace")){var r=e.children[0];return r instanceof Qee&&","===r.text}return!1}var ote=function(e,t,r){if(1===e.length){var n=ate(e[0],t);return r&&n instanceof Jee&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var o,i=[],a=0;a<e.length;a++){var s=ate(e[a],t);if(s instanceof Jee&&o instanceof Jee){if("mtext"===s.type&&"mtext"===o.type&&s.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...s.children);continue}if("mn"===s.type&&"mn"===o.type){o.children.push(...s.children);continue}if(nte(s)&&"mn"===o.type){o.children.push(...s.children);continue}if("mn"===s.type&&nte(o))s.children=[...o.children,...s.children],i.pop();else if(("msup"===s.type||"msub"===s.type)&&s.children.length>=1&&("mn"===o.type||nte(o))){var l=s.children[0];l instanceof Jee&&"mn"===l.type&&(l.children=[...o.children,...l.children],i.pop())}else if("mi"===o.type&&1===o.children.length){var c=o.children[0];if(c instanceof Qee&&"̸"===c.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var u=s.children[0];u instanceof Qee&&u.text.length>0&&(u.text=u.text.slice(0,1)+"̸"+u.text.slice(1),i.pop())}}}i.push(s),o=s}return i},ite=function(e,t,r){return tte(ote(e,t,r))},ate=function(e,t){if(!e)return new Zee.MathNode("mrow");if(Nee[e.type])return Nee[e.type](e,t);throw new P8("Got group of unknown type: '"+e.type+"'")};function ste(e,t,r,n,o){var i,a=ote(e,r);i=1===a.length&&a[0]instanceof Jee&&R8.contains(["mrow","mtable"],a[0].type)?a[0]:new Zee.MathNode("mrow",a);var s=new Zee.MathNode("annotation",[new Zee.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new Zee.MathNode("semantics",[i,s]),c=new Zee.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&c.setAttribute("display","block");var u=o?"katex":"katex-mathml";return kee.makeSpan([u],[c])}var lte=function(e){return new l9({style:e.displayMode?G8.DISPLAY:G8.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},cte=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=kee.makeSpan(r,[e])}return e},ute={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},dte={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},fte=function(e,t,r,n,o){var i,a=e.height+e.depth+r+n;if(/fbox|color|angl/.test(t)){if(i=kee.makeSpan(["stretchy",t],[],o),"fbox"===t){var s=o.color&&o.getColor();s&&(i.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new _9({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new _9({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new E9(l,{width:"100%",height:h9(a)});i=kee.makeSvgSpan([],[c],o)}return i.height=a,i.style.height=h9(a),i},hte=function(e){var t=new Zee.MathNode("mo",[new Zee.TextNode(ute[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},pte=function(e,t){var{span:r,minWidth:n,height:o}=function(){var r=4e5,n=e.label.slice(1);if(R8.contains(["widehat","widecheck","widetilde","utilde"],n)){var o,i,a,s="ordgroup"===(h=e.base).type?h.body.length:1;if(s>5)"widehat"===n||"widecheck"===n?(o=420,r=2364,a=.42,i=n+"4"):(o=312,r=2340,a=.34,i="tilde4");else{var l=[1,1,2,2,3,3][s];"widehat"===n||"widecheck"===n?(r=[0,1062,2364,2364,2364][l],o=[0,239,300,360,420][l],a=[0,.24,.3,.3,.36,.42][l],i=n+l):(r=[0,600,1033,2339,2340][l],o=[0,260,286,306,312][l],a=[0,.26,.286,.3,.306,.34][l],i="tilde"+l)}var c=new T9(i),u=new E9([c],{width:"100%",height:h9(a),viewBox:"0 0 "+r+" "+o,preserveAspectRatio:"none"});return{span:kee.makeSvgSpan([],[u],t),minWidth:0,height:a}}var d,f,h,p=[],m=dte[n],[g,v,y]=m,b=y/1e3,w=g.length;if(1===w)d=["hide-tail"],f=[m[3]];else if(2===w)d=["halfarrow-left","halfarrow-right"],f=["xMinYMin","xMaxYMin"];else{if(3!==w)throw new Error("Correct katexImagesData or update code here to support\n                    "+w+" children.");d=["brace-left","brace-center","brace-right"],f=["xMinYMin","xMidYMin","xMaxYMin"]}for(var x=0;x<w;x++){var S=new T9(g[x]),k=new E9([S],{width:"400em",height:h9(b),viewBox:"0 0 "+r+" "+y,preserveAspectRatio:f[x]+" slice"}),E=kee.makeSvgSpan([d[x]],[k],t);if(1===w)return{span:E,minWidth:v,height:b};E.style.height=h9(b),p.push(E)}return{span:kee.makeSpan(["stretchy"],p,t),minWidth:v,height:b}}();return r.height=o,r.style.height=h9(o),n>0&&(r.style.minWidth=h9(n)),r};function mte(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function gte(e){var t=vte(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function vte(e){return e&&("atom"===e.type||I9.hasOwnProperty(e.type))?e:null}var yte=(e,t)=>{var r,n,o;e&&"supsub"===e.type?(r=(n=mte(e.base,"accent")).base,e.base=r,o=function(e){if(e instanceof b9)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(Gee(e,t)),e.base=n):r=(n=mte(e,"accent")).base;var i=Gee(r,t.havingCrampedStyle()),a=0;if(n.isShifty&&R8.isCharacterBox(r)){var s=R8.getBaseElem(r);a=C9(Gee(s,t.havingCrampedStyle())).skew}var l,c="\\c"===n.label,u=c?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight);if(n.isStretchy)l=pte(n,t),l=kee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:l,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+h9(2*a)+")",marginLeft:h9(2*a)}:void 0}]},t);else{var d,f;"\\vec"===n.label?(d=kee.staticSvg("vec",t),f=kee.svgData.vec[1]):((d=C9(d=kee.makeOrd({mode:n.mode,text:n.label},t,"textord"))).italic=0,f=d.width,c&&(u+=d.depth)),l=kee.makeSpan(["accent-body"],[d]);var h="\\textcircled"===n.label;h&&(l.classes.push("accent-full"),u=i.height);var p=a;h||(p-=f/2),l.style.left=h9(p),"\\textcircled"===n.label&&(l.style.top=".2em"),l=kee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-u},{type:"elem",elem:l}]},t)}var m=kee.makeSpan(["mord","accent"],[l],t);return o?(o.children[0]=m,o.height=Math.max(m.height,o.height),o.classes[0]="mord",o):m},bte=(e,t)=>{var r=e.isStretchy?hte(e.label):new Zee.MathNode("mo",[ete(e.label,e.mode)]),n=new Zee.MathNode("mover",[ate(e.base,t),r]);return n.setAttribute("accent","true"),n},wte=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Bee({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=Dee(t[0]),n=!wte.test(e.funcName),o=!n||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:o,base:r}},htmlBuilder:yte,mathmlBuilder:bte}),Bee({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return"math"===n&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:yte,mathmlBuilder:bte}),Bee({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:o}},htmlBuilder:(e,t)=>{var r=Gee(e.base,t),n=pte(e,t),o="\\utilde"===e.label?.12:0,i=kee.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:r}]},t);return kee.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=hte(e.label),n=new Zee.MathNode("munder",[ate(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var xte=e=>{var t=new Zee.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Bee({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:o}=e;return{type:"xArrow",mode:n.mode,label:o,body:t[0],below:r[0]}},htmlBuilder(e,t){var r,n=t.style,o=t.havingStyle(n.sup()),i=kee.wrapFragment(Gee(e.body,o,t),t),a="\\x"===e.label.slice(0,2)?"x":"cd";i.classes.push(a+"-arrow-pad"),e.below&&(o=t.havingStyle(n.sub()),(r=kee.wrapFragment(Gee(e.below,o,t),t)).classes.push(a+"-arrow-pad"));var s,l=pte(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,u=-t.fontMetrics().axisHeight-.5*l.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(u-=i.depth),r){var d=-t.fontMetrics().axisHeight+r.height+.5*l.height+.111;s=kee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:l,shift:c},{type:"elem",elem:r,shift:d}]},t)}else s=kee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:l,shift:c}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),kee.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder(e,t){var r,n=hte(e.label);if(n.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var o=xte(ate(e.body,t));if(e.below){var i=xte(ate(e.below,t));r=new Zee.MathNode("munderover",[n,i,o])}else r=new Zee.MathNode("mover",[n,o])}else if(e.below){var a=xte(ate(e.below,t));r=new Zee.MathNode("munder",[n,a])}else r=xte(),r=new Zee.MathNode("mover",[n,r]);return r}});var Ste=kee.makeSpan;function kte(e,t){var r=Vee(e.body,t,!0);return Ste([e.mclass],r,t)}function Ete(e,t){var r,n=ote(e.body,t);return"minner"===e.mclass?r=new Zee.MathNode("mpadded",n):"mord"===e.mclass?e.isCharacterBox?(r=n[0]).type="mi":r=new Zee.MathNode("mi",n):(e.isCharacterBox?(r=n[0]).type="mo":r=new Zee.MathNode("mo",n),"mbin"===e.mclass?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0em"):"minner"===e.mclass&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}Bee({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,o=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:Ree(o),isCharacterBox:R8.isCharacterBox(o)}},htmlBuilder:kte,mathmlBuilder:Ete});var Tte=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};Bee({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Tte(t[0]),body:Ree(t[1]),isCharacterBox:R8.isCharacterBox(t[1])}}}),Bee({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var r,{parser:n,funcName:o}=e,i=t[1],a=t[0];r="\\stackrel"!==o?Tte(i):"mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==o,body:Ree(i)},l={type:"supsub",mode:a.mode,base:s,sup:"\\underset"===o?null:a,sub:"\\underset"===o?a:null};return{type:"mclass",mode:n.mode,mclass:r,body:[l],isCharacterBox:R8.isCharacterBox(l)}},htmlBuilder:kte,mathmlBuilder:Ete}),Bee({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Tte(t[0]),body:Ree(t[0])}},htmlBuilder(e,t){var r=Vee(e.body,t,!0),n=kee.makeSpan([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=ote(e.body,t),n=new Zee.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var _te={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Cte=()=>({type:"styling",body:[],mode:"math",style:"display"}),Ate=e=>"textord"===e.type&&"@"===e.text,Ite=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;function Pte(e,t,r){var n=_te[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var o={type:"atom",text:n,mode:"math",family:"rel"},i={type:"ordgroup",mode:"math",body:[r.callFunction("\\\\cdleft",[t[0]],[]),r.callFunction("\\Big",[o],[]),r.callFunction("\\\\cdright",[t[1]],[])]};return r.callFunction("\\\\cdparent",[i],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}Bee({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=kee.wrapFragment(Gee(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=h9(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new Zee.MathNode("mrow",[ate(e.label,t)]);return(r=new Zee.MathNode("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new Zee.MathNode("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),Bee({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=kee.wrapFragment(Gee(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:(e,t)=>new Zee.MathNode("mrow",[ate(e.fragment,t)])}),Bee({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=mte(t[0],"ordgroup").body,o="",i=0;i<n.length;i++){o+=mte(n[i],"textord").text}var a,s=parseInt(o);if(isNaN(s))throw new P8("\\@char has non-numeric argument "+o);if(s<0||s>=1114111)throw new P8("\\@char with invalid code point "+o);return s<=65535?a=String.fromCharCode(s):(s-=65536,a=String.fromCharCode(55296+(s>>10),56320+(1023&s))),{type:"textord",mode:r.mode,text:a}}});var Nte=(e,t)=>{var r=Vee(e.body,t.withColor(e.color),!1);return kee.makeFragment(r)},Bte=(e,t)=>{var r=ote(e.body,t.withColor(e.color)),n=new Zee.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};Bee({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=mte(t[0],"color-token").color,o=t[1];return{type:"color",mode:r.mode,color:n,body:Ree(o)}},htmlBuilder:Nte,mathmlBuilder:Bte}),Bee({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,o=mte(t[0],"color-token").color;r.gullet.macros.set("\\current@color",o);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:o,body:i}},htmlBuilder:Nte,mathmlBuilder:Bte}),Bee({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,o="["===n.gullet.future().text?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:o&&mte(o,"size").value}},htmlBuilder(e,t){var r=kee.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=h9(f9(e.size,t)))),r},mathmlBuilder(e,t){var r=new Zee.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",h9(f9(e.size,t)))),r}});var Ote={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Dte=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new P8("Expected a control sequence",e);return t},Rte=(e,t,r,n)=>{var o=e.gullet.macros.get(r.text);null==o&&(r.noexpand=!0,o={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,o,n)};Bee({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(Ote[n.text])return"\\global"!==r&&"\\\\globallong"!==r||(n.text=Ote[n.text]),mte(t.parseFunction(),"internal");throw new P8("Invalid token after macro prefix",n)}}),Bee({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),o=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new P8("Expected a control sequence",n);for(var i,a=0,s=[[]];"{"!==t.gullet.future().text;)if("#"===(n=t.gullet.popToken()).text){if("{"===t.gullet.future().text){i=t.gullet.future(),s[a].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new P8('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new P8('Argument number "'+n.text+'" out of order');a++,s.push([])}else{if("EOF"===n.text)throw new P8("Expected a macro definition");s[a].push(n.text)}var{tokens:l}=t.gullet.consumeArg();return i&&l.unshift(i),"\\edef"!==r&&"\\xdef"!==r||(l=t.gullet.expandTokens(l)).reverse(),t.gullet.macros.set(o,{tokens:l,numArgs:a,delimiters:s},r===Ote[r]),{type:"internal",mode:t.mode}}}),Bee({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=Dte(t.gullet.popToken());t.gullet.consumeSpaces();var o=(e=>{var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t})(t);return Rte(t,n,o,"\\\\globallet"===r),{type:"internal",mode:t.mode}}}),Bee({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=Dte(t.gullet.popToken()),o=t.gullet.popToken(),i=t.gullet.popToken();return Rte(t,n,i,"\\\\globalfuture"===r),t.gullet.pushToken(i),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});var Mte=function(e,t,r){var n=n9(P9.math[e]&&P9.math[e].replace||e,t,r);if(!n)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return n},zte=function(e,t,r,n){var o=r.havingBaseStyle(t),i=kee.makeSpan(n.concat(o.sizingClasses(r)),[e],r),a=o.sizeMultiplier/r.sizeMultiplier;return i.height*=a,i.depth*=a,i.maxFontSize=o.sizeMultiplier,i},jte=function(e,t,r){var n=t.havingBaseStyle(r),o=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=h9(o),e.height-=o,e.depth+=o},Lte=function(e,t,r,n,o,i){var a=function(e,t,r,n){return kee.makeSymbol(e,"Size"+t+"-Regular",r,n)}(e,t,o,n),s=zte(kee.makeSpan(["delimsizing","size"+t],[a],n),G8.TEXT,n,i);return r&&jte(s,n,G8.TEXT),s},Fte=function(e,t,r){var n;return n="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:kee.makeSpan(["delimsizinginner",n],[kee.makeSpan([],[kee.makeSymbol(e,t,r)])])}},Vte=function(e,t,r){var n=e9["Size4-Regular"][e.charCodeAt(0)]?e9["Size4-Regular"][e.charCodeAt(0)][4]:e9["Size1-Regular"][e.charCodeAt(0)][4],o=new T9("inner",function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),i=new E9([o],{width:h9(n),height:h9(t),style:"width:"+h9(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),a=kee.makeSvgSpan([],[i],r);return a.height=t,a.style.height=h9(t),a.style.width=h9(n),{type:"elem",elem:a}},qte={type:"kern",size:-.008},Hte=["|","\\lvert","\\rvert","\\vert"],Ute=["\\|","\\lVert","\\rVert","\\Vert"],Wte=function(e,t,r,n,o,i){var a,s,l,c,u="",d=0;a=l=c=e,s=null;var f="Size1-Regular";"\\uparrow"===e?l=c="⏐":"\\Uparrow"===e?l=c="‖":"\\downarrow"===e?a=l="⏐":"\\Downarrow"===e?a=l="‖":"\\updownarrow"===e?(a="\\uparrow",l="⏐",c="\\downarrow"):"\\Updownarrow"===e?(a="\\Uparrow",l="‖",c="\\Downarrow"):R8.contains(Hte,e)?(l="∣",u="vert",d=333):R8.contains(Ute,e)?(l="∥",u="doublevert",d=556):"["===e||"\\lbrack"===e?(a="⎡",l="⎢",c="⎣",f="Size4-Regular",u="lbrack",d=667):"]"===e||"\\rbrack"===e?(a="⎤",l="⎥",c="⎦",f="Size4-Regular",u="rbrack",d=667):"\\lfloor"===e||"⌊"===e?(l=a="⎢",c="⎣",f="Size4-Regular",u="lfloor",d=667):"\\lceil"===e||"⌈"===e?(a="⎡",l=c="⎢",f="Size4-Regular",u="lceil",d=667):"\\rfloor"===e||"⌋"===e?(l=a="⎥",c="⎦",f="Size4-Regular",u="rfloor",d=667):"\\rceil"===e||"⌉"===e?(a="⎤",l=c="⎥",f="Size4-Regular",u="rceil",d=667):"("===e||"\\lparen"===e?(a="⎛",l="⎜",c="⎝",f="Size4-Regular",u="lparen",d=875):")"===e||"\\rparen"===e?(a="⎞",l="⎟",c="⎠",f="Size4-Regular",u="rparen",d=875):"\\{"===e||"\\lbrace"===e?(a="⎧",s="⎨",c="⎩",l="⎪",f="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(a="⎫",s="⎬",c="⎭",l="⎪",f="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(a="⎧",c="⎩",l="⎪",f="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(a="⎫",c="⎭",l="⎪",f="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(a="⎧",c="⎭",l="⎪",f="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(a="⎫",c="⎩",l="⎪",f="Size4-Regular");var h=Mte(a,f,o),p=h.height+h.depth,m=Mte(l,f,o),g=m.height+m.depth,v=Mte(c,f,o),y=v.height+v.depth,b=0,w=1;if(null!==s){var x=Mte(s,f,o);b=x.height+x.depth,w=2}var S=p+y+b,k=S+Math.max(0,Math.ceil((t-S)/(w*g)))*w*g,E=n.fontMetrics().axisHeight;r&&(E*=n.sizeMultiplier);var T=k/2-E,_=[];if(u.length>0){var C=k-p-y,A=Math.round(1e3*k),I=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}}(u,Math.round(1e3*C)),P=new T9(u,I),N=(d/1e3).toFixed(3)+"em",B=(A/1e3).toFixed(3)+"em",O=new E9([P],{width:N,height:B,viewBox:"0 0 "+d+" "+A}),D=kee.makeSvgSpan([],[O],n);D.height=A/1e3,D.style.width=N,D.style.height=B,_.push({type:"elem",elem:D})}else{if(_.push(Fte(c,f,o)),_.push(qte),null===s){var R=k-p-y+.016;_.push(Vte(l,R,n))}else{var M=(k-p-y-b)/2+.016;_.push(Vte(l,M,n)),_.push(qte),_.push(Fte(s,f,o)),_.push(qte),_.push(Vte(l,M,n))}_.push(qte),_.push(Fte(a,f,o))}var z=n.havingBaseStyle(G8.TEXT),j=kee.makeVList({positionType:"bottom",positionData:T,children:_},z);return zte(kee.makeSpan(["delimsizing","mult"],[j],z),G8.TEXT,n,i)},$te=.08,Gte=function(e,t,r,n,o){var i=function(e,t,r){t*=1e3;var n="";switch(e){case"sqrtMain":n=function(e){return"M95,"+(622+e+J8)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+J8+"h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize1":n=function(e){return"M263,"+(601+e+J8)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+J8+"h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize2":n=function(e){return"M983 "+(10+e+J8)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+J8+"h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize3":n=function(e){return"M424,"+(2398+e+J8)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+J8+"\nh400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize4":n=function(e){return"M473,"+(2713+e+J8)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+J8+"h400000v"+(40+e)+"H1017.7z"}(t);break;case"sqrtTall":n=function(e,t,r){return"M702 "+(e+J8)+"H400000"+(40+e)+"\nH742v"+(r-54-J8-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+J8+"H400000v"+(40+e)+"H742z"}(t,0,r)}return n}(e,n,r),a=new T9(e,i),s=new E9([a],{width:"400em",height:h9(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return kee.makeSvgSpan(["hide-tail"],[s],o)},Yte=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Kte=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Xte=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Jte=[0,1.2,1.8,2.4,3],Qte=[{type:"small",style:G8.SCRIPTSCRIPT},{type:"small",style:G8.SCRIPT},{type:"small",style:G8.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Zte=[{type:"small",style:G8.SCRIPTSCRIPT},{type:"small",style:G8.SCRIPT},{type:"small",style:G8.TEXT},{type:"stack"}],ere=[{type:"small",style:G8.SCRIPTSCRIPT},{type:"small",style:G8.SCRIPT},{type:"small",style:G8.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],tre=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},rre=function(e,t,r,n){for(var o=Math.min(2,3-n.style.size);o<r.length&&"stack"!==r[o].type;o++){var i=Mte(e,tre(r[o]),"math"),a=i.height+i.depth;if("small"===r[o].type&&(a*=n.havingBaseStyle(r[o].style).sizeMultiplier),a>t)return r[o]}return r[r.length-1]},nre=function(e,t,r,n,o,i){var a;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),a=R8.contains(Xte,e)?Qte:R8.contains(Yte,e)?ere:Zte;var s=rre(e,t,a,n);return"small"===s.type?function(e,t,r,n,o,i){var a=kee.makeSymbol(e,"Main-Regular",o,n),s=zte(a,t,n,i);return r&&jte(s,n,t),s}(e,s.style,r,n,o,i):"large"===s.type?Lte(e,s.size,r,n,o,i):Wte(e,t,r,n,o,i)},ore={sqrtImage:function(e,t){var r,n,o=t.havingBaseSizing(),i=rre("\\surd",e*o.sizeMultiplier,ere,o),a=o.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,c=0,u=0;return"small"===i.type?(e<1?a=1:e<1.4&&(a=.7),c=(1+s)/a,(r=Gte("sqrtMain",l=(1+s+$te)/a,u=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",n=.833/a):"large"===i.type?(u=1080*Jte[i.size],c=(Jte[i.size]+s)/a,l=(Jte[i.size]+s+$te)/a,(r=Gte("sqrtSize"+i.size,l,u,s,t)).style.minWidth="1.02em",n=1/a):(l=e+s+$te,c=e+s,u=Math.floor(1e3*e+s)+80,(r=Gte("sqrtTall",l,u,s,t)).style.minWidth="0.742em",n=1.056),r.height=c,r.style.height=h9(l),{span:r,advanceWidth:n,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*a}},sizedDelim:function(e,t,r,n,o){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),R8.contains(Yte,e)||R8.contains(Xte,e))return Lte(e,t,!1,r,n,o);if(R8.contains(Kte,e))return Wte(e,Jte[t],!1,r,n,o);throw new P8("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:Jte,customSizedDelim:nre,leftRightDelim:function(e,t,r,n,o,i){var a=n.fontMetrics().axisHeight*n.sizeMultiplier,s=5/n.fontMetrics().ptPerEm,l=Math.max(t-a,r+a),c=Math.max(l/500*901,2*l-s);return nre(e,c,!0,n,o,i)}},ire={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},are=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function sre(e,t){var r=vte(e);if(r&&R8.contains(are,r.text))return r;throw new P8(r?"Invalid delimiter '"+r.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function lre(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Bee({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=sre(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:ire[e.funcName].size,mclass:ire[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>"."===e.delim?kee.makeSpan([e.mclass]):ore.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(ete(e.delim,e.mode));var r=new Zee.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=h9(ore.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}}),Bee({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new P8("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:sre(t[0],e).text,color:r}}}),Bee({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=sre(t[0],e),n=e.parser;++n.leftrightDepth;var o=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=mte(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:o,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{lre(e);for(var r,n,o=Vee(e.body,t,!0,["mopen","mclose"]),i=0,a=0,s=!1,l=0;l<o.length;l++)o[l].isMiddle?s=!0:(i=Math.max(o[l].height,i),a=Math.max(o[l].depth,a));if(i*=t.sizeMultiplier,a*=t.sizeMultiplier,r="."===e.left?$ee(t,["mopen"]):ore.leftRightDelim(e.left,i,a,t,e.mode,["mopen"]),o.unshift(r),s)for(var c=1;c<o.length;c++){var u=o[c].isMiddle;u&&(o[c]=ore.leftRightDelim(u.delim,i,a,u.options,e.mode,[]))}if("."===e.right)n=$ee(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;n=ore.leftRightDelim(e.right,i,a,d,e.mode,["mclose"])}return o.push(n),kee.makeSpan(["minner"],o,t)},mathmlBuilder:(e,t)=>{lre(e);var r=ote(e.body,t);if("."!==e.left){var n=new Zee.MathNode("mo",[ete(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if("."!==e.right){var o=new Zee.MathNode("mo",[ete(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),r.push(o)}return tte(r)}}),Bee({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=sre(t[0],e);if(!e.parser.leftrightDepth)throw new P8("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if("."===e.delim)r=$ee(t,[]);else{r=ore.sizedDelim(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r="\\vert"===e.delim||"|"===e.delim?ete("|","text"):ete(e.delim,e.mode),n=new Zee.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var cre=(e,t)=>{var r,n,o,i=kee.wrapFragment(Gee(e.body,t),t),a=e.label.slice(1),s=t.sizeMultiplier,l=0,c=R8.isCharacterBox(e.body);if("sout"===a)(r=kee.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/s,l=-.5*t.fontMetrics().xHeight;else if("phase"===a){var u=f9({number:.6,unit:"pt"},t),d=f9({number:.35,unit:"ex"},t);s/=t.havingBaseSizing().sizeMultiplier;var f=i.height+i.depth+u+d;i.style.paddingLeft=h9(f/2+u);var h=Math.floor(1e3*f*s),p="M400000 "+(n=h)+" H0 L"+n/2+" 0 l65 45 L145 "+(n-80)+" H400000z",m=new E9([new T9("phase",p)],{width:"400em",height:h9(h/1e3),viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});(r=kee.makeSvgSpan(["hide-tail"],[m],t)).style.height=h9(f),l=i.depth+u+d}else{/cancel/.test(a)?c||i.classes.push("cancel-pad"):"angl"===a?i.classes.push("anglpad"):i.classes.push("boxpad");var g=0,v=0,y=0;/box/.test(a)?(y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),v=g=t.fontMetrics().fboxsep+("colorbox"===a?0:y)):"angl"===a?(g=4*(y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),v=Math.max(0,.25-i.depth)):v=g=c?.2:0,r=fte(i,a,g,v,t),/fbox|boxed|fcolorbox/.test(a)?(r.style.borderStyle="solid",r.style.borderWidth=h9(y)):"angl"===a&&.049!==y&&(r.style.borderTopWidth=h9(y),r.style.borderRightWidth=h9(y)),l=i.depth+v,e.backgroundColor&&(r.style.backgroundColor=e.backgroundColor,e.borderColor&&(r.style.borderColor=e.borderColor))}if(e.backgroundColor)o=kee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:l},{type:"elem",elem:i,shift:0}]},t);else{var b=/cancel|phase/.test(a)?["svg-align"]:[];o=kee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:r,shift:l,wrapperClasses:b}]},t)}return/cancel/.test(a)&&(o.height=i.height,o.depth=i.depth),/cancel/.test(a)&&!c?kee.makeSpan(["mord","cancel-lap"],[o],t):kee.makeSpan(["mord"],[o],t)},ure=(e,t)=>{var r=0,n=new Zee.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[ate(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),"\\fcolorbox"===e.label){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+o+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};Bee({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:o}=e,i=mte(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:n.mode,label:o,backgroundColor:i,body:a}},htmlBuilder:cre,mathmlBuilder:ure}),Bee({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:o}=e,i=mte(t[0],"color-token").color,a=mte(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:n.mode,label:o,backgroundColor:a,borderColor:i,body:s}},htmlBuilder:cre,mathmlBuilder:ure}),Bee({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),Bee({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,o=t[0];return{type:"enclose",mode:r.mode,label:n,body:o}},htmlBuilder:cre,mathmlBuilder:ure}),Bee({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var dre={};function fre(e){for(var{type:t,names:r,props:n,handler:o,htmlBuilder:i,mathmlBuilder:a}=e,s={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},l=0;l<r.length;++l)dre[r[l]]=s;i&&(Pee[t]=i),a&&(Nee[t]=a)}var hre={};function pre(e,t){hre[e]=t}function mre(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for("\\relax"===r&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);"\\hline"===r||"\\hdashline"===r;)e.consume(),t.push("\\hdashline"===r),e.consumeSpaces(),r=e.fetch().text;return t}var gre=e=>{if(!e.parser.settings.displayMode)throw new P8("{"+e.envName+"} can be used only in display mode.")};function vre(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function yre(e,t,r){var{hskipBeforeAndAfter:n,addJot:o,cols:i,arraystretch:a,colSeparationType:s,autoTag:l,singleRow:c,emptySingleRow:u,maxNumCols:d,leqno:f}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!a){var h=e.gullet.expandMacroAsText("\\arraystretch");if(null==h)a=1;else if(!(a=parseFloat(h))||a<0)throw new P8("Invalid \\arraystretch: "+h)}e.gullet.beginGroup();var p=[],m=[p],g=[],v=[],y=null!=l?[]:void 0;function b(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function w(){y&&(e.gullet.macros.get("\\df@tag")?(y.push(e.subparse([new I8("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):y.push(Boolean(l)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(b(),v.push(mre(e));;){var x=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),x={type:"ordgroup",mode:e.mode,body:x},r&&(x={type:"styling",mode:e.mode,style:r,body:[x]}),p.push(x);var S=e.fetch().text;if("&"===S){if(d&&p.length===d){if(c||s)throw new P8("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===S){w(),1===p.length&&"styling"===x.type&&0===x.body[0].body.length&&(m.length>1||!u)&&m.pop(),v.length<m.length+1&&v.push([]);break}if("\\\\"!==S)throw new P8("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();var k=void 0;" "!==e.gullet.future().text&&(k=e.parseSizeGroup(!0)),g.push(k?k.value:null),w(),v.push(mre(e)),p=[],m.push(p),b()}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:o,arraystretch:a,body:m,cols:i,rowGaps:g,hskipBeforeAndAfter:n,hLinesBeforeRow:v,colSeparationType:s,tags:y,leqno:f}}function bre(e){return"d"===e.slice(0,1)?"display":"text"}var wre=function(e,t){var r,n,o=e.body.length,i=e.hLinesBeforeRow,a=0,s=new Array(o),l=[],c=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&"small"===e.colSeparationType&&(d=t.havingStyle(G8.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var f="CD"===e.colSeparationType?f9({number:3,unit:"ex"},t):12*u,h=3*u,p=e.arraystretch*f,m=.7*p,g=.3*p,v=0;function y(e){for(var t=0;t<e.length;++t)t>0&&(v+=.25),l.push({pos:v,isDashed:e[t]})}for(y(i[0]),r=0;r<e.body.length;++r){var b=e.body[r],w=m,x=g;a<b.length&&(a=b.length);var S=new Array(b.length);for(n=0;n<b.length;++n){var k=Gee(b[n],t);x<k.depth&&(x=k.depth),w<k.height&&(w=k.height),S[n]=k}var E=e.rowGaps[r],T=0;E&&(T=f9(E,t))>0&&(x<(T+=g)&&(x=T),T=0),e.addJot&&(x+=h),S.height=w,S.depth=x,v+=w,S.pos=v,v+=x+T,s[r]=S,y(i[r+1])}var _,C,A=v/2+t.fontMetrics().axisHeight,I=e.cols||[],P=[],N=[];if(e.tags&&e.tags.some(e=>e))for(r=0;r<o;++r){var B=s[r],O=B.pos-A,D=e.tags[r],R=void 0;(R=!0===D?kee.makeSpan(["eqn-num"],[],t):!1===D?kee.makeSpan([],[],t):kee.makeSpan([],Vee(D,t,!0),t)).depth=B.depth,R.height=B.height,N.push({type:"elem",elem:R,shift:O})}for(n=0,C=0;n<a||C<I.length;++n,++C){for(var M=I[C]||{},z=!0;"separator"===M.type;){if(z||((_=kee.makeSpan(["arraycolsep"],[])).style.width=h9(t.fontMetrics().doubleRuleSep),P.push(_)),"|"!==M.separator&&":"!==M.separator)throw new P8("Invalid separator type: "+M.separator);var j="|"===M.separator?"solid":"dashed",L=kee.makeSpan(["vertical-separator"],[],t);L.style.height=h9(v),L.style.borderRightWidth=h9(c),L.style.borderRightStyle=j,L.style.margin="0 "+h9(-c/2);var F=v-A;F&&(L.style.verticalAlign=h9(-F)),P.push(L),M=I[++C]||{},z=!1}if(!(n>=a)){var V=void 0;(n>0||e.hskipBeforeAndAfter)&&0!==(V=R8.deflt(M.pregap,d))&&((_=kee.makeSpan(["arraycolsep"],[])).style.width=h9(V),P.push(_));var q=[];for(r=0;r<o;++r){var H=s[r],U=H[n];if(U){var W=H.pos-A;U.depth=H.depth,U.height=H.height,q.push({type:"elem",elem:U,shift:W})}}q=kee.makeVList({positionType:"individualShift",children:q},t),q=kee.makeSpan(["col-align-"+(M.align||"c")],[q]),P.push(q),(n<a-1||e.hskipBeforeAndAfter)&&0!==(V=R8.deflt(M.postgap,d))&&((_=kee.makeSpan(["arraycolsep"],[])).style.width=h9(V),P.push(_))}}if(s=kee.makeSpan(["mtable"],P),l.length>0){for(var $=kee.makeLineSpan("hline",t,c),G=kee.makeLineSpan("hdashline",t,c),Y=[{type:"elem",elem:s,shift:0}];l.length>0;){var K=l.pop(),X=K.pos-A;K.isDashed?Y.push({type:"elem",elem:G,shift:X}):Y.push({type:"elem",elem:$,shift:X})}s=kee.makeVList({positionType:"individualShift",children:Y},t)}if(0===N.length)return kee.makeSpan(["mord"],[s],t);var J=kee.makeVList({positionType:"individualShift",children:N},t);return J=kee.makeSpan(["tag"],[J],t),kee.makeFragment([s,J])},xre={c:"center ",l:"left ",r:"right "},Sre=function(e,t){for(var r=[],n=new Zee.MathNode("mtd",[],["mtr-glue"]),o=new Zee.MathNode("mtd",[],["mml-eqn-num"]),i=0;i<e.body.length;i++){for(var a=e.body[i],s=[],l=0;l<a.length;l++)s.push(new Zee.MathNode("mtd",[ate(a[l],t)]));e.tags&&e.tags[i]&&(s.unshift(n),s.push(n),e.leqno?s.unshift(o):s.push(o)),r.push(new Zee.MathNode("mtr",s))}var c=new Zee.MathNode("mtable",r),u=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);c.setAttribute("rowspacing",h9(u));var d="",f="";if(e.cols&&e.cols.length>0){var h=e.cols,p="",m=!1,g=0,v=h.length;"separator"===h[0].type&&(d+="top ",g=1),"separator"===h[h.length-1].type&&(d+="bottom ",v-=1);for(var y=g;y<v;y++)"align"===h[y].type?(f+=xre[h[y].align],m&&(p+="none "),m=!0):"separator"===h[y].type&&m&&(p+="|"===h[y].separator?"solid ":"dashed ",m=!1);c.setAttribute("columnalign",f.trim()),/[sd]/.test(p)&&c.setAttribute("columnlines",p.trim())}if("align"===e.colSeparationType){for(var b=e.cols||[],w="",x=1;x<b.length;x++)w+=x%2?"0em ":"1em ";c.setAttribute("columnspacing",w.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?c.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?c.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var S="",k=e.hLinesBeforeRow;d+=k[0].length>0?"left ":"",d+=k[k.length-1].length>0?"right ":"";for(var E=1;E<k.length-1;E++)S+=0===k[E].length?"none ":k[E][0]?"dashed ":"solid ";return/[sd]/.test(S)&&c.setAttribute("rowlines",S.trim()),""!==d&&(c=new Zee.MathNode("menclose",[c])).setAttribute("notation",d.trim()),e.arraystretch&&e.arraystretch<1&&(c=new Zee.MathNode("mstyle",[c])).setAttribute("scriptlevel","1"),c},kre=function(e,t){-1===e.envName.indexOf("ed")&&gre(e);var r,n=[],o=e.envName.indexOf("at")>-1?"alignat":"align",i="split"===e.envName,a=yre(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:vre(e.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var c="",u=0;u<t[0].body.length;u++){c+=mte(t[0].body[u],"textord").text}r=Number(c),s=2*r}var d=!s;a.body.forEach(function(e){for(var t=1;t<e.length;t+=2){var n=mte(e[t],"styling");mte(n.body[0],"ordgroup").body.unshift(l)}if(d)s<e.length&&(s=e.length);else{var o=e.length/2;if(r<o)throw new P8("Too many math in a row: expected "+r+", but got "+o,e[0])}});for(var f=0;f<s;++f){var h="r",p=0;f%2==1?h="l":f>0&&d&&(p=1),n[f]={type:"align",align:h,pregap:p,postgap:0}}return a.colSeparationType=d?"align":"alignat",a};fre({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=(vte(t[0])?[t[0]]:mte(t[0],"ordgroup").body).map(function(e){var t=gte(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new P8("Unknown column alignment: "+t,e)}),n={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return yre(e.parser,n,bre(e.envName))},htmlBuilder:wre,mathmlBuilder:Sre}),fre({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if("*"===e.envName.charAt(e.envName.length-1)){var o=e.parser;if(o.consumeSpaces(),"["===o.fetch().text){if(o.consume(),o.consumeSpaces(),r=o.fetch().text,-1==="lcr".indexOf(r))throw new P8("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),n.cols=[{type:"align",align:r}]}}var i=yre(e.parser,n,bre(e.envName)),a=Math.max(0,...i.body.map(e=>e.length));return i.cols=new Array(a).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:wre,mathmlBuilder:Sre}),fre({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=yre(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:wre,mathmlBuilder:Sre}),fre({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=(vte(t[0])?[t[0]]:mte(t[0],"ordgroup").body).map(function(e){var t=gte(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new P8("Unknown column alignment: "+t,e)});if(r.length>1)throw new P8("{subarray} can contain only one column");var n={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if((n=yre(e.parser,n,"script")).body.length>0&&n.body[0].length>1)throw new P8("{subarray} can contain only one column");return n},htmlBuilder:wre,mathmlBuilder:Sre}),fre({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=yre(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},bre(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:wre,mathmlBuilder:Sre}),fre({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:kre,htmlBuilder:wre,mathmlBuilder:Sre}),fre({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){R8.contains(["gather","gather*"],e.envName)&&gre(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:vre(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return yre(e.parser,t,"display")},htmlBuilder:wre,mathmlBuilder:Sre}),fre({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:kre,htmlBuilder:wre,mathmlBuilder:Sre}),fre({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){gre(e);var t={autoTag:vre(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return yre(e.parser,t,"display")},htmlBuilder:wre,mathmlBuilder:Sre}),fre({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(gre(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if("&"!==r&&"\\\\"!==r){if("\\end"===r){0===t[t.length-1].length&&t.pop();break}throw new P8("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var n=[],o=[n],i=0;i<t.length;i++){for(var a=t[i],s=Cte(),l=0;l<a.length;l++)if(Ate(a[l])){n.push(s);var c=gte(a[l+=1]).text,u=new Array(2);if(u[0]={type:"ordgroup",mode:"math",body:[]},u[1]={type:"ordgroup",mode:"math",body:[]},"=|.".indexOf(c)>-1);else{if(!("<>AV".indexOf(c)>-1))throw new P8('Expected one of "<>AV=|." after @',a[l]);for(var d=0;d<2;d++){for(var f=!0,h=l+1;h<a.length;h++){if(Ite(a[h],c)){f=!1,l=h;break}if(Ate(a[h]))throw new P8("Missing a "+c+" character to complete a CD arrow.",a[h]);u[d].body.push(a[h])}if(f)throw new P8("Missing a "+c+" character to complete a CD arrow.",a[l])}}var p={type:"styling",body:[Pte(c,u,e)],mode:"math",style:"display"};n.push(p),s=Cte()}else s.body.push(a[l]);i%2==0?n.push(s):n.shift(),n=[],o.push(n)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:o,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(o[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(o.length+1).fill([])}}(e.parser)),htmlBuilder:wre,mathmlBuilder:Sre}),pre("\\nonumber","\\gdef\\@eqnsw{0}"),pre("\\notag","\\nonumber"),Bee({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new P8(e.funcName+" valid only within array environment")}});var Ere=dre;Bee({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,o=t[0];if("ordgroup"!==o.type)throw new P8("Invalid environment name",o);for(var i="",a=0;a<o.body.length;++a)i+=mte(o.body[a],"textord").text;if("\\begin"===n){if(!Ere.hasOwnProperty(i))throw new P8("No such environment: "+i,o);var s=Ere[i],{args:l,optArgs:c}=r.parseArguments("\\begin{"+i+"}",s),u={mode:r.mode,envName:i,parser:r},d=s.handler(u,l,c);r.expect("\\end",!1);var f=r.nextToken,h=mte(r.parseFunction(),"environment");if(h.name!==i)throw new P8("Mismatch: \\begin{"+i+"} matched by \\end{"+h.name+"}",f);return d}return{type:"environment",mode:r.mode,name:i,nameGroup:o}}});var Tre=(e,t)=>{var r=e.font,n=t.withFont(r);return Gee(e.body,n)},_re=(e,t)=>{var r=e.font,n=t.withFont(r);return ate(e.body,n)},Cre={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Bee({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=Dee(t[0]),i=n;return i in Cre&&(i=Cre[i]),{type:"font",mode:r.mode,font:i.slice(1),body:o}},htmlBuilder:Tre,mathmlBuilder:_re}),Bee({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0],o=R8.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:Tte(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:o}}}),Bee({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:o}=e,{mode:i}=r,a=r.parseExpression(!0,o);return{type:"font",mode:i,font:"math"+n.slice(1),body:{type:"ordgroup",mode:r.mode,body:a}}},htmlBuilder:Tre,mathmlBuilder:_re});var Are=(e,t)=>{var r=t;return"display"===e?r=r.id>=G8.SCRIPT.id?r.text():G8.DISPLAY:"text"===e&&r.size===G8.DISPLAY.size?r=G8.TEXT:"script"===e?r=G8.SCRIPT:"scriptscript"===e&&(r=G8.SCRIPTSCRIPT),r},Ire=(e,t)=>{var r,n=Are(e.size,t.style),o=n.fracNum(),i=n.fracDen();r=t.havingStyle(o);var a=Gee(e.numer,r,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;a.height=a.height<s?s:a.height,a.depth=a.depth<l?l:a.depth}r=t.havingStyle(i);var c,u,d,f,h,p,m,g,v,y,b=Gee(e.denom,r,t);if(e.hasBarLine?(e.barSize?(u=f9(e.barSize,t),c=kee.makeLineSpan("frac-line",t,u)):c=kee.makeLineSpan("frac-line",t),u=c.height,d=c.height):(c=null,u=0,d=t.fontMetrics().defaultRuleThickness),n.size===G8.DISPLAY.size||"display"===e.size?(f=t.fontMetrics().num1,h=u>0?3*d:7*d,p=t.fontMetrics().denom1):(u>0?(f=t.fontMetrics().num2,h=d):(f=t.fontMetrics().num3,h=3*d),p=t.fontMetrics().denom2),c){var w=t.fontMetrics().axisHeight;f-a.depth-(w+.5*u)<h&&(f+=h-(f-a.depth-(w+.5*u))),w-.5*u-(b.height-p)<h&&(p+=h-(w-.5*u-(b.height-p)));var x=-(w-.5*u);m=kee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:p},{type:"elem",elem:c,shift:x},{type:"elem",elem:a,shift:-f}]},t)}else{var S=f-a.depth-(b.height-p);S<h&&(f+=.5*(h-S),p+=.5*(h-S)),m=kee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:p},{type:"elem",elem:a,shift:-f}]},t)}return r=t.havingStyle(n),m.height*=r.sizeMultiplier/t.sizeMultiplier,m.depth*=r.sizeMultiplier/t.sizeMultiplier,g=n.size===G8.DISPLAY.size?t.fontMetrics().delim1:n.size===G8.SCRIPTSCRIPT.size?t.havingStyle(G8.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,v=null==e.leftDelim?$ee(t,["mopen"]):ore.customSizedDelim(e.leftDelim,g,!0,t.havingStyle(n),e.mode,["mopen"]),y=e.continued?kee.makeSpan([]):null==e.rightDelim?$ee(t,["mclose"]):ore.customSizedDelim(e.rightDelim,g,!0,t.havingStyle(n),e.mode,["mclose"]),kee.makeSpan(["mord"].concat(r.sizingClasses(t)),[v,kee.makeSpan(["mfrac"],[m]),y],t)},Pre=(e,t)=>{var r=new Zee.MathNode("mfrac",[ate(e.numer,t),ate(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var n=f9(e.barSize,t);r.setAttribute("linethickness",h9(n))}}else r.setAttribute("linethickness","0px");var o=Are(e.size,t.style);if(o.size!==t.style.size){r=new Zee.MathNode("mstyle",[r]);var i=o.size===G8.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",i),r.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var a=[];if(null!=e.leftDelim){var s=new Zee.MathNode("mo",[new Zee.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}if(a.push(r),null!=e.rightDelim){var l=new Zee.MathNode("mo",[new Zee.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),a.push(l)}return tte(a)}return r};Bee({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var r,{parser:n,funcName:o}=e,i=t[0],a=t[1],s=null,l=null,c="auto";switch(o){case"\\dfrac":case"\\frac":case"\\tfrac":r=!0;break;case"\\\\atopfrac":r=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":r=!1,s="(",l=")";break;case"\\\\bracefrac":r=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":r=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(o){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text"}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:r,leftDelim:s,rightDelim:l,size:c,barSize:null}},htmlBuilder:Ire,mathmlBuilder:Pre}),Bee({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=t[0],i=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:o,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),Bee({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:r,funcName:n,token:o}=e;switch(n){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:o}}});var Nre=["display","text","script","scriptscript"],Bre=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};Bee({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var r,{parser:n}=e,o=t[4],i=t[5],a=Dee(t[0]),s="atom"===a.type&&"open"===a.family?Bre(a.text):null,l=Dee(t[1]),c="atom"===l.type&&"close"===l.family?Bre(l.text):null,u=mte(t[2],"size"),d=null;r=!!u.isBlank||(d=u.value).number>0;var f="auto",h=t[3];if("ordgroup"===h.type){if(h.body.length>0){var p=mte(h.body[0],"textord");f=Nre[Number(p.text)]}}else h=mte(h,"textord"),f=Nre[Number(h.text)];return{type:"genfrac",mode:n.mode,numer:o,denom:i,continued:!1,hasBarLine:r,barSize:d,leftDelim:s,rightDelim:c,size:f}},htmlBuilder:Ire,mathmlBuilder:Pre}),Bee({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:o}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:mte(t[0],"size").value,token:o}}}),Bee({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=t[0],i=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(mte(t[1],"infix").size),a=t[2],s=i.number>0;return{type:"genfrac",mode:r.mode,numer:o,denom:a,continued:!1,hasBarLine:s,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Ire,mathmlBuilder:Pre});var Ore=(e,t)=>{var r,n,o=t.style;"supsub"===e.type?(r=e.sup?Gee(e.sup,t.havingStyle(o.sup()),t):Gee(e.sub,t.havingStyle(o.sub()),t),n=mte(e.base,"horizBrace")):n=mte(e,"horizBrace");var i,a=Gee(n.base,t.havingBaseStyle(G8.DISPLAY)),s=pte(n,t);if(n.isOver?(i=kee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(i=kee.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t)).children[0].children[0].children[0].classes.push("svg-align"),r){var l=kee.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t);i=n.isOver?kee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):kee.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return kee.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t)};Bee({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:Ore,mathmlBuilder:(e,t)=>{var r=hte(e.label);return new Zee.MathNode(e.isOver?"mover":"munder",[ate(e.base,t),r])}}),Bee({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],o=mte(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:r.mode,href:o,body:Ree(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Vee(e.body,t,!1);return kee.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=ite(e.body,t);return r instanceof Jee||(r=new Jee("mrow",[r])),r.setAttribute("href",e.href),r}}),Bee({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=mte(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var o=[],i=0;i<n.length;i++){var a=n[i];"~"===a&&(a="\\textasciitilde"),o.push({type:"textord",mode:"text",text:a})}var s={type:"text",mode:r.mode,font:"\\texttt",body:o};return{type:"href",mode:r.mode,href:n,body:Ree(s)}}}),Bee({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:Ree(t[0])}},htmlBuilder(e,t){var r=Vee(e.body,t,!1);return kee.makeFragment(r)},mathmlBuilder:(e,t)=>new Zee.MathNode("mrow",ote(e.body,t))}),Bee({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var r,{parser:n,funcName:o,token:i}=e,a=mte(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(o){case"\\htmlClass":l.class=a,r={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,r={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,r={command:"\\htmlStyle",style:a};break;case"\\htmlData":for(var c=a.split(","),u=0;u<c.length;u++){var d=c[u].split("=");if(2!==d.length)throw new P8("Error parsing key-value for \\htmlData");l["data-"+d[0].trim()]=d[1].trim()}r={command:"\\htmlData",attributes:l};break;default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(r)?{type:"html",mode:n.mode,attributes:l,body:Ree(s)}:n.formatUnsupportedCmd(o)},htmlBuilder:(e,t)=>{var r=Vee(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var o=kee.makeSpan(n,r,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&o.setAttribute(i,e.attributes[i]);return o},mathmlBuilder:(e,t)=>ite(e.body,t)}),Bee({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:Ree(t[0]),mathml:Ree(t[1])}},htmlBuilder:(e,t)=>{var r=Vee(e.html,t,!1);return kee.makeFragment(r)},mathmlBuilder:(e,t)=>ite(e.mathml,t)});var Dre=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new P8("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!d9(r))throw new P8("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};Bee({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,o={number:0,unit:"em"},i={number:.9,unit:"em"},a={number:0,unit:"em"},s="";if(r[0])for(var l=mte(r[0],"raw").string.split(","),c=0;c<l.length;c++){var u=l[c].split("=");if(2===u.length){var d=u[1].trim();switch(u[0].trim()){case"alt":s=d;break;case"width":o=Dre(d);break;case"height":i=Dre(d);break;case"totalheight":a=Dre(d);break;default:throw new P8("Invalid key: '"+u[0]+"' in \\includegraphics.")}}}var f=mte(t[0],"url").url;return""===s&&(s=(s=(s=f).replace(/^.*[\\/]/,"")).substring(0,s.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:f})?{type:"includegraphics",mode:n.mode,alt:s,width:o,height:i,totalheight:a,src:f}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=f9(e.height,t),n=0;e.totalheight.number>0&&(n=f9(e.totalheight,t)-r);var o=0;e.width.number>0&&(o=f9(e.width,t));var i={height:h9(r+n)};o>0&&(i.width=h9(o)),n>0&&(i.verticalAlign=h9(-n));var a=new x9(e.src,e.alt,i);return a.height=r,a.depth=n,a},mathmlBuilder:(e,t)=>{var r=new Zee.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=f9(e.height,t),o=0;if(e.totalheight.number>0&&(o=f9(e.totalheight,t)-n,r.setAttribute("valign",h9(-o))),r.setAttribute("height",h9(n+o)),e.width.number>0){var i=f9(e.width,t);r.setAttribute("width",h9(i))}return r.setAttribute("src",e.src),r}}),Bee({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,o=mte(t[0],"size");if(r.settings.strict){var i="m"===n[1],a="mu"===o.value.unit;i?(a||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, not "+o.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):a&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:o.value}},htmlBuilder:(e,t)=>kee.makeGlue(e.dimension,t),mathmlBuilder(e,t){var r=f9(e.dimension,t);return new Zee.SpaceNode(r)}}),Bee({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:o}},htmlBuilder:(e,t)=>{var r;"clap"===e.alignment?(r=kee.makeSpan([],[Gee(e.body,t)]),r=kee.makeSpan(["inner"],[r],t)):r=kee.makeSpan(["inner"],[Gee(e.body,t)]);var n=kee.makeSpan(["fix"],[]),o=kee.makeSpan([e.alignment],[r,n],t),i=kee.makeSpan(["strut"]);return i.style.height=h9(o.height+o.depth),o.depth&&(i.style.verticalAlign=h9(-o.depth)),o.children.unshift(i),o=kee.makeSpan(["thinbox"],[o],t),kee.makeSpan(["mord","vbox"],[o],t)},mathmlBuilder:(e,t)=>{var r=new Zee.MathNode("mpadded",[ate(e.body,t)]);if("rlap"!==e.alignment){var n="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}}),Bee({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,o=n.mode;n.switchMode("math");var i="\\("===r?"\\)":"$",a=n.parseExpression(!1,i);return n.expect(i),n.switchMode(o),{type:"styling",mode:n.mode,style:"text",body:a}}}),Bee({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new P8("Mismatched "+e.funcName)}});var Rre=(e,t)=>{switch(t.style.size){case G8.DISPLAY.size:return e.display;case G8.TEXT.size:return e.text;case G8.SCRIPT.size:return e.script;case G8.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Bee({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Ree(t[0]),text:Ree(t[1]),script:Ree(t[2]),scriptscript:Ree(t[3])}},htmlBuilder:(e,t)=>{var r=Rre(e,t),n=Vee(r,t,!1);return kee.makeFragment(n)},mathmlBuilder:(e,t)=>{var r=Rre(e,t);return ite(r,t)}});var Mre=(e,t,r,n,o,i,a)=>{e=kee.makeSpan([],[e]);var s,l,c,u=r&&R8.isCharacterBox(r);if(t){var d=Gee(t,n.havingStyle(o.sup()),n);l={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var f=Gee(r,n.havingStyle(o.sub()),n);s={elem:f,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-f.height)}}if(l&&s){var h=n.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+a;c=kee.makeVList({positionType:"bottom",positionData:h,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:h9(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:h9(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(s){var p=e.height-a;c=kee.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:h9(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},n)}else{if(!l)return e;var m=e.depth+a;c=kee.makeVList({positionType:"bottom",positionData:m,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:h9(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}var g=[c];if(s&&0!==i&&!u){var v=kee.makeSpan(["mspace"],[],n);v.style.marginRight=h9(i),g.unshift(v)}return kee.makeSpan(["mop","op-limits"],g,n)},zre=["\\smallint"],jre=(e,t)=>{var r,n,o,i=!1;"supsub"===e.type?(r=e.sup,n=e.sub,o=mte(e.base,"op"),i=!0):o=mte(e,"op");var a,s=t.style,l=!1;if(s.size===G8.DISPLAY.size&&o.symbol&&!R8.contains(zre,o.name)&&(l=!0),o.symbol){var c=l?"Size2-Regular":"Size1-Regular",u="";if("\\oiint"!==o.name&&"\\oiiint"!==o.name||(u=o.name.slice(1),o.name="oiint"===u?"\\iint":"\\iiint"),a=kee.makeSymbol(o.name,c,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),u.length>0){var d=a.italic,f=kee.staticSvg(u+"Size"+(l?"2":"1"),t);a=kee.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:f,shift:l?.08:0}]},t),o.name="\\"+u,a.classes.unshift("mop"),a.italic=d}}else if(o.body){var h=Vee(o.body,t,!0);1===h.length&&h[0]instanceof k9?(a=h[0]).classes[0]="mop":a=kee.makeSpan(["mop"],h,t)}else{for(var p=[],m=1;m<o.name.length;m++)p.push(kee.mathsym(o.name[m],o.mode,t));a=kee.makeSpan(["mop"],p,t)}var g=0,v=0;return(a instanceof k9||"\\oiint"===o.name||"\\oiiint"===o.name)&&!o.suppressBaseShift&&(g=(a.height-a.depth)/2-t.fontMetrics().axisHeight,v=a.italic),i?Mre(a,r,n,t,s,v,g):(g&&(a.style.position="relative",a.style.top=h9(g)),a)},Lre=(e,t)=>{var r;if(e.symbol)r=new Jee("mo",[ete(e.name,e.mode)]),R8.contains(zre,e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new Jee("mo",ote(e.body,t));else{r=new Jee("mi",[new Qee(e.name.slice(1))]);var n=new Jee("mo",[ete("⁡","text")]);r=e.parentIsSupSub?new Jee("mrow",[r,n]):Xee([r,n])}return r},Fre={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Bee({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=n;return 1===o.length&&(o=Fre[o]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:jre,mathmlBuilder:Lre}),Bee({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ree(n)}},htmlBuilder:jre,mathmlBuilder:Lre});var Vre={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Bee({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:jre,mathmlBuilder:Lre}),Bee({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:jre,mathmlBuilder:Lre}),Bee({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e,n=r;return 1===n.length&&(n=Vre[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:jre,mathmlBuilder:Lre});var qre=(e,t)=>{var r,n,o,i,a=!1;if("supsub"===e.type?(r=e.sup,n=e.sub,o=mte(e.base,"operatorname"),a=!0):o=mte(e,"operatorname"),o.body.length>0){for(var s=o.body.map(e=>{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),l=Vee(s,t.withFont("mathrm"),!0),c=0;c<l.length;c++){var u=l[c];u instanceof k9&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=kee.makeSpan(["mop"],l,t)}else i=kee.makeSpan(["mop"],[],t);return a?Mre(i,r,n,t,t.style,0,0):i};function Hre(e,t,r){for(var n=Vee(e,t,!1),o=t.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var a=n[i].classes.indexOf("sizing");a<0?Array.prototype.push.apply(n[i].classes,t.sizingClasses(r)):n[i].classes[a+1]==="reset-size"+t.size&&(n[i].classes[a+1]="reset-size"+r.size),n[i].height*=o,n[i].depth*=o}return kee.makeFragment(n)}Bee({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,o=t[0];return{type:"operatorname",mode:r.mode,body:Ree(o),alwaysHandleSupSub:"\\operatornamewithlimits"===n,limits:!1,parentIsSupSub:!1}},htmlBuilder:qre,mathmlBuilder:(e,t)=>{for(var r=ote(e.body,t.withFont("mathrm")),n=!0,o=0;o<r.length;o++){var i=r[o];if(i instanceof Zee.SpaceNode);else if(i instanceof Zee.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var a=i.children[0];1===i.children.length&&a instanceof Zee.TextNode?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break;default:n=!1}else n=!1}if(n){var s=r.map(e=>e.toText()).join("");r=[new Zee.TextNode(s)]}var l=new Zee.MathNode("mi",r);l.setAttribute("mathvariant","normal");var c=new Zee.MathNode("mo",[ete("⁡","text")]);return e.parentIsSupSub?new Zee.MathNode("mrow",[l,c]):Zee.newDocumentFragment([l,c])}}),pre("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Oee({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?kee.makeFragment(Vee(e.body,t,!1)):kee.makeSpan(["mord"],Vee(e.body,t,!0),t),mathmlBuilder:(e,t)=>ite(e.body,t,!0)}),Bee({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=Gee(e.body,t.havingCrampedStyle()),n=kee.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,i=kee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n},{type:"kern",size:o}]},t);return kee.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new Zee.MathNode("mo",[new Zee.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new Zee.MathNode("mover",[ate(e.body,t),r]);return n.setAttribute("accent","true"),n}}),Bee({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:Ree(n)}},htmlBuilder:(e,t)=>{var r=Vee(e.body,t.withPhantom(),!1);return kee.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=ote(e.body,t);return new Zee.MathNode("mphantom",r)}}),Bee({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=kee.makeSpan([],[Gee(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n<r.children.length;n++)r.children[n].height=0,r.children[n].depth=0;return r=kee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),kee.makeSpan(["mord"],[r],t)},mathmlBuilder:(e,t)=>{var r=ote(Ree(e.body),t),n=new Zee.MathNode("mphantom",r),o=new Zee.MathNode("mpadded",[n]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}}),Bee({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=kee.makeSpan(["inner"],[Gee(e.body,t.withPhantom())]),n=kee.makeSpan(["fix"],[]);return kee.makeSpan(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=ote(Ree(e.body),t),n=new Zee.MathNode("mphantom",r),o=new Zee.MathNode("mpadded",[n]);return o.setAttribute("width","0px"),o}}),Bee({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=mte(t[0],"size").value,o=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:o}},htmlBuilder(e,t){var r=Gee(e.body,t),n=f9(e.dy,t);return kee.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new Zee.MathNode("mpadded",[ate(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}}),Bee({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),Bee({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,o=r[0],i=mte(t[0],"size"),a=mte(t[1],"size");return{type:"rule",mode:n.mode,shift:o&&mte(o,"size").value,width:i.value,height:a.value}},htmlBuilder(e,t){var r=kee.makeSpan(["mord","rule"],[],t),n=f9(e.width,t),o=f9(e.height,t),i=e.shift?f9(e.shift,t):0;return r.style.borderRightWidth=h9(n),r.style.borderTopWidth=h9(o),r.style.bottom=h9(i),r.width=n,r.height=o+i,r.depth=-i,r.maxFontSize=1.125*o*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=f9(e.width,t),n=f9(e.height,t),o=e.shift?f9(e.shift,t):0,i=t.color&&t.getColor()||"black",a=new Zee.MathNode("mspace");a.setAttribute("mathbackground",i),a.setAttribute("width",h9(r)),a.setAttribute("height",h9(n));var s=new Zee.MathNode("mpadded",[a]);return o>=0?s.setAttribute("height",h9(o)):(s.setAttribute("height",h9(o)),s.setAttribute("depth",h9(-o))),s.setAttribute("voffset",h9(o)),s}});var Ure=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];Bee({type:"sizing",names:Ure,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:o}=e,i=o.parseExpression(!1,r);return{type:"sizing",mode:o.mode,size:Ure.indexOf(n)+1,body:i}},htmlBuilder:(e,t)=>{var r=t.havingSize(e.size);return Hre(e.body,r,t)},mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=ote(e.body,r),o=new Zee.MathNode("mstyle",n);return o.setAttribute("mathsize",h9(r.sizeMultiplier)),o}}),Bee({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,o=!1,i=!1,a=r[0]&&mte(r[0],"ordgroup");if(a)for(var s="",l=0;l<a.body.length;++l){if("t"===(s=a.body[l].text))o=!0;else{if("b"!==s){o=!1,i=!1;break}i=!0}}else o=!0,i=!0;var c=t[0];return{type:"smash",mode:n.mode,body:c,smashHeight:o,smashDepth:i}},htmlBuilder:(e,t)=>{var r=kee.makeSpan([],[Gee(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var n=0;n<r.children.length;n++)r.children[n].height=0;if(e.smashDepth&&(r.depth=0,r.children))for(var o=0;o<r.children.length;o++)r.children[o].depth=0;var i=kee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t);return kee.makeSpan(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new Zee.MathNode("mpadded",[ate(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),Bee({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,o=r[0],i=t[0];return{type:"sqrt",mode:n.mode,body:i,index:o}},htmlBuilder(e,t){var r=Gee(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=kee.wrapFragment(r,t);var n=t.fontMetrics().defaultRuleThickness,o=n;t.style.id<G8.TEXT.id&&(o=t.fontMetrics().xHeight);var i=n+o/4,a=r.height+r.depth+i+n,{span:s,ruleWidth:l,advanceWidth:c}=ore.sqrtImage(a,t),u=s.height-l;u>r.height+r.depth+i&&(i=(i+u-r.height-r.depth)/2);var d=s.height-r.height-i-l;r.style.paddingLeft=h9(c);var f=kee.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+d)},{type:"elem",elem:s},{type:"kern",size:l}]},t);if(e.index){var h=t.havingStyle(G8.SCRIPTSCRIPT),p=Gee(e.index,h,t),m=.6*(f.height-f.depth),g=kee.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:p}]},t),v=kee.makeSpan(["root"],[g]);return kee.makeSpan(["mord","sqrt"],[v,f],t)}return kee.makeSpan(["mord","sqrt"],[f],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new Zee.MathNode("mroot",[ate(r,t),ate(n,t)]):new Zee.MathNode("msqrt",[ate(r,t)])}});var Wre={display:G8.DISPLAY,text:G8.TEXT,script:G8.SCRIPT,scriptscript:G8.SCRIPTSCRIPT};Bee({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:o}=e,i=o.parseExpression(!0,r),a=n.slice(1,n.length-5);return{type:"styling",mode:o.mode,style:a,body:i}},htmlBuilder(e,t){var r=Wre[e.style],n=t.havingStyle(r).withFont("");return Hre(e.body,n,t)},mathmlBuilder(e,t){var r=Wre[e.style],n=t.havingStyle(r),o=ote(e.body,n),i=new Zee.MathNode("mstyle",o),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",a[0]),i.setAttribute("displaystyle",a[1]),i}});Oee({type:"supsub",htmlBuilder(e,t){var r=function(e,t){var r=e.base;return r?"op"===r.type?r.limits&&(t.style.size===G8.DISPLAY.size||r.alwaysHandleSupSub)?jre:null:"operatorname"===r.type?r.alwaysHandleSupSub&&(t.style.size===G8.DISPLAY.size||r.limits)?qre:null:"accent"===r.type?R8.isCharacterBox(r.base)?yte:null:"horizBrace"===r.type&&!e.sub===r.isOver?Ore:null:null}(e,t);if(r)return r(e,t);var n,o,i,{base:a,sup:s,sub:l}=e,c=Gee(a,t),u=t.fontMetrics(),d=0,f=0,h=a&&R8.isCharacterBox(a);if(s){var p=t.havingStyle(t.style.sup());n=Gee(s,p,t),h||(d=c.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(l){var m=t.havingStyle(t.style.sub());o=Gee(l,m,t),h||(f=c.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}i=t.style===G8.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2;var g,v=t.sizeMultiplier,y=h9(.5/u.ptPerEm/v),b=null;if(o){var w=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(c instanceof k9||w)&&(b=h9(-c.italic))}if(n&&o){d=Math.max(d,i,n.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var x=4*u.defaultRuleThickness;if(d-n.depth-(o.height-f)<x){f=x-(d-n.depth)+o.height;var S=.8*u.xHeight-(d-n.depth);S>0&&(d+=S,f-=S)}var k=[{type:"elem",elem:o,shift:f,marginRight:y,marginLeft:b},{type:"elem",elem:n,shift:-d,marginRight:y}];g=kee.makeVList({positionType:"individualShift",children:k},t)}else if(o){f=Math.max(f,u.sub1,o.height-.8*u.xHeight);var E=[{type:"elem",elem:o,marginLeft:b,marginRight:y}];g=kee.makeVList({positionType:"shift",positionData:f,children:E},t)}else{if(!n)throw new Error("supsub must have either sup or sub.");d=Math.max(d,i,n.depth+.25*u.xHeight),g=kee.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:n,marginRight:y}]},t)}var T=Wee(c,"right")||"mord";return kee.makeSpan([T],[c,kee.makeSpan(["msupsub"],[g])],t)},mathmlBuilder(e,t){var r,n=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(n=!0,r=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var o,i=[ate(e.base,t)];if(e.sub&&i.push(ate(e.sub,t)),e.sup&&i.push(ate(e.sup,t)),n)o=r?"mover":"munder";else if(e.sub)if(e.sup){var a=e.base;o=a&&"op"===a.type&&a.limits&&t.style===G8.DISPLAY||a&&"operatorname"===a.type&&a.alwaysHandleSupSub&&(t.style===G8.DISPLAY||a.limits)?"munderover":"msubsup"}else{var s=e.base;o=s&&"op"===s.type&&s.limits&&(t.style===G8.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===G8.DISPLAY)?"munder":"msub"}else{var l=e.base;o=l&&"op"===l.type&&l.limits&&(t.style===G8.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===G8.DISPLAY)?"mover":"msup"}return new Zee.MathNode(o,i)}}),Oee({type:"atom",htmlBuilder:(e,t)=>kee.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var r=new Zee.MathNode("mo",[ete(e.text,e.mode)]);if("bin"===e.family){var n=rte(e,t);"bold-italic"===n&&r.setAttribute("mathvariant",n)}else"punct"===e.family?r.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||r.setAttribute("stretchy","false");return r}});var $re={mi:"italic",mn:"normal",mtext:"normal"};Oee({type:"mathord",htmlBuilder:(e,t)=>kee.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){var r=new Zee.MathNode("mi",[ete(e.text,e.mode,t)]),n=rte(e,t)||"italic";return n!==$re[r.type]&&r.setAttribute("mathvariant",n),r}}),Oee({type:"textord",htmlBuilder:(e,t)=>kee.makeOrd(e,t,"textord"),mathmlBuilder(e,t){var r,n=ete(e.text,e.mode,t),o=rte(e,t)||"normal";return r="text"===e.mode?new Zee.MathNode("mtext",[n]):/[0-9]/.test(e.text)?new Zee.MathNode("mn",[n]):"\\prime"===e.text?new Zee.MathNode("mo",[n]):new Zee.MathNode("mi",[n]),o!==$re[r.type]&&r.setAttribute("mathvariant",o),r}});var Gre={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Yre={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Oee({type:"spacing",htmlBuilder(e,t){if(Yre.hasOwnProperty(e.text)){var r=Yre[e.text].className||"";if("text"===e.mode){var n=kee.makeOrd(e,t,"textord");return n.classes.push(r),n}return kee.makeSpan(["mspace",r],[kee.mathsym(e.text,e.mode,t)],t)}if(Gre.hasOwnProperty(e.text))return kee.makeSpan(["mspace",Gre[e.text]],[],t);throw new P8('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(!Yre.hasOwnProperty(e.text)){if(Gre.hasOwnProperty(e.text))return new Zee.MathNode("mspace");throw new P8('Unknown type of space "'+e.text+'"')}return new Zee.MathNode("mtext",[new Zee.TextNode(" ")])}});var Kre=()=>{var e=new Zee.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Oee({type:"tag",mathmlBuilder(e,t){var r=new Zee.MathNode("mtable",[new Zee.MathNode("mtr",[Kre(),new Zee.MathNode("mtd",[ite(e.body,t)]),Kre(),new Zee.MathNode("mtd",[ite(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Xre={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Jre={"\\textbf":"textbf","\\textmd":"textmd"},Qre={"\\textit":"textit","\\textup":"textup"},Zre=(e,t)=>{var r=e.font;return r?Xre[r]?t.withTextFontFamily(Xre[r]):Jre[r]?t.withTextFontWeight(Jre[r]):"\\emph"===r?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(Qre[r]):t};Bee({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,o=t[0];return{type:"text",mode:r.mode,body:Ree(o),font:n}},htmlBuilder(e,t){var r=Zre(e,t),n=Vee(e.body,r,!0);return kee.makeSpan(["mord","text"],n,r)},mathmlBuilder(e,t){var r=Zre(e,t);return ite(e.body,r)}}),Bee({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Gee(e.body,t),n=kee.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,i=kee.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:o},{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:r}]},t);return kee.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new Zee.MathNode("mo",[new Zee.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new Zee.MathNode("munder",[ate(e.body,t),r]);return n.setAttribute("accentunder","true"),n}}),Bee({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Gee(e.body,t),n=t.fontMetrics().axisHeight,o=.5*(r.height-n-(r.depth+n));return kee.makeVList({positionType:"shift",positionData:o,children:[{type:"elem",elem:r}]},t)},mathmlBuilder:(e,t)=>new Zee.MathNode("mpadded",[ate(e.body,t)],["vcenter"])}),Bee({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new P8("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=ene(e),n=[],o=t.havingStyle(t.style.text()),i=0;i<r.length;i++){var a=r[i];"~"===a&&(a="\\textasciitilde"),n.push(kee.makeSymbol(a,"Typewriter-Regular",e.mode,o,["mord","texttt"]))}return kee.makeSpan(["mord","text"].concat(o.sizingClasses(t)),kee.tryCombineChars(n),o)},mathmlBuilder(e,t){var r=new Zee.TextNode(ene(e)),n=new Zee.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var ene=e=>e.body.replace(/ /g,e.star?"␣":" "),tne=Iee,rne="[ \r\n\t]",nne="(\\\\[a-zA-Z@]+)"+rne+"*",one="[̀-ͯ]",ine=new RegExp(one+"+$"),ane="("+rne+"+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧‪-퟿豈-￿]"+one+"*|[\ud800-\udbff][\udc00-\udfff]"+one+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+nne+"|\\\\[^\ud800-\udfff])";class sne{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(ane,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new I8("EOF",new A8(this,t,t));var r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new P8("Unexpected character: '"+e[t]+"'",new I8(e[t],new A8(this,t,t+1)));var n=r[6]||r[3]||(r[2]?"\\ ":" ");if(14===this.catcodes[n]){var o=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===o?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=o+1,this.lex()}return new I8(n,new A8(this,t,this.tokenRegex.lastIndex))}}class lne{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new P8("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,r){if(void 0===r&&(r=!1),r){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var cne=hre;pre("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),pre("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),pre("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),pre("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),pre("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),pre("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),pre("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var une={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};pre("\\char",function(e){var t,r=e.popToken(),n="";if("'"===r.text)t=8,r=e.popToken();else if('"'===r.text)t=16,r=e.popToken();else if("`"===r.text)if("\\"===(r=e.popToken()).text[0])n=r.text.charCodeAt(1);else{if("EOF"===r.text)throw new P8("\\char` missing argument");n=r.text.charCodeAt(0)}else t=10;if(t){if(null==(n=une[r.text])||n>=t)throw new P8("Invalid base-"+t+" digit "+r.text);for(var o;null!=(o=une[e.future().text])&&o<t;)n*=t,n+=o,e.popToken()}return"\\@char{"+n+"}"});var dne=(e,t,r,n)=>{var o=e.consumeArg().tokens;if(1!==o.length)throw new P8("\\newcommand's first argument must be a macro name");var i=o[0].text,a=e.isDefined(i);if(a&&!t)throw new P8("\\newcommand{"+i+"} attempting to redefine "+i+"; use \\renewcommand");if(!a&&!r)throw new P8("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(1===(o=e.consumeArg().tokens).length&&"["===o[0].text){for(var l="",c=e.expandNextToken();"]"!==c.text&&"EOF"!==c.text;)l+=c.text,c=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new P8("Invalid number of arguments: "+l);s=parseInt(l),o=e.consumeArg().tokens}return a&&n||e.macros.set(i,{tokens:o,numArgs:s}),""};pre("\\newcommand",e=>dne(e,!1,!0,!1)),pre("\\renewcommand",e=>dne(e,!0,!1,!1)),pre("\\providecommand",e=>dne(e,!0,!0,!0)),pre("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join("")),""}),pre("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join("")),""}),pre("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),tne[r],P9.math[r],P9.text[r]),""}),pre("\\bgroup","{"),pre("\\egroup","}"),pre("~","\\nobreakspace"),pre("\\lq","`"),pre("\\rq","'"),pre("\\aa","\\r a"),pre("\\AA","\\r A"),pre("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),pre("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),pre("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),pre("ℬ","\\mathscr{B}"),pre("ℰ","\\mathscr{E}"),pre("ℱ","\\mathscr{F}"),pre("ℋ","\\mathscr{H}"),pre("ℐ","\\mathscr{I}"),pre("ℒ","\\mathscr{L}"),pre("ℳ","\\mathscr{M}"),pre("ℛ","\\mathscr{R}"),pre("ℭ","\\mathfrak{C}"),pre("ℌ","\\mathfrak{H}"),pre("ℨ","\\mathfrak{Z}"),pre("\\Bbbk","\\Bbb{k}"),pre("·","\\cdotp"),pre("\\llap","\\mathllap{\\textrm{#1}}"),pre("\\rlap","\\mathrlap{\\textrm{#1}}"),pre("\\clap","\\mathclap{\\textrm{#1}}"),pre("\\mathstrut","\\vphantom{(}"),pre("\\underbar","\\underline{\\text{#1}}"),pre("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),pre("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),pre("\\ne","\\neq"),pre("≠","\\neq"),pre("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),pre("∉","\\notin"),pre("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),pre("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),pre("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),pre("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),pre("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),pre("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),pre("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),pre("⟂","\\perp"),pre("‼","\\mathclose{!\\mkern-0.8mu!}"),pre("∌","\\notni"),pre("⌜","\\ulcorner"),pre("⌝","\\urcorner"),pre("⌞","\\llcorner"),pre("⌟","\\lrcorner"),pre("©","\\copyright"),pre("®","\\textregistered"),pre("️","\\textregistered"),pre("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),pre("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),pre("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),pre("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),pre("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),pre("⋮","\\vdots"),pre("\\varGamma","\\mathit{\\Gamma}"),pre("\\varDelta","\\mathit{\\Delta}"),pre("\\varTheta","\\mathit{\\Theta}"),pre("\\varLambda","\\mathit{\\Lambda}"),pre("\\varXi","\\mathit{\\Xi}"),pre("\\varPi","\\mathit{\\Pi}"),pre("\\varSigma","\\mathit{\\Sigma}"),pre("\\varUpsilon","\\mathit{\\Upsilon}"),pre("\\varPhi","\\mathit{\\Phi}"),pre("\\varPsi","\\mathit{\\Psi}"),pre("\\varOmega","\\mathit{\\Omega}"),pre("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),pre("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),pre("\\boxed","\\fbox{$\\displaystyle{#1}$}"),pre("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),pre("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),pre("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),pre("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),pre("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var fne={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};pre("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in fne?t=fne[r]:("\\not"===r.slice(0,4)||r in P9.math&&R8.contains(["bin","rel"],P9.math[r].group))&&(t="\\dotsb"),t});var hne={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};pre("\\dotso",function(e){return e.future().text in hne?"\\ldots\\,":"\\ldots"}),pre("\\dotsc",function(e){var t=e.future().text;return t in hne&&","!==t?"\\ldots\\,":"\\ldots"}),pre("\\cdots",function(e){return e.future().text in hne?"\\@cdots\\,":"\\@cdots"}),pre("\\dotsb","\\cdots"),pre("\\dotsm","\\cdots"),pre("\\dotsi","\\!\\cdots"),pre("\\dotsx","\\ldots\\,"),pre("\\DOTSI","\\relax"),pre("\\DOTSB","\\relax"),pre("\\DOTSX","\\relax"),pre("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),pre("\\,","\\tmspace+{3mu}{.1667em}"),pre("\\thinspace","\\,"),pre("\\>","\\mskip{4mu}"),pre("\\:","\\tmspace+{4mu}{.2222em}"),pre("\\medspace","\\:"),pre("\\;","\\tmspace+{5mu}{.2777em}"),pre("\\thickspace","\\;"),pre("\\!","\\tmspace-{3mu}{.1667em}"),pre("\\negthinspace","\\!"),pre("\\negmedspace","\\tmspace-{4mu}{.2222em}"),pre("\\negthickspace","\\tmspace-{5mu}{.277em}"),pre("\\enspace","\\kern.5em "),pre("\\enskip","\\hskip.5em\\relax"),pre("\\quad","\\hskip1em\\relax"),pre("\\qquad","\\hskip2em\\relax"),pre("\\tag","\\@ifstar\\tag@literal\\tag@paren"),pre("\\tag@paren","\\tag@literal{({#1})}"),pre("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new P8("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),pre("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),pre("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),pre("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),pre("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),pre("\\newline","\\\\\\relax"),pre("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var pne=h9(e9["Main-Regular"]["T".charCodeAt(0)][1]-.7*e9["Main-Regular"]["A".charCodeAt(0)][1]);pre("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+pne+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),pre("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+pne+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),pre("\\hspace","\\@ifstar\\@hspacer\\@hspace"),pre("\\@hspace","\\hskip #1\\relax"),pre("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),pre("\\ordinarycolon",":"),pre("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),pre("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),pre("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),pre("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),pre("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),pre("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),pre("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),pre("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),pre("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),pre("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),pre("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),pre("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),pre("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),pre("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),pre("∷","\\dblcolon"),pre("∹","\\eqcolon"),pre("≔","\\coloneqq"),pre("≕","\\eqqcolon"),pre("⩴","\\Coloneqq"),pre("\\ratio","\\vcentcolon"),pre("\\coloncolon","\\dblcolon"),pre("\\colonequals","\\coloneqq"),pre("\\coloncolonequals","\\Coloneqq"),pre("\\equalscolon","\\eqqcolon"),pre("\\equalscoloncolon","\\Eqqcolon"),pre("\\colonminus","\\coloneq"),pre("\\coloncolonminus","\\Coloneq"),pre("\\minuscolon","\\eqcolon"),pre("\\minuscoloncolon","\\Eqcolon"),pre("\\coloncolonapprox","\\Colonapprox"),pre("\\coloncolonsim","\\Colonsim"),pre("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),pre("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),pre("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),pre("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),pre("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),pre("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),pre("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),pre("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),pre("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),pre("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),pre("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),pre("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),pre("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),pre("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),pre("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),pre("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),pre("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),pre("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),pre("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),pre("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),pre("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),pre("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),pre("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),pre("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),pre("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),pre("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),pre("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),pre("\\imath","\\html@mathml{\\@imath}{ı}"),pre("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),pre("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),pre("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),pre("⟦","\\llbracket"),pre("⟧","\\rrbracket"),pre("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),pre("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),pre("⦃","\\lBrace"),pre("⦄","\\rBrace"),pre("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),pre("⦵","\\minuso"),pre("\\darr","\\downarrow"),pre("\\dArr","\\Downarrow"),pre("\\Darr","\\Downarrow"),pre("\\lang","\\langle"),pre("\\rang","\\rangle"),pre("\\uarr","\\uparrow"),pre("\\uArr","\\Uparrow"),pre("\\Uarr","\\Uparrow"),pre("\\N","\\mathbb{N}"),pre("\\R","\\mathbb{R}"),pre("\\Z","\\mathbb{Z}"),pre("\\alef","\\aleph"),pre("\\alefsym","\\aleph"),pre("\\Alpha","\\mathrm{A}"),pre("\\Beta","\\mathrm{B}"),pre("\\bull","\\bullet"),pre("\\Chi","\\mathrm{X}"),pre("\\clubs","\\clubsuit"),pre("\\cnums","\\mathbb{C}"),pre("\\Complex","\\mathbb{C}"),pre("\\Dagger","\\ddagger"),pre("\\diamonds","\\diamondsuit"),pre("\\empty","\\emptyset"),pre("\\Epsilon","\\mathrm{E}"),pre("\\Eta","\\mathrm{H}"),pre("\\exist","\\exists"),pre("\\harr","\\leftrightarrow"),pre("\\hArr","\\Leftrightarrow"),pre("\\Harr","\\Leftrightarrow"),pre("\\hearts","\\heartsuit"),pre("\\image","\\Im"),pre("\\infin","\\infty"),pre("\\Iota","\\mathrm{I}"),pre("\\isin","\\in"),pre("\\Kappa","\\mathrm{K}"),pre("\\larr","\\leftarrow"),pre("\\lArr","\\Leftarrow"),pre("\\Larr","\\Leftarrow"),pre("\\lrarr","\\leftrightarrow"),pre("\\lrArr","\\Leftrightarrow"),pre("\\Lrarr","\\Leftrightarrow"),pre("\\Mu","\\mathrm{M}"),pre("\\natnums","\\mathbb{N}"),pre("\\Nu","\\mathrm{N}"),pre("\\Omicron","\\mathrm{O}"),pre("\\plusmn","\\pm"),pre("\\rarr","\\rightarrow"),pre("\\rArr","\\Rightarrow"),pre("\\Rarr","\\Rightarrow"),pre("\\real","\\Re"),pre("\\reals","\\mathbb{R}"),pre("\\Reals","\\mathbb{R}"),pre("\\Rho","\\mathrm{P}"),pre("\\sdot","\\cdot"),pre("\\sect","\\S"),pre("\\spades","\\spadesuit"),pre("\\sub","\\subset"),pre("\\sube","\\subseteq"),pre("\\supe","\\supseteq"),pre("\\Tau","\\mathrm{T}"),pre("\\thetasym","\\vartheta"),pre("\\weierp","\\wp"),pre("\\Zeta","\\mathrm{Z}"),pre("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),pre("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),pre("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),pre("\\bra","\\mathinner{\\langle{#1}|}"),pre("\\ket","\\mathinner{|{#1}\\rangle}"),pre("\\braket","\\mathinner{\\langle{#1}\\rangle}"),pre("\\Bra","\\left\\langle#1\\right|"),pre("\\Ket","\\left|#1\\right\\rangle");var mne=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,o=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=t=>r=>{e&&(r.macros.set("|",a),o.length&&r.macros.set("\\|",s));var i=t;!t&&o.length&&("|"===r.future().text&&(r.popToken(),i=!0));return{tokens:i?o:n,numArgs:0}};t.macros.set("|",l(!1)),o.length&&t.macros.set("\\|",l(!0));var c=t.consumeArg().tokens,u=t.expandTokens([...i,...c,...r]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};pre("\\bra@ket",mne(!1)),pre("\\bra@set",mne(!0)),pre("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),pre("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),pre("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),pre("\\angln","{\\angl n}"),pre("\\blue","\\textcolor{##6495ed}{#1}"),pre("\\orange","\\textcolor{##ffa500}{#1}"),pre("\\pink","\\textcolor{##ff00af}{#1}"),pre("\\red","\\textcolor{##df0030}{#1}"),pre("\\green","\\textcolor{##28ae7b}{#1}"),pre("\\gray","\\textcolor{gray}{#1}"),pre("\\purple","\\textcolor{##9d38bd}{#1}"),pre("\\blueA","\\textcolor{##ccfaff}{#1}"),pre("\\blueB","\\textcolor{##80f6ff}{#1}"),pre("\\blueC","\\textcolor{##63d9ea}{#1}"),pre("\\blueD","\\textcolor{##11accd}{#1}"),pre("\\blueE","\\textcolor{##0c7f99}{#1}"),pre("\\tealA","\\textcolor{##94fff5}{#1}"),pre("\\tealB","\\textcolor{##26edd5}{#1}"),pre("\\tealC","\\textcolor{##01d1c1}{#1}"),pre("\\tealD","\\textcolor{##01a995}{#1}"),pre("\\tealE","\\textcolor{##208170}{#1}"),pre("\\greenA","\\textcolor{##b6ffb0}{#1}"),pre("\\greenB","\\textcolor{##8af281}{#1}"),pre("\\greenC","\\textcolor{##74cf70}{#1}"),pre("\\greenD","\\textcolor{##1fab54}{#1}"),pre("\\greenE","\\textcolor{##0d923f}{#1}"),pre("\\goldA","\\textcolor{##ffd0a9}{#1}"),pre("\\goldB","\\textcolor{##ffbb71}{#1}"),pre("\\goldC","\\textcolor{##ff9c39}{#1}"),pre("\\goldD","\\textcolor{##e07d10}{#1}"),pre("\\goldE","\\textcolor{##a75a05}{#1}"),pre("\\redA","\\textcolor{##fca9a9}{#1}"),pre("\\redB","\\textcolor{##ff8482}{#1}"),pre("\\redC","\\textcolor{##f9685d}{#1}"),pre("\\redD","\\textcolor{##e84d39}{#1}"),pre("\\redE","\\textcolor{##bc2612}{#1}"),pre("\\maroonA","\\textcolor{##ffbde0}{#1}"),pre("\\maroonB","\\textcolor{##ff92c6}{#1}"),pre("\\maroonC","\\textcolor{##ed5fa6}{#1}"),pre("\\maroonD","\\textcolor{##ca337c}{#1}"),pre("\\maroonE","\\textcolor{##9e034e}{#1}"),pre("\\purpleA","\\textcolor{##ddd7ff}{#1}"),pre("\\purpleB","\\textcolor{##c6b9fc}{#1}"),pre("\\purpleC","\\textcolor{##aa87ff}{#1}"),pre("\\purpleD","\\textcolor{##7854ab}{#1}"),pre("\\purpleE","\\textcolor{##543b78}{#1}"),pre("\\mintA","\\textcolor{##f5f9e8}{#1}"),pre("\\mintB","\\textcolor{##edf2df}{#1}"),pre("\\mintC","\\textcolor{##e0e5cc}{#1}"),pre("\\grayA","\\textcolor{##f6f7f7}{#1}"),pre("\\grayB","\\textcolor{##f0f1f2}{#1}"),pre("\\grayC","\\textcolor{##e3e5e6}{#1}"),pre("\\grayD","\\textcolor{##d6d8da}{#1}"),pre("\\grayE","\\textcolor{##babec2}{#1}"),pre("\\grayF","\\textcolor{##888d93}{#1}"),pre("\\grayG","\\textcolor{##626569}{#1}"),pre("\\grayH","\\textcolor{##3b3e40}{#1}"),pre("\\grayI","\\textcolor{##21242c}{#1}"),pre("\\kaBlue","\\textcolor{##314453}{#1}"),pre("\\kaGreen","\\textcolor{##71B307}{#1}");var gne={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class vne{constructor(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new lne(cne,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new sne(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,r,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:n,end:r}=this.consumeArg(["]"]))}else({tokens:n,start:t,end:r}=this.consumeArg());return this.pushToken(new I8("EOF",r.loc)),this.pushTokens(n),t.range(r,"")}consumeSpaces(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}}consumeArg(e){var t=[],r=e&&e.length>0;r||this.consumeSpaces();var n,o=this.future(),i=0,a=0;do{if(n=this.popToken(),t.push(n),"{"===n.text)++i;else if("}"===n.text){if(-1===--i)throw new P8("Extra }",n)}else if("EOF"===n.text)throw new P8("Unexpected end of input in a macro argument, expected '"+(e&&r?e[a]:"}")+"'",n);if(e&&r)if((0===i||1===i&&"{"===e[a])&&n.text===e[a]){if(++a===e.length){t.splice(-a,a);break}}else a=0}while(0!==i||r);return"{"===o.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:o,end:n}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new P8("The length of delimiters doesn't match the number of args!");for(var r=t[0],n=0;n<r.length;n++){var o=this.popToken();if(r[n]!==o.text)throw new P8("Use of the macro doesn't match its definition",o)}}for(var i=[],a=0;a<e;a++)i.push(this.consumeArg(t&&t[a+1]).tokens);return i}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new P8("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),r=t.text,n=t.noexpand?null:this._getExpansion(r);if(null==n||e&&n.unexpandable){if(e&&null==n&&"\\"===r[0]&&!this.isDefined(r))throw new P8("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);var o=n.tokens,i=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs)for(var a=(o=o.slice()).length-1;a>=0;--a){var s=o[a];if("#"===s.text){if(0===a)throw new P8("Incomplete placeholder at end of macro body",s);if("#"===(s=o[--a]).text)o.splice(a+1,1);else{if(!/^[1-9]$/.test(s.text))throw new P8("Not a valid argument number",s);o.splice(a,2,...i[+s.text-1])}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new I8(e)]):void 0}expandTokens(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(!1===this.expandOnce(!0)){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map(e=>e.text).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var r=this.lexer.catcodes[e];if(null!=r&&13!==r)return}var n="function"==typeof t?t(this):t;if("string"==typeof n){var o=0;if(-1!==n.indexOf("#"))for(var i=n.replace(/##/g,"");-1!==i.indexOf("#"+(o+1));)++o;for(var a=new sne(n,this.settings),s=[],l=a.lex();"EOF"!==l.text;)s.push(l),l=a.lex();return s.reverse(),{tokens:s,numArgs:o}}return n}isDefined(e){return this.macros.has(e)||tne.hasOwnProperty(e)||P9.math.hasOwnProperty(e)||P9.text.hasOwnProperty(e)||gne.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:tne.hasOwnProperty(e)&&!tne[e].primitive}}var yne=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,bne=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),wne={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},xne={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class Sne{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new vne(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new P8("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new I8("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var n=this.fetch();if(-1!==Sne.endOfExpression.indexOf(n.text))break;if(t&&n.text===t)break;if(e&&tne[n.text]&&tne[n.text].infix)break;var o=this.parseAtom(t);if(!o)break;"internal"!==o.type&&r.push(o)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t,r=-1,n=0;n<e.length;n++)if("infix"===e[n].type){if(-1!==r)throw new P8("only one infix operator per group",e[n].token);r=n,t=e[n].replaceWith}if(-1!==r&&t){var o,i,a=e.slice(0,r),s=e.slice(r+1);return o=1===a.length&&"ordgroup"===a[0].type?a[0]:{type:"ordgroup",mode:this.mode,body:a},i=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},["\\\\abovefrac"===t?this.callFunction(t,[o,e[r],i],[]):this.callFunction(t,[o,i],[])]}return e}handleSupSubscript(e){var t,r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();do{var o;t=this.parseGroup(e)}while("internal"===(null==(o=t)?void 0:o.type));if(!t)throw new P8("Expected group after '"+n+"'",r);return t}formatUnsupportedCmd(e){for(var t=[],r=0;r<e.length;r++)t.push({type:"textord",mode:"text",text:e[r]});var n={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]}}parseAtom(e){var t,r,n=this.parseGroup("atom",e);if("internal"===(null==n?void 0:n.type))return n;if("text"===this.mode)return n;for(;;){this.consumeSpaces();var o=this.fetch();if("\\limits"===o.text||"\\nolimits"===o.text){if(n&&"op"===n.type){var i="\\limits"===o.text;n.limits=i,n.alwaysHandleSupSub=!0}else{if(!n||"operatorname"!==n.type)throw new P8("Limit controls must follow a math operator",o);n.alwaysHandleSupSub&&(n.limits="\\limits"===o.text)}this.consume()}else if("^"===o.text){if(t)throw new P8("Double superscript",o);t=this.handleSupSubscript("superscript")}else if("_"===o.text){if(r)throw new P8("Double subscript",o);r=this.handleSupSubscript("subscript")}else if("'"===o.text){if(t)throw new P8("Double superscript",o);var a={type:"textord",mode:this.mode,text:"\\prime"},s=[a];for(this.consume();"'"===this.fetch().text;)s.push(a),this.consume();"^"===this.fetch().text&&s.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:s}}else{if(!bne[o.text])break;var l=yne.test(o.text),c=[];for(c.push(new I8(bne[o.text])),this.consume();;){var u=this.fetch().text;if(!bne[u])break;if(yne.test(u)!==l)break;c.unshift(new I8(bne[u])),this.consume()}var d=this.subparse(c);l?r={type:"ordgroup",mode:"math",body:d}:t={type:"ordgroup",mode:"math",body:d}}}return t||r?{type:"supsub",mode:this.mode,base:n,sup:t,sub:r}:n}parseFunction(e,t){var r=this.fetch(),n=r.text,o=tne[n];if(!o)return null;if(this.consume(),t&&"atom"!==t&&!o.allowedInArgument)throw new P8("Got function '"+n+"' with no arguments"+(t?" as "+t:""),r);if("text"===this.mode&&!o.allowedInText)throw new P8("Can't use function '"+n+"' in text mode",r);if("math"===this.mode&&!1===o.allowedInMath)throw new P8("Can't use function '"+n+"' in math mode",r);var{args:i,optArgs:a}=this.parseArguments(n,o);return this.callFunction(n,i,a,r,e)}callFunction(e,t,r,n,o){var i={funcName:e,parser:this,token:n,breakOnTokenText:o},a=tne[e];if(a&&a.handler)return a.handler(i,t,r);throw new P8("No function handler for "+e)}parseArguments(e,t){var r=t.numArgs+t.numOptionalArgs;if(0===r)return{args:[],optArgs:[]};for(var n=[],o=[],i=0;i<r;i++){var a=t.argTypes&&t.argTypes[i],s=i<t.numOptionalArgs;(t.primitive&&null==a||"sqrt"===t.type&&1===i&&null==o[0])&&(a="primitive");var l=this.parseGroupOfType("argument to '"+e+"'",a,s);if(s)o.push(l);else{if(null==l)throw new P8("Null argument, please report this as a bug");n.push(l)}}return{args:n,optArgs:o}}parseGroupOfType(e,t,r){switch(t){case"color":return this.parseColorGroup(r);case"size":return this.parseSizeGroup(r);case"url":return this.parseUrlGroup(r);case"math":case"text":return this.parseArgumentGroup(r,t);case"hbox":var n=this.parseArgumentGroup(r,"text");return null!=n?{type:"styling",mode:n.mode,body:[n],style:"text"}:null;case"raw":var o=this.parseStringGroup("raw",r);return null!=o?{type:"raw",mode:"text",string:o.text}:null;case"primitive":if(r)throw new P8("A primitive argument cannot be optional");var i=this.parseGroup(e);if(null==i)throw new P8("Expected group as "+e,this.fetch());return i;case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new P8("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t){var r=this.gullet.scanArgument(t);if(null==r)return null;for(var n,o="";"EOF"!==(n=this.fetch()).text;)o+=n.text,this.consume();return this.consume(),r.text=o,r}parseRegexGroup(e,t){for(var r,n=this.fetch(),o=n,i="";"EOF"!==(r=this.fetch()).text&&e.test(i+r.text);)i+=(o=r).text,this.consume();if(""===i)throw new P8("Invalid "+t+": '"+n.text+"'",n);return n.range(o,i)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var r=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!r)throw new P8("Invalid color: '"+t.text+"'",t);var n=r[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(e){var t,r=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",r=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!n)throw new P8("Invalid size: '"+t.text+"'",t);var o={number:+(n[1]+n[2]),unit:n[3]};if(!d9(o))throw new P8("Invalid unit: '"+o.unit+"'",t);return{type:"size",mode:this.mode,value:o,isBlank:r}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var r=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:r}}parseArgumentGroup(e,t){var r=this.gullet.scanArgument(e);if(null==r)return null;var n=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var o=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var i={type:"ordgroup",mode:this.mode,loc:r.loc,body:o};return t&&this.switchMode(n),i}parseGroup(e,t){var r,n=this.fetch(),o=n.text;if("{"===o||"\\begingroup"===o){this.consume();var i="{"===o?"}":"\\endgroup";this.gullet.beginGroup();var a=this.parseExpression(!1,i),s=this.fetch();this.expect(i),this.gullet.endGroup(),r={type:"ordgroup",mode:this.mode,loc:A8.range(n,s),body:a,semisimple:"\\begingroup"===o||void 0}}else if(null==(r=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===o[0]&&!gne.hasOwnProperty(o)){if(this.settings.throwOnError)throw new P8("Undefined control sequence: "+o,n);r=this.formatUnsupportedCmd(o),this.consume()}return r}formLigatures(e){for(var t=e.length-1,r=0;r<t;++r){var n=e[r],o=n.text;"-"===o&&"-"===e[r+1].text&&(r+1<t&&"-"===e[r+2].text?(e.splice(r,3,{type:"textord",mode:"text",loc:A8.range(n,e[r+2]),text:"---"}),t-=2):(e.splice(r,2,{type:"textord",mode:"text",loc:A8.range(n,e[r+1]),text:"--"}),t-=1)),"'"!==o&&"`"!==o||e[r+1].text!==o||(e.splice(r,2,{type:"textord",mode:"text",loc:A8.range(n,e[r+1]),text:o+o}),t-=1)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var r=t.slice(5),n="*"===r.charAt(0);if(n&&(r=r.slice(1)),r.length<2||r.charAt(0)!==r.slice(-1))throw new P8("\\verb assertion failed --\n                    please report what input caused this bug");return{type:"verb",mode:"text",body:r=r.slice(1,-1),star:n}}xne.hasOwnProperty(t[0])&&!P9[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=xne[t[0]]+t.slice(1));var o,i=ine.exec(t);if(i&&("i"===(t=t.substring(0,i.index))?t="ı":"j"===t&&(t="ȷ")),P9[this.mode][t]){this.settings.strict&&"math"===this.mode&&lee.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var a,s=P9[this.mode][t].group,l=A8.range(e);if(A9.hasOwnProperty(s)){var c=s;a={type:"atom",mode:this.mode,family:c,loc:l,text:t}}else a={type:s,mode:this.mode,loc:l,text:t};o=a}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(X8(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),o={type:"textord",mode:"text",loc:A8.range(e),text:t}}if(this.consume(),i)for(var u=0;u<i[0].length;u++){var d=i[0][u];if(!wne[d])throw new P8("Unknown accent ' "+d+"'",e);var f=wne[d][this.mode]||wne[d].text;if(!f)throw new P8("Accent "+d+" unsupported in "+this.mode+" mode",e);o={type:"accent",mode:this.mode,loc:A8.range(e),label:f,isStretchy:!1,isShifty:!0,base:o}}return o}}Sne.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var kne=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new Sne(e,t);delete r.gullet.macros.current["\\df@tag"];var n=r.parse();if(delete r.gullet.macros.current["\\current@color"],delete r.gullet.macros.current["\\color"],r.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new P8("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:r.subparse([new I8("\\df@tag")])}]}return n};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."));var Ene=function(e,t,r){if(r.throwOnError||!(e instanceof P8))throw e;var n=kee.makeSpan(["katex-error"],[new k9(t)]);return n.setAttribute("title",e.toString()),n.setAttribute("style","color:"+r.errorColor),n},Tne=function(e,t){var r=new j8(t);try{return function(e,t,r){var n,o=lte(r);if("mathml"===r.output)return ste(e,t,o,r.displayMode,!0);if("html"===r.output){var i=Kee(e,o);n=kee.makeSpan(["katex"],[i])}else{var a=ste(e,t,o,r.displayMode,!1),s=Kee(e,o);n=kee.makeSpan(["katex"],[a,s])}return cte(n,r)}(kne(e,r),e,r)}catch(n){return Ene(n,e,r)}},_ne=function(e,t){return Tne(e,t).toMarkup()};const Cne={tokenize:function(e,t,r){let n=0;return function t(i){if((87===i||119===i)&&n<3)return n++,e.consume(i),t;if(46===i&&3===n)return e.consume(i),o;return r(i)};function o(e){return null===e?r(e):t(e)}},partial:!0},Ane={tokenize:function(e,t,r){let n,o,i;return a;function a(t){return 46===t||95===t?e.check(Pne,l,s)(t):null===t||DL(t)||zL(t)||45!==t&&ML(t)?l(t):(i=!0,e.consume(t),a)}function s(t){return 95===t?n=!0:(o=n,n=void 0),e.consume(t),a}function l(e){return o||n||!i?r(e):t(e)}},partial:!0},Ine={tokenize:function(e,t){let r=0,n=0;return o;function o(a){return 40===a?(r++,e.consume(a),o):41===a&&n<r?i(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(Pne,t,i)(a):null===a||DL(a)||zL(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&n++,e.consume(t),o}},partial:!0},Pne={tokenize:function(e,t,r){return n;function n(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),n):38===a?(e.consume(a),i):93===a?(e.consume(a),o):60===a||null===a||DL(a)||zL(a)?t(a):r(a)}function o(e){return null===e||40===e||91===e||DL(e)||zL(e)?t(e):n(e)}function i(e){return _L(e)?a(e):r(e)}function a(t){return 59===t?(e.consume(t),n):_L(t)?(e.consume(t),a):r(t)}},partial:!0},Nne={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(e){return CL(e)?r(e):t(e)}},partial:!0},Bne={name:"wwwAutolink",tokenize:function(e,t,r){const n=this;return function(t){if(87!==t&&119!==t||!zne.call(n,n.previous)||Vne(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Cne,e.attempt(Ane,e.attempt(Ine,o),r),r)(t)};function o(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:zne},One={name:"protocolAutolink",tokenize:function(e,t,r){const n=this;let o="",i=!1;return function(t){if((72===t||104===t)&&jne.call(n,n.previous)&&!Vne(n.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a;return r(t)};function a(t){if(_L(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const r=o.toLowerCase();if("http"===r||"https"===r)return e.consume(t),s}return r(t)}function s(t){return 47===t?(e.consume(t),i?l:(i=!0,s)):r(t)}function l(t){return null===t||IL(t)||DL(t)||zL(t)||ML(t)?r(t):e.attempt(Ane,e.attempt(Ine,c),r)(t)}function c(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:jne},Dne={name:"emailAutolink",tokenize:function(e,t,r){const n=this;let o,i;return function(t){if(!Fne(t)||!Lne.call(n,n.previous)||Vne(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Fne(t)?(e.consume(t),a):64===t?(e.consume(t),s):r(t)}function s(t){return 46===t?e.check(Nne,c,l)(t):45===t||95===t||CL(t)?(i=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),o=!0,s}function c(a){return i&&o&&_L(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):r(a)}},previous:Lne},Rne={};let Mne=48;for(;Mne<123;)Rne[Mne]=Dne,Mne++,58===Mne?Mne=65:91===Mne&&(Mne=97);function zne(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||DL(e)}function jne(e){return!_L(e)}function Lne(e){return!(47===e||Fne(e))}function Fne(e){return 43===e||45===e||46===e||95===e||CL(e)}function Vne(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if(("labelLink"===n.type||"labelImage"===n.type)&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}function qne(e){Wne.call(this,e,"http://")}function Hne(e){Wne.call(this,e,"mailto:")}function Une(e){Wne.call(this,e)}function Wne(e,t){const r=this.sliceSerialize(e);this.tag('<a href="'+LL((t||"")+r)+'">'),this.raw(this.encode(r)),this.tag("</a>")}Rne[43]=Dne,Rne[45]=Dne,Rne[46]=Dne,Rne[95]=Dne,Rne[72]=[Dne,One],Rne[104]=[Dne,One],Rne[87]=[Dne,Bne],Rne[119]=[Dne,Bne];const $ne={tokenize:function(e,t,r){const n=this;return UL(e,function(e){const o=n.events[n.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):r(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function Gne(e,t,r){const n=this;let o=n.events.length;const i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let a;for(;o--;){const e=n.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return r(o);const s=TL(n.sliceSerialize({start:a.end,end:n.now()}));if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return r(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function Yne(e,t){let r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...s),e}function Kne(e,t,r){const n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?r(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!i||null===s||91===s||DL(s))return r(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(TL(n.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(s)}return DL(s)||(i=!0),a++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function Xne(e,t,r){const n=this,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(t)}function c(t){if(s>999||93===t&&!a||null===t||91===t||DL(t))return r(t);if(93===t){e.exit("chunkString");const r=e.exit("gfmFootnoteDefinitionLabelString");return i=TL(n.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return DL(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),UL(e,f,"gfmFootnoteDefinitionWhitespace")):r(t)}function f(e){return t(e)}}function Jne(e,t,r){return e.check(ZL,t,e.attempt($ne,t,r))}function Qne(e){e.exit("gfmFootnoteDefinition")}const Zne={}.hasOwnProperty,eoe={};function toe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function roe(e){const t=eoe,r=t.label||"Footnotes",n=t.labelTagName||"h2",o=null==t.labelAttributes?'class="sr-only"':t.labelAttributes,i=t.backLabel||toe,a=null==t.clobberPrefix?"user-content-":t.clobberPrefix;return{enter:{gfmFootnoteDefinition(){this.getData("tightStack").push(!1)},gfmFootnoteDefinitionLabelString(){this.buffer()},gfmFootnoteCallString(){this.buffer()}},exit:{gfmFootnoteDefinition(){let e=this.getData("gfmFootnoteDefinitions");const t=this.getData("gfmFootnoteDefinitionStack"),r=this.getData("tightStack"),n=t.pop(),o=this.resume();e||this.setData("gfmFootnoteDefinitions",e={}),Zne.call(e,n)||(e[n]=o),r.pop(),this.setData("slurpOneLineEnding",!0),this.setData("lastWasTag")},gfmFootnoteDefinitionLabelString(e){let t=this.getData("gfmFootnoteDefinitionStack");t||this.setData("gfmFootnoteDefinitionStack",t=[]),t.push(TL(this.sliceSerialize(e))),this.resume(),this.buffer()},gfmFootnoteCallString(e){let t=this.getData("gfmFootnoteCallOrder"),r=this.getData("gfmFootnoteCallCounts");const n=TL(this.sliceSerialize(e));let o;this.resume(),t||this.setData("gfmFootnoteCallOrder",t=[]),r||this.setData("gfmFootnoteCallCounts",r={});const i=t.indexOf(n),s=LL(n.toLowerCase());-1===i?(t.push(n),r[n]=1,o=t.length):(r[n]++,o=i+1);const l=r[n];this.tag('<sup><a href="#'+a+"fn-"+s+'" id="'+a+"fnref-"+s+(l>1?"-"+l:"")+'" data-footnote-ref="" aria-describedby="footnote-label">'+String(o)+"</a></sup>")},null(){const e=this.getData("gfmFootnoteCallOrder")||[],t=this.getData("gfmFootnoteCallCounts")||{},s=this.getData("gfmFootnoteDefinitions")||{};let l=-1;for(e.length>0&&(this.lineEndingIfNeeded(),this.tag('<section data-footnotes="" class="footnotes"><'+n+' id="footnote-label"'+(o?" "+o:"")+">"),this.raw(this.encode(r)),this.tag("</"+n+">"),this.lineEndingIfNeeded(),this.tag("<ol>"));++l<e.length;){const r=e[l],n=LL(r.toLowerCase());let o=0;const c=[];for(;++o<=t[r];)c.push('<a href="#'+a+"fnref-"+n+(o>1?"-"+o:"")+'" data-footnote-backref="" aria-label="'+this.encode("string"==typeof i?i:i(l,o))+'" class="data-footnote-backref">↩'+(o>1?"<sup>"+o+"</sup>":"")+"</a>");const u=c.join(" ");let d=!1;this.lineEndingIfNeeded(),this.tag('<li id="'+a+"fn-"+n+'">'),this.lineEndingIfNeeded(),this.tag(s[r].replace(/<\/p>(?:\r?\n|\r)?$/,function(e){return d=!0," "+u+e})),d||(this.lineEndingIfNeeded(),this.tag(u)),this.lineEndingIfNeeded(),this.tag("</li>")}e.length>0&&(this.lineEndingIfNeeded(),this.tag("</ol>"),this.lineEndingIfNeeded(),this.tag("</section>"))}}}}function noe(e){let t={}.singleTilde;const r={name:"strikethrough",tokenize:function(e,r,n){const o=this.previous,i=this.events;let a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return n(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(i){const l=YL(o);if(126===i)return a>1?n(i):(e.consume(i),a++,s);if(a<2&&!t)return n(i);const c=e.exit("strikethroughSequenceTemporary"),u=YL(i);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),r(i)}},resolveAll:function(e,t){let r=-1;for(;++r<e.length;)if("enter"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._close){let n=r;for(;n--;)if("exit"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._open&&e[r][1].end.offset-e[r][1].start.offset===e[n][1].end.offset-e[n][1].start.offset){e[r][1].type="strikethroughSequence",e[n][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[n][1].start),end:Object.assign({},e[r][1].end)},i={type:"strikethroughText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},a=[["enter",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["enter",i,t]],s=t.parser.constructs.insideSpan.null;s&&mL(a,a.length,0,KL(s,e.slice(n+1,r),t)),mL(a,a.length,0,[["exit",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",o,t]]),mL(e,n-1,r-n+3,a),r=n+a.length-2;break}}r=-1;for(;++r<e.length;)"strikethroughSequenceTemporary"===e[r][1].type&&(e[r][1].type="data");return e}};return null==t&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}}}const ooe={none:"",left:' align="left"',right:' align="right"',center:' align="center"'};function ioe(e,t){return"|"===t?t:e}class aoe{constructor(){this.map=[]}add(e,t,r){!function(e,t,r,n){let o=0;if(0===r&&0===n.length)return;for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=r,void e.map[o][2].push(...n);o+=1}e.map.push([t,r,n])}(this,e,t,r)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];r.push(e.slice()),e.length=0;let n=r.pop();for(;n;){for(const t of n)e.push(t);n=r.pop()}this.map.length=0}}function soe(e,t){let r=!1;const n=[];for(;t<e.length;){const o=e[t];if(r){if("enter"===o[0])"tableContent"===o[1].type&&n.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=n.length-1;n[e]="left"===n[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(r=!0);t+=1}return n}function loe(e,t,r){const n=this;let o,i=0,a=0;return function(e){let t=n.events.length-1;for(;t>-1;){const e=n.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?n.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?w:s;if(i===w&&n.parser.lazy[n.now().line])return r(e);return i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return o=!0,a+=1,l(e)}(t)}function l(t){return null===t?r(t):OL(t)?a>1?(a=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):r(t):RL(t)?UL(e,l,"whitespace")(t):(a+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||DL(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(t):(e.enter("tableDelimiterRow"),o=!1,RL(t)?UL(e,f,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?p(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):b(t)}function h(t){return RL(t)?UL(e,p,"whitespace")(t):p(t)}function p(t){return 58===t?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||OL(t)?y(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):b(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))}function v(t){return RL(t)?UL(e,y,"whitespace")(t):y(t)}function y(r){return 124===r?f(r):(null===r||OL(r))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(r)):b(r)}function b(e){return r(e)}function w(t){return e.enter("tableRow"),x(t)}function x(r){return 124===r?(e.enter("tableCellDivider"),e.consume(r),e.exit("tableCellDivider"),x):null===r||OL(r)?(e.exit("tableRow"),t(r)):RL(r)?UL(e,x,"whitespace")(r):(e.enter("data"),S(r))}function S(t){return null===t||124===t||DL(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?k:S)}function k(t){return 92===t||124===t?(e.consume(t),S):S(t)}}function coe(e,t){let r,n,o,i=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const f=new aoe;for(;++i<e.length;){const h=e[i],p=h[1];"enter"===h[0]?"tableHead"===p.type?(u=!1,0!==d&&(doe(f,t,d,r,n),n=void 0,d=0),r={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},f.add(i,0,[["enter",r,t]])):"tableRow"===p.type||"tableDelimiterRow"===p.type?(a=!0,o=void 0,l=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,n={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},f.add(i,0,[["enter",n,t]])),s="tableDelimiterRow"===p.type?2:n?3:1):!s||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type?"tableCellDivider"===p.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],o=uoe(f,t,l,s,void 0,o)),l=c,c=[l[1],i,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],o=uoe(f,t,l,s,void 0,o),l=[0,0,0,0]),c[2]=i)):"tableHead"===p.type?(u=!0,d=i):"tableRow"===p.type||"tableDelimiterRow"===p.type?(d=i,0!==l[1]?(c[0]=c[1],o=uoe(f,t,l,s,i,o)):0!==c[1]&&(o=uoe(f,t,c,s,i,o)),s=0):!s||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type||(c[3]=i)}for(0!==d&&doe(f,t,d,r,n),f.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=soe(t.events,i))}return e}function uoe(e,t,r,n,o,i){const a=1===n?"tableHeader":2===n?"tableDelimiter":"tableData";0!==r[0]&&(i.end=Object.assign({},foe(t.events,r[0])),e.add(r[0],0,[["exit",i,t]]));const s=foe(t.events,r[1]);if(i={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(r[1],0,[["enter",i,t]]),0!==r[2]){const o=foe(t.events,r[2]),i=foe(t.events,r[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(r[2],0,[["enter",a,t]]),2!==n){const n=t.events[r[2]],o=t.events[r[3]];if(n[1].end=Object.assign({},o[1].end),n[1].type="chunkText",n[1].contentType="text",r[3]>r[2]+1){const t=r[2]+1,n=r[3]-r[2]-1;e.add(t,n,[])}}e.add(r[3]+1,0,[["exit",a,t]])}return void 0!==o&&(i.end=Object.assign({},foe(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function doe(e,t,r,n,o){const i=[],a=foe(t.events,r);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),n.end=Object.assign({},a),i.push(["exit",n,t]),e.add(r+1,0,i)}function foe(e,t){const r=e[t],n="enter"===r[0]?"start":"end";return r[1][n]}const hoe=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,poe=new RegExp("^"+hoe.source,"i");function moe(e,t){let r=this.sliceSerialize(e);this.options.allowDangerousHtml&&(r=r.replace(t,"&lt;$1$2")),this.raw(this.encode(r))}const goe={name:"tasklistCheck",tokenize:function(e,t,r){const n=this;return function(t){if(null!==n.previous||!n._gfmTasklistFirstContentOfListItem)return r(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return DL(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):r(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):r(t)}function a(n){return OL(n)?t(n):RL(n)?e.check({tokenize:voe},t,r)(n):r(n)}}};function voe(e,t,r){return UL(e,function(e){return null===e?r(e):t(e)},"whitespace")}const yoe="​";function*boe(e){const{length:t}=e;for(let r=0;r<t;r++)yield e.item(r)}function woe(e,t,r){r?e.setAttribute(t,"function"==typeof r?r(e.getAttribute(t)??void 0):r):!1===r&&e.removeAttribute(t)}const xoe="language-";const Soe=92,koe=36,Eoe=(e,t)=>function(r,n,o){const i=this,a=e===koe?[koe]:[91,40],s=e===koe?[koe]:[93,41];let l,c;const u={tokenize:function(t,r,n){return function(r){if(r!==e)return n(r);return t.consume(r),o};function o(e){return null!==e&&s.includes(e)?(t.consume(e),r):n(e)}}};return function(t){if(t!==e)return o(t);return r.enter("math"),r.enter("mathFence"),r.consume(t),d};function d(n){return null!==n&&a.includes(n)?(l=40!==n,c=91===n||40!==n&&!t,r.consume(n),r.exit("mathFence"),r.enter("mathContent"),r.enter("mathChunk"),e===koe?r.check(u,o,f):f):o(n)}function f(n){return null===n?o(n):OL(n)?t&&!l?o(n):(c||=e===koe,function(e){return r.consume(e),r.exit("mathChunk"),r.enter("mathChunk"),f}(n)):n===e?r.check(u,p,h)(n):n===Soe?(r.consume(n),g):h(n)}function h(e){return r.consume(e),f}function p(t){return t!==e?o(t):(r.exit("mathChunk"),r.exit("mathContent"),r.enter("mathFence"),r.consume(t),m)}function m(a){if(null===a||!s.includes(a))return o(a);r.consume(a),r.exit("mathFence"),r.exit("math");const l=i.events.at(-1);if(l&&Array.isArray(l)){const[,e]=l;Object.assign(e,{isInline:t,isDisplay:c})}return e===koe||t?n:v}function g(e){return e!==koe&&e!==Soe?f(e):(r.consume(e),f)}function v(e){return DL(e)||null===e?n(e):o(e)}};function Toe(){const e=(...e)=>({name:"math",tokenize:Eoe(...e)});return{text:{[Soe]:e(Soe,!0),[koe]:e(koe,!0)},flow:{[Soe]:e(Soe,!1),[koe]:e(koe,!1)}}}function _oe(e={}){return{exit:{mathContent(e){this.setData("content",this.sliceSerialize(e))},math(t){const{isInline:r,isDisplay:n}=t,o=this.getData("content"),i=n&&!r?{tag:e.renderMath?"figure":"pre",type:"block"}:{tag:"span",type:n?"block":"inline"},a=(e,t=i.type,r=i.tag)=>{this.tag(`<${r} data-math-type="${t}" tabindex="0">`),this.raw(e),this.tag(`</${r}>`)};try{a(e.renderMath?.(o,n)??o)}catch(s){console.warn("Math rendering error:",s),a(o,"error",n?"pre":"code")}}}}}const Coe=["data","http","https","ftp","mailto","sip","tel"];function Aoe(e,{markdownRespectCRLF:t,markdownRenderHTML:r},{codeBlockCopyButtonTagName:n,externalLinkAlt:o,isWelcomeMessage:i=!1,dataBiTagDecorator:a,isStreaming:s}){const l=Array.from(function*(e){const t=/^\s*\[([^\]]+)\]:\s*<?([^>\s]+)>?(?:\s+['"(]((?:[^'")\\]|\\.)*)['")])??\s*$/gm;let r,n=!1;for(;null!==(r=t.exec(e));){n=!0;const[,e,t,o]=r;e&&e.trim()&&t&&(yield{identifier:e.toUpperCase(),label:e,url:t,title:void 0!==o?o:void 0})}if(!n){const t=/\[([^\]]+)\]\((\S+?)(?:\s+"([^"]*)")?\)/g;let n=!1;for(;null!==(r=t.exec(e));){n=!0;const[,e,t,o]=r;e&&e.trim()&&t&&(yield{identifier:e.toUpperCase(),label:e,url:t,title:o||t})}if(!n){const t=/https?:\/\/[^\s<>"{}|\\^`[\]]+/g;for(;null!==(r=t.exec(e));){const e=r[0];e&&(yield{identifier:e.toUpperCase(),label:e,url:e,title:e})}}}}(e));let c=0;const u=function(e){const t=(new DOMParser).parseFromString(e,"text/html"),r=t.createDocumentFragment();return r.append(...t.body.childNodes),r}(nV(e=(e=>e.replace(/\n\r|\r\n/g,e=>"\n\r"===e?"\r\n":"\n\r"))(e),{allowDangerousHtml:r??!1,allowDangerousProtocol:!0,extensions:[yL([{text:Rne},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Xne,continuation:{tokenize:Jne},exit:Qne}},text:{91:{name:"gfmFootnoteCall",tokenize:Kne},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Gne,resolveTo:Yne}}},noe(),{flow:{null:{name:"table",tokenize:loe,resolveAll:coe}}},{text:{91:goe}}]),Toe()],htmlExtensions:[xL([{exit:{literalAutolinkEmail:Hne,literalAutolinkHttp:Une,literalAutolinkWww:qne}},roe(),{enter:{strikethrough(){this.tag("<del>")}},exit:{strikethrough(){this.tag("</del>")}}},{enter:{table(e){const t=e._align;this.lineEndingIfNeeded(),this.tag("<table>"),this.setData("tableAlign",t)},tableBody(){this.tag("<tbody>")},tableData(){const e=this.getData("tableAlign"),t=this.getData("tableColumn"),r=ooe[e[t]];void 0===r?this.buffer():(this.lineEndingIfNeeded(),this.tag("<td"+r+">"))},tableHead(){this.lineEndingIfNeeded(),this.tag("<thead>")},tableHeader(){const e=this.getData("tableAlign"),t=this.getData("tableColumn"),r=ooe[e[t]];this.lineEndingIfNeeded(),this.tag("<th"+r+">")},tableRow(){this.setData("tableColumn",0),this.lineEndingIfNeeded(),this.tag("<tr>")}},exit:{codeTextData(e){let t=this.sliceSerialize(e);this.getData("tableAlign")&&(t=t.replace(/\\([\\|])/g,ioe)),this.raw(this.encode(t))},table(){this.setData("tableAlign"),this.setData("slurpAllLineEndings"),this.lineEndingIfNeeded(),this.tag("</table>")},tableBody(){this.lineEndingIfNeeded(),this.tag("</tbody>")},tableData(){const e=this.getData("tableAlign"),t=this.getData("tableColumn");t in e?(this.tag("</td>"),this.setData("tableColumn",t+1)):this.resume()},tableHead(){this.lineEndingIfNeeded(),this.tag("</thead>")},tableHeader(){const e=this.getData("tableColumn");this.tag("</th>"),this.setData("tableColumn",e+1)},tableRow(){const e=this.getData("tableAlign");let t=this.getData("tableColumn");for(;t<e.length;)this.lineEndingIfNeeded(),this.tag("<td"+ooe[e[t]]+"></td>"),t++;this.setData("tableColumn",t),this.lineEndingIfNeeded(),this.tag("</tr>")}}},{exit:{htmlFlowData(e){moe.call(this,e,hoe)},htmlTextData(e){moe.call(this,e,poe)}}},{enter:{taskListCheck(){this.tag('<input type="checkbox" disabled="" ')}},exit:{taskListCheck(){this.tag("/>")},taskListCheckValueChecked(){this.tag('checked="" ')}}}]),_oe({renderMath:(e,t)=>_ne(e,{displayMode:t,output:"mathml"})})]}));return function(e,t){for(const r of[...boe(e.querySelectorAll("a"))]){const e=t(r.getAttribute("href")??"",r.textContent??"");if(!e)continue;const{ariaLabel:n,asButton:o,className:i,dataBiCn:a,dataBiEcn:s,dataBiCt:l,dataBiCompnm:c,dataBiHn:u,dataBiEhn:d,dataBiAn:f,dataBiView:h,dataBiBhvr:p,dataBiId:m,iconAlt:g,iconClassName:v,rel:y,target:b,title:w,wrapZeroWidthSpace:x}=e;if(void 0!==n&&woe(r,"aria-label",n),void 0!==i&&woe(r,"class",i),void 0!==a&&woe(r,"data-bi-cn",a),void 0!==s&&woe(r,"data-bi-ecn",s),void 0!==l&&woe(r,"data-bi-ct",l),void 0!==c&&woe(r,"data-bi-compnm",c),void 0!==u&&woe(r,"data-bi-hn",u),void 0!==d&&woe(r,"data-bi-ehn",d),void 0!==f&&woe(r,"data-bi-an",f),void 0!==h&&woe(r,"data-bi-view",h),void 0!==p&&woe(r,"data-bi-bhvr",p),void 0!==m&&woe(r,"data-bi-id",m),void 0!==w&&woe(r,"title",w),v){const e=document.createElement("img");e.setAttribute("src","data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"),e.setAttribute("alt",""),e.classList.add(v),g&&e.setAttribute("title",g),r.insertAdjacentElement("beforeend",e)}if(o){const e=document.createElement("button");r.hasAttribute("aria-label")&&e.setAttribute("aria-label",r.getAttribute("aria-label")??""),r.hasAttribute("class")&&e.setAttribute("class",r.getAttribute("class")??""),r.hasAttribute("data-bi-cn")&&e.setAttribute("data-bi-cn",r.getAttribute("data-bi-cn")??""),r.hasAttribute("data-bi-ecn")&&e.setAttribute("data-bi-ecn",r.getAttribute("data-bi-ecn")??""),r.hasAttribute("data-bi-ct")&&e.setAttribute("data-bi-ct",r.getAttribute("data-bi-ct")??""),r.hasAttribute("data-bi-compnm")&&e.setAttribute("data-bi-compnm",r.getAttribute("data-bi-compnm")??""),r.hasAttribute("data-bi-hn")&&e.setAttribute("data-bi-hn",r.getAttribute("data-bi-hn")??""),r.hasAttribute("data-bi-ehn")&&e.setAttribute("data-bi-ehn",r.getAttribute("data-bi-ehn")??""),r.hasAttribute("data-bi-an")&&e.setAttribute("data-bi-an",r.getAttribute("data-bi-an")??""),r.hasAttribute("data-bi-view")&&e.setAttribute("data-bi-view",r.getAttribute("data-bi-view")??""),r.hasAttribute("data-bi-bhvr")&&e.setAttribute("data-bi-bhvr",r.getAttribute("data-bi-bhvr")??""),r.hasAttribute("data-bi-id")&&e.setAttribute("data-bi-id",r.getAttribute("data-bi-id")??""),r.hasAttribute("title")&&e.setAttribute("title",r.getAttribute("title")??""),e.setAttribute("type","button"),e.setAttribute("value",r.getAttribute("href")??""),e.textContent=r.textContent,e.append(...r.children),r.replaceWith(e),x&&(e.insertAdjacentText("beforebegin",yoe),e.insertAdjacentText("afterend",yoe))}else void 0!==y&&woe(r,"rel",y),void 0!==b&&woe(r,"target",b),x&&(r.insertAdjacentText("beforebegin",yoe),r.insertAdjacentText("afterend",yoe))}}(u,(t,r)=>{const n={rel:"noopener noreferrer",target:"_blank",wrapZeroWidthSpace:!0},s=[r],u=new Set,d=l.find(({url:e})=>e===t),f=w8(()=>new URL(t).protocol);d&&s.push(d.title||w8(()=>new URL(d.url).host)||d.url);let h=r===b8.CONTENT_TYPES.PRIVACY_LINK_TEXT;if("javascript:"!==f)if("string"==typeof f&&Coe.map(e=>`${e}:`).includes(f)){if("http:"===f||"https:"===f){c++;const l=/^\d+$/.test(r.trim()),u=i?b8.DECORATOR_TYPES.WELCOME:a,f=C8(u,h),{dataBiCn:p,dataBiEcn:m}=f.contentGenerator(d??{},r,c,h);n.dataBiCn=p,n.dataBiEcn=m,n.dataBiCt=f.decoration.dataBiCt,n.dataBiBhvr=f.decoration.dataBiBhvr,n.dataBiCompnm=f.decoration.dataBiCompnm,n.dataBiView=f.decoration.dataBiView,n.dataBiHn=f.decoration.dataBiHn,n.dataBiEhn=f.decoration.dataBiEhn,n.dataBiAn=f.decoration.dataBiAn;(u===b8.DECORATOR_TYPES.FOOTNOTE||void 0===u)&&(n.dataBiId=l?b8.IDS.AI_CHAT_FOOTNOTE_NUM:b8.IDS.AI_CHAT_FOOTNOTE_LINK),n.dataBiHn=S8(),n.dataBiEhn=b8.HEADER_NAMES.ASK_MICROSOFT,t===b8.COPILOT_REF_URL&&e.includes(b8.HEADER_NAMES.COPILOT_REF)&&(n.dataBiBhvr=b8.BEHAVIORS.COPILOT_REF,n.dataBiId=b8.IDS.AI_CHAT_COPILOT_REF,n.dataBiHn=b8.HEADER_NAMES.COPILOT_REF,n.dataBiEhn=b8.HEADER_NAMES.COPILOT_REF),n.iconAlt=o,n.iconClassName="uca__render-markdown__external-link-icon",s.push(o)}}else n.asButton=!0,u.add("uca__render-markdown__citation");return s.length>1&&(n.ariaLabel=e=>e||s.join(" ")),n.className=Array.from(u).join(" "),n.title=!1,n}),function(e,t,r){for(const n of[...e.querySelectorAll("pre")]){if(1!==n.children.length)continue;const[e]=n.children;if(!(e instanceof HTMLElement)||"CODE"!==e.tagName)continue;const o=[...e.classList.values()].find(e=>e.startsWith(xoe))?.substring(9),i=document.createElement(t);o&&i.setAttribute("language",o),r?.streaming&&i.setAttribute("streaming",""),i.append(e),n.replaceWith(i)}}(u,n,{streaming:s}),d=u,(new XMLSerializer).serializeToString(d).trim();var d}const Ioe=sS("VOICE/MODE_REQUESTED"),Poe=sS("VOICE/STOP_MODE");var Noe,Boe="",Ooe="version",Doe="properties",Roe="initialize",Moe="timings",zoe="pollInternalLogs",joe="value",Loe="length",Foe="processTelemetryStart",Voe="1DS-Web-JS-4.3.9",qoe=Q$.hasOwnProperty,Hoe=((Noe={})[0]=0,Noe[2]=6,Noe[1]=1,Noe[3]=7,Noe[4098]=6,Noe[4097]=1,Noe[4099]=7,Noe),Uoe=GU(),Woe=KU();function $oe(e){return!(e===Boe||sH(e))}function Goe(e,t,r){if(!t&&!$oe(t)||"string"!=typeof e)return null;var n=typeof t;if("string"===n||"number"===n||"boolean"===n||pH(t))t={value:t};else if("object"!==n||qoe.call(t,"value")){if(sH(t[joe])||t[joe]===Boe||!dH(t[joe])&&!gH(t[joe])&&!vH(t[joe])&&!pH(t[joe]))return null}else t={value:r?JSON.stringify(t):t};if(pH(t[joe])&&!(t[joe][Loe]>0))return null;if(!sH(t.kind)){if(pH(t[joe])||!function(e){if(0===e||e>0&&e<=13||32===e)return!0;return!1}(t.kind))return null;t[joe]=t[joe].toString()}return t}function Yoe(e,t,r){var n=-1;if(!iH(e))if(t>0&&(32===t?n=8192:t<=13&&(n=t<<5)),function(e){if(e>=0&&e<=9)return!0;return!1}(r))-1===n&&(n=0),n|=r;else{var o=Hoe[eie(e)]||-1;-1!==n&&-1!==o?n|=o:6===o&&(n=o)}return n}function Koe(e,t,r){var n;return void 0===r&&(r=!0),e&&(n=e.get(t),r&&n&&decodeURIComponent&&(n=decodeURIComponent(n))),n||Boe}function Xoe(e){void 0===e&&(e="D");var t=VJ();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,Boe)),t}function Joe(e,t,r,n,o){var i={},a=!1,s=0,l=arguments[Loe],c=arguments;for(vH(c[0])&&(a=c[0],s++);s<l;s++){RH(c[s],function(e,t){a&&t&&hH(t)?pH(t)?(i[e]=i[e]||[],MH(t,function(t,r){i[e][r]=t&&hH(t)?Joe(!0,i[e][r],t):t})):i[e]=Joe(!0,i[e],t):i[e]=t})}return i}var Qoe=function(){var e=r$();return e&&e.now?e.now():_U()};function Zoe(e,t){var r=e;r[Moe]=r[Moe]||{},r[Moe][Foe]=r[Moe][Foe]||{},r[Moe][Foe][t]=Qoe()}function eie(e){var t=0;if(null!=e){var r=typeof e;"string"===r?t=1:"number"===r?t=2:"boolean"===r?t=3:r===Y$&&(t=4,pH(e)?(t=4096,e[Loe]>0&&(t|=eie(e[0]))):qoe.call(e,"value")&&(t=8192|eie(e[joe])))}return t}function tie(e){return e>0}var rie=aU({endpointUrl:"https://browser.events.data.microsoft.com/OneCollector/1.0/",propertyStorageOverride:{isVal:function(e){!e||e.getProperty&&e.setProperty||_H("Invalid property storage override passed.");return!0}}});var nie=function(e){function t(){var r=e.call(this)||this;return $$(t,r,function(e,t){e[Roe]=function(r,n,o,i){FJ(e,function(){return"AppInsightsCore.initialize"},function(){try{t[Roe](CX(r,rie,o||e.logger,!1).cfg,n,o,i)}catch(Wqe){var a=e.logger,s=TH(Wqe);-1!==s.indexOf("channels")&&(s+="\n - Channels must be provided through config.channels only!"),rJ(a,1,514,"SDK Initialization Failed - no telemetry will be sent: "+s)}},function(){return{config:r,extensions:n,logger:o,notificationManager:i}})},e.track=function(r){FJ(e,function(){return"AppInsightsCore.track"},function(){var n,o=r;if(o){o[Moe]=o[Moe]||{},o[Moe].trackStart=Qoe(),(n=o.latency)&&gH(n)&&n>=1&&n<=4||(o.latency=1);var i=o.ext=o.ext||{};i.sdk=i.sdk||{},i.sdk.ver=Voe;var a=o.baseData=o.baseData||{};a[Doe]=a[Doe]||{};var s=a[Doe];s[Ooe]=s[Ooe]||e.pluginVersionString||Boe}t.track(o)},function(){return{item:r}},!r.sync)},e[zoe]=function(e){return t[zoe](e||"InternalLog")}}),r}return rG(t,e),t.__ieDyn=1,t}(CQ),oie="REAL_TIME",iie="",aie="drop",sie="send",lie="requeue",cie="rspFail",uie="no-cache, no-store",die="application/x-json-stream",fie="cache-control",hie="content-type",pie="kill-tokens",mie="kill-duration",gie="time-delta-millis",vie="client-version",yie="client-id",bie="time-delta-to-apply-millis",wie="upload-time",xie="apikey",Sie="AuthMsaDeviceTicket",kie="WebAuthToken",Eie="AuthXToken",Tie="msfpc",_ie="trace",Cie="user",Aie="allowRequestSending",Iie="shouldAddClockSkewHeaders",Pie="getClockSkewHeaderValue",Nie="setClockSkew",Bie="length",Oie="concat",Die="iKey",Rie="count",Mie="events",zie="push",jie="split",Lie="toLowerCase",Fie="hdrs",Vie="useHdrs",qie="initialize",Hie="setTimeoutOverride",Uie="clearTimeoutOverride",Wie="overrideEndpointUrl",$ie="avoidOptions",Gie="enableCompoundKey",Yie="disableXhrSync",Kie="disableFetchKeepAlive",Xie="useSendBeacon",Jie="fetchCredentials",Qie="alwaysUseXhrOverride",Zie="serializeOfflineEvt",eae="getOfflineRequestDetails",tae="createPayload",rae="createOneDSPayload",nae="payloadBlob",oae="headers",iae="_thePayload",aae="batches",sae="sendType",lae="canSendRequest",cae="sendQueuedRequests",uae="setUnloading",dae="sendSynchronousBatch",fae="_transport",hae="getWParam",pae="isBeacon",mae="timings",gae="isTeardown",vae="_sendReason",yae="setKillSwitchTenants",bae="_backOffTransmission",wae="identifier",xae="autoFlushEventsLimit",Sae="sendAttempt",kae="latency",Eae="sync";function Tae(e){var t=(e.ext||{}).intweb;return t&&$oe(t[Tie])?t[Tie]:null}function _ae(e){for(var t=null,r=0;null===t&&r<e[Bie];r++)t=Tae(e[r]);return t}var Cae=function(){function e(t,r){var n=r?[][Oie](r):[],o=this,i=_ae(n);o[Die]=function(){return t},o.Msfpc=function(){return i||iie},o[Rie]=function(){return n[Bie]},o[Mie]=function(){return n},o.addEvent=function(e){return!!e&&(n[zie](e),i||(i=Tae(e)),!0)},o[jie]=function(r,o){var a;if(r<n[Bie]){var s=n[Bie]-r;sH(o)||(s=o<s?o:s),a=n.splice(r,s),i=_ae(n)}return new e(t,a)}}return e.create=function(t,r){return new e(t,r)},e}(),Aae=function(){function e(){var t=!0,r=!0,n=!0,o="use-collector-delta",i=!1;$$(e,this,function(e){e[Aie]=function(){return t},e.firstRequestSent=function(){n&&(n=!1,i||(t=!1))},e[Iie]=function(){return r},e[Pie]=function(){return o},e[Nie]=function(e){i||(e?(o=e,r=!0,i=!0):r=!1,t=!0)}})}return e.__ieDyn=1,e}(),Iae=function(){function e(){var t={};$$(e,this,function(e){e[yae]=function(e,r){if(e&&r)try{var n=(a=e[jie](","),s=[],a&&MH(a,function(e){s[zie](zW(e))}),s);if("this-request-only"===r)return n;for(var o=1e3*parseInt(r,10),i=0;i<n[Bie];++i)t[n[i]]=_U()+o}catch(l){return[]}var a,s;return[]},e.isTenantKilled=function(e){var r=t,n=zW(e);return void 0!==r[n]&&r[n]>_U()||(delete r[n],!1)}})}return e.__ieDyn=1,e}();function Pae(e){var t,r=kW(1200*Math.random())+2400;return t=Math.pow(2,e)*r,gU(t,6e5)}var Nae,Bae=2e6,Oae=gU(Bae,65e3),Dae="metadata",Rae="f",Mae=/\./,zae=function(){function e(t,r,n,o,i,a,s){var l="data",c="baseData",u=!!o,d=!0,f=r,h={},p=!!a,m=i||Yoe,g=function(e){var t={};if(e&&e.requestLimit)return e.requestLimit;return t}(s),v=jae(g.requestLimit,3145728,0),y=jae(g.requestLimit,65e3,1),b=jae(g.recordLimit,Bae,0),w=Math.min(jae(g.recordLimit,Oae,1),y);$$(e,this,function(e){function r(e,t,o,i,a,s,l){RH(e,function(e,l){var c=null;if(l||$oe(l)){var d=o,p=e,m=a,g=t;if(u&&!i&&Mae.test(e)){var v=e.split("."),y=v.length;if(y>1){m&&(m=m.slice());for(var b=0;b<y-1;b++){var w=v[b];g=g[w]=g[w]||{},d+="."+w,m&&m.push(w)}p=v[y-1]}}var x=i&&function(e){var t=h[e];return void 0===t&&(e.length>=7&&(t=s$(e,"ext.metadata")||s$(e,"ext.web")),h[e]=t),t}(d);if(c=!x&&f&&f.handleField(d,p)?f.value(d,p,l,n):Goe(p,l,n)){var S=c.value;if(g[p]=S,s&&s(m,p,c),"object"==typeof S&&!pH(S)){var k=m;k&&(k=k.slice()).push(p),r(l,S,d+"."+p,i,k,s)}}}})}e.createPayload=function(e,t,r,n,o,i){return{apiKeys:[],payloadBlob:iie,overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:e,isTeardown:t,isSync:r,isBeacon:n,sendType:i,sendReason:o}},e.appendPayload=function(r,n,o){var i=r&&n&&!r.overflow;return i&&FJ(t,function(){return"Serializer:appendPayload"},function(){for(var t=n.events(),i=r.payloadBlob,a=r.numEvents,s=!1,l=[],c=[],u=r.isBeacon,d=u?y:v,f=u?w:b,h=0,p=0;h<t.length;){var m=t[h];if(m){if(a>=o){r.overflow=n.split(h);break}var g=e.getEventBlob(m);if(g&&g.length<=f){var x=g.length;if(i.length+x>d){r.overflow=n.split(h);break}i&&(i+="\n"),i+=g,++p>20&&(wU(i,0,1),p=0),s=!0,a++}else g?l.push(m):c.push(m),t.splice(h,1),h--}h++}if(l.length>0&&r.sizeExceed.push(Cae.create(n.iKey(),l)),c.length>0&&r.failedEvts.push(Cae.create(n.iKey(),c)),s){r.batches.push(n),r.payloadBlob=i,r.numEvents=a;var S=n.iKey();-1===vW(r.apiKeys,S)&&r.apiKeys.push(S)}},function(){return{payload:r,theBatch:{iKey:n.iKey(),evts:n.events()},max:o}}),i},e.getEventBlob=function(e){try{return FJ(t,function(){return"Serializer.getEventBlob"},function(){var t={};t.name=e.name,t.time=e.time,t.ver=e.ver,t.iKey="o:"+function(e){if(e){var t=o$(e,"-");if(t>-1)return SU(e,t)}return Boe}(e.iKey);var n,o={};p||(n=function(e,t,r){!function(e,t,r,n,o){if(o&&t){var i=e(o.value,o.kind,o.propertyType);if(i>-1){var a=t[Dae];a||(a=t[Dae]={f:{}});var s=a[Rae];if(s||(s=a[Rae]={}),r)for(var l=0;l<r.length;l++){var c=r[l];s[c]||(s[c]={f:{}});var u=s[c][Rae];u||(u=s[c][Rae]={}),s=u}s=s[n]={},pH(o.value)?s.a={t:i}:s.t=i}}}(m,o,e,t,r)});var i=e.ext;i&&(t.ext=o,RH(i,function(e,t){r(t,o[e]={},"ext."+e,!0,null,null,!0)}));var a=t[l]={};a.baseType=e.baseType;var s=a[c]={};return r(e.baseData,s,c,!1,[c],n,d),r(e.data,a,l,!1,[],n,d),JSON.stringify(t)},function(){return{item:e}})}catch(Wqe){return null}}})}return e.__ieDyn=1,e}();function jae(e,t,r){if(pH(e)){var n=e[r];if(n>0&&n<=t)return n}return t}function Lae(e,t){return{set:function(r,n){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];return function(e,t,r){return p$(!0,e,Wq[Dq](arguments,1))}([e,t],r,n,o)}}}var Fae="sendAttempt",Vae="?cors=true&"+hie[Lie]()+"="+die,qae=((Nae={})[1]=lie,Nae[100]=lie,Nae[200]="sent",Nae[8004]=aie,Nae[8003]=aie,Nae),Hae={},Uae={};function Wae(e,t,r){Hae[e]=t,!1!==r&&(Uae[t]=e)}function $ae(e,t){var r=!1;if(e&&t){var n=oU(e);if(n&&n[Bie]>0)for(var o=t[Lie](),i=0;i<n[Bie];i++){var a=n[i];if(a&&PH(t,a)&&a[Lie]()===o){r=!0;break}}}return r}function Gae(e,t,r,n){t&&r&&r[Bie]>0&&(n&&Hae[t]?(e[Fie][Hae[t]]=r,e[Vie]=!0):e.url+="&"+t+"="+r)}Wae(Sie,Sie,!1),Wae(vie,vie),Wae(yie,"Client-Id"),Wae(xie,xie),Wae(bie,bie),Wae(wie,wie),Wae(Eie,Eie);var Yae=function(){function e(t,r,n,o){var i,a,s,l,c,u,d,f,h,p,m,g,v,y,b,w,x,S,k,E,T,_,C,A,I,P,N,B,O,D,R,M,z,j=!1,L=t;$$(e,this,function(e){var F;i=null,a=new Iae,s=!1,l=new Aae,j=!1,c=0,u=null,d=null,f=null,h=null,p=!0,m=[],g={},v=[],y=null,b=!1,w=null,x=!1,S=!1,k=F,T=F,_=F,C=F,A=F,I=[],P=F,N=F,B=[],O=!1,D=Lae(),R=!1,M=null,L=null;function V(e,t){try{return M&&M.getSenderInst(e,t)}catch(Wqe){}return null}function q(){try{return{enableSendPromise:!1,isOneDs:!0,disableCredentials:!1,fetchCredentials:z,disableXhr:!1,disableBeacon:!j,disableBeaconSync:!j,disableFetchKeepAlive:_,timeWrapper:D,addNoResponse:A,senderOnCompleteCallBack:{xdrOnComplete:H,fetchOnComplete:U,xhrOnComplete:W,beaconOnRetry:G}}}catch(Wqe){}return null}function H(e,t,r){var n=yK(e);$(t,200,{},n),ie(n)}function U(e,t,r,n){var o,i,a={},s=e[oae];s&&s.forEach(function(e,t){a[t]=e}),o=e.status,$(t,o,a,i=r||iie),ie(i)}function W(e,t,r){var n=yK(e);$(t,e.status,EK(e,!0),n),ie(n)}function $(e,t,r,n){try{e(t,r,n)}catch(Wqe){rJ(d,2,518,TH(Wqe))}}function G(e,t,r){var n=200,o=e[iae],i=e.urlString+(A?"&NoResponseBody=true":iie);try{var a=QU();if(o){var s=!!h.getPlugin("LocalStorage"),l=[],c=[];MH(o[aae],function(e){if(l&&e&&e[Rie]()>0)for(var t=e[Mie](),r=0;r<t[Bie];r++){if(!a.sendBeacon(i,y.getEventBlob(t[r]))){l[zie](e[jie](r));break}c[zie](e[r])}else l[zie](e[jie](0))}),c[Bie]>0&&(o.sentEvts=c),s||ae(l,8003,o[sae],!0)}else n=0}catch(u){nJ(d,"Failed to send telemetry using sendBeacon API. Ex:"+TH(u)),n=0}finally{$(t,n,{},iie)}}function Y(e){return 2===e||3===e}function K(e){return x&&Y(e)&&(e=2),e}function X(){return!s&&c<r}function J(){var e=v;return v=[],e}function Q(e,t,r){var n=!1;return e&&e[Bie]>0&&!s&&f[t]&&y&&(n=0!==t||X()&&(r>0||l[Aie]())),n}function Z(e){var t={};return e&&MH(e,function(e,r){t[r]={iKey:e[Die](),evts:e[Mie]()}}),t}function ee(e,t,r,n,o){if(e&&0!==e[Bie])if(s)ae(e,1,n);else{n=K(n);try{var i=e,l=0!==n;FJ(h,function(){return"HttpManager:_sendBatches"},function(i){i&&(e=e.slice(0));for(var s=[],c=null,u=Qoe(),d=f[n]||(l?f[1]:f[0]),h=d&&d[fae],p=C&&(x||Y(n)||3===h||d._isSync&&2===h);Q(e,n,t);){var m=e.shift();m&&m[Rie]()>0&&(a.isTenantKilled(m[Die]())?s[zie](m):(c=c||y[tae](t,r,l,p,o,n),y.appendPayload(c,m,L)?null!==c.overflow&&(e=[c.overflow][Oie](e),c.overflow=null,ne(c,u,Qoe(),o),u=Qoe(),c=null):(ne(c,u,Qoe(),o),u=Qoe(),e=[m][Oie](e),c=null)))}c&&ne(c,u,Qoe(),o),e[Bie]>0&&(v=e[Oie](v)),ae(s,8004,n)},function(){return{batches:Z(i),retryCount:t,isTeardown:r,isSynchronous:l,sendReason:o,useSendBeacon:Y(n),sendType:n}},!l)}catch(c){rJ(d,2,48,"Unexpected Exception sending batch: "+TH(c))}}}function te(e,t){var r={url:i,hdrs:{},useHdrs:!1};t?(r[Fie]=Joe(r[Fie],g),r.useHdrs=oU(r.hdrs)[Bie]>0):RH(g,function(e,t){Uae[e]?Gae(r,Uae[e],t,!1):(r[Fie][e]=t,r[Vie]=!0)}),Gae(r,yie,"NO_AUTH",t),Gae(r,vie,Voe,t);var n=iie;MH(e.apiKeys,function(e){n[Bie]>0&&(n+=","),n+=e}),Gae(r,xie,n,t),Gae(r,wie,_U().toString(),t);var o=function(e){for(var t=0;t<e.batches[Bie];t++){var r=e[aae][t].Msfpc();if(r)return encodeURIComponent(r)}return iie}(e);if($oe(o)&&(r.url+="&ext.intweb.msfpc="+o),l[Iie]()&&Gae(r,bie,l[Pie](),t),h[hae]){var a=h[hae]();a>=0&&(r.url+="&w="+a)}for(var s=0;s<m[Bie];s++)r.url+="&"+m[s].name+"="+m[s].value;return r}function re(e,t,r){e[t]=e[t]||{},e[t][u.identifier]=r}function ne(t,r,o,i){if(t&&t.payloadBlob&&t.payloadBlob[Bie]>0){var s=!!P,m=f[t.sendType];!Y(t[sae])&&t[pae]&&2===t.sendReason&&(m=f[2]||f[3]||m);var g=S;(t.isBeacon||3===m[fae])&&(g=!1);var v=te(t,g);g=g||v[Vie];var y=Qoe();FJ(h,function(){return"HttpManager:_doPayloadSend"},function(){for(var f=0;f<t.batches[Bie];f++)for(var w=t[aae][f][Mie](),S=0;S<w[Bie];S++){var C=w[S];if(b){var A=C[mae]=C[mae]||{};re(A,"sendEventStart",y),re(A,"serializationStart",r),re(A,"serializationCompleted",o)}C[Fae]>0?C[Fae]++:C[Fae]=1}ae(t[aae],1e3+(i||0),t[sae],!0);var I={data:t[nae],urlString:v.url,headers:v[Fie],_thePayload:t,_sendReason:i,timeout:k,disableXhrSync:T,disableFetchKeepAlive:_};g&&($ae(I[oae],fie)||(I[oae][fie]=uie),$ae(I[oae],hie)||(I[oae][hie]=die));var B=null;m&&(B=function(r){l.firstRequestSent();var o=function(r,o){!function(t,r,o,i){var s=9e3,d=null,f=!1,h=!1;try{var p=!0;if(typeof t!==K$){if(r){l[Nie](r[gie]);var m=r[mie]||r["kill-duration-seconds"];MH(a[yae](r[pie],m),function(e){MH(o[aae],function(t){if(t[Die]()===e){d=d||[];var r=t[jie](0);o.numEvents-=r[Rie](),d[zie](r)}})})}if(200==t||204==t)return void(s=200);((v=t)>=300&&v<500&&429!=v||501==v||505==v||o.numEvents<=0)&&(p=!1),s=9e3+t%1e3}if(p){s=100;var g=o.retryCnt;0===o[sae]&&(g<n?(f=!0,oe(function(){0===o[sae]&&c--,ee(o[aae],g+1,o[gae],x?2:o[sae],5)},x,Pae(g))):(h=!0,x&&(s=8001)))}}finally{f||(l[Nie](),function(t,r,n,o){try{o&&u[bae]();var i=t[aae];200===r&&(i=t.sentEvts||t[aae],o||t.isSync||u._clearBackOff(),function(e){if(b){var t=Qoe();MH(e,function(e){e&&e[Rie]()>0&&function(e,t){b&&MH(e,function(e){re(e[mae]=e[mae]||{},"sendEventCompleted",t)})}(e[Mie](),t)})}}(i)),ae(i,r,t[sae],!0)}finally{0===t[sae]&&(c--,5!==n&&e.sendQueuedRequests(t[sae],n))}}(o,s,i,h)),ae(d,8004,o[sae])}var v}(r,o,t,i)},s=t[gae]||t.isSync;M.preparePayload(function(e){try{m.sendPOST(e,o,s),N&&N(I,e,s,t[pae])}catch(r){$(o,0,{}),nJ(d,"Unexpected exception sending payload. Ex:"+TH(r))}},E,r,s)}),FJ(h,function(){return"HttpManager:_doPayloadSend.sender"},function(){if(B)if(0===t[sae]&&c++,s&&!t.isBeacon&&3!==m[fae]){var e={data:I.data,urlString:I.urlString,headers:Joe({},I[oae]),timeout:I.timeout,disableXhrSync:I[Yie],disableFetchKeepAlive:I[Kie]},r=!1;FJ(h,function(){return"HttpManager:_doPayloadSend.sendHook"},function(){try{P(e,function(e){r=!0,p||e[iae]||(e[iae]=e[iae]||I[iae],e[vae]=e[vae]||I[vae]),B(e)},t.isSync||t[gae])}catch(n){r||B(I)}})}else B(I)})},function(){return{thePayload:t,serializationStart:r,serializationCompleted:o,sendReason:i}},t.isSync)}t.sizeExceed&&t.sizeExceed[Bie]>0&&ae(t.sizeExceed,8003,t[sae]),t.failedEvts&&t.failedEvts[Bie]>0&&ae(t.failedEvts,8002,t[sae])}function oe(e,t,r){t?e():D.set(e,r)}function ie(e){var t=B;try{for(var r=0;r<t[Bie];r++)try{t[r](e)}catch(Wqe){rJ(d,1,519,"Response handler failed: "+Wqe)}if(e){var n=JSON.parse(e);$oe(n.webResult)&&$oe(n.webResult[Tie])&&w.set("MSFPC",n.webResult[Tie],31536e3)}}catch(o){}}function ae(e,t,r,n){if(e&&e[Bie]>0&&o){var i=o[function(e){var t=qae[e];$oe(t)||(t="oth",e>=9e3&&e<=9999?t=cie:e>=8e3&&e<=8999?t=aie:e>=1e3&&e<=1999&&(t=sie));return t}(t)];if(i){var a=0!==r;FJ(h,function(){return"HttpManager:_sendBatchesNotification"},function(){oe(function(){try{i.call(o,e,t,a,r)}catch(Wqe){rJ(d,1,74,"send request notification failed: "+Wqe)}},n||a,0)},function(){return{batches:Z(e),reason:t,isSync:a,sendSync:n,sendType:r}},!a)}}}e[qie]=function(e,r,n){O||(h=r,w=r.getCookieMgr(),d=(u=n).diagLog(),gW(I,AX(e,function(e){var o,a=e.cfg,s=e.cfg.extensionConfig[n.identifier];D=Lae(s[Hie],s[Uie]),$oe(a.anonCookieName)?function(e,t,r){for(var n=0;n<e[Bie];n++)if(e[n].name===t)return void(e[n].value=r);e[zie]({name:t,value:r})}(m,"anoncknm",a.anonCookieName):function(e,t){for(var r=0;r<e[Bie];r++)if(e[r].name===t)return void e.splice(r,1)}(m,"anoncknm"),P=s.payloadPreprocessor,N=s.payloadListener;var l=s.httpXHROverride,c=s[Wie]?s[Wie]:a.endpointUrl;i=c+Vae,S=!!iH(s[$ie])||!s[$ie],b=!s.disableEventTimings;var u=s.maxEvtPerBatch;L=u&&u<=t?u:t;var g=s.valueSanitizer,v=s.stringifyObjects,w=!!a[Gie];iH(s[Gie])||(w=!!s[Gie]),k=s.xhrTimeout;var x=$U("CompressionStream");E=vK("zipPayload",a,!1),fH(x)&&!P||(E=!1),T=!!s[Yie],_=!!s[Kie],A=!1!==s.addNoResponse,R=!!s.excludeCsMetaData,r.getPlugin("LocalStorage")&&(_=!0),j=!zK(),y=new zae(h,g,v,w,Yoe,R,s),sH(s[Xie])||(j=!!s[Xie]),s[Jie]&&(z=s[Jie]);var I=q();M?M.SetConfig(I):(M=new BQ)[qie](I,d);var B=l,O=s[Qie]?l:null,F=s[Qie]?l:null,H=[3,2];if(!l){p=!1;var U=[];zK()?(U=[2,1],H=[2,1,3]):U=[1,2,3],(l=V(U=xK(U,s.transports),!1))||nJ(d,"No available transport to send events"),B=V(U,!0)}O||(O=V(H=xK(H,s.unloadTransports),!0)),C=!p&&(j&&FK()||!_&&VK(!0)),(o={})[0]=l,o[1]=B||V([1,2,3],!0),o[2]=O||B||V([1],!0),o[3]=F||V([2,3],!0)||B||V([1],!0),f=o})),O=!0)},e.addResponseHandler=function(e){return B[zie](e),{rm:function(){var t=B.indexOf(e);t>=0&&B.splice(t,1)}}},e[Zie]=function(e){try{if(y)return y.getEventBlob(e)}catch(Wqe){}return iie},e[eae]=function(){try{return te(y&&y[tae](0,!1,!1,!1,1,0),S)}catch(Wqe){}return null},e[rae]=function(e,t){try{var r=[];MH(e,function(e){t&&(e=mK(e));var n=Cae.create(e[Die],[e]);r[zie](n)});for(var n=null;r[Bie]>0&&y;){var o=r.shift();o&&o[Rie]()>0&&(n=n||y[tae](0,!1,!1,!1,1,0),y.appendPayload(n,o,L))}var i=te(n,S),a={data:n[nae],urlString:i.url,headers:i[Fie],timeout:k,disableXhrSync:T,disableFetchKeepAlive:_};return S&&($ae(a[oae],fie)||(a[oae][fie]=uie),$ae(a[oae],hie)||(a[oae][hie]=die)),a}catch(Wqe){}return null},e._getDbgPlgTargets=function(){return[f[0],a,y,f,q(),i,L]},e.addHeader=function(e,t){g[e]=t},e.removeHeader=function(e){delete g[e]},e[lae]=function(){return X()&&l[Aie]()},e[cae]=function(e,t){iH(e)&&(e=0),x&&(e=K(e),t=2),Q(v,e,0)&&ee(J(),0,!1,e,t||0)},e.isCompletelyIdle=function(){return!s&&0===c&&0===v[Bie]},e[uae]=function(e){x=e},e.addBatch=function(e){if(e&&e[Rie]()>0){if(a.isTenantKilled(e[Die]()))return!1;v[zie](e)}return!0},e.teardown=function(){v[Bie]>0&&ee(J(),0,!0,2,2),MH(I,function(e){e&&e.rm&&e.rm()}),I=[]},e.pause=function(){s=!0},e.resume=function(){s=!1,e[cae](0,4)},e[dae]=function(e,t,r){e&&e[Rie]()>0&&(sH(t)&&(t=1),x&&(t=K(t),r=2),ee([e],0,!1,t,r||0))}})}return e.__ieDyn=1,e}(),Kae=1e4,Xae="eventsDiscarded",Jae=void 0,Qae=aU({eventsLimitInMem:{isVal:tie,v:Kae},immediateEventLimit:{isVal:tie,v:500},autoFlushEventsLimit:{isVal:tie,v:0},disableAutoBatchFlushLimit:!1,httpXHROverride:{isVal:function(e){return e&&e.sendPOST},v:Jae},overrideInstrumentationKey:Jae,overrideEndpointUrl:Jae,disableTelemetry:!1,ignoreMc1Ms0CookieProcessing:!1,setTimeoutOverride:Jae,clearTimeoutOverride:Jae,payloadPreprocessor:Jae,payloadListener:Jae,disableEventTimings:Jae,valueSanitizer:Jae,stringifyObjects:Jae,enableCompoundKey:Jae,disableOptimizeObj:!1,fetchCredentials:Jae,transports:Jae,unloadTransports:Jae,useSendBeacon:Jae,disableFetchKeepAlive:Jae,avoidOptions:!1,xhrTimeout:Jae,disableXhrSync:Jae,alwaysUseXhrOverride:!1,maxEventRetryAttempts:{isVal:gH,v:6},maxUnloadEventRetryAttempts:{isVal:gH,v:2},addNoResponse:Jae,maxEvtPerBatch:{isVal:gH,v:500},excludeCsMetaData:Jae,requestLimit:{}});var Zae,ese=function(e){function t(){var r,n=e.call(this)||this;n.identifier="PostChannel",n.priority=1011,n.version="4.3.9";var o,i,a,s,l,c,u,d,f,h,p,m,g,v,y,b,w,x,S,k,E,T,_,C,A,I,P=!1,N=[],B=!1,O=0,D=0,R={},M=oie;return $$(t,n,function(e,t){function n(){var e,t;sZ(null,x),cZ(null,x),e=null,t=tZ(UQ,x),iZ([FQ],e,t),iZ([jQ],null,t)}function z(e){var t="";return e&&e[Bie]&&MH(e,function(e){t&&(t+="\n"),t+=e}),t}function j(e){var t="";try{V(e),t=d[Zie](e)}catch(Wqe){}return t}function L(e){"beforeunload"!==(e||XU().event).type&&(y=!0,d[uae](y)),K(2,2)}function F(e){y=!1,d[uae](y)}function V(e){e.ext&&e.ext[_ie]&&delete e.ext[_ie],e.ext&&e.ext[Cie]&&e.ext[Cie].id&&delete e.ext[Cie].id,v&&(e.ext=mK(e.ext),e.baseData&&(e.baseData=mK(e.baseData)),e.data&&(e.data=mK(e.data)))}function q(e,t){if(e[Sae]||(e[Sae]=0),e[kae]||(e[kae]=1),V(e),e[Eae])if(c||B)e[kae]=3,e[Eae]=!1;else if(d)return v&&(e=mK(e)),void d[dae](Cae.create(e[Die],[e]),!0===e[Eae]?1:e[Eae],3);var r=e[kae],n=D,o=a;4===r&&(n=O,o=i);var s=!1;if(n<o)s=!Q(e,t);else{var l=1,u=20;4===r&&(l=4,u=1),s=!0,function(e,t,r,n){for(;r<=t;){var o=X(e,t,!0);if(o&&o[Rie]()>0){var i=o[jie](0,n),a=i[Rie]();if(a>0)return 4===r?O-=a:D-=a,se(Xae,[i],sG.QueueFull),!0}r++}return Z(),!1}(e[Die],e[kae],l,u)&&(s=!Q(e,t))}s&&ae(Xae,[e],sG.QueueFull)}function H(e,t,r){var n=ee(e,t,r);return d[cae](t,r),n}function U(){return D>0}function W(){if(m>=0&&ee(m,0,g)&&d[cae](0,g),O>0&&!l&&!B){var e=R[M][2];e>=0&&(l=G(function(){l=null,H(4,0,1),W()},e))}var t=R[M][1];!s&&!o&&t>=0&&!B&&(U()?s=G(function(){s=null,H(0===u?3:1,0,1),u++,u%=2,W()},t):u=0)}function $(){r=null,P=!1,N=[],o=null,B=!1,O=0,i=500,D=0,a=Kae,R={},M=oie,s=null,l=null,c=0,u=0,f={},h=0,_=!1,p=0,m=-1,g=null,v=!0,y=!1,b=6,w=2,x=null,C=null,I=null,A=!1,S=Lae(),d=new Yae(500,2,1,{requeue:oe,send:le,sent:ce,drop:ue,rspFail:de,oth:fe}),ne(),f[4]={batches:[],iKeyMap:{}},f[3]={batches:[],iKeyMap:{}},f[2]={batches:[],iKeyMap:{}},f[1]={batches:[],iKeyMap:{}},he()}function G(e,t){0===t&&c&&(t=1);var r=1e3;return c&&(r=Pae(c-1)),S.set(e,t*r)}function Y(){return null!==s&&(s.cancel(),s=null,u=0,!0)}function K(e,t){Y(),o&&(o.cancel(),o=null),B||H(1,e,t)}function X(e,t,r){var n=f[t];n||(n=f[t=1]);var o=n.iKeyMap[e];return!o&&r&&(o=Cae.create(e),n.batches[zie](o),n.iKeyMap[e]=o),o}function J(t,r){d[lae]()&&!c&&(h>0&&D>h&&(r=!0),r&&null==o&&e.flush(t,function(){},20))}function Q(e,t){v&&(e=mK(e));var r=e[kae],n=X(e[Die],r,!0);return!!n.addEvent(e)&&(4!==r?(D++,t&&0===e[Sae]&&J(!e.sync,p>0&&n[Rie]()>=p)):O++,!0)}function Z(){for(var e=0,t=0,r=function(r){var n=f[r];n&&n[aae]&&MH(n[aae],function(n){4===r?e+=n[Rie]():t+=n[Rie]()})},n=1;n<=4;n++)r(n);D=t,O=e}function ee(t,r,n){var o=!1,i=0===r;return!i||d[lae]()?FJ(e.core,function(){return"PostChannel._queueBatches"},function(){for(var e=[],r=4;r>=t;){var n=f[r];n&&n.batches&&n.batches[Bie]>0&&(MH(n[aae],function(t){d.addBatch(t)?o=o||t&&t[Rie]()>0:e=e[Oie](t[Mie]()),4===r?O-=t[Rie]():D-=t[Rie]()}),n[aae]=[],n.iKeyMap={}),r--}e[Bie]>0&&ae(Xae,e,sG.KillSwitch),o&&m>=t&&(m=-1,g=0)},function(){return{latency:t,sendType:r,sendReason:n}},!i):(m=m>=0?gU(m,t):t,g=vU(g,n)),o}function te(e,t){H(1,0,t),Z(),re(function(){e&&e(),N[Bie]>0?o=G(function(){o=null,te(N.shift(),t)},0):(o=null,W())})}function re(e){d.isCompletelyIdle()?e():o=G(function(){o=null,re(e)},.25)}function ne(){(R={})[oie]=[2,1,0],R.NEAR_REAL_TIME=[6,3,0],R.BEST_EFFORT=[18,9,0]}function oe(t,r){var n=[],o=b;y&&(o=w),MH(t,function(t){t&&t[Rie]()>0&&MH(t[Mie](),function(t){t&&(t[Eae]&&(t[kae]=4,t[Eae]=!1),t[Sae]<o?(Zoe(t,e[wae]),q(t,!1)):n[zie](t))})}),n[Bie]>0&&ae(Xae,n,sG.NonRetryableStatus),y&&K(2,2)}function ie(t,r){var n=T||{},o=n[t];if(o)try{o.apply(n,r)}catch(Wqe){rJ(e.diagLog(),1,74,t+" notification failed: "+Wqe)}}function ae(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];t&&t[Bie]>0&&ie(e,[t][Oie](r))}function se(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];t&&t[Bie]>0&&MH(t,function(t){t&&t[Rie]()>0&&ie(e,[t.events()][Oie](r))})}function le(e,t,r){e&&e[Bie]>0&&ie("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==r])}function ce(e,t){se("eventsSent",e,t),W()}function ue(e,t){se(Xae,e,t>=8e3&&t<=8999?t-8e3:sG.Unknown)}function de(e){se(Xae,e,sG.NonRetryableStatus),W()}function fe(e,t){se(Xae,e,sG.Unknown),W()}function he(){p=E?0:vU(3*I,a/6)}$(),e._getDbgPlgTargets=function(){return[d,r]},e[qie]=function(o,s,l){FJ(s,function(){return"PostChannel:initialize"},function(){t[qie](o,s,l),T=s.getNotifyMgr();try{x=tZ(iX(e[wae]),s.evtNamespace&&s.evtNamespace()),e._addHook(AX(o,function(t){var o=t.cfg,l=lQ(null,o,s);r=l.getExtCfg(e[wae],Qae),S=Lae(r[Hie],r[Uie]),v=!r.disableOptimizeObj&&!!$U("chrome"),k=r.ignoreMc1Ms0CookieProcessing,function(e){var t=e[hae];e[hae]=function(){var r=0;return k&&(r|=2),r|t.call(e)}}(s),a=r.eventsLimitInMem,i=r.immediateEventLimit,h=r[xae],b=r.maxEventRetryAttempts,w=r.maxUnloadEventRetryAttempts,E=r.disableAutoBatchFlushLimit,I=r.maxEvtPerBatch,bH(o.endpointUrl)?e.pause():B&&e.resume(),he(),C=r.overrideInstrumentationKey,A=!!r.disableTelemetry,_&&n();var c=o.disablePageUnloadEvents||[];_=aZ(L,c,x),_=lZ(L,c,x)||_,_=uZ(F,o.disablePageShowEvents,x)||_})),d[qie](o,e.core,e)}catch(Wqe){throw e.setInitialized(!1),Wqe}},function(){return{theConfig:o,core:s,extensions:l}})},e.processTelemetry=function(t,r){Zoe(t,e[wae]),r=r||e._getTelCtx(r);var n=t;A||P||(C&&(n[Die]=C),q(n,!0),y?K(2,2):W()),e.processNext(n,r)},e.getOfflineSupport=function(){try{var e=d&&d[eae]();if(d)return{getUrl:function(){return e?e.url:null},serialize:j,batch:z,shouldProcess:function(e){return!A},createPayload:function(e){return null},createOneDSPayload:function(e){if(d[rae])return d[rae](e,v)}}}catch(Wqe){}return null},e._doTeardown=function(e,t){K(2,2),P=!0,d.teardown(),n(),$()},e.setEventQueueLimits=function(e,t){r.eventsLimitInMem=a=tie(e)?e:Kae,r[xae]=h=tie(t)?t:0,he();var n=D>e;if(!n&&p>0)for(var o=1;!n&&o<=3;o++){var i=f[o];i&&i[aae]&&MH(i[aae],function(e){e&&e[Rie]()>=p&&(n=!0)})}J(!0,n)},e.pause=function(){Y(),B=!0,d&&d.pause()},e.resume=function(){B=!1,d&&d.resume(),W()},e._loadTransmitProfiles=function(e){Y(),ne(),M=oie,W(),RH(e,function(e,t){var r=t[Bie];if(r>=2){var n=r>2?t[2]:0;if(t.splice(0,r-2),t[1]<0&&(t[0]=-1),t[1]>0&&t[0]>0){var o=t[0]/t[1];t[0]=EW(o)*t[1]}n>=0&&t[1]>=0&&n>t[1]&&(n=t[1]),t[zie](n),R[e]=t}})},e.flush=function(e,t,r){var n;if(void 0===e&&(e=!0),!B)if(r=r||1,e)t||(n=BY(function(e){t=e})),null==o?(Y(),ee(1,0,r),o=G(function(){o=null,te(t,r)},0)):N[zie](t);else{var i=Y();H(1,1,r),t&&t(),i&&W()}return n},e.setMsaAuthTicket=function(e){d.addHeader(Sie,e)},e.setAuthPluginHeader=function(e){d.addHeader(kie,e)},e.removeAuthPluginHeader=function(){d.removeHeader(kie)},e.hasEvents=U,e._setTransmitProfile=function(e){M!==e&&void 0!==R[e]&&(Y(),M=e,W())},pK(e,function(){return d},["addResponseHandler"]),e[bae]=function(){c<4&&(c++,Y(),W())},e._clearBackOff=function(){c&&(c=0,Y(),W())}}),n}return rG(t,e),t.__ieDyn=1,t}(gQ),tse="locale",rse="ver",nse="name",ose=aG({UserExt:[0,"user"],DeviceExt:[1,"device"],TraceExt:[2,"trace"],WebExt:[3,"web"],AppExt:[4,"app"],OSExt:[5,"os"],SdkExt:[6,"sdk"],IntWebExt:[7,"intweb"],UtcExt:[8,"utc"],LocExt:[9,"loc"],CloudExt:[10,"cloud"],DtExt:[11,"dt"]}),ise=aG({id:[0,"id"],ver:[1,rse],appName:[2,nse],locale:[3,tse],expId:[4,"expId"],env:[5,"env"]}),ase=aG({domain:[0,"domain"],browser:[1,"browser"],browserVer:[2,"browserVer"],screenRes:[3,"screenRes"],userConsent:[4,"userConsent"],consentDetails:[5,"consentDetails"]}),sse=aG({locale:[0,tse],localId:[1,"localId"],id:[2,"id"]}),lse=aG({osName:[0,nse],ver:[1,rse]}),cse=aG({ver:[0,rse],seq:[1,"seq"],installId:[2,"installId"],epoch:[3,"epoch"]}),use=aG({msfpc:[0,"msfpc"],anid:[1,"anid"],serviceName:[2,"serviceName"]}),dse=aG({popSample:[0,"popSample"],eventFlags:[1,"eventFlags"]}),fse=aG({tz:[0,"tz"]}),hse=aG({sessionId:[0,"sesId"]}),pse=aG({localId:[0,"localId"],deviceClass:[1,"deviceClass"],make:[2,"make"],model:[3,"model"]}),mse=aG({role:[0,"role"],roleInstance:[1,"roleInstance"],roleVer:[2,"roleVer"]}),gse=aG({traceId:[0,"traceID"],traceName:[1,nse],parentId:[2,"parentID"]}),vse=aG({traceId:[0,"traceId"],spanId:[1,"spanId"],traceFlags:[2,"traceFlags"]});function yse(){return void 0===Zae&&(Zae=!!wse(0)),Zae}function bse(){return yse()?wse(0):null}function wse(e){var t,r,n=null;try{var o=WU();if(!o)return null;r=new Date,(n=0===e?o.localStorage:o.sessionStorage)&&fH(n.setItem)&&(n.setItem(r,r),t=n.getItem(r)!==r,n.removeItem(r),t&&(n=null))}catch(i){n=null}return n}function xse(){return this.getId()}function Sse(e){this.setId(e)}var kse=function(){function e(){$$(e,this,function(e){e.setId=function(t){e.customId=t},e.getId=function(){return dH(e.customId)?e.customId:e.automaticId}})}return e._staticInit=void KH(e.prototype,"id",{g:xse,s:Sse}),e}(),Ese="ai_session",Tse=function(){function e(t,r,n){var o,i,a,s=JX(t),l=SJ(t);$$(e,this,function(t){var c=AX(r,function(){a=r,t.config=a});function u(e){var r=t.automaticSession,n=e.split("|");n.length>0&&r.setId(n[0]);try{if(n.length>1){var o=+n[1];r.acquisitionDate=+new Date(o),r.acquisitionDate=r.acquisitionDate>0?r.acquisitionDate:0}if(n.length>2){var i=+n[2];r.renewalDate=+new Date(i),r.renewalDate=r.renewalDate>0?r.renewalDate:0}}catch(Wqe){rJ(s,1,510,"Error parsing ai_session cookie, session will be reset: "+Wqe)}0===r.renewalDate&&rJ(s,2,517,"AI session renewal date is 0, session will be reset.")}function d(){var e=t.automaticSession,r=(new Date).getTime(),n=t.config.sessionAsGuid;!iH(n)&&n?vH(n)?e.setId(Xoe()):e.setId(Xoe(n)):e.setId(eX(a.idLength||22)),e.acquisitionDate=r,e.renewalDate=r,f(e.getId(),e.acquisitionDate,e.renewalDate),yse()||rJ(s,2,505,"Browser does not support local storage. Session durations will be inaccurate.")}function f(e,r,n){var a=r+t.config.sessionExpirationMs,s=n+t.config.sessionRenewalMs,c=new Date,u=[e,r,n];a<s?c.setTime(a):c.setTime(s);var d=t.config.cookieDomain||null;l.set(i(),u.join("|")+";expires="+c.toUTCString(),null,d),o=(new Date).getTime()}n&&n.add(c),i=function(){return t.config.namePrefix?Ese+t.config.namePrefix:Ese},t.automaticSession=new kse,t.update=function(){t.automaticSession.getId()||function(){var e=l.get(i());if(e&&fH(e.split))u(e);else{var r=function(e,t){var r=bse();if(null!==r)try{return r.getItem(t)}catch(Wqe){Zae=!1,rJ(e,1,503,"Browser failed read of local storage. "+Wqe)}return null}(s,i());r&&u(r)}t.automaticSession.getId()||d()}();var r=t.automaticSession,n=t.config,a=(new Date).getTime(),c=a-r.acquisitionDate>n.sessionExpirationMs,h=a-r.renewalDate>n.sessionRenewalMs;if(c||h)d();else{(!o||a-o>e.cookieUpdateInterval)&&(r.renewalDate=a,f(r.getId(),r.acquisitionDate,r.renewalDate))}},t.backup=function(){var e,r,n,o=t.automaticSession;e=o.getId(),r=o.acquisitionDate,n=o.renewalDate,function(e,t,r){var n=bse();if(null!==n)try{return n.setItem(t,r),!0}catch(Wqe){Zae=!1,rJ(e,1,504,"Browser failed write to local storage. "+Wqe)}}(s,i(),[e,r,n].join("|"))}})}return e.cookieUpdateInterval=6e4,e}(),_se=["AX","EX","SF","CS","CF","CT","CU","DC","DF","H5","HL","WS","WP"];function Cse(e,t){void 0===t&&(t=_se);var r=null;if(e)for(var n=e.split(","),o=0;o<n.length;o++)Ase(n[o],t)&&(r?r+=","+n[o]:r=n[o]);return r}function Ase(e,t){if(void 0===t&&(t=_se),!e||e.length<4)return!1;for(var r=!1,n=e.substring(0,3).toString().toUpperCase(),o=0;o<t.length;o++)if(t[o]+":"===n&&e.length<=256){r=!0;break}return r}function Ise(){return this.getExpId()}var Pse=function(){function e(t,r,n){var o,i=null,a=_se.slice(0),s="Treatments",l=null;$$(e,this,function(e){var c,u;if(u=AX(c=t,function(){o=r&&r.getCookieMgr(),l=c||{},e.env=l.env||function(e){var t,r={},n=YU();if(n){t=n&&n.querySelectorAll("meta");for(var o=0;o<t.length;o++){var i=t[o];i.name&&0===i.name.toLowerCase().indexOf(e)&&(r[i.name.replace(e,"")]=i.content)}}return r}("awa-").env}),n&&n.add(u),GU()){var d=YU().documentElement;d&&(e.locale=d.lang)}function f(e){e!==i&&(i=Cse(e,a))}e.getExpId=function(){return l.expId?(f(l.expId),i):(f(Koe(o,s)),i)}})}return e.validateAppExpId=Cse,e._staticInit=void KH(e.prototype,"expId",{g:Ise}),e}(),Nse=function(){return function(){}}(),Bse=function(){return function(){}}();function Ose(){return this.getMsfpc()}function Dse(){return this.getAnid()}var Rse=function(){function e(t,r,n){var o;$$(e,this,function(e){var i,a;a=AX(i=t,function(){o=r&&r.getCookieMgr();var t=i||{};t.serviceName&&(e.serviceName=t.serviceName)}),n&&n.add(a),e.getMsfpc=function(){return Koe(o,"MSFPC")},e.getAnid=function(){return Koe(o,"ANON").slice(0,34)}})}var t;return e._staticInit=(KH(t=e.prototype,"msfpc",{g:Ose}),void KH(t,"anid",{g:Dse})),e}(),Mse=function(){return function(){var e=(new Date).getTimezoneOffset(),t=e%60,r=(e-t)/60,n="+";r>0&&(n="-"),r=Math.abs(r),t=Math.abs(t),this.tz=n+(r<10?"0"+r:r.toString())+":"+(t<10?"0"+t:t.toString())}}(),zse={WIN:/(windows|win32)/i,WINRT:/ arm;/i,WINPHONE:/windows\sphone\s\d+\.\d+/i,OSX:/(macintosh|mac os x)/i,IOS:/(ipad|iphone|ipod)(?=.*like mac os x)/i,LINUX:/(linux|joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)/i,ANDROID:/android/i,CROS:/CrOS/i},jse={5.1:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1","10.0":"10"},Lse="([\\d,_,.]+)",Fse="Unknown",Vse=[{r:zse.WINPHONE,os:"Windows Phone"},{r:zse.WINRT,os:"Windows RT"},{r:zse.WIN,os:"Windows"},{r:zse.IOS,os:"iOS"},{r:zse.ANDROID,os:"Android"},{r:zse.LINUX,os:"Linux"},{r:zse.CROS,os:"Chrome OS"},{s:"x11",os:"Unix"},{s:"blackberry",os:"BlackBerry"},{s:"symbian",os:"Symbian"},{s:"nokia",os:"Nokia"},{r:zse.OSX,os:"Mac OS X"}];function qse(e,t){return"Windows"===t?Hse(e,"Windows NT"):"Android"===t?Hse(e,t):"Mac OS X"===t?function(e){var t=e.match(new RegExp("Mac OS X "+Lse));if(t){var r=t[1].replace(/_/g,".");if(r){var n=Use(r);return n?r.split(n)[0]:r}}return Fse}(e):"iOS"===t?function(e){var t=e.match(new RegExp("OS "+Lse));if(t){var r=t[1].replace(/_/g,".");if(r){var n=Use(r);return n?r.split(n)[0]:r}}return Fse}(e):Fse}function Hse(e,t){var r=e.match(new RegExp(t+" ([\\d,.]+)"));return r?jse[r[1]]?jse[r[1]]:r[1]:Fse}function Use(e){return e.indexOf(".")>-1?".":e.indexOf("_")>-1?"_":null}var Wse=function(){return function(e,t){var r=null,n=null,o=null,i=null,a=AX(e,function(){if((e||{}).populateOperatingSystemInfo){var t=QU()||{},o=e.userAgent||t.userAgent||"",i=(e.userAgentData||{}).platform||(t.userAgentData||{}).platform;if(o){var a=function(e){for(var t=0;t<Vse.length;t++){var r=Vse[t];if(r.r&&e.match(r.r))return r.os;if(r.s&&-1!==e.indexOf(r.s))return r.os}return Fse}(o.toLowerCase());r=a,n=qse(o,a)}r&&r!==Fse||!dH(i)||(r=i)}});t&&t.add(a),KH(this,"name",{s:function(e){o=e},g:function(){return o||r}}),KH(this,"ver",{s:function(e){i=e},g:function(){return i||n}})}}(),$se="MicrosoftApplicationsTelemetryDeviceId";var Gse=function(){function e(t,r,n){var o,i=0;$$(e,this,function(e){e.seq=i,e.epoch=ZK(!1).toString(),e.getSequenceId=function(){return++i};var a=AX(t,function(t){o=r&&r.getCookieMgr();var n=t.cfg.propertyStorageOverride;if(o.isEnabled()||n){var i=function(e,t,r){return t?t.getProperty(r)||"":Koe(e,r)}(o,n,$se);i||(i=VJ()),function(e,t,r,n){t?t.setProperty(r,n):e.set(r,n,31536e3)}(o,n,$se,i),e.installId=i}else o.purge($se)});n&&n.add(a)})}return e.__ieDyn=1,e}(),Yse=function(){return function(e,t,r,n,o){var i=this;i.traceId=t||qJ();var a=AX(e,function(){var t=e;if(t.enableDistributedTracing&&!r&&(r=qJ().substring(0,16)),i.parentId=i.parentId||r,t.enableApplicationInsightsTrace&&!n){var o=DK();o&&o.pathname&&(n=o.pathname)}i.name=i.name||n});o&&o.add(a)}}(),Kse="setLocalId";function Xse(){return this.getLocalId()}function Jse(e){this[Kse](e)}var Qse=function(){function e(t,r,n,o){var i,a,s;$$(e,this,function(l){var c,u;if(u=AX(c=r,function(){if(s=n&&n.getCookieMgr(),i=c,a=null,s&&s.isEnabled()&&(f(),i.enableApplicationInsightsUser)){var r=Koe(s,e.userCookieName);if(r){var o=r.split(e.cookieSeparator);o.length>0&&(l.id=o[0])}if(!l.id){l.id=eX(t&&!iH(t.idLength)?t.idLength:22);var u=sK(new Date);l.accountAcquisitionDate=u;var d=[l.id,u],h=i.cookieDomain?i.cookieDomain:void 0;s.set(e.userCookieName,d.join(e.cookieSeparator),31536e3,h)}}}),o&&o.add(u),"undefined"!=typeof navigator){var d=navigator;l.locale=d.userLanguage||d.language}function f(){if(!i.hashIdentifiers&&!i.dropIdentifiers){var e=Koe(s,"MUID");e&&(a="t:"+e)}return a}l.getLocalId=function(){return a||f()},l[Kse]=function(e){a=e}})}return e.cookieSeparator="|",e.userCookieName="ai_user",e._staticInit=void KH(e.prototype,"localId",{g:Xse,s:Jse}),e}(),Zse=function(){return function(e,t){var r=this;r.popSample=100;var n=AX(e,function(){r.eventFlags=0,e.hashIdentifiers&&(r.eventFlags=1048576|r.eventFlags),e.dropIdentifiers&&(r.eventFlags=2097152|r.eventFlags),e.scrubIpOnly&&(r.eventFlags=4194304|r.eventFlags)});t&&t.add(n)}}(),ele=["Required","Analytics","SocialMedia","Advertising"],tle="([\\d,.]+)",rle="Unknown",nle="Edg/",ole="EdgiOS/",ile=[{ua:"OPR/",b:"Opera"},{ua:"PhantomJS",b:"PhantomJS"},{ua:"Edge",b:"Edge"},{ua:nle,b:"Edge"},{ua:ole,b:"Edge"},{ua:"Electron",b:"Electron"},{ua:"Chrome",b:"Chrome"},{ua:"Trident",b:"MSIE"},{ua:"MSIE ",b:"MSIE"},{ua:"Firefox",b:"Firefox"},{ua:"Safari",b:"Safari"},{ua:"SkypeShell",b:"SkypeShell"}],ale=[{br:"Microsoft Edge",b:"Edge"},{br:"Google Chrome",b:"Chrome"},{br:"Opera",b:"Opera"}];function sle(e,t){return t.indexOf(e)>-1}function lle(e,t){for(var r=0;r<t.length;r++)if(e==t[r].brand)return t[r].version;return null}function cle(e,t){return"MSIE"===t?function(e){var t=e.match(new RegExp("MSIE "+tle));if(t)return t[1];var r=e.match(new RegExp("rv:"+tle));if(r)return r[1]}(e):function(e,t){"Safari"===e?e="Version":"Edge"===e&&(sle(nle,t)?e="Edg":sle(ole,t)&&(e="EdgiOS"));var r=t.match(new RegExp(e+"/"+tle));if(r)return r[1];if("Opera"===e&&(r=t.match(new RegExp("OPR/"+tle))))return r[1];return rle}(t,e)}function ule(){return this.getUserConsent()}var dle=function(){function e(t,r,n){SJ(r);var o=t||{},i=null,a=null,s=null,l=null,c=null,u=null,d=null;$$(e,this,function(e){var r,f;f=AX(r=t,function(){if((o=r).populateBrowserInfo){var e=o.userAgent,t=(o.userAgentData||{}).brands;if(e!==i||t!==a){if(!e||!t||0===t.length){var n=QU();n&&(e=e||n.userAgent||"",t=t||(n.userAgentData||{}).brands)}!function(e,t){if(pH(t))try{for(var r=0;r<ale.length;r++){var n=lle(ale[r].br,t);if(n)return c=ale[r].b,void(u=n)}}catch(Wqe){}if(e){var o=function(e){if(e)for(var t=0;t<ile.length;t++)if(sle(ile[t].ua,e))return ile[t].b;return rle}(e);c=o,u=cle(e,o)}}(e,t),i=e,a=t}}d=vH(o.gpcDataSharingOptIn)?o.gpcDataSharingOptIn:null}),n&&n.add(f);var h=DK();if(h){var p=h.hostname;p&&(e.domain="file:"===h.protocol?"local":p)}var m=function(){var e={h:0,w:0},t=XU();return t&&t.screen&&(e.h=screen.height,e.w=screen.width),e}();e.screenRes=m.w+"X"+m.h,e.getUserConsent=function(){return!1},e.getUserConsentDetails=function(){var e=null;try{var t=o.callback;if(t&&t.userConsentDetails){var r=t.userConsentDetails();if(r){e=o.disableConsentDetailsSanitize?r:{};for(var n=0;n<ele.length;n++){var i=ele[n];e[i]=r[i]||!1}}}return null!==d&&((e=e||{}).GPC_DataSharingOptIn=!!d),e?JSON.stringify(e):null}catch(Wqe){}};XH(e,{userConsent:{g:e.getUserConsent},browser:{s:function(e){s=e},g:function(){return s||c}},browserVer:{s:function(e){l=e},g:function(){return l||u}},gpcDataSharingOptIn:{g:function(){return d},s:function(e){d=vH(e)?e:null,o.gpcDataSharingOptIn=d}}})})}return e._staticInit=void KH(e.prototype,"userConsent",{g:ule}),e}();function fle(e,t,r,n,o){var i=t.ext[ose[e]];if(i)try{RH(n,function(e,t){if(dH(t)||gH(t)||vH(t)){var n=i[r[e]];!o&&(n||dH(n)||gH(n)||vH(n))&&(t=n),i[r[e]]=t}})}catch(Wqe){}return i}var hle,ple=function(){function e(t,r,n,o){$$(e,this,function(e){e.app=new Pse(r,n,o),e.cloud=new Nse,e.user=new Qse(t,r,n,o),e.os=new Wse(r,o),e.web=new dle(r,n,o);var i=new Gse(t,n,o),a=new Rse(r,n,o),s=new Zse(r,o);e.loc=new Mse,e.device=new Bse;var l=new Tse(n,r,o);e.session=new kse;var c,u,d,f=void 0,h=(c=new Yse(r,f,f,f,o),u=g(),d=c||{},{getName:function(){return d.name},setName:function(e){u&&u.setName(e),d.name=e},getTraceId:function(){return d.traceId},setTraceId:function(e){u&&u.setTraceId(e),KJ(e)&&(d.traceId=e)},getSpanId:function(){return d.parentId},setSpanId:function(e){u&&u.setSpanId(e),XJ(e)&&(d.parentId=e)},getTraceFlags:function(){return d.traceFlags},setTraceFlags:function(e){u&&u.setTraceFlags(e),d.traceFlags=e}}),p=!(r||{}).eventContainExtFields;function m(){var t=e.session;if(t&&dH(t.customId))return t.customId;l.update();var r=l.automaticSession;if(r){var n=r.getId();n&&dH(n)&&(t.automaticId=n)}return t.automaticId}function g(){var e=h;return n&&n.getTraceCtx&&(e=n.getTraceCtx(!1)||h),e}e.getTraceCtx=function(){return h},e.getSessionId=m,e.applyApplicationContext=function(t){var r,n=e.app;fle(4,t,ise,((r={})[0]=n.id,r[1]=n.ver,r[2]=n.name,r[3]=n.locale,r[4]=n.getExpId(),r[5]=n.env,r),p)},e.applyUserContext=function(t){var r,n=e.user;fle(0,t,sse,((r={})[1]=n.getLocalId(),r[0]=n.locale,r[2]=n.id,r),p)},e.applyWebContext=function(t){var r,n=e.web;fle(3,t,ase,((r={})[0]=n.domain,r[1]=n.browser,r[2]=n.browserVer,r[3]=n.screenRes,r[5]=n.getUserConsentDetails(),r[4]=!1,r),p)},e.applyOsContext=function(t){var r,n=e.os;fle(5,t,lse,((r={})[0]=n.name,r[1]=n.ver,r),p)},e.applySdkContext=function(e){var t;fle(6,e,cse,((t={})[2]=i.installId,t[1]=i.getSequenceId(),t[3]=i.epoch,t),p)},e.applyIntWebContext=function(e){var t;fle(7,e,use,((t={})[0]=a.getMsfpc(),t[1]=a.getAnid(),t[2]=a.serviceName,t),p)},e.applyUtcContext=function(e){var t,r=((t={})[0]=s.popSample,t);s.eventFlags>0&&(r[1]=s.eventFlags),fle(8,e,dse,r,p)},e.applyLocContext=function(t){var r;fle(9,t,fse,((r={})[0]=e.loc.tz,r),p)},e.applySessionContext=function(e){var t;fle(4,e,hse,((t={})[0]=m(),t),p)},e.applyDeviceContext=function(t){var r,n=e.device;fle(1,t,pse,((r={})[0]=n.localId,r[2]=n.make,r[3]=n.model,r[1]=n.deviceClass,r),p)},e.applyCloudContext=function(t){var r,n=e.cloud;fle(10,t,mse,((r={})[0]=n.role,r[1]=n.roleInstance,r[2]=n.roleVer,r),p)},e.applyAITraceContext=function(e){var t;if(r.enableApplicationInsightsTrace){var n=g();n&&fle(2,e,gse,((t={})[0]=n.getTraceId(),t[1]=n.getName(),t[2]=n.getSpanId(),t),!1)}},e.applyDistributedTraceContext=function(e){var t,r=g();if(r){var n=((t={})[0]=r.getTraceId(),t[1]=r.getSpanId(),t),o=r.getTraceFlags();sH(o)||(n[2]=o),fle(11,e,vse,n,!1)}}})}return e.__ieDyn=1,e}();var mle=[ose[4],ose[0],ose[3],ose[5],ose[6],ose[7],ose[8],ose[9],ose[1],ose[2],ose[11],ose[10]],gle=aU({populateBrowserInfo:!1,populateOperatingSystemInfo:!1,userAgent:jX(),userAgentData:OX({brands:hle,mobile:hle,platform:hle}),userConsentCookieName:jX(),userConsented:!1,serviceName:jX(),env:jX(),expId:jX(),sessionRenewalMs:18e5,sessionExpirationMs:864e5,sessionAsGuid:null,cookieDomain:jX(),namePrefix:jX(),enableApplicationInsightsTrace:!1,enableApplicationInsightsUser:!1,hashIdentifiers:!1,dropIdentifiers:!1,scrubIpOnly:!1,callback:OX({userConsentDetails:null}),gpcDataSharingOptIn:hle,idLength:22,enableDistributedTracing:!1,eventContainExtFields:!1}),vle=function(e){function t(){var r,n,o,i=e.call(this)||this;return i.identifier="SystemPropertiesCollector",i.priority=3,i.version="4.3.9",$$(t,i,function(e,t){function i(){r=null,n={}}i(),e.initialize=function(n,i,a){t.initialize(n,i,a),function(t){var n=e.identifier,i=e.core;e._addHook(AX(t,function(){var e=lQ(null,t,i);o=e.getExtCfg(n,gle)})),r=new ple(t,o,i,e._unloadHooks),i&&i.setTraceCtx&&i.setTraceCtx(r.getTraceCtx())}(n)},e.processTelemetry=function(t,i){Zoe(t,e.identifier),i=e._getTelCtx(i);var a,s,l=t.ext=t.ext?t.ext:{};t.data=t.data?t.data:{},MH(mle,function(e){l[e]=l[e]||{}}),r&&(r.applyUtcContext(t),r.applyApplicationContext(t),r.applyUserContext(t),r.applyWebContext(t),r.applyOsContext(t),r.applySdkContext(t),r.applyIntWebContext(t),r.applyLocContext(t),r.applySessionContext(t),r.applyDeviceContext(t),o.enableApplicationInsightsTrace&&r.applyAITraceContext(t),o.enableDistributedTracing&&r.applyDistributedTraceContext(t),r.applyCloudContext(t)),MH(oU(l),function(e){0===oU(l[e]).length&&delete l[e]}),a=n,s=t.data,a&&RH(a,function(e,t){s[e]||(s[e]=t)}),e.processNext(t,i)},e.getPropertiesContext=function(){return r},e.setProperty=function(e,t){n[e]=t},e._doTeardown=function(e,t){var n=(e||{}).core();if(n&&n.getTraceCtx&&r){var o=n.getTraceCtx(!1);o&&o===r.getTraceCtx()&&n.setTraceCtx(null)}i()},e._getDbgPlgTargets=function(){return[o]}}),i}return rG(t,e),t.__ieDyn=1,t}(gQ);function yle(e,t,r){var n=e;if(n){for(;!t(n,r);)if(!(n=wle(n=n.parentNode))||!n.getAttribute)return null;return n}}function ble(e){return"A"===e.nodeName}function wle(e){return e}function xle(e,t){var r,n,o,i,a,s,l,c,u,d,f=e.getBoundingClientRect();return(n=t,o=(r=f).left,i=r.top,a=r.right,s=r.bottom,l=n.left,c=n.top,u=n.right,d=n.bottom,Math.max(0,Math.min(a,u)-Math.max(o,l))*Math.max(0,Math.min(s,d)-Math.max(i,c)))>0}function Sle(e,t){return!!$oe(kle(e,"data-bi-dnt"))}function kle(e,t){return yle(e,Ele,t)}function Ele(e,t){var r=e.getAttribute(t);return $oe(r)||""===r}function Tle(e){return"["+e+"]"}function _le(e,t,r,n){var o;return function(){var i=arguments,a=!o;clearTimeout(o),o=setTimeout(function(){o=0,t&&t.apply(n,i)},r),a&&e&&e.apply(n,i)}}function Cle(){var e={h:0,v:0},t=XU(),r=YU();return r&&t&&(e={h:parseInt(r.body.scrollLeft||r.documentElement.scrollLeft||t.pageXOffset,10),v:parseInt(r.body.scrollTop||r.documentElement.scrollTop||t.pageYOffset,10)}),e}function Ale(){var e={h:0,w:0},t=XU(),r=YU();if(t&&r&&t.screen){var n=r.body||{},o=r.documentElement||{};e.h=t.innerHeight||n.clientHeight||o.clientHeight,e.w=t.innerWidth||n.clientWidth||o.clientWidth}return e}var Ile,Ple,Nle={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0};function Ble(e){if(e){var t=function(e){return yle(e,ble)}(e);if(t&&1===t.length){if(t[0].href)return t[0].href;if(t[0].src)return t[0].src}}return""}function Ole(e){if(!e||!e.attributes)return!1;try{var t=e.getAttribute("data-dc");return!!$oe(t)&&"pii"===t.toLowerCase()}catch(Wqe){return!1}}function Dle(e,t){return e.coreData&&e.coreData.requestUri&&""!==e.coreData.requestUri?e.coreData.requestUri:function(e,t){if(!t)return null;var r=t.protocol+"//"+(t.hostname||t.host)+($oe(t.port)?":"+t.port:"")+t.pathname;if(e.urlCollectQuery){var n=t.search;if(!n){var o=t.hash||"",i=o.indexOf("?");-1!==i&&(n=o.slice(i))}r+=n}e.urlCollectHash&&(r+=t.hash||"");return r}(e,t)}function Rle(e,t,r){var n,o="",i={},a=[],s=e.cookiesToCollect;!1===e.shareAuthStatus?a=s:MH(s,function(e){"ANON"!==e&&a.push(e)});try{Woe&&window.varCustomerCookies&&window.varCustomerCookies.length>0&&(a=a.concat(window.varCustomerCookies))}catch(Wqe){rJ(r,1,512,"Failed to get cookies ")}return MH(a,function(e){i.hasOwnProperty(e)||(i[e]="",""!==(n=decodeURIComponent(t.get(e)))&&(o+=e+"="+n+";"))}),o}function Mle(e,t){var r=tZ(iX("onDomLoaded"),t);zle(function(){if(Uoe&&"complete"===document.readyState)e();else{var t=XU();t&&rZ(t,"load",function(){e&&e(),e=null,nZ(t,null,null,r)},r)}})}function zle(e){var t=YU()||{};/in/.test(t.readyState)?setTimeout(function(){zle(e)},100):e.call()}(Ple=Ile||(Ile={}))[Ple.UNDEFINED=0]="UNDEFINED",Ple[Ple.NAVIGATIONBACK=1]="NAVIGATIONBACK",Ple[Ple.NAVIGATION=2]="NAVIGATION",Ple[Ple.NAVIGATIONFORWARD=3]="NAVIGATIONFORWARD",Ple[Ple.APPLY=4]="APPLY",Ple[Ple.REMOVE=5]="REMOVE",Ple[Ple.SORT=6]="SORT",Ple[Ple.EXPAND=7]="EXPAND",Ple[Ple.REDUCE=8]="REDUCE",Ple[Ple.CONTEXTMENU=9]="CONTEXTMENU",Ple[Ple.TAB=10]="TAB",Ple[Ple.COPY=11]="COPY",Ple[Ple.EXPERIMENTATION=12]="EXPERIMENTATION",Ple[Ple.PRINT=13]="PRINT",Ple[Ple.SHOW=14]="SHOW",Ple[Ple.HIDE=15]="HIDE",Ple[Ple.MAXIMIZE=16]="MAXIMIZE",Ple[Ple.MINIMIZE=17]="MINIMIZE",Ple[Ple.BACKBUTTON=18]="BACKBUTTON",Ple[Ple.OPENAPP=19]="OPENAPP",Ple[Ple.STARTPROCESS=20]="STARTPROCESS",Ple[Ple.PROCESSCHECKPOINT=21]="PROCESSCHECKPOINT",Ple[Ple.COMPLETEPROCESS=22]="COMPLETEPROCESS",Ple[Ple.SCENARIOCANCEL=23]="SCENARIOCANCEL",Ple[Ple.DOWNLOADCOMMIT=40]="DOWNLOADCOMMIT",Ple[Ple.DOWNLOAD=41]="DOWNLOAD",Ple[Ple.SEARCHAUTOCOMPLETE=60]="SEARCHAUTOCOMPLETE",Ple[Ple.SEARCH=61]="SEARCH",Ple[Ple.SEARCHINITIATE=62]="SEARCHINITIATE",Ple[Ple.TEXTBOXINPUT=63]="TEXTBOXINPUT",Ple[Ple.SEARCHAI=64]="SEARCHAI",Ple[Ple.SEARCHAIAUTOCOMPLETE=65]="SEARCHAIAUTOCOMPLETE",Ple[Ple.PURCHASE=80]="PURCHASE",Ple[Ple.ADDTOCART=81]="ADDTOCART",Ple[Ple.VIEWCART=82]="VIEWCART",Ple[Ple.ADDWISHLIST=83]="ADDWISHLIST",Ple[Ple.FINDSTORE=84]="FINDSTORE",Ple[Ple.CHECKOUT=85]="CHECKOUT",Ple[Ple.REMOVEFROMCART=86]="REMOVEFROMCART",Ple[Ple.PURCHASECOMPLETE=87]="PURCHASECOMPLETE",Ple[Ple.VIEWCHECKOUTPAGE=88]="VIEWCHECKOUTPAGE",Ple[Ple.VIEWCARTPAGE=89]="VIEWCARTPAGE",Ple[Ple.VIEWPDP=90]="VIEWPDP",Ple[Ple.UPDATEITEMQUANTITY=91]="UPDATEITEMQUANTITY",Ple[Ple.INTENTTOBUY=92]="INTENTTOBUY",Ple[Ple.PUSHTOINSTALL=93]="PUSHTOINSTALL",Ple[Ple.SIGNIN=100]="SIGNIN",Ple[Ple.SIGNOUT=101]="SIGNOUT",Ple[Ple.SOCIALSHARE=120]="SOCIALSHARE",Ple[Ple.SOCIALLIKE=121]="SOCIALLIKE",Ple[Ple.SOCIALREPLY=122]="SOCIALREPLY",Ple[Ple.CALL=123]="CALL",Ple[Ple.EMAIL=124]="EMAIL",Ple[Ple.COMMUNITY=125]="COMMUNITY",Ple[Ple.SOCIALFOLLOW=126]="SOCIALFOLLOW",Ple[Ple.VOTE=140]="VOTE",Ple[Ple.SURVEYINITIATE=141]="SURVEYINITIATE",Ple[Ple.SURVEYCOMPLETE=142]="SURVEYCOMPLETE",Ple[Ple.REPORTAPPLICATION=143]="REPORTAPPLICATION",Ple[Ple.REPORTREVIEW=144]="REPORTREVIEW",Ple[Ple.SURVEYCHECKPOINT=145]="SURVEYCHECKPOINT",Ple[Ple.CONTACT=160]="CONTACT",Ple[Ple.REGISTRATIONINITIATE=161]="REGISTRATIONINITIATE",Ple[Ple.REGISTRATIONCOMPLETE=162]="REGISTRATIONCOMPLETE",Ple[Ple.CANCELSUBSCRIPTION=163]="CANCELSUBSCRIPTION",Ple[Ple.RENEWSUBSCRIPTION=164]="RENEWSUBSCRIPTION",Ple[Ple.CHANGESUBSCRIPTION=165]="CHANGESUBSCRIPTION",Ple[Ple.REGISTRATIONCHECKPOINT=166]="REGISTRATIONCHECKPOINT",Ple[Ple.CHATINITIATE=180]="CHATINITIATE",Ple[Ple.CHATEND=181]="CHATEND",Ple[Ple.TRIALSIGNUP=200]="TRIALSIGNUP",Ple[Ple.TRIALINITIATE=201]="TRIALINITIATE",Ple[Ple.SIGNUP=210]="SIGNUP",Ple[Ple.FREESIGNUP=211]="FREESIGNUP",Ple[Ple.PARTNERREFERRAL=220]="PARTNERREFERRAL",Ple[Ple.LEARNLOWFUNNEL=230]="LEARNLOWFUNNEL",Ple[Ple.LEARNHIGHFUNNEL=231]="LEARNHIGHFUNNEL",Ple[Ple.SHOPPINGINTENT=232]="SHOPPINGINTENT",Ple[Ple.TRIALINTENT=234]="TRIALINTENT",Ple[Ple.VIDEOSTART=240]="VIDEOSTART",Ple[Ple.VIDEOPAUSE=241]="VIDEOPAUSE",Ple[Ple.VIDEOCONTINUE=242]="VIDEOCONTINUE",Ple[Ple.VIDEOCHECKPOINT=243]="VIDEOCHECKPOINT",Ple[Ple.VIDEOJUMP=244]="VIDEOJUMP",Ple[Ple.VIDEOCOMPLETE=245]="VIDEOCOMPLETE",Ple[Ple.VIDEOBUFFERING=246]="VIDEOBUFFERING",Ple[Ple.VIDEOERROR=247]="VIDEOERROR",Ple[Ple.VIDEOMUTE=248]="VIDEOMUTE",Ple[Ple.VIDEOUNMUTE=249]="VIDEOUNMUTE",Ple[Ple.VIDEOFULLSCREEN=250]="VIDEOFULLSCREEN",Ple[Ple.VIDEOUNFULLSCREEN=251]="VIDEOUNFULLSCREEN",Ple[Ple.VIDEOREPLAY=252]="VIDEOREPLAY",Ple[Ple.VIDEOPLAYERLOAD=253]="VIDEOPLAYERLOAD",Ple[Ple.VIDEOPLAYERCLICK=254]="VIDEOPLAYERCLICK",Ple[Ple.VIDEOVOLUMECONTROL=255]="VIDEOVOLUMECONTROL",Ple[Ple.VIDEOAUDIOTRACKCONTROL=256]="VIDEOAUDIOTRACKCONTROL",Ple[Ple.VIDEOCLOSEDCAPTIONCONTROL=257]="VIDEOCLOSEDCAPTIONCONTROL",Ple[Ple.VIDEOCLOSEDCAPTIONSTYLE=258]="VIDEOCLOSEDCAPTIONSTYLE",Ple[Ple.VIDEORESOLUTIONCONTROL=259]="VIDEORESOLUTIONCONTROL",Ple[Ple.VIRTUALEVENTJOIN=260]="VIRTUALEVENTJOIN",Ple[Ple.VIRTUALEVENTEND=261]="VIRTUALEVENTEND",Ple[Ple.JOINTEAMSMEETINGEVENT=262]="JOINTEAMSMEETINGEVENT",Ple[Ple.IMPRESSION=280]="IMPRESSION",Ple[Ple.CLICK=281]="CLICK",Ple[Ple.RICHMEDIACOMPLETE=282]="RICHMEDIACOMPLETE",Ple[Ple.ADBUFFERING=283]="ADBUFFERING",Ple[Ple.ADERROR=284]="ADERROR",Ple[Ple.ADSTART=285]="ADSTART",Ple[Ple.ADCOMPLETE=286]="ADCOMPLETE",Ple[Ple.ADSKIP=287]="ADSKIP",Ple[Ple.ADTIMEOUT=288]="ADTIMEOUT",Ple[Ple.OTHER=300]="OTHER";var jle,Lle,Fle="CL",Vle="CR",qle="CM",Hle="S",Ule="R",Wle="KE",$le="KS";(Lle=jle||(jle={}))[Lle.PAGE_ACTION=0]="PAGE_ACTION",Lle[Lle.CONTENT_UPDATE=1]="CONTENT_UPDATE";var Gle=["c:","i:","w:"],Yle={"microsoft.com":"c1.microsoft.com","xbox.com":"c.xbox.com","live.com":"c.live.com","microsoftstore.com":"c.microsoftstore.com","msn.com":"c.msn.com","windows.com":"c.windows.com","office.com":"c.office.com"},Kle=function(){function e(t){this.core=t;var r,n=Xoe(),o=qJ(),i=null,a=!1,s=SJ(t);$$(e,this,function(e){e.getTraceId=function(){return t&&t.getTraceCtx&&t.getTraceCtx().getTraceId()||o},e.getLastPageViewId=function(){return n},e.initializeIds=function(){a?n=Xoe():a=!0},e.getMuidUserId=function(){var e=Koe(s,"MUID");return e&&e.length?"t:"+e:e},e.setAppUserId=function(e){if(i=null,e)for(var t=0;t<Gle.length;t++)if(Gle[t]===e.substring(0,2)){i=e;break}},e.setDeviceClass=function(e){e&&(r=e)},e.getDeviceClass=function(){return r},e.getAppUserId=function(){return i},e.syncMuid=function(e){var t=DK();if(t&&e){var r=(t.protocol||"http:")+"//"+e+"/c.gif?DI=4050&did=1&t=",n=YU();if(n){var o=n.createElement("IMG");o.style.display="none",o.src=r,o.hidden="",o["aria-hidden"]="true",o.role="presentation"}return!0}return!1},e.getMuidHost=function(e){return Yle[e]}})}return e.visitorId=function(){return Koe(SJ(null),"MUID")},e}(),Xle=function(){function e(){this._timers=[]}return e.prototype._recordTimeSpan=function(e,t){var r=(new Date).getTime();if(t)return r-this._timers[e];this._timers[e]=r},e}();function Jle(e,t,r){var n="";return t&&t[r]?n=t[r]:e&&(n=e[r]),n}var Qle,Zle=function(){function e(e,t,r,n,o,i,a){this._webAnalyticsPlugin=e,this._config=t,this._contentHandler=r,this._id=n,this._pageTagsCallback=o,this.metaTags=i,this._traceLogger=a,this._pageTags={}}return e.prototype._setBasicProperties=function(e,t){e.ver="1.0",e.id=this._id.getLastPageViewId(),$oe(e.name)||(e.name=function(e,t){if(t&&t.pageName)return t.pageName;if(e.callback&&"function"==typeof e.callback.pageName)return e.callback.pageName();if(e.coreData&&e.coreData.pageName)return e.coreData.pageName;var r=(DK()||{}).pathname||"",n=r.replace(/(^\/+|\/+$)/g,"").split("/");return n&&n[n.length-1]?n[n.length-1]:"Home"}(this._config,t)),!$oe(e.uri)&&Woe&&(e.uri=Dle(this._config,DK()))},e.prototype._setCommonProperties=function(e,t,r){var n,o=this;o._setBasicProperties(e,r),o._setPageTags(e,r),o._pageTypeMetaTag=Jle(o.metaTags,o._config.coreData,"pageType"),o._marketMetaTag=Jle(o.metaTags,o._config.coreData,"market"),o._behaviorMetaTag=Jle(o.metaTags,o._config.coreData,"behavior"),$oe(r.pageType)&&(e.pageType=r.pageType),$oe(o._pageTypeMetaTag)&&!$oe(e.pageType)&&(e.pageType=o._pageTypeMetaTag),$oe(o._marketMetaTag)&&(e.market=o._marketMetaTag),e.isLoggedIn=(n=o._config).callback&&"function"==typeof n.callback.signedinStatus?n.callback.signedinStatus():n.isLoggedIn,t.cookieEnabled=EJ()},e.prototype._setPageTags=function(e,t){var r=this;r._pageTags={},r.metaTags&&(r._pageTags.metaTags=r._pageTags.metaTags||{},RH(r.metaTags,function(e,t){"behavior"!==e&&"market"!==e&&"pageType"!==e&&(r._pageTags.metaTags[e]=t)})),r._config.coreData&&r._config.coreData.pageTags&&(r._pageTags=Joe(!0,r._pageTags,r._config.coreData.pageTags)),r._pageTagsCallback&&(r._pageTags=Joe(!0,r._pageTags,r._pageTagsCallback())),$oe(t.pageTags)&&(r._pageTags=Joe(!0,r._pageTags,t.pageTags)),e.properties=e.properties||{},e.properties.pageTags=r._pageTags},e.prototype._getBehavior=function(e){var t;return e&&$oe(e.behavior)?t=e.behavior:$oe(this._behaviorMetaTag)&&(t=this._behaviorMetaTag),this._getValidBehavior(t)},e.prototype._getValidBehavior=function(e){if($oe(e)){var t=void 0,r=parseInt(e);if((t=isNaN(r)?Ile[e]:r)in Ile)return t}return 0},e.prototype._getContentFormatted=function(e){if($oe(e))return pH(e)?JSON.stringify(e):Tle(JSON.stringify(e))},e}(),ece=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rG(t,e),t.prototype.trackContentUpdate=function(e,t){var r={web:{}};r.web.isManual=e.isManual;var n={name:"Ms.Web.ContentUpdate",baseType:"ContentUpdateData",ext:r,data:{},baseData:{},latency:3};MH(["name","uri","market","pageType","isLoggedIn","id","properties","ver","actionType","behavior","pageHeight","content","contentVer","vpHeight","vpWidth","vScrollOffset","hScrollOffset"],function(t){n.baseData[t]=e[t]}),RH(t,function(e,t){n.data[e]||(n.data[e]=t)}),this._webAnalyticsPlugin.core.track(n)},t.prototype.captureContentUpdate=function(e,t){e=$oe(e)?e:{};var r={},n=$oe(t)?t:{};this._setCommonProperties(r,n,e),r.behavior=this._getBehavior(e),$oe(e.actionType)&&(r.actionType=e.actionType);var o=Ale(),i=Cle();r.pageHeight=Uoe?document.body.scrollHeight:null,r.vpHeight=o.h,r.vpWidth=o.w,r.vScrollOffset=i.v,r.hScrollOffset=i.h,r.contentVer="2.0",r.isManual=!e.isAuto;var a=this._getContentFormatted(e.content)||JSON.stringify(this._contentHandler.getVisibleContent());a&&(r.content=a),$oe(e.isDomComplete)?n.isDomComplete=e.isDomComplete:n.isDomComplete=!1,this.trackContentUpdate(r,n)},t}(Zle),tce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rG(t,e),t.prototype.trackPageAction=function(e,t){var r={web:{}};r.web.isManual=e.isManual;var n={name:"Ms.Web.PageAction",baseType:"PageActionData",ext:r,data:{},baseData:{},latency:1};iH(e.sync)||(n.sync=e.sync),n.baseData.name=e.name,n.baseData.uri=e.uri,n.baseData.market=e.market,n.baseData.pageType=e.pageType,n.baseData.isLoggedIn=e.isLoggedIn,n.baseData.id=e.id,n.baseData.properties=e.properties,n.baseData.ver=e.ver,n.baseData.actionType=e.actionType,n.baseData.behavior=e.behavior,n.baseData.clickCoordinates=e.clickCoordinates,n.baseData.content=e.content,n.baseData.contentVer=e.contentVer,n.baseData.targetUri=e.targetUri,RH(t,function(e,t){n.data[e]||(n.data[e]=t)}),this._webAnalyticsPlugin.core.track(n)},t.prototype.capturePageAction=function(e,t,r,n){t=$oe(t)?t:{};var o={},i=$oe(r)?r:{};this._setCommonProperties(o,i,t),o.isManual=!t.isAuto,o.behavior=this._getBehavior(t);var a,s,l,c={};if(n)o.behavior=9;else{var u=this._config||{};if(e&&u.syncPageActionNavClick&&(t.actionType===Fle||t.actionType===Wle)&&"a"===e.tagName.toLowerCase()){var d=(e.getAttribute("href")||"").toLowerCase();d&&(s$(d,"https:")||s$(d,"http:")||s$(d,".")||s$(d,"/"))&&(o.sync=3)}}if(e&&(o.targetUri=function(e){var t="";switch(e.tagName){case"A":case"AREA":t=e.href||"";break;case"IMG":t=Ble(e);break;case"INPUT":var r=e.type;if(r&&Nle[r.toUpperCase()]){var n=DK()||{};t=e.form?e.form.action||n.pathname||"":n.pathname||""}}return t}(e),(c=Joe(c=this._contentHandler.getElementContent(e,jle.PAGE_ACTION),this._getCustomTags(e)))&&c.bhvr&&!$oe(t.behavior))){var f=(s="bhvr",(a=c)&&a[s]&&(l=a[s],delete a[s]),l);o.behavior=this._getValidBehavior(f)}$oe(t.actionType)&&(o.actionType=t.actionType),$oe(t.clickCoordinateX)&&$oe(t.clickCoordinateY)&&(o.clickCoordinates=t.clickCoordinateX+"X"+t.clickCoordinateY),$oe(t.targetUri)&&(o.targetUri=t.targetUri),o.contentVer="2.0";var h=t.content||c;if(!pH(h)){var p=this._config.callback.pageActionContentTags;h=Joe(h,"function"==typeof p?p(e):{},t&&t.contentTags?t.contentTags:{})}o.content=this._getContentFormatted(h),i.timeToAction=this._getTimeToClick(),i.refUri=$oe(t.refUri)?t.refUri:this._config.coreData.referrerUri;var m=this._webAnalyticsPlugin.core&&SJ(this._webAnalyticsPlugin.core),g=Rle(this._config,m,this._traceLogger);g&&(i.cookies=g),this.trackPageAction(o,i)},t.prototype._getCustomTags=function(e){for(var t={};e;){if(!Ole(e))for(var r in e.attributes)if(r&&e.attributes[r]){var n=e.attributes[r].name;n&&0===n.toLowerCase().indexOf("ms.")&&(t[n]=e.attributes[r].value)}e=e.parentElement||e.parentNode}return t},t.prototype._getTimeToClick=function(){var e=r$();if(e&&e.timing){var t=e.timing.navigationStart;if(t&&0!==t)return(new Date).getTime()-t}return-1},t}(Zle),rce=function(e){function t(t,r,n,o,i,a){var s=e.call(this,t,r,null,n,{},{},o)||this;return s._webAnalyticsPlugin=t,s._config=r,s._id=n,s._traceLogger=o,s._timestamp=i,s._maxScroll=a,s}return rG(t,e),t.prototype.trackPageUnload=function(e,t){var r={web:{}};r.web.isManual=e.isManual;var n={name:"Ms.Web.PageUnload",baseType:"PageUnloadData",ext:r,data:{},baseData:{},latency:3},o=this._config||{};(iH(o.syncUnloadAction)||o.syncUnloadAction)&&(n.sync=3),n.baseData.name=e.name,n.baseData.uri=e.uri,n.baseData.id=e.id,n.baseData.properties=e.properties,n.baseData.ver=e.ver,n.baseData.market=e.market,n.baseData.pageType=e.pageType,n.baseData.isLoggedIn=e.isLoggedIn,RH(t,function(e,t){n.data[e]||(n.data[e]=t)}),this._webAnalyticsPlugin.core.track(n)},t.prototype.capturePageUnload=function(e,t){e=$oe(e)?e:{};var r={},n=$oe(t)?t:{},o=Uoe?document.body.scrollHeight:0;if(this._setBasicProperties(r,e),r.isManual=!e.isAuto,n.dwellTime=this._timestamp._recordTimeSpan("dwellTime",!0),n.scrollDepth=e.scrollDepth||this._maxScroll.v.toString()+"/"+o.toString(),n.vpHeight=Ale().h,n.vScrollOffset=e.vScrollOffset||this._maxScroll.v,Woe){var i=r$(),a=i?i.timing:null;a&&a.loadEventStart&&a.navigationStart&&a.loadEventStart>0&&(n.pageLoadTime=a.loadEventStart-a.navigationStart)}this.trackPageUnload(r,n)},t}(Zle),nce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rG(t,e),t.prototype.capturePageView=function(e,t){e=$oe(e)?e:{};var r={},n=$oe(t)?t:{};this._setCommonProperties(r,n,e),r.refUri=$oe(e.referrerUri)?e.referrerUri:this._config.coreData.referrerUri,r.isManual=!e.isAuto;var o=this._webAnalyticsPlugin.core&&SJ(this._webAnalyticsPlugin.core),i=Rle(this._config,o,this._traceLogger);i&&(n.cookies=i),n.behavior=this._getBehavior(e),this._webAnalyticsPlugin.trackPageView(r,n)},t}(Zle),oce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rG(t,e),t.prototype.capturePageViewPerformance=function(e,t){e=$oe(e)?e:{};var r={},n=$oe(t)?t:{};this._setBasicProperties(r,e),this._setPageTags(r,e),r.isManual=!e.isAuto,n.behavior=this._getBehavior(e),n.vpHeight=e.vpHeight,n.vpWidth=e.vpWidth,n.framework=e.framework,n.systemTiming=e.systemTiming,n.customTiming=e.customTiming,this._webAnalyticsPlugin._populatePageViewPerformance(r),this._webAnalyticsPlugin.trackPageViewPerformance(r,n)},t}(Zle),ice={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0},ace=function(){function e(t,r){var n,o,i,a,s,l,c,u,d,f=this;$$(e,this,function(e){function h(e){var t,r={A:!0,BUTTON:!0,AREA:!0,INPUT:!0},o=XU(),i=(e=e||o.event).srcElement||e.target,a={isAuto:!0,clickCoordinateX:e.pageX,clickCoordinateY:e.pageY},s="which"in(t=e)?3===t.which:"button"in t?2===t.button:void 0;if(s)a.actionType=Vle;else if(function(e){return"which"in e?1===e.which:"button"in e?1===e.button:void 0}(e))a.actionType=Fle;else if(function(e){if("keyCode"in e)return 13===e.keyCode}(e))a.actionType=Wle;else if(function(e){if("keyCode"in e)return 32===e.keyCode}(e))a.actionType=$le;else{if(!function(e){return"which"in e?2===e.which:"button"in e?4===e.button:void 0}(e))return;a.actionType=qle}for(;i&&i.tagName;){if(i.control&&r[i.control.tagName.toUpperCase()]&&(i=i.control),r[i.tagName.toUpperCase()]){("INPUT"!==i.tagName.toUpperCase()||ice[i.type.toUpperCase()])&&n&&n.capturePageAction(i,a,{},s);break}i=i.parentElement||i.parentNode}}function p(){e._analyticsPlugin=null,e._traceLogger=null,n=null,o=null,i=null,s=!1,l=!1,c=!1,u=!1,d=!1}p(),n=t,o=r,i=tZ(iX("AutoCaptureHandler"),n._evtNamespace),e._analyticsPlugin=n,e._traceLogger=o,e.pageView=function(){n&&n.capturePageView({isAuto:!0})},e.onLoad=function(){n&&!d&&(Mle(function(){n&&n.capturePageViewPerformance({isAuto:!0}),n&&n.captureContentUpdate({isAuto:!0,isDomComplete:!0})},i),d=!0)},e.click=function(){if(!a){var e=XU(),t=YU();if(e&&e.addEventListener)rZ(e,-1!==navigator.appVersion.indexOf("MSIE")?"click":"mousedown",h,i),rZ(e,"keyup",h,i);else t&&t.attachEvent&&(rZ(t,"click",h,i),rZ(t,"keyup",h,i));a=!0}},e.scroll=function(e){if(!s){var t=_le(null,function(){n&&n.captureContentUpdate({isAuto:!0,actionType:Hle})},e.scroll,f);rZ(XU(),"scroll",t,i),s=!0}},e.maxScroll=function(e){if(!l){rZ(XU(),"scroll",function(){var t=Cle();e.v=e.v>t.v?e.v:t.v},i),l=!0}},e.resize=function(e){if(!c){var t=_le(function(){n&&n.captureContentUpdate({isAuto:!0,actionType:Ule})},null,e.resize,f);rZ(XU(),"resize",t,i),c=!0}},e.onUnload=function(){function e(){n&&n.capturePageUnload({isAuto:!0})}if(!u){var t=((n||{}).core||{}).config.disablePageUnloadEvents;aZ(e,t,i),lZ(e,t,i),u=!0}},e.teardown=function(e,t){nZ(XU(),null,null,i),nZ(YU(),null,null,i),sZ(null,i),cZ(null,i),p()},e._processClick=h})}return e.__ieDyn=1,e}(),sce={longNames:{isShortNames:!1,id:"data-bi-id",areaName:"data-bi-area",slotNumber:"data-bi-slot",contentName:"data-bi-name",contentSource:"data-bi-source",templateName:"data-bi-view",productId:"data-bi-product",contentType:"data-bi-type",parentId:"data-bi-parentid",parentName:"data-bi-parentname"},shortNames:{isShortNames:!0,id:"data-bi-id",areaName:"data-bi-an",slotNumber:"data-bi-sn",contentName:"data-bi-cn",contentSource:"data-bi-cs",templateName:"data-bi-tn",productId:"data-bi-pid",contentType:"data-bi-ct",parentId:"data-bi-pi",parentName:"data-bi-pn"}},lce={parentId:"parentId",parentName:"parentName"},cce={parentId:"pI",parentName:"pN"},uce=function(){function e(e,t){this._config=e,this._traceLogger=t,this._contentBlobFieldNames=null,this._contentBlobFieldNames=!0===this._config.useShortNameForContentBlob?sce.shortNames:sce.longNames}return e.prototype.getMetadata=function(){var e={},t={};return Uoe&&(t=this._getMetaDataFromDOM("awa-",!0),this._config.autoCapture&&this._config.autoCapture.msTags&&(e=this._getMetaDataFromDOM("ms.",!1))),Joe(!0,t,e)},e.prototype.getVisibleContent=function(){var e,t=Ale(),r={top:0,bottom:(e=t).h,left:0,right:e.w},n=null;Uoe&&(n=document.querySelectorAll(Tle(this._contentBlobFieldNames.areaName)+","+Tle(this._contentBlobFieldNames.slotNumber)+","+Tle(this._config.biBlobAttributeTag)));var o=[];if(n)for(var i=0;i<n.length;i++){var a=n[i];if(!Sle(a)&&xle(a,r)){var s=this.getElementContent(a,jle.CONTENT_UPDATE);s&&o.push(s)}}return o},e.prototype.getElementContent=function(e,t){if(!e)return{};var r,n,o,i,a={};if(this._isTracked(e))if(this._isTrackedWithDataM(e)){n=(r=e).getAttribute(this._config.biBlobAttributeTag);try{a=JSON.parse(n)}catch(Wqe){rJ(this._traceLogger,1,506,"Can not parse "+n)}}else this._isTrackedWithDataBi(e)&&(o=e,a=Joe(a,this._populateElementContentwithDataBi(o,e)));else if((r=kle(e,this._config.biBlobAttributeTag))&&(n=r.getAttribute(this._config.biBlobAttributeTag)),n)try{a=JSON.parse(n)}catch(Wqe){rJ(this._traceLogger,1,506,"Can not parse "+n)}else o=yle(e,this._isTrackedWithDataBi),a=Joe(a,this._populateElementContentwithDataBi(o,e));return RH(i=a,function(e,t){(!$oe(t)||"{}"===JSON.stringify(t)&&"callback"!==e)&&delete i[e]}),this._config.autoCapture.lineage&&t===jle.PAGE_ACTION&&(a=Joe(a,this.getLineageDetails(e))),this._config.autoPopulateParentIdAndParentName&&(a=Joe(a,this._getParentDetails(r||o,a))),a},e.prototype.getLineageDetails=function(e){for(var t,r,n,o=[],i=[],a=this._config.biBlobAttributeTag,s="data-module-id";e;){var l=e.getAttribute(a)||e[a],c=e.getAttribute(s)||e[s];if(l){try{var u=JSON.parse(l)}catch(Wqe){rJ(this._traceLogger,1,507,"Can not parse "+l)}u&&(r=u.cN||u.cT,n=u.id||void 0,(r||n)&&(o.push(r),c&&(t=r),i.push(n)))}else r=e.getAttribute(this._contentBlobFieldNames.contentName)||e.getAttribute(this._contentBlobFieldNames.contentType),n=e.getAttribute(this._contentBlobFieldNames.id)||void 0,(r||n)&&(o.push(r),c&&(t=r),i.push(n));e=e.parentElement}return{lineage:o.join(">"),lineageById:i.join(">"),lineageContainerName:t}},e.prototype._populateElementContentwithDataBi=function(e,t){var r={};if(!e){if(!this._config.useDefaultContentName)return r;e=t}var n=kle(e,this._contentBlobFieldNames.areaName),o=Joe({},this._getAreaContent(n)),i=this._config.callback.contentName?this._config.callback.contentName(e,this._config.useDefaultContentName):"",a=this._getDefaultContentName(t,this._config.useDefaultContentName);(r={id:e.getAttribute(this._contentBlobFieldNames.id)||e.id||"",aN:o.areaName,sN:e.getAttribute(this._contentBlobFieldNames.slotNumber),cN:i||e.getAttribute(this._contentBlobFieldNames.contentName)||a||e.getAttribute("alt")||"",cS:e.getAttribute(this._contentBlobFieldNames.contentSource)||o.contentSource,tN:o.templateName,pid:e.getAttribute(this._contentBlobFieldNames.productId),cT:e.getAttribute(this._contentBlobFieldNames.contentType)||o.type,pI:e.getAttribute(this._contentBlobFieldNames.parentId),pN:e.getAttribute(this._contentBlobFieldNames.parentName)}).id&&r.aN&&r.sN&&r.cN||rJ(this._traceLogger,2,515,"Invalid content blob.  Missing required attributes (id, aN/area, sN/slot), cN/contentName.  Content information will still be collected!"),this._contentBlobFieldNames.isShortNames||(r={contentId:r.id,areaName:r.aN,slotNumber:r.sN,contentName:r.cN,contentSource:r.cS,templateName:r.tN,productId:r.pid,contentType:r.cT,parentId:r.pI,parentName:r.pN});for(var s,l=0;l<e.attributes.length;l++){if((s=e.attributes[l]).name!==this._contentBlobFieldNames.id&&s.name!==this._contentBlobFieldNames.areaName&&s.name!==this._contentBlobFieldNames.slotNumber&&s.name!==this._contentBlobFieldNames.contentName&&s.name!==this._contentBlobFieldNames.contentSource&&s.name!==this._contentBlobFieldNames.templateName&&s.name!==this._contentBlobFieldNames.productId&&s.name!==this._contentBlobFieldNames.contentType&&s.name!==this._contentBlobFieldNames.parentId&&s.name!==this._contentBlobFieldNames.parentName&&-1!==s.name.indexOf("data-bi-"))r[s.name.replace("data-bi-","")]=s.value}return r},e.prototype._getMetaDataFromDOM=function(e,t){var r,n={};if(Uoe){r=document.querySelectorAll("meta");for(var o=0;o<r.length;o++){var i=r[o];if(i.name)if(0===i.name.toLowerCase().indexOf(e))n[t?i.name.replace(e,""):i.name]=i.content}}return n},e.prototype._getAreaContent=function(e){if(e)return{areaName:e.getAttribute(this._contentBlobFieldNames.areaName),templateName:e.getAttribute(this._contentBlobFieldNames.templateName),contentSource:e.getAttribute(this._contentBlobFieldNames.contentSource),product:e.getAttribute(this._contentBlobFieldNames.productId),type:e.getAttribute(this._contentBlobFieldNames.contentType)}},e.prototype._getDefaultContentName=function(e,t){if(!1===t||Ole(e)||!e.tagName)return"";var r,n=YU()||{};switch(e.tagName){case"A":r=n.all?e.innerText||e.innerHTML:e.text||e.innerHTML;break;case"IMG":case"AREA":r=e.alt;break;default:r=e.value||e.name||e.alt||e.innerText||e.id}return r.substring(0,200)},e.prototype._getParentDetails=function(e,t){var r=this._contentBlobFieldNames.isShortNames?cce.parentId:lce.parentId,n=this._contentBlobFieldNames.isShortNames?cce.parentName:lce.parentName,o=t[r],i=t[n];return o||i||!e?{}:this._populateParentInfo(e,r,n)},e.prototype._isTrackedWithDataM=function(e){for(var t=e.attributes,r=0;r<t.length;r++)if("data-m"===t[r].name)return!0;return!1},e.prototype._isTrackedWithDataBi=function(e){for(var t=e.attributes,r=0;r<t.length;r++)if(t[r].name.indexOf("data-bi-")>=0)return!0;return!1},e.prototype._isTracked=function(e){for(var t=e.attributes,r=0;r<t.length;r++)if("data-m"===t[r].name||t[r].name.indexOf("data-bi-")>=0)return!0;return!1},e.prototype._populateParentInfo=function(e,t,r){var n,o,i={},a=this._config.biBlobAttributeTag,s=yle(e.parentElement,this._isTracked);if(s){var l=s.getAttribute(a)||e[a];if(l){try{var c=JSON.parse(l)}catch(Wqe){rJ(this._traceLogger,1,507,"Can not parse "+l)}c&&(n=c.id,o=c.cN)}else n=s.getAttribute(this._contentBlobFieldNames.id),o=s.getAttribute(this._contentBlobFieldNames.contentName);n&&(i[t]=n),o&&(i[r]=o)}return i},e}(),dce=aU({useDefaultContentName:!0,useShortNameForContentBlob:!0,debounceMs:OX({scroll:600,resize:3e3}),biBlobAttributeTag:"data-m",isLoggedIn:!1,shareAuthStatus:!1,cookiesToCollect:["MSFPC","ANON"],autoCapture:OX({pageView:!0,onLoad:!0,onUnload:!0,click:!0,scroll:!1,resize:!1,lineage:!1,jsError:!0,msTags:!0}),callback:OX({pageName:zX(),pageActionPageTags:zX(),pageViewPageTags:zX(),contentUpdatePageTags:zX(),pageActionContentTags:zX(),signedinStatus:zX()}),coreData:OX({referrerUri:Uoe?document.referrer:"",requestUri:"",pageName:"",pageType:"",product:"",market:"",pageTags:{}}),autoPopulateParentIdAndParentName:!1,syncMuid:!1,muidDomain:"microsoft.com",mscomCookies:!1,manageCv:!1,urlCollectHash:!1,urlCollectQuery:!1,manualPageUnload:!1,syncPageActionNavClick:!0,syncUnloadAction:!0}),fce=function(e){function t(){var r,n,o,i,a,s,l,c,u=e.call(this)||this;u.identifier="WebAnalyticsPlugin",u.version="4.3.9";var d,f,h,p,m,g,v,y=!1;return $$(t,u,function(e,t){function u(){r=null,n=null,o=null,i=null,a=null,s=null,l=null,c={h:0,v:0},y=!1,d=null,f=null,h=null,p=null,m=!1,g=null}function b(e){h&&(e&&(p.pageView&&h.pageView(),p.onLoad&&h.onLoad()),p.click&&h.click(),p.scroll&&h.scroll(l.debounceMs),p.resize&&h.resize(l.debounceMs),(p.onUnload||l.manualPageUnload)&&h.maxScroll(c),p.onUnload&&h.onUnload())}function w(e){var t={};return void 0!==e.isManual&&(t.web={},t.web.isManual=void 0===e.isManual||e.isManual,delete e.isManual),t}u(),e.updateCoreDataConfig=function(e){l.coreData=Joe(!0,l.coreData,e)},e.refreshMetadata=function(){var e=f.getMetadata();r.metaTags=e,o.metaTags=e,n.metaTags=e,a.metaTags=e},e.initialize=function(u,y,w){t.initialize(u,y,w),function(t,u){var y=e.core,w=e.diagLog();e.id=new Kle(y),d=new Xle,h=h||new ace(e,w),e._addHook(AX(t,function(){var h=lQ(null,t,y).getExtCfg(e.identifier,dce);p=(l=h).autoCapture;var b=y.getWParam;if(y.getWParam=function(){var e=0;return l.mscomCookies&&(e|=1),e|b.call(y)},l.disableExceptionTracking=t.extensionConfig[e.identifier].disableExceptionTracking=!p.jsError,l.manageCv){for(var x=0;x<u.length;x++)if("CorrelationVectorPlugin"===u[x].identifier){l.manageCv=!0,s=u[x];break}s||(rJ(e.diagLog(),2,508,'Automatic Cv management is set to "true" in config.  However, cv plugin is not available. Disabling automatic Cv management'),l.manageCv=!1)}f=v||new uce(l,w);var S,k,E=l.callback,T=f.getMetadata(),_=e.id;o=new ece(e,l,f,_,E.contentUpdatePageTags,T,w),r=new nce(e,l,f,_,E.pageViewPageTags,T,w),n=new tce(e,l,f,_,E.pageActionPageTags,T,w),o=new ece(e,l,f,_,E.contentUpdatePageTags,T,w),i=new rce(e,l,_,w,d,c),a=new oce(e,l,f,_,E.pageViewPageTags,T,w),S=!!l.syncMuid,k=!m||g!==l.muidDomain,S&&k&&Mle(function(){var t=e.id.getMuidHost(l.muidDomain);e.id.syncMuid(t)},e._evtNamespace),m=!!l.syncMuid,g=l.muidDomain})),b(!0)}(u,w)},e.processTelemetry=function(r,n){Zoe(r,e.identifier);var o=r;"PageviewData"===o.baseType?(o.name="Ms.Web.PageView",o.latency=3):"ExceptionData"===o.baseType?(o.name="Ms.Web.ClientError",o.latency=1,delete o.baseData.aiDataContract):"PageviewPerformanceData"===o.baseType&&(o.name="Ms.Web.PageViewPerformance",o.latency=1,delete o.baseData.isValid,delete o.baseData.durationMs);var i=null;"PageviewData"!==o.baseType?l.manageCv&&(i=s.getCv())&&i.increment():l.manageCv&&((i=s.getCv())?i.seed():i=s.getCv()),t.processTelemetry(o,n)},e.trackEvent=function(t,r){t.latency=t.latency||1,t.baseData=t.baseData||{},t.data=t.data||{},$oe(r)&&RH(r,function(e,r){t.data[e]=r}),e.core.track(t)},e.trackPageView=function(r,n){d._recordTimeSpan("dwellTime",!1),c.v=0,y=!1,e.id.initializeIds(),r.id=e.id.getLastPageViewId(),t.sendPageViewInternal(r,n,w(r))},e.capturePageView=function(e,t){r.capturePageView(e,t)},e.trackPageViewPerformance=function(e,r){t.sendPageViewPerformanceInternal(e,r,w(e))},e.capturePageViewPerformance=function(e,t){a.capturePageViewPerformance(e,t)},e.trackException=function(e,r){e.id=e.id||Xoe(),t.sendExceptionInternal(e,r,w(e))},e.trackPageAction=function(e,t){n.trackPageAction(e,t)},e.capturePageAction=function(e,t,r,o){(function(e,t){return!(t&&t.isAuto&&$oe(kle(e,"data-bi-mto"))||Sle(e))})(e,t)&&n.capturePageAction(e,t,r,o)},e.trackContentUpdate=function(e,t){o.trackContentUpdate(e,t)},e.captureContentUpdate=function(e,t){o.captureContentUpdate(e,t)},e.trackPageUnload=function(e,t){y||(y=!0,i.trackPageUnload(e,t))},e.capturePageUnload=function(e,t){y||(y=!0,i.capturePageUnload(e,t))},e._populatePageViewPerformance=function(t){var r=e._pageViewPerformanceManager;r&&r.populatePageViewPerformanceEvent(t)},e.setContentHandler=function(e){f=v=e},e.setAutoCaptureHandler=function(e){h!==e&&(h&&h.teardown(),h=e,b(!1))},e._doTeardown=function(e,r){h&&h.teardown(e,r),t._doTeardown(e,r),u()},e._getDbgPlgTargets=function(){return[l]}}),u}return rG(t,e),t.__ieDyn=1,t}(X4),hce=aU({cookieCfg:{ref:!0,v:{}},extensions:{rdOnly:!0,ref:!0,v:[]},channels:{rdOnly:!0,ref:!0,v:[]},featureOptIn:(Qle={},Qle.zipPayload={mode:1},Qle),extensionConfig:{ref:!0,v:{}}}),pce=["snippet","_webAnalytics","_postChannel","_propertyManager","_extensions"],mce=["queue","extensions","version","sv"],gce=function(e){function t(){var r,n,o,i=e.call(this)||this;function a(){n=new ese,o=new vle,r=new fce}return $$(t,i,function(e,t){a(),e.initialize=function(i,a){FJ(e,function(){return"ApplicationInsights:initialize"},function(){i=CX(i,hce,e.logger,!1).cfg;var s=[o,r];if(a&&(s=s.concat(a)),i||_H("You must provide a config object!"),i.channels&&i.channels.length>0){for(var l=!1,c=0;c<i.channels[0].length;c++)if(i.channels[0][c].identifier===n.identifier){l=!0;break}l||gW(i.channels[0],n)}else i.channels.push([n]);var u=i.extensionConfig=i.extensionConfig||[];u[n.identifier]=u[n.identifier]||i&&i.channelConfiguration||{},u[o.identifier]=u[o.identifier]||i&&i.propertyConfiguration||{},u[r.identifier]=u[r.identifier]||i&&i.webAnalyticsConfiguration||{};try{t.initialize(i,s),e.isInitialized()&&XH(i,{channelConfiguration:{g:function(){return i.extensionConfig[n.identifier]}},propertyConfiguration:{g:function(){return i.extensionConfig[o.identifier]}},webAnalyticsConfiguration:{g:function(){return i.extensionConfig[r.identifier]}}})}catch(d){rJ(e.logger,1,514,"Failed to initialize SDK."+TH(d))}},function(){return{config:i,extensions:a}})},e.getPropertyManager=function(){return o},e.getPostChannel=function(){return n},e.getWebAnalyticsExtension=function(){return r},pK(e,function(){return r},["trackEvent","trackPageView","trackPageAction","trackContentUpdate","trackPageUnload","trackException","trackPageViewPerformance","capturePageView","capturePageViewPerformance","capturePageAction","captureContentUpdate","capturePageUnload","_onerror"]),e.emptySnippetQueue=function(t){try{if(t&&RH(e,function(r,n){if(dH(r)&&!fH(n)&&r&&"_"!==r[0]&&-1===vW(pce,r))try{t[r]=n}catch(o){rJ(e.logger,2,514,"Failed to set ["+r+"] during initialization."+TH(o))}}),pH(t.queue)){for(var r=t.queue.length,n=0;n<r;n++){(0,t.queue[n])()}t.queue=void 0,delete t.queue}}catch(o){o&&fH(o.toString)&&o.toString()}},e.updateSnippetDefinitions=function(e){var t=i;t.snippet=e,e.sv||e.version,e.config&&t.updateCfg(e.config,!0),fK(e,t,function(e){return e&&-1===vW(pce,e)&&-1===vW(mce,e)})},e.unload=function(e,r,n){return void 0===e&&(e=!0),t.unload(e,function(e){a(),r&&r(e)},n)}}),i}return rG(t,e),t.__ieDyn=1,t}(nie);function vce(e,t){var r="undefined"!=typeof console?console:null;if(r){var n="warn";r[n]||(n="log"),r[n]("Failed to initialize AppInsights JS SDK for instance "+(e||"<unknown>")+" - "+t)}}!function(){try{var e="oneDSWeb",t=WU();if(t)if("undefined"!=typeof JSON){if(void 0!==t[e=t.onedsSDK||e]){var r=t[e],n=new gce;n.updateSnippetDefinitions(r),n.initialize(r.config,r.extensions),t[e]=n,n.emptySnippetQueue(r)}}else vce(e,"Missing JSON - you must supply a JSON polyfill!");else vce(e,"Missing global/window")}catch(Wqe){vce(e,"Unexpected Error: "+TH(Wqe))}}();class yce{constructor(){this.pageName=""}_serviceStart(){const e=window;e.telemetry&&e.telemetry.webAnalyticsPlugin?this.analytics=e.telemetry.webAnalyticsPlugin:(this.analytics=new gce,this._initializeService())}_initializeService(){const e=window.location.hostname.includes("dev")||window.location.hostname.includes("ppe")?"PPE":"PROD",t=window.location.hostname,r=(()=>{try{const e=window.owap,t="string"==typeof e?JSON.parse(e):e||{},r=t?.id?.core?.config?.instrumentationKey,n="string"==typeof r?r.trim():"";return""!==n?n:(console.warn("OneDS: invalid instrumentation key from window.owap, using environment fallback"),this.pageName=b8.PAGE_NAMES.SIGNUP,this._resolveEnvIkey())}catch{return console.warn("OneDS: failed to read window.owap, using environment instrumentation key fallback"),this.pageName=b8.PAGE_NAMES.SIGNUP,this._resolveEnvIkey()}})();r||console.warn("OneDS: instrumentation key is not configured. Telemetry may be disabled.");var n={instrumentationKey:r,channelConfiguration:{eventsLimitInMem:50},webAnalyticsConfiguration:{autoCapture:{scroll:!1,pageView:!1,onLoad:!1,onUnload:!1,click:!1,resize:!1,jsError:!1},coreData:{market:"en-us",pageName:t},urlCollectQuery:!0,useShortNameForContentBlob:!0},propertyConfiguration:{env:e}};this.analytics.initialize(n,[])}_resolveEnvIkey(){const e=window.location.hostname,t=e.endsWith(".azurewebsites.net");return ve.includes(e)||t?"c72e6b24df604532a6282edd268b4ba4-9cdee1fe-5d2f-4626-9620-dbad9b53a8e5-8065":"7e1632e14a724cda8b5e187382210a8c-106fefb8-ffaa-4c8f-8aad-ca028a134382-7413"}capturePageView(){this.analytics.capturePageView()}capturePageAction(e){const t=C7(),r={...e,...this.pageName&&{pageName:this.pageName},consentStatus:t.status,rawConsent:t.raw,consentSource:t.source};this.analytics.capturePageAction(document.createElement("div"),r)}captureContentUpdate(e){e&&null!=e.content||R.warn("OneDS: captureContentUpdate called without overrideValues.content; emitting anyway for validation visibility.");const t={...e,...this.pageName&&{pageName:this.pageName}};this.analytics.captureContentUpdate(t)}}let bce=null,wce=new Set,xce=new Set;function Sce(){return bce||(bce=new yce,bce._serviceStart()),bce}function kce(e,t){if(wce.has(e))return R.log(`OneDS: Page action '${e}' already sent, skipping duplicate`),!1;try{return Sce().capturePageAction(t),wce.add(e),R.log(`OneDS: Page action '${e}' sent`),!0}catch(r){return R.error(`OneDS: Failed to send page action '${e}'`,r),!1}}function Ece(e){try{Sce().capturePageAction(e),R.log("OneDS: Page action sent (repeatable)")}catch(t){R.error("OneDS: Failed to send page action",t)}}function Tce(e,t){if(xce.has(e))return R.log(`OneDS: Content update '${e}' already sent, skipping duplicate`),!1;try{return Sce().captureContentUpdate(t),xce.add(e),R.log(`OneDS: Content update '${e}' sent`),!0}catch(r){return R.error(`OneDS: Failed to send content update '${e}'`,r),!1}}const _ce=["http","https","mailto","tel"],Cce=(e,t=_ce)=>{if("string"!=typeof e)return!1;const r=e.trim();if(!r)return!1;try{const e=new URL(r).protocol.slice(0,-1).toLowerCase();return t.includes(e)}catch{return!1}};function Ace(e){return e.replace(/\buser\s*\/\s*mo\b/gi,"per user per month").replace(/\s*\/\s*mo\b/gi," per month")}function Ice(e){return e?e.replace(/\s+/g," ").trim().substring(0,100).concat(e.length>100?"...":""):""}const{log:Pce,logWarn:Nce,logError:Bce}=R.withKind("adaptiveCard"),Oce={toggleInputToggle:sS("AdaptiveCard/TOGGLEINPUTTOGGLE")},Dce=(e,t)=>{const r=e.closest(".ac-adaptiveCard"),n=r?.querySelector(".ac-textBlock")?.textContent?.trim(),o=r?.querySelector(".ac-textBlock:nth-child(2)")?.textContent?.trim(),i=e.tagName.toLowerCase(),a="button"===i||"button"===e.getAttribute("role"),s="img"===i,l="link"===e.getAttribute("role"),c=e.textContent?.trim()||"",u=e.getAttribute("value")||e.getAttribute("data-value")||"",d=e.getAttribute("id")||e.getAttribute("data-id")||"",f=e.getAttribute("title")||"";let h={};a&&(h={buttonText:c,buttonValue:u,buttonId:d,buttonTitle:f}),s&&(h={imageAlt:e.getAttribute("alt")||"",imageSrc:e.getAttribute("src")||"",imageTitle:f,imageId:d}),l&&(h={linkUrl:e.getAttribute("title")||""});const p=f.includes("chataction://sendmessage")||e.getAttribute("href")?.includes("chataction://sendmessage")||e.getAttribute("data-action")?.includes("chataction://sendmessage"),m=Array.from(e.attributes).filter(e=>e.name.startsWith("data-")).reduce((e,t)=>(e[t.name]=t.value,e),{});return{cardTitle:n||"",englishCardTitle:t||"",cardSubtitle:o||"",elementType:i,elementText:c,elementValue:u,elementId:d,elementTitle:f,isButton:a,isImage:s,isLink:l,...h,isLpSurveyElement:p,existingDataAttrs:m,cardElement:r,element:e}},Rce=(e,t)=>{if(e.dataset.biCompnm=b8.COMPONENT_NAMES.AI_ASSISTANT,e.dataset.biAn=b8.AREA_NAMES.AI_CHAT_DRAWER,e.dataset.biView=b8.VIEW.AI_CHAT_DRAWER,t.isButton){const r=t;e.dataset.biCn=t.elementText||r.buttonValue||"button",e.dataset.biEcn=t.elementText||r.buttonValue||"button",e.dataset.biCt=b8.CONTENT_TYPES.PROMPT_BUTTON,e.dataset.biBhvr=b8.BEHAVIORS.PROMPT_BUTTON_BHVR,t.isLink&&(e.dataset.biBhvr=""),t.isLpSurveyElement&&(e.dataset.biBhvr=b8.BEHAVIORS.SURVEY_INITIATE,e.dataset.biHn=t.cardTitle,e.dataset.biEhn=t.englishCardTitle||b8.HEADER_NAMES.AI_POWERED_ASSISTANT),t.cardTitle&&!t.isLpSurveyElement&&(e.dataset.biHn=t.cardTitle,e.dataset.biEhn=t.englishCardTitle||b8.HEADER_NAMES.AI_POWERED_ASSISTANT),t.elementId&&!t.isLpSurveyElement&&(e.dataset.biId=t.elementId),!t.isLpSurveyElement&&t.cardTitle?.toLowerCase().includes(b8.SCENARIO_NAMES.QUOTE.toLowerCase())&&(e.dataset.biScn=b8.SCENARIO_NAMES.QUOTE,e.dataset.biBhvr=b8.BEHAVIORS.TRIGGERED.toString(),e.dataset.biCt=b8.CONTENT_TYPES.BUTTON,t.elementText.toLowerCase().includes(b8.CONTENT_TYPES.EMAIL.toLowerCase())?(e.dataset.biStpnum=b8.STEP_NUMBERS.FOUR,e.dataset.biScnstp=b8.SCENARIO_STEPS.CONFIRM,e.dataset.biId=b8.IDS.AI_QUOTE_DRAFT_ACCEPTED):t.elementText.toLowerCase().includes(b8.CONTENT_TYPES.SUBMIT.toLowerCase())&&(e.dataset.biScnstp=b8.SCENARIO_STEPS.ENTER_EMAIL,e.dataset.biStpnum=b8.STEP_NUMBERS.FIVE,e.dataset.biId=b8.IDS.AI_QUOTE_EMAIL_REQUESTED))}else if(t.isImage){const r=t,n=r.imageAlt||r.imageTitle||"image";if(e.dataset.biCn=n,e.dataset.biEcn=n,e.dataset.biBhvr=b8.BEHAVIORS.SURVEY_INITIATE,e.dataset.biCt=b8.CONTENT_TYPES.STARS,t.cardTitle&&(e.dataset.biHn=t.cardTitle,e.dataset.biEhn=t.englishCardTitle||b8.HEADER_NAMES.AI_POWERED_ASSISTANT),t.isLpSurveyElement){const t=n.match(/(\d+)/),r=t?parseInt(t[1]??"1",10):1;if(t){const t=r>1?"stars":"star";e.dataset.biCn=`${n} ${t}`,e.dataset.biEcn=`${n} ${t}`}else e.dataset.biCn=n,e.dataset.biEcn=n}}else e.dataset.biCn=t.elementText||t.elementType,e.dataset.biEcn=t.elementText||t.elementType,e.dataset.biHn=t.cardTitle,e.dataset.biEhn=t.englishCardTitle||b8.HEADER_NAMES.AI_POWERED_ASSISTANT},Mce=e=>(e||"").trim().toLowerCase(),zce=e=>{const t=e.dataset.biCn===b8.CONTENT_NAMES.RESUME_CONVERSATION||e.dataset.biCn===b8.CONTENT_NAMES.START_FRESH;return Boolean(e.dataset.biId&&t&&(r=e,r?.closest(".adaptive-card-container")?.getAttribute("data-card-id")===b8.IDS.AI_CHAT_RESUME_OFFER_FROM_EMAIL));var r},jce=(e,t)=>{const r=((e,t)=>{const r=document.activeElement;if(r instanceof HTMLButtonElement&&e?.contains(r)&&zce(r))return r;if(!e||!t)return null;const n=Mce(t);return Array.from(e.querySelectorAll(".ac-actionSet button")).find(e=>zce(e)&&Mce(e.textContent)===n)||null})(e,t);if(!r)return;const n=Number.parseInt(r.dataset.biBhvr||"",10);Ece({behavior:Number.isNaN(n)?b8.BEHAVIORS.CLICK:n,actionType:b8.ACTION_TYPES.CLICK,contentTags:{...r.dataset.biCompnm&&{compnm:r.dataset.biCompnm},...r.dataset.biAn&&{aN:r.dataset.biAn},...r.dataset.biView&&{view:r.dataset.biView},...r.dataset.biCt&&{cT:r.dataset.biCt},...r.dataset.biCn&&{cN:r.dataset.biCn},...r.dataset.biEcn&&{ecn:r.dataset.biEcn},...r.dataset.biHn&&{hn:r.dataset.biHn},...r.dataset.biEhn&&{ehn:r.dataset.biEhn},...r.dataset.biId&&{id:r.dataset.biId},...r.dataset.biSn&&{sN:r.dataset.biSn}}})},Lce=(e,t,r,n)=>{if(Array.isArray(e))for(const o of e){if(!o||"object"!=typeof o)continue;const e="Container"===o.type&&"string"==typeof o.id&&o.id.startsWith(t),i=r||e;"TextBlock"===o.type&&"heading"===o.style&&n.push(i),Lce(o.items,t,i,n),Lce(o.columns,t,i,n),Lce(o.body,t,i,n)}},Fce=[{cardId:"uca-quotex-productlist-container",prefix:"uca-quotex-product-",resolveLevel:e=>e?"5":"4"},{cardId:"uca-quotex-quote-card",prefix:"uca-quotex-quote-item-",resolveLevel:e=>e?"4":null}],Vce=e=>{const t=Kw(),{sendMessageWithTelemetry:r}=v8(),[n,o]=g.useState(!1),[i,a]=g.useState("False"),[s,l]=g.useState(null),[c,u]=g.useState(null),d=g.useMemo(()=>(e=>{const t=e=>{if(Array.isArray(e))for(const r of e){if(!r||"object"!=typeof r)continue;const e=r;if("TextBlock"===e.type&&"string"==typeof e.text&&e.text.trim())return e.text.trim();const n=t(e.items)??t(e.columns)??t(e.body);if(n)return n}},r=e?.body;return t(r)})(e.attachment.content)||"",[e.attachment.content]),f=g.useRef(null);g.useEffect(()=>{if(n&&f.current){f.current.querySelectorAll(".ac-actionSet button").forEach(e=>{const t=e;t.textContent!==s?(t.disabled=!0,t.style.opacity="0.5",t.style.pointerEvents="none"):t.classList.add("action-executed")});f.current.querySelectorAll("input, textarea, select").forEach(e=>{const t=e;t.disabled=!0,t.setAttribute("aria-disabled","true")})}},[n,s]),g.useEffect(()=>{if(f.current){f.current.querySelectorAll('input[type="checkbox"]').forEach(e=>{const t=e,r=t.getAttribute("id"),n=t.closest(".ac-container");if(n){const e=t.closest(".ac-input-container"),r=n.querySelectorAll(".ac-textBlock[id]"),o=[];if(r.forEach(t=>{if(e&&e.contains(t))return;const r=t.getAttribute("id");r&&o.push(r)}),o.length>0){const e=(t.getAttribute("aria-labelledby")||"").split(/\s+/).filter(Boolean),r=o.filter(t=>!e.includes(t));r.length>0&&t.setAttribute("aria-labelledby",[...e,...r].join(" "))}}const o=Dce(t,d);if(((e,t)=>{e.dataset.biCompnm=b8.COMPONENT_NAMES.AI_ASSISTANT,e.dataset.biAn=b8.AREA_NAMES.AI_CHAT_DRAWER,e.dataset.biView=b8.VIEW.AI_CHAT_DRAWER,e.dataset.biHn=b8.HEADER_NAMES.AI_POWERED_ASSISTANT,e.dataset.biEhn=t.englishCardTitle||b8.HEADER_NAMES.AI_POWERED_ASSISTANT;const r=e.checked?"off":"on";e.dataset.biCn=r,e.dataset.biEcn=r,e.dataset.biCt=b8.CONTENT_TYPES.CHECKBOX,e.dataset.biBhvr=b8.BEHAVIORS.PROMPT_BUTTON_BHVR,t.cardTitle&&(e.dataset.biHn=t.cardTitle)})(t,o),!t.dataset.handlerAttached){const e=()=>{const e=t.checked?"on":"off";t.dataset.biCn=e,t.dataset.biEcn=e};t._changeHandler=e,t.addEventListener("change",e),t.dataset.handlerAttached="true"}if(r){const e=f.current?f.current.querySelector(`label[for="${r}"]`):null;if(e){const t=e.querySelector(".ac-textBlock");if(t){const e=t;e.dataset.markdown||(e.dataset.markdown=e.textContent||"");const r=Aoe(e.dataset.markdown,{markdownRespectCRLF:!0,markdownRenderHTML:!1},{codeBlockCopyButtonTagName:"button",externalLinkAlt:"Opens in new tab"});e.innerHTML=CE.sanitize(r,{ALLOWED_TAGS:["a","button","strong","em","code","pre","br","b","i","u","p","span","ul","ol","li"],ALLOWED_ATTR:["href","title","target","rel","type","role","tabindex","aria-label","aria-describedby","aria-controls","aria-expanded","aria-pressed"],ALLOW_DATA_ATTR:!0})}}}})}},[e.attachment.content]),g.useEffect(()=>{if(f.current&&c?.startsWith("uca-quotex")){f.current.querySelectorAll(".ac-textBlock").forEach(e=>{const t=e,r=t.textContent?.trim();if(!r)return;const n=Ace(r);n!==r&&t.setAttribute("aria-label",n)})}},[e.attachment.content,c]),g.useEffect(()=>{const t=f.current,r=Fce.find(e=>e.cardId===c);if(!t||!r)return;const n=[];Lce(e.attachment.content?.body,r.prefix,!1,n);const o=t.querySelectorAll('[role="heading"]');n.length===o.length?o.forEach((e,t)=>{const o=r.resolveLevel(!!n[t]);o&&e.setAttribute("aria-level",o)}):Nce("AdaptiveCard",`Skipping ${r.cardId} heading levels: ${n.length} JSON headings vs ${o.length} rendered`)},[e.attachment.content,c]),g.useEffect(()=>{if(f.current){for(const e of h.getAllActions()){const t=e,r=t.renderedElement;r&&t.id&&!r.id&&(r.id=t.id)}f.current.querySelectorAll(".ac-actionSet button").forEach(e=>{const t=e,r=Dce(t,d);Rce(t,r)});f.current.querySelectorAll('.ac-image.ac-selectable, .ac-image img[aria-label^="Rating Star"]').forEach(e=>{const t=e instanceof HTMLImageElement?e:e.querySelector("img");if(!t)return;const r=Dce(t,d);r.isButton=!1,r.isImage=!0;let n=t.parentElement;if(!n||"a"!==n.tagName.toLowerCase()){const e=document.createElement("a");e.href="#",e.setAttribute("role","button"),e.setAttribute("tabindex","0");const r=e=>e.preventDefault();e._clickHandler=r,e.dataset.ucaImgAnchor="true",e.addEventListener("click",r),t.parentNode?.insertBefore(e,t),e.appendChild(t),n=e}Rce(n,r),Array.from(t.attributes).forEach(e=>{e.name.startsWith("data-bi")&&t.removeAttribute(e.name)})});f.current.querySelectorAll('.ac-adaptiveCard [data-trackable="true"]:not(button):not(img)').forEach(e=>{const t=e,r=Dce(t,d);Rce(t,r)});for(const e of h.getAllActions()){const t=e,r=t.renderedElement;if(!r)continue;const n=t.data?.bi;if(n&&"object"==typeof n)for(const[e,o]of Object.entries(n))"string"==typeof o&&(r.dataset[`bi${e.charAt(0).toUpperCase()}${e.slice(1)}`]=o)}}},[e.attachment.content]),g.useEffect(()=>{const e=f.current;return()=>{if(e){e.querySelectorAll('input[type="checkbox"]').forEach(e=>{const t=e,r=t._changeHandler;r&&(t.removeEventListener("change",r),delete t._changeHandler,delete t.dataset.handlerAttached)});e.querySelectorAll('a[data-uca-img-anchor="true"]').forEach(e=>{const t=e;t._clickHandler&&(t.removeEventListener("click",t._clickHandler),delete t._clickHandler),delete t.dataset?.ucaImgAnchor})}}},[]),QO(),jN.actionButtonRenderer=nD,jN.defaultElements.register("Input.Text",e=>new qj,dP.v1_0),jN.defaultElements.register("Input.Date",e=>new aj,dP.v1_0),jN.defaultElements.register("Input.Time",e=>new uL,dP.v1_0),jN.defaultElements.register("Input.Number",e=>new lj,dP.v1_0),jN.defaultElements.register("Input.Toggle",e=>new fL,dP.v1_0),jN.defaultElements.register("Input.ChoiceSet",e=>new eR,dP.v1_0),xO.registerCustomMediaPlayers(bO,wO,yO),g.useEffect(()=>{const t=e=>{for(const r of e)if(r){if("string"==typeof r.id)return r.id;if(r.items&&Array.isArray(r.items)){const e=t(r.items);if(e)return e}if(r.columns&&Array.isArray(r.columns)){const e=t(r.columns);if(e)return e}if(r.body&&Array.isArray(r.body)){const e=t(r.body);if(e)return e}}},r=e.attachment.content?.id||e.attachment.content?.customId||(e.attachment.content?.body?t(e.attachment.content.body):void 0);u(r||null)},[e.attachment.content]);const h=g.useMemo(()=>{const t=new PO;return t.isFocusable=!1,t.onRenderAnchor=(e,t)=>{const r={...t,tabIndex:0};if("_blank"===r.target){const e=new Set((r.rel||"").split(/\s+/).filter(Boolean));e.add("noopener"),e.add("noreferrer"),r.rel=Array.from(e).join(" ")}return p.jsx("a",{...r,children:e??r.href})},t.onProcessMarkdown=(e,t,r)=>{try{let t=nV(e);const n=t.trim();n.startsWith("<p>")&&n.endsWith("</p>")&&-1===n.indexOf("<p>",1)&&(t=n.slice(3,-4));const o=CE.sanitize(t,{ALLOWED_TAGS:["a","strong","em","code","br","b","i","u","ul","ol","li","p"],ALLOWED_ATTR:["href","title","target","rel"]}).replace(/<a\b(?![^>]*\btabindex=)/gi,'<a tabindex="0"');r.output=p.jsx("span",{dangerouslySetInnerHTML:{__html:o}}),r.didProcess=!0}catch(n){Nce("AdaptiveCard","In card.onProcessMarkdown","Failed to process markdown in TextBlock:",n),r.didProcess=!1}},t.parse(e.attachment.content,new RN(dP.v1_5)),t},[e.attachment.content]);return h.onInputValueChanged=r=>{if(r instanceof fL){const n=e.attachment?.content?.body;if(n&&Array.isArray(n))if(0<n.length&&r.index<n.length){const o=n[r.index];"id"in o&&"string"==typeof o.id?t(Oce.toggleInputToggle({activityId:e.activityId,elementId:o.id})):Bce("AdaptiveCard","In card.onInputValueChanged","input.id doesn't exist or is not a string")}else Bce("AdaptiveCard","In card.onInputValueChanged","input.index is out of bounds of props.attachment.content.body length");else Bce("AdaptiveCard","In card.onInputValueChanged","props.attachment.content.body had no value or is not an array")}else Bce("AdaptiveCard","In card.onInputValueChanged",`Unexpected input type: ${r.constructor.name}`)},h.onExecuteAction=e=>{if(n)return;const i=e=>{if(e)try{const t=new URL(e).searchParams.get("text"),n=CE.sanitize(t||"");n?(r(decodeURIComponent(n),"text",{}),Pce("Sent LivePerson survey response via telemetry:",n)):Pce("No text parameter found in chataction URL:",e)}catch(t){Pce("Error parsing chataction URL:",e,t)}};if(e instanceof hB){jce(f.current,e.title);let t=!1;e.url&&e.url.startsWith("chataction://sendmessage")?(i(e.url),t=!0):Cce(e.url)?(window.open(e.url.trim(),"_blank","noopener,noreferrer"),t=!0):e.url&&Nce("AdaptiveCard","Blocked OpenUrlAction with unsafe URL scheme"),t&&(o(!0),l(e.id||e.url||"unknown"))}else if(e instanceof dB&&e.title){jce(f.current,e.title),o(!0),a(e.data&&"sendTranscript"in e.data&&"string"==typeof e.data.sendTranscript?e.data.sendTranscript:"False"),l(e.id||e.title||"unknown"),e.title.startsWith("chataction://sendmessage")&&i(e.title);const n=e.data&&"object"==typeof e.data&&!Array.isArray(e.data)&&"choice"in e.data&&"voice"===e.data.choice;n&&t(Ioe()),r("","",{postBack:!0},e.data),n||t(DS({delayMs:0}))}else Pce("Unsupported action type:",e)},g.useEffect(()=>{f.current?.classList.contains("adaptive-card-container")&&"uca-quotex-quote-card"===c&&Ece({behavior:b8.BEHAVIORS.TRIGGERED,actionType:b8.ACTION_TYPES.AUTOMATIC,contentTags:{aN:b8.AREA_NAMES.AI_CHAT_DRAWER,compnm:b8.COMPONENT_NAMES.AI_ASSISTANT,hn:f.current.innerText||b8.HEADER_NAMES.AI_POWERED_ASSISTANT,ehn:d||b8.HEADER_NAMES.AI_POWERED_ASSISTANT,view:b8.VIEW.AI_CHAT_DRAWER,bhvr:b8.BEHAVIORS.TRIGGERED,scn:b8.SCENARIO_NAMES.QUOTE,stpnum:b8.STEP_NUMBERS.THREE,id:b8.IDS.AI_QUOTE_DRAFT_PRESENTED,scnstp:b8.SCENARIO_STEPS.DRAFT,cT:b8.CONTENT_TYPES.AI_ASSISTANT_ACTION}})},[c,h]),p.jsx("div",{ref:f,className:"adaptive-card-container "+(n?"actions-disabled":""),"data-card-id":c||void 0,...c&&{id:`adaptive-card-${c}`},children:p.jsx(CN,{cardObject:h})})},qce=e=>e?"True":"False",Hce=e=>(e.value||"").toLowerCase()===(e.valueOn||"").toLowerCase(),Uce=(e,t,r)=>{const{activityId:n,elementId:o}=t;for(const i of e)if(i.id===n&&"attachments"in i&&i.attachments)for(const e of i.attachments)e.content?.body&&e.content.body.forEach(e=>{"Input.Toggle"===e.type&&e.id===o&&(e.value=r||(r=qce(!Hce(e))))});return r},Wce=e=>e.toLowerCase(),$ce=["explanation_of_tool_call","end stream response"].map(Wce),Gce=e=>{if("bot"!==e?.from?.role||"message"!==e?.type)return{shouldSuppress:!1};const t=((e,t=$ce)=>{if(!e)return;const r=Wce(e);return t.find(e=>r.includes(e))})(e.text);return{blockedMarker:t,shouldSuppress:!!t}},Yce="DIRECT_LINE/INCOMING_ACTIVITY";const{log:Kce}=R.withKind("webChatSlice"),Xce=sS(Yce),Jce=_S({name:"webChat",initialState:{chatHistory:[],activities:[],clockSkewAdjustment:0,dictateState:"idle",language:"en-US",notifications:{},sendBoxValue:"",sendTimeout:0,sendTypingIndicator:!1,shouldSpeakIncomingActivity:!1,livePerson:{accountId:null,skillId:null,initiatingConversationId:null,sendTranscript:null,isPostSurveyEnabled:!1,connectionState:{type:"Disconnected"}},livePersonDebugOptions:{},userHasSentMessage:!1,activeSubagent:null,isEndQuoteDisabled:!1},reducers:{setActiveSubagent:(e,t)=>{e.activeSubagent=t.payload,e.isEndQuoteDisabled=!1},setEndQuoteDisabled:(e,t)=>{e.isEndQuoteDisabled=t.payload}},selectors:{activitiesSelector:e=>e.activities,filterByTypeActivitiesSelector:(e,t)=>e.activities.filter(e=>{e.type}),chatHistorySelector:e=>e.chatHistory.map(e=>({role:e.from?.role,text:e.text,key:e.key})),livePersonSelector:e=>e.livePerson,livePersonAccountIdSelector:e=>e.livePersonDebugOptions.accountId||e.livePerson.accountId,livePersonSkillIdSelector:e=>e.livePersonDebugOptions.skillId||e.livePerson.skillId,livePersonConnectionStateSelector:e=>e.livePerson.connectionState,livePersonDebugOptionsSelector:e=>e.livePersonDebugOptions,chatPlatformSelector:e=>e.livePerson.accountId&&"Disconnected"!==e.livePerson.connectionState.type?M.LivePerson:M.DirectLine,activeSubagentSelector:e=>e.activeSubagent,isEndQuoteDisabledSelector:e=>e.isEndQuoteDisabled},extraReducers(e){e.addCase(Xce,(e,t)=>{const r=t.payload.activity,{type:n}=r,o=JSON.parse(JSON.stringify(r));(e=>{if("attachments"in e&&e.attachments)for(const t of e.attachments)t.content?.body&&t.content.body.forEach(e=>{"Input.Toggle"===e.type&&(e.value=qce(Hce(e)))})})(o);const i=Array.isArray(r.entities)?r.entities.find(e=>"string"==typeof e?.type&&"streaminfo"===e.type.toLowerCase()):void 0,a=i?.streamType??r.channelData?.streamType;!i?.streamId&&!r.channelData?.streamId&&!i||"informative"!==a&&"streaming"!==a?("conversationUpdate"===n||"event"===n||"invoke"===n||"typing"===n&&!(r.text||r.attachments?.length>0)||"message"===n&&(r.channelData?.postBack||r.channelData?.messageBack&&!r.channelData.messageBack.displayText||!(r.text||r.attachments?.length||r.suggestedActions?.actions?.length)||Gce(r).shouldSuppress)||"message"!==n&&"typing"!==n||(e.chatHistory=[...e.chatHistory,o]),e.activities=[...e.activities,o]):e.activities=[...e.activities,o]}),e.addCase(Oce.toggleInputToggle,(e,t)=>{const r=Uce(e.chatHistory,t.payload,null);Uce(e.activities,t.payload,r)}),e.addCase(sV.messageReceived,(e,t)=>{if(Kce("In initLivePersonChat"),"user"==t.payload.role)e.chatHistory.push({id:`message_${Date.now()}_${Math.random().toString(36).slice(2,11)}`,timestamp:(new Date).toISOString(),channelData:{"webchat:sequence-id":1,"webchat:send-status":"sending"},from:{id:"user-id",role:t.payload.role},type:"message",key:t.payload.key,text:t.payload.text,attachments:t.payload.attachments||[],localTimestamp:(new Date).toISOString()});else{const r={id:`message_${Date.now()}_${Math.random().toString(36).slice(2,11)}`,timestamp:(new Date).toISOString(),channelData:{"webchat:sequence-id":1,"webchat:send-status":"sending"},from:{id:"user-id",role:t.payload.role},type:"message",text:t.payload.text,key:t.payload.key,attachments:t.payload.attachments||[],localTimestamp:(new Date).toISOString()};e.chatHistory.push(r),e.activities=[...e.activities,r]}}),e.addCase(sV.setLivePersonConnectionState,(e,t)=>{e.livePerson.connectionState=t.payload}),e.addCase(sV.setLivePersonData,(e,t)=>{e.livePerson.accountId=t.payload.accountId,void 0!==t.payload.skillId&&(e.livePerson.skillId=t.payload.skillId),void 0!==t.payload.sendTranscript&&(e.livePerson.sendTranscript=t.payload.sendTranscript)}),e.addCase(sV.setLivePersonState,(e,t)=>{e.livePerson={...e.livePerson,...t.payload}}),e.addCase(sV.signalTypingInUI,(e,t)=>{Kce("In livePersonActions.signalTypingInUI reducer.",t),e.activities=e.activities.filter(e=>"typing"!==e.type);let r={id:`typing_${Date.now()}_${Math.random().toString(36).slice(2,11)}`,timestamp:(new Date).toISOString(),channelData:{"webchat:sequence-id":e.activities.length,"webchat:send-status":"sent"},from:{id:"liveperson",role:"bot"},type:"typing"};e.activities=[...e.activities,r]}),e.addCase(oV,(e,t)=>{e.userHasSentMessage=!0}),e.addCase(sV.messageSend,(e,t)=>{e.userHasSentMessage=!0})}}),{setActiveSubagent:Qce,setEndQuoteDisabled:Zce}=Jce.actions,{activitiesSelector:eue,filterByTypeActivitiesSelector:tue,chatHistorySelector:rue,livePersonSelector:nue,livePersonAccountIdSelector:oue,livePersonSkillIdSelector:iue,livePersonConnectionStateSelector:aue,livePersonDebugOptionsSelector:sue,chatPlatformSelector:lue,activeSubagentSelector:cue,isEndQuoteDisabledSelector:uue}=Jce.selectors,due=ox({directLine:wC,drawerControls:CC,externalPrompt:LS,error:zC,optionsProvider:YS,persistentBanner:WS,starterPrompts:dT,messageSubmissionLock:ok,streaming:GC,themeProvider:XC,voice:nA,webChat:Jce.reducer});var fue=function(e){return{done:!0,value:e}},hue={};function pue(e){return BT(e)?"channel":OT(e)?String(e):_T(e)?e.name:String(e)}function mue(e,t,r){var n,o,i,a=t;function s(t,r){if(a===hue)return fue(t);if(r&&!o)throw a=hue,r;n&&n(t);var s=r?e[o](r):e[a]();return a=s.nextState,i=s.effect,n=s.stateUpdater,o=s.errorState,a===hue?fue(t):i}return UT(s,function(e){return s(null,e)},r)}function gue(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];var i,a={done:!1,value:m_(e)},s=function(e){return i=e};return mue({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=i,{done:!1,value:x_.apply(void 0,[t].concat(n,[e]))})};var e}},"q1","takeEvery("+pue(e)+", "+t.name+")")}function vue(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];var i,a,s={done:!1,value:m_(e)},l=function(e){return{done:!1,value:x_.apply(void 0,[t].concat(n,[e]))}},c=function(e){return i=e},u=function(e){return a=e};return mue({q1:function(){return{nextState:"q2",effect:s,stateUpdater:u}},q2:function(){return i?{nextState:"q3",effect:(e=i,{done:!1,value:k_(e)})}:{nextState:"q1",effect:l(a),stateUpdater:c};var e},q3:function(){return{nextState:"q1",effect:l(a),stateUpdater:c}}},"q1","takeLatest("+pue(e)+", "+t.name+")")}function yue(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];var i,a={done:!1,value:m_(e)},s=function(e){return i=e};return mue({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=i,{done:!1,value:w_.apply(void 0,[t].concat(n,[e]))})};var e}},"q1","takeLeading("+pue(e)+", "+t.name+")")}function bue(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return x_.apply(void 0,[gue,e,t].concat(n))}function wue(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return x_.apply(void 0,[vue,e,t].concat(n))}function xue(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return x_.apply(void 0,[yue,e,t].concat(n))}const{logWarn:Sue}=R.withKind("externalPromptEvent"),kue=!0,Eue=!0,Tue=0,_ue="submit",Cue=new Set(["open-only","insert","submit"]),Aue=new Set(["text"]);function Iue(e,t){const r=e.options??{},n={value:e.value.trim(),messageType:e.messageType||"text",behavior:r.behavior||_ue,focusInput:r.focusInput??kue,waitForReady:r.waitForReady??Eue,delayMs:r.delayMs??Tue,metadata:e.metadata??null,isLegacyEvent:t};return n.metadata||Sue("waa:sendPrompt received without metadata. Consider including metadata.source for telemetry."),n}function Pue(e){const t={behavior:e.behavior,messageType:e.messageType,isLegacyEvent:String(e.isLegacyEvent)};return e.metadata&&(t.source=e.metadata.source,e.metadata.campaignId&&(t.campaignId=e.metadata.campaignId),e.metadata.pageContext&&(t.pageContext=e.metadata.pageContext)),t}const{log:Nue,logError:Bue}=R.withKind("externalPromptSaga");function*Oue(){if(yield E_(MS))return;if((yield y_({ready:m_(PS.type),timeout:__(3e4)})).timeout)throw new Error("waitForAssistantReady timed out after 30000ms")}function*Due({payload:e}){try{yield g_(_C(!0)),yield w_(KE,{ocrAIChatDrawerState:OE}),e.waitForReady&&(yield w_(Oue)),e.delayMs>0&&(yield __(e.delayMs));const t={"open-only":{id:b8.IDS.AI_CHAT_OPEN_CONFIRMATION,behavior:b8.BEHAVIORS.CHAT_INITIATE},submit:{id:b8.IDS.AI_CHAT_OPEN_CONFIRMATION_WITH_SENT,behavior:b8.BEHAVIORS.CONTENT_INTERACTION},insert:{id:b8.IDS.AI_CHAT_OPEN_CONFIRMATION_WITH_UNSENT,behavior:b8.BEHAVIORS.CHAT_INITIATE}}[e.behavior],r=(()=>{if("undefined"==typeof document)return b8.HEADER_NAMES.ASK_MICROSOFT;const e=document.querySelector(".uca-header .uca-title"),t=e?.textContent?.replace(/\s+/g," ").trim();return t||b8.HEADER_NAMES.ASK_MICROSOFT})();switch(yield w_(Ece,{behavior:t.behavior,actionType:b8.ACTION_TYPES.AUTOMATIC,contentTags:{compnm:b8.COMPONENT_NAMES.AI_ASSISTANT,aN:b8.AREA_NAMES.AI_CHAT_DRAWER,view:b8.VIEW.AI_CHAT_DRAWER,cT:b8.CONTENT_TYPES.EXPAND,hn:r,ehn:b8.HEADER_NAMES.ASK_MICROSOFT,id:t.id}}),e.behavior){case"submit":{const t=yield E_(lue),r=yield E_(ek);if(t===M.DirectLine&&r&&(yield E_(tk)))break;if(yield w_(XE),yield g_(iT()),t===M.LivePerson)yield g_(sV.messageSend(e.value.trim()));else{const t="undefined"!=typeof window?window.location.href:"";yield g_(iV(e.value,"text",{channelData:{pageUrl:t}}))}break}case"insert":yield g_(BS({value:e.value}))}e.focusInput&&(yield g_(DS({delayMs:300}))),yield w_(M7,{name:HV,properties:Pue(e)}),Nue(`External prompt executed: behavior=${e.behavior}, legacy=${e.isLegacyEvent}`)}catch(t){Bue("External prompt saga failed:",t)}}function*Rue(){yield xue(NS.type,Due)}const Mue="DIRECT_LINE/CONNECT",zue=`${Mue}_FULFILLED`,jue=`${Mue}_FULFILLING`;const Lue="DIRECT_LINE/RECONNECT",Fue=`${Lue}_FULFILLED`,Vue=`${Lue}_FULFILLING`,que=`${Lue}_PENDING`,Hue="DIRECT_LINE/POST_ACTIVITY",Uue=`${Hue}_FULFILLED`,Wue=`${Hue}_IMPEDED`,$ue=`${Hue}_PENDING`,Gue=`${Hue}_REJECTED`;function Yue(e,t="keyboard"){return{type:Hue,meta:{method:t},payload:{activity:e}}}let Kue=[];const Xue=e=>{Kue.push(e)},Jue=e=>{Kue=Kue.filter(t=>t!==e)},Que="(hover: none) and (pointer: coarse) and (any-hover: none) and (any-pointer: coarse) and (max-width: 768px) and (max-device-width: 1100px), (hover: none) and (pointer: coarse) and (any-hover: none) and (any-pointer: coarse) and (orientation: landscape) and (max-width: 1100px) and (max-height: 539.98px) and (max-device-width: 1100px)",Zue=(e="(max-width: 768px)")=>{const[t,r]=g.useState(()=>(e=>"undefined"!=typeof window&&"function"==typeof window.matchMedia&&window.matchMedia(e).matches)(e));return g.useEffect(()=>{if("undefined"==typeof window||"function"!=typeof window.matchMedia)return;const t=window.matchMedia(e);r(e=>e===t.matches?e:t.matches);const n=e=>{r(e.matches)};return"function"==typeof t.addEventListener?(t.addEventListener("change",n),()=>t.removeEventListener("change",n)):(t.addListener(n),()=>t.removeListener(n))},[e]),t};class ede extends CustomEvent{constructor(e,t){super(e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}}let tde=0,rde=null;const nde=()=>{if(tde=Math.max(0,tde-1),0===tde&&null!==rde){const e=rde;rde=null,document.documentElement.style.overflow=e.html,document.documentElement.style.overscrollBehavior=e.htmlOverscroll,document.body.style.overflow=e.body,document.body.style.position=e.position,document.body.style.top=e.top,document.body.style.left=e.left,document.body.style.width=e.width,window.scrollTo({left:e.scrollX,top:e.scrollY,behavior:"instant"})}},ode=({lockHostScroll:e=!1}={})=>{const t=Kw(),r=Pw(e=>e.drawerControls.isDrawerOpen),n=Zue(Que),o=g.useRef(r),i=g.useRef(!1);g.useEffect(()=>{const t=o.current;return o.current=r,r?(document.body.classList.add("uca-open"),e&&n&&((()=>{if(0===tde){const{style:e}=document.body;rde={html:document.documentElement.style.overflow,body:e.overflow,htmlOverscroll:document.documentElement.style.overscrollBehavior,position:e.position,top:e.top,left:e.left,width:e.width,scrollX:window.scrollX,scrollY:window.scrollY},document.documentElement.style.overflow="hidden",document.documentElement.style.overscrollBehavior="none",e.overflow="hidden",e.position="fixed",e.top=`-${rde.scrollY}px`,e.left=`-${rde.scrollX}px`,e.width="100%"}tde+=1})(),i.current=!0),t||window.dispatchEvent(new ede(Z,{source:"uca",timestamp:Date.now()}))):(document.body.classList.remove("uca-open"),i.current&&(nde(),i.current=!1)),()=>{i.current&&(nde(),i.current=!1)}},[r,n,e]),g.useEffect(()=>{const e=YE();if(e){const n=e.ocrAIChatDrawerState===OE;n!==r&&t(_C(n))}const n=e=>{const r=e?.ocrAIChatDrawerState,n=r===OE;n!==Dwe.getState().drawerControls.isDrawerOpen&&t(_C(n))};return Xue(n),()=>{Jue(n)}},[t]);const a=g.useCallback(()=>{const e=!r;t(_C(e));const n=YE(),o=e?OE:DE;(n||e)&&KE({ocrAIChatDrawerState:o})},[t,r]);return{isDrawerOpen:r,toggleDrawer:a,toggleDrawerOpen:()=>t(TC()),setDrawerOpen:e=>{t(_C(e));KE({ocrAIChatDrawerState:e?OE:DE})}}},ide=["1","2","3"];function ade(e){try{const t=new URLSearchParams(e).get("waa")||"";return""===t?"":t.replace(/[^0-9]/g,"").slice(0,20)}catch(t){return console.error("Error parsing waa from URL:",t),""}}function sde(){return!!window.CascadeAuth?.API.getUserInfo()}function lde(){return window.CascadeAuth?.API.getUserInfo()?.EmailAddress??null}const cde="RSA-OAEP";let ude=null;async function dde(e){const t=await async function(){if("undefined"==typeof crypto||!crypto.subtle)throw new Error("[cryptoUtils] Web Crypto API (crypto.subtle) is unavailable in this environment. Encryption requires a secure context (HTTPS) and a modern browser.");if(ude)return ude;let e;try{e=JSON.parse(atob("eyJrdHkiOiJSU0EiLCJrZXlfb3BzIjpbImVuY3J5cHQiXSwiZSI6IkFRQUIiLCJuIjoicDFDTV9iT1R3endfczFwSDFYc2ZLeUtyc01Xbm9GNTIyTHVhakNudklzMTJMX2QzYURfSHM1Nlk1YnVvR0pVbkFGczNpTmIwaHlkX05Qd1NVVkFOWEdBc3lGbDNhR25iQlU3My1Od3hoUmNkNmlZQU9qdDF6Ti14UVBFTDNlRWJwSmdNN05vV2gycTZha1pTamdkYjZLU0Q1SFg3YmxYNHhGbjRLWUZsWk5vZEVZdWgtTkp6cThGeWFNLTJPR1E1MXF3V0w3MU1idGFYNzM2RVgyT1p0cEFxNGRJOFNWQ0Q3dzVPd1hpYkF4OWFPeGNORlFvOU9WUUpmNUpBc0dKOXFtVlVWNlo3OW1zUW5NR0Y2YlVRckRQWXUwa1NXWFNQd2VfWHkxRklyRzI0T2xKUEJ3MjhMWGwzMVZDLVZYNUFhbFExYXFYV1lmbUMyanZPQ3pKNll3IiwiYWxnIjoiUlNBLU9BRVAtMjU2IiwiZXh0Ijp0cnVlfQ=="))}catch{throw new Error("[cryptoUtils] Failed to parse VITE_EMAIL_ENCRYPTION_PUBLIC_KEY — ensure it is a valid base64-encoded JWK JSON string.")}return ude=await crypto.subtle.importKey("jwk",e,{name:cde,hash:"SHA-256"},!1,["encrypt"]),ude}(),r=(new TextEncoder).encode(e),n=await crypto.subtle.encrypt({name:cde},t,r),o=new Uint8Array(n);let i="";for(const a of o)i+=String.fromCharCode(a);return btoa(i)}const fde=()=>`${document.querySelector('meta[name="keywords"]')?.getAttribute("content")||document.querySelector('meta[property="keywords"]')?.getAttribute("content")||""} ${document.querySelector('meta[name="description"]')?.getAttribute("content")||document.querySelector('meta[property="description"]')?.getAttribute("content")||""}`,hde=(e,t,r,n)=>({sourceSite:e,partnerId:t,pageUrl:window.location.href,pageTitle:document.title,pageMetaTags:fde(),locale:r,enabledVariants:n}),pde=new Set;let mde=!1;function*gde(){yield g_(hC(!0))}function*vde(){yield g_(hC(!0))}function*yde(){try{const t=yield E_(e=>e.optionsProvider.options);let r=null;const n=K7(),o=n.isFeatureEnabled("enableEmailCapture");if(null!=o&&!0===o){if(yield w_(sde)){const t=yield w_(lde),n=t?t.trim().toLowerCase():null;try{r=n?yield w_(dde,n):null}catch(e){console.warn("Email encryption failed, proceeding without email address:",e),s8("connectFulfilledSaga",e instanceof Error?e:new Error(String(e)),{reason:"encryptValue failed"}),r=null}}}let i={id:"start-conversation-"+Date.now(),timestamp:(new Date).toISOString(),channelData:{postBack:!0,"webchat:sequence-id":1},name:$,type:"event",value:{sourceSite:WE(),partnerId:_de(t),pageUrl:window.location.href,leadId:"12345",pageTitle:document.title,pageMetaTags:fde(),locale:rT(t.locale),ocid:xde(),scenario:Sde(),cid:kde(),sku:Ede(),waa:ade(window.location.search),enabledVariants:n.getEnabledVariants()||[],...r?{emailAddress:r}:{}},from:{id:"user",name:"User",role:"user"}};i.id&&pde.add(i.id),mde||(L7.trackEvent({name:pV}),mde=!0),yield g_(Yue(i,"keyboard"))}finally{yield g_(hC(!1))}}function*bde(){yield g_(hC(!1))}function*wde(){for(;;){const e=(yield m_(Uue)).payload.activity;if("event"===e.type&&e.name===$&&e.id&&pde.has(e.id)){pde.delete(e.id);const t=e.conversation?.id||"",r=e.value||{};L7.trackEvent({name:hV,properties:{conversationId:t,sourceSite:r.sourceSite||"",partnerId:r.partnerId||"",locale:r.locale||"",ocid:r.ocid||"",scenario:r.scenario||"",enabledVariants:JSON.stringify(r.enabledVariants||[])}})}}}function xde(){try{const e=new URLSearchParams(window.location.search).get("ocid")||"";if("string"!=typeof e||""===e)return"";const t=e.replace(/["&'<>]/g,"").replace(/[^\w.=-]/g,"");return t.slice(0,100)}catch(e){return console.error("Error parsing OCID from URL:",e),""}}function Sde(){try{const e=new URLSearchParams(window.location.search).get("scenario")||"";if("string"!=typeof e||""===e)return"";const t=e.replace(/["&'<>]/g,"").replace(/[^\w.=-]/g,"");return t.slice(0,100)}catch(e){return console.error("Error parsing scenario from URL:",e),""}}function kde(){try{const e=new URLSearchParams(window.location.search).get("cid")||"";if("string"!=typeof e||""===e)return"";const t=e.replace(/["&'<>]/g,"").replace(/[^a-zA-Z0-9-]/g,"");return t.slice(0,36)}catch(e){return console.error("Error parsing cid from URL:",e),""}}function Ede(){try{const e=new URLSearchParams(window.location.search).get("sku")||"";if("string"!=typeof e||""===e)return"";const t=e.replace(/["&'<>]/g,"").replace(/[^\w.\s-]/g,"");return t.slice(0,100)}catch(e){return console.error("Error parsing sku from URL:",e),""}}function*Tde(){yield bue(jue,gde),yield bue(zue,yde),yield bue(Vue,vde),yield bue(Fue,bde),yield x_(wde)}function _de(e){try{const t=e?.partnerId,r=t.replace(/[^a-zA-Z0-9-]/g,"");return/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i.test(r)?r:"00000000-0000-0000-0000-000000000000"}catch(t){return console.error("Error parsing partnerId from options:",t),"00000000-0000-0000-0000-000000000000"}}class Cde extends Error{}function Ade(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,(e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}(t)}catch(r){return atob(t)}}Cde.prototype.name="InvalidTokenError";const Ide="DIRECT_LINE/UPDATE_CONNECTION_STATUS";function Pde(e){return{type:Ide,payload:{connectionStatus:e}}}var Nde,Bde,Ode,Dde,Rde,Mde,zde,jde,Lde,Fde,Vde,qde,Hde,Ude,Wde,$de,Gde={},Yde={};function Kde(){if(Bde)return Nde;Bde=1;var e=function(e){return e&&e.Math===Math&&e};return Nde=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||e("object"==typeof Nde&&Nde)||function(){return this}()||Function("return this")()}function Xde(){return Dde?Ode:(Dde=1,Ode=function(e){try{return!!e()}catch(t){return!0}})}function Jde(){return Mde?Rde:(Mde=1,Rde=!Xde()(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))}function Qde(){if(jde)return zde;jde=1;var e=Jde(),t=Function.prototype,r=t.apply,n=t.call;return zde="object"==typeof Reflect&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),zde}function Zde(){if(Fde)return Lde;Fde=1;var e=Jde(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return Lde=e?n:function(e){return function(){return r.apply(e,arguments)}},Lde}function efe(){if(qde)return Vde;qde=1;var e=Zde(),t=e({}.toString),r=e("".slice);return Vde=function(e){return r(t(e),8,-1)}}function tfe(){if(Ude)return Hde;Ude=1;var e=efe(),t=Zde();return Hde=function(r){if("Function"===e(r))return t(r)},Hde}function rfe(){if($de)return Wde;$de=1;var e="object"==typeof document&&document.all;return Wde=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}var nfe,ofe,ife,afe,sfe={};function lfe(){return ofe?nfe:(ofe=1,nfe=!Xde()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function cfe(){if(afe)return ife;afe=1;var e=Jde(),t=Function.prototype.call;return ife=e?t.bind(t):function(){return t.apply(t,arguments)},ife}var ufe,dfe,ffe,hfe,pfe,mfe,gfe,vfe,yfe,bfe,wfe,xfe,Sfe,kfe,Efe,Tfe,_fe,Cfe,Afe,Ife,Pfe,Nfe,Bfe,Ofe,Dfe,Rfe,Mfe,zfe,jfe,Lfe,Ffe,Vfe,qfe,Hfe,Ufe,Wfe,$fe,Gfe={};function Yfe(){if(ufe)return Gfe;ufe=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return Gfe.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,Gfe}function Kfe(){return ffe?dfe:(ffe=1,dfe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function Xfe(){if(pfe)return hfe;pfe=1;var e=Zde(),t=Xde(),r=efe(),n=Object,o=e("".split);return hfe=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?o(e,""):n(e)}:n}function Jfe(){return gfe?mfe:(gfe=1,mfe=function(e){return null==e})}function Qfe(){if(yfe)return vfe;yfe=1;var e=Jfe(),t=TypeError;return vfe=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function Zfe(){if(wfe)return bfe;wfe=1;var e=Xfe(),t=Qfe();return bfe=function(r){return e(t(r))}}function ehe(){if(Sfe)return xfe;Sfe=1;var e=rfe();return xfe=function(t){return"object"==typeof t?null!==t:e(t)}}function the(){return Efe?kfe:(Efe=1,kfe={})}function rhe(){if(_fe)return Tfe;_fe=1;var e=the(),t=Kde(),r=rfe(),n=function(e){return r(e)?e:void 0};return Tfe=function(r,o){return arguments.length<2?n(e[r])||n(t[r]):e[r]&&e[r][o]||t[r]&&t[r][o]},Tfe}function nhe(){return Afe?Cfe:(Afe=1,Cfe=Zde()({}.isPrototypeOf))}function ohe(){if(Pfe)return Ife;Pfe=1;var e=Kde().navigator,t=e&&e.userAgent;return Ife=t?String(t):""}function ihe(){if(Bfe)return Nfe;Bfe=1;var e,t,r=Kde(),n=ohe(),o=r.process,i=r.Deno,a=o&&o.versions||i&&i.version,s=a&&a.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&n&&(!(e=n.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=n.match(/Chrome\/(\d+)/))&&(t=+e[1]),Nfe=t}function ahe(){if(Dfe)return Ofe;Dfe=1;var e=ihe(),t=Xde(),r=Kde().String;return Ofe=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function she(){return Mfe?Rfe:(Mfe=1,Rfe=ahe()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function lhe(){if(jfe)return zfe;jfe=1;var e=rhe(),t=rfe(),r=nhe(),n=Object;return zfe=she()?function(e){return"symbol"==typeof e}:function(o){var i=e("Symbol");return t(i)&&r(i.prototype,n(o))}}function che(){if(Ffe)return Lfe;Ffe=1;var e=String;return Lfe=function(t){try{return e(t)}catch(r){return"Object"}}}function uhe(){if(qfe)return Vfe;qfe=1;var e=rfe(),t=che(),r=TypeError;return Vfe=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function dhe(){if(Ufe)return Hfe;Ufe=1;var e=uhe(),t=Jfe();return Hfe=function(r,n){var o=r[n];return t(o)?void 0:e(o)}}function fhe(){if($fe)return Wfe;$fe=1;var e=cfe(),t=rfe(),r=ehe(),n=TypeError;return Wfe=function(o,i){var a,s;if("string"===i&&t(a=o.toString)&&!r(s=e(a,o)))return s;if(t(a=o.valueOf)&&!r(s=e(a,o)))return s;if("string"!==i&&t(a=o.toString)&&!r(s=e(a,o)))return s;throw new n("Can't convert object to primitive value")},Wfe}var hhe,phe,mhe,ghe,vhe,yhe,bhe,whe,xhe,She,khe,Ehe,The,_he,Che,Ahe,Ihe,Phe,Nhe,Bhe,Ohe,Dhe,Rhe,Mhe,zhe,jhe,Lhe,Fhe,Vhe={exports:{}};function qhe(){return phe?hhe:(phe=1,hhe=!0)}function Hhe(){if(ghe)return mhe;ghe=1;var e=Kde(),t=Object.defineProperty;return mhe=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(o){e[r]=n}return n}}function Uhe(){if(vhe)return Vhe.exports;vhe=1;var e=qhe(),t=Kde(),r=Hhe(),n="__core-js_shared__",o=Vhe.exports=t[n]||r(n,{});return(o.versions||(o.versions=[])).push({version:"3.45.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Vhe.exports}function Whe(){if(bhe)return yhe;bhe=1;var e=Uhe();return yhe=function(t,r){return e[t]||(e[t]=r||{})}}function $he(){if(xhe)return whe;xhe=1;var e=Qfe(),t=Object;return whe=function(r){return t(e(r))}}function Ghe(){if(khe)return She;khe=1;var e=Zde(),t=$he(),r=e({}.hasOwnProperty);return She=Object.hasOwn||function(e,n){return r(t(e),n)}}function Yhe(){if(The)return Ehe;The=1;var e=Zde(),t=0,r=Math.random(),n=e(1.1.toString);return Ehe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function Khe(){if(Che)return _he;Che=1;var e=Kde(),t=Whe(),r=Ghe(),n=Yhe(),o=ahe(),i=she(),a=e.Symbol,s=t("wks"),l=i?a.for||a:a&&a.withoutSetter||n;return _he=function(e){return r(s,e)||(s[e]=o&&r(a,e)?a[e]:l("Symbol."+e)),s[e]}}function Xhe(){if(Ihe)return Ahe;Ihe=1;var e=cfe(),t=ehe(),r=lhe(),n=dhe(),o=fhe(),i=TypeError,a=Khe()("toPrimitive");return Ahe=function(s,l){if(!t(s)||r(s))return s;var c,u=n(s,a);if(u){if(void 0===l&&(l="default"),c=e(u,s,l),!t(c)||r(c))return c;throw new i("Can't convert object to primitive value")}return void 0===l&&(l="number"),o(s,l)}}function Jhe(){if(Nhe)return Phe;Nhe=1;var e=Xhe(),t=lhe();return Phe=function(r){var n=e(r,"string");return t(n)?n:n+""}}function Qhe(){if(Ohe)return Bhe;Ohe=1;var e=Kde(),t=ehe(),r=e.document,n=t(r)&&t(r.createElement);return Bhe=function(e){return n?r.createElement(e):{}}}function Zhe(){if(Rhe)return Dhe;Rhe=1;var e=lfe(),t=Xde(),r=Qhe();return Dhe=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function epe(){if(jhe)return zhe;jhe=1;var e=Xde(),t=rfe(),r=/#|\.prototype\./,n=function(r,n){var l=i[o(r)];return l===s||l!==a&&(t(n)?e(n):!!n)},o=n.normalize=function(e){return String(e).replace(r,".").toLowerCase()},i=n.data={},a=n.NATIVE="N",s=n.POLYFILL="P";return zhe=n}function tpe(){if(Fhe)return Lhe;Fhe=1;var e=tfe(),t=uhe(),r=Jde(),n=e(e.bind);return Lhe=function(e,o){return t(e),void 0===o?e:r?n(e,o):function(){return e.apply(o,arguments)}},Lhe}var rpe,npe,ope,ipe,ape,spe,lpe,cpe,upe,dpe,fpe,hpe,ppe,mpe,gpe,vpe,ype,bpe,wpe,xpe,Spe,kpe,Epe,Tpe,_pe,Cpe,Ape,Ipe,Ppe,Npe,Bpe,Ope,Dpe,Rpe,Mpe,zpe,jpe,Lpe,Fpe,Vpe,qpe,Hpe,Upe,Wpe,$pe,Gpe,Ype,Kpe,Xpe,Jpe,Qpe,Zpe,eme,tme,rme,nme,ome,ime,ame,sme,lme,cme,ume,dme,fme,hme,pme,mme,gme,vme,yme,bme,wme,xme,Sme,kme,Eme,Tme,_me,Cme,Ame,Ime={};function Pme(){return npe?rpe:(npe=1,rpe=lfe()&&Xde()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function Nme(){if(ipe)return ope;ipe=1;var e=ehe(),t=String,r=TypeError;return ope=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function Bme(){if(ape)return Ime;ape=1;var e=lfe(),t=Zhe(),r=Pme(),n=Nme(),o=Jhe(),i=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l="enumerable",c="configurable",u="writable";return Ime.f=e?r?function(e,t,r){if(n(e),t=o(t),n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&u in r&&!r[u]){var i=s(e,t);i&&i[u]&&(e[t]=r.value,r={configurable:c in r?r[c]:i[c],enumerable:l in r?r[l]:i[l],writable:!1})}return a(e,t,r)}:a:function(e,r,s){if(n(e),r=o(r),n(s),t)try{return a(e,r,s)}catch(l){}if("get"in s||"set"in s)throw new i("Accessors not supported");return"value"in s&&(e[r]=s.value),e},Ime}function Ome(){if(lpe)return spe;lpe=1;var e=lfe(),t=Bme(),r=Kfe();return spe=e?function(e,n,o){return t.f(e,n,r(1,o))}:function(e,t,r){return e[t]=r,e}}function Dme(){if(upe)return cpe;upe=1;var e=Kde(),t=Qde(),r=tfe(),n=rfe(),o=function(){if(Mhe)return sfe;Mhe=1;var e=lfe(),t=cfe(),r=Yfe(),n=Kfe(),o=Zfe(),i=Jhe(),a=Ghe(),s=Zhe(),l=Object.getOwnPropertyDescriptor;return sfe.f=e?l:function(e,c){if(e=o(e),c=i(c),s)try{return l(e,c)}catch(u){}if(a(e,c))return n(!t(r.f,e,c),e[c])},sfe}().f,i=epe(),a=the(),s=tpe(),l=Ome(),c=Ghe(),u=function(e){var r=function(n,o,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,o)}return new e(n,o,i)}return t(e,this,arguments)};return r.prototype=e.prototype,r};return cpe=function(t,d){var f,h,p,m,g,v,y,b,w,x=t.target,S=t.global,k=t.stat,E=t.proto,T=S?e:k?e[x]:e[x]&&e[x].prototype,_=S?a:a[x]||l(a,x,{})[x],C=_.prototype;for(m in d)h=!(f=i(S?m:x+(k?".":"#")+m,t.forced))&&T&&c(T,m),v=_[m],h&&(y=t.dontCallGetSet?(w=o(T,m))&&w.value:T[m]),g=h&&y?y:d[m],(f||E||typeof v!=typeof g)&&(b=t.bind&&h?s(g,e):t.wrap&&h?u(g):E&&n(g)?r(g):g,(t.sham||g&&g.sham||v&&v.sham)&&l(b,"sham",!0),l(_,m,b),E&&(c(a,p=x+"Prototype")||l(a,p,{}),l(a[p],m,g),t.real&&C&&(f||!C[m])&&l(C,m,g)))}}function Rme(){if(fpe)return dpe;fpe=1;var e=Kde(),t=ohe(),r=efe(),n=function(e){return t.slice(0,e.length)===e};return dpe=n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":e.Bun&&"string"==typeof Bun.version?"BUN":e.Deno&&"object"==typeof Deno.version?"DENO":"process"===r(e.process)?"NODE":e.window&&e.document?"BROWSER":"REST"}function Mme(){return ppe?hpe:(ppe=1,hpe="NODE"===Rme())}function zme(){if(gpe)return mpe;gpe=1;var e=Ome();return mpe=function(t,r,n,o){return o&&o.enumerable?t[r]=n:e(t,r,n),t}}function jme(){if(ype)return vpe;ype=1;var e=Zde(),t=uhe();return vpe=function(r,n,o){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[o]))}catch(i){}}}function Lme(){if(wpe)return bpe;wpe=1;var e=ehe();return bpe=function(t){return e(t)||null===t}}function Fme(){if(Spe)return xpe;Spe=1;var e=Lme(),t=String,r=TypeError;return xpe=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}function Vme(){if(Epe)return kpe;Epe=1;var e=jme(),t=ehe(),r=Qfe(),n=Fme();return kpe=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,a={};try{(o=e(Object.prototype,"__proto__","set"))(a,[]),i=a instanceof Array}catch(s){}return function(e,a){return r(e),n(a),t(e)?(i?o(e,a):e.__proto__=a,e):e}}():void 0)}function qme(){if(_pe)return Tpe;_pe=1;var e={};return e[Khe()("toStringTag")]="z",Tpe="[object z]"===String(e)}function Hme(){if(Ape)return Cpe;Ape=1;var e=qme(),t=rfe(),r=efe(),n=Khe()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return Cpe=e?r:function(e){var a,s,l;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(r){}}(a=o(e),n))?s:i?r(a):"Object"===(l=r(a))&&t(a.callee)?"Arguments":l}}function Ume(){if(Ppe)return Ipe;Ppe=1;var e=qme(),t=Hme();return Ipe=e?{}.toString:function(){return"[object "+t(this)+"]"}}function Wme(){if(Bpe)return Npe;Bpe=1;var e=qme(),t=Bme().f,r=Ome(),n=Ghe(),o=Ume(),i=Khe()("toStringTag");return Npe=function(a,s,l,c){var u=l?a:a&&a.prototype;u&&(n(u,i)||t(u,i,{configurable:!0,value:s}),c&&!e&&r(u,"toString",o))}}function $me(){if(Dpe)return Ope;Dpe=1;var e=Bme();return Ope=function(t,r,n){return e.f(t,r,n)}}function Gme(){if(Mpe)return Rpe;Mpe=1;var e=rhe(),t=$me(),r=Khe(),n=lfe(),o=r("species");return Rpe=function(r){var i=e(r);n&&i&&!i[o]&&t(i,o,{configurable:!0,get:function(){return this}})}}function Yme(){if(jpe)return zpe;jpe=1;var e=nhe(),t=TypeError;return zpe=function(r,n){if(e(n,r))return r;throw new t("Incorrect invocation")}}function Kme(){if(Fpe)return Lpe;Fpe=1;var e=Zde(),t=rfe(),r=Uhe(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),Lpe=r.inspectSource}function Xme(){if(qpe)return Vpe;qpe=1;var e=Zde(),t=Xde(),r=rfe(),n=Hme(),o=rhe(),i=Kme(),a=function(){},s=o("Reflect","construct"),l=/^\s*(?:class|function)\b/,c=e(l.exec),u=!l.test(a),d=function(e){if(!r(e))return!1;try{return s(a,[],e),!0}catch(t){return!1}},f=function(e){if(!r(e))return!1;switch(n(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return u||!!c(l,i(e))}catch(t){return!0}};return f.sham=!0,Vpe=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?f:d}function Jme(){if(Upe)return Hpe;Upe=1;var e=Xme(),t=che(),r=TypeError;return Hpe=function(n){if(e(n))return n;throw new r(t(n)+" is not a constructor")}}function Qme(){if($pe)return Wpe;$pe=1;var e=Nme(),t=Jme(),r=Jfe(),n=Khe()("species");return Wpe=function(o,i){var a,s=e(o).constructor;return void 0===s||r(a=e(s)[n])?i:t(a)}}function Zme(){return Ype?Gpe:(Ype=1,Gpe=rhe()("document","documentElement"))}function ege(){return Xpe?Kpe:(Xpe=1,Kpe=Zde()([].slice))}function tge(){if(Qpe)return Jpe;Qpe=1;var e=TypeError;return Jpe=function(t,r){if(t<r)throw new e("Not enough arguments");return t}}function rge(){return eme?Zpe:(eme=1,Zpe=/(?:ipad|iphone|ipod).*applewebkit/i.test(ohe()))}function nge(){if(rme)return tme;rme=1;var e,t,r,n,o=Kde(),i=Qde(),a=tpe(),s=rfe(),l=Ghe(),c=Xde(),u=Zme(),d=ege(),f=Qhe(),h=tge(),p=rge(),m=Mme(),g=o.setImmediate,v=o.clearImmediate,y=o.process,b=o.Dispatch,w=o.Function,x=o.MessageChannel,S=o.String,k=0,E={},T="onreadystatechange";c(function(){e=o.location});var _=function(e){if(l(E,e)){var t=E[e];delete E[e],t()}},C=function(e){return function(){_(e)}},A=function(e){_(e.data)},I=function(t){o.postMessage(S(t),e.protocol+"//"+e.host)};return g&&v||(g=function(e){h(arguments.length,1);var r=s(e)?e:w(e),n=d(arguments,1);return E[++k]=function(){i(r,void 0,n)},t(k),k},v=function(e){delete E[e]},m?t=function(e){y.nextTick(C(e))}:b&&b.now?t=function(e){b.now(C(e))}:x&&!p?(n=(r=new x).port2,r.port1.onmessage=A,t=a(n.postMessage,n)):o.addEventListener&&s(o.postMessage)&&!o.importScripts&&e&&"file:"!==e.protocol&&!c(I)?(t=I,o.addEventListener("message",A,!1)):t=T in f("script")?function(e){u.appendChild(f("script"))[T]=function(){u.removeChild(this),_(e)}}:function(e){setTimeout(C(e),0)}),tme={set:g,clear:v}}function oge(){if(ome)return nme;ome=1;var e=Kde(),t=lfe(),r=Object.getOwnPropertyDescriptor;return nme=function(n){if(!t)return e[n];var o=r(e,n);return o&&o.value}}function ige(){if(ame)return ime;ame=1;var e=function(){this.head=null,this.tail=null};return e.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},ime=e}function age(){return lme?sme:(lme=1,sme=/ipad|iphone|ipod/i.test(ohe())&&"undefined"!=typeof Pebble)}function sge(){return ume?cme:(ume=1,cme=/web0s(?!.*chrome)/i.test(ohe()))}function lge(){if(fme)return dme;fme=1;var e,t,r,n,o,i=Kde(),a=oge(),s=tpe(),l=nge().set,c=ige(),u=rge(),d=age(),f=sge(),h=Mme(),p=i.MutationObserver||i.WebKitMutationObserver,m=i.document,g=i.process,v=i.Promise,y=a("queueMicrotask");if(!y){var b=new c,w=function(){var t,r;for(h&&(t=g.domain)&&t.exit();r=b.get();)try{r()}catch(n){throw b.head&&e(),n}t&&t.enter()};u||h||f||!p||!m?!d&&v&&v.resolve?((n=v.resolve(void 0)).constructor=v,o=s(n.then,n),e=function(){o(w)}):h?e=function(){g.nextTick(w)}:(l=s(l,i),e=function(){l(w)}):(t=!0,r=m.createTextNode(""),new p(w).observe(r,{characterData:!0}),e=function(){r.data=t=!t}),y=function(t){b.head||e(),b.add(t)}}return dme=y}function cge(){return pme||(pme=1,hme=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(r){}}),hme}function uge(){return gme?mme:(gme=1,mme=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}})}function dge(){if(yme)return vme;yme=1;var e=Kde(),t=rfe(),r=e.WeakMap;return vme=t(r)&&/native code/.test(String(r))}function fge(){if(wme)return bme;wme=1;var e=Whe(),t=Yhe(),r=e("keys");return bme=function(e){return r[e]||(r[e]=t(e))}}function hge(){return Sme?xme:(Sme=1,xme={})}function pge(){if(Eme)return kme;Eme=1;var e,t,r,n=dge(),o=Kde(),i=ehe(),a=Ome(),s=Ghe(),l=Uhe(),c=fge(),u=hge(),d="Object already initialized",f=o.TypeError,h=o.WeakMap;if(n||l.state){var p=l.state||(l.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new f(d);return t.facade=e,p.set(e,t),t},t=function(e){return p.get(e)||{}},r=function(e){return p.has(e)}}else{var m=c("state");u[m]=!0,e=function(e,t){if(s(e,m))throw new f(d);return t.facade=e,a(e,m,t),t},t=function(e){return s(e,m)?e[m]:{}},r=function(e){return s(e,m)}}return kme={set:e,get:t,has:r,enforce:function(n){return r(n)?t(n):e(n,{})},getterFor:function(e){return function(r){var n;if(!i(r)||(n=t(r)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}}function mge(){return _me?Tme:(_me=1,Tme=Kde().Promise)}function gge(){if(Ame)return Cme;Ame=1;var e=Kde(),t=mge(),r=rfe(),n=epe(),o=Kme(),i=Khe(),a=Rme(),s=qhe(),l=ihe(),c=t&&t.prototype,u=i("species"),d=!1,f=r(e.PromiseRejectionEvent),h=n("Promise",function(){var e=o(t),r=e!==String(t);if(!r&&66===l)return!0;if(s&&(!c.catch||!c.finally))return!0;if(!l||l<51||!/native code/.test(e)){var n=new t(function(e){e(1)}),i=function(e){e(function(){},function(){})};if((n.constructor={})[u]=i,!(d=n.then(function(){})instanceof i))return!0}return!(r||"BROWSER"!==a&&"DENO"!==a||f)});return Cme={CONSTRUCTOR:h,REJECTION_EVENT:f,SUBCLASSING:d}}var vge,yge,bge={};function wge(){if(vge)return bge;vge=1;var e=uhe(),t=TypeError,r=function(r){var n,o;this.promise=new r(function(e,r){if(void 0!==n||void 0!==o)throw new t("Bad Promise constructor");n=e,o=r}),this.resolve=e(n),this.reject=e(o)};return bge.f=function(e){return new r(e)},bge}var xge,Sge,kge,Ege,Tge,_ge,Cge,Age,Ige,Pge,Nge,Bge,Oge,Dge,Rge,Mge,zge,jge,Lge,Fge,Vge,qge,Hge,Uge,Wge,$ge={};function Gge(){return Sge?xge:(Sge=1,xge={})}function Yge(){if(Ege)return kge;Ege=1;var e=Khe(),t=Gge(),r=e("iterator"),n=Array.prototype;return kge=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}function Kge(){if(_ge)return Tge;_ge=1;var e=Math.ceil,t=Math.floor;return Tge=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)}}function Xge(){if(Age)return Cge;Age=1;var e=Kge();return Cge=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function Jge(){if(Pge)return Ige;Pge=1;var e=Xge(),t=Math.min;return Ige=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function Qge(){if(Bge)return Nge;Bge=1;var e=Jge();return Nge=function(t){return e(t.length)}}function Zge(){if(Dge)return Oge;Dge=1;var e=Hme(),t=dhe(),r=Jfe(),n=Gge(),o=Khe()("iterator");return Oge=function(i){if(!r(i))return t(i,o)||t(i,"@@iterator")||n[e(i)]}}function eve(){if(Mge)return Rge;Mge=1;var e=cfe(),t=uhe(),r=Nme(),n=che(),o=Zge(),i=TypeError;return Rge=function(a,s){var l=arguments.length<2?o(a):s;if(t(l))return r(e(l,a));throw new i(n(a)+" is not iterable")},Rge}function tve(){if(jge)return zge;jge=1;var e=cfe(),t=Nme(),r=dhe();return zge=function(n,o,i){var a,s;t(n);try{if(!(a=r(n,"return"))){if("throw"===o)throw i;return i}a=e(a,n)}catch(l){s=!0,a=l}if("throw"===o)throw i;if(s)throw a;return t(a),i}}function rve(){if(Fge)return Lge;Fge=1;var e=tpe(),t=cfe(),r=Nme(),n=che(),o=Yge(),i=Qge(),a=nhe(),s=eve(),l=Zge(),c=tve(),u=TypeError,d=function(e,t){this.stopped=e,this.result=t},f=d.prototype;return Lge=function(h,p,m){var g,v,y,b,w,x,S,k=m&&m.that,E=!(!m||!m.AS_ENTRIES),T=!(!m||!m.IS_RECORD),_=!(!m||!m.IS_ITERATOR),C=!(!m||!m.INTERRUPTED),A=e(p,k),I=function(e){return g&&c(g,"normal"),new d(!0,e)},P=function(e){return E?(r(e),C?A(e[0],e[1],I):A(e[0],e[1])):C?A(e,I):A(e)};if(T)g=h.iterator;else if(_)g=h;else{if(!(v=l(h)))throw new u(n(h)+" is not iterable");if(o(v)){for(y=0,b=i(h);b>y;y++)if((w=P(h[y]))&&a(f,w))return w;return new d(!1)}g=s(h,v)}for(x=T?h.next:g.next;!(S=t(x,g)).done;){try{w=P(S.value)}catch(N){c(g,"throw",N)}if("object"==typeof w&&w&&a(f,w))return w}return new d(!1)},Lge}function nve(){if(qge)return Vge;qge=1;var e=Khe()("iterator"),t=!1;try{var r=0,n={next:function(){return{done:!!r++}},return:function(){t=!0}};n[e]=function(){return this},Array.from(n,function(){throw 2})}catch(o){}return Vge=function(r,n){try{if(!n&&!t)return!1}catch(o){return!1}var i=!1;try{var a={};a[e]=function(){return{next:function(){return{done:i=!0}}}},r(a)}catch(o){}return i}}function ove(){if(Uge)return Hge;Uge=1;var e=mge(),t=nve(),r=gge().CONSTRUCTOR;return Hge=r||!t(function(t){e.all(t).then(void 0,function(){})})}var ive,ave={};var sve,lve={};var cve,uve={};var dve,fve,hve,pve,mve={};function gve(){if(fve)return dve;fve=1;var e=Nme(),t=ehe(),r=wge();return dve=function(n,o){if(e(n),t(o)&&o.constructor===n)return o;var i=r.f(n);return(0,i.resolve)(o),i.promise}}function vve(){return pve||(pve=1,function(){if(yge)return Yde;yge=1;var e,t,r,n,o=Dme(),i=qhe(),a=Mme(),s=Kde(),l=the(),c=cfe(),u=zme(),d=Vme(),f=Wme(),h=Gme(),p=uhe(),m=rfe(),g=ehe(),v=Yme(),y=Qme(),b=nge().set,w=lge(),x=cge(),S=uge(),k=ige(),E=pge(),T=mge(),_=gge(),C=wge(),A="Promise",I=_.CONSTRUCTOR,P=_.REJECTION_EVENT,N=_.SUBCLASSING,B=E.getterFor(A),O=E.set,D=T&&T.prototype,R=T,M=D,z=s.TypeError,j=s.document,L=s.process,F=C.f,V=F,q=!!(j&&j.createEvent&&s.dispatchEvent),H="unhandledrejection",U=function(e){var t;return!(!g(e)||!m(t=e.then))&&t},W=function(e,t){var r,n,o,i=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,d=e.domain;try{s?(a||(2===t.rejection&&X(t),t.rejection=1),!0===s?r=i:(d&&d.enter(),r=s(i),d&&(d.exit(),o=!0)),r===e.promise?u(new z("Promise-chain cycle")):(n=U(r))?c(n,r,l,u):l(r)):u(i)}catch(f){d&&!o&&d.exit(),u(f)}},$=function(e,t){e.notified||(e.notified=!0,w(function(){for(var r,n=e.reactions;r=n.get();)W(r,e);e.notified=!1,t&&!e.rejection&&Y(e)}))},G=function(e,t,r){var n,o;q?((n=j.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),s.dispatchEvent(n)):n={promise:t,reason:r},!P&&(o=s["on"+e])?o(n):e===H&&x("Unhandled promise rejection",r)},Y=function(e){c(b,s,function(){var t,r=e.facade,n=e.value;if(K(e)&&(t=S(function(){a?L.emit("unhandledRejection",n,r):G(H,r,n)}),e.rejection=a||K(e)?2:1,t.error))throw t.value})},K=function(e){return 1!==e.rejection&&!e.parent},X=function(e){c(b,s,function(){var t=e.facade;a?L.emit("rejectionHandled",t):G("rejectionhandled",t,e.value)})},J=function(e,t,r){return function(n){e(t,n,r)}},Q=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,$(e,!0))},Z=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new z("Promise can't be resolved itself");var n=U(t);n?w(function(){var r={done:!1};try{c(n,t,J(Z,r,e),J(Q,r,e))}catch(o){Q(r,o,e)}}):(e.value=t,e.state=1,$(e,!1))}catch(o){Q({done:!1},o,e)}}};if(I&&(M=(R=function(t){v(this,M),p(t),c(e,this);var r=B(this);try{t(J(Z,r),J(Q,r))}catch(n){Q(r,n)}}).prototype,(e=function(e){O(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:null})}).prototype=u(M,"then",function(e,t){var r=B(this),n=F(y(this,R));return r.parent=!0,n.ok=!m(e)||e,n.fail=m(t)&&t,n.domain=a?L.domain:void 0,0===r.state?r.reactions.add(n):w(function(){W(n,r)}),n.promise}),t=function(){var t=new e,r=B(t);this.promise=t,this.resolve=J(Z,r),this.reject=J(Q,r)},C.f=F=function(e){return e===R||e===r?new t(e):V(e)},!i&&m(T)&&D!==Object.prototype)){n=D.then,N||u(D,"then",function(e,t){var r=this;return new R(function(e,t){c(n,r,e,t)}).then(e,t)},{unsafe:!0});try{delete D.constructor}catch(ee){}d&&d(D,M)}o({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:R}),r=l.Promise,f(R,A,!1,!0),h(A)}(),function(){if(Wge)return $ge;Wge=1;var e=Dme(),t=cfe(),r=uhe(),n=wge(),o=uge(),i=rve();e({target:"Promise",stat:!0,forced:ove()},{all:function(e){var a=this,s=n.f(a),l=s.resolve,c=s.reject,u=o(function(){var n=r(a.resolve),o=[],s=0,u=1;i(e,function(e){var r=s++,i=!1;u++,t(n,a,e).then(function(e){i||(i=!0,o[r]=e,--u||l(o))},c)}),--u||l(o)});return u.error&&c(u.value),s.promise}})}(),function(){if(ive)return ave;ive=1;var e=Dme(),t=qhe(),r=gge().CONSTRUCTOR,n=mge(),o=rhe(),i=rfe(),a=zme(),s=n&&n.prototype;if(e({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(e){return this.then(void 0,e)}}),!t&&i(n)){var l=o("Promise").prototype.catch;s.catch!==l&&a(s,"catch",l,{unsafe:!0})}}(),function(){if(sve)return lve;sve=1;var e=Dme(),t=cfe(),r=uhe(),n=wge(),o=uge(),i=rve();e({target:"Promise",stat:!0,forced:ove()},{race:function(e){var a=this,s=n.f(a),l=s.reject,c=o(function(){var n=r(a.resolve);i(e,function(e){t(n,a,e).then(s.resolve,l)})});return c.error&&l(c.value),s.promise}})}(),function(){if(cve)return uve;cve=1;var e=Dme(),t=wge();e({target:"Promise",stat:!0,forced:gge().CONSTRUCTOR},{reject:function(e){var r=t.f(this);return(0,r.reject)(e),r.promise}})}(),function(){if(hve)return mve;hve=1;var e=Dme(),t=rhe(),r=qhe(),n=mge(),o=gge().CONSTRUCTOR,i=gve(),a=t("Promise"),s=r&&!o;e({target:"Promise",stat:!0,forced:r||o},{resolve:function(e){return i(s&&this===a?n:this,e)}})}()),Gde}var yve,bve,wve,xve,Sve,kve={};function Eve(){if(yve)return kve;yve=1;var e=Dme(),t=wge();return e({target:"Promise",stat:!0},{withResolvers:function(){var e=t.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}}),kve}function Tve(){if(wve)return bve;wve=1,vve(),Eve();var e=cfe(),t=rfe(),r=the().Promise,n=r.withResolvers;return bve=function(){return e(n,t(this)?this:r)}}function _ve(){return Sve?xve:(Sve=1,xve=Tve())}var Cve,Ave,Ive,Pve,Nve,Bve,Ove;function Dve(){if(Ive)return Ave;Ive=1;var e=_ve();return Cve||(Cve=1,Eve()),Ave=e}function Rve(){return Nve?Pve:(Nve=1,Pve=Dve())}function Mve(){return Ove?Bve:(Ove=1,Bve=Rve())}const zve=r(Mve());function jve(){let e;const t=[];return{push:r=>{if(e){const{resolve:t}=e;e=null,t(r)}else t.push(r)},shift:()=>t.length?Promise.resolve(t.shift()):(e||(e=zve())).promise}}var Lve,Fve,Vve,qve;const Hve=r(qve?Vve:(qve=1,Vve=function(e){if(!e)return Math.random;var t=Math.pow(2,32),r=new Uint32Array(1);return function(){return e.getRandomValues(r)[0]/t}}(function(){if(Fve)return Lve;Fve=1;var e="undefined"!=typeof window?window:self;return Lve=e.crypto||e.msCrypto}())));function Uve(){return Hve().toString(36).substring(2)}function Wve(...e){return x_(function*(){for(const t of e)yield g_(t)})}const $ve="DIRECT_LINE/DISCONNECT",Gve=`${$ve}_PENDING`,Yve=`${$ve}_FULFILLED`,{logWarn:Kve}=R.withKind("connectSaga"),Xve=0,Jve="https://directline.botframework.com";function Qve(){return`r_${Uve().substring(0,10)}`}function*Zve(e){const t=jve(),r=e.connectionStatus$.subscribe({next:t.push});try{for(;;){const e=yield w_(t.shift);yield g_(Pde(e))}}finally{r.unsubscribe()}}function eye(e,t){const{token:r}=e;let n;try{const e=r?function(e,t){if("string"!=typeof e)throw new Cde("Invalid token specified: must be a string");t||(t={});const r=!0===t.header?0:1,n=e.split(".")[r];if("string"!=typeof n)throw new Cde(`Invalid token specified: missing part #${r+1}`);let o;try{o=Ade(n)}catch(Wqe){throw new Cde(`Invalid token specified: invalid base64 for part #${r+1} (${Wqe.message})`)}try{return JSON.parse(o)}catch(Wqe){throw new Cde(`Invalid token specified: invalid json for part #${r+1} (${Wqe.message})`)}}(r):null;n=e?.user}catch(i){}const o={fromAction:t,fromToken:n};return n?(t&&t!==n&&Kve("Web Chat: user ID is both specified in the Direct Line token and passed in, will use the user ID from the token."),o.final=n):t?"string"!=typeof t?(Kve("Web Chat: user ID must be a string."),o.final=Qve()):/^dl_/u.test(t)?(Kve('Web Chat: user ID prefixed with "dl_" is reserved and must be embedded into the Direct Line token to prevent forgery.'),o.final=Qve()):o.final=t:o.final=Qve(),o}function*tye(e){const t=Date.now(),r=e.activity$.subscribe({next:()=>0}),n=r.unsubscribe.bind(r);let o=!0,i=200;try{for(;;){const{payload:{connectionStatus:t}}=yield m_(Ide);if(i=t,2===t)return o=!0,()=>{n(),e.end()};if(t!==Xve&&1!==t)throw o=!1,yield g_(IC({message:"Unable to connect to chat service. The service may be temporarily unavailable. Please try again in a few moments.",type:"error",dismissible:!1})),new Error(`Failed to connect, DirectLineJS returned ${t}.`)}}catch(a){throw s8(CV,a),n(),a}finally{const r=Date.now()-t,a=function(e){return e?.domain||Jve}(e);(yield T_())&&n(),l8(OV,F,CV,r,o,i,a)}}function*rye(){const e=Date.now();let t=!0,r=200;try{for(;;){const{payload:{connectionStatus:e}}=yield m_(Ide);if(r=e,2===e){t=!0;break}if(1!==e)throw yield g_(IC({message:"Connection lost. Please refresh the page to continue.",type:"warn",dismissible:!1})),new Error(`Failed to reconnect. DirectLineJS returned ${e}.`)}}catch(n){t=!1,s8(AV,n)}finally{const n=Date.now()-e;l8(OV,F,AV,n,t,r,Jve)}}function*nye(){throw yield m_($ve),yield g_(IC({message:"Please refresh the page.",type:"error",dismissible:!1})),new Error("disconnected")}function oye(e,t){return function*({type:e,meta:t,payload:r},n){try{yield Wve({type:`${e}_PENDING`,meta:t,payload:r});const o=yield n();return yield Wve({type:`${e}_FULFILLING`,meta:t,payload:r},{type:`${e}_FULFILLED`,meta:t,payload:r}),o}catch(o){throw yield g_(IC({message:"Unable to connect to chat service. Please check your internet connection and try again.",type:"error",dismissible:!1})),yield Wve({type:`${e}_REJECTED`,error:!0,meta:t,payload:o}),o}}(e,function*(){const{result:e}=yield y_({_:nye(),result:t()});return e})}function*iye(){for(;;){const{payload:{directLine:t,userID:r,username:n}}=yield m_(Mue),o=yield x_(Zve,t),i=eye(t,r),a={userID:i.final,username:n};let s;t.setUserId&&i.fromToken!==a.userID&&t.setUserId(a.userID);try{const e=yield oye({type:Mue,meta:a,payload:{directLine:t}},()=>w_(tye,t));try{for(;;){const{updateConnectionStatusAction:{payload:{connectionStatus:e}={connectionStatus:Xve}}={}}=yield y_({_:m_($ve),updateConnectionStatusAction:m_(Ide)});if(1===e)yield oye({type:Lue,meta:a,payload:{directLine:t}},()=>w_(rye));else if(2!==e){if(void 0!==e)throw new Error(`Connection status changed to ${e}`);break}}}finally{e()}}catch(e){s={error:e}}finally{yield k_(o),yield Wve({type:Gve,meta:s,payload:{directLine:t}},{type:Yve,meta:s,payload:{directLine:t}})}}}function aye(e){let t=e.replace(/#\/?md#/g,"");return t=(new DOMParser).parseFromString(t,"text/html").body.textContent,t}function sye(e,t){return sV.messageReceived({role:"bot",text:aye(e),key:t})}function lye(e,t){return sV.messageReceived({role:"user",text:aye(e),key:t})}function cye(e,t){return sV.messageReceived({role:"dbg",text:aye(e),key:t})}function uye(e,t){return sV.messageReceived({role:"bot",attachments:e,key:t})}function dye(e){return sV.setLivePersonConnectionState("string"==typeof e?{type:e}:e)}const{log:fye,logWarn:hye,logError:pye}=R.withKind("livePersonSaga");function mye(e){fye(`%c${e} ${"-".repeat(79-e.length)}`,"color:#888800")}let gye={log:["console"],warn:["console"],error:["console"]};function*vye(...e){gye.log.includes("console")&&fye(...e),gye.log.includes("chat")&&(yield g_(cye(e.map(e=>JSON.stringify(e)).join("\n"))))}function*yye(...e){gye.error.includes("console")&&pye(...e),gye.error.includes("chat")&&(yield g_(cye(e.map(e=>JSON.stringify(e)).join("\n"))))}class bye extends Error{constructor(e,t,r){super(e),this.name="EnhancedError",this.originalError=t||new Error(e),this.context=r||{},this.capturedAt=(new Date).toISOString(),this.executionContext=function(){const e={timestamp:(new Date).toISOString(),url:window.location.href,userAgent:navigator.userAgent,viewport:{width:window.innerWidth,height:window.innerHeight},performance:{memory:performance.memory?{usedJSHeapSize:performance.memory.usedJSHeapSize,totalJSHeapSize:performance.memory.totalJSHeapSize,jsHeapSizeLimit:performance.memory.jsHeapSizeLimit}:void 0}};try{const t=document.querySelector("#unified-chat-assistant");t&&(e.chatElementPresent=!0,e.chatElementClasses=t.className)}catch(Wqe){}return e}(),this.buildInfo=I7();const n=t?.stack||this.stack||"";this.parsedStack=function(e){if(!e)return[];const t=e.split("\n"),r=[];for(const n of t){if(!n.trim()||"Error"===n.trim())continue;let e=n.match(/^\s*at\s+(?:(.+?)\s+\()?(.+?):(\d+):(\d+)\)?$/);if(e||(e=n.match(/^(.+?)@(.+?):(\d+):(\d+)$/)),e){const[,t,o,i,a]=e;r.push({fileName:o?.trim(),functionName:t?.trim()||"<anonymous>",lineNumber:i?parseInt(i,10):void 0,columnNumber:a?parseInt(a,10):void 0,source:n.trim()})}else r.push({source:n.trim()})}return r}(n),t?.stack&&(this.stack=t.stack)}toJSON(){return{message:this.message,name:this.name,stack:this.stack,parsedStack:this.parsedStack,context:this.context,capturedAt:this.capturedAt,buildInfo:this.buildInfo,executionContext:this.executionContext,originalError:{message:this.originalError.message,name:this.originalError.name,stack:this.originalError.stack}}}}async function wye(e,t){const r=Date.now();try{const n=await e(),o=Date.now()-r;return t.operation&&o>1e3&&R.info(`Slow operation detected: ${t.operation} took ${o}ms`),n}catch(n){const e=Date.now()-r,o=new bye(`Operation failed: ${t.operation||"unknown"}`,n instanceof Error?n:new Error(String(n)),{...t,duration:e,operationStartTime:new Date(r).toISOString()});throw s8(t.component||"UnknownComponent",o,o.toJSON()),o}}function xye(e,t){return e.catch(e=>{const r=new bye(`Promise rejected in ${t.operation}`,e instanceof Error?e:new Error(String(e)),{...t,metadata:{...t.metadata,promiseCreatedAt:(new Date).toISOString(),wasTracked:!0}});throw R.group(`🔍 Tracked Promise Rejection: ${t.operation}`),R.error("Enhanced Error:",r),R.error("Original Error:",e),R.error("Context:",t),R.groupEnd(),r})}const Sye=()=>"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),kye="waapro",Eye=e=>!!e&&e.toLowerCase()===kye||Dwe.getState().optionsProvider?.options?.agent===z.WaaProLocal,Tye=()=>window.location.hostname.includes("wwwdev")||window.location.hostname.includes("localhost")||window.location.hostname.includes("uca.local")||window.location.hostname.includes("webassistant-dev")||window.location.hostname.includes("wwwppe")||window.location.hostname.includes("webassistant-ppe")||window.location.hostname.includes("prv.signup.microsoft.com")||window.location.hostname.includes("signupppe.microsoft.com"),_ye=()=>{const e=Cye(),t=Dwe.getState().optionsProvider?.options?.agent;return t===z.WaaProLocal||Tye()&&Eye(e)?"waapro-local":"default"},Cye=()=>{const e=new URLSearchParams(window.location.search).get("botEnvironment");if(Tye()&&e?.toLowerCase()===kye)return kye;const t=Dwe.getState().optionsProvider?.options?.agent;if(t===z.WaaProLocal)return kye;return"prod-waapro"},Aye=3,Iye=1e3,Pye=1e4,Nye=2,Bye=(e,t)=>t>=400&&t<500?408===t||429===t||499===t:t>=500||!!("AbortError"===e.name||e.message.includes("fetch")||e.message.includes("network")||e.message.includes("Failed to fetch")||e.message.includes("NetworkError")),Oye=e=>new Promise(t=>setTimeout(t,e)),Dye=(e,t)=>{const r={errorType:e.constructor.name,errorMessage:e.message,url:t,timestamp:(new Date).toISOString(),online:navigator.onLine,connection:navigator.connection?{effectiveType:navigator.connection.effectiveType,downlink:navigator.connection.downlink,rtt:navigator.connection.rtt,saveData:navigator.connection.saveData}:null,userAgent:navigator.userAgent,language:navigator.language,performanceTiming:performance.timing?{domComplete:performance.timing.domComplete,loadEventEnd:performance.timing.loadEventEnd,navigationStart:performance.timing.navigationStart}:null},n=e.message.toLowerCase();return n.includes("failed to fetch")||n.includes("networkerror")?(r.likelyCause="network_connectivity_issue",r.suggestions=["Check internet connection","Verify if corporate firewall is blocking the request","Check if the endpoint URL is correct and accessible"]):"AbortError"===e.name?(r.likelyCause="request_timeout",r.suggestions=["Network request timed out after 30 seconds","Check network latency","Verify server response times"]):n.includes("cors")||n.includes("cross-origin")?(r.likelyCause="cors_policy_violation",r.suggestions=["CORS policy is blocking the request","Check server CORS configuration","Verify request headers and methods"]):n.includes("dns")||n.includes("name resolution")?(r.likelyCause="dns_resolution_failure",r.suggestions=["DNS cannot resolve the hostname","Check DNS settings","Verify the URL is correct"]):(r.likelyCause="unknown_network_error",r.suggestions=["Check browser console for additional details","Verify network connectivity","Contact system administrator if issue persists"]),r},Rye=async()=>{const e=Cye(),t=Dwe.getState().optionsProvider?.options?.directLineTokenUrl;if(Tye()&&Eye(e)){const e=Sye();return{token:`local-dev-${e}`,created:Math.floor(Date.now()/1e3),expiresIn:3600,tuid:e}}return wye(async()=>{const r=t||"https://webassistant-prod.microsoft.com/directline/v2/ai-assistant/token",n=Sye(),o=Date.now(),i=new URLSearchParams({tuid:n,botEnvironment:e});let a=!1,s=500,l="",c={token:"",created:0,expiresIn:0,tuid:""};const u=`${r}?${i.toString()}`;let d=null;for(let e=1;e<=Aye;e++){const t=new AbortController,r=setTimeout(()=>{t.abort()},3e4);try{const i=await fetch(u,{method:"GET",headers:{"ms-cv":"CASMicrosoft0000.0","Content-Type":"application/json","User-Agent":"UnifiedChatAssistant/1.0"},signal:t.signal});if(clearTimeout(r),!i)throw new Error("No response received from token endpoint");let f;if(s=i.status,"function"==typeof i.text){l=await i.text();try{f=JSON.parse(l)}catch(h){throw new Error(`Invalid JSON response from token endpoint. Status: ${s}, Response: ${l.substring(0,200)}`)}}else{if("function"!=typeof i.json)throw new Error(`Invalid response object from token endpoint. Status: ${s}`);f=await i.json(),l=JSON.stringify(f)}if(!i.ok){let t=`Failed to fetch DirectLine token (${s})`;switch(s){case 400:t=`Bad request to token endpoint. Check botEnvironment parameter. Response: ${JSON.stringify(f)}`;break;case 401:t=`Unauthorized access to token endpoint. Check API credentials. Response: ${JSON.stringify(f)}`;break;case 403:t=`Forbidden access to token endpoint. Check permissions. Response: ${JSON.stringify(f)}`;break;case 404:t=`Token endpoint not found. Check VITE_DIRECTLINE_TOKEN_URL configuration. Response: ${JSON.stringify(f)}`;break;case 429:t=`Rate limited by token endpoint. Too many requests. Response: ${JSON.stringify(f)}`;break;case 500:case 502:case 503:case 504:t=`Server error from token endpoint (${s}). This may be temporary. Response: ${JSON.stringify(f)}`;break;default:t=`Unexpected error from token endpoint (${s}). Response: ${JSON.stringify(f)}`}const r=new Error(t);if(d=r,Bye(r,s)&&e<Aye){const t=Math.min(Iye*Math.pow(Nye,e-1),Pye);await Oye(t);continue}throw r}if(!f.token)throw new Error(`Invalid response structure: missing 'token' field. Response: ${JSON.stringify(f)}`);if("number"!=typeof f.expires_in||f.expires_in<=0)throw new Error(`Invalid response structure: invalid 'expires_in' field. Response: ${JSON.stringify(f)}`);a=!0;const{token:p,expires_in:m}=f;c={token:p,created:Math.floor(o/1e3),expiresIn:m,tuid:n};break}catch(p){if(d=p,Bye(d,s)&&e<Aye){const t=Math.min(Iye*Math.pow(Nye,e-1),Pye);await Oye(t);continue}break}finally{clearTimeout(r)}}if(d&&!a){const t=Dye(d,u),n={operation:"fetchDirectLineToken",botEnvironment:e,requestParams:i.toString(),requestUrl:r,statusCode:s||"unknown",duration:Date.now()-o,responseText:l?l.substring(0,500):"",errorType:d instanceof Error?d.constructor.name:typeof d,errorMessage:d instanceof Error?d.message:String(d),attemptsUsed:Aye,isTimeoutError:d instanceof Error&&"AbortError"===d.name,isNetworkError:d instanceof Error&&(d.message.includes("fetch")||d.message.includes("network")||d.message.includes("Failed to fetch")),userAgent:navigator.userAgent,connectionType:navigator.connection?.effectiveType||"unknown",networkDiagnosis:t};throw H7(MV,d,n),d}const f=Date.now()-o;return l8(DV,V,MV,f,a,s,r),c},{operation:"fetchDirectLineToken",component:V,metadata:{botEnvironment:e,hasTokenUrl:!0,tokenUrl:t||"https://webassistant-prod.microsoft.com/directline/v2/ai-assistant/token"}})};function*Mye(e){yield g_(lye(e.payload,nP()));const t=uV(e.payload);switch(t){case"?":case"help":if(e.payload.trim().toLowerCase().startsWith("/debug")){const e="Available /debug Commands\n\n"+Object.entries(lV).filter(([e])=>cV.includes(e)).map(([e,t])=>`__${e}__: ${t}`).join("\n\n");yield g_(cye(e))}else{const e='Available Debug Commands<br/>Prefix all commands with "lynx:"\n\n'+Object.entries(lV).filter(([e])=>cV.includes(e)).map(([e,t])=>`__${e}__: ${t}`).join("\n\n");yield g_(cye(e))}break;case"enable dbg":let r=[];gye.log.includes("chat")||(gye.log.push("chat"),r.push("log")),gye.warn.includes("chat")||(gye.warn.push("chat"),r.push("warn")),gye.error.includes("chat")||(gye.error.push("chat"),r.push("error")),r.length>0?yield g_(cye(`Debug chat logging enabled for: ${r.join(", ")}`)):yield g_(cye("All debug chat logging already enabled."));break;case"disable dbg":let n=[];gye.log.includes("chat")&&(gye.log=gye.log.filter(e=>"chat"!==e),n.push("log")),gye.warn.includes("chat")&&(gye.warn=gye.warn.filter(e=>"chat"!==e),n.push("warn")),gye.error.includes("chat")&&(gye.error=gye.error.filter(e=>"chat"!==e),n.push("error")),n.length>0?yield g_(cye(`Debug chat logging disabled for: ${n.join(", ")}`)):yield g_(cye("All debug chat logging already disabled."));break;case"enable dbg log":gye.log.includes("chat")?yield g_(cye("Debug log chat logging already enabled.")):(gye.log.push("chat"),yield g_(cye("Debug log chat logging enabled.")));break;case"disable dbg log":gye.log.includes("chat")?(gye.log=gye.log.filter(e=>"chat"!==e),yield g_(cye("Debug log chat logging disabled."))):yield g_(cye("Debug log chat logging already disabled."));break;case"enable dbg warn":gye.warn.includes("chat")?yield g_(cye("Debug warning chat logging already enabled.")):(gye.warn.push("chat"),yield g_(cye("Debug warning chat logging enabled.")));break;case"disable dbg warn":gye.warn.includes("chat")?(gye.warn=gye.warn.filter(e=>"chat"!==e),yield g_(cye("Debug warning chat logging disabled."))):yield g_(cye("Debug warning chat logging already disabled."));break;case"enable dbg error":gye.error.includes("chat")?yield g_(cye("Debug error chat logging already enabled.")):(gye.error.push("chat"),yield g_(cye("Debug error chat logging enabled.")));break;case"disable dbg error":gye.error.includes("chat")?(gye.error=gye.error.filter(e=>"chat"!==e),yield g_(cye("Debug error chat logging disabled."))):yield g_(cye("Debug error chat logging already disabled."));break;case"show dbg config":yield g_(cye(JSON.stringify(gye,null,2)));break;case"enabled flags":const o=K7().getEnabledVariants();if(o&&o.length>0){const e=o.map(e=>`- \`${e.featureName||e.name||"unknown"}\``).join("\n");yield g_(cye(`**Enabled Feature Flags:**\n\n${e}`))}else yield g_(cye("No enabled feature flags found."));break;case"show liveperson state":const i=yield E_(nue);yield g_(cye(JSON.stringify(i,null,2)));break;case"show liveperson debugoptions":const a=yield E_(sue);yield g_(cye(JSON.stringify(a,null,2)));break;case"directline":yield g_(sV.dbgForceSwitchToDirectLine());break;case"liveperson":yield g_(sV.dbgForceSwitchToLivePerson());break;case"end":yield g_(sV.userRequestDisconnect());break;case"typing":yield g_(sV.signalTypingInUI());break;case"show info":case"conversationid":case"cid":{const e=yield E_(eue),r=yield E_(nue);let n="(none)";if(r.initiatingConversationId)n=r.initiatingConversationId;else for(let t=e.length-1;t>=0;t--){const r=e[t]?.conversation?.id;if(r){n=r;break}}const o=(_ye(),"WaaPro");if("show info"===t){const e=K7().getEnabledVariants(),t=e&&e.length>0?e.map(e=>`\`${e.featureName||e.name||"unknown"}\``).join(", "):"(none)";yield g_(cye(`**Conversation ID:** \`${n}\`\n\n**Agent:** ${o}\n\n**Enabled Flags:** ${t}`))}else yield g_(cye(`**Conversation ID:** \`${n}\`\n\n**Agent:** ${o}`));break}default:yield g_(cye(`Unknown lynx dbg command: ${t}`))}}function*zye(){const e=yield E_(sue),t={accountId:e.accountId||null,skillId:e.skillId||null,initiatingConversationId:null,sendTranscript:e.sendTranscript||null,isPostSurveyEnabled:!1,connectionState:{type:"Disconnected"}};yield g_(sV.setLivePersonState(t)),yield g_(sV.initLivePersonChat())}function*jye(){yield g_(sV.setLivePersonState({accountId:null,skillId:null,initiatingConversationId:null,sendTranscript:null,isPostSurveyEnabled:!1,connectionState:{type:"Disconnected"}}))}function*Lye(){yield bue(sV.dbgCommand,Mye),yield xue(sV.dbgForceSwitchToLivePerson.type,zye),yield xue(sV.dbgForceSwitchToDirectLine.type,jye)}const Fye={drawerLivePersonTitleText:"[Live Agent] AI-powered assistant",buttonLivePersonTitleText:"[Live Agent] AI-powered assistant",livePersonInQueueText:"Connecting you to a live agent. Please wait.",livePersonUserClosedConversationText:"Conversation closed by you",livePersonAgentClosedConversationText:"Conversation closed by agent",livePersonSystemClosedConversationText:"Conversation closed by idle system",livePersonDisclaimerText:"You are now chatting with a live agent.",livePersonGenericErrorText:"An error occurred. Please try again later.",surveyBotDisclaimerText:"You are now chatting with a survey bot.",livePersonNoAgentsText:"No agents are available to chat.",livePersonSurveyCloseMessage:"Thank you for your time",livePersonReadText:"Read",returnToAiChatText:"End live chat",livePersonDisconnectedReconnectingText:"You have been disconnected from live agent. Attempting to reconnect...",livePersonReconnectedText:"Reconnected to live agent. You can continue your conversation.",livePersonSendingMessageText:"Sending",livePersonSendFailedText:"Send failed.",retryButtonText:"Retry",transcriptIntroText:"**WAA - FULL CONVERSATION TRANSCRIPT:**",transcriptContinuedText:"**WAA - FULL CONVERSATION TRANSCRIPT (CONTINUED):**",transcriptFromUserText:"**User:**",transcriptFromAssistantText:"**Assistant:**",aiDisclaimerText:"AI-generated content may be incorrect",closeButtonAriaLabel:"Close Dialog",chatDrawerAriaLabel:"Chatbot Window",botGeneratingResponseText:"Generating a response",botFeedbackPositiveAriaLabel:"Thumbs up",botFeedbackNegativeAriaLabel:"Thumbs down",chatActionTypeLinkText:"Chat with sales",livePersonMessageCharLimit:8e3,webChatMaximumCharacters:250,debouncedResizeDelay:250},Vye="startLPChat",qye="saveLPIDs",Hye="lpNotAvailable",Uye={"data-ai-disclaimer":"AI-generated content may be incorrect","data-chat-action-type-link-text":"Chat with sales","data-live-person-disclaimer-text":"You are now chatting with a live agent","data-live-person-generic-error-text":"An error occurred. Please try again later.","data-live-person-sending-message-text":"Sending","data-live-person-send-failed-text":"Send failed.","data-live-person-disconnected-reconnecting-text":"You have been disconnected from live agent. Attempting to reconnect...","data-live-person-reconnected-text":"Reconnected to live agent. You can continue your conversation.",livePersonNoAgentsText:"Unfortunately, a Microsoft Sales Associate isn't available right now. If you're contacting us during regular business hours, please try again.","data-read-text":"Read","data-return-to-ai-chat-text":"End live chat","data-bot-generating-response-text":"Generating a response…","data-bot-feedback-negative-aria-label":"Negative feedback badge icon","data-bot-feedback-positive-aria-label":"Positive feedback badge icon","data-text-input-placeholder":"Ask a work question or make a request...","data-connectivity-status-alt-fatal":"Please refresh the page.","data-drawer-live-person-title-text":"[Live Agent] AI-powered assistant","data-ai-chat-button-title-text":"AI-powered assistant","data-button-live-person-title-text":"[Live Agent] AI-powered assistant","data-live-person-user-closed-conversation-text":"Conversation closed by you","data-live-person-agent-closed-conversation-text":"Conversation closed by agent","data-live-person-system-closed-conversation-text":"Conversation closed by idle system","data-live-person-survey-close-message":"Thank you for your time","data-live-person-transcript-intro-text":"**WAA - FULL CONVERSATION TRANSCRIPT:**","data-live-person-transcript-continued-text":"**WAA - FULL CONVERSATION TRANSCRIPT (CONTINUED):**","data-live-person-transcript-from-user-text":"**User:**","data-live-person-transcript-from-assistant-text":"**Assistant:**","data-retry-button-text":"Retry","data-bi-an":"AI Chat Drawer"},Wye={1724326330:Uye,1865062330:Uye,1724380030:Uye,4430715438:Uye,1832735030:Uye,4631041138:Uye},{log:$ye,logError:Gye}=R.withKind("lp-lib");function Yye(e,t,r){const{atBegin:n=!1}={};return function(e,t,r){const{noTrailing:n=!1,noLeading:o=!1,debounceMode:i}=r||{};let a,s=!1,l=0;function c(){a&&clearTimeout(a)}function u(...r){const u=this,d=Date.now()-l;function f(){l=Date.now(),t.apply(u,r)}function h(){a=void 0}s||(o||!i||a||f(),c(),void 0===i&&d>e?o?(l=Date.now(),n||(a=setTimeout(i?h:f,e))):f():!0!==n&&(a=setTimeout(i?h:f,void 0===i?e-d:e)))}return u.cancel=function(e){const{upcomingOnly:t=!1}=e||{};c(),s=!t},u}(e,t,{debounceMode:!1!==n})}class Kye extends Error{constructor(e,t,r={}){super(t),this.type=e,this.data=r,this.name="LPError"}}const Xye={conversationStateTypes:{OPEN:"OPEN",CLOSE:"CLOSE"},conversationStageTypes:{OPEN:"OPEN",CLOSE:"CLOSE"},acceptStatusTypes:{ACCEPT:"ACCEPT",READ:"READ",ACCESS:"ACCESS",NACK:"NACK",ACTION:"ACTION"},getDomain(e,t){$ye(`In LPUtils.getDomain(${e}, ${t})`);const r=`https://${e.startsWith("le")?"hc1n.dev.lprnd.net":"adminlogin.liveperson.net"}/csdr/account/${e}/service/${t}/baseURI.lpCsds?version=1.0&cb=domainCallback`;return new Promise((e,t)=>{const n=document.querySelector(`script[src="${r}"]`);n&&n.remove();const o=document.createElement("script");o.src=r,o.async=!0,o.addEventListener("error",()=>t(new Error("Network error getting LivePerson domain"))),window.domainCallback=r=>{r.ResultSet&&r.ResultSet.lpData&&r.ResultSet.lpData[0]&&r.ResultSet.lpData[0].lpServer?e(r.ResultSet.lpData[0].lpServer):t(new Error("Invalid response"))},document.body.append(o)})},signup(e){return this.getDomain(e,"idp").then(t=>{const r=`https://${t}/api/account/${e}/signup.jsonp?callback=callback`;return new Promise((e,t)=>{const n=document.createElement("script");n.src=r,n.async=!0,n.addEventListener("error",()=>t(new Error("Network error"))),window.callback=r=>{r&&r.jwt?e(r.jwt):t(new Error("Invalid response"))},document.body.append(n)})}).catch(t=>{throw Gye("Failed to signup with LivePerson",{account:e,error:t}),t})},getNewJWT:e=>($ye("In LPUtils.getJWT. Fetching new JWT using LPUtils.signup(account)."),Xye.signup(e).then(e=>e).catch(t=>{throw Gye("Failed to get new JWT from LivePerson",{account:e,error:t}),t})),engagement:{buildSessionRequestBody(e,t,r,n,o){let i={appType:"EXTERNAL"};if(o&&(i={pageId:o}),n&&(i.appDetails={ipAddress:n}),(e||t||r||n)&&(i.engagementAttributes=[]),!n&&e&&i.engagementAttributes.push({type:"personal",personal:{language:e}}),t||r){const e={type:"lead",lead:{}};t&&(e.lead.topic=t),r&&(e.lead.leadId=r),i.engagementAttributes.push(e)}return i},createSession(e){const{account:t,country:r,topic:n,leadId:o,ipAddress:i,visitorId:a=null,sessionId:s=null}=e;return new Promise(async(e,l)=>{let c=a,u=0;const d=[5e3,1e4,15e3],f=d.length,h=async()=>{const e=`https://${await Xye.getDomain(t,"msdkgw")}/api/account/${t}/app/engagement/visitors${c?`/${c}`:""}?v=1.0${s?`&sid=${s}`:""}`,a=Xye.engagement.buildSessionRequestBody(r,n,o,i),l=await fetch(e,{body:JSON.stringify(a),method:"POST",headers:{"Content-Type":"application/json"}});if(500===l.status){try{const e=await l.json();if(e&&e.vid)c=e.vid;else if(e&&e.message){const t=e.message.match(/vid:\s*([a-zA-Z0-9]+)/);t&&t[1]&&(c=t[1])}}catch(u){Gye("In LPUtils.engagement.createSession",{error:u})}throw new Error("Server returned 500 error")}if(!l.ok)throw new Error(`HTTP error! status: ${l.status}`);return await l.json()};for(;u<f;)try{return void e(await h())}catch(p){if(u++,u>=f)return void l(p);await Xye.waitFor(d[u-1]??1e3)}})},updateSession(e){const{account:t,pageId:r,visitorId:n,sessionId:o,country:i,topic:a,leadId:s,ipAddress:l}=e;if(!r||!n||!o)throw new Error("Required parameters are missing.");return new Promise((e,r)=>{Xye.getDomain(t,"msdkgw").then(c=>{const u=`https://${c}/api/account/${t}/app/engagement/visitors/${n}?v=1.0&sid=${o}`,d=Xye.engagement.buildSessionRequestBody(i,a,s,l);fetch(u,{body:JSON.stringify(d),method:"PUT",headers:{"Content-Type":"application/json"}}).then(t=>e(t.status)).catch(e=>r(e))}).catch(e=>{Gye("Failed to get domain for updateSession",{account:t,error:e}),r(e)})})}},waitFor:e=>new Promise(t=>{setTimeout(t,e)}),async exponentialBackoff(e,t,r){let n=3,o=5,i=0,a=null,s=null,l=!1,c=[];r||(r={}),r.args||(r.args=[]),c=r.args,n=r.maxRetries||n,o=r.delayInSeconds||o;const u=async()=>{try{i++,a=await e(...c)}catch(u){s=u}r.attemptNumber=i,r.nextInterval=o,r.attemptsLeft=n,l=t?await t(a,s,r):!a||!!s,c=r.args||[]};for(await u();n>0&&l;)a=null,s=null,r.pollingInterval=o,await Xye.waitFor(1e3*o),o*=2,n--,await u();if(a)return a;throw s}};class Jye{constructor(e,t=!1){this.getClockRequest=Yye(3e4,()=>{this.debug&&!this.ws&&console.info(`%c[${(new Date).toLocaleString()}] WebSocket is either not open yet or already closed.`,"color:lightgray"),this.getClock().then(e=>{this.debug&&console.info(`%c[${(new Date).toLocaleString()}] WebSocket connection pong response: ${e.code}`,"color:lightgray")}).catch(e=>{this.debug&&console.warn(`%c[${(new Date).toLocaleString()}] WebSocket pong failed:`,"color:orange",e)})}),this.inFlightRequests={},this.subscriptions=[],this.onBeforePublishContentCallbacks=[],this.url=e,this.debug=t}getWS(){return this.ws}static connect(e){return new Jye(e)._connect()}static connectDebug(e){return new Jye(e,!0)._connect()}_connect(){return new Promise((e,t)=>{const r=new WebSocket(this.url);this.ws=r,r.addEventListener("open",()=>e(this)),r.addEventListener("message",e=>this.onMessage(e)),r.addEventListener("close",e=>t(e))})}request(e,t,r){return new Promise((n,o)=>{if(!this.ws)return void o(new Kye("WEBSOCKET_NOT_OPEN","LivePerson WebSocket connection is not open"));const i={kind:"req",type:e,body:t||{},id:t?.messageId||Math.floor(1e9*Math.random()),headers:r};this.inFlightRequests[i.id]=(e,t,r)=>n({type:e,code:t,body:r,reqId:i.id});const a=JSON.stringify(i);this.debug&&console.log("%csending: "+a,"color: teal");const s=(new Date).toISOString();"ms.PublishEvent"===i.type&&"ContentEvent"===i.body.event?.type&&i.body.event?.message?.length?Promise.all(this.onBeforePublishContentCallbacks.map(e=>e(i,s))).then(()=>{this.ws.send(a)}).catch(e=>{$ye("In LPWS.request(...). Error publishing. Error:",e),o(e)}):this.ws.send(a)})}onNotification(e,t){const r={filter:e,callback:t};return this.subscriptions.push(r),()=>{const e=this.subscriptions.indexOf(r);return-1===e?($ye("In onNotification disposable","Subscription not found in active subscriptions",r),!1):(this.subscriptions.splice(e,1),$ye("In onNotification disposable","Successfully unsubscribed from notification subscription",r),!0)}}onBeforePublishContent(e){this.onBeforePublishContentCallbacks.push(e)}getClock(e,t){return this.request("GetClock",e,t)}subscribeExConversations(e,t){return this.request("cqm.SubscribeExConversations",e,t)}unsubscribeExConversations(e,t){return this.request("cqm.UnsubscribeExConversations",e,t)}publishEvent(e,t){return this.request("ms.PublishEvent",e,t)}consumerRequestConversation(e,t){return this.request("cm.ConsumerRequestConversation",e,t)}subscribeMessagingEvents(e,t){return this.request("ms.SubscribeMessagingEvents",e,t)}initConnection(e,t){return this.request("InitConnection",e,t)}updateConversationField(e,t){return this.request("cm.UpdateConversationField",e,t)}onMessage(e){this.debug&&console.log("%creceived: "+e.data,"color: blue");const t=JSON.parse(e.data);if("resp"===t.kind){const e=t.reqId;delete t.reqId,delete t.kind,this.inFlightRequests[e]?.call(this,t.type,t.code,t.body),delete this.inFlightRequests[e]}else if("notification"===t.kind)for(const r of this.subscriptions)r.filter.call(this,t)&&r.callback.call(this,t.body);this.getClockRequest()}publishAcceptStatusEvent2(e,t,r,n){return this.publishEvent({conversationId:e,dialogId:t,event:{type:"AcceptStatusEvent",status:r,sequenceList:n}})}initConnection2(e){return this.initConnection({},[{type:".ams.headers.ConsumerAuthentication",jwt:e},{type:".ams.headers.ClientProperties",features:["AUTO_MESSAGES","RICH_CONTENT","QUICK_REPLIES","MULTI_DIALOG","MARKDOWN_HYPERLINKS"]}])}subscribeExConversations2(){return this.subscribeExConversations({stage:[Xye.conversationStageTypes.OPEN,Xye.conversationStageTypes.CLOSE],convState:[Xye.conversationStateTypes.OPEN,Xye.conversationStateTypes.CLOSE]})}unsubscribeExConversations2(e){return this.unsubscribeExConversations({subscriptionId:e})}subscribeMessagingEvents2(e,t,r){return this.subscribeMessagingEvents({fromSeq:r,dialogId:t,conversationId:e})}consumerRequestConversation2(e,t,r,n){return this.consumerRequestConversation({skillId:e,conversationContext:{visitorId:t,sessionId:r,lang:n,type:"SharkContext",features:["AUTO_MESSAGES","RICH_CONTENT","QUICK_REPLIES","MULTI_DIALOG","MARKDOWN_HYPERLINKS"]}})}publishEvent2(e,t,r,n){return this.publishEvent({conversationId:e,dialogId:t,event:{type:"ContentEvent",contentType:"text/plain",message:r},messageId:n})}updateConversationField2(e,t,r,n){const o={dialogId:t,state:r};return n&&(o.closedCause=n),this.updateConversationField({conversationId:e,conversationField:[{field:"DialogChange",type:"UPDATE",dialog:o}]})}setUserChatStateTo(e,t,r){return this.publishEvent({conversationId:e,dialogId:t,event:{type:"ChatStateEvent",chatState:r}})}}const{log:Qye,logError:Zye}=R.withKind("livePersonHelpers");function ebe(e){return Xye.getDomain(e,"asyncMessagingEnt")}function tbe(){return window.oc?.geo?.country??document.querySelector("[data-geo-country]")?.getAttribute("data-geo-country")??function(){const e=Object.assign({fallback:"US",returnCandidates:!1,includeDetails:!1},{}),t="undefined"!=typeof Intl,r=t&&"function"==typeof Intl.Locale,n=e=>"string"==typeof e&&/^[A-Z]{2}$/.test(e),o=e=>{try{if(!e||"string"!=typeof e)return null;const r=e.trim().replace(/_/g,"-");if(!r)return null;if(t&&"function"==typeof Intl.getCanonicalLocales){const[e]=Intl.getCanonicalLocales([r]);return e||r}return r}catch{return null}},i=e=>{if(!e)return null;const t=e.match(/(?:^|-)([A-Za-z]{2})(?:-|$)/);if(!t)return null;const r=t[1]?.toUpperCase();return n(r)?r:null},a=e=>{if(!e)return null;try{if(!r)return null;let t=new Intl.Locale(e);if(t.region&&n(t.region.toUpperCase()))return t.region.toUpperCase();if("function"==typeof t.maximize){const e=t.maximize();if(e&&e.region&&n(e.region.toUpperCase()))return e.region.toUpperCase()}}catch{}return null},s=e=>{const t=o(e);if(!t)return null;const r=a(t);if(r)return r;const n=i(t);return n||null},l=(e,t)=>{null==t||e.includes(t)||e.push(t)},c=(()=>{try{const e=Array.isArray(navigator.languages)?navigator.languages.slice():[];return e&&0!==e.length||!navigator.language?e:[navigator.language]}catch{return[]}})(),u=(()=>{const e=[];if(t){const t=c.length?c:[void 0];for(const r of t)try{const t=new Intl.DateTimeFormat(r).resolvedOptions().locale;l(e,t)}catch{}try{const t=(new Intl.DateTimeFormat).resolvedOptions().locale;l(e,t)}catch{}}return e})(),d=(()=>{try{const e=document&&document.documentElement&&document.documentElement.lang||"";return(e||"").trim()||null}catch{return null}})(),f=(()=>{try{if(!t||!Intl.DateTimeFormat)return null;const e=Intl.DateTimeFormat().resolvedOptions().timeZone;return"string"==typeof e&&e?e:null}catch{return null}})(),h={"America/Anchorage":"US","America/Los_Angeles":"US","America/Denver":"US","America/Chicago":"US","America/New_York":"US","America/Phoenix":"US","Pacific/Honolulu":"US","America/Detroit":"US","America/Indiana/Indianapolis":"US","America/Toronto":"CA","America/Vancouver":"CA","America/Winnipeg":"CA","America/Halifax":"CA","America/Mexico_City":"MX","America/Bogota":"CO","America/Lima":"PE","America/Santiago":"CL","America/Argentina/Buenos_Aires":"AR","America/Montevideo":"UY","America/Asuncion":"PY","America/La_Paz":"BO","America/Guatemala":"GT","America/El_Salvador":"SV","America/Costa_Rica":"CR","America/Panama":"PA","America/Managua":"NI","America/Tegucigalpa":"HN","America/Santo_Domingo":"DO","America/Jamaica":"JM","America/Puerto_Rico":"PR","America/Caracas":"VE","America/Guayaquil":"EC","America/Sao_Paulo":"BR","America/Bahia":"BR","America/Manaus":"BR","America/Belem":"BR","Europe/London":"GB","Europe/Dublin":"IE","Europe/Lisbon":"PT","Atlantic/Madeira":"PT","Atlantic/Azores":"PT","Atlantic/Canary":"ES","Europe/Madrid":"ES","Europe/Paris":"FR","Europe/Berlin":"DE","Europe/Rome":"IT","Europe/Amsterdam":"NL","Europe/Brussels":"BE","Europe/Zurich":"CH","Europe/Stockholm":"SE","Europe/Oslo":"NO","Europe/Copenhagen":"DK","Europe/Helsinki":"FI","Europe/Warsaw":"PL","Europe/Prague":"CZ","Europe/Vienna":"AT","Europe/Budapest":"HU","Europe/Bucharest":"RO","Europe/Sofia":"BG","Europe/Athens":"GR","Europe/Belgrade":"RS","Europe/Zagreb":"HR","Europe/Ljubljana":"SI","Europe/Bratislava":"SK","Europe/Riga":"LV","Europe/Vilnius":"LT","Europe/Tallinn":"EE","Europe/Kyiv":"UA","Europe/Chisinau":"MD","Europe/Istanbul":"TR","Europe/Moscow":"RU","Europe/Kaliningrad":"RU","Europe/Samara":"RU","Atlantic/Reykjavik":"IS","Africa/Cairo":"EG","Africa/Johannesburg":"ZA","Africa/Lagos":"NG","Africa/Nairobi":"KE","Africa/Casablanca":"MA","Africa/Algiers":"DZ","Africa/Tunis":"TN","Africa/Accra":"GH","Africa/Addis_Ababa":"ET","Africa/Khartoum":"SD","Africa/Kampala":"UG","Asia/Jerusalem":"IL","Asia/Beirut":"LB","Asia/Amman":"JO","Asia/Damascus":"SY","Asia/Baghdad":"IQ","Asia/Riyadh":"SA","Asia/Dubai":"AE","Asia/Tehran":"IR","Asia/Muscat":"OM","Asia/Kuwait":"KW","Asia/Doha":"QA","Asia/Bahrain":"BH","Asia/Tokyo":"JP","Asia/Seoul":"KR","Asia/Shanghai":"CN","Asia/Chongqing":"CN","Asia/Urumqi":"CN","Asia/Hong_Kong":"HK","Asia/Taipei":"TW","Asia/Singapore":"SG","Asia/Kuala_Lumpur":"MY","Asia/Jakarta":"ID","Asia/Makassar":"ID","Asia/Jayapura":"ID","Asia/Manila":"PH","Asia/Bangkok":"TH","Asia/Ho_Chi_Minh":"VN","Asia/Kolkata":"IN","Asia/Dhaka":"BD","Asia/Kathmandu":"NP","Asia/Yangon":"MM","Australia/Sydney":"AU","Australia/Melbourne":"AU","Australia/Brisbane":"AU","Australia/Perth":"AU","Australia/Adelaide":"AU","Australia/Darwin":"AU","Pacific/Auckland":"NZ","Pacific/Chatham":"NZ","Pacific/Fiji":"FJ","Pacific/Port_Moresby":"PG","Pacific/Noumea":"NC","Pacific/Tahiti":"PF","Pacific/Guam":"GU","Pacific/Saipan":"MP","Pacific/Pago_Pago":"AS"},p=e=>{if(!e||"string"!=typeof e)return null;if(Object.prototype.hasOwnProperty.call(h,e)){const t=h[e];return"string"==typeof t?t:null}return e.startsWith("US/")?"US":/Argentina/i.test(e)?"AR":/Brazil|Sao_Paulo|Bahia|Belem|Manaus/i.test(e)?"BR":/Mexico/i.test(e)?"MX":/Israel|Jerusalem/i.test(e)?"IL":/Istanbul|Turkey/i.test(e)?"TR":/Kolkata|Calcutta/i.test(e)?"IN":/Hong_Kong/i.test(e)?"HK":/Kuala_Lumpur/i.test(e)?"MY":/Singapore/i.test(e)?"SG":/Auckland|Chatham/i.test(e)?"NZ":/Sydney|Melbourne|Brisbane|Perth|Adelaide|Darwin/i.test(e)?"AU":/London/i.test(e)?"GB":/Dublin/i.test(e)?"IE":/Lisbon|Azores|Madeira/i.test(e)?"PT":/Madrid|Canary/i.test(e)?"ES":/Paris/i.test(e)?"FR":/Berlin/i.test(e)?"DE":/Rome/i.test(e)?"IT":/Amsterdam/i.test(e)?"NL":/Brussels/i.test(e)?"BE":/Zurich/i.test(e)?"CH":/Stockholm/i.test(e)?"SE":/Oslo/i.test(e)?"NO":/Copenhagen/i.test(e)?"DK":/Helsinki/i.test(e)?"FI":/Warsaw/i.test(e)?"PL":/Prague/i.test(e)?"CZ":/Vienna/i.test(e)?"AT":/Athens/i.test(e)?"GR":/Kyiv|Kiev/i.test(e)?"UA":/Chisinau/i.test(e)?"MD":/Moscow|Kaliningrad|Samara/i.test(e)?"RU":/Reykjavik/i.test(e)?"IS":/Cairo/i.test(e)?"EG":/Johannesburg/i.test(e)?"ZA":/Lagos/i.test(e)?"NG":/Nairobi/i.test(e)?"KE":/Casablanca/i.test(e)?"MA":/Tunis/i.test(e)?"TN":/Algiers/i.test(e)?"DZ":/Accra/i.test(e)?"GH":/Addis_Ababa/i.test(e)?"ET":/Khartoum/i.test(e)?"SD":/Kampala/i.test(e)?"UG":/Riyadh/i.test(e)?"SA":/Dubai|Muscat/i.test(e)?"AE":/Tehran/i.test(e)?"IR":/Baghdad/i.test(e)?"IQ":/Doha/i.test(e)?"QA":/Bahrain/i.test(e)?"BH":/Kuwait/i.test(e)?"KW":/Tokyo/i.test(e)?"JP":/Seoul/i.test(e)?"KR":/Shanghai|Chongqing|Urumqi/i.test(e)?"CN":/Taipei/i.test(e)?"TW":/Manila/i.test(e)?"PH":/Bangkok/i.test(e)?"TH":/Ho_Chi_Minh/i.test(e)?"VN":/Jakarta|Makassar|Jayapura/i.test(e)?"ID":/Dhaka/i.test(e)?"BD":/Kathmandu/i.test(e)?"NP":/Yangon/i.test(e)?"MM":/Auckland|Chatham/i.test(e)?"NZ":/Honolulu/i.test(e)?"US":null},m=new Map,g=new Map,v=(e,t,r)=>{if(!n(e))return;const o=e;m.set(o,(m.get(o)||0)+t),g.has(o)||g.set(o,new Set),g.get(o).add(r)};c&&c.length&&c.forEach((e,t)=>{const r=s(e);if(n(r)){v(r,0===t?.6:.3,"navigator.languages")}});u&&u.length&&u.forEach((e,t)=>{const r=s(e);if(n(r)){v(r,0===t?.4:.2,"Intl.DateTimeFormat.resolvedOptions().locale")}});if(d){const e=s(d);n(e)&&v(e,.15,"document.documentElement.lang")}if(f){const e=p(f);n(e)&&v(e,.25,`timeZone:${f}`)}let y=null,b=-1/0;for(const[E,T]of m.entries())T>b&&(b=T,y=E);if(!y){const t={code:e.fallback??"US",confidence:0,source:"fallback"};return e.includeDetails&&(t.signals={languages:c,resolvedLocales:u,htmlLang:d,timeZone:f}),t}const w=1.6;let x=Math.min(1,b/w);const S=g.get(y)||new Set;S.size>=2&&(x=Math.min(1,x+.15));S.size>=3&&(x=Math.min(1,x+.1));const k={code:y,confidence:x,source:Array.from(S).sort().join(" + ")};if(e.returnCandidates){const e=Array.from(m.entries()).map(([e,t])=>({code:e,score:Number(t.toFixed(3)),sources:Array.from(g.get(e)||[])})).sort((e,t)=>t.score-e.score);k.candidates=e}e.includeDetails&&(k.signals={languages:c,resolvedLocales:u,htmlLang:d,timeZone:f});return k}().code}function rbe(e){try{const t=e.split(".")[1];if(!t)throw new Error("JWT payload is missing");const r=JSON.parse(atob(t));return Qye("In getLivePersonIdFromJWT. JWT Claim:",{claim:r}),void 0!==r.sub?r.sub:null}catch(t){return Zye("Error extracting User Id from JWT:",{livePersonJWTString:e,error:t}),null}}"5173"===window.location.port&&-1!==window.location.hostname.indexOf("local")?window.location.hostname:NE();var nbe=(e=>(e[e.DEFAULT=0]="DEFAULT",e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE",e.GONE="GONE",e.COMPOSING="COMPOSING",e.PAUSE="PAUSE",e))(nbe||{});let obe=performance.now();function*ibe(e,t,r,n){mye("fetchUpdateOrCreateLivePersonSession");const o=performance.now();function i(e){return{country:e.country??null,topic:e.topic??null,leadId:e.leadId??null,pageId:e.pageId??null,visitorId:e.visitorId??null,sessionId:e.sessionId??null,account:e.account??null}}M7({name:nq,properties:{component:gq,operation:"fetchUpdateOrCreateLivePersonSession",hasAccountId:(!!e).toString(),hasCountry:(!!t).toString(),hasTopic:(!!r).toString(),hasLeadId:(!!n).toString()}});const a=YE()?.lpEngagementSession||null;let s=!1;const l={account:e,country:t,topic:r,leadId:n,ipAddress:"",pageId:null,visitorId:null,sessionId:null};if(a&&a.pageId&&a.visitorId&&a.sessionId){const e=(e,t)=>(e||null)==(t||null);if(e(a.topic,r)&&e(a.leadId,n)&&e(a.country,t)){fye("Using session from cookie");const e=performance.now()-o;return M7({name:oq,properties:{component:gq,result:"cached_session_used"},measurements:{durationMS:e}}),a}l.pageId=a.pageId,l.visitorId=a.visitorId,l.sessionId=a.sessionId}else s=!0;try{let e=!1;if(!s)try{fye("Attempting update of session");const t=performance.now(),r=yield w_(Xye.engagement.updateSession,l),n=performance.now()-t;e=200===r,l8("LivePersonSessionUpdate",yq,"UPDATE",n,e,r)}catch(c){pye("Failed to update session."),s8("LivePersonSessionUpdate",c instanceof Error?c:new Error(String(c)))}if(!e){l.pageId=null,l.visitorId=null,l.sessionId=null,fye("Attempting creation of session");const e=performance.now(),t=yield w_(Xye.engagement.createSession,l),r=performance.now()-e,n=!(!t.visitorId||!t.sessionId);if(l8("LivePersonSessionCreate",bq,"CREATE",r,n),t.visitorId&&t.sessionId){l.pageId=t.pageId,l.visitorId=t.visitorId,l.sessionId=t.sessionId;const e=i(l);fye("Updating cookie with session",{lpEngagementSession:e}),KE({lpEngagementSession:e})}}const t=performance.now()-o;M7({name:iq,properties:{component:gq,result:"success",operationType:e?"update":s?"create":"reuse"},measurements:{totalDurationMS:t}})}catch(c){pye("Failed to create a LivePerson session",c);const e=performance.now()-o;s8("LivePersonSessionManagement",c instanceof Error?c:new Error(String(c))),M7({name:iq,properties:{component:gq,result:"failure",errorType:c instanceof Error?c.constructor.name:"UnknownError"},measurements:{totalDurationMS:e}})}return i(l)}function*abe(e,t,r,n){for(let i=0;i<=3;i++){fye(`In sendAcceptStatusEvent. Attempt #${i}.`,{lpws:e,status:t,sequence:r,openConversation:n});try{const o=3e3*Math.pow(2,i),{response:a,timeout:s}=yield y_({response:w_([e,"publishAcceptStatusEvent2"],n.result.convId,n.activeDialogId,t,[r]),timeout:__(o)});if(s){const e=new Error("AcceptStatusEvent request timed out");if(3===i)return pye("AcceptStatusEvent timeout on final retry, abandoning gracefully:",e),void s8("LivePersonAcceptStatusTimeout",e);throw e}return void fye("Accept status sent successfully",{status:t,sequence:r,response:a})}catch(o){if(pye("Error sending accept status to LivePerson",o),3===i)return M7({name:uq,properties:{component:gq,status:t,attempt:i.toString(),errorType:o instanceof Error?o.constructor.name:"UnknownError"}}),s8("LivePersonAcceptStatus",o instanceof Error?o:new Error(String(o))),void hye("All retry attempts failed. Abandoning.");yield __(1e3*(i+1))}}}function sbe(e){return{contentType:"application/vnd.microsoft.card.adaptive",content:{type:"AdaptiveCard",version:"1.0",body:[{type:"TextBlock",text:e.title,wrap:!0,tooltip:e.tooltip}],actions:e.click&&e.click.actions?e.click.actions.map(e=>"link"===e.type?{type:"Action.OpenUrl",title:e.name,url:e.uri}:null).filter(e=>null!==e):[]}}}function lbe(e){const t=e=>{switch(e){case"1":return"Highly Unsatisfied";case"2":return"Unsatisfied";case"3":return"Neutral";case"4":return"Satisfied";case"5":return"Highly satisfied";default:return"Rating"}};return{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.0",body:[{type:"TextBlock",text:e.message||"",wrap:!0},{type:"ColumnSet",columns:(e.quickReplies?.replies||[]).map(e=>({type:"Column",items:[{type:"Image",size:"small",altText:e.title,url:cbe(e.title),selectAction:{type:"Action.Submit",data:{text:e.title},title:`chataction://sendmessage?text=${encodeURIComponent(e.title)}`,tooltip:t(e.title)},horizontalAlignment:"center"}]}))}]}}}function cbe(e){return{1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAA4CAYAAACVFFp4AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQASURBVHgB7VnNTttAEJ5du/f0DUx76aWQcuqN0FtPDT1V5W/hBQov0IYngD4BCwTEDXiBEl6ghKqHSpUa8wTkQC8k9nZm7TgOENvxWghV+aTIk7V3/GW/2ZmxY0EBEEI45fKLUrP5sw2G4FAEvE4VfFtAAbChELB3oKAQMDAEyQV+t6W/cPuplNJINnPJvJtK3+4IMEQBMcSX+zZKZwgjyVCuEsp1FRtqo2wTJrKZrZB3U4U4GYASeF4VDGBGSLFKaJzgLmsGHv0ZMIAZIR7EDOp+pElpbqyqpXxoQkIsVIAkIg7cOwPriQxPlaDbLUNO5F+hrhL6qKAh5aGrAxnt0GvuOMpPiEMYK6FUg/Yy5IQtFj8KYNwZZRL4ysHIcbRtecfRONm+vYlWSSwtbEGw8zKDgWqxIJd0cDLL86uacrf+Kj6ARM7xkCeGdoBfr9lhEhPoyMXjl4FLejExDAyO74wptYMn2inziHApNmdd7u1vBadiEOIDFkrrNJIDoIYrsAEFQiwvbiKBtZCJC1zNSXnQ7HO9PYFIeRgHLNopTSwHOEm6YEJEdwUdzFcskJNW37pGv8cDqzm0lqGENYgkxF/isxVZrzcgFxnMWb7ajq38Bq587b5rrWFOmhc/GuWXkxfA1GvtiIEoT03S+BmMQmZp4ROuxiH6oJhpgw9v5V5dDrs+tdrfiSuFgWzZ62kS6t3rdY/wDpVgRKH03hwl0aR5qS1s6GAikpBiy+9eor2WOJFSCesVX/gqd/fXIAOyZ2pub/VMBvw09XqfydCiHqkGGZGdUKz32d7dPUm93rabkKNHyk4o3vvcAm1pva1jCIvtyD3SCJLFe58+VpbmlzGmzumj7QGwHX0YoUfKROhO79Mbx6yrQMcKnSuRjcHfLz+W1SstmXukbA+K1PtwFvU+UdZVqp91CcEWryGpai+7i8WFhh4PeqRG2q0yPXWIpfkW5SFsD4Ti7BKTG8nWkyDKumFq+Bz41dl9FRPrFG5/akna4YNk4r1SJQvkYg7ZyodZJHMakrlCezZeArTtw3u8Uv8A9P4NOJ8KT5NslbT7pceQH2tHea9nUufAu9P31TYcO8aM/CYgRZeGrW5wtwqkIFGyWq0G7p/frVhRpFcKmHXr65ABgxLq27nOs+cT5HcYElfIdV0nRuYKNVvNSoagJcQ5eq6Gclz3l5M0J1kyeu8TOGppifYOJIwIPQfnRhKmvEcaSihYVp0M0eHf6bQqnUiK5vInREqi6DNJkg2FLgeL85kq9Eh+Ma5MnmzHGOMhYfwCtSgQkVn8tOARoIIfKrbfAYp5U226zP2n22CFHo1sDhS0QsX811EgxoTSMCaUhiIJFfSP2Rhj/Gf4B6gpnUsF8Vk4AAAAAElFTkSuQmCC",2:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAA4CAYAAACVFFp4AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQqSURBVHgB7VhNctMwFH6SzZpwAxc2bKCBFTsCO1YEVgz9E1yA9gJgTkA5AWobGFZQDgANF6Apw4IZZhr3BM2ibNrY4j3Jdpy0sR0rQ7vIN+PxiyzJX/Q9vfcsB6YAIYRXr1+vdTq/emAJDtNAeNKEyBUwBbgwFbCHoGAqYGAJkguiflf/4O4VKaWVbPaShceNgX0iwBJT8CG+MrBROktYSYZy1VCuw0xTD2Wbs5HNboXC4yZkyQDUIAybYAE7Qoo1YuML7rKOmTG6CxawI8SNz6DunzUpzY01tZT/m5AQiw0giYgDD7+Dc0nGj2rQ79ehIqqvUF8JfVfQlvJjoB0Z7XjWyn5UnRCH2FdiqYbtFagIVyw9FcC4N8kgiJSHnuNp2wm303ayI/cNWjWxvLgOZueVBgPVZSaWnOBgVuVfdeRm61a2AYns4q2KD20AP1p14yAmcKIA76+GuiQ+MQ4Mtk+1KbWBD3oF44hwLTNmTW69XzePMhDiCSZKZyeVA8DHFXgNU4RYWXqDBFZjJgFw9UjKD50B19EBRCpEP2DpTulgOsBBMgAbIroqOMF4xYyctPrOEc67PbSaY3MZSuhDKiH+k4g9k61WGyqRwZgVqXeZlX+NK++f1dcZN0ln72e7fuPmHjB1R0/EQNTnb1L7d5iEzPLiC1yNjzgH+UwPInggt1pyXP/CbH/KrxQ6suOuFUmod2/Y/4xvaJgWhdKHjyiI5o0rLGHjCeZSCcm3ov4B2qu5AymUsCT5wlu5+X4VSqB8pObuemIy4DuF/SMmY4tqJB9KojyhTO3zbnPzS2F/1+1AhRqpPKFs7TMC2tJ6W2cQJ9uJa6QJJMvWPgM8W15YQZ/apUvbQ2Ab+jZBjVSK0KnaJ2nHqKtA+wo9q5GNzj9IP46TpJbSNVK5D0WqfThLa5806io1iLoEs8V9JNVMortYWmzrdlMjtYteVeqrQywvdCkOYXkgFGcHGNxItkSCNOrGoeGlmVdH9+cYWOdx+1NJ0os/JHPfVSiZkYt5ZKsI7iGZnZjMIdr3silA2xE8xp76D+Ds34Dz+fgxydYoel+xD0WZcpQnNZPaBd6/fVZuw7ZtjMj3DSnqGpe65m0NKECuZL7vQ7D/p5tJinSkgFG3tQYlMCyhfl3gXb02R/OOQ+4KBUHgZcgcombPy5IhaAlxjB6robwg+O3ljcmXjM59zERdLdHWBwkTQo/BsamEBedIYwmZZdXBECf8e7soS+eSorH8EpGSKPrdPMnGQqeDpYVSGXqiedGvbL5sZ5ihCNaHniNzTOkstjooTv0ASjDmLuCc8QmvRmwTOZX5fS4YjSd00CDAArbHwmcdKhzCBcELvPbhAoB2WULGg3MGkcFDBKwMLwAZAtXKPlwQeGAcmJ1xVYbNLvPwuoxXOHJ9hRlmmGGAf0m+qlg89W7lAAAAAElFTkSuQmCC",3:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAA4CAYAAACVFFp4AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAARLSURBVHgB7Vm9cttGEP4OgGdSMl26QEmTJhbtKp3pdKlCu8pEf2e/gKUXSOgnsPIEPkm0x53lMk1Ev0BEZ1J4xjMm/AIWC7uxCJx370AQlEwAxGFsFfpmMFgdcIuP9+3tLiAfDUBKGbbbP7SGw//HcISHJhCfdpEEEg0gQCMQv0KjEQg4guVCMhmZP7zga6WUk2zuksUfOjP7VMIRDcSQtzWzSTpHOElGcrVIrpPc0JhkW3GRzW2F4g9d5MkALcRxFw5wI6RFJzWe0S4bWo/JDTjAjZBnY4Z0f2pIGW6ia6T83ISkXO+AJWIOXvwc/hWVXmphMmmjJuqv0ERLc9YYKPUkMoFMduq1dhzVJ+QhjZVUqnl7CzURyI3fJYQXLjMJiQ4pckJj+/FhNs52EjwgqyU313dhd15lCOiRsLnklCaLOr9qqPb71/IDROSYTnViaA/eu+0gTWKSHEV0/nPulmlMLILA4bkxrffowrhkHhNu5ebsqINHu/ZSDlL+RoXSP8rkAHq0AvfRIOTWxgMisJ0yieDpW0o9Hs64np3ApGKKA5HtlCGVA5qkIrgQMV3BKeUrYeXk1fffkd/DudVcWMtIwh4yCemXJOKO6vcHqEWGclaiH+ZW/j6tfO9T9/qLnAxf/Ddo/3j1BYT+yTgSkO3Vqzz+HMuQ2Vy/R6vxhHxwzIyR4Bd10FeL7i+t9ufiSlMg+8FOmYRm98aTp/SEjh3RJH18i5No0bzSFjZ1sJJJyLGVTN6QvV04kVOJmBZf/KX2H22jAqpnai/YnZoC3lHp/YlQqcU9Ug8VUZ1Qrvd5uL//rPT+IBiiRo9UnVC+9zkD3tJmW+eQFtule6QlJMv3PjPc2Vzbopg65sPYcxB75rREj1SJ0LneZzpOWVfDxApfa7FNwT8rP74/LS2Ve6RqL4rc+3gi632yrKv1LOsy7BbvEanuNLvLjfWBGbc90qDsUZXeOuTm2ojzELUHUnviDSU3lm0qQZZ109Twh/VrsvtdSqyrtP25JRmnL5KFzyqVzMolQrZ1gptE5iglc0L2zXwJMHaC23Sn+QHk/R943mp6mWXrlD2vPIaSXDvqTXsmfQxvcv1TtY3GDikj/2xJ8a1pq2uf1kEJCiXr9XqIXr8a5Yoif1KgrNvfQQXMS2geF4Xffb/CfhehcIWiKApzZE5Is7tVyTCMhDTHzDXQYRS9DIvmFEvG332so5GR6OCxwpIwc2huJmHJd6SFhOyymmRIDt9fL6vShaR4rneFSSkS/UaRZAthysHGWqUKvZRfiiuXN9tLXKIMzh89z/ho6Ftsfdyj4zW4wAD8Cn0NXxicOKdbmFPECfKvyBcALFmICwCOoxVY+Zzg+q8Floel+hZ2ZW7DET7c8BUd38CuEDdiTPBvXCBwN+lU/5r599QM9sXwC4EfzIEsMAtq7nlqfxJ2RQi7q/5Nj7dwlKsphLgguecSl2B8BJ3Zp2kdNcE9AAAAAElFTkSuQmCC",4:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAA4CAYAAACVFFp4AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAARDSURBVHgB7VlNbtw2FP5IKfvJCSq3m24aT7PqLnJ3XXXSVVH/MblA7Qu0Si9gd9ddaHsSZNU4F4gnF6jHRRcFCnSUE3gKpEARj8Q+khqNJvZIGlFNg8AfQOiZEqlv+D2+90R7aAFCiKDb/bgzHP42hiM42kBy0UPqC7QAH62AfQmFVsDgCC0X0snI/MH9m1JKJ9ncJUtehzP7QsARLfgQ357ZJJ0jnCQjuTok13mha0yyrbjI5rZCyeseimSADpKkBwe4EVIszIxntMuGdsb0DhzgRohbnyHdnxpShhvrGSnfNiEhNkJoiTQHnryAd0NmtzqYTLpoiOYrNFHCXBUGUj6JjSOTnc3a2I+aE+LIfCWTat7eRkP4YvMbAcaDZQYhVQF5TmBsLznO+7Wd+ntkdcTWxj7szqsNBjViNpZc0GDW5FcN5WH/02IHETmlSxMfOgB/teNnQUzQRDFdv597ZOoTi8BwfKlPqQO6Ma4Ypwl3CmN25dGjfXurACG+pkTpneRyABGtwAO0CLG9uUcEdjImMbi6K+Xj4YzrmwM0qYT8gOU7ZUjpgAbJGC5ETFVwQfGKWTn16nuvaN7judVcmMtIwgi5hPRLUnZP9vsDNCJDMStVDwsr/4BWPrrqWW/RJMOzXwfdT26dganPzEQMort6S/e/wDJktja+pdV4QnNonxkjxRfyqC8XPV+Z7S/5lSJH9vzdKgnN7k0mT+kNoe1RJH1yVwfRsnGVJWw2wUouofatdPKS7J3SgTqUsGnyxY/y8NEOaqB+pOb+/tRk4CeVz6dMZpaukSLURH1Chdrn4eHhs8rnfX+IBjVSfULF2ucN6C1ttnUBWbJdukZaQrJi7TPDva31bfKpU92MPQd2YC5L1Ei1CF2qfab9FHUVjK/oex1tk/PP0o/nTVNL7Rqp3oeirn04y2ufPOoqNYu6GnaLR0SqN43uYnNjYPptjTSoelWtrw6xtT7ScYjKA6E4e0nBTcs2lSCPullo+M7Oa6L7fQqsq7T9dUkyzj4kS99VKZmViwXaVinWiMxJRuac7LViCjB2iq/oSfMDaPbn4Hw1u61lC6veV+1DaaEc5dOaSZ2CT25flduo75gi8ueWlH40K3Xt20JUoFSyKIoQ//nHqJAU9ZECRd3+LmpgXkLzujj48KMVPe8ilK5QHMdBgcw5aXa/LhkNIyGNMWMNVBDHvwdlY8ol0+c+dqKRkejoscSSMGNobC5hxTnSQkJ2WU0wpAn/vl2VpUtJ6bH8hiYlSfQ7ZZIthEkHm+u1MvRS85JfuXzZXuMabxvOh6htIqK2h3cEAWxaqa61K9DWEsvs+gG1NTigjX8tCNjVkXgHsELtF1jJQrQgmcsK3aT2nNoP1GK0BA/N8RNs5XgGe0ClK8OQ2l+wBP9BA7g49c8oHjpZW0uoT9CojF3uOO+/QIj/2YeuQkv/NbvGNd4j/Asx56lIZSPBbQAAAABJRU5ErkJggg==",5:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAA4CAYAAACVFFp4AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAARPSURBVHgB7Vm9cttGEP4OgHumTAcljZtYjKt0ptOlCp0qE/2d/QCJ9AIJ/ARWnsCQRHvcWe5SRfQLWHQmRWYyY8IPYIuFPeOxCJx3DyBwlEQAxGGsRt/MDVYH3OHjfXu7i5OLFiCl9Lvd653R6N8JLOGgDcSnfSSeRAvw0ArEj1BoBQKWYLmQTMf6D8f7IgxDK9nsJYs/9gr7VMISLfiQs1XYJJ0lrCQjuTok14nRNSHZVmxks1uh+GMfJhmggzjuwwJ2hJToZcYz2mWjdMbkFixgR8hJfYZ0f6pJaW6ir6X83ISkXO+BJWIOTvwc7rUwu9XBdNpFQzRfoamS+qowDMMnkXZksrNZG/tRc0IOMl/JpJq3t9AQntz4RUI4/jKDkCifPMfXthsf5v1sJ94Dsjpyc30X6c6rDQE1FmksOaXBosmvGoX7g2/NDiJyTJcmPrQH5922lwUxSRNFdP1j7pGZTyyCwOG5PqX26MakYhwT7hhjdsKDR7vpLQNS/kyJ0j3K5QACWoH7aBFya+MBEdjOmERw1J0wfDwquJ4dwKRi8gOR75QRpQMaFEawIaKrglOKVyKVk1fffUfzHs6t5sJcRhIGyCWkX5KIu+FgMEQjMhSzEvXQWPn7tPLBRc+6iyYZvfxn2P3mxksI9Z2eSEB2V29w/3MsQ2Zz/TdajSc0B/vMBAl+CA8G4aLnK7P9Ob9S5Miut1Mlod698fQpvaGX9iiSPr7DQbRsXGUJm02wkkvIvpVMX5O9XTqQQ4mYJV/8Ge4/2kYN1I/Ujrc7MwWco8rnExFmFtdIAWqiPiGj9nm4v/+s8nnPG6FBjVSfkFn7nAFvab2tDWTJdukaaQnJzNqnwN3NtS3yqWNu2p6D2NOXJWqkWoTO1T6zfoq6CtpX+F6HbXL+Iv247iy11K6R6n0ocu3jiLz2yaOuUkXUZaRbPCBS/Vl0lxvrQ92f1kjDqlfV+uqQm2tjjkNUHkjliNcU3Fi2mQR51M1Cw+/pvDq636PAukrbn0uSSfYhWfquSslSuYTPtkpwm8gcZWROyL5tpgBtJ/iJntQ/gGb/G46zmt1m2XpV76v2ocQoR51ZzaSO4UxvXpTbqO+QIvL3KSl+NCt107f1UIFSyYIgQPTq/7GRFPlIgaLuYAc1MC+hfl3kf/X1Cs+7CKUrFEWRb5A5Ic3u1SXD0BLSGD1WQ/lR9J9fNqZcMj73SScaa4kOHodYEnoMjc0lrDhHWkgoXVYdDGnC9zersnQpKR7rXGNSIYl+q0yyhdDpYGOtVoZeal7yK5sv2ytcoQrWh54XzGF1HmtLqIezX7tUIlGL0BC259RcfvCPCoy+CBawJcTxZIgadU5d2B4L+9lVoB1/tCbEDvwrtTfUXlCTuGR0jKtEmtV7sIALO3wwrvzJ8yW169T+QkO08++pApeeNFdQODTbXPNY/7/DBi+M9hZVBxCfCT6K7X+FK1w6PgGb4KoCISZwVQAAAABJRU5ErkJggg=="}[e]||""}function ube(e){const t=[],r=[];e.content?.elements?.length>0&&fye("In mapLivePersonRichContentEventToAdaptiveCard. Processing elements",{elements:e.content.elements});for(const n of e.content?.elements||[])if("text"===n.type)t.push({type:"TextBlock",text:n.text,wrap:!0,weight:"Bolder",size:"Medium"});else if("button"===n.type){const e={type:"Action.OpenUrl",title:n.title,tooltip:n.tooltip};if(n.click?.actions?.length>0){const t=n.click.actions.find(e=>"publishText"===e.type);if(t)e.url=`chataction://sendmessage?text=${encodeURIComponent(t.text)}`;else{const t=n.click.actions.find(e=>"link"===e.type);t&&(e.url=t.uri,e.title=t.name)}}r.push(e)}return{contentType:"application/vnd.microsoft.card.adaptive",content:{type:"AdaptiveCard",version:"1.0",body:t,actions:r}}}let dbe=!1,fbe=!1;function*hbe(e,t,r,n){fye("In handleMessagingEvent");try{const a=dbe;for(let s of r.changes)try{const r=s.originatorId===t?"user":"bot",i="ASSIGNED_AGENT"===s.originatorMetadata?.role,l="RichContentEvent"===s.event?.type||"ContentEvent"===s.event?.type;s.serverTimestamp&&new Date(s.serverTimestamp).toISOString();let c;for(const[e,t]of n)if(t.activeDialogId===s.dialogId||t.result.dialogs.some(e=>e.dialogId===s.dialogId)){c=t;break}!1===fbe&&i&&l&&(fbe=!0,obe=performance.now()-obe,M7({name:dq,properties:{component:gq,messageType:s.event.type},measurements:{timeToFirstMessage:obe}})),l&&("user"===r||i)&&M7({name:mq,properties:{component:gq,user:i?"agent":"user",messageType:s.event.type}});const u=`${s.dialogId}-${s.sequence}`;switch(s.event.type){case"ContentEvent":{fye("In handleMessagingEvent 'ContentEvent'",{change:s});let t=!1;(s.event?.message?.startsWith(Fye.transcriptIntroText)||s.event?.message?.startsWith(Fye.transcriptContinuedText))&&(fye("In handleMessagingEvent 'ContentEvent'. Skipping rendering message because it begins with a transcript preamble."),t=!0);const n=yield E_(rue);if(n.some(e=>e.key===u)){pye("Message already exists in chat history",{key:u,change:s});continue}if(c)try{yield*abe(e,Xye.acceptStatusTypes.ACCEPT,s.sequence,c),yield*abe(e,Xye.acceptStatusTypes.READ,s.sequence,c)}catch(o){pye("Failed to send accept status notifications:",o),s8("LivePersonAcceptStatusNotification",o instanceof Error?o:new Error(String(o)))}else pye("Could not find conversation for dialogId",{dialogId:s.dialogId});if(t)continue;if("user"==r)a||(dbe=!0,yield g_(lye(s.event?.message||"",u)));else if("bot"!=r||s.event?.quickReplies?.replies)if("bot"==r&&s.event?.quickReplies&&Array.isArray(s.event?.quickReplies?.replies)){const e=lbe(s.event);yield g_(uye([e],u))}else yield*vye("Unhandled roleForWebChat type:",{roleForWebChat:r,change:s});else yield g_(sye(s.event?.message||"",u));break}case"RichContentEvent":{fye("In handleMessagingEvent 'RichContentEvent'",{change:s});const t=yield E_(rue);if(t.some(e=>e.key===u)){pye("Message already exists in chat history",{key:u,change:s});continue}if(s.event.content?.elements&&Array.isArray(s.event.content.elements)){const e=s.metadata?.some(e=>e.surveyId);if(!e){const e=s.event.content.elements.filter(e=>"text"===e.type);for(const t of e){const e="string"==typeof t?t:t?.text;e&&"string"==typeof e&&e.trim()&&(yield g_(sye(e.trim(),u)))}}const t=s.event.content.elements.filter(e=>"button"===e.type);if(t.length>0){const e=s.event.content.elements.length>1,r=t.some(e=>e.click?.actions?.some(e=>"publishText"===e.type));if(e&&r){const e=ube(s.event);yield g_(uye([e],u))}else for(const n of t)yield g_(uye([sbe(n)],u))}}else pye("RichContentEvent has no valid elements array",{content:s.event.content});if(c)try{yield*abe(e,Xye.acceptStatusTypes.ACCEPT,s.sequence,c),yield*abe(e,Xye.acceptStatusTypes.READ,s.sequence,c)}catch(o){pye("Failed to send accept status notifications for RichContentEvent:",o),s8("LivePersonRichContentAcceptStatus",o instanceof Error?o:new Error(String(o)))}else pye("Could not find conversation for dialogId",{dialogId:s.dialogId});break}case"ChatStateEvent":if("user"!==r&&s.event.chatState==nbe.COMPOSING&&(yield*vye(`Received a '${nbe.COMPOSING}' event from LivePerson`),yield g_(sV.signalTypingInUI())),s.event.chatState){const e=[...n.keys()][0];let t;if(void 0!==e&&(t=n.get(e)),t){yield*vye("Received a chatState change. Setting local chatState to:",s.event.chatState),t.chatState=s.event.chatState;const r=YE(),n={...r?.lpOpenConvs||{},[String(e)]:t};fye("Updating cookie with conversation chatState change",{conversationId:e,chatState:s.event.chatState}),KE({lpOpenConvs:n})}}break;case"AcceptStatusEvent":break;default:pye("Unhandled change.event.type",{type:s.event.type,change:s})}}catch(i){s8("LivePersonMessageProcessing",i instanceof Error?i:new Error(String(i))),M7({name:cq,properties:{component:gq,eventType:s?.event?.type||"unknown",dialogId:s?.dialogId||"unknown",sequence:s?.sequence?.toString()||"unknown",errorType:i instanceof Error?i.constructor.name:"UnknownError"}}),pye("Error processing message event:",i)}}catch(a){pye("Unhandled error in handleMessageEventNotifications",a)}}function*pbe(e){mye("monitorForLPWSConnectionClose");const t=U_(t=>{const r=e.getWS();if(r){fye("In monitorForLPWSConnectionClose. Listening for ws close events.");const e=e=>{t(e)};return r.addEventListener("close",e),()=>{r.removeEventListener("close",e)}}return pye("In monitorForLPWSConnectionClose. Unable to listen to ws close events because it is null or undefined."),()=>{}},i_.expanding(42));try{for(;;){const e=yield m_(t);if(e){if(yield*vye("WebSocket connection closed. CloseEvent:",e),M7({name:aq,properties:{component:gq,wasClean:(e.wasClean??!1).toString(),code:(e.code??0).toString(),reason:e.reason||"no_reason_provided"}}),e.wasClean&&1e3===(e.code??0)){yield*vye("Clean close detected, not attempting reconnection."),yield g_(dye("Disconnected"));continue}const t=[2e3,4e3,8e3],n=t.length;M7({name:sq,properties:{component:gq,maxRetries:n.toString(),disconnectCode:(e.code??0).toString(),disconnectReason:e.reason||"no_reason_provided"}});const o=performance.now();let i=!1;for(let a=1;a<=n;a++){try{yield g_(dye({type:"Reconnecting",attempt:a,reason:e.reason})),yield g_(sye(1===a?"Connection lost. Attempting to reconnect...":`Reconnection attempt ${a}...`)),a>1&&(yield __(t[a-1]??1e3)),yield*vye(`Reconnection attempt ${a}/${n}`),yield*vye("TODO: Reinitialize Connection With LivePerson???"),yield g_(dye("Connected")),yield g_(sye("Reconnected to live agent. You can continue your conversation.")),yield*vye(`Reconnection successful on attempt ${a}`),i=!0;const r=performance.now()-o;M7({name:lq,properties:{component:gq,result:"success",attemptNumber:a.toString(),totalAttempts:a.toString()},measurements:{reconnectDurationMS:r,attemptsUsed:a}});break}catch(r){yield*yye(`Reconnection attempt ${a} failed:`,r),s8("LivePersonWebSocketReconnect",r instanceof Error?r:new Error(String(r)))}if(a==n){const e=performance.now()-o;M7({name:lq,properties:{component:gq,result:"failure",totalAttempts:n.toString()},measurements:{reconnectDurationMS:e,attemptsUsed:n}}),yield g_(sye("Unable to reconnect to live agent. Please refresh the page to try again.")),yield g_(sV.endTask())}}}}}finally{t.close();const e={...YE(),lpOpenConvs:{},lpJWT:"",startLPChatActivityIds:[],lpEngagementSession:void 0};KE(e)}}function*mbe(e,t){let r=null;for(;;)try{yield m_(sV.userTyping.type);const n=[...t.keys()][0];if(!n)continue;const o=t.get(n);if(!o||"ACTIVE"!==o.chatState)continue;r&&(yield k_(r)),yield w_([e,"setUserChatStateTo"],n,o.activeDialogId,nbe.COMPOSING),r=yield x_(function*(){yield __(3e3),yield w_([e,"setUserChatStateTo"],n,o.activeDialogId,nbe.PAUSE)})}catch(n){pye("Error in handleUserTypingSaga:",n)}}function*gbe(e,t){if(yield*vye("In sendDirectLinePostActivity. Sending action to DIRECT_LINE/POST_ACTIVITY",{eventName:e,eventValue:t}),e)try{let r={id:"send-lpids-"+Date.now(),timestamp:(new Date).toISOString(),channelData:{postBack:!0,"webchat:sequence-id":1},name:e,type:"event",value:t,from:{id:"user",name:"User",role:"user"}};yield g_(Yue(r,"keyboard")),yield*vye("webChatSendEventSaga: dispatched DIRECT_LINE/POST_ACTIVITY",{eventName:e})}catch(r){pye("webChatSendEventSaga: failed to dispatch event",r)}else pye("webChatSendEventSaga: missing eventName")}function*vbe(e,t,r,n,o,i,a,s,l){const c=!!e&&!!r&&!!n;if(!c&&!(!!e&&!!t))return pye("Invalid parameters: Must provide either (accountId + skillId) or (accountId + conversationId + jwt)"),yield g_(sye("Invalid connection parameters")),void(yield g_(dye("Disconnected")));let u,d,f,h,p,m=null;if(c){yield*vye("Direct connection mode: Using provided accountId, conversationId and JWT"),u=n,h=e,fye("Saving provided JWT to cookie",{hasJwt:Boolean(u),jwtLength:u?.length}),KE({lpJWT:u});const t=rbe(u);if(!t)return pye("In initLivePersonChatTask. No userId found in provided JWT"),yield*vye("Error extracting user ID from provided JWT"),void(yield g_(dye("Disconnected")));if(d=t,o.umsDomain)f=o.umsDomain,yield*vye("Using UMS Domain from debug options");else{const{umsResult:e,umsTimeout:t}=yield y_({umsResult:w_(ebe,h),umsTimeout:__(5e3)});if(t)return pye("In initLivePersonChatTask. getLivePersonUmsDomain timed out in direct connection mode"),yield*vye("Timeout getting UMS Domain in direct connection mode"),void(yield g_(dye("Disconnected")));if(!e)return pye("In initLivePersonChatTask. No umsDomain retrieved in direct connection mode"),yield*vye("Error: Unable to retrieve UMS Domain in direct connection mode"),void(yield g_(dye("Disconnected")));f=e}p=o.skillId||"unknown",yield*vye("Direct connection mode initialized:",{conversationId:r,userId:d,umsDomain:f,finalAccountId:h})}else{yield*vye("Full initialization mode: Using accountId and skillId"),h=e,p=t;const r=K7().isFeatureEnabled(se);let n=!1;try{if(!0===o.livePersonAvailable)n=!0;else{const e=yield*function*(e,t=3,r=1e3){fye("In checkLivePersonAgentAvailability");const n=performance.now();obe=performance.now(),M7({name:eq,properties:{component:gq,skillId:e||"unknown",maxRetries:t.toString(),retryDelayMS:r.toString()}});for(let i=1;i<=t;i++){fye(`In checkLivePersonAgentAvailability. Attempt #${i}.`),M7({name:tq,properties:{component:gq,attemptNumber:i.toString(),skillId:e||"unknown"}});const a=new Request("https://webassistant-prod.microsoft.com/liveperson/v1/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({metadata:{skillId:e}})}),s=performance.now();try{const t=yield w_(fetch,a),r=performance.now()-s;if(!t.ok){l8(ZV,vq,"POST",r,!1,t.status);const e=new Error(`Error checking LivePerson agent availability. Response status: ${t.status}`);throw pye(`HTTP error in agent availability check. Attempt #${i} failed, will retry:`,e),e}const o=yield w_([t,"json"]),l=performance.now()-n;return l8(ZV,vq,"POST",r,!0,t.status),M7({name:rq,properties:{component:gq,result:"success",availability:String(o.availability??"unknown"),finalAttempt:i.toString(),skillId:e||"unknown"},measurements:{totalDurationMS:l,attemptsUsed:i}}),fye(`In checkLivePersonAgentAvailability. Attempt #${i} Succeeded.`,{availability:o.availability,attempt:i}),o.availability}catch(o){if(fye(`In checkLivePersonAgentAvailability. Attempt #${i} failed`,o),performance.now(),s8("LivePersonAvailabilityCheck",o instanceof Error?o:new Error(String(o))),!(i<t)){const t=performance.now()-n;throw M7({name:rq,properties:{component:gq,result:"failure",finalAttempt:i.toString(),skillId:e||"unknown",errorType:o instanceof Error?o.constructor.name:"UnknownError"},measurements:{totalDurationMS:t,attemptsUsed:i}}),fye("All retry attempts failed for agent availability check",o),yield g_(sV.messageReceived({role:"bot",text:"Could not determine if a LivePerson was available. Please try again later."})),o}fye("In checkLivePersonAgentAvailability. Retrying"),yield __(r)}}}(p);n=Boolean(e)}}catch(A){return pye("Error checking LivePerson agent availability:",A),s8("LivePersonAgentAvailability",A instanceof Error?A:new Error(String(A))),void(r?(yield*vye("LP availability check failed. Sending lpNotAvailable event to trigger offhours flow.",{skillId:p}),yield*gbe(Hye,{skillId:p})):(yield g_(sye("Unable to check agent availability. Please try again later.")),yield g_(dye("Disconnected"))))}if(!n)return void(r?(yield*vye("LP not available. Sending lpNotAvailable event to trigger offhours flow.",{skillId:p}),yield*gbe(Hye,{skillId:p})):yield g_(sye(((e,t)=>{if(e){const r=Wye[e];if(r){const e=r[t];if("string"==typeof e&&e.length>0)return e}}const r=Fye[t];return"string"==typeof r?r:String(r)})(p,"livePersonNoAgentsText"))));yield*vye("LivePerson is available. Connecting now."),yield*vye("Creating session with LivePerson");try{m=o.session?JSON.parse(o.session):yield*ibe(h,i,a,s),yield*vye("In initLivePersonChatTask. LivePerson session fetched, updated, or created.",{session:m})}catch(A){return fye("In initLivePersonChatTask","Error while creating a session",A),void(yield g_(dye("Disconnected")))}if(yield*vye("In initLivePersonChatTask. Getting JWT."),o.jwt)u=o.jwt,fye("Using debug JWT and saving to cookie",{hasJwt:Boolean(u),jwtLength:u?.length}),KE({lpJWT:u});else{const e=YE()?.lpJWT;if(e)u=e,yield*vye("In initLivePersonChatTask. Using existing JWT from cookie");else{const{jwtResult:e,jwtTimeout:t}=yield y_({jwtResult:w_(Xye.getNewJWT,h),jwtTimeout:__(5e3)});if(t)return pye("In initLivePersonChatTask. getJWT timed out.",t),yield*vye("Error getting JWT"),void(yield g_(dye("Disconnected")));u=e,fye("Pushing new JWT into cookie",{hasJwt:Boolean(u),jwtLength:u?.length}),KE({lpJWT:u})}}if(yield*vye("In initLivePersonChatTask. JWT:",{jwt:u}),yield*vye("Getting User ID from JWT"),o.userId)d=o.userId,yield*vye("Using User ID from debug options:",{userId:d});else{const e=rbe(u);if(!e)return pye("In initLivePersonChatTask. No userId found in JWT"),yield*vye("Error extracting user ID from JWT"),void(yield g_(dye("Disconnected")));d=e,yield*vye("User ID extracted from JWT successfully:",{userId:d})}if(yield*vye("Getting UMS Domain"),o.umsDomain)f=o.umsDomain,yield*vye("Using UMS Domain from debug options");else{const{umsResult:e,umsTimeout:t}=yield y_({umsResult:w_(ebe,h),umsTimeout:__(5e3)});if(t)return pye("In initLivePersonChatTask. getLivePersonUmsDomain timed out"),yield*vye("Timeout getting UMS Domain"),void(yield g_(dye("Disconnected")));if(!e)return pye("In initLivePersonChatTask. No umsDomain retrieved"),yield*vye("Error: Unable to retrieve UMS Domain"),void(yield g_(dye("Disconnected")));f=e}yield*vye("In initLivePersonChatTask. UMS Domain:",{umsDomain:f})}yield g_(dye("Connecting")),yield*vye("Calling LPWS.connect");const{lpws:g,lpwsTimeout:v}=yield y_({lpws:w_(Jye.connect,`wss://${f}/ws_api/account/${h}/messaging/consumer?v=3`),lpwsTimeout:__(5e3)});if(v)return pye("In initLivePersonChatTask. LPWS.connect timed out.",v),yield*vye("Timeout connecting over WebSocket"),void(yield g_(dye("Disconnected")));yield*vye("In initLivePersonChatTask. LPWS Connected:",{lpws:g}),yield*vye("Initializing LivePerson connection");const{lpwsInit:y,lpwsInitTimeout:b}=yield y_({lpwsInit:w_([g,"initConnection2"],u),lpwsInitTimeout:__(5e3)});if(b)return pye("In initLivePersonChatTask. lpws.initConnection timed out.","lpwsInitTimeout",b),yield*vye("Timeout initializing LivePerson connection"),void(yield g_(dye("Disconnected")));yield*vye("In initLivePersonChatTask. LPWS Connection Initialization Succeeded:",{lpwsInit:y}),yield x_(pbe,g),yield*vye("Subscribing to LivePerson conversation updates");const{subscribeResponse:w,subscribeTimeout:x}=yield y_({subscribeResponse:w_([g,"subscribeExConversations2"]),subscribeTimeout:__(5e3)});if(x)return pye("In initLivePersonChatTask. subscribeExConversations timed out"),yield*vye("Timeout subscribing to conversation updates"),void(yield g_(dye("Disconnected")));if(yield*vye("In initLivePersonChatTask. lpws.subscribeExConversations succeeded",{subscribeResponse:w}),!w.body?.subscriptionId)return pye("In initLivePersonChatTask. subscribeExConversations","no subscription id"),void(yield*vye("ERROR: NO SUBSCRIPTION ID!!!"));const S=w.body.subscriptionId;fye('Setting up channel for "MessagingEvent" notifications');const k=U_(e=>{return g.onNotification((t="MessagingEvent",e=>e.type.includes(t)),t=>{fye("Received MessagingEvent notification",{messageEvent:t}),e({lpws:g,messageEvent:t})});var t},i_.expanding(42)),E=new Map,T=YE();if(T?.lpOpenConvs){for(const[e,t]of Object.entries(T.lpOpenConvs))E.set(e,t);fye("Loaded existing conversations from cookie",{openConversations:Array.from(E.entries())})}yield x_(function*(e){try{for(;;){const{lpws:t,messageEvent:r}=yield m_(k);fye("Received MessageEvent:",{lpws:t,messageEvent:r}),yield*hbe(t,d,r,e)}}catch(A){pye("Error handling message events:",A)}finally{k.close()}},E),fye("Listening to notifications for SubscriptionID:",{subscriptionId:S});const _=U_(e=>(fye("Listening for SubscriptionID notifications",{subscriptionId:S}),g.onNotification(function(e){return t=>t.body.subscriptionId===e}(S),t=>{fye("Received Subscription ID notification",{body:t}),e(t)})),i_.expanding(42));let C=!0;if(yield x_(function*(e){try{const r=new Set;for(;;){const n=yield m_(_);fye("Received SubscriptionID Event:",n);for(let o of n.changes){if(!!o?.result?.conversationDetails?.dialogs?.some(e=>"BRAND_AUTO_CLOSE"===e.closedCause)){const e=o.result?.convId;fye("Detected BRAND_AUTO_CLOSE for conversation, closing locally",{convId:e});try{yield w_([g,"unsubscribeExConversations2"],S)}catch(Wqe){hye("unsubscribeExConversations2 failed during auto-close",Wqe)}return yield g_(dye("Disconnected")),yield g_(sV.endTask()),void(yield g_(sye("The chat has ended. Thank you!")))}const n=o.result.conversationDetails.dialogs.find(e=>e.state===Xye.conversationStateTypes.OPEN);if(!n){const e=yield E_(nue);yield w_([g,"unsubscribeExConversations2"],S),yield g_(dye("Disconnected")),e.isPostSurveyEnabled&&(M7({name:pq,properties:{component:gq}}),Ece({actionType:b8.ACTION_TYPES.AUTOMATIC,behavior:b8.BEHAVIORS.SURVEY_COMPLETE,contentTags:{aN:b8.AREA_NAMES.AI_CHAT_DRAWER,compnm:b8.COMPONENT_NAMES.AI_ASSISTANT,view:b8.VIEW.AI_CHAT_DRAWER,cN:b8.CONTENT_NAMES.SURVEY_COMPLETE,ecn:b8.CONTENT_NAMES.SURVEY_COMPLETE,cT:b8.CONTENT_TYPES.PROMPT_BUTTON}}),yield g_(sye(Fye.livePersonSurveyCloseMessage))),yield g_(sV.endTask())}const i=o.result.conversationDetails.dialogs.find(e=>e.dialogId===n.dialogId)?.dialogId,a=i&&!E.get(o.result.convId)?.result.dialogs.some(e=>e.dialogId===i);if(a&&fye("New dialog detected in conversation",{conversationId:o.result.convId,newDialogId:i}),!E.has(o.result.convId)||a||C){const i=`${t}_${o.result.convId}`;if(t&&!r.has(i)&&(r.add(i),yield*gbe(qye,{skillId:t,LPConversationID:o.result.convId})),a||C){let t=function(e,t,r=0,n=0){g.subscribeMessagingEvents2(t,e,r)};const r={result:{convId:o.result.convId,dialogs:o.result.conversationDetails.dialogs.map(e=>({dialogId:e.dialogId,dialogType:e.dialogType,state:e.state}))},activeDialogId:n.dialogId,chatState:nbe.DEFAULT,closeMsgSent:!1};if(C){C=!1;if(c||E.has(o.result.convId))fye("Skipping transcript/notification for restored session",{conversationId:o.result.convId});else if(e)yield*ybe(g,r);else{const e=`${Fye.transcriptIntroText} Transcript not provided`;try{yield w_([g,"publishEvent2"],r.result.convId,r.activeDialogId,e,Math.floor(1e9*Math.random()).toString()),fye("Sent no-transcript notification to LivePerson",{conversationId:r.result.convId})}catch(A){pye("Failed to send no-transcript notification to LivePerson",A)}}}E.set(o.result.convId,r);const i=YE(),a={...i?.lpOpenConvs||{},[o.result.convId]:r};fye("Updating cookie with new conversation",{conversationId:o.result.convId,lpOpenConvs:a}),KE({lpOpenConvs:a}),fye("openConversations updated",{openConversations:Array.from(E.entries())}),t(n.dialogId,o.result.convId),fye("Subscribed to messaging events",{dialogId:n.dialogId,conversationId:o.result.convId}),"POST_SURVEY"===n.dialogType&&(yield g_(sV.setLivePersonState({isPostSurveyEnabled:!0})))}}const s=E.get(o.result.convId);if(s){if(o.result.conversationDetails.dialogs.length!==s.result.dialogs.length){if(o.result.conversationDetails.dialogs.some(e=>"POST_SURVEY"===e.dialogType)&&!s.closeMsgSent){const e="CONSUMER"===o.result.conversationDetails?.closeReason?Fye.livePersonUserClosedConversationText:"AGENT"===o.result.conversationDetails?.closeReason?Fye.livePersonAgentClosedConversationText:Fye.livePersonSystemClosedConversationText;yield g_(sye(e)),s.closeMsgSent=!0;const t=YE(),r={...t?.lpOpenConvs||{},[o.result.convId]:s};fye("Updating cookie with closed conversation metadata",{conversationId:o.result.convId,closeMsgSent:!0}),KE({lpOpenConvs:r})}}}}}}catch(A){pye("Error handling Subscription ID events:",A)}},l),yield x_(mbe,g,E),c)yield*vye("Direct connection mode: Connecting to existing conversation",{conversationId:r});else{if(!m)return pye("Session is required for new conversation request but is null"),void(yield g_(dye("Disconnected")));fye("Requesting new conversation");for(let e=0;e<3;e++){const{conversationResponse:e,conversationTimeout:t}=yield y_({conversationResponse:w_([g,"consumerRequestConversation2"],p,m.visitorId,m.sessionId,document.documentElement.lang),conversationTimeout:__(5e3)});if(t)return pye("In initLivePersonChatTask. consumerRequestConversation timed out"),yield*vye("Timeout requesting new conversation"),void(yield g_(dye("Disconnected")));if(!e||"string"!=typeof e.body||!e.body.startsWith("Consumer request conversation failed:")){fye("In initLivePersonChatTask. lpws.consumerRequestConversation succeeded",{conversationResponse:e});const t=[...E.keys()][0];if(!t)continue;const r=E.get(t);r&&(fye("In initLivePersonChatTask.","Calling lpws.setUserChatStateTo",{conversationId:t,dialogId:r.activeDialogId,chatState:nbe.ACTIVE}),yield w_([g,"setUserChatStateTo"],t,r.activeDialogId,nbe.ACTIVE));break}e.code>=400&&(m.visitorId=""),yield __(1e3)}}for(yield x_(function*(){for(;;){const e=yield m_(sV.userRequestDisconnect.type);let t=yield E_(nue);const r=[...E.keys()][0];if(!r)continue;const n=E.get(r);n&&(fye("In userRequestDisconnect listener.","Calling lpws.setUserChatStateTo",{conversationId:r,dialogId:n.activeDialogId,chatState:nbe.INACTIVE}),yield w_([g,"setUserChatStateTo"],r,n.activeDialogId,nbe.INACTIVE)),yield w_([g,"updateConversationField2"],r,n?.activeDialogId||"",Xye.conversationStateTypes.CLOSE,"Closed by consumer"),t.isPostSurveyEnabled?(fye("User requested survey end",e),M7({name:hq,properties:{component:gq}}),yield w_([g,"unsubscribeExConversations2"],S),yield g_(dye("Disconnected")),yield g_(sV.endTask())):(fye("User requested agentEnd",e),M7({name:fq,properties:{component:gq}}))}}),yield g_(dye("Connected"));;){const e=(yield m_(sV.messageSend.type)).payload;dbe=!0;const t=[...E.keys()][0];if(!t)continue;const r=E.get(t);r?(fye("In messageSend listener.","Calling lpws.setUserChatStateTo",{conversationId:t,dialogId:r.activeDialogId,chatState:nbe.ACTIVE}),yield w_([g,"setUserChatStateTo"],t,r.activeDialogId,nbe.ACTIVE),yield w_([g,"publishEvent2"],t,r.activeDialogId,e,Math.floor(1e9*Math.random()).toString()),yield g_(lye(e,`${r.activeDialogId}-${nP()}`))):pye("No active conversation found for sending message")}}function*ybe(e,t){mye("sendTranscriptToLivePerson");const r=yield E_(rue);if(!r||!r.length)return void fye("No messages found in chat history for transcript");let n="**WAA - FULL CONVERSATION TRANSCRIPT:**\n\n";function o(e){const t=[];let r=0;const n="**WAA - FULL CONVERSATION TRANSCRIPT (CONTINUED):**\n\n";for(;r<e.length;){let o=r+8e3;if(t.length>0&&(o-=53),o>e.length)o=e.length;else{const t=e.lastIndexOf(" ",o);t>r&&(o=t)}let i=e.slice(r,o).trim();t.length>0&&(i=n+i),t.push(i),r=o}return t}r.forEach(e=>{const t="user"===e.role?"**User:**":"**Assistant:**",r=e.text?.trim()||"";r&&(n+=`${t} ${r}\n\n`)});for(const a of o(n))try{yield w_([e,"publishEvent2"],t.result.convId,t.activeDialogId,a,Math.floor(1e9*Math.random()).toString()),o(n).length>1&&(yield __(500))}catch(i){pye("Failed to send transcript chunk to LivePerson",i)}yield*vye("Transcript sent to LivePerson",{messageCount:r.length})}function*bbe(){yield xue(sV.initLivePersonChat.type,function*(){mye("Init");const e=yield E_(nue),t=yield E_(sue),r=YE(),n=r?.lpJWT||null,o=r?.lpOpenConvs&&Object.keys(r.lpOpenConvs)[0]||null,i=t.accountId||e.accountId||r?.lpEngagementSession?.account||null,a=t.skillId||e.skillId,s=t.sendTranscript||e.sendTranscript||!1,l=tbe(),c=window.oc?.lp?.topic??"",u=window.location.origin+window.location.pathname,d=r?.lpEngagementSession||{country:null,topic:null,leadId:null,pageId:null,visitorId:null,sessionId:null,account:null};if(i&&i!==d.account||l&&l!==d.country||c&&c!==d.topic||u&&u!==d.leadId){const e={...d,account:i||d.account,country:l||d.country,topic:c||d.topic,leadId:u||d.leadId};fye("Updating cookie with session data",{lpEngagementSession:e}),KE({lpEngagementSession:e})}yield*vye("Using config:",{accountId:i,skillId:a,sendTranscript:s,country:l,topic:c,leadId:u,cookie:r,jwt:n,conversationId:o});let f=!1;if((i&&a||i&&n&&o)&&(f=!0),f)try{const{cancel:e}=yield y_({result:w_(vbe,i,a,o,n,t,l,c,u,s),cancel:m_(sV.endTask.type)});e&&fye("LivePerson chat cancelled")}catch(h){pye("TODO",h)}finally{yield*function*(){yield g_(sV.setLivePersonState({accountId:null,skillId:null,sendTranscript:null,isPostSurveyEnabled:!1,connectionState:{type:"Disconnected"}}));const e=YE();e&&KE({...e,startLPChatActivityIds:void 0,lpEngagementSession:void 0,lpJWT:void 0,lpOpenConvs:void 0})}()}else pye("Not enough config data")}),yield bue(sV.setLivePersonConnectionState,function*(e){yield*vye("Connection State Set To: ",e.payload)})}var wbe,xbe={exports:{}};const Sbe=r((wbe||(wbe=1,xbe.exports=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,o)}function r(e){return function(){var r=this,n=arguments;return new Promise(function(o,i){var a=e.apply(r,n);function s(e){t(a,o,i,s,l,"next",e)}function l(e){t(a,o,i,s,l,"throw",e)}s(void 0)})}}function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)),n}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e){return function(e){if(Array.isArray(e))return e}(e)||l(e)||c(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||l(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function c(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=c(e))){var t=0,r=function(){};return{s:r,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}var f=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};function h(e,t,r){m(t);var n,o=d(function e(t,r){if(r.length){var n=a(r),o=n[0],i=n.slice(1);if("function"==typeof o){var l=[];if(Array.isArray(t))for(var c=0,u=t.length;c<u;c++)o.call(t,t[c],c)&&l.push.apply(l,s(e(t,[c].concat(s(i)))));else for(var d in t||{})o.call(t,t[d],d)&&l.push.apply(l,s(e(t,[d].concat(s(i)))));return l}var f=e(void 0!==t&&t[o],i);return f?f.map(function(e){return[o].concat(s(e))}):[[o]]}}(e,t));try{for(o.s();!(n=o.n()).done;){var i=n.value;e=w(e,i,r?r(b(e,i)):void 0)}}catch(l){o.e(l)}finally{o.f()}return e}function p(){return(p=r(regeneratorRuntime.mark(function e(t,r,n){var o,i,a,s;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return m(r),e.next=3,v(t,r);case 3:o=e.sent,i=d(o),e.prev=5,i.s();case 7:if((a=i.n()).done){e.next=23;break}if(s=a.value,e.t0=w,e.t1=t,e.t2=s,n)return e.next=15,n(b(t,s));e.next=18;break;case 15:e.t3=e.sent,e.next=19;break;case 18:e.t3=void 0;case 19:e.t4=e.t3,t=(0,e.t0)(e.t1,e.t2,e.t4);case 21:e.next=7;break;case 23:e.next=28;break;case 25:e.prev=25,e.t5=e.catch(5),i.e(e.t5);case 28:return e.prev=28,i.f(),e.finish(28);case 31:return e.abrupt("return",t);case 32:case"end":return e.stop()}},e,null,[[5,25,28,31]])}))).apply(this,arguments)}function m(e){if(!Array.isArray(e))throw new Error("path must be an array")}h.updateInAsync=function(e,t,r){return p.apply(this,arguments)};var g=["__proto__","constructor","prototype"];function v(){return y.apply(this,arguments)}function y(){return(y=r(regeneratorRuntime.mark(function e(t,r){var n,o,i,l,c,u,d,f;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r.length){e.next=2;break}return e.abrupt("return");case 2:if(n=a(r),o=n[0],i=n.slice(1),"function"!=typeof o){e.next=43;break}if(l=[],!Array.isArray(t)){e.next=25;break}c=0,u=t.length;case 7:if(c<u)return e.next=10,o.call(t,t[c],c);e.next=23;break;case 10:if(e.t0=e.sent,e.t0)return e.t1=l.push,e.t2=l,e.t3=s,e.next=17,v(t,[c].concat(s(i)));e.next=20;break;case 17:e.t4=e.sent,e.t5=(0,e.t3)(e.t4),e.t1.apply.call(e.t1,e.t2,e.t5);case 20:c++,e.next=7;break;case 23:e.next=42;break;case 25:e.t6=regeneratorRuntime.keys(t||{});case 26:if((e.t7=e.t6()).done){e.next=42;break}return d=e.t7.value,e.next=30,o.call(t,t[d],d);case 30:if(e.t8=e.sent,e.t8)return e.t9=l.push,e.t10=l,e.t11=s,e.next=37,v(t,[d].concat(s(i)));e.next=40;break;case 37:e.t12=e.sent,e.t13=(0,e.t11)(e.t12),e.t9.apply.call(e.t9,e.t10,e.t13);case 40:e.next=26;break;case 42:return e.abrupt("return",l);case 43:return e.next=45,v(void 0!==t&&t[o],i);case 45:return f=e.sent,e.abrupt("return",f?f.map(function(e){return[o].concat(s(e))}):[[o]]);case 47:case"end":return e.stop()}},e)}))).apply(this,arguments)}function b(e,t){return t.reduce(function(e,t){return e&&e[t]},e)}function w(t,r,o){if(!r.length)return o;var l,c=a(r),u=c[0],d=c.slice(1),h=void 0!==t&&t[u],p=t;if(l=u,g.includes(l))return t;if("string"!=typeof u||"object"===e(p)&&!Array.isArray(p)?"number"!=typeof u||Array.isArray(p)||(p=[]):p={},"number"==typeof u){var m=w(h,d,o);return void 0===m?void 0===t?t:(u in p&&(p=s(p)).splice(u,1),p):f(m,h)?t:((p=s(p))[u]=m,p)}var v=w(h,d,o);return void 0===v?void 0===t?t:(u in p&&delete(p=i({},p))[u],p):f(v,h)?t:i(i({},p),{},n({},u,v))}return h}()),xbe.exports));function kbe(e,t){return w_(function*(){const r=jve(),n=e.subscribe({next:r.push});try{for(;;){const e=yield w_(r.shift);yield w_(t,e)}}finally{n.unsubscribe()}})}function Ebe(e,...t){return w_(function*(){for(;;){const{meta:{userID:r,username:n},payload:{directLine:o}}=yield m_([jue,Vue]),i=yield x_(e,{directLine:o,userID:r,username:n},...t);yield m_([Gve,que]),yield k_(i)}})}const{log:Tbe,logError:_be}=R.withKind("observeActivitySaga"),Cbe=e=>e;function Abe(e){for(const t of e){if(!t||"object"!=typeof t)continue;const e=t;if(e.id===b8.IDS.AI_CHAT_RESUME_OFFER_FROM_EMAIL)return e.id;if(Array.isArray(e.items)){const t=Abe(e.items);if(t)return t}if(Array.isArray(e.columns)){const t=Abe(e.columns);if(t)return t}if(Array.isArray(e.body)){const t=Abe(e.body);if(t)return t}}}function*Ibe({directLine:e,userID:t}){try{yield kbe(e.activity$,function*(e){e=function(e,t){return e.from?e.from.role||(e=e.from.id===t?Sbe(e,["from","role"],()=>"user"):e.from.id?Sbe(e,["from","role"],()=>"bot"):Sbe(e,["from","role"],()=>"channel")):e=Sbe(e,["from","role"],()=>"channel"),e}(e=function(e){return["attachmentLayout","attachments","channelData","conversation","entities","from","inputHint","locale","name","recipient","speak","suggestedActions","text","textFormat","timestamp","type"].reduce((e,t)=>{const{[t]:r}=e;return Sbe(e,[t],null==r?void 0:Cbe)},e)}(e),t),e=function(e){return Sbe(e,["from","name"],t=>{const{channelId:r,from:n={}}=e;return"directline"!==r&&"webchat"!==r||n.id!==n.name||"bot"!==n.role?t:"Bot"})}(e),Tbe("observeActivity",JSON.stringify(e));const r=YE(),n=yield E_(e=>e.webChat.userHasSentMessage);if("event"===e.type&&e.name===Vye&&n){const t=yield E_(e=>e.webChat?.livePerson?.initiatingConversationId),n=e.conversation?.id;!t&&n&&(yield g_(sV.setLivePersonState({initiatingConversationId:n}))),yield g_(sV.setLivePersonData({skillId:e.value.skillId,accountId:e.value.accountId,sendTranscript:e.value.sendTranscript}));const o=r?.lpEngagementSession||{country:null,topic:null,leadId:null,pageId:null,visitorId:null,sessionId:null,account:null};if(e.value.accountId&&e.value.accountId!==o.account&&(Tbe("Updating cookie with accountId from bot event",{accountId:e.value.accountId,activityId:e.id}),KE({lpEngagementSession:{...o,account:e.value.accountId}})),r&&Array.isArray(r.startLPChatActivityIds)&&r.startLPChatActivityIds.includes(e.id))return;KE({startLPChatActivityIds:[...r?.startLPChatActivityIds||[],e.id]}),yield g_(sV.initLivePersonChat())}if("event"===e.type&&e.name===K&&e.value?.active){const t="string"==typeof e.value.active?e.value.active:null,r=t===ee?null:t,n=yield E_(e=>e.webChat.activeSubagent);r!==n&&(Tbe("Agent changed",{from:n,to:r}),yield g_(Qce(r)))}if("event"!==e.type||e.name!==J&&e.name!==Q||(yield g_(Zce(e.name===J))),"bot"===e.from?.role&&"message"===e.type&&(d8(e.id,e.replyToId,e.timestamp?.toString(),e.conversation?.id),e.attachments&&Array.isArray(e.attachments))){e.attachments.some(e=>!(!e.content||!Array.isArray(e.content.body))&&e.content.body.some(e=>"deflection-1"===e?.id))&&Ece({actionType:b8.ACTION_TYPES.AUTOMATIC,behavior:b8.BEHAVIORS.CHAT_INITIATE,contentTags:{aN:b8.AREA_NAMES.AI_CHAT_DRAWER,compnm:b8.COMPONENT_NAMES.AI_ASSISTANT,hn:b8.HEADER_NAMES.AI_POWERED_ASSISTANT,ehn:b8.HEADER_NAMES.AI_POWERED_ASSISTANT,view:b8.VIEW.AI_CHAT_DRAWER,id:b8.IDS.PROMPT_SUBMIT,cT:b8.CONTENT_TYPES.FREEFORM_PROMPT_SUBMIT,cN:b8.CONTENT_NAMES.CHAT_WITH_SALES,ecn:b8.CONTENT_NAMES.CHAT_WITH_SALES}});const t=e.attachments.find(e=>e.content&&Array.isArray(e.content.body)&&Abe(e.content.body));if(t){const e=t.content?.body;if(Array.isArray(e)){const t=e.find(e=>!!e&&"object"==typeof e&&"TextBlock"===e.type),r="string"==typeof t?.text&&t.text||b8.HEADER_NAMES.RESUME_OFFER_FROM_EMAIL;kce("resume-offer-from-email",{actionType:b8.ACTION_TYPES.AUTOMATIC,behavior:b8.BEHAVIORS.CHAT_OPEN,contentTags:{compnm:b8.COMPONENT_NAMES.AI_ASSISTANT,aN:b8.AREA_NAMES.AI_CHAT_DRAWER,view:b8.VIEW.AI_CHAT_DRAWER,cT:b8.CONTENT_TYPES.AI_ASSISTANT_ACTION,ehn:r,hn:r,id:b8.IDS.AI_CHAT_RESUME_OFFER_FROM_EMAIL}})}}}const o=Gce(e);o.shouldSuppress?o.blockedMarker&&a8(o.blockedMarker):yield g_(function(e){return{type:Yce,payload:{activity:e}}}(e))})}catch(r){_be("DirectLine activity stream error:",r),yield g_(IC({message:"There was an issue receiving messages. Please refresh the page if the problem persists.",type:"error",dismissible:!1}))}}function*Pbe(){yield Ebe(Ibe)}function Nbe(e,t=2){if("number"!=typeof e)throw new Error("First argument must be a number");let r=e+"";for(;r.length<t;)r="0"+r;return r}function Bbe(e){if(!(e.getTimezoneOffset&&e.getFullYear&&e.getMonth&&e.getDate&&e.getHours&&e.getMinutes&&e.getSeconds&&e.getMilliseconds))throw new Error("First argument must be a Date-like object.");const t=-e.getTimezoneOffset(),r=t<0?"-":"+",n=Math.floor(Math.abs(t));return`${e.getFullYear()}-${Nbe(e.getMonth()+1)}-${Nbe(e.getDate())}T${Nbe(e.getHours())}:${Nbe(e.getMinutes())}:${Nbe(e.getSeconds())}.${Nbe(e.getMilliseconds(),3)}${t?`${r}${Nbe(Math.floor(n/60))}:${Nbe(n%60)}`:"Z"}`}let Obe;function Dbe(e){return(Obe||(Obe=Object.freeze(Array.from(new Set([...Object.getOwnPropertyNames(Object.prototype),"prototype"]))))).includes(e)}function Rbe(e,...t){if(!e)return e;const r={...e};for(const n of t)"string"==typeof n&&Dbe(n)||delete r[n];return r}function Mbe(e,t){return new Promise(r=>(t.setTimeout??setTimeout)(r,Math.max(e,0)))}const{logWarn:zbe,logError:jbe}=R.withKind("postActivitySaga"),Lbe=1e4;function Fbe(e){if("string"==typeof e)return e;if(e&&"object"==typeof e&&"id"in e){const t=e.id;return"string"==typeof t&&t?t:void 0}}function Vbe(e){const t=e?.domain,r=e?.conversationId;return t&&r?`${t}/conversations/${r}/activities`:"directline/postActivity"}function*qbe(e,t,r,n,{meta:{method:o},payload:{activity:i}},a){const s="message"===i.type&&i.attachments||[],l=Uve(),c=yield E_(e=>e.optionsProvider?.options?.locale),u=rT(c),d=yield E_(e=>e.optionsProvider?.options?.partnerId??""),f=WE(),h=K7().getEnabledVariants()||[],p=void 0===window.Intl?void 0:(new Intl.DateTimeFormat).resolvedOptions().timeZone,m=new a.Date,g=C7(),v={consentStatus:g.status,rawConsent:g.raw,consentSource:g.source},y={...Rbe(i,"id"),channelData:{...Rbe(i.channelData,"state","webchat:send-status"),...v,clientActivityID:l,..."message"===i.type?{pageContext:hde(f,d,u,h)}:{}},channelId:"webchat",from:{id:t,name:r,role:"user"},locale:u,localTimestamp:Bbe(m),localTimezone:p,..."message"===i.type?{attachments:s&&s.map(({contentType:e,contentUrl:t,name:r,thumbnailUrl:n})=>({contentType:e,contentUrl:t,name:r,thumbnailUrl:n})),text:i.text}:"event"===i.type?{name:i.name,value:i.value&&"object"==typeof i.value&&!Array.isArray(i.value)?{...i.value,...v}:i.value}:{}};n||(y.entities=[...y.entities||[],{requiresBotState:!0,supportsListening:!0,supportsTts:!0,type:"ClientCapabilities"}]);const b={clientActivityID:l,method:o};u8(mV);const w=Date.now();let x,S,k=0;yield g_({type:$ue,meta:b,payload:{activity:y}});try{S=yield x_(function*(){for(;;){const{payload:{activity:e}}=yield m_(Yce);if(e.channelData?.clientActivityID===l&&e.id)return x=!0,e}});const t=1e3,r=Date.now(),n=yield x_(function*(){try{const n=Vbe(e),o=yield(t=e.postActivity(y),w_(function*(){let e;try{return yield w_(()=>new Promise((r,n)=>{e=t.subscribe({complete:r,error:n,next:r})}))}finally{e&&e.unsubscribe()}}));return k=Date.now()-r,l8(OV,F,IV,k,!0,200,n),o}catch(n){const t=Vbe(e);throw k=Date.now()-r,l8(OV,F,IV,k,!1,void 0,t),s8(PV,n),n}var t}),{postActivityResult:o}=yield y_({postActivityResult:S_(n),timeout:w_(function*(){throw yield w_(Mbe,t,a),yield g_({type:Wue,meta:b,payload:{activity:y}}),yield w_(Mbe,3e5-t,a),new Error("timed out while waiting for postActivity to return any values")})}),{echoBack:i}=yield y_({echoBack:S_(S),grace:w_(Mbe,Lbe,a)}),s=i||{...y,id:Fbe(o)||l};if(!i){const t=Fbe(o);zbe("Echo-back not observed within grace period, synthesizing activity",{clientActivityID:l,returnedId:t,gracePeriod:Lbe}),l8(OV,F,"EchoBackNotObserved",Lbe,!0,200,Vbe(e))}yield g_({type:Uue,meta:b,payload:{activity:s}});const c=Vbe(e),u=Date.now()-w;l8(OV,F,yV,u,!0,200,c)}catch(E){const t=Vbe(e),r=Date.now()-w;l8(OV,F,yV,r,!1,void 0,t),s8(bV,E),jbe("botframework-webchat: Failed to post activity to chat adapter.",E),yield g_(IC({message:"Failed to send message. Please check your connection and try again.",type:"error",dismissible:!0})),yield g_({type:Gue,error:!0,meta:b,payload:E})}finally{S&&(yield k_(S)),(yield T_())&&(yield g_(IC({message:"Message sending was cancelled. Please try again.",type:"warn",dismissible:!0})),yield g_({type:Gue,error:!0,meta:b,payload:new Error("cancelled")}))}}function*Hbe(e){yield Ebe(function*({directLine:t,userID:r,username:n}){let o=0;yield bue(Hue,function*(i){yield*qbe(t,r,n,o++,i,e)})})}const{log:Ube}=R.withKind("messageSubmissionLockSaga");function*Wbe(e){let t;const r=new Set;for(;;){const n=(yield m_(Yce)).payload.activity;if("message"===n?.type&&"user"===n?.from?.role&&n.channelData?.clientActivityID===e&&"string"==typeof n.id){const e=n.id;if(t=e,r.has(e))return;continue}if("message"===n?.type&&"bot"===n?.from?.role&&"string"==typeof n.replyToId&&(n.text||n.attachments?.length)&&!n.channelData?.postBack&&!Gce(n).shouldSuppress){const e=n.replyToId;if(e===t)return;t||r.add(e)}}}function*$be(){for(;;){const e=yield m_($ue);if("message"===e.payload?.activity?.type)return e.meta?.clientActivityID}}function*Gbe(e){for(;;){const t=yield m_(Gue);if(void 0!==e&&t.meta?.clientActivityID===e)return}}function*Ybe(){const e=yield w_($be);yield y_({normal:w_(Wbe,e),rejected:w_(Gbe,e)})}function*Kbe(){const e=yield E_(rk),t=yield E_(nk),r=Math.max(0,5e3-(Date.now()-(t??Date.now())));"timeout"in(yield y_({completed:w_(Ybe),disconnected:m_(Gve),timeout:__(r)}))&&Ube("message submission lock 5s fallback reached — releasing silently"),yield g_(QS({lockId:e}))}function*Xbe(){yield wue(JS.type,Kbe)}function*Jbe(){yield bue("WEB_CHAT/SEND_EVENT",function*(e){e.payload&&e.payload.name&&(yield*function*({payload:{name:e,value:t}}){yield g_(Yue({name:e,type:"event",value:t}))}(e))})}function*Qbe(){yield Ebe(Jbe)}function*Zbe({payload:e}){const{displayText:t,text:r,value:n}=e;yield g_(Yue({channelData:{messageBack:{displayText:t}},text:r,type:"message",value:n}))}function*ewe(){yield bue(aV,Zbe)}function*twe(){yield Ebe(ewe)}function*rwe({payload:{attachments:e=[],channelData:t,method:r,text:n,value:o}}){const i=WE(),a=YE(),s=a?.ocrAIChatDrawerSourceSite;if(s!==i){const e=yield E_(e=>e.optionsProvider.options.partnerId),t=yield E_(e=>e.optionsProvider.options.locale);KE({[IE]:i});const r=K7().getEnabledVariants()||[];yield g_(Yue({type:"event",name:G,value:hde(i,e,rT(t),r)},"keyboard"))}if(yield E_(ek)){if(yield E_(tk))return;yield g_(JS({lockedAt:Date.now()}))}const l={attachments:e.map(({blob:e,thumbnailURL:t})=>({contentType:e instanceof File&&e.type||"application/octet-stream",contentUrl:URL.createObjectURL(e),name:e instanceof File?e.name:void 0,thumbnailUrl:t?.toString()})),channelData:{...t},type:"message",value:o||void 0};n&&n.length>0&&(l.text=n,l.textFormat="plain"),yield g_(Yue(l,r))}function*nwe(){yield bue(({payload:e,type:t})=>t===oV&&(e.text||e.attachments?.length||e.value),rwe)}function*owe(){yield Ebe(nwe)}function*iwe({payload:e}){const{value:t}=e;yield g_(Yue({channelData:{postBack:!0},text:"string"==typeof t?t:void 0,type:"message",value:"string"!=typeof t?t:void 0}))}function*awe(){yield bue("WEB_CHAT/SEND_POST_BACK",iwe)}function*swe(){yield Ebe(awe)}const{log:lwe,logError:cwe}=R.withKind("streamingSaga");function*uwe({directLine:e}){try{yield kbe(e.activity$,function*(e){const t=function(e){const t=e.entities?.find(e=>"streaminfo"===e?.type?.toLowerCase()),r=e.channelData,n=t?.streamType??r?.streamType;if(!n)return null;const o=t?.streamId??r?.streamId??e.id??"";return o?{streamId:o,streamType:n,streamSequence:t?.streamSequence??r?.streamSequence??0}:null}(e);if(!t)return;const{streamId:r,streamType:n,streamSequence:o}=t;"informative"===n?(lwe("stream started",r),yield g_(VC({streamId:r}))):"streaming"===n?yield g_(qC({text:e.text??"",streamSequence:o,streamId:r})):"final"===n&&(lwe("stream completed",r),yield g_(HC()))})}catch(t){cwe("Streaming activity stream error:",t)}}function*dwe(){yield Ebe(uwe)}const{logError:fwe}=R.withKind("telemetrySaga");function*hwe(){yield v_([bue(dV.logTelemetry,pwe),bue(dV.logUserFeedback,mwe)])}function*pwe({payload:e}){try{yield u8(e)}catch(t){fwe("Error in telemetry saga:",t)}}function*mwe({payload:e}){try{yield f8(e)}catch(t){fwe("Error in user feedback handler:",t)}}const{log:gwe}=R.withKind("voiceAudioContext");let vwe=null,ywe=!1;const{log:bwe,logError:wwe}=R.withKind("micCapture");let xwe=null,Swe=null,kwe=null;async function Ewe(){try{xwe=await navigator.mediaDevices.getUserMedia({audio:{sampleRate:24e3,echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}})}catch(e){return wwe("Mic permission denied or unavailable",e),!1}try{const e=await async function(){if(vwe||(vwe=new AudioContext({sampleRate:24e3}),gwe("AudioContext created at 24kHz")),"suspended"===vwe.state&&await vwe.resume(),!ywe){const e=new Blob(["\nclass MicProcessor extends AudioWorkletProcessor {\n  constructor() {\n    super();\n    this.buffer = new Float32Array(2048);\n    this.bufferIndex = 0;\n  }\n\n  process(inputs) {\n    const input = inputs[0][0];\n    if (!input) return true;\n\n    for (let i = 0; i < input.length; i++) {\n      this.buffer[this.bufferIndex++] = input[i];\n      if (this.bufferIndex >= 2048) {\n        let sumOfSquares = 0;\n        for (let j = 0; j < 2048; j++) {\n          sumOfSquares += this.buffer[j] * this.buffer[j];\n        }\n        const rms = Math.sqrt(sumOfSquares / 2048);\n        this.port.postMessage({ samples: this.buffer.slice(), rms });\n        this.bufferIndex = 0;\n      }\n    }\n    return true;\n  }\n}\n\nregisterProcessor('mic-processor', MicProcessor);\n"],{type:"application/javascript"}),t=URL.createObjectURL(e);await vwe.audioWorklet.addModule(t),URL.revokeObjectURL(t),ywe=!0,gwe("Worklet registered via Blob URL")}return vwe}(),t=e.createMediaStreamSource(xwe);Swe=new AudioWorkletNode(e,"mic-processor"),Swe.port.onmessage=e=>{const{samples:t,rms:r}=e.data,n=function(e){const t=new Int16Array(e.length);for(let r=0;r<e.length;r++){const n=e[r],o=Math.max(-1,Math.min(1,n));t[r]=o<0?32768*o:32767*o}return t}(t);kwe&&kwe({rms:r,pcm16:n})},t.connect(Swe);const r=e.createGain();return r.gain.value=0,Swe.connect(r),r.connect(e.destination),bwe("Mic capture started"),!0}catch(e){return wwe("Mic audio context/worklet setup failed",e),xwe?.getTracks().forEach(e=>e.stop()),xwe=null,Swe?.disconnect(),Swe=null,!1}}function Twe(){Swe&&(Swe.port.onmessage=null,Swe.disconnect(),Swe=null),xwe&&(xwe.getTracks().forEach(e=>e.stop()),xwe=null),bwe("Mic capture stopped")}const{log:_we}=R.withKind("voiceSaga");function Cwe(){return U_(e=>(kwe=t=>e(t),()=>{kwe=null}))}function*Awe(){yield g_(QC("connecting")),yield __(1500);if(!(yield w_(Ewe)))return yield g_(IC({message:"Microphone access was denied. Please allow mic access and try again.",type:"error",dismissible:!0})),void(yield g_(QC("inactive")));yield g_(QC("listening")),_we("Audio capture started — receiving samples at 24kHz");const e=Cwe();try{for(;;){const{payload:t,stopped:r}=yield y_({payload:m_(e),stopped:m_(Poe.type)});if(r)break;const{rms:n}=t;yield g_(ZC(n))}}finally{e.close(),yield w_(Twe),yield g_(QC("inactive"))}}function*Iwe(){yield wue(Ioe.type,Awe)}const Pwe=function(){var e,t={},r=t.context,n=void 0===r?{}:r,o=t.channel,i=void 0===o?W_():o,a=t.sagaMonitor,s=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(t,["context","channel","sagaMonitor"]);function l(t){var r=t.getState,o=t.dispatch;return e=lC.bind(null,Yy({},s,{context:n,channel:i,dispatch:o,getState:r,sagaMonitor:a})),function(e){return function(t){a&&a.actionDispatched&&a.actionDispatched(t);var r=e(t);return i.put(t),r}}}return l.run=function(){return e.apply(void 0,arguments)},l.setContext=function(e){LT(n,e)},l}(),Nwe="undefined"==typeof globalThis?window:globalThis,Bwe={},Owe={cancelAnimationFrame:Bwe.cancelAnimationFrame||("function"==typeof cancelAnimationFrame?cancelAnimationFrame.bind(Nwe):void 0),cancelIdleCallback:Bwe.cancelIdleCallback||("function"==typeof cancelIdleCallback?cancelIdleCallback.bind(Nwe):void 0),clearImmediate:Bwe.clearImmediate||("function"==typeof clearImmediate?clearImmediate.bind(Nwe):void 0),clearInterval:Bwe.clearInterval||("function"==typeof clearInterval?clearInterval.bind(Nwe):void 0),clearTimeout:Bwe.clearTimeout||("function"==typeof clearTimeout?clearTimeout.bind(Nwe):void 0),Date:Bwe.Date||Date,requestAnimationFrame:Bwe.requestAnimationFrame||("function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Nwe):void 0),requestIdleCallback:Bwe.requestIdleCallback||("function"==typeof requestIdleCallback?requestIdleCallback.bind(Nwe):void 0),setImmediate:Bwe.setImmediate||("function"==typeof setImmediate?setImmediate.bind(Nwe):void 0),setInterval:Bwe.setInterval||("function"==typeof setInterval?setInterval.bind(Nwe):void 0),setTimeout:Bwe.setTimeout||("function"==typeof setTimeout?setTimeout.bind(Nwe):void 0)},Dwe=function(e){const t=function(e){const{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{};let i=new lS;return t&&("boolean"==typeof t?i.push(oS):i.push(iS(t.extraArgument))),i},{reducer:r,middleware:n,devTools:o=!0,preloadedState:i,enhancers:a}=e||{};let s,l;if("function"==typeof r)s=r;else{if(!rx(r))throw new Error(AS(1));s=ox(r)}l="function"==typeof n?n(t):t();let c=ix;o&&(c=aS({trace:!1,..."object"==typeof o&&o}));const u=function(...e){return t=>(r,n)=>{const o=t(r,n);let i=()=>{throw new Error(Qw(15))};const a={getState:o.getState,dispatch:(e,...t)=>i(e,...t)},s=e.map(e=>e(a));return i=ix(...s)(o.dispatch),{...o,dispatch:i}}}(...l),d=fS(u);return nx(s,i,c(..."function"==typeof a?a(d):d()))}({reducer:due,middleware:e=>e({serializableCheck:{ignoredActions:["webChat/setDirectLine","WebChat/postActivity","WebChat/observeActivity","DIRECT_LINE/CONNECT","DIRECT_LINE/CONNECT_FULFILLED","DIRECT_LINE/CONNECT_FULFILLING","DIRECT_LINE/CONNECT_REJECTED","DIRECT_LINE/CONNECT_PENDING","DIRECT_LINE/CONNECT_STILL_PENDING","DIRECT_LINE/RECONNECT","DIRECT_LINE/RECONNECT_FULFILLED","DIRECT_LINE/RECONNECT_FULFILLING","DIRECT_LINE/RECONNECT_PENDING","DIRECT_LINE/RECONNECT_REJECTED","DIRECT_LINE/RECONNECT_STILL_PENDING","DIRECT_LINE/DISCONNECT_FULFILLED","DIRECT_LINE/DISCONNECT_PENDING"]}}).concat(Pwe)});Pwe.run(function*({ponyfill:e}){yield v_([x_(hwe),x_(iye),x_(Tde),x_(Pbe),x_(dwe),x_(Hbe,e),x_(Xbe),x_(owe),x_(twe),x_(swe),x_(Qbe),x_(bbe),x_(Lye),x_(Rue),x_(Iwe)])},{ponyfill:Owe});const Rwe=()=>p.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M8 1.75c.41 0 .75.34.75.75v4.75h4.75a.75.75 0 0 1 0 1.5H8.75v4.75a.75.75 0 0 1-1.5 0V8.75H2.5a.75.75 0 0 1 0-1.5h4.75V2.5c0-.41.34-.75.75-.75Z"})}),Mwe=()=>p.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("g",{clipPath:"url(#clip0_42597_20516)",children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.91358 2.5C3.09532 2.5 0 5.60971 0 9.44574L0 17.3837H13.0864C16.9047 17.3837 20 14.274 20 10.438V9.44574C20 5.60971 16.9047 2.5 13.0864 2.5L6.91358 2.5ZM5.87049 11.2549C6.47079 11.2549 6.95744 10.765 6.95744 10.1606C6.95744 9.55614 6.47079 9.06616 5.87049 9.06616C5.27018 9.06616 4.78353 9.55614 4.78353 10.1606C4.78353 10.765 5.27018 11.2549 5.87049 11.2549ZM10.8702 10.1606C10.8702 10.765 10.3836 11.2549 9.78325 11.2549C9.18294 11.2549 8.69629 10.765 8.69629 10.1606C8.69629 9.55614 9.18294 9.06616 9.78325 9.06616C10.3836 9.06616 10.8702 9.55614 10.8702 10.1606ZM13.696 11.2549C14.2963 11.2549 14.783 10.765 14.783 10.1606C14.783 9.55614 14.2963 9.06616 13.696 9.06616C13.0957 9.06616 12.609 9.55614 12.609 10.1606C12.609 10.765 13.0957 11.2549 13.696 11.2549Z",fill:"var(--ds-theme-foreground-base-icon)"})}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_42597_20516",children:p.jsx("rect",{width:"20",height:"20",fill:"white"})})})]}),zwe=()=>p.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("g",{"clip-path":"url(#clip0_42597_16370)",children:p.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.91358 2.5C3.09532 2.5 0 5.60971 0 9.44574L0 17.3837H13.0864C16.9047 17.3837 20 14.274 20 10.438V9.44574C20 5.60971 16.9047 2.5 13.0864 2.5L6.91358 2.5ZM5.87049 11.2549C6.47079 11.2549 6.95744 10.765 6.95744 10.1606C6.95744 9.55614 6.47079 9.06616 5.87049 9.06616C5.27018 9.06616 4.78353 9.55614 4.78353 10.1606C4.78353 10.765 5.27018 11.2549 5.87049 11.2549ZM10.8702 10.1606C10.8702 10.765 10.3836 11.2549 9.78325 11.2549C9.18294 11.2549 8.69629 10.765 8.69629 10.1606C8.69629 9.55614 9.18294 9.06616 9.78325 9.06616C10.3836 9.06616 10.8702 9.55614 10.8702 10.1606ZM13.696 11.2549C14.2963 11.2549 14.783 10.765 14.783 10.1606C14.783 9.55614 14.2963 9.06616 13.696 9.06616C13.0957 9.06616 12.609 9.55614 12.609 10.1606C12.609 10.765 13.0957 11.2549 13.696 11.2549Z",fill:"var(--ds-theme-foreground-base-icon)"})}),p.jsx("defs",{children:p.jsx("clipPath",{id:"clip0_42597_16370",children:p.jsx("rect",{width:"20",height:"20",fill:"white"})})})]}),jwe=e=>{if("undefined"==typeof window||"undefined"==typeof document)return!1;const t=document.documentElement,r=t.scrollHeight,n=window.innerHeight;if(r<=n)return!1;return(window.scrollY??t.scrollTop)+n>=r-(e+(e=>{const t=Number.parseFloat(window.getComputedStyle(e).scrollPaddingBottom);return Number.isFinite(t)?Math.max(0,t):0})(t))},Lwe=(e=2)=>{const[t,r]=g.useState(()=>jwe(e));return g.useEffect(()=>{if("undefined"==typeof window)return;let t=null,n=!1;const o=()=>{if(t=null,n)return;const o=jwe(e);r(e=>e===o?e:o)},i=()=>{null===t&&(t=window.requestAnimationFrame(o))};return o(),window.addEventListener("scroll",i,{passive:!0}),window.addEventListener("resize",i),window.addEventListener("orientationchange",i),()=>{n=!0,null!==t&&(window.cancelAnimationFrame(t),t=null),window.removeEventListener("scroll",i),window.removeEventListener("resize",i),window.removeEventListener("orientationchange",i)}},[e]),t},Fwe="#unified-chat-assistant",Vwe=["a[href]","button",'input:not([type="hidden"])',"select","textarea",'[role="button"]','[tabindex]:not([tabindex="-1"])'].join(","),qwe=(e,t=0,r=Array.from(document.querySelectorAll(Vwe)),n=document.activeElement)=>{const o=e.getBoundingClientRect(),i={left:o.left,right:o.right,top:o.top+t,bottom:o.bottom+t},a=r.map(e=>({candidate:e,rect:e.getBoundingClientRect()})).filter(({candidate:e,rect:t})=>((e,t)=>{if(e.closest(Fwe)||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-hidden"))return!1;const r=window.getComputedStyle(e);return!e.hasAttribute("hidden")&&"none"!==r.display&&"hidden"!==r.visibility&&"0"!==r.opacity&&t.width>0&&t.height>0&&t.right>0&&t.bottom>0&&t.left<window.innerWidth&&t.top<window.innerHeight})(e,t)).filter(({rect:e})=>e.left<i.right&&e.right>i.left),s=(e,t)=>{const r=i.top-t,n=i.bottom-t;return e.bottom>r&&e.top<n+8},l=e=>i.bottom-e.top+8,c=a.filter(({rect:e})=>s(e,0)),u=c.reduce((e,{rect:t})=>Math.max(e,l(t)),0),d=new Set(c.map(({candidate:e})=>e)),f=a.some(({candidate:e,rect:t})=>!d.has(e)&&s(t,u)),h=e.closest(Fwe);if(n&&h?.contains(n))return t;if(!f)return Math.max(0,Math.min(u,i.top));const p=c.find(({candidate:e})=>e===n||Boolean(n&&e.contains(n))),m=p?l(p.rect):0;return Math.max(0,Math.min(m,i.top))},Hwe=(e,t)=>{const[r,n]=g.useState(0),o=g.useRef(0);return g.useEffect(()=>{if(!t)return o.current=0,void n(0);let r=!1,i=null;const a="undefined"==typeof ResizeObserver?null:new ResizeObserver(()=>u()),s=new WeakSet,l=e=>{a&&!s.has(e)&&(s.add(e),a.observe(e))},c=()=>{i=null;const t=e.current;if(r||!t)return;const a=Array.from(document.querySelectorAll(Vwe));l(document.documentElement),l(t),a.forEach(l);const s=qwe(t,o.current,a);s!==o.current&&(o.current=s,n(s))};function u(){r||null!==i||(i=window.requestAnimationFrame(c))}const d="undefined"==typeof MutationObserver?null:new MutationObserver(u);return c(),window.addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",u),window.addEventListener("orientationchange",u),document.addEventListener("focusin",u),document.addEventListener("focusout",u),d?.observe(document.body,{attributes:!0,attributeFilter:["class","style","hidden","aria-hidden","disabled"],childList:!0,subtree:!0}),()=>{r=!0,null!==i&&window.cancelAnimationFrame(i),window.removeEventListener("scroll",u),window.removeEventListener("resize",u),window.removeEventListener("orientationchange",u),document.removeEventListener("focusin",u),document.removeEventListener("focusout",u),a?.disconnect(),d?.disconnect()}},[t,e]),r},Uwe=new Map,Wwe=new Map;let $we=null,Gwe=null;const Ywe=e=>{const t=window.getComputedStyle(e),r=e.getBoundingClientRect();return!e.hidden&&"none"!==t.display&&"hidden"!==t.visibility&&r.width>0&&r.height>0},Kwe=()=>{if(!$we)return;const{inlinePriority:e,inlineValue:t}=$we;t?document.documentElement.style.setProperty("scroll-padding-bottom",t,e):document.documentElement.style.removeProperty("scroll-padding-bottom")},Xwe=()=>{if(Gwe=null,!$we||0===Uwe.size)return Kwe(),void(Wwe.size>0&&Jwe());const e=Math.ceil(Math.max(0,...Array.from(Uwe.keys()).filter(Ywe).map(e=>window.innerHeight-e.getBoundingClientRect().top+8)));if(0===e)return Kwe(),void(Wwe.size>0&&Jwe());Kwe(),$we.computedValue=window.getComputedStyle(document.documentElement).scrollPaddingBottom;var t;document.documentElement.style.setProperty("scroll-padding-bottom",`max(${t=$we.computedValue,t&&"auto"!==t?t:"0px"}, ${e}px)`,"important"),Wwe.size>0&&Jwe()},Jwe=()=>{null===Gwe&&(Gwe=window.requestAnimationFrame(Xwe))},Qwe=()=>{const e=g.useRef(null);return g.useCallback(t=>{e.current?.(),e.current=t?(e=>{if(0===Uwe.size){const e=document.documentElement.style;$we={computedValue:window.getComputedStyle(document.documentElement).scrollPaddingBottom,inlinePriority:e.getPropertyPriority("scroll-padding-bottom"),inlineValue:e.getPropertyValue("scroll-padding-bottom")},window.addEventListener("resize",Jwe)}const t=new MutationObserver(Jwe);t.observe(e,{attributes:!0,attributeFilter:["class","hidden","style"]});const r="undefined"==typeof ResizeObserver?void 0:new ResizeObserver(Jwe);r?.observe(e);const n=t=>{t.target===e&&(Wwe.set(e,(Wwe.get(e)??0)+1),Jwe())},o=t=>{if(t.target!==e)return;const r=(Wwe.get(e)??0)-1;r>0?Wwe.set(e,r):Wwe.delete(e),Jwe()};return e.addEventListener("animationstart",n),e.addEventListener("animationend",o),e.addEventListener("animationcancel",o),e.addEventListener("transitionrun",n),e.addEventListener("transitionend",o),e.addEventListener("transitioncancel",o),Uwe.set(e,{mutationObserver:t,resizeObserver:r}),Jwe(),()=>{const t=Uwe.get(e);if(t?.mutationObserver.disconnect(),t?.resizeObserver?.disconnect(),e.removeEventListener("animationstart",n),e.removeEventListener("animationend",o),e.removeEventListener("animationcancel",o),e.removeEventListener("transitionrun",n),e.removeEventListener("transitionend",o),e.removeEventListener("transitioncancel",o),Wwe.delete(e),Uwe.delete(e),0===Uwe.size)return window.removeEventListener("resize",Jwe),null!==Gwe&&(window.cancelAnimationFrame(Gwe),Gwe=null),Kwe(),$we=null,void Wwe.clear();Jwe()}})(t):null},[])},Zwe=()=>Pw(e=>e.themeProvider.theme),exe=()=>{const e=Kw(),{isDrawerOpen:t,toggleDrawer:r}=ode(),{sendMessageWithTelemetry:n}=v8(),o=Zwe(),i=Lwe(),a=g.useRef(null),s=Hwe(a,i),l=g.useRef(null),c=g.useRef(null),u=Qwe(),d=g.useRef(!1),[f,h]=g.useState(!1),m=Pw(uT),v=Pw(rue),y=m.length>0,b=v.length>0,[w,x]=g.useState(null),S=g.useRef(null),k=g.useCallback(e=>{a.current=e,u(e)},[u]),E=()=>{l.current&&(window.clearTimeout(l.current),l.current=null)},T=()=>{E(),l.current=window.setTimeout(()=>{h(!1)},150)},_=()=>{E(),h(!1)},C=t=>{try{Ece({behavior:b8.BEHAVIORS.CHAT_OPEN,actionType:t,contentTags:{cN:b8.COMPONENT_NAMES.SHOW_CHAT,ecn:b8.COMPONENT_NAMES.SHOW_CHAT,hn:b8.HEADER_NAMES.AI_POWERED_ASSISTANT,ehn:b8.HEADER_NAMES.AI_POWERED_ASSISTANT,compnm:b8.COMPONENT_NAMES.AI_ASSISTANT,view:b8.VIEW.AI_CHAT_DRAWER,aN:b8.AREA_NAMES.AI_CHAT_DRAWER,cT:b8.CONTENT_TYPES.EXPAND}})}catch{}r(),e(dV.logTelemetry("Assistant drawer button clicked"))},A=g.useCallback((t,r)=>{S.current!==t&&(S.current=t,n(r,"message"),e(iT()),e(dV.logTelemetry("Hover prompt clicked")))},[n,e]);return g.useEffect(()=>{w&&b&&(A(w.id,w.text),x(null),d.current=!1)},[b,w,A]),g.useEffect(()=>{t?_():(d.current=!1,x(null))},[t]),g.useEffect(()=>()=>E(),[]),t?null:p.jsxs(p.Fragment,{children:[f&&y&&p.jsx("div",{ref:c,className:"uca-prompt-popover",style:{bottom:`${80+s}px`},onMouseEnter:()=>{E(),h(!0)},onMouseLeave:()=>{T()},role:"dialog","aria-label":"Suggested prompts",children:p.jsx("div",{className:"uca-prompt-popover__content",children:m.map((e,n)=>p.jsx("button",{className:"uca-prompt-popover__button",onClick:()=>(e=>{if(d.current)return;d.current=!0;const n=`prompt_${Date.now()}_${Math.random().toString(36).slice(2,11)}`;if(t||r(),b)return A(n,e),d.current=!1,void _();x({id:n,text:e}),_()})(e),"aria-label":`Send message: ${e}`,"data-bi-cn":e,"data-bi-ecn":e,"data-bi-hn":b8.HEADER_NAMES.ASK_MICROSOFT,"data-bi-ehn":b8.HEADER_NAMES.ASK_MICROSOFT,"data-bi-compnm":b8.COMPONENT_NAMES.AI_ASSISTANT,"data-bi-ct":b8.CONTENT_TYPES.CANNED_PROMPT_BUTTON,"data-bi-view":b8.VIEW.AI_CHAT_DRAWER,"data-bi-an":b8.AREA_NAMES.AI_CHAT_DRAWER,"data-bi-bhvr":b8.BEHAVIORS.CONTENT_INTERACTION,"data-bi-id":b8.IDS.SHOW_AI_CHAT,children:e},n))})}),p.jsxs("div",{ref:k,className:"uca-assistant-drawer-button"+(i?" uca-assistant-drawer-button--at-page-bottom":""),style:{bottom:`${s}px`},onClick:()=>C(b8.ACTION_TYPES.CLICK),onMouseEnter:()=>{y&&(E(),h(!0))},onMouseLeave:()=>{T()},onBlur:e=>{const t=e.relatedTarget;c.current&&t&&c.current.contains(t)||T()},onKeyUp:e=>{"Escape"!==e.key?"Enter"!==e.key?"ArrowDown"===e.key&&y&&(e.preventDefault(),E(),h(!0)):C(b8.ACTION_TYPES.KEYBOARD):_()},role:"button",tabIndex:0,"aria-label":"Open Ask Microsoft web assistant","aria-haspopup":y?"dialog":void 0,"aria-expanded":t,"aria-controls":"unified-chat-assistant",children:[p.jsx("div",{className:"uca-drawer-ai-icon-container","aria-hidden":"true",children:p.jsx("div",{className:"uca-drawer-ai-icon","aria-hidden":"true",children:o===j.Night?p.jsx(zwe,{}):p.jsx(Mwe,{})})}),p.jsx("div",{className:"uca-chat-button__text",children:p.jsx("span",{className:"h5","aria-live":"off",children:"Ask Microsoft​"})}),!y&&p.jsx("a",{className:"uca-chat-button__icon","data-mount":"uca-chat-button","aria-label":"Chat dialog Collapsed. Click to expand Ask Microsoft chat dialog.","aria-controls":"unified-chat-assistant","aria-expanded":t,role:"button",children:p.jsx("div",{className:"uca-add-icon","aria-hidden":"true",children:p.jsx("span",{className:"uca-glyph-add",children:p.jsx(Rwe,{})})})})]})]})};var txe,rxe={},nxe={exports:{}};function oxe(){return txe||(txe=1,(e=nxe).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),nxe.exports;var e}var ixe,axe={exports:{}};function sxe(){return ixe||(ixe=1,function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(axe)),axe.exports}var lxe,cxe,uxe={exports:{}},dxe={exports:{}};function fxe(){return cxe||(cxe=1,e=uxe,t=function(){return lxe||(lxe=1,(e=dxe).exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports),dxe.exports;var e}(),e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports),uxe.exports;var e,t}var hxe,pxe={exports:{}};function mxe(){return hxe||(hxe=1,(e=pxe).exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports),pxe.exports;var e}var gxe,vxe,yxe,bxe={exports:{}},wxe={exports:{}},xxe={exports:{}};function Sxe(){return vxe||(vxe=1,e=wxe,t=sxe().default,r=function(){return gxe||(gxe=1,e=xxe,t=sxe().default,e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports),xxe.exports;var e,t}(),e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports),wxe.exports;var e,t,r}function kxe(){return yxe||(yxe=1,function(e){var t=Sxe();function r(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,t(o.key),o)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports}(bxe)),bxe.exports}var Exe,Txe={exports:{}};function _xe(){return Exe||(Exe=1,e=Txe,t=Sxe(),e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports),Txe.exports;var e,t}var Cxe,Axe,Ixe={},Pxe={};function Nxe(){if(Axe)return Cxe;Axe=1;var e=function(e){return e&&e.Math===Math&&e};return Cxe=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||e("object"==typeof Cxe&&Cxe)||function(){return this}()||Function("return this")()}var Bxe,Oxe,Dxe,Rxe,Mxe,zxe,jxe,Lxe,Fxe={};function Vxe(){return Oxe?Bxe:(Oxe=1,Bxe=function(e){try{return!!e()}catch(t){return!0}})}function qxe(){if(Rxe)return Dxe;Rxe=1;var e=Vxe();return Dxe=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function Hxe(){if(zxe)return Mxe;zxe=1;var e=Vxe();return Mxe=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function Uxe(){if(Lxe)return jxe;Lxe=1;var e=Hxe(),t=Function.prototype.call;return jxe=e?t.bind(t):function(){return t.apply(t,arguments)},jxe}var Wxe,$xe,Gxe,Yxe,Kxe,Xxe,Jxe,Qxe,Zxe,eSe,tSe,rSe,nSe,oSe,iSe,aSe,sSe,lSe,cSe,uSe,dSe,fSe,hSe,pSe,mSe,gSe,vSe,ySe,bSe,wSe,xSe,SSe,kSe,ESe,TSe,_Se,CSe,ASe,ISe,PSe,NSe,BSe={};function OSe(){return Gxe?$xe:(Gxe=1,$xe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function DSe(){if(Kxe)return Yxe;Kxe=1;var e=Hxe(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return Yxe=e?n:function(e){return function(){return r.apply(e,arguments)}},Yxe}function RSe(){if(Jxe)return Xxe;Jxe=1;var e=DSe(),t=e({}.toString),r=e("".slice);return Xxe=function(e){return r(t(e),8,-1)}}function MSe(){return tSe?eSe:(tSe=1,eSe=function(e){return null==e})}function zSe(){if(nSe)return rSe;nSe=1;var e=MSe(),t=TypeError;return rSe=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function jSe(){if(iSe)return oSe;iSe=1;var e=function(){if(Zxe)return Qxe;Zxe=1;var e=DSe(),t=Vxe(),r=RSe(),n=Object,o=e("".split);return Qxe=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?o(e,""):n(e)}:n}(),t=zSe();return oSe=function(r){return e(t(r))}}function LSe(){if(sSe)return aSe;sSe=1;var e="object"==typeof document&&document.all;return aSe=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function FSe(){if(cSe)return lSe;cSe=1;var e=LSe();return lSe=function(t){return"object"==typeof t?null!==t:e(t)}}function VSe(){if(dSe)return uSe;dSe=1;var e=Nxe(),t=LSe();return uSe=function(r,n){return arguments.length<2?(o=e[r],t(o)?o:void 0):e[r]&&e[r][n];var o},uSe}function qSe(){if(hSe)return fSe;hSe=1;var e=DSe();return fSe=e({}.isPrototypeOf)}function HSe(){if(mSe)return pSe;mSe=1;var e=Nxe().navigator,t=e&&e.userAgent;return pSe=t?String(t):""}function USe(){if(vSe)return gSe;vSe=1;var e,t,r=Nxe(),n=HSe(),o=r.process,i=r.Deno,a=o&&o.versions||i&&i.version,s=a&&a.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&n&&(!(e=n.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=n.match(/Chrome\/(\d+)/))&&(t=+e[1]),gSe=t}function WSe(){if(bSe)return ySe;bSe=1;var e=USe(),t=Vxe(),r=Nxe().String;return ySe=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function $Se(){if(xSe)return wSe;xSe=1;var e=WSe();return wSe=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function GSe(){if(kSe)return SSe;kSe=1;var e=VSe(),t=LSe(),r=qSe(),n=$Se(),o=Object;return SSe=n?function(e){return"symbol"==typeof e}:function(n){var i=e("Symbol");return t(i)&&r(i.prototype,o(n))}}function YSe(){if(TSe)return ESe;TSe=1;var e=String;return ESe=function(t){try{return e(t)}catch(r){return"Object"}}}function KSe(){if(CSe)return _Se;CSe=1;var e=LSe(),t=YSe(),r=TypeError;return _Se=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function XSe(){if(ISe)return ASe;ISe=1;var e=KSe(),t=MSe();return ASe=function(r,n){var o=r[n];return t(o)?void 0:e(o)}}var JSe,QSe,ZSe,eke,tke,rke,nke,oke,ike,ake,ske,lke,cke,uke,dke,fke,hke,pke,mke,gke,vke,yke,bke,wke,xke={exports:{}};function Ske(){return QSe?JSe:(QSe=1,JSe=!1)}function kke(){if(eke)return ZSe;eke=1;var e=Nxe(),t=Object.defineProperty;return ZSe=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(o){e[r]=n}return n}}function Eke(){if(tke)return xke.exports;tke=1;var e=Ske(),t=Nxe(),r=kke(),n="__core-js_shared__",o=xke.exports=t[n]||r(n,{});return(o.versions||(o.versions=[])).push({version:"3.49.0",mode:e?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),xke.exports}function Tke(){if(nke)return rke;nke=1;var e=Eke();return rke=function(t,r){return e[t]||(e[t]=r||{})}}function _ke(){if(ike)return oke;ike=1;var e=zSe(),t=Object;return oke=function(r){return t(e(r))}}function Cke(){if(ske)return ake;ske=1;var e=DSe(),t=_ke(),r=e({}.hasOwnProperty);return ake=Object.hasOwn||function(e,n){return r(t(e),n)}}function Ake(){if(cke)return lke;cke=1;var e=DSe(),t=0,r=Math.random(),n=e(1.1.toString);return lke=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function Ike(){if(dke)return uke;dke=1;var e=Nxe(),t=Tke(),r=Cke(),n=Ake(),o=WSe(),i=$Se(),a=e.Symbol,s=t("wks"),l=i?a.for||a:a&&a.withoutSetter||n;return uke=function(e){return r(s,e)||(s[e]=o&&r(a,e)?a[e]:l("Symbol."+e)),s[e]}}function Pke(){if(hke)return fke;hke=1;var e=Uxe(),t=FSe(),r=GSe(),n=XSe(),o=function(){if(NSe)return PSe;NSe=1;var e=Uxe(),t=LSe(),r=FSe(),n=TypeError;return PSe=function(o,i){var a,s;if("string"===i&&t(a=o.toString)&&!r(s=e(a,o)))return s;if(t(a=o.valueOf)&&!r(s=e(a,o)))return s;if("string"!==i&&t(a=o.toString)&&!r(s=e(a,o)))return s;throw new n("Can't convert object to primitive value")},PSe}(),i=Ike(),a=TypeError,s=i("toPrimitive");return fke=function(i,l){if(!t(i)||r(i))return i;var c,u=n(i,s);if(u){if(void 0===l&&(l="default"),c=e(u,i,l),!t(c)||r(c))return c;throw new a("Can't convert object to primitive value")}return void 0===l&&(l="number"),o(i,l)}}function Nke(){if(mke)return pke;mke=1;var e=Pke(),t=GSe();return pke=function(r){var n=e(r,"string");return t(n)?n:n+""}}function Bke(){if(vke)return gke;vke=1;var e=Nxe(),t=FSe(),r=e.document,n=t(r)&&t(r.createElement);return gke=function(e){return n?r.createElement(e):{}}}function Oke(){if(bke)return yke;bke=1;var e=qxe(),t=Vxe(),r=Bke();return yke=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function Dke(){if(wke)return Fxe;wke=1;var e=qxe(),t=Uxe(),r=function(){if(Wxe)return BSe;Wxe=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return BSe.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,BSe}(),n=OSe(),o=jSe(),i=Nke(),a=Cke(),s=Oke(),l=Object.getOwnPropertyDescriptor;return Fxe.f=e?l:function(e,c){if(e=o(e),c=i(c),s)try{return l(e,c)}catch(u){}if(a(e,c))return n(!t(r.f,e,c),e[c])},Fxe}var Rke,Mke,zke,jke,Lke,Fke,Vke,qke={};function Hke(){if(Mke)return Rke;Mke=1;var e=qxe(),t=Vxe();return Rke=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Uke(){if(jke)return zke;jke=1;var e=FSe(),t=String,r=TypeError;return zke=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function Wke(){if(Lke)return qke;Lke=1;var e=qxe(),t=Oke(),r=Hke(),n=Uke(),o=Nke(),i=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l="enumerable",c="configurable",u="writable";return qke.f=e?r?function(e,t,r){if(n(e),t=o(t),n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&u in r&&!r[u]){var i=s(e,t);i&&i[u]&&(e[t]=r.value,r={configurable:c in r?r[c]:i[c],enumerable:l in r?r[l]:i[l],writable:!1})}return a(e,t,r)}:a:function(e,r,s){if(n(e),r=o(r),n(s),t)try{return a(e,r,s)}catch(l){}if("get"in s||"set"in s)throw new i("Accessors not supported");return"value"in s&&(e[r]=s.value),e},qke}function $ke(){if(Vke)return Fke;Vke=1;var e=qxe(),t=Wke(),r=OSe();return Fke=e?function(e,n,o){return t.f(e,n,r(1,o))}:function(e,t,r){return e[t]=r,e}}var Gke,Yke,Kke,Xke,Jke,Qke,Zke,eEe,tEe,rEe,nEe,oEe,iEe,aEe,sEe,lEe={exports:{}};function cEe(){if(Yke)return Gke;Yke=1;var e=qxe(),t=Cke(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,o=t(r,"name"),i=o&&"something"===function(){}.name,a=o&&(!e||e&&n(r,"name").configurable);return Gke={EXISTS:o,PROPER:i,CONFIGURABLE:a}}function uEe(){if(Xke)return Kke;Xke=1;var e=DSe(),t=LSe(),r=Eke(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),Kke=r.inspectSource}function dEe(){if(eEe)return Zke;eEe=1;var e=Tke(),t=Ake(),r=e("keys");return Zke=function(e){return r[e]||(r[e]=t(e))}}function fEe(){return rEe?tEe:(rEe=1,tEe={})}function hEe(){if(oEe)return nEe;oEe=1;var e,t,r,n=function(){if(Qke)return Jke;Qke=1;var e=Nxe(),t=LSe(),r=e.WeakMap;return Jke=t(r)&&/native code/.test(String(r))}(),o=Nxe(),i=FSe(),a=$ke(),s=Cke(),l=Eke(),c=dEe(),u=fEe(),d="Object already initialized",f=o.TypeError,h=o.WeakMap;if(n||l.state){var p=l.state||(l.state=new h);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new f(d);return t.facade=e,p.set(e,t),t},t=function(e){return p.get(e)||{}},r=function(e){return p.has(e)}}else{var m=c("state");u[m]=!0,e=function(e,t){if(s(e,m))throw new f(d);return t.facade=e,a(e,m,t),t},t=function(e){return s(e,m)?e[m]:{}},r=function(e){return s(e,m)}}return nEe={set:e,get:t,has:r,enforce:function(n){return r(n)?t(n):e(n,{})},getterFor:function(e){return function(r){var n;if(!i(r)||(n=t(r)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}}function pEe(){if(iEe)return lEe.exports;iEe=1;var e=DSe(),t=Vxe(),r=LSe(),n=Cke(),o=qxe(),i=cEe().CONFIGURABLE,a=uEe(),s=hEe(),l=s.enforce,c=s.get,u=String,d=Object.defineProperty,f=e("".slice),h=e("".replace),p=e([].join),m=o&&!t(function(){return 8!==d(function(){},"length",{value:8}).length}),g=String(String).split("String"),v=lEe.exports=function(e,t,r){"Symbol("===f(u(t),0,7)&&(t="["+h(u(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!n(e,"name")||i&&e.name!==t)&&(o?d(e,"name",{value:t,configurable:!0}):e.name=t),m&&r&&n(r,"arity")&&e.length!==r.arity&&d(e,"length",{value:r.arity});try{r&&n(r,"constructor")&&r.constructor?o&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(s){}var a=l(e);return n(a,"source")||(a.source=p(g,"string"==typeof t?t:"")),e};return Function.prototype.toString=v(function(){return r(this)&&c(this).source||a(this)},"toString"),lEe.exports}function mEe(){if(sEe)return aEe;sEe=1;var e=LSe(),t=Wke(),r=pEe(),n=kke();return aEe=function(o,i,a,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:i;if(e(a)&&r(a,c,s),s.global)l?o[i]=a:n(i,a);else{try{s.unsafe?o[i]&&(l=!0):delete o[i]}catch(u){}l?o[i]=a:t.f(o,i,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return o}}var gEe,vEe,yEe,bEe,wEe,xEe,SEe,kEe,EEe,TEe,_Ee,CEe,AEe,IEe,PEe,NEe,BEe,OEe={};function DEe(){if(bEe)return yEe;bEe=1;var e=function(){if(vEe)return gEe;vEe=1;var e=Math.ceil,t=Math.floor;return gEe=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)}}();return yEe=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function REe(){if(TEe)return EEe;TEe=1;var e=function(){if(kEe)return SEe;kEe=1;var e=DEe(),t=Math.min;return SEe=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}();return EEe=function(t){return e(t.length)}}function MEe(){if(CEe)return _Ee;CEe=1;var e=jSe(),t=function(){if(xEe)return wEe;xEe=1;var e=DEe(),t=Math.max,r=Math.min;return wEe=function(n,o){var i=e(n);return i<0?t(i+o,0):r(i,o)}}(),r=REe(),n=function(n){return function(o,i,a){var s=e(o),l=r(s);if(0===l)return!n&&-1;var c,u=t(a,l);if(n&&i!=i){for(;l>u;)if((c=s[u++])!=c)return!0}else for(;l>u;u++)if((n||u in s)&&s[u]===i)return n||u||0;return!n&&-1}};return _Ee={includes:n(!0),indexOf:n(!1)}}function zEe(){if(IEe)return AEe;IEe=1;var e=DSe(),t=Cke(),r=jSe(),n=MEe().indexOf,o=fEe(),i=e([].push);return AEe=function(e,a){var s,l=r(e),c=0,u=[];for(s in l)!t(o,s)&&t(l,s)&&i(u,s);for(;a.length>c;)t(l,s=a[c++])&&(~n(u,s)||i(u,s));return u}}function jEe(){return NEe?PEe:(NEe=1,PEe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var LEe,FEe,VEe,qEe,HEe,UEe,WEe,$Ee,GEe,YEe,KEe,XEe,JEe,QEe,ZEe,eTe,tTe,rTe,nTe,oTe,iTe,aTe={};function sTe(){if(VEe)return FEe;VEe=1;var e=VSe(),t=DSe(),r=function(){if(BEe)return OEe;BEe=1;var e=zEe(),t=jEe().concat("length","prototype");return OEe.f=Object.getOwnPropertyNames||function(r){return e(r,t)},OEe}(),n=(LEe||(LEe=1,aTe.f=Object.getOwnPropertySymbols),aTe),o=Uke(),i=t([].concat);return FEe=e("Reflect","ownKeys")||function(e){var t=r.f(o(e)),a=n.f;return a?i(t,a(e)):t}}function lTe(){if(HEe)return qEe;HEe=1;var e=Cke(),t=sTe(),r=Dke(),n=Wke();return qEe=function(o,i,a){for(var s=t(i),l=n.f,c=r.f,u=0;u<s.length;u++){var d=s[u];e(o,d)||a&&e(a,d)||l(o,d,c(i,d))}}}function cTe(){if(WEe)return UEe;WEe=1;var e=Vxe(),t=LSe(),r=/#|\.prototype\./,n=function(r,n){var l=i[o(r)];return l===s||l!==a&&(t(n)?e(n):!!n)},o=n.normalize=function(e){return String(e).replace(r,".").toLowerCase()},i=n.data={},a=n.NATIVE="N",s=n.POLYFILL="P";return UEe=n}function uTe(){if(GEe)return $Ee;GEe=1;var e=Nxe(),t=Dke().f,r=$ke(),n=mEe(),o=kke(),i=lTe(),a=cTe();return $Ee=function(s,l){var c,u,d,f,h,p=s.target,m=s.global,g=s.stat;if(c=m?e:g?e[p]||o(p,{}):e[p]&&e[p].prototype)for(u in l){if(f=l[u],d=s.dontCallGetSet?(h=t(c,u))&&h.value:c[u],!a(m?u:p+(g?".":"#")+u,s.forced)&&void 0!==d){if(typeof f==typeof d)continue;i(f,d)}(s.sham||d&&d.sham)&&r(f,"sham",!0),n(c,u,f,s)}}}function dTe(){if(JEe)return XEe;JEe=1;var e=Cke(),t=LSe(),r=_ke(),n=dEe(),o=function(){if(KEe)return YEe;KEe=1;var e=Vxe();return YEe=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}(),i=n("IE_PROTO"),a=Object,s=a.prototype;return XEe=o?a.getPrototypeOf:function(n){var o=r(n);if(e(o,i))return o[i];var l=o.constructor;return t(l)&&o instanceof l?l.prototype:o instanceof a?s:null}}function fTe(){if(nTe)return rTe;nTe=1;var e=function(){if(tTe)return eTe;tTe=1;var e=FSe();return eTe=function(t){return e(t)||null===t}}(),t=String,r=TypeError;return rTe=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}function hTe(){if(iTe)return oTe;iTe=1;var e=function(){if(ZEe)return QEe;ZEe=1;var e=DSe(),t=KSe();return QEe=function(r,n,o){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[o]))}catch(i){}}}(),t=FSe(),r=zSe(),n=fTe();return oTe=Object.setPrototypeOf||("__proto__"in{}?function(){var o,i=!1,a={};try{(o=e(Object.prototype,"__proto__","set"))(a,[]),i=a instanceof Array}catch(s){}return function(e,a){return r(e),n(a),t(e)?(i?o(e,a):e.__proto__=a,e):e}}():void 0)}var pTe,mTe,gTe,vTe,yTe,bTe,wTe,xTe,STe,kTe,ETe,TTe,_Te,CTe,ATe,ITe,PTe,NTe,BTe,OTe,DTe,RTe,MTe,zTe,jTe,LTe,FTe,VTe,qTe,HTe,UTe,WTe,$Te,GTe,YTe,KTe,XTe,JTe,QTe,ZTe,e_e,t_e,r_e,n_e,o_e,i_e,a_e,s_e,l_e,c_e,u_e,d_e,f_e,h_e,p_e,m_e={};function g_e(){if(gTe)return m_e;gTe=1;var e=qxe(),t=Hke(),r=Wke(),n=Uke(),o=jSe(),i=function(){if(mTe)return pTe;mTe=1;var e=zEe(),t=jEe();return pTe=Object.keys||function(r){return e(r,t)}}();return m_e.f=e&&!t?Object.defineProperties:function(e,t){n(e);for(var a,s=o(t),l=i(t),c=l.length,u=0;c>u;)r.f(e,a=l[u++],s[a]);return e},m_e}function v_e(){if(yTe)return vTe;yTe=1;var e=VSe();return vTe=e("document","documentElement")}function y_e(){if(wTe)return bTe;wTe=1;var e,t=Uke(),r=g_e(),n=jEe(),o=fEe(),i=v_e(),a=Bke(),s=dEe(),l="prototype",c="script",u=s("IE_PROTO"),d=function(){},f=function(e){return"<"+c+">"+e+"</"+c+">"},h=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{e=new ActiveXObject("htmlfile")}catch(u){}var t,r,o;p="undefined"!=typeof document?document.domain&&e?h(e):(r=a("iframe"),o="java"+c+":",r.style.display="none",i.appendChild(r),r.src=String(o),(t=r.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):h(e);for(var s=n.length;s--;)delete p[l][n[s]];return p()};return o[u]=!0,bTe=Object.create||function(e,n){var o;return null!==e?(d[l]=t(e),o=new d,d[l]=null,o[u]=e):o=p(),void 0===n?o:r.f(o,n)}}function b_e(){if(ATe)return CTe;ATe=1;var e=$ke(),t=function(){if(ETe)return kTe;ETe=1;var e=DSe(),t=Error,r=e("".replace),n=String(new t("zxcasd").stack),o=/\n\s*at [^:]*:[^\n]*/,i=o.test(n);return kTe=function(e,n){if(i&&"string"==typeof e&&!t.prepareStackTrace)for(;n--;)e=r(e,o,"");return e}}(),r=function(){if(_Te)return TTe;_Te=1;var e=Vxe(),t=OSe();return TTe=!e(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",t(1,7)),7!==e.stack)})}(),n=Error.captureStackTrace;return CTe=function(o,i,a,s){r&&(n?n(o,i):e(o,"stack",t(a,s)))}}function w_e(){if(BTe)return NTe;BTe=1;var e=function(){if(PTe)return ITe;PTe=1;var e=RSe(),t=DSe();return ITe=function(r){if("Function"===e(r))return t(r)},ITe}(),t=KSe(),r=Hxe(),n=e(e.bind);return NTe=function(e,o){return t(e),void 0===o?e:r?n(e,o):function(){return e.apply(o,arguments)}},NTe}function x_e(){return DTe?OTe:(DTe=1,OTe={})}function S_e(){if(jTe)return zTe;jTe=1;var e={};return e[Ike()("toStringTag")]="z",zTe="[object z]"===String(e)}function k_e(){if(FTe)return LTe;FTe=1;var e=S_e(),t=LSe(),r=RSe(),n=Ike()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return LTe=e?r:function(e){var a,s,l;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(r){}}(a=o(e),n))?s:i?r(a):"Object"===(l=r(a))&&t(a.callee)?"Arguments":l}}function E_e(){if(qTe)return VTe;qTe=1;var e=k_e(),t=XSe(),r=MSe(),n=x_e(),o=Ike()("iterator");return VTe=function(i){if(!r(i))return t(i,o)||t(i,"@@iterator")||n[e(i)]}}function T_e(){if(YTe)return GTe;YTe=1;var e=w_e(),t=Uxe(),r=Uke(),n=YSe(),o=function(){if(MTe)return RTe;MTe=1;var e=Ike(),t=x_e(),r=e("iterator"),n=Array.prototype;return RTe=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}(),i=REe(),a=qSe(),s=function(){if(UTe)return HTe;UTe=1;var e=Uxe(),t=KSe(),r=Uke(),n=YSe(),o=E_e(),i=TypeError;return HTe=function(a,s){var l=arguments.length<2?o(a):s;if(t(l))return r(e(l,a));throw new i(n(a)+" is not iterable")},HTe}(),l=E_e(),c=function(){if($Te)return WTe;$Te=1;var e=Uxe(),t=Uke(),r=XSe();return WTe=function(n,o,i){var a,s;t(n);try{if(!(a=r(n,"return"))){if("throw"===o)throw i;return i}a=e(a,n)}catch(l){s=!0,a=l}if("throw"===o)throw i;if(s)throw a;return t(a),i}}(),u=TypeError,d=function(e,t){this.stopped=e,this.result=t},f=d.prototype;return GTe=function(h,p,m){var g,v,y,b,w,x,S,k=m&&m.that,E=!(!m||!m.AS_ENTRIES),T=!(!m||!m.IS_RECORD),_=!(!m||!m.IS_ITERATOR),C=!(!m||!m.INTERRUPTED),A=e(p,k),I=function(e){var t=g;return g=void 0,t&&c(t,"normal"),new d(!0,e)},P=function(e){return E?(r(e),C?A(e[0],e[1],I):A(e[0],e[1])):C?A(e,I):A(e)};if(T)g=h.iterator;else if(_)g=h;else{if(!(v=l(h)))throw new u(n(h)+" is not iterable");if(o(v)){for(y=0,b=i(h);b>y;y++)if((w=P(h[y]))&&a(f,w))return w;return new d(!1)}g=s(h,v)}for(x=T?h.next:g.next;!(S=t(x,g)).done;){var N=S.value;try{w=P(N)}catch(B){if(!g)throw B;c(g,"throw",B)}if("object"==typeof w&&w&&a(f,w))return w}return new d(!1)},GTe}function __e(){if(XTe)return KTe;XTe=1;var e=k_e(),t=String;return KTe=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function C_e(){if(ZTe)return Pxe;ZTe=1;var e=uTe(),t=qSe(),r=dTe(),n=hTe(),o=lTe(),i=y_e(),a=$ke(),s=OSe(),l=function(){if(STe)return xTe;STe=1;var e=FSe(),t=$ke();return xTe=function(r,n){e(n)&&"cause"in n&&t(r,"cause",n.cause)}}(),c=b_e(),u=T_e(),d=function(){if(QTe)return JTe;QTe=1;var e=__e();return JTe=function(t,r){return void 0===t?arguments.length<2?"":r:e(t)},JTe}(),f=Ike()("toStringTag"),h=Error,p=[].push,m=function(e,o){var s,v=t(g,this);n?s=n(new h,v?r(this):g):(s=v?this:i(g),a(s,f,"Error")),void 0!==o&&a(s,"message",d(o)),c(s,m,s.stack,1),arguments.length>2&&l(s,arguments[2]);var y=[];return u(e,p,{that:y}),a(s,"errors",y),s};n?n(m,h):o(m,h,{name:!0});var g=m.prototype=i(h.prototype,{constructor:s(1,m),message:s(1,""),name:s(1,"AggregateError")});return e({global:!0,constructor:!0,arity:2},{AggregateError:m}),Pxe}function A_e(){return e_e||(e_e=1,C_e()),Ixe}function I_e(){if(o_e)return n_e;o_e=1;var e,t,r,n=Vxe(),o=LSe(),i=FSe(),a=y_e(),s=dTe(),l=mEe(),c=Ike(),u=Ske(),d=c("iterator"),f=!1;return[].keys&&("next"in(r=[].keys())?(t=s(s(r)))!==Object.prototype&&(e=t):f=!0),!i(e)||n(function(){var t={};return e[d].call(t)!==t})?e={}:u&&(e=a(e)),o(e[d])||l(e,d,function(){return this}),n_e={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:f}}function P_e(){if(a_e)return i_e;a_e=1;var e=Wke().f,t=Cke(),r=Ike()("toStringTag");return i_e=function(n,o,i){n&&!i&&(n=n.prototype),n&&!t(n,r)&&e(n,r,{configurable:!0,value:o})}}function N_e(){if(u_e)return c_e;u_e=1;var e=uTe(),t=Uxe(),r=Ske(),n=cEe(),o=LSe(),i=function(){if(l_e)return s_e;l_e=1;var e=I_e().IteratorPrototype,t=y_e(),r=OSe(),n=P_e(),o=x_e(),i=function(){return this};return s_e=function(a,s,l,c){var u=s+" Iterator";return a.prototype=t(e,{next:r(+!c,l)}),n(a,u,!1,!0),o[u]=i,a}}(),a=dTe(),s=hTe(),l=P_e(),c=$ke(),u=mEe(),d=Ike(),f=x_e(),h=I_e(),p=n.PROPER,m=n.CONFIGURABLE,g=h.IteratorPrototype,v=h.BUGGY_SAFARI_ITERATORS,y=d("iterator"),b="keys",w="values",x="entries",S=function(){return this};return c_e=function(n,d,h,k,E,T,_){i(h,d,k);var C,A,I,P=function(e){if(e===E&&R)return R;if(!v&&e&&e in O)return O[e];switch(e){case b:case w:case x:return function(){return new h(this,e)}}return function(){return new h(this)}},N=d+" Iterator",B=!1,O=n.prototype,D=O[y]||O["@@iterator"]||E&&O[E],R=!v&&D||P(E),M="Array"===d&&O.entries||D;if(M&&(C=a(M.call(new n)))!==Object.prototype&&C.next&&(r||a(C)===g||(s?s(C,g):o(C[y])||u(C,y,S)),l(C,N,!0,!0),r&&(f[N]=S)),p&&E===w&&D&&D.name!==w&&(!r&&m?c(O,"name",w):(B=!0,R=function(){return t(D,this)})),E)if(A={values:P(w),keys:T?R:P(b),entries:P(x)},_)for(I in A)(v||B||!(I in O))&&u(O,I,A[I]);else e({target:d,proto:!0,forced:v||B},A);return r&&!_||O[y]===R||u(O,y,R,{name:E}),f[d]=R,A}}function B_e(){return f_e?d_e:(f_e=1,d_e=function(e,t){return{value:e,done:t}})}function O_e(){if(p_e)return h_e;p_e=1;var e=jSe(),t=function(){if(r_e)return t_e;r_e=1;var e=Ike(),t=y_e(),r=Wke().f,n=e("unscopables"),o=Array.prototype;return void 0===o[n]&&r(o,n,{configurable:!0,value:t(null)}),t_e=function(e){o[n][e]=!0}}(),r=x_e(),n=hEe(),o=Wke().f,i=N_e(),a=B_e(),s=Ske(),l=qxe(),c="Array Iterator",u=n.set,d=n.getterFor(c);h_e=i(Array,"Array",function(t,r){u(this,{type:c,target:e(t),index:0,kind:r})},function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,a(void 0,!0);switch(e.kind){case"keys":return a(r,!1);case"values":return a(t[r],!1)}return a([r,t[r]],!1)},"values");var f=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!s&&l&&"values"!==f.name)try{o(f,"name",{value:"values"})}catch(h){}return h_e}var D_e,R_e,M_e,z_e={};function j_e(){if(M_e)return z_e;M_e=1;var e=S_e(),t=mEe(),r=function(){if(R_e)return D_e;R_e=1;var e=S_e(),t=k_e();return D_e=e?{}.toString:function(){return"[object "+t(this)+"]"}}();return e||t(Object.prototype,"toString",r,{unsafe:!0}),z_e}var L_e,F_e,V_e,q_e,H_e,U_e,W_e,$_e,G_e,Y_e,K_e,X_e,J_e,Q_e,Z_e,eCe,tCe,rCe,nCe,oCe,iCe,aCe,sCe,lCe,cCe,uCe,dCe,fCe,hCe,pCe,mCe,gCe,vCe,yCe,bCe,wCe,xCe,SCe,kCe,ECe,TCe,_Ce,CCe,ACe,ICe,PCe,NCe={},BCe={};function OCe(){if(F_e)return L_e;F_e=1;var e=Nxe(),t=HSe(),r=RSe(),n=function(e){return t.slice(0,e.length)===e};return L_e=n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":e.Bun&&"string"==typeof Bun.version?"BUN":e.Deno&&"object"==typeof Deno.version?"DENO":"process"===r(e.process)?"NODE":e.window&&e.document?"BROWSER":"REST"}function DCe(){if(q_e)return V_e;q_e=1;var e=OCe();return V_e="NODE"===e}function RCe(){if(U_e)return H_e;U_e=1;var e=Nxe();return H_e=e}function MCe(){if(Y_e)return G_e;Y_e=1;var e=VSe(),t=function(){if($_e)return W_e;$_e=1;var e=pEe(),t=Wke();return W_e=function(r,n,o){return o.get&&e(o.get,n,{getter:!0}),o.set&&e(o.set,n,{setter:!0}),t.f(r,n,o)}}(),r=Ike(),n=qxe(),o=r("species");return G_e=function(r){var i=e(r);n&&i&&!i[o]&&t(i,o,{configurable:!0,get:function(){return this}})}}function zCe(){if(eCe)return Z_e;eCe=1;var e=function(){if(Q_e)return J_e;Q_e=1;var e=DSe(),t=Vxe(),r=LSe(),n=k_e(),o=VSe(),i=uEe(),a=function(){},s=o("Reflect","construct"),l=/^\s*(?:class|function)\b/,c=e(l.exec),u=!l.test(a),d=function(e){if(!r(e))return!1;try{return s(a,[],e),!0}catch(t){return!1}},f=function(e){if(!r(e))return!1;switch(n(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return u||!!c(l,i(e))}catch(t){return!0}};return f.sham=!0,J_e=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?f:d}(),t=YSe(),r=TypeError;return Z_e=function(n){if(e(n))return n;throw new r(t(n)+" is not a constructor")}}function jCe(){if(rCe)return tCe;rCe=1;var e=Uke(),t=zCe(),r=MSe(),n=Ike()("species");return tCe=function(o,i){var a,s=e(o).constructor;return void 0===s||r(a=e(s)[n])?i:t(a)}}function LCe(){if(oCe)return nCe;oCe=1;var e=Hxe(),t=Function.prototype,r=t.apply,n=t.call;return nCe="object"==typeof Reflect&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),nCe}function FCe(){if(aCe)return iCe;aCe=1;var e=DSe();return iCe=e([].slice)}function VCe(){if(uCe)return cCe;uCe=1;var e=HSe();return cCe=/ipad|iphone|ipod/i.test(e)&&/applewebkit/i.test(e)}function qCe(){if(fCe)return dCe;fCe=1;var e,t,r,n,o=Nxe(),i=LCe(),a=w_e(),s=LSe(),l=Cke(),c=Vxe(),u=v_e(),d=FCe(),f=Bke(),h=function(){if(lCe)return sCe;lCe=1;var e=TypeError;return sCe=function(t,r){if(t<r)throw new e("Not enough arguments");return t}}(),p=VCe(),m=DCe(),g=o.setImmediate,v=o.clearImmediate,y=o.process,b=o.Dispatch,w=o.Function,x=o.MessageChannel,S=o.String,k=0,E={},T="onreadystatechange";c(function(){e=o.location});var _=function(e){if(l(E,e)){var t=E[e];delete E[e],t()}},C=function(e){return function(){_(e)}},A=function(e){_(e.data)},I=function(t){o.postMessage(S(t),e.protocol+"//"+e.host)};return g&&v||(g=function(e){h(arguments.length,1);var r=s(e)?e:w(e),n=d(arguments,1);return E[++k]=function(){i(r,void 0,n)},t(k),k},v=function(e){delete E[e]},m?t=function(e){y.nextTick(C(e))}:b&&b.now?t=function(e){b.now(C(e))}:x&&!p?(n=(r=new x).port2,r.port1.onmessage=A,t=a(n.postMessage,n)):o.addEventListener&&s(o.postMessage)&&!o.importScripts&&e&&"file:"!==e.protocol&&!c(I)?(t=I,o.addEventListener("message",A,!1)):t=T in f("script")?function(e){u.appendChild(f("script"))[T]=function(){u.removeChild(this),_(e)}}:function(e){setTimeout(C(e),0)}),dCe={set:g,clear:v}}function HCe(){if(gCe)return mCe;gCe=1;var e=function(){this.head=null,this.tail=null};return e.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},mCe=e}function UCe(){if(SCe)return xCe;SCe=1;var e,t,r,n,o,i=Nxe(),a=function(){if(pCe)return hCe;pCe=1;var e=Nxe(),t=qxe(),r=Object.getOwnPropertyDescriptor;return hCe=function(n){if(!t)return e[n];var o=r(e,n);return o&&o.value}}(),s=w_e(),l=qCe().set,c=HCe(),u=VCe(),d=function(){if(yCe)return vCe;yCe=1;var e=HSe();return vCe=/ipad|iphone|ipod/i.test(e)&&"undefined"!=typeof Pebble}(),f=function(){if(wCe)return bCe;wCe=1;var e=HSe();return bCe=/web0s(?!.*chrome)/i.test(e)}(),h=DCe(),p=i.MutationObserver||i.WebKitMutationObserver,m=i.document,g=i.process,v=i.Promise,y=a("queueMicrotask");if(!y){var b=new c,w=function(){var t,r;for(h&&(t=g.domain)&&t.exit();r=b.get();)try{r()}catch(n){throw b.head&&e(),n}t&&t.enter()};u||h||f||!p||!m?!d&&v&&v.resolve?((n=v.resolve(void 0)).constructor=v,o=s(n.then,n),e=function(){o(w)}):h?e=function(){g.nextTick(w)}:(l=s(l,i),e=function(){l(w)}):(t=!0,r=m.createTextNode(""),new p(w).observe(r,{characterData:!0}),e=function(){r.data=t=!t}),y=function(t){b.head||e(),b.add(t)}}return xCe=y}function WCe(){return _Ce?TCe:(_Ce=1,TCe=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}})}function $Ce(){if(ACe)return CCe;ACe=1;var e=Nxe();return CCe=e.Promise}function GCe(){if(PCe)return ICe;PCe=1;var e=Nxe(),t=$Ce(),r=LSe(),n=cTe(),o=uEe(),i=Ike(),a=OCe(),s=Ske(),l=USe(),c=t&&t.prototype,u=i("species"),d=!1,f=r(e.PromiseRejectionEvent),h=n("Promise",function(){var e=o(t),r=e!==String(t);if(!r&&66===l)return!0;if(s&&(!c.catch||!c.finally))return!0;if(!l||l<51||!/native code/.test(e)){var n=new t(function(e){e(1)}),i=function(e){e(function(){},function(){})};if((n.constructor={})[u]=i,!(d=n.then(function(){})instanceof i))return!0}return!(r||"BROWSER"!==a&&"DENO"!==a||f)});return ICe={CONSTRUCTOR:h,REJECTION_EVENT:f,SUBCLASSING:d}}var YCe,KCe,XCe={};function JCe(){if(YCe)return XCe;YCe=1;var e=KSe(),t=TypeError,r=function(r){var n,o;this.promise=new r(function(e,r){if(void 0!==n||void 0!==o)throw new t("Bad Promise constructor");n=e,o=r}),this.resolve=e(n),this.reject=e(o)};return XCe.f=function(e){return new r(e)},XCe}function QCe(){if(KCe)return BCe;KCe=1;var e,t,r,n,o=uTe(),i=Ske(),a=DCe(),s=Nxe(),l=RCe(),c=Uxe(),u=mEe(),d=hTe(),f=P_e(),h=MCe(),p=KSe(),m=LSe(),g=FSe(),v=function(){if(X_e)return K_e;X_e=1;var e=qSe(),t=TypeError;return K_e=function(r,n){if(e(n,r))return r;throw new t("Incorrect invocation")}}(),y=jCe(),b=qCe().set,w=UCe(),x=(ECe||(ECe=1,kCe=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(r){}}),kCe),S=WCe(),k=HCe(),E=hEe(),T=$Ce(),_=GCe(),C=JCe(),A="Promise",I=_.CONSTRUCTOR,P=_.REJECTION_EVENT,N=_.SUBCLASSING,B=E.getterFor(A),O=E.set,D=T&&T.prototype,R=T,M=D,z=s.TypeError,j=s.document,L=s.process,F=C.f,V=F,q=!!(j&&j.createEvent&&s.dispatchEvent),H="unhandledrejection",U=function(e){var t;return!(!g(e)||!m(t=e.then))&&t},W=function(e,t){var r,n,o,i=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,d=e.domain;try{s?(a||(2===t.rejection&&X(t),t.rejection=1),!0===s?r=i:(d&&d.enter(),r=s(i),d&&(d.exit(),o=!0)),r===e.promise?u(new z("Promise-chain cycle")):(n=U(r))?c(n,r,l,u):l(r)):u(i)}catch(f){d&&!o&&d.exit(),u(f)}},$=function(e,t){e.notified||(e.notified=!0,w(function(){for(var r,n=e.reactions;r=n.get();)W(r,e);e.notified=!1,t&&!e.rejection&&Y(e)}))},G=function(e,t,r){var n,o;q?((n=j.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),s.dispatchEvent(n)):n={promise:t,reason:r},!P&&(o=s["on"+e])?o(n):e===H&&x("Unhandled promise rejection",r)},Y=function(e){c(b,s,function(){var t,r=e.facade,n=e.value;if(K(e)&&(t=S(function(){a?L.emit("unhandledRejection",n,r):G(H,r,n)}),e.rejection=a||K(e)?2:1,t.error))throw t.value})},K=function(e){return 1!==e.rejection&&!e.parent},X=function(e){c(b,s,function(){var t=e.facade;a?L.emit("rejectionHandled",t):G("rejectionhandled",t,e.value)})},J=function(e,t,r){return function(n){e(t,n,r)}},Q=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,$(e,!0))},Z=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new z("Promise can't be resolved itself");var n=U(t);n?w(function(){var r={done:!1};try{c(n,t,J(Z,r,e),J(Q,r,e))}catch(o){Q(r,o,e)}}):(e.value=t,e.state=1,$(e,!1))}catch(o){Q({done:!1},o,e)}}};if(I&&(M=(R=function(t){v(this,M),p(t),c(e,this);var r=B(this);try{t(J(Z,r),J(Q,r))}catch(n){Q(r,n)}}).prototype,(e=function(e){O(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:null})}).prototype=u(M,"then",function(e,t){var r=B(this),n=F(y(this,R));return r.parent=!0,n.ok=!m(e)||e,n.fail=m(t)&&t,n.domain=a?L.domain:void 0,0===r.state?r.reactions.add(n):w(function(){W(n,r)}),n.promise}),t=function(){var t=new e,r=B(t);this.promise=t,this.resolve=J(Z,r),this.reject=J(Q,r)},C.f=F=function(e){return e===R||e===r?new t(e):V(e)},!i&&m(T)&&D!==Object.prototype)){n=D.then,N||u(D,"then",function(e,t){var r=this;return new R(function(e,t){c(n,r,e,t)}).then(e,t)},{unsafe:!0});try{delete D.constructor}catch(ee){}d&&d(D,M)}return o({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:R}),r=l.Promise,f(R,A,!1,!0),h(A),BCe}var ZCe,eAe,tAe,rAe,nAe,oAe={};function iAe(){if(rAe)return tAe;rAe=1;var e=$Ce(),t=function(){if(eAe)return ZCe;eAe=1;var e=Ike()("iterator"),t=!1;try{var r=0,n={next:function(){return{done:!!r++}},return:function(){t=!0}};n[e]=function(){return this},Array.from(n,function(){throw 2})}catch(o){}return ZCe=function(r,n){try{if(!n&&!t)return!1}catch(o){return!1}var i=!1;try{var a={};a[e]=function(){return{next:function(){return{done:i=!0}}}},r(a)}catch(o){}return i}}(),r=GCe().CONSTRUCTOR;return tAe=r||!t(function(t){e.all(t).then(void 0,function(){})})}var aAe,sAe={};var lAe,cAe={};var uAe,dAe={};var fAe,hAe,pAe,mAe,gAe={};function vAe(){if(hAe)return fAe;hAe=1;var e=Uke(),t=FSe(),r=JCe();return fAe=function(n,o){if(e(n),t(o)&&o.constructor===n)return o;var i=r.f(n);return(0,i.resolve)(o),i.promise}}function yAe(){return mAe||(mAe=1,QCe(),function(){if(nAe)return oAe;nAe=1;var e=uTe(),t=Uxe(),r=KSe(),n=JCe(),o=WCe(),i=T_e();e({target:"Promise",stat:!0,forced:iAe()},{all:function(e){var a=this,s=n.f(a),l=s.resolve,c=s.reject,u=o(function(){var n=r(a.resolve),o=[],s=0,u=1;i(e,function(e){var r=s++,i=!1;u++,t(n,a,e).then(function(e){i||(i=!0,o[r]=e,--u||l(o))},c)}),--u||l(o)});return u.error&&c(u.value),s.promise}})}(),function(){if(aAe)return sAe;aAe=1;var e=uTe(),t=Ske(),r=GCe().CONSTRUCTOR,n=$Ce(),o=VSe(),i=LSe(),a=mEe(),s=n&&n.prototype;if(e({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(e){return this.then(void 0,e)}}),!t&&i(n)){var l=o("Promise").prototype.catch;s.catch!==l&&a(s,"catch",l,{unsafe:!0})}}(),function(){if(lAe)return cAe;lAe=1;var e=uTe(),t=Uxe(),r=KSe(),n=JCe(),o=WCe(),i=T_e();e({target:"Promise",stat:!0,forced:iAe()},{race:function(e){var a=this,s=n.f(a),l=s.reject,c=o(function(){var n=r(a.resolve);i(e,function(e){t(n,a,e).then(s.resolve,l)})});return c.error&&l(c.value),s.promise}})}(),function(){if(uAe)return dAe;uAe=1;var e=uTe(),t=JCe();e({target:"Promise",stat:!0,forced:GCe().CONSTRUCTOR},{reject:function(e){var r=t.f(this);return(0,r.reject)(e),r.promise}})}(),function(){if(pAe)return gAe;pAe=1;var e=uTe(),t=VSe(),r=Ske(),n=$Ce(),o=GCe().CONSTRUCTOR,i=vAe(),a=t("Promise"),s=r&&!o;e({target:"Promise",stat:!0,forced:r||o},{resolve:function(e){return i(s&&this===a?n:this,e)}})}()),NCe}var bAe,wAe={};function xAe(){if(bAe)return wAe;bAe=1;var e=uTe(),t=Uxe(),r=KSe(),n=JCe(),o=WCe(),i=T_e();return e({target:"Promise",stat:!0,forced:iAe()},{allSettled:function(e){var a=this,s=n.f(a),l=s.resolve,c=s.reject,u=o(function(){var n=r(a.resolve),o=[],s=0,c=1;i(e,function(e){var r=s++,i=!1;c++,t(n,a,e).then(function(e){i||(i=!0,o[r]={status:"fulfilled",value:e},--c||l(o))},function(e){i||(i=!0,o[r]={status:"rejected",reason:e},--c||l(o))})}),--c||l(o)});return u.error&&c(u.value),s.promise}}),wAe}var SAe,kAe={};function EAe(){if(SAe)return kAe;SAe=1;var e=uTe(),t=Uxe(),r=KSe(),n=VSe(),o=JCe(),i=WCe(),a=T_e(),s=iAe(),l="No one promise resolved";return e({target:"Promise",stat:!0,forced:s},{any:function(e){var s=this,c=n("AggregateError"),u=o.f(s),d=u.resolve,f=u.reject,h=i(function(){var n=r(s.resolve),o=[],i=0,u=1,h=!1;a(e,function(e){var r=i++,a=!1;u++,t(n,s,e).then(function(e){a||h||(h=!0,d(e))},function(e){a||h||(a=!0,o[r]=e,--u||f(new c(o,l)))})}),--u||f(new c(o,l))});return h.error&&f(h.value),u.promise}}),kAe}var TAe,_Ae={};function CAe(){if(TAe)return _Ae;TAe=1;var e=uTe(),t=Nxe(),r=LCe(),n=FCe(),o=JCe(),i=KSe(),a=WCe(),s=t.Promise,l=!1;return e({target:"Promise",stat:!0,forced:!s||!s.try||a(function(){s.try(function(e){l=8===e},8)}).error||!l},{try:function(e){var t=arguments.length>1?n(arguments,1):[],s=o.f(this),l=a(function(){return r(i(e),void 0,t)});return(l.error?s.reject:s.resolve)(l.value),s.promise}}),_Ae}var AAe,IAe={};function PAe(){if(AAe)return IAe;AAe=1;var e=uTe(),t=JCe();return e({target:"Promise",stat:!0},{withResolvers:function(){var e=t.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}}),IAe}var NAe,BAe={};var OAe,DAe,RAe,MAe,zAe,jAe={};function LAe(){if(RAe)return jAe;RAe=1;var e=function(){if(DAe)return OAe;DAe=1;var e=DSe(),t=DEe(),r=__e(),n=zSe(),o=e("".charAt),i=e("".charCodeAt),a=e("".slice),s=function(e){return function(s,l){var c,u,d=r(n(s)),f=t(l),h=d.length;return f<0||f>=h?e?"":void 0:(c=i(d,f))<55296||c>56319||f+1===h||(u=i(d,f+1))<56320||u>57343?e?o(d,f):c:e?a(d,f,f+2):u-56320+(c-55296<<10)+65536}};return OAe={codeAt:s(!1),charAt:s(!0)}}().charAt,t=__e(),r=hEe(),n=N_e(),o=B_e(),i="String Iterator",a=r.set,s=r.getterFor(i);return n(String,"String",function(e){a(this,{type:i,string:t(e),index:0})},function(){var t,r=s(this),n=r.string,i=r.index;return i>=n.length?o(void 0,!0):(t=e(n,i),r.index+=t.length,o(t,!1))}),jAe}function FAe(){if(zAe)return MAe;zAe=1,A_e(),O_e(),j_e(),yAe(),xAe(),EAe(),CAe(),PAe(),function(){if(NAe)return BAe;NAe=1;var e=uTe(),t=Ske(),r=$Ce(),n=Vxe(),o=VSe(),i=LSe(),a=jCe(),s=vAe(),l=mEe(),c=r&&r.prototype;if(e({target:"Promise",proto:!0,real:!0,forced:!!r&&n(function(){c.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=a(this,o("Promise")),r=i(e);return this.then(r?function(r){return s(t,e()).then(function(){return r})}:e,r?function(r){return s(t,e()).then(function(){throw r})}:e)}}),!t&&i(r)){var u=o("Promise").prototype.finally;c.finally!==u&&l(c,"finally",u,{unsafe:!0})}}(),LAe();var e=RCe();return MAe=e.Promise}var VAe,qAe,HAe,UAe,WAe,$Ae,GAe,YAe={};function KAe(){if(WAe)return YAe;WAe=1;var e=Nxe(),t=qAe?VAe:(qAe=1,VAe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),r=function(){if(UAe)return HAe;UAe=1;var e=Bke()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return HAe=t===Object.prototype?void 0:t}(),n=O_e(),o=$ke(),i=P_e(),a=Ike()("iterator"),s=n.values,l=function(e,r){if(e){if(e[a]!==s)try{o(e,a,s)}catch(c){e[a]=s}if(i(e,r,!0),t[r])for(var l in n)if(e[l]!==n[l])try{o(e,l,n[l])}catch(c){e[l]=n[l]}}};for(var c in t)l(e[c]&&e[c].prototype,c);return l(r,"DOMTokenList"),YAe}var XAe;var JAe,QAe,ZAe;function eIe(){if(ZAe)return QAe;ZAe=1;var e=function(){if(GAe)return $Ae;GAe=1;var e=FAe();return KAe(),$Ae=e}();return XAe||(XAe=1,CAe()),JAe||(JAe=1,PAe()),QAe=e}var tIe;var rIe;var nIe,oIe,iIe,aIe;function sIe(){if(iIe)return oIe;iIe=1;var e=eIe();return tIe||(tIe=1,A_e()),rIe||(rIe=1,xAe()),nIe||(nIe=1,EAe()),oIe=e}var lIe,cIe={};var uIe,dIe={},fIe={},hIe={},pIe={};function mIe(){if(uIe)return pIe;uIe=1;var e="undefined"!=typeof window&&window,r="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,n=e||void 0!==t&&t||r;return pIe.root=n,function(){if(!n)throw new Error("RxJS could not find any global context (window, self, global)")}(),pIe}var gIe,vIe={},yIe={},bIe={};function wIe(){if(gIe)return bIe;return gIe=1,bIe.isFunction=function(e){return"function"==typeof e},bIe}var xIe,SIe={},kIe={};function EIe(){return xIe||(xIe=1,kIe.isArray=Array.isArray||function(e){return e&&"number"==typeof e.length}),kIe}var TIe,_Ie={};function CIe(){if(TIe)return _Ie;return TIe=1,_Ie.isObject=function(e){return null!=e&&"object"==typeof e},_Ie}var AIe,IIe,PIe={},NIe={};function BIe(){return AIe||(AIe=1,NIe.errorObject={e:{}}),NIe}function OIe(){if(IIe)return PIe;IIe=1;var e,t=BIe();function r(){try{return e.apply(this,arguments)}catch(Wqe){return t.errorObject.e=Wqe,t.errorObject}}return PIe.tryCatch=function(t){return e=t,r},PIe}var DIe,RIe,MIe={};function zIe(){if(RIe)return SIe;RIe=1;var e=EIe(),t=CIe(),r=wIe(),n=OIe(),o=BIe(),i=function(){if(DIe)return MIe;DIe=1;var e=MIe&&MIe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=function(t){function r(e){t.call(this),this.errors=e;var r=Error.call(this,e?e.length+" errors occurred during unsubscription:\n  "+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"");this.name=r.name="UnsubscriptionError",this.stack=r.stack,this.message=r.message}return e(r,t),r}(Error);return MIe.UnsubscriptionError=t,MIe}(),a=function(){function a(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var l;return a.prototype.unsubscribe=function(){var a,l=!1;if(!this.closed){var c=this,u=c._parent,d=c._parents,f=c._unsubscribe,h=c._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var p=-1,m=d?d.length:0;u;)u.remove(this),u=++p<m&&d[p]||null;if(r.isFunction(f))n.tryCatch(f).call(this)===o.errorObject&&(l=!0,a=a||(o.errorObject.e instanceof i.UnsubscriptionError?s(o.errorObject.e.errors):[o.errorObject.e]));if(e.isArray(h))for(p=-1,m=h.length;++p<m;){var g=h[p];if(t.isObject(g))if(n.tryCatch(g.unsubscribe).call(g)===o.errorObject){l=!0,a=a||[];var v=o.errorObject.e;v instanceof i.UnsubscriptionError?a=a.concat(s(v.errors)):a.push(v)}}if(l)throw new i.UnsubscriptionError(a)}},a.prototype.add=function(e){if(!e||e===a.EMPTY)return a.EMPTY;if(e===this)return this;var t=e;switch(typeof e){case"function":t=new a(e);case"object":if(t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if("function"!=typeof t._addParent){var r=t;(t=new a)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(t),t._addParent(this),t},a.prototype.remove=function(e){var t=this._subscriptions;if(t){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},a.prototype._addParent=function(e){var t=this._parent,r=this._parents;t&&t!==e?r?-1===r.indexOf(e)&&r.push(e):this._parents=[e]:this._parent=e},a.EMPTY=((l=new a).closed=!0,l),a}();function s(e){return e.reduce(function(e,t){return e.concat(t instanceof i.UnsubscriptionError?t.errors:t)},[])}return SIe.Subscription=a,SIe}var jIe,LIe={};function FIe(){return jIe||(jIe=1,LIe.empty={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}),LIe}var VIe,qIe,HIe,UIe={};function WIe(){return VIe||(VIe=1,e=UIe,t=mIe().root.Symbol,e.rxSubscriber="function"==typeof t&&"function"==typeof t.for?t.for("rxSubscriber"):"@@rxSubscriber",e.$$rxSubscriber=e.rxSubscriber),UIe;var e,t}function $Ie(){if(qIe)return yIe;qIe=1;var e=yIe&&yIe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=wIe(),r=zIe(),n=FIe(),o=WIe(),i=function(t){function r(e,r,s){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=n.empty;break;case 1:if(!e){this.destination=n.empty;break}if("object"==typeof e){if((c=e)instanceof i||"syncErrorThrowable"in c&&c[o.rxSubscriber]){var l=e[o.rxSubscriber]();this.syncErrorThrowable=l.syncErrorThrowable,this.destination=l,l.add(this)}else this.syncErrorThrowable=!0,this.destination=new a(this,e);break}default:this.syncErrorThrowable=!0,this.destination=new a(this,e,r,s)}var c}return e(r,t),r.prototype[o.rxSubscriber]=function(){return this},r.create=function(e,t,n){var o=new r(e,t,n);return o.syncErrorThrowable=!1,o},r.prototype.next=function(e){this.isStopped||this._next(e)},r.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},r.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},r.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},r}(r.Subscription);yIe.Subscriber=i;var a=function(r){function o(e,o,i,a){var s;r.call(this),this._parentSubscriber=e;var l=this;t.isFunction(o)?s=o:o&&(s=o.next,i=o.error,a=o.complete,o!==n.empty&&(l=Object.create(o),t.isFunction(l.unsubscribe)&&this.add(l.unsubscribe.bind(l)),l.unsubscribe=this.unsubscribe.bind(this))),this._context=l,this._next=s,this._error=i,this._complete=a}return e(o,r),o.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},o.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},o.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var r=function(){return e._complete.call(e._context)};t.syncErrorThrowable?(this.__tryOrSetError(t,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},o.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(r){throw this.unsubscribe(),r}},o.prototype.__tryOrSetError=function(e,t,r){try{t.call(this._context,r)}catch(n){return e.syncErrorValue=n,e.syncErrorThrown=!0,!0}return!1},o.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},o}(i);return yIe}var GIe,YIe={};function KIe(){return GIe||(GIe=1,function(e){var t=mIe();function r(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}e.getSymbolObservable=r,e.observable=r(t.root),e.$$observable=e.observable}(YIe)),YIe}var XIe,JIe,QIe,ZIe={},ePe={};function tPe(){if(JIe)return ZIe;JIe=1;var e=(XIe||(XIe=1,ePe.noop=function(){}),ePe);function t(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)}:e.noop}return ZIe.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r-0]=arguments[r];return t(e)},ZIe.pipeFromArray=t,ZIe}function rPe(){if(QIe)return hIe;QIe=1;var e=mIe(),t=function(){if(HIe)return vIe;HIe=1;var e=$Ie(),t=WIe(),r=FIe();return vIe.toSubscriber=function(n,o,i){if(n){if(n instanceof e.Subscriber)return n;if(n[t.rxSubscriber])return n[t.rxSubscriber]()}return n||o||i?new e.Subscriber(n,o,i):new e.Subscriber(r.empty)},vIe}(),r=KIe(),n=tPe(),o=function(){function o(e){this._isScalar=!1,e&&(this._subscribe=e)}return o.prototype.lift=function(e){var t=new o;return t.source=this,t.operator=e,t},o.prototype.subscribe=function(e,r,n){var o=this.operator,i=t.toSubscriber(e,r,n);if(o?o.call(i,this.source):i.add(this.source||!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},o.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.syncErrorThrown=!0,e.syncErrorValue=t,e.error(t)}},o.prototype.forEach=function(t,r){var n=this;if(r||(e.root.Rx&&e.root.Rx.config&&e.root.Rx.config.Promise?r=e.root.Rx.config.Promise:e.root.Promise&&(r=e.root.Promise)),!r)throw new Error("no Promise impl found");return new r(function(e,r){var o;o=n.subscribe(function(e){if(o)try{t(e)}catch(n){r(n),o.unsubscribe()}else t(e)},r,e)})},o.prototype._subscribe=function(e){return this.source.subscribe(e)},o.prototype[r.observable]=function(){return this},o.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return 0===e.length?this:n.pipeFromArray(e)(this)},o.prototype.toPromise=function(t){var r=this;if(t||(e.root.Rx&&e.root.Rx.config&&e.root.Rx.config.Promise?t=e.root.Rx.config.Promise:e.root.Promise&&(t=e.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},o.create=function(e){return new o(e)},o}();return hIe.Observable=o,hIe}var nPe,oPe={};function iPe(){if(nPe)return oPe;nPe=1;var e=oPe&&oPe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=function(t){function r(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return e(r,t),r}(Error);return oPe.ObjectUnsubscribedError=t,oPe}var aPe,sPe,lPe,cPe={};function uPe(){if(sPe)return fIe;sPe=1;var e=fIe&&fIe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=rPe(),r=$Ie(),n=zIe(),o=iPe(),i=function(){if(aPe)return cPe;aPe=1;var e=cPe&&cPe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=function(t){function r(e,r){t.call(this),this.subject=e,this.subscriber=r,this.closed=!1}return e(r,t),r.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var r=t.indexOf(this.subscriber);-1!==r&&t.splice(r,1)}}},r}(zIe().Subscription);return cPe.SubjectSubscription=t,cPe}(),a=WIe(),s=function(t){function r(e){t.call(this,e),this.destination=e}return e(r,t),r}(r.Subscriber);fIe.SubjectSubscriber=s;var l=function(r){function l(){r.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return e(l,r),l.prototype[a.rxSubscriber]=function(){return new s(this)},l.prototype.lift=function(e){var t=new c(this,this);return t.operator=e,t},l.prototype.next=function(e){if(this.closed)throw new o.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,r=t.length,n=t.slice(),i=0;i<r;i++)n[i].next(e)},l.prototype.error=function(e){if(this.closed)throw new o.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,r=t.length,n=t.slice(),i=0;i<r;i++)n[i].error(e);this.observers.length=0},l.prototype.complete=function(){if(this.closed)throw new o.ObjectUnsubscribedError;this.isStopped=!0;for(var e=this.observers,t=e.length,r=e.slice(),n=0;n<t;n++)r[n].complete();this.observers.length=0},l.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},l.prototype._trySubscribe=function(e){if(this.closed)throw new o.ObjectUnsubscribedError;return r.prototype._trySubscribe.call(this,e)},l.prototype._subscribe=function(e){if(this.closed)throw new o.ObjectUnsubscribedError;return this.hasError?(e.error(this.thrownError),n.Subscription.EMPTY):this.isStopped?(e.complete(),n.Subscription.EMPTY):(this.observers.push(e),new i.SubjectSubscription(this,e))},l.prototype.asObservable=function(){var e=new t.Observable;return e.source=this,e},l.create=function(e,t){return new c(e,t)},l}(t.Observable);fIe.Subject=l;var c=function(t){function r(e,r){t.call(this),this.destination=e,this.source=r}return e(r,t),r.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},r.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},r.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},r.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):n.Subscription.EMPTY},r}(l);return fIe.AnonymousSubject=c,fIe}function dPe(){if(lPe)return dIe;lPe=1;var e=dIe&&dIe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=uPe(),r=iPe(),n=function(t){function n(e){t.call(this),this._value=e}return e(n,t),Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),n.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},n.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.ObjectUnsubscribedError;return this._value},n.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},n}(t.Subject);return dIe.BehaviorSubject=n,dIe}var fPe,hPe,pPe={},mPe={},gPe={};function vPe(){if(hPe)return mPe;hPe=1;var e=mPe&&mPe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=mIe(),r=function(){if(fPe)return gPe;fPe=1;var e=gPe&&gPe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=function(t){function r(e,r){t.call(this)}return e(r,t),r.prototype.schedule=function(e,t){return this},r}(zIe().Subscription);return gPe.Action=t,gPe}(),n=function(r){function n(e,t){r.call(this,e,t),this.scheduler=e,this.pending=!1,this.work=t}return e(n,r),n.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e,this.pending=!0;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,t)),this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t),this},n.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),t.root.setInterval(e.flush.bind(e,this),n)},n.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return r;t.root.clearInterval(r)},n.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(e,t){var r=!1,n=void 0;try{this.work(e)}catch(Wqe){r=!0,n=!!Wqe&&Wqe||new Error(Wqe)}if(r)return this.unsubscribe(),n},n.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,r=t.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},n}(r.Action);return mPe.AsyncAction=n,mPe}var yPe,bPe,wPe,xPe={},SPe={};function kPe(){if(bPe)return xPe;bPe=1;var e=xPe&&xPe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=function(t){function r(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return e(r,t),r.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var r;this.active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},r}(function(){if(yPe)return SPe;yPe=1;var e=function(){function e(t,r){void 0===r&&(r=e.now),this.SchedulerAction=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(r,t)},e.now=Date.now?Date.now:function(){return+new Date},e}();return SPe.Scheduler=e,SPe}().Scheduler);return xPe.AsyncScheduler=t,xPe}function EPe(){if(wPe)return pPe;wPe=1;var e=vPe(),t=kPe();return pPe.async=new t.AsyncScheduler(e.AsyncAction),pPe}function TPe(e){this.message=e}TPe.prototype=new Error,TPe.prototype.name="InvalidCharacterError";var _Pe="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new TPe("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,o=0,i=0,a="";n=t.charAt(i++);~n&&(r=o%4?64*r+n:n,o++%4)?a+=String.fromCharCode(255&r>>(-2*o&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return a};function CPe(e){this.message=e}CPe.prototype=new Error,CPe.prototype.name="InvalidTokenError";const APe=n(Object.freeze(Object.defineProperty({__proto__:null,InvalidTokenError:CPe,default:function(e,t){if("string"!=typeof e)throw new CPe("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return decodeURIComponent(_Pe(t).replace(/(.)/g,function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(r){return _Pe(t)}}(e.split(".")[r]))}catch(n){throw new CPe("Invalid token specified: "+n.message)}}},Symbol.toStringTag,{value:"Module"})));var IPe,PPe={},NPe={},BPe={},OPe={};function DPe(){if(IPe)return OPe;IPe=1;var e=OPe&&OPe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=function(t){function r(){t.apply(this,arguments)}return e(r,t),r.prototype.notifyNext=function(e,t,r,n,o){this.destination.next(t)},r.prototype.notifyError=function(e,t){this.destination.error(e)},r.prototype.notifyComplete=function(e){this.destination.complete()},r}($Ie().Subscriber);return OPe.OuterSubscriber=t,OPe}var RPe,MPe={},zPe={};function jPe(){return RPe||(RPe=1,zPe.isArrayLike=function(e){return e&&"number"==typeof e.length}),zPe}var LPe,FPe={};function VPe(){if(LPe)return FPe;return LPe=1,FPe.isPromise=function(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then},FPe}var qPe,HPe={};function UPe(){return qPe||(qPe=1,function(e){var t=mIe();function r(e){var t=e.Symbol;if("function"==typeof t)return t.iterator||(t.iterator=t("iterator polyfill")),t.iterator;var r=e.Set;if(r&&"function"==typeof(new r)["@@iterator"])return"@@iterator";var n=e.Map;if(n)for(var o=Object.getOwnPropertyNames(n.prototype),i=0;i<o.length;++i){var a=o[i];if("entries"!==a&&"size"!==a&&n.prototype[a]===n.prototype.entries)return a}return"@@iterator"}e.symbolIteratorPonyfill=r,e.iterator=r(t.root),e.$$iterator=e.iterator}(HPe)),HPe}var WPe,$Pe,GPe,YPe,KPe,XPe={};function JPe(){if($Pe)return MPe;$Pe=1;var e=mIe(),t=jPe(),r=VPe(),n=CIe(),o=rPe(),i=UPe(),a=function(){if(WPe)return XPe;WPe=1;var e=XPe&&XPe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=function(t){function r(e,r,n){t.call(this),this.parent=e,this.outerValue=r,this.outerIndex=n,this.index=0}return e(r,t),r.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},r.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},r.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},r}($Ie().Subscriber);return XPe.InnerSubscriber=t,XPe}(),s=KIe();return MPe.subscribeToResult=function(l,c,u,d){var f=new a.InnerSubscriber(l,u,d);if(f.closed)return null;if(c instanceof o.Observable)return c._isScalar?(f.next(c.value),f.complete(),null):(f.syncErrorThrowable=!0,c.subscribe(f));if(t.isArrayLike(c)){for(var h=0,p=c.length;h<p&&!f.closed;h++)f.next(c[h]);f.closed||f.complete()}else{if(r.isPromise(c))return c.then(function(e){f.closed||(f.next(e),f.complete())},function(e){return f.error(e)}).then(null,function(t){e.root.setTimeout(function(){throw t})}),f;if(c&&"function"==typeof c[i.iterator])for(var m=c[i.iterator]();;){var g=m.next();if(g.done){f.complete();break}if(f.next(g.value),f.closed)break}else if(c&&"function"==typeof c[s.observable]){var v=c[s.observable]();if("function"==typeof v.subscribe)return v.subscribe(new a.InnerSubscriber(l,u,d));f.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var y="You provided "+(n.isObject(c)?"an invalid object":"'"+c+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";f.error(new TypeError(y))}}return null},MPe}function QPe(){if(YPe)return NPe;YPe=1;var e=function(){if(GPe)return BPe;GPe=1;var e=BPe&&BPe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=DPe(),r=JPe();BPe.catchError=function(e){return function(t){var r=new n(e),o=t.lift(r);return r.caught=o}};var n=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new o(e,this.selector,this.caught))},e}(),o=function(t){function n(e,r,n){t.call(this,e),this.selector=r,this.caught=n}return e(n,t),n.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(o){return void t.prototype.error.call(this,o)}this._unsubscribeAndRecycle(),this.add(r.subscribeToResult(this,n))}},n}(t.OuterSubscriber);return BPe}();return NPe._catch=function(t){return e.catchError(t)(this)},NPe}var ZPe,eNe={},tNe={},rNe={},nNe={},oNe={};function iNe(){if(ZPe)return oNe;ZPe=1;var e=oNe&&oNe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=function(t){function r(e,r){t.call(this),this.value=e,this.scheduler=r,this._isScalar=!0,r&&(this._isScalar=!1)}return e(r,t),r.create=function(e,t){return new r(e,t)},r.dispatch=function(e){var t=e.done,r=e.value,n=e.subscriber;t?n.complete():(n.next(r),n.closed||(e.done=!0,this.schedule(e)))},r.prototype._subscribe=function(e){var t=this.value,n=this.scheduler;if(n)return n.schedule(r.dispatch,0,{done:!1,value:t,subscriber:e});e.next(t),e.closed||e.complete()},r}(rPe().Observable);return oNe.ScalarObservable=t,oNe}var aNe,sNe={};function lNe(){if(aNe)return sNe;aNe=1;var e=sNe&&sNe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=function(t){function r(e){t.call(this),this.scheduler=e}return e(r,t),r.create=function(e){return new r(e)},r.dispatch=function(e){e.subscriber.complete()},r.prototype._subscribe=function(e){var t=this.scheduler;if(t)return t.schedule(r.dispatch,0,{subscriber:e});e.complete()},r}(rPe().Observable);return sNe.EmptyObservable=t,sNe}var cNe,uNe,dNe,fNe,hNe,pNe={};function mNe(){if(uNe)return nNe;uNe=1;var e=nNe&&nNe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=rPe(),r=iNe(),n=lNe(),o=(cNe||(cNe=1,pNe.isScheduler=function(e){return e&&"function"==typeof e.schedule}),pNe),i=function(t){function i(e,r){t.call(this),this.array=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return e(i,t),i.create=function(e,t){return new i(e,t)},i.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var a=e[e.length-1];o.isScheduler(a)?e.pop():a=null;var s=e.length;return s>1?new i(e,a):1===s?new r.ScalarObservable(e[0],a):new n.EmptyObservable(a)},i.dispatch=function(e){var t=e.array,r=e.index,n=e.count,o=e.subscriber;r>=n?o.complete():(o.next(t[r]),o.closed||(e.index=r+1,this.schedule(e)))},i.prototype._subscribe=function(e){var t=this.array,r=t.length,n=this.scheduler;if(n)return n.schedule(i.dispatch,0,{array:t,index:0,count:r,subscriber:e});for(var o=0;o<r&&!e.closed;o++)e.next(t[o]);e.complete()},i}(t.Observable);return nNe.ArrayObservable=i,nNe}function gNe(){if(fNe)return tNe;fNe=1;var e=function(){if(dNe)return rNe;dNe=1;var e=rNe&&rNe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=mNe(),r=EIe(),n=DPe(),o=JPe(),i={};rNe.combineLatest=function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var o=null;return"function"==typeof e[e.length-1]&&(o=e.pop()),1===e.length&&r.isArray(e[0])&&(e=e[0].slice()),function(r){return r.lift.call(new t.ArrayObservable([r].concat(e)),new a(o))}};var a=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project))},e}();rNe.CombineLatestOperator=a;var s=function(t){function r(e,r){t.call(this,e),this.project=r,this.active=0,this.values=[],this.observables=[]}return e(r,t),r.prototype._next=function(e){this.values.push(i),this.observables.push(e)},r.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var r=0;r<t;r++){var n=e[r];this.add(o.subscribeToResult(this,n,n,r))}}},r.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},r.prototype.notifyNext=function(e,t,r,n,o){var a=this.values,s=a[r],l=this.toRespond?s===i?--this.toRespond:this.toRespond:0;a[r]=t,0===l&&(this.project?this._tryProject(a):this.destination.next(a.slice()))},r.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(r){return void this.destination.error(r)}this.destination.next(t)},r}(n.OuterSubscriber);return rNe.CombineLatestSubscriber=s,rNe}();return tNe.combineLatest=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];return e.combineLatest.apply(void 0,t)(this)},tNe}var vNe,yNe,bNe,wNe={},xNe={},SNe={};function kNe(){if(yNe)return xNe;yNe=1;var e=function(){if(vNe)return SNe;vNe=1;var e=SNe&&SNe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=$Ie();SNe.count=function(e){return function(t){return t.lift(new r(e,t))}};var r=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new n(e,this.predicate,this.source))},e}(),n=function(t){function r(e,r,n){t.call(this,e),this.predicate=r,this.source=n,this.count=0,this.index=0}return e(r,t),r.prototype._next=function(e){this.predicate?this._tryPredicate(e):this.count++},r.prototype._tryPredicate=function(e){var t;try{t=this.predicate(e,this.index++,this.source)}catch(r){return void this.destination.error(r)}t&&this.count++},r.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},r}(t.Subscriber);return SNe}();return xNe.count=function(t){return e.count(t)(this)},xNe}var ENe,TNe={},_Ne={},CNe={},ANe={};var INe,PNe,NNe,BNe,ONe={};function DNe(){if(INe)return ONe;INe=1;var e=rPe(),t=function(){function t(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return t.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},t.prototype.do=function(e,t,r){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return r&&r()}},t.prototype.accept=function(e,t,r){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,r)},t.prototype.toObservable=function(){switch(this.kind){case"N":return e.Observable.of(this.value);case"E":return e.Observable.throw(this.error);case"C":return e.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();return ONe.Notification=t,ONe}function RNe(){if(PNe)return CNe;PNe=1;var e=CNe&&CNe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=EPe(),r=(ENe||(ENe=1,ANe.isDate=function(e){return e instanceof Date&&!isNaN(+e)}),ANe),n=$Ie(),o=DNe();CNe.delay=function(e,n){void 0===n&&(n=t.async);var o=r.isDate(e)?+e-n.now():Math.abs(e);return function(e){return e.lift(new i(o,n))}};var i=function(){function e(e,t){this.delay=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.delay,this.scheduler))},e}(),a=function(t){function r(e,r,n){t.call(this,e),this.delay=r,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}return e(r,t),r.dispatch=function(e){for(var t=e.source,r=t.queue,n=e.scheduler,o=e.destination;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(o);if(r.length>0){var i=Math.max(0,r[0].time-n.now());this.schedule(e,i)}else this.unsubscribe(),t.active=!1},r.prototype._schedule=function(e){this.active=!0,this.add(e.schedule(r.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},r.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,r=new s(t.now()+this.delay,e);this.queue.push(r),!1===this.active&&this._schedule(t)}},r.prototype._next=function(e){this.scheduleNotification(o.Notification.createNext(e))},r.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e)},r.prototype._complete=function(){this.scheduleNotification(o.Notification.createComplete())},r}(n.Subscriber),s=function(){return function(e,t){this.time=e,this.notification=t}}();return CNe}function MNe(){if(BNe)return TNe;BNe=1;var e=rPe(),t=function(){if(NNe)return _Ne;NNe=1;var e=EPe(),t=RNe();return _Ne.delay=function(r,n){return void 0===n&&(n=e.async),t.delay(r,n)(this)},_Ne}();return e.Observable.prototype.delay=t.delay,TNe}var zNe,jNe,LNe,FNe={},VNe={},qNe={};function HNe(){if(jNe)return VNe;jNe=1;var e=function(){if(zNe)return qNe;zNe=1;var e=qNe&&qNe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=$Ie();qNe.tap=function(e,t,n){return function(o){return o.lift(new r(e,t,n))}};var r=function(){function e(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}return e.prototype.call=function(e,t){return t.subscribe(new n(e,this.nextOrObserver,this.error,this.complete))},e}(),n=function(r){function n(e,n,o,i){r.call(this,e);var a=new t.Subscriber(n,o,i);a.syncErrorThrowable=!0,this.add(a),this.safeSubscriber=a}return e(n,r),n.prototype._next=function(e){var t=this.safeSubscriber;t.next(e),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.next(e)},n.prototype._error=function(e){var t=this.safeSubscriber;t.error(e),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.error(e)},n.prototype._complete=function(){var e=this.safeSubscriber;e.complete(),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.complete()},n}(t.Subscriber);return qNe}();return VNe._do=function(t,r,n){return e.tap(t,r,n)(this)},VNe}var UNe,WNe,$Ne,GNe={},YNe={},KNe={};function XNe(){if(WNe)return YNe;WNe=1;var e=function(){if(UNe)return KNe;UNe=1;var e=KNe&&KNe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=$Ie();KNe.filter=function(e,t){return function(n){return n.lift(new r(e,t))}};var r=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new n(e,this.predicate,this.thisArg))},e}(),n=function(t){function r(e,r,n){t.call(this,e),this.predicate=r,this.thisArg=n,this.count=0}return e(r,t),r.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}t&&this.destination.next(e)},r}(t.Subscriber);return KNe}();return YNe.filter=function(t,r){return e.filter(t,r)(this)},YNe}var JNe,QNe,ZNe,eBe={},tBe={},rBe={};function nBe(){if(JNe)return rBe;JNe=1;var e=rBe&&rBe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=$Ie();rBe.map=function(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new r(e,t))}};var r=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new n(e,this.project,this.thisArg))},e}();rBe.MapOperator=r;var n=function(t){function r(e,r,n){t.call(this,e),this.project=r,this.count=0,this.thisArg=n||this}return e(r,t),r.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(t)},r}(t.Subscriber);return rBe}function oBe(){if(ZNe)return eBe;ZNe=1;var e=rPe(),t=function(){if(QNe)return tBe;QNe=1;var e=nBe();return tBe.map=function(t,r){return e.map(t,r)(this)},tBe}();return e.Observable.prototype.map=t.map,eBe}var iBe,aBe,sBe,lBe={},cBe={},uBe={};function dBe(){if(iBe)return uBe;iBe=1;var e=uBe&&uBe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=JPe(),r=DPe();uBe.mergeMap=function(e,t,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),function(o){return"number"==typeof t&&(r=t,t=null),o.lift(new n(e,t,r))}};var n=function(){function e(e,t,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.project=e,this.resultSelector=t,this.concurrent=r}return e.prototype.call=function(e,t){return t.subscribe(new o(e,this.project,this.resultSelector,this.concurrent))},e}();uBe.MergeMapOperator=n;var o=function(r){function n(e,t,n,o){void 0===o&&(o=Number.POSITIVE_INFINITY),r.call(this,e),this.project=t,this.resultSelector=n,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return e(n,r),n.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},n.prototype._tryNext=function(e){var t,r=this.index++;try{t=this.project(e,r)}catch(n){return void this.destination.error(n)}this.active++,this._innerSub(t,e,r)},n.prototype._innerSub=function(e,r,n){this.add(t.subscribeToResult(this,e,r,n))},n.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},n.prototype.notifyNext=function(e,t,r,n,o){this.resultSelector?this._notifyResultSelector(e,t,r,n):this.destination.next(t)},n.prototype._notifyResultSelector=function(e,t,r,n){var o;try{o=this.resultSelector(e,t,r,n)}catch(i){return void this.destination.error(i)}this.destination.next(o)},n.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},n}(r.OuterSubscriber);return uBe.MergeMapSubscriber=o,uBe}function fBe(){if(sBe)return lBe;sBe=1;var e=rPe(),t=function(){if(aBe)return cBe;aBe=1;var e=dBe();return cBe.mergeMap=function(t,r,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),e.mergeMap(t,r,n)(this)},cBe}();return e.Observable.prototype.mergeMap=t.mergeMap,e.Observable.prototype.flatMap=t.mergeMap,lBe}var hBe,pBe,mBe,gBe={},vBe={},yBe={};function bBe(){if(pBe)return vBe;pBe=1;var e=function(){if(hBe)return yBe;hBe=1;var e=dBe();return yBe.concatMap=function(t,r){return e.mergeMap(t,r,1)},yBe}();return vBe.concatMap=function(t,r){return e.concatMap(t,r)(this)},vBe}var wBe,xBe,SBe,kBe={},EBe={},TBe={};function _Be(){if(xBe)return EBe;xBe=1;var e=function(){if(wBe)return TBe;wBe=1;var e=TBe&&TBe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=uPe(),r=OIe(),n=BIe(),o=DPe(),i=JPe();TBe.retryWhen=function(e){return function(t){return t.lift(new a(e,t))}};var a=function(){function e(e,t){this.notifier=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.notifier,this.source))},e}(),s=function(o){function a(e,t,r){o.call(this,e),this.notifier=t,this.source=r}return e(a,o),a.prototype.error=function(e){if(!this.isStopped){var a=this.errors,s=this.retries,l=this.retriesSubscription;if(s)this.errors=null,this.retriesSubscription=null;else{if(a=new t.Subject,(s=r.tryCatch(this.notifier)(a))===n.errorObject)return o.prototype.error.call(this,n.errorObject.e);l=i.subscribeToResult(this,s)}this._unsubscribeAndRecycle(),this.errors=a,this.retries=s,this.retriesSubscription=l,a.next(e)}},a.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},a.prototype.notifyNext=function(e,t,r,n,o){var i=this,a=i.errors,s=i.retries,l=i.retriesSubscription;this.errors=null,this.retries=null,this.retriesSubscription=null,this._unsubscribeAndRecycle(),this.errors=a,this.retries=s,this.retriesSubscription=l,this.source.subscribe(this)},a}(o.OuterSubscriber);return TBe}();return EBe.retryWhen=function(t){return e.retryWhen(t)(this)},EBe}var CBe,ABe,IBe,PBe,NBe,BBe,OBe={},DBe={},RBe={},MBe={},zBe={},jBe={};function LBe(){if(CBe)return jBe;CBe=1;var e=jBe&&jBe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=$Ie();jBe.refCount=function(){return function(e){return e.lift(new r(e))}};var r=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var r=this.connectable;r._refCount++;var o=new n(e,r),i=t.subscribe(o);return o.closed||(o.connection=r.connect()),i},e}(),n=function(t){function r(e,r){t.call(this,e),this.connectable=r}return e(r,t),r.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var r=this.connection,n=e._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},r}(t.Subscriber);return jBe}function FBe(){if(IBe)return MBe;IBe=1;var e=function(){if(ABe)return zBe;ABe=1;var e=zBe&&zBe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=uPe(),r=rPe(),n=$Ie(),o=zIe(),i=LBe(),a=function(t){function r(e,r){t.call(this),this.source=e,this.subjectFactory=r,this._refCount=0,this._isComplete=!1}return e(r,t),r.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},r.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},r.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new o.Subscription).add(this.source.subscribe(new l(this.getSubject(),this))),e.closed?(this._connection=null,e=o.Subscription.EMPTY):this._connection=e),e},r.prototype.refCount=function(){return i.refCount()(this)},r}(r.Observable);zBe.ConnectableObservable=a;var s=a.prototype;zBe.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:s._subscribe},_isComplete:{value:s._isComplete,writable:!0},getSubject:{value:s.getSubject},connect:{value:s.connect},refCount:{value:s.refCount}};var l=function(t){function r(e,r){t.call(this,e),this.connectable=r}return e(r,t),r.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},r.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},r.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},r}(t.SubjectSubscriber);return function(t){function r(e,r){t.call(this,e),this.connectable=r}e(r,t),r.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var r=this.connection,n=e._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null}}(n.Subscriber),zBe}();MBe.multicast=function(r,n){return function(o){var i;if(i="function"==typeof r?r:function(){return r},"function"==typeof n)return o.lift(new t(i,n));var a=Object.create(o,e.connectableObservableDescriptor);return a.source=o,a.subjectFactory=i,a}};var t=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var r=this.selector,n=this.subjectFactory(),o=r(n).subscribe(e);return o.add(t.subscribe(n)),o},e}();return MBe.MulticastOperator=t,MBe}function VBe(){if(NBe)return DBe;NBe=1;var e=function(){if(PBe)return RBe;PBe=1;var e=FBe(),t=LBe(),r=uPe();function n(){return new r.Subject}return RBe.share=function(){return function(r){return t.refCount()(e.multicast(n)(r))}},RBe}();return DBe.share=function(){return e.share()(this)},DBe}var qBe,HBe,UBe,WBe,$Be={},GBe={},YBe={},KBe={};function XBe(){if(HBe)return YBe;HBe=1;var e=YBe&&YBe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=$Ie(),r=function(){if(qBe)return KBe;qBe=1;var e=KBe&&KBe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=function(t){function r(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return e(r,t),r}(Error);return KBe.ArgumentOutOfRangeError=t,KBe}(),n=lNe();YBe.take=function(e){return function(t){return 0===e?new n.EmptyObservable:t.lift(new o(e))}};var o=function(){function e(e){if(this.total=e,this.total<0)throw new r.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return t.subscribe(new i(e,this.total))},e}(),i=function(t){function r(e,r){t.call(this,e),this.total=r,this.count=0}return e(r,t),r.prototype._next=function(e){var t=this.total,r=++this.count;r<=t&&(this.destination.next(e),r===t&&(this.destination.complete(),this.unsubscribe()))},r}(t.Subscriber);return YBe}function JBe(){if(WBe)return $Be;WBe=1;var e=rPe(),t=function(){if(UBe)return GBe;UBe=1;var e=XBe();return GBe.take=function(t){return e.take(t)(this)},GBe}();return e.Observable.prototype.take=t.take,$Be}var QBe,ZBe,eOe,tOe={},rOe={},nOe={};function oOe(){if(QBe)return nOe;QBe=1;var e=nOe&&nOe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=mIe(),r=OIe(),n=BIe(),o=rPe(),i=$Ie(),a=nBe();function s(){if(t.root.XMLHttpRequest)return new t.root.XMLHttpRequest;if(t.root.XDomainRequest)return new t.root.XDomainRequest;throw new Error("CORS is not supported by your browser")}function l(e,t){return void 0===t&&(t=null),new m({method:"GET",url:e,headers:t})}function c(e,t,r){return new m({method:"POST",url:e,body:t,headers:r})}function u(e,t){return new m({method:"DELETE",url:e,headers:t})}function d(e,t,r){return new m({method:"PUT",url:e,body:t,headers:r})}function f(e,t,r){return new m({method:"PATCH",url:e,body:t,headers:r})}nOe.ajaxGet=l,nOe.ajaxPost=c,nOe.ajaxDelete=u,nOe.ajaxPut=d,nOe.ajaxPatch=f;var h=a.map(function(e,t){return e.response});function p(e,t){return h(new m({method:"GET",url:e,responseType:"json",headers:t}))}nOe.ajaxGetJSON=p;var m=function(r){function n(e){r.call(this);var n={async:!0,createXHR:function(){return this.crossDomain?s.call(this):function(){if(t.root.XMLHttpRequest)return new t.root.XMLHttpRequest;var e=void 0;try{for(var r=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],n=0;n<3;n++)try{if(e=r[n],new t.root.ActiveXObject(e))break}catch(Wqe){}return new t.root.ActiveXObject(e)}catch(Wqe){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)n.url=e;else for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);this.request=n}var o;return e(n,r),n.prototype._subscribe=function(e){return new g(e,this.request)},n.create=((o=function(e){return new n(e)}).get=l,o.post=c,o.delete=u,o.put=d,o.patch=f,o.getJSON=p,o),n}(o.Observable);nOe.AjaxObservable=m;var g=function(o){function i(e,r){o.call(this,e),this.request=r,this.done=!1;var n=r.headers=r.headers||{};r.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in n||t.root.FormData&&r.body instanceof t.root.FormData||void 0===r.body||(n["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),r.body=this.serializeBody(r.body,r.headers["Content-Type"]),this.send()}return e(i,o),i.prototype.next=function(e){this.done=!0;var t=this,r=t.xhr,n=t.request,o=t.destination,i=new v(e,r,n);o.next(i)},i.prototype.send=function(){var e=this.request,t=this.request,o=t.user,i=t.method,a=t.url,s=t.async,l=t.password,c=t.headers,u=t.body,d=e.createXHR,f=r.tryCatch(d).call(e);if(f===n.errorObject)this.error(n.errorObject.e);else{this.xhr=f,this.setupEvents(f,e);if((o?r.tryCatch(f.open).call(f,i,a,s,o,l):r.tryCatch(f.open).call(f,i,a,s))===n.errorObject)return this.error(n.errorObject.e),null;if(s&&(f.timeout=e.timeout,f.responseType=e.responseType),"withCredentials"in f&&(f.withCredentials=!!e.withCredentials),this.setHeaders(f,c),(u?r.tryCatch(f.send).call(f,u):r.tryCatch(f.send).call(f))===n.errorObject)return this.error(n.errorObject.e),null}return f},i.prototype.serializeBody=function(e,r){if(!e||"string"==typeof e)return e;if(t.root.FormData&&e instanceof t.root.FormData)return e;if(r){var n=r.indexOf(";");-1!==n&&(r=r.substring(0,n))}switch(r){case"application/x-www-form-urlencoded":return Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&");case"application/json":return JSON.stringify(e);default:return e}},i.prototype.setHeaders=function(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])},i.prototype.setupEvents=function(e,r){var n=r.progressSubscriber;function o(e){var t=o,r=t.subscriber,n=t.progressSubscriber,i=t.request;n&&n.error(e),r.error(new w(this,i))}if(e.ontimeout=o,o.request=r,o.subscriber=this,o.progressSubscriber=n,e.upload&&"withCredentials"in e){var i,a;if(n)i=function(e){i.progressSubscriber.next(e)},t.root.XDomainRequest?e.onprogress=i:e.upload.onprogress=i,i.progressSubscriber=n;a=function(e){var t=a,r=t.progressSubscriber,n=t.subscriber,o=t.request;r&&r.error(e),n.error(new y("ajax error",this,o))},e.onerror=a,a.request=r,a.subscriber=this,a.progressSubscriber=n}function s(e){var t=s,r=t.subscriber,n=t.progressSubscriber,o=t.request;if(4===this.readyState){var i=1223===this.status?204:this.status,a="text"===this.responseType?this.response||this.responseText:this.response;0===i&&(i=a?200:0),200<=i&&i<300?(n&&n.complete(),r.next(e),r.complete()):(n&&n.error(e),r.error(new y("ajax error "+i,this,o)))}}e.onreadystatechange=s,s.subscriber=this,s.progressSubscriber=n,s.request=r},i.prototype.unsubscribe=function(){var e=this.done,t=this.xhr;!e&&t&&4!==t.readyState&&"function"==typeof t.abort&&t.abort(),o.prototype.unsubscribe.call(this)},i}(i.Subscriber);nOe.AjaxSubscriber=g;var v=function(){return function(e,t,r){this.originalEvent=e,this.xhr=t,this.request=r,this.status=t.status,this.responseType=t.responseType||r.responseType,this.response=b(this.responseType,t)}}();nOe.AjaxResponse=v;var y=function(t){function r(e,r,n){t.call(this,e),this.message=e,this.xhr=r,this.request=n,this.status=r.status,this.responseType=r.responseType||n.responseType,this.response=b(this.responseType,r)}return e(r,t),r}(Error);function b(e,t){switch(e){case"json":return"response"in t?t.responseType?t.response:JSON.parse(t.response||t.responseText||"null"):JSON.parse(t.responseText||"null");case"xml":return t.responseXML;default:return"response"in t?t.response:t.responseText}}nOe.AjaxError=y;var w=function(t){function r(e,r){t.call(this,"ajax timeout",e,r)}return e(r,t),r}(y);return nOe.AjaxTimeoutError=w,nOe}function iOe(){if(eOe)return tOe;eOe=1;var e=rPe(),t=function(){if(ZBe)return rOe;ZBe=1;var e=oOe();return rOe.ajax=e.AjaxObservable.create,rOe}();return e.Observable.ajax=t.ajax,tOe}var aOe,sOe,lOe={},cOe={};function uOe(){if(sOe)return lOe;sOe=1;var e=rPe(),t=function(){if(aOe)return cOe;aOe=1;var e=lNe();return cOe.empty=e.EmptyObservable.create,cOe}();return e.Observable.empty=t.empty,lOe}var dOe,fOe={},hOe={},pOe={},mOe={};var gOe,vOe={};function yOe(){if(gOe)return vOe;gOe=1;var e=vOe&&vOe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=mIe(),r=rPe(),n=UPe(),o=function(t){function r(e,r){if(t.call(this),this.scheduler=r,null==e)throw new Error("iterator cannot be null.");this.iterator=function(e){var t=e[n.iterator];if(!t&&"string"==typeof e)return new i(e);if(!t&&void 0!==e.length)return new a(e);if(!t)throw new TypeError("object is not iterable");return e[n.iterator]()}(e)}return e(r,t),r.create=function(e,t){return new r(e,t)},r.dispatch=function(e){var t=e.index,r=e.hasError,n=e.iterator,o=e.subscriber;if(r)o.error(e.error);else{var i=n.next();i.done?o.complete():(o.next(i.value),e.index=t+1,o.closed?"function"==typeof n.return&&n.return():this.schedule(e))}},r.prototype._subscribe=function(e){var t=this.iterator,n=this.scheduler;if(n)return n.schedule(r.dispatch,0,{index:0,iterator:t,subscriber:e});for(;;){var o=t.next();if(o.done){e.complete();break}if(e.next(o.value),e.closed){"function"==typeof t.return&&t.return();break}}},r}(r.Observable);vOe.IteratorObservable=o;var i=function(){function e(e,t,r){void 0===t&&(t=0),void 0===r&&(r=e.length),this.str=e,this.idx=t,this.len=r}return e.prototype[n.iterator]=function(){return this},e.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},e}(),a=function(){function e(e,r,n){void 0===r&&(r=0),void 0===n&&(n=function(e){var r=+e.length;if(isNaN(r))return 0;if(0===r||(n=r,"number"!=typeof n||!t.root.isFinite(n)))return r;var n;if(r=function(e){var t=+e;if(0===t)return t;if(isNaN(t))return t;return t<0?-1:1}(r)*Math.floor(Math.abs(r)),r<=0)return 0;if(r>s)return s;return r}(e)),this.arr=e,this.idx=r,this.len=n}return e.prototype[n.iterator]=function(){return this},e.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},e}();var s=Math.pow(2,53)-1;return vOe}var bOe,wOe={};var xOe,SOe,kOe,EOe,TOe={};function _Oe(){if(SOe)return pOe;SOe=1;var e=pOe&&pOe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=EIe(),r=jPe(),n=VPe(),o=function(){if(dOe)return mOe;dOe=1;var e=mOe&&mOe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=mIe(),r=function(r){function i(e,t){r.call(this),this.promise=e,this.scheduler=t}return e(i,r),i.create=function(e,t){return new i(e,t)},i.prototype._subscribe=function(e){var r=this,i=this.promise,a=this.scheduler;if(null==a)this._isScalar?e.closed||(e.next(this.value),e.complete()):i.then(function(t){r.value=t,r._isScalar=!0,e.closed||(e.next(t),e.complete())},function(t){e.closed||e.error(t)}).then(null,function(e){t.root.setTimeout(function(){throw e})});else if(this._isScalar){if(!e.closed)return a.schedule(n,0,{value:this.value,subscriber:e})}else i.then(function(t){r.value=t,r._isScalar=!0,e.closed||e.add(a.schedule(n,0,{value:t,subscriber:e}))},function(t){e.closed||e.add(a.schedule(o,0,{err:t,subscriber:e}))}).then(null,function(e){t.root.setTimeout(function(){throw e})})},i}(rPe().Observable);function n(e){var t=e.value,r=e.subscriber;r.closed||(r.next(t),r.complete())}function o(e){var t=e.err,r=e.subscriber;r.closed||r.error(t)}return mOe.PromiseObservable=r,mOe}(),i=yOe(),a=mNe(),s=function(){if(bOe)return wOe;bOe=1;var e=wOe&&wOe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=rPe(),r=iNe(),n=lNe(),o=function(t){function o(e,r){t.call(this),this.arrayLike=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return e(o,t),o.create=function(e,t){var i=e.length;return 0===i?new n.EmptyObservable:1===i?new r.ScalarObservable(e[0],t):new o(e,t)},o.dispatch=function(e){var t=e.arrayLike,r=e.index,n=e.length,o=e.subscriber;o.closed||(r>=n?o.complete():(o.next(t[r]),e.index=r+1,this.schedule(e)))},o.prototype._subscribe=function(e){var t=this.arrayLike,r=this.scheduler,n=t.length;if(r)return r.schedule(o.dispatch,0,{arrayLike:t,index:0,length:n,subscriber:e});for(var i=0;i<n&&!e.closed;i++)e.next(t[i]);e.complete()},o}(t.Observable);return wOe.ArrayLikeObservable=o,wOe}(),l=UPe(),c=rPe(),u=function(){if(xOe)return TOe;xOe=1;var e=TOe&&TOe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=$Ie(),r=DNe();TOe.observeOn=function(e,t){return void 0===t&&(t=0),function(r){return r.lift(new n(e,t))}};var n=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new o(e,this.scheduler,this.delay))},e}();TOe.ObserveOnOperator=n;var o=function(t){function n(e,r,n){void 0===n&&(n=0),t.call(this,e),this.scheduler=r,this.delay=n}return e(n,t),n.dispatch=function(e){var t=e.notification,r=e.destination;t.observe(r),this.unsubscribe()},n.prototype.scheduleMessage=function(e){this.add(this.scheduler.schedule(n.dispatch,this.delay,new i(e,this.destination)))},n.prototype._next=function(e){this.scheduleMessage(r.Notification.createNext(e))},n.prototype._error=function(e){this.scheduleMessage(r.Notification.createError(e))},n.prototype._complete=function(){this.scheduleMessage(r.Notification.createComplete())},n}(t.Subscriber);TOe.ObserveOnSubscriber=o;var i=function(){return function(e,t){this.notification=e,this.destination=t}}();return TOe.ObserveOnMessage=i,TOe}(),d=KIe(),f=function(f){function h(e,t){f.call(this,null),this.ish=e,this.scheduler=t}return e(h,f),h.create=function(e,u){if(null!=e){if("function"==typeof e[d.observable])return e instanceof c.Observable&&!u?e:new h(e,u);if(t.isArray(e))return new a.ArrayObservable(e,u);if(n.isPromise(e))return new o.PromiseObservable(e,u);if("function"==typeof e[l.iterator]||"string"==typeof e)return new i.IteratorObservable(e,u);if(r.isArrayLike(e))return new s.ArrayLikeObservable(e,u)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")},h.prototype._subscribe=function(e){var t=this.ish,r=this.scheduler;return null==r?t[d.observable]().subscribe(e):t[d.observable]().subscribe(new u.ObserveOnSubscriber(e,r,0))},h}(c.Observable);return pOe.FromObservable=f,pOe}function COe(){if(EOe)return fOe;EOe=1;var e=rPe(),t=function(){if(kOe)return hOe;kOe=1;var e=_Oe();return hOe.from=e.FromObservable.create,hOe}();return e.Observable.from=t.from,fOe}var AOe,IOe,POe,NOe,BOe={},OOe={},DOe={},ROe={};function MOe(){if(IOe)return DOe;IOe=1;var e=DOe&&DOe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=function(){if(AOe)return ROe;AOe=1;var e=EIe();return ROe.isNumeric=function(t){return!e.isArray(t)&&t-parseFloat(t)+1>=0},ROe}(),r=rPe(),n=EPe(),o=function(r){function o(e,o){void 0===e&&(e=0),void 0===o&&(o=n.async),r.call(this),this.period=e,this.scheduler=o,(!t.isNumeric(e)||e<0)&&(this.period=0),o&&"function"==typeof o.schedule||(this.scheduler=n.async)}return e(o,r),o.create=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=n.async),new o(e,t)},o.dispatch=function(e){var t=e.index,r=e.subscriber,n=e.period;r.next(t),r.closed||(e.index+=1,this.schedule(e,n))},o.prototype._subscribe=function(e){var t=this.period,r=this.scheduler;e.add(r.schedule(o.dispatch,t,{index:0,subscriber:e,period:t}))},o}(r.Observable);return DOe.IntervalObservable=o,DOe}function zOe(){if(NOe)return BOe;NOe=1;var e=rPe(),t=function(){if(POe)return OOe;POe=1;var e=MOe();return OOe.interval=e.IntervalObservable.create,OOe}();return e.Observable.interval=t.interval,BOe}var jOe,LOe,FOe={},VOe={};function qOe(){if(LOe)return FOe;LOe=1;var e=rPe(),t=function(){if(jOe)return VOe;jOe=1;var e=mNe();return VOe.of=e.ArrayObservable.of,VOe}();return e.Observable.of=t.of,FOe}var HOe,UOe,WOe,$Oe={},GOe={},YOe={};function KOe(){if(UOe)return GOe;UOe=1;var e=function(){if(HOe)return YOe;HOe=1;var e=YOe&&YOe.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},t=function(t){function r(e,r){t.call(this),this.error=e,this.scheduler=r}return e(r,t),r.create=function(e,t){return new r(e,t)},r.dispatch=function(e){var t=e.error;e.subscriber.error(t)},r.prototype._subscribe=function(e){var t=this.error,n=this.scheduler;if(e.syncErrorThrowable=!0,n)return n.schedule(r.dispatch,0,{error:t,subscriber:e});e.error(t)},r}(rPe().Observable);return YOe.ErrorObservable=t,YOe}();return GOe._throw=e.ErrorObservable.create,GOe}var XOe,JOe={},QOe={},ZOe={exports:{}},eDe={exports:{}};var tDe,rDe={exports:{}};function nDe(){return tDe||(tDe=1,(e=rDe).exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports),rDe.exports;var e}var oDe,iDe,aDe={exports:{}},sDe={exports:{}};function lDe(){return oDe||(oDe=1,(e=sDe).exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports),sDe.exports;var e}function cDe(){return iDe||(iDe=1,e=aDe,t=lDe(),e.exports=function(e,r){if(e){if("string"==typeof e)return t(e,r);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports),aDe.exports;var e,t}var uDe,dDe,fDe,hDe,pDe={exports:{}};function mDe(){return dDe||(dDe=1,e=ZOe,t=function(){return XOe||(XOe=1,(e=eDe).exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports),eDe.exports;var e}(),r=nDe(),n=cDe(),o=function(){return uDe||(uDe=1,(e=pDe).exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports),pDe.exports;var e}(),e.exports=function(e){return t(e)||r(e)||n(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports),ZOe.exports;var e,t,r,n,o}function gDe(){return fDe||(fDe=1,function(e){var t=oxe();Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){if(e){if(~e.indexOf(".")){var t=e.split(".").reverse(),n=(0,r.default)(t);return{extname:"."+n[0],name:function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}(n).slice(1).reverse().join(".")}}return{extname:"",name:e}}return{extname:"",name:""}};var r=t(mDe())}(QOe)),QOe}var vDe,yDe={},bDe={exports:{}},wDe={exports:{}};function xDe(){return vDe||(vDe=1,(e=wDe).exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports),wDe.exports;var e}var SDe,kDe,EDe={exports:{}},TDe={exports:{}};function _De(){return SDe||(SDe=1,function(e){function t(r,n,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(s){a=0}e.exports=t=function(e,r,n,o){function i(r,n){t(e,r,function(e){return this._invoke(r,n,e)})}r?a?a(e,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[r]=n:(i("next",0),i("throw",1),i("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,o,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(TDe)),TDe.exports}function CDe(){return kDe||(kDe=1,function(e){var t=_De();function r(){var n,o,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.toStringTag||"@@toStringTag";function l(e,r,i,a){var s=r&&r.prototype instanceof u?r:u,l=Object.create(s.prototype);return t(l,"_invoke",function(e,t,r){var i,a,s,l=0,u=r||[],d=!1,f={p:0,n:0,v:n,a:h,f:h.bind(n,4),d:function(e,t){return i=e,a=0,s=n,f.n=t,c}};function h(e,t){for(a=e,s=t,o=0;!d&&l&&!r&&o<u.length;o++){var r,i=u[o],h=f.p,p=i[2];e>3?(r=p===t)&&(s=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=n):i[0]<=h&&((r=e<2&&h<i[1])?(a=0,f.v=t,f.n=i[1]):h<p&&(r=e<3||i[0]>t||t>p)&&(i[4]=e,i[5]=t,f.n=p,a=0))}if(r||e>1)return c;throw d=!0,t}return function(r,u,p){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&h(u,p),a=u,s=p;(o=a<2?n:s)||!d;){i||(a?a<3?(a>1&&(f.n=-1),h(a,s)):f.n=s:f.v=s);try{if(l=2,i){if(a||(r="next"),o=i[r]){if(!(o=o.call(i,s)))throw TypeError("iterator result is not an object");if(!o.done)return o;s=o.value,a<2&&(a=0)}else 1===a&&(o=i.return)&&o.call(i),a<2&&(s=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=n}else if((o=(d=f.n<0)?s:e.call(t,f))!==c)break}catch(m){i=n,a=1,s=m}finally{l=1}}return{value:o,done:d}}}(e,i,a),!0),l}var c={};function u(){}function d(){}function f(){}o=Object.getPrototypeOf;var h=[][a]?o(o([][a]())):(t(o={},a,function(){return this}),o),p=f.prototype=u.prototype=Object.create(h);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,t(e,s,"GeneratorFunction")),e.prototype=Object.create(p),e}return d.prototype=f,t(p,"constructor",f),t(f,"constructor",d),d.displayName="GeneratorFunction",t(f,s,"GeneratorFunction"),t(p),t(p,s,"Generator"),t(p,a,function(){return this}),t(p,"toString",function(){return"[object Generator]"}),(e.exports=r=function(){return{w:l,m:m}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(EDe)),EDe.exports}var ADe,IDe,PDe,NDe={exports:{}},BDe={exports:{}},ODe={exports:{}};function DDe(){return ADe||(ADe=1,e=ODe,t=xDe(),r=_De(),e.exports=function e(n,o){function i(e,r,a,s){try{var l=n[e](r),c=l.value;return c instanceof t?o.resolve(c.v).then(function(e){i("next",e,a,s)},function(e){i("throw",e,a,s)}):o.resolve(c).then(function(e){l.value=e,a(l)},function(e){return i("throw",e,a,s)})}catch(u){s(u)}}var a;this.next||(r(e.prototype),r(e.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(e,t,r){function n(){return new o(function(t,n){i(e,r,t,n)})}return a=a?a.then(n,n):n()},!0)},e.exports.__esModule=!0,e.exports.default=e.exports),ODe.exports;var e,t,r}function RDe(){return IDe||(IDe=1,e=BDe,t=CDe(),r=DDe(),e.exports=function(e,n,o,i,a){return new r(t().w(e,n,o,i),a||Promise)},e.exports.__esModule=!0,e.exports.default=e.exports),BDe.exports;var e,t,r}var MDe,zDe={exports:{}};var jDe,LDe,FDe,VDe,qDe={exports:{}};function HDe(){return LDe||(LDe=1,function(e){var t=xDe(),r=CDe(),n=function(){return PDe||(PDe=1,e=NDe,t=RDe(),e.exports=function(e,r,n,o,i){var a=t(e,r,n,o,i);return a.next().then(function(e){return e.done?e.value:a.next()})},e.exports.__esModule=!0,e.exports.default=e.exports),NDe.exports;var e,t}(),o=RDe(),i=DDe(),a=function(){return MDe||(MDe=1,(e=zDe).exports=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},e.exports.__esModule=!0,e.exports.default=e.exports),zDe.exports;var e}(),s=function(){return jDe||(jDe=1,e=qDe,t=sxe().default,e.exports=function(e){if(null!=e){var r=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(t(e)+" is not iterable")},e.exports.__esModule=!0,e.exports.default=e.exports),qDe.exports;var e,t}();function l(){var c=r(),u=c.m(l),d=(Object.getPrototypeOf?Object.getPrototypeOf(u):u.__proto__).constructor;function f(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))}var h={throw:1,return:2,break:3,continue:3};function p(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,h[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,s(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(e.exports=l=function(){return{wrap:function(e,t,r,n){return c.w(p(e),t,r,n&&n.reverse())},isGeneratorFunction:f,mark:c.m,awrap:function(e,r){return new t(e,r)},AsyncIterator:i,async:function(e,t,r,i,a){return(f(t)?o:n)(p(e),t,r,i,a)},keys:a,values:s}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports}(bDe)),bDe.exports}var UDe,WDe={exports:{}},$De={exports:{}};var GDe,YDe,KDe={exports:{}};function XDe(){return YDe||(YDe=1,e=WDe,t=function(){return UDe||(UDe=1,e=$De,t=lDe(),e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports),$De.exports;var e,t}(),r=nDe(),n=cDe(),o=function(){return GDe||(GDe=1,(e=KDe).exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports),KDe.exports;var e}(),e.exports=function(e){return t(e)||r(e)||n(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports),WDe.exports;var e,t,r,n,o}var JDe,QDe={exports:{}};var ZDe,eRe={},tRe={};var rRe,nRe,oRe={};function iRe(){return nRe||(nRe=1,function(e){const t=function(){if(ZDe)return tRe;ZDe=1,tRe.byteLength=function(e){var t=i(e),r=t[0],n=t[1];return 3*(r+n)/4-n},tRe.toByteArray=function(e){var n,o,a=i(e),s=a[0],l=a[1],c=new r(function(e,t,r){return 3*(t+r)/4-r}(0,s,l)),u=0,d=l>0?s-4:s;for(o=0;o<d;o+=4)n=t[e.charCodeAt(o)]<<18|t[e.charCodeAt(o+1)]<<12|t[e.charCodeAt(o+2)]<<6|t[e.charCodeAt(o+3)],c[u++]=n>>16&255,c[u++]=n>>8&255,c[u++]=255&n;return 2===l&&(n=t[e.charCodeAt(o)]<<2|t[e.charCodeAt(o+1)]>>4,c[u++]=255&n),1===l&&(n=t[e.charCodeAt(o)]<<10|t[e.charCodeAt(o+1)]<<4|t[e.charCodeAt(o+2)]>>2,c[u++]=n>>8&255,c[u++]=255&n),c},tRe.fromByteArray=function(t){for(var r,n=t.length,o=n%3,i=[],a=16383,l=0,c=n-o;l<c;l+=a)i.push(s(t,l,l+a>c?c:l+a));return 1===o?(r=t[n-1],i.push(e[r>>2]+e[r<<4&63]+"==")):2===o&&(r=(t[n-2]<<8)+t[n-1],i.push(e[r>>10]+e[r>>4&63]+e[r<<2&63]+"=")),i.join("")};for(var e=[],t=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)e[o]=n[o],t[n.charCodeAt(o)]=o;function i(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function a(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}function s(e,t,r){for(var n,o=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(a(n));return o.join("")}return t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63,tRe}(),r=(rRe||(rRe=1,oRe.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=r?o-1:0,f=r?-1:1,h=e[t+d];for(d+=f,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)},oRe.write=function(e,t,r,n,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[r+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*m}),oRe),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=function(e){+e!=e&&(e=0);return a.alloc(+e)},e.INSPECT_MAX_BYTES=50;const o=2147483647;function i(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|h(e,t);let n=i(r);const o=n.write(e,t);o!==r&&(n=n.slice(0,o));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(G(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return u(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(G(e,ArrayBuffer)||e&&G(e.buffer,ArrayBuffer))return d(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(G(e,SharedArrayBuffer)||e&&G(e.buffer,SharedArrayBuffer)))return d(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return a.from(n,t,r);const o=function(e){if(a.isBuffer(e)){const t=0|f(e.length),r=i(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||Y(e.length)?i(0):u(e);if("Buffer"===e.type&&Array.isArray(e.data))return u(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return l(e),i(e<0?0:0|f(e))}function u(e){const t=e.length<0?0:0|f(e.length),r=i(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function d(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,a.prototype),n}function f(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function h(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||G(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return W(e).length;default:if(o)return n?-1:U(e).length;t=(""+t).toLowerCase(),o=!0}}function p(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,r);case"utf8":case"utf-8":return E(this,t,r);case"ascii":return _(this,t,r);case"latin1":case"binary":return C(this,t,r);case"base64":return k(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,o){let i,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let n=-1;for(i=r;i<s;i++)if(c(e,i)===c(t,-1===n?0:i-n)){if(-1===n&&(n=i),i-n+1===l)return n*a}else-1!==n&&(i-=i-n),n=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){let r=!0;for(let n=0;n<l;n++)if(c(e,i+n)!==c(t,n)){r=!1;break}if(r)return i}return-1}function y(e,t,r,n){r=Number(r)||0;const o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;const i=t.length;let a;for(n>i/2&&(n=i/2),a=0;a<n;++a){const n=parseInt(t.substr(2*a,2),16);if(Y(n))return a;e[r+a]=n}return a}function b(e,t,r,n){return $(U(t,e.length-r),e,r,n)}function w(e,t,r,n){return $(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function x(e,t,r,n){return $(W(t),e,r,n)}function S(e,t,r,n){return $(function(e,t){let r,n,o;const i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function k(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function E(e,t,r){r=Math.min(e.length,r);const n=[];let o=t;for(;o<r;){const t=e[o];let i=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=r){let r,n,s,l;switch(a){case 1:t<128&&(i=t);break;case 2:r=e[o+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(i=l));break;case 3:r=e[o+1],n=e[o+2],128==(192&r)&&128==(192&n)&&(l=(15&t)<<12|(63&r)<<6|63&n,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:r=e[o+1],n=e[o+2],s=e[o+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=a}return function(e){const t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=T));return r}(n)}e.kMaxLength=o,a.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(Wqe){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return s(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return function(e,t,r){return l(e),e<=0?i(e):void 0!==t?"string"==typeof r?i(e).fill(t,r):i(e).fill(t):i(e)}(e,t,r)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(G(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),G(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=a.allocUnsafe(t);let o=0;for(r=0;r<e.length;++r){let t=e[r];if(G(t,Uint8Array))o+t.length>n.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(n,o)):Uint8Array.prototype.set.call(n,t,o);else{if(!a.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,o)}o+=t.length}return n},a.byteLength=h,a.prototype._isBuffer=!0,a.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},a.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},a.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},a.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?E(this,0,e):p.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,o){if(G(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;let i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0);const l=Math.min(i,s),c=this.slice(n,o),u=e.slice(t,r);for(let a=0;a<l;++a)if(c[a]!==u[a]){i=c[a],s=u[a];break}return i<s?-1:s<i?1:0},a.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return y(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":case"latin1":case"binary":return w(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const T=4096;function _(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function C(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function A(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let o="";for(let i=t;i<r;++i)o+=K[e[i]];return o}function I(e,t,r){const n=e.slice(t,r);let o="";for(let i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function P(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,n,o,i){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function B(e,t,r,n,o){F(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function O(e,t,r,n,o){F(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function D(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function R(e,t,n,o,i){return t=+t,n>>>=0,i||D(e,0,n,4),r.write(e,t,n,o,23,4),n+4}function M(e,t,n,o,i){return t=+t,n>>>=0,i||D(e,0,n,8),r.write(e,t,n,o,52,8),n+8}a.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||P(e,t,this.length);let n=this[e],o=1,i=0;for(;++i<t&&(o*=256);)n+=this[e+i]*o;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||P(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=X(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(o)<<BigInt(32))}),a.prototype.readBigUInt64BE=X(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(o)}),a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||P(e,t,this.length);let n=this[e],o=1,i=0;for(;++i<t&&(o*=256);)n+=this[e+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||P(e,t,this.length);let n=t,o=1,i=this[e+--n];for(;n>0&&(o*=256);)i+=this[e+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},a.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=X(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),a.prototype.readBigInt64BE=X(function(e){V(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||q(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)}),a.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),r.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),r.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),r.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),r.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){N(this,e,t,r,Math.pow(2,8*r)-1,0)}let o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){N(this,e,t,r,Math.pow(2,8*r)-1,0)}let o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigUInt64LE=X(function(e,t=0){return B(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=X(function(e,t=0){return O(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);N(this,e,t,r,n-1,-n)}let o=0,i=1,a=0;for(this[t]=255&e;++o<r&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);N(this,e,t,r,n-1,-n)}let o=r-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigInt64LE=X(function(e,t=0){return B(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=X(function(e,t=0){return O(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeFloatLE=function(e,t,r){return R(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return R(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return M(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return M(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const o=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{const i=a.isBuffer(e)?e:a.from(e,n),s=i.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=i[o%s]}return this};const z={};function j(e,t,r){z[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function L(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function F(e,t,r,n,o,i){if(e>r||e<t){const r="bigint"==typeof t?"n":"";let n;throw n=0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`,new z.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,r){V(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||q(t,e.length-(r+1))}(n,o,i)}function V(e,t){if("number"!=typeof e)throw new z.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,r){if(Math.floor(e)!==e)throw V(e,r),new z.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new z.ERR_BUFFER_OUT_OF_BOUNDS;throw new z.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}j("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),j("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),j("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=L(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=L(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n},RangeError);const H=/[^+/0-9A-Za-z-_]/g;function U(e,t){let r;t=t||1/0;const n=e.length;let o=null;const i=[];for(let a=0;a<n;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function W(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,r,n){let o;for(o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function G(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const K=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function X(e){return"undefined"==typeof BigInt?J:e}function J(){throw new Error("BigInt not supported")}}(eRe)),eRe}var aRe,sRe={};function lRe(){if(aRe)return sRe;aRe=1;var e,t,r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,l=Math.pow,c=(e,t)=>()=>(e&&(t=e(e=0)),t),u=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),d=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},f=(e,t,r,a)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of i(t))!s.call(e,l)&&l!==r&&n(e,l,{get:()=>t[l],enumerable:!(a=o(t,l))||a.enumerable});return e},h=(e,t,o)=>(o=null!=e?r(a(e)):{},f(!t&&e&&e.__esModule?o:n(o,"default",{value:e,enumerable:!0}),e)),p=e=>f(n({},"__esModule",{value:!0}),e),m=(e,t,r)=>new Promise((n,o)=>{var i=e=>{try{s(r.next(e))}catch(t){o(t)}},a=e=>{try{s(r.throw(e))}catch(t){o(t)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,a);s((r=r.apply(e,t)).next())}),g=c(()=>{}),v=c(()=>{h(S(),1)}),y=u((e,t)=>{k(),g(),v(),b();var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(Wqe){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l,c=[],u=!1,d=-1;function f(){!u||!l||(u=!1,l.length?c=l.concat(c):d=-1,c.length&&h())}function h(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(r){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new p(e,t)),1===c.length&&!u&&s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}}),b=c(()=>{e=h(y(),1)}),w=u(e=>{k(),g(),v(),b(),e.byteLength=function(e){var t=a(e),r=t[0],n=t[1];return 3*(r+n)/4-n},e.toByteArray=function(e){var t,r,i=a(e),s=i[0],l=i[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,s,l)),u=0,d=l>0?s-4:s;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[u++]=255&t),1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},e.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=16383,s=0,c=n-o;s<c;s+=a)i.push(l(e,s,s+a>c?c:s+a));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")};var t,r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(t=0,64;t<64;++t)r[t]=i[t],n[i.charCodeAt(t)]=t;function a(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function s(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function l(e,t,r){for(var n,o=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(s(n));return o.join("")}n[45]=62,n[95]=63}),x=u(e=>{k(),g(),v(),b(),e.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=r?o-1:0,f=r?-1:1,h=e[t+d];for(d+=f,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+e[t+d],d+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=n;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)},e.write=function(e,t,r,n,o,i){var a,s,l,c=8*i-o-1,u=(1<<c)-1,d=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[r+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*m}}),S=u(e=>{k(),g(),v(),b();var t=w(),r=x(),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},e.INSPECT_MAX_BYTES=50;var o=2147483647;function i(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=0|p(e,t),n=i(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(ee(e,Uint8Array)){let t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ee(e,ArrayBuffer)||e&&ee(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(ee(e,SharedArrayBuffer)||e&&ee(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return a.from(n,t,r);let o=function(e){if(a.isBuffer(e)){let t=0|h(e.length),r=i(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||te(e.length)?i(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),i(e<0?0:0|h(e))}function d(e){let t=e.length<0?0:0|h(e.length),r=i(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,a.prototype),n}function h(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function p(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ee(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(e).length;default:if(o)return n?-1:J(e).length;t=(""+t).toLowerCase(),o=!0}}function m(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,r);case"utf8":case"utf-8":return N(this,t,r);case"ascii":return O(this,t,r);case"latin1":case"binary":return D(this,t,r);case"base64":return P(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function S(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),te(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:E(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):E(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function E(e,t,r,n,o){let i,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let n=-1;for(i=r;i<s;i++)if(c(e,i)===c(t,-1===n?0:i-n)){if(-1===n&&(n=i),i-n+1===l)return n*a}else-1!==n&&(i-=i-n),n=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){let r=!0;for(let n=0;n<l;n++)if(c(e,i+n)!==c(t,n)){r=!1;break}if(r)return i}return-1}function T(e,t,r,n){r=Number(r)||0;let o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;let i,a=t.length;for(n>a/2&&(n=a/2),i=0;i<n;++i){let n=parseInt(t.substr(2*i,2),16);if(te(n))return i;e[r+i]=n}return i}function _(e,t,r,n){return Z(J(t,e.length-r),e,r,n)}function C(e,t,r,n){return Z(function(e){let t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function A(e,t,r,n){return Z(Q(t),e,r,n)}function I(e,t,r,n){return Z(function(e,t){let r,n,o,i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function P(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function N(e,t,r){r=Math.min(e.length,r);let n=[],o=t;for(;o<r;){let t=e[o],i=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=r){let r,n,s,l;switch(a){case 1:t<128&&(i=t);break;case 2:r=e[o+1],128==(192&r)&&(l=(31&t)<<6|63&r,l>127&&(i=l));break;case 3:r=e[o+1],n=e[o+2],128==(192&r)&&128==(192&n)&&(l=(15&t)<<12|(63&r)<<6|63&n,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:r=e[o+1],n=e[o+2],s=e[o+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=a}return function(e){let t=e.length;if(t<=B)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=B));return r}(n)}e.kMaxLength=o,a.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!a.TYPED_ARRAY_SUPPORT&&"undefined"!=typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return s(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return function(e,t,r){return c(e),e<=0?i(e):void 0!==t?"string"==typeof r?i(e).fill(t,r):i(e).fill(t):i(e)}(e,t,r)},a.allocUnsafe=function(e){return u(e)},a.allocUnsafeSlow=function(e){return u(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(ee(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),ee(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;let n=a.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){let t=e[r];if(ee(t,Uint8Array))o+t.length>n.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(n,o)):Uint8Array.prototype.set.call(n,t,o);else{if(!a.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,o)}o+=t.length}return n},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},a.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},a.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},a.prototype.toString=function(){let e=this.length;return 0===e?"":0===arguments.length?N(this,0,e):m.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){let t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,o){if(ee(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;let i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),l=Math.min(i,s),c=this.slice(n,o),u=e.slice(t,r);for(let a=0;a<l;++a)if(c[a]!==u[a]){i=c[a],s=u[a];break}return i<s?-1:s<i?1:0},a.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return S(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return S(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}let o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return T(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":case"latin1":case"binary":return C(this,e,t,r);case"base64":return A(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function O(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function D(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function R(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let o="";for(let i=t;i<r;++i)o+=re[e[i]];return o}function M(e,t,r){let n=e.slice(t,r),o="";for(let i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function z(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,r,n,o,i){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function L(e,t,r,n,o){G(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function F(e,t,r,n,o){G(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function V(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function q(e,t,n,o,i){return t=+t,n>>>=0,i||V(e,0,n,4),r.write(e,t,n,o,23,4),n+4}function H(e,t,n,o,i){return t=+t,n>>>=0,i||V(e,0,n,8),r.write(e,t,n,o,52,8),n+8}a.prototype.slice=function(e,t){let r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);let n=this[e],o=1,i=0;for(;++i<t&&(o*=256);)n+=this[e+i]*o;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=ne(function(e){Y(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&K(e,this.length-8);let n=t+this[++e]*l(2,8)+this[++e]*l(2,16)+this[++e]*l(2,24),o=this[++e]+this[++e]*l(2,8)+this[++e]*l(2,16)+r*l(2,24);return BigInt(n)+(BigInt(o)<<BigInt(32))}),a.prototype.readBigUInt64BE=ne(function(e){Y(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&K(e,this.length-8);let n=t*l(2,24)+this[++e]*l(2,16)+this[++e]*l(2,8)+this[++e],o=this[++e]*l(2,24)+this[++e]*l(2,16)+this[++e]*l(2,8)+r;return(BigInt(n)<<BigInt(32))+BigInt(o)}),a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);let n=this[e],o=1,i=0;for(;++i<t&&(o*=256);)n+=this[e+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);let n=t,o=1,i=this[e+--n];for(;n>0&&(o*=256);)i+=this[e+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},a.prototype.readInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||z(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||z(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=ne(function(e){Y(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&K(e,this.length-8);let n=this[e+4]+this[e+5]*l(2,8)+this[e+6]*l(2,16)+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+this[++e]*l(2,8)+this[++e]*l(2,16)+this[++e]*l(2,24))}),a.prototype.readBigInt64BE=ne(function(e){Y(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&K(e,this.length-8);let n=(t<<24)+this[++e]*l(2,16)+this[++e]*l(2,8)+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*l(2,24)+this[++e]*l(2,16)+this[++e]*l(2,8)+r)}),a.prototype.readFloatLE=function(e,t){return e>>>=0,t||z(e,4,this.length),r.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||z(e,4,this.length),r.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||z(e,8,this.length),r.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||z(e,8,this.length),r.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){j(this,e,t,r,Math.pow(2,8*r)-1,0)}let o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){j(this,e,t,r,Math.pow(2,8*r)-1,0)}let o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigUInt64LE=ne(function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=ne(function(e,t=0){return F(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);j(this,e,t,r,n-1,-n)}let o=0,i=1,a=0;for(this[t]=255&e;++o<r&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);j(this,e,t,r,n-1,-n)}let o=r-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigInt64LE=ne(function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=ne(function(e,t=0){return F(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeFloatLE=function(e,t,r){return q(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return q(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return H(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return H(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),!n&&0!==n&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);let o=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){let t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{let i=a.isBuffer(e)?e:a.from(e,n),s=i.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=i[o%s]}return this};var U={};function W(e,t,r){U[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function $(e){let t="",r=e.length,n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function G(e,t,r,n,o,i){if(e>r||e<t){let r,n="bigint"==typeof t?"n":"";throw r=0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`,new U.ERR_OUT_OF_RANGE("value",r,e)}!function(e,t,r){Y(t,"offset"),(void 0===e[t]||void 0===e[t+r])&&K(t,e.length-(r+1))}(n,o,i)}function Y(e,t){if("number"!=typeof e)throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function K(e,t,r){throw Math.floor(e)!==e?(Y(e,r),new U.ERR_OUT_OF_RANGE("offset","an integer",e)):t<0?new U.ERR_BUFFER_OUT_OF_BOUNDS:new U.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}W("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),W("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),W("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>l(2,32)?o=$(String(r)):"bigint"==typeof r&&(o=String(r),(r>l(BigInt(2),BigInt(32))||r<-l(BigInt(2),BigInt(32)))&&(o=$(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n},RangeError);var X=/[^+/0-9A-Za-z-_]/g;function J(e,t){t=t||1/0;let r,n=e.length,o=null,i=[];for(let a=0;a<n;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function Q(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(X,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Z(e,t,r,n){let o;for(o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function ee(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function te(e){return e!=e}var re=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=16*r;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function ne(e){return"undefined"==typeof BigInt?oe:e}function oe(){throw new Error("BigInt not supported")}}),k=c(()=>{t=h(S())});function E(){E.init.call(this)}function T(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function _(e){return void 0===e._maxListeners?E.defaultMaxListeners:e._maxListeners}function C(e,t,r,n){var o,i,a,s;if(T(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=_(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function A(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function I(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=A.bind(n);return o.listener=r,n.wrapFn=o,o}function P(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):B(o,o.length)}function N(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function B(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}var O,D,R,M,z,j,L,F=c(()=>{k(),g(),v(),b(),R="object"==typeof Reflect?Reflect:null,M=R&&"function"==typeof R.apply?R.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)},D=R&&"function"==typeof R.ownKeys?R.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},z=Number.isNaN||function(e){return e!=e},O=E,E.EventEmitter=E,E.prototype._events=void 0,E.prototype._eventsCount=0,E.prototype._maxListeners=void 0,j=10,Object.defineProperty(E,"defaultMaxListeners",{enumerable:!0,get:function(){return j},set:function(e){if("number"!=typeof e||e<0||z(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");j=e}}),E.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},E.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||z(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},E.prototype.getMaxListeners=function(){return _(this)},E.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)M(s,this,t);else{var l=s.length,c=B(s,l);for(r=0;r<l;++r)M(c[r],this,t)}return!0},E.prototype.addListener=function(e,t){return C(this,e,t,!1)},E.prototype.on=E.prototype.addListener,E.prototype.prependListener=function(e,t){return C(this,e,t,!0)},E.prototype.once=function(e,t){return T(t),this.on(e,I(this,e,t)),this},E.prototype.prependOnceListener=function(e,t){return T(t),this.prependListener(e,I(this,e,t)),this},E.prototype.removeListener=function(e,t){var r,n,o,i,a;if(T(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},E.prototype.off=E.prototype.removeListener,E.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},E.prototype.listeners=function(e){return P(this,e,!0)},E.prototype.rawListeners=function(e){return P(this,e,!1)},E.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):N.call(e,t)},E.prototype.listenerCount=N,E.prototype.eventNames=function(){return this._eventsCount>0?D(this._events):[]},(L=O).EventEmitter,L.defaultMaxListeners,L.init,L.listenerCount,L.EventEmitter,L.defaultMaxListeners,L.init,L.listenerCount}),V={};d(V,{EventEmitter:()=>q,default:()=>L,defaultMaxListeners:()=>H,init:()=>U,listenerCount:()=>W,on:()=>$,once:()=>G});var q,H,U,W,$,G,K=c(()=>{k(),g(),v(),b(),F(),F(),L.once=function(e,t){return new Promise((r,n)=>{function o(...t){void 0!==i&&e.removeListener("error",i),r(t)}let i;"error"!==t&&(i=t=>{e.removeListener(name,o),n(t)},e.once("error",i)),e.once(t,o)})},L.on=function(e,t){let r=[],n=[],o=null,i=!1,a={next(){return m(this,null,function*(){let e=r.shift();if(e)return createIterResult(e,!1);if(o){let e=Promise.reject(o);return o=null,e}return i?createIterResult(void 0,!0):new Promise((e,t)=>n.push({resolve:e,reject:t}))})},return(){return m(this,null,function*(){e.removeListener(t,s),e.removeListener("error",l),i=!0;for(let e of n)e.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)})},throw(r){o=r,e.removeListener(t,s),e.removeListener("error",l)},[Symbol.asyncIterator](){return this}};return e.on(t,s),e.on("error",l),a;function s(...e){let t=n.shift();t?t.resolve(createIterResult(e,!1)):r.push(e)}function l(e){i=!0;let t=n.shift();t?t.reject(e):o=e,a.return()}},({EventEmitter:q,defaultMaxListeners:H,init:U,listenerCount:W,on:$,once:G}=L)}),X=u((e,t)=>{k(),g(),v(),b(),"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}),J=u((e,t)=>{k(),g(),v(),b(),t.exports=(K(),p(V)).EventEmitter});function Q(){throw new Error("setTimeout has not been defined")}function Z(){throw new Error("clearTimeout has not been defined")}function ee(e){if(ae===setTimeout)return setTimeout(e,0);if((ae===Q||!ae)&&setTimeout)return ae=setTimeout,setTimeout(e,0);try{return ae(e,0)}catch(Wqe){try{return ae.call(null,e,0)}catch(t){return ae.call(this||le,e,0)}}}function te(){fe&&ue&&(fe=!1,ue.length?de=ue.concat(de):he=-1,de.length&&re())}function re(){if(!fe){var e=ee(te);fe=!0;for(var t=de.length;t;){for(ue=de,de=[];++he<t;)ue&&ue[he].run();he=-1,t=de.length}ue=null,fe=!1,function(e){if(se===clearTimeout)return clearTimeout(e);if((se===Z||!se)&&clearTimeout)return se=clearTimeout,clearTimeout(e);try{se(e)}catch(t){try{return se.call(null,e)}catch(r){return se.call(this||le,e)}}}(e)}}function ne(e,t){(this||le).fun=e,(this||le).array=t}function oe(){}var ie,ae,se,le,ce,ue,de,fe,he,pe,me=c(()=>{k(),g(),v(),b(),le="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:globalThis,ce=ie={},function(){try{ae="function"==typeof setTimeout?setTimeout:Q}catch(e){ae=Q}try{se="function"==typeof clearTimeout?clearTimeout:Z}catch(e){se=Z}}(),de=[],fe=!1,he=-1,ce.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];de.push(new ne(e,t)),1!==de.length||fe||ee(re)},ne.prototype.run=function(){(this||le).fun.apply(null,(this||le).array)},ce.title="browser",ce.browser=!0,ce.env={},ce.argv=[],ce.version="",ce.versions={},ce.on=oe,ce.addListener=oe,ce.once=oe,ce.off=oe,ce.removeListener=oe,ce.removeAllListeners=oe,ce.emit=oe,ce.prependListener=oe,ce.prependOnceListener=oe,ce.listeners=function(e){return[]},ce.binding=function(e){throw new Error("process.binding is not supported")},ce.cwd=function(){return"/"},ce.chdir=function(e){throw new Error("process.chdir is not supported")},ce.umask=function(){return 0},pe=ie,pe.argv,pe.binding,pe.browser,pe.chdir,pe.cwd,pe.emit,pe.env,pe.listeners,pe.nextTick,pe.off,pe.on,pe.once,pe.prependListener,pe.prependOnceListener,pe.removeAllListeners,pe.removeListener,pe.title,pe.umask,pe.version,pe.versions});function ge(e){return e.call.bind(e)}function ve(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(r){return!1}}function ye(e){return Rt&&Dt?void 0!==Y(e):be(e)||we(e)||xe(e)||Se(e)||ke(e)||Ee(e)||Te(e)||_e(e)||Ce(e)||Ae(e)||Ie(e)}function be(e){return Rt&&Dt?"Uint8Array"===Y(e):"[object Uint8Array]"===zt(e)||It(e)&&void 0!==e.buffer}function we(e){return Rt&&Dt?"Uint8ClampedArray"===Y(e):"[object Uint8ClampedArray]"===zt(e)}function xe(e){return Rt&&Dt?"Uint16Array"===Y(e):"[object Uint16Array]"===zt(e)}function Se(e){return Rt&&Dt?"Uint32Array"===Y(e):"[object Uint32Array]"===zt(e)}function ke(e){return Rt&&Dt?"Int8Array"===Y(e):"[object Int8Array]"===zt(e)}function Ee(e){return Rt&&Dt?"Int16Array"===Y(e):"[object Int16Array]"===zt(e)}function Te(e){return Rt&&Dt?"Int32Array"===Y(e):"[object Int32Array]"===zt(e)}function _e(e){return Rt&&Dt?"Float32Array"===Y(e):"[object Float32Array]"===zt(e)}function Ce(e){return Rt&&Dt?"Float64Array"===Y(e):"[object Float64Array]"===zt(e)}function Ae(e){return Rt&&Dt?"BigInt64Array"===Y(e):"[object BigInt64Array]"===zt(e)}function Ie(e){return Rt&&Dt?"BigUint64Array"===Y(e):"[object BigUint64Array]"===zt(e)}function Pe(e){return"[object Map]"===zt(e)}function Ne(e){return"[object Set]"===zt(e)}function Be(e){return"[object WeakMap]"===zt(e)}function Oe(e){return"[object WeakSet]"===zt(e)}function De(e){return"[object ArrayBuffer]"===zt(e)}function Re(e){return"undefined"!=typeof ArrayBuffer&&(De.working?De(e):e instanceof ArrayBuffer)}function Me(e){return"[object DataView]"===zt(e)}function ze(e){return"undefined"!=typeof DataView&&(Me.working?Me(e):e instanceof DataView)}function je(e){return"[object SharedArrayBuffer]"===zt(e)}function Le(e){return"undefined"!=typeof SharedArrayBuffer&&(je.working?je(e):e instanceof SharedArrayBuffer)}function Fe(e){return ve(e,jt)}function Ve(e){return ve(e,Lt)}function qe(e){return ve(e,Ft)}function He(e){return Bt&&ve(e,ms)}function Ue(e){return Ot&&ve(e,ys)}function We(e,t){var r={seen:[],stylize:Ge};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Qe(t)?r.showHidden=t:t&&qt._extend(r,t),rt(r.showHidden)&&(r.showHidden=!1),rt(r.depth)&&(r.depth=2),rt(r.colors)&&(r.colors=!1),rt(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=$e),Ye(r,e,r.depth)}function $e(e,t){var r=We.styles[t];return r?"["+We.colors[r][0]+"m"+e+"["+We.colors[r][1]+"m":e}function Ge(e,t){return e}function Ye(e,t,r){if(e.customInspect&&t&&st(t.inspect)&&t.inspect!==qt.inspect&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return tt(n)||(n=Ye(e,n,r)),n}var o=function(e,t){if(rt(t))return e.stylize("undefined","undefined");if(tt(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return et(t)?e.stylize(""+t,"number"):Qe(t)?e.stylize(""+t,"boolean"):Ze(t)?e.stylize("null","null"):void 0}(e,t);if(o)return o;var i,a=Object.keys(t),s=(i={},a.forEach(function(e,t){i[e]=!0}),i);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),at(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Ke(t);if(0===a.length){if(st(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(nt(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(it(t))return e.stylize(Date.prototype.toString.call(t),"date");if(at(t))return Ke(t)}var c,u="",d=!1,f=["{","}"];return Je(t)&&(d=!0,f=["[","]"]),st(t)&&(u=" [Function"+(t.name?": "+t.name:"")+"]"),nt(t)&&(u=" "+RegExp.prototype.toString.call(t)),it(t)&&(u=" "+Date.prototype.toUTCString.call(t)),at(t)&&(u=" "+Ke(t)),0!==a.length||d&&0!=t.length?r<0?nt(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=d?function(e,t,r,n,o){for(var i=[],a=0,s=t.length;a<s;++a)ut(t,String(a))?i.push(Xe(e,t,r,n,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(Xe(e,t,r,n,o,!0))}),i}(e,t,r,s,a):a.map(function(n){return Xe(e,t,r,s,n,d)}),e.seen.pop(),function(e,t,r){return e.reduce(function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(c,u,f)):f[0]+u+f[1]}function Ke(e){return"["+Error.prototype.toString.call(e)+"]"}function Xe(e,t,r,n,o,i){var a,s,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),ut(n,o)||(a="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(s=Ze(r)?Ye(e,l.value,null):Ye(e,l.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return"   "+e}).join("\n")):s=e.stylize("[Circular]","special")),rt(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function Je(e){return Array.isArray(e)}function Qe(e){return"boolean"==typeof e}function Ze(e){return null===e}function et(e){return"number"==typeof e}function tt(e){return"string"==typeof e}function rt(e){return void 0===e}function nt(e){return ot(e)&&"[object RegExp]"===lt(e)}function ot(e){return"object"==typeof e&&null!==e}function it(e){return ot(e)&&"[object Date]"===lt(e)}function at(e){return ot(e)&&("[object Error]"===lt(e)||e instanceof Error)}function st(e){return"function"==typeof e}function lt(e){return Object.prototype.toString.call(e)}function ct(e){return e<10?"0"+e.toString(10):e.toString(10)}function ut(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function dt(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}var ft,ht,pt,mt,gt,vt,yt,bt,wt,xt,St,kt,Et,Tt,_t,Ct,At,It,Pt,Nt,Bt,Ot,Dt,Rt,Mt,zt,jt,Lt,Ft,Vt,qt,Ht,Ut,Wt,$t,Gt,Yt,Kt,Xt,Jt=c(()=>{if(k(),g(),v(),b(),me(),ft="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,ht=Object.prototype.toString,pt=function(e){return!(ft&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===ht.call(e)},mt=function(e){return!!pt(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==ht.call(e)&&"[object Function]"===ht.call(e.callee)},gt=function(){return pt(arguments)}(),pt.isLegacyArguments=mt,vt=gt?pt:mt,yt=Object.prototype.toString,bt=Function.prototype.toString,wt=/^\s*(?:function)?\*/,xt="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,St=Object.getPrototypeOf,kt=function(){if(!xt)return!1;try{return Function("return function*() {}")()}catch(e){}}(),Et=kt?St(kt):{},Tt=function(e){return"function"==typeof e&&(!!wt.test(bt.call(e))||(xt?St(e)===Et:"[object GeneratorFunction]"===yt.call(e)))},_t="function"==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},At={},It=Ct=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8},Pt=vt,Nt=Tt,Bt="undefined"!=typeof BigInt,Ot="undefined"!=typeof Symbol,Dt=Ot&&void 0!==Symbol.toStringTag,Rt="undefined"!=typeof Uint8Array,Mt="undefined"!=typeof ArrayBuffer,Rt&&Dt){var e=Object.getPrototypeOf(Uint8Array.prototype);ge(Object.getOwnPropertyDescriptor(e,Symbol.toStringTag).get)}if(zt=ge(Object.prototype.toString),jt=ge(Number.prototype.valueOf),Lt=ge(String.prototype.valueOf),Ft=ge(Boolean.prototype.valueOf),Bt)ge(BigInt.prototype.valueOf);if(Ot)ge(Symbol.prototype.valueOf);At.isArgumentsObject=Pt,At.isGeneratorFunction=Nt,At.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},At.isArrayBufferView=function(e){return Mt&&ArrayBuffer.isView?ArrayBuffer.isView(e):ye(e)||ze(e)},At.isTypedArray=ye,At.isUint8Array=be,At.isUint8ClampedArray=we,At.isUint16Array=xe,At.isUint32Array=Se,At.isInt8Array=ke,At.isInt16Array=Ee,At.isInt32Array=Te,At.isFloat32Array=_e,At.isFloat64Array=Ce,At.isBigInt64Array=Ae,At.isBigUint64Array=Ie,Pe.working="undefined"!=typeof Map&&Pe(new Map),At.isMap=function(e){return"undefined"!=typeof Map&&(Pe.working?Pe(e):e instanceof Map)},Ne.working="undefined"!=typeof Set&&Ne(new Set),At.isSet=function(e){return"undefined"!=typeof Set&&(Ne.working?Ne(e):e instanceof Set)},Be.working="undefined"!=typeof WeakMap&&Be(new WeakMap),At.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(Be.working?Be(e):e instanceof WeakMap)},Oe.working="undefined"!=typeof WeakSet&&Oe(new WeakSet),At.isWeakSet=function(e){return Oe(e)},De.working="undefined"!=typeof ArrayBuffer&&De(new ArrayBuffer),At.isArrayBuffer=Re,Me.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&Me(new DataView(new ArrayBuffer(1),0,1)),At.isDataView=ze,je.working="undefined"!=typeof SharedArrayBuffer&&je(new SharedArrayBuffer),At.isSharedArrayBuffer=Le,At.isAsyncFunction=function(e){return"[object AsyncFunction]"===zt(e)},At.isMapIterator=function(e){return"[object Map Iterator]"===zt(e)},At.isSetIterator=function(e){return"[object Set Iterator]"===zt(e)},At.isGeneratorObject=function(e){return"[object Generator]"===zt(e)},At.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===zt(e)},At.isNumberObject=Fe,At.isStringObject=Ve,At.isBooleanObject=qe,At.isBigIntObject=He,At.isSymbolObject=Ue,At.isBoxedPrimitive=function(e){return Fe(e)||Ve(e)||qe(e)||He(e)||Ue(e)},At.isAnyArrayBuffer=function(e){return Rt&&(Re(e)||Le(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(At,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}),Vt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:globalThis,qt={},Ht=pe,Ut=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},Wt=/%[sdj%]/g,qt.format=function(e){if(!tt(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(We(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,i=String(e).replace(Wt,function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}}),a=n[r];r<o;a=n[++r])Ze(a)||!ot(a)?i+=" "+a:i+=" "+We(a);return i},qt.deprecate=function(e,t){if(void 0!==Ht&&!0===Ht.noDeprecation)return e;if(void 0===Ht)return function(){return qt.deprecate(e,t).apply(this||Vt,arguments)};var r=!1;return function(){if(!r){if(Ht.throwDeprecation)throw new Error(t);Ht.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this||Vt,arguments)}},$t={},Gt=/^$/,Ht.env.NODE_DEBUG&&(Yt=(Yt=Ht.env.NODE_DEBUG).replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Gt=new RegExp("^"+Yt+"$","i")),qt.debuglog=function(e){if(e=e.toUpperCase(),!$t[e])if(Gt.test(e)){var t=Ht.pid;$t[e]=function(){var r=qt.format.apply(qt,arguments);console.error("%s %d: %s",e,t,r)}}else $t[e]=function(){};return $t[e]},qt.inspect=We,We.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},We.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},qt.types=At,qt.isArray=Je,qt.isBoolean=Qe,qt.isNull=Ze,qt.isNullOrUndefined=function(e){return null==e},qt.isNumber=et,qt.isString=tt,qt.isSymbol=function(e){return"symbol"==typeof e},qt.isUndefined=rt,qt.isRegExp=nt,qt.types.isRegExp=nt,qt.isObject=ot,qt.isDate=it,qt.types.isDate=it,qt.isError=at,qt.types.isNativeError=at,qt.isFunction=st,qt.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},qt.isBuffer=Ct,Kt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],qt.log=function(){var e,t;console.log("%s - %s",(t=[ct((e=new Date).getHours()),ct(e.getMinutes()),ct(e.getSeconds())].join(":"),[e.getDate(),Kt[e.getMonth()],t].join(" ")),qt.format.apply(qt,arguments))},qt.inherits=_t,qt._extend=function(e,t){if(!t||!ot(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e},Xt="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0,qt.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(Xt&&e[Xt]){var t;if("function"!=typeof(t=e[Xt]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,Xt,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push(function(e,n){e?r(e):t(n)});try{e.apply(this||Vt,o)}catch(a){r(a)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Xt&&Object.defineProperty(t,Xt,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,Ut(e))},qt.promisify.custom=Xt,qt.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");var o=this||Vt,i=function(){return n.apply(o,arguments)};e.apply(this||Vt,t).then(function(e){Ht.nextTick(i.bind(null,null,e))},function(e){Ht.nextTick(dt.bind(null,e,i))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,Ut(e)),t}}),Qt=c(()=>{k(),g(),v(),b(),Jt(),me(),qt._extend,qt.callbackify,qt.debuglog,qt.deprecate,qt.format,qt.inherits,qt.inspect,qt.isArray,qt.isBoolean,qt.isBuffer,qt.isDate,qt.isError,qt.isFunction,qt.isNull,qt.isNullOrUndefined,qt.isNumber,qt.isObject,qt.isPrimitive,qt.isRegExp,qt.isString,qt.isSymbol,qt.isUndefined,qt.log,qt.promisify,qt._extend,qt.callbackify,qt.debuglog,qt.deprecate,qt.format,qt.inherits,qt.inspect,qt.isArray,qt.isBoolean,qt.isBuffer,qt.isDate,qt.isError,qt.isFunction,qt.isNull,qt.isNullOrUndefined,qt.isNumber,qt.isObject,qt.isPrimitive,qt.isRegExp,qt.isString,qt.isSymbol,qt.isUndefined,qt.log,qt.promisify,qt.types}),Zt={};d(Zt,{TextDecoder:()=>_r,TextEncoder:()=>Tr,_extend:()=>er,callbackify:()=>tr,debuglog:()=>rr,default:()=>qt,deprecate:()=>nr,format:()=>or,inherits:()=>ir,inspect:()=>ar,isArray:()=>sr,isBoolean:()=>lr,isBuffer:()=>cr,isDate:()=>ur,isError:()=>dr,isFunction:()=>fr,isNull:()=>hr,isNullOrUndefined:()=>pr,isNumber:()=>mr,isObject:()=>gr,isPrimitive:()=>vr,isRegExp:()=>yr,isString:()=>br,isSymbol:()=>wr,isUndefined:()=>xr,log:()=>Sr,promisify:()=>kr,types:()=>Er});var er,tr,rr,nr,or,ir,ar,sr,lr,cr,ur,dr,fr,hr,pr,mr,gr,vr,yr,br,wr,xr,Sr,kr,Er,Tr,_r,Cr=c(()=>{k(),g(),v(),b(),Qt(),Jt(),Jt(),me(),er=qt._extend,tr=qt.callbackify,rr=qt.debuglog,nr=qt.deprecate,or=qt.format,ir=qt.inherits,ar=qt.inspect,sr=qt.isArray,lr=qt.isBoolean,cr=qt.isBuffer,ur=qt.isDate,dr=qt.isError,fr=qt.isFunction,hr=qt.isNull,pr=qt.isNullOrUndefined,mr=qt.isNumber,gr=qt.isObject,vr=qt.isPrimitive,yr=qt.isRegExp,br=qt.isString,wr=qt.isSymbol,xr=qt.isUndefined,Sr=qt.log,kr=qt.promisify,Er=qt.types,Tr=qt.TextEncoder=globalThis.TextEncoder,_r=qt.TextDecoder=globalThis.TextDecoder}),Ar=u((e,t)=>{function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}k(),g(),v(),b();var i=S().Buffer,a=(Cr(),p(Zt)).inspect,s=a&&a.custom||"inspect";function l(e,t,r){i.prototype.copy.call(e,t,r)}t.exports=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.head=null,this.tail=null,this.length=0}return o(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return i.alloc(0);for(var t=i.allocUnsafe(e>>>0),r=this.head,n=0;r;)l(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var o=t.data,i=e>o.length?o.length:e;if(i===o.length?n+=o:n+=o.slice(0,e),0===(e-=i)){i===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=i.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0===(e-=a)){a===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(a));break}++n}return this.length-=n,t}},{key:s,value:function(e,t){return a(this,function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?r(Object(o),!0).forEach(function(t){n(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({},t,{depth:0,customInspect:!1}))}}]),e}()}),Ir=u((t,r)=>{function n(e,t){i(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}k(),g(),v(),b(),r.exports={destroy:function(t,r){var a=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(r?r(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!r&&t?a._writableState?a._writableState.errorEmitted?e.nextTick(o,a):(a._writableState.errorEmitted=!0,e.nextTick(n,a,t)):e.nextTick(n,a,t):r?(e.nextTick(o,a),r(t)):e.nextTick(o,a)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}),Pr=u((e,t)=>{k(),g(),v(),b();var r={};function n(e,t,n){n||(n=Error);var o=function(e){function r(r,n,o){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,o))||this}return function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(r,e),r}(n);o.prototype.name=n.name,o.prototype.code=e,r[e]=o}function o(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(e){return String(e)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(e,t,r){var n,i;if("string"==typeof t&&function(e,t){return e.substr(0,t.length)===t}(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))i="The ".concat(e," ").concat(n," ").concat(o(t,"type"));else{var a=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(o(t,"type"))}return i+=". Received type ".concat(typeof r)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r}),Nr=u((e,t)=>{k(),g(),v(),b();var r=Pr().codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,n,o){var i=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,o,n);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new r(o?n:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}}}),Br=u((e,t)=>{function r(e){try{if(!globalThis.localStorage)return!1}catch(r){return!1}var t=globalThis.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}k(),g(),v(),b(),t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}),Or=u((t,r)=>{function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var o;k(),g(),v(),b(),r.exports=I,I.WritableState=A;var i={deprecate:Br()},a=J(),s=S().Buffer,l=globalThis.Uint8Array||function(){};var c,u=Ir(),d=Nr().getHighWaterMark,f=Pr().codes,h=f.ERR_INVALID_ARG_TYPE,p=f.ERR_METHOD_NOT_IMPLEMENTED,m=f.ERR_MULTIPLE_CALLBACK,y=f.ERR_STREAM_CANNOT_PIPE,w=f.ERR_STREAM_DESTROYED,x=f.ERR_STREAM_NULL_VALUES,E=f.ERR_STREAM_WRITE_AFTER_END,T=f.ERR_UNKNOWN_ENCODING,_=u.errorOrDestroy;function C(){}function A(t,r,i){o=o||Dr(),t=t||{},"boolean"!=typeof i&&(i=r instanceof o),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=d(this,t,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,r){var n=t._writableState,o=n.sync,i=n.writecb;if("function"!=typeof i)throw new m;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),r)!function(t,r,n,o,i){--r.pendingcb,n?(e.nextTick(i,o),e.nextTick(R,t,r),t._writableState.errorEmitted=!0,_(t,o)):(i(o),t._writableState.errorEmitted=!0,_(t,o),R(t,r))}(t,n,o,r,i);else{var a=O(n)||t.destroyed;!a&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&B(t,n),o?e.nextTick(N,t,n,a,i):N(t,n,a,i)}}(r,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function I(e){var t=this instanceof(o=o||Dr());if(!t&&!c.call(I,this))return new I(e);this._writableState=new A(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function P(e,t,r,n,o,i,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new w("write")):r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function N(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),R(e,t)}function B(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var o=t.bufferedRequestCount,i=new Array(o),a=t.corkedRequestsFree;a.entry=r;for(var s=0,l=!0;r;)i[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;i.allBuffers=l,P(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,d=r.callback;if(P(e,t,!1,t.objectMode?1:c.length,c,u,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function O(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function D(e,t){e._final(function(r){t.pendingcb--,r&&_(e,r),t.prefinished=!0,e.emit("prefinish"),R(e,t)})}function R(t,r){var n=O(r);if(n&&(function(t,r){!r.prefinished&&!r.finalCalled&&("function"!=typeof t._final||r.destroyed?(r.prefinished=!0,t.emit("prefinish")):(r.pendingcb++,r.finalCalled=!0,e.nextTick(D,t,r)))}(t,r),0===r.pendingcb&&(r.finished=!0,t.emit("finish"),r.autoDestroy))){var o=t._readableState;(!o||o.autoDestroy&&o.endEmitted)&&t.destroy()}return n}X()(I,a),A.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(A.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===I&&(e&&e._writableState instanceof A)}})):c=function(e){return e instanceof this},I.prototype.pipe=function(){_(this,new y)},I.prototype.write=function(t,r,n){var o=this._writableState,i=!1,a=!o.objectMode&&function(e){return s.isBuffer(e)||e instanceof l}(t);return a&&!s.isBuffer(t)&&(t=function(e){return s.from(e)}(t)),"function"==typeof r&&(n=r,r=null),a?r="buffer":r||(r=o.defaultEncoding),"function"!=typeof n&&(n=C),o.ending?function(t,r){var n=new E;_(t,n),e.nextTick(r,n)}(this,n):(a||function(t,r,n,o){var i;return null===n?i=new x:"string"!=typeof n&&!r.objectMode&&(i=new h("chunk",["string","Buffer"],n)),!i||(_(t,i),e.nextTick(o,i),!1)}(this,o,t,n))&&(o.pendingcb++,i=function(e,t,r,n,o,i){if(!r){var a=function(e,t,r){return!e.objectMode&&!1!==e.decodeStrings&&"string"==typeof t&&(t=s.from(t,r)),t}(t,n,o);n!==a&&(r=!0,o="buffer",n=a)}var l=t.objectMode?1:n.length;t.length+=l;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else P(e,t,!1,l,n,o,i);return c}(this,o,a,t,r,n)),i},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&B(this,e))},I.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new T(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),I.prototype._write=function(e,t,r){r(new p("_write()"))},I.prototype._writev=null,I.prototype.end=function(t,r,n){var o=this._writableState;return"function"==typeof t?(n=t,t=null,r=null):"function"==typeof r&&(n=r,r=null),null!=t&&this.write(t,r),o.corked&&(o.corked=1,this.uncork()),o.ending||function(t,r,n){r.ending=!0,R(t,r),n&&(r.finished?e.nextTick(n):t.once("finish",n)),r.ended=!0,t.writable=!1}(this,o,n),this},Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),I.prototype.destroy=u.destroy,I.prototype._undestroy=u.undestroy,I.prototype._destroy=function(e,t){t(e)}}),Dr=u((t,r)=>{k(),g(),v(),b();var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};r.exports=c;var o,i,a,s=Fr(),l=Or();for(X()(c,s),o=n(l.prototype),a=0;a<o.length;a++)i=o[a],c.prototype[i]||(c.prototype[i]=l.prototype[i]);function c(e){if(!(this instanceof c))return new c(e);s.call(this,e),l.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||e.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0===this._readableState||void 0===this._writableState||(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}),Rr=u((e,t)=>{k(),g(),v(),b();var r=S(),n=r.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=i),i.prototype=Object.create(n.prototype),o(n,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=n(e);return void 0!==t?"string"==typeof r?o.fill(t,r):o.fill(t):o.fill(0),o},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}}),Mr=u(e=>{k(),g(),v(),b();var t=Rr().Buffer,r=t.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(e){var n;switch(this.encoding=function(e){var n=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof n&&(t.isEncoding===r||!r(e)))throw new Error("Unknown encoding: "+e);return n||e}(e),this.encoding){case"utf16le":this.text=a,this.end=s,n=4;break;case"utf8":this.fillLast=i,n=4;break;case"base64":this.text=l,this.end=c,n=3;break;default:return this.write=u,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function i(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function a(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function s(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}e.StringDecoder=n,n.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},n.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},n.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=o(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=o(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=o(t[n]),i>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}}),zr=u((e,t)=>{k(),g(),v(),b();var r=Pr().codes.ERR_STREAM_PREMATURE_CLOSE;function n(){}t.exports=function e(t,o,i){if("function"==typeof o)return e(t,null,o);o||(o={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n)}}}(i||n);var a=o.readable||!1!==o.readable&&t.readable,s=o.writable||!1!==o.writable&&t.writable,l=function(){t.writable||u()},c=t._writableState&&t._writableState.finished,u=function(){s=!1,c=!0,a||i.call(t)},d=t._readableState&&t._readableState.endEmitted,f=function(){a=!1,d=!0,s||i.call(t)},h=function(e){i.call(t,e)},p=function(){var e;return a&&!d?((!t._readableState||!t._readableState.ended)&&(e=new r),i.call(t,e)):s&&!c?((!t._writableState||!t._writableState.ended)&&(e=new r),i.call(t,e)):void 0},m=function(){t.req.on("finish",u)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",u),t.on("abort",p),t.req?m():t.on("request",m)):s&&!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",f),t.on("finish",u),!1!==o.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",u),t.removeListener("abort",p),t.removeListener("request",m),t.req&&t.req.removeListener("finish",u),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",u),t.removeListener("end",f),t.removeListener("error",h),t.removeListener("close",p)}}}),jr=u((t,r)=>{var n;function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}k(),g(),v(),b();var i=zr(),a=Symbol("lastResolve"),s=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var r=e[f].read();null!==r&&(e[u]=null,e[a]=null,e[s]=null,t(h(r,!1)))}}function m(t){e.nextTick(p,t)}var y=Object.getPrototypeOf(function(){}),w=Object.setPrototypeOf((o(n={get stream(){return this[f]},next:function(){var t=this,r=this[l];if(null!==r)return Promise.reject(r);if(this[c])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise(function(r,n){e.nextTick(function(){t[l]?n(t[l]):r(h(void 0,!0))})});var n,o=this[u];if(o)n=new Promise(function(e,t){return function(r,n){e.then(function(){t[c]?r(h(void 0,!0)):t[d](r,n)},n)}}(o,this));else{var i=this[f].read();if(null!==i)return Promise.resolve(h(i,!1));n=new Promise(this[d])}return this[u]=n,n}},Symbol.asyncIterator,function(){return this}),o(n,"return",function(){var e=this;return new Promise(function(t,r){e[f].destroy(null,function(e){e?r(e):t(h(void 0,!0))})})}),n),y);r.exports=function(e){var t,r=Object.create(w,(o(t={},f,{value:e,writable:!0}),o(t,a,{value:null,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,c,{value:e._readableState.endEmitted,writable:!0}),o(t,d,{value:function(e,t){var n=r[f].read();n?(r[u]=null,r[a]=null,r[s]=null,e(h(n,!1))):(r[a]=e,r[s]=t)},writable:!0}),t));return r[u]=null,i(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s];return null!==t&&(r[u]=null,r[a]=null,r[s]=null,t(e)),void(r[l]=e)}var n=r[a];null!==n&&(r[u]=null,r[a]=null,r[s]=null,n(h(void 0,!0))),r[c]=!0}),e.on("readable",m.bind(null,r)),r}}),Lr=u((e,t)=>{k(),g(),v(),b(),t.exports=function(){throw new Error("Readable.from is not available in the browser")}}),Fr=u((t,r)=>{var n;k(),g(),v(),b(),r.exports=P,P.ReadableState=I,(K(),p(V)).EventEmitter;var o=function(e,t){return e.listeners(t).length},i=J(),a=S().Buffer,s=globalThis.Uint8Array||function(){};var l,c=(Cr(),p(Zt));l=c&&c.debuglog?c.debuglog("stream"):function(){};var u,d,f,h=Ar(),m=Ir(),y=Nr().getHighWaterMark,w=Pr().codes,x=w.ERR_INVALID_ARG_TYPE,E=w.ERR_STREAM_PUSH_AFTER_EOF,T=w.ERR_METHOD_NOT_IMPLEMENTED,_=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;X()(P,i);var C=m.errorOrDestroy,A=["error","close","destroy","pause","resume"];function I(e,t,r){n=n||Dr(),e=e||{},"boolean"!=typeof r&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",r),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(u||(u=Mr().StringDecoder),this.decoder=new u(e.encoding),this.encoding=e.encoding)}function P(e){if(n=n||Dr(),!(this instanceof P))return new P(e);var t=this instanceof n;this._readableState=new I(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),i.call(this)}function N(e,t,r,n,o){l("readableAddChunk",t);var i,c=e._readableState;if(null===t)c.reading=!1,function(e,t){if(l("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?R(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,M(e)))}}(e,c);else if(o||(i=function(e,t){var r;return!function(e){return a.isBuffer(e)||e instanceof s}(t)&&"string"!=typeof t&&void 0!==t&&!e.objectMode&&(r=new x("chunk",["string","Buffer","Uint8Array"],t)),r}(c,t)),i)C(e,i);else if(c.objectMode||t&&t.length>0)if("string"!=typeof t&&!c.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=function(e){return a.from(e)}(t)),n)c.endEmitted?C(e,new _):B(e,c,t,!0);else if(c.ended)C(e,new E);else{if(c.destroyed)return!1;c.reading=!1,c.decoder&&!r?(t=c.decoder.write(t),c.objectMode||0!==t.length?B(e,c,t,!1):z(e,c)):B(e,c,t,!1)}else n||(c.reading=!1,z(e,c));return!c.ended&&(c.length<c.highWaterMark||0===c.length)}function B(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&R(e)),z(e,t)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),P.prototype.destroy=m.destroy,P.prototype._undestroy=m.undestroy,P.prototype._destroy=function(e,t){t(e)},P.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=a.from(e,t),t=""),r=!0),N(this,e,t,!1,r)},P.prototype.unshift=function(e){return N(this,e,null,!0,!1)},P.prototype.isPaused=function(){return!1===this._readableState.flowing},P.prototype.setEncoding=function(e){u||(u=Mr().StringDecoder);var t=new u(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";null!==r;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var O=1073741824;function D(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function R(t){var r=t._readableState;l("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(l("emitReadable",r.flowing),r.emittedReadable=!0,e.nextTick(M,t))}function M(e){var t=e._readableState;l("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,H(e)}function z(t,r){r.readingMore||(r.readingMore=!0,e.nextTick(j,t,r))}function j(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(l("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function L(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function F(e){l("readable nexttick read 0"),e.read(0)}function q(e,t){l("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),H(e),t.flowing&&!t.reading&&e.read(0)}function H(e){var t=e._readableState;for(l("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function W(t){var r=t._readableState;l("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,e.nextTick($,r,t))}function $(e,t){if(l("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function G(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}P.prototype.read=function(e){l("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?W(this):R(this),null;if(0===(e=D(e,t))&&t.ended)return 0===t.length&&W(this),null;var n,o=t.needReadable;return l("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&l("length less than watermark",o=!0),t.ended||t.reading?l("reading or ended",o=!1):o&&(l("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=D(r,t))),null===(n=e>0?U(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&W(this)),null!==n&&this.emit("data",n),n},P.prototype._read=function(e){C(this,new T("_read()"))},P.prototype.pipe=function(t,r){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,l("pipe count=%d opts=%j",i.pipesCount,r);var a=(!r||!1!==r.end)&&t!==e.stdout&&t!==e.stderr?c:g;function s(e,r){l("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,l("cleanup"),t.removeListener("close",p),t.removeListener("finish",m),t.removeListener("drain",u),t.removeListener("error",h),t.removeListener("unpipe",s),n.removeListener("end",c),n.removeListener("end",g),n.removeListener("data",f),d=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u())}function c(){l("onend"),t.end()}i.endEmitted?e.nextTick(a):n.once("end",a),t.on("unpipe",s);var u=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,H(e))}}(n);t.on("drain",u);var d=!1;function f(e){l("ondata");var r=t.write(e);l("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==G(i.pipes,t))&&!d&&(l("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function h(e){l("onerror",e),g(),t.removeListener("error",h),0===o(t,"error")&&C(t,e)}function p(){t.removeListener("finish",m),g()}function m(){l("onfinish"),t.removeListener("close",p),g()}function g(){l("unpipe"),n.unpipe(t)}return n.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(t,"error",h),t.once("close",p),t.once("finish",m),t.emit("pipe",n),i.flowing||(l("pipe resume"),n.resume()),t},P.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var a=G(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},P.prototype.on=function(t,r){var n=i.prototype.on.call(this,t,r),o=this._readableState;return"data"===t?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===t&&!o.endEmitted&&!o.readableListening&&(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,l("on readable",o.length,o.reading),o.length?R(this):o.reading||e.nextTick(F,this)),n},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(t,r){var n=i.prototype.removeListener.call(this,t,r);return"readable"===t&&e.nextTick(L,this),n},P.prototype.removeAllListeners=function(t){var r=i.prototype.removeAllListeners.apply(this,arguments);return("readable"===t||void 0===t)&&e.nextTick(L,this),r},P.prototype.resume=function(){var t=this._readableState;return t.flowing||(l("resume"),t.flowing=!t.readableListening,function(t,r){r.resumeScheduled||(r.resumeScheduled=!0,e.nextTick(q,t,r))}(this,t)),t.paused=!1,this},P.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",function(){if(l("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){(l("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||!(r.objectMode||o&&o.length))||(t.push(o)||(n=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<A.length;i++)e.on(A[i],this.emit.bind(this,A[i]));return this._read=function(t){l("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(P.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=jr()),d(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),P._fromList=U,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(P.from=function(e,t){return void 0===f&&(f=Lr()),f(P,e,t)})}),Vr=u((e,t)=>{k(),g(),v(),b(),t.exports=c;var r=Pr().codes,n=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,i=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=r.ERR_TRANSFORM_WITH_LENGTH_0,s=Dr();function l(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(e){if(!(this instanceof c))return new c(e);s.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",u)}function u(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new i;return e.push(null)}X()(c,s),c.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},c.prototype._transform=function(e,t,r){r(new n("_transform()"))},c.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},c.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},c.prototype._destroy=function(e,t){s.prototype._destroy.call(this,e,function(e){t(e)})}}),qr=u((e,t)=>{k(),g(),v(),b(),t.exports=n;var r=Vr();function n(e){if(!(this instanceof n))return new n(e);r.call(this,e)}X()(n,r),n.prototype._transform=function(e,t,r){r(null,e)}}),Hr=u((e,t)=>{var r;k(),g(),v(),b();var n=Pr().codes,o=n.ERR_MISSING_ARGS,i=n.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function s(e){e()}function l(e,t){return e.pipe(t)}t.exports=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var c=function(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():a}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var u,d=t.map(function(e,n){var o=n<t.length-1;return function(e,t,n,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;e.on("close",function(){a=!0}),void 0===r&&(r=zr()),r(e,{readable:t,writable:n},function(e){if(e)return o(e);a=!0,o()});var s=!1;return function(t){if(!a&&!s){if(s=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();o(t||new i("pipe"))}}}(e,o,n>0,function(e){u||(u=e),e&&d.forEach(s),!o&&(d.forEach(s),c(u))})});return t.reduce(l)}}),Ur=u((e,t)=>{k(),g(),v(),b(),t.exports=n;var r=(K(),p(V)).EventEmitter;function n(){r.call(this)}X()(n,r),n.Readable=Fr(),n.Writable=Or(),n.Duplex=Dr(),n.Transform=Vr(),n.PassThrough=qr(),n.finished=zr(),n.pipeline=Hr(),n.Stream=n,n.prototype.pipe=function(e,t){var n=this;function o(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",o),e.on("drain",i),!e._isStdio&&(!t||!1!==t.end)&&(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",o),e.removeListener("drain",i),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",c),e.removeListener("error",c),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",c),e.on("error",c),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}});k(),g(),v(),b(),k(),g(),v(),b();var Wr=class{constructor(e,t){if(!t)throw Error("Null Argument Exception");this.id=e,this.assembler=t}get contentType(){return this.assembler.payloadType}get length(){return this.assembler.contentLength}getStream(){return this.stream||(this.stream=this.assembler.getPayloadStream()),this.stream}cancel(){this.assembler.close()}readAsString(){return m(this,null,function*(){let{bufferArray:e}=yield this.readAll();return(e||[]).map(e=>e.toString("utf8")).join("")})}readAsJson(){return m(this,null,function*(){let e=yield this.readAsString();return JSON.parse(e)})}readAll(){return m(this,null,function*(){let e=[],t=0,r=this.getStream();for(;t<r.length;){let n=r.read(r.length);e.push(n),t+=n.length}return t<this.length&&(yield new Promise(n=>{var o;r.subscribe((o=this,r=>{e.push(r),t+=r.length,t===o.length&&n(!0)}))})),{bufferArray:e,size:t}})}};k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b();var $r,Gr=[];for($r=0;$r<256;++$r)Gr.push(($r+256).toString(16).slice(1));k(),g(),v(),b();var Yr,Kr=new Uint8Array(16);function Xr(){if(!Yr&&!(Yr="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yr(Kr)}k(),g(),v(),b(),k(),g(),v(),b();var Jr={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var Qr=function(e,t,r){if(Jr.randomUUID&&!t&&!e)return Jr.randomUUID();var n=(e=e||{}).random||(e.rng||Xr)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return function(e,t=0){return(Gr[e[t+0]]+Gr[e[t+1]]+Gr[e[t+2]]+Gr[e[t+3]]+"-"+Gr[e[t+4]]+Gr[e[t+5]]+"-"+Gr[e[t+6]]+Gr[e[t+7]]+"-"+Gr[e[t+8]]+Gr[e[t+9]]+"-"+Gr[e[t+10]]+Gr[e[t+11]]+Gr[e[t+12]]+Gr[e[t+13]]+Gr[e[t+14]]+Gr[e[t+15]]).toLowerCase()}(n)};function Zr(){return Qr()}var en=class{constructor(e){var t,r,n,o,i,a;this.content=e,this.id=Zr(),this.description={id:this.id,type:null!=(n=null==(r=null==(t=this.content)?void 0:t.headers)?void 0:r.type)?n:"unknown",length:null!=(a=null==(i=null==(o=this.content)?void 0:o.headers)?void 0:i.contentLength)?a:0}}},tn=class{constructor(e,t){this.headers=e,this.stream=t}getStream(){return this.stream}};k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b();k(),g(),v(),b(),k(),g(),v(),b();var rn=h(Ur()),nn=class extends rn.Duplex{constructor(e){super(e),this.length=0,this.bufferList=[]}_write(e,r,n){let o=t.Buffer.from(e);this.bufferList.push(o),this.length+=e.length,this._onData&&this._onData(o),n()}_read(e){if(0===this.bufferList.length)this.push(null);else{let t=0;for(;t<e&&this.bufferList.length>0;){let e=this.bufferList[0];this.push(e),this.bufferList.splice(0,1),t+=e.length}}}subscribe(e){this._onData=e}};k(),g(),v(),b();k(),g(),v(),b(),k(),g(),v(),b();var on=class{constructor(e){e&&(this.webSocket=e)}connect(e){return m(this,null,function*(){let t,r;return this.webSocket||(this.webSocket=new WebSocket(e)),this.webSocket.onerror=e=>{r(e)},this.webSocket.onopen=e=>{t(e)},new Promise((e,n)=>{t=e,r=n})})}get isConnected(){return 1===this.webSocket.readyState}write(e){this.webSocket.send(e)}close(){this.webSocket.close()}setOnMessageHandler(e){let t="buffer",r=[];this.webSocket.onmessage=n=>{let o=new FileReader,i={buffer:null};r.push(i),o.onload=n=>{let o=n.target;if(i[t]=o.result,r[0]===i)for(;0<r.length&&r[0][t];)e(r[0][t]),r.splice(0,1)},o.readAsArrayBuffer(n.data)}}setOnErrorHandler(e){this.webSocket.onerror=t=>{t&&e(t)}}setOnCloseHandler(e){this.webSocket.onclose=e}};k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b();var an=class{static serialize(e,t){t.write(e.payloadType,this.TypeOffset,1,this.Encoding),t.write(this.Delimiter,this.TypeDelimiterOffset,1,this.Encoding),t.write(this.headerLengthPadder(e.payloadLength,this.LengthLength,"0"),this.LengthOffset,this.LengthLength,this.Encoding),t.write(this.Delimiter,this.LengthDelimeterOffset,1,this.Encoding),t.write(e.id,this.IdOffset),t.write(this.Delimiter,this.IdDelimeterOffset,1,this.Encoding),t.write(e.end?this.End:this.NotEnd,this.EndOffset),t.write(this.Terminator,this.TerminatorOffset)}static deserialize(e){let t=e.toString(this.Encoding),r=t.split(this.Delimiter);if(4!==r.length)throw Error(`Cannot parse header, header is malformed. Header: ${t}`);let[n,o,i,a]=r,s={end:"1\n"===a,payloadLength:Number(o),payloadType:n,id:i};if(!(s.payloadLength<=4096&&s.payloadLength>=0))throw Error(`Header length of ${s.payloadLength} is missing or malformed`);if(s.payloadType.length!==this.TypeDelimiterOffset)throw Error(`Header type '${s.payloadType.length}' is missing or malformed.`);if(!s.id||!s.id.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i)||s.id.length!==this.IdLength)throw Error(`Header ID '${s.id}' is missing or malformed.`);if("0\n"!==a&&"1\n"!==a)throw Error(`Header End is missing or not a valid value. Header end: '${a}'`);return s}static headerLengthPadder(e,t,r){let n=Array(t+1).join(r),o=e.toString();return(n+o).slice(o.length)}};an.Delimiter=".",an.Terminator="\n",an.End="1",an.NotEnd="0",an.TypeOffset=0,an.TypeDelimiterOffset=1,an.LengthOffset=2,an.LengthLength=6,an.LengthDelimeterOffset=8,an.IdOffset=9,an.IdLength=36,an.IdDelimeterOffset=45,an.EndOffset=46,an.TerminatorOffset=47,an.Encoding="utf8",k(),g(),v(),b();var sn=class{constructor(e){this.reason=e}};sn.Empty=new sn;var ln=sn,cn=class{get isConnected(){return null!=this._receiver}connect(e){return this._receiver=e,this.receivePackets()}subscribe(e,t){this._getStream=e,this._receiveAction=t}disconnect(e=ln.Empty){var t,r;if(this.isConnected)try{this._receiver.close(),null==(t=this.disconnected)||t.call(this,this,e)}catch(n){null==(r=this.disconnected)||r.call(this,this,new ln(n.message))}finally{this._receiver=null}}receivePackets(){return m(this,null,function*(){for(;this.isConnected;)try{let e=0;for(;e<48;)this._receiveHeaderBuffer=yield this._receiver.receive(48-e),this._receiveHeaderBuffer&&(e+=this._receiveHeaderBuffer.length);let t=an.deserialize(this._receiveHeaderBuffer),r="S"===t.payloadType;if(t.payloadLength>0){let e=0,n=this._getStream(t);for(;e<t.payloadLength&&e<4096;){let o=Math.min(t.payloadLength-e,4096);this._receivePayloadBuffer=yield this._receiver.receive(o),e+=this._receivePayloadBuffer.byteLength,n.write(this._receivePayloadBuffer),r&&this._receiveAction(t,n,e)}r||this._receiveAction(t,n,e)}}catch(Wqe){this.disconnect(new ln(Wqe.message))}})}};k(),g(),v(),b();var un=class{get isConnected(){return null!=this._sender}connect(e){this._sender=e}sendPayload(e,t,r){let n={header:e,payload:t,sentCallback:r};this.writePacket(n)}disconnect(e=ln.Empty){var t,r;if(this.isConnected)try{this._sender.close(),null==(t=this.disconnected)||t.call(this,this,e)}catch(n){null==(r=this.disconnected)||r.call(this,this,new ln(n.message))}finally{this._sender=null}}writePacket(e){try{if(e.header.payloadLength>0&&e.payload){let r=e.header.payloadLength;for(;r>0;){let n=r<=4096?r:4096,o=e.payload.read(n),i=e.header;i.payloadLength=n,i.end=r<=4096;let a=t.Buffer.alloc(48);an.serialize(i,a),this._sender.send(a),this._sender.send(o),r-=o.length}e.sentCallback&&e.sentCallback()}}catch(r){this.disconnect(new ln(r.message))}}};k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b(),k(),g(),v(),b();var dn=class{constructor(e){this.onCancelStream=e,this.activeAssemblers=[]}getPayloadAssembler(e){if(this.activeAssemblers[e])return this.activeAssemblers[e];{let t=new wn(this,{id:e});return this.activeAssemblers[e]=t,t}}getPayloadStream(e){return this.getPayloadAssembler(e.id).getPayloadStream()}onReceive(e,t,r){this.activeAssemblers[e.id]&&this.activeAssemblers[e.id].onReceive(e,t,r)}closeStream(e){if(this.activeAssemblers[e]){let t=this.activeAssemblers[e];this.activeAssemblers.splice(this.activeAssemblers.indexOf(e),1);let r=t.getPayloadStream();(t.contentLength&&r.length<t.contentLength||!t.end)&&this.onCancelStream(t)}}};k(),g(),v(),b();var fn=class{},hn=class{constructor(){this._pendingRequests={}}pendingRequestCount(){return Object.keys(this._pendingRequests).length}signalResponse(e,t){return m(this,null,function*(){let r=this._pendingRequests[e];return!!r&&(r.resolve(t),delete this._pendingRequests[e],!0)})}getResponse(e){let t=this._pendingRequests[e];if(t)return Promise.reject(`requestId '${e}' already exists in RequestManager`);t=new fn,t.requestId=e;let r=new Promise((e,r)=>{t.resolve=e,t.reject=r});return this._pendingRequests[e]=t,r}rejectAllResponses(e){Object.entries(this._pendingRequests).forEach(([t,{reject:r}])=>{r(e),delete this._pendingRequests[t]})}};k(),g(),v(),b(),k(),g(),v(),b();var pn=class{constructor(e,t,r){this.sender=e,this.id=t,this.payloadType=r}disassemble(){let e={payloadType:this.payloadType,payloadLength:0,id:this.id,end:!0};this.sender.sendPayload(e)}};k(),g(),v(),b(),k(),g(),v(),b();var mn=class{constructor(e,t){this.sender=e,this.id=t}static serialize(e){let t=new nn;return t.write(JSON.stringify(e)),t.end(),{stream:t,streamLength:t.length}}disassemble(){return m(this,null,function*(){let{stream:e,streamLength:t}=yield this.getStream();return this.stream=e,this.streamLength=t,this.send()})}send(){return m(this,null,function*(){let e={payloadType:this.payloadType,payloadLength:this.streamLength,id:this.id,end:!0};this.sender.sendPayload(e,this.stream)})}},gn=class extends mn{constructor(e,t){super(e,t.id),this.payloadType="S",this.contentStream=t}getStream(){return m(this,null,function*(){let e=this.contentStream.content.getStream();return{stream:e,streamLength:e.length}})}};k(),g(),v(),b();var vn=class extends mn{constructor(e,t,r){super(e,t),this.request=r,this.payloadType="A"}getStream(){return m(this,null,function*(){var e,t,r,n;let o={verb:null==(e=this.request)?void 0:e.verb,path:null==(t=this.request)?void 0:t.path,streams:[]};return null==(n=null==(r=this.request)?void 0:r.streams)||n.forEach(function(e){o.streams.push(e.description)}),mn.serialize(o)})}};k(),g(),v(),b();var yn=class extends mn{constructor(e,t,r){super(e,t),this.payloadType="B",this.response=r}getStream(){return m(this,null,function*(){var e;let t={statusCode:this.response.statusCode,streams:[]};return null==(e=this.response.streams)||e.forEach(({description:e})=>{t.streams.push({id:e.id,contentType:e.type,length:e.length})}),mn.serialize(t)})}},bn=class{constructor(e){this.payloadSender=e}sendRequest(e,t){return m(this,null,function*(){yield new vn(this.payloadSender,e,t).disassemble(),t.streams&&t.streams.forEach(e=>m(this,null,function*(){yield new gn(this.payloadSender,e).disassemble()}))})}sendResponse(e,t){return m(this,null,function*(){yield new yn(this.payloadSender,e,t).disassemble(),t.streams&&t.streams.forEach(e=>m(this,null,function*(){yield new gn(this.payloadSender,e).disassemble()}))})}sendCancelStream(e){return m(this,null,function*(){new pn(this.payloadSender,e,"C").disassemble()})}},wn=class{constructor(e,t){if(this.streamManager=e,this._byteOrderMark=65279,this._utf="utf8",t.header?(this.id=t.header.id,this.payloadType=t.header.payloadType,this.contentLength=t.header.payloadLength,this.end=t.header.end):this.id=t.id,!this.id)throw Error("An ID must be supplied when creating an assembler.");this._onCompleted=t.onCompleted}getPayloadStream(){return this.stream||(this.stream=this.createPayloadStream()),this.stream}onReceive(e,t,r){this.end=e.end,"B"===e.payloadType||"A"===e.payloadType?this.process(t).then().catch():e.end&&t.end()}close(){this.streamManager.closeStream(this.id)}createPayloadStream(){return new nn}payloadFromJson(e){return JSON.parse(e.charCodeAt(0)===this._byteOrderMark?e.slice(1):e)}stripBOM(e){return e.charCodeAt(0)===this._byteOrderMark?e.slice(1):e}process(e){return m(this,null,function*(){let t=e.read(e.length);if(!t)return;let r=t.toString(this._utf);"A"===this.payloadType?yield this.processRequest(r):"B"===this.payloadType&&(yield this.processResponse(r))})}processResponse(e){return m(this,null,function*(){let t=this.payloadFromJson(this.stripBOM(e)),r={streams:[],statusCode:t.statusCode};yield this.processStreams(t,r)})}processRequest(e){return m(this,null,function*(){let t=this.payloadFromJson(e),r={streams:[],path:t.path,verb:t.verb};yield this.processStreams(t,r)})}processStreams(e,t){return m(this,null,function*(){var r;null==(r=e.streams)||r.forEach(e=>{var r;let n=null!=(r=e.type)?r:e.contentType,o=this.streamManager.getPayloadAssembler(e.id);o.payloadType=n,o.contentLength=e.length,t.streams.push(new Wr(e.id,o))}),yield this._onCompleted(this.id,t)})}},xn=class{constructor(e,t,r){this.streamManager=e,this.onReceiveResponse=t,this.onReceiveRequest=r,this.activeAssemblers={}}getPayloadStream(e){if("S"===e.payloadType)return this.streamManager.getPayloadStream(e);if(!this.activeAssemblers[e.id]){let t=this.createPayloadAssembler(e);if(t)return this.activeAssemblers[e.id]=t,t.getPayloadStream()}}onReceive(e,t,r){"S"===e.payloadType?this.streamManager.onReceive(e,t,r):(this.activeAssemblers&&this.activeAssemblers[e.id]&&this.activeAssemblers[e.id].onReceive(e,t,r),e.end&&delete this.activeAssemblers[e.id])}createPayloadAssembler(e){return"A"===e.payloadType?new wn(this.streamManager,{header:e,onCompleted:this.onReceiveRequest}):"B"===e.payloadType?new wn(this.streamManager,{header:e,onCompleted:this.onReceiveResponse}):void 0}},Sn=class{constructor(e,t,r,n){this.requestHandler=e,this.requestManager=t,this.payloadSender=r,this.payloadReceiver=n,this.sendOperations=new bn(this.payloadSender),this.streamManager=new dn(this.onCancelStream),this.assemblerManager=new xn(this.streamManager,(e,t)=>this.onReceiveResponse(e,t),(e,t)=>this.onReceiveRequest(e,t)),this.payloadReceiver.subscribe(e=>this.assemblerManager.getPayloadStream(e),(e,t,r)=>this.assemblerManager.onReceive(e,t,r))}sendRequest(e){return m(this,null,function*(){let t=Zr(),r=this.requestManager.getResponse(t);return yield this.sendOperations.sendRequest(t,e),r})}onReceiveRequest(e,t){return m(this,null,function*(){if(this.requestHandler){let r=yield this.requestHandler.processRequest(t);r&&(yield this.sendOperations.sendResponse(e,r))}})}onReceiveResponse(e,t){return m(this,null,function*(){yield this.requestManager.signalResponse(e,t)})}onCancelStream(e){this.sendOperations.sendCancelStream(e.id).catch()}};k(),g(),v(),b();var kn=class{constructor(e){this.ws=e,this._queue=[],this._activeOffset=0,this._activeReceiveCount=0,this.ws.setOnMessageHandler(e=>{this.onReceive(e)}),this.ws.setOnErrorHandler(e=>{this.onError(e)}),this.ws.setOnCloseHandler(()=>{this.onClose()})}send(e){var t;return null!=(t=this.ws)&&t.isConnected?(this.ws.write(e),e.length):0}get isConnected(){var e;return!(null==(e=this.ws)||!e.isConnected)}close(){var e;null!=(e=this.ws)&&e.isConnected&&this.ws.close()}receive(e){return m(this,null,function*(){if(this._activeReceiveResolve)throw new Error("Cannot call receive more than once before it has returned.");this._activeReceiveCount=e;let t=new Promise((e,t)=>{this._activeReceiveResolve=e,this._activeReceiveReject=t});return this.trySignalData(),t})}onReceive(e){this._queue&&e&&e.byteLength>0&&(this._queue.push(t.Buffer.from(e)),this.trySignalData())}onClose(){this._activeReceiveReject&&this._activeReceiveReject(new Error("Socket was closed.")),this._active=null,this._activeOffset=0,this._activeReceiveResolve=null,this._activeReceiveReject=null,this._activeReceiveCount=0,this.ws=null}onError(e){this._activeReceiveReject&&this._activeReceiveReject(e),this.onClose()}trySignalData(){if(this._activeReceiveResolve&&(!this._active&&this._queue.length>0&&(this._active=this._queue.shift(),this._activeOffset=0),this._active)){if(0===this._activeOffset&&this._active.length===this._activeReceiveCount){let e=this._active;this._active=null,this._activeReceiveResolve(e)}else{let e=Math.min(this._activeReceiveCount,this._active.length-this._activeOffset),r=t.Buffer.alloc(e);this._active.copy(r,0,this._activeOffset,this._activeOffset+e),this._activeOffset+=e,this._activeOffset>=this._active.length&&(this._active=null,this._activeOffset=0),this._activeReceiveResolve(r)}this._activeReceiveCount=0,this._activeReceiveReject=null,this._activeReceiveResolve=null}}};return sRe.BrowserWebSocket=on,sRe.ContentStream=Wr,sRe.HttpContent=tn,sRe.RequestHandler=class{},sRe.StreamingRequest=class e{constructor(){this.streams=[]}static create(t,r,n){let o=new e;return o.verb=t,o.path=r,n&&o.setBody(n),o}addStream(e){if(!e)throw new Error("Argument Undefined Exception: content undefined.");this.streams.push(new en(e))}setBody(e){if("string"==typeof e){let t=new nn;t.write(e,"utf8"),this.addStream(new tn({type:"application/json; charset=utf-8",contentLength:t.length},t))}else"object"==typeof e&&this.addStream(e)}},sRe.StreamingResponse=class e{constructor(){this.streams=[]}static create(t,r){let n=new e;return n.statusCode=t,r&&n.addStream(r),n}addStream(e){this.streams.push(new en(e))}setBody(e){let t=new nn;t.write(JSON.stringify(e),"utf8"),this.addStream(new tn({type:"application/json; charset=utf-8",contentLength:t.length},t))}},sRe.SubscribableStream=nn,sRe.WebSocketClient=class{constructor({url:e,requestHandler:t,disconnectionHandler:r=null}){this._url=e,this._requestHandler=t,this._disconnectionHandler=r,this._requestManager=new hn,this._sender=new un,this._sender.disconnected=this.onConnectionDisconnected.bind(this),this._receiver=new cn,this._receiver.disconnected=this.onConnectionDisconnected.bind(this),this._protocolAdapter=new Sn(this._requestHandler,this._requestManager,this._sender,this._receiver)}connect(){return m(this,null,function*(){let e=new on;yield e.connect(this._url);let t=new kn(e);this._sender.connect(t),this._receiver.connect(t)})}disconnect(){this._sender.disconnect(new ln("Disconnect was called.")),this._receiver.disconnect(new ln("Disconnect was called."))}send(e){return m(this,null,function*(){return this._protocolAdapter.sendRequest(e)})}onConnectionDisconnected(e,t){if(this._requestManager.rejectAllResponses(new Error("Disconnect was called.")),null==this._disconnectionHandler)throw new Error(`Unable to re-connect client to transport for url ${this._url}. Sender: '${JSON.stringify(e)}'. Args:' ${JSON.stringify(t)}`);this._disconnectionHandler("Disconnected")}},sRe}var cRe,uRe={};var dRe,fRe={exports:{}};function hRe(){return dRe||(dRe=1,function(e,r){var n,o="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==t&&t,i=function(){function e(){this.fetch=!1,this.DOMException=o.DOMException}return e.prototype=o,new e}();n=i,function(e){var r=void 0!==n&&n||"undefined"!=typeof self&&self||void 0!==t&&t||{},o="URLSearchParams"in r,i="Symbol"in r&&"iterator"in Symbol,a="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(Wqe){return!1}}(),s="FormData"in r,l="ArrayBuffer"in r;if(l)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function f(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function m(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function g(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():l&&a&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=m(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(a)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,o,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=n?n[1]:"utf-8",t.readAsText(e,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(S)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=d(e),t=f(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},p.prototype.delete=function(e){delete this.map[d(e)]},p.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},p.prototype.set=function(e,t){this.map[d(e)]=f(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),h(e)},p.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),h(e)},p.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),h(e)},i&&(p.prototype[Symbol.iterator]=p.prototype.entries);var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function x(e,t){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,o,i=(t=t||{}).body;if(e instanceof x){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(n=t.method||this.method||"GET",o=n.toUpperCase(),w.indexOf(o)>-1?o:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function S(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}}),t}function k(e,t){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},b.call(x.prototype),b.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},k.error=function(){var e=new k(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var E=[301,302,303,307,308];k.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new k(null,{status:t,headers:{location:e}})},e.DOMException=r.DOMException;try{new e.DOMException}catch(_){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function T(t,n){return new Promise(function(o,i){var s=new x(t,n);if(s.signal&&s.signal.aborted)return i(new e.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function u(){c.abort()}if(c.onload=function(){var e,t,r={statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{t.append(n,o)}catch(i){console.warn("Response "+i.message)}}}),t)};0===s.url.indexOf("file://")&&(c.status<200||c.status>599)?r.status=200:r.status=c.status,r.url="responseURL"in c?c.responseURL:r.headers.get("X-Request-URL");var n="response"in c?c.response:c.responseText;setTimeout(function(){o(new k(n,r))},0)},c.onerror=function(){setTimeout(function(){i(new TypeError("Network request failed"))},0)},c.ontimeout=function(){setTimeout(function(){i(new TypeError("Network request timed out"))},0)},c.onabort=function(){setTimeout(function(){i(new e.DOMException("Aborted","AbortError"))},0)},c.open(s.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(Wqe){return e}}(s.url),!0),"include"===s.credentials?c.withCredentials=!0:"omit"===s.credentials&&(c.withCredentials=!1),"responseType"in c&&(a?c.responseType="blob":l&&(c.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof p||r.Headers&&n.headers instanceof r.Headers)){var h=[];Object.getOwnPropertyNames(n.headers).forEach(function(e){h.push(d(e)),c.setRequestHeader(e,f(n.headers[e]))}),s.headers.forEach(function(e,t){-1===h.indexOf(t)&&c.setRequestHeader(t,e)})}else s.headers.forEach(function(e,t){c.setRequestHeader(t,e)});s.signal&&(s.signal.addEventListener("abort",u),c.onreadystatechange=function(){4===c.readyState&&s.signal.removeEventListener("abort",u)}),c.send(void 0===s._bodyInit?null:s._bodyInit)})}T.polyfill=!0,r.fetch||(r.fetch=T,r.Headers=p,r.Request=x,r.Response=k),e.Headers=p,e.Request=x,e.Response=k,e.fetch=T,Object.defineProperty(e,"__esModule",{value:!0})}({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var a=o.fetch?o:i;(r=a.fetch).default=a.fetch,r.fetch=a.fetch,r.Headers=a.Headers,r.Request=a.Request,r.Response=a.Response,e.exports=r}(fRe,fRe.exports)),fRe.exports}var pRe,mRe,gRe={},vRe={exports:{}},yRe={exports:{}};function bRe(){return mRe||(mRe=1,e=vRe,t=sxe().default,r=function(){return pRe||(pRe=1,(e=yRe).exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports),yRe.exports;var e}(),e.exports=function(e,n){if(n&&("object"==t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports),vRe.exports;var e,t,r}var wRe,xRe={exports:{}};function SRe(){return wRe||(wRe=1,function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(xRe)),xRe.exports}var kRe,ERe,TRe={exports:{}},_Re={exports:{}};function CRe(){return ERe||(ERe=1,function(e){var t=function(){return kRe||(kRe=1,e=_Re,t=SRe(),e.exports=function(e,r){for(;!{}.hasOwnProperty.call(e,r)&&null!==(e=t(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports),_Re.exports;var e,t}();function r(){return e.exports=r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,r,n){var o=t(e,r);if(o){var i=Object.getOwnPropertyDescriptor(o,r);return i.get?i.get.call(arguments.length<3?e:n):i.value}},e.exports.__esModule=!0,e.exports.default=e.exports,r.apply(null,arguments)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(TRe)),TRe.exports}var ARe,IRe,PRe,NRe,BRe,ORe={exports:{}},DRe={exports:{}};function RRe(){return IRe||(IRe=1,e=ORe,ARe||(ARe=1,function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(DRe)),t=DRe.exports,e.exports=function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&t(e,r)},e.exports.__esModule=!0,e.exports.default=e.exports),ORe.exports;var e,t}function MRe(){return PRe||(PRe=1,function(e){var t=oxe();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(mxe()),n=t(kxe()),o=t(bRe()),i=t(SRe()),a=t(CRe()),s=t(RRe()),l=lRe();function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!e})()}function u(e,t,r,n){var o=(0,a.default)((0,i.default)(e.prototype),t,r);return 2&n&&"function"==typeof o?function(e){return o.apply(r,e)}:o}function d(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function f(e,t){return e.get(p(e,t))}function h(e,t,r){return e.set(p(e,t),r),r}function p(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var m=new WeakMap,g=new WeakMap,v=new WeakMap,y=new WeakMap;e.default=function(e){function t(e){var n,a,s,l,u=e.disconnectionHandler,p=e.networkInformation,b=e.requestHandler,w=e.url;return(0,r.default)(this,t),a=this,s=t,l=[{disconnectionHandler:u,requestHandler:b,url:w}],s=(0,i.default)(s),d(n=(0,o.default)(a,c()?Reflect.construct(s,l||[],(0,i.default)(a).constructor):s.apply(a,l)),m,!1),d(n,g,function(){return f(v,n)===f(y,n).type||n.disconnect()}),d(n,v,void 0),d(n,y,void 0),h(y,n,p),n}return(0,s.default)(t,e),(0,n.default)(t,[{key:"connect",value:function(){if(f(m,this))return console.warn("botframework-directlinejs: connect() can only be called once."),Promise.resolve();if(h(m,this,!0),f(y,this)){var e=f(y,this).type;if(h(v,this,e),"none"===e)return console.warn("botframework-directlinejs: Failed to connect while offline."),Promise.reject(new Error("botframework-directlinejs: Failed to connect while offline."));f(y,this).addEventListener("change",f(g,this))}return u(t,"connect",this,3)([])}},{key:"disconnect",value:function(){var e;null===(e=f(y,this))||void 0===e||e.removeEventListener("change",f(g,this)),u(t,"disconnect",this,3)([])}}])}(l.WebSocketClient)}(gRe)),gRe}function zRe(){if(NRe)return yDe;NRe=1;var e=oxe(),t=sxe();Object.defineProperty(yDe,"__esModule",{value:!0}),yDe.DirectLineStreaming=void 0;var r,n=e(fxe()),o=e(function(){if(VDe)return FDe;VDe=1;var e=HDe()();FDe=e;try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}return FDe}()),i=e(XDe()),a=e((JDe||(JDe=1,function(e){function t(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,o)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise(function(o,i){var a=e.apply(r,n);function s(e){t(a,o,i,s,l,"next",e)}function l(e){t(a,o,i,s,l,"throw",e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports}(QDe)),QDe.exports)),s=e(mxe()),l=e(kxe()),c=e(_xe()),u=dPe(),d=iRe(),f=rPe(),h=function(e,r){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return function(e,r){if(!r&&e&&e.__esModule)return e;var i,a,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(i=r?o:n){if(i.has(e))return i.get(e);i.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?i(s,l,a):s[l]=e[l]);return s}(e,r)}(lRe()),p=e((cRe||(cRe=1,r=uRe,Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=function(){var e={};return e.promise=new Promise(function(t,r){e.reject=r,e.resolve=t}),e}),uRe)),m=e(hRe()),g=jRe(),v=e(MRe()),y=["attachments"];function b(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}function w(e,t){return e.get(x(e,t))}function x(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}var S=function(){return(0,l.default)(function e(t,r,n){(0,s.default)(this,e),(0,c.default)(this,"activityQueue",[]),this.subscriber=t,this.connectionStatus$=r,this.shouldQueue=n},[{key:"setSubscriber",value:function(e){this.subscriber=e}},{key:"processRequest",value:(e=(0,a.default)(o.default.mark(function e(t,r){var n,a,s,l,c,u,d,f,p;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,i.default)(t.streams),a=n.shift(),e.next=1,a.readAsString();case 1:if(s=e.sent,1===(l=JSON.parse(s)).activities.length){e.next=2;break}return this.subscriber.error(new Error("there should be exactly one activity")),e.abrupt("return",h.StreamingResponse.create(500));case 2:if(c=l.activities[0],!(n.length>0)){e.next=6;break}u=(0,i.default)(c.attachments);case 3:if(!(d=n.shift())){e.next=5;break}return e.next=4,d.readAsString();case 4:f=e.sent,p="data:text/plain;base64,"+f,u.push({contentType:d.contentType,contentUrl:p}),e.next=3;break;case 5:c.attachments=u;case 6:return this.shouldQueue()?this.activityQueue.push(c):this.subscriber.next(c),e.abrupt("return",h.StreamingResponse.create(200));case 7:case"end":return e.stop()}},e,this)})),function(t,r){return e.apply(this,arguments)})},{key:"flush",value:function(){var e=this;this.connectionStatus$.subscribe(function(){}),this.activityQueue.forEach(function(t){return e.subscriber.next(t)}),this.activityQueue=[]}},{key:"end",value:function(){this.subscriber.complete()}}]);var e}(),k=new WeakMap;return yDe.DirectLineStreaming=function(){return(0,l.default)(function e(t){var r=this;(0,s.default)(this,e),(0,c.default)(this,"connectionStatus$",new u.BehaviorSubject(g.ConnectionStatus.Uninitialized)),(0,c.default)(this,"_botAgent",""),b(this,k,void 0);var n,i,l,d=null==t?void 0:t.networkInformation;void 0===d||"function"==typeof d.addEventListener&&"function"==typeof d.removeEventListener&&"string"==typeof d.type?(i=this,l=d,(n=k).set(x(n,i),l)):console.warn('botframework-directlinejs: "networkInformation" option specified must be a `NetworkInformation`-like instance extending `EventTarget` interface with a `type` property returning a string.'),this.token=t.token,this.refreshToken().catch(function(){r.connectionStatus$.next(g.ConnectionStatus.ExpiredToken)}),this.domain=t.domain,t.conversationId&&(this.conversationId=t.conversationId),this._botAgent=this.getBotAgent(t.botAgent),this.queueActivities=!0,this.activity$=f.Observable.create(function(){var e=(0,a.default)(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.activitySubscriber=t,r.theStreamHandler=new S(t,r.connectionStatus$,function(){return r.queueActivities}),r.connectDeferred.resolve();case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()).share(),this.connectWithRetryAsync()},[{key:"reconnect",value:function(e){var t=e.conversationId,r=e.token;if(this.connectionStatus$.getValue()===g.ConnectionStatus.Ended)throw new Error("Connection has ended.");this.conversationId=t,this.token=r,this.connectDeferred.resolve()}},{key:"end",value:function(){this.activitySubscriber.complete(),this.connectionStatus$.next(g.ConnectionStatus.Ended),this.connectionStatus$.complete(),this.streamConnection.disconnect()}},{key:"commonHeaders",value:function(){return{Authorization:"Bearer ".concat(this.token),"x-ms-bot-agent":this._botAgent}}},{key:"getBotAgent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="directlineStreaming";return e&&(t+="; ".concat(e)),"".concat("DirectLine/3.0"," (").concat(t,")")}},{key:"refreshToken",value:(i=(0,a.default)(o.default.mark(function e(){var t,r,n,i,a;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,this.waitUntilOnline();case 1:t=0;case 2:if(!(t<3)){e.next=10;break}return t++,e.next=3,new Promise(function(e){return setTimeout(e,9e5)});case 3:return e.prev=3,e.next=4,(0,m.default)("".concat(this.domain,"/tokens/refresh"),{method:"POST",headers:this.commonHeaders()});case 4:if(!(r=e.sent).ok){e.next=6;break}return t=0,e.next=5,r.json();case 5:n=e.sent,i=n.token,this.token=i,e.next=7;break;case 6:403===r.status||403===r.status?(console.error("Fatal error while refreshing the token: ".concat(r.status," ").concat(r.statusText)),this.streamConnection.disconnect()):console.warn("Refresh attempt #".concat(t," failed: ").concat(r.status," ").concat(r.statusText));case 7:e.next=9;break;case 8:e.prev=8,a=e.catch(3),console.warn("Refresh attempt #".concat(t," threw an exception: ").concat(a));case 9:e.next=2;break;case 10:console.error("Retries exhausted"),this.streamConnection.disconnect();case 11:case"end":return e.stop()}},e,this,[[3,8]])})),function(){return i.apply(this,arguments)})},{key:"postActivity",value:function(e){var t=this;if(this.connectionStatus$.value===g.ConnectionStatus.Ended||this.connectionStatus$.value===g.ConnectionStatus.FailedToConnect)return f.Observable.throw(new Error("Connection is closed"));if("message"===e.type&&e.attachments&&e.attachments.length>0)return this.postMessageWithAttachments(e);var r=f.Observable.create(function(){var r=(0,a.default)(o.default.mark(function r(n){var i,a,s,l,c,u,d;return o.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return(i=h.StreamingRequest.create("POST","/v3/directline/conversations/"+t.conversationId+"/activities")).setBody(JSON.stringify(e)),r.prev=1,r.next=2,t.streamConnection.send(i);case 2:if(200===(a=r.sent).statusCode){r.next=3;break}throw new Error("PostActivity returned "+a.statusCode);case 3:if(1===(s=a.streams.length)){r.next=4;break}throw new Error("Expected one stream but got "+s);case 4:return r.next=5,a.streams[0].readAsString();case 5:return l=r.sent,c=JSON.parse(l),u=c.Id,n.next(u),r.abrupt("return",n.complete());case 6:return r.prev=6,d=r.catch(1),console.warn(d),t.streamConnection.disconnect(),r.abrupt("return",n.error(d));case 7:case"end":return r.stop()}},r,null,[[1,6]])}));return function(e){return r.apply(this,arguments)}}());return r}},{key:"postMessageWithAttachments",value:function(e){var t=this,r=e.attachments,i=(0,n.default)(e,y);return f.Observable.create(function(e){var n=[];(0,a.default)(o.default.mark(function s(){var l,c,u,f,p,g,v;return o.default.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=1,Promise.all(r.map(function(){var e=(0,a.default)(o.default.mark(function e(t){var r,n,i,a;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t,e.next=1,(0,m.default)(r.contentUrl);case 1:if(!(n=e.sent).ok){e.next=3;break}return e.next=2,n.arrayBuffer();case 2:return i=e.sent,a=r,e.abrupt("return",{arrayBuffer:i,media:a});case 3:throw new Error("...");case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 1:return s.sent.forEach(function(e){var t=e.arrayBuffer,r=e.media,o=d.Buffer.from(t),i=new h.SubscribableStream;i.write(o);var a=new h.HttpContent({type:r.contentType,contentLength:o.length},i);n.push(a)}),l="/v3/directline/conversations/".concat(t.conversationId,"/users/").concat(i.from.id,"/upload"),c=h.StreamingRequest.create("PUT",l),(u=new h.SubscribableStream).write(JSON.stringify(i),"utf-8"),c.addStream(new h.HttpContent({type:"application/vnd.microsoft.activity",contentLength:u.length},u)),n.forEach(function(e){return c.addStream(e)}),s.next=2,t.streamConnection.send(c);case 2:if(!(f=s.sent).streams||1===f.streams.length){s.next=3;break}e.error(new Error("Invalid stream count ".concat(f.streams.length))),s.next=5;break;case 3:return s.next=4,f.streams[0].readAsJson();case 4:p=s.sent,g=p.Id,e.next(g),e.complete();case 5:s.next=7;break;case 6:s.prev=6,v=s.catch(0),e.error(v);case 7:case"end":return s.stop()}},s,null,[[0,6]])}))()})}},{key:"waitUntilOnline",value:(r=(0,a.default)(o.default.mark(function e(){var t=this;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,r){t.connectionStatus$.subscribe(function(t){if(t===g.ConnectionStatus.Online)return e()},function(e){return r(e)})}));case 1:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)})},{key:"connectAsync",value:(t=(0,a.default)(o.default.mark(function e(){var t,r,n,i,s,l=this;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((t=new RegExp("^http(s?)")).test(this.domain)){e.next=1;break}throw"Domain must begin with http or https";case 1:return r={token:this.token},this.conversationId&&(r.conversationId=this.conversationId),n=new AbortController,i=new URLSearchParams(r).toString(),s="".concat(this.domain.replace(t,"ws$1"),"/conversations/connect?").concat(i),e.abrupt("return",new Promise(function(){var e=(0,a.default)(o.default.mark(function e(t,r){var i,a,c,u,d;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l.streamConnection=new v.default({disconnectionHandler:t,networkInformation:w(k,l),requestHandler:{processRequest:function(e){if(n.signal.aborted)throw new Error("Cannot process streaming request, `streamingConnection` should be disconnected.");return l.theStreamHandler.processRequest(e)}},url:s}),l.queueActivities=!0,e.next=1,l.streamConnection.connect();case 1:return i=h.StreamingRequest.create("POST","/v3/directline/conversations"),e.next=2,l.streamConnection.send(i);case 2:if(200===(a=e.sent).statusCode){e.next=3;break}throw new Error("Connection response code "+a.statusCode);case 3:if(1===a.streams.length){e.next=4;break}throw new Error("Expected 1 stream but got "+a.streams.length);case 4:return e.next=5,a.streams[0].readAsString();case 5:return c=e.sent,u=JSON.parse(c),l.conversationId=u.conversationId,l.connectionStatus$.next(g.ConnectionStatus.Online),e.next=6,l.waitUntilOnline();case 6:l.theStreamHandler.flush(),l.queueActivities=!1,e.next=8;break;case 7:e.prev=7,d=e.catch(0),r(d);case 8:case"end":return e.stop()}},e,null,[[0,7]])}));return function(t,r){return e.apply(this,arguments)}}()).finally(function(){return n.abort()}));case 2:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"connectWithRetryAsync",value:(e=(0,a.default)(o.default.mark(function e(){var t,r,n,i=this;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,(this.connectDeferred=(0,p.default)()).promise;case 1:t=3,this.connectionStatus$.next(g.ConnectionStatus.Connecting);case 2:if(!(t>0)){e.next=10;break}return t--,r=Date.now(),e.prev=3,e.next=4,this.connectAsync();case 4:e.next=6;break;case 5:e.prev=5,n=e.catch(3),console.error(n);case 6:if(this.connectionStatus$.getValue()!==g.ConnectionStatus.Ended){e.next=7;break}return e.abrupt("return");case 7:if(this.connectionStatus$.getValue()!==g.ConnectionStatus.Connecting&&this.connectionStatus$.next(g.ConnectionStatus.Connecting),!(6e4<Date.now()-r)){e.next=8;break}t=3,e.next=9;break;case 8:if(!(t>0)){e.next=9;break}return e.next=9,new Promise(function(e){return setTimeout(e,i.getRetryDelay())});case 9:e.next=2;break;case 10:this.connectionStatus$.next(g.ConnectionStatus.FailedToConnect);case 11:e.next=0;break;case 12:case"end":return e.stop()}},e,this,[[3,5]])})),function(){return e.apply(this,arguments)})},{key:"getRetryDelay",value:function(){return Math.floor(3e3+12e3*Math.random())}}]);var e,t,r,i}(),yDe}function jRe(){return BRe||(BRe=1,function(e){var r=oxe(),n=sxe();Object.defineProperty(e,"__esModule",{value:!0}),e.DirectLine=e.ConnectionStatus=void 0,Object.defineProperty(e,"DirectLineStreaming",{enumerable:!0,get:function(){return h.DirectLineStreaming}});var o=r(fxe()),i=r(mxe()),a=r(kxe()),s=r(_xe());aIe||(aIe=1,sIe()),lIe||(lIe=1,function(e){var t,r=function(){try{if(e.URLSearchParams&&"bar"===new e.URLSearchParams("foo=bar").get("foo"))return e.URLSearchParams}catch(Wqe){}return null}(),n=r&&"a=1"===new r({a:1}).toString(),o=r&&"+"===new r("s=%2B").get("s"),i=r&&"size"in r.prototype,a="__URLSearchParams__",s=!r||((t=new r).append("s"," &"),"s=+%26"===t.toString()),l=h.prototype,c=!(!e.Symbol||!e.Symbol.iterator);if(!(r&&n&&o&&s&&i)){l.append=function(e,t){y(this[a],e,t)},l.delete=function(e){delete this[a][e]},l.get=function(e){var t=this[a];return this.has(e)?t[e][0]:null},l.getAll=function(e){var t=this[a];return this.has(e)?t[e].slice(0):[]},l.has=function(e){return w(this[a],e)},l.set=function(e,t){this[a][e]=[""+t]},l.toString=function(){var e,t,r,n,o=this[a],i=[];for(t in o)for(r=p(t),e=0,n=o[t];e<n.length;e++)i.push(r+"="+p(n[e]));return i.join("&")};var u,d=e.Proxy&&r&&(!o||!s||!n||!i);d?(u=new Proxy(r,{construct:function(e,t){return new e(new h(t[0]).toString())}})).toString=Function.prototype.toString.bind(h):u=h,Object.defineProperty(e,"URLSearchParams",{value:u});var f=e.URLSearchParams.prototype;f.polyfill=!0,!d&&e.Symbol&&(f[e.Symbol.toStringTag]="URLSearchParams"),"forEach"in f||(f.forEach=function(e,t){var r=v(this.toString());Object.getOwnPropertyNames(r).forEach(function(n){r[n].forEach(function(r){e.call(t,r,n,this)},this)},this)}),"sort"in f||(f.sort=function(){var e,t,r,n=v(this.toString()),o=[];for(e in n)o.push(e);for(o.sort(),t=0;t<o.length;t++)this.delete(o[t]);for(t=0;t<o.length;t++){var i=o[t],a=n[i];for(r=0;r<a.length;r++)this.append(i,a[r])}}),"keys"in f||(f.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),g(e)}),"values"in f||(f.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),g(e)}),"entries"in f||(f.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),g(e)}),c&&(f[e.Symbol.iterator]=f[e.Symbol.iterator]||f.entries),"size"in f||Object.defineProperty(f,"size",{get:function(){var e=v(this.toString());if(f===this)throw new TypeError("Illegal invocation at URLSearchParams.invokeGetter");return Object.keys(e).reduce(function(t,r){return t+e[r].length},0)}})}function h(e){((e=e||"")instanceof URLSearchParams||e instanceof h)&&(e=e.toString()),this[a]=v(e)}function p(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,function(e){return t[e]})}function m(e){return e.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,function(e){return decodeURIComponent(e)})}function g(t){var r={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return c&&(r[e.Symbol.iterator]=function(){return r}),r}function v(e){var t={};if("object"==typeof e)if(b(e))for(var r=0;r<e.length;r++){var n=e[r];if(!b(n)||2!==n.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");y(t,n[0],n[1])}else for(var o in e)e.hasOwnProperty(o)&&y(t,o,e[o]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var i=e.split("&"),a=0;a<i.length;a++){var s=i[a],l=s.indexOf("=");-1<l?y(t,m(s.slice(0,l)),m(s.slice(l+1))):s&&y(t,m(s),"")}}return t}function y(e,t,r){var n="string"==typeof r?r:null!=r&&"function"==typeof r.toString?r.toString():JSON.stringify(r);w(e,t)?e[t].push(n):e[t]=[n]}function b(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(void 0!==t?t:"undefined"!=typeof window?window:cIe));var l=dPe(),c=rPe(),u=EPe(),d=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,s={__proto__:null,default:e};if(null===e||"object"!=n(e)&&"function"!=typeof e)return s;if(i=t?o:r){if(i.has(e))return i.get(e);i.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(a.get||a.set)?i(s,l,a):s[l]=e[l]);return s}(e,t)}(APe);!function(){if(KPe)return PPe;KPe=1;var e=rPe(),t=QPe();e.Observable.prototype.catch=t._catch,e.Observable.prototype._catch=t._catch}(),function(){if(hNe)return eNe;hNe=1;var e=rPe(),t=gNe();e.Observable.prototype.combineLatest=t.combineLatest}(),function(){if(bNe)return wNe;bNe=1;var e=rPe(),t=kNe();e.Observable.prototype.count=t.count}(),MNe(),function(){if(LNe)return FNe;LNe=1;var e=rPe(),t=HNe();e.Observable.prototype.do=t._do,e.Observable.prototype._do=t._do}(),function(){if($Ne)return GNe;$Ne=1;var e=rPe(),t=XNe();e.Observable.prototype.filter=t.filter}(),oBe(),fBe(),function(){if(mBe)return gBe;mBe=1;var e=rPe(),t=bBe();e.Observable.prototype.concatMap=t.concatMap}(),function(){if(SBe)return kBe;SBe=1;var e=rPe(),t=_Be();e.Observable.prototype.retryWhen=t.retryWhen}(),function(){if(BBe)return OBe;BBe=1;var e=rPe(),t=VBe();e.Observable.prototype.share=t.share}(),JBe(),iOe(),uOe(),COe(),zOe(),qOe(),function(){if(WOe)return $Oe;WOe=1;var e=rPe(),t=KOe();e.Observable.throw=t._throw}();var f=r((hDe||(hDe=1,function(e){var t=oxe();Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var t=[];return e.forEach(function(e){for(var n=(0,r.default)(e),o=n.extname,i=n.name,a=0,s=e;t.includes(s);)s=[i,"(".concat(++a,")")].filter(function(e){return e}).join(" ")+o;t.push(s)}),t};var r=t(gDe())}(JOe)),JOe)),h=zRe(),p=["contentUrl"];function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){(0,s.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var v=e.ConnectionStatus=function(e){return e[e.Uninitialized=0]="Uninitialized",e[e.Connecting=1]="Connecting",e[e.Online=2]="Online",e[e.ExpiredToken=3]="ExpiredToken",e[e.FailedToConnect=4]="FailedToConnect",e[e.Ended=5]="Ended",e}({}),y=function(e,t){var r=function(){throw new Error("not implemented")};return Object.assign(function(r){return e(r).catch(function(e){if(429===e.status){var r=e.xhr.getResponseHeader("Retry-After"),n=Number(r);if(!isNaN(n))return c.Observable.timer(n,t).flatMap(function(r){return c.Observable.throw(e,t)})}return c.Observable.throw(e,t)})},{get:function(e,t){return r()},post:function(e,t,n){return r()},put:function(e,t,n){return r()},patch:function(e,t,n){return r()},delete:function(e,t){return r()},getJSON:function(e,t){return r()}})},b=9e5,w=new Error("expired token"),x=new Error("conversation ended"),S=new Error("failed to connect"),k=function(e){for(var t,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];"undefined"!=typeof window&&window.botchatDebug&&e&&(t=console).log.apply(t,[e].concat(n))};e.DirectLine=function(){return(0,a.default)(function e(t){var r,n;(0,i.default)(this,e),(0,s.default)(this,"connectionStatus$",new l.BehaviorSubject(v.Uninitialized)),(0,s.default)(this,"domain","https://directline.botframework.com/v3/directline"),(0,s.default)(this,"watermark",""),(0,s.default)(this,"_botAgent",""),(0,s.default)(this,"timeout",2e4),(0,s.default)(this,"pollingInterval",1e3),this.secret=t.secret,this.token=t.secret||t.token,this.webSocket=(void 0===t.webSocket||t.webSocket)&&"undefined"!=typeof WebSocket&&void 0!==WebSocket,t.streaming&&(this.streaming=t.streaming),t.conversationStartProperties&&t.conversationStartProperties.locale&&("[object String]"===Object.prototype.toString.call(t.conversationStartProperties.locale)?this.localeOnStartConversation=t.conversationStartProperties.locale:console.warn("DirectLineJS: conversationStartProperties.locale was ignored: the locale name may be a BCP 47 language tag")),t.domain&&(this.domain=t.domain),t.conversationId&&(this.conversationId=t.conversationId),t.watermark&&(this.watermark=t.watermark),t.streamUrl&&(t.token&&t.conversationId?this.streamUrl=t.streamUrl:console.warn("DirectLineJS: streamUrl was ignored: you need to provide a token and a conversationid")),void 0!==t.timeout&&(this.timeout=t.timeout),this.retries=9e5/this.timeout,this._botAgent=this.getBotAgent(t.botAgent),this.services={scheduler:n=(r=t).scheduler||u.async,ajax:y(r.ajax||c.Observable.ajax,n),WebSocket:r.WebSocket||WebSocket,random:r.random||Math.random};var o=~~t.pollingInterval;o<200?void 0!==t.pollingInterval&&console.warn("DirectLineJS: provided pollingInterval (".concat(t.pollingInterval,") is under lower bound (200ms), using default of 1000ms")):this.pollingInterval=o,this.expiredTokenExhaustion=this.setConnectionStatusFallback(v.ExpiredToken,v.FailedToConnect,5),this.activity$=(this.webSocket?this.webSocketActivity$():this.pollingGetActivity$()).share()},[{key:"checkConnection",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.connectionStatus$.flatMap(function(t){return t===v.Uninitialized?(e.connectionStatus$.next(v.Connecting),e.token&&e.streamUrl?(e.connectionStatus$.next(v.Online),c.Observable.of(t,e.services.scheduler)):e.startConversation().do(function(t){e.conversationId=t.conversationId,e.token=e.secret||t.token,e.streamUrl=t.streamUrl,e.referenceGrammarId=t.referenceGrammarId,e.secret||e.refreshTokenLoop(),e.connectionStatus$.next(v.Online)},function(t){e.connectionStatus$.next(v.FailedToConnect)}).map(function(e){return t})):c.Observable.of(t,e.services.scheduler)}).filter(function(e){return e!=v.Uninitialized&&e!=v.Connecting}).flatMap(function(t){switch(t){case v.Ended:return c.Observable.throw(x,e.services.scheduler);case v.FailedToConnect:return c.Observable.throw(S,e.services.scheduler);case v.ExpiredToken:default:return c.Observable.of(t,e.services.scheduler)}});return t?r.take(1):r}},{key:"setConnectionStatusFallback",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;r--;var n=0,o=null;return function(i){return i===e&&o===i&&n>=r?(n=0,t):(n++,o=i,i)}}},{key:"expiredToken",value:function(){var e=this.connectionStatus$.getValue();e!=v.Ended&&e!=v.FailedToConnect&&this.connectionStatus$.next(v.ExpiredToken);var t=this.expiredTokenExhaustion(this.connectionStatus$.getValue());this.connectionStatus$.next(t)}},{key:"startConversation",value:function(){var e=this,t=this.conversationId?"".concat(this.domain,"/conversations/").concat(this.conversationId,"?watermark=").concat(this.watermark):"".concat(this.domain,"/conversations"),r=this.conversationId?"GET":"POST",n=this.conversationId?void 0:{user:{id:this.userIdOnStartConversation},locale:this.localeOnStartConversation};return this.services.ajax({method:r,url:t,body:n,timeout:this.timeout,headers:g({Accept:"application/json","Content-Type":"application/json"},this.commonHeaders())}).map(function(e){return e.response}).retryWhen(function(t){return t.mergeMap(function(t){return t.status>=400&&t.status<600?c.Observable.throw(t,e.services.scheduler):c.Observable.of(t,e.services.scheduler)}).delay(e.timeout,e.services.scheduler).take(e.retries)})}},{key:"refreshTokenLoop",value:function(){var e=this;this.tokenRefreshSubscription=c.Observable.interval(b,this.services.scheduler).flatMap(function(t){return e.refreshToken()}).subscribe(function(t){k("refreshing token",t,"at",new Date),e.token=t})}},{key:"refreshToken",value:function(){var e=this;return this.checkConnection(!0).flatMap(function(t){return e.services.ajax({method:"POST",url:"".concat(e.domain,"/tokens/refresh"),timeout:e.timeout,headers:g({},e.commonHeaders())}).map(function(e){return e.response.token}).retryWhen(function(t){return t.mergeMap(function(t){return 403===t.status?(e.expiredToken(),c.Observable.throw(t,e.services.scheduler)):404===t.status?c.Observable.throw(t,e.services.scheduler):c.Observable.of(t,e.services.scheduler)}).delay(e.timeout,e.services.scheduler).take(e.retries)})})}},{key:"reconnect",value:function(e){this.token=e.token,this.streamUrl=e.streamUrl,this.connectionStatus$.getValue()===v.ExpiredToken&&this.connectionStatus$.next(v.Online)}},{key:"end",value:function(){this.tokenRefreshSubscription&&this.tokenRefreshSubscription.unsubscribe();try{this.connectionStatus$.next(v.Ended)}catch(Wqe){if(Wqe===x)return;throw Wqe}}},{key:"getSessionId",value:function(){var e=this;return k("getSessionId"),this.checkConnection(!0).flatMap(function(t){return e.services.ajax({method:"GET",url:"".concat(e.domain,"/session/getsessionid"),withCredentials:!0,timeout:e.timeout,headers:g({"Content-Type":"application/json"},e.commonHeaders())}).map(function(e){return e&&e.response&&e.response.sessionId?(k("getSessionId response: "+e.response.sessionId),e.response.sessionId):""}).catch(function(t){return k("getSessionId error: "+t.status),c.Observable.of("",e.services.scheduler)})}).catch(function(t){return e.catchExpiredToken(t)})}},{key:"postActivity",value:function(e){var t=this;return this.streaming&&(e.deliveryMode="stream"),this.userIdOnStartConversation&&e.from&&e.from.id!==this.userIdOnStartConversation&&(console.warn("DirectLineJS: Activity.from.id does not match with user id, ignoring activity.from.id"),e.from.id=this.userIdOnStartConversation),"message"===e.type&&e.attachments&&e.attachments.length>0?this.postMessageWithAttachments(e):(k("postActivity",e),this.checkConnection(!0).flatMap(function(r){return t.services.ajax({method:"POST",url:"".concat(t.domain,"/conversations/").concat(t.conversationId,"/activities"),body:e,timeout:t.timeout,headers:g({"Content-Type":"application/json"},t.commonHeaders())}).map(function(e){return e.response.id}).catch(function(e){return t.catchPostError(e)})}).catch(function(e){return t.catchExpiredToken(e)}))}},{key:"postMessageWithAttachments",value:function(e){var t,r=this,n=e.attachments,i=(0,f.default)(n.map(function(e){return e.name||"blob"})),a=n.map(function(e,t){return g(g({},e),{},{name:i[t]})});return this.checkConnection(!0).flatMap(function(n){return(t=new FormData).append("activity",new Blob([JSON.stringify(g(g({},e),{},{attachments:a.map(function(e){return e.contentUrl,g({},(0,o.default)(e,p))})}))],{type:"application/vnd.microsoft.activity"})),c.Observable.from(a,r.services.scheduler).flatMap(function(e){return r.services.ajax({method:"GET",url:e.contentUrl,responseType:"arraybuffer"}).do(function(r){return t.append("file",new Blob([r.response],{type:e.contentType}),e.name)})}).count()}).flatMap(function(n){return r.services.ajax({method:"POST",url:"".concat(r.domain,"/conversations/").concat(r.conversationId,"/upload?userId=").concat(e.from.id),body:t,timeout:r.timeout,headers:g({},r.commonHeaders())}).map(function(e){return e.response.id}).catch(function(e){return r.catchPostError(e)})}).catch(function(e){return r.catchPostError(e)})}},{key:"catchPostError",value:function(e){if(403===e.status)this.expiredToken();else if(e.status>=400&&e.status<500)return c.Observable.throw(e,this.services.scheduler);return c.Observable.of("retry",this.services.scheduler)}},{key:"catchExpiredToken",value:function(e){return e===w?c.Observable.of("retry",this.services.scheduler):c.Observable.throw(e,this.services.scheduler)}},{key:"pollingGetActivity$",value:function(){var e=this,t=c.Observable.create(function(t){var r=new l.BehaviorSubject({});r.subscribe(function(){if(e.connectionStatus$.getValue()===v.Online){var n=Date.now();e.services.ajax({headers:g({Accept:"application/json"},e.commonHeaders()),method:"GET",url:"".concat(e.domain,"/conversations/").concat(e.conversationId,"/activities?watermark=").concat(e.watermark),timeout:e.timeout}).subscribe(function(o){t.next(o),setTimeout(function(){return r.next(null)},Math.max(0,e.pollingInterval-Date.now()+n))},function(n){switch(n.status){case 403:e.connectionStatus$.next(v.ExpiredToken),setTimeout(function(){return r.next(null)},e.pollingInterval);break;case 404:e.connectionStatus$.next(v.Ended);break;default:t.error(n)}})}})});return this.checkConnection().flatMap(function(r){return t.catch(function(){return c.Observable.empty()}).map(function(e){return e.response}).flatMap(function(t){return e.observableFromActivityGroup(t)})})}},{key:"observableFromActivityGroup",value:function(e){return e.watermark&&(this.watermark=e.watermark),c.Observable.from(e.activities,this.services.scheduler)}},{key:"webSocketActivity$",value:function(){var e=this;return this.checkConnection().flatMap(function(t){return e.observableWebSocket().retryWhen(function(t){return t.delay(e.getRetryDelay(),e.services.scheduler).mergeMap(function(t){return e.reconnectToConversation()})})}).flatMap(function(t){return e.observableFromActivityGroup(t)})}},{key:"getRetryDelay",value:function(){return Math.floor(3e3+12e3*this.services.random())}},{key:"observableWebSocket",value:function(){var e=this;return c.Observable.create(function(t){k("creating WebSocket",e.streamUrl);var r,n,o=new e.services.WebSocket(e.streamUrl);return o.onopen=function(t){k("WebSocket open",t),r=c.Observable.interval(e.timeout,e.services.scheduler).subscribe(function(e){try{o.send("")}catch(Wqe){k("Ping error",Wqe)}})},o.onclose=function(e){k("WebSocket close",e),r&&r.unsubscribe(),n||t.error(e),n=!0},o.onerror=function(e){k("WebSocket error",e),r&&r.unsubscribe(),n||t.error(e),n=!0},o.onmessage=function(e){return e.data&&t.next(JSON.parse(e.data))},function(){0!==o.readyState&&1!==o.readyState||o.close()}})}},{key:"reconnectToConversation",value:function(){var e=this;return this.checkConnection(!0).flatMap(function(t){return e.services.ajax({method:"GET",url:"".concat(e.domain,"/conversations/").concat(e.conversationId,"?watermark=").concat(e.watermark),timeout:e.timeout,headers:g({Accept:"application/json"},e.commonHeaders())}).do(function(t){e.secret||(e.token=t.response.token),e.streamUrl=t.response.streamUrl}).map(function(e){return null}).retryWhen(function(t){return t.mergeMap(function(t){if(403===t.status)e.expiredToken();else if(404===t.status)return c.Observable.throw(x,e.services.scheduler);return c.Observable.of(t,e.services.scheduler)}).delay(e.timeout,e.services.scheduler).take(e.retries)})})}},{key:"commonHeaders",value:function(){return{Authorization:"Bearer ".concat(this.token),"x-ms-bot-agent":this._botAgent}}},{key:"getBotAgent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="directlinejs";return e&&(t+="; ".concat(e)),"".concat("DirectLine/3.0"," (").concat(t," ").concat("0.15.9",")")}},{key:"setUserId",value:function(e){if(this.connectionStatus$.getValue()===v.Online)throw new Error("DirectLineJS: It is connected, we cannot set user id.");return this.parseToken(this.token)?console.warn("DirectLineJS: user id is already set in token, will ignore this user id."):/^dl_/.test(e)?console.warn('DirectLineJS: user id prefixed with "dl_" is reserved and must be embedded into the Direct Line token to prevent forgery.'):void(this.userIdOnStartConversation=e)}},{key:"parseToken",value:function(e){try{return(0,d.default)(e).user}catch(Wqe){if(Wqe instanceof d.InvalidTokenError)return}}}])}()}(rxe)),rxe}var LRe=jRe();let FRe=class{constructor(e){this.plugins=[],this.pluginOnDestroy=[],this.options={...ye,...e}}async initialize(){this.plugins.forEach(e=>this.pluginOnDestroy.push(e(this)))}addPlugin(e){this.plugins.push(e)}addPlugins(...e){e.forEach(e=>this.addPlugin(e))}async destroy(){this.pluginOnDestroy.forEach(e=>e())}};const{log:VRe,logError:qRe}=R.withKind("directLineThunks"),HRe=wS("directLine/initializeToken",async(e,{dispatch:t,rejectWithValue:r})=>{try{const{setDirectLineToken:e}=await ck(async()=>{const{setDirectLineToken:e}=await Promise.resolve().then(()=>xC);return{setDirectLineToken:e}},void 0);let r=null;const n=YE(),o=n?.agent,i=n?.ocrAIChatToken&&n?.ocrAIChatTokenCreated&&n?.tuid?{token:n.ocrAIChatToken,created:n.ocrAIChatTokenCreated,tuid:n.tuid,expiresIn:3600}:null,a=!!i&&"WaaPro"!==o;a&&M7({name:jV,properties:{previousAgent:o||"Unknown",newAgent:"WaaPro"}});return M7({name:LV,properties:{agent:"WaaPro",isSwitch:String(a),previousAgent:o||"Unknown"}}),!a&&i&&(r=i),(!r||r&&!cC(r))&&(VRe("Fetching new DirectLine token"),r=await Rye()),t(e(r)),KE({agent:(_ye(),"WaaPro")}),t(URe(r.expiresIn)),r}catch(n){qRe("Failed to initialize DirectLine token:",n);const{addMessage:e}=await ck(async()=>{const{addMessage:e}=await Promise.resolve().then(()=>jC);return{addMessage:e}},void 0);return t(e({message:"Unable to connect to chat service. Please check your internet connection and try refreshing the page.",type:"error",dismissible:!0})),r(n)}}),URe=wS("directLine/scheduleTokenRefresh",async(e,{dispatch:t})=>{const{setDirectLineToken:r}=await ck(async()=>{const{setDirectLineToken:e}=await Promise.resolve().then(()=>xC);return{setDirectLineToken:e}},void 0),n=1e3*(e-180);if(n>0)return new Promise((e,o)=>{setTimeout(async()=>{try{VRe("⏰ Executing scheduled token refresh");let n=await(async()=>{const e=Cye();if(Tye()&&Eye(e)){const e=Sye();return{token:`local-dev-${e}`,created:Math.floor(Date.now()/1e3),expiresIn:3600,tuid:e}}return wye(async()=>{const e=Dwe.getState(),t=pC(e),r=vC(e),n=Date.now();if(!t)throw new Error("No current DirectLine token available to refresh");let o=!1,i=500,a="",s={token:"",created:0,expiresIn:0,tuid:""};const l="https://directline.botframework.com/v3/directline/tokens/refresh";let c=null;for(let h=1;h<=Aye;h++)try{const e=new AbortController,u=setTimeout(()=>{e.abort()},3e4),f={method:"POST",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json","User-Agent":"UnifiedChatAssistant/1.0"},signal:e.signal},p=await fetch(l,f);if(clearTimeout(u),!p)throw new Error("No response received from refresh endpoint");let m;if(i=p.status,"function"==typeof p.text){a=await p.text();try{m=JSON.parse(a)}catch(d){throw new Error(`Invalid JSON response from refresh endpoint. Status: ${i}, Response: ${a.substring(0,200)}`)}}else{if("function"!=typeof p.json)throw new Error(`Invalid response object from refresh endpoint. Status: ${i}`);m=await p.json(),a=JSON.stringify(m)}if(403===p.status)return o=!0,s;if(!p.ok){let e=`Failed to refresh DirectLine token (${i})`;switch(i){case 400:e=`Bad request to refresh endpoint. Invalid token format. Response: ${JSON.stringify(m)}`;break;case 401:e=`Token expired or unauthorized. Response: ${JSON.stringify(m)}`;break;case 404:e=`Refresh endpoint not found. Response: ${JSON.stringify(m)}`;break;case 429:e=`Rate limited by refresh endpoint. Response: ${JSON.stringify(m)}`;break;case 500:case 502:case 503:case 504:e=`Server error from refresh endpoint (${i}). Response: ${JSON.stringify(m)}`;break;default:e=`Unexpected error from refresh endpoint (${i}). Response: ${JSON.stringify(m)}`}const t=new Error(e);if(c=t,i>=400&&i<500&&429!==i)throw t;if(Bye(t,i)&&h<Aye){const e=Math.min(Iye*Math.pow(Nye,h-1),Pye);await Oye(e);continue}throw t}if(!m.token)throw new Error(`Invalid refresh response structure: missing 'token' field. Response: ${JSON.stringify(m)}`);if("number"!=typeof m.expires_in||m.expires_in<=0)throw new Error(`Invalid refresh response structure: invalid 'expires_in' field. Response: ${JSON.stringify(m)}`);o=!0;const{token:g,expires_in:v}=m;s={token:g,created:Math.floor(n/1e3),expiresIn:v,tuid:r};break}catch(f){if(c=f,i>=400&&i<500&&429!==i)break;if(Bye(c,i)&&h<Aye){const e=Math.min(Iye*Math.pow(Nye,h-1),Pye);await Oye(e);continue}break}if(c&&!o){const e=Dye(c,l),o={operation:"refreshDirectLineToken",currentTuid:r,hasCurrentToken:!!t,statusCode:i||"unknown",duration:Date.now()-n,responseText:a?a.substring(0,500):"",errorType:c instanceof Error?c.constructor.name:typeof c,errorMessage:c instanceof Error?c.message:String(c),attemptsUsed:Aye,isTimeoutError:c instanceof Error&&"AbortError"===c.name,isNetworkError:c instanceof Error&&(c.message.includes("fetch")||c.message.includes("network")||c.message.includes("Failed to fetch")),userAgent:navigator.userAgent,connectionType:navigator.connection?.effectiveType||"unknown",networkDiagnosis:e};throw H7(zV,c,o),c}const u=Date.now()-n;return l8(RV,q,zV,u,o,i,l),s},{operation:"refreshDirectLineToken",component:q,metadata:{hasCurrentToken:!!pC(Dwe.getState()),currentTuid:vC(Dwe.getState())}})})();(!n||n&&!cC(n))&&(VRe("Refresh token failed, fetching new DirectLine token"),n=await Rye()),t(r(n)),e(n)}catch(n){qRe("Background token refresh failed:",n),t(IC({message:"Unable to connect to chat service. Please check your internet connection and try refreshing the page.",type:"error",dismissible:!0})),o(n)}},n)});throw new Error("Invalid refresh delay")}),WRe=["#oc-contact-sales",".ocr-contact-sales",".waa-legacy-contactsales",'[data-mount="contact-sales"]'],$Re=e=>"true"===(e=>{const t=e??("undefined"==typeof document?void 0:document);return t?.querySelector("#web-ai-assistant-experience")})(e)?.getAttribute("data-waa-experience-owned-by-uca"),GRe=e=>{const t=e??("undefined"==typeof document?void 0:document);return WRe.some(e=>Boolean(t?.querySelector(e)))},{log:YRe,logError:KRe}=R.withKind("AssistantOnLoad");function XRe(){return function(){const e=document.getElementById("web-ai-assistant-experience");return Boolean(e?.dataset.geoExpansionFeatureFlag?.trim())}()||$Re()}function JRe(){try{const e=e=>{if("keydown"===e.type){const t=e;if("Enter"!==t.key&&" "!==t.key)return}e.preventDefault(),e.stopPropagation();const t=new CustomEvent(U,{detail:{value:Fye.chatActionTypeLinkText}});document.dispatchEvent(t)},t=document.querySelectorAll(be);t.length>0&&YRe(`Found ${t.length} 'Chat Now' triggers to override.`),t.forEach(t=>{const r=t.cloneNode(!0);r.removeAttribute(we),r.setAttribute(xe,""),r.setAttribute("aria-controls","unified-chat-assistant"),r.addEventListener("click",e),"none"===r.style.display&&r.style.removeProperty("display"),"BUTTON"!==r.tagName&&r.addEventListener("keydown",e),t.replaceWith(r)})}catch(e){KRe("Failed to apply Chat Now trigger overrides",e)}}function QRe(){YRe("Running assistant onload tasks..."),XRe()?function(){const e=document.getElementById("waaModern");if(!e)return void YRe("Preserving legacy 'Chat Now' triggers for WAA Control/Fallback.");if(!e.hidden)return void JRe();const t=new MutationObserver(()=>{const e=document.getElementById("waaModern");if(!e)return t.disconnect(),void YRe("Preserving legacy 'Chat Now' triggers for WAA Control/Fallback.");e.hidden||(t.disconnect(),JRe())});t.observe(document.documentElement,{attributes:!0,attributeFilter:["hidden"],childList:!0,subtree:!0})}():JRe()}const{log:ZRe,logWarn:eMe}=R.withKind("useExternalPromptHandler"),tMe=".ai-chat-banner .ai-search input[type='search']",rMe=".ai-chat-banner .ai-chat-banner__search button[type='submit']",nMe="data-uca-message-submission-lock-disabled",oMe=()=>{const e=document.querySelector(".ai-chat-banner .block-feature__title"),t=e?.textContent?.replace(/\s+/g," ").trim();return t||b8.HEADER_NAMES.ASK_MICROSOFT};function iMe({isEnabled:e}){const t=Kw(),r=Pw(lue),n=Pw(ek),o=Pw(tk);g.useEffect(()=>{const t=()=>{document.querySelectorAll(`${rMe}[${nMe}]`).forEach(e=>{e.disabled=!1,e.removeAttribute(nMe)})};if(!e||!n||r!==M.DirectLine)return;if(!o)return void t();const i=()=>{document.querySelectorAll(rMe).forEach(e=>{e.disabled||(e.disabled=!0,e.setAttribute(nMe,"true"))})};i();const a=new MutationObserver(i);return document.querySelectorAll(".ai-chat-banner").forEach(e=>{a.observe(e,{attributes:!0,attributeFilter:["disabled"],childList:!0,subtree:!0})}),()=>{a.disconnect(),t()}},[r,e,n,o]),g.useEffect(()=>{if(!e)return;const r=e=>{const{detail:r}=e,n=function(e){if(null==e||"object"!=typeof e)return{valid:!1,reason:"Event detail must be an object"};const t=e,r="object"==typeof t.options&&null!==t.options?t.options:null,n=r?.behavior;if("open-only"!==n&&("string"!=typeof t.value||0===t.value.trim().length))return{valid:!1,reason:"Event detail.value must be a non-empty string"};if(void 0!==t.messageType&&("string"!=typeof t.messageType||!Aue.has(t.messageType)))return{valid:!1,reason:`Unsupported messageType: "${String(t.messageType)}". Supported: ${[...Aue].join(", ")}`};if(void 0!==t.options){if("object"!=typeof t.options||null===t.options)return{valid:!1,reason:"options must be an object"};const e=t.options;if(void 0!==e.behavior&&("string"!=typeof e.behavior||!Cue.has(e.behavior)))return{valid:!1,reason:`Unsupported behavior: "${String(e.behavior)}". Supported: ${[...Cue].join(", ")}`};if(void 0!==e.delayMs&&("number"!=typeof e.delayMs||!isFinite(e.delayMs)||e.delayMs<0))return{valid:!1,reason:"options.delayMs must be a finite number >= 0"}}if(void 0!==t.metadata){if("object"!=typeof t.metadata||null===t.metadata)return{valid:!1,reason:"metadata must be an object"};const e=t.metadata;if("string"!=typeof e.source||0===e.source.trim().length)return{valid:!1,reason:"metadata.source is required when metadata is present"}}return{valid:!0}}(r);n.valid?t(NS(Iue(r,!1))):eMe(`waa:sendPrompt ignored: ${n.reason}`)},n=e=>{e.preventDefault();const r=document.querySelector("#web-ai-assistant-experience #waaModern");if(!r||r.hidden)return;const{detail:n}=e,o=document.querySelector(tMe);o&&(o.value="");const i=function(e){const t=e?.value?.toString().trim();return t?{value:t,messageType:"text",behavior:"submit",focusInput:!0,waitForReady:!0,delayMs:0,metadata:null,isLegacyEvent:!0}:(Sue("Legacy onAiSearchSubmit received with empty or missing value. Ignoring."),null)}(n);i&&t(NS(i))},o=document.querySelector(tMe),i=document.querySelector(".ai-chat-banner .ai-search button[type='submit']"),a=e=>{!e.repeat&&"Enter"===e.key&&o&&o.value.trim()&&Ece({behavior:b8.BEHAVIORS.CONTENT_INTERACTION,actionType:b8.ACTION_TYPES.KEYBOARD,contentTags:{id:b8.IDS.AI_BANNER_MANUAL,aN:b8.AREA_NAMES.BANNER,view:b8.VIEW.AI_ASSISTANT_BANNER,hn:oMe(),ehn:b8.HEADER_NAMES.ASK_MICROSOFT,cT:b8.CONTENT_TYPES.FREEFORM_PROMPT_SUBMIT,compnm:i?.getAttribute("data-bi-compnm")||b8.COMPONENT_NAMES.AI_CHAT_BANNER}})};return document.addEventListener(W,r),document.addEventListener(U,n),o&&o.addEventListener("keydown",a),ZRe("External prompt listeners registered"),()=>{document.removeEventListener(W,r),document.removeEventListener(U,n),o&&o.removeEventListener("keydown",a)}},[e,t])}const{log:aMe,logWarn:sMe,logError:lMe}=R.withKind("useAssistantInitialization"),cMe=(e,t)=>{const r=g.useRef(null),n=g.useRef(!1),o=g.useRef(!1),i=Kw(),a=t?.shouldInitialize??!0,s="string"==typeof e?.partnerId&&e.partnerId.trim().length>0;let l=performance.now(),c=!1;const u=async()=>{if(s&&e)if(a){if(!n.current)return n.current=!0,l=performance.now(),wye(async()=>{const t=e?.mode||L.Drawer;await xye(Dwe.dispatch(kC(t)),{operation:"initializeDrawerState",component:"AssistantInitialization"}),o8(e?.theme||j.Day),i8(e?.mode||L.Drawer);const n=Dwe.getState().optionsProvider?.options;(!n?.partnerId||"test"===n.partnerId||e?.partnerId!==n.partnerId)&&Dwe.dispatch(GS(e));const o=WE();KE({[IE]:o});let i=await xye(d(e),{operation:"initializeDirectLineProvider",component:"AssistantInitialization"});if(await xye(f(e),{operation:"initializeLivepersonProvider",component:"AssistantInitialization"}),i?.token){aMe("Initializing assistant with DirectLine token"),r.current=new FRe(e);const t=_ye(),n=(()=>{_ye();const e=Dwe.getState().optionsProvider?.options?.directLineDomain;if(e)return e})();aMe(`Connection state: ${t}, domain: ${n??"default (botframework)"}`),M7({name:BV,properties:{connectionState:t,agentLabel:"WaaPro"}}),KE({agent:"WaaPro"});const o=new LRe.DirectLine({token:i.token,domain:n});Dwe.dispatch(function({directLine:e,userID:t,username:r}){return{type:Mue,payload:{directLine:e,userID:t,username:r}}}({directLine:o,userID:i.tuid,username:""})),await xye(r.current.initialize(),{operation:"assistantInitialize",component:"AssistantInitialization"}),aMe("✅ Assistant initializationed")}else sMe("⚠ No token or options available for assistant initialization")},{operation:"initializeAssistant",component:"useAssistantInitialization",metadata:{mode:e?.mode,theme:e?.theme}}).catch(e=>{lMe("❌ Failed to initialize assistant:",e),n.current=!1});aMe("Skipping initialization - already initialized",{hasAssistant:!!r.current})}else aMe("Skipping initialization - shouldInitialize=false");else aMe("Skipping initialization - no valid options provided")},d=async e=>wye(async()=>{await xye(Dwe.dispatch(HRe()),{operation:"initializeTokenDirectLine",component:"DirectLineProvider"});const e=Dwe.getState(),t=pC(e),r=vC(e);if(t)return aMe("DirectLine token available, proceeding with initialization"),{token:t,tuid:r};sMe("⚠ No DirectLine token available for assistant initialization")},{operation:"initializeDirectLineProvider",component:"useAssistantInitialization"}),f=async e=>wye(async()=>{aMe("Initializing LivePerson provider",e);const t=YE(),r=t?.lpJWT||null,n=t?.lpOpenConvs&&Object.keys(t.lpOpenConvs)[0]||null,o=t?.lpEngagementSession?.account||null;aMe("LivePerson cookie data check",{hasCookie:!!t,hasJWT:!!r,conversationId:n,accountId:o});!!o&&!!n&&!!r?(aMe("Found sufficient LivePerson session data, dispatching initLivePersonChat"),Dwe.dispatch(sV.setLivePersonData({accountId:o})),Dwe.dispatch(sV.initLivePersonChat())):aMe("Insufficient LivePerson session data for automatic reconnection",{missingData:{accountId:!o,conversationId:!n,jwt:!r}})},{operation:"initializeLivepersonProvider",component:"useAssistantInitialization",metadata:{hasDirectConnectionData:!1}});return iMe({isEnabled:s}),g.useEffect(()=>{s&&!o.current&&(QRe(),o.current=!0)},[s]),g.useEffect(()=>{if(!s||!a)return;let e=!0;(async()=>{if(e){await u();try{await new Promise((e,t)=>{const r=document.querySelector("#unified-chat-assistant");if(r)return r.querySelector(".uca-chat-message-bubble")?(e(),void(c||(c=!0,l=performance.now()-l,M7({name:NV,measurements:{timeToFirstMessage:l}})))):void new MutationObserver((t,r)=>{for(const n of t)for(const t of n.addedNodes)if(t instanceof HTMLElement&&t.querySelector(".uca-chat-message-bubble"))return r.disconnect(),e(),void(c||(c=!0,l=performance.now()-l,M7({name:NV,measurements:{timeToFirstMessage:l}})))}).observe(r,{childList:!0,subtree:!0});t(new Error("uca element not found. Cannot observe for welcome message."))}),i(PS())}catch(t){lMe("Error waiting for welcome message to render during initialization:",t)}}})();const t=e=>{aMe("Send message event triggered",e)};return document.addEventListener(H,t),()=>{e=!1,r.current&&(aMe("Cleaning up assistant instance"),r.current.destroy(),r.current=null),document.removeEventListener(H,t),n.current=!1,n.current=!1}},[e,i,s,a]),{assistantRef:r,initializeAssistant:u}},uMe=()=>Pw(e=>e.optionsProvider.options),dMe="--uca-visual-viewport-height",fMe="--uca-visual-viewport-offset-top",hMe="--uca-visual-viewport-bottom-cover",pMe=e=>e instanceof HTMLElement&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||!0===e.isContentEditable);function mMe(){const e=Kw(),{isDrawerOpen:t,toggleDrawer:r}=ode(),n=g.useRef(!1);g.useEffect(()=>{if(n.current)return;const{value:o,prompt:i}=function(e){try{const t=new URLSearchParams(e),r=t.get("waa")??"",n=ide.includes(r)?r:null;return{value:n,prompt:"3"===n?CE.sanitize(t.get("prompt")?.trim()||""):""}}catch(t){return console.error("Error parsing waa activation from URL:",t),{value:null,prompt:""}}}(window.location.search);if(!o)return;n.current=!0;const a="3"===o&&i.length>0,s=()=>e(NS(Iue({value:i,messageType:"text",options:{behavior:"submit",waitForReady:!0,focusInput:!0},metadata:{source:"waa3-url-param"}},!1)));t||(a||Ece({behavior:b8.BEHAVIORS.CHAT_INITIATE,actionType:b8.ACTION_TYPES.AUTOMATIC,contentTags:{compnm:b8.COMPONENT_NAMES.AI_ASSISTANT,aN:b8.AREA_NAMES.AI_CHAT_DRAWER,view:b8.VIEW.AI_CHAT_DRAWER,cT:b8.CONTENT_TYPES.EXPAND,hn:b8.HEADER_NAMES.ASK_MICROSOFT,ehn:b8.HEADER_NAMES.ASK_MICROSOFT,id:b8.IDS.AI_CHAT_OPEN_CONFIRMATION}}),r(),e(dV.logTelemetry(`WAA parameter set to ${o}`))),a&&s()},[t,r,e])}const gMe=e=>e.id?e.id:`${e.localTimestamp}-user`,vMe=e=>"string"==typeof e.replyToId&&e.replyToId.endsWith("|0000000");let yMe=null,bMe="",wMe=0;const xMe=(e,t="polite")=>{const r=Date.now();if(e===bMe&&r-wMe<500)return;bMe=e,wMe=r;const n=(yMe&&document.body.contains(yMe)||(yMe=document.createElement("div"),yMe.setAttribute("aria-live","polite"),yMe.setAttribute("aria-atomic","false"),yMe.setAttribute("class","uca-screen-reader-only"),yMe.setAttribute("id","uca-global-live-region"),yMe.setAttribute("aria-relevant","additions text"),yMe.setAttribute("role","log"),yMe.style.position="absolute",yMe.style.left="-10000px",yMe.style.width="1px",yMe.style.height="1px",yMe.style.overflow="hidden",document.body.appendChild(yMe)),yMe);n.setAttribute("aria-live",t),n.textContent="",setTimeout(()=>{n&&(n.textContent=e)},100)},SMe="Bot is typing...",kMe="An error occurred",EMe=()=>xMe(SMe),TMe=()=>{yMe&&(yMe.textContent="")},_Me=e=>e.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/(\*\*|__)(.*?)\1/g,"$2").replace(/(\*|_)(.*?)\1/g,"$2").replace(/`([^`]*)`/g,"$1").trim(),CMe=e=>{const t=[];for(const r of e)r.text&&t.push(r.text),r.inlines&&t.push(CMe(r.inlines));return t.join("")},AMe=e=>{const t=[];for(const r of e)if(r&&r.type)switch(r.type){case"TextBlock":r.text&&t.push(_Me(r.text));break;case"RichTextBlock":if(r.inlines){const e=CMe(r.inlines);e&&t.push(e)}break;case"Input.Toggle":r.title&&t.push(_Me(r.title));break;case"Input.ChoiceSet":if(r.label&&t.push(_Me(r.label)),r.choices)for(const e of r.choices)e.title&&t.push(_Me(e.title));break;case"Input.Text":case"Input.Number":case"Input.Date":case"Input.Time":r.label&&t.push(_Me(r.label));break;case"FactSet":if(r.facts)for(const e of r.facts)e.title&&e.value?t.push(`${e.title} ${e.value}`):e.title&&t.push(e.title);break;case"Image":r.altText&&t.push(r.altText);break;case"Container":r.items&&t.push(...AMe(r.items));break;case"ColumnSet":if(r.columns)for(const e of r.columns)e.items&&t.push(...AMe(e.items));break;case"Table":if(r.rows)for(const e of r.rows)if(e.cells)for(const r of e.cells)Array.isArray(r)&&t.push(...AMe(r));break;case"ActionSet":if(r.actions)for(const e of r.actions)e.title&&t.push(_Me(e.title));break;default:if(r.items&&t.push(...AMe(r.items)),r.columns)for(const e of r.columns)e.items&&t.push(...AMe(e.items))}return t},IMe=e=>{if(!e)return"";if(e.speak){const t=e.speak.replace(/<[^>]*>/g,"").trim();if(t)return t}if(e.fallbackText){const t=_Me(e.fallbackText);if(t)return t}const t=[];if(e.body&&Array.isArray(e.body)&&t.push(...AMe(e.body)),e.actions&&Array.isArray(e.actions))for(const r of e.actions)r.title&&t.push(_Me(r.title));return Ace(t.filter(Boolean).join(". "))},PMe=e=>{if(!e||0===e.length)return"";const t=[];for(const r of e)if("application/vnd.microsoft.card.adaptive"===r.contentType&&r.content){const e=IMe(r.content);e&&t.push(e)}return t.join(". ")};var NMe,BMe;function OMe(){return NMe.apply(null,arguments)}function DMe(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function RMe(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function MMe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function zMe(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(MMe(e,t))return!1;return!0}function jMe(e){return void 0===e}function LMe(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function FMe(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function VMe(e,t){var r,n=[],o=e.length;for(r=0;r<o;++r)n.push(t(e[r],r));return n}function qMe(e,t){for(var r in t)MMe(t,r)&&(e[r]=t[r]);return MMe(t,"toString")&&(e.toString=t.toString),MMe(t,"valueOf")&&(e.valueOf=t.valueOf),e}function HMe(e,t,r,n){return uLe(e,t,r,n,!0).utc()}function UMe(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function WMe(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());return n&&(t=UMe(e),r=BMe.call(t.parsedDateParts,function(e){return null!=e}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?n:(e._isValid=n,e._isValid)}function $Me(e){var t=HMe(NaN);return null!=e?qMe(UMe(t),e):UMe(t).userInvalidated=!0,t}BMe=Array.prototype.some?Array.prototype.some:function(e){var t,r=Object(this),n=r.length>>>0;for(t=0;t<n;t++)if(t in r&&e.call(this,r[t],t,r))return!0;return!1};var GMe=OMe.momentProperties=[],YMe=!1;function KMe(e,t){var r,n,o,i=GMe.length;if(jMe(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),jMe(t._i)||(e._i=t._i),jMe(t._f)||(e._f=t._f),jMe(t._l)||(e._l=t._l),jMe(t._strict)||(e._strict=t._strict),jMe(t._tzm)||(e._tzm=t._tzm),jMe(t._isUTC)||(e._isUTC=t._isUTC),jMe(t._offset)||(e._offset=t._offset),jMe(t._pf)||(e._pf=UMe(t)),jMe(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)jMe(o=t[n=GMe[r]])||(e[n]=o);return e}function XMe(e){KMe(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===YMe&&(YMe=!0,OMe.updateOffset(this),YMe=!1)}function JMe(e){return e instanceof XMe||null!=e&&null!=e._isAMomentObject}function QMe(e){!1===OMe.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function ZMe(e,t){var r=!0;return qMe(function(){if(null!=OMe.deprecationHandler&&OMe.deprecationHandler(null,e),r){var n,o,i,a=[],s=arguments.length;for(o=0;o<s;o++){if(n="","object"==typeof arguments[o]){for(i in n+="\n["+o+"] ",arguments[0])MMe(arguments[0],i)&&(n+=i+": "+arguments[0][i]+", ");n=n.slice(0,-2)}else n=arguments[o];a.push(n)}QMe(e+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),r=!1}return t.apply(this,arguments)},t)}var eze,tze={};function rze(e,t){null!=OMe.deprecationHandler&&OMe.deprecationHandler(e,t),tze[e]||(QMe(t),tze[e]=!0)}function nze(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function oze(e,t){var r,n=qMe({},e);for(r in t)MMe(t,r)&&(RMe(e[r])&&RMe(t[r])?(n[r]={},qMe(n[r],e[r]),qMe(n[r],t[r])):null!=t[r]?n[r]=t[r]:delete n[r]);for(r in e)MMe(e,r)&&!MMe(t,r)&&RMe(e[r])&&(n[r]=qMe({},n[r]));return n}function ize(e){null!=e&&this.set(e)}OMe.suppressDeprecationWarnings=!1,OMe.deprecationHandler=null,eze=Object.keys?Object.keys:function(e){var t,r=[];for(t in e)MMe(e,t)&&r.push(t);return r};function aze(e,t,r){var n=""+Math.abs(e),o=t-n.length;return(e>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+n}var sze=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,lze=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,cze={},uze={};function dze(e,t,r,n){var o=n;"string"==typeof n&&(o=function(){return this[n]()}),e&&(uze[e]=o),t&&(uze[t[0]]=function(){return aze(o.apply(this,arguments),t[1],t[2])}),r&&(uze[r]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function fze(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function hze(e,t){return e.isValid()?(t=pze(t,e.localeData()),cze[t]=cze[t]||function(e){var t,r,n=e.match(sze);for(t=0,r=n.length;t<r;t++)uze[n[t]]?n[t]=uze[n[t]]:n[t]=fze(n[t]);return function(t){var o,i="";for(o=0;o<r;o++)i+=nze(n[o])?n[o].call(t,e):n[o];return i}}(t),cze[t](e)):e.localeData().invalidDate()}function pze(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}for(lze.lastIndex=0;r>=0&&lze.test(e);)e=e.replace(lze,n),lze.lastIndex=0,r-=1;return e}var mze={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function gze(e){return"string"==typeof e?mze[e]||mze[e.toLowerCase()]:void 0}function vze(e){var t,r,n={};for(r in e)MMe(e,r)&&(t=gze(r))&&(n[t]=e[r]);return n}var yze={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var bze,wze=/\d/,xze=/\d\d/,Sze=/\d{3}/,kze=/\d{4}/,Eze=/[+-]?\d{6}/,Tze=/\d\d?/,_ze=/\d\d\d\d?/,Cze=/\d\d\d\d\d\d?/,Aze=/\d{1,3}/,Ize=/\d{1,4}/,Pze=/[+-]?\d{1,6}/,Nze=/\d+/,Bze=/[+-]?\d+/,Oze=/Z|[+-]\d\d:?\d\d/gi,Dze=/Z|[+-]\d\d(?::?\d\d)?/gi,Rze=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Mze=/^[1-9]\d?/,zze=/^([1-9]\d|\d)/;function jze(e,t,r){bze[e]=nze(t)?t:function(e,n){return e&&r?r:t}}function Lze(e,t){return MMe(bze,e)?bze[e](t._strict,t._locale):new RegExp(Fze(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,n,o){return t||r||n||o})))}function Fze(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Vze(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function qze(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=Vze(t)),r}bze={};var Hze={};function Uze(e,t){var r,n,o=t;for("string"==typeof e&&(e=[e]),LMe(t)&&(o=function(e,r){r[t]=qze(e)}),n=e.length,r=0;r<n;r++)Hze[e[r]]=o}function Wze(e,t){Uze(e,function(e,r,n,o){n._w=n._w||{},t(e,n._w,n,o)})}function $ze(e,t,r){null!=t&&MMe(Hze,e)&&Hze[e](t,r._a,r,e)}function Gze(e){return e%4==0&&e%100!=0||e%400==0}var Yze=0,Kze=1,Xze=2,Jze=3,Qze=4,Zze=5,eje=6,tje=7,rje=8;function nje(e){return Gze(e)?366:365}dze("Y",0,0,function(){var e=this.year();return e<=9999?aze(e,4):"+"+e}),dze(0,["YY",2],0,function(){return this.year()%100}),dze(0,["YYYY",4],0,"year"),dze(0,["YYYYY",5],0,"year"),dze(0,["YYYYYY",6,!0],0,"year"),jze("Y",Bze),jze("YY",Tze,xze),jze("YYYY",Ize,kze),jze("YYYYY",Pze,Eze),jze("YYYYYY",Pze,Eze),Uze(["YYYYY","YYYYYY"],Yze),Uze("YYYY",function(e,t){t[Yze]=2===e.length?OMe.parseTwoDigitYear(e):qze(e)}),Uze("YY",function(e,t){t[Yze]=OMe.parseTwoDigitYear(e)}),Uze("Y",function(e,t){t[Yze]=parseInt(e,10)}),OMe.parseTwoDigitYear=function(e){return qze(e)+(qze(e)>68?1900:2e3)};var oje,ije=aje("FullYear",!0);function aje(e,t){return function(r){return null!=r?(lje(this,e,r),OMe.updateOffset(this,t),this):sje(this,e)}}function sje(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function lje(e,t,r){var n,o,i,a,s;if(e.isValid()&&!isNaN(r)){switch(n=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(o?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(o?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(o?n.setUTCHours(r):n.setHours(r));case"Date":return void(o?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}i=r,a=e.month(),s=29!==(s=e.date())||1!==a||Gze(i)?s:28,o?n.setUTCFullYear(i,a,s):n.setFullYear(i,a,s)}}function cje(e,t){if(isNaN(e)||isNaN(t))return NaN;var r,n=(t%(r=12)+r)%r;return e+=(t-n)/12,1===n?Gze(e)?29:28:31-n%7%2}oje=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},dze("M",["MM",2],"Mo",function(){return this.month()+1}),dze("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),dze("MMMM",0,0,function(e){return this.localeData().months(this,e)}),jze("M",Tze,Mze),jze("MM",Tze,xze),jze("MMM",function(e,t){return t.monthsShortRegex(e)}),jze("MMMM",function(e,t){return t.monthsRegex(e)}),Uze(["M","MM"],function(e,t){t[Kze]=qze(e)-1}),Uze(["MMM","MMMM"],function(e,t,r,n){var o=r._locale.monthsParse(e,n,r._strict);null!=o?t[Kze]=o:UMe(r).invalidMonth=e});var uje="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),dje="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),fje=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,hje=Rze,pje=Rze;function mje(e,t,r){var n,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=HMe([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(o=oje.call(this._shortMonthsParse,a))?o:null:-1!==(o=oje.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=oje.call(this._shortMonthsParse,a))||-1!==(o=oje.call(this._longMonthsParse,a))?o:null:-1!==(o=oje.call(this._longMonthsParse,a))||-1!==(o=oje.call(this._shortMonthsParse,a))?o:null}function gje(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=qze(t);else if(!LMe(t=e.localeData().monthsParse(t)))return e;var r=t,n=e.date();return n=n<29?n:Math.min(n,cje(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function vje(e){return null!=e?(gje(this,e),OMe.updateOffset(this,!0),this):sje(this,"Month")}function yje(){function e(e,t){return t.length-e.length}var t,r,n,o,i=[],a=[],s=[];for(t=0;t<12;t++)r=HMe([2e3,t]),n=Fze(this.monthsShort(r,"")),o=Fze(this.months(r,"")),i.push(n),a.push(o),s.push(o),s.push(n);i.sort(e),a.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function bje(e,t,r,n,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,r,n,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,o,i,a),s}function wje(e){var t,r;return e<100&&e>=0?((r=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function xje(e,t,r){var n=7+t-r;return-((7+wje(e,0,n).getUTCDay()-t)%7)+n-1}function Sje(e,t,r,n,o){var i,a,s=1+7*(t-1)+(7+r-n)%7+xje(e,n,o);return s<=0?a=nje(i=e-1)+s:s>nje(e)?(i=e+1,a=s-nje(e)):(i=e,a=s),{year:i,dayOfYear:a}}function kje(e,t,r){var n,o,i=xje(e.year(),t,r),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?n=a+Eje(o=e.year()-1,t,r):a>Eje(e.year(),t,r)?(n=a-Eje(e.year(),t,r),o=e.year()+1):(o=e.year(),n=a),{week:n,year:o}}function Eje(e,t,r){var n=xje(e,t,r),o=xje(e+1,t,r);return(nje(e)-n+o)/7}dze("w",["ww",2],"wo","week"),dze("W",["WW",2],"Wo","isoWeek"),jze("w",Tze,Mze),jze("ww",Tze,xze),jze("W",Tze,Mze),jze("WW",Tze,xze),Wze(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=qze(e)});function Tje(e,t){return e.slice(t,7).concat(e.slice(0,t))}dze("d",0,"do","day"),dze("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),dze("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),dze("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),dze("e",0,0,"weekday"),dze("E",0,0,"isoWeekday"),jze("d",Tze),jze("e",Tze),jze("E",Tze),jze("dd",function(e,t){return t.weekdaysMinRegex(e)}),jze("ddd",function(e,t){return t.weekdaysShortRegex(e)}),jze("dddd",function(e,t){return t.weekdaysRegex(e)}),Wze(["dd","ddd","dddd"],function(e,t,r,n){var o=r._locale.weekdaysParse(e,n,r._strict);null!=o?t.d=o:UMe(r).invalidWeekday=e}),Wze(["d","e","E"],function(e,t,r,n){t[n]=qze(e)});var _je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Cje="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Aje="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ije=Rze,Pje=Rze,Nje=Rze;function Bje(e,t,r){var n,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=HMe([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(o=oje.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=oje.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=oje.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=oje.call(this._weekdaysParse,a))||-1!==(o=oje.call(this._shortWeekdaysParse,a))||-1!==(o=oje.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=oje.call(this._shortWeekdaysParse,a))||-1!==(o=oje.call(this._weekdaysParse,a))||-1!==(o=oje.call(this._minWeekdaysParse,a))?o:null:-1!==(o=oje.call(this._minWeekdaysParse,a))||-1!==(o=oje.call(this._weekdaysParse,a))||-1!==(o=oje.call(this._shortWeekdaysParse,a))?o:null}function Oje(){function e(e,t){return t.length-e.length}var t,r,n,o,i,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)r=HMe([2e3,1]).day(t),n=Fze(this.weekdaysMin(r,"")),o=Fze(this.weekdaysShort(r,"")),i=Fze(this.weekdays(r,"")),a.push(n),s.push(o),l.push(i),c.push(n),c.push(o),c.push(i);a.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Dje(){return this.hours()%12||12}function Rje(e,t){dze(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Mje(e,t){return t._meridiemParse}dze("H",["HH",2],0,"hour"),dze("h",["hh",2],0,Dje),dze("k",["kk",2],0,function(){return this.hours()||24}),dze("hmm",0,0,function(){return""+Dje.apply(this)+aze(this.minutes(),2)}),dze("hmmss",0,0,function(){return""+Dje.apply(this)+aze(this.minutes(),2)+aze(this.seconds(),2)}),dze("Hmm",0,0,function(){return""+this.hours()+aze(this.minutes(),2)}),dze("Hmmss",0,0,function(){return""+this.hours()+aze(this.minutes(),2)+aze(this.seconds(),2)}),Rje("a",!0),Rje("A",!1),jze("a",Mje),jze("A",Mje),jze("H",Tze,zze),jze("h",Tze,Mze),jze("k",Tze,Mze),jze("HH",Tze,xze),jze("hh",Tze,xze),jze("kk",Tze,xze),jze("hmm",_ze),jze("hmmss",Cze),jze("Hmm",_ze),jze("Hmmss",Cze),Uze(["H","HH"],Jze),Uze(["k","kk"],function(e,t,r){var n=qze(e);t[Jze]=24===n?0:n}),Uze(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),Uze(["h","hh"],function(e,t,r){t[Jze]=qze(e),UMe(r).bigHour=!0}),Uze("hmm",function(e,t,r){var n=e.length-2;t[Jze]=qze(e.substr(0,n)),t[Qze]=qze(e.substr(n)),UMe(r).bigHour=!0}),Uze("hmmss",function(e,t,r){var n=e.length-4,o=e.length-2;t[Jze]=qze(e.substr(0,n)),t[Qze]=qze(e.substr(n,2)),t[Zze]=qze(e.substr(o)),UMe(r).bigHour=!0}),Uze("Hmm",function(e,t,r){var n=e.length-2;t[Jze]=qze(e.substr(0,n)),t[Qze]=qze(e.substr(n))}),Uze("Hmmss",function(e,t,r){var n=e.length-4,o=e.length-2;t[Jze]=qze(e.substr(0,n)),t[Qze]=qze(e.substr(n,2)),t[Zze]=qze(e.substr(o))});var zje=aje("Hours",!0);var jje,Lje={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:uje,monthsShort:dje,week:{dow:0,doy:6},weekdays:_je,weekdaysMin:Aje,weekdaysShort:Cje,meridiemParse:/[ap]\.?m?\.?/i},Fje={},Vje={};function qje(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function Hje(e){return e?e.toLowerCase().replace("_","-"):e}function Uje(e){var t=null;if(void 0===Fje[e]&&"undefined"!=typeof module&&module&&module.exports&&function(e){return!(!e||!e.match("^[^/\\\\]*$"))}(e))try{t=jje._abbr,require("./locale/"+e),Wje(t)}catch(Wqe){Fje[e]=null}return Fje[e]}function Wje(e,t){var r;return e&&((r=jMe(t)?Gje(e):$je(e,t))?jje=r:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),jje._abbr}function $je(e,t){if(null!==t){var r,n=Lje;if(t.abbr=e,null!=Fje[e])rze("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Fje[e]._config;else if(null!=t.parentLocale)if(null!=Fje[t.parentLocale])n=Fje[t.parentLocale]._config;else{if(null==(r=Uje(t.parentLocale)))return Vje[t.parentLocale]||(Vje[t.parentLocale]=[]),Vje[t.parentLocale].push({name:e,config:t}),null;n=r._config}return Fje[e]=new ize(oze(n,t)),Vje[e]&&Vje[e].forEach(function(e){$je(e.name,e.config)}),Wje(e),Fje[e]}return delete Fje[e],null}function Gje(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return jje;if(!DMe(e)){if(t=Uje(e))return t;e=[e]}return function(e){for(var t,r,n,o,i=0;i<e.length;){for(t=(o=Hje(e[i]).split("-")).length,r=(r=Hje(e[i+1]))?r.split("-"):null;t>0;){if(n=Uje(o.slice(0,t).join("-")))return n;if(r&&r.length>=t&&qje(o,r)>=t-1)break;t--}i++}return jje}(e)}function Yje(e){var t,r=e._a;return r&&-2===UMe(e).overflow&&(t=r[Kze]<0||r[Kze]>11?Kze:r[Xze]<1||r[Xze]>cje(r[Yze],r[Kze])?Xze:r[Jze]<0||r[Jze]>24||24===r[Jze]&&(0!==r[Qze]||0!==r[Zze]||0!==r[eje])?Jze:r[Qze]<0||r[Qze]>59?Qze:r[Zze]<0||r[Zze]>59?Zze:r[eje]<0||r[eje]>999?eje:-1,UMe(e)._overflowDayOfYear&&(t<Yze||t>Xze)&&(t=Xze),UMe(e)._overflowWeeks&&-1===t&&(t=tje),UMe(e)._overflowWeekday&&-1===t&&(t=rje),UMe(e).overflow=t),e}var Kje=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xje=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Jje=/Z|[+-]\d\d(?::?\d\d)?/,Qje=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Zje=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],eLe=/^\/?Date\((-?\d+)/i,tLe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,rLe={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function nLe(e){var t,r,n,o,i,a,s=e._i,l=Kje.exec(s)||Xje.exec(s),c=Qje.length,u=Zje.length;if(l){for(UMe(e).iso=!0,t=0,r=c;t<r;t++)if(Qje[t][1].exec(l[1])){o=Qje[t][0],n=!1!==Qje[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,r=u;t<r;t++)if(Zje[t][1].exec(l[3])){i=(l[2]||" ")+Zje[t][0];break}if(null==i)return void(e._isValid=!1)}if(!n&&null!=i)return void(e._isValid=!1);if(l[4]){if(!Jje.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),lLe(e)}else e._isValid=!1}function oLe(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function iLe(e){var t,r,n,o,i,a,s,l,c=tLe.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(r=c[4],n=c[3],o=c[2],i=c[5],a=c[6],s=c[7],l=[oLe(r),dje.indexOf(n),parseInt(o,10),parseInt(i,10),parseInt(a,10)],s&&l.push(parseInt(s,10)),t=l,!function(e,t,r){return!e||Cje.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(UMe(r).weekdayMismatch=!0,r._isValid=!1,!1)}(c[1],t,e))return;e._a=t,e._tzm=function(e,t,r){if(e)return rLe[e];if(t)return 0;var n=parseInt(r,10),o=n%100;return(n-o)/100*60+o}(c[8],c[9],c[10]),e._d=wje.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),UMe(e).rfc2822=!0}else e._isValid=!1}function aLe(e,t,r){return null!=e?e:null!=t?t:r}function sLe(e){var t,r,n,o,i,a=[];if(!e._d){for(n=function(e){var t=new Date(OMe.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[Xze]&&null==e._a[Kze]&&function(e){var t,r,n,o,i,a,s,l,c;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(i=1,a=4,r=aLe(t.GG,e._a[Yze],kje(dLe(),1,4).year),n=aLe(t.W,1),((o=aLe(t.E,1))<1||o>7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,c=kje(dLe(),i,a),r=aLe(t.gg,e._a[Yze],c.year),n=aLe(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i);n<1||n>Eje(r,i,a)?UMe(e)._overflowWeeks=!0:null!=l?UMe(e)._overflowWeekday=!0:(s=Sje(r,n,o,i,a),e._a[Yze]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=aLe(e._a[Yze],n[Yze]),(e._dayOfYear>nje(i)||0===e._dayOfYear)&&(UMe(e)._overflowDayOfYear=!0),r=wje(i,0,e._dayOfYear),e._a[Kze]=r.getUTCMonth(),e._a[Xze]=r.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=n[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Jze]&&0===e._a[Qze]&&0===e._a[Zze]&&0===e._a[eje]&&(e._nextDay=!0,e._a[Jze]=0),e._d=(e._useUTC?wje:bje).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Jze]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(UMe(e).weekdayMismatch=!0)}}function lLe(e){if(e._f!==OMe.ISO_8601)if(e._f!==OMe.RFC_2822){e._a=[],UMe(e).empty=!0;var t,r,n,o,i,a,s,l=""+e._i,c=l.length,u=0;for(s=(n=pze(e._f,e._locale).match(sze)||[]).length,t=0;t<s;t++)o=n[t],(r=(l.match(Lze(o,e))||[])[0])&&((i=l.substr(0,l.indexOf(r))).length>0&&UMe(e).unusedInput.push(i),l=l.slice(l.indexOf(r)+r.length),u+=r.length),uze[o]?(r?UMe(e).empty=!1:UMe(e).unusedTokens.push(o),$ze(o,r,e)):e._strict&&!r&&UMe(e).unusedTokens.push(o);UMe(e).charsLeftOver=c-u,l.length>0&&UMe(e).unusedInput.push(l),e._a[Jze]<=12&&!0===UMe(e).bigHour&&e._a[Jze]>0&&(UMe(e).bigHour=void 0),UMe(e).parsedDateParts=e._a.slice(0),UMe(e).meridiem=e._meridiem,e._a[Jze]=function(e,t,r){var n;if(null==r)return t;return null!=e.meridiemHour?e.meridiemHour(t,r):null!=e.isPM?((n=e.isPM(r))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}(e._locale,e._a[Jze],e._meridiem),null!==(a=UMe(e).era)&&(e._a[Yze]=e._locale.erasConvertYear(a,e._a[Yze])),sLe(e),Yje(e)}else iLe(e);else nLe(e)}function cLe(e){var t=e._i,r=e._f;return e._locale=e._locale||Gje(e._l),null===t||void 0===r&&""===t?$Me({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),JMe(t)?new XMe(Yje(t)):(FMe(t)?e._d=t:DMe(r)?function(e){var t,r,n,o,i,a,s=!1,l=e._f.length;if(0===l)return UMe(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<l;o++)i=0,a=!1,t=KMe({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],lLe(t),WMe(t)&&(a=!0),i+=UMe(t).charsLeftOver,i+=10*UMe(t).unusedTokens.length,UMe(t).score=i,s?i<n&&(n=i,r=t):(null==n||i<n||a)&&(n=i,r=t,a&&(s=!0));qMe(e,r||t)}(e):r?lLe(e):function(e){var t=e._i;jMe(t)?e._d=new Date(OMe.now()):FMe(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=eLe.exec(e._i);null===t?(nLe(e),!1===e._isValid&&(delete e._isValid,iLe(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:OMe.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):DMe(t)?(e._a=VMe(t.slice(0),function(e){return parseInt(e,10)}),sLe(e)):RMe(t)?function(e){if(!e._d){var t=vze(e._i),r=void 0===t.day?t.date:t.day;e._a=VMe([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),sLe(e)}}(e):LMe(t)?e._d=new Date(t):OMe.createFromInputFallback(e)}(e),WMe(e)||(e._d=null),e))}function uLe(e,t,r,n,o){var i,a={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==r&&!1!==r||(n=r,r=void 0),(RMe(e)&&zMe(e)||DMe(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=o,a._l=r,a._i=e,a._f=t,a._strict=n,(i=new XMe(Yje(cLe(a))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function dLe(e,t,r,n){return uLe(e,t,r,n,!1)}OMe.createFromInputFallback=ZMe("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),OMe.ISO_8601=function(){},OMe.RFC_2822=function(){};var fLe=ZMe("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=dLe.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:$Me()}),hLe=ZMe("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=dLe.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:$Me()});function pLe(e,t){var r,n;if(1===t.length&&DMe(t[0])&&(t=t[0]),!t.length)return dLe();for(r=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](r)||(r=t[n]);return r}var mLe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function gLe(e){var t=vze(e),r=t.year||0,n=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=function(e){var t,r,n=!1,o=mLe.length;for(t in e)if(MMe(e,t)&&(-1===oje.call(mLe,t)||null!=e[t]&&isNaN(e[t])))return!1;for(r=0;r<o;++r)if(e[mLe[r]]){if(n)return!1;parseFloat(e[mLe[r]])!==qze(e[mLe[r]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*i,this._months=+o+3*n+12*r,this._data={},this._locale=Gje(),this._bubble()}function vLe(e){return e instanceof gLe}function yLe(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function bLe(e,t){dze(e,0,0,function(){var e=this.utcOffset(),r="+";return e<0&&(e=-e,r="-"),r+aze(~~(e/60),2)+t+aze(~~e%60,2)})}bLe("Z",":"),bLe("ZZ",""),jze("Z",Dze),jze("ZZ",Dze),Uze(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=xLe(Dze,e)});var wLe=/([\+\-]|\d\d)/gi;function xLe(e,t){var r,n,o=(t||"").match(e);return null===o?null:0===(n=60*(r=((o[o.length-1]||[])+"").match(wLe)||["-",0,0])[1]+qze(r[2]))?0:"+"===r[0]?n:-n}function SLe(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(JMe(e)||FMe(e)?e.valueOf():dLe(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),OMe.updateOffset(r,!1),r):dLe(e).local()}function kLe(e){return-Math.round(e._d.getTimezoneOffset())}function ELe(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}OMe.updateOffset=function(){};var TLe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,_Le=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function CLe(e,t){var r,n,o,i=e,a=null;return vLe(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:LMe(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(a=TLe.exec(e))?(r="-"===a[1]?-1:1,i={y:0,d:qze(a[Xze])*r,h:qze(a[Jze])*r,m:qze(a[Qze])*r,s:qze(a[Zze])*r,ms:qze(yLe(1e3*a[eje]))*r}):(a=_Le.exec(e))?(r="-"===a[1]?-1:1,i={y:ALe(a[2],r),M:ALe(a[3],r),w:ALe(a[4],r),d:ALe(a[5],r),h:ALe(a[6],r),m:ALe(a[7],r),s:ALe(a[8],r)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(o=function(e,t){var r;if(!e.isValid()||!t.isValid())return{milliseconds:0,months:0};t=SLe(t,e),e.isBefore(t)?r=ILe(e,t):((r=ILe(t,e)).milliseconds=-r.milliseconds,r.months=-r.months);return r}(dLe(i.from),dLe(i.to)),(i={}).ms=o.milliseconds,i.M=o.months),n=new gLe(i),vLe(e)&&MMe(e,"_locale")&&(n._locale=e._locale),vLe(e)&&MMe(e,"_isValid")&&(n._isValid=e._isValid),n}function ALe(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function ILe(e,t){var r={};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function PLe(e,t){return function(r,n){var o;return null===n||isNaN(+n)||(rze(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=r,r=n,n=o),NLe(this,CLe(r,n),e),this}}function NLe(e,t,r,n){var o=t._milliseconds,i=yLe(t._days),a=yLe(t._months);e.isValid()&&(n=null==n||n,a&&gje(e,sje(e,"Month")+a*r),i&&lje(e,"Date",sje(e,"Date")+i*r),o&&e._d.setTime(e._d.valueOf()+o*r),n&&OMe.updateOffset(e,i||a))}CLe.fn=gLe.prototype,CLe.invalid=function(){return CLe(NaN)};var BLe=PLe(1,"add"),OLe=PLe(-1,"subtract");function DLe(e){return"string"==typeof e||e instanceof String}function RLe(e){return JMe(e)||FMe(e)||DLe(e)||LMe(e)||function(e){var t=DMe(e),r=!1;t&&(r=0===e.filter(function(t){return!LMe(t)&&DLe(e)}).length);return t&&r}(e)||function(e){var t,r,n=RMe(e)&&!zMe(e),o=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=i.length;for(t=0;t<a;t+=1)r=i[t],o=o||MMe(e,r);return n&&o}(e)||null==e}function MLe(e,t){if(e.date()<t.date())return-MLe(t,e);var r=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(r,"months");return-(r+(t-n<0?(t-n)/(n-e.clone().add(r-1,"months")):(t-n)/(e.clone().add(r+1,"months")-n)))||0}function zLe(e){var t;return void 0===e?this._locale._abbr:(null!=(t=Gje(e))&&(this._locale=t),this)}OMe.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",OMe.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var jLe=ZMe("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function LLe(){return this._locale}var FLe=1e3,VLe=6e4,qLe=36e5,HLe=126227808e5;function ULe(e,t){return(e%t+t)%t}function WLe(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-HLe:new Date(e,t,r).valueOf()}function $Le(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-HLe:Date.UTC(e,t,r)}function GLe(e,t){return t.erasAbbrRegex(e)}function YLe(){var e,t,r,n,o,i=[],a=[],s=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)r=Fze(c[e].name),n=Fze(c[e].abbr),o=Fze(c[e].narrow),a.push(r),i.push(n),s.push(o),l.push(r),l.push(n),l.push(o);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function KLe(e,t){dze(0,[e,e.length],0,t)}function XLe(e,t,r,n,o){var i;return null==e?kje(this,n,o).year:(t>(i=Eje(e,n,o))&&(t=i),JLe.call(this,e,t,r,n,o))}function JLe(e,t,r,n,o){var i=Sje(e,t,r,n,o),a=wje(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}dze("N",0,0,"eraAbbr"),dze("NN",0,0,"eraAbbr"),dze("NNN",0,0,"eraAbbr"),dze("NNNN",0,0,"eraName"),dze("NNNNN",0,0,"eraNarrow"),dze("y",["y",1],"yo","eraYear"),dze("y",["yy",2],0,"eraYear"),dze("y",["yyy",3],0,"eraYear"),dze("y",["yyyy",4],0,"eraYear"),jze("N",GLe),jze("NN",GLe),jze("NNN",GLe),jze("NNNN",function(e,t){return t.erasNameRegex(e)}),jze("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),Uze(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var o=r._locale.erasParse(e,n,r._strict);o?UMe(r).era=o:UMe(r).invalidEra=e}),jze("y",Nze),jze("yy",Nze),jze("yyy",Nze),jze("yyyy",Nze),jze("yo",function(e,t){return t._eraYearOrdinalRegex||Nze}),Uze(["y","yy","yyy","yyyy"],Yze),Uze(["yo"],function(e,t,r,n){var o;r._locale._eraYearOrdinalRegex&&(o=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Yze]=r._locale.eraYearOrdinalParse(e,o):t[Yze]=parseInt(e,10)}),dze(0,["gg",2],0,function(){return this.weekYear()%100}),dze(0,["GG",2],0,function(){return this.isoWeekYear()%100}),KLe("gggg","weekYear"),KLe("ggggg","weekYear"),KLe("GGGG","isoWeekYear"),KLe("GGGGG","isoWeekYear"),jze("G",Bze),jze("g",Bze),jze("GG",Tze,xze),jze("gg",Tze,xze),jze("GGGG",Ize,kze),jze("gggg",Ize,kze),jze("GGGGG",Pze,Eze),jze("ggggg",Pze,Eze),Wze(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=qze(e)}),Wze(["gg","GG"],function(e,t,r,n){t[n]=OMe.parseTwoDigitYear(e)}),dze("Q",0,"Qo","quarter"),jze("Q",wze),Uze("Q",function(e,t){t[Kze]=3*(qze(e)-1)}),dze("D",["DD",2],"Do","date"),jze("D",Tze,Mze),jze("DD",Tze,xze),jze("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Uze(["D","DD"],Xze),Uze("Do",function(e,t){t[Xze]=qze(e.match(Tze)[0])});var QLe=aje("Date",!0);dze("DDD",["DDDD",3],"DDDo","dayOfYear"),jze("DDD",Aze),jze("DDDD",Sze),Uze(["DDD","DDDD"],function(e,t,r){r._dayOfYear=qze(e)}),dze("m",["mm",2],0,"minute"),jze("m",Tze,zze),jze("mm",Tze,xze),Uze(["m","mm"],Qze);var ZLe=aje("Minutes",!1);dze("s",["ss",2],0,"second"),jze("s",Tze,zze),jze("ss",Tze,xze),Uze(["s","ss"],Zze);var eFe,tFe,rFe=aje("Seconds",!1);for(dze("S",0,0,function(){return~~(this.millisecond()/100)}),dze(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),dze(0,["SSS",3],0,"millisecond"),dze(0,["SSSS",4],0,function(){return 10*this.millisecond()}),dze(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),dze(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),dze(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),dze(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),dze(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),jze("S",Aze,wze),jze("SS",Aze,xze),jze("SSS",Aze,Sze),eFe="SSSS";eFe.length<=9;eFe+="S")jze(eFe,Nze);function nFe(e,t){t[eje]=qze(1e3*("0."+e))}for(eFe="S";eFe.length<=9;eFe+="S")Uze(eFe,nFe);tFe=aje("Milliseconds",!1),dze("z",0,0,"zoneAbbr"),dze("zz",0,0,"zoneName");var oFe=XMe.prototype;function iFe(e){return e}oFe.add=BLe,oFe.calendar=function(e,t){1===arguments.length&&(arguments[0]?RLe(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,r=RMe(e)&&!zMe(e),n=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=n||MMe(e,o[t]);return r&&n}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||dLe(),n=SLe(r,this).startOf("day"),o=OMe.calendarFormat(this,n)||"sameElse",i=t&&(nze(t[o])?t[o].call(this,r):t[o]);return this.format(i||this.localeData().calendar(o,this,dLe(r)))},oFe.clone=function(){return new XMe(this)},oFe.diff=function(e,t,r){var n,o,i;if(!this.isValid())return NaN;if(!(n=SLe(e,this)).isValid())return NaN;switch(o=6e4*(n.utcOffset()-this.utcOffset()),t=gze(t)){case"year":i=MLe(this,n)/12;break;case"month":i=MLe(this,n);break;case"quarter":i=MLe(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-o)/864e5;break;case"week":i=(this-n-o)/6048e5;break;default:i=this-n}return r?i:Vze(i)},oFe.endOf=function(e){var t,r;if(void 0===(e=gze(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?$Le:WLe,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=qLe-ULe(t+(this._isUTC?0:this.utcOffset()*VLe),qLe)-1;break;case"minute":t=this._d.valueOf(),t+=VLe-ULe(t,VLe)-1;break;case"second":t=this._d.valueOf(),t+=FLe-ULe(t,FLe)-1}return this._d.setTime(t),OMe.updateOffset(this,!0),this},oFe.format=function(e){e||(e=this.isUtc()?OMe.defaultFormatUtc:OMe.defaultFormat);var t=hze(this,e);return this.localeData().postformat(t)},oFe.from=function(e,t){return this.isValid()&&(JMe(e)&&e.isValid()||dLe(e).isValid())?CLe({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},oFe.fromNow=function(e){return this.from(dLe(),e)},oFe.to=function(e,t){return this.isValid()&&(JMe(e)&&e.isValid()||dLe(e).isValid())?CLe({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},oFe.toNow=function(e){return this.to(dLe(),e)},oFe.get=function(e){return nze(this[e=gze(e)])?this[e]():this},oFe.invalidAt=function(){return UMe(this).overflow},oFe.isAfter=function(e,t){var r=JMe(e)?e:dLe(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=gze(t)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf())},oFe.isBefore=function(e,t){var r=JMe(e)?e:dLe(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=gze(t)||"millisecond")?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf())},oFe.isBetween=function(e,t,r,n){var o=JMe(e)?e:dLe(e),i=JMe(t)?t:dLe(t);return!!(this.isValid()&&o.isValid()&&i.isValid())&&(("("===(n=n||"()")[0]?this.isAfter(o,r):!this.isBefore(o,r))&&(")"===n[1]?this.isBefore(i,r):!this.isAfter(i,r)))},oFe.isSame=function(e,t){var r,n=JMe(e)?e:dLe(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=gze(t)||"millisecond")?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()))},oFe.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},oFe.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},oFe.isValid=function(){return WMe(this)},oFe.lang=jLe,oFe.locale=zLe,oFe.localeData=LLe,oFe.max=hLe,oFe.min=fLe,oFe.parsingFlags=function(){return qMe({},UMe(this))},oFe.set=function(e,t){if("object"==typeof e){var r,n=function(e){var t,r=[];for(t in e)MMe(e,t)&&r.push({unit:t,priority:yze[t]});return r.sort(function(e,t){return e.priority-t.priority}),r}(e=vze(e)),o=n.length;for(r=0;r<o;r++)this[n[r].unit](e[n[r].unit])}else if(nze(this[e=gze(e)]))return this[e](t);return this},oFe.startOf=function(e){var t,r;if(void 0===(e=gze(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?$Le:WLe,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ULe(t+(this._isUTC?0:this.utcOffset()*VLe),qLe);break;case"minute":t=this._d.valueOf(),t-=ULe(t,VLe);break;case"second":t=this._d.valueOf(),t-=ULe(t,FLe)}return this._d.setTime(t),OMe.updateOffset(this,!0),this},oFe.subtract=OLe,oFe.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},oFe.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},oFe.toDate=function(){return new Date(this.valueOf())},oFe.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?hze(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):nze(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",hze(r,"Z")):hze(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},oFe.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,r,n="moment",o="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+r)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(oFe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),oFe.toJSON=function(){return this.isValid()?this.toISOString():null},oFe.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},oFe.unix=function(){return Math.floor(this.valueOf()/1e3)},oFe.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},oFe.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},oFe.eraName=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].name;if(n[e].until<=r&&r<=n[e].since)return n[e].name}return""},oFe.eraNarrow=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].narrow;if(n[e].until<=r&&r<=n[e].since)return n[e].narrow}return""},oFe.eraAbbr=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e){if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until)return n[e].abbr;if(n[e].until<=r&&r<=n[e].since)return n[e].abbr}return""},oFe.eraYear=function(){var e,t,r,n,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(r=o[e].since<=o[e].until?1:-1,n=this.clone().startOf("day").valueOf(),o[e].since<=n&&n<=o[e].until||o[e].until<=n&&n<=o[e].since)return(this.year()-OMe(o[e].since).year())*r+o[e].offset;return this.year()},oFe.year=ije,oFe.isLeapYear=function(){return Gze(this.year())},oFe.weekYear=function(e){return XLe.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},oFe.isoWeekYear=function(e){return XLe.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},oFe.quarter=oFe.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},oFe.month=vje,oFe.daysInMonth=function(){return cje(this.year(),this.month())},oFe.week=oFe.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},oFe.isoWeek=oFe.isoWeeks=function(e){var t=kje(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},oFe.weeksInYear=function(){var e=this.localeData()._week;return Eje(this.year(),e.dow,e.doy)},oFe.weeksInWeekYear=function(){var e=this.localeData()._week;return Eje(this.weekYear(),e.dow,e.doy)},oFe.isoWeeksInYear=function(){return Eje(this.year(),1,4)},oFe.isoWeeksInISOWeekYear=function(){return Eje(this.isoWeekYear(),1,4)},oFe.date=QLe,oFe.day=oFe.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=sje(this,"Day");return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},oFe.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},oFe.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},oFe.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},oFe.hour=oFe.hours=zje,oFe.minute=oFe.minutes=ZLe,oFe.second=oFe.seconds=rFe,oFe.millisecond=oFe.milliseconds=tFe,oFe.utcOffset=function(e,t,r){var n,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=xLe(Dze,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(n=kLe(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),o!==e&&(!t||this._changeInProgress?NLe(this,CLe(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,OMe.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:kLe(this)},oFe.utc=function(e){return this.utcOffset(0,e)},oFe.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(kLe(this),"m")),this},oFe.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=xLe(Oze,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},oFe.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?dLe(e).utcOffset():0,(this.utcOffset()-e)%60==0)},oFe.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},oFe.isLocal=function(){return!!this.isValid()&&!this._isUTC},oFe.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},oFe.isUtc=ELe,oFe.isUTC=ELe,oFe.zoneAbbr=function(){return this._isUTC?"UTC":""},oFe.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},oFe.dates=ZMe("dates accessor is deprecated. Use date instead.",QLe),oFe.months=ZMe("months accessor is deprecated. Use month instead",vje),oFe.years=ZMe("years accessor is deprecated. Use year instead",ije),oFe.zone=ZMe("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),oFe.isDSTShifted=ZMe("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!jMe(this._isDSTShifted))return this._isDSTShifted;var e,t={};return KMe(t,this),(t=cLe(t))._a?(e=t._isUTC?HMe(t._a):dLe(t._a),this._isDSTShifted=this.isValid()&&function(e,t){var r,n=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0;for(r=0;r<n;r++)qze(e[r])!==qze(t[r])&&i++;return i+o}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var aFe=ize.prototype;function sFe(e,t,r,n){var o=Gje(),i=HMe().set(n,t);return o[r](i,e)}function lFe(e,t,r){if(LMe(e)&&(t=e,e=void 0),e=e||"",null!=t)return sFe(e,t,r,"month");var n,o=[];for(n=0;n<12;n++)o[n]=sFe(e,n,r,"month");return o}function cFe(e,t,r,n){"boolean"==typeof e?(LMe(t)&&(r=t,t=void 0),t=t||""):(r=t=e,e=!1,LMe(t)&&(r=t,t=void 0),t=t||"");var o,i=Gje(),a=e?i._week.dow:0,s=[];if(null!=r)return sFe(t,(r+a)%7,n,"day");for(o=0;o<7;o++)s[o]=sFe(t,(o+a)%7,n,"day");return s}aFe.calendar=function(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return nze(n)?n.call(t,r):n},aFe.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(sze).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},aFe.invalidDate=function(){return this._invalidDate},aFe.ordinal=function(e){return this._ordinal.replace("%d",e)},aFe.preparse=iFe,aFe.postformat=iFe,aFe.relativeTime=function(e,t,r,n){var o=this._relativeTime[r];return nze(o)?o(e,t,r,n):o.replace(/%d/i,e)},aFe.pastFuture=function(e,t){var r=this._relativeTime[e>0?"future":"past"];return nze(r)?r(t):r.replace(/%s/i,t)},aFe.set=function(e){var t,r;for(r in e)MMe(e,r)&&(nze(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},aFe.eras=function(e,t){var r,n,o,i=this._eras||Gje("en")._eras;for(r=0,n=i.length;r<n;++r){if("string"==typeof i[r].since)o=OMe(i[r].since).startOf("day"),i[r].since=o.valueOf();switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":o=OMe(i[r].until).startOf("day").valueOf(),i[r].until=o.valueOf()}}return i},aFe.erasParse=function(e,t,r){var n,o,i,a,s,l=this.eras();for(e=e.toUpperCase(),n=0,o=l.length;n<o;++n)if(i=l[n].name.toUpperCase(),a=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[n];break;case"NNNN":if(i===e)return l[n];break;case"NNNNN":if(s===e)return l[n]}else if([i,a,s].indexOf(e)>=0)return l[n]},aFe.erasConvertYear=function(e,t){var r=e.since<=e.until?1:-1;return void 0===t?OMe(e.since).year():OMe(e.since).year()+(t-e.offset)*r},aFe.erasAbbrRegex=function(e){return MMe(this,"_erasAbbrRegex")||YLe.call(this),e?this._erasAbbrRegex:this._erasRegex},aFe.erasNameRegex=function(e){return MMe(this,"_erasNameRegex")||YLe.call(this),e?this._erasNameRegex:this._erasRegex},aFe.erasNarrowRegex=function(e){return MMe(this,"_erasNarrowRegex")||YLe.call(this),e?this._erasNarrowRegex:this._erasRegex},aFe.months=function(e,t){return e?DMe(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||fje).test(t)?"format":"standalone"][e.month()]:DMe(this._months)?this._months:this._months.standalone},aFe.monthsShort=function(e,t){return e?DMe(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[fje.test(t)?"format":"standalone"][e.month()]:DMe(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},aFe.monthsParse=function(e,t,r){var n,o,i;if(this._monthsParseExact)return mje.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(o=HMe([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}},aFe.monthsRegex=function(e){return this._monthsParseExact?(MMe(this,"_monthsRegex")||yje.call(this),e?this._monthsStrictRegex:this._monthsRegex):(MMe(this,"_monthsRegex")||(this._monthsRegex=pje),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},aFe.monthsShortRegex=function(e){return this._monthsParseExact?(MMe(this,"_monthsRegex")||yje.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(MMe(this,"_monthsShortRegex")||(this._monthsShortRegex=hje),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},aFe.week=function(e){return kje(e,this._week.dow,this._week.doy).week},aFe.firstDayOfYear=function(){return this._week.doy},aFe.firstDayOfWeek=function(){return this._week.dow},aFe.weekdays=function(e,t){var r=DMe(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Tje(r,this._week.dow):e?r[e.day()]:r},aFe.weekdaysMin=function(e){return!0===e?Tje(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},aFe.weekdaysShort=function(e){return!0===e?Tje(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},aFe.weekdaysParse=function(e,t,r){var n,o,i;if(this._weekdaysParseExact)return Bje.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(o=HMe([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}},aFe.weekdaysRegex=function(e){return this._weekdaysParseExact?(MMe(this,"_weekdaysRegex")||Oje.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(MMe(this,"_weekdaysRegex")||(this._weekdaysRegex=Ije),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},aFe.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(MMe(this,"_weekdaysRegex")||Oje.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(MMe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Pje),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},aFe.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(MMe(this,"_weekdaysRegex")||Oje.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(MMe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Nje),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},aFe.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},aFe.meridiem=function(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"},Wje("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===qze(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),OMe.lang=ZMe("moment.lang is deprecated. Use moment.locale instead.",Wje),OMe.langData=ZMe("moment.langData is deprecated. Use moment.localeData instead.",Gje);var uFe=Math.abs;function dFe(e,t,r,n){var o=CLe(t,r);return e._milliseconds+=n*o._milliseconds,e._days+=n*o._days,e._months+=n*o._months,e._bubble()}function fFe(e){return e<0?Math.floor(e):Math.ceil(e)}function hFe(e){return 4800*e/146097}function pFe(e){return 146097*e/4800}function mFe(e){return function(){return this.as(e)}}var gFe=mFe("ms"),vFe=mFe("s"),yFe=mFe("m"),bFe=mFe("h"),wFe=mFe("d"),xFe=mFe("w"),SFe=mFe("M"),kFe=mFe("Q"),EFe=mFe("y"),TFe=gFe;function _Fe(e){return function(){return this.isValid()?this._data[e]:NaN}}var CFe=_Fe("milliseconds"),AFe=_Fe("seconds"),IFe=_Fe("minutes"),PFe=_Fe("hours"),NFe=_Fe("days"),BFe=_Fe("months"),OFe=_Fe("years");var DFe=Math.round,RFe={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function MFe(e,t,r,n,o){return o.relativeTime(t||1,!!r,e,n)}var zFe=Math.abs;function jFe(e){return(e>0)-(e<0)||+e}function LFe(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,n,o,i,a,s,l=zFe(this._milliseconds)/1e3,c=zFe(this._days),u=zFe(this._months),d=this.asSeconds();return d?(e=Vze(l/60),t=Vze(e/60),l%=60,e%=60,r=Vze(u/12),u%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",i=jFe(this._months)!==jFe(d)?"-":"",a=jFe(this._days)!==jFe(d)?"-":"",s=jFe(this._milliseconds)!==jFe(d)?"-":"",o+"P"+(r?i+r+"Y":"")+(u?i+u+"M":"")+(c?a+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+n+"S":"")):"P0D"}var FFe=gLe.prototype;FFe.isValid=function(){return this._isValid},FFe.abs=function(){var e=this._data;return this._milliseconds=uFe(this._milliseconds),this._days=uFe(this._days),this._months=uFe(this._months),e.milliseconds=uFe(e.milliseconds),e.seconds=uFe(e.seconds),e.minutes=uFe(e.minutes),e.hours=uFe(e.hours),e.months=uFe(e.months),e.years=uFe(e.years),this},FFe.add=function(e,t){return dFe(this,e,t,1)},FFe.subtract=function(e,t){return dFe(this,e,t,-1)},FFe.as=function(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=gze(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+hFe(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(pFe(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},FFe.asMilliseconds=gFe,FFe.asSeconds=vFe,FFe.asMinutes=yFe,FFe.asHours=bFe,FFe.asDays=wFe,FFe.asWeeks=xFe,FFe.asMonths=SFe,FFe.asQuarters=kFe,FFe.asYears=EFe,FFe.valueOf=TFe,FFe._bubble=function(){var e,t,r,n,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*fFe(pFe(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=Vze(i/1e3),l.seconds=e%60,t=Vze(e/60),l.minutes=t%60,r=Vze(t/60),l.hours=r%24,a+=Vze(r/24),s+=o=Vze(hFe(a)),a-=fFe(pFe(o)),n=Vze(s/12),s%=12,l.days=a,l.months=s,l.years=n,this},FFe.clone=function(){return CLe(this)},FFe.get=function(e){return e=gze(e),this.isValid()?this[e+"s"]():NaN},FFe.milliseconds=CFe,FFe.seconds=AFe,FFe.minutes=IFe,FFe.hours=PFe,FFe.days=NFe,FFe.weeks=function(){return Vze(this.days()/7)},FFe.months=BFe,FFe.years=OFe,FFe.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var r,n,o=!1,i=RFe;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(i=Object.assign({},RFe,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),n=function(e,t,r,n){var o=CLe(e).abs(),i=DFe(o.as("s")),a=DFe(o.as("m")),s=DFe(o.as("h")),l=DFe(o.as("d")),c=DFe(o.as("M")),u=DFe(o.as("w")),d=DFe(o.as("y")),f=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||a<=1&&["m"]||a<r.m&&["mm",a]||s<=1&&["h"]||s<r.h&&["hh",s]||l<=1&&["d"]||l<r.d&&["dd",l];return null!=r.w&&(f=f||u<=1&&["w"]||u<r.w&&["ww",u]),(f=f||c<=1&&["M"]||c<r.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=n,MFe.apply(null,f)}(this,!o,i,r=this.localeData()),o&&(n=r.pastFuture(+this,n)),r.postformat(n)},FFe.toISOString=LFe,FFe.toString=LFe,FFe.toJSON=LFe,FFe.locale=zLe,FFe.localeData=LLe,FFe.toIsoString=ZMe("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",LFe),FFe.lang=jLe,dze("X",0,0,"unix"),dze("x",0,0,"valueOf"),jze("x",Bze),jze("X",/[+-]?\d+(\.\d{1,3})?/),Uze("X",function(e,t,r){r._d=new Date(1e3*parseFloat(e))}),Uze("x",function(e,t,r){r._d=new Date(qze(e))}),OMe.version="2.30.1",NMe=dLe,OMe.fn=oFe,OMe.min=function(){return pLe("isBefore",[].slice.call(arguments,0))},OMe.max=function(){return pLe("isAfter",[].slice.call(arguments,0))},OMe.now=function(){return Date.now?Date.now():+new Date},OMe.utc=HMe,OMe.unix=function(e){return dLe(1e3*e)},OMe.months=function(e,t){return lFe(e,t,"months")},OMe.isDate=FMe,OMe.locale=Wje,OMe.invalid=$Me,OMe.duration=CLe,OMe.isMoment=JMe,OMe.weekdays=function(e,t,r){return cFe(e,t,r,"weekdays")},OMe.parseZone=function(){return dLe.apply(null,arguments).parseZone()},OMe.localeData=Gje,OMe.isDuration=vLe,OMe.monthsShort=function(e,t){return lFe(e,t,"monthsShort")},OMe.weekdaysMin=function(e,t,r){return cFe(e,t,r,"weekdaysMin")},OMe.defineLocale=$je,OMe.updateLocale=function(e,t){if(null!=t){var r,n,o=Lje;null!=Fje[e]&&null!=Fje[e].parentLocale?Fje[e].set(oze(Fje[e]._config,t)):(null!=(n=Uje(e))&&(o=n._config),t=oze(o,t),null==n&&(t.abbr=e),(r=new ize(t)).parentLocale=Fje[e],Fje[e]=r),Wje(e)}else null!=Fje[e]&&(null!=Fje[e].parentLocale?(Fje[e]=Fje[e].parentLocale,e===Wje()&&Wje(e)):null!=Fje[e]&&delete Fje[e]);return Fje[e]},OMe.locales=function(){return eze(Fje)},OMe.weekdaysShort=function(e,t,r){return cFe(e,t,r,"weekdaysShort")},OMe.normalizeUnits=gze,OMe.relativeTimeRounding=function(e){return void 0===e?DFe:"function"==typeof e&&(DFe=e,!0)},OMe.relativeTimeThreshold=function(e,t){return void 0!==RFe[e]&&(void 0===t?RFe[e]:(RFe[e]=t,"s"===e&&(RFe.ss=t-1),!0))},OMe.calendarFormat=function(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"},OMe.prototype=oFe,OMe.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function VFe(e){const t=new Date(e),r=t.getTime();if(isNaN(r))return"string"==typeof e?e:e.toString();const n=Date.now()-r,o=Math.floor(n/6e4),i=Math.floor(n/36e5);return o<1?"just now":i<5?OMe(t).fromNow():n<=864e5?"today":n<=1728e5?"yesterday":OMe(t).format("MMM D, YYYY")}const qFe=()=>p.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"var(--ds-theme-foreground-base-icon)",children:p.jsx("path",{d:"M15.06 14.18c.46 1.43.69 2.68.69 3.76 0 2.4-.94 4.24-2.5 4.24-.8 0-1.08-.45-1.38-1.54l-.27-1.02a264.6 264.6 0 0 0-.56-1.9l-2.87-4.49a5.88 5.88 0 0 0-2.85-2.32l-1.26-.48a1.75 1.75 0 0 1-1.09-1.97l.69-3.54c.16-.86.82-1.55 1.67-1.76l8.25-2.02a4.75 4.75 0 0 1 5.73 3.44l1.58 6.17a2.75 2.75 0 0 1-2.67 3.43h-3.16Z",fill:"currentColor"})}),HFe=()=>p.jsx("svg",{width:"24",height:"24",viewBox:"0 0 28 28",xmlns:"http://www.w3.org/2000/svg",fill:"var(--ds-theme-foreground-base-icon)",children:p.jsx("path",{d:"M16.12 1.12c-.88-.25-1.58.38-1.82.98l-.26.66c-2 5.1-3.83 9.74-8.6 12.16a2.96 2.96 0 0 0-1.66 3.09l.42 2.5a3.75 3.75 0 0 0 2.67 2.98l7.69 2.2a6.75 6.75 0 0 0 8.47-5.15l1.23-6.04a3.75 3.75 0 0 0-3.68-4.5h-2.17c.35-1.5.5-3.22.35-4.73-.18-1.77-.86-3.66-2.64-4.15Z",fill:"currentColor"})}),UFe=g.memo(({message:e,responseContainerRef:t})=>{const[r,n]=g.useState(""),[o,i]=g.useState(!1),[a,s]=g.useState(!1),[l,c]=g.useState(!1),[u,d]=g.useState(!1),[f,h]=g.useState(""),m=g.useRef(null),v=g.useRef(null),y=g.useRef(null),{sendFeedbackWithTelemetry:b}=(()=>{const e=Kw();return{sendFeedbackWithTelemetry:(t,r="text",n=!0)=>{try{return!(!t||!t.id||(e(Yue({name:"message/submitAction",type:"invoke",value:{actionName:"feedback",actionValue:{feedback:{feedbackText:r||""},reaction:n?"like":"dislike",replyToId:t.replyToId,messageId:t.id,botResponse:t.text||"[EMPTY]"}}})),e(dV.logUserFeedback({name:kV,replyToId:t.id})),0))}catch(o){return s8(EV,o),!1}}}})();g.useEffect(()=>{if(f){const e=setTimeout(()=>h(""),1e3);return()=>clearTimeout(e)}},[f]);const w=e=>{e?.preventDefault(),e?.stopPropagation();const t=l,r=u;s(!1),c(!1),d(!1),n(""),h("Feedback form cleared"),setTimeout(()=>{t?m.current?.focus():r&&v.current?.focus()},0)},x=n=>{n?.preventDefault(),n?.stopPropagation(),b(e,r,l),i(!0),s(!1),h("Feedback submitted successfully"),setTimeout(()=>t.current?.focus(),0)};return p.jsxs(p.Fragment,{children:[p.jsx("div",{"aria-live":"polite","aria-atomic":"true",className:"visually-hidden",children:f}),p.jsxs("form",{className:"uca-feedback-form",onKeyDown:e=>{"Escape"===e.key&&(e.preventDefault(),w())},onReset:w,onSubmit:x,children:[p.jsxs("fieldset",{className:"uca-feedback-button-bar",children:[p.jsx("legend",{className:"visually-hidden",children:"Rate this response"}),p.jsx("button",{ref:m,className:`uca-feedback-thumb-button ${o?"disabled":""} ${l?"selected":""}`,type:"button",onClick:function(){const e=!l;c(e),d(!1),s(e),e?(h("Positive feedback selected. Feedback form opened."),setTimeout(()=>y.current?.focus(),100)):h("Positive feedback deselected. Feedback form closed.")},"aria-label":"Positive feedback",onPointerDown:k8,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||k8(e)},"aria-pressed":l,"aria-expanded":a&&l,disabled:o,"data-bi-id":b8.IDS.AI_CHAT_THUMBSUP,"data-bi-cn":b8.CONTENT_TYPES.THUMBS_UP,"data-bi-ecn":b8.CONTENT_TYPES.THUMBS_UP,"data-bi-hn":S8(),"data-bi-ehn":b8.HEADER_NAMES.ASK_MICROSOFT,"data-bi-compnm":b8.COMPONENT_NAMES.AI_ASSISTANT,"data-bi-ct":b8.CONTENT_TYPES.THUMBS_UP,"data-bi-view":b8.VIEW.AI_CHAT_DRAWER,"data-bi-an":b8.AREA_NAMES.AI_CHAT_DRAWER,"data-bi-bhvr":b8.BEHAVIORS.FEEDBACK_INTERACTION,"data-bi-fbid":e.id,"data-bi-fbnm":e.id,children:p.jsx(HFe,{})}),p.jsx("button",{ref:v,className:`uca-feedback-thumb-button ${o?"disabled":""} ${u?"selected":""}`,type:"button",onClick:function(){const e=!u;d(e),c(!1),s(e),e?(h("Negative feedback selected. Feedback form opened."),setTimeout(()=>y.current?.focus(),100)):h("Negative feedback deselected. Feedback form closed.")},"aria-label":"Negative feedback",onPointerDown:k8,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||k8(e)},"aria-pressed":u,"aria-expanded":a&&u,disabled:o,"data-bi-id":b8.IDS.AI_CHAT_THUMBSDOWN,"data-bi-cn":b8.CONTENT_TYPES.THUMBS_DOWN,"data-bi-ecn":b8.CONTENT_TYPES.THUMBS_DOWN,"data-bi-hn":S8(),"data-bi-ehn":b8.HEADER_NAMES.ASK_MICROSOFT,"data-bi-compnm":b8.COMPONENT_NAMES.AI_ASSISTANT,"data-bi-ct":b8.CONTENT_TYPES.THUMBS_DOWN,"data-bi-view":b8.VIEW.AI_CHAT_DRAWER,"data-bi-an":b8.AREA_NAMES.AI_CHAT_DRAWER,"data-bi-bhvr":b8.BEHAVIORS.FEEDBACK_INTERACTION,"data-bi-fbid":e.id,"data-bi-fbnm":e.id,children:p.jsx(qFe,{})})]})," ",a&&p.jsxs("div",{className:"uca-feedback-form-container","aria-label":"Feedback form","aria-describedby":"feedback-instructions",children:[p.jsx("div",{id:"feedback-instructions",className:"uca-feedback-form-header",children:"Tell us about your experience."}),p.jsx("div",{id:"feedback-help-text",className:"uca-feedback-help-text visually-hidden",children:"Give as much detail as you can, but do not include any private or sensitive information."}),p.jsx("textarea",{ref:y,className:"uca-feedback-form-textarea",value:r,onChange:e=>n(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),x())},placeholder:"Give as much detail as you can, but do not include any private or sensitive information.",rows:4,"aria-label":"Feedback details","aria-describedby":"feedback-instructions feedback-help-text"}),p.jsx("div",{className:"uca-feedback-form-footer",children:p.jsxs("div",{className:"feedback-form__submission-button-bar ",children:[p.jsx("button",{className:"uca-feedback-submit-button",type:"submit","aria-label":"Submit feedback","data-bi-cn":b8.CONTENT_TYPES.SUBMIT,"data-bi-ecn":b8.CONTENT_TYPES.SUBMIT,"data-bi-hn":b8.HEADER_NAMES.SUBMIT,"data-bi-ehn":b8.HEADER_NAMES.SUBMIT,"data-bi-sn":b8.SLOT_NUMBER.SUBMIT,"data-bi-compnm":b8.COMPONENT_NAMES.AI_ASSISTANT,"data-bi-ct":b8.CONTENT_TYPES.PROMPT_BUTTON,"data-bi-view":b8.VIEW.AI_CHAT_DRAWER,"data-bi-an":b8.AREA_NAMES.AI_CHAT_DRAWER,"data-bi-bhvr":b8.BEHAVIORS.FEEDBACK_INTERACTION,children:"Submit"}),p.jsx("button",{className:"uca-feedback-cancel-button",type:"reset","aria-label":"Cancel feedback",children:"Cancel"})]})})]})]})]})}),WFe={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function $Fe(e){return WFe}function GFe(e){const t=typeof e;return"string"===t?`"${e}"`:"number"===t||"bigint"===t||"boolean"===t?`${e}`:"object"===t||"function"===t?(e&&Object.getPrototypeOf(e)?.constructor?.name)??"null":t}function YFe(e,t,r,n,o){const i=o&&"input"in o?o.input:r.value,a=o?.expected??e.expects??null,s=o?.received??GFe(i),l={kind:e.kind,type:e.type,input:i,expected:a,received:s,message:`Invalid ${t}: ${a?`Expected ${a} but r`:"R"}eceived ${s}`,requirement:e.requirement,path:o?.path,issues:o?.issues,lang:n.lang,abortEarly:n.abortEarly,abortPipeEarly:n.abortPipeEarly},c="schema"===e.kind,u=o?.message??e.message??(e.reference,void l.lang)??(c?void l.lang:null)??n.message??void l.lang;void 0!==u&&(l.message="function"==typeof u?u(l):u),c&&(r.typed=!1),r.issues?r.issues.push(l):r.issues=[l]}const KFe=new WeakMap;function XFe(e){let t=KFe.get(e);return t||(t={version:1,vendor:"valibot",validate:t=>e["~run"]({value:t},$Fe())},KFe.set(e,t)),t}function JFe(e,t){const r=[...new Set(e)];return r.length>1?`(${r.join(` ${t} `)})`:r[0]??"never"}function QFe(e,t,r){return"function"==typeof e.fallback?e.fallback(t,r):e.fallback}function ZFe(e,t,r){return"function"==typeof e.default?e.default(t,r):e.default}function eVe(e,t){return{kind:"schema",type:"literal",reference:eVe,expects:GFe(e),async:!1,literal:e,message:t,get"~standard"(){return XFe(this)},"~run"(e,t){return e.value===this.literal?e.typed=!0:YFe(this,"type",e,t),e}}}function tVe(e,t){return{kind:"schema",type:"object",reference:tVe,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return XFe(this)},"~run"(e,t){const r=e.value;if(r&&"object"==typeof r){e.typed=!0,e.value={};for(const n in this.entries){const o=this.entries[n];if(n in r||("exact_optional"===o.type||"optional"===o.type||"nullish"===o.type)&&void 0!==o.default){const i=n in r?r[n]:ZFe(o),a=o["~run"]({value:i},t);if(a.issues){const o={type:"object",origin:"value",input:r,key:n,value:i};for(const t of a.issues)t.path?t.path.unshift(o):t.path=[o],e.issues?.push(t);if(e.issues||(e.issues=a.issues),t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value[n]=a.value}else if(void 0!==o.fallback)e.value[n]=QFe(o);else if("exact_optional"!==o.type&&"optional"!==o.type&&"nullish"!==o.type&&(YFe(this,"key",e,t,{input:void 0,expected:`"${n}"`,path:[{type:"object",origin:"key",input:r,key:n,value:r[n]}]}),t.abortEarly))break}}else YFe(this,"type",e,t);return e}}}function rVe(e,t){return{kind:"schema",type:"optional",reference:rVe,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return XFe(this)},"~run"(e,t){return void 0===e.value&&(void 0!==this.default&&(e.value=ZFe(this,e,t)),void 0===e.value)?(e.typed=!0,e):this.wrapped["~run"](e,t)}}}function nVe(e){return{kind:"schema",type:"string",reference:nVe,expects:"string",async:!1,message:e,get"~standard"(){return XFe(this)},"~run"(e,t){return"string"==typeof e.value?e.typed=!0:YFe(this,"type",e,t),e}}}function oVe(e){let t;if(e)for(const r of e)if(t)for(const e of r.issues)t.push(e);else t=r.issues;return t}function iVe(e,t){return{kind:"schema",type:"union",reference:iVe,expects:JFe(e.map(e=>e.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return XFe(this)},"~run"(e,t){let r,n,o;for(const i of this.options){const a=i["~run"]({value:e.value},t);if(a.typed){if(!a.issues){r=a;break}n?n.push(a):n=[a]}else o?o.push(a):o=[a]}if(r)return r;if(n){if(1===n.length)return n[0];YFe(this,"type",e,t,{issues:oVe(n)}),e.typed=!0}else{if(1===o?.length)return o[0];YFe(this,"type",e,t,{issues:oVe(o)})}return e}}}function aVe(e,t,r){const n=e["~run"]({value:t},$Fe());return{typed:n.typed,success:!n.issues,output:n.value,issues:n.issues}}const sVe=iVe([tVe({channelData:tVe({feedbackLoop:tVe({disclaimer:rVe(nVe()),type:eVe("default")})})}),tVe({channelData:tVe({feedbackLoop:tVe({type:eVe("default")})})})]);function lVe(e){return aVe(sVe,e).success}const cVe=({message:e})=>{const[t,r]=g.useState(!1),n=(()=>{if(!e.entities||0===e.entities.length)return[];const t=[];return e.entities.forEach(e=>{if("https://schema.org/Message"===e.type){const r=e;r.citation&&Array.isArray(r.citation)&&t.push(...r.citation),r.mentions&&Array.isArray(r.mentions)&&t.push(...r.mentions)}}),t})();if(0===n.length)return null;return p.jsxs("div",{className:"uca-citations",role:"complementary","aria-label":"References","data-bi-id":y8,children:[p.jsxs("button",{className:"uca-citations-header",onClick:()=>{r(!t)},onPointerDown:k8,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||k8(e)},"aria-expanded":t,"aria-controls":"citations-list",type:"button","data-bi-id":t?b8.IDS.AI_CHAT_FOOTNOTE_CLOSE:b8.IDS.AI_CHAT_FOOTNOTE_OPEN,"data-bi-cn":`${t?"▼":"▶"} ${n.length}`,"data-bi-ecn":`${t?"▼":"▶"} ${n.length}`,"data-bi-sn":n.length,"data-bi-hn":S8(),"data-bi-ehn":b8.HEADER_NAMES.ASK_MICROSOFT,"data-bi-compnm":b8.COMPONENT_NAMES.AI_ASSISTANT,"data-bi-ct":t?b8.CONTENT_TYPES.COLLAPSE:b8.CONTENT_TYPES.EXPAND,"data-bi-view":b8.VIEW.AI_CHAT_DRAWER,"data-bi-an":b8.AREA_NAMES.AI_CHAT_DRAWER,"data-bi-bhvr":t?b8.BEHAVIORS.FOOTNOTE_ARROW_CLOSE:b8.BEHAVIORS.FOOTNOTE_ARROW_OPEN,children:[p.jsx("span",{className:"uca-citations-caret","aria-hidden":"true",children:t?"▼":"▶"}),p.jsx("span",{className:"uca-citations-title",children:1===n.length?"1 reference":`${n.length} references`})]}),t&&p.jsx("div",{id:"citations-list",className:"uca-citations-list",children:n.map((e,t)=>{const r=e.appearance?.name||e.title||e.name||e.displayText||e.text||e.displayName||e.label||e.value,n=e.appearance?.url||e.url||e["@id"]||e.href||e.link||e.uri,o=Cce(n)?n.trim():void 0,i=e.position||t+1;return p.jsxs("div",{className:"uca-citation-item",children:[p.jsx("span",{className:"uca-citation-number",children:i}),o?p.jsx("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"uca-citation-link","aria-label":`Open reference ${i}: ${r||`Reference ${i}`}`,onPointerDown:k8,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||k8(e)},"data-bi-id":b8.IDS.AI_CHAT_FOOTNOTE_LINK,"data-bi-cn":r||`Reference ${i}`,"data-bi-ecn":r||`Reference ${i}`,"data-bi-hn":S8(),"data-bi-ehn":b8.HEADER_NAMES.ASK_MICROSOFT,"data-bi-compnm":b8.COMPONENT_NAMES.AI_ASSISTANT,"data-bi-ct":b8.CONTENT_TYPES.FOOTNOTE_LINK,"data-bi-view":b8.VIEW.AI_CHAT_DRAWER,"data-bi-an":b8.AREA_NAMES.AI_CHAT_DRAWER,"data-bi-bhvr":b8.BEHAVIORS.FOOTNOTE_LINK_BHVR,children:r||`Reference ${i}`}):p.jsx("span",{className:"uca-citation-text","data-bi-cn":r||`Reference ${i}`,"data-bi-ct":b8.CONTENT_TYPES.FOOTNOTE_LINK,children:r||`Reference ${i}`})]},`citation-${t}`)})})]})},uVe=e=>e.replace(/\s+/g," ").trim(),dVe=e=>uVe(e.replace(/<[^>]*>/g," ")),{logWarn:fVe}=R.withKind("suggestedActions"),hVe=e=>"title"in e&&e.title?e.title:"string"==typeof e.value?e.value:"",pVe=({suggestedAction:e,onActionClick:t,keepOpenUrlActionsEnabled:r=!1,previousMessageContent:n,previousMessageEnglishText:o})=>{const{sendMessageWithTelemetry:i}=v8(),a=g.useRef(null),[s,l]=g.useState(""),[c,u]=g.useState(()=>new Set);g.useEffect(()=>{if(n?.trim())return void l(dVe(n));const e=a.current?.closest("article"),t=e?.querySelector(".uca-chat-message-content");l(uVe(t?.textContent??""))},[n,e.actions]);const d=(e,t)=>{if(!(e.toLowerCase()===b8.HELP_TEXT.STARTQUOTE_HELP_TEXT.toLowerCase()))return{};const r=dVe(o??"")||t||e;return{"data-bi-name":b8.EVENT_NAMES.SUGGESTED_ACTION_CLICK,"data-bi-id":b8.IDS.AI_QUOTE_CLICK,"data-bi-compnm":b8.COMPONENT_NAMES.AI_ASSISTANT,"data-bi-an":b8.AREA_NAMES.AI_CHAT_DRAWER,"data-bi-view":b8.VIEW.AI_CHAT_DRAWER,"data-bi-ct":b8.CONTENT_TYPES.BUTTON,"data-bi-hn":t||e,"data-bi-ehn":r,"data-bi-ecn":e,"data-bi-scn":b8.SCENARIO_NAMES.QUOTE,"data-bi-scnstp":b8.SCENARIO_STEPS.START}};return p.jsx("div",{className:"uca-chat-suggested-actions",ref:a,children:e.actions&&e.actions.map((e,n)=>p.jsx("button",{className:"uca-chat-suggested-action-button",...d("string"==typeof e.value?e.value:"",s),disabled:c.has(n),onClick:()=>((e,n)=>{if("openUrl"===e.type){if(!Cce(e.value))return void fVe("Blocked suggested openUrl action with unsafe URL scheme");window.open(e.value.trim(),"_blank","noopener,noreferrer")}else i(e.value,e.type,"");r&&"openUrl"!==e.type&&u(e=>new Set(e).add(n)),t?.()})(e,n),children:hVe(e)},n))})};const mVe=(e,t,r)=>{const n=g.useCallback(e=>{!function(e){if(navigator.clipboard?.writeText)navigator.clipboard.writeText(e).catch(()=>{});else try{const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}catch{}}(e)},[]);g.useEffect(()=>{if("dbg"!==t||!e.current)return;e.current.querySelectorAll(".uca-chat-message-content code").forEach(e=>{if(e.nextElementSibling?.classList.contains("uca-dbg-copy-btn"))return;const t=document.createElement("button");t.className="uca-dbg-copy-btn",t.setAttribute("aria-label","Copy to clipboard"),t.title="Copy",t.textContent="📋",t.addEventListener("click",()=>{const r=e.textContent||"";n(r),t.textContent="✓",setTimeout(()=>{t.textContent="📋"},1500)}),e.parentNode?.insertBefore(t,e.nextSibling)})},[t,r,n,e])},gVe=new Set;function vVe(e){const t=e.value;if("string"==typeof t)switch(t.toLowerCase()){case"1ds welcome message":return b8.DECORATOR_TYPES.WELCOME;case"1ds open app message":return b8.DECORATOR_TYPES.OPENAPP;case"1ds footnote message":case"1ds default message":return b8.DECORATOR_TYPES.FOOTNOTE;case"1ds privacy message":return b8.DECORATOR_TYPES.PRIVACY;default:return R.log(`Unrecognized messageType in message.value, using default: ${t}`),b8.DECORATOR_TYPES.FOOTNOTE}}const yVe=({message:e,messageIndex:t,kind:r,isActive:n=!1,isInteractionMode:o=!1,onEnterInteractionMode:i})=>{const a=VFe(e.timestamp?new Date(e.timestamp):new Date),s=g.useRef(!1),[l,c]=g.useState(!1),u=Pw(e=>e.webChat.chatHistory),d=g.useRef(null);g.useEffect(()=>{n&&d.current&&d.current.focus()},[n]),g.useEffect(()=>{if(!d.current)return;d.current.querySelectorAll("a, button").forEach(e=>{const t=e;if(!t.hasAttribute("data-original-tabindex")){const e=t.getAttribute("tabindex");null!==e&&"-1"!==e&&t.setAttribute("data-original-tabindex",e)}})},[]),g.useEffect(()=>{if(!d.current)return;d.current.querySelectorAll("a, button").forEach(e=>{const t=e,r=t.getAttribute("data-original-tabindex");t.tabIndex=o?null!==r?parseInt(r):0:-1})},[o]);const f=e,h=f.text?.trim()?f.text:void 0,m="buttonPills"===f.channelData?.actionPresentation,v=m&&!h&&!f.attachments?.length&&!!f.suggestedActions?.actions?.length,y="id"in f&&"string"==typeof f.id?f.id:"unknown",b=`${y}_${t||"unknown"}`,w=function(e,t){if(!e.replyToId||!t)return null;const r=t.find(t=>t.id===e.replyToId);return r&&"user"===r.from?.role?r:null}(e,u),x=function(e,t){if(t&&t.text){const r=Ice(t.text);if(r.length>0)return`Response to: ${r}. Answered ${e}`}return`Message from assistant. Received ${e}`}(a,w),S=function(e,t){if(e&&e.text){const r=Ice(e.text);if(r.length>0)return`Response to: ${r}. Answered ${t}`}return`Message from assistant. Received ${t}`}(w,a);g.useEffect(()=>{if(s.current||gVe.has(b))return;let e=f.text;!e&&f.attachments&&f.attachments.length>0&&(e=PMe(f.attachments)),e&&((e=>{const t=(e=>{const t="\0UCA_ESCAPED_ASTERISK\0";return e.replace(/\\\*/g,t).replace(/(^|[^\w*])(\*\*\*|\*\*|\*)(\S(?:.*?\S)?)\2(?![\w*])/g,"$1$3").split(t).join("*").trim()})(e.replace(/<[^>]*>/g,""));t&&xMe(`New message: ${t}`)})(e),s.current=!0,gVe.add(b))},[f.text,f.attachments,y,t]);const k=vMe(e);return g.useEffect(()=>{if(!f.text)return;const e=f.text.toLowerCase().replace(/[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}/gi,"[email]"),t=e.includes(b8.HELP_TEXT.STARTQUOTE_HELP_TEXT.toLowerCase()),r=e.includes(b8.HELP_TEXT.WELCOMEQUOTE_HELP_TEXT.toLowerCase())||e.includes(b8.HELP_TEXT.WELCOMEQUOTE_HELP_TEXT_AGENTIC.toLowerCase()),n=e.includes(b8.HELP_TEXT.EMAIL_SENT_HELP_TEXT.toLowerCase());if(t||r||n){const t={aN:b8.AREA_NAMES.AI_CHAT_DRAWER,compnm:b8.COMPONENT_NAMES.AI_ASSISTANT,hn:e,ehn:e,view:b8.VIEW.AI_CHAT_DRAWER,scn:b8.SCENARIO_NAMES.QUOTE,cT:b8.CONTENT_TYPES.AI_ASSISTANT_ACTION};Ece({actionType:b8.ACTION_TYPES.AUTOMATIC,behavior:n?b8.BEHAVIORS.COMPLETED:r?b8.BEHAVIORS.CLICK:null,contentTags:{...t,id:n?b8.IDS.AI_QUOTE_EMAIL_SENT:r?b8.IDS.AI_QUOTE_WELCOME:b8.IDS.AI_QUOTE_OFFERED,scnstp:n?b8.SCENARIO_STEPS.COMPLETE:r?b8.SCENARIO_STEPS.WELCOME:b8.SCENARIO_STEPS.TRIGGERED,stpnum:n?b8.STEP_NUMBERS.SIX:r?b8.STEP_NUMBERS.ONE:null}})}},[f.text,t]),mVe(d,r,f.text),p.jsxs("article",{ref:d,className:`uca-chat-message uca-chat-message-agent ${"dbg"===r?"uca-dbg":""} ${o?"uca-interaction-mode":""}`,"aria-label":S,role:"article",tabIndex:n?0:-1,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||o||!n||(e.preventDefault(),i?.())},children:[p.jsx("h3",{className:"uca-chat-message-heading",children:x}),h&&p.jsx("div",{className:"uca-chat-layout",children:p.jsxs("div",{className:"uca-chat-message-bubble",children:[p.jsx("div",{className:"uca-chat-message-content",dangerouslySetInnerHTML:{__html:CE.sanitize(Aoe(h,{markdownRespectCRLF:!0,markdownRenderHTML:!0},{codeBlockCopyButtonTagName:"uca-code-block",externalLinkAlt:"Opens in new tab",isWelcomeMessage:k,dataBiTagDecorator:vVe(e)}),{ADD_TAGS:["uca-code-block"],ADD_ATTR:["target"],CUSTOM_ELEMENT_HANDLING:{tagNameCheck:/^uca-code-block$/i,attributeNameCheck:/^(language)$/i}})}}),lVe(e)&&p.jsx(UFe,{message:e,responseContainerRef:d}),p.jsx(cVe,{message:e})]})}),f.attachments&&f.attachments.map((t,r)=>p.jsxs("div",{className:"uca-chat-layout",children:[p.jsxs("div",{className:"uca-chat-message-bubble",children:[p.jsx(Vce,{activityId:y,attachment:t},r),lVe(e)&&"application/vnd.microsoft.card.adaptive"!==t.contentType&&p.jsx(UFe,{message:e,responseContainerRef:d})]}),p.jsx(cVe,{message:e})]},`attachment-${r}`)),!v&&p.jsx("div",{className:"uca-chat-layout",children:p.jsx("div",{className:"uca-chat-message-timestamp",children:p.jsx("small",{children:a})})}),f.suggestedActions&&!l&&p.jsx("div",{className:"uca-chat-layout",children:p.jsx(pVe,{suggestedAction:f.suggestedActions,keepOpenUrlActionsEnabled:m,onActionClick:m?void 0:()=>{c(!0)},previousMessageEnglishText:h||(f.attachments?PMe(f.attachments):void 0)})})]})},bVe=()=>p.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M4.68918 4.71569L4.74703 4.64645C4.9206 4.47288 5.19002 4.4536 5.38489 4.58859L5.45414 4.64645L10.6006 9.793L15.747 4.64645C15.9206 4.47288 16.19 4.4536 16.3849 4.58859L16.4541 4.64645C16.6277 4.82001 16.647 5.08944 16.512 5.28431L16.4541 5.35355L11.3076 10.5L16.4541 15.6464C16.6277 15.82 16.647 16.0894 16.512 16.2843L16.4541 16.3536C16.2806 16.5271 16.0111 16.5464 15.8163 16.4114L15.747 16.3536L10.6006 11.207L5.45414 16.3536C5.28057 16.5271 5.01115 16.5464 4.81628 16.4114L4.74703 16.3536C4.57347 16.18 4.55418 15.9106 4.68918 15.7157L4.74703 15.6464L9.89359 10.5L4.74703 5.35355C4.57347 5.17999 4.55418 4.91056 4.68918 4.71569L4.74703 4.64645L4.68918 4.71569Z",fill:"#C50F1F"})}),wVe=()=>p.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M11.0926 9.41012C11.0503 9.17687 10.8462 8.99999 10.6007 8.99999C10.3246 8.99999 10.1007 9.22385 10.1007 9.49999V14.0021L10.1088 14.092C10.1511 14.3253 10.3552 14.5021 10.6007 14.5021C10.8768 14.5021 11.1007 14.2783 11.1007 14.0021V9.49999L11.0926 9.41012ZM11.3994 7.24999C11.3994 6.83578 11.0636 6.49999 10.6494 6.49999C10.2352 6.49999 9.89941 6.83578 9.89941 7.24999C9.89941 7.66421 10.2352 7.99999 10.6494 7.99999C11.0636 7.99999 11.3994 7.66421 11.3994 7.24999ZM18.6006 10.5C18.6006 6.08172 15.0189 2.5 10.6006 2.5C6.18231 2.5 2.60059 6.08172 2.60059 10.5C2.60059 14.9183 6.18231 18.5 10.6006 18.5C15.0189 18.5 18.6006 14.9183 18.6006 10.5ZM3.60059 10.5C3.60059 6.63401 6.73459 3.5 10.6006 3.5C14.4666 3.5 17.6006 6.63401 17.6006 10.5C17.6006 14.366 14.4666 17.5 10.6006 17.5C6.73459 17.5 3.60059 14.366 3.60059 10.5Z",fill:"#C50F1F"})}),xVe=()=>p.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M4.68893 4.71569L4.74679 4.64645C4.92035 4.47288 5.18978 4.4536 5.38465 4.58859L5.4539 4.64645L10.6003 9.793L15.7468 4.64645C15.9204 4.47288 16.1898 4.4536 16.3846 4.58859L16.4539 4.64645C16.6275 4.82001 16.6467 5.08944 16.5118 5.28431L16.4539 5.35355L11.3073 10.5L16.4539 15.6464C16.6275 15.82 16.6467 16.0894 16.5118 16.2843L16.4539 16.3536C16.2803 16.5271 16.0109 16.5464 15.816 16.4114L15.7468 16.3536L10.6003 11.207L5.4539 16.3536C5.28033 16.5271 5.0109 16.5464 4.81604 16.4114L4.74679 16.3536C4.57322 16.18 4.55394 15.9106 4.68893 15.7157L4.74679 15.6464L9.89334 10.5L4.74679 5.35355C4.57322 5.17999 4.55394 4.91056 4.68893 4.71569L4.74679 4.64645L4.68893 4.71569Z",fill:"#424242"})}),SVe=()=>p.jsx("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M11.0924 9.41012C11.0501 9.17687 10.8459 8.99999 10.6005 8.99999C10.3243 8.99999 10.1005 9.22385 10.1005 9.49999V14.0021L10.1085 14.092C10.1508 14.3253 10.355 14.5021 10.6005 14.5021C10.8766 14.5021 11.1005 14.2783 11.1005 14.0021V9.49999L11.0924 9.41012ZM11.3992 7.24999C11.3992 6.83578 11.0634 6.49999 10.6492 6.49999C10.235 6.49999 9.89917 6.83578 9.89917 7.24999C9.89917 7.66421 10.235 7.99999 10.6492 7.99999C11.0634 7.99999 11.3992 7.66421 11.3992 7.24999ZM18.6003 10.5C18.6003 6.08172 15.0186 2.5 10.6003 2.5C6.18206 2.5 2.60034 6.08172 2.60034 10.5C2.60034 14.9183 6.18206 18.5 10.6003 18.5C15.0186 18.5 18.6003 14.9183 18.6003 10.5ZM3.60034 10.5C3.60034 6.63401 6.73435 3.5 10.6003 3.5C14.4663 3.5 17.6003 6.63401 17.6003 10.5C17.6003 14.366 14.4663 17.5 10.6003 17.5C6.73435 17.5 3.60034 14.366 3.60034 10.5Z",fill:"#424242"})}),kVe=()=>{const{messages:e,dismissMessage:t}=(()=>{const e=Kw(),t=Pw(e=>e.error.messages),r=Pw(e=>e.error.lastMessageId&&e.error.messages.find(t=>t.id===e.error.lastMessageId)||null),n=Pw(e=>e.error.messages.length>0);g.useEffect(()=>{const r=t.filter(e=>!1!==e.dismissible),n=[];return r.forEach(t=>{const r=Date.now()-t.timestamp;if(r<1e4){const o=setTimeout(()=>{e(PC(t.id))},1e4-r);n.push(o)}}),()=>{n.forEach(e=>clearTimeout(e))}},[t,e]),g.useEffect(()=>{r&&xMe(`${kMe}: ${r.message}`,"assertive")},[r]);const o=g.useCallback((t,r="error",n=!0)=>{e(IC({message:t,type:r,dismissible:n}))},[e]),i=g.useCallback(t=>{e(PC(t))},[e]),a=g.useCallback(()=>{e(NC())},[e]),s=g.useCallback(t=>{e(BC(t))},[e]),l=g.useCallback((e="An error occurred. Please try again.")=>{o(e,"error",!1)},[o]),c=g.useCallback((e="Warning: Please review your action.")=>{o(e,"warn",!0)},[o]),u=g.useCallback((e="Information has been updated.")=>{o(e,"info",!0)},[o]),d=g.useCallback((e="Operation completed successfully.")=>{o(e,"success",!0)},[o]);return{messages:t,latestMessage:r,hasMessages:n,showMessage:o,dismissMessage:i,clearMessages:a,clearMessagesByType:s,showErrorMessage:l,showWarning:c,showInfo:u,showSuccess:d,errors:t,latestError:r,hasErrors:n,showError:o,dismissError:i,clearErrors:a,clearErrorsByErrorType:s}})();return 0===e.length?null:p.jsx("div",{className:"uca-message-banner-container",children:e.map(e=>p.jsx("div",{className:`uca-message-banner uca-message-banner--${e.type}`,role:"alert","aria-live":"assertive",children:p.jsxs("div",{className:"uca-message-banner__content",children:[p.jsxs("div",{className:"uca-message-banner__icon","aria-hidden":"true",children:["error"===e.type&&p.jsx(wVe,{}),"error"!==e.type&&p.jsx(SVe,{})]}),p.jsx("div",{className:"uca-message-banner__message",children:e.message}),!1!==e.dismissible&&p.jsxs("button",{className:"uca-message-banner__dismiss",onClick:()=>t(e.id),"aria-label":"Dismiss message",type:"button",children:["error"===e.type&&p.jsx(bVe,{}),"error"!==e.type&&p.jsx(xVe,{})]})]})},e.id))})},EVe=({chatHistory:e})=>{const t=Kw(),{sendMessageWithTelemetry:r}=v8(),n=Pw(lT),o=Pw(cT),i=(e||[]).length>=1&&o;return o&&i?p.jsx("div",{className:"uca-proactive-prompts-overlay",children:p.jsx("div",{className:"uca-proactive-prompts",children:p.jsx("div",{className:"uca-proactive-prompts__grid",children:n.map((e,n)=>p.jsx("button",{className:"uca-proactive-prompts__button",onClick:()=>(e=>{r(e,"message",""),t(iT())})(e),"aria-label":`Send message: ${e}`,"data-bi-cn":e,"data-bi-ecn":e,"data-bi-id":b8.IDS.AI_CHAT_CANNED,"data-bi-hn":b8.HEADER_NAMES.ASK_MICROSOFT,"data-bi-ehn":b8.HEADER_NAMES.ASK_MICROSOFT,"data-bi-compnm":b8.COMPONENT_NAMES.AI_ASSISTANT,"data-bi-ct":b8.CONTENT_TYPES.CANNED_PROMPT_BUTTON,"data-bi-view":b8.VIEW.AI_CHAT_DRAWER,"data-bi-an":b8.AREA_NAMES.AI_CHAT_DRAWER,"data-bi-bhvr":b8.BEHAVIORS.CONTENT_INTERACTION,children:p.jsx("span",{className:"uca-proactive-prompts__button-text",children:e})},n))})})}):null},TVe=/```/g,_Ve=/`/g,CVe=/\*\*/g,AVe=/\*/g,IVe=/~~/g,PVe=/```[\s\S]*?```/g,NVe=/`[^`\n]*`/g;function BVe(e,t){return(e.match(t)??[]).length}function OVe(e){if(!e)return e;let t=e;BVe(t,TVe)%2==1&&(t+="\n```");const r=t.replace(PVe,"");BVe(r,_Ve)%2==1&&(t+="`");const n=r.replace(NVe,"");BVe(n,CVe)%2==1&&(t+="**");BVe(n.replace(CVe,""),AVe)%2==1&&(t+="*");return BVe(n,IVe)%2==1&&(t+="~~"),t}const DVe=()=>{const e=Pw(e=>e.streaming.status),t=Pw(e=>e.streaming.accumulatedText);return"idle"===e?null:p.jsx("article",{className:"uca-chat-message uca-chat-message-agent","aria-label":"Assistant is responding",role:"article",children:p.jsx("div",{className:"uca-chat-layout",children:p.jsx("div",{className:"uca-chat-message-bubble uca-streaming-bubble"+("streaming"===e?" uca-streaming-active":""),children:"waiting"===e?p.jsxs("span",{className:"uca-typing-indicator",children:[p.jsxs("span",{className:"uca-typing-dots","aria-hidden":"true",children:[p.jsx("span",{className:"dot"}),p.jsx("span",{className:"dash"}),p.jsx("span",{className:"dot"}),p.jsx("span",{className:"dash"}),p.jsx("span",{className:"dot"})]}),p.jsx("span",{className:"uca-typing-text",children:"Generating a response…"})]}):p.jsx("div",{className:"uca-chat-message-content uca-streaming-cursor",dangerouslySetInnerHTML:{__html:CE.sanitize(Aoe(OVe(t),{markdownRespectCRLF:!0,markdownRenderHTML:!0},{codeBlockCopyButtonTagName:"uca-code-block",externalLinkAlt:"Opens in new tab",isStreaming:!0}),{ADD_TAGS:["uca-code-block"],ADD_ATTR:["target"],CUSTOM_ELEMENT_HANDLING:{tagNameCheck:/^uca-code-block$/i,attributeNameCheck:/^(language|streaming)$/i}})}})})})})},RVe={disclaimer:"AI-generated content may be incorrect",termsOfUse:"Terms of use",privacy:"Privacy",faq:"FAQ"},MVe={en:RVe},zVe="https://aka.ms/AMWAtos",jVe="https://go.microsoft.com/fwlink/?LinkId=521839",LVe="https://aka.ms/AMWAfaq";const FVe=({isActive:e=!1,isInteractionMode:t=!1,onEnterInteractionMode:r})=>{const n=function(e="en"){return MVe[e]??RVe}(),o=g.useRef(null);g.useEffect(()=>{e&&o.current&&o.current.focus()},[e]);const i=[{key:"termsOfUse",href:zVe,label:n.termsOfUse},{key:"privacy",href:jVe,label:n.privacy},{key:"faq",href:LVe,label:n.faq}];return p.jsxs("nav",{ref:o,className:"uca-terms-and-conditions","aria-label":"Legal",tabIndex:e?0:-1,onKeyDown:n=>{"Enter"!==n.key&&" "!==n.key||t||!e||(n.preventDefault(),r?.())},children:[p.jsx("p",{className:"uca-terms-and-conditions__disclaimer",children:n.disclaimer}),p.jsx("ul",{className:"uca-terms-and-conditions__links",children:i.map(e=>p.jsx("li",{className:"uca-terms-and-conditions__item",children:p.jsx("a",{className:"uca-terms-and-conditions__link",href:e.href,target:"_blank",rel:"noopener noreferrer",tabIndex:t?0:-1,"aria-label":`${e.label} (opens in new tab)`,"data-bi-compnm":b8.COMPONENT_NAMES.AI_ASSISTANT,"data-bi-view":b8.VIEW.AI_CHAT_DRAWER,"data-bi-an":b8.AREA_NAMES.AI_CHAT_DRAWER,"data-bi-ct":b8.CONTENT_TYPES.AI_CHAT_LINK,"data-bi-cn":e.label,"data-bi-ecn":e.label,children:e.label})},e.key))})]})},VVe=({message:e,messageIndex:t,isActive:r=!1,isInteractionMode:n=!1,onEnterInteractionMode:o})=>{const i=e.text,a=VFe(e.timestamp?new Date(e.timestamp):new Date),s=v.useRef(null);v.useEffect(()=>{r&&s.current&&s.current.focus()},[r]);return p.jsxs("article",{ref:s,className:"uca-chat-message uca-chat-message-user "+(n?"uca-interaction-mode":""),"aria-label":"The user said at "+a,tabIndex:r?0:-1,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||n||!r||(e.preventDefault(),o?.())},children:[p.jsxs("h3",{className:"uca-chat-message-heading",children:["User message ","number"==typeof t?t+1:""," - ",a]}),p.jsx("div",{className:"uca-chat-layout",children:p.jsx("div",{className:"uca-chat-message-bubble",children:p.jsx("div",{className:"uca-chat-message-content",children:i})})}),p.jsx("div",{className:"uca-chat-layout",children:p.jsx("div",{className:"uca-chat-message-timestamp",children:p.jsx("small",{children:a})})})]})},qVe=new Set(["conversationUpdate","endOfConversation"]),HVe=({className:e})=>{const t=Pw(e=>e.webChat.chatHistory),r=Pw(e=>e.webChat.activities),n=Pw(e=>e.streaming.status),o=Pw(e=>e.streaming.streamSequence),i=((e,t="smooth")=>{const r=g.useRef(null),n=g.useRef(!0),o=g.useRef(!1),i=g.useRef(null),a=g.useCallback(e=>{const{scrollTop:t,scrollHeight:r,clientHeight:n}=e;return r-t-n<=50},[]);return g.useEffect(()=>{const e=r.current;if(!e)return;o.current||(n.current=a(e),o.current=!0);const t=()=>{n.current=a(e)};return e.addEventListener("scroll",t,{passive:!0}),()=>{e.removeEventListener("scroll",t)}}),g.useEffect(()=>{r.current&&n.current&&(null!==i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{i.current=null,r.current&&n.current&&r.current.scrollTo({top:r.current.scrollHeight,behavior:t})}))},[e,t]),g.useEffect(()=>()=>{null!==i.current&&(cancelAnimationFrame(i.current),i.current=null)},[]),r})((t?.length??0)+o),[a,s]=g.useState(0),[l,c]=g.useState(null),[u,d]=g.useState(!1),f=(t??[]).filter(e=>!Gce(e).shouldSuppress),h=f.findIndex(vMe),m=-1!==h,y=[];f.forEach((e,t)=>{y.push({type:re,messageIndex:t}),m&&t===h&&y.push({type:ne})});const b=y[a],w=b?.type===ne,[x,S]=g.useState(!1),[k,E]=g.useState(!1),T=r[r.length-1],_=g.useRef(null),C=g.useRef(null),A=e=>{null!==e.current&&(clearTimeout(e.current),e.current=null)},I=()=>{TMe(),S(!1),E(!1)},P=e=>{c(e)},N=()=>{d(!0)};return g.useEffect(()=>("typing"===T?.type?(A(_),x||(EMe(),S(!0),E(!1),A(C),C.current=window.setTimeout(()=>{E(!0),xMe("Still working on it"),C.current=null},1e4)),_.current=window.setTimeout(()=>{I(),_.current=null},6e4)):("message"===T?.type&&"bot"===T?.from?.role||qVe.has(T?.type??""))&&(A(_),A(C),I()),()=>A(_)),[T]),g.useEffect(()=>()=>A(C),[]),p.jsxs("div",{className:`uca-chat-history ${e||""}`,children:[p.jsx(kVe,{}),p.jsxs("section",{className:"uca-chat-history__content",ref:i,role:"region","aria-label":"Chat conversation","aria-live":"off",onKeyDown:e=>{if("Escape"===e.key&&(null!==l||u))return e.preventDefault(),c(null),void d(!1);if("ArrowDown"===e.key||"ArrowUp"===e.key){if(null!==l||u)return;e.preventDefault();const t=y.length;if(0===t)return;let r;r="ArrowDown"===e.key?a<t-1?a+1:0:a>0?a-1:t-1,s(r)}},children:[f.map((e,t)=>{const r=l===t,n=b?.type===re&&b.messageIndex===t;return"user"==e.from.role?p.jsx(VVe,{message:e,messageIndex:t,isActive:n,isInteractionMode:r,onEnterInteractionMode:()=>P(t)},gMe(e)):"dbg"==e.from.role?p.jsx(yVe,{message:e,messageIndex:t,kind:"dbg",isActive:n,isInteractionMode:r,onEnterInteractionMode:()=>P(t)},gMe(e)):p.jsxs(v.Fragment,{children:[p.jsx(yVe,{message:e,messageIndex:t,kind:"bot",isActive:n,isInteractionMode:r,onEnterInteractionMode:()=>P(t)}),m&&vMe(e)&&p.jsx(FVe,{isActive:w,isInteractionMode:u,onEnterInteractionMode:N})]},gMe(e))}),p.jsx(EVe,{chatHistory:t}),"idle"!==n?p.jsx(DVe,{}):x&&p.jsxs("div",{className:"uca-typing-indicator","aria-live":"off",children:[p.jsxs("span",{className:"uca-typing-dots","aria-hidden":"true",children:[p.jsx("span",{className:"dot"}),p.jsx("span",{className:"dash"}),p.jsx("span",{className:"dot"}),p.jsx("span",{className:"dash"}),p.jsx("span",{className:"dot"})]}),p.jsx("span",{className:"uca-typing-text",children:k?"Still working on it…":"Generating a response…"})]})]})]})},UVe=()=>p.jsx("div",{className:"uca-divider"}),WVe=()=>p.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M2.93212 2.16883L17.8307 9.2118C18.2711 9.41996 18.4573 9.94156 18.2467 10.3768C18.1596 10.5568 18.0128 10.7019 17.8307 10.788L2.93212 17.831C2.49177 18.0391 1.96407 17.855 1.75347 17.4198C1.66195 17.2306 1.6423 17.0153 1.69811 16.813L3.57799 9.9999L1.69811 3.18678C1.56968 2.72131 1.84732 2.24106 2.31824 2.11411C2.52288 2.05895 2.74077 2.07837 2.93212 2.16883ZM2.82295 3.27926L4.53598 9.49071L12.2726 9.49141C12.5411 9.49141 12.7629 9.6886 12.798 9.94444L12.8029 10.0156C12.8029 10.2809 12.6034 10.5002 12.3446 10.5349L12.2726 10.5397L4.5275 10.539L2.82295 16.7205L17.0397 9.9999L2.82295 3.27926Z",fill:"var(--ds-theme-foreground-base-icon)"})}),$Ve=()=>p.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M2.93212 2.16883L17.8307 9.2118C18.2711 9.41996 18.4573 9.94156 18.2467 10.3768C18.1596 10.5568 18.0128 10.7019 17.8307 10.788L2.93212 17.831C2.49177 18.0391 1.96407 17.855 1.75347 17.4198C1.66195 17.2306 1.6423 17.0153 1.69811 16.813L3.57799 9.9999L1.69811 3.18678C1.56968 2.72131 1.84732 2.24106 2.31824 2.11411C2.52288 2.05895 2.74077 2.07837 2.93212 2.16883ZM2.82295 3.27926L4.53598 9.49071L12.2726 9.49141C12.5411 9.49141 12.7629 9.6886 12.798 9.94444L12.8029 10.0156C12.8029 10.2809 12.6034 10.5002 12.3446 10.5349L12.2726 10.5397L4.5275 10.539L2.82295 16.7205L17.0397 9.9999L2.82295 3.27926Z",fill:"var(--ds-theme-foreground-base-icon)"})}),GVe=[.78,1.05,1.45,1.05,.78],YVe=[.56,.8,1,.8,.56],KVe=()=>{const e=Kw(),t=Pw(eA),r=Pw(tA),n=g.useRef([]),o=g.useRef(0),i=g.useRef(null),a=g.useRef(r),[s,l]=g.useState(!1);g.useEffect(()=>{a.current=r},[r]),g.useEffect(()=>{if("listening"!==t)return void(o.current=0);const e=()=>{const t=Math.min(1,8*a.current),r=t>o.current?.5:.15;o.current+=(t-o.current)*r;for(let e=0;e<5;e++){const t=n.current[e];if(!t)continue;const r=Math.max(.15,Math.min(YVe[e],o.current*GVe[e]));t.style.transform=`scaleY(${r})`}i.current=requestAnimationFrame(e)};return i.current=requestAnimationFrame(e),()=>{null!==i.current&&cancelAnimationFrame(i.current)}},[t]);const c="connecting"===t?"state-thinking":"state-user-talking";return p.jsxs("div",{className:`uca-voice-activity ${c}${s?" leaving":""}`,children:[p.jsx("div",{className:"uca-glow-layer"}),p.jsx("div",{className:"uca-voice-center",children:p.jsx("span",{className:"uca-voice-activity-label",children:"connecting"===t?"Connecting...":"Listening..."})}),p.jsx("div",{className:"uca-voice-bars-container",children:[0,1,2,3,4].map(e=>p.jsx("i",{ref:t=>{n.current[e]=t}},e))}),p.jsx("button",{className:"uca-voice-activity-stop",onClick:()=>{l(!0),setTimeout(()=>e(Poe()),250)},children:"Stop"})]})},{log:XVe}=R.withKind("footer"),JVe=g.forwardRef((e,t)=>{const r=Kw(),[n,o]=g.useState(""),i=Zwe(),{sendMessageWithTelemetry:a}=v8(),s=g.useRef(null),l=Pw(aue),c=Pw(nue).isPostSurveyEnabled,u=Pw(lue),d=Pw(yC),f=Pw(rue),h=Pw(cue),m=Pw(uue),v=Pw(eA),y=Pw(ek),b=Pw(tk),[w,x]=g.useState(!1);g.useEffect(()=>{x(!1)},[h]);const S=g.useRef(h);g.useEffect(()=>{S.current===te&&h!==te&&xMe("Quoting experience ended"),S.current=h},[h]);const k=d||0===f.length,E=u===M.DirectLine,T=y&&(k||b&&E),_=Pw(zS),C=Pw(jS);g.useEffect(()=>{_&&(o(_.value),r(OS()))},[_,r]),g.useEffect(()=>{if(!C)return;const e=setTimeout(()=>{s.current?.focus(),r(RS())},C.delayMs);return()=>clearTimeout(e)},[C,r]),g.useImperativeHandle(t,()=>({focus:()=>{s.current?.focus()}}),[]);const A=e=>{if(y&&b&&E)return;const t=n.trim(),r=CE.sanitize(t);if(r){const t=(()=>{const e=document.querySelector(".uca-header .uca-title"),t=e?.textContent?.replace(/\s+/g," ").trim();return t||b8.HEADER_NAMES.ASK_MICROSOFT})();Ece({behavior:b8.BEHAVIORS.CONTENT_INTERACTION,actionType:e,contentTags:{aN:b8.AREA_NAMES.AI_CHAT_DRAWER,compnm:b8.COMPONENT_NAMES.AI_ASSISTANT,hn:t,ehn:b8.HEADER_NAMES.ASK_MICROSOFT,view:b8.VIEW.AI_CHAT_DRAWER,id:b8.IDS.AI_CHAT_MANUAL,cT:b8.CONTENT_TYPES.FREEFORM_PROMPT_SUBMIT,sN:b8.SLOT_NUMBER.SUBMIT}}),a(r,"text",{}),o("")}else XVe("🚫 XSS Protection Test - Message blocked (empty after sanitization)")};return p.jsxs("div",{className:"inactive"!==v?"uca-footer voice-mode-active":"uca-footer",children:[u===M.LivePerson?p.jsxs("small",{className:"uca-footer-status uca-footer-lp-status",children:[p.jsx("span",{className:"uca-footer-lp-text",children:"Connecting"===l.type?"Connecting to a live agent.":"Reconnecting"===l.type?"Connection lost. Attempting to reconnect.":c?"You are now chatting with a survey bot.":"You are now chatting with a live agent."}),p.jsx("button",{className:"uca-footer-lp-link","data-bi-cn":b8.CONTENT_NAMES.END_LIVE_CHAT,"data-bi-ecn":b8.CONTENT_NAMES.END_LIVE_CHAT,"data-bi-hn":b8.HEADER_NAMES.AI_POWERED_ASSISTANT,"data-bi-ehn":b8.HEADER_NAMES.AI_POWERED_ASSISTANT,"data-bi-compnm":b8.COMPONENT_NAMES.AI_ASSISTANT,"data-bi-ct":b8.CONTENT_TYPES.CLOSEX,"data-bi-view":b8.VIEW.AI_CHAT_DRAWER,"data-bi-an":b8.AREA_NAMES.AI_CHAT_DRAWER,"data-bi-bhvr":b8.BEHAVIORS.CHAT_END,onClick:()=>{r(sV.userRequestDisconnect())},children:"End live chat"})]}):h===te?p.jsx("small",{className:"uca-footer-status uca-footer-quotex-status",children:p.jsx("button",{className:"uca-footer-lp-link","data-bi-cn":b8.CONTENT_NAMES.END_QUOTE,"data-bi-ecn":b8.CONTENT_NAMES.END_QUOTE,"data-bi-hn":b8.HEADER_NAMES.AI_POWERED_ASSISTANT,"data-bi-ehn":b8.HEADER_NAMES.AI_POWERED_ASSISTANT,"data-bi-compnm":b8.COMPONENT_NAMES.AI_ASSISTANT,"data-bi-ct":b8.CONTENT_TYPES.AI_ASSISTANT_ACTION,"data-bi-view":b8.VIEW.AI_CHAT_DRAWER,"data-bi-an":b8.AREA_NAMES.AI_CHAT_DRAWER,"data-bi-bhvr":b8.BEHAVIORS.CLICK,disabled:w||m,"aria-label":w?"Ending quoting experience":m?"End quoting experience is currently unavailable":void 0,onClick:()=>{x(!0),r(Yue({id:"end-quoting-"+Date.now(),timestamp:(new Date).toISOString(),channelData:{postBack:!0,"webchat:sequence-id":1},type:"event",name:X,value:"",from:{id:"user",name:"User",role:"user"}},"keyboard"))},children:"End quoting experience"})}):null,p.jsx("div",{className:"uca-send-box",children:p.jsxs("form",{className:"uca-send-box-form",onSubmit:e=>{e.preventDefault(),A(b8.ACTION_TYPES.CLICK)},children:[p.jsx("textarea",{ref:s,className:"uca-send-box-textarea",value:n,onChange:e=>{o(e.target.value),u===M.LivePerson&&"Connected"===l.type&&r(sV.userTyping())},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),A(b8.ACTION_TYPES.KEYBOARD))},placeholder:"Ask a work question or make a request...",rows:1,"aria-label":"Message input box"}),p.jsx("button",{className:"uca-send-box-button",type:"submit",disabled:T,"aria-label":"Send message","data-bi-dnt":"true",children:i===j.Night?p.jsx($Ve,{}):p.jsx(WVe,{})})]})}),"inactive"!==v&&p.jsx(KVe,{})]})});JVe.displayName="Footer";const QVe=()=>p.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M4.2097 4.3871L4.29289 4.29289C4.65338 3.93241 5.22061 3.90468 5.6129 4.2097L5.70711 4.29289L12 10.585L18.2929 4.29289C18.6834 3.90237 19.3166 3.90237 19.7071 4.29289C20.0976 4.68342 20.0976 5.31658 19.7071 5.70711L13.415 12L19.7071 18.2929C20.0676 18.6534 20.0953 19.2206 19.7903 19.6129L19.7071 19.7071C19.3466 20.0676 18.7794 20.0953 18.3871 19.7903L18.2929 19.7071L12 13.415L5.70711 19.7071C5.31658 20.0976 4.68342 20.0976 4.29289 19.7071C3.90237 19.3166 3.90237 18.6834 4.29289 18.2929L10.585 12L4.29289 5.70711C3.93241 5.34662 3.90468 4.77939 4.2097 4.3871L4.29289 4.29289L4.2097 4.3871Z",fill:"var(--ds-theme-foreground-base-icon)"})}),ZVe=({mode:e})=>{const t=Kw(),{toggleDrawer:r}=ode(),n=Zwe(),o=uMe(),[i,a]=g.useState(b8.HEADER_NAMES.ASK_MICROSOFT),s=()=>{r(),t(dV.logTelemetry("Assistant drawer close button clicked"))},l=Pw(lue);return g.useEffect(()=>{const e=document.querySelector(x8);if(!e)return;a(S8());const t=new MutationObserver(()=>{a(S8())});return t.observe(e,{childList:!0,characterData:!0,subtree:!0}),()=>t.disconnect()},[l]),p.jsxs("div",{className:"uca-header",children:[p.jsx("div",{children:p.jsxs("div",{className:"uca-header-text",children:[p.jsx("div",{className:"uca-ai-icon-container","aria-hidden":"true",children:p.jsx("div",{className:"uca-ai-icon","aria-hidden":"true",children:n===j.Night?p.jsx(zwe,{}):p.jsx(Mwe,{})})}),p.jsx("div",{className:"uca-chat-button__text",children:p.jsxs("h2",{className:"uca-title",children:[l===M.LivePerson?"[Live Agent]":""," ","Ask Microsoft​"]})})]})}),p.jsx("div",{children:p.jsx("div",{className:"uca-header-controls",children:!((e||o?.mode)===L.Sidecar)&&p.jsx("a",{className:"uca-header-chat-button__icon","data-mount":"uca-chat-button","aria-label":"Close web assistant","data-bi-cn":b8.COMPONENT_NAMES.HIDE_CHAT,"data-bi-ecn":b8.COMPONENT_NAMES.HIDE_CHAT,"data-bi-ct":b8.CONTENT_TYPES.CLOSEX,"data-bi-hn":i,"data-bi-ehn":b8.HEADER_NAMES.ASK_MICROSOFT,"data-bi-compnm":b8.COMPONENT_NAMES.AI_ASSISTANT,"data-bi-view":b8.VIEW.AI_CHAT_DRAWER,"data-bi-an":b8.AREA_NAMES.AI_CHAT_DRAWER,"data-bi-bhvr":b8.BEHAVIORS.CHAT_CLOSE,role:"button",onClick:s,onKeyUp:e=>"Enter"===e.key&&s(),tabIndex:0,children:p.jsx("div",{className:"uca-close-icon","aria-hidden":"true",children:p.jsx("span",{className:"glyph-close",children:p.jsx(QVe,{})})})})})})]})},eqe=g.forwardRef(({mode:e},t)=>p.jsxs("div",{className:"uca-assistant","data-bi-an":b8.AREA_NAMES.AI_CHAT_DRAWER,"data-bi-compnm":b8.COMPONENT_NAMES.AI_ASSISTANT,children:[p.jsx(ZVe,{mode:e}),p.jsx(UVe,{}),p.jsx(HVe,{className:"uca-assistant-content"}),p.jsx(UVe,{}),p.jsx(JVe,{ref:t})]}));eqe.displayName="Assistant";const tqe=()=>{const{isDrawerOpen:e}=ode({lockHostScroll:!0}),t=uMe(),[r,n]=g.useState(e),[o,i]=g.useState(""),a=g.useRef(null),s=g.useRef(null),l=Zue(Que),c=g.useRef(null);cMe(t,{shouldInitialize:e}),mMe(),((e,t)=>{g.useEffect(()=>{if(!t)return;if("undefined"==typeof window||!window.visualViewport)return;const r=window.visualViewport,n=e.current;let o=!1,i=null,a=null,s=null;const l=()=>{if(i=null,!n)return;n.style.setProperty(dMe,`${r.height}px`),n.style.setProperty(fMe,`${r.offsetTop}px`);const e=Math.max(0,Math.max(window.innerHeight,window.screen?.height??0)-(r.offsetTop+r.height));n.style.setProperty(hMe,`${e}px`)},c=()=>{null===i&&(i=window.requestAnimationFrame(l))},u=()=>c(),d=()=>c(),f=()=>{c(),null!==a&&clearTimeout(a),a=setTimeout(()=>{a=null,c()},350)},h=()=>{o||(o=!0,r.addEventListener("resize",u),r.addEventListener("scroll",d),window.addEventListener("orientationchange",f),c())},p=()=>{o&&(o=!1,r.removeEventListener("resize",u),r.removeEventListener("scroll",d),window.removeEventListener("orientationchange",f),null!==i&&(window.cancelAnimationFrame(i),i=null),null!==a&&(clearTimeout(a),a=null),n?.style.removeProperty(dMe),n?.style.removeProperty(fMe),n?.style.removeProperty(hMe))},m=e=>{const t=e.target;pMe(t)&&n&&n.contains(t)&&(null!==s&&(clearTimeout(s),s=null),h())},g=e=>{const t=e.target;pMe(t)&&n&&n.contains(t)&&(null!==s&&clearTimeout(s),s=setTimeout(()=>{s=null;const e=document.activeElement;null!==n&&pMe(e)&&n.contains(e)||p()},0))};document.addEventListener("focusin",m),document.addEventListener("focusout",g);const v=document.activeElement;return n&&pMe(v)&&n.contains(v)&&h(),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",g),null!==s&&(clearTimeout(s),s=null),p()}},[t])})(a,e&&l);const u=g.useCallback(()=>{const e=c.current;e&&document.contains(e)?e.focus():document.querySelector(".uca-assistant-drawer-button")?.focus()},[]);g.useEffect(()=>{const e=e=>{const t=e.target;t&&t!==document.body&&!a.current?.contains(t)&&(c.current=t)};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)},[]),g.useEffect(()=>{e&&n(!0)},[e]),g.useEffect(()=>{let t=null,n=[];if(e&&r){i("Web assistant drawer opened. You can now ask questions or make requests.");const e=(t=0)=>{if(t>=5)return;s.current?.focus();const r=document.activeElement;if(!("Message input box"===r?.getAttribute("aria-label"))){const r=setTimeout(()=>e(t+1),50);n.push(r)}};t=setTimeout(()=>e(),100)}else!e&&c.current&&(i("Web assistant drawer closed."),t=setTimeout(u,300));return()=>{t&&clearTimeout(t),n.forEach(e=>clearTimeout(e))}},[e,r,u]),g.useEffect(()=>{let t=[];const r=()=>{if(e&&s.current){const e=(r=0)=>{if(r>=5)return;s.current?.focus();const n=document.activeElement;if(!("Message input box"===n?.getAttribute("aria-label"))){const n=setTimeout(()=>e(r+1),50);t.push(n)}};e()}};return document.addEventListener("onProactivePromptFocusRequest",r),()=>{document.removeEventListener("onProactivePromptFocusRequest",r),t.forEach(e=>clearTimeout(e))}},[e]),g.useEffect(()=>{if(o){const e=setTimeout(()=>i(""),2e3);return()=>clearTimeout(e)}},[o]);const d=g.useCallback(t=>{t.target===a.current&&"transform"===t.propertyName&&(e||n(!1))},[e]);return g.useEffect(()=>{const e=a.current;if(e)return e.addEventListener("transitionend",d),()=>e.removeEventListener("transitionend",d)},[d]),p.jsxs("div",{className:"uca-assistant-drawer-panel "+(e?"open":""),ref:a,role:"dialog","aria-label":"Web Assistant","aria-modal":"false","aria-describedby":"chat-description",children:[p.jsx("div",{"aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)"},children:o}),p.jsx("div",{id:"chat-description",className:"visually-hidden",children:"Ask questions or make requests to the web AI assistant. Use the text input at the bottom to send messages."}),r&&p.jsx(eqe,{mode:L.Drawer,ref:s})]})},rqe=()=>{const e=uMe();return cMe(e),p.jsx("div",{className:"uca-assistant-sidecar-panel",children:p.jsx(eqe,{mode:L.Sidecar})})};class nqe extends g.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){R.error("UnifiedChatAssistant ErrorBoundary caught an error:",e,t),this.setState({error:e,errorInfo:t});const r=new bye(`React Error Boundary: ${e.message}`,e,{operation:"reactComponentRender",component:"UnifiedChatAssistant_ErrorBoundary",metadata:{componentStack:t.componentStack,errorBoundary:"UnifiedChatAssistant",reactErrorInfo:t,componentChain:this.extractComponentChain(t.componentStack||""),hasCustomFallback:!!this.props.fallback,nodeEnv:"production"}});s8("UnifiedChatAssistant_ErrorBoundary",r,{...r.toJSON(),reactComponentStack:t.componentStack,reactErrorDigest:t.errorDigest}),this.props.onError&&this.props.onError(e,t),Dwe.dispatch(dV.logTelemetry(`ErrorBoundary Error: error: ${e}; errorInfo: ${JSON.stringify(t)}`))}extractComponentChain(e){try{const t=e.split("\n");return t.map(e=>{const t=e.match(/^\s+in\s+([^\s(]+)/);return t?t[1]:null}).filter(Boolean).slice(0,10)}catch(Wqe){return["ParseError"]}}render(){return this.state.hasError?null:this.props.children}}const oqe=({value:e,prompts:t,onValueChange:r,onSubmit:n,onPromptClick:o,onClose:i,placeholderText:a,isExiting:s=!1,onExitAnimationEnd:l})=>{const c=Zwe()===j.Night,u=Lwe(),d=g.useRef(null),f=Hwe(d,u),h=Qwe(),m=g.useCallback(e=>{d.current=e,h(e)},[h]);return p.jsxs("form",{ref:m,className:"uca-persistent-bottom-banner"+(s?" uca-persistent-bottom-banner--exiting":""),style:f>0?{bottom:`calc(var(--ds-spacing-l) + ${f}px)`}:void 0,role:"region","aria-label":"Ask Microsoft web assistant",onSubmit:t=>{t.preventDefault(),n(e,b8.ACTION_TYPES.CLICK)},onAnimationEnd:e=>{e.target===e.currentTarget&&s&&l?.()},children:[p.jsx("button",{type:"button",className:"uca-persistent-bottom-banner__close","aria-label":"Hide Persistent Prompt Banner",onClick:()=>i(b8.ACTION_TYPES.CLICK),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),i(b8.ACTION_TYPES.KEYBOARD))},children:p.jsx("svg",{viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("line",{x1:"3",y1:"8",x2:"13",y2:"8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),p.jsxs("div",{className:"uca-persistent-bottom-banner__stack",children:[p.jsxs("div",{className:"uca-persistent-bottom-banner__brand",children:[p.jsx("div",{className:"uca-persistent-bottom-banner__icon","aria-hidden":"true",children:c?p.jsx(zwe,{}):p.jsx(Mwe,{})}),p.jsx("span",{className:"uca-persistent-bottom-banner__label",children:"Ask Microsoft"})]}),p.jsxs("div",{className:"uca-persistent-bottom-banner__content",children:[p.jsxs("div",{className:"uca-persistent-bottom-banner__inner",children:[p.jsx("input",{type:"text",className:"uca-persistent-bottom-banner__input",placeholder:a,"aria-label":"Ask Microsoft assistant",value:e,onChange:e=>r(e.target.value),onKeyDown:t=>{"Enter"===t.key&&(t.preventDefault(),n(e,b8.ACTION_TYPES.KEYBOARD))}}),p.jsx("button",{type:"submit",className:"uca-persistent-bottom-banner__send","aria-label":"Send message",disabled:0===e.trim().length,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),n(e,b8.ACTION_TYPES.KEYBOARD))},children:c?p.jsx($Ve,{}):p.jsx(WVe,{})})]}),t?.length?p.jsx("div",{className:"uca-persistent-bottom-banner__prompts",role:"group","aria-label":"Suggested prompts",children:t.map(e=>p.jsx("button",{type:"button",className:"uca-persistent-bottom-banner__prompt",onClick:()=>o(e,b8.ACTION_TYPES.CLICK),onKeyDown:t=>((e,t)=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),o(t,b8.ACTION_TYPES.KEYBOARD))})(t,e),children:e.label},e.label))}):null]})]})]})},iqe=e=>({actionType:e.actionType,behavior:e.behavior,contentTags:{id:e.id,compnm:b8.COMPONENT_NAMES.AI_CHAT_BANNER,aN:b8.AREA_NAMES.FLOATING_BANNER,view:b8.VIEW.AI_CHAT_DRAWER,cT:e.cT,hn:b8.HEADER_NAMES.ASK_MICROSOFT,ehn:b8.HEADER_NAMES.ASK_MICROSOFT,...void 0!==e.ecn&&{ecn:e.ecn},...void 0!==e.cN&&{cN:e.cN}}}),aqe=({prompts:e})=>{const t=Pw(US),r=Kw(),[n,o]=g.useState(""),[i,a]=g.useState(t),[s,l]=g.useState(!1);g.useEffect(()=>{t?(a(!0),l(!1)):i&&l(!0)},[t,i]);const c=g.useCallback(()=>{s&&(a(!1),l(!1))},[s]),u=g.useCallback(e=>{const t=e.trim();if(!t)return!1;const r={value:t,messageType:"text",options:{behavior:"submit",focusInput:!0,waitForReady:!0},metadata:{source:FS}};return document.dispatchEvent(new ede(W,r)),!0},[]),d=g.useCallback((e,t)=>{u(e)&&(Ece(iqe({actionType:t,behavior:b8.BEHAVIORS.CONTENT_INTERACTION,id:b8.IDS.AI_HOVER_MANUAL,cT:b8.CONTENT_TYPES.FREEFORM_PROMPT_SUBMIT})),o(""))},[u]),f=g.useCallback((e,t)=>{u(e.value)&&Ece(iqe({actionType:t,behavior:b8.BEHAVIORS.CONTENT_INTERACTION,id:b8.IDS.AI_HOVER_CANNED,cT:b8.CONTENT_TYPES.CANNED_PROMPT_BUTTON,ecn:e.label,cN:e.label}))},[u]),h=g.useCallback(e=>{Ece(iqe({actionType:e,behavior:b8.BEHAVIORS.CHAT_CLOSE,id:b8.IDS.AI_HOVER_MINIMIZE,cT:b8.CONTENT_TYPES.CLOSEX,ecn:b8.COMPONENT_NAMES.HIDE_CHAT,cN:b8.COMPONENT_NAMES.HIDE_CHAT})),r(qS())},[r]);return i?p.jsx(oqe,{value:n,prompts:e,placeholderText:"Need help? Ask me a question",onValueChange:o,onSubmit:d,onPromptClick:f,onClose:h,isExiting:s,onExitAnimationEnd:c}):null},sqe=e=>{const t=document.querySelector(".uca-assistant-drawer-button");t&&(t.hidden=e)},lqe=({suppressed:e=!1})=>{const t=Pw(uT),r=g.useMemo(()=>WE(),[]),n=g.useMemo(()=>me.includes(r),[r]),o=!n&&t.length>0,i=ge.includes(r),a=window.location.hostname.includes("localhost")||window.location.hostname.includes("uca.local"),s=!e&&(i||n||a),{isDrawerOpen:l,setDrawerOpen:c}=ode(),[u,d]=g.useState(!1),f=g.useRef(null),h=g.useRef(null),m=g.useRef(null),v=g.useRef(null),y=g.useMemo(()=>"ai"===new URLSearchParams(window.location.search).get("exp"),[]),b=g.useMemo(()=>y?5e3:o?3e4:6e4,[y,o]);g.useEffect(()=>{if(!s)return void d(!1);const e=YE(),t=e?.hideProactiveChat;if(t||l)return void d(!1);const r=window.setTimeout(()=>{d(!0)},b);return()=>{window.clearTimeout(r)}},[s,b,l]),g.useEffect(()=>{l&&d(!1)},[l]),g.useEffect(()=>(sqe(u),u?(Ece({actionType:b8.ACTION_TYPES.AUTOMATIC,behavior:b8.BEHAVIORS.CHAT_OPEN,contentTags:{compnm:b8.COMPONENT_NAMES.AI_CHAT_PROACTIVE_POPUP,aN:b8.AREA_NAMES.PROACTIVE_MODAL,view:b8.VIEW.PROACTIVE,cT:b8.CONTENT_TYPES.PROACTIVE_MODAL,ehn:b8.HEADER_NAMES.ASK_MICROSOFT,hn:b8.HEADER_NAMES.ASK_MICROSOFT,ecn:b8.CONTENT_NAMES.PROACTIVE_MODAL,cN:b8.CONTENT_NAMES.CHAT_INVITE,id:b8.IDS.CHAT_APPEARANCE}}),v.current=document.activeElement instanceof HTMLElement?document.activeElement:null,window.setTimeout(()=>{f.current?.focus()},0)):v.current&&(v.current.focus(),v.current=null),()=>sqe(!1)),[u]),g.useEffect(()=>{if(!u||!o)return;const e=window.setTimeout(()=>{Ece({actionType:b8.ACTION_TYPES.AUTOMATIC,behavior:b8.BEHAVIORS.CHAT_CLOSE,contentTags:{aN:b8.AREA_NAMES.PROACTIVE_MODAL,compnm:b8.COMPONENT_NAMES.AI_CHAT_PROACTIVE_POPUP,hn:b8.HEADER_NAMES.ASK_MICROSOFT,ehn:b8.HEADER_NAMES.ASK_MICROSOFT,view:b8.VIEW.PROACTIVE,cT:b8.CONTENT_TYPES.PROACTIVE_MODAL,cN:b8.CONTENT_NAMES.CHAT_INVITE_TIMEOUT,id:b8.IDS.CHAT_TIMEOUT}}),d(!1)},9e4);return()=>{window.clearTimeout(e)}},[u,o]);const w=g.useCallback(()=>{KE({hideProactiveChat:!0}),d(!1)},[]),x=g.useCallback(e=>{e.preventDefault(),e.stopPropagation(),d(!1),KE({hideProactiveChat:!0}),c(!0)},[c]),S=g.useCallback(e=>{if("Tab"!==e.key)return;const t=[f.current,h.current,m.current].filter(e=>Boolean(e));if(0===t.length)return;const r=t[0],n=t[t.length-1];e.shiftKey?document.activeElement===r&&(e.preventDefault(),n?.focus()):document.activeElement===n&&(e.preventDefault(),r?.focus())},[]);return s?u&&p.jsxs("div",{id:"uca-proactive-chat",className:"uca-proactive-chat animation animation--effect-2"+(o?" uca-proactive-chat--compact":""),role:"dialog","aria-live":"polite","aria-labelledby":"uca-proactive-chat-heading","data-popup-delay":b,onKeyDown:S,children:[p.jsxs("div",{className:"uca-proactive-chat__header",children:[p.jsx("h3",{className:"uca-proactive-chat__header__title",children:"Ask Microsoft"}),p.jsx("button",{ref:f,type:"button",className:"btn btn--icon-only btn--secondary","aria-label":"Close this invitation to chat","aria-controls":"uca-proactive-chat",onClick:w,"data-bi-cn":b8.CONTENT_NAMES.CHAT_INVITE_DECLINE,"data-bi-bhvr":b8.BEHAVIORS.CHAT_CLOSE,"data-bi-compnm":b8.COMPONENT_NAMES.AI_CHAT_PROACTIVE_POPUP,"data-bi-id":b8.IDS.CHAT_DISENGAGEMENT,"data-bi-an":b8.AREA_NAMES.PROACTIVE_MODAL,"data-bi-hn":b8.HEADER_NAMES.ASK_MICROSOFT,"data-bi-ehn":b8.HEADER_NAMES.ASK_MICROSOFT,"data-bi-ecn":b8.CONTENT_NAMES.X,"data-bi-ct":b8.CONTENT_TYPES.CLOSEX,"data-bi-view":b8.VIEW.PROACTIVE,children:p.jsx("span",{className:"glyph-close","aria-hidden":"true",children:p.jsx(QVe,{})})})]}),p.jsx("div",{className:"uca-proactive-chat__body",children:p.jsxs("div",{className:"block-feature",children:[p.jsx("div",{className:"block-feature__top ",children:p.jsx("div",{className:"block-feature__headings",children:p.jsx("h4",{className:"block-feature__title",id:"uca-proactive-chat-heading",children:p.jsx("span",{children:"I'm an AI agent, ready to help"})})})}),p.jsxs("div",{className:"block-feature__body",children:[p.jsx("div",{className:"block-feature__paragraph",children:p.jsx("div",{children:"Get instant answers, personalized guidance, or connect with a sales representative."})}),p.jsx("div",{className:"block-feature__footer",children:p.jsxs("div",{className:"button-group",children:[p.jsx("button",{ref:h,type:"button",className:"btn uca-open-chat","aria-controls":"unified-chat-assistant","aria-expanded":l,onClick:x,"data-bi-cn":b8.CONTENT_NAMES.CHAT_INVITE_ACCEPT,"data-bi-bhvr":b8.BEHAVIORS.CHAT_INITIATE,"data-bi-compnm":b8.COMPONENT_NAMES.AI_CHAT_PROACTIVE_POPUP,"data-bi-id":b8.IDS.CHAT_ENGAGEMENT,"data-bi-an":b8.AREA_NAMES.PROACTIVE_MODAL,"data-bi-hn":b8.HEADER_NAMES.ASK_MICROSOFT,"data-bi-ehn":b8.HEADER_NAMES.ASK_MICROSOFT,"data-bi-ecn":b8.CONTENT_NAMES.ASK_NOW,"data-bi-ct":b8.CONTENT_TYPES.BUTTON,"data-bi-sn":b8.STEP_NUMBERS.ONE,"data-bi-view":b8.VIEW.PROACTIVE,children:p.jsx("div",{className:"btn__text",children:"Ask now"})}),!o&&p.jsx("button",{ref:m,type:"button",className:"btn btn--secondary uca-close-link","aria-controls":"uca-proactive-chat","aria-label":"Cancel this invitation to chat",onClick:w,"data-bi-cn":b8.CONTENT_NAMES.CHAT_INVITE_DECLINE,"data-bi-bhvr":b8.BEHAVIORS.CHAT_CLOSE,"data-bi-compnm":b8.COMPONENT_NAMES.AI_CHAT_PROACTIVE_POPUP,"data-bi-id":b8.IDS.CHAT_DISENGAGEMENT,"data-bi-an":b8.AREA_NAMES.PROACTIVE_MODAL,"data-bi-hn":b8.HEADER_NAMES.ASK_MICROSOFT,"data-bi-ehn":b8.HEADER_NAMES.ASK_MICROSOFT,"data-bi-ecn":b8.CONTENT_NAMES.NO_THANKS,"data-bi-ct":b8.CONTENT_TYPES.BUTTON,"data-bi-sn":b8.STEP_NUMBERS.TWO,"data-bi-view":b8.VIEW.PROACTIVE,children:p.jsx("span",{className:"link__text",children:"No thanks"})})]})})]})]})})]}):null},cqe={featureFlag:ce,reportsAnzExperiment:!0},uqe={"en-gb":{featureFlag:ue,reportsAnzExperiment:!1},"en-in":{featureFlag:ue,reportsAnzExperiment:!1}},dqe="UCA",fqe="Features Orchestrator",hqe="ANZ Expansion",pqe="20260922-W027-ANZ expansion",mqe="50%",gqe=()=>"undefined"==typeof document?[]:Array.from(document.querySelectorAll('[ocr-component-name="chatgpt-banner"]')).filter(e=>e instanceof HTMLElement),vqe=e=>{e.forEach((e,t)=>{((e,t)=>{t.hidden?e.setAttribute("hidden",""):e.removeAttribute("hidden"),null===t.ariaHidden?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t.ariaHidden),t.inlineDisplay?e.style.display=t.inlineDisplay:e.style.removeProperty("display")})(t,e)}),e.clear()},yqe=e=>{const t=g.useRef(new Map);g.useEffect(()=>{if("undefined"==typeof document||"undefined"==typeof MutationObserver)return;const r=t.current;if(!e)return vqe(r),void gqe().forEach(e=>e.removeAttribute("hidden"));let n;const o=()=>{n=void 0,"undefined"!=typeof document&&gqe().forEach(e=>((e,t)=>{t.has(e)||t.set(e,{ariaHidden:e.getAttribute("aria-hidden"),hidden:e.hasAttribute("hidden"),inlineDisplay:e.style.display}),e.hasAttribute("hidden")||e.setAttribute("hidden",""),"true"!==e.getAttribute("aria-hidden")&&e.setAttribute("aria-hidden","true"),"none"!==e.style.display&&(e.style.display="none")})(e,r))},i=()=>{"undefined"!=typeof window&&(n||(n=(e=>{if("undefined"==typeof window)return()=>{};if("function"==typeof window.requestAnimationFrame){const t=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(t)}const t=window.setTimeout(e,0);return()=>window.clearTimeout(t)})(o)))};i();const a=document.documentElement,s=new MutationObserver(i);return s.observe(a,{attributeFilter:["aria-hidden","class","hidden","ocr-component-name","style"],attributes:!0,childList:!0,subtree:!0}),()=>{s.disconnect(),n?.(),vqe(r)}},[e])},bqe="waa-geo-exp-hide-contactsales",wqe=()=>{document.getElementById(bqe)?.remove()},xqe=e=>{const t=document.querySelector(".ai-chat-banner");t&&(e&&!t.classList.contains("d-none")?t.classList.add("d-none"):!e&&t.classList.contains("d-none")&&t.classList.remove("d-none"))},Sqe=e=>{const t=document.querySelector("#web-ai-assistant-experience #waaModern");t instanceof HTMLElement&&t.hidden!==e&&(t.hidden=e)},kqe=(e,t,r,n)=>{g.useEffect(()=>{e&&r&&"undefined"!=typeof document&&(t?(xqe(n),Sqe(!1),(()=>{if(document.getElementById(bqe))return;const e=document.createElement("style");e.id=bqe,e.textContent=`${WRe.join(", ")} { display: none !important; }`,document.head.appendChild(e)})()):(xqe(!0),Sqe(!0),wqe()))},[e,t,r,n]),g.useEffect(()=>()=>{"undefined"!=typeof document&&wqe()},[])},Eqe=()=>Date.now().toString()+"-"+Math.random().toString(36).substring(2,15),Tqe={isInitialized:!1,isSessionEnded:!1,sessionId:Eqe()};function _qe(e,t){switch(t.type){case"INITIALIZE_TELEMETRY":return{...e,isInitialized:!0};case"END_SESSION":return{...e,isSessionEnded:!0};case"RESET_SESSION":return{...Tqe,sessionId:Eqe()};default:return e}}const Cqe=new Map,Aqe=["unifiedChatAssistant","unified-chat-assistant","uca-","chat-assistant","/src/","components/","middleware/","plugins/","shared/","hooks/","directline","liveperson"];function Iqe(e){return function(e={}){const{filterComponentErrors:t=!0,componentIdentifiers:r=Aqe,namespace:n="UnifiedChatAssistant",enhancedMode:o=!1,enableDeduplication:i=!0,disableHandlers:a=!0}=e;if(a)return()=>{};function s(e,n,o){if(!t)return!0;const i=`${n||e?.stack||""}\n${e?.message||String(e)}\n${o||""}`;return r.some(e=>i.toLowerCase().includes(e.toLowerCase()))}function l(e){if(!i)return!1;const t=Date.now();if(t-(Cqe.get(e)||0)<3e4)return!0;Cqe.set(e,t);for(const[r,n]of Cqe)t-n>3e4&&Cqe.delete(r);return!1}function c(e,t,r){if(o){const o=new bye(`${r}: ${e.message}`,e,{operation:r.toLowerCase().replace(/\s+/g,""),component:n,url:window.location.href,userAgent:navigator.userAgent,metadata:{...t,namespace:n,documentReadyState:document.readyState,activeElementTag:document.activeElement?.tagName||"none"}});L7.trackException({exception:e,severityLevel:fV.Error,properties:{...t,enhancedErrorType:r,originalMessage:e.message,enhancedMessage:o.message,component:n,enhancedStack:o.stack||"unknown",enhancedName:o.name,capturedAt:o.capturedAt,buildVersion:o.buildInfo?.version||"unknown",buildMode:o.buildInfo?.mode||"unknown"}}),R.group(`🚨 [${n}] ${r}`),R.error("Enhanced Error:",o),R.error("Original Error:",e),R.error("Context:",t),R.error("Parsed Stack:",o.parsedStack),R.error("Build Info:",o.buildInfo),R.error("Execution Context:",o.executionContext),R.groupEnd()}else L7.trackException({exception:e,severityLevel:fV.Error,properties:{...t,component:n,errorType:r.replace(/\s+/g,"")}})}const u=e=>{try{const t=e.error instanceof Error?e.error:new Error(e.message||"Unhandled script error");if(!s(t,t.stack,e.filename))return;if(l(`${t.name}:${t.message}:${e.filename}:${e.lineno}:${e.colno}`))return;c(t,{source:"window.error",filename:e.filename||"unknown",line:e.lineno?.toString()||"unknown",column:e.colno?.toString()||"unknown",eventType:e.type},"Uncaught JavaScript Error")}catch{}},d=e=>{try{const t=e.reason;let r;if(r=t instanceof Error?t:"string"==typeof t?new Error(t):new Error("Unhandled promise rejection"),!s(r,r.stack))return;if(l(`rejection:${r.name}:${r.message}`))return;let n="unknown";try{n=t&&"object"==typeof t?"stack"in t?"error_with_stack":"message"in t?"error_like_object":"non_error_object":typeof t}catch{n="inspection_failed"}c(r,{source:"window.unhandledrejection",reasonType:typeof t,promiseOrigin:n,eventType:e.type},"Unhandled Promise Rejection")}catch{}},f=`${n}_unifiedErrorHandlers`;return window[f]||(window.addEventListener("error",u),window.addEventListener("unhandledrejection",d),window[f]={errorHandler:u,rejectionHandler:d,cleanup:()=>{window.removeEventListener("error",u),window.removeEventListener("unhandledrejection",d),delete window[f]}}),()=>{const e=window[f];e&&e.cleanup()}}({filterComponentErrors:!0,componentIdentifiers:Aqe,namespace:"UnifiedChatAssistant",enhancedMode:!1,enableDeduplication:!0,disableHandlers:e??!0})}const Pqe=["sites-author.adobeprod.microsoft.com","sites-author.adobeppe.microsoft.com","sites-author.adobestg.microsoft.com","sites-author.adobedev.microsoft.com","author-p147723-e1510601.adobeaemcloud.com","golf-author.adobeprod.microsoft.com","author-p147723-e1510635.adobeaemcloud.com","golf-author.adobestg.microsoft.com","author-p147723-e1520828.adobeaemcloud.com","golf-author.adobeppe.microsoft.com","author-p147723-e1510634.adobeaemcloud.com","golf-author.adobedev.microsoft.com","echo-author.adobeprod.microsoft.com","echo-author.adobeppe.microsoft.com","echo-author.adobestg.microsoft.com"],Nqe={"/content/microsoft/bade":"www.microsoft.com","/content/azure/acom":"azure.microsoft.com"},Bqe={"wwwdev.microsoft.com":"www.microsoft.com","wwwppe.microsoft.com":"www.microsoft.com","wwwqa.microsoft.com":"www.microsoft.com","origin.azureppe.microsoft.com":"azure.microsoft.com","origin.azureprod.microsoft.com":"azure.microsoft.com"},Oqe={"sr-rs":["sr-rs","sr-latn-rs","sr-cyrl-rs"]},Dqe=(e,t="")=>(e??t).toLowerCase(),Rqe=e=>{const t=Dqe(location.hostname),r=Dqe(location.pathname,"/"),n=Boolean(e.previews)&&Pqe.includes(t);let o=Bqe[t]??t,i=r;if(n){const e=(e=>e.replace(/\/content\/launches(\/[^/]+){4}/g,""))(r),t=(e=>Object.keys(Nqe).find(t=>e.startsWith(t)))(e),n=t?Nqe[t]:void 0;if(!t||!n)return!1;o=n;i=e.replace(t,"").replace(/\.html$/,"")}const a=e.localeFromUrl?tT(i):Dqe(document.documentElement?.lang,"en-us"),s=(e=>Oqe[e]??[e])(a),l=((e,t)=>{const r=e.toLowerCase(),n=t.map(e=>`/${e}`).find(e=>r.startsWith(e)),o=n?r.replace(n,""):r;return(i=o).endsWith("/")&&i.length>1?i.slice(0,-1):i;var i})(i,s),c=((e,t,r)=>{const n=t.split("-")[0],o=Dqe(new URLSearchParams(r).get("market"));return o&&!1!==e?`${n}-${o}`:t})(e.marketAware,a,location.search),u=e[o];if("object"!=typeof u||null===u)return!1;if(u.markets?.length&&!u.markets.includes(c))return!1;if(u.paths?.length){const e=u.paths.includes(l),t=!0===u.allSubpaths&&((e,t)=>t.some(t=>t&&e.startsWith(t)))(l,u.paths);if(!e&&!t)return!1}return!0},Mqe=e=>({id:"copilot-business",assignmentFlag:he,eligibility:{kind:"pageScope",scope:{"www.microsoft.com":{paths:["/copilot/work/business","/copilot/pricing/business-b"],markets:["en-us"]},previews:!0,marketAware:!1,localeFromUrl:!0}},variant:{desktopPresentation:"banner-with-prompts",mobilePresentation:"standard-launcher",prompts:[{label:"How do others use Copilot?",value:"Show me customer stories for three small and medium businesses who have used Microsoft 365 Copilot to improve their business operations and reduce manual burdens"},{label:"Can I try Copilot first?",value:"Does Business Standard + Copilot with Teams have a trial?"}],suppressProactive:!0},control:"no-assistant",fallback:"no-assistant",telemetry:{engine:"Features Orchestrator",name:"Floating Banner Copilot",variationId:"20261022-W141-Floating Banner",status:"50%",exposureKey:"experiment-exposure-copilot-business",variantContentName:b8.CONTENT_NAMES.AI_COPILOT_BUSINESS_FLOATING_BANNER,controlContentName:b8.CONTENT_NAMES.AI_COPILOT_BUSINESS_NO_ASSISTANT,variantEvent:JV,controlEvent:QV}}),zqe=[Mqe()];zqe.find(({id:e})=>"copilot-business"===e)??Mqe();const jqe=(e,t)=>$Re(t)?((e,t)=>{const r=(e=>{const t=e?.trim().toLowerCase();return t||null})(t),n=e.find(e=>((e,t)=>"partnerId"===e.eligibility.kind&&null!==t&&e.eligibility.partnerIds.some(e=>e.toLowerCase()===t))(e,r));return n||(e.find(e=>"pageScope"===e.eligibility.kind&&Rqe(e.eligibility.scope))??null)})(zqe,e):null,Lqe=({options:e,onNoWaa:t})=>{const r=Kw(),n=Pw(US),o=Pw(e=>e.drawerControls.isDrawerOpen),[i]=g.useState(Date.now()),{isInitialized:a,initializeTelemetryIfNeeded:s,endSession:l}=function(){const[e,t]=g.useReducer(_qe,Tqe),r=g.useCallback(()=>{e.isInitialized||(r8(),t({type:"INITIALIZE_TELEMETRY"}))},[e.isInitialized,e.sessionId]),n=g.useCallback(()=>{e.isSessionEnded||t({type:"END_SESSION"})},[e.isSessionEnded,e.sessionId]),o=g.useCallback(()=>{t({type:"RESET_SESSION"})},[]);return{isInitialized:e.isInitialized,isSessionEnded:e.isSessionEnded,sessionId:e.sessionId,initializeTelemetryIfNeeded:r,endSession:n,resetSession:o}}(),[c,u]=g.useState(!1),[d,f]=g.useState(!1),[h,m]=g.useState(!1),[v,y]=g.useState(!1),[b]=g.useState(()=>((e,t)=>{if(!e||!$Re(t))return null;const r=e.trim().toLowerCase();return Object.prototype.hasOwnProperty.call(pe,r)?pe[r]??null:null})(e?.partnerId)),w=b?.featureFlag??"",[x,S]=g.useState(!1),[k,E]=g.useState(null),[T,_]=g.useState("baseline"),C=Zue(),A=null===k||"baseline"===T?null:"variant"===T?C?k.variant.mobilePresentation:k.variant.desktopPresentation:"control"===T?k.control:k.fallback,I="banner-with-prompts"===A||"banner-no-prompts"===A,P="variant"===T&&Boolean(k?.variant.suppressProactive);yqe(I);const{isNoAssistantTeardownSafe:N}=((e,t,r)=>{const n=g.useRef(!1),o=g.useRef(!1),[i,a]=g.useState(!1);return g.useEffect(()=>{if(!e||!(e=>"variant"===e||"control"===e||"fallback"===e)(t))return;const s="variant"!==t,l="variant"===t?e.telemetry.variantContentName:e.telemetry.controlContentName,c="variant"===t?e.telemetry.variantEvent:e.telemetry.controlEvent;if(n.current||(n.current=!0,Tce(e.telemetry.exposureKey,{actionType:b8.ACTION_TYPES.RESIZE,behavior:b8.BEHAVIORS.CONTENT_UPDATE,pageTags:{metaTags:{[b8.EXPERIMENT_FIELDS.EXPENG]:e.telemetry.engine,[b8.EXPERIMENT_FIELDS.EXPNM]:e.telemetry.name,[b8.EXPERIMENT_FIELDS.VRID]:e.telemetry.variationId,[b8.EXPERIMENT_FIELDS.VRNM]:t,[b8.EXPERIMENT_FIELDS.EXPST]:e.telemetry.status}},content:{cN:l,ecn:l}})),s&&!i&&a(!0),!r||o.current)return;o.current=!0;const u=K7().getFallbackType();M7({name:c,properties:{component:"UnifiedChatAssistant",orchestrationOwner:dqe,variationName:t,fallbackType:u??"unknown",featureFlag:e.assignmentFlag,experimentName:e.telemetry.name,variationId:e.telemetry.variationId}}),j7()},[t,e,i,r]),{isNoAssistantTeardownSafe:i}})("baseline"===T?null:k,T,a),[B]=g.useState($Re),[O]=g.useState(GRe),D=tT(),R=(e=>"en-us"===e||"en-au"===e||"en-nz"===e)(D),M=(e=>Object.prototype.hasOwnProperty.call(uqe,e)?uqe[e]??cqe:cqe)(D),z="baseline"===T?!B||(w?x:R||v):"no-assistant"!==A,F=d&&z;kqe(B,z,d,I),((e,t,r,n,o,i,a=cqe,s="")=>{const l=g.useRef(!1);g.useEffect(()=>{if(!e||!t||!o||l.current)return;if(l.current=!0,n)return void M7({name:WV,properties:{component:"UnifiedChatAssistant",orchestrationOwner:dqe}});const c=K7().getFallbackType(),u="NONE"!==c?b8.VARIANT_NAMES.FALLBACK:r?b8.VARIANT_NAMES.VARIANT:b8.VARIANT_NAMES.CONTROL,d=r?$V:i?GV:YV,f=r?b8.CONTENT_NAMES.AI_ASSISTANT_GEO_EXPANSION_MODERN:i?b8.CONTENT_NAMES.AI_ASSISTANT_GEO_EXPANSION_LEGACY:b8.CONTENT_NAMES.AI_ASSISTANT_GEO_EXPANSION_NO_ASSISTANT;M7({name:d,properties:{component:"UnifiedChatAssistant",orchestrationOwner:dqe,variationName:u,fallbackType:c??"unknown",featureFlag:a.featureFlag,locale:s||"unknown"}}),a.reportsAnzExperiment&&Tce("experiment-exposure-anz",{actionType:b8.ACTION_TYPES.RESIZE,behavior:b8.BEHAVIORS.CONTENT_UPDATE,pageTags:{metaTags:{[b8.EXPERIMENT_FIELDS.EXPENG]:fqe,[b8.EXPERIMENT_FIELDS.EXPNM]:hqe,[b8.EXPERIMENT_FIELDS.VRID]:pqe,[b8.EXPERIMENT_FIELDS.VRNM]:u,[b8.EXPERIMENT_FIELDS.EXPST]:mqe}},content:{cN:f,ecn:f}})},[e,t,r,n,o,i,a,s])})(B&&!w&&"baseline"===T,d,z,R,a,O,M,D),((e,t,r,n,o)=>{const i=g.useRef(!1);g.useEffect(()=>{if(!e||!o||!t||!n||i.current)return;i.current=!0;const a=K7().getFallbackType(),s="NONE"!==a?b8.VARIANT_NAMES.FALLBACK:r?b8.VARIANT_NAMES.VARIANT:b8.VARIANT_NAMES.CONTROL;M7({name:r?KV:XV,properties:{component:"UnifiedChatAssistant",orchestrationOwner:dqe,variationName:s,fallbackType:a??"unknown",featureFlag:o.featureFlag,experimentName:o.name,variationId:o.variationId}}),j7();const l=r?b8.CONTENT_NAMES.AI_AZURE_PRICING_EXPERIMENT_MODERN:b8.CONTENT_NAMES.AI_AZURE_PRICING_EXPERIMENT_LEGACY;Tce("experiment-exposure-host",{actionType:b8.ACTION_TYPES.RESIZE,behavior:b8.BEHAVIORS.CONTENT_UPDATE,pageTags:{metaTags:{[b8.EXPERIMENT_FIELDS.EXPENG]:o.engine,[b8.EXPERIMENT_FIELDS.EXPNM]:o.name,[b8.EXPERIMENT_FIELDS.VRID]:o.variationId,[b8.EXPERIMENT_FIELDS.VRNM]:s,[b8.EXPERIMENT_FIELDS.EXPST]:o.status}},content:{cN:l,ecn:l}})},[e,t,r,n,o])})(B&&Boolean(w),d,z,a,b);const V=YE()?.ocrAIChatDrawerState===OE,q=o||V;g.useEffect(()=>{const t=e||ye;r(KC(t.theme)),r(GS(t))},[r,e]),g.useEffect(()=>{if(!I)return void m(!1);const e=window.setTimeout(()=>{m(!0)},2e3);return()=>{window.clearTimeout(e)}},[I]),g.useEffect(()=>{s();const t=Iqe((e||ye).disableUnhandledErrorHandlers);K7().initialize().then(()=>{const t=K7().isFeatureEnabled(oe);r(sT(t));const n=K7().isFeatureEnabled(ae),o=K7().getFallbackType();if(y(!w&&!R&&"NONE"===o&&K7().isFeatureEnabled(M.featureFlag)),w&&S("NONE"===o&&K7().isFeatureEnabled(w)),n&&B&&!b){const t=jqe(e?.partnerId);if(t){const e="NONE"!==o?"fallback":K7().isFeatureEnabled(t.assignmentFlag)?"variant":"control";E(t),_(e)}}const i=K7().isFeatureEnabled(ie),a=K7().isFeatureEnabled(le),s=K7().isFeatureEnabled(fe);r(ZS(s));const l=K7().getEnabledVariants();M7({name:FV,properties:{component:"UnifiedChatAssistant",[ae]:n.toString(),[ie]:i.toString(),[le]:a.toString(),[fe]:s.toString(),isMobileViewport:C.toString(),variantCount:l.length.toString(),fallbackType:o??"unknown"}})}).catch(t=>{if(r(sT(!1)),r(ZS(!1)),K7().isFeatureEnabled(ae)&&B&&!b){const t=jqe(e?.partnerId);t&&(E(t),_("fallback"))}u8(VV)}).finally(()=>{f(!0)});const n=()=>{c8(Date.now()-i),u8(vV),l(),u(!1),h8()};return window.addEventListener("beforeunload",n),u(!0),()=>{window.removeEventListener("beforeunload",n),t()}},[]);g.useEffect(()=>{c&&d&&n8()},[c,d]),g.useEffect(()=>{c&&F&&kce("assistant-load",{actionType:"A",behavior:b8.BEHAVIORS.CHAT_TOGGLE,contentTags:{aN:b8.AREA_NAMES.AI_CHAT_DRAWER,cN:b8.CONTENT_NAMES.AI_ASSISTANT_LOAD,ecn:b8.CONTENT_NAMES.AI_ASSISTANT_LOAD,compnm:b8.COMPONENT_NAMES.AI_ASSISTANT,hn:b8.HEADER_NAMES.AI_POWERED_ASSISTANT,ehn:b8.HEADER_NAMES.AI_POWERED_ASSISTANT,view:b8.VIEW.AI_CHAT_DRAWER}})},[c,F]);const H=g.useRef(!1);return g.useEffect(()=>{!B||!d||z||"baseline"!==T&&!N||H.current||(H.current=!0,t?.())},[B,d,z,T,N,t]),p.jsx(hu,{theme:e?.theme===j.Night?ou:nu,children:p.jsx("div",{className:e?.theme===j.Night?"theme-night":"theme-day",children:F&&(()=>{switch(e?.mode||L.Drawer){case L.Drawer:{const e=!(I&&n),t=I&&h&&!q;return p.jsxs(p.Fragment,{children:[e&&p.jsx(exe,{}),p.jsx(tqe,{}),p.jsx(lqe,{suppressed:P}),t&&p.jsx(aqe,{prompts:"banner-with-prompts"===A?k?.variant.prompts:void 0})]})}case L.Sidecar:case L.Fullscreen:default:return p.jsx(rqe,{})}})()})})},Fqe=({options:e,onNoWaa:t})=>p.jsx(nqe,{onError:(e,t)=>{R.error("UnifiedChatAssistant Error:",e,t),Dwe.dispatch(dV.logTelemetry(`UnifiedChatAssistant Error: error: ${e}; errorInfo: ${JSON.stringify(t)}`))},store:Dwe,children:p.jsx(Ww,{store:Dwe,children:p.jsx(Lqe,{options:e,onNoWaa:t})})});const Vqe=((e,t=window)=>{const r=t.location.hostname;if(!O(r,e))return{allowed:!1,reason:`Unauthorized domain: "${r}". Unified Chat Assistant is not permitted to run on this domain.`};try{if(t.top!==t.self){const r=t.top.location.hostname;if(!O(r,e))return{allowed:!1,reason:`Unauthorized top-level domain: "${r}". UCA cannot be embedded in an iframe on this domain.`}}}catch{return{allowed:!1,reason:"Cross-origin iframe embedding detected. UCA cannot verify the parent domain."}}return{allowed:!0}})(["microsoft.com","azure.com","adobeaemcloud.com","localhost","azurewebsites.net"]);if(!Vqe.allowed)throw new Error(`[UCA] ${Vqe.reason}`);const{logError:qqe}=R.withKind("entrypoint");let Hqe=document.querySelector("#unified-chat-assistant"),Uqe=ye;if(Hqe&&Hqe.hasAttribute("options"))try{const e=Hqe.getAttribute("options");if(e){const t=JSON.parse(e);"object"==typeof t&&null!==t?Uqe={...Uqe,...t}:qqe("Parsed options is not an object:",t)}}catch(Wqe){qqe("Failed to parse options:",Wqe)}if(Uqe.mode==L.Sidecar){let e=document.querySelector("body");e&&e.classList.add("uca-sidecar-mode","uca-open")}if(Hqe){const e=Hqe,t=B.createRoot(e),r=()=>{queueMicrotask(()=>{t.unmount(),e.remove(),Uqe.mode===L.Sidecar&&document.body.classList.remove("uca-sidecar-mode","uca-open")})};t.render(p.jsx(v.StrictMode,{children:p.jsx(Fqe,{options:Uqe,onNoWaa:r})}))}else qqe('Chat element not found. Please ensure the element with id "unified-chat-assistant" exists in the DOM.');
//# sourceMappingURL=uca.mjs.map
