// Universal Chat Assistant
// Build Date: 2026-02-11T14:06:41.700Z
// Commit: b8bf320a8c2c6f0b41d6df5a512734a8fb20a196
// Build Number: 20260211.2

!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: .75rem;--ds-body-xs-font-weight: 400;--ds-body-xs-line-height: 1rem;--ds-body-xs-letter-spacing: -.01em;--ds-body-s-font-size: .875rem;--ds-body-s-font-weight: 400;--ds-body-s-line-height: 1.25rem;--ds-body-s-letter-spacing: -.02em;--ds-body-m-font-size: 1rem;--ds-body-m-font-weight: 400;--ds-body-m-line-height: 1.5rem;--ds-body-m-letter-spacing: -.03em;--ds-heading-xs-font-size: 1.125rem;--ds-heading-xs-font-weight: 600;--ds-heading-xs-line-height: 1.4rem;--ds-heading-xs-letter-spacing: 0em;--ds-heading-s-font-size: 1.25rem;--ds-heading-s-font-weight: 600;--ds-heading-s-line-height: 1.4rem;--ds-heading-s-letter-spacing: 0em;--ds-heading-m-font-size: 1.375rem;--ds-heading-m-font-weight: 600;--ds-heading-m-line-height: 1.35rem;--ds-heading-m-letter-spacing: -.005em;--ds-heading-l-font-size: 1.625rem;--ds-heading-l-font-weight: 700;--ds-heading-l-line-height: 1.3rem;--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}@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-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-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}.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:1!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[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-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}.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 0 auto!important;width:auto!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}.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)}/*!\n * Reimagine WC Theming v11.0.2\n * OneCloud Reimagine v0.256.0\n * MWF (Moray) v2.8.1\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Copyright 2011-2020 The Bootstrap Authors and Twitter, Inc.\n */#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}.glyph-add svg{fill:var(--ds-theme-foreground-accent-strong-normal)}@media (forced-colors: active){.glyph-add svg{fill:var(--ds-theme-foreground-base-icon)}}.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}.uca-typing-indicator{display:flex;align-items:center;margin:8px 0;max-width:120px;position:relative;overflow:hidden}.uca-typing-dots{display:flex;align-items:center;gap:6px;position:relative;z-index:2}.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}@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)}}.uca-typing-indicator: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-indicator:before{display:none}.uca-typing-dots span.dot,.uca-typing-dots span.dash{background:ButtonText!important;border:1px solid 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-indicator:before{display:none}}@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-indicator:before{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-chat-history__proactive-overlay{position:static;pointer-events:none}.uca-chat-history__proactive-prompts{pointer-events:auto;background:var(--ds-theme-background-base);border-radius:12px;padding:20px;margin:0;animation:proactive-slide-up .3s ease-out}@keyframes proactive-slide-up{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.uca-chat-history{position:relative}.uca-chat-history__proactive-prompts .uca-starter-prompts__header{margin-bottom:16px}.uca-chat-history__proactive-prompts .uca-starter-prompts__instruction{font-size:14px;color:var(--ds-theme-text-secondary);margin:0}.uca-chat-history__proactive-prompts .uca-starter-prompts__grid{gap:8px}.uca-chat-history__proactive-prompts .uca-starter-prompts__button{background:var(--ds-theme-background-base);border:1px solid var(--ds-theme-border-base);color:var(--ds-theme-text-primary);font-size:13px;padding:10px 16px;border-radius:20px;transition:all .2s ease}.uca-chat-history__proactive-prompts .uca-starter-prompts__button:hover{background:var(--ds-theme-background-hover);border-color:var(--ds-theme-border-hover);transform:translateY(-1px);box-shadow:var(--ds-elevation-level-3)}.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);stroke-width:1.5;stroke:var(--ds-theme-foreground-base-icon)}.uca-feedback-thumb-button:focus,.uca-feedback-thumb-button:focus-visible{outline:2px solid var(--ds-theme-border-accent-strong-normal, #0078d4);outline-offset:2px;border-radius:4px}.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{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:flex-end;justify-content:flex-end;width:100%}.uca-chat-suggested-actions>:first-child:not(:only-child){margin-right:8px!important}.uca-chat-suggested-action-button{border:1px solid;border-radius:8px!important;font-size:12px;font-weight:400;padding:4px 8px;background-color:var(--ds-theme-chat-suggested-action-background, #ffffff);color:var(--ds-theme-chat-suggested-action-color, #0078d4);border-color:var(--ds-theme-chat-suggested-action-border, #0078d4);margin-bottom:10px!important}.uca-chat-suggested-action-button:hover{background-color:var( --ds-theme-chat-suggested-action-background-hover, #f0f2f5 )!important;color:var(--ds-theme-chat-suggested-action-color-hover, #106ebe)!important;border-color:var(--ds-theme-chat-suggested-action-border-hover, #106ebe)!important}.uca-chat-suggested-action-button:focus,.uca-chat-suggested-action-button:focus-visible{outline:2px solid var(--ds-theme-border-accent-strong-normal, #0078d4);outline-offset:2px}.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-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{display:flex;flex-direction:column;gap:var(--ds-spacing-xs);padding:var(--ds-spacing-xs);max-width:100%;margin-left:auto;align-items:flex-end}.uca-proactive-prompts__header{margin-bottom:var(--ds-spacing-2xs);text-align:right}.uca-proactive-prompts__instruction{font-size:var(--ds-body-xs-font-size);font-weight:var(--ds-body-xs-font-weight);line-height:var(--ds-body-xs-line-height);color:var(--ds-theme-foreground-neutral-subtle);margin:0;text-align:right}.uca-proactive-prompts__grid{display:flex;flex-direction:column;gap:var(--ds-spacing-2xs);align-items:flex-end;max-width:300px}.uca-proactive-prompts__button{background:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke2);border-radius:var(--ds-radii-l);padding:var(--ds-spacing-xs) var(--ds-spacing-s);cursor:pointer;transition:all .2s ease;text-align:center;min-height:32px;display:flex;align-items:center;justify-content:flex-end;position:relative;overflow:hidden;font-size:var(--ds-body-xs-font-size);max-width:fit-content}.uca-proactive-prompts__button:hover{background:var(--colorNeutralBackground1Hover);border-color:var(--colorBrandStroke1);box-shadow:var(--ds-elevation-level-2)}.uca-proactive-prompts__button:active{transform:scale(.98);box-shadow:var(--ds-elevation-level-1)}.uca-proactive-prompts__button:focus-visible{outline:var(--ds-border-width-s) solid var(--colorBrandBackground);outline-offset:var(--ds-border-width-s);border-color:var(--colorBrandStroke1)}.uca-proactive-prompts__button-text{font-size:var(--ds-body-xs-font-size);font-weight:var(--ds-action-button-font-weight);line-height:var(--ds-body-xs-line-height);color:var(--ds-theme-foreground-accent-subtle-normal);text-align:right;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}@media (min-width: 768px){.uca-proactive-prompts{padding:var(--ds-spacing-l)}.uca-proactive-prompts__grid{flex-direction:column;gap:var(--ds-spacing-xs);align-items:flex-end;max-width:350px}.uca-proactive-prompts__button{min-height:36px;padding:var(--ds-spacing-s) var(--ds-spacing-m);max-width:fit-content}.uca-proactive-prompts__button-text{font-size:var(--ds-body-s-font-size)}}.uca-proactive-prompts__button{animation:fadeInUp .6s ease forwards;opacity:0;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{to{opacity:1;transform:translateY(0)}}.uca-proactive-prompts__button:hover{box-shadow:var(--ds-elevation-level-2)}.uca-proactive-prompts__button:active{box-shadow:var(--ds-elevation-level-1)}@media (prefers-contrast: high){.uca-proactive-prompts__button,.uca-proactive-prompts__button:hover{border-width:var(--ds-border-width-s)}}@media (prefers-reduced-motion: reduce){.uca-proactive-prompts__button{animation:none;opacity:1;transform:none;transition:none}.uca-proactive-prompts__button:hover,.uca-proactive-prompts__button:active{transform:none}}.uca-chat-message{font-size:var(--ds-body-s-font-size, .875rem)}.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 small{color:var(--ds-theme-chat-timestamp-color, #6c757d)}.uca-chat-message-user .uca-chat-message-timestamp{flex-direction:row-reverse}.uca-chat-message small{font-weight:var(--ds-body-xs-font-weight, 400);font-size:var(--ds-body-xs-font-size, .75rem);line-height:var(--ds-body-xs-line-height, 1rem);letter-spacing:var(--ds-body-xs-letter-spacing, -.01em);margin-bottom:0}.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}.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)}.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);z-index:1040}.uca-footer-lp-status{display:flex;flex-direction:row;justify-content:flex-end;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-text{margin-right:6px;color:var(--ds-theme-drawer-text-color)}.uca-footer-lp-link{color:#0063b1;text-decoration:none;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-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}.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}.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;fill:var(--ds-theme-drawer-text-muted-color, #888)}.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;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;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}.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)}.uca-header h2.uca-title{font-weight:var(--ds-heading-xs-font-weight)!important;font-size:var(--ds-heading-xs-font-size)!important;line-height:var(--ds-heading-xs-line-height)!important;letter-spacing:var(--ds-heading-xs-letter-spacing)!important;margin-bottom:0!important;color:var(--ds-theme-drawer-button-color)!important}.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}.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}.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: 360px){.uca-assistant-drawer-panel{width:100%}}@media screen and (max-height: 349.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: 349.9px){.uca-assistant-sidecar-panel{display:none}}.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}@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,k=Object.prototype.hasOwnProperty,S={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function C(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)k.call(r,o)&&!_.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:S.current}}function T(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var E=/\/+/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 P(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(E,"$&/")+"/"),P(a,n,o,"",function(e){return e})):null!=a&&(T(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(E,"$&/")+"/")+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+=P(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+=P(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 I(e,t,r){if(null==e)return e;var n=[],o=0;return P(e,n,"","",function(e){return t.call(r,e,o++)}),n}function B(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 N={current:null},D={transition:null},z={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:D,ReactCurrentOwner:S};function O(){throw Error("act(...) is not supported in production builds of React.")}return d.Children={map:I,forEach:function(e,t,r){I(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return I(e,function(){t++}),t},toArray:function(e){return I(e,function(e){return e})||[]},only:function(e){if(!T(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=z,d.act=O,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=S.current),void 0!==r.key&&(i=""+r.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in r)k.call(r,c)&&!_.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=C,d.createFactory=function(e){var t=C.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=T,d.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:B}},d.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},d.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},d.unstable_act=O,d.useCallback=function(e,t){return N.current.useCallback(e,t)},d.useContext=function(e){return N.current.useContext(e)},d.useDebugValue=function(){},d.useDeferredValue=function(e){return N.current.useDeferredValue(e)},d.useEffect=function(e,t){return N.current.useEffect(e,t)},d.useId=function(){return N.current.useId()},d.useImperativeHandle=function(e,t,r){return N.current.useImperativeHandle(e,t,r)},d.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},d.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},d.useMemo=function(e,t){return N.current.useMemo(e,t)},d.useReducer=function(e,t,r){return N.current.useReducer(e,t,r)},d.useRef=function(e){return N.current.useRef(e)},d.useState=function(e){return N.current.useState(e)},d.useSyncExternalStore=function(e,t,r){return N.current.useSyncExternalStore(e,t,r)},d.useTransition=function(){return N.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,k,S,_={},C={exports:{}},T={},E={exports:{}},A={};function P(){return w||(w=1,E.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,N(x);else{var t=r(c);null!==t&&D(w,t.startTime-e)}}function x(t,o){p=!1,m&&(m=!1,v(C),C=-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&&D(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 k,S=!1,_=null,C=-1,T=5,E=-1;function A(){return!(e.unstable_now()-E<T)}function P(){if(null!==_){var t=e.unstable_now();E=t;var r=!0;try{r=_(!0,t)}finally{r?k():(S=!1,_=null)}}else S=!1}if("function"==typeof y)k=function(){y(P)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,B=I.port2;I.port1.onmessage=P,k=function(){B.postMessage(null)}}else k=function(){g(P,0)};function N(e){_=e,S||(S=!0,k())}function D(t,r){C=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,N(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"):T=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(C),C=-1):m=!0,D(w,i-a))):(n.sortIndex=s,t(l,n),p||h||(p=!0,N(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)),E.exports}function I(){if(x)return T;x=1;var e=h(),t=P();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"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),E=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),z=Symbol.for("react.offscreen"),O=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var M,j=Object.assign;function L(e){if(void 0===M)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return"\n"+M+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 k:return"Fragment";case w:return"Portal";case _:return"Profiler";case S:return"StrictMode";case I:return"Suspense";case B:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case C: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 N:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case D: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===S?"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 J(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 X(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 ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,_e=null,Ce=null;function Te(e){if(e=xo(e)){if("function"!=typeof Se)throw Error(r(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function Ee(e){_e?Ce?Ce.push(e):Ce=[e]:_e=e}function Ae(){if(_e){var e=_e,t=Ce;if(Ce=_e=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Pe(e,t){return e(t)}function Ie(){}var Be=!1;function Ne(e,t,r){if(Be)return e(t,r);Be=!0;try{return Pe(e,t,r)}finally{Be=!1,(null!==_e||null!==Ce)&&(Ie(),Ae())}}function De(e,t){var n=e.stateNode;if(null===n)return null;var o=So(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 ze=!1;if(s)try{var Oe={};Object.defineProperty(Oe,"passive",{get:function(){ze=!0}}),window.addEventListener("test",Oe,Oe),window.removeEventListener("test",Oe,Oe)}catch(de){ze=!1}function Re(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 Me=!1,je=null,Le=!1,Fe=null,Ve={onError:function(e){Me=!0,je=e}};function qe(e,t,r,n,o,i,a,s,l){Me=!1,je=null,Re.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,Je=t.unstable_shouldYield,Xe=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 kt,St,_t,Ct,Tt,Et=!1,At=[],Pt=null,It=null,Bt=null,Nt=new Map,Dt=new Map,zt=[],Ot="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 Rt(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":It=null;break;case"mouseover":case"mouseout":Bt=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dt.delete(t.pointerId)}}function Mt(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))&&St(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 Tt(e.priority,function(){_t(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=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=xo(r))&&St(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(){Et=!1,null!==Pt&&Lt(Pt)&&(Pt=null),null!==It&&Lt(It)&&(It=null),null!==Bt&&Lt(Bt)&&(Bt=null),Nt.forEach(Ft),Dt.forEach(Ft)}function qt(e,r){e.blockedOn===r&&(e.blockedOn=null,Et||(Et=!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!==Pt&&qt(Pt,e),null!==It&&qt(It,e),null!==Bt&&qt(Bt,e),Nt.forEach(t),Dt.forEach(t),r=0;r<zt.length;r++)(n=zt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<zt.length&&null===(r=zt[0]).blockedOn;)jt(r),null===r.blockedOn&&zt.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=Jt(e,t,r,n);if(null===o)Wn(e,t,n,Kt,r),Rt(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return Pt=Mt(Pt,e,t,r,n,o),!0;case"dragenter":return It=Mt(It,e,t,r,n,o),!0;case"mouseover":return Bt=Mt(Bt,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return Nt.set(i,Mt(Nt.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,Dt.set(i,Mt(Dt.get(i)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(Rt(e,n),4&t&&-1<Ot.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&kt(i),null===(i=Jt(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 Jt(e,t,r,n){if(Kt=null,null!==(e=wo(e=ke(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 Xt(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:Cr,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"},kr={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"},Sr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _r(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sr[e])&&!!t[e]}function Cr(){return _r}var Tr=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?kr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cr,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}}),Er=ir(Tr),Ar=ir(j({},hr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pr=ir(j({},dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cr})),Ir=ir(j({},cr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Br=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}),Nr=ir(Br),Dr=[9,13,27,32],zr=s&&"CompositionEvent"in window,Or=null;s&&"documentMode"in document&&(Or=document.documentMode);var Rr=s&&"TextEvent"in window&&!Or,Mr=s&&(!zr||Or&&8<Or&&11>=Or),jr=String.fromCharCode(32),Lr=!1;function Fr(e,t){switch(e){case"keyup":return-1!==Dr.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){Ee(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(ko(e)))return e}function Jr(e,t){if("change"===e)return t}var Xr=!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;Xr=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,ke(e)),Ne(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 kn(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Sn={animationend:kn("Animation","AnimationEnd"),animationiteration:kn("Animation","AnimationIteration"),animationstart:kn("Animation","AnimationStart"),transitionend:kn("Transition","TransitionEnd")},_n={},Cn={};function Tn(e){if(_n[e])return _n[e];if(!Sn[e])return e;var t,r=Sn[e];for(t in r)if(r.hasOwnProperty(t)&&t in Cn)return _n[e]=r[t];return e}s&&(Cn=document.createElement("div").style,"AnimationEvent"in window||(delete Sn.animationend.animation,delete Sn.animationiteration.animation,delete Sn.animationstart.animation),"TransitionEvent"in window||delete Sn.transitionend.transition);var En=Tn("animationend"),An=Tn("animationiteration"),Pn=Tn("animationstart"),In=Tn("transitionend"),Bn=new Map,Nn="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 Dn(e,t){Bn.set(e,t),i(t,[e])}for(var zn=0;zn<Nn.length;zn++){var On=Nn[zn];Dn(On.toLowerCase(),"on"+(On[0].toUpperCase()+On.slice(1)))}Dn(En,"onAnimationEnd"),Dn(An,"onAnimationIteration"),Dn(Pn,"onAnimationStart"),Dn("dblclick","onDoubleClick"),Dn("focusin","onFocus"),Dn("focusout","onBlur"),Dn(In,"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 Rn="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(" "),Mn=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rn));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),Me){if(!Me)throw Error(r(198));var u=je;Me=!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&&(Mn.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(Xt(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,!ze||"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}Ne(function(){var n=i,o=ke(r),a=[];e:{var s=Bn.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=Er;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=Pr;break;case En:case An:case Pn:l=vr;break;case In:l=Ir;break;case"scroll":l=fr;break;case"wheel":l=Nr;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=De(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:ko(l),h=null==c?s:ko(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?ko(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Jr;else if(Ur(s))if(Xr)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?ko(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(zr)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&&(Mr&&"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=Rr?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||!zr&&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 Mr&&"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=De(e,r))&&n.unshift($n(e,i,o)),null!=(i=De(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=De(r,i))&&a.unshift($n(r,l,s)):o||null!=(l=De(r,i))&&a.push($n(r,l,s))),r=r.return}0!==a.length&&e.push({event:t,listeners:a})}var Jn=/\r\n?/g,Xn=/\u0000|\uFFFD/g;function Qn(e){return("string"==typeof e?e:""+e).replace(Jn,"\n").replace(Xn,"")}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 ko(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(r(33))}function So(e){return e[mo]||null}var _o=[],Co=-1;function To(e){return{current:e}}function Eo(e){0>Co||(e.current=_o[Co],_o[Co]=null,Co--)}function Ao(e,t){Co++,_o[Co]=e.current,e.current=t}var Po={},Io=To(Po),Bo=To(!1),No=Po;function Do(e,t){var r=e.type.contextTypes;if(!r)return Po;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 zo(e){return null!=(e=e.childContextTypes)}function Oo(){Eo(Bo),Eo(Io)}function Ro(e,t,n){if(Io.current!==Po)throw Error(r(168));Ao(Io,t),Ao(Bo,n)}function Mo(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||Po,No=Io.current,Ao(Io,e),Ao(Bo,Bo.current),!0}function Lo(e,t,n){var o=e.stateNode;if(!o)throw Error(r(169));n?(e=Mo(e,t,No),o.__reactInternalMemoizedMergedChildContext=e,Eo(Bo),Eo(Io),Ao(Io,e)):Eo(Bo),Ao(Bo,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=[],Jo=0,Xo=null,Qo=1,Zo="";function ei(e,t){Wo[$o++]=Yo,Wo[$o++]=Go,Go=e,Yo=t}function ti(e,t,r){Ko[Jo++]=Qo,Ko[Jo++]=Zo,Ko[Jo++]=Xo,Xo=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===Xo;)Xo=Ko[--Jo],Ko[Jo]=null,Zo=Ko[--Jo],Ko[Jo]=null,Qo=Ko[--Jo],Ko[Jo]=null}var oi=null,ii=null,ai=!1,si=null;function li(e,t){var r=Nc(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!==Xo?{id:Qo,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Nc(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=zc(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===k?d(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===D&&wi(o)===t.type)?((n=i(t,r.props)).ref=yi(e,t,r),n.return=e,n):((n=Oc(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=Rc(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=Oc(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 D:return f(e,(0,t._init)(t._payload),r)}if(re(t)||R(t))return(t=Rc(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 D:return h(e,t,(o=r._init)(r._payload),n)}if(re(r)||R(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 D:return p(e,t,r,(0,n._init)(n._payload),o)}if(re(n)||R(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===k&&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)===k){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===D&&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===k?((u=Rc(d.props.children,c.mode,m,d.key)).return=c,c=u):((m=Oc(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 D: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(R(d))return function(i,s,l,c){var u=R(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 ki=xi(!0),Si=xi(!1),_i=To(null),Ci=null,Ti=null,Ei=null;function Ai(){Ei=Ti=Ci=null}function Pi(e){var t=_i.current;Eo(_i),e._currentValue=t}function Ii(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 Bi(e,t){Ci=e,Ei=Ti=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ws=!0),e.firstContext=null)}function Ni(e){var t=e._currentValue;if(Ei!==e)if(e={context:e,memoizedValue:t,next:null},null===Ti){if(null===Ci)throw Error(r(308));Ti=e,Ci.dependencies={lanes:0,firstContext:e}}else Ti=Ti.next=e;return t}var Di=null;function zi(e){null===Di?Di=[e]:Di.push(e)}function Oi(e,t,r,n){var o=t.interleaved;return null===o?(r.next=r,zi(t)):(r.next=o.next,o.next=r),t.interleaved=r,Ri(e,n)}function Ri(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 Mi=!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&Pl){var o=n.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Ri(e,r)}return null===(o=n.interleaved)?(t.next=t,zi(n)):(t.next=o.next,o.next=t),n.interleaved=t,Ri(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;Mi=!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:Mi=!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);Ml|=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=To($i),Yi=To($i),Ki=To($i);function Ji(e){if(e===$i)throw Error(r(174));return e}function Xi(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)}Eo(Gi),Ao(Gi,t)}function Qi(){Eo(Gi),Eo(Yi),Eo(Ki)}function Zi(e){Ji(Ki.current);var t=Ji(Gi.current),r=ce(t,e.type);t!==r&&(Ao(Yi,e),Ao(Gi,r))}function ea(e){Yi.current===e&&(Eo(Gi),Eo(Yi))}var ta=To(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 ka(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,Ml|=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,Ml|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Sa(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 _a(){}function Ca(e,t){var n=la,o=wa(),i=t(),a=!ln(o.memoizedState,i);if(a&&(o.memoizedState=i,ws=!0),o=o.queue,Ma(Aa.bind(null,n,o,e),[e]),o.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(n.flags|=2048,Na(9,Ea.bind(null,n,o,i,t),void 0,null),null===Il)throw Error(r(349));30&sa||Ta(n,t,i)}return i}function Ta(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 Ea(e,t,r,n){t.value=r,t.getSnapshot=n,Pa(t)&&Ia(e)}function Aa(e,t,r){return r(function(){Pa(t)&&Ia(e)})}function Pa(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ln(e,r)}catch(n){return!0}}function Ia(e){var t=Ri(e,1);null!==t&&nc(t,e,1,-1)}function Ba(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 Na(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 Da(){return wa().memoizedState}function za(e,t,r,n){var o=ba();la.flags|=e,o.memoizedState=Na(1|t,r,void 0,void 0===n?null:n)}function Oa(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=Na(t,r,i,n))}la.flags|=e,o.memoizedState=Na(1|t,r,i,n)}function Ra(e,t){return za(8390656,8,e,t)}function Ma(e,t){return Oa(2048,8,e,t)}function ja(e,t){return Oa(4,2,e,t)}function La(e,t){return Oa(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,Oa(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,Ml|=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},Ja(e))Xa(t,r);else if(null!==(r=Oi(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(Ja(e))Xa(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,zi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(r=Oi(e,t,o,n))&&(nc(r,e,n,o=tc()),Qa(r,t,n))}}function Ja(e){var t=e.alternate;return e===la||null!==t&&t===la}function Xa(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:Ni,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:Ni,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Ni,useEffect:Ra,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,za(4194308,4,Fa.bind(null,t,e),r)},useLayoutEffect:function(e,t){return za(4194308,4,e,t)},useInsertionEffect:function(e,t){return za(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:Ba,useDebugValue:qa,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Ba(!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===Il)throw Error(r(349));30&sa||Ta(o,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ra(Aa.bind(null,o,a,e),[e]),o.flags|=2048,Na(9,Ea.bind(null,o,a,n,t),void 0,null),n},useId:function(){var e=ba(),t=Il.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:Ni,useCallback:Ha,useContext:Ni,useEffect:Ma,useImperativeHandle:Va,useInsertionEffect:ja,useLayoutEffect:La,useMemo:Ua,useReducer:ka,useRef:Da,useState:function(){return ka(xa)},useDebugValue:qa,useDeferredValue:function(e){return Wa(wa(),ca.memoizedState,e)},useTransition:function(){return[ka(xa)[0],wa().memoizedState]},useMutableSource:_a,useSyncExternalStore:Ca,useId:Ga,unstable_isNewReconciler:!1},rs={readContext:Ni,useCallback:Ha,useContext:Ni,useEffect:Ma,useImperativeHandle:Va,useInsertionEffect:ja,useLayoutEffect:La,useMemo:Ua,useReducer:Sa,useRef:Da,useState:function(){return Sa(xa)},useDebugValue:qa,useDeferredValue:function(e){var t=wa();return null===ca?t.memoizedState=e:Wa(t,ca.memoizedState,e)},useTransition:function(){return[Sa(xa)[0],wa().memoizedState]},useMutableSource:_a,useSyncExternalStore:Ca,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=Po,i=t.contextType;return"object"==typeof i&&null!==i?i=Ni(i):(o=zo(t)?No:Io.current,i=(n=null!=(n=t.contextTypes))?Do(e,o):Po),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=Ni(i):(i=zo(t)?No:Io.current,o.context=Do(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=Tc.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?Si(t,null,r,n):ki(t,e.child,r,n)}function ks(e,t,r,n,o){r=r.render;var i=t.ref;return Bi(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 Ss(e,t,r,n,o){if(null===e){var i=r.type;return"function"!=typeof i||Dc(i)||void 0!==i.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Oc(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,_s(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=zc(i,n)).ref=t.ref,e.return=t,t.child=e}function _s(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 Es(e,t,r,n,o)}function Cs(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(zl,Dl),Dl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==i?i.baseLanes:r,Ao(zl,Dl),Dl|=n}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ao(zl,Dl),Dl|=r;else null!==i?(n=i.baseLanes|r,t.memoizedState=null):n=r,Ao(zl,Dl),Dl|=n;return xs(e,t,o,r),t.child}function Ts(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,r,n,o){var i=zo(r)?No:Io.current;return i=Do(t,i),Bi(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(zo(r)){var i=!0;jo(t)}else i=!1;if(Bi(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=Ni(c):c=Do(t,c=zo(r)?No:Io.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),Mi=!1;var f=t.memoizedState;a.state=f,Ui(t,n,a,o),l=t.memoizedState,s!==n||f!==l||Bo.current||Mi?("function"==typeof u&&(os(t,r,u,n),l=t.memoizedState),(s=Mi||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=Ni(l):l=Do(t,l=zo(r)?No:Io.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),Mi=!1,f=t.memoizedState,a.state=f,Ui(t,n,a,o);var p=t.memoizedState;s!==d||f!==p||Bo.current||Mi?("function"==typeof h&&(os(t,r,h,n),p=t.memoizedState),(c=Mi||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 Ps(e,t,r,n,i,o)}function Ps(e,t,r,n,o,i){Ts(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=ki(t,e.child,null,i),t.child=ki(t,null,s,i)):xs(e,t,s,i),t.memoizedState=n.state,o&&Lo(t,r,!0),t.child}function Is(e){var t=e.stateNode;t.pendingContext?Ro(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ro(0,t.context,!1),Xi(e,t.containerInfo)}function Bs(e,t,r,n,o){return mi(),gi(o),t.flags|=256,xs(e,t,r,n),t.child}var Ns,Ds,zs,Os,Rs={dehydrated:null,treeContext:null,retryLane:0};function Ms(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=Mc(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Rc(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(n),t.memoizedState=Rs,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=Mc({mode:"visible",children:o.children},i,0,null),(a=Rc(a,i,s,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,1&t.mode&&ki(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=Rs,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=Il)){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,Ri(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[Jo++]=Qo,Ko[Jo++]=Zo,Ko[Jo++]=Xo,Qo=e.id,Zo=e.overflow,Xo=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=zc(a,c)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null),null!==o?s=zc(o,s):(s=Rc(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)?Ms(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Rs,i}return e=(s=e.child).sibling,i=zc(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=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,r,n){return null!==n&&gi(n),ki(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),Ii(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),Ml|=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=zc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=zc(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 zo(t.type)&&Oo(),Gs(t),null;case 3:return i=t.stateNode,Qi(),Eo(Bo),Eo(Io),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))),Ds(e,t),Gs(t),null;case 5:ea(t);var a=Ji(Ki.current);if(n=t.type,null!==e&&null!=t.stateNode)zs(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=Ji(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<Rn.length;a++)Fn(Rn[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":X(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,Ns(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<Rn.length;a++)Fn(Rn[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":X(e,i),a=J(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)Os(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(r(166));if(n=Ji(Ki.current),Ji(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(Eo(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===Ol&&(Ol=3):gc())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return Qi(),Ds(e,t),null===e&&Hn(t.stateNode.containerInfo),Gs(t),null;case 10:return Pi(t.type._context),Gs(t),null;case 19:if(Eo(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!==Ol||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&Dl)&&(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 zo(t.type)&&Oo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),Eo(Bo),Eo(Io),oa(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ea(t),null;case 13:if(Eo(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 Eo(ta),null;case 4:return Qi(),null;case 10:return Pi(t.type._context),null;case 22:case 23:return fc(),null;default:return null}}Ns=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}},Ds=function(){},zs=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Ji(Gi.current);var a,s=null;switch(r){case"input":i=J(e,i),n=J(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)}},Os=function(e,t,r,n){r!==n&&(t.flags|=4)};var Js=!1,Xs=!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){Cc(e,t,n)}else r.current=null}function tl(e,t,r){try{r()}catch(n){Cc(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:Xs||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(!Xs&&(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(!Xs&&(el(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Cc(r,t,s)}hl(e,t,r);break;case 21:hl(e,t,r);break;case 22:1&r.mode?(Xs=(n=Xs)||null!==r.memoizedState,hl(e,t,r),Xs=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=Pc.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){Cc(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){Cc(e,e.return,g)}try{nl(5,e,e.return)}catch(g){Cc(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){Cc(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){Cc(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){Cc(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){Cc(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?(Xs=(u=Xs)||d,gl(t,e),Xs=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){Cc(o,n,g)}}break;case 5:el(h,h.return);break;case 22:if(null!==h.memoizedState){kl(f);continue}}null!==p?(p.return=h,Zs=p):kl(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){Cc(e,e.return,g)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){Cc(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){Cc(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||Js;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Xs;s=Js;var c=Xs;if(Js=a,(Xs=l)&&!c)for(Zs=o;null!==Zs;)l=(a=Zs).child,22===a.tag&&null!==a.memoizedState?Sl(o):null!==l?(l.return=a,Zs=l):Sl(o);for(;null!==i;)Zs=i,wl(i),i=i.sibling;Zs=o,Js=s,Xs=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:Xs||ol(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Xs)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))}Xs||512&t.flags&&il(t)}catch(h){Cc(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 kl(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 Sl(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){Cc(t,r,l)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(l){Cc(t,o,l)}}var i=t.return;try{il(t)}catch(l){Cc(t,i,l)}break;case 5:var a=t.return;try{il(t)}catch(l){Cc(t,a,l)}}}catch(l){Cc(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 _l,Cl=Math.ceil,Tl=y.ReactCurrentDispatcher,El=y.ReactCurrentOwner,Al=y.ReactCurrentBatchConfig,Pl=0,Il=null,Bl=null,Nl=0,Dl=0,zl=To(0),Ol=0,Rl=null,Ml=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,Jl=0,Xl=0,Ql=null,Zl=-1,ec=0;function tc(){return 6&Pl?Qe():-1!==Zl?Zl:Zl=Qe()}function rc(e){return 1&e.mode?2&Pl&&0!==Nl?Nl&-Nl:null!==vi.transition?(0===ec&&(ec=gt()),ec):0!==(e=wt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function nc(e,t,n,o){if(50<Xl)throw Xl=0,Ql=null,Error(r(185));yt(e,n,o),2&Pl&&e===Il||(e===Il&&(!(2&Pl)&&(jl|=n),4===Ol&&lc(e,Nl)),oc(e,o),1===n&&0===Pl&&!(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===Il?Nl: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&Pl)&&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=Ic(r,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function ic(e,t){if(Zl=-1,ec=0,6&Pl)throw Error(r(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var o=ht(e,e===Il?Nl:0);if(0===o)return null;if(30&o||0!==(o&e.expiredLanes)||t)t=vc(e,o);else{t=o;var i=Pl;Pl|=2;var a=mc();for(Il===e&&Nl===t||(Ul=null,Hl=Qe()+500,hc(e,t));;)try{bc();break}catch(l){pc(e,l)}Ai(),Tl.current=a,Pl=i,null!==Bl?t=0:(Il=null,Nl=0,t=Ol)}if(0!==t){if(2===t&&(0!==(i=mt(e))&&(o=i,t=ac(e,i))),1===t)throw n=Rl,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=Rl,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:kc(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(kc.bind(null,e,Vl,Ul),t);break}kc(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*Cl(o/1960))-o)){e.timeoutHandle=oo(kc.bind(null,e,Vl,Ul),o);break}kc(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&Pl)throw Error(r(327));Sc();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=Rl,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,kc(e,Vl,Ul),oc(e,Qe()),null}function uc(e,t){var r=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=r)&&(Hl=Qe()+500,Vo&&Uo())}}function dc(e){null!==Kl&&0===Kl.tag&&!(6&Pl)&&Sc();var t=Pl;Pl|=1;var r=Al.transition,n=wt;try{if(Al.transition=null,wt=1,e)return e()}finally{wt=n,Al.transition=r,!(6&(Pl=t))&&Uo()}}function fc(){Dl=zl.current,Eo(zl)}function hc(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,io(r)),null!==Bl)for(r=Bl.return;null!==r;){var n=r;switch(ni(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Oo();break;case 3:Qi(),Eo(Bo),Eo(Io),oa();break;case 5:ea(n);break;case 4:Qi();break;case 13:case 19:Eo(ta);break;case 10:Pi(n.type._context);break;case 22:case 23:fc()}r=r.return}if(Il=e,Bl=e=zc(e.current,null),Nl=Dl=t,Ol=0,Rl=null,Ll=jl=Ml=0,Vl=Fl=null,null!==Di){for(t=0;t<Di.length;t++)if(null!==(n=(r=Di[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}Di=null}return e}function pc(e,t){for(;;){var n=Bl;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,El.current=null,null===n||null===n.return){Ol=1,Rl=t,Bl=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Nl,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!==Ol&&(Ol=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,Bl===n&&null!==n&&(Bl=n=n.return);continue}break}}function mc(){var e=Tl.current;return Tl.current=Za,null===e?Za:e}function gc(){0!==Ol&&3!==Ol&&2!==Ol||(Ol=4),null===Il||!(268435455&Ml)&&!(268435455&jl)||lc(Il,Nl)}function vc(e,t){var n=Pl;Pl|=2;var o=mc();for(Il===e&&Nl===t||(Ul=null,hc(e,t));;)try{yc();break}catch(i){pc(e,i)}if(Ai(),Pl=n,Tl.current=o,null!==Bl)throw Error(r(261));return Il=null,Nl=0,Ol}function yc(){for(;null!==Bl;)wc(Bl)}function bc(){for(;null!==Bl&&!Je();)wc(Bl)}function wc(e){var t=_l(e.alternate,e,Dl);e.memoizedProps=e.pendingProps,null===t?xc(e):Bl=t,El.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(Bl=r);if(null===e)return Ol=6,void(Bl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(r=Ys(r,t,Dl)))return void(Bl=r);if(null!==(t=t.sibling))return void(Bl=t);Bl=t=e}while(null!==t);0===Ol&&(Ol=5)}function kc(e,t,n){var o=wt,i=Al.transition;try{Al.transition=null,wt=1,function(e,t,n,o){do{Sc()}while(null!==Kl);if(6&Pl)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===Il&&(Bl=Il=null,Nl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Yl||(Yl=!0,Ic(rt,function(){return Sc(),null})),a=!!(15990&n.flags),!!(15990&n.subtreeFlags)||a){a=Al.transition,Al.transition=null;var s=wt;wt=1;var l=Pl;Pl|=4,El.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){Cc(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),Xe(),Pl=l,wt=s,Al.transition=a}else e.current=n;if(Yl&&(Yl=!1,Kl=e,Jl=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&Jl)&&0!==e.tag&&Sc(),a=e.pendingLanes,1&a?e===Ql?Xl++:(Xl=0,Ql=e):Xl=0,Uo()}(e,t,n,o)}finally{Al.transition=i,wt=o}return null}function Sc(){if(null!==Kl){var e=xt(Jl),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,Jl=0,6&Pl)throw Error(r(331));var i=Pl;for(Pl|=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(k){Cc(l,l.return,k)}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(Pl=i,Uo(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(it,e)}catch(k){}o=!0}return o}finally{wt=n,Al.transition=t}}return!1}function _c(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 Cc(e,t,r){if(3===e.tag)_c(e,e,r);else for(;null!==t;){if(3===t.tag){_c(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 Tc(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&r,Il===e&&(Nl&r)===r&&(4===Ol||3===Ol&&(130023424&Nl)===Nl&&500>Qe()-ql?hc(e,0):Ll|=r),oc(e,t)}function Ec(e,t){0===t&&(1&e.mode?(t=dt,!(130023424&(dt<<=1))&&(dt=4194304)):t=1);var r=tc();null!==(e=Ri(e,t))&&(yt(e,t,r),oc(e,r))}function Ac(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Ec(e,r)}function Pc(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),Ec(e,n)}function Ic(e,t){return Ye(e,t)}function Bc(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 Nc(e,t,r,n){return new Bc(e,t,r,n)}function Dc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zc(e,t){var r=e.alternate;return null===r?((r=Nc(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 Oc(e,t,n,o,i,a){var s=2;if(o=e,"function"==typeof e)Dc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case k:return Rc(n.children,i,a,t);case S:s=8,i|=8;break;case _:return(e=Nc(12,n,t,2|i)).elementType=_,e.lanes=a,e;case I:return(e=Nc(13,n,t,i)).elementType=I,e.lanes=a,e;case B:return(e=Nc(19,n,t,i)).elementType=B,e.lanes=a,e;case z:return Mc(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case E:s=9;break e;case A:s=11;break e;case N:s=14;break e;case D:s=16,o=null;break e}throw Error(r(130,null==e?e:typeof e,""))}return(t=Nc(s,n,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Rc(e,t,r,n){return(e=Nc(7,e,n,t)).lanes=r,e}function Mc(e,t,r,n){return(e=Nc(22,e,n,t)).elementType=z,e.lanes=r,e.stateNode={isHidden:!1},e}function jc(e,t,r){return(e=Nc(6,e,null,t)).lanes=r,e}function Lc(e,t,r){return(t=Nc(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=Nc(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 Po;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(zo(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(zo(n))return Mo(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)}_l=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Bo.current)ws=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return ws=!1,function(e,t,r){switch(t.tag){case 3:Is(t),mi();break;case 5:Zi(t);break;case 1:zo(t.type)&&jo(t);break;case 4:Xi(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;Ao(_i,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,Cs(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=Do(t,Io.current);Bi(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,zo(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=Ps(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 Dc(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===N)return 14}return 2}(o),e=ns(o,e),i){case 0:t=Es(null,t,o,e,n);break e;case 1:t=As(null,t,o,e,n);break e;case 11:t=ks(null,t,o,e,n);break e;case 14:t=Ss(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,Es(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(Is(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=Bs(e,t,o,n,i=us(Error(r(423)),t));break e}if(o!==i){t=Bs(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=Si(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),Ts(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 Xi(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=ki(t,null,o,n):xs(e,t,o,n),t.child;case 11:return o=t.type,i=t.pendingProps,ks(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(_i,o._currentValue),o._currentValue=s,null!==a)if(ln(a.value,s)){if(a.children===i.children&&!Bo.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),Ii(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),Ii(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,Bi(t,n),o=o(i=Ni(i)),t.flags|=1,xs(e,t,o,n),t.child;case 14:return i=ns(o=t.type,t.pendingProps),Ss(e,t,o,i=ns(o.type,i),n);case 15:return _s(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,zo(o)?(e=!0,jo(t)):e=!1,Bi(t,n),ss(t,o,i),cs(t,o,i,n),Ps(null,t,o,!0,e,n);case 19:return Hs(e,t,n);case 22:return Cs(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 Jc(e){this._internalRoot=e}function Xc(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)}Jc.prototype.render=Kc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(r(409));Uc(e,t,null,null)},Jc.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}},Jc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var r=0;r<zt.length&&0!==t&&t<zt[r].priority;r++);zt.splice(r,0,e),0===r&&jt(e)}},kt=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&Pl)&&(Hl=Qe()+500,Uo()))}break;case 13:dc(function(){var t=Ri(e,1);if(null!==t){var r=tc();nc(t,e,1,r)}}),Gc(e,1)}},St=function(e){if(13===e.tag){var t=Ri(e,134217728);if(null!==t)nc(t,e,134217728,tc());Gc(e,134217728)}},_t=function(e){if(13===e.tag){var t=rc(e),r=Ri(e,t);if(null!==r)nc(r,e,t,tc());Gc(e,t)}},Ct=function(){return wt},Tt=function(e,t){var r=wt;try{return wt=e,t()}finally{wt=r}},Se=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=So(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)}},Pe=uc,Ie=dc;var tu={usingClientEntryPoint:!1,Events:[xo,ko,So,Ee,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 T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,T.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(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)},T.createRoot=function(e,t){if(!Xc(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)},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},T.flushSync=function(e){return dc(e)},T.hydrate=function(e,t,n){if(!Qc(t))throw Error(r(200));return eu(null,e,t,!0,n)},T.hydrateRoot=function(e,t,n){if(!Xc(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 Jc(t)},T.render=function(e,t,n){if(!Qc(t))throw Error(r(200));return eu(null,e,t,!1,n)},T.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)},T.unstable_batchedUpdates=uc,T.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)},T.version="18.3.1-next-f1338f8080-20240426",T}function B(){if(k)return C.exports;return k=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)}}(),C.exports=I(),C.exports}const N=r(function(){if(S)return _;S=1;var e=B();return _.createRoot=e.createRoot,_.hydrateRoot=e.hydrateRoot,_}()),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(...e){}static groupWithKind(e,...t){}static groupEnd(){}static groupEndWithKind(e){}static info(...e){}static infoWithKind(e,...t){}static log(...e){}static logWithKind(e,...t){}static warn(...e){}static warnWithKind(e,...t){}static error(...e){}static errorWithKind(e,...t){}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 z=D;var O=(e=>(e.DirectLine="directline",e.LivePerson="liveperson",e))(O||{}),R=(e=>(e.Day="theme-day",e.Night="theme-night",e))(R||{}),M=(e=>(e.Drawer="drawer",e.Fullscreen="fullscreen",e.Sidecar="sidecar",e))(M||{});const j="DirectLine",L="WebAssistantTokenApi",F="BotframeworkTokenApi",V="send-message",q="onAiSearchSubmit",H="wa:proactivePromptTrigger",U="startConversation",W={partnerId:"test",theme:R.Day,mode:M.Sidecar,disableUnhandledErrorHandlers:!0},$="[data-oc-ai-chat]",G=["Top","Right","Bottom","Left"];function Y(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+G[c]+t]=s[c]}return l}function K(...e){return Y("border","Width",...e)}function J(...e){return Y("border","Style",...e)}function X(...e){return Y("border","Color",...e)}const Q=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function Z(e){return Q.includes(e)}const ee=e=>"number"==typeof e&&!Number.isNaN(e),te=e=>"auto"===e,re=["content","fit-content","max-content","min-content"],ne=e=>re.some(t=>e===t)||(e=>"string"==typeof e&&/(\d+(\w+|%))/.test(e))(e);const oe=/var\(.*\)/gi;const ie=/^[a-zA-Z0-9\-_\\#;]+$/,ae=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function se(e){return void 0!==e&&"string"==typeof e&&ie.test(e)&&!ae.test(e)}const le=["-moz-initial","inherit","initial","revert","unset"];const ce=["dashed","dotted","double","solid","wavy"];const ue="undefined"==typeof window?global:window,de="@griffel/";function fe(e,t){return ue[Symbol.for(de+e)]||(ue[Symbol.for(de+e)]=t),ue[Symbol.for(de+e)]}const he=fe("DEFINITION_LOOKUP_TABLE",{}),pe="data-make-styles-bucket",me="___",ge={all:1,borderColor:1,borderStyle:1,borderWidth:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1},ve="DO_NOT_USE_DIRECTLY: @griffel/reset-value";function ye(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 be(e,t,r=[]){return me+function(e){const t=e.length;if(7===t)return e;for(let r=t;r<7;r++)e+="0";return e}(ye(e+t))}function we(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]=we(e[n],t);if(""===i){r[n]="";continue}const a=be(i,t),s=a+(""===o?"":" "+o);he[a]=[e[n],t],r[n]=s}return r}const ke={};function Se(){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(me);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=ke[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=he[t];r&&(i.push(r[0]),e=r[1])}}const a=Object.assign.apply(Object,[{}].concat(i)),[s,l]=we(a,e),c=be(l,e,n),u=c+" "+s;return ke[r]=u,he[c]=[a,e],t+u}function _e(e){return Array.isArray(e)?e:[e]}const Ce=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"].reduce((e,t,r)=>(e[t]=r,e),{});function Te(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[pe]=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=Ce[r],l=null!==(i=o.m)&&void 0!==i?i:"",c=null!==(a=o.p)&&void 0!==a?a:0;let u=e=>s-Ce[e.getAttribute(pe)],d=e.head.querySelectorAll(`[${pe}]`);if("m"===r){const t=e.head.querySelectorAll(`[${pe}="${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(pe)+(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 Ee(e,t){try{e.insertRule(t)}catch(r){}}let Ae=0;const Pe=(e,t)=>e<t?-1:e>t?1:0;function Ie(e=("undefined"==typeof document?void 0:document),t={}){const{classNameHashSalt:r,unstable_filterCSSRule:n,insertionPoint:o,styleElementAttributes:i,compareMediaQueries:a=Pe}=t,s={classNameHashSalt:r,insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(i),compareMediaQueries:a,id:"d"+Ae++,insertCSSRules(t){for(const r in t){const i=t[r];for(let t=0,a=i.length;t<a;t++){const[a,l]=_e(i[t]),c=Te(r,e,o||null,s,l);s.insertionCache[a]||(s.insertionCache[a]=r,n?n(a)&&Ee(c,a):Ee(c,a))}}}};return s}const Be=()=>{const e={};return function(t,r){void 0===e[t.id]&&(t.insertCSSRules(r),e[t.id]=!0)}};function Ne(e){return e.reduce(function(e,t){var r=t[0],n=t[1];return e[r]=n,e[n]=r,e},{})}function De(e){return"number"==typeof e}function ze(e,t){return-1!==e.indexOf(t)}function Oe(e,t,r,n){return t+(o=r,0===parseFloat(o)?o:"-"===o[0]?o.slice(1):"-"+o)+n;var o}function Re(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 Me(e){var t=Re(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 je={padding:function(e){var t=e.value;return De(t)?t:Me(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 Me(e.value)},borderRadius:function(e){var t=e.value;if(De(t))return t;if(ze(t,"/")){var r=t.split("/"),n=r[0],o=r[1];return je.borderRadius({value:n.trim()})+" / "+je.borderRadius({value:o.trim()})}var i=Re(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(De(t))return t;var a=t.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return t=t.replace(a,je.backgroundPosition({value:a,valuesToConvert:r,isRtl:n,bgPosDirectionRegex:i})),je.backgroundImage({value:t,valuesToConvert:r,bgImgDirectionRegex:o})},backgroundImage:function(e){var t=e.value,r=e.valuesToConvert,n=e.bgImgDirectionRegex;return ze(t,"url(")||ze(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 De(t)?t:je.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,Oe).replace(a,Oe).replace(s,Oe).replace(l,Oe)}};je.objectPosition=je.backgroundPosition,je.margin=je.padding,je.borderWidth=je.padding,je.boxShadow=je.textShadow,je.webkitBoxShadow=je.boxShadow,je.mozBoxShadow=je.boxShadow,je.WebkitBoxShadow=je.boxShadow,je.MozBoxShadow=je.boxShadow,je.borderStyle=je.borderColor,je.webkitTransform=je.transform,je.mozTransform=je.transform,je.WebkitTransform=je.transform,je.MozTransform=je.transform,je.transformOrigin=je.backgroundPosition,je.webkitTransformOrigin=je.transformOrigin,je.mozTransformOrigin=je.transformOrigin,je.WebkitTransformOrigin=je.transformOrigin,je.MozTransformOrigin=je.transformOrigin,je.webkitTransition=je.transition,je.mozTransition=je.transition,je.WebkitTransition=je.transition,je.MozTransition=je.transition,je.webkitTransitionProperty=je.transitionProperty,je.mozTransitionProperty=je.transitionProperty,je.WebkitTransitionProperty=je.transitionProperty,je.MozTransitionProperty=je.transitionProperty,je["text-shadow"]=je.textShadow,je["border-color"]=je.borderColor,je["border-radius"]=je.borderRadius,je["background-image"]=je.backgroundImage,je["background-position"]=je.backgroundPosition,je["background-position-x"]=je.backgroundPositionX,je["object-position"]=je.objectPosition,je["border-width"]=je.padding,je["box-shadow"]=je.textShadow,je["-webkit-box-shadow"]=je.textShadow,je["-moz-box-shadow"]=je.textShadow,je["border-style"]=je.borderColor,je["-webkit-transform"]=je.transform,je["-moz-transform"]=je.transform,je["transform-origin"]=je.transformOrigin,je["-webkit-transform-origin"]=je.transformOrigin,je["-moz-transform-origin"]=je.transformOrigin,je["-webkit-transition"]=je.transition,je["-moz-transition"]=je.transition,je["transition-property"]=je.transitionProperty,je["-webkit-transition-property"]=je.transitionProperty,je["-moz-transition-property"]=je.transitionProperty;var Le=Ne([["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"]]),Fe=["content"],Ve=Ne([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),qe=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),He=new RegExp("(left)|(right)");function Ue(e){return Object.keys(e).reduce(function(t,r){var n=e[r];if("string"==typeof n&&(n=n.trim()),ze(Fe,r))return t[r]=n,t;var o=We(r,n),i=o.key,a=o.value;return t[i]=a,t},Array.isArray(e)?[]:{})}function We(e,t){var r,n=/\/\*\s?@noflip\s?\*\//.test(t),o=n?e:Le[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 Ue(t);var r;var n,o=De(t),i=function(e){return"function"==typeof e}(t),a=o||i?t:t.replace(/ !important.*?$/,""),s=!o&&a.length!==t.length,l=je[e];n=l?l({value:a,valuesToConvert:Ve,propertiesToConvert:Le,isRtl:!0,bgImgDirectionRegex:qe,bgPosDirectionRegex:He}):Ve[a]||a;if(s)return n+" !important";return n}(o,t);return{key:o,value:i}}const $e=/[A-Z]/g,Ge=/^ms-/,Ye={};function Ke(e){return"-"+e.toLowerCase()}function Je(e){if(Object.prototype.hasOwnProperty.call(Ye,e))return Ye[e];if("--"===e.substr(0,2))return e;const t=e.replace($e,Ke);return Ye[e]=Ge.test(t)?"-"+t:t}function Xe(e){return"&"===e.charAt(0)?e.slice(1):e}var Qe="-moz-",Ze="-webkit-",et="comm",tt="rule",rt="decl",nt="@layer",ot=Math.abs,it=String.fromCharCode,at=Object.assign;function st(e){return e.trim()}function lt(e,t){return(e=t.exec(e))?e[0]:e}function ct(e,t,r){return e.replace(t,r)}function ut(e,t,r){return e.indexOf(t,r)}function dt(e,t){return 0|e.charCodeAt(t)}function ft(e,t,r){return e.slice(t,r)}function ht(e){return e.length}function pt(e){return e.length}function mt(e,t){return t.push(e),e}var gt=1,vt=1,yt=0,bt=0,wt=0,xt="";function kt(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:gt,column:vt,length:a,return:"",siblings:s}}function St(e,t){return at(kt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function _t(){return wt=bt>0?dt(xt,--bt):0,vt--,10===wt&&(vt=1,gt--),wt}function Ct(){return wt=bt<yt?dt(xt,bt++):0,vt++,10===wt&&(vt=1,gt++),wt}function Tt(){return dt(xt,bt)}function Et(){return bt}function At(e,t){return ft(xt,e,t)}function Pt(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 It(e){return gt=vt=1,yt=ht(xt=e),bt=0,[]}function Bt(e){return xt="",e}function Nt(e){return st(At(bt-1,Rt(91===e?e+2:40===e?e+1:e)))}function Dt(e){return Bt(function(e){for(;Ct();)switch(Pt(wt)){case 0:mt(jt(bt-1),e);break;case 2:mt(Nt(wt),e);break;default:mt(it(wt),e)}return e}(It(e)))}function zt(e){for(;(wt=Tt())&&wt<33;)Ct();return Pt(e)>2||Pt(wt)>3?"":" "}function Ot(e,t){for(;--t&&Ct()&&!(wt<48||wt>102||wt>57&&wt<65||wt>70&&wt<97););return At(e,Et()+(t<6&&32==Tt()&&32==Ct()))}function Rt(e){for(;Ct();)switch(wt){case e:return bt;case 34:case 39:34!==e&&39!==e&&Rt(wt);break;case 40:41===e&&Rt(e);break;case 92:Ct()}return bt}function Mt(e,t){for(;Ct()&&e+wt!==57&&(e+wt!==84||47!==Tt()););return"/*"+At(t,bt-1)+"*"+it(47===e?e:Ct())}function jt(e){for(;!Pt(Tt());)Ct();return At(e,bt)}function Lt(e){return Bt(Ft("",null,null,null,[""],e=It(e),0,[0],e))}function Ft(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,k=n,S=b;g;)switch(p=y,y=Ct()){case 40:if(108!=p&&58==dt(S,d-1)){-1!=ut(S+=ct(Nt(y),"&","&\f"),"&\f",ot(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=Nt(y);break;case 9:case 10:case 13:case 32:S+=zt(p);break;case 92:S+=Ot(Et()-1,7);continue;case 47:switch(Tt()){case 42:case 47:mt(qt(Mt(Ct(),Et()),t,r,l),l),5!=Pt(p||1)&&5!=Pt(Tt()||1)||!ht(S)||" "===ft(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*m:s[c++]=ht(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(S=ct(S,/\f/g,"")),h>0&&(ht(S)-d||0===m&&47===p)&&mt(h>32?Ht(S+";",n,r,d-1,l):Ht(ct(S," ","")+";",n,r,d-2,l),l);break;case 59:S+=";";default:if(mt(k=Vt(S,t,r,c,u,o,s,b,w=[],x=[],d,i),i),123===y)if(0===u)Ft(S,t,k,k,w,i,d,s,x);else{switch(f){case 99:if(110===dt(S,3))break;case 108:if(97===dt(S,2))break;default:u=0;case 100:case 109:case 115:}u?Ft(e,k,k,n&&mt(Vt(e,k,k,0,0,o,s,b,o,w=[],d,x),x),o,x,d,s,n?w:x):Ft(S,k,k,k,[""],x,0,s,x)}}c=u=h=0,m=v=1,b=S="",d=a;break;case 58:d=1+ht(S),h=p;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==_t())continue;switch(S+=it(y),y*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(ht(S)-1)*v,v=1;break;case 64:45===Tt()&&(S+=Nt(Ct())),f=Tt(),u=d=ht(b=S+=jt(Et())),y++;break;case 45:45===p&&2==ht(S)&&(m=0)}}return i}function Vt(e,t,r,n,o,i,a,s,l,c,u,d){for(var f=o-1,h=0===o?i:[""],p=pt(h),m=0,g=0,v=0;m<n;++m)for(var y=0,b=ft(e,f+1,f=ot(g=a[m])),w=e;y<p;++y)(w=st(g>0?h[y]+" "+b:ct(b,/&\f/g,h[y])))&&(l[v++]=w);return kt(e,t,r,0===o?tt:s,l,c,u,d)}function qt(e,t,r,n){return kt(e,t,r,et,it(wt),ft(e,2,-2),0,n)}function Ht(e,t,r,n,o){return kt(e,t,r,rt,ft(e,0,n),ft(e,n+1,-1),n,o)}function Ut(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Wt(e,t,r,n){switch(e.type){case nt:if(e.children.length)break;case"@import":case"@namespace":case rt:return e.return=e.return||e.value;case et:return"";case"@keyframes":return e.return=e.value+"{"+Ut(e.children,n)+"}";case tt:if(!ht(e.value=e.props.join(",")))return""}return ht(r=Ut(e.children,n))?e.return=e.value+"{"+r+"}":""}function $t(e){var t=pt(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 Gt(e){return function(t){t.root||(t=t.return)&&e(t)}}const Yt=e=>{if(e.type===tt){if("string"==typeof e.props)return;e.props=e.props.map(e=>-1===e.indexOf(":global(")?e:Dt(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 Kt(e,t,r){switch(function(e,t){return 45^dt(e,0)?(((t<<2^dt(e,0))<<2^dt(e,1))<<2^dt(e,2))<<2^dt(e,3):0}(e,t)){case 5103:return Ze+"print-"+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return Ze+e+e;case 4215:if(102===dt(e,9))return Ze+e+e;if(116===dt(e,t+1))return Ze+e+e;break;case 4789:return Qe+e+e;case 5349:case 4246:case 6968:return Ze+e+Qe+e+e;case 6187:if(!lt(e,/grab/))return ct(ct(ct(e,/(zoom-|grab)/,Ze+"$1"),/(image-set)/,Ze+"$1"),e,"")+e;case 5495:case 3959:return ct(e,/(image-set\([^]*)/,Ze+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return ct(e,/(.+)-inline(.+)/,Ze+"$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(ht(e)-1-t>6)switch(dt(e,t+1)){case 102:if(108===dt(e,t+3))return ct(e,/(.+:)(.+)-([^]+)/,"$1"+Ze+"$2-$3$1"+Qe+(108==dt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ut(e,"stretch")?Kt(ct(e,"stretch","fill-available"),t)+e:e}}return e}function Jt(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case rt:return void(e.return=Kt(e.value,e.length));case tt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(lt(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ut([St(e,{props:[ct(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Ut([St(e,{props:[ct(t,/:(plac\w+)/,":"+Ze+"input-$1")]}),St(e,{props:[ct(t,/:(plac\w+)/,":-moz-$1")]})],n)}return""})}}const Xt=e=>{(function(e){switch(e.type){case"@container":case"@media":case"@supports":case nt:return!0}return!1})(e)&&Array.isArray(e.children)&&e.children.sort((e,t)=>e.props[0]>t.props[0]?1:-1)};const Qt=/,( *[^ &])/g;function Zt(e,t,r){let n=t;return r.length>0&&(n=r.reduceRight((e,t)=>{return`${r=t,"&"+Xe(r.replace(Qt,",&$1"))} { ${e} }`;var r},t)),`${e}{${n}}`}function er(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=Zt(`.${r}`,Array.isArray(l)?`${l.map(e=>`${Je(o)}: ${e}`).join(";")};`:`${Je(o)}: ${l};`,n);if(a&&i){h+=Zt(`.${i}`,Array.isArray(s)?`${s.map(e=>`${Je(a)}: ${e}`).join(";")};`:`${Je(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 Ut(Lt(e),$t([Yt,Xt,Jt,Wt,Gt(e=>t.push(e))])),t}(h)}function tr(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+=Je(r)+":"+e+";"}else t+=Je(r)+":"+n+";"}return t}function rr(e){let t="";for(const r in e)t+=`${r}{${tr(e[r])}}`;return t}function nr(e,t){const r=[];return Ut(Lt(`@keyframes ${e} {${t}}`),$t([Wt,Jt,Gt(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 ir(e,t){return 0===e.length?t:`${e} and ${t}`}function ar(e){return"@media"===e.substr(0,6)}function sr(e){return"@layer"===e.substr(0,6)}const lr=/^(:|\[|>|&)/;function cr(e){return lr.test(e)}function ur(e){return"@supports"===e.substr(0,9)}function dr(e){return"@container"===e.substring(0,10)}function fr(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}const hr={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function pr(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 hr[t.slice(4,8)]||hr[t.slice(3,5)]||"d"}return"d"}function mr(e,t){return e?t+e:e}function gr(e){return mr(e.container,"c")+mr(e.media,"m")+mr(e.layer,"l")+mr(e.supports,"s")}function vr(e,t,r){const n=ye(e+gr(r)+t),o=n.charCodeAt(0);return o>=48&&o<=57?String.fromCharCode(o+17)+n.slice(1):n}function yr({property:e,selector:t,salt:r,value:n},o){return"f"+ye(r+t+gr(o)+e+n.trim())}function br(e){return e===ve}function wr(e){return e.replace(/>\s+/g,">")}function xr(e,t){}function kr(e){return or[e]}function Sr(e){var t;return null!==(t=null==e?void 0:e[0])&&void 0!==t?t:0}function _r(e,t,r,n){e[t]=n?[r,n]:r}function Cr(e,t){return t.length>0?[e,Object.fromEntries(t)]:e}function Tr(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(Cr(r,s)),n&&e[t].push(Cr(n,s))}function Er(e,t="",r=[],n={container:"",layer:"",media:"",supports:""},o={},i={},a){for(const s in e){if(ge.hasOwnProperty(s)){xr(0,e[s]);continue}const l=e[s];if(null!=l){if(br(l)){_r(o,vr(wr(r.join("")),s,n),0,void 0);continue}if("string"==typeof l||"number"==typeof l){const e=wr(r.join("")),c=kr(s);if(c){const e=c[1];Er(Object.fromEntries(e.map(e=>[e,ve])),t,r,n,o,i)}const u=vr(e,s,n),d=yr({value:l.toString(),salt:t,selector:e,property:s},n),f=a&&{key:s,value:a}||We(s,l),h=f.key!==s||f.value!==l,p=h?yr({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=pr(r,n),[v,y]=er(Object.assign({className:d,selectors:r,property:s,value:l},m),n);_r(o,u,d,p),Tr(i,g,v,y,n.media,Sr(c))}else if("animationName"===s){const e=Array.isArray(l)?l:[l],a=[],s=[];for(const t of e){const e=rr(t),r=rr(Ue(t)),o="f"+ye(e);let l;const c=nr(o,e);let u=[];e===r?l=o:(l="f"+ye(r),u=nr(l,r));for(let t=0;t<c.length;t++)Tr(i,"k",c[t],u[t],n.media,0);a.push(o),s.push(l)}Er({animationName:a.join(", ")},t,r,n,o,i,s.join(", "))}else if(Array.isArray(l)){if(0===l.length)continue;const e=wr(r.join("")),a=kr(s);if(a){const e=a[1];Er(Object.fromEntries(e.map(e=>[e,ve])),t,r,n,o,i)}const c=vr(e,s,n),u=yr({value:l.map(e=>(null!=e?e:"").toString()).join(";"),salt:t,selector:e,property:s},n),d=l.map(e=>We(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?yr({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=pr(r,n),[g,v]=er(Object.assign({className:u,selectors:r,property:s,value:l},p),n);_r(o,c,u,h),Tr(i,m,g,v,n.media,Sr(a))}else if(fr(l))if(cr(s))Er(l,t,r.concat(Xe(s)),n,o,i);else if(ar(s)){const e=ir(n.media,s.slice(6).trim());Er(l,t,r,Object.assign({},n,{media:e}),o,i)}else if(sr(s)){const e=(n.layer?`${n.layer}.`:"")+s.slice(6).trim();Er(l,t,r,Object.assign({},n,{layer:e}),o,i)}else if(ur(s)){const e=ir(n.supports,s.slice(9).trim());Er(l,t,r,Object.assign({},n,{supports:e}),o,i)}else if(dr(s)){const e=s.slice(10).trim();Er(l,t,r,Object.assign({},n,{container:e}),o,i)}}}return[o,i]}function Ar(e,t=Be){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]=Er(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 Pr(e,t,r=Be){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 Ir={border:function(...e){return Z(e[0])?Object.assign({},J(e[0]),e[1]&&K(e[1]),e[2]&&X(e[2])):Object.assign({},K(e[0]),e[1]&&J(e[1]),e[2]&&X(e[2]))},borderLeft:function(...e){return Z(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 Z(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 Z(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 Z(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:X,borderStyle:J,borderRadius:function(e,t=e,r=e,n=t){return{borderBottomRightRadius:r,borderBottomLeftRadius:n,borderTopRightRadius:t,borderTopLeftRadius:e}},borderWidth:K,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(te(t))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if((e=>"none"===e)(t))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(ee(t))return{flexGrow:t,flexShrink:1,flexBasis:0};if(ne(t))return{flexGrow:1,flexShrink:1,flexBasis:t}}if(r){const[t,r]=e;if(ee(r))return{flexGrow:t,flexShrink:r,flexBasis:0};if(ne(r))return{flexGrow:t,flexShrink:1,flexBasis:r}}if(n){const[t,r,n]=e;if(ee(t)&&ee(r)&&(te(n)||ne(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]:se(t)?t:"auto";return{gridRowStart:t,gridColumnStart:r,gridRowEnd:void 0!==e[2]?e[2]:se(t)?t:"auto",gridColumnEnd:void 0!==e[3]?e[3]:se(r)?r:"auto"}},margin:function(...e){return Y("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 Y("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&&le.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 ce.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 Br=y.useInsertionEffect?y.useInsertionEffect:void 0,Nr=()=>{const e={};return function(t,r){Br&&"undefined"!=typeof window&&window.document&&window.document.createElement?Br(()=>{t.insertCSSRules(r)},[t,r]):void 0===e[t.id]&&(t.insertCSSRules(r),e[t.id]=!0)}},Dr=g.createContext(Ie());function zr(){return g.useContext(Dr)}const Or=g.createContext("ltr"),Rr=({children:e,dir:t})=>g.createElement(Or.Provider,{value:t},e);function Mr(){return g.useContext(Or)}function jr(e){const t=Ar(e,Nr);return function(){const e=Mr(),r=zr();return t({dir:e,renderer:r})}}function Lr(e,t){const r=Pr(e,t,Nr);return function(){const e=Mr(),t=zr();return r({dir:e,renderer:t})}}function Fr(e,t,r){const n=function(e,t,r,n=Be){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,Nr);return function(){const e=Mr(),t=zr();return n({dir:e,renderer:t})}}const Vr=Symbol.for("fui.slotRenderFunction"),qr=Symbol.for("fui.slotElementType"),Hr=Symbol.for("fui.slotClassNameProp");function Ur(e,t){const{defaultProps:r,elementType:n}=t,o=function(e){if("string"==typeof e||"number"==typeof e||$r(e)||g.isValidElement(e))return{children:e};return e}(e),i={...r,...o,[qr]:n,[Hr]:null==o?void 0:o.className};return o&&"function"==typeof o.children&&(i[Vr]=o.children,i.children=null==r?void 0:r.children),i}function Wr(e,t){if(null!==e&&(void 0!==e||t.renderByDefault))return Ur(e,t)}const $r=e=>"object"==typeof e&&null!==e&&Symbol.iterator in e;function Gr(e){return Boolean(null==e?void 0:e.hasOwnProperty(qr))}const Yr=(...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},Kr=Yr(["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"]),Jr=Yr(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Xr=Yr(["itemID","itemProp","itemRef","itemScope","itemType"]),Qr=Yr(Jr,Kr,Xr),Zr=Yr(Qr,["form"]),en=Yr(Qr,["height","loop","muted","preload","src","width"]),tn=Yr(en,["poster"]),rn=Yr(Qr,["start"]),nn=Yr(Qr,["value"]),on=Yr(Qr,["download","href","hrefLang","media","rel","target","type"]),an=Yr(Qr,["dateTime"]),sn=Yr(Qr,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]);const ln={label:Zr,audio:en,video:tn,ol:rn,li:nn,a:on,button:sn,input:Yr(sn,["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:Yr(sn,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),select:Yr(sn,["form","multiple","required"]),option:Yr(Qr,["selected","value"]),table:Yr(Qr,["cellPadding","cellSpacing"]),tr:Qr,th:Yr(Qr,["colSpan","rowSpan","scope"]),td:Yr(Qr,["colSpan","headers","rowSpan","scope"]),colGroup:Yr(Qr,["span"]),col:Yr(Qr,["span"]),fieldset:Yr(Qr,["disabled","form"]),form:Yr(Qr,["acceptCharset","action","encType","encType","method","noValidate","target"]),iframe:Yr(Qr,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),img:Yr(Qr,["alt","crossOrigin","height","src","srcSet","useMap","width"]),time:an,dialog:Yr(Qr,["open","onCancel","onClose"])};function cn(e,t,r){const n=e&&ln[e]||Qr;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 un=({primarySlotTagName:e,props:t,excludedPropNames:r})=>({root:{style:t.style,className:t.className},primary:cn(e,t,[...r||[],"style","className"])}),dn=(e,t,r)=>{var n;return cn(null!==(n=t.as)&&void 0!==n?n:e,t,r)};function fn(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 hn=g.createContext(void 0),pn=hn.Provider,mn=g.createContext(void 0),gn=mn.Provider;const vn=g.createContext(void 0),yn={},bn=vn.Provider;const wn=g.createContext(void 0),xn={targetDocument:"object"==typeof document?document:void 0,dir:"ltr"},kn=wn.Provider;function Sn(){var e;return null!==(e=g.useContext(wn))&&void 0!==e?e:xn}const _n=g.createContext(void 0),Cn=_n.Provider;function Tn(){var e;return null!==(e=g.useContext(_n))&&void 0!==e?e:{}}const En=g.createContext(void 0),An=()=>{},Pn=En.Provider,In=e=>{var t,r;return null!==(r=null===(t=g.useContext(En))||void 0===t?void 0:t[e])&&void 0!==r?r:An},Bn=g.createContext(void 0);Bn.Provider;const Nn=e=>(e(0),0),Dn=e=>e;const zn=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 On(e.state)?[e.state,o]:[t,r]};const On=e=>{const[t]=g.useState(()=>void 0!==e);return t};function Rn(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}const Mn={current:0},jn=g.createContext(void 0);function Ln(){var e;return null!==(e=g.useContext(jn))&&void 0!==e?e:Mn}const Fn=Rn()?g.useLayoutEffect:g.useEffect,Vn=e=>{const t=g.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return Fn(()=>{t.current=e},[e]),g.useCallback((...e)=>(0,t.current)(...e),[t])};function qn(){const e=g.useRef(!0);return e.current?(e.current=!1,!0):e.current}const Hn=g.createContext(void 0);function Un(e="fui-",t){const r=Ln(),n=g.useContext(Hn)||"",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 Wn(...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}Hn.Provider;const $n=(e,t)=>!!(null==e?void 0:e.contains(t)),Gn=e=>{const{targetDocument:t}=Sn(),r=null==t?void 0:t.defaultView,{refs:n,callback:o,element:i,disabled:a,disabledFocusOnIframe:s,contains:l=$n}=e,c=g.useRef(void 0);Jn({element:i,disabled:s||a,callback:o,refs:n,contains:l});const u=g.useRef(!1),d=Vn(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=Vn(e=>{u.current=n.some(t=>l(t.current||null,e.target))});g.useEffect(()=>{if(a)return;let e=Yn(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])},Yn=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},Kn="fuiframefocus",Jn=e=>{const{disabled:t,element:r,callback:n,contains:o=$n,pollDuration:i=100,refs:a}=e,s=g.useRef(),l=Vn(e=>{a.every(t=>!o(t.current||null,e.target))&&!t&&n(e)});g.useEffect(()=>{if(!t)return null==r||r.addEventListener(Kn,l,!0),()=>{null==r||r.removeEventListener(Kn,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(Kn,{bubbles:!0});e.dispatchEvent(t)}},i),()=>{var e;null==r||null===(e=r.defaultView)||void 0===e||e.clearTimeout(s.current)}},[r,t,i])},Xn=e=>{const{refs:t,callback:r,element:n,disabled:o,contains:i}=e,a=Vn(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])},Qn=e=>-1,Zn=e=>{};function eo(){const{targetDocument:e}=Sn(),t=null==e?void 0:e.defaultView;return fn(t?t.setTimeout:Qn,t?t.clearTimeout:Zn)}const to=(e,t)=>{if("rtl"===t)switch(e){case"ArrowLeft":return"ArrowRight";case"ArrowRight":return"ArrowLeft"}return e};function ro(e,t){return(...r)=>{null==e||e(...r),null==t||t(...r)}}function no(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 oo(e){return Boolean(e.type.isFluentTriggerComponent)}function io(e,t){return"function"==typeof e?e(t):e?ao(e,t):e||null}function ao(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(oo(e)){const r=ao(e.props.children,t);return g.cloneElement(e,void 0,r)}return g.cloneElement(e,t)}function so(e){return g.isValidElement(e)?oo(e)?so(e.props.children):e:null}function lo(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 co(e,t){if(!e||!t)return!1;if(e===t)return!0;{const r=new WeakSet;for(;t;){const n=lo(t,{skipVirtual:r.has(t)});if(r.add(t),n===e)return!0;t=n}}return!1}function uo(e,t){e&&Object.assign(e,{_virtual:{parent:t}})}function fo(e,t){return function(r,n,o,i,a){return Gr(n)?t(function(e,t){return{...t,[qr]:e}}(r,n),null,o,i,a):Gr(r)?t(r,n,o,i,a):e(r,n,o,i,a)}}function ho(e){const{as:t,[Hr]:r,[qr]:n,[Vr]: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 po=m,mo=fo(po.jsx,(e,t,r)=>{const{elementType:n,renderFunction:o,props:i}=ho(e),a={...i,...t};return o?po.jsx(g.Fragment,{children:o(n,a)},r):po.jsx(n,a,r)}),go=fo(po.jsxs,(e,t,r)=>{const{elementType:n,renderFunction:o,props:i}=ho(e),a={...i,...t};return o?po.jsx(g.Fragment,{children:o(n,{...a,children:po.jsxs(g.Fragment,{children:a.children},void 0)})},r):po.jsxs(n,a,r)}),vo=g.createContext(void 0),yo={},bo=vo.Provider;var wo="undefined"!=typeof WeakRef,xo=class{constructor(e){wo&&"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}},ko="keyborg:focusin",So="keyborg:focusout";var _o=!1;function Co(e){const t=e.focus;t.__keyborgNativeFocus?t.__keyborgNativeFocus.call(e):e.focus()}var To=0,Eo=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"+ ++To,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(ko,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;_o||(_o=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(So,{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(ko,{cancelable:!0,bubbles:!0,composed:!0,detail:c});u.details=c,(_o||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(ko,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))Ao.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)}}},Ao=class e{constructor(e,t){this._cb=[],this._id="k"+ ++To,this._win=e;const r=e.__keyborg;r?(this._core=r.core,r.refs[this._id]=this):(this._core=new Eo(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 Po(e,t){return Ao.create(e,t)}function Io(e){Ao.dispose(e)}const Bo="data-tabster",No=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]","details > summary","audio[controls]","video[controls]"].join(", "),Do=1,zo=2,Oo=3,Ro=0,Mo=1,jo=2,Lo=0,Fo=1,Vo=0,qo=1,Ho=2,Uo=3,Wo=4,$o=1,Go=2,Yo=3,Ko=4,Jo=5,Xo=6,Qo=7,Zo=8,ei=2;function ti(e,t){var r;return null===(r=e.storageEntry(t))||void 0===r?void 0:r.tabster}function ri(e,t,r){var n,o;const i=r||e._noop?void 0:t.getAttribute(Bo);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 ni="tabster:movefocus",oi="tabster:mover:movefocus",ii="tabster:mover:memorized-element",ai="tabster:restorer:restore-focus",si="undefined"!=typeof CustomEvent?CustomEvent:function(){};class li extends si{constructor(e,t){super(e,{bubbles:!0,cancelable:!0,composed:!0,detail:t}),this.details=t}}class ci extends li{constructor(e){super("tabster:focusin",e)}}class ui extends li{constructor(e){super("tabster:focusout",e)}}class di extends li{constructor(e){super(ni,e)}}class fi extends li{constructor(e){super("tabster:mover:state",e)}}class hi extends li{constructor(e){super("tabster:modalizer:active",e)}}class pi extends li{constructor(e){super("tabster:modalizer:inactive",e)}}class mi extends li{constructor(){super(ai)}}class gi extends li{constructor(e){super("tabster:root:focus",e)}}class vi extends li{constructor(e){super("tabster:root:blur",e)}}const yi={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 bi;const wi="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),bi=!1}catch(bze){bi=!0}function ki(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 Si{constructor(e){this._target=e}deref(){return this._target}static cleanup(e,t){return!e._target||!(!t&&zi(e._target.ownerDocument,e._target))&&(delete e._target,!0)}}class _i{constructor(e,t,r){const n=ki(e);let o;n.WeakRef?o=new n.WeakRef(t):(o=new Si(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 Ci(e,t){const r=ki(e);r.fakeWeakRefs=r.fakeWeakRefs.filter(e=>!Si.cleanup(e,t))}function Ti(e){const t=ki(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,Ci(e),Ti(e)},12e4))}function Ei(e,t,r){if(t.nodeType!==Node.ELEMENT_NODE)return;const n=bi?r:{acceptNode:r};return yi.createTreeWalker(e,t,NodeFilter.SHOW_ELEMENT,n,!1)}function Ai(e,t){let r=t.__tabsterCacheId;const n=ki(e),o=r?n.containerBoundingRectCache[r]:void 0;if(o)return o.rect;const i=t.ownerDocument&&t.ownerDocument.documentElement;if(!i)return new wi;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 wi(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 Pi(e,t,r){const n=Ii(t);if(!n)return!1;const o=Ai(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 Ii(e){const t=e.ownerDocument;if(t){for(let t=yi.getParentElement(e);t;t=yi.getParentElement(t))if(t.scrollWidth>t.clientWidth||t.scrollHeight>t.clientHeight)return t;return t.documentElement}return null}function Bi(e){return!!e.__shouldIgnoreFocus}function Ni(e,t){const r=ki(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]&&zi(t.ownerDocument,t)&&(r.elementByUId[n]=new _i(e,t)),n}function Di(e,t){const r=ki(e);for(const n of Object.keys(r.elementByUId)){const e=r.elementByUId[n],o=e&&e.get();o&&t&&!yi.nodeContains(t,o)||delete r.elementByUId[n]}}function zi(e,t){return yi.nodeContains(null==e?void 0:e.body,t)}function Oi(e,t){const r=e.matches||e.matchesSelector||e.msMatchesSelector||e.webkitMatchesSelector;return r&&r.call(e,t)}let Ri=0;class Mi{constructor(e,t,r){const n=e.getWindow;this._tabster=e,this._element=new _i(n,t),this._props={...r},this.id="i"+ ++Ri}getElement(){return this._element.get()}getProps(){return this._props}setProps(e){this._props={...e}}}class ji{constructor(e,t,r,n,o){var i;this._focusIn=e=>{if(this._fixedTarget){const e=this._fixedTarget.get();return void(e&&Co(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=yi.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 Li=1,Fi=2,Vi=3;class qi{constructor(e,t,r,n,o,i){this._element=t,this._instance=new Ui(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 ji(e.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(i){let a,s;if("BODY"===t.tagName)a=t,s=r&&n||!r&&!n?yi.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=yi.getParentElement(t),s=r&&n||!r&&!n?t:yi.getNextElementSibling(t));do{o=r&&n||!r&&!n?yi.getPreviousElementSibling(s):s,i=Yi(o),i===t?s=r&&n||!r&&!n?o:yi.getNextElementSibling(o):i=null}while(i)}(null==a?void 0:a.dispatchEvent(new di({by:"root",owner:a,next:null,relatedEvent:o})))&&(yi.insertBefore(a,i,s),Co(i))}}static addPhantomDummyWithTarget(e,t,r,n){const o=new ji(e.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new _i(e.getWindow,n)).input;if(o){let e,n;t.querySelector(No)&&!r?(e=t,n=yi.getFirstElementChild(t)):(e=yi.getParentElement(t),n=r?t:yi.getNextElementSibling(t)),e&&yi.insertBefore(e,o,n)}}}class Hi{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=yi.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 _i(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 Ui{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&&Co(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 di({by:"root",owner:s,next:null,relatedEvent:t}))&&Co(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=yi.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===ei:(i||"UL"===u||"OL"===u||"TABLE"===u)&&!("LI"===u||"TD"===u||"TH"===u),this._firstDummy=new ji(this._getWindow,this._isOutside,{isFirst:!0},t),this._lastDummy=new ji(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=yi.getParentNode(n);if(e){const t=yi.getNextSibling(n);t!==i&&yi.insertBefore(e,i,t),yi.getPreviousElementSibling(n)!==o&&yi.insertBefore(e,o,n)}}else{yi.getLastElementChild(n)!==i&&yi.appendChild(n,i);const e=yi.getFirstElementChild(n);e&&e!==o&&e.parentNode&&yi.insertBefore(e.parentNode,o,e)}}}function Wi(e){let t=null;for(let r=yi.getLastElementChild(e);r;r=yi.getLastElementChild(r))t=r;return t||void 0}function $i(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 Gi(e){return"INPUT"===e.tagName&&!!e.name&&"radio"===e.type}function Yi(e){var t;return(null===(t=null==e?void 0:e.__tabsterDummyContainer)||void 0===t?void 0:t.get())||null}function Ki(e,t){const r=JSON.stringify(e);return!0===t?r:{[Bo]:r}}function Ji(e,t,r){let n;{const t=e.getAttribute(Bo);if(t)try{n=JSON.parse(t)}catch(bze){}}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(Bo,Ki(n,!0)):e.removeAttribute(Bo)}class Xi extends qi{constructor(e,t,r,n){super(e,t,Li,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 Co(t)}null===(t=e.input)||void 0===t||t.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=e,this._setFocused=r}}class Qi extends Mi{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 gi({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 vi({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=Ni(i,t),this._sys=o,(e.controlTab||e.rootDummyInputs)&&this.addDummyInputs();const a=i().document;a.addEventListener(ko,this._onFocusIn),a.addEventListener(So,this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new Xi(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var e;this._onDispose(this);const t=this._tabster.getWindow(),r=t.document;r.removeEventListener(ko,this._onFocusIn),r.removeEventListener(So,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&&Xi.moveWithPhantomDummy(this._tabster,r,!0,e,t)}}_add(){}_remove(){}}class Zi{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 Ji(r,{root:n}),ri(this._tabster,r),null===(e=ti(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 Qi(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=ti(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,k=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||!k||d&&!l||x&&b===t||!b.contains(t)||(h=k,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=ti(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 ea{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 ta{constructor(e){this._tabster=e}dispose(){}getProps(e){const t=ti(this._tabster,e);return t&&t.focusable||{}}isFocusable(e,t,r,n){return!(!Oi(e,No)||!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=yi.getParentElement(r)){const e=ti(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=Zi.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=Ei(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=Zi.getTabsterContext(this._tabster,i))||void 0===o?void 0:o.uncontrolled),!(!t||i))};if(s||(r.outOfDOMOrder=!0),s&&yi.nodeContains(a,s))y.currentNode=s;else if(f){const e=Wi(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||!yi.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(!yi.nodeContains(a,e))return NodeFilter.FILTER_REJECT;if(Yi(e))return NodeFilter.FILTER_REJECT;if(yi.nodeContains(t.rejectElementsFrom,e))return NodeFilter.FILTER_REJECT;const s=t.currentCtx=Zi.getTabsterContext(this._tabster,e);if(!s)return NodeFilter.FILTER_SKIP;if(Bi(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=Zi.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&&yi.nodeContains(n,o)&&yi.nodeContains(a,n)&&(!r||!f||yi.nodeContains(n,r))&&(f=u,o=n),r)if(r!==a&&yi.nodeContains(a,r)){if(!yi.nodeContains(r,e))return NodeFilter.FILTER_REJECT}else d=void 0;if(o)if(yi.nodeContains(a,o)){if(!yi.nodeContains(o,e))return NodeFilter.FILTER_REJECT}else f=void 0;d&&f&&(o&&r&&!yi.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&&Gi(e)&&!e.checked){const r=e.name;let n=t.cachedRadioGroups[r];if(n||(n=function(e){if(!Gi(e))return;const t=e.name;let r,n=Array.from(yi.getElementsByName(e,t));return n=n.filter(e=>!!Gi(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 ra="Tab",na="Escape",oa="PageUp",ia="PageDown",aa="End",sa="Home",la="ArrowLeft",ca="ArrowUp",ua="ArrowRight",da="ArrowDown";const fa={[zo]:0,[Oo]:1,[Do]:2};class ha extends ea{constructor(e,t){super(),this._init=()=>{const e=this._win(),t=e.document;t.addEventListener(ko,this._onFocusIn,!0),t.addEventListener(So,this._onFocusOut,!0),e.addEventListener("keydown",this._onKeyDown,!0);const r=yi.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!==ra||e.ctrlKey)return;const t=this.getVal();if(!t||!t.ownerDocument||"true"===t.contentEditable)return;const r=this._tabster,n=r.controlTab,o=Zi.getTabsterContext(r,t);if(!o||o.ignoreKeydown(e))return;const i=e.shiftKey,a=ha.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=ti(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||yi.nodeContains(u,t)){if(!a.outOfDOMOrder&&u===o.uncontrolled||c&&!yi.nodeContains(c,l))return;return void qi.addPhantomDummyWithTarget(r,t,i,l)}if(u&&r.focusable.isVisible(u)||"IFRAME"===l.tagName&&r.focusable.isVisible(l))return void(s.dispatchEvent(new di({by:"root",owner:s,next:l,relatedEvent:e}))&&qi.moveWithPhantomDummy(r,null!=u?u:l,!1,i,e));(n||(null==a?void 0:a.outOfDOMOrder))&&s.dispatchEvent(new di({by:"root",owner:s,next:l,relatedEvent:e}))&&(e.preventDefault(),e.stopImmediatePropagation(),Co(l))}else!c&&s.dispatchEvent(new di({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 ci(t));else{const e=null===(r=this._lastVal)||void 0===r?void 0:r.get();if(e){const r={...t},o=Zi.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 ui(r))}}},this._tabster=e,this._win=t,e.queueInit(this._init)}dispose(){super.dispose();const e=this._win(),t=e.document;t.removeEventListener(ko,this._onFocusIn,!0),t.removeEventListener(So,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 ha._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(e,t){var r,n;let o=ha._lastResetElement,i=o&&o.get();i&&yi.nodeContains(t,i)&&delete ha._lastResetElement,i=null===(n=null===(r=e._nextVal)||void 0===r?void 0:r.element)||void 0===n?void 0:n.get(),i&&yi.nodeContains(t,i)&&delete e._nextVal,o=e._lastVal,i=o&&o.get(),i&&yi.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&&!zi(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=Zi.getTabsterContext(this._tabster,n);t&&(i=null===(r=ha.findNextTabbable(this._tabster,t,n,void 0,void 0,!e,o))||void 0===r?void 0:r.element)}return i&&!yi.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"),ha._lastResetElement=new _i(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(fa[e]>fa[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=ha._lastResetElement)||void 0===n?void 0:n.get();if(ha._lastResetElement=void 0,t===e||Bi(e))return;i.isFocusedProgrammatically=r;const a=Zi.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 _i(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 _i(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=ha._isTabbingTimer,u=e.getWindow();c&&u.clearTimeout(c),ha.isTabbing=!0,ha._isTabbingTimer=u.setTimeout(()=>{delete ha._isTabbingTimer,ha.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&&yi.getParentElement(t.getElement());if(o){const s=Zi.getTabsterContext(e,n,{referenceElement:o});if(s){const n=t.getElement(),c=i?n:n&&Wi(n)||n;c&&(l=ha.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}}ha.isTabbing=!1;class pa extends ea{constructor(e){super(),this._onChange=e=>{this.setVal(e,void 0)},this._keyborg=Po(e()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),Io(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 ma=0;const ga="aria-hidden";class va extends qi{constructor(e,t,r){super(t,e,Fi,r),this._setHandlers((r,n)=>{var o,i;const a=e.get(),s=a&&(null===(o=Zi.getRoot(t,a))||void 0===o?void 0:o.getElement()),l=r.input;let c;if(s&&l){const e=Yi(l),r=Zi.getTabsterContext(t,e||l);r&&(c=null===(i=ha.findNextTabbable(t,r,s,l,void 0,n,!0))||void 0===i?void 0:i.element),c&&Co(c)}})}}class ya extends Mi{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 va(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 _i(this._tabster.getWindow,t)):n>=0&&r.splice(n,1)}this._dispatchEvent(e)}}focused(e){return e||(this._wasFocused=++ma),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 yi.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=Zi.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 hi(o):new pi(o);t.dispatchEvent(i),i.defaultPrevented&&(n=!0)}}return n}_remove(){}}class ba{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!==na)return;const r=this._tabster,n=r.focusedElement.getFocusedElement();if(n){const o=Zi.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=ti(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&&Zi.getTabsterContext(n,e);if(!o||!e)return;const i=this._augMap;for(let c=e;c;c=yi.getParentElement(c))i.has(c)&&(i.delete(c),$i(n,c,ga));let a=o.modalizer;const s=ti(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=Zi.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 ya(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&&yi.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=Zi.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=Zi.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&&(yi.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(yi.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),$i(t,e,ga)):r&&!(null===(n=this._accessibleCheck)||void 0===n?void 0:n.call(this,e,c))&&$i(t,e,ga,"true")&&(u.set(e,!0),i=!0),i&&(f.push(new _i(t.getWindow,e)),h.set(e,!0))},m=e=>{var r;for(let n=yi.getFirstElementChild(e);n;n=yi.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(yi.nodeContains(n,t)){o=!0;break}yi.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=Zi.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=Zi.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 wa=["input","textarea","*[contenteditable]"].join(", ");class xa extends qi{constructor(e,t,r,n){super(t,e,Vi,n),this._onFocusDummyInput=e=>{var t,r;const n=this._element.get(),o=e.input;if(n&&o){const i=Zi.getTabsterContext(this._tabster,n);let a;i&&(a=null===(t=ha.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&&Co(a)}},this._tabster=t,this._getMemorized=r,this._setHandlers(this._onFocusDummyInput)}}class ka extends Mi{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=Ni(this._win,e);let n,o=this._fullyVisible;if(t.intersectionRatio>=.25?(n=t.intersectionRatio>=.75?jo:Mo,n===jo&&(o=r)):n=Ro,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 fi(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 _i(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 fi(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&&Yi(e)===o;if(!o)return null;let a,s=null,l=!1;if(this._props.tabbable||i||e&&!yi.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(!ha.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)&&(!yi.nodeContains(s,t.from)||Yi(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=Ni(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===jo||o===Mo&&(i===Mo||!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=yi.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=Ei(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=yi.getFirstElementChild(e);t;t=yi.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=yi.getParentElement(r)){const e=ti(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=Ni(this._win,e);if(t in this._visible){const r=this._visible[t]||Ro;return{isCurrent:this._current?this._current.get()===e:void 0,visibility:r}}}}class Sa{constructor(e,t){this._init=()=>{const e=this._win();e.addEventListener("keydown",this._onKeyDown,!0),e.addEventListener(oi,this._onMoveFocus),e.addEventListener(ii,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=yi.getParentElement(e);o;o=yi.getParentElement(o)){const e=null===(t=ti(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===da?n=Go:r===ua?n=Ko:r===ca?n=$o:r===la?n=Yo:r===ia?n=Xo:r===oa?n=Jo:r===sa?n=Qo:r===aa&&(n=Zo),!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=Zi.getTabsterContext(this._tabster,r),o=null==t?void 0:t.mover;o&&(n&&!yi.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(ii,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 ka(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=Zi.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=yi.getParentElement(e.getElement());t&&t!==l;t=yi.getParentElement(t))if(null===(o=null===(n=ti(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||Vo,f=d===Vo,h=f||d===qo,p=f||d===Ho,m=d===Wo,g=m||d===Uo,v=u.cyclic;let y,b,w,x=0,k=0;if(g&&(w=e.getBoundingClientRect(),x=Math.ceil(w.left),k=Math.floor(w.right)),a.rtl&&(t===Ko?t=Yo:t===Yo&&(t=Ko)),t===Go&&h||t===Ko&&(p||g))if(y=c.findNext({currentElement:e,container:l,useActiveModalizer:!0}),y&&g){const e=Math.ceil(y.getBoundingClientRect().left);!m&&k>e&&(y=void 0)}else!y&&v&&(y=c.findFirst({container:l,useActiveModalizer:!0}));else if(t===$o&&h||t===Yo&&(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===Qo)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===Zo)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===Jo){if(c.findElement({currentElement:e,container:l,useActiveModalizer:!0,isBackward:!0,acceptCondition:e=>!!c.isFocusable(e)&&(!Pi(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===Xo){if(c.findElement({currentElement:e,container:l,useActiveModalizer:!0,acceptCondition:e=>!!c.isFocusable(e)&&(!Pi(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===$o,n=x,o=Math.ceil(w.top),i=k,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 di({by:"mover",owner:l,next:y,relatedEvent:r})))?(void 0!==b&&function(e,t,r){const n=Ii(t);if(n){const o=Ai(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()),Co(y),y):null}async _isIgnoredInput(e,t){if("true"===e.getAttribute("aria-expanded")&&e.hasAttribute("aria-activedescendant"))return!0;if(Oi(e,wa)){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=yi.getSelection(e);if(r){const e=r.toString().length,n=t===la||t===ca;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=ki(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}=yi.getSelection(e)||{};this._ignoredInputTimer=r.setTimeout(()=>{var t,r,u;delete this._ignoredInputTimer;const{anchorNode:d,focusNode:f,anchorOffset:h,focusOffset:p}=yi.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&&yi.nodeContains(e,d)&&yi.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&&!yi.getFirstChild(e)){const e=i.length;t?f!==d&&(o+=e):(n+=e,o+=e)}let a=!1;for(let t=yi.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===la||t===ca||t===sa))return!0;if(n<i&&(t===ua||t===da||t===aa))return!0}return!1}}class _a{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 Ca extends Mi{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 mi),r&&!yi.nodeContains(r,e.relatedTarget)&&(this._hasFocus=!1)},this._onFocusIn=()=>{this._hasFocus=!0},this._props.type===Lo){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=yi.nodeContains(e,e&&yi.getActiveElement(e.ownerDocument))}}dispose(){var e;if(this._props.type===Lo){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 mi)}}}}class Ta{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>Ta.DEPTH&&this._stack.shift(),this._stack.push(new _i(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&&yi.nodeContains(r.body,yi.getParentElement(n))&&e(n))return n}}}Ta.DEPTH=10;class Ea{constructor(e){this._onRestoreFocus=e=>{var t,r;this._focusedElementState.cancelAsyncFocus(zo);const n=e.composedPath()[0];if(n){const e=null===(r=null===(t=ti(this._tabster,n))||void 0===t?void 0:t.restorer)||void 0===r?void 0:r.getProps().id;this._focusedElementState.requestAsyncFocus(zo,()=>this._restoreFocus(n,e),0)}},this._onFocusIn=e=>{var t;if(!e)return;const r=ti(this._tabster,e);(null===(t=null==r?void 0:r.restorer)||void 0===t?void 0:t.getProps().type)===Fo&&this._history.push(e)},this._restoreFocus=(e,t)=>{var r;const n=this._getWindow().document;if(yi.getActiveElement(n)!==n.body)return;if(!this._keyboardNavState.isNavigatingWithKeyboard()&&yi.nodeContains(n.body,e))return;const o=e=>{var t,r;const n=null===(r=null===(t=ti(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(ai,this._onRestoreFocus),this._history=new Ta(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(zo),e.removeEventListener(ai,this._onRestoreFocus)}createRestorer(e,t){const r=new Ca(this._tabster,e,t);return t.type===Fo&&yi.getActiveElement(e.ownerDocument)===e&&this._history.push(e),r}}class Aa{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 Pa{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))yi[t]=e[t]}({...t.DOMAPI}),this.keyboardNavigation=new pa(o),this.focusedElement=new ha(this,o),this.focusable=new ta(this),this.root=new Zi(this,null==t?void 0:t.autoRoot),this.uncontrolled=new _a((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 Hi(o),this.getParent=null!==(n=null==t?void 0:t.getParent)&&void 0!==n?n:yi.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=ki(o).elementByUId),s(t,r);const n=Ei(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 _i(o,e))),(ti(t,e)||e.hasAttribute(Bo))&&r(t,e,n),NodeFilter.FILTER_SKIP}const l=yi.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===Bo&&(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:[Bo]}),()=>{l.disconnect()}}(t,this,ri,e)}}},Ti(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 Aa(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=ki(e);t.fakeWeakRefsStarted=!1,t.fakeWeakRefsTimer&&(e().clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefsTimer=void 0,t.fakeWeakRefs=[])}(this.getWindow),Di(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())Di(this.getWindow,e),ha.forgetMemorized(this.focusedElement,e)},0),Ci(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 Ia(e){const t=e.core;return t.mover||(t.mover=new Sa(t,t.getWindow)),t.mover}function Ba(e,t,r){const n=e.core;return n.modalizer||(n.modalizer=new ba(n,t,r)),n.modalizer}function Na(e){const t=e.core;return t.restorer||(t.restorer=new Ea(t)),t.restorer}const Da=e=>e;function za(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 Pa(e,t),e.__tabsterInstance=r,r.createTabster())}(t,{autoRoot:{},controlTab:!1,getParent:lo,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 Oa(e=Da){const{targetDocument:t}=Sn(),r=g.useRef(null);return Fn(()=>{const n=za(t);if(n)return r.current=e(n),()=>{!function(e,t){e.core.disposeTabster(e,t)}(n),r.current=null}},[t,e]),r}const Ra=e=>{Oa();const t=Ki(e,!0);return g.useMemo(()=>({[Bo]:t}),[t])},Ma=(e={})=>{const{circular:t,axis:r,memorizeCurrent:n=!0,tabbable:o,ignoreDefaultKeydown:i,unstable_hasDefault:a}=e;return Oa(Ia),Ra({mover:{cyclic:!!t,direction:ja(null!=r?r:"vertical"),memorizeCurrent:n,tabbable:o,hasDefault:a},...i&&{focusable:{ignoreKeydown:i}}})};function ja(e){switch(e){case"horizontal":return Ho;case"grid":return Uo;case"grid-linear":return Wo;case"both":return Vo;default:return qo}}const La=()=>{const e=Oa(),{targetDocument:t}=Sn();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])}},Fa="data-fui-focus-visible",Va="data-fui-focus-within";function qa(e,t){if(Ha(e))return()=>{};const r={current:void 0},n=Po(t);function o(e){n.isNavigatingWithKeyboard()&&no(e)&&(r.current=e,e.setAttribute(Fa,""))}function i(){r.current&&(r.current.removeAttribute(Fa),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||no(t.relatedTarget)&&!e.contains(t.relatedTarget))&&i()};return e.addEventListener(ko,a),e.addEventListener("focusout",s),e.focusVisible=!0,e.contains(t.document.activeElement)&&o(t.document.activeElement),()=>{i(),e.removeEventListener(ko,a),e.removeEventListener("focusout",s),e.focusVisible=void 0,Io(n)}}function Ha(e){return!!e&&(!!e.focusVisible||Ha(null==e?void 0:e.parentElement))}function Ua(e={}){const t=Sn(),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 qa(r.current,o.defaultView)},[r,o]),r}function Wa(e,t){const r=Po(t);r.subscribe(t=>{t||$a(e)});const n=t=>{r.isNavigatingWithKeyboard()&&Ga(t.target)&&e.setAttribute(Va,"")},o=t=>{(!t.relatedTarget||Ga(t.relatedTarget)&&!e.contains(t.relatedTarget))&&$a(e)};return e.addEventListener(ko,n),e.addEventListener("focusout",o),()=>{e.removeEventListener(ko,n),e.removeEventListener("focusout",o),Io(r)}}function $a(e){e.removeAttribute(Va)}function Ga(e){return!!e&&Boolean(e&&"object"==typeof e&&"classList"in e&&"contains"in e)}function Ya(){const{targetDocument:e}=Sn(),t=g.useRef(null);return g.useEffect(()=>{if((null==e?void 0:e.defaultView)&&t.current)return Wa(t.current,e.defaultView)},[t,e]),t}function Ka(){const{targetDocument:e}=Sn(),t=g.useRef(null);return g.useEffect(()=>{const r=null==e?void 0:e.defaultView;if(r){const e=Po(r);return t.current=e,()=>{Io(e),t.current=null}}},[e]),t}function Ja(e){const t=Ka(),r=Vn(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 Xa=e=>e.hasAttribute("data-tabster-never-hide");function Qa(e){Ba(e,void 0,Xa),Na(e)}const Za=(e={})=>{const{trapFocus:t,alwaysFocusable:r,legacyTrapFocus:n}=e;Oa(Qa);const o=Un("modal-",e.id);return{modalAttributes:Ra({restorer:{type:Lo},...t&&{modalizer:{id:o,isOthersAccessible:!t,isAlwaysAccessible:r,isTrapped:n&&t}}}),triggerAttributes:Ra({restorer:{type:Fo}})}};const es="#050505",ts="#0a0a0a",rs="#0f0f0f",ns="#141414",os="#1a1a1a",is="#1f1f1f",as="#242424",ss="#292929",ls="#2e2e2e",cs="#333333",us="#383838",ds="#3d3d3d",fs="#424242",hs="#4d4d4d",ps="#525252",ms="#575757",gs="#5c5c5c",vs="#616161",ys="#666666",bs="#6b6b6b",ws="#707070",xs="#757575",ks="#999999",Ss="#adadad",_s="#b3b3b3",Cs="#bdbdbd",Ts="#c7c7c7",Es="#d1d1d1",As="#d6d6d6",Ps="#dbdbdb",Is="#e0e0e0",Bs="#e6e6e6",Ns="#ebebeb",Ds="#f0f0f0",zs="#f5f5f5",Os="#fafafa",Rs="rgba(255, 255, 255, 0.05)",Ms="rgba(255, 255, 255, 0.1)",js="rgba(255, 255, 255, 0.2)",Ls="rgba(255, 255, 255, 0.4)",Fs="rgba(255, 255, 255, 0.5)",Vs="rgba(255, 255, 255, 0.6)",qs="rgba(255, 255, 255, 0.7)",Hs="rgba(255, 255, 255, 0.8)",Us="rgba(0, 0, 0, 0.05)",Ws="rgba(0, 0, 0, 0.1)",$s="rgba(0, 0, 0, 0.2)",Gs="rgba(0, 0, 0, 0.3)",Ys="rgba(0, 0, 0, 0.4)",Ks="rgba(0, 0, 0, 0.5)",Js="rgba(26, 26, 26, 0.5)",Xs="rgba(31, 31, 31, 0.7)",Qs="rgba(36, 36, 36, 0.5)",Zs="rgba(36, 36, 36, 0.8)",el="#ffffff",tl="#000000",rl={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},nl={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},ol={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:nl,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"}},il={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:rl,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"}},al={cranberry:rl,green:nl,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"}},sl=["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"],cl={success:"green",warning:"orange",danger:"cranberry"},ul=sl.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background1`]:ol[t].tint60,[`colorPalette${r}Background2`]:ol[t].tint40,[`colorPalette${r}Background3`]:ol[t].primary,[`colorPalette${r}Foreground1`]:ol[t].shade10,[`colorPalette${r}Foreground2`]:ol[t].shade30,[`colorPalette${r}Foreground3`]:ol[t].primary,[`colorPalette${r}BorderActive`]:ol[t].primary,[`colorPalette${r}Border1`]:ol[t].tint40,[`colorPalette${r}Border2`]:ol[t].primary};return Object.assign(e,n)},{});ul.colorPaletteYellowForeground1=ol.yellow.shade30,ul.colorPaletteRedForegroundInverted=ol.red.tint20,ul.colorPaletteGreenForegroundInverted=ol.green.tint20,ul.colorPaletteYellowForegroundInverted=ol.yellow.tint40;const dl=ll.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background2`]:il[t].tint40,[`colorPalette${r}Foreground2`]:il[t].shade30,[`colorPalette${r}BorderActive`]:il[t].primary};return Object.assign(e,n)},{}),fl={...ul,...dl},hl=Object.entries(cl).reduce((e,[t,r])=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorStatus${n}Background1`]:al[r].tint60,[`colorStatus${n}Background2`]:al[r].tint40,[`colorStatus${n}Background3`]:al[r].primary,[`colorStatus${n}Foreground1`]:al[r].shade10,[`colorStatus${n}Foreground2`]:al[r].shade30,[`colorStatus${n}Foreground3`]:al[r].primary,[`colorStatus${n}ForegroundInverted`]:al[r].tint30,[`colorStatus${n}BorderActive`]:al[r].primary,[`colorStatus${n}Border1`]:al[r].tint40,[`colorStatus${n}Border2`]:al[r].primary};return Object.assign(e,o)},{});hl.colorStatusDangerBackground3Hover=al[cl.danger].shade10,hl.colorStatusDangerBackground3Pressed=al[cl.danger].shade20,hl.colorStatusWarningForeground1=al[cl.warning].shade20,hl.colorStatusWarningForeground3=al[cl.warning].shade20,hl.colorStatusWarningBorder2=al[cl.warning].shade20;const pl={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},ml={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"},vl={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},yl={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},bl={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},wl={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"},xl="0",kl="2px",Sl="4px",_l="6px",Cl="8px",Tl="10px",El="12px",Al="16px",Pl="20px",Il="24px",Bl="32px",Nl={spacingHorizontalNone:xl,spacingHorizontalXXS:kl,spacingHorizontalXS:Sl,spacingHorizontalSNudge:_l,spacingHorizontalS:Cl,spacingHorizontalMNudge:Tl,spacingHorizontalM:El,spacingHorizontalL:Al,spacingHorizontalXL:Pl,spacingHorizontalXXL:Il,spacingHorizontalXXXL:Bl},Dl={spacingVerticalNone:xl,spacingVerticalXXS:kl,spacingVerticalXS:Sl,spacingVerticalSNudge:_l,spacingVerticalS:Cl,spacingVerticalMNudge:Tl,spacingVerticalM:El,spacingVerticalL:Al,spacingVerticalXL:Pl,spacingVerticalXXL:Il,spacingVerticalXXXL:Bl},zl={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},Ol="var(--colorNeutralForeground1)",Rl="var(--colorNeutralForeground3)",Ml="var(--colorNeutralForeground3Hover)",jl="var(--colorNeutralForegroundOnBrand)",Ll="var(--colorBrandForeground1)",Fl="var(--colorBrandForeground2)",Vl="var(--colorNeutralForeground1Static)",ql="var(--colorNeutralBackground1)",Hl="var(--colorNeutralBackground4)",Ul="var(--colorNeutralBackground5)",Wl="var(--colorTransparentBackground)",$l="var(--colorNeutralStencil1)",Gl="var(--colorBrandBackground)",Yl="var(--colorNeutralStroke1)",Kl="var(--colorNeutralStroke2)",Jl="var(--colorBrandStroke2)",Xl="var(--colorTransparentStroke)",Ql="var(--colorPaletteRedBackground3)",Zl="var(--colorPaletteGreenBackground1)",ec="var(--colorPaletteMarigoldBackground1)",tc="var(--colorPaletteMarigoldBackground3)",rc="var(--colorPaletteMarigoldBorder1)",nc="var(--colorPaletteMarigoldForeground2)",oc="var(--colorStatusSuccessBackground3)",ic="var(--colorStatusSuccessForeground1)",ac="var(--colorStatusSuccessBorder1)",sc="var(--colorStatusDangerBackground1)",lc="var(--colorStatusDangerBackground3)",cc="var(--colorStatusDangerBackground3Hover)",uc="var(--colorStatusDangerBackground3Pressed)",dc="var(--colorStatusDangerForeground3)",fc="var(--colorStatusDangerBorder1)",hc="var(--fontFamilyBase)",pc="var(--fontSizeBase300)",mc="var(--fontWeightRegular)",gc="var(--fontWeightSemibold)",vc="var(--lineHeightBase300)",yc="var(--spacingHorizontalXS)",bc="var(--spacingHorizontalS)";function wc(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 xc={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"},kc=sl.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background1`]:ol[t].shade40,[`colorPalette${r}Background2`]:ol[t].shade30,[`colorPalette${r}Background3`]:ol[t].primary,[`colorPalette${r}Foreground1`]:ol[t].tint30,[`colorPalette${r}Foreground2`]:ol[t].tint40,[`colorPalette${r}Foreground3`]:ol[t].tint20,[`colorPalette${r}BorderActive`]:ol[t].tint30,[`colorPalette${r}Border1`]:ol[t].primary,[`colorPalette${r}Border2`]:ol[t].tint20};return Object.assign(e,n)},{});kc.colorPaletteRedForeground3=ol.red.tint30,kc.colorPaletteRedBorder2=ol.red.tint30,kc.colorPaletteGreenForeground3=ol.green.tint40,kc.colorPaletteGreenBorder2=ol.green.tint40,kc.colorPaletteDarkOrangeForeground3=ol.darkOrange.tint30,kc.colorPaletteDarkOrangeBorder2=ol.darkOrange.tint30,kc.colorPaletteRedForegroundInverted=ol.red.primary,kc.colorPaletteGreenForegroundInverted=ol.green.primary,kc.colorPaletteYellowForegroundInverted=ol.yellow.shade30;const Sc=ll.reduce((e,t)=>{const r=t.slice(0,1).toUpperCase()+t.slice(1),n={[`colorPalette${r}Background2`]:il[t].shade30,[`colorPalette${r}Foreground2`]:il[t].tint40,[`colorPalette${r}BorderActive`]:il[t].tint30};return Object.assign(e,n)},{});Sc.colorPaletteDarkRedBackground2=il.darkRed.shade20,Sc.colorPalettePlumBackground2=il.plum.shade20;const _c={...kc,...Sc},Cc=Object.entries(cl).reduce((e,[t,r])=>{const n=t.slice(0,1).toUpperCase()+t.slice(1),o={[`colorStatus${n}Background1`]:al[r].shade40,[`colorStatus${n}Background2`]:al[r].shade30,[`colorStatus${n}Background3`]:al[r].primary,[`colorStatus${n}Foreground1`]:al[r].tint30,[`colorStatus${n}Foreground2`]:al[r].tint40,[`colorStatus${n}Foreground3`]:al[r].tint20,[`colorStatus${n}BorderActive`]:al[r].tint30,[`colorStatus${n}ForegroundInverted`]:al[r].shade10,[`colorStatus${n}Border1`]:al[r].primary,[`colorStatus${n}Border2`]:al[r].tint20};return Object.assign(e,o)},{});Cc.colorStatusDangerBackground3Hover=al[cl.danger].shade10,Cc.colorStatusDangerBackground3Pressed=al[cl.danger].shade20,Cc.colorStatusDangerForeground3=al[cl.danger].tint40,Cc.colorStatusDangerBorder2=al[cl.danger].tint30,Cc.colorStatusSuccessForeground3=al[cl.success].tint40,Cc.colorStatusSuccessBorder2=al[cl.success].tint40,Cc.colorStatusWarningForegroundInverted=al[cl.warning].shade20;const Tc=(e=>{const t=(e=>({colorNeutralForeground1:as,colorNeutralForeground1Hover:as,colorNeutralForeground1Pressed:as,colorNeutralForeground1Selected:as,colorNeutralForeground2:fs,colorNeutralForeground2Hover:as,colorNeutralForeground2Pressed:as,colorNeutralForeground2Selected:as,colorNeutralForeground2BrandHover:e[80],colorNeutralForeground2BrandPressed:e[70],colorNeutralForeground2BrandSelected:e[80],colorNeutralForeground3:vs,colorNeutralForeground3Hover:fs,colorNeutralForeground3Pressed:fs,colorNeutralForeground3Selected:fs,colorNeutralForeground3BrandHover:e[80],colorNeutralForeground3BrandPressed:e[70],colorNeutralForeground3BrandSelected:e[80],colorNeutralForeground4:ws,colorNeutralForegroundDisabled:Cs,colorNeutralForegroundInvertedDisabled:Ls,colorBrandForegroundLink:e[70],colorBrandForegroundLinkHover:e[60],colorBrandForegroundLinkPressed:e[40],colorBrandForegroundLinkSelected:e[70],colorNeutralForeground2Link:fs,colorNeutralForeground2LinkHover:as,colorNeutralForeground2LinkPressed:as,colorNeutralForeground2LinkSelected:as,colorCompoundBrandForeground1:e[80],colorCompoundBrandForeground1Hover:e[70],colorCompoundBrandForeground1Pressed:e[60],colorBrandForeground1:e[80],colorBrandForeground2:e[70],colorBrandForeground2Hover:e[60],colorBrandForeground2Pressed:e[30],colorNeutralForeground1Static:as,colorNeutralForegroundStaticInverted:el,colorNeutralForegroundInverted:el,colorNeutralForegroundInvertedHover:el,colorNeutralForegroundInvertedPressed:el,colorNeutralForegroundInvertedSelected:el,colorNeutralForegroundInverted2:el,colorNeutralForegroundOnBrand:el,colorNeutralForegroundInvertedLink:el,colorNeutralForegroundInvertedLinkHover:el,colorNeutralForegroundInvertedLinkPressed:el,colorNeutralForegroundInvertedLinkSelected:el,colorBrandForegroundInverted:e[100],colorBrandForegroundInvertedHover:e[110],colorBrandForegroundInvertedPressed:e[100],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:el,colorNeutralBackground1Hover:zs,colorNeutralBackground1Pressed:Is,colorNeutralBackground1Selected:Ns,colorNeutralBackground2:Os,colorNeutralBackground2Hover:Ds,colorNeutralBackground2Pressed:Ps,colorNeutralBackground2Selected:Bs,colorNeutralBackground3:zs,colorNeutralBackground3Hover:Ns,colorNeutralBackground3Pressed:As,colorNeutralBackground3Selected:Is,colorNeutralBackground4:Ds,colorNeutralBackground4Hover:Os,colorNeutralBackground4Pressed:zs,colorNeutralBackground4Selected:el,colorNeutralBackground5:Ns,colorNeutralBackground5Hover:zs,colorNeutralBackground5Pressed:Ds,colorNeutralBackground5Selected:Os,colorNeutralBackground6:Bs,colorNeutralBackgroundInverted:ss,colorNeutralBackgroundStatic:cs,colorNeutralBackgroundAlpha:Fs,colorNeutralBackgroundAlpha2:Hs,colorSubtleBackground:"transparent",colorSubtleBackgroundHover:zs,colorSubtleBackgroundPressed:Is,colorSubtleBackgroundSelected:Ns,colorSubtleBackgroundLightAlphaHover:qs,colorSubtleBackgroundLightAlphaPressed:Fs,colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:Ws,colorSubtleBackgroundInvertedPressed:Gs,colorSubtleBackgroundInvertedSelected:$s,colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:Ds,colorNeutralBackgroundInvertedDisabled:Ms,colorNeutralStencil1:Bs,colorNeutralStencil2:Os,colorNeutralStencil1Alpha:Ws,colorNeutralStencil2Alpha:Us,colorBackgroundOverlay:Ys,colorScrollbarOverlay:Ks,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:el,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:Os,colorNeutralCardBackgroundHover:el,colorNeutralCardBackgroundPressed:zs,colorNeutralCardBackgroundSelected:Ns,colorNeutralCardBackgroundDisabled:Ds,colorNeutralStrokeAccessible:vs,colorNeutralStrokeAccessibleHover:ms,colorNeutralStrokeAccessiblePressed:hs,colorNeutralStrokeAccessibleSelected:e[80],colorNeutralStroke1:Es,colorNeutralStroke1Hover:Ts,colorNeutralStroke1Pressed:_s,colorNeutralStroke1Selected:Cs,colorNeutralStroke2:Is,colorNeutralStroke3:Ds,colorNeutralStrokeSubtle:Is,colorNeutralStrokeOnBrand:el,colorNeutralStrokeOnBrand2:el,colorNeutralStrokeOnBrand2Hover:el,colorNeutralStrokeOnBrand2Pressed:el,colorNeutralStrokeOnBrand2Selected:el,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:Is,colorNeutralStrokeInvertedDisabled:Ls,colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:Us,colorNeutralStrokeAlpha2:js,colorStrokeFocus1:el,colorStrokeFocus2:tl,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{...pl,...vl,...yl,...wl,...bl,...zl,...Nl,...Dl,...gl,...ml,...t,...fl,...hl,...wc(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...wc(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}})(xc),Ec=(e=>{const t=(e=>({colorNeutralForeground1:el,colorNeutralForeground1Hover:el,colorNeutralForeground1Pressed:el,colorNeutralForeground1Selected:el,colorNeutralForeground2:As,colorNeutralForeground2Hover:el,colorNeutralForeground2Pressed:el,colorNeutralForeground2Selected:el,colorNeutralForeground2BrandHover:e[100],colorNeutralForeground2BrandPressed:e[90],colorNeutralForeground2BrandSelected:e[100],colorNeutralForeground3:Ss,colorNeutralForeground3Hover:As,colorNeutralForeground3Pressed:As,colorNeutralForeground3Selected:As,colorNeutralForeground3BrandHover:e[100],colorNeutralForeground3BrandPressed:e[90],colorNeutralForeground3BrandSelected:e[100],colorNeutralForeground4:ks,colorNeutralForegroundDisabled:gs,colorNeutralForegroundInvertedDisabled:Ls,colorBrandForegroundLink:e[100],colorBrandForegroundLinkHover:e[110],colorBrandForegroundLinkPressed:e[90],colorBrandForegroundLinkSelected:e[100],colorNeutralForeground2Link:As,colorNeutralForeground2LinkHover:el,colorNeutralForeground2LinkPressed:el,colorNeutralForeground2LinkSelected:el,colorCompoundBrandForeground1:e[100],colorCompoundBrandForeground1Hover:e[110],colorCompoundBrandForeground1Pressed:e[90],colorBrandForeground1:e[100],colorBrandForeground2:e[110],colorBrandForeground2Hover:e[130],colorBrandForeground2Pressed:e[160],colorNeutralForeground1Static:as,colorNeutralForegroundStaticInverted:el,colorNeutralForegroundInverted:as,colorNeutralForegroundInvertedHover:as,colorNeutralForegroundInvertedPressed:as,colorNeutralForegroundInvertedSelected:as,colorNeutralForegroundInverted2:as,colorNeutralForegroundOnBrand:el,colorNeutralForegroundInvertedLink:el,colorNeutralForegroundInvertedLinkHover:el,colorNeutralForegroundInvertedLinkPressed:el,colorNeutralForegroundInvertedLinkSelected:el,colorBrandForegroundInverted:e[80],colorBrandForegroundInvertedHover:e[70],colorBrandForegroundInvertedPressed:e[60],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:ss,colorNeutralBackground1Hover:ds,colorNeutralBackground1Pressed:is,colorNeutralBackground1Selected:us,colorNeutralBackground2:is,colorNeutralBackground2Hover:cs,colorNeutralBackground2Pressed:ns,colorNeutralBackground2Selected:ls,colorNeutralBackground3:ns,colorNeutralBackground3Hover:ss,colorNeutralBackground3Pressed:ts,colorNeutralBackground3Selected:as,colorNeutralBackground4:ts,colorNeutralBackground4Hover:is,colorNeutralBackground4Pressed:tl,colorNeutralBackground4Selected:os,colorNeutralBackground5:tl,colorNeutralBackground5Hover:ns,colorNeutralBackground5Pressed:es,colorNeutralBackground5Selected:rs,colorNeutralBackground6:cs,colorNeutralBackgroundInverted:el,colorNeutralBackgroundStatic:ds,colorNeutralBackgroundAlpha:Js,colorNeutralBackgroundAlpha2:Xs,colorSubtleBackground:"transparent",colorSubtleBackgroundHover:us,colorSubtleBackgroundPressed:ls,colorSubtleBackgroundSelected:cs,colorSubtleBackgroundLightAlphaHover:Zs,colorSubtleBackgroundLightAlphaPressed:Qs,colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:Ws,colorSubtleBackgroundInvertedPressed:Gs,colorSubtleBackgroundInvertedSelected:$s,colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:ns,colorNeutralBackgroundInvertedDisabled:Ms,colorNeutralStencil1:ms,colorNeutralStencil2:cs,colorNeutralStencil1Alpha:Ms,colorNeutralStencil2Alpha:Rs,colorBackgroundOverlay:Ks,colorScrollbarOverlay:Vs,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:el,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:cs,colorNeutralCardBackgroundHover:ds,colorNeutralCardBackgroundPressed:ls,colorNeutralCardBackgroundSelected:us,colorNeutralCardBackgroundDisabled:ns,colorNeutralStrokeAccessible:Ss,colorNeutralStrokeAccessibleHover:Cs,colorNeutralStrokeAccessiblePressed:_s,colorNeutralStrokeAccessibleSelected:e[100],colorNeutralStroke1:ys,colorNeutralStroke1Hover:xs,colorNeutralStroke1Pressed:bs,colorNeutralStroke1Selected:ws,colorNeutralStroke2:ps,colorNeutralStroke3:ds,colorNeutralStrokeSubtle:ts,colorNeutralStrokeOnBrand:ss,colorNeutralStrokeOnBrand2:el,colorNeutralStrokeOnBrand2Hover:el,colorNeutralStrokeOnBrand2Pressed:el,colorNeutralStrokeOnBrand2Selected:el,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:fs,colorNeutralStrokeInvertedDisabled:Ls,colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:Ms,colorNeutralStrokeAlpha2:js,colorStrokeFocus1:tl,colorStrokeFocus2:el,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{...pl,...vl,...yl,...wl,...bl,...zl,...Nl,...Dl,...gl,...ml,...t,..._c,...Cc,...wc(t.colorNeutralShadowAmbient,t.colorNeutralShadowKey),...wc(t.colorBrandShadowAmbient,t.colorBrandShadowKey,"Brand")}})(xc),Ac="fui-FluentProvider",Pc=Pr({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);}"]}),Ic=g.useInsertionEffect?g.useInsertionEffect:Fn,Bc=e=>{const{targetDocument:t,theme:r,rendererAttributes:n}=e,o=g.useRef(),i=Un(Ac),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),Ic(()=>{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 Nc={},Dc={},zc=(e,t)=>{const r=Sn(),n=g.useContext(hn),o=Tn(),i=g.useContext(En)||Nc,{applyStylesToPortals:a=!0,customStyleHooks_unstable:s,dir:l=r.dir,targetDocument:c=r.targetDocument,theme:u,overrides_unstable:d={}}=e,f=Oc(n,u),h=Oc(o,d),p=Oc(i,s),m=zr();var v;const{styleTagId:y,rule:b}=Bc({theme:f,targetDocument:c,rendererAttributes:null!==(v=m.styleElementAttributes)&&void 0!==v?v:Dc});return{applyStylesToPortals:a,customStyleHooks_unstable:p,dir:l,targetDocument:c,theme:f,overrides_unstable:h,themeClassName:y,components:{root:"div"},root:Ur(dn("div",{...e,dir:l,ref:Wn(t,Ua({targetDocument:c}))}),{elementType:"div"}),serverStyleProps:{cssRule:b,attributes:{...m.styleElementAttributes,id:y}}}};function Oc(e,t){return e&&t?{...e,...t}:e||t}const Rc=g.forwardRef((e,t)=>{const r=zc(e,t);(e=>{const t=zr(),r=Pc({dir:e.dir,renderer:t});e.root.className=Se(Ac,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)=>mo(kn,{value:t.provider,children:mo(pn,{value:t.theme,children:mo(gn,{value:t.themeClassName,children:mo(Pn,{value:t.customStyleHooks_unstable,children:mo(bn,{value:t.tooltip,children:mo(Rr,{dir:t.textDirection,children:mo(bo,{value:t.iconDirection,children:mo(Cn,{value:t.overrides_unstable,children:go(e.root,{children:[Rn()?null:mo("style",{dangerouslySetInnerHTML:{__html:e.serverStyleProps.cssRule},...e.serverStyleProps.attributes}),e.root.children]})})})})})})})})}))(r,n)});Rc.displayName="FluentProvider";var Mc,jc,Lc={exports:{}},Fc={};var Vc=(jc||(jc=1,Lc.exports=(Mc||(Mc=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,N(x);else{var t=r(c);null!==t&&D(w,t.startTime-e)}}function x(t,o){p=!1,m&&(m=!1,v(C),C=-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&&D(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 k,S=!1,_=null,C=-1,T=5,E=-1;function A(){return!(e.unstable_now()-E<T)}function P(){if(null!==_){var t=e.unstable_now();E=t;var r=!0;try{r=_(!0,t)}finally{r?k():(S=!1,_=null)}}else S=!1}if("function"==typeof y)k=function(){y(P)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,B=I.port2;I.port1.onmessage=P,k=function(){B.postMessage(null)}}else k=function(){g(P,0)};function N(e){_=e,S||(S=!0,k())}function D(t,r){C=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,N(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"):T=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(C),C=-1):m=!0,D(w,i-a))):(n.sortIndex=s,t(l,n),p||h||(p=!0,N(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}}}}(Fc)),Fc)),Lc.exports);const qc=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:[]}),Fn(()=>{t.current=e.value,n.current+=1,Vc.unstable_runWithPriority(Vc.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},Hc=(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(bze){}return[r[0],r[1]]})};Object.is(s[1],a)||c(void 0);const u=Vn(c);return Fn(()=>(i.push(u),()=>{const e=i.indexOf(u);i.splice(e,1)}),[u,i]),s[1]};function Uc(e){const t=g.useContext(e);return!!t.version&&-1!==t.version.current}const Wc="Enter",$c=" ",Gc="ArrowDown",Yc="ArrowLeft",Kc="ArrowRight",Jc="ArrowUp",Xc="Home",Qc="PageDown",Zc="PageUp",eu="Backspace",tu="Escape";function ru(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=Vn(e=>{u?(e.preventDefault(),e.stopPropagation()):null==i||i(e)}),f=Vn(e=>{if(null==a||a(e),e.isDefaultPrevented())return;const t=e.key;if(u&&(t===Wc||t===$c))return e.preventDefault(),void e.stopPropagation();t!==$c?t===Wc&&(e.preventDefault(),e.currentTarget.click()):e.preventDefault()}),h=Vn(e=>{if(null==s||s(e),e.isDefaultPrevented())return;const t=e.key;if(u&&(t===Wc||t===$c))return e.preventDefault(),void e.stopPropagation();t===$c&&(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 nu=()=>{},ou={controller:{active:nu,blur:nu,find:nu,first:nu,focus:nu,focusLastActive:nu,scrollActiveIntoView:nu,last:nu,next:nu,prev:nu,showAttributes:nu,hideAttributes:nu,showFocusVisibleAttributes:nu,hideFocusVisibleAttributes:nu}},iu=g.createContext(void 0),au=iu.Provider,su=()=>{var e;return null!==(e=g.useContext(iu))&&void 0!==e?e:ou};const lu="data-activedescendant",cu="data-activedescendant-focusvisible",uu=e=>{if(!e)return;const t=du(e.parentElement);if(!t)return;const{offsetHeight:r}=e,n=fu(e,t),{scrollMarginTop:o,scrollMarginBottom:i}=hu(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)},du=e=>e?e.scrollHeight>e.offsetHeight?e:du(e.parentElement):null,fu=(e,t)=>e&&e!==t?e.contains(t)?-1*t.offsetTop:e.offsetTop+fu(e.offsetParent,t):0,hu=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=pu(n.scrollMarginTop))&&void 0!==o?o:pu(n.scrollMarginBlockStart),scrollMarginBottom:null!==(i=pu(n.scrollMarginBottom))&&void 0!==i?i:pu(n.scrollMarginBlockEnd)}},pu=e=>e?parseInt(e,10):0;function mu(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))},[]);Ja(e=>{n.current=e;const t=m();t&&(e&&o.current?t.setAttribute(cu,""):t.removeAttribute(cu))});const d=Vn(r),f=g.useRef(null),{optionWalker:h,listboxCallbackRef:p}=function(e){const{matchOption:t}=e,{targetDocument:r}=Sn(),n=g.useRef(null),o=g.useRef(null),i=g.useCallback(e=>no(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(cu,""):t.removeAttribute(cu))},[m]),y=g.useCallback(()=>{const e=m();var t;return e&&(e.removeAttribute(lu),e.removeAttribute(cu)),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();uu(e),u(e.id),e.setAttribute(lu,""),n.current&&o.current&&e.setAttribute(cu,"");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&&uu(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:Wn(f,p),activeParentRef:s,controller:w}}const gu=Lr({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);}"]}),vu=(e,t)=>{const{title:r,primaryFill:n="currentColor",...o}=e,i={...o,title:void 0,fill:n},a=gu(),s=(()=>{const e=g.useContext(vo);return null!=e?e:yo})();return i.className=Se(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},yu=Lr({root:{ycbfsm:"fg4l7m0"}},{t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),bu=(e,t,r,n)=>{const o="1em"===t?"20":t,i=g.forwardRef((e,i)=>{const a=yu(),s=vu(e,{flipInRtl:null==n?void 0:n.flipInRtl}),l={...s,className:Se(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},wu=bu("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"]),xu=bu("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}),ku=bu("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"]),Su=bu("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"]),_u=bu("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"]),Cu=bu("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"]),Tu=bu("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"]),Eu=bu("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"]),Au=bu("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"]),Pu=bu("CircleFilled","1em",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),Iu=bu("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"]),Bu=bu("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"]),Nu=bu("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"]),Du=bu("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"]),zu=bu("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"]),Ou=bu("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"]),Ru=bu("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"]),Mu=bu("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"]),ju=bu("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"]),Lu=bu("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"]),Fu=bu("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"]),Vu=bu("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"]),qu=bu("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"]),Hu=bu("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"]),Uu=bu("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"]),Wu=bu("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"]),$u=Lr({root:{mc9l5x:"fjseox"},visible:{mc9l5x:"f1w7gpdv"}},{d:[".fjseox{display:none;}",".f1w7gpdv{display:inline;}"]}),Gu=(e,t)=>{const r=r=>{const{className:n,filled:o,...i}=r,a=$u();return g.createElement(g.Fragment,null,g.createElement(e,Object.assign({},i,{className:Se(a.root,o&&a.visible,"fui-Icon-filled",n)})),g.createElement(t,Object.assign({},i,{className:Se(a.root,!o&&a.visible,"fui-Icon-regular",n)})))};return r.displayName="CompoundIcon",r},Yu="fui-Badge",Ku="fui-Badge__icon",Ju=Fr("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;}']),Xu=Lr({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);}"]}),Qu=Fr("rttl5z0",null,[".rttl5z0{display:flex;line-height:1;margin:0 calc(-1 * var(--spacingHorizontalXXS));font-size:12px;}"]),Zu=Lr({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;}"]}),ed=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:Ur(dn("div",{ref:t,...e}),{elementType:"div"}),icon:Wr(e.icon,{elementType:"span"})}})(e,t);return(e=>{const t=Ju(),r=Xu(),n="small"===e.size||"extra-small"===e.size||"tiny"===e.size;e.root.className=Se(Yu,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=Qu(),i=Zu();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=Se(Ku,o,t,i[e.size],e.icon.className)}})(r),In("useBadgeStyles_unstable")(r),(e=>go(e.root,{children:["before"===e.iconPosition&&e.icon&&mo(e.icon,{}),e.root.children,"after"===e.iconPosition&&e.icon&&mo(e.icon,{})]}))(r)});ed.displayName="Badge";const td=g.createContext(void 0).Provider;const rd="data-popper-is-intersecting",nd="data-popper-escaped",od="data-popper-reference-hidden",id="fui-positioningend",ad=({options:e})=>e,sd=g.createContext(void 0);sd.Provider;const ld=["top","right","bottom","left"],cd=Math.min,ud=Math.max,dd=Math.round,fd=e=>({x:e,y:e}),hd={left:"right",right:"left",bottom:"top",top:"bottom"},pd={start:"end",end:"start"};function md(e,t,r){return ud(e,cd(t,r))}function gd(e,t){return"function"==typeof e?e(t):e}function vd(e){return e.split("-")[0]}function yd(e){return e.split("-")[1]}function bd(e){return"x"===e?"y":"x"}function wd(e){return"y"===e?"height":"width"}const xd=new Set(["top","bottom"]);function kd(e){return xd.has(vd(e))?"y":"x"}function Sd(e){return bd(kd(e))}function _d(e){return e.replace(/start|end/g,e=>pd[e])}const Cd=["left","right"],Td=["right","left"],Ed=["top","bottom"],Ad=["bottom","top"];function Pd(e,t,r,n){const o=yd(e);let i=function(e,t,r){switch(e){case"top":case"bottom":return r?t?Td:Cd:t?Cd:Td;case"left":case"right":return t?Ed:Ad;default:return[]}}(vd(e),"start"===r,n);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(_d)))),i}function Id(e){return e.replace(/left|right|bottom|top/g,e=>hd[e])}function Bd(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 Nd(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 Dd(e,t,r){let{reference:n,floating:o}=e;const i=kd(t),a=Sd(t),s=wd(a),l=vd(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(yd(t)){case"start":h[a]-=f*(r&&c?-1:1);break;case"end":h[a]+=f*(r&&c?-1:1)}return h}async function zd(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=Bd(h),m=s[f?"floating"===d?"reference":"floating":d],g=Nd(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=Nd(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 Od(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Rd(e){return ld.some(t=>e[t]>=0)}const Md=new Set(["left","top"]);function jd(){return"undefined"!=typeof window}function Ld(e){return qd(e)?(e.nodeName||"").toLowerCase():"#document"}function Fd(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Vd(e){var t;return null==(t=(qd(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function qd(e){return!!jd()&&(e instanceof Node||e instanceof Fd(e).Node)}function Hd(e){return!!jd()&&(e instanceof Element||e instanceof Fd(e).Element)}function Ud(e){return!!jd()&&(e instanceof HTMLElement||e instanceof Fd(e).HTMLElement)}function Wd(e){return!(!jd()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Fd(e).ShadowRoot)}const $d=new Set(["inline","contents"]);function Gd(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=af(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!$d.has(o)}const Yd=new Set(["table","td","th"]);function Kd(e){return Yd.has(Ld(e))}const Jd=[":popover-open",":modal"];function Xd(e){return Jd.some(t=>{try{return e.matches(t)}catch(r){return!1}})}const Qd=["transform","translate","scale","rotate","perspective"],Zd=["transform","translate","scale","rotate","perspective","filter"],ef=["paint","layout","strict","content"];function tf(e){const t=rf(),r=Hd(e)?af(e):e;return Qd.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||Zd.some(e=>(r.willChange||"").includes(e))||ef.some(e=>(r.contain||"").includes(e))}function rf(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const nf=new Set(["html","body","#document"]);function of(e){return nf.has(Ld(e))}function af(e){return Fd(e).getComputedStyle(e)}function sf(e){return Hd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function lf(e){if("html"===Ld(e))return e;const t=e.assignedSlot||e.parentNode||Wd(e)&&e.host||Vd(e);return Wd(t)?t.host:t}function cf(e){const t=lf(e);return of(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ud(t)&&Gd(t)?t:cf(t)}function uf(e,t,r){var n;void 0===t&&(t=[]);const o=cf(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=Fd(o);return i?(df(a),t.concat(a,a.visualViewport||[],Gd(o)?o:[],[])):t.concat(o,uf(o,[]))}function df(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ff(e){const t=af(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ud(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=dd(r)!==i||dd(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function hf(e){return Hd(e)?e:e.contextElement}function pf(e){const t=hf(e);if(!Ud(t))return fd(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=ff(t);let a=(i?dd(r.width):r.width)/n,s=(i?dd(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const mf=fd(0);function gf(e){const t=Fd(e);return rf()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:mf}function vf(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=hf(e);let a=fd(1);t&&(n?Hd(n)&&(a=pf(n)):a=pf(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Fd(e))&&t}(i,r,n)?gf(i):fd(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=Fd(i),t=n&&Hd(n)?Fd(n):n;let r=e,o=df(r);for(;o&&n&&t!==r;){const e=pf(o),t=o.getBoundingClientRect(),n=af(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=Fd(o),o=df(r)}}return Nd({width:u,height:d,x:l,y:c})}function yf(e,t){const r=sf(e).scrollLeft;return t?t.left+r:vf(Vd(e)).left+r}function bf(e,t,r){void 0===r&&(r=!1);const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:yf(e,n)),y:n.top+t.scrollTop}}const wf=new Set(["absolute","fixed"]);function xf(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=Fd(e),n=Vd(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=rf();(!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=Vd(e),r=sf(e),n=e.ownerDocument.body,o=ud(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=ud(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+yf(e);const s=-r.scrollTop;return"rtl"===af(n).direction&&(a+=ud(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Vd(e));else if(Hd(t))n=function(e,t){const r=vf(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Ud(e)?pf(e):fd(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 Nd(n)}function kf(e,t){const r=lf(e);return!(r===t||!Hd(r)||of(r))&&("fixed"===af(r).position||kf(r,t))}function Sf(e,t,r){const n=Ud(t),o=Vd(t),i="fixed"===r,a=vf(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=fd(0);function c(){l.x=yf(o)}if(n||!n&&!i)if(("body"!==Ld(t)||Gd(o))&&(s=sf(t)),n){const e=vf(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?fd(0):bf(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 _f(e){return"static"===af(e).position}function Cf(e,t){if(!Ud(e)||"fixed"===af(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Vd(e)===r&&(r=r.ownerDocument.body),r}function Tf(e,t){const r=Fd(e);if(Xd(e))return r;if(!Ud(e)){let t=lf(e);for(;t&&!of(t);){if(Hd(t)&&!_f(t))return t;t=lf(t)}return r}let n=Cf(e,t);for(;n&&Kd(n)&&_f(n);)n=Cf(n,t);return n&&of(n)&&_f(n)&&!tf(n)?r:n||function(e){let t=lf(e);for(;Ud(t)&&!of(t);){if(tf(t))return t;if(Xd(t))return null;t=lf(t)}return null}(e)||r}const Ef={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,a=Vd(n),s=!!t&&Xd(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=fd(1);const u=fd(0),d=Ud(n);if((d||!d&&!i)&&(("body"!==Ld(n)||Gd(a))&&(l=sf(n)),Ud(n))){const e=vf(n);c=pf(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const f=!a||d||i?fd(0):bf(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:Vd,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?Xd(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=uf(e,[]).filter(e=>Hd(e)&&"body"!==Ld(e)),o=null;const i="fixed"===af(e).position;let a=i?lf(e):e;for(;Hd(a)&&!of(a);){const t=af(a),r=tf(a);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&wf.has(o.position)||Gd(a)&&!r&&kf(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=xf(t,r,o);return e.top=ud(n.top,e.top),e.right=cd(n.right,e.right),e.bottom=cd(n.bottom,e.bottom),e.left=ud(n.left,e.left),e},xf(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Tf,getElementRects:async function(e){const t=this.getOffsetParent||Tf,r=this.getDimensions,n=await r(e.floating);return{reference:Sf(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}=ff(e);return{width:t,height:r}},getScale:pf,isElement:Hd,isRTL:function(e){return"rtl"===af(e).direction}},Af=zd,Pf=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=vd(r),s=yd(r),l="y"===kd(r),c=Md.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}}}}},If=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 zd(t,l),d=kd(vd(o)),f=bd(d);let h=c[f],p=c[d];if(i){const e="y"===f?"bottom":"right";h=md(h+u["y"===f?"top":"left"],h,h-u[e])}if(a){const e="y"===d?"bottom":"right";p=md(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}}}}}},Bf=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=vd(o),y=kd(s),b=vd(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(b||!m?[Id(s)]:function(e){const t=Id(e);return[_d(e),t,_d(t)]}(s)),k="none"!==p;!f&&k&&x.push(...Pd(s,m,p,w));const S=[s,...x],_=await zd(t,g),C=[];let T=(null==(n=i.flip)?void 0:n.overflows)||[];if(u&&C.push(_[v]),d){const e=function(e,t,r){void 0===r&&(r=!1);const n=yd(e),o=Sd(e),i=wd(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Id(a)),[a,Id(a)]}(o,a,w);C.push(_[e[0]],_[e[1]])}if(T=[...T,{placement:o,overflows:C}],!C.every(e=>e<=0)){var E,A;const e=((null==(E=i.flip)?void 0:E.index)||0)+1,t=S[e];if(t){if(!("alignment"===d&&y!==kd(t))||T.every(e=>kd(e.placement)!==y||e.overflows[0]>0))return{data:{index:e,overflows:T},reset:{placement:t}}}let r=null==(A=T.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 P;const e=null==(P=T.filter(e=>{if(k){const t=kd(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:P[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},Nf=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 zd(t,c),d=vd(o),f=yd(o),h="y"===kd(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=cd(m-u[g],y),x=cd(p-u[v],b),k=!t.middlewareData.shift;let S=w,_=x;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(_=b),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(S=y),k&&!f){const e=ud(u.left,0),t=ud(u.right,0),r=ud(u.top,0),n=ud(u.bottom,0);h?_=p-2*(0!==e||0!==t?e+t:ud(u.left,u.right)):S=m-2*(0!==r||0!==n?r+n:ud(u.top,u.bottom))}await l({...t,availableWidth:_,availableHeight:S});const C=await a.getDimensions(s.floating);return p!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}},Df=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=Od(await zd(t,{...o,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Rd(e)}}}case"escaped":{const e=Od(await zd(t,{...o,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:Rd(e)}}}default:return{}}}}},zf=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=Bd(u),f={x:r,y:n},h=Sd(o),p=wd(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],k=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let S=k?k[b]:0;S&&await(null==a.isElement?void 0:a.isElement(k))||(S=s.floating[b]||i.floating[p]);const _=w/2-x/2,C=S/2-m[p]/2-1,T=cd(d[v],C),E=cd(d[y],C),A=T,P=S-m[p]-E,I=S/2-m[p]/2+_,B=md(A,I,P),N=!l.arrow&&null!=yd(o)&&I!==B&&i.reference[p]/2-(I<A?T:E)-m[p]/2<0,D=N?I<A?I-A:I-P:0;return{[h]:f[h]+D,data:{[h]:B,centerOffset:I-B-D,...N&&{alignmentOffset:D}},reset:N}}}),Of=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=kd(o),f=bd(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=Md.has(vd(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}}}},Rf=(e,t,r)=>{const n=new Map,o={platform:Ef,...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}=Dd(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}=Dd(c,f,l))),m=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};function Mf(e){const t=e.split("-");return{side:t[0],alignment:t[1]}}const jf=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:jf(t)};function Lf(e,t){if("window"===t)return null==e?void 0:e.ownerDocument.documentElement;if("clippingParents"===t)return"clippingAncestors";if("scrollParent"===t){let t=jf(e);return"BODY"===t.nodeName&&(t=null==e?void 0:e.ownerDocument.documentElement),t}return t}function Ff(e,t){return"number"==typeof e||"object"==typeof e&&null!==e?Vf(e,t):"function"==typeof e?r=>{const n=e(r);return Vf(n,t)}:{mainAxis:t}}const Vf=(e,t)=>{return"number"==typeof e?{mainAxis:e+t}:{...e,mainAxis:(null!==(r=e.mainAxis)&&void 0!==r?r:0)+t};var r};function qf(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 Hf=(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},Uf={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 Wf(e){return null==e?{}:"string"==typeof e?Uf[e]:e}function $f(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 Fn(()=>{n.current=!1},[]),o.callback=t,o.facade}function Gf(e){const t=[];let r=e;for(;r;){const n=jf(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 Yf(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&&(Gf(r).forEach(e=>h.add(e)),no(n)&&Gf(n).forEach(e=>h.add(e)),h.forEach(e=>{e.addEventListener("scroll",m,{passive:!0})}),null==d||d.observe(r),no(n)&&(null==d||d.observe(n)),f=!1),Object.assign(r.style,{position:i}),Rf(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(rd),a.intersectionObserver.intersecting&&o.setAttribute(rd,""),o.removeAttribute(nd),(null===(t=a.hide)||void 0===t?void 0:t.escaped)&&o.setAttribute(nd,""),o.removeAttribute(od),(null===(r=a.hide)||void 0===r?void 0:r.referenceHidden)&&o.setAttribute(od,"");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(id)))}).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 Kf(e){const{hasScrollableElement:t,flipBoundary:r,container:n,fallbackPositions:o=[],isRtl:i}=e,a=o.reduce((e,t)=>{const{position:r,align:n}=Wf(t),o=Hf(n,r,i);return o&&e.push(o),e},[]);return Bf({...t&&{boundary:"clippingAncestors"},...r&&{altBoundary:!0,boundary:Lf(n,r)},fallbackStrategy:"bestFit",...a.length&&{fallbackPlacements:a}})}const Jf=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 Xf(e,t){const{container:r,overflowBoundary:n,overflowBoundaryPadding:o,isRtl:i}=t;return Nf({...o&&{padding:qf(o,i)},...n&&{altBoundary:!0,boundary:Lf(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 Qf(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}=Mf(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 Zf(e){const t=Qf(e);return Pf(t)}function eh(e){const{hasScrollableElement:t,shiftToCoverTarget:r,disableTether:n,overflowBoundary:o,container:i,overflowBoundaryPadding:a,isRtl:s}=e;return If({...t&&{boundary:"clippingAncestors"},...r&&{crossAxis:!0,limiter:Of({crossAxis:!0,mainAxis:!1})},...n&&{crossAxis:"all"===n,limiter:Of({crossAxis:"all"!==n,mainAxis:!1})},...a&&{padding:qf(a,s)},...o&&{altBoundary:!0,boundary:Lf(i,o)}})}const th="--fui-match-target-size";function rh(e){const{dir:t,targetDocument:r}=Sn(),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(sd))&&void 0!==i?i:ad,e);var i;const{positionFixed:a}=e;return g.useCallback((e,t)=>{const r=(e=>{var t;const r=jf(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:k,unstable_disableTether:S}=i,_=(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),C=[_&&Jf(_),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(th,`${i}px`),n.style.width||(n.style.width=`var(${th})`),{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}},u&&Zf(u),d&&{name:"coverTarget",fn:e=>{const{placement:t,rects:r,x:n,y:o}=e,i={x:n,y:o};switch(Mf(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&&Kf({container:e,flipBoundary:f,hasScrollableElement:r,isRtl:n,fallbackPositions:x}),eh({container:e,hasScrollableElement:r,overflowBoundary:h,disableTether:S,overflowBoundaryPadding:m,isRtl:n,shiftToCoverTarget:k}),_&&Xf(_,{container:e,overflowBoundary:h,overflowBoundaryPadding:m,isRtl:n}),{name:"intersectionObserver",fn:async e=>{const t=e.rects.floating,r=await Af(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&&zf({element:t,padding:y}),Df({strategy:"referenceHidden"}),Df({strategy:"escaped"}),!1].filter(Boolean);return{placement:Hf(w,v,n),middleware:C,strategy:(null!=b?b:a)?"fixed":"absolute",disableUpdateOnResize:l,useTransform:p}},[o,n,r,a])}function nh(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=rh(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&&Rn()&&l&&o.current&&(t.current=Yf({container:o.current,target:l,arrow:i.current,...s(o.current,i.current)}))},[a,s]),c=Vn(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]),Fn(()=>{var t;c(null!==(t=e.target)&&void 0!==t?t:null)},[e.target,c]),Fn(()=>{l()},[l]);const u=$f(null,e=>{r.current!==e&&(r.current=e,l())}),d=Vn(()=>{var t;return null===(t=e.onPositioningEnd)||void 0===t?void 0:t.call(e)});return{targetRef:u,containerRef:$f(null,e=>{var t;o.current!==e&&(null===(t=o.current)||void 0===t||t.removeEventListener(id,d),null==e||e.addEventListener(id,d),o.current=e,l())}),arrowRef:$f(null,e=>{i.current!==e&&(i.current=e,l())})}}const oh=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 ih(){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 ah,sh,lh={exports:{}},ch={};function uh(){return sh||(sh=1,lh.exports=function(){if(ah)return ch;ah=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 ch.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,ch}()),lh.exports}var dh=uh();function fh(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 hh(e,t){return Math.sqrt((e[0]-t[0])**2+(e[1]-t[1])**2)}function ph(e,t,r){const n=[(e[0]+t[0])/2,(e[1]+t[1])/2],o=function(e,t){const r=hh(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=hh([n[0],n[1]],[r[0],r[1]]);return[n[0]+o[0]*(i+20),n[1]+o[1]*(i+20)]}function mh(e){return`M ${e} z`}const gh=Lr({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 vh(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 yh={top:0,right:0,bottom:0,left:0,width:0,height:0,x:0,y:0,toJSON:()=>""};function bh(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 wh=g.memo(e=>{const{debug:t,onMouseEnter:r,onMouseMove:n,onMouseLeave:o,stateStore:i}=e,a=Un(),s=gh(),l=dh.useSyncExternalStore(i.subscribe,i.isActive),c=g.useRef(null),[u,d]=g.useState(()=>({containerRect:yh,targetRect:yh,mouseCoordinates:[0,0]}));g.useImperativeHandle(e.imperativeRef,()=>({updateSVG(e){d(t=>{return bh(t.containerRect,e.containerRect)&&bh(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=fh(f,[v,m]),x=fh(h,[v,m]),k=[p[0]-v,p[1]-m],S=ph(w.topLeft,w.bottomRight,k),_=[S,w.topLeft,w.topRight],C=[S,w.topRight,w.bottomRight],T=[S,w.bottomRight,w.bottomLeft],E=[S,w.bottomLeft,w.topLeft],A=b-v,P=y-m,I=function(e,t,r,n){let o=`M 0,0 H ${e} V ${t} H 0 Z `;return o+=vh(r),o+=vh(n),o}(A,P,{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:Se(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:`${P}px`,transform:`translate(${v}px, ${m}px)`}},g.createElement("g",{className:Se(s.triangle,t&&s.triangleDebug),clipPath:`url(#${a})`,onMouseEnter:r,onMouseMove:n,onMouseLeave:o},g.createElement("path",{d:mh(_)}),g.createElement("path",{d:mh(C)}),g.createElement("path",{d:mh(T)}),g.createElement("path",{d:mh(E)})),g.createElement("clipPath",{id:a},g.createElement("path",{d:I})),t&&g.createElement("path",{className:s.rectDebug,d:I})):null)});function xh({debug:e=!1,disabled:t=!1,onSafeZoneEnter:r,onSafeZoneMove:n,onSafeZoneLeave:o,onSafeZoneTimeout:i,timeout:a=1500}={}){const[s]=g.useState(ih),l=g.useRef(null),c=g.useRef(null),u=g.useRef(null),[d,f]=eo(),[h,p]=function(){const{targetDocument:e}=Sn(),t=null==e?void 0:e.defaultView;return fn(t?t.requestAnimationFrame:Nn,t?t.cancelAnimationFrame:Dn)}(),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=Vn(e=>{null==r||r(e),d(()=>{s.toggleActive(!1),null==i||i()},a)}),w=Vn(e=>{d(()=>{s.toggleActive(!1),null==i||i()},a),null==n||n(e)}),x=Vn(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:Wn(c,v),targetRef:Wn(u,y),elementToRender:g.useMemo(()=>t?null:g.createElement(wh,{debug:e,onMouseEnter:b,onMouseMove:w,onMouseLeave:x,imperativeRef:l,stateStore:s}),[t,e,b,w,x,s])}}const kh=qc(void 0),Sh={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};kh.Provider;const _h=e=>Hc(kh,(t=Sh)=>e(t));const Ch=Lr({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;}"]}),Th=y.useInsertionEffect,Eh=()=>{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)}}},Ah=Th?e=>{const{className:t,dir:r,focusVisibleRef:n,targetNode:o}=e,[i]=g.useState(Eh),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 Th(()=>{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},Ph=e=>{const{targetDocument:t,dir:r}=Sn(),n=g.useContext(Bn),o=Ua(),i=Ch(),a=null!==(s=g.useContext(mn))&&void 0!==s?s:"";var s;const l={dir:r,disabled:e.disabled,focusVisibleRef:o,className:Se(a,i.root,e.className),targetNode:null!=n?n:null==t?void 0:t.body};return Ah(l)},Ih=e=>{const{element:t,className:r}=function(e){return no(e)?{element:e}:"object"==typeof e?null===e?{element:null}:e:{}}(e.mountNode),n=g.useRef(null),o=Ph({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?(uo(i,e),()=>{uo(i,void 0)}):void 0},[n,i]),a};var Bh=B();const Nh=e=>(e=>g.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&Bh.createPortal(g.createElement(g.Fragment,null,e.children,g.createElement("span",{hidden:!0})),e.mountNode)))(Ih(e));Nh.displayName="Portal";const Dh="fui-PopoverSurface",zh={small:6,medium:8,large:8},Oh=Lr({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;}}"]}),Rh=g.forwardRef((e,t)=>{const r=((e,t)=>{const r=_h(e=>e.contentRef),n=_h(e=>e.openOnHover),o=_h(e=>e.setOpen),i=_h(e=>e.mountNode),a=_h(e=>e.arrowRef),s=_h(e=>e.size),l=_h(e=>e.withArrow),c=_h(e=>e.appearance),u=_h(e=>e.trapFocus),d=_h(e=>e.inertTrapFocus),f=_h(e=>e.inline),{modalAttributes:h}=Za({trapFocus:u,legacyTrapFocus:!d,alwaysFocusable:!u}),p={inline:f,appearance:c,withArrow:l,size:s,arrowRef:a,mountNode:i,components:{root:"div"},root:Ur(dn("div",{ref:Wn(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=Oh();e.root.className=Se(Dh,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=Se(t.arrow,"small"===e.size?t.smallArrow:t.mediumLargeArrow)})(r),In("usePopoverSurfaceStyles_unstable")(r),(e=>{const t=go(e.root,{children:[e.withArrow&&mo("div",{ref:e.arrowRef,className:e.arrowClassName}),e.root.children]});return e.inline?t:mo(Nh,{mountNode:e.mountNode,children:t})})(r)});Rh.displayName="PopoverSurface";const Mh=e=>{const[t,r]=oh(),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=Vn((t,r)=>{var n;return null===(n=e.onOpenChange)||void 0===n?void 0:n.call(e,t,r)}),[r,n]=zn({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]=eo(),d=Vn((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,...Wf(e.positioning)};t.coverTarget&&(e.withArrow=!1);e.withArrow&&(t.offset=Ff(t.offset,zh[e.size]));const{targetRef:r,containerRef:n,arrowRef:o}=nh(t);return{triggerRef:r,contentRef:n,arrowRef:o}}(n),{targetDocument:p}=Sn();var m;Gn({contains:co,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;Xn({contains:co,element:p,callback:e=>d(e,!1),refs:[h.triggerRef,h.contentRef],disabled:!s||!v});const{findFirstFocusable:y}=La(),b=function(){const e=Oa(Ba),[t]=eo();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 jh=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(kh.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)})(Mh(e));jh.displayName="Popover";const Lh=e=>{const t=(e=>{const{children:t,disableButtonEnhancement:r=!1}=e,n=so(t),o=_h(e=>e.open),i=_h(e=>e.setOpen),a=_h(e=>e.toggleOpen),s=_h(e=>e.triggerRef),l=_h(e=>e.openOnHover),c=_h(e=>e.openOnContext),{triggerAttributes:u}=Za(),d={...u,"aria-expanded":`${o}`,...null==n?void 0:n.props,onMouseEnter:Vn(ro(null==n?void 0:n.props.onMouseEnter,e=>{l&&i(e,!0)})),onMouseLeave:Vn(ro(null==n?void 0:n.props.onMouseLeave,e=>{l&&i(e,!1)})),onContextMenu:Vn(ro(null==n?void 0:n.props.onContextMenu,e=>{c&&(e.preventDefault(),i(e,!0))})),ref:Wn(s,null==n?void 0:n.ref)},f={...d,onClick:Vn(ro(null==n?void 0:n.props.onClick,e=>{c||a(e)})),onKeyDown:Vn(ro(null==n?void 0:n.props.onKeyDown,e=>{e.key===tu&&o&&!e.isDefaultPrevented()&&(i(e,!1),e.preventDefault())}))},h=ru("button"===(null==n?void 0:n.type)||"a"===(null==n?void 0:n.type)?n.type:"div",f);return{children:io(e.children,ru("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)};Lh.displayName="PopoverTrigger",Lh.isFluentTriggerComponent=!0;const Fh=e=>{var t,r,n,o,i,a;const s=null!==(l=g.useContext(vn))&&void 0!==l?l:yn;var l;const c=function(){const e=Ln()!==Mn,[t,r]=g.useState(e);return Rn()&&e&&g.useLayoutEffect(()=>{r(!1)},[]),t}(),{targetDocument:u}=Sn(),[d,f]=eo(),{appearance:h="normal",children:p,content:m,withArrow:v=!1,positioning:y="above",onVisibleChange:b,relationship:w,showDelay:x=250,hideDelay:k=250,mountNode:S}=e,[_,C]=zn({state:e.visible,initialState:!1}),T=g.useCallback((e,t)=>{f(),C(r=>(t.visible!==r&&(null==b||b(e,t)),t.visible))},[f,C,b]),E={withArrow:v,positioning:y,showDelay:x,hideDelay:k,relationship:w,visible:_,shouldRenderTooltip:_,appearance:h,mountNode:S,components:{content:"div"},content:Ur(m,{defaultProps:{role:"tooltip"},elementType:"div"})};E.content.id=Un("tooltip-",E.content.id);const A={enabled:E.visible,arrowPadding:8,position:"above",align:"center",offset:4,...Wf(E.positioning)};E.withArrow&&(A.offset=Ff(A.offset,6));const{targetRef:P,containerRef:I,arrowRef:B}=nh(A);E.content.ref=Wn(E.content.ref,I),E.arrowRef=B,Fn(()=>{if(_){var e;const t={hide:e=>T(void 0,{visible:!1,documentKeyboardEvent:e})};null===(e=s.visibleTooltip)||void 0===e||e.hide(),s.visibleTooltip=t;const r=e=>{e.key!==tu||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,_,T]);const N=g.useRef(!1),D=g.useCallback(e=>{if("focus"===e.type&&N.current)return void(N.current=!1);const t=s.visibleTooltip?0:E.showDelay;d(()=>{T(e,{visible:!0})},t),e.persist()},[d,T,E.showDelay,s]),z=function(){const e=Ka();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])}(),[O]=g.useState(()=>{const e=e=>{var t;(null===(t=e.detail)||void 0===t?void 0:t.isFocusedProgrammatically)&&!z()&&(N.current=!0)};let t=null;return r=>{null==t||t.removeEventListener(ko,e),null==r||r.addEventListener(ko,e),t=r}}),R=g.useCallback(e=>{let t=E.hideDelay;"blur"===e.type&&(t=0,N.current=(null==u?void 0:u.activeElement)===e.target),d(()=>{T(e,{visible:!1})},t),e.persist()},[d,T,E.hideDelay,u]);E.content.onPointerEnter=ro(E.content.onPointerEnter,f),E.content.onPointerLeave=ro(E.content.onPointerLeave,R),E.content.onFocus=ro(E.content.onFocus,f),E.content.onBlur=ro(E.content.onBlur,R);const M=so(p),j={},L=!0===(null==M||null===(t=M.props)||void 0===t?void 0:t["aria-expanded"])||"true"===(null==M||null===(r=M.props)||void 0===r?void 0:r["aria-expanded"]);return"label"===w?"string"==typeof E.content.children?j["aria-label"]=E.content.children:(j["aria-labelledby"]=E.content.id,E.shouldRenderTooltip=!0):"description"===w&&(j["aria-describedby"]=E.content.id,E.shouldRenderTooltip=!0),(c||L)&&(E.shouldRenderTooltip=!1),E.children=io(p,{...j,...null==M?void 0:M.props,ref:Wn(null==M?void 0:M.ref,O,void 0===A.target?P:void 0),onPointerEnter:Vn(ro(null==M||null===(n=M.props)||void 0===n?void 0:n.onPointerEnter,D)),onPointerLeave:Vn(ro(null==M||null===(o=M.props)||void 0===o?void 0:o.onPointerLeave,R)),onFocus:Vn(ro(null==M||null===(i=M.props)||void 0===i?void 0:i.onFocus,D)),onBlur:Vn(ro(null==M||null===(a=M.props)||void 0===a?void 0:a.onBlur,R))}),E},Vh="fui-Tooltip__content",qh=Lr({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;}']}),Hh=e=>{const t=Fh(e);return(e=>{const t=qh();e.content.className=Se(Vh,t.root,"inverted"===e.appearance&&t.inverted,e.visible&&t.visible,e.content.className),e.arrowClassName=t.arrow})(t),In("useTooltipStyles_unstable")(t),(e=>go(g.Fragment,{children:[e.children,e.shouldRenderTooltip&&mo(Nh,{mountNode:e.mountNode,children:go(e.content,{children:[e.withArrow&&mo("div",{ref:e.arrowRef,className:e.arrowClassName}),e.content.children]})})]}))(t)};Hh.displayName="Tooltip",Hh.isFluentTriggerComponent=!0;const Uh=g.createContext(void 0),Wh={};Uh.Provider;const $h=(e,t)=>{const{size:r}=null!==(n=g.useContext(Uh))&&void 0!==n?n:Wh;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=Wr(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:Ur(dn(i,ru(e.as,e)),{elementType:"button",defaultProps:{ref:t,type:"button"===i?"button":void 0}}),icon:f}},Gh="fui-Button",Yh="fui-Button__icon",Kh=Fr("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;}}"]}),Jh=Fr("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);}"]),Xh=Lr({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)"}]]}),Qh=Lr({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)"}]]}),Zh=Lr({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;}}"]}),ep=Lr({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;}"]}),tp=Lr({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);}"]}),rp=e=>{const t=Kh(),r=Jh(),n=Xh(),o=Qh(),i=Zh(),a=ep(),s=tp(),{appearance:l,disabled:c,disabledFocusable:u,icon:d,iconOnly:f,iconPosition:h,shape:p,size:m}=e;return e.root.className=Se(Gh,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=Se(Yh,r,!!e.root.children&&s[h],s[m],e.icon.className)),e},np=g.forwardRef((e,t)=>{const r=$h(e,t);return rp(r),In("useButtonStyles_unstable")(r),(e=>{const{iconOnly:t,iconPosition:r}=e;return go(e.root,{children:["after"!==r&&e.icon&&mo(e.icon,{}),!t&&e.root.children,"after"===r&&e.icon&&mo(e.icon,{})]})})(r)});np.displayName="Button";const op="fui-MenuButton",ip="fui-MenuButton__icon",ap="fui-MenuButton__menuIcon",sp=Lr({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=Lr({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)"}]]}),cp=Lr({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);}"]}),up=g.forwardRef((e,t)=>{const r=(({menuIcon:e,...t},r)=>{const n=$h(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:Wr(e,{defaultProps:{children:g.createElement(_u,null)},renderByDefault:!0,elementType:"span"})}})(e,t);return(e=>{const t=sp(),r=lp(),n=cp();e.root.className=Se(op,e.root["aria-expanded"]&&t.base,e.root["aria-expanded"]&&t[e.appearance],e.root.className),e.icon&&(e.icon.className=Se(ip,e.root["aria-expanded"]&&r[e.appearance]&&r.highContrast,e.icon.className)),e.menuIcon&&(e.menuIcon.className=Se(ap,n.base,n[e.size],!e.iconOnly&&n.notIconOnly,e.menuIcon.className)),rp({...e,iconPosition:"before"})})(r),In("useMenuButtonStyles_unstable")(r),(e=>{const{icon:t,iconOnly:r}=e;return go(e.root,{children:[e.icon&&mo(e.icon,{}),!r&&e.root.children,(!r||!(null==t?void 0:t.children))&&e.menuIcon&&mo(e.menuIcon,{})]})})(r)});up.displayName="MenuButton";const dp="fui-SplitButton",fp="fui-SplitButton__menuButton",hp="fui-SplitButton__primaryActionButton",pp=Lr({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;}"]}),mp=Lr({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=Un("splitButton-"),p=Wr(l,{defaultProps:{appearance:r,disabled:o,disabledFocusable:i,menuIcon:c,shape:d,size:f},renderByDefault:!0,elementType:up}),m=Wr(u,{defaultProps:{appearance:r,children:n,disabled:o,disabledFocusable:i,icon:a,iconPosition:s,id:h+"__primaryActionButton",shape:d,size:f},renderByDefault:!0,elementType:np});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:up,primaryActionButton:np},root:Ur(dn("div",{ref:t,...e}),{elementType:"div"}),menuButton:p,primaryActionButton:m}})(e,t);return(e=>{const t=mp(),r=pp(),{appearance:n,disabled:o,disabledFocusable:i}=e;e.root.className=Se(dp,t.base,n&&t[n],(o||i)&&t.disabled,(o||i)&&t.disabledHighContrast,e.root.className),e.menuButton&&(e.menuButton.className=Se(fp,r.menuButton,e.menuButton.className)),e.primaryActionButton&&(e.primaryActionButton.className=Se(hp,r.primaryActionButton,e.primaryActionButton.className))})(r),In("useSplitButtonStyles_unstable")(r),(e=>go(e.root,{children:[e.primaryActionButton&&mo(e.primaryActionButton,{}),e.menuButton&&mo(e.menuButton,{})]}))(r)});gp.displayName="SplitButton";const vp=g.createContext(void 0);vp.Provider;const yp=()=>g.useContext(vp);function bp(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,k,S,_;if(null==r?void 0:r.supportsRequired)null!==(x=(w=t).required)&&void 0!==x||(w.required=!0);else null!==(_=(k=t)[S="aria-required"])&&void 0!==_||(k[S]=!0)}(null==r?void 0:r.supportsSize)&&(null!==(b=(y=t).size)&&void 0!==b||(y.size=e.size));return t}(yp(),e,t)}const wp="fui-Label",xp="fui-Label__required",kp=Lr({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)"}]]}),Sp=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:Wr(!0===n?"*":n||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:o,size:i,components:{root:"label",required:"span"},root:Ur(dn("label",{ref:t,...e}),{elementType:"label"})}})(e,t);return(e=>{const t=kp();e.root.className=Se(wp,t.root,e.disabled&&t.disabled,t[e.size],"semibold"===e.weight&&t.semibold,e.root.className),e.required&&(e.required.className=Se(xp,t.required,e.disabled&&t.disabled,e.required.className))})(r),In("useLabelStyles_unstable")(r),(e=>go(e.root,{children:[e.root.children,e.required&&mo(e.required,{})]}))(r)});Sp.displayName="Label";const _p="fui-Checkbox",Cp="fui-Checkbox__label",Tp="fui-Checkbox__input",Ep="fui-Checkbox__indicator",Ap=Fr("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;}}"]}),Pp=Lr({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)"}]]}),Ip=Fr("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));}"]),Bp=Lr({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));}"]}),Np=Fr("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;}"]),Dp=Lr({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}]]}),zp=Lr({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);}"]}),Op=g.forwardRef((e,t)=>{const r=((e,t)=>{e=bp(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]=zn({defaultState:e.defaultChecked,state:e.checked,initialState:!1}),u=un({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","size","onChange"]}),d="mixed"===l,f=Un("checkbox-",u.primary.id);let h;d?h="circular"===o?g.createElement(Pu,null):"large"===i?g.createElement(Wu,null):g.createElement(Uu,null):l&&(h="large"===i?g.createElement(Ru,null):g.createElement(Ou,null));const p={shape:o,checked:l,disabled:r,size:i,labelPosition:a,components:{root:"span",input:"input",indicator:"div",label:Sp},root:Ur(e.root,{defaultProps:{ref:Ya(),...u.root},elementType:"span"}),input:Ur(e.input,{defaultProps:{type:"checkbox",id:f,ref:t,checked:!0===l,...u.primary},elementType:"input"}),label:Wr(e.label,{defaultProps:{htmlFor:f,disabled:r,required:n,size:"medium"},elementType:Sp}),indicator:Wr(e.indicator,{renderByDefault:!0,defaultProps:{"aria-hidden":!0,children:h},elementType:"div"})};p.input.onChange=Vn(e=>{const t=e.currentTarget.indeterminate?"mixed":e.currentTarget.checked;null==s||s(e,{checked:t}),c(t)});const m=Wn(p.input.ref);return p.input.ref=m,Fn(()=>{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=Ap(),s=Pp();e.root.className=Se(_p,a,r?s.disabled:"mixed"===t?s.mixed:t?s.checked:s.unchecked,e.root.className);const l=Ip(),c=Bp();e.input.className=Se(Tp,l,"large"===i&&c.large,c[n],e.input.className);const u=Np(),d=Dp();e.indicator&&(e.indicator.className=Se(Ep,u,"large"===i&&d.large,"circular"===o&&d.circular,e.indicator.className));const f=zp();e.label&&(e.label.className=Se(Cp,f.base,f[i],f[n],e.label.className))})(r),In("useCheckboxStyles_unstable")(r),(e=>go(e.root,{children:[mo(e.input,{}),"before"===e.labelPosition&&e.label&&mo(e.label,{}),e.indicator&&mo(e.indicator,{}),"after"===e.labelPosition&&e.label&&mo(e.label,{})]}))(r)});Op.displayName="Checkbox";const Rp=qc({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption:()=>()=>{},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});Rp.Provider;const Mp={activeOption:void 0,focusVisible:!1,multiselect:!1,getOptionById(){},getOptionsMatchingValue:()=>[],registerOption:()=>()=>{},selectedOptions:[],onOptionClick(){},onActiveDescendantChange(){},selectOption(){},setActiveOption(){}},jp=qc(void 0),Lp=e=>Hc(jp,(t=Mp)=>e(t)),Fp=jp.Provider;function Vp(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 qp(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===$c||i||a||l?r?o===Jc&&i||o===Wc||!n&&o===$c?"CloseSelect":n&&o===$c?"Select":o===tu?"Close":o===Gc?"Next":o===Jc?"Previous":o===Xc?"First":"End"===o?"Last":o===Zc?"PageUp":o===Qc?"PageDown":"Tab"===o?"Tab":"None":o===Gc||o===Jc||o===Wc||o===$c?"Open":"None":"Type"}const Hp=()=>{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}},Up=e=>{const{defaultSelectedOptions:t,multiselect:r,onOptionSelect:n}=e,[o,i]=zn({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}},Wp="fui-Option",$p="fui-Option__checkIcon",Gp=Lr({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)"}]]}),Yp=e=>{const{disabled:t,multiselect:r,selected:n}=e,o=Gp();return e.root.className=Se(Wp,o.root,o.active,t&&o.disabled,n&&o.selected,e.root.className),e.checkIcon&&(e.checkIcon.className=Se($p,o.checkIcon,r&&o.multiselectCheck,n&&o.selectedCheck,n&&r&&o.selectedMultiselectCheck,t&&o.checkDisabled,t&&r&&o.multiselectCheckDisabled,e.checkIcon.className)),e},Kp={activeOption:void 0,focusVisible:!1,setActiveOption:()=>null},Jp=(e,t)=>{const{multiselect:r,disableAutoFocus:n=!1}=e,o=Hp(),{listboxRef:i,activeParentRef:a,controller:s}=mu({matchOption:e=>e.classList.contains(Wp)}),l=Uc(jp),c=Lp(e=>e.onActiveDescendantChange),u=Lp(e=>e.getOptionById),d=Lp(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);Ja(v);const y=su(),b=!!g.useContext(iu),w=b?y.controller:s,{clearSelection:x,selectedOptions:k,selectOption:S}=Up(e),_=Lp(e=>e.selectedOptions),C=Lp(e=>e.selectOption),T=l?{selectedOptions:_,selectOption:C,...Kp}:{selectedOptions:k,selectOption:S,...Kp};g.useEffect(()=>{if(!b){if(w.hideFocusVisibleAttributes(),!n)if(!r&&T.selectedOptions.length>0){const e=h(e=>e===T.selectedOptions[0]).pop();(null==e?void 0:e.id)&&w.focus(e.id)}else w.first();return()=>{w.blur()}}},[]);const E=g.useCallback(()=>{b||(w.showFocusVisibleAttributes(),m&&w.scrollActiveIntoView())},[w,b,m]),A=g.useCallback(()=>{b||w.hideFocusVisibleAttributes()},[w,b]),P={components:{root:"div"},root:Ur(dn("div",{ref:Wn(t,a,i,p),role:r?"menu":"listbox",tabIndex:0,...e}),{elementType:"div"}),standalone:!l,multiselect:r,clearSelection:x,activeDescendantController:w,onActiveDescendantChange:c,...o,...T};return P.root.onKeyDown=Vn(ro(P.root.onKeyDown,e=>{const t=qp(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&&S(e,n)}})),P.root.onFocus=Vn(ro(P.root.onFocus,E)),P.root.onBlur=Vn(ro(P.root.onBlur,A)),P},Xp="fui-Listbox",Qp=Lr({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);}"]}),Zp=g.forwardRef((e,t)=>{const r=Jp(e,t),n=function(e){const t=Uc(jp),{getOptionById:r,getOptionsMatchingValue:n,multiselect:o,registerOption:i,selectedOptions:a,selectOption:s,activeDescendantController:l}=e,c=Lp(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:Lp(e=>e.onOptionClick),onActiveDescendantChange:Lp(e=>e.onActiveDescendantChange)},activeDescendant:g.useMemo(()=>({controller:l}),[l])}}(r);return(e=>{const t=Qp();e.root.className=Se(Xp,t.root,e.root.className)})(r),In("useListboxStyles_unstable")(r),((e,t)=>mo(au,{value:t.activeDescendant,children:mo(jp.Provider,{value:t.listbox,children:mo(e.root,{})})}))(r,n)});Zp.displayName="Listbox";const em=(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=Un("fluent-option",e.id),u=g.useMemo(()=>({id:c,disabled:n,text:s,value:l}),[c,n,s,l]),{controller:d}=su(),f=Lp(e=>e.multiselect),h=Lp(e=>e.registerOption),p=Lp(e=>{const t=e.selectedOptions;return void 0!==l&&void 0!==t.find(e=>e===l)}),m=Lp(e=>e.selectOption),v=Lp(e=>e.onOptionClick);let y=g.createElement(Su,null);f&&(y=p?g.createElement(Ou,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:Ur(dn("div",{ref:Wn(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:Wr(e.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:y},elementType:"span"}),disabled:n,multiselect:f,selected:p,focusVisible:!1,active:!1}},tm=g.forwardRef((e,t)=>{const r=em(e,t);return Yp(r),In("useOptionStyles_unstable")(r),(e=>go(e.root,{children:[e.checkIcon&&mo(e.checkIcon,{}),e.root.children]}))(r)});tm.displayName="Option";const rm=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=Hp(),{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]),[k,S]=g.useState(!1),[_,C]=g.useState(!1),T=g.useRef(!1),E=qn(),[A,P]=zn({state:e.value,initialState:void 0}),{selectedOptions:I,selectOption:B,clearSelection:N}=Up(e),D=g.useCallback((e,t)=>{Bh.unstable_batchedUpdates(()=>{P(void 0),B(e,t)})},[P,B]),z=g.useMemo(()=>{if(void 0!==A)return A;if(E&&void 0!==e.defaultValue)return e.defaultValue;const t=v(e=>I.includes(e)).map(e=>e.text);return l?i?"":t.join(", "):t[0]},[A,i,v,l,I]),[O,R]=zn({state:e.open,defaultState:e.defaultOpen,initialState:!1}),M=g.useCallback((e,t)=>{h||(null==c||c(e,{open:t}),Bh.unstable_batchedUpdates(()=>{t||f||P(void 0),R(t)}))},[c,R,P,f,h]);g.useEffect(()=>{if(O){if(!l&&I.length>0){const e=v(e=>e===I[0]).pop();(null==e?void 0:e.id)&&d.focus(e.id)}}else d.blur()},[O,d]),g.useEffect(()=>{!O||r||d.active()||d.first()},[O,n,r,d,y]);const j=Vn(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:D,clearSelection:N,selectedOptions:I,activeOption:w,appearance:t,clearable:o,focusVisible:k,ignoreNextBlur:T,inlinePopup:a,mountNode:s,open:O,hasFocus:_,setActiveOption:x,setFocusVisible:S,setHasFocus:C,setOpen:M,setValue:P,size:u,value:z,multiselect:l,onOptionClick:Vn(e=>{l||M(e,!1)}),onActiveDescendantChange:j}};function nm(e,t,r){const{state:{multiselect:n},triggerRef:o,defaultProps:i}=r,a=Un("fluent-listbox",null===(s=e)||"object"!=typeof s||Array.isArray(s)||g.isValidElement(s)?void 0:e.id);var s;const l=Wr(e,{renderByDefault:!0,elementType:Zp,defaultProps:{id:a,multiselect:n,tabIndex:void 0,...i}}),c=bp({id:a},{supportsLabelFor:!0});l&&!l["aria-label"]&&!l["aria-labelledby"]&&c["aria-labelledby"]&&(l["aria-labelledby"]=c["aria-labelledby"]);const u=Vn(ro(e=>{e.preventDefault()},null==l?void 0:l.onMouseDown)),d=Vn(ro(e=>{var t;e.preventDefault(),null===(t=o.current)||void 0===t||t.focus()},null==l?void 0:l.onClick)),f=Wn(null==l?void 0:l.ref,t);return l&&(l.ref=f,l.onMouseDown=u,l.onClick=d),l}function om(e,t,r){const{state:{open:n,setOpen:o,setHasFocus:i},defaultProps:a,elementType:s,activeDescendantController:l}=r,c=Ur(e,{defaultProps:{type:"text","aria-expanded":n,role:"combobox",..."object"==typeof a&&a},elementType:s}),u=g.useRef(null);return c.ref=Wn(u,c.ref,t),c.onBlur=ro(e=>{o(e,!1),i(!1)},c.onBlur),c.onFocus=ro(e=>{e.target===e.currentTarget&&i(!0)},c.onFocus),c.onClick=ro(e=>{o(e,!n)},c.onClick),c.onKeyDown=ro(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=Ka();return g.useCallback(t=>{var r;null===(r=e.current)||void 0===r||r.setVal(t)},[e])}();return Vn(e=>{const t=qp(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 im(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=om(e,t,{state:r.state,defaultProps:h,elementType:"input",activeDescendantController:p});v.onChange=ro(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=ro(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,k=Vn(t=>{n||"Type"!==qp(t)||d(t,!0),t.key===Yc||t.key===Kc?b(!0):b(!1);const r=qp(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=k,y&&(v["aria-activedescendant"]=void 0),v}const am=(e,t)=>{var r,n;e=bp(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const{listboxRef:o,activeParentRef:i,controller:a}=mu({matchOption:e=>e.classList.contains(Wp)}),s=rm({...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,...Wf(t)},{targetRef:n,containerRef:o}=nh(r);return[o,n]}(e),{disableAutoFocus:w=!1,freeform:x,inlinePopup:k}=e,S=Un("combobox-"),{primary:_,root:C}=un({props:e,primarySlotTagName:"input",excludedPropNames:["children","size"]}),T=g.useRef(null),E=nm(e.listbox,Wn(y,o),{state:s,triggerRef:T,defaultProps:{children:e.children,disableAutoFocus:w}});var A;const P=im(null!==(A=e.input)&&void 0!==A?A:{},Wn(T,i,t),{state:s,freeform:x,defaultProps:{type:"text",value:null!=m?m:"","aria-controls":f?null==E?void 0:E.id:void 0,..._},activeDescendantController:a}),I=Ur(e.root,{defaultProps:{"aria-owns":!k&&f?null==E?void 0:E.id:void 0,...C},elementType:"div"});I.ref=Wn(I.ref,b);const B=h.length>0&&!u&&l&&!d,N={components:{root:"div",input:"input",expandIcon:"span",listbox:Zp,clearIcon:"span"},root:I,input:P,listbox:f||v?E:void 0,clearIcon:Wr(e.clearIcon,{defaultProps:{"aria-hidden":"true",children:g.createElement(Iu,null)},elementType:"span",renderByDefault:!0}),expandIcon:Wr(e.expandIcon,{renderByDefault:!0,defaultProps:{"aria-disabled":u?"true":void 0,"aria-expanded":f,children:g.createElement(_u,null),role:"button"},elementType:"span"}),showClearIcon:B,activeDescendantController:a,...s},{targetDocument:D}=Sn();Gn({element:D,callback:e=>p(e,!1),refs:[T,y,b],disabled:!f});const{onMouseDown:z}=N.expandIcon||{},O=Vn(ro(z,e=>{var t;e.preventDefault(),N.setOpen(e,!N.open),null===(t=T.current)||void 0===t||t.focus()}));if(N.expandIcon){N.expandIcon.onMouseDown=O;const t="Open";if(!(N.expandIcon["aria-label"]||N.expandIcon["aria-labelledby"]))if(e["aria-labelledby"]){var R;const e=null!==(R=N.expandIcon.id)&&void 0!==R?R:`${S}-chevron`,r=`${e} ${N.input["aria-labelledby"]}`;N.expandIcon["aria-label"]=t,N.expandIcon.id=e,N.expandIcon["aria-labelledby"]=r}else e["aria-label"]?N.expandIcon["aria-label"]=`${t} ${e["aria-label"]}`:N.expandIcon["aria-label"]=t}const M=Vn(ro(null===(r=N.clearIcon)||void 0===r?void 0:r.onMouseDown,e=>{e.preventDefault()})),j=Vn(ro(null===(n=N.clearIcon)||void 0===n?void 0:n.onClick,e=>{c(e)}));return N.clearIcon&&(N.clearIcon.onMouseDown=M,N.clearIcon.onClick=j),d&&(N.clearIcon=void 0),N},sm=(e,t)=>mo(e.root,{children:mo(au,{value:t.activeDescendant,children:mo(Fp,{value:t.listbox,children:go(Rp.Provider,{value:t.combobox,children:[mo(e.input,{}),e.clearIcon&&mo(e.clearIcon,{}),e.expandIcon&&mo(e.expandIcon,{}),e.listbox&&(e.inlinePopup?mo(e.listbox,{}):mo(Nh,{mountNode:e.mountNode,children:mo(e.listbox,{})}))]})})})}),lm="fui-Combobox",cm="fui-Combobox__input",um="fui-Combobox__expandIcon",dm="fui-Combobox__clearIcon",fm="fui-Combobox__listbox",hm=Lr({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);}"]}),pm=Lr({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;}"]}),mm=Lr({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=hm(),l=mm(),c=pm();return e.root.className=Se(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=Se(cm,c.input,c[n],a&&c.disabled,e.input.className),e.listbox&&(e.listbox.className=Se(fm,s.listbox,e.inlinePopup&&s.inlineListbox,!r&&s.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=Se(um,l.icon,l[n],a&&l.disabled,o&&l.visuallyHidden,e.expandIcon.className)),e.clearIcon&&(e.clearIcon.className=Se(dm,l.icon,l[n],a&&l.disabled,!o&&l.hidden,e.clearIcon.className)),e},vm=g.forwardRef((e,t)=>{const r=am(e,t),n=Vp(r);return gm(r),In("useComboboxStyles_unstable")(r),sm(r,n)});vm.displayName="Combobox";const ym=(e,t)=>{const r=Un("group-label"),{label:n}=e;return{components:{root:"div",label:"span"},root:Ur(dn("div",{ref:t,role:"group","aria-labelledby":n?r:void 0,...e}),{elementType:"div"}),label:Wr(n,{defaultProps:{id:r,role:"presentation"},elementType:"span"})}},bm=e=>go(e.root,{children:[e.label&&mo(e.label,{children:e.label.children}),e.root.children]}),wm="fui-OptionGroup",xm="fui-OptionGroup__label",km=Lr({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}]]}),Sm=e=>{const t=km();return e.root.className=Se(wm,t.root,e.root.className),e.label&&(e.label.className=Se(xm,t.label,e.label.className)),e},_m=g.forwardRef((e,t)=>{const r=ym(e,t);return Sm(r),In("useOptionGroupStyles_unstable")(r),bm(r)});_m.displayName="OptionGroup";const Cm="fui-Input",Tm="fui-Input__input",Em="fui-Input__contentBefore",Am="fui-Input__contentAfter",Pm=Fr("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;}}"]}),Im=Lr({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;}"]}),Bm=Fr("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;}"]),Nm=Lr({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);}"]}),Dm=Fr("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),zm=Lr({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;}"]}),Om=g.forwardRef((e,t)=>{const r=((e,t)=>{e=bp(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=Tn();var n;const{size:o="medium",appearance:i=(null!==(n=r.inputDefaultAppearance)&&void 0!==n?n:"outline"),onChange:a}=e,[s,l]=zn({state:e.value,defaultState:e.defaultValue,initialState:""}),c=un({props:e,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),u={size:o,appearance:i,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:Ur(e.input,{defaultProps:{type:"text",ref:t,...c.primary},elementType:"input"}),contentAfter:Wr(e.contentAfter,{elementType:"span"}),contentBefore:Wr(e.contentBefore,{elementType:"span"}),root:Ur(e.root,{defaultProps:c.root,elementType:"span"})};return u.input.value=s,u.input.onChange=Vn(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=Im(),s=Nm(),l=zm();e.root.className=Se(Cm,Pm(),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=Se(Tm,Bm(),s[t],e.contentBefore&&s[`${t}WithContentBefore`],e.contentAfter&&s[`${t}WithContentAfter`],n&&s.disabled,e.input.className);const c=[Dm(),n&&l.disabled,l[t]];e.contentBefore&&(e.contentBefore.className=Se(Em,...c,e.contentBefore.className)),e.contentAfter&&(e.contentAfter.className=Se(Am,...c,e.contentAfter.className))})(r),In("useInputStyles_unstable")(r),(e=>go(e.root,{children:[e.contentBefore&&mo(e.contentBefore,{}),mo(e.input,{}),e.contentAfter&&mo(e.contentAfter,{})]}))(r)});Om.displayName="Input";const Rm=qc(void 0),Mm={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},jm=Rm.Provider,Lm=e=>Hc(Rm,(t=Mm)=>e(t)),Fm=g.createContext(void 0),Vm=Fm.Provider,qm=qc(void 0),Hm={checkedValues:{},setFocusByFirstCharacter:()=>null,toggleCheckbox:()=>null,selectRadio:()=>null,hasIcons:!1,hasCheckmarks:!1},Um=qm.Provider,Wm=e=>Hc(qm,(t=Hm)=>e(t)),$m="fuimenuenter";function Gm(){const e=Lm(e=>e.isSubmenu),t=Uc(qm);return e||t}const Ym="fuimenusafezonetimeout",Km=Lr({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;}"]}),Jm="fui-MenuItem",Xm="fui-MenuItem__icon",Qm="fui-MenuItem__checkmark",Zm="fui-MenuItem__submenuIndicator",eg="fui-MenuItem__content",tg="fui-MenuItem__secondaryContent",rg="fui-MenuItem__subText",ng=Fr("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;}}"]}),og=Fr("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;}"]),ig=Fr("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);}"]),ag=Fr("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;}"]),sg=Fr("r9c34qo",null,[".r9c34qo{width:20px;height:20px;font-size:20px;line-height:0;align-items:center;display:inline-flex;justify-content:center;}"]),lg=Fr("rk2ppru",null,[".rk2ppru{font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase100);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase100);color:var(--colorNeutralForeground3);}"]),cg=Lr({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)"}]]}),ug=Lr({disabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),dg=Lr({content:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62"},secondaryContent:{qb2dma:"f7nlbp4"},submenuIndicator:{qb2dma:"f7nlbp4"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f7nlbp4{align-self:center;}"]}),fg=e=>{const t=cg(),r=ng(),n=og(),o=ig(),i=ag(),a=sg(),s=dg(),l=lg(),c=ug(),u=!!e.subText;return e.root.className=Se(Jm,r,e.disabled&&t.disabled,e.root.className),e.content&&(e.content.className=Se(eg,n,e.content.className,u&&s.content)),e.checkmark&&(e.checkmark.className=Se(Qm,t.checkmark,e.checkmark.className)),e.secondaryContent&&(e.secondaryContent.className=Se(tg,o,e.disabled&&t.disabled,e.secondaryContent.className,u&&s.secondaryContent)),e.icon&&(e.icon.className=Se(Xm,i,e.icon.className)),e.submenuIndicator&&(e.submenuIndicator.className=Se(Zm,a,e.submenuIndicator.className,u&&s.submenuIndicator)),e.subText&&(e.subText.className=Se(rg,e.disabled&&c.disabled,e.subText.className,l)),(e=>{const t=Km();e.checkmark&&(e.checkmark.className=Se(t.root,e.checked&&t.rootChecked,e.checkmark.className))})(e),e},hg=["after","after-bottom","before-top","before","before-bottom","above"],pg=e=>{const[t,r]=zn({state:e.checkedValues,defaultState:e.defaultCheckedValues,initialState:{}});return[t,Vn((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}))})]},mg=e=>{const{targetDocument:t}=Sn(),r=Lm(e=>e.setOpen),n=Vn((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]=zn({state:e.open,defaultState:e.defaultOpen,initialState:!1}),s=Vn((t,o)=>{const i=t instanceof CustomEvent&&t.type===$m?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]=eo(),u=Vn((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!==$m?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))});Gn({contains:co,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;Xn({contains:co,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=Vn(e=>{const n=t[0],i=e.target;var a;!co(null!==(a=n.current)&&void 0!==a?a:null,i)&&!o&&r(e)});g.useEffect(()=>{if(null!=n)return o||n.addEventListener($m,i),()=>{n.removeEventListener($m,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}=La(),h=g.useCallback(()=>{const t=f(e.menuPopoverRef.current);null==t||t.focus()},[f,e.menuPopoverRef]),p=qn();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=Gm(),{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}=Sn(),p=Un("menu"),[m,v]=oh(),y={position:t?"after":"below",align:t?"top":"start",target:e.openOnContext?m:void 0,fallbackPositions:t?hg:void 0,...Wf(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:k,containerRef:S}=nh(y),_=f&&c,C=g.useRef({isInside:!1,mouseCoordinates:{x:0,y:0}}),T=xh({disabled:!_,timeout:"object"==typeof f?f.timeout:300,onSafeZoneEnter:e=>{I(e,{open:!0,keyboard:!1,type:"menuSafeZoneMouseEnter",event:e}),C.current.isInside=!0},onSafeZoneLeave:()=>{C.current.isInside=!1},onSafeZoneMove:e=>{C.current.mouseCoordinates={x:e.clientX,y:e.clientY}},onSafeZoneTimeout:()=>{const e=new CustomEvent(Ym);if(I(e,{open:!1,keyboard:!1,type:"menuSafeZoneTimeout",event:e}),C.current.isInside&&h){const t=h.elementsFromPoint(C.current.mouseCoordinates.x,C.current.mouseCoordinates.y).find(e=>e.classList.contains(Jm));null==t||t.dispatchEvent(e)}}}),E=Wn(k,T.targetRef),A=Wn(S,T.containerRef),[P,I]=mg({hoverDelay:r,isSubmenu:t,setContextTarget:v,closeOnScroll:a,menuPopoverRef:A,triggerRef:E,open:e.open,defaultOpen:e.defaultOpen,onOpenChange:e.onOpenChange,openOnContext:s}),[B,N]=pg({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:E,menuPopoverRef:A,components:{},openOnContext:s,open:P,setOpen:I,checkedValues:B,onCheckedValueChange:N,persistOnItemClick:l,safeZone:T.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(jm,{value:t.menu},e.menuTrigger,e.open&&e.menuPopover))(t,r)};gg.displayName="Menu";const vg=g.createContext(void 0),yg={setMultiline:()=>null};vg.Provider;const bg=()=>{var e;return null!==(e=g.useContext(vg))&&void 0!==e?e:yg},wg=()=>bg()!==yg,xg=Gu(Eu,Au),kg=Gu(Cu,Tu),Sg=(e,t)=>{const r=null!==(n=g.useContext(Fm))&&void 0!==n&&n;var n;const o=Lm(e=>e.persistOnItemClick),{as:i="div",disabled:a=!1,hasSubmenu:s=r,persistOnClick:l=o,content:c,...u}=e,{hasIcons:d,hasCheckmarks:f}=Cg({hasSubmenu:s}),h=Lm(e=>e.setOpen);_g({multiline:!!e.subText,hasSubmenu:s});const{dir:p}=Sn(),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:Ur(dn(i,ru(i,{role:"menuitem",...u,disabled:!1,disabledFocusable:a,ref:Wn(t,m),onKeyDown:Vn(t=>{var r;null===(r=e.onKeyDown)||void 0===r||r.call(e,t),t.isDefaultPrevented()||t.key!==$c&&t.key!==Wc||(v.current=!0)}),onMouseMove:Vn(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:Vn(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:Wr(e.icon,{renderByDefault:d,elementType:"span"}),checkmark:Wr(e.checkmark,{renderByDefault:f,elementType:"span"}),submenuIndicator:Wr(e.submenuIndicator,{renderByDefault:s,defaultProps:{children:"ltr"===p?g.createElement(xg,null):g.createElement(kg,null)},elementType:"span"}),content:Wr(e.content,{renderByDefault:!!e.children,defaultProps:{children:e.children},elementType:"span"}),secondaryContent:Wr(e.secondaryContent,{elementType:"span"}),subText:Wr(e.subText,{elementType:"span"})};return((e,t)=>{const r=Wm(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},_g=e=>{const{hasSubmenu:t,multiline:r}=e,n=wg()&&t,{setMultiline:o}=bg();Fn(()=>{n||o(r)},[o,r,n])},Cg=e=>{const{hasSubmenu:t}=e,r=Wm(e=>e.hasIcons),n=Wm(e=>e.hasCheckmarks),o=wg()&&t;return{hasIcons:r&&!o,hasCheckmarks:n&&!o}},Tg=g.forwardRef((e,t)=>{const r=Sg(e,t);return fg(r),In("useMenuItemStyles_unstable")(r),(e=>go(e.root,{children:[e.checkmark&&mo(e.checkmark,{}),e.icon&&mo(e.icon,{}),e.content&&go(e.content,{children:[e.content.children,e.subText&&mo(e.subText,{})]}),e.secondaryContent&&mo(e.secondaryContent,{}),e.submenuIndicator&&mo(e.submenuIndicator,{})]}))(r)});Tg.displayName="MenuItem";const Eg=()=>({checkedValues:Lm(e=>e.checkedValues),onCheckedValueChange:Lm(e=>e.onCheckedValueChange),triggerId:Lm(e=>e.triggerId),hasIcons:Lm(e=>e.hasIcons),hasCheckmarks:Lm(e=>e.hasCheckmarks)}),Ag=(e,t,r)=>{let n=!1;for(const o in t)e[o]&&(n=!0);return r&&n};const Pg="fui-MenuList",Ig=Lr({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%;}"]}),Bg=g.forwardRef((e,t)=>{const r=((e,t)=>{const{findAllFocusable:r}=La(),{targetDocument:n}=Sn(),o=Eg(),i=Uc(Rm),a=Ma({circular:!0});Ag(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(ni,t),()=>{n.removeEventListener(ni,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]=zn({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=Vn((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=Vn((e,t,r)=>{const n=[r];d(e=>({...e,[t]:n})),null==h||h(e,{name:t,checkedItems:n})});return{components:{root:"div"},root:Ur(dn("div",{ref:Wn(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=Ig();e.root.className=Se(Pg,t.root,e.hasMenuContext&&t.hasMenuContext,e.root.className)})(r),In("useMenuListStyles_unstable")(r),((e,t)=>mo(Um,{value:t.menuList,children:mo(e.root,{})}))(r,n)});Bg.displayName="MenuList";const Ng=(e,t)=>{const r=Lm(e=>e.safeZone),n=Lm(e=>e.menuPopoverRef),o=Lm(e=>e.setOpen),i=Lm(e=>e.open),a=Lm(e=>e.openOnHover),s=Lm(e=>e.triggerRef),l=Gm(),c=g.useRef(!0),u=(Oa(Na),Ki({restorer:{type:Lo}})),[d,f]=eo(),{dir:h}=Sn(),p="ltr"===h?Yc:Kc,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($m,{bubbles:!0,detail:{nativeEvent:r}})),d(()=>{c.current=!0},250))})},[n,d]);var v;g.useEffect(()=>()=>f(),[f]);const y=null!==(v=Lm(e=>e.inline))&&void 0!==v&&v,b=Lm(e=>e.mountNode),w=Ur(dn("div",{role:"presentation",...u,...e,ref:Wn(t,n,m)}),{elementType:"div"}),{onMouseEnter:x,onKeyDown:k}=w;return w.onMouseEnter=Vn(e=>{(a||l)&&o(e,{open:!0,keyboard:!1,type:"menuPopoverMouseEnter",event:e}),null==x||x(e)}),w.onKeyDown=Vn(e=>{const t=e.key;var r,a;(t===tu||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==k||k(e)}),{inline:y,mountNode:b,safeZone:r,components:{root:"div"},root:w}},Dg="fui-MenuPopover",zg=Lr({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;}}"]}),Og=g.forwardRef((e,t)=>{const r=Ng(e,t);return(e=>{const t=zg();e.root.className=Se(Dg,t.root,e.root.className)})(r),In("useMenuPopoverStyles_unstable")(r),(e=>e.inline?go(g.Fragment,{children:[mo(e.root,{}),e.safeZone]}):go(Nh,{mountNode:e.mountNode,children:[mo(e.root,{}),e.safeZone]}))(r)});function Rg(){}Og.displayName="MenuPopover";const Mg=e=>{const{children:t,disableButtonEnhancement:r=!1}=e,n=Lm(e=>e.triggerRef),o=Lm(e=>e.menuPopoverRef),i=Lm(e=>e.setOpen),a=Lm(e=>e.open),s=Lm(e=>e.triggerId),l=Lm(e=>e.openOnHover),c=Lm(e=>e.openOnContext),u=Gm(),{findFirstFocusable:d}=La(),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}=Sn(),y="ltr"===v?Kc:Yc,b=so(t),w=(e=>{const t=g.useRef(null);return g.useCallback(r=>{var n;null===(n=t.current)||void 0===n||n.removeEventListener(Ym,e),null==r||r.addEventListener(Ym,e),t.current=r},[e])})(Vn(()=>{u&&(p.current=!0)}));var x;const k={id:s,...null==b?void 0:b.props,ref:Wn(n,null==b?void 0:b.ref,w),onMouseEnter:Vn(null!==(x=null==b?void 0:b.props.onMouseEnter)&&void 0!==x?x:Rg),onMouseLeave:Vn(ro(null==b?void 0:b.props.onMouseLeave,e=>{jg(e)||l&&i(e,{open:!1,keyboard:!1,type:"menuTriggerMouseLeave",event:e})})),onContextMenu:Vn(ro(null==b?void 0:b.props.onContextMenu,e=>{jg(e)||e.isDefaultPrevented()||c&&(e.preventDefault(),i(e,{open:!0,keyboard:!1,type:"menuTriggerContextMenu",event:e}))})),onMouseMove:Vn(ro(null==b?void 0:b.props.onMouseMove,e=>{jg(e)||l&&!m.current&&(i(e,{open:!0,keyboard:!1,type:"menuTriggerMouseMove",event:e}),m.current=!0)})),onMouseOver:Vn(ro(null==b?void 0:b.props.onMouseOver,e=>{jg(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))}))},S={"aria-haspopup":"menu","aria-expanded":a||u?a:void 0,...k,onClick:Vn(ro(null==b?void 0:b.props.onClick,e=>{jg(e)||c||(i(e,{open:!a,keyboard:h.current,type:"menuTriggerClick",event:e}),h.current=!1)})),onKeyDown:Vn(ro(null==b?void 0:b.props.onKeyDown,e=>{if(jg(e)||e.isDefaultPrevented())return;const t=e.key;!c&&(u&&t===y||!u&&t===Gc)&&i(e,{open:!0,keyboard:!0,type:"menuTriggerKeyDown",event:e}),t!==tu||u||i(e,{open:!1,keyboard:!0,type:"menuTriggerKeyDown",event:e}),a&&t===y&&u&&f()}))},_=ru("button"===(null==b?void 0:b.type)||"a"===(null==b?void 0:b.type)?b.type:"div",S);return{isSubmenu:u,children:io(t,c?k:r?S:_)}},jg=e=>{const t=e=>e.hasAttribute("disabled")||e.hasAttribute("aria-disabled")&&"true"===e.getAttribute("aria-disabled");return!(!no(e.target)||!t(e.target))||no(e.currentTarget)&&t(e.currentTarget)},Lg=e=>(e=>g.createElement(Vm,{value:e.isSubmenu},e.children))(Mg(e));Lg.displayName="MenuTrigger",Lg.isFluentTriggerComponent=!0;const Fg=g.createContext(void 0),Vg={};Fg.Provider;const qg="fui-RadioGroup",Hg=Lr({root:{mc9l5x:"f22iagw",Bt984gj:"f6jr5hl"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f6jr5hl{align-items:flex-start;}",".f1vx9l62{flex-direction:column;}"]}),Ug=g.forwardRef((e,t)=>{const r=((e,t)=>{e=bp(e);const r=Un("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",...Ur(dn("div",e,["onChange","name"]),{elementType:"div"}),onChange:Vn(e=>{l&&no(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=Hg();e.root.className=Se(qg,t.root,"vertical"===e.layout&&t.vertical,e.root.className)})(r),In("useRadioGroupStyles_unstable")(r),((e,t)=>mo(Fg.Provider,{value:t.radioGroup,children:mo(e.root,{})}))(r,n)});Ug.displayName="RadioGroup";const Wg=(e,t)=>{const r=g.useContext(Fg)||Vg,{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=un({props:e,primarySlotTagName:"input",excludedPropNames:["checked","defaultChecked","onChange"]}),f=Ur(e.root,{defaultProps:{ref:Ya(),...d.root},elementType:"span"}),h=Ur(e.input,{defaultProps:{ref:t,type:"radio",id:Un("radio-",d.primary.id),name:n,checked:o,defaultChecked:i,disabled:s,required:l,"aria-describedby":c,...d.primary},elementType:"input"});h.onChange=ro(h.onChange,e=>null==u?void 0:u(e,{value:e.currentTarget.value}));const p=Wr(e.label,{defaultProps:{htmlFor:h.id,disabled:h.disabled},elementType:Sp}),m=Ur(e.indicator,{defaultProps:{"aria-hidden":!0},elementType:"div"});return{labelPosition:a,components:{root:"span",input:"input",label:Sp,indicator:"div"},root:f,input:h,label:p,indicator:m}},$g="fui-Radio",Gg="fui-Radio__indicator",Yg="fui-Radio__input",Kg="fui-Radio__label",Jg=Fr("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;}}"]}),Xg=Lr({vertical:{Beiy3e4:"f1vx9l62",Bt984gj:"f122n59"}},{d:[".f1vx9l62{flex-direction:column;}",".f122n59{align-items:center;}"]}),Qg=Fr("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;}}"]}),Zg=Lr({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;}"]}),ev=Fr("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;}"]),tv=Lr({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;}"]}),rv=g.forwardRef((e,t)=>{const r=Wg(e,t);return(e=>{const{labelPosition:t}=e,r=Jg(),n=Xg();e.root.className=Se($g,r,"below"===t&&n.vertical,e.root.className);const o=Qg(),i=Zg();e.input.className=Se(Yg,o,"below"===t&&i.below,e.indicator.children?i.customIndicator:i.defaultIndicator,e.input.className);const a=ev();e.indicator.className=Se(Gg,a,e.indicator.className);const s=tv();e.label&&(e.label.className=Se(Kg,s.base,s[t],e.label.className))})(r),In("useRadioStyles_unstable")(r),(e=>go(e.root,{children:[mo(e.input,{}),mo(e.indicator,{}),e.label&&mo(e.label,{})]}))(r)});rv.displayName="Radio";const nv=(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},ov=(e,t,r)=>void 0!==t&&e===t?r===t?"both":"min":void 0!==r&&e===r?"max":"none";function iv(e,t,r=10){const n=Math.pow(r,t);return Math.round(e*n)/n}const av=(e,t)=>{e=bp(e,{supportsLabelFor:!0,supportsRequired:!0});const r=un({props:e,primarySlotTagName:"input",excludedPropNames:["defaultValue","max","min","onChange","size","value"]}),n=Tn();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]),[k,S]=zn({state:i,defaultState:s,initialState:0}),_=g.useRef(null),C=void 0!==i,[T,E]=g.useState(void 0),[A,P]=g.useState("rest"),I=g.useRef({value:k,spinState:"rest",spinTime:0,spinDelay:150,atBound:null!==k?ov(iv(k,x),l,c):"none"}),[B,N]=eo(),D=(e,t,r)=>{let n=I.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=nv((void 0===l?0:l)+a*i,l,c);return void R(e,t)}let s=o+a*i;Number.isNaN(s)||(s=nv(s,l,c)),R(e,s),"rest"!==I.current.spinState&&B(()=>{var r,n,o;I.current.spinTime+=I.current.spinDelay,I.current.spinDelay=(r=150,n=80,o=I.current.spinTime/1e3,r+(n-r)*o),D(e,t)},I.current.spinDelay)},z=e=>{I.current.previousTextValue||(I.current.previousTextValue=null!=T?T:String(k));const t=e.target.value;E(t),_.current&&(_.current.ariaValueNow=t)},O=e=>{N(),I.current.spinState="rest",I.current.spinDelay=150,I.current.spinTime=0},R=(e,t,r)=>{const n=void 0!==t&&k!==t,o=void 0!==r&&void 0!==I.current.previousTextValue&&I.current.previousTextValue!==r;let i;if(n)i=iv(t,x),S(i),I.current.value=i;else if(o&&!C){const e=parseFloat(r);isNaN(e)||(S(iv(e,x)),I.current.value=iv(e,x))}(n||o)&&(null==h||h(e,{value:i,displayValue:r})),E(void 0)};let M;if(void 0!==T)M=T;else if(null===i||null===k)M=null!=a?a:"",I.current.value=null,I.current.atBound="none";else{const e=iv(k,x);I.current.value=e,I.current.atBound=ov(e,l,c),M=C&&null!=a?a:String(e)}const j={size:p,appearance:m,spinState:A,atBound:I.current.atBound,components:{root:"span",input:"input",incrementButton:"button",decrementButton:"button"},root:Ur(v,{defaultProps:r.root,elementType:"span"}),input:Ur(y,{defaultProps:{autoComplete:"off",role:"spinbutton",appearance:m,type:"text",...r.primary},elementType:"input"}),incrementButton:Ur(b,{defaultProps:{tabIndex:-1,children:g.createElement(Fu,null),disabled:r.primary.disabled||"max"===I.current.atBound||"both"===I.current.atBound,"aria-label":"Increment value",type:"button"},elementType:"button"}),decrementButton:Ur(w,{defaultProps:{tabIndex:-1,children:g.createElement(Mu,null),disabled:r.primary.disabled||"min"===I.current.atBound||"both"===I.current.atBound,"aria-label":"Decrement value",type:"button"},elementType:"button"})};var L,F;return j.input.value=M,j.input.ref=Wn(_,t),j.input["aria-valuemin"]=l,j.input["aria-valuemax"]=c,j.input["aria-valuenow"]=null!==(L=I.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=ro(j.input.onChange,z),j.input.onInput=ro(j.input.onInput,z),j.input.onBlur=ro(j.input.onBlur,e=>{R(e,k,T),I.current.previousTextValue=void 0}),j.input.onKeyDown=ro(j.input.onKeyDown,e=>{let t="rest";e.key===Jc?(D(e,"up",T),t="up"):e.key===Gc?(D(e,"down",T),t="down"):e.key===Zc?(e.preventDefault(),D(e,"upPage",T),t="up"):e.key===Qc?(e.preventDefault(),D(e,"downPage",T),t="down"):e.shiftKey||e.key!==Xc||void 0===l?e.shiftKey||"End"!==e.key||void 0===c?e.key===Wc?(R(e,k,T),I.current.previousTextValue=void 0):e.key===tu&&I.current.previousTextValue&&(E(void 0),I.current.previousTextValue=void 0):(R(e,c),t="up"):(R(e,l),t="down"),A!==t&&P(t)}),j.input.onKeyUp=ro(j.input.onKeyUp,e=>{"rest"!==A&&(P("rest"),I.current.spinState="rest")}),j.incrementButton.onMouseDown=ro(e=>{R(e,k,T),I.current.spinState="up",D(e,"up")},j.incrementButton.onMouseDown),j.incrementButton.onMouseUp=ro(j.incrementButton.onMouseUp,O),j.incrementButton.onMouseLeave=ro(j.incrementButton.onMouseLeave,O),j.decrementButton.onMouseDown=ro(e=>{R(e,k,T),I.current.spinState="down",D(e,"down")},j.decrementButton.onMouseDown),j.decrementButton.onMouseUp=ro(j.decrementButton.onMouseUp,O),j.decrementButton.onMouseLeave=ro(j.decrementButton.onMouseLeave,O),j},sv="fui-SpinButton",lv="fui-SpinButton__input",cv="fui-SpinButton__incrementButton",uv="fui-SpinButton__decrementButton",dv="fui-SpinButton__button_active",fv=Fr("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;}}"]}),hv=Lr({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)"}]]}),pv=Fr("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;}"]),mv=Lr({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=Fr("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);}"]),vv=Lr({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);}"]}),yv=g.forwardRef((e,t)=>{const r=av(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=hv(),l=vv(),c=mv();e.root.className=Se(sv,fv(),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=Se(cv,"up"===r&&`${dv}`,gv(),l.increment,l[t],"small"===n&&l.incrementButtonSmall,e.incrementButton.className),e.decrementButton.className=Se(uv,"down"===r&&`${dv}`,gv(),l.decrement,l[t],"small"===n&&l.decrementButtonSmall,e.decrementButton.className),e.input.className=Se(lv,pv(),o&&c.disabled,e.input.className)})(r),In("useSpinButtonStyles_unstable")(r),(e=>go(e.root,{children:[mo(e.input,{}),mo(e.incrementButton,{}),mo(e.decrementButton,{})]}))(r)});yv.displayName="SpinButton";const bv=g.createContext(void 0),wv={};bv.Provider;const xv=(e,t)=>{const{size:r}=null!==(n=g.useContext(bv))&&void 0!==n?n:wv;var n;const{appearance:o="primary",labelPosition:i="after",size:a=(null!=r?r:"medium"),delay:s=0}=e,l=Un("spinner"),{role:c="progressbar",...u}=e,d=Ur(dn("div",{ref:t,role:c,...u},["size"]),{elementType:"div"}),[f,h]=g.useState(!1),[p,m]=eo();g.useEffect(()=>{if(!(s<=0))return p(()=>{h(!0)},s),()=>{m()}},[p,m,s]);const v=Wr(e.label,{defaultProps:{id:l},renderByDefault:!1,elementType:Sp}),y=Wr(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:Sp},root:d,spinner:y,spinnerTail:Ur(e.spinnerTail,{elementType:"span"}),label:v}},kv="fui-Spinner",Sv="fui-Spinner__spinner",_v="fui-Spinner__spinnerTail",Cv="fui-Spinner__label",Tv=Fr("r82apo5",null,[".r82apo5{display:flex;align-items:center;justify-content:center;line-height:0;gap:8px;overflow:hidden;}"]),Ev=Lr({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),Av=Fr("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;}}"]}),Pv=Fr("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;}}"]}),Iv=Lr({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)"}]]}),Bv=Lr({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);}"]}),Nv=g.forwardRef((e,t)=>{const r=xv(e,t);return(e=>{const{labelPosition:t,size:r,appearance:n}=e,{dir:o}=Sn(),i=Tv(),a=Ev(),s=Av(),l=Iv(),c=Pv(),u=Bv();e.root.className=Se(kv,i,("above"===t||"below"===t)&&a.vertical,e.root.className),e.spinner&&(e.spinner.className=Se(Sv,s,l[r],"inverted"===n&&l.inverted,e.spinner.className)),e.spinnerTail&&(e.spinnerTail.className=Se(_v,c,"rtl"===o&&l.rtlTail,e.spinnerTail.className)),e.label&&(e.label.className=Se(Cv,u[r],"inverted"===n&&u.inverted,e.label.className))})(r),In("useSpinnerStyles_unstable")(r),(e=>{const{labelPosition:t,shouldRenderSpinner:r}=e;return go(e.root,{children:[e.label&&r&&("above"===t||"before"===t)&&mo(e.label,{}),e.spinner&&r&&mo(e.spinner,{children:e.spinnerTail&&mo(e.spinnerTail,{})}),e.label&&r&&("below"===t||"after"===t)&&mo(e.label,{})]})})(r)});Nv.displayName="Spinner";const Dv="fui-Textarea",zv="fui-Textarea__textarea",Ov=Lr({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);}"]}),Rv=Lr({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);}"]}),Mv=Lr({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;}"]}),jv=g.forwardRef((e,t)=>{const r=((e,t)=>{e=bp(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=Tn();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]=zn({state:e.value,defaultState:e.defaultValue,initialState:void 0}),u=un({props:e,primarySlotTagName:"textarea",excludedPropNames:["onChange","value","defaultValue"]}),d={size:o,appearance:i,resize:a,components:{root:"span",textarea:"textarea"},textarea:Ur(e.textarea,{defaultProps:{ref:t,...u.primary},elementType:"textarea"}),root:Ur(e.root,{defaultProps:u.root,elementType:"span"})};return d.textarea.value=l,d.textarea.onChange=Vn(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=Ov();e.root.className=Se(Dv,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=Rv(),c=Mv();e.textarea.className=Se(zv,l.base,l[t],c[n],o&&l.disabled,e.textarea.className)})(r),In("useTextareaStyles_unstable")(r),(e=>mo(e.root,{children:mo(e.textarea,{})}))(r)});jv.displayName="Textarea";const Lv="fui-ProgressBar",Fv="fui-ProgressBar__bar",Vv=Lr({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)"}]]}),qv=Lr({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;}}"]}),Hv=g.forwardRef((e,t)=>{const r=((e,t)=>{const r=yp(),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=Ur(dn("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:Ur(e.bar,{elementType:"div"})}})(e,t);return(e=>{const{color:t,max:r,shape:n,thickness:o,value:i}=e,a=Vv(),s=qv();e.root.className=Se(Lv,a.root,a[n],a[o],e.root.className),e.bar&&(e.bar.className=Se(Fv,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),In("useProgressBarStyles_unstable")(r),(e=>mo(e.root,{children:e.bar&&mo(e.bar,{})}))(r)});Hv.displayName="ProgressBar";const Uv=g.createContext(void 0),Wv={handleTagDismiss:()=>({}),size:"medium",role:"toolbar",handleTagSelect:void 0},$v=Uv.Provider,Gv={medium:28,small:20,"extra-small":16},Yv={rounded:"square",circular:"circular"},Kv=(e,t)=>{const{handleTagDismiss:r,size:n,disabled:o,appearance:i,dismissible:a,role:s}=null!==(l=g.useContext(Uv))&&void 0!==l?l:Wv;var l;const c=Un("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=Vn(t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),t.defaultPrevented||null==r||r(t,{value:v})}),b=Vn(t=>{var n;null==e||null===(n=e.onKeyDown)||void 0===n||n.call(e,t),t.defaultPrevented||"Delete"!==t.key&&t.key!==eu||null==r||r(t,{value:v})}),w=f?"button":"span",x="listbox"===s?"aria-selected":"aria-pressed",k="boolean"==typeof h||"listbox"===s;return{appearance:u,avatarShape:Yv[p],avatarSize:Gv[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:Ur(dn(w,{ref:t,role:"listbox"===s?"option":void 0,[x]:k?h:void 0,...e,disabled:!!o||d,id:c,...f&&{onClick:y,onKeyDown:b}}),{elementType:w}),media:Wr(e.media,{elementType:"span"}),icon:Wr(e.icon,{elementType:"span"}),primaryText:Wr(e.primaryText,{renderByDefault:!0,defaultProps:{children:e.children},elementType:"span"}),secondaryText:Wr(e.secondaryText,{elementType:"span"}),dismissIcon:Wr(e.dismissIcon,{renderByDefault:f,defaultProps:{children:g.createElement(Iu,null)},elementType:"span"})}},Jv="fui-Tag",Xv="fui-Tag__media",Qv="fui-Tag__icon",Zv="fui-Tag__primaryText",ey="fui-Tag__secondaryText",ty="fui-Tag__dismissIcon",ry=Fr("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);}}']}),ny=Fr("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);}}']}),oy=Lr({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)"}]]}),iy=Lr({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);}"]}),ay=Lr({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;}"]}),sy=Lr({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=Lr({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;}"]}),cy=Lr({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);}"]}),uy=Lr({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);}"]}),dy=Lr({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;}"]}),fy=Fr("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 hy=g.forwardRef((e,t)=>{const r=Kv(e,t);return(e=>{const t=ry(),r=ny(),n=oy(),o=iy(),i=ay(),a=sy(),s=ly(),l=cy(),c=uy(),u=dy(),d=fy(),{disabled:f,shape:h,size:p,appearance:m,selected:g}=e;e.root.className=Se(Jv,"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=Se(Xv,l.base,l[p],e.media.className)),e.icon&&(e.icon.className=Se(Qv,s.base,s[p],e.icon.className)),e.primaryText&&(e.primaryText.className=Se(Zv,u.base,u[p],e.secondaryText?u.withSecondaryText:u.withoutSecondaryText,e.primaryText.className)),e.secondaryText&&(e.secondaryText.className=Se(ey,d,e.secondaryText.className)),e.dismissIcon&&(e.dismissIcon.className=Se(ty,c.base,c[p],!f&&c[m],g&&!f&&c.selected,e.dismissIcon.className))})(r),In("useTagStyles_unstable")(r),((e,t)=>go(e.root,{children:[e.media&&mo(td,{value:t.avatar,children:mo(e.media,{})}),e.icon&&mo(e.icon,{}),e.primaryText&&mo(e.primaryText,{}),e.secondaryText&&mo(e.secondaryText,{}),e.dismissIcon&&e.dismissible&&mo(e.dismissIcon,{})]}))(r,function(e){const{avatarSize:t,avatarShape:r}=e;return{avatar:g.useMemo(()=>({size:t,shape:r}),[r,t])}}(r))});hy.displayName="Tag";const py="fui-InteractionTagSecondary",my="fui-TagGroup",gy=Lr({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 vy(){return vy=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},vy.apply(null,arguments)}const yy=g.createContext(void 0),by={color:"neutral",iconFilled:Bu,iconOutline:Nu,step:1,size:"medium"},wy=yy.Provider,xy=e=>e+"",ky=(e,t)=>{const r=g.useContext(yy)||by,{value:n=0}=e,{itemLabel:o=xy,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=Ur(dn("span",{ref:Wn(Ya(),t),...e}),{elementType:"span"});let h,p,m,v;d<1&&(h=Ur(e.unselectedIcon,{defaultProps:{children:"filled"===u?g.createElement(i,null):g.createElement(a,null),"aria-hidden":!0},elementType:"div"})),d>0&&(p=Ur(e.selectedIcon,{defaultProps:{children:g.createElement(i,null),"aria-hidden":!0},elementType:"div"})),r.interactive&&.5===r.step&&(m=Ur(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=Ur(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}},Sy="fui-RatingItem",_y="fui-RatingItem__selectedIcon",Cy="fui-RatingItem__unselectedIcon",Ty="fui-RatingItem__halfValueInput",Ey="fui-RatingItem__fullValueInput",Ay=Lr({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)"}]]}),Py=Fr("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%;}"]),Iy=Lr({lowerHalf:{j35jbq:["ffenbu1","f1ktbn1t"]},upperHalf:{oyh7mz:["f1ktbn1t","ffenbu1"]}},{d:[".ffenbu1{right:50%;}",".f1ktbn1t{left:50%;}"]}),By=Fr("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;}"]),Ny=Lr({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)"}]]}),Dy=g.forwardRef((e,t)=>{const r=ky(e,t);return(e=>{const{color:t,size:r,iconFillWidth:n,appearance:o}=e,i=Ay(),a=Py(),s=Iy(),l=By(),c=Ny();e.root.className=Se(Sy,i.root,i[r],e.root.className),e.halfValueInput&&(e.halfValueInput.className=Se(Ty,a,s.lowerHalf,e.halfValueInput.className)),e.fullValueInput&&(e.fullValueInput.className=Se(Ey,a,e.halfValueInput&&s.upperHalf,e.fullValueInput.className)),e.unselectedIcon&&(e.unselectedIcon.className=Se(Cy,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=Se(_y,l,"brand"===t&&c.brand,"marigold"===t&&c.marigold,.5===n&&c.lowerHalf,e.selectedIcon.className))})(r),In("useRatingItemStyles_unstable")(r),(e=>go(e.root,{children:[e.halfValueInput&&mo(e.halfValueInput,{}),e.fullValueInput&&mo(e.fullValueInput,{}),e.unselectedIcon&&mo(e.unselectedIcon,{}),e.selectedIcon&&mo(e.selectedIcon,{})]}))(r)});Dy.displayName="RatingItem";const zy="fui-Rating",Oy=Fr("r2imjyh",null,[".r2imjyh{display:flex;flex-wrap:wrap;}"]),Ry=g.forwardRef((e,t)=>{const r=((e,t)=>{const r=Un("rating-"),{color:n="neutral",iconFilled:o=Bu,iconOutline:i=Nu,max:a=5,name:s=r,onChange:l,step:c=1,size:u="extra-large",itemLabel:d}=e,[f,h]=zn({state:e.value,defaultState:e.defaultValue,initialState:0}),p=e=>no(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(Dy,{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:Ur(dn("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=ro(e.onMouseOver,e=>{if(p(e.target)){const t=parseFloat(e.target.value);isNaN(t)||v(t)}}),b.root.onMouseLeave=ro(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=Oy();e.root.className=Se(zy,t,e.root.className)})(r),In("useRatingStyles_unstable")(r),((e,t)=>mo(wy,{value:t.ratingItem,children:mo(e.root,{})}))(r,n)});Ry.displayName="Rating";const My="fui-RatingDisplay",jy="fui-RatingDisplay__valueText",Ly="fui-RatingDisplay__countText",Fy=Fr("rxxdqwu",null,[".rxxdqwu{display:flex;flex-wrap:wrap;align-items:center;}"]),Vy=Fr("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);}"]),qy=Lr({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:"· ";}']}),Hy=g.forwardRef((e,t)=>{const r=((e,t)=>{const{color:r="neutral",count:n,compact:o=!1,icon:i=Bu,max:a=5,size:s="medium",value:l}=e,c=Un("rating-value-"),u=Un("rating-count-"),d=g.useMemo(()=>o?g.createElement(Dy,{value:1,key:1,"aria-hidden":!0}):Array.from(Array(a),(e,t)=>g.createElement(Dy,{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:Ur(dn("div",{ref:t,children:d,role:"img",...e}),{elementType:"div"}),valueText:Wr(e.valueText,{renderByDefault:void 0!==l,defaultProps:{children:l,id:c,"aria-hidden":!0},elementType:"span"}),countText:Wr(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=Fy();e.root.className=Se(My,r,e.root.className);const n=Vy(),o=qy();e.valueText&&(e.valueText.className=Se(jy,n,o.strong,"large"===t&&o.large,"extra-large"===t&&o.extraLarge,e.valueText.className)),e.countText&&(e.countText.className=Se(Ly,n,"large"===t&&o.large,"extra-large"===t&&o.extraLarge,e.valueText&&o.divider,e.countText.className))})(r),In("useRatingDisplayStyles_unstable")(r),((e,t)=>mo(wy,{value:t.ratingItem,children:go(e.root,{children:[e.root.children,e.valueText&&mo(e.valueText,{}),e.countText&&mo(e.countText,{})]})}))(r,n)});Hy.displayName="RatingDisplay";const Uy=["above","after","after-top","before","before-top"],Wy=(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}},$y={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},Gy=qc(void 0),Yy=Gy.Provider,Ky=e=>Hc(Gy,(t=$y)=>e(t));const Jy=()=>{},Xy=g.memo(e=>{const t=(e=>{const t=Un("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}=nh({position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:Uy,matchTargetSize:"width",...Wf(i)}),{controller:d,activeParentRef:f,listboxRef:h}=mu({matchOption:e=>e.classList.contains(Wp)}),p=rm({...e,onOptionSelect:Vn((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:Vn((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}=Wy(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:Wn(r,f),popoverRef:Wn(h,u),secondaryActionRef:n,tagPickerGroupRef:o,targetRef:c,size:a,inline:s,open:p.open,mountNode:p.mountNode,onOptionClick:Vn(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:Vn((t,r)=>{var n;!p.selectedOptions.includes(r.value)||co(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:k,noPopover:S}=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:Jy},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:k,noPopover:S}}}(t);return((e,t)=>g.createElement(Yy,{value:t.picker},g.createElement(au,{value:t.activeDescendant},g.createElement(Fp,{value:t.listbox},e.trigger,e.inline?e.popover:g.createElement(Nh,{mountNode:e.mountNode},e.popover)))))(t,r)});Xy.displayName="TagPicker";const Qy="--fluent-TagPickerInput__width",Zy=e=>{e.style.removeProperty(Qy),e.scrollWidth>e.offsetWidth+1?e.style.setProperty(Qy,"100%"):e.style.removeProperty(Qy)},eb="fui-TagPickerInput",tb=Fr("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;}"]),rb=Lr({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);}"]}),nb=g.forwardRef((e,t)=>{const r=((e,t)=>{const r=bp(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0}),{controller:n}=su(),o=Ky(e=>e.size),i=Ky(e=>e.disabled),a=Ky(e=>e.tagPickerGroupRef),s=Ky(e=>e.triggerRef),l=Ky(e=>e.selectedOptions),c=Ky(e=>e.setValue),u=Ky(e=>e.setOpen),d=Ky(e=>e.setHasFocus),f=Ky(e=>e.clearSelection),h=Ky(e=>e.open),p=Ky(e=>e.noPopover?void 0:e.popoverId),m=Ky(e=>e.selectOption),v=Ky(e=>e.getOptionById),y=Ky(e=>e.value);Fn(()=>{s.current&&Zy(s.current)},[l,s]),Fn(()=>{if(s.current){const e=s.current,t=()=>Zy(e);return e.addEventListener("input",t),()=>{e.removeEventListener("input",t)}}},[s]);const{value:b=y,disabled:w=i}=r,{findLastFocusable:x}=La(),k=g.useRef(!1);return{components:{root:"input"},root:im({type:"text",value:null!=b?b:"","aria-controls":h?p:void 0,disabled:w,...dn("input",r),onKeyDown:Vn(e=>{var t,n;null===(t=r.onKeyDown)||void 0===t||t.call(r,e),e.key!==Yc&&e.key!==eu||0!==e.currentTarget.selectionStart||0!==e.currentTarget.selectionEnd||!a.current?e.key===$c?h&&!k.current&&u(e,!1):e.key===Wc&&(h?Bh.unstable_batchedUpdates(()=>{c(void 0),u(e,!1)}):u(e,!0)):null===(n=x(a.current))||void 0===n||n.focus(),k.current=1===e.key.length&&e.code!==$c&&!e.altKey&&!e.ctrlKey&&!e.metaKey})},Wn(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=tb(),r=rb();e.root.className=Se(eb,t,r[e.size],e.disabled&&r.disabled,e.root.className)})(r),In("useTagPickerInputStyles_unstable")(r),(e=>mo(e.root,{}))(r)});nb.displayName="TagPickerInput";const ob="fui-TagPickerList",ib=Lr({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;}"]}),ab=g.forwardRef((e,t)=>{const r=((e,t)=>{const r=Ky(e=>e.triggerRef),n=Ky(e=>e.popoverRef),o=Ky(e=>e.popoverId);return{open:Ky(e=>e.open),components:{root:Zp},root:Ur({...nm(e,Wn(n,t),{state:{multiselect:!0},triggerRef:r,defaultProps:{id:o}}),role:"listbox"},{elementType:Zp})}})(e,t);return(e=>{const t=ib();e.root.className=Se(ob,t.root,!e.open&&t.collapsed,e.root.className)})(r),In("useTagPickerListStyles_unstable")(r),(e=>mo(e.root,{}))(r)});ab.displayName="TagPickerList";const sb="fui-TagPickerControl",lb="fui-TagPickerControl__expandIcon",cb="fui-TagPickerControl__secondaryAction",ub="fui-TagPickerControl__aside",db=Lr({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);}"]}),fb=Lr({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;}"]}),hb=Lr({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;}"]}),pb=Lr({root:{mc9l5x:"f22iagw"}},{d:[".f22iagw{display:flex;}"]});const mb=(e,t)=>{var r;const n=Ky(e=>e.targetRef),o=Ky(e=>e.triggerRef),i=Ky(e=>e.tagPickerGroupRef),a=Ky(e=>e.open),s=Ky(e=>e.popoverId),l=Ky(e=>e.setOpen),c=Ky(e=>e.secondaryActionRef),u=Ky(e=>e.size),d=Ky(e=>e.appearance),f=Ky(e=>e.disabled),h="error"===(null===(r=yp())||void 0===r?void 0:r.validationState),p=Ky(e=>{var t;return null!==(t=e.noPopover)&&void 0!==t&&t}),{targetDocument:m}=Sn(),v=Un("tagPicker-"),y=g.useRef(null),b=g.useRef(null),w=g.useRef(null),x=g.useRef(null),k=Wr(e.secondaryAction,{elementType:"span"}),S=Wn(c,null==k?void 0:k.ref);k&&(k.ref=S);const _=Wr(e.expandIcon,{renderByDefault:!p,defaultProps:{"aria-expanded":a,"aria-disabled":f?"true":void 0,children:g.createElement(_u,null),role:"button"},elementType:"span"}),C=Wn(null==_?void 0:_.ref,w);_&&(_.ref=C);const T=(e=>{const{targetDocument:t}=Sn(),[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`)}))}),E=Wr(void 0,{elementType:"span",renderByDefault:Boolean(k||_),defaultProps:{ref:T}}),A=Wn(x,null==E?void 0:E.ref);E&&(E.ref=A);const P=Vn(e=>{var t;e.isDefaultPrevented()||(co(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())}),I={components:{root:"div",expandIcon:"span",secondaryAction:"span",aside:"span"},root:Ur(dn("div",{ref:Wn(t,n,b),"aria-owns":a&&!p?s:void 0,...e,onMouseDown:P}),{elementType:"div"}),aside:E,expandIcon:_,secondaryAction:k,size:u,appearance:d,disabled:f,invalid:h},B=function(e){const{tagPickerId:t,state:r}=e,{targetDocument:n}=Sn(),o=Ky(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:I}),N=Wn(null==_?void 0:_.ref,B);return I.expandIcon&&(I.expandIcon.ref=N),g.useEffect(()=>{y.current&&(null==m?void 0:m.defaultView)&&m.defaultView.cancelAnimationFrame(y.current)},[m]),I},gb=g.forwardRef((e,t)=>{const r=mb(e,t);return(e=>{const t=db(),r=hb(),n=fb(),o=pb();e.root.className=Se(sb,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=Se(ub,n.root,n[e.size],e.aside.className)),e.expandIcon&&(e.expandIcon.className=Se(lb,r.icon,r[e.size],e.disabled&&r.disabled,e.expandIcon.className)),e.secondaryAction&&(e.secondaryAction.className=Se(cb,o.root,e.secondaryAction.className))})(r),In("useTagPickerControlStyles_unstable")(r),(e=>go(e.root,{children:[e.root.children,e.aside&&go(e.aside,{children:[e.secondaryAction&&mo(e.secondaryAction,{}),e.expandIcon&&mo(e.expandIcon,{})]})]}))(r)});gb.displayName="TagPickerControl";const vb="fui-TagPickerOption",yb="fui-TagPickerOption__media",bb="fui-TagPickerOption__secondaryContent",wb=Fr("r70qvj9",null,[".r70qvj9{display:flex;align-items:center;}"]),xb=Lr({secondaryContent:{mc9l5x:"f13qh94s",Budl1dq:"fjxzuw"}},{d:[".f13qh94s{display:grid;}",".fjxzuw{grid-template-columns:auto 1fr;}"]}),kb=Fr("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);}"]),Sb=Fr("rrip69g",null,[".rrip69g{grid-row-start:span 2;}"]),_b=g.forwardRef((e,t)=>{const r=((e,t)=>{const r=em(e,t);return{components:{...r.components,media:"div",secondaryContent:"span"},media:Wr(e.media,{elementType:"div"}),secondaryContent:Wr(e.secondaryContent,{elementType:"span"}),root:Ur({...r.root,role:"option","aria-checked":e["aria-checked"]},{elementType:"div"})}})(e,t);return(e=>{const t=wb(),r=xb(),n=kb(),o=Sb();e.root.className=Se(vb,t,e.secondaryContent&&r.secondaryContent,e.root.className),Yp({...e,active:!1,disabled:!1,focusVisible:!1,checkIcon:void 0,selected:!1}),e.media&&(e.media.className=Se(yb,o,e.media.className)),e.secondaryContent&&(e.secondaryContent.className=Se(bb,n,e.secondaryContent.className))})(r),In("useTagPickerOptionStyles_unstable")(r),(e=>go(e.root,{children:[e.media&&mo(e.media,{}),e.root.children,e.secondaryContent&&mo(e.secondaryContent,{})]}))(r)});function Cb(e){return"filled-darker"===e?"outline":"filled"}_b.displayName="TagPickerOption";const Tb=(e,t)=>{const r=Ky(e=>e.selectedOptions.length>0),n=Ky(e=>1===e.selectedOptions.length),o=Ky(e=>e.triggerRef),i=Ky(e=>e.tagPickerGroupRef),a=Ky(e=>e.selectOption),s=Ky(e=>function(e){switch(e){case"medium":default:return"extra-small";case"large":return"small";case"extra-large":return"medium"}}(e.size)),l=Ky(e=>e.appearance),c=Ky(e=>e.disabled),u=Ma({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}=Sn(),{findNextFocusable:p,findPrevFocusable:m}=La(),[v,y]=zn({defaultState:o,state:u,initialState:[]}),b=Vn((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(py)){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=Vn(ro(c,(e,t)=>{v.includes(t.value)?y(v.filter(e=>e!==t.value)):y([...v,t.value])})),x=Ma({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:Ur(dn("div",{ref:Wn(t,f),role:l,"aria-disabled":n,...x,...d}),{elementType:"div"})}})({role:"listbox",disabled:c,...e,...u,size:s,appearance:Cb(l),dismissible:!0,onKeyDown:Vn(t=>{var r,n;(null===(r=e.onKeyDown)||void 0===r||r.call(e,t),no(t.target)&&t.key===Kc)&&(null===(n=o.current)||void 0===n||n.focus())}),onDismiss:Vn((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())})},Wn(t,i));return{...d,hasSelectedOptions:r}};function Eb(e,t){return e.hasSelectedOptions?((e,t)=>mo($v,{value:t.tagGroup,children:mo(e.root,{})}))(e,t):null}const Ab="fui-TagPickerGroup",Pb=Lr({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}]]}),Ib=e=>{(e=>{const t=gy(),{size:r}=e;e.root.className=Se(my,t.base,t[r],e.root.className)})(e);const t=Pb();return e.root.className=Se(Ab,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},Bb=g.forwardRef((e,t)=>{const r=Tb(e,t);return Ib(r),In("useTagPickerGroupStyles_unstable")(r),Eb(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))});Bb.displayName="TagPickerGroup";const Nb=ym,Db=bm,zb="fui-TagPickerOptionGroup",Ob="fui-TagPickerOptionGroup__label",Rb=g.forwardRef((e,t)=>{const r=Nb(e,t);return(e=>{Sm(e),e.root.className=Se(zb,e.root.className),e.label&&(e.label.className=Se(Ob,e.label.className))})(r),In("useTagPickerOptionGroupStyles_unstable")(r),Db(r)});function Mb(e){return g.createElement(_b,{value:e,key:e},e)}Rb.displayName="TagPickerOptionGroup";var jb,Lb,Fb={exports:{}},Vb={};var qb=(Lb||(Lb=1,Fb.exports=function(){if(jb)return Vb;jb=1;var e=h(),t=uh(),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 Vb.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},Vb}()),Fb.exports);let Hb=function(e){e()};const Ub=Symbol.for("react-redux-context"),Wb="undefined"!=typeof globalThis?globalThis:{};function $b(){var e;if(!g.createContext)return{};const t=null!=(e=Wb[Ub])?e:Wb[Ub]=new Map;let r=t.get(g.createContext);return r||(r=g.createContext(null),t.set(g.createContext,r)),r}const Gb=$b();function Yb(e=Gb){return function(){return g.useContext(e)}}const Kb=Yb();let Jb=()=>{throw new Error("uSES not initialized!")};const Xb=(e,t)=>e===t;function Qb(e=Gb){const t=e===Gb?Kb:Yb(e);return function(e,r={}){const{equalityFn:n=Xb,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=Jb(s.addNestedSub,a.getState,l||a.getState,d,n);return g.useDebugValue(f),f}}const Zb=Qb();var ew,tw,rw,nw,ow={exports:{}},iw={};function aw(){return tw||(tw=1,ow.exports=function(){if(ew)return iw;ew=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 iw.AsyncMode=l,iw.ConcurrentMode=c,iw.ContextConsumer=s,iw.ContextProvider=a,iw.Element=t,iw.ForwardRef=u,iw.Fragment=n,iw.Lazy=p,iw.Memo=h,iw.Portal=r,iw.Profiler=i,iw.StrictMode=o,iw.Suspense=d,iw.isAsyncMode=function(e){return w(e)||b(e)===l},iw.isConcurrentMode=w,iw.isContextConsumer=function(e){return b(e)===s},iw.isContextProvider=function(e){return b(e)===a},iw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},iw.isForwardRef=function(e){return b(e)===u},iw.isFragment=function(e){return b(e)===n},iw.isLazy=function(e){return b(e)===p},iw.isMemo=function(e){return b(e)===h},iw.isPortal=function(e){return b(e)===r},iw.isProfiler=function(e){return b(e)===i},iw.isStrictMode=function(e){return b(e)===o},iw.isSuspense=function(e){return b(e)===d},iw.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)},iw.typeOf=b,iw}()),ow.exports}!function(){if(nw)return rw;nw=1;var e=aw(),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;rw=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(bze){}}}}return t}}();var sw,lw,cw={exports:{}},uw={};function dw(){const e=Hb;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,cw.exports=function(){if(sw)return uw;sw=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"),uw.ContextConsumer=s,uw.ContextProvider=a,uw.Element=t,uw.ForwardRef=c,uw.Fragment=n,uw.Lazy=h,uw.Memo=f,uw.Portal=r,uw.Profiler=i,uw.StrictMode=o,uw.Suspense=u,uw.SuspenseList=d,uw.isAsyncMode=function(){return!1},uw.isConcurrentMode=function(){return!1},uw.isContextConsumer=function(e){return m(e)===s},uw.isContextProvider=function(e){return m(e)===a},uw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},uw.isForwardRef=function(e){return m(e)===c},uw.isFragment=function(e){return m(e)===n},uw.isLazy=function(e){return m(e)===h},uw.isMemo=function(e){return m(e)===f},uw.isPortal=function(e){return m(e)===r},uw.isProfiler=function(e){return m(e)===i},uw.isStrictMode=function(e){return m(e)===o},uw.isSuspense=function(e){return m(e)===u},uw.isSuspenseList=function(e){return m(e)===d},uw.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)},uw.typeOf=m,uw}()),cw.exports;const fw={notify(){},get:()=>[]};const hw=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?g.useLayoutEffect:g.useEffect;function pw({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=fw,n=0,o=!1;function i(){l.onStateChange&&l.onStateChange()}function a(){n++,t||(t=e.subscribe(i),r=dw())}function s(){n--,t&&0===n&&(t(),t=void 0,r.clear(),r=fw)}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]);hw(()=>{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||Gb;return g.createElement(l.Provider,{value:a},r)}function mw(e=Gb){const t=e===Gb?Kb:Yb(e);return function(){const{store:e}=t();return e}}const gw=mw();function vw(e=Gb){const t=e===Gb?gw:mw(e);return function(){return t().dispatch}}const yw=vw();var bw,ww;function xw(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. `}bw=qb.useSyncExternalStoreWithSelector,Jb=bw,ww=Bh.unstable_batchedUpdates,Hb=ww;var kw=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),Sw=()=>Math.random().toString(36).substring(7).split("").join("."),_w={INIT:`@@redux/INIT${Sw()}`,REPLACE:`@@redux/REPLACE${Sw()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Sw()}`};function Cw(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 Tw(e,t,r){if("function"!=typeof e)throw new Error(xw(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(xw(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(xw(1));return r(Tw)(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(xw(3));return o}function d(e){if("function"!=typeof e)throw new Error(xw(4));if(l)throw new Error(xw(5));let t=!0;c();const r=s++;return a.set(r,e),function(){if(t){if(l)throw new Error(xw(6));t=!1,c(),a.delete(r),i=null}}}function f(e){if(!Cw(e))throw new Error(xw(7));if(void 0===e.type)throw new Error(xw(8));if("string"!=typeof e.type)throw new Error(xw(17));if(l)throw new Error(xw(9));try{l=!0,o=n(o,e)}finally{l=!1}return(i=a).forEach(e=>{e()}),e}f({type:_w.INIT});return{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(xw(10));n=e,f({type:_w.REPLACE})},[kw]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(xw(11));function r(){const e=t;e.next&&e.next(u())}r();return{unsubscribe:e(r)}},[kw](){return this}}}}}function Ew(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:_w.INIT}))throw new Error(xw(12));if(void 0===r(void 0,{type:_w.PROBE_UNKNOWN_ACTION()}))throw new Error(xw(13))})}(r)}catch(bze){o=bze}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(xw(14));a[s]=u,i=i||u!==c}return i=i||n.length!==Object.keys(e).length,i?a:e}}function Aw(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}var Pw=Symbol.for("immer-nothing"),Iw=Symbol.for("immer-draftable"),Bw=Symbol.for("immer-state");function Nw(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Dw=Object.getPrototypeOf;function zw(e){return!!e&&!!e[Bw]}function Ow(e){return!!e&&(Mw(e)||Array.isArray(e)||!!e[Iw]||!!e.constructor?.[Iw]||qw(e)||Hw(e))}var Rw=Object.prototype.constructor.toString();function Mw(e){if(!e||"object"!=typeof e)return!1;const t=Dw(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)===Rw}function jw(e,t){0===Lw(e)?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function Lw(e){const t=e[Bw];return t?t.type_:Array.isArray(e)?1:qw(e)?2:Hw(e)?3:0}function Fw(e,t){return 2===Lw(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Vw(e,t,r){const n=Lw(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function qw(e){return e instanceof Map}function Hw(e){return e instanceof Set}function Uw(e){return e.copy_||e.base_}function Ww(e,t){if(qw(e))return new Map(e);if(Hw(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Mw(e);if(!0===t||"class_only"===t&&!r){const t=Object.getOwnPropertyDescriptors(e);delete t[Bw];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(Dw(e),t)}{const t=Dw(e);if(null!==t&&r)return{...e};const n=Object.create(t);return Object.assign(n,e)}}function $w(e,t=!1){return Yw(e)||zw(e)||!Ow(e)||(Lw(e)>1&&(e.set=e.add=e.clear=e.delete=Gw),Object.freeze(e),t&&Object.entries(e).forEach(([e,t])=>$w(t,!0))),e}function Gw(){Nw(2)}function Yw(e){return Object.isFrozen(e)}var Kw,Jw={};function Xw(e){const t=Jw[e];return t||Nw(0),t}function Qw(){return Kw}function Zw(e,t){t&&(Xw("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ex(e){tx(e),e.drafts_.forEach(nx),e.drafts_=null}function tx(e){e===Kw&&(Kw=e.parent_)}function rx(e){return Kw={drafts_:[],parent_:Kw,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function nx(e){const t=e[Bw];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function ox(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return void 0!==e&&e!==r?(r[Bw].modified_&&(ex(t),Nw(4)),Ow(e)&&(e=ix(t,e),t.parent_||sx(t,e)),t.patches_&&Xw("Patches").generateReplacementPatches_(r[Bw].base_,e,t.patches_,t.inversePatches_)):e=ix(t,r,[]),ex(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Pw?e:void 0}function ix(e,t,r){if(Yw(t))return t;const n=t[Bw];if(!n)return jw(t,(o,i)=>ax(e,n,t,o,i,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return sx(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),jw(o,(o,a)=>ax(e,n,t,o,a,r,i)),sx(e,t,!1),r&&e.patches_&&Xw("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function ax(e,t,r,n,o,i,a){if(zw(o)){const a=ix(e,o,i&&t&&3!==t.type_&&!Fw(t.assigned_,n)?i.concat(n):void 0);if(Vw(r,n,a),!zw(a))return;e.canAutoFreeze_=!1}else a&&r.add(o);if(Ow(o)&&!Yw(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ix(e,o),t&&t.scope_.parent_||"symbol"==typeof n||!Object.prototype.propertyIsEnumerable.call(r,n)||sx(e,o)}}function sx(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&$w(t,r)}var lx={get(e,t){if(t===Bw)return e;const r=Uw(e);if(!Fw(r,t))return function(e,t,r){const n=dx(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_||!Ow(n)?n:n===ux(e.base_,t)?(hx(e),e.copy_[t]=px(n,e)):n},has:(e,t)=>t in Uw(e),ownKeys:e=>Reflect.ownKeys(Uw(e)),set(e,t,r){const n=dx(Uw(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=ux(Uw(e),t),a=n?.[Bw];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||Fw(e.base_,t)))return!0;hx(e),fx(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!==ux(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,hx(e),fx(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=Uw(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){Nw(11)},getPrototypeOf:e=>Dw(e.base_),setPrototypeOf(){Nw(12)}},cx={};function ux(e,t){const r=e[Bw];return(r?Uw(r):e)[t]}function dx(e,t){if(!(t in e))return;let r=Dw(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Dw(r)}}function fx(e){e.modified_||(e.modified_=!0,e.parent_&&fx(e.parent_))}function hx(e){e.copy_||(e.copy_=Ww(e.base_,e.scope_.immer_.useStrictShallowCopy_))}jw(lx,(e,t)=>{cx[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),cx.deleteProperty=function(e,t){return cx.set.call(this,e,t,void 0)},cx.set=function(e,t,r){return lx.set.call(this,e[0],t,r,e[0])};function px(e,t){const r=qw(e)?Xw("MapSet").proxyMap_(e,t):Hw(e)?Xw("MapSet").proxySet_(e,t):function(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Qw(),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=cx);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return n.draft_=s,n.revoke_=a,s}(e,t);return(t?t.scope_:Qw()).drafts_.push(r),r}function mx(e){if(!Ow(e)||Yw(e))return e;const t=e[Bw];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Ww(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Ww(e,!0);return jw(r,(e,t)=>{Vw(r,e,mx(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&&Nw(6),void 0!==r&&"function"!=typeof r&&Nw(7),Ow(e)){const o=rx(this),i=px(e,void 0);let a=!0;try{n=t(i),a=!1}finally{a?ex(o):tx(o)}return Zw(o,r),ox(n,o)}if(!e||"object"!=typeof e){if(n=t(e),void 0===n&&(n=e),n===Pw&&(n=void 0),this.autoFreeze_&&$w(n,!0),r){const t=[],o=[];Xw("Patches").generateReplacementPatches_(e,n,t,o),r(t,o)}return n}Nw(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){Ow(e)||Nw(8),zw(e)&&(e=function(e){zw(e)||Nw(10);return mx(e)}(e));const t=rx(this),r=px(e,void 0);return r[Bw].isManual_=!0,tx(t),r}finishDraft(e,t){const r=e&&e[Bw];r&&r.isManual_||Nw(9);const{scope_:n}=r;return Zw(n,t),ox(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=Xw("Patches").applyPatches_;return zw(e)?n(e,t):this.produce(e,e=>n(e,t))}},vx=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 yx=e=>Array.isArray(e)?e:[e];function bx(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 wx="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function xx(){return{s:0,v:void 0,o:null,p:null}}function kx(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=xx(),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=xx(),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 wx(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 Sx(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=kx,argsMemoizeOptions:d=[]}=s,f=yx(c),h=yx(d),p=bx(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 _x=Sx(kx),Cx=Object.assign((e,t=_x)=>{!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:()=>Cx});function Tx(e){return({dispatch:t,getState:r})=>n=>o=>"function"==typeof o?o(t,r,e):n(o)}var Ex=Tx(),Ax=Tx,Px="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Aw:Aw.apply(null,arguments)};function Ix(e,t){function r(...r){if(t){let n=t(...r);if(!n)throw new Error(Xx(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 Cw(e)&&"type"in e&&"string"==typeof e.type}(t)&&t.type===e,r}var Bx=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 Nx(e){return Ow(e)?vx(e,()=>{}):e}function Dx(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}var zx=e=>t=>{setTimeout(t,e)},Ox=e=>function(t){const{autoBatch:r=!0}=t??{};let n=new Bx(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:zx(10):"callback"===e.type?e.queueNotification:zx(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 Rx(e){const t={},r=[];let n;const o={addCase(e,r){const n="string"==typeof e?e:e.type;if(!n)throw new Error(Xx(28));if(n in t)throw new Error(Xx(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 Mx(...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 jx=["name","message","stack","code"],Lx=class{constructor(e,t){this.payload=e,this.meta=t}_type},Fx=class{constructor(e,t){this.payload=e,this.meta=t}_type},Vx=e=>{if("object"==typeof e&&null!==e){const t={};for(const r of jx)"string"==typeof e[r]&&(t[r]=e[r]);return t}return{message:String(e)}},qx="External signal was aborted",Hx=(()=>{function e(e,t,r){const n=Ix(e+"/fulfilled",(e,t,r,n)=>({payload:e,meta:{...n||{},arg:r,requestId:t,requestStatus:"fulfilled"}})),o=Ix(e+"/pending",(e,t,r)=>({payload:void 0,meta:{...r||{},arg:t,requestId:e,requestStatus:"pending"}})),i=Ix(e+"/rejected",(e,t,n,o,i)=>({payload:o,error:(r&&r.serializeError||Vx)(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(qx):a.addEventListener("abort",()=>p(qx),{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 Lx(e,t),fulfillWithValue:(e,t)=>new Fx(e,t)})).then(t=>{if(t instanceof Lx)throw t;return t instanceof Fx?n(t.payload,u,e,t.meta):n(t,u,e)})])}catch(g){a=g instanceof Lx?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(Ux)})}},{pending:o,rejected:i,fulfilled:n,settled:Mx(i,n),typePrefix:e})}return e.withTypes=()=>e,e})();function Ux(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var Wx=Symbol.for("rtk-slice-createasyncthunk");function $x(e,t){return`${e}/${t}`}function Gx({creators:e}={}){const t=e?.asyncThunk?.[Wx];return function(e){const{name:r,reducerPath:n=r}=e;if(!r)throw new Error(Xx(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(Xx(12));if(r in a.sliceCaseReducersByType)throw new Error(Xx(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?Rx(e.extraReducers):[e.extraReducers],o={...t,...a.sliceCaseReducersByType};return function(e,t){let r,[n,o,i]=Rx(t);if("function"==typeof e)r=()=>Nx(e());else{const t=Nx(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(zw(e)){const n=r(e,t);return void 0===n?e:n}if(Ow(e))return vx(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:$x(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(Xx(17));i=n.reducer,a=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Ix(e,a):Ix(e))}(a,i,s):function({type:e,reducerName:t},r,n,o){if(!o)throw new Error(Xx(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||Jx,pending:s||Jx,rejected:l||Jx,settled:c||Jx})}(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=Dx(d,n,p)),o}function o(t=c){const n=Dx(u,r,()=>new WeakMap);return Dx(n,t,()=>{const n={};for(const[o,i]of Object.entries(e.selectors??{}))n[o]=Yx(i,t,()=>Dx(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 Yx(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 Kx=Gx();function Jx(){}function Xx(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 Qx=Kx({name:"optionsProvider",initialState:{options:{}},reducers:{setOptions:(e,t)=>{e.options=t.payload}}}),{setOptions:Zx}=Qx.actions,ek=Qx.reducer;var tk=function(e){return"@@redux-saga/"+e},rk=tk("CANCEL_PROMISE"),nk=tk("CHANNEL_END"),ok=tk("IO"),ik=tk("MATCH"),ak=tk("MULTICAST"),sk=tk("SAGA_ACTION"),lk=tk("SELF_CANCELLATION"),ck=tk("TASK"),uk=tk("TASK_CANCEL"),dk=tk("TERMINATE"),fk=tk("LOCATION"),hk=function(e){return null==e},pk=function(e){return null!=e},mk=function(e){return"function"==typeof e},gk=function(e){return"string"==typeof e},vk=Array.isArray,yk=function(e){return e&&mk(e.then)},bk=function(e){return e&&mk(e.next)&&mk(e.throw)},wk=function e(t){return t&&(gk(t)||Sk(t)||mk(t)||vk(t)&&t.every(e))},xk=function(e){return e&&mk(e.take)&&mk(e.close)},kk=function(e){return mk(e)&&e.hasOwnProperty("toString")},Sk=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype};function _k(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[rk]=function(){clearTimeout(r)},n}var Ck=function(e){return function(){return e}}(!0),Tk=function(){},Ek=function(e){return e},Ak=function(e,t){vy(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(function(r){e[r]=t[r]})};function Pk(e,t){var r=e.indexOf(t);r>=0&&e.splice(r,1)}function Ik(e){var t=!1;return function(){t||(t=!0,e())}}var Bk=function(e){throw e},Nk=function(e){return{value:e,done:!0}};function Dk(e,t,r){void 0===t&&(t=Bk),void 0===r&&(r="iterator");var n={meta:{name:r},next:e,throw:t,return:Nk,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(n[Symbol.iterator]=function(){return n}),n}function zk(e,t){var r=t.sagaStack;console.error(e),console.error(r)}var Ok=function(e){return Array.apply(null,new Array(e))},Rk=function(e){return function(t){return e(Object.defineProperty(t,sk,{value:!0}))}},Mk=function(e){return e===dk},jk=function(e){return e===uk},Lk=function(e){return Mk(e)||jk(e)};function Fk(e,t){var r,n=Object.keys(e),o=n.length,i=0,a=vk(e)?Ok(o):{},s={};return n.forEach(function(e){var n=function(n,s){r||(s||Lk(n)?(t.cancel(),t(n,s)):(a[e]=n,++i===o&&(r=!0,t(a))))};n.cancel=Tk,s[e]=n}),t.cancel=function(){r||(r=!0,n.forEach(function(e){return s[e].cancel()}))},s}function Vk(e){return{name:e.name||"anonymous",location:qk(e)}}function qk(e){return e[fk]}function Hk(){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 Uk={isEmpty:Ck,put:Tk,take:Tk};function Wk(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 $k=function(){return Uk},Gk=function(e){return Wk(e,4)},Yk=Object.freeze({__proto__:null,none:$k,fixed:function(e){return Wk(e,1)},dropping:function(e){return Wk(e,2)},sliding:function(e){return Wk(e,3)},expanding:Gk}),Kk="TAKE",Jk="RACE",Xk="CALL",Qk="FORK",Zk="JOIN",eS="CANCEL",tS="SELECT",rS="CANCELLED",nS=function(e,t){var r;return(r={})[ok]=!0,r.combinator=!1,r.type=e,r.payload=t,r};function oS(e,t){return void 0===e&&(e="*"),wk(e)?(pk(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),nS(Kk,{pattern:e})):function(e){return xk(e)&&e[ak]}(e)&&pk(t)&&wk(t)?nS(Kk,{channel:e,pattern:t}):xk(e)?(pk(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),nS(Kk,{channel:e})):void 0}function iS(e,t){return hk(t)&&(t=e,e=void 0),nS("PUT",{channel:e,action:t})}function aS(e){var t=nS("ALL",e);return t.combinator=!0,t}function sS(e){var t=nS(Jk,e);return t.combinator=!0,t}function lS(e,t){var r,n=null;return mk(e)?r=e:(vk(e)?(n=e[0],r=e[1]):(n=e.context,r=e.fn),n&&gk(r)&&mk(n[r])&&(r=n[r])),{context:n,fn:r,args:t}}function cS(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 nS(Xk,lS(e,r))}function uS(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 nS(Qk,lS(e,r))}function dS(e){return nS(Zk,e)}function fS(e){return void 0===e&&(e=lk),nS(eS,e)}function hS(e){void 0===e&&(e=Ek);for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return nS(tS,{selector:e,args:r})}function pS(){return nS(rS,{})}var mS=cS.bind(null,_k);var gS=[],vS=0;function yS(e){try{xS(),e()}finally{kS()}}function bS(e){gS.push(e),vS||(xS(),SS())}function wS(e){try{return xS(),e()}finally{SS()}}function xS(){vS++}function kS(){vS--}function SS(){var e;for(kS();!vS&&void 0!==(e=gS.shift());)yS(e)}var _S=function(e){return function(t){return e.some(function(e){return PS(e)(t)})}},CS=function(e){return function(t){return e(t)}},TS=function(e){return function(t){return t.type===String(e)}},ES=function(e){return function(t){return t.type===e}},AS=function(){return Ck};function PS(e){var t="*"===e?AS:gk(e)?TS:vk(e)?_S:kk(e)?TS:mk(e)?CS:Sk(e)?ES:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var IS={type:nk},BS=function(e){return e&&e.type===nk};function NS(e){void 0===e&&(e=Gk());var t=!1,r=[];return{take:function(n){t&&e.isEmpty()?n(IS):e.isEmpty()?(r.push(n),n.cancel=function(){Pk(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(IS):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])(IS)}}}}}function DS(e,t){void 0===t&&(t=$k());var r,n=!1,o=NS(t),i=function(){n||(n=!0,mk(r)&&r(),o.close())};return r=Ik(r=e(function(e){BS(e)?i():o.put(e)})),n&&r(),{take:o.take,flush:o.flush,close:i}}function zS(){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(IS)})},(e={})[ak]=!0,e.put=function(e){if(!t)if(BS(e))i();else for(var o=r=n,a=0,s=o.length;a<s;a++){var l=o[a];l[ik](e)&&(l.cancel(),l(e))}},e.take=function(e,r){void 0===r&&(r=AS),t?e(IS):(e[ik]=r,o(),n.push(e),e.cancel=Ik(function(){o(),Pk(n,e)}))},e.close=i,e),s=a.put;return a.put=function(e){e[sk]?s(e):bS(function(){s(e)})},a}function OS(e,t){var r=e[rk];mk(r)&&(t.cancel=r),e.then(t,function(e){t(e,!0)})}var RS,MS=0,jS=function(){return++MS};function LS(e){e.isRunning()&&e.cancel()}var FS=((RS={})[Kk]=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):!BS(e)||a?r(e):r(dk)};try{o.take(s,pk(i)?PS(i):null)}catch(l){return void r(l,!0)}r.cancel=s.cancel},RS.PUT=function(e,t,r){var n=t.channel,o=t.action,i=t.resolve;bS(function(){var t;try{t=(n?n.put:e.dispatch)(o)}catch(a){return void r(a,!0)}i&&yk(t)?OS(t,r):r(t)})},RS.ALL=function(e,t,r,n){var o=n.digestEffect,i=MS,a=Object.keys(t);if(0!==a.length){var s=Fk(t,r);a.forEach(function(e){o(t[e],i,s[e],e)})}else r(vk(t)?[]:{})},RS[Jk]=function(e,t,r,n){var o=n.digestEffect,i=MS,a=Object.keys(t),s=vk(t)?Ok(a.length):{},l={},c=!1;a.forEach(function(e){var t=function(t,n){c||(n||Lk(t)?(r.cancel(),r(t,n)):(r.cancel(),c=!0,s[e]=t,r(s)))};t.cancel=Tk,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)})},RS[Xk]=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(yk(l))return void OS(l,r);if(bk(l))return void JS(e,l,s.context,MS,Vk(i),!1,r);r(l)}catch(c){r(c,!0)}},RS.CPS=function(e,t,r){var n=t.context,o=t.fn,i=t.args;try{var a=function(e,t){hk(e)?r(t):r(e,!0)};o.apply(n,i.concat(a)),a.cancel&&(r.cancel=a.cancel)}catch(s){r(s,!0)}},RS[Qk]=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(bk(o))return o;var i=!1;return Dk(function(e){return i?{value:e,done:!0}:(i=!0,{value:o,done:!yk(o)})})}catch(a){return Dk(function(){throw a})}}({context:o,fn:i,args:a}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Vk(t)}(c,i);wS(function(){var t=JS(e,c,l.context,MS,u,s,void 0);s?r(t):t.isRunning()?(l.queue.addTask(t),r(t)):t.isAborted()?l.queue.abort(t.error()):r(t)})},RS[Zk]=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()&&Pk(e.joiners,r)},e.joiners.push(r)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(vk(t)){if(0===t.length)return void r([]);var a=Fk(t,r);t.forEach(function(e,t){i(e,a[t])})}else i(t,r)},RS[eS]=function(e,t,r,n){var o=n.task;t===lk?LS(o):vk(t)?t.forEach(LS):LS(t),r()},RS[tS]=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)}},RS.ACTION_CHANNEL=function(e,t,r){var n=t.pattern,o=NS(t.buffer),i=PS(n),a=function t(r){BS(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)},RS[rS]=function(e,t,r,n){r(n.task.isCancelled())},RS.FLUSH=function(e,t,r){t.flush(r)},RS.GET_CONTEXT=function(e,t,r,n){r(n.task.context[t])},RS.SET_CONTEXT=function(e,t,r,n){var o=n.task;Ak(o.context,t),r()},RS);function VS(e,t){return e+"?"+t}function qS(e){var t=e.name,r=e.location;return r?t+"  "+VS(r.fileName,r.lineNumber):t}var HS=null,US=[],WS=function(e){e.crashedEffect=HS,US.push(e)},$S=function(){HS=null,US.length=0},GS=function(e){HS=e},YS=function(){var e,t,r,n,o,i,a,s=US[0],l=US.slice(1),c=s.crashedEffect?(e=s.crashedEffect,(t=qk(e))?t.code+"  "+VS(t.fileName,t.lineNumber):""):null;return["The above error occurred in task "+qS(s.meta)+(c?" \n when executing effect "+c:"")].concat(l.map(function(e){return"    created by "+qS(e.meta)}),[(r=US,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 KS(e,t,r,n,o,i,a){var s;void 0===a&&(a=Tk);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||(Pk(o,t),t.cont=Tk,l?a(s):(t===e&&(n=s),o.length||(i=!0,r(n))))}}function l(){i||(i=!0,o.forEach(function(e){e.cont=Tk,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,WS({meta:o,cancelledTasks:f}),g.isRoot){var n=YS();$S(),e.onError(t,{sagaStack:n})}c=t,d&&d.reject(t)}else t===uk?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={})[ck]=!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(uk,!1))},s.cont=a,s.end=m,s.setContext=function(e){Ak(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 JS(e,t,r,n,o,i,a){var s=e.finalizeRunEffect(function(t,r,n){if(yk(t))OS(t,n);else if(bk(t))JS(e,t,c.context,r,o,!1,n);else if(t&&t[ok]){(0,FS[t.type])(e,t.payload,n,u)}else n(t)});d.cancel=Tk;var l={meta:o,cancel:function(){0===l.status&&(l.status=1,d(uk))},status:0},c=KS(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),$S()):jk(e)?(l.status=1,d.cancel(),o=mk(t.return)?t.return(uk):{done:!0,value:uk}):o=Mk(e)?mk(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=jS();function l(r,o){i||(i=!0,n.cancel=Tk,e.sagaMonitor&&(o?e.sagaMonitor.effectRejected(a,r):e.sagaMonitor.effectResolved(a,r)),o&&GS(t),n(r,o))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:r,label:o,effect:t}),l.cancel=Tk,n.cancel=function(){i||(i=!0,l.cancel(),l.cancel=Tk,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,l)}}function XS(e,t){for(var r=e.channel,n=void 0===r?zS():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?zk: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=jS();if(l&&(l.rootSagaStarted=l.rootSagaStarted||Tk,l.effectTriggered=l.effectTriggered||Tk,l.effectResolved=l.effectResolved||Tk,l.effectRejected=l.effectRejected||Tk,l.effectCancelled=l.effectCancelled||Tk,l.actionDispatched=l.actionDispatched||Tk,l.rootSagaStarted({effectId:v,saga:t,args:h})),c){var y=Hk.apply(void 0,c);m=function(e){return function(t,r,n){return y(function(t){return e(t,r,n)})(t)}}}else m=Ek;var b={channel:n,dispatch:Rk(o),getState:i,sagaMonitor:l,onError:d,finalizeRunEffect:m};return wS(function(){var e=JS(b,g,s,v,Vk(t),!0,void 0);return l&&l.effectResolved(v,e),e})}const{entries:QS,setPrototypeOf:ZS,isFrozen:e_,getPrototypeOf:t_,getOwnPropertyDescriptor:r_}=Object;let{freeze:n_,seal:o_,create:i_}=Object,{apply:a_,construct:s_}="undefined"!=typeof Reflect&&Reflect;n_||(n_=function(e){return e}),o_||(o_=function(e){return e}),a_||(a_=function(e,t,r){return e.apply(t,r)}),s_||(s_=function(e,t){return new e(...t)});const l_=S_(Array.prototype.forEach),c_=S_(Array.prototype.lastIndexOf),u_=S_(Array.prototype.pop),d_=S_(Array.prototype.push),f_=S_(Array.prototype.splice),h_=S_(String.prototype.toLowerCase),p_=S_(String.prototype.toString),m_=S_(String.prototype.match),g_=S_(String.prototype.replace),v_=S_(String.prototype.indexOf),y_=S_(String.prototype.trim),b_=S_(Object.prototype.hasOwnProperty),w_=S_(RegExp.prototype.test),x_=(k_=TypeError,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return s_(k_,t)});var k_;function S_(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 a_(e,t,n)}}function __(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h_;ZS&&ZS(e,null);let n=t.length;for(;n--;){let o=t[n];if("string"==typeof o){const e=r(o);e!==o&&(e_(t)||(t[n]=e),o=e)}e[o]=!0}return e}function C_(e){for(let t=0;t<e.length;t++){b_(e,t)||(e[t]=null)}return e}function T_(e){const t=i_(null);for(const[r,n]of QS(e)){b_(e,r)&&(Array.isArray(n)?t[r]=C_(n):n&&"object"==typeof n&&n.constructor===Object?t[r]=T_(n):t[r]=n)}return t}function E_(e,t){for(;null!==e;){const r=r_(e,t);if(r){if(r.get)return S_(r.get);if("function"==typeof r.value)return S_(r.value)}e=t_(e)}return function(){return null}}const A_=n_(["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","section","select","shadow","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"]),P_=n_(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),I_=n_(["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"]),B_=n_(["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"]),N_=n_(["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"]),D_=n_(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),z_=n_(["#text"]),O_=n_(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),R_=n_(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),M_=n_(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),j_=n_(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L_=o_(/\{\{[\w\W]*|[\w\W]*\}\}/gm),F_=o_(/<%[\w\W]*|[\w\W]*%>/gm),V_=o_(/\$\{[\w\W]*/gm),q_=o_(/^data-[\-\w.\u00B7-\uFFFF]+$/),H_=o_(/^aria-[\-\w]+$/),U_=o_(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W_=o_(/^(?:\w+script|data):/i),$_=o_(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G_=o_(/^html$/i),Y_=o_(/^[a-z][.\w]*(-[.\w]+)+$/i);var K_=Object.freeze({__proto__:null,ARIA_ATTR:H_,ATTR_WHITESPACE:$_,CUSTOM_ELEMENT:Y_,DATA_ATTR:q_,DOCTYPE_NAME:G_,ERB_EXPR:F_,IS_ALLOWED_URI:U_,IS_SCRIPT_OR_DATA:W_,MUSTACHE_EXPR:L_,TMPLIT_EXPR:V_});const J_=1,X_=3,Q_=7,Z_=8,eC=9;var tC=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.2.6",r.removed=[],!t||!t.document||t.document.nodeType!==eC||!t.Element)return r.isSupported=!1,r;let{document:n}=t;const o=n,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:p}=t,m=c.prototype,g=E_(m,"cloneNode"),v=E_(m,"remove"),y=E_(m,"nextSibling"),b=E_(m,"childNodes"),w=E_(m,"parentNode");if("function"==typeof s){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,k="";const{implementation:S,createNodeIterator:_,createDocumentFragment:C,getElementsByTagName:T}=n,{importNode:E}=o;let A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof QS&&"function"==typeof w&&S&&void 0!==S.createHTMLDocument;const{MUSTACHE_EXPR:P,ERB_EXPR:I,TMPLIT_EXPR:B,DATA_ATTR:N,ARIA_ATTR:D,IS_SCRIPT_OR_DATA:z,ATTR_WHITESPACE:O,CUSTOM_ELEMENT:R}=K_;let{IS_ALLOWED_URI:M}=K_,j=null;const L=__({},[...A_,...P_,...I_,...N_,...z_]);let F=null;const V=__({},[...O_,...R_,...M_,...j_]);let q=Object.seal(i_(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}})),H=null,U=null,W=!0,$=!0,G=!1,Y=!0,K=!1,J=!0,X=!1,Q=!1,Z=!1,ee=!1,te=!1,re=!1,ne=!0,oe=!1,ie=!0,ae=!1,se={},le=null;const ce=__({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const de=__({},["audio","video","img","source","image","track"]);let fe=null;const he=__({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pe="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ve=ge,ye=!1,be=null;const we=__({},[pe,me,ge],p_);let xe=__({},["mi","mo","mn","ms","mtext"]),ke=__({},["annotation-xml"]);const Se=__({},["title","style","font","a","script"]);let _e=null;const Ce=["application/xhtml+xml","text/html"];let Te=null,Ee=null;const Ae=n.createElement("form"),Pe=function(e){return e instanceof RegExp||e instanceof Function},Ie=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ee||Ee!==e){if(e&&"object"==typeof e||(e={}),e=T_(e),_e=-1===Ce.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Te="application/xhtml+xml"===_e?p_:h_,j=b_(e,"ALLOWED_TAGS")?__({},e.ALLOWED_TAGS,Te):L,F=b_(e,"ALLOWED_ATTR")?__({},e.ALLOWED_ATTR,Te):V,be=b_(e,"ALLOWED_NAMESPACES")?__({},e.ALLOWED_NAMESPACES,p_):we,fe=b_(e,"ADD_URI_SAFE_ATTR")?__(T_(he),e.ADD_URI_SAFE_ATTR,Te):he,ue=b_(e,"ADD_DATA_URI_TAGS")?__(T_(de),e.ADD_DATA_URI_TAGS,Te):de,le=b_(e,"FORBID_CONTENTS")?__({},e.FORBID_CONTENTS,Te):ce,H=b_(e,"FORBID_TAGS")?__({},e.FORBID_TAGS,Te):T_({}),U=b_(e,"FORBID_ATTR")?__({},e.FORBID_ATTR,Te):T_({}),se=!!b_(e,"USE_PROFILES")&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,$=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,K=e.SAFE_FOR_TEMPLATES||!1,J=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,Z=e.FORCE_BODY||!1,ne=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,M=e.ALLOWED_URI_REGEXP||U_,ve=e.NAMESPACE||ge,xe=e.MATHML_TEXT_INTEGRATION_POINTS||xe,ke=e.HTML_INTEGRATION_POINTS||ke,q=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Pe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Pe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(q.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&($=!1),te&&(ee=!0),se&&(j=__({},z_),F=[],!0===se.html&&(__(j,A_),__(F,O_)),!0===se.svg&&(__(j,P_),__(F,R_),__(F,j_)),!0===se.svgFilters&&(__(j,I_),__(F,R_),__(F,j_)),!0===se.mathMl&&(__(j,N_),__(F,M_),__(F,j_))),e.ADD_TAGS&&(j===L&&(j=T_(j)),__(j,e.ADD_TAGS,Te)),e.ADD_ATTR&&(F===V&&(F=T_(F)),__(F,e.ADD_ATTR,Te)),e.ADD_URI_SAFE_ATTR&&__(fe,e.ADD_URI_SAFE_ATTR,Te),e.FORBID_CONTENTS&&(le===ce&&(le=T_(le)),__(le,e.FORBID_CONTENTS,Te)),ie&&(j["#text"]=!0),X&&__(j,["html","head","body"]),j.table&&(__(j,["tbody"]),delete H.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw x_('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw x_('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=e.TRUSTED_TYPES_POLICY,k=x.createHTML("")}else void 0===x&&(x=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}}(p,i)),null!==x&&"string"==typeof k&&(k=x.createHTML(""));n_&&n_(e),Ee=e}},Be=__({},[...P_,...I_,...B_]),Ne=__({},[...N_,...D_]),De=function(e){d_(r.removed,{element:e});try{w(e).removeChild(e)}catch(t){v(e)}},ze=function(e,t){try{d_(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(n){d_(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{De(t)}catch(n){}else try{t.setAttribute(e,"")}catch(n){}},Oe=function(e){let t=null,r=null;if(Z)e="<remove></remove>"+e;else{const t=m_(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===_e&&ve===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=x?x.createHTML(e):e;if(ve===ge)try{t=(new h).parseFromString(o,_e)}catch(a){}if(!t||!t.documentElement){t=S.createDocument(ve,"template",null);try{t.documentElement.innerHTML=ye?k:o}catch(a){}}const i=t.body||t.documentElement;return e&&r&&i.insertBefore(n.createTextNode(r),i.childNodes[0]||null),ve===ge?T.call(t,X?"html":"body")[0]:X?t.documentElement:i},Re=function(e){return _.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Me=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"function"==typeof l&&e instanceof l};function Le(e,t,n){l_(e,e=>{e.call(r,t,n,Ee)})}const Fe=function(e){let t=null;if(Le(A.beforeSanitizeElements,e,null),Me(e))return De(e),!0;const n=Te(e.nodeName);if(Le(A.uponSanitizeElement,e,{tagName:n,allowedTags:j}),J&&e.hasChildNodes()&&!je(e.firstElementChild)&&w_(/<[/\w!]/g,e.innerHTML)&&w_(/<[/\w!]/g,e.textContent))return De(e),!0;if(e.nodeType===Q_)return De(e),!0;if(J&&e.nodeType===Z_&&w_(/<[/\w]/g,e.data))return De(e),!0;if(!j[n]||H[n]){if(!H[n]&&qe(n)){if(q.tagNameCheck instanceof RegExp&&w_(q.tagNameCheck,n))return!1;if(q.tagNameCheck instanceof Function&&q.tagNameCheck(n))return!1}if(ie&&!le[n]){const t=w(e)||e.parentNode,r=b(e)||e.childNodes;if(r&&t){for(let n=r.length-1;n>=0;--n){const o=g(r[n],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,y(e))}}}return De(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ve,tagName:"template"});const r=h_(e.tagName),n=h_(t.tagName);return!!be[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===ge?"svg"===r:t.namespaceURI===pe?"svg"===r&&("annotation-xml"===n||xe[n]):Boolean(Be[r]):e.namespaceURI===pe?t.namespaceURI===ge?"math"===r:t.namespaceURI===me?"math"===r&&ke[n]:Boolean(Ne[r]):e.namespaceURI===ge?!(t.namespaceURI===me&&!ke[n])&&!(t.namespaceURI===pe&&!xe[n])&&!Ne[r]&&(Se[r]||!Be[r]):!("application/xhtml+xml"!==_e||!be[e.namespaceURI]))}(e)?(De(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!w_(/<\/no(script|embed|frames)/i,e.innerHTML)?(K&&e.nodeType===X_&&(t=e.textContent,l_([P,I,B],e=>{t=g_(t,e," ")}),e.textContent!==t&&(d_(r.removed,{element:e.cloneNode()}),e.textContent=t)),Le(A.afterSanitizeElements,e,null),!1):(De(e),!0)},Ve=function(e,t,r){if(ne&&("id"===t||"name"===t)&&(r in n||r in Ae))return!1;if($&&!U[t]&&w_(N,t));else if(W&&w_(D,t));else if(!F[t]||U[t]){if(!(qe(e)&&(q.tagNameCheck instanceof RegExp&&w_(q.tagNameCheck,e)||q.tagNameCheck instanceof Function&&q.tagNameCheck(e))&&(q.attributeNameCheck instanceof RegExp&&w_(q.attributeNameCheck,t)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(t))||"is"===t&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&w_(q.tagNameCheck,r)||q.tagNameCheck instanceof Function&&q.tagNameCheck(r))))return!1}else if(fe[t]);else if(w_(M,g_(r,O,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v_(r,"data:")||!ue[e]){if(G&&!w_(z,g_(r,O,"")));else if(r)return!1}else;return!0},qe=function(e){return"annotation-xml"!==e&&m_(e,R)},He=function(e){Le(A.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Me(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],{name:s,namespaceURI:l,value:c}=a,u=Te(s),d=c;let f="value"===s?d:y_(d);if(n.attrName=u,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,Le(A.uponSanitizeAttribute,e,n),f=n.attrValue,!oe||"id"!==u&&"name"!==u||(ze(s,e),f="user-content-"+f),J&&w_(/((--!?|])>)|<\/(style|title)/i,f)){ze(s,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){ze(s,e);continue}if(!Y&&w_(/\/>/i,f)){ze(s,e);continue}K&&l_([P,I,B],e=>{f=g_(f,e," ")});const h=Te(e.nodeName);if(Ve(h,u,f)){if(x&&"object"==typeof p&&"function"==typeof p.getAttributeType)if(l);else switch(p.getAttributeType(h,u)){case"TrustedHTML":f=x.createHTML(f);break;case"TrustedScriptURL":f=x.createScriptURL(f)}if(f!==d)try{l?e.setAttributeNS(l,s,f):e.setAttribute(s,f),Me(e)?De(e):u_(r.removed)}catch(i){ze(s,e)}}else ze(s,e)}Le(A.afterSanitizeAttributes,e,null)},Ue=function e(t){let r=null;const n=Re(t);for(Le(A.beforeSanitizeShadowDOM,t,null);r=n.nextNode();)Le(A.uponSanitizeShadowNode,r,null),Fe(r),He(r),r.content instanceof a&&e(r.content);Le(A.afterSanitizeShadowDOM,t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,i=null,s=null,c=null;if(ye=!e,ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw x_("toString is not a function");if("string"!=typeof(e=e.toString()))throw x_("dirty is not a string, aborting")}if(!r.isSupported)return e;if(Q||Ie(t),r.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Te(e.nodeName);if(!j[t]||H[t])throw x_("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)n=Oe("\x3c!----\x3e"),i=n.ownerDocument.importNode(e,!0),i.nodeType===J_&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i);else{if(!ee&&!K&&!X&&-1===e.indexOf("<"))return x&&re?x.createHTML(e):e;if(n=Oe(e),!n)return ee?null:re?k:""}n&&Z&&De(n.firstChild);const u=Re(ae?e:n);for(;s=u.nextNode();)Fe(s),He(s),s.content instanceof a&&Ue(s.content);if(ae)return e;if(ee){if(te)for(c=C.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return(F.shadowroot||F.shadowrootmode)&&(c=E.call(o,c,!0)),c}let d=X?n.outerHTML:n.innerHTML;return X&&j["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&w_(G_,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),K&&l_([P,I,B],e=>{d=g_(d,e," ")}),x&&re?x.createHTML(d):d},r.setConfig=function(){Ie(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},r.clearConfig=function(){Ee=null,Q=!1},r.isValidAttribute=function(e,t,r){Ee||Ie({});const n=Te(e),o=Te(t);return Ve(n,o,r)},r.addHook=function(e,t){"function"==typeof t&&d_(A[e],t)},r.removeHook=function(e,t){if(void 0!==t){const r=c_(A[e],t);return-1===r?void 0:f_(A[e],r,1)[0]}return u_(A[e])},r.removeHooks=function(e){A[e]=[]},r.removeAllHooks=function(){A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}();const rC="ocrAIChat",nC="ocrAIChatDrawerSourceSite";function oC(){return["5173","9002","4502","4503"].includes(window.location.port)||["local","localhost","127.0.0.1"].some(e=>window.location.hostname.includes(e))}const iC={domain:oC()?null:window.location.hostname.toLowerCase().includes(".adobeaemcloud.com")?window.location.hostname:".microsoft.com",expiryDays:oC()?30:-1,secure:!oC(),sameSite:oC()?void 0:"Strict",path:"/",isLocalDevelopment:oC()},aC="OPEN",sC="CLOSED",{log:lC,logWarn:cC,logError:uC}=z.withKind("cookieUtils"),dC={business:"commercial-front-door"},fC=()=>{try{const e=new URL(window.location.href),t=e.hostname,r=e.pathname.split("/").map(e=>e.toLowerCase()),n=document.documentElement.lang.toLowerCase();let o=-1;const i={"sr-rs":["sr-rs","sr-latn-rs","sr-cyrl-rs"],default:[n]};if(o=(i[n]??i.default??[]).map(e=>r.indexOf(e)).find(e=>e>-1)??-1,"azure.microsoft.com"===t||e.pathname.startsWith("/content/azure/acom"))return"azure";if(["signup.microsoft.com","prv.signup.microsoft.com","signupppe.microsoft.com"].includes(t))return"signup";if(o>-1&&r.length>o+1){const e=r.at(o+1),t=e&&"string"==typeof e?e.replace(/\.html/g,""):"";if(t){const e=Object.prototype.hasOwnProperty.call(dC,t)?dC[t]:t;return"string"==typeof e?e:t}}}catch(e){uC("Failed to get source site:",e)}return"azure"},hC=e=>{let t;try{t=(()=>{const e={};if(!document.cookie)return lC("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=tC.sanitize(n.slice(0,t));try{const r=decodeURIComponent(n.slice(t+1));e[o]=tC.sanitize(r)}catch(r){uC(`Error decoding cookie value for key ${o}:`,r);continue}}else uC(`Malformed cookie without separator: ${n}`)}return Object.keys(e).length>0?e:(lC("No valid cookies found after processing"),null)})()}catch(r){return uC(`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},pC=(e,t,r=iC.expiryDays,n=iC.domain,o=iC.secure,i=!1,a=iC.sameSite,s=iC.path)=>{if("string"!=typeof t||"number"!=typeof r||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&&cC("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){uC("Error setting cookie:",h)}const f=hC(e);lC("Cookie set verification:",{key:e,wasSet:null!==f,valueLength:f?.length,cookieString:d,allCookies:document.cookie,currentUrl:window.location.href,protocol:window.location.protocol,host:window.location.host})},mC=()=>{let e=null;const t=hC(rC);if(!t)return null;try{e=JSON.parse(t)}catch(r){uC("Failed to parse ocrAIChat cookie",r)}return e},gC=e=>{try{const t={...mC()||{},...e};return pC(rC,JSON.stringify(t),iC.expiryDays,iC.domain,iC.secure,!1,iC.sameSite),lC("OcrAIChat cookie updated successfully",{cookieName:rC,domain:iC.domain,expiryDays:iC.expiryDays,updatedCookieObject:t}),{success:!0}}catch(t){const e=t instanceof Error?t.message:"Unknown error occurred";return uC("Failed to update ocrAIChat cookie:",t),{success:!1,error:e}}},vC=()=>{try{const e=mC();return!0===e?.ocrAIChatUserInteracted}catch(e){return uC("Failed to check user interaction status:",e),!1}},yC=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},bC=Kx({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,gC({ocrAIChatToken:t.payload.token,ocrAIChatTokenCreated:t.payload.created,tuid:t.payload.tuid,agent:"Modern"})},clearDirectLineToken:e=>{e.token="",e.tokenCreated=0,e.tokenExpiresIn=0,gC({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=>yC({token:e.token,created:e.tokenCreated,expiresIn:e.tokenExpiresIn,tuid:e.tuid})}}),{setDirectLineToken:wC,clearDirectLineToken:xC,setConnecting:kC}=bC.actions,{directLineTokenSelector:SC,tokenCreatedSelector:_C,tokenExpiresInSelector:CC,tuidSelector:TC,isConnectingSelector:EC,isTokenValidSelector:AC}=bC.selectors,PC=bC.reducer,IC=Object.freeze(Object.defineProperty({__proto__:null,clearDirectLineToken:xC,default:PC,directLineTokenSelector:SC,isConnectingSelector:EC,isTokenValidSelector:AC,setConnecting:kC,setDirectLineToken:wC,tokenCreatedSelector:_C,tokenExpiresInSelector:CC,tuidSelector:TC},Symbol.toStringTag,{value:"Module"})),{logError:BC}=z.withKind("drawerControlsSlice"),NC=Hx("drawerControls/initializeDrawerState",async(e=M.Drawer,{dispatch:t})=>{try{const r=mC();if(r&&r.ocrAIChatDrawerState){const e=r.ocrAIChatDrawerState===aC;return t(OC(e)),{isDrawerOpen:e,fromCookie:!0}}return e===M.Sidecar?(gC({ocrAIChatDrawerState:aC}),t(OC(!0)),{isDrawerOpen:!0,fromCookie:!1,reason:"sidecar_mode"}):(t(OC(!1)),{isDrawerOpen:!1,fromCookie:!1,reason:"drawer_mode_default"})}catch(r){return BC("❌ Error initializing drawer state:",r),t(OC(!1)),{isDrawerOpen:!1,fromCookie:!1,reason:"error_fallback"}}}),DC=Kx({name:"drawerControls",initialState:{isDrawerOpen:!1},reducers:{toggleDrawerOpen:e=>{e.isDrawerOpen=!e.isDrawerOpen},setDrawerOpen:(e,t)=>{e.isDrawerOpen=t.payload}},extraReducers:e=>{e.addCase(NC.fulfilled,(e,t)=>{e.isDrawerOpen=t.payload.isDrawerOpen}).addCase(NC.rejected,(e,t)=>{e.isDrawerOpen=!1,BC("❌ Drawer state initialization failed:",t.error)})}}),{toggleDrawerOpen:zC,setDrawerOpen:OC}=DC.actions,RC=DC.reducer,MC=Kx({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:jC,removeMessage:LC,clearAllMessages:FC,clearMessagesByType:VC}=MC.actions,{messagesSelector:qC,latestMessageSelector:HC,messagesByTypeSelector:UC,hasMessagesSelector:WC}=MC.selectors,$C=MC.reducer,GC=Object.freeze(Object.defineProperty({__proto__:null,addMessage:jC,clearAllMessages:FC,clearMessagesByType:VC,default:$C,hasMessagesSelector:WC,latestMessageSelector:HC,messagesByTypeSelector:UC,messagesSelector:qC,removeMessage:LC},Symbol.toStringTag,{value:"Module"})),YC={setPrompts:Ix("proactivePrompts/setPrompts"),clearPrompts:Ix("proactivePrompts/clearPrompts"),resetClearedState:Ix("proactivePrompts/resetClearedState"),handlePromptTrigger:Ix("proactivePrompts/handlePromptTrigger"),initializeDefaults:Ix("proactivePrompts/initializeDefaults"),setPartnerConfig:Ix("proactivePrompts/setPartnerConfig")},KC={azure_partnerId:{azure_promptId:{"en-US":["How can Azure help scale my business?","What Azure services are best for my industry?","How do I migrate my applications to Azure?","What are the cost benefits of using Azure?"],"fr-FR":["Comment Azure peut-il aider à faire évoluer mon entreprise ?","Quels services Azure sont les meilleurs pour mon secteur ?","Comment migrer mes applications vers Azure ?","Quels sont les avantages en termes de coûts d'utiliser Azure ?"]}},office365_partnerId:{office365_promptId:{"en-US":["How does Microsoft 365 improve team collaboration?","What security features does Microsoft 365 provide?","Can I access Microsoft 365 from any device?","How do I migrate from my current email system?"],"fr-FR":["Comment Microsoft 365 améliore-t-il la collaboration d'équipe ?","Quelles fonctionnalités de sécurité Microsoft 365 fournit-il ?","Puis-je accéder à Microsoft 365 depuis n'importe quel appareil ?","Comment migrer depuis mon système de messagerie actuel ?"]}},dynamics_partnerId:{dynamics_promptId:{"en-US":["How can Dynamics 365 streamline my business processes?","What CRM features does Dynamics 365 offer?","How does Dynamics 365 integrate with other Microsoft products?","What industries benefit most from Dynamics 365?"],"fr-FR":["Comment Dynamics 365 peut-il rationaliser mes processus métier ?","Quelles fonctionnalités CRM Dynamics 365 offre-t-il ?","Comment Dynamics 365 s'intègre-t-il avec d'autres produits Microsoft ?","Quelles industries bénéficient le plus de Dynamics 365 ?"]}},default:{general_promptId:{"en-US":[]}}},JC={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 XC(e,t=JC,r=0){return r>(t.maxDepth||5)?"[MAX_DEPTH_EXCEEDED]":null==e?e:"string"==typeof e?QC(e,t):"number"==typeof e||"boolean"==typeof e?e:e instanceof Date?e.toISOString():e instanceof Error?{name:e.name,message:QC(e.message,t),stack:QC(e.stack||"",t)}:Array.isArray(e)?e.slice(0,10).map(e=>XC(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]=XC(i,t,r+1))}return n}(e,t,r):String(e)}function QC(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 ZC(e,t,r){const n=r?function(e){return XC(e,{...JC,fieldsToRemove:[...JC.fieldsToRemove,"directline_token","bot_token","conversation_key","client_secret","private_key"],fieldsToRedact:[...JC.fieldsToRedact,"conversation_id","user_message","bot_response","activity_id","channel_data"]})}(r):{};XW(e,t,{...n,security:{sanitized:!0,sanitizationTimestamp:(new Date).toISOString(),originalContextKeys:r?Object.keys(r):[]}})}var eT=(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))(eT||{});const tT="ChatSessionStarted",rT="ChatMessageSent",nT="ChatMessageReceived",oT="ChatSessionEnded",iT="ChatMessageDelivered",aT="ChatMessageNotDelivered",sT="ChatMessageNotSent",lT="ChatSessionDuration",cT="ChatComponentLoaded",uT="ActivityFeedbackSent",dT="ActivityFeedbackNotSent",fT="ThemeChanged",hT="ModeChanged",pT="DirectLineConnected",mT="DirectLineReconnected",gT="DirectLinePostActivity",vT="DirectLinePostActivityFailed",yT="DirectLineFirstWelcomeMessageReceived",bT="DirectLineApiResponseTime",wT="TokenApiResponseTime",xT="BotFrameworkApiResponseTime",kT="FetchDirectLineToken",ST="RefreshDirectLineToken",_T="LivePersonApiResponseTime",CT="LivePersonAvailabilityCheckStarted",TT="LivePersonAvailabilityAttempt",ET="LivePersonAvailabilityCheckCompleted",AT="LivePersonSessionManagementStarted",PT="LivePersonSessionReused",IT="LivePersonSessionManagementCompleted",BT="LivePersonWebSocketDisconnected",NT="LivePersonWebSocketReconnectStarted",DT="LivePersonWebSocketReconnectCompleted",zT="LivePersonMessageRenderError",OT="LivePersonAcceptStatusError",RT="LivePersonFirstAgentMessageReceived",MT="LivePersonUserRequestedDisconnect",jT="LivePersonUserEndedSurvey",LT="LivePersonSurveyCompleted",FT="LivePersonMessageEvent",VT="LivePersonSaga",qT="LivePersonAvailabilityAPI",HT="LivePersonSessionUpdate",UT="LivePersonSessionCreate";function WT(e,t){return e||t}function $T(e,t){return e[t]}var GT,YT=void 0,KT=null,JT="function",XT="object",QT="prototype",ZT="__proto__",eE="undefined",tE="constructor",rE="Symbol",nE="length",oE="name",iE="call",aE="toString",sE="getOwnPropertyDescriptor",lE=WT(Object),cE=$T(lE,QT),uE=WT(String),dE=$T(uE,QT),fE=WT(Math),hE=WT(Array),pE=$T(hE,QT),mE=$T(pE,"slice"),gE="_polyfill",vE="__nw21$polytype__";function yE(e,t){try{return{v:e.apply(this,t)}}catch(bze){return{e:bze}}}function bE(e,t,r){var n=yE(e,r);return n.e?t:n.v}function wE(e){return function(t){return typeof t===e}}function xE(e){var t="[object "+e+"]";return function(e){return!(!e||kE(e)!==t)}}function kE(e){return cE[aE].call(e)}function SE(e){return typeof e===eE||e===eE}function _E(e){return e===YT}function CE(e){return e===KT||SE(e)}function TE(e){return e===KT||e===YT}function EE(e){return!!e||e!==YT}function AE(e){return!GT&&(GT=["string","number","boolean",eE,"symbol","bigint"]),!(e===XT||-1===GT.indexOf(e))}var PE=wE("string"),IE=wE(JT);function BE(e){return!(!e&&CE(e))&&(!!e&&typeof e===XT)}var NE=$T(hE,"isArray"),DE=xE("Date"),zE=wE("number"),OE=wE("boolean"),RE=xE("Error");function ME(e){return!!(e&&e.then&&IE(e.then))}function jE(e){return!(!e||bE(function(){return!(e&&0+e)},!e))}function LE(){}function FE(){return[]}function VE(){return!1}var qE=WT(uE);function HE(e,t){var r="",n=cE[aE][iE](e);"[object Error]"===n&&(e={stack:qE(e.stack),message:qE(e.message),name:qE(e.name)});try{r=((r=JSON.stringify(e,KT,t?"number"==typeof t?t:4:YT))?r.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):KT)||qE(e)}catch(bze){r=" - "+HE(bze,t)}return n+": "+r}function UE(e){throw new Error(e)}function WE(e){throw new TypeError(e)}function $E(e){TE(e)&&WE("Cannot convert undefined or null to object")}function GE(e){PE(e)||WE("'"+HE(e)+"' is not a string")}function YE(e,t){return!!e&&cE.hasOwnProperty[iE](e,t)}var KE=WT($T(lE,sE),LE),JE=WT($T(lE,"hasOwn"),XE);function XE(e,t){return $E(e),YE(e,t)||!!KE(e,t)}function QE(e,t,r){if(e&&(BE(e)||IE(e)))for(var n in e)if(JE(e,n)&&-1===t[iE](e,n,e[n]))break}function ZE(e,t,r){if(e)for(var n=e[nE]>>>0,o=0;o<n&&(!(o in e)||-1!==t[iE](e,e[o],o,e));o++);}var eA=tA;function tA(e,t,r){var n=t?t[e]:KT;return function(t){var o=(t?t[e]:KT)||n;if(o||r){var i=arguments;return(o||r).apply(t,o?mE[iE](i,1):i)}WE('"'+qE(e)+'" not defined for '+HE(t))}}function rA(e){return function(t){return t[e]}}function nA(e,t){var r,n=lE.getOwnPropertyDescriptor;return!TE(e)&&n&&(r=yE(n,[e,t]).v||KT),r||(r=yE(function(){for(var r in e)if(r===t)return{enumerable:!0}}).v),r&&r.enumerable||!1}var oA=tA("propertyIsEnumerable",KT,nA),iA=WT($T(lE,sE),LE),aA=WT($T(lE,"getOwnPropertySymbols"),FE),sA={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};function lA(e){var t={};if(t[sA.c]=!0,t[sA.e]=!0,e.l){t.get=function(){return e.l.v};var r=iA(e.l,"v");r&&r.set&&(t.set=function(t){e.l.v=t})}return QE(e,function(e,r){t[sA[e]]=_E(r)?t[sA[e]]:r}),t}var cA=$T(lE,"defineProperty"),uA=$T(lE,"defineProperties");function dA(e,t,r){return cA(e,t,lA(r))}function fA(e,t){var r={};return QE(t,function(e,t){r[e]=lA(t)}),ZE(aA(t),function(e){oA(t,e)&&(r[e]=lA(t[e]))}),uA(e,r)}function hA(e,t,r,n,o){var i={};return QE(e,function(e,r){pA(i,e,t?r:e),pA(i,r,e)}),n?n(i):i}function pA(e,t,r,n){cA(e,t,{value:r,enumerable:!0,writable:!1})}var mA=WT($T(lE,"isFrozen"),VE),gA=$T(lE,"freeze");function vA(e){return e}function yA(e){return $E(e),e[ZT]||KT}var bA=$T(lE,"assign"),wA=$T(lE,"keys");function xA(e,t){if((NE(e)||BE(e)||IE(e))&&!mA(e)){for(var r=0;r<t.length;r++)if(t[r]===e)return e;t.push(e),QE(e,function(e,r){xA(r,t)}),SA(e)}return e}function kA(e){return gA?xA(e,[]):e}var SA=WT(gA,vA),_A=WT($T(lE,"getPrototypeOf"),yA);function CA(e){return hA(e,0,0,SA)}function TA(e){var t={};return QE(e,function(e,r){pA(t,e,r[1]),pA(t,r[0],r[1])}),SA(t)}var EA,AA=CA({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}),PA="__tsUtils$gblCfg";function IA(){var e;return typeof globalThis!==eE&&(e=globalThis),e||typeof self===eE||(e=self),e||typeof window===eE||(e=window),e||typeof global===eE||(e=global),e}function BA(){if(!EA){var e=yE(IA).v||{};EA=e[PA]=e[PA]||{}}return EA}var NA=$T(fE,"min"),DA=$T(fE,"max"),zA=eA("slice",dE),OA=eA("substring",dE),RA=tA("substr",dE,MA);function MA(e,t,r){return $E(e),r<0?"":((t=t||0)<0&&(t=DA(t+e[nE],0)),SE(r)?zA(e,t):zA(e,t,t+r))}function jA(e,t){return OA(e,0,t)}var LA,FA=WT($T(lE,"create"),VA);function VA(e,t){var r=null;function n(){}if(TE(e))r={};else{var o=typeof e;o!==XT&&o!==JT&&WE("Prototype must be an Object or function: "+HE(e)),n[QT]=e,yE(function(){n[ZT]=e}),r=new n}return t&&yE(uA,[r,t]),r}function qA(){return(Date.now||HA)()}function HA(){return(new Date).getTime()}function UA(e,t,r){return e.apply(t,r)}function WA(){LA=BA()}function $A(e,t){var r={};return!LA&&WA(),r.b=LA.lzy,cA(r,"v",{configurable:!0,get:function(){var n=UA(e,null,t);return LA.lzy||cA(r,"v",{value:n}),r.b=LA.lzy,n}}),r}var GA,YA,KA=$T(fE,"random"),JA=$A(function(){for(var e=qA().toString(36).slice(2);e.length<16;)e+=KA().toString(36).slice(2);return e=e.substring(0,16)}),XA="_urid",QA=0;function ZA(){if(!GA){var e=BA();GA=e.gblSym=e.gblSym||{k:{},s:{}}}return GA}function eP(e){var t="_"+QA+++"_"+JA.v,r=rE+"("+e+")";function n(e,t){dA(a,e,{v:t,e:!1,w:!1})}var o,i,a=FA(null);return n("description",qE(e)),n(aE,function(){return r+"$nw21sym"+t}),n("valueOf",function(){return a}),n("v",r),n("_uid",t),i="symbol",(o=a)&&(yE(function(){o[gE]=!0,o[vE]=i}),yE(dA,[o,gE,{v:!0,w:!1,e:!1}]),yE(dA,[o,vE,{v:i,w:!1,e:!1}])),o}function tP(e){var t=ZA();if(!JE(t.k,e)){var r=eP(e),n=wA(t.s).length;r[XA]=function(){return n+"_"+r[aE]()},t.k[e]=r,t.s[r[XA]()]=qE(e)}return t.k[e]}function rP(e){var t;!YA&&(YA={});var r=AA[e];return r&&(t=YA[r]=YA[r]||eP(rE+"."+r)),t}function nP(e){return cA({toJSON:function(){return e}},"v",{value:e})}var oP,iP="window";function aP(e,t){var r;return function(){return!LA&&WA(),r&&!LA.lzy||(r=nP(yE(e,t).v)),r.v}}function sP(e){return!LA&&WA(),oP&&!1!==e&&!LA.lzy||(oP=nP(yE(IA).v||KT)),oP.v}function lP(e,t){var r;if((r=oP&&!1!==t?oP.v:sP(t))&&r[e])return r[e];if(e===iP)try{return window}catch(bze){}return KT}function cP(){return!!uP()}var uP=aP(lP,["document"]);function dP(){return!!fP()}var fP=aP(lP,[iP]);function hP(){return!!pP()}var pP=aP(lP,["navigator"]);function mP(){return!!bP()}var gP,vP,yP,bP=aP(lP,["history"]),wP=aP(function(){return!!yE(function(){return process&&(process.versions||{}).node}).v}),xP=aP(function(){return!!yE(function(){return self&&self instanceof WorkerGlobalScope}).v});function kP(){return gP=nP(yE(lP,[rE]).v)}function SP(e){var t=(LA.lzy?0:gP)||kP();return t.v?t.v[e]:YT}function _P(){return!!CP()}function CP(){return!LA&&WA(),((LA.lzy?0:gP)||kP()).v}function TP(e,t){var r=AA[e];!LA&&WA();var n=(LA.lzy?0:gP)||kP();return n.v?n.v[r||e]:rP(e)}function EP(e,t){!LA&&WA();var r=(LA.lzy?0:gP)||kP();return r.v?r.v(e):eP(e)}function AP(e){return!LA&&WA(),((vP=(LA.lzy?0:vP)||nP(yE(SP,["for"]).v)).v||tP)(e)}function PP(e){return!!e&&IE(e.next)}function IP(e){return!TE(e)&&IE(e[TP(3)])}function BP(e,t,r){if(e&&(PP(e)||(!yP&&(yP=nP(TP(3))),e=e[yP.v]?e[yP.v]():KT),PP(e))){var n=YT,o=YT;try{for(var i=0;!(o=e.next()).done&&-1!==t[iE](r||e,o.value,i,e);)i++}catch(a){n={e:a},e.throw&&(o=KT,e.throw(n))}finally{try{o&&!o.done&&e.return&&e.return(o)}finally{if(n)throw n.e}}}}function NP(e,t){return!SE(t)&&e&&(NE(t)?UA(e.push,e,t):PP(t)||IP(t)?BP(t,function(t){e.push(t)}):e.push(t)),e}var DP=eA("indexOf",pE),zP=eA("map",pE);function OP(e,t,r){return((e?e.slice:KT)||mE).apply(e,mE[iE](arguments,1))}var RP,MP,jP=eA("reduce",pE),LP=WT($T(lE,"setPrototypeOf"),FP);function FP(e,t){var r;return!RP&&(RP=nP(((r={})[ZT]=[],r instanceof Array))),RP.v?e[ZT]=t:QE(t,function(t,r){return e[t]=r}),e}function VP(e,t,r){function n(){this[tE]=t,yE(dA,[this,oE,{v:e,c:!0,e:!1}])}return yE(dA,[t,oE,{v:e,c:!0,e:!1}]),(t=LP(t,r))[QT]=r===KT?FA(r):(n[QT]=r[QT],new n),t}function qP(e,t){t&&(e[oE]=t)}function HP(e,t,r){var n=Error,o=n[QT][oE],i=Error.captureStackTrace;return VP(e,function(){var r=this,a=arguments;try{yE(qP,[n,e]);var s=UA(n,r,mE[iE](a))||r;if(s!==r){var l=_A(r);l!==_A(s)&&LP(s,l)}return i&&i(s,r[tE]),t&&t(s,a),s}finally{yE(qP,[n,o])}},n)}function UP(e){return function(t){return $E(t),t&&t.replace&&(t=t.replace(e,"")),t}}var WP,$P,GP,YP=tA("trim",dE,UP(/^\s+|(?=\s)\s+$/g)),KP=$T(fE,"floor"),JP=$T(fE,"ceil");function XP(e){if(!e||typeof e!==XT)return!1;GP||(GP=!dP()||fP());var t=!1;if(e!==GP){$P||(WP=Function[QT][aE],$P=WP[iE](lE));try{var r=_A(e);(t=!r)||(YE(r,tE)&&(r=r[tE]),t=!(!r||typeof r!==JT||WP[iE](r)!==$P))}catch(n){}}return t}function QP(e){return e.value&&oI(e),!0}var ZP=[function(e){var t=e.value;if(NE(t)){var r=e.result=[];return r.length=t.length,e.copyTo(r,t),!0}return!1},oI,function(e){if(e.type===JT)return!0;return!1},function(e){var t=e.value;if(DE(t))return e.result=new Date(t.getTime()),!0;return!1}];function eI(e,t,r,n){var o;return ZE(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 tI(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===KT;c||(t&&s===XT?l=XP(t):c=AE(s));var u={type:s,isPrim:c,isPlain:l,value:t,result:t,path:i,origin:r.src,copy:function(t,n){return tI(e,t,n?a:r,n)},copyTo:function(t,r){return rI(e,t,r,a)}};return u.isPrim?o&&o[iE](r,u)?u.result:t:eI(e,t,0,function(e){dA(u,"result",{g:function(){return e.v},s:function(t){e.v=t}});for(var t=0,n=o;!(n||(t<ZP.length?ZP[t++]:QP))[iE](r,u);)n=KT})}function rI(e,t,r,n){if(!CE(r))for(var o in r)t[o]=tI(e,r[o],n,o);return t}function nI(e,t){return tI([],e,{handler:t,src:e})}function oI(e){var t=e.value;if(t&&e.isPlain){var r=e.result={};return e.copyTo(r,t),!0}return!1}function iI(e,t){return ZE(t,function(t){!function(e,t,r){rI([],e,t,{handler:r,src:t,path:[]})}(e,t)}),e}function aI(e,t,r,n,o,i,a){return iI(nI(e)||{},mE[iE](arguments))}var sI=eA("split",dE);function lI(e,t,r){if(e&&t){var n=sI(t,"."),o=n.pop();ZE(n,function(t){CE(e[t])&&(e[t]={}),e=e[t]}),e[o]=r}}var cI,uI=rA(nE);function dI(){return!LA&&WA(),cI&&!LA.lzy||(cI=nP(yE(lP,["performance"]).v)),cI.v}var fI=$T(fE,"round"),hI=WT($T(lE,sE),LE),pI=tA("endsWith",dE,mI);function mI(e,t,r){GE(e);var n=PE(t)?t:qE(t),o=!SE(r)&&r<e[nE]?r:e[nE];return OA(e,o-n[nE],o)===n}var gI=eA("indexOf",dE),vI=tA("startsWith",dE,yI);function yI(e,t,r){GE(e);var n=PE(t)?t:qE(t),o=r>0?r:0;return OA(e,o,o+n[nE])===n}var bI,wI="ref",xI="unref",kI="hasRef";function SI(e,t,r){var n,o=!0,i=e?t(KT):KT;function a(){return o=!1,i&&i[xI]&&i[xI](),n}function s(){i&&r(i),i=KT}function l(){return i=t(i),o||a(),n}return(n={cancel:s,refresh:l})[kI]=function(){return i&&i[kI]?i[kI]():o},n[wI]=function(){return o=!0,i&&i[wI]&&i[wI](),n},n[xI]=a,{h:n=cA(n,"enabled",{get:function(){return!!i},set:function(e){!e&&i&&s(),e&&!i&&l()}}),dn:function(){i=KT}}}function _I(e,t,r){var n=NE(t),o=n?t.length:0,i=function(e){var t=IE(e)?e:void 0;if(!t){var r=BA().tmOut||[];NE(r)&&r.length>0&&IE(r[0])&&(t=r[0])}return t||setTimeout}(o>0?t[0]:n?YT:t),a=function(e){var t=IE(e)?e:void 0;if(!t){var r=BA().tmOut||[];NE(r)&&r.length>1&&IE(r[1])&&(t=r[1])}return t||clearTimeout}(o>1?t[1]:YT),s=r[0];r[0]=function(){l.dn(),UA(s,YT,mE[iE](arguments))};var l=SI(e,function(e){if(e){if(e.refresh)return e.refresh(),e;UA(a,YT,[e])}return UA(i,YT,r)},function(e){UA(a,YT,[e])});return l.h}function CI(e,t){return _I(!0,YT,mE[iE](arguments))}var TI="constructor",EI="prototype",AI="function",PI="_dynInstFuncs",II="_isDynProxy",BI="_dynClass",NI="_dynInstChk",DI=NI,zI="_dfOpts",OI="_unknown_",RI="__proto__",MI="_dyn"+RI,jI="__dynProto$Gbl",LI="_dynInstProto",FI="useBaseInst",VI="setInstFuncs",qI=Object,HI=qI.getPrototypeOf,UI=qI.getOwnPropertyNames,WI=sP(),$I=WI[jI]||(WI[jI]={o:(bI={},bI[VI]=!0,bI[FI]=!0,bI),n:1e3});function GI(e){return e&&(e===qI[EI]||e===Array[EI])}function YI(e){return GI(e)||e===Function[EI]}function KI(e){var t;if(e){if(HI)return HI(e);var r=e[RI]||e[EI]||(e[TI]?e[TI][EI]:null);t=e[MI]||r,YE(e,MI)||(delete e[LI],t=e[MI]=e[LI]||e[MI],e[LI]=r)}return t}function JI(e,t){var r=[];if(UI)r=UI(e);else for(var n in e)"string"==typeof n&&YE(e,n)&&r.push(n);if(r&&r.length>0)for(var o=0;o<r.length;o++)t(r[o])}function XI(e,t,r){return t!==TI&&typeof e[t]===AI&&(r||YE(e,t))&&t!==RI&&t!==EI}function QI(e){WE("DynamicProto: "+e)}function ZI(e,t){for(var r=e.length-1;r>=0;r--)if(e[r]===t)return!0;return!1}function eB(e,t,r,n,o){function i(e,t){var r=function(){var n=function(e,t,r,n){var o=null;if(e&&YE(r,BI)){var i=e[PI]||FA(null);if((o=(i[r[BI]]||FA(null))[t])||QI("Missing ["+t+"] "+AI),!o[NI]&&!1!==i[DI]){for(var a=!YE(e,t),s=KI(e),l=[];a&&s&&!YI(s)&&!ZI(l,s);){var c=s[t];if(c){a=c===n;break}l.push(s),s=KI(s)}try{a&&(e[t]=o),o[NI]=1}catch(bze){i[DI]=!1}}}return o}(this,t,e,r)||function(e,t,r){var n=t[e];return n===r&&(n=KI(t)[e]),typeof n!==AI&&QI("["+e+"] is not a "+AI),n}(t,e,r);return n.apply(this,arguments)};return r[II]=1,r}if(!GI(e)){var a=r[PI]=r[PI]||FA(null);if(!GI(a)){var s=a[t]=a[t]||FA(null);!1!==a[DI]&&(a[DI]=!!o),GI(s)||JI(r,function(t){XI(r,t,!1)&&r[t]!==n[t]&&(s[t]=r[t],delete r[t],(!YE(e,t)||e[t]&&!e[t][II])&&(e[t]=i(e,t)))})}}}function tB(e,t){return YE(e,EI)?e.name||t||OI:((e||{})[TI]||{}).name||t||OI}function rB(e,t,r,n){YE(e,EI)||QI("theClass is an invalid class definition.");var o=e[EI];(function(e,t){if(HI){for(var r=[],n=KI(t);n&&!YI(n)&&!ZI(r,n);){if(n===e)return!0;r.push(n),n=KI(n)}return!1}return!0})(o,t)||QI("["+tB(e)+"] not in hierarchy of ["+tB(t)+"]");var i=null;YE(o,BI)?i=o[BI]:(i="_dynCls$"+tB(e,"_")+"$"+$I.n,$I.n++,o[BI]=i);var a=rB[zI],s=!!a[FI];s&&n&&void 0!==n[FI]&&(s=!!n[FI]);var l=function(e){var t=FA(null);return JI(e,function(r){!t[r]&&XI(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[II]&&n){var i=e[PI]||{};!1!==i[DI]&&(o=(i[t[BI]]||{})[r]||o)}return function(){return o.apply(e,arguments)}}var i=FA(null);JI(r,function(e){i[e]=o(t,r,e)});for(var a=KI(e),s=[];a&&!YI(a)&&!ZI(s,a);)JI(a,function(e){!i[e]&&XI(a,e,!HI)&&(i[e]=o(t,a,e))}),s.push(a),a=KI(a);return i}(o,t,l,s);r(t,c);var u=!!HI&&!!a[VI];u&&n&&(u=!!n[VI]),eB(o,i,t,l,!1!==u)}rB[zI]=$I.o;var nB="function",oB="object",iB="undefined",aB="prototype",sB=Object,lB=sB[aB];(sP()||{}).Symbol,(sP()||{}).Reflect;var cB="hasOwnProperty",uB=bA||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])lB[cB].call(t,o)&&(e[o]=t[o]);return e},dB=function(e,t){return(dB=sB.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t[cB](r)&&(e[r]=t[r])})(e,t)};function fB(e,t){function r(){this.constructor=e}typeof t!==nB&&null!==t&&WE("Class extends value "+String(t)+" is not a constructor or null"),dB(e,t),e[aB]=null===t?FA(t):(r[aB]=t[aB],new r)}function hB(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}var pB,mB=function(e){return hA(e,1,0,SA)},gB=function(e){return TA(e)},vB=mB({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),yB=mB({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2}),bB="toLowerCase",wB="length",xB="warnToConsole",kB="throwInternal",SB="watch",_B="apply",CB="push",TB="splice",EB="logger",AB="cancel",PB="initialize",IB="identifier",BB="removeNotificationListener",NB="addNotificationListener",DB="isInitialized",zB="getNotifyMgr",OB="getPlugin",RB="name",MB="processNext",jB="getProcessTelContext",LB="value",FB="enabled",VB="stopPollingInternalLogs",qB="unload",HB="onComplete",UB="version",WB="loggingLevelConsole",$B="createNew",GB="teardown",YB="messageId",KB="message",JB="diagLog",XB="_doTeardown",QB="update",ZB="getNext",eN="setNextPlugin",tN="userAgent",rN="split",nN="replace",oN="type",iN="evtName",aN="status",sN="getAllResponseHeaders",lN="isChildEvt",cN="data",uN="getCtx",dN="setCtx",fN="itemsReceived",hN="headers",pN="urlString",mN="timeout",gN="traceFlags",vN="getAttribute";var yN="Promise",bN="rejected";function wN(e,t){return xN(e,function(e){return t?t({status:"fulfilled",rejected:!1,value:e}):e},function(e){return t?t({status:bN,rejected:!0,reason:e}):e})}function xN(e,t,r,n){var o=e;try{if(ME(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 kN,SN=["pending","resolving","resolved",bN],_N="dispatchEvent";function CN(e){var t;return e&&e.createEvent&&(t=e.createEvent("Event")),!!t&&t.initEvent}var TN,EN,AN,PN,IN="unhandledRejection",BN=IN.toLowerCase(),NN=[],DN=0;function zN(e){return IE(e)?e.toString():HE(e)}function ON(e,t,r){var n,o,i=OP(arguments,3),a=0,s=!1,l=[],c=DN++,u=!1,d=null;function f(t,r){try{return NN.push(c),u=!0,d&&d.cancel(),d=null,e(function(e,o){l.push(function(){try{var i=2===a?t:r,s=SE(i)?n:IE(i)?i(n):i;ME(s)?s.then(e,o):i?e(s):3===a?o(s):e(s)}catch(bze){o(bze)}}),s&&p()},i)}finally{NN.pop()}}function h(){return SN[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&&ME(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=CI(g,10))}}}function g(){if(!u)if(u=!0,wP())process.emit(IN,n,o);else{var e=fP()||sP();!TN&&(TN=nP(yE(lP,[yN+"RejectionEvent"]).v)),function(e,t,r,n){var o=uP();!kN&&(kN=nP(!!yE(CN,[o]).v));var i=kN.v?o.createEvent("Event"):n?new Event(t):{};if(r&&r(i),kN.v&&i.initEvent(t,!1,!0),i&&e[_N])e[_N](i);else{var a=e["on"+t];if(a)a(i);else{var s=lP("console");s&&(s.error||s.log)(t,HE(i))}}}(e,BN,function(e){return dA(e,"promise",{g:function(){return o}}),e.reason=n,e},!!TN.v)}}return cA(o={then:f,catch:function(e){return f(void 0,e)},finally:function(e){var t=e,r=e;return IE(e)&&(t=function(t){return e&&e(),t},r=function(t){throw e&&e(),t}),f(t,r)}},"state",{get:h}),_P()&&(o[TP(11)]="IPromise"),o.toString=function(){return"IPromise "+h()+(s?" - "+zN(n):"")},function(){IE(r)||WE(yN+": executor is not a function - "+zN(r));var e=m(3,0);try{r.call(o,m(2,0),e)}catch(bze){e(bze)}}(),o}function RN(e){return function(t){var r=OP(arguments,1);return e(function(e,r){try{var n=[],o=1;BP(t,function(t,i){t&&(o++,xN(t,function(t){n[i]=t,0===--o&&e(n)},r))}),0===--o&&e(n)}catch(bze){r(bze)}},r)}}function MN(e){return nP(function(t){var r=OP(arguments,1);return e(function(e,r){var n=[],o=1;function i(t,r){o++,wN(t,function(t){t.rejected?n[r]={status:bN,reason:t.reason}:n[r]={status:"fulfilled",value:t.value},0===--o&&e(n)})}try{NE(t)?ZE(t,i):IP(t)?BP(t,i):WE("Input is not an iterable"),0===--o&&e(n)}catch(bze){r(bze)}},r)})}function jN(e){ZE(e,function(e){try{e()}catch(bze){}})}function LN(e,t){return ON(LN,function(e){var t=zE(e)?e:0;return function(e){CI(function(){jN(e)},t)}}(t),e,t)}function FN(e,t){!EN&&(EN=nP(yE(lP,[yN]).v||null));var r=EN.v;if(!r)return LN(e);IE(e)||WE(yN+": executor is not a function - "+HE(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 cA(o,"state",{get:function(){return SN[n]}}),o}function VN(e){return ON(VN,jN,e)}function qN(e,t){return!PN&&(PN=nP(FN)),PN.v.call(this,e,t)}var HN=RN(qN),UN=void 0,WN="",$N="channels",GN="core",YN="createPerfMgr",KN="disabled",JN="extensionConfig",XN="extensions",QN="processTelemetry",ZN="priority",eD="eventsSent",tD="eventsDiscarded",rD="eventsSendRequest",nD="perfEvent",oD="offlineEventsStored",iD="offlineBatchSent",aD="offlineBatchDrop",sD="getPerfMgr",lD="domain",cD="path",uD=/-([a-z])/g,dD=/([^\w\d_$])/g,fD=/^(\d+[\w\d_$])/,hD=Object.getPrototypeOf;function pD(e){return!CE(e)}function mD(e){var t=e;return t&&PE(t)&&(t=(t=(t=t[nN](uD,function(e,t){return t.toUpperCase()}))[nN](dD,"_"))[nN](fD,function(e,t){return"_"+t})),t}function gD(e,t){return!(!e||!t)&&-1!==gI(e,t)}function vD(e){return e&&e.toISOString()||""}function yD(e){return RE(e)?e[RB]:WN}function bD(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 wD(e,t,r){var n;return e?!(n=e[t])&&CE(n)&&(n=SE(r)?{}:r,e[t]=n):n=SE(r)?{}:r,n}function xD(e,t){var r=null,n=null;return IE(e)?r=e:n=e,function(){var e=arguments;if(r&&(n=r()),n)return n[t][_B](n,e)}}function kD(e,t,r){if(e&&t&&BE(e)&&BE(t)){var n=function(n){if(PE(n)){var o=t[n];IE(o)?r&&!r(n,!0,t,e)||(e[n]=xD(t,n)):r&&!r(n,!1,t,e)||(JE(e,n)&&delete e[n],dA(e,n,{g:function(){return t[n]},s:function(e){t[n]=e}}))}};for(var o in t)n(o)}return e}function SD(e,t,r,n,o){e&&t&&r&&(e[t]=xD(r,n))}function _D(e,t,r,n){return e&&t&&BE(e)&&NE(r)&&ZE(r,function(r){PE(r)&&SD(e,r,t,r)}),e}function CD(e){return e&&bA&&(e=sB(bA({},e))),e}function TD(e,t,r,n,o,i){var a=arguments,s=a[0]||{},l=a[wB],c=!1,u=1;for(l>0&&OE(s)&&(c=s,s=a[u]||{},u++),BE(s)||(s={});u<l;u++){var d=a[u],f=NE(d),h=BE(d);for(var p in d){if(f&&p in d||h&&JE(d,p)){var m=d[p],g=void 0;if(c&&m&&((g=NE(m))||XP(m))){var v=s[p];g?NE(v)||(v=[]):XP(v)||(v={}),m=TD(c,v,m)}void 0!==m&&(s[p]=m)}}}return s}function ED(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 AD(e){try{return e.responseText}catch(bze){}return null}function PD(e,t){return e?"XDomainRequest,Response:"+AD(e)||"":t}function ID(e,t){return e?"XMLHttpRequest,Status:"+e[aN]+",Response:"+AD(e)||e.response||"":t}function BD(e,t){return t&&(zE(t)?e=[t].concat(e):NE(t)&&(e=t.concat(e))),e}var ND="withCredentials";function DD(e,t,r){if(!e[r]&&t&&t.getResponseHeader){var n=t.getResponseHeader(r);n&&(e[r]=YP(n))}return e}function zD(e,t){var r,n,o={};return e[sN]?(r=e[sN](),n={},PE(r)&&ZE(YP(r)[rN](/[\r\n]+/),function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var r=YP(e.substring(0,t))[bB](),o=YP(e.substring(t+1));n[r]=o}else n[YP(e)]=1}}),o=n):t&&(o=DD(o,e,"time-delta-millis"),o=DD(o,e,"kill-duration"),o=DD(o,e,"kill-duration-seconds")),o}var OD="JSON",RD="msie",MD="trident/",jD="XMLHttpRequest",LD=null,FD=null,VD=null,qD=null;function HD(e,t){var r=!1;if(e){try{if(!(r=t in e)){var n=e[aB];n&&(r=t in n)}}catch(bze){}if(!r)try{r=!SE((new e)[t])}catch(bze){}}return r}function UD(e){return typeof location===oB&&location?location:lP("location")}function WD(){return Boolean(typeof JSON===oB&&JSON||null!==lP(OD))}function $D(){return WD()?JSON||lP(OD):null}function GD(){var e=pP();return!(!e||!e.product)&&"ReactNative"===e.product}function YD(){var e=pP();if(e&&(e[tN]!==FD||null===LD)){var t=((FD=e[tN])||WN)[bB]();LD=gD(t,RD)||gD(t,MD)}return LD}function KD(e){if(void 0===e&&(e=null),!e){var t=pP()||{};e=t?(t.userAgent||WN)[bB]():WN}var r=(e||WN)[bB]();if(gD(r,RD)){var n=uP()||{};return DA(parseInt(r[rN](RD)[1]),n.documentMode||0)}if(gD(r,MD)){var o=parseInt(r[rN](MD)[1]);if(o)return o+4}return null}function JD(e){return null!==qD&&!1!==e||(qD=hP()&&Boolean(pP().sendBeacon)),qD}function XD(e){var t=!1;try{t=!!lP("fetch");var r=lP("Request");t&&e&&r&&(t=HD(r,"keepalive"))}catch(bze){}return t}function QD(){return null===VD&&(VD=typeof XDomainRequest!==iB)&&ZD()&&(VD=VD&&!HD(lP(jD),"withCredentials")),VD}function ZD(){var e=!1;try{e=!!lP(jD)}catch(bze){}return e}function ez(e,t,r){var n,o,i=sP();if(i&&i.CustomEvent)try{return n=i,o=function(e,t){var r=null,n={detail:t||null};if(IE(CustomEvent))r=new CustomEvent(e,n);else{var o=uP();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(bze){}return!1}var tz=4294967296,rz=4294967295,nz=123456789,oz=987654321,iz=!1,az=nz,sz=oz;function lz(){try{var e=2147483647&qA();(t=(Math.random()*tz^e)+e)<0&&(t>>>=0),az=nz+t&rz,sz=oz-t&rz,iz=!0}catch(bze){}var t}function cz(e){var t=0,r=lP("crypto")||lP("msCrypto");return r&&r.getRandomValues&&(t=r.getRandomValues(new Uint32Array(1))[0]&rz),0===t&&YD()&&(iz||lz(),t=function(){var e=((sz=36969*(65535&sz)+(sz>>16)&rz)<<16)+(65535&(az=18e3*(65535&az)+(az>>16)&rz))>>>0&rz;return e>>>=0,e}()&rz),0===t&&(t=KP(tz*Math.random()|0)),e||(t>>>=0),t}function uz(e){void 0===e&&(e=22);for(var t=cz()>>>0,r=0,n=WN;n[wB]<e;)r++,n+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===r&&(t=(cz()<<2&4294967295|3&t)>>>0,r=0);return n}var dz="3.3.9",fz="."+uz(6),hz=0;function pz(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function mz(e,t){return void 0===t&&(t=!1),mD(e+hz+++(t?"."+dz:WN)+fz)}function gz(e){var t={id:mz("_aiData-"+(e||WN)+"."+dz),accept:function(e){return pz(e)},get:function(e,r,n,o){var i=e[t.id];return i?i[mD(r)]:(o&&(i=function(e,t){var r=t[e.id];if(!r){r={};try{pz(t)&&dA(t,e.id,{e:!1,v:r})}catch(bze){}}return r}(t,e),i[mD(r)]=n),n)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(bze){}}};return t}function vz(e){return e&&BE(e)&&!NE(e)&&(e.isVal||e.fb||JE(e,"v")||JE(e,"mrg")||JE(e,"ref")||e.set)}function yz(e,t,r){var n,o=r.dfVal||EE;if(t&&r.fb){var i=r.fb;NE(i)||(i=[i]);for(var a=0;a<i[wB];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,qE(s),l)),o(n))break}}return!o(n)&&o(r.v)&&(n=r.v),n}function bz(e,t,r){var n,o=r;(r&&vz(r)&&(o=yz(e,t,r)),o)&&(vz(o)&&(o=bz(e,t,o)),NE(o)?(n=[])[wB]=o[wB]:XP(o)&&(n={}),n&&(QE(o,function(r,o){o&&vz(o)&&(o=bz(e,t,o)),n[r]=o}),o=n));return o}function wz(e,t,r,n){var o,i,a,s,l,c,u,d,f=n;vz(f)?(o=f.isVal,i=f.set,c=f.rdOnly,u=f.blkVal,s=f.mrg,!(l=f.ref)&&SE(l)&&(l=!!s),a=yz(e,t,f)):a=n,u&&e.blkVal(t,r);var h=!0,p=t[r];!p&&CE(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?bz(e,t,a):a:(XP(d)||NE(a))&&s&&a&&(XP(a)||NE(a))&&QE(a,function(t,r){wz(e,d,t,r)}),e.set(t,r,d),l&&e.ref(t,r),c&&e.rdOnly(t,r)}var xz=AP("[[ai_dynCfg_1]]"),kz=AP("[[ai_blkDynCfg_1]]"),Sz=AP("[[ai_frcDynCfg_1]]");function _z(e){var t;if(e&&(NE(e)?(t=[])[wB]=e[wB]:XP(e)&&(t={}),t))return QE(e,function(e,r){t[e]=_z(r)}),t;return e}function Cz(e,t,r){var n=!1;return r&&!e[t.blkVal]&&((n=r[Sz])||r[kz]||(n=XP(r)||NE(r))),n}function Tz(e){WE("InvalidAccess:"+e)}var Ez=["push","pop","shift","unshift","splice"],Az=function(e,t,r,n){e&&e[kB](3,108,"".concat(r," [").concat(t,"] failed - ")+HE(n))};function Pz(e,t){var r=hI(e,t);return r&&r.get}function Iz(e,t,r,n){if(t){var o=Pz(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===DP(o.h,t)&&o.h[CB](t),e.trk(t,o))},clr:function(e){var t=DP(o.h,e);-1!==t&&o.h[TB](t,1)}},i=!0,a=!1;function s(){i&&(a=a||Cz(s,e,n),n&&!n[xz]&&a&&(n=Nz(e,n,r,"Converting")),i=!1);var t=e.act;return t&&o.trk(t),n}s[e.prop]={chng:function(){e.add(o)}},dA(t,o.n,{g:s,s:function(l){if(n!==l){s[e.ro]&&!e.upd&&Tz("["+r+"] is read-only:"+HE(t)),i&&(a=a||Cz(s,e,n),i=!1);var c=a&&s[e.rf];if(a)if(c){QE(n,function(e){n[e]=l?l[e]:UN});try{QE(l,function(t,r){Iz(e,n,t,r)}),l=n}catch(bze){Az((e.hdlr||{})[EB],r,"Assigning",bze),a=!1}}else n&&n[xz]&&QE(n,function(t){var r=Pz(n,t);if(r){var o=r[e.prop];o&&o.chng()}});if(l!==n){var u=l&&Cz(s,e,l);!c&&u&&(l=Nz(e,l,r,"Converting")),n=l,a=u}e.add(o)}}})}(e,t,r,n)}return t}function Bz(e,t,r,n){if(t){var o=Pz(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&&(XP(e)||NE(e)))try{e[kz]=!0}catch(bze){}}(t)}catch(bze){Az((e.hdlr||{})[EB],r,"Blocking",bze)}try{Iz(e,t,r,t[r]),o=Pz(t,r)}catch(bze){Az((e.hdlr||{})[EB],r,"State",bze)}}a&&(o[e.rf]=a),s&&(o[e.ro]=s),l&&(o[e.blkVal]=!0)}return t}function Nz(e,t,r,n){try{QE(t,function(r,n){Iz(e,t,r,n)}),t[xz]||(cA(t,xz,{get:function(){return e.hdlr}}),function(e,t,r){NE(t)&&ZE(Ez,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[_B](this,n);return Nz(e,t,r,"Patching"),a}})}(e,t,r))}catch(bze){Az((e.hdlr||{})[EB],r,n,bze)}return t}var Dz="[[ai_",zz="]]";function Oz(e){var t,r=EP(Dz+"get"+e.uid+zz),n=EP(Dz+"ro"+e.uid+zz),o=EP(Dz+"rf"+e.uid+zz),i=EP(Dz+"blkVal"+e.uid+zz),a=EP(Dz+"dtl"+e.uid+zz),s=null,l=null;function c(r,n){var o=t.act;try{t.act=r,r&&r[a]&&(ZE(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(bze){var i=e[EB];throw i&&i[kB](1,107,HE(bze)),bze}finally{t.act=o||null}}function u(){if(s){var e=s;s=null,l&&l[AB](),l=null;var t=[];if(ZE(e,function(e){if(e&&(e[a]&&(ZE(e[a],function(t){t.clr(e)}),e[a]=null),e.fn))try{c(e,e.fn)}catch(bze){t[CB](bze)}}),s)try{u()}catch(bze){t[CB](bze)}t[wB]>0&&function(e,t){pB||(pB=HP("AggregationError",function(e,t){t[wB]>1&&(e.errors=t[1])}));var r=e;throw ZE(t,function(e,t){r+="\n".concat(t," > ").concat(HE(e))}),new pB(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[wB]>0){s||(s=[]),l||(l=CI(function(){l=null,u()},0));for(var t=0;t<e.h[wB];t++){var r=e.h[t];r&&-1===DP(s,r)&&s[CB](r)}}},notify:u,use:c,trk:function(e,t){if(e){var r=e[a]=e[a]||[];-1===DP(r,t)&&r[CB](t)}}}}function Rz(e,t,r){var n=function(e){if(e){var t=e[xz]||e;if(t.cfg&&(t.cfg===e||t.cfg[xz]===t))return t}return null}(t);if(n)return n;var o,i=mz("dyncfg",!0),a=t&&!1!==r?t:_z(t);var s={uid:null,cfg:a,logger:e,notify:function(){o.notify()},set:function(t,r,n){try{t=Iz(o,t,r,n)}catch(bze){Az(e,r,"Setting value",bze)}return t[r]},setDf:function(e,t){return t&&QE(t,function(t,r){wz(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 dA(r,"toJSON",{v:function(){return"WatcherHandler"+(r.fn?"":"[X]")}}),e.use(r,t),r}(o,e)},ref:function(e,t){var r;return Bz(o,e,t,(r={},r[0]=!0,r))[t]},rdOnly:function(e,t){var r;return Bz(o,e,t,(r={},r[1]=!0,r))[t]},blkVal:function(e,t){var r;return Bz(o,e,t,(r={},r[2]=!0,r))[t]},_block:function(e,t){o.use(null,function(r){var n=o.upd;try{SE(t)||(o.upd=t),e(r)}finally{o.upd=n}})}};return dA(s,"uid",{c:!1,e:!1,w:!1,v:i}),Nz(o=Oz(s),a,"config","Creating"),s}function Mz(e,t,r,n){var o=Rz(r,e||{},n);return t&&o.setDf(o.cfg,t),o}function jz(e,t,r){var n=e[xz]||e;return!n.cfg||n.cfg!==e&&n.cfg[xz]!==n?(function(e,t){e?(e[xB](t),e[kB](2,108,t)):Tz(t)}(r,"Not dynamic - "+HE(e)),Mz(e,null,r)[SB](t)):n[SB](t)}function Lz(e,t){if(e&&e[qB])return e[qB](t)}function Fz(e,t,r){var n;return r||(n=qN(function(e){r=e})),e&&uI(e)>0?wN(Lz(e[0],t),function(){Fz(OP(e,1),t,r)}):r(),n}var Vz="Microsoft_ApplicationInsights_BypassAjaxInstrumentation";function qz(e,t,r){return!e&&CE(e)?t:OE(e)?e:"true"===qE(e)[bB]()}function Hz(e){return{mrg:!0,v:e}}function Uz(e,t){return{set:e,v:t}}function Wz(e,t,r){return{fb:r,isVal:e,v:t}}function $z(e,t){return{fb:t,set:qz,v:!!e}}function Gz(e){return{isVal:IE,v:e||null}}function Yz(e){return{isVal:PE,v:qE(WN)}}var Kz,Jz,Xz=[eD,tD,rD,nD],Qz=null;function Zz(e,t){return function(){var r=arguments,n=eO(t);if(n){var o=n.listener;o&&o[e]&&o[e][_B](o,r)}}}function eO(e){var t,r=Qz;return r||!0===e.disableDbgExt||(r=Qz||((t=lP("Microsoft"))&&(Qz=t.ApplicationInsights),Qz)),r?r.ChromeDbgExt:null}var tO="warnToConsole",rO={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},nO=((Jz={})[0]=null,Jz[1]="errorToConsole",Jz[2]=tO,Jz[3]="debugToConsole",Jz);function oO(e){return e?'"'+e[nN](/\"/g,WN)+'"':WN}function iO(e,t){var r=typeof console!==iB?console:lP("console");if(r){var n="log";r[e]&&(n=e),IE(r[n])&&r[n](t)}}var aO=function(){function e(e,t,r,n){void 0===r&&(r=!1);var o=this;o[YB]=e,o[KB]=(r?"AI: ":"AI (Internal): ")+e;var i=WN;WD()&&(i=$D().stringify(n));var a=(t?" message:"+oO(t):WN)+(n?" props:"+oO(i):WN);o[KB]+=a}return e.dataType="MessageData",e}();function sO(e,t){return(e||{})[EB]||new uO(t)}var lO,cO,uO=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var r,n,o,i,a,s=0,l={};rB(e,this,function(e){function c(t,r){if(!(s>=o)){var i=!0,a="AITR_"+r[YB];if(l[a]?i=!1:l[a]=!0,i&&(t<=n&&(e.queue[CB](r),s++,u(1===t?"error":"warn",r)),s===o)){var c="Internal events throttle limit per PageView reached for this app.",d=new aO(23,c,!1);e.queue[CB](d),1===t?e.errorToConsole(c):e[xB](c)}}}function u(e,r){var n=eO(t||{});n&&n[JB]&&n[JB](e,r)}a=jz(Mz(t||{},rO,e).cfg,function(e){var t=e.cfg;r=t[WB],n=t.loggingLevelTelemetry,o=t.maxMessageLimit,i=t.enableDebug}),e.consoleLoggingLevel=function(){return r},e[kB]=function(t,n,o,a,s){void 0===s&&(s=!1);var d=new aO(n,o,s,a);if(i)throw HE(d);var f=nO[t]||tO;if(SE(d[KB]))u("throw"+(1===t?"Critical":"Warning"),d);else{if(s){var h=+d[YB];!l[h]&&r>=t&&(e[f](d[KB]),l[h]=!0)}else r>=t&&e[f](d[KB]);c(t,d)}},e.debugToConsole=function(e){iO("debug",e),u("warning",e)},e[xB]=function(e){iO("warn",e),u("warning",e)},e.errorToConsole=function(e){iO("error",e),u("error",e)},e.resetInternalMessageCount=function(){s=0,l={}},e.logInternalMessage=c,e[qB]=function(e){a&&a.rm(),a=null}})}return e.__ieDyn=1,e}();function dO(e){return e||new uO}function fO(e,t,r,n,o,i){void 0===i&&(i=!1),dO(e)[kB](t,r,n,o,i)}function hO(e,t){dO(e)[xB](t)}var pO,mO="toGMTString",gO="toUTCString",vO="cookie",yO="expires",bO="isCookieUseDisabled",wO="disableCookiesUsage",xO="_ckMgr",kO=null,SO=null,_O=null,CO={},TO={},EO=((lO={cookieCfg:Hz((cO={},cO[lD]={fb:"cookieDomain",dfVal:pD},cO.path={fb:"cookiePath",dfVal:pD},cO.enabled=UN,cO.ignoreCookies=UN,cO.blockedCookies=UN,cO)),cookieDomain:UN,cookiePath:UN})[wO]=UN,lO);function AO(){!pO&&(pO=$A(function(){return uP()}))}function PO(e){return!e||e.isEnabled()}function IO(e,t){return!!(t&&e&&NE(e.ignoreCookies))&&-1!==DP(e.ignoreCookies,t)}function BO(e,t){var r=t[FB];if(CE(r)){var n=void 0;SE(e[bO])||(n=!e[bO]),SE(e[wO])||(n=!e[wO]),r=n}return r}function NO(e,t){var r;return e&&(r=e.getCookieMgr()),r||(r=function(e,t){var r=DO[xO]||TO[xO];return r||(r=DO[xO]=DO(e,t),TO[xO]=r),r}(t,(e||{})[EB])),r}function DO(e,t){var r,n,o,i,a,s,l,c;e=Mz(e||TO,null,t).cfg,i=jz(e,function(t){t.setDf(t.cfg,EO),r=t.ref(t.cfg,"cookieCfg"),n=r[cD]||"/",o=r[lD],a=!1!==BO(e,r),s=r.getCookie||jO,l=r.setCookie||LO,c=r.delCookie||LO},t);var u={isEnabled:function(){var n=!1!==BO(e,r)&&a&&zO(t),o=TO[xO];return n&&o&&u!==o&&(n=PO(o)),n},setEnabled:function(e){a=!1!==e,r[FB]=e},set:function(e,t,i,a,s){var c=!1;if(PO(u)&&!function(e,t){return!!(t&&e&&NE(e.blockedCookies)&&-1!==DP(e.blockedCookies,t))||IO(e,t)}(r,e)){var d={},f=YP(t||WN),h=gI(f,";");if(-1!==h&&(f=YP(jA(t,h)),d=OO(OA(t,h+1))),bD(d,lD,a||o,jE,SE),!CE(i)){var p=YD();if(SE(d[yO])){var m=qA()+1e3*i;if(m>0){var g=new Date;g.setTime(m),bD(d,yO,RO(g,p?mO:gO)||RO(g,p?mO:gO)||WN,jE)}}p||bD(d,"max-age",WN+i,null,SE)}var v=UD();v&&"https:"===v.protocol&&(bD(d,"secure",null,null,SE),null===SO&&(SO=!function(e){if(!PE(e))return!1;if(gD(e,"CPU iPhone OS 12")||gD(e,"iPad; CPU OS 12"))return!0;if(gD(e,"Macintosh; Intel Mac OS X 10_14")&&gD(e,"Version/")&&gD(e,"Safari"))return!0;if(gD(e,"Macintosh; Intel Mac OS X 10_14")&&pI(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))return!0;if(gD(e,"Chrome/5")||gD(e,"Chrome/6"))return!0;if(gD(e,"UnrealEngine")&&!gD(e,"Chrome"))return!0;if(gD(e,"UCBrowser/12")||gD(e,"UCBrowser/11"))return!0;return!1}((pP()||{})[tN])),SO&&bD(d,"SameSite","None",null,SE)),bD(d,cD,s||n,null,SE),l(e,MO(f,d)),c=!0}return c},get:function(e){var t=WN;return PO(u)&&!IO(r,e)&&(t=s(e)),t},del:function(e,t){var r=!1;return PO(u)&&(r=u.purge(e,t)),r},purge:function(e,r){var n,o=!1;if(zO(t)){var i=((n={})[cD]=r||"/",n[yO]="Thu, 01 Jan 1970 00:00:01 GMT",n);YD()||(i["max-age"]="0"),c(e,MO(WN,i)),o=!0}return o},unload:function(e){i&&i.rm(),i=null}};return u[xO]=u,u}function zO(e){if(null===kO){kO=!1,!pO&&AO();try{var t=pO.v||{};kO=void 0!==t[vO]}catch(bze){fO(e,2,68,"Cannot access document.cookie - "+yD(bze),{exception:HE(bze)})}}return kO}function OO(e){var t={};e&&e[wB]&&ZE(YP(e)[rN](";"),function(e){if(e=YP(e||WN)){var r=gI(e,"=");-1===r?t[e]=null:t[YP(jA(e,r))]=YP(OA(e,r+1))}});return t}function RO(e,t){return IE(e[t])?e[t]():null}function MO(e,t){var r=e||WN;return QE(t,function(e,t){r+="; "+e+(CE(t)?WN:"="+t)}),r}function jO(e){var t=WN;if(!pO&&AO(),pO.v){var r=pO.v[vO]||WN;_O!==r&&(CO=OO(r),_O=r),t=YP(CO[e]||WN)}return t}function LO(e,t){!pO&&AO(),pO.v&&(pO.v[vO]=e+"="+t)}var FO={perfEvtsSendAll:!1};function VO(e){e.h=null;var t=e.cb;e.cb=[],ZE(t,function(e){yE(e.fn,[e.arg])})}function qO(e,t,r,n){ZE(e,function(e){e&&e[t]&&(r?(r.cb[CB]({fn:n,arg:e}),r.h=r.h||CI(VO,0,r)):yE(n,[e]))})}var HO=function(){function e(t){var r,n;this.listeners=[];var o=[],i={h:null,cb:[]},a=Mz(t,FO);n=a[SB](function(e){r=!!e.cfg.perfEvtsSendAll}),rB(e,this,function(e){dA(e,"listeners",{g:function(){return o}}),e[NB]=function(e){o[CB](e)},e[BB]=function(e){for(var t=DP(o,e);t>-1;)o[TB](t,1),t=DP(o,e)},e[eD]=function(e){qO(o,eD,i,function(t){t[eD](e)})},e[tD]=function(e,t){qO(o,tD,i,function(r){r[tD](e,t)})},e[rD]=function(e,t){qO(o,rD,t?i:null,function(r){r[rD](e,t)})},e[nD]=function(e){e&&(!r&&e[lN]()||qO(o,nD,null,function(t){e.isAsync?CI(function(){return t[nD](e)},0):t[nD](e)}))},e[oD]=function(e){e&&e[wB]&&qO(o,oD,i,function(t){t[oD](e)})},e[iD]=function(e){e&&e[cN]&&qO(o,iD,i,function(t){t[iD](e)})},e[aD]=function(e,t){if(e>0){var r=t||0;qO(o,aD,i,function(t){t[aD](e,r)})}},e[qB]=function(e){var t,r=function(){n&&n.rm(),n=null,o=[],i.h&&i.h[AB](),i.h=null,i.cb=[]};if(qO(o,"unload",null,function(r){var n=r[qB](e);n&&(t||(t=[]),t[CB](n))}),t)return qN(function(e){return wN(HN(t),function(){r(),e()})});r()}})}return e.__ieDyn=1,e}(),UO="ctx",WO="ParentContextKey",$O="ChildrenContextKey",GO=function(){function e(t,r,n){var o,i=this;(i.start=qA(),i[RB]=t,i.isAsync=n,i[lN]=function(){return!1},IE(r))&&dA(i,"payload",{g:function(){return!o&&IE(r)&&(o=r(),r=null),o}});i[uN]=function(t){return t?t===e[WO]||t===e[$O]?i[t]:(i[UO]||{})[t]:null},i[dN]=function(t,r){if(t)if(t===e[WO])i[t]||(i[lN]=function(){return!0}),i[t]=r;else if(t===e[$O])i[t]=r;else{(i[UO]=i[UO]||{})[t]=r}},i.complete=function(){var t=0,r=i[uN](e[$O]);if(NE(r))for(var n=0;n<r[wB];n++){var o=r[n];o&&(t+=o.time)}i.time=qA()-i.start,i.exTime=i.time-t,i.complete=function(){}}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),YO=function(){function e(t){this.ctx={},rB(e,this,function(e){e.create=function(e,t,r){return new GO(e,t,r)},e.fire=function(e){e&&(e.complete(),t&&IE(t[nD])&&t[nD](e))},e[dN]=function(t,r){t&&((e[UO]=e[UO]||{})[t]=r)},e[uN]=function(t){return(e[UO]||{})[t]}})}return e.__ieDyn=1,e}(),KO="CoreUtils.doPerf";function JO(e,t,r,n,o){if(e){var i=e;if(i[sD]&&(i=i[sD]()),i){var a=void 0,s=i[uN](KO);try{if(a=i.create(t(),n,o)){if(s&&a[dN]&&(a[dN](GO[WO],s),s[uN]&&s[dN])){var l=s[uN](GO[$O]);l||(l=[],s[dN](GO[$O],l)),l[CB](a)}return i[dN](KO,a),r(a)}}catch(c){a&&a[dN]&&a[dN]("exception",c)}finally{a&&i.fire(a),i[dN](KO,s)}}}return r()}function XO(){var e=QO();return OA(e,0,8)+"-"+OA(e,8,12)+"-"+OA(e,12,16)+"-"+OA(e,16,20)+"-"+OA(e,20)}function QO(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r=WN,n=0;n<4;n++)r+=t[15&(e=cz())]+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&cz())|0];return RA(r,0,8)+RA(r,9,4)+"4"+RA(r,13,3)+o+RA(r,16,3)+RA(r,19,12)}var ZO="00",eR="00000000000000000000000000000000",tR="0000000000000000";function rR(e,t,r){return!(!e||e[wB]!==t||e===r)&&!!e.match(/^[\da-f]*$/i)}function nR(e,t,r){return rR(e,t)?e:r}function oR(e,t,r,n){return{version:rR(n,2,"ff")?n:ZO,traceId:iR(e)?e:QO(),spanId:aR(t)?t:jA(QO(),16),traceFlags:r>=0&&r<=255?r:1}}function iR(e){return rR(e,32,eR)}function aR(e){return rR(e,16,tR)}function sR(e){if(e){var t=function(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[wB]<2;)t="0"+t;return t}(e[gN]);rR(t,2)||(t="01");var r=e[UB]||ZO;return"00"!==r&&"ff"!==r&&(r=ZO),"".concat(r.toLowerCase(),"-").concat(nR(e.traceId,32,eR).toLowerCase(),"-").concat(nR(e.spanId,16,tR).toLowerCase(),"-").concat(t.toLowerCase())}return""}var lR=gz("plugin");function cR(e){return lR.get(e,"state",{},!0)}function uR(e,t){for(var r,n=[],o=null,i=e[ZB]();i;){var a=i[OB]();if(a){o&&o[eN]&&a[QN]&&o[eN](a);var s=!!(r=cR(a))[DB];a[DB]&&(s=a[DB]()),s||n[CB](a),o=a,i=i[ZB]()}}ZE(n,function(n){var o=e[GN]();n[PB](e.getCfg(),o,t,e[ZB]()),r=cR(n),n[GN]||r[GN]||(r[GN]=o),r[DB]=!0,delete r[GB]})}function dR(e){return e.sort(function(e,t){var r=0;if(t){var n=t[QN];e[QN]?r=n?e[ZN]-t[ZN]:1:n&&(r=-1)}else r=e?1:-1;return r})}var fR,hR="TelemetryPluginChain",pR="_hasRun",mR="_getTelCtx",gR=0;function vR(e,t,r,n){var o=null,i=[];t||(t=Mz({},null,r[EB])),null!==n&&(o=n?function(e,t,r){for(;e;){if(e[OB]()===r)return e;e=e[ZB]()}return xR([r],t.config||{},t)}(e,r,n):e);var a={_next:function(){var e=o;if(o=e?e[ZB]():null,!e){var t=i;t&&t[wB]>0&&(ZE(t,function(e){try{e.func.call(e.self,e.args)}catch(bze){fO(r[EB],2,73,"Unexpected Exception during onComplete - "+HE(bze))}}),i=[])}return e},ctx:{core:function(){return r},diagLog:function(){return sO(r,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:function(e,r){var n=s(e,!0);r&&QE(r,function(e,r){if(CE(n[e])){var o=t.cfg[e];!o&&CE(o)||(n[e]=o)}wz(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]&&CE(i[r])?!a[r]&&CE(a[r])||(o=a[r]):o=i[r];return o||!CE(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[OB]();r&&e(r)}},onComplete:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e&&i[CB]({func:e,self:SE(t)?a.ctx:t,args:r})}}};function s(e,r){var n=null,o=t.cfg;if(o&&e){var i=o[JN];!i&&r&&(i={}),o[JN]=i,(i=t.ref(o,JN))&&(!(n=i[e])&&r&&(n={}),i[e]=n,n=t.ref(i,e))}return n}return a}function yR(e,t,r,n){var o=Mz(t),i=vR(e,o,r,n),a=i.ctx;return a[MB]=function(e){var t=i._next();return t&&t[QN](e,a),!t},a[$B]=function(e,t){return void 0===e&&(e=null),NE(e)&&(e=xR(e,o.cfg,r,t)),yR(e||a[ZB](),o.cfg,r,t)},a}function bR(e,t,r){var n=Mz(t.config),o=vR(e,n,t,r),i=o.ctx;return i[MB]=function(e){var t=o._next();return t&&t[qB](i,e),!t},i[$B]=function(e,r){return void 0===e&&(e=null),NE(e)&&(e=xR(e,n.cfg,t,r)),bR(e||i[ZB](),t,r)},i}function wR(e,t,r){var n=Mz(t.config),o=vR(e,n,t,r).ctx;return o[MB]=function(e){return o.iterate(function(t){IE(t[QB])&&t[QB](o,e)})},o[$B]=function(e,r){return void 0===e&&(e=null),NE(e)&&(e=xR(e,n.cfg,t,r)),wR(e||o[ZB](),t,r)},o}function xR(e,t,r,n){var o=null,i=!n;if(NE(e)&&e[wB]>0){var a=null;ZE(e,function(e){if(i||n!==e||(i=!0),i&&e&&IE(e[QN])){var s=function(e,t,r){var n,o=null,i=IE(e[QN]),a=IE(e[eN]);n=e?e[IB]+"-"+e[ZN]+"-"+gR++:"Unknown-0-"+gR++;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&&IE(e[mR])&&(n=e[mR]()),n||(n=yR(s,t,r)),n}function c(t,r,i,a,s){var l=!1,c=e?e[IB]:hR,u=t[pR];return u||(u=t[pR]={}),t.setNext(o),e&&JO(t[GN](),function(){return c+":"+i},function(){u[n]=!0;try{var e=o?o._id:WN;e&&(u[e]=!1),l=r(t)}catch(s){var a=!o||u[o._id];a&&(l=!0),o&&a||fO(t[JB](),1,73,"Plugin ["+c+"] failed during "+i+" - "+HE(s)+", run flags: "+HE(u))}},a,s),l}function u(t,r){function n(r){if(!e||!i)return!1;var n=cR(e);return!n[GB]&&!n[KN]&&(a&&e[eN](o),e[QN](t,r),!0)}c(r=r||l(),n,"processTelemetry",function(){return{item:t}},!t.sync)||r[MB](t)}function d(t,r){function n(){var n=!1;if(e){var o=cR(e),i=e[GN]||o[GN];!e||i&&i!==t.core()||o[GB]||(o[GN]=null,o[GB]=!0,o[DB]=!1,e[GB]&&!0===e[GB](t,r)&&(n=!0))}return n}c(t,n,"unload",function(){},r.isAsync)||t[MB](r)}function f(t,r){function n(){var n=!1;if(e){var o=cR(e),i=e[GN]||o[GN];!e||i&&i!==t.core()||o[GB]||e[QB]&&!0===e[QB](t,r)&&(n=!0)}return n}c(t,n,"update",function(){},!1)||t[MB](r)}return SA(s)}(e,t,r);o||(o=s),a&&a._setNext(s),a=s}})}return n&&!o?xR([n],t,r):o}function kR(){var e=[];return{add:function(t){t&&e[CB](t)},run:function(t,r){ZE(e,function(e){try{e(t,r)}catch(bze){fO(t[JB](),2,73,"Unexpected error calling unload handler - "+HE(bze))}}),e=[]}}}function SR(){var e=[];return{run:function(t){var r=e;e=[],ZE(r,function(e){try{(e.rm||e.remove).call(e)}catch(bze){fO(t,2,73,"Unloading:"+HE(bze))}})},add:function(t){t&&NP(e,t)}}}var _R="getPlugin",CR=((fR={})[JN]={isVal:pD,v:{}},fR),TR=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||yR(null,{},a[GN]);t=n&&n[_R]?o[$B](null,n[_R]):o[$B](null,n)}return t}function l(e,t,o){Mz(e,CR,sO(t)),!o&&t&&(o=t[jB]()[ZB]());var i=n;n&&n[_R]&&(i=n[_R]()),a[GN]=t,r=yR(o,e,t,i)}function c(){t=!1,a[GN]=null,r=null,n=null,i=SR(),o=kR()}c(),rB(e,a,function(e){e[PB]=function(e,r,n,o){l(e,r,o),t=!0},e[GB]=function(t,r){var a=e[GN];if(a&&(!t||a===t[GN]())){var s,l=!1,u=t||bR(null,a,n&&n[_R]?n[_R]():n),d=r||{reason:0,isAsync:!1};return e[XB]&&!0===e[XB](u,d,f)?s=!0:f(),s}function f(){l||(l=!0,o.run(u,r),i.run(u[JB]()),!0===s&&u[MB](d),c())}},e[QB]=function(t,r){var o=e[GN];if(o&&(!t||o===t[GN]())){var i,a=!1,s=t||wR(null,o,n&&n[_R]?n[_R]():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[ZB]()))}},SD(e,"_addUnloadCb",function(){return o},"add"),SD(e,"_addHook",function(){return i},"add"),dA(e,"_unloadHooks",{g:function(){return i}})}),a[JB]=function(e){return s(e)[JB]()},a[DB]=function(){return t},a.setInitialized=function(e){t=e},a[eN]=function(e){n=e},a[MB]=function(e,t){t?t[MB](e):n&&IE(n[QN])&&n[QN](e,null)},a._getTelCtx=s}return e.__ieDyn=1,e}();var ER,AR=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(),rB(t,o,function(e,t){e.addTelemetryInitializer=function(e){return function(e,t,r){var n={id:t,fn:r};return NP(e,n),{remove:function(){ZE(e,function(t,r){if(t.id===n.id)return e[TB](r,1),-1})}}}(n,r++,e)},e[QN]=function(t,r){(function(e,t,r){for(var n=!1,o=e[wB],i=0;i<o;++i){var a=e[i];if(a)try{if(!1===a.fn[_B](null,[t])){n=!0;break}}catch(bze){fO(r,2,64,"Telemetry initializer failed: "+yD(bze),{exception:HE(bze)},!0)}}return!n})(n,t,r?r[JB]():e[JB]())&&e[MB](t,r)},e[XB]=function(){i()}}),o}return fB(t,e),t.__ieDyn=1,t}(TR),PR="Plugins must provide initialize method",IR="SDK is still unloading...",BR=kA(((ER={cookieCfg:{}})[XN]={rdOnly:!0,ref:!0,v:[]},ER[$N]={rdOnly:!0,ref:!0,v:[]},ER[JN]={ref:!0,v:{}},ER[YN]=UN,ER.loggingLevelConsole=0,ER.diagnosticLogInterval=UN,ER));function NR(e,t){return new YO(t)}function DR(e,t){var r=!1;return ZE(t,function(t){if(t===e)return r=!0,-1}),r}function zR(e,t,r,n){r&&QE(r,function(r,o){n&&XP(o)&&XP(t[r])&&zR(e,t[r],o,n),n&&XP(o)&&XP(t[r])?zR(e,t[r],o,n):e.set(t,r,o)})}function OR(e,t){var r=null,n=-1;return ZE(e,function(e,o){if(e.w===t)return r=e,n=o,-1}),{i:n,l:r}}function RR(e,t,r,n){return t.add(e[SB](function(e){var t=e.cfg.disableDbgExt;!0===t&&n&&(r[BB](n),n=null),r&&!n&&!0!==t&&(n=function(e){if(!Kz){Kz={};for(var t=0;t<Xz[wB];t++)Kz[Xz[t]]=Zz(Xz[t],e)}return Kz}(e.cfg),r[NB](n))})),n}var MR=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,k,S,_,C,T,E,A,P,I,B,N,D;rB(e,this,function(e){function z(){P=!0,CE(x)?(T=yB.INACTIVE,fO(n,1,112,"ikey can't be resolved from promises")):T=yB.ACTIVE,O()}function O(){r&&(e.releaseQueue(),e.pollInternalLogs())}function R(e){B&&B[FB]||D||(e||n&&n.queue[wB]>0)&&(N||(N=!0,K(t[SB](function(e){var t=e.cfg.diagnosticLogInterval;t&&t>0||(t=1e4);var r=!1;B&&(r=B[FB],B[AB]()),B=function(e,t){return _I(!1,YT,mE[iE](arguments))}(U,t),B.unref(),B[FB]=r}))),B[FB]=!0);return B}function M(){var e={};_=[];var t=function(t){t&&ZE(t,function(t){if(t[IB]&&t[UB]&&!e[t.identifier]){var r=t[IB]+"="+t[UB];_[CB](r),e[t.identifier]=t}})};t(f),d&&ZE(d,function(e){t(e)}),t(u)}function j(){r=!1,(t=Mz({},BR,e[EB])).cfg[WB]=1,dA(e,"config",{g:function(){return t.cfg},s:function(t){e.updateCfg(t,!1)}}),dA(e,"pluginVersionStringArr",{g:function(){return _||M(),_}}),dA(e,"pluginVersionString",{g:function(){return C||(_||M(),C=_.join(";")),C||WN}}),dA(e,"logger",{g:function(){return n||(n=new uO(t.cfg),t[EB]=n),n},s:function(e){t[EB]=e,n!==e&&(Lz(n,!1),n=e)}}),e[EB]=new uO(t.cfg),S=[];var b=e.config[XN]||[];b.splice(0,b[wB]),NP(b,S),p=new AR,o=[],Lz(i,!1),i=null,a=null,s=null,Lz(l,!1),l=null,c=null,u=[],d=null,f=null,h=!1,m=null,g=mz("AIBaseCore",!0),v=kR(),w=null,x=null,y=SR(),k=[],C=null,_=null,D=!1,B=null,N=!1,T=0,E=null,A=null,P=!1,I=null}function L(){var r=yR(q(),t.cfg,e);return r[HB](R),r}function F(t){var r=function(e,t,r){var n=[],o=[],i={};return ZE(r,function(r){(CE(r)||CE(r[PB]))&&UE(PR);var a=r[ZN],s=r[IB];r&&a&&(CE(i[a])?i[a]=s:hO(e,"Two extensions have same priority #"+a+" - "+i[a]+", "+s)),!a||a<t?n[CB](r):o[CB](r)}),{core:n,channels:o}}(e[EB],500,u);c=null,C=null,_=null,f=dR(NP(f=(d||[])[0]||[],r[$N]));var n=NP(dR(r[GN]),f);S=SA(n);var o=e.config[XN]||[];o.splice(0,o[wB]),NP(o,S);var i=L();f&&f[wB]>0&&uR(i[$B](f),n),uR(i,n),t&&$(t)}function V(e){var t=null,r=null,n=[];return ZE(S,function(t){if(t[IB]===e&&t!==p)return r=t,-1;t.getChannel&&n[CB](t)}),!r&&n[wB]>0&&ZE(n,function(t){if(!(r=t.getChannel(e)))return-1}),r&&(t={plugin:r,setEnabled:function(e){cR(r)[KN]=!e},isEnabled:function(){var e=cR(r);return!e[GB]&&!e[KN]},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=(S||[]).slice();-1===DP(r,p)&&r[CB](p),c=xR(dR(r),t.cfg,e)}return c}function H(r,n,o){if(r&&r[wB]>0){var i=bR(xR(r,t.cfg,e),e);i[HB](function(){var e=!1,t=[];ZE(u,function(n,o){DR(n,r)?e=!0:t[CB](n)}),u=t,C=null,_=null;var n=[];d&&(ZE(d,function(t,o){var i=[];ZE(t,function(t){DR(t,r)?e=!0:i[CB](t)}),n[CB](i)}),d=n),o&&o(e),R()}),i[MB](n)}else o(!1)}function U(){if(n&&n.queue){var t=n.queue.slice(0);n.queue[wB]=0,ZE(t,function(t){var r={name:m||"InternalMessageId: "+t[YB],iKey:x,time:vD(new Date),baseType:aO.dataType,baseData:{message:t[KB]}};e.track(r)})}}function W(e,t,r,n){var o=1,i=!1,a=null;function s(){o--,i&&0===o&&(a&&a[AB](),a=null,t&&t(i),t=null)}(n=n||5e3,f&&f[wB]>0)&&L()[$B](f).iterate(function(t){if(t.flush){o++;var i=!1;t.flush(e,function(){i=!0,s()},r)||i||(e&&null==a?a=CI(function(){a=null,s()},n):s())}});return i=!0,s(),!0}function $(t){var r=wR(q(),e);r[HB](R),e._updateHook&&!0===e._updateHook(r,t)||r[MB](t)}function G(t){var r=e[EB];r?(fO(r,2,73,t),R()):UE(t)}function Y(t){var r=e[zB]();r&&r[tD]([t],2)}function K(e){y.add(e)}j(),e._getDbgPlgTargets=function(){return[S,o]},e[DB]=function(){return r},e.activeStatus=function(){return T},e._setPendingStatus=function(){T=3},e[PB]=function(o,l,c,p){var m;h&&UE(IR),e[DB]()&&UE("Core cannot be initialized more than once"),o=(t=Mz(o,BR,c||e[EB],!1)).cfg,K(t[SB](function(e){var t=e.cfg;A=t.initInMemoMaxSize||100,function(e){var t=e.instrumentationKey,o=e.endpointUrl;if(3!==T){if(CE(t)){x=null,T=yB.INACTIVE;var i="Please provide instrumentation key";return void(r?(fO(n,1,100,i),O()):UE(i))}var a=[];ME(t)?(a[CB](t),x=null):x=t,ME(o)?(a[CB](o),E=null):E=o,a[wB]?function(e,t){P=!1,T=3;var r=pD(e.initTimeOut)?e.initTimeOut:5e4,n=(o=t,!AN&&(AN=MN(VN)),AN.v(o,i));var o,i;I&&I[AB]();I=CI(function(){I=null,P||z()},r),wN(n,function(t){try{if(P)return;if(!t.rejected){var r=t[LB];if(r&&r[wB]){var n=r[0];if(x=n&&n[LB],r[wB]>1){var o=r[1];E=o&&o[LB]}}x&&(e.instrumentationKey=x,e.endpointUrl=E)}z()}catch(bze){P||z()}})}(e,a):z()}}(t);var o=e.ref(e.cfg,JN);QE(o,function(t){e.ref(o,t)})})),b=RR(t,y,(i=p)&&e[zB](),b),K(t[SB](function(t){if(t.cfg.enablePerfMgr){var r=t.cfg[YN];m===r&&m||(r||(r=NR),wD(t.cfg,YN,r),m=r,s=null),a||s||!IE(r)||(s=r(e,e[zB]()))}else s=null,m=null})),e[EB]=c;var g=o[XN];if((u=[])[CB].apply(u,hB(hB([],l),g)),d=o[$N],F(null),f&&0!==f[wB]||UE("No "+$N+" available"),d&&d[wB]>1){var v=e[OB]("TeeChannelController");v&&v.plugin||fO(n,1,28,"TeeChannel required")}!function(e,t,r){ZE(t,function(t){var n=jz(e,t.w,r);delete t.w,t.rm=function(){n.rm()}})}(o,k,n),k=null,r=!0,T===yB.ACTIVE&&O()},e.getChannels=function(){var e=[];return f&&ZE(f,function(t){e[CB](t)}),SA(e)},e.track=function(t){JO(e[sD](),function(){return"AppInsightsCore:track"},function(){null===t&&(Y(t),UE("Invalid telemetry item")),!t[RB]&&CE(t[RB])&&(Y(t),UE("telemetry name required")),t.iKey=t.iKey||x,t.time=t.time||vD(new Date),t.ver=t.ver||"4.0",!h&&e[DB]()&&T===yB.ACTIVE?L()[MB](t):T!==yB.INACTIVE&&o[wB]<=A&&o[CB](t)},function(){return{item:t}},!t.sync)},e[jB]=L,e[zB]=function(){return i||(i=new HO(t.cfg),e._notificationManager=i),i},e[NB]=function(t){e.getNotifyMgr()[NB](t)},e[BB]=function(e){i&&i[BB](e)},e.getCookieMgr=function(){return l||(l=DO(t.cfg,e[EB])),l},e.setCookieMgr=function(e){l!==e&&(Lz(l,!1),l=e)},e[sD]=function(){return a||s||null},e.setPerfMgr=function(e){a=e},e.eventCnt=function(){return o[wB]},e.releaseQueue=function(){if(r&&o[wB]>0){var e=o;o=[],2===T?ZE(e,function(e){e.iKey=e.iKey||x,L()[MB](e)}):fO(n,2,20,"core init status is not active")}},e.pollInternalLogs=function(e){return m=e||null,D=!1,B&&B[AB](),R(!0)},e[VB]=function(){D=!0,B&&B[AB](),U()},_D(e,function(){return p},["addTelemetryInitializer"]),e[qB]=function(t,o,a){void 0===t&&(t=!0),r||UE("SDK is not initialized"),h&&UE(IR);var s,c={reason:50,isAsync:t,flushComplete:!1};t&&!o&&(s=qN(function(e){o=e}));var u=bR(q(),e);return u[HB](function(){y.run(e[EB]),Fz([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[VB](),u[MB](c)},6,a),s},e[OB]=V,e.addPlugin=function(e,t,r,n){if(!e)return n&&n(!1),void G(PR);var o=V(e[IB]);if(o&&!t)return n&&n(!1),void G("Plugin ["+e[IB]+"] is already loaded!");var i={reason:16};function a(t){u[CB](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[DB]()){o={reason:1,cfg:t.cfg,oldCfg:aI({},t.cfg),newConfig:aI({},r),merge:n},r=o.newConfig;var i=t.cfg;r[XN]=i[XN],r[$N]=i[$N]}t._block(function(e){var t=e.cfg;zR(e,t,r,n),n||QE(t,function(n){JE(r,n)||e.set(t,n,UN)}),e.setDf(t,BR)},!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[RB]},setName:function(e){t[RB]=e},getTraceId:function(){return t.traceId},setTraceId:function(e){iR(e)&&(t.traceId=e)},getSpanId:function(){return t.spanId},setSpanId:function(e){aR(e)&&(t.spanId=e)},getTraceFlags:function(){return t[gN]},setTraceFlags:function(e){t[gN]=e}}),w},e.setTraceCtx=function(e){w=e||null},e.addUnloadHook=K,SD(e,"addUnloadCb",function(){return v},"add"),e.onCfgChange=function(n){var o,i,a,s;return r?o=jz(t.cfg,n,e[EB]):((s=OR(i=k,a=n).l)||(s={w:a,rm:function(){var e=OR(i,a);-1!==e.i&&i[TB](e.i,1)}},i[CB](s)),o=s),function(e){return dA({rm:function(){e.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(e)+">"}})}(o)},e.getWParam=function(){return cP()||t.cfg.enableWParam?0:-1}})}return e.__ieDyn=1,e}();function jR(e,t){try{if(e&&""!==e){var r=$D().parse(e);if(r&&r[fN]&&r[fN]>=r.itemsAccepted&&r.itemsReceived-r.itemsAccepted===r.errors[wB])return r}}catch(bze){fO(t,1,43,"Cannot parse the response. "+(bze[RB]||HE(bze)),{response:e})}return null}var LR="",FR="&NoResponseBody=true",VR="POST",qR=function(){function e(){var t,r,n,o,i,a,s,l,c,u,d,f,h,p,m=0;rB(e,this,function(e,g){var v=!0;function y(e,t){fO(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(bze){}}function x(e,t){var r=pP(),n=e[pN];if(!n)return b(t),!0;n=e[pN]+(h?FR:LR);var i=e[cN],a=o?i:new Blob([i],{type:"text/plain;charset=UTF-8"});return r.sendBeacon(n,a)}function k(e,t,r){var a=e[cN];try{if(a)if(x(e,t))w(t,200,{},LR);else{var s=i&&i.beaconOnRetry;s&&IE(s)?s(e,t,x):(l&&l.sendPOST(e,t,!0),fO(n,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(bze){o&&hO(n,"Failed to send telemetry using sendBeacon API. Ex:"+HE(bze)),w(t,o?0:400,{},LR)}}function S(e,r,n){var a,s,l,c=e[hN]||{};!n&&t&&(a=qN(function(e,t){s=e,l=t})),o&&n&&e.disableXhrSync&&(n=!1);var u=e[pN];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(bze){}}void 0===o&&(o=!1);var s=new XMLHttpRequest;return a(s,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",n),r&&a(s,ND,r),s.open(e,t,!o),r&&a(s,ND,r),!o&&i&&a(s,"timeout",i),s}(VR,u,v,!0,n,e[mN]);function f(t){var n=i&&i.xhrOnComplete;if(n&&IE(n))n(t,r,e);else{var a=AD(t);w(r,t[aN],zD(t,o),a)}}return o||d.setRequestHeader("Content-type","application/json"),ZE(wA(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[aN]:400,zD(d,o),o?LR:ID(d)),l&&l(e)},d.ontimeout=function(){w(r,o?d[aN]:500,zD(d,o),o?LR:ID(d)),s&&s(!1)},d.send(e[cN]),a}function _(e,r,n){var a,l,c,u,d=e[pN],f=e[cN],g=o?f:new Blob([f],{type:"application/json"}),y=new Headers,x=f[wB],k=!1,S=!1,_=e[hN]||{},C=((a={method:VR,body:g})[Vz]=!0,a);e.headers&&wA(e.headers)[wB]>0&&(ZE(wA(_),function(e){y.append(e,_[e])}),C[hN]=y),s?C.credentials=s:v&&o&&(C.credentials="include"),n&&(C.keepalive=!0,m+=x,o?2===e._sendReason&&(k=!0,h&&(d+=FR)):k=!0);var T=new Request(d,C);try{T[Vz]=!0}catch(bze){}if(!n&&t&&(l=qN(function(e,t){c=e,u=t})),!d)return b(r),void(c&&c(!1));function E(e,t){w(r,t?o?0:t:o?0:400,{},o?LR:e)}function A(e,t,n){var o=e[aN],a=i.fetchOnComplete;a&&IE(a)?a(e,r,n||LR,t):w(r,o,{},n||LR)}try{wN(fetch(o?d:T,o?C:null),function(t){if(n&&(m-=x,x=0),!S)if(S=!0,t.rejected)E(t.reason&&t.reason[KB],499),u&&u(t.reason);else{var r=t[LB];try{o||r.ok?o&&!r.body?(A(r,null,LR),c&&c(!0)):wN(r.text(),function(t){A(r,e,t[LB]),c&&c(!0)}):(r[aN]?E(r.statusText,r[aN]):E(r.statusText,499),c&&c(!1))}catch(bze){r&&r[aN]?E(HE(bze),r[aN]):E(HE(bze),499),u&&u(bze)}}})}catch(bze){S||(E(HE(bze),499),u&&u(bze))}return k&&!S&&(S=!0,w(r,200,{}),c&&c(!0)),o&&!S&&e[mN]>0&&p&&p.set(function(){S||(S=!0,w(r,500,{}),c&&c(!0))},e[mN]),l}function C(e,t,r){var a=fP(),s=new XDomainRequest,l=e[cN];s.onload=function(){var r=AD(s),n=i&&i.xdrOnComplete;n&&IE(n)?n(s,t,e):w(t,200,{},r)},s.onerror=function(){w(t,400,{},o?LR:PD(s))},s.ontimeout=function(){w(t,500,{})},s.onprogress=function(){};var c=a&&a.location&&a.location.protocol||"",u=e[pN];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 fO(n,2,40,". "+d),void y(d,t)}var f=o?u:u[nN](/^(https?:)/,"");s.open(VR,f),e[mN]&&(s[mN]=e[mN]),s.send(l),o&&r?p&&p.set(function(){s.send(l)},0):s.send(l)}else b(t)}function T(){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}T(),e[PB]=function(t,o){n=o,r&&fO(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:S},o||(v=!1),a){var r=UD();r&&r.protocol&&"file:"===r.protocol[bB]()&&(v=!1)}return!0}catch(bze){}return!1},e.getSyncFetchPayload=function(){return m},e.getSenderInst=function(e,t){return e&&e[wB]?function(e,t){var r=0,n=null,o=0;for(;null==n&&o<e[wB];)r=e[o],c||1!==r?2!==r||!XD(t)||t&&f?3!==r||!JD()||(t?d:u)||(n=k):n=_:QD()?n=C:ZD()&&(n=S),o++;if(n)return{_transport:r,_isSync:t,sendPOST:n};return null}(e,t):null},e.getFallbackInst=function(){return l},e[XB]=function(e,t){T()},e.preparePayload=function(e,t,r,n){if(t&&!n&&r[cN])try{var o=lP("CompressionStream");if(!IE(o))return void e(r);var i=new ReadableStream({start:function(e){e.enqueue(PE(r[cN])?(new TextEncoder).encode(r[cN]):r[cN]),e.close()}}).pipeThrough(new o("gzip")).getReader(),a=[],s=0,l=!1;return wN(i.read(),function t(n){if(!l&&!n.rejected){var o=n[LB];if(!o.done)return a[CB](o[LB]),s+=o.value[wB],wN(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[wB]}r[cN]=c,r[hN]["Content-Encoding"]="gzip",r._chunkCount=a[wB]}l||(l=!0,e(r))}),i}catch(c){return void e(r)}else e(r)}})}return e.__ieDyn=1,e}(),HR="attachEvent",UR="addEventListener",WR="detachEvent",$R="removeEventListener",GR="events",YR="visibilitychange",KR="pagehide",JR="pageshow",XR="unload",QR="beforeunload",ZR=mz("aiEvtPageHide"),eM=mz("aiEvtPageShow"),tM=/\.[\.]+/g,rM=/[\.]+$/,nM=1,oM=gz("events"),iM=/^([^.]*)(?:\.(.+)|)/;function aM(e){return e&&e[nN]?e[nN](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,WN):e}function sM(e,t){if(t){var r=WN;NE(t)?(r=WN,ZE(t,function(e){(e=aM(e))&&("."!==e[0]&&(e="."+e),r+=e)})):r=aM(t),r&&("."!==r[0]&&(r="."+r),e=(e||WN)+r)}var n=iM.exec(e||WN)||[];return{type:n[1],ns:(n[2]||WN).replace(tM,".").replace(rM,WN)[rN](".").sort().join(".")}}function lM(e,t,r){void 0===r&&(r=!0);var n=oM.get(e,GR,{},r),o=n[t];return o||(o=n[t]=[]),o}function cM(e,t,r,n){e&&t&&t[oN]&&(e[$R]?e[$R](t[oN],r,n):e[WR]&&e[WR]("on"+t[oN],r))}function uM(e,t,r,n){for(var o=t[wB];o--;){var i=t[o];i&&(r.ns&&r.ns!==i[iN].ns||n&&!n(i)||(cM(e,i[iN],i.handler,i.capture),t[TB](o,1)))}}function dM(e,t){return t?sM("xx",NE(t)?[e].concat(t):[e,t]).ns[rN]("."):e}function fM(e,t,r,n,o){void 0===o&&(o=!1);var i=!1;if(e)try{var a=sM(t,n);if(i=function(e,t,r,n){var o=!1;return e&&t&&t[oN]&&r&&(e[UR]?(e[UR](t[oN],r,n),o=!0):e[HR]&&(e[HR]("on"+t[oN],r),o=!0)),o}(e,a,r,o),i&&oM.accept(e)){var s={guid:nM++,evtName:a,handler:r,capture:o};lM(e,a.type)[CB](s)}}catch(bze){}return i}function hM(e,t,r,n,o){if(void 0===o&&(o=!1),e)try{var i=sM(t,n),a=!1;!function(e,t,r){if(t[oN])uM(e,lM(e,t[oN]),t,r);else{var n=oM.get(e,GR,{});QE(n,function(n,o){uM(e,o,t,r)}),0===wA(n)[wB]&&oM.kill(e,GR)}}(e,i,function(e){return!((!i.ns||r)&&e.handler!==r)&&(a=!0,!0)}),a||cM(e,i,r,o)}catch(bze){}}function pM(e,t,r,n){var o=!1;return t&&e&&e[wB]>0&&ZE(e,function(e){e&&(r&&-1!==DP(r,e)||(o=function(e,t,r){var n=!1,o=fP();o&&(n=fM(o,e,t,r),n=fM(o.body,e,t,r)||n);var i=uP();return i&&(n=fM(i,e,t,r)||n),n}(e,t,n)||o))}),o}function mM(e,t,r){e&&NE(e)&&ZE(e,function(e){e&&function(e,t,r){var n=fP();n&&(hM(n,e,t,r),hM(n.body,e,t,r));var o=uP();o&&hM(o,e,t,r)}(e,t,r)})}function gM(e,t,r){return function(e,t,r,n){var o=!1;return t&&e&&NE(e)&&!(o=pM(e,t,r,n))&&r&&r[wB]>0&&(o=pM(e,t,null,n)),o}([QR,XR,KR],e,t,r)}function vM(e,t){mM([QR,XR,KR],e,t)}function yM(e,t,r){var n=dM(ZR,r),o=pM([KR],e,t,n);return t&&-1!==DP(t,YR)||(o=pM([YR],function(t){var r=uP();e&&r&&"hidden"===r.visibilityState&&e(t)},t,n)||o),!o&&t&&(o=yM(e,null,r)),o}function bM(e,t){var r=dM(ZR,t);mM([KR],e,r),mM([YR],null,r)}function wM(e,t,r){var n=dM(eM,r),o=pM([JR],e,t,n);return!(o=pM([YR],function(t){var r=uP();e&&r&&"visible"===r.visibilityState&&e(t)},t,n)||o)&&t&&(o=wM(e,null,r)),o}var xM="_aiHooks",kM=["req","rsp","hkErr","fnErr"];function SM(e,t){if(e)for(var r=0;r<e[wB]&&!t(e[r],r);r++);}function _M(e,t,r,n,o){o>=0&&o<=2&&SM(e,function(e,i){var a=e.cbks,s=a[kM[o]];if(s){t.ctx=function(){return n[i]=n[i]||{}};try{s[_B](t.inst,r)}catch(u){var l=t.err;try{var c=a[kM[2]];c&&(t.err=u,c[_B](t.inst,r))}catch(bze){}finally{t.err=l}}}})}function CM(e,t,r,n){var o=null;return e&&(YE(e,t)?o=e:r&&(o=CM(hD(e),t,n,!1))),o}function TM(e,t,r,n){var o=r&&r[xM];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 SM(t,function(t){e[CB](t)}),e}n.evt=lP("event"),_M(r,n,i,o,0);var s=e.f;if(s)try{n.rslt=s[_B](this,t)}catch(l){throw n.err=l,_M(r,n,i,o,3),l}return _M(r,n,i,o,1),n.rslt}}(o={i:0,n:t,f:r,h:[]});i[xM]=o,e[t]=i}var a={id:o.i,cbks:n,rm:function(){var e=this.id;SM(o.h,function(t,r){if(t.id===e)return o.h[TB](r,1),1})}};return o.i++,o.h[CB](a),a}function EM(e,t,r,n,o){if(void 0===n&&(n=!0),e&&t&&r){var i=CM(e,t,n,o);if(i){var a=i[t];if(typeof a===nB)return TM(i,t,a,r)}}return null}function AM(e,t,r,n,o){if(e&&t&&r){var i=CM(e,t,n,o)||e;if(i)return TM(i,t,i[t],r)}return null}var PM="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",IM="sampleRate",BM="ProcessLegacy",NM="http.method",DM="https://dc.services.visualstudio.com",zM="/v2/track",OM="not_specified",RM="iKey",MM=gB({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"]}),jM="split",LM="length",FM="toLowerCase",VM="ingestionendpoint",qM="toString",HM="removeItem",UM="message",WM="count",$M="preTriggerDate",GM="getUTCDate",YM="stringify",KM="pathname",JM="match",XM="correlationHeaderExcludePatterns",QM="name",ZM="properties",ej="measurements",tj="sizeInBytes",rj="typeName",nj="exceptions",oj="severityLevel",ij="problemGroup",aj="parsedStack",sj="hasFullStack",lj="assembly",cj="fileName",uj="line",dj="aiDataContract",fj="duration";function hj(e,t,r){var n=t[LM],o=function(e,t){var r;t&&(t=YP(qE(t)))[LM]>150&&(r=OA(t,0,150),fO(e,2,57,"name is too long.  It has been truncated to 150 characters.",{name:t},!0));return r||t}(e,t);if(o[LM]!==n){for(var i=0,a=o;void 0!==r[a];)i++,a=OA(o,0,147)+wj(i);o=a}return o}function pj(e,t,r){var n;return void 0===r&&(r=1024),t&&(r=r||1024,(t=YP(qE(t)))[LM]>r&&(n=OA(t,0,r),fO(e,2,61,"string value is too long. It has been truncated to "+r+" characters.",{value:t},!0))),n||t}function mj(e,t){return bj(e,t,2048,66)}function gj(e,t){var r;return t&&t[LM]>32768&&(r=OA(t,0,32768),fO(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),r||t}function vj(e,t){if(t){var r={};QE(t,function(t,n){if(BE(n)&&WD())try{n=$D()[YM](n)}catch(bze){fO(e,2,49,"custom property is not valid",{exception:bze},!0)}n=pj(e,n,8192),t=hj(e,t,r),r[t]=n}),t=r}return t}function yj(e,t){if(t){var r={};QE(t,function(t,n){t=hj(e,t,r),r[t]=n}),t=r}return t}function bj(e,t,r,n){var o;return t&&(t=YP(qE(t)))[LM]>r&&(o=OA(t,0,r),fO(e,2,n,"input is too long, it has been truncated to "+r+" characters.",{data:t},!0)),o||t}function wj(e){var t="00"+e;return RA(t,t[LM]-3)}var xj=uP()||{},kj=0,Sj=[null,null,null,null,null];function _j(e){var t=kj,r=Sj,n=r[t];return xj.createElement?r[t]||(n=r[t]=xj.createElement("a")):n={host:Cj(e)},n.href=e,++t>=r[LM]&&(t=0),kj=t,n}function Cj(e,t){var r=Tj(e)||"";if(r){var n=r[JM](/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=n&&n[LM]>3&&PE(n[2])&&n[2][LM]>0)return n[2]+(n[3]||"")}return r}function Tj(e,t){var r=null;if(e){var n=e[JM](/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=n&&n[LM]>2&&PE(n[2])&&n[2][LM]>0&&(r=n[2]||"",n[LM]>2)){var o=(n[1]||"")[FM](),i=n[3]||"";("http"===o&&":80"===i||"https"===o&&":443"===i)&&(i=""),r+=i}}return r}var Ej=[DM+zM,"https://breeze.aimon.applicationinsights.io"+zM,"https://dc-int.services.visualstudio.com"+zM];function Aj(e){return-1!==DP(Ej,e[FM]())}function Pj(e,t,r){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[XM])for(var n=0;n<e.correlationHeaderExcludePatterns[LM];n++)if(e[XM][n].test(t))return!1;var o=_j(t).host[FM]();if(!o||-1===gI(o,":443")&&-1===gI(o,":80")||(o=(Tj(t)||"")[FM]()),(!e||!e.enableCorsCorrelation)&&o&&o!==r)return!1;var i,a=e&&e.correlationHeaderDomains;if(a&&(ZE(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[LM])return!0;for(n=0;n<s[LM];n++){if(new RegExp(s[n].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(o))return!1}return o&&o[LM]>0}function Ij(e){if(e){var t=function(e,t){if(e)for(var r=e[jM](","),n=0;n<r[LM];++n){var o=r[n][jM]("=");if(2===o[LM]&&o[0]===t)return o[1]}}(e,MM[1]);if(t&&"cid-v1:"!==t)return t}}function Bj(){var e=dI();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return qA()}function Nj(e,t){var r=null;return 0===e||0===t||CE(e)||CE(t)||(r=t-e),r}function Dj(e,t){var r=e||{};return{getName:function(){return r[QM]},setName:function(e){t&&t.setName(e),r[QM]=e},getTraceId:function(){return r.traceID},setTraceId:function(e){t&&t.setTraceId(e),iR(e)&&(r.traceID=e)},getSpanId:function(){return r.parentID},setSpanId:function(e){t&&t.setSpanId(e),aR(e)&&(r.parentID=e)},getTraceFlags:function(){return r.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),r.traceFlags=e}}}var zj=mB({LocalStorage:0,SessionStorage:1}),Oj=void 0,Rj=void 0,Mj="";function jj(){return qj()?Lj(zj.LocalStorage):null}function Lj(e){try{if(CE(sP()))return null;var t=(new Date)[qM](),r=lP(e===zj.LocalStorage?"localStorage":"sessionStorage"),n=Mj+t;r.setItem(n,t);var o=r.getItem(n)!==t;if(r[HM](n),!o)return r}catch(i){}return null}function Fj(){return Wj()?Lj(zj.SessionStorage):null}function Vj(e){Mj=e||""}function qj(e){return(e||void 0===Oj)&&(Oj=!!Lj(zj.LocalStorage)),Oj}function Hj(e,t){var r=jj();if(null!==r)try{return r.getItem(t)}catch(bze){Oj=!1,fO(e,2,1,"Browser failed read of local storage. "+yD(bze),{exception:HE(bze)})}return null}function Uj(e,t,r){var n=jj();if(null!==n)try{return n.setItem(t,r),!0}catch(bze){Oj=!1,fO(e,2,3,"Browser failed write to local storage. "+yD(bze),{exception:HE(bze)})}return!1}function Wj(e){return(e||void 0===Rj)&&(Rj=!!Lj(zj.SessionStorage)),Rj}function $j(e,t){var r=Fj();if(null!==r)try{return r.getItem(t)}catch(bze){Rj=!1,fO(e,2,2,"Browser failed read of session storage. "+yD(bze),{exception:HE(bze)})}return null}function Gj(e,t,r){var n=Fj();if(null!==n)try{return n.setItem(t,r),!0}catch(bze){Rj=!1,fO(e,2,4,"Browser failed write to session storage. "+yD(bze),{exception:HE(bze)})}return!1}function Yj(e,t){var r=Fj();if(null!==r)try{return r[HM](t),!0}catch(bze){Rj=!1,fO(e,2,6,"Browser failed removal of session storage item. "+yD(bze),{exception:HE(bze)})}return!1}var Kj=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,KP(cz()/rz*(r+1))>>>0<=t.limit.samplingRate}catch(bze){}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=k(e);try{d&&!v?(p=NA(l.limit.maxSendNumber,c[WM]+1),c[WM]=0,f=!0,a[e]=!0,c[$M]=new Date):(a[e]=d,c[WM]+=1);var b=g(e);y(n,b,c);for(var _=0;_<p;_++)w(e,n,t,o)}catch(bze){}return{isThrottled:f,throttleNum:p}}return i&&S(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[LM])>0,a.interval=function(e){var t=null===(e=e||{})||void 0===e?void 0:e.monthInterval,r=null==e?void 0:e.dayInterval;CE(t)&&CE(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(bze){}}function m(e,t,r){if(e&&!e.disabled&&t&&pD(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=DP(i.daysOfMonth,n[GM]());else if(null==i?void 0:i.dayInterval){var c=KP((n.getTime()-o.getTime())/864e5);l=b(i.dayInterval,0,c)}return a>=0&&l>=0}return!1}function g(e,t){var r=pD(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(bze){}return null}function y(e,t,r){try{return Uj(e,t,YP(JSON[YM](r)))}catch(bze){}return!1}function b(e,t,r){return e<=0?1:r>=t&&(r-t)%e==0?KP((r-t)/e)+1:-1}function w(e,t,r,n){fO(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[WM]||n[WM],preTriggerDate:o.preTriggerDate?v(o[$M]):void 0}}return y(t,r,n),n}catch(bze){}return null}(Hj(n,r),n,r),i[e]=t}return i[e]}catch(bze){}return null}function k(e){var t=a[e];if(CE(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[GM]()===t[GM]()}}catch(bze){}return!1}(r[$M])),a[e]=t}return a[e]}function S(e){return CE((l=l||{})[e])&&(l[e]=[]),l[e]}n=sO(e),a={},i={},l={},o={},p(109),s=pD(t)?t:"",e.addUnloadHook(jz(e.config,function(e){var t=e.cfg;r=qj(),QE(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 k(e)},c.isReady=function(){return u},c.flush=function(e){try{var t=S(e);if(t&&t[LM]>0){var r=t.slice(0);return l[e]=[],ZE(r,function(e){f(e.msgID,e[UM],e.severity,!1)}),!0}}catch(n){}return!1},c.flushAll=function(){try{if(l){var e=!0;return QE(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=!!CE(e)||e)&&t?c.flushAll():null},c.sendMessage=function(e,t,r){return f(e,t,r,!0)}}}();function Jj(e){if(!e)return{};var t=e[jM](";"),r=jP(t,function(e,t){var r=t[jM]("=");if(2===r[LM]){var n=r[0][FM](),o=r[1];e[n]=o}return e},{});if(wA(r)[LM]>0){if(r.endpointsuffix){var n=r.location?r.location+".":"";r[VM]=r[VM]||"https://"+n+"dc."+r.endpointsuffix}r[VM]=r[VM]||DM,pI(r[VM],"/")&&(r[VM]=r[VM].slice(0,-1))}return r}var Xj=function(){return function(e,t,r){var n=this,o=this;o.ver=1,o.sampleRate=100,o.tags={},o[QM]=pj(e,r)||OM,o.data=t,o.time=vD(new Date),o[dj]={time:1,iKey:1,name:1,sampleRate:function(){return 100===n.sampleRate?4:1},tags:1,data:1}}}(),Qj=function(){function e(e,t,r,n){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var o=this;o.ver=2,o[QM]=pj(e,t)||OM,o[ZM]=vj(e,r),o[ej]=yj(e,n)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),Zj=/^\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\?]+)?)/,eL=/([^\(\s\n]+):([0-9]+):([0-9]+)$/,tL=/([^\(\s\n]+):([0-9]+)$/,rL="<no_method>",nL="error",oL="stack",iL="stackDetails",aL="errorSrc",sL="message",lL="description",cL=[{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 gI(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:SL},{re:/(?:^|\(|\s{0,10}[\w\)]+\@)?([^\(\n\s\]\)]+)(?:\:([0-9]+)(?:\:([0-9]+))?)?\)?(?:,|$)/,len:2,fn:1,hdl:SL}];function uL(e,t){var r=e;return r&&!PE(r)&&(JSON&&JSON[YM]?(r=JSON[YM](e),!t||r&&"{}"!==r||(r=IE(e[qM])?e[qM]():""+e)):r=e+" - (Missing JSON.stringify)"),r||""}function dL(e,t){var r=e;return e&&(r&&!PE(r)&&(r=e[sL]||e[lL]||r),r&&!PE(r)&&(r=uL(r,!0)),e.filename&&(r=r+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===gI(r||"",t)&&(r=t+": "+r),r||""}function fL(e){return e&&e.src&&PE(e.src)&&e.obj&&NE(e.obj)}function hL(e){var t=e||"";PE(t)||(t=PE(t[oL])?t[oL]:""+t);var r=t[jM]("\n");return{src:t,obj:r}}function pL(e){var t=null;if(e)try{if(e[oL])t=hL(e[oL]);else if(e[nL]&&e[nL][oL])t=hL(e[nL][oL]);else if(e.exception&&e.exception[oL])t=hL(e.exception[oL]);else if(fL(e))t=e;else if(fL(e[iL]))t=e[iL];else if(fP()&&fP().opera&&e[sL])t=function(e){for(var t=[],r=e[jM]("\n"),n=0;n<r[LM];n++){var o=r[n];r[n+1]&&(o+="@"+r[n+1],n++),t.push(o)}return{src:e,obj:t}}(e[UM]);else if(e.reason&&e.reason[oL])t=hL(e.reason[oL]);else if(PE(e))t=hL(e);else{var r=e[sL]||e[lL]||"";PE(e[aL])&&(r&&(r+="\n"),r+=" from "+e[aL]),r&&(t=hL(r))}}catch(bze){t=hL(bze)}return t||{src:"",obj:null}}function mL(e){var t,r=e.obj;if(r&&r[LM]>0){t=[];var n=0,o=!1,i=0;ZE(r,function(e){if(o||function(e){var t=!1;if(e&&PE(e)){var r=YP(e);r&&(t=Zj.test(r))}return t}(e)){var r=qE(e);o=!0;var a=function(e,t){var r,n;if(e&&PE(e)&&YP(e)){(r={})[dj]=_L,r.level=t,r.assembly=YP(e),r.method=rL,r.fileName="",r.line=0,r.sizeInBytes=0,n=r;for(var o=0;o<cL[LM];){var i=cL[o];if(i.chk&&!i.chk(e))break;i.pre&&(e=i.pre(e));var a=e[JM](i.re);if(a&&a[LM]>=i.len){i.m&&(n.method=YP(a[i.m]||rL)),i.hdl?i.hdl(n,i,a):i.fn&&(i.ln?(n[cj]=YP(a[i.fn]||""),n[uj]=parseInt(YP(a[i.ln]||""))||0):kL(n,a[i.fn]||""));break}o++}}return CL(n)}(r,n);a&&(i+=a[tj],t.push(a),n++)}});if(i>32768)for(var a=0,s=t[LM]-1,l=0,c=a,u=s;a<s;){if((l+=t[a][tj]+t[s][tj])>32768){var d=u-c+1;t.splice(c,d);break}c=a,u=s,a++,s--}}return t}function gL(e){var t="";if(e&&!(t=e.typeName||e[QM]||""))try{var r=/function (.{1,200})\(/.exec(e.constructor[qM]());t=r&&r[LM]>1?r[1]:""}catch(bze){}return t}function vL(e){if(e)try{if(!PE(e)){var t=gL(e),r=uL(e,!1);return r&&"{}"!==r||(e[nL]&&(t=gL(e=e[nL])),r=uL(e,!0)),0!==gI(r,t)&&"String"!==t?t+":"+r:r}}catch(bze){}return""+(e||"")}var yL=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(BE(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(bze){}return!1}(t)?(r||(r={}),i&&(r.id=i),a[nj]=[xL(e,t,r)],a[ZM]=vj(e,r),a[ej]=yj(e,n),o&&(a[oj]=o),i&&(a.id=i)):(a[nj]=t[nj]||[],a[ZM]=t[ZM],a[ej]=t[ej],t[oj]&&(a[oj]=t[oj]),t.id&&(a.id=t.id,t[ZM].id=t.id),t[ij]&&(a[ij]=t[ij]),CE(t.isManual)||(a.isManual=t.isManual))}return e.CreateAutoException=function(e,t,r,n,o,i,a,s){var l=gL(o||i||e);return{message:dL(e,l),url:t,lineNumber:r,columnNumber:n,error:vL(o||i||e),evt:vL(i||e),typeName:l,stackDetails:pL(a||o||i),errorSrc:s}},e.CreateFromInterface=function(t,r,n,o){var i=r[nj]&&zP(r[nj],function(e){return function(e,t){var r=NE(t[aj])&&zP(t[aj],function(e){return function(e){var t,r=((t={})[dj]=_L,t.level=e.level,t.method=e.method,t.assembly=e[lj],t.fileName=e[cj],t.line=e[uj],t.sizeInBytes=0,t);return CL(r)}(e)})||t[aj],n=xL(e,uB(uB({},t),{parsedStack:r}));return n}(t,e)});return new e(t,uB(uB({},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&&zP(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[sj]=!0,a.message=e,a.stack=o,a.typeName=t,a)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=vL,e}(),bL=SA({id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2});function wL(){var e=this,t=NE(e[aj])&&zP(e[aj],function(e){return function(e){return{level:e.level,method:e.method,assembly:e[lj],fileName:e[cj],line:e[uj]}}(e)});return{id:e.id,outerId:e.outerId,typeName:e[rj],message:e[UM],hasFullStack:e[sj],stack:e[oL],parsedStack:t||void 0}}function xL(e,t,r){var n,o,i,a,s,l;if(function(e){try{if(BE(e))return"hasFullStack"in e&&"typeName"in e}catch(bze){}return!1}(t))o=t[rj],i=t[UM],s=t[oL],l=t[aj]||[],a=t[sj];else{var c=t,u=c&&c.evt;RE(c)||(c=c[nL]||u||c),o=pj(e,gL(c))||OM,i=gj(e,dL(t||c,o))||OM;var d=t[iL]||pL(t);l=mL(d),NE(l)&&zP(l,function(t){t[lj]=pj(e,t[lj]),t[cj]=pj(e,t[cj])}),s=function(e,t){var r;if(t){var n=""+t;n[LM]>32768&&(r=OA(n,0,32768),fO(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=NE(l)&&l[LM]>0,r&&(r[rj]=r[rj]||o)}return(n={})[dj]=bL,n.id=undefined,n.outerId=undefined,n.typeName=o,n.message=i,n[sj]=a,n.stack=s,n.parsedStack=l,n.toInterface=wL,n}function kL(e,t){var r=t[JM](eL);if(r&&r[LM]>=4)e[cj]=r[1],e[uj]=parseInt(r[2]);else{var n=t[JM](tL);n&&n[LM]>=3?(e[cj]=n[1],e[uj]=parseInt(n[2])):e[cj]=t}}function SL(e,t,r){var n=e[cj];t.fn&&r&&r[LM]>t.fn&&(t.ln&&r[LM]>t.ln?(n=YP(r[t.fn]||""),e[uj]=parseInt(YP(r[t.ln]||""))||0):n=YP(r[t.fn]||"")),n&&kL(e,n)}var _L=SA({level:1,method:1,assembly:0,fileName:0,line:0});function CL(e){var t=58;return e&&(t+=e.method[LM],t+=e.assembly[LM],t+=e.fileName[LM],t+=e.level.toString()[LM],t+=e.line.toString()[LM],e[tj]=t),e}var TL=function(){return function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}}(),EL=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 TL;u[WM]=n>0?n:void 0,u.max=isNaN(i)||null===i?void 0:i,u.min=isNaN(o)||null===o?void 0:o,u[QM]=pj(e,t)||OM,u.value=r,u.stdDev=isNaN(a)||null===a?void 0:a,c.metrics=[u],c[ZM]=vj(e,s),c[ej]=yj(e,l)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}();function AL(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=fI(e))%1e3,r=""+KP(e/1e3)%60,n=""+KP(e/6e4)%60,o=""+KP(e/36e5)%24,i=KP(e/864e5);return t=1===t[LM]?"00"+t:2===t[LM]?"0"+t:t,r=r[LM]<2?"0"+r:r,n=n[LM]<2?"0"+n:n,(i>0?i+".":"")+(o=o[LM]<2?"0"+o:o)+":"+n+":"+r+"."+t}var PL=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?bj(e,t,128,69)[qM]():t}(e,a),s.url=mj(e,r),s[QM]=pj(e,t)||OM,isNaN(n)||(s[fj]=AL(n)),s[ZM]=vj(e,o),s[ej]=yj(e,i)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),IL=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[fj]=AL(o),f.success=i,f.resultCode=a+"",f.type=pj(e,l);var h=function(e,t,r,n){var o,i=n,a=n;if(t&&t[LM]>0){var s=_j(t);if(o=s.host,!i)if(null!=s[KM]){var l=0===s.pathname[LM]?"/":s[KM];"/"!==l.charAt(0)&&(l="/"+l),a=s[KM],i=pj(e,r?r+" "+l:l)}else i=pj(e,t)}else o=n,i=n;return{target:o,name:i,data:a}}(e,r,s,n);f.data=mj(e,n)||h.data,f.target=pj(e,h.target),c&&(f.target="".concat(f.target," | ").concat(c)),f[QM]=pj(e,h[QM]),f[ZM]=vj(e,u),f[ej]=yj(e,d)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}(),BL=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||OM,i[UM]=gj(e,t),i[ZM]=vj(e,n),i[ej]=yj(e,o),r&&(i[oj]=r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),NL=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=mj(e,r),s[QM]=pj(e,t)||OM,s[ZM]=vj(e,o),s[ej]=yj(e,i),a&&(s.domProcessing=a.domProcessing,s[fj]=a[fj],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}(),DL=function(){return function(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t}}();function zL(e){var t="ai."+e+".";return function(e){return t+e}}var OL,RL=zL("application"),ML=zL("device"),jL=zL("location"),LL=zL("operation"),FL=zL("session"),VL=zL("user"),qL=zL("cloud"),HL=zL("internal"),UL=function(e){function t(){return e.call(this)||this}return fB(t,e),t}((OL={applicationVersion:RL("ver"),applicationBuild:RL("build"),applicationTypeId:RL("typeId"),applicationId:RL("applicationId"),applicationLayer:RL("layer"),deviceId:ML("id"),deviceIp:ML("ip"),deviceLanguage:ML("language"),deviceLocale:ML("locale"),deviceModel:ML("model"),deviceFriendlyName:ML("friendlyName"),deviceNetwork:ML("network"),deviceNetworkName:ML("networkName"),deviceOEMName:ML("oemName"),deviceOS:ML("os"),deviceOSVersion:ML("osVersion"),deviceRoleInstance:ML("roleInstance"),deviceRoleName:ML("roleName"),deviceScreenResolution:ML("screenResolution"),deviceType:ML("type"),deviceMachineName:ML("machineName"),deviceVMName:ML("vmName"),deviceBrowser:ML("browser"),deviceBrowserVersion:ML("browserVersion"),locationIp:jL("ip"),locationCountry:jL("country"),locationProvince:jL("province"),locationCity:jL("city"),operationId:LL("id"),operationName:LL("name"),operationParentId:LL("parentId"),operationRootId:LL("rootId"),operationSyntheticSource:LL("syntheticSource"),operationCorrelationVector:LL("correlationVector"),sessionId:FL("id"),sessionIsFirst:FL("isFirst"),sessionIsNew:FL("isNew"),userAccountAcquisitionDate:VL("accountAcquisitionDate"),userAccountId:VL("accountId"),userAgent:VL("userAgent"),userId:VL("id"),userStoreRegion:VL("storeRegion"),userAuthUserId:VL("authUserId"),userAnonymousUserAcquisitionDate:VL("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:VL("authUserAcquisitionDate"),cloudName:qL("name"),cloudRole:qL("role"),cloudRoleVer:qL("roleVer"),cloudRoleInstance:qL("roleInstance"),cloudEnvironment:qL("environment"),cloudLocation:qL("location"),cloudDeploymentUnit:qL("deploymentUnit"),internalNodeName:HL("nodeName"),internalSdkVersion:HL("sdkVersion"),internalAgentVersion:HL("agentVersion"),internalSnippet:HL("snippet"),internalSdkSrc:HL("sdkSrc")},function(){return function(){var e=this;OL&&QE(OL,function(t,r){e[t]=r})}}()));function WL(e,t,r,n,o,i){r=pj(n,r)||OM,(CE(e)||CE(t)||CE(r))&&UE("Input doesn't contain all required fields");var a="";e[RM]&&(a=e[RM],delete e[RM]);var s={name:r,time:vD(new Date),iKey:a,ext:i||{},tags:[],data:{},baseType:t,baseData:e};return CE(o)||QE(o,function(e,t){s.data[e]=t}),s}var $L="user",GL="device",YL="trace",KL="web",JL="app",XL="os",QL=new UL;function ZL(e){var t=null;if(IE(Event))t=new Event(e);else{var r=uP();r&&r.createEvent&&(t=r.createEvent("Event")).initEvent(e,!0,!0)}return t}function eF(e,t){hM(e,null,null,t)}var tF="AppInsightsPropertiesPlugin",rF="AppInsightsChannelPlugin",nF="ApplicationInsightsAnalytics",oF="toString",iF="isStorageUseDisabled",aF="_addHook",sF="core",lF="dataType",cF="envelopeType",uF="diagLog",dF="track",fF="trackPageView",hF="trackPreviousPageVisit",pF="sendPageViewInternal",mF="startTime",gF="properties",vF="duration",yF="sendPageViewPerformanceInternal",bF="populatePageViewPerformanceEvent",wF="href",xF="sendExceptionInternal",kF="error",SF="lineNumber",_F="columnNumber",CF="CreateAutoException",TF="addTelemetryInitializer",EF="autoExceptionInstrumented",AF="autoTrackPageVisitTime",PF="isBrowserLinkTrackingEnabled",IF="length",BF="enableAutoRouteTracking",NF="enableUnhandledPromiseRejectionTracking",DF="autoUnhandledPromiseInstrumented",zF="getEntriesByType",OF="isPerformanceTimingSupported",RF="getPerformanceTiming",MF="navigationStart",jF="shouldCollectDuration",LF="isPerformanceTimingDataReady",FF="responseStart",VF="loadEventEnd",qF="responseEnd",HF="connectEnd",UF=function(){function e(t,r,n,o){rB(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=CI(function(){a=null;var e=s.slice(0),t=!1;s=[],ZE(e,function(e){e()?t=!0:s.push(e)}),s[IF]>0&&d(),t&&u(!0)},100))}function f(e){s.push(e),d()}n&&(i=n.logger),e[fF]=function(e,n){var a=e.name;if(CE(a)||"string"!=typeof a){var s=uP();a=e.name=s&&s.title||""}var d=e.uri;if(CE(d)||"string"!=typeof d){var h=UD();d=e.uri=h&&h[wF]||""}if(!c){var p=dI(),m=p&&p[zF]&&p[zF]("navigation");if(m&&m[0]&&!SE(p.timeOrigin)){var g=m[0].loadEventStart;e[mF]=new Date(p.timeOrigin+g)}else{var v=(n||e[gF]||{})[vF]||0;e[mF]=new Date((new Date).getTime()-v)}c=!0}if(!o[OF]())return t[pF](e,n),u(!0),void(xP()||fO(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[RF]()[MF];x>0&&(y=Nj(x,+new Date),o[jF](y)||(y=void 0)),CE(n)||CE(n[vF])||(b=n[vF]),!r&&isNaN(b)||(isNaN(b)&&(n||(n={}),n[vF]=y),t[pF](e,n),u(!0),w=!0);n||(n={}),f(function(){var r=!1;try{if(o[LF]()){r=!0;var s={name:a,uri:d};o[bF](s),s.isValid||w?(w||(n[vF]=s.durationMs,t[pF](e,n)),l||(t[yF](s,n),l=!0)):(n[vF]=y,t[pF](e,n))}else x>0&&Nj(x,+new Date)>6e4&&(r=!0,w||(n[vF]=6e4,t[pF](e,n)))}catch(bze){fO(i,1,38,"trackPageView failed on page load calculation: "+yD(bze),{exception:HE(bze)})}return r})},e.teardown=function(e,t){if(a){a.cancel(),a=null;var r=s.slice(0);s=[],ZE(r,function(e){e()})}}})}return e.__ieDyn=1,e}(),WF=["googlebot","adsbot-google","apis-google","mediapartners-google"];function $F(){var e=dI();return e&&!!e.timing}function GF(){var e=dI(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t[MF]>0&&t[FF]>0&&t.requestStart>0&&t[VF]>0&&t[qF]>0&&t[HF]>0&&t.domLoading>0}function YF(){return $F()?dI().timing:null}function KF(){return(e=dI())&&e.getEntriesByType&&e.getEntriesByType("navigation")[IF]>0?dI()[zF]("navigation")[0]:null;var e}function JF(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(pP()||{}).userAgent,n=!1;if(r)for(var o=0;o<WF[IF];o++)n=n||-1!==gI(r.toLowerCase(),WF[o]);if(n)return!1;for(o=0;o<e[IF];o++)if(e[o]<0||e[o]>=36e5)return!1;return!0}var XF,QF=function(){function e(t){var r=sO(t);rB(e,this,function(e){e[bF]=function(t){t.isValid=!1;var n=KF(),o=YF(),i=0,a=0,s=0,l=0,c=0;(n||o)&&(n?(i=n[vF],a=0===n[mF]?n[HF]:Nj(n[mF],n[HF]),s=Nj(n.requestStart,n[FF]),l=Nj(n[FF],n[qF]),c=Nj(n.responseEnd,n[VF])):(i=Nj(o[MF],o[VF]),a=Nj(o[MF],o[HF]),s=Nj(o.requestStart,o[FF]),l=Nj(o[FF],o[qF]),c=Nj(o.responseEnd,o[VF])),0===i?fO(r,2,10,"error calculating page view performance.",{total:i,network:a,request:s,response:l,dom:c}):e[jF](i,a,s,l,c)?i<KP(a)+KP(s)+KP(l)+KP(c)?fO(r,2,8,"client performance math error.",{total:i,network:a,request:s,response:l,dom:c}):(t.durationMs=i,t.perfTotal=t[vF]=AL(i),t.networkConnect=AL(a),t.sentRequest=AL(s),t.receivedResponse=AL(l),t.domProcessing=AL(c),t.isValid=!0):fO(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[RF]=YF,e[OF]=$F,e[LF]=GF,e[jF]=JF})}return e.__ieDyn=1,e}(),ZF=function(){function e(t,r){var n="prevPageVisitData";rB(e,this,function(e){e[hF]=function(e,o){try{var i=function(e,r){var o=null;try{if(o=function(){var e=null;try{if(Wj()){var r=qA(),o=$j(t,n);o&&WD()&&((e=$D().parse(o)).pageVisitTime=r-e.pageVisitStartTime,Yj(t,n))}}catch(bze){hO(t,"Stop page visit timer failed: "+HE(bze)),e=null}return e}(),Wj()){null!=$j(t,n)&&UE("Cannot call startPageVisit consecutively without first calling stopPageVisit");var i=$D().stringify(new eV(e,r));Gj(t,n,i)}}catch(bze){hO(t,"Call to restart failed: "+HE(bze)),o=null}return o}(e,o);i&&r(i.pageName,i.pageUrl,i.pageVisitTime)}catch(bze){hO(t,"Auto track page visit time failed, metric will not be collected: "+HE(bze))}},dA(e,"_logger",{g:function(){return t}}),dA(e,"pageVisitTimeTrackingHandler",{g:function(){return r}})})}return e.__ieDyn=1,e}(),eV=function(){return function(e,t){this.pageVisitStartTime=qA(),this.pageName=e,this.pageUrl=t}}(),tV=function(){return function(e,t){var r=this,n={};r.start=function(t){void 0!==n[t]&&fO(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))fO(e,2,63,"stop was called without a corresponding start.",{name:t,key:t},!0);else{var l=Nj(s,+new Date);r.action(t,o,l,i,a)}delete n[t],n[t]=void 0}}}();function rV(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}var nV=kA(((XF={sessionRenewalMs:Uz(oV,18e5),sessionExpirationMs:Uz(oV,864e5),disableExceptionTracking:$z()})[AF]=$z(),XF.overridePageViewDuration=$z(),XF[NF]=$z(),XF[DF]=!1,XF.samplingPercentage=Wz(function(e){return!isNaN(e)&&e>0&&e<=100},100),XF[iF]=$z(),XF[PF]=$z(),XF[BF]=$z(),XF.namePrefix=Yz(),XF.enableDebug=$z(),XF.disableFlushOnBeforeUnload=$z(),XF.disableFlushOnUnload=$z(!1,"disableFlushOnBeforeUnload"),XF.expCfg=Hz({inclScripts:!1,expLog:void 0,maxLogs:50}),XF));function oV(e,t){return(e=e||t)<6e4&&(e=6e4),+e}function iV(e){SE(e[iF])||(e[iF]?(Oj=!1,Rj=!1):(Oj=qj(!0),Rj=Wj(!0)))}var aV=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,k,S=e.call(this)||this;return S.identifier=nF,S.priority=180,S.autoRoutePVDelay=500,rB(t,S,function(e,t){var S=t[aF];function _(t,r,n,o,i){e[uF]().throwInternal(t,r,n,o,i)}function C(){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=UD();b=t&&t[wF]||"",w=null,x=null,g=null,k=0,dA(e,"config",{g:function(){return g}})}C(),e.getCookieMgr=function(){return NO(e[sF])},e.processTelemetry=function(t,r){e.processNext(t,r)},e.trackEvent=function(t,r){try{var n=WL(t,Qj[lF],Qj[cF],e[uF](),r);e[sF][dF](n)}catch(bze){_(2,39,"trackTrace failed, trace will not be collected: "+yD(bze),{exception:HE(bze)})}},e.startTrackEvent=function(e){try{r.start(e)}catch(bze){_(1,29,"startTrackEvent failed, event will not be collected: "+yD(bze),{exception:HE(bze)})}},e.stopTrackEvent=function(e,t,n){try{r.stop(e,void 0,t,n)}catch(bze){_(1,30,"stopTrackEvent failed, event will not be collected: "+yD(bze),{exception:HE(bze)})}},e.trackTrace=function(t,r){try{var n=WL(t,BL[lF],BL[cF],e[uF](),r);e[sF][dF](n)}catch(bze){_(2,39,"trackTrace failed, trace will not be collected: "+yD(bze),{exception:HE(bze)})}},e.trackMetric=function(t,r){try{var n=WL(t,EL[lF],EL[cF],e[uF](),r);e[sF][dF](n)}catch(bze){_(1,36,"trackMetric failed, metric will not be collected: "+yD(bze),{exception:HE(bze)})}},e[fF]=function(e,t){try{var r=e||{};o[fF](r,uB(uB(uB({},r.properties),r.measurements),t)),v&&a[hF](r.name,r.uri)}catch(bze){_(1,37,"trackPageView failed, page view will not be collected: "+yD(bze),{exception:HE(bze)})}},e[pF]=function(t,r,n){var o=uP();if(o&&(t.refUri=void 0===t.refUri?o.referrer:t.refUri),CE(t[mF])){var i=(r||t[gF]||{})[vF]||0;t[mF]=new Date((new Date).getTime()-i)}var a=WL(t,PL[lF],PL[cF],e[uF](),r,n);e[sF][dF](a)},e[yF]=function(t,r,n){var o=WL(t,NL[lF],NL[cF],e[uF](),r,n);e[sF][dF](o)},e.trackPageViewPerformance=function(t,r){var n=t||{};try{i[bF](n),e[yF](n,r)}catch(bze){_(1,37,"trackPageViewPerformance failed, page view will not be collected: "+yD(bze),{exception:HE(bze)})}},e.startTrackPage=function(e){try{if("string"!=typeof e){var t=uP();e=t&&t.title||""}n.start(e)}catch(bze){_(1,31,"startTrackPage failed, page view may not be collected: "+yD(bze),{exception:HE(bze)})}},e.stopTrackPage=function(e,t,r,o){try{if("string"!=typeof e){var i=uP();e=i&&i.title||""}if("string"!=typeof t){var s=UD();t=s&&s[wF]||""}n.stop(e,t,r,o),v&&a[hF](e,t)}catch(bze){_(1,32,"stopTrackPage failed, page view will not be collected: "+yD(bze),{exception:HE(bze)})}},e[xF]=function(t,r,n){var o=t&&(t.exception||t[kF])||RE(t)&&t||{name:t&&typeof t,message:t||OM};t=t||{};var i=new yL(e[uF](),o,t[gF]||r,t.measurements,t.severityLevel,t.id).toInterface(),a=uP();if(a&&(null==y?void 0:y.inclScripts)){var s=function(e){var t=e.getElementsByTagName("script"),r=[];return ZE(t,function(e){var t=e[vN]("src");if(t){var n=e[vN]("crossorigin"),o=!0===e.hasAttribute("async"),i=!0===e.hasAttribute("defer"),a=e[vN]("referrerpolicy"),s={url:t};n&&(s.crossOrigin=n),o&&(s.async=o),i&&(s.defer=i),a&&(s.referrerPolicy=a),r[CB](s)}}),r}(a);i[gF].exceptionScripts=JSON.stringify(s)}if(null==y?void 0:y.expLog){var l=y.expLog();l&&l.logs&&NE(l.logs)&&(i[gF].exceptionLog=l.logs.slice(0,y.maxLogs).join("\n"))}var c=WL(i,yL[lF],yL[cF],e[uF](),r,n);e[sF][dF](c)},e.trackException=function(t,r){t&&!t.exception&&t[kF]&&(t.exception=t[kF]);try{e[xF](t,r)}catch(bze){_(1,35,"trackException failed, exception will not be collected: "+yD(bze),{exception:HE(bze)})}},e._onerror=function(t){var r=t&&t[kF],n=t&&t.evt;try{if(!n){var o=fP();o&&(n=o.event)}var i=t&&t.url||(uP()||{}).URL,a=t.errorSrc||"window.onerror@"+i+":"+(t[SF]||0)+":"+(t[_F]||0),s={errorSrc:a,url:i,lineNumber:t[SF]||0,columnNumber:t[_F]||0,message:t.message};!function(e,t,r,n,o){return!o&&PE(e)&&("Script error."===e||"Script error"===e)}(t.message,t.url,t.lineNumber,t.columnNumber,t[kF])?(t.errorSrc||(t.errorSrc=a),e.trackException({exception:t,severityLevel:3},s)):function(t,r){var n=WL(t,yL[lF],yL[cF],e[uF](),r);e[sF][dF](n)}(yL[CF]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",i,t[SF]||0,t[_F]||0,r,n,null,a),s)}catch(bze){var l=r?r.name+", "+r.message:"null";_(1,11,"_onError threw exception while logging error, error will not be collected: "+yD(bze),{exception:HE(bze),errorString:l})}},e[TF]=function(t){if(e[sF])return e[sF][TF](t);s||(s=[]),s.push(t)},e.initialize=function(_,C,T,E){if(!e.isInitialized()){CE(C)&&UE("Error initializing"),t.initialize(_,C,T,E);try{x=dM(mz(e.identifier),C.evtNamespace&&C.evtNamespace()),s&&(ZE(s,function(e){C[TF](e)}),s=null),function(t){var r=e.identifier,n=e[sF];e[aF](jz(t,function(){var o=yR(null,t,n);g=o.getExtCfg(r,nV),h=h||t[EF]||g[EF],y=g.expCfg,v=g[AF],t.storagePrefix&&Vj(t.storagePrefix),iV(g),l=g[PF],function(){if(!c&&l){var t=["/browserLinkSignalR/","/__browserLink/"],r=function(e){if(l&&e.baseType===IL[lF]){var r=e.baseData;if(r)for(var n=0;n<t[IF];n++)if(r.target&&gI(r.target,t[n])>=0)return!1}return!0};e[aF](e[TF](r)),c=!0}}()}))}(_),i=new QF(e[sF]),o=new UF(e,g.overridePageViewDuration,e[sF],i),a=new ZF(e[uF](),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 tV(e[uF](),"trackEvent")).action=function(t,r,n,o,i){o||(o={}),i||(i={}),o.duration=n[oF](),e.trackEvent({name:t,properties:o,measurements:i})},(n=new tV(e[uF](),"trackPageView")).action=function(t,r,n,o,i){CE(o)&&(o={}),o.duration=n[oF]();var a={name:t,uri:r,properties:o,measurements:i};e[pF](a,o)},dP()&&(A=fP(),P=UD(),e[aF](jz(g,function(){(f=g.disableExceptionTracking)||h||g[EF]||(S(AM(A,"onerror",{ns:x,rsp:function(t,r,n,o,i,a){f||!0===t.rslt||e._onerror(yL[CF](r,n,o,i,a,t.evt))}},!1)),k++,h=!0)})),function(t,r){e[aF](jz(g,function(){p=!0===g[NF],h=h||g[DF],p&&!m&&(S(AM(t,"onunhandledrejection",{ns:x,rsp:function(t,n){p&&!0!==t.rslt&&e._onerror(yL[CF](function(e){if(e&&e.reason){var t=e.reason;return!PE(t)&&IE(t[oF])?t[oF]():HE(t)}return e||""}(n),r?r[wF]:"",0,0,n,t.evt))}},!1)),k++,g[DF]=m=!0)}))}(A,P),function(){var t=fP(),r=UD();e[aF](jz(g,function(){if(u=!0===g[BF],t&&u&&!d&&mP()){var n=bP();IE(n.pushState)&&IE(n.replaceState)&&typeof Event!==iB&&function(t,r,n){if(d)return;var o=g.namePrefix||"";function i(){u&&rV(t,ZL(o+"locationchange"))}function a(){if(w?(b=w,w=n&&n[wF]||""):w=n&&n[wF]||"",u){var t=function(){var t=null;e[sF]&&e[sF].getTraceCtx&&(t=e[sF].getTraceCtx(!1));if(!t){var r=e[sF].getPlugin(tF);if(r){var n=r.plugin.context;n&&(t=Dj(n.telemetryTrace))}}return t}();if(t){t.setTraceId(QO());var r="_unknown_";n&&n.pathname&&(r=n.pathname+(n.hash||"")),t.setName(pj(e[uF](),r))}CI(function(t){e[fF]({refUri:t,properties:{duration:0}})}.bind(e,b),e.autoRoutePVDelay)}}S(AM(r,"pushState",{ns:x,rsp:function(){u&&(rV(t,ZL(o+"pushState")),rV(t,ZL(o+"locationchange")))}},!0)),S(AM(r,"replaceState",{ns:x,rsp:function(){u&&(rV(t,ZL(o+"replaceState")),rV(t,ZL(o+"locationchange")))}},!0)),fM(t,o+"popstate",i,x),fM(t,o+"locationchange",a,x),d=!0}(t,n,r)}}))}())}catch(bze){throw e.setInitialized(!1),bze}var A,P}},e._doTeardown=function(e,t){o&&o.teardown(e,t),hM(window,null,null,x),C()},e._getDbgPlgTargets=function(){return[k,h]},dA(e,"_pageViewManager",{g:function(){return o}}),dA(e,"_pageViewPerformanceManager",{g:function(){return i}}),dA(e,"_pageVisitTimeManager",{g:function(){return a}}),dA(e,"_evtNamespace",{g:function(){return"."+x}})}),S}return fB(t,e),t.Version="3.3.9",t}(TR),sV="featureOptIn",lV="scheduleFetchTimeout";function cV(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 iI(e||{},mE[iE](arguments))}({},e):e;return i&&t&&!o&&QE(i,function(e){var o=t[e];o&&(BE(i[e])&&BE(o)?i[e]=cV(i[e],o,++r,n):delete i[e])}),i}catch(bze){}return e}var uV,dV="featureOptIn.",fV=".mode",hV=".onCfg",pV=".offCfg";function mV(e,t){try{if(!e||!e.enabled)return null;if(!e[sV])return e.config;var r=e[sV],n=e.config||{};return QE(r,function(r){var o=function(e,t,r){var n;if(!t||!t.enabled)return null;var o=(t[sV]||{})[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=dV+e+hV,p=dV+e+pV,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={})[dV+e+fV]=m,n[h]=g,n[p]=v,n}(r,e,t.config[sV]);CE(o)||(QE(o,function(e,t){lI(n,e,t)}),function(e,t,r){var n=t[dV+e+fV],o=t[dV+e+hV],i=t[dV+e+pV],a=null;3===n&&(a=o);2===n&&(a=i);a&&QE(a,function(e,t){lI(r,e,t)})}(r,o,n))}),n}catch(bze){}return null}var gV="ai_cfgsync",vV=void 0,yV=kA(((uV={syncMode:1,blkCdnCfg:vV,customEvtName:vV,cfgUrl:vV,overrideSyncFn:vV,overrideFetchFn:vV,onCfgChangeReceive:vV})[lV]=18e5,uV.nonOverrideConfigs={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},uV.enableAjax=!1,uV)),bV=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 rB(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 S();if(l&&!w)return e.core.updateCfg(t),!0}return!1}function k(){try{var e=sP();e&&hM(e,null,null,i)}catch(bze){}}function S(e){try{return v&&IE(v)?v(n,e):ez(o,n,e)}catch(bze){}return!1}function _(e){try{return k(),e&&(o=e,function(){if(l){var e=sP();if(e)try{fM(e,o,function(e){var t=e&&e.detail;if(h&&t)h(t);else{var r=t&&t.cfg,n=r&&XP(r)&&P(r);n&&x(n)}},i,!0)}catch(bze){}}}()),!0}catch(bze){}return!1}function C(e,t,r){var n=sP(),o=n&&n.fetch||null;if(e&&o&&IE(o))try{var i={method:"GET"};b||(i[PM]=!0);var a=new Request(e,i);if(!b)try{a[PM]=!0}catch(bze){}wN(fetch(a),function(e){var n=e.value;e.rejected?A(t,400):n.ok?wN(n.text(),function(e){A(t,n.status,e.value,r)}):A(t,n.status,null,r)})}catch(bze){}}function T(e,t,r){try{var n=new XMLHttpRequest;b||(n[PM]=!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(bze){}}function E(t,r,n){try{if(t>=200&&t<400&&r){f=0;var o=$D();if(o){var i=mV(o.parse(r),e.core),a=i&&XP(i)&&P(i);a&&x(a,n)}}else f++;f<3&&I()}catch(bze){}}function A(e,t,r,n){try{e(t,r,n)}catch(bze){}}function P(e,t){var r=null;try{e&&(r=cV(e,p,0,5))}catch(bze){}return r}function I(){!s&&d&&(s=CI(function(){s=null,m(a,E,c)},d)).unref()}function B(){s&&s.cancel(),s=null,f=0}y(),e.initialize=function(s,y,w,x){t.initialize(s,y,w,x),i=dM(mz(e.identifier),y.evtNamespace&&y.evtNamespace()),function(t){var i=e.identifier,s=e.core;e._addHook(jz(t,function(){var e=yR(null,t,s);r=e.getExtCfg(i,yV);var d=u;u=!!r.blkCdnCfg,b=!!r.enableAjax,CE(d)||d===u||(!u&&a?m&&m(a,E,c):B()),CE(l)&&(l=2===r.syncMode),CE(c)&&(c=1===r.syncMode);var f=r.customEvtName||gV;o!==f&&(l?_(f):(k(),o=f)),CE(a)&&(a=r.cfgUrl),a||(n=t,c&&S())})),v=r.overrideSyncFn,g=r.overrideFetchFn,h=r.onCfgChangeReceive,p=r.nonOverrideConfigs,d=r[lV],m=function(){var e=g;CE(e)&&(XD()?e=C:ZD()&&(e=T));return e}(),f=0,a&&!u&&m&&m(a,E,c)}(s)},e.getCfg=function(){return n},e.pause=function(){w=!0,B()},e.resume=function(){w=!1,I()},e.setCfg=function(e){return x(e)},e.sync=function(e){return S(e)},e.updateEventListenerName=function(e){return _(e)},e._doTeardown=function(e,t){k(),B(),y()},e._getDbgPlgTargets=function(){return[c,l,o,u,p]},e.processTelemetry=function(t,r){e.processNext(t,r)}}),y}return fB(t,e),t.__ieDyn=1,t}(TR),wV="duration",xV="tags",kV="deviceType",SV="data",_V="name",CV="traceID",TV="length",EV="stringify",AV="measurements",PV="dataType",IV="envelopeType",BV="toString",NV="enqueue",DV="count",zV="push",OV="emitLineDelimitedJson",RV="clear",MV="markAsSent",jV="clearSent",LV="bufferOverride",FV="BUFFER_KEY",VV="SENT_BUFFER_KEY",qV="concat",HV="MAX_BUFFER_SIZE",UV="triggerSend",WV="diagLog",$V="initialize",GV="_sender",YV="endpointUrl",KV="instrumentationKey",JV="customHeaders",XV="maxBatchSizeInBytes",QV="onunloadDisableBeacon",ZV="isBeaconApiDisabled",eq="alwaysUseXhrOverride",tq="enableSessionStorageBuffer",rq="_buffer",nq="onunloadDisableFetch",oq="disableSendBeaconSplit",iq="getSenderInst",aq="_onError",sq="_onPartialSuccess",lq="_onSuccess",cq="itemsReceived",uq="itemsAccepted",dq="baseType",fq="sampleRate",hq="baseType",pq="baseData",mq="properties",gq="true";function vq(e,t,r){return bD(e,t,r,jE)}function yq(e,t,r){CE(e)||QE(e,function(e,n){zE(n)?r[e]=n:PE(n)?t[e]=n:WD()&&(t[e]=$D()[EV](n))})}function bq(e,t){CE(e)||QE(e,function(r,n){e[r]=n||t})}function wq(e,t,r,n){var o=new Xj(e,n,t);vq(o,"sampleRate",r[IM]),(r[pq]||{}).startTime&&(o.time=vD(r[pq].startTime)),o.iKey=r.iKey;var i=r.iKey.replace(/-/g,"");return o[_V]=o[_V].replace("{0}",i),function(e,t,r){var n=r[xV]=r[xV]||{},o=t.ext=t.ext||{},i=t[xV]=t[xV]||[],a=o.user;a&&(vq(n,QL.userAuthUserId,a.authId),vq(n,QL.userId,a.id||a.localId));var s=o.app;s&&vq(n,QL.sessionId,s.sesId);var l=o.device;l&&(vq(n,QL.deviceId,l.id||l.localId),vq(n,QL[kV],l.deviceClass),vq(n,QL.deviceIp,l.ip),vq(n,QL.deviceModel,l.model),vq(n,QL[kV],l[kV]));var c=t.ext.web;if(c){vq(n,QL.deviceLanguage,c.browserLang),vq(n,QL.deviceBrowserVersion,c.browserVer),vq(n,QL.deviceBrowser,c.browser);var u=r[SV]=r[SV]||{},d=u[pq]=u[pq]||{},f=d[mq]=d[mq]||{};vq(f,"domain",c.domain),vq(f,"isManual",c.isManual?gq:null),vq(f,"screenRes",c.screenRes),vq(f,"userConsent",c.userConsent?gq:null)}var h=o.os;h&&(vq(n,QL.deviceOS,h[_V]),vq(n,QL.deviceOSVersion,h.osVer));var p=o.trace;p&&(vq(n,QL.operationParentId,p.parentID),vq(n,QL.operationName,pj(e,p[_V])),vq(n,QL.operationId,p[CV]));for(var m={},g=i[TV]-1;g>=0;g--)QE(i[g],function(e,t){m[e]=t}),i.splice(g,1);QE(i,function(e,t){m[e]=t});var v=uB(uB({},n),m);v[QL.internalSdkVersion]||(v[QL.internalSdkVersion]=pj(e,"javascript:".concat(kq.Version),64)),r[xV]=CD(v)}(e,r,o),r[xV]=r[xV]||[],CD(o)}function xq(e,t){CE(t[pq])&&fO(e,1,46,"telemetryItem.baseData cannot be null.")}var kq={Version:"3.3.9"};function Sq(e,t,r){xq(e,t);var n={},o={};t[hq]!==Qj[PV]&&(n.baseTypeSource=t[hq]),t[hq]===Qj[PV]?(n=t[pq][mq]||{},o=t[pq][AV]||{}):t[pq]&&yq(t[pq],n,o),yq(t[SV],n,o),CE(r)||bq(n,r);var i=t[pq][_V],a=new Qj(e,i,n,o),s=new DL(Qj[PV],a);return wq(e,Qj[IV],t,s)}var _q,Cq,Tq=function(){function e(t,r){var n=[],o=!1,i=r.maxRetryCnt;this._get=function(){return n},this._set=function(e){return n=e},rB(e,this,function(e){e[NV]=function(a){e[DV]()>=r.eventsLimitInMem?o||(fO(t,2,105,"Maximum in-memory buffer size reached: "+e[DV](),!0),o=!0):(a.cnt=a.cnt||0,!CE(i)&&a.cnt>i||n[zV](a))},e[DV]=function(){return n[TV]},e.size=function(){for(var e=n[TV],t=0;t<n[TV];t++)e+=n[t].item[TV];return r[OV]||(e+=2),e},e[RV]=function(){n=[],o=!1},e.getItems=function(){return n.slice(0)},e.batchPayloads=function(e){if(e&&e[TV]>0){var t=[];return ZE(e,function(e){t[zV](e.item)}),r[OV]?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 Pq(e,r):new Eq(e,r);return ZE(i,function(e){a[NV](e)}),a}})}return e.__ieDyn=1,e}(),Eq=function(e){function t(r,n){var o=e.call(this,r,n)||this;return rB(t,o,function(e,t){e[MV]=function(e){t[RV]()},e[jV]=function(e){}}),o}return fB(t,e),t.__ieDyn=1,t}(Tq),Aq=["AI_buffer","AI_sentBuffer"],Pq=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[LV]||{getItem:$j,setItem:Gj},l=s.getItem,c=s.setItem,u=n.maxRetryCnt;return rB(t,o,function(e,n){var o=m(t[FV]),s=m(t[VV]),d=function(){var e=[];try{return ZE(Aq,function(t){var r=y(t);if(e=e[qV](r),a){var n=y(a+"_"+t);e=e[qV](n)}}),e}catch(bze){fO(r,2,41,"Transfer events from previous buffers: "+yD(bze)+". previous Buffer items can not be removed",{exception:HE(bze)})}return[]}(),f=s[qV](d),h=e._set(o[qV](f));function p(e,t){var r=[],n=[];return ZE(e,function(e){n[zV](e.item)}),ZE(t,function(e){IE(e)||-1!==DP(n,e.item)||r[zV](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=$D().parse(t);if(PE(n)&&(n=$D().parse(n)),n&&NE(n))return n}}catch(bze){fO(r,1,42," storage key: "+e+", "+yD(bze),{exception:HE(bze)})}return[]}function v(e,t){var n=e;try{n=a?a+"_"+n:n;var o=JSON[EV](t);c(r,n,o)}catch(bze){c(r,n,JSON[EV]([])),fO(r,2,41," storage key: "+n+", "+yD(bze)+". Buffer cleared",{exception:HE(bze)})}}function y(e){try{var t=g(e),n=[];return ZE(t,function(e){var t={item:e,cnt:0};n[zV](t)}),Yj(r,e),n}catch(bze){}return[]}h[TV]>t[HV]&&(h[TV]=t[HV]),v(t[VV],[]),v(t[FV],h),e[NV]=function(o){e[DV]()>=t[HV]?i||(fO(r,2,67,"Maximum buffer size reached: "+e[DV](),!0),i=!0):(o.cnt=o.cnt||0,!CE(u)&&o.cnt>u||(n[NV](o),v(t[FV],e._get())))},e[RV]=function(){n[RV](),v(t[FV],e._get()),v(t[VV],[]),i=!1},e[MV]=function(n){v(t[FV],e._set(p(n,e._get())));var o=m(t[VV]);o instanceof Array&&n instanceof Array&&((o=o[qV](n))[TV]>t[HV]&&(fO(r,1,67,"Sent buffer reached its maximum size: "+o[TV],!0),o[TV]=t[HV]),v(t[VV],o))},e[jV]=function(e){var r=m(t[VV]);r=p(e,r),v(t[VV],r)},e.createNew=function(n,o,i){i=!!i;var a=e._get().slice(0),s=m(t[VV]).slice(0);n=n||r,o=o||{},e[RV]();var l=i?new t(n,o):new Eq(n,o);return ZE(a,function(e){l[NV](e)}),i&&l[MV](s),l}}),o}var r;return fB(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}(Tq),Iq=function(){function e(t){rB(e,this,function(e){function r(e,i){var a="__aiCircularRefCheck",s={};if(!e)return fO(t,1,48,"cannot serialize object because it is null or undefined",{name:i},!0),s;if(e[a])return fO(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(NE(e))s=n(e,i);else{fO(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:i},!0);try{$D()[EV](e),s=e}catch(bze){fO(t,1,48,bze&&IE(bze[BV])?bze[BV]():"Error serializing object",null,!0)}}return s}return e[a]=!0,QE(e.aiDataContract,function(o,a){var l=IE(a)?1&a():1&a,c=IE(a)?4&a():4&a,u=2&a,d=void 0!==e[o],f=BE(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 fO(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(NE(e)){o=[];for(var i=0;i<e[TV];i++){var a=r(e[i],n+"["+i+"]");o[zV](a)}}else fO(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={},QE(e,function(e,i){if("string"===r)void 0===i?o[e]="undefined":null===i?o[e]="null":i[BV]?o[e]=i[BV]():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.",fO(t,1,o[e],null,!0)})),o}e.serialize=function(e){var n=r(e,"root");try{return $D()[EV](n)}catch(bze){fO(t,1,48,bze&&IE(bze[BV])?bze[BV]():"Error serializing object",null,!0)}}})}return e.__ieDyn=1,e}(),Bq=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[TV]<8;)e=e[qV](e);for(var t=5381,r=0;r<e[TV];++r)t=(t<<5)+t+e.charCodeAt(r),t&=t;return Math.abs(t)},e.INT_MAX_VALUE=2147483647,e}(),Nq=function(){return function(){var e=new Bq,t=new UL;this.getSamplingScore=function(r){return r[xV]&&r[xV][t.userId]?e.getHashCodeScore(r[xV][t.userId]):r.ext&&r.ext.user&&r.ext.user.id?e.getHashCodeScore(r.ext.user.id):r[xV]&&r[xV][t.operationId]?e.getHashCodeScore(r[xV][t.operationId]):r.ext&&r.ext.telemetryTrace&&r.ext.telemetryTrace[CV]?e.getHashCodeScore(r.ext.telemetryTrace[CV]):100*Math.random()}}}(),Dq=function(){function e(e,t){this.INT_MAX_VALUE=2147483647;var r=t||sO(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[fq]=e,this.samplingScoreGenerator=new Nq}return e.prototype.isSampledIn=function(e){var t=this[fq];return null==t||t>=100||(e.baseType===EL[PV]||this.samplingScoreGenerator.getSamplingScore(e)<t)},e}(),zq=void 0;function Oq(e){try{return e.responseText}catch(bze){}return null}var Rq=kA(((_q={endpointUrl:Wz(jE,DM+zM)})[OV]=$z(),_q.maxBatchInterval=15e3,_q[XV]=102400,_q.disableTelemetry=$z(),_q[tq]=$z(!0),_q.isRetryDisabled=$z(),_q[ZV]=$z(!0),_q[oq]=$z(!0),_q.disableXhr=$z(),_q[nq]=$z(),_q[QV]=$z(),_q[KV]=zq,_q.namePrefix=zq,_q.samplingPercentage=Wz(function(e){return!isNaN(e)&&e>0&&e<=100},100),_q[JV]=zq,_q.convertUndefined=zq,_q.eventsLimitInMem=1e4,_q[LV]=!1,_q.httpXHROverride={isVal:function(e){return e&&e.sendPOST},v:zq},_q[eq]=$z(),_q.transports=zq,_q.retryCodes=zq,_q.corsPolicy=zq,_q.maxRetryCnt={isVal:zE,v:10},_q)),Mq="X-Set-Cross-Origin-Resource-Policy";var jq=((Cq={})[Qj.dataType]=Sq,Cq[BL.dataType]=function(e,t,r){xq(e,t);var n=t[pq].message,o=t[pq].severityLevel,i=t[pq][mq]||{},a=t[pq][AV]||{};yq(t[SV],i,a),CE(r)||bq(i,r);var s=new BL(e,n,o,i,a),l=new DL(BL[PV],s);return wq(e,BL[IV],t,l)},Cq[PL.dataType]=function(e,t,r){var n;xq(e,t);var o=t[pq];CE(o)||CE(o[mq])||CE(o[mq][wV])?CE(t[SV])||CE(t[SV][wV])||(n=t[SV][wV],delete t[SV][wV]):(n=o[mq][wV],delete o[mq][wV]);var i,a=t[pq];((t.ext||{}).trace||{})[CV]&&(i=t.ext.trace[CV]);var s=a.id||i,l=a[_V],c=a.uri,u=a[mq]||{},d=a[AV]||{};CE(a.refUri)||(u.refUri=a.refUri),CE(a.pageType)||(u.pageType=a.pageType),CE(a.isLoggedIn)||(u.isLoggedIn=a.isLoggedIn[BV]()),CE(a[mq])||QE(a[mq],function(e,t){u[e]=t}),yq(t[SV],u,d),CE(r)||bq(u,r);var f=new PL(e,l,c,n,u,d,s),h=new DL(PL[PV],f);return wq(e,PL[IV],t,h)},Cq[NL.dataType]=function(e,t,r){xq(e,t);var n=t[pq],o=n[_V],i=n.uri||n.url,a=n[mq]||{},s=n[AV]||{};yq(t[SV],a,s),CE(r)||bq(a,r);var l=new NL(e,o,i,void 0,a,s,n),c=new DL(NL[PV],l);return wq(e,NL[IV],t,c)},Cq[yL.dataType]=function(e,t,r){xq(e,t);var n=t[pq][AV]||{},o=t[pq][mq]||{};yq(t[SV],o,n),CE(r)||bq(o,r);var i=t[pq],a=yL.CreateFromInterface(e,i,o,n),s=new DL(yL[PV],a);return wq(e,yL[IV],t,s)},Cq[EL.dataType]=function(e,t,r){xq(e,t);var n=t[pq],o=n[mq]||{},i=n[AV]||{};yq(t[SV],o,i),CE(r)||bq(o,r);var a=new EL(e,n[_V],n.average,n.sampleCount,n.min,n.max,n.stdDev,o,i),s=new DL(EL[PV],a);return wq(e,EL[IV],t,s)},Cq[IL.dataType]=function(e,t,r){xq(e,t);var n=t[pq][AV]||{},o=t[pq][mq]||{};yq(t[SV],o,n),CE(r)||bq(o,r);var i=t[pq];if(CE(i))return hO(e,"Invalid input for dependency data"),null;var a=i[mq]&&i[mq][NM]?i[mq][NM]:"GET",s=new IL(e,i.id,i.target,i[_V],i[wV],i.success,i.responseCode,a,i.type,i.correlationContext,o,n),l=new DL(IL[PV],s);return wq(e,IL[IV],t,l)},Cq),Lq=function(e){function t(){var r,n,o,i,a,s,l,c=e.call(this)||this;c.priority=1001,c.identifier=rF;var u,d,f,h,p,m,g,v,y,b,w,x,k,S,_,C,T,E,A,P,I,B,N,D,z,O,R,M,j=0;return rB(t,c,function(e,L){function F(t,n){var o=Oq(t);if(!t||o+""!="200"&&""!==o){var i=jR(o);i&&i[cq]&&i[cq]>i[uq]&&!S?e[sq](n,i):e[aq](n,PD(t))}else r=0,e[lq](n,0)}function V(e,t,r){4===e.readyState&&Q(e.status,t,e.responseURL,r,ID(e),Oq(e)||e.response)}function q(e){try{if(e){var t=e.oriPayload;return t&&t[TV]?t:null}}catch(bze){}return null}function H(t,r){return!w&&(t?t.baseData&&!t[dq]?(r&&fO(r,1,70,"Cannot send telemetry without baseData and baseType"),!1):(t[dq]||(t[dq]="EventData"),e[GV]?(n=t,e._sample.isSampledIn(n)?(t[IM]=e._sample[fq],!0):(r&&fO(r,2,33,"Telemetry item was sampled out and not sent",{SampleRate:e._sample[fq]}),!1)):(r&&fO(r,1,28,"Sender was not initialized"),!1)):(r&&fO(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,k);if(o){var i=!1;if(e[xV]&&e[xV][BM]&&(ZE(e[xV][BM],function(e){try{e&&!1===e(o)&&(i=!0,hO(r,"Telemetry processor check returns false"))}catch(bze){fO(r,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+yD(bze),{exception:HE(bze)},!0)}}),delete e[xV][BM]),!i)return o}else fO(r,1,47,"Unable to create an AppInsights envelope")}function W(t){var r="",n=e[WV]();try{var o=H(t,n),i=null;o&&(i=U(t,n)),i&&(r=a.serialize(i))}catch(bze){}return r}function $(e){var t="";return e&&e[TV]&&(t="["+e.join(",")+"]"),t}function G(e){var t=J();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[TV]):o&&e[aq](t,o)}(r,t,0,o)},a=K(r),s=t&&t.sendPOST;return s&&a&&(o&&e._buffer[MV](r),O.preparePayload(function(e){return s(e,i,!n)},M,a,!n)),null}function K(t){if(NE(t)&&t[TV]>0){var r=e[rq].batchPayloads(t),n=J();return{data:r,urlString:h,headers:n,disableXhrSync:I,disableFetchKeepAlive:!B,oriPayload:t}}return null}function J(){try{var e=l||{};return Aj(h)&&(e[MM[6]]=MM[7]),e}catch(bze){}return null}function X(t){var r=t?t[TV]:0;return e[rq].size()+r>m&&(d&&!d.isOnline()||e[UV](!0,null,10),!0)}function Q(t,n,o,i,a,s){var l=null;if(e._appId||(l=jR(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[aq](n,a);if(d&&!d.isOnline()){if(!S){ne(n,10),fO(e[WV](),2,40,". Offline - Response Code: ".concat(t,". Offline status: ").concat(!d.isOnline(),". Will retry to send ").concat(n.length," items."))}return}!S&&ae(t)?(ne(n),fO(e[WV](),2,40,". Response code "+t+". Will retry to send "+n[TV]+" items.")):e[aq](n,a)}else Z(o),206===t?(l||(l=jR(s)),l&&!S?e[sq](n,l):e[aq](n,a)):(r=0,e[lq](n,i))}function Z(e){return!(s>=10)&&(!CE(e)&&""!==e&&e!==h&&(h=e,++s,!0))}function ee(e,t){if(!u)return Y(O&&O[iq]([3],!0),e,t);u(e,!1)}function te(e){try{if(e&&e[TV])return PE(e[0])}catch(bze){}return null}function re(t,r){var n=null;if(NE(t)){for(var o=t[TV],i=0;i<t[TV];i++)o+=t[i].item[TV];return O.getSyncFetchPayload()+o<=65e3?n=2:JD()?n=3:(n=1,fO(e[WV](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender.")),Y(O&&O[iq]([n],!0),t,r)}return null}function ne(t,o){if(void 0===o&&(o=1),t&&0!==t[TV]){var i=e[rq];i[jV](t),r++;for(var a=0,s=t;a<s.length;a++){var l=s[a];l.cnt=l.cnt||0,l.cnt++,i[NV](l)}!function(e){var t,o=10;if(r<=1)t=o;else{var i=(Math.pow(2,r)-1)/2,a=KP(Math.random()*i*o)+1;t=DA(NA(a*=e,3600),o)}n=qA()+1e3*t}(o),oe()}}function oe(){if(!i&&!o){var t=n?DA(0,n-qA()):0,r=DA(_,t);i=CI(function(){i=null,e[UV](!0,null,1)},r)}}function ie(){i&&i.cancel(),i=null,n=null}function ae(e){return CE(R)?401===e||408===e||429===e||500===e||502===e||503===e||504===e:R[TV]&&R.indexOf(e)>-1}function se(){e[GV]=null,e[rq]=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,k=zq,S=!1,C=null,E=zq,I=!1,B=!1,z=!1,N=null,D=null,O=null,dA(e,"_senderConfig",{g:function(){return TD({},Rq)}})}se(),e.pause=function(){ie(),o=!0},e.resume=function(){o&&(o=!1,n=null,X(),oe())},e.flush=function(t,r,n){if(void 0===t&&(t=!0),!o){ie();try{return e[UV](t,null,n||1)}catch(bze){fO(e[WV](),1,22,"flush failed, telemetry will not be collected: "+yD(bze),{exception:HE(bze)})}}},e.onunloadFlush=function(){if(!o)if(g||P)try{return e[UV](!0,ee,2)}catch(bze){fO(e[WV](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+yD(bze),{exception:HE(bze)})}else e.flush(!1)},e.addHeader=function(e,t){l[e]=t},e[$V]=function(t,o,i,j){e.isInitialized()&&fO(e[WV](),1,28,"Sender is already initialized"),L[$V](t,o,i,j);var H=e.identifier;a=new Iq(o.logger),r=0,n=null,e[GV]=null,s=0;var U=e[WV]();f=dM(mz("Sender"),o.evtNamespace&&o.evtNamespace()),d=function(e){var t=uP(),r=pP(),n=!1,o=[],i=1;!r||CE(r.onLine)||r.onLine||(i=2);var a=0,s=d(),l=dM(mz("OfflineListener"),e);try{if(u(fP())&&(n=!0),t){var c=t.body||t;c.ononline&&u(c)&&(n=!0)}}catch(bze){n=!1}function u(e){var t=!1;return e&&(t=fM(e,"online",h,l))&&fM(e,"offline",p,l),t}function d(){return 2!==a&&2!==i}function f(){var e=d();s!==e&&(s=e,ZE(o,function(e){var t={isOnline:s,rState:i,uState:a};try{e(t)}catch(bze){}}))}function h(){i=1,f()}function p(){i=2,f()}return{isOnline:function(){return s},isListening:function(){return n},unload:function(){var e=fP();if(e&&n){if(eF(e,l),t){var r=t.body||t;SE(r.ononline)||eF(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(jz(t,function(t){var r=t.cfg;r.storagePrefix&&Vj(r.storagePrefix);var n=yR(null,r,o).getExtCfg(H,Rq),i=n[YV];if(h&&i===h){var a=r[YV];a&&a!==i&&(n[YV]=a)}var s=lP("CompressionStream");M=ED("zipPayload",r,!1),IE(s)||(M=!1);var d=n.corsPolicy;d?"same-origin"!==d&&"same-site"!==d&&"cross-origin"!==d||c.addHeader(Mq,d):delete l[Mq],ME(n[KV])&&(n[KV]=r[KV]),dA(e,"_senderConfig",{g:function(){return n}}),p!==n[YV]&&(h=p=n[YV]),o.activeStatus()===yB.PENDING?e.pause():o.activeStatus()===yB.ACTIVE&&e.resume(),b&&b!==n[JV]&&ZE(b,function(e){delete l[e.header]}),m=n[XV],g=(!1===n[QV]||!1===n[ZV])&&JD(),v=!1===n[QV]&&JD(),y=!1===n[ZV]&&JD(),P=n[eq],I=!!n.disableXhr,R=n.retryCodes;var f=n[LV],j=!!n[tq]&&(!!f||Wj()),L=n.namePrefix,W=j!==C||j&&E!==L||j&&T!==f;if(e[rq]){if(W)try{e[rq]=e[rq].createNew(U,n,j)}catch(bze){fO(e[WV](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+yD(bze),{exception:HE(bze)})}X()}else e[rq]=j?new Pq(U,n):new Eq(U,n);E=L,C=j,T=f,B=!n[nq]&&XD(!0),z=!!n[oq],e._sample=new Dq(n.samplingPercentage,U),ME(x=n[KV])||function(e,t){var r=t.disableInstrumentationKeyValidation;if(!CE(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)||fO(U,1,100,"Invalid Instrumentation key "+x),b=n[JV],PE(h)&&!Aj(h)&&b&&b[TV]>0?ZE(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:I,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[TV],e.statusText,r||"")},xhrOnComplete:function(e,t,r){var n=q(r);if(n)return V(e,n,n[TV])},beaconOnRetry:function(t,r,n){return function(t,r,n){var o=t,i=o&&o.oriPayload;if(z)D&&D(i,!0),fO(e[WV](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var a=[],s=0;s<i[TV];s++){var l=i[s],c=[l];n(K(c),r)?e._onSuccess(c,c[TV]):a[zV](l)}a[TV]>0&&(D&&D(a,!0),fO(e[WV](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}(t,r,n)}}}}catch(bze){}return null}();O?O.SetConfig($):(O=new qR)[$V]($,U);var G=n.httpXHROverride,J=null,Z=null,ee=BD([3,1,2],n.transports);J=O&&O[iq](ee,!1);var te=O&&O.getFallbackInst();N=function(e,t){return Y(te,e,t)},D=function(e,t){return Y(te,e,t,!1)},J=P?G:J||G||te,e[GV]=function(e,t){return Y(J,e,t)},B&&(u=re);var ne=BD([3,1],n.unloadTransports);B||(ne=ne.filter(function(e){return 2!==e})),Z=O&&O[iq](ne,!0),Z=P?G:Z||G,(P||n.unloadTransports||!u)&&Z&&(u=function(e,t){return Y(Z,e,t)}),u||(u=N),w=n.disableTelemetry,k=n.convertUndefined||zq,S=n.isRetryDisabled,_=n.maxBatchInterval}))},e.processTelemetry=function(t,r){var n=(r=e._getTelCtx(r))[WV]();try{if(!H(t,n))return;var o=U(t,n);if(!o)return;var i=a.serialize(o),s=e[rq];X(i);var l={item:i,cnt:0};s[NV](l),oe()}catch(bze){fO(n,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+yD(bze),{exception:HE(bze)})}e.processNext(t,r)},e.isCompletelyIdle=function(){return!o&&0===j&&0===e._buffer[DV]()},e.getOfflineListener=function(){return d},e._xhrReadyStateChange=function(e,t,r){if(!te(t))return V(e,t,r)},e[UV]=function(t,r,n){var i;if(void 0===t&&(t=!0),!o)try{var a=e[rq];if(w)a[RV]();else{if(a[DV]()>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(bze){fO(e[WV](),1,74,"send request notification failed: "+yD(bze),{exception:HE(bze)})}}(n||0,t),i=r?r.call(e,s,t):e[GV](s,t)}0}ie()}catch(bze){var l=KD();(!l||l>9)&&fO(e[WV](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+yD(bze),{exception:HE(bze)})}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(),Lz(d,!1),se()},e[aq]=function(t,r,n){if(!te(t))return function(t,r){fO(e[WV](),2,26,"Failed to send telemetry.",{message:r}),e._buffer&&e._buffer[jV](t)}(t,r)},e[sq]=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[zV](c):n[zV](c)}t[TV]>0&&e[lq](t,r[uq]);n[TV]>0&&e[aq](n,ID(null,["partial success",r[uq],"of",r.itemsReceived].join(" ")));o[TV]>0&&(ne(o),fO(e[WV](),2,40,"Partial success. Delivered: "+t[TV]+", Failed: "+n[TV]+". Will retry to send "+o[TV]+" our of "+r[cq]+" items"))}(t,r)},e[lq]=function(t,r){if(!te(t))return function(t){e._buffer&&e._buffer[jV](t)}(t)},e._xdrOnLoad=function(e,t){if(!te(t))return F(e,t)}}),c}return fB(t,e),t.constructEnvelope=function(e,t,r,n){var o;return o=t===e.iKey||CE(t)?e:uB(uB({},e),{iKey:t}),(jq[o.baseType]||Sq)(r,o,n)},t}(TR),Fq="duration",Vq="properties",qq="requestUrl",Hq="length",Uq="traceID",Wq="spanID",$q="traceFlags",Gq="context",Yq="aborted",Kq="_addHook",Jq="core",Xq="includeCorrelationHeaders",Qq="getAbsoluteUrl",Zq="headers",eH="requestHeaders",tH="setRequestHeader",rH="trackDependencyDataInternal",nH="startTime",oH="toLowerCase",iH="enableRequestHeaderTracking",aH="enableAjaxErrorStatusText",sH="enableAjaxPerfTracking",lH="maxAjaxCallsPerView",cH="excludeRequestFromAutoTrackingPatterns",uH="disableAjaxTracking",dH="ajaxPerfLookupDelay",fH="disableFetchTracking",hH="enableResponseHeaderTracking",pH="status",mH="statusText",gH="headerMap",vH="requestSentTime",yH="getTraceId",bH="getTraceFlags",wH="method",xH="errorStatusText",kH="stateChangeAttached",SH="responseText",_H="responseFinishedTime",CH="CreateTrackItem",TH="getAllResponseHeaders",EH="getPartAProps",AH="perfMark",PH="perfTiming",IH="ajaxDiagnosticsMessage",BH="correlationContext",NH="ajaxTotalDuration",DH="eventTraceCtx";function zH(e,t,r){var n=0,o=e[t],i=e[r];return o&&i&&(n=Nj(o,i)),n}function OH(e,t,r,n,o){var i=0,a=zH(r,n,o);return a&&(i=RH(e,t,AL(a))),i}function RH(e,t,r){var n="ajaxPerf",o=0;e&&t&&r&&((e[n]=e[n]||{})[t]=r,o=1);return o}var MH,jH=function(){return function(){var e=this;e.openDone=!1,e.setRequestHeaderDone=!1,e.sendDone=!1,e.abortDone=!1,e[kH]=!1}}(),LH=function(){function e(t,r,n,o){var i=this,a=n;i[AH]=null,i.completed=!1,i.requestHeadersSize=null,i[eH]=null,i.responseReceivingDuration=null,i.callbackDuration=null,i[NH]=null,i[Yq]=0,i.pageUrl=null,i[qq]=null,i.requestSize=0,i[wH]=null,i[pH]=null,i[vH]=null,i.responseStartedTime=null,i[_H]=null,i.callbackFinishedTime=null,i.endTime=null,i.xhrMonitoringState=new jH,i.clientFailure=0,i[Uq]=t,i[Wq]=r,i[$q]=null==o?void 0:o.getTraceFlags(),i[DH]=o?{traceId:o[yH](),spanId:o.getSpanId(),traceFlags:o[bH]()}:null,rB(e,i,function(e){e.getAbsoluteUrl=function(){return e[qq]?(t=e[qq],(n=_j(t))&&(r=n.href),r):null;var t,r,n},e.getPathName=function(){return e[qq]?mj(a,(t=e[wH],r=e[qq],t?t.toUpperCase()+" "+r:r)):null;var t,r},e[CH]=function(t,r,n){var o;if(e.ajaxTotalDuration=fI(1e3*Nj(e.requestSentTime,e.responseFinishedTime))/1e3,e[NH]<0)return null;var i=((o={id:"|"+e[Uq]+"."+e[Wq],target:e[Qq](),name:e.getPathName(),type:t,startTime:null,duration:e[NH],success:+e[pH]>=200&&+e[pH]<400,responseCode:+e[pH]})[Vq]={HttpMethod:e[wH]},o),a=i[Vq];if(e[Yq]&&(a[Yq]=!0),e[vH]&&(i[nH]=new Date,i[nH].setTime(e[vH])),function(e,t){var r=e[PH],n=t[Vq]||{},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,k=u+a,S=u=s,_="transferSize",C="encodedBodySize",T="decodedBodySize",E="serverTiming";if(r){o|=OH(n,u,r,k,S),o|=OH(n,l,r,p,m),o|=OH(n,c,r,g,v),o|=OH(n,d,r,y,b),o|=OH(n,f,r,w,x),o|=OH(n,"networkConnect",r,h,v),o|=OH(n,"sentRequest",r,y,x);var A=r[Fq];A||(A=zH(r,h,x)||0),o|=RH(n,Fq,A),o|=RH(n,"perfTotal",A);var P=r[E];if(P){var I={};ZE(P,function(e,t){var r=mD(e[i]||""+t),n=I[r]||{};QE(e,function(e,t){(e!==i&&PE(t)||zE(t))&&(n[e]&&(t=n[e]+";"+t),!t&&PE(t)||(n[e]=t))}),I[r]=n}),o|=RH(n,E,I)}o|=RH(n,_,r[_]),o|=RH(n,C,r[C]),o|=RH(n,T,r[T])}else e[AH]&&(o|=RH(n,"missing",e.perfAttempts));o&&(t[Vq]=n)}(e,i),r&&wA(e.requestHeaders)[Hq]>0&&(a[eH]=e[eH]),n){var s=n();if(s){var l=s[BH];if(l&&(i.correlationContext=l),s[gH]&&wA(s.headerMap)[Hq]>0&&(a.responseHeaders=s[gH]),e[xH])if(e[pH]>=400){var c=s.type;""!==c&&"text"!==c||(a.responseText=s.responseText?s[mH]+" - "+s.responseText:s[mH]),"json"===c&&(a.responseText=s.response?s[mH]+" - "+JSON.stringify(s.response):s[mH])}else 0===e[pH]&&(a.responseText=s[mH]||"")}}return i},e[EH]=function(){var t=null,r=e[DH];if(r&&(r.traceId||r.spanId)){var n=(t={})[YL]={traceID:r.traceId,parentID:r.spanId};CE(r[$q])||(n[$q]=r[$q])}return t}})}return e.__ieDyn=1,e}(),FH="diagLog",VH="_ajaxData",qH="fetch",HH="Failed to monitor XMLHttpRequest",UH=", monitoring data for this ajax call ",WH=UH+"may be incorrect.",$H=UH+"won't be sent.",GH="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",YH="Failed to add custom defined request context as configured call back may missing a null check.",KH="Failed to calculate the duration of the ",JH=0;var XH=function(e,t){return e&&t&&e[VH]?(e[VH].i||{})[t]:null},QH=function(e,t){var r=!1;if(e){var n=(e[VH]||{}).xh;n&&ZE(n,function(e){if(e.n===t)return r=!0,-1})}return r};function ZH(e,t){var r="";try{var n=XH(e,t);n&&n[qq]&&(r+="(url: '"+n[qq]+"')")}catch(bze){}return r}function eU(e,t,r,n,o){fO(e[FH](),1,t,r,n,o)}function tU(e,t,r,n,o){fO(e[FH](),2,t,r,n,o)}function rU(e,t,r){return function(n){var o;eU(e,t,r,((o={})[IH]=ZH(n.inst,e._ajaxDataId),o.exception=HE(n.err),o))}}function nU(e,t){return e&&t?gI(e,t):-1}function oU(e,t,r){var n={id:t,fn:r};return e.push(n),{remove:function(){ZE(e,function(t,r){if(t.id===n.id)return e.splice(r,1),-1})}}}function iU(e,t,r,n){var o=!0;return ZE(t,function(t,i){try{!1===t.fn.call(null,r)&&(o=!1)}catch(bze){fO(e&&e.logger,1,64,"Dependency "+n+" [#"+i+"] failed: "+yD(bze),{exception:HE(bze)},!0)}}),o}var aU="*.blob.core.",sU=SA([aU+"windows.net",aU+"chinacloudapi.cn",aU+"cloudapi.de",aU+"usgovcloudapi.net"]),lU=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],cU=SA(((MH={})[lH]=500,MH[uH]=!1,MH[fH]=!1,MH[cH]=void 0,MH.disableCorrelationHeaders=!1,MH.distributedTracingMode=1,MH.correlationHeaderExcludedDomains=sU,MH.correlationHeaderDomains=void 0,MH.correlationHeaderExcludePatterns=void 0,MH.appId=void 0,MH.enableCorsCorrelation=!1,MH[iH]=!1,MH[hH]=!1,MH[aH]=!1,MH[sH]=!1,MH.maxAjaxPerfLookupAttempts=3,MH[dH]=25,MH.ignoreHeaders=["Authorization","X-API-Key","WWW-Authenticate"],MH.addRequestContext=void 0,MH.addIntEndpoints=!0,MH)),uU=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,k,S,_,C,T,E,A,P,I,B,N=e.call(this)||this;return N.identifier=t.identifier,N.priority=120,rB(t,N,function(e,N){var D=N[Kq];function z(){var t=UD();r=!1,n=!1,B=!1,o=t&&t.host&&t.host[oH](),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,S=0,_=[],C=[],k=mz("ajaxData"),e._ajaxDataId=k,T=null,E=1,A=1,P=1,I=null}function O(e){var t=!0;return(e||T)&&ZE(T,function(r){if(r[oH]()===e[oH]())return t=!1,-1}),t}function R(e,t,r){D(function(e,t,r){return e?EM(e[aB],t,r,!1):null}(e,t,r))}function M(e,t,r){var n=!1,o=((PE(t)?t:(t||{}).url||"")||"")[oH]();if(ZE(b,function(e){var t=e;PE(e)&&(t=new RegExp(e)),n||(n=t.test(o))}),n)return n;var i=nU(o,"?"),a=nU(o,"#");return(-1===i||-1!==a&&a<i)&&(i=a),-1!==i&&(o=o.substring(0,i)),CE(e)?CE(t)||(n="object"==typeof t&&!0===t[PM]||!!r&&!0===r[PM]):n=!0===e[PM]||!0===o[PM],!n&&o&&Aj(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 CE(e)||(o=!0===r||!CE(t)),i&&o}function L(){var t=null;return e[Jq]&&e[Jq].getTraceCtx&&(t=e[Jq].getTraceCtx(!1)),!t&&c&&c.telemetryTrace&&(t=Dj(c.telemetryTrace)),t}function F(e,t){if(t[qq]&&f&&h){var r=dI();if(r&&IE(r.mark)){JH++;var n=f+e+"#"+JH;r.mark(n);var o=r.getEntriesByName(n);o&&1===o[Hq]&&(t[AH]=o[0])}}}function V(e,t,r,n){var o=t[AH],i=dI(),a=E,s=A,l=t[qq],c=0;!function u(){try{if(i&&o){c++;for(var d=null,f=i.getEntries(),h=f[Hq]-1;h>=0;h--){var p=f[h];if(p){if("resource"===p.entryType)p.initiatorType!==e||-1===nU(p.name,l)&&-1===nU(l,p.name)||(d=p);else if("mark"===p.entryType&&p.name===o.name){t[PH]=d;break}if(p[nH]<o[nH]-1e3)break}}}!o||t[PH]||c>=a||!1===t.async?(o&&IE(i.clearMarks)&&i.clearMarks(o.name),t.perfAttempts=c,r()):CI(u,s)}catch(bze){n(bze)}}()}function q(t){var r="";try{CE(t)||(r+="(url: '".concat("string"==typeof t?t:t.url,"')"))}catch(bze){eU(e,15,"Failed to grab failed fetch diagnostics message",{exception:HE(bze)})}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=HE(r)),tU(e,t,KH+"fetch call"+$H,i)}i&&(i[_H]=Bj(),i[pH]=r,V(qH,i,function(){var t,l=i[CH]("Fetch",a,s);try{w&&(t=w({status:r,request:n,response:o}))}catch(bze){tU(e,104,YH)}if(l){void 0!==t&&(l[Vq]=uB(uB({},l.properties),t));var u=i[EH]();U(C,e[Jq],i,l,null,u)}else c(14,null,{requestSentTime:i[vH],responseFinishedTime:i[_H]})},function(e){c(18,e,null)}))}function U(t,r,n,o,i,a){var s=!0;t[Hq]>0&&(s=iU(r,t,{item:o,properties:i,sysProperties:a,context:n?n[Gq]:null,aborted:!!n&&!!n[Yq]},"initializer"));s&&e[rH](o,i,a)}z(),e.initialize=function(o,l,g,S){var _;e.isInitialized()||(N.initialize(o,l,g,S),x=dM(mz("ajax"),l&&l.evtNamespace&&l.evtNamespace()),function(r){e[Kq](jz(r,function(r){var n=yR(null,r.cfg,e[Jq]);i=n.getExtCfg(t.identifier,cU),P=i.distributedTracingMode,a=i[iH],s=i[aH],h=i[sH],p=i[lH],b=[].concat(i[cH]||[],!1!==i.addIntEndpoints?lU:[]),w=i.addRequestContext,d=0===P||1===P,u=1===P||2===P,h&&(f=k),v=!!i[uH],E=i.maxAjaxPerfLookupAttempts,A=i[dH],T=i.ignoreHeaders,I=i.appId}))}(o),function(){if(!function(e,t){var r,n=!1;if(ZD()){var o=XMLHttpRequest[aB];n=!(CE(o)||CE(o.open)||CE(o.send)||CE(o.abort))}var i=KD();if(i&&i<9&&(n=!1),n)try{var a=new XMLHttpRequest,s={xh:[],i:(r={},r[t]={},r)};a[VH]=s;var l=XMLHttpRequest[aB].open;XMLHttpRequest[aB].open=l}catch(bze){n=!1,eU(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:HE(bze)})}return n}(e,k))return;e[Kq](jz(i,function(){v=!!i[uH],a=i[iH],v||n||(R(XMLHttpRequest,"open",{ns:x,req:function(t,r,n,o){if(!v){var i=t.inst,l=XH(i,k);!M(i,n)&&j(i,l,!0)&&(l&&l.xhrMonitoringState.openDone||(l=function(t,r,n,o){var i,a=L(),l=a&&a[yH]()||QO(),c=RA(QO(),0,16),u=t[VH]=t[VH]||{xh:[],i:{}},d=u.i=u.i||{},f=d[k]=d[k]||new LH(l,c,e[FH](),null===(i=e.core)||void 0===i?void 0:i.getTraceCtx());return f[$q]=a&&a[bH](),f[wH]=r,f[qq]=n,f.xhrMonitoringState.openDone=!0,f[eH]={},f.async=o,f[xH]=s,f}(i,r,n,o)),function(t,r){r.xhrMonitoringState[kH]=fM(t,"readystatechange",function(){var n;try{t&&4===t.readyState&&j(t,r)&&function(t){var r=XH(t,k);function n(r,n){var o=n||{};o.ajaxDiagnosticsMessage=ZH(t,k),r&&(o.exception=HE(r)),tU(e,14,KH+"ajax call"+$H,o)}r[_H]=Bj(),r[pH]=t[pH],V("xmlhttprequest",r,function(){try{var o=r[CH]("Ajax",a,function(){var r,n=((r={statusText:t[mH],headerMap:null})[BH]=function(t){var r;try{var n=t[TH]();if(null!==n)if(-1!==nU(n[oH](),MM[8]))return Ij(t.getResponseHeader(MM[0]))}catch(bze){tU(e,18,GH,((r={})[IH]=ZH(t,k),r.exception=HE(bze),r))}}(t),r.type=t.responseType,r[SH]=function(e){try{var t=e.responseType;if(""===t||"text"===t)return e[SH]}catch(bze){}return null}(t),r.response=t.response,r);if(m){var o=t[TH]();if(o){var i=YP(o).split(/[\r\n]+/),a={};ZE(i,function(e){var t=e.split(": "),r=t.shift(),n=t.join(": ");O(r)&&(a[r]=n)}),n[gH]=a}}return n}),i=void 0;try{w&&(i=w({status:t[pH],xhr:t}))}catch(bze){tU(e,104,YH)}if(o){void 0!==i&&(o[Vq]=uB(uB({},o.properties),i));var s=r[EH]();U(C,e[Jq],r,o,null,s)}else n(null,{requestSentTime:r[vH],responseFinishedTime:r[_H]})}finally{try{var l=(t[VH]||{i:{}}).i||{};l[k]&&(l[k]=null)}catch(bze){}}},function(e){n(e,null)})}(t)}catch(bze){var o=HE(bze);o&&-1!==nU(o[oH](),"c00c023f")||eU(e,16,HH+" 'readystatechange' event handler"+WH,((n={})[IH]=ZH(t,k),n.exception=o,n))}},x)}(i,l))}},hkErr:rU(e,15,HH+".open"+WH)}),R(XMLHttpRequest,"send",{ns:x,req:function(t,r){if(!v){var n=t.inst,o=XH(n,k);j(n,o)&&!o.xhrMonitoringState.sendDone&&(F("xhr",o),o[vH]=Bj(),e[Xq](o,void 0,void 0,n),o.xhrMonitoringState.sendDone=!0)}},hkErr:rU(e,17,HH+WH)}),R(XMLHttpRequest,"abort",{ns:x,req:function(e){if(!v){var t=e.inst,r=XH(t,k);j(t,r)&&!r.xhrMonitoringState.abortDone&&(r[Yq]=1,r.xhrMonitoringState.abortDone=!0)}},hkErr:rU(e,13,HH+".abort"+WH)}),R(XMLHttpRequest,"setRequestHeader",{ns:x,req:function(e,t,r){if(!v){var n=e.inst,o=XH(n,k);o&&j(n,o)&&(!function(e,t,r){if(e){var n=(e[VH]||{}).xh;n&&n.push({n:t,v:r})}}(n,t,r),a&&O(t)&&(o[eH][t]=r))}},hkErr:rU(e,71,HH+".setRequestHeader"+WH)}),n=!0)}))}(),function(){var t=(o=sP(),!o||CE(o.Request)||CE(o.Request[aB])||CE(o[qH])?null:o[qH]);var o;if(!t)return;var l=sP(),c=t.polyfill;e[Kq](jz(i,function(){y=!!i[fH],m=i[hH],y||r?c&&!B&&(D(EM(l,qH,{ns:x,req:function(e,t,r){M(null,t,r)}})),B=!0):(D(EM(l,qH,{ns:x,req:function(t,o,i){var l;if(!y&&r&&!M(null,o,i)&&(!c||!n)){var u=t.ctx();l=function(t,r){var n,o,i=L(),l=i&&i[yH]()||QO(),c=RA(QO(),0,16),u=new LH(l,c,e[FH](),null===(n=e.core)||void 0===n?void 0:n.getTraceCtx());u[$q]=i&&i[bH](),u[vH]=Bj(),u[xH]=s,o=t instanceof Request?(t||{}).url||"":t;if(""===o){var d=UD();d&&d.href&&(o=sI(d.href,"#")[0])}u[qq]=o;var f="GET";r&&r[wH]?f=r[wH]:t&&t instanceof Request&&(f=t[wH]);u[wH]=f;var h={};if(a){new Headers((r?r[Zq]:0)||t instanceof Request&&t[Zq]||{}).forEach(function(e,t){O(t)&&(h[t]=e)})}return u[eH]=h,F(qH,u),u}(o,i);var d=e[Xq](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||{})[pH],r,o,n,function(){var t,r=((t={statusText:(o||{})[mH],headerMap:null})[BH]=function(t){if(t&&t[Zq])try{return Ij(t[Zq].get(MM[0]))}catch(bze){tU(e,18,GH,{fetchDiagnosticsMessage:q(t),exception:HE(bze)})}}(o),t);if(m&&o){var n={};o.headers.forEach(function(e,t){O(t)&&(n[t]=e)}),r[gH]=n}return r}),o}).catch(function(e){throw H(t,0,r,null,n,null,{error:e.message||HE(e)}),e}))}},hkErr:rU(e,15,"Failed to monitor Window.fetch"+WH)},!0,xP())),r=!0)})),c&&(l[qH].polyfill=c)}(),(_=e[Jq].getPlugin(tF))&&(c=_.plugin[Gq]))},e._doTeardown=function(){z()},e.trackDependencyData=function(t,r){U(C,e[Jq],null,t,r)},e[Xq]=function(t,r,n,s){var l=e._currentWindowHost||o;if(function(e,t,r,n,o,i){var a=!0;if(e[Hq]>0){var s={core:t,xhr:n,input:o,init:i,traceId:r[Uq],spanId:r[Wq],traceFlags:r[$q],context:r[Gq]||{},aborted:!!r[Yq]};a=iU(t,e,s,"listener"),r[Uq]=s.traceId,r[Wq]=s.spanId,r[$q]=s[$q],r[Gq]=s[Gq]}return a}(_,e[Jq],t,s,r,n)){if(r||""===r){if(Pj(i,t[Qq](),l)){n||(n={});var f=new Headers(n[Zq]||r instanceof Request&&r[Zq]||{});if(d){var h="|"+t[Uq]+"."+t[Wq];f.set(MM[3],h),a&&(t[eH][MM[3]]=h)}if((m=I||c&&c.appId())&&(f.set(MM[0],MM[2]+m),a&&(t[eH][MM[0]]=MM[2]+m)),u){CE(g=t[$q])&&(g=1);var p=sR(oR(t[Uq],t[Wq],g));f.set(MM[4],p),a&&(t[eH][MM[4]]=p)}n[Zq]=f}return n}if(s){if(Pj(i,t[Qq](),l)){if(d)if(QH(s,MM[3]))tU(e,71,"Unable to set ["+MM[3]+"] as it has already been set by another instance");else{h="|"+t[Uq]+"."+t[Wq];s[tH](MM[3],h),a&&(t[eH][MM[3]]=h)}var m,g;if((m=I||c&&c.appId())&&(QH(s,MM[0])?tU(e,71,"Unable to set ["+MM[0]+"] as it has already been set by another instance"):(s[tH](MM[0],MM[2]+m),a&&(t[eH][MM[0]]=MM[2]+m))),u)if(CE(g=t[$q])&&(g=1),QH(s,MM[4]))tU(e,71,"Unable to set ["+MM[4]+"] as it has already been set by another instance");else{p=sR(oR(t[Uq],t[Wq],g));s[tH](MM[4],p),a&&(t[eH][MM[4]]=p)}}return s}}},e[rH]=function(t,r,n){if(-1===p||l<p){2!==P&&1!==P||"string"!=typeof t.id||"."===t.id[t.id[Hq]-1]||(t.id+="."),CE(t[nH])&&(t[nH]=new Date);var o=WL(t,IL.dataType,IL.envelopeType,e[FH](),r,n);e[Jq].track(o)}else l===p&&eU(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 oU(_,S++,e)},e.addDependencyInitializer=function(e){return oU(C,S++,e)}}),N}return fB(t,e),t.prototype.processTelemetry=function(e,t){this.processNext(e,t)},t.prototype.addDependencyInitializer=function(e){return null},t.identifier="AjaxDependencyPlugin",t}(TR),dU=function(){return function(){}}(),fU=function(){return function(){this.id="browser",this.deviceClass="Browser"}}(),hU=function(){return function(e,t){var r=this,n=jz(e,function(){var t=e.sdkExtension;r.sdkVersion=(t?t+"_":"")+"javascript:3.3.9"});t&&t.add(n)}}(),pU=function(){return function(){}}(),mU="session",gU="sessionManager",vU="isUserCookieSet",yU="isNewUser",bU="getTraceCtx",wU="telemetryTrace",xU="applySessionContext",kU="applyApplicationContext",SU="applyOperationContext",_U="applyOperatingSystemContxt",CU="applyLocationContext",TU="applyInternalContext",EU="getSessionId",AU="sessionCookiePostfix",PU="automaticSession",IU="accountId",BU="authenticatedId",NU="acquisitionDate",DU="renewalDate",zU="cookieSeparator",OU="authUserCookieName",RU=function(){return function(){}}(),MU=function(){function e(t,r,n){var o,i,a,s,l=sO(r),c=NO(r);rB(e,this,function(e){t||(t={});var r=jz(t,function(e){a=t.sessionExpirationMs||864e5,s=t.sessionRenewalMs||18e5;var r=t[AU]||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?fO(l,2,27,"AI session acquisition date is 0"+n):isNaN(a)||a<=0?fO(l,2,27,"AI session renewal date is 0"+n):o[0]&&(e.id=o[0],e[NU]=i,e[DU]=a,r=!0)}catch(bze){fO(l,1,9,"Error parsing ai_session value ["+(t||"")+"]"+n+" - "+yD(bze),{exception:HE(bze)})}return r}function d(e,r){var n=e[NU];e[DU]=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[PU]=new RU,e.update=function(){var r=qA(),n=!1,f=e[PU];if(f.id||(n=!function(e){var t=!1,r=c.get(o);if(r&&IE(r.split))t=u(e,r);else{var n=Hj(l,o);n&&(t=u(e,n))}return t||!!e.id}(f)),!n&&a>0){var h=r-f[NU],p=r-f[DU];n=(n=(n=h<0||p<0)||h>a)||p>s}n?function(r){var n=t.getNewId||uz;e[PU].id=n(t.idLength||22),e[PU][NU]=r,d(e[PU],r),qj()||fO(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[PU];t=i.id,r=i[NU],n=i[DU],Uj(l,o,[t,r,n].join("|"))}})}return e.__ieDyn=1,e}(),jU=function(){return function(e,t,r,n){var o=this;o.traceID=e||QO(),o.parentID=t;var i=UD();!r&&i&&i.pathname&&(r=i.pathname),o.name=pj(n,r)}}();function LU(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))}var FU=function(){function e(t,r,n){this.isNewUser=!1,this.isUserCookieSet=!1;var o,i=sO(r),a=NO(r);rB(e,this,function(r){dA(r,"config",{g:function(){return t}});var s=jz(t,function(){var n=t.userCookiePostfix||"";o=e.userCookieName+n;var s=a.get(o);if(s){r[yU]=!1;var d=s.split(e[zU]);d.length>0&&(r.id=d[0],r[vU]=!!r.id)}if(!r.id){r.id=l(),u(c(r.id).join(e[zU]));var f=(t.namePrefix||"")+"ai_session";!function(e,t){var r=jj();if(null!==r)try{return r[HM](t),!0}catch(bze){Oj=!1,fO(e,2,5,"Browser failed removal of local storage item. "+yD(bze),{exception:HE(bze)})}}(i,f)}r[IU]=t[IU]||void 0;var h=a.get(e[OU]);if(h){var p=(h=decodeURI(h)).split(e[zU]);p[0]&&(r[BU]=p[0]),p.length>1&&p[1]&&(r[IU]=p[1])}});function l(){var e=t||{};return(e.getNewId||uz)(e.idLength?t.idLength:22)}function c(e){var t=vD(new Date);return r.accountAcquisitionDate=t,r[yU]=!0,[e,t]}function u(e){r[vU]=a.set(o,e,31536e3)}n&&n.add(s),r.setAuthenticatedUserContext=function(t,n,o){if(void 0===o&&(o=!1),!LU(t)||n&&!LU(n))fO(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[BU]=t;var s=r[BU];n&&(r[IU]=n,s=[r[BU],r.accountId].join(e[zU])),o&&a.set(e[OU],encodeURI(s))}},r.clearAuthenticatedUserContext=function(){r[BU]=null,r[IU]=null,a.del(e[OU])},r.update=function(t){r.id===t&&r[vU]||u(c(t||l()).join(e[zU]))}})}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}(),VU="ext",qU="tags";function HU(e,t){e&&e[t]&&0===wA(e[t]).length&&delete e[t]}function UU(){return null}var WU,$U,GU,YU,KU,JU,XU,QU=function(){function e(t,r,n,o){var i=this,a=t.logger;rB(e,this,function(e){if(e.appId=UU,e[EU]=UU,e.application=new dU,e.internal=new hU(r,o),dP()){e[gU]=new MU(r,t,o),e.device=new fU,e.location=new pU,e.user=new FU(r,t,o);var s,l=void 0,c=void 0;n&&(l=n.getTraceId(),c=n.getSpanId(),s=n.getName()),e[wU]=new jU(l,c,s,a),e[mU]=new RU}e[EU]=function(){var t=e[mU],r=null;if(t&&PE(t.id))r=t.id;else{var n=(e[gU]||{})[PU];r=n&&PE(n.id)?n.id:null}return r},e[xU]=function(t,r){bD(wD(t.ext,JL),"sesId",e[EU](),PE)},e[_U]=function(t,r){bD(t.ext,XL,e.os)},e[kU]=function(t,r){var n=e.application;if(n){var o=wD(t,qU);bD(o,QL.applicationVersion,n.ver,PE),bD(o,QL.applicationBuild,n.build,PE)}},e.applyDeviceContext=function(t,r){var n=e.device;if(n){var o=wD(wD(t,VU),GL);bD(o,"localId",n.id,PE),bD(o,"ip",n.ip,PE),bD(o,"model",n.model,PE),bD(o,"deviceClass",n.deviceClass,PE)}},e[TU]=function(t,r){var n=e.internal;if(n){var o=wD(t,qU);bD(o,QL.internalAgentVersion,n.agentVersion,PE),bD(o,QL.internalSdkVersion,pj(a,n.sdkVersion,64),PE),t.baseType!==aO.dataType&&t.baseType!==PL.dataType||(bD(o,QL.internalSnippet,n.snippetVer,PE),bD(o,QL.internalSdkSrc,n.sdkSrc,PE))}},e[CU]=function(e,t){var r=i.location;r&&bD(wD(e,qU,[]),QL.locationIp,r.ip,PE)},e[SU]=function(t,r){var n=e[wU];if(n){var o=wD(wD(t,VU),YL,{traceID:void 0,parentID:void 0});bD(o,"traceID",n.traceID,PE,CE),bD(o,"name",n.name,PE,CE),bD(o,"parentID",n.parentID,PE,CE)}},e.applyWebContext=function(e,t){var r=i.web;r&&bD(wD(e,VU),KL,r)},e.applyUserContext=function(t,r){var n=e.user;if(n){bD(wD(t,qU,[]),QL.userAccountId,n[IU],PE);var o=wD(wD(t,VU),$L);bD(o,"id",n.id,PE),bD(o,"authId",n[BU],PE)}},e.cleanUp=function(e,t){var r=e.ext;r&&(HU(r,GL),HU(r,$L),HU(r,KL),HU(r,XL),HU(r,JL),HU(r,YL))}})}return e.__ieDyn=1,e}(),ZU=null,eW=kA(((WU={accountId:ZU,sessionRenewalMs:18e5,samplingPercentage:100,sessionExpirationMs:864e5,cookieDomain:ZU,sdkExtension:ZU,isBrowserLinkTrackingEnabled:!1,appId:ZU})[EU]=ZU,WU.namePrefix=$U,WU[AU]=$U,WU.userCookiePostfix=$U,WU.idLength=22,WU.getNewId=ZU,WU)),tW=function(e){function t(){var r,n,o,i,a,s=e.call(this)||this;return s.priority=110,s.identifier=tF,rB(t,s,function(e,t){function s(){r=null,n=null,o=null,i=null,a=!0}s(),dA(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(jz(t,function(){var n=yR(null,t,l);t.storagePrefix&&Vj(t.storagePrefix),a=!1!==t.disableUserInitMessage,r=n.getExtCfg(s,eW),e._extConfig=r})),o=l[bU](!1),i=new QU(l,r,o,e._unloadHooks),n=Dj(e.context[wU],o),l.setTraceCtx(n),e.context.appId=function(){var e=l.getPlugin(rF);return e?e.plugin._appId:null}}(s)},e.processTelemetry=function(t,r){if(!CE(t)){r=e._getTelCtx(r),t.name===PL.envelopeType&&r.diagLog().resetInternalMessageCount();var n=i||{};n[mU]&&"string"!=typeof i[mU].id&&n[gU]&&n[gU].update();var o=n.user;if(o&&!o[vU]&&o.update(n.user.id),function(t,r){wD(t,"tags",[]),wD(t,"ext",{});var n=e.context;n[xU](t,r),n[kU](t,r),n.applyDeviceContext(t,r),n[SU](t,r),n.applyUserContext(t,r),n[_U](t,r),n.applyWebContext(t,r),n[CU](t,r),n[TU](t,r),n.cleanUp(t,r)}(t,r),o&&o[yU]&&(o[yU]=!1,!a)){var s=new aO(72,(pP()||{}).userAgent||"");!function(e,t,r){dO(e).logInternalMessage(t,r)}(r.diagLog(),1,s)}e.processNext(t,r)}},e._doTeardown=function(e,t){var r=(e||{}).core();r&&r[bU]&&(r[bU](!1)===n&&r.setTraceCtx(o));s()}}),s}return fB(t,e),t.__ieDyn=1,t}(TR),rW="AuthenticatedUserContext",nW="track",oW="snippet",iW="flush",aW="pollInternalLogs",sW="getPlugin",lW="evtNamespace",cW=nW+"Event",uW=nW+"Trace",dW=nW+"Metric",fW=nW+"PageView",hW=nW+"Exception",pW=nW+"DependencyData",mW="set"+rW,gW="clear"+rW,vW="connectionString",yW="version",bW="queue",wW="instrumentationKey",xW="userOverrideEndpointUrl",kW="endpointUrl",SW="onunloadFlush",_W="context",CW="addHousekeepingBeforeUnload",TW="sendMessage",EW=[oW,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"],AW="iKeyUsage",PW="CdnUsage",IW="SdkLoaderVer",BW=void 0,NW={disabled:!0,limit:Hz({samplingRate:100,maxSendNumber:1}),interval:Hz({monthInterval:3,daysOfMonth:[28]})},DW=((GU={})[vW]=BW,GU.endpointUrl=BW,GU[wW]=BW,GU[xW]=BW,GU.diagnosticLogInterval=Wz(function(e){return e&&e>0},1e4),GU.featureOptIn=((YU={})[AW]={mode:3},YU[PW]={mode:2},YU[IW]={mode:2},YU.zipPayload={mode:1},YU),GU.throttleMgrCfg=Hz(((KU={})[109]=Hz(NW),KU[106]=Hz(NW),KU[111]=Hz(NW),KU[110]=Hz(NW),KU)),GU.extensionConfig=Hz(((JU={}).AppInsightsCfgSyncPlugin=Hz({cfgUrl:"https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json",syncMode:2}),JU)),GU);function zW(e,t){return VN(function(r,n){wN(t,function(t){var n=t&&t.value,o=null;!t.rejected&&n&&(e[vW]=n,o=Jj(n)),r(o)})})}var OW=function(){function e(t){var r,n,o,i,a,s,l,c,u,d,f,h,p,m,g=this;rB(e,this,function(e){y(),dA(e,"config",{g:function(){return c}}),ZE(["pluginVersionStringArr","pluginVersionString"],function(t){dA(e,t,{g:function(){return l?l[t]:null}})}),i=""+(t.sv||t[yW]||""),t[bW]=t[bW]||[],t[yW]=t[yW]||2;var v=Mz(t.config||{},DW);function y(){a=mz("AISKU"),s=null,r=null,n=null,o=null,i=null,f=null,h=!1,p=!1,m=!1,d=new bV}function b(){s&&(vM(null,s),bM(null,s))}function w(e){l.addUnloadHook(e)}c=v.cfg,u=new aV,dA(e,"appInsights",{g:function(){return u}}),n=new tW,r=new uU,o=new Lq,l=new MR,dA(e,"core",{g:function(){return l}}),w(jz(v,function(){var e=c[vW];if(ME(e)){var t=VN(function(t,r){wN(zW(c,e),function(e){if(e.rejected)t(null);else{var r=c[wW],n=e.value;r=n&&n.instrumentationkey||r,t(r)}})}),r=c[xW];CE(r)&&(r=VN(function(t,r){wN(zW(c,e),function(e){if(e.rejected)t(null);else{var r=c[kW],n=e.value,o=n&&n.ingestionendpoint;t(r=o?o+zM:r)}})})),c[wW]=t,c[kW]=r}if(PE(e)&&e){var n=Jj(e),o=n.ingestionendpoint;c.endpointUrl=c[xW]?c[xW]:o+zM,c[wW]=n.instrumentationkey||c[wW]}c.endpointUrl=c[xW]?c[xW]:c[kW]})),e[oW]=t,e[iW]=function(e,t){var r;return void 0===e&&(e=!0),JO(l,function(){return"AISKU.flush"},function(){e&&!t&&(r=qN(function(e){t=e}));var n=1,o=function(){0===--n&&t()};ZE(l.getChannels(),function(t){t&&(n++,t[iW](e,o))}),o()},null,e),r},e[SW]=function(e){void 0===e&&(e=!0),ZE(l.getChannels(),function(t){t[SW]?t[SW]():t[iW](e)})},e.loadAppInsights=function(t,a,s){return void 0===t&&(t=!1),t&&function(e){throw MP||(MP=HP("UnsupportedError")),new MP(e)}("Legacy Mode is no longer supported"),JO(e.core,function(){return"AISKU.loadAppInsights"},function(){l.initialize(c,[o,n,r,u,d],a,s),dA(e,"context",{g:function(){return n[_W]}}),f||(f=new Kj(l));var t=function(){if(XU)return XU;var e=null,t=!1,r=["://js.monitor.azure.com/","://az416426.vo.msecnd.net/"];try{var n=(document||{}).currentScript;n&&(e=n.src)}catch(bze){}if(e){try{var o=e.toLowerCase();if(o){var i="";ZE(r,function(e,r){if(-1!==gI(o,e))return i="cdn"+(r+1),-1===gI(o,"/scripts/")&&(-1!==gI(o,"/next/")?i+="-next":-1!==gI(o,"/beta/")&&(i+="-beta")),XU=i+(t?".mod":""),-1})}}catch(bze){}XU=e}return XU}();t&&e[_W]&&(e[_W].internal.sdkSrc=t),function(t){if(t){var r="";CE(i)||(r+=i),e[_W]&&e[_W].internal&&(e[_W].internal.snippetVer=r||"-"),QE(e,function(e,r){PE(e)&&!IE(r)&&e&&"_"!==e[0]&&-1===DP(EW,e)&&t[e]!==r&&(t[e]=r)})}}(e[oW]),e.emptyQueue(),e[aW](),e[CW](e),w(jz(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[vW]||!ED(AW,c,!0)||(f[TW](106,"See Instrumentation key support at aka.ms/IkeyMigrate"),h=!0),!p&&e[_W].internal.sdkSrc&&-1!=e[_W].internal.sdkSrc.indexOf("az416426")&&ED(PW,c,!0)&&(f[TW](110,"See Cdn support notice at aka.ms/JsActiveCdn"),p=!0),!m&&parseInt(i)<6&&ED(IW,c,!0)&&(f[TW](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),m=!0)}))}),e},e.updateSnippetDefinitions=function(t){kD(t,e,function(e){return e&&-1===DP(EW,e)})},e.emptyQueue=function(){try{if(NE(e.snippet[bW])){for(var t=e.snippet[bW].length,r=0;r<t;r++){(0,e.snippet[bW][r])()}e.snippet[bW]=void 0,delete e.snippet[bW]}}catch(n){n&&IE(n.toString)&&n.toString()}},e[CW]=function(t){if(dP()||cP()){var r=function(){if(t[SW](!1),IE(e.core[sW])){var r=g.core[sW](tF);if(r){var n=r.plugin;n&&n[_W]&&n[_W]._sessionManager&&n[_W]._sessionManager.backup()}}},n=!1;s||(s=dM(a,l[lW]&&l[lW]())),w(jz(c,function(e){var o=e.cfg,i=t.appInsights,a=yR(null,o,i.core).getExtCfg(i.identifier||nF);b();var c=o.disablePageUnloadEvents;a.disableFlushOnBeforeUnload||(gM(r,c,s)&&(n=!0),yM(r,c,s)&&(n=!0),n||GD()||fO(l.logger,1,19,"Could not add handler for beforeunload and pagehide")),n||a.disableFlushOnUnload||yM(r,c,s)}))}},e.getSender=function(){return o},e.unload=function(t,r,n){var o,i=!1;return t&&!r&&(o=qN(function(e){r=e})),e[SW](t),b(),l.unload&&l.unload(t,function(e){i||(i=!0,y(),r&&r(e))},n),o},_D(e,u,["getCookieMgr",cW,fW,"trackPageViewPerformance",hW,"_onerror",uW,dW,"startTrackPage","stopTrackPage","startTrackEvent","stopTrackEvent"]),_D(e,function(){return r},[pW,"addDependencyListener","addDependencyInitializer"]),_D(e,l,["addTelemetryInitializer",aW,"stopPollingInternalLogs",sW,"addPlugin",lW,"addUnloadCb","getTraceCtx","updateCfg","onCfgChange"]),_D(e,function(){var e=n[_W];return e?e.user:null},[mW,gW])})}return e.prototype.addDependencyInitializer=function(e){return null},e}();let RW=null;function MW(){return RW||(RW={mode:"production",buildTime:"2026-02-11T14:07:41.612Z",version:"1.0.0-alpha.1",commitHash:"b8bf320a8c2c6f0b41d6df5a512734a8fb20a196"},RW)}function jW(){const e=MW();return{build_mode:e.mode,build_time:e.buildTime,build_version:e.version,build_commit_hash:e.commitHash}}const{log:LW,logWarn:FW}=z.withKind("telemetryService");let VW,qW=!1;function HW(e){qW&&VW.trackEvent({name:e.name,properties:{...e.properties},measurements:e.measurements})}function UW(e){qW&&VW.trackException({exception:e.exception,severityLevel:e.severityLevel,properties:e.properties})}function WW(e){if(!qW)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),VW.trackDependencyData(t)}window.ucaAppInsights={trackEvent:HW,trackException:UW};const $W={initialize:function(e){qW||(VW=new OW({config:{disableFetchTracking:!1,disableAjaxTracking:!1,enableAutoRouteTracking:!1,enableCorsCorrelation:!0,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,samplingPercentage:e.samplingPercentage||100,...e}}),VW.loadAppInsights(),VW.addTelemetryInitializer(e=>{if(e.data){e.data.baseData=e.data.baseData||{};try{const t=window.location.hostname,r="production",n="UnifiedChatAssistant",o=Xme.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:FW("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=jW();e.tags=e.tags||{},e.tags["ai.cloud.role"]=n,e.tags["ai.cloud.roleInstance"]=`${r}`;const h={component:n,hostname:t,environment:r,partnerId:i,conversationId:u,...f,siteUrl:window.location.origin+window.location.pathname,referrer:document.referrer||"direct",userAgent:navigator.userAgent},p=e.data.baseData,m=("string"==typeof p?.name?String(p.name):"").startsWith("LivePerson"),g=p&&"object"==typeof p.properties&&p.properties?p.properties:{},v={...h,...g};"string"==typeof g.conversationId&&0!==g.conversationId.trim().length||(v.conversationId=u),m&&"string"==typeof d&&d.trim().length>0&&("string"!=typeof g.skillId||0===g.skillId.trim().length)&&(v.skillId=d),e.data.baseData={...p,properties:v}}catch(t){const r=jW(),n=e.data.baseData,o=n&&"object"==typeof n.properties&&n.properties?n.properties:{};e.data.baseData={...n,properties:{component:"UnifiedChatAssistant",...r,...o}}}}}),qW=!0,LW("TelemetryService initialized successfully"))},trackEvent:HW,trackException:UW,trackDependency:WW,trackMetric:function(e,t,r){qW&&VW.trackMetric({name:e,average:t,properties:r})},flush:function(){qW&&VW.flush()}},{logWarn:GW,logError:YW}=z.withKind("telemetryHelpers");let KW=!1,JW=!1;function XW(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=XC(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={...XC(n)};$W.trackException({exception:o,properties:i})}catch(n){console.error("Failed to track component error:",n)}}function QW(e,t,r,n,o,i,a){try{$W.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 ZW(e){try{$W.trackEvent({name:e,properties:{actionType:e}})}catch(t){console.error("Failed to track user engagement events:",t)}}const e$=KC,t$=(e,t,r="en-US")=>{try{const n=e$[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?t$("default","general_promptId",r):[]}catch(n){return XW("PromptStore",n,{operation:"getPrompts",partnerId:e||"unknown",promptId:t||"unknown",locale:r||"unknown",component:"PromptStore"}),[]}},r$=t$("default","general_promptId","en-US"),n$={default:{partnerId:"default",currentPromptId:"general_promptId",currentLocale:"en-US"},"1f4c8b40-1994-4a78-930b-6dbe880ebb77":{partnerId:"1f4c8b40-1994-4a78-930b-6dbe880ebb77",currentPromptId:"m365_business_trial_step_1",currentLocale:"en-US"}},o$=Kx({name:"proactivePrompts",initialState:((e="default")=>({activePrompts:[],promptContext:null,promptsId:"",promptsCleared:!1,hasReceivedEvent:!1,partnerId:"default",currentPromptId:"general_promptId",currentLocale:"en-US",...n$[e]||n$.default}))("default"),reducers:{},extraReducers:e=>{e.addCase(YC.setPrompts,(e,t)=>{const{prompts:r,context:n,promptsId:o}=t.payload;Object.assign(e,{activePrompts:r,promptContext:n||null,promptsId:o||"",hasReceivedEvent:!0,promptsCleared:!1})}).addCase(YC.clearPrompts,e=>{Object.assign(e,{activePrompts:[],promptContext:null,promptsId:"",promptsCleared:!0})}).addCase(YC.resetClearedState,e=>{e.promptsCleared=!1,e.hasReceivedEvent=!1}).addCase(YC.handlePromptTrigger,(e,t)=>{const r=t.payload?.[0];r?.prompts?.length&&Object.assign(e,{activePrompts:r.prompts,promptContext:r.context||null,promptsId:r.promptsId||"",hasReceivedEvent:!0,promptsCleared:!1})}).addCase(YC.initializeDefaults,e=>{if(!e.activePrompts.length&&!e.promptsCleared){const t=t$(e.partnerId,e.currentPromptId,e.currentLocale);console.log("initializeDefaults",{prompts:t}),Object.assign(e,{activePrompts:t.length?t:r$,promptContext:{locale:e.currentLocale,page:"initialization"},promptsId:e.currentPromptId,hasReceivedEvent:!0})}}).addCase(YC.setPartnerConfig,(e,t)=>{const{partnerId:r,currentPromptId:n,currentLocale:o}=t.payload,i=r&&r!==e.partnerId;r&&(e.partnerId=r),n&&(e.currentPromptId=n),o&&(e.currentLocale=o),i&&Object.assign(e,{activePrompts:[],promptContext:null,promptsId:"",hasReceivedEvent:!1,promptsCleared:!1})})}}),i$={activePrompts:e=>e.proactivePrompts.activePrompts,promptContext:e=>e.proactivePrompts.promptContext,promptsId:e=>e.proactivePrompts.promptsId,promptsCleared:e=>e.proactivePrompts.promptsCleared,hasReceivedEvent:e=>e.proactivePrompts.hasReceivedEvent,partnerId:e=>e.optionsProvider?.options?.partnerId||e.proactivePrompts.partnerId||"default",currentPromptId:e=>e.proactivePrompts.currentPromptId,currentLocale:e=>e.proactivePrompts.currentLocale,partnerConfig:e=>({partnerId:i$.partnerId(e),currentPromptId:e.proactivePrompts.currentPromptId,currentLocale:e.proactivePrompts.currentLocale}),hasPartnerConfig:e=>t=>e in n$,currentPrompts:e=>_x([e=>e.proactivePrompts,e=>e.webChat.chatHistory.length>0,()=>vC(),()=>e],(e,t,r,n)=>{const{activePrompts:o,hasReceivedEvent:i,partnerId:a,currentPromptId:s,currentLocale:l}=e;if(r&&!i)return[];if(o.length&&i)return o;const c=t$(a,s,l);return i&&c.length||!i&&t&&c.length?c:[]}),hasCurrentPrompts:e=>{const t=i$.currentPrompts(e);return _x([t],e=>e.length>0)},hasActivePrompts:e=>e.proactivePrompts.activePrompts.length>0},a$=o$.reducer,s$=Kx({name:"themeProvider",initialState:{theme:R.Day},reducers:{setTheme:(e,t)=>{e.theme=t.payload}}}),{setTheme:l$}=s$.actions,c$=s$.reducer;function u$(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{l(n.next(e))}catch(bze){i(bze)}}function s(e){try{l(n.throw(e))}catch(bze){i(bze)}}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 d$=["long","short","compact"];function f$(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 h$=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",f$],["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(),d$.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 p$(e){return"object"==typeof e&&null!==e}function m$(e){return void 0!==e&&("string"==typeof e||"number"==typeof e)}function g$(e,t){return e===t||(Array.isArray(e)&&Array.isArray(t)?v$(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(!v$(r,n))return!1;let o=!0;for(const i of r)o&&(o=g$(e[i],t[i]));return o}(e,t)))}function v$(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=g$(o,i))}return r}class y${constructor(e,t){this.declaration=e,this.params=t}execute(){return u$(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 b${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 u$(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(g$(e.params,t)){r=e;break}r&&r.isOutdated()&&(n.delete(r),r=void 0),r||(r=new y$(e,t),n.add(r))}else r=new y$(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 w${constructor(e){this.name=e}withCacheResultFor(e){return this.cacheResultFor=e,this}}class x$ extends w${constructor(e,t){super(e),this.callback=t}call(e){return u$(this,void 0,void 0,function*(){return this.callback(...null!=e?e:[])})}}const k$=["string","number","boolean","identifier"],S$=[["/","*"],["-","+"],["==","!=","<","<=",">",">=","&&","||","in"]];class _${static parse(e){const t=[];let r=0;for(;r<e.length;){const n=e.substring(r);let o=!1;for(const e of _$.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 C$(e){if("object"==typeof e&&!Array.isArray(e))throw new Error(`Invalid value type "${typeof e}"`);return e}_$.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 T$=["/","*","-","+","==","!=","<","<=",">",">=","&&","||","in"];class E${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=E$._functionCallCacheMap.get(e.groupId),t||(t=new b$,E$._functionCallCacheMap.set(e.groupId,t))),this._functionCallCache=null!=t?t:new b$,null==e?void 0:e.functions)for(const r of e.functions)this._functions.set(r.name,r)}clone(){return new E$({$root:this.$root,groupId:this.groupId,functions:Array.from(this._functions.values())})}executeFunction(e,...t){return u$(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=h$.get(e);return r?new x$(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}}E$._functionCallCacheMap=new Map;class A${}class P$ extends A${constructor(e){super(),this.operator=e}evaluate(e,t,r){return u$(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 I$ extends A${constructor(){super(...arguments),this.nodes=[],this.allowNull=!0}evaluate(e){return u$(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 S$){let n=0;for(;n<t.length;){const o=t[n];if(o instanceof P$&&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,C$(r),C$(i));t.splice(n-1,3,new z$(a)),n--}n++}}return yield t[0].evaluate(e)})}}class B$ extends A${evaluate(e){return u$(this,void 0,void 0,function*(){return this.identifier})}}class N$ extends A${evaluate(e){return u$(this,void 0,void 0,function*(){return void 0!==this.index?yield this.index.evaluate(e):void 0})}}class D$ extends A${constructor(e){super(),this.functionName=e,this.parameters=[]}evaluate(e){return u$(this,void 0,void 0,function*(){return yield e.executeFunction(this.functionName,...this.parameters)})}}class z$ extends A${constructor(e){super(),this.value=e}evaluate(e){return u$(this,void 0,void 0,function*(){return this.value})}}class O$ extends A${constructor(){super(...arguments),this.items=[]}evaluate(e){return u$(this,void 0,void 0,function*(){return yield Promise.all(this.items.map(t=>t.evaluate(e)))})}}let R$=class extends A${constructor(){super(...arguments),this.parts=[]}evaluate(e){return u$(this,void 0,void 0,function*(){let t,r=0;for(;r<this.parts.length;){const n=this.parts[r];if(n instanceof B$&&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:p$(e.currentDataContext)&&n.identifier&&(t=e.currentDataContext[n.identifier])}else{const o=yield n.evaluate(e);if(0===r)t=o;else{if(!p$(t)||!m$(o))throw new Error("Invalid path node.");t=t[o]}}r++}return t})}};class M${static isReservedField(e){return M$._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 D$(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 B$;return e.identifier=this.current.value,this.moveNext(),e}parseIndexer(){const e=new N$;return this.parseToken("["),e.index=this.parseExpression(),this.parseToken("]"),e}parsePath(){const e=new R$;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 B$||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 O$;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 I$;let t=[...k$,"(","[","+","-"],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=T$,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 z$(this.current.value)):"number"===this.current.type?e.nodes.push(new z$(f$(this.current.value))):e.nodes.push(new z$("true"===this.current.value)),this.moveNext(),t=T$,r=!0;break;case"-":0===e.nodes.length?(e.nodes.push(new z$(-1)),e.nodes.push(new P$("*")),t=["identifier","number","("]):(e.nodes.push(new P$(this.current.type)),t=[...k$,"("]),this.moveNext();break;case"+":0===e.nodes.length?t=[...k$,"("]:(e.nodes.push(new P$(this.current.type)),t=[...k$,"(","["]),this.moveNext();break;case"*":case"/":case"==":case"!=":case"<":case"<=":case">":case">=":case"&&":case"||":e.nodes.push(new P$(this.current.type)),this.moveNext(),t=[...k$,"("];break;case"in":e.nodes.push(new P$(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=_$.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()}}M$._reservedFields=new Set(["$data","$root","$var","$index"]);class j${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 M$(e);this._rootNode=r.parse()}evaluate(e){return u$(this,void 0,void 0,function*(){const t=null!=e?e:new E$,r=yield this._rootNode.evaluate(t);return this._assignResultTo&&(void 0===t.$var&&(t.$var={}),t.$var[this._assignResultTo]=r),r})}}function L$(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 F$(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 V$=new Map;function q$(e,t){V$.set(e,t)}class H${}var U$,W$,$$,G$,Y$,K$,J$,X$,Q$,Z$,eG,tG,rG,nG,oG,iG,aG,sG,lG,cG,uG,dG,fG,hG,pG,mG,gG,vG,yG,bG,wG,xG,kG,SG,_G,CG,TG,EG,AG,PG,IG,BG,NG,DG,zG,OG,RG,MG,jG,LG,FG,VG,qG,HG,UG,WG,$G,GG;H$.Default="default",H$.Emphasis="emphasis",H$.Accent="accent",H$.Good="good",H$.Attention="attention",H$.Warning="warning",(W$=U$||(U$={})).Default="default",W$.Positive="positive",W$.Destructive="destructive",q$(U$,"ActionStyle"),(G$=$$||($$={})).Primary="primary",G$.Secondary="secondary",q$($$,"ActionMode"),(K$=Y$||(Y$={}))[K$.Auto=0]="Auto",K$[K$.Stretch=1]="Stretch",K$[K$.Small=2]="Small",K$[K$.Medium=3]="Medium",K$[K$.Large=4]="Large",q$(Y$,"Size"),(X$=J$||(J$={}))[X$.Small=0]="Small",X$[X$.Medium=1]="Medium",X$[X$.Large=2]="Large",q$(J$,"ImageSize"),(Z$=Q$||(Q$={}))[Z$.Cover=0]="Cover",Z$[Z$.Contain=1]="Contain",Z$[Z$.Fill=2]="Fill",q$(Q$,"ImageFitMode"),(tG=eG||(eG={}))[tG.xxSmall=0]="xxSmall",tG[tG.xSmall=1]="xSmall",tG[tG.Small=2]="Small",tG[tG.Standard=3]="Standard",tG[tG.Medium=4]="Medium",tG[tG.Large=5]="Large",tG[tG.xLarge=6]="xLarge",tG[tG.xxLarge=7]="xxLarge",q$(eG,"IconSize"),(nG=rG||(rG={}))[nG.Regular=0]="Regular",nG[nG.Filled=1]="Filled",q$(rG,"IconStyle"),(iG=oG||(oG={}))[iG.Weight=0]="Weight",iG[iG.Pixel=1]="Pixel",q$(oG,"SizeUnit"),(sG=aG||(aG={}))[sG.Small=0]="Small",sG[sG.Default=1]="Default",sG[sG.Medium=2]="Medium",sG[sG.Large=3]="Large",sG[sG.ExtraLarge=4]="ExtraLarge",q$(aG,"TextSize"),(cG=lG||(lG={}))[cG.Lighter=0]="Lighter",cG[cG.Default=1]="Default",cG[cG.Bolder=2]="Bolder",q$(lG,"TextWeight"),(dG=uG||(uG={}))[dG.Default=0]="Default",dG[dG.Monospace=1]="Monospace",q$(uG,"FontType"),(hG=fG||(fG={}))[hG.None=0]="None",hG[hG.ExtraSmall=1]="ExtraSmall",hG[hG.Small=2]="Small",hG[hG.Default=3]="Default",hG[hG.Medium=4]="Medium",hG[hG.Large=5]="Large",hG[hG.ExtraLarge=6]="ExtraLarge",hG[hG.Padding=7]="Padding",q$(fG,"Spacing"),(mG=pG||(pG={}))[mG.Default=0]="Default",mG[mG.Dark=1]="Dark",mG[mG.Light=2]="Light",mG[mG.Accent=3]="Accent",mG[mG.Good=4]="Good",mG[mG.Warning=5]="Warning",mG[mG.Attention=6]="Attention",q$(pG,"TextColor"),(vG=gG||(gG={}))[vG.Left=0]="Left",vG[vG.Center=1]="Center",vG[vG.Right=2]="Right",q$(gG,"HorizontalAlignment"),(bG=yG||(yG={}))[bG.Top=0]="Top",bG[bG.Center=1]="Center",bG[bG.Bottom=2]="Bottom",q$(yG,"VerticalAlignment"),(xG=wG||(wG={}))[xG.Left=0]="Left",xG[xG.Center=1]="Center",xG[xG.Right=2]="Right",xG[xG.Stretch=3]="Stretch",q$(wG,"ActionAlignment"),(SG=kG||(kG={}))[SG.Default=0]="Default",SG[SG.Person=1]="Person",SG[SG.RoundedCorners=2]="RoundedCorners",q$(kG,"ImageStyle"),(CG=_G||(_G={}))[CG.Inline=0]="Inline",CG[CG.Popup=1]="Popup",q$(_G,"ShowCardActionMode"),(EG=TG||(TG={}))[EG.Horizontal=0]="Horizontal",EG[EG.Vertical=1]="Vertical",q$(TG,"Orientation"),(PG=AG||(AG={}))[PG.Cover=0]="Cover",PG[PG.RepeatHorizontally=1]="RepeatHorizontally",PG[PG.RepeatVertically=2]="RepeatVertically",PG[PG.Repeat=3]="Repeat",q$(AG,"FillMode"),(BG=IG||(IG={}))[BG.Normal=0]="Normal",BG[BG.Expanded=1]="Expanded",BG[BG.Subdued=2]="Subdued",q$(IG,"ActionButtonState"),(DG=NG||(NG={}))[DG.LeftOfTitle=0]="LeftOfTitle",DG[DG.AboveTitle=1]="AboveTitle",q$(NG,"ActionIconPlacement"),(OG=zG||(zG={}))[OG.Text=0]="Text",OG[OG.Tel=1]="Tel",OG[OG.Url=2]="Url",OG[OG.Email=3]="Email",OG[OG.Password=4]="Password",q$(zG,"InputTextStyle"),(MG=RG||(RG={}))[MG.Parse=0]="Parse",MG[MG.ToJSON=1]="ToJSON",MG[MG.Validation=2]="Validation",(LG=jG||(jG={}))[LG.Hint=0]="Hint",LG[LG.ActionTypeNotAllowed=1]="ActionTypeNotAllowed",LG[LG.CollectionCantBeEmpty=2]="CollectionCantBeEmpty",LG[LG.Deprecated=3]="Deprecated",LG[LG.ElementTypeNotAllowed=4]="ElementTypeNotAllowed",LG[LG.InteractivityNotAllowed=5]="InteractivityNotAllowed",LG[LG.InvalidPropertyValue=6]="InvalidPropertyValue",LG[LG.MissingCardType=7]="MissingCardType",LG[LG.PropertyCantBeNull=8]="PropertyCantBeNull",LG[LG.PropertyShouldBeSet=9]="PropertyShouldBeSet",LG[LG.TooManyActions=10]="TooManyActions",LG[LG.UnknownActionType=11]="UnknownActionType",LG[LG.UnknownElementType=12]="UnknownElementType",LG[LG.UnsupportedCardVersion=13]="UnsupportedCardVersion",LG[LG.DuplicateId=14]="DuplicateId",LG[LG.UnsupportedProperty=15]="UnsupportedProperty",LG[LG.RequiredInputsShouldHaveLabel=16]="RequiredInputsShouldHaveLabel",LG[LG.RequiredInputsShouldHaveErrorMessage=17]="RequiredInputsShouldHaveErrorMessage",LG[LG.Other=18]="Other",LG[LG.UnknownProperty=19]="UnknownProperty",(VG=FG||(FG={}))[VG.UnknownType=0]="UnknownType",VG[VG.ForbiddenType=1]="ForbiddenType",(HG=qG||(qG={}))[HG.Light=0]="Light",HG[HG.Dark=1]="Dark",q$(qG,"ThemeName"),(WG=UG||(UG={}))[WG.VeryNarrow=0]="VeryNarrow",WG[WG.Narrow=1]="Narrow",WG[WG.Standard=2]="Standard",WG[WG.Wide=3]="Wide",(GG=$G||($G={}))[GG.AtLeast=0]="AtLeast",GG[GG.AtMost=1]="AtMost";class YG{}YG.useMarkdownInRadioButtonAndCheckbox=!0,YG.alwaysBleedSeparators=!1,YG.enableFullJsonRoundTrip=!1,YG.displayInputValidationErrors=!0,YG.allowPreProcessingPropertyValues=!1,YG.enableFallback=!0,YG.useWebkitLineClamp=!0,YG.allowMoreThanMaxActionsInOverflowMenu=!0,YG.removePaddingFromContainersWithBackgroundImage=!1,YG.resetInputsDirtyStateAfterActionExecution=!1,YG.defaultUnlocalizableStringFallback="Undefined",YG.useBorderColorForSeparator=!1,YG.failRenderingWhenUnknownPropertiesAreFound=!1,YG.failRenderingWhenInvalidPropertyValuesAreFound=!1,YG.fluentIconCdnBasePath="https://res-1.cdn.office.net/assets/fluentui-react-icons/2.0.226/",YG.enableIconSupportForActionButtons=!1,YG.allowSimultaneousVideoPlayback=!1,YG.enablePropagateIdToDOM=!1,YG.enableResourceStringApplication=!0;class KG{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 JG{constructor(e=fG.None,t=fG.None,r=fG.None,n=fG.None){this.top=fG.None,this.right=fG.None,this.bottom=fG.None,this.left=fG.None,this.top=e,this.right=t,this.bottom=r,this.left=n}}const XG={regEx:/^\d+px$/,displayText:"<number>px"};class QG{static parse(e,t=!1){const r=new QG(0,oG.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=oG.Pixel),r}throw new Error(`Invalid size: ${e}`)}constructor(e,t){this.physicalSize=e,this.unit=t}}class ZG{static parse(e){var t,r;const n=F$($G).join("|"),o=F$(UG).join("|"),i=new RegExp(`^(?:(${n}):)?(${o})$`,"i").exec(e);if(i&&i.length>=3){const e=new ZG,n=null===(t=i[1])||void 0===t?void 0:t.toLowerCase();if(void 0!==n){const t=L$($G,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=L$(UG,o);if(void 0===t)return;return e.width=t,e}}}constructor(e=UG.Wide,t){this.width=e,this.condition=t}matches(e){return void 0===this.condition?this.width===e:this.condition===$G.AtLeast?this.width<=e:e<=this.width}toString(){return void 0!==this.condition?`${$G[this.condition]}:${UG[this.width]}`:UG[this.width]}}class eY{static generate(){const e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,r=4294967295*Math.random()|0,n=4294967295*Math.random()|0;return eY.lut[255&e]+eY.lut[e>>8&255]+eY.lut[e>>16&255]+eY.lut[e>>24&255]+"-"+eY.lut[255&t]+eY.lut[t>>8&255]+"-"+eY.lut[t>>16&15|64]+eY.lut[t>>24&255]+"-"+eY.lut[63&r|128]+eY.lut[r>>8&255]+"-"+eY.lut[r>>16&255]+eY.lut[r>>24&255]+eY.lut[255&n]+eY.lut[n>>8&255]+eY.lut[n>>16&255]+eY.lut[n>>24&255]}static initialize(){for(let e=0;e<256;e++)eY.lut[e]=(e<16?"0":"")+e.toString(16)}}var tY,rY;eY.lut=[],eY.initialize(),(rY=tY||(tY={}))[rY.Person=0]="Person",rY[rY.Tag=1]="Tag",q$(tY,"MentionType");const nY="CardElement",oY=`${nY}Array`,iY="Action",aY=`${iY}Array`;class sY{}function lY(e,...t){const r=e.className?e.className.split(/\s+/g):[];r.push(...t),e.className=r.join(" ")}function cY(){return`__ac-${eY.generate()}`}function uY(e,t){return"string"==typeof e?e:t}function dY(e,t){return"number"==typeof e?e:t}function fY(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 hY(e,t,r){let n=e;for(;n.length<r;)n=t+n;return n}function pY(e){return`${e.getFullYear()}-${hY((e.getMonth()+1).toString(),"0",2)}-${hY(e.getDate().toString(),"0",2)}`}function mY(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}sY.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."},sY.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."},sY.overflowButtonText={key:"overflowButtonText",defaultValue:"..."},sY.overflowButtonTooltip={key:"overflowButtonTooltip",defaultValue:"More options"},sY.mediaPlayerAriaLabel={key:"mediaPlayerAriaLabel",defaultValue:"Media content"},sY.mediaPlayerPlayMedia={key:"mediaPlayerPlayMedia",defaultValue:"Play media"},sY.youTubeVideoPlayer={key:"youTubeVideoPlayer",defaultValue:"YouTube video player"},sY.vimeoVideoPlayer={key:"vimeoVideoPlayer",defaultValue:"Vimeo video player"},sY.dailymotionVideoPlayer={key:"dailymotionVideoPlayer",defaultValue:"Dailymotion video player"},sY.mediaPlayerPosterAltText={key:"mediaPlayerPosterAltText",defaultValue:"Video poster"},sY.emptyElementText={key:"emptyElementText",defaultValue:"Empty {{elementType}}"};let gY=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,jG.InvalidPropertyValue,sY.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 vY{static getAllDeclaredVersions(){const e=[];for(const r in vY)if(r.match(/^v[0-9_]*$/))try{const t=vY[r];t instanceof gY&&e.push(t)}catch(t){}return e.sort((e,t)=>e.compareTo(t))}}vY.v1_0=new gY(1,0),vY.v1_1=new gY(1,1),vY.v1_2=new gY(1,2),vY.v1_3=new gY(1,3),vY.v1_4=new gY(1,4),vY.v1_5=new gY(1,5),vY.v1_6=new gY(1,6,"1.6 Preview"),vY.latest=vY.v1_5;class yY{constructor(e=vY.latest){this._validationEvents=[],this.targetVersion=e}postProcessParsedPropertyValue(e,t){var r;const n=null!==(r=this.onPostProcessParsedPropertyValue)&&void 0!==r?r:yY.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]=pY(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 OY?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,RG.Parse,t,r)}getEventAt(e){return this._validationEvents[e]}get eventCount(){return this._validationEvents.length}shouldFailRendering(){return YG.failRenderingWhenUnknownPropertiesAreFound&&this._validationEvents.some(e=>e.event===jG.UnknownProperty)||YG.failRenderingWhenInvalidPropertyValuesAreFound&&this._validationEvents.some(e=>e.event===jG.InvalidPropertyValue)}hasEvent(...e){return this._validationEvents.some(t=>e.includes(t.event))}getAttachableElementProperties(){return[]}getAttachableElementProperty(e){}}class bY extends yY{}class wY{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 u$(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=wY._sequentialNumber,wY._sequentialNumber++}}wY._sequentialNumber=0;class xY extends wY{parse(e,t,r){let n=uY(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,jG.InvalidPropertyValue,sY.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 kY extends wY{parse(e,t,r){const n=uY(t[this.name]);if(n)try{return new j$(n)}catch(o){r.logParseEvent(e,jG.InvalidPropertyValue,sY.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 SY extends kY{constructor(e,t,r){super(e,t),this.targetVersion=e,this.name=t,this.targetProperty=r}applyToObject(e){return u$(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 j$)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 _Y extends wY{parse(e,t,r){return fY(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 CY extends wY{parse(e,t,r){return dY(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 TY extends wY{parse(e,t,r){let n;const o=t[this.name];if("string"==typeof o){let a=!1;try{const e=QG.parse(o,!0);e.unit===oG.Pixel&&(n=e.physicalSize,a=!0)}catch(i){}a||r.logParseEvent(e,jG.InvalidPropertyValue,sY.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:[XG]}],defaultValue:this.defaultValue}}}class EY extends wY{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,jG.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 AY extends wY{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,jG.InvalidPropertyValue,sY.errors.propertyValueNotSupported(n,this.name,t.toString(),r.targetVersion.toString())),this.defaultValue)}return r.logParseEvent(e,jG.InvalidPropertyValue,sY.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,RG.ToJSON,jG.InvalidPropertyValue,sY.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 PY extends wY{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=L$(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,jG.InvalidPropertyValue,sY.errors.propertyValueNotSupported(n,this.name,t.toString(),r.targetVersion.toString())),this.defaultValue)}return r.logParseEvent(e,jG.InvalidPropertyValue,sY.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,RG.ToJSON,jG.InvalidPropertyValue,sY.errors.invalidPropertyValue(r,this.name))}}o||n.serializeEnum(this.enumType,t,this.name,r,this.defaultValue)}getDescriptor(e){const t=F$(this.enumType),r={};for(const n of t){const e=L$(this.enumType,n),t=this.getValueMetadata(e);t&&(r[n]=t)}return{valueTypes:[{type:"string",validValues:F$(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 V$.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 IY extends wY{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 LY(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 BY extends wY{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 LY(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 NY extends wY{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 DY{constructor(e){this.owner=e,this._properties=new Map}determinePropertyOrigins(){const e=new zY(this.owner);for(const r in this.owner.constructor)try{const t=this.owner.constructor[r];if(t instanceof wY){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 zY{constructor(e){this._serializableObject=e;let t,r=[this._serializableObject.constructor];do{t=Object.getPrototypeOf(r[0].prototype).constructor,(Object.prototype.isPrototypeOf.call(OY,t)||t===OY)&&(r=[t,...r])}while(t!==OY);this._constructorHierarchy=r}getDeclaringClass(e){for(const t of this._constructorHierarchy)if(e in t)return t}}class OY{get key(){return this.getValue(OY.keyProperty)}set key(e){this.setValue(OY.keyProperty,e)}shouldStoreRawProperties(){return YG.enableFullJsonRoundTrip||this.preserveSourcePropertiesOnParse}propertyChanged(e,t,r){this.isDesignMode()||e.applyToObject(this),this.onPropertyChanged&&this.onPropertyChanged(this,e,t,r)}afterParse(){}getDefaultSerializationContext(){return new bY}populateSchema(e){const t=[];for(const n in this.constructor)try{const e=this.constructor[n];e instanceof wY&&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)}OY.onRegisterCustomProperties&&OY.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,jG.UnknownProperty,sY.errors.unknownProperty(i));const o=Array.from(r.properties).concat(this.getAttachableProperties(t));YG.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,jG.UnsupportedProperty,sY.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=OY.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(OY.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 yY?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=OY._schemaCache[this.getSchemaKey()];return e||(e=new DY(this),this.populateSchema(e),OY._schemaCache[e.key]=e),e}getCodeGenOptions(){}get expressionEvaluationContext(){}}OY.keyProperty=new xY(vY.v1_0,"key"),OY.defaultMaxVersion=vY.latest,OY._schemaCache={};class RY extends OY{getSchemaKey(){return this.getJsonTypeName()}getAdditionalPropertyDescriptors(e){return[...super.getAdditionalPropertyDescriptors(e),{name:"type",valueTypes:[{type:"string"}],requiredValue:this.getJsonTypeName(),declaringClassName:this.constructor.name,schemaVersion:vY.v1_0}]}}RY.typeNameProperty=new xY(vY.v1_0,"type",void 0,void 0,e=>e.getJsonTypeName());class MY{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 jY extends MY{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 LY extends MY{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 FY extends wY{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 VY=["12","16","20","24","28","32","40","48"],qY=/^([\w\d_-]+)(?:,(regular|filled)){0,1}$/i;const HY={[eG.xxSmall]:16,[eG.xSmall]:20,[eG.Small]:24,[eG.Standard]:32,[eG.Medium]:48,[eG.Large]:56,[eG.xLarge]:72,[eG.xxLarge]:96};function UY(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 WY(e){const t=`${e}px`;return g.createElement("div",{style:{width:t,height:t}})}const $Y=e=>{const[t,r]=g.useState("notLoaded");let n=HY[eG.Standard],o=eG.Standard;if("number"==typeof e.iconSize)n=HY[e.iconSize],o=e.iconSize;else if("string"==typeof e.iconSize)try{const t=QG.parse(e.iconSize,!0);t.unit===oG.Pixel&&(n=t.physicalSize,o=function(e){for(const t in eG){const r=parseInt(t);if("number"==typeof r&&HY[r]>=e)return r}return eG.xxLarge}(n))}catch(bze){}switch(g.useEffect(()=>{r(JY.getIconOrState(e.name,o,e.iconStyle)),"notLoaded"===t&&JY.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?WY(n):null;case"unavailable":return void 0===e.allowFallback||e.allowFallback?UK.imagePlaceholderRenderer?UK.imagePlaceholderRenderer({width:n+"px",height:n+"px"}):n?WY(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 GY(e){return"object"==typeof e&&VY.every(t=>function(e){return null==e||Array.isArray(e)&&e.every(e=>"string"==typeof e)}(e[t]))}function YY(e){return"object"==typeof e&&GY(e.regular)&&GY(e.filled)}function KY(e,t,r){const n={};for(const[o,i]of Object.entries(t))n[o]=bu(e,o,i,{flipInRtl:r});return n}class JY{static getIconFromSet(e,t,r){const n=r===rG.Regular?[e.regular,e.filled]:[e.filled,e.regular];for(const o of n)if(Object.keys(o).length>0)return UY(HY[t],o)}static getIcon(e,t,r,n){return u$(this,void 0,void 0,function*(){if(this._invalidIconNames.has(e))return;let o=this._loadedIcons.get(e);if(!o){let t;if(n&&YY(n))t=n;else try{const r=yield fetch(function(e){return`${YG.fluentIconCdnBasePath}${e}/${e}.json`}(e));if(r.ok){const e=yield r.json();YY(e)&&(t=e)}}catch(bze){}t&&(o={regular:KY(e,t.regular,t.flipInRtl),filled:KY(e,t.filled,t.flipInRtl),flipInRtl:t.flipInRtl},this._loadedIcons.set(e,o))}if(o)return JY.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=JY.getIconFromSet(o,t,r))&&void 0!==n?n:"unavailable":"notLoaded"}}JY._loadedIcons=new Map,JY._invalidIconNames=new Set;class XY extends OY{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=gY.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 QY(e,t,r){if("string"==typeof t){const n=function(e,t,r){if(!t)return r;const n=L$(e,t);return void 0!==n?n:r}(e,t,r);return void 0!==n?n:r}return"number"==typeof t?t:r}class ZY{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 eK extends ZY{constructor(){super(...arguments),this.highlightColors=new ZY("#22000000","#11000000")}parse(e){super.parse(e),e&&this.highlightColors.parse(e.highlightColors)}}class tK{constructor(e){this.allowCustomStyle=!1,e&&(this.allowCustomStyle=e.allowCustomStyle||this.allowCustomStyle)}}class rK{constructor(e){this.imageSize=Y$.Medium,this.maxImageHeight=100,e&&(this.imageSize=null!=e.imageSize?e.imageSize:this.imageSize,this.maxImageHeight=dY(e.maxImageHeight,rK.defaultMaxImageHeight))}toJSON(){return{imageSize:Y$[this.imageSize],maxImageHeight:this.maxImageHeight}}}rK.defaultMaxImageHeight=100;class nK{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 oK{constructor(e){this.cellSpacing=8,e&&(this.cellSpacing=e.cellSpacing&&"number"==typeof e.cellSpacing?e.cellSpacing:this.cellSpacing)}toJSON(){return{cellSpacing:this.cellSpacing}}}class iK{constructor(e){this.size=aG.Default,this.color=pG.Default,this.isSubtle=!1,this.weight=lG.Default,this.parse(e)}parse(e){e&&(this.size=QY(aG,e.size,this.size),this.color=QY(pG,e.color,this.color),this.isSubtle=void 0!==e.isSubtle&&"boolean"==typeof e.isSubtle?e.isSubtle:this.isSubtle,this.weight=QY(lG,e.weight,this.getDefaultWeight()))}getDefaultWeight(){return lG.Default}toJSON(){return{size:aG[this.size],color:pG[this.color],isSubtle:this.isSubtle,weight:lG[this.weight]}}}class aK extends iK{constructor(){super(...arguments),this.fontType=uG.Default}parse(e){super.parse(e),e&&(this.fontType=QY(uG,e.fontType,this.fontType))}}class sK{constructor(e){this.default=new aK,this.heading=new aK({size:"Large",weight:"Bolder"}),this.columnHeader=new aK({weight:"Bolder"}),this.label=new aK({weight:"Bolder"}),this.captionLabel=new aK({size:"Small",weight:"Bolder"}),this.caption=new aK({size:"Small"}),this.captionSubtle=new aK({size:"Small",weight:"Bolder",isSubtle:!0}),this.captionSubtleLabel=new aK({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 lK{constructor(e){e&&(this.headingLevel=dY(e.headingLevel))}}class cK extends iK{constructor(){super(...arguments),this.suffix=" *",this.suffixColor=pG.Attention}parse(e){super.parse(e),e&&(this.suffix=e.suffix||this.suffix,this.suffixColor=QY(pG,e.suffixColor,this.suffixColor))}toJSON(){const e=super.toJSON();return e.suffix=this.suffix,e.suffixColor=pG[this.suffixColor],e}}class uK{constructor(e){this.inputSpacing=fG.ExtraSmall,this.requiredInputs=new cK,this.optionalInputs=new iK,e&&(this.inputSpacing=QY(fG,e.inputSpacing,this.inputSpacing),this.requiredInputs=new cK(e.requiredInputs),this.optionalInputs=new iK(e.optionalInputs))}}class dK{constructor(e){this.label=new uK,this.errorMessage=new iK({color:pG.Attention}),e&&(this.label=new uK(e.label),this.errorMessage=new iK(e.errorMessage))}}class fK extends iK{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 hK extends fK{constructor(e){super(e),this.maxWidth=150,this.weight=lG.Bolder,e&&(this.maxWidth=null!=e.maxWidth?e.maxWidth:this.maxWidth,this.weight=QY(lG,e.weight,lG.Bolder))}getDefaultWeight(){return lG.Bolder}}class pK{constructor(e){this.rowGap=10,"object"==typeof e&&(this.rowGap="number"==typeof e.rowGap?Math.max(e.rowGap,0):this.rowGap)}}class mK extends pK{constructor(e){super(e),this.columnGap=10,"object"==typeof e&&(this.columnGap="number"==typeof e.columnGap?Math.max(e.columnGap,0):this.columnGap)}}class gK extends pK{constructor(e){super(e),this.titleValueGap=0,"object"==typeof e&&(this.titleValueGap="number"==typeof e.titleValueGap?Math.max(e.titleValueGap,0):this.titleValueGap)}}class vK{constructor(e){this.title=new hK,this.value=new fK,this.tableLayout=new mK,this.stackLayout=new gK,this.layoutSwitchBreakpoint=UG.Standard,"object"==typeof e&&(this.title=new hK(e.title),this.value=new fK(e.value),this.tableLayout=new mK(e.tableLayout),this.stackLayout=new gK(e.stackLayout),this.layoutSwitchBreakpoint=QY(UG,e.layoutSwitchBreakpoint,UG.Standard))}}class yK{constructor(e){this.actionMode=_G.Inline,this.inlineTopMargin=16,this.style=H$.Emphasis,e&&(this.actionMode=QY(_G,e.actionMode,_G.Inline),this.inlineTopMargin=null!=e.inlineTopMargin?e.inlineTopMargin:this.inlineTopMargin,this.style=e.style&&"string"==typeof e.style?e.style:H$.Emphasis)}toJSON(){return{actionMode:_G[this.actionMode],inlineTopMargin:this.inlineTopMargin,style:this.style}}}class bK{constructor(e){if(this.maxActions=5,this.spacing=fG.Default,this.buttonSpacing=20,this.showCard=new yK,this.preExpandSingleShowCardAction=!1,this.actionsOrientation=TG.Horizontal,this.actionAlignment=wG.Left,this.iconPlacement=NG.LeftOfTitle,this.allowTitleToWrap=!1,this.allowButtonsToWrap=!1,this.iconSize=16,e){this.maxActions=null!=e.maxActions?e.maxActions:this.maxActions,this.spacing=QY(fG,e.spacing&&e.spacing,fG.Default),this.buttonSpacing=null!=e.buttonSpacing?e.buttonSpacing:this.buttonSpacing,this.showCard=new yK(e.showCard),this.preExpandSingleShowCardAction=fY(e.preExpandSingleShowCardAction,!1),this.actionsOrientation=QY(TG,e.actionsOrientation,TG.Horizontal),this.actionAlignment=QY(wG,e.actionAlignment,wG.Left),this.iconPlacement=QY(NG,e.iconPlacement,NG.LeftOfTitle),this.allowTitleToWrap=null!=e.allowTitleToWrap?e.allowTitleToWrap:this.allowTitleToWrap,this.allowButtonsToWrap=null!=e.allowButtonsToWrap?e.allowButtonsToWrap:this.allowTitleToWrap;try{const t=QG.parse(e.iconSize);t.unit===oG.Pixel&&(this.iconSize=t.physicalSize)}catch(bze){}}}toJSON(){return{maxActions:this.maxActions,spacing:fG[this.spacing],buttonSpacing:this.buttonSpacing,showCard:this.showCard,preExpandSingleShowCardAction:this.preExpandSingleShowCardAction,actionsOrientation:TG[this.actionsOrientation],actionAlignment:wG[this.actionAlignment]}}}class wK{parseSingleColor(e,t){e&&this[t].parse(e[t])}constructor(e){this.default=new eK,this.dark=new eK,this.light=new eK,this.accent=new eK,this.good=new eK,this.warning=new eK,this.attention=new eK,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 pG.Accent:return this.accent;case pG.Dark:return this.dark;case pG.Light:return this.light;case pG.Good:return this.good;case pG.Warning:return this.warning;case pG.Attention:return this.attention;default:return this.default}}}class xK{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 wK({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 kK extends xK{get isBuiltIn(){return!0}}class SK{constructor(e){if(this._allStyles={},this._allStyles[H$.Default]=new kK,this._allStyles[H$.Emphasis]=new kK,this._allStyles[H$.Accent]=new kK,this._allStyles[H$.Good]=new kK,this._allStyles[H$.Attention]=new kK,this._allStyles[H$.Warning]=new kK,e){this._allStyles[H$.Default].parse(e[H$.Default]),this._allStyles[H$.Emphasis].parse(e[H$.Emphasis]),this._allStyles[H$.Accent].parse(e[H$.Accent]),this._allStyles[H$.Good].parse(e[H$.Good]),this._allStyles[H$.Attention].parse(e[H$.Attention]),this._allStyles[H$.Warning].parse(e[H$.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 xK(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[H$.Default]}get default(){return this._allStyles[H$.Default]}get emphasis(){return this._allStyles[H$.Emphasis]}}class _K{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 aG.Small:return this.fontSizes.small;case aG.Medium:return this.fontSizes.medium;case aG.Large:return this.fontSizes.large;case aG.ExtraLarge:return this.fontSizes.extraLarge;default:return this.fontSizes.default}}}_K.monospace=new _K("'Courier New', Courier, monospace");class CK{constructor(e){this.default=new _K,this.monospace=new _K("'Courier New', Courier, monospace"),e&&(this.default.parse(e.default),this.monospace.parse(e.monospace))}getStyleDefinition(e){switch(e){case uG.Monospace:return this.monospace;case uG.Default:default:return this.default}}}const TK=new class{constructor(e){this.hostCapabilities=new XY,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 SK,this.inputs=new dK,this.actions=new bK,this.adaptiveCard=new tK,this.imageSet=new rK,this.media=new nK,this.factSet=new vK,this.table=new oK,this.textStyles=new sK,this.textBlock=new lK,this.alwaysAllowBleed=!1,this._legacyFontType=new _K,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 CK(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 SK(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 dK(e.inputs||this.inputs),this.actions=new bK(e.actions||this.actions),this.adaptiveCard=new tK(e.adaptiveCard||this.adaptiveCard),this.imageSet=new rK(e.imageSet),this.factSet=new vK(e.factSet),this.textStyles=new sK(e.textStyles),this.textBlock=new lK(e.textBlock),this.media=new nK(e.media))}getFontTypeDefinition(e){return this.fontTypes?this.fontTypes.getStyleDefinition(e):e===uG.Monospace?_K.monospace:this._legacyFontType}getEffectiveSpacing(e){switch(e){case fG.ExtraSmall:return this.spacing.extraSmall;case fG.Small:return this.spacing.small;case fG.Default:return this.spacing.default;case fG.Medium:return this.spacing.medium;case fG.Large:return this.spacing.large;case fG.ExtraLarge:return this.spacing.extraLarge;case fG.Padding:return this.spacing.padding;default:return 0}}getHostWidthForPixelWidth(e){return e<=this.hostWidthBreakpoints.veryNarrow?UG.VeryNarrow:e<=this.hostWidthBreakpoints.narrow?UG.Narrow:e<=this.hostWidthBreakpoints.standard?UG.Standard:UG.Wide}paddingDefinitionToSpacingDefinition(e){return new KG(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 EK extends OY{getSchemaKey(){return"StringResource"}get defaultValue(){return this.getValue(EK.defaultValue)}set defaultValue(e){this.setValue(EK.defaultValue,e)}get localizedValues(){return this.getValue(EK.localizedValues)}set localizedValues(e){this.setValue(EK.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}}EK.defaultValue=new xY(vY.v1_5,"defaultValue").setShouldApplyResources(!1),EK.localizedValues=new class extends wY{getDescriptor(e){return{valueTypes:[{type:"string"}],defaultValue:this.defaultValue,propertyType:"dictionary",contentType:this.contentType}}}(vY.v1_5,"localizedValues");class AK extends OY{getSchemaKey(){return"Resources"}get strings(){return this.getValue(AK.stringsProperty)}set strings(e){this.setValue(AK.stringsProperty,e)}}AK.stringsProperty=new class extends wY{parse(e,t,r){const n=t[this.name],o={};for(const i in n){const e=new EK;e.parse(n[i],r),o[i]=e}return o}getDescriptor(e){return{valueTypes:[{type:"object",validValues:[new LY(new EK)]}],defaultValue:this.defaultValue,propertyType:"dictionary",contentType:this.contentType}}}(vY.v1_5,"strings");class PK{constructor(e){this.customValidators=e,this.allIds={},this.validationEvents=[]}addFailure(e,t,r){this.validationEvents.push({phase:RG.Validation,source:e,event:t,message:r})}}class IK extends OY{get theme(){return this.getValue(IK.themeProperty)}set theme(e){this.setValue(IK.themeProperty,e)}get url(){return this.getValue(IK.urlProperty)}set url(e){this.setValue(IK.urlProperty,e)}getSchemaKey(){return"ThemedUrl"}constructor(e=qG.Light,t){super(),this.theme=e,this.url=t}}IK.themeProperty=new PY(vY.v1_5,"theme",qG,qG.Light),IK.urlProperty=new xY(vY.v1_5,"url").setContentType("imageUrl");class BK extends RY{constructor(){super(...arguments),this._shouldFallback=!1,this._openPopoverCount=0,this.isPopoverContent=!1}get id(){return this.getValue(BK.idProperty)}set id(e){this.setValue(BK.idProperty,e)}get requires(){return this.getValue(BK.requiresProperty)}get internalId(){}actionExecuted(e){}getDefaultSerializationContext(){return new VK}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(YG.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(YG.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,jG.DuplicateId,sY.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 PK(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}}BK.idProperty=new xY(vY.v1_0,"id"),BK.requiresProperty=new class extends IY{constructor(e,t){super(e,t,e=>new XY,!1,new XY),this.targetVersion=e,this.name=t,this.allowAdditionalProperties=!0,this.preserveAdditionalProperties=!0}}(vY.v1_2,"requires");class NK extends BK{constructor(){super(...arguments),this._hasBeenRendered=!1,this._disableAutomaticReRenderCount=0,this.Render=e=>g.createElement(DK,{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 DK=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 zK(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===TG.Horizontal?"horizontal":"vertical"}-separator`),i["aria-hidden"]=!0,i.style.overflow="hidden",i.style.flex="0 0 auto";const a=t.lineColor?mY(t.lineColor):"";return r===TG.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 OK extends wY{parse(e,t,r){const n=t[this.name];return"string"==typeof n?ZG.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=F$(UG),r=[...t];return t.forEach(e=>{r.push(`atLeast:${e}`,`atMost:${e}`)}),{valueTypes:[{type:"string",validValues:r}],defaultValue:void 0!==this.defaultValue?UG[this.defaultValue]:void 0,suggestedSchemaTypeName:"TargetWidth"}}}class RK extends NK{get isSortKey(){return this.getValue(RK.isSortKey)}set isSortKey(e){this.setValue(RK.isSortKey,e)}get horizontalAlignment(){return this.getValue(RK.horizontalAlignmentProperty)}set horizontalAlignment(e){this.setValue(RK.horizontalAlignmentProperty,e)}get spacing(){return this.getValue(RK.spacingProperty)}set spacing(e){this.setValue(RK.spacingProperty,e)}get separator(){return this.getValue(RK.separatorProperty)}set separator(e){this.setValue(RK.separatorProperty,e)}get height(){return this.getValue(RK.heightProperty)}set height(e){this.setValue(RK.heightProperty,e)}get lang(){const e=this.getValue(RK.langProperty);return e||(this.parent?this.parent.lang:void 0)}set lang(e){this.setValue(RK.langProperty,e)}get isVisible(){return this.getValue(RK.isVisibleProperty)}set isVisible(e){this.setValue(RK.isVisibleProperty,e)}get isVisibleDynamic(){return this.getValue(RK.isVisibleDynamicProperty)}set isVisibleDynamic(e){this.setValue(RK.isVisibleDynamicProperty,e)}get targetWidth(){return this.getValue(RK.targetWidthProperty)}set targetWidth(e){this.setValue(RK.targetWidthProperty,e)}createPlaceholderElement(e){const t=mY(this.getEffectiveStyleDefinition().foregroundColors.default.subtle),r=null!=e?e:this.localizeString(sY.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=YG.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;YG.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=zK(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===TG.Horizontal)if(YG.alwaysBleedSeparators&&!this.isBleeding()){const t=new JG;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 JG}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 TG.Horizontal}get defaultStyle(){return H$.Default}processMarkdown(e){return this.parent?this.parent.processMarkdown(e):{didProcess:!1}}setValue(e,t){if(e!==RK.isVisibleProperty||this.isParsing)super.setValue(e,t);else if(this.isVisible!==t){this.disableAutomaticReRender();try{super.setValue(RK.isVisibleProperty,t)}finally{this.enableAutomaticReRender()}0===this._openPopoverCount&&this.getRootElement().updateLayout(),this.elementVisibilityChanged(this)}}asString(){return""}getSortKey(){}isBleeding(){return!1}getCodeGenOptions(){return{baseClassName:nY}}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!==fG.None&&(e.top=c.top,i=!1),a&&c.right!==fG.None&&(e.right=c.right,a=!1),s&&c.bottom!==fG.None&&(e.bottom=c.bottom,s=!1),l&&c.left!==fG.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(sY.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():gG.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:nY,schemaVersion:vY.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:UG.Wide}set hostWidth(e){this._hostWidth=e}get hostConfig(){return this._hostConfig?this._hostConfig:this.parent?this.parent.hostConfig:TK}set hostConfig(e){this._hostConfig=e}get theme(){return this._theme?this._theme:this.parent?this.parent.theme:qG.Light}set theme(e){this._theme=e}get index(){return this.parent?this.parent.indexOf(this):0}get isEnabled(){const e=this.getValue(RK.isEnabledProperty);return void 0!==e?e:!this.parent||this.parent.isEnabled}set isEnabled(e){this.setValue(RK.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}}RK.langProperty=new xY(vY.v1_1,"lang",/^[a-z]{2,3}$/gi),RK.isVisibleProperty=new _Y(vY.v1_2,"isVisible",!0),RK.isVisibleDynamicProperty=new SY(vY.v1_5,"isVisible.dynamic",RK.isVisibleProperty),RK.separatorProperty=new _Y(vY.v1_0,"separator",!1),RK.heightProperty=new AY(vY.v1_1,"height",[{value:"auto"},{value:"stretch"}],"auto").setTypeName("ElementHeight"),RK.horizontalAlignmentProperty=new PY(vY.v1_0,"horizontalAlignment",gG),RK.spacingProperty=new PY(vY.v1_0,"spacing",fG,fG.Default),RK.targetWidthProperty=new OK(vY.v1_0,"targetWidth"),RK.isEnabledProperty=new _Y(vY.v1_0,"isEnabled").setEnableSerialization(!1),RK.isSortKey=new _Y(vY.v1_5,"isSortKey",!1);class MK extends wY{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 jK(e,t){return void 0!==e?e:t}function LK(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 FK=class e extends NK{constructor(){super(...arguments),this._isFocusable=!0,this.state=IG.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===NG.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(YG.enableIconSupportForActionButtons){const t=void 0!==n[2]&&"filled"===n[2].toLowerCase()?rG.Filled:rG.Regular;e=g.createElement($Y,{name:n[1],iconSize:eG.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!==NG.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?(lY(o,"iconOnly"),i=[this.renderIcon()]):(n.actions.iconPlacement===NG.AboveTitle?(lY(o,"iconAbove"),o.style.flexDirection="column"):lY(o,"iconLeft"),i=[this.renderIcon(),this.renderTitle(r)]):(lY(o,"noIcon"),i=[this.renderTitle(r)]),n.actions.actionsOrientation===TG.Horizontal&&n.actions.actionAlignment===wG.Stretch?o.style.flex="0 1 100%":o.style.flex="0 1 auto",this.state){case IG.Normal:break;case IG.Expanded:lY(o,n.makeCssClassName("expanded"));break;case IG.Subdued:lY(o,n.makeCssClassName("subdued"))}return this.style&&this.isEffectivelyEnabled()&&(this.style===U$.Positive?lY(o,...n.makeCssClassNames("primary","style-positive")):lY(o,...n.makeCssClassNames(`style-${this.style.toLowerCase()}`))),this.isExpandable&&(lY(o,this.hostConfig.makeCssClassName("expandable")),o["aria-expanded"]=this.state===IG.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&&UK.actionButtonRenderer&&(this._actionButton=new UK.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:iY}}getAriaRole(){return"button"}wrapElement(e){return e}applyTo(e,t){if(this.isEffectivelyEnabled()&&this.hostConfig.supportsInteractivity){const r={handleKeyboard:jK(null==t?void 0:t.handleKeyboard,!0),promoteTooltipToLabel:jK(null==t?void 0:t.promoteTooltipToLabel,!1),updateClassName:jK(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&&lY(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 VK)}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:vY.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,jG.Other,sY.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===U$.Positive}set isPrimary(e){e?this.style=U$.Positive:this.style===U$.Positive&&(this.style=U$.Default)}get hostConfig(){return this.parent?this.parent.hostConfig:TK}get theme(){return this.parent?this.parent.theme:qG.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===IG.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}};FK.titleProperty=new xY(vY.v1_0,"title").setContentType("text"),FK.titleDynamicProperty=new SY(vY.v1_5,"title.dynamic",FK.titleProperty).setContentType("text"),FK.iconUrlProperty=new xY(vY.v1_1,"iconUrl").setContentType("imageUrl"),FK.styleProperty=new AY(vY.v1_2,"style",[{value:U$.Default},{value:U$.Positive},{value:U$.Destructive}],U$.Default).setTypeName("ActionStyle"),FK.modeProperty=new AY(vY.v1_5,"mode",[{value:$$.Primary},{value:$$.Secondary}],$$.Primary).setTypeName("ActionMode"),FK.tooltipProperty=new xY(vY.v1_5,"tooltip").setContentType("text"),FK.tooltipDynamicProperty=new SY(vY.v1_5,"tooltip.dynamic",FK.tooltipProperty).setContentType("text"),FK.isEnabledProperty=new _Y(vY.v1_5,"isEnabled",!0),FK.isEnabledDynamicProperty=new SY(vY.v1_5,"isEnabled.dynamic",FK.isEnabledProperty),FK.isVisibleProperty=new _Y(vY.v1_5,"isVisible",!0),FK.isVisibleDynamicProperty=new SY(vY.v1_5,"isVisible.dynamic",FK.isVisibleProperty),FK.menuActionsProperty=new class extends wY{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,jG.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}}(vY.v1_5,"menuActions",["Action.ShowCard","Action.Popover"]).setTypeName("MenuActionArray"),FK.themedIconUrlsProperty=new BY(vY.v1_5,"themedIconUrls",e=>new IK);class VK extends yY{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=uY(t.type);if(l)if(this._forbiddenTypes.has(l))i(l,FG.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=YG.enableFallback&&n&&a.shouldFallback()):(s=YG.enableFallback&&n,i(l,FG.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 FK&&this.onParseAction?this.onParseAction(e,t,this):e instanceof RK&&this.onParseElement&&this.onParseElement(e,t,this)}shouldSerialize(e){return e instanceof FK?void 0!==this.actionRegistry.findByName(e.getJsonTypeName()):!(e instanceof RK)||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===VK.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===FG.UnknownType?this.logParseEvent(void 0,jG.UnknownElementType,sY.errors.unknownElementType(e)):this.logParseEvent(void 0,jG.ElementTypeNotAllowed,sY.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===FG.UnknownType?this.logParseEvent(void 0,jG.UnknownActionType,sY.errors.unknownActionType(e)):this.logParseEvent(void 0,jG.ActionTypeNotAllowed,sY.errors.actionTypeNotAllowed(e))})}get elementRegistry(){var e;return null!==(e=this._elementRegistry)&&void 0!==e?e:UK.elements}setElementRegistry(e){this._elementRegistry=e}get actionRegistry(){var e;return null!==(e=this._actionRegistry)&&void 0!==e?e:UK.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)]}}VK.componentTypeName="Component";class qK{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=vY.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:OY,isInherited:!1,schemaVersion:vY.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 RK)||t.isStandalone;n&&!r||i.push(new LY(t))}}if(o){const e=new jY("ExtensionObject",[{name:"type",valueTypes:[{type:"string",validValues:[{regEx:/^[Xx]-[\w\d]+$/,displayText:"X-"}]}]}]);e.preserveAdditionalProperties=!0,i.push(e)}return i}}class HK{constructor(e,t){this.action=e,this.menuItems=t}renderTitle(e){return null}}class UK{static populateWithDefaultElements(e){e.clear(),UK.defaultElements.copyTo(e)}static populateWithDefaultActions(e){e.clear(),UK.defaultActions.copyTo(e)}static get elements(){return UK._elements||(UK._elements=new qK,UK.populateWithDefaultElements(UK._elements)),UK._elements}static get actions(){return UK._actions||(UK._actions=new qK,UK.populateWithDefaultActions(UK._actions)),UK._actions}static reset(){UK._elements=void 0,UK._actions=void 0}}UK.defaultElements=new qK,UK.defaultActions=new qK;var WK,$K;($K=WK||(WK={}))[$K.msWord=0]="msWord",$K[$K.msExcel=1]="msExcel",$K[$K.msPowerPoint=2]="msPowerPoint",$K[$K.msOneNote=3]="msOneNote",$K[$K.msSharePoint=4]="msSharePoint",$K[$K.msVisio=5]="msVisio",$K[$K.msLoop=6]="msLoop",$K[$K.msWhiteboard=7]="msWhiteboard",$K[$K.code=8]="code",$K[$K.sketch=9]="sketch",$K[$K.adobeIllustrator=10]="adobeIllustrator",$K[$K.adobePhotoshop=11]="adobePhotoshop",$K[$K.adobeInDesign=12]="adobeInDesign",$K[$K.adobeFlash=13]="adobeFlash",$K[$K.image=14]="image",$K[$K.gif=15]="gif",$K[$K.video=16]="video",$K[$K.sound=17]="sound",$K[$K.zip=18]="zip",$K[$K.text=19]="text",$K[$K.pdf=20]="pdf",q$(WK,"FileIconType");class GK extends RY{get title(){return this.getValue(GK.titleProperty)}set title(e){this.setValue(GK.titleProperty,e)}get icon(){return this.getValue(GK.iconProperty)}set icon(e){this.setValue(GK.iconProperty,e)}get url(){return this.getValue(GK.urlProperty)}set url(e){this.setValue(GK.urlProperty,e)}get keywords(){return this.getValue(GK.keywordsProperty)}set keywords(e){this.setValue(GK.keywordsProperty,e)}}GK.titleProperty=new xY(vY.v1_5,"title").setContentType("text"),GK.iconProperty=new PY(vY.v1_5,"icon",WK),GK.urlProperty=new xY(vY.v1_5,"url").setContentType("link"),GK.keywordsProperty=new EY(vY.v1_5,"keywords");class YK{static createInstance(e){const t=YK._entries.get(e);return t?new t:void 0}static registerReferenceType(e){YK._entries.set(e.jsonTypeName,e)}static unregisterReferenceType(e){const t="string"==typeof e?e:e.jsonTypeName;YK._entries.delete(t)}static getDescriptors(){const e=[];for(const t of YK._entries.values())e.push(new LY(new t));return e}}YK._entries=new Map;class KK{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 JK extends RY{}class XK{static createInstance(e){const t=XK._entries.get(e);return t?new t:void 0}static registerEntityType(e){XK._entries.set(e.jsonTypeName,e)}static unregisterEntityType(e){const t="string"==typeof e?e:e.jsonTypeName;XK._entries.delete(t)}static getDescriptors(){const e=[];for(const t of XK._entries.values())e.push(new LY(new t));return e}}XK._entries=new Map;class QK extends OY{get id(){return this.getValue(QK.idProperty)}set id(e){this.setValue(QK.idProperty,e)}get name(){return this.getValue(QK.nameProperty)}set name(e){this.setValue(QK.nameProperty,e)}get mentionType(){return this.getValue(QK.mentionTypeProperty)}set mentionType(e){this.setValue(QK.mentionTypeProperty,e)}getSchemaKey(){return"MentionedEntity"}}QK.idProperty=new xY(vY.v1_0,"id"),QK.nameProperty=new xY(vY.v1_0,"name").setContentType("text"),QK.mentionTypeProperty=new PY(vY.v1_0,"mentionType",tY,tY.Person);class ZK extends JK{get text(){return this.getValue(ZK.textProperty)}set text(e){this.setValue(ZK.textProperty,e)}get mentioned(){return this.getValue(ZK.mentionedProperty)}set mentioned(e){this.setValue(ZK.mentionedProperty,e)}getJsonTypeName(){return ZK.jsonTypeName}}ZK.jsonTypeName="mention",ZK.textProperty=new xY(vY.v1_0,"text"),ZK.mentionedProperty=new IY(vY.v1_0,"mentioned",e=>new QK);class eJ extends OY{get width(){return this.getValue(eJ.widthProperty)}set width(e){this.setValue(eJ.widthProperty,e)}get entities(){return this.getValue(eJ.entitiesProperty)}getSchemaKey(){return"TeamsCardProperties"}afterParse(){this._mappedEntities=void 0}propertyChanged(e,t,r){e===eJ.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}}eJ.widthProperty=new AY(vY.v1_0,"width",[{value:"full"}]).setTypeName("TeamsCardWidth"),eJ.entitiesProperty=new class extends BY{constructor(e,t){super(e,t,e=>{if(e){const t=e.type;if("string"==typeof t)return t?XK.createInstance(t):void 0}}),this.targetVersion=e,this.name=t}getDescriptor(e){return{valueTypes:[{type:"object",validValues:XK.getDescriptors().sort((e,t)=>e.name.localeCompare(t.name))}],propertyType:"array"}}}(vY.v1_0,"entities"),XK.registerEntityType(ZK);class tJ{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 rJ extends tJ{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 nJ extends tJ{internalFormat(e,t){return new Date(Date.parse(t[1])).toLocaleTimeString(e,{hour:"numeric",minute:"2-digit"})}}function oJ(e,t){const r=[new rJ(/\{{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 nJ(/\{{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 iJ extends OY{getAdditionalPropertyDescriptors(e){return[...super.getAdditionalPropertyDescriptors(e),{name:"type",valueTypes:[{type:"string"}],requiredValue:this.getTypeName(),schemaVersion:vY.v1_0}]}}iJ.typeNameProperty=new xY(vY.v1_0,"type",void 0,void 0,e=>e.getTypeName());class aJ extends iJ{get value(){return this.getValue(aJ.valueProperty)}set value(e){this.setValue(aJ.valueProperty,e)}getSchemaKey(){return aJ.className}getTypeName(){return aJ.jsonTypeName}}aJ.jsonTypeName="imBack",aJ.className="ImBackSubmitActionData",aJ.valueProperty=new xY(vY.v1_0,"value").setIsHero();class sJ extends iJ{get value(){return this.getValue(sJ.valueProperty)}set value(e){this.setValue(sJ.valueProperty,e)}getSchemaKey(){return sJ.className}getTypeName(){return sJ.jsonTypeName}}sJ.jsonTypeName="invoke",sJ.className="InvokeSubmitActionData",sJ.valueProperty=new wY(vY.v1_0,"value").setIsHero();class lJ extends iJ{get text(){return this.getValue(lJ.textProperty)}set text(e){this.setValue(lJ.textProperty,e)}get displayText(){return this.getValue(lJ.displayTextProperty)}set displayText(e){this.setValue(lJ.displayTextProperty,e)}get value(){return this.getValue(lJ.valueProperty)}set value(e){this.setValue(lJ.valueProperty,e)}getSchemaKey(){return lJ.className}getTypeName(){return lJ.jsonTypeName}}lJ.jsonTypeName="messageBack",lJ.className="MessageBackSubmitActionData",lJ.textProperty=new xY(vY.v1_0,"text"),lJ.displayTextProperty=new xY(vY.v1_0,"displayText"),lJ.valueProperty=new xY(vY.v1_0,"value");class cJ extends iJ{get value(){return this.getValue(cJ.valueProperty)}set value(e){this.setValue(cJ.valueProperty,e)}getSchemaKey(){return cJ.className}getTypeName(){return cJ.jsonTypeName}}cJ.jsonTypeName="signin",cJ.className="SigninSubmitActionData",cJ.valueProperty=new xY(vY.v1_0,"value").setIsHero();class uJ extends iJ{get value(){return this.getValue(uJ.valueProperty)}set value(e){this.setValue(uJ.valueProperty,e)}getSchemaKey(){return uJ.className}getTypeName(){return uJ.jsonTypeName}}uJ.jsonTypeName="task/fetch",uJ.className="TaskFetchSubmitActionData",uJ.valueProperty=new wY(vY.v1_0,"value").setIsHero();const dJ=new Map([[aJ.jsonTypeName,()=>new aJ],[sJ.jsonTypeName,()=>new sJ],[lJ.jsonTypeName,()=>new lJ],[cJ.jsonTypeName,()=>new cJ],[uJ.jsonTypeName,()=>new uJ]]);class fJ extends wY{parse(e,t,r){let n;const o=t[this.name];if("object"==typeof o){const e=dJ.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 dJ.values()){const e=r(),n=new LY(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 hJ extends OY{getSchemaKey(){return"SubmitActionData"}constructor(){super(),this.preserveSourcePropertiesOnParse=!0}getCodeGenOptions(){return{treatAsDictionary:!0}}}hJ.msTeamsProperty=new fJ(vY.v1_0,"msTeams").setAlternateDefinition(new fJ(vY.v1_0,"msteams"));class pJ extends FK{constructor(){super(...arguments),this._isPrepared=!1,this._areReferencedInputsDirty=!1}get _originalData(){return this.getValue(pJ.dataProperty)}set _originalData(e){this.setValue(pJ.dataProperty,e)}get associatedInputs(){return this.getValue(pJ.associatedInputsProperty)}set associatedInputs(e){this.setValue(pJ.associatedInputsProperty,e)}get conditionallyEnabled(){return this.getValue(pJ.conditionallyEnabledProperty)}set conditionallyEnabled(e){this.setValue(pJ.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?LK(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(){YG.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}}pJ.dataProperty=new class extends wY{parse(e,t,r){const n=t[this.name];if("object"==typeof n){const e=new hJ;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 hJ?n.serializeValue(t,this.name,r.toJSON(n),this.defaultValue,!0):super.toJSON(e,t,r,n)}getDescriptor(e){const t=new LY(new hJ);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}}(vY.v1_0,"data"),pJ.associatedInputsProperty=new MK(vY.v1_3,"associatedInputs"),pJ.conditionallyEnabledProperty=new _Y(vY.v1_5,"conditionallyEnabled",!1);class mJ extends OY{get hide(){return this.getValue(mJ.hideProperty)}set hide(e){this.setValue(mJ.hideProperty,e)}getSchemaKey(){return"TeamsSubmitActionFeedback"}}mJ.hideProperty=new _Y(vY.v1_0,"hide");class gJ extends OY{get feedback(){return this.getValue(gJ.feedbackProperty)}set feedback(e){this.setValue(gJ.feedbackProperty,e)}getSchemaKey(){return"TeamsSubmitActionProperties"}}gJ.feedbackProperty=new IY(vY.v1_0,"feedback",e=>new mJ);class vJ extends pJ{getJsonTypeName(){return vJ.JsonTypeName}}vJ.JsonTypeName="Action.Submit",vJ.msTeamsProperty=new IY(vY.v1_0,"msTeams",e=>new gJ).setAlternateDefinition(new IY(vY.v1_0,"msteams",e=>new gJ));class yJ extends pJ{get verb(){return this.getValue(yJ.verbProperty)}set verb(e){this.setValue(yJ.verbProperty,e)}getJsonTypeName(){return yJ.JsonTypeName}}yJ.JsonTypeName="Action.Execute",yJ.verbProperty=new xY(vY.v1_4,"verb");class bJ extends FK{get url(){return this.getValue(bJ.urlProperty)}set url(e){this.setValue(bJ.urlProperty,e)}getEffectiveTooltip(){const e=super.getEffectiveTooltip();return e?`${e}\n${this.getHref()}`:this.getHref()}getJsonTypeName(){return bJ.JsonTypeName}getAriaRole(){return"link"}internalValidateProperties(e){super.internalValidateProperties(e),this.url||e.addFailure(this,jG.PropertyCantBeNull,sY.errors.propertyMustBeSet("url"))}getHref(){return this.url}}bJ.urlProperty=new xY(vY.v1_0,"url").setContentType("link").setIsHero(),bJ.JsonTypeName="Action.OpenUrl";const wJ=new jY("TargetElement",[{name:"elementId",valueTypes:[{type:"string"}],schemaVersion:vY.v1_5},{name:"isVisible",valueTypes:[{type:"boolean"}],schemaVersion:vY.v1_5}]);class xJ extends FK{get targetElements(){return this.getValue(xJ.targetElementsProperty)}set targetElements(e){this.setValue(xJ.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,jG.PropertyCantBeNull,sY.errors.propertyMustBeSet("targetElements"))}getJsonTypeName(){return xJ.JsonTypeName}execute(){var e;super.execute();const t=null===(e=this.parent)||void 0===e?void 0:e.getRootObject();if(t&&t instanceof RK)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}}xJ.targetElementsProperty=new class extends NY{getDescriptor(e){return{valueTypes:[{type:"string"},{type:"object",validValues:[wJ]}],propertyType:"array"}}}(vY.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]=fY(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=>({})),xJ.JsonTypeName="Action.ToggleVisibility";class kJ extends FK{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(sY.overflowButtonText),this.tooltip=this.localizeString(sY.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(sY.overflowButtonTooltip)}}kJ.JsonTypeName="Action.Overflow";class SJ{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:vY.v1_0,suggestedSchemaTypeName:aY,isHero:r}}renderInlineAdaptiveCard(e,t){return t?g.createElement(DK,{cardObject:e}):g.createElement("div",{style:{marginTop:`${this._owner.hostConfig.actions.showCard.inlineTopMargin}px`},key:e.getKey("inline-content")},g.createElement(DK,{cardObject:e}))}updateLayout(){this._owner.getRootObject().updateLayout()}collapseExpandedAction(){for(const t of this._renderedActions){if(t instanceof kJ)for(const e of t.getActions())e.state=IG.Normal;t.state=IG.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===_G.Inline){for(const t of this._renderedActions)if(t instanceof kJ)for(const r of t.getActions())r.state=r!==e?IG.Subdued:IG.Expanded;else t.state=t!==e?IG.Subdued:IG.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,jG.TooManyActions,sY.errors.tooManyActions(this._owner.hostConfig.actions.maxActions)),this._items.length>0&&!this._owner.hostConfig.supportsInteractivity&&e.addFailure(this._owner,jG.InteractivityNotAllowed,sY.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===TG.Horizontal)if(n.style.flexDirection="row",t.actions.allowButtonsToWrap&&(n.style.flexWrap="wrap"),this._owner.horizontalAlignment&&t.actions.actionAlignment!==wG.Stretch)switch(this._owner.horizontalAlignment){case gG.Center:n.style.justifyContent="center";break;case gG.Right:n.style.justifyContent="flex-end";break;default:n.style.justifyContent="flex-start"}else switch(t.actions.actionAlignment){case wG.Center:n.style.justifyContent="center";break;case wG.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!==wG.Stretch)switch(this._owner.horizontalAlignment){case gG.Center:n.style.alignItems="center";break;case gG.Right:n.style.alignItems="flex-end";break;default:n.style.alignItems="flex-start"}else switch(t.actions.actionAlignment){case wG.Center:n.style.alignItems="center";break;case wG.Right:n.style.alignItems="flex-end";break;case wG.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===$$.Primary||"wrap"===e.applicationMode||e.menuActions&&e.menuActions.length>0?i.push(e):a.push(e)});const e=i.splice(t.actions.maxActions);YG.allowMoreThanMaxActionsInOverflowMenu&&a.push(...e);let n=!0;a.length>0&&(this._overflowAction||(this._overflowAction=new kJ(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(DK,{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 kJ){const e=a.getActions().find(e=>e.state===IG.Expanded),t=null==e?void 0:e.getInlineContent();t&&o.push(this.renderInlineAdaptiveCard(t,!1));break}if(a.state===IG.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(sY.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 _J extends RK{get orientation(){return this.getValue(_J.orientationProperty)}set orientation(e){this.setValue(_J.orientationProperty,e)}populateSchema(e){super.populateSchema(e),e.remove(_J.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 SJ(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),SJ.getActionsPropertyDescriptor(e,this.getJsonTypeName(),!0)]}isLastElement(e){return e.parent===this&&e.isExpandableInlineElement}get isInteractive(){return!0}}_J.orientationProperty=new PY(vY.v1_1,"orientation",TG);class CJ extends RK{constructor(){super(...arguments),this.allowVerticalOverflow=!1}populateSchema(e){super.populateSchema(e),this.isSelectable||e.remove(CJ.selectActionProperty)}get _selectAction(){return this.getValue(CJ.selectActionProperty)}set _selectAction(e){this.setValue(CJ.selectActionProperty,e)}isElementAllowed(e){return this.hostConfig.supportsInteractivity||!e.isInteractive}getSpacings(e){super.getSpacings(e);let t=new KG;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,jG.InteractivityNotAllowed,sY.errors.interactivityNotAllowed()),this.isElementAllowed(r)||e.addFailure(this,jG.InteractivityNotAllowed,sY.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}}CJ.selectActionProperty=new FY(vY.v1_1,"selectAction",["Action.ShowCard"]);class TJ extends AY{constructor(e,t,r,n){super(e,t,[{value:H$.Default},{value:H$.Emphasis},{targetVersion:vY.v1_2,value:H$.Accent},{targetVersion:vY.v1_2,value:H$.Good},{targetVersion:vY.v1_2,value:H$.Attention},{targetVersion:vY.v1_2,value:H$.Warning}],r,n),this.targetVersion=e,this.name=t,this.defaultValue=r,this.onGetInitialValue=n,this.typeName="ContainerStyle"}}class EJ extends RY{get targetWidth(){return this.getValue(EJ.targetWidthProperty)}set targetWidth(e){this.setValue(EJ.targetWidthProperty,e)}getAdditionalPropertyDescriptors(e){return[...super.getAdditionalPropertyDescriptors(e),{name:"type",valueTypes:[{type:"string"}],requiredValue:this.getSchemaKey(),schemaVersion:vY.v1_5}]}getCodeGenOptions(){return{baseClassName:"ContainerLayout"}}renderItem(e,t,r){return g.createElement(DK,{key:t.getKey(r),cardObject:t})}isResponsive(){return void 0!==this.targetWidth}get allowSpaceBetweenElements(){return!0}get allowContainersToBleed(){return!0}}EJ.targetWidthProperty=new OK(vY.v1_5,"targetWidth");class AJ extends EJ{getJsonTypeName(){return AJ.jsonTypeName}apply(e,t){switch(t.style.display="flex",t.style.flexDirection="column",e.getEffectiveVerticalContentAlignment()){case yG.Center:t.style.justifyContent="center";break;case yG.Bottom:t.style.justifyContent="flex-end";break;default:t.style.justifyContent="flex-start"}}}AJ.jsonTypeName="Layout.Stack";const PJ=new xY(vY.v1_5,"grid.area");class IJ extends OY{get name(){return this.getValue(IJ.nameProperty)}set name(e){this.setValue(IJ.nameProperty,e)}get column(){return this.getValue(IJ.columnProperty)}set column(e){this.setValue(IJ.columnProperty,e)}get columnSpan(){return this.getValue(IJ.columnSpanProperty)}set columnSpan(e){this.setValue(IJ.columnSpanProperty,e)}get row(){return this.getValue(IJ.rowProperty)}set row(e){this.setValue(IJ.rowProperty,e)}get rowSpan(){return this.getValue(IJ.rowSpanProperty)}set rowSpan(e){this.setValue(IJ.rowSpanProperty,e)}getSchemaKey(){return IJ.jsonTypeName}constructor(e){super(),this.name=e}}IJ.jsonTypeName="GridArea",IJ.nameProperty=new xY(vY.v1_5,"name"),IJ.columnProperty=new CY(vY.v1_5,"column",1),IJ.columnSpanProperty=new CY(vY.v1_5,"columnSpan",1),IJ.rowProperty=new CY(vY.v1_5,"row",1),IJ.rowSpanProperty=new CY(vY.v1_5,"rowSpan",1);class BJ extends EJ{get columns(){return this.getValue(BJ.columnsProperty)}set columns(e){this.setValue(BJ.columnsProperty,e)}get areas(){return this.getValue(BJ.areasProperty)}set areas(e){this.setValue(BJ.areasProperty,e)}get columnSpacing(){return this.getValue(BJ.columnSpacingProperty)}set columnSpacing(e){this.setValue(BJ.columnSpacingProperty,e)}get rowSpacing(){return this.getValue(BJ.rowSpacingProperty)}set rowSpacing(e){this.setValue(BJ.rowSpacingProperty,e)}getJsonTypeName(){return BJ.jsonTypeName}getEffectiveAreas(){return 0===this.areas.length?[BJ.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===oG.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(BJ.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(PJ),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(DK,{cardObject:t}))}get allowSpaceBetweenElements(){return!1}get allowContainersToBleed(){return!1}}var NJ,DJ;BJ.defaultArea=new IJ("."),BJ.jsonTypeName="Layout.AreaGrid",BJ.columnsProperty=new class extends wY{parse(e,t,r){const n=[],o=t[this.name];if(Array.isArray(o))for(const a of o)try{n.push(QG.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 QG?i.unit===oG.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}}(vY.v1_5,"columns",[]),BJ.areasProperty=new BY(vY.v1_5,"areas",()=>new IJ),BJ.columnSpacingProperty=new PY(vY.v1_5,"columnSpacing",fG,fG.Default),BJ.rowSpacingProperty=new PY(vY.v1_5,"rowSpacing",fG,fG.Default),(DJ=NJ||(NJ={}))[DJ.Fit=0]="Fit",DJ[DJ.Fill=1]="Fill",q$(NJ,"FlowLayoutItemFit");class zJ extends EJ{get horizontalItemsAlignment(){return this.getValue(zJ.horizontalItemsAlignmentProperty)}set horizontalItemsAlignment(e){this.setValue(zJ.horizontalItemsAlignmentProperty,e)}get verticalItemsAlignment(){return this.getValue(zJ.verticalItemsAlignmentProperty)}set verticalItemsAlignment(e){this.setValue(zJ.verticalItemsAlignmentProperty,e)}get itemFit(){return this.getValue(zJ.itemFitProperty)}set itemFit(e){this.setValue(zJ.itemFitProperty,e)}get minItemWidth(){return this.getValue(zJ.minItemWidthProperty)}set minItemWidth(e){this.setValue(zJ.minItemWidthProperty,e)}get maxItemWidth(){return this.getValue(zJ.maxItemWidthProperty)}set maxItemWidth(e){this.setValue(zJ.maxItemWidthProperty,e)}get itemWidth(){return this.getValue(zJ.itemWidthProperty)}set itemWidth(e){this.setValue(zJ.itemWidthProperty,e)}get columnSpacing(){return this.getValue(zJ.columnSpacingProperty)}set columnSpacing(e){this.setValue(zJ.columnSpacingProperty,e)}get rowSpacing(){return this.getValue(zJ.rowSpacingProperty)}set rowSpacing(e){this.setValue(zJ.rowSpacingProperty,e)}getJsonTypeName(){return zJ.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===NJ.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(DK,{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 yG.Center:t.style.alignContent="center";break;case yG.Bottom:t.style.alignContent="flex-end";break;default:t.style.alignContent="flex-start"}switch(this.horizontalItemsAlignment){case gG.Center:t.style.justifyContent="center";break;case gG.Right:t.style.justifyContent="flex-end";break;default:t.style.justifyContent="flex-start"}switch(this.verticalItemsAlignment){case yG.Center:t.style.alignItems="center";break;case yG.Bottom:t.style.alignItems="flex-end";break;default:t.style.alignItems="flex-start"}}get allowSpaceBetweenElements(){return!1}get allowContainersToBleed(){return!1}}zJ.jsonTypeName="Layout.Flow",zJ.horizontalItemsAlignmentProperty=new PY(vY.v1_5,"horizontalItemsAlignment",gG,gG.Center),zJ.verticalItemsAlignmentProperty=new PY(vY.v1_5,"verticalItemsAlignment",yG,yG.Top),zJ.itemFitProperty=new PY(vY.v1_5,"itemFit",NJ,NJ.Fit),zJ.minItemWidthProperty=new TY(vY.v1_5,"minItemWidth",0),zJ.maxItemWidthProperty=new TY(vY.v1_5,"maxItemWidth"),zJ.itemWidthProperty=new TY(vY.v1_5,"itemWidth"),zJ.columnSpacingProperty=new PY(vY.v1_5,"columnSpacing",fG,fG.Default),zJ.rowSpacingProperty=new PY(vY.v1_5,"rowSpacing",fG,fG.Default);const OJ=new Map([[AJ.jsonTypeName,()=>new AJ],[zJ.jsonTypeName,()=>new zJ],[BJ.jsonTypeName,()=>new BJ]]);class RJ extends CJ{constructor(){super(...arguments),this._resizeManager=new KK,this._containerSize=void 0,this.enableAutomaticReflow=!1}get style(){if(this.allowCustomStyle){const e=this.getValue(RJ.styleProperty);if(e&&this.hostConfig.containerStyles.getStyleByName(e))return e}}set style(e){this.setValue(RJ.styleProperty,e)}get showBorder(){return this.getValue(RJ.showBorderProperty)}set showBorder(e){this.setValue(RJ.showBorderProperty,e)}get roundedCorners(){return this.getValue(RJ.roundedCornersProperty)}set roundedCorners(e){this.setValue(RJ.roundedCornersProperty,e)}get layouts(){return this.getValue(RJ.layoutsProperty)}set layouts(e){this.setValue(RJ.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(RJ.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:RJ._defaultLayout}applyBorder(e){if(this.getHasBorder()&&!this.isBleeding()){const t=this.getEffectiveStyleDefinition();t.borderColor&&(e.style.border=`1px solid ${mY(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=mY(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 JG;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 JG;this.getImmediateSurroundingPadding(t);const r=this.hostConfig.paddingDefinitionToSpacingDefinition(t);this.separatorOrientation===TG.Horizontal&&(e.margin.left=-r.left,e.margin.right=-r.right)}else this.separatorOrientation===TG.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 LJ&&t.backgroundImage.isValid()),t instanceof RJ&&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 JG(fG.Padding,fG.Padding,fG.Padding,fG.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(sY.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(RJ.styleProperty);if(void 0!==t){this.hostConfig.containerStyles.getStyleByName(t)||e.addFailure(this,jG.InvalidPropertyValue,sY.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 yG.Top}get resizeManager(){return this._resizeManager}getSize(){return this._containerSize}}RJ.styleProperty=new TJ(vY.v1_0,"style"),RJ.showBorderProperty=new _Y(vY.v1_5,"showBorder",!1),RJ.roundedCornersProperty=new _Y(vY.v1_5,"roundedCorners",!1),RJ.layoutsProperty=new class extends wY{parse(e,t,r){const n=[],o=t[this.name];if(Array.isArray(o))for(const i of o){const e=OJ.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 OJ.values()){const e=r(),n=new LY(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}}(vY.v1_5,"layouts"),RJ._defaultLayout=new AJ;class MJ extends RJ{get _bleed(){return this.getValue(MJ.bleedProperty)}set _bleed(e){this.setValue(MJ.bleedProperty,e)}get minPixelHeight(){return this.getValue(MJ.minHeightProperty)}set minPixelHeight(e){this.setValue(MJ.minHeightProperty,e)}internalInsertItemAt(e,t,r){if(!r){if(e.parent)throw new Error(sY.errors.elementAlreadyParented());if(!e.isStandalone)throw new Error(sY.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()]}}MJ.bleedProperty=new _Y(vY.v1_2,"bleed",!1),MJ.minHeightProperty=new TY(vY.v1_2,"minHeight");class jJ extends OY{constructor(){super(...arguments),this.isProcessed=!1}get url(){return this.getValue(jJ.urlProperty)}set url(e){this.setValue(jJ.urlProperty,e)}get fillMode(){return this.getValue(jJ.fillModeProperty)}set fillMode(e){this.setValue(jJ.fillModeProperty,e)}get horizontalAlignment(){return this.getValue(jJ.horizontalAlignmentProperty)}set horizontalAlignment(e){this.setValue(jJ.horizontalAlignmentProperty,e)}get verticalAlignment(){return this.getValue(jJ.verticalAlignmentProperty)}set verticalAlignment(e){this.setValue(jJ.verticalAlignmentProperty,e)}get themedUrls(){return this.getValue(jJ.themedUrlsProperty)}set themedUrls(e){this.setValue(jJ.themedUrlsProperty,e)}propertyChanged(e,t){super.propertyChanged(e,t),e===jJ.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(jJ.urlProperty,r)}')`,this.fillMode){case AG.Repeat:t.style.backgroundRepeat="repeat";break;case AG.RepeatHorizontally:t.style.backgroundRepeat="repeat-x";break;case AG.RepeatVertically:t.style.backgroundRepeat="repeat-y";break;case AG.Cover:default:t.style.backgroundRepeat="no-repeat",t.style.backgroundSize="cover"}switch(this.horizontalAlignment){case gG.Left:break;case gG.Center:t.style.backgroundPositionX="center";break;case gG.Right:t.style.backgroundPositionX="right"}switch(this.verticalAlignment){case yG.Top:break;case yG.Center:t.style.backgroundPositionY="center";break;case yG.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}}jJ.urlProperty=new xY(vY.v1_0,"url").setContentType("imageUrl"),jJ.fillModeProperty=new PY(vY.v1_2,"fillMode",AG,AG.Cover),jJ.horizontalAlignmentProperty=new PY(vY.v1_2,"horizontalAlignment",gG,gG.Left),jJ.verticalAlignmentProperty=new PY(vY.v1_2,"verticalAlignment",yG,yG.Top),jJ.themedUrlsProperty=new BY(vY.v1_5,"themedUrls",e=>new IK);class LJ extends MJ{constructor(){super(...arguments),this._items=[],this._renderedItems=[]}get backgroundImage(){return this.getValue(LJ.backgroundImageProperty)}get verticalContentAlignment(){return this.getValue(LJ.verticalContentAlignmentProperty)}set verticalContentAlignment(e){this.setValue(LJ.verticalContentAlignmentProperty,e)}get rtl(){return this.getValue(LJ.rtlProperty)}set rtl(e){this.setValue(LJ.rtlProperty,e)}get maxPixelHeight(){return this.getValue(LJ.maxHeightProperty)}set maxPixelHeight(e){this.setValue(LJ.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:vY.v1_0,suggestedSchemaTypeName:oY,isHero:!0}]}getEffectivePadding(){if(YG.removePaddingFromContainersWithBackgroundImage&&!this.getHasBackground(!0))return new JG;return super.getEffectivePadding()}getParentContainer(){let e=this.parent;for(;e;){if(e instanceof LJ)return e;e=e.parent}}getEffectiveVerticalContentAlignment(){if(void 0!==this.verticalContentAlignment)return this.verticalContentAlignment;const e=this.getParentContainer();return e?e.getEffectiveVerticalContentAlignment():yG.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)}}LJ.backgroundImageProperty=new class extends IY{getDescriptor(e){return{valueTypes:[{type:"string",contentType:"imageUrl"},{type:"object",validValues:[new LY(this.createInstance(),this.allowAdditionalProperties)]}],defaultValue:this.defaultValue}}constructor(e,t){super(e,t,e=>new jJ),this.targetVersion=e,this.name=t}}(vY.v1_0,"backgroundImage"),LJ.verticalContentAlignmentProperty=new PY(vY.v1_1,"verticalContentAlignment",yG),LJ.rtlProperty=new _Y(vY.v1_0,"rtl"),LJ.maxHeightProperty=new TY(vY.v1_5,"maxHeight");class FJ extends LJ{get width(){return this.getValue(FJ.widthProperty)}set width(e){this.setValue(FJ.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 QG&&(this.width.unit===oG.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 TG.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 VJ)&&(!this.parent.isFirstElement(this)&&this.shouldRender())}get isStandalone(){return!1}}FJ.widthProperty=new class extends wY{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=QG.parse(o),n.unit===oG.Pixel&&this.targetVersion.compareTo(r.targetVersion)>0&&(i=!0)}catch(bze){i=!0}else i=!0;else n=new QG(o,oG.Weight);return i&&(r.logParseEvent(e,jG.InvalidPropertyValue,sY.errors.invalidColumnWidth(o)),n="auto"),n}toJSON(e,t,r,n){r instanceof QG?r.unit===oG.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",XG]},{type:"number"}],defaultValue:this.defaultValue}}}(vY.v1_0,"width","stretch");class VJ extends MJ{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 FJ,(e,r)=>{t.logParseEvent(void 0,jG.ElementTypeNotAllowed,sY.errors.elementTypeNotAllowed(e))})}populateSchema(e){super.populateSchema(e),e.remove(RJ.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 QG&&n.width.unit===oG.Weight&&(t+=n.width.physicalSize);const r=[];return this._renderedColumns=[],e.forEach((e,n)=>{if(e.width instanceof QG&&e.width.unit===oG.Weight&&t>0){const r=100/t*e.width.physicalSize;e._computedWeight=r}const o=g.createElement(DK,{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 gG.Center:e.style.justifyContent="center";break;case gG.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 LY(new FJ)]}],propertyType:"array",declaringClassName:this.constructor.name,schemaVersion:vY.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,jG.Hint,sY.hints.dontUseWeightedAndStretchedColumnsInSameSet())}addColumn(e){this.internalInsertItemAt(e,this._columns.length,!0)}removeItem(e){if(e instanceof FJ){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 FJ?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 qJ extends RK{populateSchema(e){super.populateSchema(e),e.remove(qJ.selectActionProperty)}get size(){return this.getValue(qJ.sizeProperty)}set size(e){this.setValue(qJ.sizeProperty,e)}get weight(){return this.getValue(qJ.weightProperty)}set weight(e){this.setValue(qJ.weightProperty,e)}get color(){return this.getValue(qJ.colorProperty)}set color(e){this.setValue(qJ.colorProperty,e)}get fontType(){return this.getValue(qJ.fontTypeProperty)}set fontType(e){this.setValue(qJ.fontTypeProperty,e)}get isSubtle(){return this.getValue(qJ.isSubtleProperty)}set isSubtle(e){this.setValue(qJ.isSubtleProperty,e)}get text(){return this.getValue(qJ.textProperty)}set text(e){this.setText(e)}get textDynamic(){return this.getValue(qJ.textDynamicProperty)}set textDynamic(e){this.setValue(qJ.textDynamicProperty,e)}get selectAction(){return this.getValue(qJ.selectActionProperty)}set selectAction(e){this.setValue(qJ.selectActionProperty,e)}getFontSize(e){switch(this.effectiveSize){case aG.Small:return e.fontSizes.small;case aG.Medium:return e.fontSizes.medium;case aG.Large:return e.fontSizes.large;case aG.ExtraLarge:return e.fontSizes.extraLarge;default:return e.fontSizes.default}}setText(e){this.setValue(qJ.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=mY(this.effectiveIsSubtle?r.subtle:r.default);switch(n&&(e.style.color=n),this.effectiveWeight){case lG.Lighter:e.style.fontWeight=t.fontWeights.lighter;break;case lG.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}}qJ.textProperty=new xY(vY.v1_0,"text").setContentType("text").setIsHero(),qJ.textDynamicProperty=new SY(vY.v1_5,"text.dynamic",qJ.textProperty),qJ.sizeProperty=new PY(vY.v1_0,"size",aG),qJ.weightProperty=new PY(vY.v1_0,"weight",lG),qJ.colorProperty=new PY(vY.v1_0,"color",pG),qJ.isSubtleProperty=new _Y(vY.v1_0,"isSubtle"),qJ.fontTypeProperty=new PY(vY.v1_2,"fontType",uG),qJ.selectActionProperty=new FY(vY.v1_1,"selectAction",["Action.ShowCard"]);const HJ=jr({lastParagraph:{"& > div > p:last-of-type":{display:"inline"},"& > div":{display:"inline"}}});class UJ extends qJ{constructor(){super(...arguments),this._internalId=cY(),this.useMarkdown=!0,this.renderAs="div"}get wrap(){return this.getValue(UJ.wrapProperty)}set wrap(e){this.setValue(UJ.wrapProperty,e)}get maxLines(){return this.getValue(UJ.maxLinesProperty)}set maxLines(e){this.setValue(UJ.maxLinesProperty,e)}get style(){return this.getValue(UJ.styleProperty)}set style(e){this.setValue(UJ.styleProperty,e)}get labelFor(){return this.getValue(UJ.labelForProperty)}set labelFor(e){this.setValue(UJ.labelForProperty,e)}populateSchema(e){super.populateSchema(e),e.remove(qJ.selectActionProperty)}propertyChanged(e,t,r){super.propertyChanged(e,t,r),e===UJ.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=HJ();if(this.text){const e=this.preProcessPropertyValue(qJ.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=oJ(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",YG.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 UJ(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(DK,{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 gG.Center:e.style.textAlign="center";break;case gG.Right:e.style.textAlign="end";break;default:e.style.textAlign="start"}const t=this.hostConfig.lineHeights;if(t)switch(this.effectiveSize){case aG.Small:this._computedLineHeight=t.small;break;case aG.Medium:this._computedLineHeight=t.medium;break;case aG.Large:this._computedLineHeight=t.large;break;case aG.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}}UJ.wrapProperty=new _Y(vY.v1_0,"wrap",!1),UJ.maxLinesProperty=new CY(vY.v1_0,"maxLines"),UJ.styleProperty=new AY(vY.v1_5,"style",[{value:"default"},{value:"columnHeader"},{value:"heading"}]),UJ.labelForProperty=new xY(vY.v1_5,"labelFor");class WJ extends OY{get name(){return this.getValue(WJ.titleProperty)}set name(e){this.setValue(WJ.titleProperty,e)}get value(){return this.getValue(WJ.valueProperty)}set value(e){this.setValue(WJ.valueProperty,e)}getSchemaKey(){return"Fact"}constructor(e,t){super(),this.name=e,this.value=t}}WJ.titleProperty=new xY(vY.v1_0,"title").setContentType("text").setIsHero(),WJ.valueProperty=new xY(vY.v1_0,"value").setContentType("text").setIsHero();class $J extends RK{get facts(){return this.getValue($J.factsProperty)}set facts(e){this.setValue($J.factsProperty,e)}populateSchema(e){super.populateSchema(e),e.remove(RK.horizontalAlignmentProperty)}get useDefaultSizing(){return!1}internalRender(e){const t=this.hostConfig,r=e=>{const t=new UJ;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=fG.None,g.createElement(DK,{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 GJ,YJ,KJ,JJ;$J.factsProperty=new BY(vY.v1_0,"facts",e=>new WJ).setIsHero(),(YJ=GJ||(GJ={}))[YJ.Small=0]="Small",YJ[YJ.Default=1]="Default",YJ[YJ.Medium=2]="Medium",YJ[YJ.Large=3]="Large",YJ[YJ.ExtraLarge=4]="ExtraLarge",(JJ=KJ||(KJ={}))[JJ.Top=0]="Top",JJ[JJ.Center=1]="Center",JJ[JJ.Bottom=2]="Bottom";const XJ={[GJ.Small]:"14px",[GJ.Default]:"16px",[GJ.Medium]:"16px",[GJ.Large]:"18px",[GJ.ExtraLarge]:"24px"};class QJ extends RK{populateSchema(e){super.populateSchema(e),e.remove(RK.targetWidthProperty),e.remove(RK.horizontalAlignmentProperty),e.remove(RK.heightProperty),e.remove(RK.separatorProperty),e.remove(RK.spacingProperty),e.remove(RK.requiresProperty)}get name(){return this.getValue(QJ.nameProperty)}set name(e){this.setValue(QJ.nameProperty,e)}get size(){return this.getValue(QJ.sizeProperty)}set size(e){this.setValue(QJ.sizeProperty,e)}get style(){return this.getValue(QJ.styleProperty)}set style(e){this.setValue(QJ.styleProperty,e)}get color(){return this.getValue(QJ.colorProperty)}set color(e){this.setValue(QJ.colorProperty,e)}get selectAction(){return this.getValue(QJ.selectActionProperty)}set selectAction(e){this.setValue(QJ.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($Y,{name:this.name,iconSize:XJ[this.size],iconStyle:this.style,iconColor:mY(r.default),isInline:!0}))}getJsonTypeName(){return"IconRun"}get isStandalone(){return!1}get isInline(){return!0}}QJ.nameProperty=new xY(vY.v1_5,"name"),QJ.sizeProperty=new PY(vY.v1_5,"size",GJ,GJ.Default),QJ.styleProperty=new PY(vY.v1_5,"style",rG,rG.Regular),QJ.colorProperty=new PY(vY.v1_5,"color",pG,pG.Default),QJ.selectActionProperty=new FY(vY.v1_5,"selectAction",["Action.ShowCard"]);class ZJ extends wY{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=QG.parse(o,!0);e.unit===oG.Pixel&&(n=e.physicalSize,i=!0)}catch(a){}!i&&this.fallbackProperty&&(i=this.fallbackProperty.isValidValue(o,r))}return i||r.logParseEvent(e,jG.InvalidPropertyValue,sY.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",XG]}],defaultValue:"auto"}}constructor(e,t,r,n){super(e,t),this.targetVersion=e,this.name=t,this.internalName=r,this.fallbackProperty=n}}class eX extends OY{get allowExpand(){return this.getValue(eX.allowExpand)}set allowExpand(e){this.setValue(eX.allowExpand,e)}getSchemaKey(){return"TeamsImageProperties"}}eX.allowExpand=new _Y(vY.v1_0,"allowExpand");class tX extends RK{populateSchema(e){super.populateSchema(e),e.remove(RK.heightProperty),e.add(tX.pixelHeightProperty)}get url(){return this.getValue(tX.urlProperty)}set url(e){this.setValue(tX.urlProperty,e)}get altText(){return this.getValue(tX.altTextProperty)}set altText(e){this.setValue(tX.altTextProperty,e)}get backgroundColor(){return this.getValue(tX.backgroundColorProperty)}set backgroundColor(e){this.setValue(tX.backgroundColorProperty,e)}get size(){return this.getValue(tX.sizeProperty)}set size(e){this.setValue(tX.sizeProperty,e)}get style(){return this.getValue(tX.styleProperty)}set style(e){this.setValue(tX.styleProperty,e)}get pixelWidth(){return this.getValue(tX.pixelWidthProperty)}set pixelWidth(e){this.setValue(tX.pixelWidthProperty,e)}get pixelHeight(){return this.getValue(tX.pixelHeightProperty)}set pixelHeight(e){this.setValue(tX.pixelHeightProperty,e)}get selectAction(){return this.getValue(tX.selectActionProperty)}set selectAction(e){this.setValue(tX.selectActionProperty,e)}get allowExpand(){return this.getValue(tX.allowExpandProperty)}set allowExpand(e){this.setValue(tX.allowExpandProperty,e)}get themedUrls(){return this.getValue(tX.themedUrlsProperty)}set themedUrls(e){this.setValue(tX.themedUrlsProperty,e)}get fitMode(){return this.getValue(tX.fitModeProperty)}set fitMode(e){this.setValue(tX.fitModeProperty,e)}get horizontalContentAlignment(){return this.getValue(tX.horizontalContentAlignmentProperty)}set horizontalContentAlignment(e){this.setValue(tX.horizontalContentAlignmentProperty,e)}get verticalContentAlignment(){return this.getValue(tX.verticalContentAlignmentProperty)}set verticalContentAlignment(e){this.setValue(tX.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 Y$.Small:e.style.height=`${this.hostConfig.imageSizes.small}px`;break;case Y$.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 Y$.Stretch:e.style.width="100%";break;case Y$.Auto:e.style.maxWidth="100%";break;case Y$.Small:e.style.width=`${this.hostConfig.imageSizes.small}px`;break;case Y$.Large:e.style.width=`${this.hostConfig.imageSizes.large}px`;break;case Y$.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 Q$.Cover:r.style.objectFit="cover";break;case Q$.Contain:r.style.objectFit="contain";break;case Q$.Fill:r.style.objectFit="fill"}const n=gG[this.horizontalContentAlignment],o=yG[this.verticalContentAlignment];switch(r.style.objectPosition=`${n} ${o}`,this.style!==kG.Default&&this.fitMode!==Q$.Contain&&(r.style.borderRadius=this.style===kG.Person?"50%":`${this.hostConfig.roundedCornerRadius}px`,r.style.backgroundPosition="50% 50%",r.style.backgroundRepeat="no-repeat"),this.getEffectiveHorizontalAlignment()){case gG.Center:r.style.alignSelf="center";break;case gG.Right:r.style.alignSelf="flex-end";break;default:r.style.alignSelf="flex-start"}const i=mY(this.backgroundColor);i&&(r.style.backgroundColor=i),r.src=this.preProcessPropertyValue(IK.urlProperty,t);const a=this.preProcessPropertyValue(tX.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 rX,nX,oX,iX,aX,sX;tX.urlProperty=new xY(vY.v1_0,"url").setContentType("imageUrl").setIsHero(),tX.altTextProperty=new xY(vY.v1_0,"altText",void 0,void 0,void 0,!0).setContentType("text"),tX.backgroundColorProperty=new xY(vY.v1_1,"backgroundColor"),tX.styleProperty=new PY(vY.v1_0,"style",kG,kG.Default),tX.sizeProperty=new PY(vY.v1_0,"size",Y$,Y$.Auto),tX.pixelWidthProperty=new ZJ(vY.v1_1,"width","pixelWidth"),tX.pixelHeightProperty=new ZJ(vY.v1_1,"height","pixelHeight",RK.heightProperty),tX.selectActionProperty=new FY(vY.v1_1,"selectAction",["Action.ShowCard"]),tX.allowExpandProperty=new _Y(vY.v1_2,"allowExpand",!1),tX.msTeamsProperty=new IY(vY.v1_2,"msTeams",e=>new eX).setAlternateDefinition(new IY(vY.v1_2,"msteams",e=>new eX)),tX.themedUrlsProperty=new BY(vY.v1_5,"themedUrls",e=>new IK),tX.fitModeProperty=new PY(vY.v1_5,"fitMode",Q$,Q$.Fill),tX.horizontalContentAlignmentProperty=new PY(vY.v1_5,"horizontalContentAlignment",gG,gG.Left),tX.verticalContentAlignmentProperty=new PY(vY.v1_5,"verticalContentAlignment",yG,yG.Top),(nX=rX||(rX={}))[nX.Small=0]="Small",nX[nX.Default=1]="Default",nX[nX.Medium=2]="Medium",nX[nX.Large=3]="Large",nX[nX.ExtraLarge=4]="ExtraLarge",(iX=oX||(oX={}))[iX.Top=0]="Top",iX[iX.Center=1]="Center",iX[iX.Bottom=2]="Bottom";class lX extends RK{populateSchema(e){super.populateSchema(e),e.remove(RK.targetWidthProperty),e.remove(RK.horizontalAlignmentProperty),e.remove(RK.heightProperty),e.remove(RK.separatorProperty),e.remove(RK.spacingProperty),e.remove(RK.requiresProperty)}get url(){return this.getValue(lX.urlProperty)}set url(e){this.setValue(lX.urlProperty,e)}get size(){return this.getValue(lX.sizeProperty)}set size(e){this.setValue(lX.sizeProperty,e)}get style(){return this.getValue(lX.styleProperty)}set style(e){this.setValue(lX.styleProperty,e)}get selectAction(){return this.getValue(lX.selectActionProperty)}set selectAction(e){this.setValue(lX.selectActionProperty,e)}get themedUrls(){return this.getValue(lX.themedUrlsProperty)}set themedUrls(e){this.setValue(lX.themedUrlsProperty,e)}getImageSize(){const e=this.getEffectiveTextStyleDefinition().fontType,t=this.hostConfig.getFontTypeDefinition(e);switch(this.size){case rX.Small:return t.inlineImageSizes.small;case rX.Medium:return t.inlineImageSizes.medium;case rX.Large:return t.inlineImageSizes.large;case rX.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!==kG.Default&&(r.style.borderRadius=this.style===kG.Person?"50%":`${this.hostConfig.roundedCornerRadius}px`,r.style.backgroundPosition="50% 50%",r.style.backgroundRepeat="no-repeat"),r.src=this.preProcessPropertyValue(IK.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}}lX.urlProperty=new xY(vY.v1_5,"url").setContentType("imageUrl"),lX.sizeProperty=new PY(vY.v1_5,"size",rX,rX.Default),lX.styleProperty=new PY(vY.v1_5,"style",kG,kG.Default),lX.selectActionProperty=new FY(vY.v1_5,"selectAction",["Action.ShowCard"]),lX.themedUrlsProperty=new BY(vY.v1_5,"themedUrls",e=>new IK);class cX extends CJ{get _images(){return this.getValue(cX.imagesProperty)}set _images(e){this.setValue(cX.imagesProperty,e)}get imageSize(){return this.getValue(cX.imageSizeProperty)}set imageSize(e){this.setValue(cX.imageSizeProperty,e)}internalRender(e){if(this._images.length>0){const e=[];let t;switch(this._images.forEach((t,r)=>{switch(this.imageSize){case J$.Small:t.size=Y$.Small;break;case J$.Large:t.size=Y$.Large;break;default:t.size=Y$.Medium}t.maxHeight=this.hostConfig.imageSet.maxImageHeight,e.push(g.createElement(DK,{key:t.getKey(r),cardObject:t}))}),this.horizontalAlignment){case gG.Right:t="flex-end";break;case gG.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 tX){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 tX?this._images.indexOf(e):-1}}cX.imagesProperty=new BY(vY.v1_0,"images",e=>new tX,(e,t)=>{t.setParent(e)}).setIsHero(),cX.imageSizeProperty=new PY(vY.v1_0,"imageSize",J$,J$.Medium);class uX extends OY{get mimeType(){return this.getValue(uX.mimeTypeProperty)}set mimeType(e){this.setValue(uX.mimeTypeProperty,e)}get url(){return this.getValue(uX.urlProperty)}set url(e){this.setValue(uX.urlProperty,e)}constructor(e,t){super(),this.url=e,this.mimeType=t}isValid(){return!(!this.mimeType||!this.url)}}uX.mimeTypeProperty=new xY(vY.v1_1,"mimeType"),uX.urlProperty=new xY(vY.v1_1,"url").setContentType("mediaUrl");class dX extends uX{get label(){return this.getValue(dX.labelProperty)}set label(e){this.setValue(dX.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}}dX.labelProperty=new xY(vY.v1_6,"label").setContentType("text");class fX extends uX{getSchemaKey(){return"MediaSource"}render(){return this.isValid()?g.createElement("source",{src:this.url,type:this.mimeType}):null}}class hX{constructor(){this.isPlaying=!1}play(){}get selectedMediaType(){}}class pX extends hX{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=pX.supportedMediaTypes.indexOf(t[0]);e>=0&&(this._selectedMediaType=pX.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 u$(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(sY.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}}pX.supportedMediaTypes=["audio","video"];class mX extends hX{constructor(e){super()}}class gX extends mX{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 vX extends gX{fetchVideoDetails(){return u$(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 yX extends gX{fetchVideoDetails(){return u$(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 bX extends gX{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 u$(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}}(sX=aX||(aX={}))[sX.Loading=0]="Loading",sX[sX.ShowPoster=1]="ShowPoster",sX[sX.ShowPlayer=2]="ShowPlayer";const wX=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($Y,{name:"Play",iconSize:112/3,iconStyle:rG.Filled,iconColor:"black"}));class xX{static registerMediaElement(e){var t;const r=null!==(t=e.groupId)&&void 0!==t?t:xX.defaultGroupId;let n=xX._groupedMediaElements.get(r);n||(n=new Set,xX._groupedMediaElements.set(r,n)),n.add(e)}static unregisterMediaElement(e){for(const t of xX._groupedMediaElements.values())t.delete(e)}static stopPlayback(e,t){if(e){const r=xX._groupedMediaElements.get(e);if(r)for(const e of r)e!==t&&e.releaseDOMResources()}else for(const[,r]of xX._groupedMediaElements)if(!t||r.has(t))for(const e of r)e!==t&&e.releaseDOMResources()}static stopPlaybackInChildren(e){for(const[,t]of xX._groupedMediaElements)for(const r of t)r.hasAsParent(e)&&r.releaseDOMResources()}}xX.defaultGroupId="__defaultGroupId__",xX._groupedMediaElements=new Map;class kX extends RK{static stopPlayback(e){xX.stopPlayback(e)}static stopPlaybackInChildren(e){xX.stopPlaybackInChildren(e)}get sources(){return this.getValue(kX.sourcesProperty)}set sources(e){this.setValue(kX.sourcesProperty,e)}get captionSources(){return this.getValue(kX.captionSourcesProperty)}set captionSources(e){this.setValue(kX.captionSourcesProperty,e)}get poster(){return this.getValue(kX.posterProperty)}set poster(e){this.setValue(kX.posterProperty,e)}get altText(){return this.getValue(kX.altTextProperty)}set altText(e){this.setValue(kX.altTextProperty,e)}populateSchema(e){super.populateSchema(e),e.remove(RK.horizontalAlignmentProperty)}mounted(){super.mounted(),xX.registerMediaElement(this)}unmounted(){super.unmounted(),xX.unregisterMediaElement(this)}getJsonTypeName(){return"Media"}}kX.sourcesProperty=new BY(vY.v1_1,"sources",e=>new fX),kX.captionSourcesProperty=new BY(vY.v1_6,"captionSources",e=>new dX),kX.posterProperty=new xY(vY.v1_1,"poster").setContentType("imageUrl"),kX.altTextProperty=new xY(vY.v1_1,"altText").setContentType("text");const SX=e=>{var t;const[r,n]=g.useState(aX.Loading);g.useEffect(()=>{var t;(null===(t=e.mediaPlayer)||void 0===t?void 0:t.isPlaying)||(n(aX.Loading),e.mediaPlayer&&e.mediaPlayer.fetchVideoDetails().then(()=>{n(aX.ShowPoster)}))},[e.mediaPlayer,null===(t=e.mediaPlayer)||void 0===t?void 0:t.isPlaying]);switch(r){case aX.Loading:return g.createElement("div",{style:{height:`${e.placeholderHeight}px`}});case aX.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(sY.mediaPlayerPosterAltText),style:{width:"100%",height:"100%"}};s=e.renderImage({isSelectable:!1,allowExpand:!1},t)}else a=`${e.placeholderHeight}px`;const l=()=>{e.startPlayback(),n(aX.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(sY.mediaPlayerAriaLabel),startPlayback:l};return UK.mediaPlayButtonRenderer?UK.mediaPlayButtonRenderer(t):g.createElement(wX,Object.assign({},t))}return null})())})();case aX.ShowPlayer:return e.mediaPlayer?e.mediaPlayer.render():null}},_X={urlPatterns:[/^(?:https:\/\/)?(?:www\.)?youtube\.com\/watch\?(?=.*v=([\w\d-_]+))(?=(?:.*t=(\d+))?).*/i,/^(?:https:\/\/)?youtu\.be\/([\w\d-_]+)(?:\?t=(\d+))?/i],createMediaPlayer:(e,t)=>new bX(e,t,sY.youTubeVideoPlayer)},CX={urlPatterns:[/^(?:https:\/\/)?vimeo\.com\/([\w\d-_]+).*/i],createMediaPlayer:(e,t)=>new vX(e,t,sY.vimeoVideoPlayer)},TX={urlPatterns:[/^(?:https:\/\/)?(?:www\.)?dailymotion\.com\/video\/([\w\d-_]+).*/i],createMediaPlayer:(e,t)=>new yX(e,t,sY.dailymotionVideoPlayer)};class EX extends kX{static registerCustomMediaPlayers(...e){EX._customMediaPlayers.push(...e)}createMediaPlayerFromRegistry(){for(const e of EX._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 pX(this)));return g.createElement(SX,{mediaPlayer:this._mediaPlayer,posterUrl:this.poster,defaultPosterUrl:this.hostConfig.media.defaultPoster,placeholderHeight:(()=>{switch(this.hostWidth){case UG.VeryNarrow:return this.hostConfig.media.placeholderHeights.veryNarrow;case UG.Narrow:return this.hostConfig.media.placeholderHeights.narrow;case UG.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(sY.mediaPlayerAriaLabel),renderImage:(e,t)=>this.renderImage(e,t),localizeString:(e,t)=>this.localizeString(e,t),startPlayback:()=>{this._mediaPlayer&&(this._mediaPlayer.isPlaying=!0),YG.allowSimultaneousVideoPlayback||xX.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}}EX._customMediaPlayers=[];class AX extends qJ{populateSchema(e){super.populateSchema(e),e.remove(RK.targetWidthProperty),e.remove(RK.horizontalAlignmentProperty),e.remove(RK.heightProperty),e.remove(RK.separatorProperty),e.remove(RK.spacingProperty),e.remove(RK.requiresProperty),e.add(qJ.selectActionProperty)}get italic(){return this.getValue(AX.italicProperty)}set italic(e){this.setValue(AX.italicProperty,e)}get strikethrough(){return this.getValue(AX.strikethroughProperty)}set strikethrough(e){this.setValue(AX.strikethroughProperty,e)}get highlight(){return this.getValue(AX.highlightProperty)}set highlight(e){this.setValue(AX.highlightProperty,e)}get underline(){return this.getValue(AX.underlineProperty)}set underline(e){this.setValue(AX.underlineProperty,e)}internalRender(e){var t;if(this.text){const e=this.preProcessPropertyValue(qJ.textProperty),r=this.hostConfig,n=oJ(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=mY(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}}AX.italicProperty=new _Y(vY.v1_2,"italic",!1),AX.strikethroughProperty=new _Y(vY.v1_2,"strikethrough",!1),AX.highlightProperty=new _Y(vY.v1_2,"highlight",!1),AX.underlineProperty=new _Y(vY.v1_3,"underline",!1);class PX extends RK{constructor(){super(...arguments),this._inlines=[],this._internalId=cY()}get labelFor(){return this.getValue(PX.labelForProperty)}set labelFor(e){this.setValue(PX.labelForProperty,e)}propertyChanged(e,t,r){super.propertyChanged(e,t,r),e===PX.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(sY.errors.elementCannotBeUsedAsInline());if(!(void 0===e.parent||t)&&e.parent!==this)throw new Error(sY.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 AX;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 gG.Center:e.style.textAlign="center";break;case gG.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 AX(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(DK,{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 RK&&e.describedObject.isInline);return[...super.getAdditionalPropertyDescriptors(e),{name:"inlines",valueTypes:[{type:"object",validValues:t},{type:"string",contentType:"text"}],propertyType:"array",schemaVersion:vY.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(sY.errors.indexOutOfRange(e))}addInline(e){"string"==typeof e?this.internalAddInline(new AX(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}}PX.labelForProperty=new xY(vY.v1_5,"labelFor");class IX extends LJ{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&&zK(this.hostConfig,{spacing:this.hostConfig.getEffectiveSpacing(this.hostConfig.actions.spacing)},TG.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(LJ.maxHeightProperty)}get renderedActionCount(){return this._actionCollection.renderedActionCount}constructor(){super(),this._actionCollection=new SJ(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 BX extends OY{get action(){return this.getValue(BX.actionProperty)}set action(e){this.setValue(BX.actionProperty,e),e&&e.setParent(this.parent)}get userIds(){return this.getValue(BX.userIdsProperty)}set userIds(e){this.setValue(BX.userIdsProperty,e)}getSchemaKey(){return"RefreshDefinition"}}BX.actionProperty=new class extends wY{parse(e,t,r){const n=r.parseAction(e.parent,t[this.name],[],!1);if(void 0!==n){if(n instanceof yJ)return n;r.logParseEvent(e,jG.ActionTypeNotAllowed,sY.errors.actionTypeNotAllowed(n.getJsonTypeName()))}r.logParseEvent(e,jG.PropertyCantBeNull,sY.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 LY(new yJ)]}]}}constructor(e,t){super(e,t,void 0),this.targetVersion=e,this.name=t}}(vY.v1_4,"action"),BX.userIdsProperty=new EY(vY.v1_4,"userIds");class NX extends OY{getSchemaKey(){return"AuthCardButton"}get type(){return this.getValue(NX.typeProperty)}set type(e){this.setValue(NX.typeProperty,e)}get title(){return this.getValue(NX.titleProperty)}set title(e){this.setValue(NX.titleProperty,e)}get image(){return this.getValue(NX.imageProperty)}set image(e){this.setValue(NX.imageProperty,e)}get value(){return this.getValue(NX.valueProperty)}set value(e){this.setValue(NX.valueProperty,e)}}NX.typeProperty=new xY(vY.v1_4,"type"),NX.titleProperty=new xY(vY.v1_4,"title").setContentType("text"),NX.imageProperty=new xY(vY.v1_4,"image"),NX.valueProperty=new xY(vY.v1_4,"value");class DX extends OY{getSchemaKey(){return"TokenExchangeResource"}get id(){return this.getValue(DX.idProperty)}set id(e){this.setValue(DX.idProperty,e)}get uri(){return this.getValue(DX.uriProperty)}set uri(e){this.setValue(DX.uriProperty,e)}get providerId(){return this.getValue(DX.providerIdProperty)}set providerId(e){this.setValue(DX.providerIdProperty,e)}}DX.idProperty=new xY(vY.v1_4,"id"),DX.uriProperty=new xY(vY.v1_4,"uri"),DX.providerIdProperty=new xY(vY.v1_4,"providerId");class zX extends OY{getSchemaKey(){return"Authentication"}get text(){return this.getValue(zX.textProperty)}set text(e){this.setValue(zX.textProperty,e)}get connectionName(){return this.getValue(zX.connectionNameProperty)}set connectionName(e){this.setValue(zX.connectionNameProperty,e)}get buttons(){return this.getValue(zX.buttonsProperty)}set buttons(e){this.setValue(zX.buttonsProperty,e)}get tokenExchangeResource(){return this.getValue(zX.tokenExchangeResourceProperty)}set tokenExchangeResource(e){this.setValue(zX.tokenExchangeResourceProperty,e)}}zX.textProperty=new xY(vY.v1_4,"text").setContentType("text"),zX.connectionNameProperty=new xY(vY.v1_4,"connectionName"),zX.buttonsProperty=new BY(vY.v1_4,"buttons",e=>new NX),zX.tokenExchangeResourceProperty=new IY(vY.v1_4,"tokenExchangeResource",e=>new DX,!0);class OX extends OY{getSchemaKey(){return"CardMetadata"}}OX.webUrlProperty=new xY(vY.v1_4,"webUrl").setContentType("link");let RX=class e extends IX{constructor(){super(...arguments),this._inputIdToLabelElementMap=new Map,this._inputIdToInputElementMap=new Map,this.isFocusable=!0}populateSchema(e){super.populateSchema(e),e.remove(MJ.bleedProperty),e.remove(MJ.showBorderProperty),e.remove(MJ.roundedCornersProperty),e.remove(RK.heightProperty),e.remove(RK.horizontalAlignmentProperty),e.remove(RK.separatorProperty),e.remove(RK.spacingProperty),e.remove(RK.targetWidthProperty),e.remove(RK.targetWidthProperty),e.remove(RK.isVisibleProperty),e.remove(RK.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),lY(e,this.hostConfig.makeCssClassName("ac-adaptiveCard")),this.isFocusable&&(e.tabIndex=0),this.speak&&(e["aria-label"]=this.speak)}getDefaultSerializationContext(){return new VK(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 JG(fG.Padding,fG.Padding,fG.Padding,fG.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(ZK),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),SJ.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(RK.typeNameProperty)&&e.addFailure(this,jG.MissingCardType,sY.errors.invalidCardType()),this.bypassVersionCheck||this.version?this.isVersionSupported()||e.addFailure(this,jG.UnsupportedCardVersion,sY.errors.unsupportedCardVersion(this.version.toString(),this.maxVersion.toString())):e.addFailure(this,jG.PropertyCantBeNull,sY.errors.propertyMustBeSet("version")),this.speak||e.addFailure(this,jG.PropertyShouldBeSet,sY.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}};RX.schemaUrl="https://adaptivecards.io/schemas/adaptive-card.json",RX.$schemaProperty=new class extends NY{getDescriptor(e){return{valueTypes:[{type:"string"}]}}}(vY.v1_0,"$schema",(e,t,r,n)=>RX.schemaUrl,(e,t,r,n,o)=>{o.serializeValue(r,t.name,RX.schemaUrl)}),RX.versionProperty=new class extends wY{parse(e,t,r){let n=gY.parse(t[this.name],r);return void 0===n&&(n=vY.latest,r.logParseEvent(e,jG.InvalidPropertyValue,sY.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,vY.v1_0),this.targetVersion=e,this.name=t}getDescriptor(e){return{valueTypes:[{type:"string",validValues:vY.getAllDeclaredVersions().map(e=>e.toString())}],defaultValue:this.defaultValue.toString(),suggestedSchemaTypeName:"Version"}}}(vY.v1_0,"version"),RX.fallbackTextProperty=new xY(vY.v1_0,"fallbackText").setContentType("text"),RX.speakProperty=new xY(vY.v1_0,"speak").setContentType("text"),RX.refreshProperty=new IY(vY.v1_4,"refresh",e=>new BX,!0),RX.authenticationProperty=new IY(vY.v1_4,"authentication",e=>new zX,!0),RX.msTeamsProperty=new IY(vY.v1_0,"msTeams",e=>new eJ).setAlternateDefinition(new IY(vY.v1_0,"msteams",e=>new eJ)),RX.metadataProperty=new IY(vY.v1_4,"metadata",e=>new OX),RX.resourcesProperty=new IY(vY.v1_5,"resources",e=>new AK).setHighPriority(!0).setPreserveAdditionalProperties(!0),RX.referencesProperty=new class extends BY{constructor(e,t){super(e,t,e=>{if(e){const t=e.type;if("string"==typeof t)return t?YK.createInstance(t):void 0}}),this.targetVersion=e,this.name=t}getDescriptor(e){return{valueTypes:[{type:"object",validValues:YK.getDescriptors().sort((e,t)=>e.name.localeCompare(t.name))}],propertyType:"array"}}}(vY.v1_5,"references");class MX extends RX{constructor(){super(...arguments),this.suppressStyle=!1}getAdditionalValidSchemaProperties(){return[...super.getAdditionalValidSchemaProperties(),"$schema","version"]}getSchemaKey(){return"InlineAdaptiveCard"}getDefaultPadding(){const e=this.suppressStyle?fG.None:fG.Padding;return new JG(e,e,e,e)}getSpacings(e){if(super.getSpacings(e),!this.suppressStyle){const t=new JG;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(RX.resourcesProperty)}get defaultStyle(){return this.suppressStyle?H$.Default:this.hostConfig.actions.showCard.style?this.hostConfig.actions.showCard.style:H$.Emphasis}get isExpandableInlineElement(){return!0}get hasVisibleSeparator(){return!1}}class jX extends FK{constructor(){super(...arguments),this.card=new MX}inlineCardExpanded(e){var t;const r=null===(t=this.parent)||void 0===t?void 0:t.getRootObject(),n=r instanceof RX&&r.onInlineCardExpanded?r.onInlineCardExpanded:RX.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,jG.PropertyCantBeNull,sY.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 LY(new RX)]}],schemaVersion:vY.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 jX.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===_G.Popup}getAdditionalValidSchemaProperties(){return[...super.getAdditionalValidSchemaProperties(),"card"]}get isExpandable(){return!0}get isSupportedInPopover(){return!1}}jX.JsonTypeName="Action.ShowCard";class LX extends OY{get horizontalCellContentAlignment(){return this.getValue(LX.horizontalCellContentAlignmentProperty)}set horizontalCellContentAlignment(e){this.setValue(LX.horizontalCellContentAlignmentProperty,e)}get verticalCellContentAlignment(){return this.getValue(LX.verticalCellContentAlignmentProperty)}set verticalCellContentAlignment(e){this.setValue(LX.verticalCellContentAlignmentProperty,e)}get width(){return this.getValue(LX.widthProperty)}set width(e){this.setValue(LX.widthProperty,e)}getSchemaKey(){return"ColumnDefinition"}}LX.horizontalCellContentAlignmentProperty=new PY(vY.v1_5,"horizontalCellContentAlignment",gG),LX.verticalCellContentAlignmentProperty=new PY(vY.v1_5,"verticalCellContentAlignment",yG),LX.widthProperty=new class extends NY{getDescriptor(e){return{valueTypes:[{type:"string",validValues:[XG]},{type:"number"}]}}}(vY.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=QG.parse(i)}catch(bze){a=!0}else a=!0;else o=new QG(i,oG.Weight);return a&&n.logParseEvent(e,jG.InvalidPropertyValue,sY.errors.invalidColumnWidth(i)),o},(e,t,r,n,o)=>{n.unit===oG.Pixel?o.serializeValue(r,"width",`${n.physicalSize}px`):o.serializeNumber(r,"width",n.physicalSize)},new QG(1,oG.Weight));class FX extends RJ{constructor(){super(...arguments),this._items=[]}parseItem(e,t){return t.parseCardObject(this,e,[],!0,e=>this.createItemInstance(e),(e,r)=>{t.logParseEvent(void 0,jG.ElementTypeNotAllowed,sY.errors.elementTypeNotAllowed(e))})}internalAddItem(e){if(e.parent)throw new Error(sY.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 VX extends LJ{constructor(){super(...arguments),this._columnIndex=-1,this._cellType="data"}populateSchema(e){super.populateSchema(e),e.remove(RJ.horizontalAlignmentProperty),e.remove(LJ.showBorderProperty),e.remove(LJ.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=mY(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 JG(fG.Small,fG.Small,fG.Small,fG.Small):super.getDefaultPadding()}adjustSize(e){const t=this.parentRow.parentTable.getColumnAt(this.columnIndex);t.computedWidth.unit===oG.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 qX extends FX{get horizontalCellContentAlignment(){return this.getValue(qX.horizontalCellContentAlignmentProperty)}set horizontalCellContentAlignment(e){this.setValue(qX.horizontalCellContentAlignmentProperty,e)}get verticalCellContentAlignment(){return this.getValue(qX.verticalCellContentAlignmentProperty)}set verticalCellContentAlignment(e){this.setValue(qX.verticalCellContentAlignmentProperty,e)}populateSchema(e){super.populateSchema(e),e.remove(RJ.layoutsProperty)}getDefaultPadding(){return new JG(fG.None,fG.None,fG.None,fG.None)}applyBackground(e){const t=this.hostConfig.containerStyles.getStyleByName(this.style,this.hostConfig.containerStyles.getStyleByName(this.defaultStyle));if(t.backgroundColor){const r=mY(t.backgroundColor);r&&(e.style.backgroundColor=r)}}getCollectionPropertyName(){return"cells"}createItemInstance(e){return e&&"TableCell"!==e?void 0:new VX}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(DK,{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=mY(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 VX?this.internalIndexOf(e):-1}ensureHasEnoughCells(e){for(;this.getItemCount()<e;)this.addCell(new VX)}getJsonTypeName(){return"TableRow"}getIsFirstRow(){return this.parentTable.getItemAt(0)===this}getAdditionalPropertyDescriptors(e){return[...super.getAdditionalPropertyDescriptors(e),{name:this.getCollectionPropertyName(),valueTypes:[{type:"object",validValues:[new LY(new VX)]}],propertyType:"array",schemaVersion:vY.v1_5,suggestedSchemaTypeName:"TableCellArray"}]}get hasVisibleSeparator(){return!1}get parentTable(){return this.parent}get isStandalone(){return!1}}qX.styleProperty=new TJ(vY.v1_5,"style"),qX.horizontalCellContentAlignmentProperty=new PY(vY.v1_5,"horizontalCellContentAlignment",gG),qX.verticalCellContentAlignmentProperty=new PY(vY.v1_5,"verticalCellContentAlignment",yG);class HX extends FX{get _columns(){return this.getValue(HX._columnsProperty)}set _columns(e){this.setValue(HX._columnsProperty,e)}get firstRowAsHeaders(){return this.getValue(HX.firstRowAsHeadersProperty)}set firstRowAsHeaders(e){this.setValue(HX.firstRowAsHeadersProperty,e)}get showGridLines(){return this.getValue(HX.showGridLinesProperty)}set showGridLines(e){this.setValue(HX.showGridLinesProperty,e)}get gridStyle(){const e=this.getValue(HX.gridStyleProperty);if(e&&this.hostConfig.containerStyles.getStyleByName(e))return e}set gridStyle(e){this.setValue(HX.gridStyleProperty,e)}get horizontalCellContentAlignment(){return this.getValue(HX.horizontalCellContentAlignmentProperty)}set horizontalCellContentAlignment(e){this.setValue(HX.horizontalCellContentAlignmentProperty,e)}get verticalCellContentAlignment(){return this.getValue(HX.verticalCellContentAlignmentProperty)}set verticalCellContentAlignment(e){this.setValue(HX.verticalCellContentAlignmentProperty,e)}populateSchema(e){super.populateSchema(e),e.remove(RJ.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 qX}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(DK,{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===oG.Weight&&(t+=n.width.physicalSize);for(const n of this._columns)n.width.unit===oG.Pixel?n.computedWidth=new QG(n.width.physicalSize,oG.Pixel):n.computedWidth=new QG(100/t*n.width.physicalSize,oG.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=mY(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 JG(fG.Padding,fG.Padding,fG.Padding,fG.Padding):new JG}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 qX?this.internalIndexOf(e):-1}getJsonTypeName(){return"Table"}getAdditionalPropertyDescriptors(e){return[...super.getAdditionalPropertyDescriptors(e),{name:this.getCollectionPropertyName(),valueTypes:[{type:"object",validValues:[new LY(new qX)]}],propertyType:"array",schemaVersion:vY.v1_5,suggestedSchemaTypeName:"TableRowArray"}]}getAdditionalValidSchemaProperties(){return[...super.getAdditionalValidSchemaProperties(),"columns"]}}HX._columnsProperty=new BY(vY.v1_5,"columns",e=>new LX),HX.firstRowAsHeadersProperty=new _Y(vY.v1_5,"firstRowAsHeaders",!0),HX.showGridLinesProperty=new _Y(vY.v1_5,"showGridLines",!0),HX.gridStyleProperty=new TJ(vY.v1_5,"gridStyle"),HX.horizontalCellContentAlignmentProperty=new PY(vY.v1_5,"horizontalCellContentAlignment",gG),HX.verticalCellContentAlignmentProperty=new PY(vY.v1_5,"verticalCellContentAlignment",yG);class UX extends RK{constructor(){super(...arguments),this._hasError=!1,this._internalId=cY(),this.labelId=cY(),this.errorId=cY()}get label(){return this.getValue(UX.labelProperty)}set label(e){this.setValue(UX.labelProperty,e)}get isRequired(){return this.getValue(UX.isRequiredProperty)}set isRequired(e){this.setValue(UX.isRequiredProperty,e)}get errorMessage(){return this.getValue(UX.errorMessageProperty)}set errorMessage(e){this.setValue(UX.errorMessageProperty,e)}get valueChangedAction(){return this.getValue(UX.valueChangedActionProperty)}set valueChangedAction(e){this.setValue(UX.valueChangedActionProperty,e)}get internalId(){return this._internalId}populateSchema(e){super.populateSchema(e),e.remove(RK.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 PX;t.id=this.labelId,t.setParent(this),t.forElementId=this.internalId;const r=new AX(this.label);if(t.addInline(r),this.isRequired&&this.isEnabled){r.init(e.inputs.label.requiredInputs);const n=new AX(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(DK,{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&&YG.displayInputValidationErrors){const e=new UJ;return e.id=this.errorId,e.setParent(this),e.text=this.errorMessage,e.wrap=!0,e.init(this.hostConfig.inputs.errorMessage),g.createElement(DK,{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:RX.onInputValueChanged;r&&r(this)}getValue(e){return(e!==UX.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,jG.PropertyCantBeNull,sY.errors.inputsMustHaveUniqueId());!0===super.getValue(UX.isRequiredProperty)&&(this.label||e.addFailure(this,jG.RequiredInputsShouldHaveLabel,"Required inputs should have a label"),this.errorMessage||e.addFailure(this,jG.RequiredInputsShouldHaveErrorMessage,"Required inputs should have an error message"),this.isInPopover()&&e.addFailure(this,jG.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())}}UX.labelProperty=new xY(vY.v1_3,"label").setContentType("text"),UX.isRequiredProperty=new _Y(vY.v1_3,"isRequired",!1),UX.errorMessageProperty=new xY(vY.v1_3,"errorMessage").setContentType("text"),UX.valueChangedActionProperty=new FY(vY.v1_5,"valueChangedAction",["Action.ToggleVisibility","Action.Execute","Action.Submit","Action.OpenUrl","Action.Overflow","Action.Http","Action.ShowCard","Action.InsertImage"]);class WX extends OY{get title(){return this.getValue(WX.titleProperty)}set title(e){this.setValue(WX.titleProperty,e)}get value(){return this.getValue(WX.valueProperty)}set value(e){this.setValue(WX.valueProperty,e)}getSchemaKey(){return"Choice"}constructor(e,t){super(),this.title=e,this.value=t}}WX.titleProperty=new xY(vY.v1_0,"title").setContentType("text"),WX.valueProperty=new xY(vY.v1_0,"value");class $X extends RY{get dataset(){return this.getValue($X.datasetProperty)}set dataset(e){this.setValue($X.datasetProperty,e)}get count(){return this.getValue($X.countProperty)}set count(e){this.setValue($X.countProperty,e)}get skip(){return this.getValue($X.skipProperty)}set skip(e){this.setValue($X.skipProperty,e)}get associatedInputs(){return this.getValue($X.associatedInputsProperty)}set associatedInputs(e){this.setValue($X.associatedInputsProperty,e)}getJsonTypeName(){return"Data.Query"}getAdditionalPropertyDescriptors(e){return[...super.getAdditionalPropertyDescriptors(e),{name:"type",valueTypes:[{type:"string"}],requiredValue:this.getJsonTypeName(),schemaVersion:vY.v1_0}]}}$X.datasetProperty=new xY(vY.v1_0,"dataset"),$X.associatedInputsProperty=new MK(vY.v1_0,"associatedInputs"),$X.countProperty=new CY(vY.v1_0,"count"),$X.skipProperty=new CY(vY.v1_0,"skip");class GX extends UX{constructor(){super(...arguments),this.selectedValues=new Set}get defaultValue(){return this.getValue(GX.valueProperty)}set defaultValue(e){this.setValue(GX.valueProperty,e)}get style(){return this.getValue(GX.styleProperty)}set style(e){this.setValue(GX.styleProperty,e)}get isMultiSelect(){return this.getValue(GX.isMultiSelectProperty)}set isMultiSelect(e){this.setValue(GX.isMultiSelectProperty,e)}get placeholder(){return this.getValue(GX.placeholderProperty)}set placeholder(e){this.setValue(GX.placeholderProperty,e)}get wrap(){return this.getValue(GX.wrapProperty)}set wrap(e){this.setValue(GX.wrapProperty,e)}get choices(){return this.getValue(GX.choicesProperty)}set choices(e){this.setValue(GX.choicesProperty,e)}get choicesData(){return this.getValue(GX.choicesDataProperty)}set choicesData(e){this.setValue(GX.choicesDataProperty,e)}propertyChanged(e,t){if(super.propertyChanged(e,t),e===GX.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,jG.CollectionCantBeEmpty,sY.errors.choiceSetMustHaveAtLeastOneChoice());for(const t of this.choices)t.title&&t.value||e.addFailure(this,jG.PropertyCantBeNull,sY.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)}}GX.valueProperty=new xY(vY.v1_0,"value"),GX.choicesProperty=new BY(vY.v1_0,"choices",e=>new WX).setIsHero(),GX.choicesDataProperty=new class extends IY{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}}(vY.v1_5,"choices.data","Data.Query",e=>new $X,!0),GX.styleProperty=new AY(vY.v1_0,"style",[{value:"compact"},{value:"expanded"},{value:"filtered",targetVersion:vY.v1_5}],"compact"),GX.isMultiSelectProperty=new _Y(vY.v1_0,"isMultiSelect",!1),GX.placeholderProperty=new xY(vY.v1_0,"placeholder").setContentType("text"),GX.wrapProperty=new _Y(vY.v1_2,"wrap",!0);class YX extends wY{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,jG.InvalidPropertyValue,sY.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 KX extends UX{get defaultValue(){return this.getValue(KX.valueProperty)}set defaultValue(e){this.setValue(KX.valueProperty,e)}get min(){return this.getValue(KX.minProperty)}set min(e){this.setValue(KX.minProperty,e)}get max(){return this.getValue(KX.maxProperty)}set max(e){this.setValue(KX.maxProperty,e)}get placeholder(){return this.getValue(KX.placeholderProperty)}set placeholder(e){this.setValue(KX.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 pY(this.value)}}KX.valueProperty=new YX(vY.v1_0,"value"),KX.placeholderProperty=new xY(vY.v1_0,"placeholder").setContentType("text"),KX.minProperty=new YX(vY.v1_0,"min"),KX.maxProperty=new YX(vY.v1_0,"max");class JX extends UX{get defaultValue(){return this.getValue(JX.valueProperty)}set defaultValue(e){this.setValue(JX.valueProperty,e)}get min(){return this.getValue(JX.minProperty)}set min(e){this.setValue(JX.minProperty,e)}get max(){return this.getValue(JX.maxProperty)}set max(e){this.setValue(JX.maxProperty,e)}get placeholder(){return this.getValue(JX.placeholderProperty)}set placeholder(e){this.setValue(JX.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)}}JX.valueProperty=new class extends CY{parse(e,t,r){const n=t[this.name];return"string"==typeof n?Number(n):dY(n,this.defaultValue)}}(vY.v1_0,"value"),JX.placeholderProperty=new xY(vY.v1_0,"placeholder").setContentType("text"),JX.minProperty=new CY(vY.v1_0,"min"),JX.maxProperty=new CY(vY.v1_0,"max");class XX extends UX{get defaultValue(){return this.getValue(XX.valueProperty)}set defaultValue(e){this.setValue(XX.valueProperty,e)}get maxLength(){return this.getValue(XX.maxLengthProperty)}set maxLength(e){this.setValue(XX.maxLengthProperty,e)}get isMultiline(){return this.getValue(XX.isMultilineProperty)}set isMultiline(e){this.setValue(XX.isMultilineProperty,e)}get placeholder(){return this.getValue(XX.placeholderProperty)}set placeholder(e){this.setValue(XX.placeholderProperty,e)}get style(){return this.getValue(XX.styleProperty)}set style(e){this.setValue(XX.styleProperty,e)}get inlineAction(){return this.getValue(XX.inlineActionProperty)}set inlineAction(e){this.setValue(XX.inlineActionProperty,e)}get regex(){return this.getValue(XX.regexProperty)}set regex(e){this.setValue(XX.regexProperty,e)}renderExtraContent(){return this.inlineAction?g.createElement(DK,{cardObject:this.inlineAction,args:{isInline:!0}}):null}executeValueChangedAction(){var e;null===(e=this.valueChangedAction)||void 0===e||e.execute(XX.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)}}XX.valueChangedActionExecutionDelay=1e3,XX.valueProperty=new xY(vY.v1_0,"value").setContentType("text"),XX.maxLengthProperty=new CY(vY.v1_0,"maxLength"),XX.isMultilineProperty=new _Y(vY.v1_0,"isMultiline",!1),XX.placeholderProperty=new xY(vY.v1_0,"placeholder").setContentType("text"),XX.styleProperty=new PY(vY.v1_0,"style",zG,zG.Text,[{value:zG.Text},{value:zG.Tel},{value:zG.Url},{value:zG.Email},{value:zG.Password,targetVersion:vY.v1_5}]),XX.inlineActionProperty=new FY(vY.v1_0,"inlineAction",["Action.ShowCard"]),XX.regexProperty=new xY(vY.v1_3,"regex");class QX extends NY{static validateTimeString(e){return void 0===e||QX.validationRegEx.test(e)}static timeStringToDate(e){const t=QX.validationRegEx.exec(e);if(null!==t){const e=parseInt(t[1],10),r=parseInt(t[2],10);return new Date(QX.referenceDate.getFullYear(),QX.referenceDate.getMonth(),QX.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&&QX.validateTimeString(o))return o},(e,t,r,n,o)=>{o.serializeValue(r,t.name,n)}),this.targetVersion=e,this.name=t}preProcessValue(e){return QX.validateTimeString(e)?e:void 0}getDescriptor(e){return{valueTypes:[{type:"string"}]}}}QX.referenceDate=new Date(1973,9,4,0,0,0,0),QX.validationRegEx=/^(0[0-9]|1[0-9]|2[0-3]):([0-5][0-9])$/;class ZX extends UX{get defaultValue(){return this.getValue(ZX.valueProperty)}set defaultValue(e){this.setValue(ZX.valueProperty,e)}get min(){return this.getValue(ZX.minProperty)}set min(e){this.setValue(ZX.minProperty,e)}get max(){return this.getValue(ZX.maxProperty)}set max(e){this.setValue(ZX.maxProperty,e)}get placeholder(){return this.getValue(ZX.placeholderProperty)}set placeholder(e){this.setValue(ZX.placeholderProperty,e)}valueChanged(e){super.valueChanged(e?QX.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?QX.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?QX.timeStringToDate(this.value):void 0}get minAsDate(){return this.min?QX.timeStringToDate(this.min):void 0}get maxAsDate(){return this.max?QX.timeStringToDate(this.max):void 0}}ZX.valueProperty=new QX(vY.v1_0,"value"),ZX.placeholderProperty=new xY(vY.v1_0,"placeholder").setContentType("text"),ZX.minProperty=new QX(vY.v1_0,"min"),ZX.maxProperty=new QX(vY.v1_0,"max");const eQ="true",tQ="false";class rQ extends UX{get defaultValue(){return this.getValue(rQ.valueProperty)}set defaultValue(e){this.setValue(rQ.valueProperty,e)}get title(){return this.getValue(rQ.titleProperty)}set title(e){this.setValue(rQ.titleProperty,e)}get valueOn(){return this.getValue(rQ.valueOnProperty)}set valueOn(e){this.setValue(rQ.valueOnProperty,e)}get valueOff(){return this.getValue(rQ.valueOffProperty)}set valueOff(e){this.setValue(rQ.valueOffProperty,e)}get wrap(){return this.getValue(rQ.wrapProperty)}set wrap(e){this.setValue(rQ.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)}}rQ.valueProperty=new xY(vY.v1_0,"value",void 0,tQ),rQ.titleProperty=new xY(vY.v1_0,"title").setContentType("text").setIsHero(),rQ.valueOnProperty=new xY(vY.v1_0,"valueOn",void 0,eQ,e=>eQ),rQ.valueOffProperty=new xY(vY.v1_0,"valueOff",void 0,tQ,e=>tQ),rQ.wrapProperty=new _Y(vY.v1_2,"wrap",!0);let nQ=!1;function oQ(){nQ||(UK.defaultActions.register(vJ.JsonTypeName,e=>new vJ),UK.defaultActions.register(bJ.JsonTypeName,e=>new bJ),UK.defaultActions.register(yJ.JsonTypeName,e=>new yJ,vY.v1_4),UK.defaultActions.register(xJ.JsonTypeName,e=>new xJ,vY.v1_2),UK.defaultElements.register("Container",e=>new LJ),UK.defaultElements.register("ActionSet",e=>new _J,vY.v1_2),UK.defaultElements.register("ColumnSet",e=>new VJ),UK.defaultElements.register("Media",e=>new EX,vY.v1_1),UK.defaultElements.register("RichTextBlock",e=>new PX,vY.v1_2),UK.defaultElements.register("Table",e=>new HX,vY.v1_5),UK.defaultElements.register("TextBlock",e=>new UJ),UK.defaultElements.register("TextRun",e=>new AX,vY.v1_2),UK.defaultElements.register("IconRun",e=>new QJ,vY.v1_5),UK.defaultElements.register("ImageRun",e=>new lX,vY.v1_5),UK.defaultElements.register("FactSet",e=>new $J),UK.defaultElements.register("ImageSet",e=>new cX),UK.defaultElements.register("Image",e=>new tX),UK.defaultActions.register(jX.JsonTypeName,e=>new jX),UK.defaultElements.registerAttachableProperty(PJ),nQ=!0)}class iQ{}iQ.basicInputAppearance="outline",iQ.comboboxAppearance="outline",iQ.textareaAppearance="outline",iQ.numberInputAppearance="outline",iQ.timeInputAppearance="outline",iQ.shouldUseInlinePopup=!1,iQ.destructiveActionButton=Object.assign(Object.assign({backgroundColor:lc,color:jl},Ir.borderColor(lc)),{"&:hover":Object.assign({backgroundColor:cc,color:jl},Ir.borderColor(cc)),"&:focus:active":Object.assign({backgroundColor:uc,color:jl},Ir.borderColor(uc))});const aQ={width:"100%",minWidth:"0"},sQ={overflow:"hidden"},lQ=jr({textInput:Object.assign(Object.assign({},aQ),iQ.textInput),multilineTextInput:Object.assign(Object.assign(Object.assign({},aQ),{minHeight:"90px"}),iQ.multilineTextInput),multilineTextInputTextArea:Object.assign(Object.assign({},aQ),{maxHeight:"unset"}),passwordInputHideRevealButton:{"::-ms-reveal":{display:"none"}},dateInput:Object.assign(Object.assign(Object.assign({},aQ),iQ.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({},aQ),iQ.numberInput),timeInput:Object.assign(Object.assign({},aQ),iQ.timeInput),toggleInput:Object.assign(Object.assign({},aQ),iQ.toggleInput),toggleInputLabelNoWrap:Object.assign(Object.assign({},sQ),{whiteSpace:"nowrap",textOverflow:"ellipsis"}),toggleInputLabelWrap:Object.assign({},sQ),compactChoiceSetInput:Object.assign(Object.assign({},aQ),iQ.compactChoiceSetInput),actionButton:Object.assign(Object.assign({minWidth:0,height:"100%"},iQ.actionButton),{"@media (forced-colors: active)":{"&:focus":{outline:"2px solid",outlineOffset:"-2px"}}}),destructiveActionButton:Object.assign({},iQ.destructiveActionButton),splitActionButtonDestructive:{borderRightColor:ql,"&:hover":{borderRightColor:ql},"&:focus:active":{borderRightColor:ql}},splitMenuButton:{alignItems:"center"},inlineActionButton:Object.assign({minWidth:0,height:"100%",flexShrink:0,flexGrow:0,flexBasis:"auto"},iQ.actionButton)});class cQ extends HK{constructor(){super(...arguments),this._domElement=null}render(e,t){let r;switch(this.action.style){case U$.Positive:r=U$.Positive;break;case U$.Destructive:r=U$.Destructive;break;default:r=this.action.isExpanded||this.action.isInSubCard||t.forcePrimary?U$.Positive:U$.Default}return g.createElement(uQ,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 uQ=g.forwardRef((e,t)=>{const r=lQ(),n=e.isInline?r.inlineActionButton:r.actionButton,o=e.style!==U$.Destructive||e.buttonProps.disabled?n:Se(n,r.destructiveActionButton),i=e.style===U$.Positive?"primary":void 0;if(!e.menuItems||0===e.menuItems.length)return g.createElement("div",{ref:t},g.createElement(np,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(Lg,{disableButtonEnhancement:!0},g.createElement("div",{ref:t},e.buttonProps.isSplitButton?(()=>{const t=Se(o,e.style===U$.Destructive?r.splitActionButtonDestructive:void 0),n=Object.assign(Object.assign({},e.buttonProps),{className:t,onClick:e.onClick,ariaExpanded:e.isExpanded}),a=Se(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(up,Object.assign({},e.buttonProps,{ref:e.onRef,className:o,appearance:i,menuIcon:e.renderedContent})))),g.createElement(Og,null,g.createElement(Bg,null,null===(a=e.menuItems)||void 0===a?void 0:a.map(e=>{var t;return g.createElement(Tg,{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 dQ,fQ;uQ.displayName="ActionButtonComponent",(fQ=dQ||(dQ={}))[fQ.Above=0]="Above",fQ[fQ.Below=1]="Below",fQ[fQ.Before=2]="Before",fQ[fQ.After=3]="After",q$(dQ,"PopoverPosition");const hQ={[dQ.Above]:"above",[dQ.Below]:"below",[dQ.Before]:"before",[dQ.After]:"after"},pQ=e=>{const[t,r]=g.useState(!1);g.useEffect(()=>{e.ownerEvents.onClosePopover=()=>{r(!1)}},[e.ownerEvents]);return g.createElement(jh,{withArrow:e.displayArrow,trapFocus:!0,positioning:hQ[e.position],onOpenChange:(e,t)=>{r(t.open)},size:"medium",open:t},g.createElement(Lh,{disableButtonEnhancement:!0},e.triggerElement),g.createElement(Rh,{tabIndex:-1,style:{maxWidth:e.maxWidth}},g.createElement(DK,{cardObject:e.content})))};class mQ extends FK{populateSchema(e){super.populateSchema(e),e.remove(FK.menuActionsProperty)}get content(){return this.getValue(mQ.contentProperty)}set content(e){this.setValue(mQ.contentProperty,e)}get displayArrow(){return this.getValue(mQ.displayArrowProperty)}set displayArrow(e){this.setValue(mQ.displayArrowProperty,e)}get position(){return this.getValue(mQ.positionProperty)}set position(e){this.setValue(mQ.positionProperty,e)}get maxPopoverWidth(){return this.getValue(mQ.maxPopoverWidthProperty)}set maxPopoverWidth(e){this.setValue(mQ.maxPopoverWidthProperty,e)}processApplicableProperties(){var e;super.processApplicableProperties(),null===(e=this.content)||void 0===e||e.processApplicableProperties()}getJsonTypeName(){return mQ.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=fG.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(pQ,{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 gQ,vQ,yQ,bQ,wQ,xQ,kQ,SQ,_Q,CQ;mQ.contentProperty=new class extends wY{parse(e,t,r){let n=e;for(;n&&!(n instanceof RK);)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}}(vY.v1_5,"content").setIsPopoverContent(!0),mQ.displayArrowProperty=new _Y(vY.v1_5,"displayArrow",!0),mQ.positionProperty=new PY(vY.v1_5,"position",dQ,dQ.Above),mQ.maxPopoverWidthProperty=new TY(vY.v1_5,"maxPopoverWidth"),mQ.JsonTypeName="Action.Popover",(vQ=gQ||(gQ={}))[vQ.Filled=0]="Filled",vQ[vQ.Tint=1]="Tint",q$(gQ,"BadgeAppearance"),(bQ=yQ||(yQ={}))[bQ.Before=0]="Before",bQ[bQ.After=1]="After",q$(yQ,"BadgeIconPosition"),(xQ=wQ||(wQ={}))[xQ.Square=0]="Square",xQ[xQ.Rounded=1]="Rounded",xQ[xQ.Circular=2]="Circular",q$(wQ,"BadgeShape"),(SQ=kQ||(kQ={}))[SQ.Medium=0]="Medium",SQ[SQ.Large=1]="Large",SQ[SQ.ExtraLarge=2]="ExtraLarge",q$(kQ,"BadgeSize"),(CQ=_Q||(_Q={}))[CQ.Default=0]="Default",CQ[CQ.Subtle=1]="Subtle",CQ[CQ.Informative=2]="Informative",CQ[CQ.Accent=3]="Accent",CQ[CQ.Good=4]="Good",CQ[CQ.Attention=5]="Attention",CQ[CQ.Warning=6]="Warning",q$(_Q,"BadgeStyle");const TQ={[kQ.Medium]:{fontSize:10,iconSize:12,height:20,columnGap:2},[kQ.Large]:{fontSize:12,iconSize:16,height:24,columnGap:2},[kQ.ExtraLarge]:{fontSize:12,iconSize:20,height:28,columnGap:4}},EQ={[kQ.Medium]:{textOnly:6,iconAndText:{left:4,right:6}},[kQ.Large]:{textOnly:6,iconAndText:{left:4,right:6}},[kQ.ExtraLarge]:{textOnly:8,iconAndText:{left:6,right:6}}},AQ={[_Q.Default]:{[gQ.Filled]:{backgroundColor:Ol,textColor:ql},[gQ.Tint]:{backgroundColor:$l,textColor:Ml,strokeColor:Yl}},[_Q.Subtle]:{[gQ.Filled]:{backgroundColor:Ul,textColor:Rl,strokeColor:Xl},[gQ.Tint]:{backgroundColor:Hl,textColor:Rl,strokeColor:Kl}},[_Q.Informative]:{[gQ.Filled]:{backgroundColor:ql,textColor:Ol,strokeColor:Xl},[gQ.Tint]:{backgroundColor:ql,textColor:Rl,strokeColor:Kl}},[_Q.Accent]:{[gQ.Filled]:{backgroundColor:Gl,textColor:jl},[gQ.Tint]:{backgroundColor:{dark:"#00061d",light:"#f2f4fc",highContrast:"#000000"},textColor:Fl,strokeColor:Jl}},[_Q.Good]:{[gQ.Filled]:{backgroundColor:oc,textColor:jl},[gQ.Tint]:{backgroundColor:Zl,textColor:ic,strokeColor:ac}},[_Q.Attention]:{[gQ.Filled]:{backgroundColor:Ql,textColor:jl},[gQ.Tint]:{backgroundColor:sc,textColor:dc,strokeColor:fc}},[_Q.Warning]:{[gQ.Filled]:{backgroundColor:tc,textColor:Vl},[gQ.Tint]:{backgroundColor:ec,textColor:nc,strokeColor:rc}}};class PQ extends RK{get text(){return this.getValue(PQ.textProperty)}set text(e){this.setValue(PQ.textProperty,e)}get icon(){return this.getValue(PQ.iconProperty)}set icon(e){this.setValue(PQ.iconProperty,e)}get iconPosition(){return this.getValue(PQ.iconPositionProperty)}set iconPosition(e){this.setValue(PQ.iconPositionProperty,e)}get appearance(){return this.getValue(PQ.appearanceProperty)}set appearance(e){this.setValue(PQ.appearanceProperty,e)}get size(){return this.getValue(PQ.sizeProperty)}set size(e){this.setValue(PQ.sizeProperty,e)}get shape(){return this.getValue(PQ.shapeProperty)}set shape(e){this.setValue(PQ.shapeProperty,e)}get style(){return this.getValue(PQ.styleProperty)}set style(e){this.setValue(PQ.styleProperty,e)}get tooltip(){return this.getValue(PQ.tooltipProperty)}set tooltip(e){this.setValue(PQ.tooltipProperty,e)}getJsonTypeName(){return PQ.jsonTypeName}internalRender(e){var t;const r=this.icon?function(e){const t=e.match(qY);if(t)return{name:t[1],style:void 0!==t[2]&&"filled"===t[2].toLowerCase()?rG.Filled:rG.Regular}}(this.icon):void 0,n=AQ[this.style][this.appearance],o=this.getBackgroundColor(n);let i;switch(this.shape){case wQ.Circular:i="10000px";break;case wQ.Rounded:i="4px";break;default:i=void 0}const a=TQ[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($Y,{key:"icon",name:r.name,iconStyle:r.style,iconSize:`${a.iconSize}px`,showPlaceholder:!1,allowFallback:!1}):null,u=this.iconPosition===yQ.Before?[c,l]:[l,c];let d;switch(this.horizontalAlignment){case gG.Center:d="center";break;case gG.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(Hh,{content:this.tooltip,relationship:"description"},f):f}getBackgroundColor(e){const t=e.backgroundColor;if("string"==typeof t)return t;switch(this.theme){case qG.Dark:return t.dark;case qG.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=EQ[this.size];return e||r?{left:0,right:0}:t?{left:n.textOnly,right:n.textOnly}:this.iconPosition===yQ.Before?n.iconAndText:{left:n.iconAndText.right,right:n.iconAndText.left}}}PQ.jsonTypeName="Badge",PQ.textProperty=new xY(vY.v1_5,"text").setContentType("text"),PQ.iconProperty=new xY(vY.v1_5,"icon",qY),PQ.iconPositionProperty=new PY(vY.v1_5,"iconPosition",yQ,yQ.Before),PQ.appearanceProperty=new PY(vY.v1_5,"appearance",gQ,gQ.Filled),PQ.sizeProperty=new PY(vY.v1_5,"size",kQ,kQ.Medium),PQ.shapeProperty=new PY(vY.v1_5,"shape",wQ,wQ.Circular),PQ.styleProperty=new PY(vY.v1_5,"style",_Q,_Q.Default),PQ.tooltipProperty=new xY(vY.v1_5,"tooltip").setContentType("text");class IQ{}IQ.carouselPageDotButtonTooltip={key:"carouselPageDotButtonTooltip",defaultValue:"Go to page {{pageIndex}}"},IQ.carouselPageNOfTotal={key:"carouselAriaLive",defaultValue:"Page {{pageIndex}} of {{pageCount}}"},IQ.carouselAriaRoleDescription={key:"carouselAriaRoleDescription",defaultValue:"Slide"},IQ.carouselNextPageButtonAriaLabel={key:"carouselNextPageButtonAriaLabel",defaultValue:"Next page"},IQ.carouselPreviousPageButtonAriaLabel={key:"carouselPreviousPageButtonAriaLabel",defaultValue:"Previous page"};const BQ=250,NQ=160,DQ=24,zQ=6,OQ=16,RQ=0,MQ=Object.assign(Object.assign({},Ir.padding(0)),{minWidth:0,flex:"0 0 auto","&:focus":{outline:0}}),jQ={height:"8px",borderRadius:"4px"},LQ={animationDuration:`.${BQ}s`},FQ=jr({slideInFromLeft:Object.assign(Object.assign({},LQ),{animationName:{from:{transform:"translateX(-100%)"},to:{transform:"translateX(0)"}}}),slideOutToRight:Object.assign(Object.assign({},LQ),{animationName:{from:{transform:"translateX(0)"},to:{transform:"translateX(100%)"}}}),slideInFromRight:Object.assign(Object.assign({},LQ),{animationName:{from:{transform:"translateX(100%)"},to:{transform:"translateX(0)"}}}),slideOutToLeft:Object.assign(Object.assign({},LQ),{animationName:{from:{transform:"translateX(0)"},to:{transform:"translateX(-100%)"}}}),fadeIn:Object.assign(Object.assign({},LQ),{animationName:{from:{opacity:0},to:{opacity:1}}}),fadeOut:Object.assign(Object.assign({},LQ),{animationName:{from:{opacity:1},to:{opacity:0}}}),navigationButton:Object.assign(Object.assign({},MQ),{width:`${DQ}px`,height:`${DQ}px`}),pageDotsHost:{display:"flex",justifyContent:"center",flex:"0 1 auto",overflow:"hidden",columnGap:`${RQ}px`},navigationBar:{display:"flex",justifyContent:"center",columnGap:`${zQ}px`},pageDot:Object.assign(Object.assign({},jQ),{backgroundColor:Ol,opacity:.65,"&:hover":{opacity:.75},"&:active":{opacity:1},width:"8px"}),selectedPageDot:Object.assign(Object.assign({},jQ),{backgroundColor:Ol,width:"16px"}),pageNumberLabelContainer:{overflow:"hidden",display:"flex",flexDirection:"column",justifyContent:"center"}});var VQ,qQ;(qQ=VQ||(VQ={}))[qQ.Slide=0]="Slide",qQ[qQ.CrossFade=1]="CrossFade",qQ[qQ.None=2]="None",q$(VQ,"CarouselPageAnimation");const HQ=e=>{const t=FQ();let r=Ma({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(np,{key:`dot-${o}`,className:t.navigationButton,appearance:"transparent",title:e.localizeString(IQ.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(IQ.carouselPageNOfTotal,{pageIndex:e.pageInfo.currentIndex+1,pageCount:e.pageCount}),o=new UJ;o.text=r,o.useMarkdown=!1,o.spacing=fG.None,o.setParent(e.parent),n.push(g.createElement("div",{key:"page-number",className:t.pageNumberLabelContainer},g.createElement(DK,{cardObject:o})))}return g.createElement("div",Object.assign({className:t.pageDotsHost},r),n)},UQ=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=FQ();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*DQ+4*zQ+(o-1)*(OQ+RQ));var o;a(n<=r.width&&n<=NQ)}),()=>{e.resizeManager.unobserve(l.current)}});const u=(e,t,n)=>{e!==t&&(o(n),r({currentIndex:e,previousIndex:t}))},d=e.localizeString(IQ.carouselNextPageButtonAriaLabel),f=e.localizeString(IQ.carouselPreviousPageButtonAriaLabel),h=e.localizeString(IQ.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!==VQ.None?s:void 0,style:{display:"grid"},tabIndex:0,"aria-roledescription":e.localizeString(IQ.carouselAriaRoleDescription)},(()=>{let r,o;return!1!==n&&(e.pageAnimation===VQ.CrossFade?(r=c.fadeOut,o=c.fadeIn):e.pageAnimation===VQ.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===VQ.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,zK(e.parent.hostConfig,{spacing:e.parent.hostConfig.getEffectiveSpacing(fG.Default)},TG.Horizontal,{margin:{}}),g.createElement("div",{className:c.navigationBar,ref:l},g.createElement(np,{className:c.navigationButton,appearance:"subtle",icon:g.createElement(ju,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(HQ,{parent:e.parent,pageCount:e.children.length,pageInfo:t,goToPage:u,displayPageDots:i,localizeString:e.localizeString}),g.createElement(np,{className:c.navigationButton,appearance:"subtle",icon:g.createElement(Lu,null),title:d,onClick:()=>{let r=t.currentIndex+1;r>=e.children.length&&(r=0),u(r,t.currentIndex,"leftToRight")},"aria-label":d}))))};class WQ extends LJ{populateSchema(e){super.populateSchema(e),e.remove(WQ.bleedProperty),e.remove(WQ.horizontalAlignmentProperty),e.remove(WQ.separatorProperty),e.remove(WQ.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?fG.Padding:e.right,bottom:e.bottom,left:t?fG.Padding:e.left}}isResponsive(){return!0}get hasVisibleSeparator(){return!1}get isStandalone(){return!1}}class $Q extends MJ{constructor(){super(...arguments),this._pages=[]}get pageAnimation(){return this.getValue($Q.pageAnimationProperty)}set pageAnimation(e){this.setValue($Q.pageAnimationProperty,e)}createPageInstance(e,t){return t.parseCardObject(this,e,[],!this.isDesignMode(),e=>e&&"CarouselPage"!==e?void 0:new WQ,(e,r)=>{t.logParseEvent(void 0,jG.ElementTypeNotAllowed,sY.errors.elementTypeNotAllowed(e))})}getPagesToRender(){return this._pages.filter(e=>e.shouldRender())}getResizeManager(){const e=this.getRootElement();return e instanceof RX?e.resizeManager:void 0}populateSchema(e){super.populateSchema(e),e.remove($Q.layoutsProperty),e.remove($Q.horizontalAlignmentProperty),e.remove($Q.styleProperty),e.remove($Q.showBorderProperty),e.remove($Q.roundedCornersProperty),e.remove($Q.selectActionProperty)}getRawItems(){return this._pages}renderItems(){const e=this.getPagesToRender().map((e,t)=>g.createElement(g.Fragment,{key:e.getKey(t)},g.createElement(DK,{cardObject:e})));return[g.createElement(UQ,{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,jG.InvalidPropertyValue,sY.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 LY(new WQ)]}],propertyType:"array"}]}isBleeding(){return this.getBleed()}getItemsCollectionPropertyName(){return"pages"}getEffectivePadding(){const e=super.getEffectivePadding(),t=this.getPagesToRender();return{top:e.top,right:fG.None,bottom:this.isAtTheVeryBottom()&&t.length>1?fG.Padding:e.bottom,left:fG.None}}getHasBackground(e=!1){return super.getHasBackground(e)}isFirstElement(e){return e instanceof WQ&&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 WQ){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 WQ?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)}}$Q.pageAnimationProperty=new PY(vY.v1_5,"pageAnimation",VQ,VQ.Slide);class GQ{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 YQ=(e,t,r,n,o)=>u$(void 0,void 0,void 0,function*(){n(r({searchString:e,dataQuery:t,onDataQueryCompleted:e=>{o(e),n(!1)}}))}),KQ=(e,t)=>{let r;return function(...n){r&&clearTimeout(r),r=setTimeout(()=>{e(...n)},t)}},JQ=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(tm,Object.assign({key:t+r,text:t,value:r},n),t)},XQ=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=lQ(),f=e=>e.map((e,t)=>e.title&&e.value?g.createElement(JQ,{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(()=>KQ(YQ,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 k=[];x&&(null==x?void 0:x.query)===m&&(k=f((e=>{const t=[];return e&&Array.isArray(e)&&e.map(e=>{e.title&&e.value&&t.push(new WX(e.title,e.value))}),t})(x.data)));let S=null;y?S=g.createElement(_m,{label:e.strings.loadingResults}):(null==x?void 0:x.error)&&(S=g.createElement(_m,{label:e.strings.errorLoadingResults}));const _=g.useRef(void 0);g.useEffect(()=>{u!==_.current&&(u!==_.current&&(_.current=u),null!=u&&0!==u.length?v(u.join(",")):v(""))},[u]);const C={id:o,appearance:iQ.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(vm,Object.assign({ref:t},C),(()=>{if(m){const e=r.filter(e=>e.title&&0===e.title.toLowerCase().indexOf(m.toLowerCase()));return f(e)}return[]})(),k,S)});XQ.displayName="DynamicTypeahead";class QQ{}QQ.passwordInputHidePasswordAriaLabel={key:"passwordInputHidePasswordAriaLabel",defaultValue:"Hide password"},QQ.passwordInputRevealPasswordAriaLabel={key:"passwordInputRevealPasswordAriaLabel",defaultValue:"Reveal password"},QQ.dateInputDefaultPlaceholder={key:"dateInputDefaultPlaceholder",defaultValue:"Select a date..."},QQ.timeInputDefaultPlaceholder={key:"timeInputDefaultPlaceholder",defaultValue:"Select a time..."},QQ.noResults={key:"noResults",defaultValue:"No results"},QQ.noResultsFound={key:"noResultsFound",defaultValue:"We couldn't find any matches."},QQ.selectMultipleOptions={key:"selectMultipleOptions",defaultValue:"Select multiple options"},QQ.selectAnOption={key:"selectAnOption",defaultValue:"Select an option"},QQ.comboBoxClearButtonAriaLabel={key:"comboBoxClearButtonAriaLabel",defaultValue:"Clear"},QQ.loadingResults={key:"loadingResults",defaultValue:"Loading..."},QQ.errorLoadingResults={key:"errorLoadingResults",defaultValue:"Results couldn't be loaded"},QQ.selectedValues={key:"selectedValues",defaultValue:"Selected values"},QQ.selectedPeople={key:"selectedPeople",defaultValue:"Selected people"},QQ.selectedPerson={key:"selectedPerson",defaultValue:"Selected person"},QQ.selectPeople={key:"SelectPeople",defaultValue:"Select people"},QQ.selectPerson={key:"SelectPerson",defaultValue:"Select a person"},QQ.noMatchesFound={key:"noMatchesFound",defaultValue:"No matches found"},QQ.sliderInputCurrentValue={key:"sliderInputCurrentValue",defaultValue:"Current value: {{value}}"},QQ.checkboxGroupLabel={key:"checkboxGroupLabel",defaultValue:"Select at least one"},QQ.january={key:"january",defaultValue:"January"},QQ.february={key:"february",defaultValue:"February"},QQ.march={key:"march",defaultValue:"March"},QQ.april={key:"april",defaultValue:"April"},QQ.may={key:"may",defaultValue:"May"},QQ.june={key:"june",defaultValue:"June"},QQ.july={key:"july",defaultValue:"July"},QQ.august={key:"august",defaultValue:"August"},QQ.september={key:"september",defaultValue:"September"},QQ.october={key:"october",defaultValue:"October"},QQ.november={key:"november",defaultValue:"November"},QQ.december={key:"december",defaultValue:"December"},QQ.januaryShort={key:"januaryShort",defaultValue:"Jan"},QQ.februaryShort={key:"februaryShort",defaultValue:"Feb"},QQ.marchShort={key:"marchShort",defaultValue:"Mar"},QQ.aprilShort={key:"aprilShort",defaultValue:"Apr"},QQ.mayShort={key:"mayShort",defaultValue:"May"},QQ.juneShort={key:"juneShort",defaultValue:"Jun"},QQ.julyShort={key:"julyShort",defaultValue:"Jul"},QQ.augustShort={key:"augustShort",defaultValue:"Aug"},QQ.septemberShort={key:"septemberShort",defaultValue:"Sep"},QQ.octoberShort={key:"octoberShort",defaultValue:"Oct"},QQ.novemberShort={key:"novemberShort",defaultValue:"Nov"},QQ.decemberShort={key:"decemberShort",defaultValue:"Dec"},QQ.sunday={key:"sunday",defaultValue:"Sunday"},QQ.monday={key:"monday",defaultValue:"Monday"},QQ.tuesday={key:"tuesday",defaultValue:"Tuesday"},QQ.wednesday={key:"wednesday",defaultValue:"Wednesday"},QQ.thursday={key:"thursday",defaultValue:"Thursday"},QQ.friday={key:"friday",defaultValue:"Friday"},QQ.saturday={key:"saturday",defaultValue:"Saturday"},QQ.sundayShort={key:"sundayShort",defaultValue:"Sun"},QQ.mondayShort={key:"mondayShort",defaultValue:"Mon"},QQ.tuesdayShort={key:"tuesdayShort",defaultValue:"Tue"},QQ.wednesdayShort={key:"wednesdayShort",defaultValue:"Wed"},QQ.thursdayShort={key:"thursdayShort",defaultValue:"Thu"},QQ.fridayShort={key:"fridayShort",defaultValue:"Fri"},QQ.saturdayShort={key:"saturdayShort",defaultValue:"Sat"},QQ.calendarWeekNumberFormatString={key:"calendarWeekNumberFormatString",defaultValue:"Week number {0}"},QQ.calendarPreviousMonthAriaLabel={key:"calendarPreviousMonthAriaLabel",defaultValue:"Previous month"},QQ.calendarNextMonthAriaLabel={key:"calendarNextMonthAriaLabel",defaultValue:"Next month"},QQ.calendarGoToToday={key:"calendarGoToToday",defaultValue:"Go to today"};const ZQ=jr({optionContainer:{display:"flex",gap:"8px",alignItems:"center"}});function eZ(e){return"string"==typeof e.title&&"string"==typeof e.value}const tZ=g.forwardRef((e,t)=>{var r,n;const o=ZQ(),{search:i,cancelSearch:a}=e,s=lQ(),[l,c]=g.useState(""),[u,d]=g.useState(void 0),[f,h]=g.useState(function(e){const t=new Map;return e.forEach(e=>{eZ(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=>{eZ(e)&&t.push(new WX(e.title,e.value))}),h(e=>{const r=new Map(e);return t.forEach(e=>{eZ(e)&&r.set(e.value,e)}),r})}})},[l,i,a]);const p=function({filter:e,noOptionsElement:t,renderOption:r=Mb,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(Rb,null,e.localizeString(QQ.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(Du,{color:Ll}):g.createElement(zu,null)),g.createElement(_b,{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(Xy,{appearance:iQ.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(Bb,{"aria-label":e.localizeString(QQ.selectedValues),"aria-labelledby":e.ariaLabelledBy},null===(r=e.value)||void 0===r?void 0:r.map((e,t)=>{var r;return g.createElement(hy,{key:t,value:e},null===(r=f.get(e))||void 0===r?void 0:r.title)})),g.createElement(nb,{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(ab,{style:{maxHeight:"200px"}},p,"loading"===u&&g.createElement(Rb,null,g.createElement("div",{className:o.optionContainer},g.createElement(Nv,{size:"tiny"}),e.localizeString(QQ.loadingResults))),"error"===u&&g.createElement(Rb,null,g.createElement("div",{className:o.optionContainer},g.createElement(Vu,{color:lc}),e.localizeString(QQ.errorLoadingResults)))))});tZ.displayName="DynamicTypeaheadV2";const rZ=g.forwardRef((e,t)=>{const r=lQ(),n=new Set(e.choices.filter(e=>e.isSelected).map(e=>e.value)),o=e.localizeString(QQ.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(YG.useMarkdownInRadioButtonAndCheckbox&&e.parent){const r=new UJ(t.title);r.wrap=e.wrap,r.setParent(e.parent),a=g.createElement(DK,{cardObject:r})}return g.createElement(Op,{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}`})}))});rZ.displayName="CheckboxGroupComponent";const nZ=g.forwardRef((e,t)=>g.createElement(Ug,{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(YG.useMarkdownInRadioButtonAndCheckbox&&e.parent){const r=new UJ(t.title);r.wrap=e.wrap,r.setParent(e.parent),n=g.createElement(DK,{cardObject:r})}return g.createElement(rv,{key:r,value:t.value,label:n})})));nZ.displayName="RadioGroupComponent";const oZ=g.forwardRef((e,t)=>{const r=lQ(),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:iQ.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:iQ.shouldUseInlinePopup};return(e.isFiltered||e.isMultiSelect)&&(f.onChange=d,f.onFocus=c,f.onBlur=u),g.createElement(vm,Object.assign({ref:t},f),o.map((e,t)=>g.createElement(tm,{key:t,value:e.value},e.title)),0===o.length&&e.isFiltered?g.createElement(_m,{label:e.strings.noResults}):null)});function iZ(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=iZ(n);if(e)return e}}}oZ.displayName="ComboboxComponent";class aZ extends GX{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(tZ,{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(XQ,{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(QQ.selectAnOption),noResults:this.localizeString(QQ.noResults),loadingResults:this.localizeString(QQ.loadingResults),errorLoadingResults:this.localizeString(QQ.errorLoadingResults)}})}renderAsRadioGroup(e){var t;return g.createElement(nZ,{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(rZ,{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(oZ,{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(QQ.selectMultipleOptions):this.localizeString(QQ.selectAnOption),noResults:this.localizeString(QQ.noResults),clearButtonAriaLabel:this.localizeString(QQ.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=cY(),this.onDataQueryRequest=e=>{const t="none"!==e.dataQuery.associatedInputs?LK(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 GQ(this.onDataQueryRequest)}focus(){if(this._inputRef.current){if("expanded"!==this.style)return this._inputRef.current.focus(),!0;{const e=iZ(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 sZ={gridColumn:2,lineHeight:vc,fontSize:pc,fontFamily:hc,paddingTop:"2px",overflow:"hidden"},lZ=jr({root:{display:"grid",gridTemplateColumns:"auto 1fr",padding:"6px 8px 8px 8px",rowGap:yc,columnGap:bc,textAlign:"start",minWidth:0},icon:{alignSelf:"baseline",marginTop:"1px",gridRowStart:1},textContainerSingleRow:Object.assign({},sZ),textContainerMultiRow:Object.assign(Object.assign({},sZ),{display:"flex",flexDirection:"column",gap:yc}),titleAndBadgeContainer:{display:"flex",flexWrap:"wrap",gap:yc},category:{fontWeight:gc},prompt:{fontWeight:mc}}),cZ=g.forwardRef((e,t)=>{const r=lZ(),n=e.badge?g.createElement(ed,{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(np,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))))});cZ.displayName="PromptStarterWrapper";class uZ extends OY{get name(){return this.getValue(uZ.nameProperty)}set name(e){this.setValue(uZ.nameProperty,e)}get size(){return this.getValue(uZ.sizeProperty)}set size(e){this.setValue(uZ.sizeProperty,e)}get style(){return this.getValue(uZ.styleProperty)}set style(e){this.setValue(uZ.styleProperty,e)}get color(){return this.getValue(uZ.colorProperty)}set color(e){this.setValue(uZ.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($Y,{name:null!==(t=this.name)&&void 0!==t?t:dZ.defaultIconName,iconSize:this.size,iconStyle:this.style,iconColor:this.color?mY(e.foregroundColors.getColorDefinition(this.color).default):void 0})}}uZ.nameProperty=new xY(vY.v1_5,"name"),uZ.sizeProperty=new PY(vY.v1_5,"size",eG,eG.xSmall),uZ.styleProperty=new PY(vY.v1_5,"style",rG,rG.Regular),uZ.colorProperty=new PY(vY.v1_5,"color",pG,pG.Default);class dZ extends RK{static getDefaultIcon(){return dZ._defaultIcon||(dZ._defaultIcon=new uZ("Info",eG.xSmall,rG.Regular,pG.Default)),dZ._defaultIcon}get icon(){return this.getValue(dZ.iconProperty)}set icon(e){this.setValue(dZ.iconProperty,e)}get title(){return this.getValue(dZ.titleProperty)}set title(e){this.setValue(dZ.titleProperty,e)}get badge(){return this.getValue(dZ.badgeProperty)}set badge(e){this.setValue(dZ.badgeProperty,e)}get description(){return this.getValue(dZ.descriptionProperty)}set description(e){this.setValue(dZ.descriptionProperty,e)}get selectAction(){return this.getValue(dZ.selectActionProperty)}set selectAction(e){this.setValue(dZ.selectActionProperty,e)}getMainAction(){return this.selectAction}internalRender(e){var t;const r={icon:(null!==(t=this.icon)&&void 0!==t?t:dZ.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(cZ,Object.assign({},r))}getJsonTypeName(){return"CompoundButton"}}var fZ,hZ,pZ,mZ,gZ,vZ,yZ,bZ;dZ.defaultIconName="Info",dZ.iconProperty=new IY(vY.v1_5,"icon",()=>new uZ,!0),dZ.badgeProperty=new xY(vY.v1_5,"badge").setContentType("text"),dZ.titleProperty=new xY(vY.v1_5,"title").setContentType("text"),dZ.descriptionProperty=new xY(vY.v1_5,"description").setContentType("text"),dZ.selectActionProperty=new FY(vY.v1_5,"selectAction",["Action.ShowCard"]),(hZ=fZ||(fZ={}))[hZ.Sunday=0]="Sunday",hZ[hZ.Monday=1]="Monday",hZ[hZ.Tuesday=2]="Tuesday",hZ[hZ.Wednesday=3]="Wednesday",hZ[hZ.Thursday=4]="Thursday",hZ[hZ.Friday=5]="Friday",hZ[hZ.Saturday=6]="Saturday",(mZ=pZ||(pZ={}))[mZ.January=0]="January",mZ[mZ.February=1]="February",mZ[mZ.March=2]="March",mZ[mZ.April=3]="April",mZ[mZ.May=4]="May",mZ[mZ.June=5]="June",mZ[mZ.July=6]="July",mZ[mZ.August=7]="August",mZ[mZ.September=8]="September",mZ[mZ.October=9]="October",mZ[mZ.November=10]="November",mZ[mZ.December=11]="December",(vZ=gZ||(gZ={}))[vZ.FirstDay=0]="FirstDay",vZ[vZ.FirstFullWeek=1]="FirstFullWeek",vZ[vZ.FirstFourDayWeek=2]="FirstFourDayWeek",(bZ=yZ||(yZ={}))[bZ.Day=0]="Day",bZ[bZ.Week=1]="Week",bZ[bZ.Month=2]="Month",bZ[bZ.WorkWeek=3]="WorkWeek";const wZ=7,xZ=12,kZ={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()},SZ={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 _Z(e,t){const r=new Date(e.getTime());return r.setDate(r.getDate()+t),r}function CZ(e,t){return _Z(e,t*wZ)}function TZ(e,t){let r=new Date(e.getTime());const n=r.getMonth()+t;return r.setMonth(n),r.getMonth()!==(n%xZ+xZ)%xZ&&(r=_Z(r,-r.getDate())),r}function EZ(e,t){let r=new Date(e.getTime());return r.setFullYear(e.getFullYear()+t),r.getMonth()!==(e.getMonth()%xZ+xZ)%xZ&&(r=_Z(r,-r.getDate())),r}function AZ(e){return new Date(e.getFullYear(),e.getMonth(),1,0,0,0,0)}function PZ(e){return new Date(e.getFullYear(),e.getMonth()+1,0,0,0,0,0)}function IZ(e,t){return TZ(e,t-e.getMonth())}function BZ(e,t){return!e&&!t||!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate())}function NZ(e,t){return jZ(e)-jZ(t)}function DZ(e,t,r,n,o=1){const i=[];let a,s=null;switch(n||(n=[fZ.Monday,fZ.Tuesday,fZ.Wednesday,fZ.Thursday,fZ.Friday]),o=Math.max(o,1),t){case yZ.Day:a=MZ(e),s=_Z(a,o);break;case yZ.Week:case yZ.WorkWeek:a=function(e,t){let r=t-e.getDay();r>0&&(r-=wZ);return _Z(e,r)}(MZ(e),r),s=_Z(a,wZ);break;case yZ.Month:a=new Date(e.getFullYear(),e.getMonth(),1),s=TZ(a,1);break;default:throw new Error("Unexpected object: "+t)}let l=a;do{(t!==yZ.WorkWeek||-1!==n.indexOf(l.getDay()))&&i.push(l),l=_Z(l,1)}while(!BZ(l,s));return i}function zZ(e,t){for(const r of t)if(BZ(e,r))return!0;return!1}function OZ(e,t,r,n){const o=n.getFullYear(),i=n.getMonth();let a=1;const s=new Date(o,i,a),l=a+(t+wZ-1)-function(e,t){return e!==fZ.Sunday&&t<e?t+wZ: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(RZ(c,t,r)),a+=wZ,c=new Date(o,i,a);return u}function RZ(e,t,r){switch(r){case gZ.FirstFullWeek:return LZ(e,t,wZ);case gZ.FirstFourDayWeek:return LZ(e,t,4);default:return function(e,t){const r=FZ(e)-1,n=e.getDay()-r%wZ,o=(n-t+2*wZ)%wZ;return Math.floor((r+o)/wZ+1)}(e,t)}}function MZ(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function jZ(e){return e.getDate()+(e.getMonth()<<5)+(e.getFullYear()<<9)}function LZ(e,t,r){const n=FZ(e)-1;let o=e.getDay()-n%wZ;const i=FZ(new Date(e.getFullYear()-1,pZ.December,31))-1;let a=(t-o+2*wZ)%wZ;0!==a&&a>=r&&(a-=wZ);let s=n-a;return s<0&&(o-=i%wZ,a=(t-o+2*wZ)%wZ,0!==a&&a+1>=r&&(a-=wZ),s=i-a),Math.floor(s/wZ+1)}function FZ(e){const t=e.getMonth(),r=e.getFullYear();let n=0;for(let o=0;o<t;o++)n+=VZ(o+1,r);return n+=e.getDate(),n}function VZ(e,t){return new Date(t,e,0).getDate()}const qZ=(e,t)=>{const{minDate:r}=t;return!!r&&NZ(r,e)>=1},HZ=(e,t)=>{const{maxDate:r}=t;return!!r&&NZ(e,r)>=1},UZ=(e,t)=>{const{restrictedDates:r,minDate:n,maxDate:o}=t;if(!r&&!n&&!o)return!1;return r&&r.some(t=>BZ(t,e))||qZ(e,t)||HZ(e,t)},WZ=e=>{const{targetDate:t,initialDate:r,direction:n,...o}=e;let i=t;if(!UZ(t,o))return t;for(;0!==NZ(r,i)&&UZ(i,o)&&!HZ(i,o)&&!qZ(i,o);)i=_Z(i,n);return 0===NZ(r,i)||UZ(i,o)?void 0:i},$Z=(e,t,r)=>{let n=[...e];return t&&(n=n.filter(e=>NZ(e,t)>=0)),r&&(n=n.filter(e=>NZ(e,r)<=0)),n},GZ=(e,t,r)=>!t||e!==yZ.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:yZ.Week;let YZ;function KZ(e,t){if(e){if(YZ)return void(YZ=e);YZ=e,t&&t.requestAnimationFrame(()=>{YZ&&YZ.focus(),YZ=void 0})}}var JZ,XZ;(XZ=JZ||(JZ={}))[XZ.Horizontal=0]="Horizontal",XZ[XZ.Vertical=1]="Vertical";const QZ="fui-CalendarDayGrid__topRightCornerDate",ZZ="fui-CalendarDayGrid__topLeftCornerDate",e0="fui-CalendarDayGrid__bottomRightCornerDate",t0="fui-CalendarDayGrid__bottomLeftCornerDate";const r0="fui-CalendarDayGrid__wrapper",n0="fui-CalendarDayGrid__table",o0="fui-CalendarDayGrid__dayCell",i0="fui-CalendarDayGrid__daySelected",a0="fui-CalendarDayGrid__daySingleSelected",s0="fui-CalendarDayGrid__weekRow",l0="fui-CalendarDayGrid__weekDayLabelCell",c0="fui-CalendarDayGrid__weekNumberCell",u0="fui-CalendarDayGrid__dayOutsideBounds",d0="fui-CalendarDayGrid__dayOutsideNavigatedMonth",f0="fui-CalendarDayGrid__dayButton",h0="fui-CalendarDayGrid__dayIsToday",p0="fui-CalendarDayGrid__firstTransitionWeek",m0="fui-CalendarDayGrid__lastTransitionWeek",g0="fui-CalendarDayGrid__dayMarker",v0="fui-CalendarDayGrid__dayTodayMarker",y0="fui-CalendarDayGrid__hoverStyle",b0="fui-CalendarDayGrid__pressedStyle",w0=Lr({base:{Byoj8tv:"f1fow5ox"}},{d:[".f1fow5ox{padding-bottom:10px;}"]}),x0=Lr({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;}"]}),k0=Lr({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;}"]}),S0=Lr({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);}"]}),_0=Lr({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)"}]]}),C0=Lr({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);}}"]}),T0=Lr({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;}}"]}),E0=Lr({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;}"]}),A0=Lr({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)"}]]}),P0=Lr({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)"}]]}),I0=Lr({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);}"]}),B0=Lr({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)"}]]}),N0=Lr({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)"}]]}),D0=Lr({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%;}}"]}),z0=Lr({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%;}}"]}),O0=Lr({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)"}]]}),R0=Lr({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);}"]}),M0=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:Se(s.dayCell,s.weekDayLabelCell),scope:"col",key:l[i]+" "+t,title:a,"aria-label":a,tabIndex:o?0:void 0},l[i])}))},j0=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:k,onNavigateDate:S,getDayInfosInRangeOfDay:_,getRefsFromDayInfos:C}=e;var T;const E=null!==(T=null==h?void 0:h[f+"_"+d])&&void 0!==T?T:"",A=BZ(t,u.originalDate),{dir:P}=Sn();let I=u.originalDate.getDate()+", "+o.months[u.originalDate.getMonth()]+", "+u.originalDate.getFullYear();u.isMarked&&(I=I+", "+o.dayMarkedAriaLabel);const B=!p&&(n||!!u.isInBounds||void 0);return g.createElement("td",{className:Se(c.dayCell,h&&E,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=_(u),r=C(t);r.forEach((e,n)=>{if(e&&(e.classList.add(y0),!t[n].isSelected&&v===yZ.Day&&y&&y>1)){e.classList.remove(t0,e0,ZZ,QZ);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=_(u);C(t).forEach(e=>{e&&e.classList.add(b0)})},onMouseUp:p?void 0:e=>{const t=_(u);C(t).forEach(e=>{e&&e.classList.remove(b0)})},onMouseOut:p?void 0:e=>{const t=_(u),r=C(t);r.forEach((e,n)=>{if(e&&(e.classList.remove(y0),e.classList.remove(b0),!t[n].isSelected&&v===yZ.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===Wc?null==b||b(u.originalDate):((e,t)=>{let r,n=1;if(e.key===Jc?(r=CZ(t,-1),n=-1):e.key===Gc?r=CZ(t,1):e.key===to(Yc,P)?(r=_Z(t,-1),n=-1):e.key===to(Kc,P)&&(r=_Z(t,1)),!r)return;const o={initialDate:t,targetDate:r,direction:n,restrictedDates:w,minDate:x,maxDate:k};let i=WZ(o);i||(o.direction=-n,i=WZ(o)),l&&i&&l.slice(1,l.length-1).some(e=>e.some(e=>BZ(e.originalDate,i)))||i&&(S(i,!0),e.preventDefault())})(e,u.originalDate)},role:"gridcell",tabIndex:A||B?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:Se(c.dayButton,u.isToday&&c.dayIsToday),"aria-label":I,id:A?i:void 0,disabled:!p&&!u.isInBounds,type:"button",tabIndex:-1},g.createElement("span",{className:u.isToday?Se(c.dayTodayMarker):void 0},r.formatDay(u.originalDate)),u.isMarked&&g.createElement("div",{"aria-hidden":"true",className:c.dayMarker})))},L0=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?OZ(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(j0,{...e,key:t.key,day:t,dayIndex:r})))};function F0(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=_Z(m,-7);let v=!1;const y=GZ(r,l,n);let b=[];t&&(b=DZ(t,y,n,l,c),b=$Z(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:BZ(h,m),isSelected:zZ(m,b),isSingleSelected:1===b.length&&BZ(m,t),isInBounds:!UZ(m,f),isMarked:(null==d?void 0:d.some(e=>BZ(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=>BZ(a.originalDate,e)))};n.push(l)}l.push(n)}return l},[e])}const V0=e=>{const t=g.useRef(null),r=Un(),[n,o]=function(){const e=g.useRef({});return[e,t=>r=>{null===r?delete e.current[t]:e.current[t]=r}]}(),i=F0(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=DZ(t,u,o,s,l);f=$Z(f,i,a),f=f.filter(e=>!UZ(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}=Sn(),r=(e,r,n,o)=>{const i=[],a=!e&&!o,s=!r&&!n,l=!r&&!o;return!e&&!n&&i.push("rtl"===t?QZ:ZZ),a&&i.push("rtl"===t?ZZ:QZ),s&&i.push("rtl"===t?e0:t0),l&&i.push("rtl"===t?t0:e0),Se(...i)},n=(t,r,n,o)=>{const{dateRangeType:i,firstDayOfWeek:a,workWeekDays:s}=e,l=DZ(t,i===yZ.WorkWeek?yZ.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=w0(),r=x0(),n=k0(),o=S0(),i=_0(),a=C0(),s=T0(),l=E0(),c=A0(),u=P0(),d=I0(),f=B0(),h=D0(),p=z0(),m=O0(),g=R0(),v=N0(),{animateBackwards:y,animationDirection:b,lightenDaysOutsideNavigatedMonth:w,showWeekNumbers:x}=e;return{wrapper:Se(r0,t.base),table:Se(n0,r.base,x&&r.showWeekNumbers),dayCell:Se(o0,n.base,n.focusIndicator,g.corners),daySelected:Se(i0,o.base),daySingleSelected:Se(a0,i.base),weekRow:Se(s0,a.base,void 0!==y&&a.animation,void 0!==y&&(b===JZ.Horizontal?y?a.horizontalBackward:a.horizontalForward:y?a.verticalBackward:a.verticalForward)),weekDayLabelCell:Se(l0,s.base),weekNumberCell:Se(c0,l.base),dayOutsideBounds:Se(u0,c.base),dayOutsideNavigatedMonth:Se(d0,w&&u.lightenDaysOutsideNavigatedMonth),dayButton:Se(f0,d.base),dayIsToday:Se(h0,f.base),firstTransitionWeek:Se(p0,h.base,void 0!==y&&b!==JZ.Horizontal&&!y&&h.verticalForward),lastTransitionWeek:Se(m0,p.base,void 0!==y&&b!==JZ.Horizontal&&y&&p.verticalBackward),dayMarker:Se(g0,m.base),dayTodayMarker:Se(v0,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===yZ.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 yZ.Week}return e}(e.dateRangeType,e.workWeekDays),n=DZ(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=Ma({axis:"grid"});return g.createElement("table",{className:Se(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(M0,{...e,classNames:m,weeks:i}),g.createElement(L0,{...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(L0,{...e,...y,key:r,week:t,weekIndex:r,rowClassName:m.weekRow})),g.createElement(L0,{...e,...y,week:i[i.length-1],weekIndex:-2,rowClassName:m.lastTransitionWeek,"aria-role":"presentation",ariaHidden:!0})))};V0.displayName="CalendarDayGrid";const q0="fui-CalendarDay",H0="fui-CalendarDay__header",U0="fui-CalendarDay__monthAndYear",W0="fui-CalendarDay__monthComponents",$0="fui-CalendarDay__headerIconButton",G0="fui-CalendarDay__disabledStyle",Y0=Lr({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;}"]}),K0=Lr({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%;}"]}),J0=Lr({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}]]}),X0=Lr({base:{qb2dma:"fpydfdc",mc9l5x:"ftuwxu6"}},{d:[".fpydfdc{align-self:flex-end;}",".ftuwxu6{display:inline-flex;}"]}),Q0=Lr({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);}"]}),Z0=Lr({base:{Bg33ivm:"f1oelgmz",t69wg0:"fhh1ekj"}},{d:[".f1oelgmz,.f1oelgmz:disabled,.f1oelgmz button{color:var(--colorNeutralForegroundDisabled);}",".fhh1ekj,.fhh1ekj:disabled,.fhh1ekj button{pointer-events:none;}"]}),e1=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=Y0(),r=K0(),n=J0(),o=X0(),i=Q0(),a=Z0(),{className:s,headerIsClickable:l,showWeekNumbers:c}=e;return{root:Se(q0,t.normalize,t.base,c&&t.showWeekNumbers,s),header:Se(H0,r.base),monthAndYear:Se(U0,n.base,n.animation,l&&n.headerIsClickable),monthComponents:Se(W0,o.base),headerIconButton:Se($0,i.base),disabledStyle:Se(G0,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:r1(s),type:"button"},g.createElement("span",{"aria-live":"polite","aria-atomic":"true"},y)),g.createElement(t1,{...e,classNames:v})),g.createElement(V0,{...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}))};e1.displayName="CalendarDay";const t1=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(TZ(n,1),!1)},f=()=>{c(TZ(n,-1),!1)},h=!t||NZ(t,AZ(n))<0,p=!r||NZ(PZ(n),r)<0;return g.createElement("div",{className:l.monthComponents},g.createElement("button",{className:Se(l.headerIconButton,!h&&l.disabledStyle),tabIndex:h?void 0:i?0:-1,"aria-disabled":!h,onClick:h?f:void 0,onKeyDown:h?r1(f):void 0,title:a.prevMonthAriaLabel?a.prevMonthAriaLabel+" "+a.months[TZ(n,-1).getMonth()]:void 0,type:"button"},o.upNavigation),g.createElement("button",{className:Se(l.headerIconButton,!p&&l.disabledStyle),tabIndex:p?void 0:i?0:-1,"aria-disabled":!p,onClick:p?d:void 0,onKeyDown:p?r1(d):void 0,title:a.nextMonthAriaLabel?a.nextMonthAriaLabel+" "+a.months[TZ(n,1).getMonth()]:void 0,type:"button"},o.downNavigation),s&&g.createElement("button",{className:l.headerIconButton,onClick:u,onKeyDown:r1(u),title:a.closeButtonAriaLabel,type:"button"},o.dismiss))};t1.displayName="CalendarDayNavigationButtons";const r1=e=>t=>{if(t.key===Wc)null==e||e()},n1="fui-CalendarPicker",o1="fui-CalendarPicker__headerContainer",i1="fui-CalendarPicker__currentItemButton",a1="fui-CalendarPicker__navigationButtonsContainer",s1="fui-CalendarPicker__navigationButton",l1="fui-CalendarPicker__gridContainer",c1="fui-CalendarPicker__buttonRow",u1="fui-CalendarPicker__itemButton",d1="fui-CalendarPicker__current",f1="fui-CalendarPicker__selected",h1="fui-CalendarPicker__disabled",p1=Lr({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}]]}),m1=Lr({base:{mc9l5x:"f22iagw"}},{d:[".f22iagw{display:flex;}"]}),g1=Lr({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}]]}),v1=Lr({base:{Bt984gj:"f122n59",mc9l5x:"f22iagw"}},{d:[".f122n59{align-items:center;}",".f22iagw{display:flex;}"]}),y1=Lr({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);}"]}),b1=Lr({base:{B6of3ja:"fvjh0tl"}},{d:[".fvjh0tl{margin-top:4px;}"]}),w1=Lr({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);}}"]}),x1=Lr({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)"}]]}),k1=Lr({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);}"]}),S1=Lr({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);}"]}),_1=Lr({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)"}]]}),C1=e=>{const t=p1(),r=m1(),n=g1(),o=v1(),i=y1(),a=b1(),s=w1(),l=x1(),c=k1(),u=S1(),d=_1(),{animateBackwards:f,animationDirection:h,className:p,hasHeaderClickCallback:m,highlightCurrent:g,highlightSelected:v}=e;return{root:Se(n1,t.normalize,t.base,p),headerContainer:Se(o1,r.base),currentItemButton:Se(i1,n.base,void 0!==f&&n.animation,m&&n.hasHeaderClickCallback),navigationButtonsContainer:Se(a1,o.base),navigationButton:Se(s1,i.base),gridContainer:Se(l1,a.base),buttonRow:Se(c1,s.base,s.animation,void 0!==f&&(h===JZ.Horizontal?f?s.horizontalBackward:s.horizontalForward:f?s.verticalBackward:s.verticalForward)),itemButton:Se(u1,l.base),selected:Se(f1,v&&u.highlightSelected),current:Se(d1,g&&c.highlightCurrent),disabled:Se(h1,d.base)}},T1=e=>C1(e),E1=12,A1={prevRangeAriaLabel:void 0,nextRangeAriaLabel:void 0},P1=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=T1({className:t,highlightCurrent:r,highlightSelected:n});var f;return g.createElement("button",{className:Se(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===Wc&&(null==l||l(o))},disabled:a,"aria-selected":i,ref:u},null!==(f=null==c?void 0:c(o))&&void 0!==f?f:o)};P1.displayName="CalendarYearGridCell";const I1=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(P1,{...e,key:t,year:t,selected:r,current:o,disabled:n,onSelectYear:l,componentRef:r?d:o?f:void 0})},p=T1({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=Ma({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)))};I1.displayName="CalendarYearGrid";const B1=0,N1=1,D1=e=>{const{className:t,strings:r=A1,direction:n,onSelectPrev:o,onSelectNext:i,fromYear:a,toYear:s,maxYear:l,minYear:c,navigationIcons:u}=e,d=T1({className:t}),f=n===B1?r.prevRangeAriaLabel:r.nextRangeAriaLabel,h=n===B1?-12:E1,p=f?"string"==typeof f?f:f({fromYear:a+h,toYear:s+h}):void 0,m=n===B1?void 0!==c&&a<c:void 0!==l&&e.fromYear+E1>l,v=()=>{n===B1?null==o||o():null==i||i()};return g.createElement("button",{className:Se(d.navigationButton,m&&d.disabled),onClick:m?void 0:v,onKeyDown:m?void 0:e=>{e.key===Wc&&v()},type:"button",title:p,disabled:m},n===B1?u.upNavigation:u.downNavigation)};D1.displayName="CalendarYearNavArrow";const z1=e=>{const{className:t}=e,r=T1({className:t});return g.createElement("div",{className:r.navigationButtonsContainer},g.createElement(D1,{...e,direction:B1}),g.createElement(D1,{...e,direction:N1}))};z1.displayName="CalendarYearNav";const O1=e=>{const{className:t,fromYear:r,toYear:n,strings:o=A1,animateBackwards:i,animationDirection:a}=e,s=()=>{var t;null===(t=e.onHeaderSelect)||void 0===t||t.call(e,!0)},l=e=>{e.key!==Wc&&e.key!==$c||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=T1({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))};O1.displayName="CalendarYearTitle";const R1=e=>{const{className:t,animateBackwards:r,animationDirection:n,onRenderTitle:o}=e,i=T1({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(O1,e),g.createElement(z1,e))};R1.displayName="CalendarYearHeader";const M1=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+E1-1,()=>{o(e=>e+E1)},()=>{o(e=>e-E1)}]}(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=T1({className:s});return g.createElement("div",{className:l.root},g.createElement(R1,{...e,fromYear:r,toYear:n,onSelectPrev:i,onSelectNext:o,animateBackwards:t}),g.createElement(I1,{...e,fromYear:r,toYear:n,animateBackwards:t,componentRef:a}))};M1.displayName="CalendarYear";const j1=e=>{const{allFocusable:t,animationDirection:r,className:n,componentRef:o,dateTimeFormatter:i=kZ,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}),[k,S]=g.useState(!1),_=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}),C=e=>()=>A(e),T=()=>{h(EZ(u,1),!1)},E=()=>{h(EZ(u,-1),!1)},A=e=>{null==f||f(),h(IZ(u,e),!0)},P=()=>{y?null==f||f():(x(),S(!0))},I=e=>{x();if(u.getFullYear()!==e){let t=new Date(u.getTime());t.setFullYear(e),l&&t>l?t=IZ(t,l.getMonth()):c&&t<c&&(t=IZ(t,c.getMonth())),h(t,!0)}S(!1)},B=e=>{x(),S(!1)},N=i,D=!c||NZ(c,new Date(u.getFullYear(),0,1,0,0,0,0))<0;const z=!l||NZ(function(e){return new Date(e.getFullYear()+1,0,0,0,0,0,0)}(u),l)<0,O=(e=>C1(e))({className:n,hasHeaderClickCallback:!!f||!y,highlightCurrent:a,highlightSelected:s,animateBackwards:_,animationDirection:r}),R=Ma({axis:"grid"});if(k){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(M1,{key:"calendarYear",minYear:c?c.getFullYear():void 0,maxYear:l?l.getFullYear():void 0,onSelectYear:I,onHeaderSelect:B,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 M=[];for(let g=0;g<m.shortMonths.length/4;g++)M.push(g);const j=N.formatYear(u),L=m.monthPickerHeaderAriaLabel?m.monthPickerHeaderAriaLabel.replace("{0}",j):j;return g.createElement("div",{className:O.root},g.createElement("div",{className:O.headerContainer},g.createElement("button",{className:O.currentItemButton,onClick:P,onKeyDown:F1(P),"aria-label":L,tabIndex:f||!y?0:-1,type:"button"},g.createElement("span",{"aria-live":"polite","aria-atomic":"true"},j)),g.createElement("div",{className:O.navigationButtonsContainer},g.createElement("button",{className:Se(O.navigationButton,!D&&O.disabled),"aria-disabled":!D,tabIndex:D?void 0:t?0:-1,onClick:D?E:void 0,onKeyDown:D?F1(E):void 0,title:m.prevYearAriaLabel?m.prevYearAriaLabel+" "+N.formatYear(EZ(u,-1)):void 0,type:"button"},d.upNavigation),g.createElement("button",{className:Se(O.navigationButton,!z&&O.disabled),"aria-disabled":!z,tabIndex:z?void 0:t?0:-1,onClick:z?T:void 0,onKeyDown:z?F1(T):void 0,title:m.nextYearAriaLabel?m.nextYearAriaLabel+" "+N.formatYear(EZ(u,1)):void 0,type:"button"},d.downNavigation))),g.createElement("div",{...R,className:O.gridContainer,role:"grid","aria-label":j},M.map(e=>{const r=m.shortMonths.slice(4*e,4*(e+1));return g.createElement("div",{key:"monthRow_"+e+u.getFullYear(),role:"row",className:O.buttonRow},r.map((r,n)=>{const o=4*e+n,i=IZ(u,o),d=u.getMonth()===o,f=p.getMonth()===o,h=p.getFullYear()===u.getFullYear(),y=(!c||NZ(c,PZ(i))<1)&&(!l||NZ(AZ(i),l)<1);return g.createElement("button",{ref:d?b:void 0,role:"gridcell",className:Se(O.itemButton,a&&L1(o,u.getFullYear(),v)&&O.current,s&&f&&h&&O.selected,!y&&O.disabled),disabled:!t&&!y,key:o,onClick:y?C(o):void 0,onKeyDown:y?F1(C(o)):void 0,"aria-label":N.formatMonth(i,m),"aria-selected":d,tabIndex:y?0:-1,type:"button"},r)}))})))};function L1(e,t,r){return r.getFullYear()===t&&r.getMonth()===e}function F1(e){return t=>{if(t.key===Wc)e()}}j1.displayName="CalendarMonth";const V1={dismiss:g.createElement(Iu,null),downNavigation:g.createElement(wu,null),upNavigation:g.createElement(xu,null)},q1="fui-Calendar",H1="fui-Calendar__divider",U1="fui-Calendar__goTodayButton",W1="fui-Calendar__monthPickerWrapper",$1="fui-Calendar__liveRegion",G1=Lr({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;}"]}),Y1=Lr({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;}"]}),K1=Lr({base:{mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}"]}),J1=Lr({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)"}]]}),X1=Lr({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;}"]}),Q1=[fZ.Monday,fZ.Tuesday,fZ.Wednesday,fZ.Thursday,fZ.Friday];const Z1=g.forwardRef((e,t)=>{const{allFocusable:r=!1,calendarDayProps:n,calendarMonthProps:o,className:i,componentRef:a,dateRangeType:s=yZ.Day,dateTimeFormatter:l=kZ,firstDayOfWeek:c=fZ.Sunday,firstWeekOfYear:u=gZ.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:k=!1,showGoToToday:S=!0,showMonthPickerAsOverlay:_=!1,showSixWeeksByDefault:C=!1,showWeekNumbers:T=!1,strings:E=SZ,today:A,value:P,workWeekDays:I=Q1}=e,B=g.useMemo(()=>null!=A?A:new Date,[A]),[N,D,z,O,R,M]=function(e){const{value:t,today:r,onSelectDate:n}=e,o=g.useMemo(()=>null!=r?r:new Date,[r]),[i,a]=zn({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:P,today:B}),[j,L,F]=function({isDayPickerVisible:e,isMonthPickerVisible:t,showMonthPickerAsOverlay:r}){const n=e4({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:_}),[V,q,H]=function({componentRef:e},t,r){const n=g.useRef(null),o=g.useRef(null),i=g.useRef(!1),{targetDocument:a}=Sn(),s=null==a?void 0:a.defaultView,l=g.useCallback(()=>{t&&n.current?KZ(n.current,s):r&&o.current&&KZ(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=S;return e&&B&&(e=D.getFullYear()!==B.getFullYear()||D.getMonth()!==B.getMonth()||z.getFullYear()!==B.getFullYear()||z.getMonth()!==B.getMonth()),S&&g.createElement("button",{className:J.goTodayButton,onClick:G,onKeyDown:Y(G),type:"button",disabled:!e},E.goToToday)},W=e4({isDayPickerVisible:p,showMonthPickerAsOverlay:_}),$=W?()=>{F(),H()}:void 0,G=()=>{R(B),W&&j&&F(),H()},Y=e=>t=>{switch(t.key){case Wc:case $c:e()}},K=!W&&!L,J=(e=>{const t=G1(),r=Y1(),n=K1(),o=J1(),i=X1(),{className:a,isDayPickerVisible:s,isMonthPickerVisible:l,showWeekNumbers:c}=e;return{root:Se(q1,t.base,t.normalize,!l&&t.monthPickerNotVisible,s&&l&&!c&&t.dayAndMonthPickersVisible,s&&!l&&c&&t.dayPickerVisibleAndWeekNumbersShown,s&&l&&c&&t.dayAndMonthPickersVisibleAndWeekNumbersShown,a),divider:Se(H1,r.base),monthPickerWrapper:Se(W1,n.base),goTodayButton:Se(U1,o.base),liveRegion:Se($1,i.base)}})({className:i,isDayPickerVisible:L,isMonthPickerVisible:j,showWeekNumbers:T});let X="",Q="";if(l&&E.todayDateFormatString&&(X=E.todayDateFormatString.replace("{0}",l.formatMonthDayYear(B,E))),l&&E.selectedDateFormatString){const e=K?l.formatMonthYear:l.formatMonthDayYear;Q=E.selectedDateFormatString.replace("{0}",e(N,E))}const Z=Q+", "+X;return g.createElement("div",{id:h,ref:t,className:J.root,onKeyDown:e=>{switch(e.key){case Wc:case eu:e.preventDefault();break;case tu:e.stopPropagation(),null==b||b();break;case Zc:e.ctrlKey?R(EZ(D,1)):R(TZ(D,1)),e.preventDefault();break;case Qc:e.ctrlKey?R(EZ(D,-1)):R(TZ(D,-1)),e.preventDefault()}}},g.createElement("div",{className:J.liveRegion,"aria-live":"polite","aria-atomic":"true"},g.createElement("span",null,Q)),L&&g.createElement(e1,{gridLabel:Z,selectedDate:N,navigatedDate:D,today:B,onSelectDate:O,onNavigateDate:(e,t)=>{R(e),t&&H()},onDismiss:b,firstDayOfWeek:c,dateRangeType:s,strings:E,onHeaderSelect:$,showWeekNumbers:T,firstWeekOfYear:u,dateTimeFormatter:l,showSixWeeksByDefault:C,minDate:y,maxDate:v,navigationIcons:V1,restrictedDates:x,workWeekDays:I,componentRef:V,showCloseButton:k,allFocusable:r,...n}),L&&j&&g.createElement("div",{className:J.divider}),j?g.createElement("div",{className:J.monthPickerWrapper},g.createElement(j1,{navigatedDate:z,selectedDate:D,strings:E,onNavigateDate:(e,t)=>{t&&H(),t?(K&&O(e),R(e)):M(e)},today:B,highlightCurrentMonth:d,highlightSelectedMonth:f,onHeaderSelect:$,dateTimeFormatter:l,minDate:y,maxDate:v,componentRef:q,navigationIcons:V1,...o}),U()):U())});Z1.displayName="Calendar";const e4=({isDayPickerVisible:e,showMonthPickerAsOverlay:t})=>{const{targetDocument:r}=Sn(),n=null==r?void 0:r.defaultView;return t||e&&n&&n.innerWidth<=440},t4={...SZ,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 r4=e=>e?e.toDateString():"",n4=e=>{const t=Date.parse(e);return t?new Date(t):null},o4=(e,t)=>{const{allowTextInput:r=!1,allFocusable:n=!1,borderless:o=!1,dateTimeFormatter:i,defaultOpen:a=!1,disableAutoFocus:s=!0,firstDayOfWeek:l=fZ.Sunday,firstWeekOfYear:c=gZ.FirstDay,formatDate:u=r4,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:k=!0,onValidationResult:S,parseDateFromString:_=n4,showCloseButton:C=!1,showGoToToday:T=!0,showMonthPickerAsOverlay:E=!1,showWeekNumbers:A=!1,strings:P=t4,today:I,underlined:B=!1,value:N,...D}=e,z=g.useMemo(()=>null!=h?h:new Date,[h]),O=g.useRef(null),[R,M,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]=zn({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:N}),[U,W]=function(e){const[t,r]=zn({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),$=yp();var G;const Y=null!==(G=null==$?void 0:$.required)&&void 0!==G?G:e.required,K=Un("datePicker-input"),J=Un("datePicker-popupSurface"),X=g.useCallback((e=null)=>{let t;if(r)if(V||e){if(F&&u&&u(null!=e?e:F)===V)return;!(e=e||_(V))||isNaN(e.getTime())?(q(F),t="invalid-input"):!function(e,t,r){return!!t&&NZ(t,e)>0||!!r&&NZ(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==S||S({error:t})},[r,u,V,v,y,x,S,_,Y,F,q]),Q=g.useCallback(t=>{null==w||w(t),W(t),U||e.disabled||R()},[R,w,e.disabled,W]),Z=g.useCallback(e=>{U&&(Q(!1),X(e),!r&&e&&q(e))},[r,U,Q,q,X]),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(()=>{X()},[X]),oe=g.useCallback(t=>{switch(t.key){case Wc:t.preventDefault(),t.stopPropagation(),U?e.allowTextInput&&Z():(X(),ee());break;case tu:t.stopPropagation(),t.preventDefault(),U&&te();break;case Gc:t.preventDefault(),U||ee()}},[te,Z,U,e.allowTextInput,ee,X]),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=B?"underline":o?"filled-lighter":"outline",[le,ce]=function(e){const{positioning:t}=e,r={position:"below",align:"start",...Wf(t)},{targetRef:n,containerRef:o}=nh(r);return[n,o]}(e),ue=Ur(e.root,{defaultProps:{ref:le},elementType:"span"});ue.ref=Wn(ue.ref,le);const de=Ur(e.input,{elementType:"input"});de.ref=Wn(de.ref,t,M);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=Ur(e.contentAfter||{},{defaultProps:{children:g.createElement(ku,null),...me},elementType:"span"});ge.onClick=Vn(ro(ge.onClick,t=>{t.stopPropagation(),U||e.disabled?e.allowTextInput&&Z():ee()}));const ve=Ur(D,{defaultProps:{appearance:se,"aria-controls":U?J:void 0,"aria-expanded":U,"aria-haspopup":"dialog",readOnly:!r,role:"combobox",id:pe},elementType:Om});ve.root=ue,ve.input=de,ve.contentAfter=ge,ve.onChange=Vn(ro(ve.onChange,re)),ve.onBlur=Vn(ro(ve.onBlur,ne)),ve.onKeyDown=Vn(ro(ve.onKeyDown,oe)),ve.onFocus=Vn(ro(ve.onFocus,ie)),ve.onClick=Vn(ro(ve.onClick,ae));const{modalAttributes:ye}=Za({trapFocus:!0,alwaysFocusable:!0,legacyTrapFocus:!0}),be=U?Wr(e.popupSurface,{renderByDefault:!0,defaultProps:{"aria-label":"Calendar","aria-modal":!0,id:J,role:"dialog",ref:ce,...ye},elementType:"div"}):void 0,{targetDocument:we}=Sn();Gn({element:we,callback:e=>Z(),refs:[le,ce],disabled:!U}),Xn({element:we,callback:e=>Z(),refs:[le,ce],disabled:!U}),g.useEffect(()=>{U&&!e.disabled&&O.current&&O.current.focus()},[s,U,e.disabled]);const xe=Ur(e.calendar,{defaultProps:{allFocusable:n,componentRef:O,dateTimeFormatter:i,firstDayOfWeek:l,firstWeekOfYear:c,highlightCurrentMonth:d,highlightSelectedMonth:f,isMonthPickerVisible:m,maxDate:v,minDate:y,showCloseButton:C,showGoToToday:T,showMonthPickerAsOverlay:E,showWeekNumbers:A,strings:P,today:I,value:F||z},elementType:Z1});xe.onDismiss=Vn(ro(xe.onDismiss,te)),xe.onSelectDate=Vn(ro(xe.onSelectDate,te));const ke={disabled:!!e.disabled,inlinePopup:p,components:{root:Om,calendar:Z1,popupSurface:"div"},calendar:xe,mountNode:b,root:ve,popupSurface:be};return ke.root.value=V,ke},i4="fui-DatePicker",a4="fui-DatePicker__calendar",s4="fui-DatePicker__popupSurface",l4=Lr({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;}"]}),c4=Fr("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);}"]),u4=g.forwardRef((e,t)=>{const r=o4(e,t);return(e=>{const t=l4(),r=c4(),{disabled:n,inlinePopup:o}=e;e.root.className=Se(i4,t.base,n&&t.disabled,e.root.className),e.popupSurface&&(e.popupSurface.className=Se(s4,r,e.popupSurface.className,o&&t.inline)),e.calendar.className=Se(a4,e.calendar.className)})(r),(e=>{const{inlinePopup:t}=e;return go(g.Fragment,{children:[mo(e.root,{}),e.popupSurface&&(t?mo(e.popupSurface,{children:mo(e.calendar,{})}):mo(Nh,{mountNode:e.mountNode,children:mo(e.popupSurface,{children:mo(e.calendar,{})})}))]})})(r)});u4.displayName="DatePicker";const d4=g.forwardRef((e,t)=>{var r;const n=lQ();return g.createElement(u4,{id:e.internalId,strings:e.strings,appearance:iQ.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:iQ.shouldUseInlinePopup,input:{ref:t,"aria-label":e.placeholder,"aria-labelledby":e.ariaLabelledBy,"aria-required":e.isRequired}})});d4.displayName="DateInputComponent";class f4 extends KX{constructor(){super(...arguments),this._inputRef=g.createRef()}getStrings(){return{months:[this.localizeString(QQ.january),this.localizeString(QQ.february),this.localizeString(QQ.march),this.localizeString(QQ.april),this.localizeString(QQ.may),this.localizeString(QQ.june),this.localizeString(QQ.july),this.localizeString(QQ.august),this.localizeString(QQ.september),this.localizeString(QQ.october),this.localizeString(QQ.november),this.localizeString(QQ.december)],shortMonths:[this.localizeString(QQ.januaryShort),this.localizeString(QQ.februaryShort),this.localizeString(QQ.marchShort),this.localizeString(QQ.aprilShort),this.localizeString(QQ.mayShort),this.localizeString(QQ.juneShort),this.localizeString(QQ.julyShort),this.localizeString(QQ.augustShort),this.localizeString(QQ.septemberShort),this.localizeString(QQ.octoberShort),this.localizeString(QQ.novemberShort),this.localizeString(QQ.decemberShort)],days:[this.localizeString(QQ.sunday),this.localizeString(QQ.monday),this.localizeString(QQ.tuesday),this.localizeString(QQ.wednesday),this.localizeString(QQ.thursday),this.localizeString(QQ.friday),this.localizeString(QQ.saturday)],shortDays:[this.localizeString(QQ.sundayShort),this.localizeString(QQ.mondayShort),this.localizeString(QQ.tuesdayShort),this.localizeString(QQ.wednesdayShort),this.localizeString(QQ.thursdayShort),this.localizeString(QQ.fridayShort),this.localizeString(QQ.saturdayShort)],weekNumberFormatString:this.localizeString(QQ.calendarWeekNumberFormatString),prevMonthAriaLabel:this.localizeString(QQ.calendarPreviousMonthAriaLabel),nextMonthAriaLabel:this.localizeString(QQ.calendarNextMonthAriaLabel),goToToday:this.localizeString(QQ.calendarGoToToday)}}focus(){return!!this._inputRef.current&&(this._inputRef.current.focus(),!0)}renderInputControl(){const e=this.placeholder||this.localizeString(QQ.dateInputDefaultPlaceholder),t=e=>e?this.formatDate(e):"";return g.createElement(d4,{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 h4=g.forwardRef((e,t)=>{const r=lQ();return g.createElement(yv,{id:e.internalId,appearance:iQ.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)}})});h4.displayName="NumberInputComponent";class p4 extends JX{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(h4,{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 m4,g4;(g4=m4||(m4={}))[g4.Accent=0]="Accent",g4[g4.Good=1]="Good",g4[g4.Warning=2]="Warning",g4[g4.Attention=3]="Attention",q$(m4,"ProgressBarColor");const v4={[qG.Light]:"#0000001a",[qG.Dark]:"#ffffff26"},y4=Ll,b4=oc,w4=tc,x4=lc,k4=jr({accent:{backgroundColor:v4[qG.Light],[`& > .${Fv}`]:{backgroundColor:y4}},good:{backgroundColor:v4[qG.Light],[`& > .${Fv}`]:{backgroundColor:b4}},warning:{backgroundColor:v4[qG.Light],[`& > .${Fv}`]:{backgroundColor:w4}},attention:{backgroundColor:v4[qG.Light],[`& > .${Fv}`]:{backgroundColor:x4}}}),S4=jr({accent:{backgroundColor:v4[qG.Dark],[`& > .${Fv}`]:{backgroundColor:y4}},good:{backgroundColor:v4[qG.Dark],[`& > .${Fv}`]:{backgroundColor:b4}},warning:{backgroundColor:v4[qG.Dark],[`& > .${Fv}`]:{backgroundColor:w4}},attention:{backgroundColor:v4[qG.Dark],[`& > .${Fv}`]:{backgroundColor:x4}}}),_4=jr({accent:{backgroundColor:v4[qG.Dark],[`& > .${Fv}`]:{backgroundColor:Wl,backgroundImage:`linear-gradient(to right, ${Wl}, ${y4}, ${Wl})`}},good:{backgroundColor:v4[qG.Dark],[`& > .${Fv}`]:{backgroundColor:Wl,backgroundImage:`linear-gradient(to right, ${Wl}, ${b4}, ${Wl})`}},warning:{backgroundColor:v4[qG.Dark],[`& > .${Fv}`]:{backgroundColor:Wl,backgroundImage:`linear-gradient(to right, ${Wl}, ${w4}, ${Wl})`}},attention:{backgroundColor:v4[qG.Dark],[`& > .${Fv}`]:{backgroundColor:Wl,backgroundImage:`linear-gradient(to right, ${Wl}, ${x4}, ${Wl})`}}});class C4 extends RK{get value(){return this.getValue(C4.valueProperty)}set value(e){this.setValue(C4.valueProperty,e)}get max(){return this.getValue(C4.maxProperty)}set max(e){this.setValue(C4.maxProperty,e)}get color(){return this.getValue(C4.colorProperty)}set color(e){this.setValue(C4.colorProperty,e)}getJsonTypeName(){return C4.jsonTypeName}internalRender(e){return T4({value:this.value,max:this.max,color:this.color,theme:this.theme})}}C4.jsonTypeName="ProgressBar",C4.valueProperty=new CY(vY.v1_5,"value"),C4.maxProperty=new CY(vY.v1_5,"max",100),C4.colorProperty=new PY(vY.v1_5,"color",m4,m4.Accent);const T4=e=>{const t=k4(),r=S4(),n=_4(),o=void 0===e.value,i=e.theme===qG.Light?t:o?n:r;let a=i.accent;if(!o)switch(e.color){case m4.Good:a=i.good;break;case m4.Warning:a=i.warning;break;case m4.Attention:a=i.attention}return g.createElement(Hv,{thickness:"large",className:a,value:e.value,max:e.max})};var E4,A4,P4,I4;(A4=E4||(E4={}))[A4.Tiny=0]="Tiny",A4[A4.Small=1]="Small",A4[A4.Medium=2]="Medium",A4[A4.Large=3]="Large",q$(E4,"ProgressRingSize"),(I4=P4||(P4={}))[I4.Before=0]="Before",I4[I4.After=1]="After",I4[I4.Above=2]="Above",I4[I4.Below=3]="Below",q$(P4,"ProgressRingLabelPosition");const B4={[E4.Tiny]:"tiny",[E4.Small]:"small",[E4.Medium]:"medium",[E4.Large]:"large"},N4={[P4.Before]:"before",[P4.After]:"after",[P4.Above]:"above",[P4.Below]:"below"};class D4 extends RK{get label(){return this.getValue(D4.labelProperty)}set label(e){this.setValue(D4.labelProperty,e)}get labelPosition(){return this.getValue(D4.labelPositionProperty)}set labelPosition(e){this.setValue(D4.labelPositionProperty,e)}get size(){return this.getValue(D4.sizeProperty)}set size(e){this.setValue(D4.sizeProperty,e)}getJsonTypeName(){return D4.jsonTypeName}internalRender(e){const t=N4[this.labelPosition],r=B4[this.size];let n;switch(this.horizontalAlignment){case gG.Center:n="center";break;case gG.Right:n="flex-end";break;default:n="flex-start"}return g.createElement("div",{style:{alignSelf:n,display:"flex"}},g.createElement(Nv,{label:this.label,labelPosition:t,size:r}))}}var z4,O4,R4,M4,j4,L4;D4.jsonTypeName="ProgressRing",D4.labelProperty=new xY(vY.v1_5,"label"),D4.labelPositionProperty=new PY(vY.v1_5,"labelPosition",P4,P4.Below),D4.sizeProperty=new PY(vY.v1_5,"size",E4,E4.Medium),(O4=z4||(z4={}))[O4.Medium=0]="Medium",O4[O4.Large=1]="Large",q$(z4,"RatingSize"),(M4=R4||(R4={}))[M4.Neutral=0]="Neutral",M4[M4.Marigold=1]="Marigold",q$(R4,"RatingColor"),(L4=j4||(j4={}))[L4.Default=0]="Default",L4[L4.Compact=1]="Compact",q$(j4,"RatingStyle");const F4={[z4.Medium]:"medium",[z4.Large]:"large"},V4={[R4.Neutral]:"neutral",[R4.Marigold]:"marigold"};class q4 extends RK{get value(){return this.getValue(q4.valueProperty)}set value(e){this.setValue(q4.valueProperty,e)}get count(){return this.getValue(q4.countProperty)}set count(e){this.setValue(q4.countProperty,e)}get max(){return this.getValue(q4.maxProperty)}set max(e){this.setValue(q4.maxProperty,e)}get size(){return this.getValue(q4.sizeProperty)}set size(e){this.setValue(q4.sizeProperty,e)}get color(){return this.getValue(q4.colorProperty)}set color(e){this.setValue(q4.colorProperty,e)}get style(){return this.getValue(q4.styleProperty)}set style(e){this.setValue(q4.styleProperty,e)}internalRender(e){const t=this.max>0?Math.min(this.max,q4.maxMax):q4.defaultMax;let r;switch(this.horizontalAlignment){case gG.Right:r="flex-end";break;case gG.Center:r="center"}return g.createElement("div",{style:{display:"flex",justifyContent:r}},g.createElement(Hy,{value:this.value,max:t,size:F4[this.size],color:V4[this.color],count:this.count,compact:this.style===j4.Compact}))}getJsonTypeName(){return"Rating"}}q4.defaultMax=5,q4.maxMax=5,q4.valueProperty=new CY(vY.v1_5,"value"),q4.countProperty=new CY(vY.v1_5,"count"),q4.maxProperty=new CY(vY.v1_5,"max",q4.defaultMax),q4.sizeProperty=new PY(vY.v1_5,"size",z4,z4.Large),q4.colorProperty=new PY(vY.v1_5,"color",R4,R4.Neutral),q4.styleProperty=new PY(vY.v1_5,"style",j4,j4.Default);const H4=g.forwardRef((e,t)=>e.isEnabled?g.createElement(Ry,{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(Hy,{value:e.value,max:e.max,size:e.size,color:e.color,valueText:""}));H4.displayName="RatingInputComponent";const U4={[z4.Medium]:"medium",[z4.Large]:"large"},W4={[R4.Neutral]:"neutral",[R4.Marigold]:"marigold"};class $4 extends UX{constructor(){super(...arguments),this._inputRef=g.createRef()}get defaultValue(){return this.getValue($4.valueProperty)}set defaultValue(e){this.setValue($4.valueProperty,e)}get max(){return this.getValue($4.maxProperty)}set max(e){this.setValue($4.maxProperty,e)}get allowHalfSteps(){return this.getValue($4.allowHalfStepsProperty)}set allowHalfSteps(e){this.setValue($4.allowHalfStepsProperty,e)}get size(){return this.getValue($4.sizeProperty)}set size(e){this.setValue($4.sizeProperty,e)}get color(){return this.getValue($4.colorProperty)}set color(e){this.setValue($4.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,$4.maxMax):$4.defaultMax;return g.createElement(H4,{ref:this._inputRef,internalId:this.internalId,isEnabled:this.isEnabled,isRequired:this.isRequired,max:e,step:this.allowHalfSteps?.5:1,size:U4[this.size],color:W4[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)}}$4.defaultMax=5,$4.maxMax=5,$4.valueProperty=new CY(vY.v1_5,"value"),$4.maxProperty=new CY(vY.v1_5,"max",$4.defaultMax),$4.allowHalfStepsProperty=new _Y(vY.v1_5,"allowHalfSteps",!1),$4.sizeProperty=new PY(vY.v1_5,"size",z4,z4.Large),$4.colorProperty=new PY(vY.v1_5,"color",R4,R4.Neutral);const G4=g.forwardRef((e,t)=>{var r,n;const[o,i]=g.useState(!1),a=lQ(),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===zG.Password;if(!e.isMultiline){const n=u?o?"text":"password":zG[e.style].toLowerCase();let d;if(u){let t,r;o?(t=g.createElement(Hu,null),r=e.strings.passwordInputIconHideAriaLabel):(t=g.createElement(qu,null),r=e.strings.passwordInputIconRevealAriaLabel);const n=()=>{i(!o)};d=g.createElement(np,{icon:t,appearance:"transparent",disabled:!e.isEnabled,"aria-label":r,onClick:n})}const f=u?a.passwordInputHideRevealButton:void 0;return g.createElement(Om,{id:e.internalId,className:a.textInput,appearance:iQ.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(jv,{id:e.internalId,className:a.multilineTextInput,appearance:iQ.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})});G4.displayName="TextInputComponent";class Y4 extends XX{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===zG.Password&&this.isMultiline&&(this.style=zG.Text)}renderInputControl(){return g.createElement(G4,{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(QQ.passwordInputHidePasswordAriaLabel),passwordInputIconRevealAriaLabel:this.localizeString(QQ.passwordInputRevealPasswordAriaLabel)},ref:this._inputRef})}}function K4(e){return!isNaN(e.getTime())}function J4(e){return e?K4(e)?e.toISOString():"invalid":""}function X4(e){if(""===e||"invalid"===e)return null;const t=new Date(e);return K4(t)?t:null}function Q4(e,{hourCycle:t,showSeconds:r}={}){return e.toLocaleTimeString(void 0,{hour:"numeric",hourCycle:t,minute:"2-digit",second:r?"2-digit":void 0})}const Z4=/^((1[0-2]|0?[0-9]):([0-5][0-9]):([0-5][0-9])\s([AaPp][Mm]))$/,e2=/^((1[0-2]|0?[0-9]):[0-5][0-9]\s([AaPp][Mm]))$/,t2=/^([0-1]?[0-9]|2[0-4]):[0-5][0-9]:[0-5][0-9]$/,r2=/^([0-1]?[0-9]|2[0-4]):[0-5][0-9]$/;const n2=(e,t)=>{var r;const{dateAnchor:n,defaultSelectedTime:o,endHour:i=24,formatDateToTimeString:a=Q4,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}=o2(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:J4(e),text:a(e,{showSeconds:d,hourCycle:s})})),[b,y,a,s,l,d]),[x,k]=zn({state:u,defaultState:o,initialState:null}),[S,_]=g.useState(void 0),C=Vn((e,t)=>{k(t.selectedTime),_(t.selectedTimeText),null==c||c(e,t)}),T=g.useMemo(()=>{const e=J4(x),t=w.find(t=>t.key===e);return t?[t.key]:[]},[w,x]),E=g.useRef(null),A=Vn((e,t)=>{if(m&&void 0===t.optionValue&&(!p.clearable||"click"!==e.type||e.currentTarget!==E.current))return;var r;const n={selectedTime:X4(null!==(r=t.optionValue)&&void 0!==r?r:""),selectedTimeText:t.optionText,errorType:void 0};C(e,n)}),P=am({autoComplete:"off",...p,selectedOptions:T,onOptionSelect:A,children:w.map(e=>g.createElement(tm,{key:e.key,value:e.key},e.text))},t),I=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?Z4:e2:i?t2:r2).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]),B=Wn(null===(r=P.clearIcon)||void 0===r?void 0:r.ref,E),N={...P,clearIcon:P.clearIcon?{...P.clearIcon,ref:B}:void 0,freeform:m,parseTimeStringToDate:null!=h?h:I,submittedText:S};return a2(N),i2(N,C),N},o2=(e,t,r)=>{const[n]=g.useState(()=>new Date),o=J4(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])},i2=(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=Vn(e=>{if(!n)return;const{date:r,errorType:s}=o(a);i!==a&&(null==t||t(e,{selectedTime:r,selectedTimeText:a,errorType:s}))}),u=Vn(e=>{l()||e.key!==Wc||c(e)});e.root.onKeyDown=ro(u,e.root.onKeyDown);const d=g.useRef(null);e.root.ref=Wn(e.root.ref,d),e.listbox&&(e.listbox.tabIndex=-1),e.expandIcon&&(e.expandIcon.tabIndex=-1);const f=Vn(e=>{(!e.relatedTarget||!co(d.current,e.relatedTarget))&&c(e)});e.input.onBlur=ro(f,e.input.onBlur)},a2=e=>{var t;const r=yp(),n=Un("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}`}},s2="fui-TimePicker",l2="fui-TimePicker__input",c2="fui-TimePicker__expandIcon",u2="fui-TimePicker__clearIcon",d2="fui-TimePicker__listbox",f2=Lr({listbox:{Bxyxcbc:"f1vfnyiv"}},{d:[".f1vfnyiv{max-height:min(80vh, 416px);}"]}),h2=g.forwardRef((e,t)=>{const r=n2(e,t),n=Vp(r);return(e=>{const t=f2();e.root.className=Se(s2,e.root.className),e.input.className=Se(l2,e.input.className),e.expandIcon&&(e.expandIcon.className=Se(c2,e.expandIcon.className)),e.clearIcon&&(e.clearIcon.className=Se(u2,e.clearIcon.className)),e.listbox&&(e.listbox.className=Se(d2,t.listbox,e.listbox.className)),gm(e)})(r),In("useTimePickerCompatStyles_unstable")(r),sm(r,n)});function p2(e){return e?Q4(e):""}h2.displayName="TimePicker";const m2=g.forwardRef((e,t)=>{var r;const[n,o]=g.useState(p2(e.value));g.useEffect(()=>{o(p2(e.value))},[e.value]);const i=lQ();return g.createElement(h2,{id:e.internalId,className:i.timeInput,appearance:iQ.timeInputAppearance,ref:t,placeholder:e.placeholder,dateAnchor:QX.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(p2(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(p2(t)),e.valueChanged(t)}},inlinePopup:iQ.shouldUseInlinePopup})});m2.displayName="TimeInputComponent";class g2 extends ZX{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(QQ.timeInputDefaultPlaceholder);return g.createElement(m2,{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 v2=g.forwardRef((e,t)=>{const r=lQ(),n=e.wrap?r.toggleInputLabelWrap:r.toggleInputLabelNoWrap;let o=e.title;if(YG.useMarkdownInRadioButtonAndCheckbox&&e.parent){const t=new UJ(e.title);t.wrap=e.wrap,t.setParent(e.parent),o=g.createElement(DK,{cardObject:t})}return g.createElement(Op,{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)}})});v2.displayName="ToggleInputComponent";class y2 extends rQ{constructor(){super(...arguments),this._inputRef=g.createRef(),this.checkboxLabelId=cY()}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(v2,{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 b2="WEB_CHAT/SEND_MESSAGE";const w2="WEB_CHAT/SEND_MESSAGE_BACK";const x2={initLivePersonChat:Ix("LIVEPERSON/INITLIVEPERSONCHAT"),messageReceived:Ix("LIVEPERSON/MESSAGERECEIVED"),messageSend:Ix("LIVEPERSON/MESSAGESEND"),setLivePersonConnectionState:Ix("LIVEPERSON/SETLIVEPERSONCONNECTIONSTATE"),setLivePersonState:Ix("LIVEPERSON/SETLIVEPERSONSTATE"),userTyping:Ix("LIVEPERSON/USERTYPING"),userRequestDisconnect:Ix("LIVEPERSON/USERREQUESTDISCONNECT"),setLivePersonData:Ix("LIVEPERSON/SETLIVEPERSONDATA"),dbgCommand:Ix("LIVEPERSON/DBG/COMMAND"),dbgForceSwitchToLivePerson:Ix("LIVEPERSON/DBG/FORCESWITCHTOLIVEPERSON"),dbgForceSwitchToDirectLine:Ix("LIVEPERSON/DBG/FORCESWITCHTODIRECTLINE"),endTask:Ix("LIVEPERSON/ENDTASK"),endAgentChat:Ix("LIVEPERSON/ENDAGENTCHAT"),signalTypingInUI:Ix("LIVEPERSON/UI/SIGNALTYPINGINUI")},k2={"?":"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",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"},S2=e=>{const t=e.trim().toLowerCase();if(t.startsWith("lynx:"))return t.split("lynx:").pop()?.trim()},_2={logTelemetry:Ix("TELEMETRY/LOG_TELEMETRY"),logUserFeedback:Ix("TELEMETRY/LOG_FEEDBACK_TELEMETRY")},{log:C2,logWarn:T2}=z.withKind("sendMessageWithTelemetry"),E2=()=>{const e=yw(),t=Zb(nre),r=t=>{e(x2.messageSend(t))};return{sendMessageWithTelemetry:(n,o="text",i={},a)=>{try{if(n.trim()||a){const s=(()=>{try{return"signup"===fC()?gC({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 uC("Failed to set user interaction status:",e),{success:!1,error:t}}})();s.success||T2("Failed to update user interaction status:",s.error),e(YC.clearPrompts()),e(YC.resetClearedState());const l=S2(n);return l?(C2(`Dispatching dbg command to saga: ${l}`),e(x2.dbgCommand(n))):t==O.LivePerson?r(n.trim()):e(function(e,t,{attachments:r,channelData:n,value:o}={}){return{type:b2,payload:{attachments:r,channelData:n,method:t,text:e,value:o}}}(n,o,{channelData:{...i,pageUrl:window.location.href},value:a})),!0}return!1}catch(s){return XW(sT,s),!1}},sendMessageBackWithTelemetry:(t,r,n="")=>!!t.trim()&&(e(function(e,t,r){return{type:w2,payload:{displayText:r,text:t,value:e}}}(t,r,n)),e(_2.logTelemetry("MessageSentBack")),!0),sendMessageToLivePerson:r}},A2="ai-chat-drawer",P2={FOOTNOTE_LINK:"Footnote link",THUMBS_UP:"Thumbs Up",THUMBS_DOWN:"Thumbs Down",AI_CHAT_LINK:"AI Chat Link",FREEFORM_PROMPT_SUBMIT:"Freeform Prompt Submit",PROMPT_BUTTON:"Prompt Button",CANNED_PROMPT_SUBMIT:"Canned Prompt Submit",WELCOME_MESSAGE_LINK:"welcome-message-link",PRIVACY_LINK_TEXT:"Privacy Statement",SUBMIT:"Submit",CHECKBOX:"Checkbox",CLOSEX:"Close X",STARS:"Stars",EXPAND:"Expand",COLLAPSE:"Collapse"},I2={AI_ASSISTANT:"AI assistant",UCA_CHAT_BUTTON:"UCA Chat Button",UCA_WELCOME_MESSAGE_LINK:"uca-welcome-message-link",HIDE_CHAT:"Hide AI chat",SHOW_CHAT:"Show AI Chat"},B2={SURVEY_COMPLETE:"Survey Complete",END_LIVE_CHAT:"End Live Chat",AI_ASSISTANT_LOAD:"AI Assistant Load",CHAT_WITH_SALES:"Chat with Sales"},N2={AI_CHAT_DRAWER:"AI Chat Drawer"},D2={AI_POWERED_ASSISTANT:"AI-Powered Assistant",SUBMIT:"Tell us about your experience."},z2={CLOSE_AI_CHAT:"Close AI Chat",SHOW_AI_CHAT:"Show AI Chat",PROMPT_SUBMIT:"Prompt Submit"},O2={SUBMIT:"1"},R2={FEEDBACK_INTERACTION:140,SURVEY_INITIATE:"141",SURVEY_COMPLETE:"142",CHAT_TOGGLE:14,CHAT_CLOSE:15,CHAT_OPEN:14,CHAT_END:181,CHAT_INITIATE:180,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"},M2={AI_CHAT_DRAWER:"AI assistant | AI Chat Drawer"},j2={SIGNUP:"signup"},L2={WELCOME:"welcome",FOOTNOTE:"footnote",PRIVACY:"privacy",OPENAPP:"openapp"};function F2(e,t){try{return e()}catch{return t}}const V2={dataBiCompnm:I2.AI_ASSISTANT,dataBiView:M2.AI_CHAT_DRAWER,dataBiHn:D2.AI_POWERED_ASSISTANT,dataBiEhn:D2.AI_POWERED_ASSISTANT,dataBiAn:N2.AI_CHAT_DRAWER};function q2(e){return{...V2,...e}}const H2={[L2.WELCOME]:{decoration:q2({dataBiCt:P2.AI_CHAT_LINK,dataBiBhvr:R2.WELCOME_LINK_BHVR}),contentGenerator:(e,t,r)=>({dataBiCn:e?.title||t||r?.toString()||"1",dataBiEcn:e?.title||t||r?.toString()||"1"})},[L2.OPENAPP]:{decoration:q2({dataBiCt:P2.AI_CHAT_LINK,dataBiBhvr:R2.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"})},[L2.FOOTNOTE]:{decoration:q2({dataBiCt:P2.FOOTNOTE_LINK,dataBiBhvr:R2.FOOTNOTE_LINK_BHVR}),contentGenerator:(e,t,r,n)=>({dataBiCn:r?.toString()||"1",dataBiEcn:r?.toString()||"1"})},[L2.PRIVACY]:{decoration:q2({dataBiCt:P2.FOOTNOTE_LINK,dataBiBhvr:"0"}),contentGenerator:(e,t,r)=>({dataBiCn:r?.toString()||"1",dataBiEcn:r?.toString()||"1"})}};function U2(e,t=!1){if(t)return H2[L2.PRIVACY];e&&!function(e){if(!e)return!1;const t=Object.values(L2),r=t.includes(e);return r||z.errorWithKind("DataBiTagDecorator",`Unsupported decorator type: '${e}'. Valid types are: ${t.join(", ")}`),r}(e)&&(e=void 0);const r=e||L2.FOOTNOTE;return H2[r]}class W2{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 W2(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class $2{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 $2(t,W2.range(this,e))}}class G2{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__=G2.prototype,l.position=r,null!=r&&null!=n&&(l.length=n-r),l.rawMessage=e,l}}G2.prototype.__proto__=Error.prototype;var Y2=/([A-Z])/g,K2={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},J2=/[&><"']/g;var X2=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},Q2={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(J2,e=>K2[e])},hyphenate:function(e){return e.replace(Y2,"-$1").toLowerCase()},getBaseElem:X2,isCharacterBox:function(e){var t=X2(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"}},Z2={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 e5(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 t5{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||{},Z2)if(Z2.hasOwnProperty(t)){var r=Z2[t];this[t]=void 0!==e[t]?r.processor?r.processor(e[t]):e[t]:e5(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 G2("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=Q2.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 r5{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 n5[o5[this.id]]}sub(){return n5[i5[this.id]]}fracNum(){return n5[a5[this.id]]}fracDen(){return n5[s5[this.id]]}cramp(){return n5[l5[this.id]]}text(){return n5[c5[this.id]]}isTight(){return this.size>=2}}var n5=[new r5(0,0,!1),new r5(1,0,!0),new r5(2,1,!1),new r5(3,1,!0),new r5(4,2,!1),new r5(5,2,!0),new r5(6,3,!1),new r5(7,3,!0)],o5=[4,5,4,5,6,7,6,7],i5=[5,5,5,5,7,7,7,7],a5=[2,3,4,5,6,7,6,7],s5=[3,3,5,5,7,7,7,7],l5=[1,1,3,3,5,5,7,7],c5=[0,1,2,3,2,3,2,3],u5={DISPLAY:n5[0],TEXT:n5[2],SCRIPT:n5[4],SCRIPTSCRIPT:n5[6]},d5=[{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 f5=[];function h5(e){for(var t=0;t<f5.length;t+=2)if(e>=f5[t]&&e<=f5[t+1])return!0;return!1}d5.forEach(e=>e.blocks.forEach(e=>f5.push(...e)));var p5=80,m5={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 g5{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 Q2.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 v5={"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]}},y5={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]},b5={"Å":"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 w5(e,t,r){if(!v5[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),o=v5[t][n];if(!o&&e[0]in b5&&(n=b5[e[0]].charCodeAt(0),o=v5[t][n]),o||"text"!==r||h5(n)&&(o=v5[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var x5={};var k5=[[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]],S5=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],_5=function(e,t){return t.size<2?e:k5[e-1][t.size-1]};class C5{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||C5.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=S5[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 C5(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:_5(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:S5[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=_5(C5.BASESIZE,e);return this.size===t&&this.textSize===C5.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!==C5.BASESIZE?["sizing","reset-size"+this.size,"size"+C5.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!x5[t=e>=5?0:e>=3?1:2]){var r=x5[t]={cssEmPerMu:y5.quad[t]/18};for(var n in y5)y5.hasOwnProperty(n)&&(r[n]=y5[n][t])}return x5[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}C5.BASESIZE=6;var T5={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},E5={ex:!0,em:!0,mu:!0},A5=function(e){return"string"!=typeof e&&(e=e.unit),e in T5||e in E5||"ex"===e},P5=function(e,t){var r;if(e.unit in T5)r=T5[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 G2("Invalid unit: '"+e.unit+"'");r=n.fontMetrics().quad}n!==t&&(r*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},I5=function(e){return+e.toFixed(4)+"em"},B5=function(e){return e.filter(e=>e).join(" ")},N5=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)}},D5=function(e){var t=document.createElement(e);for(var r in t.className=B5(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},z5=/[\s"'>/=\x00-\x1f]/,O5=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+Q2.escape(B5(this.classes))+'"');var r="";for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=Q2.hyphenate(n)+":"+this.style[n]+";");for(var o in r&&(t+=' style="'+Q2.escape(r)+'"'),this.attributes)if(this.attributes.hasOwnProperty(o)){if(z5.test(o))throw new G2("Invalid attribute name '"+o+"'");t+=" "+o+'="'+Q2.escape(this.attributes[o])+'"'}t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+e+">"};class R5{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,N5.call(this,e,r,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return Q2.contains(this.classes,e)}toNode(){return D5.call(this,"span")}toMarkup(){return O5.call(this,"span")}}class M5{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,N5.call(this,t,n),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return Q2.contains(this.classes,e)}toNode(){return D5.call(this,"a")}toMarkup(){return O5.call(this,"a")}}class j5{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 Q2.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="'+Q2.escape(this.src)+'" alt="'+Q2.escape(this.alt)+'"',t="";for(var r in this.style)this.style.hasOwnProperty(r)&&(t+=Q2.hyphenate(r)+":"+this.style[r]+";");return t&&(e+=' style="'+Q2.escape(t)+'"'),e+="'/>"}}var L5={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"};class F5{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<d5.length;t++)for(var r=d5[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=L5[this.text])}hasClass(e){return Q2.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=I5(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=B5(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+=Q2.escape(B5(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+=Q2.hyphenate(n)+":"+this.style[n]+";");r&&(e=!0,t+=' style="'+Q2.escape(r)+'"');var o=Q2.escape(this.text);return e?(t+=">",t+=o,t+="</span>"):o}}class V5{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+'="'+Q2.escape(this.attributes[t])+'"');e+=">";for(var r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e+="</svg>"}}class q5{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",m5[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+Q2.escape(this.alternate)+'"/>':'<path d="'+Q2.escape(m5[this.pathName])+'"/>'}}class H5{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+'="'+Q2.escape(this.attributes[t])+'"');return e+="/>"}}function U5(e){if(e instanceof F5)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var W5={bin:1,close:1,inner:1,open:1,punct:1,rel:1},$5={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},G5={math:{},text:{}};function Y5(e,t,r,n,o,i){G5[e][o]={font:t,group:r,replace:n},i&&n&&(G5[e][n]=G5[e][o])}var K5="math",J5="text",X5="main",Q5="ams",Z5="accent-token",e3="bin",t3="close",r3="inner",n3="mathord",o3="op-token",i3="open",a3="punct",s3="rel",l3="spacing",c3="textord";Y5(K5,X5,s3,"≡","\\equiv",!0),Y5(K5,X5,s3,"≺","\\prec",!0),Y5(K5,X5,s3,"≻","\\succ",!0),Y5(K5,X5,s3,"∼","\\sim",!0),Y5(K5,X5,s3,"⊥","\\perp"),Y5(K5,X5,s3,"⪯","\\preceq",!0),Y5(K5,X5,s3,"⪰","\\succeq",!0),Y5(K5,X5,s3,"≃","\\simeq",!0),Y5(K5,X5,s3,"∣","\\mid",!0),Y5(K5,X5,s3,"≪","\\ll",!0),Y5(K5,X5,s3,"≫","\\gg",!0),Y5(K5,X5,s3,"≍","\\asymp",!0),Y5(K5,X5,s3,"∥","\\parallel"),Y5(K5,X5,s3,"⋈","\\bowtie",!0),Y5(K5,X5,s3,"⌣","\\smile",!0),Y5(K5,X5,s3,"⊑","\\sqsubseteq",!0),Y5(K5,X5,s3,"⊒","\\sqsupseteq",!0),Y5(K5,X5,s3,"≐","\\doteq",!0),Y5(K5,X5,s3,"⌢","\\frown",!0),Y5(K5,X5,s3,"∋","\\ni",!0),Y5(K5,X5,s3,"∝","\\propto",!0),Y5(K5,X5,s3,"⊢","\\vdash",!0),Y5(K5,X5,s3,"⊣","\\dashv",!0),Y5(K5,X5,s3,"∋","\\owns"),Y5(K5,X5,a3,".","\\ldotp"),Y5(K5,X5,a3,"⋅","\\cdotp"),Y5(K5,X5,c3,"#","\\#"),Y5(J5,X5,c3,"#","\\#"),Y5(K5,X5,c3,"&","\\&"),Y5(J5,X5,c3,"&","\\&"),Y5(K5,X5,c3,"ℵ","\\aleph",!0),Y5(K5,X5,c3,"∀","\\forall",!0),Y5(K5,X5,c3,"ℏ","\\hbar",!0),Y5(K5,X5,c3,"∃","\\exists",!0),Y5(K5,X5,c3,"∇","\\nabla",!0),Y5(K5,X5,c3,"♭","\\flat",!0),Y5(K5,X5,c3,"ℓ","\\ell",!0),Y5(K5,X5,c3,"♮","\\natural",!0),Y5(K5,X5,c3,"♣","\\clubsuit",!0),Y5(K5,X5,c3,"℘","\\wp",!0),Y5(K5,X5,c3,"♯","\\sharp",!0),Y5(K5,X5,c3,"♢","\\diamondsuit",!0),Y5(K5,X5,c3,"ℜ","\\Re",!0),Y5(K5,X5,c3,"♡","\\heartsuit",!0),Y5(K5,X5,c3,"ℑ","\\Im",!0),Y5(K5,X5,c3,"♠","\\spadesuit",!0),Y5(K5,X5,c3,"§","\\S",!0),Y5(J5,X5,c3,"§","\\S"),Y5(K5,X5,c3,"¶","\\P",!0),Y5(J5,X5,c3,"¶","\\P"),Y5(K5,X5,c3,"†","\\dag"),Y5(J5,X5,c3,"†","\\dag"),Y5(J5,X5,c3,"†","\\textdagger"),Y5(K5,X5,c3,"‡","\\ddag"),Y5(J5,X5,c3,"‡","\\ddag"),Y5(J5,X5,c3,"‡","\\textdaggerdbl"),Y5(K5,X5,t3,"⎱","\\rmoustache",!0),Y5(K5,X5,i3,"⎰","\\lmoustache",!0),Y5(K5,X5,t3,"⟯","\\rgroup",!0),Y5(K5,X5,i3,"⟮","\\lgroup",!0),Y5(K5,X5,e3,"∓","\\mp",!0),Y5(K5,X5,e3,"⊖","\\ominus",!0),Y5(K5,X5,e3,"⊎","\\uplus",!0),Y5(K5,X5,e3,"⊓","\\sqcap",!0),Y5(K5,X5,e3,"∗","\\ast"),Y5(K5,X5,e3,"⊔","\\sqcup",!0),Y5(K5,X5,e3,"◯","\\bigcirc",!0),Y5(K5,X5,e3,"∙","\\bullet",!0),Y5(K5,X5,e3,"‡","\\ddagger"),Y5(K5,X5,e3,"≀","\\wr",!0),Y5(K5,X5,e3,"⨿","\\amalg"),Y5(K5,X5,e3,"&","\\And"),Y5(K5,X5,s3,"⟵","\\longleftarrow",!0),Y5(K5,X5,s3,"⇐","\\Leftarrow",!0),Y5(K5,X5,s3,"⟸","\\Longleftarrow",!0),Y5(K5,X5,s3,"⟶","\\longrightarrow",!0),Y5(K5,X5,s3,"⇒","\\Rightarrow",!0),Y5(K5,X5,s3,"⟹","\\Longrightarrow",!0),Y5(K5,X5,s3,"↔","\\leftrightarrow",!0),Y5(K5,X5,s3,"⟷","\\longleftrightarrow",!0),Y5(K5,X5,s3,"⇔","\\Leftrightarrow",!0),Y5(K5,X5,s3,"⟺","\\Longleftrightarrow",!0),Y5(K5,X5,s3,"↦","\\mapsto",!0),Y5(K5,X5,s3,"⟼","\\longmapsto",!0),Y5(K5,X5,s3,"↗","\\nearrow",!0),Y5(K5,X5,s3,"↩","\\hookleftarrow",!0),Y5(K5,X5,s3,"↪","\\hookrightarrow",!0),Y5(K5,X5,s3,"↘","\\searrow",!0),Y5(K5,X5,s3,"↼","\\leftharpoonup",!0),Y5(K5,X5,s3,"⇀","\\rightharpoonup",!0),Y5(K5,X5,s3,"↙","\\swarrow",!0),Y5(K5,X5,s3,"↽","\\leftharpoondown",!0),Y5(K5,X5,s3,"⇁","\\rightharpoondown",!0),Y5(K5,X5,s3,"↖","\\nwarrow",!0),Y5(K5,X5,s3,"⇌","\\rightleftharpoons",!0),Y5(K5,Q5,s3,"≮","\\nless",!0),Y5(K5,Q5,s3,"","\\@nleqslant"),Y5(K5,Q5,s3,"","\\@nleqq"),Y5(K5,Q5,s3,"⪇","\\lneq",!0),Y5(K5,Q5,s3,"≨","\\lneqq",!0),Y5(K5,Q5,s3,"","\\@lvertneqq"),Y5(K5,Q5,s3,"⋦","\\lnsim",!0),Y5(K5,Q5,s3,"⪉","\\lnapprox",!0),Y5(K5,Q5,s3,"⊀","\\nprec",!0),Y5(K5,Q5,s3,"⋠","\\npreceq",!0),Y5(K5,Q5,s3,"⋨","\\precnsim",!0),Y5(K5,Q5,s3,"⪹","\\precnapprox",!0),Y5(K5,Q5,s3,"≁","\\nsim",!0),Y5(K5,Q5,s3,"","\\@nshortmid"),Y5(K5,Q5,s3,"∤","\\nmid",!0),Y5(K5,Q5,s3,"⊬","\\nvdash",!0),Y5(K5,Q5,s3,"⊭","\\nvDash",!0),Y5(K5,Q5,s3,"⋪","\\ntriangleleft"),Y5(K5,Q5,s3,"⋬","\\ntrianglelefteq",!0),Y5(K5,Q5,s3,"⊊","\\subsetneq",!0),Y5(K5,Q5,s3,"","\\@varsubsetneq"),Y5(K5,Q5,s3,"⫋","\\subsetneqq",!0),Y5(K5,Q5,s3,"","\\@varsubsetneqq"),Y5(K5,Q5,s3,"≯","\\ngtr",!0),Y5(K5,Q5,s3,"","\\@ngeqslant"),Y5(K5,Q5,s3,"","\\@ngeqq"),Y5(K5,Q5,s3,"⪈","\\gneq",!0),Y5(K5,Q5,s3,"≩","\\gneqq",!0),Y5(K5,Q5,s3,"","\\@gvertneqq"),Y5(K5,Q5,s3,"⋧","\\gnsim",!0),Y5(K5,Q5,s3,"⪊","\\gnapprox",!0),Y5(K5,Q5,s3,"⊁","\\nsucc",!0),Y5(K5,Q5,s3,"⋡","\\nsucceq",!0),Y5(K5,Q5,s3,"⋩","\\succnsim",!0),Y5(K5,Q5,s3,"⪺","\\succnapprox",!0),Y5(K5,Q5,s3,"≆","\\ncong",!0),Y5(K5,Q5,s3,"","\\@nshortparallel"),Y5(K5,Q5,s3,"∦","\\nparallel",!0),Y5(K5,Q5,s3,"⊯","\\nVDash",!0),Y5(K5,Q5,s3,"⋫","\\ntriangleright"),Y5(K5,Q5,s3,"⋭","\\ntrianglerighteq",!0),Y5(K5,Q5,s3,"","\\@nsupseteqq"),Y5(K5,Q5,s3,"⊋","\\supsetneq",!0),Y5(K5,Q5,s3,"","\\@varsupsetneq"),Y5(K5,Q5,s3,"⫌","\\supsetneqq",!0),Y5(K5,Q5,s3,"","\\@varsupsetneqq"),Y5(K5,Q5,s3,"⊮","\\nVdash",!0),Y5(K5,Q5,s3,"⪵","\\precneqq",!0),Y5(K5,Q5,s3,"⪶","\\succneqq",!0),Y5(K5,Q5,s3,"","\\@nsubseteqq"),Y5(K5,Q5,e3,"⊴","\\unlhd"),Y5(K5,Q5,e3,"⊵","\\unrhd"),Y5(K5,Q5,s3,"↚","\\nleftarrow",!0),Y5(K5,Q5,s3,"↛","\\nrightarrow",!0),Y5(K5,Q5,s3,"⇍","\\nLeftarrow",!0),Y5(K5,Q5,s3,"⇏","\\nRightarrow",!0),Y5(K5,Q5,s3,"↮","\\nleftrightarrow",!0),Y5(K5,Q5,s3,"⇎","\\nLeftrightarrow",!0),Y5(K5,Q5,s3,"△","\\vartriangle"),Y5(K5,Q5,c3,"ℏ","\\hslash"),Y5(K5,Q5,c3,"▽","\\triangledown"),Y5(K5,Q5,c3,"◊","\\lozenge"),Y5(K5,Q5,c3,"Ⓢ","\\circledS"),Y5(K5,Q5,c3,"®","\\circledR"),Y5(J5,Q5,c3,"®","\\circledR"),Y5(K5,Q5,c3,"∡","\\measuredangle",!0),Y5(K5,Q5,c3,"∄","\\nexists"),Y5(K5,Q5,c3,"℧","\\mho"),Y5(K5,Q5,c3,"Ⅎ","\\Finv",!0),Y5(K5,Q5,c3,"⅁","\\Game",!0),Y5(K5,Q5,c3,"‵","\\backprime"),Y5(K5,Q5,c3,"▲","\\blacktriangle"),Y5(K5,Q5,c3,"▼","\\blacktriangledown"),Y5(K5,Q5,c3,"■","\\blacksquare"),Y5(K5,Q5,c3,"⧫","\\blacklozenge"),Y5(K5,Q5,c3,"★","\\bigstar"),Y5(K5,Q5,c3,"∢","\\sphericalangle",!0),Y5(K5,Q5,c3,"∁","\\complement",!0),Y5(K5,Q5,c3,"ð","\\eth",!0),Y5(J5,X5,c3,"ð","ð"),Y5(K5,Q5,c3,"╱","\\diagup"),Y5(K5,Q5,c3,"╲","\\diagdown"),Y5(K5,Q5,c3,"□","\\square"),Y5(K5,Q5,c3,"□","\\Box"),Y5(K5,Q5,c3,"◊","\\Diamond"),Y5(K5,Q5,c3,"¥","\\yen",!0),Y5(J5,Q5,c3,"¥","\\yen",!0),Y5(K5,Q5,c3,"✓","\\checkmark",!0),Y5(J5,Q5,c3,"✓","\\checkmark"),Y5(K5,Q5,c3,"ℶ","\\beth",!0),Y5(K5,Q5,c3,"ℸ","\\daleth",!0),Y5(K5,Q5,c3,"ℷ","\\gimel",!0),Y5(K5,Q5,c3,"ϝ","\\digamma",!0),Y5(K5,Q5,c3,"ϰ","\\varkappa"),Y5(K5,Q5,i3,"┌","\\@ulcorner",!0),Y5(K5,Q5,t3,"┐","\\@urcorner",!0),Y5(K5,Q5,i3,"└","\\@llcorner",!0),Y5(K5,Q5,t3,"┘","\\@lrcorner",!0),Y5(K5,Q5,s3,"≦","\\leqq",!0),Y5(K5,Q5,s3,"⩽","\\leqslant",!0),Y5(K5,Q5,s3,"⪕","\\eqslantless",!0),Y5(K5,Q5,s3,"≲","\\lesssim",!0),Y5(K5,Q5,s3,"⪅","\\lessapprox",!0),Y5(K5,Q5,s3,"≊","\\approxeq",!0),Y5(K5,Q5,e3,"⋖","\\lessdot"),Y5(K5,Q5,s3,"⋘","\\lll",!0),Y5(K5,Q5,s3,"≶","\\lessgtr",!0),Y5(K5,Q5,s3,"⋚","\\lesseqgtr",!0),Y5(K5,Q5,s3,"⪋","\\lesseqqgtr",!0),Y5(K5,Q5,s3,"≑","\\doteqdot"),Y5(K5,Q5,s3,"≓","\\risingdotseq",!0),Y5(K5,Q5,s3,"≒","\\fallingdotseq",!0),Y5(K5,Q5,s3,"∽","\\backsim",!0),Y5(K5,Q5,s3,"⋍","\\backsimeq",!0),Y5(K5,Q5,s3,"⫅","\\subseteqq",!0),Y5(K5,Q5,s3,"⋐","\\Subset",!0),Y5(K5,Q5,s3,"⊏","\\sqsubset",!0),Y5(K5,Q5,s3,"≼","\\preccurlyeq",!0),Y5(K5,Q5,s3,"⋞","\\curlyeqprec",!0),Y5(K5,Q5,s3,"≾","\\precsim",!0),Y5(K5,Q5,s3,"⪷","\\precapprox",!0),Y5(K5,Q5,s3,"⊲","\\vartriangleleft"),Y5(K5,Q5,s3,"⊴","\\trianglelefteq"),Y5(K5,Q5,s3,"⊨","\\vDash",!0),Y5(K5,Q5,s3,"⊪","\\Vvdash",!0),Y5(K5,Q5,s3,"⌣","\\smallsmile"),Y5(K5,Q5,s3,"⌢","\\smallfrown"),Y5(K5,Q5,s3,"≏","\\bumpeq",!0),Y5(K5,Q5,s3,"≎","\\Bumpeq",!0),Y5(K5,Q5,s3,"≧","\\geqq",!0),Y5(K5,Q5,s3,"⩾","\\geqslant",!0),Y5(K5,Q5,s3,"⪖","\\eqslantgtr",!0),Y5(K5,Q5,s3,"≳","\\gtrsim",!0),Y5(K5,Q5,s3,"⪆","\\gtrapprox",!0),Y5(K5,Q5,e3,"⋗","\\gtrdot"),Y5(K5,Q5,s3,"⋙","\\ggg",!0),Y5(K5,Q5,s3,"≷","\\gtrless",!0),Y5(K5,Q5,s3,"⋛","\\gtreqless",!0),Y5(K5,Q5,s3,"⪌","\\gtreqqless",!0),Y5(K5,Q5,s3,"≖","\\eqcirc",!0),Y5(K5,Q5,s3,"≗","\\circeq",!0),Y5(K5,Q5,s3,"≜","\\triangleq",!0),Y5(K5,Q5,s3,"∼","\\thicksim"),Y5(K5,Q5,s3,"≈","\\thickapprox"),Y5(K5,Q5,s3,"⫆","\\supseteqq",!0),Y5(K5,Q5,s3,"⋑","\\Supset",!0),Y5(K5,Q5,s3,"⊐","\\sqsupset",!0),Y5(K5,Q5,s3,"≽","\\succcurlyeq",!0),Y5(K5,Q5,s3,"⋟","\\curlyeqsucc",!0),Y5(K5,Q5,s3,"≿","\\succsim",!0),Y5(K5,Q5,s3,"⪸","\\succapprox",!0),Y5(K5,Q5,s3,"⊳","\\vartriangleright"),Y5(K5,Q5,s3,"⊵","\\trianglerighteq"),Y5(K5,Q5,s3,"⊩","\\Vdash",!0),Y5(K5,Q5,s3,"∣","\\shortmid"),Y5(K5,Q5,s3,"∥","\\shortparallel"),Y5(K5,Q5,s3,"≬","\\between",!0),Y5(K5,Q5,s3,"⋔","\\pitchfork",!0),Y5(K5,Q5,s3,"∝","\\varpropto"),Y5(K5,Q5,s3,"◀","\\blacktriangleleft"),Y5(K5,Q5,s3,"∴","\\therefore",!0),Y5(K5,Q5,s3,"∍","\\backepsilon"),Y5(K5,Q5,s3,"▶","\\blacktriangleright"),Y5(K5,Q5,s3,"∵","\\because",!0),Y5(K5,Q5,s3,"⋘","\\llless"),Y5(K5,Q5,s3,"⋙","\\gggtr"),Y5(K5,Q5,e3,"⊲","\\lhd"),Y5(K5,Q5,e3,"⊳","\\rhd"),Y5(K5,Q5,s3,"≂","\\eqsim",!0),Y5(K5,X5,s3,"⋈","\\Join"),Y5(K5,Q5,s3,"≑","\\Doteq",!0),Y5(K5,Q5,e3,"∔","\\dotplus",!0),Y5(K5,Q5,e3,"∖","\\smallsetminus"),Y5(K5,Q5,e3,"⋒","\\Cap",!0),Y5(K5,Q5,e3,"⋓","\\Cup",!0),Y5(K5,Q5,e3,"⩞","\\doublebarwedge",!0),Y5(K5,Q5,e3,"⊟","\\boxminus",!0),Y5(K5,Q5,e3,"⊞","\\boxplus",!0),Y5(K5,Q5,e3,"⋇","\\divideontimes",!0),Y5(K5,Q5,e3,"⋉","\\ltimes",!0),Y5(K5,Q5,e3,"⋊","\\rtimes",!0),Y5(K5,Q5,e3,"⋋","\\leftthreetimes",!0),Y5(K5,Q5,e3,"⋌","\\rightthreetimes",!0),Y5(K5,Q5,e3,"⋏","\\curlywedge",!0),Y5(K5,Q5,e3,"⋎","\\curlyvee",!0),Y5(K5,Q5,e3,"⊝","\\circleddash",!0),Y5(K5,Q5,e3,"⊛","\\circledast",!0),Y5(K5,Q5,e3,"⋅","\\centerdot"),Y5(K5,Q5,e3,"⊺","\\intercal",!0),Y5(K5,Q5,e3,"⋒","\\doublecap"),Y5(K5,Q5,e3,"⋓","\\doublecup"),Y5(K5,Q5,e3,"⊠","\\boxtimes",!0),Y5(K5,Q5,s3,"⇢","\\dashrightarrow",!0),Y5(K5,Q5,s3,"⇠","\\dashleftarrow",!0),Y5(K5,Q5,s3,"⇇","\\leftleftarrows",!0),Y5(K5,Q5,s3,"⇆","\\leftrightarrows",!0),Y5(K5,Q5,s3,"⇚","\\Lleftarrow",!0),Y5(K5,Q5,s3,"↞","\\twoheadleftarrow",!0),Y5(K5,Q5,s3,"↢","\\leftarrowtail",!0),Y5(K5,Q5,s3,"↫","\\looparrowleft",!0),Y5(K5,Q5,s3,"⇋","\\leftrightharpoons",!0),Y5(K5,Q5,s3,"↶","\\curvearrowleft",!0),Y5(K5,Q5,s3,"↺","\\circlearrowleft",!0),Y5(K5,Q5,s3,"↰","\\Lsh",!0),Y5(K5,Q5,s3,"⇈","\\upuparrows",!0),Y5(K5,Q5,s3,"↿","\\upharpoonleft",!0),Y5(K5,Q5,s3,"⇃","\\downharpoonleft",!0),Y5(K5,X5,s3,"⊶","\\origof",!0),Y5(K5,X5,s3,"⊷","\\imageof",!0),Y5(K5,Q5,s3,"⊸","\\multimap",!0),Y5(K5,Q5,s3,"↭","\\leftrightsquigarrow",!0),Y5(K5,Q5,s3,"⇉","\\rightrightarrows",!0),Y5(K5,Q5,s3,"⇄","\\rightleftarrows",!0),Y5(K5,Q5,s3,"↠","\\twoheadrightarrow",!0),Y5(K5,Q5,s3,"↣","\\rightarrowtail",!0),Y5(K5,Q5,s3,"↬","\\looparrowright",!0),Y5(K5,Q5,s3,"↷","\\curvearrowright",!0),Y5(K5,Q5,s3,"↻","\\circlearrowright",!0),Y5(K5,Q5,s3,"↱","\\Rsh",!0),Y5(K5,Q5,s3,"⇊","\\downdownarrows",!0),Y5(K5,Q5,s3,"↾","\\upharpoonright",!0),Y5(K5,Q5,s3,"⇂","\\downharpoonright",!0),Y5(K5,Q5,s3,"⇝","\\rightsquigarrow",!0),Y5(K5,Q5,s3,"⇝","\\leadsto"),Y5(K5,Q5,s3,"⇛","\\Rrightarrow",!0),Y5(K5,Q5,s3,"↾","\\restriction"),Y5(K5,X5,c3,"‘","`"),Y5(K5,X5,c3,"$","\\$"),Y5(J5,X5,c3,"$","\\$"),Y5(J5,X5,c3,"$","\\textdollar"),Y5(K5,X5,c3,"%","\\%"),Y5(J5,X5,c3,"%","\\%"),Y5(K5,X5,c3,"_","\\_"),Y5(J5,X5,c3,"_","\\_"),Y5(J5,X5,c3,"_","\\textunderscore"),Y5(K5,X5,c3,"∠","\\angle",!0),Y5(K5,X5,c3,"∞","\\infty",!0),Y5(K5,X5,c3,"′","\\prime"),Y5(K5,X5,c3,"△","\\triangle"),Y5(K5,X5,c3,"Γ","\\Gamma",!0),Y5(K5,X5,c3,"Δ","\\Delta",!0),Y5(K5,X5,c3,"Θ","\\Theta",!0),Y5(K5,X5,c3,"Λ","\\Lambda",!0),Y5(K5,X5,c3,"Ξ","\\Xi",!0),Y5(K5,X5,c3,"Π","\\Pi",!0),Y5(K5,X5,c3,"Σ","\\Sigma",!0),Y5(K5,X5,c3,"Υ","\\Upsilon",!0),Y5(K5,X5,c3,"Φ","\\Phi",!0),Y5(K5,X5,c3,"Ψ","\\Psi",!0),Y5(K5,X5,c3,"Ω","\\Omega",!0),Y5(K5,X5,c3,"A","Α"),Y5(K5,X5,c3,"B","Β"),Y5(K5,X5,c3,"E","Ε"),Y5(K5,X5,c3,"Z","Ζ"),Y5(K5,X5,c3,"H","Η"),Y5(K5,X5,c3,"I","Ι"),Y5(K5,X5,c3,"K","Κ"),Y5(K5,X5,c3,"M","Μ"),Y5(K5,X5,c3,"N","Ν"),Y5(K5,X5,c3,"O","Ο"),Y5(K5,X5,c3,"P","Ρ"),Y5(K5,X5,c3,"T","Τ"),Y5(K5,X5,c3,"X","Χ"),Y5(K5,X5,c3,"¬","\\neg",!0),Y5(K5,X5,c3,"¬","\\lnot"),Y5(K5,X5,c3,"⊤","\\top"),Y5(K5,X5,c3,"⊥","\\bot"),Y5(K5,X5,c3,"∅","\\emptyset"),Y5(K5,Q5,c3,"∅","\\varnothing"),Y5(K5,X5,n3,"α","\\alpha",!0),Y5(K5,X5,n3,"β","\\beta",!0),Y5(K5,X5,n3,"γ","\\gamma",!0),Y5(K5,X5,n3,"δ","\\delta",!0),Y5(K5,X5,n3,"ϵ","\\epsilon",!0),Y5(K5,X5,n3,"ζ","\\zeta",!0),Y5(K5,X5,n3,"η","\\eta",!0),Y5(K5,X5,n3,"θ","\\theta",!0),Y5(K5,X5,n3,"ι","\\iota",!0),Y5(K5,X5,n3,"κ","\\kappa",!0),Y5(K5,X5,n3,"λ","\\lambda",!0),Y5(K5,X5,n3,"μ","\\mu",!0),Y5(K5,X5,n3,"ν","\\nu",!0),Y5(K5,X5,n3,"ξ","\\xi",!0),Y5(K5,X5,n3,"ο","\\omicron",!0),Y5(K5,X5,n3,"π","\\pi",!0),Y5(K5,X5,n3,"ρ","\\rho",!0),Y5(K5,X5,n3,"σ","\\sigma",!0),Y5(K5,X5,n3,"τ","\\tau",!0),Y5(K5,X5,n3,"υ","\\upsilon",!0),Y5(K5,X5,n3,"ϕ","\\phi",!0),Y5(K5,X5,n3,"χ","\\chi",!0),Y5(K5,X5,n3,"ψ","\\psi",!0),Y5(K5,X5,n3,"ω","\\omega",!0),Y5(K5,X5,n3,"ε","\\varepsilon",!0),Y5(K5,X5,n3,"ϑ","\\vartheta",!0),Y5(K5,X5,n3,"ϖ","\\varpi",!0),Y5(K5,X5,n3,"ϱ","\\varrho",!0),Y5(K5,X5,n3,"ς","\\varsigma",!0),Y5(K5,X5,n3,"φ","\\varphi",!0),Y5(K5,X5,e3,"∗","*",!0),Y5(K5,X5,e3,"+","+"),Y5(K5,X5,e3,"−","-",!0),Y5(K5,X5,e3,"⋅","\\cdot",!0),Y5(K5,X5,e3,"∘","\\circ",!0),Y5(K5,X5,e3,"÷","\\div",!0),Y5(K5,X5,e3,"±","\\pm",!0),Y5(K5,X5,e3,"×","\\times",!0),Y5(K5,X5,e3,"∩","\\cap",!0),Y5(K5,X5,e3,"∪","\\cup",!0),Y5(K5,X5,e3,"∖","\\setminus",!0),Y5(K5,X5,e3,"∧","\\land"),Y5(K5,X5,e3,"∨","\\lor"),Y5(K5,X5,e3,"∧","\\wedge",!0),Y5(K5,X5,e3,"∨","\\vee",!0),Y5(K5,X5,c3,"√","\\surd"),Y5(K5,X5,i3,"⟨","\\langle",!0),Y5(K5,X5,i3,"∣","\\lvert"),Y5(K5,X5,i3,"∥","\\lVert"),Y5(K5,X5,t3,"?","?"),Y5(K5,X5,t3,"!","!"),Y5(K5,X5,t3,"⟩","\\rangle",!0),Y5(K5,X5,t3,"∣","\\rvert"),Y5(K5,X5,t3,"∥","\\rVert"),Y5(K5,X5,s3,"=","="),Y5(K5,X5,s3,":",":"),Y5(K5,X5,s3,"≈","\\approx",!0),Y5(K5,X5,s3,"≅","\\cong",!0),Y5(K5,X5,s3,"≥","\\ge"),Y5(K5,X5,s3,"≥","\\geq",!0),Y5(K5,X5,s3,"←","\\gets"),Y5(K5,X5,s3,">","\\gt",!0),Y5(K5,X5,s3,"∈","\\in",!0),Y5(K5,X5,s3,"","\\@not"),Y5(K5,X5,s3,"⊂","\\subset",!0),Y5(K5,X5,s3,"⊃","\\supset",!0),Y5(K5,X5,s3,"⊆","\\subseteq",!0),Y5(K5,X5,s3,"⊇","\\supseteq",!0),Y5(K5,Q5,s3,"⊈","\\nsubseteq",!0),Y5(K5,Q5,s3,"⊉","\\nsupseteq",!0),Y5(K5,X5,s3,"⊨","\\models"),Y5(K5,X5,s3,"←","\\leftarrow",!0),Y5(K5,X5,s3,"≤","\\le"),Y5(K5,X5,s3,"≤","\\leq",!0),Y5(K5,X5,s3,"<","\\lt",!0),Y5(K5,X5,s3,"→","\\rightarrow",!0),Y5(K5,X5,s3,"→","\\to"),Y5(K5,Q5,s3,"≱","\\ngeq",!0),Y5(K5,Q5,s3,"≰","\\nleq",!0),Y5(K5,X5,l3," ","\\ "),Y5(K5,X5,l3," ","\\space"),Y5(K5,X5,l3," ","\\nobreakspace"),Y5(J5,X5,l3," ","\\ "),Y5(J5,X5,l3," "," "),Y5(J5,X5,l3," ","\\space"),Y5(J5,X5,l3," ","\\nobreakspace"),Y5(K5,X5,l3,null,"\\nobreak"),Y5(K5,X5,l3,null,"\\allowbreak"),Y5(K5,X5,a3,",",","),Y5(K5,X5,a3,";",";"),Y5(K5,Q5,e3,"⊼","\\barwedge",!0),Y5(K5,Q5,e3,"⊻","\\veebar",!0),Y5(K5,X5,e3,"⊙","\\odot",!0),Y5(K5,X5,e3,"⊕","\\oplus",!0),Y5(K5,X5,e3,"⊗","\\otimes",!0),Y5(K5,X5,c3,"∂","\\partial",!0),Y5(K5,X5,e3,"⊘","\\oslash",!0),Y5(K5,Q5,e3,"⊚","\\circledcirc",!0),Y5(K5,Q5,e3,"⊡","\\boxdot",!0),Y5(K5,X5,e3,"△","\\bigtriangleup"),Y5(K5,X5,e3,"▽","\\bigtriangledown"),Y5(K5,X5,e3,"†","\\dagger"),Y5(K5,X5,e3,"⋄","\\diamond"),Y5(K5,X5,e3,"⋆","\\star"),Y5(K5,X5,e3,"◃","\\triangleleft"),Y5(K5,X5,e3,"▹","\\triangleright"),Y5(K5,X5,i3,"{","\\{"),Y5(J5,X5,c3,"{","\\{"),Y5(J5,X5,c3,"{","\\textbraceleft"),Y5(K5,X5,t3,"}","\\}"),Y5(J5,X5,c3,"}","\\}"),Y5(J5,X5,c3,"}","\\textbraceright"),Y5(K5,X5,i3,"{","\\lbrace"),Y5(K5,X5,t3,"}","\\rbrace"),Y5(K5,X5,i3,"[","\\lbrack",!0),Y5(J5,X5,c3,"[","\\lbrack",!0),Y5(K5,X5,t3,"]","\\rbrack",!0),Y5(J5,X5,c3,"]","\\rbrack",!0),Y5(K5,X5,i3,"(","\\lparen",!0),Y5(K5,X5,t3,")","\\rparen",!0),Y5(J5,X5,c3,"<","\\textless",!0),Y5(J5,X5,c3,">","\\textgreater",!0),Y5(K5,X5,i3,"⌊","\\lfloor",!0),Y5(K5,X5,t3,"⌋","\\rfloor",!0),Y5(K5,X5,i3,"⌈","\\lceil",!0),Y5(K5,X5,t3,"⌉","\\rceil",!0),Y5(K5,X5,c3,"\\","\\backslash"),Y5(K5,X5,c3,"∣","|"),Y5(K5,X5,c3,"∣","\\vert"),Y5(J5,X5,c3,"|","\\textbar",!0),Y5(K5,X5,c3,"∥","\\|"),Y5(K5,X5,c3,"∥","\\Vert"),Y5(J5,X5,c3,"∥","\\textbardbl"),Y5(J5,X5,c3,"~","\\textasciitilde"),Y5(J5,X5,c3,"\\","\\textbackslash"),Y5(J5,X5,c3,"^","\\textasciicircum"),Y5(K5,X5,s3,"↑","\\uparrow",!0),Y5(K5,X5,s3,"⇑","\\Uparrow",!0),Y5(K5,X5,s3,"↓","\\downarrow",!0),Y5(K5,X5,s3,"⇓","\\Downarrow",!0),Y5(K5,X5,s3,"↕","\\updownarrow",!0),Y5(K5,X5,s3,"⇕","\\Updownarrow",!0),Y5(K5,X5,o3,"∐","\\coprod"),Y5(K5,X5,o3,"⋁","\\bigvee"),Y5(K5,X5,o3,"⋀","\\bigwedge"),Y5(K5,X5,o3,"⨄","\\biguplus"),Y5(K5,X5,o3,"⋂","\\bigcap"),Y5(K5,X5,o3,"⋃","\\bigcup"),Y5(K5,X5,o3,"∫","\\int"),Y5(K5,X5,o3,"∫","\\intop"),Y5(K5,X5,o3,"∬","\\iint"),Y5(K5,X5,o3,"∭","\\iiint"),Y5(K5,X5,o3,"∏","\\prod"),Y5(K5,X5,o3,"∑","\\sum"),Y5(K5,X5,o3,"⨂","\\bigotimes"),Y5(K5,X5,o3,"⨁","\\bigoplus"),Y5(K5,X5,o3,"⨀","\\bigodot"),Y5(K5,X5,o3,"∮","\\oint"),Y5(K5,X5,o3,"∯","\\oiint"),Y5(K5,X5,o3,"∰","\\oiiint"),Y5(K5,X5,o3,"⨆","\\bigsqcup"),Y5(K5,X5,o3,"∫","\\smallint"),Y5(J5,X5,r3,"…","\\textellipsis"),Y5(K5,X5,r3,"…","\\mathellipsis"),Y5(J5,X5,r3,"…","\\ldots",!0),Y5(K5,X5,r3,"…","\\ldots",!0),Y5(K5,X5,r3,"⋯","\\@cdots",!0),Y5(K5,X5,r3,"⋱","\\ddots",!0),Y5(K5,X5,c3,"⋮","\\varvdots"),Y5(J5,X5,c3,"⋮","\\varvdots"),Y5(K5,X5,Z5,"ˊ","\\acute"),Y5(K5,X5,Z5,"ˋ","\\grave"),Y5(K5,X5,Z5,"¨","\\ddot"),Y5(K5,X5,Z5,"~","\\tilde"),Y5(K5,X5,Z5,"ˉ","\\bar"),Y5(K5,X5,Z5,"˘","\\breve"),Y5(K5,X5,Z5,"ˇ","\\check"),Y5(K5,X5,Z5,"^","\\hat"),Y5(K5,X5,Z5,"⃗","\\vec"),Y5(K5,X5,Z5,"˙","\\dot"),Y5(K5,X5,Z5,"˚","\\mathring"),Y5(K5,X5,n3,"","\\@imath"),Y5(K5,X5,n3,"","\\@jmath"),Y5(K5,X5,c3,"ı","ı"),Y5(K5,X5,c3,"ȷ","ȷ"),Y5(J5,X5,c3,"ı","\\i",!0),Y5(J5,X5,c3,"ȷ","\\j",!0),Y5(J5,X5,c3,"ß","\\ss",!0),Y5(J5,X5,c3,"æ","\\ae",!0),Y5(J5,X5,c3,"œ","\\oe",!0),Y5(J5,X5,c3,"ø","\\o",!0),Y5(J5,X5,c3,"Æ","\\AE",!0),Y5(J5,X5,c3,"Œ","\\OE",!0),Y5(J5,X5,c3,"Ø","\\O",!0),Y5(J5,X5,Z5,"ˊ","\\'"),Y5(J5,X5,Z5,"ˋ","\\`"),Y5(J5,X5,Z5,"ˆ","\\^"),Y5(J5,X5,Z5,"˜","\\~"),Y5(J5,X5,Z5,"ˉ","\\="),Y5(J5,X5,Z5,"˘","\\u"),Y5(J5,X5,Z5,"˙","\\."),Y5(J5,X5,Z5,"¸","\\c"),Y5(J5,X5,Z5,"˚","\\r"),Y5(J5,X5,Z5,"ˇ","\\v"),Y5(J5,X5,Z5,"¨",'\\"'),Y5(J5,X5,Z5,"˝","\\H"),Y5(J5,X5,Z5,"◯","\\textcircled");var u3={"--":!0,"---":!0,"``":!0,"''":!0};Y5(J5,X5,c3,"–","--",!0),Y5(J5,X5,c3,"–","\\textendash"),Y5(J5,X5,c3,"—","---",!0),Y5(J5,X5,c3,"—","\\textemdash"),Y5(J5,X5,c3,"‘","`",!0),Y5(J5,X5,c3,"‘","\\textquoteleft"),Y5(J5,X5,c3,"’","'",!0),Y5(J5,X5,c3,"’","\\textquoteright"),Y5(J5,X5,c3,"“","``",!0),Y5(J5,X5,c3,"“","\\textquotedblleft"),Y5(J5,X5,c3,"”","''",!0),Y5(J5,X5,c3,"”","\\textquotedblright"),Y5(K5,X5,c3,"°","\\degree",!0),Y5(J5,X5,c3,"°","\\degree"),Y5(J5,X5,c3,"°","\\textdegree",!0),Y5(K5,X5,c3,"£","\\pounds"),Y5(K5,X5,c3,"£","\\mathsterling",!0),Y5(J5,X5,c3,"£","\\pounds"),Y5(J5,X5,c3,"£","\\textsterling",!0),Y5(K5,Q5,c3,"✠","\\maltese"),Y5(J5,Q5,c3,"✠","\\maltese");for(var d3='0123456789/@."',f3=0;f3<14;f3++){var h3=d3.charAt(f3);Y5(K5,X5,c3,h3,h3)}for(var p3='0123456789!@*()-=+";:?/.,',m3=0;m3<25;m3++){var g3=p3.charAt(m3);Y5(J5,X5,c3,g3,g3)}for(var v3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",y3=0;y3<52;y3++){var b3=v3.charAt(y3);Y5(K5,X5,n3,b3,b3),Y5(J5,X5,c3,b3,b3)}Y5(K5,Q5,c3,"C","ℂ"),Y5(J5,Q5,c3,"C","ℂ"),Y5(K5,Q5,c3,"H","ℍ"),Y5(J5,Q5,c3,"H","ℍ"),Y5(K5,Q5,c3,"N","ℕ"),Y5(J5,Q5,c3,"N","ℕ"),Y5(K5,Q5,c3,"P","ℙ"),Y5(J5,Q5,c3,"P","ℙ"),Y5(K5,Q5,c3,"Q","ℚ"),Y5(J5,Q5,c3,"Q","ℚ"),Y5(K5,Q5,c3,"R","ℝ"),Y5(J5,Q5,c3,"R","ℝ"),Y5(K5,Q5,c3,"Z","ℤ"),Y5(J5,Q5,c3,"Z","ℤ"),Y5(K5,X5,n3,"h","ℎ"),Y5(J5,X5,n3,"h","ℎ");for(var w3="",x3=0;x3<52;x3++){var k3=v3.charAt(x3);Y5(K5,X5,n3,k3,w3=String.fromCharCode(55349,56320+x3)),Y5(J5,X5,c3,k3,w3),Y5(K5,X5,n3,k3,w3=String.fromCharCode(55349,56372+x3)),Y5(J5,X5,c3,k3,w3),Y5(K5,X5,n3,k3,w3=String.fromCharCode(55349,56424+x3)),Y5(J5,X5,c3,k3,w3),Y5(K5,X5,n3,k3,w3=String.fromCharCode(55349,56580+x3)),Y5(J5,X5,c3,k3,w3),Y5(K5,X5,n3,k3,w3=String.fromCharCode(55349,56684+x3)),Y5(J5,X5,c3,k3,w3),Y5(K5,X5,n3,k3,w3=String.fromCharCode(55349,56736+x3)),Y5(J5,X5,c3,k3,w3),Y5(K5,X5,n3,k3,w3=String.fromCharCode(55349,56788+x3)),Y5(J5,X5,c3,k3,w3),Y5(K5,X5,n3,k3,w3=String.fromCharCode(55349,56840+x3)),Y5(J5,X5,c3,k3,w3),Y5(K5,X5,n3,k3,w3=String.fromCharCode(55349,56944+x3)),Y5(J5,X5,c3,k3,w3),x3<26&&(Y5(K5,X5,n3,k3,w3=String.fromCharCode(55349,56632+x3)),Y5(J5,X5,c3,k3,w3),Y5(K5,X5,n3,k3,w3=String.fromCharCode(55349,56476+x3)),Y5(J5,X5,c3,k3,w3))}Y5(K5,X5,n3,"k",w3=String.fromCharCode(55349,56668)),Y5(J5,X5,c3,"k",w3);for(var S3=0;S3<10;S3++){var _3=S3.toString();Y5(K5,X5,n3,_3,w3=String.fromCharCode(55349,57294+S3)),Y5(J5,X5,c3,_3,w3),Y5(K5,X5,n3,_3,w3=String.fromCharCode(55349,57314+S3)),Y5(J5,X5,c3,_3,w3),Y5(K5,X5,n3,_3,w3=String.fromCharCode(55349,57324+S3)),Y5(J5,X5,c3,_3,w3),Y5(K5,X5,n3,_3,w3=String.fromCharCode(55349,57334+S3)),Y5(J5,X5,c3,_3,w3)}for(var C3="ÐÞþ",T3=0;T3<3;T3++){var E3=C3.charAt(T3);Y5(K5,X5,n3,E3,E3),Y5(J5,X5,c3,E3,E3)}var A3=[["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"]],P3=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],I3=function(e,t,r){return G5[r][e]&&G5[r][e].replace&&(e=G5[r][e].replace),{value:e,metrics:w5(e,t,r)}},B3=function(e,t,r,n,o){var i,a=I3(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 F5(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 F5(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},N3=(e,t)=>{if(B5(e.classes)!==B5(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},D3=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},z3=function(e,t,r,n){var o=new R5(e,t,r,n);return D3(o),o},O3=(e,t,r,n)=>new R5(e,t,r,n),R3=function(e){var t=new g5(e);return D3(t),t},M3=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")},j3={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"}},L3={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},F3={fontMap:j3,makeSymbol:B3,mathsym:function(e,t,r,n){return void 0===n&&(n=[]),"boldsymbol"===r.font&&I3(e,"Main-Bold",t).metrics?B3(e,"Main-Bold",t,r,n.concat(["mathbf"])):"\\"===e||"main"===G5[t][e].font?B3(e,"Main-Regular",t,r,n):B3(e,"AMS-Regular",t,r,n.concat(["amsrm"]))},makeSpan:z3,makeSvgSpan:O3,makeLineSpan:function(e,t,r){var n=z3([e],[],t);return n.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=I5(n.height),n.maxFontSize=1,n},makeAnchor:function(e,t,r,n){var o=new M5(e,t,r,n);return D3(o),o},makeFragment:R3,wrapFragment:function(e,t){return e instanceof g5?z3([],[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=z3(["pstrut"],[]);l.style.height=I5(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=z3(g,[l,m],void 0,v);y.style.top=I5(-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=z3(["vlist"],c);if(w.style.height=I5(d),u<0){var x=z3([],[]),k=z3(["vlist"],[x]);k.style.height=I5(-u);var S=z3(["vlist-s"],[new F5("​")]);b=[z3(["vlist-r"],[w,S]),z3(["vlist-r"],[k])]}else b=[z3(["vlist-r"],[w])];var _=z3(["vlist-t"],b);return 2===b.length&&_.classes.push("vlist-t2"),_.height=d,_.depth=-u,_},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[A3[o][2],A3[o][n]]}if(120782<=r&&r<=120831){var i=Math.floor((r-120782)/10);return[P3[i][2],P3[i][n]]}if(120485===r||120486===r)return[A3[0][2],A3[0][n]];if(120486<r&&r<120782)return["",""];throw new G2("Unsupported character: "+e)}(o,n)),l.length>0)return B3(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&&I3(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=j3[s].fontName,d=[s]):(u=M3(s,t.fontWeight,t.fontShape),d=[s,t.fontWeight,t.fontShape]);if(I3(o,u,n).metrics)return B3(o,u,n,t,i.concat(d));if(u3.hasOwnProperty(o)&&"Typewriter"===u.slice(0,10)){for(var h=[],p=0;p<o.length;p++)h.push(B3(o[p],u,n,t,i.concat(d)));return R3(h)}}if("mathord"===r)return B3(o,"Math-Italic",n,t,i.concat(["mathnormal"]));if("textord"===r){var m=G5[n][o]&&G5[n][o].font;if("ams"===m){var g=M3("amsrm",t.fontWeight,t.fontShape);return B3(o,g,n,t,i.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==m&&m){var v=M3(m,t.fontWeight,t.fontShape);return B3(o,v,n,t,i.concat(v,t.fontWeight,t.fontShape))}var y=M3("textrm",t.fontWeight,t.fontShape);return B3(o,y,n,t,i.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+r+" in makeOrd")},makeGlue:(e,t)=>{var r=z3(["mspace"],[],t),n=P5(e,t);return r.style.marginRight=I5(n),r},staticSvg:function(e,t){var[r,n,o]=L3[e],i=new q5(r),a=new V5([i],{width:I5(n),height:I5(o),style:"width:"+I5(n),viewBox:"0 0 "+1e3*n+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),s=O3(["overlay"],[a],t);return s.height=o,s.style.height=I5(o),s.style.width=I5(n),s},svgData:L3,tryCombineChars:e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof F5&&n instanceof F5&&N3(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}},V3={number:3,unit:"mu"},q3={number:4,unit:"mu"},H3={number:5,unit:"mu"},U3={mord:{mop:V3,mbin:q3,mrel:H3,minner:V3},mop:{mord:V3,mop:V3,mrel:H3,minner:V3},mbin:{mord:q3,mop:q3,mopen:q3,minner:q3},mrel:{mord:H3,mop:H3,mopen:H3,minner:H3},mopen:{},mclose:{mop:V3,mbin:q3,mrel:H3,minner:V3},mpunct:{mord:V3,mop:V3,mrel:H3,mopen:V3,mclose:V3,mpunct:V3,minner:V3},minner:{mord:V3,mop:V3,mbin:q3,mrel:H3,mopen:V3,mpunct:V3,minner:V3}},W3={mord:{mop:V3},mop:{mord:V3,mop:V3},mbin:{},mrel:{},mopen:{},mclose:{mop:V3},mpunct:{},minner:{mop:V3}},$3={},G3={},Y3={};function K3(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)$3[r[l]]=s;t&&(i&&(G3[t]=i),a&&(Y3[t]=a))}function J3(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;K3({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var X3=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},Q3=function(e){return"ordgroup"===e.type?e.body:[e]},Z3=F3.makeSpan,e6=["leftmost","mbin","mopen","mrel","mop","mpunct"],t6=["rightmost","mrel","mclose","mpunct"],r6={display:u5.DISPLAY,text:u5.TEXT,script:u5.SCRIPT,scriptscript:u5.SCRIPTSCRIPT},n6={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},o6=function(e,t,r,n){void 0===n&&(n=[null,null]);for(var o=[],i=0;i<e.length;i++){var a=u6(e[i],t);if(a instanceof g5){var s=a.children;o.push(...s)}else o.push(a)}if(F3.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(r6[c.style]))}var u=Z3([n[0]||"leftmost"],[],t),d=Z3([n[1]||"rightmost"],[],t),f="root"===r;return i6(o,(e,t)=>{var r=t.classes[0],n=e.classes[0];"mbin"===r&&Q2.contains(t6,n)?t.classes[0]="mord":"mbin"===n&&Q2.contains(e6,r)&&(e.classes[0]="mord")},{node:u},d,f),i6(o,(e,t)=>{var r=l6(t),n=l6(e),o=r&&n?e.hasClass("mtight")?W3[r][n]:U3[r][n]:null;if(o)return F3.makeGlue(o,l)},{node:u},d,f),o},i6=function e(t,r,n,o,i){o&&t.push(o);for(var a=0;a<t.length;a++){var s=t[a],l=a6(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=Z3(["leftmost"])),n.insertAfter=(e=>r=>{t.splice(e+1,0,r),a++})(a)}}o&&t.pop()},a6=function(e){return e instanceof g5||e instanceof M5||e instanceof R5&&e.hasClass("enclosing")?e:null},s6=function e(t,r){var n=a6(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},l6=function(e,t){return e?(t&&(e=s6(e,t)),n6[e.classes[0]]||null):null},c6=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return Z3(t.concat(r))},u6=function(e,t,r){if(!e)return Z3();if(G3[e.type]){var n=G3[e.type](e,t);if(r&&t.size!==r.size){n=Z3(t.sizingClasses(r),[n],t);var o=t.sizeMultiplier/r.sizeMultiplier;n.height*=o,n.depth*=o}return n}throw new G2("Got group of unknown type: '"+e.type+"'")};function d6(e,t){var r=Z3(["base"],e,t),n=Z3(["strut"]);return n.style.height=I5(r.height+r.depth),r.depth&&(n.style.verticalAlign=I5(-r.depth)),r.children.unshift(n),r}function f6(e,t){var r=null;1===e.length&&"tag"===e[0].type&&(r=e[0].tag,e=e[0].body);var n,o=o6(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(d6(s,t)),s=[])}else o[l].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(d6(s,t)),s=[]),a.push(o[l]));s.length>0&&a.push(d6(s,t)),r?((i=d6(o6(r,t,!0))).classes=["tag"],a.push(i)):n&&a.push(n);var u=Z3(["katex-html"],a);if(u.setAttribute("aria-hidden","true"),i){var d=i.children[0];d.style.height=I5(u.height+u.depth),u.depth&&(d.style.verticalAlign=I5(-u.depth))}return u}function h6(e){return new g5(e)}class p6{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=B5(this.classes));for(var r=0;r<this.children.length;r++)if(this.children[r]instanceof m6&&this.children[r+1]instanceof m6){for(var n=this.children[r].toText()+this.children[++r].toText();this.children[r+1]instanceof m6;)n+=this.children[++r].toText();e.appendChild(new m6(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+=Q2.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+Q2.escape(B5(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 m6{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Q2.escape(this.toText())}toText(){return this.text}}var g6={MathNode:p6,TextNode:m6,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",I5(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+I5(this.width)+'"/>'}toText(){return this.character?this.character:" "}},newDocumentFragment:h6},v6=function(e,t,r){return!G5[t][e]||!G5[t][e].replace||55349===e.charCodeAt(0)||u3.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.slice(4,6)||r.font&&"tt"===r.font.slice(4,6))||(e=G5[t][e].replace),new g6.TextNode(e)},y6=function(e){return 1===e.length?e[0]:new g6.MathNode("mrow",e)},b6=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 Q2.contains(["\\imath","\\jmath"],o)?null:(G5[n][o]&&G5[n][o].replace&&(o=G5[n][o].replace),w5(o,F3.fontMap[r].fontName,n)?F3.fontMap[r].variant:null)};function w6(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof m6&&"."===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 m6&&","===r.text}return!1}var x6=function(e,t,r){if(1===e.length){var n=S6(e[0],t);return r&&n instanceof p6&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var o,i=[],a=0;a<e.length;a++){var s=S6(e[a],t);if(s instanceof p6&&o instanceof p6){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(w6(s)&&"mn"===o.type){o.children.push(...s.children);continue}if("mn"===s.type&&w6(o))s.children=[...o.children,...s.children],i.pop();else if(("msup"===s.type||"msub"===s.type)&&s.children.length>=1&&("mn"===o.type||w6(o))){var l=s.children[0];l instanceof p6&&"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 m6&&"̸"===c.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var u=s.children[0];u instanceof m6&&u.text.length>0&&(u.text=u.text.slice(0,1)+"̸"+u.text.slice(1),i.pop())}}}i.push(s),o=s}return i},k6=function(e,t,r){return y6(x6(e,t,r))},S6=function(e,t){if(!e)return new g6.MathNode("mrow");if(Y3[e.type])return Y3[e.type](e,t);throw new G2("Got group of unknown type: '"+e.type+"'")};function _6(e,t,r,n,o){var i,a=x6(e,r);i=1===a.length&&a[0]instanceof p6&&Q2.contains(["mrow","mtable"],a[0].type)?a[0]:new g6.MathNode("mrow",a);var s=new g6.MathNode("annotation",[new g6.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new g6.MathNode("semantics",[i,s]),c=new g6.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 F3.makeSpan([u],[c])}var C6=function(e){return new C5({style:e.displayMode?u5.DISPLAY:u5.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},T6=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=F3.makeSpan(r,[e])}return e},E6={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":"="},A6={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]},P6=function(e,t,r,n,o){var i,a=e.height+e.depth+r+n;if(/fbox|color|angl/.test(t)){if(i=F3.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 H5({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new H5({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new V5(l,{width:"100%",height:I5(a)});i=F3.makeSvgSpan([],[c],o)}return i.height=a,i.style.height=I5(a),i},I6=function(e){var t=new g6.MathNode("mo",[new g6.TextNode(E6[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},B6=function(e,t){var{span:r,minWidth:n,height:o}=function(){var r=4e5,n=e.label.slice(1);if(Q2.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 q5(i),u=new V5([c],{width:"100%",height:I5(a),viewBox:"0 0 "+r+" "+o,preserveAspectRatio:"none"});return{span:F3.makeSvgSpan([],[u],t),minWidth:0,height:a}}var d,f,h,p=[],m=A6[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 k=new q5(g[x]),S=new V5([k],{width:"400em",height:I5(b),viewBox:"0 0 "+r+" "+y,preserveAspectRatio:f[x]+" slice"}),_=F3.makeSvgSpan([d[x]],[S],t);if(1===w)return{span:_,minWidth:v,height:b};_.style.height=I5(b),p.push(_)}return{span:F3.makeSpan(["stretchy"],p,t),minWidth:v,height:b}}();return r.height=o,r.style.height=I5(o),n>0&&(r.style.minWidth=I5(n)),r};function N6(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 D6(e){var t=z6(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 z6(e){return e&&("atom"===e.type||$5.hasOwnProperty(e.type))?e:null}var O6=(e,t)=>{var r,n,o;e&&"supsub"===e.type?(r=(n=N6(e.base,"accent")).base,e.base=r,o=function(e){if(e instanceof R5)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(u6(e,t)),e.base=n):r=(n=N6(e,"accent")).base;var i=u6(r,t.havingCrampedStyle()),a=0;if(n.isShifty&&Q2.isCharacterBox(r)){var s=Q2.getBaseElem(r);a=U5(u6(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=B6(n,t),l=F3.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:l,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+I5(2*a)+")",marginLeft:I5(2*a)}:void 0}]},t);else{var d,f;"\\vec"===n.label?(d=F3.staticSvg("vec",t),f=F3.svgData.vec[1]):((d=U5(d=F3.makeOrd({mode:n.mode,text:n.label},t,"textord"))).italic=0,f=d.width,c&&(u+=d.depth)),l=F3.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=I5(p),"\\textcircled"===n.label&&(l.style.top=".2em"),l=F3.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-u},{type:"elem",elem:l}]},t)}var m=F3.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},R6=(e,t)=>{var r=e.isStretchy?I6(e.label):new g6.MathNode("mo",[v6(e.label,e.mode)]),n=new g6.MathNode("mover",[S6(e.base,t),r]);return n.setAttribute("accent","true"),n},M6=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));K3({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=X3(t[0]),n=!M6.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:O6,mathmlBuilder:R6}),K3({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:O6,mathmlBuilder:R6}),K3({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=u6(e.base,t),n=B6(e,t),o="\\utilde"===e.label?.12:0,i=F3.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:r}]},t);return F3.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=I6(e.label),n=new g6.MathNode("munder",[S6(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var j6=e=>{var t=new g6.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};K3({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=F3.wrapFragment(u6(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=F3.wrapFragment(u6(e.below,o,t),t)).classes.push(a+"-arrow-pad"));var s,l=B6(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=F3.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=F3.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"),F3.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder(e,t){var r,n=I6(e.label);if(n.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var o=j6(S6(e.body,t));if(e.below){var i=j6(S6(e.below,t));r=new g6.MathNode("munderover",[n,i,o])}else r=new g6.MathNode("mover",[n,o])}else if(e.below){var a=j6(S6(e.below,t));r=new g6.MathNode("munder",[n,a])}else r=j6(),r=new g6.MathNode("mover",[n,r]);return r}});var L6=F3.makeSpan;function F6(e,t){var r=o6(e.body,t,!0);return L6([e.mclass],r,t)}function V6(e,t){var r,n=x6(e.body,t);return"minner"===e.mclass?r=new g6.MathNode("mpadded",n):"mord"===e.mclass?e.isCharacterBox?(r=n[0]).type="mi":r=new g6.MathNode("mi",n):(e.isCharacterBox?(r=n[0]).type="mo":r=new g6.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}K3({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:Q3(o),isCharacterBox:Q2.isCharacterBox(o)}},htmlBuilder:F6,mathmlBuilder:V6});var q6=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};K3({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:q6(t[0]),body:Q3(t[1]),isCharacterBox:Q2.isCharacterBox(t[1])}}}),K3({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?q6(i):"mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==o,body:Q3(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:Q2.isCharacterBox(l)}},htmlBuilder:F6,mathmlBuilder:V6}),K3({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:q6(t[0]),body:Q3(t[0])}},htmlBuilder(e,t){var r=o6(e.body,t,!0),n=F3.makeSpan([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=x6(e.body,t),n=new g6.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var H6={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},U6=()=>({type:"styling",body:[],mode:"math",style:"display"}),W6=e=>"textord"===e.type&&"@"===e.text,$6=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;function G6(e,t,r){var n=H6[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"}}}K3({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=F3.wrapFragment(u6(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=I5(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new g6.MathNode("mrow",[S6(e.label,t)]);return(r=new g6.MathNode("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new g6.MathNode("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),K3({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=F3.wrapFragment(u6(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:(e,t)=>new g6.MathNode("mrow",[S6(e.fragment,t)])}),K3({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=N6(t[0],"ordgroup").body,o="",i=0;i<n.length;i++){o+=N6(n[i],"textord").text}var a,s=parseInt(o);if(isNaN(s))throw new G2("\\@char has non-numeric argument "+o);if(s<0||s>=1114111)throw new G2("\\@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 Y6=(e,t)=>{var r=o6(e.body,t.withColor(e.color),!1);return F3.makeFragment(r)},K6=(e,t)=>{var r=x6(e.body,t.withColor(e.color)),n=new g6.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};K3({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=N6(t[0],"color-token").color,o=t[1];return{type:"color",mode:r.mode,color:n,body:Q3(o)}},htmlBuilder:Y6,mathmlBuilder:K6}),K3({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,o=N6(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:Y6,mathmlBuilder:K6}),K3({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&&N6(o,"size").value}},htmlBuilder(e,t){var r=F3.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=I5(P5(e.size,t)))),r},mathmlBuilder(e,t){var r=new g6.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",I5(P5(e.size,t)))),r}});var J6={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},X6=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new G2("Expected a control sequence",e);return t},Q6=(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)};K3({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(J6[n.text])return"\\global"!==r&&"\\\\globallong"!==r||(n.text=J6[n.text]),N6(t.parseFunction(),"internal");throw new G2("Invalid token after macro prefix",n)}}),K3({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 G2("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 G2('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new G2('Argument number "'+n.text+'" out of order');a++,s.push([])}else{if("EOF"===n.text)throw new G2("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===J6[r]),{type:"internal",mode:t.mode}}}),K3({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=X6(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 Q6(t,n,o,"\\\\globallet"===r),{type:"internal",mode:t.mode}}}),K3({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=X6(t.gullet.popToken()),o=t.gullet.popToken(),i=t.gullet.popToken();return Q6(t,n,i,"\\\\globalfuture"===r),t.gullet.pushToken(i),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});var Z6=function(e,t,r){var n=w5(G5.math[e]&&G5.math[e].replace||e,t,r);if(!n)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return n},e7=function(e,t,r,n){var o=r.havingBaseStyle(t),i=F3.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},t7=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=I5(o),e.height-=o,e.depth+=o},r7=function(e,t,r,n,o,i){var a=function(e,t,r,n){return F3.makeSymbol(e,"Size"+t+"-Regular",r,n)}(e,t,o,n),s=e7(F3.makeSpan(["delimsizing","size"+t],[a],n),u5.TEXT,n,i);return r&&t7(s,n,u5.TEXT),s},n7=function(e,t,r){var n;return n="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:F3.makeSpan(["delimsizinginner",n],[F3.makeSpan([],[F3.makeSymbol(e,t,r)])])}},o7=function(e,t,r){var n=v5["Size4-Regular"][e.charCodeAt(0)]?v5["Size4-Regular"][e.charCodeAt(0)][4]:v5["Size1-Regular"][e.charCodeAt(0)][4],o=new q5("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 V5([o],{width:I5(n),height:I5(t),style:"width:"+I5(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),a=F3.makeSvgSpan([],[i],r);return a.height=t,a.style.height=I5(t),a.style.width=I5(n),{type:"elem",elem:a}},i7={type:"kern",size:-.008},a7=["|","\\lvert","\\rvert","\\vert"],s7=["\\|","\\lVert","\\rVert","\\Vert"],l7=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"):Q2.contains(a7,e)?(l="∣",u="vert",d=333):Q2.contains(s7,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=Z6(a,f,o),p=h.height+h.depth,m=Z6(l,f,o),g=m.height+m.depth,v=Z6(c,f,o),y=v.height+v.depth,b=0,w=1;if(null!==s){var x=Z6(s,f,o);b=x.height+x.depth,w=2}var k=p+y+b,S=k+Math.max(0,Math.ceil((t-k)/(w*g)))*w*g,_=n.fontMetrics().axisHeight;r&&(_*=n.sizeMultiplier);var C=S/2-_,T=[];if(u.length>0){var E=S-p-y,A=Math.round(1e3*S),P=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*E)),I=new q5(u,P),B=(d/1e3).toFixed(3)+"em",N=(A/1e3).toFixed(3)+"em",D=new V5([I],{width:B,height:N,viewBox:"0 0 "+d+" "+A}),z=F3.makeSvgSpan([],[D],n);z.height=A/1e3,z.style.width=B,z.style.height=N,T.push({type:"elem",elem:z})}else{if(T.push(n7(c,f,o)),T.push(i7),null===s){var O=S-p-y+.016;T.push(o7(l,O,n))}else{var R=(S-p-y-b)/2+.016;T.push(o7(l,R,n)),T.push(i7),T.push(n7(s,f,o)),T.push(i7),T.push(o7(l,R,n))}T.push(i7),T.push(n7(a,f,o))}var M=n.havingBaseStyle(u5.TEXT),j=F3.makeVList({positionType:"bottom",positionData:C,children:T},M);return e7(F3.makeSpan(["delimsizing","mult"],[j],M),u5.TEXT,n,i)},c7=.08,u7=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+p5)+"\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)+" "+p5+"h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize1":n=function(e){return"M263,"+(601+e+p5)+"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)+" "+p5+"h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize2":n=function(e){return"M983 "+(10+e+p5)+"\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)+" "+p5+"h400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize3":n=function(e){return"M424,"+(2398+e+p5)+"\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)+" "+p5+"\nh400000v"+(40+e)+"h-400000z"}(t);break;case"sqrtSize4":n=function(e){return"M473,"+(2713+e+p5)+"\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)+" "+p5+"h400000v"+(40+e)+"H1017.7z"}(t);break;case"sqrtTall":n=function(e,t,r){return"M702 "+(e+p5)+"H400000"+(40+e)+"\nH742v"+(r-54-p5-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 "+p5+"H400000v"+(40+e)+"H742z"}(t,0,r)}return n}(e,n,r),a=new q5(e,i),s=new V5([a],{width:"400em",height:I5(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return F3.makeSvgSpan(["hide-tail"],[s],o)},d7=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],f7=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],h7=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],p7=[0,1.2,1.8,2.4,3],m7=[{type:"small",style:u5.SCRIPTSCRIPT},{type:"small",style:u5.SCRIPT},{type:"small",style:u5.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],g7=[{type:"small",style:u5.SCRIPTSCRIPT},{type:"small",style:u5.SCRIPT},{type:"small",style:u5.TEXT},{type:"stack"}],v7=[{type:"small",style:u5.SCRIPTSCRIPT},{type:"small",style:u5.SCRIPT},{type:"small",style:u5.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],y7=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.")},b7=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=Z6(e,y7(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]},w7=function(e,t,r,n,o,i){var a;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),a=Q2.contains(h7,e)?m7:Q2.contains(d7,e)?v7:g7;var s=b7(e,t,a,n);return"small"===s.type?function(e,t,r,n,o,i){var a=F3.makeSymbol(e,"Main-Regular",o,n),s=e7(a,t,n,i);return r&&t7(s,n,t),s}(e,s.style,r,n,o,i):"large"===s.type?r7(e,s.size,r,n,o,i):l7(e,t,r,n,o,i)},x7={sqrtImage:function(e,t){var r,n,o=t.havingBaseSizing(),i=b7("\\surd",e*o.sizeMultiplier,v7,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=u7("sqrtMain",l=(1+s+c7)/a,u=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",n=.833/a):"large"===i.type?(u=1080*p7[i.size],c=(p7[i.size]+s)/a,l=(p7[i.size]+s+c7)/a,(r=u7("sqrtSize"+i.size,l,u,s,t)).style.minWidth="1.02em",n=1/a):(l=e+s+c7,c=e+s,u=Math.floor(1e3*e+s)+80,(r=u7("sqrtTall",l,u,s,t)).style.minWidth="0.742em",n=1.056),r.height=c,r.style.height=I5(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"),Q2.contains(d7,e)||Q2.contains(h7,e))return r7(e,t,!1,r,n,o);if(Q2.contains(f7,e))return l7(e,p7[t],!1,r,n,o);throw new G2("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:p7,customSizedDelim:w7,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 w7(e,c,!0,n,o,i)}},k7={"\\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}},S7=["(","\\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 _7(e,t){var r=z6(e);if(r&&Q2.contains(S7,r.text))return r;throw new G2(r?"Invalid delimiter '"+r.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function C7(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}K3({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=_7(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:k7[e.funcName].size,mclass:k7[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>"."===e.delim?F3.makeSpan([e.mclass]):x7.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(v6(e.delim,e.mode));var r=new g6.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=I5(x7.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}}),K3({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 G2("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:_7(t[0],e).text,color:r}}}),K3({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=_7(t[0],e),n=e.parser;++n.leftrightDepth;var o=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=N6(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:o,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{C7(e);for(var r,n,o=o6(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?c6(t,["mopen"]):x7.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]=x7.leftRightDelim(u.delim,i,a,u.options,e.mode,[]))}if("."===e.right)n=c6(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;n=x7.leftRightDelim(e.right,i,a,d,e.mode,["mclose"])}return o.push(n),F3.makeSpan(["minner"],o,t)},mathmlBuilder:(e,t)=>{C7(e);var r=x6(e.body,t);if("."!==e.left){var n=new g6.MathNode("mo",[v6(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if("."!==e.right){var o=new g6.MathNode("mo",[v6(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),r.push(o)}return y6(r)}}),K3({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=_7(t[0],e);if(!e.parser.leftrightDepth)throw new G2("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if("."===e.delim)r=c6(t,[]);else{r=x7.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?v6("|","text"):v6(e.delim,e.mode),n=new g6.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var T7=(e,t)=>{var r,n,o,i=F3.wrapFragment(u6(e.body,t),t),a=e.label.slice(1),s=t.sizeMultiplier,l=0,c=Q2.isCharacterBox(e.body);if("sout"===a)(r=F3.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/s,l=-.5*t.fontMetrics().xHeight;else if("phase"===a){var u=P5({number:.6,unit:"pt"},t),d=P5({number:.35,unit:"ex"},t);s/=t.havingBaseSizing().sizeMultiplier;var f=i.height+i.depth+u+d;i.style.paddingLeft=I5(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 V5([new q5("phase",p)],{width:"400em",height:I5(h/1e3),viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});(r=F3.makeSvgSpan(["hide-tail"],[m],t)).style.height=I5(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=P6(i,a,g,v,t),/fbox|boxed|fcolorbox/.test(a)?(r.style.borderStyle="solid",r.style.borderWidth=I5(y)):"angl"===a&&.049!==y&&(r.style.borderTopWidth=I5(y),r.style.borderRightWidth=I5(y)),l=i.depth+v,e.backgroundColor&&(r.style.backgroundColor=e.backgroundColor,e.borderColor&&(r.style.borderColor=e.borderColor))}if(e.backgroundColor)o=F3.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=F3.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?F3.makeSpan(["mord","cancel-lap"],[o],t):F3.makeSpan(["mord"],[o],t)},E7=(e,t)=>{var r=0,n=new g6.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[S6(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};K3({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:o}=e,i=N6(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:n.mode,label:o,backgroundColor:i,body:a}},htmlBuilder:T7,mathmlBuilder:E7}),K3({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:o}=e,i=N6(t[0],"color-token").color,a=N6(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:n.mode,label:o,backgroundColor:a,borderColor:i,body:s}},htmlBuilder:T7,mathmlBuilder:E7}),K3({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]}}}),K3({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:T7,mathmlBuilder:E7}),K3({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 A7={};function P7(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)A7[r[l]]=s;i&&(G3[t]=i),a&&(Y3[t]=a)}var I7={};function B7(e,t){I7[e]=t}function N7(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 D7=e=>{if(!e.parser.settings.displayMode)throw new G2("{"+e.envName+"} can be used only in display mode.")};function z7(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function O7(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 G2("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 $2("\\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(N7(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 k=e.fetch().text;if("&"===k){if(d&&p.length===d){if(c||s)throw new G2("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===k){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("\\\\"!==k)throw new G2("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();var S=void 0;" "!==e.gullet.future().text&&(S=e.parseSizeGroup(!0)),g.push(S?S.value:null),w(),v.push(N7(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 R7(e){return"d"===e.slice(0,1)?"display":"text"}var M7=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(u5.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var f="CD"===e.colSeparationType?P5({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 k=new Array(b.length);for(n=0;n<b.length;++n){var S=u6(b[n],t);x<S.depth&&(x=S.depth),w<S.height&&(w=S.height),k[n]=S}var _=e.rowGaps[r],C=0;_&&(C=P5(_,t))>0&&(x<(C+=g)&&(x=C),C=0),e.addJot&&(x+=h),k.height=w,k.depth=x,v+=w,k.pos=v,v+=x+C,s[r]=k,y(i[r+1])}var T,E,A=v/2+t.fontMetrics().axisHeight,P=e.cols||[],I=[],B=[];if(e.tags&&e.tags.some(e=>e))for(r=0;r<o;++r){var N=s[r],D=N.pos-A,z=e.tags[r],O=void 0;(O=!0===z?F3.makeSpan(["eqn-num"],[],t):!1===z?F3.makeSpan([],[],t):F3.makeSpan([],o6(z,t,!0),t)).depth=N.depth,O.height=N.height,B.push({type:"elem",elem:O,shift:D})}for(n=0,E=0;n<a||E<P.length;++n,++E){for(var R=P[E]||{},M=!0;"separator"===R.type;){if(M||((T=F3.makeSpan(["arraycolsep"],[])).style.width=I5(t.fontMetrics().doubleRuleSep),I.push(T)),"|"!==R.separator&&":"!==R.separator)throw new G2("Invalid separator type: "+R.separator);var j="|"===R.separator?"solid":"dashed",L=F3.makeSpan(["vertical-separator"],[],t);L.style.height=I5(v),L.style.borderRightWidth=I5(c),L.style.borderRightStyle=j,L.style.margin="0 "+I5(-c/2);var F=v-A;F&&(L.style.verticalAlign=I5(-F)),I.push(L),R=P[++E]||{},M=!1}if(!(n>=a)){var V=void 0;(n>0||e.hskipBeforeAndAfter)&&0!==(V=Q2.deflt(R.pregap,d))&&((T=F3.makeSpan(["arraycolsep"],[])).style.width=I5(V),I.push(T));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=F3.makeVList({positionType:"individualShift",children:q},t),q=F3.makeSpan(["col-align-"+(R.align||"c")],[q]),I.push(q),(n<a-1||e.hskipBeforeAndAfter)&&0!==(V=Q2.deflt(R.postgap,d))&&((T=F3.makeSpan(["arraycolsep"],[])).style.width=I5(V),I.push(T))}}if(s=F3.makeSpan(["mtable"],I),l.length>0){for(var $=F3.makeLineSpan("hline",t,c),G=F3.makeLineSpan("hdashline",t,c),Y=[{type:"elem",elem:s,shift:0}];l.length>0;){var K=l.pop(),J=K.pos-A;K.isDashed?Y.push({type:"elem",elem:G,shift:J}):Y.push({type:"elem",elem:$,shift:J})}s=F3.makeVList({positionType:"individualShift",children:Y},t)}if(0===B.length)return F3.makeSpan(["mord"],[s],t);var X=F3.makeVList({positionType:"individualShift",children:B},t);return X=F3.makeSpan(["tag"],[X],t),F3.makeFragment([s,X])},j7={c:"center ",l:"left ",r:"right "},L7=function(e,t){for(var r=[],n=new g6.MathNode("mtd",[],["mtr-glue"]),o=new g6.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 g6.MathNode("mtd",[S6(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 g6.MathNode("mtr",s))}var c=new g6.MathNode("mtable",r),u=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);c.setAttribute("rowspacing",I5(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+=j7[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 k="",S=e.hLinesBeforeRow;d+=S[0].length>0?"left ":"",d+=S[S.length-1].length>0?"right ":"";for(var _=1;_<S.length-1;_++)k+=0===S[_].length?"none ":S[_][0]?"dashed ":"solid ";return/[sd]/.test(k)&&c.setAttribute("rowlines",k.trim()),""!==d&&(c=new g6.MathNode("menclose",[c])).setAttribute("notation",d.trim()),e.arraystretch&&e.arraystretch<1&&(c=new g6.MathNode("mstyle",[c])).setAttribute("scriptlevel","1"),c},F7=function(e,t){-1===e.envName.indexOf("ed")&&D7(e);var r,n=[],o=e.envName.indexOf("at")>-1?"alignat":"align",i="split"===e.envName,a=O7(e.parser,{cols:n,addJot:!0,autoTag:i?void 0:z7(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+=N6(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=N6(e[t],"styling");N6(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 G2("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};P7({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=(z6(t[0])?[t[0]]:N6(t[0],"ordgroup").body).map(function(e){var t=D6(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 G2("Unknown column alignment: "+t,e)}),n={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return O7(e.parser,n,R7(e.envName))},htmlBuilder:M7,mathmlBuilder:L7}),P7({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 G2("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),n.cols=[{type:"align",align:r}]}}var i=O7(e.parser,n,R7(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:M7,mathmlBuilder:L7}),P7({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=O7(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:M7,mathmlBuilder:L7}),P7({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=(z6(t[0])?[t[0]]:N6(t[0],"ordgroup").body).map(function(e){var t=D6(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new G2("Unknown column alignment: "+t,e)});if(r.length>1)throw new G2("{subarray} can contain only one column");var n={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if((n=O7(e.parser,n,"script")).body.length>0&&n.body[0].length>1)throw new G2("{subarray} can contain only one column");return n},htmlBuilder:M7,mathmlBuilder:L7}),P7({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=O7(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},R7(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:M7,mathmlBuilder:L7}),P7({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:F7,htmlBuilder:M7,mathmlBuilder:L7}),P7({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Q2.contains(["gather","gather*"],e.envName)&&D7(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:z7(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return O7(e.parser,t,"display")},htmlBuilder:M7,mathmlBuilder:L7}),P7({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:F7,htmlBuilder:M7,mathmlBuilder:L7}),P7({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){D7(e);var t={autoTag:z7(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return O7(e.parser,t,"display")},htmlBuilder:M7,mathmlBuilder:L7}),P7({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(D7(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 G2("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=U6(),l=0;l<a.length;l++)if(W6(a[l])){n.push(s);var c=D6(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 G2('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($6(a[h],c)){f=!1,l=h;break}if(W6(a[h]))throw new G2("Missing a "+c+" character to complete a CD arrow.",a[h]);u[d].body.push(a[h])}if(f)throw new G2("Missing a "+c+" character to complete a CD arrow.",a[l])}}var p={type:"styling",body:[G6(c,u,e)],mode:"math",style:"display"};n.push(p),s=U6()}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:M7,mathmlBuilder:L7}),B7("\\nonumber","\\gdef\\@eqnsw{0}"),B7("\\notag","\\nonumber"),K3({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new G2(e.funcName+" valid only within array environment")}});var V7=A7;K3({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 G2("Invalid environment name",o);for(var i="",a=0;a<o.body.length;++a)i+=N6(o.body[a],"textord").text;if("\\begin"===n){if(!V7.hasOwnProperty(i))throw new G2("No such environment: "+i,o);var s=V7[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=N6(r.parseFunction(),"environment");if(h.name!==i)throw new G2("Mismatch: \\begin{"+i+"} matched by \\end{"+h.name+"}",f);return d}return{type:"environment",mode:r.mode,name:i,nameGroup:o}}});var q7=(e,t)=>{var r=e.font,n=t.withFont(r);return u6(e.body,n)},H7=(e,t)=>{var r=e.font,n=t.withFont(r);return S6(e.body,n)},U7={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};K3({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=X3(t[0]),i=n;return i in U7&&(i=U7[i]),{type:"font",mode:r.mode,font:i.slice(1),body:o}},htmlBuilder:q7,mathmlBuilder:H7}),K3({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0],o=Q2.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:q6(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:o}}}),K3({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:q7,mathmlBuilder:H7});var W7=(e,t)=>{var r=t;return"display"===e?r=r.id>=u5.SCRIPT.id?r.text():u5.DISPLAY:"text"===e&&r.size===u5.DISPLAY.size?r=u5.TEXT:"script"===e?r=u5.SCRIPT:"scriptscript"===e&&(r=u5.SCRIPTSCRIPT),r},$7=(e,t)=>{var r,n=W7(e.size,t.style),o=n.fracNum(),i=n.fracDen();r=t.havingStyle(o);var a=u6(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=u6(e.denom,r,t);if(e.hasBarLine?(e.barSize?(u=P5(e.barSize,t),c=F3.makeLineSpan("frac-line",t,u)):c=F3.makeLineSpan("frac-line",t),u=c.height,d=c.height):(c=null,u=0,d=t.fontMetrics().defaultRuleThickness),n.size===u5.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=F3.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 k=f-a.depth-(b.height-p);k<h&&(f+=.5*(h-k),p+=.5*(h-k)),m=F3.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===u5.DISPLAY.size?t.fontMetrics().delim1:n.size===u5.SCRIPTSCRIPT.size?t.havingStyle(u5.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,v=null==e.leftDelim?c6(t,["mopen"]):x7.customSizedDelim(e.leftDelim,g,!0,t.havingStyle(n),e.mode,["mopen"]),y=e.continued?F3.makeSpan([]):null==e.rightDelim?c6(t,["mclose"]):x7.customSizedDelim(e.rightDelim,g,!0,t.havingStyle(n),e.mode,["mclose"]),F3.makeSpan(["mord"].concat(r.sizingClasses(t)),[v,F3.makeSpan(["mfrac"],[m]),y],t)},G7=(e,t)=>{var r=new g6.MathNode("mfrac",[S6(e.numer,t),S6(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var n=P5(e.barSize,t);r.setAttribute("linethickness",I5(n))}}else r.setAttribute("linethickness","0px");var o=W7(e.size,t.style);if(o.size!==t.style.size){r=new g6.MathNode("mstyle",[r]);var i=o.size===u5.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 g6.MathNode("mo",[new g6.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}if(a.push(r),null!=e.rightDelim){var l=new g6.MathNode("mo",[new g6.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),a.push(l)}return y6(a)}return r};K3({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:$7,mathmlBuilder:G7}),K3({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}}}),K3({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 Y7=["display","text","script","scriptscript"],K7=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};K3({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=X3(t[0]),s="atom"===a.type&&"open"===a.family?K7(a.text):null,l=X3(t[1]),c="atom"===l.type&&"close"===l.family?K7(l.text):null,u=N6(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=N6(h.body[0],"textord");f=Y7[Number(p.text)]}}else h=N6(h,"textord"),f=Y7[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:$7,mathmlBuilder:G7}),K3({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:N6(t[0],"size").value,token:o}}}),K3({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}(N6(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:$7,mathmlBuilder:G7});var J7=(e,t)=>{var r,n,o=t.style;"supsub"===e.type?(r=e.sup?u6(e.sup,t.havingStyle(o.sup()),t):u6(e.sub,t.havingStyle(o.sub()),t),n=N6(e.base,"horizBrace")):n=N6(e,"horizBrace");var i,a=u6(n.base,t.havingBaseStyle(u5.DISPLAY)),s=B6(n,t);if(n.isOver?(i=F3.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=F3.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=F3.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t);i=n.isOver?F3.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):F3.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 F3.makeSpan(["mord",n.isOver?"mover":"munder"],[i],t)};K3({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:J7,mathmlBuilder:(e,t)=>{var r=I6(e.label);return new g6.MathNode(e.isOver?"mover":"munder",[S6(e.base,t),r])}}),K3({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],o=N6(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:r.mode,href:o,body:Q3(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=o6(e.body,t,!1);return F3.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=k6(e.body,t);return r instanceof p6||(r=new p6("mrow",[r])),r.setAttribute("href",e.href),r}}),K3({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=N6(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:Q3(s)}}}),K3({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:Q3(t[0])}},htmlBuilder(e,t){var r=o6(e.body,t,!1);return F3.makeFragment(r)},mathmlBuilder:(e,t)=>new g6.MathNode("mrow",x6(e.body,t))}),K3({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=N6(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 G2("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:Q3(s)}:n.formatUnsupportedCmd(o)},htmlBuilder:(e,t)=>{var r=o6(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var o=F3.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)=>k6(e.body,t)}),K3({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:Q3(t[0]),mathml:Q3(t[1])}},htmlBuilder:(e,t)=>{var r=o6(e.html,t,!1);return F3.makeFragment(r)},mathmlBuilder:(e,t)=>k6(e.mathml,t)});var X7=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 G2("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!A5(r))throw new G2("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};K3({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=N6(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=X7(d);break;case"height":i=X7(d);break;case"totalheight":a=X7(d);break;default:throw new G2("Invalid key: '"+u[0]+"' in \\includegraphics.")}}}var f=N6(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=P5(e.height,t),n=0;e.totalheight.number>0&&(n=P5(e.totalheight,t)-r);var o=0;e.width.number>0&&(o=P5(e.width,t));var i={height:I5(r+n)};o>0&&(i.width=I5(o)),n>0&&(i.verticalAlign=I5(-n));var a=new j5(e.src,e.alt,i);return a.height=r,a.depth=n,a},mathmlBuilder:(e,t)=>{var r=new g6.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=P5(e.height,t),o=0;if(e.totalheight.number>0&&(o=P5(e.totalheight,t)-n,r.setAttribute("valign",I5(-o))),r.setAttribute("height",I5(n+o)),e.width.number>0){var i=P5(e.width,t);r.setAttribute("width",I5(i))}return r.setAttribute("src",e.src),r}}),K3({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=N6(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)=>F3.makeGlue(e.dimension,t),mathmlBuilder(e,t){var r=P5(e.dimension,t);return new g6.SpaceNode(r)}}),K3({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=F3.makeSpan([],[u6(e.body,t)]),r=F3.makeSpan(["inner"],[r],t)):r=F3.makeSpan(["inner"],[u6(e.body,t)]);var n=F3.makeSpan(["fix"],[]),o=F3.makeSpan([e.alignment],[r,n],t),i=F3.makeSpan(["strut"]);return i.style.height=I5(o.height+o.depth),o.depth&&(i.style.verticalAlign=I5(-o.depth)),o.children.unshift(i),o=F3.makeSpan(["thinbox"],[o],t),F3.makeSpan(["mord","vbox"],[o],t)},mathmlBuilder:(e,t)=>{var r=new g6.MathNode("mpadded",[S6(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}}),K3({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}}}),K3({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new G2("Mismatched "+e.funcName)}});var Q7=(e,t)=>{switch(t.style.size){case u5.DISPLAY.size:return e.display;case u5.TEXT.size:return e.text;case u5.SCRIPT.size:return e.script;case u5.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};K3({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Q3(t[0]),text:Q3(t[1]),script:Q3(t[2]),scriptscript:Q3(t[3])}},htmlBuilder:(e,t)=>{var r=Q7(e,t),n=o6(r,t,!1);return F3.makeFragment(n)},mathmlBuilder:(e,t)=>{var r=Q7(e,t);return k6(r,t)}});var Z7=(e,t,r,n,o,i,a)=>{e=F3.makeSpan([],[e]);var s,l,c,u=r&&Q2.isCharacterBox(r);if(t){var d=u6(t,n.havingStyle(o.sup()),n);l={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var f=u6(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=F3.makeVList({positionType:"bottom",positionData:h,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:I5(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:I5(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(s){var p=e.height-a;c=F3.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:I5(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},n)}else{if(!l)return e;var m=e.depth+a;c=F3.makeVList({positionType:"bottom",positionData:m,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:I5(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}var g=[c];if(s&&0!==i&&!u){var v=F3.makeSpan(["mspace"],[],n);v.style.marginRight=I5(i),g.unshift(v)}return F3.makeSpan(["mop","op-limits"],g,n)},e8=["\\smallint"],t8=(e,t)=>{var r,n,o,i=!1;"supsub"===e.type?(r=e.sup,n=e.sub,o=N6(e.base,"op"),i=!0):o=N6(e,"op");var a,s=t.style,l=!1;if(s.size===u5.DISPLAY.size&&o.symbol&&!Q2.contains(e8,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=F3.makeSymbol(o.name,c,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),u.length>0){var d=a.italic,f=F3.staticSvg(u+"Size"+(l?"2":"1"),t);a=F3.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=o6(o.body,t,!0);1===h.length&&h[0]instanceof F5?(a=h[0]).classes[0]="mop":a=F3.makeSpan(["mop"],h,t)}else{for(var p=[],m=1;m<o.name.length;m++)p.push(F3.mathsym(o.name[m],o.mode,t));a=F3.makeSpan(["mop"],p,t)}var g=0,v=0;return(a instanceof F5||"\\oiint"===o.name||"\\oiiint"===o.name)&&!o.suppressBaseShift&&(g=(a.height-a.depth)/2-t.fontMetrics().axisHeight,v=a.italic),i?Z7(a,r,n,t,s,v,g):(g&&(a.style.position="relative",a.style.top=I5(g)),a)},r8=(e,t)=>{var r;if(e.symbol)r=new p6("mo",[v6(e.name,e.mode)]),Q2.contains(e8,e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new p6("mo",x6(e.body,t));else{r=new p6("mi",[new m6(e.name.slice(1))]);var n=new p6("mo",[v6("⁡","text")]);r=e.parentIsSupSub?new p6("mrow",[r,n]):h6([r,n])}return r},n8={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};K3({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=n8[o]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:t8,mathmlBuilder:r8}),K3({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:Q3(n)}},htmlBuilder:t8,mathmlBuilder:r8});var o8={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};K3({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:t8,mathmlBuilder:r8}),K3({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:t8,mathmlBuilder:r8}),K3({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=o8[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:t8,mathmlBuilder:r8});var i8=(e,t)=>{var r,n,o,i,a=!1;if("supsub"===e.type?(r=e.sup,n=e.sub,o=N6(e.base,"operatorname"),a=!0):o=N6(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=o6(s,t.withFont("mathrm"),!0),c=0;c<l.length;c++){var u=l[c];u instanceof F5&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=F3.makeSpan(["mop"],l,t)}else i=F3.makeSpan(["mop"],[],t);return a?Z7(i,r,n,t,t.style,0,0):i};function a8(e,t,r){for(var n=o6(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 F3.makeFragment(n)}K3({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:Q3(o),alwaysHandleSupSub:"\\operatornamewithlimits"===n,limits:!1,parentIsSupSub:!1}},htmlBuilder:i8,mathmlBuilder:(e,t)=>{for(var r=x6(e.body,t.withFont("mathrm")),n=!0,o=0;o<r.length;o++){var i=r[o];if(i instanceof g6.SpaceNode);else if(i instanceof g6.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 g6.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 g6.TextNode(s)]}var l=new g6.MathNode("mi",r);l.setAttribute("mathvariant","normal");var c=new g6.MathNode("mo",[v6("⁡","text")]);return e.parentIsSupSub?new g6.MathNode("mrow",[l,c]):g6.newDocumentFragment([l,c])}}),B7("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),J3({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?F3.makeFragment(o6(e.body,t,!1)):F3.makeSpan(["mord"],o6(e.body,t,!0),t),mathmlBuilder:(e,t)=>k6(e.body,t,!0)}),K3({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=u6(e.body,t.havingCrampedStyle()),n=F3.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,i=F3.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n},{type:"kern",size:o}]},t);return F3.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new g6.MathNode("mo",[new g6.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new g6.MathNode("mover",[S6(e.body,t),r]);return n.setAttribute("accent","true"),n}}),K3({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:Q3(n)}},htmlBuilder:(e,t)=>{var r=o6(e.body,t.withPhantom(),!1);return F3.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=x6(e.body,t);return new g6.MathNode("mphantom",r)}}),K3({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=F3.makeSpan([],[u6(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=F3.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),F3.makeSpan(["mord"],[r],t)},mathmlBuilder:(e,t)=>{var r=x6(Q3(e.body),t),n=new g6.MathNode("mphantom",r),o=new g6.MathNode("mpadded",[n]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}}),K3({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=F3.makeSpan(["inner"],[u6(e.body,t.withPhantom())]),n=F3.makeSpan(["fix"],[]);return F3.makeSpan(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=x6(Q3(e.body),t),n=new g6.MathNode("mphantom",r),o=new g6.MathNode("mpadded",[n]);return o.setAttribute("width","0px"),o}}),K3({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=N6(t[0],"size").value,o=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:o}},htmlBuilder(e,t){var r=u6(e.body,t),n=P5(e.dy,t);return F3.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new g6.MathNode("mpadded",[S6(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}}),K3({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),K3({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=N6(t[0],"size"),a=N6(t[1],"size");return{type:"rule",mode:n.mode,shift:o&&N6(o,"size").value,width:i.value,height:a.value}},htmlBuilder(e,t){var r=F3.makeSpan(["mord","rule"],[],t),n=P5(e.width,t),o=P5(e.height,t),i=e.shift?P5(e.shift,t):0;return r.style.borderRightWidth=I5(n),r.style.borderTopWidth=I5(o),r.style.bottom=I5(i),r.width=n,r.height=o+i,r.depth=-i,r.maxFontSize=1.125*o*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=P5(e.width,t),n=P5(e.height,t),o=e.shift?P5(e.shift,t):0,i=t.color&&t.getColor()||"black",a=new g6.MathNode("mspace");a.setAttribute("mathbackground",i),a.setAttribute("width",I5(r)),a.setAttribute("height",I5(n));var s=new g6.MathNode("mpadded",[a]);return o>=0?s.setAttribute("height",I5(o)):(s.setAttribute("height",I5(o)),s.setAttribute("depth",I5(-o))),s.setAttribute("voffset",I5(o)),s}});var s8=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];K3({type:"sizing",names:s8,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:s8.indexOf(n)+1,body:i}},htmlBuilder:(e,t)=>{var r=t.havingSize(e.size);return a8(e.body,r,t)},mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=x6(e.body,r),o=new g6.MathNode("mstyle",n);return o.setAttribute("mathsize",I5(r.sizeMultiplier)),o}}),K3({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]&&N6(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=F3.makeSpan([],[u6(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=F3.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t);return F3.makeSpan(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new g6.MathNode("mpadded",[S6(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),K3({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=u6(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=F3.wrapFragment(r,t);var n=t.fontMetrics().defaultRuleThickness,o=n;t.style.id<u5.TEXT.id&&(o=t.fontMetrics().xHeight);var i=n+o/4,a=r.height+r.depth+i+n,{span:s,ruleWidth:l,advanceWidth:c}=x7.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=I5(c);var f=F3.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(u5.SCRIPTSCRIPT),p=u6(e.index,h,t),m=.6*(f.height-f.depth),g=F3.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:p}]},t),v=F3.makeSpan(["root"],[g]);return F3.makeSpan(["mord","sqrt"],[v,f],t)}return F3.makeSpan(["mord","sqrt"],[f],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new g6.MathNode("mroot",[S6(r,t),S6(n,t)]):new g6.MathNode("msqrt",[S6(r,t)])}});var l8={display:u5.DISPLAY,text:u5.TEXT,script:u5.SCRIPT,scriptscript:u5.SCRIPTSCRIPT};K3({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=l8[e.style],n=t.havingStyle(r).withFont("");return a8(e.body,n,t)},mathmlBuilder(e,t){var r=l8[e.style],n=t.havingStyle(r),o=x6(e.body,n),i=new g6.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}});J3({type:"supsub",htmlBuilder(e,t){var r=function(e,t){var r=e.base;return r?"op"===r.type?r.limits&&(t.style.size===u5.DISPLAY.size||r.alwaysHandleSupSub)?t8:null:"operatorname"===r.type?r.alwaysHandleSupSub&&(t.style.size===u5.DISPLAY.size||r.limits)?i8:null:"accent"===r.type?Q2.isCharacterBox(r.base)?O6:null:"horizBrace"===r.type&&!e.sub===r.isOver?J7:null:null}(e,t);if(r)return r(e,t);var n,o,i,{base:a,sup:s,sub:l}=e,c=u6(a,t),u=t.fontMetrics(),d=0,f=0,h=a&&Q2.isCharacterBox(a);if(s){var p=t.havingStyle(t.style.sup());n=u6(s,p,t),h||(d=c.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(l){var m=t.havingStyle(t.style.sub());o=u6(l,m,t),h||(f=c.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}i=t.style===u5.DISPLAY?u.sup1:t.style.cramped?u.sup3:u.sup2;var g,v=t.sizeMultiplier,y=I5(.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 F5||w)&&(b=I5(-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 k=.8*u.xHeight-(d-n.depth);k>0&&(d+=k,f-=k)}var S=[{type:"elem",elem:o,shift:f,marginRight:y,marginLeft:b},{type:"elem",elem:n,shift:-d,marginRight:y}];g=F3.makeVList({positionType:"individualShift",children:S},t)}else if(o){f=Math.max(f,u.sub1,o.height-.8*u.xHeight);var _=[{type:"elem",elem:o,marginLeft:b,marginRight:y}];g=F3.makeVList({positionType:"shift",positionData:f,children:_},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=F3.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:n,marginRight:y}]},t)}var C=l6(c,"right")||"mord";return F3.makeSpan([C],[c,F3.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=[S6(e.base,t)];if(e.sub&&i.push(S6(e.sub,t)),e.sup&&i.push(S6(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===u5.DISPLAY||a&&"operatorname"===a.type&&a.alwaysHandleSupSub&&(t.style===u5.DISPLAY||a.limits)?"munderover":"msubsup"}else{var s=e.base;o=s&&"op"===s.type&&s.limits&&(t.style===u5.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===u5.DISPLAY)?"munder":"msub"}else{var l=e.base;o=l&&"op"===l.type&&l.limits&&(t.style===u5.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===u5.DISPLAY)?"mover":"msup"}return new g6.MathNode(o,i)}}),J3({type:"atom",htmlBuilder:(e,t)=>F3.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var r=new g6.MathNode("mo",[v6(e.text,e.mode)]);if("bin"===e.family){var n=b6(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 c8={mi:"italic",mn:"normal",mtext:"normal"};J3({type:"mathord",htmlBuilder:(e,t)=>F3.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){var r=new g6.MathNode("mi",[v6(e.text,e.mode,t)]),n=b6(e,t)||"italic";return n!==c8[r.type]&&r.setAttribute("mathvariant",n),r}}),J3({type:"textord",htmlBuilder:(e,t)=>F3.makeOrd(e,t,"textord"),mathmlBuilder(e,t){var r,n=v6(e.text,e.mode,t),o=b6(e,t)||"normal";return r="text"===e.mode?new g6.MathNode("mtext",[n]):/[0-9]/.test(e.text)?new g6.MathNode("mn",[n]):"\\prime"===e.text?new g6.MathNode("mo",[n]):new g6.MathNode("mi",[n]),o!==c8[r.type]&&r.setAttribute("mathvariant",o),r}});var u8={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},d8={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};J3({type:"spacing",htmlBuilder(e,t){if(d8.hasOwnProperty(e.text)){var r=d8[e.text].className||"";if("text"===e.mode){var n=F3.makeOrd(e,t,"textord");return n.classes.push(r),n}return F3.makeSpan(["mspace",r],[F3.mathsym(e.text,e.mode,t)],t)}if(u8.hasOwnProperty(e.text))return F3.makeSpan(["mspace",u8[e.text]],[],t);throw new G2('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(!d8.hasOwnProperty(e.text)){if(u8.hasOwnProperty(e.text))return new g6.MathNode("mspace");throw new G2('Unknown type of space "'+e.text+'"')}return new g6.MathNode("mtext",[new g6.TextNode(" ")])}});var f8=()=>{var e=new g6.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};J3({type:"tag",mathmlBuilder(e,t){var r=new g6.MathNode("mtable",[new g6.MathNode("mtr",[f8(),new g6.MathNode("mtd",[k6(e.body,t)]),f8(),new g6.MathNode("mtd",[k6(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var h8={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},p8={"\\textbf":"textbf","\\textmd":"textmd"},m8={"\\textit":"textit","\\textup":"textup"},g8=(e,t)=>{var r=e.font;return r?h8[r]?t.withTextFontFamily(h8[r]):p8[r]?t.withTextFontWeight(p8[r]):"\\emph"===r?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(m8[r]):t};K3({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:Q3(o),font:n}},htmlBuilder(e,t){var r=g8(e,t),n=o6(e.body,r,!0);return F3.makeSpan(["mord","text"],n,r)},mathmlBuilder(e,t){var r=g8(e,t);return k6(e.body,r)}}),K3({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=u6(e.body,t),n=F3.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,i=F3.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 F3.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new g6.MathNode("mo",[new g6.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new g6.MathNode("munder",[S6(e.body,t),r]);return n.setAttribute("accentunder","true"),n}}),K3({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=u6(e.body,t),n=t.fontMetrics().axisHeight,o=.5*(r.height-n-(r.depth+n));return F3.makeVList({positionType:"shift",positionData:o,children:[{type:"elem",elem:r}]},t)},mathmlBuilder:(e,t)=>new g6.MathNode("mpadded",[S6(e.body,t)],["vcenter"])}),K3({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new G2("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=v8(e),n=[],o=t.havingStyle(t.style.text()),i=0;i<r.length;i++){var a=r[i];"~"===a&&(a="\\textasciitilde"),n.push(F3.makeSymbol(a,"Typewriter-Regular",e.mode,o,["mord","texttt"]))}return F3.makeSpan(["mord","text"].concat(o.sizingClasses(t)),F3.tryCombineChars(n),o)},mathmlBuilder(e,t){var r=new g6.TextNode(v8(e)),n=new g6.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var v8=e=>e.body.replace(/ /g,e.star?"␣":" "),y8=$3,b8="[ \r\n\t]",w8="(\\\\[a-zA-Z@]+)"+b8+"*",x8="[̀-ͯ]",k8=new RegExp(x8+"+$"),S8="("+b8+"+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧‪-퟿豈-￿]"+x8+"*|[\ud800-\udbff][\udc00-\udfff]"+x8+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|"+w8+"|\\\\[^\ud800-\udfff])";class _8{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(S8,"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 $2("EOF",new W2(this,t,t));var r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new G2("Unexpected character: '"+e[t]+"'",new $2(e[t],new W2(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 $2(n,new W2(this,t,this.tokenRegex.lastIndex))}}class C8{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 G2("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 T8=I7;B7("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),B7("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),B7("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),B7("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),B7("\\@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}}),B7("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),B7("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var E8={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};B7("\\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 G2("\\char` missing argument");n=r.text.charCodeAt(0)}else t=10;if(t){if(null==(n=E8[r.text])||n>=t)throw new G2("Invalid base-"+t+" digit "+r.text);for(var o;null!=(o=E8[e.future().text])&&o<t;)n*=t,n+=o,e.popToken()}return"\\@char{"+n+"}"});var A8=(e,t,r,n)=>{var o=e.consumeArg().tokens;if(1!==o.length)throw new G2("\\newcommand's first argument must be a macro name");var i=o[0].text,a=e.isDefined(i);if(a&&!t)throw new G2("\\newcommand{"+i+"} attempting to redefine "+i+"; use \\renewcommand");if(!a&&!r)throw new G2("\\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 G2("Invalid number of arguments: "+l);s=parseInt(l),o=e.consumeArg().tokens}return a&&n||e.macros.set(i,{tokens:o,numArgs:s}),""};B7("\\newcommand",e=>A8(e,!1,!0,!1)),B7("\\renewcommand",e=>A8(e,!0,!1,!1)),B7("\\providecommand",e=>A8(e,!0,!0,!0)),B7("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join("")),""}),B7("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join("")),""}),B7("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),y8[r],G5.math[r],G5.text[r]),""}),B7("\\bgroup","{"),B7("\\egroup","}"),B7("~","\\nobreakspace"),B7("\\lq","`"),B7("\\rq","'"),B7("\\aa","\\r a"),B7("\\AA","\\r A"),B7("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),B7("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),B7("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),B7("ℬ","\\mathscr{B}"),B7("ℰ","\\mathscr{E}"),B7("ℱ","\\mathscr{F}"),B7("ℋ","\\mathscr{H}"),B7("ℐ","\\mathscr{I}"),B7("ℒ","\\mathscr{L}"),B7("ℳ","\\mathscr{M}"),B7("ℛ","\\mathscr{R}"),B7("ℭ","\\mathfrak{C}"),B7("ℌ","\\mathfrak{H}"),B7("ℨ","\\mathfrak{Z}"),B7("\\Bbbk","\\Bbb{k}"),B7("·","\\cdotp"),B7("\\llap","\\mathllap{\\textrm{#1}}"),B7("\\rlap","\\mathrlap{\\textrm{#1}}"),B7("\\clap","\\mathclap{\\textrm{#1}}"),B7("\\mathstrut","\\vphantom{(}"),B7("\\underbar","\\underline{\\text{#1}}"),B7("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),B7("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),B7("\\ne","\\neq"),B7("≠","\\neq"),B7("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),B7("∉","\\notin"),B7("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),B7("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),B7("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),B7("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),B7("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),B7("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),B7("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),B7("⟂","\\perp"),B7("‼","\\mathclose{!\\mkern-0.8mu!}"),B7("∌","\\notni"),B7("⌜","\\ulcorner"),B7("⌝","\\urcorner"),B7("⌞","\\llcorner"),B7("⌟","\\lrcorner"),B7("©","\\copyright"),B7("®","\\textregistered"),B7("️","\\textregistered"),B7("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),B7("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),B7("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),B7("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),B7("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),B7("⋮","\\vdots"),B7("\\varGamma","\\mathit{\\Gamma}"),B7("\\varDelta","\\mathit{\\Delta}"),B7("\\varTheta","\\mathit{\\Theta}"),B7("\\varLambda","\\mathit{\\Lambda}"),B7("\\varXi","\\mathit{\\Xi}"),B7("\\varPi","\\mathit{\\Pi}"),B7("\\varSigma","\\mathit{\\Sigma}"),B7("\\varUpsilon","\\mathit{\\Upsilon}"),B7("\\varPhi","\\mathit{\\Phi}"),B7("\\varPsi","\\mathit{\\Psi}"),B7("\\varOmega","\\mathit{\\Omega}"),B7("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),B7("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),B7("\\boxed","\\fbox{$\\displaystyle{#1}$}"),B7("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),B7("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),B7("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),B7("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),B7("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var P8={",":"\\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"};B7("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in P8?t=P8[r]:("\\not"===r.slice(0,4)||r in G5.math&&Q2.contains(["bin","rel"],G5.math[r].group))&&(t="\\dotsb"),t});var I8={")":!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};B7("\\dotso",function(e){return e.future().text in I8?"\\ldots\\,":"\\ldots"}),B7("\\dotsc",function(e){var t=e.future().text;return t in I8&&","!==t?"\\ldots\\,":"\\ldots"}),B7("\\cdots",function(e){return e.future().text in I8?"\\@cdots\\,":"\\@cdots"}),B7("\\dotsb","\\cdots"),B7("\\dotsm","\\cdots"),B7("\\dotsi","\\!\\cdots"),B7("\\dotsx","\\ldots\\,"),B7("\\DOTSI","\\relax"),B7("\\DOTSB","\\relax"),B7("\\DOTSX","\\relax"),B7("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),B7("\\,","\\tmspace+{3mu}{.1667em}"),B7("\\thinspace","\\,"),B7("\\>","\\mskip{4mu}"),B7("\\:","\\tmspace+{4mu}{.2222em}"),B7("\\medspace","\\:"),B7("\\;","\\tmspace+{5mu}{.2777em}"),B7("\\thickspace","\\;"),B7("\\!","\\tmspace-{3mu}{.1667em}"),B7("\\negthinspace","\\!"),B7("\\negmedspace","\\tmspace-{4mu}{.2222em}"),B7("\\negthickspace","\\tmspace-{5mu}{.277em}"),B7("\\enspace","\\kern.5em "),B7("\\enskip","\\hskip.5em\\relax"),B7("\\quad","\\hskip1em\\relax"),B7("\\qquad","\\hskip2em\\relax"),B7("\\tag","\\@ifstar\\tag@literal\\tag@paren"),B7("\\tag@paren","\\tag@literal{({#1})}"),B7("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new G2("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),B7("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),B7("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),B7("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),B7("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),B7("\\newline","\\\\\\relax"),B7("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var B8=I5(v5["Main-Regular"]["T".charCodeAt(0)][1]-.7*v5["Main-Regular"]["A".charCodeAt(0)][1]);B7("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+B8+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),B7("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+B8+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),B7("\\hspace","\\@ifstar\\@hspacer\\@hspace"),B7("\\@hspace","\\hskip #1\\relax"),B7("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),B7("\\ordinarycolon",":"),B7("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),B7("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),B7("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),B7("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),B7("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),B7("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),B7("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),B7("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),B7("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),B7("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),B7("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),B7("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),B7("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),B7("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),B7("∷","\\dblcolon"),B7("∹","\\eqcolon"),B7("≔","\\coloneqq"),B7("≕","\\eqqcolon"),B7("⩴","\\Coloneqq"),B7("\\ratio","\\vcentcolon"),B7("\\coloncolon","\\dblcolon"),B7("\\colonequals","\\coloneqq"),B7("\\coloncolonequals","\\Coloneqq"),B7("\\equalscolon","\\eqqcolon"),B7("\\equalscoloncolon","\\Eqqcolon"),B7("\\colonminus","\\coloneq"),B7("\\coloncolonminus","\\Coloneq"),B7("\\minuscolon","\\eqcolon"),B7("\\minuscoloncolon","\\Eqcolon"),B7("\\coloncolonapprox","\\Colonapprox"),B7("\\coloncolonsim","\\Colonsim"),B7("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),B7("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),B7("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),B7("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),B7("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),B7("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),B7("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),B7("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),B7("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),B7("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),B7("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),B7("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),B7("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),B7("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),B7("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),B7("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),B7("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),B7("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),B7("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),B7("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),B7("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),B7("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),B7("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),B7("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),B7("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),B7("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),B7("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),B7("\\imath","\\html@mathml{\\@imath}{ı}"),B7("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),B7("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),B7("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),B7("⟦","\\llbracket"),B7("⟧","\\rrbracket"),B7("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),B7("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),B7("⦃","\\lBrace"),B7("⦄","\\rBrace"),B7("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),B7("⦵","\\minuso"),B7("\\darr","\\downarrow"),B7("\\dArr","\\Downarrow"),B7("\\Darr","\\Downarrow"),B7("\\lang","\\langle"),B7("\\rang","\\rangle"),B7("\\uarr","\\uparrow"),B7("\\uArr","\\Uparrow"),B7("\\Uarr","\\Uparrow"),B7("\\N","\\mathbb{N}"),B7("\\R","\\mathbb{R}"),B7("\\Z","\\mathbb{Z}"),B7("\\alef","\\aleph"),B7("\\alefsym","\\aleph"),B7("\\Alpha","\\mathrm{A}"),B7("\\Beta","\\mathrm{B}"),B7("\\bull","\\bullet"),B7("\\Chi","\\mathrm{X}"),B7("\\clubs","\\clubsuit"),B7("\\cnums","\\mathbb{C}"),B7("\\Complex","\\mathbb{C}"),B7("\\Dagger","\\ddagger"),B7("\\diamonds","\\diamondsuit"),B7("\\empty","\\emptyset"),B7("\\Epsilon","\\mathrm{E}"),B7("\\Eta","\\mathrm{H}"),B7("\\exist","\\exists"),B7("\\harr","\\leftrightarrow"),B7("\\hArr","\\Leftrightarrow"),B7("\\Harr","\\Leftrightarrow"),B7("\\hearts","\\heartsuit"),B7("\\image","\\Im"),B7("\\infin","\\infty"),B7("\\Iota","\\mathrm{I}"),B7("\\isin","\\in"),B7("\\Kappa","\\mathrm{K}"),B7("\\larr","\\leftarrow"),B7("\\lArr","\\Leftarrow"),B7("\\Larr","\\Leftarrow"),B7("\\lrarr","\\leftrightarrow"),B7("\\lrArr","\\Leftrightarrow"),B7("\\Lrarr","\\Leftrightarrow"),B7("\\Mu","\\mathrm{M}"),B7("\\natnums","\\mathbb{N}"),B7("\\Nu","\\mathrm{N}"),B7("\\Omicron","\\mathrm{O}"),B7("\\plusmn","\\pm"),B7("\\rarr","\\rightarrow"),B7("\\rArr","\\Rightarrow"),B7("\\Rarr","\\Rightarrow"),B7("\\real","\\Re"),B7("\\reals","\\mathbb{R}"),B7("\\Reals","\\mathbb{R}"),B7("\\Rho","\\mathrm{P}"),B7("\\sdot","\\cdot"),B7("\\sect","\\S"),B7("\\spades","\\spadesuit"),B7("\\sub","\\subset"),B7("\\sube","\\subseteq"),B7("\\supe","\\supseteq"),B7("\\Tau","\\mathrm{T}"),B7("\\thetasym","\\vartheta"),B7("\\weierp","\\wp"),B7("\\Zeta","\\mathrm{Z}"),B7("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),B7("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),B7("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),B7("\\bra","\\mathinner{\\langle{#1}|}"),B7("\\ket","\\mathinner{|{#1}\\rangle}"),B7("\\braket","\\mathinner{\\langle{#1}\\rangle}"),B7("\\Bra","\\left\\langle#1\\right|"),B7("\\Ket","\\left|#1\\right\\rangle");var N8=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}};B7("\\bra@ket",N8(!1)),B7("\\bra@set",N8(!0)),B7("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),B7("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),B7("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),B7("\\angln","{\\angl n}"),B7("\\blue","\\textcolor{##6495ed}{#1}"),B7("\\orange","\\textcolor{##ffa500}{#1}"),B7("\\pink","\\textcolor{##ff00af}{#1}"),B7("\\red","\\textcolor{##df0030}{#1}"),B7("\\green","\\textcolor{##28ae7b}{#1}"),B7("\\gray","\\textcolor{gray}{#1}"),B7("\\purple","\\textcolor{##9d38bd}{#1}"),B7("\\blueA","\\textcolor{##ccfaff}{#1}"),B7("\\blueB","\\textcolor{##80f6ff}{#1}"),B7("\\blueC","\\textcolor{##63d9ea}{#1}"),B7("\\blueD","\\textcolor{##11accd}{#1}"),B7("\\blueE","\\textcolor{##0c7f99}{#1}"),B7("\\tealA","\\textcolor{##94fff5}{#1}"),B7("\\tealB","\\textcolor{##26edd5}{#1}"),B7("\\tealC","\\textcolor{##01d1c1}{#1}"),B7("\\tealD","\\textcolor{##01a995}{#1}"),B7("\\tealE","\\textcolor{##208170}{#1}"),B7("\\greenA","\\textcolor{##b6ffb0}{#1}"),B7("\\greenB","\\textcolor{##8af281}{#1}"),B7("\\greenC","\\textcolor{##74cf70}{#1}"),B7("\\greenD","\\textcolor{##1fab54}{#1}"),B7("\\greenE","\\textcolor{##0d923f}{#1}"),B7("\\goldA","\\textcolor{##ffd0a9}{#1}"),B7("\\goldB","\\textcolor{##ffbb71}{#1}"),B7("\\goldC","\\textcolor{##ff9c39}{#1}"),B7("\\goldD","\\textcolor{##e07d10}{#1}"),B7("\\goldE","\\textcolor{##a75a05}{#1}"),B7("\\redA","\\textcolor{##fca9a9}{#1}"),B7("\\redB","\\textcolor{##ff8482}{#1}"),B7("\\redC","\\textcolor{##f9685d}{#1}"),B7("\\redD","\\textcolor{##e84d39}{#1}"),B7("\\redE","\\textcolor{##bc2612}{#1}"),B7("\\maroonA","\\textcolor{##ffbde0}{#1}"),B7("\\maroonB","\\textcolor{##ff92c6}{#1}"),B7("\\maroonC","\\textcolor{##ed5fa6}{#1}"),B7("\\maroonD","\\textcolor{##ca337c}{#1}"),B7("\\maroonE","\\textcolor{##9e034e}{#1}"),B7("\\purpleA","\\textcolor{##ddd7ff}{#1}"),B7("\\purpleB","\\textcolor{##c6b9fc}{#1}"),B7("\\purpleC","\\textcolor{##aa87ff}{#1}"),B7("\\purpleD","\\textcolor{##7854ab}{#1}"),B7("\\purpleE","\\textcolor{##543b78}{#1}"),B7("\\mintA","\\textcolor{##f5f9e8}{#1}"),B7("\\mintB","\\textcolor{##edf2df}{#1}"),B7("\\mintC","\\textcolor{##e0e5cc}{#1}"),B7("\\grayA","\\textcolor{##f6f7f7}{#1}"),B7("\\grayB","\\textcolor{##f0f1f2}{#1}"),B7("\\grayC","\\textcolor{##e3e5e6}{#1}"),B7("\\grayD","\\textcolor{##d6d8da}{#1}"),B7("\\grayE","\\textcolor{##babec2}{#1}"),B7("\\grayF","\\textcolor{##888d93}{#1}"),B7("\\grayG","\\textcolor{##626569}{#1}"),B7("\\grayH","\\textcolor{##3b3e40}{#1}"),B7("\\grayI","\\textcolor{##21242c}{#1}"),B7("\\kaBlue","\\textcolor{##314453}{#1}"),B7("\\kaGreen","\\textcolor{##71B307}{#1}");var D8={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class z8{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 C8(T8,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new _8(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 $2("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 G2("Extra }",n)}else if("EOF"===n.text)throw new G2("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 G2("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 G2("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 G2("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 G2("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 G2("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 G2("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 $2(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 _8(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)||y8.hasOwnProperty(e)||G5.math.hasOwnProperty(e)||G5.text.hasOwnProperty(e)||D8.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:y8.hasOwnProperty(e)&&!y8[e].primitive}}var O8=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,R8=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),M8={"́":{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"}},j8={"á":"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 L8{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 z8(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 G2("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 $2("}")),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!==L8.endOfExpression.indexOf(n.text))break;if(t&&n.text===t)break;if(e&&y8[n.text]&&y8[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 G2("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 G2("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 G2("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 G2("Double superscript",o);t=this.handleSupSubscript("superscript")}else if("_"===o.text){if(r)throw new G2("Double subscript",o);r=this.handleSupSubscript("subscript")}else if("'"===o.text){if(t)throw new G2("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(!R8[o.text])break;var l=O8.test(o.text),c=[];for(c.push(new $2(R8[o.text])),this.consume();;){var u=this.fetch().text;if(!R8[u])break;if(O8.test(u)!==l)break;c.unshift(new $2(R8[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=y8[n];if(!o)return null;if(this.consume(),t&&"atom"!==t&&!o.allowedInArgument)throw new G2("Got function '"+n+"' with no arguments"+(t?" as "+t:""),r);if("text"===this.mode&&!o.allowedInText)throw new G2("Can't use function '"+n+"' in text mode",r);if("math"===this.mode&&!1===o.allowedInMath)throw new G2("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=y8[e];if(a&&a.handler)return a.handler(i,t,r);throw new G2("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 G2("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 G2("A primitive argument cannot be optional");var i=this.parseGroup(e);if(null==i)throw new G2("Expected group as "+e,this.fetch());return i;case"original":case null:case void 0:return this.parseArgumentGroup(r);default:throw new G2("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 G2("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 G2("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 G2("Invalid size: '"+t.text+"'",t);var o={number:+(n[1]+n[2]),unit:n[3]};if(!A5(o))throw new G2("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:W2.range(n,s),body:a,semisimple:"\\begingroup"===o||void 0}}else if(null==(r=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===o[0]&&!D8.hasOwnProperty(o)){if(this.settings.throwOnError)throw new G2("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:W2.range(n,e[r+2]),text:"---"}),t-=2):(e.splice(r,2,{type:"textord",mode:"text",loc:W2.range(n,e[r+1]),text:"--"}),t-=1)),"'"!==o&&"`"!==o||e[r+1].text!==o||(e.splice(r,2,{type:"textord",mode:"text",loc:W2.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 G2("\\verb assertion failed --\n                    please report what input caused this bug");return{type:"verb",mode:"text",body:r=r.slice(1,-1),star:n}}j8.hasOwnProperty(t[0])&&!G5[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=j8[t[0]]+t.slice(1));var o,i=k8.exec(t);if(i&&("i"===(t=t.substring(0,i.index))?t="ı":"j"===t&&(t="ȷ")),G5[this.mode][t]){this.settings.strict&&"math"===this.mode&&C3.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var a,s=G5[this.mode][t].group,l=W2.range(e);if(W5.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&&(h5(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:W2.range(e),text:t}}if(this.consume(),i)for(var u=0;u<i[0].length;u++){var d=i[0][u];if(!M8[d])throw new G2("Unknown accent ' "+d+"'",e);var f=M8[d][this.mode]||M8[d].text;if(!f)throw new G2("Accent "+d+" unsupported in "+this.mode+" mode",e);o={type:"accent",mode:this.mode,loc:W2.range(e),label:f,isStretchy:!1,isShifty:!0,base:o}}return o}}L8.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var F8=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var r=new L8(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 G2("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:r.subparse([new $2("\\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 V8=function(e,t,r){if(r.throwOnError||!(e instanceof G2))throw e;var n=F3.makeSpan(["katex-error"],[new F5(t)]);return n.setAttribute("title",e.toString()),n.setAttribute("style","color:"+r.errorColor),n},q8=function(e,t){var r=new t5(t);try{return function(e,t,r){var n,o=C6(r);if("mathml"===r.output)return _6(e,t,o,r.displayMode,!0);if("html"===r.output){var i=f6(e,o);n=F3.makeSpan(["katex"],[i])}else{var a=_6(e,t,o,r.displayMode,!1),s=f6(e,o);n=F3.makeSpan(["katex"],[a,s])}return T6(n,r)}(F8(e,r),e,r)}catch(n){return V8(n,e,r)}},H8=function(e,t){return q8(e,t).toMarkup()};const U8=document.createElement("i");function W8(e){const t="&"+e+";";U8.innerHTML=t;const r=U8.textContent;return(59!==r.charCodeAt(r.length-1)||"semi"===e)&&(r!==t&&r)}function $8(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 G8(e,t){return e.length>0?($8(e,e.length,0,t),e):t}const Y8={}.hasOwnProperty;function K8(e){const t={};let r=-1;for(;++r<e.length;)J8(t,e[r]);return t}function J8(e,t){let r;for(r in t){const n=(Y8.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r];let i;if(o)for(i in o){Y8.call(n,i)||(n[i]=[]);const e=o[i];X8(n[i],Array.isArray(e)?e:e?[e]:[])}}}function X8(e,t){let r=-1;const n=[];for(;++r<t.length;)("after"===t[r].add?e:n).push(t[r]);$8(e,0,0,n)}function Q8(e){const t={};let r=-1;for(;++r<e.length;)Z8(t,e[r]);return t}function Z8(e,t){let r;for(r in t){const n=(Y8.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 e9={'"':"quot","&":"amp","<":"lt",">":"gt"};function t9(e){return e.replace(/["&<>]/g,function(e){return"&"+e9[e]+";"})}function r9(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const n9=m9(/[A-Za-z]/),o9=m9(/[\dA-Za-z]/),i9=m9(/[#-'*+\--9=?A-Z^-~]/);function a9(e){return null!==e&&(e<32||127===e)}const s9=m9(/\d/),l9=m9(/[\dA-Fa-f]/),c9=m9(/[!-/:-@[-`{-~]/);function u9(e){return null!==e&&e<-2}function d9(e){return null!==e&&(e<0||32===e)}function f9(e){return-2===e||-1===e||32===e}const h9=m9(new RegExp("\\p{P}|\\p{S}","u")),p9=m9(/\s/);function m9(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function g9(e,t){const r=t9(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&&o9(e.charCodeAt(r+1))&&o9(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 v9={}.hasOwnProperty,y9=/^(https?|ircs?|mailto|xmpp)$/i,b9=/^https?$/i;function w9(e){const t=e||{};let r=!0;const n={},o=[[]],i=[],a=[],s=Q8([{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(">"):k();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="'+g9("mailto:"+t)+'">'),v(w(t)),g("</a>")},autolinkProtocol:function(e){const r=this.sliceSerialize(e);g('<a href="'+g9(r,t.allowDangerousProtocol?void 0:y9)+'">'),v(w(r)),g("</a>")},blockQuote:function(){a.pop(),b(),g("</blockquote>"),f("slurpAllLineEndings")},characterEscapeValue:C,characterReferenceMarkerHexadecimal:P,characterReferenceMarkerNumeric:P,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):W8(t))),f("characterReferenceType")},codeFenced:S,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:S,codeText:function(){f("inCodeText"),g("</code>")},codeTextData:C,data:C,definition:function(){const e=r9(i[i.length-1].labelId);m(),v9.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:T,hardBreakTrailing:T,htmlFlow:E,htmlFlowData:C,htmlText:E,htmlTextData:C,image:_,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:_,listOrdered:function(){k(),a.pop(),y(),g("</ol>")},listUnordered:function(){k(),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=G8(a,e.slice(r,t)),r=t):(i=G8(i,e.slice(r,t+1)),r=t+1));i=G8(i,a),i=G8(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];v9.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:t9(e)}function x(){m()}function k(){h("lastWasTag")&&!h("slurpAllLineEndings")&&b(),g("</li>"),f("slurpAllLineEndings")}function S(){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 _(){let e=i.length-1;const o=i[e],a=o.referenceId||o.labelId,s=void 0===o.destination?n[r9(a)]:o;for(r=!0;e--;)if(i[e].image){r=void 0;break}o.image?(g('<img src="'+g9(s.destination,t.allowDangerousProtocol?void 0:b9)+'" alt="'),v(o.label),g('"')):g('<a href="'+g9(s.destination,t.allowDangerousProtocol?void 0:y9)+'"'),g(s.title?' title="'+s.title+'"':""),o.image?g(" />"):(g(">"),v(o.label),g("</a>")),i.pop()}function C(e){v(w(this.sliceSerialize(e)))}function T(){g("<br />")}function E(){f("ignoreEncode")}function A(){t.allowDangerousHtml&&f("ignoreEncode",!0)}function P(e){f("characterReferenceType",e.type)}}function x9(e,t,r,n){const o=n?n-1:Number.POSITIVE_INFINITY;let i=0;return function(n){if(f9(n))return e.enter(r),a(n);return t(n)};function a(n){return f9(n)&&i++<o?(e.consume(n),a):(e.exit(r),t(n))}}const k9={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"),x9(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)):u9(t)?(e.consume(t),e.exit("chunkText"),n):(e.consume(t),o)}}};const S9={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 $8(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(_9,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(_9,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)):u9(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++;$8(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}}},_9={tokenize:function(e,t,r){return x9(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function C9(e){return null===e||d9(e)||p9(e)?1:h9(e)?2:void 0}function T9(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 E9={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};A9(d,-s),A9(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=G8(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=G8(l,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=G8(l,T9(t.parser.constructs.insideSpan.null,e.slice(r+1,u),t)),l=G8(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=G8(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,$8(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=C9(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=C9(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 A9(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const P9={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 n9(t)?(e.consume(t),i):64===t?r(t):l(t)}function i(e){return 43===e||45===e||46===e||o9(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||o9(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||a9(n)?r(n):(e.consume(n),s)}function l(t){return 64===t?(e.consume(t),c):i9(t)?(e.consume(t),l):r(t)}function c(e){return o9(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||o9(t))&&n++<63){const r=45===t?d:u;return e.consume(t),r}return r(t)}}};const I9={partial:!0,tokenize:function(e,t,r){return function(t){return f9(t)?x9(e,n,"linePrefix")(t):n(t)};function n(e){return null===e||u9(e)?t(e):r(e)}}};const B9={continuation:{tokenize:function(e,t,r){const n=this;return function(t){if(f9(t))return x9(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(n){return e.attempt(B9,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 f9(r)?(e.enter("blockQuotePrefixWhitespace"),e.consume(r),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(r))}}};const N9={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 c9(n)?(e.enter("characterEscapeValue"),e.consume(n),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(n)}}};const D9={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=o9,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=l9,c):(e.enter("characterReferenceValue"),o=7,i=s9,c(t))}function c(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==o9||W8(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 z9={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)}}},O9={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"),f9(t)?x9(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"),f9(t)?x9(e,d,"whitespace")(t):d(t)):r(t)}function d(n){return null===n||u9(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"),f9(t)?x9(e,c,"whitespace")(t):c(t))}function c(r){return null===r||u9(r)?(e.exit("codeFencedFence"),n.interrupt?t(r):e.check(z9,h,y)(r)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(r))}function u(t){return null===t||u9(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):f9(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),x9(e,d,"whitespace")(t)):96===t&&t===i?r(t):(e.consume(t),u)}function d(t){return null===t||u9(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||u9(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&&f9(t)?x9(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||u9(t)?e.check(z9,h,y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||u9(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function y(r){return e.exit("codeFenced"),t(r)}}};const R9={name:"codeIndented",tokenize:function(e,t,r){const n=this;return function(t){return e.enter("codeIndented"),x9(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):u9(t)?e.attempt(M9,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||u9(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(r){return e.exit("codeIndented"),t(r)}}},M9={partial:!0,tokenize:function(e,t,r){const n=this;return o;function o(t){return n.parser.lazy[n.now().line]?r(t):u9(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):x9(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):u9(e)?o(e):r(e)}}};const j9={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)):u9(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||u9(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 L9{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&&F9(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),F9(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),F9(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);F9(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);F9(this.left,t.reverse())}}}function F9(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 V9(e){const t={};let r,n,o,i,a,s,l,c=-1;const u=new L9(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,q9(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 $8(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function q9(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 H9={resolve:function(e){return V9(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):u9(t)?e.check(U9,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}}},U9={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"),x9(e,o,"linePrefix")};function o(o){if(null===o||u9(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 W9(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||a9(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||u9(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&&!d9(o)?u<c&&40===o?(e.consume(o),u++,p):41===o?(e.consume(o),u--,p):null===o||32===o||40===o||a9(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 $9(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):u9(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||u9(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!f9(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function G9(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):u9(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),x9(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||u9(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 Y9(e,t){let r;return function n(o){if(u9(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,n;if(f9(o))return x9(e,n,r?"linePrefix":"lineSuffix")(o);return t(o)}}const K9={name:"definition",tokenize:function(e,t,r){const n=this;let o;return function(t){return e.enter("definition"),function(t){return $9.call(n,e,i,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=r9(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 d9(t)?Y9(e,s)(t):s(t)}function s(t){return W9(e,l,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(J9,c,c)(t)}function c(t){return f9(t)?x9(e,u,"whitespace")(t):u(t)}function u(i){return null===i||u9(i)?(e.exit("definition"),n.parser.defined.push(o),t(i)):r(i)}}},J9={partial:!0,tokenize:function(e,t,r){return function(t){return d9(t)?Y9(e,n)(t):r(t)};function n(t){return G9(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return f9(t)?x9(e,i,"whitespace")(t):i(t)}function i(e){return null===e||u9(e)?t(e):r(e)}}};const X9={name:"hardBreakEscape",tokenize:function(e,t,r){return function(t){return e.enter("hardBreakEscape"),e.consume(t),n};function n(n){return u9(n)?(e.exit("hardBreakEscape"),t(n)):r(n)}}};const Q9={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"},$8(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||d9(t)?(e.exit("atxHeadingSequence"),i(t)):r(t)}function i(r){return 35===r?(e.enter("atxHeadingSequence"),a(r)):null===r||u9(r)?(e.exit("atxHeading"),t(r)):f9(r)?x9(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||d9(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}}};const Z9=["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"],eee=["pre","script","style","textarea"],tee={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:z):n9(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):n9(i)?(e.consume(i),o=4,n.interrupt?t:z):r(i)}function d(o){return 45===o?(e.consume(o),n.interrupt?t:z):r(o)}function f(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?n.interrupt?t:T:f):r(o)}function h(t){return n9(t)?(e.consume(t),a=String.fromCharCode(t),p):r(t)}function p(s){if(null===s||47===s||62===s||d9(s)){const l=47===s,c=a.toLowerCase();return l||i||!eee.includes(c)?Z9.includes(a.toLowerCase())?(o=6,l?(e.consume(s),m):n.interrupt?t(s):T(s)):(o=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(s):i?g(s):v(s)):(o=1,n.interrupt?t(s):T(s))}return 45===s||o9(s)?(e.consume(s),a+=String.fromCharCode(s),p):r(s)}function m(o){return 62===o?(e.consume(o),n.interrupt?t:T):r(o)}function g(t){return f9(t)?(e.consume(t),g):_(t)}function v(t){return 47===t?(e.consume(t),_):58===t||95===t||n9(t)?(e.consume(t),y):f9(t)?(e.consume(t),v):_(t)}function y(t){return 45===t||46===t||58===t||95===t||o9(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),w):f9(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):f9(t)?(e.consume(t),w):k(t)}function x(t){return t===l?(e.consume(t),l=null,S):null===t||u9(t)?r(t):(e.consume(t),x)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||d9(t)?b(t):(e.consume(t),k)}function S(e){return 47===e||62===e||f9(e)?v(e):r(e)}function _(t){return 62===t?(e.consume(t),C):r(t)}function C(t){return null===t||u9(t)?T(t):f9(t)?(e.consume(t),C):r(t)}function T(t){return 45===t&&2===o?(e.consume(t),I):60===t&&1===o?(e.consume(t),B):62===t&&4===o?(e.consume(t),O):63===t&&3===o?(e.consume(t),z):93===t&&5===o?(e.consume(t),D):!u9(t)||6!==o&&7!==o?null===t||u9(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(ree,R,E)(t))}function E(t){return e.check(nee,A,R)(t)}function A(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return null===t||u9(t)?E(t):(e.enter("htmlFlowData"),T(t))}function I(t){return 45===t?(e.consume(t),z):T(t)}function B(t){return 47===t?(e.consume(t),a="",N):T(t)}function N(t){if(62===t){const r=a.toLowerCase();return eee.includes(r)?(e.consume(t),O):T(t)}return n9(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),N):T(t)}function D(t){return 93===t?(e.consume(t),z):T(t)}function z(t){return 62===t?(e.consume(t),O):45===t&&2===o?(e.consume(t),z):T(t)}function O(t){return null===t||u9(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),O)}function R(r){return e.exit("htmlFlow"),t(r)}}},ree={partial:!0,tokenize:function(e,t,r){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(I9,t,r)}}},nee={partial:!0,tokenize:function(e,t,r){const n=this;return function(t){if(u9(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 oee={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):n9(t)?(e.consume(t),S):r(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,h):n9(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):u9(t)?(a=u,N(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?B(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):u9(t)?(a=p,N(t)):(e.consume(t),p)}function m(t){return 93===t?(e.consume(t),g):p(t)}function g(t){return 62===t?B(t):93===t?(e.consume(t),g):p(t)}function v(t){return null===t||62===t?B(t):u9(t)?(a=v,N(t)):(e.consume(t),v)}function y(t){return null===t?r(t):63===t?(e.consume(t),b):u9(t)?(a=y,N(t)):(e.consume(t),y)}function b(e){return 62===e?B(e):y(e)}function w(t){return n9(t)?(e.consume(t),x):r(t)}function x(t){return 45===t||o9(t)?(e.consume(t),x):k(t)}function k(t){return u9(t)?(a=k,N(t)):f9(t)?(e.consume(t),k):B(t)}function S(t){return 45===t||o9(t)?(e.consume(t),S):47===t||62===t||d9(t)?_(t):r(t)}function _(t){return 47===t?(e.consume(t),B):58===t||95===t||n9(t)?(e.consume(t),C):u9(t)?(a=_,N(t)):f9(t)?(e.consume(t),_):B(t)}function C(t){return 45===t||46===t||58===t||95===t||o9(t)?(e.consume(t),C):T(t)}function T(t){return 61===t?(e.consume(t),E):u9(t)?(a=T,N(t)):f9(t)?(e.consume(t),T):_(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?r(t):34===t||39===t?(e.consume(t),o=t,A):u9(t)?(a=E,N(t)):f9(t)?(e.consume(t),E):(e.consume(t),P)}function A(t){return t===o?(e.consume(t),o=void 0,I):null===t?r(t):u9(t)?(a=A,N(t)):(e.consume(t),A)}function P(t){return null===t||34===t||39===t||60===t||61===t||96===t?r(t):47===t||62===t||d9(t)?_(t):(e.consume(t),P)}function I(e){return 47===e||62===e||d9(e)?_(e):r(e)}function B(n){return 62===n?(e.consume(n),e.exit("htmlTextData"),e.exit("htmlText"),t):r(n)}function N(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return f9(t)?x9(e,z,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):z(t)}function z(t){return e.enter("htmlTextData"),a(t)}}};const iee={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&&$8(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=G8(i,e.slice(n+1,n+s+3)),i=G8(i,[["enter",u,t]]),i=G8(i,T9(t.parser.constructs.insideSpan.null,e.slice(n+s+4,o-3),t)),i=G8(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=G8(i,e.slice(o+1)),i=G8(i,[["exit",l,t]]),$8(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(r9(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(aee,c,i?c:u)(t):91===t?e.attempt(see,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(lee,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,r(e)}}},aee={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 d9(t)?Y9(e,o)(t):o(t)}function o(t){return 41===t?c(t):W9(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return d9(t)?Y9(e,s)(t):c(t)}function a(e){return r(e)}function s(t){return 34===t||39===t||40===t?G9(e,l,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return d9(t)?Y9(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)}}},see={tokenize:function(e,t,r){const n=this;return function(t){return $9.call(n,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return n.parser.defined.includes(r9(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(e):r(e)}function i(e){return r(e)}}},lee={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 cee={name:"labelStartImage",resolveAll:iee.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 uee={name:"labelStartLink",resolveAll:iee.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 dee={name:"lineEnding",tokenize:function(e,t){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),x9(e,t,"linePrefix")}}};const fee={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||u9(i))?(e.exit("thematicBreak"),t(i)):r(i)}function a(t){return t===n?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),f9(t)?x9(e,i,"whitespace")(t):i(t))}}};const hee={continuation:{tokenize:function(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(I9,function(r){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,x9(e,t,"listItemIndent",n.containerState.size+1)(r)},function(r){if(n.containerState.furtherBlankLines||!f9(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(mee,t,o)(r)});function o(o){return n.containerState._closeFlow=!0,n.interrupt=void 0,x9(e,e.attempt(hee,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:s9(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(fee,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 s9(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(I9,n.interrupt?r:c,e.attempt(pee,d,u))}function c(e){return n.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return f9(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)}}},pee={partial:!0,tokenize:function(e,t,r){const n=this;return x9(e,function(e){const o=n.events[n.events.length-1];return!f9(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):r(e)},"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},mee={partial:!0,tokenize:function(e,t,r){const n=this;return x9(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 gee={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"),f9(t)?x9(e,a,"lineSuffix")(t):a(t))}function a(n){return null===n||u9(n)?(e.exit("setextHeadingLine"),t(n)):r(n)}}};const vee={tokenize:function(e){const t=this,r=e.attempt(I9,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,x9(e,e.attempt(this.parser.constructs.flow,n,e.attempt(H9,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 yee={resolveAll:kee()},bee=xee("string"),wee=xee("text");function xee(e){return{resolveAll:kee("text"===e?See: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 kee(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 See(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 _ee={42:hee,43:hee,45:hee,48:hee,49:hee,50:hee,51:hee,52:hee,53:hee,54:hee,55:hee,56:hee,57:hee,62:B9},Cee={91:K9},Tee={[-2]:R9,[-1]:R9,32:R9},Eee={35:Q9,42:fee,45:[gee,fee],60:tee,61:gee,95:fee,96:O9,126:O9},Aee={38:D9,92:N9},Pee={[-5]:dee,[-4]:dee,[-3]:dee,33:cee,38:D9,42:E9,60:[P9,oee],91:uee,92:[X9,N9],93:iee,95:E9,96:j9},Iee={null:[E9,yee]},Bee=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:Cee,disable:{null:[]},document:_ee,flow:Eee,flowInitial:Tee,insideSpan:Iee,string:Aee,text:Pee},Symbol.toStringTag,{value:"Module"}));function Nee(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){u9(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=G8(a,e),h(),null!==a[a.length-1])return[];return v(t,0),c.events=T9(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&&$8(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 Dee=/[\0\t\n\r]/g;function zee(e,t,r){return"string"!=typeof t&&(r=t,t=void 0),w9(r)(function(e){for(;!V9(e););return e}(function(e){const t={constructs:K8([Bee,...(e||{}).extensions||[]]),content:r(k9),defined:[],document:r(S9),flow:r(vee),lazy:{},string:r(bee),text:r(wee)};return t;function r(e){return function(r){return Nee(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(Dee.lastIndex=u,l=Dee.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 Oee={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},Ree={tokenize:function(e,t,r){let n,o,i;return a;function a(t){return 46===t||95===t?e.check(jee,l,s)(t):null===t||d9(t)||p9(t)||45!==t&&h9(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},Mee={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(jee,t,i)(a):null===a||d9(a)||p9(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&n++,e.consume(t),o}},partial:!0},jee={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||d9(a)||p9(a)?t(a):r(a)}function o(e){return null===e||40===e||91===e||d9(e)||p9(e)?t(e):n(e)}function i(e){return n9(e)?a(e):r(e)}function a(t){return 59===t?(e.consume(t),n):n9(t)?(e.consume(t),a):r(t)}},partial:!0},Lee={tokenize:function(e,t,r){return function(t){return e.consume(t),n};function n(e){return o9(e)?r(e):t(e)}},partial:!0},Fee={name:"wwwAutolink",tokenize:function(e,t,r){const n=this;return function(t){if(87!==t&&119!==t||!Wee.call(n,n.previous)||Kee(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Oee,e.attempt(Ree,e.attempt(Mee,o),r),r)(t)};function o(r){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(r)}},previous:Wee},Vee={name:"protocolAutolink",tokenize:function(e,t,r){const n=this;let o="",i=!1;return function(t){if((72===t||104===t)&&$ee.call(n,n.previous)&&!Kee(n.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a;return r(t)};function a(t){if(n9(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||a9(t)||d9(t)||p9(t)||h9(t)?r(t):e.attempt(Ree,e.attempt(Mee,c),r)(t)}function c(r){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(r)}},previous:$ee},qee={name:"emailAutolink",tokenize:function(e,t,r){const n=this;let o,i;return function(t){if(!Yee(t)||!Gee.call(n,n.previous)||Kee(n.events))return r(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Yee(t)?(e.consume(t),a):64===t?(e.consume(t),s):r(t)}function s(t){return 46===t?e.check(Lee,c,l)(t):45===t||95===t||o9(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&&n9(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):r(a)}},previous:Gee},Hee={};let Uee=48;for(;Uee<123;)Hee[Uee]=qee,Uee++,58===Uee?Uee=65:91===Uee&&(Uee=97);function Wee(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||d9(e)}function $ee(e){return!n9(e)}function Gee(e){return!(47===e||Yee(e))}function Yee(e){return 43===e||45===e||46===e||95===e||o9(e)}function Kee(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 Jee(e){Zee.call(this,e,"http://")}function Xee(e){Zee.call(this,e,"mailto:")}function Qee(e){Zee.call(this,e)}function Zee(e,t){const r=this.sliceSerialize(e);this.tag('<a href="'+g9((t||"")+r)+'">'),this.raw(this.encode(r)),this.tag("</a>")}Hee[43]=qee,Hee[45]=qee,Hee[46]=qee,Hee[95]=qee,Hee[72]=[qee,Vee],Hee[104]=[qee,Vee],Hee[87]=[qee,Fee],Hee[119]=[qee,Fee];const ete={tokenize:function(e,t,r){const n=this;return x9(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 tte(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=r9(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 rte(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 nte(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||d9(s))return r(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(r9(n.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(s)}return d9(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 ote(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||d9(t))return r(t);if(93===t){e.exit("chunkString");const r=e.exit("gfmFootnoteDefinitionLabelString");return i=r9(n.sliceSerialize(r)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return d9(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),x9(e,f,"gfmFootnoteDefinitionWhitespace")):r(t)}function f(e){return t(e)}}function ite(e,t,r){return e.check(I9,t,e.attempt(ete,t,r))}function ate(e){e.exit("gfmFootnoteDefinition")}const ste={}.hasOwnProperty,lte={};function cte(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function ute(e){const t=lte,r=t.label||"Footnotes",n=t.labelTagName||"h2",o=null==t.labelAttributes?'class="sr-only"':t.labelAttributes,i=t.backLabel||cte,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={}),ste.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(r9(this.sliceSerialize(e))),this.resume(),this.buffer()},gfmFootnoteCallString(e){let t=this.getData("gfmFootnoteCallOrder"),r=this.getData("gfmFootnoteCallCounts");const n=r9(this.sliceSerialize(e));let o;this.resume(),t||this.setData("gfmFootnoteCallOrder",t=[]),r||this.setData("gfmFootnoteCallCounts",r={});const i=t.indexOf(n),s=g9(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=g9(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 dte(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=C9(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=C9(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&&$8(a,a.length,0,T9(s,e.slice(n+1,r),t)),$8(a,a.length,0,[["exit",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["exit",o,t]]),$8(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 fte={none:"",left:' align="left"',right:' align="right"',center:' align="center"'};function hte(e,t){return"|"===t?t:e}class pte{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 mte(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 gte(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):u9(t)?a>1?(a=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):r(t):f9(t)?x9(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||d9(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,f9(t)?x9(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 f9(t)?x9(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||u9(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 f9(t)?x9(e,y,"whitespace")(t):y(t)}function y(r){return 124===r?f(r):(null===r||u9(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||u9(r)?(e.exit("tableRow"),t(r)):f9(r)?x9(e,x,"whitespace")(r):(e.enter("data"),k(r))}function k(t){return null===t||124===t||d9(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?S:k)}function S(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function vte(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 pte;for(;++i<e.length;){const h=e[i],p=h[1];"enter"===h[0]?"tableHead"===p.type?(u=!1,0!==d&&(bte(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=yte(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=yte(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=yte(f,t,l,s,i,o)):0!==c[1]&&(o=yte(f,t,c,s,i,o)),s=0):!s||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type||(c[3]=i)}for(0!==d&&bte(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=mte(t.events,i))}return e}function yte(e,t,r,n,o,i){const a=1===n?"tableHeader":2===n?"tableDelimiter":"tableData";0!==r[0]&&(i.end=Object.assign({},wte(t.events,r[0])),e.add(r[0],0,[["exit",i,t]]));const s=wte(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=wte(t.events,r[2]),i=wte(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({},wte(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function bte(e,t,r,n,o){const i=[],a=wte(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 wte(e,t){const r=e[t],n="enter"===r[0]?"start":"end";return r[1][n]}const xte=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,kte=new RegExp("^"+xte.source,"i");function Ste(e,t){let r=this.sliceSerialize(e);this.options.allowDangerousHtml&&(r=r.replace(t,"&lt;$1$2")),this.raw(this.encode(r))}const _te={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 d9(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 u9(n)?t(n):f9(n)?e.check({tokenize:Cte},t,r)(n):r(n)}}};function Cte(e,t,r){return x9(e,function(e){return null===e?r(e):t(e)},"whitespace")}const Tte="​";function*Ete(e){const{length:t}=e;for(let r=0;r<t;r++)yield e.item(r)}function Ate(e,t,r){r?e.setAttribute(t,"function"==typeof r?r(e.getAttribute(t)??void 0):r):!1===r&&e.removeAttribute(t)}const Pte=92,Ite=36,Bte=(e,t)=>function(r,n,o){const i=this,a=e===Ite?[Ite]:[91,40],s=e===Ite?[Ite]:[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===Ite?r.check(u,o,f):f):o(n)}function f(n){return null===n?o(n):u9(n)?t&&!l?o(n):(c||=e===Ite,function(e){return r.consume(e),r.exit("mathChunk"),r.enter("mathChunk"),f}(n)):n===e?r.check(u,p,h)(n):n===Pte?(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===Ite||t?n:v}function g(e){return e!==Ite&&e!==Pte?f(e):(r.consume(e),f)}function v(e){return d9(e)||null===e?n(e):o(e)}};function Nte(){const e=(...e)=>({name:"math",tokenize:Bte(...e)});return{text:{[Pte]:e(Pte,!0),[Ite]:e(Ite,!0)},flow:{[Pte]:e(Pte,!1),[Ite]:e(Ite,!1)}}}function Dte(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 zte=["data","http","https","ftp","mailto","sip","tel"];function Ote(e,{markdownRespectCRLF:t,markdownRenderHTML:r},{externalLinkAlt:n,isWelcomeMessage:o=!1,dataBiTagDecorator:i}){const a=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 s=0;const l=function(e){const t=(new DOMParser).parseFromString(e,"text/html"),r=t.createDocumentFragment();return r.append(...t.body.childNodes),r}(zee(e=(e=>e.replace(/\n\r|\r\n/g,e=>"\n\r"===e?"\r\n":"\n\r"))(e),{allowDangerousHtml:r,allowDangerousProtocol:!0,extensions:[K8([{text:Hee},{document:{91:{name:"gfmFootnoteDefinition",tokenize:ote,continuation:{tokenize:ite},exit:ate}},text:{91:{name:"gfmFootnoteCall",tokenize:nte},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:tte,resolveTo:rte}}},dte(),{flow:{null:{name:"table",tokenize:gte,resolveAll:vte}}},{text:{91:_te}}]),Nte()],htmlExtensions:[Q8([{exit:{literalAutolinkEmail:Xee,literalAutolinkHttp:Qee,literalAutolinkWww:Jee}},ute(),{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=fte[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=fte[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,hte)),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"+fte[e[t]]+"></td>"),t++;this.setData("tableColumn",t),this.lineEndingIfNeeded(),this.tag("</tr>")}}},{exit:{htmlFlowData(e){Ste.call(this,e,xte)},htmlTextData(e){Ste.call(this,e,kte)}}},{enter:{taskListCheck(){this.tag('<input type="checkbox" disabled="" ')}},exit:{taskListCheck(){this.tag("/>")},taskListCheckValueChecked(){this.tag('checked="" ')}}}]),Dte({renderMath:(e,t)=>H8(e,{displayMode:t,output:"mathml"})})]}));return function(e,t){for(const r of[...Ete(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,iconAlt:m,iconClassName:g,rel:v,target:y,title:b,wrapZeroWidthSpace:w}=e;if(void 0!==n&&Ate(r,"aria-label",n),void 0!==i&&Ate(r,"class",i),void 0!==a&&Ate(r,"data-bi-cn",a),void 0!==s&&Ate(r,"data-bi-ecn",s),void 0!==l&&Ate(r,"data-bi-ct",l),void 0!==c&&Ate(r,"data-bi-compnm",c),void 0!==u&&Ate(r,"data-bi-hn",u),void 0!==d&&Ate(r,"data-bi-ehn",d),void 0!==f&&Ate(r,"data-bi-an",f),void 0!==h&&Ate(r,"data-bi-view",h),void 0!==p&&Ate(r,"data-bi-bhvr",p),void 0!==b&&Ate(r,"title",b),g){const e=document.createElement("img");e.setAttribute("src","data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"),e.setAttribute("alt",""),e.classList.add(g),m&&e.setAttribute("title",m),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("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),w&&(e.insertAdjacentText("beforebegin",Tte),e.insertAdjacentText("afterend",Tte))}else void 0!==v&&Ate(r,"rel",v),void 0!==y&&Ate(r,"target",y),w&&(r.insertAdjacentText("beforebegin",Tte),r.insertAdjacentText("afterend",Tte))}}(l,(e,t)=>{const r={rel:"noopener noreferrer",target:"_blank",wrapZeroWidthSpace:!0},l=[t],c=new Set,u=a.find(({url:t})=>t===e),d=F2(()=>new URL(e).protocol);u&&l.push(u.title||F2(()=>new URL(u.url).host)||u.url);let f=t===P2.PRIVACY_LINK_TEXT;if("javascript:"!==d)if("string"==typeof d&&zte.map(e=>`${e}:`).includes(d)){if("http:"===d||"https:"===d){s++;const e=U2(o?L2.WELCOME:i,f),{dataBiCn:a,dataBiEcn:c}=e.contentGenerator(u??{},t,s,f);r.dataBiCn=a,r.dataBiEcn=c,r.dataBiCt=e.decoration.dataBiCt,r.dataBiBhvr=e.decoration.dataBiBhvr,r.dataBiCompnm=e.decoration.dataBiCompnm,r.dataBiView=e.decoration.dataBiView,r.dataBiHn=e.decoration.dataBiHn,r.dataBiEhn=e.decoration.dataBiEhn,r.dataBiAn=e.decoration.dataBiAn,r.iconAlt=n,r.iconClassName="uca__render-markdown__external-link-icon",l.push(n)}}else r.asButton=!0,c.add("uca__render-markdown__citation");return l.length>1&&(r.ariaLabel=e=>e||l.join(" ")),r.className=Array.from(c).join(" "),r.title=!1,r}),c=l,(new XMLSerializer).serializeToString(c).trim();var c}const{log:Rte,logError:Mte}=z.withKind("adaptiveCard"),jte={toggleInputToggle:Ix("AdaptiveCard/TOGGLEINPUTTOGGLE")},Lte=e=>{const t=e.closest(".ac-adaptiveCard"),r=t?.querySelector(".ac-textBlock")?.textContent?.trim(),n=t?.querySelector(".ac-textBlock:nth-child(2)")?.textContent?.trim(),o=e.tagName.toLowerCase(),i="button"===o||"button"===e.getAttribute("role"),a="img"===o,s="link"===e.getAttribute("role"),l=e.textContent?.trim()||"",c=e.getAttribute("value")||e.getAttribute("data-value")||"",u=e.getAttribute("id")||e.getAttribute("data-id")||"",d=e.getAttribute("title")||"";let f={};i&&(f={buttonText:l,buttonValue:c,buttonId:u,buttonTitle:d}),a&&(f={imageAlt:e.getAttribute("alt")||"",imageSrc:e.getAttribute("src")||"",imageTitle:d,imageId:u}),s&&(f={linkUrl:e.getAttribute("title")||""});const h=d.includes("chataction://sendmessage")||e.getAttribute("href")?.includes("chataction://sendmessage")||e.getAttribute("data-action")?.includes("chataction://sendmessage"),p=Array.from(e.attributes).filter(e=>e.name.startsWith("data-")).reduce((e,t)=>(e[t.name]=t.value,e),{});return{cardTitle:r||"",cardSubtitle:n||"",elementType:o,elementText:l,elementValue:c,elementId:u,elementTitle:d,isButton:i,isImage:a,isLink:s,...f,isLpSurveyElement:h,existingDataAttrs:p,cardElement:t,element:e}},Fte=(e,t)=>{if(e.dataset.biCompnm=I2.AI_ASSISTANT,e.dataset.biAn=N2.AI_CHAT_DRAWER,e.dataset.biView=M2.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=P2.PROMPT_BUTTON,e.dataset.biBhvr=R2.PROMPT_BUTTON_BHVR,t.isLink&&(e.dataset.biBhvr=""),t.isLpSurveyElement&&(e.dataset.biBhvr=R2.SURVEY_INITIATE,e.dataset.biHn=t.cardTitle,e.dataset.biEhn=t.cardTitle),t.cardTitle&&!t.isLpSurveyElement&&(e.dataset.biHn=t.cardTitle,e.dataset.biEhn=t.cardTitle)}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=R2.SURVEY_INITIATE,e.dataset.biCt=P2.STARS,t.cardTitle&&(e.dataset.biHn=t.cardTitle,e.dataset.biEhn=t.cardTitle),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.cardTitle},Vte=e=>{const t=yw(),{sendMessageWithTelemetry:r}=E2(),[n,o]=g.useState(!1),[i,a]=g.useState("False"),[s,l]=g.useState(null),[c,u]=g.useState(null),d=g.useRef(null);g.useEffect(()=>{if(n&&d.current){d.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")})}},[n,s]),g.useEffect(()=>{if(d.current){d.current.querySelectorAll('input[type="checkbox"]').forEach(e=>{const t=e,r=t.getAttribute("id"),n=Lte(t);if(((e,t)=>{e.dataset.biCompnm=I2.AI_ASSISTANT,e.dataset.biAn=N2.AI_CHAT_DRAWER,e.dataset.biView=M2.AI_CHAT_DRAWER,e.dataset.biHn=D2.AI_POWERED_ASSISTANT,e.dataset.biEhn=D2.AI_POWERED_ASSISTANT;const r=e.checked?"off":"on";e.dataset.biCn=r,e.dataset.biEcn=r,e.dataset.biCt=P2.CHECKBOX,e.dataset.biBhvr=R2.PROMPT_BUTTON_BHVR,t.cardTitle&&(e.dataset.biHn=t.cardTitle,e.dataset.biEhn=t.cardTitle)})(t,n),!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=d.current?d.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=Ote(e.dataset.markdown,{markdownRespectCRLF:!0,markdownRenderHTML:!0},{externalLinkAlt:"Opens in new tab"});e.innerHTML=r}}}})}},[e.attachment.content]),g.useEffect(()=>{if(d.current){d.current.querySelectorAll(".ac-actionSet button").forEach(e=>{const t=e,r=Lte(t);Fte(t,r)});d.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=Lte(t);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}Fte(n,r),Array.from(t.attributes).forEach(e=>{e.name.startsWith("data-bi")&&t.removeAttribute(e.name)})});d.current.querySelectorAll('.ac-adaptiveCard [data-trackable="true"]:not(button):not(img)').forEach(e=>{const t=e,r=Lte(t);Fte(t,r)})}},[e.attachment.content]),g.useEffect(()=>{const e=d.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})}}},[]),oQ(),UK.actionButtonRenderer=cQ,UK.defaultElements.register("Input.Text",e=>new Y4,vY.v1_0),UK.defaultElements.register("Input.Date",e=>new f4,vY.v1_0),UK.defaultElements.register("Input.Time",e=>new g2,vY.v1_0),UK.defaultElements.register("Input.Number",e=>new p4,vY.v1_0),UK.defaultElements.register("Input.Toggle",e=>new y2,vY.v1_0),UK.defaultElements.register("Input.ChoiceSet",e=>new aZ,vY.v1_0),EX.registerCustomMediaPlayers(CX,TX,_X),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 f=new RX;return f.parse(e.attachment.content,new VK(vY.v1_5)),f.onInputValueChanged=r=>{if(r instanceof y2){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(jte.toggleInputToggle({activityId:e.activityId,elementId:o.id})):Mte("AdaptiveCard","In card.onInputValueChanged","input.id doesn't exist or is not a string")}else Mte("AdaptiveCard","In card.onInputValueChanged","input.index is out of bounds of props.attachment.content.body length");else Mte("AdaptiveCard","In card.onInputValueChanged","props.attachment.content.body had no value or is not an array")}else Mte("AdaptiveCard","In card.onInputValueChanged",`Unexpected input type: ${r.constructor.name}`)},f.onExecuteAction=e=>{if(n)return;const t=e=>{if(e)try{const t=new URL(e).searchParams.get("text"),n=tC.sanitize(t||"");n?(r(decodeURIComponent(n),"text",{}),Rte("Sent LivePerson survey response via telemetry:",n)):Rte("No text parameter found in chataction URL:",e)}catch(t){Rte("Error parsing chataction URL:",e,t)}};e instanceof bJ?(o(!0),l(e.id||e.url||"unknown"),e.url&&e.url.startsWith("chataction://sendmessage")?t(e.url):e.url&&window.open(e.url,"_blank","noopener,noreferrer")):e instanceof vJ&&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")&&t(e.title),r("","",{postBack:!0},e.data)):Rte("Unsupported action type:",e)},p.jsx("div",{ref:d,className:"adaptive-card-container "+(n?"actions-disabled":""),"data-card-id":c||void 0,...c&&{id:`adaptive-card-${c}`},children:p.jsx(DK,{cardObject:f})})},qte=e=>e?"True":"False",Hte=e=>(e.value||"").toLowerCase()===(e.valueOn||"").toLowerCase(),Ute=(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=qte(!Hte(e))))});return r},Wte="DIRECT_LINE/INCOMING_ACTIVITY";const{log:$te}=z.withKind("webChatSlice"),Gte=Ix(Wte),Yte=Kx({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},reducers:{},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?O.LivePerson:O.DirectLine},extraReducers(e){e.addCase(Gte,(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=qte(Hte(e)))})})(o),"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)||"message"!==n&&"typing"!==n||(e.chatHistory=[...e.chatHistory,o]),e.activities=[...e.activities,o]}),e.addCase(jte.toggleInputToggle,(e,t)=>{const r=Ute(e.chatHistory,t.payload,null);Ute(e.activities,t.payload,r)}),e.addCase(x2.messageReceived,(e,t)=>{$te("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()}):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",text:t.payload.text,key:t.payload.key,attachments:t.payload.attachments||[],localTimestamp:(new Date).toISOString()})}),e.addCase(x2.setLivePersonConnectionState,(e,t)=>{e.livePerson.connectionState=t.payload}),e.addCase(x2.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(x2.setLivePersonState,(e,t)=>{e.livePerson={...e.livePerson,...t.payload}}),e.addCase(x2.signalTypingInUI,(e,t)=>{$te("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(b2,(e,t)=>{e.userHasSentMessage=!0}),e.addCase(x2.messageSend,(e,t)=>{e.userHasSentMessage=!0})}}),{activitiesSelector:Kte,filterByTypeActivitiesSelector:Jte,chatHistorySelector:Xte,livePersonSelector:Qte,livePersonAccountIdSelector:Zte,livePersonSkillIdSelector:ere,livePersonConnectionStateSelector:tre,livePersonDebugOptionsSelector:rre,chatPlatformSelector:nre}=Yte.selectors,ore=Ew({directLine:PC,drawerControls:RC,error:$C,optionsProvider:ek,proactivePrompts:a$,themeProvider:c$,webChat:Yte.reducer});var ire=function(e){return{done:!0,value:e}},are={};function sre(e){return xk(e)?"channel":kk(e)?String(e):mk(e)?e.name:String(e)}function lre(e,t,r){var n,o,i,a=t;function s(t,r){if(a===are)return ire(t);if(r&&!o)throw a=are,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===are?ire(t):i}return Dk(s,function(e){return s(null,e)},r)}function cre(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:oS(e)},s=function(e){return i=e};return lre({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=i,{done:!1,value:uS.apply(void 0,[t].concat(n,[e]))})};var e}},"q1","takeEvery("+sre(e)+", "+t.name+")")}function ure(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:oS(e)},s=function(e){return i=e};return lre({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=i,{done:!1,value:cS.apply(void 0,[t].concat(n,[e]))})};var e}},"q1","takeLeading("+sre(e)+", "+t.name+")")}function dre(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 uS.apply(void 0,[cre,e,t].concat(n))}function fre(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 uS.apply(void 0,[ure,e,t].concat(n))}const hre="DIRECT_LINE/CONNECT",pre=`${hre}_FULFILLED`,mre=`${hre}_FULFILLING`;const gre="DIRECT_LINE/RECONNECT",vre=`${gre}_FULFILLED`,yre=`${gre}_FULFILLING`,bre=`${gre}_PENDING`,wre="DIRECT_LINE/POST_ACTIVITY",xre=`${wre}_FULFILLED`,kre=`${wre}_IMPEDED`,Sre=`${wre}_PENDING`,_re=`${wre}_REJECTED`;function Cre(e,t="keyboard"){return{type:wre,meta:{method:t},payload:{activity:e}}}let Tre=[];const Ere=e=>{Tre.push(e)},Are=e=>{Tre=Tre.filter(t=>t!==e)},Pre=()=>{const e=yw(),t=Zb(e=>e.drawerControls.isDrawerOpen);g.useEffect(()=>{const r=mC();if(r&&"Modern"===r.agent){const n=r.ocrAIChatDrawerState===aC;n!==t&&e(OC(n))}const n=t=>{const r=t?.ocrAIChatDrawerState,n=r===aC;n!==Xme.getState().drawerControls.isDrawerOpen&&e(OC(n))};return Ere(n),()=>{Are(n)}},[e]);const r=g.useCallback(()=>{const r=!t;e(OC(r));const n=mC(),o=r?aC:sC;(n||r)&&gC({ocrAIChatDrawerState:o})},[e,t]);return{isDrawerOpen:t,toggleDrawer:r,toggleDrawerOpen:()=>e(zC()),setDrawerOpen:t=>{e(OC(t));gC({ocrAIChatDrawerState:t?aC:sC})}}},{log:Ire,logError:Bre}=z.withKind("featureEvalService");class Nre{constructor(){this.featureOverrides=new Map,this.remoteFeatures=[],this.isInitialized=!1,this.initializationPromise=null,this.initialize().catch(e=>{this.trackServiceException(e,"constructor","AutoInitSafety",eT.Error)})}static getInstance(){return Nre.instance||(Nre.instance=new Nre),Nre.instance}async loadFeatureEvaluatorScript(){return new Promise((e,t)=>{if("undefined"==typeof window)return void e();if(window.featureEvaluatorV2)return Ire("Feature Evaluator V2 SDK already loaded"),void e();const r="https://www.microsoft.com/fe/static/feature-evaluator-v2.js",n=new URL(r).pathname;if(document.querySelector(`script[src$="${n}"]`))return Ire("Feature Evaluator SDK script already in DOM"),void setTimeout(()=>{e()},100);Ire("Loading Feature Evaluator SDK from:",r);const o=document.createElement("script");o.src=r,o.async=!0,o.setAttribute("data-endpoint","https://www.microsoft.com/fe/api/features/variants");const i=setTimeout(()=>{Bre("Feature Evaluator SDK load timeout"),t(new Error("Feature Evaluator SDK load timeout"))},5e3);o.onload=()=>{clearTimeout(i),Ire("Feature Evaluator SDK loaded successfully"),this.waitForV2Initialized().then(()=>{window.featureEvaluatorV2?.isInitialized||(Ire("V2 SDK script loaded but not initialized within timeout"),this.trackServiceEvent("V2SDKInitializationTimeout",{method:"waitForV2Initialized"})),e()}).catch(()=>e())},o.onerror=e=>{clearTimeout(i),Bre("Failed to load Feature Evaluator SDK:",e),t(new Error("Failed to load Feature Evaluator SDK"))},document.head.appendChild(o)})}async waitForV2Initialized(e=5e3,t=100){if("undefined"==typeof window)return;const r=Date.now(),n=()=>Boolean(window.featureEvaluatorV2?.isInitialized);if(!n())for(;Date.now()-r<e;)if(await new Promise(e=>setTimeout(e,t)),n())return}async initialize(){if(!this.isInitialized)return this.initializationPromise||(Ire("FeatureEvalService not already initialized."),this.initializationPromise=this._initialize()),this.initializationPromise;Ire("FeatureEvalService already initialized.")}async _initialize(){try{if("undefined"==typeof window)return Ire("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"),void(this.isInitialized=!0);try{if(Ire("V2 not found, attempting to load V2 SDK script..."),await this.loadFeatureEvaluatorScript(),this.trackServiceEvent("FeatureEvalSDKLoad",{method:"SDK"}),window.featureEvaluatorV2)return console.log("WAA: Successfully initialized with dynamically loaded V2 SDK"),void(this.isInitialized=!0)}catch(e){Bre("Failed to load V2 SDK script, falling back to API:",e),this.trackServiceEvent("V2SDKLoadFailure",{method:"loadFeatureEvaluatorScript",error:e instanceof Error?e.message:String(e)})}console.log("WAA: V2 SDK not available. Falling back to API."),this.trackServiceEvent("FeatureEvalFallback",{method:"API"}),await this.fetchFeaturesFromApi(),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",eT.Error)}}async fetchFeaturesFromApi(){const e="https://www.microsoft.com/fe/api/features/variants";for(let t=0;t<=2;t++){const r=Date.now();try{if(t>0){const e=1e3*Math.pow(2,t-1);Ire(`Retry attempt ${t} for feature flags API. Waiting ${e}ms`),await new Promise(t=>setTimeout(t,e))}const n=new URLSearchParams(window.location.search).get("locale")||"en-us",o={sessionId:(()=>{const e=document.cookie.split(";");for(let t of e){const[e,r]=t.trim().split("=");if("MUID"===e)return r}return null})(),locale:n},i=new AbortController,a=setTimeout(()=>i.abort(),2e3),s=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o),signal:i.signal});if(clearTimeout(a),!s.ok)throw this.trackServiceDependency(`feature-evaluator-api-${r}`,e,Date.now()-r,!1,s.status,{count:this.remoteFeatures.length.toString(),attempt:t.toString()}),new Error(`API returned ${s.status} ${s.statusText}`);const l=await s.json();return l&&Array.isArray(l.features)&&(this.remoteFeatures=l.features),Ire(`Fetched ${this.remoteFeatures.length} features from API`),void this.trackServiceDependency(`feature-evaluator-api-${r}`,e,Date.now()-r,!0,s.status,{count:this.remoteFeatures.length.toString(),attempt:t.toString()})}catch(bze){if(this.trackServiceDependency(`feature-evaluator-api-${r}`,e,Date.now()-r,!1,0,{error:String(bze),attempt:t.toString()}),2===t)throw bze}}}isFeatureEnabled(e){try{if("undefined"!=typeof window&&window.featureEvaluatorV2?.isFeatureEnabled)try{return window.featureEvaluatorV2.isFeatureEnabled(e)}catch(bze){Bre(`Error in featureEvaluatorV2 for ${e}`,bze)}const t=this.remoteFeatures.find(t=>t.featureName===e);return!!t&&t.isEnabled}catch(t){return Bre(`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 Ire(`Loaded ${e.length} features from V2`),e}catch(e){Bre("V2 getEnabledVariants failed, falling back to API",e)}if(this.remoteFeatures.length>0){const e=this.remoteFeatures.filter(e=>e.isEnabled);return Ire(`Loaded ${e.length} features from API cache`),e}return Ire("No feature variants available"),[]}catch(e){return Bre("Error getting enabled variants:",e),this.trackServiceEvent("GetEnabledVariantsSafeGuard",{method:"getEnabledVariants",error:e instanceof Error?e.message:String(e)}),[]}}trackServiceEvent(e,t){HW({name:e,properties:{component:"FeatureEvalService",...t}})}trackServiceException(e,t,r,n){UW({exception:e instanceof Error?e:new Error(String(e)),severityLevel:n,properties:{component:"FeatureEvalService",method:t,operation:r}})}trackServiceDependency(e,t,r,n,o,i){WW({id:e,name:"FeatureEvaluatorAPI",data:t,duration:r,success:n,resultCode:o,properties:{component:"FeatureEvalService",...i}})}}const Dre=()=>Nre.getInstance(),zre=new Set;let Ore=!1;function*Rre(){yield iS(kC(!0))}function*Mre(){yield iS(kC(!0))}function*jre(){try{const e=document.querySelector('meta[name="keywords"]')?.getAttribute("content")||document.querySelector('meta[property="keywords"]')?.getAttribute("content")||"",t=document.querySelector('meta[name="description"]')?.getAttribute("content")||document.querySelector('meta[property="description"]')?.getAttribute("content")||"";let r={id:"start-conversation-"+Date.now(),timestamp:(new Date).toISOString(),channelData:{postBack:!0,"webchat:sequence-id":1},name:U,type:"event",value:{sourceSite:fC(),pageUrl:window.location.href,leadId:"12345",pageTitle:document.title,pageMetaTags:`${e} ${t}`,ocid:Vre(),enabledVariants:Dre().getEnabledVariants()||[]},from:{id:"user",name:"User",role:"user"}};r.id&&zre.add(r.id),Ore||($W.trackEvent({name:tT}),Ore=!0),yield iS(Cre(r,"keyboard"))}finally{yield iS(kC(!1))}}function*Lre(){yield iS(kC(!1))}function*Fre(){for(;;){const e=(yield oS(xre)).payload.activity;if("event"===e.type&&e.name===U&&e.id&&zre.has(e.id)&&(zre.delete(e.id),!vC())){const e=yield hS(),t=e.optionsProvider?.options?.partnerId||"default",r=n$[t];r?yield iS(YC.setPartnerConfig({partnerId:r.partnerId||t,currentPromptId:r.currentPromptId,currentLocale:r.currentLocale})):console.log("⚠️ No partner configuration found for:",t,"Available configs:",Object.keys(n$)),yield iS(YC.initializeDefaults())}}}function Vre(){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*qre(){yield dre(mre,Rre),yield dre(pre,jre),yield dre(yre,Mre),yield dre(vre,Lre),yield uS(Fre)}class Hre extends Error{}function Ure(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)}}Hre.prototype.name="InvalidTokenError";const Wre="DIRECT_LINE/UPDATE_CONNECTION_STATUS";function $re(e){return{type:Wre,payload:{connectionStatus:e}}}var Gre,Yre,Kre,Jre,Xre,Qre,Zre,ene,tne,rne,nne,one,ine,ane,sne,lne,cne={},une={};function dne(){if(Yre)return Gre;Yre=1;var e=function(e){return e&&e.Math===Math&&e};return Gre=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||e("object"==typeof Gre&&Gre)||function(){return this}()||Function("return this")()}function fne(){return Jre?Kre:(Jre=1,Kre=function(e){try{return!!e()}catch(t){return!0}})}function hne(){return Qre?Xre:(Qre=1,Xre=!fne()(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))}function pne(){if(ene)return Zre;ene=1;var e=hne(),t=Function.prototype,r=t.apply,n=t.call;return Zre="object"==typeof Reflect&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),Zre}function mne(){if(rne)return tne;rne=1;var e=hne(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return tne=e?n:function(e){return function(){return r.apply(e,arguments)}},tne}function gne(){if(one)return nne;one=1;var e=mne(),t=e({}.toString),r=e("".slice);return nne=function(e){return r(t(e),8,-1)}}function vne(){if(ane)return ine;ane=1;var e=gne(),t=mne();return ine=function(r){if("Function"===e(r))return t(r)},ine}function yne(){if(lne)return sne;lne=1;var e="object"==typeof document&&document.all;return sne=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}var bne,wne,xne,kne,Sne={};function _ne(){return wne?bne:(wne=1,bne=!fne()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function Cne(){if(kne)return xne;kne=1;var e=hne(),t=Function.prototype.call;return xne=e?t.bind(t):function(){return t.apply(t,arguments)},xne}var Tne,Ene,Ane,Pne,Ine,Bne,Nne,Dne,zne,One,Rne,Mne,jne,Lne,Fne,Vne,qne,Hne,Une,Wne,$ne,Gne,Yne,Kne,Jne,Xne,Qne,Zne,eoe,toe,roe,noe,ooe,ioe,aoe,soe,loe,coe={};function uoe(){if(Tne)return coe;Tne=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return coe.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,coe}function doe(){return Ane?Ene:(Ane=1,Ene=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function foe(){if(Ine)return Pne;Ine=1;var e=mne(),t=fne(),r=gne(),n=Object,o=e("".split);return Pne=t(function(){return!n("z").propertyIsEnumerable(0)})?function(e){return"String"===r(e)?o(e,""):n(e)}:n}function hoe(){return Nne?Bne:(Nne=1,Bne=function(e){return null==e})}function poe(){if(zne)return Dne;zne=1;var e=hoe(),t=TypeError;return Dne=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function moe(){if(Rne)return One;Rne=1;var e=foe(),t=poe();return One=function(r){return e(t(r))}}function goe(){if(jne)return Mne;jne=1;var e=yne();return Mne=function(t){return"object"==typeof t?null!==t:e(t)}}function voe(){return Fne?Lne:(Fne=1,Lne={})}function yoe(){if(qne)return Vne;qne=1;var e=voe(),t=dne(),r=yne(),n=function(e){return r(e)?e:void 0};return Vne=function(r,o){return arguments.length<2?n(e[r])||n(t[r]):e[r]&&e[r][o]||t[r]&&t[r][o]},Vne}function boe(){return Une?Hne:(Une=1,Hne=mne()({}.isPrototypeOf))}function woe(){if($ne)return Wne;$ne=1;var e=dne().navigator,t=e&&e.userAgent;return Wne=t?String(t):""}function xoe(){if(Yne)return Gne;Yne=1;var e,t,r=dne(),n=woe(),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]),Gne=t}function koe(){if(Jne)return Kne;Jne=1;var e=xoe(),t=fne(),r=dne().String;return Kne=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function Soe(){return Qne?Xne:(Qne=1,Xne=koe()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function _oe(){if(eoe)return Zne;eoe=1;var e=yoe(),t=yne(),r=boe(),n=Object;return Zne=Soe()?function(e){return"symbol"==typeof e}:function(o){var i=e("Symbol");return t(i)&&r(i.prototype,n(o))}}function Coe(){if(roe)return toe;roe=1;var e=String;return toe=function(t){try{return e(t)}catch(r){return"Object"}}}function Toe(){if(ooe)return noe;ooe=1;var e=yne(),t=Coe(),r=TypeError;return noe=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function Eoe(){if(aoe)return ioe;aoe=1;var e=Toe(),t=hoe();return ioe=function(r,n){var o=r[n];return t(o)?void 0:e(o)},ioe}function Aoe(){if(loe)return soe;loe=1;var e=Cne(),t=yne(),r=goe(),n=TypeError;return soe=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")},soe}var Poe,Ioe,Boe,Noe,Doe,zoe,Ooe,Roe,Moe,joe,Loe,Foe,Voe,qoe,Hoe,Uoe,Woe,$oe,Goe,Yoe,Koe,Joe,Xoe,Qoe,Zoe,eie,tie,rie,nie={exports:{}};function oie(){return Ioe?Poe:(Ioe=1,Poe=!0)}function iie(){if(Noe)return Boe;Noe=1;var e=dne(),t=Object.defineProperty;return Boe=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(o){e[r]=n}return n}}function aie(){if(Doe)return nie.exports;Doe=1;var e=oie(),t=dne(),r=iie(),n="__core-js_shared__",o=nie.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"}),nie.exports}function sie(){if(Ooe)return zoe;Ooe=1;var e=aie();return zoe=function(t,r){return e[t]||(e[t]=r||{})}}function lie(){if(Moe)return Roe;Moe=1;var e=poe(),t=Object;return Roe=function(r){return t(e(r))}}function cie(){if(Loe)return joe;Loe=1;var e=mne(),t=lie(),r=e({}.hasOwnProperty);return joe=Object.hasOwn||function(e,n){return r(t(e),n)}}function uie(){if(Voe)return Foe;Voe=1;var e=mne(),t=0,r=Math.random(),n=e(1.1.toString);return Foe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function die(){if(Hoe)return qoe;Hoe=1;var e=dne(),t=sie(),r=cie(),n=uie(),o=koe(),i=Soe(),a=e.Symbol,s=t("wks"),l=i?a.for||a:a&&a.withoutSetter||n;return qoe=function(e){return r(s,e)||(s[e]=o&&r(a,e)?a[e]:l("Symbol."+e)),s[e]}}function fie(){if(Woe)return Uoe;Woe=1;var e=Cne(),t=goe(),r=_oe(),n=Eoe(),o=Aoe(),i=TypeError,a=die()("toPrimitive");return Uoe=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 hie(){if(Goe)return $oe;Goe=1;var e=fie(),t=_oe();return $oe=function(r){var n=e(r,"string");return t(n)?n:n+""}}function pie(){if(Koe)return Yoe;Koe=1;var e=dne(),t=goe(),r=e.document,n=t(r)&&t(r.createElement);return Yoe=function(e){return n?r.createElement(e):{}}}function mie(){if(Xoe)return Joe;Xoe=1;var e=_ne(),t=fne(),r=pie();return Joe=!e&&!t(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function gie(){if(eie)return Zoe;eie=1;var e=fne(),t=yne(),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 Zoe=n}function vie(){if(rie)return tie;rie=1;var e=vne(),t=Toe(),r=hne(),n=e(e.bind);return tie=function(e,o){return t(e),void 0===o?e:r?n(e,o):function(){return e.apply(o,arguments)}},tie}var yie,bie,wie,xie,kie,Sie,_ie,Cie,Tie,Eie,Aie,Pie,Iie,Bie,Nie,Die,zie,Oie,Rie,Mie,jie,Lie,Fie,Vie,qie,Hie,Uie,Wie,$ie,Gie,Yie,Kie,Jie,Xie,Qie,Zie,eae,tae,rae,nae,oae,iae,aae,sae,lae,cae,uae,dae,fae,hae,pae,mae,gae,vae,yae,bae,wae,xae,kae,Sae,_ae,Cae,Tae,Eae,Aae,Pae,Iae,Bae,Nae,Dae,zae,Oae,Rae,Mae,jae,Lae,Fae,Vae,qae,Hae,Uae,Wae={};function $ae(){return bie?yie:(bie=1,yie=_ne()&&fne()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function Gae(){if(xie)return wie;xie=1;var e=goe(),t=String,r=TypeError;return wie=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function Yae(){if(kie)return Wae;kie=1;var e=_ne(),t=mie(),r=$ae(),n=Gae(),o=hie(),i=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l="enumerable",c="configurable",u="writable";return Wae.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},Wae}function Kae(){if(_ie)return Sie;_ie=1;var e=_ne(),t=Yae(),r=doe();return Sie=e?function(e,n,o){return t.f(e,n,r(1,o))}:function(e,t,r){return e[t]=r,e}}function Jae(){if(Tie)return Cie;Tie=1;var e=dne(),t=pne(),r=vne(),n=yne(),o=function(){if(Qoe)return Sne;Qoe=1;var e=_ne(),t=Cne(),r=uoe(),n=doe(),o=moe(),i=hie(),a=cie(),s=mie(),l=Object.getOwnPropertyDescriptor;return Sne.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])},Sne}().f,i=gie(),a=voe(),s=vie(),l=Kae(),c=cie(),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 Cie=function(t,d){var f,h,p,m,g,v,y,b,w,x=t.target,k=t.global,S=t.stat,_=t.proto,C=k?e:S?e[x]:e[x]&&e[x].prototype,T=k?a:a[x]||l(a,x,{})[x],E=T.prototype;for(m in d)h=!(f=i(k?m:x+(S?".":"#")+m,t.forced))&&C&&c(C,m),v=T[m],h&&(y=t.dontCallGetSet?(w=o(C,m))&&w.value:C[m]),g=h&&y?y:d[m],(f||_||typeof v!=typeof g)&&(b=t.bind&&h?s(g,e):t.wrap&&h?u(g):_&&n(g)?r(g):g,(t.sham||g&&g.sham||v&&v.sham)&&l(b,"sham",!0),l(T,m,b),_&&(c(a,p=x+"Prototype")||l(a,p,{}),l(a[p],m,g),t.real&&E&&(f||!E[m])&&l(E,m,g)))}}function Xae(){if(Aie)return Eie;Aie=1;var e=dne(),t=woe(),r=gne(),n=function(e){return t.slice(0,e.length)===e};return Eie=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 Qae(){return Iie?Pie:(Iie=1,Pie="NODE"===Xae())}function Zae(){if(Nie)return Bie;Nie=1;var e=Kae();return Bie=function(t,r,n,o){return o&&o.enumerable?t[r]=n:e(t,r,n),t}}function ese(){if(zie)return Die;zie=1;var e=mne(),t=Toe();return Die=function(r,n,o){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[o]))}catch(i){}}}function tse(){if(Rie)return Oie;Rie=1;var e=goe();return Oie=function(t){return e(t)||null===t}}function rse(){if(jie)return Mie;jie=1;var e=tse(),t=String,r=TypeError;return Mie=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}function nse(){if(Fie)return Lie;Fie=1;var e=ese(),t=goe(),r=poe(),n=rse();return Lie=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 ose(){if(qie)return Vie;qie=1;var e={};return e[die()("toStringTag")]="z",Vie="[object z]"===String(e)}function ise(){if(Uie)return Hie;Uie=1;var e=ose(),t=yne(),r=gne(),n=die()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return Hie=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 ase(){if($ie)return Wie;$ie=1;var e=ose(),t=ise();return Wie=e?{}.toString:function(){return"[object "+t(this)+"]"}}function sse(){if(Yie)return Gie;Yie=1;var e=ose(),t=Yae().f,r=Kae(),n=cie(),o=ase(),i=die()("toStringTag");return Gie=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 lse(){if(Jie)return Kie;Jie=1;var e=Yae();return Kie=function(t,r,n){return e.f(t,r,n)}}function cse(){if(Qie)return Xie;Qie=1;var e=yoe(),t=lse(),r=die(),n=_ne(),o=r("species");return Xie=function(r){var i=e(r);n&&i&&!i[o]&&t(i,o,{configurable:!0,get:function(){return this}})}}function use(){if(eae)return Zie;eae=1;var e=boe(),t=TypeError;return Zie=function(r,n){if(e(n,r))return r;throw new t("Incorrect invocation")}}function dse(){if(rae)return tae;rae=1;var e=mne(),t=yne(),r=aie(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(e){return n(e)}),tae=r.inspectSource}function fse(){if(oae)return nae;oae=1;var e=mne(),t=fne(),r=yne(),n=ise(),o=yoe(),i=dse(),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,nae=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?f:d}function hse(){if(aae)return iae;aae=1;var e=fse(),t=Coe(),r=TypeError;return iae=function(n){if(e(n))return n;throw new r(t(n)+" is not a constructor")}}function pse(){if(lae)return sae;lae=1;var e=Gae(),t=hse(),r=hoe(),n=die()("species");return sae=function(o,i){var a,s=e(o).constructor;return void 0===s||r(a=e(s)[n])?i:t(a)}}function mse(){return uae?cae:(uae=1,cae=yoe()("document","documentElement"))}function gse(){return fae?dae:(fae=1,dae=mne()([].slice))}function vse(){if(pae)return hae;pae=1;var e=TypeError;return hae=function(t,r){if(t<r)throw new e("Not enough arguments");return t}}function yse(){return gae?mae:(gae=1,mae=/(?:ipad|iphone|ipod).*applewebkit/i.test(woe()))}function bse(){if(yae)return vae;yae=1;var e,t,r,n,o=dne(),i=pne(),a=vie(),s=yne(),l=cie(),c=fne(),u=mse(),d=gse(),f=pie(),h=vse(),p=yse(),m=Qae(),g=o.setImmediate,v=o.clearImmediate,y=o.process,b=o.Dispatch,w=o.Function,x=o.MessageChannel,k=o.String,S=0,_={},C="onreadystatechange";c(function(){e=o.location});var T=function(e){if(l(_,e)){var t=_[e];delete _[e],t()}},E=function(e){return function(){T(e)}},A=function(e){T(e.data)},P=function(t){o.postMessage(k(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 _[++S]=function(){i(r,void 0,n)},t(S),S},v=function(e){delete _[e]},m?t=function(e){y.nextTick(E(e))}:b&&b.now?t=function(e){b.now(E(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(P)?(t=P,o.addEventListener("message",A,!1)):t=C in f("script")?function(e){u.appendChild(f("script"))[C]=function(){u.removeChild(this),T(e)}}:function(e){setTimeout(E(e),0)}),vae={set:g,clear:v}}function wse(){if(wae)return bae;wae=1;var e=dne(),t=_ne(),r=Object.getOwnPropertyDescriptor;return bae=function(n){if(!t)return e[n];var o=r(e,n);return o&&o.value}}function xse(){if(kae)return xae;kae=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}},xae=e}function kse(){return _ae?Sae:(_ae=1,Sae=/ipad|iphone|ipod/i.test(woe())&&"undefined"!=typeof Pebble)}function Sse(){return Tae?Cae:(Tae=1,Cae=/web0s(?!.*chrome)/i.test(woe()))}function _se(){if(Aae)return Eae;Aae=1;var e,t,r,n,o,i=dne(),a=wse(),s=vie(),l=bse().set,c=xse(),u=yse(),d=kse(),f=Sse(),h=Qae(),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 Eae=y}function Cse(){return Iae||(Iae=1,Pae=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(r){}}),Pae}function Tse(){return Nae?Bae:(Nae=1,Bae=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}})}function Ese(){if(zae)return Dae;zae=1;var e=dne(),t=yne(),r=e.WeakMap;return Dae=t(r)&&/native code/.test(String(r))}function Ase(){if(Rae)return Oae;Rae=1;var e=sie(),t=uie(),r=e("keys");return Oae=function(e){return r[e]||(r[e]=t(e))}}function Pse(){return jae?Mae:(jae=1,Mae={})}function Ise(){if(Fae)return Lae;Fae=1;var e,t,r,n=Ese(),o=dne(),i=goe(),a=Kae(),s=cie(),l=aie(),c=Ase(),u=Pse(),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 Lae={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 Bse(){return qae?Vae:(qae=1,Vae=dne().Promise)}function Nse(){if(Uae)return Hae;Uae=1;var e=dne(),t=Bse(),r=yne(),n=gie(),o=dse(),i=die(),a=Xae(),s=oie(),l=xoe(),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 Hae={CONSTRUCTOR:h,REJECTION_EVENT:f,SUBCLASSING:d}}var Dse,zse,Ose={};function Rse(){if(Dse)return Ose;Dse=1;var e=Toe(),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 Ose.f=function(e){return new r(e)},Ose}var Mse,jse,Lse,Fse,Vse,qse,Hse,Use,Wse,$se,Gse,Yse,Kse,Jse,Xse,Qse,Zse,ele,tle,rle,nle,ole,ile,ale,sle,lle={};function cle(){return jse?Mse:(jse=1,Mse={})}function ule(){if(Fse)return Lse;Fse=1;var e=die(),t=cle(),r=e("iterator"),n=Array.prototype;return Lse=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}function dle(){if(qse)return Vse;qse=1;var e=Math.ceil,t=Math.floor;return Vse=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)}}function fle(){if(Use)return Hse;Use=1;var e=dle();return Hse=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function hle(){if($se)return Wse;$se=1;var e=fle(),t=Math.min;return Wse=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function ple(){if(Yse)return Gse;Yse=1;var e=hle();return Gse=function(t){return e(t.length)}}function mle(){if(Jse)return Kse;Jse=1;var e=ise(),t=Eoe(),r=hoe(),n=cle(),o=die()("iterator");return Kse=function(i){if(!r(i))return t(i,o)||t(i,"@@iterator")||n[e(i)]}}function gle(){if(Qse)return Xse;Qse=1;var e=Cne(),t=Toe(),r=Gae(),n=Coe(),o=mle(),i=TypeError;return Xse=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")},Xse}function vle(){if(ele)return Zse;ele=1;var e=Cne(),t=Gae(),r=Eoe();return Zse=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 yle(){if(rle)return tle;rle=1;var e=vie(),t=Cne(),r=Gae(),n=Coe(),o=ule(),i=ple(),a=boe(),s=gle(),l=mle(),c=vle(),u=TypeError,d=function(e,t){this.stopped=e,this.result=t},f=d.prototype;return tle=function(h,p,m){var g,v,y,b,w,x,k,S=m&&m.that,_=!(!m||!m.AS_ENTRIES),C=!(!m||!m.IS_RECORD),T=!(!m||!m.IS_ITERATOR),E=!(!m||!m.INTERRUPTED),A=e(p,S),P=function(e){return g&&c(g,"normal"),new d(!0,e)},I=function(e){return _?(r(e),E?A(e[0],e[1],P):A(e[0],e[1])):E?A(e,P):A(e)};if(C)g=h.iterator;else if(T)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=I(h[y]))&&a(f,w))return w;return new d(!1)}g=s(h,v)}for(x=C?h.next:g.next;!(k=t(x,g)).done;){try{w=I(k.value)}catch(B){c(g,"throw",B)}if("object"==typeof w&&w&&a(f,w))return w}return new d(!1)},tle}function ble(){if(ole)return nle;ole=1;var e=die()("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 nle=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 wle(){if(ale)return ile;ale=1;var e=Bse(),t=ble(),r=Nse().CONSTRUCTOR;return ile=r||!t(function(t){e.all(t).then(void 0,function(){})})}var xle,kle={};var Sle,_le={};var Cle,Tle={};var Ele,Ale,Ple,Ile,Ble={};function Nle(){if(Ale)return Ele;Ale=1;var e=Gae(),t=goe(),r=Rse();return Ele=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 Dle(){return Ile||(Ile=1,function(){if(zse)return une;zse=1;var e,t,r,n,o=Jae(),i=oie(),a=Qae(),s=dne(),l=voe(),c=Cne(),u=Zae(),d=nse(),f=sse(),h=cse(),p=Toe(),m=yne(),g=goe(),v=use(),y=pse(),b=bse().set,w=_se(),x=Cse(),k=Tse(),S=xse(),_=Ise(),C=Bse(),T=Nse(),E=Rse(),A="Promise",P=T.CONSTRUCTOR,I=T.REJECTION_EVENT,B=T.SUBCLASSING,N=_.getterFor(A),D=_.set,z=C&&C.prototype,O=C,R=z,M=s.TypeError,j=s.document,L=s.process,F=E.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&&J(t),t.rejection=1),!0===s?r=i:(d&&d.enter(),r=s(i),d&&(d.exit(),o=!0)),r===e.promise?u(new M("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},!I&&(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=k(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},J=function(e){c(b,s,function(){var t=e.facade;a?L.emit("rejectionHandled",t):G("rejectionhandled",t,e.value)})},X=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 M("Promise can't be resolved itself");var n=U(t);n?w(function(){var r={done:!1};try{c(n,t,X(Z,r,e),X(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(P&&(R=(O=function(t){v(this,R),p(t),c(e,this);var r=N(this);try{t(X(Z,r),X(Q,r))}catch(n){Q(r,n)}}).prototype,(e=function(e){D(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:null})}).prototype=u(R,"then",function(e,t){var r=N(this),n=F(y(this,O));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=N(t);this.promise=t,this.resolve=X(Z,r),this.reject=X(Q,r)},E.f=F=function(e){return e===O||e===r?new t(e):V(e)},!i&&m(C)&&z!==Object.prototype)){n=z.then,B||u(z,"then",function(e,t){var r=this;return new O(function(e,t){c(n,r,e,t)}).then(e,t)},{unsafe:!0});try{delete z.constructor}catch(ee){}d&&d(z,R)}o({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:O}),r=l.Promise,f(O,A,!1,!0),h(A)}(),function(){if(sle)return lle;sle=1;var e=Jae(),t=Cne(),r=Toe(),n=Rse(),o=Tse(),i=yle();e({target:"Promise",stat:!0,forced:wle()},{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(xle)return kle;xle=1;var e=Jae(),t=oie(),r=Nse().CONSTRUCTOR,n=Bse(),o=yoe(),i=yne(),a=Zae(),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(Sle)return _le;Sle=1;var e=Jae(),t=Cne(),r=Toe(),n=Rse(),o=Tse(),i=yle();e({target:"Promise",stat:!0,forced:wle()},{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(Cle)return Tle;Cle=1;var e=Jae(),t=Rse();e({target:"Promise",stat:!0,forced:Nse().CONSTRUCTOR},{reject:function(e){var r=t.f(this);return(0,r.reject)(e),r.promise}})}(),function(){if(Ple)return Ble;Ple=1;var e=Jae(),t=yoe(),r=oie(),n=Bse(),o=Nse().CONSTRUCTOR,i=Nle(),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)}})}()),cne}var zle,Ole,Rle,Mle,jle,Lle={};function Fle(){if(zle)return Lle;zle=1;var e=Jae(),t=Rse();return e({target:"Promise",stat:!0},{withResolvers:function(){var e=t.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}}),Lle}function Vle(){if(Rle)return Ole;Rle=1,Dle(),Fle();var e=Cne(),t=yne(),r=voe().Promise,n=r.withResolvers;return Ole=function(){return e(n,t(this)?this:r)}}function qle(){return jle?Mle:(jle=1,Mle=Vle())}var Hle,Ule,Wle,$le,Gle,Yle,Kle;function Jle(){if(Wle)return Ule;Wle=1;var e=qle();return Hle||(Hle=1,Fle()),Ule=e}function Xle(){return Gle?$le:(Gle=1,$le=Jle())}function Qle(){return Kle?Yle:(Kle=1,Yle=Xle())}const Zle=r(Qle());function ece(){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=Zle())).promise}}var tce,rce,nce,oce;const ice=r(oce?nce:(oce=1,nce=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(rce)return tce;rce=1;var e="undefined"!=typeof window?window:self;return tce=e.crypto||e.msCrypto}())));function ace(){return ice().toString(36).substring(2)}function sce(...e){return uS(function*(){for(const t of e)yield iS(t)})}const lce="DIRECT_LINE/DISCONNECT",cce=`${lce}_PENDING`,uce=`${lce}_FULFILLED`,{logWarn:dce}=z.withKind("connectSaga"),fce=0,hce="https://directline.botframework.com";function pce(){return`r_${ace().substring(0,10)}`}function*mce(e){const t=ece(),r=e.connectionStatus$.subscribe({next:t.push});try{for(;;){const e=yield cS(t.shift);yield iS($re(e))}}finally{r.unsubscribe()}}function gce(e,t){const{token:r}=e;let n;try{const e=r?function(e,t){if("string"!=typeof e)throw new Hre("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 Hre(`Invalid token specified: missing part #${r+1}`);let o;try{o=Ure(n)}catch(bze){throw new Hre(`Invalid token specified: invalid base64 for part #${r+1} (${bze.message})`)}try{return JSON.parse(o)}catch(bze){throw new Hre(`Invalid token specified: invalid json for part #${r+1} (${bze.message})`)}}(r):null;n=e?.user}catch(i){}const o={fromAction:t,fromToken:n};return n?(t&&t!==n&&dce("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?(dce("Web Chat: user ID must be a string."),o.final=pce()):/^dl_/u.test(t)?(dce('Web Chat: user ID prefixed with "dl_" is reserved and must be embedded into the Direct Line token to prevent forgery.'),o.final=pce()):o.final=t:o.final=pce(),o}function*vce(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 oS(Wre);if(i=t,2===t)return o=!0,()=>{n(),e.end()};if(t!==fce&&1!==t)throw o=!1,yield iS(jC({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 XW(pT,a),n(),a}finally{const r=Date.now()-t,a=function(e){return e?.domain||hce}(e);(yield pS())&&n(),QW(bT,j,pT,r,o,i,a)}}function*yce(){const e=Date.now();let t=!0,r=200;try{for(;;){const{payload:{connectionStatus:e}}=yield oS(Wre);if(r=e,2===e){t=!0;break}if(1!==e)throw yield iS(jC({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,XW(mT,n)}finally{const n=Date.now()-e;QW(bT,j,mT,n,t,r,hce)}}function*bce(){throw yield oS(lce),yield iS(jC({message:"Please refresh the page.",type:"error",dismissible:!1})),new Error("disconnected")}function wce(e,t){return function*({type:e,meta:t,payload:r},n){try{yield sce({type:`${e}_PENDING`,meta:t,payload:r});const o=yield n();return yield sce({type:`${e}_FULFILLING`,meta:t,payload:r},{type:`${e}_FULFILLED`,meta:t,payload:r}),o}catch(o){throw yield iS(jC({message:"Unable to connect to chat service. Please check your internet connection and try again.",type:"error",dismissible:!1})),yield sce({type:`${e}_REJECTED`,error:!0,meta:t,payload:o}),o}}(e,function*(){const{result:e}=yield sS({_:bce(),result:t()});return e})}function*xce(){for(;;){const{payload:{directLine:t,userID:r,username:n}}=yield oS(hre),o=yield uS(mce,t),i=gce(t,r),a={userID:i.final,username:n};let s;t.setUserId&&i.fromToken!==a.userID&&t.setUserId(a.userID);try{const e=yield wce({type:hre,meta:a,payload:{directLine:t}},()=>cS(vce,t));try{for(;;){const{updateConnectionStatusAction:{payload:{connectionStatus:e}={connectionStatus:fce}}={}}=yield sS({_:oS(lce),updateConnectionStatusAction:oS(Wre)});if(1===e)yield wce({type:gre,meta:a,payload:{directLine:t}},()=>cS(yce));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 fS(o),yield sce({type:cce,meta:s,payload:{directLine:t}},{type:uce,meta:s,payload:{directLine:t}})}}}var kce,Sce="",_ce="version",Cce="properties",Tce="initialize",Ece="timings",Ace="pollInternalLogs",Pce="value",Ice="length",Bce="processTelemetryStart",Nce="1DS-Web-JS-4.3.9",Dce=lB.hasOwnProperty,zce=((kce={})[0]=0,kce[2]=6,kce[1]=1,kce[3]=7,kce[4098]=6,kce[4097]=1,kce[4099]=7,kce),Oce=cP(),Rce=dP();function Mce(e){return!(e===Sce||CE(e))}function jce(e,t,r){if(!t&&!Mce(t)||"string"!=typeof e)return null;var n=typeof t;if("string"===n||"number"===n||"boolean"===n||NE(t))t={value:t};else if("object"!==n||Dce.call(t,"value")){if(CE(t[Pce])||t[Pce]===Sce||!PE(t[Pce])&&!zE(t[Pce])&&!OE(t[Pce])&&!NE(t[Pce]))return null}else t={value:r?JSON.stringify(t):t};if(NE(t[Pce])&&!(t[Pce][Ice]>0))return null;if(!CE(t.kind)){if(NE(t[Pce])||!function(e){if(0===e||e>0&&e<=13||32===e)return!0;return!1}(t.kind))return null;t[Pce]=t[Pce].toString()}return t}function Lce(e,t,r){var n=-1;if(!SE(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=zce[Wce(e)]||-1;-1!==n&&-1!==o?n|=o:6===o&&(n=o)}return n}function Fce(e,t,r){var n;return void 0===r&&(r=!0),e&&(n=e.get(t),r&&n&&decodeURIComponent&&(n=decodeURIComponent(n))),n||Sce}function Vce(e){void 0===e&&(e="D");var t=XO();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,Sce)),t}function qce(e,t,r,n,o){var i={},a=!1,s=0,l=arguments[Ice],c=arguments;for(OE(c[0])&&(a=c[0],s++);s<l;s++){QE(c[s],function(e,t){a&&t&&BE(t)?NE(t)?(i[e]=i[e]||[],ZE(t,function(t,r){i[e][r]=t&&BE(t)?qce(!0,i[e][r],t):t})):i[e]=qce(!0,i[e],t):i[e]=t})}return i}var Hce=function(){var e=dI();return e&&e.now?e.now():qA()};function Uce(e,t){var r=e;r[Ece]=r[Ece]||{},r[Ece][Bce]=r[Ece][Bce]||{},r[Ece][Bce][t]=Hce()}function Wce(e){var t=0;if(null!=e){var r=typeof e;"string"===r?t=1:"number"===r?t=2:"boolean"===r?t=3:r===oB&&(t=4,NE(e)?(t=4096,e[Ice]>0&&(t|=Wce(e[0]))):Dce.call(e,"value")&&(t=8192|Wce(e[Pce])))}return t}function $ce(e){return e>0}var Gce=kA({endpointUrl:"https://browser.events.data.microsoft.com/OneCollector/1.0/",propertyStorageOverride:{isVal:function(e){!e||e.getProperty&&e.setProperty||UE("Invalid property storage override passed.");return!0}}});var Yce=function(e){function t(){var r=e.call(this)||this;return rB(t,r,function(e,t){e[Tce]=function(r,n,o,i){JO(e,function(){return"AppInsightsCore.initialize"},function(){try{t[Tce](Mz(r,Gce,o||e.logger,!1).cfg,n,o,i)}catch(bze){var a=e.logger,s=HE(bze);-1!==s.indexOf("channels")&&(s+="\n - Channels must be provided through config.channels only!"),fO(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){JO(e,function(){return"AppInsightsCore.track"},function(){var n,o=r;if(o){o[Ece]=o[Ece]||{},o[Ece].trackStart=Hce(),(n=o.latency)&&zE(n)&&n>=1&&n<=4||(o.latency=1);var i=o.ext=o.ext||{};i.sdk=i.sdk||{},i.sdk.ver=Nce;var a=o.baseData=o.baseData||{};a[Cce]=a[Cce]||{};var s=a[Cce];s[_ce]=s[_ce]||e.pluginVersionString||Sce}t.track(o)},function(){return{item:r}},!r.sync)},e[Ace]=function(e){return t[Ace](e||"InternalLog")}}),r}return fB(t,e),t.__ieDyn=1,t}(MR),Kce="REAL_TIME",Jce="",Xce="drop",Qce="send",Zce="requeue",eue="rspFail",tue="no-cache, no-store",rue="application/x-json-stream",nue="cache-control",oue="content-type",iue="kill-tokens",aue="kill-duration",sue="time-delta-millis",lue="client-version",cue="client-id",uue="time-delta-to-apply-millis",due="upload-time",fue="apikey",hue="AuthMsaDeviceTicket",pue="WebAuthToken",mue="AuthXToken",gue="msfpc",vue="trace",yue="user",bue="allowRequestSending",wue="shouldAddClockSkewHeaders",xue="getClockSkewHeaderValue",kue="setClockSkew",Sue="length",_ue="concat",Cue="iKey",Tue="count",Eue="events",Aue="push",Pue="split",Iue="toLowerCase",Bue="hdrs",Nue="useHdrs",Due="initialize",zue="setTimeoutOverride",Oue="clearTimeoutOverride",Rue="overrideEndpointUrl",Mue="avoidOptions",jue="enableCompoundKey",Lue="disableXhrSync",Fue="disableFetchKeepAlive",Vue="useSendBeacon",que="fetchCredentials",Hue="alwaysUseXhrOverride",Uue="serializeOfflineEvt",Wue="getOfflineRequestDetails",$ue="createPayload",Gue="createOneDSPayload",Yue="payloadBlob",Kue="headers",Jue="_thePayload",Xue="batches",Que="sendType",Zue="canSendRequest",ede="sendQueuedRequests",tde="setUnloading",rde="sendSynchronousBatch",nde="_transport",ode="getWParam",ide="isBeacon",ade="timings",sde="isTeardown",lde="_sendReason",cde="setKillSwitchTenants",ude="_backOffTransmission",dde="identifier",fde="autoFlushEventsLimit",hde="sendAttempt",pde="latency",mde="sync";function gde(e){var t=(e.ext||{}).intweb;return t&&Mce(t[gue])?t[gue]:null}function vde(e){for(var t=null,r=0;null===t&&r<e[Sue];r++)t=gde(e[r]);return t}var yde=function(){function e(t,r){var n=r?[][_ue](r):[],o=this,i=vde(n);o[Cue]=function(){return t},o.Msfpc=function(){return i||Jce},o[Tue]=function(){return n[Sue]},o[Eue]=function(){return n},o.addEvent=function(e){return!!e&&(n[Aue](e),i||(i=gde(e)),!0)},o[Pue]=function(r,o){var a;if(r<n[Sue]){var s=n[Sue]-r;CE(o)||(s=o<s?o:s),a=n.splice(r,s),i=vde(n)}return new e(t,a)}}return e.create=function(t,r){return new e(t,r)},e}(),bde=function(){function e(){var t=!0,r=!0,n=!0,o="use-collector-delta",i=!1;rB(e,this,function(e){e[bue]=function(){return t},e.firstRequestSent=function(){n&&(n=!1,i||(t=!1))},e[wue]=function(){return r},e[xue]=function(){return o},e[kue]=function(e){i||(e?(o=e,r=!0,i=!0):r=!1,t=!0)}})}return e.__ieDyn=1,e}(),wde=function(){function e(){var t={};rB(e,this,function(e){e[cde]=function(e,r){if(e&&r)try{var n=(a=e[Pue](","),s=[],a&&ZE(a,function(e){s[Aue](YP(e))}),s);if("this-request-only"===r)return n;for(var o=1e3*parseInt(r,10),i=0;i<n[Sue];++i)t[n[i]]=qA()+o}catch(l){return[]}var a,s;return[]},e.isTenantKilled=function(e){var r=t,n=YP(e);return void 0!==r[n]&&r[n]>qA()||(delete r[n],!1)}})}return e.__ieDyn=1,e}();function xde(e){var t,r=KP(1200*Math.random())+2400;return t=Math.pow(2,e)*r,NA(t,6e5)}var kde,Sde=2e6,_de=NA(Sde,65e3),Cde="metadata",Tde="f",Ede=/\./,Ade=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||Lce,g=function(e){var t={};if(e&&e.requestLimit)return e.requestLimit;return t}(s),v=Pde(g.requestLimit,3145728,0),y=Pde(g.requestLimit,65e3,1),b=Pde(g.recordLimit,Sde,0),w=Math.min(Pde(g.recordLimit,_de,1),y);rB(e,this,function(e){function r(e,t,o,i,a,s,l){QE(e,function(e,l){var c=null;if(l||Mce(l)){var d=o,p=e,m=a,g=t;if(u&&!i&&Ede.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=vI(e,"ext.metadata")||vI(e,"ext.web")),h[e]=t),t}(d);if(c=!x&&f&&f.handleField(d,p)?f.value(d,p,l,n):jce(p,l,n)){var k=c.value;if(g[p]=k,s&&s(m,p,c),"object"==typeof k&&!NE(k)){var S=m;S&&(S=S.slice()).push(p),r(l,k,d+"."+p,i,S,s)}}}})}e.createPayload=function(e,t,r,n,o,i){return{apiKeys:[],payloadBlob:Jce,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&&JO(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&&(RA(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(yde.create(n.iKey(),l)),c.length>0&&r.failedEvts.push(yde.create(n.iKey(),c)),s){r.batches.push(n),r.payloadBlob=i,r.numEvents=a;var k=n.iKey();-1===DP(r.apiKeys,k)&&r.apiKeys.push(k)}},function(){return{payload:r,theBatch:{iKey:n.iKey(),evts:n.events()},max:o}}),i},e.getEventBlob=function(e){try{return JO(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=gI(e,"-");if(t>-1)return jA(e,t)}return Sce}(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[Cde];a||(a=t[Cde]={f:{}});var s=a[Tde];if(s||(s=a[Tde]={}),r)for(var l=0;l<r.length;l++){var c=r[l];s[c]||(s[c]={f:{}});var u=s[c][Tde];u||(u=s[c][Tde]={}),s=u}s=s[n]={},NE(o.value)?s.a={t:i}:s.t=i}}}(m,o,e,t,r)});var i=e.ext;i&&(t.ext=o,QE(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(bze){return null}}})}return e.__ieDyn=1,e}();function Pde(e,t,r){if(NE(e)){var n=e[r];if(n>0&&n<=t)return n}return t}function Ide(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 _I(!0,e,mE[iE](arguments,1))}([e,t],r,n,o)}}}var Bde="sendAttempt",Nde="?cors=true&"+oue[Iue]()+"="+rue,Dde=((kde={})[1]=Zce,kde[100]=Zce,kde[200]="sent",kde[8004]=Xce,kde[8003]=Xce,kde),zde={},Ode={};function Rde(e,t,r){zde[e]=t,!1!==r&&(Ode[t]=e)}function Mde(e,t){var r=!1;if(e&&t){var n=wA(e);if(n&&n[Sue]>0)for(var o=t[Iue](),i=0;i<n[Sue];i++){var a=n[i];if(a&&YE(t,a)&&a[Iue]()===o){r=!0;break}}}return r}function jde(e,t,r,n){t&&r&&r[Sue]>0&&(n&&zde[t]?(e[Bue][zde[t]]=r,e[Nue]=!0):e.url+="&"+t+"="+r)}Rde(hue,hue,!1),Rde(lue,lue),Rde(cue,"Client-Id"),Rde(fue,fue),Rde(uue,uue),Rde(due,due),Rde(mue,mue);var Lde=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,k,S,_,C,T,E,A,P,I,B,N,D,z,O,R,M,j=!1,L=t;rB(e,this,function(e){var F;i=null,a=new wde,s=!1,l=new bde,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,k=!1,S=F,C=F,T=F,E=F,A=F,P=[],I=F,B=F,N=[],D=!1,z=Ide(),O=!1,R=null,L=null;function V(e,t){try{return R&&R.getSenderInst(e,t)}catch(bze){}return null}function q(){try{return{enableSendPromise:!1,isOneDs:!0,disableCredentials:!1,fetchCredentials:M,disableXhr:!1,disableBeacon:!j,disableBeaconSync:!j,disableFetchKeepAlive:T,timeWrapper:z,addNoResponse:A,senderOnCompleteCallBack:{xdrOnComplete:H,fetchOnComplete:U,xhrOnComplete:W,beaconOnRetry:G}}}catch(bze){}return null}function H(e,t,r){var n=AD(e);$(t,200,{},n),ie(n)}function U(e,t,r,n){var o,i,a={},s=e[Kue];s&&s.forEach(function(e,t){a[t]=e}),o=e.status,$(t,o,a,i=r||Jce),ie(i)}function W(e,t,r){var n=AD(e);$(t,e.status,zD(e,!0),n),ie(n)}function $(e,t,r,n){try{e(t,r,n)}catch(bze){fO(d,2,518,HE(bze))}}function G(e,t,r){var n=200,o=e[Jue],i=e.urlString+(A?"&NoResponseBody=true":Jce);try{var a=pP();if(o){var s=!!h.getPlugin("LocalStorage"),l=[],c=[];ZE(o[Xue],function(e){if(l&&e&&e[Tue]()>0)for(var t=e[Eue](),r=0;r<t[Sue];r++){if(!a.sendBeacon(i,y.getEventBlob(t[r]))){l[Aue](e[Pue](r));break}c[Aue](e[r])}else l[Aue](e[Pue](0))}),c[Sue]>0&&(o.sentEvts=c),s||ae(l,8003,o[Que],!0)}else n=0}catch(u){hO(d,"Failed to send telemetry using sendBeacon API. Ex:"+HE(u)),n=0}finally{$(t,n,{},Jce)}}function Y(e){return 2===e||3===e}function K(e){return x&&Y(e)&&(e=2),e}function J(){return!s&&c<r}function X(){var e=v;return v=[],e}function Q(e,t,r){var n=!1;return e&&e[Sue]>0&&!s&&f[t]&&y&&(n=0!==t||J()&&(r>0||l[bue]())),n}function Z(e){var t={};return e&&ZE(e,function(e,r){t[r]={iKey:e[Cue](),evts:e[Eue]()}}),t}function ee(e,t,r,n,o){if(e&&0!==e[Sue])if(s)ae(e,1,n);else{n=K(n);try{var i=e,l=0!==n;JO(h,function(){return"HttpManager:_sendBatches"},function(i){i&&(e=e.slice(0));for(var s=[],c=null,u=Hce(),d=f[n]||(l?f[1]:f[0]),h=d&&d[nde],p=E&&(x||Y(n)||3===h||d._isSync&&2===h);Q(e,n,t);){var m=e.shift();m&&m[Tue]()>0&&(a.isTenantKilled(m[Cue]())?s[Aue](m):(c=c||y[$ue](t,r,l,p,o,n),y.appendPayload(c,m,L)?null!==c.overflow&&(e=[c.overflow][_ue](e),c.overflow=null,ne(c,u,Hce(),o),u=Hce(),c=null):(ne(c,u,Hce(),o),u=Hce(),e=[m][_ue](e),c=null)))}c&&ne(c,u,Hce(),o),e[Sue]>0&&(v=e[_ue](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){fO(d,2,48,"Unexpected Exception sending batch: "+HE(c))}}}function te(e,t){var r={url:i,hdrs:{},useHdrs:!1};t?(r[Bue]=qce(r[Bue],g),r.useHdrs=wA(r.hdrs)[Sue]>0):QE(g,function(e,t){Ode[e]?jde(r,Ode[e],t,!1):(r[Bue][e]=t,r[Nue]=!0)}),jde(r,cue,"NO_AUTH",t),jde(r,lue,Nce,t);var n=Jce;ZE(e.apiKeys,function(e){n[Sue]>0&&(n+=","),n+=e}),jde(r,fue,n,t),jde(r,due,qA().toString(),t);var o=function(e){for(var t=0;t<e.batches[Sue];t++){var r=e[Xue][t].Msfpc();if(r)return encodeURIComponent(r)}return Jce}(e);if(Mce(o)&&(r.url+="&ext.intweb.msfpc="+o),l[wue]()&&jde(r,uue,l[xue](),t),h[ode]){var a=h[ode]();a>=0&&(r.url+="&w="+a)}for(var s=0;s<m[Sue];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[Sue]>0){var s=!!I,m=f[t.sendType];!Y(t[Que])&&t[ide]&&2===t.sendReason&&(m=f[2]||f[3]||m);var g=k;(t.isBeacon||3===m[nde])&&(g=!1);var v=te(t,g);g=g||v[Nue];var y=Hce();JO(h,function(){return"HttpManager:_doPayloadSend"},function(){for(var f=0;f<t.batches[Sue];f++)for(var w=t[Xue][f][Eue](),k=0;k<w[Sue];k++){var E=w[k];if(b){var A=E[ade]=E[ade]||{};re(A,"sendEventStart",y),re(A,"serializationStart",r),re(A,"serializationCompleted",o)}E[Bde]>0?E[Bde]++:E[Bde]=1}ae(t[Xue],1e3+(i||0),t[Que],!0);var P={data:t[Yue],urlString:v.url,headers:v[Bue],_thePayload:t,_sendReason:i,timeout:S,disableXhrSync:C,disableFetchKeepAlive:T};g&&(Mde(P[Kue],nue)||(P[Kue][nue]=tue),Mde(P[Kue],oue)||(P[Kue][oue]=rue));var N=null;m&&(N=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!==iB){if(r){l[kue](r[sue]);var m=r[aue]||r["kill-duration-seconds"];ZE(a[cde](r[iue],m),function(e){ZE(o[Xue],function(t){if(t[Cue]()===e){d=d||[];var r=t[Pue](0);o.numEvents-=r[Tue](),d[Aue](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[Que]&&(g<n?(f=!0,oe(function(){0===o[Que]&&c--,ee(o[Xue],g+1,o[sde],x?2:o[Que],5)},x,xde(g))):(h=!0,x&&(s=8001)))}}finally{f||(l[kue](),function(t,r,n,o){try{o&&u[ude]();var i=t[Xue];200===r&&(i=t.sentEvts||t[Xue],o||t.isSync||u._clearBackOff(),function(e){if(b){var t=Hce();ZE(e,function(e){e&&e[Tue]()>0&&function(e,t){b&&ZE(e,function(e){re(e[ade]=e[ade]||{},"sendEventCompleted",t)})}(e[Eue](),t)})}}(i)),ae(i,r,t[Que],!0)}finally{0===t[Que]&&(c--,5!==n&&e.sendQueuedRequests(t[Que],n))}}(o,s,i,h)),ae(d,8004,o[Que])}var v}(r,o,t,i)},s=t[sde]||t.isSync;R.preparePayload(function(e){try{m.sendPOST(e,o,s),B&&B(P,e,s,t[ide])}catch(r){$(o,0,{}),hO(d,"Unexpected exception sending payload. Ex:"+HE(r))}},_,r,s)}),JO(h,function(){return"HttpManager:_doPayloadSend.sender"},function(){if(N)if(0===t[Que]&&c++,s&&!t.isBeacon&&3!==m[nde]){var e={data:P.data,urlString:P.urlString,headers:qce({},P[Kue]),timeout:P.timeout,disableXhrSync:P[Lue],disableFetchKeepAlive:P[Fue]},r=!1;JO(h,function(){return"HttpManager:_doPayloadSend.sendHook"},function(){try{I(e,function(e){r=!0,p||e[Jue]||(e[Jue]=e[Jue]||P[Jue],e[lde]=e[lde]||P[lde]),N(e)},t.isSync||t[sde])}catch(n){r||N(P)}})}else N(P)})},function(){return{thePayload:t,serializationStart:r,serializationCompleted:o,sendReason:i}},t.isSync)}t.sizeExceed&&t.sizeExceed[Sue]>0&&ae(t.sizeExceed,8003,t[Que]),t.failedEvts&&t.failedEvts[Sue]>0&&ae(t.failedEvts,8002,t[Que])}function oe(e,t,r){t?e():z.set(e,r)}function ie(e){var t=N;try{for(var r=0;r<t[Sue];r++)try{t[r](e)}catch(bze){fO(d,1,519,"Response handler failed: "+bze)}if(e){var n=JSON.parse(e);Mce(n.webResult)&&Mce(n.webResult[gue])&&w.set("MSFPC",n.webResult[gue],31536e3)}}catch(o){}}function ae(e,t,r,n){if(e&&e[Sue]>0&&o){var i=o[function(e){var t=Dde[e];Mce(t)||(t="oth",e>=9e3&&e<=9999?t=eue:e>=8e3&&e<=8999?t=Xce:e>=1e3&&e<=1999&&(t=Qce));return t}(t)];if(i){var a=0!==r;JO(h,function(){return"HttpManager:_sendBatchesNotification"},function(){oe(function(){try{i.call(o,e,t,a,r)}catch(bze){fO(d,1,74,"send request notification failed: "+bze)}},n||a,0)},function(){return{batches:Z(e),reason:t,isSync:a,sendSync:n,sendType:r}},!a)}}}e[Due]=function(e,r,n){D||(h=r,w=r.getCookieMgr(),d=(u=n).diagLog(),NP(P,jz(e,function(e){var o,a=e.cfg,s=e.cfg.extensionConfig[n.identifier];z=Ide(s[zue],s[Oue]),Mce(a.anonCookieName)?function(e,t,r){for(var n=0;n<e[Sue];n++)if(e[n].name===t)return void(e[n].value=r);e[Aue]({name:t,value:r})}(m,"anoncknm",a.anonCookieName):function(e,t){for(var r=0;r<e[Sue];r++)if(e[r].name===t)return void e.splice(r,1)}(m,"anoncknm"),I=s.payloadPreprocessor,B=s.payloadListener;var l=s.httpXHROverride,c=s[Rue]?s[Rue]:a.endpointUrl;i=c+Nde,k=!!SE(s[Mue])||!s[Mue],b=!s.disableEventTimings;var u=s.maxEvtPerBatch;L=u&&u<=t?u:t;var g=s.valueSanitizer,v=s.stringifyObjects,w=!!a[jue];SE(s[jue])||(w=!!s[jue]),S=s.xhrTimeout;var x=lP("CompressionStream");_=ED("zipPayload",a,!1),IE(x)&&!I||(_=!1),C=!!s[Lue],T=!!s[Fue],A=!1!==s.addNoResponse,O=!!s.excludeCsMetaData,r.getPlugin("LocalStorage")&&(T=!0),j=!GD(),y=new Ade(h,g,v,w,Lce,O,s),CE(s[Vue])||(j=!!s[Vue]),s[que]&&(M=s[que]);var P=q();R?R.SetConfig(P):(R=new qR)[Due](P,d);var N=l,D=s[Hue]?l:null,F=s[Hue]?l:null,H=[3,2];if(!l){p=!1;var U=[];GD()?(U=[2,1],H=[2,1,3]):U=[1,2,3],(l=V(U=BD(U,s.transports),!1))||hO(d,"No available transport to send events"),N=V(U,!0)}D||(D=V(H=BD(H,s.unloadTransports),!0)),E=!p&&(j&&JD()||!T&&XD(!0)),(o={})[0]=l,o[1]=N||V([1,2,3],!0),o[2]=D||N||V([1],!0),o[3]=F||V([2,3],!0)||N||V([1],!0),f=o})),D=!0)},e.addResponseHandler=function(e){return N[Aue](e),{rm:function(){var t=N.indexOf(e);t>=0&&N.splice(t,1)}}},e[Uue]=function(e){try{if(y)return y.getEventBlob(e)}catch(bze){}return Jce},e[Wue]=function(){try{return te(y&&y[$ue](0,!1,!1,!1,1,0),k)}catch(bze){}return null},e[Gue]=function(e,t){try{var r=[];ZE(e,function(e){t&&(e=CD(e));var n=yde.create(e[Cue],[e]);r[Aue](n)});for(var n=null;r[Sue]>0&&y;){var o=r.shift();o&&o[Tue]()>0&&(n=n||y[$ue](0,!1,!1,!1,1,0),y.appendPayload(n,o,L))}var i=te(n,k),a={data:n[Yue],urlString:i.url,headers:i[Bue],timeout:S,disableXhrSync:C,disableFetchKeepAlive:T};return k&&(Mde(a[Kue],nue)||(a[Kue][nue]=tue),Mde(a[Kue],oue)||(a[Kue][oue]=rue)),a}catch(bze){}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[Zue]=function(){return J()&&l[bue]()},e[ede]=function(e,t){SE(e)&&(e=0),x&&(e=K(e),t=2),Q(v,e,0)&&ee(X(),0,!1,e,t||0)},e.isCompletelyIdle=function(){return!s&&0===c&&0===v[Sue]},e[tde]=function(e){x=e},e.addBatch=function(e){if(e&&e[Tue]()>0){if(a.isTenantKilled(e[Cue]()))return!1;v[Aue](e)}return!0},e.teardown=function(){v[Sue]>0&&ee(X(),0,!0,2,2),ZE(P,function(e){e&&e.rm&&e.rm()}),P=[]},e.pause=function(){s=!0},e.resume=function(){s=!1,e[ede](0,4)},e[rde]=function(e,t,r){e&&e[Tue]()>0&&(CE(t)&&(t=1),x&&(t=K(t),r=2),ee([e],0,!1,t,r||0))}})}return e.__ieDyn=1,e}(),Fde=1e4,Vde="eventsDiscarded",qde=void 0,Hde=kA({eventsLimitInMem:{isVal:$ce,v:Fde},immediateEventLimit:{isVal:$ce,v:500},autoFlushEventsLimit:{isVal:$ce,v:0},disableAutoBatchFlushLimit:!1,httpXHROverride:{isVal:function(e){return e&&e.sendPOST},v:qde},overrideInstrumentationKey:qde,overrideEndpointUrl:qde,disableTelemetry:!1,ignoreMc1Ms0CookieProcessing:!1,setTimeoutOverride:qde,clearTimeoutOverride:qde,payloadPreprocessor:qde,payloadListener:qde,disableEventTimings:qde,valueSanitizer:qde,stringifyObjects:qde,enableCompoundKey:qde,disableOptimizeObj:!1,fetchCredentials:qde,transports:qde,unloadTransports:qde,useSendBeacon:qde,disableFetchKeepAlive:qde,avoidOptions:!1,xhrTimeout:qde,disableXhrSync:qde,alwaysUseXhrOverride:!1,maxEventRetryAttempts:{isVal:zE,v:6},maxUnloadEventRetryAttempts:{isVal:zE,v:2},addNoResponse:qde,maxEvtPerBatch:{isVal:zE,v:500},excludeCsMetaData:qde,requestLimit:{}});var Ude,Wde=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,k,S,_,C,T,E,A,P,I=!1,B=[],N=!1,D=0,z=0,O={},R=Kce;return rB(t,n,function(e,t){function n(){var e,t;vM(null,x),bM(null,x),e=null,t=dM(eM,x),mM([JR],e,t),mM([YR],null,t)}function M(e){var t="";return e&&e[Sue]&&ZE(e,function(e){t&&(t+="\n"),t+=e}),t}function j(e){var t="";try{V(e),t=d[Uue](e)}catch(bze){}return t}function L(e){"beforeunload"!==(e||fP().event).type&&(y=!0,d[tde](y)),K(2,2)}function F(e){y=!1,d[tde](y)}function V(e){e.ext&&e.ext[vue]&&delete e.ext[vue],e.ext&&e.ext[yue]&&e.ext[yue].id&&delete e.ext[yue].id,v&&(e.ext=CD(e.ext),e.baseData&&(e.baseData=CD(e.baseData)),e.data&&(e.data=CD(e.data)))}function q(e,t){if(e[hde]||(e[hde]=0),e[pde]||(e[pde]=1),V(e),e[mde])if(c||N)e[pde]=3,e[mde]=!1;else if(d)return v&&(e=CD(e)),void d[rde](yde.create(e[Cue],[e]),!0===e[mde]?1:e[mde],3);var r=e[pde],n=z,o=a;4===r&&(n=D,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=J(e,t,!0);if(o&&o[Tue]()>0){var i=o[Pue](0,n),a=i[Tue]();if(a>0)return 4===r?D-=a:z-=a,se(Vde,[i],vB.QueueFull),!0}r++}return Z(),!1}(e[Cue],e[pde],l,u)&&(s=!Q(e,t))}s&&ae(Vde,[e],vB.QueueFull)}function H(e,t,r){var n=ee(e,t,r);return d[ede](t,r),n}function U(){return z>0}function W(){if(m>=0&&ee(m,0,g)&&d[ede](0,g),D>0&&!l&&!N){var e=O[R][2];e>=0&&(l=G(function(){l=null,H(4,0,1),W()},e))}var t=O[R][1];!s&&!o&&t>=0&&!N&&(U()?s=G(function(){s=null,H(0===u?3:1,0,1),u++,u%=2,W()},t):u=0)}function $(){r=null,I=!1,B=[],o=null,N=!1,D=0,i=500,z=0,a=Fde,O={},R=Kce,s=null,l=null,c=0,u=0,f={},h=0,T=!1,p=0,m=-1,g=null,v=!0,y=!1,b=6,w=2,x=null,E=null,P=null,A=!1,k=Ide(),d=new Lde(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=xde(c-1)),k.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),N||H(1,e,t)}function J(e,t,r){var n=f[t];n||(n=f[t=1]);var o=n.iKeyMap[e];return!o&&r&&(o=yde.create(e),n.batches[Aue](o),n.iKeyMap[e]=o),o}function X(t,r){d[Zue]()&&!c&&(h>0&&z>h&&(r=!0),r&&null==o&&e.flush(t,function(){},20))}function Q(e,t){v&&(e=CD(e));var r=e[pde],n=J(e[Cue],r,!0);return!!n.addEvent(e)&&(4!==r?(z++,t&&0===e[hde]&&X(!e.sync,p>0&&n[Tue]()>=p)):D++,!0)}function Z(){for(var e=0,t=0,r=function(r){var n=f[r];n&&n[Xue]&&ZE(n[Xue],function(n){4===r?e+=n[Tue]():t+=n[Tue]()})},n=1;n<=4;n++)r(n);z=t,D=e}function ee(t,r,n){var o=!1,i=0===r;return!i||d[Zue]()?JO(e.core,function(){return"PostChannel._queueBatches"},function(){for(var e=[],r=4;r>=t;){var n=f[r];n&&n.batches&&n.batches[Sue]>0&&(ZE(n[Xue],function(t){d.addBatch(t)?o=o||t&&t[Tue]()>0:e=e[_ue](t[Eue]()),4===r?D-=t[Tue]():z-=t[Tue]()}),n[Xue]=[],n.iKeyMap={}),r--}e[Sue]>0&&ae(Vde,e,vB.KillSwitch),o&&m>=t&&(m=-1,g=0)},function(){return{latency:t,sendType:r,sendReason:n}},!i):(m=m>=0?NA(m,t):t,g=DA(g,n)),o}function te(e,t){H(1,0,t),Z(),re(function(){e&&e(),B[Sue]>0?o=G(function(){o=null,te(B.shift(),t)},0):(o=null,W())})}function re(e){d.isCompletelyIdle()?e():o=G(function(){o=null,re(e)},.25)}function ne(){(O={})[Kce]=[2,1,0],O.NEAR_REAL_TIME=[6,3,0],O.BEST_EFFORT=[18,9,0]}function oe(t,r){var n=[],o=b;y&&(o=w),ZE(t,function(t){t&&t[Tue]()>0&&ZE(t[Eue](),function(t){t&&(t[mde]&&(t[pde]=4,t[mde]=!1),t[hde]<o?(Uce(t,e[dde]),q(t,!1)):n[Aue](t))})}),n[Sue]>0&&ae(Vde,n,vB.NonRetryableStatus),y&&K(2,2)}function ie(t,r){var n=C||{},o=n[t];if(o)try{o.apply(n,r)}catch(bze){fO(e.diagLog(),1,74,t+" notification failed: "+bze)}}function ae(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];t&&t[Sue]>0&&ie(e,[t][_ue](r))}function se(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];t&&t[Sue]>0&&ZE(t,function(t){t&&t[Tue]()>0&&ie(e,[t.events()][_ue](r))})}function le(e,t,r){e&&e[Sue]>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(Vde,e,t>=8e3&&t<=8999?t-8e3:vB.Unknown)}function de(e){se(Vde,e,vB.NonRetryableStatus),W()}function fe(e,t){se(Vde,e,vB.Unknown),W()}function he(){p=_?0:DA(3*P,a/6)}$(),e._getDbgPlgTargets=function(){return[d,r]},e[Due]=function(o,s,l){JO(s,function(){return"PostChannel:initialize"},function(){t[Due](o,s,l),C=s.getNotifyMgr();try{x=dM(mz(e[dde]),s.evtNamespace&&s.evtNamespace()),e._addHook(jz(o,function(t){var o=t.cfg,l=yR(null,o,s);r=l.getExtCfg(e[dde],Hde),k=Ide(r[zue],r[Oue]),v=!r.disableOptimizeObj&&!!lP("chrome"),S=r.ignoreMc1Ms0CookieProcessing,function(e){var t=e[ode];e[ode]=function(){var r=0;return S&&(r|=2),r|t.call(e)}}(s),a=r.eventsLimitInMem,i=r.immediateEventLimit,h=r[fde],b=r.maxEventRetryAttempts,w=r.maxUnloadEventRetryAttempts,_=r.disableAutoBatchFlushLimit,P=r.maxEvtPerBatch,ME(o.endpointUrl)?e.pause():N&&e.resume(),he(),E=r.overrideInstrumentationKey,A=!!r.disableTelemetry,T&&n();var c=o.disablePageUnloadEvents||[];T=gM(L,c,x),T=yM(L,c,x)||T,T=wM(F,o.disablePageShowEvents,x)||T})),d[Due](o,e.core,e)}catch(bze){throw e.setInitialized(!1),bze}},function(){return{theConfig:o,core:s,extensions:l}})},e.processTelemetry=function(t,r){Uce(t,e[dde]),r=r||e._getTelCtx(r);var n=t;A||I||(E&&(n[Cue]=E),q(n,!0),y?K(2,2):W()),e.processNext(n,r)},e.getOfflineSupport=function(){try{var e=d&&d[Wue]();if(d)return{getUrl:function(){return e?e.url:null},serialize:j,batch:M,shouldProcess:function(e){return!A},createPayload:function(e){return null},createOneDSPayload:function(e){if(d[Gue])return d[Gue](e,v)}}}catch(bze){}return null},e._doTeardown=function(e,t){K(2,2),I=!0,d.teardown(),n(),$()},e.setEventQueueLimits=function(e,t){r.eventsLimitInMem=a=$ce(e)?e:Fde,r[fde]=h=$ce(t)?t:0,he();var n=z>e;if(!n&&p>0)for(var o=1;!n&&o<=3;o++){var i=f[o];i&&i[Xue]&&ZE(i[Xue],function(e){e&&e[Tue]()>=p&&(n=!0)})}X(!0,n)},e.pause=function(){Y(),N=!0,d&&d.pause()},e.resume=function(){N=!1,d&&d.resume(),W()},e._loadTransmitProfiles=function(e){Y(),ne(),R=Kce,W(),QE(e,function(e,t){var r=t[Sue];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]=JP(o)*t[1]}n>=0&&t[1]>=0&&n>t[1]&&(n=t[1]),t[Aue](n),O[e]=t}})},e.flush=function(e,t,r){var n;if(void 0===e&&(e=!0),!N)if(r=r||1,e)t||(n=qN(function(e){t=e})),null==o?(Y(),ee(1,0,r),o=G(function(){o=null,te(t,r)},0)):B[Aue](t);else{var i=Y();H(1,1,r),t&&t(),i&&W()}return n},e.setMsaAuthTicket=function(e){d.addHeader(hue,e)},e.setAuthPluginHeader=function(e){d.addHeader(pue,e)},e.removeAuthPluginHeader=function(){d.removeHeader(pue)},e.hasEvents=U,e._setTransmitProfile=function(e){R!==e&&void 0!==O[e]&&(Y(),R=e,W())},_D(e,function(){return d},["addResponseHandler"]),e[ude]=function(){c<4&&(c++,Y(),W())},e._clearBackOff=function(){c&&(c=0,Y(),W())}}),n}return fB(t,e),t.__ieDyn=1,t}(TR),$de="locale",Gde="ver",Yde="name",Kde=gB({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"]}),Jde=gB({id:[0,"id"],ver:[1,Gde],appName:[2,Yde],locale:[3,$de],expId:[4,"expId"],env:[5,"env"]}),Xde=gB({domain:[0,"domain"],browser:[1,"browser"],browserVer:[2,"browserVer"],screenRes:[3,"screenRes"],userConsent:[4,"userConsent"],consentDetails:[5,"consentDetails"]}),Qde=gB({locale:[0,$de],localId:[1,"localId"],id:[2,"id"]}),Zde=gB({osName:[0,Yde],ver:[1,Gde]}),efe=gB({ver:[0,Gde],seq:[1,"seq"],installId:[2,"installId"],epoch:[3,"epoch"]}),tfe=gB({msfpc:[0,"msfpc"],anid:[1,"anid"],serviceName:[2,"serviceName"]}),rfe=gB({popSample:[0,"popSample"],eventFlags:[1,"eventFlags"]}),nfe=gB({tz:[0,"tz"]}),ofe=gB({sessionId:[0,"sesId"]}),ife=gB({localId:[0,"localId"],deviceClass:[1,"deviceClass"],make:[2,"make"],model:[3,"model"]}),afe=gB({role:[0,"role"],roleInstance:[1,"roleInstance"],roleVer:[2,"roleVer"]}),sfe=gB({traceId:[0,"traceID"],traceName:[1,Yde],parentId:[2,"parentID"]}),lfe=gB({traceId:[0,"traceId"],spanId:[1,"spanId"],traceFlags:[2,"traceFlags"]});function cfe(){return void 0===Ude&&(Ude=!!dfe(0)),Ude}function ufe(){return cfe()?dfe(0):null}function dfe(e){var t,r,n=null;try{var o=sP();if(!o)return null;r=new Date,(n=0===e?o.localStorage:o.sessionStorage)&&IE(n.setItem)&&(n.setItem(r,r),t=n.getItem(r)!==r,n.removeItem(r),t&&(n=null))}catch(i){n=null}return n}function ffe(){return this.getId()}function hfe(e){this.setId(e)}var pfe=function(){function e(){rB(e,this,function(e){e.setId=function(t){e.customId=t},e.getId=function(){return PE(e.customId)?e.customId:e.automaticId}})}return e._staticInit=void dA(e.prototype,"id",{g:ffe,s:hfe}),e}(),mfe="ai_session",gfe=function(){function e(t,r,n){var o,i,a,s=sO(t),l=NO(t);rB(e,this,function(t){var c=jz(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(bze){fO(s,1,510,"Error parsing ai_session cookie, session will be reset: "+bze)}0===r.renewalDate&&fO(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;!SE(n)&&n?OE(n)?e.setId(Vce()):e.setId(Vce(n)):e.setId(uz(a.idLength||22)),e.acquisitionDate=r,e.renewalDate=r,f(e.getId(),e.acquisitionDate,e.renewalDate),cfe()||fO(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?mfe+t.config.namePrefix:mfe},t.automaticSession=new pfe,t.update=function(){t.automaticSession.getId()||function(){var e=l.get(i());if(e&&IE(e.split))u(e);else{var r=function(e,t){var r=ufe();if(null!==r)try{return r.getItem(t)}catch(bze){Ude=!1,fO(e,1,503,"Browser failed read of local storage. "+bze)}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=ufe();if(null!==n)try{return n.setItem(t,r),!0}catch(bze){Ude=!1,fO(e,1,504,"Browser failed write to local storage. "+bze)}}(s,i(),[e,r,n].join("|"))}})}return e.cookieUpdateInterval=6e4,e}(),vfe=["AX","EX","SF","CS","CF","CT","CU","DC","DF","H5","HL","WS","WP"];function yfe(e,t){void 0===t&&(t=vfe);var r=null;if(e)for(var n=e.split(","),o=0;o<n.length;o++)bfe(n[o],t)&&(r?r+=","+n[o]:r=n[o]);return r}function bfe(e,t){if(void 0===t&&(t=vfe),!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 wfe(){return this.getExpId()}var xfe=function(){function e(t,r,n){var o,i=null,a=vfe.slice(0),s="Treatments",l=null;rB(e,this,function(e){var c,u;if(u=jz(c=t,function(){o=r&&r.getCookieMgr(),l=c||{},e.env=l.env||function(e){var t,r={},n=uP();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),cP()){var d=uP().documentElement;d&&(e.locale=d.lang)}function f(e){e!==i&&(i=yfe(e,a))}e.getExpId=function(){return l.expId?(f(l.expId),i):(f(Fce(o,s)),i)}})}return e.validateAppExpId=yfe,e._staticInit=void dA(e.prototype,"expId",{g:wfe}),e}(),kfe=function(){return function(){}}(),Sfe=function(){return function(){}}();function _fe(){return this.getMsfpc()}function Cfe(){return this.getAnid()}var Tfe=function(){function e(t,r,n){var o;rB(e,this,function(e){var i,a;a=jz(i=t,function(){o=r&&r.getCookieMgr();var t=i||{};t.serviceName&&(e.serviceName=t.serviceName)}),n&&n.add(a),e.getMsfpc=function(){return Fce(o,"MSFPC")},e.getAnid=function(){return Fce(o,"ANON").slice(0,34)}})}var t;return e._staticInit=(dA(t=e.prototype,"msfpc",{g:_fe}),void dA(t,"anid",{g:Cfe})),e}(),Efe=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())}}(),Afe={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},Pfe={5.1:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1","10.0":"10"},Ife="([\\d,_,.]+)",Bfe="Unknown",Nfe=[{r:Afe.WINPHONE,os:"Windows Phone"},{r:Afe.WINRT,os:"Windows RT"},{r:Afe.WIN,os:"Windows"},{r:Afe.IOS,os:"iOS"},{r:Afe.ANDROID,os:"Android"},{r:Afe.LINUX,os:"Linux"},{r:Afe.CROS,os:"Chrome OS"},{s:"x11",os:"Unix"},{s:"blackberry",os:"BlackBerry"},{s:"symbian",os:"Symbian"},{s:"nokia",os:"Nokia"},{r:Afe.OSX,os:"Mac OS X"}];function Dfe(e,t){return"Windows"===t?zfe(e,"Windows NT"):"Android"===t?zfe(e,t):"Mac OS X"===t?function(e){var t=e.match(new RegExp("Mac OS X "+Ife));if(t){var r=t[1].replace(/_/g,".");if(r){var n=Ofe(r);return n?r.split(n)[0]:r}}return Bfe}(e):"iOS"===t?function(e){var t=e.match(new RegExp("OS "+Ife));if(t){var r=t[1].replace(/_/g,".");if(r){var n=Ofe(r);return n?r.split(n)[0]:r}}return Bfe}(e):Bfe}function zfe(e,t){var r=e.match(new RegExp(t+" ([\\d,.]+)"));return r?Pfe[r[1]]?Pfe[r[1]]:r[1]:Bfe}function Ofe(e){return e.indexOf(".")>-1?".":e.indexOf("_")>-1?"_":null}var Rfe=function(){return function(e,t){var r=null,n=null,o=null,i=null,a=jz(e,function(){if((e||{}).populateOperatingSystemInfo){var t=pP()||{},o=e.userAgent||t.userAgent||"",i=(e.userAgentData||{}).platform||(t.userAgentData||{}).platform;if(o){var a=function(e){for(var t=0;t<Nfe.length;t++){var r=Nfe[t];if(r.r&&e.match(r.r))return r.os;if(r.s&&-1!==e.indexOf(r.s))return r.os}return Bfe}(o.toLowerCase());r=a,n=Dfe(o,a)}r&&r!==Bfe||!PE(i)||(r=i)}});t&&t.add(a),dA(this,"name",{s:function(e){o=e},g:function(){return o||r}}),dA(this,"ver",{s:function(e){i=e},g:function(){return i||n}})}}(),Mfe="MicrosoftApplicationsTelemetryDeviceId";var jfe=function(){function e(t,r,n){var o,i=0;rB(e,this,function(e){e.seq=i,e.epoch=cz(!1).toString(),e.getSequenceId=function(){return++i};var a=jz(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)||"":Fce(e,r)}(o,n,Mfe);i||(i=XO()),function(e,t,r,n){t?t.setProperty(r,n):e.set(r,n,31536e3)}(o,n,Mfe,i),e.installId=i}else o.purge(Mfe)});n&&n.add(a)})}return e.__ieDyn=1,e}(),Lfe=function(){return function(e,t,r,n,o){var i=this;i.traceId=t||QO();var a=jz(e,function(){var t=e;if(t.enableDistributedTracing&&!r&&(r=QO().substring(0,16)),i.parentId=i.parentId||r,t.enableApplicationInsightsTrace&&!n){var o=UD();o&&o.pathname&&(n=o.pathname)}i.name=i.name||n});o&&o.add(a)}}(),Ffe="setLocalId";function Vfe(){return this.getLocalId()}function qfe(e){this[Ffe](e)}var Hfe=function(){function e(t,r,n,o){var i,a,s;rB(e,this,function(l){var c,u;if(u=jz(c=r,function(){if(s=n&&n.getCookieMgr(),i=c,a=null,s&&s.isEnabled()&&(f(),i.enableApplicationInsightsUser)){var r=Fce(s,e.userCookieName);if(r){var o=r.split(e.cookieSeparator);o.length>0&&(l.id=o[0])}if(!l.id){l.id=uz(t&&!SE(t.idLength)?t.idLength:22);var u=vD(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=Fce(s,"MUID");e&&(a="t:"+e)}return a}l.getLocalId=function(){return a||f()},l[Ffe]=function(e){a=e}})}return e.cookieSeparator="|",e.userCookieName="ai_user",e._staticInit=void dA(e.prototype,"localId",{g:Vfe,s:qfe}),e}(),Ufe=function(){return function(e,t){var r=this;r.popSample=100;var n=jz(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)}}(),Wfe=["Required","Analytics","SocialMedia","Advertising"],$fe="([\\d,.]+)",Gfe="Unknown",Yfe="Edg/",Kfe="EdgiOS/",Jfe=[{ua:"OPR/",b:"Opera"},{ua:"PhantomJS",b:"PhantomJS"},{ua:"Edge",b:"Edge"},{ua:Yfe,b:"Edge"},{ua:Kfe,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"}],Xfe=[{br:"Microsoft Edge",b:"Edge"},{br:"Google Chrome",b:"Chrome"},{br:"Opera",b:"Opera"}];function Qfe(e,t){return t.indexOf(e)>-1}function Zfe(e,t){for(var r=0;r<t.length;r++)if(e==t[r].brand)return t[r].version;return null}function ehe(e,t){return"MSIE"===t?function(e){var t=e.match(new RegExp("MSIE "+$fe));if(t)return t[1];var r=e.match(new RegExp("rv:"+$fe));if(r)return r[1]}(e):function(e,t){"Safari"===e?e="Version":"Edge"===e&&(Qfe(Yfe,t)?e="Edg":Qfe(Kfe,t)&&(e="EdgiOS"));var r=t.match(new RegExp(e+"/"+$fe));if(r)return r[1];if("Opera"===e&&(r=t.match(new RegExp("OPR/"+$fe))))return r[1];return Gfe}(t,e)}function the(){return this.getUserConsent()}var rhe=function(){function e(t,r,n){NO(r);var o=t||{},i=null,a=null,s=null,l=null,c=null,u=null,d=null;rB(e,this,function(e){var r,f;f=jz(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=pP();n&&(e=e||n.userAgent||"",t=t||(n.userAgentData||{}).brands)}!function(e,t){if(NE(t))try{for(var r=0;r<Xfe.length;r++){var n=Zfe(Xfe[r].br,t);if(n)return c=Xfe[r].b,void(u=n)}}catch(bze){}if(e){var o=function(e){if(e)for(var t=0;t<Jfe.length;t++)if(Qfe(Jfe[t].ua,e))return Jfe[t].b;return Gfe}(e);c=o,u=ehe(e,o)}}(e,t),i=e,a=t}}d=OE(o.gpcDataSharingOptIn)?o.gpcDataSharingOptIn:null}),n&&n.add(f);var h=UD();if(h){var p=h.hostname;p&&(e.domain="file:"===h.protocol?"local":p)}var m=function(){var e={h:0,w:0},t=fP();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<Wfe.length;n++){var i=Wfe[n];e[i]=r[i]||!1}}}return null!==d&&((e=e||{}).GPC_DataSharingOptIn=!!d),e?JSON.stringify(e):null}catch(bze){}};fA(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=OE(e)?e:null,o.gpcDataSharingOptIn=d}}})})}return e._staticInit=void dA(e.prototype,"userConsent",{g:the}),e}();function nhe(e,t,r,n,o){var i=t.ext[Kde[e]];if(i)try{QE(n,function(e,t){if(PE(t)||zE(t)||OE(t)){var n=i[r[e]];!o&&(n||PE(n)||zE(n)||OE(n))&&(t=n),i[r[e]]=t}})}catch(bze){}return i}var ohe,ihe=function(){function e(t,r,n,o){rB(e,this,function(e){e.app=new xfe(r,n,o),e.cloud=new kfe,e.user=new Hfe(t,r,n,o),e.os=new Rfe(r,o),e.web=new rhe(r,n,o);var i=new jfe(t,n,o),a=new Tfe(r,n,o),s=new Ufe(r,o);e.loc=new Efe,e.device=new Sfe;var l=new gfe(n,r,o);e.session=new pfe;var c,u,d,f=void 0,h=(c=new Lfe(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),iR(e)&&(d.traceId=e)},getSpanId:function(){return d.parentId},setSpanId:function(e){u&&u.setSpanId(e),aR(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&&PE(t.customId))return t.customId;l.update();var r=l.automaticSession;if(r){var n=r.getId();n&&PE(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;nhe(4,t,Jde,((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;nhe(0,t,Qde,((r={})[1]=n.getLocalId(),r[0]=n.locale,r[2]=n.id,r),p)},e.applyWebContext=function(t){var r,n=e.web;nhe(3,t,Xde,((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;nhe(5,t,Zde,((r={})[0]=n.name,r[1]=n.ver,r),p)},e.applySdkContext=function(e){var t;nhe(6,e,efe,((t={})[2]=i.installId,t[1]=i.getSequenceId(),t[3]=i.epoch,t),p)},e.applyIntWebContext=function(e){var t;nhe(7,e,tfe,((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),nhe(8,e,rfe,r,p)},e.applyLocContext=function(t){var r;nhe(9,t,nfe,((r={})[0]=e.loc.tz,r),p)},e.applySessionContext=function(e){var t;nhe(4,e,ofe,((t={})[0]=m(),t),p)},e.applyDeviceContext=function(t){var r,n=e.device;nhe(1,t,ife,((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;nhe(10,t,afe,((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&&nhe(2,e,sfe,((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();CE(o)||(n[2]=o),nhe(11,e,lfe,n,!1)}}})}return e.__ieDyn=1,e}();var ahe=[Kde[4],Kde[0],Kde[3],Kde[5],Kde[6],Kde[7],Kde[8],Kde[9],Kde[1],Kde[2],Kde[11],Kde[10]],she=kA({populateBrowserInfo:!1,populateOperatingSystemInfo:!1,userAgent:Yz(),userAgentData:Hz({brands:ohe,mobile:ohe,platform:ohe}),userConsentCookieName:Yz(),userConsented:!1,serviceName:Yz(),env:Yz(),expId:Yz(),sessionRenewalMs:18e5,sessionExpirationMs:864e5,sessionAsGuid:null,cookieDomain:Yz(),namePrefix:Yz(),enableApplicationInsightsTrace:!1,enableApplicationInsightsUser:!1,hashIdentifiers:!1,dropIdentifiers:!1,scrubIpOnly:!1,callback:Hz({userConsentDetails:null}),gpcDataSharingOptIn:ohe,idLength:22,enableDistributedTracing:!1,eventContainExtFields:!1}),lhe=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",rB(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(jz(t,function(){var e=yR(null,t,i);o=e.getExtCfg(n,she)})),r=new ihe(t,o,i,e._unloadHooks),i&&i.setTraceCtx&&i.setTraceCtx(r.getTraceCtx())}(n)},e.processTelemetry=function(t,i){Uce(t,e.identifier),i=e._getTelCtx(i);var a,s,l=t.ext=t.ext?t.ext:{};t.data=t.data?t.data:{},ZE(ahe,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)),ZE(wA(l),function(e){0===wA(l[e]).length&&delete l[e]}),a=n,s=t.data,a&&QE(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 fB(t,e),t.__ieDyn=1,t}(TR);function che(e,t,r){var n=e;if(n){for(;!t(n,r);)if(!(n=dhe(n=n.parentNode))||!n.getAttribute)return null;return n}}function uhe(e){return"A"===e.nodeName}function dhe(e){return e}function fhe(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 hhe(e,t){return!!Mce(phe(e,"data-bi-dnt"))}function phe(e,t){return che(e,mhe,t)}function mhe(e,t){var r=e.getAttribute(t);return Mce(r)||""===r}function ghe(e){return"["+e+"]"}function vhe(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 yhe(){var e={h:0,v:0},t=fP(),r=uP();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 bhe(){var e={h:0,w:0},t=fP(),r=uP();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 whe,xhe,khe={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0};function She(e){if(e){var t=function(e){return che(e,uhe)}(e);if(t&&1===t.length){if(t[0].href)return t[0].href;if(t[0].src)return t[0].src}}return""}function _he(e){if(!e||!e.attributes)return!1;try{var t=e.getAttribute("data-dc");return!!Mce(t)&&"pii"===t.toLowerCase()}catch(bze){return!1}}function Che(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)+(Mce(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 The(e,t,r){var n,o="",i={},a=[],s=e.cookiesToCollect;!1===e.shareAuthStatus?a=s:ZE(s,function(e){"ANON"!==e&&a.push(e)});try{Rce&&window.varCustomerCookies&&window.varCustomerCookies.length>0&&(a=a.concat(window.varCustomerCookies))}catch(bze){fO(r,1,512,"Failed to get cookies ")}return ZE(a,function(e){i.hasOwnProperty(e)||(i[e]="",""!==(n=decodeURIComponent(t.get(e)))&&(o+=e+"="+n+";"))}),o}function Ehe(e,t){var r=dM(mz("onDomLoaded"),t);Ahe(function(){if(Oce&&"complete"===document.readyState)e();else{var t=fP();t&&fM(t,"load",function(){e&&e(),e=null,hM(t,null,null,r)},r)}})}function Ahe(e){var t=uP()||{};/in/.test(t.readyState)?setTimeout(function(){Ahe(e)},100):e.call()}(xhe=whe||(whe={}))[xhe.UNDEFINED=0]="UNDEFINED",xhe[xhe.NAVIGATIONBACK=1]="NAVIGATIONBACK",xhe[xhe.NAVIGATION=2]="NAVIGATION",xhe[xhe.NAVIGATIONFORWARD=3]="NAVIGATIONFORWARD",xhe[xhe.APPLY=4]="APPLY",xhe[xhe.REMOVE=5]="REMOVE",xhe[xhe.SORT=6]="SORT",xhe[xhe.EXPAND=7]="EXPAND",xhe[xhe.REDUCE=8]="REDUCE",xhe[xhe.CONTEXTMENU=9]="CONTEXTMENU",xhe[xhe.TAB=10]="TAB",xhe[xhe.COPY=11]="COPY",xhe[xhe.EXPERIMENTATION=12]="EXPERIMENTATION",xhe[xhe.PRINT=13]="PRINT",xhe[xhe.SHOW=14]="SHOW",xhe[xhe.HIDE=15]="HIDE",xhe[xhe.MAXIMIZE=16]="MAXIMIZE",xhe[xhe.MINIMIZE=17]="MINIMIZE",xhe[xhe.BACKBUTTON=18]="BACKBUTTON",xhe[xhe.OPENAPP=19]="OPENAPP",xhe[xhe.STARTPROCESS=20]="STARTPROCESS",xhe[xhe.PROCESSCHECKPOINT=21]="PROCESSCHECKPOINT",xhe[xhe.COMPLETEPROCESS=22]="COMPLETEPROCESS",xhe[xhe.SCENARIOCANCEL=23]="SCENARIOCANCEL",xhe[xhe.DOWNLOADCOMMIT=40]="DOWNLOADCOMMIT",xhe[xhe.DOWNLOAD=41]="DOWNLOAD",xhe[xhe.SEARCHAUTOCOMPLETE=60]="SEARCHAUTOCOMPLETE",xhe[xhe.SEARCH=61]="SEARCH",xhe[xhe.SEARCHINITIATE=62]="SEARCHINITIATE",xhe[xhe.TEXTBOXINPUT=63]="TEXTBOXINPUT",xhe[xhe.SEARCHAI=64]="SEARCHAI",xhe[xhe.SEARCHAIAUTOCOMPLETE=65]="SEARCHAIAUTOCOMPLETE",xhe[xhe.PURCHASE=80]="PURCHASE",xhe[xhe.ADDTOCART=81]="ADDTOCART",xhe[xhe.VIEWCART=82]="VIEWCART",xhe[xhe.ADDWISHLIST=83]="ADDWISHLIST",xhe[xhe.FINDSTORE=84]="FINDSTORE",xhe[xhe.CHECKOUT=85]="CHECKOUT",xhe[xhe.REMOVEFROMCART=86]="REMOVEFROMCART",xhe[xhe.PURCHASECOMPLETE=87]="PURCHASECOMPLETE",xhe[xhe.VIEWCHECKOUTPAGE=88]="VIEWCHECKOUTPAGE",xhe[xhe.VIEWCARTPAGE=89]="VIEWCARTPAGE",xhe[xhe.VIEWPDP=90]="VIEWPDP",xhe[xhe.UPDATEITEMQUANTITY=91]="UPDATEITEMQUANTITY",xhe[xhe.INTENTTOBUY=92]="INTENTTOBUY",xhe[xhe.PUSHTOINSTALL=93]="PUSHTOINSTALL",xhe[xhe.SIGNIN=100]="SIGNIN",xhe[xhe.SIGNOUT=101]="SIGNOUT",xhe[xhe.SOCIALSHARE=120]="SOCIALSHARE",xhe[xhe.SOCIALLIKE=121]="SOCIALLIKE",xhe[xhe.SOCIALREPLY=122]="SOCIALREPLY",xhe[xhe.CALL=123]="CALL",xhe[xhe.EMAIL=124]="EMAIL",xhe[xhe.COMMUNITY=125]="COMMUNITY",xhe[xhe.SOCIALFOLLOW=126]="SOCIALFOLLOW",xhe[xhe.VOTE=140]="VOTE",xhe[xhe.SURVEYINITIATE=141]="SURVEYINITIATE",xhe[xhe.SURVEYCOMPLETE=142]="SURVEYCOMPLETE",xhe[xhe.REPORTAPPLICATION=143]="REPORTAPPLICATION",xhe[xhe.REPORTREVIEW=144]="REPORTREVIEW",xhe[xhe.SURVEYCHECKPOINT=145]="SURVEYCHECKPOINT",xhe[xhe.CONTACT=160]="CONTACT",xhe[xhe.REGISTRATIONINITIATE=161]="REGISTRATIONINITIATE",xhe[xhe.REGISTRATIONCOMPLETE=162]="REGISTRATIONCOMPLETE",xhe[xhe.CANCELSUBSCRIPTION=163]="CANCELSUBSCRIPTION",xhe[xhe.RENEWSUBSCRIPTION=164]="RENEWSUBSCRIPTION",xhe[xhe.CHANGESUBSCRIPTION=165]="CHANGESUBSCRIPTION",xhe[xhe.REGISTRATIONCHECKPOINT=166]="REGISTRATIONCHECKPOINT",xhe[xhe.CHATINITIATE=180]="CHATINITIATE",xhe[xhe.CHATEND=181]="CHATEND",xhe[xhe.TRIALSIGNUP=200]="TRIALSIGNUP",xhe[xhe.TRIALINITIATE=201]="TRIALINITIATE",xhe[xhe.SIGNUP=210]="SIGNUP",xhe[xhe.FREESIGNUP=211]="FREESIGNUP",xhe[xhe.PARTNERREFERRAL=220]="PARTNERREFERRAL",xhe[xhe.LEARNLOWFUNNEL=230]="LEARNLOWFUNNEL",xhe[xhe.LEARNHIGHFUNNEL=231]="LEARNHIGHFUNNEL",xhe[xhe.SHOPPINGINTENT=232]="SHOPPINGINTENT",xhe[xhe.TRIALINTENT=234]="TRIALINTENT",xhe[xhe.VIDEOSTART=240]="VIDEOSTART",xhe[xhe.VIDEOPAUSE=241]="VIDEOPAUSE",xhe[xhe.VIDEOCONTINUE=242]="VIDEOCONTINUE",xhe[xhe.VIDEOCHECKPOINT=243]="VIDEOCHECKPOINT",xhe[xhe.VIDEOJUMP=244]="VIDEOJUMP",xhe[xhe.VIDEOCOMPLETE=245]="VIDEOCOMPLETE",xhe[xhe.VIDEOBUFFERING=246]="VIDEOBUFFERING",xhe[xhe.VIDEOERROR=247]="VIDEOERROR",xhe[xhe.VIDEOMUTE=248]="VIDEOMUTE",xhe[xhe.VIDEOUNMUTE=249]="VIDEOUNMUTE",xhe[xhe.VIDEOFULLSCREEN=250]="VIDEOFULLSCREEN",xhe[xhe.VIDEOUNFULLSCREEN=251]="VIDEOUNFULLSCREEN",xhe[xhe.VIDEOREPLAY=252]="VIDEOREPLAY",xhe[xhe.VIDEOPLAYERLOAD=253]="VIDEOPLAYERLOAD",xhe[xhe.VIDEOPLAYERCLICK=254]="VIDEOPLAYERCLICK",xhe[xhe.VIDEOVOLUMECONTROL=255]="VIDEOVOLUMECONTROL",xhe[xhe.VIDEOAUDIOTRACKCONTROL=256]="VIDEOAUDIOTRACKCONTROL",xhe[xhe.VIDEOCLOSEDCAPTIONCONTROL=257]="VIDEOCLOSEDCAPTIONCONTROL",xhe[xhe.VIDEOCLOSEDCAPTIONSTYLE=258]="VIDEOCLOSEDCAPTIONSTYLE",xhe[xhe.VIDEORESOLUTIONCONTROL=259]="VIDEORESOLUTIONCONTROL",xhe[xhe.VIRTUALEVENTJOIN=260]="VIRTUALEVENTJOIN",xhe[xhe.VIRTUALEVENTEND=261]="VIRTUALEVENTEND",xhe[xhe.JOINTEAMSMEETINGEVENT=262]="JOINTEAMSMEETINGEVENT",xhe[xhe.IMPRESSION=280]="IMPRESSION",xhe[xhe.CLICK=281]="CLICK",xhe[xhe.RICHMEDIACOMPLETE=282]="RICHMEDIACOMPLETE",xhe[xhe.ADBUFFERING=283]="ADBUFFERING",xhe[xhe.ADERROR=284]="ADERROR",xhe[xhe.ADSTART=285]="ADSTART",xhe[xhe.ADCOMPLETE=286]="ADCOMPLETE",xhe[xhe.ADSKIP=287]="ADSKIP",xhe[xhe.ADTIMEOUT=288]="ADTIMEOUT",xhe[xhe.OTHER=300]="OTHER";var Phe,Ihe,Bhe="CL",Nhe="CR",Dhe="CM",zhe="S",Ohe="R",Rhe="KE",Mhe="KS";(Ihe=Phe||(Phe={}))[Ihe.PAGE_ACTION=0]="PAGE_ACTION",Ihe[Ihe.CONTENT_UPDATE=1]="CONTENT_UPDATE";var jhe=["c:","i:","w:"],Lhe={"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"},Fhe=function(){function e(t){this.core=t;var r,n=Vce(),o=QO(),i=null,a=!1,s=NO(t);rB(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=Vce():a=!0},e.getMuidUserId=function(){var e=Fce(s,"MUID");return e&&e.length?"t:"+e:e},e.setAppUserId=function(e){if(i=null,e)for(var t=0;t<jhe.length;t++)if(jhe[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=UD();if(t&&e){var r=(t.protocol||"http:")+"//"+e+"/c.gif?DI=4050&did=1&t=",n=uP();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 Lhe[e]}})}return e.visitorId=function(){return Fce(NO(null),"MUID")},e}(),Vhe=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 qhe(e,t,r){var n="";return t&&t[r]?n=t[r]:e&&(n=e[r]),n}var Hhe,Uhe=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(),Mce(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=(UD()||{}).pathname||"",n=r.replace(/(^\/+|\/+$)/g,"").split("/");return n&&n[n.length-1]?n[n.length-1]:"Home"}(this._config,t)),!Mce(e.uri)&&Rce&&(e.uri=Che(this._config,UD()))},e.prototype._setCommonProperties=function(e,t,r){var n,o=this;o._setBasicProperties(e,r),o._setPageTags(e,r),o._pageTypeMetaTag=qhe(o.metaTags,o._config.coreData,"pageType"),o._marketMetaTag=qhe(o.metaTags,o._config.coreData,"market"),o._behaviorMetaTag=qhe(o.metaTags,o._config.coreData,"behavior"),Mce(r.pageType)&&(e.pageType=r.pageType),Mce(o._pageTypeMetaTag)&&!Mce(e.pageType)&&(e.pageType=o._pageTypeMetaTag),Mce(o._marketMetaTag)&&(e.market=o._marketMetaTag),e.isLoggedIn=(n=o._config).callback&&"function"==typeof n.callback.signedinStatus?n.callback.signedinStatus():n.isLoggedIn,t.cookieEnabled=zO()},e.prototype._setPageTags=function(e,t){var r=this;r._pageTags={},r.metaTags&&(r._pageTags.metaTags=r._pageTags.metaTags||{},QE(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=qce(!0,r._pageTags,r._config.coreData.pageTags)),r._pageTagsCallback&&(r._pageTags=qce(!0,r._pageTags,r._pageTagsCallback())),Mce(t.pageTags)&&(r._pageTags=qce(!0,r._pageTags,t.pageTags)),e.properties=e.properties||{},e.properties.pageTags=r._pageTags},e.prototype._getBehavior=function(e){var t;return e&&Mce(e.behavior)?t=e.behavior:Mce(this._behaviorMetaTag)&&(t=this._behaviorMetaTag),this._getValidBehavior(t)},e.prototype._getValidBehavior=function(e){if(Mce(e)){var t=void 0,r=parseInt(e);if((t=isNaN(r)?whe[e]:r)in whe)return t}return 0},e.prototype._getContentFormatted=function(e){if(Mce(e))return NE(e)?JSON.stringify(e):ghe(JSON.stringify(e))},e}(),Whe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fB(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};ZE(["name","uri","market","pageType","isLoggedIn","id","properties","ver","actionType","behavior","pageHeight","content","contentVer","vpHeight","vpWidth","vScrollOffset","hScrollOffset"],function(t){n.baseData[t]=e[t]}),QE(t,function(e,t){n.data[e]||(n.data[e]=t)}),this._webAnalyticsPlugin.core.track(n)},t.prototype.captureContentUpdate=function(e,t){e=Mce(e)?e:{};var r={},n=Mce(t)?t:{};this._setCommonProperties(r,n,e),r.behavior=this._getBehavior(e),Mce(e.actionType)&&(r.actionType=e.actionType);var o=bhe(),i=yhe();r.pageHeight=Oce?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),Mce(e.isDomComplete)?n.isDomComplete=e.isDomComplete:n.isDomComplete=!1,this.trackContentUpdate(r,n)},t}(Uhe),$he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fB(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};SE(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,QE(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=Mce(t)?t:{};var o={},i=Mce(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===Bhe||t.actionType===Rhe)&&"a"===e.tagName.toLowerCase()){var d=(e.getAttribute("href")||"").toLowerCase();d&&(vI(d,"https:")||vI(d,"http:")||vI(d,".")||vI(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=She(e);break;case"INPUT":var r=e.type;if(r&&khe[r.toUpperCase()]){var n=UD()||{};t=e.form?e.form.action||n.pathname||"":n.pathname||""}}return t}(e),(c=qce(c=this._contentHandler.getElementContent(e,Phe.PAGE_ACTION),this._getCustomTags(e)))&&c.bhvr&&!Mce(t.behavior))){var f=(s="bhvr",(a=c)&&a[s]&&(l=a[s],delete a[s]),l);o.behavior=this._getValidBehavior(f)}Mce(t.actionType)&&(o.actionType=t.actionType),Mce(t.clickCoordinateX)&&Mce(t.clickCoordinateY)&&(o.clickCoordinates=t.clickCoordinateX+"X"+t.clickCoordinateY),Mce(t.targetUri)&&(o.targetUri=t.targetUri),o.contentVer="2.0";var h=t.content||c;if(!NE(h)){var p=this._config.callback.pageActionContentTags;h=qce(h,"function"==typeof p?p(e):{},t&&t.contentTags?t.contentTags:{})}o.content=this._getContentFormatted(h),i.timeToAction=this._getTimeToClick(),i.refUri=Mce(t.refUri)?t.refUri:this._config.coreData.referrerUri;var m=this._webAnalyticsPlugin.core&&NO(this._webAnalyticsPlugin.core),g=The(this._config,m,this._traceLogger);g&&(i.cookies=g),this.trackPageAction(o,i)},t.prototype._getCustomTags=function(e){for(var t={};e;){if(!_he(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=dI();if(e&&e.timing){var t=e.timing.navigationStart;if(t&&0!==t)return(new Date).getTime()-t}return-1},t}(Uhe),Ghe=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 fB(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||{};(SE(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,QE(t,function(e,t){n.data[e]||(n.data[e]=t)}),this._webAnalyticsPlugin.core.track(n)},t.prototype.capturePageUnload=function(e,t){e=Mce(e)?e:{};var r={},n=Mce(t)?t:{},o=Oce?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=bhe().h,n.vScrollOffset=e.vScrollOffset||this._maxScroll.v,Rce){var i=dI(),a=i?i.timing:null;a&&a.loadEventStart&&a.navigationStart&&a.loadEventStart>0&&(n.pageLoadTime=a.loadEventStart-a.navigationStart)}this.trackPageUnload(r,n)},t}(Uhe),Yhe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fB(t,e),t.prototype.capturePageView=function(e,t){e=Mce(e)?e:{};var r={},n=Mce(t)?t:{};this._setCommonProperties(r,n,e),r.refUri=Mce(e.referrerUri)?e.referrerUri:this._config.coreData.referrerUri,r.isManual=!e.isAuto;var o=this._webAnalyticsPlugin.core&&NO(this._webAnalyticsPlugin.core),i=The(this._config,o,this._traceLogger);i&&(n.cookies=i),n.behavior=this._getBehavior(e),this._webAnalyticsPlugin.trackPageView(r,n)},t}(Uhe),Khe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fB(t,e),t.prototype.capturePageViewPerformance=function(e,t){e=Mce(e)?e:{};var r={},n=Mce(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}(Uhe),Jhe={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0},Xhe=function(){function e(t,r){var n,o,i,a,s,l,c,u,d,f=this;rB(e,this,function(e){function h(e){var t,r={A:!0,BUTTON:!0,AREA:!0,INPUT:!0},o=fP(),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=Nhe;else if(function(e){return"which"in e?1===e.which:"button"in e?1===e.button:void 0}(e))a.actionType=Bhe;else if(function(e){if("keyCode"in e)return 13===e.keyCode}(e))a.actionType=Rhe;else if(function(e){if("keyCode"in e)return 32===e.keyCode}(e))a.actionType=Mhe;else{if(!function(e){return"which"in e?2===e.which:"button"in e?4===e.button:void 0}(e))return;a.actionType=Dhe}for(;i&&i.tagName;){if(i.control&&r[i.control.tagName.toUpperCase()]&&(i=i.control),r[i.tagName.toUpperCase()]){("INPUT"!==i.tagName.toUpperCase()||Jhe[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=dM(mz("AutoCaptureHandler"),n._evtNamespace),e._analyticsPlugin=n,e._traceLogger=o,e.pageView=function(){n&&n.capturePageView({isAuto:!0})},e.onLoad=function(){n&&!d&&(Ehe(function(){n&&n.capturePageViewPerformance({isAuto:!0}),n&&n.captureContentUpdate({isAuto:!0,isDomComplete:!0})},i),d=!0)},e.click=function(){if(!a){var e=fP(),t=uP();if(e&&e.addEventListener)fM(e,-1!==navigator.appVersion.indexOf("MSIE")?"click":"mousedown",h,i),fM(e,"keyup",h,i);else t&&t.attachEvent&&(fM(t,"click",h,i),fM(t,"keyup",h,i));a=!0}},e.scroll=function(e){if(!s){var t=vhe(null,function(){n&&n.captureContentUpdate({isAuto:!0,actionType:zhe})},e.scroll,f);fM(fP(),"scroll",t,i),s=!0}},e.maxScroll=function(e){if(!l){fM(fP(),"scroll",function(){var t=yhe();e.v=e.v>t.v?e.v:t.v},i),l=!0}},e.resize=function(e){if(!c){var t=vhe(function(){n&&n.captureContentUpdate({isAuto:!0,actionType:Ohe})},null,e.resize,f);fM(fP(),"resize",t,i),c=!0}},e.onUnload=function(){function e(){n&&n.capturePageUnload({isAuto:!0})}if(!u){var t=((n||{}).core||{}).config.disablePageUnloadEvents;gM(e,t,i),yM(e,t,i),u=!0}},e.teardown=function(e,t){hM(fP(),null,null,i),hM(uP(),null,null,i),vM(null,i),bM(null,i),p()},e._processClick=h})}return e.__ieDyn=1,e}(),Qhe={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"}},Zhe={parentId:"parentId",parentName:"parentName"},epe={parentId:"pI",parentName:"pN"},tpe=function(){function e(e,t){this._config=e,this._traceLogger=t,this._contentBlobFieldNames=null,this._contentBlobFieldNames=!0===this._config.useShortNameForContentBlob?Qhe.shortNames:Qhe.longNames}return e.prototype.getMetadata=function(){var e={},t={};return Oce&&(t=this._getMetaDataFromDOM("awa-",!0),this._config.autoCapture&&this._config.autoCapture.msTags&&(e=this._getMetaDataFromDOM("ms.",!1))),qce(!0,t,e)},e.prototype.getVisibleContent=function(){var e,t=bhe(),r={top:0,bottom:(e=t).h,left:0,right:e.w},n=null;Oce&&(n=document.querySelectorAll(ghe(this._contentBlobFieldNames.areaName)+","+ghe(this._contentBlobFieldNames.slotNumber)+","+ghe(this._config.biBlobAttributeTag)));var o=[];if(n)for(var i=0;i<n.length;i++){var a=n[i];if(!hhe(a)&&fhe(a,r)){var s=this.getElementContent(a,Phe.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(bze){fO(this._traceLogger,1,506,"Can not parse "+n)}}else this._isTrackedWithDataBi(e)&&(o=e,a=qce(a,this._populateElementContentwithDataBi(o,e)));else if((r=phe(e,this._config.biBlobAttributeTag))&&(n=r.getAttribute(this._config.biBlobAttributeTag)),n)try{a=JSON.parse(n)}catch(bze){fO(this._traceLogger,1,506,"Can not parse "+n)}else o=che(e,this._isTrackedWithDataBi),a=qce(a,this._populateElementContentwithDataBi(o,e));return QE(i=a,function(e,t){(!Mce(t)||"{}"===JSON.stringify(t)&&"callback"!==e)&&delete i[e]}),this._config.autoCapture.lineage&&t===Phe.PAGE_ACTION&&(a=qce(a,this.getLineageDetails(e))),this._config.autoPopulateParentIdAndParentName&&(a=qce(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(bze){fO(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=phe(e,this._contentBlobFieldNames.areaName),o=qce({},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||fO(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(Oce){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||_he(e)||!e.tagName)return"";var r,n=uP()||{};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?epe.parentId:Zhe.parentId,n=this._contentBlobFieldNames.isShortNames?epe.parentName:Zhe.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=che(e.parentElement,this._isTracked);if(s){var l=s.getAttribute(a)||e[a];if(l){try{var c=JSON.parse(l)}catch(bze){fO(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}(),rpe=kA({useDefaultContentName:!0,useShortNameForContentBlob:!0,debounceMs:Hz({scroll:600,resize:3e3}),biBlobAttributeTag:"data-m",isLoggedIn:!1,shareAuthStatus:!1,cookiesToCollect:["MSFPC","ANON"],autoCapture:Hz({pageView:!0,onLoad:!0,onUnload:!0,click:!0,scroll:!1,resize:!1,lineage:!1,jsError:!0,msTags:!0}),callback:Hz({pageName:Gz(),pageActionPageTags:Gz(),pageViewPageTags:Gz(),contentUpdatePageTags:Gz(),pageActionContentTags:Gz(),signedinStatus:Gz()}),coreData:Hz({referrerUri:Oce?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}),npe=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 rB(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=qce(!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 Fhe(y),d=new Vhe,h=h||new Xhe(e,w),e._addHook(jz(t,function(){var h=yR(null,t,y).getExtCfg(e.identifier,rpe);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||(fO(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 tpe(l,w);var k,S,_=l.callback,C=f.getMetadata(),T=e.id;o=new Whe(e,l,f,T,_.contentUpdatePageTags,C,w),r=new Yhe(e,l,f,T,_.pageViewPageTags,C,w),n=new $he(e,l,f,T,_.pageActionPageTags,C,w),o=new Whe(e,l,f,T,_.contentUpdatePageTags,C,w),i=new Ghe(e,l,T,w,d,c),a=new Khe(e,l,f,T,_.pageViewPageTags,C,w),k=!!l.syncMuid,S=!m||g!==l.muidDomain,k&&S&&Ehe(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){Uce(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||{},Mce(r)&&QE(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||Vce(),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&&Mce(phe(e,"data-bi-mto"))||hhe(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 fB(t,e),t.__ieDyn=1,t}(aV),ope=kA({cookieCfg:{ref:!0,v:{}},extensions:{rdOnly:!0,ref:!0,v:[]},channels:{rdOnly:!0,ref:!0,v:[]},featureOptIn:(Hhe={},Hhe.zipPayload={mode:1},Hhe),extensionConfig:{ref:!0,v:{}}}),ipe=["snippet","_webAnalytics","_postChannel","_propertyManager","_extensions"],ape=["queue","extensions","version","sv"],spe=function(e){function t(){var r,n,o,i=e.call(this)||this;function a(){n=new Wde,o=new lhe,r=new npe}return rB(t,i,function(e,t){a(),e.initialize=function(i,a){JO(e,function(){return"ApplicationInsights:initialize"},function(){i=Mz(i,ope,e.logger,!1).cfg;var s=[o,r];if(a&&(s=s.concat(a)),i||UE("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||NP(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()&&fA(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){fO(e.logger,1,514,"Failed to initialize SDK."+HE(d))}},function(){return{config:i,extensions:a}})},e.getPropertyManager=function(){return o},e.getPostChannel=function(){return n},e.getWebAnalyticsExtension=function(){return r},_D(e,function(){return r},["trackEvent","trackPageView","trackPageAction","trackContentUpdate","trackPageUnload","trackException","trackPageViewPerformance","capturePageView","capturePageViewPerformance","capturePageAction","captureContentUpdate","capturePageUnload","_onerror"]),e.emptySnippetQueue=function(t){try{if(t&&QE(e,function(r,n){if(PE(r)&&!IE(n)&&r&&"_"!==r[0]&&-1===DP(ipe,r))try{t[r]=n}catch(o){fO(e.logger,2,514,"Failed to set ["+r+"] during initialization."+HE(o))}}),NE(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&&IE(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),kD(e,t,function(e){return e&&-1===DP(ipe,e)&&-1===DP(ape,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 fB(t,e),t.__ieDyn=1,t}(Yce);function lpe(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=sP();if(t)if("undefined"!=typeof JSON){if(void 0!==t[e=t.onedsSDK||e]){var r=t[e],n=new spe;n.updateSnippetDefinitions(r),n.initialize(r.config,r.extensions),t[e]=n,n.emptySnippetQueue(r)}}else lpe(e,"Missing JSON - you must supply a JSON polyfill!");else lpe(e,"Missing global/window")}catch(bze){lpe(e,"Unexpected Error: "+HE(bze))}}();class cpe{constructor(){this.pageName=""}_serviceStart(){const e=window;e.telemetry&&e.telemetry.webAnalyticsPlugin?this.analytics=e.telemetry.webAnalyticsPlugin:(this.analytics=new spe,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=j2.SIGNUP,"7e1632e14a724cda8b5e187382210a8c-106fefb8-ffaa-4c8f-8aad-ca028a134382-7413")}catch{return console.warn("OneDS: failed to read window.owap, using environment instrumentation key fallback"),this.pageName=j2.SIGNUP,"7e1632e14a724cda8b5e187382210a8c-106fefb8-ffaa-4c8f-8aad-ca028a134382-7413"}})();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,[])}capturePageView(){this.analytics.capturePageView()}capturePageAction(e){const t={...e,...this.pageName&&{pageName:this.pageName}};this.analytics.capturePageAction(document.createElement("div"),t)}}let upe=null,dpe=new Set;function fpe(){return upe||(upe=new cpe,upe._serviceStart()),upe}function hpe(e){fpe().capturePageAction(e)}const ppe={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},mpe="startLPChat",gpe="saveLPIDs",vpe={"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"},ype={1724326330:vpe,1865062330:vpe,1724380030:vpe,4430715438:vpe,1832735030:vpe,4631041138:vpe},{log:bpe,logError:wpe}=z.withKind("lp-lib");function xpe(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 kpe extends Error{constructor(e,t,r={}){super(t),this.type=e,this.data=r,this.name="LPError"}}const Spe={conversationStateTypes:{OPEN:"OPEN",CLOSE:"CLOSE"},conversationStageTypes:{OPEN:"OPEN",CLOSE:"CLOSE"},acceptStatusTypes:{ACCEPT:"ACCEPT",READ:"READ",ACCESS:"ACCESS",NACK:"NACK",ACTION:"ACTION"},getDomain(e,t){bpe(`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 wpe("Failed to signup with LivePerson",{account:e,error:t}),t})},getNewJWT:e=>(bpe("In LPUtils.getJWT. Fetching new JWT using LPUtils.signup(account)."),Spe.signup(e).then(e=>e).catch(t=>{throw wpe("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 Spe.getDomain(t,"msdkgw")}/api/account/${t}/app/engagement/visitors${c?`/${c}`:""}?v=1.0${s?`&sid=${s}`:""}`,a=Spe.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){wpe("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 Spe.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)=>{Spe.getDomain(t,"msdkgw").then(c=>{const u=`https://${c}/api/account/${t}/app/engagement/visitors/${n}?v=1.0&sid=${o}`,d=Spe.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=>{wpe("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 Spe.waitFor(1e3*o),o*=2,n--,await u();if(a)return a;throw s}};class _pe{constructor(e,t=!1){this.getClockRequest=xpe(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 _pe(e)._connect()}static connectDebug(e){return new _pe(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 kpe("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=>{bpe("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?(bpe("In onNotification disposable","Subscription not found in active subscriptions",r),!1):(this.subscriptions.splice(e,1),bpe("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:[Spe.conversationStageTypes.OPEN,Spe.conversationStageTypes.CLOSE],convState:[Spe.conversationStateTypes.OPEN,Spe.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:Cpe,logError:Tpe}=z.withKind("livePersonHelpers");function Epe(e){return Spe.getDomain(e,"asyncMessagingEnt")}function Ape(){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[_,C]of m.entries())C>b&&(b=C,y=_);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 k=g.get(y)||new Set;k.size>=2&&(x=Math.min(1,x+.15));k.size>=3&&(x=Math.min(1,x+.1));const S={code:y,confidence:x,source:Array.from(k).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);S.candidates=e}e.includeDetails&&(S.signals={languages:c,resolvedLocales:u,htmlLang:d,timeZone:f});return S}().code}function Ppe(e){try{const t=e.split(".")[1];if(!t)throw new Error("JWT payload is missing");const r=JSON.parse(atob(t));return Cpe("In getLivePersonIdFromJWT. JWT Claim:",{claim:r}),void 0!==r.sub?r.sub:null}catch(t){return Tpe("Error extracting User Id from JWT:",{livePersonJWTString:e,error:t}),null}}function Ipe(e){let t=e.replace(/#\/?md#/g,"");return t=(new DOMParser).parseFromString(t,"text/html").body.textContent,t}function Bpe(e,t){return x2.messageReceived({role:"bot",text:Ipe(e),key:t})}function Npe(e,t){return x2.messageReceived({role:"user",text:Ipe(e),key:t})}function Dpe(e,t){return x2.messageReceived({role:"dbg",text:Ipe(e),key:t})}function zpe(e,t){return x2.messageReceived({role:"bot",attachments:e,key:t})}function Ope(e){return x2.setLivePersonConnectionState("string"==typeof e?{type:e}:e)}"5173"===window.location.port&&window.location.hostname.indexOf("local");const{log:Rpe,logWarn:Mpe,logError:jpe}=z.withKind("livePersonSaga");function Lpe(e){Rpe(`%c${e} ${"-".repeat(79-e.length)}`,"color:#888800")}let Fpe={log:["console"],warn:["console"],error:["console"]};function*Vpe(...e){Fpe.log.includes("console")&&Rpe(...e),Fpe.log.includes("chat")&&(yield iS(Dpe(e.map(e=>JSON.stringify(e)).join("\n"))))}function*qpe(...e){Fpe.error.includes("console")&&jpe(...e),Fpe.error.includes("chat")&&(yield iS(Dpe(e.map(e=>JSON.stringify(e)).join("\n"))))}var Hpe=(e=>(e[e.DEFAULT=0]="DEFAULT",e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE",e.GONE="GONE",e.COMPOSING="COMPOSING",e.PAUSE="PAUSE",e))(Hpe||{});let Upe=performance.now();function*Wpe(e,t,r,n){Lpe("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}}HW({name:AT,properties:{component:VT,operation:"fetchUpdateOrCreateLivePersonSession",hasAccountId:(!!e).toString(),hasCountry:(!!t).toString(),hasTopic:(!!r).toString(),hasLeadId:(!!n).toString()}});const a=mC()?.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)){Rpe("Using session from cookie");const e=performance.now()-o;return HW({name:PT,properties:{component:VT,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{Rpe("Attempting update of session");const t=performance.now(),r=yield cS(Spe.engagement.updateSession,l),n=performance.now()-t;e=200===r,QW("LivePersonSessionUpdate",HT,"UPDATE",n,e,r)}catch(c){jpe("Failed to update session."),XW("LivePersonSessionUpdate",c instanceof Error?c:new Error(String(c)))}if(!e){l.pageId=null,l.visitorId=null,l.sessionId=null,Rpe("Attempting creation of session");const e=performance.now(),t=yield cS(Spe.engagement.createSession,l),r=performance.now()-e,n=!(!t.visitorId||!t.sessionId);if(QW("LivePersonSessionCreate",UT,"CREATE",r,n),t.visitorId&&t.sessionId){l.pageId=t.pageId,l.visitorId=t.visitorId,l.sessionId=t.sessionId;const e=i(l);Rpe("Updating cookie with session",{lpEngagementSession:e}),gC({lpEngagementSession:e})}}const t=performance.now()-o;HW({name:IT,properties:{component:VT,result:"success",operationType:e?"update":s?"create":"reuse"},measurements:{totalDurationMS:t}})}catch(c){jpe("Failed to create a LivePerson session",c);const e=performance.now()-o;XW("LivePersonSessionManagement",c instanceof Error?c:new Error(String(c))),HW({name:IT,properties:{component:VT,result:"failure",errorType:c instanceof Error?c.constructor.name:"UnknownError"},measurements:{totalDurationMS:e}})}return i(l)}function*$pe(e,t,r,n){for(let i=0;i<=3;i++){Rpe(`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 sS({response:cS([e,"publishAcceptStatusEvent2"],n.result.convId,n.activeDialogId,t,[r]),timeout:mS(o)});if(s){const e=new Error("AcceptStatusEvent request timed out");if(3===i)return jpe("AcceptStatusEvent timeout on final retry, abandoning gracefully:",e),void XW("LivePersonAcceptStatusTimeout",e);throw e}return void Rpe("Accept status sent successfully",{status:t,sequence:r,response:a})}catch(o){if(jpe("Error sending accept status to LivePerson",o),3===i)return HW({name:OT,properties:{component:VT,status:t,attempt:i.toString(),errorType:o instanceof Error?o.constructor.name:"UnknownError"}}),XW("LivePersonAcceptStatus",o instanceof Error?o:new Error(String(o))),void Mpe("All retry attempts failed. Abandoning.");yield mS(1e3*(i+1))}}}function Gpe(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 Ype(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:Kpe(e.title),selectAction:{type:"Action.Submit",data:{text:e.title},title:`chataction://sendmessage?text=${encodeURIComponent(e.title)}`,tooltip:t(e.title)},horizontalAlignment:"center"}]}))}]}}}function Kpe(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 Jpe(e){const t=[],r=[];e.content?.elements?.length>0&&Rpe("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 Xpe=!1,Qpe=!1;function*Zpe(e,t,r,n){Rpe("In handleMessagingEvent");try{const a=Xpe;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===Qpe&&i&&l&&(Qpe=!0,Upe=performance.now()-Upe,HW({name:RT,properties:{component:VT,messageType:s.event.type},measurements:{timeToFirstMessage:Upe}})),l&&("user"===r||i)&&HW({name:FT,properties:{component:VT,user:i?"agent":"user",messageType:s.event.type}});const u=`${s.dialogId}-${s.sequence}`;switch(s.event.type){case"ContentEvent":{Rpe("In handleMessagingEvent 'ContentEvent'",{change:s});let t=!1;(s.event?.message?.startsWith(ppe.transcriptIntroText)||s.event?.message?.startsWith(ppe.transcriptContinuedText))&&(Rpe("In handleMessagingEvent 'ContentEvent'. Skipping rendering message because it begins with a transcript preamble."),t=!0);const n=yield hS(Xte);if(n.some(e=>e.key===u)){jpe("Message already exists in chat history",{key:u,change:s});continue}if(c)try{yield*$pe(e,Spe.acceptStatusTypes.ACCEPT,s.sequence,c),yield*$pe(e,Spe.acceptStatusTypes.READ,s.sequence,c)}catch(o){jpe("Failed to send accept status notifications:",o),XW("LivePersonAcceptStatusNotification",o instanceof Error?o:new Error(String(o)))}else jpe("Could not find conversation for dialogId",{dialogId:s.dialogId});if(t)continue;if("user"==r)a||(Xpe=!0,yield iS(Npe(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=Ype(s.event);yield iS(zpe([e],u))}else yield*Vpe("Unhandled roleForWebChat type:",{roleForWebChat:r,change:s});else yield iS(Bpe(s.event?.message||"",u));break}case"RichContentEvent":{Rpe("In handleMessagingEvent 'RichContentEvent'",{change:s});const t=yield hS(Xte);if(t.some(e=>e.key===u)){jpe("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 iS(Bpe(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=Jpe(s.event);yield iS(zpe([e],u))}else for(const n of t)yield iS(zpe([Gpe(n)],u))}}else jpe("RichContentEvent has no valid elements array",{content:s.event.content});if(c)try{yield*$pe(e,Spe.acceptStatusTypes.ACCEPT,s.sequence,c),yield*$pe(e,Spe.acceptStatusTypes.READ,s.sequence,c)}catch(o){jpe("Failed to send accept status notifications for RichContentEvent:",o),XW("LivePersonRichContentAcceptStatus",o instanceof Error?o:new Error(String(o)))}else jpe("Could not find conversation for dialogId",{dialogId:s.dialogId});break}case"ChatStateEvent":if("user"!==r&&s.event.chatState==Hpe.COMPOSING&&(yield*Vpe(`Received a '${Hpe.COMPOSING}' event from LivePerson`),yield iS(x2.signalTypingInUI())),s.event.chatState){const e=[...n.keys()][0];let t;if(void 0!==e&&(t=n.get(e)),t){yield*Vpe("Received a chatState change. Setting local chatState to:",s.event.chatState),t.chatState=s.event.chatState;const r=mC(),n={...r?.lpOpenConvs||{},[String(e)]:t};Rpe("Updating cookie with conversation chatState change",{conversationId:e,chatState:s.event.chatState}),gC({lpOpenConvs:n})}}break;case"AcceptStatusEvent":break;default:jpe("Unhandled change.event.type",{type:s.event.type,change:s})}}catch(i){XW("LivePersonMessageProcessing",i instanceof Error?i:new Error(String(i))),HW({name:zT,properties:{component:VT,eventType:s?.event?.type||"unknown",dialogId:s?.dialogId||"unknown",sequence:s?.sequence?.toString()||"unknown",errorType:i instanceof Error?i.constructor.name:"UnknownError"}}),jpe("Error processing message event:",i)}}catch(a){jpe("Unhandled error in handleMessageEventNotifications",a)}}function*eme(e){Lpe("monitorForLPWSConnectionClose");const t=DS(t=>{const r=e.getWS();if(r){Rpe("In monitorForLPWSConnectionClose. Listening for ws close events.");const e=e=>{t(e)};return r.addEventListener("close",e),()=>{r.removeEventListener("close",e)}}return jpe("In monitorForLPWSConnectionClose. Unable to listen to ws close events because it is null or undefined."),()=>{}},Yk.expanding(42));try{for(;;){const e=yield oS(t);if(e){if(yield*Vpe("WebSocket connection closed. CloseEvent:",e),HW({name:BT,properties:{component:VT,wasClean:(e.wasClean??!1).toString(),code:(e.code??0).toString(),reason:e.reason||"no_reason_provided"}}),e.wasClean&&1e3===(e.code??0)){yield*Vpe("Clean close detected, not attempting reconnection."),yield iS(Ope("Disconnected"));continue}const t=[2e3,4e3,8e3],n=t.length;HW({name:NT,properties:{component:VT,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 iS(Ope({type:"Reconnecting",attempt:a,reason:e.reason})),yield iS(Bpe(1===a?"Connection lost. Attempting to reconnect...":`Reconnection attempt ${a}...`)),a>1&&(yield mS(t[a-1]??1e3)),yield*Vpe(`Reconnection attempt ${a}/${n}`),yield*Vpe("TODO: Reinitialize Connection With LivePerson???"),yield iS(Ope("Connected")),yield iS(Bpe("Reconnected to live agent. You can continue your conversation.")),yield*Vpe(`Reconnection successful on attempt ${a}`),i=!0;const r=performance.now()-o;HW({name:DT,properties:{component:VT,result:"success",attemptNumber:a.toString(),totalAttempts:a.toString()},measurements:{reconnectDurationMS:r,attemptsUsed:a}});break}catch(r){yield*qpe(`Reconnection attempt ${a} failed:`,r),XW("LivePersonWebSocketReconnect",r instanceof Error?r:new Error(String(r)))}if(a==n){const e=performance.now()-o;HW({name:DT,properties:{component:VT,result:"failure",totalAttempts:n.toString()},measurements:{reconnectDurationMS:e,attemptsUsed:n}}),yield iS(Bpe("Unable to reconnect to live agent. Please refresh the page to try again.")),yield iS(x2.endTask())}}}}}finally{t.close();const e={...mC(),lpOpenConvs:{},lpJWT:"",startLPChatActivityIds:[],lpEngagementSession:void 0};gC(e)}}function*tme(e,t){let r=null;for(;;)try{yield oS(x2.userTyping.type);const n=[...t.keys()][0];if(!n)continue;const o=t.get(n);if(!o||"ACTIVE"!==o.chatState)continue;r&&(yield fS(r)),yield cS([e,"setUserChatStateTo"],n,o.activeDialogId,Hpe.COMPOSING),r=yield uS(function*(){yield mS(3e3),yield cS([e,"setUserChatStateTo"],n,o.activeDialogId,Hpe.PAUSE)})}catch(n){jpe("Error in handleUserTypingSaga:",n)}}function*rme(e,t){yield*Vpe("In sendDirectLinePostActivity. Sending action to DIRECT_LINE/POST_ACTIVITY",{eventName:e,eventValue:t});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 iS(Cre(r,"keyboard")),yield*Vpe("webChatSendEventSaga: dispatched DIRECT_LINE/POST_ACTIVITY",{eventName:e})}catch(r){jpe("webChatSendEventSaga: failed to dispatch event",r)}}function*nme(e,t,r,n,o,i,a,s,l){const c=!!e&&!!r&&!!n;if(!c&&!(!!e&&!!t))return jpe("Invalid parameters: Must provide either (accountId + skillId) or (accountId + conversationId + jwt)"),yield iS(Bpe("Invalid connection parameters")),void(yield iS(Ope("Disconnected")));let u,d,f,h,p,m=null;if(c){yield*Vpe("Direct connection mode: Using provided accountId, conversationId and JWT"),u=n,h=e,Rpe("Saving provided JWT to cookie",{lpJWT:u}),gC({lpJWT:u});const t=Ppe(u);if(!t)return jpe("In initLivePersonChatTask. No userId found in provided JWT"),yield*Vpe("Error extracting user ID from provided JWT"),void(yield iS(Ope("Disconnected")));if(d=t,o.umsDomain)f=o.umsDomain,yield*Vpe("Using UMS Domain from debug options");else{const{umsResult:e,umsTimeout:t}=yield sS({umsResult:cS(Epe,h),umsTimeout:mS(5e3)});if(t)return jpe("In initLivePersonChatTask. getLivePersonUmsDomain timed out in direct connection mode"),yield*Vpe("Timeout getting UMS Domain in direct connection mode"),void(yield iS(Ope("Disconnected")));if(!e)return jpe("In initLivePersonChatTask. No umsDomain retrieved in direct connection mode"),yield*Vpe("Error: Unable to retrieve UMS Domain in direct connection mode"),void(yield iS(Ope("Disconnected")));f=e}p=o.skillId||"unknown",yield*Vpe("Direct connection mode initialized:",{conversationId:r,userId:d,umsDomain:f,finalAccountId:h})}else{yield*Vpe("Full initialization mode: Using accountId and skillId"),h=e,p=t;let r=!1;try{if(!0===o.livePersonAvailable)r=!0;else{const e=yield*function*(e,t=3,r=1e3){Rpe("In checkLivePersonAgentAvailability");const n=performance.now();Upe=performance.now(),HW({name:CT,properties:{component:VT,skillId:e||"unknown",maxRetries:t.toString(),retryDelayMS:r.toString()}});for(let i=1;i<=t;i++){Rpe(`In checkLivePersonAgentAvailability. Attempt #${i}.`),HW({name:TT,properties:{component:VT,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 cS(fetch,a),r=performance.now()-s;if(!t.ok){QW(_T,qT,"POST",r,!1,t.status);const e=new Error(`Error checking LivePerson agent availability. Response status: ${t.status}`);throw jpe(`HTTP error in agent availability check. Attempt #${i} failed, will retry:`,e),e}const o=yield cS([t,"json"]),l=performance.now()-n;return QW(_T,qT,"POST",r,!0,t.status),HW({name:ET,properties:{component:VT,result:"success",availability:String(o.availability??"unknown"),finalAttempt:i.toString(),skillId:e||"unknown"},measurements:{totalDurationMS:l,attemptsUsed:i}}),Rpe(`In checkLivePersonAgentAvailability. Attempt #${i} Succeeded.`,{availability:o.availability,attempt:i}),o.availability}catch(o){if(Rpe(`In checkLivePersonAgentAvailability. Attempt #${i} failed`,o),performance.now(),XW("LivePersonAvailabilityCheck",o instanceof Error?o:new Error(String(o))),!(i<t)){const t=performance.now()-n;throw HW({name:ET,properties:{component:VT,result:"failure",finalAttempt:i.toString(),skillId:e||"unknown",errorType:o instanceof Error?o.constructor.name:"UnknownError"},measurements:{totalDurationMS:t,attemptsUsed:i}}),Rpe("All retry attempts failed for agent availability check",o),yield iS(x2.messageReceived({role:"bot",text:"Could not determine if a LivePerson was available. Please try again later."})),o}Rpe("In checkLivePersonAgentAvailability. Retrying"),yield mS(r)}}}(p);r=Boolean(e)}}catch(A){return jpe("Error checking LivePerson agent availability:",A),XW("LivePersonAgentAvailability",A instanceof Error?A:new Error(String(A))),yield iS(Bpe("Unable to check agent availability. Please try again later.")),void(yield iS(Ope("Disconnected")))}if(!r)return void(yield iS(Bpe(((e,t)=>{if(e){const r=ype[e];if(r){const e=r[t];if("string"==typeof e&&e.length>0)return e}}const r=ppe[t];return"string"==typeof r?r:String(r)})(p,"livePersonNoAgentsText"))));yield*Vpe("LivePerson is available. Connecting now."),yield*Vpe("Creating session with LivePerson");try{m=o.session?JSON.parse(o.session):yield*Wpe(h,i,a,s),yield*Vpe("In initLivePersonChatTask. LivePerson session fetched, updated, or created.",{session:m})}catch(A){return Rpe("In initLivePersonChatTask","Error while creating a session",A),void(yield iS(Ope("Disconnected")))}if(yield*Vpe("In initLivePersonChatTask. Getting JWT."),o.jwt)u=o.jwt,Rpe("Using debug JWT and saving to cookie",{lpJWT:u}),gC({lpJWT:u});else{const e=mC()?.lpJWT;if(e)u=e,yield*Vpe("In initLivePersonChatTask. Using existing JWT from cookie");else{const{jwtResult:e,jwtTimeout:t}=yield sS({jwtResult:cS(Spe.getNewJWT,h),jwtTimeout:mS(5e3)});if(t)return jpe("In initLivePersonChatTask. getJWT timed out.",t),yield*Vpe("Error getting JWT"),void(yield iS(Ope("Disconnected")));u=e,Rpe("Pushing new JWT into cookie",{lpJWT:u}),gC({lpJWT:u})}}if(yield*Vpe("In initLivePersonChatTask. JWT:",{jwt:u}),yield*Vpe("Getting User ID from JWT"),o.userId)d=o.userId,yield*Vpe("Using User ID from debug options:",{userId:d});else{const e=Ppe(u);if(!e)return jpe("In initLivePersonChatTask. No userId found in JWT"),yield*Vpe("Error extracting user ID from JWT"),void(yield iS(Ope("Disconnected")));d=e,yield*Vpe("User ID extracted from JWT successfully:",{userId:d})}if(yield*Vpe("Getting UMS Domain"),o.umsDomain)f=o.umsDomain,yield*Vpe("Using UMS Domain from debug options");else{const{umsResult:e,umsTimeout:t}=yield sS({umsResult:cS(Epe,h),umsTimeout:mS(5e3)});if(t)return jpe("In initLivePersonChatTask. getLivePersonUmsDomain timed out"),yield*Vpe("Timeout getting UMS Domain"),void(yield iS(Ope("Disconnected")));if(!e)return jpe("In initLivePersonChatTask. No umsDomain retrieved"),yield*Vpe("Error: Unable to retrieve UMS Domain"),void(yield iS(Ope("Disconnected")));f=e}yield*Vpe("In initLivePersonChatTask. UMS Domain:",{umsDomain:f})}yield iS(Ope("Connecting")),yield*Vpe("Calling LPWS.connect");const{lpws:g,lpwsTimeout:v}=yield sS({lpws:cS(_pe.connect,`wss://${f}/ws_api/account/${h}/messaging/consumer?v=3`),lpwsTimeout:mS(5e3)});if(v)return jpe("In initLivePersonChatTask. LPWS.connect timed out.",v),yield*Vpe("Timeout connecting over WebSocket"),void(yield iS(Ope("Disconnected")));yield*Vpe("In initLivePersonChatTask. LPWS Connected:",{lpws:g}),yield*Vpe("Initializing LivePerson connection");const{lpwsInit:y,lpwsInitTimeout:b}=yield sS({lpwsInit:cS([g,"initConnection2"],u),lpwsInitTimeout:mS(5e3)});if(b)return jpe("In initLivePersonChatTask. lpws.initConnection timed out.","lpwsInitTimeout",b),yield*Vpe("Timeout initializing LivePerson connection"),void(yield iS(Ope("Disconnected")));yield*Vpe("In initLivePersonChatTask. LPWS Connection Initialization Succeeded:",{lpwsInit:y}),yield uS(eme,g),yield*Vpe("Subscribing to LivePerson conversation updates");const{subscribeResponse:w,subscribeTimeout:x}=yield sS({subscribeResponse:cS([g,"subscribeExConversations2"]),subscribeTimeout:mS(5e3)});if(x)return jpe("In initLivePersonChatTask. subscribeExConversations timed out"),yield*Vpe("Timeout subscribing to conversation updates"),void(yield iS(Ope("Disconnected")));if(yield*Vpe("In initLivePersonChatTask. lpws.subscribeExConversations succeeded",{subscribeResponse:w}),!w.body?.subscriptionId)return jpe("In initLivePersonChatTask. subscribeExConversations","no subscription id"),void(yield*Vpe("ERROR: NO SUBSCRIPTION ID!!!"));const k=w.body.subscriptionId;Rpe('Setting up channel for "MessagingEvent" notifications');const S=DS(e=>{return g.onNotification((t="MessagingEvent",e=>e.type.includes(t)),t=>{Rpe("Received MessagingEvent notification",{messageEvent:t}),e({lpws:g,messageEvent:t})});var t},Yk.expanding(42)),_=new Map,C=mC();if(C?.lpOpenConvs){for(const[e,t]of Object.entries(C.lpOpenConvs))_.set(e,t);Rpe("Loaded existing conversations from cookie",{openConversations:Array.from(_.entries())})}yield uS(function*(e){try{for(;;){const{lpws:t,messageEvent:r}=yield oS(S);Rpe("Received MessageEvent:",{lpws:t,messageEvent:r}),yield*Zpe(t,d,r,e)}}catch(A){jpe("Error handling message events:",A)}finally{S.close()}},_),Rpe("Listening to notifications for SubscriptionID:",{subscriptionId:k});const T=DS(e=>(Rpe("Listening for SubscriptionID notifications",{subscriptionId:k}),g.onNotification(function(e){return t=>t.body.subscriptionId===e}(k),t=>{Rpe("Received Subscription ID notification",{body:t}),e(t)})),Yk.expanding(42));let E=!0;if(yield uS(function*(e){try{const r=new Set;for(;;){const n=yield oS(T);Rpe("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;Rpe("Detected BRAND_AUTO_CLOSE for conversation, closing locally",{convId:e});try{yield cS([g,"unsubscribeExConversations2"],k)}catch(bze){Mpe("unsubscribeExConversations2 failed during auto-close",bze)}return yield iS(Ope("Disconnected")),yield iS(x2.endTask()),void(yield iS(Bpe("The chat has ended. Thank you!")))}const n=o.result.conversationDetails.dialogs.find(e=>e.state===Spe.conversationStateTypes.OPEN);if(!n){const e=yield hS(Qte);yield cS([g,"unsubscribeExConversations2"],k),yield iS(Ope("Disconnected")),e.isPostSurveyEnabled&&(HW({name:LT,properties:{component:VT}}),hpe({behavior:R2.SURVEY_COMPLETE,contentTags:{aN:N2.AI_CHAT_DRAWER,compnm:I2.AI_ASSISTANT,view:M2.AI_CHAT_DRAWER,cN:B2.SURVEY_COMPLETE,ecn:B2.SURVEY_COMPLETE,cT:P2.PROMPT_BUTTON}}),yield iS(Bpe(ppe.livePersonSurveyCloseMessage))),yield iS(x2.endTask())}const i=o.result.conversationDetails.dialogs.find(e=>e.dialogId===n.dialogId)?.dialogId,a=i&&!_.get(o.result.convId)?.result.dialogs.some(e=>e.dialogId===i);if(a&&Rpe("New dialog detected in conversation",{conversationId:o.result.convId,newDialogId:i}),!_.has(o.result.convId)||a||E){const i=`${t}_${o.result.convId}`;if(t&&!r.has(i)&&(r.add(i),yield*rme(gpe,{skillId:t,LPConversationID:o.result.convId})),a||E){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:Hpe.DEFAULT,closeMsgSent:!1};if(e&&E){const e=_.get(o.result.convId);e&&(E=!1,yield*ome(g,e))}_.set(o.result.convId,r);const i=mC(),a={...i?.lpOpenConvs||{},[o.result.convId]:r};Rpe("Updating cookie with new conversation",{conversationId:o.result.convId,lpOpenConvs:a}),gC({lpOpenConvs:a}),Rpe("openConversations updated",{openConversations:Array.from(_.entries())}),t(n.dialogId,o.result.convId),Rpe("Subscribed to messaging events",{dialogId:n.dialogId,conversationId:o.result.convId}),"POST_SURVEY"===n.dialogType&&(yield iS(x2.setLivePersonState({isPostSurveyEnabled:!0})))}}const s=_.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?ppe.livePersonUserClosedConversationText:"AGENT"===o.result.conversationDetails?.closeReason?ppe.livePersonAgentClosedConversationText:ppe.livePersonSystemClosedConversationText;yield iS(Bpe(e)),s.closeMsgSent=!0;const t=mC(),r={...t?.lpOpenConvs||{},[o.result.convId]:s};Rpe("Updating cookie with closed conversation metadata",{conversationId:o.result.convId,closeMsgSent:!0}),gC({lpOpenConvs:r})}}}}}}catch(A){jpe("Error handling Subscription ID events:",A)}},l),yield uS(tme,g,_),c)yield*Vpe("Direct connection mode: Connecting to existing conversation",{conversationId:r});else{if(!m)return jpe("Session is required for new conversation request but is null"),void(yield iS(Ope("Disconnected")));Rpe("Requesting new conversation");for(let e=0;e<3;e++){const{conversationResponse:e,conversationTimeout:t}=yield sS({conversationResponse:cS([g,"consumerRequestConversation2"],p,m.visitorId,m.sessionId,document.documentElement.lang),conversationTimeout:mS(5e3)});if(t)return jpe("In initLivePersonChatTask. consumerRequestConversation timed out"),yield*Vpe("Timeout requesting new conversation"),void(yield iS(Ope("Disconnected")));if(!e||"string"!=typeof e.body||!e.body.startsWith("Consumer request conversation failed:")){Rpe("In initLivePersonChatTask. lpws.consumerRequestConversation succeeded",{conversationResponse:e});const t=[..._.keys()][0];if(!t)continue;const r=_.get(t);r&&(Rpe("In initLivePersonChatTask.","Calling lpws.setUserChatStateTo",{conversationId:t,dialogId:r.activeDialogId,chatState:Hpe.ACTIVE}),yield cS([g,"setUserChatStateTo"],t,r.activeDialogId,Hpe.ACTIVE));break}e.code>=400&&(m.visitorId=""),yield mS(1e3)}}for(yield uS(function*(){for(;;){const e=yield oS(x2.userRequestDisconnect.type);let t=yield hS(Qte);const r=[..._.keys()][0];if(!r)continue;const n=_.get(r);n&&(Rpe("In userRequestDisconnect listener.","Calling lpws.setUserChatStateTo",{conversationId:r,dialogId:n.activeDialogId,chatState:Hpe.INACTIVE}),yield cS([g,"setUserChatStateTo"],r,n.activeDialogId,Hpe.INACTIVE)),yield cS([g,"updateConversationField2"],r,n?.activeDialogId||"",Spe.conversationStateTypes.CLOSE,"Closed by consumer"),t.isPostSurveyEnabled?(Rpe("User requested survey end",e),HW({name:jT,properties:{component:VT}}),yield cS([g,"unsubscribeExConversations2"],k),yield iS(Ope("Disconnected")),yield iS(x2.endTask())):(Rpe("User requested agentEnd",e),HW({name:MT,properties:{component:VT}}))}}),yield iS(Ope("Connected"));;){const e=(yield oS(x2.messageSend.type)).payload;Xpe=!0;const t=[..._.keys()][0];if(!t)continue;const r=_.get(t);r?(Rpe("In messageSend listener.","Calling lpws.setUserChatStateTo",{conversationId:t,dialogId:r.activeDialogId,chatState:Hpe.ACTIVE}),yield cS([g,"setUserChatStateTo"],t,r.activeDialogId,Hpe.ACTIVE),yield cS([g,"publishEvent2"],t,r.activeDialogId,e,Math.floor(1e9*Math.random()).toString()),yield iS(Npe(e,`${r.activeDialogId}-${cY()}`))):jpe("No active conversation found for sending message")}}function*ome(e,t){Lpe("sendTranscriptToLivePerson");const r=yield hS(Xte);if(!r||!r.length)return void Rpe("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 cS([e,"publishEvent2"],t.result.convId,t.activeDialogId,a,Math.floor(1e9*Math.random()).toString()),o(n).length>1&&(yield mS(500))}catch(i){jpe("Failed to send transcript chunk to LivePerson",i)}yield*Vpe("Transcript sent to LivePerson",{messageCount:r.length})}function*ime(e){yield iS(Npe(e.payload,cY()));const t=S2(e.payload);switch(t){case"?":case"help":const e='Available Debug Commands<br/>Prefix all commands with "lynx:"\n\n'+Object.entries(k2).map(([e,t])=>`__${e}__: ${t}`).join("\n\n");yield iS(Dpe(e));break;case"enable dbg":let r=[];Fpe.log.includes("chat")||(Fpe.log.push("chat"),r.push("log")),Fpe.warn.includes("chat")||(Fpe.warn.push("chat"),r.push("warn")),Fpe.error.includes("chat")||(Fpe.error.push("chat"),r.push("error")),r.length>0?yield iS(Dpe(`Debug chat logging enabled for: ${r.join(", ")}`)):yield iS(Dpe("All debug chat logging already enabled."));break;case"disable dbg":let n=[];Fpe.log.includes("chat")&&(Fpe.log=Fpe.log.filter(e=>"chat"!==e),n.push("log")),Fpe.warn.includes("chat")&&(Fpe.warn=Fpe.warn.filter(e=>"chat"!==e),n.push("warn")),Fpe.error.includes("chat")&&(Fpe.error=Fpe.error.filter(e=>"chat"!==e),n.push("error")),n.length>0?yield iS(Dpe(`Debug chat logging disabled for: ${n.join(", ")}`)):yield iS(Dpe("All debug chat logging already disabled."));break;case"enable dbg log":Fpe.log.includes("chat")?yield iS(Dpe("Debug log chat logging already enabled.")):(Fpe.log.push("chat"),yield iS(Dpe("Debug log chat logging enabled.")));break;case"disable dbg log":Fpe.log.includes("chat")?(Fpe.log=Fpe.log.filter(e=>"chat"!==e),yield iS(Dpe("Debug log chat logging disabled."))):yield iS(Dpe("Debug log chat logging already disabled."));break;case"enable dbg warn":Fpe.warn.includes("chat")?yield iS(Dpe("Debug warning chat logging already enabled.")):(Fpe.warn.push("chat"),yield iS(Dpe("Debug warning chat logging enabled.")));break;case"disable dbg warn":Fpe.warn.includes("chat")?(Fpe.warn=Fpe.warn.filter(e=>"chat"!==e),yield iS(Dpe("Debug warning chat logging disabled."))):yield iS(Dpe("Debug warning chat logging already disabled."));break;case"enable dbg error":Fpe.error.includes("chat")?yield iS(Dpe("Debug error chat logging already enabled.")):(Fpe.error.push("chat"),yield iS(Dpe("Debug error chat logging enabled.")));break;case"disable dbg error":Fpe.error.includes("chat")?(Fpe.error=Fpe.error.filter(e=>"chat"!==e),yield iS(Dpe("Debug error chat logging disabled."))):yield iS(Dpe("Debug error chat logging already disabled."));break;case"show dbg config":yield iS(Dpe(JSON.stringify(Fpe,null,2)));break;case"show liveperson state":const o=yield hS(Qte);yield iS(Dpe(JSON.stringify(o,null,2)));break;case"show liveperson debugoptions":const i=yield hS(rre);yield iS(Dpe(JSON.stringify(i,null,2)));break;case"directline":yield iS(x2.dbgForceSwitchToDirectLine());break;case"liveperson":yield iS(x2.dbgForceSwitchToLivePerson());break;case"end":yield iS(x2.userRequestDisconnect());break;case"typing":yield iS(x2.signalTypingInUI());break;default:yield iS(Dpe(`Unknown lynx dbg command: ${t}`))}}function*ame(){const e=yield hS(rre),t={accountId:e.accountId||null,skillId:e.skillId||null,initiatingConversationId:null,sendTranscript:e.sendTranscript||null,isPostSurveyEnabled:!1,connectionState:{type:"Disconnected"}};yield iS(x2.setLivePersonState(t)),yield iS(x2.initLivePersonChat())}function*sme(){yield iS(x2.setLivePersonState({accountId:null,skillId:null,initiatingConversationId:null,sendTranscript:null,isPostSurveyEnabled:!1,connectionState:{type:"Disconnected"}}))}function*lme(){yield fre(x2.initLivePersonChat.type,function*(){Lpe("Init");const e=yield hS(Qte),t=yield hS(rre),r=mC(),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=Ape(),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};Rpe("Updating cookie with session data",{lpEngagementSession:e}),gC({lpEngagementSession:e})}yield*Vpe("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 sS({result:cS(nme,i,a,o,n,t,l,c,u,s),cancel:oS(x2.endTask.type)});e&&Rpe("LivePerson chat cancelled")}catch(h){jpe("TODO",h)}finally{yield*function*(){yield iS(x2.setLivePersonState({accountId:null,skillId:null,sendTranscript:null,isPostSurveyEnabled:!1,connectionState:{type:"Disconnected"}}));const e=mC();e&&gC({...e,startLPChatActivityIds:void 0,lpEngagementSession:void 0,lpJWT:void 0,lpOpenConvs:void 0})}()}else jpe("Not enough config data")}),yield dre(x2.dbgCommand,ime),yield fre(x2.dbgForceSwitchToLivePerson.type,ame),yield fre(x2.dbgForceSwitchToDirectLine.type,sme),yield dre(x2.setLivePersonConnectionState,function*(e){yield*Vpe("Connection State Set To: ",e.payload)})}var cme,ume={exports:{}};var dme=(cme||(cme=1,ume.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}()),ume.exports);const fme=r(dme);function hme(e,...t){return cS(function*(){for(;;){const{meta:{userID:r,username:n},payload:{directLine:o}}=yield oS([mre,yre]),i=yield uS(e,{directLine:o,userID:r,username:n},...t);yield oS([cce,bre]),yield fS(i)}})}const{log:pme,logError:mme}=z.withKind("observeActivitySaga"),gme=e=>e;function*vme({directLine:e,userID:t}){try{yield(r=e.activity$,n=function*(e){e=function(e,t){return e.from?e.from.role||(e=e.from.id===t?fme(e,["from","role"],()=>"user"):e.from.id?fme(e,["from","role"],()=>"bot"):fme(e,["from","role"],()=>"channel")):e=fme(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 fme(e,[t],null==r?void 0:gme)},e)}(e),t),e=function(e){return fme(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),pme("observeActivity",JSON.stringify(e));const r=mC(),n=yield hS(e=>e.webChat.userHasSentMessage);if("event"===e.type&&e.name===mpe&&n){const t=yield hS(e=>e.webChat?.livePerson?.initiatingConversationId),n=e.conversation?.id;!t&&n&&(yield iS(x2.setLivePersonState({initiatingConversationId:n}))),yield iS(x2.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&&(pme("Updating cookie with accountId from bot event",{accountId:e.value.accountId,activityId:e.id}),gC({lpEngagementSession:{...o,account:e.value.accountId}})),r&&Array.isArray(r.startLPChatActivityIds)&&r.startLPChatActivityIds.includes(e.id))return;gC({startLPChatActivityIds:[...r?.startLPChatActivityIds||[],e.id]}),yield iS(x2.initLivePersonChat())}"bot"===e.from?.role&&"message"===e.type&&(function(e,t,r,n){try{const o=r&&!isNaN(new Date(r).getTime())?Math.max(0,(new Date).getTime()-new Date(r).getTime()):0;$W.trackEvent({name:nT,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)}}(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))&&hpe({behavior:R2.CHAT_INITIATE,contentTags:{aN:N2.AI_CHAT_DRAWER,compnm:I2.AI_ASSISTANT,hn:D2.AI_POWERED_ASSISTANT,ehn:D2.AI_POWERED_ASSISTANT,view:M2.AI_CHAT_DRAWER,id:z2.PROMPT_SUBMIT,cT:P2.FREEFORM_PROMPT_SUBMIT,cN:B2.CHAT_WITH_SALES,ecn:B2.CHAT_WITH_SALES}}),yield iS(function(e){return{type:Wte,payload:{activity:e}}}(e))},cS(function*(){const e=ece(),t=r.subscribe({next:e.push});try{for(;;){const t=yield cS(e.shift);yield cS(n,t)}}finally{t.unsubscribe()}}))}catch(o){mme("DirectLine activity stream error:",o),yield iS(jC({message:"There was an issue receiving messages. Please refresh the page if the problem persists.",type:"error",dismissible:!1}))}var r,n}function*yme(){yield hme(vme)}function bme(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 wme(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()}-${bme(e.getMonth()+1)}-${bme(e.getDate())}T${bme(e.getHours())}:${bme(e.getMinutes())}:${bme(e.getSeconds())}.${bme(e.getMilliseconds(),3)}${t?`${r}${bme(Math.floor(n/60))}:${bme(n%60)}`:"Z"}`}let xme;function kme(e){return(xme||(xme=Object.freeze(Array.from(new Set([...Object.getOwnPropertyNames(Object.prototype),"prototype"]))))).includes(e)}function Sme(e,...t){if(!e)return e;const r={...e};for(const n of t)"string"==typeof n&&kme(n)||delete r[n];return r}function _me(e,t){return new Promise(r=>(t.setTimeout??setTimeout)(r,Math.max(e,0)))}const{logWarn:Cme,logError:Tme}=z.withKind("postActivitySaga"),Eme=1e4;function Ame(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 Pme(e){const t=e?.domain,r=e?.conversationId;return t&&r?`${t}/conversations/${r}/activities`:"directline/postActivity"}function*Ime(e,t,r,n,{meta:{method:o},payload:{activity:i}},a){const s="message"===i.type&&i.attachments||[],l=ace(),c=void 0===window.Intl?void 0:(new Intl.DateTimeFormat).resolvedOptions().timeZone,u=new a.Date,d={...Sme(i,"id"),channelData:{...Sme(i.channelData,"state","webchat:send-status"),clientActivityID:l},channelId:"webchat",from:{id:t,name:r,role:"user"},locale:"en-us",localTimestamp:wme(u),localTimezone:c,..."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}:{}};n||(d.entities=[...d.entities||[],{requiresBotState:!0,supportsListening:!0,supportsTts:!0,type:"ClientCapabilities"}]);const f={clientActivityID:l,method:o};ZW(rT);const h=Date.now();let p,m,g=0;yield iS({type:Sre,meta:f,payload:{activity:d}});try{m=yield uS(function*(){for(;;){const{payload:{activity:e}}=yield oS(Wte);if(e.channelData?.clientActivityID===l&&e.id)return p=!0,e}});const t=1e3,r=Date.now(),n=yield uS(function*(){try{const n=Pme(e),o=yield(t=e.postActivity(d),cS(function*(){let e;try{return yield cS(()=>new Promise((r,n)=>{e=t.subscribe({complete:r,error:n,next:r})}))}finally{e&&e.unsubscribe()}}));return g=Date.now()-r,QW(bT,j,gT,g,!0,200,n),o}catch(n){const t=Pme(e);throw g=Date.now()-r,QW(bT,j,gT,g,!1,void 0,t),XW(vT,n),n}var t}),{postActivityResult:o}=yield sS({postActivityResult:dS(n),timeout:cS(function*(){throw yield cS(_me,t,a),yield iS({type:kre,meta:f,payload:{activity:d}}),yield cS(_me,3e5-t,a),new Error("timed out while waiting for postActivity to return any values")})}),{echoBack:i}=yield sS({echoBack:dS(m),grace:cS(_me,Eme,a)}),s=i||{...d,id:Ame(o)||l};if(!i){const t=Ame(o);Cme("Echo-back not observed within grace period, synthesizing activity",{clientActivityID:l,returnedId:t,gracePeriod:Eme}),QW(bT,j,"EchoBackNotObserved",Eme,!0,200,Pme(e))}yield iS({type:xre,meta:f,payload:{activity:s}});const c=Pme(e),u=Date.now()-h;QW(bT,j,iT,u,!0,200,c)}catch(v){const t=Pme(e),r=Date.now()-h;QW(bT,j,iT,r,!1,void 0,t),XW(aT,v),Tme("botframework-webchat: Failed to post activity to chat adapter.",v),yield iS(jC({message:"Failed to send message. Please check your connection and try again.",type:"error",dismissible:!0})),yield iS({type:_re,error:!0,meta:f,payload:v})}finally{m&&(yield fS(m)),(yield pS())&&(yield iS(jC({message:"Message sending was cancelled. Please try again.",type:"warn",dismissible:!0})),yield iS({type:_re,error:!0,meta:f,payload:new Error("cancelled")}))}}function*Bme(e){yield hme(function*({directLine:t,userID:r,username:n}){let o=0;yield dre(wre,function*(i){yield*Ime(t,r,n,o++,i,e)})})}function*Nme(){yield dre("WEB_CHAT/SEND_EVENT",function*(e){e.payload&&e.payload.name&&(yield*function*({payload:{name:e,value:t}}){yield iS(Cre({name:e,type:"event",value:t}))}(e))})}function*Dme(){yield hme(Nme)}function*zme({payload:e}){const{displayText:t,text:r,value:n}=e;yield iS(Cre({channelData:{messageBack:{displayText:t}},text:r,type:"message",value:n}))}function*Ome(){yield dre(w2,zme)}function*Rme(){yield hme(Ome)}function*Mme({payload:{attachments:e=[],channelData:t,method:r,text:n,value:o}}){const i=fC(),a=mC(),s=a?.ocrAIChatDrawerSourceSite;s!==i&&(gC({[nC]:i}),yield iS(Cre({type:"event",name:"sourceSiteEvent",value:{sourceSite:i,pageUrl:window.location.href}},"keyboard")));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 iS(Cre(l,r))}function*jme(){yield dre(({payload:e,type:t})=>t===b2&&(e.text||e.attachments?.length||e.value),Mme)}function*Lme(){yield hme(jme)}function*Fme({payload:e}){const{value:t}=e;yield iS(Cre({channelData:{postBack:!0},text:"string"==typeof t?t:void 0,type:"message",value:"string"!=typeof t?t:void 0}))}function*Vme(){yield dre("WEB_CHAT/SEND_POST_BACK",Fme)}function*qme(){yield hme(Vme)}const{logError:Hme}=z.withKind("telemetrySaga");function*Ume(){yield aS([dre(_2.logTelemetry,Wme),dre(_2.logUserFeedback,$me)])}function*Wme({payload:e}){try{yield ZW(e)}catch(t){Hme("Error in telemetry saga:",t)}}function*$me({payload:e}){try{yield function(e){try{$W.trackEvent({name:e.name,properties:{actionType:e.name,replyToId:e.replyToId}})}catch(t){console.error("Failed to track user engagement events:",t)}}(e)}catch(t){Hme("Error in user feedback handler:",t)}}const Gme=function(){var e,t={},r=t.context,n=void 0===r?{}:r,o=t.channel,i=void 0===o?zS():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=XS.bind(null,vy({},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){Ak(n,e)},l}(),Yme="undefined"==typeof globalThis?window:globalThis,Kme={},Jme={cancelAnimationFrame:Kme.cancelAnimationFrame||("function"==typeof cancelAnimationFrame?cancelAnimationFrame.bind(Yme):void 0),cancelIdleCallback:Kme.cancelIdleCallback||("function"==typeof cancelIdleCallback?cancelIdleCallback.bind(Yme):void 0),clearImmediate:Kme.clearImmediate||("function"==typeof clearImmediate?clearImmediate.bind(Yme):void 0),clearInterval:Kme.clearInterval||("function"==typeof clearInterval?clearInterval.bind(Yme):void 0),clearTimeout:Kme.clearTimeout||("function"==typeof clearTimeout?clearTimeout.bind(Yme):void 0),Date:Kme.Date||Date,requestAnimationFrame:Kme.requestAnimationFrame||("function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Yme):void 0),requestIdleCallback:Kme.requestIdleCallback||("function"==typeof requestIdleCallback?requestIdleCallback.bind(Yme):void 0),setImmediate:Kme.setImmediate||("function"==typeof setImmediate?setImmediate.bind(Yme):void 0),setInterval:Kme.setInterval||("function"==typeof setInterval?setInterval.bind(Yme):void 0),setTimeout:Kme.setTimeout||("function"==typeof setTimeout?setTimeout.bind(Yme):void 0)},Xme=function(e){const t=function(e){const{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{};let i=new Bx;return t&&("boolean"==typeof t?i.push(Ex):i.push(Ax(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(!Cw(r))throw new Error(Xx(1));s=Ew(r)}l="function"==typeof n?n(t):t();let c=Aw;o&&(c=Px({trace:!1,..."object"==typeof o&&o}));const u=function(...e){return t=>(r,n)=>{const o=t(r,n);let i=()=>{throw new Error(xw(15))};const a={getState:o.getState,dispatch:(e,...t)=>i(e,...t)},s=e.map(e=>e(a));return i=Aw(...s)(o.dispatch),{...o,dispatch:i}}}(...l),d=Ox(u);return Tw(s,i,c(..."function"==typeof a?a(d):d()))}({reducer:ore,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(Gme)});Gme.run(function*({ponyfill:e}){yield aS([uS(Ume),uS(xce),uS(qre),uS(yme),uS(Bme,e),uS(Lme),uS(Rme),uS(qme),uS(Dme),uS(lme)])},{ponyfill:Jme});const Qme=()=>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"})}),Zme=()=>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"})})})]}),ege=()=>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"})})})]}),tge=()=>Zb(e=>e.themeProvider.theme),rge=()=>{const e=yw(),{isDrawerOpen:t,toggleDrawer:r}=Pre(),n=tge(),o=g.useRef(!1),i=()=>{r(),e(_2.logTelemetry("Assistant drawer button clicked"))};return g.useEffect(()=>{"1"!==new URLSearchParams(window.location.search).get("waa")||t||o.current||(o.current=!0,r(),e(_2.logTelemetry("WAA parameter set to true")))},[t,r,e]),t?null:p.jsxs("div",{className:"uca-assistant-drawer-button",onClick:i,onKeyUp:e=>"Enter"===e.key&&i(),role:"button",tabIndex:0,"aria-label":"Open Ask Microsoft web assistant","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:n===R.Night?p.jsx(ege,{}):p.jsx(Zme,{})})}),p.jsx("div",{className:"uca-chat-button__text",children:p.jsx("span",{className:"h5","aria-live":"off",children:"Ask Microsoft​"})}),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,"data-bi-cn":I2.SHOW_CHAT,"data-bi-ecn":I2.SHOW_CHAT,"data-bi-hn":D2.AI_POWERED_ASSISTANT,"data-bi-ehn":D2.AI_POWERED_ASSISTANT,"data-bi-compnm":I2.AI_ASSISTANT,"data-bi-view":M2.AI_CHAT_DRAWER,"data-bi-an":N2.AI_CHAT_DRAWER,"data-bi-bhvr":R2.CHAT_OPEN,"data-bi-id":z2.SHOW_AI_CHAT,role:"button",children:p.jsx("div",{className:"uca-add-icon","aria-hidden":"true",children:p.jsx("span",{className:"glyph-add",children:p.jsx(Qme,{})})})})]})};var nge,oge={},ige={exports:{}};function age(){return nge||(nge=1,(e=ige).exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports),ige.exports;var e}var sge,lge={exports:{}};function cge(){return sge||(sge=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}(lge)),lge.exports}var uge,dge,fge={exports:{}},hge={exports:{}};function pge(){return dge||(dge=1,e=fge,t=function(){return uge||(uge=1,(e=hge).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),hge.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),fge.exports;var e,t}var mge,gge={exports:{}};function vge(){return mge||(mge=1,(e=gge).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),gge.exports;var e}var yge,bge,wge,xge={exports:{}},kge={exports:{}},Sge={exports:{}};function _ge(){return bge||(bge=1,e=kge,t=cge().default,r=function(){return yge||(yge=1,e=Sge,t=cge().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),Sge.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),kge.exports;var e,t,r}function Cge(){return wge||(wge=1,function(e){var t=_ge();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}(xge)),xge.exports}var Tge,Ege={exports:{}};function Age(){return Tge||(Tge=1,e=Ege,t=_ge(),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),Ege.exports;var e,t}var Pge,Ige,Bge={};function Nge(){if(Ige)return Pge;Ige=1;var e=function(e){return e&&e.Math==Math&&e};return Pge=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")()}var Dge,zge,Oge,Rge,Mge={};function jge(){return zge?Dge:(zge=1,Dge=function(e){try{return!!e()}catch(t){return!0}})}function Lge(){if(Rge)return Oge;Rge=1;var e=jge();return Oge=!e(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})}var Fge,Vge,qge,Hge,Uge,Wge,$ge,Gge,Yge,Kge,Jge,Xge,Qge,Zge,eve,tve,rve,nve,ove,ive,ave,sve,lve,cve,uve={};function dve(){return qge?Vge:(qge=1,Vge=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function fve(){if(Uge)return Hge;Uge=1;var e={}.toString;return Hge=function(t){return e.call(t).slice(8,-1)}}function hve(){return Yge?Gge:(Yge=1,Gge=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e})}function pve(){if(Jge)return Kge;Jge=1;var e=function(){if($ge)return Wge;$ge=1;var e=jge(),t=fve(),r="".split;return Wge=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==t(e)?r.call(e,""):Object(e)}:Object}(),t=hve();return Kge=function(r){return e(t(r))}}function mve(){return Qge?Xge:(Qge=1,Xge=function(e){return"object"==typeof e?null!==e:"function"==typeof e})}function gve(){if(eve)return Zge;eve=1;var e=mve();return Zge=function(t,r){if(!e(t))return t;var n,o;if(r&&"function"==typeof(n=t.toString)&&!e(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!e(o=n.call(t)))return o;if(!r&&"function"==typeof(n=t.toString)&&!e(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")},Zge}function vve(){if(rve)return tve;rve=1;var e=hve();return tve=function(t){return Object(e(t))}}function yve(){if(ove)return nve;ove=1;var e=vve(),t={}.hasOwnProperty;return nve=Object.hasOwn||function(r,n){return t.call(e(r),n)}}function bve(){if(ave)return ive;ave=1;var e=Nge(),t=mve(),r=e.document,n=t(r)&&t(r.createElement);return ive=function(e){return n?r.createElement(e):{}}}function wve(){if(lve)return sve;lve=1;var e=Lge(),t=jge(),r=bve();return sve=!e&&!t(function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function xve(){if(cve)return Mge;cve=1;var e=Lge(),t=function(){if(Fge)return uve;Fge=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return uve.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,uve}(),r=dve(),n=pve(),o=gve(),i=yve(),a=wve(),s=Object.getOwnPropertyDescriptor;return Mge.f=e?s:function(e,l){if(e=n(e),l=o(l,!0),a)try{return s(e,l)}catch(c){}if(i(e,l))return r(!t.f.call(e,l),e[l])},Mge}var kve,Sve,_ve,Cve,Tve,Eve={};function Ave(){if(Sve)return kve;Sve=1;var e=mve();return kve=function(t){if(!e(t))throw TypeError(String(t)+" is not an object");return t}}function Pve(){if(_ve)return Eve;_ve=1;var e=Lge(),t=wve(),r=Ave(),n=gve(),o=Object.defineProperty;return Eve.f=e?o:function(e,i,a){if(r(e),i=n(i,!0),r(a),t)try{return o(e,i,a)}catch(s){}if("get"in a||"set"in a)throw TypeError("Accessors not supported");return"value"in a&&(e[i]=a.value),e},Eve}function Ive(){if(Tve)return Cve;Tve=1;var e=Lge(),t=Pve(),r=dve();return Cve=e?function(e,n,o){return t.f(e,n,r(1,o))}:function(e,t,r){return e[t]=r,e}}var Bve,Nve,Dve,zve,Ove,Rve,Mve,jve,Lve={exports:{}};function Fve(){if(Nve)return Bve;Nve=1;var e=Nge(),t=Ive();return Bve=function(r,n){try{t(e,r,n)}catch(o){e[r]=n}return n}}function Vve(){if(zve)return Dve;zve=1;var e=Nge(),t=Fve(),r="__core-js_shared__",n=e[r]||t(r,{});return Dve=n}function qve(){if(Rve)return Ove;Rve=1;var e=Vve(),t=Function.toString;return"function"!=typeof e.inspectSource&&(e.inspectSource=function(e){return t.call(e)}),Ove=e.inspectSource}var Hve,Uve,Wve,$ve,Gve,Yve,Kve,Jve,Xve,Qve,Zve,eye,tye,rye,nye,oye,iye={exports:{}};function aye(){return Uve?Hve:(Uve=1,Hve=!1)}function sye(){if(Wve)return iye.exports;Wve=1;var e=aye(),t=Vve();return(iye.exports=function(e,r){return t[e]||(t[e]=void 0!==r?r:{})})("versions",[]).push({version:"3.15.2",mode:e?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"}),iye.exports}function lye(){if(Gve)return $ve;Gve=1;var e=0,t=Math.random();return $ve=function(r){return"Symbol("+String(void 0===r?"":r)+")_"+(++e+t).toString(36)}}function cye(){if(Kve)return Yve;Kve=1;var e=sye(),t=lye(),r=e("keys");return Yve=function(e){return r[e]||(r[e]=t(e))}}function uye(){return Xve?Jve:(Xve=1,Jve={})}function dye(){if(Zve)return Qve;Zve=1;var e,t,r,n=function(){if(jve)return Mve;jve=1;var e=Nge(),t=qve(),r=e.WeakMap;return Mve="function"==typeof r&&/native code/.test(t(r))}(),o=Nge(),i=mve(),a=Ive(),s=yve(),l=Vve(),c=cye(),u=uye(),d="Object already initialized",f=o.WeakMap;if(n||l.state){var h=l.state||(l.state=new f),p=h.get,m=h.has,g=h.set;e=function(e,t){if(m.call(h,e))throw new TypeError(d);return t.facade=e,g.call(h,e,t),t},t=function(e){return p.call(h,e)||{}},r=function(e){return m.call(h,e)}}else{var v=c("state");u[v]=!0,e=function(e,t){if(s(e,v))throw new TypeError(d);return t.facade=e,a(e,v,t),t},t=function(e){return s(e,v)?e[v]:{}},r=function(e){return s(e,v)}}return Qve={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 TypeError("Incompatible receiver, "+e+" required");return n}}}}function fye(){if(eye)return Lve.exports;eye=1;var e=Nge(),t=Ive(),r=yve(),n=Fve(),o=qve(),i=dye(),a=i.get,s=i.enforce,l=String(String).split("String");return(Lve.exports=function(o,i,a,c){var u,d=!!c&&!!c.unsafe,f=!!c&&!!c.enumerable,h=!!c&&!!c.noTargetGet;"function"==typeof a&&("string"!=typeof i||r(a,"name")||t(a,"name",i),(u=s(a)).source||(u.source=l.join("string"==typeof i?i:""))),o!==e?(d?!h&&o[i]&&(f=!0):delete o[i],f?o[i]=a:t(o,i,a)):f?o[i]=a:n(i,a)})(Function.prototype,"toString",function(){return"function"==typeof this&&a(this).source||o(this)}),Lve.exports}function hye(){if(rye)return tye;rye=1;var e=Nge();return tye=e}function pye(){if(oye)return nye;oye=1;var e=hye(),t=Nge(),r=function(e){return"function"==typeof e?e:void 0};return nye=function(n,o){return arguments.length<2?r(e[n])||r(t[n]):e[n]&&e[n][o]||t[n]&&t[n][o]},nye}var mye,gye,vye,yye,bye,wye,xye,kye,Sye,_ye,Cye,Tye,Eye,Aye={};function Pye(){if(gye)return mye;gye=1;var e=Math.ceil,t=Math.floor;return mye=function(r){return isNaN(r=+r)?0:(r>0?t:e)(r)}}function Iye(){if(yye)return vye;yye=1;var e=Pye(),t=Math.min;return vye=function(r){return r>0?t(e(r),9007199254740991):0}}function Bye(){if(kye)return xye;kye=1;var e=pve(),t=Iye(),r=function(){if(wye)return bye;wye=1;var e=Pye(),t=Math.max,r=Math.min;return bye=function(n,o){var i=e(n);return i<0?t(i+o,0):r(i,o)}}(),n=function(n){return function(o,i,a){var s,l=e(o),c=t(l.length),u=r(a,c);if(n&&i!=i){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((n||u in l)&&l[u]===i)return n||u||0;return!n&&-1}};return xye={includes:n(!0),indexOf:n(!1)}}function Nye(){if(_ye)return Sye;_ye=1;var e=yve(),t=pve(),r=Bye().indexOf,n=uye();return Sye=function(o,i){var a,s=t(o),l=0,c=[];for(a in s)!e(n,a)&&e(s,a)&&c.push(a);for(;i.length>l;)e(s,a=i[l++])&&(~r(c,a)||c.push(a));return c},Sye}function Dye(){return Tye?Cye:(Tye=1,Cye=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var zye,Oye,Rye,Mye,jye,Lye,Fye,Vye,qye,Hye,Uye,Wye,$ye,Gye,Yye,Kye,Jye,Xye,Qye,Zye,ebe,tbe,rbe,nbe,obe,ibe,abe,sbe,lbe,cbe,ube,dbe,fbe,hbe,pbe,mbe,gbe,vbe,ybe,bbe,wbe,xbe,kbe,Sbe,_be,Cbe,Tbe,Ebe,Abe,Pbe,Ibe,Bbe,Nbe,Dbe,zbe={};function Obe(){if(Rye)return Oye;Rye=1;var e=pye(),t=function(){if(Eye)return Aye;Eye=1;var e=Nye(),t=Dye().concat("length","prototype");return Aye.f=Object.getOwnPropertyNames||function(r){return e(r,t)},Aye}(),r=(zye||(zye=1,zbe.f=Object.getOwnPropertySymbols),zbe),n=Ave();return Oye=e("Reflect","ownKeys")||function(e){var o=t.f(n(e)),i=r.f;return i?o.concat(i(e)):o}}function Rbe(){if(Fye)return Lye;Fye=1;var e=jge(),t=/#|\.prototype\./,r=function(t,r){var s=o[n(t)];return s==a||s!=i&&("function"==typeof r?e(r):!!r)},n=r.normalize=function(e){return String(e).replace(t,".").toLowerCase()},o=r.data={},i=r.NATIVE="N",a=r.POLYFILL="P";return Lye=r}function Mbe(){if(qye)return Vye;qye=1;var e=Nge(),t=xve().f,r=Ive(),n=fye(),o=Fve(),i=function(){if(jye)return Mye;jye=1;var e=yve(),t=Obe(),r=xve(),n=Pve();return Mye=function(o,i){for(var a=t(i),s=n.f,l=r.f,c=0;c<a.length;c++){var u=a[c];e(o,u)||s(o,u,l(i,u))}},Mye}(),a=Rbe();return Vye=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]||{}).prototype)for(u in l){if(f=l[u],d=s.noTargetGet?(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 jbe(){if($ye)return Wye;$ye=1;var e=yve(),t=vve(),r=cye(),n=function(){if(Uye)return Hye;Uye=1;var e=jge();return Hye=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}(),o=r("IE_PROTO"),i=Object.prototype;return Wye=n?Object.getPrototypeOf:function(r){return r=t(r),e(r,o)?r[o]:"function"==typeof r.constructor&&r instanceof r.constructor?r.constructor.prototype:r instanceof Object?i:null}}function Lbe(){if(Jye)return Kye;Jye=1;var e=Ave(),t=function(){if(Yye)return Gye;Yye=1;var e=mve();return Gye=function(t){if(!e(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}}();return Kye=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,o={};try{(r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(o,[]),n=o instanceof Array}catch(i){}return function(o,i){return e(o),t(i),n?r.call(o,i):o.__proto__=i,o}}():void 0)}function Fbe(){if(ebe)return Zye;ebe=1;var e=Lge(),t=Pve(),r=Ave(),n=function(){if(Qye)return Xye;Qye=1;var e=Nye(),t=Dye();return Xye=Object.keys||function(r){return e(r,t)}}();return Zye=e?Object.defineProperties:function(e,o){r(e);for(var i,a=n(o),s=a.length,l=0;s>l;)t.f(e,i=a[l++],o[i]);return e}}function Vbe(){if(rbe)return tbe;rbe=1;var e=pye();return tbe=e("document","documentElement")}function qbe(){if(obe)return nbe;obe=1;var e,t=Ave(),r=Fbe(),n=Dye(),o=uye(),i=Vbe(),a=bve(),s=cye(),l="prototype",c="script",u=s("IE_PROTO"),d=function(){},f=function(e){return"<"+c+">"+e+"</"+c+">"},h=function(){try{e=document.domain&&new ActiveXObject("htmlfile")}catch(u){}var t,r,o;h=e?function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t}(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);for(var s=n.length;s--;)delete h[l][n[s]];return h()};return o[u]=!0,nbe=Object.create||function(e,n){var o;return null!==e?(d[l]=t(e),o=new d,d[l]=null,o[u]=e):o=h(),void 0===n?o:r(o,n)}}function Hbe(){if(abe)return ibe;abe=1;var e=pye();return ibe=e("navigator","userAgent")||""}function Ube(){if(lbe)return sbe;lbe=1;var e,t,r=Nge(),n=Hbe(),o=r.process,i=o&&o.versions,a=i&&i.v8;return a?t=(e=a.split("."))[0]<4?1:e[0]+e[1]:n&&(!(e=n.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=n.match(/Chrome\/(\d+)/))&&(t=e[1]),sbe=t&&+t}function Wbe(){if(ube)return cbe;ube=1;var e=Ube(),t=jge();return cbe=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})}function $be(){if(pbe)return hbe;pbe=1;var e=Nge(),t=sye(),r=yve(),n=lye(),o=Wbe(),i=function(){if(fbe)return dbe;fbe=1;var e=Wbe();return dbe=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}(),a=t("wks"),s=e.Symbol,l=i?s:s&&s.withoutSetter||n;return hbe=function(e){return r(a,e)&&(o||"string"==typeof a[e])||(o&&r(s,e)?a[e]=s[e]:a[e]=l("Symbol."+e)),a[e]}}function Gbe(){return gbe?mbe:(gbe=1,mbe={})}function Ybe(){return wbe?bbe:(wbe=1,bbe=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e})}function Kbe(){if(kbe)return xbe;kbe=1;var e=Ybe();return xbe=function(t,r,n){if(e(t),void 0===r)return t;switch(n){case 0:return function(){return t.call(r)};case 1:return function(e){return t.call(r,e)};case 2:return function(e,n){return t.call(r,e,n)};case 3:return function(e,n,o){return t.call(r,e,n,o)}}return function(){return t.apply(r,arguments)}},xbe}function Jbe(){if(_be)return Sbe;_be=1;var e={};return e[$be()("toStringTag")]="z",Sbe="[object z]"===String(e)}function Xbe(){if(Tbe)return Cbe;Tbe=1;var e=Jbe(),t=fve(),r=$be()("toStringTag"),n="Arguments"==t(function(){return arguments}());return Cbe=e?t:function(e){var o,i,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(e,t){try{return e[t]}catch(r){}}(o=Object(e),r))?i:n?t(o):"Object"==(a=t(o))&&"function"==typeof o.callee?"Arguments":a}}function Qbe(){if(Nbe)return Bbe;Nbe=1;var e=Ave(),t=function(){if(ybe)return vbe;ybe=1;var e=$be(),t=Gbe(),r=e("iterator"),n=Array.prototype;return vbe=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}(),r=Iye(),n=Kbe(),o=function(){if(Abe)return Ebe;Abe=1;var e=Xbe(),t=Gbe(),r=$be()("iterator");return Ebe=function(n){if(null!=n)return n[r]||n["@@iterator"]||t[e(n)]}}(),i=function(){if(Ibe)return Pbe;Ibe=1;var e=Ave();return Pbe=function(t){var r=t.return;if(void 0!==r)return e(r.call(t)).value}}(),a=function(e,t){this.stopped=e,this.result=t};return Bbe=function(s,l,c){var u,d,f,h,p,m,g,v=c&&c.that,y=!(!c||!c.AS_ENTRIES),b=!(!c||!c.IS_ITERATOR),w=!(!c||!c.INTERRUPTED),x=n(l,v,1+y+w),k=function(e){return u&&i(u),new a(!0,e)},S=function(t){return y?(e(t),w?x(t[0],t[1],k):x(t[0],t[1])):w?x(t,k):x(t)};if(b)u=s;else{if("function"!=typeof(d=o(s)))throw TypeError("Target is not iterable");if(t(d)){for(f=0,h=r(s.length);h>f;f++)if((p=S(s[f]))&&p instanceof a)return p;return new a(!1)}u=d.call(s)}for(m=u.next;!(g=m.call(u)).done;){try{p=S(g.value)}catch(_){throw i(u),_}if("object"==typeof p&&p&&p instanceof a)return p}return new a(!1)},Bbe}function Zbe(){if(Dbe)return Bge;Dbe=1;var e=Mbe(),t=jbe(),r=Lbe(),n=qbe(),o=Ive(),i=dve(),a=Qbe(),s=function(e,n){var i=this;if(!(i instanceof s))return new s(e,n);r&&(i=r(new Error(void 0),t(i))),void 0!==n&&o(i,"message",String(n));var l=[];return a(e,l.push,{that:l}),o(i,"errors",l),i};return s.prototype=n(Error.prototype,{constructor:i(5,s),message:i(5,""),name:i(5,"AggregateError")}),e({global:!0},{AggregateError:s}),Bge}var ewe,twe,rwe,nwe={};function owe(){if(rwe)return nwe;rwe=1;var e=Jbe(),t=fye(),r=function(){if(twe)return ewe;twe=1;var e=Jbe(),t=Xbe();return ewe=e?{}.toString:function(){return"[object "+t(this)+"]"}}();return e||t(Object.prototype,"toString",r,{unsafe:!0}),nwe}var iwe,awe,swe,lwe,cwe,uwe,dwe,fwe,hwe,pwe,mwe,gwe,vwe,ywe,bwe,wwe,xwe,kwe,Swe,_we,Cwe,Twe,Ewe,Awe,Pwe={};function Iwe(){if(awe)return iwe;awe=1;var e=Nge();return iwe=e.Promise}function Bwe(){if(uwe)return cwe;uwe=1;var e=Pve().f,t=yve(),r=$be()("toStringTag");return cwe=function(n,o,i){n&&!t(n=i?n:n.prototype,r)&&e(n,r,{configurable:!0,value:o})}}function Nwe(){if(ywe)return vwe;ywe=1;var e=Ave(),t=Ybe(),r=$be()("species");return vwe=function(n,o){var i,a=e(n).constructor;return void 0===a||null==(i=e(a)[r])?o:t(i)}}function Dwe(){if(wwe)return bwe;wwe=1;var e=Hbe();return bwe=/(?:iphone|ipod|ipad).*applewebkit/i.test(e)}function zwe(){if(kwe)return xwe;kwe=1;var e=fve(),t=Nge();return xwe="process"==e(t.process)}function Owe(){if(_we)return Swe;_we=1;var e,t,r,n=Nge(),o=jge(),i=Kbe(),a=Vbe(),s=bve(),l=Dwe(),c=zwe(),u=n.location,d=n.setImmediate,f=n.clearImmediate,h=n.process,p=n.MessageChannel,m=n.Dispatch,g=0,v={},y="onreadystatechange",b=function(e){if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},w=function(e){return function(){b(e)}},x=function(e){b(e.data)},k=function(e){n.postMessage(e+"",u.protocol+"//"+u.host)};return d&&f||(d=function(t){for(var r=[],n=1;arguments.length>n;)r.push(arguments[n++]);return v[++g]=function(){("function"==typeof t?t:Function(t)).apply(void 0,r)},e(g),g},f=function(e){delete v[e]},c?e=function(e){h.nextTick(w(e))}:m&&m.now?e=function(e){m.now(w(e))}:p&&!l?(r=(t=new p).port2,t.port1.onmessage=x,e=i(r.postMessage,r,1)):n.addEventListener&&"function"==typeof postMessage&&!n.importScripts&&u&&"file:"!==u.protocol&&!o(k)?(e=k,n.addEventListener("message",x,!1)):e=y in s("script")?function(e){a.appendChild(s("script"))[y]=function(){a.removeChild(this),b(e)}}:function(e){setTimeout(w(e),0)}),Swe={set:d,clear:f}}function Rwe(){if(Awe)return Ewe;Awe=1;var e,t,r,n,o,i,a,s,l=Nge(),c=xve().f,u=Owe().set,d=Dwe(),f=function(){if(Twe)return Cwe;Twe=1;var e=Hbe();return Cwe=/web0s(?!.*chrome)/i.test(e)}(),h=zwe(),p=l.MutationObserver||l.WebKitMutationObserver,m=l.document,g=l.process,v=l.Promise,y=c(l,"queueMicrotask"),b=y&&y.value;return b||(e=function(){var e,o;for(h&&(e=g.domain)&&e.exit();t;){o=t.fn,t=t.next;try{o()}catch(i){throw t?n():r=void 0,i}}r=void 0,e&&e.enter()},d||h||f||!p||!m?v&&v.resolve?((a=v.resolve(void 0)).constructor=v,s=a.then,n=function(){s.call(a,e)}):n=h?function(){g.nextTick(e)}:function(){u.call(l,e)}:(o=!0,i=m.createTextNode(""),new p(e).observe(i,{characterData:!0}),n=function(){i.data=o=!o})),Ewe=b||function(e){var o={fn:e,next:void 0};r&&(r.next=o),t||(t=o,n()),r=o},Ewe}var Mwe,jwe,Lwe,Fwe,Vwe,qwe,Hwe,Uwe,Wwe,$we,Gwe={};function Ywe(){if(Mwe)return Gwe;Mwe=1;var e=Ybe(),t=function(t){var r,n;this.promise=new t(function(e,t){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=e,n=t}),this.resolve=e(r),this.reject=e(n)};return Gwe.f=function(e){return new t(e)},Gwe}function Kwe(){if(Lwe)return jwe;Lwe=1;var e=Ave(),t=mve(),r=Ywe();return jwe=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 Jwe(){return Hwe?qwe:(Hwe=1,qwe=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}})}function Xwe(){if($we)return Pwe;$we=1;var e,t,r,n,o=Mbe(),i=aye(),a=Nge(),s=pye(),l=Iwe(),c=fye(),u=function(){if(lwe)return swe;lwe=1;var e=fye();return swe=function(t,r,n){for(var o in r)e(t,o,r[o],n);return t}}(),d=Lbe(),f=Bwe(),h=function(){if(fwe)return dwe;fwe=1;var e=pye(),t=Pve(),r=$be(),n=Lge(),o=r("species");return dwe=function(r){var i=e(r),a=t.f;n&&i&&!i[o]&&a(i,o,{configurable:!0,get:function(){return this}})}}(),p=mve(),m=Ybe(),g=pwe?hwe:(pwe=1,hwe=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}),v=qve(),y=Qbe(),b=function(){if(gwe)return mwe;gwe=1;var e=$be()("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 mwe=function(r,n){if(!n&&!t)return!1;var i=!1;try{var a={};a[e]=function(){return{next:function(){return{done:i=!0}}}},r(a)}catch(o){}return i}}(),w=Nwe(),x=Owe().set,k=Rwe(),S=Kwe(),_=function(){if(Vwe)return Fwe;Vwe=1;var e=Nge();return Fwe=function(t,r){var n=e.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,r))},Fwe}(),C=Ywe(),T=Jwe(),E=dye(),A=Rbe(),P=$be(),I=Wwe?Uwe:(Wwe=1,Uwe="object"==typeof window),B=zwe(),N=Ube(),D=P("species"),z="Promise",O=E.get,R=E.set,M=E.getterFor(z),j=l&&l.prototype,L=l,F=j,V=a.TypeError,q=a.document,H=a.process,U=C.f,W=U,$=!!(q&&q.createEvent&&a.dispatchEvent),G="function"==typeof PromiseRejectionEvent,Y="unhandledrejection",K=!1,J=A(z,function(){var e=v(L),t=e!==String(L);if(!t&&66===N)return!0;if(i&&!F.finally)return!0;if(N>=51&&/native code/.test(e))return!1;var r=new L(function(e){e(1)}),n=function(e){e(function(){},function(){})};return(r.constructor={})[D]=n,!(K=r.then(function(){})instanceof n)||!t&&I&&!G}),X=J||!b(function(e){L.all(e).catch(function(){})}),Q=function(e){var t;return!(!p(e)||"function"!=typeof(t=e.then))&&t},Z=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;k(function(){for(var n=e.value,o=1==e.state,i=0;r.length>i;){var a,s,l,c=r[i++],u=o?c.ok:c.fail,d=c.resolve,f=c.reject,h=c.domain;try{u?(o||(2===e.rejection&&ne(e),e.rejection=1),!0===u?a=n:(h&&h.enter(),a=u(n),h&&(h.exit(),l=!0)),a===c.promise?f(V("Promise-chain cycle")):(s=Q(a))?s.call(a,d,f):d(a)):f(n)}catch(p){h&&!l&&h.exit(),f(p)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&te(e)})}},ee=function(e,t,r){var n,o;$?((n=q.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),a.dispatchEvent(n)):n={promise:t,reason:r},!G&&(o=a["on"+e])?o(n):e===Y&&_("Unhandled promise rejection",r)},te=function(e){x.call(a,function(){var t,r=e.facade,n=e.value;if(re(e)&&(t=T(function(){B?H.emit("unhandledRejection",n,r):ee(Y,r,n)}),e.rejection=B||re(e)?2:1,t.error))throw t.value})},re=function(e){return 1!==e.rejection&&!e.parent},ne=function(e){x.call(a,function(){var t=e.facade;B?H.emit("rejectionHandled",t):ee("rejectionhandled",t,e.value)})},oe=function(e,t,r){return function(n){e(t,n,r)}},ie=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Z(e,!0))},ae=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw V("Promise can't be resolved itself");var n=Q(t);n?k(function(){var r={done:!1};try{n.call(t,oe(ae,r,e),oe(ie,r,e))}catch(o){ie(r,o,e)}}):(e.value=t,e.state=1,Z(e,!1))}catch(o){ie({done:!1},o,e)}}};if(J&&(F=(L=function(t){g(this,L,z),m(t),e.call(this);var r=O(this);try{t(oe(ae,r),oe(ie,r))}catch(n){ie(r,n)}}).prototype,(e=function(e){R(this,{type:z,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=u(F,{then:function(e,t){var r=M(this),n=U(w(this,L));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=B?H.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&Z(r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),t=function(){var t=new e,r=O(t);this.promise=t,this.resolve=oe(ae,r),this.reject=oe(ie,r)},C.f=U=function(e){return e===L||e===r?new t(e):W(e)},!i&&"function"==typeof l&&j!==Object.prototype)){n=j.then,K||(c(j,"then",function(e,t){var r=this;return new L(function(e,t){n.call(r,e,t)}).then(e,t)},{unsafe:!0}),c(j,"catch",F.catch,{unsafe:!0}));try{delete j.constructor}catch(se){}d&&d(j,F)}return o({global:!0,wrap:!0,forced:J},{Promise:L}),f(L,z,!1,!0),h(z),r=s(z),o({target:z,stat:!0,forced:J},{reject:function(e){var t=U(this);return t.reject.call(void 0,e),t.promise}}),o({target:z,stat:!0,forced:i||J},{resolve:function(e){return S(i&&this===r?L:this,e)}}),o({target:z,stat:!0,forced:X},{all:function(e){var t=this,r=U(t),n=r.resolve,o=r.reject,i=T(function(){var r=m(t.resolve),i=[],a=0,s=1;y(e,function(e){var l=a++,c=!1;i.push(void 0),s++,r.call(t,e).then(function(e){c||(c=!0,i[l]=e,--s||n(i))},o)}),--s||n(i)});return i.error&&o(i.value),r.promise},race:function(e){var t=this,r=U(t),n=r.reject,o=T(function(){var o=m(t.resolve);y(e,function(e){o.call(t,e).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}}),Pwe}var Qwe,Zwe={};function exe(){if(Qwe)return Zwe;Qwe=1;var e=Mbe(),t=Ybe(),r=Ywe(),n=Jwe(),o=Qbe();return e({target:"Promise",stat:!0},{allSettled:function(e){var i=this,a=r.f(i),s=a.resolve,l=a.reject,c=n(function(){var r=t(i.resolve),n=[],a=0,l=1;o(e,function(e){var t=a++,o=!1;n.push(void 0),l++,r.call(i,e).then(function(e){o||(o=!0,n[t]={status:"fulfilled",value:e},--l||s(n))},function(e){o||(o=!0,n[t]={status:"rejected",reason:e},--l||s(n))})}),--l||s(n)});return c.error&&l(c.value),a.promise}}),Zwe}var txe,rxe={};function nxe(){if(txe)return rxe;txe=1;var e=Mbe(),t=Ybe(),r=pye(),n=Ywe(),o=Jwe(),i=Qbe(),a="No one promise resolved";return e({target:"Promise",stat:!0},{any:function(e){var s=this,l=n.f(s),c=l.resolve,u=l.reject,d=o(function(){var n=t(s.resolve),o=[],l=0,d=1,f=!1;i(e,function(e){var t=l++,i=!1;o.push(void 0),d++,n.call(s,e).then(function(e){i||f||(f=!0,c(e))},function(e){i||f||(i=!0,o[t]=e,--d||u(new(r("AggregateError"))(o,a)))})}),--d||u(new(r("AggregateError"))(o,a))});return d.error&&u(d.value),l.promise}}),rxe}var oxe,ixe={};var axe,sxe,lxe,cxe,uxe,dxe,fxe,hxe,pxe,mxe={};function gxe(){if(cxe)return lxe;cxe=1;var e,t,r,n=jge(),o=jbe(),i=Ive(),a=yve(),s=$be(),l=aye(),c=s("iterator"),u=!1;[].keys&&("next"in(r=[].keys())?(t=o(o(r)))!==Object.prototype&&(e=t):u=!0);var d=null==e||n(function(){var t={};return e[c].call(t)!==t});return d&&(e={}),l&&!d||a(e,c)||i(e,c,function(){return this}),lxe={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:u}}function vxe(){if(hxe)return fxe;hxe=1;var e=Mbe(),t=function(){if(dxe)return uxe;dxe=1;var e=gxe().IteratorPrototype,t=qbe(),r=dve(),n=Bwe(),o=Gbe(),i=function(){return this};return uxe=function(a,s,l){var c=s+" Iterator";return a.prototype=t(e,{next:r(1,l)}),n(a,c,!1,!0),o[c]=i,a}}(),r=jbe(),n=Lbe(),o=Bwe(),i=Ive(),a=fye(),s=$be(),l=aye(),c=Gbe(),u=gxe(),d=u.IteratorPrototype,f=u.BUGGY_SAFARI_ITERATORS,h=s("iterator"),p="keys",m="values",g="entries",v=function(){return this};return fxe=function(s,u,y,b,w,x,k){t(y,u,b);var S,_,C,T=function(e){if(e===w&&B)return B;if(!f&&e in P)return P[e];switch(e){case p:case m:case g:return function(){return new y(this,e)}}return function(){return new y(this)}},E=u+" Iterator",A=!1,P=s.prototype,I=P[h]||P["@@iterator"]||w&&P[w],B=!f&&I||T(w),N="Array"==u&&P.entries||I;if(N&&(S=r(N.call(new s)),d!==Object.prototype&&S.next&&(l||r(S)===d||(n?n(S,d):"function"!=typeof S[h]&&i(S,h,v)),o(S,E,!0,!0),l&&(c[E]=v))),w==m&&I&&I.name!==m&&(A=!0,B=function(){return I.call(this)}),l&&!k||P[h]===B||i(P,h,B),c[u]=B,w)if(_={values:T(m),keys:x?B:T(p),entries:T(g)},k)for(C in _)(f||A||!(C in P))&&a(P,C,_[C]);else e({target:u,proto:!0,forced:f||A},_);return _}}function yxe(){if(pxe)return mxe;pxe=1;var e=function(){if(sxe)return axe;sxe=1;var e=Pye(),t=hve(),r=function(r){return function(n,o){var i,a,s=String(t(n)),l=e(o),c=s.length;return l<0||l>=c?r?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?r?s.charAt(l):i:r?s.slice(l,l+2):a-56320+(i-55296<<10)+65536}};return axe={codeAt:r(!1),charAt:r(!0)}}().charAt,t=dye(),r=vxe(),n="String Iterator",o=t.set,i=t.getterFor(n);return r(String,"String",function(e){o(this,{type:n,string:String(e),index:0})},function(){var t,r=i(this),n=r.string,o=r.index;return o>=n.length?{value:void 0,done:!0}:(t=e(n,o),r.index+=t.length,{value:t,done:!1})}),mxe}var bxe,wxe,xxe,kxe,Sxe,_xe,Cxe,Txe,Exe,Axe={};function Pxe(){if(_xe)return Sxe;_xe=1;var e=pve(),t=function(){if(kxe)return xxe;kxe=1;var e=$be(),t=qbe(),r=Pve(),n=e("unscopables"),o=Array.prototype;return null==o[n]&&r.f(o,n,{configurable:!0,value:t(null)}),xxe=function(e){o[n][e]=!0}}(),r=Gbe(),n=dye(),o=vxe(),i="Array Iterator",a=n.set,s=n.getterFor(i);return Sxe=o(Array,"Array",function(t,r){a(this,{type:i,target:e(t),index:0,kind:r})},function(){var e=s(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),r.Arguments=r.Array,t("keys"),t("values"),t("entries"),Sxe}function Ixe(){if(Cxe)return Axe;Cxe=1;var e=Nge(),t=wxe?bxe:(wxe=1,bxe={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=Pxe(),n=Ive(),o=$be(),i=o("iterator"),a=o("toStringTag"),s=r.values;for(var l in t){var c=e[l],u=c&&c.prototype;if(u){if(u[i]!==s)try{n(u,i,s)}catch(f){u[i]=s}if(u[a]||n(u,a,l),t[l])for(var d in r)if(u[d]!==r[d])try{n(u,d,r[d])}catch(f){u[d]=r[d]}}}return Axe}function Bxe(){if(Exe)return Txe;Exe=1,Zbe(),owe(),Xwe(),exe(),nxe(),function(){if(oxe)return ixe;oxe=1;var e=Mbe(),t=aye(),r=Iwe(),n=jge(),o=pye(),i=Nwe(),a=Kwe(),s=fye();if(e({target:"Promise",proto:!0,real:!0,forced:!!r&&n(function(){r.prototype.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=i(this,o("Promise")),r="function"==typeof e;return this.then(r?function(r){return a(t,e()).then(function(){return r})}:e,r?function(r){return a(t,e()).then(function(){throw r})}:e)}}),!t&&"function"==typeof r){var l=o("Promise").prototype.finally;r.prototype.finally!==l&&s(r.prototype,"finally",l,{unsafe:!0})}}(),yxe(),Ixe();var e=hye();return Txe=e.Promise}var Nxe;var Dxe;var zxe,Oxe={};var Rxe,Mxe,jxe;function Lxe(){if(jxe)return Mxe;jxe=1;var e=Bxe();return Nxe||(Nxe=1,Zbe()),Dxe||(Dxe=1,exe()),function(){if(zxe)return Oxe;zxe=1;var e=Mbe(),t=Ywe(),r=Jwe();e({target:"Promise",stat:!0},{try:function(e){var n=t.f(this),o=r(e);return(o.error?n.reject:n.resolve)(o.value),n.promise}})}(),Rxe||(Rxe=1,nxe()),Mxe=e}var Fxe,Vxe={};var qxe,Hxe={},Uxe={},Wxe={},$xe={};function Gxe(){if(qxe)return $xe;qxe=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 $xe.root=n,function(){if(!n)throw new Error("RxJS could not find any global context (window, self, global)")}(),$xe}var Yxe,Kxe={},Jxe={},Xxe={};function Qxe(){if(Yxe)return Xxe;return Yxe=1,Xxe.isFunction=function(e){return"function"==typeof e},Xxe}var Zxe,eke={},tke={};function rke(){return Zxe||(Zxe=1,tke.isArray=Array.isArray||function(e){return e&&"number"==typeof e.length}),tke}var nke,oke={};function ike(){if(nke)return oke;return nke=1,oke.isObject=function(e){return null!=e&&"object"==typeof e},oke}var ake,ske,lke={},cke={};function uke(){return ake||(ake=1,cke.errorObject={e:{}}),cke}function dke(){if(ske)return lke;ske=1;var e,t=uke();function r(){try{return e.apply(this,arguments)}catch(bze){return t.errorObject.e=bze,t.errorObject}}return lke.tryCatch=function(t){return e=t,r},lke}var fke,hke,pke={};function mke(){if(hke)return eke;hke=1;var e=rke(),t=ike(),r=Qxe(),n=dke(),o=uke(),i=function(){if(fke)return pke;fke=1;var e=pke&&pke.__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 pke.UnsubscriptionError=t,pke}(),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 eke.Subscription=a,eke}var gke,vke={};function yke(){return gke||(gke=1,vke.empty={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}),vke}var bke,wke,xke,kke={};function Ske(){return bke||(bke=1,e=kke,t=Gxe().root.Symbol,e.rxSubscriber="function"==typeof t&&"function"==typeof t.for?t.for("rxSubscriber"):"@@rxSubscriber",e.$$rxSubscriber=e.rxSubscriber),kke;var e,t}function _ke(){if(wke)return Jxe;wke=1;var e=Jxe&&Jxe.__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=Qxe(),r=mke(),n=yke(),o=Ske(),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);Jxe.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 Jxe}var Cke,Tke={};function Eke(){return Cke||(Cke=1,function(e){var t=Gxe();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}(Tke)),Tke}var Ake,Pke,Ike,Bke={},Nke={};function Dke(){if(Pke)return Bke;Pke=1;var e=(Ake||(Ake=1,Nke.noop=function(){}),Nke);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 Bke.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r-0]=arguments[r];return t(e)},Bke.pipeFromArray=t,Bke}function zke(){if(Ike)return Wxe;Ike=1;var e=Gxe(),t=function(){if(xke)return Kxe;xke=1;var e=_ke(),t=Ske(),r=yke();return Kxe.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)},Kxe}(),r=Eke(),n=Dke(),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 Wxe.Observable=o,Wxe}var Oke,Rke={};function Mke(){if(Oke)return Rke;Oke=1;var e=Rke&&Rke.__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 Rke.ObjectUnsubscribedError=t,Rke}var jke,Lke,Fke,Vke={};function qke(){if(Lke)return Uxe;Lke=1;var e=Uxe&&Uxe.__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=zke(),r=_ke(),n=mke(),o=Mke(),i=function(){if(jke)return Vke;jke=1;var e=Vke&&Vke.__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}(mke().Subscription);return Vke.SubjectSubscription=t,Vke}(),a=Ske(),s=function(t){function r(e){t.call(this,e),this.destination=e}return e(r,t),r}(r.Subscriber);Uxe.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);Uxe.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 Uxe.AnonymousSubject=c,Uxe}function Hke(){if(Fke)return Hxe;Fke=1;var e=Hxe&&Hxe.__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=qke(),r=Mke(),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 Hxe.BehaviorSubject=n,Hxe}var Uke,Wke,$ke={},Gke={},Yke={};function Kke(){if(Wke)return Gke;Wke=1;var e=Gke&&Gke.__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=Gxe(),r=function(){if(Uke)return Yke;Uke=1;var e=Yke&&Yke.__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}(mke().Subscription);return Yke.Action=t,Yke}(),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(bze){r=!0,n=!!bze&&bze||new Error(bze)}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 Gke.AsyncAction=n,Gke}var Jke,Xke,Qke,Zke={},eSe={};function tSe(){if(Xke)return Zke;Xke=1;var e=Zke&&Zke.__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(Jke)return eSe;Jke=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 eSe.Scheduler=e,eSe}().Scheduler);return Zke.AsyncScheduler=t,Zke}function rSe(){if(Qke)return $ke;Qke=1;var e=Kke(),t=tSe();return $ke.async=new t.AsyncScheduler(e.AsyncAction),$ke}function nSe(e){this.message=e}nSe.prototype=new Error,nSe.prototype.name="InvalidCharacterError";var oSe="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new nSe("'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 iSe(e){this.message=e}iSe.prototype=new Error,iSe.prototype.name="InvalidTokenError";const aSe=n(Object.freeze(Object.defineProperty({__proto__:null,InvalidTokenError:iSe,default:function(e,t){if("string"!=typeof e)throw new iSe("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(oSe(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 oSe(t)}}(e.split(".")[r]))}catch(n){throw new iSe("Invalid token specified: "+n.message)}}},Symbol.toStringTag,{value:"Module"})));var sSe,lSe={},cSe={},uSe={},dSe={};function fSe(){if(sSe)return dSe;sSe=1;var e=dSe&&dSe.__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}(_ke().Subscriber);return dSe.OuterSubscriber=t,dSe}var hSe,pSe={},mSe={};function gSe(){return hSe||(hSe=1,mSe.isArrayLike=function(e){return e&&"number"==typeof e.length}),mSe}var vSe,ySe={};function bSe(){if(vSe)return ySe;return vSe=1,ySe.isPromise=function(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then},ySe}var wSe,xSe={};function kSe(){return wSe||(wSe=1,function(e){var t=Gxe();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}(xSe)),xSe}var SSe,_Se,CSe,TSe,ESe,ASe={};function PSe(){if(_Se)return pSe;_Se=1;var e=Gxe(),t=gSe(),r=bSe(),n=ike(),o=zke(),i=kSe(),a=function(){if(SSe)return ASe;SSe=1;var e=ASe&&ASe.__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}(_ke().Subscriber);return ASe.InnerSubscriber=t,ASe}(),s=Eke();return pSe.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},pSe}function ISe(){if(TSe)return cSe;TSe=1;var e=function(){if(CSe)return uSe;CSe=1;var e=uSe&&uSe.__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=fSe(),r=PSe();uSe.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 uSe}();return cSe._catch=function(t){return e.catchError(t)(this)},cSe}var BSe,NSe={},DSe={},zSe={},OSe={},RSe={};function MSe(){if(BSe)return RSe;BSe=1;var e=RSe&&RSe.__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}(zke().Observable);return RSe.ScalarObservable=t,RSe}var jSe,LSe={};function FSe(){if(jSe)return LSe;jSe=1;var e=LSe&&LSe.__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}(zke().Observable);return LSe.EmptyObservable=t,LSe}var VSe,qSe,HSe,USe,WSe,$Se={};function GSe(){if(qSe)return OSe;qSe=1;var e=OSe&&OSe.__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=zke(),r=MSe(),n=FSe(),o=(VSe||(VSe=1,$Se.isScheduler=function(e){return e&&"function"==typeof e.schedule}),$Se),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 OSe.ArrayObservable=i,OSe}function YSe(){if(USe)return DSe;USe=1;var e=function(){if(HSe)return zSe;HSe=1;var e=zSe&&zSe.__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=GSe(),r=rke(),n=fSe(),o=PSe(),i={};zSe.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}();zSe.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 zSe.CombineLatestSubscriber=s,zSe}();return DSe.combineLatest=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];return e.combineLatest.apply(void 0,t)(this)},DSe}var KSe,JSe,XSe,QSe={},ZSe={},e_e={};function t_e(){if(JSe)return ZSe;JSe=1;var e=function(){if(KSe)return e_e;KSe=1;var e=e_e&&e_e.__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=_ke();e_e.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 e_e}();return ZSe.count=function(t){return e.count(t)(this)},ZSe}var r_e,n_e={},o_e={},i_e={},a_e={};var s_e,l_e,c_e,u_e,d_e={};function f_e(){if(s_e)return d_e;s_e=1;var e=zke(),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 d_e.Notification=t,d_e}function h_e(){if(l_e)return i_e;l_e=1;var e=i_e&&i_e.__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=rSe(),r=(r_e||(r_e=1,a_e.isDate=function(e){return e instanceof Date&&!isNaN(+e)}),a_e),n=_ke(),o=f_e();i_e.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 i_e}function p_e(){if(u_e)return n_e;u_e=1;var e=zke(),t=function(){if(c_e)return o_e;c_e=1;var e=rSe(),t=h_e();return o_e.delay=function(r,n){return void 0===n&&(n=e.async),t.delay(r,n)(this)},o_e}();return e.Observable.prototype.delay=t.delay,n_e}var m_e,g_e,v_e,y_e={},b_e={},w_e={};function x_e(){if(g_e)return b_e;g_e=1;var e=function(){if(m_e)return w_e;m_e=1;var e=w_e&&w_e.__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=_ke();w_e.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 w_e}();return b_e._do=function(t,r,n){return e.tap(t,r,n)(this)},b_e}var k_e,S_e,__e,C_e={},T_e={},E_e={};function A_e(){if(S_e)return T_e;S_e=1;var e=function(){if(k_e)return E_e;k_e=1;var e=E_e&&E_e.__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=_ke();E_e.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 E_e}();return T_e.filter=function(t,r){return e.filter(t,r)(this)},T_e}var P_e,I_e,B_e,N_e={},D_e={},z_e={};function O_e(){if(P_e)return z_e;P_e=1;var e=z_e&&z_e.__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=_ke();z_e.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}();z_e.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 z_e}function R_e(){if(B_e)return N_e;B_e=1;var e=zke(),t=function(){if(I_e)return D_e;I_e=1;var e=O_e();return D_e.map=function(t,r){return e.map(t,r)(this)},D_e}();return e.Observable.prototype.map=t.map,N_e}var M_e,j_e,L_e,F_e={},V_e={},q_e={};function H_e(){if(M_e)return q_e;M_e=1;var e=q_e&&q_e.__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=PSe(),r=fSe();q_e.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}();q_e.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 q_e.MergeMapSubscriber=o,q_e}function U_e(){if(L_e)return F_e;L_e=1;var e=zke(),t=function(){if(j_e)return V_e;j_e=1;var e=H_e();return V_e.mergeMap=function(t,r,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),e.mergeMap(t,r,n)(this)},V_e}();return e.Observable.prototype.mergeMap=t.mergeMap,e.Observable.prototype.flatMap=t.mergeMap,F_e}var W_e,$_e,G_e,Y_e={},K_e={},J_e={};function X_e(){if($_e)return K_e;$_e=1;var e=function(){if(W_e)return J_e;W_e=1;var e=H_e();return J_e.concatMap=function(t,r){return e.mergeMap(t,r,1)},J_e}();return K_e.concatMap=function(t,r){return e.concatMap(t,r)(this)},K_e}var Q_e,Z_e,eCe,tCe={},rCe={},nCe={};function oCe(){if(Z_e)return rCe;Z_e=1;var e=function(){if(Q_e)return nCe;Q_e=1;var e=nCe&&nCe.__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=qke(),r=dke(),n=uke(),o=fSe(),i=PSe();nCe.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 nCe}();return rCe.retryWhen=function(t){return e.retryWhen(t)(this)},rCe}var iCe,aCe,sCe,lCe,cCe,uCe,dCe={},fCe={},hCe={},pCe={},mCe={},gCe={};function vCe(){if(iCe)return gCe;iCe=1;var e=gCe&&gCe.__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=_ke();gCe.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 gCe}function yCe(){if(sCe)return pCe;sCe=1;var e=function(){if(aCe)return mCe;aCe=1;var e=mCe&&mCe.__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=qke(),r=zke(),n=_ke(),o=mke(),i=vCe(),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);mCe.ConnectableObservable=a;var s=a.prototype;mCe.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),mCe}();pCe.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 pCe.MulticastOperator=t,pCe}function bCe(){if(cCe)return fCe;cCe=1;var e=function(){if(lCe)return hCe;lCe=1;var e=yCe(),t=vCe(),r=qke();function n(){return new r.Subject}return hCe.share=function(){return function(r){return t.refCount()(e.multicast(n)(r))}},hCe}();return fCe.share=function(){return e.share()(this)},fCe}var wCe,xCe,kCe,SCe,_Ce={},CCe={},TCe={},ECe={};function ACe(){if(xCe)return TCe;xCe=1;var e=TCe&&TCe.__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=_ke(),r=function(){if(wCe)return ECe;wCe=1;var e=ECe&&ECe.__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 ECe.ArgumentOutOfRangeError=t,ECe}(),n=FSe();TCe.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 TCe}function PCe(){if(SCe)return _Ce;SCe=1;var e=zke(),t=function(){if(kCe)return CCe;kCe=1;var e=ACe();return CCe.take=function(t){return e.take(t)(this)},CCe}();return e.Observable.prototype.take=t.take,_Ce}var ICe,BCe,NCe,DCe={},zCe={},OCe={};function RCe(){if(ICe)return OCe;ICe=1;var e=OCe&&OCe.__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=Gxe(),r=dke(),n=uke(),o=zke(),i=_ke(),a=O_e();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})}OCe.ajaxGet=l,OCe.ajaxPost=c,OCe.ajaxDelete=u,OCe.ajaxPut=d,OCe.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}))}OCe.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(bze){}return new t.root.ActiveXObject(e)}catch(bze){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);OCe.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);OCe.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)}}();OCe.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}}OCe.AjaxError=y;var w=function(t){function r(e,r){t.call(this,"ajax timeout",e,r)}return e(r,t),r}(y);return OCe.AjaxTimeoutError=w,OCe}function MCe(){if(NCe)return DCe;NCe=1;var e=zke(),t=function(){if(BCe)return zCe;BCe=1;var e=RCe();return zCe.ajax=e.AjaxObservable.create,zCe}();return e.Observable.ajax=t.ajax,DCe}var jCe,LCe,FCe={},VCe={};function qCe(){if(LCe)return FCe;LCe=1;var e=zke(),t=function(){if(jCe)return VCe;jCe=1;var e=FSe();return VCe.empty=e.EmptyObservable.create,VCe}();return e.Observable.empty=t.empty,FCe}var HCe,UCe={},WCe={},$Ce={},GCe={};var YCe,KCe={};function JCe(){if(YCe)return KCe;YCe=1;var e=KCe&&KCe.__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=Gxe(),r=zke(),n=kSe(),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);KCe.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 KCe}var XCe,QCe={};var ZCe,eTe,tTe,rTe,nTe={};function oTe(){if(eTe)return $Ce;eTe=1;var e=$Ce&&$Ce.__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=rke(),r=gSe(),n=bSe(),o=function(){if(HCe)return GCe;HCe=1;var e=GCe&&GCe.__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=Gxe(),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}(zke().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 GCe.PromiseObservable=r,GCe}(),i=JCe(),a=GSe(),s=function(){if(XCe)return QCe;XCe=1;var e=QCe&&QCe.__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=zke(),r=MSe(),n=FSe(),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 QCe.ArrayLikeObservable=o,QCe}(),l=kSe(),c=zke(),u=function(){if(ZCe)return nTe;ZCe=1;var e=nTe&&nTe.__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=_ke(),r=f_e();nTe.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}();nTe.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);nTe.ObserveOnSubscriber=o;var i=function(){return function(e,t){this.notification=e,this.destination=t}}();return nTe.ObserveOnMessage=i,nTe}(),d=Eke(),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 $Ce.FromObservable=f,$Ce}function iTe(){if(rTe)return UCe;rTe=1;var e=zke(),t=function(){if(tTe)return WCe;tTe=1;var e=oTe();return WCe.from=e.FromObservable.create,WCe}();return e.Observable.from=t.from,UCe}var aTe,sTe,lTe,cTe,uTe={},dTe={},fTe={},hTe={};function pTe(){if(sTe)return fTe;sTe=1;var e=fTe&&fTe.__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(aTe)return hTe;aTe=1;var e=rke();return hTe.isNumeric=function(t){return!e.isArray(t)&&t-parseFloat(t)+1>=0},hTe}(),r=zke(),n=rSe(),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 fTe.IntervalObservable=o,fTe}function mTe(){if(cTe)return uTe;cTe=1;var e=zke(),t=function(){if(lTe)return dTe;lTe=1;var e=pTe();return dTe.interval=e.IntervalObservable.create,dTe}();return e.Observable.interval=t.interval,uTe}var gTe,vTe,yTe={},bTe={};function wTe(){if(vTe)return yTe;vTe=1;var e=zke(),t=function(){if(gTe)return bTe;gTe=1;var e=GSe();return bTe.of=e.ArrayObservable.of,bTe}();return e.Observable.of=t.of,yTe}var xTe,kTe,STe,_Te={},CTe={},TTe={};function ETe(){if(kTe)return CTe;kTe=1;var e=function(){if(xTe)return TTe;xTe=1;var e=TTe&&TTe.__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}(zke().Observable);return TTe.ErrorObservable=t,TTe}();return CTe._throw=e.ErrorObservable.create,CTe}var ATe,PTe={},ITe={},BTe={exports:{}},NTe={exports:{}};var DTe,zTe={exports:{}};function OTe(){return DTe||(DTe=1,(e=zTe).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),zTe.exports;var e}var RTe,MTe,jTe={exports:{}},LTe={exports:{}};function FTe(){return RTe||(RTe=1,(e=LTe).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),LTe.exports;var e}function VTe(){return MTe||(MTe=1,e=jTe,t=FTe(),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),jTe.exports;var e,t}var qTe,HTe,UTe,WTe,$Te={exports:{}};function GTe(){return HTe||(HTe=1,e=BTe,t=function(){return ATe||(ATe=1,(e=NTe).exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports),NTe.exports;var e}(),r=OTe(),n=VTe(),o=function(){return qTe||(qTe=1,(e=$Te).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),$Te.exports;var e}(),e.exports=function(e){return t(e)||r(e)||n(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports),BTe.exports;var e,t,r,n,o}function YTe(){return WTe||(WTe=1,function(e){var t=age();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((UTe||(UTe=1,function(e){var t=age();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:n.slice(1).reverse().join(".")}}return{extname:"",name:e}}return{extname:"",name:""}};var r=t(GTe())}(ITe)),ITe))}(PTe)),PTe}var KTe,JTe,XTe,QTe={},ZTe={exports:{}};function eEe(){return KTe||(KTe=1,function(e){var t=cge().default;function r(){e.exports=r=function(){return o},e.exports.__esModule=!0,e.exports.default=e.exports;var n,o={},i=Object.prototype,a=i.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(O){f=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var o=t&&t.prototype instanceof w?t:w,i=Object.create(o.prototype),a=new D(n||[]);return s(i,"_invoke",{value:P(e,r,a)}),i}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(n){return{type:"throw",arg:n}}}o.wrap=h;var m="suspendedStart",g="suspendedYield",v="executing",y="completed",b={};function w(){}function x(){}function k(){}var S={};f(S,c,function(){return this});var _=Object.getPrototypeOf,C=_&&_(_(z([])));C&&C!==i&&a.call(C,c)&&(S=C);var T=k.prototype=w.prototype=Object.create(S);function E(e){["next","throw","return"].forEach(function(t){f(e,t,function(e){return this._invoke(t,e)})})}function A(e,r){function n(o,i,s,l){var c=p(e[o],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==t(d)&&a.call(d,"__await")?r.resolve(d.__await).then(function(e){n("next",e,s,l)},function(e){n("throw",e,s,l)}):r.resolve(d).then(function(e){u.value=e,s(u)},function(e){return n("throw",e,s,l)})}l(c.arg)}var o;s(this,"_invoke",{value:function(e,t){function i(){return new r(function(r,o){n(e,t,r,o)})}return o=o?o.then(i,i):i()}})}function P(e,t,r){var o=m;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:n,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=I(s,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var c=p(e,t,r);if("normal"===c.type){if(o=r.done?y:g,c.arg===b)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=y,r.method="throw",r.arg=c.arg)}}}function I(e,t){var r=t.method,o=e.iterator[r];if(o===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=n,I(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var i=p(o,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,b;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,b):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function B(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(B,this),this.reset(!0)}function z(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o<e.length;)if(a.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return i.next=i}}throw new TypeError(t(e)+" is not iterable")}return x.prototype=k,s(T,"constructor",{value:k,configurable:!0}),s(k,"constructor",{value:x,configurable:!0}),x.displayName=f(k,d,"GeneratorFunction"),o.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,f(e,d,"GeneratorFunction")),e.prototype=Object.create(T),e},o.awrap=function(e){return{__await:e}},E(A.prototype),f(A.prototype,u,function(){return this}),o.AsyncIterator=A,o.async=function(e,t,r,n,i){void 0===i&&(i=Promise);var a=new A(h(e,t,r,n),i);return o.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},E(T),f(T,d,"Generator"),f(T,c,function(){return this}),f(T,"toString",function(){return"[object Generator]"}),o.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},o.values=z,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(N),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return s.type="throw",s.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:z(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),b}},o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(ZTe)),ZTe.exports}var tEe,rEe={exports:{}},nEe={exports:{}};var oEe,iEe,aEe,sEe={exports:{}},lEe={exports:{}};function cEe(){return iEe||(iEe=1,e=sEe,t=function(){return oEe||(oEe=1,(e=lEe).exports=function(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")},e.exports.__esModule=!0,e.exports.default=e.exports),lEe.exports;var e}(),e.exports=function(e,r){return e.get(t(e,r))},e.exports.__esModule=!0,e.exports.default=e.exports),sEe.exports;var e,t}function uEe(){return aEe||(aEe=1,e=rEe,t=function(){return tEe||(tEe=1,(e=nEe).exports=function(e,t){return t.get?t.get.call(e):t.value},e.exports.__esModule=!0,e.exports.default=e.exports),nEe.exports;var e}(),r=cEe(),e.exports=function(e,n){var o=r(n,e);return t(e,o)},e.exports.__esModule=!0,e.exports.default=e.exports),rEe.exports;var e,t,r}var dEe,fEe,hEe={exports:{}},pEe={exports:{}};function mEe(){return fEe||(fEe=1,e=hEe,t=function(){return dEe||(dEe=1,(e=pEe).exports=function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}},e.exports.__esModule=!0,e.exports.default=e.exports),pEe.exports;var e}(),r=cEe(),e.exports=function(e,n,o){var i=r(n,e);return t(e,i,o),o},e.exports.__esModule=!0,e.exports.default=e.exports),hEe.exports;var e,t,r}var gEe,vEe={exports:{}},yEe={exports:{}};var bEe,wEe,xEe={exports:{}};function kEe(){return wEe||(wEe=1,e=vEe,t=function(){return gEe||(gEe=1,e=yEe,t=FTe(),e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports),yEe.exports;var e,t}(),r=OTe(),n=VTe(),o=function(){return bEe||(bEe=1,(e=xEe).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),xEe.exports;var e}(),e.exports=function(e){return t(e)||r(e)||n(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports),vEe.exports;var e,t,r,n,o}var SEe,_Ee={exports:{}};var CEe,TEe={},EEe={};var AEe,PEe,IEe={};function BEe(){return PEe||(PEe=1,function(e){const t=function(){if(CEe)return EEe;CEe=1,EEe.byteLength=function(e){var t=i(e),r=t[0],n=t[1];return 3*(r+n)/4-n},EEe.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},EEe.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,EEe}(),r=(AEe||(AEe=1,IEe.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)},IEe.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}),IEe),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 _(this,t,r);case"ascii":return T(this,t,r);case"latin1":case"binary":return E(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(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 k(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 S(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function _(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<=C)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=C));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(bze){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?_(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 k(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 C=4096;function T(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 E(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 P(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 I(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 B(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 N(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 D(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 z(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 O(e,t,n,o,i){return t=+t,n>>>=0,i||z(e,0,n,4),r.write(e,t,n,o,23,4),n+4}function R(e,t,n,o,i){return t=+t,n>>>=0,i||z(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||I(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||I(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||I(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(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||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=J(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=J(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||I(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||I(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||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||I(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||I(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||I(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||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=J(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=J(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||I(e,4,this.length),r.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),r.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),r.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(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){B(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){B(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||B(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||B(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||B(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||B(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||B(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=J(function(e,t=0){return N(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=J(function(e,t=0){return D(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);B(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);B(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||B(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||B(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||B(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||B(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||B(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=J(function(e,t=0){return N(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=J(function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeFloatLE=function(e,t,r){return O(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return R(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return R(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 M={};function j(e,t,r){M[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 M.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 M.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,r){if(Math.floor(e)!==e)throw V(e,r),new M.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new M.ERR_BUFFER_OUT_OF_BOUNDS;throw new M.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 J(e){return"undefined"==typeof BigInt?X:e}function X(){throw new Error("BigInt not supported")}}(TEe)),TEe}function NEe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var DEe,zEe={exports:{}};function OEe(){return DEe||(DEe=1,zEe.exports=function(){function e(t,r,n){function o(a,s){if(!r[a]){if(!t[a]){if(!s&&NEe)return NEe(a);if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[a]={exports:{}};t[a][0].call(c.exports,function(e){return o(t[a][1][e]||e)},c,c.exports,e,t,r,n)}return r[a].exports}for(var i=NEe,a=0;a<n.length;a++)o(n[a]);return o}return e}()({1:[function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function a(e){try{l(n.next(e))}catch(bze){i(bze)}}function s(e){try{l(n.throw(e))}catch(bze){i(bze)}}function l(e){e.done?r(e.value):o(e.value).then(a,s)}l((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(bze){s=[6,bze],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadAssembler=void 0;var i=e("../subscribableStream"),a=e("../payloads"),s=e("../contentStream"),l=function(){function e(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}return e.prototype.getPayloadStream=function(){return this.stream||(this.stream=this.createPayloadStream()),this.stream},e.prototype.onReceive=function(e,t,r){this.end=e.end,e.payloadType===a.PayloadTypes.response||e.payloadType===a.PayloadTypes.request?this.process(t).then().catch():e.end&&t.end()},e.prototype.close=function(){this.streamManager.closeStream(this.id)},e.prototype.createPayloadStream=function(){return new i.SubscribableStream},e.prototype.payloadFromJson=function(e){return JSON.parse(e.charCodeAt(0)===this._byteOrderMark?e.slice(1):e)},e.prototype.stripBOM=function(e){return e.charCodeAt(0)===this._byteOrderMark?e.slice(1):e},e.prototype.process=function(e){return n(this,void 0,void 0,function(){var t,r;return o(this,function(n){switch(n.label){case 0:return(t=e.read(e.length))?(r=t.toString(this._utf),this.payloadType!==a.PayloadTypes.request?[3,2]:[4,this.processRequest(r)]):[2];case 1:return n.sent(),[3,4];case 2:return this.payloadType!==a.PayloadTypes.response?[3,4]:[4,this.processResponse(r)];case 3:n.sent(),n.label=4;case 4:return[2]}})})},e.prototype.processResponse=function(e){return n(this,void 0,void 0,function(){var t,r;return o(this,function(n){switch(n.label){case 0:return t=this.payloadFromJson(this.stripBOM(e)),r={streams:[],statusCode:t.statusCode},[4,this.processStreams(t,r)];case 1:return n.sent(),[2]}})})},e.prototype.processRequest=function(e){return n(this,void 0,void 0,function(){var t,r;return o(this,function(n){switch(n.label){case 0:return t=this.payloadFromJson(e),r={streams:[],path:t.path,verb:t.verb},[4,this.processStreams(t,r)];case 1:return n.sent(),[2]}})})},e.prototype.processStreams=function(e,t){var r;return n(this,void 0,void 0,function(){var n=this;return o(this,function(o){switch(o.label){case 0:return null===(r=e.streams)||void 0===r||r.forEach(function(e){var r,o=null!==(r=e.type)&&void 0!==r?r:e.contentType,i=n.streamManager.getPayloadAssembler(e.id);i.payloadType=o,i.contentLength=e.length,t.streams.push(new s.ContentStream(e.id,i))}),[4,this._onCompleted(this.id,t)];case 1:return o.sent(),[2]}})})},e}();r.PayloadAssembler=l},{"../contentStream":2,"../payloads":16,"../subscribableStream":27}],2:[function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function a(e){try{l(n.next(e))}catch(bze){i(bze)}}function s(e){try{l(n.throw(e))}catch(bze){i(bze)}}function l(e){e.done?r(e.value):o(e.value).then(a,s)}l((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(bze){s=[6,bze],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};Object.defineProperty(r,"__esModule",{value:!0}),r.ContentStream=void 0;var i=function(){function e(e,t){if(!t)throw Error("Null Argument Exception");this.id=e,this.assembler=t}return Object.defineProperty(e.prototype,"contentType",{get:function(){return this.assembler.payloadType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.assembler.contentLength},enumerable:!1,configurable:!0}),e.prototype.getStream=function(){return this.stream||(this.stream=this.assembler.getPayloadStream()),this.stream},e.prototype.cancel=function(){this.assembler.close()},e.prototype.readAsString=function(){return n(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,this.readAll()];case 1:return[2,(e.sent().bufferArray||[]).map(function(e){return e.toString("utf8")}).join("")]}})})},e.prototype.readAsJson=function(){return n(this,void 0,void 0,function(){var e;return o(this,function(t){switch(t.label){case 0:return[4,this.readAsString()];case 1:return e=t.sent(),[2,JSON.parse(e)]}})})},e.prototype.readAll=function(){return n(this,void 0,void 0,function(){var e,t,r,n,i=this;return o(this,function(o){switch(o.label){case 0:for(e=[],t=0,r=this.getStream();t<r.length;)n=r.read(r.length),e.push(n),t+=n.length;return t<this.length?[4,new Promise(function(n){var o=function(r){return function(o){e.push(o),(t+=o.length)===r.length&&n(!0)}};r.subscribe(o(i))})]:[3,2];case 1:o.sent(),o.label=2;case 2:return[2,{bufferArray:e,size:t}]}})})},e}();r.ContentStream=i},{}],3:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.CancelDisassembler=void 0;var n=function(){function e(e,t,r){this.sender=e,this.id=t,this.payloadType=r}return e.prototype.disassemble=function(){var e={payloadType:this.payloadType,payloadLength:0,id:this.id,end:!0};this.sender.sendPayload(e)},e}();r.CancelDisassembler=n},{}],4:[function(e,t,r){var n=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=this&&this.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function a(e){try{l(n.next(e))}catch(bze){i(bze)}}function s(e){try{l(n.throw(e))}catch(bze){i(bze)}}function l(e){e.done?r(e.value):o(e.value).then(a,s)}l((n=n.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(bze){s=[6,bze],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};Object.defineProperty(r,"__esModule",{value:!0}),r.HttpContentStreamDisassembler=void 0;var a=e("./payloadDisassembler"),s=e("../payloads"),l=function(e){function t(t,r){var n=e.call(this,t,r.id)||this;return n.payloadType=s.PayloadTypes.stream,n.contentStream=r,n}return n(t,e),t.prototype.getStream=function(){return o(this,void 0,void 0,function(){var e;return i(this,function(t){return[2,{stream:e=this.contentStream.content.getStream(),streamLength:e.length}]})})},t}(a.PayloadDisassembler);r.HttpContentStreamDisassembler=l},{"../payloads":16,"./payloadDisassembler":5}],5:[function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function a(e){try{l(n.next(e))}catch(bze){i(bze)}}function s(e){try{l(n.throw(e))}catch(bze){i(bze)}}function l(e){e.done?r(e.value):o(e.value).then(a,s)}l((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(bze){s=[6,bze],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadDisassembler=void 0;var i=e("../subscribableStream"),a=function(){function e(e,t){this.sender=e,this.id=t}return e.serialize=function(e){var t=new i.SubscribableStream;return t.write(JSON.stringify(e)),t.end(),{stream:t,streamLength:t.length}},e.prototype.disassemble=function(){return n(this,void 0,void 0,function(){var e,t,r;return o(this,function(n){switch(n.label){case 0:return[4,this.getStream()];case 1:return e=n.sent(),t=e.stream,r=e.streamLength,this.stream=t,this.streamLength=r,[2,this.send()]}})})},e.prototype.send=function(){return n(this,void 0,void 0,function(){var e;return o(this,function(t){return e={payloadType:this.payloadType,payloadLength:this.streamLength,id:this.id,end:!0},this.sender.sendPayload(e,this.stream),[2]})})},e}();r.PayloadDisassembler=a},{"../subscribableStream":27}],6:[function(e,t,r){var n=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=this&&this.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function a(e){try{l(n.next(e))}catch(bze){i(bze)}}function s(e){try{l(n.throw(e))}catch(bze){i(bze)}}function l(e){e.done?r(e.value):o(e.value).then(a,s)}l((n=n.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(bze){s=[6,bze],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};Object.defineProperty(r,"__esModule",{value:!0}),r.RequestDisassembler=void 0;var a=e("../payloads/payloadTypes"),s=e("./payloadDisassembler"),l=function(e){function t(t,r,n){var o=e.call(this,t,r)||this;return o.request=n,o.payloadType=a.PayloadTypes.request,o}return n(t,e),t.prototype.getStream=function(){var e,t,r,n;return o(this,void 0,void 0,function(){var o;return i(this,function(i){return o={verb:null===(e=this.request)||void 0===e?void 0:e.verb,path:null===(t=this.request)||void 0===t?void 0:t.path,streams:[]},null===(n=null===(r=this.request)||void 0===r?void 0:r.streams)||void 0===n||n.forEach(function(e){o.streams.push(e.description)}),[2,s.PayloadDisassembler.serialize(o)]})})},t}(s.PayloadDisassembler);r.RequestDisassembler=l},{"../payloads/payloadTypes":19,"./payloadDisassembler":5}],7:[function(e,t,r){var n=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=this&&this.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function a(e){try{l(n.next(e))}catch(bze){i(bze)}}function s(e){try{l(n.throw(e))}catch(bze){i(bze)}}function l(e){e.done?r(e.value):o(e.value).then(a,s)}l((n=n.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(bze){s=[6,bze],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};Object.defineProperty(r,"__esModule",{value:!0}),r.ResponseDisassembler=void 0;var a=e("../payloads/payloadTypes"),s=e("./payloadDisassembler"),l=function(e){function t(t,r,n){var o=e.call(this,t,r)||this;return o.payloadType=a.PayloadTypes.response,o.response=n,o}return n(t,e),t.prototype.getStream=function(){var e;return o(this,void 0,void 0,function(){var t;return i(this,function(r){return t={statusCode:this.response.statusCode,streams:[]},null===(e=this.response.streams)||void 0===e||e.forEach(function(e){var r=e.description;t.streams.push({id:r.id,contentType:r.type,length:r.length})}),[2,s.PayloadDisassembler.serialize(t)]})})},t}(s.PayloadDisassembler);r.ResponseDisassembler=l},{"../payloads/payloadTypes":19,"./payloadDisassembler":5}],8:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.HttpContent=r.HttpContentStream=void 0;var n=e("./utilities/protocol-base"),o=function(){function e(e){var t,r,o,i,a,s;this.content=e,this.id=(0,n.generateGuid)(),this.description={id:this.id,type:null!==(o=null===(r=null===(t=this.content)||void 0===t?void 0:t.headers)||void 0===r?void 0:r.type)&&void 0!==o?o:"unknown",length:null!==(s=null===(a=null===(i=this.content)||void 0===i?void 0:i.headers)||void 0===a?void 0:a.contentLength)&&void 0!==s?s:0}}return e}();r.HttpContentStream=o;var i=function(){function e(e,t){this.headers=e,this.stream=t}return e.prototype.getStream=function(){return this.stream},e}();r.HttpContent=i},{"./utilities/protocol-base":28}],9:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WebSocketClient=r.BrowserWebSocket=r.SubscribableStream=r.StreamingResponse=r.StreamingRequest=r.RequestHandler=r.HttpContent=r.ContentStream=void 0;var n=e("./contentStream");Object.defineProperty(r,"ContentStream",{enumerable:!0,get:function(){return n.ContentStream}});var o=e("./httpContentStream");Object.defineProperty(r,"HttpContent",{enumerable:!0,get:function(){return o.HttpContent}});var i=e("./requestHandler");Object.defineProperty(r,"RequestHandler",{enumerable:!0,get:function(){return i.RequestHandler}});var a=e("./streamingRequest");Object.defineProperty(r,"StreamingRequest",{enumerable:!0,get:function(){return a.StreamingRequest}});var s=e("./streamingResponse");Object.defineProperty(r,"StreamingResponse",{enumerable:!0,get:function(){return s.StreamingResponse}});var l=e("./subscribableStream");Object.defineProperty(r,"SubscribableStream",{enumerable:!0,get:function(){return l.SubscribableStream}});var c=e("./webSocket/index-browser");Object.defineProperty(r,"BrowserWebSocket",{enumerable:!0,get:function(){return c.BrowserWebSocket}}),Object.defineProperty(r,"WebSocketClient",{enumerable:!0,get:function(){return c.WebSocketClient}})},{"./contentStream":2,"./httpContentStream":8,"./requestHandler":24,"./streamingRequest":25,"./streamingResponse":26,"./subscribableStream":27,"./webSocket/index-browser":31}],10:[function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),o(e("./payloadReceiver"),r),o(e("./payloadSender"),r),o(e("./transportDisconnectedEvent"),r),o(e("./transportDisconnectedEventHandler"),r)},{"./payloadReceiver":11,"./payloadSender":12,"./transportDisconnectedEvent":13,"./transportDisconnectedEventHandler":14}],11:[function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function a(e){try{l(n.next(e))}catch(bze){i(bze)}}function s(e){try{l(n.throw(e))}catch(bze){i(bze)}}function l(e){e.done?r(e.value):o(e.value).then(a,s)}l((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(bze){s=[6,bze],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadReceiver=void 0;var i=e("../payloads/payloadTypes"),a=e("../payloads/headerSerializer"),s=e("../payloads/payloadConstants"),l=e("./transportDisconnectedEvent"),c=function(){function e(){}return Object.defineProperty(e.prototype,"isConnected",{get:function(){return null!=this._receiver},enumerable:!1,configurable:!0}),e.prototype.connect=function(e){return this._receiver=e,this.receivePackets()},e.prototype.subscribe=function(e,t){this._getStream=e,this._receiveAction=t},e.prototype.disconnect=function(e){var t,r;if(void 0===e&&(e=l.TransportDisconnectedEvent.Empty),this.isConnected)try{this._receiver.close(),null===(t=this.disconnected)||void 0===t||t.call(this,this,e)}catch(n){null===(r=this.disconnected)||void 0===r||r.call(this,this,new l.TransportDisconnectedEvent(n.message))}finally{this._receiver=null}},e.prototype.receivePackets=function(){return n(this,void 0,void 0,function(){var e,t,r,n,c,u,d,f,h;return o(this,function(o){switch(o.label){case 0:if(!this.isConnected)return[3,11];o.label=1;case 1:o.trys.push([1,9,,10]),e=0,o.label=2;case 2:return e<s.PayloadConstants.MaxHeaderLength?(t=this,[4,this._receiver.receive(s.PayloadConstants.MaxHeaderLength-e)]):[3,4];case 3:return t._receiveHeaderBuffer=o.sent(),this._receiveHeaderBuffer&&(e+=this._receiveHeaderBuffer.length),[3,2];case 4:if(r=a.HeaderSerializer.deserialize(this._receiveHeaderBuffer),n=r.payloadType===i.PayloadTypes.stream,!(r.payloadLength>0))return[3,8];c=0,u=this._getStream(r),o.label=5;case 5:return c<r.payloadLength&&c<s.PayloadConstants.MaxPayloadLength?(d=Math.min(r.payloadLength-c,s.PayloadConstants.MaxPayloadLength),f=this,[4,this._receiver.receive(d)]):[3,7];case 6:return f._receivePayloadBuffer=o.sent(),c+=this._receivePayloadBuffer.byteLength,u.write(this._receivePayloadBuffer),n&&this._receiveAction(r,u,c),[3,5];case 7:n||this._receiveAction(r,u,c),o.label=8;case 8:return[3,10];case 9:return h=o.sent(),this.disconnect(new l.TransportDisconnectedEvent(h.message)),[3,10];case 10:return[3,0];case 11:return[2]}})})},e}();r.PayloadReceiver=c},{"../payloads/headerSerializer":15,"../payloads/payloadConstants":18,"../payloads/payloadTypes":19,"./transportDisconnectedEvent":13}],12:[function(e,t,r){(function(t){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadSender=void 0;var n=e("../payloads/headerSerializer"),o=e("../payloads/payloadConstants"),i=e("./transportDisconnectedEvent"),a=function(){function e(){}return Object.defineProperty(e.prototype,"isConnected",{get:function(){return null!=this._sender},enumerable:!1,configurable:!0}),e.prototype.connect=function(e){this._sender=e},e.prototype.sendPayload=function(e,t,r){var n={header:e,payload:t,sentCallback:r};this.writePacket(n)},e.prototype.disconnect=function(e){var t,r;if(void 0===e&&(e=i.TransportDisconnectedEvent.Empty),this.isConnected)try{this._sender.close(),null===(t=this.disconnected)||void 0===t||t.call(this,this,e)}catch(n){null===(r=this.disconnected)||void 0===r||r.call(this,this,new i.TransportDisconnectedEvent(n.message))}finally{this._sender=null}},e.prototype.writePacket=function(e){try{if(e.header.payloadLength>0&&e.payload){for(var r=e.header.payloadLength;r>0;){var a=r<=o.PayloadConstants.MaxPayloadLength?r:o.PayloadConstants.MaxPayloadLength,s=e.payload.read(a),l=e.header;l.payloadLength=a,l.end=r<=o.PayloadConstants.MaxPayloadLength;var c=t.alloc(o.PayloadConstants.MaxHeaderLength);n.HeaderSerializer.serialize(l,c),this._sender.send(c),this._sender.send(s),r-=s.length}e.sentCallback&&e.sentCallback()}}catch(u){this.disconnect(new i.TransportDisconnectedEvent(u.message))}},e}();r.PayloadSender=a}).call(this)}).call(this,e("buffer").Buffer)},{"../payloads/headerSerializer":15,"../payloads/payloadConstants":18,"./transportDisconnectedEvent":13,buffer:35}],13:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TransportDisconnectedEvent=void 0;var n=function(){function e(e){this.reason=e}return e.Empty=new e,e}();r.TransportDisconnectedEvent=n},{}],14:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0})},{}],15:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.HeaderSerializer=void 0;var n=e("./payloadConstants"),o=function(){function e(){}return e.serialize=function(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)},e.deserialize=function(e){var t=e.toString(this.Encoding),r=t.split(this.Delimiter);if(4!==r.length)throw Error("Cannot parse header, header is malformed. Header: ".concat(t));var o=r[0],i=r[1],a=r[2],s=r[3],l={end:"1\n"===s,payloadLength:Number(i),payloadType:o,id:a};if(!(l.payloadLength<=n.PayloadConstants.MaxPayloadLength&&l.payloadLength>=n.PayloadConstants.MinLength))throw Error("Header length of ".concat(l.payloadLength," is missing or malformed"));if(l.payloadType.length!==this.TypeDelimiterOffset)throw Error("Header type '".concat(l.payloadType.length,"' is missing or malformed."));if(!l.id||!l.id.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i)||l.id.length!==this.IdLength)throw Error("Header ID '".concat(l.id,"' is missing or malformed."));if("0\n"!==s&&"1\n"!==s)throw Error("Header End is missing or not a valid value. Header end: '".concat(s,"'"));return l},e.headerLengthPadder=function(e,t,r){var n=Array(t+1).join(r),o=e.toString();return(n+o).slice(o.length)},e.Delimiter=".",e.Terminator="\n",e.End="1",e.NotEnd="0",e.TypeOffset=0,e.TypeDelimiterOffset=1,e.LengthOffset=2,e.LengthLength=6,e.LengthDelimeterOffset=8,e.IdOffset=9,e.IdLength=36,e.IdDelimeterOffset=45,e.EndOffset=46,e.TerminatorOffset=47,e.Encoding="utf8",e}();r.HeaderSerializer=o},{"./payloadConstants":18}],16:[function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),o(e("./headerSerializer"),r),o(e("./streamManager"),r),o(e("./payloadAssemblerManager"),r),o(e("./payloadTypes"),r),o(e("./requestManager"),r),o(e("./sendOperations"),r),o(e("./streamManager"),r)},{"./headerSerializer":15,"./payloadAssemblerManager":17,"./payloadTypes":19,"./requestManager":20,"./sendOperations":21,"./streamManager":22}],17:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadAssemblerManager=void 0;var n=e("../assemblers/payloadAssembler"),o=e("./payloadTypes"),i=function(){function e(e,t,r){this.streamManager=e,this.onReceiveResponse=t,this.onReceiveRequest=r,this.activeAssemblers={}}return e.prototype.getPayloadStream=function(e){if(e.payloadType===o.PayloadTypes.stream)return this.streamManager.getPayloadStream(e);if(!this.activeAssemblers[e.id]){var t=this.createPayloadAssembler(e);if(t)return this.activeAssemblers[e.id]=t,t.getPayloadStream()}},e.prototype.onReceive=function(e,t,r){e.payloadType===o.PayloadTypes.stream?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])},e.prototype.createPayloadAssembler=function(e){return e.payloadType===o.PayloadTypes.request?new n.PayloadAssembler(this.streamManager,{header:e,onCompleted:this.onReceiveRequest}):e.payloadType===o.PayloadTypes.response?new n.PayloadAssembler(this.streamManager,{header:e,onCompleted:this.onReceiveResponse}):void 0},e}();r.PayloadAssemblerManager=i},{"../assemblers/payloadAssembler":1,"./payloadTypes":19}],18:[function(e,t,r){var n;Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadConstants=void 0,(n=r.PayloadConstants||(r.PayloadConstants={}))[n.MaxPayloadLength=4096]="MaxPayloadLength",n[n.MaxHeaderLength=48]="MaxHeaderLength",n[n.MaxLength=999999]="MaxLength",n[n.MinLength=0]="MinLength"},{}],19:[function(e,t,r){var n;Object.defineProperty(r,"__esModule",{value:!0}),r.PayloadTypes=void 0,(n=r.PayloadTypes||(r.PayloadTypes={})).request="A",n.response="B",n.stream="S",n.cancelAll="X",n.cancelStream="C"},{}],20:[function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function a(e){try{l(n.next(e))}catch(bze){i(bze)}}function s(e){try{l(n.throw(e))}catch(bze){i(bze)}}function l(e){e.done?r(e.value):o(e.value).then(a,s)}l((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(bze){s=[6,bze],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};Object.defineProperty(r,"__esModule",{value:!0}),r.RequestManager=void 0;var i=function(){function e(){}return e}(),a=function(){function e(){this._pendingRequests={}}return e.prototype.pendingRequestCount=function(){return Object.keys(this._pendingRequests).length},e.prototype.signalResponse=function(e,t){return n(this,void 0,void 0,function(){var r;return o(this,function(n){return(r=this._pendingRequests[e])?(r.resolve(t),delete this._pendingRequests[e],[2,!0]):[2,!1]})})},e.prototype.getResponse=function(e){var t=this._pendingRequests[e];if(t)return Promise.reject("requestId '".concat(e,"' already exists in RequestManager"));(t=new i).requestId=e;var r=new Promise(function(e,r){t.resolve=e,t.reject=r});return this._pendingRequests[e]=t,r},e.prototype.rejectAllResponses=function(e){var t=this;Object.entries(this._pendingRequests).forEach(function(r){var n=r[0];(0,r[1].reject)(e),delete t._pendingRequests[n]})},e}();r.RequestManager=a},{}],21:[function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function a(e){try{l(n.next(e))}catch(bze){i(bze)}}function s(e){try{l(n.throw(e))}catch(bze){i(bze)}}function l(e){e.done?r(e.value):o(e.value).then(a,s)}l((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(bze){s=[6,bze],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};Object.defineProperty(r,"__esModule",{value:!0}),r.SendOperations=void 0;var i=e("../disassemblers/cancelDisassembler"),a=e("../disassemblers/httpContentStreamDisassembler"),s=e("../disassemblers/requestDisassembler"),l=e("../disassemblers/responseDisassembler"),c=e("./payloadTypes"),u=function(){function e(e){this.payloadSender=e}return e.prototype.sendRequest=function(e,t){return n(this,void 0,void 0,function(){var r=this;return o(this,function(i){switch(i.label){case 0:return[4,new s.RequestDisassembler(this.payloadSender,e,t).disassemble()];case 1:return i.sent(),t.streams&&t.streams.forEach(function(e){return n(r,void 0,void 0,function(){return o(this,function(t){switch(t.label){case 0:return[4,new a.HttpContentStreamDisassembler(this.payloadSender,e).disassemble()];case 1:return t.sent(),[2]}})})}),[2]}})})},e.prototype.sendResponse=function(e,t){return n(this,void 0,void 0,function(){var r=this;return o(this,function(i){switch(i.label){case 0:return[4,new l.ResponseDisassembler(this.payloadSender,e,t).disassemble()];case 1:return i.sent(),t.streams&&t.streams.forEach(function(e){return n(r,void 0,void 0,function(){return o(this,function(t){switch(t.label){case 0:return[4,new a.HttpContentStreamDisassembler(this.payloadSender,e).disassemble()];case 1:return t.sent(),[2]}})})}),[2]}})})},e.prototype.sendCancelStream=function(e){return n(this,void 0,void 0,function(){return o(this,function(t){return new i.CancelDisassembler(this.payloadSender,e,c.PayloadTypes.cancelStream).disassemble(),[2]})})},e}();r.SendOperations=u},{"../disassemblers/cancelDisassembler":3,"../disassemblers/httpContentStreamDisassembler":4,"../disassemblers/requestDisassembler":6,"../disassemblers/responseDisassembler":7,"./payloadTypes":19}],22:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.StreamManager=void 0;var n=e("../assemblers/payloadAssembler"),o=function(){function e(e){this.onCancelStream=e,this.activeAssemblers=[]}return e.prototype.getPayloadAssembler=function(e){if(this.activeAssemblers[e])return this.activeAssemblers[e];var t=new n.PayloadAssembler(this,{id:e});return this.activeAssemblers[e]=t,t},e.prototype.getPayloadStream=function(e){return this.getPayloadAssembler(e.id).getPayloadStream()},e.prototype.onReceive=function(e,t,r){this.activeAssemblers[e.id]&&this.activeAssemblers[e.id].onReceive(e,t,r)},e.prototype.closeStream=function(e){if(this.activeAssemblers[e]){var t=this.activeAssemblers[e];this.activeAssemblers.splice(this.activeAssemblers.indexOf(e),1);var r=t.getPayloadStream();(t.contentLength&&r.length<t.contentLength||!t.end)&&this.onCancelStream(t)}},e}();r.StreamManager=o},{"../assemblers/payloadAssembler":1}],23:[function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function a(e){try{l(n.next(e))}catch(bze){i(bze)}}function s(e){try{l(n.throw(e))}catch(bze){i(bze)}}function l(e){e.done?r(e.value):o(e.value).then(a,s)}l((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(bze){s=[6,bze],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};Object.defineProperty(r,"__esModule",{value:!0}),r.ProtocolAdapter=void 0;var i=e("./payloads/payloadAssemblerManager"),a=e("./payloads/sendOperations"),s=e("./payloads/streamManager"),l=e("./utilities/protocol-base"),c=function(){function e(e,t,r,n){var o=this;this.requestHandler=e,this.requestManager=t,this.payloadSender=r,this.payloadReceiver=n,this.sendOperations=new a.SendOperations(this.payloadSender),this.streamManager=new s.StreamManager(this.onCancelStream),this.assemblerManager=new i.PayloadAssemblerManager(this.streamManager,function(e,t){return o.onReceiveResponse(e,t)},function(e,t){return o.onReceiveRequest(e,t)}),this.payloadReceiver.subscribe(function(e){return o.assemblerManager.getPayloadStream(e)},function(e,t,r){return o.assemblerManager.onReceive(e,t,r)})}return e.prototype.sendRequest=function(e){return n(this,void 0,void 0,function(){var t,r;return o(this,function(n){switch(n.label){case 0:return t=(0,l.generateGuid)(),r=this.requestManager.getResponse(t),[4,this.sendOperations.sendRequest(t,e)];case 1:return n.sent(),[2,r]}})})},e.prototype.onReceiveRequest=function(e,t){return n(this,void 0,void 0,function(){var r;return o(this,function(n){switch(n.label){case 0:return this.requestHandler?[4,this.requestHandler.processRequest(t)]:[3,3];case 1:return(r=n.sent())?[4,this.sendOperations.sendResponse(e,r)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.onReceiveResponse=function(e,t){return n(this,void 0,void 0,function(){return o(this,function(r){switch(r.label){case 0:return[4,this.requestManager.signalResponse(e,t)];case 1:return r.sent(),[2]}})})},e.prototype.onCancelStream=function(e){this.sendOperations.sendCancelStream(e.id).catch()},e}();r.ProtocolAdapter=c},{"./payloads/payloadAssemblerManager":17,"./payloads/sendOperations":21,"./payloads/streamManager":22,"./utilities/protocol-base":28}],24:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RequestHandler=void 0;var n=function(){function e(){}return e}();r.RequestHandler=n},{}],25:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.StreamingRequest=void 0;var n=e("./httpContentStream"),o=e("./subscribableStream"),i=function(){function e(){this.streams=[]}return e.create=function(t,r,n){var o=new e;return o.verb=t,o.path=r,n&&o.setBody(n),o},e.prototype.addStream=function(e){if(!e)throw new Error("Argument Undefined Exception: content undefined.");this.streams.push(new n.HttpContentStream(e))},e.prototype.setBody=function(e){if("string"==typeof e){var t=new o.SubscribableStream;t.write(e,"utf8"),this.addStream(new n.HttpContent({type:"application/json; charset=utf-8",contentLength:t.length},t))}else"object"==typeof e&&this.addStream(e)},e}();r.StreamingRequest=i},{"./httpContentStream":8,"./subscribableStream":27}],26:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.StreamingResponse=void 0;var n=e("./httpContentStream"),o=e("./subscribableStream"),i=function(){function e(){this.streams=[]}return e.create=function(t,r){var n=new e;return n.statusCode=t,r&&n.addStream(r),n},e.prototype.addStream=function(e){this.streams.push(new n.HttpContentStream(e))},e.prototype.setBody=function(e){var t=new o.SubscribableStream;t.write(JSON.stringify(e),"utf8"),this.addStream(new n.HttpContent({type:"application/json; charset=utf-8",contentLength:t.length},t))},e}();r.StreamingResponse=i},{"./httpContentStream":8,"./subscribableStream":27}],27:[function(e,t,r){(function(t){(function(){var n=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(r,"__esModule",{value:!0}),r.SubscribableStream=void 0;var o=function(e){function r(t){var r=e.call(this,t)||this;return r.length=0,r.bufferList=[],r}return n(r,e),r.prototype._write=function(e,r,n){var o=t.from(e);this.bufferList.push(o),this.length+=e.length,this._onData&&this._onData(o),n()},r.prototype._read=function(e){if(0===this.bufferList.length)this.push(null);else for(var t=0;t<e&&this.bufferList.length>0;){var r=this.bufferList[0];this.push(r),this.bufferList.splice(0,1),t+=r.length}},r.prototype.subscribe=function(e){this._onData=e},r}(e("stream").Duplex);r.SubscribableStream=o}).call(this)}).call(this,e("buffer").Buffer)},{buffer:35,stream:41}],28:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.generateGuid=void 0;var n=e("uuid");function o(){return(0,n.v4)()}r.generateGuid=o},{uuid:58}],29:[function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function a(e){try{l(n.next(e))}catch(bze){i(bze)}}function s(e){try{l(n.throw(e))}catch(bze){i(bze)}}function l(e){e.done?r(e.value):o(e.value).then(a,s)}l((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(bze){s=[6,bze],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};Object.defineProperty(r,"__esModule",{value:!0}),r.BrowserWebSocket=void 0;var i=function(){function e(e){e&&(this.webSocket=e)}return e.prototype.connect=function(e){return n(this,void 0,void 0,function(){var t,r;return o(this,function(n){return this.webSocket||(this.webSocket=new WebSocket(e)),this.webSocket.onerror=function(e){r(e)},this.webSocket.onopen=function(e){t(e)},[2,new Promise(function(e,n){t=e,r=n})]})})},Object.defineProperty(e.prototype,"isConnected",{get:function(){return 1===this.webSocket.readyState},enumerable:!1,configurable:!0}),e.prototype.write=function(e){this.webSocket.send(e)},e.prototype.close=function(){this.webSocket.close()},e.prototype.setOnMessageHandler=function(e){var t="buffer",r=[];this.webSocket.onmessage=function(n){var o=new FileReader,i={buffer:null};r.push(i),o.onload=function(n){var 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)}},e.prototype.setOnErrorHandler=function(e){this.webSocket.onerror=function(t){t&&e(t)}},e.prototype.setOnCloseHandler=function(e){this.webSocket.onclose=e},e}();r.BrowserWebSocket=i},{}],30:[function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function a(e){try{l(n.next(e))}catch(bze){i(bze)}}function s(e){try{l(n.throw(e))}catch(bze){i(bze)}}function l(e){e.done?r(e.value):o(e.value).then(a,s)}l((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(bze){s=[6,bze],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};Object.defineProperty(r,"__esModule",{value:!0}),r.WebSocketClient=void 0;var i=e("./browserWebSocket"),a=e("../payloadTransport"),s=e("../protocolAdapter"),l=e("../payloads"),c=e("./webSocketTransport"),u=function(){function e(e){var t=e.url,r=e.requestHandler,n=e.disconnectionHandler,o=void 0===n?null:n;this._url=t,this._requestHandler=r,this._disconnectionHandler=o,this._requestManager=new l.RequestManager,this._sender=new a.PayloadSender,this._sender.disconnected=this.onConnectionDisconnected.bind(this),this._receiver=new a.PayloadReceiver,this._receiver.disconnected=this.onConnectionDisconnected.bind(this),this._protocolAdapter=new s.ProtocolAdapter(this._requestHandler,this._requestManager,this._sender,this._receiver)}return e.prototype.connect=function(){return n(this,void 0,void 0,function(){var e,t;return o(this,function(r){switch(r.label){case 0:return[4,(e=new i.BrowserWebSocket).connect(this._url)];case 1:return r.sent(),t=new c.WebSocketTransport(e),this._sender.connect(t),this._receiver.connect(t),[2]}})})},e.prototype.disconnect=function(){this._sender.disconnect(new a.TransportDisconnectedEvent("Disconnect was called.")),this._receiver.disconnect(new a.TransportDisconnectedEvent("Disconnect was called."))},e.prototype.send=function(e){return n(this,void 0,void 0,function(){return o(this,function(t){return[2,this._protocolAdapter.sendRequest(e)]})})},e.prototype.onConnectionDisconnected=function(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 ".concat(this._url,". Sender: '").concat(JSON.stringify(e),"'. Args:' ").concat(JSON.stringify(t)));this._disconnectionHandler("Disconnected")},e}();r.WebSocketClient=u},{"../payloadTransport":10,"../payloads":16,"../protocolAdapter":23,"./browserWebSocket":29,"./webSocketTransport":32}],31:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WebSocketTransport=r.WebSocketClient=r.BrowserWebSocket=void 0;var n=e("./browserWebSocket");Object.defineProperty(r,"BrowserWebSocket",{enumerable:!0,get:function(){return n.BrowserWebSocket}});var o=e("./browserWebSocketClient");Object.defineProperty(r,"WebSocketClient",{enumerable:!0,get:function(){return o.WebSocketClient}});var i=e("./webSocketTransport");Object.defineProperty(r,"WebSocketTransport",{enumerable:!0,get:function(){return i.WebSocketTransport}})},{"./browserWebSocket":29,"./browserWebSocketClient":30,"./webSocketTransport":32}],32:[function(e,t,r){(function(e){(function(){var t=this&&this.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,i){function a(e){try{l(n.next(e))}catch(bze){i(bze)}}function s(e){try{l(n.throw(e))}catch(bze){i(bze)}}function l(e){e.done?r(e.value):o(e.value).then(a,s)}l((n=n.apply(e,t||[])).next())})},n=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(bze){s=[6,bze],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}};Object.defineProperty(r,"__esModule",{value:!0}),r.WebSocketTransport=void 0;var o=function(){function r(e){var t=this;this.ws=e,this._queue=[],this._activeOffset=0,this._activeReceiveCount=0,this.ws.setOnMessageHandler(function(e){t.onReceive(e)}),this.ws.setOnErrorHandler(function(e){t.onError(e)}),this.ws.setOnCloseHandler(function(){t.onClose()})}return r.prototype.send=function(e){var t;return(null===(t=this.ws)||void 0===t?void 0:t.isConnected)?(this.ws.write(e),e.length):0},Object.defineProperty(r.prototype,"isConnected",{get:function(){var e;return!!(null===(e=this.ws)||void 0===e?void 0:e.isConnected)},enumerable:!1,configurable:!0}),r.prototype.close=function(){var e;(null===(e=this.ws)||void 0===e?void 0:e.isConnected)&&this.ws.close()},r.prototype.receive=function(e){return t(this,void 0,void 0,function(){var t,r=this;return n(this,function(n){if(this._activeReceiveResolve)throw new Error("Cannot call receive more than once before it has returned.");return this._activeReceiveCount=e,t=new Promise(function(e,t){r._activeReceiveResolve=e,r._activeReceiveReject=t}),this.trySignalData(),[2,t]})})},r.prototype.onReceive=function(t){this._queue&&t&&t.byteLength>0&&(this._queue.push(e.from(t)),this.trySignalData())},r.prototype.onClose=function(){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},r.prototype.onError=function(e){this._activeReceiveReject&&this._activeReceiveReject(e),this.onClose()},r.prototype.trySignalData=function(){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){var t=this._active;this._active=null,this._activeReceiveResolve(t)}else{var r=Math.min(this._activeReceiveCount,this._active.length-this._activeOffset);t=e.alloc(r),this._active.copy(t,0,this._activeOffset,this._activeOffset+r),this._activeOffset+=r,this._activeOffset>=this._active.length&&(this._active=null,this._activeOffset=0),this._activeReceiveResolve(t)}this._activeReceiveCount=0,this._activeReceiveReject=null,this._activeReceiveResolve=null}},r}();r.WebSocketTransport=o}).call(this)}).call(this,e("buffer").Buffer)},{buffer:35}],33:[function(e,t,r){},{}],34:[function(e,t,r){r.byteLength=u,r.toByteArray=f,r.fromByteArray=m;for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)n[s]=a[s],o[a.charCodeAt(s)]=s;function c(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 u(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function d(e,t,r){return 3*(t+r)/4-r}function f(e){var t,r,n=c(e),a=n[0],s=n[1],l=new i(d(e,a,s)),u=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)t=o[e.charCodeAt(r)]<<18|o[e.charCodeAt(r+1)]<<12|o[e.charCodeAt(r+2)]<<6|o[e.charCodeAt(r+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=o[e.charCodeAt(r)]<<2|o[e.charCodeAt(r+1)]>>4,l[u++]=255&t),1===s&&(t=o[e.charCodeAt(r)]<<10|o[e.charCodeAt(r+1)]<<4|o[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function h(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function p(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(h(n));return o.join("")}function m(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,l=r-o;s<l;s+=a)i.push(p(e,s,s+a>l?l:s+a));return 1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],35:[function(e,t,r){(function(t){(function(){var t=e("base64-js"),n=e("ieee754");r.Buffer=s,r.SlowBuffer=v,r.INSPECT_MAX_BYTES=50;var o=2147483647;function i(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(bze){return!1}}function a(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=s.prototype,t}function s(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 d(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return f(e,t);if(ArrayBuffer.isView(e))return h(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return p(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);var o=m(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.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,t,r){return c(e),e<=0?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)}function d(e){return c(e),a(e<0?0:0|g(e))}function f(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|y(e,t),n=a(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}function h(e){for(var t=e.length<0?0:0|g(e.length),r=a(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function p(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');var n;return(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r)).__proto__=s.prototype,n}function m(e){if(s.isBuffer(e)){var t=0|g(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||X(e.length)?a(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}function g(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),s.alloc(+e)}function y(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(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);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(e).length;default:if(o)return n?-1:W(e).length;t=(""+t).toLowerCase(),o=!0}}function b(e,t,r){var 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 O(this,t,r);case"utf8":case"utf-8":return I(this,t,r);case"ascii":return D(this,t,r);case"latin1":case"binary":return z(this,t,r);case"base64":return P(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function w(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function x(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),X(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=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:k(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):k(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function k(e,t,r,n,o){var 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){var u=-1;for(i=r;i<s;i++)if(c(e,i)===c(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){for(var d=!0,f=0;f<l;f++)if(c(e,i+f)!==c(t,f)){d=!1;break}if(d)return i}return-1}function S(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(X(s))return a;e[r+a]=s}return a}function _(e,t,r,n){return K(W(t,e.length-r),e,r,n)}function C(e,t,r,n){return K($(t),e,r,n)}function T(e,t,r,n){return C(e,t,r,n)}function E(e,t,r,n){return K(Y(t),e,r,n)}function A(e,t,r,n){return K(G(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 I(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,l,c=e[o],u=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=d}return N(n)}r.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=i(),s.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(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,s.alloc=function(e,t,r){return u(e,t,r)},s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(J(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),J(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,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},s.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}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=s.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(J(i,Uint8Array)&&(i=s.from(i)),!s.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},s.byteLength=y,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)w(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)w(this,t,t+3),w(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)w(this,t,t+7),w(this,t+1,t+6),w(this,t+2,t+5),w(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?I(this,0,e):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},s.prototype.compare=function(e,t,r,n,o){if(J(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.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;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),l=Math.min(i,a),c=this.slice(n,o),u=e.slice(t,r),d=0;d<l;++d)if(c[d]!==u[d]){i=c[d],a=u[d];break}return i<a?-1:a<i?1:0},s.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return x(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return x(this,e,t,r,!1)},s.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)}var 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");for(var i=!1;;)switch(n){case"hex":return S(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":return C(this,e,t,r);case"latin1":case"binary":return T(this,e,t,r);case"base64":return E(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function N(e){var t=e.length;if(t<=B)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=B));return r}function D(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function z(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function O(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=U(e[i]);return o}function R(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function M(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(!s.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,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function F(e,t,r,o,i){return t=+t,r>>>=0,i||L(e,t,r,4),n.write(e,t,r,o,23,4),r+4}function V(e,t,r,o,i){return t=+t,r>>>=0,i||L(e,t,r,8),n.write(e,t,r,o,52,8),r+8}s.prototype.slice=function(e,t){var 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);var n=this.subarray(e,t);return n.__proto__=s.prototype,n},s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||M(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||M(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},s.prototype.readUInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||M(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||M(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||M(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||M(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||M(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||M(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||M(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||M(e,8,this.length),n.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||j(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||j(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},s.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},s.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},s.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},s.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},s.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},s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);j(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);j(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a|0)-s&255;return t+r},s.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},s.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},s.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},s.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},s.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},s.prototype.writeFloatLE=function(e,t,r){return F(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return F(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return V(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return V(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.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);var o=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var i=o-1;i>=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return o},s.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&&!s.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=s.isBuffer(e)?e:s.from(e,n),l=a.length;if(0===l)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=a[i%l]}return this};var q=/[^+/0-9A-Za-z-_]/g;function H(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function W(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>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 $(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function G(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}function Y(e){return t.toByteArray(H(e))}function K(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":34,buffer:35,ieee754:37}],36:[function(e,t,r){var n,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function a(e){console&&console.warn&&console.warn(e)}n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}t.exports=l,t.exports.once=w,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var c=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function d(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function f(e,t,r,n){var o,i,s;if(u(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),s=i[t]),void 0===s)s=i[t]=r,++e._eventsCount;else if("function"==typeof s?s=i[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=d(e))>0&&s.length>o&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,a(l)}return e}function h(){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 p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=h.bind(n);return o.listener=r,n.wrapFn=o,o}function m(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?b(o):v(o,o.length)}function g(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 v(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function y(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function b(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function w(e,t){return new Promise(function(r,n){function o(){void 0!==i&&e.removeListener("error",i),r([].slice.call(arguments))}var i;"error"!==t&&(i=function(r){e.removeListener(t,o),n(r)},e.once("error",i)),e.once(t,o)})}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),l.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},l.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(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},l.prototype.getMaxListeners=function(){return d(this)},l.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 a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)i(l,this,t);else{var c=l.length,u=v(l,c);for(r=0;r<c;++r)i(u[r],this,t)}return!0},l.prototype.addListener=function(e,t){return f(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return f(this,e,t,!0)},l.prototype.once=function(e,t){return u(t),this.on(e,p(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,p(this,e,t)),this},l.prototype.removeListener=function(e,t){var r,n,o,i,a;if(u(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():y(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},l.prototype.off=l.prototype.removeListener,l.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},l.prototype.listeners=function(e){return m(this,e,!0)},l.prototype.rawListeners=function(e){return m(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},{}],37:[function(e,t,r){r.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)},r.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}},{}],38:[function(e,t,r){"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}}},{}],39:[function(e,t,r){var n,o,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(bze){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}function c(e){if(o===clearTimeout)return clearTimeout(e);if((o===s||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{return o(e)}catch(bze){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(bze){n=a}try{o="function"==typeof clearTimeout?clearTimeout:s}catch(bze){o=s}}();var u,d=[],f=!1,h=-1;function p(){f&&u&&(f=!1,u.length?d=u.concat(d):h=-1,d.length&&m())}function m(){if(!f){var e=l(p);f=!0;for(var t=d.length;t;){for(u=d,d=[];++h<t;)u&&u[h].run();h=-1,t=d.length}u=null,f=!1,c(e)}}function g(e,t){this.fun=e,this.array=t}function v(){}i.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];d.push(new g(e,t)),1!==d.length||f||l(m)},g.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],40:[function(e,t,r){var n=e("buffer"),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(i(n,r),r.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:35}],41:[function(e,t,r){t.exports=o;var n=e("events").EventEmitter;function o(){n.call(this)}e("inherits")(o,n),o.Readable=e("readable-stream/lib/_stream_readable.js"),o.Writable=e("readable-stream/lib/_stream_writable.js"),o.Duplex=e("readable-stream/lib/_stream_duplex.js"),o.Transform=e("readable-stream/lib/_stream_transform.js"),o.PassThrough=e("readable-stream/lib/_stream_passthrough.js"),o.finished=e("readable-stream/lib/internal/streams/end-of-stream.js"),o.pipeline=e("readable-stream/lib/internal/streams/pipeline.js"),o.Stream=o,o.prototype.pipe=function(e,t){var r=this;function o(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",o),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",s),r.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===n.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",o),e.removeListener("drain",i),r.removeListener("end",s),r.removeListener("close",l),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",c),e.on("error",c),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},{events:36,inherits:38,"readable-stream/lib/_stream_duplex.js":43,"readable-stream/lib/_stream_passthrough.js":44,"readable-stream/lib/_stream_readable.js":45,"readable-stream/lib/_stream_transform.js":46,"readable-stream/lib/_stream_writable.js":47,"readable-stream/lib/internal/streams/end-of-stream.js":51,"readable-stream/lib/internal/streams/pipeline.js":53}],42:[function(e,t,r){function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var o={};function i(e,t,r){function i(e,r,n){return"string"==typeof t?t:t(e,r,n)}r||(r=Error);var a=function(e){function t(t,r,n){return e.call(this,i(t,r,n))||this}return n(t,e),t}(r);a.prototype.name=r.name,a.prototype.code=e,o[e]=a}function a(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))}function s(e,t,r){return e.substr(0,t.length)===t}function l(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function c(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,t,r){var n,o;if("string"==typeof t&&s(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be",l(e," argument"))o="The ".concat(e," ").concat(n," ").concat(a(t,"type"));else{var i=c(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(i," ").concat(n," ").concat(a(t,"type"))}return o+=". Received type ".concat(typeof r)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=o},{}],43:[function(e,t,r){(function(r){(function(){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=c;var o=e("./_stream_readable"),i=e("./_stream_writable");e("inherits")(c,o);for(var a=n(i.prototype),s=0;s<a.length;s++){var l=a[s];c.prototype[l]||(c.prototype[l]=i.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);o.call(this,e),i.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||r.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)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":45,"./_stream_writable":47,_process:39,inherits:38}],44:[function(e,t,r){t.exports=o;var n=e("./_stream_transform");function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}e("inherits")(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":46,inherits:38}],45:[function(e,r,n){(function(t,n){(function(){var o;r.exports=A,A.ReadableState=E,e("events").EventEmitter;var i=function(e,t){return e.listeners(t).length},a=e("./internal/streams/stream"),s=e("buffer").Buffer,l=n.Uint8Array||function(){};function c(e){return s.from(e)}function u(e){return s.isBuffer(e)||e instanceof l}var d,f=e("util");d=f&&f.debuglog?f.debuglog("stream"):function(){};var h,p,m,g=e("./internal/streams/buffer_list"),v=e("./internal/streams/destroy"),y=e("./internal/streams/state").getHighWaterMark,b=e("../errors").codes,w=b.ERR_INVALID_ARG_TYPE,x=b.ERR_STREAM_PUSH_AFTER_EOF,k=b.ERR_METHOD_NOT_IMPLEMENTED,S=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(A,a);var _=v.errorOrDestroy,C=["error","close","destroy","pause","resume"];function T(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)}function E(t,r,n){o=o||e("./_stream_duplex"),t=t||{},"boolean"!=typeof n&&(n=r instanceof o),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=y(this,t,"readableHighWaterMark",n),this.buffer=new g,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!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=e("string_decoder/").StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function A(t){if(o=o||e("./_stream_duplex"),!(this instanceof A))return new A(t);var r=this instanceof o;this._readableState=new E(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function P(e,t,r,n,o){d("readableAddChunk",t);var i,a=e._readableState;if(null===t)a.reading=!1,O(e,a);else if(o||(i=B(a,t)),i)_(e,i);else if(a.objectMode||t&&t.length>0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=c(t)),n)a.endEmitted?_(e,new S):I(e,a,t,!0);else if(a.ended)_(e,new x);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?I(e,a,t,!1):j(e,a)):I(e,a,t,!1)}else n||(a.reading=!1,j(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function I(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)),j(e,t)}function B(e,t){var r;return u(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new w("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),A.prototype.destroy=v.destroy,A.prototype._undestroy=v.undestroy,A.prototype._destroy=function(e,t){t(e)},A.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=s.from(e,t),t=""),r=!0),P(this,e,t,!1,r)},A.prototype.unshift=function(e){return P(this,e,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(t){h||(h=e("string_decoder/").StringDecoder);var r=new h(t);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,o="";null!==n;)o+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this};var N=1073741824;function D(e){return e>=N?e=N:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function z(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=D(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e,t){if(d("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)))}}function R(e){var r=e._readableState;d("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(d("emitReadable",r.flowing),r.emittedReadable=!0,t.nextTick(M,e))}function M(e){var t=e._readableState;d("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,W(e)}function j(e,r){r.readingMore||(r.readingMore=!0,t.nextTick(L,e,r))}function L(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(d("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function F(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,W(e))}}function V(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 q(e){d("readable nexttick read 0"),e.read(0)}function H(e,r){r.resumeScheduled||(r.resumeScheduled=!0,t.nextTick(U,e,r))}function U(e,t){d("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),W(e),t.flowing&&!t.reading&&e.read(0)}function W(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function $(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 G(e){var r=e._readableState;d("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,t.nextTick(Y,r,e))}function Y(e,t){if(d("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 K(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}A.prototype.read=function(e){d("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 d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?G(this):R(this),null;if(0===(e=z(e,t))&&t.ended)return 0===t.length&&G(this),null;var n,o=t.needReadable;return d("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",o=!0),t.ended||t.reading?d("reading or ended",o=!1):o&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=z(r,t))),null===(n=e>0?$(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&&G(this)),null!==n&&this.emit("data",n),n},A.prototype._read=function(e){_(this,new k("_read()"))},A.prototype.pipe=function(e,r){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,r);var a=r&&!1===r.end||e===t.stdout||e===t.stderr?v:l;function s(e,t){d("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function l(){d("onend"),e.end()}o.endEmitted?t.nextTick(a):n.once("end",a),e.on("unpipe",s);var c=F(n);e.on("drain",c);var u=!1;function f(){d("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",c),e.removeListener("error",p),e.removeListener("unpipe",s),n.removeListener("end",l),n.removeListener("end",v),n.removeListener("data",h),u=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||c()}function h(t){d("ondata");var r=e.write(t);d("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==K(o.pipes,e))&&!u&&(d("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function p(t){d("onerror",t),v(),e.removeListener("error",p),0===i(e,"error")&&_(e,t)}function m(){e.removeListener("finish",g),v()}function g(){d("onfinish"),e.removeListener("close",m),v()}function v(){d("unpipe"),n.unpipe(e)}return n.on("data",h),T(e,"error",p),e.once("close",m),e.once("finish",g),e.emit("pipe",n),o.flowing||(d("pipe resume"),n.resume()),e},A.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=K(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},A.prototype.on=function(e,r){var n=a.prototype.on.call(this,e,r),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,d("on readable",o.length,o.reading),o.length?R(this):o.reading||t.nextTick(q,this))),n},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(e,r){var n=a.prototype.removeListener.call(this,e,r);return"readable"===e&&t.nextTick(V,this),n},A.prototype.removeAllListeners=function(e){var r=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||t.nextTick(V,this),r},A.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!e.readableListening,H(this,e)),e.paused=!1,this},A.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",function(){if(d("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){d("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<C.length;i++)e.on(C[i],this.emit.bind(this,C[i]));return this._read=function(t){d("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(A.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=e("./internal/streams/async_iterator")),p(this)}),Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(A.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),A._fromList=$,Object.defineProperty(A.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(A.from=function(t,r){return void 0===m&&(m=e("./internal/streams/from")),m(A,t,r)})}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":42,"./_stream_duplex":43,"./internal/streams/async_iterator":48,"./internal/streams/buffer_list":49,"./internal/streams/destroy":50,"./internal/streams/from":52,"./internal/streams/state":54,"./internal/streams/stream":55,_process:39,buffer:35,events:36,inherits:38,"string_decoder/":56,util:33}],46:[function(e,t,r){t.exports=u;var n=e("../errors").codes,o=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=e("./_stream_duplex");function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.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",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush(function(t,r){f(e,t,r)})}function f(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}e("inherits")(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new o("_transform()"))},u.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)}},u.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))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},{"../errors":42,"./_stream_duplex":43,inherits:38}],47:[function(e,r,n){(function(t,n){(function(){function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){U(t,e)}}var i;r.exports=E,E.WritableState=T;var a={deprecate:e("util-deprecate")},s=e("./internal/streams/stream"),l=e("buffer").Buffer,c=n.Uint8Array||function(){};function u(e){return l.from(e)}function d(e){return l.isBuffer(e)||e instanceof c}var f,h=e("./internal/streams/destroy"),p=e("./internal/streams/state").getHighWaterMark,m=e("../errors").codes,g=m.ERR_INVALID_ARG_TYPE,v=m.ERR_METHOD_NOT_IMPLEMENTED,y=m.ERR_MULTIPLE_CALLBACK,b=m.ERR_STREAM_CANNOT_PIPE,w=m.ERR_STREAM_DESTROYED,x=m.ERR_STREAM_NULL_VALUES,k=m.ERR_STREAM_WRITE_AFTER_END,S=m.ERR_UNKNOWN_ENCODING,_=h.errorOrDestroy;function C(){}function T(t,r,n){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof n&&(n=r instanceof i),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=p(this,t,"writableHighWaterMark",n),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(e){O(r,e)},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 o(this)}function E(t){var r=this instanceof(i=i||e("./_stream_duplex"));if(!r&&!f.call(E,this))return new E(t);this._writableState=new T(t,this,r),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function A(e,r){var n=new k;_(e,n),t.nextTick(r,n)}function P(e,r,n,o){var i;return null===n?i=new x:"string"==typeof n||r.objectMode||(i=new g("chunk",["string","Buffer"],n)),!i||(_(e,i),t.nextTick(o,i),!1)}function I(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r)),t}function B(e,t,r,n,o,i){if(!r){var a=I(t,n,o);n!==a&&(r=!0,o="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else N(e,t,!1,s,n,o,i);return l}function N(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 D(e,r,n,o,i){--r.pendingcb,n?(t.nextTick(i,o),t.nextTick(q,e,r),e._writableState.errorEmitted=!0,_(e,o)):(i(o),e._writableState.errorEmitted=!0,_(e,o),q(e,r))}function z(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function O(e,r){var n=e._writableState,o=n.sync,i=n.writecb;if("function"!=typeof i)throw new y;if(z(n),r)D(e,n,o,r,i);else{var a=L(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||j(e,n),o?t.nextTick(R,e,n,a,i):R(e,n,a,i)}}function R(e,t,r,n){r||M(e,t),t.pendingcb--,n(),q(e,t)}function M(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function j(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),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,N(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 o(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,d=r.callback;if(N(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 L(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function F(e,t){e._final(function(r){t.pendingcb--,r&&_(e,r),t.prefinished=!0,e.emit("prefinish"),q(e,t)})}function V(e,r){r.prefinished||r.finalCalled||("function"!=typeof e._final||r.destroyed?(r.prefinished=!0,e.emit("prefinish")):(r.pendingcb++,r.finalCalled=!0,t.nextTick(F,e,r)))}function q(e,t){var r=L(t);if(r&&(V(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function H(e,r,n){r.ending=!0,q(e,r),n&&(r.finished?t.nextTick(n):e.once("finish",n)),r.ended=!0,e.writable=!1}function U(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}e("inherits")(E,s),T.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(T.prototype,"buffer",{get:a.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]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!f.call(this,e)||this===E&&e&&e._writableState instanceof T}})):f=function(e){return e instanceof this},E.prototype.pipe=function(){_(this,new b)},E.prototype.write=function(e,t,r){var n=this._writableState,o=!1,i=!n.objectMode&&d(e);return i&&!l.isBuffer(e)&&(e=u(e)),"function"==typeof t&&(r=t,t=null),i?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=C),n.ending?A(this,r):(i||P(this,n,e,r))&&(n.pendingcb++,o=B(this,n,i,e,t,r)),o},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||j(this,e))},E.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 S(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new v("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||H(this,n,r),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=h.destroy,E.prototype._undestroy=h.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":42,"./_stream_duplex":43,"./internal/streams/destroy":50,"./internal/streams/state":54,"./internal/streams/stream":55,_process:39,buffer:35,inherits:38,"util-deprecate":57}],48:[function(e,t,r){(function(r){(function(){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}var i=e("./end-of-stream"),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(e){r.nextTick(p,e)}function g(e,t){return function(r,n){e.then(function(){t[c]?r(h(void 0,!0)):t[d](r,n)},n)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((o(n={get stream(){return this[f]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise(function(t,n){r.nextTick(function(){e[l]?n(e[l]):t(h(void 0,!0))})});var n,o=this[u];if(o)n=new Promise(g(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),v),b=function(e){var t,r=Object.create(y,(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};t.exports=b}).call(this)}).call(this,e("_process"))},{"./end-of-stream":51,_process:39}],49:[function(e,t,r){function n(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 o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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)}}function l(e,t,r){return t&&s(e.prototype,t),e}var c=e("buffer").Buffer,u=e("util").inspect,d=u&&u.custom||"inspect";function f(e,t,r){c.prototype.copy.call(e,t,r)}t.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return l(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 c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,n=0;r;)f(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=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,i=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,i),0===(e-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(i));break}++n}return this.length-=n,t}},{key:d,value:function(e,t){return u(this,o({},t,{depth:0,customInspect:!1}))}}]),e}()},{buffer:35,util:33}],50:[function(e,t,r){(function(e){(function(){function r(t,r){var i=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(a,this,t)):e.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!r&&t?i._writableState?i._writableState.errorEmitted?e.nextTick(o,i):(i._writableState.errorEmitted=!0,e.nextTick(n,i,t)):e.nextTick(n,i,t):r?(e.nextTick(o,i),r(t)):e.nextTick(o,i)}),this)}function n(e,t){a(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(){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)}function a(e,t){e.emit("error",t)}function s(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}t.exports={destroy:r,undestroy:i,errorOrDestroy:s}}).call(this)}).call(this,e("_process"))},{_process:39}],51:[function(e,t,r){var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function o(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)}}}function i(){}function a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=o(r||i);var l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,u=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){c=!1,d=!0,l||r.call(e)},h=e._readableState&&e._readableState.endEmitted,p=function(){l=!1,h=!0,c||r.call(e)},m=function(t){r.call(e,t)},g=function(){var t;return l&&!h?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):c&&!d?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},v=function(){e.req.on("finish",f)};return a(e)?(e.on("complete",f),e.on("abort",g),e.req?v():e.on("request",v)):c&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",p),e.on("finish",f),!1!==t.error&&e.on("error",m),e.on("close",g),function(){e.removeListener("complete",f),e.removeListener("abort",g),e.removeListener("request",v),e.req&&e.req.removeListener("finish",f),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",f),e.removeListener("end",p),e.removeListener("error",m),e.removeListener("close",g)}}t.exports=s},{"../../../errors":42}],52:[function(e,t,r){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],53:[function(e,t,r){var n;function o(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i=e("../../../errors").codes,a=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function c(e){return e.setHeader&&"function"==typeof e.abort}function u(t,r,i,a){a=o(a);var l=!1;t.on("close",function(){l=!0}),void 0===n&&(n=e("./end-of-stream")),n(t,{readable:r,writable:i},function(e){if(e)return a(e);l=!0,a()});var u=!1;return function(e){if(!l&&!u)return u=!0,c(t)?t.abort():"function"==typeof t.destroy?t.destroy():void a(e||new s("pipe"))}}function d(e){e()}function f(e,t){return e.pipe(t)}function h(e){return e.length?"function"!=typeof e[e.length-1]?l:e.pop():l}function p(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,o=h(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new a("streams");var i=t.map(function(e,r){var a=r<t.length-1;return u(e,a,r>0,function(e){n||(n=e),e&&i.forEach(d),a||(i.forEach(d),o(n))})});return t.reduce(f)}t.exports=p},{"../../../errors":42,"./end-of-stream":51}],54:[function(e,t,r){var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;function o(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function i(e,t,r,i){var a=o(t,i,r);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new n(i?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}t.exports={getHighWaterMark:i}},{"../../../errors":42}],55:[function(e,t,r){t.exports=e("events").EventEmitter},{events:36}],56:[function(e,t,r){var n=e("safe-buffer").Buffer,o=n.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 i(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}}function a(e){var t=i(e);if("string"!=typeof t&&(n.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=g,this.end=v,t=3;break;default:return this.write=y,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var o=l(t[n]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--n<r||-2===o?0:(o=l(t[n]))>=0?(o>0&&(e.lastNeed=o-2),o):--n<r||-2===o?0:(o=l(t[n]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}function u(e,t,r){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,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=u(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 f(e,t){var r=c(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)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(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 m(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 g(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 v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}r.StringDecoder=s,s.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||""},s.prototype.end=h,s.prototype.text=f,s.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}},{"safe-buffer":40}],57:[function(e,r,n){(function(e){(function(){function t(e,t){if(n("noDeprecation"))return e;var r=!1;function o(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return o}function n(t){try{if(!e.localStorage)return!1}catch(n){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}r.exports=t}).call(this)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],58:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return d.default}});var n=f(e("./v1.js")),o=f(e("./v3.js")),i=f(e("./v4.js")),a=f(e("./v5.js")),s=f(e("./nil.js")),l=f(e("./version.js")),c=f(e("./validate.js")),u=f(e("./stringify.js")),d=f(e("./parse.js"));function f(e){return e&&e.__esModule?e:{default:e}}},{"./nil.js":60,"./parse.js":61,"./stringify.js":65,"./v1.js":66,"./v3.js":67,"./v4.js":69,"./v5.js":70,"./validate.js":71,"./version.js":72}],59:[function(e,t,r){function n(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return o(a(s(e),8*e.length))}function o(e){const t=[],r=32*e.length,n="0123456789abcdef";for(let o=0;o<r;o+=8){const r=e[o>>5]>>>o%32&255,i=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16);t.push(i)}return t}function i(e){return 14+(e+64>>>9<<4)+1}function a(e,t){e[t>>5]|=128<<t%32,e[i(t)-1]=t;let r=1732584193,n=-271733879,o=-1732584194,a=271733878;for(let i=0;i<e.length;i+=16){const t=r,s=n,c=o,u=a;r=d(r,n,o,a,e[i],7,-680876936),a=d(a,r,n,o,e[i+1],12,-389564586),o=d(o,a,r,n,e[i+2],17,606105819),n=d(n,o,a,r,e[i+3],22,-1044525330),r=d(r,n,o,a,e[i+4],7,-176418897),a=d(a,r,n,o,e[i+5],12,1200080426),o=d(o,a,r,n,e[i+6],17,-1473231341),n=d(n,o,a,r,e[i+7],22,-45705983),r=d(r,n,o,a,e[i+8],7,1770035416),a=d(a,r,n,o,e[i+9],12,-1958414417),o=d(o,a,r,n,e[i+10],17,-42063),n=d(n,o,a,r,e[i+11],22,-1990404162),r=d(r,n,o,a,e[i+12],7,1804603682),a=d(a,r,n,o,e[i+13],12,-40341101),o=d(o,a,r,n,e[i+14],17,-1502002290),n=d(n,o,a,r,e[i+15],22,1236535329),r=f(r,n,o,a,e[i+1],5,-165796510),a=f(a,r,n,o,e[i+6],9,-1069501632),o=f(o,a,r,n,e[i+11],14,643717713),n=f(n,o,a,r,e[i],20,-373897302),r=f(r,n,o,a,e[i+5],5,-701558691),a=f(a,r,n,o,e[i+10],9,38016083),o=f(o,a,r,n,e[i+15],14,-660478335),n=f(n,o,a,r,e[i+4],20,-405537848),r=f(r,n,o,a,e[i+9],5,568446438),a=f(a,r,n,o,e[i+14],9,-1019803690),o=f(o,a,r,n,e[i+3],14,-187363961),n=f(n,o,a,r,e[i+8],20,1163531501),r=f(r,n,o,a,e[i+13],5,-1444681467),a=f(a,r,n,o,e[i+2],9,-51403784),o=f(o,a,r,n,e[i+7],14,1735328473),n=f(n,o,a,r,e[i+12],20,-1926607734),r=h(r,n,o,a,e[i+5],4,-378558),a=h(a,r,n,o,e[i+8],11,-2022574463),o=h(o,a,r,n,e[i+11],16,1839030562),n=h(n,o,a,r,e[i+14],23,-35309556),r=h(r,n,o,a,e[i+1],4,-1530992060),a=h(a,r,n,o,e[i+4],11,1272893353),o=h(o,a,r,n,e[i+7],16,-155497632),n=h(n,o,a,r,e[i+10],23,-1094730640),r=h(r,n,o,a,e[i+13],4,681279174),a=h(a,r,n,o,e[i],11,-358537222),o=h(o,a,r,n,e[i+3],16,-722521979),n=h(n,o,a,r,e[i+6],23,76029189),r=h(r,n,o,a,e[i+9],4,-640364487),a=h(a,r,n,o,e[i+12],11,-421815835),o=h(o,a,r,n,e[i+15],16,530742520),n=h(n,o,a,r,e[i+2],23,-995338651),r=p(r,n,o,a,e[i],6,-198630844),a=p(a,r,n,o,e[i+7],10,1126891415),o=p(o,a,r,n,e[i+14],15,-1416354905),n=p(n,o,a,r,e[i+5],21,-57434055),r=p(r,n,o,a,e[i+12],6,1700485571),a=p(a,r,n,o,e[i+3],10,-1894986606),o=p(o,a,r,n,e[i+10],15,-1051523),n=p(n,o,a,r,e[i+1],21,-2054922799),r=p(r,n,o,a,e[i+8],6,1873313359),a=p(a,r,n,o,e[i+15],10,-30611744),o=p(o,a,r,n,e[i+6],15,-1560198380),n=p(n,o,a,r,e[i+13],21,1309151649),r=p(r,n,o,a,e[i+4],6,-145523070),a=p(a,r,n,o,e[i+11],10,-1120210379),o=p(o,a,r,n,e[i+2],15,718787259),n=p(n,o,a,r,e[i+9],21,-343485551),r=l(r,t),n=l(n,s),o=l(o,c),a=l(a,u)}return[r,n,o,a]}function s(e){if(0===e.length)return[];const t=8*e.length,r=new Uint32Array(i(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}function l(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function c(e,t){return e<<t|e>>>32-t}function u(e,t,r,n,o,i){return l(c(l(l(t,e),l(n,i)),o),r)}function d(e,t,r,n,o,i,a){return u(t&r|~t&n,e,t,o,i,a)}function f(e,t,r,n,o,i,a){return u(t&n|r&~n,e,t,o,i,a)}function h(e,t,r,n,o,i,a){return u(t^r^n,e,t,o,i,a)}function p(e,t,r,n,o,i,a){return u(r^(t|~n),e,t,o,i,a)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var m=n;r.default=m},{}],60:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n="00000000-0000-0000-0000-000000000000";r.default=n},{}],61:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=o(e("./validate.js"));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if(!(0,n.default)(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}var a=i;r.default=a},{"./validate.js":71}],62:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;r.default=n},{}],63:[function(e,t,r){let n;Object.defineProperty(r,"__esModule",{value:!0}),r.default=i;const o=new Uint8Array(16);function i(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(o)}},{}],64:[function(e,t,r){function n(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function o(e,t){return e<<t|e>>>32-t}function i(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a);for(let n=0;n<a;++n){const t=new Uint32Array(16);for(let r=0;r<16;++r)t[r]=e[64*n+4*r]<<24|e[64*n+4*r+1]<<16|e[64*n+4*r+2]<<8|e[64*n+4*r+3];s[n]=t}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(let l=0;l<a;++l){const e=new Uint32Array(80);for(let t=0;t<16;++t)e[t]=s[l][t];for(let t=16;t<80;++t)e[t]=o(e[t-3]^e[t-8]^e[t-14]^e[t-16],1);let i=r[0],a=r[1],c=r[2],u=r[3],d=r[4];for(let r=0;r<80;++r){const s=Math.floor(r/20),l=o(i,5)+n(s,a,c,u)+d+t[s]+e[r]>>>0;d=u,u=c,c=o(a,30)>>>0,a=i,i=l}r[0]=r[0]+i>>>0,r[1]=r[1]+a>>>0,r[2]=r[2]+c>>>0,r[3]=r[3]+u>>>0,r[4]=r[4]+d>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var a=i;r.default=a},{}],65:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=o(e("./validate.js"));function o(e){return e&&e.__esModule?e:{default:e}}const i=[];for(let l=0;l<256;++l)i.push((l+256).toString(16).substr(1));function a(e,t=0){const r=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,n.default)(r))throw TypeError("Stringified UUID is invalid");return r}var s=a;r.default=s},{"./validate.js":71}],66:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(e("./rng.js")),o=i(e("./stringify.js"));function i(e){return e&&e.__esModule?e:{default:e}}let a,s,l=0,c=0;function u(e,t,r){let i=t&&r||0;const u=t||new Array(16);let d=(e=e||{}).node||a,f=void 0!==e.clockseq?e.clockseq:s;if(null==d||null==f){const t=e.random||(e.rng||n.default)();null==d&&(d=a=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==f&&(f=s=16383&(t[6]<<8|t[7]))}let h=void 0!==e.msecs?e.msecs:Date.now(),p=void 0!==e.nsecs?e.nsecs:c+1;const m=h-l+(p-c)/1e4;if(m<0&&void 0===e.clockseq&&(f=f+1&16383),(m<0||h>l)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=h,c=p,s=f,h+=122192928e5;const g=(1e4*(268435455&h)+p)%4294967296;u[i++]=g>>>24&255,u[i++]=g>>>16&255,u[i++]=g>>>8&255,u[i++]=255&g;const v=h/4294967296*1e4&268435455;u[i++]=v>>>8&255,u[i++]=255&v,u[i++]=v>>>24&15|16,u[i++]=v>>>16&255,u[i++]=f>>>8|128,u[i++]=255&f;for(let n=0;n<6;++n)u[i+n]=d[n];return t||(0,o.default)(u)}var d=u;r.default=d},{"./rng.js":63,"./stringify.js":65}],67:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(e("./v35.js")),o=i(e("./md5.js"));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v3",48,o.default);r.default=a},{"./md5.js":59,"./v35.js":68}],68:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=c,r.URL=r.DNS=void 0;var n=i(e("./stringify.js")),o=i(e("./parse.js"));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";r.DNS=s;const l="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function c(e,t,r){function i(e,i,s,l){if("string"==typeof e&&(e=a(e)),"string"==typeof i&&(i=(0,o.default)(i)),16!==i.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+e.length);if(c.set(i),c.set(e,i.length),c=r(c),c[6]=15&c[6]|t,c[8]=63&c[8]|128,s){l=l||0;for(let e=0;e<16;++e)s[l+e]=c[e];return s}return(0,n.default)(c)}try{i.name=e}catch(c){}return i.DNS=s,i.URL=l,i}r.URL=l},{"./parse.js":61,"./stringify.js":65}],69:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(e("./rng.js")),o=i(e("./stringify.js"));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t,r){const i=(e=e||{}).random||(e.rng||n.default)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=i[e];return t}return(0,o.default)(i)}var s=a;r.default=s},{"./rng.js":63,"./stringify.js":65}],70:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=i(e("./v35.js")),o=i(e("./sha1.js"));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,n.default)("v5",80,o.default);r.default=a},{"./sha1.js":64,"./v35.js":68}],71:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=o(e("./regex.js"));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return"string"==typeof e&&n.default.test(e)}var a=i;r.default=a},{"./regex.js":62}],72:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=o(e("./validate.js"));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if(!(0,n.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var a=i;r.default=a},{"./validate.js":71}]},{},[9])(9)),zEe.exports}var REe,MEe={};var jEe,LEe={exports:{}};function FEe(){return jEe||(jEe=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(bze){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(k)}),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 k(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 S(e,t){if(!(this instanceof S))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(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var _=[301,302,303,307,308];S.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},e.DOMException=r.DOMException;try{new e.DOMException}catch(T){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 C(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 S(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(bze){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)})}C.polyfill=!0,r.fetch||(r.fetch=C,r.Headers=p,r.Request=x,r.Response=S),e.Headers=p,e.Request=x,e.Response=S,e.fetch=C,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}(LEe,LEe.exports)),LEe.exports}var VEe,qEe={},HEe={exports:{}};function UEe(){return VEe||(VEe=1,(e=HEe).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),HEe.exports;var e}var WEe,$Ee,GEe,YEe={exports:{}},KEe={exports:{}},JEe={exports:{}};function XEe(){return WEe||(WEe=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}(JEe)),JEe.exports}function QEe(){return GEe||(GEe=1,function(e){var t=function(){return $Ee||($Ee=1,e=KEe,t=XEe(),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),KEe.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}(YEe)),YEe.exports}var ZEe,eAe,tAe={exports:{}},rAe={exports:{}};function nAe(){return eAe||(eAe=1,e=tAe,ZEe||(ZEe=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}(rAe)),t=rAe.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),tAe.exports;var e,t}var oAe,iAe,aAe,sAe,lAe={exports:{}};function cAe(){return iAe||(iAe=1,function(e){var t=age();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,n,o,i=t(vge()),a=t(Cge()),s=t(UEe()),l=t(QEe()),c=t(nAe()),u=t((oAe||(oAe=1,r=lAe,n=cge().default,o=UEe(),r.exports=function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)},r.exports.__esModule=!0,r.exports.default=r.exports),lAe.exports)),d=t(XEe()),f=t(uEe()),h=t(mEe()),p=OEe();function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(bze){return!1}}();return function(){var r,n=(0,d.default)(e);if(t){var o=(0,d.default)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return(0,u.default)(this,r)}}var g=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,w=function(e){(0,c.default)(r,e);var t=m(r);function r(e){var n,o=e.disconnectionHandler,a=e.networkInformation,l=e.requestHandler,c=e.url;return(0,i.default)(this,r),n=t.call(this,{disconnectionHandler:o,requestHandler:l,url:c}),g.set((0,s.default)(n),{writable:!0,value:!1}),v.set((0,s.default)(n),{writable:!0,value:function(){return(0,f.default)((0,s.default)(n),y)===(0,f.default)((0,s.default)(n),b).type||n.disconnect()}}),y.set((0,s.default)(n),{writable:!0,value:void 0}),b.set((0,s.default)(n),{writable:!0,value:void 0}),(0,h.default)((0,s.default)(n),b,a),n}return(0,a.default)(r,[{key:"connect",value:function(){if((0,f.default)(this,g))return console.warn("botframework-directlinejs: connect() can only be called once."),Promise.resolve();if((0,h.default)(this,g,!0),(0,f.default)(this,b)){var e=(0,f.default)(this,b).type;if((0,h.default)(this,y,e),"none"===e)return console.warn("botframework-directlinejs: Failed to connect while offline."),Promise.reject(new Error("botframework-directlinejs: Failed to connect while offline."));(0,f.default)(this,b).addEventListener("change",(0,f.default)(this,v))}return(0,l.default)((0,d.default)(r.prototype),"connect",this).call(this)}},{key:"disconnect",value:function(){var e;null===(e=(0,f.default)(this,b))||void 0===e||e.removeEventListener("change",(0,f.default)(this,v)),(0,l.default)((0,d.default)(r.prototype),"disconnect",this).call(this)}}]),r}(p.WebSocketClient);e.default=w}(qEe)),qEe}function uAe(){if(aAe)return QTe;aAe=1;var e=age(),t=cge();Object.defineProperty(QTe,"__esModule",{value:!0}),QTe.DirectLineStreaming=void 0;var r=e(pge()),n=e(function(){if(XTe)return JTe;XTe=1;var e=eEe()();JTe=e;try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}return JTe}()),o=e(uEe()),i=e(mEe()),a=e(kEe()),s=e((SEe||(SEe=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}(_Ee)),_Ee.exports)),l=e(vge()),c=e(Cge()),u=e(Age()),d=Hke(),f=BEe(),h=zke(),p=function(e,r){if(e&&e.__esModule)return e;if(null===e||"object"!==t(e)&&"function"!=typeof e)return{default:e};var n=w(r);if(n&&n.has(e))return n.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}o.default=e,n&&n.set(e,o);return o}(OEe()),m=e((REe||(REe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(){var e={};return e.promise=new Promise(function(t,r){e.reject=r,e.resolve=t}),e};e.default=t}(MEe)),MEe)),g=e(FEe()),v=dAe(),y=e(cAe()),b=["attachments"];function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(w=function(e){return e?r:t})(e)}var x=function(){function e(t,r,n){(0,l.default)(this,e),(0,u.default)(this,"activityQueue",[]),this.subscriber=t,this.connectionStatus$=r,this.shouldQueue=n}var t;return(0,c.default)(e,[{key:"setSubscriber",value:function(e){this.subscriber=e}},{key:"processRequest",value:(t=(0,s.default)(n.default.mark(function e(t,r){var o,i,s,l,c,u,d,f,h;return n.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=(0,a.default)(t.streams),i=o.shift(),e.next=4,i.readAsString();case 4:if(s=e.sent,1===(l=JSON.parse(s)).activities.length){e.next=9;break}return this.subscriber.error(new Error("there should be exactly one activity")),e.abrupt("return",p.StreamingResponse.create(500));case 9:if(c=l.activities[0],!(o.length>0)){e.next=21;break}u=(0,a.default)(c.attachments);case 12:if(!(d=o.shift())){e.next=20;break}return e.next=15,d.readAsString();case 15:f=e.sent,h="data:text/plain;base64,"+f,u.push({contentType:d.contentType,contentUrl:h}),e.next=12;break;case 20:c.attachments=u;case 21:return this.shouldQueue()?this.activityQueue.push(c):this.subscriber.next(c),e.abrupt("return",p.StreamingResponse.create(200));case 23:case"end":return e.stop()}},e,this)})),function(e,r){return t.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()}}]),e}(),k=new WeakMap,S=function(){function e(t){var r=this;(0,l.default)(this,e),(0,u.default)(this,"connectionStatus$",new d.BehaviorSubject(v.ConnectionStatus.Uninitialized)),(0,u.default)(this,"_botAgent",""),k.set(this,{writable:!0,value:void 0});var o=null==t?void 0:t.networkInformation;void 0===o||"function"==typeof o.addEventListener&&"function"==typeof o.removeEventListener&&"string"==typeof o.type?(0,i.default)(this,k,o):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(v.ConnectionStatus.ExpiredToken)}),this.domain=t.domain,t.conversationId&&(this.conversationId=t.conversationId),this._botAgent=this.getBotAgent(t.botAgent),this.queueActivities=!0,this.activity$=h.Observable.create(function(){var e=(0,s.default)(n.default.mark(function e(t){return n.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:r.activitySubscriber=t,r.theStreamHandler=new x(t,r.connectionStatus$,function(){return r.queueActivities}),r.connectDeferred.resolve();case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()).share(),this.connectWithRetryAsync()}var t,a,w,S;return(0,c.default)(e,[{key:"reconnect",value:function(e){var t=e.conversationId,r=e.token;if(this.connectionStatus$.getValue()===v.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(v.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:(S=(0,s.default)(n.default.mark(function e(){var t,r,o,i;return n.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=4,this.waitUntilOnline();case 4:t=0;case 5:if(!(t<3)){e.next=30;break}return t++,e.next=9,new Promise(function(e){return setTimeout(e,9e5)});case 9:return e.prev=9,e.next=12,(0,g.default)("".concat(this.domain,"/tokens/refresh"),{method:"POST",headers:this.commonHeaders()});case 12:if(!(r=e.sent).ok){e.next=22;break}return t=0,e.next=17,r.json();case 17:o=e.sent,i=o.token,this.token=i,e.next=23;break;case 22: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 23:e.next=28;break;case 25:e.prev=25,e.t0=e.catch(9),console.warn("Refresh attempt #".concat(t," threw an exception: ").concat(e.t0));case 28:e.next=5;break;case 30:console.error("Retries exhausted"),this.streamConnection.disconnect();case 32:case"end":return e.stop()}},e,this,[[9,25]])})),function(){return S.apply(this,arguments)})},{key:"postActivity",value:function(e){var t=this;if(this.connectionStatus$.value===v.ConnectionStatus.Ended||this.connectionStatus$.value===v.ConnectionStatus.FailedToConnect)return h.Observable.throw(new Error("Connection is closed"));if("message"===e.type&&e.attachments&&e.attachments.length>0)return this.postMessageWithAttachments(e);var r=h.Observable.create(function(){var r=(0,s.default)(n.default.mark(function r(o){var i,a,s,l,c,u;return n.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return(i=p.StreamingRequest.create("POST","/v3/directline/conversations/"+t.conversationId+"/activities")).setBody(JSON.stringify(e)),r.prev=2,r.next=5,t.streamConnection.send(i);case 5:if(200===(a=r.sent).statusCode){r.next=8;break}throw new Error("PostActivity returned "+a.statusCode);case 8:if(1===(s=a.streams.length)){r.next=11;break}throw new Error("Expected one stream but got "+s);case 11:return r.next=13,a.streams[0].readAsString();case 13:return l=r.sent,c=JSON.parse(l),u=c.Id,o.next(u),r.abrupt("return",o.complete());case 19:return r.prev=19,r.t0=r.catch(2),console.warn(r.t0),t.streamConnection.disconnect(),r.abrupt("return",o.error(r.t0));case 24:case"end":return r.stop()}},r,null,[[2,19]])}));return function(e){return r.apply(this,arguments)}}());return r}},{key:"postMessageWithAttachments",value:function(e){var t=this,o=e.attachments,i=(0,r.default)(e,b);return h.Observable.create(function(e){var r=[];(0,s.default)(n.default.mark(function a(){var l,c,u,d,h,m;return n.default.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,Promise.all(o.map(function(){var e=(0,s.default)(n.default.mark(function e(t){var r,o;return n.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t,e.next=3,(0,g.default)(r.contentUrl);case 3:if(!(o=e.sent).ok){e.next=12;break}return e.next=7,o.arrayBuffer();case 7:return e.t0=e.sent,e.t1=r,e.abrupt("return",{arrayBuffer:e.t0,media:e.t1});case 12:throw new Error("...");case 13:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 3:return a.sent.forEach(function(e){var t=e.arrayBuffer,n=e.media,o=f.Buffer.from(t),i=new p.SubscribableStream;i.write(o);var a=new p.HttpContent({type:n.contentType,contentLength:o.length},i);r.push(a)}),l="/v3/directline/conversations/".concat(t.conversationId,"/users/").concat(i.from.id,"/upload"),c=p.StreamingRequest.create("PUT",l),(u=new p.SubscribableStream).write(JSON.stringify(i),"utf-8"),c.addStream(new p.HttpContent({type:"application/vnd.microsoft.activity",contentLength:u.length},u)),r.forEach(function(e){return c.addStream(e)}),a.next=13,t.streamConnection.send(c);case 13:if(!(d=a.sent).streams||1===d.streams.length){a.next=18;break}e.error(new Error("Invalid stream count ".concat(d.streams.length))),a.next=24;break;case 18:return a.next=20,d.streams[0].readAsJson();case 20:h=a.sent,m=h.Id,e.next(m),e.complete();case 24:a.next=29;break;case 26:a.prev=26,a.t0=a.catch(0),e.error(a.t0);case 29:case"end":return a.stop()}},a,null,[[0,26]])}))()})}},{key:"waitUntilOnline",value:(w=(0,s.default)(n.default.mark(function e(){var t=this;return n.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===v.ConnectionStatus.Online)return e()},function(e){return r(e)})}));case 1:case"end":return e.stop()}},e)})),function(){return w.apply(this,arguments)})},{key:"connectAsync",value:(a=(0,s.default)(n.default.mark(function e(){var t,r,i,a,l,c=this;return n.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((t=new RegExp("^http(s?)")).test(this.domain)){e.next=3;break}throw"Domain must begin with http or https";case 3:return r={token:this.token},this.conversationId&&(r.conversationId=this.conversationId),i=new AbortController,a=new URLSearchParams(r).toString(),l="".concat(this.domain.replace(t,"ws$1"),"/conversations/connect?").concat(a),e.abrupt("return",new Promise(function(){var e=(0,s.default)(n.default.mark(function e(t,r){var a,s,u,d;return n.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,c.streamConnection=new y.default({disconnectionHandler:t,networkInformation:(0,o.default)(c,k),requestHandler:{processRequest:function(e){if(i.signal.aborted)throw new Error("Cannot process streaming request, `streamingConnection` should be disconnected.");return c.theStreamHandler.processRequest(e)}},url:l}),c.queueActivities=!0,e.next=5,c.streamConnection.connect();case 5:return a=p.StreamingRequest.create("POST","/v3/directline/conversations"),e.next=8,c.streamConnection.send(a);case 8:if(200===(s=e.sent).statusCode){e.next=11;break}throw new Error("Connection response code "+s.statusCode);case 11:if(1===s.streams.length){e.next=13;break}throw new Error("Expected 1 stream but got "+s.streams.length);case 13:return e.next=15,s.streams[0].readAsString();case 15:return u=e.sent,d=JSON.parse(u),c.conversationId=d.conversationId,c.connectionStatus$.next(v.ConnectionStatus.Online),e.next=21,c.waitUntilOnline();case 21:c.theStreamHandler.flush(),c.queueActivities=!1,e.next=28;break;case 25:e.prev=25,e.t0=e.catch(0),r(e.t0);case 28:case"end":return e.stop()}},e,null,[[0,25]])}));return function(t,r){return e.apply(this,arguments)}}()).finally(function(){return i.abort()}));case 9:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"connectWithRetryAsync",value:(t=(0,s.default)(n.default.mark(function e(){var t,r,o=this;return n.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(this.connectDeferred=(0,m.default)()).promise;case 2:t=3,this.connectionStatus$.next(v.ConnectionStatus.Connecting);case 4:if(!(t>0)){e.next=27;break}return t--,r=Date.now(),e.prev=7,e.next=10,this.connectAsync();case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(7),console.error(e.t0);case 15:if(this.connectionStatus$.getValue()!==v.ConnectionStatus.Ended){e.next=17;break}return e.abrupt("return");case 17:if(this.connectionStatus$.getValue()!==v.ConnectionStatus.Connecting&&this.connectionStatus$.next(v.ConnectionStatus.Connecting),!(6e4<Date.now()-r)){e.next=22;break}t=3,e.next=25;break;case 22:if(!(t>0)){e.next=25;break}return e.next=25,new Promise(function(e){return setTimeout(e,o.getRetryDelay())});case 25:e.next=4;break;case 27:this.connectionStatus$.next(v.ConnectionStatus.FailedToConnect);case 28:e.next=0;break;case 30:case"end":return e.stop()}},e,this,[[7,12]])})),function(){return t.apply(this,arguments)})},{key:"getRetryDelay",value:function(){return Math.floor(3e3+12e3*Math.random())}}]),e}();return QTe.DirectLineStreaming=S,QTe}function dAe(){return sAe||(sAe=1,function(e){var r=age(),n=cge();Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DirectLineStreaming",{enumerable:!0,get:function(){return h.DirectLineStreaming}}),e.DirectLine=e.ConnectionStatus=void 0;var o=r(pge()),i=r(vge()),a=r(Cge()),s=r(Age());Lxe(),Fxe||(Fxe=1,function(e){var t,r=function(){try{if(e.URLSearchParams&&"bar"===new e.URLSearchParams("foo=bar").get("foo"))return e.URLSearchParams}catch(bze){}return null}(),n=r&&"a=1"===new r({a:1}).toString(),o=r&&"+"===new r("s=%2B").get("s"),i="__URLSearchParams__",a=!r||((t=new r).append("s"," &"),"s=+%26"===t.toString()),s=d.prototype,l=!(!e.Symbol||!e.Symbol.iterator);if(!(r&&n&&o&&a)){var c;s.append=function(e,t){g(this[i],e,t)},s.delete=function(e){delete this[i][e]},s.get=function(e){var t=this[i];return this.has(e)?t[e][0]:null},s.getAll=function(e){var t=this[i];return this.has(e)?t[e].slice(0):[]},s.has=function(e){return y(this[i],e)},s.set=function(e,t){this[i][e]=[""+t]},s.toString=function(){var e,t,r,n,o=this[i],a=[];for(t in o)for(r=f(t),e=0,n=o[t];e<n.length;e++)a.push(r+"="+f(n[e]));return a.join("&")},o&&r&&!n&&e.Proxy?(c=new Proxy(r,{construct:function(e,t){return new e(new d(t[0]).toString())}})).toString=Function.prototype.toString.bind(d):c=d,Object.defineProperty(e,"URLSearchParams",{value:c});var u=e.URLSearchParams.prototype;u.polyfill=!0,u.forEach=u.forEach||function(e,t){var r=m(this.toString());Object.getOwnPropertyNames(r).forEach(function(n){r[n].forEach(function(r){e.call(t,r,n,this)},this)},this)},u.sort=u.sort||function(){var e,t,r,n=m(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])}},u.keys=u.keys||function(){var e=[];return this.forEach(function(t,r){e.push(r)}),p(e)},u.values=u.values||function(){var e=[];return this.forEach(function(t){e.push(t)}),p(e)},u.entries=u.entries||function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),p(e)},l&&(u[e.Symbol.iterator]=u[e.Symbol.iterator]||u.entries)}function d(e){((e=e||"")instanceof URLSearchParams||e instanceof d)&&(e=e.toString()),this[i]=m(e)}function f(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,function(e){return t[e]})}function h(e){return e.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,function(e){return decodeURIComponent(e)})}function p(t){var r={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return l&&(r[e.Symbol.iterator]=function(){return r}),r}function m(e){var t={};if("object"==typeof e)if(v(e))for(var r=0;r<e.length;r++){var n=e[r];if(!v(n)||2!==n.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");g(t,n[0],n[1])}else for(var o in e)e.hasOwnProperty(o)&&g(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?g(t,h(s.slice(0,l)),h(s.slice(l+1))):s&&g(t,h(s),"")}}return t}function g(e,t,r){var n="string"==typeof r?r:null!=r&&"function"==typeof r.toString?r.toString():JSON.stringify(r);y(e,t)?e[t].push(n):e[t]=[n]}function v(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}function y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(void 0!==t?t:"undefined"!=typeof window?window:Vxe));var l=Hke(),c=zke(),u=rSe(),d=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var r=m(t);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}o.default=e,r&&r.set(e,o);return o}(aSe);!function(){if(ESe)return lSe;ESe=1;var e=zke(),t=ISe();e.Observable.prototype.catch=t._catch,e.Observable.prototype._catch=t._catch}(),function(){if(WSe)return NSe;WSe=1;var e=zke(),t=YSe();e.Observable.prototype.combineLatest=t.combineLatest}(),function(){if(XSe)return QSe;XSe=1;var e=zke(),t=t_e();e.Observable.prototype.count=t.count}(),p_e(),function(){if(v_e)return y_e;v_e=1;var e=zke(),t=x_e();e.Observable.prototype.do=t._do,e.Observable.prototype._do=t._do}(),function(){if(__e)return C_e;__e=1;var e=zke(),t=A_e();e.Observable.prototype.filter=t.filter}(),R_e(),U_e(),function(){if(G_e)return Y_e;G_e=1;var e=zke(),t=X_e();e.Observable.prototype.concatMap=t.concatMap}(),function(){if(eCe)return tCe;eCe=1;var e=zke(),t=oCe();e.Observable.prototype.retryWhen=t.retryWhen}(),function(){if(uCe)return dCe;uCe=1;var e=zke(),t=bCe();e.Observable.prototype.share=t.share}(),PCe(),MCe(),qCe(),iTe(),mTe(),wTe(),function(){if(STe)return _Te;STe=1;var e=zke(),t=ETe();e.Observable.throw=t._throw}();var f=r(YTe()),h=uAe(),p=["contentUrl"];function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(m=function(e){return e?r:t})(e)}function g(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 v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){(0,s.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var y,b;e.ConnectionStatus=y,(b=y||(e.ConnectionStatus=y={}))[b.Uninitialized=0]="Uninitialized",b[b.Connecting=1]="Connecting",b[b.Online=2]="Online",b[b.ExpiredToken=3]="ExpiredToken",b[b.FailedToConnect=4]="FailedToConnect",b[b.Ended=5]="Ended";var w=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()}})},x=9e5,k=new Error("expired token"),S=new Error("conversation ended"),_=new Error("failed to connect"),C=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))},T=function(){function e(t){var r,n;(0,i.default)(this,e),(0,s.default)(this,"connectionStatus$",new l.BehaviorSubject(y.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.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:w(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(y.ExpiredToken,y.FailedToConnect,5),this.activity$=(this.webSocket?this.webSocketActivity$():this.pollingGetActivity$()).share()}return(0,a.default)(e,[{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===y.Uninitialized?(e.connectionStatus$.next(y.Connecting),e.token&&e.streamUrl?(e.connectionStatus$.next(y.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(y.Online)},function(t){e.connectionStatus$.next(y.FailedToConnect)}).map(function(e){return t})):c.Observable.of(t,e.services.scheduler)}).filter(function(e){return e!=y.Uninitialized&&e!=y.Connecting}).flatMap(function(t){switch(t){case y.Ended:return c.Observable.throw(S,e.services.scheduler);case y.FailedToConnect:return c.Observable.throw(_,e.services.scheduler);case y.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!=y.Ended&&e!=y.FailedToConnect&&this.connectionStatus$.next(y.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:v({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(x,this.services.scheduler).flatMap(function(t){return e.refreshToken()}).subscribe(function(t){C("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:v({},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()===y.ExpiredToken&&this.connectionStatus$.next(y.Online)}},{key:"end",value:function(){this.tokenRefreshSubscription&&this.tokenRefreshSubscription.unsubscribe();try{this.connectionStatus$.next(y.Ended)}catch(bze){if(bze===S)return;throw bze}}},{key:"getSessionId",value:function(){var e=this;return C("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:v({"Content-Type":"application/json"},e.commonHeaders())}).map(function(e){return e&&e.response&&e.response.sessionId?(C("getSessionId response: "+e.response.sessionId),e.response.sessionId):""}).catch(function(t){return C("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.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):(C("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:v({"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 v(v({},e),{},{name:i[t]})});return this.checkConnection(!0).flatMap(function(n){return(t=new FormData).append("activity",new Blob([JSON.stringify(v(v({},e),{},{attachments:a.map(function(e){return e.contentUrl,v({},(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:v({},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===k?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()===y.Online){var n=Date.now();e.services.ajax({headers:v({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(y.ExpiredToken),setTimeout(function(){return r.next(null)},e.pollingInterval);break;case 404:e.connectionStatus$.next(y.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){C("creating WebSocket",e.streamUrl);var r,n,o=new e.services.WebSocket(e.streamUrl);return o.onopen=function(t){C("WebSocket open",t),r=c.Observable.interval(e.timeout,e.services.scheduler).subscribe(function(e){try{o.send("")}catch(bze){C("Ping error",bze)}})},o.onclose=function(e){C("WebSocket close",e),r&&r.unsubscribe(),n||t.error(e),n=!0},o.onerror=function(e){C("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:v({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(S,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.6",")")}},{key:"setUserId",value:function(e){if(this.connectionStatus$.getValue()===y.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(bze){if(bze instanceof d.InvalidTokenError)return}}}]),e}();e.DirectLine=T}(oge)),oge}var fAe=dAe();let hAe=class{constructor(e){this.plugins=[],this.pluginOnDestroy=[],this.options={...W,...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 pAe={},mAe=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 pAe)return;pAe[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)})};class gAe 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(bze){}return e}(),this.buildInfo=MW();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 vAe(e,t){const r=Date.now();try{const n=await e(),o=Date.now()-r;return t.operation&&o>1e3&&z.info(`Slow operation detected: ${t.operation} took ${o}ms`),n}catch(n){const e=Date.now()-r,o=new gAe(`Operation failed: ${t.operation||"unknown"}`,n instanceof Error?n:new Error(String(n)),{...t,duration:e,operationStartTime:new Date(r).toISOString()});throw XW(t.component||"UnknownComponent",o,o.toJSON()),o}}function yAe(e,t){return e.catch(e=>{const r=new gAe(`Promise rejected in ${t.operation}`,e instanceof Error?e:new Error(String(e)),{...t,metadata:{...t.metadata,promiseCreatedAt:(new Date).toISOString(),wasTracked:!0}});throw z.group(`🔍 Tracked Promise Rejection: ${t.operation}`),r})}const bAe=3,wAe=1e3,xAe=1e4,kAe=2,SAe=(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")),_Ae=e=>new Promise(t=>setTimeout(t,e)),CAe=(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},TAe=async()=>vAe(async()=>{const e="https://webassistant-prod.microsoft.com/directline/v2/ai-assistant/token",t=window.location.hostname.includes("wwwdev")||window.location.hostname.includes("localhost")||window.location.hostname.includes("uca.local")||window.location.hostname.includes("webassistant-dev"),r=new URLSearchParams(window.location.search).get("botEnvironment");let n="meprod-df89d4a3-358e-4db1-b79d-702c8acbce18";t&&r&&(n=r);const o="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)}),i=Date.now();if(!n)throw new Error("VITE_BOT_ENVIRONMENT environment variable is not configured");const a=new URLSearchParams({tuid:o,botEnvironment:n});let s=!1,l=500,c="",u={token:"",created:0,expiresIn:0,tuid:""};const d=`${e}?${a.toString()}`;let f=null;for(let g=1;g<=bAe;g++){const e=new AbortController,t=setTimeout(()=>{e.abort()},3e4);try{const r=await fetch(d,{method:"GET",headers:{"ms-cv":"CASMicrosoft0000.0","Content-Type":"application/json","User-Agent":"UnifiedChatAssistant/1.0"},signal:e.signal});if(clearTimeout(t),!r)throw new Error("No response received from token endpoint");let n;if(l=r.status,"function"==typeof r.text){c=await r.text();try{n=JSON.parse(c)}catch(p){throw new Error(`Invalid JSON response from token endpoint. Status: ${l}, Response: ${c.substring(0,200)}`)}}else{if("function"!=typeof r.json)throw new Error(`Invalid response object from token endpoint. Status: ${l}`);n=await r.json(),c=JSON.stringify(n)}if(!r.ok){let e=`Failed to fetch DirectLine token (${l})`;switch(l){case 400:e=`Bad request to token endpoint. Check botEnvironment parameter. Response: ${JSON.stringify(n)}`;break;case 401:e=`Unauthorized access to token endpoint. Check API credentials. Response: ${JSON.stringify(n)}`;break;case 403:e=`Forbidden access to token endpoint. Check permissions. Response: ${JSON.stringify(n)}`;break;case 404:e=`Token endpoint not found. Check VITE_DIRECTLINE_TOKEN_URL configuration. Response: ${JSON.stringify(n)}`;break;case 429:e=`Rate limited by token endpoint. Too many requests. Response: ${JSON.stringify(n)}`;break;case 500:case 502:case 503:case 504:e=`Server error from token endpoint (${l}). This may be temporary. Response: ${JSON.stringify(n)}`;break;default:e=`Unexpected error from token endpoint (${l}). Response: ${JSON.stringify(n)}`}const t=new Error(e);if(f=t,SAe(t,l)&&g<bAe){const e=Math.min(wAe*Math.pow(kAe,g-1),xAe);await _Ae(e);continue}throw t}if(!n.token)throw new Error(`Invalid response structure: missing 'token' field. Response: ${JSON.stringify(n)}`);if("number"!=typeof n.expires_in||n.expires_in<=0)throw new Error(`Invalid response structure: invalid 'expires_in' field. Response: ${JSON.stringify(n)}`);s=!0;const{token:a,expires_in:h}=n;u={token:a,created:Math.floor(i/1e3),expiresIn:h,tuid:o};break}catch(m){if(f=m,SAe(f,l)&&g<bAe){const e=Math.min(wAe*Math.pow(kAe,g-1),xAe);await _Ae(e);continue}break}finally{clearTimeout(t)}}if(f&&!s){const t=CAe(f,d),r={operation:"fetchDirectLineToken",botEnvironment:n,requestParams:a.toString(),requestUrl:e,statusCode:l||"unknown",duration:Date.now()-i,responseText:c?c.substring(0,500):"",errorType:f instanceof Error?f.constructor.name:typeof f,errorMessage:f instanceof Error?f.message:String(f),attemptsUsed:bAe,isTimeoutError:f instanceof Error&&"AbortError"===f.name,isNetworkError:f instanceof Error&&(f.message.includes("fetch")||f.message.includes("network")||f.message.includes("Failed to fetch")),userAgent:navigator.userAgent,connectionType:navigator.connection?.effectiveType||"unknown",networkDiagnosis:t};throw ZC(kT,f,r),f}const h=Date.now()-i;return QW(wT,L,kT,h,s,l,e),u},{operation:"fetchDirectLineToken",component:L,metadata:{botEnvironment:"meprod-df89d4a3-358e-4db1-b79d-702c8acbce18",hasTokenUrl:!0,tokenUrl:"https://webassistant-prod.microsoft.com/directline/v2/ai-assistant/token"}}),{log:EAe,logError:AAe}=z.withKind("directLineThunks"),PAe=Hx("directLine/initializeToken",async(e,{dispatch:t,rejectWithValue:r})=>{try{const{setDirectLineToken:e}=await mAe(async()=>{const{setDirectLineToken:e}=await Promise.resolve().then(()=>IC);return{setDirectLineToken:e}},void 0);let r=null;const n=mC();return n?.ocrAIChatToken&&n?.ocrAIChatTokenCreated&&n?.tuid&&(r={token:n.ocrAIChatToken,created:n.ocrAIChatTokenCreated,tuid:n.tuid,expiresIn:3600}),(!r||r&&!yC(r))&&(EAe("Fetching new DirectLine token"),r=await TAe()),t(e(r)),t(IAe(r.expiresIn)),r}catch(n){AAe("Failed to initialize DirectLine token:",n);const{addMessage:e}=await mAe(async()=>{const{addMessage:e}=await Promise.resolve().then(()=>GC);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)}}),IAe=Hx("directLine/scheduleTokenRefresh",async(e,{dispatch:t})=>{const{setDirectLineToken:r}=await mAe(async()=>{const{setDirectLineToken:e}=await Promise.resolve().then(()=>IC);return{setDirectLineToken:e}},void 0),n=1e3*(e-180);if(n>0)return new Promise((e,o)=>{setTimeout(async()=>{try{EAe("⏰ Executing scheduled token refresh");let n=await(async()=>vAe(async()=>{const e=Xme.getState(),t=SC(e),r=TC(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<=bAe;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(SAe(t,i)&&h<bAe){const e=Math.min(wAe*Math.pow(kAe,h-1),xAe);await _Ae(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(SAe(c,i)&&h<bAe){const e=Math.min(wAe*Math.pow(kAe,h-1),xAe);await _Ae(e);continue}break}if(c&&!o){const e=CAe(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:bAe,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 ZC(ST,c,o),c}const u=Date.now()-n;return QW(xT,F,ST,u,o,i,l),s},{operation:"refreshDirectLineToken",component:F,metadata:{hasCurrentToken:!!SC(Xme.getState()),currentTuid:TC(Xme.getState())}}))();(!n||n&&!yC(n))&&(EAe("Refresh token failed, fetching new DirectLine token"),n=await TAe()),t(r(n)),e(n)}catch(n){AAe("Background token refresh failed:",n),t(jC({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")}),{log:BAe,logError:NAe}=z.withKind("AssistantOnLoad");function DAe(){BAe("Running assistant onload tasks..."),function(){try{const e=e=>{if("keydown"===e.type){const t=e;if("Enter"!==t.key&&" "!==t.key)return}e.preventDefault();const t=new CustomEvent(q,{detail:{value:ppe.chatActionTypeLinkText}});document.dispatchEvent(t)},t=document.querySelectorAll($);t.length>0&&BAe(`Found ${t.length} 'Chat Now' triggers to override.`),t.forEach(t=>{const r=t.cloneNode(!0);r.addEventListener("click",e),"BUTTON"!==r.tagName&&r.addEventListener("keydown",e),t.replaceWith(r)})}catch(e){NAe("Failed to apply Chat Now trigger overrides",e)}}()}const{log:zAe,logWarn:OAe,logError:RAe}=z.withKind("useAssistantInitialization"),MAe=e=>{const t=g.useRef(null),r=g.useRef(!1),{setDrawerOpen:n}=Pre(),{sendMessageWithTelemetry:o}=E2(),i=yw();let a=performance.now(),s=!1;const l=async()=>{if(e){if(!r.current)return r.current=!0,a=performance.now(),vAe(async()=>{const r=e?.mode||M.Drawer;await yAe(Xme.dispatch(NC(r)),{operation:"initializeDrawerState",component:"AssistantInitialization"}),function(e){try{if(KW)return;$W.trackEvent({name:fT,properties:{theme:e}}),KW=!0}catch(t){console.error("Failed to track theme change:",t)}}(e?.theme||R.Day),function(e){try{if(JW)return;$W.trackEvent({name:hT,properties:{mode:e}}),JW=!0}catch(t){console.error("Failed to track mode change:",t)}}(e?.mode||M.Drawer);const n=Xme.getState().optionsProvider?.options;(!n?.partnerId||"test"===n.partnerId||e?.partnerId!==n.partnerId)&&Xme.dispatch(Zx(e));const o=e?.partnerId||"default",i=n$[o];i&&Xme.dispatch(YC.setPartnerConfig({partnerId:i.partnerId||o,currentPromptId:i.currentPromptId,currentLocale:i.currentLocale}));const a=fC();gC({[nC]:a});let s=await yAe(c(e),{operation:"initializeDirectLineProvider",component:"AssistantInitialization"});if(await yAe(u(e),{operation:"initializeLivepersonProvider",component:"AssistantInitialization"}),s?.token){zAe("Initializing assistant with DirectLine token"),t.current=new hAe(e);const r=new fAe.DirectLine({token:s.token});Xme.dispatch(function({directLine:e,userID:t,username:r}){return{type:hre,payload:{directLine:e,userID:t,username:r}}}({directLine:r,userID:s.tuid,username:""})),await yAe(t.current.initialize(),{operation:"assistantInitialize",component:"AssistantInitialization"}),zAe("✅ Assistant initializationed")}else OAe("⚠ No token or options available for assistant initialization")},{operation:"initializeAssistant",component:"useAssistantInitialization",metadata:{mode:e?.mode,theme:e?.theme}}).catch(e=>{RAe("❌ Failed to initialize assistant:",e),r.current=!1});zAe("Skipping initialization - already initialized",{hasAssistant:!!t.current})}else zAe("Skipping initialization - no options provided")},c=async e=>vAe(async()=>{await yAe(Xme.dispatch(PAe()),{operation:"initializeTokenDirectLine",component:"DirectLineProvider"});const e=Xme.getState(),t=SC(e),r=TC(e);if(t)return zAe("DirectLine token available, proceeding with initialization"),{token:t,tuid:r};OAe("⚠ No DirectLine token available for assistant initialization")},{operation:"initializeDirectLineProvider",component:"useAssistantInitialization"}),u=async e=>vAe(async()=>{zAe("Initializing LivePerson provider",e);const t=mC(),r=t?.lpJWT||null,n=t?.lpOpenConvs&&Object.keys(t.lpOpenConvs)[0]||null,o=t?.lpEngagementSession?.account||null;zAe("LivePerson cookie data check",{hasCookie:!!t,hasJWT:!!r,conversationId:n,accountId:o});!!o&&!!n&&!!r?(zAe("Found sufficient LivePerson session data, dispatching initLivePersonChat"),Xme.dispatch(x2.setLivePersonData({accountId:o})),Xme.dispatch(x2.initLivePersonChat())):zAe("Insufficient LivePerson session data for automatic reconnection",{missingData:{accountId:!o,conversationId:!n,jwt:!r}})},{operation:"initializeLivepersonProvider",component:"useAssistantInitialization",metadata:{hasDirectConnectionData:!1}}),d=()=>new Promise((e,t)=>{const r=document.querySelector("#unified-chat-assistant");if(!r)return void t(new Error("uca element not found. Cannot observe for welcome message."));if(r.querySelector(".uca-chat-message-bubble"))return e(),void(s||(s=!0,a=performance.now()-a,HW({name:yT,measurements:{timeToFirstMessage:a}})));new MutationObserver((t,r)=>{for(const n of t)for(const t of n.addedNodes)if(t instanceof HTMLElement){if(t.querySelector(".uca-chat-message-bubble"))return r.disconnect(),e(),void(s||(s=!0,a=performance.now()-a,HW({name:yT,measurements:{timeToFirstMessage:a}})))}}).observe(r,{childList:!0,subtree:!0})});return g.useEffect(()=>{let e=!0;(async()=>{if(e){await l(),DAe();try{await d()}catch(t){RAe("Error waiting for welcome message to render during initialization:",t)}}})();const a=e=>{zAe("Send message event triggered",e)},s=async e=>{e.preventDefault();const t=document.querySelector("#web-ai-assistant-experience #waaModern");if(t&&t.hidden||!t)return;const{detail:r}=e,i=r?.value?.toString().trim(),a=document.querySelector(".ai-chat-banner .ai-search input[type='search']");if(a&&(a.value=""),i){n(!0);try{await d()}catch(s){return void RAe("Error waiting for welcome message to render:",s)}o(i,"text",{}),setTimeout(()=>{const e=new CustomEvent("onProactivePromptFocusRequest");document.dispatchEvent(e)},300)}},c=e=>{i(YC.handlePromptTrigger(e.detail))};return document.addEventListener(V,a),document.addEventListener(q,s),window.addEventListener(H,c),()=>{e=!1,t.current&&(zAe("Cleaning up assistant instance"),t.current.destroy(),t.current=null),document.removeEventListener(V,a),document.removeEventListener(q,s),window.removeEventListener(H,c),r.current=!1,r.current=!1}},[e,i]),{assistantRef:t,initializeAssistant:l}},jAe=()=>Zb(e=>e.optionsProvider.options);let LAe=null,FAe="",VAe=0;const qAe=(e,t="polite")=>{const r=Date.now();if(e===FAe&&r-VAe<500)return;FAe=e,VAe=r;const n=(LAe&&document.body.contains(LAe)||(LAe=document.createElement("div"),LAe.setAttribute("aria-live","polite"),LAe.setAttribute("aria-atomic","false"),LAe.setAttribute("class","uca-screen-reader-only"),LAe.setAttribute("id","uca-global-live-region"),LAe.setAttribute("aria-relevant","additions text"),LAe.setAttribute("role","log"),LAe.style.position="absolute",LAe.style.left="-10000px",LAe.style.width="1px",LAe.style.height="1px",LAe.style.overflow="hidden",document.body.appendChild(LAe)),LAe);n.setAttribute("aria-live",t),n.textContent="",setTimeout(()=>{n&&(n.textContent=e)},100)},HAe="Bot is typing...",UAe="An error occurred",WAe=()=>qAe(HAe),$Ae=()=>{LAe&&(LAe.textContent="")};function GAe(e){return e?e.replace(/\s+/g," ").trim().substring(0,100).concat(e.length>100?"...":""):""}var YAe,KAe;function JAe(){return YAe.apply(null,arguments)}function XAe(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function QAe(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function ZAe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ePe(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(ZAe(e,t))return!1;return!0}function tPe(e){return void 0===e}function rPe(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function nPe(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function oPe(e,t){var r,n=[],o=e.length;for(r=0;r<o;++r)n.push(t(e[r],r));return n}function iPe(e,t){for(var r in t)ZAe(t,r)&&(e[r]=t[r]);return ZAe(t,"toString")&&(e.toString=t.toString),ZAe(t,"valueOf")&&(e.valueOf=t.valueOf),e}function aPe(e,t,r,n){return EBe(e,t,r,n,!0).utc()}function sPe(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 lPe(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());return n&&(t=sPe(e),r=KAe.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 cPe(e){var t=aPe(NaN);return null!=e?iPe(sPe(t),e):sPe(t).userInvalidated=!0,t}KAe=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 uPe=JAe.momentProperties=[],dPe=!1;function fPe(e,t){var r,n,o,i=uPe.length;if(tPe(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),tPe(t._i)||(e._i=t._i),tPe(t._f)||(e._f=t._f),tPe(t._l)||(e._l=t._l),tPe(t._strict)||(e._strict=t._strict),tPe(t._tzm)||(e._tzm=t._tzm),tPe(t._isUTC)||(e._isUTC=t._isUTC),tPe(t._offset)||(e._offset=t._offset),tPe(t._pf)||(e._pf=sPe(t)),tPe(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)tPe(o=t[n=uPe[r]])||(e[n]=o);return e}function hPe(e){fPe(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===dPe&&(dPe=!0,JAe.updateOffset(this),dPe=!1)}function pPe(e){return e instanceof hPe||null!=e&&null!=e._isAMomentObject}function mPe(e){!1===JAe.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function gPe(e,t){var r=!0;return iPe(function(){if(null!=JAe.deprecationHandler&&JAe.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])ZAe(arguments[0],i)&&(n+=i+": "+arguments[0][i]+", ");n=n.slice(0,-2)}else n=arguments[o];a.push(n)}mPe(e+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),r=!1}return t.apply(this,arguments)},t)}var vPe,yPe={};function bPe(e,t){null!=JAe.deprecationHandler&&JAe.deprecationHandler(e,t),yPe[e]||(mPe(t),yPe[e]=!0)}function wPe(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function xPe(e,t){var r,n=iPe({},e);for(r in t)ZAe(t,r)&&(QAe(e[r])&&QAe(t[r])?(n[r]={},iPe(n[r],e[r]),iPe(n[r],t[r])):null!=t[r]?n[r]=t[r]:delete n[r]);for(r in e)ZAe(e,r)&&!ZAe(t,r)&&QAe(e[r])&&(n[r]=iPe({},n[r]));return n}function kPe(e){null!=e&&this.set(e)}JAe.suppressDeprecationWarnings=!1,JAe.deprecationHandler=null,vPe=Object.keys?Object.keys:function(e){var t,r=[];for(t in e)ZAe(e,t)&&r.push(t);return r};function SPe(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 _Pe=/(\[[^\[]*\])|(\\)?([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,CPe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,TPe={},EPe={};function APe(e,t,r,n){var o=n;"string"==typeof n&&(o=function(){return this[n]()}),e&&(EPe[e]=o),t&&(EPe[t[0]]=function(){return SPe(o.apply(this,arguments),t[1],t[2])}),r&&(EPe[r]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function PPe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function IPe(e,t){return e.isValid()?(t=BPe(t,e.localeData()),TPe[t]=TPe[t]||function(e){var t,r,n=e.match(_Pe);for(t=0,r=n.length;t<r;t++)EPe[n[t]]?n[t]=EPe[n[t]]:n[t]=PPe(n[t]);return function(t){var o,i="";for(o=0;o<r;o++)i+=wPe(n[o])?n[o].call(t,e):n[o];return i}}(t),TPe[t](e)):e.localeData().invalidDate()}function BPe(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}for(CPe.lastIndex=0;r>=0&&CPe.test(e);)e=e.replace(CPe,n),CPe.lastIndex=0,r-=1;return e}var NPe={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 DPe(e){return"string"==typeof e?NPe[e]||NPe[e.toLowerCase()]:void 0}function zPe(e){var t,r,n={};for(r in e)ZAe(e,r)&&(t=DPe(r))&&(n[t]=e[r]);return n}var OPe={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 RPe,MPe=/\d/,jPe=/\d\d/,LPe=/\d{3}/,FPe=/\d{4}/,VPe=/[+-]?\d{6}/,qPe=/\d\d?/,HPe=/\d\d\d\d?/,UPe=/\d\d\d\d\d\d?/,WPe=/\d{1,3}/,$Pe=/\d{1,4}/,GPe=/[+-]?\d{1,6}/,YPe=/\d+/,KPe=/[+-]?\d+/,JPe=/Z|[+-]\d\d:?\d\d/gi,XPe=/Z|[+-]\d\d(?::?\d\d)?/gi,QPe=/[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,ZPe=/^[1-9]\d?/,eIe=/^([1-9]\d|\d)/;function tIe(e,t,r){RPe[e]=wPe(t)?t:function(e,n){return e&&r?r:t}}function rIe(e,t){return ZAe(RPe,e)?RPe[e](t._strict,t._locale):new RegExp(nIe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,n,o){return t||r||n||o})))}function nIe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function oIe(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function iIe(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=oIe(t)),r}RPe={};var aIe={};function sIe(e,t){var r,n,o=t;for("string"==typeof e&&(e=[e]),rPe(t)&&(o=function(e,r){r[t]=iIe(e)}),n=e.length,r=0;r<n;r++)aIe[e[r]]=o}function lIe(e,t){sIe(e,function(e,r,n,o){n._w=n._w||{},t(e,n._w,n,o)})}function cIe(e,t,r){null!=t&&ZAe(aIe,e)&&aIe[e](t,r._a,r,e)}function uIe(e){return e%4==0&&e%100!=0||e%400==0}var dIe=0,fIe=1,hIe=2,pIe=3,mIe=4,gIe=5,vIe=6,yIe=7,bIe=8;function wIe(e){return uIe(e)?366:365}APe("Y",0,0,function(){var e=this.year();return e<=9999?SPe(e,4):"+"+e}),APe(0,["YY",2],0,function(){return this.year()%100}),APe(0,["YYYY",4],0,"year"),APe(0,["YYYYY",5],0,"year"),APe(0,["YYYYYY",6,!0],0,"year"),tIe("Y",KPe),tIe("YY",qPe,jPe),tIe("YYYY",$Pe,FPe),tIe("YYYYY",GPe,VPe),tIe("YYYYYY",GPe,VPe),sIe(["YYYYY","YYYYYY"],dIe),sIe("YYYY",function(e,t){t[dIe]=2===e.length?JAe.parseTwoDigitYear(e):iIe(e)}),sIe("YY",function(e,t){t[dIe]=JAe.parseTwoDigitYear(e)}),sIe("Y",function(e,t){t[dIe]=parseInt(e,10)}),JAe.parseTwoDigitYear=function(e){return iIe(e)+(iIe(e)>68?1900:2e3)};var xIe,kIe=SIe("FullYear",!0);function SIe(e,t){return function(r){return null!=r?(CIe(this,e,r),JAe.updateOffset(this,t),this):_Ie(this,e)}}function _Ie(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 CIe(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||uIe(i)?s:28,o?n.setUTCFullYear(i,a,s):n.setFullYear(i,a,s)}}function TIe(e,t){if(isNaN(e)||isNaN(t))return NaN;var r,n=(t%(r=12)+r)%r;return e+=(t-n)/12,1===n?uIe(e)?29:28:31-n%7%2}xIe=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},APe("M",["MM",2],"Mo",function(){return this.month()+1}),APe("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),APe("MMMM",0,0,function(e){return this.localeData().months(this,e)}),tIe("M",qPe,ZPe),tIe("MM",qPe,jPe),tIe("MMM",function(e,t){return t.monthsShortRegex(e)}),tIe("MMMM",function(e,t){return t.monthsRegex(e)}),sIe(["M","MM"],function(e,t){t[fIe]=iIe(e)-1}),sIe(["MMM","MMMM"],function(e,t,r,n){var o=r._locale.monthsParse(e,n,r._strict);null!=o?t[fIe]=o:sPe(r).invalidMonth=e});var EIe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),AIe="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),PIe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,IIe=QPe,BIe=QPe;function NIe(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=aPe([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(o=xIe.call(this._shortMonthsParse,a))?o:null:-1!==(o=xIe.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=xIe.call(this._shortMonthsParse,a))||-1!==(o=xIe.call(this._longMonthsParse,a))?o:null:-1!==(o=xIe.call(this._longMonthsParse,a))||-1!==(o=xIe.call(this._shortMonthsParse,a))?o:null}function DIe(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=iIe(t);else if(!rPe(t=e.localeData().monthsParse(t)))return e;var r=t,n=e.date();return n=n<29?n:Math.min(n,TIe(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function zIe(e){return null!=e?(DIe(this,e),JAe.updateOffset(this,!0),this):_Ie(this,"Month")}function OIe(){function e(e,t){return t.length-e.length}var t,r,n,o,i=[],a=[],s=[];for(t=0;t<12;t++)r=aPe([2e3,t]),n=nIe(this.monthsShort(r,"")),o=nIe(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 RIe(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 MIe(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 jIe(e,t,r){var n=7+t-r;return-((7+MIe(e,0,n).getUTCDay()-t)%7)+n-1}function LIe(e,t,r,n,o){var i,a,s=1+7*(t-1)+(7+r-n)%7+jIe(e,n,o);return s<=0?a=wIe(i=e-1)+s:s>wIe(e)?(i=e+1,a=s-wIe(e)):(i=e,a=s),{year:i,dayOfYear:a}}function FIe(e,t,r){var n,o,i=jIe(e.year(),t,r),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?n=a+VIe(o=e.year()-1,t,r):a>VIe(e.year(),t,r)?(n=a-VIe(e.year(),t,r),o=e.year()+1):(o=e.year(),n=a),{week:n,year:o}}function VIe(e,t,r){var n=jIe(e,t,r),o=jIe(e+1,t,r);return(wIe(e)-n+o)/7}APe("w",["ww",2],"wo","week"),APe("W",["WW",2],"Wo","isoWeek"),tIe("w",qPe,ZPe),tIe("ww",qPe,jPe),tIe("W",qPe,ZPe),tIe("WW",qPe,jPe),lIe(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=iIe(e)});function qIe(e,t){return e.slice(t,7).concat(e.slice(0,t))}APe("d",0,"do","day"),APe("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),APe("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),APe("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),APe("e",0,0,"weekday"),APe("E",0,0,"isoWeekday"),tIe("d",qPe),tIe("e",qPe),tIe("E",qPe),tIe("dd",function(e,t){return t.weekdaysMinRegex(e)}),tIe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),tIe("dddd",function(e,t){return t.weekdaysRegex(e)}),lIe(["dd","ddd","dddd"],function(e,t,r,n){var o=r._locale.weekdaysParse(e,n,r._strict);null!=o?t.d=o:sPe(r).invalidWeekday=e}),lIe(["d","e","E"],function(e,t,r,n){t[n]=iIe(e)});var HIe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),UIe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),WIe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$Ie=QPe,GIe=QPe,YIe=QPe;function KIe(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=aPe([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=xIe.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=xIe.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=xIe.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=xIe.call(this._weekdaysParse,a))||-1!==(o=xIe.call(this._shortWeekdaysParse,a))||-1!==(o=xIe.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=xIe.call(this._shortWeekdaysParse,a))||-1!==(o=xIe.call(this._weekdaysParse,a))||-1!==(o=xIe.call(this._minWeekdaysParse,a))?o:null:-1!==(o=xIe.call(this._minWeekdaysParse,a))||-1!==(o=xIe.call(this._weekdaysParse,a))||-1!==(o=xIe.call(this._shortWeekdaysParse,a))?o:null}function JIe(){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=aPe([2e3,1]).day(t),n=nIe(this.weekdaysMin(r,"")),o=nIe(this.weekdaysShort(r,"")),i=nIe(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 XIe(){return this.hours()%12||12}function QIe(e,t){APe(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ZIe(e,t){return t._meridiemParse}APe("H",["HH",2],0,"hour"),APe("h",["hh",2],0,XIe),APe("k",["kk",2],0,function(){return this.hours()||24}),APe("hmm",0,0,function(){return""+XIe.apply(this)+SPe(this.minutes(),2)}),APe("hmmss",0,0,function(){return""+XIe.apply(this)+SPe(this.minutes(),2)+SPe(this.seconds(),2)}),APe("Hmm",0,0,function(){return""+this.hours()+SPe(this.minutes(),2)}),APe("Hmmss",0,0,function(){return""+this.hours()+SPe(this.minutes(),2)+SPe(this.seconds(),2)}),QIe("a",!0),QIe("A",!1),tIe("a",ZIe),tIe("A",ZIe),tIe("H",qPe,eIe),tIe("h",qPe,ZPe),tIe("k",qPe,ZPe),tIe("HH",qPe,jPe),tIe("hh",qPe,jPe),tIe("kk",qPe,jPe),tIe("hmm",HPe),tIe("hmmss",UPe),tIe("Hmm",HPe),tIe("Hmmss",UPe),sIe(["H","HH"],pIe),sIe(["k","kk"],function(e,t,r){var n=iIe(e);t[pIe]=24===n?0:n}),sIe(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),sIe(["h","hh"],function(e,t,r){t[pIe]=iIe(e),sPe(r).bigHour=!0}),sIe("hmm",function(e,t,r){var n=e.length-2;t[pIe]=iIe(e.substr(0,n)),t[mIe]=iIe(e.substr(n)),sPe(r).bigHour=!0}),sIe("hmmss",function(e,t,r){var n=e.length-4,o=e.length-2;t[pIe]=iIe(e.substr(0,n)),t[mIe]=iIe(e.substr(n,2)),t[gIe]=iIe(e.substr(o)),sPe(r).bigHour=!0}),sIe("Hmm",function(e,t,r){var n=e.length-2;t[pIe]=iIe(e.substr(0,n)),t[mIe]=iIe(e.substr(n))}),sIe("Hmmss",function(e,t,r){var n=e.length-4,o=e.length-2;t[pIe]=iIe(e.substr(0,n)),t[mIe]=iIe(e.substr(n,2)),t[gIe]=iIe(e.substr(o))});var eBe=SIe("Hours",!0);var tBe,rBe={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:EIe,monthsShort:AIe,week:{dow:0,doy:6},weekdays:HIe,weekdaysMin:WIe,weekdaysShort:UIe,meridiemParse:/[ap]\.?m?\.?/i},nBe={},oBe={};function iBe(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 aBe(e){return e?e.toLowerCase().replace("_","-"):e}function sBe(e){var t=null;if(void 0===nBe[e]&&"undefined"!=typeof module&&module&&module.exports&&function(e){return!(!e||!e.match("^[^/\\\\]*$"))}(e))try{t=tBe._abbr,require("./locale/"+e),lBe(t)}catch(bze){nBe[e]=null}return nBe[e]}function lBe(e,t){var r;return e&&((r=tPe(t)?uBe(e):cBe(e,t))?tBe=r:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),tBe._abbr}function cBe(e,t){if(null!==t){var r,n=rBe;if(t.abbr=e,null!=nBe[e])bPe("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=nBe[e]._config;else if(null!=t.parentLocale)if(null!=nBe[t.parentLocale])n=nBe[t.parentLocale]._config;else{if(null==(r=sBe(t.parentLocale)))return oBe[t.parentLocale]||(oBe[t.parentLocale]=[]),oBe[t.parentLocale].push({name:e,config:t}),null;n=r._config}return nBe[e]=new kPe(xPe(n,t)),oBe[e]&&oBe[e].forEach(function(e){cBe(e.name,e.config)}),lBe(e),nBe[e]}return delete nBe[e],null}function uBe(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tBe;if(!XAe(e)){if(t=sBe(e))return t;e=[e]}return function(e){for(var t,r,n,o,i=0;i<e.length;){for(t=(o=aBe(e[i]).split("-")).length,r=(r=aBe(e[i+1]))?r.split("-"):null;t>0;){if(n=sBe(o.slice(0,t).join("-")))return n;if(r&&r.length>=t&&iBe(o,r)>=t-1)break;t--}i++}return tBe}(e)}function dBe(e){var t,r=e._a;return r&&-2===sPe(e).overflow&&(t=r[fIe]<0||r[fIe]>11?fIe:r[hIe]<1||r[hIe]>TIe(r[dIe],r[fIe])?hIe:r[pIe]<0||r[pIe]>24||24===r[pIe]&&(0!==r[mIe]||0!==r[gIe]||0!==r[vIe])?pIe:r[mIe]<0||r[mIe]>59?mIe:r[gIe]<0||r[gIe]>59?gIe:r[vIe]<0||r[vIe]>999?vIe:-1,sPe(e)._overflowDayOfYear&&(t<dIe||t>hIe)&&(t=hIe),sPe(e)._overflowWeeks&&-1===t&&(t=yIe),sPe(e)._overflowWeekday&&-1===t&&(t=bIe),sPe(e).overflow=t),e}var fBe=/^\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)?)?$/,hBe=/^\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)?)?$/,pBe=/Z|[+-]\d\d(?::?\d\d)?/,mBe=[["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]],gBe=[["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/]],vBe=/^\/?Date\((-?\d+)/i,yBe=/^(?:(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}))$/,bBe={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function wBe(e){var t,r,n,o,i,a,s=e._i,l=fBe.exec(s)||hBe.exec(s),c=mBe.length,u=gBe.length;if(l){for(sPe(e).iso=!0,t=0,r=c;t<r;t++)if(mBe[t][1].exec(l[1])){o=mBe[t][0],n=!1!==mBe[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,r=u;t<r;t++)if(gBe[t][1].exec(l[3])){i=(l[2]||" ")+gBe[t][0];break}if(null==i)return void(e._isValid=!1)}if(!n&&null!=i)return void(e._isValid=!1);if(l[4]){if(!pBe.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),CBe(e)}else e._isValid=!1}function xBe(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function kBe(e){var t,r,n,o,i,a,s,l,c=yBe.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=[xBe(r),AIe.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||UIe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(sPe(r).weekdayMismatch=!0,r._isValid=!1,!1)}(c[1],t,e))return;e._a=t,e._tzm=function(e,t,r){if(e)return bBe[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=MIe.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),sPe(e).rfc2822=!0}else e._isValid=!1}function SBe(e,t,r){return null!=e?e:null!=t?t:r}function _Be(e){var t,r,n,o,i,a=[];if(!e._d){for(n=function(e){var t=new Date(JAe.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[hIe]&&null==e._a[fIe]&&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=SBe(t.GG,e._a[dIe],FIe(ABe(),1,4).year),n=SBe(t.W,1),((o=SBe(t.E,1))<1||o>7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,c=FIe(ABe(),i,a),r=SBe(t.gg,e._a[dIe],c.year),n=SBe(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>VIe(r,i,a)?sPe(e)._overflowWeeks=!0:null!=l?sPe(e)._overflowWeekday=!0:(s=LIe(r,n,o,i,a),e._a[dIe]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=SBe(e._a[dIe],n[dIe]),(e._dayOfYear>wIe(i)||0===e._dayOfYear)&&(sPe(e)._overflowDayOfYear=!0),r=MIe(i,0,e._dayOfYear),e._a[fIe]=r.getUTCMonth(),e._a[hIe]=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[pIe]&&0===e._a[mIe]&&0===e._a[gIe]&&0===e._a[vIe]&&(e._nextDay=!0,e._a[pIe]=0),e._d=(e._useUTC?MIe:RIe).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[pIe]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(sPe(e).weekdayMismatch=!0)}}function CBe(e){if(e._f!==JAe.ISO_8601)if(e._f!==JAe.RFC_2822){e._a=[],sPe(e).empty=!0;var t,r,n,o,i,a,s,l=""+e._i,c=l.length,u=0;for(s=(n=BPe(e._f,e._locale).match(_Pe)||[]).length,t=0;t<s;t++)o=n[t],(r=(l.match(rIe(o,e))||[])[0])&&((i=l.substr(0,l.indexOf(r))).length>0&&sPe(e).unusedInput.push(i),l=l.slice(l.indexOf(r)+r.length),u+=r.length),EPe[o]?(r?sPe(e).empty=!1:sPe(e).unusedTokens.push(o),cIe(o,r,e)):e._strict&&!r&&sPe(e).unusedTokens.push(o);sPe(e).charsLeftOver=c-u,l.length>0&&sPe(e).unusedInput.push(l),e._a[pIe]<=12&&!0===sPe(e).bigHour&&e._a[pIe]>0&&(sPe(e).bigHour=void 0),sPe(e).parsedDateParts=e._a.slice(0),sPe(e).meridiem=e._meridiem,e._a[pIe]=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[pIe],e._meridiem),null!==(a=sPe(e).era)&&(e._a[dIe]=e._locale.erasConvertYear(a,e._a[dIe])),_Be(e),dBe(e)}else kBe(e);else wBe(e)}function TBe(e){var t=e._i,r=e._f;return e._locale=e._locale||uBe(e._l),null===t||void 0===r&&""===t?cPe({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),pPe(t)?new hPe(dBe(t)):(nPe(t)?e._d=t:XAe(r)?function(e){var t,r,n,o,i,a,s=!1,l=e._f.length;if(0===l)return sPe(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<l;o++)i=0,a=!1,t=fPe({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],CBe(t),lPe(t)&&(a=!0),i+=sPe(t).charsLeftOver,i+=10*sPe(t).unusedTokens.length,sPe(t).score=i,s?i<n&&(n=i,r=t):(null==n||i<n||a)&&(n=i,r=t,a&&(s=!0));iPe(e,r||t)}(e):r?CBe(e):function(e){var t=e._i;tPe(t)?e._d=new Date(JAe.now()):nPe(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=vBe.exec(e._i);null===t?(wBe(e),!1===e._isValid&&(delete e._isValid,kBe(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:JAe.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):XAe(t)?(e._a=oPe(t.slice(0),function(e){return parseInt(e,10)}),_Be(e)):QAe(t)?function(e){if(!e._d){var t=zPe(e._i),r=void 0===t.day?t.date:t.day;e._a=oPe([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),_Be(e)}}(e):rPe(t)?e._d=new Date(t):JAe.createFromInputFallback(e)}(e),lPe(e)||(e._d=null),e))}function EBe(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),(QAe(e)&&ePe(e)||XAe(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 hPe(dBe(TBe(a))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function ABe(e,t,r,n){return EBe(e,t,r,n,!1)}JAe.createFromInputFallback=gPe("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":""))}),JAe.ISO_8601=function(){},JAe.RFC_2822=function(){};var PBe=gPe("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ABe.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:cPe()}),IBe=gPe("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ABe.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:cPe()});function BBe(e,t){var r,n;if(1===t.length&&XAe(t[0])&&(t=t[0]),!t.length)return ABe();for(r=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](r)||(r=t[n]);return r}var NBe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function DBe(e){var t=zPe(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=NBe.length;for(t in e)if(ZAe(e,t)&&(-1===xIe.call(NBe,t)||null!=e[t]&&isNaN(e[t])))return!1;for(r=0;r<o;++r)if(e[NBe[r]]){if(n)return!1;parseFloat(e[NBe[r]])!==iIe(e[NBe[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=uBe(),this._bubble()}function zBe(e){return e instanceof DBe}function OBe(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function RBe(e,t){APe(e,0,0,function(){var e=this.utcOffset(),r="+";return e<0&&(e=-e,r="-"),r+SPe(~~(e/60),2)+t+SPe(~~e%60,2)})}RBe("Z",":"),RBe("ZZ",""),tIe("Z",XPe),tIe("ZZ",XPe),sIe(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=jBe(XPe,e)});var MBe=/([\+\-]|\d\d)/gi;function jBe(e,t){var r,n,o=(t||"").match(e);return null===o?null:0===(n=60*(r=((o[o.length-1]||[])+"").match(MBe)||["-",0,0])[1]+iIe(r[2]))?0:"+"===r[0]?n:-n}function LBe(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(pPe(e)||nPe(e)?e.valueOf():ABe(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),JAe.updateOffset(r,!1),r):ABe(e).local()}function FBe(e){return-Math.round(e._d.getTimezoneOffset())}function VBe(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}JAe.updateOffset=function(){};var qBe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,HBe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function UBe(e,t){var r,n,o,i=e,a=null;return zBe(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:rPe(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(a=qBe.exec(e))?(r="-"===a[1]?-1:1,i={y:0,d:iIe(a[hIe])*r,h:iIe(a[pIe])*r,m:iIe(a[mIe])*r,s:iIe(a[gIe])*r,ms:iIe(OBe(1e3*a[vIe]))*r}):(a=HBe.exec(e))?(r="-"===a[1]?-1:1,i={y:WBe(a[2],r),M:WBe(a[3],r),w:WBe(a[4],r),d:WBe(a[5],r),h:WBe(a[6],r),m:WBe(a[7],r),s:WBe(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=LBe(t,e),e.isBefore(t)?r=$Be(e,t):((r=$Be(t,e)).milliseconds=-r.milliseconds,r.months=-r.months);return r}(ABe(i.from),ABe(i.to)),(i={}).ms=o.milliseconds,i.M=o.months),n=new DBe(i),zBe(e)&&ZAe(e,"_locale")&&(n._locale=e._locale),zBe(e)&&ZAe(e,"_isValid")&&(n._isValid=e._isValid),n}function WBe(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function $Be(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 GBe(e,t){return function(r,n){var o;return null===n||isNaN(+n)||(bPe(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),YBe(this,UBe(r,n),e),this}}function YBe(e,t,r,n){var o=t._milliseconds,i=OBe(t._days),a=OBe(t._months);e.isValid()&&(n=null==n||n,a&&DIe(e,_Ie(e,"Month")+a*r),i&&CIe(e,"Date",_Ie(e,"Date")+i*r),o&&e._d.setTime(e._d.valueOf()+o*r),n&&JAe.updateOffset(e,i||a))}UBe.fn=DBe.prototype,UBe.invalid=function(){return UBe(NaN)};var KBe=GBe(1,"add"),JBe=GBe(-1,"subtract");function XBe(e){return"string"==typeof e||e instanceof String}function QBe(e){return pPe(e)||nPe(e)||XBe(e)||rPe(e)||function(e){var t=XAe(e),r=!1;t&&(r=0===e.filter(function(t){return!rPe(t)&&XBe(e)}).length);return t&&r}(e)||function(e){var t,r,n=QAe(e)&&!ePe(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||ZAe(e,r);return n&&o}(e)||null==e}function ZBe(e,t){if(e.date()<t.date())return-ZBe(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 eNe(e){var t;return void 0===e?this._locale._abbr:(null!=(t=uBe(e))&&(this._locale=t),this)}JAe.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",JAe.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tNe=gPe("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 rNe(){return this._locale}var nNe=1e3,oNe=6e4,iNe=36e5,aNe=126227808e5;function sNe(e,t){return(e%t+t)%t}function lNe(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-aNe:new Date(e,t,r).valueOf()}function cNe(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-aNe:Date.UTC(e,t,r)}function uNe(e,t){return t.erasAbbrRegex(e)}function dNe(){var e,t,r,n,o,i=[],a=[],s=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)r=nIe(c[e].name),n=nIe(c[e].abbr),o=nIe(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 fNe(e,t){APe(0,[e,e.length],0,t)}function hNe(e,t,r,n,o){var i;return null==e?FIe(this,n,o).year:(t>(i=VIe(e,n,o))&&(t=i),pNe.call(this,e,t,r,n,o))}function pNe(e,t,r,n,o){var i=LIe(e,t,r,n,o),a=MIe(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}APe("N",0,0,"eraAbbr"),APe("NN",0,0,"eraAbbr"),APe("NNN",0,0,"eraAbbr"),APe("NNNN",0,0,"eraName"),APe("NNNNN",0,0,"eraNarrow"),APe("y",["y",1],"yo","eraYear"),APe("y",["yy",2],0,"eraYear"),APe("y",["yyy",3],0,"eraYear"),APe("y",["yyyy",4],0,"eraYear"),tIe("N",uNe),tIe("NN",uNe),tIe("NNN",uNe),tIe("NNNN",function(e,t){return t.erasNameRegex(e)}),tIe("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),sIe(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var o=r._locale.erasParse(e,n,r._strict);o?sPe(r).era=o:sPe(r).invalidEra=e}),tIe("y",YPe),tIe("yy",YPe),tIe("yyy",YPe),tIe("yyyy",YPe),tIe("yo",function(e,t){return t._eraYearOrdinalRegex||YPe}),sIe(["y","yy","yyy","yyyy"],dIe),sIe(["yo"],function(e,t,r,n){var o;r._locale._eraYearOrdinalRegex&&(o=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[dIe]=r._locale.eraYearOrdinalParse(e,o):t[dIe]=parseInt(e,10)}),APe(0,["gg",2],0,function(){return this.weekYear()%100}),APe(0,["GG",2],0,function(){return this.isoWeekYear()%100}),fNe("gggg","weekYear"),fNe("ggggg","weekYear"),fNe("GGGG","isoWeekYear"),fNe("GGGGG","isoWeekYear"),tIe("G",KPe),tIe("g",KPe),tIe("GG",qPe,jPe),tIe("gg",qPe,jPe),tIe("GGGG",$Pe,FPe),tIe("gggg",$Pe,FPe),tIe("GGGGG",GPe,VPe),tIe("ggggg",GPe,VPe),lIe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=iIe(e)}),lIe(["gg","GG"],function(e,t,r,n){t[n]=JAe.parseTwoDigitYear(e)}),APe("Q",0,"Qo","quarter"),tIe("Q",MPe),sIe("Q",function(e,t){t[fIe]=3*(iIe(e)-1)}),APe("D",["DD",2],"Do","date"),tIe("D",qPe,ZPe),tIe("DD",qPe,jPe),tIe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),sIe(["D","DD"],hIe),sIe("Do",function(e,t){t[hIe]=iIe(e.match(qPe)[0])});var mNe=SIe("Date",!0);APe("DDD",["DDDD",3],"DDDo","dayOfYear"),tIe("DDD",WPe),tIe("DDDD",LPe),sIe(["DDD","DDDD"],function(e,t,r){r._dayOfYear=iIe(e)}),APe("m",["mm",2],0,"minute"),tIe("m",qPe,eIe),tIe("mm",qPe,jPe),sIe(["m","mm"],mIe);var gNe=SIe("Minutes",!1);APe("s",["ss",2],0,"second"),tIe("s",qPe,eIe),tIe("ss",qPe,jPe),sIe(["s","ss"],gIe);var vNe,yNe,bNe=SIe("Seconds",!1);for(APe("S",0,0,function(){return~~(this.millisecond()/100)}),APe(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),APe(0,["SSS",3],0,"millisecond"),APe(0,["SSSS",4],0,function(){return 10*this.millisecond()}),APe(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),APe(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),APe(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),APe(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),APe(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),tIe("S",WPe,MPe),tIe("SS",WPe,jPe),tIe("SSS",WPe,LPe),vNe="SSSS";vNe.length<=9;vNe+="S")tIe(vNe,YPe);function wNe(e,t){t[vIe]=iIe(1e3*("0."+e))}for(vNe="S";vNe.length<=9;vNe+="S")sIe(vNe,wNe);yNe=SIe("Milliseconds",!1),APe("z",0,0,"zoneAbbr"),APe("zz",0,0,"zoneName");var xNe=hPe.prototype;function kNe(e){return e}xNe.add=KBe,xNe.calendar=function(e,t){1===arguments.length&&(arguments[0]?QBe(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,r=QAe(e)&&!ePe(e),n=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=n||ZAe(e,o[t]);return r&&n}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||ABe(),n=LBe(r,this).startOf("day"),o=JAe.calendarFormat(this,n)||"sameElse",i=t&&(wPe(t[o])?t[o].call(this,r):t[o]);return this.format(i||this.localeData().calendar(o,this,ABe(r)))},xNe.clone=function(){return new hPe(this)},xNe.diff=function(e,t,r){var n,o,i;if(!this.isValid())return NaN;if(!(n=LBe(e,this)).isValid())return NaN;switch(o=6e4*(n.utcOffset()-this.utcOffset()),t=DPe(t)){case"year":i=ZBe(this,n)/12;break;case"month":i=ZBe(this,n);break;case"quarter":i=ZBe(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:oIe(i)},xNe.endOf=function(e){var t,r;if(void 0===(e=DPe(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?cNe:lNe,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+=iNe-sNe(t+(this._isUTC?0:this.utcOffset()*oNe),iNe)-1;break;case"minute":t=this._d.valueOf(),t+=oNe-sNe(t,oNe)-1;break;case"second":t=this._d.valueOf(),t+=nNe-sNe(t,nNe)-1}return this._d.setTime(t),JAe.updateOffset(this,!0),this},xNe.format=function(e){e||(e=this.isUtc()?JAe.defaultFormatUtc:JAe.defaultFormat);var t=IPe(this,e);return this.localeData().postformat(t)},xNe.from=function(e,t){return this.isValid()&&(pPe(e)&&e.isValid()||ABe(e).isValid())?UBe({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},xNe.fromNow=function(e){return this.from(ABe(),e)},xNe.to=function(e,t){return this.isValid()&&(pPe(e)&&e.isValid()||ABe(e).isValid())?UBe({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},xNe.toNow=function(e){return this.to(ABe(),e)},xNe.get=function(e){return wPe(this[e=DPe(e)])?this[e]():this},xNe.invalidAt=function(){return sPe(this).overflow},xNe.isAfter=function(e,t){var r=pPe(e)?e:ABe(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=DPe(t)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf())},xNe.isBefore=function(e,t){var r=pPe(e)?e:ABe(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=DPe(t)||"millisecond")?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf())},xNe.isBetween=function(e,t,r,n){var o=pPe(e)?e:ABe(e),i=pPe(t)?t:ABe(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)))},xNe.isSame=function(e,t){var r,n=pPe(e)?e:ABe(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=DPe(t)||"millisecond")?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()))},xNe.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},xNe.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},xNe.isValid=function(){return lPe(this)},xNe.lang=tNe,xNe.locale=eNe,xNe.localeData=rNe,xNe.max=IBe,xNe.min=PBe,xNe.parsingFlags=function(){return iPe({},sPe(this))},xNe.set=function(e,t){if("object"==typeof e){var r,n=function(e){var t,r=[];for(t in e)ZAe(e,t)&&r.push({unit:t,priority:OPe[t]});return r.sort(function(e,t){return e.priority-t.priority}),r}(e=zPe(e)),o=n.length;for(r=0;r<o;r++)this[n[r].unit](e[n[r].unit])}else if(wPe(this[e=DPe(e)]))return this[e](t);return this},xNe.startOf=function(e){var t,r;if(void 0===(e=DPe(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?cNe:lNe,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-=sNe(t+(this._isUTC?0:this.utcOffset()*oNe),iNe);break;case"minute":t=this._d.valueOf(),t-=sNe(t,oNe);break;case"second":t=this._d.valueOf(),t-=sNe(t,nNe)}return this._d.setTime(t),JAe.updateOffset(this,!0),this},xNe.subtract=JBe,xNe.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},xNe.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()}},xNe.toDate=function(){return new Date(this.valueOf())},xNe.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?IPe(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):wPe(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",IPe(r,"Z")):IPe(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},xNe.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&&(xNe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),xNe.toJSON=function(){return this.isValid()?this.toISOString():null},xNe.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},xNe.unix=function(){return Math.floor(this.valueOf()/1e3)},xNe.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},xNe.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},xNe.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""},xNe.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""},xNe.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""},xNe.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()-JAe(o[e].since).year())*r+o[e].offset;return this.year()},xNe.year=kIe,xNe.isLeapYear=function(){return uIe(this.year())},xNe.weekYear=function(e){return hNe.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},xNe.isoWeekYear=function(e){return hNe.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},xNe.quarter=xNe.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},xNe.month=zIe,xNe.daysInMonth=function(){return TIe(this.year(),this.month())},xNe.week=xNe.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},xNe.isoWeek=xNe.isoWeeks=function(e){var t=FIe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},xNe.weeksInYear=function(){var e=this.localeData()._week;return VIe(this.year(),e.dow,e.doy)},xNe.weeksInWeekYear=function(){var e=this.localeData()._week;return VIe(this.weekYear(),e.dow,e.doy)},xNe.isoWeeksInYear=function(){return VIe(this.year(),1,4)},xNe.isoWeeksInISOWeekYear=function(){return VIe(this.isoWeekYear(),1,4)},xNe.date=mNe,xNe.day=xNe.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=_Ie(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},xNe.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")},xNe.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},xNe.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")},xNe.hour=xNe.hours=eBe,xNe.minute=xNe.minutes=gNe,xNe.second=xNe.seconds=bNe,xNe.millisecond=xNe.milliseconds=yNe,xNe.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=jBe(XPe,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(n=FBe(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),o!==e&&(!t||this._changeInProgress?YBe(this,UBe(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,JAe.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:FBe(this)},xNe.utc=function(e){return this.utcOffset(0,e)},xNe.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(FBe(this),"m")),this},xNe.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=jBe(JPe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},xNe.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?ABe(e).utcOffset():0,(this.utcOffset()-e)%60==0)},xNe.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},xNe.isLocal=function(){return!!this.isValid()&&!this._isUTC},xNe.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},xNe.isUtc=VBe,xNe.isUTC=VBe,xNe.zoneAbbr=function(){return this._isUTC?"UTC":""},xNe.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},xNe.dates=gPe("dates accessor is deprecated. Use date instead.",mNe),xNe.months=gPe("months accessor is deprecated. Use month instead",zIe),xNe.years=gPe("years accessor is deprecated. Use year instead",kIe),xNe.zone=gPe("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()}),xNe.isDSTShifted=gPe("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!tPe(this._isDSTShifted))return this._isDSTShifted;var e,t={};return fPe(t,this),(t=TBe(t))._a?(e=t._isUTC?aPe(t._a):ABe(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++)iIe(e[r])!==iIe(t[r])&&i++;return i+o}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var SNe=kPe.prototype;function _Ne(e,t,r,n){var o=uBe(),i=aPe().set(n,t);return o[r](i,e)}function CNe(e,t,r){if(rPe(e)&&(t=e,e=void 0),e=e||"",null!=t)return _Ne(e,t,r,"month");var n,o=[];for(n=0;n<12;n++)o[n]=_Ne(e,n,r,"month");return o}function TNe(e,t,r,n){"boolean"==typeof e?(rPe(t)&&(r=t,t=void 0),t=t||""):(r=t=e,e=!1,rPe(t)&&(r=t,t=void 0),t=t||"");var o,i=uBe(),a=e?i._week.dow:0,s=[];if(null!=r)return _Ne(t,(r+a)%7,n,"day");for(o=0;o<7;o++)s[o]=_Ne(t,(o+a)%7,n,"day");return s}SNe.calendar=function(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return wPe(n)?n.call(t,r):n},SNe.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(_Pe).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},SNe.invalidDate=function(){return this._invalidDate},SNe.ordinal=function(e){return this._ordinal.replace("%d",e)},SNe.preparse=kNe,SNe.postformat=kNe,SNe.relativeTime=function(e,t,r,n){var o=this._relativeTime[r];return wPe(o)?o(e,t,r,n):o.replace(/%d/i,e)},SNe.pastFuture=function(e,t){var r=this._relativeTime[e>0?"future":"past"];return wPe(r)?r(t):r.replace(/%s/i,t)},SNe.set=function(e){var t,r;for(r in e)ZAe(e,r)&&(wPe(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)},SNe.eras=function(e,t){var r,n,o,i=this._eras||uBe("en")._eras;for(r=0,n=i.length;r<n;++r){if("string"==typeof i[r].since)o=JAe(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=JAe(i[r].until).startOf("day").valueOf(),i[r].until=o.valueOf()}}return i},SNe.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]},SNe.erasConvertYear=function(e,t){var r=e.since<=e.until?1:-1;return void 0===t?JAe(e.since).year():JAe(e.since).year()+(t-e.offset)*r},SNe.erasAbbrRegex=function(e){return ZAe(this,"_erasAbbrRegex")||dNe.call(this),e?this._erasAbbrRegex:this._erasRegex},SNe.erasNameRegex=function(e){return ZAe(this,"_erasNameRegex")||dNe.call(this),e?this._erasNameRegex:this._erasRegex},SNe.erasNarrowRegex=function(e){return ZAe(this,"_erasNarrowRegex")||dNe.call(this),e?this._erasNarrowRegex:this._erasRegex},SNe.months=function(e,t){return e?XAe(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||PIe).test(t)?"format":"standalone"][e.month()]:XAe(this._months)?this._months:this._months.standalone},SNe.monthsShort=function(e,t){return e?XAe(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[PIe.test(t)?"format":"standalone"][e.month()]:XAe(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},SNe.monthsParse=function(e,t,r){var n,o,i;if(this._monthsParseExact)return NIe.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(o=aPe([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}},SNe.monthsRegex=function(e){return this._monthsParseExact?(ZAe(this,"_monthsRegex")||OIe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(ZAe(this,"_monthsRegex")||(this._monthsRegex=BIe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},SNe.monthsShortRegex=function(e){return this._monthsParseExact?(ZAe(this,"_monthsRegex")||OIe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(ZAe(this,"_monthsShortRegex")||(this._monthsShortRegex=IIe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},SNe.week=function(e){return FIe(e,this._week.dow,this._week.doy).week},SNe.firstDayOfYear=function(){return this._week.doy},SNe.firstDayOfWeek=function(){return this._week.dow},SNe.weekdays=function(e,t){var r=XAe(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?qIe(r,this._week.dow):e?r[e.day()]:r},SNe.weekdaysMin=function(e){return!0===e?qIe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},SNe.weekdaysShort=function(e){return!0===e?qIe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},SNe.weekdaysParse=function(e,t,r){var n,o,i;if(this._weekdaysParseExact)return KIe.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(o=aPe([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}},SNe.weekdaysRegex=function(e){return this._weekdaysParseExact?(ZAe(this,"_weekdaysRegex")||JIe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ZAe(this,"_weekdaysRegex")||(this._weekdaysRegex=$Ie),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},SNe.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(ZAe(this,"_weekdaysRegex")||JIe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ZAe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=GIe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},SNe.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(ZAe(this,"_weekdaysRegex")||JIe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ZAe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=YIe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},SNe.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},SNe.meridiem=function(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"},lBe("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===iIe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),JAe.lang=gPe("moment.lang is deprecated. Use moment.locale instead.",lBe),JAe.langData=gPe("moment.langData is deprecated. Use moment.localeData instead.",uBe);var ENe=Math.abs;function ANe(e,t,r,n){var o=UBe(t,r);return e._milliseconds+=n*o._milliseconds,e._days+=n*o._days,e._months+=n*o._months,e._bubble()}function PNe(e){return e<0?Math.floor(e):Math.ceil(e)}function INe(e){return 4800*e/146097}function BNe(e){return 146097*e/4800}function NNe(e){return function(){return this.as(e)}}var DNe=NNe("ms"),zNe=NNe("s"),ONe=NNe("m"),RNe=NNe("h"),MNe=NNe("d"),jNe=NNe("w"),LNe=NNe("M"),FNe=NNe("Q"),VNe=NNe("y"),qNe=DNe;function HNe(e){return function(){return this.isValid()?this._data[e]:NaN}}var UNe=HNe("milliseconds"),WNe=HNe("seconds"),$Ne=HNe("minutes"),GNe=HNe("hours"),YNe=HNe("days"),KNe=HNe("months"),JNe=HNe("years");var XNe=Math.round,QNe={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ZNe(e,t,r,n,o){return o.relativeTime(t||1,!!r,e,n)}var eDe=Math.abs;function tDe(e){return(e>0)-(e<0)||+e}function rDe(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,n,o,i,a,s,l=eDe(this._milliseconds)/1e3,c=eDe(this._days),u=eDe(this._months),d=this.asSeconds();return d?(e=oIe(l/60),t=oIe(e/60),l%=60,e%=60,r=oIe(u/12),u%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",i=tDe(this._months)!==tDe(d)?"-":"",a=tDe(this._days)!==tDe(d)?"-":"",s=tDe(this._milliseconds)!==tDe(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 nDe=DBe.prototype;nDe.isValid=function(){return this._isValid},nDe.abs=function(){var e=this._data;return this._milliseconds=ENe(this._milliseconds),this._days=ENe(this._days),this._months=ENe(this._months),e.milliseconds=ENe(e.milliseconds),e.seconds=ENe(e.seconds),e.minutes=ENe(e.minutes),e.hours=ENe(e.hours),e.months=ENe(e.months),e.years=ENe(e.years),this},nDe.add=function(e,t){return ANe(this,e,t,1)},nDe.subtract=function(e,t){return ANe(this,e,t,-1)},nDe.as=function(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=DPe(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+INe(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(BNe(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)}},nDe.asMilliseconds=DNe,nDe.asSeconds=zNe,nDe.asMinutes=ONe,nDe.asHours=RNe,nDe.asDays=MNe,nDe.asWeeks=jNe,nDe.asMonths=LNe,nDe.asQuarters=FNe,nDe.asYears=VNe,nDe.valueOf=qNe,nDe._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*PNe(BNe(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=oIe(i/1e3),l.seconds=e%60,t=oIe(e/60),l.minutes=t%60,r=oIe(t/60),l.hours=r%24,a+=oIe(r/24),s+=o=oIe(INe(a)),a-=PNe(BNe(o)),n=oIe(s/12),s%=12,l.days=a,l.months=s,l.years=n,this},nDe.clone=function(){return UBe(this)},nDe.get=function(e){return e=DPe(e),this.isValid()?this[e+"s"]():NaN},nDe.milliseconds=UNe,nDe.seconds=WNe,nDe.minutes=$Ne,nDe.hours=GNe,nDe.days=YNe,nDe.weeks=function(){return oIe(this.days()/7)},nDe.months=KNe,nDe.years=JNe,nDe.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var r,n,o=!1,i=QNe;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(i=Object.assign({},QNe,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),n=function(e,t,r,n){var o=UBe(e).abs(),i=XNe(o.as("s")),a=XNe(o.as("m")),s=XNe(o.as("h")),l=XNe(o.as("d")),c=XNe(o.as("M")),u=XNe(o.as("w")),d=XNe(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,ZNe.apply(null,f)}(this,!o,i,r=this.localeData()),o&&(n=r.pastFuture(+this,n)),r.postformat(n)},nDe.toISOString=rDe,nDe.toString=rDe,nDe.toJSON=rDe,nDe.locale=eNe,nDe.localeData=rNe,nDe.toIsoString=gPe("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",rDe),nDe.lang=tNe,APe("X",0,0,"unix"),APe("x",0,0,"valueOf"),tIe("x",KPe),tIe("X",/[+-]?\d+(\.\d{1,3})?/),sIe("X",function(e,t,r){r._d=new Date(1e3*parseFloat(e))}),sIe("x",function(e,t,r){r._d=new Date(iIe(e))}),JAe.version="2.30.1",YAe=ABe,JAe.fn=xNe,JAe.min=function(){return BBe("isBefore",[].slice.call(arguments,0))},JAe.max=function(){return BBe("isAfter",[].slice.call(arguments,0))},JAe.now=function(){return Date.now?Date.now():+new Date},JAe.utc=aPe,JAe.unix=function(e){return ABe(1e3*e)},JAe.months=function(e,t){return CNe(e,t,"months")},JAe.isDate=nPe,JAe.locale=lBe,JAe.invalid=cPe,JAe.duration=UBe,JAe.isMoment=pPe,JAe.weekdays=function(e,t,r){return TNe(e,t,r,"weekdays")},JAe.parseZone=function(){return ABe.apply(null,arguments).parseZone()},JAe.localeData=uBe,JAe.isDuration=zBe,JAe.monthsShort=function(e,t){return CNe(e,t,"monthsShort")},JAe.weekdaysMin=function(e,t,r){return TNe(e,t,r,"weekdaysMin")},JAe.defineLocale=cBe,JAe.updateLocale=function(e,t){if(null!=t){var r,n,o=rBe;null!=nBe[e]&&null!=nBe[e].parentLocale?nBe[e].set(xPe(nBe[e]._config,t)):(null!=(n=sBe(e))&&(o=n._config),t=xPe(o,t),null==n&&(t.abbr=e),(r=new kPe(t)).parentLocale=nBe[e],nBe[e]=r),lBe(e)}else null!=nBe[e]&&(null!=nBe[e].parentLocale?(nBe[e]=nBe[e].parentLocale,e===lBe()&&lBe(e)):null!=nBe[e]&&delete nBe[e]);return nBe[e]},JAe.locales=function(){return vPe(nBe)},JAe.weekdaysShort=function(e,t,r){return TNe(e,t,r,"weekdaysShort")},JAe.normalizeUnits=DPe,JAe.relativeTimeRounding=function(e){return void 0===e?XNe:"function"==typeof e&&(XNe=e,!0)},JAe.relativeTimeThreshold=function(e,t){return void 0!==QNe[e]&&(void 0===t?QNe[e]:(QNe[e]=t,"s"===e&&(QNe.ss=t-1),!0))},JAe.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"},JAe.prototype=xNe,JAe.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 oDe(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?JAe(t).fromNow():n<=864e5?"today":n<=1728e5?"yesterday":JAe(t).format("MMM D, YYYY")}const iDe=()=>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"})}),aDe=()=>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"})}),sDe=g.memo(({message:e})=>{const[t,r]=g.useState(""),[n,o]=g.useState(!1),[i,a]=g.useState(!1),[s,l]=g.useState(!1),[c,u]=g.useState(!1),[d,f]=g.useState(""),h=g.useRef(null),m=g.useRef(null),v=g.useRef(null),{sendFeedbackWithTelemetry:y}=(()=>{const e=yw();return{sendFeedbackWithTelemetry:(t,r="text",n=!0)=>{try{return!(!t||!t.id||(e(Cre({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(_2.logUserFeedback({name:uT,replyToId:t.id})),0))}catch(o){return XW(dT,o),!1}}}})();g.useEffect(()=>{if(d){const e=setTimeout(()=>f(""),1e3);return()=>clearTimeout(e)}},[d]);const b=()=>{const e=s,t=c;a(!1),l(!1),u(!1),r(""),f("Feedback form cleared"),setTimeout(()=>{e?h.current?.focus():t&&m.current?.focus()},0)},w=()=>{y(e,t,s),o(!0),a(!1),f("Feedback submitted successfully")};return p.jsxs(p.Fragment,{children:[p.jsx("div",{"aria-live":"polite","aria-atomic":"true",className:"visually-hidden",children:d}),p.jsxs("form",{className:"uca-feedback-form",onKeyDown:e=>{"Escape"===e.key&&(e.preventDefault(),b())},onReset:b,onSubmit:w,children:[p.jsxs("fieldset",{className:"uca-feedback-button-bar",children:[p.jsx("legend",{className:"visually-hidden",children:"Rate this response"}),p.jsx("button",{ref:h,className:`uca-feedback-thumb-button ${n?"disabled":""} ${s?"selected":""}`,type:"button",onClick:function(){const e=!s;l(e),u(!1),a(e),e?(f("Positive feedback selected. Feedback form opened."),setTimeout(()=>v.current?.focus(),100)):f("Positive feedback deselected. Feedback form closed.")},"aria-label":`Positive feedback${s?", pressed":", not pressed"}${n?", disabled":""}`,"aria-pressed":s,"aria-expanded":i&&s,disabled:n,"data-bi-cn":P2.THUMBS_UP,"data-bi-ecn":P2.THUMBS_UP,"data-bi-hn":D2.AI_POWERED_ASSISTANT,"data-bi-ehn":D2.AI_POWERED_ASSISTANT,"data-bi-compnm":I2.AI_ASSISTANT,"data-bi-ct":P2.PROMPT_BUTTON,"data-bi-view":M2.AI_CHAT_DRAWER,"data-bi-an":N2.AI_CHAT_DRAWER,"data-bi-bhvr":R2.FEEDBACK_INTERACTION,"data-bi-fbid":e.id,"data-bi-fbnm":e.id,children:p.jsx(aDe,{})}),p.jsx("button",{ref:m,className:`uca-feedback-thumb-button ${n?"disabled":""} ${c?"selected":""}`,type:"button",onClick:function(){const e=!c;u(e),l(!1),a(e),e?(f("Negative feedback selected. Feedback form opened."),setTimeout(()=>v.current?.focus(),100)):f("Negative feedback deselected. Feedback form closed.")},"aria-label":`Negative feedback${c?", pressed":", not pressed"}${n?", disabled":""}`,"aria-pressed":c,"aria-expanded":i&&c,disabled:n,"data-bi-cn":P2.THUMBS_DOWN,"data-bi-ecn":P2.THUMBS_DOWN,"data-bi-hn":D2.AI_POWERED_ASSISTANT,"data-bi-ehn":D2.AI_POWERED_ASSISTANT,"data-bi-compnm":I2.AI_ASSISTANT,"data-bi-ct":P2.PROMPT_BUTTON,"data-bi-view":M2.AI_CHAT_DRAWER,"data-bi-an":N2.AI_CHAT_DRAWER,"data-bi-bhvr":R2.FEEDBACK_INTERACTION,"data-bi-fbid":e.id,"data-bi-fbnm":e.id,children:p.jsx(iDe,{})})]})," ",i&&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:v,className:"uca-feedback-form-textarea",value:t,onChange:e=>r(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),w())},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",onClick:w,"data-bi-cn":P2.SUBMIT,"data-bi-ecn":P2.SUBMIT,"data-bi-hn":D2.SUBMIT,"data-bi-ehn":D2.SUBMIT,"data-bi-sn":O2.SUBMIT,"data-bi-compnm":I2.AI_ASSISTANT,"data-bi-ct":P2.PROMPT_BUTTON,"data-bi-view":M2.AI_CHAT_DRAWER,"data-bi-an":N2.AI_CHAT_DRAWER,"data-bi-bhvr":R2.FEEDBACK_INTERACTION,children:"Submit"}),p.jsx("button",{className:"uca-feedback-cancel-button",type:"reset","aria-label":"Cancel feedback",onClick:b,children:"Cancel"})]})})]})]})]})});function lDe(e){return{lang:e?.lang??undefined,message:e?.message,abortEarly:e?.abortEarly??undefined,abortPipeEarly:e?.abortPipeEarly??undefined}}function cDe(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 uDe(e,t,r,n,o){const i=o&&"input"in o?o.input:r.value,a=o?.expected??e.expects??null,s=o?.received??cDe(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]}function dDe(e){return{version:1,vendor:"valibot",validate:t=>e["~run"]({value:t},lDe())}}function fDe(e,t){const r=[...new Set(e)];return r.length>1?`(${r.join(` ${t} `)})`:r[0]??"never"}function hDe(e,t,r){return"function"==typeof e.fallback?e.fallback(t,r):e.fallback}function pDe(e,t,r){return"function"==typeof e.default?e.default(t,r):e.default}function mDe(e,t){return{kind:"schema",type:"literal",reference:mDe,expects:cDe(e),async:!1,literal:e,message:t,get"~standard"(){return dDe(this)},"~run"(e,t){return e.value===this.literal?e.typed=!0:uDe(this,"type",e,t),e}}}function gDe(e,t){return{kind:"schema",type:"object",reference:gDe,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return dDe(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]:pDe(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]=hDe(o);else if("exact_optional"!==o.type&&"optional"!==o.type&&"nullish"!==o.type&&(uDe(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 uDe(this,"type",e,t);return e}}}function vDe(e,t){return{kind:"schema",type:"optional",reference:vDe,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return dDe(this)},"~run"(e,t){return void 0===e.value&&(void 0!==this.default&&(e.value=pDe(this,e,t)),void 0===e.value)?(e.typed=!0,e):this.wrapped["~run"](e,t)}}}function yDe(e){return{kind:"schema",type:"string",reference:yDe,expects:"string",async:!1,message:e,get"~standard"(){return dDe(this)},"~run"(e,t){return"string"==typeof e.value?e.typed=!0:uDe(this,"type",e,t),e}}}function bDe(e){let t;if(e)for(const r of e)t?t.push(...r.issues):t=r.issues;return t}function wDe(e,t){return{kind:"schema",type:"union",reference:wDe,expects:fDe(e.map(e=>e.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return dDe(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];uDe(this,"type",e,t,{issues:bDe(n)}),e.typed=!0}else{if(1===o?.length)return o[0];uDe(this,"type",e,t,{issues:bDe(o)})}return e}}}function xDe(e,t,r){const n=e["~run"]({value:t},lDe(r));return{typed:n.typed,success:!n.issues,output:n.value,issues:n.issues}}const kDe=wDe([gDe({channelData:gDe({feedbackLoop:gDe({disclaimer:vDe(yDe()),type:mDe("default")})})}),gDe({channelData:gDe({feedbackLoop:gDe({type:mDe("default")})})})]);function SDe(e){return xDe(kDe,e).success}const _De=({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":A2,children:[p.jsxs("button",{className:"uca-citations-header",onClick:()=>{r(!t)},"aria-expanded":t,"aria-controls":"citations-list",type:"button","data-bi-hn":D2.AI_POWERED_ASSISTANT,"data-bi-ehn":D2.AI_POWERED_ASSISTANT,"data-bi-compnm":I2.AI_ASSISTANT,"data-bi-ct":t?P2.COLLAPSE:P2.EXPAND,"data-bi-view":M2.AI_CHAT_DRAWER,"data-bi-an":N2.AI_CHAT_DRAWER,"data-bi-bhvr":t?R2.FOOTNOTE_ARROW_CLOSE:R2.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=e.position||t+1;return p.jsxs("div",{className:"uca-citation-item",children:[p.jsx("span",{className:"uca-citation-number",children:o}),n?p.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"uca-citation-link","aria-label":`Open reference ${o}: ${r||`Reference ${o}`}`,"data-bi-cn":r||`Reference ${o}`,"data-bi-ecn":r||`Reference ${o}`,"data-bi-hn":D2.AI_POWERED_ASSISTANT,"data-bi-ehn":D2.AI_POWERED_ASSISTANT,"data-bi-compnm":I2.AI_ASSISTANT,"data-bi-ct":P2.FOOTNOTE_LINK,"data-bi-view":M2.AI_CHAT_DRAWER,"data-bi-an":N2.AI_CHAT_DRAWER,"data-bi-bhvr":R2.FOOTNOTE_LINK_BHVR,children:r||`Reference ${o}`}):p.jsx("span",{className:"uca-citation-text","data-bi-cn":r||`Reference ${o}`,"data-bi-ct":P2.FOOTNOTE_LINK,children:r||`Reference ${o}`})]},`citation-${t}`)})})]})},CDe=({suggestedAction:e,onActionClick:t})=>{const{sendMessageWithTelemetry:r}=E2();return p.jsx("div",{className:"uca-chat-suggested-actions",children:e.actions&&e.actions.map((e,n)=>p.jsx("button",{className:"uca-chat-suggested-action-button",onClick:()=>{r(e.value,e.type,""),t?.()},children:e.value},n))})},TDe=new Set;function EDe(e){const t=e.value;if("string"==typeof t)switch(t.toLowerCase()){case"1ds welcome message":return L2.WELCOME;case"1ds open app message":return L2.OPENAPP;case"1ds footnote message":case"1ds default message":default:return L2.FOOTNOTE;case"1ds privacy message":return L2.PRIVACY}}const ADe=({message:e,messageIndex:t,kind:r,isActive:n=!1,isInteractionMode:o=!1,onEnterInteractionMode:i})=>{const a=e.timestamp?new Date(e.timestamp):new Date,s=oDe(a),l=g.useRef(!1),[c,u]=g.useState(!1),d=Zb(e=>e.webChat.chatHistory),f=g.useRef(null);g.useEffect(()=>{n&&f.current&&f.current.focus()},[n]),g.useEffect(()=>{if(!f.current)return;f.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(!f.current)return;f.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 h=e,m="id"in h&&"string"==typeof h.id?h.id:"unknown",v=`${h.text}_${a.getTime()}_${t}`,y=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,d),b=function(e,t){if(t&&t.text){const r=GAe(t.text);if(r.length>0)return`Response to: ${r}. Answered ${e}`}return`Message from assistant. Received ${e}`}(s,y),w=function(e,t){if(e&&e.text){const r=GAe(e.text);if(r.length>0)return`Response to: ${r}. Answered ${t}`}return`Message from assistant. Received ${t}`}(y,s);g.useEffect(()=>{l.current||!h.text||TDe.has(v)||((e=>{const t=e.replace(/<[^>]*>/g,"").trim();t&&qAe(`New message: ${t}`)})(h.text),l.current=!0,TDe.add(v))},[h.text,v]);const x=Boolean(e.replyToId&&"string"==typeof e.replyToId&&e.replyToId.endsWith("|0000000"));return p.jsxs("article",{ref:f,className:`uca-chat-message uca-chat-message-agent ${"dbg"===r?"uca-dbg":""} ${o?"uca-interaction-mode":""}`,"aria-label":w,role:"article",tabIndex:n?0:-1,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||o||!n||(e.preventDefault(),i?.())},children:[p.jsx("h2",{className:"uca-chat-message-heading",children:b}),h.text&&h.text.length>0&&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:Ote(h.text,{markdownRespectCRLF:!0,markdownRenderHTML:!0},{externalLinkAlt:"Opens in new tab",isWelcomeMessage:x,dataBiTagDecorator:EDe(e)})}}),SDe(e)&&p.jsx(sDe,{message:e}),p.jsx(_De,{message:e})]})}),h.attachments&&h.attachments.map((t,r)=>p.jsxs("div",{className:"uca-chat-layout",children:[p.jsxs("div",{className:"uca-chat-message-bubble",children:[p.jsx(Vte,{activityId:m,attachment:t},r),SDe(e)&&"application/vnd.microsoft.card.adaptive"!==t.contentType&&p.jsx(sDe,{message:e})]}),p.jsx(_De,{message:e})]},`attachment-${r}`)),h.suggestedActions&&!c&&p.jsx("div",{className:"uca-chat-layout",children:p.jsx(CDe,{suggestedAction:h.suggestedActions,onActionClick:()=>{u(!0)}})}),p.jsx("div",{className:"uca-chat-layout",children:p.jsx("div",{className:"uca-chat-message-timestamp",children:p.jsx("small",{children:s})})})]})},PDe=()=>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"})}),IDe=()=>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"})}),BDe=()=>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"})}),NDe=()=>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"})}),DDe=()=>{const{messages:e,dismissMessage:t}=(()=>{const e=yw(),t=Zb(e=>e.error.messages),r=Zb(e=>e.error.lastMessageId&&e.error.messages.find(t=>t.id===e.error.lastMessageId)||null),n=Zb(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(LC(t.id))},1e4-r);n.push(o)}}),()=>{n.forEach(e=>clearTimeout(e))}},[t,e]),g.useEffect(()=>{r&&qAe(`${UAe}: ${r.message}`,"assertive")},[r]);const o=g.useCallback((t,r="error",n=!0)=>{e(jC({message:t,type:r,dismissible:n}))},[e]),i=g.useCallback(t=>{e(LC(t))},[e]),a=g.useCallback(()=>{e(FC())},[e]),s=g.useCallback(t=>{e(VC(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(IDe,{}),"error"!==e.type&&p.jsx(NDe,{})]}),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(PDe,{}),"error"!==e.type&&p.jsx(BDe,{})]})]})},e.id))})},zDe=({className:e,prompts:t})=>{const r=yw(),{sendMessageWithTelemetry:n}=E2(),o=Zb(i$.currentPrompts(t)),i=Zb(i$.hasCurrentPrompts(t));return i?p.jsxs("div",{className:`uca-proactive-prompts ${e||""}`,children:[p.jsx("div",{className:"uca-proactive-prompts__header",children:p.jsx("p",{className:"uca-proactive-prompts__instruction",children:"Type a follow up message or select one below."})}),p.jsx("div",{className:"uca-proactive-prompts__grid",children:o.map((e,t)=>p.jsx("button",{className:"uca-proactive-prompts__button",onClick:()=>(e=>{n(e,"message",""),r(YC.clearPrompts())})(e),"aria-label":`Send message: ${e}`,"data-bi-cn":e,"data-bi-ecn":e,"data-bi-id":z2.PROMPT_SUBMIT,"data-bi-hn":D2.AI_POWERED_ASSISTANT,"data-bi-ehn":D2.AI_POWERED_ASSISTANT,"data-bi-compnm":I2.AI_ASSISTANT,"data-bi-ct":P2.CANNED_PROMPT_SUBMIT,"data-bi-view":M2.AI_CHAT_DRAWER,"data-bi-an":N2.AI_CHAT_DRAWER,"data-bi-bhvr":R2.CHAT_INITIATE,children:p.jsx("span",{className:"uca-proactive-prompts__button-text",children:e})},t))})]}):null},ODe=({message:e,messageIndex:t,isActive:r=!1,isInteractionMode:n=!1,onEnterInteractionMode:o})=>{const i=e.text,a=oDe(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("h2",{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})})})]})},RDe=({className:e})=>{const t=Zb(e=>e.webChat.chatHistory),r=Zb(e=>e.webChat.activities),n=Zb(i$.hasCurrentPrompts()),o=((e,t="smooth")=>{const r=g.useRef(null);return g.useEffect(()=>{r.current&&r.current.scrollTo({top:r.current.scrollHeight,behavior:t})},[e,t]),r})(t),[i,a]=g.useState(0),[s,l]=g.useState(null),[c,u]=g.useState(!1),d=r[r.length-1],f=g.useRef(null),h=e=>{l(e)};return g.useEffect(()=>(f.current&&(clearTimeout(f.current),f.current=null),"typing"===d?.type?(WAe(),u(!0),f.current=window.setTimeout(()=>{$Ae(),u(!1),f.current=null},3e3)):($Ae(),u(!1)),()=>{f.current&&(clearTimeout(f.current),f.current=null)}),[d]),p.jsxs("div",{className:`uca-chat-history ${e||""}`,children:[p.jsx(DDe,{}),p.jsxs("section",{className:"uca-chat-history__content",ref:o,role:"region","aria-label":"Chat conversation","aria-live":"off",onKeyDown:e=>{if("Escape"===e.key&&null!==s)return e.preventDefault(),void l(null);if("ArrowDown"===e.key||"ArrowUp"===e.key){if(null!==s)return;e.preventDefault();const r=t?.length||0;if(0===r)return;let n;n="ArrowDown"===e.key?i<r-1?i+1:0:i>0?i-1:r-1,a(n)}},children:[t?.map((e,t)=>{const r=s===t;return"user"==e.from.role?p.jsx(ODe,{message:e,messageIndex:t,isActive:t===i,isInteractionMode:r,onEnterInteractionMode:()=>h(t)},t):"dbg"==e.from.role?p.jsx(ADe,{message:e,messageIndex:t,kind:"dbg",isActive:t===i,isInteractionMode:r,onEnterInteractionMode:()=>h(t)},t):p.jsx(ADe,{message:e,messageIndex:t,kind:"bot",isActive:t===i,isInteractionMode:r,onEnterInteractionMode:()=>h(t)},t)}),1===t?.length||n?p.jsx("div",{className:"uca-chat-history__proactive-overlay",children:p.jsx(zDe,{className:"uca-chat-history__proactive-prompts"})}):null,c&&p.jsx("div",{className:"uca-typing-indicator",children:p.jsxs("span",{className:"uca-typing-dots",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"})]})})]})]})},MDe=()=>p.jsx("div",{className:"uca-divider"}),jDe=()=>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)"})}),LDe=()=>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)"})}),{log:FDe}=z.withKind("footer"),VDe=g.forwardRef((e,t)=>{const r=yw(),[n,o]=g.useState(""),i=tge(),{sendMessageWithTelemetry:a}=E2(),s=g.useRef(null),l=Zb(tre),c=Zb(Qte).isPostSurveyEnabled,u=Zb(nre),d=Zb(EC),f=Zb(Xte);d||f.length,g.useImperativeHandle(t,()=>({focus:()=>{s.current?.focus()}}),[]);const h=()=>{const e=n.trim(),t=tC.sanitize(e);t?(hpe({behavior:R2.CHAT_INITIATE,contentTags:{aN:N2.AI_CHAT_DRAWER,compnm:I2.AI_ASSISTANT,hn:D2.AI_POWERED_ASSISTANT,ehn:D2.AI_POWERED_ASSISTANT,view:M2.AI_CHAT_DRAWER,id:z2.PROMPT_SUBMIT,cT:P2.FREEFORM_PROMPT_SUBMIT,sN:O2.SUBMIT}}),a(t,"text",{}),o("")):FDe("🚫 XSS Protection Test - Message blocked (empty after sanitization)")};return p.jsxs("div",{className:"uca-footer",children:[u===O.LivePerson?p.jsxs("small",{className:"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":B2.END_LIVE_CHAT,"data-bi-ecn":B2.END_LIVE_CHAT,"data-bi-hn":D2.AI_POWERED_ASSISTANT,"data-bi-ehn":D2.AI_POWERED_ASSISTANT,"data-bi-compnm":I2.AI_ASSISTANT,"data-bi-ct":P2.CLOSEX,"data-bi-view":M2.AI_CHAT_DRAWER,"data-bi-an":N2.AI_CHAT_DRAWER,"data-bi-bhvr":R2.CHAT_END,onClick:()=>{r(x2.userRequestDisconnect())},children:"End live chat"})]}):p.jsx("small",{className:"uca-footer-disclaimer",children:"AI-generated content may be incorrect"}),p.jsx("div",{className:"uca-send-box",children:p.jsxs("form",{className:"uca-send-box-form",onSubmit:e=>{e.preventDefault(),h()},children:[p.jsx("textarea",{ref:s,className:"uca-send-box-textarea",value:n,onChange:e=>{o(e.target.value),u===O.LivePerson&&"Connected"===l.type&&r(x2.userTyping())},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),h())},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","aria-label":"Send message","data-bi-dnt":"true",children:i===R.Night?p.jsx(LDe,{}):p.jsx(jDe,{})})]})})]})});VDe.displayName="Footer";const qDe=()=>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)"})}),HDe=({mode:e})=>{const t=yw(),{toggleDrawer:r}=Pre(),n=tge(),o=jAe(),i=()=>{r(),t(_2.logTelemetry("Assistant drawer close button clicked"))},a=Zb(nre);return 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===R.Night?p.jsx(ege,{}):p.jsx(Zme,{})})}),p.jsx("div",{className:"uca-chat-button__text",children:p.jsxs("h2",{className:"uca-title",children:[a===O.LivePerson?"[Live Agent]":""," ","Ask Microsoft​"]})})]})}),p.jsx("div",{children:p.jsx("div",{className:"uca-header-controls",children:!((e||o?.mode)===M.Sidecar)&&p.jsx("a",{className:"uca-header-chat-button__icon","data-mount":"uca-chat-button","aria-label":"Close web assistant","data-bi-cn":I2.HIDE_CHAT,"data-bi-ecn":I2.HIDE_CHAT,"data-bi-hn":D2.AI_POWERED_ASSISTANT,"data-bi-ehn":D2.AI_POWERED_ASSISTANT,"data-bi-compnm":I2.AI_ASSISTANT,"data-bi-view":M2.AI_CHAT_DRAWER,"data-bi-an":N2.AI_CHAT_DRAWER,"data-bi-bhvr":R2.CHAT_CLOSE,"data-bi-id":z2.CLOSE_AI_CHAT,role:"button",onClick:i,onKeyUp:e=>"Enter"===e.key&&i(),tabIndex:0,children:p.jsx("div",{className:"uca-close-icon","aria-hidden":"true",children:p.jsx("span",{className:"glyph-close",children:p.jsx(qDe,{})})})})})})]})},UDe=g.forwardRef(({mode:e},t)=>p.jsxs("div",{className:"uca-assistant","data-bi-an":N2.AI_CHAT_DRAWER,"data-bi-compnm":I2.AI_ASSISTANT,children:[p.jsx(HDe,{mode:e}),p.jsx(MDe,{}),p.jsx(RDe,{className:"uca-assistant-content"}),p.jsx(MDe,{}),p.jsx(VDe,{ref:t})]}));UDe.displayName="Assistant";const WDe=()=>{const{isDrawerOpen:e}=Pre(),t=jAe();MAe(e?t:void 0);const[r,n]=g.useState(e),[o,i]=g.useState(null),[a,s]=g.useState(""),l=g.useRef(null),c=g.useRef(null),u=g.useRef(null),d=g.useRef(!1),f=g.useCallback(()=>{if(d.current)return;d.current=!0;const e=(t=0)=>{const r=document.querySelector(".uca-assistant-drawer-button");if(r)try{if(r.focus(),document.activeElement===r)return void(d.current=!1)}catch(n){}t<5?setTimeout(()=>e(t+1),200):(u.current&&u.current!==document.body&&u.current.focus(),d.current=!1)};e()},[]),h=g.useCallback(e=>e.closest(".uca-assistant-drawer-button")?"drawer-button":e.closest(".uca-proactive-chat")||e.closest('[data-bi-id="chatEngagement"]')?"proactive-chat":null,[]),m=g.useCallback((e,t)=>setTimeout(e,t),[]);g.useEffect(()=>{e&&n(!0)},[e]),g.useEffect(()=>{let t=null,n=[];if(e&&r){const e=document.activeElement;if(e){u.current=e;const t=h(e);i(t)}s("Web assistant drawer opened. You can now ask questions or make requests.");const r=(e=0)=>{if(e>=5)return;c.current?.focus();const t=document.activeElement;if(!("Message input box"===t?.getAttribute("aria-label"))){const t=setTimeout(()=>r(e+1),50);n.push(t)}};t=setTimeout(()=>r(),100)}else!e&&u.current&&(s("Web assistant drawer closed."),t=setTimeout(f,300));return()=>{t&&clearTimeout(t),n.forEach(e=>clearTimeout(e))}},[e,r,h,m,f]),g.useEffect(()=>{let t=[];const r=()=>{if(e&&c.current){const e=(r=0)=>{if(r>=5)return;c.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(a){const e=setTimeout(()=>s(""),2e3);return()=>clearTimeout(e)}},[a]);const v=g.useCallback(t=>{t.target===l.current&&"transform"===t.propertyName&&(e||n(!1))},[e]);return g.useEffect(()=>{const e=l.current;if(e)return e.addEventListener("transitionend",v),()=>e.removeEventListener("transitionend",v)},[v]),p.jsxs("div",{className:"uca-assistant-drawer-panel "+(e?"open":""),ref:l,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:a}),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(UDe,{mode:M.Drawer,ref:c})]})},$De=()=>{const e=jAe();return MAe(e),p.jsx("div",{className:"uca-assistant-sidecar-panel",children:p.jsx(UDe,{mode:M.Sidecar})})};class GDe extends g.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){this.setState({error:e,errorInfo:t});const r=new gAe(`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"}});XW("UnifiedChatAssistant_ErrorBoundary",r,{...r.toJSON(),reactComponentStack:t.componentStack,reactErrorDigest:t.errorDigest}),this.props.onError&&this.props.onError(e,t),Xme.dispatch(_2.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(bze){return["ParseError"]}}render(){return this.state.hasError?null:this.props.children}}const YDe=["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"],KDe={"/content/microsoft/bade":"www.microsoft.com","/content/azure/acom":"azure.microsoft.com"},JDe={"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"},XDe={"sr-rs":["sr-rs","sr-latn-rs","sr-cyrl-rs"]},QDe=e=>e.endsWith("/")&&e.length>1?e.slice(0,-1):e,ZDe=(e,t="")=>(e??t).toLowerCase(),eze=(e,t)=>{const r=e.toLowerCase(),n=t.map(e=>`/${e}`).find(e=>r.startsWith(e)),o=n?r.replace(n,""):r;return QDe(o)},tze=e=>{const t=ZDe(location.hostname),r=ZDe(location.pathname,"/"),n=ZDe(document.documentElement?.lang,"en-us"),o=(e=>XDe[e]??[e])(n),i=eze(r,o),a=((e,t,r)=>{const n=t.split("-")[0],o=ZDe(new URLSearchParams(r).get("market"));return o&&!1!==e?`${n}-${o}`:t})(e.marketAware,n,location.search),s=Boolean(e.previews)&&YDe.includes(t);let l=JDe[t]??t,c=i;if(s){const e=(e=>e.replace(/\/content\/launches(\/[^/]+){4}/g,""))(r),t=(e=>Object.keys(KDe).find(t=>e.startsWith(t)))(e),n=t?KDe[t]:void 0;if(!t||!n)return!1;l=n;const i=e.replace(t,"").replace(/\.html$/,"");c=QDe(eze(i,o))}const u=e[l];if("object"!=typeof u||null===u)return!1;if(u.markets?.length&&!u.markets.includes(a))return!1;if(u.paths?.length){const e=u.paths.includes(c),t=!0===u.allSubpaths&&((e,t)=>t.some(t=>t&&e.startsWith(t)))(c,u.paths);if(!e&&!t)return!1}return!0},rze={"azure.microsoft.com":{markets:["en-us"]},previews:!0},nze={"www.microsoft.com":{paths:["/power-platform"],allSubpaths:!0,markets:["en-us"]},previews:!0},oze={"www.microsoft.com":{paths:["/microsoft-365"],allSubpaths:!0,markets:["en-us"]},previews:!0},ize=e=>{const t=document.querySelector(".uca-assistant-drawer-button");t&&(t.hidden=e)},aze=()=>{const e=g.useMemo(()=>tze(rze),[]),t=g.useMemo(()=>tze(nze),[]),r=g.useMemo(()=>tze(oze),[]),n=e||t||r||!1,{isDrawerOpen:o,setDrawerOpen:i}=Pre(),[a,s]=g.useState(!1),l=g.useRef(null),c=g.useRef(null),u=g.useRef(null),d=g.useRef(null),f=g.useMemo(()=>"ai"===new URLSearchParams(window.location.search).get("exp"),[]),h=g.useMemo(()=>f?5e3:6e4,[f]);g.useEffect(()=>{if(!n)return void s(!1);const e=mC(),t=e?.hideProactiveChat;if(t||o)return void s(!1);const r=window.setTimeout(()=>{s(!0)},h);return()=>{window.clearTimeout(r)}},[n,h,o]),g.useEffect(()=>{o&&s(!1)},[o]),g.useEffect(()=>(ize(a),a?(d.current=document.activeElement instanceof HTMLElement?document.activeElement:null,window.setTimeout(()=>{l.current?.focus()},0)):d.current&&(d.current.focus(),d.current=null),()=>ize(!1)),[a]);const m=g.useCallback(()=>{gC({hideProactiveChat:!0}),s(!1)},[]),v=g.useCallback(e=>{e.preventDefault(),e.stopPropagation(),s(!1),gC({hideProactiveChat:!0}),i(!0)},[i]),y=g.useCallback(e=>{if("Tab"!==e.key)return;const t=[l.current,c.current,u.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 n?a&&p.jsxs("div",{id:"uca-proactive-chat",className:"uca-proactive-chat animation animation--effect-2",role:"dialog","aria-live":"polite","aria-labelledby":"uca-proactive-chat-heading","data-popup-delay":h,onKeyDown:y,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:l,type:"button",className:"btn btn--icon-only btn--secondary","aria-label":"Close this invitation to chat","aria-controls":"uca-proactive-chat",onClick:m,"data-bi-cn":"Chat_invite_decline","data-bi-bhvr":"15","data-bi-compnm":"AI Chat Proactive Popup","data-bi-id":"chatDisengagement","data-bi-an":N2.AI_CHAT_DRAWER,"data-bi-hn":D2.AI_POWERED_ASSISTANT,"data-bi-ehn":D2.AI_POWERED_ASSISTANT,"data-bi-view":M2.AI_CHAT_DRAWER,children:p.jsx("span",{className:"glyph-close","aria-hidden":"true",children:p.jsx(qDe,{})})})]}),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, and connect with a product specialist."})}),p.jsx("div",{className:"block-feature__footer",children:p.jsxs("div",{className:"button-group",children:[p.jsx("button",{ref:c,type:"button",className:"btn uca-open-chat","aria-controls":"unified-chat-assistant","aria-expanded":o,onClick:v,"data-bi-cn":"Chat_invite_accept","data-bi-bhvr":"180","data-bi-compnm":"AI Chat Proactive Popup","data-bi-id":"chatEngagement","data-bi-an":N2.AI_CHAT_DRAWER,"data-bi-hn":D2.AI_POWERED_ASSISTANT,"data-bi-ehn":D2.AI_POWERED_ASSISTANT,"data-bi-view":M2.AI_CHAT_DRAWER,children:p.jsx("div",{className:"btn__text",children:"Ask now"})}),p.jsx("button",{ref:u,type:"button",className:"btn btn--secondary uca-close-link","aria-controls":"uca-proactive-chat","aria-label":"Cancel this invitation to chat",onClick:m,"data-bi-cn":"Chat_invite_decline","data-bi-bhvr":"15","data-bi-compnm":"AI Chat Proactive Popup","data-bi-id":"chatDisengagement","data-bi-an":N2.AI_CHAT_DRAWER,"data-bi-hn":D2.AI_POWERED_ASSISTANT,"data-bi-ehn":D2.AI_POWERED_ASSISTANT,"data-bi-view":M2.AI_CHAT_DRAWER,children:p.jsx("span",{className:"link__text",children:"No thanks"})})]})})]})]})})]}):null},sze=()=>Date.now().toString()+"-"+Math.random().toString(36).substring(2,15),lze={isInitialized:!1,isSessionEnded:!1,sessionId:sze()};function cze(e,t){switch(t.type){case"INITIALIZE_TELEMETRY":return{...e,isInitialized:!0};case"END_SESSION":return{...e,isSessionEnded:!0};case"RESET_SESSION":return{...lze,sessionId:sze()};default:return e}}function uze(){const[e,t]=g.useReducer(cze,lze),r=g.useCallback(()=>{e.isInitialized||(!function(){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;$W.initialize({connectionString:e,enableAutoRouteTracking:!1,enableCorsCorrelation:!0,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,disableFetchTracking:!0,disableAjaxTracking:!0,disableExceptionTracking:!0,samplingPercentage:r})}catch(e){YW("UCA Telemetry: Failed to initialize:",e)}}(),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}}const dze=new Map,fze=["unifiedChatAssistant","unified-chat-assistant","uca-","chat-assistant","/src/","components/","middleware/","plugins/","shared/","hooks/","directline","liveperson"];function hze(e){return function(e={}){const{filterComponentErrors:t=!0,componentIdentifiers:r=fze,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-(dze.get(e)||0)<3e4)return!0;dze.set(e,t);for(const[r,n]of dze)t-n>3e4&&dze.delete(r);return!1}function c(e,t,r){if(o){const o=new gAe(`${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"}});$W.trackException({exception:e,severityLevel:eT.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"}}),z.error("Parsed Stack:",o.parsedStack),z.error("Build Info:",o.buildInfo),z.error("Execution Context:",o.executionContext)}else $W.trackException({exception:e,severityLevel:eT.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:fze,namespace:"UnifiedChatAssistant",enhancedMode:!1,enableDeduplication:!0,disableHandlers:e??!0})}const pze=({options:e})=>{const t=yw(),[r]=g.useState(Date.now()),{initializeTelemetryIfNeeded:n,endSession:o}=uze(),[i,a]=g.useState(!1);g.useEffect(()=>{const r=e||W;t(l$(r.theme)),t(Zx(r))},[t,e]),g.useEffect(()=>{n(),Dre();const t=hze((e||W).disableUnhandledErrorHandlers),i=()=>{!function(e){try{void 0!==e&&$W.trackMetric(lT,e||0,{sessionDuration:e?.toString()||"0"})}catch(t){console.error("Failed to track chat session metrics:",t)}}(Date.now()-r),ZW(oT),o(),a(!1),function(){try{$W.flush()}catch(e){console.error("Failed to flush telemetry:",e)}}()};return window.addEventListener("beforeunload",i),a(!0),()=>{window.removeEventListener("beforeunload",i),t()}},[]);return g.useEffect(()=>{if(i){(e?.mode||M.Drawer)===M.Sidecar&&(t="assistant-load",r={behavior:14,contentTags:{aN:"AI Chat Drawer",cN:"AI Assistant Load",ecn:"AI Assistant Load",compnm:"AI assistant",hn:"AI-Powered Assistant",ehn:"AI-Powered Assistant",view:"AI assistant | AI Chat Drawer"}},!dpe.has(t)&&(fpe().capturePageAction(r),dpe.add(t)),function(){try{$W.trackEvent({name:cT})}catch(e){console.error("Failed to track assistant loaded event:",e)}}())}var t,r},[i,e?.mode]),p.jsx(Rc,{theme:e?.theme===R.Night?Ec:Tc,children:p.jsx("div",{className:e?.theme===R.Night?"theme-night":"theme-day",children:(()=>{switch(e?.mode||M.Drawer){case M.Drawer:return p.jsxs(p.Fragment,{children:[p.jsx(rge,{}),p.jsx(WDe,{}),p.jsx(aze,{})]});case M.Sidecar:case M.Fullscreen:default:return p.jsx($De,{})}})()})})},mze=({options:e})=>p.jsx(GDe,{onError:(e,t)=>{Xme.dispatch(_2.logTelemetry(`UnifiedChatAssistant Error: error: ${e}; errorInfo: ${JSON.stringify(t)}`))},store:Xme,children:p.jsx(pw,{store:Xme,children:p.jsx(pze,{options:e})})}),{logError:gze}=z.withKind("entrypoint");let vze=document.querySelector("#unified-chat-assistant"),yze=W;if(vze&&vze.hasAttribute("options"))try{const e=vze.getAttribute("options");if(e){const t=JSON.parse(e);"object"==typeof t&&null!==t?yze={...yze,...t}:gze("Parsed options is not an object:",t)}}catch(bze){gze("Failed to parse options:",bze)}if(yze.mode==M.Sidecar){let e=document.querySelector("body");e&&e.classList.add("uca-sidecar-mode")}vze?N.createRoot(vze).render(p.jsx(v.StrictMode,{children:p.jsx(mze,{options:yze})})):gze('Chat element not found. Please ensure the element with id "unified-chat-assistant" exists in the DOM.');
//# sourceMappingURL=uca.mjs.map
