tampermonkey-apifox

Apifox 模型生成器

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         tampermonkey-apifox
// @namespace    npm/vite-plugin-monkey
// @version      2.6.3
// @author       monkey
// @description  Apifox 模型生成器
// @license      MIT
// @icon         https://cdn.apifox.com/logo/apifox-logo-256.png
// @match        https://app.apifox.com/*
// @require      https://unpkg.com/vue@3/dist/vue.global.prod.js
// @require      https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.global.prod.js
// @require      https://cdn.jsdelivr.net/npm/[email protected]/dist/system.min.js
// @require      https://cdn.jsdelivr.net/npm/[email protected]/dist/extras/named-register.min.js
// @require      data:application/javascript,%3B(typeof%20System!%3D'undefined')%26%26(System%3Dnew%20System.constructor())%3B
// @grant        GM_addStyle
// ==/UserScript==

(e=>{if(typeof GM_addStyle=="function"){GM_addStyle(e);return}const o=document.createElement("style");o.textContent=e,document.head.append(o)})(` @charset "UTF-8";:root{--el-color-primary: #3780ff !important}.app-container,.overlay-vdom-container{padding:0;margin:0;position:relative}.app-container div,.overlay-vdom-container div{box-sizing:border-box}html.dark,html[theme=dark],html[theme=darkblue],html[theme=grey]{color-scheme:dark;--el-color-primary:#409eff;--el-color-primary-light-3:rgb(50.8,116.6,184.5);--el-color-primary-light-5:rgb(42,89,137.5);--el-color-primary-light-7:rgb(33.2,61.4,90.5);--el-color-primary-light-8:rgb(28.8,47.6,67);--el-color-primary-light-9:rgb(24.4,33.8,43.5);--el-color-primary-dark-2:rgb(102.2,177.4,255);--el-color-success:#67c23a;--el-color-success-light-3:rgb(78.1,141.8,46.6);--el-color-success-light-5:rgb(61.5,107,39);--el-color-success-light-7:rgb(44.9,72.2,31.4);--el-color-success-light-8:rgb(36.6,54.8,27.6);--el-color-success-light-9:rgb(28.3,37.4,23.8);--el-color-success-dark-2:rgb(133.4,206.2,97.4);--el-color-warning:#e6a23c;--el-color-warning-light-3:rgb(167,119.4,48);--el-color-warning-light-5:#7d5b28;--el-color-warning-light-7:rgb(83,62.6,32);--el-color-warning-light-8:rgb(62,48.4,28);--el-color-warning-light-9:rgb(41,34.2,24);--el-color-warning-dark-2:rgb(235,180.6,99);--el-color-danger:#f56c6c;--el-color-danger-light-3:rgb(177.5,81.6,81.6);--el-color-danger-light-5:rgb(132.5,64,64);--el-color-danger-light-7:rgb(87.5,46.4,46.4);--el-color-danger-light-8:rgb(65,37.6,37.6);--el-color-danger-light-9:rgb(42.5,28.8,28.8);--el-color-danger-dark-2:rgb(247,137.4,137.4);--el-color-error:#f56c6c;--el-color-error-light-3:rgb(177.5,81.6,81.6);--el-color-error-light-5:rgb(132.5,64,64);--el-color-error-light-7:rgb(87.5,46.4,46.4);--el-color-error-light-8:rgb(65,37.6,37.6);--el-color-error-light-9:rgb(42.5,28.8,28.8);--el-color-error-dark-2:rgb(247,137.4,137.4);--el-color-info:#909399;--el-color-info-light-3:rgb(106.8,108.9,113.1);--el-color-info-light-5:rgb(82,83.5,86.5);--el-color-info-light-7:rgb(57.2,58.1,59.9);--el-color-info-light-8:rgb(44.8,45.4,46.6);--el-color-info-light-9:rgb(32.4,32.7,33.3);--el-color-info-dark-2:rgb(166.2,168.6,173.4);--el-box-shadow:0px 12px 32px 4px rgba(0,0,0,.36),0px 8px 20px rgba(0,0,0,.72);--el-box-shadow-light:0px 0px 12px rgba(0,0,0,.72);--el-box-shadow-lighter:0px 0px 6px rgba(0,0,0,.72);--el-box-shadow-dark:0px 16px 48px 16px rgba(0,0,0,.72),0px 12px 32px #000000,0px 8px 16px -8px #000000;--el-bg-color-page:#0a0a0a;--el-bg-color:#141414;--el-bg-color-overlay:#1d1e1f;--el-text-color-primary:#E5EAF3;--el-text-color-regular:#CFD3DC;--el-text-color-secondary:#A3A6AD;--el-text-color-placeholder:#8D9095;--el-text-color-disabled:#6C6E72;--el-border-color-darker:#636466;--el-border-color-dark:#58585B;--el-border-color:#4C4D4F;--el-border-color-light:#414243;--el-border-color-lighter:#363637;--el-border-color-extra-light:#2B2B2C;--el-fill-color-darker:#424243;--el-fill-color-dark:#39393A;--el-fill-color:#303030;--el-fill-color-light:#262727;--el-fill-color-lighter:#1D1D1D;--el-fill-color-extra-light:#191919;--el-fill-color-blank:transparent;--el-mask-color:rgba(0,0,0,.8);--el-mask-color-extra-light:rgba(0,0,0,.3)}html.dark .el-button{--el-button-disabled-text-color:rgba(255,255,255,.5)}html.dark .el-card{--el-card-bg-color:var(--el-bg-color-overlay)}html.dark .el-empty{--el-empty-fill-color-0:var(--el-color-black);--el-empty-fill-color-1:#4b4b52;--el-empty-fill-color-2:#36383d;--el-empty-fill-color-3:#1e1e20;--el-empty-fill-color-4:#262629;--el-empty-fill-color-5:#202124;--el-empty-fill-color-6:#212224;--el-empty-fill-color-7:#1b1c1f;--el-empty-fill-color-8:#1c1d1f;--el-empty-fill-color-9:#18181a}:root{--el-color-white: #ffffff;--el-color-black: #000000;--el-color-primary-rgb: 64, 158, 255;--el-color-success-rgb: 103, 194, 58;--el-color-warning-rgb: 230, 162, 60;--el-color-danger-rgb: 245, 108, 108;--el-color-error-rgb: 245, 108, 108;--el-color-info-rgb: 144, 147, 153;--el-font-size-extra-large: 20px;--el-font-size-large: 18px;--el-font-size-medium: 16px;--el-font-size-base: 14px;--el-font-size-small: 13px;--el-font-size-extra-small: 12px;--el-font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\u5FAE\u8F6F\u96C5\u9ED1", Arial, sans-serif;--el-font-weight-primary: 500;--el-font-line-height-primary: 24px;--el-index-normal: 1;--el-index-top: 1000;--el-index-popper: 2000;--el-border-radius-base: 4px;--el-border-radius-small: 2px;--el-border-radius-round: 20px;--el-border-radius-circle: 100%;--el-transition-duration: .3s;--el-transition-duration-fast: .2s;--el-transition-function-ease-in-out-bezier: cubic-bezier(.645, .045, .355, 1);--el-transition-function-fast-bezier: cubic-bezier(.23, 1, .32, 1);--el-transition-all: all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade: opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade: transform var(--el-transition-duration) var(--el-transition-function-fast-bezier), opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear: opacity var(--el-transition-duration-fast) linear;--el-transition-border: border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow: box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color: color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large: 40px;--el-component-size: 32px;--el-component-size-small: 24px}:root{color-scheme:light;--el-color-primary: #409eff;--el-color-primary-light-3: rgb(121.3, 187.1, 255);--el-color-primary-light-5: rgb(159.5, 206.5, 255);--el-color-primary-light-7: rgb(197.7, 225.9, 255);--el-color-primary-light-8: rgb(216.8, 235.6, 255);--el-color-primary-light-9: rgb(235.9, 245.3, 255);--el-color-primary-dark-2: rgb(51.2, 126.4, 204);--el-color-success: #67c23a;--el-color-success-light-3: rgb(148.6, 212.3, 117.1);--el-color-success-light-5: rgb(179, 224.5, 156.5);--el-color-success-light-7: rgb(209.4, 236.7, 195.9);--el-color-success-light-8: rgb(224.6, 242.8, 215.6);--el-color-success-light-9: rgb(239.8, 248.9, 235.3);--el-color-success-dark-2: rgb(82.4, 155.2, 46.4);--el-color-warning: #e6a23c;--el-color-warning-light-3: rgb(237.5, 189.9, 118.5);--el-color-warning-light-5: rgb(242.5, 208.5, 157.5);--el-color-warning-light-7: rgb(247.5, 227.1, 196.5);--el-color-warning-light-8: rgb(250, 236.4, 216);--el-color-warning-light-9: rgb(252.5, 245.7, 235.5);--el-color-warning-dark-2: rgb(184, 129.6, 48);--el-color-danger: #f56c6c;--el-color-danger-light-3: rgb(248, 152.1, 152.1);--el-color-danger-light-5: rgb(250, 181.5, 181.5);--el-color-danger-light-7: rgb(252, 210.9, 210.9);--el-color-danger-light-8: rgb(253, 225.6, 225.6);--el-color-danger-light-9: rgb(254, 240.3, 240.3);--el-color-danger-dark-2: rgb(196, 86.4, 86.4);--el-color-error: #f56c6c;--el-color-error-light-3: rgb(248, 152.1, 152.1);--el-color-error-light-5: rgb(250, 181.5, 181.5);--el-color-error-light-7: rgb(252, 210.9, 210.9);--el-color-error-light-8: rgb(253, 225.6, 225.6);--el-color-error-light-9: rgb(254, 240.3, 240.3);--el-color-error-dark-2: rgb(196, 86.4, 86.4);--el-color-info: #909399;--el-color-info-light-3: rgb(177.3, 179.4, 183.6);--el-color-info-light-5: rgb(199.5, 201, 204);--el-color-info-light-7: rgb(221.7, 222.6, 224.4);--el-color-info-light-8: rgb(232.8, 233.4, 234.6);--el-color-info-light-9: rgb(243.9, 244.2, 244.8);--el-color-info-dark-2: rgb(115.2, 117.6, 122.4);--el-bg-color: #ffffff;--el-bg-color-page: #f2f3f5;--el-bg-color-overlay: #ffffff;--el-text-color-primary: #303133;--el-text-color-regular: #606266;--el-text-color-secondary: #909399;--el-text-color-placeholder: #a8abb2;--el-text-color-disabled: #c0c4cc;--el-border-color: #dcdfe6;--el-border-color-light: #e4e7ed;--el-border-color-lighter: #ebeef5;--el-border-color-extra-light: #f2f6fc;--el-border-color-dark: #d4d7de;--el-border-color-darker: #cdd0d6;--el-fill-color: #f0f2f5;--el-fill-color-light: #f5f7fa;--el-fill-color-lighter: #fafafa;--el-fill-color-extra-light: #fafcff;--el-fill-color-dark: #ebedf0;--el-fill-color-darker: #e6e8eb;--el-fill-color-blank: #ffffff;--el-box-shadow: 0px 12px 32px 4px rgba(0, 0, 0, .04), 0px 8px 20px rgba(0, 0, 0, .08);--el-box-shadow-light: 0px 0px 12px rgba(0, 0, 0, .12);--el-box-shadow-lighter: 0px 0px 6px rgba(0, 0, 0, .12);--el-box-shadow-dark: 0px 16px 48px 16px rgba(0, 0, 0, .08), 0px 12px 32px rgba(0, 0, 0, .12), 0px 8px 16px -8px rgba(0, 0, 0, .16);--el-disabled-bg-color: var(--el-fill-color-light);--el-disabled-text-color: var(--el-text-color-placeholder);--el-disabled-border-color: var(--el-border-color-light);--el-overlay-color: rgba(0, 0, 0, .8);--el-overlay-color-light: rgba(0, 0, 0, .7);--el-overlay-color-lighter: rgba(0, 0, 0, .5);--el-mask-color: rgba(255, 255, 255, .9);--el-mask-color-extra-light: rgba(255, 255, 255, .3);--el-border-width: 1px;--el-border-style: solid;--el-border-color-hover: var(--el-text-color-disabled);--el-border: var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey: var(--el-border-color)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center top}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--el-transition-md-fade);transform-origin:center bottom}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transition:var(--el-transition-md-fade);transform-origin:top left}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-leave-active,.el-collapse-transition-enter-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-icon-loading{animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.el-icon{--color: inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.el-dialog{--el-dialog-width: 50%;--el-dialog-margin-top: 15vh;--el-dialog-bg-color: var(--el-bg-color);--el-dialog-box-shadow: var(--el-box-shadow);--el-dialog-title-font-size: var(--el-font-size-large);--el-dialog-content-font-size: 14px;--el-dialog-font-line-height: var(--el-font-line-height-primary);--el-dialog-padding-primary: 16px;--el-dialog-border-radius: var(--el-border-radius-base);position:relative;margin:var(--el-dialog-margin-top, 15vh) auto 50px;background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;padding:var(--el-dialog-padding-primary);width:var(--el-dialog-width, 50%);overflow-wrap:break-word}.el-dialog:focus{outline:none!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width: 100%;--el-dialog-margin-top: 0;margin-bottom:0;height:100%;overflow:auto;border-radius:0}.el-dialog__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;margin:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;user-select:none}.el-dialog__header{padding-bottom:var(--el-dialog-padding-primary)}.el-dialog__header.show-close{padding-right:calc(var(--el-dialog-padding-primary) + var(--el-message-close-size, 16px))}.el-dialog__headerbtn{position:absolute;top:0;right:0;padding:0;width:48px;height:48px;background:transparent;border:none;outline:none;cursor:pointer;font-size:var(--el-message-close-size, 16px)}.el-dialog__headerbtn .el-dialog__close{color:var(--el-color-info);font-size:inherit}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:var(--el-color-primary)}.el-dialog__title{line-height:var(--el-dialog-font-line-height);font-size:var(--el-dialog-title-font-size);color:var(--el-text-color-primary)}.el-dialog__body{color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size)}.el-dialog__footer{padding-top:var(--el-dialog-padding-primary);text-align:right;box-sizing:border-box}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-overlay-dialog{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto}.dialog-fade-enter-active{animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{animation:dialog-fade-out var(--el-transition-duration)}@keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}.el-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;height:100%;background-color:var(--el-overlay-color-lighter);overflow:auto}.el-overlay .el-overlay-root{height:0}.super-dialog{overflow:hidden}.super-dialog-modal-transparent{background-color:transparent!important}.drag-overlay{position:fixed;top:0;left:0;z-index:99999999;cursor:pointer}.el-form{--el-form-label-font-size: var(--el-font-size-base);--el-form-inline-content-width: 220px}.el-form--inline .el-form-item{display:inline-flex;vertical-align:middle;margin-right:32px}.el-form--inline.el-form--label-top{display:flex;flex-wrap:wrap}.el-form--inline.el-form--label-top .el-form-item{display:block}.el-form-item{display:flex;--font-size: 14px;margin-bottom:18px}.el-form-item .el-form-item{margin-bottom:0}.el-form-item .el-input__validateIcon{display:none}.el-form-item--large{--font-size: 14px;--el-form-label-font-size: var(--font-size);margin-bottom:22px}.el-form-item--large .el-form-item__label{height:40px;line-height:40px}.el-form-item--large .el-form-item__content{line-height:40px}.el-form-item--large .el-form-item__error{padding-top:4px}.el-form-item--default{--font-size: 14px;--el-form-label-font-size: var(--font-size);margin-bottom:18px}.el-form-item--default .el-form-item__label{height:32px;line-height:32px}.el-form-item--default .el-form-item__content{line-height:32px}.el-form-item--default .el-form-item__error{padding-top:2px}.el-form-item--small{--font-size: 12px;--el-form-label-font-size: var(--font-size);margin-bottom:18px}.el-form-item--small .el-form-item__label{height:24px;line-height:24px}.el-form-item--small .el-form-item__content{line-height:24px}.el-form-item--small .el-form-item__error{padding-top:2px}.el-form-item--label-left .el-form-item__label{text-align:left;justify-content:flex-start}.el-form-item--label-right .el-form-item__label{text-align:right;justify-content:flex-end}.el-form-item--label-top{display:block}.el-form-item--label-top .el-form-item__label{display:block;height:auto;text-align:left;margin-bottom:8px;line-height:22px}.el-form-item__label-wrap{display:flex}.el-form-item__label{display:inline-flex;align-items:flex-start;flex:0 0 auto;font-size:var(--el-form-label-font-size);color:var(--el-text-color-regular);height:32px;line-height:32px;padding:0 12px 0 0;box-sizing:border-box}.el-form-item__content{display:flex;flex-wrap:wrap;align-items:center;flex:1;line-height:32px;position:relative;font-size:var(--font-size);min-width:0}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:var(--el-color-danger);font-size:12px;line-height:1;padding-top:2px;position:absolute;top:100%;left:0}.el-form-item__error--inline{position:relative;top:auto;left:auto;display:inline-block;margin-left:10px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label:before,.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label:before{content:"*";color:var(--el-color-danger);margin-right:4px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label:after,.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label-wrap>.el-form-item__label:after{content:"*";color:var(--el-color-danger);margin-left:4px}.el-form-item.is-error .el-input__wrapper,.el-form-item.is-error .el-input__wrapper:hover,.el-form-item.is-error .el-input__wrapper:focus,.el-form-item.is-error .el-input__wrapper.is-focus,.el-form-item.is-error .el-textarea__inner,.el-form-item.is-error .el-textarea__inner:hover,.el-form-item.is-error .el-textarea__inner:focus,.el-form-item.is-error .el-textarea__inner.is-focus,.el-form-item.is-error .el-select__wrapper,.el-form-item.is-error .el-select__wrapper:hover,.el-form-item.is-error .el-select__wrapper:focus,.el-form-item.is-error .el-select__wrapper.is-focus,.el-form-item.is-error .el-input-tag__wrapper,.el-form-item.is-error .el-input-tag__wrapper:hover,.el-form-item.is-error .el-input-tag__wrapper:focus,.el-form-item.is-error .el-input-tag__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input-group__append .el-input__wrapper,.el-form-item.is-error .el-input-group__prepend .el-input__wrapper{box-shadow:0 0 0 1px transparent inset}.el-form-item.is-error .el-input-group__append .el-input__validateIcon,.el-form-item.is-error .el-input-group__prepend .el-input__validateIcon{display:none}.el-form-item.is-error .el-input__validateIcon{color:var(--el-color-danger)}.el-form-item--feedback .el-input__validateIcon{display:inline-flex}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--el-color-primary);mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.el-radio-group{display:inline-flex;align-items:center;flex-wrap:wrap;font-size:0}.el-scrollbar{--el-scrollbar-opacity: .3;--el-scrollbar-bg-color: var(--el-text-color-secondary);--el-scrollbar-hover-opacity: .5;--el-scrollbar-hover-bg-color: var(--el-text-color-secondary)}.el-scrollbar{overflow:hidden;position:relative;height:100%}.el-scrollbar__wrap{overflow:auto;height:100%}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:var(--el-scrollbar-bg-color, var(--el-text-color-secondary));transition:var(--el-transition-duration) background-color;opacity:var(--el-scrollbar-opacity, .3)}.el-scrollbar__thumb:hover{background-color:var(--el-scrollbar-hover-bg-color, var(--el-text-color-secondary));opacity:var(--el-scrollbar-hover-opacity, .5)}.el-scrollbar__bar{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px}.el-scrollbar__bar.is-vertical{width:6px;top:2px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.el-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.el-scrollbar-fade-enter-from,.el-scrollbar-fade-leave-active{opacity:0}.el-tag{--el-tag-font-size: 12px;--el-tag-border-radius: 4px;--el-tag-border-radius-rounded: 9999px}.el-tag{background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);color:var(--el-tag-text-color);display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;height:24px;padding:0 9px;font-size:var(--el-tag-font-size);line-height:1;border-width:1px;border-style:solid;border-radius:var(--el-tag-border-radius);box-sizing:border-box;white-space:nowrap;--el-icon-size: 14px;--el-tag-bg-color: var(--el-color-primary-light-9);--el-tag-border-color: var(--el-color-primary-light-8);--el-tag-hover-color: var(--el-color-primary)}.el-tag.el-tag--primary{--el-tag-bg-color: var(--el-color-primary-light-9);--el-tag-border-color: var(--el-color-primary-light-8);--el-tag-hover-color: var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-bg-color: var(--el-color-success-light-9);--el-tag-border-color: var(--el-color-success-light-8);--el-tag-hover-color: var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-bg-color: var(--el-color-warning-light-9);--el-tag-border-color: var(--el-color-warning-light-8);--el-tag-hover-color: var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-bg-color: var(--el-color-danger-light-9);--el-tag-border-color: var(--el-color-danger-light-8);--el-tag-hover-color: var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-bg-color: var(--el-color-error-light-9);--el-tag-border-color: var(--el-color-error-light-8);--el-tag-hover-color: var(--el-color-error)}.el-tag.el-tag--info{--el-tag-bg-color: var(--el-color-info-light-9);--el-tag-border-color: var(--el-color-info-light-8);--el-tag-hover-color: var(--el-color-info)}.el-tag.is-hit{border-color:var(--el-color-primary)}.el-tag.is-round{border-radius:var(--el-tag-border-radius-rounded)}.el-tag .el-tag__close{flex-shrink:0;color:var(--el-tag-text-color)}.el-tag .el-tag__close:hover{color:var(--el-color-white);background-color:var(--el-tag-hover-color)}.el-tag.el-tag--primary{--el-tag-text-color: var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-text-color: var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-text-color: var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-text-color: var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-text-color: var(--el-color-error)}.el-tag.el-tag--info{--el-tag-text-color: var(--el-color-info)}.el-tag .el-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--el-icon-size) - 2px);height:var(--el-icon-size);width:var(--el-icon-size)}.el-tag .el-tag__close{margin-left:6px}.el-tag--dark{--el-tag-text-color: var(--el-color-white);--el-tag-bg-color: var(--el-color-primary);--el-tag-border-color: var(--el-color-primary);--el-tag-hover-color: var(--el-color-primary-light-3)}.el-tag--dark.el-tag--primary{--el-tag-bg-color: var(--el-color-primary);--el-tag-border-color: var(--el-color-primary);--el-tag-hover-color: var(--el-color-primary-light-3)}.el-tag--dark.el-tag--success{--el-tag-bg-color: var(--el-color-success);--el-tag-border-color: var(--el-color-success);--el-tag-hover-color: var(--el-color-success-light-3)}.el-tag--dark.el-tag--warning{--el-tag-bg-color: var(--el-color-warning);--el-tag-border-color: var(--el-color-warning);--el-tag-hover-color: var(--el-color-warning-light-3)}.el-tag--dark.el-tag--danger{--el-tag-bg-color: var(--el-color-danger);--el-tag-border-color: var(--el-color-danger);--el-tag-hover-color: var(--el-color-danger-light-3)}.el-tag--dark.el-tag--error{--el-tag-bg-color: var(--el-color-error);--el-tag-border-color: var(--el-color-error);--el-tag-hover-color: var(--el-color-error-light-3)}.el-tag--dark.el-tag--info{--el-tag-bg-color: var(--el-color-info);--el-tag-border-color: var(--el-color-info);--el-tag-hover-color: var(--el-color-info-light-3)}.el-tag--dark.el-tag--primary,.el-tag--dark.el-tag--success,.el-tag--dark.el-tag--warning,.el-tag--dark.el-tag--danger,.el-tag--dark.el-tag--error,.el-tag--dark.el-tag--info{--el-tag-text-color: var(--el-color-white)}.el-tag--plain,.el-tag--plain.el-tag--primary{--el-tag-bg-color: var(--el-fill-color-blank);--el-tag-border-color: var(--el-color-primary-light-5);--el-tag-hover-color: var(--el-color-primary)}.el-tag--plain.el-tag--success{--el-tag-bg-color: var(--el-fill-color-blank);--el-tag-border-color: var(--el-color-success-light-5);--el-tag-hover-color: var(--el-color-success)}.el-tag--plain.el-tag--warning{--el-tag-bg-color: var(--el-fill-color-blank);--el-tag-border-color: var(--el-color-warning-light-5);--el-tag-hover-color: var(--el-color-warning)}.el-tag--plain.el-tag--danger{--el-tag-bg-color: var(--el-fill-color-blank);--el-tag-border-color: var(--el-color-danger-light-5);--el-tag-hover-color: var(--el-color-danger)}.el-tag--plain.el-tag--error{--el-tag-bg-color: var(--el-fill-color-blank);--el-tag-border-color: var(--el-color-error-light-5);--el-tag-hover-color: var(--el-color-error)}.el-tag--plain.el-tag--info{--el-tag-bg-color: var(--el-fill-color-blank);--el-tag-border-color: var(--el-color-info-light-5);--el-tag-hover-color: var(--el-color-info)}.el-tag.is-closable{padding-right:5px}.el-tag--large{padding:0 11px;height:32px;--el-icon-size: 16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{padding:0 7px;height:20px;--el-icon-size: 12px}.el-tag--small .el-tag__close{margin-left:4px}.el-tag--small.is-closable{padding-right:3px}.el-tag--small .el-icon-close{transform:scale(.8)}.el-tag.el-tag--primary.is-hit{border-color:var(--el-color-primary)}.el-tag.el-tag--success.is-hit{border-color:var(--el-color-success)}.el-tag.el-tag--warning.is-hit{border-color:var(--el-color-warning)}.el-tag.el-tag--danger.is-hit{border-color:var(--el-color-danger)}.el-tag.el-tag--error.is-hit{border-color:var(--el-color-error)}.el-tag.el-tag--info.is-hit{border-color:var(--el-color-info)}.el-popper{--el-popper-border-radius: var(--el-popover-border-radius, 4px)}.el-popper{position:absolute;border-radius:var(--el-popper-border-radius);padding:5px 11px;z-index:2000;font-size:12px;line-height:20px;min-width:10px;overflow-wrap:break-word;visibility:visible}.el-popper.is-dark{color:var(--el-bg-color);background:var(--el-text-color-primary);border:1px solid var(--el-text-color-primary)}.el-popper.is-dark>.el-popper__arrow:before{border:1px solid var(--el-text-color-primary);background:var(--el-text-color-primary);right:0}.el-popper.is-light{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light)}.el-popper.is-light>.el-popper__arrow:before{border:1px solid var(--el-border-color-light);background:var(--el-bg-color-overlay);right:0}.el-popper.is-pure{padding:0}.el-popper__arrow{position:absolute;width:10px;height:10px;z-index:-1}.el-popper__arrow:before{position:absolute;width:10px;height:10px;z-index:-1;content:" ";transform:rotate(45deg);background:var(--el-text-color-primary);box-sizing:border-box}.el-popper[data-popper-placement^=top]>.el-popper__arrow{bottom:-5px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-bottom-right-radius:2px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow{top:-5px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-top-left-radius:2px}.el-popper[data-popper-placement^=left]>.el-popper__arrow{right:-5px}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-top-right-radius:2px}.el-popper[data-popper-placement^=right]>.el-popper__arrow{left:-5px}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-bottom-left-radius:2px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-top-color:transparent!important;border-left-color:transparent!important}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-bottom-color:transparent!important;border-right-color:transparent!important}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-left-color:transparent!important;border-bottom-color:transparent!important}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-right-color:transparent!important;border-top-color:transparent!important}.el-select-dropdown{z-index:calc(var(--el-index-top) + 1);border-radius:var(--el-border-radius-base);box-sizing:border-box}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown__loading,.el-select-dropdown__empty{padding:10px 0;margin:0;text-align:center;color:var(--el-text-color-secondary);font-size:var(--el-select-font-size)}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{list-style:none;padding:6px 0;margin:0;box-sizing:border-box}.el-select-dropdown__list.el-vl__window{margin:6px 0;padding:0}.el-select-dropdown__header{padding:10px;border-bottom:1px solid var(--el-border-color-light)}.el-select-dropdown__footer{padding:10px;border-top:1px solid var(--el-border-color-light)}.el-select-dropdown__item{font-size:var(--el-font-size-base);padding:0 32px 0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--el-text-color-regular);height:34px;line-height:34px;box-sizing:border-box;cursor:pointer}.el-select-dropdown__item.is-hovering{background-color:var(--el-fill-color-light)}.el-select-dropdown__item.is-selected{color:var(--el-color-primary);font-weight:700}.el-select-dropdown__item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed;background-color:unset}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--el-color-primary);mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;transform:translateY(-50%);width:12px;height:12px}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-disabled:after{background-color:var(--el-text-color-placeholder)}.el-select-group{margin:0;padding:0}.el-select-group__wrap{position:relative;list-style:none;margin:0;padding:0}.el-select-group__title{box-sizing:border-box;padding:0 20px;font-size:12px;color:var(--el-color-info);line-height:34px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select-group .el-select-dropdown__item{padding-left:20px}.el-select{--el-select-border-color-hover: var(--el-border-color-hover);--el-select-disabled-color: var(--el-disabled-text-color);--el-select-disabled-border: var(--el-disabled-border-color);--el-select-font-size: var(--el-font-size-base);--el-select-close-hover-color: var(--el-text-color-secondary);--el-select-input-color: var(--el-text-color-placeholder);--el-select-multiple-input-color: var(--el-text-color-regular);--el-select-input-focus-border-color: var(--el-color-primary);--el-select-input-font-size: 14px;--el-select-width: 100%}.el-select{display:inline-block;position:relative;vertical-align:middle;width:var(--el-select-width)}.el-select__wrapper{display:flex;align-items:center;position:relative;box-sizing:border-box;cursor:pointer;text-align:left;font-size:14px;padding:4px 12px;gap:6px;min-height:32px;line-height:24px;border-radius:var(--el-border-radius-base);background-color:var(--el-fill-color-blank);transition:var(--el-transition-duration);transform:translateZ(0);box-shadow:0 0 0 1px var(--el-border-color) inset}.el-select__wrapper.is-filterable{cursor:text}.el-select__wrapper.is-focused{box-shadow:0 0 0 1px var(--el-color-primary) inset}.el-select__wrapper.is-hovering:not(.is-focused){box-shadow:0 0 0 1px var(--el-border-color-hover) inset}.el-select__wrapper.is-disabled{cursor:not-allowed;background-color:var(--el-fill-color-light);color:var(--el-text-color-placeholder);box-shadow:0 0 0 1px var(--el-select-disabled-border) inset}.el-select__wrapper.is-disabled:hover{box-shadow:0 0 0 1px var(--el-select-disabled-border) inset}.el-select__wrapper.is-disabled.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-select__wrapper.is-disabled .el-select__selected-item{color:var(--el-select-disabled-color)}.el-select__wrapper.is-disabled .el-select__caret,.el-select__wrapper.is-disabled .el-tag,.el-select__wrapper.is-disabled input{cursor:not-allowed}.el-select__prefix,.el-select__suffix{display:flex;align-items:center;flex-shrink:0;gap:6px;color:var(--el-input-icon-color, var(--el-text-color-placeholder))}.el-select__caret{color:var(--el-select-input-color);font-size:var(--el-select-input-font-size);transition:var(--el-transition-duration);transform:rotate(0);cursor:pointer}.el-select__caret.is-reverse{transform:rotate(180deg)}.el-select__clear{cursor:pointer}.el-select__clear:hover{color:var(--el-select-close-hover-color)}.el-select__selection{position:relative;display:flex;flex-wrap:wrap;align-items:center;flex:1;min-width:0;gap:6px}.el-select__selection.is-near{margin-left:-8px}.el-select__selection .el-tag{cursor:pointer;border-color:transparent}.el-select__selection .el-tag.el-tag--plain{border-color:var(--el-tag-border-color)}.el-select__selection .el-tag .el-tag__content{min-width:0}.el-select__selected-item{display:flex;flex-wrap:wrap;-webkit-user-select:none;user-select:none}.el-select__tags-text{display:block;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select__placeholder{position:absolute;z-index:-1;display:block;top:50%;transform:translateY(-50%);width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--el-input-text-color, var(--el-text-color-regular))}.el-select__placeholder.is-transparent{-webkit-user-select:none;user-select:none;color:var(--el-text-color-placeholder)}.el-select__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.el-select__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-select__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-top-color:transparent;border-left-color:transparent}.el-select__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-select__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-left-color:transparent;border-bottom-color:transparent}.el-select__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-select__input-wrapper{flex:1}.el-select__input-wrapper.is-hidden{position:absolute;opacity:0;z-index:-1}.el-select__input{border:none;outline:none;padding:0;color:var(--el-select-multiple-input-color);font-size:inherit;font-family:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:24px;width:100%;background-color:transparent}.el-select__input.is-disabled{cursor:not-allowed}.el-select__input-calculator{position:absolute;left:0;top:0;max-width:100%;visibility:hidden;white-space:pre;overflow:hidden}.el-select--large .el-select__wrapper{gap:6px;padding:8px 16px;min-height:40px;line-height:24px;font-size:14px}.el-select--large .el-select__selection{gap:6px}.el-select--large .el-select__selection.is-near{margin-left:-8px}.el-select--large .el-select__prefix,.el-select--large .el-select__suffix{gap:6px}.el-select--large .el-select__input{height:24px}.el-select--small .el-select__wrapper{gap:4px;padding:2px 8px;min-height:24px;line-height:20px;font-size:12px}.el-select--small .el-select__selection{gap:4px}.el-select--small .el-select__selection.is-near{margin-left:-6px}.el-select--small .el-select__prefix,.el-select--small .el-select__suffix{gap:4px}.el-select--small .el-select__input{height:20px}.el-radio-button{--el-radio-button-checked-bg-color: var(--el-color-primary);--el-radio-button-checked-text-color: var(--el-color-white);--el-radio-button-checked-border-color: var(--el-color-primary);--el-radio-button-disabled-checked-fill: var(--el-border-color-extra-light)}.el-radio-button{position:relative;display:inline-block;outline:none}.el-radio-button__inner{display:inline-block;line-height:1;white-space:nowrap;vertical-align:middle;background:var(--el-button-bg-color, var(--el-fill-color-blank));border:var(--el-border);font-weight:var(--el-button-font-weight, var(--el-font-weight-primary));border-left:0;color:var(--el-button-text-color, var(--el-text-color-regular));-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:none;margin:0;position:relative;cursor:pointer;transition:var(--el-transition-all);-webkit-user-select:none;user-select:none;padding:8px 15px;font-size:var(--el-font-size-base);border-radius:0}.el-radio-button__inner.is-round{padding:8px 15px}.el-radio-button__inner:hover{color:var(--el-color-primary)}.el-radio-button__inner [class*=el-icon-]{line-height:.9}.el-radio-button__inner [class*=el-icon-]+span{margin-left:5px}.el-radio-button:first-child .el-radio-button__inner{border-left:var(--el-border);border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);box-shadow:none!important}.el-radio-button.is-active .el-radio-button__original-radio:not(:disabled)+.el-radio-button__inner{color:var(--el-radio-button-checked-text-color, var(--el-color-white));background-color:var(--el-radio-button-checked-bg-color, var(--el-color-primary));border-color:var(--el-radio-button-checked-border-color, var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color, var(--el-color-primary))}.el-radio-button__original-radio{opacity:0;outline:none;position:absolute;z-index:-1}.el-radio-button__original-radio:focus-visible+.el-radio-button__inner{border-left:var(--el-border);border-left-color:var(--el-radio-button-checked-border-color, var(--el-color-primary));outline:2px solid var(--el-radio-button-checked-border-color);outline-offset:1px;z-index:2;border-radius:var(--el-border-radius-base);box-shadow:none}.el-radio-button__original-radio:disabled+.el-radio-button__inner{color:var(--el-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color, var(--el-fill-color-blank));border-color:var(--el-button-disabled-border-color, var(--el-border-color-light));box-shadow:none}.el-radio-button__original-radio:disabled:checked+.el-radio-button__inner{background-color:var(--el-radio-button-disabled-checked-fill)}.el-radio-button:last-child .el-radio-button__inner{border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0}.el-radio-button:first-child:last-child .el-radio-button__inner{border-radius:var(--el-border-radius-base)}.el-radio-button--large .el-radio-button__inner{padding:12px 19px;font-size:var(--el-font-size-base);border-radius:0}.el-radio-button--large .el-radio-button__inner.is-round{padding:12px 19px}.el-radio-button--small .el-radio-button__inner{padding:5px 11px;font-size:12px;border-radius:0}.el-radio-button--small .el-radio-button__inner.is-round{padding:5px 11px}.el-textarea{--el-input-text-color: var(--el-text-color-regular);--el-input-border: var(--el-border);--el-input-hover-border: var(--el-border-color-hover);--el-input-focus-border: var(--el-color-primary);--el-input-transparent-border: 0 0 0 1px transparent inset;--el-input-border-color: var(--el-border-color);--el-input-border-radius: var(--el-border-radius-base);--el-input-bg-color: var(--el-fill-color-blank);--el-input-icon-color: var(--el-text-color-placeholder);--el-input-placeholder-color: var(--el-text-color-placeholder);--el-input-hover-border-color: var(--el-border-color-hover);--el-input-clear-hover-color: var(--el-text-color-secondary);--el-input-focus-border-color: var(--el-color-primary);--el-input-width: 100%}.el-textarea{position:relative;display:inline-block;width:100%;vertical-align:bottom;font-size:var(--el-font-size-base)}.el-textarea__inner{position:relative;display:block;resize:vertical;padding:5px 11px;line-height:1.5;box-sizing:border-box;width:100%;font-size:inherit;font-family:inherit;color:var(--el-input-text-color, var(--el-text-color-regular));background-color:var(--el-input-bg-color, var(--el-fill-color-blank));background-image:none;-webkit-appearance:none;box-shadow:0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;border-radius:var(--el-input-border-radius, var(--el-border-radius-base));transition:var(--el-transition-box-shadow);border:none}.el-textarea__inner::placeholder{color:var(--el-input-placeholder-color, var(--el-text-color-placeholder))}.el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-textarea__inner:focus{outline:none;box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-textarea .el-input__count{color:var(--el-color-info);background:var(--el-fill-color-blank);position:absolute;font-size:12px;line-height:14px;bottom:5px;right:10px}.el-textarea.is-disabled .el-textarea__inner{box-shadow:0 0 0 1px var(--el-disabled-border-color) inset;background-color:var(--el-disabled-bg-color);color:var(--el-disabled-text-color);cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-exceed .el-textarea__inner{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-textarea.is-exceed .el-input__count{color:var(--el-color-danger)}.el-input{--el-input-text-color: var(--el-text-color-regular);--el-input-border: var(--el-border);--el-input-hover-border: var(--el-border-color-hover);--el-input-focus-border: var(--el-color-primary);--el-input-transparent-border: 0 0 0 1px transparent inset;--el-input-border-color: var(--el-border-color);--el-input-border-radius: var(--el-border-radius-base);--el-input-bg-color: var(--el-fill-color-blank);--el-input-icon-color: var(--el-text-color-placeholder);--el-input-placeholder-color: var(--el-text-color-placeholder);--el-input-hover-border-color: var(--el-border-color-hover);--el-input-clear-hover-color: var(--el-text-color-secondary);--el-input-focus-border-color: var(--el-color-primary);--el-input-width: 100%}.el-input{--el-input-height: var(--el-component-size);position:relative;font-size:var(--el-font-size-base);display:inline-flex;width:var(--el-input-width);line-height:var(--el-input-height);box-sizing:border-box;vertical-align:middle}.el-input::-webkit-scrollbar{z-index:11;width:6px}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:var(--el-text-color-disabled)}.el-input::-webkit-scrollbar-corner{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track-piece{background:var(--el-fill-color-blank);width:6px}.el-input .el-input__clear,.el-input .el-input__password{color:var(--el-input-icon-color);font-size:14px;cursor:pointer}.el-input .el-input__clear:hover,.el-input .el-input__password:hover{color:var(--el-input-clear-hover-color)}.el-input .el-input__count{height:100%;display:inline-flex;align-items:center;color:var(--el-color-info);font-size:12px}.el-input .el-input__count .el-input__count-inner{background:var(--el-fill-color-blank);line-height:initial;display:inline-block;padding-left:8px}.el-input__wrapper{display:inline-flex;flex-grow:1;align-items:center;justify-content:center;padding:1px 11px;background-color:var(--el-input-bg-color, var(--el-fill-color-blank));background-image:none;border-radius:var(--el-input-border-radius, var(--el-border-radius-base));cursor:text;transition:var(--el-transition-box-shadow);transform:translateZ(0);box-shadow:0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset}.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-input{--el-input-inner-height: calc(var(--el-input-height, 32px) - 2px)}.el-input__inner{width:100%;flex-grow:1;-webkit-appearance:none;color:var(--el-input-text-color, var(--el-text-color-regular));font-size:inherit;height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);padding:0;outline:none;border:none;background:none;box-sizing:border-box}.el-input__inner:focus{outline:none}.el-input__inner::placeholder{color:var(--el-input-placeholder-color, var(--el-text-color-placeholder))}.el-input__inner[type=password]::-ms-reveal{display:none}.el-input__inner[type=number]{line-height:1}.el-input__prefix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;line-height:var(--el-input-inner-height);text-align:center;color:var(--el-input-icon-color, var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__prefix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__prefix-inner>:last-child{margin-right:8px}.el-input__prefix-inner>:first-child,.el-input__prefix-inner>:first-child.el-input__icon{margin-left:0}.el-input__suffix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;line-height:var(--el-input-inner-height);text-align:center;color:var(--el-input-icon-color, var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__suffix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__suffix-inner>:first-child{margin-left:8px}.el-input .el-input__icon{height:inherit;line-height:inherit;display:flex;justify-content:center;align-items:center;transition:all var(--el-transition-duration);margin-left:8px}.el-input__validateIcon{pointer-events:none}.el-input.is-active .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-color, ) inset}.el-input.is-disabled{cursor:not-allowed}.el-input.is-disabled .el-input__wrapper{background-color:var(--el-disabled-bg-color);cursor:not-allowed;box-shadow:0 0 0 1px var(--el-disabled-border-color) inset}.el-input.is-disabled .el-input__inner{color:var(--el-disabled-text-color);-webkit-text-fill-color:var(--el-disabled-text-color);cursor:not-allowed}.el-input.is-disabled .el-input__inner::placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-input.is-exceed .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-input.is-exceed .el-input__suffix .el-input__count{color:var(--el-color-danger)}.el-input--large{--el-input-height: var(--el-component-size-large);font-size:14px}.el-input--large .el-input__wrapper{padding:1px 15px}.el-input--large{--el-input-inner-height: calc(var(--el-input-height, 40px) - 2px)}.el-input--small{--el-input-height: var(--el-component-size-small);font-size:12px}.el-input--small .el-input__wrapper{padding:1px 7px}.el-input--small{--el-input-inner-height: calc(var(--el-input-height, 24px) - 2px)}.el-input-group{display:inline-flex;width:100%;align-items:stretch}.el-input-group__append,.el-input-group__prepend{background-color:var(--el-fill-color-light);color:var(--el-color-info);position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:100%;border-radius:var(--el-input-border-radius);padding:0 20px;white-space:nowrap}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:none}.el-input-group__append .el-select,.el-input-group__append .el-button,.el-input-group__prepend .el-select,.el-input-group__prepend .el-button{display:inline-block;margin:0 -20px}.el-input-group__append button.el-button,.el-input-group__append button.el-button:hover,.el-input-group__append div.el-select .el-select__wrapper,.el-input-group__append div.el-select:hover .el-select__wrapper,.el-input-group__prepend button.el-button,.el-input-group__prepend button.el-button:hover,.el-input-group__prepend div.el-select .el-select__wrapper,.el-input-group__prepend div.el-select:hover .el-select__wrapper{border-color:transparent;background-color:transparent;color:inherit}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-input-group__prepend{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group__append{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--prepend>.el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.el-input-group--prepend .el-input-group__prepend .el-select .el-select__wrapper{border-top-right-radius:0;border-bottom-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group--append>.el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.el-input-group--append .el-input-group__append .el-select .el-select__wrapper{border-top-left-radius:0;border-bottom-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-hidden{display:none!important}.el-button{--el-button-font-weight: var(--el-font-weight-primary);--el-button-border-color: var(--el-border-color);--el-button-bg-color: var(--el-fill-color-blank);--el-button-text-color: var(--el-text-color-regular);--el-button-disabled-text-color: var(--el-disabled-text-color);--el-button-disabled-bg-color: var(--el-fill-color-blank);--el-button-disabled-border-color: var(--el-border-color-light);--el-button-divide-border-color: rgba(255, 255, 255, .5);--el-button-hover-text-color: var(--el-color-primary);--el-button-hover-bg-color: var(--el-color-primary-light-9);--el-button-hover-border-color: var(--el-color-primary-light-7);--el-button-active-text-color: var(--el-button-hover-text-color);--el-button-active-border-color: var(--el-color-primary);--el-button-active-bg-color: var(--el-button-hover-bg-color);--el-button-outline-color: var(--el-color-primary-light-5);--el-button-hover-link-text-color: var(--el-text-color-secondary);--el-button-active-color: var(--el-text-color-primary)}.el-button{display:inline-flex;justify-content:center;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;color:var(--el-button-text-color);text-align:center;box-sizing:border-box;outline:none;transition:.1s;font-weight:var(--el-button-font-weight);-webkit-user-select:none;user-select:none;vertical-align:middle;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color)}.el-button:hover{color:var(--el-button-hover-text-color);border-color:var(--el-button-hover-border-color);background-color:var(--el-button-hover-bg-color);outline:none}.el-button:active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:none}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px;transition:outline-offset 0s,outline 0s}.el-button>span{display:inline-flex;align-items:center}.el-button+.el-button{margin-left:12px}.el-button{padding:8px 15px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button.is-round{padding:8px 15px}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon]+span{margin-left:6px}.el-button [class*=el-icon] svg{vertical-align:bottom}.el-button.is-plain{--el-button-hover-text-color: var(--el-color-primary);--el-button-hover-bg-color: var(--el-fill-color-blank);--el-button-hover-border-color: var(--el-color-primary)}.el-button.is-active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:none}.el-button.is-disabled,.el-button.is-disabled:hover{color:var(--el-button-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color);border-color:var(--el-button-disabled-border-color)}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{z-index:1;pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:var(--el-mask-color-extra-light)}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-circle{width:32px;border-radius:50%;padding:8px}.el-button.is-text{color:var(--el-button-text-color);border:0 solid transparent;background-color:transparent}.el-button.is-text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important}.el-button.is-text:not(.is-disabled):hover{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px;transition:outline-offset 0s,outline 0s}.el-button.is-text:not(.is-disabled):active{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled).is-has-bg:hover{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--el-fill-color-dark)}.el-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.el-button.is-link{border-color:transparent;color:var(--el-button-text-color);background:transparent;padding:2px;height:auto}.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button.is-link:not(.is-disabled):hover{border-color:transparent;background-color:transparent}.el-button.is-link:not(.is-disabled):active{color:var(--el-button-active-color);border-color:transparent;background-color:transparent}.el-button--text{border-color:transparent;background:transparent;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button--text:not(.is-disabled):hover{color:var(--el-color-primary-light-3);border-color:transparent;background-color:transparent}.el-button--text:not(.is-disabled):active{color:var(--el-color-primary-dark-2);border-color:transparent;background-color:transparent}.el-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.el-button--primary{--el-button-text-color: var(--el-color-white);--el-button-bg-color: var(--el-color-primary);--el-button-border-color: var(--el-color-primary);--el-button-outline-color: var(--el-color-primary-light-5);--el-button-active-color: var(--el-color-primary-dark-2);--el-button-hover-text-color: var(--el-color-white);--el-button-hover-link-text-color: var(--el-color-primary-light-5);--el-button-hover-bg-color: var(--el-color-primary-light-3);--el-button-hover-border-color: var(--el-color-primary-light-3);--el-button-active-bg-color: var(--el-color-primary-dark-2);--el-button-active-border-color: var(--el-color-primary-dark-2);--el-button-disabled-text-color: var(--el-color-white);--el-button-disabled-bg-color: var(--el-color-primary-light-5);--el-button-disabled-border-color: var(--el-color-primary-light-5)}.el-button--primary.is-plain,.el-button--primary.is-text,.el-button--primary.is-link{--el-button-text-color: var(--el-color-primary);--el-button-bg-color: var(--el-color-primary-light-9);--el-button-border-color: var(--el-color-primary-light-5);--el-button-hover-text-color: var(--el-color-white);--el-button-hover-bg-color: var(--el-color-primary);--el-button-hover-border-color: var(--el-color-primary);--el-button-active-text-color: var(--el-color-white)}.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-text.is-disabled,.el-button--primary.is-text.is-disabled:hover,.el-button--primary.is-text.is-disabled:focus,.el-button--primary.is-text.is-disabled:active,.el-button--primary.is-link.is-disabled,.el-button--primary.is-link.is-disabled:hover,.el-button--primary.is-link.is-disabled:focus,.el-button--primary.is-link.is-disabled:active{color:var(--el-color-primary-light-5);background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8)}.el-button--success{--el-button-text-color: var(--el-color-white);--el-button-bg-color: var(--el-color-success);--el-button-border-color: var(--el-color-success);--el-button-outline-color: var(--el-color-success-light-5);--el-button-active-color: var(--el-color-success-dark-2);--el-button-hover-text-color: var(--el-color-white);--el-button-hover-link-text-color: var(--el-color-success-light-5);--el-button-hover-bg-color: var(--el-color-success-light-3);--el-button-hover-border-color: var(--el-color-success-light-3);--el-button-active-bg-color: var(--el-color-success-dark-2);--el-button-active-border-color: var(--el-color-success-dark-2);--el-button-disabled-text-color: var(--el-color-white);--el-button-disabled-bg-color: var(--el-color-success-light-5);--el-button-disabled-border-color: var(--el-color-success-light-5)}.el-button--success.is-plain,.el-button--success.is-text,.el-button--success.is-link{--el-button-text-color: var(--el-color-success);--el-button-bg-color: var(--el-color-success-light-9);--el-button-border-color: var(--el-color-success-light-5);--el-button-hover-text-color: var(--el-color-white);--el-button-hover-bg-color: var(--el-color-success);--el-button-hover-border-color: var(--el-color-success);--el-button-active-text-color: var(--el-color-white)}.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-text.is-disabled,.el-button--success.is-text.is-disabled:hover,.el-button--success.is-text.is-disabled:focus,.el-button--success.is-text.is-disabled:active,.el-button--success.is-link.is-disabled,.el-button--success.is-link.is-disabled:hover,.el-button--success.is-link.is-disabled:focus,.el-button--success.is-link.is-disabled:active{color:var(--el-color-success-light-5);background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8)}.el-button--warning{--el-button-text-color: var(--el-color-white);--el-button-bg-color: var(--el-color-warning);--el-button-border-color: var(--el-color-warning);--el-button-outline-color: var(--el-color-warning-light-5);--el-button-active-color: var(--el-color-warning-dark-2);--el-button-hover-text-color: var(--el-color-white);--el-button-hover-link-text-color: var(--el-color-warning-light-5);--el-button-hover-bg-color: var(--el-color-warning-light-3);--el-button-hover-border-color: var(--el-color-warning-light-3);--el-button-active-bg-color: var(--el-color-warning-dark-2);--el-button-active-border-color: var(--el-color-warning-dark-2);--el-button-disabled-text-color: var(--el-color-white);--el-button-disabled-bg-color: var(--el-color-warning-light-5);--el-button-disabled-border-color: var(--el-color-warning-light-5)}.el-button--warning.is-plain,.el-button--warning.is-text,.el-button--warning.is-link{--el-button-text-color: var(--el-color-warning);--el-button-bg-color: var(--el-color-warning-light-9);--el-button-border-color: var(--el-color-warning-light-5);--el-button-hover-text-color: var(--el-color-white);--el-button-hover-bg-color: var(--el-color-warning);--el-button-hover-border-color: var(--el-color-warning);--el-button-active-text-color: var(--el-color-white)}.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-text.is-disabled,.el-button--warning.is-text.is-disabled:hover,.el-button--warning.is-text.is-disabled:focus,.el-button--warning.is-text.is-disabled:active,.el-button--warning.is-link.is-disabled,.el-button--warning.is-link.is-disabled:hover,.el-button--warning.is-link.is-disabled:focus,.el-button--warning.is-link.is-disabled:active{color:var(--el-color-warning-light-5);background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8)}.el-button--danger{--el-button-text-color: var(--el-color-white);--el-button-bg-color: var(--el-color-danger);--el-button-border-color: var(--el-color-danger);--el-button-outline-color: var(--el-color-danger-light-5);--el-button-active-color: var(--el-color-danger-dark-2);--el-button-hover-text-color: var(--el-color-white);--el-button-hover-link-text-color: var(--el-color-danger-light-5);--el-button-hover-bg-color: var(--el-color-danger-light-3);--el-button-hover-border-color: var(--el-color-danger-light-3);--el-button-active-bg-color: var(--el-color-danger-dark-2);--el-button-active-border-color: var(--el-color-danger-dark-2);--el-button-disabled-text-color: var(--el-color-white);--el-button-disabled-bg-color: var(--el-color-danger-light-5);--el-button-disabled-border-color: var(--el-color-danger-light-5)}.el-button--danger.is-plain,.el-button--danger.is-text,.el-button--danger.is-link{--el-button-text-color: var(--el-color-danger);--el-button-bg-color: var(--el-color-danger-light-9);--el-button-border-color: var(--el-color-danger-light-5);--el-button-hover-text-color: var(--el-color-white);--el-button-hover-bg-color: var(--el-color-danger);--el-button-hover-border-color: var(--el-color-danger);--el-button-active-text-color: var(--el-color-white)}.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-text.is-disabled,.el-button--danger.is-text.is-disabled:hover,.el-button--danger.is-text.is-disabled:focus,.el-button--danger.is-text.is-disabled:active,.el-button--danger.is-link.is-disabled,.el-button--danger.is-link.is-disabled:hover,.el-button--danger.is-link.is-disabled:focus,.el-button--danger.is-link.is-disabled:active{color:var(--el-color-danger-light-5);background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8)}.el-button--info{--el-button-text-color: var(--el-color-white);--el-button-bg-color: var(--el-color-info);--el-button-border-color: var(--el-color-info);--el-button-outline-color: var(--el-color-info-light-5);--el-button-active-color: var(--el-color-info-dark-2);--el-button-hover-text-color: var(--el-color-white);--el-button-hover-link-text-color: var(--el-color-info-light-5);--el-button-hover-bg-color: var(--el-color-info-light-3);--el-button-hover-border-color: var(--el-color-info-light-3);--el-button-active-bg-color: var(--el-color-info-dark-2);--el-button-active-border-color: var(--el-color-info-dark-2);--el-button-disabled-text-color: var(--el-color-white);--el-button-disabled-bg-color: var(--el-color-info-light-5);--el-button-disabled-border-color: var(--el-color-info-light-5)}.el-button--info.is-plain,.el-button--info.is-text,.el-button--info.is-link{--el-button-text-color: var(--el-color-info);--el-button-bg-color: var(--el-color-info-light-9);--el-button-border-color: var(--el-color-info-light-5);--el-button-hover-text-color: var(--el-color-white);--el-button-hover-bg-color: var(--el-color-info);--el-button-hover-border-color: var(--el-color-info);--el-button-active-text-color: var(--el-color-white)}.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-text.is-disabled,.el-button--info.is-text.is-disabled:hover,.el-button--info.is-text.is-disabled:focus,.el-button--info.is-text.is-disabled:active,.el-button--info.is-link.is-disabled,.el-button--info.is-link.is-disabled:hover,.el-button--info.is-link.is-disabled:focus,.el-button--info.is-link.is-disabled:active{color:var(--el-color-info-light-5);background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8)}.el-button--large{--el-button-size: 40px;height:var(--el-button-size)}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large{padding:12px 19px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{width:var(--el-button-size);padding:12px}.el-button--small{--el-button-size: 24px;height:var(--el-button-size)}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small{padding:5px 11px;font-size:12px;border-radius:calc(var(--el-border-radius-base) - 1px)}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{width:var(--el-button-size);padding:5px}.el-badge{--el-badge-bg-color: var(--el-color-danger);--el-badge-radius: 10px;--el-badge-font-size: 12px;--el-badge-padding: 6px;--el-badge-size: 18px;position:relative;vertical-align:middle;display:inline-block;width:fit-content}.el-badge__content{background-color:var(--el-badge-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;justify-content:center;align-items:center;font-size:var(--el-badge-font-size);height:var(--el-badge-size);padding:0 var(--el-badge-padding);white-space:nowrap;border:1px solid var(--el-bg-color)}.el-badge__content.is-fixed{position:absolute;top:0;right:calc(1px + var(--el-badge-size) / 2);transform:translateY(-50%) translate(100%);z-index:var(--el-index-normal)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{height:8px;width:8px;padding:0;right:0;border-radius:50%}.el-badge__content.is-hide-zero{display:none}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.el-message{--el-message-bg-color: var(--el-color-info-light-9);--el-message-border-color: var(--el-border-color-lighter);--el-message-padding: 11px 15px;--el-message-close-size: 16px;--el-message-close-icon-color: var(--el-text-color-placeholder);--el-message-close-hover-color: var(--el-text-color-secondary)}.el-message{width:fit-content;max-width:calc(100% - 32px);box-sizing:border-box;border-radius:var(--el-border-radius-base);border-width:var(--el-border-width);border-style:var(--el-border-style);border-color:var(--el-message-border-color);position:fixed;left:50%;top:20px;transform:translate(-50%);background-color:var(--el-message-bg-color);transition:opacity var(--el-transition-duration),transform .4s,top .4s;padding:var(--el-message-padding);display:flex;align-items:center;gap:8px}.el-message.is-plain{background-color:var(--el-bg-color-overlay);border-color:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-message p{margin:0}.el-message--primary{--el-message-bg-color: var(--el-color-primary-light-9);--el-message-border-color: var(--el-color-primary-light-8);--el-message-text-color: var(--el-color-primary)}.el-message--primary .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--primary{color:var(--el-message-text-color)}.el-message--success{--el-message-bg-color: var(--el-color-success-light-9);--el-message-border-color: var(--el-color-success-light-8);--el-message-text-color: var(--el-color-success)}.el-message--success .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color: var(--el-color-info-light-9);--el-message-border-color: var(--el-color-info-light-8);--el-message-text-color: var(--el-color-info)}.el-message--info .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color: var(--el-color-warning-light-9);--el-message-border-color: var(--el-color-warning-light-8);--el-message-text-color: var(--el-color-warning)}.el-message--warning .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color: var(--el-color-error-light-9);--el-message-border-color: var(--el-color-error-light-8);--el-message-text-color: var(--el-color-error)}.el-message--error .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message .el-message__badge{position:absolute;top:-8px;right:-8px}.el-message__content{padding:0;font-size:14px;line-height:1}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{cursor:pointer;color:var(--el-message-close-icon-color);font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0;transform:translate(-50%,-100%)}:root{--el-loading-spinner-size: 42px;--el-loading-fullscreen-spinner-size: 50px}.el-loading-parent--relative{position:relative!important}.el-loading-parent--hidden{overflow:hidden!important}.el-loading-mask{position:absolute;z-index:2000;background-color:var(--el-mask-color);margin:0;top:0;right:0;bottom:0;left:0;transition:opacity var(--el-transition-duration)}.el-loading-mask.is-fullscreen{position:fixed}.el-loading-mask.is-fullscreen .el-loading-spinner{margin-top:calc((0px - var(--el-loading-fullscreen-spinner-size)) / 2)}.el-loading-mask.is-fullscreen .el-loading-spinner .circular{height:var(--el-loading-fullscreen-spinner-size);width:var(--el-loading-fullscreen-spinner-size)}.el-loading-spinner{top:50%;margin-top:calc((0px - var(--el-loading-spinner-size)) / 2);width:100%;text-align:center;position:absolute}.el-loading-spinner .el-loading-text{color:var(--el-color-primary);margin:3px 0;font-size:14px}.el-loading-spinner .circular{display:inline;height:var(--el-loading-spinner-size);width:var(--el-loading-spinner-size);animation:loading-rotate 2s linear infinite}.el-loading-spinner .path{animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:var(--el-color-primary);stroke-linecap:round}.el-loading-spinner i{color:var(--el-color-primary)}.el-loading-fade-enter-from,.el-loading-fade-leave-to{opacity:0}@keyframes loading-rotate{to{transform:rotate(360deg)}}@keyframes loading-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40px}to{stroke-dasharray:90,150;stroke-dashoffset:-120px}}.el-switch{--el-switch-on-color: var(--el-color-primary);--el-switch-off-color: var(--el-border-color)}.el-switch{display:inline-flex;align-items:center;position:relative;font-size:14px;line-height:20px;height:32px;vertical-align:middle}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__label{transition:var(--el-transition-duration-fast);height:20px;display:inline-block;font-size:14px;font-weight:500;cursor:pointer;vertical-align:middle;color:var(--el-text-color-primary)}.el-switch__label.is-active{color:var(--el-color-primary)}.el-switch__label--left{margin-right:10px}.el-switch__label--right{margin-left:10px}.el-switch__label *{line-height:1;font-size:14px;display:inline-block}.el-switch__label .el-icon{height:inherit}.el-switch__label .el-icon svg{vertical-align:middle}.el-switch__input{position:absolute;width:0;height:0;opacity:0;margin:0}.el-switch__input:focus-visible~.el-switch__core{outline:2px solid var(--el-switch-on-color);outline-offset:1px}.el-switch__core{display:inline-flex;position:relative;align-items:center;min-width:40px;height:20px;border:1px solid var(--el-switch-border-color, var(--el-switch-off-color));outline:none;border-radius:10px;box-sizing:border-box;background:var(--el-switch-off-color);cursor:pointer;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration)}.el-switch__core .el-switch__inner{width:100%;transition:all var(--el-transition-duration);height:16px;display:flex;justify-content:center;align-items:center;overflow:hidden;padding:0 4px 0 18px}.el-switch__core .el-switch__inner .is-icon,.el-switch__core .el-switch__inner .is-text{font-size:12px;color:var(--el-color-white);-webkit-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-switch__core .el-switch__action{position:absolute;left:1px;border-radius:var(--el-border-radius-circle);transition:all var(--el-transition-duration);width:16px;height:16px;background-color:var(--el-color-white);display:flex;justify-content:center;align-items:center;color:var(--el-switch-off-color)}.el-switch.is-checked .el-switch__core{border-color:var(--el-switch-border-color, var(--el-switch-on-color));background-color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__action{left:calc(100% - 17px);color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__inner{padding:0 18px 0 4px}.el-switch.is-disabled{opacity:.6}.el-switch--wide .el-switch__label.el-switch__label--left span{left:10px}.el-switch--wide .el-switch__label.el-switch__label--right span{right:10px}.el-switch .label-fade-enter-from,.el-switch .label-fade-leave-active{opacity:0}.el-switch--large{font-size:14px;line-height:24px;height:40px}.el-switch--large .el-switch__label{height:24px;font-size:14px}.el-switch--large .el-switch__label *{font-size:14px}.el-switch--large .el-switch__core{min-width:50px;height:24px;border-radius:12px}.el-switch--large .el-switch__core .el-switch__inner{height:20px;padding:0 6px 0 22px}.el-switch--large .el-switch__core .el-switch__action{width:20px;height:20px}.el-switch--large.is-checked .el-switch__core .el-switch__action{left:calc(100% - 21px)}.el-switch--large.is-checked .el-switch__core .el-switch__inner{padding:0 22px 0 6px}.el-switch--small{font-size:12px;line-height:16px;height:24px}.el-switch--small .el-switch__label{height:16px;font-size:12px}.el-switch--small .el-switch__label *{font-size:12px}.el-switch--small .el-switch__core{min-width:30px;height:16px;border-radius:8px}.el-switch--small .el-switch__core .el-switch__inner{height:12px;padding:0 2px 0 14px}.el-switch--small .el-switch__core .el-switch__action{width:12px;height:12px}.el-switch--small.is-checked .el-switch__core .el-switch__action{left:calc(100% - 13px)}.el-switch--small.is-checked .el-switch__core .el-switch__inner{padding:0 14px 0 2px}.el-button-group{display:inline-block;vertical-align:middle}.el-button-group:before,.el-button-group:after{display:table;content:""}.el-button-group:after{clear:both}.el-button-group>.el-button{float:left;position:relative}.el-button-group>.el-button+.el-button{margin-left:0}.el-button-group>.el-button:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.el-button-group>.el-button:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.el-button-group>.el-button:first-child:last-child{border-top-right-radius:var(--el-border-radius-base);border-bottom-right-radius:var(--el-border-radius-base);border-top-left-radius:var(--el-border-radius-base);border-bottom-left-radius:var(--el-border-radius-base)}.el-button-group>.el-button:first-child:last-child.is-round{border-radius:var(--el-border-radius-round)}.el-button-group>.el-button:first-child:last-child.is-circle{border-radius:50%}.el-button-group>.el-button:not(:first-child):not(:last-child){border-radius:0}.el-button-group>.el-button:not(:last-child){margin-right:-1px}.el-button-group>.el-button:hover,.el-button-group>.el-button:focus,.el-button-group>.el-button:active{z-index:1}.el-button-group>.el-button.is-active{z-index:1}.el-button-group>.el-dropdown>.el-button{border-top-left-radius:0;border-bottom-left-radius:0;border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--primary:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--success:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--warning:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--danger:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:first-child{border-right-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:last-child{border-left-color:var(--el-button-divide-border-color)}.el-button-group .el-button--info:not(:first-child):not(:last-child){border-left-color:var(--el-button-divide-border-color);border-right-color:var(--el-button-divide-border-color)}.super-code-editor{width:100%;height:100%;overflow:hidden}.super-code-editor.is-light .cm-editor ::selection{background:#e3e7f1!important}.super-code-editor.is-light .cm-editor ::-moz-selection{background:#e6e6e6!important}.super-code-editor.is-light .cm-line{background:#fff}.super-code-editor.is-light .cm-activeLine{background:#f6f6f6}.super-code-editor.is-dark .cm-editor ::selection{background:#2e2e2e!important}.super-code-editor.is-dark .cm-editor ::-moz-selection{background:#1f1f1f!important}.super-code-editor.is-dark .cm-line{background:var(--el-bg-color)}.super-code-editor.is-dark .cm-activeLine{background:#282828}.super-code-editor.is-dark .cm-gutters{background:#191919;border-right:1px solid #4c4d4f}.super-code-editor .cm-editor{background-color:transparent!important;width:100%;height:100%}.super-code-editor .\u037C1 .cm-selectionMatch{background-color:transparent!important}.super-code-editor .\u037C2 .cm-searchMatch{background-color:#ffe600e6!important}.super-code-editor .\u037C2 .cm-searchMatch-selected{background-color:#9f0!important}.super-code-editor .cm-scroller::-webkit-scrollbar-track{background:transparent}.super-code-editor .cm-scroller::-webkit-scrollbar-thumb:hover{background-color:#a8a8a8;cursor:pointer}.super-code-editor .cm-scroller .cm-content{padding:0}.super-code-editor .cm-scroller .cm-gutter.cm-lineNumbers .cm-gutterElement{padding-left:10px}.super-code-editor .cm-panels{background-color:var(--el-bg-color);border-color:var(--el-border-color)}.super-code-editor .cm-panels .cm-search input,.super-code-editor .cm-panels .cm-search button{background:var(--el-bg-color-overlay);color:var(--el-text-color-primary);border-color:var(--el-border-color)}.super-code-editor .cm-panels .cm-search .cm-button{position:relative;color:transparent}.super-code-editor .cm-panels .cm-search .cm-button:after{content:"";color:var(--el-text-color-primary);font-size:10px;position:absolute;left:0;top:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.super-code-editor .cm-panels .cm-search .cm-button[name=next]:after{content:"\u4E0B\u4E00\u4E2A"}.super-code-editor .cm-panels .cm-search .cm-button[name=prev]:after{content:"\u4E0A\u4E00\u4E2A"}.super-code-editor .cm-panels .cm-search .cm-button[name=select]:after{content:"\u5168\u90E8"}.super-code-editor .cm-panels .cm-search .cm-button[name=replace]:after{content:"\u66FF\u6362"}.super-code-editor .cm-panels .cm-search .cm-button[name=replaceAll]:after{content:"\u66FF\u6362\u5168\u90E8"}.super-code-editor .cm-panels .cm-search>label:has(input[name]){display:inline-flex;align-items:center;position:relative;color:transparent}.super-code-editor .cm-panels .cm-search>label:has(input[name]):after{content:"";color:var(--el-text-color-primary);font-size:10px;position:absolute;left:16px;top:0;width:100%;height:100%;display:flex;align-items:center}.super-code-editor .cm-panels .cm-search>label:has(input[name]):has(input[name=case]):after{content:"\u533A\u5206\u5927\u5C0F\u5199"}.super-code-editor .cm-panels .cm-search>label:has(input[name]):has(input[name=re]):after{content:"\u6B63\u5219"}.super-code-editor .cm-panels .cm-search>label:has(input[name]):has(input[name=word]):after{content:"\u5168\u5B57\u5339\u914D"}.basic-method-path{height:100%;overflow:hidden;display:flex;flex-direction:column}.basic-method-path .basic-method-path-form{padding-left:16px}.basic-method-path .input-box-list{width:100%;display:flex;flex-direction:column;gap:10px}.basic-method-path .input-box-list .input-box{width:100%;display:flex;align-items:center;white-space:nowrap}.basic-method-path .input-box-list .input-box .input-text{width:90px;padding-left:10px;color:var(--el-color-info-light-3)}.basic-method-path .button-box{padding-top:16px;display:flex;justify-content:flex-end}.el-table{--el-table-border-color: var(--el-border-color-lighter);--el-table-border: 1px solid var(--el-table-border-color);--el-table-text-color: var(--el-text-color-regular);--el-table-header-text-color: var(--el-text-color-secondary);--el-table-row-hover-bg-color: var(--el-fill-color-light);--el-table-current-row-bg-color: var(--el-color-primary-light-9);--el-table-header-bg-color: var(--el-bg-color);--el-table-fixed-box-shadow: var(--el-box-shadow-light);--el-table-bg-color: var(--el-fill-color-blank);--el-table-tr-bg-color: var(--el-bg-color);--el-table-expanded-cell-bg-color: var(--el-fill-color-blank);--el-table-fixed-left-column: inset 10px 0 10px -10px rgba(0, 0, 0, .15);--el-table-fixed-right-column: inset -10px 0 10px -10px rgba(0, 0, 0, .15);--el-table-index: var(--el-index-normal)}.el-table{position:relative;overflow:hidden;box-sizing:border-box;height:fit-content;width:100%;max-width:100%;background-color:var(--el-table-bg-color);font-size:var(--el-font-size-base);color:var(--el-table-text-color)}.el-table__inner-wrapper{position:relative;display:flex;flex-direction:column;height:100%}.el-table__inner-wrapper:before{left:0;bottom:0;height:1px}.el-table tbody:focus-visible{outline:none}.el-table.has-footer.el-table--scrollable-y tr:last-child td.el-table__cell,.el-table.has-footer.el-table--fluid-height tr:last-child td.el-table__cell{border-bottom-color:transparent}.el-table__empty-block{position:sticky;left:0;min-height:60px;text-align:center;width:100%;display:flex;justify-content:center;align-items:center}.el-table__empty-text{line-height:60px;width:50%;color:var(--el-text-color-secondary)}.el-table__expand-column .cell{padding:0;text-align:center;-webkit-user-select:none;user-select:none}.el-table__expand-icon{position:relative;cursor:pointer;color:var(--el-text-color-regular);font-size:12px;transition:transform var(--el-transition-duration-fast) ease-in-out;height:20px}.el-table__expand-icon--expanded{transform:rotate(90deg)}.el-table__expand-icon>.el-icon{font-size:12px}.el-table__expanded-cell{background-color:var(--el-table-expanded-cell-bg-color)}.el-table__expanded-cell[class*=cell]{padding:20px 50px}.el-table__expanded-cell:hover{background-color:transparent!important}.el-table__placeholder{display:inline-block;width:20px}.el-table__append-wrapper{overflow:hidden}.el-table--fit{border-right:0;border-bottom:0}.el-table--fit .el-table__cell.gutter{border-right-width:1px}.el-table--fit .el-table__inner-wrapper:before{width:100%}.el-table thead{color:var(--el-table-header-text-color)}.el-table thead th{font-weight:600}.el-table thead.is-group th.el-table__cell{background:var(--el-fill-color-light)}.el-table .el-table__cell{padding:8px 0;min-width:0;box-sizing:border-box;text-overflow:ellipsis;vertical-align:middle;position:relative;text-align:left;z-index:var(--el-table-index)}.el-table .el-table__cell.is-center{text-align:center}.el-table .el-table__cell.is-right{text-align:right}.el-table .el-table__cell.gutter{width:15px;border-right-width:0;border-bottom-width:0;padding:0}.el-table .el-table__cell.is-hidden>*{visibility:hidden}.el-table .cell{box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:normal;overflow-wrap:break-word;line-height:23px;padding:0 12px}.el-table .cell.el-tooltip{white-space:nowrap;min-width:50px}.el-table--large{font-size:var(--el-font-size-base)}.el-table--large .el-table__cell{padding:12px 0}.el-table--large .cell{padding:0 16px}.el-table--default{font-size:var(--el-font-size-base)}.el-table--default .el-table__cell{padding:8px 0}.el-table--default .cell{padding:0 12px}.el-table--small{font-size:var(--el-font-size-extra-small)}.el-table--small .el-table__cell{padding:4px 0}.el-table--small .cell{padding:0 8px}.el-table tr{background-color:var(--el-table-tr-bg-color)}.el-table tr input[type=checkbox]{margin:0}.el-table th.el-table__cell.is-leaf,.el-table td.el-table__cell{border-bottom:var(--el-table-border)}.el-table th.el-table__cell.is-sortable{cursor:pointer}.el-table th.el-table__cell{background-color:var(--el-table-header-bg-color)}.el-table th.el-table__cell>.cell.highlight{color:var(--el-color-primary)}.el-table th.el-table__cell.required>div:before{display:inline-block;content:"";width:8px;height:8px;border-radius:50%;background:#ff4d51;margin-right:5px;vertical-align:middle}.el-table td.el-table__cell div{box-sizing:border-box}.el-table td.el-table__cell.gutter{width:0}.el-table--border:after,.el-table--border:before,.el-table--border .el-table__inner-wrapper:after,.el-table__inner-wrapper:before{content:"";position:absolute;background-color:var(--el-table-border-color);z-index:calc(var(--el-table-index) + 2)}.el-table--border .el-table__inner-wrapper:after{left:0;top:0;width:100%;height:1px;z-index:calc(var(--el-table-index) + 2)}.el-table--border:before{top:-1px;left:0;width:1px;height:100%}.el-table--border:after{top:-1px;right:0;width:1px;height:100%}.el-table--border .el-table__inner-wrapper{border-right:none;border-bottom:none}.el-table--border .el-table__footer-wrapper{position:relative;flex-shrink:0}.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table--border th.el-table__cell.gutter:last-of-type{border-bottom:var(--el-table-border);border-bottom-width:1px}.el-table--border th.el-table__cell{border-bottom:var(--el-table-border)}.el-table--hidden{visibility:hidden}.el-table__header-wrapper,.el-table__body-wrapper,.el-table__footer-wrapper{width:100%}.el-table__header-wrapper tr td.el-table-fixed-column--left,.el-table__header-wrapper tr td.el-table-fixed-column--right,.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right,.el-table__body-wrapper tr td.el-table-fixed-column--left,.el-table__body-wrapper tr td.el-table-fixed-column--right,.el-table__body-wrapper tr th.el-table-fixed-column--left,.el-table__body-wrapper tr th.el-table-fixed-column--right,.el-table__footer-wrapper tr td.el-table-fixed-column--left,.el-table__footer-wrapper tr td.el-table-fixed-column--right,.el-table__footer-wrapper tr th.el-table-fixed-column--left,.el-table__footer-wrapper tr th.el-table-fixed-column--right{position:sticky!important;background:inherit;z-index:calc(var(--el-table-index) + 1)}.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before{content:"";position:absolute;top:0;width:10px;bottom:-1px;overflow-x:hidden;overflow-y:hidden;box-shadow:none;touch-action:none;pointer-events:none}.el-table__header-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-first-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-first-column:before{left:-10px}.el-table__header-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__header-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__body-wrapper tr th.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr td.el-table-fixed-column--right.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--left.is-last-column:before,.el-table__footer-wrapper tr th.el-table-fixed-column--right.is-last-column:before{right:-10px}.el-table__header-wrapper tr td.el-table__fixed-right-patch,.el-table__header-wrapper tr th.el-table__fixed-right-patch,.el-table__body-wrapper tr td.el-table__fixed-right-patch,.el-table__body-wrapper tr th.el-table__fixed-right-patch,.el-table__footer-wrapper tr td.el-table__fixed-right-patch,.el-table__footer-wrapper tr th.el-table__fixed-right-patch{position:sticky!important;z-index:calc(var(--el-table-index) + 1);background:#fff;right:0}.el-table__header-wrapper{flex-shrink:0}.el-table__header-wrapper tr th.el-table-fixed-column--left,.el-table__header-wrapper tr th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__header,.el-table__body,.el-table__footer{table-layout:fixed;border-collapse:separate}.el-table__header-wrapper{overflow:hidden}.el-table__header-wrapper tbody td.el-table__cell{background-color:var(--el-table-row-hover-bg-color);color:var(--el-table-text-color)}.el-table__footer-wrapper{overflow:hidden;flex-shrink:0}.el-table__footer-wrapper tfoot td.el-table__cell{background-color:var(--el-table-row-hover-bg-color);color:var(--el-table-text-color)}.el-table__header-wrapper .el-table-column--selection>.cell,.el-table__body-wrapper .el-table-column--selection>.cell{display:inline-flex;align-items:center;height:23px}.el-table__header-wrapper .el-table-column--selection .el-checkbox,.el-table__body-wrapper .el-table-column--selection .el-checkbox{height:unset}.el-table.is-scrolling-left .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-left.el-table--border .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:var(--el-table-border)}.el-table.is-scrolling-left th.el-table-fixed-column--left{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-right .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-right th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column.el-table__cell{border-right:none}.el-table.is-scrolling-middle .el-table-fixed-column--right.is-first-column:before{box-shadow:var(--el-table-fixed-right-column)}.el-table.is-scrolling-middle .el-table-fixed-column--left.is-last-column:before{box-shadow:var(--el-table-fixed-left-column)}.el-table.is-scrolling-none .el-table-fixed-column--left.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--left.is-last-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-first-column:before,.el-table.is-scrolling-none .el-table-fixed-column--right.is-last-column:before{box-shadow:none}.el-table.is-scrolling-none th.el-table-fixed-column--left,.el-table.is-scrolling-none th.el-table-fixed-column--right{background-color:var(--el-table-header-bg-color)}.el-table__body-wrapper{overflow:hidden;position:relative;flex:1}.el-table__body-wrapper .el-scrollbar__bar{z-index:calc(var(--el-table-index) + 2)}.el-table .caret-wrapper{display:inline-flex;flex-direction:column;align-items:center;height:14px;width:24px;vertical-align:middle;cursor:pointer;overflow:initial;position:relative}.el-table .sort-caret{width:0;height:0;border:solid 5px transparent;position:absolute;left:7px}.el-table .sort-caret.ascending{border-bottom-color:var(--el-text-color-placeholder);top:-5px}.el-table .sort-caret.descending{border-top-color:var(--el-text-color-placeholder);bottom:-3px}.el-table .ascending .sort-caret.ascending{border-bottom-color:var(--el-color-primary)}.el-table .descending .sort-caret.descending{border-top-color:var(--el-color-primary)}.el-table .hidden-columns{visibility:hidden;position:absolute;z-index:-1}.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell{background:var(--el-fill-color-lighter)}.el-table--striped .el-table__body tr.el-table__row--striped.current-row td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table__body tr.hover-row>td.el-table__cell,.el-table__body tr.hover-row.current-row>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped>td.el-table__cell,.el-table__body tr.hover-row.el-table__row--striped.current-row>td.el-table__cell{background-color:var(--el-table-row-hover-bg-color)}.el-table__body tr>td.hover-cell{background-color:var(--el-table-row-hover-bg-color)}.el-table__body tr.current-row>td.el-table__cell{background-color:var(--el-table-current-row-bg-color)}.el-table.el-table--scrollable-y .el-table__body-header{position:sticky;top:0;z-index:calc(var(--el-table-index) + 2)}.el-table.el-table--scrollable-y .el-table__body-footer{position:sticky;bottom:0;z-index:calc(var(--el-table-index) + 2)}.el-table__column-resize-proxy{position:absolute;left:200px;top:0;bottom:0;width:0;border-left:var(--el-table-border);z-index:calc(var(--el-table-index) + 9)}.el-table__column-filter-trigger{display:inline-block;cursor:pointer}.el-table__column-filter-trigger i{color:var(--el-color-info);font-size:14px;vertical-align:middle}.el-table__border-left-patch{top:0;left:0;width:1px;height:100%;z-index:calc(var(--el-table-index) + 2);position:absolute;background-color:var(--el-table-border-color)}.el-table__border-bottom-patch{left:0;height:1px;z-index:calc(var(--el-table-index) + 2);position:absolute;background-color:var(--el-table-border-color)}.el-table__border-right-patch{top:0;height:100%;width:1px;z-index:calc(var(--el-table-index) + 2);position:absolute;background-color:var(--el-table-border-color)}.el-table--enable-row-transition .el-table__body td.el-table__cell{transition:background-color .25s ease}.el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell{background-color:var(--el-table-row-hover-bg-color)}.el-table [class*=el-table__row--level] .el-table__expand-icon{display:inline-block;width:12px;line-height:12px;height:12px;text-align:center;margin-right:8px}.el-table .el-table.el-table--border .el-table__cell{border-right:var(--el-table-border)}.el-table:not(.el-table--border) .el-table__cell{border-right:none}.el-table:not(.el-table--border)>.el-table__inner-wrapper:after{content:none}.el-checkbox{--el-checkbox-font-size: 14px;--el-checkbox-font-weight: var(--el-font-weight-primary);--el-checkbox-text-color: var(--el-text-color-regular);--el-checkbox-input-height: 14px;--el-checkbox-input-width: 14px;--el-checkbox-border-radius: var(--el-border-radius-small);--el-checkbox-bg-color: var(--el-fill-color-blank);--el-checkbox-input-border: var(--el-border);--el-checkbox-disabled-border-color: var(--el-border-color);--el-checkbox-disabled-input-fill: var(--el-fill-color-light);--el-checkbox-disabled-icon-color: var(--el-text-color-placeholder);--el-checkbox-disabled-checked-input-fill: var(--el-border-color-extra-light);--el-checkbox-disabled-checked-input-border-color: var(--el-border-color);--el-checkbox-disabled-checked-icon-color: var(--el-text-color-placeholder);--el-checkbox-checked-text-color: var(--el-color-primary);--el-checkbox-checked-input-border-color: var(--el-color-primary);--el-checkbox-checked-bg-color: var(--el-color-primary);--el-checkbox-checked-icon-color: var(--el-color-white);--el-checkbox-input-border-color-hover: var(--el-color-primary)}.el-checkbox{color:var(--el-checkbox-text-color);font-weight:var(--el-checkbox-font-weight);font-size:var(--el-font-size-base);position:relative;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;-webkit-user-select:none;user-select:none;margin-right:30px;height:var(--el-checkbox-height, 32px)}.el-checkbox.is-disabled{cursor:not-allowed}.el-checkbox.is-bordered{padding:0 15px 0 9px;border-radius:var(--el-border-radius-base);border:var(--el-border);box-sizing:border-box}.el-checkbox.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-checkbox.is-bordered.is-disabled{border-color:var(--el-border-color-lighter)}.el-checkbox.is-bordered.el-checkbox--large{padding:0 19px 0 11px;border-radius:var(--el-border-radius-base)}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__label{font-size:var(--el-font-size-base)}.el-checkbox.is-bordered.el-checkbox--large .el-checkbox__inner{height:14px;width:14px}.el-checkbox.is-bordered.el-checkbox--small{padding:0 11px 0 7px;border-radius:calc(var(--el-border-radius-base) - 1px)}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner{height:12px;width:12px}.el-checkbox.is-bordered.el-checkbox--small .el-checkbox__inner:after{height:6px;width:2px}.el-checkbox input:focus-visible+.el-checkbox__inner{outline:2px solid var(--el-checkbox-input-border-color-hover);outline-offset:1px;border-radius:var(--el-checkbox-border-radius)}.el-checkbox__input{white-space:nowrap;cursor:pointer;outline:none;display:inline-flex;position:relative}.el-checkbox__input.is-disabled .el-checkbox__inner{background-color:var(--el-checkbox-disabled-input-fill);border-color:var(--el-checkbox-disabled-border-color);cursor:not-allowed}.el-checkbox__input.is-disabled .el-checkbox__inner:after{cursor:not-allowed;border-color:var(--el-checkbox-disabled-icon-color)}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner:after{border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-disabled-checked-input-fill);border-color:var(--el-checkbox-disabled-checked-input-border-color)}.el-checkbox__input.is-disabled.is-indeterminate .el-checkbox__inner:before{background-color:var(--el-checkbox-disabled-checked-icon-color);border-color:var(--el-checkbox-disabled-checked-icon-color)}.el-checkbox__input.is-disabled+span.el-checkbox__label{color:var(--el-disabled-text-color);cursor:not-allowed}.el-checkbox__input.is-checked .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-checked .el-checkbox__inner:after{transform:rotate(45deg) scaleY(1);border-color:var(--el-checkbox-checked-icon-color)}.el-checkbox__input.is-checked+.el-checkbox__label{color:var(--el-checkbox-checked-text-color)}.el-checkbox__input.is-focus:not(.is-checked) .el-checkbox__original:not(:focus-visible){border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__input.is-indeterminate .el-checkbox__inner{background-color:var(--el-checkbox-checked-bg-color);border-color:var(--el-checkbox-checked-input-border-color)}.el-checkbox__input.is-indeterminate .el-checkbox__inner:before{content:"";position:absolute;display:block;background-color:var(--el-checkbox-checked-icon-color);height:2px;transform:scale(.5);left:0;right:0;top:5px}.el-checkbox__input.is-indeterminate .el-checkbox__inner:after{display:none}.el-checkbox__inner{display:inline-block;position:relative;border:var(--el-checkbox-input-border);border-radius:var(--el-checkbox-border-radius);box-sizing:border-box;width:var(--el-checkbox-input-width);height:var(--el-checkbox-input-height);background-color:var(--el-checkbox-bg-color);z-index:var(--el-index-normal);transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46),outline .25s cubic-bezier(.71,-.46,.29,1.46)}.el-checkbox__inner:hover{border-color:var(--el-checkbox-input-border-color-hover)}.el-checkbox__inner:after{box-sizing:content-box;content:"";border:1px solid transparent;border-left:0;border-top:0;height:7px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:3px;transition:transform .15s ease-in .05s;transform-origin:center}.el-checkbox__original{opacity:0;outline:none;position:absolute;margin:0;width:0;height:0;z-index:-1}.el-checkbox__label{display:inline-block;padding-left:8px;line-height:1;font-size:var(--el-checkbox-font-size)}.el-checkbox.el-checkbox--large{height:40px}.el-checkbox.el-checkbox--large .el-checkbox__label{font-size:14px}.el-checkbox.el-checkbox--large .el-checkbox__inner{width:14px;height:14px}.el-checkbox.el-checkbox--small{height:24px}.el-checkbox.el-checkbox--small .el-checkbox__label{font-size:12px}.el-checkbox.el-checkbox--small .el-checkbox__inner{width:12px;height:12px}.el-checkbox.el-checkbox--small .el-checkbox__input.is-indeterminate .el-checkbox__inner:before{top:4px}.el-checkbox.el-checkbox--small .el-checkbox__inner:after{width:2px;height:6px}.el-checkbox:last-of-type{margin-right:0}.el-table-column--selection .cell{padding-left:14px;padding-right:14px}.el-table-filter{border:solid 1px var(--el-border-color-lighter);border-radius:2px;background-color:#fff;box-shadow:var(--el-box-shadow-light);box-sizing:border-box}.el-table-filter__list{padding:5px 0;margin:0;list-style:none;min-width:100px}.el-table-filter__list-item{line-height:36px;padding:0 10px;cursor:pointer;font-size:var(--el-font-size-base)}.el-table-filter__list-item:hover{background-color:var(--el-color-primary-light-9);color:var(--el-color-primary)}.el-table-filter__list-item.is-active{background-color:var(--el-color-primary);color:#fff}.el-table-filter__content{min-width:100px}.el-table-filter__bottom{border-top:1px solid var(--el-border-color-lighter);padding:8px}.el-table-filter__bottom button{background:transparent;border:none;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-small);padding:0 3px}.el-table-filter__bottom button:hover{color:var(--el-color-primary)}.el-table-filter__bottom button:focus{outline:none}.el-table-filter__bottom button.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-table-filter__wrap{max-height:280px}.el-table-filter__checkbox-group{padding:10px}.el-table-filter__checkbox-group label.el-checkbox{display:flex;align-items:center;margin-right:5px;margin-bottom:12px;margin-left:5px;height:unset}.el-table-filter__checkbox-group .el-checkbox:last-child{margin-bottom:0}:root{--el-popup-modal-bg-color: var(--el-color-black);--el-popup-modal-opacity: .5}.v-modal-enter{animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:var(--el-popup-modal-opacity);background:var(--el-popup-modal-bg-color)}.el-popup-parent--hidden{overflow:hidden}.el-message-box{--el-messagebox-title-color: var(--el-text-color-primary);--el-messagebox-width: 420px;--el-messagebox-border-radius: 4px;--el-messagebox-box-shadow: var(--el-box-shadow);--el-messagebox-font-size: var(--el-font-size-large);--el-messagebox-content-font-size: var(--el-font-size-base);--el-messagebox-content-color: var(--el-text-color-regular);--el-messagebox-error-font-size: 12px;--el-messagebox-padding-primary: 12px;--el-messagebox-font-line-height: var(--el-font-line-height-primary)}.el-message-box{display:inline-block;position:relative;max-width:var(--el-messagebox-width);width:100%;padding:var(--el-messagebox-padding-primary);vertical-align:middle;background-color:var(--el-bg-color);border-radius:var(--el-messagebox-border-radius);font-size:var(--el-messagebox-font-size);box-shadow:var(--el-messagebox-box-shadow);text-align:left;overflow:hidden;backface-visibility:hidden;box-sizing:border-box;overflow-wrap:break-word}.el-message-box:focus{outline:none!important}.el-overlay.is-message-box .el-overlay-message-box{text-align:center;position:fixed;top:0;right:0;bottom:0;left:0;padding:16px;overflow:auto}.el-overlay.is-message-box .el-overlay-message-box:after{content:"";display:inline-block;height:100%;width:0;vertical-align:middle}.el-message-box.is-draggable .el-message-box__header{cursor:move;-webkit-user-select:none;user-select:none}.el-message-box__header{padding-bottom:var(--el-messagebox-padding-primary)}.el-message-box__header.show-close{padding-right:calc(var(--el-messagebox-padding-primary) + var(--el-message-close-size, 16px))}.el-message-box__title{font-size:var(--el-messagebox-font-size);line-height:var(--el-messagebox-font-line-height);color:var(--el-messagebox-title-color)}.el-message-box__headerbtn{position:absolute;top:0;right:0;padding:0;width:40px;height:40px;border:none;outline:none;background:transparent;font-size:var(--el-message-close-size, 16px);cursor:pointer}.el-message-box__headerbtn .el-message-box__close{color:var(--el-color-info);font-size:inherit}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:var(--el-color-primary)}.el-message-box__content{color:var(--el-messagebox-content-color);font-size:var(--el-messagebox-content-font-size)}.el-message-box__container{display:flex;align-items:center;gap:12px}.el-message-box__input{padding-top:12px}.el-message-box__input div.invalid>input{border-color:var(--el-color-error)}.el-message-box__input div.invalid>input:focus{border-color:var(--el-color-error)}.el-message-box__status{font-size:24px}.el-message-box__status.el-message-box-icon--primary{--el-messagebox-color: var(--el-color-primary);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--success{--el-messagebox-color: var(--el-color-success);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--info{--el-messagebox-color: var(--el-color-info);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--warning{--el-messagebox-color: var(--el-color-warning);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--error{--el-messagebox-color: var(--el-color-error);color:var(--el-messagebox-color)}.el-message-box__message{margin:0;min-width:0}.el-message-box__message p{margin:0;line-height:var(--el-messagebox-font-line-height)}.el-message-box__errormsg{color:var(--el-color-error);font-size:var(--el-messagebox-error-font-size);line-height:var(--el-messagebox-font-line-height)}.el-message-box__btns{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;padding-top:var(--el-messagebox-padding-primary)}.el-message-box--center .el-message-box__title{display:flex;align-items:center;justify-content:center;gap:6px}.el-message-box--center .el-message-box__status{font-size:inherit}.el-message-box--center .el-message-box__btns,.el-message-box--center .el-message-box__container{justify-content:center}.fade-in-linear-enter-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration)}.fade-in-linear-leave-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration) reverse}@keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}.json-replace-form{width:800px;max-width:1000px;overflow:hidden;display:flex;flex-direction:column}.json-replace-form .el-scrollbar__wrap{max-height:70vh}.json-replace-form .button-box{display:flex;justify-content:flex-end;margin-top:16px}.json-replace-form .data-type{color:#aaa;font-size:12px;line-height:1.4}.json-replace-form .code-editor{height:400px;border-radius:4px;border:1px solid var(--el-input-border-color, var(--el-border-color))}.json-replace{padding-left:16px;width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column}.json-replace .table{flex:1;display:flex;height:100%;overflow:hidden}.json-replace .language-type{margin-bottom:0}.json-replace .el-table__body-wrapper .control-column .cell{padding-left:1px!important}.json-replace .button-box{display:flex;justify-content:space-between;padding-top:16px}.more-setting{width:80vw;max-width:1000px;height:60vh;display:flex}.more-setting .setting-menu{border-right:1px solid var(--el-border-color)}.more-setting .setting-menu .setting-item{width:200px;margin-right:16px;padding:8px 0;border-bottom:1px solid var(--el-border-color);cursor:pointer}.more-setting .setting-menu .setting-item.active{color:var(--el-color-primary)}.more-setting .setting-content{overflow:hidden;flex:1}.workbench{display:flex;height:70vh;width:92vw;max-width:1200px}.workbench .workbench-menu{width:245px;border-right:1px solid var(--el-border-color);display:flex;flex-direction:column;justify-content:space-between}.workbench .workbench-menu .detail-title{color:var(--el-color-primary);margin:-8px 0}.workbench .workbench-menu .workbench-menu-form{margin-right:16px}.workbench .workbench-menu .workbench-menu-form .single-line{margin:0}.workbench .workbench-menu .workbench-menu-form .single-line.small-font .el-form-item__label{font-size:13px}.workbench .workbench-menu>button{margin-top:16px;margin-right:16px}.workbench .workbench-menu .setting-more{cursor:pointer;color:var(--el-text-color-regular);height:32px;display:inline-flex;align-items:center}.workbench .workbench-menu .setting-more:after{margin-left:2px;width:7px;height:7px;border-top:1px solid var(--el-text-color-regular);border-right:1px solid var(--el-text-color-regular);transform:rotate(45deg);display:inline-block;content:""}.workbench .workbench-menu .setting-more:hover{color:var(--el-color-primary)}.workbench .workbench-menu .setting-more:hover:after{border-color:var(--el-color-primary)}.workbench .workbench-content{flex:1;overflow:hidden;display:flex;flex-direction:column;position:relative}.workbench .workbench-content .code-content{flex:1;overflow:hidden}.workbench .workbench-content .button-box{padding-top:5px;display:flex;align-items:center;justify-content:flex-end}.workbench .workbench-content .url-path{line-height:24.5px;overflow:hidden;white-space:nowrap;display:flex;justify-content:right;color:#969696;font-weight:400;margin:0 20px;letter-spacing:.5px}.workbench .workbench-content .content-err{position:absolute;top:0;left:0;width:100%;height:100%;gap:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;padding:20px;background-color:var(--el-dialog-bg-color)}.custom-workbench{display:flex;height:75vh;width:92vw;max-width:1600px}.custom-workbench .workbench-menu{width:245px;border-right:1px solid #ebeef5;display:flex;flex-direction:column;justify-content:space-between}.custom-workbench .workbench-menu .workbench-menu-form{margin-right:16px}.custom-workbench .workbench-menu .workbench-menu-form .single-line{margin:0}.custom-workbench .workbench-menu .workbench-menu-form .single-line.small-font .el-form-item__label{font-size:13px}.custom-workbench .workbench-menu>button{margin-top:16px;margin-right:16px}.custom-workbench .workbench-menu .setting-more{cursor:pointer;color:var(--el-text-color-regular);height:32px;display:inline-flex;align-items:center}.custom-workbench .workbench-menu .setting-more:after{margin-left:2px;width:7px;height:7px;border-top:1px solid var(--el-text-color-regular);border-right:1px solid var(--el-text-color-regular);transform:rotate(45deg);display:inline-block;content:""}.custom-workbench .workbench-menu .setting-more:hover{color:var(--el-color-primary)}.custom-workbench .workbench-menu .setting-more:hover:after{border-color:var(--el-color-primary)}.custom-workbench .workbench-json{flex:.8;border-right:1px solid #ebeef5}.custom-workbench .workbench-json .workbench-json-input{height:100%;width:100%;font-size:14px;line-height:1.5;padding:0 10px}.custom-workbench .workbench-json .workbench-json-input .el-textarea__inner{height:100%}.custom-workbench .workbench-content{flex:1;overflow:hidden;display:flex;flex-direction:column;position:relative}.custom-workbench .workbench-content .code-content{flex:1;overflow:hidden}.custom-workbench .workbench-content .button-box{padding-top:5px;display:flex;align-items:center;justify-content:flex-end}.custom-workbench .workbench-content .url-path{line-height:24.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#969696;font-weight:400;margin-right:20px;letter-spacing:.5px}.custom-workbench .workbench-content .content-err{position:absolute;top:0;left:0;width:100%;height:100%;padding:20px;gap:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;background-color:#fff}.crawler-app[data-v-4f066fa6]{width:48px;height:48px;background:linear-gradient(135deg,#3780ff,#5ba3ff);border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:500;cursor:pointer;box-shadow:0 4px 12px #3780ff66;transition:all .3s cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none;position:relative;overflow:hidden;padding:4px;margin:5px;line-break:anywhere}.crawler-app[data-v-4f066fa6]:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s}.crawler-app[data-v-4f066fa6]:hover{transform:scale(1.05);box-shadow:0 8px 20px #3780ff80}.crawler-app[data-v-4f066fa6]:hover:before{left:100%}.crawler-app[data-v-4f066fa6]:active{transform:translateY(0) scale(.98);box-shadow:0 2px 8px #3780ff66}.crawler-app[data-v-4f066fa6]:nth-child(2){background:linear-gradient(135deg,#07c160,#38ce7c);box-shadow:0 4px 12px #07c16066}.crawler-app[data-v-4f066fa6]:nth-child(2):hover{box-shadow:0 8px 20px #07c16080}.crawler-app[data-v-4f066fa6]:nth-child(2):active{box-shadow:0 2px 8px #07c16066} `);

System.addImportMap({ imports: {"vue":"user:vue"} });
System.set("user:vue", (()=>{const _=Vue;('default' in _)||(_.default=_);return _})());

System.register("./__entry.js", ['./__monkey.entry-BeB6vm3i.js'], (function (exports, module) {
	'use strict';
	return {
		setters: [null],
		execute: (function () {



		})
	};
}));

System.register("./__monkey.entry-BeB6vm3i.js", ['vue'], (function (exports, module) {
    'use strict';
    var ref, defineComponent, computed, createElementBlock, openBlock, mergeProps, unref, renderSlot, createElementVNode, useAttrs, useSlots, shallowRef, watch, nextTick, onMounted, toRef, normalizeStyle, normalizeClass, createCommentVNode, Fragment, createBlock, withCtx, resolveDynamicComponent, withModifiers, createVNode, toDisplayString, inject, onBeforeUnmount, Transition, withDirectives, vShow, provide, reactive, onActivated, onUpdated, cloneVNode, Text, Comment, Teleport, readonly, onDeactivated, createTextVNode, isRef, vModelCheckbox, toRefs, vModelRadio, h, createSlots, TransitionGroup, getCurrentInstance, withKeys, onUnmounted, onBeforeMount, shallowReactive, markRaw, mergeModels, useModel, toRaw, renderList, useTemplateRef, createApp, watchEffect, onScopeDispose, effectScope, warn, getCurrentScope, isVNode, resolveComponent, resolveDirective, render, hasInjectionContext, isReactive, toHandlerKey, vModelText;
    return {
        setters: [module => {
            ref = module.ref;
            defineComponent = module.defineComponent;
            computed = module.computed;
            createElementBlock = module.createElementBlock;
            openBlock = module.openBlock;
            mergeProps = module.mergeProps;
            unref = module.unref;
            renderSlot = module.renderSlot;
            createElementVNode = module.createElementVNode;
            useAttrs = module.useAttrs;
            useSlots = module.useSlots;
            shallowRef = module.shallowRef;
            watch = module.watch;
            nextTick = module.nextTick;
            onMounted = module.onMounted;
            toRef = module.toRef;
            normalizeStyle = module.normalizeStyle;
            normalizeClass = module.normalizeClass;
            createCommentVNode = module.createCommentVNode;
            Fragment = module.Fragment;
            createBlock = module.createBlock;
            withCtx = module.withCtx;
            resolveDynamicComponent = module.resolveDynamicComponent;
            withModifiers = module.withModifiers;
            createVNode = module.createVNode;
            toDisplayString = module.toDisplayString;
            inject = module.inject;
            onBeforeUnmount = module.onBeforeUnmount;
            Transition = module.Transition;
            withDirectives = module.withDirectives;
            vShow = module.vShow;
            provide = module.provide;
            reactive = module.reactive;
            onActivated = module.onActivated;
            onUpdated = module.onUpdated;
            cloneVNode = module.cloneVNode;
            Text = module.Text;
            Comment = module.Comment;
            Teleport = module.Teleport;
            readonly = module.readonly;
            onDeactivated = module.onDeactivated;
            createTextVNode = module.createTextVNode;
            isRef = module.isRef;
            vModelCheckbox = module.vModelCheckbox;
            toRefs = module.toRefs;
            vModelRadio = module.vModelRadio;
            h = module.h;
            createSlots = module.createSlots;
            TransitionGroup = module.TransitionGroup;
            getCurrentInstance = module.getCurrentInstance;
            withKeys = module.withKeys;
            onUnmounted = module.onUnmounted;
            onBeforeMount = module.onBeforeMount;
            shallowReactive = module.shallowReactive;
            markRaw = module.markRaw;
            mergeModels = module.mergeModels;
            useModel = module.useModel;
            toRaw = module.toRaw;
            renderList = module.renderList;
            useTemplateRef = module.useTemplateRef;
            createApp = module.createApp;
            watchEffect = module.watchEffect;
            onScopeDispose = module.onScopeDispose;
            effectScope = module.effectScope;
            warn = module.warn;
            getCurrentScope = module.getCurrentScope;
            isVNode = module.isVNode;
            resolveComponent = module.resolveComponent;
            resolveDirective = module.resolveDirective;
            render = module.render;
            hasInjectionContext = module.hasInjectionContext;
            isReactive = module.isReactive;
            toHandlerKey = module.toHandlerKey;
            vModelText = module.vModelText;
        }],
        execute: (function () {

            exports({
                E: Ete,
                L: Lj,
                S: Ste,
                T: Tte,
                b: bte,
                c: Ate,
                d: DW,
                g: gte,
                l: ln,
                q: qj,
                w: wte
            });

            var Xk=Object.defineProperty;var Yk=(t,e,n)=>e in t?Xk(t,e,{enumerable:true,configurable:true,writable:true,value:n}):t[e]=n;var le=(t,e,n)=>Yk(t,typeof e!="symbol"?e+"":e,n);/*!
             * pinia v3.0.2
             * (c) 2025 Eduardo San Martin Morote
             * @license MIT
             */let y2;const Yd=t=>y2=t,v2=Symbol();function Gp(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var cu;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function";})(cu||(cu={}));function f8(){const t=effectScope(true),e=t.run(()=>ref({}));let n=[],r=[];const i=markRaw({install(s){Yd(i),i._a=s,s.provide(v2,i),s.config.globalProperties.$pinia=i,r.forEach(o=>n.push(o)),r=[];},use(s){return this._a?n.push(s):r.push(s),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return i}const D2=()=>{};function Cv(t,e,n,r=D2){t.push(e);const i=()=>{const s=t.indexOf(e);s>-1&&(t.splice(s,1),r());};return !n&&getCurrentScope()&&onScopeDispose(i),i}function ba(t,...e){t.slice().forEach(n=>{n(...e);});}const d8=t=>t(),xv=Symbol(),Hh=Symbol();function Xp(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,r)=>t.set(r,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],i=t[n];Gp(i)&&Gp(r)&&t.hasOwnProperty(n)&&!isRef(r)&&!isReactive(r)?t[n]=Xp(i,r):t[n]=r;}return t}const h8=Symbol();function p8(t){return !Gp(t)||!Object.prototype.hasOwnProperty.call(t,h8)}const{assign:Ns}=Object;function m8(t){return !!(isRef(t)&&t.effect)}function g8(t,e,n,r){const{state:i,actions:s,getters:o}=e,a=n.state.value[t];let l;function u(){a||(n.state.value[t]=i?i():{});const c=toRefs(n.state.value[t]);return Ns(c,s,Object.keys(o||{}).reduce((f,d)=>(f[d]=markRaw(computed(()=>{Yd(n);const h=n._s.get(t);return o[d].call(h,h)})),f),{}))}return l=b2(t,u,e,n,r,true),l}function b2(t,e,n={},r,i,s){let o;const a=Ns({actions:{}},n),l={deep:true};let u,c,f=[],d=[],h;const p=r.state.value[t];!s&&!p&&(r.state.value[t]={}),ref({});let m;function g(S){let A;u=c=false,typeof S=="function"?(S(r.state.value[t]),A={type:cu.patchFunction,storeId:t,events:h}):(Xp(r.state.value[t],S),A={type:cu.patchObject,payload:S,storeId:t,events:h});const M=m=Symbol();nextTick().then(()=>{m===M&&(u=true);}),c=true,ba(f,A,r.state.value[t]);}const y=s?function(){const{state:A}=n,M=A?A():{};this.$patch(k=>{Ns(k,M);});}:D2;function F(){o.stop(),f=[],d=[],r._s.delete(t);}const x=(S,A="")=>{if(xv in S)return S[Hh]=A,S;const M=function(){Yd(r);const k=Array.from(arguments),N=[],O=[];function T(_){N.push(_);}function I(_){O.push(_);}ba(d,{args:k,name:M[Hh],store:D,after:T,onError:I});let j;try{j=S.apply(this&&this.$id===t?this:D,k);}catch(_){throw ba(O,_),_}return j instanceof Promise?j.then(_=>(ba(N,_),_)).catch(_=>(ba(O,_),Promise.reject(_))):(ba(N,j),j)};return M[xv]=true,M[Hh]=A,M},b={_p:r,$id:t,$onAction:Cv.bind(null,d),$patch:g,$reset:y,$subscribe(S,A={}){const M=Cv(f,S,A.detached,()=>k()),k=o.run(()=>watch(()=>r.state.value[t],N=>{(A.flush==="sync"?c:u)&&S({storeId:t,type:cu.direct,events:h},N);},Ns({},l,A)));return M},$dispose:F},D=reactive(b);r._s.set(t,D);const E=(r._a&&r._a.runWithContext||d8)(()=>r._e.run(()=>(o=effectScope()).run(()=>e({action:x}))));for(const S in E){const A=E[S];if(isRef(A)&&!m8(A)||isReactive(A))s||(p&&p8(A)&&(isRef(A)?A.value=p[S]:Xp(A,p[S])),r.state.value[t][S]=A);else if(typeof A=="function"){const M=x(A,S);E[S]=M,a.actions[S]=A;}}return Ns(D,E),Ns(toRaw(D),E),Object.defineProperty(D,"$state",{get:()=>r.state.value[t],set:S=>{g(A=>{Ns(A,S);});}}),r._p.forEach(S=>{Ns(D,o.run(()=>S({store:D,app:r._a,pinia:r,options:a})));}),p&&s&&n.hydrate&&n.hydrate(D.$state,p),u=true,c=true,D}/*! #__NO_SIDE_EFFECTS__ */function C2(t,e,n){let r;const i=typeof e=="function";r=i?n:e;function s(o,a){const l=hasInjectionContext();return o=o||(l?inject(v2,null):null),o&&Yd(o),o=y2,o._s.has(t)||(i?b2(t,e,r,o):g8(t,r,o)),o._s.get(t)}return s.$id=t,s}const x2=Symbol(),fu="el",y8="is-",bo=(t,e,n,r,i)=>{let s=`${t}-${e}`;return n&&(s+=`-${n}`),r&&(s+=`__${r}`),i&&(s+=`--${i}`),s},E2=Symbol("namespaceContextKey"),n0=t=>{const e=t||(getCurrentInstance()?inject(E2,ref(fu)):ref(fu));return computed(()=>unref(e)||fu)},we=(t,e)=>{const n=n0(e);return {namespace:n,b:(m="")=>bo(n.value,t,m,"",""),e:m=>m?bo(n.value,t,"",m,""):"",m:m=>m?bo(n.value,t,"","",m):"",be:(m,g)=>m&&g?bo(n.value,t,m,g,""):"",em:(m,g)=>m&&g?bo(n.value,t,"",m,g):"",bm:(m,g)=>m&&g?bo(n.value,t,m,"",g):"",bem:(m,g,y)=>m&&g&&y?bo(n.value,t,m,g,y):"",is:(m,...g)=>{const y=g.length>=1?g[0]:true;return m&&y?`${y8}${m}`:""},cssVar:m=>{const g={};for(const y in m)m[y]&&(g[`--${n.value}-${y}`]=m[y]);return g},cssVarName:m=>`--${n.value}-${m}`,cssVarBlock:m=>{const g={};for(const y in m)m[y]&&(g[`--${n.value}-${t}-${y}`]=m[y]);return g},cssVarBlockName:m=>`--${n.value}-${t}-${m}`}};/**
            * @vue/shared v3.5.16
            * (c) 2018-present Yuxi (Evan) You and Vue contributors
            * @license MIT
            **/const Ks=()=>{},v8=Object.prototype.hasOwnProperty,Qi=(t,e)=>v8.call(t,e),We=Array.isArray,Le=t=>typeof t=="function",He=t=>typeof t=="string",At=t=>t!==null&&typeof t=="object",Ev=t=>(At(t)||Le(t))&&Le(t.then)&&Le(t.catch),D8=Object.prototype.toString,b8=t=>D8.call(t),C8=t=>b8(t)==="[object Object]",F2=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},x8=/-(\w)/g,E8=F2(t=>t.replace(x8,(e,n)=>n?n.toUpperCase():"")),F8=/\B([A-Z])/g,w8=F2(t=>t.replace(F8,"-$1").toLowerCase());var w2=typeof global=="object"&&global&&global.Object===Object&&global,S8=typeof self=="object"&&self&&self.Object===Object&&self,ti=w2||S8||Function("return this")(),xr=ti.Symbol,S2=Object.prototype,A8=S2.hasOwnProperty,T8=S2.toString,Hl=xr?xr.toStringTag:void 0;function k8(t){var e=A8.call(t,Hl),n=t[Hl];try{t[Hl]=void 0;var r=!0;}catch{}var i=T8.call(t);return r&&(e?t[Hl]=n:delete t[Hl]),i}var B8=Object.prototype,O8=B8.toString;function $8(t){return O8.call(t)}var M8="[object Null]",P8="[object Undefined]",Fv=xr?xr.toStringTag:void 0;function na(t){return t==null?t===void 0?P8:M8:Fv&&Fv in Object(t)?k8(t):$8(t)}function Si(t){return t!=null&&typeof t=="object"}var N8="[object Symbol]";function Qd(t){return typeof t=="symbol"||Si(t)&&na(t)==N8}function A2(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var $n=Array.isArray,wv=xr?xr.prototype:void 0,Sv=wv?wv.toString:void 0;function T2(t){if(typeof t=="string")return t;if($n(t))return A2(t,T2)+"";if(Qd(t))return Sv?Sv.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var I8=/\s/;function L8(t){for(var e=t.length;e--&&I8.test(t.charAt(e)););return e}var R8=/^\s+/;function _8(t){return t&&t.slice(0,L8(t)+1).replace(R8,"")}function Gn(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Av=NaN,j8=/^[-+]0x[0-9a-f]+$/i,V8=/^0b[01]+$/i,q8=/^0o[0-7]+$/i,W8=parseInt;function Tv(t){if(typeof t=="number")return t;if(Qd(t))return Av;if(Gn(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Gn(e)?e+"":e;}if(typeof t!="string")return t===0?t:+t;t=_8(t);var n=V8.test(t);return n||q8.test(t)?W8(t.slice(2),n?2:8):j8.test(t)?Av:+t}function r0(t){return t}var H8="[object AsyncFunction]",z8="[object Function]",K8="[object GeneratorFunction]",U8="[object Proxy]";function i0(t){if(!Gn(t))return  false;var e=na(t);return e==z8||e==K8||e==H8||e==U8}var zh=ti["__core-js_shared__"],kv=function(){var t=/[^.]+$/.exec(zh&&zh.keys&&zh.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function J8(t){return !!kv&&kv in t}var G8=Function.prototype,X8=G8.toString;function ra(t){if(t!=null){try{return X8.call(t)}catch{}try{return t+""}catch{}}return ""}var Y8=/[\\^$.*+?()[\]{}|]/g,Q8=/^\[object .+?Constructor\]$/,Z8=Function.prototype,eB=Object.prototype,tB=Z8.toString,nB=eB.hasOwnProperty,rB=RegExp("^"+tB.call(nB).replace(Y8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function iB(t){if(!Gn(t)||J8(t))return  false;var e=i0(t)?rB:Q8;return e.test(ra(t))}function sB(t,e){return t==null?void 0:t[e]}function ia(t,e){var n=sB(t,e);return iB(n)?n:void 0}var Yp=ia(ti,"WeakMap"),Bv=Object.create,oB=function(){function t(){}return function(e){if(!Gn(e))return {};if(Bv)return Bv(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function aB(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function k2(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var lB=800,uB=16,cB=Date.now;function fB(t){var e=0,n=0;return function(){var r=cB(),i=uB-(r-n);if(n=r,i>0){if(++e>=lB)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function dB(t){return function(){return t}}var ld=function(){try{var t=ia(Object,"defineProperty");return t({},"",{}),t}catch{}}(),hB=ld?function(t,e){return ld(t,"toString",{configurable:true,enumerable:false,value:dB(e),writable:true})}:r0,B2=fB(hB);function pB(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==false;);return t}function mB(t,e,n,r){t.length;for(var i=n+1;i--;)if(e(t[i],i,t))return i;return  -1}var gB=9007199254740991,yB=/^(?:0|[1-9]\d*)$/;function Zd(t,e){var n=typeof t;return e=e??gB,!!e&&(n=="number"||n!="symbol"&&yB.test(t))&&t>-1&&t%1==0&&t<e}function s0(t,e,n){e=="__proto__"&&ld?ld(t,e,{configurable:true,enumerable:true,value:n,writable:true}):t[e]=n;}function pc(t,e){return t===e||t!==t&&e!==e}var vB=Object.prototype,DB=vB.hasOwnProperty;function o0(t,e,n){var r=t[e];(!(DB.call(t,e)&&pc(r,n))||n===void 0&&!(e in t))&&s0(t,e,n);}function mc(t,e,n,r){var i=!n;n||(n={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=void 0;l===void 0&&(l=t[a]),i?s0(n,a,l):o0(n,a,l);}return n}var Ov=Math.max;function O2(t,e,n){return e=Ov(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,s=Ov(r.length-e,0),o=Array(s);++i<s;)o[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(o),aB(t,this,a)}}function bB(t,e){return B2(O2(t,e,r0),t+"")}var CB=9007199254740991;function a0(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=CB}function wl(t){return t!=null&&a0(t.length)&&!i0(t)}function xB(t,e,n){if(!Gn(n))return  false;var r=typeof e;return (r=="number"?wl(n)&&Zd(e,n.length):r=="string"&&e in n)?pc(n[e],t):false}function EB(t){return bB(function(e,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=t.length>3&&typeof s=="function"?(i--,s):void 0,o&&xB(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++r<i;){var a=n[r];a&&t(e,a,r,s);}return e})}var FB=Object.prototype;function l0(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||FB;return t===n}function wB(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var SB="[object Arguments]";function $v(t){return Si(t)&&na(t)==SB}var $2=Object.prototype,AB=$2.hasOwnProperty,TB=$2.propertyIsEnumerable,$u=$v(function(){return arguments}())?$v:function(t){return Si(t)&&AB.call(t,"callee")&&!TB.call(t,"callee")};function kB(){return  false}var M2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Mv=M2&&typeof module=="object"&&module&&!module.nodeType&&module,BB=Mv&&Mv.exports===M2,Pv=BB?ti.Buffer:void 0,OB=Pv?Pv.isBuffer:void 0,Mu=OB||kB,$B="[object Arguments]",MB="[object Array]",PB="[object Boolean]",NB="[object Date]",IB="[object Error]",LB="[object Function]",RB="[object Map]",_B="[object Number]",jB="[object Object]",VB="[object RegExp]",qB="[object Set]",WB="[object String]",HB="[object WeakMap]",zB="[object ArrayBuffer]",KB="[object DataView]",UB="[object Float32Array]",JB="[object Float64Array]",GB="[object Int8Array]",XB="[object Int16Array]",YB="[object Int32Array]",QB="[object Uint8Array]",ZB="[object Uint8ClampedArray]",e3="[object Uint16Array]",t3="[object Uint32Array]",Ct={};Ct[UB]=Ct[JB]=Ct[GB]=Ct[XB]=Ct[YB]=Ct[QB]=Ct[ZB]=Ct[e3]=Ct[t3]=true;Ct[$B]=Ct[MB]=Ct[zB]=Ct[PB]=Ct[KB]=Ct[NB]=Ct[IB]=Ct[LB]=Ct[RB]=Ct[_B]=Ct[jB]=Ct[VB]=Ct[qB]=Ct[WB]=Ct[HB]=false;function n3(t){return Si(t)&&a0(t.length)&&!!Ct[na(t)]}function u0(t){return function(e){return t(e)}}var P2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,du=P2&&typeof module=="object"&&module&&!module.nodeType&&module,r3=du&&du.exports===P2,Kh=r3&&w2.process,Qa=function(){try{var t=du&&du.require&&du.require("util").types;return t||Kh&&Kh.binding&&Kh.binding("util")}catch{}}(),Nv=Qa&&Qa.isTypedArray,c0=Nv?u0(Nv):n3,i3=Object.prototype,s3=i3.hasOwnProperty;function N2(t,e){var n=$n(t),r=!n&&$u(t),i=!n&&!r&&Mu(t),s=!n&&!r&&!i&&c0(t),o=n||r||i||s,a=o?wB(t.length,String):[],l=a.length;for(var u in t)(e||s3.call(t,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Zd(u,l)))&&a.push(u);return a}function I2(t,e){return function(n){return t(e(n))}}var o3=I2(Object.keys,Object),a3=Object.prototype,l3=a3.hasOwnProperty;function u3(t){if(!l0(t))return o3(t);var e=[];for(var n in Object(t))l3.call(t,n)&&n!="constructor"&&e.push(n);return e}function eh(t){return wl(t)?N2(t):u3(t)}function c3(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var f3=Object.prototype,d3=f3.hasOwnProperty;function h3(t){if(!Gn(t))return c3(t);var e=l0(t),n=[];for(var r in t)r=="constructor"&&(e||!d3.call(t,r))||n.push(r);return n}function f0(t){return wl(t)?N2(t,true):h3(t)}var p3=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,m3=/^\w*$/;function d0(t,e){if($n(t))return  false;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||Qd(t)?true:m3.test(t)||!p3.test(t)||e!=null&&t in Object(e)}var Pu=ia(Object,"create");function g3(){this.__data__=Pu?Pu(null):{},this.size=0;}function y3(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var v3="__lodash_hash_undefined__",D3=Object.prototype,b3=D3.hasOwnProperty;function C3(t){var e=this.__data__;if(Pu){var n=e[t];return n===v3?void 0:n}return b3.call(e,t)?e[t]:void 0}var x3=Object.prototype,E3=x3.hasOwnProperty;function F3(t){var e=this.__data__;return Pu?e[t]!==void 0:E3.call(e,t)}var w3="__lodash_hash_undefined__";function S3(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Pu&&e===void 0?w3:e,this}function Ho(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1]);}}Ho.prototype.clear=g3;Ho.prototype.delete=y3;Ho.prototype.get=C3;Ho.prototype.has=F3;Ho.prototype.set=S3;function A3(){this.__data__=[],this.size=0;}function th(t,e){for(var n=t.length;n--;)if(pc(t[n][0],e))return n;return  -1}var T3=Array.prototype,k3=T3.splice;function B3(t){var e=this.__data__,n=th(e,t);if(n<0)return  false;var r=e.length-1;return n==r?e.pop():k3.call(e,n,1),--this.size,true}function O3(t){var e=this.__data__,n=th(e,t);return n<0?void 0:e[n][1]}function $3(t){return th(this.__data__,t)>-1}function M3(t,e){var n=this.__data__,r=th(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function ls(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1]);}}ls.prototype.clear=A3;ls.prototype.delete=B3;ls.prototype.get=O3;ls.prototype.has=$3;ls.prototype.set=M3;var Nu=ia(ti,"Map");function P3(){this.size=0,this.__data__={hash:new Ho,map:new(Nu||ls),string:new Ho};}function N3(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function nh(t,e){var n=t.__data__;return N3(e)?n[typeof e=="string"?"string":"hash"]:n.map}function I3(t){var e=nh(this,t).delete(t);return this.size-=e?1:0,e}function L3(t){return nh(this,t).get(t)}function R3(t){return nh(this,t).has(t)}function _3(t,e){var n=nh(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function us(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1]);}}us.prototype.clear=P3;us.prototype.delete=I3;us.prototype.get=L3;us.prototype.has=R3;us.prototype.set=_3;var j3="Expected a function";function h0(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(j3);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=t.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(h0.Cache||us),n}h0.Cache=us;var V3=500;function q3(t){var e=h0(t,function(r){return n.size===V3&&n.clear(),r}),n=e.cache;return e}var W3=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,H3=/\\(\\)?/g,z3=q3(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(W3,function(n,r,i,s){e.push(i?s.replace(H3,"$1"):r||n);}),e});function K3(t){return t==null?"":T2(t)}function rh(t,e){return $n(t)?t:d0(t,e)?[t]:z3(K3(t))}function gc(t){if(typeof t=="string"||Qd(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function p0(t,e){e=rh(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[gc(e[n++])];return n&&n==r?t:void 0}function Vr(t,e,n){var r=t==null?void 0:p0(t,e);return r===void 0?n:r}function m0(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var Iv=xr?xr.isConcatSpreadable:void 0;function U3(t){return $n(t)||$u(t)||!!(Iv&&t&&t[Iv])}function L2(t,e,n,r,i){var s=-1,o=t.length;for(n||(n=U3),i||(i=[]);++s<o;){var a=t[s];n(a)?m0(i,a):i[i.length]=a;}return i}function J3(t){var e=t==null?0:t.length;return e?L2(t):[]}function G3(t){return B2(O2(t,void 0,J3),t+"")}var g0=I2(Object.getPrototypeOf,Object),X3="[object Object]",Y3=Function.prototype,Q3=Object.prototype,R2=Y3.toString,Z3=Q3.hasOwnProperty,eO=R2.call(Object);function tO(t){if(!Si(t)||na(t)!=X3)return  false;var e=g0(t);if(e===null)return  true;var n=Z3.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&R2.call(n)==eO}function _r(){if(!arguments.length)return [];var t=arguments[0];return $n(t)?t:[t]}function nO(){this.__data__=new ls,this.size=0;}function rO(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function iO(t){return this.__data__.get(t)}function sO(t){return this.__data__.has(t)}var oO=200;function aO(t,e){var n=this.__data__;if(n instanceof ls){var r=n.__data__;if(!Nu||r.length<oO-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new us(r);}return n.set(t,e),this.size=n.size,this}function Kr(t){var e=this.__data__=new ls(t);this.size=e.size;}Kr.prototype.clear=nO;Kr.prototype.delete=rO;Kr.prototype.get=iO;Kr.prototype.has=sO;Kr.prototype.set=aO;function lO(t,e){return t&&mc(e,eh(e),t)}function uO(t,e){return t&&mc(e,f0(e),t)}var _2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Lv=_2&&typeof module=="object"&&module&&!module.nodeType&&module,cO=Lv&&Lv.exports===_2,Rv=cO?ti.Buffer:void 0,_v=Rv?Rv.allocUnsafe:void 0;function j2(t,e){if(e)return t.slice();var n=t.length,r=_v?_v(n):new t.constructor(n);return t.copy(r),r}function fO(t,e){for(var n=-1,r=t==null?0:t.length,i=0,s=[];++n<r;){var o=t[n];e(o,n,t)&&(s[i++]=o);}return s}function V2(){return []}var dO=Object.prototype,hO=dO.propertyIsEnumerable,jv=Object.getOwnPropertySymbols,y0=jv?function(t){return t==null?[]:(t=Object(t),fO(jv(t),function(e){return hO.call(t,e)}))}:V2;function pO(t,e){return mc(t,y0(t),e)}var mO=Object.getOwnPropertySymbols,gO=mO?function(t){for(var e=[];t;)m0(e,y0(t)),t=g0(t);return e}:V2;function yO(t,e){return mc(t,gO(t),e)}function vO(t,e,n){var r=e(t);return $n(t)?r:m0(r,n(t))}function Qp(t){return vO(t,eh,y0)}var Zp=ia(ti,"DataView"),em=ia(ti,"Promise"),tm=ia(ti,"Set"),Vv="[object Map]",DO="[object Object]",qv="[object Promise]",Wv="[object Set]",Hv="[object WeakMap]",zv="[object DataView]",bO=ra(Zp),CO=ra(Nu),xO=ra(em),EO=ra(tm),FO=ra(Yp),Lr=na;(Zp&&Lr(new Zp(new ArrayBuffer(1)))!=zv||Nu&&Lr(new Nu)!=Vv||em&&Lr(em.resolve())!=qv||tm&&Lr(new tm)!=Wv||Yp&&Lr(new Yp)!=Hv)&&(Lr=function(t){var e=na(t),n=e==DO?t.constructor:void 0,r=n?ra(n):"";if(r)switch(r){case bO:return zv;case CO:return Vv;case xO:return qv;case EO:return Wv;case FO:return Hv}return e});var wO=Object.prototype,SO=wO.hasOwnProperty;function AO(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&SO.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var ud=ti.Uint8Array;function q2(t){var e=new t.constructor(t.byteLength);return new ud(e).set(new ud(t)),e}function TO(t,e){var n=t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var kO=/\w*$/;function BO(t){var e=new t.constructor(t.source,kO.exec(t));return e.lastIndex=t.lastIndex,e}var Kv=xr?xr.prototype:void 0,Uv=Kv?Kv.valueOf:void 0;function OO(t){return Uv?Object(Uv.call(t)):{}}function W2(t,e){var n=e?q2(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var $O="[object Boolean]",MO="[object Date]",PO="[object Map]",NO="[object Number]",IO="[object RegExp]",LO="[object Set]",RO="[object String]",_O="[object Symbol]",jO="[object ArrayBuffer]",VO="[object DataView]",qO="[object Float32Array]",WO="[object Float64Array]",HO="[object Int8Array]",zO="[object Int16Array]",KO="[object Int32Array]",UO="[object Uint8Array]",JO="[object Uint8ClampedArray]",GO="[object Uint16Array]",XO="[object Uint32Array]";function YO(t,e,n){var r=t.constructor;switch(e){case jO:return q2(t);case $O:case MO:return new r(+t);case VO:return TO(t);case qO:case WO:case HO:case zO:case KO:case UO:case JO:case GO:case XO:return W2(t,n);case PO:return new r;case NO:case RO:return new r(t);case IO:return BO(t);case LO:return new r;case _O:return OO(t)}}function H2(t){return typeof t.constructor=="function"&&!l0(t)?oB(g0(t)):{}}var QO="[object Map]";function ZO(t){return Si(t)&&Lr(t)==QO}var Jv=Qa&&Qa.isMap,e6=Jv?u0(Jv):ZO,t6="[object Set]";function n6(t){return Si(t)&&Lr(t)==t6}var Gv=Qa&&Qa.isSet,r6=Gv?u0(Gv):n6,i6=1,s6=2,z2="[object Arguments]",o6="[object Array]",a6="[object Boolean]",l6="[object Date]",u6="[object Error]",K2="[object Function]",c6="[object GeneratorFunction]",f6="[object Map]",d6="[object Number]",U2="[object Object]",h6="[object RegExp]",p6="[object Set]",m6="[object String]",g6="[object Symbol]",y6="[object WeakMap]",v6="[object ArrayBuffer]",D6="[object DataView]",b6="[object Float32Array]",C6="[object Float64Array]",x6="[object Int8Array]",E6="[object Int16Array]",F6="[object Int32Array]",w6="[object Uint8Array]",S6="[object Uint8ClampedArray]",A6="[object Uint16Array]",T6="[object Uint32Array]",vt={};vt[z2]=vt[o6]=vt[v6]=vt[D6]=vt[a6]=vt[l6]=vt[b6]=vt[C6]=vt[x6]=vt[E6]=vt[F6]=vt[f6]=vt[d6]=vt[U2]=vt[h6]=vt[p6]=vt[m6]=vt[g6]=vt[w6]=vt[S6]=vt[A6]=vt[T6]=true;vt[u6]=vt[K2]=vt[y6]=false;function If(t,e,n,r,i,s){var o,a=e&i6,l=e&s6;if(o!==void 0)return o;if(!Gn(t))return t;var u=$n(t);if(u)return o=AO(t),k2(t,o);var c=Lr(t),f=c==K2||c==c6;if(Mu(t))return j2(t,a);if(c==U2||c==z2||f&&!i)return o=f?{}:H2(t),l?yO(t,uO(o,t)):pO(t,lO(o,t));if(!vt[c])return i?t:{};o=YO(t,c,a),s||(s=new Kr);var d=s.get(t);if(d)return d;s.set(t,o),r6(t)?t.forEach(function(m){o.add(If(m,e,n,m,t,s));}):e6(t)&&t.forEach(function(m,g){o.set(g,If(m,e,n,g,t,s));});var h=Qp,p=u?void 0:h(t);return pB(p||t,function(m,g){p&&(g=m,m=t[g]),o0(o,g,If(m,e,n,g,t,s));}),o}var k6=4;function Xv(t){return If(t,k6)}var B6="__lodash_hash_undefined__";function O6(t){return this.__data__.set(t,B6),this}function $6(t){return this.__data__.has(t)}function cd(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new us;++e<n;)this.add(t[e]);}cd.prototype.add=cd.prototype.push=O6;cd.prototype.has=$6;function M6(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return  true;return  false}function P6(t,e){return t.has(e)}var N6=1,I6=2;function J2(t,e,n,r,i,s){var o=n&N6,a=t.length,l=e.length;if(a!=l&&!(o&&l>a))return  false;var u=s.get(t),c=s.get(e);if(u&&c)return u==e&&c==t;var f=-1,d=true,h=n&I6?new cd:void 0;for(s.set(t,e),s.set(e,t);++f<a;){var p=t[f],m=e[f];if(r)var g=o?r(m,p,f,e,t,s):r(p,m,f,t,e,s);if(g!==void 0){if(g)continue;d=false;break}if(h){if(!M6(e,function(y,F){if(!P6(h,F)&&(p===y||i(p,y,n,r,s)))return h.push(F)})){d=false;break}}else if(!(p===m||i(p,m,n,r,s))){d=false;break}}return s.delete(t),s.delete(e),d}function L6(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r];}),n}function R6(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r;}),n}var _6=1,j6=2,V6="[object Boolean]",q6="[object Date]",W6="[object Error]",H6="[object Map]",z6="[object Number]",K6="[object RegExp]",U6="[object Set]",J6="[object String]",G6="[object Symbol]",X6="[object ArrayBuffer]",Y6="[object DataView]",Yv=xr?xr.prototype:void 0,Uh=Yv?Yv.valueOf:void 0;function Q6(t,e,n,r,i,s,o){switch(n){case Y6:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return  false;t=t.buffer,e=e.buffer;case X6:return !(t.byteLength!=e.byteLength||!s(new ud(t),new ud(e)));case V6:case q6:case z6:return pc(+t,+e);case W6:return t.name==e.name&&t.message==e.message;case K6:case J6:return t==e+"";case H6:var a=L6;case U6:var l=r&_6;if(a||(a=R6),t.size!=e.size&&!l)return  false;var u=o.get(t);if(u)return u==e;r|=j6,o.set(t,e);var c=J2(a(t),a(e),r,i,s,o);return o.delete(t),c;case G6:if(Uh)return Uh.call(t)==Uh.call(e)}return  false}var Z6=1,e$=Object.prototype,t$=e$.hasOwnProperty;function n$(t,e,n,r,i,s){var o=n&Z6,a=Qp(t),l=a.length,u=Qp(e),c=u.length;if(l!=c&&!o)return  false;for(var f=l;f--;){var d=a[f];if(!(o?d in e:t$.call(e,d)))return  false}var h=s.get(t),p=s.get(e);if(h&&p)return h==e&&p==t;var m=true;s.set(t,e),s.set(e,t);for(var g=o;++f<l;){d=a[f];var y=t[d],F=e[d];if(r)var x=o?r(F,y,d,e,t,s):r(y,F,d,t,e,s);if(!(x===void 0?y===F||i(y,F,n,r,s):x)){m=false;break}g||(g=d=="constructor");}if(m&&!g){var b=t.constructor,D=e.constructor;b!=D&&"constructor"in t&&"constructor"in e&&!(typeof b=="function"&&b instanceof b&&typeof D=="function"&&D instanceof D)&&(m=false);}return s.delete(t),s.delete(e),m}var r$=1,Qv="[object Arguments]",Zv="[object Array]",zc="[object Object]",i$=Object.prototype,eD=i$.hasOwnProperty;function s$(t,e,n,r,i,s){var o=$n(t),a=$n(e),l=o?Zv:Lr(t),u=a?Zv:Lr(e);l=l==Qv?zc:l,u=u==Qv?zc:u;var c=l==zc,f=u==zc,d=l==u;if(d&&Mu(t)){if(!Mu(e))return  false;o=true,c=false;}if(d&&!c)return s||(s=new Kr),o||c0(t)?J2(t,e,n,r,i,s):Q6(t,e,l,n,r,i,s);if(!(n&r$)){var h=c&&eD.call(t,"__wrapped__"),p=f&&eD.call(e,"__wrapped__");if(h||p){var m=h?t.value():t,g=p?e.value():e;return s||(s=new Kr),i(m,g,n,r,s)}}return d?(s||(s=new Kr),n$(t,e,n,r,i,s)):false}function ih(t,e,n,r,i){return t===e?true:t==null||e==null||!Si(t)&&!Si(e)?t!==t&&e!==e:s$(t,e,n,r,ih,i)}var o$=1,a$=2;function l$(t,e,n,r){var i=n.length,s=i;if(t==null)return !s;for(t=Object(t);i--;){var o=n[i];if(o[2]?o[1]!==t[o[0]]:!(o[0]in t))return  false}for(;++i<s;){o=n[i];var a=o[0],l=t[a],u=o[1];if(o[2]){if(l===void 0&&!(a in t))return  false}else {var c=new Kr,f;if(!(f===void 0?ih(u,l,o$|a$,r,c):f))return  false}}return  true}function G2(t){return t===t&&!Gn(t)}function u$(t){for(var e=eh(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,G2(i)];}return e}function X2(t,e){return function(n){return n==null?false:n[t]===e&&(e!==void 0||t in Object(n))}}function c$(t){var e=u$(t);return e.length==1&&e[0][2]?X2(e[0][0],e[0][1]):function(n){return n===t||l$(n,t,e)}}function f$(t,e){return t!=null&&e in Object(t)}function d$(t,e,n){e=rh(e,t);for(var r=-1,i=e.length,s=false;++r<i;){var o=gc(e[r]);if(!(s=t!=null&&n(t,o)))break;t=t[o];}return s||++r!=i?s:(i=t==null?0:t.length,!!i&&a0(i)&&Zd(o,i)&&($n(t)||$u(t)))}function Y2(t,e){return t!=null&&d$(t,e,f$)}var h$=1,p$=2;function m$(t,e){return d0(t)&&G2(e)?X2(gc(t),e):function(n){var r=Vr(n,t);return r===void 0&&r===e?Y2(n,t):ih(e,r,h$|p$)}}function g$(t){return function(e){return e==null?void 0:e[t]}}function y$(t){return function(e){return p0(e,t)}}function v$(t){return d0(t)?g$(gc(t)):y$(t)}function Q2(t){return typeof t=="function"?t:t==null?r0:typeof t=="object"?$n(t)?m$(t[0],t[1]):c$(t):v$(t)}function D$(t){return function(e,n,r){for(var i=-1,s=Object(e),o=r(e),a=o.length;a--;){var l=o[++i];if(n(s[l],l,s)===false)break}return e}}var Z2=D$();function b$(t,e){return t&&Z2(t,e,eh)}function C$(t,e){return function(n,r){if(n==null)return n;if(!wl(n))return t(n,r);for(var i=n.length,s=-1,o=Object(n);++s<i&&r(o[s],s,o)!==false;);return n}}var x$=C$(b$),Jh=function(){return ti.Date.now()},E$="Expected a function",F$=Math.max,w$=Math.min;function Iu(t,e,n){var r,i,s,o,a,l,u=0,c=false,f=false,d=true;if(typeof t!="function")throw new TypeError(E$);e=Tv(e)||0,Gn(n)&&(c=!!n.leading,f="maxWait"in n,s=f?F$(Tv(n.maxWait)||0,e):s,d="trailing"in n?!!n.trailing:d);function h(C){var E=r,S=i;return r=i=void 0,u=C,o=t.apply(S,E),o}function p(C){return u=C,a=setTimeout(y,e),c?h(C):o}function m(C){var E=C-l,S=C-u,A=e-E;return f?w$(A,s-S):A}function g(C){var E=C-l,S=C-u;return l===void 0||E>=e||E<0||f&&S>=s}function y(){var C=Jh();if(g(C))return F(C);a=setTimeout(y,m(C));}function F(C){return a=void 0,d&&r?h(C):(r=i=void 0,o)}function x(){a!==void 0&&clearTimeout(a),u=0,r=l=i=a=void 0;}function b(){return a===void 0?o:F(Jh())}function D(){var C=Jh(),E=g(C);if(r=arguments,i=this,l=C,E){if(a===void 0)return p(l);if(f)return clearTimeout(a),a=setTimeout(y,e),h(l)}return a===void 0&&(a=setTimeout(y,e)),o}return D.cancel=x,D.flush=b,D}function nm(t,e,n){(n!==void 0&&!pc(t[e],n)||n===void 0&&!(e in t))&&s0(t,e,n);}function S$(t){return Si(t)&&wl(t)}function rm(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function A$(t){return mc(t,f0(t))}function T$(t,e,n,r,i,s,o){var a=rm(t,n),l=rm(e,n),u=o.get(l);if(u){nm(t,n,u);return}var c=s?s(a,l,n+"",t,e,o):void 0,f=c===void 0;if(f){var d=$n(l),h=!d&&Mu(l),p=!d&&!h&&c0(l);c=l,d||h||p?$n(a)?c=a:S$(a)?c=k2(a):h?(f=false,c=j2(l,true)):p?(f=false,c=W2(l,true)):c=[]:tO(l)||$u(l)?(c=a,$u(a)?c=A$(a):(!Gn(a)||i0(a))&&(c=H2(l))):f=false;}f&&(o.set(l,c),i(c,l,r,s,o),o.delete(l)),nm(t,n,c);}function ex(t,e,n,r,i){t!==e&&Z2(e,function(s,o){if(i||(i=new Kr),Gn(s))T$(t,e,o,n,ex,r,i);else {var a=r?r(rm(t,o),s,o+"",t,e,i):void 0;a===void 0&&(a=s),nm(t,o,a);}},f0);}function k$(t,e,n){var r=t==null?0:t.length;if(!r)return  -1;var i=r-1;return mB(t,Q2(e),i)}function B$(t,e){var n=-1,r=wl(t)?Array(t.length):[];return x$(t,function(i,s,o){r[++n]=e(i,s,o);}),r}function O$(t,e){var n=$n(t)?A2:B$;return n(t,Q2(e))}function $$(t,e){return L2(O$(t,e))}function fd(t){for(var e=-1,n=t==null?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1];}return r}function qa(t,e){return ih(t,e)}function yc(t){return t==null}function vc(t){return t===null}function tx(t){return t===void 0}var nx=EB(function(t,e,n){ex(t,e,n);});function rx(t,e,n,r){if(!Gn(t))return t;e=rh(e,t);for(var i=-1,s=e.length,o=s-1,a=t;a!=null&&++i<s;){var l=gc(e[i]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(i!=o){var c=a[l];u=void 0,u===void 0&&(u=Gn(c)?c:Zd(e[i+1])?[]:{});}o0(a,l,u),a=a[l];}return t}function M$(t,e,n){for(var r=-1,i=e.length,s={};++r<i;){var o=e[r],a=p0(t,o);n(a,o)&&rx(s,rh(o,t),a);}return s}function P$(t,e){return M$(t,e,function(n,r){return Y2(t,r)})}var ix=G3(function(t,e){return t==null?{}:P$(t,e)});function N$(t,e,n){return t==null?t:rx(t,e,n)}const Xt=t=>t===void 0,St=t=>typeof t=="boolean",ot=t=>typeof t=="number",vr=t=>typeof Element>"u"?false:t instanceof Element,Gi=t=>yc(t),I$=t=>He(t)?!Number.isNaN(Number(t)):false;var L$=Object.defineProperty,R$=Object.defineProperties,_$=Object.getOwnPropertyDescriptors,tD=Object.getOwnPropertySymbols,j$=Object.prototype.hasOwnProperty,V$=Object.prototype.propertyIsEnumerable,nD=(t,e,n)=>e in t?L$(t,e,{enumerable:true,configurable:true,writable:true,value:n}):t[e]=n,q$=(t,e)=>{for(var n in e||(e={}))j$.call(e,n)&&nD(t,n,e[n]);if(tD)for(var n of tD(e))V$.call(e,n)&&nD(t,n,e[n]);return t},W$=(t,e)=>R$(t,_$(e));function sx(t,e){var n;const r=shallowRef();return watchEffect(()=>{r.value=t();},W$(q$({},e),{flush:(n=void 0)!=null?n:"sync"})),readonly(r)}var rD;const at=typeof window<"u",H$=t=>typeof t=="string",dd=()=>{},im=at&&((rD=window==null?void 0:window.navigator)==null?void 0:rD.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Lu(t){return typeof t=="function"?t():unref(t)}function z$(t,e){function n(...r){return new Promise((i,s)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(i).catch(s);})}return n}function K$(t,e={}){let n,r,i=dd;const s=a=>{clearTimeout(a),i(),i=dd;};return a=>{const l=Lu(t),u=Lu(e.maxWait);return n&&s(n),l<=0||u!==void 0&&u<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((c,f)=>{i=e.rejectOnCancel?f:c,u&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,c(a());},u)),n=setTimeout(()=>{r&&s(r),r=null,c(a());},l);})}}function U$(t){return t}function Dc(t){return getCurrentScope()?(onScopeDispose(t),true):false}function J$(t,e=200,n={}){return z$(K$(e,n),t)}function G$(t,e=200,n={}){const r=ref(t.value),i=J$(()=>{r.value=t.value;},e,n);return watch(t,()=>i()),r}function X$(t,e=true){getCurrentInstance()?onMounted(t):e?t():nextTick(t);}function sm(t,e,n={}){const{immediate:r=true}=n,i=ref(false);let s=null;function o(){s&&(clearTimeout(s),s=null);}function a(){i.value=false,o();}function l(...u){o(),i.value=true,s=setTimeout(()=>{i.value=false,s=null,t(...u);},Lu(e));}return r&&(i.value=true,at&&l()),Dc(a),{isPending:readonly(i),start:l,stop:a}}function Ui(t){var e;const n=Lu(t);return (e=n==null?void 0:n.$el)!=null?e:n}const sh=at?window:void 0;function Dr(...t){let e,n,r,i;if(H$(t[0])||Array.isArray(t[0])?([n,r,i]=t,e=sh):[e,n,r,i]=t,!e)return dd;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],o=()=>{s.forEach(c=>c()),s.length=0;},a=(c,f,d,h)=>(c.addEventListener(f,d,h),()=>c.removeEventListener(f,d,h)),l=watch(()=>[Ui(e),Lu(i)],([c,f])=>{o(),c&&s.push(...n.flatMap(d=>r.map(h=>a(c,d,h,f))));},{immediate:true,flush:"post"}),u=()=>{l(),o();};return Dc(u),u}let iD=false;function Y$(t,e,n={}){const{window:r=sh,ignore:i=[],capture:s=true,detectIframe:o=false}=n;if(!r)return;im&&!iD&&(iD=true,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",dd)));let a=true;const l=d=>i.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(p=>p===d.target||d.composedPath().includes(p));{const p=Ui(h);return p&&(d.target===p||d.composedPath().includes(p))}}),c=[Dr(r,"click",d=>{const h=Ui(t);if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(a=!l(d)),!a){a=true;return}e(d);}},{passive:true,capture:s}),Dr(r,"pointerdown",d=>{const h=Ui(t);h&&(a=!d.composedPath().includes(h)&&!l(d));},{passive:true}),o&&Dr(r,"blur",d=>{var h;const p=Ui(t);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&e(d);})].filter(Boolean);return ()=>c.forEach(d=>d())}function ox(t,e=false){const n=ref(),r=()=>n.value=!!t();return r(),X$(r,e),n}const sD=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},oD="__vueuse_ssr_handlers__";sD[oD]=sD[oD]||{};var aD=Object.getOwnPropertySymbols,Q$=Object.prototype.hasOwnProperty,Z$=Object.prototype.propertyIsEnumerable,eM=(t,e)=>{var n={};for(var r in t)Q$.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&aD)for(var r of aD(t))e.indexOf(r)<0&&Z$.call(t,r)&&(n[r]=t[r]);return n};function or(t,e,n={}){const r=n,{window:i=sh}=r,s=eM(r,["window"]);let o;const a=ox(()=>i&&"ResizeObserver"in i),l=()=>{o&&(o.disconnect(),o=void 0);},u=watch(()=>Ui(t),f=>{l(),a.value&&i&&f&&(o=new ResizeObserver(e),o.observe(f,s));},{immediate:true,flush:"post"}),c=()=>{l(),u();};return Dc(c),{isSupported:a,stop:c}}var lD=Object.getOwnPropertySymbols,tM=Object.prototype.hasOwnProperty,nM=Object.prototype.propertyIsEnumerable,rM=(t,e)=>{var n={};for(var r in t)tM.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&lD)for(var r of lD(t))e.indexOf(r)<0&&nM.call(t,r)&&(n[r]=t[r]);return n};function iM(t,e,n={}){const r=n,{window:i=sh}=r,s=rM(r,["window"]);let o;const a=ox(()=>i&&"MutationObserver"in i),l=()=>{o&&(o.disconnect(),o=void 0);},u=watch(()=>Ui(t),f=>{l(),a.value&&i&&f&&(o=new MutationObserver(e),o.observe(f,s));},{immediate:true}),c=()=>{l(),u();};return Dc(c),{isSupported:a,stop:c}}var uD;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE";})(uD||(uD={}));var sM=Object.defineProperty,cD=Object.getOwnPropertySymbols,oM=Object.prototype.hasOwnProperty,aM=Object.prototype.propertyIsEnumerable,fD=(t,e,n)=>e in t?sM(t,e,{enumerable:true,configurable:true,writable:true,value:n}):t[e]=n,lM=(t,e)=>{for(var n in e||(e={}))oM.call(e,n)&&fD(t,n,e[n]);if(cD)for(var n of cD(e))aM.call(e,n)&&fD(t,n,e[n]);return t};const uM={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-0.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-0.6,.32,1.6]};lM({linear:U$},uM);class cM extends Error{constructor(e){super(e),this.name="ElementPlusError";}}function Sl(t,e){throw new cM(`[${t}] ${e}`)}const dD={current:0},hD=ref(0),ax=2e3,pD=Symbol("elZIndexContextKey"),lx=Symbol("zIndexContextKey"),v0=t=>{const e=getCurrentInstance()?inject(pD,dD):dD,n=t||(getCurrentInstance()?inject(lx,void 0):void 0),r=computed(()=>{const o=unref(n);return ot(o)?o:ax}),i=computed(()=>r.value+hD.value),s=()=>(e.current++,hD.value=e.current,i.value);return !at&&inject(pD),{initialZIndex:r,currentZIndex:i,nextZIndex:s}};var fM={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const dM=t=>(e,n)=>hM(e,n,unref(t)),hM=(t,e,n)=>Vr(n,t,t).replace(/\{(\w+)\}/g,(r,i)=>{var s;return `${(s=e==null?void 0:e[i])!=null?s:`{${i}}`}`}),pM=t=>{const e=computed(()=>unref(t).name),n=isRef(t)?t:ref(t);return {lang:e,locale:n,t:dM(t)}},ux=Symbol("localeContextKey"),bc=t=>{const e=t||inject(ux,ref());return pM(computed(()=>e.value||fM))},cx="__epPropKey",Ce=t=>t,mM=t=>At(t)&&!!t[cx],oh=(t,e)=>{if(!At(t)||mM(t))return t;const{values:n,required:r,default:i,type:s,validator:o}=t,l={type:s,required:!!r,validator:n||o?u=>{let c=false,f=[];if(n&&(f=Array.from(n),Qi(t,"default")&&f.push(i),c||(c=f.includes(u))),o&&(c||(c=o(u))),!c&&f.length>0){const d=[...new Set(f)].map(h=>JSON.stringify(h)).join(", ");warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`);}return c}:void 0,[cx]:true};return Qi(t,"default")&&(l.default=i),l},ze=t=>fd(Object.entries(t).map(([e,n])=>[e,oh(n,e)])),Cc=["","default","small","large"],cs=oh({type:String,values:Cc,required:false}),fx=Symbol("size"),gM=()=>{const t=inject(fx,{});return computed(()=>unref(t.size)||"")},dx=Symbol("emptyValuesContextKey"),yM=["",void 0,null],vM=void 0,hx=ze({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:t=>Le(t)?!t():!t}}),DM=(t,e)=>{const n=getCurrentInstance()?inject(dx,ref({})):ref({}),r=computed(()=>t.emptyValues||n.value.emptyValues||yM),i=computed(()=>Le(t.valueOnClear)?t.valueOnClear():t.valueOnClear!==void 0?t.valueOnClear:Le(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:vM),s=o=>r.value.includes(o);return r.value.includes(i.value),{emptyValues:r,valueOnClear:i,isEmptyValue:s}},mD=t=>Object.keys(t),hu=(t,e,n)=>({get value(){return Vr(t,e,n)},set value(r){N$(t,e,r);}}),hd=ref();function ah(t,e=void 0){const n=getCurrentInstance()?inject(x2,hd):hd;return t?computed(()=>{var r,i;return (i=(r=n.value)==null?void 0:r[t])!=null?i:e}):n}function D0(t,e){const n=ah(),r=we(t,computed(()=>{var a;return ((a=n.value)==null?void 0:a.namespace)||fu})),i=bc(computed(()=>{var a;return (a=n.value)==null?void 0:a.locale})),s=v0(computed(()=>{var a;return ((a=n.value)==null?void 0:a.zIndex)||ax})),o=computed(()=>{var a;return unref(e)||((a=n.value)==null?void 0:a.size)||""});return px(computed(()=>unref(n)||{})),{ns:r,locale:i,zIndex:s,size:o}}const px=(t,e,n=false)=>{var r;const i=!!getCurrentInstance(),s=i?ah():void 0,o=(r=void 0)!=null?r:i?provide:void 0;if(!o)return;const a=computed(()=>{const l=unref(t);return s!=null&&s.value?bM(s.value,l):l});return o(x2,a),o(ux,computed(()=>a.value.locale)),o(E2,computed(()=>a.value.namespace)),o(lx,computed(()=>a.value.zIndex)),o(fx,{size:computed(()=>a.value.size||"")}),o(dx,computed(()=>({emptyValues:a.value.emptyValues,valueOnClear:a.value.valueOnClear}))),(n||!hd.value)&&(hd.value=a.value),a},bM=(t,e)=>{const n=[...new Set([...mD(t),...mD(e)])],r={};for(const i of n)r[i]=e[i]!==void 0?e[i]:t[i];return r},Lt="update:modelValue",fr="change",Ru="input";var Re=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};const CM=t=>at?window.requestAnimationFrame(t):setTimeout(t,16),mx=(t="")=>t.split(" ").filter(e=>!!e.trim()),$o=(t,e)=>{if(!t||!e)return  false;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList.contains(e)},zo=(t,e)=>{!t||!e.trim()||t.classList.add(...mx(e));},Ai=(t,e)=>{!t||!e.trim()||t.classList.remove(...mx(e));},Sa=(t,e)=>{var n;if(!at||!t||!e)return "";let r=E8(e);r==="float"&&(r="cssFloat");try{const i=t.style[r];if(i)return i;const s=(n=document.defaultView)==null?void 0:n.getComputedStyle(t,"");return s?s[r]:""}catch{return t.style[r]}};function Jr(t,e="px"){if(!t)return "";if(ot(t)||I$(t))return `${t}${e}`;if(He(t))return t}let Kc;const xM=t=>{var e;if(!at)return 0;if(Kc!==void 0)return Kc;const n=document.createElement("div");n.className=`${t}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const s=i.offsetWidth;return (e=n.parentNode)==null||e.removeChild(n),Kc=r-s,Kc};function EM(t,e){if(!at)return;if(!e){t.scrollTop=0;return}const n=[];let r=e.offsetParent;for(;r!==null&&t!==r&&t.contains(r);)n.push(r),r=r.offsetParent;const i=e.offsetTop+n.reduce((l,u)=>l+u.offsetTop,0),s=i+e.offsetHeight,o=t.scrollTop,a=o+t.clientHeight;i<o?t.scrollTop=i:s>a&&(t.scrollTop=s-t.clientHeight);}const Dn=(t,e)=>{if(t.install=n=>{for(const r of [t,...Object.values(e??{})])n.component(r.name,r);},e)for(const[n,r]of Object.entries(e))t[n]=r;return t},FM=(t,e)=>(t.install=n=>{t._context=n._context,n.config.globalProperties[e]=t;},t),fs=t=>(t.install=Ks,t),wM=ze({size:{type:Ce([Number,String])},color:{type:String}}),SM=defineComponent({name:"ElIcon",inheritAttrs:false}),AM=defineComponent({...SM,props:wM,setup(t){const e=t,n=we("icon"),r=computed(()=>{const{size:i,color:s}=e;return !i&&!s?{}:{fontSize:Xt(i)?void 0:Jr(i),"--color":s}});return (i,s)=>(openBlock(),createElementBlock("i",mergeProps({class:unref(n).b(),style:unref(r)},i.$attrs),[renderSlot(i.$slots,"default")],16))}});var TM=Re(AM,[["__file","icon.vue"]]);const Ot=Dn(TM);/*! Element Plus Icons Vue v2.3.1 */var kM=defineComponent({name:"ArrowDown",__name:"arrow-down",setup(t){return (e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),gx=kM,BM=defineComponent({name:"ArrowRight",__name:"arrow-right",setup(t){return (e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),yx=BM,OM=defineComponent({name:"ArrowUp",__name:"arrow-up",setup(t){return (e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),$M=OM,MM=defineComponent({name:"CircleCheck",__name:"circle-check",setup(t){return (e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),PM=MM,NM=defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return (e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),vx=NM,IM=defineComponent({name:"CircleClose",__name:"circle-close",setup(t){return (e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),b0=IM,LM=defineComponent({name:"Close",__name:"close",setup(t){return (e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),pd=LM,RM=defineComponent({name:"Hide",__name:"hide",setup(t){return (e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),_M=RM,jM=defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return (e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),om=jM,VM=defineComponent({name:"Loading",__name:"loading",setup(t){return (e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),Za=VM,qM=defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return (e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Dx=qM,WM=defineComponent({name:"View",__name:"view",setup(t){return (e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),HM=WM,zM=defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return (e,n)=>(openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),bx=zM;const pr=Ce([String,Object,Function]),KM={Close:pd},Cx={Close:pd,SuccessFilled:Dx,InfoFilled:om,WarningFilled:bx,CircleCloseFilled:vx},md={primary:om,success:Dx,warning:bx,error:vx,info:om},xx={validating:Za,success:PM,error:b0},UM=()=>at&&/firefox/i.test(window.navigator.userAgent);let Pn;const JM={height:"0",visibility:"hidden",overflow:UM()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},GM=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function XM(t){const e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),r=Number.parseFloat(e.getPropertyValue("padding-bottom"))+Number.parseFloat(e.getPropertyValue("padding-top")),i=Number.parseFloat(e.getPropertyValue("border-bottom-width"))+Number.parseFloat(e.getPropertyValue("border-top-width"));return {contextStyle:GM.map(o=>[o,e.getPropertyValue(o)]),paddingSize:r,borderSize:i,boxSizing:n}}function gD(t,e=1,n){var r;Pn||(Pn=document.createElement("textarea"),document.body.appendChild(Pn));const{paddingSize:i,borderSize:s,boxSizing:o,contextStyle:a}=XM(t);a.forEach(([f,d])=>Pn==null?void 0:Pn.style.setProperty(f,d)),Object.entries(JM).forEach(([f,d])=>Pn==null?void 0:Pn.style.setProperty(f,d,"important")),Pn.value=t.value||t.placeholder||"";let l=Pn.scrollHeight;const u={};o==="border-box"?l=l+s:o==="content-box"&&(l=l-i),Pn.value="";const c=Pn.scrollHeight-i;if(ot(e)){let f=c*e;o==="border-box"&&(f=f+i+s),l=Math.max(f,l),u.minHeight=`${f}px`;}if(ot(n)){let f=c*n;o==="border-box"&&(f=f+i+s),l=Math.min(f,l);}return u.height=`${l}px`,(r=Pn.parentNode)==null||r.removeChild(Pn),Pn=void 0,u}const Ex=t=>t,YM=ze({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ds=t=>ix(YM,t),QM=ze({id:{type:String,default:void 0},size:cs,disabled:Boolean,modelValue:{type:Ce([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Ce([Boolean,Object]),default:false},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:pr},prefixIcon:{type:pr},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:true},inputStyle:{type:Ce([Object,Array,String]),default:()=>Ex({})},autofocus:Boolean,rows:{type:Number,default:2},...ds(["ariaLabel"])}),ZM={[Lt]:t=>He(t),input:t=>He(t),change:t=>He(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>true,mouseleave:t=>t instanceof MouseEvent,mouseenter:t=>t instanceof MouseEvent,keydown:t=>t instanceof Event,compositionstart:t=>t instanceof CompositionEvent,compositionupdate:t=>t instanceof CompositionEvent,compositionend:t=>t instanceof CompositionEvent},eP=["class","style"],tP=/^on[A-Z]/,nP=(t={})=>{const{excludeListeners:e=false,excludeKeys:n}=t,r=computed(()=>((n==null?void 0:n.value)||[]).concat(eP)),i=getCurrentInstance();return i?computed(()=>{var s;return fd(Object.entries((s=i.proxy)==null?void 0:s.$attrs).filter(([o])=>!r.value.includes(o)&&!(e&&tP.test(o))))}):computed(()=>({}))},Al=Symbol("formContextKey"),Ko=Symbol("formItemContextKey"),yD={prefix:Math.floor(Math.random()*1e4),current:0},rP=Symbol("elIdInjection"),Fx=()=>getCurrentInstance()?inject(rP,yD):yD,Ti=t=>{const e=Fx(),n=n0();return sx(()=>unref(t)||`${n.value}-id-${e.prefix}-${e.current++}`)},co=()=>{const t=inject(Al,void 0),e=inject(Ko,void 0);return {form:t,formItem:e}},Tl=(t,{formItemContext:e,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=ref(false)),r||(r=ref(false));const i=ref();let s;const o=computed(()=>{var a;return !!(!(t.label||t.ariaLabel)&&e&&e.inputIds&&((a=e.inputIds)==null?void 0:a.length)<=1)});return onMounted(()=>{s=watch([toRef(t,"id"),n],([a,l])=>{const u=a??(l?void 0:Ti().value);u!==i.value&&(e!=null&&e.removeInputId&&(i.value&&e.removeInputId(i.value),!(r!=null&&r.value)&&!l&&u&&e.addInputId(u)),i.value=u);},{immediate:true});}),onUnmounted(()=>{s&&s(),e!=null&&e.removeInputId&&i.value&&e.removeInputId(i.value);}),{isLabeledByFormItem:o,inputId:i}},C0=t=>{const e=getCurrentInstance();return computed(()=>{var n,r;return (r=(n=e==null?void 0:e.proxy)==null?void 0:n.$props)==null?void 0:r[t]})},Gr=(t,e={})=>{const n=ref(void 0),r=e.prop?n:C0("size"),i=e.global?n:gM(),s=e.form?{size:void 0}:inject(Al,void 0),o=e.formItem?{size:void 0}:inject(Ko,void 0);return computed(()=>r.value||unref(t)||(o==null?void 0:o.size)||(s==null?void 0:s.size)||i.value||"")},kl=t=>{const e=C0("disabled"),n=inject(Al,void 0);return computed(()=>e.value||unref(t)||(n==null?void 0:n.disabled)||false)};function wx(t,{beforeFocus:e,afterFocus:n,beforeBlur:r,afterBlur:i}={}){const s=getCurrentInstance(),{emit:o}=s,a=shallowRef(),l=C0("disabled"),u=ref(false),c=h=>{Le(e)&&e(h)||u.value||(u.value=true,o("focus",h),n==null||n());},f=h=>{var p;Le(r)&&r(h)||h.relatedTarget&&((p=a.value)!=null&&p.contains(h.relatedTarget))||(u.value=false,o("blur",h),i==null||i());},d=()=>{var h,p;(h=a.value)!=null&&h.contains(document.activeElement)&&a.value!==document.activeElement||l.value||(p=t.value)==null||p.focus();};return watch([a,l],([h,p])=>{h&&(p?h.removeAttribute("tabindex"):h.setAttribute("tabindex","-1"));}),Dr(a,"focus",c,true),Dr(a,"blur",f,true),Dr(a,"click",d,true),{isFocused:u,wrapperRef:a,handleFocus:c,handleBlur:f}}const iP=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t);function Sx({afterComposition:t,emit:e}){const n=ref(false),r=a=>{e==null||e("compositionstart",a),n.value=true;},i=a=>{var l;e==null||e("compositionupdate",a);const u=(l=a.target)==null?void 0:l.value,c=u[u.length-1]||"";n.value=!iP(c);},s=a=>{e==null||e("compositionend",a),n.value&&(n.value=false,nextTick(()=>t(a)));};return {isComposing:n,handleComposition:a=>{a.type==="compositionend"?s(a):i(a);},handleCompositionStart:r,handleCompositionUpdate:i,handleCompositionEnd:s}}function sP(t){let e;function n(){if(t.value==null)return;const{selectionStart:i,selectionEnd:s,value:o}=t.value;if(i==null||s==null)return;const a=o.slice(0,Math.max(0,i)),l=o.slice(Math.max(0,s));e={selectionStart:i,selectionEnd:s,value:o,beforeTxt:a,afterTxt:l};}function r(){if(t.value==null||e==null)return;const{value:i}=t.value,{beforeTxt:s,afterTxt:o,selectionStart:a}=e;if(s==null||o==null||a==null)return;let l=i.length;if(i.endsWith(o))l=i.length-o.length;else if(i.startsWith(s))l=s.length;else {const u=s[a-1],c=i.indexOf(u,a-1);c!==-1&&(l=c+1);}t.value.setSelectionRange(l,l);}return [n,r]}const oP="ElInput",aP=defineComponent({name:oP,inheritAttrs:false}),lP=defineComponent({...aP,props:QM,emits:ZM,setup(t,{expose:e,emit:n}){const r=t,i=useAttrs(),s=nP(),o=useSlots(),a=computed(()=>[r.type==="textarea"?m.b():p.b(),p.m(d.value),p.is("disabled",h.value),p.is("exceed",ye.value),{[p.b("group")]:o.prepend||o.append,[p.m("prefix")]:o.prefix||r.prefixIcon,[p.m("suffix")]:o.suffix||r.suffixIcon||r.clearable||r.showPassword,[p.bm("suffix","password-clear")]:R.value&&L.value,[p.b("hidden")]:r.type==="hidden"},i.class]),l=computed(()=>[p.e("wrapper"),p.is("focus",S.value)]),{form:u,formItem:c}=co(),{inputId:f}=Tl(r,{formItemContext:c}),d=Gr(),h=kl(),p=we("input"),m=we("textarea"),g=shallowRef(),y=shallowRef(),F=ref(false),x=ref(false),b=ref(),D=shallowRef(r.inputStyle),C=computed(()=>g.value||y.value),{wrapperRef:E,isFocused:S,handleFocus:A,handleBlur:M}=wx(C,{beforeFocus(){return h.value},afterBlur(){var re;r.validateEvent&&((re=c==null?void 0:c.validate)==null||re.call(c,"blur").catch(Ke=>void 0));}}),k=computed(()=>{var re;return (re=u==null?void 0:u.statusIcon)!=null?re:false}),N=computed(()=>(c==null?void 0:c.validateState)||""),O=computed(()=>N.value&&xx[N.value]),T=computed(()=>x.value?HM:_M),I=computed(()=>[i.style]),j=computed(()=>[r.inputStyle,D.value,{resize:r.resize}]),_=computed(()=>yc(r.modelValue)?"":String(r.modelValue)),R=computed(()=>r.clearable&&!h.value&&!r.readonly&&!!_.value&&(S.value||F.value)),L=computed(()=>r.showPassword&&!h.value&&!!_.value),G=computed(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!h.value&&!r.readonly&&!r.showPassword),me=computed(()=>_.value.length),ye=computed(()=>!!G.value&&me.value>Number(r.maxlength)),ve=computed(()=>!!o.suffix||!!r.suffixIcon||R.value||r.showPassword||G.value||!!N.value&&k.value),[Se,Fe]=sP(g);or(y,re=>{if(ne(),!G.value||r.resize!=="both")return;const Ke=re[0],{width:Mn}=Ke.contentRect;b.value={right:`calc(100% - ${Mn+15+6}px)`};});const Ge=()=>{const{type:re,autosize:Ke}=r;if(!(!at||re!=="textarea"||!y.value))if(Ke){const Mn=At(Ke)?Ke.minRows:void 0,oi=At(Ke)?Ke.maxRows:void 0,ai=gD(y.value,Mn,oi);D.value={overflowY:"hidden",...ai},nextTick(()=>{y.value.offsetHeight,D.value=ai;});}else D.value={minHeight:gD(y.value).minHeight};},ne=(re=>{let Ke=false;return ()=>{var Mn;if(Ke||!r.autosize)return;((Mn=y.value)==null?void 0:Mn.offsetParent)===null||(re(),Ke=true);}})(Ge),be=()=>{const re=C.value,Ke=r.formatter?r.formatter(_.value):_.value;!re||re.value===Ke||(re.value=Ke);},Ze=async re=>{Se();let{value:Ke}=re.target;if(r.formatter&&r.parser&&(Ke=r.parser(Ke)),!rt.value){if(Ke===_.value){be();return}n(Lt,Ke),n(Ru,Ke),await nextTick(),be(),Fe();}},_e=re=>{let{value:Ke}=re.target;r.formatter&&r.parser&&(Ke=r.parser(Ke)),n(fr,Ke);},{isComposing:rt,handleCompositionStart:dn,handleCompositionUpdate:ws,handleCompositionEnd:Ss}=Sx({emit:n,afterComposition:Ze}),_i=()=>{Se(),x.value=!x.value,setTimeout(Fe);},As=()=>{var re;return (re=C.value)==null?void 0:re.focus()},si=()=>{var re;return (re=C.value)==null?void 0:re.blur()},Ts=re=>{F.value=false,n("mouseleave",re);},hn=re=>{F.value=true,n("mouseenter",re);},dr=re=>{n("keydown",re);},ks=()=>{var re;(re=C.value)==null||re.select();},ji=()=>{n(Lt,""),n(fr,""),n("clear"),n(Ru,"");};return watch(()=>r.modelValue,()=>{var re;nextTick(()=>Ge()),r.validateEvent&&((re=c==null?void 0:c.validate)==null||re.call(c,"change").catch(Ke=>void 0));}),watch(_,()=>be()),watch(()=>r.type,async()=>{await nextTick(),be(),Ge();}),onMounted(()=>{!r.formatter&&r.parser,be(),nextTick(Ge);}),e({input:g,textarea:y,ref:C,textareaStyle:j,autosize:toRef(r,"autosize"),isComposing:rt,focus:As,blur:si,select:ks,clear:ji,resizeTextarea:Ge}),(re,Ke)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(a),{[unref(p).bm("group","append")]:re.$slots.append,[unref(p).bm("group","prepend")]:re.$slots.prepend}]),style:normalizeStyle(unref(I)),onMouseenter:hn,onMouseleave:Ts},[createCommentVNode(" input "),re.type!=="textarea"?(openBlock(),createElementBlock(Fragment,{key:0},[createCommentVNode(" prepend slot "),re.$slots.prepend?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(p).be("group","prepend"))},[renderSlot(re.$slots,"prepend")],2)):createCommentVNode("v-if",true),createElementVNode("div",{ref_key:"wrapperRef",ref:E,class:normalizeClass(unref(l))},[createCommentVNode(" prefix slot "),re.$slots.prefix||re.prefixIcon?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(p).e("prefix"))},[createElementVNode("span",{class:normalizeClass(unref(p).e("prefix-inner"))},[renderSlot(re.$slots,"prefix"),re.prefixIcon?(openBlock(),createBlock(unref(Ot),{key:0,class:normalizeClass(unref(p).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(re.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",true)],2)],2)):createCommentVNode("v-if",true),createElementVNode("input",mergeProps({id:unref(f),ref_key:"input",ref:g,class:unref(p).e("inner")},unref(s),{minlength:re.minlength,maxlength:re.maxlength,type:re.showPassword?x.value?"text":"password":re.type,disabled:unref(h),readonly:re.readonly,autocomplete:re.autocomplete,tabindex:re.tabindex,"aria-label":re.ariaLabel,placeholder:re.placeholder,style:re.inputStyle,form:re.form,autofocus:re.autofocus,role:re.containerRole,onCompositionstart:unref(dn),onCompositionupdate:unref(ws),onCompositionend:unref(Ss),onInput:Ze,onChange:_e,onKeydown:dr}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","onCompositionstart","onCompositionupdate","onCompositionend"]),createCommentVNode(" suffix slot "),unref(ve)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(p).e("suffix"))},[createElementVNode("span",{class:normalizeClass(unref(p).e("suffix-inner"))},[!unref(R)||!unref(L)||!unref(G)?(openBlock(),createElementBlock(Fragment,{key:0},[renderSlot(re.$slots,"suffix"),re.suffixIcon?(openBlock(),createBlock(unref(Ot),{key:0,class:normalizeClass(unref(p).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(re.suffixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",true)],64)):createCommentVNode("v-if",true),unref(R)?(openBlock(),createBlock(unref(Ot),{key:1,class:normalizeClass([unref(p).e("icon"),unref(p).e("clear")]),onMousedown:withModifiers(unref(Ks),["prevent"]),onClick:ji},{default:withCtx(()=>[createVNode(unref(b0))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",true),unref(L)?(openBlock(),createBlock(unref(Ot),{key:2,class:normalizeClass([unref(p).e("icon"),unref(p).e("password")]),onClick:_i},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(T))))]),_:1},8,["class"])):createCommentVNode("v-if",true),unref(G)?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass(unref(p).e("count"))},[createElementVNode("span",{class:normalizeClass(unref(p).e("count-inner"))},toDisplayString(unref(me))+" / "+toDisplayString(re.maxlength),3)],2)):createCommentVNode("v-if",true),unref(N)&&unref(O)&&unref(k)?(openBlock(),createBlock(unref(Ot),{key:4,class:normalizeClass([unref(p).e("icon"),unref(p).e("validateIcon"),unref(p).is("loading",unref(N)==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(O))))]),_:1},8,["class"])):createCommentVNode("v-if",true)],2)],2)):createCommentVNode("v-if",true)],2),createCommentVNode(" append slot "),re.$slots.append?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(p).be("group","append"))},[renderSlot(re.$slots,"append")],2)):createCommentVNode("v-if",true)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" textarea "),createElementVNode("textarea",mergeProps({id:unref(f),ref_key:"textarea",ref:y,class:[unref(m).e("inner"),unref(p).is("focus",unref(S))]},unref(s),{minlength:re.minlength,maxlength:re.maxlength,tabindex:re.tabindex,disabled:unref(h),readonly:re.readonly,autocomplete:re.autocomplete,style:unref(j),"aria-label":re.ariaLabel,placeholder:re.placeholder,form:re.form,autofocus:re.autofocus,rows:re.rows,role:re.containerRole,onCompositionstart:unref(dn),onCompositionupdate:unref(ws),onCompositionend:unref(Ss),onInput:Ze,onFocus:unref(A),onBlur:unref(M),onChange:_e,onKeydown:dr}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),unref(G)?(openBlock(),createElementBlock("span",{key:0,style:normalizeStyle(b.value),class:normalizeClass(unref(p).e("count"))},toDisplayString(unref(me))+" / "+toDisplayString(re.maxlength),7)):createCommentVNode("v-if",true)],64))],38))}});var uP=Re(lP,[["__file","input.vue"]]);const wn=Dn(uP),Ca=4,cP={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},fP=({move:t,size:e,bar:n})=>({[n.size]:e,transform:`translate${n.axis}(${t}%)`}),x0=Symbol("scrollbarContextKey"),dP=ze({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:true},always:Boolean}),hP="Thumb",pP=defineComponent({__name:"thumb",props:dP,setup(t){const e=t,n=inject(x0),r=we("scrollbar");n||Sl(hP,"can not inject scrollbar context");const i=ref(),s=ref(),o=ref({}),a=ref(false);let l=false,u=false,c=at?document.onselectstart:null;const f=computed(()=>cP[e.vertical?"vertical":"horizontal"]),d=computed(()=>fP({size:e.size,move:e.move,bar:f.value})),h=computed(()=>i.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/e.ratio/s.value[f.value.offset]),p=C=>{var E;if(C.stopPropagation(),C.ctrlKey||[1,2].includes(C.button))return;(E=window.getSelection())==null||E.removeAllRanges(),g(C);const S=C.currentTarget;S&&(o.value[f.value.axis]=S[f.value.offset]-(C[f.value.client]-S.getBoundingClientRect()[f.value.direction]));},m=C=>{if(!s.value||!i.value||!n.wrapElement)return;const E=Math.abs(C.target.getBoundingClientRect()[f.value.direction]-C[f.value.client]),S=s.value[f.value.offset]/2,A=(E-S)*100*h.value/i.value[f.value.offset];n.wrapElement[f.value.scroll]=A*n.wrapElement[f.value.scrollSize]/100;},g=C=>{C.stopImmediatePropagation(),l=true,document.addEventListener("mousemove",y),document.addEventListener("mouseup",F),c=document.onselectstart,document.onselectstart=()=>false;},y=C=>{if(!i.value||!s.value||l===false)return;const E=o.value[f.value.axis];if(!E)return;const S=(i.value.getBoundingClientRect()[f.value.direction]-C[f.value.client])*-1,A=s.value[f.value.offset]-E,M=(S-A)*100*h.value/i.value[f.value.offset];n.wrapElement[f.value.scroll]=M*n.wrapElement[f.value.scrollSize]/100;},F=()=>{l=false,o.value[f.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",F),D(),u&&(a.value=false);},x=()=>{u=false,a.value=!!e.size;},b=()=>{u=true,a.value=l;};onBeforeUnmount(()=>{D(),document.removeEventListener("mouseup",F);});const D=()=>{document.onselectstart!==c&&(document.onselectstart=c);};return Dr(toRef(n,"scrollbarElement"),"mousemove",x),Dr(toRef(n,"scrollbarElement"),"mouseleave",b),(C,E)=>(openBlock(),createBlock(Transition,{name:unref(r).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createElementVNode("div",{ref_key:"instance",ref:i,class:normalizeClass([unref(r).e("bar"),unref(r).is(unref(f).key)]),onMousedown:m,onClick:withModifiers(()=>{},["stop"])},[createElementVNode("div",{ref_key:"thumb",ref:s,class:normalizeClass(unref(r).e("thumb")),style:normalizeStyle(unref(d)),onMousedown:p},null,38)],42,["onClick"]),[[vShow,C.always||a.value]])]),_:1},8,["name"]))}});var vD=Re(pP,[["__file","thumb.vue"]]);const mP=ze({always:{type:Boolean,default:true},minSize:{type:Number,required:true}}),gP=defineComponent({__name:"bar",props:mP,setup(t,{expose:e}){const n=t,r=inject(x0),i=ref(0),s=ref(0),o=ref(""),a=ref(""),l=ref(1),u=ref(1);return e({handleScroll:d=>{if(d){const h=d.offsetHeight-Ca,p=d.offsetWidth-Ca;s.value=d.scrollTop*100/h*l.value,i.value=d.scrollLeft*100/p*u.value;}},update:()=>{const d=r==null?void 0:r.wrapElement;if(!d)return;const h=d.offsetHeight-Ca,p=d.offsetWidth-Ca,m=h**2/d.scrollHeight,g=p**2/d.scrollWidth,y=Math.max(m,n.minSize),F=Math.max(g,n.minSize);l.value=m/(h-m)/(y/(h-y)),u.value=g/(p-g)/(F/(p-F)),a.value=y+Ca<h?`${y}px`:"",o.value=F+Ca<p?`${F}px`:"";}}),(d,h)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(vD,{move:i.value,ratio:u.value,size:o.value,always:d.always},null,8,["move","ratio","size","always"]),createVNode(vD,{move:s.value,ratio:l.value,size:a.value,vertical:"",always:d.always},null,8,["move","ratio","size","always"])],64))}});var yP=Re(gP,[["__file","bar.vue"]]);const vP=ze({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:false},wrapStyle:{type:Ce([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...ds(["ariaLabel","ariaOrientation"])}),Ax={scroll:({scrollTop:t,scrollLeft:e})=>[t,e].every(ot)},DP="ElScrollbar",bP=defineComponent({name:DP}),CP=defineComponent({...bP,props:vP,emits:Ax,setup(t,{expose:e,emit:n}){const r=t,i=we("scrollbar");let s,o,a=0,l=0;const u=ref(),c=ref(),f=ref(),d=ref(),h=computed(()=>{const D={};return r.height&&(D.height=Jr(r.height)),r.maxHeight&&(D.maxHeight=Jr(r.maxHeight)),[r.wrapStyle,D]}),p=computed(()=>[r.wrapClass,i.e("wrap"),{[i.em("wrap","hidden-default")]:!r.native}]),m=computed(()=>[i.e("view"),r.viewClass]),g=()=>{var D;c.value&&((D=d.value)==null||D.handleScroll(c.value),a=c.value.scrollTop,l=c.value.scrollLeft,n("scroll",{scrollTop:c.value.scrollTop,scrollLeft:c.value.scrollLeft}));};function y(D,C){At(D)?c.value.scrollTo(D):ot(D)&&ot(C)&&c.value.scrollTo(D,C);}const F=D=>{ot(D)&&(c.value.scrollTop=D);},x=D=>{ot(D)&&(c.value.scrollLeft=D);},b=()=>{var D;(D=d.value)==null||D.update();};return watch(()=>r.noresize,D=>{D?(s==null||s(),o==null||o()):({stop:s}=or(f,b),o=Dr("resize",b));},{immediate:true}),watch(()=>[r.maxHeight,r.height],()=>{r.native||nextTick(()=>{var D;b(),c.value&&((D=d.value)==null||D.handleScroll(c.value));});}),provide(x0,reactive({scrollbarElement:u,wrapElement:c})),onActivated(()=>{c.value&&(c.value.scrollTop=a,c.value.scrollLeft=l);}),onMounted(()=>{r.native||nextTick(()=>{b();});}),onUpdated(()=>b()),e({wrapRef:c,update:b,scrollTo:y,setScrollTop:F,setScrollLeft:x,handleScroll:g}),(D,C)=>(openBlock(),createElementBlock("div",{ref_key:"scrollbarRef",ref:u,class:normalizeClass(unref(i).b())},[createElementVNode("div",{ref_key:"wrapRef",ref:c,class:normalizeClass(unref(p)),style:normalizeStyle(unref(h)),tabindex:D.tabindex,onScroll:g},[(openBlock(),createBlock(resolveDynamicComponent(D.tag),{id:D.id,ref_key:"resizeRef",ref:f,class:normalizeClass(unref(m)),style:normalizeStyle(D.viewStyle),role:D.role,"aria-label":D.ariaLabel,"aria-orientation":D.ariaOrientation},{default:withCtx(()=>[renderSlot(D.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),D.native?createCommentVNode("v-if",true):(openBlock(),createBlock(yP,{key:0,ref_key:"barRef",ref:d,always:D.always,"min-size":D.minSize},null,8,["always","min-size"]))],2))}});var xP=Re(CP,[["__file","scrollbar.vue"]]);const fo=Dn(xP),E0=Symbol("popper"),Tx=Symbol("popperContent"),EP=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],kx=ze({role:{type:String,values:EP,default:"tooltip"}}),FP=defineComponent({name:"ElPopper",inheritAttrs:false}),wP=defineComponent({...FP,props:kx,setup(t,{expose:e}){const n=t,r=ref(),i=ref(),s=ref(),o=ref(),a=computed(()=>n.role),l={triggerRef:r,popperInstanceRef:i,contentRef:s,referenceRef:o,role:a};return e(l),provide(E0,l),(u,c)=>renderSlot(u.$slots,"default")}});var SP=Re(wP,[["__file","popper.vue"]]);const AP=defineComponent({name:"ElPopperArrow",inheritAttrs:false}),TP=defineComponent({...AP,setup(t,{expose:e}){const n=we("popper"),{arrowRef:r,arrowStyle:i}=inject(Tx,void 0);return onBeforeUnmount(()=>{r.value=void 0;}),e({arrowRef:r}),(s,o)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:r,class:normalizeClass(unref(n).e("arrow")),style:normalizeStyle(unref(i)),"data-popper-arrow":""},null,6))}});var kP=Re(TP,[["__file","arrow.vue"]]);const Bx=ze({virtualRef:{type:Ce(Object)},virtualTriggering:Boolean,onMouseenter:{type:Ce(Function)},onMouseleave:{type:Ce(Function)},onClick:{type:Ce(Function)},onKeydown:{type:Ce(Function)},onFocus:{type:Ce(Function)},onBlur:{type:Ce(Function)},onContextmenu:{type:Ce(Function)},id:String,open:Boolean}),Ox=Symbol("elForwardRef"),BP=t=>{provide(Ox,{setForwardRef:n=>{t.value=n;}});},OP=t=>({mounted(e){t(e);},updated(e){t(e);},unmounted(){t(null);}}),$P='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',MP=t=>getComputedStyle(t).position==="fixed"?false:t.offsetParent!==null,DD=t=>Array.from(t.querySelectorAll($P)).filter(e=>gd(e)&&MP(e)),gd=t=>{if(t.tabIndex>0||t.tabIndex===0&&t.getAttribute("tabIndex")!==null)return  true;if(t.tabIndex<0||t.hasAttribute("disabled")||t.getAttribute("aria-disabled")==="true")return  false;switch(t.nodeName){case "A":return !!t.href&&t.rel!=="ignore";case "INPUT":return !(t.type==="hidden"||t.type==="file");case "BUTTON":case "SELECT":case "TEXTAREA":return  true;default:return  false}},PP="ElOnlyChild",NP=defineComponent({name:PP,setup(t,{slots:e,attrs:n}){var r;const i=inject(Ox),s=OP((r=i==null?void 0:i.setForwardRef)!=null?r:Ks);return ()=>{var o;const a=(o=e.default)==null?void 0:o.call(e,n);if(!a||a.length>1)return null;const l=$x(a);return l?withDirectives(cloneVNode(l,n),[[s]]):null}}});function $x(t){if(!t)return null;const e=t;for(const n of e){if(At(n))switch(n.type){case Comment:continue;case Text:case "svg":return bD(n);case Fragment:return $x(n.children);default:return n}return bD(n)}return null}function bD(t){const e=we("only-child");return createVNode("span",{class:e.e("content")},[t])}const IP=defineComponent({name:"ElPopperTrigger",inheritAttrs:false}),LP=defineComponent({...IP,props:Bx,setup(t,{expose:e}){const n=t,{role:r,triggerRef:i}=inject(E0,void 0);BP(i);const s=computed(()=>a.value?n.id:void 0),o=computed(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),a=computed(()=>{if(r&&r.value!=="tooltip")return r.value}),l=computed(()=>a.value?`${n.open}`:void 0);let u;const c=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return onMounted(()=>{watch(()=>n.virtualRef,f=>{f&&(i.value=Ui(f));},{immediate:true}),watch(i,(f,d)=>{u==null||u(),u=void 0,vr(f)&&(c.forEach(h=>{var p;const m=n[h];m&&(f.addEventListener(h.slice(2).toLowerCase(),m),(p=d==null?void 0:d.removeEventListener)==null||p.call(d,h.slice(2).toLowerCase(),m));}),gd(f)&&(u=watch([s,o,a,l],h=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,m)=>{yc(h[m])?f.removeAttribute(p):f.setAttribute(p,h[m]);});},{immediate:true}))),vr(d)&&gd(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(h=>d.removeAttribute(h));},{immediate:true});}),onBeforeUnmount(()=>{if(u==null||u(),u=void 0,i.value&&vr(i.value)){const f=i.value;c.forEach(d=>{const h=n[d];h&&f.removeEventListener(d.slice(2).toLowerCase(),h);}),i.value=void 0;}}),e({triggerRef:i}),(f,d)=>f.virtualTriggering?createCommentVNode("v-if",true):(openBlock(),createBlock(unref(NP),mergeProps({key:0},f.$attrs,{"aria-controls":unref(s),"aria-describedby":unref(o),"aria-expanded":unref(l),"aria-haspopup":unref(a)}),{default:withCtx(()=>[renderSlot(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var RP=Re(LP,[["__file","trigger.vue"]]);const Gh="focus-trap.focus-after-trapped",Xh="focus-trap.focus-after-released",_P="focus-trap.focusout-prevented",CD={cancelable:true,bubbles:false},jP={cancelable:true,bubbles:false},xD="focusAfterTrapped",ED="focusAfterReleased",Mx=Symbol("elFocusTrap"),F0=ref(),lh=ref(0),w0=ref(0);let Uc=0;const Px=t=>{const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e},FD=(t,e)=>{for(const n of t)if(!VP(n,e))return n},VP=(t,e)=>{if(getComputedStyle(t).visibility==="hidden")return  true;for(;t;){if(e&&t===e)return  false;if(getComputedStyle(t).display==="none")return  true;t=t.parentElement;}return  false},qP=t=>{const e=Px(t),n=FD(e,t),r=FD(e.reverse(),t);return [n,r]},WP=t=>t instanceof HTMLInputElement&&"select"in t,Hi=(t,e)=>{if(t&&t.focus){const n=document.activeElement;let r=false;vr(t)&&!gd(t)&&!t.getAttribute("tabindex")&&(t.setAttribute("tabindex","-1"),r=true),t.focus({preventScroll:true}),w0.value=window.performance.now(),t!==n&&WP(t)&&e&&t.select(),vr(t)&&r&&t.removeAttribute("tabindex");}};function wD(t,e){const n=[...t],r=t.indexOf(e);return r!==-1&&n.splice(r,1),n}const HP=()=>{let t=[];return {push:r=>{const i=t[0];i&&r!==i&&i.pause(),t=wD(t,r),t.unshift(r);},remove:r=>{var i,s;t=wD(t,r),(s=(i=t[0])==null?void 0:i.resume)==null||s.call(i);}}},zP=(t,e=false)=>{const n=document.activeElement;for(const r of t)if(Hi(r,e),document.activeElement!==n)return},SD=HP(),KP=()=>lh.value>w0.value,Jc=()=>{F0.value="pointer",lh.value=window.performance.now();},AD=()=>{F0.value="keyboard",lh.value=window.performance.now();},UP=()=>(onMounted(()=>{Uc===0&&(document.addEventListener("mousedown",Jc),document.addEventListener("touchstart",Jc),document.addEventListener("keydown",AD)),Uc++;}),onBeforeUnmount(()=>{Uc--,Uc<=0&&(document.removeEventListener("mousedown",Jc),document.removeEventListener("touchstart",Jc),document.removeEventListener("keydown",AD));}),{focusReason:F0,lastUserFocusTimestamp:lh,lastAutomatedFocusTimestamp:w0}),Gc=t=>new CustomEvent(_P,{...jP,detail:t}),Us={tab:"Tab",enter:"Enter",space:"Space",esc:"Escape",delete:"Delete",numpadEnter:"NumpadEnter"};let Aa=[];const TD=t=>{t.code===Us.esc&&Aa.forEach(e=>e(t));},JP=t=>{onMounted(()=>{Aa.length===0&&document.addEventListener("keydown",TD),at&&Aa.push(t);}),onBeforeUnmount(()=>{Aa=Aa.filter(e=>e!==t),Aa.length===0&&at&&document.removeEventListener("keydown",TD);});},GP=defineComponent({name:"ElFocusTrap",inheritAttrs:false,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[xD,ED,"focusin","focusout","focusout-prevented","release-requested"],setup(t,{emit:e}){const n=ref();let r,i;const{focusReason:s}=UP();JP(p=>{t.trapped&&!o.paused&&e("release-requested",p);});const o={paused:false,pause(){this.paused=true;},resume(){this.paused=false;}},a=p=>{if(!t.loop&&!t.trapped||o.paused)return;const{code:m,altKey:g,ctrlKey:y,metaKey:F,currentTarget:x,shiftKey:b}=p,{loop:D}=t,C=m===Us.tab&&!g&&!y&&!F,E=document.activeElement;if(C&&E){const S=x,[A,M]=qP(S);if(A&&M){if(!b&&E===M){const N=Gc({focusReason:s.value});e("focusout-prevented",N),N.defaultPrevented||(p.preventDefault(),D&&Hi(A,true));}else if(b&&[A,S].includes(E)){const N=Gc({focusReason:s.value});e("focusout-prevented",N),N.defaultPrevented||(p.preventDefault(),D&&Hi(M,true));}}else if(E===S){const N=Gc({focusReason:s.value});e("focusout-prevented",N),N.defaultPrevented||p.preventDefault();}}};provide(Mx,{focusTrapRef:n,onKeydown:a}),watch(()=>t.focusTrapEl,p=>{p&&(n.value=p);},{immediate:true}),watch([n],([p],[m])=>{p&&(p.addEventListener("keydown",a),p.addEventListener("focusin",c),p.addEventListener("focusout",f)),m&&(m.removeEventListener("keydown",a),m.removeEventListener("focusin",c),m.removeEventListener("focusout",f));});const l=p=>{e(xD,p);},u=p=>e(ED,p),c=p=>{const m=unref(n);if(!m)return;const g=p.target,y=p.relatedTarget,F=g&&m.contains(g);t.trapped||y&&m.contains(y)||(r=y),F&&e("focusin",p),!o.paused&&t.trapped&&(F?i=g:Hi(i,true));},f=p=>{const m=unref(n);if(!(o.paused||!m))if(t.trapped){const g=p.relatedTarget;!yc(g)&&!m.contains(g)&&setTimeout(()=>{if(!o.paused&&t.trapped){const y=Gc({focusReason:s.value});e("focusout-prevented",y),y.defaultPrevented||Hi(i,true);}},0);}else {const g=p.target;g&&m.contains(g)||e("focusout",p);}};async function d(){await nextTick();const p=unref(n);if(p){SD.push(o);const m=p.contains(document.activeElement)?r:document.activeElement;if(r=m,!p.contains(m)){const y=new Event(Gh,CD);p.addEventListener(Gh,l),p.dispatchEvent(y),y.defaultPrevented||nextTick(()=>{let F=t.focusStartEl;He(F)||(Hi(F),document.activeElement!==F&&(F="first")),F==="first"&&zP(Px(p),true),(document.activeElement===m||F==="container")&&Hi(p);});}}}function h(){const p=unref(n);if(p){p.removeEventListener(Gh,l);const m=new CustomEvent(Xh,{...CD,detail:{focusReason:s.value}});p.addEventListener(Xh,u),p.dispatchEvent(m),!m.defaultPrevented&&(s.value=="keyboard"||!KP()||p.contains(document.activeElement))&&Hi(r??document.body),p.removeEventListener(Xh,u),SD.remove(o);}}return onMounted(()=>{t.trapped&&d(),watch(()=>t.trapped,p=>{p?d():h();});}),onBeforeUnmount(()=>{t.trapped&&h(),n.value&&(n.value.removeEventListener("keydown",a),n.value.removeEventListener("focusin",c),n.value.removeEventListener("focusout",f),n.value=void 0);}),{onKeydown:a}}});function XP(t,e,n,r,i,s){return renderSlot(t.$slots,"default",{handleKeydown:t.onKeydown})}var S0=Re(GP,[["render",XP],["__file","focus-trap.vue"]]),Kn="top",Er="bottom",Fr="right",Un="left",A0="auto",xc=[Kn,Er,Fr,Un],el="start",_u="end",YP="clippingParents",Nx="viewport",zl="popper",QP="reference",kD=xc.reduce(function(t,e){return t.concat([e+"-"+el,e+"-"+_u])},[]),uh=[].concat(xc,[A0]).reduce(function(t,e){return t.concat([e,e+"-"+el,e+"-"+_u])},[]),ZP="beforeRead",e4="read",t4="afterRead",n4="beforeMain",r4="main",i4="afterMain",s4="beforeWrite",o4="write",a4="afterWrite",l4=[ZP,e4,t4,n4,r4,i4,s4,o4,a4];function ki(t){return t?(t.nodeName||"").toLowerCase():null}function ni(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function tl(t){var e=ni(t).Element;return t instanceof e||t instanceof Element}function br(t){var e=ni(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function T0(t){if(typeof ShadowRoot>"u")return  false;var e=ni(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function u4(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},s=e.elements[n];!br(s)||!ki(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===false?s.removeAttribute(o):s.setAttribute(o,a===true?"":a);}));});}function c4(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],s=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=o.reduce(function(l,u){return l[u]="",l},{});!br(i)||!ki(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(l){i.removeAttribute(l);}));});}}var Ix={name:"applyStyles",enabled:true,phase:"write",fn:u4,effect:c4,requires:["computeStyles"]};function Ei(t){return t.split("-")[0]}var jo=Math.max,yd=Math.min,nl=Math.round;function rl(t,e){e===void 0&&(e=false);var n=t.getBoundingClientRect(),r=1,i=1;if(br(t)&&e){var s=t.offsetHeight,o=t.offsetWidth;o>0&&(r=nl(n.width)/o||1),s>0&&(i=nl(n.height)/s||1);}return {width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function k0(t){var e=rl(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function Lx(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return  true;if(n&&T0(n)){var r=e;do{if(r&&t.isSameNode(r))return  true;r=r.parentNode||r.host;}while(r)}return  false}function Zi(t){return ni(t).getComputedStyle(t)}function f4(t){return ["table","td","th"].indexOf(ki(t))>=0}function ho(t){return ((tl(t)?t.ownerDocument:t.document)||window.document).documentElement}function ch(t){return ki(t)==="html"?t:t.assignedSlot||t.parentNode||(T0(t)?t.host:null)||ho(t)}function BD(t){return !br(t)||Zi(t).position==="fixed"?null:t.offsetParent}function d4(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&br(t)){var r=Zi(t);if(r.position==="fixed")return null}var i=ch(t);for(T0(i)&&(i=i.host);br(i)&&["html","body"].indexOf(ki(i))<0;){var s=Zi(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode;}return null}function Ec(t){for(var e=ni(t),n=BD(t);n&&f4(n)&&Zi(n).position==="static";)n=BD(n);return n&&(ki(n)==="html"||ki(n)==="body"&&Zi(n).position==="static")?e:n||d4(t)||e}function B0(t){return ["top","bottom"].indexOf(t)>=0?"x":"y"}function pu(t,e,n){return jo(t,yd(e,n))}function h4(t,e,n){var r=pu(t,e,n);return r>n?n:r}function Rx(){return {top:0,right:0,bottom:0,left:0}}function _x(t){return Object.assign({},Rx(),t)}function jx(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var p4=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,_x(typeof t!="number"?t:jx(t,xc))};function m4(t){var e,n=t.state,r=t.name,i=t.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Ei(n.placement),l=B0(a),u=[Un,Fr].indexOf(a)>=0,c=u?"height":"width";if(!(!s||!o)){var f=p4(i.padding,n),d=k0(s),h=l==="y"?Kn:Un,p=l==="y"?Er:Fr,m=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],g=o[l]-n.rects.reference[l],y=Ec(s),F=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,x=m/2-g/2,b=f[h],D=F-d[c]-f[p],C=F/2-d[c]/2+x,E=pu(b,C,D),S=l;n.modifiersData[r]=(e={},e[S]=E,e.centerOffset=E-C,e);}}function g4(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||!Lx(e.elements.popper,i)||(e.elements.arrow=i));}var y4={name:"arrow",enabled:true,phase:"main",fn:m4,effect:g4,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function il(t){return t.split("-")[1]}var v4={top:"auto",right:"auto",bottom:"auto",left:"auto"};function D4(t){var e=t.x,n=t.y,r=window,i=r.devicePixelRatio||1;return {x:nl(e*i)/i||0,y:nl(n*i)/i||0}}function OD(t){var e,n=t.popper,r=t.popperRect,i=t.placement,s=t.variation,o=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,f=t.isFixed,d=o.x,h=d===void 0?0:d,p=o.y,m=p===void 0?0:p,g=typeof c=="function"?c({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var y=o.hasOwnProperty("x"),F=o.hasOwnProperty("y"),x=Un,b=Kn,D=window;if(u){var C=Ec(n),E="clientHeight",S="clientWidth";if(C===ni(n)&&(C=ho(n),Zi(C).position!=="static"&&a==="absolute"&&(E="scrollHeight",S="scrollWidth")),C=C,i===Kn||(i===Un||i===Fr)&&s===_u){b=Er;var A=f&&C===D&&D.visualViewport?D.visualViewport.height:C[E];m-=A-r.height,m*=l?1:-1;}if(i===Un||(i===Kn||i===Er)&&s===_u){x=Fr;var M=f&&C===D&&D.visualViewport?D.visualViewport.width:C[S];h-=M-r.width,h*=l?1:-1;}}var k=Object.assign({position:a},u&&v4),N=c===true?D4({x:h,y:m}):{x:h,y:m};if(h=N.x,m=N.y,l){var O;return Object.assign({},k,(O={},O[b]=F?"0":"",O[x]=y?"0":"",O.transform=(D.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",O))}return Object.assign({},k,(e={},e[b]=F?m+"px":"",e[x]=y?h+"px":"",e.transform="",e))}function b4(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?true:r,s=n.adaptive,o=s===void 0?true:s,a=n.roundOffsets,l=a===void 0?true:a,u={placement:Ei(e.placement),variation:il(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,OD(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,OD(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement});}var Vx={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:b4,data:{}},Xc={passive:true};function C4(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,s=i===void 0?true:i,o=r.resize,a=o===void 0?true:o,l=ni(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(c){c.addEventListener("scroll",n.update,Xc);}),a&&l.addEventListener("resize",n.update,Xc),function(){s&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Xc);}),a&&l.removeEventListener("resize",n.update,Xc);}}var qx={name:"eventListeners",enabled:true,phase:"write",fn:function(){},effect:C4,data:{}},x4={left:"right",right:"left",bottom:"top",top:"bottom"};function Lf(t){return t.replace(/left|right|bottom|top/g,function(e){return x4[e]})}var E4={start:"end",end:"start"};function $D(t){return t.replace(/start|end/g,function(e){return E4[e]})}function O0(t){var e=ni(t),n=e.pageXOffset,r=e.pageYOffset;return {scrollLeft:n,scrollTop:r}}function $0(t){return rl(ho(t)).left+O0(t).scrollLeft}function F4(t){var e=ni(t),n=ho(t),r=e.visualViewport,i=n.clientWidth,s=n.clientHeight,o=0,a=0;return r&&(i=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,a=r.offsetTop)),{width:i,height:s,x:o+$0(t),y:a}}function w4(t){var e,n=ho(t),r=O0(t),i=(e=t.ownerDocument)==null?void 0:e.body,s=jo(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=jo(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+$0(t),l=-r.scrollTop;return Zi(i||n).direction==="rtl"&&(a+=jo(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function M0(t){var e=Zi(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return /auto|scroll|overlay|hidden/.test(n+i+r)}function Wx(t){return ["html","body","#document"].indexOf(ki(t))>=0?t.ownerDocument.body:br(t)&&M0(t)?t:Wx(ch(t))}function mu(t,e){var n;e===void 0&&(e=[]);var r=Wx(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),s=ni(r),o=i?[s].concat(s.visualViewport||[],M0(r)?r:[]):r,a=e.concat(o);return i?a:a.concat(mu(ch(o)))}function am(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function S4(t){var e=rl(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function MD(t,e){return e===Nx?am(F4(t)):tl(e)?S4(e):am(w4(ho(t)))}function A4(t){var e=mu(ch(t)),n=["absolute","fixed"].indexOf(Zi(t).position)>=0,r=n&&br(t)?Ec(t):t;return tl(r)?e.filter(function(i){return tl(i)&&Lx(i,r)&&ki(i)!=="body"}):[]}function T4(t,e,n){var r=e==="clippingParents"?A4(t):[].concat(e),i=[].concat(r,[n]),s=i[0],o=i.reduce(function(a,l){var u=MD(t,l);return a.top=jo(u.top,a.top),a.right=yd(u.right,a.right),a.bottom=yd(u.bottom,a.bottom),a.left=jo(u.left,a.left),a},MD(t,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Hx(t){var e=t.reference,n=t.element,r=t.placement,i=r?Ei(r):null,s=r?il(r):null,o=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(i){case Kn:l={x:o,y:e.y-n.height};break;case Er:l={x:o,y:e.y+e.height};break;case Fr:l={x:e.x+e.width,y:a};break;case Un:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y};}var u=i?B0(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(s){case el:l[u]=l[u]-(e[c]/2-n[c]/2);break;case _u:l[u]=l[u]+(e[c]/2-n[c]/2);break}}return l}function ju(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,s=n.boundary,o=s===void 0?YP:s,a=n.rootBoundary,l=a===void 0?Nx:a,u=n.elementContext,c=u===void 0?zl:u,f=n.altBoundary,d=f===void 0?false:f,h=n.padding,p=h===void 0?0:h,m=_x(typeof p!="number"?p:jx(p,xc)),g=c===zl?QP:zl,y=t.rects.popper,F=t.elements[d?g:c],x=T4(tl(F)?F:F.contextElement||ho(t.elements.popper),o,l),b=rl(t.elements.reference),D=Hx({reference:b,element:y,placement:i}),C=am(Object.assign({},y,D)),E=c===zl?C:b,S={top:x.top-E.top+m.top,bottom:E.bottom-x.bottom+m.bottom,left:x.left-E.left+m.left,right:E.right-x.right+m.right},A=t.modifiersData.offset;if(c===zl&&A){var M=A[i];Object.keys(S).forEach(function(k){var N=[Fr,Er].indexOf(k)>=0?1:-1,O=[Kn,Er].indexOf(k)>=0?"y":"x";S[k]+=M[O]*N;});}return S}function k4(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?uh:l,c=il(r),f=c?a?kD:kD.filter(function(p){return il(p)===c}):xc,d=f.filter(function(p){return u.indexOf(p)>=0});d.length===0&&(d=f);var h=d.reduce(function(p,m){return p[m]=ju(t,{placement:m,boundary:i,rootBoundary:s,padding:o})[Ei(m)],p},{});return Object.keys(h).sort(function(p,m){return h[p]-h[m]})}function B4(t){if(Ei(t)===A0)return [];var e=Lf(t);return [$D(t),e,$D(e)]}function O4(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?true:i,o=n.altAxis,a=o===void 0?true:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=h===void 0?true:h,m=n.allowedAutoPlacements,g=e.options.placement,y=Ei(g),F=y===g,x=l||(F||!p?[Lf(g)]:B4(g)),b=[g].concat(x).reduce(function(Se,Fe){return Se.concat(Ei(Fe)===A0?k4(e,{placement:Fe,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:m}):Fe)},[]),D=e.rects.reference,C=e.rects.popper,E=new Map,S=true,A=b[0],M=0;M<b.length;M++){var k=b[M],N=Ei(k),O=il(k)===el,T=[Kn,Er].indexOf(N)>=0,I=T?"width":"height",j=ju(e,{placement:k,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),_=T?O?Fr:Un:O?Er:Kn;D[I]>C[I]&&(_=Lf(_));var R=Lf(_),L=[];if(s&&L.push(j[N]<=0),a&&L.push(j[_]<=0,j[R]<=0),L.every(function(Se){return Se})){A=k,S=false;break}E.set(k,L);}if(S)for(var G=p?3:1,me=function(Se){var Fe=b.find(function(Ge){var Te=E.get(Ge);if(Te)return Te.slice(0,Se).every(function(ne){return ne})});if(Fe)return A=Fe,"break"},ye=G;ye>0;ye--){var ve=me(ye);if(ve==="break")break}e.placement!==A&&(e.modifiersData[r]._skip=true,e.placement=A,e.reset=true);}}var $4={name:"flip",enabled:true,phase:"main",fn:O4,requiresIfExists:["offset"],data:{_skip:false}};function PD(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function ND(t){return [Kn,Fr,Er,Un].some(function(e){return t[e]>=0})}function M4(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,s=e.modifiersData.preventOverflow,o=ju(e,{elementContext:"reference"}),a=ju(e,{altBoundary:true}),l=PD(o,r),u=PD(a,i,s),c=ND(l),f=ND(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f});}var P4={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:M4};function N4(t,e,n){var r=Ei(t),i=[Un,Kn].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[Un,Fr].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function I4(t){var e=t.state,n=t.options,r=t.name,i=n.offset,s=i===void 0?[0,0]:i,o=uh.reduce(function(c,f){return c[f]=N4(f,e.rects,s),c},{}),a=o[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=o;}var L4={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:I4};function R4(t){var e=t.state,n=t.name;e.modifiersData[n]=Hx({reference:e.rects.reference,element:e.rects.popper,placement:e.placement});}var zx={name:"popperOffsets",enabled:true,phase:"read",fn:R4,data:{}};function _4(t){return t==="x"?"y":"x"}function j4(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,s=i===void 0?true:i,o=n.altAxis,a=o===void 0?false:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?true:d,p=n.tetherOffset,m=p===void 0?0:p,g=ju(e,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),y=Ei(e.placement),F=il(e.placement),x=!F,b=B0(y),D=_4(b),C=e.modifiersData.popperOffsets,E=e.rects.reference,S=e.rects.popper,A=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,M=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),k=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,N={x:0,y:0};if(C){if(s){var O,T=b==="y"?Kn:Un,I=b==="y"?Er:Fr,j=b==="y"?"height":"width",_=C[b],R=_+g[T],L=_-g[I],G=h?-S[j]/2:0,me=F===el?E[j]:S[j],ye=F===el?-S[j]:-E[j],ve=e.elements.arrow,Se=h&&ve?k0(ve):{width:0,height:0},Fe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Rx(),Ge=Fe[T],Te=Fe[I],ne=pu(0,E[j],Se[j]),be=x?E[j]/2-G-ne-Ge-M.mainAxis:me-ne-Ge-M.mainAxis,Ze=x?-E[j]/2+G+ne+Te+M.mainAxis:ye+ne+Te+M.mainAxis,_e=e.elements.arrow&&Ec(e.elements.arrow),rt=_e?b==="y"?_e.clientTop||0:_e.clientLeft||0:0,dn=(O=k==null?void 0:k[b])!=null?O:0,ws=_+be-dn-rt,Ss=_+Ze-dn,_i=pu(h?yd(R,ws):R,_,h?jo(L,Ss):L);C[b]=_i,N[b]=_i-_;}if(a){var As,si=b==="x"?Kn:Un,Ts=b==="x"?Er:Fr,hn=C[D],dr=D==="y"?"height":"width",ks=hn+g[si],ji=hn-g[Ts],re=[Kn,Un].indexOf(y)!==-1,Ke=(As=k==null?void 0:k[D])!=null?As:0,Mn=re?ks:hn-E[dr]-S[dr]-Ke+M.altAxis,oi=re?hn+E[dr]+S[dr]-Ke-M.altAxis:ji,ai=h&&re?h4(Mn,hn,oi):pu(h?Mn:ks,hn,h?oi:ji);C[D]=ai,N[D]=ai-hn;}e.modifiersData[r]=N;}}var V4={name:"preventOverflow",enabled:true,phase:"main",fn:j4,requiresIfExists:["offset"]};function q4(t){return {scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function W4(t){return t===ni(t)||!br(t)?O0(t):q4(t)}function H4(t){var e=t.getBoundingClientRect(),n=nl(e.width)/t.offsetWidth||1,r=nl(e.height)/t.offsetHeight||1;return n!==1||r!==1}function z4(t,e,n){n===void 0&&(n=false);var r=br(e),i=br(e)&&H4(e),s=ho(e),o=rl(t,i),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return (r||!r&&!n)&&((ki(e)!=="body"||M0(s))&&(a=W4(e)),br(e)?(l=rl(e,true),l.x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=$0(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function K4(t){var e=new Map,n=new Set,r=[];t.forEach(function(s){e.set(s.name,s);});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&i(l);}}),r.push(s);}return t.forEach(function(s){n.has(s.name)||i(s);}),r}function U4(t){var e=K4(t);return l4.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function J4(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t());});})),e}}function G4(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var ID={placement:"bottom",modifiers:[],strategy:"absolute"};function LD(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return !e.some(function(r){return !(r&&typeof r.getBoundingClientRect=="function")})}function P0(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,i=e.defaultOptions,s=i===void 0?ID:i;return function(o,a,l){l===void 0&&(l=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},ID,s),modifiersData:{},elements:{reference:o,popper:a},attributes:{},styles:{}},c=[],f=false,d={state:u,setOptions:function(m){var g=typeof m=="function"?m(u.options):m;p(),u.options=Object.assign({},s,u.options,g),u.scrollParents={reference:tl(o)?mu(o):o.contextElement?mu(o.contextElement):[],popper:mu(a)};var y=U4(G4([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(F){return F.enabled}),h(),d.update()},forceUpdate:function(){if(!f){var m=u.elements,g=m.reference,y=m.popper;if(LD(g,y)){u.rects={reference:z4(g,Ec(y),u.options.strategy==="fixed"),popper:k0(y)},u.reset=false,u.placement=u.options.placement,u.orderedModifiers.forEach(function(S){return u.modifiersData[S.name]=Object.assign({},S.data)});for(var F=0;F<u.orderedModifiers.length;F++){if(u.reset===true){u.reset=false,F=-1;continue}var x=u.orderedModifiers[F],b=x.fn,D=x.options,C=D===void 0?{}:D,E=x.name;typeof b=="function"&&(u=b({state:u,options:C,name:E,instance:d})||u);}}}},update:J4(function(){return new Promise(function(m){d.forceUpdate(),m(u);})}),destroy:function(){p(),f=true;}};if(!LD(o,a))return d;d.setOptions(l).then(function(m){!f&&l.onFirstUpdate&&l.onFirstUpdate(m);});function h(){u.orderedModifiers.forEach(function(m){var g=m.name,y=m.options,F=y===void 0?{}:y,x=m.effect;if(typeof x=="function"){var b=x({state:u,name:g,instance:d,options:F}),D=function(){};c.push(b||D);}});}function p(){c.forEach(function(m){return m()}),c=[];}return d}}P0();var X4=[qx,zx,Vx,Ix];P0({defaultModifiers:X4});var Y4=[qx,zx,Vx,Ix,L4,$4,V4,y4,P4],Q4=P0({defaultModifiers:Y4});const Kx=ze({arrowOffset:{type:Number,default:5}}),Z4=["fixed","absolute"],eN=ze({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Ce(Array),default:void 0},gpuAcceleration:{type:Boolean,default:true},offset:{type:Number,default:12},placement:{type:String,values:uh,default:"bottom"},popperOptions:{type:Ce(Object),default:()=>({})},strategy:{type:String,values:Z4,default:"absolute"}}),Ux=ze({...eN,...Kx,id:String,style:{type:Ce([String,Array,Object])},className:{type:Ce([String,Array,Object])},effect:{type:Ce(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:true},pure:Boolean,focusOnShow:{type:Boolean,default:false},trapping:{type:Boolean,default:false},popperClass:{type:Ce([String,Array,Object])},popperStyle:{type:Ce([String,Array,Object])},referenceEl:{type:Ce(Object)},triggerTargetEl:{type:Ce(Object)},stopPopperMouseEvent:{type:Boolean,default:true},virtualTriggering:Boolean,zIndex:Number,...ds(["ariaLabel"])}),tN={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>true,blur:()=>true,close:()=>true},nN=(t,e)=>{const n=ref(false),r=ref();return {focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(r.value="first",e("blur"));},onFocusAfterTrapped:()=>{e("focus");},onFocusInTrap:u=>{t.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=true);},onFocusoutPrevented:u=>{t.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=false);},onReleaseRequested:()=>{n.value=false,e("close");}}},rN=(t,e=[])=>{const{placement:n,strategy:r,popperOptions:i}=t,s={placement:n,strategy:r,...i,modifiers:[...sN(t),...e]};return oN(s,i==null?void 0:i.modifiers),s},iN=t=>{if(at)return Ui(t)};function sN(t){const{offset:e,gpuAcceleration:n,fallbackPlacements:r}=t;return [{name:"offset",options:{offset:[0,e??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function oN(t,e){e&&(t.modifiers=[...t.modifiers,...e??[]]);}const aN=(t,e,n={})=>{const r={name:"updateState",enabled:true,phase:"write",fn:({state:l})=>{const u=lN(l);Object.assign(o.value,u);},requires:["computeStyles"]},i=computed(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=unref(n);return {onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:false}]}}),s=shallowRef(),o=ref({styles:{popper:{position:unref(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=()=>{s.value&&(s.value.destroy(),s.value=void 0);};return watch(i,l=>{const u=unref(s);u&&u.setOptions(l);},{deep:true}),watch([t,e],([l,u])=>{a(),!(!l||!u)&&(s.value=Q4(l,u,unref(i)));}),onBeforeUnmount(()=>{a();}),{state:computed(()=>{var l;return {...((l=unref(s))==null?void 0:l.state)||{}}}),styles:computed(()=>unref(o).styles),attributes:computed(()=>unref(o).attributes),update:()=>{var l;return (l=unref(s))==null?void 0:l.update()},forceUpdate:()=>{var l;return (l=unref(s))==null?void 0:l.forceUpdate()},instanceRef:computed(()=>unref(s))}};function lN(t){const e=Object.keys(t.elements),n=fd(e.map(i=>[i,t.styles[i]||{}])),r=fd(e.map(i=>[i,t.attributes[i]]));return {styles:n,attributes:r}}const uN=0,cN=t=>{const{popperInstanceRef:e,contentRef:n,triggerRef:r,role:i}=inject(E0,void 0),s=ref(),o=computed(()=>t.arrowOffset),a=computed(()=>({name:"eventListeners",enabled:!!t.visible})),l=computed(()=>{var y;const F=unref(s),x=(y=unref(o))!=null?y:uN;return {name:"arrow",enabled:!tx(F),options:{element:F,padding:x}}}),u=computed(()=>({onFirstUpdate:()=>{p();},...rN(t,[unref(l),unref(a)])})),c=computed(()=>iN(t.referenceEl)||unref(r)),{attributes:f,state:d,styles:h,update:p,forceUpdate:m,instanceRef:g}=aN(c,n,u);return watch(g,y=>e.value=y,{flush:"sync"}),onMounted(()=>{watch(()=>{var y;return (y=unref(c))==null?void 0:y.getBoundingClientRect()},()=>{p();});}),{attributes:f,arrowRef:s,contentRef:n,instanceRef:g,state:d,styles:h,role:i,forceUpdate:m,update:p}},fN=(t,{attributes:e,styles:n,role:r})=>{const{nextZIndex:i}=v0(),s=we("popper"),o=computed(()=>unref(e).popper),a=ref(ot(t.zIndex)?t.zIndex:i()),l=computed(()=>[s.b(),s.is("pure",t.pure),s.is(t.effect),t.popperClass]),u=computed(()=>[{zIndex:unref(a)},unref(n).popper,t.popperStyle||{}]),c=computed(()=>r.value==="dialog"?"false":void 0),f=computed(()=>unref(n).arrow||{});return {ariaModal:c,arrowStyle:f,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:a,updateZIndex:()=>{a.value=ot(t.zIndex)?t.zIndex:i();}}},dN=defineComponent({name:"ElPopperContent"}),hN=defineComponent({...dN,props:Ux,emits:tN,setup(t,{expose:e,emit:n}){const r=t,{focusStartRef:i,trapped:s,onFocusAfterReleased:o,onFocusAfterTrapped:a,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=nN(r,n),{attributes:f,arrowRef:d,contentRef:h,styles:p,instanceRef:m,role:g,update:y}=cN(r),{ariaModal:F,arrowStyle:x,contentAttrs:b,contentClass:D,contentStyle:C,updateZIndex:E}=fN(r,{styles:p,attributes:f,role:g}),S=inject(Ko,void 0);provide(Tx,{arrowStyle:x,arrowRef:d}),S&&provide(Ko,{...S,addInputId:Ks,removeInputId:Ks});let A;const M=(N=true)=>{y(),N&&E();},k=()=>{M(false),r.visible&&r.focusOnShow?s.value=true:r.visible===false&&(s.value=false);};return onMounted(()=>{watch(()=>r.triggerTargetEl,(N,O)=>{A==null||A(),A=void 0;const T=unref(N||h.value),I=unref(O||h.value);vr(T)&&(A=watch([g,()=>r.ariaLabel,F,()=>r.id],j=>{["role","aria-label","aria-modal","id"].forEach((_,R)=>{yc(j[R])?T.removeAttribute(_):T.setAttribute(_,j[R]);});},{immediate:true})),I!==T&&vr(I)&&["role","aria-label","aria-modal","id"].forEach(j=>{I.removeAttribute(j);});},{immediate:true}),watch(()=>r.visible,k,{immediate:true});}),onBeforeUnmount(()=>{A==null||A(),A=void 0;}),e({popperContentRef:h,popperInstanceRef:m,updatePopper:M,contentStyle:C}),(N,O)=>(openBlock(),createElementBlock("div",mergeProps({ref_key:"contentRef",ref:h},unref(b),{style:unref(C),class:unref(D),tabindex:"-1",onMouseenter:T=>N.$emit("mouseenter",T),onMouseleave:T=>N.$emit("mouseleave",T)}),[createVNode(unref(S0),{trapped:unref(s),"trap-on-focus-in":true,"focus-trap-el":unref(h),"focus-start-el":unref(i),onFocusAfterTrapped:unref(a),onFocusAfterReleased:unref(o),onFocusin:unref(l),onFocusoutPrevented:unref(u),onReleaseRequested:unref(c)},{default:withCtx(()=>[renderSlot(N.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var pN=Re(hN,[["__file","content.vue"]]);const mN=Dn(SP),N0=Symbol("elTooltip");function RD(){let t;const e=(r,i)=>{n(),t=window.setTimeout(r,i);},n=()=>window.clearTimeout(t);return Dc(()=>n()),{registerTimeout:e,cancelTimeout:n}}const gN=ze({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),yN=({showAfter:t,hideAfter:e,autoClose:n,open:r,close:i})=>{const{registerTimeout:s}=RD(),{registerTimeout:o,cancelTimeout:a}=RD();return {onOpen:c=>{s(()=>{r(c);const f=unref(n);ot(f)&&f>0&&o(()=>{i(c);},f);},unref(t));},onClose:c=>{a(),s(()=>{i(c);},unref(e));}}},I0=ze({to:{type:Ce([String,Object]),required:true},disabled:Boolean}),Vu=ze({...gN,...Ux,appendTo:{type:I0.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:Ce(Boolean),default:null},transition:String,teleported:{type:Boolean,default:true},disabled:Boolean,...ds(["ariaLabel"])}),Jx=ze({...Bx,disabled:Boolean,trigger:{type:Ce([String,Array]),default:"hover"},triggerKeys:{type:Ce(Array),default:()=>[Us.enter,Us.numpadEnter,Us.space]}}),vN=oh({type:Ce(Boolean),default:null}),DN=oh({type:Ce(Function)}),bN=t=>{const e=`update:${t}`,n=`onUpdate:${t}`,r=[e],i={[t]:vN,[n]:DN};return {useModelToggle:({indicator:o,toggleReason:a,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=getCurrentInstance(),{emit:h}=d,p=d.props,m=computed(()=>Le(p[n])),g=computed(()=>p[t]===null),y=E=>{o.value!==true&&(o.value=true,a&&(a.value=E),Le(c)&&c(E));},F=E=>{o.value!==false&&(o.value=false,a&&(a.value=E),Le(f)&&f(E));},x=E=>{if(p.disabled===true||Le(u)&&!u())return;const S=m.value&&at;S&&h(e,true),(g.value||!S)&&y(E);},b=E=>{if(p.disabled===true||!at)return;const S=m.value&&at;S&&h(e,false),(g.value||!S)&&F(E);},D=E=>{St(E)&&(p.disabled&&E?m.value&&h(e,false):o.value!==E&&(E?y():F()));},C=()=>{o.value?b():x();};return watch(()=>p[t],D),l&&d.appContext.config.globalProperties.$route!==void 0&&watch(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&b();}),onMounted(()=>{D(p[t]);}),{hide:b,show:x,toggle:C,hasUpdateHandler:m}},useModelToggleProps:i,useModelToggleEmits:r}},{useModelToggleProps:CN,useModelToggleEmits:xN,useModelToggle:EN}=bN("visible"),FN=ze({...kx,...CN,...Vu,...Jx,...Kx,showArrow:{type:Boolean,default:true}}),wN=[...xN,"before-show","before-hide","show","hide","open","close"],SN=(t,e)=>We(t)?t.includes(e):t===e,xa=(t,e,n)=>r=>{SN(unref(t),e)&&n(r);},zi=(t,e,{checkForDefaultPrevented:n=true}={})=>i=>{const s=t==null?void 0:t(i);if(n===false||!s)return e==null?void 0:e(i)},AN=defineComponent({name:"ElTooltipTrigger"}),TN=defineComponent({...AN,props:Jx,setup(t,{expose:e}){const n=t,r=we("tooltip"),{controlled:i,id:s,open:o,onOpen:a,onClose:l,onToggle:u}=inject(N0,void 0),c=ref(null),f=()=>{if(unref(i)||n.disabled)return  true},d=toRef(n,"trigger"),h=zi(f,xa(d,"hover",a)),p=zi(f,xa(d,"hover",l)),m=zi(f,xa(d,"click",b=>{b.button===0&&u(b);})),g=zi(f,xa(d,"focus",a)),y=zi(f,xa(d,"focus",l)),F=zi(f,xa(d,"contextmenu",b=>{b.preventDefault(),u(b);})),x=zi(f,b=>{const{code:D}=b;n.triggerKeys.includes(D)&&(b.preventDefault(),u(b));});return e({triggerRef:c}),(b,D)=>(openBlock(),createBlock(unref(RP),{id:unref(s),"virtual-ref":b.virtualRef,open:unref(o),"virtual-triggering":b.virtualTriggering,class:normalizeClass(unref(r).e("trigger")),onBlur:unref(y),onClick:unref(m),onContextmenu:unref(F),onFocus:unref(g),onMouseenter:unref(h),onMouseleave:unref(p),onKeydown:unref(x)},{default:withCtx(()=>[renderSlot(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var kN=Re(TN,[["__file","trigger.vue"]]);const BN=defineComponent({__name:"teleport",props:I0,setup(t){return (e,n)=>e.disabled?renderSlot(e.$slots,"default",{key:0}):(openBlock(),createBlock(Teleport,{key:1,to:e.to},[renderSlot(e.$slots,"default")],8,["to"]))}});var ON=Re(BN,[["__file","teleport.vue"]]);const Gx=Dn(ON),Xx=()=>{const t=n0(),e=Fx(),n=computed(()=>`${t.value}-popper-container-${e.prefix}`),r=computed(()=>`#${n.value}`);return {id:n,selector:r}},$N=t=>{const e=document.createElement("div");return e.id=t,document.body.appendChild(e),e},MN=()=>{const{id:t,selector:e}=Xx();return onBeforeMount(()=>{at&&(document.body.querySelector(e.value)||$N(t.value));}),{id:t,selector:e}},PN=defineComponent({name:"ElTooltipContent",inheritAttrs:false}),NN=defineComponent({...PN,props:Vu,setup(t,{expose:e}){const n=t,{selector:r}=Xx(),i=we("tooltip"),s=ref(),o=sx(()=>{var R;return (R=s.value)==null?void 0:R.popperContentRef});let a;const{controlled:l,id:u,open:c,trigger:f,onClose:d,onOpen:h,onShow:p,onHide:m,onBeforeShow:g,onBeforeHide:y}=inject(N0,void 0),F=computed(()=>n.transition||`${i.namespace.value}-fade-in-linear`),x=computed(()=>n.persistent);onBeforeUnmount(()=>{a==null||a();});const b=computed(()=>unref(x)?true:unref(c)),D=computed(()=>n.disabled?false:unref(c)),C=computed(()=>n.appendTo||r.value),E=computed(()=>{var R;return (R=n.style)!=null?R:{}}),S=ref(true),A=()=>{m(),_()&&Hi(document.body),S.value=true;},M=()=>{if(unref(l))return  true},k=zi(M,()=>{n.enterable&&unref(f)==="hover"&&h();}),N=zi(M,()=>{unref(f)==="hover"&&d();}),O=()=>{var R,L;(L=(R=s.value)==null?void 0:R.updatePopper)==null||L.call(R),g==null||g();},T=()=>{y==null||y();},I=()=>{p();},j=()=>{n.virtualTriggering||d();},_=R=>{var L;const G=(L=s.value)==null?void 0:L.popperContentRef,me=(R==null?void 0:R.relatedTarget)||document.activeElement;return G==null?void 0:G.contains(me)};return watch(()=>unref(c),R=>{R?(S.value=false,a=Y$(o,()=>{if(unref(l))return;unref(f)!=="hover"&&d();})):a==null||a();},{flush:"post"}),watch(()=>n.content,()=>{var R,L;(L=(R=s.value)==null?void 0:R.updatePopper)==null||L.call(R);}),e({contentRef:s,isFocusInsideContent:_}),(R,L)=>(openBlock(),createBlock(unref(Gx),{disabled:!R.teleported,to:unref(C)},{default:withCtx(()=>[createVNode(Transition,{name:unref(F),onAfterLeave:A,onBeforeEnter:O,onAfterEnter:I,onBeforeLeave:T},{default:withCtx(()=>[unref(b)?withDirectives((openBlock(),createBlock(unref(pN),mergeProps({key:0,id:unref(u),ref_key:"contentRef",ref:s},R.$attrs,{"aria-label":R.ariaLabel,"aria-hidden":S.value,"boundaries-padding":R.boundariesPadding,"fallback-placements":R.fallbackPlacements,"gpu-acceleration":R.gpuAcceleration,offset:R.offset,placement:R.placement,"popper-options":R.popperOptions,"arrow-offset":R.arrowOffset,strategy:R.strategy,effect:R.effect,enterable:R.enterable,pure:R.pure,"popper-class":R.popperClass,"popper-style":[R.popperStyle,unref(E)],"reference-el":R.referenceEl,"trigger-target-el":R.triggerTargetEl,visible:unref(D),"z-index":R.zIndex,onMouseenter:unref(k),onMouseleave:unref(N),onBlur:j,onClose:unref(d)}),{default:withCtx(()=>[renderSlot(R.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[vShow,unref(D)]]):createCommentVNode("v-if",true)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var IN=Re(NN,[["__file","content.vue"]]);const LN=defineComponent({name:"ElTooltip"}),RN=defineComponent({...LN,props:FN,emits:wN,setup(t,{expose:e,emit:n}){const r=t;MN();const i=we("tooltip"),s=Ti(),o=ref(),a=ref(),l=()=>{var x;const b=unref(o);b&&((x=b.popperInstanceRef)==null||x.update());},u=ref(false),c=ref(),{show:f,hide:d,hasUpdateHandler:h}=EN({indicator:u,toggleReason:c}),{onOpen:p,onClose:m}=yN({showAfter:toRef(r,"showAfter"),hideAfter:toRef(r,"hideAfter"),autoClose:toRef(r,"autoClose"),open:f,close:d}),g=computed(()=>St(r.visible)&&!h.value),y=computed(()=>[i.b(),r.popperClass]);provide(N0,{controlled:g,id:s,open:readonly(u),trigger:toRef(r,"trigger"),onOpen:x=>{p(x);},onClose:x=>{m(x);},onToggle:x=>{unref(u)?m(x):p(x);},onShow:()=>{n("show",c.value);},onHide:()=>{n("hide",c.value);},onBeforeShow:()=>{n("before-show",c.value);},onBeforeHide:()=>{n("before-hide",c.value);},updatePopper:l}),watch(()=>r.disabled,x=>{x&&u.value&&(u.value=false);});const F=x=>{var b;return (b=a.value)==null?void 0:b.isFocusInsideContent(x)};return onDeactivated(()=>u.value&&d()),e({popperRef:o,contentRef:a,isFocusInsideContent:F,updatePopper:l,onOpen:p,onClose:m,hide:d}),(x,b)=>(openBlock(),createBlock(unref(mN),{ref_key:"popperRef",ref:o,role:x.role},{default:withCtx(()=>[createVNode(kN,{disabled:x.disabled,trigger:x.trigger,"trigger-keys":x.triggerKeys,"virtual-ref":x.virtualRef,"virtual-triggering":x.virtualTriggering},{default:withCtx(()=>[x.$slots.default?renderSlot(x.$slots,"default",{key:0}):createCommentVNode("v-if",true)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),createVNode(IN,{ref_key:"contentRef",ref:a,"aria-label":x.ariaLabel,"boundaries-padding":x.boundariesPadding,content:x.content,disabled:x.disabled,effect:x.effect,enterable:x.enterable,"fallback-placements":x.fallbackPlacements,"hide-after":x.hideAfter,"gpu-acceleration":x.gpuAcceleration,offset:x.offset,persistent:x.persistent,"popper-class":unref(y),"popper-style":x.popperStyle,placement:x.placement,"popper-options":x.popperOptions,"arrow-offset":x.arrowOffset,pure:x.pure,"raw-content":x.rawContent,"reference-el":x.referenceEl,"trigger-target-el":x.triggerTargetEl,"show-after":x.showAfter,strategy:x.strategy,teleported:x.teleported,transition:x.transition,"virtual-triggering":x.virtualTriggering,"z-index":x.zIndex,"append-to":x.appendTo},{default:withCtx(()=>[renderSlot(x.$slots,"content",{},()=>[x.rawContent?(openBlock(),createElementBlock("span",{key:0,innerHTML:x.content},null,8,["innerHTML"])):(openBlock(),createElementBlock("span",{key:1},toDisplayString(x.content),1))]),x.showArrow?(openBlock(),createBlock(unref(kP),{key:0})):createCommentVNode("v-if",true)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var _N=Re(RN,[["__file","tooltip.vue"]]);const L0=Dn(_N),jN=ze({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:true},color:String,badgeStyle:{type:Ce([String,Object,Array])},offset:{type:Ce(Array),default:[0,0]},badgeClass:{type:String}}),VN=defineComponent({name:"ElBadge"}),qN=defineComponent({...VN,props:jN,setup(t,{expose:e}){const n=t,r=we("badge"),i=computed(()=>n.isDot?"":ot(n.value)&&ot(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),s=computed(()=>{var o,a,l,u,c;return [{backgroundColor:n.color,marginRight:Jr(-((a=(o=n.offset)==null?void 0:o[0])!=null?a:0)),marginTop:Jr((u=(l=n.offset)==null?void 0:l[1])!=null?u:0)},(c=n.badgeStyle)!=null?c:{}]});return e({content:i}),(o,a)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(r).b())},[renderSlot(o.$slots,"default"),createVNode(Transition,{name:`${unref(r).namespace.value}-zoom-in-center`,persisted:""},{default:withCtx(()=>[withDirectives(createElementVNode("sup",{class:normalizeClass([unref(r).e("content"),unref(r).em("content",o.type),unref(r).is("fixed",!!o.$slots.default),unref(r).is("dot",o.isDot),unref(r).is("hide-zero",!o.showZero&&n.value===0),o.badgeClass]),style:normalizeStyle(unref(s))},[renderSlot(o.$slots,"content",{value:unref(i)},()=>[createTextVNode(toDisplayString(unref(i)),1)])],6),[[vShow,!o.hidden&&(unref(i)||o.isDot||o.$slots.content)]])]),_:3},8,["name"])],2))}});var WN=Re(qN,[["__file","badge.vue"]]);const HN=Dn(WN),Yx=Symbol("buttonGroupContextKey"),Wa=({from:t,replacement:e,scope:n,version:r,ref:i,type:s="API"},o)=>{watch(()=>unref(o),a=>{},{immediate:true});},zN=(t,e)=>{Wa({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},computed(()=>t.type==="text"));const n=inject(Yx,void 0),r=ah("button"),{form:i}=co(),s=Gr(computed(()=>n==null?void 0:n.size)),o=kl(),a=ref(),l=useSlots(),u=computed(()=>{var g;return t.type||(n==null?void 0:n.type)||((g=r.value)==null?void 0:g.type)||""}),c=computed(()=>{var g,y,F;return (F=(y=t.autoInsertSpace)!=null?y:(g=r.value)==null?void 0:g.autoInsertSpace)!=null?F:false}),f=computed(()=>{var g,y,F;return (F=(y=t.plain)!=null?y:(g=r.value)==null?void 0:g.plain)!=null?F:false}),d=computed(()=>{var g,y,F;return (F=(y=t.round)!=null?y:(g=r.value)==null?void 0:g.round)!=null?F:false}),h=computed(()=>t.tag==="button"?{ariaDisabled:o.value||t.loading,disabled:o.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),p=computed(()=>{var g;const y=(g=l.default)==null?void 0:g.call(l);if(c.value&&(y==null?void 0:y.length)===1){const F=y[0];if((F==null?void 0:F.type)===Text){const x=F.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(x.trim())}}return  false});return {_disabled:o,_size:s,_type:u,_ref:a,_props:h,_plain:f,_round:d,shouldAddSpace:p,handleClick:g=>{if(o.value||t.loading){g.stopPropagation();return}t.nativeType==="reset"&&(i==null||i.resetFields()),e("click",g);}}},KN=["default","primary","success","warning","info","danger","text",""],UN=["button","submit","reset"],lm=ze({size:cs,disabled:Boolean,type:{type:String,values:KN,default:""},icon:{type:pr},nativeType:{type:String,values:UN,default:"button"},loading:Boolean,loadingIcon:{type:pr,default:()=>Za},plain:{type:Boolean,default:void 0},text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Ce([String,Object]),default:"button"}}),JN={click:t=>t instanceof MouseEvent};function sn(t,e){GN(t)&&(t="100%");var n=XN(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function Yc(t){return Math.min(1,Math.max(0,t))}function GN(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function XN(t){return typeof t=="string"&&t.indexOf("%")!==-1}function Qx(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Qc(t){return t<=1?"".concat(Number(t)*100,"%"):t}function Mo(t){return t.length===1?"0"+t:String(t)}function YN(t,e,n){return {r:sn(t,255)*255,g:sn(e,255)*255,b:sn(n,255)*255}}function _D(t,e,n){t=sn(t,255),e=sn(e,255),n=sn(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),s=0,o=0,a=(r+i)/2;if(r===i)o=0,s=0;else {var l=r-i;switch(o=a>.5?l/(2-r-i):l/(r+i),r){case t:s=(e-n)/l+(e<n?6:0);break;case e:s=(n-t)/l+2;break;case n:s=(t-e)/l+4;break}s/=6;}return {h:s,s:o,l:a}}function Yh(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function QN(t,e,n){var r,i,s;if(t=sn(t,360),e=sn(e,100),n=sn(n,100),e===0)i=n,s=n,r=n;else {var o=n<.5?n*(1+e):n+e-n*e,a=2*n-o;r=Yh(a,o,t+1/3),i=Yh(a,o,t),s=Yh(a,o,t-1/3);}return {r:r*255,g:i*255,b:s*255}}function jD(t,e,n){t=sn(t,255),e=sn(e,255),n=sn(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),s=0,o=r,a=r-i,l=r===0?0:a/r;if(r===i)s=0;else {switch(r){case t:s=(e-n)/a+(e<n?6:0);break;case e:s=(n-t)/a+2;break;case n:s=(t-e)/a+4;break}s/=6;}return {h:s,s:l,v:o}}function ZN(t,e,n){t=sn(t,360)*6,e=sn(e,100),n=sn(n,100);var r=Math.floor(t),i=t-r,s=n*(1-e),o=n*(1-i*e),a=n*(1-(1-i)*e),l=r%6,u=[n,o,s,s,a,n][l],c=[a,n,n,o,s,s][l],f=[s,s,a,n,n,o][l];return {r:u*255,g:c*255,b:f*255}}function VD(t,e,n,r){var i=[Mo(Math.round(t).toString(16)),Mo(Math.round(e).toString(16)),Mo(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function eI(t,e,n,r,i){var s=[Mo(Math.round(t).toString(16)),Mo(Math.round(e).toString(16)),Mo(Math.round(n).toString(16)),Mo(tI(r))];return i&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))&&s[3].startsWith(s[3].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}function tI(t){return Math.round(parseFloat(t)*255).toString(16)}function qD(t){return rr(t)/255}function rr(t){return parseInt(t,16)}function nI(t){return {r:t>>16,g:(t&65280)>>8,b:t&255}}var um={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function rI(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,s=null,o=false,a=false;return typeof t=="string"&&(t=oI(t)),typeof t=="object"&&(qi(t.r)&&qi(t.g)&&qi(t.b)?(e=YN(t.r,t.g,t.b),o=true,a=String(t.r).substr(-1)==="%"?"prgb":"rgb"):qi(t.h)&&qi(t.s)&&qi(t.v)?(r=Qc(t.s),i=Qc(t.v),e=ZN(t.h,r,i),o=true,a="hsv"):qi(t.h)&&qi(t.s)&&qi(t.l)&&(r=Qc(t.s),s=Qc(t.l),e=QN(t.h,r,s),o=true,a="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=Qx(n),{ok:o,format:t.format||a,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var iI="[-\\+]?\\d+%?",sI="[-\\+]?\\d*\\.\\d+%?",Vs="(?:".concat(sI,")|(?:").concat(iI,")"),Qh="[\\s|\\(]+(".concat(Vs,")[,|\\s]+(").concat(Vs,")[,|\\s]+(").concat(Vs,")\\s*\\)?"),Zh="[\\s|\\(]+(".concat(Vs,")[,|\\s]+(").concat(Vs,")[,|\\s]+(").concat(Vs,")[,|\\s]+(").concat(Vs,")\\s*\\)?"),Nr={CSS_UNIT:new RegExp(Vs),rgb:new RegExp("rgb"+Qh),rgba:new RegExp("rgba"+Zh),hsl:new RegExp("hsl"+Qh),hsla:new RegExp("hsla"+Zh),hsv:new RegExp("hsv"+Qh),hsva:new RegExp("hsva"+Zh),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function oI(t){if(t=t.trim().toLowerCase(),t.length===0)return  false;var e=false;if(um[t])t=um[t],e=true;else if(t==="transparent")return {r:0,g:0,b:0,a:0,format:"name"};var n=Nr.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=Nr.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Nr.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=Nr.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Nr.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=Nr.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Nr.hex8.exec(t),n?{r:rr(n[1]),g:rr(n[2]),b:rr(n[3]),a:qD(n[4]),format:e?"name":"hex8"}:(n=Nr.hex6.exec(t),n?{r:rr(n[1]),g:rr(n[2]),b:rr(n[3]),format:e?"name":"hex"}:(n=Nr.hex4.exec(t),n?{r:rr(n[1]+n[1]),g:rr(n[2]+n[2]),b:rr(n[3]+n[3]),a:qD(n[4]+n[4]),format:e?"name":"hex8"}:(n=Nr.hex3.exec(t),n?{r:rr(n[1]+n[1]),g:rr(n[2]+n[2]),b:rr(n[3]+n[3]),format:e?"name":"hex"}:false)))))))))}function qi(t){return !!Nr.CSS_UNIT.exec(String(t))}var aI=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var r;if(e instanceof t)return e;typeof e=="number"&&(e=nI(e)),this.originalInput=e;var i=rI(e);this.originalInput=e,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok;}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return !this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return (e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,r,i,s=e.r/255,o=e.g/255,a=e.b/255;return s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),a<=.03928?i=a/12.92:i=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=Qx(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=jD(this.r,this.g,this.b);return {h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=jD(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=_D(this.r,this.g,this.b);return {h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=_D(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=false),VD(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=false),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=false),eI(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=false),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=false),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return {r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(r,")"):"rgba(".concat(e,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return "".concat(Math.round(sn(n,255)*100),"%")};return {r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(sn(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return "transparent";if(this.a<1)return  false;for(var e="#"+VD(this.r,this.g,this.b,false),n=0,r=Object.entries(um);n<r.length;n++){var i=r[n],s=i[0],o=i[1];if(e===o)return s}return  false},t.prototype.toString=function(e){var n=!!e;e=e??this.format;var r=false,i=this.a<1&&this.a>=0,s=!n&&i&&(e.startsWith("hex")||e==="name");return s?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(true)),e==="hex4"&&(r=this.toHex8String(true)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},t.prototype.toNumber=function(){return (Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=Yc(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=Yc(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=Yc(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=Yc(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var r=this.toRgb(),i=new t(e).toRgb(),s=n/100,o={r:(i.r-r.r)*s+r.r,g:(i.g-r.g)*s+r.g,b:(i.b-r.b)*s+r.b,a:(i.a-r.a)*s+r.a};return new t(o)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,s=[this];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,s.push(new t(r));return s},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),r=n.h,i=n.s,s=n.v,o=[],a=1/e;e--;)o.push(new t({h:r,s:i,v:s})),s=(s+a)%1;return o},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return [this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),i=n.a+r.a*(1-n.a);return new t({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,i=[this],s=360/e,o=1;o<e;o++)i.push(new t({h:(r+o*s)%360,s:n.s,l:n.l}));return i},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}();function Os(t,e=20){return t.mix("#141414",e).toString()}function lI(t){const e=kl(),n=we("button");return computed(()=>{let r={},i=t.color;if(i){const s=i.match(/var\((.*?)\)/);s&&(i=window.getComputedStyle(window.document.documentElement).getPropertyValue(s[1]));const o=new aI(i),a=t.dark?o.tint(20).toString():Os(o,20);if(t.plain)r=n.cssVarBlock({"bg-color":t.dark?Os(o,90):o.tint(90).toString(),"text-color":i,"border-color":t.dark?Os(o,50):o.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":a,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":a}),e.value&&(r[n.cssVarBlockName("disabled-bg-color")]=t.dark?Os(o,90):o.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=t.dark?Os(o,50):o.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=t.dark?Os(o,80):o.tint(80).toString());else {const l=t.dark?Os(o,30):o.tint(30).toString(),u=o.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":i,"text-color":u,"border-color":i,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":a,"active-border-color":a}),e.value){const c=t.dark?Os(o,50):o.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=c,r[n.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=c;}}}return r})}const uI=defineComponent({name:"ElButton"}),cI=defineComponent({...uI,props:lm,emits:JN,setup(t,{expose:e,emit:n}){const r=t,i=lI(r),s=we("button"),{_ref:o,_size:a,_type:l,_disabled:u,_props:c,_plain:f,_round:d,shouldAddSpace:h,handleClick:p}=zN(r,n),m=computed(()=>[s.b(),s.m(l.value),s.m(a.value),s.is("disabled",u.value),s.is("loading",r.loading),s.is("plain",f.value),s.is("round",d.value),s.is("circle",r.circle),s.is("text",r.text),s.is("link",r.link),s.is("has-bg",r.bg)]);return e({ref:o,size:a,type:l,disabled:u,shouldAddSpace:h}),(g,y)=>(openBlock(),createBlock(resolveDynamicComponent(g.tag),mergeProps({ref_key:"_ref",ref:o},unref(c),{class:unref(m),style:unref(i),onClick:unref(p)}),{default:withCtx(()=>[g.loading?(openBlock(),createElementBlock(Fragment,{key:0},[g.$slots.loading?renderSlot(g.$slots,"loading",{key:0}):(openBlock(),createBlock(unref(Ot),{key:1,class:normalizeClass(unref(s).is("loading"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(g.loadingIcon)))]),_:1},8,["class"]))],64)):g.icon||g.$slots.icon?(openBlock(),createBlock(unref(Ot),{key:1},{default:withCtx(()=>[g.icon?(openBlock(),createBlock(resolveDynamicComponent(g.icon),{key:0})):renderSlot(g.$slots,"icon",{key:1})]),_:3})):createCommentVNode("v-if",true),g.$slots.default?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass({[unref(s).em("text","expand")]:unref(h)})},[renderSlot(g.$slots,"default")],2)):createCommentVNode("v-if",true)]),_:3},16,["class","style","onClick"]))}});var fI=Re(cI,[["__file","button.vue"]]);const dI={size:lm.size,type:lm.type},hI=defineComponent({name:"ElButtonGroup"}),pI=defineComponent({...hI,props:dI,setup(t){const e=t;provide(Yx,reactive({size:toRef(e,"size"),type:toRef(e,"type")}));const n=we("button");return (r,i)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(n).b("group"))},[renderSlot(r.$slots,"default")],2))}});var Zx=Re(pI,[["__file","button-group.vue"]]);const _n=Dn(fI,{ButtonGroup:Zx});fs(Zx);var mI=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gte(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function gI(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype;}else n={};return Object.defineProperty(n,"__esModule",{value:true}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:true,get:function(){return t[r]}});}),n}var Rf=(t=>(t[t.TEXT=1]="TEXT",t[t.CLASS=2]="CLASS",t[t.STYLE=4]="STYLE",t[t.PROPS=8]="PROPS",t[t.FULL_PROPS=16]="FULL_PROPS",t[t.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",t[t.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",t[t.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",t[t.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",t[t.NEED_PATCH=512]="NEED_PATCH",t[t.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",t[t.HOISTED=-1]="HOISTED",t[t.BAIL=-2]="BAIL",t))(Rf||{});const nu=t=>{const e=We(t)?t:[t],n=[];return e.forEach(r=>{var i;We(r)?n.push(...nu(r)):isVNode(r)&&((i=r.component)!=null&&i.subTree)?n.push(r,...nu(r.component.subTree)):isVNode(r)&&We(r.children)?n.push(...nu(r.children)):isVNode(r)&&r.shapeFlag===2?n.push(...nu(r.type())):n.push(r);}),n},eE={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:cs,tabindex:[String,Number],validateEvent:{type:Boolean,default:true},...ds(["ariaControls"])},tE={[Lt]:t=>He(t)||ot(t)||St(t),change:t=>He(t)||ot(t)||St(t)},Bl=Symbol("checkboxGroupContextKey"),yI=({model:t,isChecked:e})=>{const n=inject(Bl,void 0),r=computed(()=>{var s,o;const a=(s=n==null?void 0:n.max)==null?void 0:s.value,l=(o=n==null?void 0:n.min)==null?void 0:o.value;return !Xt(a)&&t.value.length>=a&&!e.value||!Xt(l)&&t.value.length<=l&&e.value});return {isDisabled:kl(computed(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},vI=(t,{model:e,isLimitExceeded:n,hasOwnLabel:r,isDisabled:i,isLabeledByFormItem:s})=>{const o=inject(Bl,void 0),{formItem:a}=co(),{emit:l}=getCurrentInstance();function u(p){var m,g,y,F;return [true,t.trueValue,t.trueLabel].includes(p)?(g=(m=t.trueValue)!=null?m:t.trueLabel)!=null?g:true:(F=(y=t.falseValue)!=null?y:t.falseLabel)!=null?F:false}function c(p,m){l(fr,u(p),m);}function f(p){if(n.value)return;const m=p.target;l(fr,u(m.checked),p);}async function d(p){n.value||!r.value&&!i.value&&s.value&&(p.composedPath().some(y=>y.tagName==="LABEL")||(e.value=u([false,t.falseValue,t.falseLabel].includes(e.value)),await nextTick(),c(e.value,p)));}const h=computed(()=>(o==null?void 0:o.validateEvent)||t.validateEvent);return watch(()=>t.modelValue,()=>{h.value&&(a==null||a.validate("change").catch(p=>void 0));}),{handleChange:f,onClickRoot:d}},DI=t=>{const e=ref(false),{emit:n}=getCurrentInstance(),r=inject(Bl,void 0),i=computed(()=>Xt(r)===false),s=ref(false),o=computed({get(){var a,l;return i.value?(a=r==null?void 0:r.modelValue)==null?void 0:a.value:(l=t.modelValue)!=null?l:e.value},set(a){var l,u;i.value&&We(a)?(s.value=((l=r==null?void 0:r.max)==null?void 0:l.value)!==void 0&&a.length>(r==null?void 0:r.max.value)&&a.length>o.value.length,s.value===false&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,a))):(n(Lt,a),e.value=a);}});return {model:o,isGroup:i,isLimitExceeded:s}},bI=(t,e,{model:n})=>{const r=inject(Bl,void 0),i=ref(false),s=computed(()=>Gi(t.value)?t.label:t.value),o=computed(()=>{const c=n.value;return St(c)?c:We(c)?At(s.value)?c.map(toRaw).some(f=>qa(f,s.value)):c.map(toRaw).includes(s.value):c!=null?c===t.trueValue||c===t.trueLabel:!!c}),a=Gr(computed(()=>{var c;return (c=r==null?void 0:r.size)==null?void 0:c.value}),{prop:true}),l=Gr(computed(()=>{var c;return (c=r==null?void 0:r.size)==null?void 0:c.value})),u=computed(()=>!!e.default||!Gi(s.value));return {checkboxButtonSize:a,isChecked:o,isFocused:i,checkboxSize:l,hasOwnLabel:u,actualValue:s}},nE=(t,e)=>{const{formItem:n}=co(),{model:r,isGroup:i,isLimitExceeded:s}=DI(t),{isFocused:o,isChecked:a,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,actualValue:f}=bI(t,e,{model:r}),{isDisabled:d}=yI({model:r,isChecked:a}),{inputId:h,isLabeledByFormItem:p}=Tl(t,{formItemContext:n,disableIdGeneration:c,disableIdManagement:i}),{handleChange:m,onClickRoot:g}=vI(t,{model:r,isLimitExceeded:s,hasOwnLabel:c,isDisabled:d,isLabeledByFormItem:p});return (()=>{function F(){var x,b;We(r.value)&&!r.value.includes(f.value)?r.value.push(f.value):r.value=(b=(x=t.trueValue)!=null?x:t.trueLabel)!=null?b:true;}t.checked&&F();})(),Wa({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},computed(()=>i.value&&Gi(t.value))),Wa({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},computed(()=>!!t.trueLabel)),Wa({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},computed(()=>!!t.falseLabel)),{inputId:h,isLabeledByFormItem:p,isChecked:a,isDisabled:d,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:r,actualValue:f,handleChange:m,onClickRoot:g}},CI=defineComponent({name:"ElCheckbox"}),xI=defineComponent({...CI,props:eE,emits:tE,setup(t){const e=t,n=useSlots(),{inputId:r,isLabeledByFormItem:i,isChecked:s,isDisabled:o,isFocused:a,checkboxSize:l,hasOwnLabel:u,model:c,actualValue:f,handleChange:d,onClickRoot:h}=nE(e,n),p=we("checkbox"),m=computed(()=>[p.b(),p.m(l.value),p.is("disabled",o.value),p.is("bordered",e.border),p.is("checked",s.value)]),g=computed(()=>[p.e("input"),p.is("disabled",o.value),p.is("checked",s.value),p.is("indeterminate",e.indeterminate),p.is("focus",a.value)]);return (y,F)=>(openBlock(),createBlock(resolveDynamicComponent(!unref(u)&&unref(i)?"span":"label"),{class:normalizeClass(unref(m)),"aria-controls":y.indeterminate?y.ariaControls:null,onClick:unref(h)},{default:withCtx(()=>{var x,b,D,C;return [createElementVNode("span",{class:normalizeClass(unref(g))},[y.trueValue||y.falseValue||y.trueLabel||y.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,id:unref(r),"onUpdate:modelValue":E=>isRef(c)?c.value=E:null,class:normalizeClass(unref(p).e("original")),type:"checkbox",indeterminate:y.indeterminate,name:y.name,tabindex:y.tabindex,disabled:unref(o),"true-value":(b=(x=y.trueValue)!=null?x:y.trueLabel)!=null?b:true,"false-value":(C=(D=y.falseValue)!=null?D:y.falseLabel)!=null?C:false,onChange:unref(d),onFocus:E=>a.value=true,onBlur:E=>a.value=false,onClick:withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[vModelCheckbox,unref(c)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,id:unref(r),"onUpdate:modelValue":E=>isRef(c)?c.value=E:null,class:normalizeClass(unref(p).e("original")),type:"checkbox",indeterminate:y.indeterminate,disabled:unref(o),value:unref(f),name:y.name,tabindex:y.tabindex,onChange:unref(d),onFocus:E=>a.value=true,onBlur:E=>a.value=false,onClick:withModifiers(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[vModelCheckbox,unref(c)]]),createElementVNode("span",{class:normalizeClass(unref(p).e("inner"))},null,2)],2),unref(u)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(p).e("label"))},[renderSlot(y.$slots,"default"),y.$slots.default?createCommentVNode("v-if",true):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(y.label),1)],64))],2)):createCommentVNode("v-if",true)]}),_:3},8,["class","aria-controls","onClick"]))}});var EI=Re(xI,[["__file","checkbox.vue"]]);const FI=defineComponent({name:"ElCheckboxButton"}),wI=defineComponent({...FI,props:eE,emits:tE,setup(t){const e=t,n=useSlots(),{isFocused:r,isChecked:i,isDisabled:s,checkboxButtonSize:o,model:a,actualValue:l,handleChange:u}=nE(e,n),c=inject(Bl,void 0),f=we("checkbox"),d=computed(()=>{var p,m,g,y;const F=(m=(p=c==null?void 0:c.fill)==null?void 0:p.value)!=null?m:"";return {backgroundColor:F,borderColor:F,color:(y=(g=c==null?void 0:c.textColor)==null?void 0:g.value)!=null?y:"",boxShadow:F?`-1px 0 0 0 ${F}`:void 0}}),h=computed(()=>[f.b("button"),f.bm("button",o.value),f.is("disabled",s.value),f.is("checked",i.value),f.is("focus",r.value)]);return (p,m)=>{var g,y,F,x;return openBlock(),createElementBlock("label",{class:normalizeClass(unref(h))},[p.trueValue||p.falseValue||p.trueLabel||p.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":b=>isRef(a)?a.value=b:null,class:normalizeClass(unref(f).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:unref(s),"true-value":(y=(g=p.trueValue)!=null?g:p.trueLabel)!=null?y:true,"false-value":(x=(F=p.falseValue)!=null?F:p.falseLabel)!=null?x:false,onChange:unref(u),onFocus:b=>r.value=true,onBlur:b=>r.value=false,onClick:withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[vModelCheckbox,unref(a)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,"onUpdate:modelValue":b=>isRef(a)?a.value=b:null,class:normalizeClass(unref(f).be("button","original")),type:"checkbox",name:p.name,tabindex:p.tabindex,disabled:unref(s),value:unref(l),onChange:unref(u),onFocus:b=>r.value=true,onBlur:b=>r.value=false,onClick:withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[vModelCheckbox,unref(a)]]),p.$slots.default||p.label?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass(unref(f).be("button","inner")),style:normalizeStyle(unref(i)?unref(d):void 0)},[renderSlot(p.$slots,"default",{},()=>[createTextVNode(toDisplayString(p.label),1)])],6)):createCommentVNode("v-if",true)],2)}}});var rE=Re(wI,[["__file","checkbox-button.vue"]]);const SI=ze({modelValue:{type:Ce(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:cs,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:true},...ds(["ariaLabel"])}),AI={[Lt]:t=>We(t),change:t=>We(t)},TI=defineComponent({name:"ElCheckboxGroup"}),kI=defineComponent({...TI,props:SI,emits:AI,setup(t,{emit:e}){const n=t,r=we("checkbox"),{formItem:i}=co(),{inputId:s,isLabeledByFormItem:o}=Tl(n,{formItemContext:i}),a=async u=>{e(Lt,u),await nextTick(),e(fr,u);},l=computed({get(){return n.modelValue},set(u){a(u);}});return provide(Bl,{...ix(toRefs(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:a}),watch(()=>n.modelValue,()=>{n.validateEvent&&(i==null||i.validate("change").catch(u=>void 0));}),(u,c)=>{var f;return openBlock(),createBlock(resolveDynamicComponent(u.tag),{id:unref(s),class:normalizeClass(unref(r).b("group")),role:"group","aria-label":unref(o)?void 0:u.ariaLabel||"checkbox-group","aria-labelledby":unref(o)?(f=unref(i))==null?void 0:f.labelId:void 0},{default:withCtx(()=>[renderSlot(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var iE=Re(kI,[["__file","checkbox-group.vue"]]);const sl=Dn(EI,{CheckboxButton:rE,CheckboxGroup:iE});fs(rE);fs(iE);const sE=ze({modelValue:{type:[String,Number,Boolean],default:void 0},size:cs,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),BI=ze({...sE,border:Boolean}),oE={[Lt]:t=>He(t)||ot(t)||St(t),[fr]:t=>He(t)||ot(t)||St(t)},aE=Symbol("radioGroupKey"),lE=(t,e)=>{const n=ref(),r=inject(aE,void 0),i=computed(()=>!!r),s=computed(()=>Gi(t.value)?t.label:t.value),o=computed({get(){return i.value?r.modelValue:t.modelValue},set(f){i.value?r.changeEvent(f):e&&e(Lt,f),n.value.checked=t.modelValue===s.value;}}),a=Gr(computed(()=>r==null?void 0:r.size)),l=kl(computed(()=>r==null?void 0:r.disabled)),u=ref(false),c=computed(()=>l.value||i.value&&o.value!==s.value?-1:0);return Wa({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},computed(()=>i.value&&Gi(t.value))),{radioRef:n,isGroup:i,radioGroup:r,focus:u,size:a,disabled:l,tabIndex:c,modelValue:o,actualValue:s}},OI=defineComponent({name:"ElRadio"}),$I=defineComponent({...OI,props:BI,emits:oE,setup(t,{emit:e}){const n=t,r=we("radio"),{radioRef:i,radioGroup:s,focus:o,size:a,disabled:l,modelValue:u,actualValue:c}=lE(n,e);function f(){nextTick(()=>e(fr,u.value));}return (d,h)=>{var p;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(r).b(),unref(r).is("disabled",unref(l)),unref(r).is("focus",unref(o)),unref(r).is("bordered",d.border),unref(r).is("checked",unref(u)===unref(c)),unref(r).m(unref(a))])},[createElementVNode("span",{class:normalizeClass([unref(r).e("input"),unref(r).is("disabled",unref(l)),unref(r).is("checked",unref(u)===unref(c))])},[withDirectives(createElementVNode("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":m=>isRef(u)?u.value=m:null,class:normalizeClass(unref(r).e("original")),value:unref(c),name:d.name||((p=unref(s))==null?void 0:p.name),disabled:unref(l),checked:unref(u)===unref(c),type:"radio",onFocus:m=>o.value=true,onBlur:m=>o.value=false,onChange:f,onClick:withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[vModelRadio,unref(u)]]),createElementVNode("span",{class:normalizeClass(unref(r).e("inner"))},null,2)],2),createElementVNode("span",{class:normalizeClass(unref(r).e("label")),onKeydown:withModifiers(()=>{},["stop"])},[renderSlot(d.$slots,"default",{},()=>[createTextVNode(toDisplayString(d.label),1)])],42,["onKeydown"])],2)}}});var MI=Re($I,[["__file","radio.vue"]]);const PI=ze({...sE}),NI=defineComponent({name:"ElRadioButton"}),II=defineComponent({...NI,props:PI,setup(t){const e=t,n=we("radio"),{radioRef:r,focus:i,size:s,disabled:o,modelValue:a,radioGroup:l,actualValue:u}=lE(e),c=computed(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return (f,d)=>{var h;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(n).b("button"),unref(n).is("active",unref(a)===unref(u)),unref(n).is("disabled",unref(o)),unref(n).is("focus",unref(i)),unref(n).bm("button",unref(s))])},[withDirectives(createElementVNode("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":p=>isRef(a)?a.value=p:null,class:normalizeClass(unref(n).be("button","original-radio")),value:unref(u),type:"radio",name:f.name||((h=unref(l))==null?void 0:h.name),disabled:unref(o),onFocus:p=>i.value=true,onBlur:p=>i.value=false,onClick:withModifiers(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[vModelRadio,unref(a)]]),createElementVNode("span",{class:normalizeClass(unref(n).be("button","inner")),style:normalizeStyle(unref(a)===unref(u)?unref(c):{}),onKeydown:withModifiers(()=>{},["stop"])},[renderSlot(f.$slots,"default",{},()=>[createTextVNode(toDisplayString(f.label),1)])],46,["onKeydown"])],2)}}});var uE=Re(II,[["__file","radio-button.vue"]]);const LI=ze({id:{type:String,default:void 0},size:cs,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:true},...ds(["ariaLabel"])}),RI=oE,_I=defineComponent({name:"ElRadioGroup"}),jI=defineComponent({..._I,props:LI,emits:RI,setup(t,{emit:e}){const n=t,r=we("radio"),i=Ti(),s=ref(),{formItem:o}=co(),{inputId:a,isLabeledByFormItem:l}=Tl(n,{formItemContext:o}),u=f=>{e(Lt,f),nextTick(()=>e(fr,f));};onMounted(()=>{const f=s.value.querySelectorAll("[type=radio]"),d=f[0];!Array.from(f).some(h=>h.checked)&&d&&(d.tabIndex=0);});const c=computed(()=>n.name||i.value);return provide(aE,reactive({...toRefs(n),changeEvent:u,name:c})),watch(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(f=>void 0));}),(f,d)=>(openBlock(),createElementBlock("div",{id:unref(a),ref_key:"radioGroupRef",ref:s,class:normalizeClass(unref(r).b("group")),role:"radiogroup","aria-label":unref(l)?void 0:f.ariaLabel||"radio-group","aria-labelledby":unref(l)?unref(o).labelId:void 0},[renderSlot(f.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var cE=Re(jI,[["__file","radio-group.vue"]]);Dn(MI,{RadioButton:uE,RadioGroup:cE});const fh=fs(cE),dh=fs(uE),VI=(t="")=>t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),cm=ze({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:Cc},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),qI={close:t=>t instanceof MouseEvent,click:t=>t instanceof MouseEvent},WI=defineComponent({name:"ElTag"}),HI=defineComponent({...WI,props:cm,emits:qI,setup(t,{emit:e}){const n=t,r=Gr(),i=we("tag"),s=computed(()=>{const{type:u,hit:c,effect:f,closable:d,round:h}=n;return [i.b(),i.is("closable",d),i.m(u||"primary"),i.m(r.value),i.m(f),i.is("hit",c),i.is("round",h)]}),o=u=>{e("close",u);},a=u=>{e("click",u);},l=u=>{var c,f,d;(d=(f=(c=u==null?void 0:u.component)==null?void 0:c.subTree)==null?void 0:f.component)!=null&&d.bum&&(u.component.subTree.component.bum=null);};return (u,c)=>u.disableTransitions?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(s)),style:normalizeStyle({backgroundColor:u.color}),onClick:a},[createElementVNode("span",{class:normalizeClass(unref(i).e("content"))},[renderSlot(u.$slots,"default")],2),u.closable?(openBlock(),createBlock(unref(Ot),{key:0,class:normalizeClass(unref(i).e("close")),onClick:withModifiers(o,["stop"])},{default:withCtx(()=>[createVNode(unref(pd))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",true)],6)):(openBlock(),createBlock(Transition,{key:1,name:`${unref(i).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:l},{default:withCtx(()=>[createElementVNode("span",{class:normalizeClass(unref(s)),style:normalizeStyle({backgroundColor:u.color}),onClick:a},[createElementVNode("span",{class:normalizeClass(unref(i).e("content"))},[renderSlot(u.$slots,"default")],2),u.closable?(openBlock(),createBlock(unref(Ot),{key:0,class:normalizeClass(unref(i).e("close")),onClick:withModifiers(o,["stop"])},{default:withCtx(()=>[createVNode(unref(pd))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",true)],6)]),_:3},8,["name"]))}});var zI=Re(HI,[["__file","tag.vue"]]);const KI=Dn(zI),Is=new Map;if(at){let t;document.addEventListener("mousedown",e=>t=e),document.addEventListener("mouseup",e=>{if(t){for(const n of Is.values())for(const{documentHandler:r}of n)r(e,t);t=void 0;}});}function WD(t,e){let n=[];return We(e.arg)?n=e.arg:vr(e.arg)&&n.push(e.arg),function(r,i){const s=e.instance.popperRef,o=r.target,a=i==null?void 0:i.target,l=!e||!e.instance,u=!o||!a,c=t.contains(o)||t.contains(a),f=t===o,d=n.length&&n.some(p=>p==null?void 0:p.contains(o))||n.length&&n.includes(a),h=s&&(s.contains(o)||s.contains(a));l||u||c||f||d||h||e.value(r,i);}}const fE={beforeMount(t,e){Is.has(t)||Is.set(t,[]),Is.get(t).push({documentHandler:WD(t,e),bindingFn:e.value});},updated(t,e){Is.has(t)||Is.set(t,[]);const n=Is.get(t),r=n.findIndex(s=>s.bindingFn===e.oldValue),i={documentHandler:WD(t,e),bindingFn:e.value};r>=0?n.splice(r,1,i):n.push(i);},unmounted(t){Is.delete(t);}},UI=ze({a11y:{type:Boolean,default:true},locale:{type:Ce(Object)},size:cs,button:{type:Ce(Object)},link:{type:Ce(Object)},experimentalFeatures:{type:Ce(Object)},keyboardNavigation:{type:Boolean,default:true},message:{type:Ce(Object)},zIndex:Number,namespace:{type:String,default:"el"},...hx}),ir={};defineComponent({name:"ElConfigProvider",props:UI,setup(t,{slots:e}){watch(()=>t.message,r=>{Object.assign(ir,r??{});},{immediate:true,deep:true});const n=px(t);return ()=>renderSlot(e,"default",{config:n==null?void 0:n.value})}});const R0=t=>{if(!t)return {onClick:Ks,onMousedown:Ks,onMouseup:Ks};let e=false,n=false;return {onClick:o=>{e&&n&&t(o),e=n=false;},onMousedown:o=>{e=o.target===o.currentTarget;},onMouseup:o=>{n=o.target===o.currentTarget;}}},JI=ze({mask:{type:Boolean,default:true},customMaskEvent:Boolean,overlayClass:{type:Ce([String,Array,Object])},zIndex:{type:Ce([String,Number])}}),GI={click:t=>t instanceof MouseEvent},XI="overlay";var YI=defineComponent({name:"ElOverlay",props:JI,emits:GI,setup(t,{slots:e,emit:n}){const r=we(XI),i=l=>{n("click",l);},{onClick:s,onMousedown:o,onMouseup:a}=R0(t.customMaskEvent?void 0:i);return ()=>t.mask?createVNode("div",{class:[r.b(),t.overlayClass],style:{zIndex:t.zIndex},onClick:s,onMousedown:o,onMouseup:a},[renderSlot(e,"default")],Rf.STYLE|Rf.CLASS|Rf.PROPS,["onClick","onMouseup","onMousedown"]):h("div",{class:t.overlayClass,style:{zIndex:t.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[renderSlot(e,"default")])}});const dE=YI,hE=Symbol("dialogInjectionKey"),pE=ze({center:Boolean,alignCenter:Boolean,closeIcon:{type:pr},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:true},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),QI={close:()=>true},mE=(t,e,n,r)=>{const i={offsetX:0,offsetY:0},s=(f,d)=>{if(t.value){const{offsetX:h,offsetY:p}=i,m=t.value.getBoundingClientRect(),g=m.left,y=m.top,F=m.width,x=m.height,b=document.documentElement.clientWidth,D=document.documentElement.clientHeight,C=-g+h,E=-y+p,S=b-g-F+h,A=D-y-x+p;r!=null&&r.value||(f=Math.min(Math.max(f,C),S),d=Math.min(Math.max(d,E),A)),i.offsetX=f,i.offsetY=d,t.value.style.transform=`translate(${Jr(f)}, ${Jr(d)})`;}},o=f=>{const d=f.clientX,h=f.clientY,{offsetX:p,offsetY:m}=i,g=F=>{const x=p+F.clientX-d,b=m+F.clientY-h;s(x,b);},y=()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",y);};document.addEventListener("mousemove",g),document.addEventListener("mouseup",y);},a=()=>{e.value&&t.value&&(e.value.addEventListener("mousedown",o),window.addEventListener("resize",c));},l=()=>{e.value&&t.value&&(e.value.removeEventListener("mousedown",o),window.removeEventListener("resize",c));},u=()=>{i.offsetX=0,i.offsetY=0,t.value&&(t.value.style.transform="");},c=()=>{const{offsetX:f,offsetY:d}=i;s(f,d);};return onMounted(()=>{watchEffect(()=>{n.value?a():l();});}),onBeforeUnmount(()=>{l();}),{resetPosition:u,updatePosition:c}},ZI=(...t)=>e=>{t.forEach(n=>{Le(n)?n(e):n.value=e;});},e9=defineComponent({name:"ElDialogContent"}),t9=defineComponent({...e9,props:pE,emits:QI,setup(t,{expose:e}){const n=t,{t:r}=bc(),{Close:i}=KM,{dialogRef:s,headerRef:o,bodyId:a,ns:l,style:u}=inject(hE),{focusTrapRef:c}=inject(Mx),f=computed(()=>[l.b(),l.is("fullscreen",n.fullscreen),l.is("draggable",n.draggable),l.is("align-center",n.alignCenter),{[l.m("center")]:n.center}]),d=ZI(c,s),h=computed(()=>n.draggable),p=computed(()=>n.overflow),{resetPosition:m,updatePosition:g}=mE(s,o,h,p);return e({resetPosition:m,updatePosition:g}),(y,F)=>(openBlock(),createElementBlock("div",{ref:unref(d),class:normalizeClass(unref(f)),style:normalizeStyle(unref(u)),tabindex:"-1"},[createElementVNode("header",{ref_key:"headerRef",ref:o,class:normalizeClass([unref(l).e("header"),y.headerClass,{"show-close":y.showClose}])},[renderSlot(y.$slots,"header",{},()=>[createElementVNode("span",{role:"heading","aria-level":y.ariaLevel,class:normalizeClass(unref(l).e("title"))},toDisplayString(y.title),11,["aria-level"])]),y.showClose?(openBlock(),createElementBlock("button",{key:0,"aria-label":unref(r)("el.dialog.close"),class:normalizeClass(unref(l).e("headerbtn")),type:"button",onClick:x=>y.$emit("close")},[createVNode(unref(Ot),{class:normalizeClass(unref(l).e("close"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(y.closeIcon||unref(i))))]),_:1},8,["class"])],10,["aria-label","onClick"])):createCommentVNode("v-if",true)],2),createElementVNode("div",{id:unref(a),class:normalizeClass([unref(l).e("body"),y.bodyClass])},[renderSlot(y.$slots,"default")],10,["id"]),y.$slots.footer?(openBlock(),createElementBlock("footer",{key:0,class:normalizeClass([unref(l).e("footer"),y.footerClass])},[renderSlot(y.$slots,"footer")],2)):createCommentVNode("v-if",true)],6))}});var n9=Re(t9,[["__file","dialog-content.vue"]]);const r9=ze({...pE,appendToBody:Boolean,appendTo:{type:I0.to.type,default:"body"},beforeClose:{type:Ce(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:true},closeOnPressEscape:{type:Boolean,default:true},lockScroll:{type:Boolean,default:true},modal:{type:Boolean,default:true},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}}),i9={open:()=>true,opened:()=>true,close:()=>true,closed:()=>true,[Lt]:t=>St(t),openAutoFocus:()=>true,closeAutoFocus:()=>true},gE=(t,e={})=>{isRef(t)||Sl("[useLockscreen]","You need to pass a ref param to this function");const n=e.ns||we("popup"),r=computed(()=>n.bm("parent","hidden"));if(!at||$o(document.body,r.value))return;let i=0,s=false,o="0";const a=()=>{setTimeout(()=>{typeof document>"u"||s&&document&&(document.body.style.width=o,Ai(document.body,r.value));},200);};watch(t,l=>{if(!l){a();return}s=!$o(document.body,r.value),s&&(o=document.body.style.width,zo(document.body,r.value)),i=xM(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=Sa(document.body,"overflowY");i>0&&(u||c==="scroll")&&s&&(document.body.style.width=`calc(100% - ${i}px)`);}),onScopeDispose(()=>a());},s9=(t,e)=>{var n;const i=getCurrentInstance().emit,{nextZIndex:s}=v0();let o="";const a=Ti(),l=Ti(),u=ref(false),c=ref(false),f=ref(false),d=ref((n=t.zIndex)!=null?n:s());let h,p;const m=ah("namespace",fu),g=computed(()=>{const I={},j=`--${m.value}-dialog`;return t.fullscreen||(t.top&&(I[`${j}-margin-top`]=t.top),t.width&&(I[`${j}-width`]=Jr(t.width))),I}),y=computed(()=>t.alignCenter?{display:"flex"}:{});function F(){i("opened");}function x(){i("closed"),i(Lt,false),t.destroyOnClose&&(f.value=false);}function b(){i("close");}function D(){p==null||p(),h==null||h(),t.openDelay&&t.openDelay>0?{stop:h}=sm(()=>A(),t.openDelay):A();}function C(){h==null||h(),p==null||p(),t.closeDelay&&t.closeDelay>0?{stop:p}=sm(()=>M(),t.closeDelay):M();}function E(){function I(j){j||(c.value=true,u.value=false);}t.beforeClose?t.beforeClose(I):C();}function S(){t.closeOnClickModal&&E();}function A(){at&&(u.value=true);}function M(){u.value=false;}function k(){i("openAutoFocus");}function N(){i("closeAutoFocus");}function O(I){var j;((j=I.detail)==null?void 0:j.focusReason)==="pointer"&&I.preventDefault();}t.lockScroll&&gE(u);function T(){t.closeOnPressEscape&&E();}return watch(()=>t.modelValue,I=>{I?(c.value=false,D(),f.value=true,d.value=tx(t.zIndex)?s():d.value++,nextTick(()=>{i("open"),e.value&&(e.value.parentElement.scrollTop=0,e.value.parentElement.scrollLeft=0,e.value.scrollTop=0);})):u.value&&C();}),watch(()=>t.fullscreen,I=>{e.value&&(I?(o=e.value.style.transform,e.value.style.transform=""):e.value.style.transform=o);}),onMounted(()=>{t.modelValue&&(u.value=true,f.value=true,D());}),{afterEnter:F,afterLeave:x,beforeLeave:b,handleClose:E,onModalClick:S,close:C,doClose:M,onOpenAutoFocus:k,onCloseAutoFocus:N,onCloseRequested:T,onFocusoutPrevented:O,titleId:a,bodyId:l,closed:c,style:g,overlayDialogStyle:y,rendered:f,visible:u,zIndex:d}},o9=defineComponent({name:"ElDialog",inheritAttrs:false}),a9=defineComponent({...o9,props:r9,emits:i9,setup(t,{expose:e}){const n=t,r=useSlots();Wa({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},computed(()=>!!r.title));const i=we("dialog"),s=ref(),o=ref(),a=ref(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:d,rendered:h,zIndex:p,afterEnter:m,afterLeave:g,beforeLeave:y,handleClose:F,onModalClick:x,onOpenAutoFocus:b,onCloseAutoFocus:D,onCloseRequested:C,onFocusoutPrevented:E}=s9(n,s);provide(hE,{dialogRef:s,headerRef:o,bodyId:c,ns:i,rendered:h,style:f});const S=R0(x),A=computed(()=>n.draggable&&!n.fullscreen);return e({visible:l,dialogContentRef:a,resetPosition:()=>{var k;(k=a.value)==null||k.resetPosition();},handleClose:F}),(k,N)=>(openBlock(),createBlock(unref(Gx),{to:k.appendTo,disabled:k.appendTo!=="body"?false:!k.appendToBody},{default:withCtx(()=>[createVNode(Transition,{name:"dialog-fade",onAfterEnter:unref(m),onAfterLeave:unref(g),onBeforeLeave:unref(y),persisted:""},{default:withCtx(()=>[withDirectives(createVNode(unref(dE),{"custom-mask-event":"",mask:k.modal,"overlay-class":k.modalClass,"z-index":unref(p)},{default:withCtx(()=>[createElementVNode("div",{role:"dialog","aria-modal":"true","aria-label":k.title||void 0,"aria-labelledby":k.title?void 0:unref(u),"aria-describedby":unref(c),class:normalizeClass(`${unref(i).namespace.value}-overlay-dialog`),style:normalizeStyle(unref(d)),onClick:unref(S).onClick,onMousedown:unref(S).onMousedown,onMouseup:unref(S).onMouseup},[createVNode(unref(S0),{loop:"",trapped:unref(l),"focus-start-el":"container",onFocusAfterTrapped:unref(b),onFocusAfterReleased:unref(D),onFocusoutPrevented:unref(E),onReleaseRequested:unref(C)},{default:withCtx(()=>[unref(h)?(openBlock(),createBlock(n9,mergeProps({key:0,ref_key:"dialogContentRef",ref:a},k.$attrs,{center:k.center,"align-center":k.alignCenter,"close-icon":k.closeIcon,draggable:unref(A),overflow:k.overflow,fullscreen:k.fullscreen,"header-class":k.headerClass,"body-class":k.bodyClass,"footer-class":k.footerClass,"show-close":k.showClose,title:k.title,"aria-level":k.headerAriaLevel,onClose:unref(F)}),createSlots({header:withCtx(()=>[k.$slots.title?renderSlot(k.$slots,"title",{key:1}):renderSlot(k.$slots,"header",{key:0,close:unref(F),titleId:unref(u),titleClass:unref(i).e("title")})]),default:withCtx(()=>[renderSlot(k.$slots,"default")]),_:2},[k.$slots.footer?{name:"footer",fn:withCtx(()=>[renderSlot(k.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):createCommentVNode("v-if",true)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[vShow,unref(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var l9=Re(a9,[["__file","dialog.vue"]]);const u9=Dn(l9),c9=ze({size:{type:String,values:Cc},disabled:Boolean}),f9=ze({...c9,model:Object,rules:{type:Ce(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:true},validateOnRuleChange:{type:Boolean,default:true},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean],default:true}}),d9={validate:(t,e,n)=>(We(t)||He(t))&&St(e)&&He(n)};function h9(){const t=ref([]),e=computed(()=>{if(!t.value.length)return "0";const s=Math.max(...t.value);return s?`${s}px`:""});function n(s){const o=t.value.indexOf(s);return o===-1&&e.value,o}function r(s,o){if(s&&o){const a=n(o);t.value.splice(a,1,s);}else s&&t.value.push(s);}function i(s){const o=n(s);o>-1&&t.value.splice(o,1);}return {autoLabelWidth:e,registerLabelWidth:r,deregisterLabelWidth:i}}const Zc=(t,e)=>{const n=_r(e);return n.length>0?t.filter(r=>r.prop&&n.includes(r.prop)):t},p9="ElForm",m9=defineComponent({name:p9}),g9=defineComponent({...m9,props:f9,emits:d9,setup(t,{expose:e,emit:n}){const r=t,i=ref(),s=reactive([]),o=Gr(),a=we("form"),l=computed(()=>{const{labelPosition:b,inline:D}=r;return [a.b(),a.m(o.value||"default"),{[a.m(`label-${b}`)]:b,[a.m("inline")]:D}]}),u=b=>s.find(D=>D.prop===b),c=b=>{s.push(b);},f=b=>{b.prop&&s.splice(s.indexOf(b),1);},d=(b=[])=>{r.model&&Zc(s,b).forEach(D=>D.resetField());},h=(b=[])=>{Zc(s,b).forEach(D=>D.clearValidate());},p=computed(()=>!!r.model),m=b=>{if(s.length===0)return [];const D=Zc(s,b);return D.length?D:[]},g=async b=>F(void 0,b),y=async(b=[])=>{if(!p.value)return  false;const D=m(b);if(D.length===0)return  true;let C={};for(const E of D)try{await E.validate(""),E.validateState==="error"&&E.resetField();}catch(S){C={...C,...S};}return Object.keys(C).length===0?true:Promise.reject(C)},F=async(b=[],D)=>{const C=!Le(D);try{const E=await y(b);return E===!0&&await(D==null?void 0:D(E)),E}catch(E){if(E instanceof Error)throw E;const S=E;if(r.scrollToError&&i.value){const A=i.value.querySelector(`.${a.b()}-item.is-error`);A==null||A.scrollIntoView(r.scrollIntoViewOptions);}return await(D==null?void 0:D(false,S)),C&&Promise.reject(S)}},x=b=>{var D;const C=Zc(s,b)[0];C&&((D=C.$el)==null||D.scrollIntoView(r.scrollIntoViewOptions));};return watch(()=>r.rules,()=>{r.validateOnRuleChange&&g().catch(b=>void 0);},{deep:true,flush:"post"}),provide(Al,reactive({...toRefs(r),emit:n,resetFields:d,clearValidate:h,validateField:F,getField:u,addField:c,removeField:f,...h9()})),e({validate:g,validateField:F,resetFields:d,clearValidate:h,scrollToField:x,fields:s}),(b,D)=>(openBlock(),createElementBlock("form",{ref_key:"formRef",ref:i,class:normalizeClass(unref(l))},[renderSlot(b.$slots,"default")],2))}});var y9=Re(g9,[["__file","form.vue"]]);function Po(){return Po=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);}return t},Po.apply(this,arguments)}function v9(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,qu(t,e);}function fm(t){return fm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fm(t)}function qu(t,e){return qu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},qu(t,e)}function D9(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return  false;if(typeof Proxy=="function")return  true;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return  false}}function _f(t,e,n){return D9()?_f=Reflect.construct.bind():_f=function(i,s,o){var a=[null];a.push.apply(a,s);var l=Function.bind.apply(i,a),u=new l;return o&&qu(u,o.prototype),u},_f.apply(null,arguments)}function b9(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function dm(t){var e=typeof Map=="function"?new Map:void 0;return dm=function(r){if(r===null||!b9(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i);}function i(){return _f(r,arguments,fm(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:false,writable:true,configurable:true}}),qu(i,r)},dm(t)}var C9=/%[sdj%]/g,x9=function(){};function hm(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var r=n.field;e[r]=e[r]||[],e[r].push(n);}),e}function ar(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=0,s=n.length;if(typeof t=="function")return t.apply(null,n);if(typeof t=="string"){var o=t.replace(C9,function(a){if(a==="%%")return "%";if(i>=s)return a;switch(a){case "%s":return String(n[i++]);case "%d":return Number(n[i++]);case "%j":try{return JSON.stringify(n[i++])}catch{return "[Circular]"}break;default:return a}});return o}return t}function E9(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function Kt(t,e){return !!(t==null||e==="array"&&Array.isArray(t)&&!t.length||E9(e)&&typeof t=="string"&&!t)}function F9(t,e,n){var r=[],i=0,s=t.length;function o(a){r.push.apply(r,a||[]),i++,i===s&&n(r);}t.forEach(function(a){e(a,o);});}function HD(t,e,n){var r=0,i=t.length;function s(o){if(o&&o.length){n(o);return}var a=r;r=r+1,a<i?e(t[a],s):n([]);}s([]);}function w9(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n]||[]);}),e}var zD=function(t){v9(e,t);function e(n,r){var i;return i=t.call(this,"Async Validation Error")||this,i.errors=n,i.fields=r,i}return e}(dm(Error));function S9(t,e,n,r,i){if(e.first){var s=new Promise(function(d,h){var p=function(y){return r(y),y.length?h(new zD(y,hm(y))):d(i)},m=w9(t);HD(m,n,p);});return s.catch(function(d){return d}),s}var o=e.firstFields===true?Object.keys(t):e.firstFields||[],a=Object.keys(t),l=a.length,u=0,c=[],f=new Promise(function(d,h){var p=function(g){if(c.push.apply(c,g),u++,u===l)return r(c),c.length?h(new zD(c,hm(c))):d(i)};a.length||(r(c),d(i)),a.forEach(function(m){var g=t[m];o.indexOf(m)!==-1?HD(g,n,p):F9(g,n,p);});});return f.catch(function(d){return d}),f}function A9(t){return !!(t&&t.message!==void 0)}function T9(t,e){for(var n=t,r=0;r<e.length;r++){if(n==null)return n;n=n[e[r]];}return n}function KD(t,e){return function(n){var r;return t.fullFields?r=T9(e,t.fullFields):r=e[n.field||t.fullField],A9(n)?(n.field=n.field||t.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||t.fullField}}}function UD(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];typeof r=="object"&&typeof t[n]=="object"?t[n]=Po({},t[n],r):t[n]=r;}}return t}var yE=function(e,n,r,i,s,o){e.required&&(!r.hasOwnProperty(e.field)||Kt(n,o||e.type))&&i.push(ar(s.messages.required,e.fullField));},k9=function(e,n,r,i,s){(/^\s+$/.test(n)||n==="")&&i.push(ar(s.messages.whitespace,e.fullField));},ef,B9=function(){if(ef)return ef;var t="[a-fA-F\\d:]",e=function(b){return b&&b.includeBoundaries?"(?:(?<=\\s|^)(?="+t+")|(?<="+t+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=(`
(?:
(?:`+r+":){7}(?:"+r+`|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),s=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),o=new RegExp("^"+n+"$"),a=new RegExp("^"+i+"$"),l=function(b){return b&&b.exact?s:new RegExp("(?:"+e(b)+n+e(b)+")|(?:"+e(b)+i+e(b)+")","g")};l.v4=function(x){return x&&x.exact?o:new RegExp(""+e(x)+n+e(x),"g")},l.v6=function(x){return x&&x.exact?a:new RegExp(""+e(x)+i+e(x),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,d=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',F="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+h+p+m+")"+g+y;return ef=new RegExp("(?:^"+F+"$)","i"),ef},JD={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ru={integer:function(e){return ru.number(e)&&parseInt(e,10)===e},float:function(e){return ru.number(e)&&!ru.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return  true;try{return !!new RegExp(e)}catch{return  false}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?false:typeof e=="number"},object:function(e){return typeof e=="object"&&!ru.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(JD.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(B9())},hex:function(e){return typeof e=="string"&&!!e.match(JD.hex)}},O9=function(e,n,r,i,s){if(e.required&&n===void 0){yE(e,n,r,i,s);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;o.indexOf(a)>-1?ru[a](n)||i.push(ar(s.messages.types[a],e.fullField,e.type)):a&&typeof n!==e.type&&i.push(ar(s.messages.types[a],e.fullField,e.type));},$9=function(e,n,r,i,s){var o=typeof e.len=="number",a=typeof e.min=="number",l=typeof e.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,d=typeof n=="number",h=typeof n=="string",p=Array.isArray(n);if(d?f="number":h?f="string":p&&(f="array"),!f)return  false;p&&(c=n.length),h&&(c=n.replace(u,"_").length),o?c!==e.len&&i.push(ar(s.messages[f].len,e.fullField,e.len)):a&&!l&&c<e.min?i.push(ar(s.messages[f].min,e.fullField,e.min)):l&&!a&&c>e.max?i.push(ar(s.messages[f].max,e.fullField,e.max)):a&&l&&(c<e.min||c>e.max)&&i.push(ar(s.messages[f].range,e.fullField,e.min,e.max));},Ea="enum",M9=function(e,n,r,i,s){e[Ea]=Array.isArray(e[Ea])?e[Ea]:[],e[Ea].indexOf(n)===-1&&i.push(ar(s.messages[Ea],e.fullField,e[Ea].join(", ")));},P9=function(e,n,r,i,s){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||i.push(ar(s.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var o=new RegExp(e.pattern);o.test(n)||i.push(ar(s.messages.pattern.mismatch,e.fullField,n,e.pattern));}}},qe={required:yE,whitespace:k9,type:O9,range:$9,enum:M9,pattern:P9},N9=function(e,n,r,i,s){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(Kt(n,"string")&&!e.required)return r();qe.required(e,n,i,o,s,"string"),Kt(n,"string")||(qe.type(e,n,i,o,s),qe.range(e,n,i,o,s),qe.pattern(e,n,i,o,s),e.whitespace===true&&qe.whitespace(e,n,i,o,s));}r(o);},I9=function(e,n,r,i,s){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(Kt(n)&&!e.required)return r();qe.required(e,n,i,o,s),n!==void 0&&qe.type(e,n,i,o,s);}r(o);},L9=function(e,n,r,i,s){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(n===""&&(n=void 0),Kt(n)&&!e.required)return r();qe.required(e,n,i,o,s),n!==void 0&&(qe.type(e,n,i,o,s),qe.range(e,n,i,o,s));}r(o);},R9=function(e,n,r,i,s){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(Kt(n)&&!e.required)return r();qe.required(e,n,i,o,s),n!==void 0&&qe.type(e,n,i,o,s);}r(o);},_9=function(e,n,r,i,s){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(Kt(n)&&!e.required)return r();qe.required(e,n,i,o,s),Kt(n)||qe.type(e,n,i,o,s);}r(o);},j9=function(e,n,r,i,s){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(Kt(n)&&!e.required)return r();qe.required(e,n,i,o,s),n!==void 0&&(qe.type(e,n,i,o,s),qe.range(e,n,i,o,s));}r(o);},V9=function(e,n,r,i,s){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(Kt(n)&&!e.required)return r();qe.required(e,n,i,o,s),n!==void 0&&(qe.type(e,n,i,o,s),qe.range(e,n,i,o,s));}r(o);},q9=function(e,n,r,i,s){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(n==null&&!e.required)return r();qe.required(e,n,i,o,s,"array"),n!=null&&(qe.type(e,n,i,o,s),qe.range(e,n,i,o,s));}r(o);},W9=function(e,n,r,i,s){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(Kt(n)&&!e.required)return r();qe.required(e,n,i,o,s),n!==void 0&&qe.type(e,n,i,o,s);}r(o);},H9="enum",z9=function(e,n,r,i,s){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(Kt(n)&&!e.required)return r();qe.required(e,n,i,o,s),n!==void 0&&qe[H9](e,n,i,o,s);}r(o);},K9=function(e,n,r,i,s){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(Kt(n,"string")&&!e.required)return r();qe.required(e,n,i,o,s),Kt(n,"string")||qe.pattern(e,n,i,o,s);}r(o);},U9=function(e,n,r,i,s){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(Kt(n,"date")&&!e.required)return r();if(qe.required(e,n,i,o,s),!Kt(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),qe.type(e,l,i,o,s),l&&qe.range(e,l.getTime(),i,o,s);}}r(o);},J9=function(e,n,r,i,s){var o=[],a=Array.isArray(n)?"array":typeof n;qe.required(e,n,i,o,s,a),r(o);},ep=function(e,n,r,i,s){var o=e.type,a=[],l=e.required||!e.required&&i.hasOwnProperty(e.field);if(l){if(Kt(n,o)&&!e.required)return r();qe.required(e,n,i,a,s,o),Kt(n,o)||qe.type(e,n,i,a,s);}r(a);},G9=function(e,n,r,i,s){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(Kt(n)&&!e.required)return r();qe.required(e,n,i,o,s);}r(o);},gu={string:N9,method:I9,number:L9,boolean:R9,regexp:_9,integer:j9,float:V9,array:q9,object:W9,enum:z9,pattern:K9,date:U9,url:ep,hex:ep,email:ep,required:J9,any:G9};function pm(){return {default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var mm=pm(),Fc=function(){function t(n){this.rules=null,this._messages=mm,this.define(n);}var e=t.prototype;return e.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(s){var o=r[s];i.rules[s]=Array.isArray(o)?o:[o];});},e.messages=function(r){return r&&(this._messages=UD(pm(),r)),this._messages},e.validate=function(r,i,s){var o=this;i===void 0&&(i={}),s===void 0&&(s=function(){});var a=r,l=i,u=s;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,a),Promise.resolve(a);function c(m){var g=[],y={};function F(b){if(Array.isArray(b)){var D;g=(D=g).concat.apply(D,b);}else g.push(b);}for(var x=0;x<m.length;x++)F(m[x]);g.length?(y=hm(g),u(g,y)):u(null,a);}if(l.messages){var f=this.messages();f===mm&&(f=pm()),UD(f,l.messages),l.messages=f;}else l.messages=this.messages();var d={},h=l.keys||Object.keys(this.rules);h.forEach(function(m){var g=o.rules[m],y=a[m];g.forEach(function(F){var x=F;typeof x.transform=="function"&&(a===r&&(a=Po({},a)),y=a[m]=x.transform(y)),typeof x=="function"?x={validator:x}:x=Po({},x),x.validator=o.getValidationMethod(x),x.validator&&(x.field=m,x.fullField=x.fullField||m,x.type=o.getType(x),d[m]=d[m]||[],d[m].push({rule:x,value:y,source:a,field:m}));});});var p={};return S9(d,l,function(m,g){var y=m.rule,F=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");F=F&&(y.required||!y.required&&m.value),y.field=m.field;function x(C,E){return Po({},E,{fullField:y.fullField+"."+C,fullFields:y.fullFields?[].concat(y.fullFields,[C]):[C]})}function b(C){C===void 0&&(C=[]);var E=Array.isArray(C)?C:[C];!l.suppressWarning&&E.length&&t.warning("async-validator:",E),E.length&&y.message!==void 0&&(E=[].concat(y.message));var S=E.map(KD(y,a));if(l.first&&S.length)return p[y.field]=1,g(S);if(!F)g(S);else {if(y.required&&!m.value)return y.message!==void 0?S=[].concat(y.message).map(KD(y,a)):l.error&&(S=[l.error(y,ar(l.messages.required,y.field))]),g(S);var A={};y.defaultField&&Object.keys(m.value).map(function(N){A[N]=y.defaultField;}),A=Po({},A,m.rule.fields);var M={};Object.keys(A).forEach(function(N){var O=A[N],T=Array.isArray(O)?O:[O];M[N]=T.map(x.bind(null,N));});var k=new t(M);k.messages(l.messages),m.rule.options&&(m.rule.options.messages=l.messages,m.rule.options.error=l.error),k.validate(m.value,m.rule.options||l,function(N){var O=[];S&&S.length&&O.push.apply(O,S),N&&N.length&&O.push.apply(O,N),g(O.length?O:null);});}}var D;if(y.asyncValidator)D=y.asyncValidator(y,m.value,b,m.source,l);else if(y.validator){try{D=y.validator(y,m.value,b,m.source,l);}catch(C){console.error==null||console.error(C),l.suppressValidatorError||setTimeout(function(){throw C},0),b(C.message);}D===true?b():D===false?b(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||(y.fullField||y.field)+" fails"):D instanceof Array?b(D):D instanceof Error&&b(D.message);}D&&D.then&&D.then(function(){return b()},function(C){return b(C)});},function(m){c(m);},a)},e.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!gu.hasOwnProperty(r.type))throw new Error(ar("Unknown rule type %s",r.type));return r.type||"string"},e.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var i=Object.keys(r),s=i.indexOf("message");return s!==-1&&i.splice(s,1),i.length===1&&i[0]==="required"?gu.required:gu[this.getType(r)]||void 0},t}();Fc.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");gu[e]=n;};Fc.warning=x9;Fc.messages=mm;Fc.validators=gu;const X9=["","error","validating","success"],Y9=ze({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:Ce([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Ce([Object,Array])},error:String,validateStatus:{type:String,values:X9},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:true},size:{type:String,values:Cc}}),GD="ElLabelWrap";var Q9=defineComponent({name:GD,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(t,{slots:e}){const n=inject(Al,void 0),r=inject(Ko);r||Sl(GD,"usage: <el-form-item><label-wrap /></el-form-item>");const i=we("form"),s=ref(),o=ref(0),a=()=>{var c;if((c=s.value)!=null&&c.firstElementChild){const f=window.getComputedStyle(s.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},l=(c="update")=>{nextTick(()=>{e.default&&t.isAutoWidth&&(c==="update"?o.value=a():c==="remove"&&(n==null||n.deregisterLabelWidth(o.value)));});},u=()=>l("update");return onMounted(()=>{u();}),onBeforeUnmount(()=>{l("remove");}),onUpdated(()=>u()),watch(o,(c,f)=>{t.updateAll&&(n==null||n.registerLabelWidth(c,f));}),or(computed(()=>{var c,f;return (f=(c=s.value)==null?void 0:c.firstElementChild)!=null?f:null}),u),()=>{var c,f;if(!e)return null;const{isAutoWidth:d}=t;if(d){const h=n==null?void 0:n.autoLabelWidth,p=r==null?void 0:r.hasLabel,m={};if(p&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-o.value),F=(r.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";g&&(m[F]=`${g}px`);}return createVNode("div",{ref:s,class:[i.be("item","label-wrap")],style:m},[(c=e.default)==null?void 0:c.call(e)])}else return createVNode(Fragment,{ref:s},[(f=e.default)==null?void 0:f.call(e)])}}});const Z9=defineComponent({name:"ElFormItem"}),eL=defineComponent({...Z9,props:Y9,setup(t,{expose:e}){const n=t,r=useSlots(),i=inject(Al,void 0),s=inject(Ko,void 0),o=Gr(void 0,{formItem:false}),a=we("form-item"),l=Ti().value,u=ref([]),c=ref(""),f=G$(c,100),d=ref(""),h=ref();let p,m=false;const g=computed(()=>n.labelPosition||(i==null?void 0:i.labelPosition)),y=computed(()=>{if(g.value==="top")return {};const ne=Jr(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return ne?{width:ne}:{}}),F=computed(()=>{if(g.value==="top"||i!=null&&i.inline)return {};if(!n.label&&!n.labelWidth&&M)return {};const ne=Jr(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return !n.label&&!r.label?{marginLeft:ne}:{}}),x=computed(()=>[a.b(),a.m(o.value),a.is("error",c.value==="error"),a.is("validating",c.value==="validating"),a.is("success",c.value==="success"),a.is("required",I.value||n.required),a.is("no-asterisk",i==null?void 0:i.hideRequiredAsterisk),(i==null?void 0:i.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[a.m("feedback")]:i==null?void 0:i.statusIcon,[a.m(`label-${g.value}`)]:g.value}]),b=computed(()=>St(n.inlineMessage)?n.inlineMessage:(i==null?void 0:i.inlineMessage)||false),D=computed(()=>[a.e("error"),{[a.em("error","inline")]:b.value}]),C=computed(()=>n.prop?He(n.prop)?n.prop:n.prop.join("."):""),E=computed(()=>!!(n.label||r.label)),S=computed(()=>n.for||(u.value.length===1?u.value[0]:void 0)),A=computed(()=>!S.value&&E.value),M=!!s,k=computed(()=>{const ne=i==null?void 0:i.model;if(!(!ne||!n.prop))return hu(ne,n.prop).value}),N=computed(()=>{const{required:ne}=n,be=[];n.rules&&be.push(..._r(n.rules));const Ze=i==null?void 0:i.rules;if(Ze&&n.prop){const _e=hu(Ze,n.prop).value;_e&&be.push(..._r(_e));}if(ne!==void 0){const _e=be.map((rt,dn)=>[rt,dn]).filter(([rt])=>Object.keys(rt).includes("required"));if(_e.length>0)for(const[rt,dn]of _e)rt.required!==ne&&(be[dn]={...rt,required:ne});else be.push({required:ne});}return be}),O=computed(()=>N.value.length>0),T=ne=>N.value.filter(Ze=>!Ze.trigger||!ne?true:We(Ze.trigger)?Ze.trigger.includes(ne):Ze.trigger===ne).map(({trigger:Ze,..._e})=>_e),I=computed(()=>N.value.some(ne=>ne.required)),j=computed(()=>{var ne;return f.value==="error"&&n.showMessage&&((ne=i==null?void 0:i.showMessage)!=null?ne:true)}),_=computed(()=>`${n.label||""}${(i==null?void 0:i.labelSuffix)||""}`),R=ne=>{c.value=ne;},L=ne=>{var be,Ze;const{errors:_e,fields:rt}=ne;(!_e||!rt)&&console.error(ne),R("error"),d.value=_e?(Ze=(be=_e==null?void 0:_e[0])==null?void 0:be.message)!=null?Ze:`${n.prop} is required`:"",i==null||i.emit("validate",n.prop,false,d.value);},G=()=>{R("success"),i==null||i.emit("validate",n.prop,true,"");},me=async ne=>{const be=C.value;return new Fc({[be]:ne}).validate({[be]:k.value},{firstFields:true}).then(()=>(G(),true)).catch(_e=>(L(_e),Promise.reject(_e)))},ye=async(ne,be)=>{if(m||!n.prop)return  false;const Ze=Le(be);if(!O.value)return be==null||be(false),false;const _e=T(ne);return _e.length===0?(be==null||be(true),true):(R("validating"),me(_e).then(()=>(be==null||be(true),true)).catch(rt=>{const{fields:dn}=rt;return be==null||be(false,dn),Ze?false:Promise.reject(dn)}))},ve=()=>{R(""),d.value="",m=false;},Se=async()=>{const ne=i==null?void 0:i.model;if(!ne||!n.prop)return;const be=hu(ne,n.prop);m=true,be.value=Xv(p),await nextTick(),ve(),m=false;},Fe=ne=>{u.value.includes(ne)||u.value.push(ne);},Ge=ne=>{u.value=u.value.filter(be=>be!==ne);};watch(()=>n.error,ne=>{d.value=ne||"",R(ne?"error":"");},{immediate:true}),watch(()=>n.validateStatus,ne=>R(ne||""));const Te=reactive({...toRefs(n),$el:h,size:o,validateState:c,labelId:l,inputIds:u,isGroup:A,hasLabel:E,fieldValue:k,addInputId:Fe,removeInputId:Ge,resetField:Se,clearValidate:ve,validate:ye});return provide(Ko,Te),onMounted(()=>{n.prop&&(i==null||i.addField(Te),p=Xv(k.value));}),onBeforeUnmount(()=>{i==null||i.removeField(Te);}),e({size:o,validateMessage:d,validateState:c,validate:ye,clearValidate:ve,resetField:Se}),(ne,be)=>{var Ze;return openBlock(),createElementBlock("div",{ref_key:"formItemRef",ref:h,class:normalizeClass(unref(x)),role:unref(A)?"group":void 0,"aria-labelledby":unref(A)?unref(l):void 0},[createVNode(unref(Q9),{"is-auto-width":unref(y).width==="auto","update-all":((Ze=unref(i))==null?void 0:Ze.labelWidth)==="auto"},{default:withCtx(()=>[unref(E)?(openBlock(),createBlock(resolveDynamicComponent(unref(S)?"label":"div"),{key:0,id:unref(l),for:unref(S),class:normalizeClass(unref(a).e("label")),style:normalizeStyle(unref(y))},{default:withCtx(()=>[renderSlot(ne.$slots,"label",{label:unref(_)},()=>[createTextVNode(toDisplayString(unref(_)),1)])]),_:3},8,["id","for","class","style"])):createCommentVNode("v-if",true)]),_:3},8,["is-auto-width","update-all"]),createElementVNode("div",{class:normalizeClass(unref(a).e("content")),style:normalizeStyle(unref(F))},[renderSlot(ne.$slots,"default"),createVNode(TransitionGroup,{name:`${unref(a).namespace.value}-zoom-in-top`},{default:withCtx(()=>[unref(j)?renderSlot(ne.$slots,"error",{key:0,error:d.value},()=>[createElementVNode("div",{class:normalizeClass(unref(D))},toDisplayString(d.value),3)]):createCommentVNode("v-if",true)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var vE=Re(eL,[["__file","form-item.vue"]]);const hh=Dn(y9,{FormItem:vE}),Me=fs(vE);function tL(){const t=shallowRef(),e=ref(0),n=11,r=computed(()=>({minWidth:`${Math.max(e.value,n)}px`}));return or(t,()=>{var s,o;e.value=(o=(s=t.value)==null?void 0:s.getBoundingClientRect().width)!=null?o:0;}),{calculatorRef:t,calculatorWidth:e,inputStyle:r}}const DE=Symbol("ElSelectGroup"),ph=Symbol("ElSelect"),gm="ElOption",nL=ze({value:{type:[String,Number,Boolean,Object],required:true},label:{type:[String,Number]},created:Boolean,disabled:Boolean});function rL(t,e){const n=inject(ph);n||Sl(gm,"usage: <el-select><el-option /></el-select/>");const r=inject(DE,{disabled:false}),i=computed(()=>c(_r(n.props.modelValue),t.value)),s=computed(()=>{var h;if(n.props.multiple){const p=_r((h=n.props.modelValue)!=null?h:[]);return !i.value&&p.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return  false}),o=computed(()=>t.label||(At(t.value)?"":t.value)),a=computed(()=>t.value||t.label||""),l=computed(()=>t.disabled||e.groupDisabled||s.value),u=getCurrentInstance(),c=(h=[],p)=>{if(At(t.value)){const m=n.props.valueKey;return h&&h.some(g=>toRaw(Vr(g,m))===Vr(p,m))}else return h&&h.includes(p)},f=()=>{!t.disabled&&!r.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy));},d=h=>{const p=new RegExp(VI(h),"i");e.visible=p.test(String(o.value))||t.created;};return watch(()=>o.value,()=>{!t.created&&!n.props.remote&&n.setSelected();}),watch(()=>t.value,(h,p)=>{const{remote:m,valueKey:g}=n.props;if((m?h!==p:!qa(h,p))&&(n.onOptionDestroy(p,u.proxy),n.onOptionCreate(u.proxy)),!t.created&&!m){if(g&&At(h)&&At(p)&&h[g]===p[g])return;n.setSelected();}}),watch(()=>r.disabled,()=>{e.groupDisabled=r.disabled;},{immediate:true}),{select:n,currentLabel:o,currentValue:a,itemSelected:i,isDisabled:l,hoverItem:f,updateOption:d}}const iL=defineComponent({name:gm,componentName:gm,props:nL,setup(t){const e=we("select"),n=Ti(),r=computed(()=>[e.be("dropdown","item"),e.is("disabled",unref(a)),e.is("selected",unref(o)),e.is("hovering",unref(d))]),i=reactive({index:-1,groupDisabled:false,visible:true,hover:false}),{currentLabel:s,itemSelected:o,isDisabled:a,select:l,hoverItem:u,updateOption:c}=rL(t,i),{visible:f,hover:d}=toRefs(i),h=getCurrentInstance().proxy;l.onOptionCreate(h),onBeforeUnmount(()=>{const m=h.value,{selected:g}=l.states,y=g.some(F=>F.value===h.value);nextTick(()=>{l.states.cachedOptions.get(m)===h&&!y&&l.states.cachedOptions.delete(m);}),l.onOptionDestroy(m,h);});function p(){a.value||l.handleOptionSelect(h);}return {ns:e,id:n,containerKls:r,currentLabel:s,itemSelected:o,isDisabled:a,select:l,visible:f,hover:d,states:i,hoverItem:u,updateOption:c,selectOptionClick:p}}});function sL(t,e){return withDirectives((openBlock(),createElementBlock("li",{id:t.id,class:normalizeClass(t.containerKls),role:"option","aria-disabled":t.isDisabled||void 0,"aria-selected":t.itemSelected,onMousemove:t.hoverItem,onClick:withModifiers(t.selectOptionClick,["stop"])},[renderSlot(t.$slots,"default",{},()=>[createElementVNode("span",null,toDisplayString(t.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[vShow,t.visible]])}var _0=Re(iL,[["render",sL],["__file","option.vue"]]);const oL=defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const t=inject(ph),e=we("select"),n=computed(()=>t.props.popperClass),r=computed(()=>t.props.multiple),i=computed(()=>t.props.fitInputWidth),s=ref("");function o(){var a;s.value=`${(a=t.selectRef)==null?void 0:a.offsetWidth}px`;}return onMounted(()=>{o(),or(t.selectRef,o);}),{ns:e,minWidth:s,popperClass:n,isMultiple:r,isFitInputWidth:i}}});function aL(t,e,n,r,i,s){return openBlock(),createElementBlock("div",{class:normalizeClass([t.ns.b("dropdown"),t.ns.is("multiple",t.isMultiple),t.popperClass]),style:normalizeStyle({[t.isFitInputWidth?"width":"minWidth"]:t.minWidth})},[t.$slots.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(t.ns.be("dropdown","header"))},[renderSlot(t.$slots,"header")],2)):createCommentVNode("v-if",true),renderSlot(t.$slots,"default"),t.$slots.footer?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(t.ns.be("dropdown","footer"))},[renderSlot(t.$slots,"footer")],2)):createCommentVNode("v-if",true)],6)}var lL=Re(oL,[["render",aL],["__file","select-dropdown.vue"]]);const uL=(t,e)=>{const{t:n}=bc(),r=Ti(),i=we("select"),s=we("input"),o=reactive({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:false,menuVisibleOnFocus:false,isBeforeHide:false}),a=ref(),l=ref(),u=ref(),c=ref(),f=ref(),d=ref(),h=ref(),p=ref(),m=ref(),g=ref(),y=ref(),{isComposing:F,handleCompositionStart:x,handleCompositionUpdate:b,handleCompositionEnd:D}=Sx({afterComposition:K=>ai(K)}),{wrapperRef:C,isFocused:E,handleBlur:S}=wx(f,{beforeFocus(){return j.value},afterFocus(){t.automaticDropdown&&!A.value&&(A.value=true,o.menuVisibleOnFocus=true);},beforeBlur(K){var oe,Ie;return ((oe=u.value)==null?void 0:oe.isFocusInsideContent(K))||((Ie=c.value)==null?void 0:Ie.isFocusInsideContent(K))},afterBlur(){var K;A.value=false,o.menuVisibleOnFocus=false,t.validateEvent&&((K=N==null?void 0:N.validate)==null||K.call(N,"blur").catch(oe=>void 0));}}),A=ref(false),M=ref(),{form:k,formItem:N}=co(),{inputId:O}=Tl(t,{formItemContext:N}),{valueOnClear:T,isEmptyValue:I}=DM(t),j=computed(()=>t.disabled||(k==null?void 0:k.disabled)),_=computed(()=>We(t.modelValue)?t.modelValue.length>0:!I(t.modelValue)),R=computed(()=>{var K;return (K=k==null?void 0:k.statusIcon)!=null?K:false}),L=computed(()=>t.clearable&&!j.value&&o.inputHovering&&_.value),G=computed(()=>t.remote&&t.filterable&&!t.remoteShowSuffix?"":t.suffixIcon),me=computed(()=>i.is("reverse",!!(G.value&&A.value))),ye=computed(()=>(N==null?void 0:N.validateState)||""),ve=computed(()=>ye.value&&xx[ye.value]),Se=computed(()=>t.remote?300:0),Fe=computed(()=>t.remote&&!o.inputValue&&o.options.size===0),Ge=computed(()=>t.loading?t.loadingText||n("el.select.loading"):t.filterable&&o.inputValue&&o.options.size>0&&Te.value===0?t.noMatchText||n("el.select.noMatch"):o.options.size===0?t.noDataText||n("el.select.noData"):null),Te=computed(()=>ne.value.filter(K=>K.visible).length),ne=computed(()=>{const K=Array.from(o.options.values()),oe=[];return o.optionValues.forEach(Ie=>{const qt=K.findIndex(tr=>tr.value===Ie);qt>-1&&oe.push(K[qt]);}),oe.length>=K.length?oe:K}),be=computed(()=>Array.from(o.cachedOptions.values())),Ze=computed(()=>{const K=ne.value.filter(oe=>!oe.created).some(oe=>oe.currentLabel===o.inputValue);return t.filterable&&t.allowCreate&&o.inputValue!==""&&!K}),_e=()=>{t.filterable&&Le(t.filterMethod)||t.filterable&&t.remote&&Le(t.remoteMethod)||ne.value.forEach(K=>{var oe;(oe=K.updateOption)==null||oe.call(K,o.inputValue);});},rt=Gr(),dn=computed(()=>["small"].includes(rt.value)?"small":"default"),ws=computed({get(){return A.value&&!Fe.value},set(K){A.value=K;}}),Ss=computed(()=>{if(t.multiple&&!Xt(t.modelValue))return _r(t.modelValue).length===0&&!o.inputValue;const K=We(t.modelValue)?t.modelValue[0]:t.modelValue;return t.filterable||Xt(K)?!o.inputValue:true}),_i=computed(()=>{var K;const oe=(K=t.placeholder)!=null?K:n("el.select.placeholder");return t.multiple||!_.value?oe:o.selectedLabel}),As=computed(()=>im?null:"mouseenter");watch(()=>t.modelValue,(K,oe)=>{t.multiple&&t.filterable&&!t.reserveKeyword&&(o.inputValue="",si("")),hn(),!qa(K,oe)&&t.validateEvent&&(N==null||N.validate("change").catch(Ie=>void 0));},{flush:"post",deep:true}),watch(()=>A.value,K=>{K?si(o.inputValue):(o.inputValue="",o.previousQuery=null,o.isBeforeHide=true),e("visible-change",K);}),watch(()=>o.options.entries(),()=>{at&&(hn(),t.defaultFirstOption&&(t.filterable||t.remote)&&Te.value&&Ts());},{flush:"post"}),watch([()=>o.hoveringIndex,ne],([K])=>{ot(K)&&K>-1?M.value=ne.value[K]||{}:M.value={},ne.value.forEach(oe=>{oe.hover=M.value===oe;});}),watchEffect(()=>{o.isBeforeHide||_e();});const si=K=>{o.previousQuery===K||F.value||(o.previousQuery=K,t.filterable&&Le(t.filterMethod)?t.filterMethod(K):t.filterable&&t.remote&&Le(t.remoteMethod)&&t.remoteMethod(K),t.defaultFirstOption&&(t.filterable||t.remote)&&Te.value?nextTick(Ts):nextTick(ks));},Ts=()=>{const K=ne.value.filter(tr=>tr.visible&&!tr.disabled&&!tr.states.groupDisabled),oe=K.find(tr=>tr.created),Ie=K[0],qt=ne.value.map(tr=>tr.value);o.hoveringIndex=ct(qt,oe||Ie);},hn=()=>{if(t.multiple)o.selectedLabel="";else {const oe=We(t.modelValue)?t.modelValue[0]:t.modelValue,Ie=dr(oe);o.selectedLabel=Ie.currentLabel,o.selected=[Ie];return}const K=[];Xt(t.modelValue)||_r(t.modelValue).forEach(oe=>{K.push(dr(oe));}),o.selected=K;},dr=K=>{let oe;const Ie=C8(K);for(let Da=o.cachedOptions.size-1;Da>=0;Da--){const Bs=be.value[Da];if(Ie?Vr(Bs.value,t.valueKey)===Vr(K,t.valueKey):Bs.value===K){oe={value:K,currentLabel:Bs.currentLabel,get isDisabled(){return Bs.isDisabled}};break}}if(oe)return oe;const qt=Ie?K.label:K??"";return {value:K,currentLabel:qt}},ks=()=>{o.hoveringIndex=ne.value.findIndex(K=>o.selected.some(oe=>Wc(oe)===Wc(K)));},ji=()=>{o.selectionWidth=Number.parseFloat(window.getComputedStyle(l.value).width);},re=()=>{o.collapseItemWidth=g.value.getBoundingClientRect().width;},Ke=()=>{var K,oe;(oe=(K=u.value)==null?void 0:K.updatePopper)==null||oe.call(K);},Mn=()=>{var K,oe;(oe=(K=c.value)==null?void 0:K.updatePopper)==null||oe.call(K);},oi=()=>{o.inputValue.length>0&&!A.value&&(A.value=true),si(o.inputValue);},ai=K=>{if(o.inputValue=K.target.value,t.remote)qc();else return oi()},qc=Iu(()=>{oi();},Se.value),ya=K=>{qa(t.modelValue,K)||e(fr,K);},vv=K=>k$(K,oe=>{const Ie=o.cachedOptions.get(oe);return Ie&&!Ie.disabled&&!Ie.states.groupDisabled}),ge=K=>{if(t.multiple&&K.code!==Us.delete&&K.target.value.length<=0){const oe=_r(t.modelValue).slice(),Ie=vv(oe);if(Ie<0)return;const qt=oe[Ie];oe.splice(Ie,1),e(Lt,oe),ya(oe),e("remove-tag",qt);}},$e=(K,oe)=>{const Ie=o.selected.indexOf(oe);if(Ie>-1&&!j.value){const qt=_r(t.modelValue).slice();qt.splice(Ie,1),e(Lt,qt),ya(qt),e("remove-tag",oe.value);}K.stopPropagation(),Vi();},Pe=K=>{K.stopPropagation();const oe=t.multiple?[]:T.value;if(t.multiple)for(const Ie of o.selected)Ie.isDisabled&&oe.push(Ie.value);e(Lt,oe),ya(oe),o.hoveringIndex=-1,A.value=false,e("clear"),Vi();},Ne=K=>{var oe;if(t.multiple){const Ie=_r((oe=t.modelValue)!=null?oe:[]).slice(),qt=ct(Ie,K);qt>-1?Ie.splice(qt,1):(t.multipleLimit<=0||Ie.length<t.multipleLimit)&&Ie.push(K.value),e(Lt,Ie),ya(Ie),K.created&&si(""),t.filterable&&!t.reserveKeyword&&(o.inputValue="");}else e(Lt,K.value),ya(K.value),A.value=false;Vi(),!A.value&&nextTick(()=>{ft(K);});},ct=(K,oe)=>Xt(oe)?-1:At(oe.value)?K.findIndex(Ie=>qa(Vr(Ie,t.valueKey),Wc(oe))):K.indexOf(oe.value),ft=K=>{var oe,Ie,qt,tr,Da;const Bs=We(K)?K[0]:K;let Hc=null;if(Bs!=null&&Bs.value){const Wl=ne.value.filter(Gk=>Gk.value===Bs.value);Wl.length>0&&(Hc=Wl[0].$el);}if(u.value&&Hc){const Wl=(tr=(qt=(Ie=(oe=u.value)==null?void 0:oe.popperRef)==null?void 0:Ie.contentRef)==null?void 0:qt.querySelector)==null?void 0:tr.call(qt,`.${i.be("dropdown","wrap")}`);Wl&&EM(Wl,Hc);}(Da=y.value)==null||Da.handleScroll();},bt=K=>{o.options.set(K.value,K),o.cachedOptions.set(K.value,K);},Mr=(K,oe)=>{o.options.get(K)===oe&&o.options.delete(K);},Pr=computed(()=>{var K,oe;return (oe=(K=u.value)==null?void 0:K.popperRef)==null?void 0:oe.contentRef}),va=()=>{o.isBeforeHide=false,nextTick(()=>{var K;(K=y.value)==null||K.update(),ft(o.selected);});},Vi=()=>{var K;(K=f.value)==null||K.focus();},Lk=()=>{var K;if(A.value){A.value=false,nextTick(()=>{var oe;return (oe=f.value)==null?void 0:oe.blur()});return}(K=f.value)==null||K.blur();},Rk=K=>{Pe(K);},_k=K=>{if(A.value=false,E.value){const oe=new FocusEvent("focus",K);nextTick(()=>S(oe));}},jk=()=>{o.inputValue.length>0?o.inputValue="":A.value=false;},Dv=()=>{j.value||(im&&(o.inputHovering=true),o.menuVisibleOnFocus?o.menuVisibleOnFocus=false:A.value=!A.value);},Vk=()=>{if(!A.value)Dv();else {const K=ne.value[o.hoveringIndex];K&&!K.isDisabled&&Ne(K);}},Wc=K=>At(K.value)?Vr(K.value,t.valueKey):K.value,qk=computed(()=>ne.value.filter(K=>K.visible).every(K=>K.isDisabled)),Wk=computed(()=>t.multiple?t.collapseTags?o.selected.slice(0,t.maxCollapseTags):o.selected:[]),Hk=computed(()=>t.multiple?t.collapseTags?o.selected.slice(t.maxCollapseTags):[]:[]),bv=K=>{if(!A.value){A.value=true;return}if(!(o.options.size===0||Te.value===0||F.value)&&!qk.value){K==="next"?(o.hoveringIndex++,o.hoveringIndex===o.options.size&&(o.hoveringIndex=0)):K==="prev"&&(o.hoveringIndex--,o.hoveringIndex<0&&(o.hoveringIndex=o.options.size-1));const oe=ne.value[o.hoveringIndex];(oe.isDisabled||!oe.visible)&&bv(K),nextTick(()=>ft(M.value));}},zk=()=>{if(!l.value)return 0;const K=window.getComputedStyle(l.value);return Number.parseFloat(K.gap||"6px")},Kk=computed(()=>{const K=zk();return {maxWidth:`${g.value&&t.maxCollapseTags===1?o.selectionWidth-o.collapseItemWidth-K:o.selectionWidth}px`}}),Uk=computed(()=>({maxWidth:`${o.selectionWidth}px`})),Jk=K=>{e("popup-scroll",K);};return or(l,ji),or(p,Ke),or(C,Ke),or(m,Mn),or(g,re),onMounted(()=>{hn();}),{inputId:O,contentId:r,nsSelect:i,nsInput:s,states:o,isFocused:E,expanded:A,optionsArray:ne,hoverOption:M,selectSize:rt,filteredOptionsCount:Te,updateTooltip:Ke,updateTagTooltip:Mn,debouncedOnInputChange:qc,onInput:ai,deletePrevTag:ge,deleteTag:$e,deleteSelected:Pe,handleOptionSelect:Ne,scrollToOption:ft,hasModelValue:_,shouldShowPlaceholder:Ss,currentPlaceholder:_i,mouseEnterEventName:As,needStatusIcon:R,showClose:L,iconComponent:G,iconReverse:me,validateState:ye,validateIcon:ve,showNewOption:Ze,updateOptions:_e,collapseTagSize:dn,setSelected:hn,selectDisabled:j,emptyText:Ge,handleCompositionStart:x,handleCompositionUpdate:b,handleCompositionEnd:D,onOptionCreate:bt,onOptionDestroy:Mr,handleMenuEnter:va,focus:Vi,blur:Lk,handleClearClick:Rk,handleClickOutside:_k,handleEsc:jk,toggleMenu:Dv,selectOption:Vk,getValueKey:Wc,navigateOptions:bv,dropdownMenuVisible:ws,showTagList:Wk,collapseTagList:Hk,popupScroll:Jk,tagStyle:Kk,collapseTagStyle:Uk,popperRef:Pr,inputRef:f,tooltipRef:u,tagTooltipRef:c,prefixRef:d,suffixRef:h,selectRef:a,wrapperRef:C,selectionRef:l,scrollbarRef:y,menuRef:p,tagMenuRef:m,collapseItemRef:g}};var cL=defineComponent({name:"ElOptions",setup(t,{slots:e}){const n=inject(ph);let r=[];return ()=>{var i,s;const o=(i=e.default)==null?void 0:i.call(e),a=[];function l(u){We(u)&&u.forEach(c=>{var f,d,h,p;const m=(f=(c==null?void 0:c.type)||{})==null?void 0:f.name;m==="ElOptionGroup"?l(!He(c.children)&&!We(c.children)&&Le((d=c.children)==null?void 0:d.default)?(h=c.children)==null?void 0:h.default():c.children):m==="ElOption"?a.push((p=c.props)==null?void 0:p.value):We(c.children)&&l(c.children);});}return o.length&&l((s=o[0])==null?void 0:s.children),qa(a,r)||(r=a,n&&(n.states.optionValues=a)),o}}});const fL=ze({name:String,id:String,modelValue:{type:Ce([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:cs,effect:{type:Ce(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Ce(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:true},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Vu.teleported,persistent:{type:Boolean,default:true},clearIcon:{type:pr,default:b0},fitInputWidth:Boolean,suffixIcon:{type:pr,default:gx},tagType:{...cm.type,default:"info"},tagEffect:{...cm.effect,default:"light"},validateEvent:{type:Boolean,default:true},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:true},offset:{type:Number,default:12},placement:{type:Ce(String),values:uh,default:"bottom-start"},fallbackPlacements:{type:Ce(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:Vu.appendTo,...hx,...ds(["ariaLabel"])});Ax.scroll;const XD="ElSelect",dL=defineComponent({name:XD,componentName:XD,components:{ElSelectMenu:lL,ElOption:_0,ElOptions:cL,ElTag:KI,ElScrollbar:fo,ElTooltip:L0,ElIcon:Ot},directives:{ClickOutside:fE},props:fL,emits:[Lt,fr,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(t,{emit:e,slots:n}){const r=computed(()=>{const{modelValue:c,multiple:f}=t,d=f?[]:void 0;return We(c)?f?c:d:f?d:c}),i=reactive({...toRefs(t),modelValue:r}),s=uL(i,e),{calculatorRef:o,inputStyle:a}=tL(),l=c=>{!t.persistent&&c&&nu(c).filter(d=>At(d)&&d.type.name==="ElOption").forEach(d=>{const h={...d.props};h.currentLabel=h.label||(At(h.value)?"":h.value),s.onOptionCreate(h);});};watch(()=>{var c;return (c=n.default)==null?void 0:c.call(n)},c=>{l(c);},{immediate:true}),provide(ph,reactive({props:i,states:s.states,selectRef:s.selectRef,optionsArray:s.optionsArray,setSelected:s.setSelected,handleOptionSelect:s.handleOptionSelect,onOptionCreate:s.onOptionCreate,onOptionDestroy:s.onOptionDestroy}));const u=computed(()=>t.multiple?s.states.selected.map(c=>c.currentLabel):s.states.selectedLabel);return {...s,modelValue:r,selectedLabel:u,calculatorRef:o,inputStyle:a}}});function hL(t,e){const n=resolveComponent("el-tag"),r=resolveComponent("el-tooltip"),i=resolveComponent("el-icon"),s=resolveComponent("el-option"),o=resolveComponent("el-options"),a=resolveComponent("el-scrollbar"),l=resolveComponent("el-select-menu"),u=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectRef",class:normalizeClass([t.nsSelect.b(),t.nsSelect.m(t.selectSize)]),[toHandlerKey(t.mouseEnterEventName)]:c=>t.states.inputHovering=true,onMouseleave:c=>t.states.inputHovering=false},[createVNode(r,{ref:"tooltipRef",visible:t.dropdownMenuVisible,placement:t.placement,teleported:t.teleported,"popper-class":[t.nsSelect.e("popper"),t.popperClass],"popper-options":t.popperOptions,"fallback-placements":t.fallbackPlacements,effect:t.effect,pure:"",trigger:"click",transition:`${t.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":false,"gpu-acceleration":false,persistent:t.persistent,"append-to":t.appendTo,"show-arrow":t.showArrow,offset:t.offset,onBeforeShow:t.handleMenuEnter,onHide:c=>t.states.isBeforeHide=false},{default:withCtx(()=>{var c;return [createElementVNode("div",{ref:"wrapperRef",class:normalizeClass([t.nsSelect.e("wrapper"),t.nsSelect.is("focused",t.isFocused),t.nsSelect.is("hovering",t.states.inputHovering),t.nsSelect.is("filterable",t.filterable),t.nsSelect.is("disabled",t.selectDisabled)]),onClick:withModifiers(t.toggleMenu,["prevent"])},[t.$slots.prefix?(openBlock(),createElementBlock("div",{key:0,ref:"prefixRef",class:normalizeClass(t.nsSelect.e("prefix"))},[renderSlot(t.$slots,"prefix")],2)):createCommentVNode("v-if",true),createElementVNode("div",{ref:"selectionRef",class:normalizeClass([t.nsSelect.e("selection"),t.nsSelect.is("near",t.multiple&&!t.$slots.prefix&&!!t.states.selected.length)])},[t.multiple?renderSlot(t.$slots,"tag",{key:0},()=>[(openBlock(true),createElementBlock(Fragment,null,renderList(t.showTagList,f=>(openBlock(),createElementBlock("div",{key:t.getValueKey(f),class:normalizeClass(t.nsSelect.e("selected-item"))},[createVNode(n,{closable:!t.selectDisabled&&!f.isDisabled,size:t.collapseTagSize,type:t.tagType,effect:t.tagEffect,"disable-transitions":"",style:normalizeStyle(t.tagStyle),onClose:d=>t.deleteTag(d,f)},{default:withCtx(()=>[createElementVNode("span",{class:normalizeClass(t.nsSelect.e("tags-text"))},[renderSlot(t.$slots,"label",{label:f.currentLabel,value:f.value},()=>[createTextVNode(toDisplayString(f.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),t.collapseTags&&t.states.selected.length>t.maxCollapseTags?(openBlock(),createBlock(r,{key:0,ref:"tagTooltipRef",disabled:t.dropdownMenuVisible||!t.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom",teleported:t.teleported},{default:withCtx(()=>[createElementVNode("div",{ref:"collapseItemRef",class:normalizeClass(t.nsSelect.e("selected-item"))},[createVNode(n,{closable:false,size:t.collapseTagSize,type:t.tagType,effect:t.tagEffect,"disable-transitions":"",style:normalizeStyle(t.collapseTagStyle)},{default:withCtx(()=>[createElementVNode("span",{class:normalizeClass(t.nsSelect.e("tags-text"))}," + "+toDisplayString(t.states.selected.length-t.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:withCtx(()=>[createElementVNode("div",{ref:"tagMenuRef",class:normalizeClass(t.nsSelect.e("selection"))},[(openBlock(true),createElementBlock(Fragment,null,renderList(t.collapseTagList,f=>(openBlock(),createElementBlock("div",{key:t.getValueKey(f),class:normalizeClass(t.nsSelect.e("selected-item"))},[createVNode(n,{class:"in-tooltip",closable:!t.selectDisabled&&!f.isDisabled,size:t.collapseTagSize,type:t.tagType,effect:t.tagEffect,"disable-transitions":"",onClose:d=>t.deleteTag(d,f)},{default:withCtx(()=>[createElementVNode("span",{class:normalizeClass(t.nsSelect.e("tags-text"))},[renderSlot(t.$slots,"label",{label:f.currentLabel,value:f.value},()=>[createTextVNode(toDisplayString(f.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):createCommentVNode("v-if",true)]):createCommentVNode("v-if",true),createElementVNode("div",{class:normalizeClass([t.nsSelect.e("selected-item"),t.nsSelect.e("input-wrapper"),t.nsSelect.is("hidden",!t.filterable)])},[withDirectives(createElementVNode("input",{id:t.inputId,ref:"inputRef","onUpdate:modelValue":f=>t.states.inputValue=f,type:"text",name:t.name,class:normalizeClass([t.nsSelect.e("input"),t.nsSelect.is(t.selectSize)]),disabled:t.selectDisabled,autocomplete:t.autocomplete,style:normalizeStyle(t.inputStyle),tabindex:t.tabindex,role:"combobox",readonly:!t.filterable,spellcheck:"false","aria-activedescendant":((c=t.hoverOption)==null?void 0:c.id)||"","aria-controls":t.contentId,"aria-expanded":t.dropdownMenuVisible,"aria-label":t.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[withKeys(withModifiers(f=>t.navigateOptions("next"),["stop","prevent"]),["down"]),withKeys(withModifiers(f=>t.navigateOptions("prev"),["stop","prevent"]),["up"]),withKeys(withModifiers(t.handleEsc,["stop","prevent"]),["esc"]),withKeys(withModifiers(t.selectOption,["stop","prevent"]),["enter"]),withKeys(withModifiers(t.deletePrevTag,["stop"]),["delete"])],onCompositionstart:t.handleCompositionStart,onCompositionupdate:t.handleCompositionUpdate,onCompositionend:t.handleCompositionEnd,onInput:t.onInput,onClick:withModifiers(t.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[vModelText,t.states.inputValue]]),t.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass(t.nsSelect.e("input-calculator")),textContent:toDisplayString(t.states.inputValue)},null,10,["textContent"])):createCommentVNode("v-if",true)],2),t.shouldShowPlaceholder?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([t.nsSelect.e("selected-item"),t.nsSelect.e("placeholder"),t.nsSelect.is("transparent",!t.hasModelValue||t.expanded&&!t.states.inputValue)])},[t.hasModelValue?renderSlot(t.$slots,"label",{key:0,label:t.currentPlaceholder,value:t.modelValue},()=>[createElementVNode("span",null,toDisplayString(t.currentPlaceholder),1)]):(openBlock(),createElementBlock("span",{key:1},toDisplayString(t.currentPlaceholder),1))],2)):createCommentVNode("v-if",true)],2),createElementVNode("div",{ref:"suffixRef",class:normalizeClass(t.nsSelect.e("suffix"))},[t.iconComponent&&!t.showClose?(openBlock(),createBlock(i,{key:0,class:normalizeClass([t.nsSelect.e("caret"),t.nsSelect.e("icon"),t.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",true),t.showClose&&t.clearIcon?(openBlock(),createBlock(i,{key:1,class:normalizeClass([t.nsSelect.e("caret"),t.nsSelect.e("icon"),t.nsSelect.e("clear")]),onClick:t.handleClearClick},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",true),t.validateState&&t.validateIcon&&t.needStatusIcon?(openBlock(),createBlock(i,{key:2,class:normalizeClass([t.nsInput.e("icon"),t.nsInput.e("validateIcon"),t.nsInput.is("loading",t.validateState==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.validateIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",true)],2)],10,["onClick"])]}),content:withCtx(()=>[createVNode(l,{ref:"menuRef"},{default:withCtx(()=>[t.$slots.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(t.nsSelect.be("dropdown","header")),onClick:withModifiers(()=>{},["stop"])},[renderSlot(t.$slots,"header")],10,["onClick"])):createCommentVNode("v-if",true),withDirectives(createVNode(a,{id:t.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":t.nsSelect.be("dropdown","wrap"),"view-class":t.nsSelect.be("dropdown","list"),class:normalizeClass([t.nsSelect.is("empty",t.filteredOptionsCount===0)]),role:"listbox","aria-label":t.ariaLabel,"aria-orientation":"vertical",onScroll:t.popupScroll},{default:withCtx(()=>[t.showNewOption?(openBlock(),createBlock(s,{key:0,value:t.states.inputValue,created:true},null,8,["value"])):createCommentVNode("v-if",true),createVNode(o,null,{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[vShow,t.states.options.size>0&&!t.loading]]),t.$slots.loading&&t.loading?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(t.nsSelect.be("dropdown","loading"))},[renderSlot(t.$slots,"loading")],2)):t.loading||t.filteredOptionsCount===0?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(t.nsSelect.be("dropdown","empty"))},[renderSlot(t.$slots,"empty",{},()=>[createElementVNode("span",null,toDisplayString(t.emptyText),1)])],2)):createCommentVNode("v-if",true),t.$slots.footer?(openBlock(),createElementBlock("div",{key:3,class:normalizeClass(t.nsSelect.be("dropdown","footer")),onClick:withModifiers(()=>{},["stop"])},[renderSlot(t.$slots,"footer")],10,["onClick"])):createCommentVNode("v-if",true)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[u,t.handleClickOutside,t.popperRef]])}var pL=Re(dL,[["render",hL],["__file","select.vue"]]);const mL=defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(t){const e=we("select"),n=ref(),r=getCurrentInstance(),i=ref([]);provide(DE,reactive({...toRefs(t)}));const s=computed(()=>i.value.some(u=>u.visible===true)),o=u=>{var c;return u.type.name==="ElOption"&&!!((c=u.component)!=null&&c.proxy)},a=u=>{const c=_r(u),f=[];return c.forEach(d=>{var h;isVNode(d)&&(o(d)?f.push(d.component.proxy):We(d.children)&&d.children.length?f.push(...a(d.children)):(h=d.component)!=null&&h.subTree&&f.push(...a(d.component.subTree)));}),f},l=()=>{i.value=a(r.subTree);};return onMounted(()=>{l();}),iM(n,l,{attributes:true,subtree:true,childList:true}),{groupRef:n,visible:s,ns:e}}});function gL(t,e,n,r,i,s){return withDirectives((openBlock(),createElementBlock("ul",{ref:"groupRef",class:normalizeClass(t.ns.be("group","wrap"))},[createElementVNode("li",{class:normalizeClass(t.ns.be("group","title"))},toDisplayString(t.label),3),createElementVNode("li",null,[createElementVNode("ul",{class:normalizeClass(t.ns.b("group"))},[renderSlot(t.$slots,"default")],2)])],2)),[[vShow,t.visible]])}var bE=Re(mL,[["render",gL],["__file","option-group.vue"]]);const YD=Dn(pL,{Option:_0,OptionGroup:bE}),QD=fs(_0);fs(bE);const CE=t=>["",...Cc].includes(t),yL=ze({modelValue:{type:[Boolean,String,Number],default:false},disabled:Boolean,loading:Boolean,size:{type:String,validator:CE},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:pr},activeActionIcon:{type:pr},activeIcon:{type:pr},inactiveIcon:{type:pr},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:true},inactiveValue:{type:[Boolean,String,Number],default:false},name:{type:String,default:""},validateEvent:{type:Boolean,default:true},beforeChange:{type:Ce(Function)},id:String,tabindex:{type:[String,Number]},...ds(["ariaLabel"])}),vL={[Lt]:t=>St(t)||He(t)||ot(t),[fr]:t=>St(t)||He(t)||ot(t),[Ru]:t=>St(t)||He(t)||ot(t)},xE="ElSwitch",DL=defineComponent({name:xE}),bL=defineComponent({...DL,props:yL,emits:vL,setup(t,{expose:e,emit:n}){const r=t,{formItem:i}=co(),s=Gr(),o=we("switch"),{inputId:a}=Tl(r,{formItemContext:i}),l=kl(computed(()=>r.loading)),u=ref(r.modelValue!==false),c=ref(),f=ref(),d=computed(()=>[o.b(),o.m(s.value),o.is("disabled",l.value),o.is("checked",y.value)]),h=computed(()=>[o.e("label"),o.em("label","left"),o.is("active",!y.value)]),p=computed(()=>[o.e("label"),o.em("label","right"),o.is("active",y.value)]),m=computed(()=>({width:Jr(r.width)}));watch(()=>r.modelValue,()=>{u.value=true;});const g=computed(()=>u.value?r.modelValue:false),y=computed(()=>g.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(g.value)||(n(Lt,r.inactiveValue),n(fr,r.inactiveValue),n(Ru,r.inactiveValue)),watch(y,D=>{var C;c.value.checked=D,r.validateEvent&&((C=i==null?void 0:i.validate)==null||C.call(i,"change").catch(E=>void 0));});const F=()=>{const D=y.value?r.inactiveValue:r.activeValue;n(Lt,D),n(fr,D),n(Ru,D),nextTick(()=>{c.value.checked=y.value;});},x=()=>{if(l.value)return;const{beforeChange:D}=r;if(!D){F();return}const C=D();[Ev(C),St(C)].includes(true)||Sl(xE,"beforeChange must return type `Promise<boolean>` or `boolean`"),Ev(C)?C.then(S=>{S&&F();}).catch(S=>{}):C&&F();},b=()=>{var D,C;(C=(D=c.value)==null?void 0:D.focus)==null||C.call(D);};return onMounted(()=>{c.value.checked=y.value;}),e({focus:b,checked:y}),(D,C)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(d)),onClick:withModifiers(x,["prevent"])},[createElementVNode("input",{id:unref(a),ref_key:"input",ref:c,class:normalizeClass(unref(o).e("input")),type:"checkbox",role:"switch","aria-checked":unref(y),"aria-disabled":unref(l),"aria-label":D.ariaLabel,name:D.name,"true-value":D.activeValue,"false-value":D.inactiveValue,disabled:unref(l),tabindex:D.tabindex,onChange:F,onKeydown:withKeys(x,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),!D.inlinePrompt&&(D.inactiveIcon||D.inactiveText)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(h))},[D.inactiveIcon?(openBlock(),createBlock(unref(Ot),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(D.inactiveIcon)))]),_:1})):createCommentVNode("v-if",true),!D.inactiveIcon&&D.inactiveText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":unref(y)},toDisplayString(D.inactiveText),9,["aria-hidden"])):createCommentVNode("v-if",true)],2)):createCommentVNode("v-if",true),createElementVNode("span",{ref_key:"core",ref:f,class:normalizeClass(unref(o).e("core")),style:normalizeStyle(unref(m))},[D.inlinePrompt?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(o).e("inner"))},[D.activeIcon||D.inactiveIcon?(openBlock(),createBlock(unref(Ot),{key:0,class:normalizeClass(unref(o).is("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(y)?D.activeIcon:D.inactiveIcon)))]),_:1},8,["class"])):D.activeText||D.inactiveText?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(o).is("text")),"aria-hidden":!unref(y)},toDisplayString(unref(y)?D.activeText:D.inactiveText),11,["aria-hidden"])):createCommentVNode("v-if",true)],2)):createCommentVNode("v-if",true),createElementVNode("div",{class:normalizeClass(unref(o).e("action"))},[D.loading?(openBlock(),createBlock(unref(Ot),{key:0,class:normalizeClass(unref(o).is("loading"))},{default:withCtx(()=>[createVNode(unref(Za))]),_:1},8,["class"])):unref(y)?renderSlot(D.$slots,"active-action",{key:1},()=>[D.activeActionIcon?(openBlock(),createBlock(unref(Ot),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(D.activeActionIcon)))]),_:1})):createCommentVNode("v-if",true)]):unref(y)?createCommentVNode("v-if",true):renderSlot(D.$slots,"inactive-action",{key:2},()=>[D.inactiveActionIcon?(openBlock(),createBlock(unref(Ot),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(D.inactiveActionIcon)))]),_:1})):createCommentVNode("v-if",true)])],2)],6),!D.inlinePrompt&&(D.activeIcon||D.activeText)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(p))},[D.activeIcon?(openBlock(),createBlock(unref(Ot),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(D.activeIcon)))]),_:1})):createCommentVNode("v-if",true),!D.activeIcon&&D.activeText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":!unref(y)},toDisplayString(D.activeText),9,["aria-hidden"])):createCommentVNode("v-if",true)],2)):createCommentVNode("v-if",true)],10,["onClick"]))}});var CL=Re(bL,[["__file","switch.vue"]]);const _t=Dn(CL),tp=function(t){var e;return (e=t.target)==null?void 0:e.closest("td")},xL=function(t,e,n,r,i){if(!e&&!r&&(!i||We(i)&&!i.length))return t;He(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const s=r?null:function(a,l){return i?(We(i)||(i=[i]),i.map(u=>He(u)?Vr(a,u):u(a,l,t))):(e!=="$key"&&At(a)&&"$value"in a&&(a=a.$value),[At(a)?Vr(a,e):a])},o=function(a,l){if(r)return r(a.value,l.value);for(let u=0,c=a.key.length;u<c;u++){if(a.key[u]<l.key[u])return  -1;if(a.key[u]>l.key[u])return 1}return 0};return t.map((a,l)=>({value:a,index:l,key:s?s(a,l):null})).sort((a,l)=>{let u=o(a,l);return u||(u=a.index-l.index),u*+n}).map(a=>a.value)},EE=function(t,e){let n=null;return t.columns.forEach(r=>{r.id===e&&(n=r);}),n},EL=function(t,e){let n=null;for(let r=0;r<t.columns.length;r++){const i=t.columns[r];if(i.columnKey===e){n=i;break}}return n||Sl("ElTable",`No column matching with column-key: ${e}`),n},ZD=function(t,e,n){const r=(e.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?EE(t,r[0]):null},mn=(t,e)=>{if(!t)throw new Error("Row is required when get row identity");if(He(e)){if(!e.includes("."))return `${t[e]}`;const n=e.split(".");let r=t;for(const i of n)r=r[i];return `${r}`}else if(Le(e))return e.call(null,t)},Ha=function(t,e,n=false,r="children"){const i=t||[],s={};return i.forEach((o,a)=>{if(s[mn(o,e)]={row:o,index:a},n){const l=o[r];We(l)&&Object.assign(s,Ha(l,e,true,r));}}),s};function FL(t,e){const n={};let r;for(r in t)n[r]=t[r];for(r in e)if(Qi(e,r)){const i=e[r];Xt(i)||(n[r]=i);}return n}function j0(t){return t===""||Xt(t)||(t=Number.parseInt(t,10),Number.isNaN(t)&&(t="")),t}function FE(t){return t===""||Xt(t)||(t=j0(t),Number.isNaN(t)&&(t=80)),t}function wL(t){return ot(t)?t:He(t)?/^\d+(?:px)?$/.test(t)?Number.parseInt(t,10):t:null}function SL(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,n)=>(...r)=>e(n(...r)))}function vd(t,e,n,r,i,s){let o=s??0,a=false;const l=t.indexOf(e),u=l!==-1,c=i==null?void 0:i.call(null,e,o),f=h=>{h==="add"?t.push(e):t.splice(l,1),a=true;},d=h=>{let p=0;const m=(r==null?void 0:r.children)&&h[r.children];return m&&We(m)&&(p+=m.length,m.forEach(g=>{p+=d(g);})),p};return (!i||c)&&(St(n)?n&&!u?f("add"):!n&&u&&f("remove"):f(u?"remove":"add")),!(r!=null&&r.checkStrictly)&&(r!=null&&r.children)&&We(e[r.children])&&e[r.children].forEach(h=>{const p=vd(t,h,n??!u,r,i,o+1);o+=d(h)+1,p&&(a=p);}),a}function AL(t,e,n="children",r="hasChildren"){const i=o=>!(We(o)&&o.length);function s(o,a,l){e(o,a,l),a.forEach(u=>{if(u[r]){e(u,null,l+1);return}const c=u[n];i(c)||s(u,c,l+1);});}t.forEach(o=>{if(o[r]){e(o,null,0);return}const a=o[n];i(a)||s(o,a,0);});}const TL=(t,e,n,r)=>{const i={strategy:"fixed",...t.popperOptions},s=Le(r.tooltipFormatter)?r.tooltipFormatter({row:n,column:r,cellValue:hu(n,r.property).value}):void 0;return isVNode(s)?{slotContent:s,content:null,...t,popperOptions:i}:{slotContent:null,content:s??e,...t,popperOptions:i}};let In=null;function kL(t,e,n,r,i,s){const o=TL(t,e,n,r),a={...o,slotContent:void 0};if((In==null?void 0:In.trigger)===i){const h=In.vm.component;nx(h.props,a),o.slotContent&&(h.slots.content=()=>[o.slotContent]);return}In==null||In();const l=s==null?void 0:s.refs.tableWrapper,u=l==null?void 0:l.dataset.prefix,c=createVNode(L0,{virtualTriggering:true,virtualRef:i,appendTo:l,placement:"top",transition:"none",offset:0,hideAfter:0,...a},o.slotContent?{content:()=>o.slotContent}:void 0);c.appContext={...s.appContext,...s};const f=document.createElement("div");render(c,f),c.component.exposed.onOpen();const d=l==null?void 0:l.querySelector(`.${u}-scrollbar__wrap`);In=()=>{render(null,f),d==null||d.removeEventListener("scroll",In),In=null;},In.trigger=i,In.vm=c,d==null||d.addEventListener("scroll",In);}function wE(t){return t.children?$$(t.children,wE):[t]}function eb(t,e){return t+e.colSpan}const SE=(t,e,n,r)=>{let i=0,s=t;const o=n.states.columns.value;if(r){const l=wE(r[t]);i=o.slice(0,o.indexOf(l[0])).reduce(eb,0),s=i+l.reduce(eb,0)-1;}else i=t;let a;switch(e){case "left":s<n.states.fixedLeafColumnsLength.value&&(a="left");break;case "right":i>=o.length-n.states.rightFixedLeafColumnsLength.value&&(a="right");break;default:s<n.states.fixedLeafColumnsLength.value?a="left":i>=o.length-n.states.rightFixedLeafColumnsLength.value&&(a="right");}return a?{direction:a,start:i,after:s}:{}},V0=(t,e,n,r,i,s=0)=>{const o=[],{direction:a,start:l,after:u}=SE(e,n,r,i);if(a){const c=a==="left";o.push(`${t}-fixed-column--${a}`),c&&u+s===r.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!c&&l-s===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column");}return o};function tb(t,e){return t+(vc(e.realWidth)||Number.isNaN(e.realWidth)?Number(e.width):e.realWidth)}const q0=(t,e,n,r)=>{const{direction:i,start:s=0,after:o=0}=SE(t,e,n,r);if(!i)return;const a={},l=i==="left",u=n.states.columns.value;return l?a.left=u.slice(0,s).reduce(tb,0):a.right=u.slice(o+1).reverse().reduce(tb,0),a},ol=(t,e)=>{t&&(Number.isNaN(t[e])||(t[e]=`${t[e]}px`));};function BL(t){const e=getCurrentInstance(),n=ref(false),r=ref([]);return {updateExpandRows:()=>{const l=t.data.value||[],u=t.rowKey.value;if(n.value)r.value=l.slice();else if(u){const c=Ha(r.value,u);r.value=l.reduce((f,d)=>{const h=mn(d,u);return c[h]&&f.push(d),f},[]);}else r.value=[];},toggleRowExpansion:(l,u)=>{vd(r.value,l,u)&&e.emit("expand-change",l,r.value.slice());},setExpandRowKeys:l=>{e.store.assertRowKey();const u=t.data.value||[],c=t.rowKey.value,f=Ha(u,c);r.value=l.reduce((d,h)=>{const p=f[h];return p&&d.push(p.row),d},[]);},isRowExpanded:l=>{const u=t.rowKey.value;return u?!!Ha(r.value,u)[mn(l,u)]:r.value.includes(l)},states:{expandRows:r,defaultExpandAll:n}}}function OL(t){const e=getCurrentInstance(),n=ref(null),r=ref(null),i=u=>{e.store.assertRowKey(),n.value=u,o(u);},s=()=>{n.value=null;},o=u=>{const{data:c,rowKey:f}=t;let d=null;f.value&&(d=(unref(c)||[]).find(h=>mn(h,f.value)===u)),r.value=d,e.emit("current-change",r.value,null);};return {setCurrentRowKey:i,restoreCurrentRowKey:s,setCurrentRowByKey:o,updateCurrentRow:u=>{const c=r.value;if(u&&u!==c){r.value=u,e.emit("current-change",r.value,c);return}!u&&c&&(r.value=null,e.emit("current-change",null,c));},updateCurrentRowData:()=>{const u=t.rowKey.value,c=t.data.value||[],f=r.value;if(!c.includes(f)&&f){if(u){const d=mn(f,u);o(d);}else r.value=null;vc(r.value)&&e.emit("current-change",null,f);}else n.value&&(o(n.value),s());},states:{_currentRowKey:n,currentRow:r}}}function $L(t){const e=ref([]),n=ref({}),r=ref(16),i=ref(false),s=ref({}),o=ref("hasChildren"),a=ref("children"),l=ref(false),u=getCurrentInstance(),c=computed(()=>{if(!t.rowKey.value)return {};const b=t.data.value||[];return d(b)}),f=computed(()=>{const b=t.rowKey.value,D=Object.keys(s.value),C={};return D.length&&D.forEach(E=>{if(s.value[E].length){const S={children:[]};s.value[E].forEach(A=>{const M=mn(A,b);S.children.push(M),A[o.value]&&!C[M]&&(C[M]={children:[]});}),C[E]=S;}}),C}),d=b=>{const D=t.rowKey.value,C={};return AL(b,(E,S,A)=>{const M=mn(E,D);We(S)?C[M]={children:S.map(k=>mn(k,D)),level:A}:i.value&&(C[M]={children:[],lazy:true,level:A});},a.value,o.value),C},h=(b=false,D=(C=>(C=u.store)==null?void 0:C.states.defaultExpandAll.value)())=>{var C;const E=c.value,S=f.value,A=Object.keys(E),M={};if(A.length){const k=unref(n),N=[],O=(I,j)=>{if(b)return e.value?D||e.value.includes(j):!!(D||I!=null&&I.expanded);{const _=D||e.value&&e.value.includes(j);return !!(I!=null&&I.expanded||_)}};A.forEach(I=>{const j=k[I],_={...E[I]};if(_.expanded=O(j,I),_.lazy){const{loaded:R=false,loading:L=false}=j||{};_.loaded=!!R,_.loading=!!L,N.push(I);}M[I]=_;});const T=Object.keys(S);i.value&&T.length&&N.length&&T.forEach(I=>{const j=k[I],_=S[I].children;if(N.includes(I)){if(M[I].children.length!==0)throw new Error("[ElTable]children must be an empty array.");M[I].children=_;}else {const{loaded:R=false,loading:L=false}=j||{};M[I]={lazy:true,loaded:!!R,loading:!!L,expanded:O(j,I),children:_,level:""};}});}n.value=M,(C=u.store)==null||C.updateTableScrollY();};watch(()=>e.value,()=>{h(true);}),watch(()=>c.value,()=>{h();}),watch(()=>f.value,()=>{h();});const p=b=>{e.value=b,h();},m=b=>i.value&&b&&"loaded"in b&&!b.loaded,g=(b,D)=>{u.store.assertRowKey();const C=t.rowKey.value,E=mn(b,C),S=E&&n.value[E];if(E&&S&&"expanded"in S){const A=S.expanded;D=Xt(D)?!S.expanded:D,n.value[E].expanded=D,A!==D&&u.emit("expand-change",b,D),m(S)&&F(b,E,S),u.store.updateTableScrollY();}},y=b=>{u.store.assertRowKey();const D=t.rowKey.value,C=mn(b,D),E=n.value[C];m(E)?F(b,C,E):g(b,void 0);},F=(b,D,C)=>{const{load:E}=u.props;E&&!n.value[D].loaded&&(n.value[D].loading=true,E(b,C,S=>{if(!We(S))throw new TypeError("[ElTable] data must be an array");n.value[D].loading=false,n.value[D].loaded=true,n.value[D].expanded=true,S.length&&(s.value[D]=S),u.emit("expand-change",b,true);}));};return {loadData:F,loadOrToggle:y,toggleTreeExpansion:g,updateTreeExpandKeys:p,updateTreeData:h,updateKeyChildren:(b,D)=>{const{lazy:C,rowKey:E}=u.props;if(C){if(!E)throw new Error("[Table] rowKey is required in updateKeyChild");s.value[b]&&(s.value[b]=D);}},normalize:d,states:{expandRowKeys:e,treeData:n,indent:r,lazy:i,lazyTreeNodeMap:s,lazyColumnIdentifier:o,childrenColumnName:a,checkStrictly:l}}}const ML=(t,e)=>{const n=e.sortingColumn;return !n||He(n.sortable)?t:xL(t,e.sortProp,e.sortOrder,n.sortMethod,n.sortBy)},jf=t=>{const e=[];return t.forEach(n=>{n.children&&n.children.length>0?e.push.apply(e,jf(n.children)):e.push(n);}),e};function PL(){var t;const e=getCurrentInstance(),{size:n}=toRefs((t=e.proxy)==null?void 0:t.$props),r=ref(null),i=ref([]),s=ref([]),o=ref(false),a=ref([]),l=ref([]),u=ref([]),c=ref([]),f=ref([]),d=ref([]),h=ref([]),p=ref([]),m=[],g=ref(0),y=ref(0),F=ref(0),x=ref(false),b=ref([]),D=ref(false),C=ref(false),E=ref(null),S=ref({}),A=ref(null),M=ref(null),k=ref(null),N=ref(null),O=ref(null),T=computed(()=>r.value?Ha(b.value,r.value):void 0);watch(i,()=>{var ge;e.state&&(R(false),e.props.tableLayout==="auto"&&((ge=e.refs.tableHeaderRef)==null||ge.updateFixedColumnStyle()));},{deep:true});const I=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},j=ge=>{var $e;($e=ge.children)==null||$e.forEach(Pe=>{Pe.fixed=ge.fixed,j(Pe);});},_=()=>{a.value.forEach(bt=>{j(bt);}),c.value=a.value.filter(bt=>[true,"left"].includes(bt.fixed));const ge=a.value.find(bt=>bt.type==="selection");let $e;ge&&ge.fixed!=="right"&&!c.value.includes(ge)&&a.value.indexOf(ge)===0&&c.value.length&&(c.value.unshift(ge),$e=true),f.value=a.value.filter(bt=>bt.fixed==="right");const Pe=a.value.filter(bt=>($e?bt.type!=="selection":true)&&!bt.fixed);l.value=[].concat(c.value).concat(Pe).concat(f.value);const Ne=jf(Pe),ct=jf(c.value),ft=jf(f.value);g.value=Ne.length,y.value=ct.length,F.value=ft.length,u.value=[].concat(ct).concat(Ne).concat(ft),o.value=c.value.length>0||f.value.length>0;},R=(ge,$e=false)=>{ge&&_(),$e?e.state.doLayout():e.state.debouncedUpdateLayout();},L=ge=>T.value?!!T.value[mn(ge,r.value)]:b.value.includes(ge),G=()=>{x.value=false;const ge=b.value;b.value=[],ge.length&&e.emit("selection-change",[]);},me=()=>{var ge,$e;let Pe;if(r.value){Pe=[];const Ne=($e=(ge=e==null?void 0:e.store)==null?void 0:ge.states)==null?void 0:$e.childrenColumnName.value,ct=Ha(i.value,r.value,true,Ne);for(const ft in T.value)Qi(T.value,ft)&&!ct[ft]&&Pe.push(T.value[ft].row);}else Pe=b.value.filter(Ne=>!i.value.includes(Ne));if(Pe.length){const Ne=b.value.filter(ct=>!Pe.includes(ct));b.value=Ne,e.emit("selection-change",Ne.slice());}},ye=()=>(b.value||[]).slice(),ve=(ge,$e,Pe=true,Ne=false)=>{var ct,ft,bt,Mr;const Pr={children:(ft=(ct=e==null?void 0:e.store)==null?void 0:ct.states)==null?void 0:ft.childrenColumnName.value,checkStrictly:(Mr=(bt=e==null?void 0:e.store)==null?void 0:bt.states)==null?void 0:Mr.checkStrictly.value};if(vd(b.value,ge,$e,Pr,Ne?void 0:E.value,i.value.indexOf(ge))){const Vi=(b.value||[]).slice();Pe&&e.emit("select",Vi,ge),e.emit("selection-change",Vi);}},Se=()=>{var ge,$e;const Pe=C.value?!x.value:!(x.value||b.value.length);x.value=Pe;let Ne=false,ct=0;const ft=($e=(ge=e==null?void 0:e.store)==null?void 0:ge.states)==null?void 0:$e.rowKey.value,{childrenColumnName:bt}=e.store.states,Mr={children:bt.value,checkStrictly:false};i.value.forEach((Pr,va)=>{const Vi=va+ct;vd(b.value,Pr,Pe,Mr,E.value,Vi)&&(Ne=true),ct+=Te(mn(Pr,ft));}),Ne&&e.emit("selection-change",b.value?b.value.slice():[]),e.emit("select-all",(b.value||[]).slice());},Fe=()=>{i.value.forEach(ge=>{const $e=mn(ge,r.value),Pe=T.value[$e];Pe&&(b.value[Pe.index]=ge);});},Ge=()=>{var ge;if(((ge=i.value)==null?void 0:ge.length)===0){x.value=false;return}const{childrenColumnName:$e}=e.store.states;let Pe=0,Ne=0;const ct=bt=>{var Mr;for(const Pr of bt){const va=E.value&&E.value.call(null,Pr,Pe);if(L(Pr))Ne++;else if(!E.value||va)return  false;if(Pe++,(Mr=Pr[$e.value])!=null&&Mr.length&&!ct(Pr[$e.value]))return  false}return  true},ft=ct(i.value||[]);x.value=Ne===0?false:ft;},Te=ge=>{var $e;if(!e||!e.store)return 0;const{treeData:Pe}=e.store.states;let Ne=0;const ct=($e=Pe.value[ge])==null?void 0:$e.children;return ct&&(Ne+=ct.length,ct.forEach(ft=>{Ne+=Te(ft);})),Ne},ne=(ge,$e)=>{We(ge)||(ge=[ge]);const Pe={};return ge.forEach(Ne=>{S.value[Ne.id]=$e,Pe[Ne.columnKey||Ne.id]=$e;}),Pe},be=(ge,$e,Pe)=>{M.value&&M.value!==ge&&(M.value.order=null),M.value=ge,k.value=$e,N.value=Pe;},Ze=()=>{let ge=unref(s);Object.keys(S.value).forEach($e=>{const Pe=S.value[$e];if(!Pe||Pe.length===0)return;const Ne=EE({columns:u.value},$e);Ne&&Ne.filterMethod&&(ge=ge.filter(ct=>Pe.some(ft=>Ne.filterMethod.call(null,ft,ct,Ne))));}),A.value=ge;},_e=()=>{i.value=ML(A.value,{sortingColumn:M.value,sortProp:k.value,sortOrder:N.value});},rt=(ge=void 0)=>{ge&&ge.filter||Ze(),_e();},dn=ge=>{const{tableHeaderRef:$e}=e.refs;if(!$e)return;const Pe=Object.assign({},$e.filterPanels),Ne=Object.keys(Pe);if(Ne.length)if(He(ge)&&(ge=[ge]),We(ge)){const ct=ge.map(ft=>EL({columns:u.value},ft));Ne.forEach(ft=>{const bt=ct.find(Mr=>Mr.id===ft);bt&&(bt.filteredValue=[]);}),e.store.commit("filterChange",{column:ct,values:[],silent:true,multi:true});}else Ne.forEach(ct=>{const ft=u.value.find(bt=>bt.id===ct);ft&&(ft.filteredValue=[]);}),S.value={},e.store.commit("filterChange",{column:{},values:[],silent:true});},ws=()=>{M.value&&(be(null,null,null),e.store.commit("changeSortCondition",{silent:true}));},{setExpandRowKeys:Ss,toggleRowExpansion:_i,updateExpandRows:As,states:si,isRowExpanded:Ts}=BL({data:i,rowKey:r}),{updateTreeExpandKeys:hn,toggleTreeExpansion:dr,updateTreeData:ks,updateKeyChildren:ji,loadOrToggle:re,states:Ke}=$L({data:i,rowKey:r}),{updateCurrentRowData:Mn,updateCurrentRow:oi,setCurrentRowKey:ai,states:qc}=OL({data:i,rowKey:r});return {assertRowKey:I,updateColumns:_,scheduleLayout:R,isSelected:L,clearSelection:G,cleanSelection:me,getSelectionRows:ye,toggleRowSelection:ve,_toggleAllSelection:Se,toggleAllSelection:null,updateSelectionByRowKey:Fe,updateAllSelected:Ge,updateFilters:ne,updateCurrentRow:oi,updateSort:be,execFilter:Ze,execSort:_e,execQuery:rt,clearFilter:dn,clearSort:ws,toggleRowExpansion:_i,setExpandRowKeysAdapter:ge=>{Ss(ge),hn(ge);},setCurrentRowKey:ai,toggleRowExpansionAdapter:(ge,$e)=>{u.value.some(({type:Ne})=>Ne==="expand")?_i(ge,$e):dr(ge,$e);},isRowExpanded:Ts,updateExpandRows:As,updateCurrentRowData:Mn,loadOrToggle:re,updateTreeData:ks,updateKeyChildren:ji,states:{tableSize:n,rowKey:r,data:i,_data:s,isComplex:o,_columns:a,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:f,leafColumns:d,fixedLeafColumns:h,rightFixedLeafColumns:p,updateOrderFns:m,leafColumnsLength:g,fixedLeafColumnsLength:y,rightFixedLeafColumnsLength:F,isAllSelected:x,selection:b,reserveSelection:D,selectOnIndeterminate:C,selectable:E,filters:S,filteredData:A,sortingColumn:M,sortProp:k,sortOrder:N,hoverRow:O,...si,...Ke,...qc}}}function ym(t,e){return t.map(n=>{var r;return n.id===e.id?e:((r=n.children)!=null&&r.length&&(n.children=ym(n.children,e)),n)})}function vm(t){t.forEach(e=>{var n,r;e.no=(n=e.getColumnIndex)==null?void 0:n.call(e),(r=e.children)!=null&&r.length&&vm(e.children);}),t.sort((e,n)=>e.no-n.no);}function NL(){const t=getCurrentInstance(),e=PL();return {ns:we("table"),...e,mutations:{setData(o,a){const l=unref(o._data)!==a;o.data.value=a,o._data.value=a,t.store.execQuery(),t.store.updateCurrentRowData(),t.store.updateExpandRows(),t.store.updateTreeData(t.store.states.defaultExpandAll.value),unref(o.reserveSelection)?(t.store.assertRowKey(),t.store.updateSelectionByRowKey()):l?t.store.clearSelection():t.store.cleanSelection(),t.store.updateAllSelected(),t.$ready&&t.store.scheduleLayout();},insertColumn(o,a,l,u){const c=unref(o._columns);let f=[];l?(l&&!l.children&&(l.children=[]),l.children.push(a),f=ym(c,l)):(c.push(a),f=c),vm(f),o._columns.value=f,o.updateOrderFns.push(u),a.type==="selection"&&(o.selectable.value=a.selectable,o.reserveSelection.value=a.reserveSelection),t.$ready&&(t.store.updateColumns(),t.store.scheduleLayout());},updateColumnOrder(o,a){var l;((l=a.getColumnIndex)==null?void 0:l.call(a))!==a.no&&(vm(o._columns.value),t.$ready&&t.store.updateColumns());},removeColumn(o,a,l,u){const c=unref(o._columns)||[];if(l)l.children.splice(l.children.findIndex(d=>d.id===a.id),1),nextTick(()=>{var d;((d=l.children)==null?void 0:d.length)===0&&delete l.children;}),o._columns.value=ym(c,l);else {const d=c.indexOf(a);d>-1&&(c.splice(d,1),o._columns.value=c);}const f=o.updateOrderFns.indexOf(u);f>-1&&o.updateOrderFns.splice(f,1),t.$ready&&(t.store.updateColumns(),t.store.scheduleLayout());},sort(o,a){const{prop:l,order:u,init:c}=a;if(l){const f=unref(o.columns).find(d=>d.property===l);f&&(f.order=u,t.store.updateSort(f,l,u),t.store.commit("changeSortCondition",{init:c}));}},changeSortCondition(o,a){const{sortingColumn:l,sortProp:u,sortOrder:c}=o,f=unref(l),d=unref(u),h=unref(c);vc(h)&&(o.sortingColumn.value=null,o.sortProp.value=null);const p={filter:true};t.store.execQuery(p),(!a||!(a.silent||a.init))&&t.emit("sort-change",{column:f,prop:d,order:h}),t.store.updateTableScrollY();},filterChange(o,a){const{column:l,values:u,silent:c}=a,f=t.store.updateFilters(l,u);t.store.execQuery(),c||t.emit("filter-change",f),t.store.updateTableScrollY();},toggleAllSelection(){t.store.toggleAllSelection();},rowSelectedChanged(o,a){t.store.toggleRowSelection(a),t.store.updateAllSelected();},setHoverRow(o,a){o.hoverRow.value=a;},setCurrentRow(o,a){t.store.updateCurrentRow(a);}},commit:function(o,...a){const l=t.store.mutations;if(l[o])l[o].apply(t,[t.store.states].concat(a));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){nextTick(()=>t.layout.updateScrollY.apply(t.layout));}}}const yu={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:false}};function IL(t,e){if(!t)throw new Error("Table is required.");const n=NL();return n.toggleAllSelection=Iu(n._toggleAllSelection,10),Object.keys(yu).forEach(r=>{AE(TE(e,r),r,n);}),LL(n,e),n}function LL(t,e){Object.keys(yu).forEach(n=>{watch(()=>TE(e,n),r=>{AE(r,n,t);});});}function AE(t,e,n){let r=t,i=yu[e];At(yu[e])&&(i=i.key,r=r||yu[e].default),n.states[i].value=r;}function TE(t,e){if(e.includes(".")){const n=e.split(".");let r=t;return n.forEach(i=>{r=r[i];}),r}else return t[e]}class RL{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=true,this.showHeader=true,this.height=ref(null),this.scrollX=ref(false),this.scrollY=ref(false),this.bodyWidth=ref(null),this.fixedWidth=ref(null),this.rightFixedWidth=ref(null),this.gutterWidth=0;for(const n in e)Qi(e,n)&&(isRef(this[n])?this[n].value=e[n]:this[n]=e[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const e=this.height.value;if(vc(e))return  false;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let r=true;const i=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,i!==r}return  false}setHeight(e,n="height"){if(!at)return;const r=this.table.vnode.el;if(e=wL(e),this.height.value=Number(e),!r&&(e||e===0))return nextTick(()=>this.setHeight(e,n));ot(e)?(r.style[n]=`${e}px`,this.updateElsHeight()):He(e)&&(r.style[n]=e,this.updateElsHeight());}setMaxHeight(e){this.setHeight(e,"max-height");}getFlattenColumns(){const e=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?e.push.apply(e,r.columns):e.push(r);}),e}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable");}headerDisplayNone(e){if(!e)return  true;let n=e;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return  true;n=n.parentElement;}return  false}updateColumnsWidth(){if(!at)return;const e=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const i=this.getFlattenColumns(),s=i.filter(l=>!ot(l.width));if(i.forEach(l=>{ot(l.width)&&l.realWidth&&(l.realWidth=null);}),s.length>0&&e){if(i.forEach(l=>{r+=Number(l.width||l.minWidth||80);}),r<=n){this.scrollX.value=false;const l=n-r;if(s.length===1)s[0].realWidth=Number(s[0].minWidth||80)+l;else {const u=s.reduce((d,h)=>d+Number(h.minWidth||80),0),c=l/u;let f=0;s.forEach((d,h)=>{if(h===0)return;const p=Math.floor(Number(d.minWidth||80)*c);f+=p,d.realWidth=Number(d.minWidth||80)+p;}),s[0].realWidth=Number(s[0].minWidth||80)+l-f;}}else this.scrollX.value=true,s.forEach(l=>{l.realWidth=Number(l.minWidth);});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value;}else i.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),r+=l.realWidth;}),this.scrollX.value=r>n,this.bodyWidth.value=r;const o=this.store.states.fixedColumns.value;if(o.length>0){let l=0;o.forEach(u=>{l+=Number(u.realWidth||u.width);}),this.fixedWidth.value=l;}const a=this.store.states.rightFixedColumns.value;if(a.length>0){let l=0;a.forEach(u=>{l+=Number(u.realWidth||u.width);}),this.rightFixedWidth.value=l;}this.notifyObservers("columns");}addObserver(e){this.observers.push(e);}removeObserver(e){const n=this.observers.indexOf(e);n!==-1&&this.observers.splice(n,1);}notifyObservers(e){this.observers.forEach(r=>{var i,s;switch(e){case "columns":(i=r.state)==null||i.onColumnsChange(this);break;case "scrollable":(s=r.state)==null||s.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}});}}const{CheckboxGroup:_L}=sl,jL=defineComponent({name:"ElTableFilterPanel",components:{ElCheckbox:sl,ElCheckboxGroup:_L,ElScrollbar:fo,ElTooltip:L0,ElIcon:Ot,ArrowDown:gx,ArrowUp:$M},directives:{ClickOutside:fE},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:Vu.appendTo},setup(t){const e=getCurrentInstance(),{t:n}=bc(),r=we("table-filter"),i=e==null?void 0:e.parent;i.filterPanels.value[t.column.id]||(i.filterPanels.value[t.column.id]=e);const s=ref(false),o=ref(null),a=computed(()=>t.column&&t.column.filters),l=computed(()=>t.column.filterClassName?`${r.b()} ${t.column.filterClassName}`:r.b()),u=computed({get:()=>{var D;return (((D=t.column)==null?void 0:D.filteredValue)||[])[0]},set:D=>{c.value&&(Gi(D)?c.value.splice(0,1):c.value.splice(0,1,D));}}),c=computed({get(){return t.column?t.column.filteredValue||[]:[]},set(D){t.column&&t.upDataColumn("filteredValue",D);}}),f=computed(()=>t.column?t.column.filterMultiple:true),d=D=>D.value===u.value,h=()=>{s.value=false;},p=D=>{D.stopPropagation(),s.value=!s.value;},m=()=>{s.value=false;},g=()=>{x(c.value),h();},y=()=>{c.value=[],x(c.value),h();},F=D=>{u.value=D,Gi(D)?x([]):x(c.value),h();},x=D=>{t.store.commit("filterChange",{column:t.column,values:D}),t.store.updateAllSelected();};watch(s,D=>{t.column&&t.upDataColumn("filterOpened",D);},{immediate:true});const b=computed(()=>{var D,C;return (C=(D=o.value)==null?void 0:D.popperRef)==null?void 0:C.contentRef});return {tooltipVisible:s,multiple:f,filterClassName:l,filteredValue:c,filterValue:u,filters:a,handleConfirm:g,handleReset:y,handleSelect:F,isPropAbsent:Gi,isActive:d,t:n,ns:r,showFilterPanel:p,hideFilterPanel:m,popperPaneRef:b,tooltip:o}}});function VL(t,e,n,r,i,s){const o=resolveComponent("el-checkbox"),a=resolveComponent("el-checkbox-group"),l=resolveComponent("el-scrollbar"),u=resolveComponent("arrow-up"),c=resolveComponent("arrow-down"),f=resolveComponent("el-icon"),d=resolveComponent("el-tooltip"),h=resolveDirective("click-outside");return openBlock(),createBlock(d,{ref:"tooltip",visible:t.tooltipVisible,offset:0,placement:t.placement,"show-arrow":false,"stop-popper-mouse-event":false,teleported:"",effect:"light",pure:"","popper-class":t.filterClassName,persistent:"","append-to":t.appendTo},{content:withCtx(()=>[t.multiple?(openBlock(),createElementBlock("div",{key:0},[createElementVNode("div",{class:normalizeClass(t.ns.e("content"))},[createVNode(l,{"wrap-class":t.ns.e("wrap")},{default:withCtx(()=>[createVNode(a,{modelValue:t.filteredValue,"onUpdate:modelValue":p=>t.filteredValue=p,class:normalizeClass(t.ns.e("checkbox-group"))},{default:withCtx(()=>[(openBlock(true),createElementBlock(Fragment,null,renderList(t.filters,p=>(openBlock(),createBlock(o,{key:p.value,value:p.value},{default:withCtx(()=>[createTextVNode(toDisplayString(p.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),createElementVNode("div",{class:normalizeClass(t.ns.e("bottom"))},[createElementVNode("button",{class:normalizeClass({[t.ns.is("disabled")]:t.filteredValue.length===0}),disabled:t.filteredValue.length===0,type:"button",onClick:t.handleConfirm},toDisplayString(t.t("el.table.confirmFilter")),11,["disabled","onClick"]),createElementVNode("button",{type:"button",onClick:t.handleReset},toDisplayString(t.t("el.table.resetFilter")),9,["onClick"])],2)])):(openBlock(),createElementBlock("ul",{key:1,class:normalizeClass(t.ns.e("list"))},[createElementVNode("li",{class:normalizeClass([t.ns.e("list-item"),{[t.ns.is("active")]:t.isPropAbsent(t.filterValue)}]),onClick:p=>t.handleSelect(null)},toDisplayString(t.t("el.table.clearFilter")),11,["onClick"]),(openBlock(true),createElementBlock(Fragment,null,renderList(t.filters,p=>(openBlock(),createElementBlock("li",{key:p.value,class:normalizeClass([t.ns.e("list-item"),t.ns.is("active",t.isActive(p))]),label:p.value,onClick:m=>t.handleSelect(p.value)},toDisplayString(p.text),11,["label","onClick"]))),128))],2))]),default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass([`${t.ns.namespace.value}-table__column-filter-trigger`,`${t.ns.namespace.value}-none-outline`]),onClick:t.showFilterPanel},[createVNode(f,null,{default:withCtx(()=>[renderSlot(t.$slots,"filter-icon",{},()=>[t.column.filterOpened?(openBlock(),createBlock(u,{key:0})):(openBlock(),createBlock(c,{key:1}))])]),_:3})],10,["onClick"])),[[h,t.hideFilterPanel,t.popperPaneRef]])]),_:3},8,["visible","placement","popper-class","append-to"])}var qL=Re(jL,[["render",VL],["__file","filter-panel.vue"]]);function W0(t){const e=getCurrentInstance();onBeforeMount(()=>{n.value.addObserver(e);}),onMounted(()=>{r(n.value),i(n.value);}),onUpdated(()=>{r(n.value),i(n.value);}),onUnmounted(()=>{n.value.removeObserver(e);});const n=computed(()=>{const s=t.layout;if(!s)throw new Error("Can not find table layout.");return s}),r=s=>{var o;const a=((o=t.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!a.length)return;const l=s.getFlattenColumns(),u={};l.forEach(c=>{u[c.id]=c;});for(let c=0,f=a.length;c<f;c++){const d=a[c],h=d.getAttribute("name"),p=u[h];p&&d.setAttribute("width",p.realWidth||p.width);}},i=s=>{var o,a;const l=((o=t.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,f=l.length;c<f;c++)l[c].setAttribute("width",s.scrollY.value?s.gutterWidth:"0");const u=((a=t.vnode.el)==null?void 0:a.querySelectorAll("th.gutter"))||[];for(let c=0,f=u.length;c<f;c++){const d=u[c];d.style.width=s.scrollY.value?`${s.gutterWidth}px`:"0",d.style.display=s.scrollY.value?"":"none";}};return {tableLayout:n.value,onColumnsChange:r,onScrollableChange:i}}const ri=Symbol("ElTable");function WL(t,e){const n=getCurrentInstance(),r=inject(ri),i=m=>{m.stopPropagation();},s=(m,g)=>{!g.filters&&g.sortable?p(m,g,false):g.filterable&&!g.sortable&&i(m),r==null||r.emit("header-click",g,m);},o=(m,g)=>{r==null||r.emit("header-contextmenu",g,m);},a=ref(null),l=ref(false),u=ref({}),c=(m,g)=>{if(at&&!(g.children&&g.children.length>0)&&a.value&&t.border){l.value=true;const y=r;e("set-drag-visible",true);const x=(y==null?void 0:y.vnode.el).getBoundingClientRect().left,b=n.vnode.el.querySelector(`th.${g.id}`),D=b.getBoundingClientRect(),C=D.left-x+30;zo(b,"noclick"),u.value={startMouseLeft:m.clientX,startLeft:D.right-x,startColumnLeft:D.left-x,tableLeft:x};const E=y==null?void 0:y.refs.resizeProxy;E.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return  false},document.ondragstart=function(){return  false};const S=M=>{const k=M.clientX-u.value.startMouseLeft,N=u.value.startLeft+k;E.style.left=`${Math.max(C,N)}px`;},A=()=>{if(l.value){const{startColumnLeft:M,startLeft:k}=u.value,O=Number.parseInt(E.style.left,10)-M;g.width=g.realWidth=O,y==null||y.emit("header-dragend",g.width,k-M,g,m),requestAnimationFrame(()=>{t.store.scheduleLayout(false,true);}),document.body.style.cursor="",l.value=false,a.value=null,u.value={},e("set-drag-visible",false);}document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",A),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Ai(b,"noclick");},0);};document.addEventListener("mousemove",S),document.addEventListener("mouseup",A);}},f=(m,g)=>{var y;if(g.children&&g.children.length>0)return;const F=m.target;if(!vr(F))return;const x=F==null?void 0:F.closest("th");if(!(!g||!g.resizable||!x)&&!l.value&&t.border){const b=x.getBoundingClientRect(),D=document.body.style,C=((y=x.parentNode)==null?void 0:y.lastElementChild)===x,E=t.allowDragLastColumn||!C;b.width>12&&b.right-m.clientX<8&&E?(D.cursor="col-resize",$o(x,"is-sortable")&&(x.style.cursor="col-resize"),a.value=g):l.value||(D.cursor="",$o(x,"is-sortable")&&(x.style.cursor="pointer"),a.value=null);}},d=()=>{at&&(document.body.style.cursor="");},h=({order:m,sortOrders:g})=>{if(m==="")return g[0];const y=g.indexOf(m||null);return g[y>g.length-2?0:y+1]},p=(m,g,y)=>{var F;m.stopPropagation();const x=g.order===y?null:y||h(g),b=(F=m.target)==null?void 0:F.closest("th");if(b&&$o(b,"noclick")){Ai(b,"noclick");return}if(!g.sortable)return;const D=m.currentTarget;if(["ascending","descending"].some(M=>$o(D,M)&&!g.sortOrders.includes(M)))return;const C=t.store.states;let E=C.sortProp.value,S;const A=C.sortingColumn.value;(A!==g||A===g&&vc(A.order))&&(A&&(A.order=null),C.sortingColumn.value=g,E=g.property),x?S=g.order=x:S=g.order=null,C.sortProp.value=E,C.sortOrder.value=S,r==null||r.store.commit("changeSortCondition");};return {handleHeaderClick:s,handleHeaderContextMenu:o,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:p,handleFilterClick:i}}function HL(t){const e=inject(ri),n=we("table");return {getHeaderRowStyle:a=>{const l=e==null?void 0:e.props.headerRowStyle;return Le(l)?l.call(null,{rowIndex:a}):l},getHeaderRowClass:a=>{const l=[],u=e==null?void 0:e.props.headerRowClassName;return He(u)?l.push(u):Le(u)&&l.push(u.call(null,{rowIndex:a})),l.join(" ")},getHeaderCellStyle:(a,l,u,c)=>{var f;let d=(f=e==null?void 0:e.props.headerCellStyle)!=null?f:{};Le(d)&&(d=d.call(null,{rowIndex:a,columnIndex:l,row:u,column:c}));const h=q0(l,c.fixed,t.store,u);return ol(h,"left"),ol(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(a,l,u,c)=>{const f=V0(n.b(),l,c.fixed,t.store,u),d=[c.id,c.order,c.headerAlign,c.className,c.labelClassName,...f];c.children||d.push("is-leaf"),c.sortable&&d.push("is-sortable");const h=e==null?void 0:e.props.headerCellClassName;return He(h)?d.push(h):Le(h)&&d.push(h.call(null,{rowIndex:a,columnIndex:l,row:u,column:c})),d.push(n.e("cell")),d.filter(p=>!!p).join(" ")}}}const kE=t=>{const e=[];return t.forEach(n=>{n.children?(e.push(n),e.push.apply(e,kE(n.children))):e.push(n);}),e},BE=t=>{let e=1;const n=(s,o)=>{if(o&&(s.level=o.level+1,e<s.level&&(e=s.level)),s.children){let a=0;s.children.forEach(l=>{n(l,s),a+=l.colSpan;}),s.colSpan=a;}else s.colSpan=1;};t.forEach(s=>{s.level=1,n(s,void 0);});const r=[];for(let s=0;s<e;s++)r.push([]);return kE(t).forEach(s=>{s.children?(s.rowSpan=1,s.children.forEach(o=>o.isSubColumn=true)):s.rowSpan=e-s.level+1,r[s.level-1].push(s);}),r};function zL(t){const e=inject(ri),n=computed(()=>BE(t.store.states.originColumns.value));return {isGroup:computed(()=>{const s=n.value.length>1;return s&&e&&(e.state.isGroup.value=true),s}),toggleAllSelection:s=>{s.stopPropagation(),e==null||e.store.commit("toggleAllSelection");},columnRows:n}}var KL=defineComponent({name:"ElTableHeader",components:{ElCheckbox:sl},props:{fixed:{type:String,default:""},store:{required:true,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(t,{emit:e}){const n=getCurrentInstance(),r=inject(ri),i=we("table"),s=ref({}),{onColumnsChange:o,onScrollableChange:a}=W0(r),l=(r==null?void 0:r.props.tableLayout)==="auto",u=reactive(new Map),c=ref(),f=()=>{setTimeout(()=>{u.size>0&&(u.forEach((M,k)=>{const N=c.value.querySelector(`.${k.replace(/\s/g,".")}`);if(N){const O=N.getBoundingClientRect().width;M.width=O;}}),u.clear());});};watch(u,f),onMounted(async()=>{await nextTick(),await nextTick();const{prop:M,order:k}=t.defaultSort;r==null||r.store.commit("sort",{prop:M,order:k,init:true}),f();});const{handleHeaderClick:d,handleHeaderContextMenu:h,handleMouseDown:p,handleMouseMove:m,handleMouseOut:g,handleSortClick:y,handleFilterClick:F}=WL(t,e),{getHeaderRowStyle:x,getHeaderRowClass:b,getHeaderCellStyle:D,getHeaderCellClass:C}=HL(t),{isGroup:E,toggleAllSelection:S,columnRows:A}=zL(t);return n.state={onColumnsChange:o,onScrollableChange:a},n.filterPanels=s,{ns:i,filterPanels:s,onColumnsChange:o,onScrollableChange:a,columnRows:A,getHeaderRowClass:b,getHeaderRowStyle:x,getHeaderCellClass:C,getHeaderCellStyle:D,handleHeaderClick:d,handleHeaderContextMenu:h,handleMouseDown:p,handleMouseMove:m,handleMouseOut:g,handleSortClick:y,handleFilterClick:F,isGroup:E,toggleAllSelection:S,saveIndexSelection:u,isTableLayoutAuto:l,theadRef:c,updateFixedColumnStyle:f}},render(){const{ns:t,isGroup:e,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:i,getHeaderRowClass:s,getHeaderRowStyle:o,handleHeaderClick:a,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:c,handleSortClick:f,handleMouseOut:d,store:h$1,$parent:p,saveIndexSelection:m,isTableLayoutAuto:g}=this;let y=1;return h("thead",{ref:"theadRef",class:{[t.is("group")]:e}},n.map((F,x)=>h("tr",{class:s(x),key:x,style:o(x)},F.map((b,D)=>{b.rowSpan>y&&(y=b.rowSpan);const C=i(x,D,F,b);return g&&b.fixed&&m.set(C,b),h("th",{class:C,colspan:b.colSpan,key:`${b.id}-thead`,rowspan:b.rowSpan,style:r(x,D,F,b),onClick:E=>{E.currentTarget.classList.contains("noclick")||a(E,b);},onContextmenu:E=>l(E,b),onMousedown:E=>u(E,b),onMousemove:E=>c(E,b),onMouseout:d},[h("div",{class:["cell",b.filteredValue&&b.filteredValue.length>0?"highlight":""]},[b.renderHeader?b.renderHeader({column:b,$index:D,store:h$1,_self:p}):b.label,b.sortable&&h("span",{onClick:E=>f(E,b),class:"caret-wrapper"},[h("i",{onClick:E=>f(E,b,"ascending"),class:"sort-caret ascending"}),h("i",{onClick:E=>f(E,b,"descending"),class:"sort-caret descending"})]),b.filterable&&h(qL,{store:h$1,placement:b.filterPlacement||"bottom-start",appendTo:p.appendFilterPanelTo,column:b,upDataColumn:(E,S)=>{b[E]=S;}},{"filter-icon":()=>b.renderFilterIcon?b.renderFilterIcon({filterOpened:b.filterOpened}):null})])])}))))}});function np(t,e,n=.03){return t-e>n}function UL(t){const e=inject(ri),n=ref(""),r=ref(h("div")),i=(p,m,g)=>{var y;const F=e,x=tp(p);let b;const D=(y=F==null?void 0:F.vnode.el)==null?void 0:y.dataset.prefix;x&&(b=ZD({columns:t.store.states.columns.value},x,D),b&&(F==null||F.emit(`cell-${g}`,m,b,x,p))),F==null||F.emit(`row-${g}`,m,b,p);},s=(p,m)=>{i(p,m,"dblclick");},o=(p,m)=>{t.store.commit("setCurrentRow",m),i(p,m,"click");},a=(p,m)=>{i(p,m,"contextmenu");},l=Iu(p=>{t.store.commit("setHoverRow",p);},30),u=Iu(()=>{t.store.commit("setHoverRow",null);},30),c=p=>{const m=window.getComputedStyle(p,null),g=Number.parseInt(m.paddingLeft,10)||0,y=Number.parseInt(m.paddingRight,10)||0,F=Number.parseInt(m.paddingTop,10)||0,x=Number.parseInt(m.paddingBottom,10)||0;return {left:g,right:y,top:F,bottom:x}},f=(p,m,g)=>{let y=m.target.parentNode;for(;p>1&&(y=y==null?void 0:y.nextSibling,!(!y||y.nodeName!=="TR"));)g(y,"hover-row hover-fixed-row"),p--;};return {handleDoubleClick:s,handleClick:o,handleContextMenu:a,handleMouseEnter:l,handleMouseLeave:u,handleCellMouseEnter:(p,m,g)=>{var y,F,x;const b=e,D=tp(p),C=(y=b==null?void 0:b.vnode.el)==null?void 0:y.dataset.prefix;let E;if(D){E=ZD({columns:t.store.states.columns.value},D,C),D.rowSpan>1&&f(D.rowSpan,p,zo);const G=b.hoverState={cell:D,column:E,row:m};b==null||b.emit("cell-mouse-enter",G.row,G.column,G.cell,p);}if(!g)return;const S=p.target.querySelector(".cell");if(!($o(S,`${C}-tooltip`)&&S.childNodes.length))return;const A=document.createRange();A.setStart(S,0),A.setEnd(S,S.childNodes.length);const{width:M,height:k}=A.getBoundingClientRect(),{width:N,height:O}=S.getBoundingClientRect(),{top:T,left:I,right:j,bottom:_}=c(S),R=I+j,L=T+_;np(M+R,N)||np(k+L,O)||np(S.scrollWidth,N)?kL(g,D.innerText||D.textContent,m,E,D,b):((F=In)==null?void 0:F.trigger)===D&&((x=In)==null||x());},handleCellMouseLeave:p=>{const m=tp(p);if(!m)return;m.rowSpan>1&&f(m.rowSpan,p,Ai);const g=e==null?void 0:e.hoverState;e==null||e.emit("cell-mouse-leave",g==null?void 0:g.row,g==null?void 0:g.column,g==null?void 0:g.cell,p);},tooltipContent:n,tooltipTrigger:r}}function JL(t){const e=inject(ri),n=we("table");return {getRowStyle:(u,c)=>{const f=e==null?void 0:e.props.rowStyle;return Le(f)?f.call(null,{row:u,rowIndex:c}):f||null},getRowClass:(u,c)=>{const f=[n.e("row")];e!=null&&e.props.highlightCurrentRow&&u===t.store.states.currentRow.value&&f.push("current-row"),t.stripe&&c%2===1&&f.push(n.em("row","striped"));const d=e==null?void 0:e.props.rowClassName;return He(d)?f.push(d):Le(d)&&f.push(d.call(null,{row:u,rowIndex:c})),f},getCellStyle:(u,c,f,d)=>{const h=e==null?void 0:e.props.cellStyle;let p=h??{};Le(h)&&(p=h.call(null,{rowIndex:u,columnIndex:c,row:f,column:d}));const m=q0(c,t==null?void 0:t.fixed,t.store);return ol(m,"left"),ol(m,"right"),Object.assign({},p,m)},getCellClass:(u,c,f,d,h)=>{const p=V0(n.b(),c,t==null?void 0:t.fixed,t.store,void 0,h),m=[d.id,d.align,d.className,...p],g=e==null?void 0:e.props.cellClassName;return He(g)?m.push(g):Le(g)&&m.push(g.call(null,{rowIndex:u,columnIndex:c,row:f,column:d})),m.push(n.e("cell")),m.filter(y=>!!y).join(" ")},getSpan:(u,c,f,d)=>{let h=1,p=1;const m=e==null?void 0:e.props.spanMethod;if(Le(m)){const g=m({row:u,column:c,rowIndex:f,columnIndex:d});We(g)?(h=g[0],p=g[1]):At(g)&&(h=g.rowspan,p=g.colspan);}return {rowspan:h,colspan:p}},getColspanRealWidth:(u,c,f)=>{if(c<1)return u[f].realWidth;const d=u.map(({realWidth:h,width:p})=>h||p).slice(f,f+c);return Number(d.reduce((h,p)=>Number(h)+Number(p),-1))}}}const GL=defineComponent({name:"TableTdWrapper"}),XL=defineComponent({...GL,props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(t){return (e,n)=>(openBlock(),createElementBlock("td",{colspan:t.colspan,rowspan:t.rowspan},[renderSlot(e.$slots,"default")],8,["colspan","rowspan"]))}});var YL=Re(XL,[["__file","td-wrapper.vue"]]);function QL(t){const e=inject(ri),n=we("table"),{handleDoubleClick:r,handleClick:i,handleContextMenu:s,handleMouseEnter:o,handleMouseLeave:a,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=UL(t),{getRowStyle:d,getRowClass:h$1,getCellStyle:p,getCellClass:m,getSpan:g,getColspanRealWidth:y}=JL(t),F=computed(()=>t.store.states.columns.value.findIndex(({type:E})=>E==="default")),x=(E,S)=>{const A=e.props.rowKey;return A?mn(E,A):S},b=(E,S,A,M=false)=>{const{tooltipEffect:k,tooltipOptions:N,store:O}=t,{indent:T,columns:I}=O.states,j=h$1(E,S);let _=true;return A&&(j.push(n.em("row",`level-${A.level}`)),_=A.display),h("tr",{style:[_?null:{display:"none"},d(E,S)],class:j,key:x(E,S),onDblclick:L=>r(L,E),onClick:L=>i(L,E),onContextmenu:L=>s(L,E),onMouseenter:()=>o(S),onMouseleave:a},I.value.map((L,G)=>{const{rowspan:me,colspan:ye}=g(E,L,S,G);if(!me||!ye)return null;const ve=Object.assign({},L);ve.realWidth=y(I.value,ye,G);const Se={store:t.store,_self:t.context||e,column:ve,row:E,$index:S,cellIndex:G,expanded:M};G===F.value&&A&&(Se.treeNode={indent:A.level*T.value,level:A.level},St(A.expanded)&&(Se.treeNode.expanded=A.expanded,"loading"in A&&(Se.treeNode.loading=A.loading),"noLazyChildren"in A&&(Se.treeNode.noLazyChildren=A.noLazyChildren)));const Fe=`${x(E,S)},${G}`,Ge=ve.columnKey||ve.rawColumnKey||"",Te=L.showOverflowTooltip&&nx({effect:k},N,L.showOverflowTooltip);return h(YL,{style:p(S,G,E,L),class:m(S,G,E,L,ye-1),key:`${Ge}${Fe}`,rowspan:me,colspan:ye,onMouseenter:ne=>l(ne,E,Te),onMouseleave:u},{default:()=>D(G,L,Se)})}))},D=(E,S,A)=>S.renderCell(A);return {wrappedRowRender:(E,S)=>{const A=t.store,{isRowExpanded:M,assertRowKey:k}=A,{treeData:N,lazyTreeNodeMap:O,childrenColumnName:T,rowKey:I}=A.states,j=A.states.columns.value;if(j.some(({type:R})=>R==="expand")){const R=M(E),L=b(E,S,void 0,R),G=e.renderExpanded;if(!G)return console.error("[Element Error]renderExpanded is required."),L;const me=[[L]];return (e.props.preserveExpandedContent||R)&&me[0].push(h("tr",{key:`expanded-row__${L.key}`,style:{display:R?"":"none"}},[h("td",{colspan:j.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[G({row:E,$index:S,store:A,expanded:R})])])),me}else if(Object.keys(N.value).length){k();const R=mn(E,I.value);let L=N.value[R],G=null;L&&(G={expanded:L.expanded,level:L.level,display:true},St(L.lazy)&&(St(L.loaded)&&L.loaded&&(G.noLazyChildren=!(L.children&&L.children.length)),G.loading=L.loading));const me=[b(E,S,G)];if(L){let ye=0;const ve=(Fe,Ge)=>{Fe&&Fe.length&&Ge&&Fe.forEach(Te=>{const ne={display:Ge.display&&Ge.expanded,level:Ge.level+1,expanded:false,noLazyChildren:false,loading:false},be=mn(Te,I.value);if(Gi(be))throw new Error("For nested data item, row-key is required.");if(L={...N.value[be]},L&&(ne.expanded=L.expanded,L.level=L.level||ne.level,L.display=!!(L.expanded&&ne.display),St(L.lazy)&&(St(L.loaded)&&L.loaded&&(ne.noLazyChildren=!(L.children&&L.children.length)),ne.loading=L.loading)),ye++,me.push(b(Te,S+ye,ne)),L){const Ze=O.value[be]||Te[T.value];ve(Ze,L);}});};L.display=true;const Se=O.value[R]||E[T.value];ve(Se,L);}return me}else return b(E,S,void 0)},tooltipContent:c,tooltipTrigger:f}}const ZL={store:{required:true,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var eR=defineComponent({name:"ElTableBody",props:ZL,setup(t){const e=getCurrentInstance(),n=inject(ri),r=we("table"),{wrappedRowRender:i,tooltipContent:s,tooltipTrigger:o}=QL(t),{onColumnsChange:a,onScrollableChange:l}=W0(n),u=[];return watch(t.store.states.hoverRow,(c,f)=>{var d;const h=e==null?void 0:e.vnode.el,p=Array.from((h==null?void 0:h.children)||[]).filter(y=>y==null?void 0:y.classList.contains(`${r.e("row")}`));let m=c;const g=(d=p[m])==null?void 0:d.childNodes;if(g!=null&&g.length){let y=0;Array.from(g).reduce((x,b,D)=>{var C,E;return ((C=g[D])==null?void 0:C.colSpan)>1&&(y=(E=g[D])==null?void 0:E.colSpan),b.nodeName!=="TD"&&y===0&&x.push(D),y>0&&y--,x},[]).forEach(x=>{var b;for(m=c;m>0;){const D=(b=p[m-1])==null?void 0:b.childNodes;if(D[x]&&D[x].nodeName==="TD"&&D[x].rowSpan>1){zo(D[x],"hover-cell"),u.push(D[x]);break}m--;}});}else u.forEach(y=>Ai(y,"hover-cell")),u.length=0;!t.store.states.isComplex.value||!at||CM(()=>{const y=p[f],F=p[c];y&&!y.classList.contains("hover-fixed-row")&&Ai(y,"hover-row"),F&&zo(F,"hover-row");});}),onUnmounted(()=>{var c;(c=In)==null||c();}),{ns:r,onColumnsChange:a,onScrollableChange:l,wrappedRowRender:i,tooltipContent:s,tooltipTrigger:o}},render(){const{wrappedRowRender:t,store:e}=this,n=e.states.data.value||[];return h("tbody",{tabIndex:-1},[n.reduce((r,i)=>r.concat(t(i,r.length)),[])])}});function tR(){var t;const e=inject(ri),n=e==null?void 0:e.store,r=computed(()=>{var l;return (l=n==null?void 0:n.states.fixedLeafColumnsLength.value)!=null?l:0}),i=computed(()=>{var l;return (l=n==null?void 0:n.states.rightFixedColumns.value.length)!=null?l:0}),s=computed(()=>{var l;return (l=n==null?void 0:n.states.columns.value.length)!=null?l:0}),o=computed(()=>{var l;return (l=n==null?void 0:n.states.fixedColumns.value.length)!=null?l:0}),a=computed(()=>{var l;return (l=n==null?void 0:n.states.rightFixedColumns.value.length)!=null?l:0});return {leftFixedLeafCount:r,rightFixedLeafCount:i,columnsCount:s,leftFixedCount:o,rightFixedCount:a,columns:(t=n==null?void 0:n.states.columns)!=null?t:[]}}function nR(t){const{columns:e}=tR(),n=we("table");return {getCellClasses:(s,o)=>{const a=s[o],l=[n.e("cell"),a.id,a.align,a.labelClassName,...V0(n.b(),o,a.fixed,t.store)];return a.className&&l.push(a.className),a.children||l.push(n.is("leaf")),l},getCellStyles:(s,o)=>{const a=q0(o,s.fixed,t.store);return ol(a,"left"),ol(a,"right"),a},columns:e}}var rR=defineComponent({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:true,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(t){const e=inject(ri),n=we("table"),{getCellClasses:r,getCellStyles:i,columns:s}=nR(t),{onScrollableChange:o,onColumnsChange:a}=W0(e);return {ns:n,onScrollableChange:o,onColumnsChange:a,getCellClasses:r,getCellStyles:i,columns:s}},render(){const{columns:t,getCellStyles:e,getCellClasses:n,summaryMethod:r,sumText:i}=this,s=this.store.states.data.value;let o=[];return r?o=r({columns:t,data:s}):t.forEach((a,l)=>{if(l===0){o[l]=i;return}const u=s.map(h=>Number(h[a.property])),c=[];let f=true;u.forEach(h=>{if(!Number.isNaN(+h)){f=false;const p=`${h}`.split(".")[1];c.push(p?p.length:0);}});const d=Math.max.apply(null,c);f?o[l]="":o[l]=u.reduce((h,p)=>{const m=Number(p);return Number.isNaN(+m)?h:Number.parseFloat((h+p).toFixed(Math.min(d,20)))},0);}),h(h("tfoot",[h("tr",{},[...t.map((a,l)=>h("td",{key:l,colspan:a.colSpan,rowspan:a.rowSpan,class:n(t,l),style:e(a,l)},[h("div",{class:["cell",a.labelClassName]},[o[l]])]))])]))}});function iR(t){return {setCurrentRow:f=>{t.commit("setCurrentRow",f);},getSelectionRows:()=>t.getSelectionRows(),toggleRowSelection:(f,d,h=true)=>{t.toggleRowSelection(f,d,false,h),t.updateAllSelected();},clearSelection:()=>{t.clearSelection();},clearFilter:f=>{t.clearFilter(f);},toggleAllSelection:()=>{t.commit("toggleAllSelection");},toggleRowExpansion:(f,d)=>{t.toggleRowExpansionAdapter(f,d);},clearSort:()=>{t.clearSort();},sort:(f,d)=>{t.commit("sort",{prop:f,order:d});},updateKeyChildren:(f,d)=>{t.updateKeyChildren(f,d);}}}function sR(t,e,n,r){const i=ref(false),s=ref(null),o=ref(false),a=R=>{o.value=R;},l=ref({width:null,height:null,headerHeight:null}),u=ref(false),c={display:"inline-block",verticalAlign:"middle"},f=ref(),d=ref(0),h=ref(0),p=ref(0),m=ref(0),g=ref(0);watchEffect(()=>{e.setHeight(t.height);}),watchEffect(()=>{e.setMaxHeight(t.maxHeight);}),watch(()=>[t.currentRowKey,n.states.rowKey],([R,L])=>{!unref(L)||!unref(R)||n.setCurrentRowKey(`${R}`);},{immediate:true}),watch(()=>t.data,R=>{r.store.commit("setData",R);},{immediate:true,deep:true}),watchEffect(()=>{t.expandRowKeys&&n.setExpandRowKeysAdapter(t.expandRowKeys);});const y=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null);},F=(R,L)=>{const{pixelX:G,pixelY:me}=L;Math.abs(G)>=Math.abs(me)&&(r.refs.bodyWrapper.scrollLeft+=L.pixelX/5);},x=computed(()=>t.height||t.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),b=computed(()=>({width:e.bodyWidth.value?`${e.bodyWidth.value}px`:""})),D=()=>{x.value&&e.updateElsHeight(),e.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(A);};onMounted(async()=>{await nextTick(),n.updateColumns(),M(),requestAnimationFrame(D);const R=r.vnode.el,L=r.refs.headerWrapper;t.flexible&&R&&R.parentElement&&(R.parentElement.style.minWidth="0"),l.value={width:f.value=R.offsetWidth,height:R.offsetHeight,headerHeight:t.showHeader&&L?L.offsetHeight:null},n.states.columns.value.forEach(G=>{G.filteredValue&&G.filteredValue.length&&r.store.commit("filterChange",{column:G,values:G.filteredValue,silent:true});}),r.$ready=true;});const C=(R,L)=>{if(!R)return;const G=Array.from(R.classList).filter(me=>!me.startsWith("is-scrolling-"));G.push(e.scrollX.value?L:"is-scrolling-none"),R.className=G.join(" ");},E=R=>{const{tableWrapper:L}=r.refs;C(L,R);},S=R=>{const{tableWrapper:L}=r.refs;return !!(L&&L.classList.contains(R))},A=function(){if(!r.refs.scrollBarRef)return;if(!e.scrollX.value){const Fe="is-scrolling-none";S(Fe)||E(Fe);return}const R=r.refs.scrollBarRef.wrapRef;if(!R)return;const{scrollLeft:L,offsetWidth:G,scrollWidth:me}=R,{headerWrapper:ye,footerWrapper:ve}=r.refs;ye&&(ye.scrollLeft=L),ve&&(ve.scrollLeft=L);const Se=me-G-1;L>=Se?E("is-scrolling-right"):E(L===0?"is-scrolling-left":"is-scrolling-middle");},M=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&Dr(r.refs.scrollBarRef.wrapRef,"scroll",A,{passive:true}),t.fit?or(r.vnode.el,k):Dr(window,"resize",k),or(r.refs.bodyWrapper,()=>{var R,L;k(),(L=(R=r.refs)==null?void 0:R.scrollBarRef)==null||L.update();}));},k=()=>{var R,L,G,me;const ye=r.vnode.el;if(!r.$ready||!ye)return;let ve=false;const{width:Se,height:Fe,headerHeight:Ge}=l.value,Te=f.value=ye.offsetWidth;Se!==Te&&(ve=true);const ne=ye.offsetHeight;(t.height||x.value)&&Fe!==ne&&(ve=true);const be=t.tableLayout==="fixed"?r.refs.headerWrapper:(R=r.refs.tableHeaderRef)==null?void 0:R.$el;t.showHeader&&(be==null?void 0:be.offsetHeight)!==Ge&&(ve=true),d.value=((L=r.refs.tableWrapper)==null?void 0:L.scrollHeight)||0,p.value=(be==null?void 0:be.scrollHeight)||0,m.value=((G=r.refs.footerWrapper)==null?void 0:G.offsetHeight)||0,g.value=((me=r.refs.appendWrapper)==null?void 0:me.offsetHeight)||0,h.value=d.value-p.value-m.value-g.value,ve&&(l.value={width:Te,height:ne,headerHeight:t.showHeader&&(be==null?void 0:be.offsetHeight)||0},D());},N=Gr(),O=computed(()=>{const{bodyWidth:R,scrollY:L,gutterWidth:G}=e;return R.value?`${R.value-(L.value?G:0)}px`:""}),T=computed(()=>t.maxHeight?"fixed":t.tableLayout),I=computed(()=>{if(t.data&&t.data.length)return null;let R="100%";t.height&&h.value&&(R=`${h.value}px`);const L=f.value;return {width:L?`${L}px`:"",height:R}}),j=computed(()=>t.height?{height:"100%"}:t.maxHeight?Number.isNaN(Number(t.maxHeight))?{maxHeight:`calc(${t.maxHeight} - ${p.value+m.value}px)`}:{maxHeight:`${t.maxHeight-p.value-m.value}px`}:{});return {isHidden:i,renderExpanded:s,setDragVisible:a,isGroup:u,handleMouseLeave:y,handleHeaderFooterMousewheel:F,tableSize:N,emptyBlockStyle:I,handleFixedMousewheel:(R,L)=>{const G=r.refs.bodyWrapper;if(Math.abs(L.spinY)>0){const me=G.scrollTop;L.pixelY<0&&me!==0&&R.preventDefault(),L.pixelY>0&&G.scrollHeight-G.clientHeight>me&&R.preventDefault(),G.scrollTop+=Math.ceil(L.pixelY/5);}else G.scrollLeft+=Math.ceil(L.pixelX/5);},resizeProxyVisible:o,bodyWidth:O,resizeState:l,doLayout:D,tableBodyStyles:b,tableLayout:T,scrollbarViewStyle:c,scrollbarStyle:j}}function oR(t){const e=ref(),n=()=>{const i=t.vnode.el.querySelector(".hidden-columns"),s={childList:true,subtree:true},o=t.store.states.updateOrderFns;e.value=new MutationObserver(()=>{o.forEach(a=>a());}),e.value.observe(i,s);};onMounted(()=>{n();}),onUnmounted(()=>{var r;(r=e.value)==null||r.disconnect();});}var aR={data:{type:Array,default:()=>[]},size:cs,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:true},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:true},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:true},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:false})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:true},preserveExpandedContent:{type:Boolean,default:false}};function OE(t){const e=t.tableLayout==="auto";let n=t.columns||[];e&&n.every(({width:i})=>Xt(i))&&(n=[]);const r=i=>{const s={key:`${t.tableLayout}_${i.id}`,style:{},name:void 0};return e?s.style={width:`${i.width}px`}:s.name=i.id,s};return h("colgroup",{},n.map(i=>h("col",r(i))))}OE.props=["columns","tableLayout"];const lR=()=>{const t=ref(),e=(s,o)=>{const a=t.value;a&&a.scrollTo(s,o);},n=(s,o)=>{const a=t.value;a&&ot(o)&&["Top","Left"].includes(s)&&a[`setScroll${s}`](o);};return {scrollBarRef:t,scrollTo:e,setScrollTop:s=>n("Top",s),setScrollLeft:s=>n("Left",s)}};var nb=false,wo,Dm,bm,Vf,qf,$E,Wf,Cm,xm,Em,ME,Fm,wm,PE,NE;function Nn(){if(!nb){nb=true;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),n=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(Fm=/\b(iPhone|iP[ao]d)/.exec(t),wm=/\b(iP[ao]d)/.exec(t),Em=/Android/i.exec(t),PE=/FBAN\/\w+;/i.exec(t),NE=/Mobile/i.exec(t),ME=!!/Win64/.exec(t),e){wo=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,wo&&document&&document.documentMode&&(wo=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(t);$E=r?parseFloat(r[1])+4:wo,Dm=e[2]?parseFloat(e[2]):NaN,bm=e[3]?parseFloat(e[3]):NaN,Vf=e[4]?parseFloat(e[4]):NaN,Vf?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),qf=e&&e[1]?parseFloat(e[1]):NaN):qf=NaN;}else wo=Dm=bm=qf=Vf=NaN;if(n){if(n[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);Wf=i?parseFloat(i[1].replace("_",".")):true;}else Wf=false;Cm=!!n[2],xm=!!n[3];}else Wf=Cm=xm=false;}}var Sm={ie:function(){return Nn()||wo},ieCompatibilityMode:function(){return Nn()||$E>wo},ie64:function(){return Sm.ie()&&ME},firefox:function(){return Nn()||Dm},opera:function(){return Nn()||bm},webkit:function(){return Nn()||Vf},safari:function(){return Sm.webkit()},chrome:function(){return Nn()||qf},windows:function(){return Nn()||Cm},osx:function(){return Nn()||Wf},linux:function(){return Nn()||xm},iphone:function(){return Nn()||Fm},mobile:function(){return Nn()||Fm||wm||Em||NE},nativeApp:function(){return Nn()||PE},android:function(){return Nn()||Em},ipad:function(){return Nn()||wm}},uR=Sm,cR=!!(typeof window<"u"&&window.document&&window.document.createElement),fR={canUseDOM:cR},IE=fR,LE;IE.canUseDOM&&(LE=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==true);function dR(t,e){if(!IE.canUseDOM||e&&!("addEventListener"in document))return  false;var n="on"+t,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r=typeof i[n]=="function";}return !r&&LE&&t==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var hR=dR,rb=10,ib=40,sb=800;function RE(t){var e=0,n=0,r=0,i=0;return "detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=e*rb,i=n*rb,"deltaY"in t&&(i=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||i)&&t.deltaMode&&(t.deltaMode==1?(r*=ib,i*=ib):(r*=sb,i*=sb)),r&&!e&&(e=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:i}}RE.getEventType=function(){return uR.firefox()?"DOMMouseScroll":hR("wheel")?"wheel":"mousewheel"};var pR=RE;/**
            * Checks if an event is supported in the current execution environment.
            *
            * NOTE: This will not work correctly for non-generic events such as `change`,
            * `reset`, `load`, `error`, and `select`.
            *
            * Borrows from Modernizr.
            *
            * @param {string} eventNameSuffix Event name, e.g. "click".
            * @param {?boolean} capture Check if the capture phase is supported.
            * @return {boolean} True if the event is supported.
            * @internal
            * @license Modernizr 3.0.0pre (Custom Build) | MIT
            */const mR=function(t,e){if(t&&t.addEventListener){const n=function(r){const i=pR(r);e&&Reflect.apply(e,this,[r,i]);};t.addEventListener("wheel",n,{passive:true});}},gR={beforeMount(t,e){mR(t,e.value);}};let yR=1;const vR=defineComponent({name:"ElTable",directives:{Mousewheel:gR},components:{TableHeader:KL,TableBody:eR,TableFooter:rR,ElScrollbar:fo,hColgroup:OE},props:aR,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(t){const{t:e}=bc(),n=we("table"),r=getCurrentInstance();provide(ri,r);const i=IL(r,t);r.store=i;const s=new RL({store:r.store,table:r,fit:t.fit,showHeader:t.showHeader});r.layout=s;const o=computed(()=>(i.states.data.value||[]).length===0),{setCurrentRow:a,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:p,sort:m,updateKeyChildren:g}=iR(i),{isHidden:y,renderExpanded:F,setDragVisible:x,isGroup:b,handleMouseLeave:D,handleHeaderFooterMousewheel:C,tableSize:E,emptyBlockStyle:S,handleFixedMousewheel:A,resizeProxyVisible:M,bodyWidth:k,resizeState:N,doLayout:O,tableBodyStyles:T,tableLayout:I,scrollbarViewStyle:j,scrollbarStyle:_}=sR(t,s,i,r),{scrollBarRef:R,scrollTo:L,setScrollLeft:G,setScrollTop:me}=lR(),ye=Iu(O,50),ve=`${n.namespace.value}-table_${yR++}`;r.tableId=ve,r.state={isGroup:b,resizeState:N,doLayout:O,debouncedUpdateLayout:ye};const Se=computed(()=>{var Te;return (Te=t.sumText)!=null?Te:e("el.table.sumText")}),Fe=computed(()=>{var Te;return (Te=t.emptyText)!=null?Te:e("el.table.emptyText")}),Ge=computed(()=>BE(i.states.originColumns.value)[0]);return oR(r),onBeforeUnmount(()=>{ye.cancel();}),{ns:n,layout:s,store:i,columns:Ge,handleHeaderFooterMousewheel:C,handleMouseLeave:D,tableId:ve,tableSize:E,isHidden:y,isEmpty:o,renderExpanded:F,resizeProxyVisible:M,resizeState:N,isGroup:b,bodyWidth:k,tableBodyStyles:T,emptyBlockStyle:S,debouncedUpdateLayout:ye,handleFixedMousewheel:A,setCurrentRow:a,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:p,doLayout:O,sort:m,updateKeyChildren:g,t:e,setDragVisible:x,context:r,computedSumText:Se,computedEmptyText:Fe,tableLayout:I,scrollbarViewStyle:j,scrollbarStyle:_,scrollBarRef:R,scrollTo:L,setScrollLeft:G,setScrollTop:me,allowDragLastColumn:t.allowDragLastColumn}}});function DR(t,e,n,r,i,s){const o=resolveComponent("hColgroup"),a=resolveComponent("table-header"),l=resolveComponent("table-body"),u=resolveComponent("table-footer"),c=resolveComponent("el-scrollbar"),f=resolveDirective("mousewheel");return openBlock(),createElementBlock("div",{ref:"tableWrapper",class:normalizeClass([{[t.ns.m("fit")]:t.fit,[t.ns.m("striped")]:t.stripe,[t.ns.m("border")]:t.border||t.isGroup,[t.ns.m("hidden")]:t.isHidden,[t.ns.m("group")]:t.isGroup,[t.ns.m("fluid-height")]:t.maxHeight,[t.ns.m("scrollable-x")]:t.layout.scrollX.value,[t.ns.m("scrollable-y")]:t.layout.scrollY.value,[t.ns.m("enable-row-hover")]:!t.store.states.isComplex.value,[t.ns.m("enable-row-transition")]:(t.store.states.data.value||[]).length!==0&&(t.store.states.data.value||[]).length<100,"has-footer":t.showSummary},t.ns.m(t.tableSize),t.className,t.ns.b(),t.ns.m(`layout-${t.tableLayout}`)]),style:normalizeStyle(t.style),"data-prefix":t.ns.namespace.value,onMouseleave:t.handleMouseLeave},[createElementVNode("div",{class:normalizeClass(t.ns.e("inner-wrapper"))},[createElementVNode("div",{ref:"hiddenColumns",class:"hidden-columns"},[renderSlot(t.$slots,"default")],512),t.showHeader&&t.tableLayout==="fixed"?withDirectives((openBlock(),createElementBlock("div",{key:0,ref:"headerWrapper",class:normalizeClass(t.ns.e("header-wrapper"))},[createElementVNode("table",{ref:"tableHeader",class:normalizeClass(t.ns.e("header")),style:normalizeStyle(t.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[createVNode(o,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),createVNode(a,{ref:"tableHeaderRef",border:t.border,"default-sort":t.defaultSort,store:t.store,"append-filter-panel-to":t.appendFilterPanelTo,"allow-drag-last-column":t.allowDragLastColumn,onSetDragVisible:t.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[f,t.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",true),createElementVNode("div",{ref:"bodyWrapper",class:normalizeClass(t.ns.e("body-wrapper"))},[createVNode(c,{ref:"scrollBarRef","view-style":t.scrollbarViewStyle,"wrap-style":t.scrollbarStyle,always:t.scrollbarAlwaysOn,tabindex:t.scrollbarTabindex,onScroll:d=>t.$emit("scroll",d)},{default:withCtx(()=>[createElementVNode("table",{ref:"tableBody",class:normalizeClass(t.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:normalizeStyle({width:t.bodyWidth,tableLayout:t.tableLayout})},[createVNode(o,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),t.showHeader&&t.tableLayout==="auto"?(openBlock(),createBlock(a,{key:0,ref:"tableHeaderRef",class:normalizeClass(t.ns.e("body-header")),border:t.border,"default-sort":t.defaultSort,store:t.store,"append-filter-panel-to":t.appendFilterPanelTo,onSetDragVisible:t.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):createCommentVNode("v-if",true),createVNode(l,{context:t.context,highlight:t.highlightCurrentRow,"row-class-name":t.rowClassName,"tooltip-effect":t.tooltipEffect,"tooltip-options":t.tooltipOptions,"row-style":t.rowStyle,store:t.store,stripe:t.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),t.showSummary&&t.tableLayout==="auto"?(openBlock(),createBlock(u,{key:1,class:normalizeClass(t.ns.e("body-footer")),border:t.border,"default-sort":t.defaultSort,store:t.store,"sum-text":t.computedSumText,"summary-method":t.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):createCommentVNode("v-if",true)],6),t.isEmpty?(openBlock(),createElementBlock("div",{key:0,ref:"emptyBlock",style:normalizeStyle(t.emptyBlockStyle),class:normalizeClass(t.ns.e("empty-block"))},[createElementVNode("span",{class:normalizeClass(t.ns.e("empty-text"))},[renderSlot(t.$slots,"empty",{},()=>[createTextVNode(toDisplayString(t.computedEmptyText),1)])],2)],6)):createCommentVNode("v-if",true),t.$slots.append?(openBlock(),createElementBlock("div",{key:1,ref:"appendWrapper",class:normalizeClass(t.ns.e("append-wrapper"))},[renderSlot(t.$slots,"append")],2)):createCommentVNode("v-if",true)]),_:3},8,["view-style","wrap-style","always","tabindex","onScroll"])],2),t.showSummary&&t.tableLayout==="fixed"?withDirectives((openBlock(),createElementBlock("div",{key:1,ref:"footerWrapper",class:normalizeClass(t.ns.e("footer-wrapper"))},[createElementVNode("table",{class:normalizeClass(t.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:normalizeStyle(t.tableBodyStyles)},[createVNode(o,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),createVNode(u,{border:t.border,"default-sort":t.defaultSort,store:t.store,"sum-text":t.computedSumText,"summary-method":t.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[vShow,!t.isEmpty],[f,t.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",true),t.border||t.isGroup?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(t.ns.e("border-left-patch"))},null,2)):createCommentVNode("v-if",true)],2),withDirectives(createElementVNode("div",{ref:"resizeProxy",class:normalizeClass(t.ns.e("column-resize-proxy"))},null,2),[[vShow,t.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var bR=Re(vR,[["render",DR],["__file","table.vue"]]);const CR={selection:"table-column--selection",expand:"table__expand-column"},xR={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},ER=t=>CR[t]||"",FR={selection:{renderHeader({store:t,column:e}){function n(){return t.states.data.value&&t.states.data.value.length===0}return h(sl,{disabled:n(),size:t.states.tableSize.value,indeterminate:t.states.selection.value.length>0&&!t.states.isAllSelected.value,"onUpdate:modelValue":t.toggleAllSelection,modelValue:t.states.isAllSelected.value,ariaLabel:e.label})},renderCell({row:t,column:e,store:n,$index:r}){return h(sl,{disabled:e.selectable?!e.selectable.call(null,t,r):false,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",t);},onClick:i=>i.stopPropagation(),modelValue:n.isSelected(t),ariaLabel:e.label})},sortable:false,resizable:false},index:{renderHeader({column:t}){return t.label||"#"},renderCell({column:t,$index:e}){let n=e+1;const r=t.index;return ot(r)?n=e+r:Le(r)&&(n=r(e)),h("div",{},[n])},sortable:false},expand:{renderHeader({column:t}){return t.label||""},renderCell({row:t,store:e,expanded:n}){const{ns:r}=e,i=[r.e("expand-icon")];return n&&i.push(r.em("expand-icon","expanded")),h("div",{class:i,onClick:function(o){o.stopPropagation(),e.toggleRowExpansion(t);}},{default:()=>[h(Ot,null,{default:()=>[h(yx)]})]})},sortable:false,resizable:false}};function wR({row:t,column:e,$index:n}){var r;const i=e.property,s=i&&hu(t,i).value;return e&&e.formatter?e.formatter(t,e,s,n):((r=s==null?void 0:s.toString)==null?void 0:r.call(s))||""}function SR({row:t,treeNode:e,store:n},r=false){const{ns:i}=n;if(!e)return r?[h("span",{class:i.e("placeholder")})]:null;const s=[],o=function(a){a.stopPropagation(),!e.loading&&n.loadOrToggle(t);};if(e.indent&&s.push(h("span",{class:i.e("indent"),style:{"padding-left":`${e.indent}px`}})),St(e.expanded)&&!e.noLazyChildren){const a=[i.e("expand-icon"),e.expanded?i.em("expand-icon","expanded"):""];let l=yx;e.loading&&(l=Za),s.push(h("div",{class:a,onClick:o},{default:()=>[h(Ot,{class:{[i.is("loading")]:e.loading}},{default:()=>[h(l)]})]}));}else s.push(h("span",{class:i.e("placeholder")}));return s}function ob(t,e){return t.reduce((n,r)=>(n[r]=r,n),e)}function AR(t,e){const n=getCurrentInstance();return {registerComplexWatchers:()=>{const s=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},a=ob(s,o);Object.keys(a).forEach(l=>{const u=o[l];Qi(e,u)&&watch(()=>e[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=j0(c)),u==="minWidth"&&l==="realMinWidth"&&(f=FE(c)),n.columnConfig.value[u]=f,n.columnConfig.value[l]=f;const d=u==="fixed";t.value.store.scheduleLayout(d);});});},registerNormalWatchers:()=>{const s=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},a=ob(s,o);Object.keys(a).forEach(l=>{const u=o[l];Qi(e,u)&&watch(()=>e[u],c=>{n.columnConfig.value[l]=c;});});}}}function TR(t,e,n){const r=getCurrentInstance(),i=ref(""),s=ref(false),o=ref(),a=ref(),l=we("table");watchEffect(()=>{o.value=t.align?`is-${t.align}`:null,o.value;}),watchEffect(()=>{a.value=t.headerAlign?`is-${t.headerAlign}`:o.value,a.value;});const u=computed(()=>{let b=r.vnode.vParent||r.parent;for(;b&&!b.tableId&&!b.columnId;)b=b.vnode.vParent||b.parent;return b}),c=computed(()=>{const{store:b}=r.parent;if(!b)return  false;const{treeData:D}=b.states,C=D.value;return C&&Object.keys(C).length>0}),f=ref(j0(t.width)),d=ref(FE(t.minWidth)),h$1=b=>(f.value&&(b.width=f.value),d.value&&(b.minWidth=d.value),!f.value&&d.value&&(b.width=void 0),b.minWidth||(b.minWidth=80),b.realWidth=Number(Xt(b.width)?b.minWidth:b.width),b),p=b=>{const D=b.type,C=FR[D]||{};Object.keys(C).forEach(S=>{const A=C[S];S!=="className"&&!Xt(A)&&(b[S]=A);});const E=ER(D);if(E){const S=`${unref(l.namespace)}-${E}`;b.className=b.className?`${b.className} ${S}`:S;}return b},m=b=>{We(b)?b.forEach(C=>D(C)):D(b);function D(C){var E;((E=C==null?void 0:C.type)==null?void 0:E.name)==="ElTableColumn"&&(C.vParent=r);}};return {columnId:i,realAlign:o,isSubColumn:s,realHeaderAlign:a,columnOrTableParent:u,setColumnWidth:h$1,setColumnForcedProps:p,setColumnRenders:b=>{t.renderHeader||b.type!=="selection"&&(b.renderHeader=C=>(r.columnConfig.value.label,renderSlot(e,"header",C,()=>[b.label]))),e["filter-icon"]&&(b.renderFilterIcon=C=>renderSlot(e,"filter-icon",C));let D=b.renderCell;return b.type==="expand"?(b.renderCell=C=>h("div",{class:"cell"},[D(C)]),n.value.renderExpanded=C=>e.default?e.default(C):e.default):(D=D||wR,b.renderCell=C=>{let E=null;if(e.default){const O=e.default(C);E=O.some(T=>T.type!==Comment)?O:D(C);}else E=D(C);const{columns:S}=n.value.store.states,A=S.value.findIndex(O=>O.type==="default"),M=c.value&&C.cellIndex===A,k=SR(C,M),N={class:"cell",style:{}};return b.showOverflowTooltip&&(N.class=`${N.class} ${unref(l.namespace)}-tooltip`,N.style={width:`${(C.column.realWidth||Number(C.column.width))-1}px`}),m(E),h("div",N,[k,E])}),b},getPropsData:(...b)=>b.reduce((D,C)=>(We(C)&&C.forEach(E=>{D[E]=t[E];}),D),{}),getColumnElIndex:(b,D)=>Array.prototype.indexOf.call(b,D),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value);}}}var kR={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:false},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:true},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:true},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:t=>t.every(e=>["ascending","descending",null].includes(e))}};let BR=1;var _E=defineComponent({name:"ElTableColumn",components:{ElCheckbox:sl},props:kR,setup(t,{slots:e}){const n=getCurrentInstance(),r=ref({}),i=computed(()=>{let x=n.parent;for(;x&&!x.tableId;)x=x.parent;return x}),{registerNormalWatchers:s,registerComplexWatchers:o}=AR(i,t),{columnId:a,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:d,setColumnRenders:h,getPropsData:p,getColumnElIndex:m,realAlign:g,updateColumnOrder:y}=TR(t,e,i),F=c.value;a.value=`${F.tableId||F.columnId}_column_${BR++}`,onBeforeMount(()=>{l.value=i.value!==F;const x=t.type||"default",b=t.sortable===""?true:t.sortable,D=x==="selection"?false:Xt(t.showOverflowTooltip)?F.props.showOverflowTooltip:t.showOverflowTooltip,C=Xt(t.tooltipFormatter)?F.props.tooltipFormatter:t.tooltipFormatter,E={...xR[x],id:a.value,type:x,property:t.prop||t.property,align:g,headerAlign:u,showOverflowTooltip:D,tooltipFormatter:C,filterable:t.filters||t.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:false,isSubColumn:false,filterOpened:false,sortable:b,index:t.index,rawColumnKey:n.vnode.key};let N=p(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);N=FL(E,N),N=SL(h,f,d)(N),r.value=N,s(),o();}),onMounted(()=>{var x;const b=c.value,D=l.value?b.vnode.el.children:(x=b.refs.hiddenColumns)==null?void 0:x.children,C=()=>m(D||[],n.vnode.el);r.value.getColumnIndex=C,C()>-1&&i.value.store.commit("insertColumn",r.value,l.value?b.columnConfig.value:null,y);}),onBeforeUnmount(()=>{const x=r.value.getColumnIndex;(x?x():-1)>-1&&i.value.store.commit("removeColumn",r.value,l.value?F.columnConfig.value:null,y);}),n.columnId=a.value,n.columnConfig=r;},render(){var t,e,n;try{const r=(e=(t=this.$slots).default)==null?void 0:e.call(t,{row:{},column:{},$index:-1}),i=[];if(We(r))for(const o of r)((n=o.type)==null?void 0:n.name)==="ElTableColumn"||o.shapeFlag&2?i.push(o):o.type===Fragment&&We(o.children)&&o.children.forEach(a=>{(a==null?void 0:a.patchFlag)!==1024&&!He(a==null?void 0:a.children)&&i.push(a);});return h("div",i)}catch{return h("div",[])}}});const OR=Dn(bR,{TableColumn:_E}),rp=fs(_E);function $R(t,e){let n;const r=ref(false),i=reactive({...t,originalPosition:"",originalOverflow:"",visible:false});function s(h){i.text=h;}function o(){const h=i.parent,p=d.ns;if(!h.vLoadingAddClassList){let m=h.getAttribute("loading-number");m=Number.parseInt(m)-1,m?h.setAttribute("loading-number",m.toString()):(Ai(h,p.bm("parent","relative")),h.removeAttribute("loading-number")),Ai(h,p.bm("parent","hidden"));}a(),f.unmount();}function a(){var h,p;(p=(h=d.$el)==null?void 0:h.parentNode)==null||p.removeChild(d.$el);}function l(){var h;t.beforeClose&&!t.beforeClose()||(r.value=true,clearTimeout(n),n=setTimeout(u,400),i.visible=false,(h=t.closed)==null||h.call(t));}function u(){if(!r.value)return;const h=i.parent;r.value=false,h.vLoadingAddClassList=void 0,o();}const c=defineComponent({name:"ElLoading",setup(h$1,{expose:p}){const{ns:m,zIndex:g}=D0("loading");return p({ns:m,zIndex:g}),()=>{const y=i.spinner||i.svg,F=h("svg",{class:"circular",viewBox:i.svgViewBox?i.svgViewBox:"0 0 50 50",...y?{innerHTML:y}:{}},[h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),x=i.text?h("p",{class:m.b("text")},[i.text]):void 0;return h(Transition,{name:m.b("fade"),onAfterLeave:u},{default:withCtx(()=>[withDirectives(createVNode("div",{style:{backgroundColor:i.background||""},class:[m.b("mask"),i.customClass,i.fullscreen?"is-fullscreen":""]},[h("div",{class:m.b("spinner")},[F,x])]),[[vShow,i.visible]])])})}}}),f=createApp(c);Object.assign(f._context,e??{});const d=f.mount(document.createElement("div"));return {...toRefs(i),setText:s,removeElLoadingChild:a,close:l,handleAfterLeave:u,vm:d,get $el(){return d.$el}}}let tf;const za=function(t={}){if(!at)return;const e=MR(t);if(e.fullscreen&&tf)return tf;const n=$R({...e,closed:()=>{var i;(i=e.closed)==null||i.call(e),e.fullscreen&&(tf=void 0);}},za._context);PR(e,e.parent,n),ab(e,e.parent,n),e.parent.vLoadingAddClassList=()=>ab(e,e.parent,n);let r=e.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",e.parent.setAttribute("loading-number",r),e.parent.appendChild(n.$el),nextTick(()=>n.visible.value=e.visible),e.fullscreen&&(tf=n),n},MR=t=>{var e,n,r,i;let s;return He(t.target)?s=(e=document.querySelector(t.target))!=null?e:document.body:s=t.target||document.body,{parent:s===document.body||t.body?document.body:s,background:t.background||"",svg:t.svg||"",svgViewBox:t.svgViewBox||"",spinner:t.spinner||false,text:t.text||"",fullscreen:s===document.body&&((n=t.fullscreen)!=null?n:true),lock:(r=t.lock)!=null?r:false,customClass:t.customClass||"",visible:(i=t.visible)!=null?i:true,beforeClose:t.beforeClose,closed:t.closed,target:s}},PR=async(t,e,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,i={};if(t.fullscreen)n.originalPosition.value=Sa(document.body,"position"),n.originalOverflow.value=Sa(document.body,"overflow"),i.zIndex=r();else if(t.parent===document.body){n.originalPosition.value=Sa(document.body,"position"),await nextTick();for(const s of ["top","left"]){const o=s==="top"?"scrollTop":"scrollLeft";i[s]=`${t.target.getBoundingClientRect()[s]+document.body[o]+document.documentElement[o]-Number.parseInt(Sa(document.body,`margin-${s}`),10)}px`;}for(const s of ["height","width"])i[s]=`${t.target.getBoundingClientRect()[s]}px`;}else n.originalPosition.value=Sa(e,"position");for(const[s,o]of Object.entries(i))n.$el.style[s]=o;},ab=(t,e,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Ai(e,r.bm("parent","relative")):zo(e,r.bm("parent","relative")),t.fullscreen&&t.lock?zo(e,r.bm("parent","hidden")):Ai(e,r.bm("parent","hidden"));};za._context=null;const Hf=Symbol("ElLoading"),lb=(t,e)=>{var n,r,i,s;const o=e.instance,a=h=>At(e.value)?e.value[h]:void 0,l=h=>{const p=He(h)&&(o==null?void 0:o[h])||h;return p&&ref(p)},u=h=>l(a(h)||t.getAttribute(`element-loading-${w8(h)}`)),c=(n=a("fullscreen"))!=null?n:e.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:c,target:(r=a("target"))!=null?r:c?void 0:t,body:(i=a("body"))!=null?i:e.modifiers.body,lock:(s=a("lock"))!=null?s:e.modifiers.lock},d=za(f);d._context=vu._context,t[Hf]={options:f,instance:d};},NR=(t,e)=>{for(const n of Object.keys(e))isRef(e[n])&&(e[n].value=t[n]);},vu={mounted(t,e){e.value&&lb(t,e);},updated(t,e){const n=t[Hf];e.oldValue!==e.value&&(e.value&&!e.oldValue?lb(t,e):e.value&&e.oldValue?At(e.value)&&NR(e.value,n.options):n==null||n.instance.close());},unmounted(t){var e;(e=t[Hf])==null||e.instance.close(),t[Hf]=null;}};vu._context=null;const IR={install(t){za._context=t._context,vu._context=t._context,t.directive("loading",vu),t.config.globalProperties.$loading=za;},directive:vu,service:za},jE=["primary","success","info","warning","error"],xn=Ex({customClass:"",dangerouslyUseHTMLString:false,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:false,type:"info",plain:false,offset:16,zIndex:0,grouping:false,repeatNum:1,appendTo:at?document.body:void 0}),LR=ze({customClass:{type:String,default:xn.customClass},dangerouslyUseHTMLString:{type:Boolean,default:xn.dangerouslyUseHTMLString},duration:{type:Number,default:xn.duration},icon:{type:pr,default:xn.icon},id:{type:String,default:xn.id},message:{type:Ce([String,Object,Function]),default:xn.message},onClose:{type:Ce(Function),default:xn.onClose},showClose:{type:Boolean,default:xn.showClose},type:{type:String,values:jE,default:xn.type},plain:{type:Boolean,default:xn.plain},offset:{type:Number,default:xn.offset},zIndex:{type:Number,default:xn.zIndex},grouping:{type:Boolean,default:xn.grouping},repeatNum:{type:Number,default:xn.repeatNum}}),RR={destroy:()=>true},qr=shallowReactive([]),_R=t=>{const e=qr.findIndex(i=>i.id===t),n=qr[e];let r;return e>0&&(r=qr[e-1]),{current:n,prev:r}},jR=t=>{const{prev:e}=_R(t);return e?e.vm.exposed.bottom.value:0},VR=(t,e)=>qr.findIndex(r=>r.id===t)>0?16:e,qR=defineComponent({name:"ElMessage"}),WR=defineComponent({...qR,props:LR,emits:RR,setup(t,{expose:e,emit:n}){const r=t,{Close:i}=Cx,s=ref(false),{ns:o,zIndex:a}=D0("message"),{currentZIndex:l,nextZIndex:u}=a,c=ref(),f=ref(false),d=ref(0);let h;const p=computed(()=>r.type?r.type==="error"?"danger":r.type:"info"),m=computed(()=>{const A=r.type;return {[o.bm("icon",A)]:A&&md[A]}}),g=computed(()=>r.icon||md[r.type]||""),y=computed(()=>jR(r.id)),F=computed(()=>VR(r.id,r.offset)+y.value),x=computed(()=>d.value+F.value),b=computed(()=>({top:`${F.value}px`,zIndex:l.value}));function D(){r.duration!==0&&({stop:h}=sm(()=>{E();},r.duration));}function C(){h==null||h();}function E(){f.value=false,nextTick(()=>{var A;s.value||((A=r.onClose)==null||A.call(r),n("destroy"));});}function S({code:A}){A===Us.esc&&E();}return onMounted(()=>{D(),u(),f.value=true;}),watch(()=>r.repeatNum,()=>{C(),D();}),Dr(document,"keydown",S),or(c,()=>{d.value=c.value.getBoundingClientRect().height;}),e({visible:f,bottom:x,close:E}),(A,M)=>(openBlock(),createBlock(Transition,{name:unref(o).b("fade"),onBeforeEnter:k=>s.value=true,onBeforeLeave:A.onClose,onAfterLeave:k=>A.$emit("destroy"),persisted:""},{default:withCtx(()=>[withDirectives(createElementVNode("div",{id:A.id,ref_key:"messageRef",ref:c,class:normalizeClass([unref(o).b(),{[unref(o).m(A.type)]:A.type},unref(o).is("closable",A.showClose),unref(o).is("plain",A.plain),A.customClass]),style:normalizeStyle(unref(b)),role:"alert",onMouseenter:C,onMouseleave:D},[A.repeatNum>1?(openBlock(),createBlock(unref(HN),{key:0,value:A.repeatNum,type:unref(p),class:normalizeClass(unref(o).e("badge"))},null,8,["value","type","class"])):createCommentVNode("v-if",true),unref(g)?(openBlock(),createBlock(unref(Ot),{key:1,class:normalizeClass([unref(o).e("icon"),unref(m)])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(g))))]),_:1},8,["class"])):createCommentVNode("v-if",true),renderSlot(A.$slots,"default",{},()=>[A.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),createElementVNode("p",{class:normalizeClass(unref(o).e("content")),innerHTML:A.message},null,10,["innerHTML"])],2112)):(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(o).e("content"))},toDisplayString(A.message),3))]),A.showClose?(openBlock(),createBlock(unref(Ot),{key:2,class:normalizeClass(unref(o).e("closeBtn")),onClick:withModifiers(E,["stop"])},{default:withCtx(()=>[createVNode(unref(i))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",true)],46,["id"]),[[vShow,f.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}});var HR=Re(WR,[["__file","message.vue"]]);let zR=1;const VE=t=>{const e=!t||He(t)||isVNode(t)||Le(t)?{message:t}:t,n={...xn,...e};if(!n.appendTo)n.appendTo=document.body;else if(He(n.appendTo)){let r=document.querySelector(n.appendTo);vr(r)||(r=document.body),n.appendTo=r;}return St(ir.grouping)&&!n.grouping&&(n.grouping=ir.grouping),ot(ir.duration)&&n.duration===3e3&&(n.duration=ir.duration),ot(ir.offset)&&n.offset===16&&(n.offset=ir.offset),St(ir.showClose)&&!n.showClose&&(n.showClose=ir.showClose),St(ir.plain)&&!n.plain&&(n.plain=ir.plain),n},KR=t=>{const e=qr.indexOf(t);if(e===-1)return;qr.splice(e,1);const{handler:n}=t;n.close();},UR=({appendTo:t,...e},n)=>{const r=`message_${zR++}`,i=e.onClose,s=document.createElement("div"),o={...e,id:r,onClose:()=>{i==null||i(),KR(c);},onDestroy:()=>{render(null,s);}},a=createVNode(HR,o,Le(o.message)||isVNode(o.message)?{default:Le(o.message)?o.message:()=>o.message}:null);a.appContext=n||al._context,render(a,s),t.appendChild(s.firstElementChild);const l=a.component,c={id:r,vnode:a,vm:l,handler:{close:()=>{l.exposed.close();}},props:a.component.props};return c},al=(t={},e)=>{if(!at)return {close:()=>{}};const n=VE(t);if(n.grouping&&qr.length){const i=qr.find(({vnode:s})=>{var o;return ((o=s.props)==null?void 0:o.message)===n.message});if(i)return i.props.repeatNum+=1,i.props.type=n.type,i.handler}if(ot(ir.max)&&qr.length>=ir.max)return {close:()=>{}};const r=UR(n,e);return qr.push(r),r.handler};jE.forEach(t=>{al[t]=(e={},n)=>{const r=VE(e);return al({...r,type:t},n)};});function JR(t){const e=[...qr];for(const n of e)(!t||t===n.props.type)&&n.handler.close();}al.closeAll=JR;al._context=null;const vi=FM(al,"$message"),Am="_trap-focus-children",No=[],ub=t=>{if(No.length===0)return;const e=No[No.length-1][Am];if(e.length>0&&t.code===Us.tab){if(e.length===1){t.preventDefault(),document.activeElement!==e[0]&&e[0].focus();return}const n=t.shiftKey,r=t.target===e[0],i=t.target===e[e.length-1];r&&n&&(t.preventDefault(),e[e.length-1].focus()),i&&!n&&(t.preventDefault(),e[0].focus());}},GR={beforeMount(t){t[Am]=DD(t),No.push(t),No.length<=1&&document.addEventListener("keydown",ub);},updated(t){nextTick(()=>{t[Am]=DD(t);});},unmounted(){No.shift(),No.length===0&&document.removeEventListener("keydown",ub);}},XR=defineComponent({name:"ElMessageBox",directives:{TrapFocus:GR},components:{ElButton:_n,ElFocusTrap:S0,ElInput:wn,ElOverlay:dE,ElIcon:Ot,...Cx},inheritAttrs:false,props:{buttonSize:{type:String,validator:CE},modal:{type:Boolean,default:true},lockScroll:{type:Boolean,default:true},showClose:{type:Boolean,default:true},closeOnClickModal:{type:Boolean,default:true},closeOnPressEscape:{type:Boolean,default:true},closeOnHashChange:{type:Boolean,default:true},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:false,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(t,{emit:e}){const{locale:n,zIndex:r,ns:i,size:s}=D0("message-box",computed(()=>t.buttonSize)),{t:o}=n,{nextZIndex:a}=r,l=ref(false),u=reactive({autofocus:true,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:false,distinguishCancelAndClose:false,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:true,modalClass:"",showCancelButton:false,showConfirmButton:true,type:"",title:void 0,showInput:false,action:"",confirmButtonLoading:false,cancelButtonLoading:false,confirmButtonLoadingIcon:markRaw(Za),cancelButtonLoadingIcon:markRaw(Za),confirmButtonDisabled:false,editorErrorMessage:"",validateError:false,zIndex:a()}),c=computed(()=>{const j=u.type;return {[i.bm("icon",j)]:j&&md[j]}}),f=Ti(),d=Ti(),h=computed(()=>{const j=u.type;return u.icon||j&&md[j]||""}),p=computed(()=>!!u.message),m=ref(),g=ref(),y=ref(),F=ref(),x=ref(),b=computed(()=>u.confirmButtonClass);watch(()=>u.inputValue,async j=>{await nextTick(),t.boxType==="prompt"&&j&&N();},{immediate:true}),watch(()=>l.value,j=>{var _,R;j&&(t.boxType!=="prompt"&&(u.autofocus?y.value=(R=(_=x.value)==null?void 0:_.$el)!=null?R:m.value:y.value=m.value),u.zIndex=a()),t.boxType==="prompt"&&(j?nextTick().then(()=>{var L;F.value&&F.value.$el&&(u.autofocus?y.value=(L=O())!=null?L:m.value:y.value=m.value);}):(u.editorErrorMessage="",u.validateError=false));});const D=computed(()=>t.draggable),C=computed(()=>t.overflow);mE(m,g,D,C),onMounted(async()=>{await nextTick(),t.closeOnHashChange&&window.addEventListener("hashchange",E);}),onBeforeUnmount(()=>{t.closeOnHashChange&&window.removeEventListener("hashchange",E);});function E(){l.value&&(l.value=false,nextTick(()=>{u.action&&e("action",u.action);}));}const S=()=>{t.closeOnClickModal&&k(u.distinguishCancelAndClose?"close":"cancel");},A=R0(S),M=j=>{if(u.inputType!=="textarea")return j.preventDefault(),k("confirm")},k=j=>{var _;t.boxType==="prompt"&&j==="confirm"&&!N()||(u.action=j,u.beforeClose?(_=u.beforeClose)==null||_.call(u,j,u,E):E());},N=()=>{if(t.boxType==="prompt"){const j=u.inputPattern;if(j&&!j.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=true,false;const _=u.inputValidator;if(Le(_)){const R=_(u.inputValue);if(R===false)return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=true,false;if(He(R))return u.editorErrorMessage=R,u.validateError=true,false}}return u.editorErrorMessage="",u.validateError=false,true},O=()=>{var j,_;const R=(j=F.value)==null?void 0:j.$refs;return (_=R==null?void 0:R.input)!=null?_:R==null?void 0:R.textarea},T=()=>{k("close");},I=()=>{t.closeOnPressEscape&&T();};return t.lockScroll&&gE(l),{...toRefs(u),ns:i,overlayEvent:A,visible:l,hasMessage:p,typeClass:c,contentId:f,inputId:d,btnSize:s,iconComponent:h,confirmButtonClasses:b,rootRef:m,focusStartRef:y,headerRef:g,inputRef:F,confirmRef:x,doClose:E,handleClose:T,onCloseRequested:I,handleWrapperClick:S,handleInputEnter:M,handleAction:k,t:o}}});function YR(t,e,n,r,i,s){const o=resolveComponent("el-icon"),a=resolveComponent("el-input"),l=resolveComponent("el-button"),u=resolveComponent("el-focus-trap"),c=resolveComponent("el-overlay");return openBlock(),createBlock(Transition,{name:"fade-in-linear",onAfterLeave:f=>t.$emit("vanish"),persisted:""},{default:withCtx(()=>[withDirectives(createVNode(c,{"z-index":t.zIndex,"overlay-class":[t.ns.is("message-box"),t.modalClass],mask:t.modal},{default:withCtx(()=>[createElementVNode("div",{role:"dialog","aria-label":t.title,"aria-modal":"true","aria-describedby":t.showInput?void 0:t.contentId,class:normalizeClass(`${t.ns.namespace.value}-overlay-message-box`),onClick:t.overlayEvent.onClick,onMousedown:t.overlayEvent.onMousedown,onMouseup:t.overlayEvent.onMouseup},[createVNode(u,{loop:"",trapped:t.visible,"focus-trap-el":t.rootRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:withCtx(()=>[createElementVNode("div",{ref:"rootRef",class:normalizeClass([t.ns.b(),t.customClass,t.ns.is("draggable",t.draggable),{[t.ns.m("center")]:t.center}]),style:normalizeStyle(t.customStyle),tabindex:"-1",onClick:withModifiers(()=>{},["stop"])},[t.title!==null&&t.title!==void 0?(openBlock(),createElementBlock("div",{key:0,ref:"headerRef",class:normalizeClass([t.ns.e("header"),{"show-close":t.showClose}])},[createElementVNode("div",{class:normalizeClass(t.ns.e("title"))},[t.iconComponent&&t.center?(openBlock(),createBlock(o,{key:0,class:normalizeClass([t.ns.e("status"),t.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",true),createElementVNode("span",null,toDisplayString(t.title),1)],2),t.showClose?(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass(t.ns.e("headerbtn")),"aria-label":t.t("el.messagebox.close"),onClick:f=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),onKeydown:withKeys(withModifiers(f=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[createVNode(o,{class:normalizeClass(t.ns.e("close"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.closeIcon||"close")))]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):createCommentVNode("v-if",true)],2)):createCommentVNode("v-if",true),createElementVNode("div",{id:t.contentId,class:normalizeClass(t.ns.e("content"))},[createElementVNode("div",{class:normalizeClass(t.ns.e("container"))},[t.iconComponent&&!t.center&&t.hasMessage?(openBlock(),createBlock(o,{key:0,class:normalizeClass([t.ns.e("status"),t.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",true),t.hasMessage?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(t.ns.e("message"))},[renderSlot(t.$slots,"default",{},()=>[t.dangerouslyUseHTMLString?(openBlock(),createBlock(resolveDynamicComponent(t.showInput?"label":"p"),{key:1,for:t.showInput?t.inputId:void 0,innerHTML:t.message},null,8,["for","innerHTML"])):(openBlock(),createBlock(resolveDynamicComponent(t.showInput?"label":"p"),{key:0,for:t.showInput?t.inputId:void 0},{default:withCtx(()=>[createTextVNode(toDisplayString(t.dangerouslyUseHTMLString?"":t.message),1)]),_:1},8,["for"]))])],2)):createCommentVNode("v-if",true)],2),withDirectives(createElementVNode("div",{class:normalizeClass(t.ns.e("input"))},[createVNode(a,{id:t.inputId,ref:"inputRef",modelValue:t.inputValue,"onUpdate:modelValue":f=>t.inputValue=f,type:t.inputType,placeholder:t.inputPlaceholder,"aria-invalid":t.validateError,class:normalizeClass({invalid:t.validateError}),onKeydown:withKeys(t.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),createElementVNode("div",{class:normalizeClass(t.ns.e("errormsg")),style:normalizeStyle({visibility:t.editorErrorMessage?"visible":"hidden"})},toDisplayString(t.editorErrorMessage),7)],2),[[vShow,t.showInput]])],10,["id"]),createElementVNode("div",{class:normalizeClass(t.ns.e("btns"))},[t.showCancelButton?(openBlock(),createBlock(l,{key:0,loading:t.cancelButtonLoading,"loading-icon":t.cancelButtonLoadingIcon,class:normalizeClass([t.cancelButtonClass]),round:t.roundButton,size:t.btnSize,onClick:f=>t.handleAction("cancel"),onKeydown:withKeys(withModifiers(f=>t.handleAction("cancel"),["prevent"]),["enter"])},{default:withCtx(()=>[createTextVNode(toDisplayString(t.cancelButtonText||t.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):createCommentVNode("v-if",true),withDirectives(createVNode(l,{ref:"confirmRef",type:"primary",loading:t.confirmButtonLoading,"loading-icon":t.confirmButtonLoadingIcon,class:normalizeClass([t.confirmButtonClasses]),round:t.roundButton,disabled:t.confirmButtonDisabled,size:t.btnSize,onClick:f=>t.handleAction("confirm"),onKeydown:withKeys(withModifiers(f=>t.handleAction("confirm"),["prevent"]),["enter"])},{default:withCtx(()=>[createTextVNode(toDisplayString(t.confirmButtonText||t.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[vShow,t.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[vShow,t.visible]])]),_:3},8,["onAfterLeave"])}var QR=Re(XR,[["render",YR],["__file","index.vue"]]);const Wu=new Map,ZR=t=>{let e=document.body;return t.appendTo&&(He(t.appendTo)&&(e=document.querySelector(t.appendTo)),vr(t.appendTo)&&(e=t.appendTo),vr(e)||(e=document.body)),e},e7=(t,e,n=null)=>{const r=createVNode(QR,t,Le(t.message)||isVNode(t.message)?{default:Le(t.message)?t.message:()=>t.message}:null);return r.appContext=n,render(r,e),ZR(t).appendChild(e.firstElementChild),r.component},t7=()=>document.createElement("div"),n7=(t,e)=>{const n=t7();t.onVanish=()=>{render(null,n),Wu.delete(i);},t.onAction=s=>{const o=Wu.get(i);let a;t.showInput?a={value:i.inputValue,action:s}:a=s,t.callback?t.callback(a,r.proxy):s==="cancel"||s==="close"?t.distinguishCancelAndClose&&s!=="cancel"?o.reject("close"):o.reject("cancel"):o.resolve(a);};const r=e7(t,n,e),i=r.proxy;for(const s in t)Qi(t,s)&&!Qi(i.$props,s)&&(s==="closeIcon"&&At(t[s])?i[s]=markRaw(t[s]):i[s]=t[s]);return i.visible=true,i};function Ol(t,e=null){if(!at)return Promise.reject();let n;return He(t)||isVNode(t)?t={message:t}:n=t.callback,new Promise((r,i)=>{const s=n7(t,e??Ol._context);Wu.set(s,{options:t,callback:n,resolve:r,reject:i});})}const r7=["alert","confirm","prompt"],i7={alert:{closeOnPressEscape:false,closeOnClickModal:false},confirm:{showCancelButton:true},prompt:{showCancelButton:true,showInput:true}};r7.forEach(t=>{Ol[t]=s7(t);});function s7(t){return (e,n,r,i)=>{let s="";return At(n)?(r=n,s=""):Xt(n)?s="":s=n,Ol(Object.assign({title:s,message:e,type:"",...i7[t]},r,{boxType:t}),i)}}Ol.close=()=>{Wu.forEach((t,e)=>{e.doClose();}),Wu.clear();};Ol._context=null;const Ls=Ol;Ls.install=t=>{Ls._context=t._context,t.config.globalProperties.$msgbox=Ls,t.config.globalProperties.$messageBox=Ls,t.config.globalProperties.$alert=Ls.alert,t.config.globalProperties.$confirm=Ls.confirm,t.config.globalProperties.$prompt=Ls.prompt;};const o7=Ls,a7=defineComponent({__name:"super-dialog",props:mergeModels({title:{default:"标题"},width:{default:"50%"},destroyOnClose:{type:Boolean,default:true},zIndex:{default:3},modal:{type:Boolean,default:true}},{modelValue:{type:Boolean,default:false},modelModifiers:{}}),emits:mergeModels(["open","opened","close","closed"],["update:modelValue"]),setup(t,{emit:e}){const n=useModel(t,"modelValue"),r=e;return useSlots(),watch(()=>n.value,i=>{i&&r("open");},{immediate:true}),(i,s)=>(openBlock(),createBlock(unref(u9),{class:"super-dialog",title:i.title,modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=o=>n.value=o),width:i.width,"close-on-click-modal":false,"align-center":true,"destroy-on-close":i.destroyOnClose,"z-index":i.zIndex,draggable:"",overflow:"","modal-class":i.modal?"":"super-dialog-modal-transparent",onOpened:s[1]||(s[1]=o=>r("opened")),onClose:s[2]||(s[2]=o=>r("close")),onClosed:s[3]||(s[3]=o=>r("closed"))},{default:withCtx(()=>[renderSlot(i.$slots,"default")]),_:3},8,["title","modelValue","width","destroy-on-close","z-index","modal-class"]))}}),l7=t=>{const e=document.createElement("div");e.className="overlay-vdom-container",e.style.position="fixed",e.style.top="0",e.style.left="0",e.style.zIndex="20",document.body.appendChild(e);const r=t(()=>{render(null,e),e.remove();});render(r,e);},Oo=class Oo{constructor(){le(this,"openedClassList",[]);le(this,"createPopupClass",()=>`super-popup-${Date.now().toString().substring(3)}-${this.openedClassList.length}`);le(this,"open",e=>{this.openedClassList.length&&this.setContentMask(this.openedClassList[this.openedClassList.length-1],true),this.openedClassList.push(e);});le(this,"close",e=>{const n=this.openedClassList.findIndex(r=>r==e);n!==-1&&(this.openedClassList.splice(n,1),n>0&&this.setContentMask(this.openedClassList[n-1],false));});le(this,"setContentMask",(e,n)=>{const r=document.querySelector("."+e);if(r){const i=r.querySelector(".super-popup-content-mask");if(n){if(!i){const s=document.createElement("div");s.classList.add("super-popup-content-mask"),Object.assign(s.style,{position:"absolute",zIndex:999,left:0,top:0,width:"100%",height:"100%",backgroundColor:"var(--el-overlay-color-lighter)",transition:"opacity 0.25s",opacity:0}),setTimeout(()=>{s.style.opacity="1";},10),r.appendChild(s);}}else i&&(i.style.opacity="0",i.style.pointerEvents="none",setTimeout(()=>{i.remove();},250));}});}static get instance(){return Oo.singleton??(Oo.singleton=new Oo)}};le(Oo,"singleton");let $a=Oo;const Hu=t=>new Promise(e=>{const n=$a.instance.openedClassList,r=$a.instance.createPopupClass();l7(i=>h(defineComponent({setup(){const s=ref(true),o=typeof t=="function"?t(()=>s.value=false):t;return ()=>h(a7,{class:r,title:o.title,modelValue:s.value,destroyOnClose:true,width:o.width,modal:n.length===0,onOpen:()=>{$a.instance.open(r);},onClose:()=>{$a.instance.close(r);},onClosed:()=>{i(),e();}},{default:()=>o.content})}})));}),u7=defineComponent({__name:"drag-overlay",props:{direction:{default:"right"},positionPercentage:{default:50},zIndex:{default:10}},setup(t){const e=t,n=ref(null),r=ref(false),i=ref({x:0,y:0});let s={x:0,y:0};const o=()=>{if(n.value){const d=n.value,h=window.innerWidth,p=window.innerHeight;let m="auto",g="auto",y="auto",F="auto";switch(e.direction){case "top":m="0px",g=`${h*e.positionPercentage/100}px`;break;case "bottom":F="0px",g=`${h*e.positionPercentage/100}px`;break;case "left":g="0px",m=`${p*e.positionPercentage/100}px`;break;case "right":y="0px",m=`${p*e.positionPercentage/100}px`;break}Object.assign(d.style,{top:m,left:g,right:y,bottom:F,zIndex:e.zIndex});}},a=d=>{n.value&&(r.value=true,s={x:d.clientX,y:d.clientY},i.value={x:d.clientX-n.value.offsetLeft,y:d.clientY-n.value.offsetTop},document.addEventListener("mousemove",l),document.addEventListener("mouseup",f),Object.assign(document.body.style,{userSelect:"none"}));},l=d=>{if(r.value&&n.value){if(n.value.style.pointerEvents!=="none"){const h=Math.abs(s.x-d.clientX)>1,p=Math.abs(s.y-d.clientY)>1;(h||p)&&(n.value.style.pointerEvents="none");}Object.assign(n.value.style,{left:`${d.clientX-i.value.x}px`,top:`${d.clientY-i.value.y}px`});}},u=(d,h,p)=>(h.x-d.x)*(p.y-d.y)-(p.x-d.x)*(h.y-d.y),c=(d,h,p,m)=>{const g=u(h,p,d),y=u(p,m,d),F=u(m,h,d);return g>=0&&y>=0&&F>=0||g<=0&&y<=0&&F<=0},f=()=>{if(r.value&&n.value){r.value=false,document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",f);const d={x:n.value.offsetLeft,y:n.value.offsetTop},h=window.innerWidth,p=window.innerHeight;let m="auto",g="auto",y="auto",F="auto";if(c(d,{x:0,y:0},{x:h,y:0},{x:h/2,y:p/2}))m="0px",g=d.x+"px";else if(c(d,{x:0,y:p},{x:h,y:p},{x:h/2,y:p/2}))F="0px",g=d.x+"px";else if(c(d,{x:0,y:0},{x:0,y:p},{x:h/2,y:p/2}))g="0px",m=d.y+"px";else if(c(d,{x:h,y:0},{x:h,y:p},{x:h/2,y:p/2}))y="0px",m=d.y+"px";else {const x=n.value.offsetWidth,b=n.value.offsetHeight;d.x<0?g="0px":d.x+x>h?y="0px":g=d.x+"px",d.y<0?m="0px":d.y+b>p?F="0px":m=d.y+"px";}Object.assign(n.value.style,{pointerEvents:"auto",top:m,left:g,right:y,bottom:F}),Object.assign(document.body.style,{pointerEvents:"auto",userSelect:"auto"});}};return onMounted(()=>{n.value&&(n.value.addEventListener("mousedown",a),o());}),onBeforeUnmount(()=>{n.value&&n.value.removeEventListener("mousedown",a);}),(d,h)=>(openBlock(),createElementBlock("div",{class:"drag-overlay",ref_key:"dragOverlay",ref:n},[renderSlot(d.$slots,"default")],512))}});var dt=(t=>(t.ts="ts",t.ts_uniapp="ts_uniapp",t.dart="dart",t))(dt||{});const c7=t=>{switch(t){case "ts":case "ts_uniapp":return "ts";case "dart":return "dart"}};var Wt=(t=>(t.all="本组全部(代码+模型)",t.requestFunction="请求代码 (本组)",t.requestResult="请求+返回 (识别层级)",t.request="请求参数",t.result="返回结果",t))(Wt||{});const cb=async t=>{const e=t.url,n=t.method||"POST",r=t.data||{};try{const i={"Content-Type":"application/json",...t.headers},s={method:n,headers:i,credentials:"include"};n!=="GET"&&(s.body=JSON.stringify(r));const a=await(await fetch(e,s)).text();if(a&&a.startsWith("{"))try{return JSON.parse(a)}catch{return {data:a}}return a?{data:a}:{}}catch(i){throw i}};var ip={exports:{}};const f7={},d7=Object.freeze(Object.defineProperty({__proto__:null,default:f7},Symbol.toStringTag,{value:"Module"})),fb=gI(d7);/**
             * [js-sha256]{@link https://github.com/emn178/js-sha256}
             *
             * @version 0.11.1
             * @author Chen, Yi-Cyuan [[email protected]]
             * @copyright Chen, Yi-Cyuan 2014-2025
             * @license MIT
             */var db;function h7(){return db||(db=1,function(t){(function(){var e="input is invalid type",n=typeof window=="object",r=n?window:{};r.JS_SHA256_NO_WINDOW&&(n=false);var i=!n&&typeof self=="object",s=!r.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node&&process.type!="renderer";s?r=mI:i&&(r=self);var o=!r.JS_SHA256_NO_COMMON_JS&&true&&t.exports,a=!r.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",l="0123456789abcdef".split(""),u=[-2147483648,8388608,32768,128],c=[24,16,8,0],f=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],d=["hex","array","digest","arrayBuffer"],h=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(C){return Object.prototype.toString.call(C)==="[object Array]"}),a&&(r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(C){return typeof C=="object"&&C.buffer&&C.buffer.constructor===ArrayBuffer});var p=function(C,E){return function(S){return new x(E,true).update(S)[C]()}},m=function(C){var E=p("hex",C);s&&(E=g(E,C)),E.create=function(){return new x(C)},E.update=function(M){return E.create().update(M)};for(var S=0;S<d.length;++S){var A=d[S];E[A]=p(A,C);}return E},g=function(C,E){var S=fb,A=fb.Buffer,M=E?"sha224":"sha256",k;A.from&&!r.JS_SHA256_NO_BUFFER_FROM?k=A.from:k=function(O){return new A(O)};var N=function(O){if(typeof O=="string")return S.createHash(M).update(O,"utf8").digest("hex");if(O==null)throw new Error(e);return O.constructor===ArrayBuffer&&(O=new Uint8Array(O)),Array.isArray(O)||ArrayBuffer.isView(O)||O.constructor===A?S.createHash(M).update(k(O)).digest("hex"):C(O)};return N},y=function(C,E){return function(S,A){return new b(S,E,true).update(A)[C]()}},F=function(C){var E=y("hex",C);E.create=function(M){return new b(M,C)},E.update=function(M,k){return E.create(M).update(k)};for(var S=0;S<d.length;++S){var A=d[S];E[A]=y(A,C);}return E};function x(C,E){E?(h[0]=h[16]=h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=0,this.blocks=h):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],C?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=false,this.first=true,this.is224=C;}x.prototype.update=function(C){if(!this.finalized){var E,S=typeof C;if(S!=="string"){if(S==="object"){if(C===null)throw new Error(e);if(a&&C.constructor===ArrayBuffer)C=new Uint8Array(C);else if(!Array.isArray(C)&&(!a||!ArrayBuffer.isView(C)))throw new Error(e)}else throw new Error(e);E=true;}for(var A,M=0,k,N=C.length,O=this.blocks;M<N;){if(this.hashed&&(this.hashed=false,O[0]=this.block,this.block=O[16]=O[1]=O[2]=O[3]=O[4]=O[5]=O[6]=O[7]=O[8]=O[9]=O[10]=O[11]=O[12]=O[13]=O[14]=O[15]=0),E)for(k=this.start;M<N&&k<64;++M)O[k>>>2]|=C[M]<<c[k++&3];else for(k=this.start;M<N&&k<64;++M)A=C.charCodeAt(M),A<128?O[k>>>2]|=A<<c[k++&3]:A<2048?(O[k>>>2]|=(192|A>>>6)<<c[k++&3],O[k>>>2]|=(128|A&63)<<c[k++&3]):A<55296||A>=57344?(O[k>>>2]|=(224|A>>>12)<<c[k++&3],O[k>>>2]|=(128|A>>>6&63)<<c[k++&3],O[k>>>2]|=(128|A&63)<<c[k++&3]):(A=65536+((A&1023)<<10|C.charCodeAt(++M)&1023),O[k>>>2]|=(240|A>>>18)<<c[k++&3],O[k>>>2]|=(128|A>>>12&63)<<c[k++&3],O[k>>>2]|=(128|A>>>6&63)<<c[k++&3],O[k>>>2]|=(128|A&63)<<c[k++&3]);this.lastByteIndex=k,this.bytes+=k-this.start,k>=64?(this.block=O[16],this.start=k-64,this.hash(),this.hashed=true):this.start=k;}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},x.prototype.finalize=function(){if(!this.finalized){this.finalized=true;var C=this.blocks,E=this.lastByteIndex;C[16]=this.block,C[E>>>2]|=u[E&3],this.block=C[16],E>=56&&(this.hashed||this.hash(),C[0]=this.block,C[16]=C[1]=C[2]=C[3]=C[4]=C[5]=C[6]=C[7]=C[8]=C[9]=C[10]=C[11]=C[12]=C[13]=C[14]=C[15]=0),C[14]=this.hBytes<<3|this.bytes>>>29,C[15]=this.bytes<<3,this.hash();}},x.prototype.hash=function(){var C=this.h0,E=this.h1,S=this.h2,A=this.h3,M=this.h4,k=this.h5,N=this.h6,O=this.h7,T=this.blocks,I,j,_,R,L,G,me,ye,ve,Se,Fe;for(I=16;I<64;++I)L=T[I-15],j=(L>>>7|L<<25)^(L>>>18|L<<14)^L>>>3,L=T[I-2],_=(L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10,T[I]=T[I-16]+j+T[I-7]+_<<0;for(Fe=E&S,I=0;I<64;I+=4)this.first?(this.is224?(ye=300032,L=T[0]-1413257819,O=L-150054599<<0,A=L+24177077<<0):(ye=704751109,L=T[0]-210244248,O=L-1521486534<<0,A=L+143694565<<0),this.first=false):(j=(C>>>2|C<<30)^(C>>>13|C<<19)^(C>>>22|C<<10),_=(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7),ye=C&E,R=ye^C&S^Fe,me=M&k^~M&N,L=O+_+me+f[I]+T[I],G=j+R,O=A+L<<0,A=L+G<<0),j=(A>>>2|A<<30)^(A>>>13|A<<19)^(A>>>22|A<<10),_=(O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7),ve=A&C,R=ve^A&E^ye,me=O&M^~O&k,L=N+_+me+f[I+1]+T[I+1],G=j+R,N=S+L<<0,S=L+G<<0,j=(S>>>2|S<<30)^(S>>>13|S<<19)^(S>>>22|S<<10),_=(N>>>6|N<<26)^(N>>>11|N<<21)^(N>>>25|N<<7),Se=S&A,R=Se^S&C^ve,me=N&O^~N&M,L=k+_+me+f[I+2]+T[I+2],G=j+R,k=E+L<<0,E=L+G<<0,j=(E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10),_=(k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7),Fe=E&S,R=Fe^E&A^Se,me=k&N^~k&O,L=M+_+me+f[I+3]+T[I+3],G=j+R,M=C+L<<0,C=L+G<<0,this.chromeBugWorkAround=true;this.h0=this.h0+C<<0,this.h1=this.h1+E<<0,this.h2=this.h2+S<<0,this.h3=this.h3+A<<0,this.h4=this.h4+M<<0,this.h5=this.h5+k<<0,this.h6=this.h6+N<<0,this.h7=this.h7+O<<0;},x.prototype.hex=function(){this.finalize();var C=this.h0,E=this.h1,S=this.h2,A=this.h3,M=this.h4,k=this.h5,N=this.h6,O=this.h7,T=l[C>>>28&15]+l[C>>>24&15]+l[C>>>20&15]+l[C>>>16&15]+l[C>>>12&15]+l[C>>>8&15]+l[C>>>4&15]+l[C&15]+l[E>>>28&15]+l[E>>>24&15]+l[E>>>20&15]+l[E>>>16&15]+l[E>>>12&15]+l[E>>>8&15]+l[E>>>4&15]+l[E&15]+l[S>>>28&15]+l[S>>>24&15]+l[S>>>20&15]+l[S>>>16&15]+l[S>>>12&15]+l[S>>>8&15]+l[S>>>4&15]+l[S&15]+l[A>>>28&15]+l[A>>>24&15]+l[A>>>20&15]+l[A>>>16&15]+l[A>>>12&15]+l[A>>>8&15]+l[A>>>4&15]+l[A&15]+l[M>>>28&15]+l[M>>>24&15]+l[M>>>20&15]+l[M>>>16&15]+l[M>>>12&15]+l[M>>>8&15]+l[M>>>4&15]+l[M&15]+l[k>>>28&15]+l[k>>>24&15]+l[k>>>20&15]+l[k>>>16&15]+l[k>>>12&15]+l[k>>>8&15]+l[k>>>4&15]+l[k&15]+l[N>>>28&15]+l[N>>>24&15]+l[N>>>20&15]+l[N>>>16&15]+l[N>>>12&15]+l[N>>>8&15]+l[N>>>4&15]+l[N&15];return this.is224||(T+=l[O>>>28&15]+l[O>>>24&15]+l[O>>>20&15]+l[O>>>16&15]+l[O>>>12&15]+l[O>>>8&15]+l[O>>>4&15]+l[O&15]),T},x.prototype.toString=x.prototype.hex,x.prototype.digest=function(){this.finalize();var C=this.h0,E=this.h1,S=this.h2,A=this.h3,M=this.h4,k=this.h5,N=this.h6,O=this.h7,T=[C>>>24&255,C>>>16&255,C>>>8&255,C&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255,S>>>24&255,S>>>16&255,S>>>8&255,S&255,A>>>24&255,A>>>16&255,A>>>8&255,A&255,M>>>24&255,M>>>16&255,M>>>8&255,M&255,k>>>24&255,k>>>16&255,k>>>8&255,k&255,N>>>24&255,N>>>16&255,N>>>8&255,N&255];return this.is224||T.push(O>>>24&255,O>>>16&255,O>>>8&255,O&255),T},x.prototype.array=x.prototype.digest,x.prototype.arrayBuffer=function(){this.finalize();var C=new ArrayBuffer(this.is224?28:32),E=new DataView(C);return E.setUint32(0,this.h0),E.setUint32(4,this.h1),E.setUint32(8,this.h2),E.setUint32(12,this.h3),E.setUint32(16,this.h4),E.setUint32(20,this.h5),E.setUint32(24,this.h6),this.is224||E.setUint32(28,this.h7),C};function b(C,E,S){var A,M=typeof C;if(M==="string"){var k=[],N=C.length,O=0,T;for(A=0;A<N;++A)T=C.charCodeAt(A),T<128?k[O++]=T:T<2048?(k[O++]=192|T>>>6,k[O++]=128|T&63):T<55296||T>=57344?(k[O++]=224|T>>>12,k[O++]=128|T>>>6&63,k[O++]=128|T&63):(T=65536+((T&1023)<<10|C.charCodeAt(++A)&1023),k[O++]=240|T>>>18,k[O++]=128|T>>>12&63,k[O++]=128|T>>>6&63,k[O++]=128|T&63);C=k;}else if(M==="object"){if(C===null)throw new Error(e);if(a&&C.constructor===ArrayBuffer)C=new Uint8Array(C);else if(!Array.isArray(C)&&(!a||!ArrayBuffer.isView(C)))throw new Error(e)}else throw new Error(e);C.length>64&&(C=new x(E,true).update(C).array());var I=[],j=[];for(A=0;A<64;++A){var _=C[A]||0;I[A]=92^_,j[A]=54^_;}x.call(this,E,S),this.update(j),this.oKeyPad=I,this.inner=true,this.sharedMemory=S;}b.prototype=new x,b.prototype.finalize=function(){if(x.prototype.finalize.call(this),this.inner){this.inner=false;var C=this.array();x.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(C),x.prototype.finalize.call(this);}};var D=m();D.sha256=D,D.sha224=m(true),D.sha256.hmac=F(),D.sha224.hmac=F(true),o?t.exports=D:(r.sha256=D.sha256,r.sha224=D.sha224);})();}(ip)),ip.exports}var sp=h7();const p7=t=>{switch(typeof t){case "string":return sp.sha256(t);case "object":return sp.sha256(JSON.stringify(t));default:return sp.sha256(String(t))}};var En;let ll=(En=class{},le(En,"any",(e,n=false)=>e==null?false:typeof e=="number"?!isNaN(e)&&isFinite(e):typeof e=="string"&&n?e!=="":true),le(En,"string",(e,n=false)=>typeof e=="string"&&(n?e!=="":true)),le(En,"number",(e,n=false)=>typeof e=="number"&&!isNaN(e)&&(n?e>0:true)),le(En,"boolean",e=>typeof e=="boolean"),le(En,"array",(e,n=false)=>Array.isArray(e)&&(n?e.length>0:true)),le(En,"object",(e,n=false)=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&(n?Object.keys(e).length>0:true)),le(En,"function",e=>typeof e=="function"),le(En,"promise",e=>e instanceof Promise||En.function(e==null?void 0:e.then)&&En.function(e==null?void 0:e.catch)),En);var xo;let So=(xo=class{},le(xo,"string",(e,n=false)=>typeof e=="string"?e:!n&&typeof e=="number"?String(e):void 0),le(xo,"number",(e,n=false)=>{if(typeof e=="number")return e;if(!n&&typeof e=="string"){const r=Number(e);return isNaN(r)?void 0:r}}),le(xo,"boolean",(e,n=false)=>{if(typeof e=="boolean")return e;if(!n&&typeof e=="string"){if(e==="true")return  true;if(e==="false")return  false}}),le(xo,"object",(e,n=false)=>{if(Object.prototype.toString.call(e)==="[object Object]")return e;if(!n&&typeof e=="string"&&e.startsWith("{")&&e.endsWith("}"))try{return JSON.parse(e)}catch{return}}),le(xo,"array",(e,n=false)=>{if(Array.isArray(e))return e;if(!n&&typeof e=="string"&&e.startsWith("[")&&e.endsWith("]"))try{return JSON.parse(e)}catch{return}}),xo);const It=(t,e)=>{const n=t.split(/(?=[A-Z])|_|-|\s/g).filter(r=>r).map(r=>r.trim().toLowerCase());switch(e){case "bigHump":return n.map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("");case "smallHump":return n.map((r,i)=>i===0?r:r.charAt(0).toUpperCase()+r.slice(1)).join("");case "underline":return n.join("_");case "line":return n.join("-")}},ku=class ku{constructor(){le(this,"cacheDuration",1e3*60*10);le(this,"lastCacheTime",0);le(this,"cache");le(this,"groups");le(this,"historySchemasId",{});}static get instance(){return this.singleton??(this.singleton=new ku)}async getApiList(){var s;if(this.cache&&Date.now()-this.lastCacheTime<this.cacheDuration)return this.cache;const e=(s=this.getCurrentApiInfo())==null?void 0:s.projectId,n={};document.cookie.split(";").forEach(o=>{const a=o.split("=");n[a[0].trim()]=a[1];});const r="https://api.apifox.com",i={"x-device-id":n.projectCid,"x-project-id":e,"x-client-mode":"web","x-client-version":localStorage.getItem("last_version")||void 0};return this.cache=Promise.all([cb({url:`${r}/api/v1/projects/${e}/data-schemas?locale=zh-CN`,method:"GET",headers:i}).then(o=>{if((o==null?void 0:o.success)==true&&o.data.length>=0){const a={};return o.data.forEach(l=>{a[String(l.id)]=l;}),a}throw "获取模型列表失败"}),cb({url:`${r}/api/v1/api-details?locale=zh-CN`,method:"GET",headers:i}).then(o=>{if((o==null?void 0:o.success)==true&&o.data.length>=0){const a={};return this.lastCacheTime=Date.now(),this.groups={},o.data.forEach(l=>{var c;const u=It(l.path.split("/").slice(0,-1).join(" "),"bigHump");u&&(this.groups[u]||(this.groups[u]={title:So.string((c=l.tags)==null?void 0:c[0]),className:u,list:[]}),this.groups[u].list.push(l),l.group=this.groups[u]),a[String(l.id)]=l;}),a}throw "获取接口列表失败"})]).then(o=>({schemas:o[0],details:o[1]})).catch(o=>{throw this.cache=void 0,o}),this.cache}clearCache(){this.cache=void 0;}static get currentProjectId(){var n;return ((n=location.pathname.match(/project\/([^\/]+)/))==null?void 0:n[1])??""}getCurrentApiInfo(){var i,s,o;const e=document.querySelector(".ui-draggable-tabs-node .ui-tabs-tab-active .ui-tabs-tab-btn"),n=(o=(s=(i=e==null?void 0:e.id)==null?void 0:i.split("."))==null?void 0:s.slice(-1))==null?void 0:o[0];if(!n)return;const r=ku.currentProjectId;return {id:n,projectId:r}}async getApiDetail(e){const n=await this.getApiList(),r=n.details[e]||n.schemas[e];return r?this.detailToJson(r,n.schemas):(console.log(e,n),Promise.reject("未找到当前页面的接口"))}async getGroupApiList(e){var i,s;const n=await this.getApiList(),r=n.details[e];return r!=null&&r.group?{...r.group,list:(s=(i=r.group)==null?void 0:i.list)==null?void 0:s.map(o=>this.detailToJson(o,n.schemas))}:Promise.reject("未找到当前页面的接口分组")}detailToJson(e,n){var r,i,s,o,a,l;try{if(e.requestBody){if(e.title||(e.title=e.name.replace(/^[\d\.]+[\-、]*/,""),e.path.startsWith("/")||(e.path="/"+e.path),e.originPath=e.path,e.path=e.path.replace(".","_"),e.className=It(e.path.replace(/(^\/)/g,"").replace(/\//g,"_"),"bigHump")),e.method=(i=(r=e.method)==null?void 0:r.toLowerCase)==null?void 0:i.call(r),!e.request){const u=So.object((s=e==null?void 0:e.requestBody)==null?void 0:s.jsonSchema),c=So.array((o=e==null?void 0:e.parameters)==null?void 0:o.query);if(u&&Object.keys(u).length>0){const f=this.handleParams("",JSON.parse(JSON.stringify(u)),n);f&&(e.request=this.handleTreeModel(f));}else c!=null&&c.length&&(e.request=c.map(f=>{var h,p;const d=((p=(h=f.name)==null?void 0:h.replace)==null?void 0:p.call(h,/(?:^|_)(\w)/g,(m,g)=>g.toUpperCase()))??"";return {key:f.name,name:d,type:f.type,required:f.required==!0,description:So.string(f.description)??""}}));}if(!e.result){const u=(l=(a=e==null?void 0:e.responses)==null?void 0:a[0])==null?void 0:l.jsonSchema;if(typeof u=="object"&&u!=null){const c=this.handleParams("",JSON.parse(JSON.stringify(u)),n);if(c){const f=this.handleTreeModel(c),d=(p,m)=>{var g;return {...m,name:m.name.replace(p,""),children:((g=m.children)==null?void 0:g.map(y=>d(p,y)))??[]}},h=(()=>{var p,m;if(f.length){for(const g of f)if(g.key=="data"&&(p=g.children)!=null&&p.length){if(g.type=="object"){for(const y of g.children)if(y.key=="items"&&y.type=="array")return [d(/^DataItems/,y)];return ((m=g.children)==null?void 0:m.map(y=>d(/^Data/,y)))||[]}else if(g.type=="array")return [d(/^Data/,g)]}}return []})();e.fullResult=f,e.result=h;}}}}else if(e.jsonSchema&&!e.model){const u=e.jsonSchema;if(typeof u=="object"&&u!=null){const c=this.handleParams("",JSON.parse(JSON.stringify(u)),n);c&&(e.model=this.handleTreeModel(c));}}}finally{this.historySchemasId={};}return {id:e.id,title:e.title,path:e.path,originPath:e.originPath,className:e.className,detail:e,request:e.request,result:e.result,fullResult:e.fullResult,model:e.model}}handleSchemas(e,n,r){var o,a,l;const i=(a=(o=n==null?void 0:n.match)==null?void 0:o.call(n,/\/(\d+)$/))==null?void 0:a[1];if(!i)return;const s=(l=r[i])==null?void 0:l.jsonSchema;if(s)return this.handleParams(e,s,r)}handleEnum(e){if(e.length>0)return e.map(n=>{const r=(n==null?void 0:n.value)??n;return {description:[n.name,n==null?void 0:n.description].filter(i=>ll.string(i,true)).join(","),value:String(r)}})}handleParams(e,n,r){var s;if(typeof n!="object")return;let i={...n.properties};if(Array.isArray(n.required)&&n.required.forEach(o=>{i[o]&&(i[o].isRequired=true);}),typeof(n==null?void 0:n.$ref)=="string"){if(n.type!="merge"){const a=p7({$ref:n.$ref,overrides:n["x-apifox-overrides"]});if(this.historySchemasId[a]!=null){n.ref=this.historySchemasId[a],delete n.$ref;return}this.historySchemasId[a]=n.ref||e;}i={...i,...this.handleSchemas(e,n.$ref,r)},delete n.$ref;const o=n["x-apifox-overrides"];if(typeof o=="object"&&o!=null)for(const a in o){let l=o[a];typeof l=="object"&&l!=null&&(Array.isArray(n.required)&&n.required.forEach(u=>{var c;(c=l.properties)!=null&&c[u]&&(l.properties[u].isRequired=true);}),l.properties=this.handleParams(e,l,r)),i[a]=l;}}if(typeof n["x-apifox-refs"]=="object"&&n["x-apifox-refs"]!=null){const o=Object.values(n["x-apifox-refs"]);o.length==1&&Object.keys(i).length==0?(Object.assign(n,o[0]),i={...this.handleParams(e,n,r)}):o.forEach(a=>{a.type="merge",i={...i,...this.handleParams(e,a,r)};}),delete n["x-apifox-refs"];}for(const o in i){const a=i[o];if(typeof a!="object"||a==null){delete i[o];continue}a.name=e+o.replace(/(?:^|_)(\w)/g,(c,f)=>f.toUpperCase());const l=a.anyOf||a.oneOf||a.allOf;if(Array.isArray(l)){for(const c of l)if((c==null?void 0:c.type)===null||(c==null?void 0:c.type)==="null")a.isRequired&&delete a.isRequired;else if(c!=null&&c.type||c!=null&&c.$ref){if(a.stop)break;a.stop=true,Object.assign(a,c);}}if(a.$ref&&Object.assign(a,{type:"object",properties:{...this.handleParams(a.name,a,r)}}),Array.isArray(a.type))if(a.type.length>0)a.type.includes("null")&&a.isRequired&&delete a.isRequired,a.type=a.type[0];else {delete i[o];continue}const u=(s=a["x-apifox-enum"])!=null&&s.length?a["x-apifox-enum"]:a.enum;Array.isArray(u)&&(a.enumList=this.handleEnum(u),a.type=="integer"&&a.enumList.length&&So.number(a.enumList[0].value)==null&&(a.type="string")),a.type=="object"&&a.properties&&(a.children=this.handleParams(a.name,a,r)),a.type=="array"&&a.items&&(a.properties={item:a.items},a.children=this.handleParams(a.name,a,r));}return i}handleTreeModel(e){const n=[];for(const r in e){const i=e[r],s={key:r,name:i.name,type:i.type,required:i.isRequired??false,description:[i.title,i.description].filter(o=>ll.string(o,true)).join(",")};switch(i.ref&&(s.ref=i.ref),i.type){case "string":case "integer":case "number":case "boolean":case "any":n.push({...s,enum:i.enumList});break;case "object":n.push(s),s.children=this.handleTreeModel(i.children);break;case "array":n.push(s),s.children=this.handleTreeModel(i.children);break}}return n}};le(ku,"singleton");let Vo=ku;class qE{constructor(e){le(this,"title");le(this,"className");le(this,"list");le(this,"dataVerifyPath");le(this,"firstWhereOrNullPath");le(this,"allRequired");le(this,"isRequiredNative");le(this,"fromJson");le(this,"toJson");le(this,"copyWith");le(this,"enum");le(this,"value","");le(this,"importCache",new Set);le(this,"retract","  ");this.title=e.title,this.className=It(e.className,"bigHump"),this.list=e.list,this.fromJson=e.fromJson??true,this.toJson=e.toJson,this.copyWith=e.copyWith,this.enum=e.enum,this.dataVerifyPath=e.dataVerifyPath,this.allRequired=e.allRequired??false,this.isRequiredNative=e.isRequiredNative??false,this.firstWhereOrNullPath=e.firstWhereOrNullPath,this.value=this.createClass(this.className,this.title,this.list),this.value=this.createImport()+this.value;}getValue(){return this.value}createImport(){let e="";return this.dataVerifyPath&&(this.value.includes("To.")||this.value.includes("Is."))&&(e+=`import '${this.dataVerifyPath}';
`),this.firstWhereOrNullPath&&this.value.includes(".firstWhereOrNull(")&&(e+=`import '${this.firstWhereOrNullPath}';
`),this.importCache.size>0&&(e+=Array.from(this.importCache).join(`
`)+`
`,this.importCache.clear()),e+(e?`
`:"")}createClass(e,n,r,i=1){var a;let s="";const o=r[0];return i==1&&r.length==1&&o.type=="array"&&(o.key=="data"||o.key=="items")?(a=o.children)!=null&&a.length&&(s+=`${n?`/// json转${n}
`:""}${this.toDartType(o)} jsonTo${e} (dynamic json) {
${this.retract}return ${this.toDartData({...o,required:true},"json")};
}`):(s+=(n?`/// ${n}
`:"")+`class ${e} {`+this.createClassParams(r)+`
`+this.createConstructor(e,r)+this.createFormJson(e,r)+this.createToJson(e,r)+this.createCopyWith(e,r)+`
}`,s+=this.createEnum(r)),r.forEach(l=>{var c,f;const u=l.type=="array"?(c=l.children)==null?void 0:c[0]:l;(u==null?void 0:u.type)=="object"&&((f=u.children)!=null&&f.length)&&(s+=`

${this.createClass(this.getName(u),u.description,u.children,i+1)}`);}),s}createClassParams(e){return e.map(n=>{var i;let r="";return !this.enum&&((i=n.enum)!=null&&i.length)&&n.enum.forEach(s=>{r+=`
${this.retract}/// - \`${s.value}\` ${s.description}`;}),(n.description?`
${this.retract}/// ${n.description}`:"")+r+`
${this.retract}${this.toDartType(n)}${this.isRequired(n)?"":"?"} ${It(n.key,"smallHump")};`}).join("")}createConstructor(e,n){const r=n.map(i=>`
${this.retract}${this.retract}${this.isRequired(i)?"required ":""}this.${It(i.key,"smallHump")},`).join("");return r?`
${this.retract}${e}({`+r+`
${this.retract}});
`:""}createFormJson(e,n){if(!this.fromJson)return "";let r="",i="",s=[];return n.forEach(o=>{let a=It(o.key,"smallHump");this.isRequired(o)&&(this.isEnum(o)||o.model)?(i+=`
${this.retract}${this.retract}final ${a} = ${this.toDartData(o)};`,s.push(`${a} == null`),r+=`
${this.retract}${this.retract}${this.retract}${a}: ${a},`):r+=`
${this.retract}${this.retract}${this.retract}${a}: ${this.toDartData(o)},`;}),`
${this.retract}static ${e}${i?"?":""} fromJson(dynamic json) {
${this.retract}${this.retract}if (json is! Map) json = {};`+i+(s.length?`
${this.retract}${this.retract}if (${s.join(" || ")}) return null;`:"")+`
${this.retract}${this.retract}final model = ${e}(`+r+(r?`
${this.retract}${this.retract});`:");")+`
${this.retract}${this.retract}return model;
${this.retract}}`}createToJson(e,n){if(!this.toJson)return "";let r="";return n.forEach(i=>{const s=It(i.key,"smallHump");r+=`
${this.retract}${this.retract}${this.isRequired(i)?"":`if (${s} != null) `}json['${i.key}'] = ${this.toDartJson(i)};`;}),`

${this.retract}Map<String, dynamic> toJson() {
${this.retract}${this.retract}Map<String, dynamic> json = {};`+r+`
${this.retract}${this.retract}return json;
${this.retract}}`}createCopyWith(e,n){if(!this.copyWith)return "";let r="",i="";return n.forEach(s=>{const o=It(s.key,"smallHump");r+=`
${this.retract}${this.retract}${this.toDartType(s)}? ${o},`,i+=`
${this.retract}${this.retract}${this.retract}${o}: ${o} ?? this.${o},`;}),`

${this.retract}${e} copyWith({`+r+`
${this.retract}}) {
${this.retract}${this.retract}return ${e}(`+i+`
${this.retract}${this.retract});
${this.retract}}`}createEnum(e){let n="";return e.forEach(r=>{var s;if(!this.isEnum(r))return;const i=this.getName(r);n+=`
${r.description?`
/// ${r.description}`:""}
enum ${i} {`,(s=r.enum)==null||s.forEach((o,a,l)=>{const u=o.description.replaceAll(",",",").split(","),c=u[0],f=u.slice(1).join(",")||c,d=r.type=="string"?`'${o.value}'`:o.value;n+=`${f?`
${this.retract}/// ${f}`:""}
${this.retract}${It("item_"+o.value,"smallHump")}(title: '${c}', value: ${d})${a==l.length-1?";":","}`;}),n+=`

${this.retract}final String title;
${this.retract}final ${this.toDartType(r,true)} value;
${this.retract}const ${i}({required this.title, required this.value});

${this.retract}static ${i}? fromValue(dynamic value) {
${this.retract}${this.retract}value = ${this.toDartData(r,"value",true)};
${this.retract}${this.retract}return value == null ? null : ${i}.values.firstWhereOrNull((item) => item.value == value);
${this.retract}}
}`;}),n}toDartData(e,n,r){var s,o;let i="";if(n??(n=`json['${e.key}']`),r!==true&&this.isEnum(e))return `${this.getName(e)}.fromValue(${n})`;switch(e.type){case "string":i=`To.stringValue(${n})${this.isRequired(e)?" ?? ''":""}`;break;case "integer":i=`To.intValue(${n})${this.isRequired(e)?" ?? 0":""}`;break;case "number":i=`To.doubleValue(${n})${this.isRequired(e)?" ?? 0":""}`;break;case "boolean":i=`To.boolValue(${n})${this.isRequired(e)?" ?? false":""}`;break;case "object":e.model?(i=`${e.model.name}.fromJson(${n})`,this.importCache.add(e.model.import)):(s=e.children)!=null&&s.length||e.ref?i=this.isRequired(e)?`${this.getName(e)}.fromJson(${n})`:`${n} is Map ? ${this.getName(e)}.fromJson(${n}) : null`:i=`To.mapValue(${n})${this.isRequired(e)?" ?? {}":""}`;break;case "array":if((o=e.children)!=null&&o.length){const a=this.toDartType(e.children[0]);i=`To.listValue(${n})?.map<${a}?>((item) => ${this.toDartData(e.children[0],"item")}).whereType<${a}>().toList()`+(this.isRequired(e)?" ?? []":"");}else i=`To.listValue(${n})${this.isRequired(e)?" ?? []":""}`;break;case "any":i=`${n}`;break}return i}toDartType(e,n){var r,i;if(n!==true&&this.isEnum(e))return this.getName(e);switch(e.type){case "string":return "String";case "integer":return "int";case "number":return "double";case "boolean":return "bool";case "object":return e.model?(this.importCache.add(e.model.import),e.model.name):(r=e.children)!=null&&r.length||e.ref?this.getName(e):"Map";case "array":return "List"+((i=e==null?void 0:e.children)!=null&&i.length?`<${this.toDartType(e.children[0])}>`:"");default:return "dynamic"}}toDartJson(e,n){var s,o;const r=It(e.key,"smallHump"),i=n??this.isRequired(e);if(this.isEnum(e))return `${r}${i?"":"?"}.value`;switch(e.type){case "string":case "integer":case "number":case "boolean":default:return `${r}`;case "object":return e.model?`${r}${i?"":"?"}.toJson()`:(s=e.children)!=null&&s.length||e.ref?`${r}${i?"":"?"}.toJson()`:`${r}`;case "array":return (o=e==null?void 0:e.children)!=null&&o.length?`${r}${i?"":"?"}.map((item) => ${this.toDartJson(e.children[0],true)}).toList()`:`${r}`}}getName(e){return e.model?e.model.name:this.className+(e.ref||e.name)}isRequired(e){return this.isRequiredNative?e.required:e.model||this.isEnum(e)?false:this.allRequired||e.required}isEnum(e){var n;return this.enum&&((n=e.enum)==null?void 0:n.length)}}class Dd{constructor(e){le(this,"title");le(this,"className");le(this,"list");le(this,"allRequired");le(this,"isRequiredNative");le(this,"jsonToModel");le(this,"dataVerifyPath");le(this,"addExport");le(this,"value","");le(this,"importCache",new Set);le(this,"retract","  ");this.title=e.title,this.className=It(e.className,"bigHump"),this.list=e.list,this.allRequired=e.allRequired??false,this.isRequiredNative=e.isRequiredNative??false,this.jsonToModel=e.jsonToModel??false,this.dataVerifyPath=e.dataVerifyPath,this.addExport=e.addExport??false,this.value=this.createModelMethod(this.className,this.title,this.list),this.value=this.createImport()+this.value;}getValue(){return this.value.trim()}createImport(){let e="";if(this.jsonToModel&&this.dataVerifyPath){const n=[this.value.includes("To.")?"To":"",this.value.includes("Is.")?"Is":""].filter(Boolean).join(", ");n&&(e+=`import { ${n} } from '${this.dataVerifyPath}';
`);}return this.importCache.size>0&&(e+=Array.from(this.importCache).join(`
`)+`
`,this.importCache.clear()),e+(e?`
`:"")}createModelMethod(e,n,r,i=1){var a;let s="";const o=r[0];if(i==1&&r.length==1&&o.type=="array"&&(o.key=="data"||o.key=="items"))this.jsonToModel&&((a=o.children)!=null&&a.length)&&(s+=`${n?`/** json转${n} */
`:""}export const jsonTo${e} = (json: any): ${this.toTsType(o)} => {
${this.retract}return ${this.toTsData({...o,required:true},"json")};
}

`);else {if(this.jsonToModel){const l=this.getKeys(r);s+=`${n?`/** json转${n} */
`:""}export const jsonTo${e} = <T extends boolean = false>(json: any, nonNull?: T): ${e=="any"?e:`T extends true ? ${e} : ${e} | undefined`} => {
${this.retract}if (!Is.object(json)) {
${this.retract}${this.retract}if (!nonNull) return void 0 as any;
${this.retract}${this.retract}json = {};
${this.retract}}
${this.retract}const model: any = {};`+(l.stringKeys.length?`
${this.retract}${JSON.stringify(l.stringKeys)}.forEach(item => model[item] = To.string(json[item]) ?? '');`:"")+(l.stringOrNullKeys.length?`
${this.retract}${JSON.stringify(l.stringOrNullKeys)}.forEach(item => model[item] = To.string(json[item]));`:"")+(l.numberKeys.length?`
${this.retract}${JSON.stringify(l.numberKeys)}.forEach(item => model[item] = To.number(json[item]) ?? 0);`:"")+(l.numberOrNullKeys.length?`
${this.retract}${JSON.stringify(l.numberOrNullKeys)}.forEach(item => model[item] = To.number(json[item]));`:"")+(l.booleanKeys.length?`
${this.retract}${JSON.stringify(l.booleanKeys)}.forEach(item => model[item] = To.boolean(json[item]) ?? false);`:"")+(l.booleanOrNullKeys.length?`
${this.retract}${JSON.stringify(l.booleanOrNullKeys)}.forEach(item => model[item] = To.boolean(json[item]));`:"")+(l.anyKeys.length?`
${this.retract}${JSON.stringify(l.anyKeys)}.forEach(item => model[item] = json[item]);`:"")+l.remainingParams.map(u=>`
${this.retract}model.${u.key} = ${this.toTsData(u)};`).join("")+`
${this.retract}return model;
}

`;}s+=this.createInterface(e,n,r);}return r.forEach(l=>{var c,f;const u=l.type=="array"?(c=l.children)==null?void 0:c[0]:l;(u==null?void 0:u.type)=="object"&&((f=u.children)!=null&&f.length)&&(s+=`${this.createModelMethod(this.getName(u),u.description,u.children,i+1)}`);}),s}createInterface(e,n,r){const i=this.jsonToModel||!this.jsonToModel&&this.addExport?"export ":"";return `${n?`/** ${n} */
`:""}${i}interface ${e} {`+this.createInterfaceParams(r)+`
}

`}createInterfaceParams(e){return e.map(n=>{var s;const r=[];let i;return n.description&&r.push(n.description),(s=n.enum)!=null&&s.length?(i=n.enum.map(o=>(o.description&&r.push(`- \`${o.value}\` ${o.description}`),n.type=="string"?`'${o.value}'`:o.value)).join(" | "),r.length>1&&(r.unshift(""),r[r.length-1]+=`
${this.retract}`)):i=this.toTsType(n),(n.description?`
${this.retract}/**${r.length>1?"":" "}${r.join(`
${this.retract} * `)} */`:"")+`
${this.retract}${n.key}${this.isRequired(n)?"":"?"}: ${i};`}).join("")}getKeys(e){let n=[],r=[],i=[],s=[],o=[],a=[],l=[],u=[];if(e.length>0){for(let c=0;c<e.length;c++){const f=e[c];switch(f.type){case "string":this.isRequired(f)?n.push(f):r.push(f);break;case "number":case "integer":this.isRequired(f)?i.push(f):s.push(f);break;case "boolean":this.isRequired(f)?o.push(f):a.push(f);break;case "any":l.push(f);break;default:u.push(f);break}}l.length<3&&(u.unshift(...l),l=[]),a.length<3&&(u.unshift(...a),a=[]),o.length<3&&(u.unshift(...o),o=[]),s.length<3&&(u.unshift(...s),s=[]),i.length<3&&(u.unshift(...i),i=[]),r.length<3&&(u.unshift(...r),r=[]),n.length<3&&(u.unshift(...n),n=[]);}else u=e;return {stringKeys:n.map(c=>c.key),stringOrNullKeys:r.map(c=>c.key),numberKeys:i.map(c=>c.key),numberOrNullKeys:s.map(c=>c.key),booleanKeys:o.map(c=>c.key),booleanOrNullKeys:a.map(c=>c.key),anyKeys:l.map(c=>c.key),remainingParams:u}}toTsData(e,n){var i,s;let r="";switch(n??(n=`json.${e.key}`),e.type){case "string":r=`To.string(${n})${this.isRequired(e)?" ?? ''":""}`;break;case "integer":case "number":r=`To.number(${n})${this.isRequired(e)?" ?? 0":""}`;break;case "boolean":r=`To.boolean(${n})${this.isRequired(e)?" ?? false":""}`;break;case "object":e.model?(r=`${e.model.name}.fromJson(${n})`,this.importCache.add(e.model.import)):(i=e.children)!=null&&i.length||e.ref?r=`jsonTo${this.getName(e)}(${n}${this.isRequired(e)?", true":""})`:r=`To.object(${n})${this.isRequired(e)?" ?? {}":""}`;break;case "array":(s=e.children)!=null&&s.length?r=`To.array(${n})?.map((item) => ${this.toTsData(e.children[0],"item")})?.filter(item => item !== void 0) as ${this.toTsType(e.children[0])}[]`+(this.isRequired(e)?" ?? []":""):r=`To.array(${n})${this.isRequired(e)?" ?? []":""}`;break;case "any":r=`${n}`;break}return r}toTsType(e){var n,r;switch(e.type){case "string":case "number":case "boolean":return e.type;case "integer":return "number";case "object":return e.model?(this.importCache.add(e.model.import),e.model.name):(n=e.children)!=null&&n.length||e.ref?this.getName(e):"Record<any, any>";case "array":return ((r=e==null?void 0:e.children)!=null&&r.length?`${this.toTsType(e.children[0])}`:"any")+"[]";default:return "any"}}isRequired(e){var n;return this.isRequiredNative?e.required:e.model||(n=e.enum)!=null&&n.length?false:this.allRequired||e.required}getName(e){return e.model?e.model.name:this.className+(e.ref||e.name)}}const m7=function(){const e=typeof document<"u"&&document.createElement("link").relList;return e&&e.supports&&e.supports("modulepreload")?"modulepreload":"preload"}(),g7=function(t){return "/"+t},hb={},nf=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){let o=function(u){return Promise.all(u.map(c=>Promise.resolve(c).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=o(n.map(u=>{if(u=g7(u),u in hb)return;hb[u]=true;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":m7,c||(d.as="script"),d.crossOrigin="",d.href=u,l&&d.setAttribute("nonce",l),document.head.appendChild(d),c)return new Promise((h,p)=>{d.addEventListener("load",h),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${u}`)));})}));}function s(o){const a=new Event("vite:preloadError",{cancelable:true});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return e().catch(s)})};let Tm=[],WE=[];(()=>{let t="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,n=0;e<t.length;e++)(e%2?WE:Tm).push(n=n+t[e]);})();function y7(t){if(t<768)return  false;for(let e=0,n=Tm.length;;){let r=e+n>>1;if(t<Tm[r])n=r;else if(t>=WE[r])e=r+1;else return  true;if(e==n)return  false}}function pb(t){return t>=127462&&t<=127487}const mb=8205;function v7(t,e,n=true,r=true){return (n?HE:D7)(t,e,r)}function HE(t,e,n){if(e==t.length)return e;e&&zE(t.charCodeAt(e))&&KE(t.charCodeAt(e-1))&&e--;let r=op(t,e);for(e+=gb(r);e<t.length;){let i=op(t,e);if(r==mb||i==mb||n&&y7(i))e+=gb(i),r=i;else if(pb(i)){let s=0,o=e-2;for(;o>=0&&pb(op(t,o));)s++,o-=2;if(s%2==0)break;e+=2;}else break}return e}function D7(t,e,n){for(;e>0;){let r=HE(t,e-2,n);if(r<e)return r;e--;}return 0}function op(t,e){let n=t.charCodeAt(e);if(!KE(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return zE(r)?(n-55296<<10)+(r-56320)+65536:n}function zE(t){return t>=56320&&t<57344}function KE(t){return t>=55296&&t<56320}function gb(t){return t<65536?1:2}class Qe{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,false,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,true,1,0)}replace(e,n,r){[e,n]=ul(this,e,n);let i=[];return this.decompose(0,e,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(n,this.length,i,1),mi.from(i,this.length-(n-e)+r.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,n=this.length){[e,n]=ul(this,e,n);let r=[];return this.decompose(e,n,r,0),mi.from(r,n-e)}eq(e){if(e==this)return  true;if(e.length!=this.length||e.lines!=this.lines)return  false;let n=this.scanIdentical(e,1),r=this.length-this.scanIdentical(e,-1),i=new Du(this),s=new Du(e);for(let o=n,a=n;;){if(i.next(o),s.next(o),o=0,i.lineBreak!=s.lineBreak||i.done!=s.done||i.value!=s.value)return  false;if(a+=i.value.length,i.done||a>=r)return  true}}iter(e=1){return new Du(this,e)}iterRange(e,n=this.length){return new UE(this,e,n)}iterLines(e,n){let r;if(e==null)r=this.iter();else {n==null&&(n=this.lines+1);let i=this.line(e).from;r=this.iterRange(i,Math.max(i,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to));}return new JE(r)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Qe.empty:e.length<=32?new Nt(e):mi.from(Nt.split(e,[]))}}class Nt extends Qe{constructor(e,n=b7(e)){super(),this.text=e,this.length=n;}get lines(){return this.text.length}get children(){return null}lineInner(e,n,r,i){for(let s=0;;s++){let o=this.text[s],a=i+o.length;if((n?r:a)>=e)return new C7(i,a,r,o);i=a+1,r++;}}decompose(e,n,r,i){let s=e<=0&&n>=this.length?this:new Nt(yb(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(i&1){let o=r.pop(),a=zf(s.text,o.text.slice(),0,s.length);if(a.length<=32)r.push(new Nt(a,o.length+s.length));else {let l=a.length>>1;r.push(new Nt(a.slice(0,l)),new Nt(a.slice(l)));}}else r.push(s);}replace(e,n,r){if(!(r instanceof Nt))return super.replace(e,n,r);[e,n]=ul(this,e,n);let i=zf(this.text,zf(r.text,yb(this.text,0,e)),n),s=this.length+r.length-(n-e);return i.length<=32?new Nt(i,s):mi.from(Nt.split(i,[]),s)}sliceString(e,n=this.length,r=`
`){[e,n]=ul(this,e,n);let i="";for(let s=0,o=0;s<=n&&o<this.text.length;o++){let a=this.text[o],l=s+a.length;s>e&&o&&(i+=r),e<l&&n>s&&(i+=a.slice(Math.max(0,e-s),n-s)),s=l+1;}return i}flatten(e){for(let n of this.text)e.push(n);}scanIdentical(){return 0}static split(e,n){let r=[],i=-1;for(let s of e)r.push(s),i+=s.length+1,r.length==32&&(n.push(new Nt(r,i)),r=[],i=-1);return i>-1&&n.push(new Nt(r,i)),n}}class mi extends Qe{constructor(e,n){super(),this.children=e,this.length=n,this.lines=0;for(let r of e)this.lines+=r.lines;}lineInner(e,n,r,i){for(let s=0;;s++){let o=this.children[s],a=i+o.length,l=r+o.lines-1;if((n?l:a)>=e)return o.lineInner(e,n,r,i);i=a+1,r=l+1;}}decompose(e,n,r,i){for(let s=0,o=0;o<=n&&s<this.children.length;s++){let a=this.children[s],l=o+a.length;if(e<=l&&n>=o){let u=i&((o<=e?1:0)|(l>=n?2:0));o>=e&&l<=n&&!u?r.push(a):a.decompose(e-o,n-o,r,u);}o=l+1;}}replace(e,n,r){if([e,n]=ul(this,e,n),r.lines<this.lines)for(let i=0,s=0;i<this.children.length;i++){let o=this.children[i],a=s+o.length;if(e>=s&&n<=a){let l=o.replace(e-s,n-s,r),u=this.lines-o.lines+l.lines;if(l.lines<u>>4&&l.lines>u>>6){let c=this.children.slice();return c[i]=l,new mi(c,this.length-(n-e)+r.length)}return super.replace(s,a,l)}s=a+1;}return super.replace(e,n,r)}sliceString(e,n=this.length,r=`
`){[e,n]=ul(this,e,n);let i="";for(let s=0,o=0;s<this.children.length&&o<=n;s++){let a=this.children[s],l=o+a.length;o>e&&s&&(i+=r),e<l&&n>o&&(i+=a.sliceString(e-o,n-o,r)),o=l+1;}return i}flatten(e){for(let n of this.children)n.flatten(e);}scanIdentical(e,n){if(!(e instanceof mi))return 0;let r=0,[i,s,o,a]=n>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=n,s+=n){if(i==o||s==a)return r;let l=this.children[i],u=e.children[s];if(l!=u)return r+l.scanIdentical(u,n);r+=l.length+1;}}static from(e,n=e.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let h of e)r+=h.lines;if(r<32){let h=[];for(let p of e)p.flatten(h);return new Nt(h,n)}let i=Math.max(32,r>>5),s=i<<1,o=i>>1,a=[],l=0,u=-1,c=[];function f(h){let p;if(h.lines>s&&h instanceof mi)for(let m of h.children)f(m);else h.lines>o&&(l>o||!l)?(d(),a.push(h)):h instanceof Nt&&l&&(p=c[c.length-1])instanceof Nt&&h.lines+p.lines<=32?(l+=h.lines,u+=h.length+1,c[c.length-1]=new Nt(p.text.concat(h.text),p.length+1+h.length)):(l+h.lines>i&&d(),l+=h.lines,u+=h.length+1,c.push(h));}function d(){l!=0&&(a.push(c.length==1?c[0]:mi.from(c,u)),u=-1,l=c.length=0);}for(let h of e)f(h);return d(),a.length==1?a[0]:new mi(a,n)}}Qe.empty=new Nt([""],0);function b7(t){let e=-1;for(let n of t)e+=n.length+1;return e}function zf(t,e,n=0,r=1e9){for(let i=0,s=0,o=true;s<t.length&&i<=r;s++){let a=t[s],l=i+a.length;l>=n&&(l>r&&(a=a.slice(0,r-i)),i<n&&(a=a.slice(n-i)),o?(e[e.length-1]+=a,o=false):e.push(a)),i=l+1;}return e}function yb(t,e,n){return zf(t,[""],e,n)}class Du{constructor(e,n=1){this.dir=n,this.done=false,this.lineBreak=false,this.value="",this.nodes=[e],this.offsets=[n>0?1:(e instanceof Nt?e.text.length:e.children.length)<<1];}nextInner(e,n){for(this.done=this.lineBreak=false;;){let r=this.nodes.length-1,i=this.nodes[r],s=this.offsets[r],o=s>>1,a=i instanceof Nt?i.text.length:i.children.length;if(o==(n>0?a:0)){if(r==0)return this.done=true,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop();}else if((s&1)==(n>0?0:1)){if(this.offsets[r]+=n,e==0)return this.lineBreak=true,this.value=`
`,this;e--;}else if(i instanceof Nt){let l=i.text[o+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,e))return this.value=e==0?l:n>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length;}else {let l=i.children[o+(n<0?-1:0)];e>l.length?(e-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof Nt?l.text.length:l.children.length)<<1));}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class UE{constructor(e,n,r){this.value="",this.done=false,this.cursor=new Du(e,n>r?-1:1),this.pos=n>r?e.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r);}nextInner(e,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=true,this;e+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;e>r&&(e=r),r-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*n,this.value=i.length<=r?i:n<0?i.slice(i.length-r):i.slice(0,r),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class JE{constructor(e){this.inner=e,this.afterBreak=true,this.value="",this.done=false;}next(e=0){let{done:n,lineBreak:r,value:i}=this.inner.next(e);return n&&this.afterBreak?(this.value="",this.afterBreak=false):n?(this.done=true,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=true,this.next()):(this.value=i,this.afterBreak=false),this}get lineBreak(){return  false}}typeof Symbol<"u"&&(Qe.prototype[Symbol.iterator]=function(){return this.iter()},Du.prototype[Symbol.iterator]=UE.prototype[Symbol.iterator]=JE.prototype[Symbol.iterator]=function(){return this});class C7{constructor(e,n,r,i){this.from=e,this.to=n,this.number=r,this.text=i;}get length(){return this.to-this.from}}function ul(t,e,n){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,n))]}function nn(t,e,n=true,r=true){return v7(t,e,n,r)}function x7(t){return t>=56320&&t<57344}function E7(t){return t>=55296&&t<56320}function jn(t,e){let n=t.charCodeAt(e);if(!E7(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return x7(r)?(n-55296<<10)+(r-56320)+65536:n}function H0(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function gi(t){return t<65536?1:2}const km=/\r\n?|\n/;var tn=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(tn||(tn={}));class Fi{constructor(e){this.sections=e;}get length(){let e=0;for(let n=0;n<this.sections.length;n+=2)e+=this.sections[n];return e}get newLength(){let e=0;for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n+1];e+=r<0?this.sections[n]:r;}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let n=0,r=0,i=0;n<this.sections.length;){let s=this.sections[n++],o=this.sections[n++];o<0?(e(r,i,s),i+=s):i+=o,r+=s;}}iterChangedRanges(e,n=false){Bm(this,e,n);}get invertedDesc(){let e=[];for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];i<0?e.push(r,i):e.push(i,r);}return new Fi(e)}composeDesc(e){return this.empty?e:e.empty?this:GE(this,e)}mapDesc(e,n=false){return e.empty?this:Om(this,e,n)}mapPos(e,n=-1,r=tn.Simple){let i=0,s=0;for(let o=0;o<this.sections.length;){let a=this.sections[o++],l=this.sections[o++],u=i+a;if(l<0){if(u>e)return s+(e-i);s+=a;}else {if(r!=tn.Simple&&u>=e&&(r==tn.TrackDel&&i<e&&u>e||r==tn.TrackBefore&&i<e||r==tn.TrackAfter&&u>e))return null;if(u>e||u==e&&n<0&&!a)return e==i||n<0?s:s+l;s+=l;}i=u;}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return s}touchesRange(e,n=e){for(let r=0,i=0;r<this.sections.length&&i<=n;){let s=this.sections[r++],o=this.sections[r++],a=i+s;if(o>=0&&i<=n&&a>=e)return i<e&&a>n?"cover":true;i=a;}return  false}toString(){let e="";for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];e+=(e?" ":"")+r+(i>=0?":"+i:"");}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Fi(e)}static create(e){return new Fi(e)}}class Ht extends Fi{constructor(e,n){super(e),this.inserted=n;}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Bm(this,(n,r,i,s,o)=>e=e.replace(i,i+(r-n),o),false),e}mapDesc(e,n=false){return Om(this,e,n,true)}invert(e){let n=this.sections.slice(),r=[];for(let i=0,s=0;i<n.length;i+=2){let o=n[i],a=n[i+1];if(a>=0){n[i]=a,n[i+1]=o;let l=i>>1;for(;r.length<l;)r.push(Qe.empty);r.push(o?e.slice(s,s+o):Qe.empty);}s+=o;}return new Ht(n,r)}compose(e){return this.empty?e:e.empty?this:GE(this,e,true)}map(e,n=false){return e.empty?this:Om(this,e,n,true)}iterChanges(e,n=false){Bm(this,e,n);}get desc(){return Fi.create(this.sections)}filter(e){let n=[],r=[],i=[],s=new zu(this);e:for(let o=0,a=0;;){let l=o==e.length?1e9:e[o++];for(;a<l||a==l&&s.len==0;){if(s.done)break e;let c=Math.min(s.len,l-a);pn(i,c,-1);let f=s.ins==-1?-1:s.off==0?s.ins:0;pn(n,c,f),f>0&&qs(r,n,s.text),s.forward(c),a+=c;}let u=e[o++];for(;a<u;){if(s.done)break e;let c=Math.min(s.len,u-a);pn(n,c,-1),pn(i,c,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(c),a+=c;}}return {changes:new Ht(n,r),filtered:Fi.create(i)}}toJSON(){let e=[];for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n],i=this.sections[n+1];i<0?e.push(r):i==0?e.push([r]):e.push([r].concat(this.inserted[n>>1].toJSON()));}return e}static of(e,n,r){let i=[],s=[],o=0,a=null;function l(c=false){if(!c&&!i.length)return;o<n&&pn(i,n-o,-1);let f=new Ht(i,s);a=a?a.compose(f.map(a)):f,i=[],s=[],o=0;}function u(c){if(Array.isArray(c))for(let f of c)u(f);else if(c instanceof Ht){if(c.length!=n)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${n})`);l(),a=a?a.compose(c.map(a)):c;}else {let{from:f,to:d=f,insert:h}=c;if(f>d||f<0||d>n)throw new RangeError(`Invalid change range ${f} to ${d} (in doc of length ${n})`);let p=h?typeof h=="string"?Qe.of(h.split(r||km)):h:Qe.empty,m=p.length;if(f==d&&m==0)return;f<o&&l(),f>o&&pn(i,f-o,-1),pn(i,d-f,m),qs(s,i,p),o=d;}}return u(e),l(!a),a}static empty(e){return new Ht(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let i=0;i<e.length;i++){let s=e[i];if(typeof s=="number")n.push(s,-1);else {if(!Array.isArray(s)||typeof s[0]!="number"||s.some((o,a)=>a&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)n.push(s[0],0);else {for(;r.length<i;)r.push(Qe.empty);r[i]=Qe.of(s.slice(1)),n.push(s[0],r[i].length);}}}return new Ht(n,r)}static createSet(e,n){return new Ht(e,n)}}function pn(t,e,n,r=false){if(e==0&&n<=0)return;let i=t.length-2;i>=0&&n<=0&&n==t[i+1]?t[i]+=e:i>=0&&e==0&&t[i]==0?t[i+1]+=n:r?(t[i]+=e,t[i+1]+=n):t.push(e,n);}function qs(t,e,n){if(n.length==0)return;let r=e.length-2>>1;if(r<t.length)t[t.length-1]=t[t.length-1].append(n);else {for(;t.length<r;)t.push(Qe.empty);t.push(n);}}function Bm(t,e,n){let r=t.inserted;for(let i=0,s=0,o=0;o<t.sections.length;){let a=t.sections[o++],l=t.sections[o++];if(l<0)i+=a,s+=a;else {let u=i,c=s,f=Qe.empty;for(;u+=a,c+=l,l&&r&&(f=f.append(r[o-2>>1])),!(n||o==t.sections.length||t.sections[o+1]<0);)a=t.sections[o++],l=t.sections[o++];e(i,u,s,c,f),i=u,s=c;}}}function Om(t,e,n,r=false){let i=[],s=r?[]:null,o=new zu(t),a=new zu(e);for(let l=-1;;){if(o.done&&a.len||a.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&a.ins==-1){let u=Math.min(o.len,a.len);pn(i,u,-1),o.forward(u),a.forward(u);}else if(a.ins>=0&&(o.ins<0||l==o.i||o.off==0&&(a.len<o.len||a.len==o.len&&!n))){let u=a.len;for(pn(i,a.ins,-1);u;){let c=Math.min(o.len,u);o.ins>=0&&l<o.i&&o.len<=c&&(pn(i,0,o.ins),s&&qs(s,i,o.text),l=o.i),o.forward(c),u-=c;}a.next();}else if(o.ins>=0){let u=0,c=o.len;for(;c;)if(a.ins==-1){let f=Math.min(c,a.len);u+=f,c-=f,a.forward(f);}else if(a.ins==0&&a.len<c)c-=a.len,a.next();else break;pn(i,u,l<o.i?o.ins:0),s&&l<o.i&&qs(s,i,o.text),l=o.i,o.forward(o.len-c);}else {if(o.done&&a.done)return s?Ht.createSet(i,s):Fi.create(i);throw new Error("Mismatched change set lengths")}}}function GE(t,e,n=false){let r=[],i=n?[]:null,s=new zu(t),o=new zu(e);for(let a=false;;){if(s.done&&o.done)return i?Ht.createSet(r,i):Fi.create(r);if(s.ins==0)pn(r,s.len,0,a),s.next();else if(o.len==0&&!o.done)pn(r,0,o.ins,a),i&&qs(i,r,o.text),o.next();else {if(s.done||o.done)throw new Error("Mismatched change set lengths");{let l=Math.min(s.len2,o.len),u=r.length;if(s.ins==-1){let c=o.ins==-1?-1:o.off?0:o.ins;pn(r,l,c,a),i&&c&&qs(i,r,o.text);}else o.ins==-1?(pn(r,s.off?0:s.len,l,a),i&&qs(i,r,s.textBit(l))):(pn(r,s.off?0:s.len,o.off?0:o.ins,a),i&&!o.off&&qs(i,r,o.text));a=(s.ins>l||o.ins>=0&&o.len>l)&&(a||r.length>u),s.forward2(l),o.forward(l);}}}}class zu{constructor(e){this.set=e,this.i=0,this.next();}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0;}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length?Qe.empty:e[n]}textBit(e){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!e?Qe.empty:n[r].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e);}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e);}}class Io{constructor(e,n,r){this.from=e,this.to=n,this.flags=r;}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,n=-1){let r,i;return this.empty?r=i=e.mapPos(this.from,n):(r=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new Io(r,i,this.flags)}extend(e,n=e){if(e<=this.anchor&&n>=this.anchor)return J.range(e,n);let r=Math.abs(e-this.anchor)>Math.abs(n-this.anchor)?e:n;return J.range(this.anchor,r)}eq(e,n=false){return this.anchor==e.anchor&&this.head==e.head&&(!n||!this.empty||this.assoc==e.assoc)}toJSON(){return {anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return J.range(e.anchor,e.head)}static create(e,n,r){return new Io(e,n,r)}}class J{constructor(e,n){this.ranges=e,this.mainIndex=n;}map(e,n=-1){return e.empty?this:J.create(this.ranges.map(r=>r.map(e,n)),this.mainIndex)}eq(e,n=false){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return  false;for(let r=0;r<this.ranges.length;r++)if(!this.ranges[r].eq(e.ranges[r],n))return  false;return  true}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new J([this.main],0)}addRange(e,n=true){return J.create([e].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(e,n=this.mainIndex){let r=this.ranges.slice();return r[n]=e,J.create(r,this.mainIndex)}toJSON(){return {ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new J(e.ranges.map(n=>Io.fromJSON(n)),e.main)}static single(e,n=e){return new J([J.range(e,n)],0)}static create(e,n=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;i<e.length;i++){let s=e[i];if(s.empty?s.from<=r:s.from<r)return J.normalized(e.slice(),n);r=s.to;}return new J(e,n)}static cursor(e,n=0,r,i){return Io.create(e,e,(n==0?0:n<0?8:16)|(r==null?7:Math.min(6,r))|(i??16777215)<<6)}static range(e,n,r,i){let s=(r??16777215)<<6|(i==null?7:Math.min(6,i));return n<e?Io.create(n,e,48|s):Io.create(e,n,(n>e?8:0)|s)}static normalized(e,n=0){let r=e[n];e.sort((i,s)=>i.from-s.from),n=e.indexOf(r);for(let i=1;i<e.length;i++){let s=e[i],o=e[i-1];if(s.empty?s.from<=o.to:s.from<o.to){let a=o.from,l=Math.max(s.to,o.to);i<=n&&n--,e.splice(--i,2,s.anchor>s.head?J.range(l,a):J.range(a,l));}}return new J(e,n)}} exports("J", J);function XE(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let z0=0;class de{constructor(e,n,r,i,s){this.combine=e,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=z0++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s;}get reader(){return this}static define(e={}){return new de(e.combine||(n=>n),e.compareInput||((n,r)=>n===r),e.compare||(e.combine?(n,r)=>n===r:K0),!!e.static,e.enables)}of(e){return new Kf([],this,0,e)}compute(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new Kf(e,this,1,n)}computeN(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new Kf(e,this,2,n)}from(e,n){return n||(n=r=>r),this.compute([e],r=>n(r.field(e)))}}function K0(t,e){return t==e||t.length==e.length&&t.every((n,r)=>n===e[r])}class Kf{constructor(e,n,r,i){this.dependencies=e,this.facet=n,this.type=r,this.value=i,this.id=z0++;}dynamicSlot(e){var n;let r=this.value,i=this.facet.compareInput,s=this.id,o=e[s]>>1,a=this.type==2,l=false,u=false,c=[];for(let f of this.dependencies)f=="doc"?l=true:f=="selection"?u=true:(((n=e[f.id])!==null&&n!==void 0?n:1)&1)==0&&c.push(e[f.id]);return {create(f){return f.values[o]=r(f),1},update(f,d){if(l&&d.docChanged||u&&(d.docChanged||d.selection)||$m(f,c)){let h=r(f);if(a?!vb(h,f.values[o],i):!i(h,f.values[o]))return f.values[o]=h,1}return 0},reconfigure:(f,d)=>{let h,p=d.config.address[s];if(p!=null){let m=Cd(d,p);if(this.dependencies.every(g=>g instanceof de?d.facet(g)===f.facet(g):g instanceof Qt?d.field(g,false)==f.field(g,false):true)||(a?vb(h=r(f),m,i):i(h=r(f),m)))return f.values[o]=m,0}else h=r(f);return f.values[o]=h,1}}}}function vb(t,e,n){if(t.length!=e.length)return  false;for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return  false;return  true}function $m(t,e){let n=false;for(let r of e)bu(t,r)&1&&(n=true);return n}function F7(t,e,n){let r=n.map(l=>t[l.id]),i=n.map(l=>l.type),s=r.filter(l=>!(l&1)),o=t[e.id]>>1;function a(l){let u=[];for(let c=0;c<r.length;c++){let f=Cd(l,r[c]);if(i[c]==2)for(let d of f)u.push(d);else u.push(f);}return e.combine(u)}return {create(l){for(let u of r)bu(l,u);return l.values[o]=a(l),1},update(l,u){if(!$m(l,s))return 0;let c=a(l);return e.compare(c,l.values[o])?0:(l.values[o]=c,1)},reconfigure(l,u){let c=$m(l,r),f=u.config.facets[e.id],d=u.facet(e);if(f&&!c&&K0(n,f))return l.values[o]=d,0;let h=a(l);return e.compare(h,d)?(l.values[o]=d,0):(l.values[o]=h,1)}}}const rf=de.define({static:true});class Qt{constructor(e,n,r,i,s){this.id=e,this.createF=n,this.updateF=r,this.compareF=i,this.spec=s,this.provides=void 0;}static define(e){let n=new Qt(z0++,e.create,e.update,e.compare||((r,i)=>r===i),e);return e.provide&&(n.provides=e.provide(n)),n}create(e){let n=e.facet(rf).find(r=>r.field==this);return ((n==null?void 0:n.create)||this.createF)(e)}slot(e){let n=e[this.id]>>1;return {create:r=>(r.values[n]=this.create(r),1),update:(r,i)=>{let s=r.values[n],o=this.updateF(s,i);return this.compareF(s,o)?0:(r.values[n]=o,1)},reconfigure:(r,i)=>{let s=r.facet(rf),o=i.facet(rf),a;return (a=s.find(l=>l.field==this))&&a!=o.find(l=>l.field==this)?(r.values[n]=a.create(r),1):i.config.address[this.id]!=null?(r.values[n]=i.field(this),0):(r.values[n]=this.create(r),1)}}}init(e){return [this,rf.of({field:this,create:e})]}get extension(){return this}}const Ao={lowest:4,low:3,default:2,high:1,highest:0};function Kl(t){return e=>new YE(e,t)}const po={highest:Kl(Ao.highest),high:Kl(Ao.high),default:Kl(Ao.default),low:Kl(Ao.low),lowest:Kl(Ao.lowest)};class YE{constructor(e,n){this.inner=e,this.prec=n;}}class wc{of(e){return new Mm(this,e)}reconfigure(e){return wc.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Mm{constructor(e,n){this.compartment=e,this.inner=n;}}class bd{constructor(e,n,r,i,s,o){for(this.base=e,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=s,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0);}staticFacet(e){let n=this.address[e.id];return n==null?e.default:this.staticValues[n>>1]}static resolve(e,n,r){let i=[],s=Object.create(null),o=new Map;for(let d of w7(e,n,o))d instanceof Qt?i.push(d):(s[d.facet.id]||(s[d.facet.id]=[])).push(d);let a=Object.create(null),l=[],u=[];for(let d of i)a[d.id]=u.length<<1,u.push(h=>d.slot(h));let c=r==null?void 0:r.config.facets;for(let d in s){let h=s[d],p=h[0].facet,m=c&&c[d]||[];if(h.every(g=>g.type==0))if(a[p.id]=l.length<<1|1,K0(m,h))l.push(r.facet(p));else {let g=p.combine(h.map(y=>y.value));l.push(r&&p.compare(g,r.facet(p))?r.facet(p):g);}else {for(let g of h)g.type==0?(a[g.id]=l.length<<1|1,l.push(g.value)):(a[g.id]=u.length<<1,u.push(y=>g.dynamicSlot(y)));a[p.id]=u.length<<1,u.push(g=>F7(g,p,h));}}let f=u.map(d=>d(a));return new bd(e,o,f,a,l,s)}}function w7(t,e,n){let r=[[],[],[],[],[]],i=new Map;function s(o,a){let l=i.get(o);if(l!=null){if(l<=a)return;let u=r[l].indexOf(o);u>-1&&r[l].splice(u,1),o instanceof Mm&&n.delete(o.compartment);}if(i.set(o,a),Array.isArray(o))for(let u of o)s(u,a);else if(o instanceof Mm){if(n.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=e.get(o.compartment)||o.inner;n.set(o.compartment,u),s(u,a);}else if(o instanceof YE)s(o.inner,o.prec);else if(o instanceof Qt)r[a].push(o),o.provides&&s(o.provides,a);else if(o instanceof Kf)r[a].push(o),o.facet.extensions&&s(o.facet.extensions,Ao.default);else {let u=o.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(u,a);}}return s(t,Ao.default),r.reduce((o,a)=>o.concat(a))}function bu(t,e){if(e&1)return 2;let n=e>>1,r=t.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;t.status[n]=4;let i=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|i}function Cd(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const QE=de.define(),Pm=de.define({combine:t=>t.some(e=>e),static:true}),ZE=de.define({combine:t=>t.length?t[0]:void 0,static:true}),eF=de.define(),tF=de.define(),nF=de.define(),rF=de.define({combine:t=>t.length?t[0]:false});class hs{constructor(e,n){this.type=e,this.value=n;}static define(){return new S7}}class S7{of(e){return new hs(this,e)}}class A7{constructor(e){this.map=e;}of(e){return new Ae(this,e)}}class Ae{constructor(e,n){this.type=e,this.value=n;}map(e){let n=this.type.map(this.value,e);return n===void 0?void 0:n==this.value?this:new Ae(this.type,n)}is(e){return this.type==e}static define(e={}){return new A7(e.map||(n=>n))}static mapEffects(e,n){if(!e.length)return e;let r=[];for(let i of e){let s=i.map(n);s&&r.push(s);}return r}}Ae.reconfigure=Ae.define();Ae.appendConfig=Ae.define();class Vt{constructor(e,n,r,i,s,o){this.startState=e,this.changes=n,this.selection=r,this.effects=i,this.annotations=s,this.scrollIntoView=o,this._doc=null,this._state=null,r&&XE(r,n.newLength),s.some(a=>a.type==Vt.time)||(this.annotations=s.concat(Vt.time.of(Date.now())));}static create(e,n,r,i,s,o){return new Vt(e,n,r,i,s,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let n of this.annotations)if(n.type==e)return n.value}get docChanged(){return !this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let n=this.annotation(Vt.userEvent);return !!(n&&(n==e||n.length>e.length&&n.slice(0,e.length)==e&&n[e.length]=="."))}}Vt.time=hs.define();Vt.userEvent=hs.define();Vt.addToHistory=hs.define();Vt.remote=hs.define();function T7(t,e){let n=[];for(let r=0,i=0;;){let s,o;if(r<t.length&&(i==e.length||e[i]>=t[r]))s=t[r++],o=t[r++];else if(i<e.length)s=e[i++],o=e[i++];else return n;!n.length||n[n.length-1]<s?n.push(s,o):n[n.length-1]<o&&(n[n.length-1]=o);}}function iF(t,e,n){var r;let i,s,o;return n?(i=e.changes,s=Ht.empty(e.changes.length),o=t.changes.compose(e.changes)):(i=e.changes.map(t.changes),s=t.changes.mapDesc(e.changes,true),o=t.changes.compose(i)),{changes:o,selection:e.selection?e.selection.map(s):(r=t.selection)===null||r===void 0?void 0:r.map(i),effects:Ae.mapEffects(t.effects,i).concat(Ae.mapEffects(e.effects,s)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function Nm(t,e,n){let r=e.selection,i=Ka(e.annotations);return e.userEvent&&(i=i.concat(Vt.userEvent.of(e.userEvent))),{changes:e.changes instanceof Ht?e.changes:Ht.of(e.changes||[],n,t.facet(ZE)),selection:r&&(r instanceof J?r:J.single(r.anchor,r.head)),effects:Ka(e.effects),annotations:i,scrollIntoView:!!e.scrollIntoView}}function sF(t,e,n){let r=Nm(t,e.length?e[0]:{},t.doc.length);e.length&&e[0].filter===false&&(n=false);for(let s=1;s<e.length;s++){e[s].filter===false&&(n=false);let o=!!e[s].sequential;r=iF(r,Nm(t,e[s],o?r.changes.newLength:t.doc.length),o);}let i=Vt.create(t,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return B7(n?k7(i):i)}function k7(t){let e=t.startState,n=true;for(let i of e.facet(eF)){let s=i(t);if(s===false){n=false;break}Array.isArray(s)&&(n=n===true?s:T7(n,s));}if(n!==true){let i,s;if(n===false)s=t.changes.invertedDesc,i=Ht.empty(e.doc.length);else {let o=t.changes.filter(n);i=o.changes,s=o.filtered.mapDesc(o.changes).invertedDesc;}t=Vt.create(e,i,t.selection&&t.selection.map(s),Ae.mapEffects(t.effects,s),t.annotations,t.scrollIntoView);}let r=e.facet(tF);for(let i=r.length-1;i>=0;i--){let s=r[i](t);s instanceof Vt?t=s:Array.isArray(s)&&s.length==1&&s[0]instanceof Vt?t=s[0]:t=sF(e,Ka(s),false);}return t}function B7(t){let e=t.startState,n=e.facet(nF),r=t;for(let i=n.length-1;i>=0;i--){let s=n[i](t);s&&Object.keys(s).length&&(r=iF(r,Nm(e,s,t.changes.newLength),true));}return r==t?t:Vt.create(e,t.changes,t.selection,r.effects,r.annotations,r.scrollIntoView)}const O7=[];function Ka(t){return t==null?O7:Array.isArray(t)?t:[t]}var Tt=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(Tt||(Tt={}));const $7=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Im;try{Im=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u");}catch{}function M7(t){if(Im)return Im.test(t);for(let e=0;e<t.length;e++){let n=t[e];if(/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||$7.test(n)))return  true}return  false}function P7(t){return e=>{if(!/\S/.test(e))return Tt.Space;if(M7(e))return Tt.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return Tt.Word;return Tt.Other}}class Ve{constructor(e,n,r,i,s,o){this.config=e,this.doc=n,this.selection=r,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=s,o&&(o._state=this);for(let a=0;a<this.config.dynamicSlots.length;a++)bu(this,a<<1);this.computeSlot=null;}field(e,n=true){let r=this.config.address[e.id];if(r==null){if(n)throw new RangeError("Field is not present in this state");return}return bu(this,r),Cd(this,r)}update(...e){return sF(this,e,true)}applyTransaction(e){let n=this.config,{base:r,compartments:i}=n;for(let a of e.effects)a.is(wc.reconfigure)?(n&&(i=new Map,n.compartments.forEach((l,u)=>i.set(u,l)),n=null),i.set(a.value.compartment,a.value.extension)):a.is(Ae.reconfigure)?(n=null,r=a.value):a.is(Ae.appendConfig)&&(n=null,r=Ka(r).concat(a.value));let s;n?s=e.startState.values.slice():(n=bd.resolve(r,i,this),s=new Ve(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let o=e.startState.facet(Pm)?e.newSelection:e.newSelection.asSingle();new Ve(n,e.newDoc,o,s,(a,l)=>l.update(a,e),e);}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:e},range:J.cursor(n.from+e.length)}))}changeByRange(e){let n=this.selection,r=e(n.ranges[0]),i=this.changes(r.changes),s=[r.range],o=Ka(r.effects);for(let a=1;a<n.ranges.length;a++){let l=e(n.ranges[a]),u=this.changes(l.changes),c=u.map(i);for(let d=0;d<a;d++)s[d]=s[d].map(c);let f=i.mapDesc(u,true);s.push(l.range.map(f)),i=i.compose(c),o=Ae.mapEffects(o,c).concat(Ae.mapEffects(Ka(l.effects),f));}return {changes:i,selection:J.create(s,n.mainIndex),effects:o}}changes(e=[]){return e instanceof Ht?e:Ht.of(e,this.doc.length,this.facet(Ve.lineSeparator))}toText(e){return Qe.of(e.split(this.facet(Ve.lineSeparator)||km))}sliceDoc(e=0,n=this.doc.length){return this.doc.sliceString(e,n,this.lineBreak)}facet(e){let n=this.config.address[e.id];return n==null?e.default:(bu(this,n),Cd(this,n))}toJSON(e){let n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let r in e){let i=e[r];i instanceof Qt&&this.config.address[i.id]!=null&&(n[r]=i.spec.toJSON(this.field(e[r]),this));}return n}static fromJSON(e,n={},r){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let i=[];if(r){for(let s in r)if(Object.prototype.hasOwnProperty.call(e,s)){let o=r[s],a=e[s];i.push(o.init(l=>o.spec.fromJSON(a,l)));}}return Ve.create({doc:e.doc,selection:J.fromJSON(e.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(e={}){let n=bd.resolve(e.extensions||[],new Map),r=e.doc instanceof Qe?e.doc:Qe.of((e.doc||"").split(n.staticFacet(Ve.lineSeparator)||km)),i=e.selection?e.selection instanceof J?e.selection:J.single(e.selection.anchor,e.selection.head):J.single(0);return XE(i,r.length),n.staticFacet(Pm)||(i=i.asSingle()),new Ve(n,r,i,n.dynamicSlots.map(()=>null),(s,o)=>o.create(s),null)}get tabSize(){return this.facet(Ve.tabSize)}get lineBreak(){return this.facet(Ve.lineSeparator)||`
`}get readOnly(){return this.facet(rF)}phrase(e,...n){for(let r of this.facet(Ve.phrases))if(Object.prototype.hasOwnProperty.call(r,e)){e=r[e];break}return n.length&&(e=e.replace(/\$(\$|\d*)/g,(r,i)=>{if(i=="$")return "$";let s=+(i||1);return !s||s>n.length?r:n[s-1]})),e}languageDataAt(e,n,r=-1){let i=[];for(let s of this.facet(QE))for(let o of s(this,n,r))Object.prototype.hasOwnProperty.call(o,e)&&i.push(o[e]);return i}charCategorizer(e){return P7(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:n,from:r,length:i}=this.doc.lineAt(e),s=this.charCategorizer(e),o=e-r,a=e-r;for(;o>0;){let l=nn(n,o,false);if(s(n.slice(l,o))!=Tt.Word)break;o=l;}for(;a<i;){let l=nn(n,a);if(s(n.slice(a,l))!=Tt.Word)break;a=l;}return o==a?null:J.range(o+r,a+r)}}Ve.allowMultipleSelections=Pm;Ve.tabSize=de.define({combine:t=>t.length?t[0]:4});Ve.lineSeparator=ZE;Ve.readOnly=rF;Ve.phrases=de.define({compare(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length==r.length&&n.every(i=>t[i]==e[i])}});Ve.languageData=QE;Ve.changeFilter=eF;Ve.transactionFilter=tF;Ve.transactionExtender=nF;wc.reconfigure=Ae.define();function Mi(t,e,n={}){let r={};for(let i of t)for(let s of Object.keys(i)){let o=i[s],a=r[s];if(a===void 0)r[s]=o;else if(!(a===o||o===void 0))if(Object.hasOwnProperty.call(n,s))r[s]=n[s](a,o);else throw new Error("Config merge conflict for field "+s)}for(let i in e)r[i]===void 0&&(r[i]=e[i]);return r}class Uo{eq(e){return this==e}range(e,n=e){return Lm.create(e,n,this)}}Uo.prototype.startSide=Uo.prototype.endSide=0;Uo.prototype.point=false;Uo.prototype.mapMode=tn.TrackDel;let Lm=class oF{constructor(e,n,r){this.from=e,this.to=n,this.value=r;}static create(e,n,r){return new oF(e,n,r)}};function Rm(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class U0{constructor(e,n,r,i){this.from=e,this.to=n,this.value=r,this.maxPoint=i;}get length(){return this.to[this.to.length-1]}findIndex(e,n,r,i=0){let s=r?this.to:this.from;for(let o=i,a=s.length;;){if(o==a)return o;let l=o+a>>1,u=s[l]-e||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==o)return u>=0?o:a;u>=0?a=l:o=l+1;}}between(e,n,r,i){for(let s=this.findIndex(n,-1e9,true),o=this.findIndex(r,1e9,false,s);s<o;s++)if(i(this.from[s]+e,this.to[s]+e,this.value[s])===false)return  false}map(e,n){let r=[],i=[],s=[],o=-1,a=-1;for(let l=0;l<this.value.length;l++){let u=this.value[l],c=this.from[l]+e,f=this.to[l]+e,d,h;if(c==f){let p=n.mapPos(c,u.startSide,u.mapMode);if(p==null||(d=h=p,u.startSide!=u.endSide&&(h=n.mapPos(c,u.endSide),h<d)))continue}else if(d=n.mapPos(c,u.startSide),h=n.mapPos(f,u.endSide),d>h||d==h&&u.startSide>0&&u.endSide<=0)continue;(h-d||u.endSide-u.startSide)<0||(o<0&&(o=d),u.point&&(a=Math.max(a,h-d)),r.push(u),i.push(d-o),s.push(h-o));}return {mapped:r.length?new U0(i,s,r,a):null,pos:o}}}class et{constructor(e,n,r,i){this.chunkPos=e,this.chunk=n,this.nextLayer=r,this.maxPoint=i;}static create(e,n,r,i){return new et(e,n,r,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let n of this.chunk)e+=n.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:n=[],sort:r=false,filterFrom:i=0,filterTo:s=this.length}=e,o=e.filter;if(n.length==0&&!o)return this;if(r&&(n=n.slice().sort(Rm)),this.isEmpty)return n.length?et.of(n):this;let a=new aF(this,null,-1).goto(0),l=0,u=[],c=new es;for(;a.value||l<n.length;)if(l<n.length&&(a.from-n[l].from||a.startSide-n[l].value.startSide)>=0){let f=n[l++];c.addInner(f.from,f.to,f.value)||u.push(f);}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(l==n.length||this.chunkEnd(a.chunkIndex)<n[l].from)&&(!o||i>this.chunkEnd(a.chunkIndex)||s<this.chunkPos[a.chunkIndex])&&c.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!o||i>a.to||s<a.from||o(a.from,a.to,a.value))&&(c.addInner(a.from,a.to,a.value)||u.push(Lm.create(a.from,a.to,a.value))),a.next());return c.finishInner(this.nextLayer.isEmpty&&!u.length?et.empty:this.nextLayer.update({add:u,filter:o,filterFrom:i,filterTo:s}))}map(e){if(e.empty||this.isEmpty)return this;let n=[],r=[],i=-1;for(let o=0;o<this.chunk.length;o++){let a=this.chunkPos[o],l=this.chunk[o],u=e.touchesRange(a,a+l.length);if(u===false)i=Math.max(i,l.maxPoint),n.push(l),r.push(e.mapPos(a));else if(u===true){let{mapped:c,pos:f}=l.map(a,e);c&&(i=Math.max(i,c.maxPoint),n.push(c),r.push(f));}}let s=this.nextLayer.map(e);return n.length==0?s:new et(r,n,s||et.empty,i)}between(e,n,r){if(!this.isEmpty){for(let i=0;i<this.chunk.length;i++){let s=this.chunkPos[i],o=this.chunk[i];if(n>=s&&e<=s+o.length&&o.between(s,e-s,n-s,r)===false)return}this.nextLayer.between(e,n,r);}}iter(e=0){return Ku.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,n=0){return Ku.from(e).goto(n)}static compare(e,n,r,i,s=-1){let o=e.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=s),a=n.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=s),l=Db(o,a,r),u=new Ul(o,l,s),c=new Ul(a,l,s);r.iterGaps((f,d,h)=>bb(u,f,c,d,h,i)),r.empty&&r.length==0&&bb(u,0,c,0,0,i);}static eq(e,n,r=0,i){i==null&&(i=999999999);let s=e.filter(c=>!c.isEmpty&&n.indexOf(c)<0),o=n.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(s.length!=o.length)return  false;if(!s.length)return  true;let a=Db(s,o),l=new Ul(s,a,0).goto(r),u=new Ul(o,a,0).goto(r);for(;;){if(l.to!=u.to||!_m(l.active,u.active)||l.point&&(!u.point||!l.point.eq(u.point)))return  false;if(l.to>i)return  true;l.next(),u.next();}}static spans(e,n,r,i,s=-1){let o=new Ul(e,null,s).goto(n),a=n,l=o.openStart;for(;;){let u=Math.min(o.to,r);if(o.point){let c=o.activeForPoint(o.to),f=o.pointFrom<n?c.length+1:o.point.startSide<0?c.length:Math.min(c.length,l);i.point(a,u,o.point,c,f,o.pointRank),l=Math.min(o.openEnd(u),c.length);}else u>a&&(i.span(a,u,o.active,l),l=o.openEnd(u));if(o.to>r)return l+(o.point&&o.to>r?1:0);a=o.to,o.next();}}static of(e,n=false){let r=new es;for(let i of e instanceof Lm?[e]:n?N7(e):e)r.add(i.from,i.to,i.value);return r.finish()}static join(e){if(!e.length)return et.empty;let n=e[e.length-1];for(let r=e.length-2;r>=0;r--)for(let i=e[r];i!=et.empty;i=i.nextLayer)n=new et(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}et.empty=new et([],[],null,-1);function N7(t){if(t.length>1)for(let e=t[0],n=1;n<t.length;n++){let r=t[n];if(Rm(e,r)>0)return t.slice().sort(Rm);e=r;}return t}et.empty.nextLayer=et.empty;class es{finishChunk(e){this.chunks.push(new U0(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[]);}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null;}add(e,n,r){this.addInner(e,n,r)||(this.nextLayer||(this.nextLayer=new es)).add(e,n,r);}addInner(e,n,r){let i=e-this.lastTo||r.startSide-this.last.endSide;if(i<=0&&(e-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?false:(this.from.length==250&&this.finishChunk(true),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=e,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-e)),true)}addChunk(e,n){if((e-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return  false;this.from.length&&this.finishChunk(true),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(e);let r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+e,this.lastTo=n.to[r]+e,true}finish(){return this.finishInner(et.empty)}finishInner(e){if(this.from.length&&this.finishChunk(false),this.chunks.length==0)return e;let n=et.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,n}}function Db(t,e,n){let r=new Map;for(let s of t)for(let o=0;o<s.chunk.length;o++)s.chunk[o].maxPoint<=0&&r.set(s.chunk[o],s.chunkPos[o]);let i=new Set;for(let s of e)for(let o=0;o<s.chunk.length;o++){let a=r.get(s.chunk[o]);a!=null&&(n?n.mapPos(a):a)==s.chunkPos[o]&&!(n!=null&&n.touchesRange(a,a+s.chunk[o].length))&&i.add(s.chunk[o]);}return i}class aF{constructor(e,n,r,i=0){this.layer=e,this.skip=n,this.minPoint=r,this.rank=i;}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,n=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,n,false),this}gotoInner(e,n,r){for(;this.chunkIndex<this.layer.chunk.length;){let i=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(i)||this.layer.chunkEnd(this.chunkIndex)<e||i.maxPoint<this.minPoint))break;this.chunkIndex++,r=false;}if(this.chunkIndex<this.layer.chunk.length){let i=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],n,true);(!r||this.rangeIndex<i)&&this.setRangeIndex(i);}this.next();}forward(e,n){(this.to-e||this.endSide-n)<0&&this.gotoInner(e,n,true);}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else {let e=this.layer.chunkPos[this.chunkIndex],n=this.layer.chunk[this.chunkIndex],r=e+n.from[this.rangeIndex];if(this.from=r,this.to=e+n.to[this.rangeIndex],this.value=n.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0;}else this.rangeIndex=e;}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next();}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Ku{constructor(e){this.heap=e;}static from(e,n=null,r=-1){let i=[];for(let s=0;s<e.length;s++)for(let o=e[s];!o.isEmpty;o=o.nextLayer)o.maxPoint>=r&&i.push(new aF(o,n,r,s));return i.length==1?i[0]:new Ku(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,n=-1e9){for(let r of this.heap)r.goto(e,n);for(let r=this.heap.length>>1;r>=0;r--)ap(this.heap,r);return this.next(),this}forward(e,n){for(let r of this.heap)r.forward(e,n);for(let r=this.heap.length>>1;r>=0;r--)ap(this.heap,r);(this.to-e||this.value.endSide-n)<0&&this.next();}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else {let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),ap(this.heap,0);}}}function ap(t,e){for(let n=t[e];;){let r=(e<<1)+1;if(r>=t.length)break;let i=t[r];if(r+1<t.length&&i.compare(t[r+1])>=0&&(i=t[r+1],r++),n.compare(i)<0)break;t[r]=n,t[e]=i,e=r;}}class Ul{constructor(e,n,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Ku.from(e,n,r);}goto(e,n=-1e9){return this.cursor.goto(e,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=n,this.openStart=-1,this.next(),this}forward(e,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(e,n);}removeActive(e){sf(this.active,e),sf(this.activeTo,e),sf(this.activeRank,e),this.minActive=Cb(this.active,this.activeTo);}addActive(e){let n=0,{value:r,to:i,rank:s}=this.cursor;for(;n<this.activeRank.length&&(s-this.activeRank[n]||i-this.activeTo[n])>0;)n++;of(this.active,n,r),of(this.activeTo,n,i),of(this.activeRank,n,s),e&&of(e,n,this.cursor.from),this.minActive=Cb(this.active,this.activeTo);}next(){let e=this.to,n=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),r&&sf(r,i);}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else {let s=this.cursor.value;if(!s.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else {this.point=s,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=s.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else {this.to=this.endSide=1e9;break}}if(r){this.openStart=0;for(let i=r.length-1;i>=0&&r[i]<e;i--)this.openStart++;}}activeForPoint(e){if(!this.active.length)return this.active;let n=[];for(let r=this.active.length-1;r>=0&&!(this.activeRank[r]<this.pointRank);r--)(this.activeTo[r]>e||this.activeTo[r]==e&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(e){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>e;r--)n++;return n}}function bb(t,e,n,r,i,s){t.goto(e),n.goto(r);let o=r+i,a=r,l=r-e;for(;;){let u=t.to+l-n.to,c=u||t.endSide-n.endSide,f=c<0?t.to+l:n.to,d=Math.min(f,o);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&_m(t.activeForPoint(t.to),n.activeForPoint(n.to))||s.comparePoint(a,d,t.point,n.point):d>a&&!_m(t.active,n.active)&&s.compareRange(a,d,t.active,n.active),f>o)break;(u||t.openEnd!=n.openEnd)&&s.boundChange&&s.boundChange(f),a=f,c<=0&&t.next(),c>=0&&n.next();}}function _m(t,e){if(t.length!=e.length)return  false;for(let n=0;n<t.length;n++)if(t[n]!=e[n]&&!t[n].eq(e[n]))return  false;return  true}function sf(t,e){for(let n=e,r=t.length-1;n<r;n++)t[n]=t[n+1];t.pop();}function of(t,e,n){for(let r=t.length-1;r>=e;r--)t[r+1]=t[r];t[e]=n;}function Cb(t,e){let n=-1,r=1e9;for(let i=0;i<e.length;i++)(e[i]-r||t[i].endSide-t[n].endSide)<0&&(n=i,r=e[i]);return n}function $l(t,e,n=t.length){let r=0;for(let i=0;i<n&&i<t.length;)t.charCodeAt(i)==9?(r+=e-r%e,i++):(r++,i=nn(t,i));return r}function jm(t,e,n,r){for(let i=0,s=0;;){if(s>=e)return i;if(i==t.length)break;s+=t.charCodeAt(i)==9?n-s%n:1,i=nn(t,i);}return r===true?-1:t.length}const Vm="ͼ",xb=typeof Symbol>"u"?"__"+Vm:Symbol.for(Vm),qm=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Eb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Qs{constructor(e,n){this.rules=[];let{finish:r}=n||{};function i(o){return /^@/.test(o)?[o]:o.split(/,\s*/)}function s(o,a,l,u){let c=[],f=/^@(\w+)\b/.exec(o[0]),d=f&&f[1]=="keyframes";if(f&&a==null)return l.push(o[0]+";");for(let h in a){let p=a[h];if(/&/.test(h))s(h.split(/,\s*/).map(m=>o.map(g=>m.replace(/&/,g))).reduce((m,g)=>m.concat(g)),p,l);else if(p&&typeof p=="object"){if(!f)throw new RangeError("The value of a property ("+h+") should be a primitive value.");s(i(h),p,c,d);}else p!=null&&c.push(h.replace(/_.*/,"").replace(/[A-Z]/g,m=>"-"+m.toLowerCase())+": "+p+";");}(c.length||d)&&l.push((r&&!f&&!u?o.map(r):o).join(", ")+" {"+c.join(" ")+"}");}for(let o in e)s(i(o),e[o],this.rules);}getRules(){return this.rules.join(`
`)}static newName(){let e=Eb[xb]||1;return Eb[xb]=e+1,Vm+e.toString(36)}static mount(e,n,r){let i=e[qm],s=r&&r.nonce;i?s&&i.setNonce(s):i=new I7(e,s),i.mount(Array.isArray(n)?n:[n],e);}}let Fb=new Map;class I7{constructor(e,n){let r=e.ownerDocument||e,i=r.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let s=Fb.get(r);if(s)return e[qm]=s;this.sheet=new i.CSSStyleSheet,Fb.set(r,this);}else this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],e[qm]=this;}mount(e,n){let r=this.sheet,i=0,s=0;for(let o=0;o<e.length;o++){let a=e[o],l=this.modules.indexOf(a);if(l<s&&l>-1&&(this.modules.splice(l,1),s--,l=-1),l==-1){if(this.modules.splice(s++,0,a),r)for(let u=0;u<a.rules.length;u++)r.insertRule(a.rules[u],i++);}else {for(;s<l;)i+=this.modules[s++].rules.length;i+=a.rules.length,s++;}}if(r)n.adoptedStyleSheets.indexOf(this.sheet)<0&&(n.adoptedStyleSheets=[this.sheet,...n.adoptedStyleSheets]);else {let o="";for(let l=0;l<this.modules.length;l++)o+=this.modules[l].getRules()+`
`;this.styleTag.textContent=o;let a=n.head||n;this.styleTag.parentNode!=a&&a.insertBefore(this.styleTag,a.firstChild);}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e);}}var Zs={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Uu={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},L7=typeof navigator<"u"&&/Mac/.test(navigator.platform),R7=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var en=0;en<10;en++)Zs[48+en]=Zs[96+en]=String(en);for(var en=1;en<=24;en++)Zs[en+111]="F"+en;for(var en=65;en<=90;en++)Zs[en]=String.fromCharCode(en+32),Uu[en]=String.fromCharCode(en);for(var lp in Zs)Uu.hasOwnProperty(lp)||(Uu[lp]=Zs[lp]);function _7(t){var e=L7&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||R7&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Uu:Zs)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function Ju(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function Wm(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):false}function Uf(t,e){if(!e.anchorNode)return  false;try{return Wm(t,e.anchorNode)}catch{return  false}}function cl(t){return t.nodeType==3?Go(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function Cu(t,e,n,r){return n?wb(t,e,n,r,-1)||wb(t,e,n,r,1):false}function Jo(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function xd(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function wb(t,e,n,r,i){for(;;){if(t==n&&e==r)return  true;if(e==(i<0?0:Bi(t))){if(t.nodeName=="DIV")return  false;let s=t.parentNode;if(!s||s.nodeType!=1)return  false;e=Jo(t)+(i<0?0:1),t=s;}else if(t.nodeType==1){if(t=t.childNodes[e+(i<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return  false;e=i<0?Bi(t):0;}else return  false}}function Bi(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Sc(t,e){let n=e?t.left:t.right;return {left:n,right:n,top:t.top,bottom:t.bottom}}function j7(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function lF(t,e){let n=e.width/t.offsetWidth,r=e.height/t.offsetHeight;return (n>.995&&n<1.005||!isFinite(n)||Math.abs(e.width-t.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(e.height-t.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function V7(t,e,n,r,i,s,o,a){let l=t.ownerDocument,u=l.defaultView||window;for(let c=t,f=false;c&&!f;)if(c.nodeType==1){let d,h=c==l.body,p=1,m=1;if(h)d=j7(u);else {if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(f=true),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let F=c.getBoundingClientRect();(({scaleX:p,scaleY:m}=lF(c,F))),d={left:F.left,right:F.left+c.clientWidth*p,top:F.top,bottom:F.top+c.clientHeight*m};}let g=0,y=0;if(i=="nearest")e.top<d.top?(y=e.top-(d.top+o),n>0&&e.bottom>d.bottom+y&&(y=e.bottom-d.bottom+o)):e.bottom>d.bottom&&(y=e.bottom-d.bottom+o,n<0&&e.top-y<d.top&&(y=e.top-(d.top+o)));else {let F=e.bottom-e.top,x=d.bottom-d.top;y=(i=="center"&&F<=x?e.top+F/2-x/2:i=="start"||i=="center"&&n<0?e.top-o:e.bottom-x+o)-d.top;}if(r=="nearest"?e.left<d.left?(g=e.left-(d.left+s),n>0&&e.right>d.right+g&&(g=e.right-d.right+s)):e.right>d.right&&(g=e.right-d.right+s,n<0&&e.left<d.left+g&&(g=e.left-(d.left+s))):g=(r=="center"?e.left+(e.right-e.left)/2-(d.right-d.left)/2:r=="start"==a?e.left-s:e.right-(d.right-d.left)+s)-d.left,g||y)if(h)u.scrollBy(g,y);else {let F=0,x=0;if(y){let b=c.scrollTop;c.scrollTop+=y/m,x=(c.scrollTop-b)*m;}if(g){let b=c.scrollLeft;c.scrollLeft+=g/p,F=(c.scrollLeft-b)*p;}e={left:e.left-F,top:e.top-x,right:e.right-F,bottom:e.bottom-x},F&&Math.abs(F-g)<1&&(r="nearest"),x&&Math.abs(x-y)<1&&(i="nearest");}if(h)break;(e.top<d.top||e.bottom>d.bottom||e.left<d.left||e.right>d.right)&&(e={left:Math.max(e.left,d.left),right:Math.min(e.right,d.right),top:Math.max(e.top,d.top),bottom:Math.min(e.bottom,d.bottom)}),c=c.assignedSlot||c.parentNode;}else if(c.nodeType==11)c=c.host;else break}function q7(t){let e=t.ownerDocument,n,r;for(let i=t.parentNode;i&&!(i==e.body||n&&r);)if(i.nodeType==1)!r&&i.scrollHeight>i.clientHeight&&(r=i),!n&&i.scrollWidth>i.clientWidth&&(n=i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;return {x:n,y:r}}class W7{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0;}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:n,focusNode:r}=e;this.set(n,Math.min(e.anchorOffset,n?Bi(n):0),r,Math.min(e.focusOffset,r?Bi(r):0));}set(e,n,r,i){this.anchorNode=e,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i;}}let Fa=null;function uF(t){if(t.setActive)return t.setActive();if(Fa)return t.focus(Fa);let e=[];for(let n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(Fa==null?{get preventScroll(){return Fa={preventScroll:true},true}}:void 0),!Fa){Fa=false;for(let n=0;n<e.length;){let r=e[n++],i=e[n++],s=e[n++];r.scrollTop!=i&&(r.scrollTop=i),r.scrollLeft!=s&&(r.scrollLeft=s);}}}let Sb;function Go(t,e,n=e){let r=Sb||(Sb=document.createRange());return r.setEnd(t,n),r.setStart(t,e),r}function Ua(t,e,n,r){let i={key:e,code:e,keyCode:n,which:n,cancelable:true};r&&({altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,metaKey:i.metaKey}=r);let s=new KeyboardEvent("keydown",i);s.synthetic=true,t.dispatchEvent(s);let o=new KeyboardEvent("keyup",i);return o.synthetic=true,t.dispatchEvent(o),s.defaultPrevented||o.defaultPrevented}function H7(t){for(;t;){if(t&&(t.nodeType==9||t.nodeType==11&&t.host))return t;t=t.assignedSlot||t.parentNode;}return null}function cF(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0]);}function z7(t,e){let n=e.focusNode,r=e.focusOffset;if(!n||e.anchorNode!=n||e.anchorOffset!=r)return  false;for(r=Math.min(r,Bi(n));;)if(r){if(n.nodeType!=1)return  false;let i=n.childNodes[r-1];i.contentEditable=="false"?r--:(n=i,r=Bi(n));}else {if(n==t)return  true;r=Jo(n),n=n.parentNode;}}function fF(t){return t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function dF(t,e){for(let n=t,r=e;;){if(n.nodeType==3&&r>0)return {node:n,offset:r};if(n.nodeType==1&&r>0){if(n.contentEditable=="false")return null;n=n.childNodes[r-1],r=Bi(n);}else if(n.parentNode&&!xd(n))r=Jo(n),n=n.parentNode;else return null}}function hF(t,e){for(let n=t,r=e;;){if(n.nodeType==3&&r<n.nodeValue.length)return {node:n,offset:r};if(n.nodeType==1&&r<n.childNodes.length){if(n.contentEditable=="false")return null;n=n.childNodes[r],r=0;}else if(n.parentNode&&!xd(n))r=Jo(n)+1,n=n.parentNode;else return null}}class gn{constructor(e,n,r=true){this.node=e,this.offset=n,this.precise=r;}static before(e,n){return new gn(e.parentNode,Jo(e),n)}static after(e,n){return new gn(e.parentNode,Jo(e)+1,n)}}const J0=[];class yt{constructor(){this.parent=null,this.dom=null,this.flags=2;}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let n=this.posAtStart;for(let r of this.children){if(r==e)return n;n+=r.length+r.breakAfter;}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,n){if(this.flags&2){let r=this.dom,i=null,s;for(let o of this.children){if(o.flags&7){if(!o.dom&&(s=i?i.nextSibling:r.firstChild)){let a=yt.get(s);(!a||!a.parent&&a.canReuseDOM(o))&&o.reuseDOM(s);}o.sync(e,n),o.flags&=-8;}if(s=i?i.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&s!=o.dom&&(n.written=true),o.dom.parentNode==r)for(;s&&s!=o.dom;)s=Ab(s);else r.insertBefore(o.dom,s);i=o.dom;}for(s=i?i.nextSibling:r.firstChild,s&&n&&n.node==r&&(n.written=true);s;)s=Ab(s);}else if(this.flags&1)for(let r of this.children)r.flags&7&&(r.sync(e,n),r.flags&=-8);}reuseDOM(e){}localPosFromDOM(e,n){let r;if(e==this.dom)r=this.dom.childNodes[n];else {let i=Bi(e)==0?0:n==0?-1:1;for(;;){let s=e.parentNode;if(s==this.dom)break;i==0&&s.firstChild!=s.lastChild&&(e==s.firstChild?i=-1:i=1),e=s;}i<0?r=e:r=e.nextSibling;}if(r==this.dom.firstChild)return 0;for(;r&&!yt.get(r);)r=r.nextSibling;if(!r)return this.length;for(let i=0,s=0;;i++){let o=this.children[i];if(o.dom==r)return s;s+=o.length+o.breakAfter;}}domBoundsAround(e,n,r=0){let i=-1,s=-1,o=-1,a=-1;for(let l=0,u=r,c=r;l<this.children.length;l++){let f=this.children[l],d=u+f.length;if(u<e&&d>n)return f.domBoundsAround(e,n,u);if(d>=e&&i==-1&&(i=l,s=u),u>n&&f.dom.parentNode==this.dom){o=l,a=c;break}c=d,u=d+f.breakAfter;}return {from:s,to:a<0?r+this.length:a,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(e=false){this.flags|=2,this.markParentsDirty(e);}markParentsDirty(e){for(let n=this.parent;n;n=n.parent){if(e&&(n.flags|=2),n.flags&1)return;n.flags|=1,e=false;}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(true));}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this);}get rootView(){for(let e=this;;){let n=e.parent;if(!n)return e;e=n;}}replaceChildren(e,n,r=J0){this.markDirty();for(let i=e;i<n;i++){let s=this.children[i];s.parent==this&&r.indexOf(s)<0&&s.destroy();}r.length<250?this.children.splice(e,n-e,...r):this.children=[].concat(this.children.slice(0,e),r,this.children.slice(n));for(let i=0;i<r.length;i++)r[i].setParent(this);}ignoreMutation(e){return  false}ignoreEvent(e){return  false}childCursor(e=this.length){return new pF(this.children,e,this.children.length)}childPos(e,n=1){return this.childCursor().findPos(e,n)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return  true}get isWidget(){return  false}get isHidden(){return  false}merge(e,n,r,i,s,o){return  false}become(e){return  false}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null;}}yt.prototype.breakAfter=0;function Ab(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class pF{constructor(e,n,r){this.children=e,this.pos=n,this.i=r,this.off=0;}findPos(e,n=1){for(;;){if(e>this.pos||e==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter;}}}function mF(t,e,n,r,i,s,o,a,l){let{children:u}=t,c=u.length?u[e]:null,f=s.length?s[s.length-1]:null,d=f?f.breakAfter:o;if(!(e==r&&c&&!o&&!d&&s.length<2&&c.merge(n,i,s.length?f:null,n==0,a,l))){if(r<u.length){let h=u[r];h&&(i<h.length||h.breakAfter&&(f!=null&&f.breakAfter))?(e==r&&(h=h.split(i),i=0),!d&&f&&h.merge(0,i,f,true,0,l)?s[s.length-1]=h:((i||h.children.length&&!h.children[0].length)&&h.merge(0,i,null,false,0,l),s.push(h))):h!=null&&h.breakAfter&&(f?f.breakAfter=1:o=1),r++;}for(c&&(c.breakAfter=o,n>0&&(!o&&s.length&&c.merge(n,c.length,s[0],false,a,0)?c.breakAfter=s.shift().breakAfter:(n<c.length||c.children.length&&c.children[c.children.length-1].length==0)&&c.merge(n,c.length,null,false,a,0),e++));e<r&&s.length;)if(u[r-1].become(s[s.length-1]))r--,s.pop(),l=s.length?0:a;else if(u[e].become(s[0]))e++,s.shift(),a=s.length?0:l;else break;!s.length&&e&&r<u.length&&!u[e-1].breakAfter&&u[r].merge(0,0,u[e-1],false,a,l)&&e--,(e<r||s.length)&&t.replaceChildren(e,r,s);}}function gF(t,e,n,r,i,s){let o=t.childCursor(),{i:a,off:l}=o.findPos(n,1),{i:u,off:c}=o.findPos(e,-1),f=e-n;for(let d of r)f+=d.length;t.length+=f,mF(t,u,c,a,l,r,0,i,s);}let Vn=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},Hm=typeof document<"u"?document:{documentElement:{style:{}}};const zm=/Edge\/(\d+)/.exec(Vn.userAgent),yF=/MSIE \d/.test(Vn.userAgent),Km=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Vn.userAgent),mh=!!(yF||Km||zm),Tb=!mh&&/gecko\/(\d+)/i.test(Vn.userAgent),up=!mh&&/Chrome\/(\d+)/.exec(Vn.userAgent),K7="webkitFontSmoothing"in Hm.documentElement.style,vF=!mh&&/Apple Computer/.test(Vn.vendor),kb=vF&&(/Mobile\/\w+/.test(Vn.userAgent)||Vn.maxTouchPoints>2);var he={mac:kb||/Mac/.test(Vn.platform),windows:/Win/.test(Vn.platform),linux:/Linux|X11/.test(Vn.platform),ie:mh,ie_version:yF?Hm.documentMode||6:Km?+Km[1]:zm?+zm[1]:0,gecko:Tb,gecko_version:Tb?+(/Firefox\/(\d+)/.exec(Vn.userAgent)||[0,0])[1]:0,chrome:!!up,chrome_version:up?+up[1]:0,ios:kb,android:/Android\b/.test(Vn.userAgent),safari:vF,webkit_version:K7?+(/\bAppleWebKit\/(\d+)/.exec(Vn.userAgent)||[0,0])[1]:0,tabSize:Hm.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const U7=256;class Xr extends yt{constructor(e){super(),this.text=e;}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text));}sync(e,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=true),this.dom.nodeValue=this.text);}reuseDOM(e){e.nodeType==3&&this.createDOM(e);}merge(e,n,r){return this.flags&8||r&&(!(r instanceof Xr)||this.length-(n-e)+r.length>U7||r.flags&8)?false:(this.text=this.text.slice(0,e)+(r?r.text:"")+this.text.slice(n),this.markDirty(),true)}split(e){let n=new Xr(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(e,n){return e==this.dom?n:n?this.text.length:0}domAtPos(e){return new gn(this.dom,e)}domBoundsAround(e,n,r){return {from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,n){return J7(this.dom,e,n)}}class ts extends yt{constructor(e,n=[],r=0){super(),this.mark=e,this.children=n,this.length=r;for(let i of n)i.setParent(this);}setAttrs(e){if(cF(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)e.setAttribute(n,this.mark.attrs[n]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6);}sync(e,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,n);}merge(e,n,r,i,s,o){return r&&(!(r instanceof ts&&r.mark.eq(this.mark))||e&&s<=0||n<this.length&&o<=0)?false:(gF(this,e,n,r?r.children.slice():[],s-1,o-1),this.markDirty(),true)}split(e){let n=[],r=0,i=-1,s=0;for(let a of this.children){let l=r+a.length;l>e&&n.push(r<e?a.split(e-r):a),i<0&&r>=e&&(i=s),r=l,s++;}let o=this.length-e;return this.length=e,i>-1&&(this.children.length=i,this.markDirty()),new ts(this.mark,n,o)}domAtPos(e){return DF(this,e)}coordsAt(e,n){return CF(this,e,n)}}function J7(t,e,n){let r=t.nodeValue.length;e>r&&(e=r);let i=e,s=e,o=0;e==0&&n<0||e==r&&n>=0?he.chrome||he.gecko||(e?(i--,o=1):s<r&&(s++,o=-1)):n<0?i--:s<r&&s++;let a=Go(t,i,s).getClientRects();if(!a.length)return null;let l=a[(o?o<0:n>=0)?0:a.length-1];return he.safari&&!o&&l.width==0&&(l=Array.prototype.find.call(a,u=>u.width)||l),o?Sc(l,o<0):l||null}class Ws extends yt{static create(e,n,r){return new Ws(e,n,r)}constructor(e,n,r){super(),this.widget=e,this.length=n,this.side=r,this.prevWidget=null;}split(e){let n=Ws.create(this.widget,this.length-e,this.side);return this.length-=e,n}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"));}getSide(){return this.side}merge(e,n,r,i,s,o){return r&&(!(r instanceof Ws)||!this.widget.compare(r.widget)||e>0&&s<=0||n<this.length&&o<=0)?false:(this.length=e+(r?r.length:0)+(this.length-n),true)}become(e){return e instanceof Ws&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(true),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,true):false}ignoreMutation(){return  true}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return Qe.empty;let e=this;for(;e.parent;)e=e.parent;let{view:n}=e,r=n&&n.state.doc,i=this.posAtStart;return r?r.slice(i,i+this.length):Qe.empty}domAtPos(e){return (this.length?e==0:this.side>0)?gn.before(this.dom):gn.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,n){let r=this.widget.coordsAt(this.dom,e,n);if(r)return r;let i=this.dom.getClientRects(),s=null;if(!i.length)return null;let o=this.side?this.side<0:e>0;for(let a=o?i.length-1:0;s=i[a],!(e>0?a==0:a==i.length-1||s.top<s.bottom);a+=o?-1:1);return Sc(s,!o)}get isEditable(){return  false}get isWidget(){return  true}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom);}}class fl extends yt{constructor(e){super(),this.side=e;}get length(){return 0}merge(){return  false}become(e){return e instanceof fl&&e.side==this.side}split(){return new fl(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e);}}getSide(){return this.side}domAtPos(e){return this.side>0?gn.before(this.dom):gn.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Qe.empty}get isHidden(){return  true}}Xr.prototype.children=Ws.prototype.children=fl.prototype.children=J0;function DF(t,e){let n=t.dom,{children:r}=t,i=0;for(let s=0;i<r.length;i++){let o=r[i],a=s+o.length;if(!(a==s&&o.getSide()<=0)){if(e>s&&e<a&&o.dom.parentNode==n)return o.domAtPos(e-s);if(e<=s)break;s=a;}}for(let s=i;s>0;s--){let o=r[s-1];if(o.dom.parentNode==n)return o.domAtPos(o.length)}for(let s=i;s<r.length;s++){let o=r[s];if(o.dom.parentNode==n)return o.domAtPos(0)}return new gn(n,0)}function bF(t,e,n){let r,{children:i}=t;n>0&&e instanceof ts&&i.length&&(r=i[i.length-1])instanceof ts&&r.mark.eq(e.mark)?bF(r,e.children[0],n-1):(i.push(e),e.setParent(t)),t.length+=e.length;}function CF(t,e,n){let r=null,i=-1,s=null,o=-1;function a(u,c){for(let f=0,d=0;f<u.children.length&&d<=c;f++){let h=u.children[f],p=d+h.length;p>=c&&(h.children.length?a(h,c-d):(!s||s.isHidden&&(n>0||X7(s,h)))&&(p>c||d==p&&h.getSide()>0)?(s=h,o=c-d):(d<c||d==p&&h.getSide()<0&&!h.isHidden)&&(r=h,i=c-d)),d=p;}}a(t,e);let l=(n<0?r:s)||r||s;return l?l.coordsAt(Math.max(0,l==r?i:o),n):G7(t)}function G7(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let n=cl(e);return n[n.length-1]||null}function X7(t,e){let n=t.coordsAt(0,1),r=e.coordsAt(0,1);return n&&r&&r.top<n.bottom}function Um(t,e){for(let n in t)n=="class"&&e.class?e.class+=" "+t.class:n=="style"&&e.style?e.style+=";"+t.style:e[n]=t[n];return e}const Bb=Object.create(null);function Ed(t,e,n){if(t==e)return  true;t||(t=Bb),e||(e=Bb);let r=Object.keys(t),i=Object.keys(e);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return  false;for(let s of r)if(s!=n&&(i.indexOf(s)==-1||t[s]!==e[s]))return  false;return  true}function Jm(t,e,n){let r=false;if(e)for(let i in e)n&&i in n||(r=true,i=="style"?t.style.cssText="":t.removeAttribute(i));if(n)for(let i in n)e&&e[i]==n[i]||(r=true,i=="style"?t.style.cssText=n[i]:t.setAttribute(i,n[i]));return r}function Y7(t){let e=Object.create(null);for(let n=0;n<t.attributes.length;n++){let r=t.attributes[n];e[r.name]=r.value;}return e}class Pi{eq(e){return  false}updateDOM(e,n){return  false}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return  -1}get lineBreaks(){return 0}ignoreEvent(e){return  true}coordsAt(e,n,r){return null}get isHidden(){return  false}get editable(){return  false}destroy(e){}}var Tn=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(Tn||(Tn={}));class De extends Uo{constructor(e,n,r,i){super(),this.startSide=e,this.endSide=n,this.widget=r,this.spec=i;}get heightRelevant(){return  false}static mark(e){return new Ac(e)}static widget(e){let n=Math.max(-1e4,Math.min(1e4,e.side||0)),r=!!e.block;return n+=r&&!e.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new eo(e,n,n,r,e.widget||null,false)}static replace(e){let n=!!e.block,r,i;if(e.isBlockGap)r=-5e8,i=4e8;else {let{start:s,end:o}=xF(e,n);r=(s?n?-3e8:-1:5e8)-1,i=(o?n?2e8:1:-6e8)+1;}return new eo(e,r,i,n,e.widget||null,true)}static line(e){return new Tc(e)}static set(e,n=false){return et.of(e,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:false}}De.none=et.empty;class Ac extends De{constructor(e){let{start:n,end:r}=xF(e);super(n?-1:5e8,r?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null;}eq(e){var n,r;return this==e||e instanceof Ac&&this.tagName==e.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(e.class||((r=e.attrs)===null||r===void 0?void 0:r.class))&&Ed(this.attrs,e.attrs,"class")}range(e,n=e){if(e>=n)throw new RangeError("Mark decorations may not be empty");return super.range(e,n)}}Ac.prototype.point=false;class Tc extends De{constructor(e){super(-2e8,-2e8,null,e);}eq(e){return e instanceof Tc&&this.spec.class==e.spec.class&&Ed(this.spec.attributes,e.spec.attributes)}range(e,n=e){if(n!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,n)}}Tc.prototype.mapMode=tn.TrackBefore;Tc.prototype.point=true;class eo extends De{constructor(e,n,r,i,s,o){super(n,r,s,e),this.block=i,this.isReplace=o,this.mapMode=i?n<=0?tn.TrackBefore:tn.TrackAfter:tn.TrackDel;}get type(){return this.startSide!=this.endSide?Tn.WidgetRange:this.startSide<=0?Tn.WidgetBefore:Tn.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof eo&&Q7(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,n=e){if(this.isReplace&&(e>n||e==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,n)}}eo.prototype.point=true;function xF(t,e=false){let{inclusiveStart:n,inclusiveEnd:r}=t;return n==null&&(n=t.inclusive),r==null&&(r=t.inclusive),{start:n??e,end:r??e}}function Q7(t,e){return t==e||!!(t&&e&&t.compare(e))}function Jf(t,e,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=t?n[i]=Math.max(n[i],e):n.push(t,e);}class jt extends yt{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0;}merge(e,n,r,i,s,o){if(r){if(!(r instanceof jt))return  false;this.dom||r.transferDOM(this);}return i&&this.setDeco(r?r.attrs:null),gF(this,e,n,r?r.children.slice():[],s,o),true}split(e){let n=new jt;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i:r,off:i}=this.childPos(e);i&&(n.append(this.children[r].split(i),0),this.children[r].merge(i,this.children[r].length,null,false,0,0),r++);for(let s=r;s<this.children.length;s++)n.append(this.children[s],0);for(;r>0&&this.children[r-1].length==0;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=e,n}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null);}setDeco(e){Ed(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e);}append(e,n){bF(this,e,n);}addLineDeco(e){let n=e.spec.attributes,r=e.spec.class;n&&(this.attrs=Um(n,this.attrs||{})),r&&(this.attrs=Um({class:r},this.attrs||{}));}domAtPos(e){return DF(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6);}sync(e,n){var r;this.dom?this.flags&4&&(cF(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(Jm(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,n);let i=this.dom.lastChild;for(;i&&yt.get(i)instanceof ts;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=yt.get(i))===null||r===void 0?void 0:r.isEditable)==false&&(!he.ios||!this.children.some(s=>s instanceof Xr))){let s=document.createElement("BR");s.cmIgnore=true,this.dom.appendChild(s);}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,n;for(let r of this.children){if(!(r instanceof Xr)||/[^ -~]/.test(r.text))return null;let i=cl(r.dom);if(i.length!=1)return null;e+=i[0].width,n=i[0].height;}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:n}:null}coordsAt(e,n){let r=CF(this,e,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,s=r.bottom-r.top;if(Math.abs(s-i.lineHeight)<2&&i.textHeight<s){let o=(s-i.textHeight)/2;return {top:r.top+o,bottom:r.bottom-o,left:r.left,right:r.left}}}return r}become(e){return e instanceof jt&&this.children.length==0&&e.children.length==0&&Ed(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return  true}static find(e,n){for(let r=0,i=0;r<e.children.length;r++){let s=e.children[r],o=i+s.length;if(o>=n){if(s instanceof jt)return s;if(o>n)break}i=o+s.breakAfter;}return null}}class Xi extends yt{constructor(e,n,r){super(),this.widget=e,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null;}merge(e,n,r,i,s,o){return r&&(!(r instanceof Xi)||!this.widget.compare(r.widget)||e>0&&s<=0||n<this.length&&o<=0)?false:(this.length=e+(r?r.length:0)+(this.length-n),true)}domAtPos(e){return e==0?gn.before(this.dom):gn.after(this.dom,e==this.length)}split(e){let n=this.length-e;this.length=e;let r=new Xi(this.widget,n,this.deco);return r.breakAfter=this.breakAfter,r}get children(){return J0}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"));}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):Qe.empty}domBoundsAround(){return null}become(e){return e instanceof Xi&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(true),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,true):false}ignoreMutation(){return  true}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return  false}get isWidget(){return  true}coordsAt(e,n){let r=this.widget.coordsAt(this.dom,e,n);return r||(this.widget instanceof Gm?null:Sc(this.dom.getBoundingClientRect(),this.length?e==0:n<=0))}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom);}covers(e){let{startSide:n,endSide:r}=this.deco;return n==r?false:e<0?n<0:r>0}}class Gm extends Pi{constructor(e){super(),this.height=e;}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",true}get editable(){return  true}get estimatedHeight(){return this.height}ignoreEvent(){return  false}}class xu{constructor(e,n,r,i){this.doc=e,this.pos=n,this.end=r,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=true,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=n;}posCovered(){if(this.content.length==0)return !this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return !(e.breakAfter||e instanceof Xi&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new jt),this.atCursorPos=true),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(af(new fl(-1),e),e.length),this.pendingBuffer=0);}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e);}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof Xi)&&this.getLine();}buildText(e,n,r){for(;e>0;){if(this.textOff==this.text.length){let{value:s,lineBreak:o,done:a}=this.cursor.next(this.skip);if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=true,e--;continue}else this.text=s,this.textOff=0;}let i=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(af(new Xr(this.text.slice(this.textOff,this.textOff+i)),n),r),this.atCursorPos=true,this.textOff+=i,e-=i,r=0;}}span(e,n,r,i){this.buildText(n-e,r,i),this.pos=n,this.openStart<0&&(this.openStart=i);}point(e,n,r,i,s,o){if(this.disallowBlockEffectsFor[o]&&r instanceof eo){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=n-e;if(r instanceof eo)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Xi(r.widget||dl.block,a,r));else {let l=Ws.create(r.widget||dl.inline,a,a?0:r.startSide),u=this.atCursorPos&&!l.isEditable&&s<=i.length&&(e<n||r.startSide>0),c=!l.isEditable&&(e<n||s>i.length||r.startSide<=0),f=this.getLine();this.pendingBuffer==2&&!u&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),u&&(f.append(af(new fl(1),i),s),s=i.length+Math.max(0,s-i.length)),f.append(af(l,i),s),this.atCursorPos=c,this.pendingBuffer=c?e<n||s>i.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice());}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=s);}static build(e,n,r,i,s){let o=new xu(e,n,r,s);return o.openEnd=et.spans(i,n,r,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function af(t,e){for(let n of e)t=new ts(n,[t],t.length);return t}class dl extends Pi{constructor(e){super(),this.tag=e;}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return  true}}dl.inline=new dl("span");dl.block=new dl("div");var Et=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(Et||(Et={}));const Xo=Et.LTR,G0=Et.RTL;function EF(t){let e=[];for(let n=0;n<t.length;n++)e.push(1<<+t[n]);return e}const Z7=EF("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),e5=EF("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Xm=Object.create(null),li=[];for(let t of ["()","[]","{}"]){let e=t.charCodeAt(0),n=t.charCodeAt(1);Xm[e]=n,Xm[n]=-e;}function FF(t){return t<=247?Z7[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?e5[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}const t5=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class Hs{get dir(){return this.level%2?G0:Xo}constructor(e,n,r){this.from=e,this.to=n,this.level=r;}side(e,n){return this.dir==n==e?this.to:this.from}forward(e,n){return e==(this.dir==n)}static find(e,n,r,i){let s=-1;for(let o=0;o<e.length;o++){let a=e[o];if(a.from<=n&&a.to>=n){if(a.level==r)return o;(s<0||(i!=0?i<0?a.from<n:a.to>n:e[s].level>a.level))&&(s=o);}}if(s<0)throw new RangeError("Index out of range");return s}}function wF(t,e){if(t.length!=e.length)return  false;for(let n=0;n<t.length;n++){let r=t[n],i=e[n];if(r.from!=i.from||r.to!=i.to||r.direction!=i.direction||!wF(r.inner,i.inner))return  false}return  true}const gt=[];function n5(t,e,n,r,i){for(let s=0;s<=r.length;s++){let o=s?r[s-1].to:e,a=s<r.length?r[s].from:n,l=s?256:i;for(let u=o,c=l,f=l;u<a;u++){let d=FF(t.charCodeAt(u));d==512?d=c:d==8&&f==4&&(d=16),gt[u]=d==4?2:d,d&7&&(f=d),c=d;}for(let u=o,c=l,f=l;u<a;u++){let d=gt[u];if(d==128)u<a-1&&c==gt[u+1]&&c&24?d=gt[u]=c:gt[u]=256;else if(d==64){let h=u+1;for(;h<a&&gt[h]==64;)h++;let p=u&&c==8||h<n&&gt[h]==8?f==1?1:8:256;for(let m=u;m<h;m++)gt[m]=p;u=h-1;}else d==8&&f==1&&(gt[u]=1);c=d,d&7&&(f=d);}}}function r5(t,e,n,r,i){let s=i==1?2:1;for(let o=0,a=0,l=0;o<=r.length;o++){let u=o?r[o-1].to:e,c=o<r.length?r[o].from:n;for(let f=u,d,h,p;f<c;f++)if(h=Xm[d=t.charCodeAt(f)])if(h<0){for(let m=a-3;m>=0;m-=3)if(li[m+1]==-h){let g=li[m+2],y=g&2?i:g&4?g&1?s:i:0;y&&(gt[f]=gt[li[m]]=y),a=m;break}}else {if(li.length==189)break;li[a++]=f,li[a++]=d,li[a++]=l;}else if((p=gt[f])==2||p==1){let m=p==i;l=m?0:1;for(let g=a-3;g>=0;g-=3){let y=li[g+2];if(y&2)break;if(m)li[g+2]|=2;else {if(y&4)break;li[g+2]|=4;}}}}}function i5(t,e,n,r){for(let i=0,s=r;i<=n.length;i++){let o=i?n[i-1].to:t,a=i<n.length?n[i].from:e;for(let l=o;l<a;){let u=gt[l];if(u==256){let c=l+1;for(;;)if(c==a){if(i==n.length)break;c=n[i++].to,a=i<n.length?n[i].from:e;}else if(gt[c]==256)c++;else break;let f=s==1,d=(c<e?gt[c]:r)==1,h=f==d?f?1:2:r;for(let p=c,m=i,g=m?n[m-1].to:t;p>l;)p==g&&(p=n[--m].from,g=m?n[m-1].to:t),gt[--p]=h;l=c;}else s=u,l++;}}}function Ym(t,e,n,r,i,s,o){let a=r%2?2:1;if(r%2==i%2)for(let l=e,u=0;l<n;){let c=true,f=false;if(u==s.length||l<s[u].from){let m=gt[l];m!=a&&(c=false,f=m==16);}let d=!c&&a==1?[]:null,h=c?r:r+1,p=l;e:for(;;)if(u<s.length&&p==s[u].from){if(f)break e;let m=s[u];if(!c)for(let g=m.to,y=u+1;;){if(g==n)break e;if(y<s.length&&s[y].from==g)g=s[y++].to;else {if(gt[g]==a)break e;break}}if(u++,d)d.push(m);else {m.from>l&&o.push(new Hs(l,m.from,h));let g=m.direction==Xo!=!(h%2);Qm(t,g?r+1:r,i,m.inner,m.from,m.to,o),l=m.to;}p=m.to;}else {if(p==n||(c?gt[p]!=a:gt[p]==a))break;p++;}d?Ym(t,l,p,r+1,i,d,o):l<p&&o.push(new Hs(l,p,h)),l=p;}else for(let l=n,u=s.length;l>e;){let c=true,f=false;if(!u||l>s[u-1].to){let m=gt[l-1];m!=a&&(c=false,f=m==16);}let d=!c&&a==1?[]:null,h=c?r:r+1,p=l;e:for(;;)if(u&&p==s[u-1].to){if(f)break e;let m=s[--u];if(!c)for(let g=m.from,y=u;;){if(g==e)break e;if(y&&s[y-1].to==g)g=s[--y].from;else {if(gt[g-1]==a)break e;break}}if(d)d.push(m);else {m.to<l&&o.push(new Hs(m.to,l,h));let g=m.direction==Xo!=!(h%2);Qm(t,g?r+1:r,i,m.inner,m.from,m.to,o),l=m.from;}p=m.from;}else {if(p==e||(c?gt[p-1]!=a:gt[p-1]==a))break;p--;}d?Ym(t,p,l,r+1,i,d,o):p<l&&o.push(new Hs(p,l,h)),l=p;}}function Qm(t,e,n,r,i,s,o){let a=e%2?2:1;n5(t,i,s,r,a),r5(t,i,s,r,a),i5(i,s,r,a),Ym(t,i,s,e,n,r,o);}function s5(t,e,n){if(!t)return [new Hs(0,0,e==G0?1:0)];if(e==Xo&&!n.length&&!t5.test(t))return SF(t.length);if(n.length)for(;t.length>gt.length;)gt[gt.length]=256;let r=[],i=e==Xo?0:1;return Qm(t,i,i,n,0,t.length,r),r}function SF(t){return [new Hs(0,t,0)]}let AF="";function o5(t,e,n,r,i){var s;let o=r.head-t.from,a=Hs.find(e,o,(s=r.bidiLevel)!==null&&s!==void 0?s:-1,r.assoc),l=e[a],u=l.side(i,n);if(o==u){let d=a+=i?1:-1;if(d<0||d>=e.length)return null;l=e[a=d],o=l.side(!i,n),u=l.side(i,n);}let c=nn(t.text,o,l.forward(i,n));(c<l.from||c>l.to)&&(c=u),AF=t.text.slice(Math.min(o,c),Math.max(o,c));let f=a==(i?e.length-1:0)?null:e[a+(i?1:-1)];return f&&c==u&&f.level+(i?0:1)<l.level?J.cursor(f.side(!i,n)+t.from,f.forward(i,n)?1:-1,f.level):J.cursor(c+t.from,l.forward(i,n)?-1:1,l.level)}function a5(t,e,n){for(let r=e;r<n;r++){let i=FF(t.charCodeAt(r));if(i==1)return Xo;if(i==2||i==4)return G0}return Xo}const TF=de.define(),kF=de.define(),BF=de.define(),OF=de.define(),Zm=de.define(),$F=de.define(),MF=de.define(),X0=de.define(),Y0=de.define(),PF=de.define({combine:t=>t.some(e=>e)}),NF=de.define({combine:t=>t.some(e=>e)}),IF=de.define();class Ja{constructor(e,n="nearest",r="nearest",i=5,s=5,o=false){this.range=e,this.y=n,this.x=r,this.yMargin=i,this.xMargin=s,this.isSnapshot=o;}map(e){return e.empty?this:new Ja(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new Ja(J.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const lf=Ae.define({map:(t,e)=>t.map(e)}),LF=Ae.define();function Wn(t,e,n){let r=t.facet(OF);r.length?r[0](e):window.onerror&&window.onerror(String(e),n,void 0,void 0,e)||(n?console.error(n+":",e):console.error(e));}const Ki=de.define({combine:t=>t.length?t[0]:true});let l5=0;const iu=de.define();class Rt{constructor(e,n,r,i,s){this.id=e,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=s(this);}static define(e,n){const{eventHandlers:r,eventObservers:i,provide:s,decorations:o}=n||{};return new Rt(l5++,e,r,i,a=>{let l=[iu.of(a)];return o&&l.push(Gu.of(u=>{let c=u.plugin(a);return c?o(c):De.none})),s&&l.push(s(a)),l})}static fromClass(e,n){return Rt.define(r=>new e(r),n)}}class cp{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null;}update(e){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n);}catch(r){if(Wn(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy();}catch{}this.deactivate();}}}else if(this.spec)try{this.value=this.spec.create(e);}catch(n){Wn(e.state,n,"CodeMirror plugin crashed"),this.deactivate();}return this}destroy(e){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy();}catch(r){Wn(e.state,r,"CodeMirror plugin crashed");}}deactivate(){this.spec=this.value=null;}}const RF=de.define(),Q0=de.define(),Gu=de.define(),_F=de.define(),Z0=de.define(),jF=de.define();function Ob(t,e){let n=t.state.facet(jF);if(!n.length)return n;let r=n.map(s=>s instanceof Function?s(t):s),i=[];return et.spans(r,e.from,e.to,{point(){},span(s,o,a,l){let u=s-e.from,c=o-e.from,f=i;for(let d=a.length-1;d>=0;d--,l--){let h=a[d].spec.bidiIsolate,p;if(h==null&&(h=a5(e.text,u,c)),l>0&&f.length&&(p=f[f.length-1]).to==u&&p.direction==h)p.to=c,f=p.inner;else {let m={from:u,to:c,direction:h,inner:[]};f.push(m),f=m.inner;}}}}),i}const VF=de.define();function ey(t){let e=0,n=0,r=0,i=0;for(let s of t.state.facet(VF)){let o=s(t);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(n=Math.max(n,o.right)),o.top!=null&&(r=Math.max(r,o.top)),o.bottom!=null&&(i=Math.max(i,o.bottom)));}return {left:e,right:n,top:r,bottom:i}}const su=de.define();class Cr{constructor(e,n,r,i){this.fromA=e,this.toA=n,this.fromB=r,this.toB=i;}join(e){return new Cr(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let n=e.length,r=this;for(;n>0;n--){let i=e[n-1];if(!(i.fromA>r.toA)){if(i.toA<r.fromA)break;r=r.join(i),e.splice(n-1,1);}}return e.splice(n,0,r),e}static extendWithRanges(e,n){if(n.length==0)return e;let r=[];for(let i=0,s=0,o=0,a=0;;i++){let l=i==e.length?null:e[i],u=o-a,c=l?l.fromB:1e9;for(;s<n.length&&n[s]<c;){let f=n[s],d=n[s+1],h=Math.max(a,f),p=Math.min(c,d);if(h<=p&&new Cr(h+u,p+u,h,p).addToSet(r),d>c)break;s+=2;}if(!l)return r;new Cr(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),o=l.toA,a=l.toB;}}}class Fd{constructor(e,n,r){this.view=e,this.state=n,this.transactions=r,this.flags=0,this.startState=e.state,this.changes=Ht.empty(this.startState.doc.length);for(let s of r)this.changes=this.changes.compose(s.changes);let i=[];this.changes.iterChangedRanges((s,o,a,l)=>i.push(new Cr(s,o,a,l))),this.changedRanges=i;}static create(e,n,r){return new Fd(e,n,r)}get viewportChanged(){return (this.flags&4)>0}get viewportMoved(){return (this.flags&8)>0}get heightChanged(){return (this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return (this.flags&1)>0}get docChanged(){return !this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class $b extends yt{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[false],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=De.none,this.lastCompositionAfterCursor=false,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=false,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new jt],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Cr(0,0,0,e.state.doc.length)],0,null);}update(e){var n;let r=e.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:u,toA:c})=>c<this.minWidthFrom||u>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let i=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?i=this.domChanged.newSel.head:!m5(e.changes,this.hasComposition)&&!e.selectionSet&&(i=e.state.selection.main.head));let s=i>-1?c5(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:c}=this.hasComposition;r=new Cr(u,c,e.changes.mapPos(u,-1),e.changes.mapPos(c,1)).addToSet(r.slice());}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(he.ie||he.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=true);let o=this.decorations,a=this.updateDeco(),l=h5(o,a,e.changes);return r=Cr.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?false:(this.updateInner(r,e.startState.doc.length,s),e.transactions.length&&(this.lastUpdate=Date.now()),true)}updateInner(e,n,r){this.view.viewState.mustMeasureContent=true,this.updateChildren(e,n,r);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let o=he.chrome||he.ios?{node:i.selectionRange.focusNode,written:false}:void 0;this.sync(this.view,o),this.flags&=-8,o&&(o.written||i.selectionRange.focusNode!=o.node)&&(this.forceSelection=true),this.dom.style.height="";}),this.markedForComposition.forEach(o=>o.flags&=-9);let s=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let o of this.children)o instanceof Xi&&o.widget instanceof Gm&&s.push(o.dom);i.updateGaps(s);}updateChildren(e,n,r){let i=r?r.range.addToSet(e.slice()):e,s=this.childCursor(n);for(let o=i.length-1;;o--){let a=o>=0?i[o]:null;if(!a)break;let{fromA:l,toA:u,fromB:c,toB:f}=a,d,h,p,m;if(r&&r.range.fromB<f&&r.range.toB>c){let b=xu.build(this.view.state.doc,c,r.range.fromB,this.decorations,this.dynamicDecorationMap),D=xu.build(this.view.state.doc,r.range.toB,f,this.decorations,this.dynamicDecorationMap);h=b.breakAtStart,p=b.openStart,m=D.openEnd;let C=this.compositionView(r);D.breakAtStart?C.breakAfter=1:D.content.length&&C.merge(C.length,C.length,D.content[0],false,D.openStart,0)&&(C.breakAfter=D.content[0].breakAfter,D.content.shift()),b.content.length&&C.merge(0,0,b.content[b.content.length-1],true,0,b.openEnd)&&b.content.pop(),d=b.content.concat(C).concat(D.content);}else ({content:d,breakAtStart:h,openStart:p,openEnd:m}=xu.build(this.view.state.doc,c,f,this.decorations,this.dynamicDecorationMap));let{i:g,off:y}=s.findPos(u,1),{i:F,off:x}=s.findPos(l,-1);mF(this,F,x,g,y,d,h,p,m);}r&&this.fixCompositionDOM(r);}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let n of e.transactions)for(let r of n.effects)r.is(LF)&&(this.editContextFormatting=r.value);}compositionView(e){let n=new Xr(e.text.nodeValue);n.flags|=8;for(let{deco:i}of e.marks)n=new ts(i,[n],n.length);let r=new jt;return r.append(n,0),r}fixCompositionDOM(e){let n=(s,o)=>{o.flags|=8|(o.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(o);let a=yt.get(s);a&&a!=o&&(a.dom=null),o.setDOM(s);},r=this.childPos(e.range.fromB,1),i=this.children[r.i];n(e.line,i);for(let s=e.marks.length-1;s>=-1;s--)r=i.childPos(r.off,1),i=i.children[r.i],n(s>=0?e.marks[s].node:e.text,i);}updateSelection(e=false,n=false){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,s=!i&&!(this.view.state.facet(Ki)||this.dom.tabIndex>-1)&&Uf(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||s))return;let o=this.forceSelection;this.forceSelection=false;let a=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(a.anchor)),u=a.empty?l:this.moveToLine(this.domAtPos(a.head));if(he.gecko&&a.empty&&!this.hasComposition&&u5(l)){let f=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(f,l.node.childNodes[l.offset]||null)),l=u=new gn(f,0),o=true;}let c=this.view.observer.selectionRange;(o||!c.focusNode||(!Cu(l.node,l.offset,c.anchorNode,c.anchorOffset)||!Cu(u.node,u.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,a))&&(this.view.observer.ignore(()=>{he.android&&he.chrome&&this.dom.contains(c.focusNode)&&p5(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:true}));let f=Ju(this.view.root);if(f)if(a.empty){if(he.gecko){let d=f5(l.node,l.offset);if(d&&d!=3){let h=(d==1?dF:hF)(l.node,l.offset);h&&(l=new gn(h.node,h.offset));}}f.collapse(l.node,l.offset),a.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=a.bidiLevel);}else if(f.extend){f.collapse(l.node,l.offset);try{f.extend(u.node,u.offset);}catch{}}else {let d=document.createRange();a.anchor>a.head&&([l,u]=[u,l]),d.setEnd(u.node,u.offset),d.setStart(l.node,l.offset),f.removeAllRanges(),f.addRange(d);}s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus());}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new gn(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new gn(c.focusNode,c.focusOffset);}suppressWidgetCursorChange(e,n){return this.hasComposition&&n.empty&&Cu(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,n=e.state.selection.main,r=Ju(e.root),{anchorNode:i,anchorOffset:s}=e.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let o=jt.find(this,n.head);if(!o)return;let a=o.posAtStart;if(n.head==a||n.head==a+o.length)return;let l=this.coordsAt(n.head,-1),u=this.coordsAt(n.head,1);if(!l||!u||l.bottom>u.top)return;let c=this.domAtPos(n.head+n.assoc);r.collapse(c.node,c.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=n.from&&r.collapse(i,s);}moveToLine(e){let n=this.dom,r;if(e.node!=n)return e;for(let i=e.offset;!r&&i<n.childNodes.length;i++){let s=yt.get(n.childNodes[i]);s instanceof jt&&(r=s.domAtPos(0));}for(let i=e.offset-1;!r&&i>=0;i--){let s=yt.get(n.childNodes[i]);s instanceof jt&&(r=s.domAtPos(s.length));}return r?new gn(r.node,r.offset,true):e}nearest(e){for(let n=e;n;){let r=yt.get(n);if(r&&r.rootView==this)return r;n=n.parentNode;}return null}posFromDOM(e,n){let r=this.nearest(e);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(e,n)+r.posAtStart}domAtPos(e){let{i:n,off:r}=this.childCursor().findPos(e,-1);for(;n<this.children.length-1;){let i=this.children[n];if(r<i.length||i instanceof jt)break;n++,r=0;}return this.children[n].domAtPos(r)}coordsAt(e,n){let r=null,i=0;for(let s=this.length,o=this.children.length-1;o>=0;o--){let a=this.children[o],l=s-a.breakAfter,u=l-a.length;if(l<e)break;if(u<=e&&(u<e||a.covers(-1))&&(l>e||a.covers(1))&&(!r||a instanceof jt&&!(r instanceof jt&&n>=0)))r=a,i=u;else if(r&&u==e&&l==e&&a instanceof Xi&&Math.abs(n)<2){if(a.deco.startSide<0)break;o&&(r=null);}s=u;}return r?r.coordsAt(e-i,n):null}coordsForChar(e){let{i:n,off:r}=this.childPos(e,1),i=this.children[n];if(!(i instanceof jt))return null;for(;i.children.length;){let{i:a,off:l}=i.childPos(r,1);for(;;a++){if(a==i.children.length)return null;if((i=i.children[a]).length)break}r=l;}if(!(i instanceof Xr))return null;let s=nn(i.text,r);if(s==r)return null;let o=Go(i.dom,r,s).getClientRects();for(let a=0;a<o.length;a++){let l=o[a];if(a==o.length-1||l.top<l.bottom&&l.left<l.right)return l}return null}measureVisibleLineHeights(e){let n=[],{from:r,to:i}=e,s=this.view.contentDOM.clientWidth,o=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==Et.LTR;for(let u=0,c=0;c<this.children.length;c++){let f=this.children[c],d=u+f.length;if(d>i)break;if(u>=r){let h=f.dom.getBoundingClientRect();if(n.push(h.height),o){let p=f.dom.lastChild,m=p?cl(p):[];if(m.length){let g=m[m.length-1],y=l?g.right-h.left:h.right-g.left;y>a&&(a=y,this.minWidth=s,this.minWidthFrom=u,this.minWidthTo=d);}}}u=d+f.breakAfter;}return n}textDirectionAt(e){let{i:n}=this.childPos(e,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?Et.RTL:Et.LTR}measureTextSize(){for(let s of this.children)if(s instanceof jt){let o=s.measureTextSize();if(o)return o}let e=document.createElement("div"),n,r,i;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let s=cl(e.firstChild)[0];n=e.getBoundingClientRect().height,r=s?s.width/27:7,i=s?s.height:n,e.remove();}),{lineHeight:n,charWidth:r,textHeight:i}}childCursor(e=this.length){let n=this.children.length;return n&&(e-=this.children[--n].length),new pF(this.children,e,n)}computeBlockGapDeco(){let e=[],n=this.view.viewState;for(let r=0,i=0;;i++){let s=i==n.viewports.length?null:n.viewports[i],o=s?s.from-1:this.length;if(o>r){let a=(n.lineBlockAt(o).bottom-n.lineBlockAt(r).top)/this.view.scaleY;e.push(De.replace({widget:new Gm(a),block:true,inclusive:true,isBlockGap:true}).range(r,o));}if(!s)break;r=s.to+1;}return De.set(e)}updateDeco(){let e=1,n=this.view.state.facet(Gu).map(s=>(this.dynamicDecorationMap[e++]=typeof s=="function")?s(this.view):s),r=false,i=this.view.state.facet(_F).map((s,o)=>{let a=typeof s=="function";return a&&(r=true),a?s(this.view):s});for(i.length&&(this.dynamicDecorationMap[e++]=r,n.push(et.join(i))),this.decorations=[this.editContextFormatting,...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=false;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let u=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=u.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let u of this.view.state.facet(IF))try{if(u(this.view,e.range,e))return !0}catch(c){Wn(this.view.state,c,"scroll handler");}let{range:n}=e,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1),i;if(!r)return;!n.empty&&(i=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let s=ey(this.view),o={left:r.left-s.left,top:r.top-s.top,right:r.right+s.right,bottom:r.bottom+s.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;V7(this.view.scrollDOM,o,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,a),-a),Math.max(Math.min(e.yMargin,l),-l),this.view.textDirection==Et.LTR);}}function u5(t){return t.node.nodeType==1&&t.node.firstChild&&(t.offset==0||t.node.childNodes[t.offset-1].contentEditable=="false")&&(t.offset==t.node.childNodes.length||t.node.childNodes[t.offset].contentEditable=="false")}function qF(t,e){let n=t.observer.selectionRange;if(!n.focusNode)return null;let r=dF(n.focusNode,n.focusOffset),i=hF(n.focusNode,n.focusOffset),s=r||i;if(i&&r&&i.node!=r.node){let a=yt.get(i.node);if(!a||a instanceof Xr&&a.text!=i.node.nodeValue)s=i;else if(t.docView.lastCompositionAfterCursor){let l=yt.get(r.node);!l||l instanceof Xr&&l.text!=r.node.nodeValue||(s=i);}}if(t.docView.lastCompositionAfterCursor=s!=r,!s)return null;let o=e-s.offset;return {from:o,to:o+s.node.nodeValue.length,node:s.node}}function c5(t,e,n){let r=qF(t,n);if(!r)return null;let{node:i,from:s,to:o}=r,a=i.nodeValue;if(/[\n\r]/.test(a)||t.state.doc.sliceString(r.from,r.to)!=a)return null;let l=e.invertedDesc,u=new Cr(l.mapPos(s),l.mapPos(o),s,o),c=[];for(let f=i.parentNode;;f=f.parentNode){let d=yt.get(f);if(d instanceof ts)c.push({node:f,deco:d.mark});else {if(d instanceof jt||f.nodeName=="DIV"&&f.parentNode==t.contentDOM)return {range:u,text:i,marks:c,line:f};if(f!=t.contentDOM)c.push({node:f,deco:new Ac({inclusive:true,attributes:Y7(f),tagName:f.tagName.toLowerCase()})});else return null}}}function f5(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e<t.childNodes.length&&t.childNodes[e].contentEditable=="false"?2:0)}let d5=class{constructor(){this.changes=[];}compareRange(e,n){Jf(e,n,this.changes);}comparePoint(e,n){Jf(e,n,this.changes);}boundChange(e){Jf(e,e,this.changes);}};function h5(t,e,n){let r=new d5;return et.compare(t,e,n,r),r.changes}function p5(t,e){for(let n=t;n&&n!=e;n=n.assignedSlot||n.parentNode)if(n.nodeType==1&&n.contentEditable=="false")return  true;return  false}function m5(t,e){let n=false;return e&&t.iterChangedRanges((r,i)=>{r<e.to&&i>e.from&&(n=true);}),n}function g5(t,e,n=1){let r=t.charCategorizer(e),i=t.doc.lineAt(e),s=e-i.from;if(i.length==0)return J.cursor(e);s==0?n=1:s==i.length&&(n=-1);let o=s,a=s;n<0?o=nn(i.text,s,false):a=nn(i.text,s);let l=r(i.text.slice(o,a));for(;o>0;){let u=nn(i.text,o,false);if(r(i.text.slice(u,o))!=l)break;o=u;}for(;a<i.length;){let u=nn(i.text,a);if(r(i.text.slice(a,u))!=l)break;a=u;}return J.range(o+i.from,a+i.from)}function y5(t,e){return e.left>t?e.left-t:Math.max(0,t-e.right)}function v5(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function fp(t,e){return t.top<e.bottom-1&&t.bottom>e.top+1}function Mb(t,e){return e<t.top?{top:e,left:t.left,right:t.right,bottom:t.bottom}:t}function Pb(t,e){return e>t.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function eg(t,e,n){let r,i,s,o,a=false,l,u,c,f;for(let p=t.firstChild;p;p=p.nextSibling){let m=cl(p);for(let g=0;g<m.length;g++){let y=m[g];i&&fp(i,y)&&(y=Mb(Pb(y,i.bottom),i.top));let F=y5(e,y),x=v5(n,y);if(F==0&&x==0)return p.nodeType==3?Nb(p,e,n):eg(p,e,n);if(!r||o>x||o==x&&s>F){r=p,i=y,s=F,o=x;let b=x?n<y.top?-1:1:F?e<y.left?-1:1:0;a=!b||(b>0?g<m.length-1:g>0);}F==0?n>y.bottom&&(!c||c.bottom<y.bottom)?(l=p,c=y):n<y.top&&(!f||f.top>y.top)&&(u=p,f=y):c&&fp(c,y)?c=Pb(c,y.bottom):f&&fp(f,y)&&(f=Mb(f,y.top));}}if(c&&c.bottom>=n?(r=l,i=c):f&&f.top<=n&&(r=u,i=f),!r)return {node:t,offset:0};let d=Math.max(i.left,Math.min(i.right,e));if(r.nodeType==3)return Nb(r,d,n);if(a&&r.contentEditable!="false")return eg(r,d,n);let h=Array.prototype.indexOf.call(t.childNodes,r)+(e>=(i.left+i.right)/2?1:0);return {node:t,offset:h}}function Nb(t,e,n){let r=t.nodeValue.length,i=-1,s=1e9,o=0;for(let a=0;a<r;a++){let l=Go(t,a,a+1).getClientRects();for(let u=0;u<l.length;u++){let c=l[u];if(c.top==c.bottom)continue;o||(o=e-c.left);let f=(c.top>n?c.top-n:n-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&f<s){let d=e>=(c.left+c.right)/2,h=d;if((he.chrome||he.gecko)&&Go(t,a).getBoundingClientRect().left==c.right&&(h=!d),f<=0)return {node:t,offset:a+(h?1:0)};i=a+(h?1:0),s=f;}}}return {node:t,offset:i>-1?i:o>0?t.nodeValue.length:0}}function WF(t,e,n,r=-1){var i,s;let o=t.contentDOM.getBoundingClientRect(),a=o.top+t.viewState.paddingTop,l,{docHeight:u}=t.viewState,{x:c,y:f}=e,d=f-a;if(d<0)return 0;if(d>u)return t.state.doc.length;for(let b=t.viewState.heightOracle.textHeight/2,D=false;l=t.elementAtHeight(d),l.type!=Tn.Text;)for(;d=r>0?l.bottom+b:l.top-b,!(d>=0&&d<=u);){if(D)return n?null:0;D=true,r=-r;}f=a+d;let h=l.from;if(h<t.viewport.from)return t.viewport.from==0?0:n?null:Ib(t,o,l,c,f);if(h>t.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:Ib(t,o,l,c,f);let p=t.dom.ownerDocument,m=t.root.elementFromPoint?t.root:p,g=m.elementFromPoint(c,f);g&&!t.contentDOM.contains(g)&&(g=null),g||(c=Math.max(o.left+1,Math.min(o.right-1,c)),g=m.elementFromPoint(c,f),g&&!t.contentDOM.contains(g)&&(g=null));let y,F=-1;if(g&&((i=t.docView.nearest(g))===null||i===void 0?void 0:i.isEditable)!=false){if(p.caretPositionFromPoint){let b=p.caretPositionFromPoint(c,f);b&&({offsetNode:y,offset:F}=b);}else if(p.caretRangeFromPoint){let b=p.caretRangeFromPoint(c,f);b&&({startContainer:y,startOffset:F}=b,(!t.contentDOM.contains(y)||he.safari&&D5(y,F,c)||he.chrome&&b5(y,F,c))&&(y=void 0));}y&&(F=Math.min(Bi(y),F));}if(!y||!t.docView.dom.contains(y)){let b=jt.find(t.docView,h);if(!b)return d>l.top+l.height/2?l.to:l.from;({node:y,offset:F}=eg(b.dom,c,f));}let x=t.docView.nearest(y);if(!x)return null;if(x.isWidget&&((s=x.dom)===null||s===void 0?void 0:s.nodeType)==1){let b=x.dom.getBoundingClientRect();return e.y<b.top||e.y<=b.bottom&&e.x<=(b.left+b.right)/2?x.posAtStart:x.posAtEnd}else return x.localPosFromDOM(y,F)+x.posAtStart}function Ib(t,e,n,r,i){let s=Math.round((r-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&n.height>t.defaultLineHeight*1.5){let a=t.viewState.heightOracle.textHeight,l=Math.floor((i-n.top-(t.defaultLineHeight-a)*.5)/a);s+=l*t.viewState.heightOracle.lineLength;}let o=t.state.sliceDoc(n.from,n.to);return n.from+jm(o,s,t.state.tabSize)}function D5(t,e,n){let r;if(t.nodeType!=3||e!=(r=t.nodeValue.length))return  false;for(let i=t.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return  false;return Go(t,r-1,r).getBoundingClientRect().left>n}function b5(t,e,n){if(e!=0)return  false;for(let i=t;;){let s=i.parentNode;if(!s||s.nodeType!=1||s.firstChild!=i)return  false;if(s.classList.contains("cm-line"))break;i=s;}let r=t.nodeType==1?t.getBoundingClientRect():Go(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function tg(t,e,n){let r=t.lineBlockAt(e);if(Array.isArray(r.type)){let i;for(let s of r.type){if(s.from>e)break;if(!(s.to<e)){if(s.from<e&&s.to>e)return s;(!i||s.type==Tn.Text&&(i.type!=s.type||(n<0?s.from<e:s.to>e)))&&(i=s);}}return i||r}return r}function C5(t,e,n,r){let i=tg(t,e.head,e.assoc||-1),s=!r||i.type!=Tn.Text||!(t.lineWrapping||i.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>i.from?e.head-1:e.head);if(s){let o=t.dom.getBoundingClientRect(),a=t.textDirectionAt(i.from),l=t.posAtCoords({x:n==(a==Et.LTR)?o.right-1:o.left+1,y:(s.top+s.bottom)/2});if(l!=null)return J.cursor(l,n?-1:1)}return J.cursor(n?i.to:i.from,n?-1:1)}function Lb(t,e,n,r){let i=t.state.doc.lineAt(e.head),s=t.bidiSpans(i),o=t.textDirectionAt(i.from);for(let a=e,l=null;;){let u=o5(i,s,o,a,n),c=AF;if(!u){if(i.number==(n?t.state.doc.lines:1))return a;c=`
`,i=t.state.doc.line(i.number+(n?1:-1)),s=t.bidiSpans(i),u=t.visualLineSide(i,!n);}if(l){if(!l(c))return a}else {if(!r)return u;l=r(c);}a=u;}}function x5(t,e,n){let r=t.state.charCategorizer(e),i=r(n);return s=>{let o=r(s);return i==Tt.Space&&(i=o),i==o}}function E5(t,e,n,r){let i=e.head,s=n?1:-1;if(i==(n?t.state.doc.length:0))return J.cursor(i,e.assoc);let o=e.goalColumn,a,l=t.contentDOM.getBoundingClientRect(),u=t.coordsAtPos(i,e.assoc||-1),c=t.documentTop;if(u)o==null&&(o=u.left-l.left),a=s<0?u.top:u.bottom;else {let h=t.viewState.lineBlockAt(i);o==null&&(o=Math.min(l.right-l.left,t.defaultCharacterWidth*(i-h.from))),a=(s<0?h.top:h.bottom)+c;}let f=l.left+o,d=r??t.viewState.heightOracle.textHeight>>1;for(let h=0;;h+=10){let p=a+(d+h)*s,m=WF(t,{x:f,y:p},false,s);if(p<l.top||p>l.bottom||(s<0?m<i:m>i)){let g=t.docView.coordsForChar(m),y=!g||p<g.top?-1:1;return J.cursor(m,y,void 0,o)}}}function Gf(t,e,n){for(;;){let r=0;for(let i of t)i.between(e-1,e+1,(s,o,a)=>{if(e>s&&e<o){let l=r||n||(e-s<o-e?-1:1);e=l<0?s:o,r=l;}});if(!r)return e}}function dp(t,e,n){let r=Gf(t.state.facet(Z0).map(i=>i(t)),n.from,e.head>n.from?-1:1);return r==n.from?n:J.cursor(r,r<n.from?1:-1)}const ou="￿";class F5{constructor(e,n){this.points=e,this.text="",this.lineSeparator=n.facet(Ve.lineSeparator);}append(e){this.text+=e;}lineBreak(){this.text+=ou;}readRange(e,n){if(!e)return this;let r=e.parentNode;for(let i=e;;){this.findPointBefore(r,i);let s=this.text.length;this.readNode(i);let o=i.nextSibling;if(o==n)break;let a=yt.get(i),l=yt.get(o);(a&&l?a.breakAfter:(a?a.breakAfter:xd(i))||xd(o)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>s)&&this.lineBreak(),i=o;}return this.findPointBefore(r,n),this}readTextNode(e){let n=e.nodeValue;for(let r of this.points)r.node==e&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let s=-1,o=1,a;if(this.lineSeparator?(s=n.indexOf(this.lineSeparator,r),o=this.lineSeparator.length):(a=i.exec(n))&&(s=a.index,o=a[0].length),this.append(n.slice(r,s<0?n.length:s)),s<0)break;if(this.lineBreak(),o>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=o-1);r=s+o;}}readNode(e){if(e.cmIgnore)return;let n=yt.get(e),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(e,r.length);for(let i=r.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value);}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null);}findPointBefore(e,n){for(let r of this.points)r.node==e&&e.childNodes[r.offset]==n&&(r.pos=this.text.length);}findPointInside(e,n){for(let r of this.points)(e.nodeType==3?r.node==e:e.contains(r.node))&&(r.pos=this.text.length+(w5(e,r.node,r.offset)?n:0));}}function w5(t,e,n){for(;;){if(!e||n<Bi(e))return  false;if(e==t)return  true;n=Jo(e)+1,e=e.parentNode;}}class Rb{constructor(e,n){this.node=e,this.offset=n,this.pos=-1;}}class S5{constructor(e,n,r,i){this.typeOver=i,this.bounds=null,this.text="",this.domChanged=n>-1;let{impreciseHead:s,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=e.docView.domBoundsAround(n,r,0))){let a=s||o?[]:k5(e),l=new F5(a,e.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=B5(a,this.bounds.from);}else {let a=e.observer.selectionRange,l=s&&s.node==a.focusNode&&s.offset==a.focusOffset||!Wm(e.contentDOM,a.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),u=o&&o.node==a.anchorNode&&o.offset==a.anchorOffset||!Wm(e.contentDOM,a.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),c=e.viewport;if((he.ios||he.chrome)&&e.state.selection.main.empty&&l!=u&&(c.from>0||c.to<e.state.doc.length)){let f=Math.min(l,u),d=Math.max(l,u),h=c.from-f,p=c.to-d;(h==0||h==1||f==0)&&(p==0||p==-1||d==e.state.doc.length)&&(l=0,u=e.state.doc.length);}this.newSel=J.single(u,l);}}}function HF(t,e){let n,{newSel:r}=e,i=t.state.selection.main,s=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:a}=e.bounds,l=i.from,u=null;(s===8||he.android&&e.text.length<a-o)&&(l=i.to,u="end");let c=T5(t.state.doc.sliceString(o,a,ou),e.text,l-o,u);c&&(he.chrome&&s==13&&c.toB==c.from+2&&e.text.slice(c.from,c.toB)==ou+ou&&c.toB--,n={from:o+c.from,to:o+c.toA,insert:Qe.of(e.text.slice(c.from,c.toB).split(ou))});}else r&&(!t.hasFocus&&t.state.facet(Ki)||r.main.eq(i))&&(r=null);if(!n&&!r)return  false;if(!n&&e.typeOver&&!i.empty&&r&&r.main.empty?n={from:i.from,to:i.to,insert:t.state.doc.slice(i.from,i.to)}:(he.mac||he.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=J.single(r.main.anchor-1,r.main.head-1)),n={from:n.from,to:n.to,insert:Qe.of([n.insert.toString().replace("."," ")])}):n&&n.from>=i.from&&n.to<=i.to&&(n.from!=i.from||n.to!=i.to)&&i.to-i.from-(n.to-n.from)<=4?n={from:i.from,to:i.to,insert:t.state.doc.slice(i.from,n.from).append(n.insert).append(t.state.doc.slice(n.to,i.to))}:he.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==`
 `&&t.lineWrapping&&(r&&(r=J.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:Qe.of([" "])}),n)return ty(t,n,r,s);if(r&&!r.main.eq(i)){let o=false,a="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(o=true),a=t.inputState.lastSelectionOrigin),t.dispatch({selection:r,scrollIntoView:o,userEvent:a}),true}else return  false}function ty(t,e,n,r=-1){if(he.ios&&t.inputState.flushIOSKey(e))return  true;let i=t.state.selection.main;if(he.android&&(e.to==i.to&&(e.from==i.from||e.from==i.from-1&&t.state.sliceDoc(e.from,i.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&Ua(t.contentDOM,"Enter",13)||(e.from==i.from-1&&e.to==i.to&&e.insert.length==0||r==8&&e.insert.length<e.to-e.from&&e.to>i.head)&&Ua(t.contentDOM,"Backspace",8)||e.from==i.from&&e.to==i.to+1&&e.insert.length==0&&Ua(t.contentDOM,"Delete",46)))return  true;let s=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let o,a=()=>o||(o=A5(t,e,n));return t.state.facet($F).some(l=>l(t,e.from,e.to,s,a))||t.dispatch(a()),true}function A5(t,e,n){let r,i=t.state,s=i.selection.main;if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let a=s.from<e.from?i.sliceDoc(s.from,e.from):"",l=s.to>e.to?i.sliceDoc(e.to,s.to):"";r=i.replaceSelection(t.state.toText(a+e.insert.sliceString(0,void 0,t.state.lineBreak)+l));}else {let a=i.changes(e),l=n&&n.main.to<=a.newLength?n.main:void 0;if(i.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=s.to&&e.to>=s.to-10){let u=t.state.sliceDoc(e.from,e.to),c,f=n&&qF(t,n.main.head);if(f){let p=e.insert.length-(e.to-e.from);c={from:f.from,to:f.to-p};}else c=t.state.doc.lineAt(s.head);let d=s.to-e.to,h=s.to-s.from;r=i.changeByRange(p=>{if(p.from==s.from&&p.to==s.to)return {changes:a,range:l||p.map(a)};let m=p.to-d,g=m-u.length;if(p.to-p.from!=h||t.state.sliceDoc(g,m)!=u||p.to>=c.from&&p.from<=c.to)return {range:p};let y=i.changes({from:g,to:m,insert:e.insert}),F=p.to-s.to;return {changes:y,range:l?J.range(Math.max(0,l.anchor+F),Math.max(0,l.head+F)):p.map(y)}});}else r={changes:a,selection:l&&i.selection.replaceRange(l)};}let o="input.type";return (t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=false,o+=".compose",t.inputState.compositionFirstChange&&(o+=".start",t.inputState.compositionFirstChange=false)),i.update(r,{userEvent:o,scrollIntoView:true})}function T5(t,e,n,r){let i=Math.min(t.length,e.length),s=0;for(;s<i&&t.charCodeAt(s)==e.charCodeAt(s);)s++;if(s==i&&t.length==e.length)return null;let o=t.length,a=e.length;for(;o>0&&a>0&&t.charCodeAt(o-1)==e.charCodeAt(a-1);)o--,a--;if(r=="end"){let l=Math.max(0,s-Math.min(o,a));n-=o+l-s;}if(o<s&&t.length<e.length){let l=n<=s&&n>=o?s-n:0;s-=l,a=s+(a-o),o=s;}else if(a<s){let l=n<=s&&n>=a?s-n:0;s-=l,o=s+(o-a),a=s;}return {from:s,toA:o,toB:a}}function k5(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:s}=t.observer.selectionRange;return n&&(e.push(new Rb(n,r)),(i!=n||s!=r)&&e.push(new Rb(i,s))),e}function B5(t,e){if(t.length==0)return null;let n=t[0].pos,r=t.length==2?t[1].pos:n;return n>-1&&r>-1?J.single(n+e,r+e):null}class O5{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now();}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=false,this.compositionPendingChange=false,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,he.safari&&e.contentDOM.addEventListener("input",()=>null),he.gecko&&U5(e.contentDOM.ownerDocument);}handleEvent(e){!_5(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e));}runHandlers(e,n){let r=this.handlers[e];if(r){for(let i of r.observers)i(this.view,n);for(let i of r.handlers){if(n.defaultPrevented)break;if(i(this.view,n)){n.preventDefault();break}}}}ensureHandlers(e){let n=$5(e),r=this.handlers,i=this.view.contentDOM;for(let s in n)if(s!="scroll"){let o=!n[s].handlers.length,a=r[s];a&&o!=!a.handlers.length&&(i.removeEventListener(s,this.handleEvent),a=null),a||i.addEventListener(s,this.handleEvent,{passive:o});}for(let s in r)s!="scroll"&&!n[s]&&i.removeEventListener(s,this.handleEvent);this.handlers=n;}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return  true;if(this.tabFocusMode>0&&e.keyCode!=27&&KF.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),he.android&&he.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),true;let n;return he.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((n=zF.find(r=>r.keyCode==e.keyCode))&&!e.ctrlKey||M5.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=n||e,setTimeout(()=>this.flushIOSKey(),250),true):(e.keyCode!=229&&this.view.observer.forceFlush(),false)}flushIOSKey(e){let n=this.pendingIOSKey;return !n||n.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?false:(this.pendingIOSKey=void 0,Ua(this.view.contentDOM,n.key,n.keyCode,n instanceof KeyboardEvent?n:void 0))}ignoreDuringComposition(e){return /^key/.test(e.type)?this.composing>0?true:he.safari&&!he.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=false,true):false:false}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e;}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0);}destroy(){this.mouseSelection&&this.mouseSelection.destroy();}}function _b(t,e){return (n,r)=>{try{return e.call(t,r,n)}catch(i){Wn(n.state,i);}}}function $5(t){let e=Object.create(null);function n(r){return e[r]||(e[r]={observers:[],handlers:[]})}for(let r of t){let i=r.spec;if(i&&i.domEventHandlers)for(let s in i.domEventHandlers){let o=i.domEventHandlers[s];o&&n(s).handlers.push(_b(r.value,o));}if(i&&i.domEventObservers)for(let s in i.domEventObservers){let o=i.domEventObservers[s];o&&n(s).observers.push(_b(r.value,o));}}for(let r in Yr)n(r).handlers.push(Yr[r]);for(let r in wr)n(r).observers.push(wr[r]);return e}const zF=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],M5="dthko",KF=[16,17,18,20,91,92,224,225],uf=6;function cf(t){return Math.max(0,t)*.7+8}function P5(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class N5{constructor(e,n,r,i){this.view=e,this.startEvent=n,this.style=r,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParents=q7(e.contentDOM),this.atoms=e.state.facet(Z0).map(o=>o(e));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=e.state.facet(Ve.allowMultipleSelections)&&I5(e,n),this.dragging=R5(e,n)&&GF(n)==1?null:false;}start(e){this.dragging===false&&this.select(e);}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&P5(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let n=0,r=0,i=0,s=0,o=this.view.win.innerWidth,a=this.view.win.innerHeight;this.scrollParents.x&&({left:i,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:s,bottom:a}=this.scrollParents.y.getBoundingClientRect());let l=ey(this.view);e.clientX-l.left<=i+uf?n=-cf(i-e.clientX):e.clientX+l.right>=o-uf&&(n=cf(e.clientX-o)),e.clientY-l.top<=s+uf?r=-cf(s-e.clientY):e.clientY+l.bottom>=a-uf&&(r=cf(e.clientY-a)),this.setScrollSpeed(n,r);}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy();}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null;}setScrollSpeed(e,n){this.scrollSpeed={x:e,y:n},e||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1);}scroll(){let{x:e,y:n}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),n&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=n,n=0),(e||n)&&this.view.win.scrollBy(e,n),this.dragging===false&&this.select(this.lastEvent);}skipAtoms(e){let n=null;for(let r=0;r<e.ranges.length;r++){let i=e.ranges[r],s=null;if(i.empty){let o=Gf(this.atoms,i.from,0);o!=i.from&&(s=J.cursor(o,-1));}else {let o=Gf(this.atoms,i.from,-1),a=Gf(this.atoms,i.to,1);(o!=i.from||a!=i.to)&&(s=J.range(i.from==i.anchor?o:a,i.from==i.head?o:a));}s&&(n||(n=e.ranges.slice()),n[r]=s);}return n?J.create(n,e.mainIndex):e}select(e){let{view:n}=this,r=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!r.eq(n.state.selection,this.dragging===false))&&this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=false;}update(e){e.transactions.some(n=>n.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20);}}function I5(t,e){let n=t.state.facet(TF);return n.length?n[0](e):he.mac?e.metaKey:e.ctrlKey}function L5(t,e){let n=t.state.facet(kF);return n.length?n[0](e):he.mac?!e.altKey:!e.ctrlKey}function R5(t,e){let{main:n}=t.state.selection;if(n.empty)return  false;let r=Ju(t.root);if(!r||r.rangeCount==0)return  true;let i=r.getRangeAt(0).getClientRects();for(let s=0;s<i.length;s++){let o=i[s];if(o.left<=e.clientX&&o.right>=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return  true}return  false}function _5(t,e){if(!e.bubbles)return  true;if(e.defaultPrevented)return  false;for(let n=e.target,r;n!=t.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=yt.get(n))&&r.ignoreEvent(e))return  false;return  true}const Yr=Object.create(null),wr=Object.create(null),UF=he.ie&&he.ie_version<15||he.ios&&he.webkit_version<604;function j5(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{t.focus(),n.remove(),JF(t,n.value);},50);}function gh(t,e,n){for(let r of t.facet(e))n=r(n,t);return n}function JF(t,e){e=gh(t.state,X0,e);let{state:n}=t,r,i=1,s=n.toText(e),o=s.lines==n.selection.ranges.length;if(ng!=null&&n.selection.ranges.every(l=>l.empty)&&ng==s.toString()){let l=-1;r=n.changeByRange(u=>{let c=n.doc.lineAt(u.from);if(c.from==l)return {range:u};l=c.from;let f=n.toText((o?s.line(i++).text:e)+n.lineBreak);return {changes:{from:c.from,insert:f},range:J.cursor(u.from+f.length)}});}else o?r=n.changeByRange(l=>{let u=s.line(i++);return {changes:{from:l.from,to:l.to,insert:u.text},range:J.cursor(l.from+u.length)}}):r=n.replaceSelection(s);t.dispatch(r,{userEvent:"input.paste",scrollIntoView:true});}wr.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft;};Yr.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&t.inputState.tabFocusMode!=0&&(t.inputState.tabFocusMode=Date.now()+2e3),false);wr.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer");};wr.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer");};Yr.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return  false;let n=null;for(let r of t.state.facet(BF))if(n=r(t,e),n)break;if(!n&&e.button==0&&(n=W5(t,e)),n){let r=!t.hasFocus;t.inputState.startMouseSelection(new N5(t,e,n,r)),r&&t.observer.ignore(()=>{uF(t.contentDOM);let s=t.root.activeElement;s&&!s.contains(t.contentDOM)&&s.blur();});let i=t.inputState.mouseSelection;if(i)return i.start(e),i.dragging===false}return  false};function jb(t,e,n,r){if(r==1)return J.cursor(e,n);if(r==2)return g5(t.state,e,n);{let i=jt.find(t.docView,e),s=t.state.doc.lineAt(i?i.posAtEnd:e),o=i?i.posAtStart:s.from,a=i?i.posAtEnd:s.to;return a<t.state.doc.length&&a==s.to&&a++,J.range(o,a)}}let Vb=(t,e,n)=>e>=n.top&&e<=n.bottom&&t>=n.left&&t<=n.right;function V5(t,e,n,r){let i=jt.find(t.docView,e);if(!i)return 1;let s=e-i.posAtStart;if(s==0)return 1;if(s==i.length)return  -1;let o=i.coordsAt(s,-1);if(o&&Vb(n,r,o))return  -1;let a=i.coordsAt(s,1);return a&&Vb(n,r,a)?1:o&&o.bottom>=r?-1:1}function qb(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},false);return {pos:n,bias:V5(t,n,e.clientX,e.clientY)}}const q5=he.ie&&he.ie_version<=11;let Wb=null,Hb=0,zb=0;function GF(t){if(!q5)return t.detail;let e=Wb,n=zb;return Wb=t,zb=Date.now(),Hb=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(Hb+1)%3:1}function W5(t,e){let n=qb(t,e),r=GF(e),i=t.state.selection;return {update(s){s.docChanged&&(n.pos=s.changes.mapPos(n.pos),i=i.map(s.changes));},get(s,o,a){let l=qb(t,s),u,c=jb(t,l.pos,l.bias,r);if(n.pos!=l.pos&&!o){let f=jb(t,n.pos,n.bias,r),d=Math.min(f.from,c.from),h=Math.max(f.to,c.to);c=d<c.from?J.range(d,h):J.range(h,d);}return o?i.replaceRange(i.main.extend(c.from,c.to)):a&&r==1&&i.ranges.length>1&&(u=H5(i,l.pos))?u:a?i.addRange(c):J.create([c])}}}function H5(t,e){for(let n=0;n<t.ranges.length;n++){let{from:r,to:i}=t.ranges[n];if(r<=e&&i>=e)return J.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}Yr.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let i=t.docView.nearest(e.target);if(i&&i.isWidget){let s=i.posAtStart,o=s+i.length;(s>=n.to||o<=n.from)&&(n=J.range(s,o));}}let{inputState:r}=t;return r.mouseSelection&&(r.mouseSelection.dragging=true),r.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",gh(t.state,Y0,t.state.sliceDoc(n.from,n.to))),e.dataTransfer.effectAllowed="copyMove"),false};Yr.dragend=t=>(t.inputState.draggedContent=null,false);function Kb(t,e,n,r){if(n=gh(t.state,X0,n),!n)return;let i=t.posAtCoords({x:e.clientX,y:e.clientY},false),{draggedContent:s}=t.inputState,o=r&&s&&L5(t,e)?{from:s.from,to:s.to}:null,a={from:i,insert:n},l=t.state.changes(o?[o,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:o?"move.drop":"input.drop"}),t.inputState.draggedContent=null;}Yr.drop=(t,e)=>{if(!e.dataTransfer)return  false;if(t.state.readOnly)return  true;let n=e.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,s=()=>{++i==n.length&&Kb(t,e,r.filter(o=>o!=null).join(t.state.lineBreak),false);};for(let o=0;o<n.length;o++){let a=new FileReader;a.onerror=s,a.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(r[o]=a.result),s();},a.readAsText(n[o]);}return  true}else {let r=e.dataTransfer.getData("Text");if(r)return Kb(t,e,r,true),true}return  false};Yr.paste=(t,e)=>{if(t.state.readOnly)return  true;t.observer.flush();let n=UF?null:e.clipboardData;return n?(JF(t,n.getData("text/plain")||n.getData("text/uri-list")),true):(j5(t),false)};function z5(t,e){let n=t.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=e,r.focus(),r.selectionEnd=e.length,r.selectionStart=0,setTimeout(()=>{r.remove(),t.focus();},50);}function K5(t){let e=[],n=[],r=false;for(let i of t.selection.ranges)i.empty||(e.push(t.sliceDoc(i.from,i.to)),n.push(i));if(!e.length){let i=-1;for(let{from:s}of t.selection.ranges){let o=t.doc.lineAt(s);o.number>i&&(e.push(o.text),n.push({from:o.from,to:Math.min(t.doc.length,o.to+1)})),i=o.number;}r=true;}return {text:gh(t,Y0,e.join(t.lineBreak)),ranges:n,linewise:r}}let ng=null;Yr.copy=Yr.cut=(t,e)=>{let{text:n,ranges:r,linewise:i}=K5(t.state);if(!n&&!i)return  false;ng=i?n:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:r,scrollIntoView:true,userEvent:"delete.cut"});let s=UF?null:e.clipboardData;return s?(s.clearData(),s.setData("text/plain",n),true):(z5(t,n),false)};const XF=hs.define();function YF(t,e){let n=[];for(let r of t.facet(MF)){let i=r(t,e);i&&n.push(i);}return n.length?t.update({effects:n,annotations:XF.of(true)}):null}function QF(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=YF(t.state,e);n?t.dispatch(n):t.update([]);}},10);}wr.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),QF(t);};wr.blur=t=>{t.observer.clearSelectionRange(),QF(t);};wr.compositionstart=wr.compositionupdate=t=>{t.observer.editContext||(t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=true),t.inputState.composing<0&&(t.inputState.composing=0));};wr.compositionend=t=>{t.observer.editContext||(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=true,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,he.chrome&&he.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([]);},50));};wr.contextmenu=t=>{t.inputState.lastContextMenu=Date.now();};Yr.beforeinput=(t,e)=>{var n,r;if(e.inputType=="insertReplacementText"&&t.observer.editContext){let s=(n=e.dataTransfer)===null||n===void 0?void 0:n.getData("text/plain"),o=e.getTargetRanges();if(s&&o.length){let a=o[0],l=t.posAtDOM(a.startContainer,a.startOffset),u=t.posAtDOM(a.endContainer,a.endOffset);return ty(t,{from:l,to:u,insert:t.state.toText(s)},null),true}}let i;if(he.chrome&&he.android&&(i=zF.find(s=>s.inputType==e.inputType))&&(t.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let s=((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>s+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus());},100);}return he.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),he.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>wr.compositionend(t,e),20),false};const Ub=new Set;function U5(t){Ub.has(t)||(Ub.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}));}const Jb=["pre-wrap","normal","pre-line","break-spaces"];let hl=false;function Gb(){hl=false;}class J5{constructor(e){this.lineWrapping=e,this.doc=Qe.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30;}heightForGap(e,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-e-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Jb.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let n=false;for(let r=0;r<e.length;r++){let i=e[r];i<0?r++:this.heightSamples[Math.floor(i*10)]||(n=true,this.heightSamples[Math.floor(i*10)]=true);}return n}refresh(e,n,r,i,s,o){let a=Jb.indexOf(e)>-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=n,this.charWidth=r,this.textHeight=i,this.lineLength=s,l){this.heightSamples={};for(let u=0;u<o.length;u++){let c=o[u];c<0?u++:this.heightSamples[Math.floor(c*10)]=true;}}return l}}class G5{constructor(e,n){this.from=e,this.heights=n,this.index=0;}get more(){return this.index<this.heights.length}}class yi{constructor(e,n,r,i,s){this.from=e,this.length=n,this.top=r,this.height=i,this._content=s;}get type(){return typeof this._content=="number"?Tn.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof eo?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new yi(this.from,this.length+e.length,this.top,this.height+e.height,n)}}var xt=function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t}(xt||(xt={}));const Xf=.001;class kn{constructor(e,n,r=2){this.length=e,this.height=n,this.flags=r;}get outdated(){return (this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3;}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>Xf&&(hl=true),this.height=e);}replace(e,n,r){return kn.of(r)}decomposeLeft(e,n){n.push(this);}decomposeRight(e,n){n.push(this);}applyChanges(e,n,r,i){let s=this,o=r.doc;for(let a=i.length-1;a>=0;a--){let{fromA:l,toA:u,fromB:c,toB:f}=i[a],d=s.lineAt(l,xt.ByPosNoHeight,r.setDoc(n),0,0),h=d.to>=u?d:s.lineAt(u,xt.ByPosNoHeight,r,0,0);for(f+=h.to-u,u=h.to;a>0&&d.from<=i[a-1].toA;)l=i[a-1].fromA,c=i[a-1].fromB,a--,l<d.from&&(d=s.lineAt(l,xt.ByPosNoHeight,r,0,0));c+=d.from-l,l=d.from;let p=ny.build(r.setDoc(o),e,c,f);s=wd(s,s.replace(l,u,p));}return s.updateHeight(r,0)}static empty(){return new sr(0,0)}static of(e){if(e.length==1)return e[0];let n=0,r=e.length,i=0,s=0;for(;;)if(n==r)if(i>s*2){let a=e[n-1];a.break?e.splice(--n,1,a.left,null,a.right):e.splice(--n,1,a.left,a.right),r+=1+a.break,i-=a.size;}else if(s>i*2){let a=e[r];a.break?e.splice(r,1,a.left,null,a.right):e.splice(r,1,a.left,a.right),r+=2+a.break,s-=a.size;}else break;else if(i<s){let a=e[n++];a&&(i+=a.size);}else {let a=e[--r];a&&(s+=a.size);}let o=0;return e[n-1]==null?(o=1,n--):e[n]==null&&(o=1,r++),new X5(kn.of(e.slice(0,n)),o,kn.of(e.slice(r)))}}function wd(t,e){return t==e?t:(t.constructor!=e.constructor&&(hl=true),e)}kn.prototype.size=1;class ZF extends kn{constructor(e,n,r){super(e,n),this.deco=r;}blockAt(e,n,r,i){return new yi(i,this.length,r,this.height,this.deco||0)}lineAt(e,n,r,i,s){return this.blockAt(0,r,i,s)}forEachLine(e,n,r,i,s,o){e<=s+this.length&&n>=s&&o(this.blockAt(0,r,i,s));}updateHeight(e,n=0,r=false,i){return i&&i.from<=n&&i.more&&this.setHeight(i.heights[i.index++]),this.outdated=false,this}toString(){return `block(${this.length})`}}class sr extends ZF{constructor(e,n){super(e,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0;}blockAt(e,n,r,i){return new yi(i,this.length,r,this.height,this.breaks)}replace(e,n,r){let i=r[0];return r.length==1&&(i instanceof sr||i instanceof Zt&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Zt?i=new sr(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=false),i):kn.of(r)}updateHeight(e,n=0,r=false,i){return i&&i.from<=n&&i.more?this.setHeight(i.heights[i.index++]):(r||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=false,this}toString(){return `line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Zt extends kn{constructor(e){super(e,0);}heightMetrics(e,n){let r=e.doc.lineAt(n).number,i=e.doc.lineAt(n+this.length).number,s=i-r+1,o,a=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*s);o=l/s,this.length>s+1&&(a=(this.height-l)/(this.length-s-1));}else o=this.height/s;return {firstLine:r,lastLine:i,perLine:o,perChar:a}}blockAt(e,n,r,i){let{firstLine:s,lastLine:o,perLine:a,perChar:l}=this.heightMetrics(n,i);if(n.lineWrapping){let u=i+(e<n.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-r)/this.height))*this.length)),c=n.doc.lineAt(u),f=a+c.length*l,d=Math.max(r,e-f/2);return new yi(c.from,c.length,d,f,0)}else {let u=Math.max(0,Math.min(o-s,Math.floor((e-r)/a))),{from:c,length:f}=n.doc.line(s+u);return new yi(c,f,r+a*u,a,0)}}lineAt(e,n,r,i,s){if(n==xt.ByHeight)return this.blockAt(e,r,i,s);if(n==xt.ByPosNoHeight){let{from:h,to:p}=r.doc.lineAt(e);return new yi(h,p-h,0,0,0)}let{firstLine:o,perLine:a,perChar:l}=this.heightMetrics(r,s),u=r.doc.lineAt(e),c=a+u.length*l,f=u.number-o,d=i+a*f+l*(u.from-s-f);return new yi(u.from,u.length,Math.max(i,Math.min(d,i+this.height-c)),c,0)}forEachLine(e,n,r,i,s,o){e=Math.max(e,s),n=Math.min(n,s+this.length);let{firstLine:a,perLine:l,perChar:u}=this.heightMetrics(r,s);for(let c=e,f=i;c<=n;){let d=r.doc.lineAt(c);if(c==e){let p=d.number-a;f+=l*p+u*(e-s-p);}let h=l+u*d.length;o(new yi(d.from,d.length,f,h,0)),f+=h,c=d.to+1;}}replace(e,n,r){let i=this.length-n;if(i>0){let s=r[r.length-1];s instanceof Zt?r[r.length-1]=new Zt(s.length+i):r.push(null,new Zt(i-1));}if(e>0){let s=r[0];s instanceof Zt?r[0]=new Zt(e+s.length):r.unshift(new Zt(e-1),null);}return kn.of(r)}decomposeLeft(e,n){n.push(new Zt(e-1),null);}decomposeRight(e,n){n.push(null,new Zt(this.length-e-1));}updateHeight(e,n=0,r=false,i){let s=n+this.length;if(i&&i.from<=n+this.length&&i.more){let o=[],a=Math.max(n,i.from),l=-1;for(i.from>n&&o.push(new Zt(i.from-n-1).updateHeight(e,n));a<=s&&i.more;){let c=e.doc.lineAt(a).length;o.length&&o.push(null);let f=i.heights[i.index++];l==-1?l=f:Math.abs(f-l)>=Xf&&(l=-2);let d=new sr(c,f);d.outdated=false,o.push(d),a+=c+1;}a<=s&&o.push(null,new Zt(s-a).updateHeight(e,a));let u=kn.of(o);return (l<0||Math.abs(u.height-this.height)>=Xf||Math.abs(l-this.heightMetrics(e,n).perLine)>=Xf)&&(hl=true),wd(this,u)}else (r||this.outdated)&&(this.setHeight(e.heightForGap(n,n+this.length)),this.outdated=false);return this}toString(){return `gap(${this.length})`}}class X5 extends kn{constructor(e,n,r){super(e.length+n+r.length,e.height+r.height,n|(e.outdated||r.outdated?2:0)),this.left=e,this.right=r,this.size=e.size+r.size;}get break(){return this.flags&1}blockAt(e,n,r,i){let s=r+this.left.height;return e<s?this.left.blockAt(e,n,r,i):this.right.blockAt(e,n,s,i+this.left.length+this.break)}lineAt(e,n,r,i,s){let o=i+this.left.height,a=s+this.left.length+this.break,l=n==xt.ByHeight?e<o:e<a,u=l?this.left.lineAt(e,n,r,i,s):this.right.lineAt(e,n,r,o,a);if(this.break||(l?u.to<a:u.from>a))return u;let c=n==xt.ByPosNoHeight?xt.ByPosNoHeight:xt.ByPos;return l?u.join(this.right.lineAt(a,c,r,o,a)):this.left.lineAt(a,c,r,i,s).join(u)}forEachLine(e,n,r,i,s,o){let a=i+this.left.height,l=s+this.left.length+this.break;if(this.break)e<l&&this.left.forEachLine(e,n,r,i,s,o),n>=l&&this.right.forEachLine(e,n,r,a,l,o);else {let u=this.lineAt(l,xt.ByPos,r,i,s);e<u.from&&this.left.forEachLine(e,u.from-1,r,i,s,o),u.to>=e&&u.from<=n&&o(u),n>u.to&&this.right.forEachLine(u.to+1,n,r,a,l,o);}}replace(e,n,r){let i=this.left.length+this.break;if(n<i)return this.balanced(this.left.replace(e,n,r),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-i,n-i,r));let s=[];e>0&&this.decomposeLeft(e,s);let o=s.length;for(let a of r)s.push(a);if(e>0&&Xb(s,o-1),n<this.length){let a=s.length;this.decomposeRight(n,s),Xb(s,a);}return kn.of(s)}decomposeLeft(e,n){let r=this.left.length;if(e<=r)return this.left.decomposeLeft(e,n);n.push(this.left),this.break&&(r++,e>=r&&n.push(null)),e>r&&this.right.decomposeLeft(e-r,n);}decomposeRight(e,n){let r=this.left.length,i=r+this.break;if(e>=i)return this.right.decomposeRight(e-i,n);e<r&&this.left.decomposeRight(e,n),this.break&&e<i&&n.push(null),n.push(this.right);}balanced(e,n){return e.size>2*n.size||n.size>2*e.size?kn.of(this.break?[e,null,n]:[e,n]):(this.left=wd(this.left,e),this.right=wd(this.right,n),this.setHeight(e.height+n.height),this.outdated=e.outdated||n.outdated,this.size=e.size+n.size,this.length=e.length+this.break+n.length,this)}updateHeight(e,n=0,r=false,i){let{left:s,right:o}=this,a=n+s.length+this.break,l=null;return i&&i.from<=n+s.length&&i.more?l=s=s.updateHeight(e,n,r,i):s.updateHeight(e,n,r),i&&i.from<=a+o.length&&i.more?l=o=o.updateHeight(e,a,r,i):o.updateHeight(e,a,r),l?this.balanced(s,o):(this.height=this.left.height+this.right.height,this.outdated=false,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Xb(t,e){let n,r;t[e]==null&&(n=t[e-1])instanceof Zt&&(r=t[e+1])instanceof Zt&&t.splice(e-1,3,new Zt(n.length+1+r.length));}const Y5=5;class ny{constructor(e,n){this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e;}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,n){if(this.lineStart>-1){let r=Math.min(n,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof sr?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new sr(r-this.pos,-1)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1);}this.pos=n;}point(e,n,r){if(e<n||r.heightRelevant){let i=r.widget?r.widget.estimatedHeight:0,s=r.widget?r.widget.lineBreaks:0;i<0&&(i=this.oracle.lineHeight);let o=n-e;r.block?this.addBlock(new ZF(o,i,r)):(o||s||i>=Y5)&&this.addLineDeco(i,s,o);}else n>e&&this.span(e,n);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to);}enterLine(){if(this.lineStart>-1)return;let{from:e,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=n,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new sr(this.pos-e,-1)),this.writtenTo=this.pos;}blankContent(e,n){let r=new Zt(n-e);return this.oracle.doc.lineAt(e).to==n&&(r.flags|=4),r}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof sr)return e;let n=new sr(0,-1);return this.nodes.push(n),n}addBlock(e){this.enterLine();let n=e.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n&&n.endSide>0&&(this.covering=e);}addLineDeco(e,n,r){let i=this.ensureLine();i.length+=r,i.collapsed+=r,i.widgetHeight=Math.max(i.widgetHeight,e),i.breaks+=n,this.writtenTo=this.pos=this.pos+r;}finish(e){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof sr)&&!this.isCovered?this.nodes.push(new sr(0,-1)):(this.writtenTo<this.pos||n==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let r=e;for(let i of this.nodes)i instanceof sr&&i.updateHeight(this.oracle,r),r+=i?i.length:1;return this.nodes}static build(e,n,r,i){let s=new ny(r,e);return et.spans(n,r,i,s,0),s.finish(r)}}function Q5(t,e,n){let r=new Z5;return et.compare(t,e,n,r,0),r.changes}class Z5{constructor(){this.changes=[];}compareRange(){}comparePoint(e,n,r,i){(e<n||r&&r.heightRelevant||i&&i.heightRelevant)&&Jf(e,n,this.changes,5);}}function e_(t,e){let n=t.getBoundingClientRect(),r=t.ownerDocument,i=r.defaultView||window,s=Math.max(0,n.left),o=Math.min(i.innerWidth,n.right),a=Math.max(0,n.top),l=Math.min(i.innerHeight,n.bottom);for(let u=t.parentNode;u&&u!=r.body;)if(u.nodeType==1){let c=u,f=window.getComputedStyle(c);if((c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth)&&f.overflow!="visible"){let d=c.getBoundingClientRect();s=Math.max(s,d.left),o=Math.min(o,d.right),a=Math.max(a,d.top),l=Math.min(u==t.parentNode?i.innerHeight:l,d.bottom);}u=f.position=="absolute"||f.position=="fixed"?c.offsetParent:c.parentNode;}else if(u.nodeType==11)u=u.host;else break;return {left:s-n.left,right:Math.max(s,o)-n.left,top:a-(n.top+e),bottom:Math.max(a,l)-(n.top+e)}}function t_(t){let e=t.getBoundingClientRect(),n=t.ownerDocument.defaultView||window;return e.left<n.innerWidth&&e.right>0&&e.top<n.innerHeight&&e.bottom>0}function n_(t,e){let n=t.getBoundingClientRect();return {left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}class hp{constructor(e,n,r,i){this.from=e,this.to=n,this.size=r,this.displaySize=i;}static same(e,n){if(e.length!=n.length)return  false;for(let r=0;r<e.length;r++){let i=e[r],s=n[r];if(i.from!=s.from||i.to!=s.to||i.size!=s.size)return  false}return  true}draw(e,n){return De.replace({widget:new r_(this.displaySize*(n?e.scaleY:e.scaleX),n)}).range(this.from,this.to)}}class r_ extends Pi{constructor(e,n){super(),this.size=e,this.vertical=n;}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class Yb{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=true,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=false,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=Qb,this.scrollTarget=null,this.printing=false,this.mustMeasureContent=true,this.defaultTextDirection=Et.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=false;let n=e.facet(Q0).some(r=>typeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new J5(n),this.stateDeco=e.facet(Gu).filter(r=>typeof r!="function"),this.heightMap=kn.empty().applyChanges(this.stateDeco,Qe.empty,this.heightOracle.setDoc(e.doc),[new Cr(0,0,0,e.doc.length)]);for(let r=0;r<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());r++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=De.set(this.lineGaps.map(r=>r.draw(this,false))),this.computeVisibleRanges();}updateForViewport(){let e=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let i=r?n.head:n.anchor;if(!e.some(({from:s,to:o})=>i>=s&&i<=o)){let{from:s,to:o}=this.lineBlockAt(i);e.push(new ff(s,o));}}return this.viewports=e.sort((r,i)=>r.from-i.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?Qb:new ry(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(au(e,this.scaler));});}update(e,n=null){this.state=e.state;let r=this.stateDeco;this.stateDeco=this.state.facet(Gu).filter(c=>typeof c!="function");let i=e.changedRanges,s=Cr.extendWithRanges(i,Q5(r,this.stateDeco,e?e.changes:Ht.empty(this.state.doc.length))),o=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);Gb(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),(this.heightMap.height!=o||hl)&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let l=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(n&&(n.range.head<l.from||n.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let u=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(u||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(NF)&&(this.mustEnforceCursorAssoc=true);}measure(e){let n=e.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,s=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?Et.RTL:Et.LTR;let o=this.heightOracle.mustRefreshForWrapping(s),a=n.getBoundingClientRect(),l=o||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=false;let u=0,c=0;if(a.width&&a.height){let{scaleX:b,scaleY:D}=lF(n,a);(b>.005&&Math.abs(this.scaleX-b)>.005||D>.005&&Math.abs(this.scaleY-D)>.005)&&(this.scaleX=b,this.scaleY=D,u|=16,o=l=true);}let f=(parseInt(r.paddingTop)||0)*this.scaleY,d=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=d)&&(this.paddingTop=f,this.paddingBottom=d,u|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(l=true),this.editorWidth=e.scrollDOM.clientWidth,u|=16);let h=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=h&&(this.scrollAnchorHeight=-1,this.scrollTop=h),this.scrolledToBottom=fF(e.scrollDOM);let p=(this.printing?n_:e_)(n,this.paddingTop),m=p.top-this.pixelViewport.top,g=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let y=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(y!=this.inView&&(this.inView=y,y&&(l=true)),!this.inView&&!this.scrollTarget&&!t_(e.dom))return 0;let F=a.width;if((this.contentDOMWidth!=F||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,u|=16),l){let b=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(b)&&(o=true),o||i.lineWrapping&&Math.abs(F-this.contentDOMWidth)>i.charWidth){let{lineHeight:D,charWidth:C,textHeight:E}=e.docView.measureTextSize();o=D>0&&i.refresh(s,D,C,E,F/C,b),o&&(e.docView.minWidth=0,u|=16);}m>0&&g>0?c=Math.max(m,g):m<0&&g<0&&(c=Math.min(m,g)),Gb();for(let D of this.viewports){let C=D.from==this.viewport.from?b:e.docView.measureVisibleLineHeights(D);this.heightMap=(o?kn.empty().applyChanges(this.stateDeco,Qe.empty,this.heightOracle,[new Cr(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,o,new G5(D.from,C));}hl&&(u|=2);}let x=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return x&&(u&2&&(u|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),u|=this.updateForViewport()),(u&2||x)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=false,e.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,n){let r=.5-Math.max(-0.5,Math.min(.5,e/1e3/2)),i=this.heightMap,s=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,l=new ff(i.lineAt(o-r*1e3,xt.ByHeight,s,0,0).from,i.lineAt(a+(1-r)*1e3,xt.ByHeight,s,0,0).to);if(n){let{head:u}=n.range;if(u<l.from||u>l.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=i.lineAt(u,xt.ByPos,s,0,0),d;n.y=="center"?d=(f.top+f.bottom)/2-c/2:n.y=="start"||n.y=="nearest"&&u<l.from?d=f.top:d=f.bottom-c,l=new ff(i.lineAt(d-1e3/2,xt.ByHeight,s,0,0).from,i.lineAt(d+c+1e3/2,xt.ByHeight,s,0,0).to);}}return l}mapViewport(e,n){let r=n.mapPos(e.from,-1),i=n.mapPos(e.to,1);return new ff(this.heightMap.lineAt(r,xt.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(i,xt.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:n},r=0){if(!this.inView)return  true;let{top:i}=this.heightMap.lineAt(e,xt.ByPos,this.heightOracle,0,0),{bottom:s}=this.heightMap.lineAt(n,xt.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:a}=this;return (e==0||i<=o-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||s>=a+Math.max(10,Math.min(r,250)))&&i>o-2*1e3&&s<a+2*1e3}mapLineGaps(e,n){if(!e.length||n.empty)return e;let r=[];for(let i of e)n.touchesRange(i.from,i.to)||r.push(new hp(n.mapPos(i.from),n.mapPos(i.to),i.size,i.displaySize));return r}ensureLineGaps(e,n){let r=this.heightOracle.lineWrapping,i=r?1e4:2e3,s=i>>1,o=i<<1;if(this.defaultTextDirection!=Et.LTR&&!r)return [];let a=[],l=(c,f,d,h)=>{if(f-c<s)return;let p=this.state.selection.main,m=[p.from];p.empty||m.push(p.to);for(let y of m)if(y>c&&y<f){l(c,y-10,d,h),l(y+10,f,d,h);return}let g=s_(e,y=>y.from>=d.from&&y.to<=d.to&&Math.abs(y.from-c)<s&&Math.abs(y.to-f)<s&&!m.some(F=>y.from<F&&y.to>F));if(!g){if(f<d.to&&n&&r&&n.visibleRanges.some(x=>x.from<=f&&x.to>=f)){let x=n.moveToLineBoundary(J.cursor(f),false,true).head;x>c&&(f=x);}let y=this.gapSize(d,c,f,h),F=r||y<2e6?y:2e6;g=new hp(c,f,y,F);}a.push(g);},u=c=>{if(c.length<o||c.type!=Tn.Text)return;let f=i_(c.from,c.to,this.stateDeco);if(f.total<o)return;let d=this.scrollTarget?this.scrollTarget.range.head:null,h,p;if(r){let m=i/this.heightOracle.lineLength*this.heightOracle.lineHeight,g,y;if(d!=null){let F=hf(f,d),x=((this.visibleBottom-this.visibleTop)/2+m)/c.height;g=F-x,y=F+x;}else g=(this.visibleTop-c.top-m)/c.height,y=(this.visibleBottom-c.top+m)/c.height;h=df(f,g),p=df(f,y);}else {let m=f.total*this.heightOracle.charWidth,g=i*this.heightOracle.charWidth,y=0;if(m>2e6)for(let C of e)C.from>=c.from&&C.from<c.to&&C.size!=C.displaySize&&C.from*this.heightOracle.charWidth+y<this.pixelViewport.left&&(y=C.size-C.displaySize);let F=this.pixelViewport.left+y,x=this.pixelViewport.right+y,b,D;if(d!=null){let C=hf(f,d),E=((x-F)/2+g)/m;b=C-E,D=C+E;}else b=(F-g)/m,D=(x+g)/m;h=df(f,b),p=df(f,D);}h>c.from&&l(c.from,h,c,f),p<c.to&&l(p,c.to,c,f);};for(let c of this.viewportLines)Array.isArray(c.type)?c.type.forEach(u):u(c);return a}gapSize(e,n,r,i){let s=hf(i,r)-hf(i,n);return this.heightOracle.lineWrapping?e.height*s:i.total*this.heightOracle.charWidth*s}updateLineGaps(e){hp.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=De.set(e.map(n=>n.draw(this,this.heightOracle.lineWrapping))));}computeVisibleRanges(e){let n=this.stateDeco;this.lineGaps.length&&(n=n.concat(this.lineGapDeco));let r=[];et.spans(n,this.viewport.from,this.viewport.to,{span(s,o){r.push({from:s,to:o});},point(){}},20);let i=0;if(r.length!=this.visibleRanges.length)i=12;else for(let s=0;s<r.length&&!(i&8);s++){let o=this.visibleRanges[s],a=r[s];(o.from!=a.from||o.to!=a.to)&&(i|=4,e&&e.mapPos(o.from,-1)==a.from&&e.mapPos(o.to,1)==a.to||(i|=8));}return this.visibleRanges=r,i}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(n=>n.from<=e&&n.to>=e)||au(this.heightMap.lineAt(e,xt.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(n=>n.top<=e&&n.bottom>=e)||au(this.heightMap.lineAt(this.scaler.fromDOM(e),xt.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let n=this.lineBlockAtHeight(e+8);return n.from>=this.viewport.from||this.viewportLines[0].top-e>200?n:this.viewportLines[0]}elementAtHeight(e){return au(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class ff{constructor(e,n){this.from=e,this.to=n;}}function i_(t,e,n){let r=[],i=t,s=0;return et.spans(n,t,e,{span(){},point(o,a){o>i&&(r.push({from:i,to:o}),s+=o-i),i=a;}},20),i<e&&(r.push({from:i,to:e}),s+=e-i),{total:s,ranges:r}}function df({total:t,ranges:e},n){if(n<=0)return e[0].from;if(n>=1)return e[e.length-1].to;let r=Math.floor(t*n);for(let i=0;;i++){let{from:s,to:o}=e[i],a=o-s;if(r<=a)return s+r;r-=a;}}function hf(t,e){let n=0;for(let{from:r,to:i}of t.ranges){if(e<=i){n+=e-r;break}n+=i-r;}return n/t.total}function s_(t,e){for(let n of t)if(e(n))return n}const Qb={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};class ry{constructor(e,n,r){let i=0,s=0,o=0;this.viewports=r.map(({from:a,to:l})=>{let u=n.lineAt(a,xt.ByPos,e,0,0).top,c=n.lineAt(l,xt.ByPos,e,0,0).bottom;return i+=c-u,{from:a,to:l,top:u,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let a of this.viewports)a.domTop=o+(a.top-s)*this.scale,o=a.domBottom=a.domTop+(a.bottom-a.top),s=a.bottom;}toDOM(e){for(let n=0,r=0,i=0;;n++){let s=n<this.viewports.length?this.viewports[n]:null;if(!s||e<s.top)return i+(e-r)*this.scale;if(e<=s.bottom)return s.domTop+(e-s.top);r=s.bottom,i=s.domBottom;}}fromDOM(e){for(let n=0,r=0,i=0;;n++){let s=n<this.viewports.length?this.viewports[n]:null;if(!s||e<s.domTop)return r+(e-i)/this.scale;if(e<=s.domBottom)return s.top+(e-s.domTop);r=s.bottom,i=s.domBottom;}}eq(e){return e instanceof ry?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((n,r)=>n.from==e.viewports[r].from&&n.to==e.viewports[r].to):false}}function au(t,e){if(e.scale==1)return t;let n=e.toDOM(t.top),r=e.toDOM(t.bottom);return new yi(t.from,t.length,n,r-n,Array.isArray(t._content)?t._content.map(i=>au(i,e)):t._content)}const pf=de.define({combine:t=>t.join(" ")}),rg=de.define({combine:t=>t.indexOf(true)>-1}),ig=Qs.newName(),ew=Qs.newName(),tw=Qs.newName(),nw={"&light":"."+ew,"&dark":"."+tw};function sg(t,e,n){return new Qs(e,{finish(r){return /&/.test(r)?r.replace(/&\w*/,i=>{if(i=="&")return t;if(!n||!n[i])throw new RangeError(`Unsupported selector: ${i}`);return n[i]}):t+" "+r}})}const o_=sg("."+ig,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},nw),a_={childList:true,characterData:true,subtree:true,attributes:true,characterDataOldValue:true},pp=he.ie&&he.ie_version<=11;class l_{constructor(e){this.view=e,this.active=false,this.editContext=null,this.selectionRange=new W7,this.selectionChanged=false,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=false,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(he.ie&&he.ie_version<=11||he.ios&&e.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush();}),window.EditContext&&e.constructor.EDIT_CONTEXT!==false&&!(he.chrome&&he.chrome_version<126)&&(this.editContext=new c_(e),e.state.facet(Ki)&&(e.contentDOM.editContext=this.editContext.editContext)),pp&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon();}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate)<Date.now()-75&&this.onResize();}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(n=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")));},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"));},{})),this.listenForScroll(),this.readSelectionRange();}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure();}onScroll(e){this.intersecting&&this.flush(false),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e);}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure();},50));}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=true,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=false,this.view.requestMeasure();},500));}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((n,r)=>n!=e[r]))){this.gapIntersection.disconnect();for(let n of e)this.gapIntersection.observe(n);this.gaps=e;}}onSelectionChange(e){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,i=this.selectionRange;if(r.state.facet(Ki)?r.root.activeElement!=this.dom:!Uf(this.dom,i))return;let s=i.anchorNode&&r.docView.nearest(i.anchorNode);if(s&&s.ignoreEvent(e)){n||(this.selectionChanged=false);return}(he.ie&&he.ie_version<=11||he.android&&he.chrome)&&!r.state.selection.main.empty&&i.focusNode&&Cu(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(false);}readSelectionRange(){let{view:e}=this,n=Ju(e.root);if(!n)return  false;let r=he.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&u_(this.view,n)||n;if(!r||this.selectionRange.eq(r))return  false;let i=Uf(this.dom,r);return i&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&z7(this.dom,r)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),false):(this.selectionRange.setRange(r),i&&(this.selectionChanged=true),true)}setSelectionRange(e,n){this.selectionRange.set(e.node,e.offset,n.node,n.offset),this.selectionChanged=false;}clearSelectionRange(){this.selectionRange.set(null,0,null,0);}listenForScroll(){this.parentCheck=-1;let e=0,n=null;for(let r=this.dom;r;)if(r.nodeType==1)!n&&e<this.scrollTargets.length&&this.scrollTargets[e]==r?e++:n||(n=this.scrollTargets.slice(0,e)),n&&n.push(r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;if(e<this.scrollTargets.length&&!n&&(n=this.scrollTargets.slice(0,e)),n){for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);for(let r of this.scrollTargets=n)r.addEventListener("scroll",this.onScroll);}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear();}}start(){this.active||(this.observer.observe(this.dom,a_),pp&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=true);}stop(){this.active&&(this.active=false,this.observer.disconnect(),pp&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData));}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=false;}delayAndroidKey(e,n){var r;if(!this.delayedAndroidKey){let i=()=>{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&Ua(this.dom,s.key,s.keyCode));};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i);}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:n,force:this.lastChange<Date.now()-50||!!(!((r=this.delayedAndroidKey)===null||r===void 0)&&r.force)});}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1;}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush();}));}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush();}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let n=-1,r=-1,i=false;for(let s of e){let o=this.readMutation(s);o&&(o.typeOver&&(i=true),n==-1?{from:n,to:r}=o:(n=Math.min(o.from,n),r=Math.max(o.to,r)));}return {from:n,to:r,typeOver:i}}readChange(){let{from:e,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&Uf(this.dom,this.selectionRange);if(e<0&&!i)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=false;let s=new S5(this.view,e,n,r);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(e=true){if(this.delayedFlush>=0||this.delayedAndroidKey)return  false;e&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),false;let r=this.view.state,i=HF(this.view,n);return this.view.state==r&&(n.domChanged||n.newSel&&!n.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),i}readMutation(e){let n=this.view.docView.nearest(e.target);if(!n||n.ignoreMutation(e))return null;if(n.markDirty(e.type=="attributes"),e.type=="attributes"&&(n.flags|=4),e.type=="childList"){let r=Zb(n,e.previousSibling||e.target.previousSibling,-1),i=Zb(n,e.nextSibling||e.target.nextSibling,1);return {from:r?n.posAfter(r):n.posAtStart,to:i?n.posBefore(i):n.posAtEnd,typeOver:false}}else return e.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win));}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange);}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange);}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(Ki)!=e.state.facet(Ki)&&(e.view.contentDOM.editContext=e.state.facet(Ki)?this.editContext.editContext:null));}destroy(){var e,n,r;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy());}}function Zb(t,e,n){for(;e;){let r=yt.get(e);if(r&&r.parent==t)return r;let i=e.parentNode;e=i!=t.dom?i:n>0?e.nextSibling:e.previousSibling;}return null}function e1(t,e){let n=e.startContainer,r=e.startOffset,i=e.endContainer,s=e.endOffset,o=t.docView.domAtPos(t.state.selection.main.anchor);return Cu(o.node,o.offset,i,s)&&([n,r,i,s]=[i,s,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:s}}function u_(t,e){if(e.getComposedRanges){let i=e.getComposedRanges(t.root)[0];if(i)return e1(t,i)}let n=null;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0];}return t.contentDOM.addEventListener("beforeinput",r,true),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",r,true),n?e1(t,n):null}class c_{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let n=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=r=>{let i=e.state.selection.main,{anchor:s,head:o}=i,a=this.toEditorPos(r.updateRangeStart),l=this.toEditorPos(r.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:r.updateRangeStart,editorBase:a,drifted:false});let u={from:a,to:l,insert:Qe.of(r.text.split(`
`))};if(u.from==this.from&&s<this.from?u.from=s:u.to==this.to&&s>this.to&&(u.to=s),u.from==u.to&&!u.insert.length){let c=J.single(this.toEditorPos(r.selectionStart),this.toEditorPos(r.selectionEnd));c.main.eq(i)||e.dispatch({selection:c,userEvent:"select"});return}if((he.mac||he.android)&&u.from==o-1&&/^\. ?$/.test(r.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(u={from:a,to:l,insert:Qe.of([r.text.replace("."," ")])}),this.pendingContextChange=u,!e.state.readOnly){let c=this.to-this.from+(u.to-u.from+u.insert.length);ty(e,u,J.single(this.toEditorPos(r.selectionStart,c),this.toEditorPos(r.selectionEnd,c)));}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state));},this.handlers.characterboundsupdate=r=>{let i=[],s=null;for(let o=this.toEditorPos(r.rangeStart),a=this.toEditorPos(r.rangeEnd);o<a;o++){let l=e.coordsForChar(o);s=l&&new DOMRect(l.left,l.top,l.right-l.left,l.bottom-l.top)||s||new DOMRect,i.push(s);}n.updateCharacterBounds(r.rangeStart,i);},this.handlers.textformatupdate=r=>{let i=[];for(let s of r.getTextFormats()){let o=s.underlineStyle,a=s.underlineThickness;if(o!="None"&&a!="None"){let l=this.toEditorPos(s.rangeStart),u=this.toEditorPos(s.rangeEnd);if(l<u){let c=`text-decoration: underline ${o=="Dashed"?"dashed ":o=="Squiggle"?"wavy ":""}${a=="Thin"?1:2}px`;i.push(De.mark({attributes:{style:c}}).range(l,u));}}}e.dispatch({effects:LF.of(De.set(i))});},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=true);},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:r}=this.composing;this.composing=null,r&&this.reset(e.state);}};for(let r in this.handlers)n.addEventListener(r,this.handlers[r]);this.measureReq={read:r=>{this.editContext.updateControlBounds(r.contentDOM.getBoundingClientRect());let i=Ju(r.root);i&&i.rangeCount&&this.editContext.updateSelectionBounds(i.getRangeAt(0).getBoundingClientRect());}};}applyEdits(e){let n=0,r=false,i=this.pendingContextChange;return e.changes.iterChanges((s,o,a,l,u)=>{if(r)return;let c=u.length-(o-s);if(i&&o>=i.to)if(i.from==s&&i.to==o&&i.insert.eq(u)){i=this.pendingContextChange=null,n+=c,this.to+=c;return}else i=null,this.revertPending(e.state);if(s+=n,o+=n,o<=this.from)this.from+=c,this.to+=c;else if(s<this.to){if(s<this.from||o>this.to||this.to-this.from+u.length>3e4){r=true;return}this.editContext.updateText(this.toContextPos(s),this.toContextPos(o),u.toString()),this.to+=c;}n+=c;}),i&&!r&&this.revertPending(e.state),!r}update(e){let n=this.pendingContextChange,r=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(r.from,r.to)&&e.transactions.some(i=>!i.isUserEvent("input.type")&&i.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=true,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||n)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq);}resetRange(e){let{head:n}=e.selection.main;this.from=Math.max(0,n-1e4),this.to=Math.min(e.doc.length,n+1e4);}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e);}revertPending(e){let n=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(n.from),this.toContextPos(n.from+n.insert.length),e.doc.sliceString(n.from,n.to));}setSelection(e){let{main:n}=e.selection,r=this.toContextPos(Math.max(this.from,Math.min(this.to,n.anchor))),i=this.toContextPos(n.head);(this.editContext.selectionStart!=r||this.editContext.selectionEnd!=i)&&this.editContext.updateSelection(r,i);}rangeIsValid(e){let{head:n}=e.selection.main;return !(this.from>0&&n-this.from<500||this.to<e.doc.length&&this.to-n<500||this.to-this.from>1e4*3)}toEditorPos(e,n=this.to-this.from){e=Math.min(e,n);let r=this.composing;return r&&r.drifted?r.editorBase+(e-r.contextBase):e+this.from}toContextPos(e){let n=this.composing;return n&&n.drifted?n.contextBase+(e-n.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e]);}}class ue{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return !!this.inputState&&this.inputState.composing>0}get compositionStarted(){return !!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var n;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=false,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:r}=e;this.dispatchTransactions=e.dispatchTransactions||r&&(i=>i.forEach(s=>r(s,this)))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=e.root||H7(e.parent)||document,this.viewState=new Yb(e.state||Ve.create(e)),e.scrollTo&&e.scrollTo.is(lf)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(iu).map(i=>new cp(i));for(let i of this.plugins)i.update(this);this.observer=new l_(this),this.inputState=new O5(this),this.inputState.ensureHandlers(this.plugins),this.docView=new $b(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((n=document.fonts)===null||n===void 0)&&n.ready&&document.fonts.ready.then(()=>this.requestMeasure());}dispatch(...e){let n=e.length==1&&e[0]instanceof Vt?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(n,this);}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=false,r=false,i,s=this.state;for(let d of e){if(d.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=d.state;}if(this.destroyed){this.viewState.state=s;return}let o=this.hasFocus,a=0,l=null;e.some(d=>d.annotation(XF))?(this.inputState.notifiedFocused=o,a=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=YF(s,o),l||(a=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(c=null)):this.observer.clear(),s.facet(Ve.phrases)!=this.state.facet(Ve.phrases))return this.setState(s);i=Fd.create(this,s,e),i.flags|=a;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let d of e){if(f&&(f=f.map(d.changes)),d.scrollIntoView){let{main:h}=d.state.selection;f=new Ja(h.empty?h:J.cursor(h.head,h.head>h.anchor?-1:1));}for(let h of d.effects)h.is(lf)&&(f=h.value.clip(this.state));}this.viewState.update(i,f),this.bidiCache=Sd.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(su)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(d=>d.isUserEvent("select.pointer")));}finally{this.updateState=0;}if(i.startState.facet(pf)!=i.state.facet(pf)&&(this.viewState.mustMeasureContent=true),(n||r||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!i.empty)for(let d of this.state.facet(Zm))try{d(i);}catch(h){Wn(this.state,h,"update listener");}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!HF(this,c)&&u.force&&Ua(this.contentDOM,u.key,u.keyCode);});}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new Yb(e),this.plugins=e.facet(iu).map(r=>new cp(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new $b(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[];}finally{this.updateState=0;}n&&this.focus(),this.requestMeasure();}updatePlugins(e){let n=e.startState.facet(iu),r=e.state.facet(iu);if(n!=r){let i=[];for(let s of r){let o=n.indexOf(s);if(o<0)i.push(new cp(s));else {let a=this.plugins[o];a.mustUpdate=e,i.push(a);}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=i,this.pluginMap.clear();}else for(let i of this.plugins)i.mustUpdate=e;for(let i=0;i<this.plugins.length;i++)this.plugins[i].update(this);n!=r&&this.inputState.ensureHandlers(this.plugins);}docViewUpdate(){for(let e of this.plugins){let n=e.value;if(n&&n.docViewUpdate)try{n.docViewUpdate(this);}catch(r){Wn(this.state,r,"doc view update listener");}}}measure(e=true){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let n=null,r=this.scrollDOM,i=r.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:o}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let a=0;;a++){if(o<0)if(fF(r))s=-1,o=this.viewState.heightMap.height;else {let h=this.viewState.scrollAnchorAt(i);s=h.from,o=h.top;}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(a>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];l&4||([this.measureRequests,u]=[u,this.measureRequests]);let c=u.map(h=>{try{return h.read(this)}catch(p){return Wn(this.state,p),t1}}),f=Fd.create(this,this.state,[]),d=!1;f.flags|=l,n?n.flags|=l:n=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),d=this.docView.update(f),d&&this.docViewUpdate());for(let h=0;h<u.length;h++)if(c[h]!=t1)try{let p=u[h];p.write&&p.write(c[h],this);}catch(p){Wn(this.state,p);}if(d&&this.docView.updateSelection(!0),!f.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}else {let p=(s<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(s).top)-o;if(p>1||p<-1){i=i+p,r.scrollTop=i/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1;}if(n&&!n.empty)for(let a of this.state.facet(Zm))a(n);}get themeClasses(){return ig+" "+(this.state.facet(rg)?tw:ew)+" "+this.state.facet(pf)}updateAttrs(){let e=n1(this,RF,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(Ki)?"true":"false",class:"cm-content",style:`${he.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),n1(this,Q0,n);let r=this.observer.ignore(()=>{let i=Jm(this.contentDOM,this.contentAttrs,n),s=Jm(this.dom,this.editorAttrs,e);return i||s});return this.editorAttrs=e,this.contentAttrs=n,r}showAnnouncements(e){let n=true;for(let r of e)for(let i of r.effects)if(i.is(ue.announce)){n&&(this.announceDOM.textContent=""),n=false;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=i.value;}}mountStyles(){this.styleModules=this.state.facet(su);let e=this.state.facet(ue.cspNonce);Qs.mount(this.root,this.styleModules.concat(o_).reverse(),e?{nonce:e}:void 0);}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(false);}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let n=0;n<this.measureRequests.length;n++)if(this.measureRequests[n].key===e.key){this.measureRequests[n]=e;return}}this.measureRequests.push(e);}}plugin(e){let n=this.pluginMap.get(e);return (n===void 0||n&&n.spec!=e)&&this.pluginMap.set(e,n=this.plugins.find(r=>r.spec==e)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return {top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,n,r){return dp(this,e,Lb(this,e,n,r))}moveByGroup(e,n){return dp(this,e,Lb(this,e,n,r=>x5(this,e.head,r)))}visualLineSide(e,n){let r=this.bidiSpans(e),i=this.textDirectionAt(e.from),s=r[n?r.length-1:0];return J.cursor(s.side(n,i)+e.from,s.forward(!n,i)?1:-1)}moveToLineBoundary(e,n,r=true){return C5(this,e,n,r)}moveVertically(e,n,r){return dp(this,e,E5(this,e,n,r))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,n=0){return this.docView.posFromDOM(e,n)}posAtCoords(e,n=true){return this.readMeasured(),WF(this,e,n)}coordsAtPos(e,n=1){this.readMeasured();let r=this.docView.coordsAt(e,n);if(!r||r.left==r.right)return r;let i=this.state.doc.lineAt(e),s=this.bidiSpans(i),o=s[Hs.find(s,e-i.from,-1,n)];return Sc(r,o.dir==Et.LTR==n>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return !this.state.facet(PF)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>f_)return SF(e.length);let n=this.textDirectionAt(e.from),r;for(let s of this.bidiCache)if(s.from==e.from&&s.dir==n&&(s.fresh||wF(s.isolates,r=Ob(this,e))))return s.order;r||(r=Ob(this,e));let i=s5(e.text,n,r);return this.bidiCache.push(new Sd(e.from,e.to,n,r,true,i)),i}get hasFocus(){var e;return (this.dom.ownerDocument.hasFocus()||he.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{uF(this.contentDOM),this.docView.updateSelection();});}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles());}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=true;}static scrollIntoView(e,n={}){return lf.of(new Ja(typeof e=="number"?J.cursor(e):e,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(e);return lf.of(new Ja(J.cursor(r.from),"start","start",r.top-e,n,true))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e);}static domEventHandlers(e){return Rt.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Rt.define(()=>({}),{eventObservers:e})}static theme(e,n){let r=Qs.newName(),i=[pf.of(r),su.of(sg(`.${r}`,e))];return n&&n.dark&&i.push(rg.of(true)),i}static baseTheme(e){return po.lowest(su.of(sg("."+ig,e,nw)))}static findFromDOM(e){var n;let r=e.querySelector(".cm-content"),i=r&&yt.get(r)||yt.get(e);return ((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}} exports("u", ue);ue.styleModule=su;ue.inputHandler=$F;ue.clipboardInputFilter=X0;ue.clipboardOutputFilter=Y0;ue.scrollHandler=IF;ue.focusChangeEffect=MF;ue.perLineTextDirection=PF;ue.exceptionSink=OF;ue.updateListener=Zm;ue.editable=Ki;ue.mouseSelectionStyle=BF;ue.dragMovesSelection=kF;ue.clickAddsSelectionRange=TF;ue.decorations=Gu;ue.outerDecorations=_F;ue.atomicRanges=Z0;ue.bidiIsolatedRanges=jF;ue.scrollMargins=VF;ue.darkTheme=rg;ue.cspNonce=de.define({combine:t=>t.length?t[0]:""});ue.contentAttributes=Q0;ue.editorAttributes=RF;ue.lineWrapping=ue.contentAttributes.of({class:"cm-lineWrapping"});ue.announce=Ae.define();const f_=4096,t1={};class Sd{constructor(e,n,r,i,s,o){this.from=e,this.to=n,this.dir=r,this.isolates=i,this.fresh=s,this.order=o;}static update(e,n){if(n.empty&&!e.some(s=>s.fresh))return e;let r=[],i=e.length?e[e.length-1].dir:Et.LTR;for(let s=Math.max(0,e.length-10);s<e.length;s++){let o=e[s];o.dir==i&&!n.touchesRange(o.from,o.to)&&r.push(new Sd(n.mapPos(o.from,1),n.mapPos(o.to,-1),o.dir,o.isolates,false,o.order));}return r}}function n1(t,e,n){for(let r=t.state.facet(e),i=r.length-1;i>=0;i--){let s=r[i],o=typeof s=="function"?s(t):s;o&&Um(o,n);}return n}const d_=he.mac?"mac":he.windows?"win":he.linux?"linux":"key";function h_(t,e){const n=t.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,s,o,a;for(let l=0;l<n.length-1;++l){const u=n[l];if(/^(cmd|meta|m)$/i.test(u))a=true;else if(/^a(lt)?$/i.test(u))i=true;else if(/^(c|ctrl|control)$/i.test(u))s=true;else if(/^s(hift)?$/i.test(u))o=true;else if(/^mod$/i.test(u))e=="mac"?a=true:s=true;else throw new Error("Unrecognized modifier name: "+u)}return i&&(r="Alt-"+r),s&&(r="Ctrl-"+r),a&&(r="Meta-"+r),o&&(r="Shift-"+r),r}function mf(t,e,n){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n!==false&&e.shiftKey&&(t="Shift-"+t),t}const p_=po.default(ue.domEventHandlers({keydown(t,e){return iw(rw(e.state),t,e,"editor")}})),kc=de.define({enables:p_}),r1=new WeakMap;function rw(t){let e=t.facet(kc),n=r1.get(e);return n||r1.set(e,n=y_(e.reduce((r,i)=>r.concat(i),[]))),n}function m_(t,e,n){return iw(rw(t.state),e,t,n)}let js=null;const g_=4e3;function y_(t,e=d_){let n=Object.create(null),r=Object.create(null),i=(o,a)=>{let l=r[o];if(l==null)r[o]=a;else if(l!=a)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},s=(o,a,l,u,c)=>{var f,d;let h=n[o]||(n[o]=Object.create(null)),p=a.split(/ (?!$)/).map(y=>h_(y,e));for(let y=1;y<p.length;y++){let F=p.slice(0,y).join(" ");i(F,true),h[F]||(h[F]={preventDefault:true,stopPropagation:false,run:[x=>{let b=js={view:x,prefix:F,scope:o};return setTimeout(()=>{js==b&&(js=null);},g_),true}]});}let m=p.join(" ");i(m,false);let g=h[m]||(h[m]={preventDefault:false,stopPropagation:false,run:((d=(f=h._any)===null||f===void 0?void 0:f.run)===null||d===void 0?void 0:d.slice())||[]});l&&g.run.push(l),u&&(g.preventDefault=true),c&&(g.stopPropagation=true);};for(let o of t){let a=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let u of a){let c=n[u]||(n[u]=Object.create(null));c._any||(c._any={preventDefault:false,stopPropagation:false,run:[]});let{any:f}=o;for(let d in c)c[d].run.push(h=>f(h,og));}let l=o[e]||o.key;if(l)for(let u of a)s(u,l,o.run,o.preventDefault,o.stopPropagation),o.shift&&s(u,"Shift-"+l,o.shift,o.preventDefault,o.stopPropagation);}return n}let og=null;function iw(t,e,n,r){og=e;let i=_7(e),s=jn(i,0),o=gi(s)==i.length&&i!=" ",a="",l=false,u=false,c=false;js&&js.view==n&&js.scope==r&&(a=js.prefix+" ",KF.indexOf(e.keyCode)<0&&(u=true,js=null));let f=new Set,d=g=>{if(g){for(let y of g.run)if(!f.has(y)&&(f.add(y),y(n)))return g.stopPropagation&&(c=true),true;g.preventDefault&&(g.stopPropagation&&(c=true),u=true);}return  false},h=t[r],p,m;return h&&(d(h[a+mf(i,e,!o)])?l=true:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(he.windows&&e.ctrlKey&&e.altKey)&&(p=Zs[e.keyCode])&&p!=i?(d(h[a+mf(p,e,true)])||e.shiftKey&&(m=Uu[e.keyCode])!=i&&m!=p&&d(h[a+mf(m,e,false)]))&&(l=true):o&&e.shiftKey&&d(h[a+mf(i,e,true)])&&(l=true),!l&&d(h._any)&&(l=true)),u&&(l=true),l&&c&&e.stopPropagation(),og=null,l}class Bc{constructor(e,n,r,i,s){this.className=e,this.left=n,this.top=r,this.width=i,this.height=s;}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,n){return n.className!=this.className?false:(this.adjust(e),true)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px";}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,n,r){if(r.empty){let i=e.coordsAtPos(r.head,r.assoc||1);if(!i)return [];let s=sw(e);return [new Bc(n,i.left-s.left,i.top-s.top,null,i.bottom-i.top)]}else return v_(e,n,r)}}function sw(t){let e=t.scrollDOM.getBoundingClientRect();return {left:(t.textDirection==Et.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function i1(t,e,n,r){let i=t.coordsAtPos(e,n*2);if(!i)return r;let s=t.dom.getBoundingClientRect(),o=(i.top+i.bottom)/2,a=t.posAtCoords({x:s.left+1,y:o}),l=t.posAtCoords({x:s.right-1,y:o});return a==null||l==null?r:{from:Math.max(r.from,Math.min(a,l)),to:Math.min(r.to,Math.max(a,l))}}function v_(t,e,n){if(n.to<=t.viewport.from||n.from>=t.viewport.to)return [];let r=Math.max(n.from,t.viewport.from),i=Math.min(n.to,t.viewport.to),s=t.textDirection==Et.LTR,o=t.contentDOM,a=o.getBoundingClientRect(),l=sw(t),u=o.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),f=a.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),d=a.right-(c?parseInt(c.paddingRight):0),h=tg(t,r,1),p=tg(t,i,-1),m=h.type==Tn.Text?h:null,g=p.type==Tn.Text?p:null;if(m&&(t.lineWrapping||h.widgetLineBreaks)&&(m=i1(t,r,1,m)),g&&(t.lineWrapping||p.widgetLineBreaks)&&(g=i1(t,i,-1,g)),m&&g&&m.from==g.from&&m.to==g.to)return F(x(n.from,n.to,m));{let D=m?x(n.from,null,m):b(h,false),C=g?x(null,n.to,g):b(p,true),E=[];return (m||h).to<(g||p).from-(m&&g?1:0)||h.widgetLineBreaks>1&&D.bottom+t.defaultLineHeight/2<C.top?E.push(y(f,D.bottom,d,C.top)):D.bottom<C.top&&t.elementAtHeight((D.bottom+C.top)/2).type==Tn.Text&&(D.bottom=C.top=(D.bottom+C.top)/2),F(D).concat(E).concat(F(C))}function y(D,C,E,S){return new Bc(e,D-l.left,C-l.top,E-D,S-C)}function F({top:D,bottom:C,horizontal:E}){let S=[];for(let A=0;A<E.length;A+=2)S.push(y(E[A],D,E[A+1],C));return S}function x(D,C,E){let S=1e9,A=-1e9,M=[];function k(T,I,j,_,R){let L=t.coordsAtPos(T,T==E.to?-2:2),G=t.coordsAtPos(j,j==E.from?2:-2);!L||!G||(S=Math.min(L.top,G.top,S),A=Math.max(L.bottom,G.bottom,A),R==Et.LTR?M.push(s&&I?f:L.left,s&&_?d:G.right):M.push(!s&&_?f:G.left,!s&&I?d:L.right));}let N=D??E.from,O=C??E.to;for(let T of t.visibleRanges)if(T.to>N&&T.from<O)for(let I=Math.max(T.from,N),j=Math.min(T.to,O);;){let _=t.state.doc.lineAt(I);for(let R of t.bidiSpans(_)){let L=R.from+_.from,G=R.to+_.from;if(L>=j)break;G>I&&k(Math.max(L,I),D==null&&L<=N,Math.min(G,j),C==null&&G>=O,R.dir);}if(I=_.to+1,I>=j)break}return M.length==0&&k(N,D==null,O,C==null,t.textDirection),{top:S,bottom:A,horizontal:M}}function b(D,C){let E=a.top+(C?D.top:D.bottom);return {top:E,bottom:E,horizontal:[]}}}function D_(t,e){return t.constructor==e.constructor&&t.eq(e)}class b_{constructor(e,n){this.view=e,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,e);}update(e){e.startState.facet(Yf)!=e.state.facet(Yf)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq));}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==false&&e.requestMeasure(this.measureReq);}setOrder(e){let n=0,r=e.facet(Yf);for(;n<r.length&&r[n]!=this.layer;)n++;this.dom.style.zIndex=String((this.layer.above?150:-1)-n);}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:n}=this.view;(e!=this.scaleX||n!=this.scaleY)&&(this.scaleX=e,this.scaleY=n,this.dom.style.transform=`scale(${1/e}, ${1/n})`);}draw(e){if(e.length!=this.drawn.length||e.some((n,r)=>!D_(n,this.drawn[r]))){let n=this.dom.firstChild,r=0;for(let i of e)i.update&&n&&i.constructor&&this.drawn[r].constructor&&i.update(n,this.drawn[r])?(n=n.nextSibling,r++):this.dom.insertBefore(i.draw(),n);for(;n;){let i=n.nextSibling;n.remove(),n=i;}this.drawn=e;}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove();}}const Yf=de.define();function ow(t){return [Rt.define(e=>new b_(e,t)),Yf.of(t)]}const Xu=de.define({combine(t){return Mi(t,{cursorBlinkRate:1200,drawRangeCursor:true},{cursorBlinkRate:(e,n)=>Math.min(e,n),drawRangeCursor:(e,n)=>e||n})}});function C_(t={}){return [Xu.of(t),x_,E_,F_,NF.of(true)]}function aw(t){return t.startState.facet(Xu)!=t.state.facet(Xu)}const x_=ow({above:true,markers(t){let{state:e}=t,n=e.facet(Xu),r=[];for(let i of e.selection.ranges){let s=i==e.selection.main;if(i.empty||n.drawRangeCursor){let o=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",a=i.empty?i:J.cursor(i.head,i.head>i.anchor?-1:1);for(let l of Bc.forRange(t,o,a))r.push(l);}}return r},update(t,e){t.transactions.some(r=>r.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=aw(t);return n&&s1(t.state,e),t.docChanged||t.selectionSet||n},mount(t,e){s1(e.state,t);},class:"cm-cursorLayer"});function s1(t,e){e.style.animationDuration=t.facet(Xu).cursorBlinkRate+"ms";}const E_=ow({above:false,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:Bc.forRange(t,"cm-selectionBackground",e)).reduce((e,n)=>e.concat(n))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||aw(t)},class:"cm-selectionLayer"}),F_=po.highest(ue.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),lw=Ae.define({map(t,e){return t==null?null:e.mapPos(t)}}),lu=Qt.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((n,r)=>r.is(lw)?r.value:n,t)}}),w_=Rt.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)};}update(t){var e;let n=t.state.field(lu);n==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(lu)!=n||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq));}readPos(){let{view:t}=this,e=t.state.field(lu),n=e!=null&&t.coordsAtPos(e);if(!n)return null;let r=t.scrollDOM.getBoundingClientRect();return {left:n.left-r.left+t.scrollDOM.scrollLeft*t.scaleX,top:n.top-r.top+t.scrollDOM.scrollTop*t.scaleY,height:n.bottom-n.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:n}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/n+"px",this.cursor.style.height=t.height/n+"px"):this.cursor.style.left="-100000px";}}destroy(){this.cursor&&this.cursor.remove();}setDropPos(t){this.view.state.field(lu)!=t&&this.view.dispatch({effects:lw.of(t)});}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}));},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null);},dragend(){this.setDropPos(null);},drop(){this.setDropPos(null);}}});function S_(){return [lu,w_]}function o1(t,e,n,r,i){e.lastIndex=0;for(let s=t.iterRange(n,r),o=n,a;!s.next().done;o+=s.value.length)if(!s.lineBreak)for(;a=e.exec(s.value);)i(o+a.index,a);}function A_(t,e){let n=t.visibleRanges;if(n.length==1&&n[0].from==t.viewport.from&&n[0].to==t.viewport.to)return n;let r=[];for(let{from:i,to:s}of n)i=Math.max(t.state.doc.lineAt(i).from,i-e),s=Math.min(t.state.doc.lineAt(s).to,s+e),r.length&&r[r.length-1].to>=i?r[r.length-1].to=s:r.push({from:i,to:s});return r}class T_{constructor(e){const{regexp:n,decoration:r,decorate:i,boundary:s,maxLength:o=1e3}=e;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,i)this.addMatch=(a,l,u,c)=>i(c,u,u+a[0].length,a,l);else if(typeof r=="function")this.addMatch=(a,l,u,c)=>{let f=r(a,l,u);f&&c(u,u+a[0].length,f);};else if(r)this.addMatch=(a,l,u,c)=>c(u,u+a[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=s,this.maxLength=o;}createDeco(e){let n=new es,r=n.add.bind(n);for(let{from:i,to:s}of A_(e,this.maxLength))o1(e.state.doc,this.regexp,i,s,(o,a)=>this.addMatch(a,e,o,r));return n.finish()}updateDeco(e,n){let r=1e9,i=-1;return e.docChanged&&e.changes.iterChanges((s,o,a,l)=>{l>=e.view.viewport.from&&a<=e.view.viewport.to&&(r=Math.min(a,r),i=Math.max(l,i));}),e.viewportMoved||i-r>1e3?this.createDeco(e.view):i>-1?this.updateRange(e.view,n.map(e.changes),r,i):n}updateRange(e,n,r,i){for(let s of e.visibleRanges){let o=Math.max(s.from,r),a=Math.min(s.to,i);if(a>=o){let l=e.state.doc.lineAt(o),u=l.to<a?e.state.doc.lineAt(a):l,c=Math.max(s.from,l.from),f=Math.min(s.to,u.to);if(this.boundary){for(;o>l.from;o--)if(this.boundary.test(l.text[o-1-l.from])){c=o;break}for(;a<u.to;a++)if(this.boundary.test(u.text[a-u.from])){f=a;break}}let d=[],h,p=(m,g,y)=>d.push(y.range(m,g));if(l==u)for(this.regexp.lastIndex=c-l.from;(h=this.regexp.exec(l.text))&&h.index<f-l.from;)this.addMatch(h,e,h.index+l.from,p);else o1(e.state.doc,this.regexp,c,f,(m,g)=>this.addMatch(g,e,m,p));n=n.update({filterFrom:c,filterTo:f,filter:(m,g)=>m<c||g>f,add:d});}}return n}}const ag=/x/.unicode!=null?"gu":"g",k_=new RegExp(`[\0-\b
--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,ag),B_={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let mp=null;function O_(){var t;if(mp==null&&typeof document<"u"&&document.body){let e=document.body.style;mp=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null;}return mp||false}const Qf=de.define({combine(t){let e=Mi(t,{render:null,specialChars:k_,addSpecialChars:null});return (e.replaceTabs=!O_())&&(e.specialChars=new RegExp("	|"+e.specialChars.source,ag)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,ag)),e}});function $_(t={}){return [Qf.of(t),M_()]}let a1=null;function M_(){return a1||(a1=Rt.fromClass(class{constructor(t){this.view=t,this.decorations=De.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(Qf)),this.decorations=this.decorator.createDeco(t);}makeDecorator(t){return new T_({regexp:t.specialChars,decoration:(e,n,r)=>{let{doc:i}=n.state,s=jn(e[0],0);if(s==9){let o=i.lineAt(r),a=n.state.tabSize,l=$l(o.text,a,r-o.from);return De.replace({widget:new L_((a-l%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=De.replace({widget:new I_(t,s)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(Qf);t.startState.facet(Qf)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations);}},{decorations:t=>t.decorations}))}const P_="•";function N_(t){return t>=32?P_:t==10?"␤":String.fromCharCode(9216+t)}class I_ extends Pi{constructor(e,n){super(),this.options=e,this.code=n;}eq(e){return e.code==this.code}toDOM(e){let n=N_(this.code),r=e.state.phrase("Control character")+" "+(B_[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let s=document.createElement("span");return s.textContent=n,s.title=r,s.setAttribute("aria-label",r),s.className="cm-specialChar",s}ignoreEvent(){return  false}}class L_ extends Pi{constructor(e){super(),this.width=e;}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="	",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return  false}}function R_(){return j_}const __=De.line({class:"cm-activeLine"}),j_=Rt.fromClass(class{constructor(t){this.decorations=this.getDeco(t);}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view));}getDeco(t){let e=-1,n=[];for(let r of t.state.selection.ranges){let i=t.lineBlockAt(r.head);i.from>e&&(n.push(__.range(i.from)),e=i.from);}return De.set(n)}},{decorations:t=>t.decorations});class V_ extends Pi{constructor(e){super(),this.content=e;}toDOM(e){let n=document.createElement("span");return n.className="cm-placeholder",n.style.pointerEvents="none",n.appendChild(typeof this.content=="string"?document.createTextNode(this.content):typeof this.content=="function"?this.content(e):this.content.cloneNode(true)),n.setAttribute("aria-hidden","true"),n}coordsAt(e){let n=e.firstChild?cl(e.firstChild):[];if(!n.length)return null;let r=window.getComputedStyle(e.parentNode),i=Sc(n[0],r.direction!="rtl"),s=parseInt(r.lineHeight);return i.bottom-i.top>s*1.5?{left:i.left,right:i.right,top:i.top,bottom:i.top+s}:i}ignoreEvent(){return  false}}function q_(t){let e=Rt.fromClass(class{constructor(n){this.view=n,this.placeholder=t?De.set([De.widget({widget:new V_(t),side:1}).range(0)]):De.none;}get decorations(){return this.view.state.doc.length?De.none:this.placeholder}},{decorations:n=>n.decorations});return typeof t=="string"?[e,ue.contentAttributes.of({"aria-placeholder":t})]:e}const lg=2e3;function W_(t,e,n){let r=Math.min(e.line,n.line),i=Math.max(e.line,n.line),s=[];if(e.off>lg||n.off>lg||e.col<0||n.col<0){let o=Math.min(e.off,n.off),a=Math.max(e.off,n.off);for(let l=r;l<=i;l++){let u=t.doc.line(l);u.length<=a&&s.push(J.range(u.from+o,u.to+a));}}else {let o=Math.min(e.col,n.col),a=Math.max(e.col,n.col);for(let l=r;l<=i;l++){let u=t.doc.line(l),c=jm(u.text,o,t.tabSize,true);if(c<0)s.push(J.cursor(u.to));else {let f=jm(u.text,a,t.tabSize);s.push(J.range(u.from+c,u.from+f));}}}return s}function H_(t,e){let n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}function l1(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},false),r=t.state.doc.lineAt(n),i=n-r.from,s=i>lg?-1:i==r.length?H_(t,e.clientX):$l(r.text,t.state.tabSize,n-r.from);return {line:r.number,col:s,off:i}}function z_(t,e){let n=l1(t,e),r=t.state.selection;return n?{update(i){if(i.docChanged){let s=i.changes.mapPos(i.startState.doc.line(n.line).from),o=i.state.doc.lineAt(s);n={line:o.number,col:n.col,off:Math.min(n.off,o.length)},r=r.map(i.changes);}},get(i,s,o){let a=l1(t,i);if(!a)return r;let l=W_(t.state,n,a);return l.length?o?J.create(l.concat(r.ranges)):J.create(l):r}}:null}function K_(t){let e=n=>n.altKey&&n.button==0;return ue.mouseSelectionStyle.of((n,r)=>e(r)?z_(n,r):null)}const U_={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},J_={style:"cursor: crosshair"};function G_(t={}){let[e,n]=U_[t.key||"Alt"],r=Rt.fromClass(class{constructor(i){this.view=i,this.isDown=false;}set(i){this.isDown!=i&&(this.isDown=i,this.view.update([]));}},{eventObservers:{keydown(i){this.set(i.keyCode==e||n(i));},keyup(i){(i.keyCode==e||!n(i))&&this.set(false);},mousemove(i){this.set(n(i));}}});return [r,ue.contentAttributes.of(i=>{var s;return !((s=i.plugin(r))===null||s===void 0)&&s.isDown?J_:null})]}const Jl="-10000px";class uw{constructor(e,n,r,i){this.facet=n,this.createTooltipView=r,this.removeTooltipView=i,this.input=e.state.facet(n),this.tooltips=this.input.filter(o=>o);let s=null;this.tooltipViews=this.tooltips.map(o=>s=r(o,s));}update(e,n){var r;let i=e.state.facet(this.facet),s=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(e);return  false}let o=[],a=n?[]:null;for(let l=0;l<s.length;l++){let u=s[l],c=-1;if(u){for(let f=0;f<this.tooltips.length;f++){let d=this.tooltips[f];d&&d.create==u.create&&(c=f);}if(c<0)o[l]=this.createTooltipView(u,l?o[l-1]:null),a&&(a[l]=!!u.above);else {let f=o[l]=this.tooltipViews[c];a&&(a[l]=n[c]),f.update&&f.update(e);}}}for(let l of this.tooltipViews)o.indexOf(l)<0&&(this.removeTooltipView(l),(r=l.destroy)===null||r===void 0||r.call(l));return n&&(a.forEach((l,u)=>n[u]=l),n.length=a.length),this.input=i,this.tooltips=s,this.tooltipViews=o,true}}function X_(t){let e=t.dom.ownerDocument.documentElement;return {top:0,left:0,bottom:e.clientHeight,right:e.clientWidth}}const gp=de.define({combine:t=>{var e,n,r;return {position:he.ios?"absolute":((e=t.find(i=>i.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((n=t.find(i=>i.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=t.find(i=>i.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||X_}}}),u1=new WeakMap,iy=Rt.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=true,this.madeAbsolute=false,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(gp);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new uw(t,sy,(n,r)=>this.createTooltip(n,r),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove();}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon();},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure();}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom;}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom);}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure();},50));}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let n=e||t.geometryChanged,r=t.state.facet(gp);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;n=true;}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);n=true;}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure();}createTooltip(t,e){let n=t.create(this.view),r=e?e.dom:null;if(n.dom.classList.add("cm-tooltip"),t.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",n.dom.appendChild(i);}return n.dom.style.position=this.position,n.dom.style.top=Jl,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var t,e,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(t=r.destroy)===null||t===void 0||t.call(r);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout);}readMeasure(){let t=1,e=1,n=false;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:s}=this.manager.tooltipViews[0];if(he.gecko)n=s.offsetParent!=this.container.ownerDocument.body;else if(s.style.top==Jl&&s.style.left=="0px"){let o=s.getBoundingClientRect();n=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1;}}if(n||this.position=="absolute")if(this.parent){let s=this.parent.getBoundingClientRect();s.width&&s.height&&(t=s.width/this.parent.offsetWidth,e=s.height/this.parent.offsetHeight);}else ({scaleX:t,scaleY:e}=this.view.viewState);let r=this.view.scrollDOM.getBoundingClientRect(),i=ey(this.view);return {visible:{left:r.left+i.left,top:r.top+i.top,right:r.right-i.right,bottom:r.bottom-i.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((s,o)=>{let a=this.manager.tooltipViews[o];return a.getCoords?a.getCoords(s.pos):this.view.coordsAtPos(s.pos)}),size:this.manager.tooltipViews.map(({dom:s})=>s.getBoundingClientRect()),space:this.view.state.facet(gp).tooltipSpace(this.view),scaleX:t,scaleY:e,makeAbsolute:n}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=true,this.position="absolute";for(let a of this.manager.tooltipViews)a.dom.style.position="absolute";}let{visible:n,space:r,scaleX:i,scaleY:s}=t,o=[];for(let a=0;a<this.manager.tooltips.length;a++){let l=this.manager.tooltips[a],u=this.manager.tooltipViews[a],{dom:c}=u,f=t.pos[a],d=t.size[a];if(!f||l.clip!==false&&(f.bottom<=Math.max(n.top,r.top)||f.top>=Math.min(n.bottom,r.bottom)||f.right<Math.max(n.left,r.left)-.1||f.left>Math.min(n.right,r.right)+.1)){c.style.top=Jl;continue}let h=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,p=h?7:0,m=d.right-d.left,g=(e=u1.get(u))!==null&&e!==void 0?e:d.bottom-d.top,y=u.offset||Q_,F=this.view.textDirection==Et.LTR,x=d.width>r.right-r.left?F?r.left:r.right-d.width:F?Math.max(r.left,Math.min(f.left-(h?14:0)+y.x,r.right-m)):Math.min(Math.max(r.left,f.left-m+(h?14:0)-y.x),r.right-m),b=this.above[a];!l.strictSide&&(b?f.top-g-p-y.y<r.top:f.bottom+g+p+y.y>r.bottom)&&b==r.bottom-f.bottom>f.top-r.top&&(b=this.above[a]=!b);let D=(b?f.top-r.top:r.bottom-f.bottom)-p;if(D<g&&u.resize!==false){if(D<this.view.defaultLineHeight){c.style.top=Jl;continue}u1.set(u,g),c.style.height=(g=D)/s+"px";}else c.style.height&&(c.style.height="");let C=b?f.top-g-p-y.y:f.bottom+p+y.y,E=x+m;if(u.overlap!==true)for(let S of o)S.left<E&&S.right>x&&S.top<C+g&&S.bottom>C&&(C=b?S.top-g-2-p:S.bottom+p+2);if(this.position=="absolute"?(c.style.top=(C-t.parent.top)/s+"px",c1(c,(x-t.parent.left)/i)):(c.style.top=C/s+"px",c1(c,x/i)),h){let S=f.left+(F?y.x:-y.x)-(x+14-7);h.style.left=S/i+"px";}u.overlap!==true&&o.push({left:x,top:C,right:E,bottom:C+g}),c.classList.toggle("cm-tooltip-above",b),c.classList.toggle("cm-tooltip-below",!b),u.positioned&&u.positioned(t.space);}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=Jl;}},{eventObservers:{scroll(){this.maybeMeasure();}}});function c1(t,e){let n=parseInt(t.style.left,10);(isNaN(n)||Math.abs(e-n)>1)&&(t.style.left=e+"px");}const Y_=ue.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Q_={x:0,y:0},sy=de.define({enables:[iy,Y_]}),Ad=de.define({combine:t=>t.reduce((e,n)=>e.concat(n),[])});class yh{static create(e){return new yh(e)}constructor(e){this.view=e,this.mounted=false,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new uw(e,Ad,(n,r)=>this.createHostedView(n,r),n=>n.dom.remove());}createHostedView(e,n){let r=e.create(this.view);return r.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(r.dom,n?n.dom.nextSibling:this.dom.firstChild),this.mounted&&r.mount&&r.mount(this.view),r}mount(e){for(let n of this.manager.tooltipViews)n.mount&&n.mount(e);this.mounted=true;}positioned(e){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(e);}update(e){this.manager.update(e);}destroy(){var e;for(let n of this.manager.tooltipViews)(e=n.destroy)===null||e===void 0||e.call(n);}passProp(e){let n;for(let r of this.manager.tooltipViews){let i=r[e];if(i!==void 0){if(n===void 0)n=i;else if(n!==i)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const Z_=sy.compute([Ad],t=>{let e=t.facet(Ad);return e.length===0?null:{pos:Math.min(...e.map(n=>n.pos)),end:Math.max(...e.map(n=>{var r;return (r=n.end)!==null&&r!==void 0?r:n.pos})),create:yh.create,above:e[0].above,arrow:e.some(n=>n.arrow)}});class ej{constructor(e,n,r,i,s){this.view=e,this.source=n,this.field=r,this.setHover=i,this.hoverTime=s,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this));}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20));}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover();}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:n}=this,r=e.docView.nearest(n.target);if(!r)return;let i,s=1;if(r instanceof Ws)i=r.posAtStart;else {if(i=e.posAtCoords(n),i==null)return;let a=e.coordsAtPos(i);if(!a||n.y<a.top||n.y>a.bottom||n.x<a.left-e.defaultCharacterWidth||n.x>a.right+e.defaultCharacterWidth)return;let l=e.bidiSpans(e.state.doc.lineAt(i)).find(c=>c.from<=i&&c.to>=i),u=l&&l.dir==Et.RTL?-1:1;s=n.x<a.left?-u:u;}let o=this.source(e,i,s);if(o!=null&&o.then){let a=this.pending={pos:i};o.then(l=>{this.pending==a&&(this.pending=null,l&&!(Array.isArray(l)&&!l.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(l)?l:[l])}));},l=>Wn(e.state,l,"hover tooltip"));}else o&&!(Array.isArray(o)&&!o.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])});}get tooltip(){let e=this.view.plugin(iy),n=e?e.manager.tooltips.findIndex(r=>r.create==yh.create):-1;return n>-1?e.manager.tooltipViews[n]:null}mousemove(e){var n,r;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:i,tooltip:s}=this;if(i.length&&s&&!tj(s.dom,e)||this.pending){let{pos:o}=i[0]||this.pending,a=(r=(n=i[0])===null||n===void 0?void 0:n.end)!==null&&r!==void 0?r:o;(o==a?this.view.posAtCoords(this.lastMove)!=o:!nj(this.view,o,a,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null);}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n.length){let{tooltip:r}=this;r&&r.dom.contains(e.relatedTarget)?this.watchTooltipLeave(r.dom):this.view.dispatch({effects:this.setHover.of([])});}}watchTooltipLeave(e){let n=r=>{e.removeEventListener("mouseleave",n),this.active.length&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])});};e.addEventListener("mouseleave",n);}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove);}}const gf=4;function tj(t,e){let{left:n,right:r,top:i,bottom:s}=t.getBoundingClientRect(),o;if(o=t.querySelector(".cm-tooltip-arrow")){let a=o.getBoundingClientRect();i=Math.min(a.top,i),s=Math.max(a.bottom,s);}return e.clientX>=n-gf&&e.clientX<=r+gf&&e.clientY>=i-gf&&e.clientY<=s+gf}function nj(t,e,n,r,i,s){let o=t.scrollDOM.getBoundingClientRect(),a=t.documentTop+t.documentPadding.top+t.contentHeight;if(o.left>r||o.right<r||o.top>i||Math.min(o.bottom,a)<i)return  false;let l=t.posAtCoords({x:r,y:i},false);return l>=e&&l<=n}function rj(t,e={}){let n=Ae.define(),r=Qt.define({create(){return []},update(i,s){if(i.length&&(e.hideOnChange&&(s.docChanged||s.selection)?i=[]:e.hideOn&&(i=i.filter(o=>!e.hideOn(s,o))),s.docChanged)){let o=[];for(let a of i){let l=s.changes.mapPos(a.pos,-1,tn.TrackDel);if(l!=null){let u=Object.assign(Object.create(null),a);u.pos=l,u.end!=null&&(u.end=s.changes.mapPos(u.end)),o.push(u);}}i=o;}for(let o of s.effects)o.is(n)&&(i=o.value),o.is(ij)&&(i=[]);return i},provide:i=>Ad.from(i)});return {active:r,extension:[r,Rt.define(i=>new ej(i,t,r,n,e.hoverTime||300)),Z_]}}function cw(t,e){let n=t.plugin(iy);if(!n)return null;let r=n.manager.tooltips.indexOf(e);return r<0?null:n.manager.tooltipViews[r]}const ij=Ae.define(),f1=de.define({combine(t){let e,n;for(let r of t)e=e||r.topContainer,n=n||r.bottomContainer;return {topContainer:e,bottomContainer:n}}});function Yu(t,e){let n=t.plugin(fw),r=n?n.specs.indexOf(e):-1;return r>-1?n.panels[r]:null}const fw=Rt.fromClass(class{constructor(t){this.input=t.state.facet(Qu),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(t));let e=t.state.facet(f1);this.top=new yf(t,true,e.topContainer),this.bottom=new yf(t,false,e.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount();}update(t){let e=t.state.facet(f1);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new yf(t.view,true,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new yf(t.view,false,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet(Qu);if(n!=this.input){let r=n.filter(l=>l),i=[],s=[],o=[],a=[];for(let l of r){let u=this.specs.indexOf(l),c;u<0?(c=l(t.view),a.push(c)):(c=this.panels[u],c.update&&c.update(t)),i.push(c),(c.top?s:o).push(c);}this.specs=r,this.panels=i,this.top.sync(s),this.bottom.sync(o);for(let l of a)l.dom.classList.add("cm-panel"),l.mount&&l.mount();}else for(let r of this.panels)r.update&&r.update(t);}destroy(){this.top.sync([]),this.bottom.sync([]);}},{provide:t=>ue.scrollMargins.of(e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class yf{constructor(e,n,r){this.view=e,this.top=n,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses();}sync(e){for(let n of this.panels)n.destroy&&e.indexOf(n)<0&&n.destroy();this.panels=e,this.syncDOM();}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null);}let e=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;e!=n.dom;)e=d1(e);e=e.nextSibling;}else this.dom.insertBefore(n.dom,e);for(;e;)e=d1(e);}scrollMargin(){return !this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of (this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e);}}}function d1(t){let e=t.nextSibling;return t.remove(),e}const Qu=de.define({enables:fw});class ns extends Uo{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return  false}destroy(e){}}ns.prototype.elementClass="";ns.prototype.toDOM=void 0;ns.prototype.mapMode=tn.TrackBefore;ns.prototype.startSide=ns.prototype.endSide=-1;ns.prototype.point=true;const Zf=de.define(),sj=de.define(),oj={class:"",renderEmptyElements:false,elementStyle:"",markers:()=>et.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Eu=de.define();function aj(t){return [dw(),Eu.of(Object.assign(Object.assign({},oj),t))]}const h1=de.define({combine:t=>t.some(e=>e)});function dw(t){return [lj]}const lj=Rt.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(Eu).map(e=>new m1(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(h1),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(false),t.scrollDOM.insertBefore(this.dom,t.contentDOM);}update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,r=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(r<(n.to-n.from)*.8);}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(h1)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport;}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let n=et.iter(this.view.state.facet(Zf),this.view.viewport.from),r=[],i=this.gutters.map(s=>new uj(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(s.type)){let o=true;for(let a of s.type)if(a.type==Tn.Text&&o){ug(n,r,a.from);for(let l of i)l.line(this.view,a,r);o=false;}else if(a.widget)for(let l of i)l.widget(this.view,a);}else if(s.type==Tn.Text){ug(n,r,s.from);for(let o of i)o.line(this.view,s,r);}else if(s.widget)for(let o of i)o.widget(this.view,s);for(let s of i)s.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e);}updateGutters(t){let e=t.startState.facet(Eu),n=t.state.facet(Eu),r=t.docChanged||t.heightChanged||t.viewportChanged||!et.eq(t.startState.facet(Zf),t.state.facet(Zf),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let i of this.gutters)i.update(t)&&(r=true);else {r=true;let i=[];for(let s of n){let o=e.indexOf(s);o<0?i.push(new m1(this.view,s)):(this.gutters[o].update(t),i.push(this.gutters[o]));}for(let s of this.gutters)s.dom.remove(),i.indexOf(s)<0&&s.destroy();for(let s of i)this.dom.appendChild(s.dom);this.gutters=i;}return r}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove();}},{provide:t=>ue.scrollMargins.of(e=>{let n=e.plugin(t);return !n||n.gutters.length==0||!n.fixed?null:e.textDirection==Et.LTR?{left:n.dom.offsetWidth*e.scaleX}:{right:n.dom.offsetWidth*e.scaleX}})});function p1(t){return Array.isArray(t)?t:[t]}function ug(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next();}class uj{constructor(e,n,r){this.gutter=e,this.height=r,this.i=0,this.cursor=et.iter(e.markers,n.from);}addElement(e,n,r){let{gutter:i}=this,s=(n.top-this.height)/e.scaleY,o=n.height/e.scaleY;if(this.i==i.elements.length){let a=new hw(e,o,s,r);i.elements.push(a),i.dom.appendChild(a.dom);}else i.elements[this.i].update(e,o,s,r);this.height=n.bottom,this.i++;}line(e,n,r){let i=[];ug(this.cursor,i,n.from),r.length&&(i=i.concat(r));let s=this.gutter.config.lineMarker(e,n,i);s&&i.unshift(s);let o=this.gutter;i.length==0&&!o.config.renderEmptyElements||this.addElement(e,n,i);}widget(e,n){let r=this.gutter.config.widgetMarker(e,n.widget,n),i=r?[r]:null;for(let s of e.state.facet(sj)){let o=s(e,n.widget,n);o&&(i||(i=[])).push(o);}i&&this.addElement(e,n,i);}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let n=e.elements.pop();e.dom.removeChild(n.dom),n.destroy();}}}class m1{constructor(e,n){this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,i=>{let s=i.target,o;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let l=s.getBoundingClientRect();o=(l.top+l.bottom)/2;}else o=i.clientY;let a=e.lineBlockAtHeight(o-e.documentTop);n.domEventHandlers[r](e,a,i)&&i.preventDefault();});this.markers=p1(n.markers(e)),n.initialSpacer&&(this.spacer=new hw(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none");}update(e){let n=this.markers;if(this.markers=p1(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],e);i!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[i]);}let r=e.view.viewport;return !et.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):false)}destroy(){for(let e of this.elements)e.destroy();}}class hw{constructor(e,n,r,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,n,r,i);}update(e,n,r,i){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),cj(this.markers,i)||this.setMarkers(e,i);}setMarkers(e,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let s=0,o=0;;){let a=o,l=s<n.length?n[s++]:null,u=false;if(l){let c=l.elementClass;c&&(r+=" "+c);for(let f=o;f<this.markers.length;f++)if(this.markers[f].compare(l)){a=f,u=true;break}}else a=this.markers.length;for(;o<a;){let c=this.markers[o++];if(c.toDOM){c.destroy(i);let f=i.nextSibling;i.remove(),i=f;}}if(!l)break;l.toDOM&&(u?i=i.nextSibling:this.dom.insertBefore(l.toDOM(e),i)),u&&o++;}this.dom.className=r,this.markers=n;}destroy(){this.setMarkers(null,[]);}}function cj(t,e){if(t.length!=e.length)return  false;for(let n=0;n<t.length;n++)if(!t[n].compare(e[n]))return  false;return  true}const fj=de.define(),dj=de.define(),Ma=de.define({combine(t){return Mi(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,n){let r=Object.assign({},e);for(let i in n){let s=r[i],o=n[i];r[i]=s?(a,l,u)=>s(a,l,u)||o(a,l,u):o;}return r}})}});class yp extends ns{constructor(e){super(),this.number=e;}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function vp(t,e){return t.state.facet(Ma).formatNumber(e,t.state)}const hj=Eu.compute([Ma],t=>({class:"cm-lineNumbers",renderEmptyElements:false,markers(e){return e.state.facet(fj)},lineMarker(e,n,r){return r.some(i=>i.toDOM)?null:new yp(vp(e,e.state.doc.lineAt(n.from).number))},widgetMarker:(e,n,r)=>{for(let i of e.state.facet(dj)){let s=i(e,n,r);if(s)return s}return null},lineMarkerChange:e=>e.startState.facet(Ma)!=e.state.facet(Ma),initialSpacer(e){return new yp(vp(e,g1(e.state.doc.lines)))},updateSpacer(e,n){let r=vp(n.view,g1(n.view.state.doc.lines));return r==e.number?e:new yp(r)},domEventHandlers:t.facet(Ma).domEventHandlers}));function pj(t={}){return [Ma.of(t),dw(),hj]}function g1(t){let e=9;for(;e<t;)e=e*10+9;return e}const mj=new class extends ns{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter";}},gj=Zf.compute(["selection"],t=>{let e=[],n=-1;for(let r of t.selection.ranges){let i=t.doc.lineAt(r.head).from;i>n&&(n=i,e.push(mj.range(i)));}return et.of(e)});function yj(){return gj}const vj=exports("v", 1024);let Dj=0;class mr{constructor(e,n){this.from=e,this.to=n;}}class je{constructor(e={}){this.id=Dj++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")});}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Xn.match(e)),n=>{let r=e(n);return r===void 0?null:[this,r]}}} exports("j", je);je.closedBy=new je({deserialize:t=>t.split(" ")});je.openedBy=new je({deserialize:t=>t.split(" ")});je.group=new je({deserialize:t=>t.split(" ")});je.isolate=new je({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});je.contextHash=new je({perNode:true});je.lookAhead=new je({perNode:true});je.mounted=new je({perNode:true});class Zu{constructor(e,n,r){this.tree=e,this.overlay=n,this.parser=r;}static get(e){return e&&e.props&&e.props[je.mounted.id]}}const bj=Object.create(null);class Xn{constructor(e,n,r,i=0){this.name=e,this.props=n,this.id=r,this.flags=i;}static define(e){let n=e.props&&e.props.length?Object.create(null):bj,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new Xn(e.name||"",n,e.id,r);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(i)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[s[0].id]=s[1];}}return i}prop(e){return this.props[e.id]}get isTop(){return (this.flags&1)>0}get isSkipped(){return (this.flags&2)>0}get isError(){return (this.flags&4)>0}get isAnonymous(){return (this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return  true;let n=this.prop(je.group);return n?n.indexOf(e)>-1:false}return this.id==e}static match(e){let n=Object.create(null);for(let r in e)for(let i of r.split(" "))n[i]=e[r];return r=>{for(let i=r.prop(je.group),s=-1;s<(i?i.length:0);s++){let o=n[s<0?r.name:i[s]];if(o)return o}}}} exports("X", Xn);Xn.none=new Xn("",Object.create(null),0,8);class pw{constructor(e){this.types=e;for(let n=0;n<e.length;n++)if(e[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let n=[];for(let r of this.types){let i=null;for(let s of e){let o=s(r);o&&(i||(i=Object.assign({},r.props)),i[o[0].id]=o[1]);}n.push(i?new Xn(r.name,i,r.id,r.flags):r);}return new pw(n)}} exports("p", pw);const vf=new WeakMap,y1=new WeakMap;var $t; exports("$", $t);(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays";})($t||(exports("$", $t={})));class zt{constructor(e,n,r,i,s){if(this.type=e,this.children=n,this.positions=r,this.length=i,this.props=null,s&&s.length){this.props=Object.create(null);for(let[o,a]of s)this.props[typeof o=="number"?o:o.id]=a;}}toString(){let e=Zu.get(this);if(e&&!e.overlay)return e.tree.toString();let n="";for(let r of this.children){let i=r.toString();i&&(n&&(n+=","),n+=i);}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(e=0){return new Td(this.topNode,e)}cursorAt(e,n=0,r=0){let i=vf.get(this)||this.topNode,s=new Td(i);return s.moveTo(e,n),vf.set(this,s._tree),s}get topNode(){return new yn(this,0,0,null)}resolve(e,n=0){let r=ec(vf.get(this)||this.topNode,e,n,false);return vf.set(this,r),r}resolveInner(e,n=0){let r=ec(y1.get(this)||this.topNode,e,n,true);return y1.set(this,r),r}resolveStack(e,n=0){return Ej(this,e,n)}iterate(e){let{enter:n,leave:r,from:i=0,to:s=this.length}=e,o=e.mode||0,a=(o&$t.IncludeAnonymous)>0;for(let l=this.cursor(o|$t.IncludeAnonymous);;){let u=false;if(l.from<=s&&l.to>=i&&(!a&&l.type.isAnonymous||n(l)!==false)){if(l.firstChild())continue;u=true;}for(;u&&r&&(a||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;u=true;}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let n in this.props)e.push([+n,this.props[n]]);return e}balance(e={}){return this.children.length<=8?this:ly(Xn.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new zt(this.type,n,r,i,this.propValues),e.makeTree||((n,r,i)=>new zt(Xn.none,n,r,i)))}static build(e){return Fj(e)}} exports("z", zt);zt.empty=new zt(Xn.none,[],[],0);class oy{constructor(e,n){this.buffer=e,this.index=n;}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4;}fork(){return new oy(this.buffer,this.index)}}class to{constructor(e,n,r){this.buffer=e,this.length=n,this.set=r;}get type(){return Xn.none}toString(){let e=[];for(let n=0;n<this.buffer.length;)e.push(this.childString(n)),n=this.buffer[n+3];return e.join(",")}childString(e){let n=this.buffer[e],r=this.buffer[e+3],i=this.set.types[n],s=i.name;if(/\W/.test(s)&&!i.isError&&(s=JSON.stringify(s)),e+=4,r==e)return s;let o=[];for(;e<r;)o.push(this.childString(e)),e=this.buffer[e+3];return s+"("+o.join(",")+")"}findChild(e,n,r,i,s){let{buffer:o}=this,a=-1;for(let l=e;l!=n&&!(mw(s,i,o[l+1],o[l+2])&&(a=l,r>0));l=o[l+3]);return a}slice(e,n,r){let i=this.buffer,s=new Uint16Array(n-e),o=0;for(let a=e,l=0;a<n;){s[l++]=i[a++],s[l++]=i[a++]-r;let u=s[l++]=i[a++]-r;s[l++]=i[a++]-e,o=Math.max(o,u);}return new to(s,o,this.set)}}function mw(t,e,n,r){switch(t){case  -2:return n<e;case  -1:return r>=e&&n<e;case 0:return n<e&&r>e;case 1:return n<=e&&r>e;case 2:return r>e;case 4:return  true}}function ec(t,e,n,r){for(var i;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to<e);){let o=!r&&t instanceof yn&&t.index<0?null:t.parent;if(!o)return t;t=o;}let s=r?0:$t.IgnoreOverlays;if(r)for(let o=t,a=o.parent;a;o=a,a=o.parent)o instanceof yn&&o.index<0&&((i=a.enter(e,n,s))===null||i===void 0?void 0:i.from)!=o.from&&(t=a);for(;;){let o=t.enter(e,n,s);if(!o)return t;t=o;}}class gw{cursor(e=0){return new Td(this,e)}getChild(e,n=null,r=null){let i=v1(this,e,n,r);return i.length?i[0]:null}getChildren(e,n=null,r=null){return v1(this,e,n,r)}resolve(e,n=0){return ec(this,e,n,false)}resolveInner(e,n=0){return ec(this,e,n,true)}matchContext(e){return cg(this.parent,e)}enterUnfinishedNodesBefore(e){let n=this.childBefore(e),r=this;for(;n;){let i=n.lastChild;if(!i||i.to!=n.to)break;i.type.isError&&i.from==i.to?(r=n,n=i.prevSibling):n=i;}return r}get node(){return this}get next(){return this.parent}}class yn extends gw{constructor(e,n,r,i){super(),this._tree=e,this.from=n,this.index=r,this._parent=i;}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,n,r,i,s=0){for(let o=this;;){for(let{children:a,positions:l}=o._tree,u=n>0?a.length:-1;e!=u;e+=n){let c=a[e],f=l[e]+o.from;if(mw(i,r,f,f+c.length)){if(c instanceof to){if(s&$t.ExcludeBuffers)continue;let d=c.findChild(0,c.buffer.length,n,r-f,i);if(d>-1)return new Di(new Cj(o,c,e,f),null,d)}else if(s&$t.IncludeAnonymous||!c.type.isAnonymous||ay(c)){let d;if(!(s&$t.IgnoreMounts)&&(d=Zu.get(c))&&!d.overlay)return new yn(d.tree,f,e,o);let h=new yn(c,f,e,o);return s&$t.IncludeAnonymous||!h.type.isAnonymous?h:h.nextChild(n<0?c.children.length-1:0,n,r,i)}}}if(s&$t.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+n:e=n<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,n,r=0){let i;if(!(r&$t.IgnoreOverlays)&&(i=Zu.get(this._tree))&&i.overlay){let s=e-this.from;for(let{from:o,to:a}of i.overlay)if((n>0?o<=s:o<s)&&(n<0?a>=s:a>s))return new yn(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,n,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function v1(t,e,n,r){let i=t.cursor(),s=[];if(!i.firstChild())return s;if(n!=null){for(let o=false;!o;)if(o=i.type.is(n),!i.nextSibling())return s}for(;;){if(r!=null&&i.type.is(r))return s;if(i.type.is(e)&&s.push(i.node),!i.nextSibling())return r==null?s:[]}}function cg(t,e,n=e.length-1){for(let r=t;n>=0;r=r.parent){if(!r)return  false;if(!r.type.isAnonymous){if(e[n]&&e[n]!=r.name)return  false;n--;}}return  true}class Cj{constructor(e,n,r,i){this.parent=e,this.buffer=n,this.index=r,this.start=i;}}class Di extends gw{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,n,r){super(),this.context=e,this._parent=n,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]];}child(e,n,r){let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],e,n-this.context.start,r);return s<0?null:new Di(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,n,r=0){if(r&$t.ExcludeBuffers)return null;let{buffer:i}=this.context,s=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return s<0?null:new Di(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Di(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new Di(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],n=[],{buffer:r}=this.context,i=this.index+4,s=r.buffer[this.index+3];if(s>i){let o=r.buffer[this.index+1];e.push(r.slice(i,s,o)),n.push(0);}return new zt(this.type,e,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function yw(t){if(!t.length)return null;let e=0,n=t[0];for(let s=1;s<t.length;s++){let o=t[s];(o.from>n.from||o.to<n.to)&&(n=o,e=s);}let r=n instanceof yn&&n.index<0?null:n.parent,i=t.slice();return r?i[e]=r:i.splice(e,1),new xj(i,n)}class xj{constructor(e,n){this.heads=e,this.node=n;}get next(){return yw(this.heads)}}function Ej(t,e,n){let r=t.resolveInner(e,n),i=null;for(let s=r instanceof yn?r:r.context.parent;s;s=s.parent)if(s.index<0){let o=s.parent;(i||(i=[r])).push(o.resolve(e,n)),s=o;}else {let o=Zu.get(s.tree);if(o&&o.overlay&&o.overlay[0].from<=e&&o.overlay[o.overlay.length-1].to>=e){let a=new yn(o.tree,o.overlay[0].from+s.from,-1,s);(i||(i=[r])).push(ec(a,e,n,false));}}return i?yw(i):r}class Td{get name(){return this.type.name}constructor(e,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof yn)this.yieldNode(e);else {this._tree=e.context.parent,this.buffer=e.context;for(let r=e._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=e,this.yieldBuf(e.index);}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,true):false}yieldBuf(e,n){this.index=e;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[e]],this.from=r+i.buffer[e+1],this.to=r+i.buffer[e+2],true}yield(e){return e?e instanceof yn?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):false}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,n,r,this.mode));let{buffer:i}=this.buffer,s=i.findChild(this.index+4,i.buffer[this.index+3],e,n-this.buffer.start,r);return s<0?false:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,n,r=this.mode){return this.buffer?r&$t.ExcludeBuffers?false:this.enterChild(1,e,n):this.yield(this._tree.enter(e,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&$t.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&$t.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):false;let{buffer:n}=this.buffer,r=this.stack.length-1;if(e<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else {let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):false}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let n,r,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return  false}else for(let s=0;s<this.index;s++)if(i.buffer.buffer[s+3]<this.index)return  false;({index:n,parent:r}=i);}else ({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let s=n+e,o=e<0?-1:r._tree.children.length;s!=o;s+=e){let a=r._tree.children[s];if(this.mode&$t.IncludeAnonymous||a instanceof to||!a.type.isAnonymous||ay(a))return  false}return  true}move(e,n){if(n&&this.enterChild(e,0,4))return  true;for(;;){if(this.sibling(e))return  true;if(this.atLastNode(e)||!this.parent())return  false}}next(e=true){return this.move(1,e)}prev(e=true){return this.move(-1,e)}moveTo(e,n=0){for(;(this.from==this.to||(n<1?this.from>=e:this.from>e)||(n>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,n););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,n=null,r=0;if(e&&e.context==this.buffer)e:for(let i=this.index,s=this.stack.length;s>=0;){for(let o=e;o;o=o._parent)if(o.index==i){if(i==this.index)return o;n=o,r=s+1;break e}i=this.stack[--s];}for(let i=r;i<this.stack.length;i++)n=new Di(this.buffer,n,this.stack[i]);return this.bufferNode=new Di(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,n){for(let r=0;;){let i=false;if(this.type.isAnonymous||e(this)!==false){if(this.firstChild()){r++;continue}this.type.isAnonymous||(i=true);}for(;;){if(i&&n&&n(this),i=this.type.isAnonymous,!r)return;if(this.nextSibling())break;this.parent(),r--,i=true;}}}matchContext(e){if(!this.buffer)return cg(this.node.parent,e);let{buffer:n}=this.buffer,{types:r}=n.set;for(let i=e.length-1,s=this.stack.length-1;i>=0;s--){if(s<0)return cg(this._tree,e,i);let o=r[n.buffer[this.stack[s]]];if(!o.isAnonymous){if(e[i]&&e[i]!=o.name)return  false;i--;}}return  true}}function ay(t){return t.children.some(e=>e instanceof to||!e.type.isAnonymous||ay(e))}function Fj(t){var e;let{buffer:n,nodeSet:r,maxBufferLength:i=vj,reused:s=[],minRepeatType:o=r.types.length}=t,a=Array.isArray(n)?new oy(n,n.length):n,l=r.types,u=0,c=0;function f(D,C,E,S,A,M){let{id:k,start:N,end:O,size:T}=a,I=c,j=u;for(;T<0;)if(a.next(),T==-1){let me=s[k];E.push(me),S.push(N-D);return}else if(T==-3){u=k;return}else if(T==-4){c=k;return}else throw new RangeError(`Unrecognized record size: ${T}`);let _=l[k],R,L,G=N-D;if(O-N<=i&&(L=g(a.pos-C,A))){let me=new Uint16Array(L.size-L.skip),ye=a.pos-L.size,ve=me.length;for(;a.pos>ye;)ve=y(L.start,me,ve);R=new to(me,O-L.start,r),G=L.start-D;}else {let me=a.pos-T;a.next();let ye=[],ve=[],Se=k>=o?k:-1,Fe=0,Ge=O;for(;a.pos>me;)Se>=0&&a.id==Se&&a.size>=0?(a.end<=Ge-i&&(p(ye,ve,N,Fe,a.end,Ge,Se,I,j),Fe=ye.length,Ge=a.end),a.next()):M>2500?d(N,me,ye,ve):f(N,me,ye,ve,Se,M+1);if(Se>=0&&Fe>0&&Fe<ye.length&&p(ye,ve,N,Fe,N,Ge,Se,I,j),ye.reverse(),ve.reverse(),Se>-1&&Fe>0){let Te=h(_,j);R=ly(_,ye,ve,0,ye.length,0,O-N,Te,Te);}else R=m(_,ye,ve,O-N,I-O,j);}E.push(R),S.push(G);}function d(D,C,E,S){let A=[],M=0,k=-1;for(;a.pos>C;){let{id:N,start:O,end:T,size:I}=a;if(I>4)a.next();else {if(k>-1&&O<k)break;k<0&&(k=T-i),A.push(N,O,T),M++,a.next();}}if(M){let N=new Uint16Array(M*4),O=A[A.length-2];for(let T=A.length-3,I=0;T>=0;T-=3)N[I++]=A[T],N[I++]=A[T+1]-O,N[I++]=A[T+2]-O,N[I++]=I;E.push(new to(N,A[2]-O,r)),S.push(O-D);}}function h(D,C){return (E,S,A)=>{let M=0,k=E.length-1,N,O;if(k>=0&&(N=E[k])instanceof zt){if(!k&&N.type==D&&N.length==A)return N;(O=N.prop(je.lookAhead))&&(M=S[k]+N.length+O);}return m(D,E,S,A,M,C)}}function p(D,C,E,S,A,M,k,N,O){let T=[],I=[];for(;D.length>S;)T.push(D.pop()),I.push(C.pop()+E-A);D.push(m(r.types[k],T,I,M-A,N-M,O)),C.push(A-E);}function m(D,C,E,S,A,M,k){if(M){let N=[je.contextHash,M];k=k?[N].concat(k):[N];}if(A>25){let N=[je.lookAhead,A];k=k?[N].concat(k):[N];}return new zt(D,C,E,S,k)}function g(D,C){let E=a.fork(),S=0,A=0,M=0,k=E.end-i,N={size:0,start:0,skip:0};e:for(let O=E.pos-D;E.pos>O;){let T=E.size;if(E.id==C&&T>=0){N.size=S,N.start=A,N.skip=M,M+=4,S+=4,E.next();continue}let I=E.pos-T;if(T<0||I<O||E.start<k)break;let j=E.id>=o?4:0,_=E.start;for(E.next();E.pos>I;){if(E.size<0)if(E.size==-3)j+=4;else break e;else E.id>=o&&(j+=4);E.next();}A=_,S+=T,M+=j;}return (C<0||S==D)&&(N.size=S,N.start=A,N.skip=M),N.size>4?N:void 0}function y(D,C,E){let{id:S,start:A,end:M,size:k}=a;if(a.next(),k>=0&&S<o){let N=E;if(k>4){let O=a.pos-(k-4);for(;a.pos>O;)E=y(D,C,E);}C[--E]=N,C[--E]=M-D,C[--E]=A-D,C[--E]=S;}else k==-3?u=S:k==-4&&(c=S);return E}let F=[],x=[];for(;a.pos>0;)f(t.start||0,t.bufferStart||0,F,x,-1,0);let b=(e=t.length)!==null&&e!==void 0?e:F.length?x[0]+F[0].length:0;return new zt(l[t.topID],F.reverse(),x.reverse(),b)}const D1=new WeakMap;function ed(t,e){if(!t.isAnonymous||e instanceof to||e.type!=t)return 1;let n=D1.get(e);if(n==null){n=1;for(let r of e.children){if(r.type!=t||!(r instanceof zt)){n=1;break}n+=ed(t,r);}D1.set(e,n);}return n}function ly(t,e,n,r,i,s,o,a,l){let u=0;for(let p=r;p<i;p++)u+=ed(t,e[p]);let c=Math.ceil(u*1.5/8),f=[],d=[];function h(p,m,g,y,F){for(let x=g;x<y;){let b=x,D=m[x],C=ed(t,p[x]);for(x++;x<y;x++){let E=ed(t,p[x]);if(C+E>=c)break;C+=E;}if(x==b+1){if(C>c){let E=p[b];h(E.children,E.positions,0,E.children.length,m[b]+F);continue}f.push(p[b]);}else {let E=m[x-1]+p[x-1].length-D;f.push(ly(t,p,m,b,x,D,E,null,l));}d.push(D+F-s);}}return h(e,n,r,i,0),(a||l)(f,d,o)}class Dte{constructor(){this.map=new WeakMap;}setBuffer(e,n,r){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(n,r);}getBuffer(e,n){let r=this.map.get(e);return r&&r.get(n)}set(e,n){e instanceof Di?this.setBuffer(e.context.buffer,e.index,n):e instanceof yn&&this.map.set(e.tree,n);}get(e){return e instanceof Di?this.getBuffer(e.context.buffer,e.index):e instanceof yn?this.map.get(e.tree):void 0}cursorSet(e,n){e.buffer?this.setBuffer(e.buffer.buffer,e.index,n):this.map.set(e.tree,n);}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}} exports("D", Dte);class Yi{constructor(e,n,r,i,s=false,o=false){this.from=e,this.to=n,this.tree=r,this.offset=i,this.open=(s?1:0)|(o?2:0);}get openStart(){return (this.open&1)>0}get openEnd(){return (this.open&2)>0}static addTree(e,n=[],r=false){let i=[new Yi(0,e.length,e,0,false,r)];for(let s of n)s.to>e.length&&i.push(s);return i}static applyChanges(e,n,r=128){if(!n.length)return e;let i=[],s=1,o=e.length?e[0]:null;for(let a=0,l=0,u=0;;a++){let c=a<n.length?n[a]:null,f=c?c.fromA:1e9;if(f-l>=r)for(;o&&o.from<f;){let d=o;if(l>=d.from||f<=d.to||u){let h=Math.max(d.from,l)-u,p=Math.min(d.to,f)-u;d=h>=p?null:new Yi(h,p,d.tree,d.offset+u,a>0,!!c);}if(d&&i.push(d),o.to>f)break;o=s<e.length?e[s++]:null;}if(!c)break;l=c.toA,u=c.toA-c.toB;}return i}}class wj{startParse(e,n,r){return typeof e=="string"&&(e=new Sj(e)),r=r?r.length?r.map(i=>new mr(i.from,i.to)):[new mr(0,0)]:[new mr(0,e.length)],this.createParse(e,n||[],r)}parse(e,n,r){let i=this.startParse(e,n,r);for(;;){let s=i.advance();if(s)return s}}} exports("e", wj);class Sj{constructor(e){this.string=e;}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return  false}read(e,n){return this.string.slice(e,n)}}function bte(t){return (e,n,r,i)=>new Tj(e,t,n,r,i)}class b1{constructor(e,n,r,i,s){this.parser=e,this.parse=n,this.overlay=r,this.target=i,this.from=s;}}function C1(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class Aj{constructor(e,n,r,i,s,o,a){this.parser=e,this.predicate=n,this.mounts=r,this.index=i,this.start=s,this.target=o,this.prev=a,this.depth=0,this.ranges=[];}}const fg=new je({perNode:true});class Tj{constructor(e,n,r,i,s){this.nest=n,this.input=r,this.fragments=i,this.ranges=s,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e;}advance(){if(this.baseParse){let r=this.baseParse.advance();if(!r)return null;if(this.baseParse=null,this.baseTree=r,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt);}if(this.innerDone==this.inner.length){let r=this.baseTree;return this.stoppedAt!=null&&(r=new zt(r.type,r.children,r.positions,r.length,r.propValues.concat([[fg,this.stoppedAt]]))),r}let e=this.inner[this.innerDone],n=e.parse.advance();if(n){this.innerDone++;let r=Object.assign(Object.create(null),e.target.props);r[je.mounted.id]=new Zu(n,e.overlay,e.parser),e.target.props=r;}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].from<e&&(e=Math.min(e,this.inner[n].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].parse.stopAt(e);}startInner(){let e=new Oj(this.fragments),n=null,r=null,i=new Td(new yn(this.baseTree,this.ranges[0].from,0,null),$t.IncludeAnonymous|$t.IgnoreMounts);e:for(let s,o;;){let a=true,l;if(this.stoppedAt!=null&&i.from>=this.stoppedAt)a=false;else if(e.hasNode(i)){if(n){let u=n.mounts.find(c=>c.frag.from<=i.from&&c.frag.to>=i.to&&c.mount.overlay);if(u)for(let c of u.mount.overlay){let f=c.from+u.pos,d=c.to+u.pos;f>=i.from&&d<=i.to&&!n.ranges.some(h=>h.from<d&&h.to>f)&&n.ranges.push({from:f,to:d});}}a=false;}else if(r&&(o=kj(r.ranges,i.from,i.to)))a=o!=2;else if(!i.type.isAnonymous&&(s=this.nest(i,this.input))&&(i.from<i.to||!s.overlay)){i.tree||Bj(i);let u=e.findMounts(i.from,s.parser);if(typeof s.overlay=="function")n=new Aj(s.parser,s.overlay,u,this.inner.length,i.from,i.tree,n);else {let c=F1(this.ranges,s.overlay||(i.from<i.to?[new mr(i.from,i.to)]:[]));c.length&&C1(c),(c.length||!s.overlay)&&this.inner.push(new b1(s.parser,c.length?s.parser.startParse(this.input,w1(u,c),c):s.parser.startParse(""),s.overlay?s.overlay.map(f=>new mr(f.from-i.from,f.to-i.from)):null,i.tree,c.length?c[0].from:i.from)),s.overlay?c.length&&(r={ranges:c,depth:0,prev:r}):a=false;}}else if(n&&(l=n.predicate(i))&&(l===true&&(l=new mr(i.from,i.to)),l.from<l.to)){let u=n.ranges.length-1;u>=0&&n.ranges[u].to==l.from?n.ranges[u]={from:n.ranges[u].from,to:l.to}:n.ranges.push(l);}if(a&&i.firstChild())n&&n.depth++,r&&r.depth++;else for(;!i.nextSibling();){if(!i.parent())break e;if(n&&!--n.depth){let u=F1(this.ranges,n.ranges);u.length&&(C1(u),this.inner.splice(n.index,0,new b1(n.parser,n.parser.startParse(this.input,w1(n.mounts,u),u),n.ranges.map(c=>new mr(c.from-n.start,c.to-n.start)),n.target,u[0].from))),n=n.prev;}r&&!--r.depth&&(r=r.prev);}}}}function kj(t,e,n){for(let r of t){if(r.from>=n)break;if(r.to>e)return r.from<=e&&r.to>=n?2:1}return 0}function x1(t,e,n,r,i,s){if(e<n){let o=t.buffer[e+1];r.push(t.slice(e,n,o)),i.push(o-s);}}function Bj(t){let{node:e}=t,n=[],r=e.context.buffer;do n.push(t.index),t.parent();while(!t.tree);let i=t.tree,s=i.children.indexOf(r),o=i.children[s],a=o.buffer,l=[s];function u(c,f,d,h,p,m){let g=n[m],y=[],F=[];x1(o,c,g,y,F,h);let x=a[g+1],b=a[g+2];l.push(y.length);let D=m?u(g+4,a[g+3],o.set.types[a[g]],x,b-x,m-1):e.toTree();return y.push(D),F.push(x-h),x1(o,a[g+3],f,y,F,h),new zt(d,y,F,p)}i.children[s]=u(0,a.length,Xn.none,0,o.length,n.length-1);for(let c of l){let f=t.tree.children[c],d=t.tree.positions[c];t.yield(new yn(f,d+t.from,c,t._tree));}}class E1{constructor(e,n){this.offset=n,this.done=false,this.cursor=e.cursor($t.IncludeAnonymous|$t.IgnoreMounts);}moveTo(e){let{cursor:n}=this,r=e-this.offset;for(;!this.done&&n.from<r;)n.to>=e&&n.enter(r,1,$t.IgnoreOverlays|$t.ExcludeBuffers)||n.next(false)||(this.done=true);}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let n=this.cursor.tree;;){if(n==e.tree)return  true;if(n.children.length&&n.positions[0]==0&&n.children[0]instanceof zt)n=n.children[0];else break}return  false}}class Oj{constructor(e){var n;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let r=this.curFrag=e[0];this.curTo=(n=r.tree.prop(fg))!==null&&n!==void 0?n:r.to,this.inner=new E1(r.tree,-r.offset);}else this.curFrag=this.inner=null;}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else {let n=this.curFrag=this.fragments[this.fragI];this.curTo=(e=n.tree.prop(fg))!==null&&e!==void 0?e:n.to,this.inner=new E1(n.tree,-n.offset);}}findMounts(e,n){var r;let i=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let s=this.inner.cursor.node;s;s=s.parent){let o=(r=s.tree)===null||r===void 0?void 0:r.prop(je.mounted);if(o&&o.parser==n)for(let a=this.fragI;a<this.fragments.length;a++){let l=this.fragments[a];if(l.from>=s.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:s.from-l.offset,mount:o});}}}return i}}function F1(t,e){let n=null,r=e;for(let i=1,s=0;i<t.length;i++){let o=t[i-1].to,a=t[i].from;for(;s<r.length;s++){let l=r[s];if(l.from>=a)break;l.to<=o||(n||(r=n=e.slice()),l.from<o?(n[s]=new mr(l.from,o),l.to>a&&n.splice(s+1,0,new mr(a,l.to))):l.to>a?n[s--]=new mr(a,l.to):n.splice(s--,1));}}return r}function $j(t,e,n,r){let i=0,s=0,o=false,a=false,l=-1e9,u=[];for(;;){let c=i==t.length?1e9:o?t[i].to:t[i].from,f=s==e.length?1e9:a?e[s].to:e[s].from;if(o!=a){let d=Math.max(l,n),h=Math.min(c,f,r);d<h&&u.push(new mr(d,h));}if(l=Math.min(c,f),l==1e9)break;c==l&&(o?(o=false,i++):o=true),f==l&&(a?(a=false,s++):a=true);}return u}function w1(t,e){let n=[];for(let{pos:r,mount:i,frag:s}of t){let o=r+(i.overlay?i.overlay[0].from:0),a=o+i.tree.length,l=Math.max(s.from,o),u=Math.min(s.to,a);if(i.overlay){let c=i.overlay.map(d=>new mr(d.from+r,d.to+r)),f=$j(e,c,l,u);for(let d=0,h=l;;d++){let p=d==f.length,m=p?u:f[d].from;if(m>h&&n.push(new Yi(h,m,i.tree,-o,s.from>=h||s.openStart,s.to<=m||s.openEnd)),p)break;h=f[d].to;}}else n.push(new Yi(l,u,i.tree,-o,s.from>=o||s.openStart,s.to<=a||s.openEnd));}return n}let Mj=0;class hr{constructor(e,n,r,i){this.name=e,this.set=n,this.base=r,this.modified=i,this.id=Mj++;}toString(){let{name:e}=this;for(let n of this.modified)n.name&&(e=`${n.name}(${e})`);return e}static define(e,n){let r=typeof e=="string"?e:"?";if(e instanceof hr&&(n=e),n!=null&&n.base)throw new Error("Can not derive from a modified tag");let i=new hr(r,[],null,[]);if(i.set.push(i),n)for(let s of n.set)i.set.push(s);return i}static defineModifier(e){let n=new kd(e);return r=>r.modified.indexOf(n)>-1?r:kd.get(r.base||r,r.modified.concat(n).sort((i,s)=>i.id-s.id))}}let Pj=0;class kd{constructor(e){this.name=e,this.instances=[],this.id=Pj++;}static get(e,n){if(!n.length)return e;let r=n[0].instances.find(a=>a.base==e&&Nj(n,a.modified));if(r)return r;let i=[],s=new hr(e.name,i,e,n);for(let a of n)a.instances.push(s);let o=Ij(n);for(let a of e.set)if(!a.modified.length)for(let l of o)i.push(kd.get(a,l));return s}}function Nj(t,e){return t.length==e.length&&t.every((n,r)=>n==e[r])}function Ij(t){let e=[[]];for(let n=0;n<t.length;n++)for(let r=0,i=e.length;r<i;r++)e.push(e[r].concat(t[n]));return e.sort((n,r)=>r.length-n.length)}function Lj(t){let e=Object.create(null);for(let n in t){let r=t[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let s=[],o=2,a=i;for(let f=0;;){if(a=="..."&&f>0&&f+3==i.length){o=1;break}let d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!d)throw new RangeError("Invalid path: "+i);if(s.push(d[0]=="*"?"":d[0][0]=='"'?JSON.parse(d[0]):d[0]),f+=d[0].length,f==i.length)break;let h=i[f++];if(f==i.length&&h=="!"){o=0;break}if(h!="/")throw new RangeError("Invalid path: "+i);a=i.slice(f);}let l=s.length-1,u=s[l];if(!u)throw new RangeError("Invalid path: "+i);let c=new Bd(r,o,l>0?s.slice(0,l):null);e[u]=c.sort(e[u]);}}return vw.add(e)}const vw=new je;class Bd{constructor(e,n,r,i){this.tags=e,this.mode=n,this.context=r,this.next=i;}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return !e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}Bd.empty=new Bd([],2,null);function Dw(t,e){let n=Object.create(null);for(let s of t)if(!Array.isArray(s.tag))n[s.tag.id]=s.class;else for(let o of s.tag)n[o.id]=s.class;let{scope:r,all:i=null}=e||{};return {style:s=>{let o=i;for(let a of s)for(let l of a.set){let u=n[l.id];if(u){o=o?o+" "+u:u;break}}return o},scope:r}}function Rj(t,e){let n=null;for(let r of t){let i=r.style(e);i&&(n=n?n+" "+i:i);}return n}function _j(t,e,n,r=0,i=t.length){let s=new jj(r,Array.isArray(e)?e:[e],n);s.highlightRange(t.cursor(),r,i,"",s.highlighters),s.flush(i);}class jj{constructor(e,n,r){this.at=e,this.highlighters=n,this.span=r,this.class="";}startSpan(e,n){n!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=n);}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class);}highlightRange(e,n,r,i,s){let{type:o,from:a,to:l}=e;if(a>=r||l<=n)return;o.isTop&&(s=this.highlighters.filter(h=>!h.scope||h.scope(o)));let u=i,c=Vj(e)||Bd.empty,f=Rj(s,c.tags);if(f&&(u&&(u+=" "),u+=f,c.mode==1&&(i+=(i?" ":"")+f)),this.startSpan(Math.max(n,a),u),c.opaque)return;let d=e.tree&&e.tree.prop(je.mounted);if(d&&d.overlay){let h=e.node.enter(d.overlay[0].from+a,1),p=this.highlighters.filter(g=>!g.scope||g.scope(d.tree.type)),m=e.firstChild();for(let g=0,y=a;;g++){let F=g<d.overlay.length?d.overlay[g]:null,x=F?F.from+a:l,b=Math.max(n,y),D=Math.min(r,x);if(b<D&&m)for(;e.from<D&&(this.highlightRange(e,b,D,i,s),this.startSpan(Math.min(D,e.to),u),!(e.to>=x||!e.nextSibling())););if(!F||x>r)break;y=F.to+a,y>n&&(this.highlightRange(h.cursor(),Math.max(n,F.from+a),Math.min(r,y),"",p),this.startSpan(Math.min(r,y),u));}m&&e.parent();}else if(e.firstChild()){d&&(i="");do if(!(e.to<=n)){if(e.from>=r)break;this.highlightRange(e,n,r,i,s),this.startSpan(Math.min(r,e.to),u);}while(e.nextSibling());e.parent();}}}function Vj(t){let e=t.type.prop(vw);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const ae=hr.define,Df=ae(),Rs=ae(),S1=ae(Rs),A1=ae(Rs),_s=ae(),bf=ae(_s),Dp=ae(_s),fi=ae(),Co=ae(fi),ui=ae(),ci=ae(),dg=ae(),Gl=ae(dg),Cf=ae(),w=exports("a", {comment:Df,lineComment:ae(Df),blockComment:ae(Df),docComment:ae(Df),name:Rs,variableName:ae(Rs),typeName:S1,tagName:ae(S1),propertyName:A1,attributeName:ae(A1),className:ae(Rs),labelName:ae(Rs),namespace:ae(Rs),macroName:ae(Rs),literal:_s,string:bf,docString:ae(bf),character:ae(bf),attributeValue:ae(bf),number:Dp,integer:ae(Dp),float:ae(Dp),bool:ae(_s),regexp:ae(_s),escape:ae(_s),color:ae(_s),url:ae(_s),keyword:ui,self:ae(ui),null:ae(ui),atom:ae(ui),unit:ae(ui),modifier:ae(ui),operatorKeyword:ae(ui),controlKeyword:ae(ui),definitionKeyword:ae(ui),moduleKeyword:ae(ui),operator:ci,derefOperator:ae(ci),arithmeticOperator:ae(ci),logicOperator:ae(ci),bitwiseOperator:ae(ci),compareOperator:ae(ci),updateOperator:ae(ci),definitionOperator:ae(ci),typeOperator:ae(ci),controlOperator:ae(ci),punctuation:dg,separator:ae(dg),bracket:Gl,angleBracket:ae(Gl),squareBracket:ae(Gl),paren:ae(Gl),brace:ae(Gl),content:fi,heading:Co,heading1:ae(Co),heading2:ae(Co),heading3:ae(Co),heading4:ae(Co),heading5:ae(Co),heading6:ae(Co),contentSeparator:ae(fi),list:ae(fi),quote:ae(fi),emphasis:ae(fi),strong:ae(fi),link:ae(fi),monospace:ae(fi),strikethrough:ae(fi),inserted:ae(),deleted:ae(),changed:ae(),invalid:ae(),meta:Cf,documentMeta:ae(Cf),annotation:ae(Cf),processingInstruction:ae(Cf),definition:hr.defineModifier("definition"),constant:hr.defineModifier("constant"),function:hr.defineModifier("function"),standard:hr.defineModifier("standard"),local:hr.defineModifier("local"),special:hr.defineModifier("special")});for(let t in w){let e=w[t];e instanceof hr&&(e.name=t);}Dw([{tag:w.link,class:"tok-link"},{tag:w.heading,class:"tok-heading"},{tag:w.emphasis,class:"tok-emphasis"},{tag:w.strong,class:"tok-strong"},{tag:w.keyword,class:"tok-keyword"},{tag:w.atom,class:"tok-atom"},{tag:w.bool,class:"tok-bool"},{tag:w.url,class:"tok-url"},{tag:w.labelName,class:"tok-labelName"},{tag:w.inserted,class:"tok-inserted"},{tag:w.deleted,class:"tok-deleted"},{tag:w.literal,class:"tok-literal"},{tag:w.string,class:"tok-string"},{tag:w.number,class:"tok-number"},{tag:[w.regexp,w.escape,w.special(w.string)],class:"tok-string2"},{tag:w.variableName,class:"tok-variableName"},{tag:w.local(w.variableName),class:"tok-variableName tok-local"},{tag:w.definition(w.variableName),class:"tok-variableName tok-definition"},{tag:w.special(w.variableName),class:"tok-variableName2"},{tag:w.definition(w.propertyName),class:"tok-propertyName tok-definition"},{tag:w.typeName,class:"tok-typeName"},{tag:w.namespace,class:"tok-namespace"},{tag:w.className,class:"tok-className"},{tag:w.macroName,class:"tok-macroName"},{tag:w.propertyName,class:"tok-propertyName"},{tag:w.operator,class:"tok-operator"},{tag:w.comment,class:"tok-comment"},{tag:w.meta,class:"tok-meta"},{tag:w.invalid,class:"tok-invalid"},{tag:w.punctuation,class:"tok-punctuation"}]);var bp;const Pa=new je;function qj(t){return de.define({combine:t?e=>e.concat(t):void 0})}const Wj=exports("W", new je);class Wr{constructor(e,n,r=[],i=""){this.data=e,this.name=i,Ve.prototype.hasOwnProperty("tree")||Object.defineProperty(Ve.prototype,"tree",{get(){return ln(this)}}),this.parser=n,this.extension=[no.of(this),Ve.languageData.of((s,o,a)=>{let l=T1(s,o,a),u=l.type.prop(Pa);if(!u)return [];let c=s.facet(u),f=l.type.prop(Wj);if(f){let d=l.resolve(o-l.from,a);for(let h of f)if(h.test(d,s)){let p=s.facet(h.facet);return h.type=="replace"?p:p.concat(c)}}return c})].concat(r);}isActiveAt(e,n,r=-1){return T1(e,n,r).type.prop(Pa)==this.data}findRegions(e){let n=e.facet(no);if((n==null?void 0:n.data)==this.data)return [{from:0,to:e.doc.length}];if(!n||!n.allowsNesting)return [];let r=[],i=(s,o)=>{if(s.prop(Pa)==this.data){r.push({from:o,to:o+s.length});return}let a=s.prop(je.mounted);if(a){if(a.tree.prop(Pa)==this.data){if(a.overlay)for(let l of a.overlay)r.push({from:l.from+o,to:l.to+o});else r.push({from:o,to:o+s.length});return}else if(a.overlay){let l=r.length;if(i(a.tree,a.overlay[0].from+o),r.length>l)return}}for(let l=0;l<s.children.length;l++){let u=s.children[l];u instanceof zt&&i(u,s.positions[l]+o);}};return i(ln(e),0),r}get allowsNesting(){return  true}}Wr.setState=Ae.define();function T1(t,e,n){let r=t.facet(no),i=ln(t).topNode;if(!r||r.allowsNesting)for(let s=i;s;s=s.enter(e,n,$t.ExcludeBuffers))s.type.isTop&&(i=s);return i}class hg extends Wr{constructor(e,n,r){super(e,n,[],r),this.parser=n;}static define(e){let n=qj(e.languageData);return new hg(n,e.parser.configure({props:[Pa.add(r=>r.isTop?n:void 0)]}),e.name)}configure(e,n){return new hg(this.data,this.parser.configure(e),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}} exports("h", hg);function ln(t){let e=t.field(Wr.state,false);return e?e.tree:zt.empty}class Hj{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter();}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return  true}read(e,n){let r=this.cursorPos-this.string.length;return e<r||n>=this.cursorPos?this.doc.sliceString(e,n):this.string.slice(e-r,n-r)}}let Xl=null;class Od{constructor(e,n,r=[],i,s,o,a,l){this.parser=e,this.state=n,this.fragments=r,this.tree=i,this.treeLen=s,this.viewport=o,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[];}static create(e,n,r){return new Od(e,n,[],zt.empty,0,r,[],null)}startParse(){return this.parser.startParse(new Hj(this.state.doc),this.fragments)}work(e,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=zt.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),true):this.withContext(()=>{var r;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i;}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n<this.state.doc.length&&this.parse.stopAt(n);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(Yi.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(r=this.parse.stoppedAt)!==null&&r!==void 0?r:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(n??this.state.doc.length))this.parse=this.startParse();else return  true;if(e())return  false}})}takeTree(){let e,n;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=e,this.tree=n,this.fragments=this.withoutTempSkipped(Yi.addTree(this.tree,this.fragments,true)),this.parse=null);}withContext(e){let n=Xl;Xl=this;try{return e()}finally{Xl=n;}}withoutTempSkipped(e){for(let n;n=this.tempSkipped.pop();)e=k1(e,n.from,n.to);return e}changes(e,n){let{fragments:r,tree:i,treeLen:s,viewport:o,skipped:a}=this;if(this.takeTree(),!e.empty){let l=[];if(e.iterChangedRanges((u,c,f,d)=>l.push({fromA:u,toA:c,fromB:f,toB:d})),r=Yi.applyChanges(r,l),i=zt.empty,s=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){a=[];for(let u of this.skipped){let c=e.mapPos(u.from,1),f=e.mapPos(u.to,-1);c<f&&a.push({from:c,to:f});}}}return new Od(this.parser,n,r,i,s,o,a,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return  false;this.viewport=e;let n=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:i,to:s}=this.skipped[r];i<e.to&&s>e.from&&(this.fragments=k1(this.fragments,i,s),this.skipped.splice(r--,1));}return this.skipped.length>=n?false:(this.reset(),true)}reset(){this.parse&&(this.takeTree(),this.parse=null);}skipUntilInView(e,n){this.skipped.push({from:e,to:n});}static getSkippingParser(e){return new class extends wj{createParse(n,r,i){let s=i[0].from,o=i[i.length-1].to;return {parsedPos:s,advance(){let l=Xl;if(l){for(let u of i)l.tempSkipped.push(u);e&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,e]):e);}return this.parsedPos=o,new zt(Xn.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let n=this.fragments;return this.treeLen>=e&&n.length&&n[0].from==0&&n[0].to>=e}static get(){return Xl}}function k1(t,e,n){return Yi.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class pl{constructor(e){this.context=e,this.tree=e.tree;}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(e.changes,e.state),r=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new pl(n)}static init(e){let n=Math.min(3e3,e.doc.length),r=Od.create(e.facet(no).parser,e,{from:0,to:n});return r.work(20,n)||r.takeTree(),new pl(r)}}Wr.state=Qt.define({create:pl.init,update(t,e){for(let n of e.effects)if(n.is(Wr.setState))return n.value;return e.startState.facet(no)!=e.state.facet(no)?pl.init(e.state):t.apply(e)}});let bw=t=>{let e=setTimeout(()=>t(),500);return ()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(bw=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400});},100);return ()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const Cp=typeof navigator<"u"&&(!((bp=navigator.scheduling)===null||bp===void 0)&&bp.isInputPending)?()=>navigator.scheduling.isInputPending():null,zj=Rt.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork();}update(e){let n=this.view.state.field(Wr.state).context;(n.updateViewport(e.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n);}scheduleWork(){if(this.working)return;let{state:e}=this.view,n=e.field(Wr.state);(n.tree!=n.context.tree||!n.context.isDone(e.doc.length))&&(this.working=bw(this.work));}work(e){this.working=null;let n=Date.now();if(this.chunkEnd<n&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=n+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:i}}=this.view,s=r.field(Wr.state);if(s.tree==s.context.tree&&s.context.isDone(i+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!Cp?Math.max(25,e.timeRemaining()-5):1e9),a=s.context.treeLen<i&&r.doc.length>i+1e3,l=s.context.work(()=>Cp&&Cp()||Date.now()>o,i+(a?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:Wr.setState.of(new pl(s.context))})),this.chunkBudget>0&&!(l&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(s.context);}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(n=>Wn(this.view.state,n)).then(()=>this.workScheduled--),e.scheduleOn=null);}destroy(){this.working&&this.working();}isWorking(){return !!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork();}}}),no=de.define({combine(t){return t.length?t[0]:null},enables:t=>[Wr.state,zj,ue.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class xte{constructor(e,n=[]){this.language=e,this.support=n,this.extension=[e,n];}} exports("x", xte);const Kj=de.define(),Oc=de.define({combine:t=>{if(!t.length)return "  ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(n=>n!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function $d(t){let e=t.facet(Oc);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function tc(t,e){let n="",r=t.tabSize,i=t.facet(Oc)[0];if(i=="	"){for(;e>=r;)n+="	",e-=r;i=" ";}for(let s=0;s<e;s++)n+=i;return n}function uy(t,e){t instanceof Ve&&(t=new vh(t));for(let r of t.state.facet(Kj)){let i=r(t,e);if(i!==void 0)return i}let n=ln(t.state);return n.length>=e?Jj(t,n,e):null}class vh{constructor(e,n={}){this.state=e,this.options=n,this.unit=$d(e);}lineAt(e,n=1){let r=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:s}=this.options;return i!=null&&i>=r.from&&i<=r.to?s&&i==e?{text:"",from:e}:(n<0?i<e:i<=e)?{text:r.text.slice(i-r.from),from:i}:{text:r.text.slice(0,i-r.from),from:r.from}:r}textAfterPos(e,n=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return "";let{text:r,from:i}=this.lineAt(e,n);return r.slice(e-i,Math.min(r.length,e+100-i))}column(e,n=1){let{text:r,from:i}=this.lineAt(e,n),s=this.countColumn(r,e-i),o=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return o>-1&&(s+=o-this.countColumn(r,r.search(/\S|$/))),s}countColumn(e,n=e.length){return $l(e,this.state.tabSize,n)}lineIndent(e,n=1){let{text:r,from:i}=this.lineAt(e,n),s=this.options.overrideIndentation;if(s){let o=s(i);if(o>-1)return o}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Uj=exports("U", new je);function Jj(t,e,n){let r=e.resolveStack(n),i=e.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(i!=r.node){let s=[];for(let o=i;o&&!(o.from==r.node.from&&o.type==r.node.type);o=o.parent)s.push(o);for(let o=s.length-1;o>=0;o--)r={node:s[o],next:r};}return Cw(r,t,n)}function Cw(t,e,n){for(let r=t;r;r=r.next){let i=Xj(r.node);if(i)return i(cy.create(e,n,r))}return 0}function Gj(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function Xj(t){let e=t.type.prop(Uj);if(e)return e;let n=t.firstChild,r;if(n&&(r=n.type.prop(je.closedBy))){let i=t.lastChild,s=i&&r.indexOf(i.name)>-1;return o=>xw(o,true,1,void 0,s&&!Gj(o)?i.from:void 0)}return t.parent==null?Yj:null}function Yj(){return 0}class cy extends vh{constructor(e,n,r){super(e.state,e.options),this.base=e,this.pos=n,this.context=r;}get node(){return this.context.node}static create(e,n,r){return new cy(e,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let n=this.state.doc.lineAt(e.from);for(;;){let r=e.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(Qj(r,e))break;n=this.state.doc.lineAt(r.from);}return this.lineIndent(n.from)}continue(){return Cw(this.context.next,this.base,this.pos)}}function Qj(t,e){for(let n=e;n;n=n.parent)if(t==n)return  true;return  false}function Zj(t){let e=t.node,n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;let i=t.options.simulateBreak,s=t.state.doc.lineAt(n.from),o=i==null||i<=s.from?s.to:Math.min(s.to,i);for(let a=n.to;;){let l=e.childAfter(a);if(!l||l==r)return null;if(!l.type.isSkipped){if(l.from>=o)return null;let u=/^ */.exec(s.text.slice(n.to-s.from))[0].length;return {from:n.from,to:n.to+u}}a=l.to;}}function Ete({closing:t,align:e=true,units:n=1}){return r=>xw(r,e,n,t)}function xw(t,e,n,r,i){let s=t.textAfter,o=s.match(/^\s*/)[0].length,a=r&&s.slice(o,o+r.length)==r||i==t.pos+o,l=e?Zj(t):null;return l?a?t.column(l.from):t.column(l.to):t.baseIndent+(a?0:t.unit*n)}const Fte=exports("F", t=>t.baseIndent);function wte({except:t,units:e=1}={}){return n=>{let r=t&&t.test(n.textAfter);return n.baseIndent+(r?0:e*n.unit)}}const eV=200;function tV(){return Ve.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:r}=t.newSelection.main,i=n.lineAt(r);if(r>i.from+eV)return t;let s=n.sliceString(i.from,r);if(!e.some(u=>u.test(s)))return t;let{state:o}=t,a=-1,l=[];for(let{head:u}of o.selection.ranges){let c=o.doc.lineAt(u);if(c.from==a)continue;a=c.from;let f=uy(o,c.from);if(f==null)continue;let d=/^\s*/.exec(c.text)[0],h=tc(o,f);d!=h&&l.push({from:c.from,to:c.from+d.length,insert:h});}return l.length?[t,{changes:l,sequential:true}]:t})}const nV=de.define(),rV=exports("r", new je);function Ste(t){let e=t.firstChild,n=t.lastChild;return e&&e.to<n.from?{from:e.to,to:n.type.isError?t.to:n.from}:null}function iV(t,e,n){let r=ln(t);if(r.length<n)return null;let i=r.resolveStack(n,1),s=null;for(let o=i;o;o=o.next){let a=o.node;if(a.to<=n||a.from>n)continue;if(s&&a.from<e)break;let l=a.type.prop(rV);if(l&&(a.to<r.length-50||r.length==t.doc.length||!sV(a))){let u=l(a,t);u&&u.from<=n&&u.from>=e&&u.to>n&&(s=u);}}return s}function sV(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function Md(t,e,n){for(let r of t.facet(nV)){let i=r(t,e,n);if(i)return i}return iV(t,e,n)}function Ew(t,e){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);return n>=r?void 0:{from:n,to:r}}const Dh=Ae.define({map:Ew}),$c=Ae.define({map:Ew});function Fw(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(r=>r.from<=n&&r.to>=n)||e.push(t.lineBlockAt(n));return e}const Yo=Qt.define({create(){return De.none},update(t,e){t=t.map(e.changes);for(let n of e.effects)if(n.is(Dh)&&!oV(t,n.value.from,n.value.to)){let{preparePlaceholder:r}=e.state.facet(Aw),i=r?De.replace({widget:new hV(r(e.state,n.value))}):B1;t=t.update({add:[i.range(n.value.from,n.value.to)]});}else n.is($c)&&(t=t.update({filter:(r,i)=>n.value.from!=r||n.value.to!=i,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let n=false,{head:r}=e.selection.main;t.between(r,r,(i,s)=>{i<r&&s>r&&(n=true);}),n&&(t=t.update({filterFrom:r,filterTo:r,filter:(i,s)=>s<=r||i>=r}));}return t},provide:t=>ue.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(r,i)=>{n.push(r,i);}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n<t.length;){let r=t[n++],i=t[n++];if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid JSON for fold state");e.push(B1.range(r,i));}return De.set(e,true)}});function Pd(t,e,n){var r;let i=null;return (r=t.field(Yo,false))===null||r===void 0||r.between(e,n,(s,o)=>{(!i||i.from>s)&&(i={from:s,to:o});}),i}function oV(t,e,n){let r=false;return t.between(e,e,(i,s)=>{i==e&&s==n&&(r=true);}),r}function ww(t,e){return t.field(Yo,false)?e:e.concat(Ae.appendConfig.of(Tw()))}const aV=t=>{for(let e of Fw(t)){let n=Md(t.state,e.from,e.to);if(n)return t.dispatch({effects:ww(t.state,[Dh.of(n),Sw(t,n)])}),true}return  false},lV=t=>{if(!t.state.field(Yo,false))return  false;let e=[];for(let n of Fw(t)){let r=Pd(t.state,n.from,n.to);r&&e.push($c.of(r),Sw(t,r,false));}return e.length&&t.dispatch({effects:e}),e.length>0};function Sw(t,e,n=true){let r=t.state.doc.lineAt(e.from).number,i=t.state.doc.lineAt(e.to).number;return ue.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${t.state.phrase("to")} ${i}.`)}const uV=t=>{let{state:e}=t,n=[];for(let r=0;r<e.doc.length;){let i=t.lineBlockAt(r),s=Md(e,i.from,i.to);s&&n.push(Dh.of(s)),r=(s?t.lineBlockAt(s.to):i).to+1;}return n.length&&t.dispatch({effects:ww(t.state,n)}),!!n.length},cV=t=>{let e=t.state.field(Yo,false);if(!e||!e.size)return  false;let n=[];return e.between(0,t.state.doc.length,(r,i)=>{n.push($c.of({from:r,to:i}));}),t.dispatch({effects:n}),true},fV=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:aV},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:lV},{key:"Ctrl-Alt-[",run:uV},{key:"Ctrl-Alt-]",run:cV}],dV={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Aw=de.define({combine(t){return Mi(t,dV)}});function Tw(t){return [Yo,gV]}function kw(t,e){let{state:n}=t,r=n.facet(Aw),i=o=>{let a=t.lineBlockAt(t.posAtDOM(o.target)),l=Pd(t.state,a.from,a.to);l&&t.dispatch({effects:$c.of(l)}),o.preventDefault();};if(r.placeholderDOM)return r.placeholderDOM(t,i,e);let s=document.createElement("span");return s.textContent=r.placeholderText,s.setAttribute("aria-label",n.phrase("folded code")),s.title=n.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=i,s}const B1=De.replace({widget:new class extends Pi{toDOM(t){return kw(t,null)}}});class hV extends Pi{constructor(e){super(),this.value=e;}eq(e){return this.value==e.value}toDOM(e){return kw(e,this.value)}}const pV={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>false};class xp extends ns{constructor(e,n){super(),this.config=e,this.open=n;}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=e.state.phrase(this.open?"Fold line":"Unfold line"),n}}function mV(t={}){let e=Object.assign(Object.assign({},pV),t),n=new xp(e,true),r=new xp(e,false),i=Rt.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o);}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(no)!=o.state.facet(no)||o.startState.field(Yo,false)!=o.state.field(Yo,false)||ln(o.startState)!=ln(o.state)||e.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view));}buildMarkers(o){let a=new es;for(let l of o.viewportLineBlocks){let u=Pd(o.state,l.from,l.to)?r:Md(o.state,l.from,l.to)?n:null;u&&a.add(l.from,l.from,u);}return a.finish()}}),{domEventHandlers:s}=e;return [i,aj({class:"cm-foldGutter",markers(o){var a;return ((a=o.plugin(i))===null||a===void 0?void 0:a.markers)||et.empty},initialSpacer(){return new xp(e,false)},domEventHandlers:Object.assign(Object.assign({},s),{click:(o,a,l)=>{if(s.click&&s.click(o,a,l))return  true;let u=Pd(o.state,a.from,a.to);if(u)return o.dispatch({effects:$c.of(u)}),true;let c=Md(o.state,a.from,a.to);return c?(o.dispatch({effects:Dh.of(c)}),true):false}})}),Tw()]}const gV=ue.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Mc{constructor(e,n){this.specs=e;let r;function i(a){let l=Qs.newName();return (r||(r=Object.create(null)))["."+l]=a,l}const s=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,o=n.scope;this.scope=o instanceof Wr?a=>a.prop(Pa)==o.data:o?a=>a==o:void 0,this.style=Dw(e.map(a=>({tag:a.tag,class:a.class||i(Object.assign({},a,{tag:null}))})),{all:s}).style,this.module=r?new Qs(r):null,this.themeType=n.themeType;}static define(e,n){return new Mc(e,n||{})}}const pg=de.define(),Bw=de.define({combine(t){return t.length?[t[0]]:null}});function Ep(t){let e=t.facet(pg);return e.length?e:t.facet(Bw)}function Ow(t,e){let n=[vV],r;return t instanceof Mc&&(t.module&&n.push(ue.styleModule.of(t.module)),r=t.themeType),e!=null&&e.fallback?n.push(Bw.of(t)):r?n.push(pg.computeN([ue.darkTheme],i=>i.facet(ue.darkTheme)==(r=="dark")?[t]:[])):n.push(pg.of(t)),n}class yV{constructor(e){this.markCache=Object.create(null),this.tree=ln(e.state),this.decorations=this.buildDeco(e,Ep(e.state)),this.decoratedTo=e.viewport.to;}update(e){let n=ln(e.state),r=Ep(e.state),i=r!=Ep(e.startState),{viewport:s}=e.view,o=e.changes.mapPos(this.decoratedTo,1);n.length<s.to&&!i&&n.type==this.tree.type&&o>=s.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(n!=this.tree||e.viewportChanged||i)&&(this.tree=n,this.decorations=this.buildDeco(e.view,r),this.decoratedTo=s.to);}buildDeco(e,n){if(!n||!this.tree.length)return De.none;let r=new es;for(let{from:i,to:s}of e.visibleRanges)_j(this.tree,n,(o,a,l)=>{r.add(o,a,this.markCache[l]||(this.markCache[l]=De.mark({class:l})));},i,s);return r.finish()}}const vV=po.high(Rt.fromClass(yV,{decorations:t=>t.decorations})),DV=Mc.define([{tag:w.meta,color:"#404740"},{tag:w.link,textDecoration:"underline"},{tag:w.heading,textDecoration:"underline",fontWeight:"bold"},{tag:w.emphasis,fontStyle:"italic"},{tag:w.strong,fontWeight:"bold"},{tag:w.strikethrough,textDecoration:"line-through"},{tag:w.keyword,color:"#708"},{tag:[w.atom,w.bool,w.url,w.contentSeparator,w.labelName],color:"#219"},{tag:[w.literal,w.inserted],color:"#164"},{tag:[w.string,w.deleted],color:"#a11"},{tag:[w.regexp,w.escape,w.special(w.string)],color:"#e40"},{tag:w.definition(w.variableName),color:"#00f"},{tag:w.local(w.variableName),color:"#30a"},{tag:[w.typeName,w.namespace],color:"#085"},{tag:w.className,color:"#167"},{tag:[w.special(w.variableName),w.macroName],color:"#256"},{tag:w.definition(w.propertyName),color:"#00c"},{tag:w.comment,color:"#940"},{tag:w.invalid,color:"#f00"}]),bV=ue.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),$w=1e4,Mw="()[]{}",Pw=de.define({combine(t){return Mi(t,{afterCursor:true,brackets:Mw,maxScanDistance:$w,renderMatch:EV})}}),CV=De.mark({class:"cm-matchingBracket"}),xV=De.mark({class:"cm-nonmatchingBracket"});function EV(t){let e=[],n=t.matched?CV:xV;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}const FV=Qt.define({create(){return De.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],r=e.state.facet(Pw);for(let i of e.state.selection.ranges){if(!i.empty)continue;let s=bi(e.state,i.head,-1,r)||i.head>0&&bi(e.state,i.head-1,1,r)||r.afterCursor&&(bi(e.state,i.head,1,r)||i.head<e.state.doc.length&&bi(e.state,i.head+1,-1,r));s&&(n=n.concat(r.renderMatch(s,e.state)));}return De.set(n,true)},provide:t=>ue.decorations.from(t)}),wV=[FV,bV];function SV(t={}){return [Pw.of(t),wV]}const AV=exports("A", new je);function mg(t,e,n){let r=t.prop(e<0?je.openedBy:je.closedBy);if(r)return r;if(t.name.length==1){let i=n.indexOf(t.name);if(i>-1&&i%2==(e<0?1:0))return [n[i+e]]}return null}function gg(t){let e=t.type.prop(AV);return e?e(t.node):t}function bi(t,e,n,r={}){let i=r.maxScanDistance||$w,s=r.brackets||Mw,o=ln(t),a=o.resolveInner(e,n);for(let l=a;l;l=l.parent){let u=mg(l.type,n,s);if(u&&l.from<l.to){let c=gg(l);if(c&&(n>0?e>=c.from&&e<c.to:e>c.from&&e<=c.to))return TV(t,e,n,l,c,u,s)}}return kV(t,e,n,o,a.type,i,s)}function TV(t,e,n,r,i,s,o){let a=r.parent,l={from:i.from,to:i.to},u=0,c=a==null?void 0:a.cursor();if(c&&(n<0?c.childBefore(r.from):c.childAfter(r.to)))do if(n<0?c.to<=r.from:c.from>=r.to){if(u==0&&s.indexOf(c.type.name)>-1&&c.from<c.to){let f=gg(c);return {start:l,end:f?{from:f.from,to:f.to}:void 0,matched:true}}else if(mg(c.type,n,o))u++;else if(mg(c.type,-n,o)){if(u==0){let f=gg(c);return {start:l,end:f&&f.from<f.to?{from:f.from,to:f.to}:void 0,matched:false}}u--;}}while(n<0?c.prevSibling():c.nextSibling());return {start:l,matched:false}}function kV(t,e,n,r,i,s,o){let a=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),l=o.indexOf(a);if(l<0||l%2==0!=n>0)return null;let u={from:n<0?e-1:e,to:n>0?e+1:e},c=t.doc.iterRange(e,n>0?t.doc.length:0),f=0;for(let d=0;!c.next().done&&d<=s;){let h=c.value;n<0&&(d+=h.length);let p=e+d*n;for(let m=n>0?0:h.length-1,g=n>0?h.length:-1;m!=g;m+=n){let y=o.indexOf(h[m]);if(!(y<0||r.resolveInner(p+m,1).type!=i))if(y%2==0==n>0)f++;else {if(f==1)return {start:u,end:{from:p+m,to:p+m+1},matched:y>>1==l>>1};f--;}}n>0&&(d+=h.length);}return c.done?{start:u,matched:false}:null}const BV=Object.create(null),O1=[Xn.none],$1=[],M1=Object.create(null),OV=Object.create(null);for(let[t,e]of [["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])OV[t]=$V(BV,e);function Fp(t,e){$1.indexOf(t)>-1||($1.push(t),console.warn(e));}function $V(t,e){let n=[];for(let a of e.split(" ")){let l=[];for(let u of a.split(".")){let c=t[u]||w[u];c?typeof c=="function"?l.length?l=l.map(c):Fp(u,`Modifier ${u} used at start of tag`):l.length?Fp(u,`Tag ${u} used as modifier`):l=Array.isArray(c)?c:[c]:Fp(u,`Unknown highlighting tag ${u}`);}for(let u of l)n.push(u);}if(!n.length)return 0;let r=e.replace(/ /g,"_"),i=r+" "+n.map(a=>a.id),s=M1[i];if(s)return s.id;let o=M1[i]=Xn.define({id:O1.length,name:r,props:[Lj({[r]:n})]});return O1.push(o),o.id}Et.RTL,Et.LTR;const MV=t=>{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),r=dy(t.state,n.from);return r.line?PV(t):r.block?IV(t):false};function fy(t,e){return ({state:n,dispatch:r})=>{if(n.readOnly)return  false;let i=t(e,n);return i?(r(n.update(i)),true):false}}const PV=fy(_V,0),NV=fy(Nw,0),IV=fy((t,e)=>Nw(t,e,RV(e)),0);function dy(t,e){let n=t.languageDataAt("commentTokens",e,1);return n.length?n[0]:{}}const Yl=50;function LV(t,{open:e,close:n},r,i){let s=t.sliceDoc(r-Yl,r),o=t.sliceDoc(i,i+Yl),a=/\s*$/.exec(s)[0].length,l=/^\s*/.exec(o)[0].length,u=s.length-a;if(s.slice(u-e.length,u)==e&&o.slice(l,l+n.length)==n)return {open:{pos:r-a,margin:a&&1},close:{pos:i+l,margin:l&&1}};let c,f;i-r<=2*Yl?c=f=t.sliceDoc(r,i):(c=t.sliceDoc(r,r+Yl),f=t.sliceDoc(i-Yl,i));let d=/^\s*/.exec(c)[0].length,h=/\s*$/.exec(f)[0].length,p=f.length-h-n.length;return c.slice(d,d+e.length)==e&&f.slice(p,p+n.length)==n?{open:{pos:r+d+e.length,margin:/\s/.test(c.charAt(d+e.length))?1:0},close:{pos:i-h-n.length,margin:/\s/.test(f.charAt(p-1))?1:0}}:null}function RV(t){let e=[];for(let n of t.selection.ranges){let r=t.doc.lineAt(n.from),i=n.to<=r.to?r:t.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:t.doc.lineAt(n.to-1));let s=e.length-1;s>=0&&e[s].to>r.from?e[s].to=i.to:e.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to});}return e}function Nw(t,e,n=e.selection.ranges){let r=n.map(s=>dy(e,s.from).block);if(!r.every(s=>s))return null;let i=n.map((s,o)=>LV(e,r[o],s.from,s.to));if(t!=2&&!i.every(s=>s))return {changes:e.changes(n.map((s,o)=>i[o]?[]:[{from:s.from,insert:r[o].open+" "},{from:s.to,insert:" "+r[o].close}]))};if(t!=1&&i.some(s=>s)){let s=[];for(let o=0,a;o<i.length;o++)if(a=i[o]){let l=r[o],{open:u,close:c}=a;s.push({from:u.pos-l.open.length,to:u.pos+u.margin},{from:c.pos-c.margin,to:c.pos+l.close.length});}return {changes:s}}return null}function _V(t,e,n=e.selection.ranges){let r=[],i=-1;for(let{from:s,to:o}of n){let a=r.length,l=1e9,u=dy(e,s).line;if(u){for(let c=s;c<=o;){let f=e.doc.lineAt(c);if(f.from>i&&(s==o||o>f.from)){i=f.from;let d=/^\s*/.exec(f.text)[0].length,h=d==f.length,p=f.text.slice(d,d+u.length)==u?d:-1;d<f.text.length&&d<l&&(l=d),r.push({line:f,comment:p,token:u,indent:d,empty:h,single:false});}c=f.to+1;}if(l<1e9)for(let c=a;c<r.length;c++)r[c].indent<r[c].line.text.length&&(r[c].indent=l);r.length==a+1&&(r[a].single=true);}}if(t!=2&&r.some(s=>s.comment<0&&(!s.empty||s.single))){let s=[];for(let{line:a,token:l,indent:u,empty:c,single:f}of r)(f||!c)&&s.push({from:a.from+u,insert:l+" "});let o=e.changes(s);return {changes:o,selection:e.selection.map(o,1)}}else if(t!=1&&r.some(s=>s.comment>=0)){let s=[];for(let{line:o,comment:a,token:l}of r)if(a>=0){let u=o.from+a,c=u+l.length;o.text[c-o.from]==" "&&c++,s.push({from:u,to:c});}return {changes:s}}return null}const yg=hs.define(),jV=hs.define(),VV=de.define(),Iw=de.define({combine(t){return Mi(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,n)=>(r,i)=>e(r,i)||n(r,i)})}}),Lw=Qt.define({create(){return Ci.empty},update(t,e){let n=e.state.facet(Iw),r=e.annotation(yg);if(r){let l=Hn.fromTransaction(e,r.selection),u=r.side,c=u==0?t.undone:t.done;return l?c=Nd(c,c.length,n.minDepth,l):c=jw(c,e.startState.selection),new Ci(u==0?r.rest:c,u==0?c:r.rest)}let i=e.annotation(jV);if((i=="full"||i=="before")&&(t=t.isolate()),e.annotation(Vt.addToHistory)===false)return e.changes.empty?t:t.addMapping(e.changes.desc);let s=Hn.fromTransaction(e),o=e.annotation(Vt.time),a=e.annotation(Vt.userEvent);return s?t=t.addChanges(s,o,a,n,e):e.selection&&(t=t.addSelection(e.startState.selection,o,a,n.newGroupDelay)),(i=="full"||i=="after")&&(t=t.isolate()),t},toJSON(t){return {done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new Ci(t.done.map(Hn.fromJSON),t.undone.map(Hn.fromJSON))}});function qV(t={}){return [Lw,Iw.of(t),ue.domEventHandlers({beforeinput(e,n){let r=e.inputType=="historyUndo"?Rw:e.inputType=="historyRedo"?vg:null;return r?(e.preventDefault(),r(n)):false}})]}function bh(t,e){return function({state:n,dispatch:r}){if(!e&&n.readOnly)return  false;let i=n.field(Lw,false);if(!i)return  false;let s=i.pop(t,n,e);return s?(r(s),true):false}}const Rw=bh(0,false),vg=bh(1,false),WV=bh(0,true),HV=bh(1,true);class Hn{constructor(e,n,r,i,s){this.changes=e,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=s;}setSelAfter(e){return new Hn(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,n,r;return {changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(e){return new Hn(e.changes&&Ht.fromJSON(e.changes),[],e.mapped&&Fi.fromJSON(e.mapped),e.startSelection&&J.fromJSON(e.startSelection),e.selectionsAfter.map(J.fromJSON))}static fromTransaction(e,n){let r=gr;for(let i of e.startState.facet(VV)){let s=i(e);s.length&&(r=r.concat(s));}return !r.length&&e.changes.empty?null:new Hn(e.changes.invert(e.startState.doc),r,void 0,n||e.startState.selection,gr)}static selection(e){return new Hn(void 0,gr,void 0,void 0,e)}}function Nd(t,e,n,r){let i=e+1>n+20?e-n-1:0,s=t.slice(i,e);return s.push(r),s}function zV(t,e){let n=[],r=false;return t.iterChangedRanges((i,s)=>n.push(i,s)),e.iterChangedRanges((i,s,o,a)=>{for(let l=0;l<n.length;){let u=n[l++],c=n[l++];a>=u&&o<=c&&(r=true);}}),r}function KV(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((n,r)=>n.empty!=e.ranges[r].empty).length===0}function _w(t,e){return t.length?e.length?t.concat(e):t:e}const gr=[],UV=200;function jw(t,e){if(t.length){let n=t[t.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-UV));return r.length&&r[r.length-1].eq(e)?t:(r.push(e),Nd(t,t.length-1,1e9,n.setSelAfter(r)))}else return [Hn.selection([e])]}function JV(t){let e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function wp(t,e){if(!t.length)return t;let n=t.length,r=gr;for(;n;){let i=GV(t[n-1],e,r);if(i.changes&&!i.changes.empty||i.effects.length){let s=t.slice(0,n);return s[n-1]=i,s}else e=i.mapped,n--,r=i.selectionsAfter;}return r.length?[Hn.selection(r)]:gr}function GV(t,e,n){let r=_w(t.selectionsAfter.length?t.selectionsAfter.map(a=>a.map(e)):gr,n);if(!t.changes)return Hn.selection(r);let i=t.changes.map(e),s=e.mapDesc(t.changes,true),o=t.mapped?t.mapped.composeDesc(s):s;return new Hn(i,Ae.mapEffects(t.effects,e),o,t.startSelection.map(s),r)}const XV=/^(input\.type|delete)($|\.)/;class Ci{constructor(e,n,r=0,i=void 0){this.done=e,this.undone=n,this.prevTime=r,this.prevUserEvent=i;}isolate(){return this.prevTime?new Ci(this.done,this.undone):this}addChanges(e,n,r,i,s){let o=this.done,a=o[o.length-1];return a&&a.changes&&!a.changes.empty&&e.changes&&(!r||XV.test(r))&&(!a.selectionsAfter.length&&n-this.prevTime<i.newGroupDelay&&i.joinToEvent(s,zV(a.changes,e.changes))||r=="input.type.compose")?o=Nd(o,o.length-1,i.minDepth,new Hn(e.changes.compose(a.changes),_w(Ae.mapEffects(e.effects,a.changes),a.effects),a.mapped,a.startSelection,gr)):o=Nd(o,o.length,i.minDepth,e),new Ci(o,gr,n,r)}addSelection(e,n,r,i){let s=this.done.length?this.done[this.done.length-1].selectionsAfter:gr;return s.length>0&&n-this.prevTime<i&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&KV(s[s.length-1],e)?this:new Ci(jw(this.done,e),this.undone,n,r)}addMapping(e){return new Ci(wp(this.done,e),wp(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,n,r){let i=e==0?this.done:this.undone;if(i.length==0)return null;let s=i[i.length-1],o=s.selectionsAfter[0]||n.selection;if(r&&s.selectionsAfter.length)return n.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:yg.of({side:e,rest:JV(i),selection:o}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:true});if(s.changes){let a=i.length==1?gr:i.slice(0,i.length-1);return s.mapped&&(a=wp(a,s.mapped)),n.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:yg.of({side:e,rest:a,selection:o}),filter:false,userEvent:e==0?"undo":"redo",scrollIntoView:true})}else return null}}Ci.empty=new Ci(gr,gr);const YV=[{key:"Mod-z",run:Rw,preventDefault:true},{key:"Mod-y",mac:"Mod-Shift-z",run:vg,preventDefault:true},{linux:"Ctrl-Shift-z",run:vg,preventDefault:true},{key:"Mod-u",run:WV,preventDefault:true},{key:"Alt-u",mac:"Mod-Shift-u",run:HV,preventDefault:true}];function Ml(t,e){return J.create(t.ranges.map(e),t.mainIndex)}function Ni(t,e){return t.update({selection:e,scrollIntoView:true,userEvent:"select"})}function ii({state:t,dispatch:e},n){let r=Ml(t.selection,n);return r.eq(t.selection,true)?false:(e(Ni(t,r)),true)}function Ch(t,e){return J.cursor(e?t.to:t.from)}function Vw(t,e){return ii(t,n=>n.empty?t.moveByChar(n,e):Ch(n,e))}function bn(t){return t.textDirectionAt(t.state.selection.main.head)==Et.LTR}const qw=t=>Vw(t,!bn(t)),Ww=t=>Vw(t,bn(t));function Hw(t,e){return ii(t,n=>n.empty?t.moveByGroup(n,e):Ch(n,e))}const QV=t=>Hw(t,!bn(t)),ZV=t=>Hw(t,bn(t));function eq(t,e,n){if(e.type.prop(n))return  true;let r=e.to-e.from;return r&&(r>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function xh(t,e,n){let r=ln(t).resolveInner(e.head),i=n?je.closedBy:je.openedBy;for(let l=e.head;;){let u=n?r.childAfter(l):r.childBefore(l);if(!u)break;eq(t,u,i)?r=u:l=n?u.to:u.from;}let s=r.type.prop(i),o,a;return s&&(o=n?bi(t,r.from,1):bi(t,r.to,-1))&&o.matched?a=n?o.end.to:o.end.from:a=n?r.to:r.from,J.cursor(a,n?-1:1)}const tq=t=>ii(t,e=>xh(t.state,e,!bn(t))),nq=t=>ii(t,e=>xh(t.state,e,bn(t)));function zw(t,e){return ii(t,n=>{if(!n.empty)return Ch(n,e);let r=t.moveVertically(n,e);return r.head!=n.head?r:t.moveToLineBoundary(n,e)})}const Kw=t=>zw(t,false),Uw=t=>zw(t,true);function Jw(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,n=0,r=0,i;if(e){for(let s of t.state.facet(ue.scrollMargins)){let o=s(t);o!=null&&o.top&&(n=Math.max(o==null?void 0:o.top,n)),o!=null&&o.bottom&&(r=Math.max(o==null?void 0:o.bottom,r));}i=t.scrollDOM.clientHeight-n-r;}else i=(t.dom.ownerDocument.defaultView||window).innerHeight;return {marginTop:n,marginBottom:r,selfScroll:e,height:Math.max(t.defaultLineHeight,i-5)}}function Gw(t,e){let n=Jw(t),{state:r}=t,i=Ml(r.selection,o=>o.empty?t.moveVertically(o,e,n.height):Ch(o,e));if(i.eq(r.selection))return  false;let s;if(n.selfScroll){let o=t.coordsAtPos(r.selection.main.head),a=t.scrollDOM.getBoundingClientRect(),l=a.top+n.marginTop,u=a.bottom-n.marginBottom;o&&o.top>l&&o.bottom<u&&(s=ue.scrollIntoView(i.main.head,{y:"start",yMargin:o.top-l}));}return t.dispatch(Ni(r,i),{effects:s}),true}const P1=t=>Gw(t,false),Dg=t=>Gw(t,true);function mo(t,e,n){let r=t.lineBlockAt(e.head),i=t.moveToLineBoundary(e,n);if(i.head==e.head&&i.head!=(n?r.to:r.from)&&(i=t.moveToLineBoundary(e,n,false)),!n&&i.head==r.from&&r.length){let s=/^\s*/.exec(t.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;s&&e.head!=r.from+s&&(i=J.cursor(r.from+s));}return i}const rq=t=>ii(t,e=>mo(t,e,true)),iq=t=>ii(t,e=>mo(t,e,false)),sq=t=>ii(t,e=>mo(t,e,!bn(t))),oq=t=>ii(t,e=>mo(t,e,bn(t))),aq=t=>ii(t,e=>J.cursor(t.lineBlockAt(e.head).from,1)),lq=t=>ii(t,e=>J.cursor(t.lineBlockAt(e.head).to,-1));function uq(t,e,n){let r=false,i=Ml(t.selection,s=>{let o=bi(t,s.head,-1)||bi(t,s.head,1)||s.head>0&&bi(t,s.head-1,1)||s.head<t.doc.length&&bi(t,s.head+1,-1);if(!o||!o.end)return s;r=true;let a=o.start.from==s.head?o.end.to:o.end.from;return J.cursor(a)});return r?(e(Ni(t,i)),true):false}const cq=({state:t,dispatch:e})=>uq(t,e);function Br(t,e){let n=Ml(t.state.selection,r=>{let i=e(r);return J.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return n.eq(t.state.selection)?false:(t.dispatch(Ni(t.state,n)),true)}function Xw(t,e){return Br(t,n=>t.moveByChar(n,e))}const Yw=t=>Xw(t,!bn(t)),Qw=t=>Xw(t,bn(t));function Zw(t,e){return Br(t,n=>t.moveByGroup(n,e))}const fq=t=>Zw(t,!bn(t)),dq=t=>Zw(t,bn(t)),hq=t=>Br(t,e=>xh(t.state,e,!bn(t))),pq=t=>Br(t,e=>xh(t.state,e,bn(t)));function eS(t,e){return Br(t,n=>t.moveVertically(n,e))}const tS=t=>eS(t,false),nS=t=>eS(t,true);function rS(t,e){return Br(t,n=>t.moveVertically(n,e,Jw(t).height))}const N1=t=>rS(t,false),I1=t=>rS(t,true),mq=t=>Br(t,e=>mo(t,e,true)),gq=t=>Br(t,e=>mo(t,e,false)),yq=t=>Br(t,e=>mo(t,e,!bn(t))),vq=t=>Br(t,e=>mo(t,e,bn(t))),Dq=t=>Br(t,e=>J.cursor(t.lineBlockAt(e.head).from)),bq=t=>Br(t,e=>J.cursor(t.lineBlockAt(e.head).to)),L1=({state:t,dispatch:e})=>(e(Ni(t,{anchor:0})),true),R1=({state:t,dispatch:e})=>(e(Ni(t,{anchor:t.doc.length})),true),_1=({state:t,dispatch:e})=>(e(Ni(t,{anchor:t.selection.main.anchor,head:0})),true),j1=({state:t,dispatch:e})=>(e(Ni(t,{anchor:t.selection.main.anchor,head:t.doc.length})),true),Cq=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),true),xq=({state:t,dispatch:e})=>{let n=Eh(t).map(({from:r,to:i})=>J.range(r,Math.min(i+1,t.doc.length)));return e(t.update({selection:J.create(n),userEvent:"select"})),true},Eq=({state:t,dispatch:e})=>{let n=Ml(t.selection,r=>{let i=ln(t),s=i.resolveStack(r.from,1);if(r.empty){let o=i.resolveStack(r.from,-1);o.node.from>=s.node.from&&o.node.to<=s.node.to&&(s=o);}for(let o=s;o;o=o.next){let{node:a}=o;if((a.from<r.from&&a.to>=r.to||a.to>r.to&&a.from<=r.from)&&o.next)return J.range(a.to,a.from)}return r});return n.eq(t.selection)?false:(e(Ni(t,n)),true)},Fq=({state:t,dispatch:e})=>{let n=t.selection,r=null;return n.ranges.length>1?r=J.create([n.main]):n.main.empty||(r=J.create([J.cursor(n.main.head)])),r?(e(Ni(t,r)),true):false};function Pc(t,e){if(t.state.readOnly)return  false;let n="delete.selection",{state:r}=t,i=r.changeByRange(s=>{let{from:o,to:a}=s;if(o==a){let l=e(s);l<o?(n="delete.backward",l=xf(t,l,false)):l>o&&(n="delete.forward",l=xf(t,l,true)),o=Math.min(o,l),a=Math.max(a,l);}else o=xf(t,o,false),a=xf(t,a,true);return o==a?{range:s}:{changes:{from:o,to:a},range:J.cursor(o,o<s.head?-1:1)}});return i.changes.empty?false:(t.dispatch(r.update(i,{scrollIntoView:true,userEvent:n,effects:n=="delete.selection"?ue.announce.of(r.phrase("Selection deleted")):void 0})),true)}function xf(t,e,n){if(t instanceof ue)for(let r of t.state.facet(ue.atomicRanges).map(i=>i(t)))r.between(e,e,(i,s)=>{i<e&&s>e&&(e=n?s:i);});return e}const iS=(t,e,n)=>Pc(t,r=>{let i=r.from,{state:s}=t,o=s.doc.lineAt(i),a,l;if(n&&!e&&i>o.from&&i<o.from+200&&!/[^ \t]/.test(a=o.text.slice(0,i-o.from))){if(a[a.length-1]=="	")return i-1;let u=$l(a,s.tabSize),c=u%$d(s)||$d(s);for(let f=0;f<c&&a[a.length-1-f]==" ";f++)i--;l=i;}else l=nn(o.text,i-o.from,e,e)+o.from,l==i&&o.number!=(e?s.doc.lines:1)?l+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(o.text.slice(l-o.from,i-o.from))&&(l=nn(o.text,l-o.from,false,false)+o.from);return l}),bg=t=>iS(t,false,true),sS=t=>iS(t,true,false),oS=(t,e)=>Pc(t,n=>{let r=n.head,{state:i}=t,s=i.doc.lineAt(r),o=i.charCategorizer(r);for(let a=null;;){if(r==(e?s.to:s.from)){r==n.head&&s.number!=(e?i.doc.lines:1)&&(r+=e?1:-1);break}let l=nn(s.text,r-s.from,e)+s.from,u=s.text.slice(Math.min(r,l)-s.from,Math.max(r,l)-s.from),c=o(u);if(a!=null&&c!=a)break;(u!=" "||r!=n.head)&&(a=c),r=l;}return r}),aS=t=>oS(t,false),wq=t=>oS(t,true),Sq=t=>Pc(t,e=>{let n=t.lineBlockAt(e.head).to;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),Aq=t=>Pc(t,e=>{let n=t.moveToLineBoundary(e,false).head;return e.head>n?n:Math.max(0,e.head-1)}),Tq=t=>Pc(t,e=>{let n=t.moveToLineBoundary(e,true).head;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),kq=({state:t,dispatch:e})=>{if(t.readOnly)return  false;let n=t.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:Qe.of(["",""])},range:J.cursor(r.from)}));return e(t.update(n,{scrollIntoView:true,userEvent:"input"})),true},Bq=({state:t,dispatch:e})=>{if(t.readOnly)return  false;let n=t.changeByRange(r=>{if(!r.empty||r.from==0||r.from==t.doc.length)return {range:r};let i=r.from,s=t.doc.lineAt(i),o=i==s.from?i-1:nn(s.text,i-s.from,false)+s.from,a=i==s.to?i+1:nn(s.text,i-s.from,true)+s.from;return {changes:{from:o,to:a,insert:t.doc.slice(i,a).append(t.doc.slice(o,i))},range:J.cursor(a)}});return n.changes.empty?false:(e(t.update(n,{scrollIntoView:true,userEvent:"move.character"})),true)};function Eh(t){let e=[],n=-1;for(let r of t.selection.ranges){let i=t.doc.lineAt(r.from),s=t.doc.lineAt(r.to);if(!r.empty&&r.to==s.from&&(s=t.doc.lineAt(r.to-1)),n>=i.number){let o=e[e.length-1];o.to=s.to,o.ranges.push(r);}else e.push({from:i.from,to:s.to,ranges:[r]});n=s.number+1;}return e}function lS(t,e,n){if(t.readOnly)return  false;let r=[],i=[];for(let s of Eh(t)){if(n?s.to==t.doc.length:s.from==0)continue;let o=t.doc.lineAt(n?s.to+1:s.from-1),a=o.length+1;if(n){r.push({from:s.to,to:o.to},{from:s.from,insert:o.text+t.lineBreak});for(let l of s.ranges)i.push(J.range(Math.min(t.doc.length,l.anchor+a),Math.min(t.doc.length,l.head+a)));}else {r.push({from:o.from,to:s.from},{from:s.to,insert:t.lineBreak+o.text});for(let l of s.ranges)i.push(J.range(l.anchor-a,l.head-a));}}return r.length?(e(t.update({changes:r,scrollIntoView:true,selection:J.create(i,t.selection.mainIndex),userEvent:"move.line"})),true):false}const Oq=({state:t,dispatch:e})=>lS(t,e,false),$q=({state:t,dispatch:e})=>lS(t,e,true);function uS(t,e,n){if(t.readOnly)return  false;let r=[];for(let i of Eh(t))n?r.push({from:i.from,insert:t.doc.slice(i.from,i.to)+t.lineBreak}):r.push({from:i.to,insert:t.lineBreak+t.doc.slice(i.from,i.to)});return e(t.update({changes:r,scrollIntoView:true,userEvent:"input.copyline"})),true}const Mq=({state:t,dispatch:e})=>uS(t,e,false),Pq=({state:t,dispatch:e})=>uS(t,e,true),Nq=t=>{if(t.state.readOnly)return  false;let{state:e}=t,n=e.changes(Eh(e).map(({from:i,to:s})=>(i>0?i--:s<e.doc.length&&s++,{from:i,to:s}))),r=Ml(e.selection,i=>{let s;if(t.lineWrapping){let o=t.lineBlockAt(i.head),a=t.coordsAtPos(i.head,i.assoc||1);a&&(s=o.bottom+t.documentTop-a.bottom+t.defaultLineHeight/2);}return t.moveVertically(i,true,s)}).map(n);return t.dispatch({changes:n,selection:r,scrollIntoView:true,userEvent:"delete.line"}),true};function Iq(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return {from:e,to:e};let n=ln(t).resolveInner(e),r=n.childBefore(e),i=n.childAfter(e),s;return r&&i&&r.to<=e&&i.from>=e&&(s=r.type.prop(je.closedBy))&&s.indexOf(i.name)>-1&&t.doc.lineAt(r.to).from==t.doc.lineAt(i.from).from&&!/\S/.test(t.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}const V1=cS(false),Lq=cS(true);function cS(t){return ({state:e,dispatch:n})=>{if(e.readOnly)return  false;let r=e.changeByRange(i=>{let{from:s,to:o}=i,a=e.doc.lineAt(s),l=!t&&s==o&&Iq(e,s);t&&(s=o=(o<=a.to?a:e.doc.lineAt(o)).to);let u=new vh(e,{simulateBreak:s,simulateDoubleBreak:!!l}),c=uy(u,s);for(c==null&&(c=$l(/^\s*/.exec(e.doc.lineAt(s).text)[0],e.tabSize));o<a.to&&/\s/.test(a.text[o-a.from]);)o++;l?{from:s,to:o}=l:s>a.from&&s<a.from+100&&!/\S/.test(a.text.slice(0,s))&&(s=a.from);let f=["",tc(e,c)];return l&&f.push(tc(e,u.lineIndent(a.from,-1))),{changes:{from:s,to:o,insert:Qe.of(f)},range:J.cursor(s+1+f[1].length)}});return n(e.update(r,{scrollIntoView:true,userEvent:"input"})),true}}function hy(t,e){let n=-1;return t.changeByRange(r=>{let i=[];for(let o=r.from;o<=r.to;){let a=t.doc.lineAt(o);a.number>n&&(r.empty||r.to>a.from)&&(e(a,i,r),n=a.number),o=a.to+1;}let s=t.changes(i);return {changes:i,range:J.range(s.mapPos(r.anchor,1),s.mapPos(r.head,1))}})}const Rq=({state:t,dispatch:e})=>{if(t.readOnly)return  false;let n=Object.create(null),r=new vh(t,{overrideIndentation:s=>{let o=n[s];return o??-1}}),i=hy(t,(s,o,a)=>{let l=uy(r,s.from);if(l==null)return;/\S/.test(s.text)||(l=0);let u=/^\s*/.exec(s.text)[0],c=tc(t,l);(u!=c||a.from<s.from+u.length)&&(n[s.from]=l,o.push({from:s.from,to:s.from+u.length,insert:c}));});return i.changes.empty||e(t.update(i,{userEvent:"indent"})),true},fS=({state:t,dispatch:e})=>t.readOnly?false:(e(t.update(hy(t,(n,r)=>{r.push({from:n.from,insert:t.facet(Oc)});}),{userEvent:"input.indent"})),true),dS=({state:t,dispatch:e})=>t.readOnly?false:(e(t.update(hy(t,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let s=$l(i,t.tabSize),o=0,a=tc(t,Math.max(0,s-$d(t)));for(;o<i.length&&o<a.length&&i.charCodeAt(o)==a.charCodeAt(o);)o++;r.push({from:n.from+o,to:n.from+i.length,insert:a.slice(o)});}),{userEvent:"delete.dedent"})),true),_q=t=>(t.setTabFocusMode(),true),jq=[{key:"Ctrl-b",run:qw,shift:Yw,preventDefault:true},{key:"Ctrl-f",run:Ww,shift:Qw},{key:"Ctrl-p",run:Kw,shift:tS},{key:"Ctrl-n",run:Uw,shift:nS},{key:"Ctrl-a",run:aq,shift:Dq},{key:"Ctrl-e",run:lq,shift:bq},{key:"Ctrl-d",run:sS},{key:"Ctrl-h",run:bg},{key:"Ctrl-k",run:Sq},{key:"Ctrl-Alt-h",run:aS},{key:"Ctrl-o",run:kq},{key:"Ctrl-t",run:Bq},{key:"Ctrl-v",run:Dg}],Vq=[{key:"ArrowLeft",run:qw,shift:Yw,preventDefault:true},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:QV,shift:fq,preventDefault:true},{mac:"Cmd-ArrowLeft",run:sq,shift:yq,preventDefault:true},{key:"ArrowRight",run:Ww,shift:Qw,preventDefault:true},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:ZV,shift:dq,preventDefault:true},{mac:"Cmd-ArrowRight",run:oq,shift:vq,preventDefault:true},{key:"ArrowUp",run:Kw,shift:tS,preventDefault:true},{mac:"Cmd-ArrowUp",run:L1,shift:_1},{mac:"Ctrl-ArrowUp",run:P1,shift:N1},{key:"ArrowDown",run:Uw,shift:nS,preventDefault:true},{mac:"Cmd-ArrowDown",run:R1,shift:j1},{mac:"Ctrl-ArrowDown",run:Dg,shift:I1},{key:"PageUp",run:P1,shift:N1},{key:"PageDown",run:Dg,shift:I1},{key:"Home",run:iq,shift:gq,preventDefault:true},{key:"Mod-Home",run:L1,shift:_1},{key:"End",run:rq,shift:mq,preventDefault:true},{key:"Mod-End",run:R1,shift:j1},{key:"Enter",run:V1,shift:V1},{key:"Mod-a",run:Cq},{key:"Backspace",run:bg,shift:bg},{key:"Delete",run:sS},{key:"Mod-Backspace",mac:"Alt-Backspace",run:aS},{key:"Mod-Delete",mac:"Alt-Delete",run:wq},{mac:"Mod-Backspace",run:Aq},{mac:"Mod-Delete",run:Tq}].concat(jq.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),qq=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:tq,shift:hq},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:nq,shift:pq},{key:"Alt-ArrowUp",run:Oq},{key:"Shift-Alt-ArrowUp",run:Mq},{key:"Alt-ArrowDown",run:$q},{key:"Shift-Alt-ArrowDown",run:Pq},{key:"Escape",run:Fq},{key:"Mod-Enter",run:Lq},{key:"Alt-l",mac:"Ctrl-l",run:xq},{key:"Mod-i",run:Eq,preventDefault:true},{key:"Mod-[",run:dS},{key:"Mod-]",run:fS},{key:"Mod-Alt-\\",run:Rq},{key:"Shift-Mod-k",run:Nq},{key:"Shift-Mod-\\",run:cq},{key:"Mod-/",run:MV},{key:"Alt-A",run:NV},{key:"Ctrl-m",mac:"Shift-Alt-m",run:_q}].concat(Vq),Wq={key:"Tab",run:fS,shift:dS};function mt(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];typeof i=="string"?t.setAttribute(r,i):i!=null&&(t[r]=i);}e++;}for(;e<arguments.length;e++)hS(t,arguments[e]);return t}function hS(t,e){if(typeof e=="string")t.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)t.appendChild(e);else if(Array.isArray(e))for(var n=0;n<e.length;n++)hS(t,e[n]);else throw new RangeError("Unsupported child node: "+e)}const q1=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t;class ml{constructor(e,n,r=0,i=e.length,s,o){this.test=o,this.value={from:0,to:0},this.done=false,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(r,i),this.bufferStart=r,this.normalize=s?a=>s(q1(a)):q1,this.query=this.normalize(n);}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return  -1;this.bufferPos=0,this.buffer=this.iter.value;}return jn(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=true,this;let n=H0(e),r=this.bufferStart+this.bufferPos;this.bufferPos+=gi(e);let i=this.normalize(n);if(i.length)for(let s=0,o=r;;s++){let a=i.charCodeAt(s),l=this.match(a,o,this.bufferPos+this.bufferStart);if(s==i.length-1){if(l)return this.value=l,this;break}o==r&&s<n.length&&n.charCodeAt(s)==a&&o++;}}}match(e,n,r){let i=null;for(let s=0;s<this.matches.length;s+=2){let o=this.matches[s],a=false;this.query.charCodeAt(o)==e&&(o==this.query.length-1?i={from:this.matches[s+1],to:r}:(this.matches[s]++,a=true)),a||(this.matches.splice(s,2),s-=2);}return this.query.charCodeAt(0)==e&&(this.query.length==1?i={from:n,to:r}:this.matches.push(1,n)),i&&this.test&&!this.test(i.from,i.to,this.buffer,this.bufferStart)&&(i=null),i}}typeof Symbol<"u"&&(ml.prototype[Symbol.iterator]=function(){return this});const pS={from:-1,to:-1,match:/.*/.exec("")},py="gm"+(/x/.unicode==null?"":"u");class mS{constructor(e,n,r,i=0,s=e.length){if(this.text=e,this.to=s,this.curLine="",this.done=false,this.value=pS,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new gS(e,n,r,i,s);this.re=new RegExp(n,py+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.iter=e.iter();let o=e.lineAt(i);this.curLineStart=o.from,this.matchPos=Id(e,i),this.getLine(this.curLineStart);}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next());}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0);}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,i=r+n[0].length;if(this.matchPos=Id(this.text,i+(r==i?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(r<i||r>this.value.to)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this;e=this.matchPos-this.curLineStart;}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=true,this}}}const Sp=new WeakMap;class Ga{constructor(e,n){this.from=e,this.text=n;}get to(){return this.from+this.text.length}static get(e,n,r){let i=Sp.get(e);if(!i||i.from>=r||i.to<=n){let a=new Ga(n,e.sliceString(n,r));return Sp.set(e,a),a}if(i.from==n&&i.to==r)return i;let{text:s,from:o}=i;return o>n&&(s=e.sliceString(n,o)+s,o=n),i.to<r&&(s+=e.sliceString(i.to,r)),Sp.set(e,new Ga(o,s)),new Ga(n,s.slice(n-o,r-o))}}class gS{constructor(e,n,r,i,s){this.text=e,this.to=s,this.done=false,this.value=pS,this.matchPos=Id(e,i),this.re=new RegExp(n,py+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.flat=Ga.get(e,i,this.chunkEnd(i+5e3));}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==e&&(this.re.lastIndex=e+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,i=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this.matchPos=Id(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=true,this;this.flat=Ga.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2));}}}typeof Symbol<"u"&&(mS.prototype[Symbol.iterator]=gS.prototype[Symbol.iterator]=function(){return this});function Hq(t){try{return new RegExp(t,py),!0}catch{return  false}}function Id(t,e){if(e>=t.length)return e;let n=t.lineAt(e),r;for(;e<n.to&&(r=n.text.charCodeAt(e-n.from))>=56320&&r<57344;)e++;return e}function Cg(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),n=mt("input",{class:"cm-textfield",name:"line",value:e}),r=mt("form",{class:"cm-gotoLine",onkeydown:s=>{s.keyCode==27?(s.preventDefault(),t.dispatch({effects:Fu.of(false)}),t.focus()):s.keyCode==13&&(s.preventDefault(),i());},onsubmit:s=>{s.preventDefault(),i();}},mt("label",t.state.phrase("Go to line"),": ",n)," ",mt("button",{class:"cm-button",type:"submit"},t.state.phrase("go")),mt("button",{name:"close",onclick:()=>{t.dispatch({effects:Fu.of(false)}),t.focus();},"aria-label":t.state.phrase("close"),type:"button"},["×"]));function i(){let s=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!s)return;let{state:o}=t,a=o.doc.lineAt(o.selection.main.head),[,l,u,c,f]=s,d=c?+c.slice(1):0,h=u?+u:a.number;if(u&&f){let g=h/100;l&&(g=g*(l=="-"?-1:1)+a.number/o.doc.lines),h=Math.round(o.doc.lines*g);}else u&&l&&(h=h*(l=="-"?-1:1)+a.number);let p=o.doc.line(Math.max(1,Math.min(o.doc.lines,h))),m=J.cursor(p.from+Math.max(0,Math.min(d,p.length)));t.dispatch({effects:[Fu.of(false),ue.scrollIntoView(m.from,{y:"center"})],selection:m}),t.focus();}return {dom:r}}const Fu=Ae.define(),W1=Qt.define({create(){return  true},update(t,e){for(let n of e.effects)n.is(Fu)&&(t=n.value);return t},provide:t=>Qu.from(t,e=>e?Cg:null)}),zq=t=>{let e=Yu(t,Cg);if(!e){let n=[Fu.of(true)];t.state.field(W1,false)==null&&n.push(Ae.appendConfig.of([W1,Kq])),t.dispatch({effects:n}),e=Yu(t,Cg);}return e&&e.dom.querySelector("input").select(),true},Kq=ue.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px",position:"relative","& label":{fontSize:"80%"},"& [name=close]":{position:"absolute",top:"0",bottom:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:"0"}}}),Uq={highlightWordAroundCursor:false,minSelectionLength:1,maxMatches:100,wholeWords:false},Jq=de.define({combine(t){return Mi(t,Uq,{highlightWordAroundCursor:(e,n)=>e||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function Gq(t){return [eW,Zq]}const Xq=De.mark({class:"cm-selectionMatch"}),Yq=De.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function H1(t,e,n,r){return (n==0||t(e.sliceDoc(n-1,n))!=Tt.Word)&&(r==e.doc.length||t(e.sliceDoc(r,r+1))!=Tt.Word)}function Qq(t,e,n,r){return t(e.sliceDoc(n,n+1))==Tt.Word&&t(e.sliceDoc(r-1,r))==Tt.Word}const Zq=Rt.fromClass(class{constructor(t){this.decorations=this.getDeco(t);}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view));}getDeco(t){let e=t.state.facet(Jq),{state:n}=t,r=n.selection;if(r.ranges.length>1)return De.none;let i=r.main,s,o=null;if(i.empty){if(!e.highlightWordAroundCursor)return De.none;let l=n.wordAt(i.head);if(!l)return De.none;o=n.charCategorizer(i.head),s=n.sliceDoc(l.from,l.to);}else {let l=i.to-i.from;if(l<e.minSelectionLength||l>200)return De.none;if(e.wholeWords){if(s=n.sliceDoc(i.from,i.to),o=n.charCategorizer(i.head),!(H1(o,n,i.from,i.to)&&Qq(o,n,i.from,i.to)))return De.none}else if(s=n.sliceDoc(i.from,i.to),!s)return De.none}let a=[];for(let l of t.visibleRanges){let u=new ml(n.doc,s,l.from,l.to);for(;!u.next().done;){let{from:c,to:f}=u.value;if((!o||H1(o,n,c,f))&&(i.empty&&c<=i.from&&f>=i.to?a.push(Yq.range(c,f)):(c>=i.to||f<=i.from)&&a.push(Xq.range(c,f)),a.length>e.maxMatches))return De.none}}return De.set(a)}},{decorations:t=>t.decorations}),eW=ue.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),tW=({state:t,dispatch:e})=>{let{selection:n}=t,r=J.create(n.ranges.map(i=>t.wordAt(i.head)||J.cursor(i.head)),n.mainIndex);return r.eq(n)?false:(e(t.update({selection:r})),true)};function nW(t,e){let{main:n,ranges:r}=t.selection,i=t.wordAt(n.head),s=i&&i.from==n.from&&i.to==n.to;for(let o=false,a=new ml(t.doc,e,r[r.length-1].to);;)if(a.next(),a.done){if(o)return null;a=new ml(t.doc,e,0,Math.max(0,r[r.length-1].from-1)),o=true;}else {if(o&&r.some(l=>l.from==a.value.from))continue;if(s){let l=t.wordAt(a.value.from);if(!l||l.from!=a.value.from||l.to!=a.value.to)continue}return a.value}}const rW=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(s=>s.from===s.to))return tW({state:t,dispatch:e});let r=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(s=>t.sliceDoc(s.from,s.to)!=r))return  false;let i=nW(t,r);return i?(e(t.update({selection:t.selection.addRange(J.range(i.from,i.to),false),effects:ue.scrollIntoView(i.to)})),true):false},Pl=de.define({combine(t){return Mi(t,{top:false,caseSensitive:false,literal:false,regexp:false,wholeWord:false,createPanel:e=>new mW(e),scrollToMatch:e=>ue.scrollIntoView(e)})}});class yS{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||Hq(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord;}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(n,r)=>r=="n"?`
`:r=="r"?"\r":r=="t"?"	":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new aW(this):new sW(this)}getCursor(e,n=0,r){let i=e.doc?e:Ve.create({doc:e});return r==null&&(r=i.doc.length),this.regexp?ka(this,i,n,r):Ta(this,i,n,r)}}class vS{constructor(e){this.spec=e;}}function Ta(t,e,n,r){return new ml(e.doc,t.unquoted,n,r,t.caseSensitive?void 0:i=>i.toLowerCase(),t.wholeWord?iW(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function iW(t,e){return (n,r,i,s)=>((s>n||s+i.length<r)&&(s=Math.max(0,n-2),i=t.sliceString(s,Math.min(t.length,r+2))),(e(Ld(i,n-s))!=Tt.Word||e(Rd(i,n-s))!=Tt.Word)&&(e(Rd(i,r-s))!=Tt.Word||e(Ld(i,r-s))!=Tt.Word))}class sW extends vS{constructor(e){super(e);}nextMatch(e,n,r){let i=Ta(this.spec,e,r,e.doc.length).nextOverlapping();if(i.done){let s=Math.min(e.doc.length,n+this.spec.unquoted.length);i=Ta(this.spec,e,0,s).nextOverlapping();}return i.done||i.value.from==n&&i.value.to==r?null:i.value}prevMatchInRange(e,n,r){for(let i=r;;){let s=Math.max(n,i-1e4-this.spec.unquoted.length),o=Ta(this.spec,e,s,i),a=null;for(;!o.nextOverlapping().done;)a=o.value;if(a)return a;if(s==n)return null;i-=1e4;}}prevMatch(e,n,r){let i=this.prevMatchInRange(e,0,n);return i||(i=this.prevMatchInRange(e,Math.max(0,r-this.spec.unquoted.length),e.doc.length)),i&&(i.from!=n||i.to!=r)?i:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,n){let r=Ta(this.spec,e,0,e.doc.length),i=[];for(;!r.next().done;){if(i.length>=n)return null;i.push(r.value);}return i}highlight(e,n,r,i){let s=Ta(this.spec,e,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,e.doc.length));for(;!s.next().done;)i(s.value.from,s.value.to);}}function ka(t,e,n,r){return new mS(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?oW(e.charCategorizer(e.selection.main.head)):void 0},n,r)}function Ld(t,e){return t.slice(nn(t,e,false),e)}function Rd(t,e){return t.slice(e,nn(t,e))}function oW(t){return (e,n,r)=>!r[0].length||(t(Ld(r.input,r.index))!=Tt.Word||t(Rd(r.input,r.index))!=Tt.Word)&&(t(Rd(r.input,r.index+r[0].length))!=Tt.Word||t(Ld(r.input,r.index+r[0].length))!=Tt.Word)}class aW extends vS{nextMatch(e,n,r){let i=ka(this.spec,e,r,e.doc.length).next();return i.done&&(i=ka(this.spec,e,0,n).next()),i.done?null:i.value}prevMatchInRange(e,n,r){for(let i=1;;i++){let s=Math.max(n,r-i*1e4),o=ka(this.spec,e,s,r),a=null;for(;!o.next().done;)a=o.value;if(a&&(s==n||a.from>s+10))return a;if(s==n)return null}}prevMatch(e,n,r){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,r,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(n,r)=>{if(r=="&")return e.match[0];if(r=="$")return "$";for(let i=r.length;i>0;i--){let s=+r.slice(0,i);if(s>0&&s<e.match.length)return e.match[s]+r.slice(i)}return n})}matchAll(e,n){let r=ka(this.spec,e,0,e.doc.length),i=[];for(;!r.next().done;){if(i.length>=n)return null;i.push(r.value);}return i}highlight(e,n,r,i){let s=ka(this.spec,e,Math.max(0,n-250),Math.min(r+250,e.doc.length));for(;!s.next().done;)i(s.value.from,s.value.to);}}const nc=Ae.define(),my=Ae.define(),Js=Qt.define({create(t){return new Ap(xg(t).create(),null)},update(t,e){for(let n of e.effects)n.is(nc)?t=new Ap(n.value.create(),t.panel):n.is(my)&&(t=new Ap(t.query,n.value?gy:null));return t},provide:t=>Qu.from(t,e=>e.panel)});class Ap{constructor(e,n){this.query=e,this.panel=n;}}const lW=De.mark({class:"cm-searchMatch"}),uW=De.mark({class:"cm-searchMatch cm-searchMatch-selected"}),cW=Rt.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(Js));}update(t){let e=t.state.field(Js);(e!=t.startState.field(Js)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e));}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return De.none;let{view:n}=this,r=new es;for(let i=0,s=n.visibleRanges,o=s.length;i<o;i++){let{from:a,to:l}=s[i];for(;i<o-1&&l>s[i+1].from-2*250;)l=s[++i].to;t.highlight(n.state,a,l,(u,c)=>{let f=n.state.selection.ranges.some(d=>d.from==u&&d.to==c);r.add(u,c,f?uW:lW);});}return r.finish()}},{decorations:t=>t.decorations});function Nc(t){return e=>{let n=e.state.field(Js,false);return n&&n.query.spec.valid?t(e,n):CS(e)}}const _d=Nc((t,{query:e})=>{let{to:n}=t.state.selection.main,r=e.nextMatch(t.state,n,n);if(!r)return  false;let i=J.single(r.from,r.to),s=t.state.facet(Pl);return t.dispatch({selection:i,effects:[yy(t,r),s.scrollToMatch(i.main,t)],userEvent:"select.search"}),bS(t),true}),jd=Nc((t,{query:e})=>{let{state:n}=t,{from:r}=n.selection.main,i=e.prevMatch(n,r,r);if(!i)return  false;let s=J.single(i.from,i.to),o=t.state.facet(Pl);return t.dispatch({selection:s,effects:[yy(t,i),o.scrollToMatch(s.main,t)],userEvent:"select.search"}),bS(t),true}),fW=Nc((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return !n||!n.length?false:(t.dispatch({selection:J.create(n.map(r=>J.range(r.from,r.to))),userEvent:"select.search.matches"}),true)}),dW=({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return  false;let{from:r,to:i}=n.main,s=[],o=0;for(let a=new ml(t.doc,t.sliceDoc(r,i));!a.next().done;){if(s.length>1e3)return  false;a.value.from==r&&(o=s.length),s.push(J.range(a.value.from,a.value.to));}return e(t.update({selection:J.create(s,o),userEvent:"select.search.matches"})),true},z1=Nc((t,{query:e})=>{let{state:n}=t,{from:r,to:i}=n.selection.main;if(n.readOnly)return  false;let s=e.nextMatch(n,r,r);if(!s)return  false;let o=s,a=[],l,u,c=[];o.from==r&&o.to==i&&(u=n.toText(e.getReplacement(o)),a.push({from:o.from,to:o.to,insert:u}),o=e.nextMatch(n,o.from,o.to),c.push(ue.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+".")));let f=t.state.changes(a);return o&&(l=J.single(o.from,o.to).map(f),c.push(yy(t,o)),c.push(n.facet(Pl).scrollToMatch(l.main,t))),t.dispatch({changes:f,selection:l,effects:c,userEvent:"input.replace"}),true}),hW=Nc((t,{query:e})=>{if(t.state.readOnly)return  false;let n=e.matchAll(t.state,1e9).map(i=>{let{from:s,to:o}=i;return {from:s,to:o,insert:e.getReplacement(i)}});if(!n.length)return  false;let r=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:ue.announce.of(r),userEvent:"input.replace.all"}),true});function gy(t){return t.state.facet(Pl).createPanel(t)}function xg(t,e){var n,r,i,s,o;let a=t.selection.main,l=a.empty||a.to>a.from+100?"":t.sliceDoc(a.from,a.to);if(e&&!l)return e;let u=t.facet(Pl);return new yS({search:((n=e==null?void 0:e.literal)!==null&&n!==void 0?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(r=e==null?void 0:e.caseSensitive)!==null&&r!==void 0?r:u.caseSensitive,literal:(i=e==null?void 0:e.literal)!==null&&i!==void 0?i:u.literal,regexp:(s=e==null?void 0:e.regexp)!==null&&s!==void 0?s:u.regexp,wholeWord:(o=e==null?void 0:e.wholeWord)!==null&&o!==void 0?o:u.wholeWord})}function DS(t){let e=Yu(t,gy);return e&&e.dom.querySelector("[main-field]")}function bS(t){let e=DS(t);e&&e==t.root.activeElement&&e.select();}const CS=t=>{let e=t.state.field(Js,false);if(e&&e.panel){let n=DS(t);if(n&&n!=t.root.activeElement){let r=xg(t.state,e.query.spec);r.valid&&t.dispatch({effects:nc.of(r)}),n.focus(),n.select();}}else t.dispatch({effects:[my.of(true),e?nc.of(xg(t.state,e.query.spec)):Ae.appendConfig.of(yW)]});return  true},xS=t=>{let e=t.state.field(Js,false);if(!e||!e.panel)return  false;let n=Yu(t,gy);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:my.of(false)}),true},pW=[{key:"Mod-f",run:CS,scope:"editor search-panel"},{key:"F3",run:_d,shift:jd,scope:"editor search-panel",preventDefault:true},{key:"Mod-g",run:_d,shift:jd,scope:"editor search-panel",preventDefault:true},{key:"Escape",run:xS,scope:"editor search-panel"},{key:"Mod-Shift-l",run:dW},{key:"Mod-Alt-g",run:zq},{key:"Mod-d",run:rW,preventDefault:true}];class mW{constructor(e){this.view=e;let n=this.query=e.state.field(Js).query.spec;this.commit=this.commit.bind(this),this.searchField=mt("input",{value:n.search,placeholder:nr(e,"Find"),"aria-label":nr(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=mt("input",{value:n.replace,placeholder:nr(e,"Replace"),"aria-label":nr(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=mt("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=mt("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=mt("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,s,o){return mt("button",{class:"cm-button",name:i,onclick:s,type:"button"},o)}this.dom=mt("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>_d(e),[nr(e,"next")]),r("prev",()=>jd(e),[nr(e,"previous")]),r("select",()=>fW(e),[nr(e,"all")]),mt("label",null,[this.caseField,nr(e,"match case")]),mt("label",null,[this.reField,nr(e,"regexp")]),mt("label",null,[this.wordField,nr(e,"by word")]),...e.state.readOnly?[]:[mt("br"),this.replaceField,r("replace",()=>z1(e),[nr(e,"replace")]),r("replaceAll",()=>hW(e),[nr(e,"replace all")])],mt("button",{name:"close",onclick:()=>xS(e),"aria-label":nr(e,"close"),type:"button"},["×"])]);}commit(){let e=new yS({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:nc.of(e)}));}keydown(e){m_(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?jd:_d)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),z1(this.view));}update(e){for(let n of e.transactions)for(let r of n.effects)r.is(nc)&&!r.value.eq(this.query)&&this.setQuery(r.value);}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord;}mount(){this.searchField.select();}get pos(){return 80}get top(){return this.view.state.facet(Pl).top}}function nr(t,e){return t.state.phrase(e)}const Ef=30,Ff=/[\s\.,:;?!]/;function yy(t,{from:e,to:n}){let r=t.state.doc.lineAt(e),i=t.state.doc.lineAt(n).to,s=Math.max(r.from,e-Ef),o=Math.min(i,n+Ef),a=t.state.sliceDoc(s,o);if(s!=r.from){for(let l=0;l<Ef;l++)if(!Ff.test(a[l+1])&&Ff.test(a[l])){a=a.slice(l);break}}if(o!=i){for(let l=a.length-1;l>a.length-Ef;l--)if(!Ff.test(a[l-1])&&Ff.test(a[l])){a=a.slice(0,l);break}}return ue.announce.of(`${t.state.phrase("current match")}. ${a} ${t.state.phrase("on line")} ${r.number}.`)}const gW=ue.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),yW=[Js,po.low(cW),gW];class ES{constructor(e,n,r,i){this.state=e,this.pos=n,this.explicit=r,this.view=i,this.abortListeners=[],this.abortOnDocChange=false;}tokenBefore(e){let n=ln(this.state).resolveInner(this.pos,-1);for(;n&&e.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(e){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),i=n.text.slice(r-n.from,this.pos-n.from),s=i.search(FS(e,false));return s<0?null:{from:r+s,to:this.pos,text:i.slice(s)}}get aborted(){return this.abortListeners==null}addEventListener(e,n,r){e=="abort"&&this.abortListeners&&(this.abortListeners.push(n),r&&r.onDocChange&&(this.abortOnDocChange=true));}}function K1(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function vW(t){let e=Object.create(null),n=Object.create(null);for(let{label:i}of t){e[i[0]]=true;for(let s=1;s<i.length;s++)n[i[s]]=true;}let r=K1(e)+K1(n)+"*$";return [new RegExp("^"+r),new RegExp(r)]}function DW(t){let e=t.map(i=>typeof i=="string"?{label:i}:i),[n,r]=e.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:vW(e);return i=>{let s=i.matchBefore(r);return s||i.explicit?{from:s?s.from:i.pos,options:e,validFor:n}:null}}function Ate(t,e){return n=>{for(let r=ln(n.state).resolveInner(n.pos,-1);r;r=r.parent){if(t.indexOf(r.name)>-1)return null;if(r.type.isTop)break}return e(n)}}class U1{constructor(e,n,r,i){this.completion=e,this.source=n,this.match=r,this.score=i;}}function qo(t){return t.selection.main.from}function FS(t,e){var n;let{source:r}=t,i=e&&r[0]!="^",s=r[r.length-1]!="$";return !i&&!s?t:new RegExp(`${i?"^":""}(?:${r})${s?"$":""}`,(n=t.flags)!==null&&n!==void 0?n:t.ignoreCase?"i":"")}const vy=hs.define();function bW(t,e,n,r){let{main:i}=t.selection,s=n-i.from,o=r-i.from;return Object.assign(Object.assign({},t.changeByRange(a=>{if(a!=i&&n!=r&&t.sliceDoc(a.from+s,a.from+o)!=t.sliceDoc(n,r))return {range:a};let l=t.toText(e);return {changes:{from:a.from+s,to:r==i.from?a.to:a.from+o,insert:l},range:J.cursor(a.from+s+l.length)}})),{scrollIntoView:true,userEvent:"input.complete"})}const J1=new WeakMap;function CW(t){if(!Array.isArray(t))return t;let e=J1.get(t);return e||J1.set(t,e=DW(t)),e}const Vd=Ae.define(),rc=Ae.define();class xW{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n<e.length;){let r=jn(e,n),i=gi(r);this.chars.push(r);let s=e.slice(n,n+i),o=s.toUpperCase();this.folded.push(jn(o==s?s.toLowerCase():o,0)),n+=i;}this.astral=e.length!=this.chars.length;}ret(e,n){return this.score=e,this.matched=n,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:n,folded:r,any:i,precise:s,byWord:o}=this;if(n.length==1){let F=jn(e,0),x=gi(F),b=x==e.length?0:-100;if(F!=n[0])if(F==r[0])b+=-200;else return null;return this.ret(b,[0,x])}let a=e.indexOf(this.pattern);if(a==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=n.length,u=0;if(a<0){for(let F=0,x=Math.min(e.length,200);F<x&&u<l;){let b=jn(e,F);(b==n[u]||b==r[u])&&(i[u++]=F),F+=gi(b);}if(u<l)return null}let c=0,f=0,d=false,h=0,p=-1,m=-1,g=/[a-z]/.test(e),y=true;for(let F=0,x=Math.min(e.length,200),b=0;F<x&&f<l;){let D=jn(e,F);a<0&&(c<l&&D==n[c]&&(s[c++]=F),h<l&&(D==n[h]||D==r[h]?(h==0&&(p=F),m=F+1,h++):h=0));let C,E=D<255?D>=48&&D<=57||D>=97&&D<=122?2:D>=65&&D<=90?1:0:(C=H0(D))!=C.toLowerCase()?1:C!=C.toUpperCase()?2:0;(!F||E==1&&g||b==0&&E!=0)&&(n[f]==D||r[f]==D&&(d=true)?o[f++]=F:o.length&&(y=false)),b=E,F+=gi(D);}return f==l&&o[0]==0&&y?this.result(-100+(d?-200:0),o,e):h==l&&p==0?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):h==l?this.ret(-900-e.length,[p,m]):f==l?this.result(-100+(d?-200:0)+-700+(y?0:-1100),o,e):n.length==2?null:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,n,r){let i=[],s=0;for(let o of n){let a=o+(this.astral?gi(jn(r,o)):1);s&&i[s-1]==o?i[s-1]=a:(i[s++]=o,i[s++]=a);}return this.ret(e-r.length,i)}}class EW{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase();}match(e){if(e.length<this.pattern.length)return null;let n=e.slice(0,this.pattern.length),r=n==this.pattern?0:n.toLowerCase()==this.folded?-200:null;return r==null?null:(this.matched=[0,n.length],this.score=r+(e.length==this.pattern.length?0:-100),this)}}const Gt=de.define({combine(t){return Mi(t,{activateOnTyping:true,activateOnCompletion:()=>false,activateOnTypingDelay:100,selectOnOpen:true,override:null,closeOnBlur:true,maxRenderedOptions:100,defaultKeymap:true,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:false,icons:true,addToOptions:[],positionInfo:FW,filterStrict:false,compareCompletions:(e,n)=>e.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,n)=>e&&n,closeOnBlur:(e,n)=>e&&n,icons:(e,n)=>e&&n,tooltipClass:(e,n)=>r=>G1(e(r),n(r)),optionClass:(e,n)=>r=>G1(e(r),n(r)),addToOptions:(e,n)=>e.concat(n),filterStrict:(e,n)=>e||n})}});function G1(t,e){return t?e?t+" "+e:t:e}function FW(t,e,n,r,i,s){let o=t.textDirection==Et.RTL,a=o,l=false,u="top",c,f,d=e.left-i.left,h=i.right-e.right,p=r.right-r.left,m=r.bottom-r.top;if(a&&d<Math.min(p,h)?a=false:!a&&h<Math.min(p,d)&&(a=true),p<=(a?d:h))c=Math.max(i.top,Math.min(n.top,i.bottom-m))-e.top,f=Math.min(400,a?d:h);else {l=true,f=Math.min(400,(o?e.right:i.right-e.left)-30);let F=i.bottom-e.bottom;F>=m||F>e.top?c=n.bottom-e.top:(u="bottom",c=e.bottom-n.top);}let g=(e.bottom-e.top)/s.offsetHeight,y=(e.right-e.left)/s.offsetWidth;return {style:`${u}: ${c/g}px; max-width: ${f/y}px`,class:"cm-completionInfo-"+(l?o?"left-narrow":"right-narrow":a?"left":"right")}}function wW(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(i=>"cm-completionIcon-"+i)),r.setAttribute("aria-hidden","true"),r},position:20}),e.push({render(n,r,i,s){let o=document.createElement("span");o.className="cm-completionLabel";let a=n.displayLabel||n.label,l=0;for(let u=0;u<s.length;){let c=s[u++],f=s[u++];c>l&&o.appendChild(document.createTextNode(a.slice(l,c)));let d=o.appendChild(document.createElement("span"));d.appendChild(document.createTextNode(a.slice(c,f))),d.className="cm-completionMatchedText",l=f;}return l<a.length&&o.appendChild(document.createTextNode(a.slice(l))),o},position:50},{render(n){if(!n.detail)return null;let r=document.createElement("span");return r.className="cm-completionDetail",r.textContent=n.detail,r},position:80}),e.sort((n,r)=>n.position-r.position).map(n=>n.render)}function Tp(t,e,n){if(t<=n)return {from:0,to:t};if(e<0&&(e=0),e<=t>>1){let i=Math.floor(e/n);return {from:i*n,to:(i+1)*n}}let r=Math.floor((t-e)/n);return {from:t-(r+1)*n,to:t-r*n}}class SW{constructor(e,n,r){this.view=e,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let i=e.state.field(n),{options:s,selected:o}=i.open,a=e.state.facet(Gt);this.optionContent=wW(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=Tp(s.length,o,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",l=>{let{options:u}=e.state.field(n).open;for(let c=l.target,f;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(f=/-(\d+)$/.exec(c.id))&&+f[1]<u.length){this.applyCompletion(e,u[+f[1]]),l.preventDefault();return}}),this.dom.addEventListener("focusout",l=>{let u=e.state.field(this.stateField,false);u&&u.tooltip&&e.state.facet(Gt).closeOnBlur&&l.relatedTarget!=e.contentDOM&&e.dispatch({effects:rc.of(null)});}),this.showOptions(s,i.id);}mount(){this.updateSel();}showOptions(e,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq);});}update(e){var n;let r=e.state.field(this.stateField),i=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),r!=i){let{options:s,selected:o,disabled:a}=r.open;(!i.open||i.open.options!=s)&&(this.range=Tp(s.length,o,e.state.facet(Gt).maxRenderedOptions),this.showOptions(s,r.id)),this.updateSel(),a!=((n=i.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a);}}updateTooltipClass(e){let n=this.tooltipClass(e);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n;}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq);}updateSel(){let e=this.view.state.field(this.stateField),n=e.open;if((n.selected>-1&&n.selected<this.range.from||n.selected>=this.range.to)&&(this.range=Tp(n.options.length,n.selected,this.view.state.facet(Gt).maxRenderedOptions),this.showOptions(n.options,e.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:r}=n.options[n.selected],{info:i}=r;if(!i)return;let s=typeof i=="string"?document.createTextNode(i):i(r);if(!s)return;"then"in s?s.then(o=>{o&&this.view.state.field(this.stateField,false)==e&&this.addInfoPane(o,r);}).catch(o=>Wn(this.view.state,o,"completion info")):this.addInfoPane(s,r);}}addInfoPane(e,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",e.nodeType!=null)r.appendChild(e),this.infoDestroy=null;else {let{dom:i,destroy:s}=e;r.appendChild(i),this.infoDestroy=s||null;}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq);}updateSelectedOption(e){let n=null;for(let r=this.list.firstChild,i=this.range.from;r;r=r.nextSibling,i++)r.nodeName!="LI"||!r.id?i--:i==e?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected");return n&&TW(this.list,n),n}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),i=e.getBoundingClientRect(),s=this.space;if(!s){let o=this.dom.ownerDocument.documentElement;s={left:0,top:0,right:o.clientWidth,bottom:o.clientHeight};}return i.top>Math.min(s.bottom,n.bottom)-10||i.bottom<Math.max(s.top,n.top)+10?null:this.view.state.facet(Gt).positionInfo(this.view,n,i,r,s,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px");}createListBox(e,n,r){const i=document.createElement("ul");i.id=n,i.setAttribute("role","listbox"),i.setAttribute("aria-expanded","true"),i.setAttribute("aria-label",this.view.state.phrase("Completions")),i.addEventListener("mousedown",o=>{o.target==i&&o.preventDefault();});let s=null;for(let o=r.from;o<r.to;o++){let{completion:a,match:l}=e[o],{section:u}=a;if(u){let d=typeof u=="string"?u:u.name;if(d!=s&&(o>r.from||r.from==0))if(s=d,typeof u!="string"&&u.header)i.appendChild(u.header(u));else {let h=i.appendChild(document.createElement("completion-section"));h.textContent=d;}}const c=i.appendChild(document.createElement("li"));c.id=n+"-"+o,c.setAttribute("role","option");let f=this.optionClass(a);f&&(c.className=f);for(let d of this.optionContent){let h=d(a,this.view.state,this.view,l);h&&c.appendChild(h);}}return r.from&&i.classList.add("cm-completionListIncompleteTop"),r.to<e.length&&i.classList.add("cm-completionListIncompleteBottom"),i}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null);}destroy(){this.destroyInfo();}}function AW(t,e){return n=>new SW(n,t,e)}function TW(t,e){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=n.height/t.offsetHeight;r.top<n.top?t.scrollTop-=(n.top-r.top)/i:r.bottom>n.bottom&&(t.scrollTop+=(r.bottom-n.bottom)/i);}function X1(t){return (t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function kW(t,e){let n=[],r=null,i=u=>{n.push(u);let{section:c}=u.completion;if(c){r||(r=[]);let f=typeof c=="string"?c:c.name;r.some(d=>d.name==f)||r.push(typeof c=="string"?{name:f}:c);}},s=e.facet(Gt);for(let u of t)if(u.hasResult()){let c=u.result.getMatch;if(u.result.filter===false)for(let f of u.result.options)i(new U1(f,u.source,c?c(f):[],1e9-n.length));else {let f=e.sliceDoc(u.from,u.to),d,h=s.filterStrict?new EW(f):new xW(f);for(let p of u.result.options)if(d=h.match(p.label)){let m=p.displayLabel?c?c(p,d.matched):[]:d.matched;i(new U1(p,u.source,m,d.score+(p.boost||0)));}}}if(r){let u=Object.create(null),c=0,f=(d,h)=>{var p,m;return ((p=d.rank)!==null&&p!==void 0?p:1e9)-((m=h.rank)!==null&&m!==void 0?m:1e9)||(d.name<h.name?-1:1)};for(let d of r.sort(f))c-=1e5,u[d.name]=c;for(let d of n){let{section:h}=d.completion;h&&(d.score+=u[typeof h=="string"?h:h.name]);}}let o=[],a=null,l=s.compareCompletions;for(let u of n.sort((c,f)=>f.score-c.score||l(c.completion,f.completion))){let c=u.completion;!a||a.label!=c.label||a.detail!=c.detail||a.type!=null&&c.type!=null&&a.type!=c.type||a.apply!=c.apply||a.boost!=c.boost?o.push(u):X1(u.completion)>X1(a)&&(o[o.length-1]=u),a=u.completion;}return o}class Na{constructor(e,n,r,i,s,o){this.options=e,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=s,this.disabled=o;}setSelected(e,n){return e==this.selected||e>=this.options.length?this:new Na(this.options,Y1(n,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,n,r,i,s,o){if(i&&!o&&e.some(u=>u.isPending))return i.setDisabled();let a=kW(e,n);if(!a.length)return i&&e.some(u=>u.isPending)?i.setDisabled():null;let l=n.facet(Gt).selectOnOpen?0:-1;if(i&&i.selected!=l&&i.selected!=-1){let u=i.options[i.selected].completion;for(let c=0;c<a.length;c++)if(a[c].completion==u){l=c;break}}return new Na(a,Y1(r,l),{pos:e.reduce((u,c)=>c.hasResult()?Math.min(u,c.from):u,1e8),create:NW,above:s.aboveCursor},i?i.timestamp:Date.now(),l,false)}map(e){return new Na(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}setDisabled(){return new Na(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,true)}}class qd{constructor(e,n,r){this.active=e,this.id=n,this.open=r;}static start(){return new qd(MW,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:n}=e,r=n.facet(Gt),s=(r.override||n.languageDataAt("autocomplete",qo(n)).map(CW)).map(l=>(this.active.find(c=>c.source==l)||new yr(l,this.active.some(c=>c.state!=0)?1:0)).update(e,r));s.length==this.active.length&&s.every((l,u)=>l==this.active[u])&&(s=this.active);let o=this.open,a=e.effects.some(l=>l.is(Dy));o&&e.docChanged&&(o=o.map(e.changes)),e.selection||s.some(l=>l.hasResult()&&e.changes.touchesRange(l.from,l.to))||!BW(s,this.active)||a?o=Na.build(s,n,this.id,o,r,a):o&&o.disabled&&!s.some(l=>l.isPending)&&(o=null),!o&&s.every(l=>!l.isPending)&&s.some(l=>l.hasResult())&&(s=s.map(l=>l.hasResult()?new yr(l.source,0):l));for(let l of e.effects)l.is(SS)&&(o=o&&o.setSelected(l.value,this.id));return s==this.active&&o==this.open?this:new qd(s,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?OW:$W}}function BW(t,e){if(t==e)return  true;for(let n=0,r=0;;){for(;n<t.length&&!t[n].hasResult();)n++;for(;r<e.length&&!e[r].hasResult();)r++;let i=n==t.length,s=r==e.length;if(i||s)return i==s;if(t[n++].result!=e[r++].result)return  false}}const OW={"aria-autocomplete":"list"},$W={};function Y1(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}const MW=[];function wS(t,e){if(t.isUserEvent("input.complete")){let r=t.annotation(vy);if(r&&e.activateOnCompletion(r))return 12}let n=t.isUserEvent("input.type");return n&&e.activateOnTyping?5:n?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}class yr{constructor(e,n,r=false){this.source=e,this.state=n,this.explicit=r;}hasResult(){return  false}get isPending(){return this.state==1}update(e,n){let r=wS(e,n),i=this;(r&8||r&16&&this.touches(e))&&(i=new yr(i.source,0)),r&4&&i.state==0&&(i=new yr(this.source,1)),i=i.updateFor(e,r);for(let s of e.effects)if(s.is(Vd))i=new yr(i.source,1,s.value);else if(s.is(rc))i=new yr(i.source,0);else if(s.is(Dy))for(let o of s.value)o.source==i.source&&(i=o);return i}updateFor(e,n){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(qo(e.state))}}class Xa extends yr{constructor(e,n,r,i,s,o){super(e,3,n),this.limit=r,this.result=i,this.from=s,this.to=o;}hasResult(){return  true}updateFor(e,n){var r;if(!(n&3))return this.map(e.changes);let i=this.result;i.map&&!e.changes.empty&&(i=i.map(i,e.changes));let s=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),a=qo(e.state);if(a>o||!i||n&2&&(qo(e.startState)==this.from||a<this.limit))return new yr(this.source,n&4?1:0);let l=e.changes.mapPos(this.limit);return PW(i.validFor,e.state,s,o)?new Xa(this.source,this.explicit,l,i,s,o):i.update&&(i=i.update(i,s,o,new ES(e.state,a,false)))?new Xa(this.source,this.explicit,l,i,i.from,(r=i.to)!==null&&r!==void 0?r:qo(e.state)):new yr(this.source,1,this.explicit)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new Xa(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new yr(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function PW(t,e,n,r){if(!t)return  false;let i=e.sliceDoc(n,r);return typeof t=="function"?t(i,n,r,e):FS(t,true).test(i)}const Dy=Ae.define({map(t,e){return t.map(n=>n.map(e))}}),SS=Ae.define(),qn=Qt.define({create(){return qd.start()},update(t,e){return t.update(e)},provide:t=>[sy.from(t,e=>e.tooltip),ue.contentAttributes.from(t,e=>e.attrs)]});function by(t,e){const n=e.completion.apply||e.completion.label;let r=t.state.field(qn).active.find(i=>i.source==e.source);return r instanceof Xa?(typeof n=="string"?t.dispatch(Object.assign(Object.assign({},bW(t.state,n,r.from,r.to)),{annotations:vy.of(e.completion)})):n(t,e.completion,r.from,r.to),true):false}const NW=AW(qn,by);function wf(t,e="option"){return n=>{let r=n.state.field(qn,false);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(Gt).interactionDelay)return  false;let i=1,s;e=="page"&&(s=cw(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(s.dom.offsetHeight/s.dom.querySelector("li").offsetHeight)-1));let{length:o}=r.open.options,a=r.open.selected>-1?r.open.selected+i*(t?1:-1):t?0:o-1;return a<0?a=e=="page"?0:o-1:a>=o&&(a=e=="page"?o-1:0),n.dispatch({effects:SS.of(a)}),true}}const IW=t=>{let e=t.state.field(qn,false);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(Gt).interactionDelay?false:by(t,e.open.options[e.open.selected])},Q1=t=>t.state.field(qn,false)?(t.dispatch({effects:Vd.of(true)}),true):false,LW=t=>{let e=t.state.field(qn,false);return !e||!e.active.some(n=>n.state!=0)?false:(t.dispatch({effects:rc.of(null)}),true)};class RW{constructor(e,n){this.active=e,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0;}}const _W=50,jW=1e3,VW=Rt.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=false,this.composing=0;for(let e of t.state.field(qn).active)e.isPending&&this.startQuery(e);}update(t){let e=t.state.field(qn),n=t.state.facet(Gt);if(!t.selectionSet&&!t.docChanged&&t.startState.field(qn)==e)return;let r=t.transactions.some(s=>{let o=wS(s,n);return o&8||(s.selection||s.docChanged)&&!(o&3)});for(let s=0;s<this.running.length;s++){let o=this.running[s];if(r||o.context.abortOnDocChange&&t.docChanged||o.updates.length+t.transactions.length>_W&&Date.now()-o.time>jW){for(let a of o.context.abortListeners)try{a();}catch(l){Wn(this.view.state,l);}o.context.abortListeners=null,this.running.splice(s--,1);}else o.updates.push(...t.transactions);}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(s=>s.effects.some(o=>o.is(Vd)))&&(this.pendingStart=true);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(s=>s.isPending&&!this.running.some(o=>o.active.source==s.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let s of t.transactions)s.isUserEvent("input.type")?this.composing=2:this.composing==2&&s.selection&&(this.composing=3);}startUpdate(){this.debounceUpdate=-1,this.pendingStart=false;let{state:t}=this.view,e=t.field(qn);for(let n of e.active)n.isPending&&!this.running.some(r=>r.active.source==n.source)&&this.startQuery(n);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Gt).updateSyncTime));}startQuery(t){let{state:e}=this.view,n=qo(e),r=new ES(e,n,t.explicit,this.view),i=new RW(t,r);this.running.push(i),Promise.resolve(t.source(r)).then(s=>{i.context.aborted||(i.done=s||null,this.scheduleAccept());},s=>{this.view.dispatch({effects:rc.of(null)}),Wn(this.view.state,s);});}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Gt).updateSyncTime));}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(Gt),r=this.view.state.field(qn);for(let i=0;i<this.running.length;i++){let s=this.running[i];if(s.done===void 0)continue;if(this.running.splice(i--,1),s.done){let a=qo(s.updates.length?s.updates[0].startState:this.view.state),l=Math.min(a,s.done.from+(s.active.explicit?0:1)),u=new Xa(s.active.source,s.active.explicit,l,s.done,s.done.from,(t=s.done.to)!==null&&t!==void 0?t:a);for(let c of s.updates)u=u.update(c,n);if(u.hasResult()){e.push(u);continue}}let o=r.active.find(a=>a.source==s.active.source);if(o&&o.isPending)if(s.done==null){let a=new yr(s.active.source,0);for(let l of s.updates)a=a.update(l,n);a.isPending||e.push(a);}else this.startQuery(o);}(e.length||r.open&&r.open.disabled)&&this.view.dispatch({effects:Dy.of(e)});}},{eventHandlers:{blur(t){let e=this.view.state.field(qn,false);if(e&&e.tooltip&&this.view.state.facet(Gt).closeOnBlur){let n=e.open&&cw(this.view,e.open.tooltip);(!n||!n.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:rc.of(null)}),10);}},compositionstart(){this.composing=1;},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Vd.of(false)}),20),this.composing=0;}}}),qW=typeof navigator=="object"&&/Win/.test(navigator.platform),WW=po.highest(ue.domEventHandlers({keydown(t,e){let n=e.state.field(qn,false);if(!n||!n.open||n.open.disabled||n.open.selected<0||t.key.length>1||t.ctrlKey&&!(qW&&t.altKey)||t.metaKey)return  false;let r=n.open.options[n.open.selected],i=n.active.find(o=>o.source==r.source),s=r.completion.commitCharacters||i.result.commitCharacters;return s&&s.indexOf(t.key)>-1&&by(e,r),false}})),AS=ue.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class HW{constructor(e,n,r,i){this.field=e,this.line=n,this.from=r,this.to=i;}}class Cy{constructor(e,n,r){this.field=e,this.from=n,this.to=r;}map(e){let n=e.mapPos(this.from,-1,tn.TrackDel),r=e.mapPos(this.to,1,tn.TrackDel);return n==null||r==null?null:new Cy(this.field,n,r)}}class xy{constructor(e,n){this.lines=e,this.fieldPositions=n;}instantiate(e,n){let r=[],i=[n],s=e.doc.lineAt(n),o=/^\s*/.exec(s.text)[0];for(let l of this.lines){if(r.length){let u=o,c=/^\t*/.exec(l)[0].length;for(let f=0;f<c;f++)u+=e.facet(Oc);i.push(n+u.length-c),l=u+l.slice(c);}r.push(l),n+=l.length+1;}let a=this.fieldPositions.map(l=>new Cy(l.field,i[l.line]+l.from,i[l.line]+l.to));return {text:r,ranges:a}}static parse(e){let n=[],r=[],i=[],s;for(let o of e.split(/\r\n?|\n/)){for(;s=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(o);){let a=s[1]?+s[1]:null,l=s[2]||s[3]||"",u=-1,c=l.replace(/\\[{}]/g,f=>f[1]);for(let f=0;f<n.length;f++)(a!=null?n[f].seq==a:c&&n[f].name==c)&&(u=f);if(u<0){let f=0;for(;f<n.length&&(a==null||n[f].seq!=null&&n[f].seq<a);)f++;n.splice(f,0,{seq:a,name:c}),u=f;for(let d of i)d.field>=u&&d.field++;}i.push(new HW(u,r.length,s.index,s.index+c.length)),o=o.slice(0,s.index)+l+o.slice(s.index+s[0].length);}o=o.replace(/\\([{}])/g,(a,l,u)=>{for(let c of i)c.line==r.length&&c.from>u&&(c.from--,c.to--);return l}),r.push(o);}return new xy(r,i)}}let zW=De.widget({widget:new class extends Pi{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return  false}}}),KW=De.mark({class:"cm-snippetField"});class Nl{constructor(e,n){this.ranges=e,this.active=n,this.deco=De.set(e.map(r=>(r.from==r.to?zW:KW).range(r.from,r.to)));}map(e){let n=[];for(let r of this.ranges){let i=r.map(e);if(!i)return null;n.push(i);}return new Nl(n,this.active)}selectionInsideField(e){return e.ranges.every(n=>this.ranges.some(r=>r.field==this.active&&r.from<=n.from&&r.to>=n.to))}}const Ic=Ae.define({map(t,e){return t&&t.map(e)}}),UW=Ae.define(),ic=Qt.define({create(){return null},update(t,e){for(let n of e.effects){if(n.is(Ic))return n.value;if(n.is(UW)&&t)return new Nl(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>ue.decorations.from(t,e=>e?e.deco:De.none)});function Ey(t,e){return J.create(t.filter(n=>n.field==e).map(n=>J.range(n.from,n.to)))}function JW(t){let e=xy.parse(t);return (n,r,i,s)=>{let{text:o,ranges:a}=e.instantiate(n.state,i),{main:l}=n.state.selection,u={changes:{from:i,to:s==l.from?l.to:s,insert:Qe.of(o)},scrollIntoView:true,annotations:r?[vy.of(r),Vt.userEvent.of("input.complete")]:void 0};if(a.length&&(u.selection=Ey(a,0)),a.some(c=>c.field>0)){let c=new Nl(a,0),f=u.effects=[Ic.of(c)];n.state.field(ic,false)===void 0&&f.push(Ae.appendConfig.of([ic,ZW,eH,AS]));}n.dispatch(n.state.update(u));}}function TS(t){return ({state:e,dispatch:n})=>{let r=e.field(ic,false);if(!r||t<0&&r.active==0)return  false;let i=r.active+t,s=t>0&&!r.ranges.some(o=>o.field==i+t);return n(e.update({selection:Ey(r.ranges,i),effects:Ic.of(s?null:new Nl(r.ranges,i)),scrollIntoView:true})),true}}const GW=({state:t,dispatch:e})=>t.field(ic,false)?(e(t.update({effects:Ic.of(null)})),true):false,XW=TS(1),YW=TS(-1),QW=[{key:"Tab",run:XW,shift:YW},{key:"Escape",run:GW}],Z1=de.define({combine(t){return t.length?t[0]:QW}}),ZW=po.highest(kc.compute([Z1],t=>t.facet(Z1)));function Tte(t,e){return Object.assign(Object.assign({},e),{apply:JW(t)})}const eH=ue.domEventHandlers({mousedown(t,e){let n=e.state.field(ic,false),r;if(!n||(r=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return  false;let i=n.ranges.find(s=>s.from<=r&&s.to>=r);return !i||i.field==n.active?false:(e.dispatch({selection:Ey(n.ranges,i.field),effects:Ic.of(n.ranges.some(s=>s.field>i.field)?new Nl(n.ranges,i.field):null),scrollIntoView:true}),true)}}),sc={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Lo=Ae.define({map(t,e){let n=e.mapPos(t,-1,tn.TrackAfter);return n??void 0}}),Fy=new class extends Uo{};Fy.startSide=1;Fy.endSide=-1;const kS=Qt.define({create(){return et.empty},update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:r=>r>=n.from&&r<=n.to});}for(let n of e.effects)n.is(Lo)&&(t=t.update({add:[Fy.range(n.value,n.value+1)]}));return t}});function tH(){return [rH,kS]}const kp="()[]{}<>«»»«[]{}";function BS(t){for(let e=0;e<kp.length;e+=2)if(kp.charCodeAt(e)==t)return kp.charAt(e+1);return H0(t<128?t:t+1)}function OS(t,e){return t.languageDataAt("closeBrackets",e)[0]||sc}const nH=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),rH=ue.inputHandler.of((t,e,n,r)=>{if((nH?t.composing:t.compositionStarted)||t.state.readOnly)return  false;let i=t.state.selection.main;if(r.length>2||r.length==2&&gi(jn(r,0))==1||e!=i.from||n!=i.to)return  false;let s=oH(t.state,r);return s?(t.dispatch(s),true):false}),iH=({state:t,dispatch:e})=>{if(t.readOnly)return  false;let r=OS(t,t.selection.main.head).brackets||sc.brackets,i=null,s=t.changeByRange(o=>{if(o.empty){let a=aH(t.doc,o.head);for(let l of r)if(l==a&&Fh(t.doc,o.head)==BS(jn(l,0)))return {changes:{from:o.head-l.length,to:o.head+l.length},range:J.cursor(o.head-l.length)}}return {range:i=o}});return i||e(t.update(s,{scrollIntoView:true,userEvent:"delete.backward"})),!i},sH=[{key:"Backspace",run:iH}];function oH(t,e){let n=OS(t,t.selection.main.head),r=n.brackets||sc.brackets;for(let i of r){let s=BS(jn(i,0));if(e==i)return s==i?cH(t,i,r.indexOf(i+i+i)>-1,n):lH(t,i,s,n.before||sc.before);if(e==s&&$S(t,t.selection.main.from))return uH(t,i,s)}return null}function $S(t,e){let n=false;return t.field(kS).between(0,t.doc.length,r=>{r==e&&(n=true);}),n}function Fh(t,e){let n=t.sliceString(e,e+2);return n.slice(0,gi(jn(n,0)))}function aH(t,e){let n=t.sliceString(e-2,e);return gi(jn(n,0))==n.length?n:n.slice(1)}function lH(t,e,n,r){let i=null,s=t.changeByRange(o=>{if(!o.empty)return {changes:[{insert:e,from:o.from},{insert:n,from:o.to}],effects:Lo.of(o.to+e.length),range:J.range(o.anchor+e.length,o.head+e.length)};let a=Fh(t.doc,o.head);return !a||/\s/.test(a)||r.indexOf(a)>-1?{changes:{insert:e+n,from:o.head},effects:Lo.of(o.head+e.length),range:J.cursor(o.head+e.length)}:{range:i=o}});return i?null:t.update(s,{scrollIntoView:true,userEvent:"input.type"})}function uH(t,e,n){let r=null,i=t.changeByRange(s=>s.empty&&Fh(t.doc,s.head)==n?{changes:{from:s.head,to:s.head+n.length,insert:n},range:J.cursor(s.head+n.length)}:r={range:s});return r?null:t.update(i,{scrollIntoView:true,userEvent:"input.type"})}function cH(t,e,n,r){let i=r.stringPrefixes||sc.stringPrefixes,s=null,o=t.changeByRange(a=>{if(!a.empty)return {changes:[{insert:e,from:a.from},{insert:e,from:a.to}],effects:Lo.of(a.to+e.length),range:J.range(a.anchor+e.length,a.head+e.length)};let l=a.head,u=Fh(t.doc,l),c;if(u==e){if(eC(t,l))return {changes:{insert:e+e,from:l},effects:Lo.of(l+e.length),range:J.cursor(l+e.length)};if($S(t,l)){let d=n&&t.sliceDoc(l,l+e.length*3)==e+e+e?e+e+e:e;return {changes:{from:l,to:l+d.length,insert:d},range:J.cursor(l+d.length)}}}else {if(n&&t.sliceDoc(l-2*e.length,l)==e+e&&(c=tC(t,l-2*e.length,i))>-1&&eC(t,c))return {changes:{insert:e+e+e+e,from:l},effects:Lo.of(l+e.length),range:J.cursor(l+e.length)};if(t.charCategorizer(l)(u)!=Tt.Word&&tC(t,l,i)>-1&&!fH(t,l,e,i))return {changes:{insert:e+e,from:l},effects:Lo.of(l+e.length),range:J.cursor(l+e.length)}}return {range:s=a}});return s?null:t.update(o,{scrollIntoView:true,userEvent:"input.type"})}function eC(t,e){let n=ln(t).resolveInner(e+1);return n.parent&&n.from==e}function fH(t,e,n,r){let i=ln(t).resolveInner(e,-1),s=r.reduce((o,a)=>Math.max(o,a.length),0);for(let o=0;o<5;o++){let a=t.sliceDoc(i.from,Math.min(i.to,i.from+n.length+s)),l=a.indexOf(n);if(!l||l>-1&&r.indexOf(a.slice(0,l))>-1){let c=i.firstChild;for(;c&&c.from==i.from&&c.to-c.from>n.length+l;){if(t.sliceDoc(c.to-n.length,c.to)==n)return  false;c=c.firstChild;}return  true}let u=i.to==e&&i.parent;if(!u)break;i=u;}return  false}function tC(t,e,n){let r=t.charCategorizer(e);if(r(t.sliceDoc(e-1,e))!=Tt.Word)return e;for(let i of n){let s=e-i.length;if(t.sliceDoc(s,e)==i&&r(t.sliceDoc(s-1,s))!=Tt.Word)return s}return  -1}function dH(t={}){return [WW,qn,Gt.of(t),VW,hH,AS]}const MS=[{key:"Ctrl-Space",run:Q1},{mac:"Alt-`",run:Q1},{key:"Escape",run:LW},{key:"ArrowDown",run:wf(true)},{key:"ArrowUp",run:wf(false)},{key:"PageDown",run:wf(true,"page")},{key:"PageUp",run:wf(false,"page")},{key:"Enter",run:IW}],hH=po.highest(kc.computeN([Gt],t=>t.facet(Gt).defaultKeymap?[MS]:[]));class nC{constructor(e,n,r){this.from=e,this.to=n,this.diagnostic=r;}}class To{constructor(e,n,r){this.diagnostics=e,this.panel=n,this.selected=r;}static init(e,n,r){let i=r.facet(oc).markerFilter;i&&(e=i(e,r));let s=e.slice().sort((c,f)=>c.from-f.from||c.to-f.to),o=new es,a=[],l=0;for(let c=0;;){let f=c==s.length?null:s[c];if(!f&&!a.length)break;let d,h;for(a.length?(d=l,h=a.reduce((m,g)=>Math.min(m,g.to),f&&f.from>d?f.from:1e8)):(d=f.from,h=f.to,a.push(f),c++);c<s.length;){let m=s[c];if(m.from==d&&(m.to>m.from||m.to==d))a.push(m),c++,h=Math.min(m.to,h);else {h=Math.min(m.from,h);break}}let p=SH(a);if(a.some(m=>m.from==m.to||m.from==m.to-1&&r.doc.lineAt(m.from).to==m.from))o.add(d,d,De.widget({widget:new xH(p),diagnostics:a.slice()}));else {let m=a.reduce((g,y)=>y.markClass?g+" "+y.markClass:g,"");o.add(d,h,De.mark({class:"cm-lintRange cm-lintRange-"+p+m,diagnostics:a.slice(),inclusiveEnd:a.some(g=>g.to>h)}));}l=h;for(let m=0;m<a.length;m++)a[m].to<=l&&a.splice(m--,1);}let u=o.finish();return new To(u,n,gl(u))}}function gl(t,e=null,n=0){let r=null;return t.between(n,1e9,(i,s,{spec:o})=>{if(!(e&&o.diagnostics.indexOf(e)<0))if(!r)r=new nC(i,s,e||o.diagnostics[0]);else {if(o.diagnostics.indexOf(r.diagnostic)<0)return  false;r=new nC(r.from,s,r.diagnostic);}}),r}function pH(t,e){let n=e.pos,r=e.end||n,i=t.state.facet(oc).hideOn(t,n,r);if(i!=null)return i;let s=t.startState.doc.lineAt(e.pos);return !!(t.effects.some(o=>o.is(PS))||t.changes.touchesRange(s.from,Math.max(s.to,r)))}function mH(t,e){return t.field(lr,false)?e:e.concat(Ae.appendConfig.of(AH))}const PS=Ae.define(),wy=Ae.define(),NS=Ae.define(),lr=Qt.define({create(){return new To(De.none,null,null)},update(t,e){if(e.docChanged&&t.diagnostics.size){let n=t.diagnostics.map(e.changes),r=null,i=t.panel;if(t.selected){let s=e.changes.mapPos(t.selected.from,1);r=gl(n,t.selected.diagnostic,s)||gl(n,null,s);}!n.size&&i&&e.state.facet(oc).autoPanel&&(i=null),t=new To(n,i,r);}for(let n of e.effects)if(n.is(PS)){let r=e.state.facet(oc).autoPanel?n.value.length?ac.open:null:t.panel;t=To.init(n.value,r,e.state);}else n.is(wy)?t=new To(t.diagnostics,n.value?ac.open:null,t.selected):n.is(NS)&&(t=new To(t.diagnostics,t.panel,n.value));return t},provide:t=>[Qu.from(t,e=>e.panel),ue.decorations.from(t,e=>e.diagnostics)]}),gH=De.mark({class:"cm-lintRange cm-lintRange-active"});function yH(t,e,n){let{diagnostics:r}=t.state.field(lr),i,s=-1,o=-1;r.between(e-(n<0?1:0),e+(n>0?1:0),(l,u,{spec:c})=>{if(e>=l&&e<=u&&(l==u||(e>l||n>0)&&(e<u||n<0)))return i=c.diagnostics,s=l,o=u,false});let a=t.state.facet(oc).tooltipFilter;return i&&a&&(i=a(i,t.state)),i?{pos:s,end:o,above:t.state.doc.lineAt(s).to<o,create(){return {dom:vH(t,i)}}}:null}function vH(t,e){return mt("ul",{class:"cm-tooltip-lint"},e.map(n=>LS(t,n,false)))}const DH=t=>{let e=t.state.field(lr,false);(!e||!e.panel)&&t.dispatch({effects:mH(t.state,[wy.of(true)])});let n=Yu(t,ac.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),true},rC=t=>{let e=t.state.field(lr,false);return !e||!e.panel?false:(t.dispatch({effects:wy.of(false)}),true)},bH=t=>{let e=t.state.field(lr,false);if(!e)return  false;let n=t.state.selection.main,r=e.diagnostics.iter(n.to+1);return !r.value&&(r=e.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)?false:(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:true}),true)},CH=[{key:"Mod-Shift-m",run:DH,preventDefault:true},{key:"F8",run:bH}],oc=de.define({combine(t){return Object.assign({sources:t.map(e=>e.source).filter(e=>e!=null)},Mi(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,n)=>e?n?r=>e(r)||n(r):e:n}))}});function IS(t){let e=[];if(t)e:for(let{name:n}of t){for(let r=0;r<n.length;r++){let i=n[r];if(/[a-zA-Z]/.test(i)&&!e.some(s=>s.toLowerCase()==i.toLowerCase())){e.push(i);continue e}}e.push("");}return e}function LS(t,e,n){var r;let i=n?IS(e.actions):[];return mt("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},mt("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),(r=e.actions)===null||r===void 0?void 0:r.map((s,o)=>{let a=false,l=d=>{if(d.preventDefault(),a)return;a=true;let h=gl(t.state.field(lr).diagnostics,e);h&&s.apply(t,h.from,h.to);},{name:u}=s,c=i[o]?u.indexOf(i[o]):-1,f=c<0?u:[u.slice(0,c),mt("u",u.slice(c,c+1)),u.slice(c+1)];return mt("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${c<0?"":` (access key "${i[o]})"`}.`},f)}),e.source&&mt("div",{class:"cm-diagnosticSource"},e.source))}class xH extends Pi{constructor(e){super(),this.sev=e;}eq(e){return e.sev==this.sev}toDOM(){return mt("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class iC{constructor(e,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=LS(e,n,true),this.dom.id=this.id,this.dom.setAttribute("role","option");}}class ac{constructor(e){this.view=e,this.items=[];let n=i=>{if(i.keyCode==27)rC(this.view),this.view.focus();else if(i.keyCode==38||i.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(i.keyCode==40||i.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(i.keyCode==36)this.moveSelection(0);else if(i.keyCode==35)this.moveSelection(this.items.length-1);else if(i.keyCode==13)this.view.focus();else if(i.keyCode>=65&&i.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:s}=this.items[this.selectedIndex],o=IS(s.actions);for(let a=0;a<o.length;a++)if(o[a].toUpperCase().charCodeAt(0)==i.keyCode){let l=gl(this.view.state.field(lr).diagnostics,s);l&&s.actions[a].apply(e,l.from,l.to);}}else return;i.preventDefault();},r=i=>{for(let s=0;s<this.items.length;s++)this.items[s].dom.contains(i.target)&&this.moveSelection(s);};this.list=mt("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:n,onclick:r}),this.dom=mt("div",{class:"cm-panel-lint"},this.list,mt("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>rC(this.view)},"×")),this.update();}get selectedIndex(){let e=this.view.state.field(lr).selected;if(!e)return  -1;for(let n=0;n<this.items.length;n++)if(this.items[n].diagnostic==e.diagnostic)return n;return  -1}update(){let{diagnostics:e,selected:n}=this.view.state.field(lr),r=0,i=false,s=null,o=new Set;for(e.between(0,this.view.state.doc.length,(a,l,{spec:u})=>{for(let c of u.diagnostics){if(o.has(c))continue;o.add(c);let f=-1,d;for(let h=r;h<this.items.length;h++)if(this.items[h].diagnostic==c){f=h;break}f<0?(d=new iC(this.view,c),this.items.splice(r,0,d),i=true):(d=this.items[f],f>r&&(this.items.splice(r,f-r),i=true)),n&&d.diagnostic==n.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),s=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),r++;}});r<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)i=true,this.items.pop();this.items.length==0&&(this.items.push(new iC(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),i=true),s?(this.list.setAttribute("aria-activedescendant",s.id),this.view.requestMeasure({key:this,read:()=>({sel:s.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:l})=>{let u=l.height/this.list.offsetHeight;a.top<l.top?this.list.scrollTop-=(l.top-a.top)/u:a.bottom>l.bottom&&(this.list.scrollTop+=(a.bottom-l.bottom)/u);}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync();}sync(){let e=this.list.firstChild;function n(){let r=e;e=r.nextSibling,r.remove();}for(let r of this.items)if(r.dom.parentNode==this.list){for(;e!=r.dom;)n();e=r.dom.nextSibling;}else this.list.insertBefore(r.dom,e);for(;e;)n();}moveSelection(e){if(this.selectedIndex<0)return;let n=this.view.state.field(lr),r=gl(n.diagnostics,this.items[e].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:true,effects:NS.of(r)});}static open(e){return new ac(e)}}function EH(t,e='viewBox="0 0 40 40"'){return `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(t)}</svg>')`}function Sf(t){return EH(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${t}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const FH=ue.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Sf("#d11")},".cm-lintRange-warning":{backgroundImage:Sf("orange")},".cm-lintRange-info":{backgroundImage:Sf("#999")},".cm-lintRange-hint":{backgroundImage:Sf("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function wH(t){return t=="error"?4:t=="warning"?3:t=="info"?2:1}function SH(t){let e="hint",n=1;for(let r of t){let i=wH(r.severity);i>n&&(n=i,e=r.severity);}return e}const AH=[lr,ue.decorations.compute([lr],t=>{let{selected:e,panel:n}=t.field(lr);return !e||!n||e.from==e.to?De.none:De.set([gH.range(e.from,e.to)])}),rj(yH,{hideOn:pH}),FH],TH=[pj(),yj(),$_(),qV(),mV(),C_(),S_(),Ve.allowMultipleSelections.of(true),tV(),Ow(DV,{fallback:true}),SV(),tH(),dH(),K_(),G_(),R_(),Gq(),kc.of([...sH,...qq,...pW,...YV,...fV,...MS,...CH])];/*!
            * VueCodemirror v6.1.1
            * Copyright (c) Surmon. All rights reserved.
            * Released under the MIT License.
            * Surmon
            */var kH=Object.freeze({autofocus:false,disabled:false,indentWithTab:true,tabSize:2,placeholder:"",autoDestroy:true,extensions:[TH]}),BH=Symbol("vue-codemirror-global-config"),Sn,OH=function(t){var e=t.onUpdate,n=t.onChange,r=t.onFocus,i=t.onBlur,s=function(o,a){var l={};for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&a.indexOf(u)<0&&(l[u]=o[u]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function"){var c=0;for(u=Object.getOwnPropertySymbols(o);c<u.length;c++)a.indexOf(u[c])<0&&Object.prototype.propertyIsEnumerable.call(o,u[c])&&(l[u[c]]=o[u[c]]);}return l}(t,["onUpdate","onChange","onFocus","onBlur"]);return Ve.create({doc:s.doc,selection:s.selection,extensions:(Array.isArray(s.extensions)?s.extensions:[s.extensions]).concat([ue.updateListener.of(function(o){e(o),o.docChanged&&n(o.state.doc.toString(),o),o.focusChanged&&(o.view.hasFocus?r(o):i(o));})])})},Ba=function(t){var e=new wc;return {compartment:e,run:function(n){e.get(t.state)?t.dispatch({effects:e.reconfigure(n)}):t.dispatch({effects:Ae.appendConfig.of(e.of(n))});}}},sC=function(t,e){var n=Ba(t),r=n.compartment,i=n.run;return function(s){var o=r.get(t.state);i(s??o!==e?e:[]);}},Af={type:Boolean,default:void 0},$H={autofocus:Af,disabled:Af,indentWithTab:Af,tabSize:Number,placeholder:String,style:Object,autoDestroy:Af,phrases:Object,root:Object,extensions:Array,selection:Object},MH={modelValue:{type:String,default:""}},PH=Object.assign(Object.assign({},$H),MH);(function(t){t.Change="change",t.Update="update",t.Focus="focus",t.Blur="blur",t.Ready="ready",t.ModelUpdate="update:modelValue";})(Sn||(Sn={}));var ko={};ko[Sn.Change]=function(t,e){return  true},ko[Sn.Update]=function(t){return  true},ko[Sn.Focus]=function(t){return  true},ko[Sn.Blur]=function(t){return  true},ko[Sn.Ready]=function(t){return  true};var RS={};RS[Sn.ModelUpdate]=ko[Sn.Change];var NH=Object.assign(Object.assign({},ko),RS),IH=defineComponent({name:"VueCodemirror",props:Object.assign({},PH),emits:Object.assign({},NH),setup:function(t,e){var n=shallowRef(),r=shallowRef(),i=shallowRef(),s=Object.assign(Object.assign({},kH),inject(BH,{})),o=computed(function(){var a={};return Object.keys(toRaw(t)).forEach(function(l){var u;l!=="modelValue"&&(a[l]=(u=t[l])!==null&&u!==void 0?u:s[l]);}),a});return onMounted(function(){var a;r.value=OH({doc:t.modelValue,selection:o.value.selection,extensions:(a=s.extensions)!==null&&a!==void 0?a:[],onFocus:function(u){return e.emit(Sn.Focus,u)},onBlur:function(u){return e.emit(Sn.Blur,u)},onUpdate:function(u){return e.emit(Sn.Update,u)},onChange:function(u,c){u!==t.modelValue&&(e.emit(Sn.Change,u,c),e.emit(Sn.ModelUpdate,u,c));}}),i.value=function(u){return new ue(Object.assign({},u))}({state:r.value,parent:n.value,root:o.value.root});var l=function(u){var c=function(){return u.state.doc.toString()},f=Ba(u).run,d=sC(u,[ue.editable.of(false),Ve.readOnly.of(true)]),h=sC(u,kc.of([Wq])),p=Ba(u).run,m=Ba(u).run,g=Ba(u).run,y=Ba(u).run;return {focus:function(){return u.focus()},getDoc:c,setDoc:function(F){F!==c()&&u.dispatch({changes:{from:0,to:u.state.doc.length,insert:F}});},reExtensions:f,toggleDisabled:d,toggleIndentWithTab:h,setTabSize:function(F){p([Ve.tabSize.of(F),Oc.of(" ".repeat(F))]);},setPhrases:function(F){m([Ve.phrases.of(F)]);},setPlaceholder:function(F){g(q_(F));},setStyle:function(F){F===void 0&&(F={}),y(ue.theme({"&":Object.assign({},F)}));}}}(i.value);watch(function(){return t.modelValue},function(u){u!==l.getDoc()&&l.setDoc(u);}),watch(function(){return t.extensions},function(u){return l.reExtensions(u||[])},{immediate:true}),watch(function(){return o.value.disabled},function(u){return l.toggleDisabled(u)},{immediate:true}),watch(function(){return o.value.indentWithTab},function(u){return l.toggleIndentWithTab(u)},{immediate:true}),watch(function(){return o.value.tabSize},function(u){return l.setTabSize(u)},{immediate:true}),watch(function(){return o.value.phrases},function(u){return l.setPhrases(u||{})},{immediate:true}),watch(function(){return o.value.placeholder},function(u){return l.setPlaceholder(u)},{immediate:true}),watch(function(){return o.value.style},function(u){return l.setStyle(u)},{immediate:true}),o.value.autofocus&&l.focus(),e.emit(Sn.Ready,{state:r.value,view:i.value,container:n.value});}),onBeforeUnmount(function(){o.value.autoDestroy&&i.value&&function(a){a.destroy();}(i.value);}),function(){return h("div",{class:"v-codemirror",style:{display:"contents"},ref:n})}}}),LH=IH;const Cn=({variant:t,settings:e,styles:n})=>{const r=ue.theme({"&":{backgroundColor:e.background,color:e.foreground},".cm-content":{caretColor:e.caret},".cm-cursor, .cm-dropCursor":{borderLeftColor:e.caret},"&.cm-focused .cm-selectionBackgroundm .cm-selectionBackground, .cm-content ::selection":{backgroundColor:e.selection},".cm-activeLine":{backgroundColor:e.lineHighlight},".cm-gutters":{backgroundColor:e.gutterBackground,color:e.gutterForeground},".cm-activeLineGutter":{backgroundColor:e.lineHighlight}},{dark:t==="dark"}),i=Mc.define(n);return [r,Ow(i)]};Cn({variant:"dark",settings:{background:"#200020",foreground:"#D0D0FF",caret:"#7070FF",selection:"#80000080",gutterBackground:"#200020",gutterForeground:"#C080C0",lineHighlight:"#80000040"},styles:[{tag:w.comment,color:"#404080"},{tag:[w.string,w.regexp],color:"#999999"},{tag:w.number,color:"#7090B0"},{tag:[w.bool,w.null],color:"#8080A0"},{tag:[w.punctuation,w.derefOperator],color:"#805080"},{tag:w.keyword,color:"#60B0FF"},{tag:w.definitionKeyword,color:"#B0FFF0"},{tag:w.moduleKeyword,color:"#60B0FF"},{tag:w.operator,color:"#A0A0FF"},{tag:[w.variableName,w.self],color:"#008080"},{tag:w.operatorKeyword,color:"#A0A0FF"},{tag:w.controlKeyword,color:"#80A0FF"},{tag:w.className,color:"#70E080"},{tag:[w.function(w.propertyName),w.propertyName],color:"#50A0A0"},{tag:w.tagName,color:"#009090"},{tag:w.modifier,color:"#B0FFF0"},{tag:[w.squareBracket,w.attributeName],color:"#D0D0FF"}]});const RH=Cn({variant:"light",settings:{background:"#fcfcfc",foreground:"#5c6166",caret:"#ffaa33",selection:"#036dd626",gutterBackground:"#fcfcfc",gutterForeground:"#8a919966",lineHighlight:"#8a91991a"},styles:[{tag:w.comment,color:"#787b8099"},{tag:w.string,color:"#86b300"},{tag:w.regexp,color:"#4cbf99"},{tag:[w.number,w.bool,w.null],color:"#ffaa33"},{tag:w.variableName,color:"#5c6166"},{tag:[w.definitionKeyword,w.modifier],color:"#fa8d3e"},{tag:[w.keyword,w.special(w.brace)],color:"#fa8d3e"},{tag:w.operator,color:"#ed9366"},{tag:w.separator,color:"#5c6166b3"},{tag:w.punctuation,color:"#5c6166"},{tag:[w.definition(w.propertyName),w.function(w.variableName)],color:"#f2ae49"},{tag:[w.className,w.definition(w.typeName)],color:"#22a4e6"},{tag:[w.tagName,w.typeName,w.self,w.labelName],color:"#55b4d4"},{tag:w.angleBracket,color:"#55b4d480"},{tag:w.attributeName,color:"#f2ae49"}]});Cn({variant:"dark",settings:{background:"#15191EFA",foreground:"#EEF2F7",caret:"#C4C4C4",selection:"#90B2D557",gutterBackground:"#15191EFA",gutterForeground:"#aaaaaa95",lineHighlight:"#57575712"},styles:[{tag:w.comment,color:"#6E6E6E"},{tag:[w.string,w.regexp,w.special(w.brace)],color:"#5C81B3"},{tag:w.number,color:"#C1E1B8"},{tag:w.bool,color:"#53667D"},{tag:[w.definitionKeyword,w.modifier,w.function(w.propertyName)],color:"#A3D295",fontWeight:"bold"},{tag:[w.keyword,w.moduleKeyword,w.operatorKeyword,w.operator],color:"#697A8E",fontWeight:"bold"},{tag:[w.variableName,w.attributeName],color:"#708E67"},{tag:[w.function(w.variableName),w.definition(w.propertyName),w.derefOperator],color:"#fff"},{tag:w.tagName,color:"#A3D295"}]});Cn({variant:"dark",settings:{background:"#2e241d",foreground:"#BAAE9E",caret:"#A7A7A7",selection:"#DDF0FF33",gutterBackground:"#28211C",gutterForeground:"#BAAE9E90",lineHighlight:"#FFFFFF08"},styles:[{tag:w.comment,color:"#666666"},{tag:[w.string,w.special(w.brace)],color:"#54BE0D"},{tag:w.regexp,color:"#E9C062"},{tag:w.number,color:"#CF6A4C"},{tag:[w.keyword,w.operator],color:"#5EA6EA"},{tag:w.variableName,color:"#7587A6"},{tag:[w.definitionKeyword,w.modifier],color:"#F9EE98"},{tag:[w.propertyName,w.function(w.variableName)],color:"#937121"},{tag:[w.typeName,w.angleBracket,w.tagName],color:"#9B859D"}]});Cn({variant:"dark",settings:{background:"#3b2627",foreground:"#E6E1C4",caret:"#E6E1C4",selection:"#16120E",gutterBackground:"#3b2627",gutterForeground:"#E6E1C490",lineHighlight:"#1F1611"},styles:[{tag:w.comment,color:"#6B4E32"},{tag:[w.keyword,w.operator,w.derefOperator],color:"#EF5D32"},{tag:w.className,color:"#EFAC32",fontWeight:"bold"},{tag:[w.typeName,w.propertyName,w.function(w.variableName),w.definition(w.variableName)],color:"#EFAC32"},{tag:w.definition(w.typeName),color:"#EFAC32",fontWeight:"bold"},{tag:w.labelName,color:"#EFAC32",fontWeight:"bold"},{tag:[w.number,w.bool],color:"#6C99BB"},{tag:[w.variableName,w.self],color:"#7DAF9C"},{tag:[w.string,w.special(w.brace),w.regexp],color:"#D9D762"},{tag:[w.angleBracket,w.tagName,w.attributeName],color:"#EFCB43"}]});Cn({variant:"dark",settings:{background:"#000205",foreground:"#FFFFFF",caret:"#E60065",selection:"#E60C6559",gutterBackground:"#000205",gutterForeground:"#ffffff90",lineHighlight:"#4DD7FC1A"},styles:[{tag:w.comment,color:"#404040"},{tag:[w.string,w.special(w.brace),w.regexp],color:"#00D8FF"},{tag:w.number,color:"#E62286"},{tag:[w.variableName,w.attributeName,w.self],color:"#E62286",fontWeight:"bold"},{tag:w.function(w.variableName),color:"#fff",fontWeight:"bold"}]});Cn({variant:"light",settings:{background:"#fff",foreground:"#000",caret:"#000",selection:"#BDD5FC",gutterBackground:"#fff",gutterForeground:"#00000070",lineHighlight:"#FFFBD1"},styles:[{tag:w.comment,color:"#BCC8BA"},{tag:[w.string,w.special(w.brace),w.regexp],color:"#5D90CD"},{tag:[w.number,w.bool,w.null],color:"#46A609"},{tag:w.keyword,color:"#AF956F"},{tag:[w.definitionKeyword,w.modifier],color:"#C52727"},{tag:[w.angleBracket,w.tagName,w.attributeName],color:"#606060"},{tag:w.self,color:"#000"}]});Cn({variant:"dark",settings:{background:"#00254b",foreground:"#FFFFFF",caret:"#FFFFFF",selection:"#B36539BF",gutterBackground:"#00254b",gutterForeground:"#FFFFFF70",lineHighlight:"#00000059"},styles:[{tag:w.comment,color:"#0088FF"},{tag:w.string,color:"#3AD900"},{tag:w.regexp,color:"#80FFC2"},{tag:[w.number,w.bool,w.null],color:"#FF628C"},{tag:[w.definitionKeyword,w.modifier],color:"#FFEE80"},{tag:w.variableName,color:"#CCCCCC"},{tag:w.self,color:"#FF80E1"},{tag:[w.className,w.definition(w.propertyName),w.function(w.variableName),w.definition(w.typeName),w.labelName],color:"#FFDD00"},{tag:[w.keyword,w.operator],color:"#FF9D00"},{tag:[w.propertyName,w.typeName],color:"#80FFBB"},{tag:w.special(w.brace),color:"#EDEF7D"},{tag:w.attributeName,color:"#9EFFFF"},{tag:w.derefOperator,color:"#fff"}]});Cn({variant:"dark",settings:{background:"#060521",foreground:"#E0E0E0",caret:"#FFFFFFA6",selection:"#122BBB",gutterBackground:"#060521",gutterForeground:"#E0E0E090",lineHighlight:"#FFFFFF0F"},styles:[{tag:w.comment,color:"#AEAEAE"},{tag:[w.string,w.special(w.brace),w.regexp],color:"#8DFF8E"},{tag:[w.className,w.definition(w.propertyName),w.function(w.variableName),w.function(w.definition(w.variableName)),w.definition(w.typeName)],color:"#A3EBFF"},{tag:[w.number,w.bool,w.null],color:"#62E9BD"},{tag:[w.keyword,w.operator],color:"#2BF1DC"},{tag:[w.definitionKeyword,w.modifier],color:"#F8FBB1"},{tag:[w.variableName,w.self],color:"#B683CA"},{tag:[w.angleBracket,w.tagName,w.typeName,w.propertyName],color:"#60A4F1"},{tag:w.derefOperator,color:"#E0E0E0"},{tag:w.attributeName,color:"#7BACCA"}]});Cn({variant:"dark",settings:{background:"#2d2f3f",foreground:"#f8f8f2",caret:"#f8f8f0",selection:"#44475a",gutterBackground:"#282a36",gutterForeground:"rgb(144, 145, 148)",lineHighlight:"#44475a"},styles:[{tag:w.comment,color:"#6272a4"},{tag:[w.string,w.special(w.brace)],color:"#f1fa8c"},{tag:[w.number,w.self,w.bool,w.null],color:"#bd93f9"},{tag:[w.keyword,w.operator],color:"#ff79c6"},{tag:[w.definitionKeyword,w.typeName],color:"#8be9fd"},{tag:w.definition(w.typeName),color:"#f8f8f2"},{tag:[w.className,w.definition(w.propertyName),w.function(w.variableName),w.attributeName],color:"#50fa7b"}]});Cn({variant:"light",settings:{background:"#FFFFFF",foreground:"#000000",caret:"#000000",selection:"#80C7FF",gutterBackground:"#FFFFFF",gutterForeground:"#00000070",lineHighlight:"#C1E2F8"},styles:[{tag:w.comment,color:"#AAAAAA"},{tag:[w.keyword,w.operator,w.typeName,w.tagName,w.propertyName],color:"#2F6F9F",fontWeight:"bold"},{tag:[w.attributeName,w.definition(w.propertyName)],color:"#4F9FD0"},{tag:[w.className,w.string,w.special(w.brace)],color:"#CF4F5F"},{tag:w.number,color:"#CF4F5F",fontWeight:"bold"},{tag:w.variableName,fontWeight:"bold"}]});Cn({variant:"light",settings:{background:"#f2f1f8",foreground:"#0c006b",caret:"#5c49e9",selection:"#d5d1f2",gutterBackground:"#f2f1f8",gutterForeground:"#0c006b70",lineHighlight:"#e1def3"},styles:[{tag:w.comment,color:"#9995b7"},{tag:w.keyword,color:"#ff5792",fontWeight:"bold"},{tag:[w.definitionKeyword,w.modifier],color:"#ff5792"},{tag:[w.className,w.tagName,w.definition(w.typeName)],color:"#0094f0"},{tag:[w.number,w.bool,w.null,w.special(w.brace)],color:"#5842ff"},{tag:[w.definition(w.propertyName),w.function(w.variableName)],color:"#0095a8"},{tag:w.typeName,color:"#b3694d"},{tag:[w.propertyName,w.variableName],color:"#fa8900"},{tag:w.operator,color:"#ff5792"},{tag:w.self,color:"#e64100"},{tag:[w.string,w.regexp],color:"#00b368"},{tag:[w.paren,w.bracket],color:"#0431fa"},{tag:w.labelName,color:"#00bdd6"},{tag:w.attributeName,color:"#e64100"},{tag:w.angleBracket,color:"#9995b7"}]});Cn({variant:"light",settings:{background:"#faf4ed",foreground:"#575279",caret:"#575279",selection:"#6e6a8614",gutterBackground:"#faf4ed",gutterForeground:"#57527970",lineHighlight:"#6e6a860d"},styles:[{tag:w.comment,color:"#9893a5"},{tag:[w.bool,w.null],color:"#286983"},{tag:w.number,color:"#d7827e"},{tag:w.className,color:"#d7827e"},{tag:[w.angleBracket,w.tagName,w.typeName],color:"#56949f"},{tag:w.attributeName,color:"#907aa9"},{tag:w.punctuation,color:"#797593"},{tag:[w.keyword,w.modifier],color:"#286983"},{tag:[w.string,w.regexp],color:"#ea9d34"},{tag:w.variableName,color:"#d7827e"}]});Cn({variant:"light",settings:{background:"#FFFFFF",foreground:"#000000",caret:"#000000",selection:"#FFFD0054",gutterBackground:"#FFFFFF",gutterForeground:"#00000070",lineHighlight:"#00000008"},styles:[{tag:w.comment,color:"#CFCFCF"},{tag:[w.number,w.bool,w.null],color:"#E66C29"},{tag:[w.className,w.definition(w.propertyName),w.function(w.variableName),w.labelName,w.definition(w.typeName)],color:"#2EB43B"},{tag:w.keyword,color:"#D8B229"},{tag:w.operator,color:"#4EA44E",fontWeight:"bold"},{tag:[w.definitionKeyword,w.modifier],color:"#925A47"},{tag:w.string,color:"#704D3D"},{tag:w.typeName,color:"#2F8996"},{tag:[w.variableName,w.propertyName],color:"#77ACB0"},{tag:w.self,color:"#77ACB0",fontWeight:"bold"},{tag:w.regexp,color:"#E3965E"},{tag:[w.tagName,w.angleBracket],color:"#BAA827"},{tag:w.attributeName,color:"#B06520"},{tag:w.derefOperator,color:"#000"}]});Cn({variant:"light",settings:{background:"#fef7e5",foreground:"#586E75",caret:"#000000",selection:"#073642",gutterBackground:"#fef7e5",gutterForeground:"#586E7580",lineHighlight:"#EEE8D5"},styles:[{tag:w.comment,color:"#93A1A1"},{tag:w.string,color:"#2AA198"},{tag:w.regexp,color:"#D30102"},{tag:w.number,color:"#D33682"},{tag:w.variableName,color:"#268BD2"},{tag:[w.keyword,w.operator,w.punctuation],color:"#859900"},{tag:[w.definitionKeyword,w.modifier],color:"#073642",fontWeight:"bold"},{tag:[w.className,w.self,w.definition(w.propertyName)],color:"#268BD2"},{tag:w.function(w.variableName),color:"#268BD2"},{tag:[w.bool,w.null],color:"#B58900"},{tag:w.tagName,color:"#268BD2",fontWeight:"bold"},{tag:w.angleBracket,color:"#93A1A1"},{tag:w.attributeName,color:"#93A1A1"},{tag:w.typeName,color:"#859900"}]});Cn({variant:"light",settings:{background:"#FFFFFF",foreground:"#4D4D4C",caret:"#AEAFAD",selection:"#D6D6D6",gutterBackground:"#FFFFFF",gutterForeground:"#4D4D4C80",lineHighlight:"#EFEFEF"},styles:[{tag:w.comment,color:"#8E908C"},{tag:[w.variableName,w.self,w.propertyName,w.attributeName,w.regexp],color:"#C82829"},{tag:[w.number,w.bool,w.null],color:"#F5871F"},{tag:[w.className,w.typeName,w.definition(w.typeName)],color:"#C99E00"},{tag:[w.string,w.special(w.brace)],color:"#718C00"},{tag:w.operator,color:"#3E999F"},{tag:[w.definition(w.propertyName),w.function(w.variableName)],color:"#4271AE"},{tag:w.keyword,color:"#8959A8"},{tag:w.derefOperator,color:"#4D4D4C"}]});var _H=Object.create,Sy=Object.defineProperty,jH=Object.getOwnPropertyDescriptor,VH=Object.getOwnPropertyNames,qH=Object.getPrototypeOf,WH=Object.prototype.hasOwnProperty,_S=t=>{throw TypeError(t)},jS=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ay=(t,e)=>{for(var n in e)Sy(t,n,{get:e[n],enumerable:true});},HH=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of VH(e))!WH.call(t,i)&&i!==n&&Sy(t,i,{get:()=>e[i],enumerable:!(r=jH(e,i))||r.enumerable});return t},wh=(t,e,n)=>(n=t!=null?_H(qH(t)):{},HH(Sy(n,"default",{value:t,enumerable:true}),t)),zH=(t,e,n)=>e.has(t)||_S("Cannot "+n),KH=(t,e,n)=>e.has(t)?_S("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Ql=(t,e,n)=>(zH(t,e,"access private method"),n),Ty=jS((t,e)=>{var n=new Proxy(String,{get:()=>n});e.exports=n;}),UH=jS(t=>{Object.defineProperty(t,"__esModule",{value:true});function e(){return new Proxy({},{get:()=>s=>s})}var n=/\r\n|[\n\r\u2028\u2029]/;function r(s,o,a){let l=Object.assign({column:0,line:-1},s.start),u=Object.assign({},l,s.end),{linesAbove:c=2,linesBelow:f=3}=a||{},d=l.line,h=l.column,p=u.line,m=u.column,g=Math.max(d-(c+1),0),y=Math.min(o.length,p+f);d===-1&&(g=0),p===-1&&(y=o.length);let F=p-d,x={};if(F)for(let b=0;b<=F;b++){let D=b+d;if(!h)x[D]=true;else if(b===0){let C=o[D-1].length;x[D]=[h,C-h+1];}else if(b===F)x[D]=[0,m];else {let C=o[D-b].length;x[D]=[0,C];}}else h===m?h?x[d]=[h,0]:x[d]=true:x[d]=[h,m-h];return {start:g,end:y,markerLines:x}}function i(s,o,a={}){let l=e(),u=s.split(n),{start:c,end:f,markerLines:d}=r(o,u,a),h=o.start&&typeof o.start.column=="number",p=String(f).length,m=s.split(n,f).slice(c,f).map((g,y)=>{let F=c+1+y,x=` ${` ${F}`.slice(-p)} |`,b=d[F],D=!d[F+1];if(b){let C="";if(Array.isArray(b)){let E=g.slice(0,Math.max(b[0]-1,0)).replace(/[^\t]/g," "),S=b[1]||1;C=[`
 `,l.gutter(x.replace(/\d/g," "))," ",E,l.marker("^").repeat(S)].join(""),D&&a.message&&(C+=" "+l.message(a.message));}return [l.marker(">"),l.gutter(x),g.length>0?` ${g}`:"",C].join("")}else return ` ${l.gutter(x)}${g.length>0?` ${g}`:""}`}).join(`
`);return a.message&&!h&&(m=`${" ".repeat(p+1)}${a.message}
${m}`),m}t.codeFrameColumns=i;}),JH={};Ay(JH,{__debug:()=>tJ,check:()=>ZU,doc:()=>CA,format:()=>Wy,formatWithCursor:()=>EA,getSupportInfo:()=>eJ,util:()=>xA,version:()=>AU});var GH=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},Sh=GH;function Ii(){}Ii.prototype={diff:function(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.callback;typeof r=="function"&&(i=r,r={});var s=this;function o(x){return x=s.postProcess(x,r),i?(setTimeout(function(){i(x);},0),true):x}t=this.castInput(t,r),e=this.castInput(e,r),t=this.removeEmpty(this.tokenize(t,r)),e=this.removeEmpty(this.tokenize(e,r));var a=e.length,l=t.length,u=1,c=a+l;r.maxEditLength!=null&&(c=Math.min(c,r.maxEditLength));var f=(n=r.timeout)!==null&&n!==void 0?n:1/0,d=Date.now()+f,h=[{oldPos:-1,lastComponent:void 0}],p=this.extractCommon(h[0],e,t,0,r);if(h[0].oldPos+1>=l&&p+1>=a)return o(oC(s,h[0].lastComponent,e,t,s.useLongestToken));var m=-1/0,g=1/0;function y(){for(var x=Math.max(m,-u);x<=Math.min(g,u);x+=2){var b=void 0,D=h[x-1],C=h[x+1];D&&(h[x-1]=void 0);var E=false;if(C){var S=C.oldPos-x;E=C&&0<=S&&S<a;}var A=D&&D.oldPos+1<l;if(!E&&!A){h[x]=void 0;continue}if(!A||E&&D.oldPos<C.oldPos?b=s.addToPath(C,true,false,0,r):b=s.addToPath(D,false,true,1,r),p=s.extractCommon(b,e,t,x,r),b.oldPos+1>=l&&p+1>=a)return o(oC(s,b.lastComponent,e,t,s.useLongestToken));h[x]=b,b.oldPos+1>=l&&(g=Math.min(g,x-1)),p+1>=a&&(m=Math.max(m,x+1));}u++;}if(i)(function x(){setTimeout(function(){if(u>c||Date.now()>d)return i();y()||x();},0);})();else for(;u<=c&&Date.now()<=d;){var F=y();if(F)return F}},addToPath:function(t,e,n,r,i){var s=t.lastComponent;return s&&!i.oneChangePerToken&&s.added===e&&s.removed===n?{oldPos:t.oldPos+r,lastComponent:{count:s.count+1,added:e,removed:n,previousComponent:s.previousComponent}}:{oldPos:t.oldPos+r,lastComponent:{count:1,added:e,removed:n,previousComponent:s}}},extractCommon:function(t,e,n,r,i){for(var s=e.length,o=n.length,a=t.oldPos,l=a-r,u=0;l+1<s&&a+1<o&&this.equals(n[a+1],e[l+1],i);)l++,a++,u++,i.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:false,removed:false});return u&&!i.oneChangePerToken&&(t.lastComponent={count:u,previousComponent:t.lastComponent,added:false,removed:false}),t.oldPos=a,l},equals:function(t,e,n){return n.comparator?n.comparator(t,e):t===e||n.ignoreCase&&t.toLowerCase()===e.toLowerCase()},removeEmpty:function(t){for(var e=[],n=0;n<t.length;n++)t[n]&&e.push(t[n]);return e},castInput:function(t){return t},tokenize:function(t){return Array.from(t)},join:function(t){return t.join("")},postProcess:function(t){return t}};function oC(t,e,n,r,i){for(var s=[],o;e;)s.push(e),o=e.previousComponent,delete e.previousComponent,e=o;s.reverse();for(var a=0,l=s.length,u=0,c=0;a<l;a++){var f=s[a];if(f.removed)f.value=t.join(r.slice(c,c+f.count)),c+=f.count;else {if(!f.added&&i){var d=n.slice(u,u+f.count);d=d.map(function(h,p){var m=r[c+p];return m.length>h.length?m:h}),f.value=t.join(d);}else f.value=t.join(n.slice(u,u+f.count));u+=f.count,f.added||(c+=f.count);}}return s}function aC(t,e){var n;for(n=0;n<t.length&&n<e.length;n++)if(t[n]!=e[n])return t.slice(0,n);return t.slice(0,n)}function lC(t,e){var n;if(!t||!e||t[t.length-1]!=e[e.length-1])return "";for(n=0;n<t.length&&n<e.length;n++)if(t[t.length-(n+1)]!=e[e.length-(n+1)])return t.slice(-n);return t.slice(-n)}function Eg(t,e,n){if(t.slice(0,e.length)!=e)throw Error("string ".concat(JSON.stringify(t)," doesn't start with prefix ").concat(JSON.stringify(e),"; this is a bug"));return n+t.slice(e.length)}function Fg(t,e,n){if(!e)return t+n;if(t.slice(-e.length)!=e)throw Error("string ".concat(JSON.stringify(t)," doesn't end with suffix ").concat(JSON.stringify(e),"; this is a bug"));return t.slice(0,-e.length)+n}function Zl(t,e){return Eg(t,e,"")}function Tf(t,e){return Fg(t,e,"")}function uC(t,e){return e.slice(0,XH(t,e))}function XH(t,e){var n=0;t.length>e.length&&(n=t.length-e.length);var r=e.length;t.length<e.length&&(r=t.length);var i=Array(r),s=0;i[0]=0;for(var o=1;o<r;o++){for(e[o]==e[s]?i[o]=i[s]:i[o]=s;s>0&&e[o]!=e[s];)s=i[s];e[o]==e[s]&&s++;}s=0;for(var a=n;a<t.length;a++){for(;s>0&&t[a]!=e[s];)s=i[s];t[a]==e[s]&&s++;}return s}var Wd="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",YH=new RegExp("[".concat(Wd,"]+|\\s+|[^").concat(Wd,"]"),"ug"),Ah=new Ii;Ah.equals=function(t,e,n){return n.ignoreCase&&(t=t.toLowerCase(),e=e.toLowerCase()),t.trim()===e.trim()};Ah.tokenize=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n;if(e.intlSegmenter){if(e.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');n=Array.from(e.intlSegmenter.segment(t),function(s){return s.segment});}else n=t.match(YH)||[];var r=[],i=null;return n.forEach(function(s){/\s/.test(s)?i==null?r.push(s):r.push(r.pop()+s):/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+s):r.push(i+s):r.push(s),i=s;}),r};Ah.join=function(t){return t.map(function(e,n){return n==0?e:e.replace(/^\s+/,"")}).join("")};Ah.postProcess=function(t,e){if(!t||e.oneChangePerToken)return t;var n=null,r=null,i=null;return t.forEach(function(s){s.added?r=s:s.removed?i=s:((r||i)&&cC(n,i,r,s),n=s,r=null,i=null);}),(r||i)&&cC(n,i,r,null),t};function cC(t,e,n,r){if(e&&n){var i=e.value.match(/^\s*/)[0],s=e.value.match(/\s*$/)[0],o=n.value.match(/^\s*/)[0],a=n.value.match(/\s*$/)[0];if(t){var l=aC(i,o);t.value=Fg(t.value,o,l),e.value=Zl(e.value,l),n.value=Zl(n.value,l);}if(r){var u=lC(s,a);r.value=Eg(r.value,a,u),e.value=Tf(e.value,u),n.value=Tf(n.value,u);}}else if(n)t&&(n.value=n.value.replace(/^\s*/,"")),r&&(r.value=r.value.replace(/^\s*/,""));else if(t&&r){var c=r.value.match(/^\s*/)[0],f=e.value.match(/^\s*/)[0],d=e.value.match(/\s*$/)[0],h=aC(c,f);e.value=Zl(e.value,h);var p=lC(Zl(c,h),d);e.value=Tf(e.value,p),r.value=Eg(r.value,c,p),t.value=Fg(t.value,c,c.slice(0,c.length-p.length));}else if(r){var m=r.value.match(/^\s*/)[0],g=e.value.match(/\s*$/)[0],y=uC(g,m);e.value=Tf(e.value,y);}else if(t){var F=t.value.match(/\s*$/)[0],x=e.value.match(/^\s*/)[0],b=uC(F,x);e.value=Zl(e.value,b);}}var QH=new Ii;QH.tokenize=function(t){var e=new RegExp("(\\r?\\n)|[".concat(Wd,"]+|[^\\S\\n\\r]+|[^").concat(Wd,"]"),"ug");return t.match(e)||[]};var ky=new Ii;ky.tokenize=function(t,e){e.stripTrailingCr&&(t=t.replace(/\r\n/g,`
`));var n=[],r=t.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var i=0;i<r.length;i++){var s=r[i];i%2&&!e.newlineIsToken?n[n.length-1]+=s:n.push(s);}return n};ky.equals=function(t,e,n){return n.ignoreWhitespace?((!n.newlineIsToken||!t.includes(`
`))&&(t=t.trim()),(!n.newlineIsToken||!e.includes(`
`))&&(e=e.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(t.endsWith(`
`)&&(t=t.slice(0,-1)),e.endsWith(`
`)&&(e=e.slice(0,-1))),Ii.prototype.equals.call(this,t,e,n)};var ZH=new Ii;ZH.tokenize=function(t){return t.split(/(\S.+?[.!?])(?=\s+|$)/)};var ez=new Ii;ez.tokenize=function(t){return t.split(/([{}:;,]|\s+)/)};function wg(t){"@babel/helpers - typeof";return wg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wg(t)}var lc=new Ii;lc.useLongestToken=true;lc.tokenize=ky.tokenize;lc.castInput=function(t,e){var n=e.undefinedReplacement,r=e.stringifyReplacer,i=r===void 0?function(s,o){return typeof o>"u"?n:o}:r;return typeof t=="string"?t:JSON.stringify(Sg(t,null,null,i),i,"  ")};lc.equals=function(t,e,n){return Ii.prototype.equals.call(lc,t.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"),n)};function Sg(t,e,n,r,i){e=e||[],n=n||[],r&&(t=r(i,t));var s;for(s=0;s<e.length;s+=1)if(e[s]===t)return n[s];var o;if(Object.prototype.toString.call(t)==="[object Array]"){for(e.push(t),o=new Array(t.length),n.push(o),s=0;s<t.length;s+=1)o[s]=Sg(t[s],e,n,r,i);return e.pop(),n.pop(),o}if(t&&t.toJSON&&(t=t.toJSON()),wg(t)==="object"&&t!==null){e.push(t),o={},n.push(o);var a=[],l;for(l in t)Object.prototype.hasOwnProperty.call(t,l)&&a.push(l);for(a.sort(),s=0;s<a.length;s+=1)l=a[s],o[l]=Sg(t[l],e,n,r,l);e.pop(),n.pop();}else o=t;return o}var Hd=new Ii;Hd.tokenize=function(t){return t.slice()};Hd.join=Hd.removeEmpty=function(t){return t};function tz(t,e,n){return Hd.diff(t,e,n)}function nz(t){let e=t.indexOf("\r");return e!==-1?t.charAt(e+1)===`
`?"crlf":"cr":"lf"}function By(t){switch(t){case "cr":return "\r";case "crlf":return `\r
`;default:return `
`}}function VS(t,e){let n;switch(e){case `
`:n=/\n/gu;break;case "\r":n=/\r/gu;break;case `\r
`:n=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(e)}.`)}let r=t.match(n);return r?r.length:0}function rz(t){return Sh(false,t,/\r\n?/gu,`
`)}var sa="string",rs="array",oa="cursor",ps="indent",ms="align",gs="trim",Yn="group",Li="fill",ur="if-break",ys="indent-if-break",vs="line-suffix",Ds="line-suffix-boundary",un="line",Ri="label",Sr="break-parent",qS=new Set([oa,ps,ms,gs,Yn,Li,ur,ys,vs,Ds,un,Ri,Sr]),iz=(t,e,n)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},Jt=iz;function sz(t){if(typeof t=="string")return sa;if(Array.isArray(t))return rs;if(!t)return;let{type:e}=t;if(qS.has(e))return e}var aa=sz,oz=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function az(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return `Unexpected doc '${e}', 
Expected it to be 'string' or 'object'.`;if(aa(t))throw new Error("doc is valid.");let n=Object.prototype.toString.call(t);if(n!=="[object Object]")return `Unexpected doc '${n}'.`;let r=oz([...qS].map(i=>`'${i}'`));return `Unexpected doc.type '${t.type}'.
Expected it to be ${r}.`}var lz=class extends Error{constructor(n){super(az(n));le(this,"name","InvalidDocError");this.doc=n;}},yl=lz,fC={};function uz(t,e,n,r){let i=[t];for(;i.length>0;){let s=i.pop();if(s===fC){n(i.pop());continue}n&&i.push(s,fC);let o=aa(s);if(!o)throw new yl(s);if((e==null?void 0:e(s))!==false)switch(o){case rs:case Li:{let a=o===rs?s:s.parts;for(let l=a.length,u=l-1;u>=0;--u)i.push(a[u]);break}case ur:i.push(s.flatContents,s.breakContents);break;case Yn:if(r&&s.expandedStates)for(let a=s.expandedStates.length,l=a-1;l>=0;--l)i.push(s.expandedStates[l]);else i.push(s.contents);break;case ms:case ps:case ys:case Ri:case vs:i.push(s.contents);break;case sa:case oa:case gs:case Ds:case un:case Sr:break;default:throw new yl(s)}}}var Oy=uz;function Th(t,e){if(typeof t=="string")return e(t);let n=new Map;return r(t);function r(s){if(n.has(s))return n.get(s);let o=i(s);return n.set(s,o),o}function i(s){switch(aa(s)){case rs:return e(s.map(r));case Li:return e({...s,parts:s.parts.map(r)});case ur:return e({...s,breakContents:r(s.breakContents),flatContents:r(s.flatContents)});case Yn:{let{expandedStates:o,contents:a}=s;return o?(o=o.map(r),a=o[0]):a=r(a),e({...s,contents:a,expandedStates:o})}case ms:case ps:case ys:case Ri:case vs:return e({...s,contents:r(s.contents)});case sa:case oa:case gs:case Ds:case un:case Sr:return e(s);default:throw new yl(s)}}}function $y(t,e,n){let r=n,i=false;function s(o){if(i)return  false;let a=e(o);a!==void 0&&(i=true,r=a);}return Oy(t,s),r}function cz(t){if(t.type===Yn&&t.break||t.type===un&&t.hard||t.type===Sr)return  true}function fz(t){return $y(t,cz,false)}function dC(t){if(t.length>0){let e=Jt(false,t,-1);!e.expandedStates&&!e.break&&(e.break="propagated");}return null}function dz(t){let e=new Set,n=[];function r(s){if(s.type===Sr&&dC(n),s.type===Yn){if(n.push(s),e.has(s))return  false;e.add(s);}}function i(s){s.type===Yn&&n.pop().break&&dC(n);}Oy(t,r,i,true);}function hz(t){return t.type===un&&!t.hard?t.soft?"":" ":t.type===ur?t.flatContents:t}function pz(t){return Th(t,hz)}function hC(t){for(t=[...t];t.length>=2&&Jt(false,t,-2).type===un&&Jt(false,t,-1).type===Sr;)t.length-=2;if(t.length>0){let e=wu(Jt(false,t,-1));t[t.length-1]=e;}return t}function wu(t){switch(aa(t)){case ps:case ys:case Yn:case vs:case Ri:{let e=wu(t.contents);return {...t,contents:e}}case ur:return {...t,breakContents:wu(t.breakContents),flatContents:wu(t.flatContents)};case Li:return {...t,parts:hC(t.parts)};case rs:return hC(t);case sa:return t.replace(/[\n\r]*$/u,"");case ms:case oa:case gs:case Ds:case un:case Sr:break;default:throw new yl(t)}return t}function WS(t){return wu(gz(t))}function mz(t){switch(aa(t)){case Li:if(t.parts.every(e=>e===""))return "";break;case Yn:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return "";if(t.contents.type===Yn&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case ms:case ps:case ys:case vs:if(!t.contents)return "";break;case ur:if(!t.flatContents&&!t.breakContents)return "";break;case rs:{let e=[];for(let n of t){if(!n)continue;let[r,...i]=Array.isArray(n)?n:[n];typeof r=="string"&&typeof Jt(false,e,-1)=="string"?e[e.length-1]+=r:e.push(r),e.push(...i);}return e.length===0?"":e.length===1?e[0]:e}case sa:case oa:case gs:case Ds:case un:case Ri:case Sr:break;default:throw new yl(t)}return t}function gz(t){return Th(t,e=>mz(e))}function yz(t,e=US){return Th(t,n=>typeof n=="string"?JS(e,n.split(`
`)):n)}function vz(t){if(t.type===un)return  true}function Dz(t){return $y(t,vz,false)}function td(t,e){return t.type===Ri?{...t,contents:e(t.contents)}:e(t)}var bz=()=>{},Cz=bz;function zd(t){return {type:ps,contents:t}}function vl(t,e){return {type:ms,contents:e,n:t}}function HS(t,e={}){return Cz(e.expandedStates),{type:Yn,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function xz(t){return vl(Number.NEGATIVE_INFINITY,t)}function Ez(t){return vl({type:"root"},t)}function Fz(t){return vl(-1,t)}function wz(t,e){return HS(t[0],{...e,expandedStates:t})}function Sz(t){return {type:Li,parts:t}}function Az(t,e="",n={}){return {type:ur,breakContents:t,flatContents:e,groupId:n.groupId}}function Tz(t,e){return {type:ys,contents:t,groupId:e.groupId,negate:e.negate}}function Ag(t){return {type:vs,contents:t}}var kz={type:Ds},kh={type:Sr},Bz={type:gs},My={type:un,hard:true},zS={type:un,hard:true,literal:true},KS={type:un},Oz={type:un,soft:true},Wo=[My,kh],US=[zS,kh],Ro={type:oa};function JS(t,e){let n=[];for(let r=0;r<e.length;r++)r!==0&&n.push(t),n.push(e[r]);return n}function GS(t,e,n){let r=t;if(e>0){for(let i=0;i<Math.floor(e/n);++i)r=zd(r);r=vl(e%n,r),r=vl(Number.NEGATIVE_INFINITY,r);}return r}function $z(t,e){return t?{type:Ri,label:t,contents:e}:e}function Wi(t){var e;if(!t)return "";if(Array.isArray(t)){let n=[];for(let r of t)if(Array.isArray(r))n.push(...Wi(r));else {let i=Wi(r);i!==""&&n.push(i);}return n}return t.type===ur?{...t,breakContents:Wi(t.breakContents),flatContents:Wi(t.flatContents)}:t.type===Yn?{...t,contents:Wi(t.contents),expandedStates:(e=t.expandedStates)==null?void 0:e.map(Wi)}:t.type===Li?{type:"fill",parts:t.parts.map(Wi)}:t.contents?{...t,contents:Wi(t.contents)}:t}function Mz(t){let e=Object.create(null),n=new Set;return r(Wi(t));function r(s,o,a){var l,u;if(typeof s=="string")return JSON.stringify(s);if(Array.isArray(s)){let c=s.map(r).filter(Boolean);return c.length===1?c[0]:`[${c.join(", ")}]`}if(s.type===un){let c=((l=a==null?void 0:a[o+1])==null?void 0:l.type)===Sr;return s.literal?c?"literalline":"literallineWithoutBreakParent":s.hard?c?"hardline":"hardlineWithoutBreakParent":s.soft?"softline":"line"}if(s.type===Sr)return ((u=a==null?void 0:a[o-1])==null?void 0:u.type)===un&&a[o-1].hard?void 0:"breakParent";if(s.type===gs)return "trim";if(s.type===ps)return "indent("+r(s.contents)+")";if(s.type===ms)return s.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+r(s.contents)+")":s.n<0?"dedent("+r(s.contents)+")":s.n.type==="root"?"markAsRoot("+r(s.contents)+")":"align("+JSON.stringify(s.n)+", "+r(s.contents)+")";if(s.type===ur)return "ifBreak("+r(s.breakContents)+(s.flatContents?", "+r(s.flatContents):"")+(s.groupId?(s.flatContents?"":', ""')+`, { groupId: ${i(s.groupId)} }`:"")+")";if(s.type===ys){let c=[];s.negate&&c.push("negate: true"),s.groupId&&c.push(`groupId: ${i(s.groupId)}`);let f=c.length>0?`, { ${c.join(", ")} }`:"";return `indentIfBreak(${r(s.contents)}${f})`}if(s.type===Yn){let c=[];s.break&&s.break!=="propagated"&&c.push("shouldBreak: true"),s.id&&c.push(`id: ${i(s.id)}`);let f=c.length>0?`, { ${c.join(", ")} }`:"";return s.expandedStates?`conditionalGroup([${s.expandedStates.map(d=>r(d)).join(",")}]${f})`:`group(${r(s.contents)}${f})`}if(s.type===Li)return `fill([${s.parts.map(c=>r(c)).join(", ")}])`;if(s.type===vs)return "lineSuffix("+r(s.contents)+")";if(s.type===Ds)return "lineSuffixBoundary";if(s.type===Ri)return `label(${JSON.stringify(s.label)}, ${r(s.contents)})`;throw new Error("Unknown doc type "+s.type)}function i(s){if(typeof s!="symbol")return JSON.stringify(String(s));if(s in e)return e[s];let o=s.description||"symbol";for(let a=0;;a++){let l=o+(a>0?` #${a}`:"");if(!n.has(l))return n.add(l),e[s]=`Symbol.for(${JSON.stringify(l)})`}}}var Pz=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Nz(t){return t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510}function Iz(t){return t>=4352&&t<=4447||t===8986||t===8987||t===9001||t===9002||t>=9193&&t<=9196||t===9200||t===9203||t===9725||t===9726||t===9748||t===9749||t>=9776&&t<=9783||t>=9800&&t<=9811||t===9855||t>=9866&&t<=9871||t===9875||t===9889||t===9898||t===9899||t===9917||t===9918||t===9924||t===9925||t===9934||t===9940||t===9962||t===9970||t===9971||t===9973||t===9978||t===9981||t===9989||t===9994||t===9995||t===10024||t===10060||t===10062||t>=10067&&t<=10069||t===10071||t>=10133&&t<=10135||t===10160||t===10175||t===11035||t===11036||t===11088||t===11093||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12773||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||t===94192||t===94193||t>=94208&&t<=100343||t>=100352&&t<=101589||t>=101631&&t<=101640||t>=110576&&t<=110579||t>=110581&&t<=110587||t===110589||t===110590||t>=110592&&t<=110882||t===110898||t>=110928&&t<=110930||t===110933||t>=110948&&t<=110951||t>=110960&&t<=111355||t>=119552&&t<=119638||t>=119648&&t<=119670||t===126980||t===127183||t===127374||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t===127568||t===127569||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||t===127988||t>=127992&&t<=128062||t===128064||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||t===128378||t===128405||t===128406||t===128420||t>=128507&&t<=128591||t>=128640&&t<=128709||t===128716||t>=128720&&t<=128722||t>=128725&&t<=128727||t>=128732&&t<=128735||t===128747||t===128748||t>=128756&&t<=128764||t>=128992&&t<=129003||t===129008||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129673||t>=129679&&t<=129734||t>=129742&&t<=129756||t>=129759&&t<=129769||t>=129776&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141}var Lz=t=>!(Nz(t)||Iz(t)),Rz=/[^\x20-\x7F]/u;function _z(t){if(!t)return 0;if(!Rz.test(t))return t.length;t=t.replace(Pz(),"  ");let e=0;for(let n of t){let r=n.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||(e+=Lz(r)?1:2);}return e}var Py=_z,Ln=Symbol("MODE_BREAK"),di=Symbol("MODE_FLAT"),Ia=Symbol("cursor"),Tg=Symbol("DOC_FILL_PRINTED_LENGTH");function XS(){return {value:"",length:0,queue:[]}}function jz(t,e){return kg(t,{type:"indent"},e)}function Vz(t,e,n){return e===Number.NEGATIVE_INFINITY?t.root||XS():e<0?kg(t,{type:"dedent"},n):e?e.type==="root"?{...t,root:t}:kg(t,{type:typeof e=="string"?"stringAlign":"numberAlign",n:e},n):t}function kg(t,e,n){let r=e.type==="dedent"?t.queue.slice(0,-1):[...t.queue,e],i="",s=0,o=0,a=0;for(let p of r)switch(p.type){case "indent":c(),n.useTabs?l(1):u(n.tabWidth);break;case "stringAlign":c(),i+=p.n,s+=p.n.length;break;case "numberAlign":o+=1,a+=p.n;break;default:throw new Error(`Unexpected type '${p.type}'`)}return d(),{...t,value:i,length:s,queue:r};function l(p){i+="	".repeat(p),s+=n.tabWidth*p;}function u(p){i+=" ".repeat(p),s+=p;}function c(){n.useTabs?f():d();}function f(){o>0&&l(o),h();}function d(){a>0&&u(a),h();}function h(){o=0,a=0;}}function Bg(t){let e=0,n=0,r=t.length;e:for(;r--;){let i=t[r];if(i===Ia){n++;continue}for(let s=i.length-1;s>=0;s--){let o=i[s];if(o===" "||o==="	")e++;else {t[r]=i.slice(0,s+1);break e}}}if(e>0||n>0)for(t.length=r+1;n-- >0;)t.push(Ia);return e}function kf(t,e,n,r,i,s){if(n===Number.POSITIVE_INFINITY)return  true;let o=e.length,a=[t],l=[];for(;n>=0;){if(a.length===0){if(o===0)return  true;a.push(e[--o]);continue}let{mode:u,doc:c}=a.pop(),f=aa(c);switch(f){case sa:l.push(c),n-=Py(c);break;case rs:case Li:{let d=f===rs?c:c.parts,h=c[Tg]??0;for(let p=d.length-1;p>=h;p--)a.push({mode:u,doc:d[p]});break}case ps:case ms:case ys:case Ri:a.push({mode:u,doc:c.contents});break;case gs:n+=Bg(l);break;case Yn:{if(s&&c.break)return  false;let d=c.break?Ln:u,h=c.expandedStates&&d===Ln?Jt(false,c.expandedStates,-1):c.contents;a.push({mode:d,doc:h});break}case ur:{let d=(c.groupId?i[c.groupId]||di:u)===Ln?c.breakContents:c.flatContents;d&&a.push({mode:u,doc:d});break}case un:if(u===Ln||c.hard)return  true;c.soft||(l.push(" "),n--);break;case vs:r=true;break;case Ds:if(r)return  false;break}}return  false}function Bh(t,e){let n={},r=e.printWidth,i=By(e.endOfLine),s=0,o=[{ind:XS(),mode:Ln,doc:t}],a=[],l=false,u=[],c=0;for(dz(t);o.length>0;){let{ind:d,mode:h,doc:p}=o.pop();switch(aa(p)){case sa:{let m=i!==`
`?Sh(false,p,`
`,i):p;a.push(m),o.length>0&&(s+=Py(m));break}case rs:for(let m=p.length-1;m>=0;m--)o.push({ind:d,mode:h,doc:p[m]});break;case oa:if(c>=2)throw new Error("There are too many 'cursor' in doc.");a.push(Ia),c++;break;case ps:o.push({ind:jz(d,e),mode:h,doc:p.contents});break;case ms:o.push({ind:Vz(d,p.n,e),mode:h,doc:p.contents});break;case gs:s-=Bg(a);break;case Yn:switch(h){case di:if(!l){o.push({ind:d,mode:p.break?Ln:di,doc:p.contents});break}case Ln:{l=false;let m={ind:d,mode:di,doc:p.contents},g=r-s,y=u.length>0;if(!p.break&&kf(m,o,g,y,n))o.push(m);else if(p.expandedStates){let F=Jt(false,p.expandedStates,-1);if(p.break){o.push({ind:d,mode:Ln,doc:F});break}else for(let x=1;x<p.expandedStates.length+1;x++)if(x>=p.expandedStates.length){o.push({ind:d,mode:Ln,doc:F});break}else {let b=p.expandedStates[x],D={ind:d,mode:di,doc:b};if(kf(D,o,g,y,n)){o.push(D);break}}}else o.push({ind:d,mode:Ln,doc:p.contents});break}}p.id&&(n[p.id]=Jt(false,o,-1).mode);break;case Li:{let m=r-s,g=p[Tg]??0,{parts:y}=p,F=y.length-g;if(F===0)break;let x=y[g+0],b=y[g+1],D={ind:d,mode:di,doc:x},C={ind:d,mode:Ln,doc:x},E=kf(D,[],m,u.length>0,n,true);if(F===1){E?o.push(D):o.push(C);break}let S={ind:d,mode:di,doc:b},A={ind:d,mode:Ln,doc:b};if(F===2){E?o.push(S,D):o.push(A,C);break}let M=y[g+2],k={ind:d,mode:h,doc:{...p,[Tg]:g+2}};kf({ind:d,mode:di,doc:[x,b,M]},[],m,u.length>0,n,true)?o.push(k,S,D):E?o.push(k,A,D):o.push(k,A,C);break}case ur:case ys:{let m=p.groupId?n[p.groupId]:h;if(m===Ln){let g=p.type===ur?p.breakContents:p.negate?p.contents:zd(p.contents);g&&o.push({ind:d,mode:h,doc:g});}if(m===di){let g=p.type===ur?p.flatContents:p.negate?zd(p.contents):p.contents;g&&o.push({ind:d,mode:h,doc:g});}break}case vs:u.push({ind:d,mode:h,doc:p.contents});break;case Ds:u.length>0&&o.push({ind:d,mode:h,doc:My});break;case un:switch(h){case di:if(p.hard)l=true;else {p.soft||(a.push(" "),s+=1);break}case Ln:if(u.length>0){o.push({ind:d,mode:h,doc:p},...u.reverse()),u.length=0;break}p.literal?d.root?(a.push(i,d.root.value),s=d.root.length):(a.push(i),s=0):(s-=Bg(a),a.push(i+d.value),s=d.length);break}break;case Ri:o.push({ind:d,mode:h,doc:p.contents});break;case Sr:break;default:throw new yl(p)}o.length===0&&u.length>0&&(o.push(...u.reverse()),u.length=0);}let f=a.indexOf(Ia);if(f!==-1){let d=a.indexOf(Ia,f+1);if(d===-1)return {formatted:a.filter(g=>g!==Ia).join("")};let h=a.slice(0,f).join(""),p=a.slice(f+1,d).join(""),m=a.slice(d+1).join("");return {formatted:h+p+m,cursorNodeStart:h.length,cursorNodeText:p}}return {formatted:a.join("")}}function qz(t,e,n=0){let r=0;for(let i=n;i<t.length;++i)t[i]==="	"?r=r+e-r%e:r++;return r}var Ny=qz,Eo,Og,nd,Wz=class{constructor(e){KH(this,Eo),this.stack=[e];}get key(){let{stack:e,siblings:n}=this;return Jt(false,e,n===null?-2:-4)??null}get index(){return this.siblings===null?null:Jt(false,this.stack,-2)}get node(){return Jt(false,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:e}=this,n=Jt(false,e,-3);return Array.isArray(n)?n:null}get next(){let{siblings:e}=this;return e===null?null:e[this.index+1]}get previous(){let{siblings:e}=this;return e===null?null:e[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:e,index:n}=this;return e!==null&&n===e.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return [...Ql(this,Eo,nd).call(this)]}getName(){let{stack:e}=this,{length:n}=e;return n>1?Jt(false,e,-2):null}getValue(){return Jt(false,this.stack,-1)}getNode(e=0){let n=Ql(this,Eo,Og).call(this,e);return n===-1?null:this.stack[n]}getParentNode(e=0){return this.getNode(e+1)}call(e,...n){let{stack:r}=this,{length:i}=r,s=Jt(false,r,-1);for(let o of n)s=s[o],r.push(o,s);try{return e(this)}finally{r.length=i;}}callParent(e,n=0){let r=Ql(this,Eo,Og).call(this,n+1),i=this.stack.splice(r+1);try{return e(this)}finally{this.stack.push(...i);}}each(e,...n){let{stack:r}=this,{length:i}=r,s=Jt(false,r,-1);for(let o of n)s=s[o],r.push(o,s);try{for(let o=0;o<s.length;++o)r.push(o,s[o]),e(this,o,s),r.length-=2;}finally{r.length=i;}}map(e,...n){let r=[];return this.each((i,s,o)=>{r[s]=e(i,s,o);},...n),r}match(...e){let n=this.stack.length-1,r=null,i=this.stack[n--];for(let s of e){if(i===void 0)return  false;let o=null;if(typeof r=="number"&&(o=r,r=this.stack[n--],i=this.stack[n--]),s&&!s(i,r,o))return  false;r=this.stack[n--],i=this.stack[n--];}return  true}findAncestor(e){for(let n of Ql(this,Eo,nd).call(this))if(e(n))return n}hasAncestor(e){for(let n of Ql(this,Eo,nd).call(this))if(e(n))return  true;return  false}};Eo=new WeakSet,Og=function(t){let{stack:e}=this;for(let n=e.length-1;n>=0;n-=2)if(!Array.isArray(e[n])&&--t<0)return n;return  -1},nd=function*(){let{stack:t}=this;for(let e=t.length-3;e>=0;e-=2){let n=t[e];Array.isArray(n)||(yield n);}};var Hz=Wz,YS=new Proxy(()=>{},{get:()=>YS}),$g=YS;function zz(t){return t!==null&&typeof t=="object"}var Kz=zz;function*Oh(t,e){let{getVisitorKeys:n,filter:r=()=>true}=e,i=s=>Kz(s)&&r(s);for(let s of n(t)){let o=t[s];if(Array.isArray(o))for(let a of o)i(a)&&(yield a);else i(o)&&(yield o);}}function*Uz(t,e){let n=[t];for(let r=0;r<n.length;r++){let i=n[r];for(let s of Oh(i,e))yield s,n.push(s);}}function Jz(t,e){return Oh(t,e).next().done}function Lc(t){return (e,n,r)=>{let i=!!(r!=null&&r.backwards);if(n===false)return  false;let{length:s}=e,o=n;for(;o>=0&&o<s;){let a=e.charAt(o);if(t instanceof RegExp){if(!t.test(a))return o}else if(!t.includes(a))return o;i?o--:o++;}return o===-1||o===s?o:false}}var Gz=Lc(/\s/u),ro=Lc(" 	"),QS=Lc(",; 	"),ZS=Lc(/[^\n\r]/u);function Xz(t,e,n){let r=!!(n!=null&&n.backwards);if(e===false)return  false;let i=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&i===`
`)return e-2;if(i===`
`||i==="\r"||i==="\u2028"||i==="\u2029")return e-1}else {if(i==="\r"&&t.charAt(e+1)===`
`)return e+2;if(i===`
`||i==="\r"||i==="\u2028"||i==="\u2029")return e+1}return e}var Qo=Xz;function Yz(t,e,n={}){let r=ro(t,n.backwards?e-1:e,n),i=Qo(t,r,n);return r!==i}var Gs=Yz;function Qz(t){return Array.isArray(t)&&t.length>0}var Zz=Qz,eA=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),eK=t=>Object.keys(t).filter(e=>!eA.has(e));function tK(t){return t?e=>t(e,eA):eK}var $h=tK;function nK(t){let e=t.type||t.kind||"(unknown type)",n=String(t.name||t.id&&(typeof t.id=="object"?t.id.name:t.id)||t.key&&(typeof t.key=="object"?t.key.name:t.key)||t.value&&(typeof t.value=="object"?"":String(t.value))||t.operator||"");return n.length>20&&(n=n.slice(0,19)+"…"),e+(n?" "+n:"")}function Iy(t,e){(t.comments??(t.comments=[])).push(e),e.printed=false,e.nodeDescription=nK(t);}function La(t,e){e.leading=true,e.trailing=false,Iy(t,e);}function Fo(t,e,n){e.leading=false,e.trailing=false,n&&(e.marker=n),Iy(t,e);}function Ra(t,e){e.leading=false,e.trailing=true,Iy(t,e);}var Bp=new WeakMap;function Ly(t,e){if(Bp.has(t))return Bp.get(t);let{printer:{getCommentChildNodes:n,canAttachComment:r,getVisitorKeys:i},locStart:s,locEnd:o}=e;if(!r)return [];let a=((n==null?void 0:n(t,e))??[...Oh(t,{getVisitorKeys:$h(i)})]).flatMap(l=>r(l)?[l]:Ly(l,e));return a.sort((l,u)=>s(l)-s(u)||o(l)-o(u)),Bp.set(t,a),a}function tA(t,e,n,r){let{locStart:i,locEnd:s}=n,o=i(e),a=s(e),l=Ly(t,n),u,c,f=0,d=l.length;for(;f<d;){let h=f+d>>1,p=l[h],m=i(p),g=s(p);if(m<=o&&a<=g)return tA(p,e,n,p);if(g<=o){u=p,f=h+1;continue}if(a<=m){c=p,d=h;continue}throw new Error("Comment location overlaps with node location")}if((r==null?void 0:r.type)==="TemplateLiteral"){let{quasis:h}=r,p=$p(h,e,n);u&&$p(h,u,n)!==p&&(u=null),c&&$p(h,c,n)!==p&&(c=null);}return {enclosingNode:r,precedingNode:u,followingNode:c}}var Op=()=>false;function rK(t,e){let{comments:n}=t;if(delete t.comments,!Zz(n)||!e.printer.canAttachComment)return;let r=[],{locStart:i,locEnd:s,printer:{experimentalFeatures:{avoidAstMutation:o=false}={},handleComments:a={}},originalText:l}=e,{ownLine:u=Op,endOfLine:c=Op,remaining:f=Op}=a,d=n.map((h,p)=>({...tA(t,h,e),comment:h,text:l,options:e,ast:t,isLastComment:n.length-1===p}));for(let[h,p]of d.entries()){let{comment:m,precedingNode:g,enclosingNode:y,followingNode:F,text:x,options:b,ast:D,isLastComment:C}=p;if(b.parser==="json"||b.parser==="json5"||b.parser==="jsonc"||b.parser==="__js_expression"||b.parser==="__ts_expression"||b.parser==="__vue_expression"||b.parser==="__vue_ts_expression"){if(i(m)-i(D)<=0){La(D,m);continue}if(s(m)-s(D)>=0){Ra(D,m);continue}}let E;if(o?E=[p]:(m.enclosingNode=y,m.precedingNode=g,m.followingNode=F,E=[m,x,b,D,C]),iK(x,b,d,h))m.placement="ownLine",u(...E)||(F?La(F,m):g?Ra(g,m):Fo(y||D,m));else if(sK(x,b,d,h))m.placement="endOfLine",c(...E)||(g?Ra(g,m):F?La(F,m):Fo(y||D,m));else if(m.placement="remaining",!f(...E))if(g&&F){let S=r.length;S>0&&r[S-1].followingNode!==F&&pC(r,b),r.push(p);}else g?Ra(g,m):F?La(F,m):Fo(y||D,m);}if(pC(r,e),!o)for(let h of n)delete h.precedingNode,delete h.enclosingNode,delete h.followingNode;}var nA=t=>!/[\S\n\u2028\u2029]/u.test(t);function iK(t,e,n,r){let{comment:i,precedingNode:s}=n[r],{locStart:o,locEnd:a}=e,l=o(i);if(s)for(let u=r-1;u>=0;u--){let{comment:c,precedingNode:f}=n[u];if(f!==s||!nA(t.slice(a(c),l)))break;l=o(c);}return Gs(t,l,{backwards:true})}function sK(t,e,n,r){let{comment:i,followingNode:s}=n[r],{locStart:o,locEnd:a}=e,l=a(i);if(s)for(let u=r+1;u<n.length;u++){let{comment:c,followingNode:f}=n[u];if(f!==s||!nA(t.slice(l,o(c))))break;l=a(c);}return Gs(t,l)}function pC(t,e){var n,r;let i=t.length;if(i===0)return;let{precedingNode:s,followingNode:o}=t[0],a=e.locStart(o),l;for(l=i;l>0;--l){let{comment:u,precedingNode:c,followingNode:f}=t[l-1];$g.strictEqual(c,s),$g.strictEqual(f,o);let d=e.originalText.slice(e.locEnd(u),a);if(((r=(n=e.printer).isGap)==null?void 0:r.call(n,d,e))??/^[\s(]*$/u.test(d))a=e.locStart(u);else break}for(let[u,{comment:c}]of t.entries())u<l?Ra(s,c):La(o,c);for(let u of [s,o])u.comments&&u.comments.length>1&&u.comments.sort((c,f)=>e.locStart(c)-e.locStart(f));t.length=0;}function $p(t,e,n){let r=n.locStart(e)-1;for(let i=1;i<t.length;++i)if(r<n.locStart(t[i]))return i-1;return 0}function oK(t,e){let n=e-1;n=ro(t,n,{backwards:true}),n=Qo(t,n,{backwards:true}),n=ro(t,n,{backwards:true});let r=Qo(t,n,{backwards:true});return n!==r}var Ry=oK;function rA(t,e){let n=t.node;return n.printed=true,e.printer.printComment(t,e)}function aK(t,e){var n;let r=t.node,i=[rA(t,e)],{printer:s,originalText:o,locStart:a,locEnd:l}=e;if((n=s.isBlockComment)!=null&&n.call(s,r)){let c=Gs(o,l(r))?Gs(o,a(r),{backwards:true})?Wo:KS:" ";i.push(c);}else i.push(Wo);let u=Qo(o,ro(o,l(r)));return u!==false&&Gs(o,u)&&i.push(Wo),i}function lK(t,e,n){var r;let i=t.node,s=rA(t,e),{printer:o,originalText:a,locStart:l}=e,u=(r=o.isBlockComment)==null?void 0:r.call(o,i);if(n!=null&&n.hasLineSuffix&&!(n!=null&&n.isBlock)||Gs(a,l(i),{backwards:true})){let c=Ry(a,l(i));return {doc:Ag([Wo,c?Wo:"",s]),isBlock:u,hasLineSuffix:true}}return !u||n!=null&&n.hasLineSuffix?{doc:[Ag([" ",s]),kh],isBlock:u,hasLineSuffix:true}:{doc:[" ",s],isBlock:u,hasLineSuffix:false}}function uK(t,e){let n=t.node;if(!n)return {};let r=e[Symbol.for("printedComments")];if((n.comments||[]).filter(a=>!r.has(a)).length===0)return {leading:"",trailing:""};let i=[],s=[],o;return t.each(()=>{let a=t.node;if(r!=null&&r.has(a))return;let{leading:l,trailing:u}=a;l?i.push(aK(t,e)):u&&(o=lK(t,e,o),s.push(o.doc));},"comments"),{leading:i,trailing:s}}function cK(t,e,n){let{leading:r,trailing:i}=uK(t,n);return !r&&!i?e:td(e,s=>[r,s,i])}function fK(t){let{[Symbol.for("comments")]:e,[Symbol.for("printedComments")]:n}=t;for(let r of e){if(!r.printed&&!n.has(r))throw new Error('Comment "'+r.value.trim()+'" was not printed. Please report this error!');delete r.printed;}}var iA=class extends Error{constructor(){super(...arguments);le(this,"name","ConfigError");}},mC=class extends Error{constructor(){super(...arguments);le(this,"name","UndefinedParserError");}},dK={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:false,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:t=>typeof t=="string"||typeof t=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:true,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:t=>typeof t=="string"||typeof t=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:false,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment
in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:false,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function sA({plugins:t=[],showDeprecated:e=false}={}){let n=t.flatMap(i=>i.languages??[]),r=[];for(let i of pK(Object.assign({},...t.map(({options:s})=>s),dK)))!e&&i.deprecated||(Array.isArray(i.choices)&&(e||(i.choices=i.choices.filter(s=>!s.deprecated)),i.name==="parser"&&(i.choices=[...i.choices,...hK(i.choices,n,t)])),i.pluginDefaults=Object.fromEntries(t.filter(s=>{var o;return ((o=s.defaultOptions)==null?void 0:o[i.name])!==void 0}).map(s=>[s.name,s.defaultOptions[i.name]])),r.push(i));return {languages:n,options:r}}function*hK(t,e,n){let r=new Set(t.map(i=>i.value));for(let i of e)if(i.parsers){for(let s of i.parsers)if(!r.has(s)){r.add(s);let o=n.find(l=>l.parsers&&Object.prototype.hasOwnProperty.call(l.parsers,s)),a=i.name;o!=null&&o.name&&(a+=` (plugin: ${o.name})`),yield {value:s,description:a};}}}function pK(t){let e=[];for(let[n,r]of Object.entries(t)){let i={name:n,...r};Array.isArray(i.default)&&(i.default=Jt(false,i.default,-1).value),e.push(i);}return e}var mK=t=>String(t).split(/[/\\]/u).pop();function gC(t,e){if(!e)return;let n=mK(e).toLowerCase();return t.find(({filenames:r})=>r==null?void 0:r.some(i=>i.toLowerCase()===n))??t.find(({extensions:r})=>r==null?void 0:r.some(i=>n.endsWith(i)))}function gK(t,e){if(e)return t.find(({name:n})=>n.toLowerCase()===e)??t.find(({aliases:n})=>n==null?void 0:n.includes(e))??t.find(({extensions:n})=>n==null?void 0:n.includes(`.${e}`))}function yK(t,e){let n=t.plugins.flatMap(i=>i.languages??[]),r=gK(n,e.language)??gC(n,e.physicalFile)??gC(n,e.file)??(e.physicalFile,void 0);return r==null?void 0:r.parsers[0]}var vK=yK,_a={key:t=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?t:JSON.stringify(t),value(t){if(t===null||typeof t!="object")return JSON.stringify(t);if(Array.isArray(t))return `[${t.map(n=>_a.value(n)).join(", ")}]`;let e=Object.keys(t);return e.length===0?"{}":`{ ${e.map(n=>`${_a.key(n)}: ${_a.value(t[n])}`).join(", ")} }`},pair:({key:t,value:e})=>_a.value({[t]:e})},yC=wh(Ty()),DK=(t,e,{descriptor:n})=>{let r=[`${yC.default.yellow(typeof t=="string"?n.key(t):n.pair(t))} is deprecated`];return e&&r.push(`we now treat it as ${yC.default.blue(typeof e=="string"?n.key(e):n.pair(e))}`),r.join("; ")+"."},ja=wh(Ty()),oA=Symbol.for("vnopts.VALUE_NOT_EXIST"),rd=Symbol.for("vnopts.VALUE_UNCHANGED"),vC=" ".repeat(2),bK=(t,e,n)=>{let{text:r,list:i}=n.normalizeExpectedResult(n.schemas[t].expected(n)),s=[];return r&&s.push(DC(t,e,r,n.descriptor)),i&&s.push([DC(t,e,i.title,n.descriptor)].concat(i.values.map(o=>aA(o,n.loggerPrintWidth))).join(`
`)),lA(s,n.loggerPrintWidth)};function DC(t,e,n,r){return [`Invalid ${ja.default.red(r.key(t))} value.`,`Expected ${ja.default.blue(n)},`,`but received ${e===oA?ja.default.gray("nothing"):ja.default.red(r.value(e))}.`].join(" ")}function aA({text:t,list:e},n){let r=[];return t&&r.push(`- ${ja.default.blue(t)}`),e&&r.push([`- ${ja.default.blue(e.title)}:`].concat(e.values.map(i=>aA(i,n-vC.length).replace(/^|\n/g,`$&${vC}`))).join(`
`)),lA(r,n)}function lA(t,e){if(t.length===1)return t[0];let[n,r]=t,[i,s]=t.map(o=>o.split(`
`,1)[0].length);return i>e&&i>s?r:n}var bC=wh(Ty()),Mp=[],CC=[];function CK(t,e){if(t===e)return 0;let n=t;t.length>e.length&&(t=e,e=n);let r=t.length,i=e.length;for(;r>0&&t.charCodeAt(~-r)===e.charCodeAt(~-i);)r--,i--;let s=0;for(;s<r&&t.charCodeAt(s)===e.charCodeAt(s);)s++;if(r-=s,i-=s,r===0)return i;let o,a,l,u,c=0,f=0;for(;c<r;)CC[c]=t.charCodeAt(s+c),Mp[c]=++c;for(;f<i;)for(o=e.charCodeAt(s+f),l=f++,a=f,c=0;c<r;c++)u=o===CC[c]?l:l+1,l=Mp[c],a=Mp[c]=l>a?u>a?a+1:u:u>l?l+1:u;return a}var uA=(t,e,{descriptor:n,logger:r,schemas:i})=>{let s=[`Ignored unknown option ${bC.default.yellow(n.pair({key:t,value:e}))}.`],o=Object.keys(i).sort().find(a=>CK(t,a)<3);o&&s.push(`Did you mean ${bC.default.blue(n.key(o))}?`),r.warn(s.join(" "));},xK=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function EK(t,e){let n=new t(e),r=Object.create(n);for(let i of xK)i in e&&(r[i]=FK(e[i],n,go.prototype[i].length));return r}var go=class{static create(e){return EK(this,e)}constructor(e){this.name=e.name;}default(e){}expected(e){return "nothing"}validate(e,n){return  false}deprecated(e,n){return  false}forward(e,n){}redirect(e,n){}overlap(e,n,r){return e}preprocess(e,n){return e}postprocess(e,n){return rd}};function FK(t,e,n){return typeof t=="function"?(...r)=>t(...r.slice(0,n-1),e,...r.slice(n-1)):()=>t}var wK=class extends go{constructor(e){super(e),this._sourceName=e.sourceName;}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,n){return n.schemas[this._sourceName].validate(e,n)}redirect(e,n){return this._sourceName}},SK=class extends go{expected(){return "anything"}validate(){return  true}},AK=class extends go{constructor({valueSchema:e,name:n=e.name,...r}){super({...r,name:n}),this._valueSchema=e;}expected(e){let{text:n,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return {text:n&&`an array of ${n}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,n){if(!Array.isArray(e))return  false;let r=[];for(let i of e){let s=n.normalizeValidateResult(this._valueSchema.validate(i,n),i);s!==true&&r.push(s.value);}return r.length===0?true:{value:r}}deprecated(e,n){let r=[];for(let i of e){let s=n.normalizeDeprecatedResult(this._valueSchema.deprecated(i,n),i);s!==false&&r.push(...s.map(({value:o})=>({value:[o]})));}return r}forward(e,n){let r=[];for(let i of e){let s=n.normalizeForwardResult(this._valueSchema.forward(i,n),i);r.push(...s.map(xC));}return r}redirect(e,n){let r=[],i=[];for(let s of e){let o=n.normalizeRedirectResult(this._valueSchema.redirect(s,n),s);"remain"in o&&r.push(o.remain),i.push(...o.redirect.map(xC));}return r.length===0?{redirect:i}:{redirect:i,remain:r}}overlap(e,n){return e.concat(n)}};function xC({from:t,to:e}){return {from:[t],to:e}}var TK=class extends go{expected(){return "true or false"}validate(e){return typeof e=="boolean"}};function kK(t,e){let n=Object.create(null);for(let r of t){let i=r[e];if(n[i])throw new Error(`Duplicate ${e} ${JSON.stringify(i)}`);n[i]=r;}return n}function BK(t,e){let n=new Map;for(let r of t){let i=r[e];if(n.has(i))throw new Error(`Duplicate ${e} ${JSON.stringify(i)}`);n.set(i,r);}return n}function OK(){let t=Object.create(null);return e=>{let n=JSON.stringify(e);return t[n]?true:(t[n]=true,false)}}function $K(t,e){let n=[],r=[];for(let i of t)e(i)?n.push(i):r.push(i);return [n,r]}function MK(t){return t===Math.floor(t)}function PK(t,e){if(t===e)return 0;let n=typeof t,r=typeof e,i=["undefined","object","boolean","number","string"];return n!==r?i.indexOf(n)-i.indexOf(r):n!=="string"?Number(t)-Number(e):t.localeCompare(e)}function NK(t){return (...e)=>{let n=t(...e);return typeof n=="string"?new Error(n):n}}function EC(t){return t===void 0?{}:t}function cA(t){if(typeof t=="string")return {text:t};let{text:e,list:n}=t;return IK((e||n)!==void 0,"Unexpected `expected` result, there should be at least one field."),n?{text:e,list:{title:n.title,values:n.values.map(cA)}}:{text:e}}function FC(t,e){return t===true?true:t===false?{value:e}:t}function wC(t,e,n=false){return t===false?false:t===true?n?true:[{value:e}]:"value"in t?[t]:t.length===0?false:t}function SC(t,e){return typeof t=="string"||"key"in t?{from:e,to:t}:"from"in t?{from:t.from,to:t.to}:{from:e,to:t.to}}function Mg(t,e){return t===void 0?[]:Array.isArray(t)?t.map(n=>SC(n,e)):[SC(t,e)]}function AC(t,e){let n=Mg(typeof t=="object"&&"redirect"in t?t.redirect:t,e);return n.length===0?{remain:e,redirect:n}:typeof t=="object"&&"remain"in t?{remain:t.remain,redirect:n}:{redirect:n}}function IK(t,e){if(!t)throw new Error(e)}var LK=class extends go{constructor(t){super(t),this._choices=BK(t.choices.map(e=>e&&typeof e=="object"?e:{value:e}),"value");}expected({descriptor:t}){let e=Array.from(this._choices.keys()).map(i=>this._choices.get(i)).filter(({hidden:i})=>!i).map(i=>i.value).sort(PK).map(t.value),n=e.slice(0,-2),r=e.slice(-2);return {text:n.concat(r.join(" or ")).join(", "),list:{title:"one of the following values",values:e}}}validate(t){return this._choices.has(t)}deprecated(t){let e=this._choices.get(t);return e&&e.deprecated?{value:t}:false}forward(t){let e=this._choices.get(t);return e?e.forward:void 0}redirect(t){let e=this._choices.get(t);return e?e.redirect:void 0}},RK=class extends go{expected(){return "a number"}validate(e,n){return typeof e=="number"}},_K=class extends RK{expected(){return "an integer"}validate(e,n){return n.normalizeValidateResult(super.validate(e,n),e)===true&&MK(e)}},TC=class extends go{expected(){return "a string"}validate(e){return typeof e=="string"}},jK=_a,VK=uA,qK=bK,WK=DK,HK=class{constructor(e,n){let{logger:r=console,loggerPrintWidth:i=80,descriptor:s=jK,unknown:o=VK,invalid:a=qK,deprecated:l=WK,missing:u=()=>false,required:c=()=>false,preprocess:f=h=>h,postprocess:d=()=>rd}=n||{};this._utils={descriptor:s,logger:r||{warn:()=>{}},loggerPrintWidth:i,schemas:kK(e,"name"),normalizeDefaultResult:EC,normalizeExpectedResult:cA,normalizeDeprecatedResult:wC,normalizeForwardResult:Mg,normalizeRedirectResult:AC,normalizeValidateResult:FC},this._unknownHandler=o,this._invalidHandler=NK(a),this._deprecatedHandler=l,this._identifyMissing=(h,p)=>!(h in p)||u(h,p),this._identifyRequired=c,this._preprocess=f,this._postprocess=d,this.cleanHistory();}cleanHistory(){this._hasDeprecationWarned=OK();}normalize(e){let n={},r=[this._preprocess(e,this._utils)],i=()=>{for(;r.length!==0;){let s=r.shift(),o=this._applyNormalization(s,n);r.push(...o);}};i();for(let s of Object.keys(this._utils.schemas)){let o=this._utils.schemas[s];if(!(s in n)){let a=EC(o.default(this._utils));"value"in a&&r.push({[s]:a.value});}}i();for(let s of Object.keys(this._utils.schemas)){if(!(s in n))continue;let o=this._utils.schemas[s],a=n[s],l=o.postprocess(a,this._utils);l!==rd&&(this._applyValidation(l,s,o),n[s]=l);}return this._applyPostprocess(n),this._applyRequiredCheck(n),n}_applyNormalization(e,n){let r=[],{knownKeys:i,unknownKeys:s}=this._partitionOptionKeys(e);for(let o of i){let a=this._utils.schemas[o],l=a.preprocess(e[o],this._utils);this._applyValidation(l,o,a);let u=({from:d,to:h})=>{r.push(typeof h=="string"?{[h]:d}:{[h.key]:h.value});},c=({value:d,redirectTo:h})=>{let p=wC(a.deprecated(d,this._utils),l,true);if(p!==false)if(p===true)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,h,this._utils));else for(let{value:m}of p){let g={key:o,value:m};if(!this._hasDeprecationWarned(g)){let y=typeof h=="string"?{key:h,value:m}:h;this._utils.logger.warn(this._deprecatedHandler(g,y,this._utils));}}};Mg(a.forward(l,this._utils),l).forEach(u);let f=AC(a.redirect(l,this._utils),l);if(f.redirect.forEach(u),"remain"in f){let d=f.remain;n[o]=o in n?a.overlap(n[o],d,this._utils):d,c({value:d});}for(let{from:d,to:h}of f.redirect)c({value:d,redirectTo:h});}for(let o of s){let a=e[o];this._applyUnknownHandler(o,a,n,(l,u)=>{r.push({[l]:u});});}return r}_applyRequiredCheck(e){for(let n of Object.keys(this._utils.schemas))if(this._identifyMissing(n,e)&&this._identifyRequired(n))throw this._invalidHandler(n,oA,this._utils)}_partitionOptionKeys(e){let[n,r]=$K(Object.keys(e).filter(i=>!this._identifyMissing(i,e)),i=>i in this._utils.schemas);return {knownKeys:n,unknownKeys:r}}_applyValidation(e,n,r){let i=FC(r.validate(e,this._utils),e);if(i!==true)throw this._invalidHandler(n,i.value,this._utils)}_applyUnknownHandler(e,n,r,i){let s=this._unknownHandler(e,n,this._utils);if(s)for(let o of Object.keys(s)){if(this._identifyMissing(o,s))continue;let a=s[o];o in this._utils.schemas?i(o,a):r[o]=a;}}_applyPostprocess(e){let n=this._postprocess(e,this._utils);if(n!==rd){if(n.delete)for(let r of n.delete)delete e[r];if(n.override){let{knownKeys:r,unknownKeys:i}=this._partitionOptionKeys(n.override);for(let s of r){let o=n.override[s];this._applyValidation(o,s,this._utils.schemas[s]),e[s]=o;}for(let s of i){let o=n.override[s];this._applyUnknownHandler(s,o,e,(a,l)=>{let u=this._utils.schemas[a];this._applyValidation(l,a,u),e[a]=l;});}}}}},Pp;function zK(t,e,{logger:n=false,isCLI:r=false,passThrough:i=false,FlagSchema:s,descriptor:o}={}){if(r){if(!s)throw new Error("'FlagSchema' option is required.");if(!o)throw new Error("'descriptor' option is required.")}else o=_a;let a=i?Array.isArray(i)?(d,h)=>i.includes(d)?{[d]:h}:void 0:(d,h)=>({[d]:h}):(d,h,p)=>{let{_:m,...g}=p.schemas;return uA(d,h,{...p,schemas:g})},l=KK(e,{isCLI:r,FlagSchema:s}),u=new HK(l,{logger:n,unknown:a,descriptor:o}),c=n!==false;c&&Pp&&(u._hasDeprecationWarned=Pp);let f=u.normalize(t);return c&&(Pp=u._hasDeprecationWarned),f}function KK(t,{isCLI:e,FlagSchema:n}){let r=[];e&&r.push(SK.create({name:"_"}));for(let i of t)r.push(UK(i,{isCLI:e,optionInfos:t,FlagSchema:n})),i.alias&&e&&r.push(wK.create({name:i.alias,sourceName:i.name}));return r}function UK(t,{isCLI:e,optionInfos:n,FlagSchema:r}){let{name:i}=t,s={name:i},o,a={};switch(t.type){case "int":o=_K,e&&(s.preprocess=Number);break;case "string":o=TC;break;case "choice":o=LK,s.choices=t.choices.map(l=>l!=null&&l.redirect?{...l,redirect:{to:{key:t.name,value:l.redirect}}}:l);break;case "boolean":o=TK;break;case "flag":o=r,s.flags=n.flatMap(l=>[l.alias,l.description&&l.name,l.oppositeDescription&&`no-${l.name}`].filter(Boolean));break;case "path":o=TC;break;default:throw new Error(`Unexpected type ${t.type}`)}if(t.exception?s.validate=(l,u,c)=>t.exception(l)||u.validate(l,c):s.validate=(l,u,c)=>l===void 0||u.validate(l,c),t.redirect&&(a.redirect=l=>l?{to:typeof t.redirect=="string"?t.redirect:{key:t.redirect.option,value:t.redirect.value}}:void 0),t.deprecated&&(a.deprecated=true),e&&!t.array){let l=s.preprocess||(u=>u);s.preprocess=(u,c,f)=>c.preprocess(l(Array.isArray(u)?Jt(false,u,-1):u),f);}return t.array?AK.create({...e?{preprocess:l=>Array.isArray(l)?l:[l]}:{},...a,valueSchema:o.create(s)}):o.create({...s,...a})}var JK=zK,GK=(t,e,n)=>{if(!(t&&e==null)){if(e.findLast)return e.findLast(n);for(let r=e.length-1;r>=0;r--){let i=e[r];if(n(i,r,e))return i}}},fA=GK;function dA(t,e){if(!e)throw new Error("parserName is required.");let n=fA(false,t,i=>i.parsers&&Object.prototype.hasOwnProperty.call(i.parsers,e));if(n)return n;let r=`Couldn't resolve parser "${e}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new iA(r)}function XK(t,e){if(!e)throw new Error("astFormat is required.");let n=fA(false,t,i=>i.printers&&Object.prototype.hasOwnProperty.call(i.printers,e));if(n)return n;let r=`Couldn't find plugin for AST format "${e}".`;throw r+=" Plugins must be explicitly added to the standalone bundle.",new iA(r)}function hA({plugins:t,parser:e}){let n=dA(t,e);return pA(n,e)}function pA(t,e){let n=t.parsers[e];return typeof n=="function"?n():n}function YK(t,e){let n=t.printers[e];return typeof n=="function"?n():n}var kC={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function QK(t,e={}){var n;let r={...t};if(!r.parser)if(r.filepath){if(r.parser=vK(r,{physicalFile:r.filepath}),!r.parser)throw new mC(`No parser could be inferred for file "${r.filepath}".`)}else throw new mC("No parser and no file path given, couldn't infer a parser.");let i=sA({plugins:t.plugins,showDeprecated:true}).options,s={...kC,...Object.fromEntries(i.filter(d=>d.default!==void 0).map(d=>[d.name,d.default]))},o=dA(r.plugins,r.parser),a=await pA(o,r.parser);r.astFormat=a.astFormat,r.locEnd=a.locEnd,r.locStart=a.locStart;let l=(n=o.printers)!=null&&n[a.astFormat]?o:XK(r.plugins,a.astFormat),u=await YK(l,a.astFormat);r.printer=u;let c=l.defaultOptions?Object.fromEntries(Object.entries(l.defaultOptions).filter(([,d])=>d!==void 0)):{},f={...s,...c};for(let[d,h]of Object.entries(f))(r[d]===null||r[d]===void 0)&&(r[d]=h);return r.parser==="json"&&(r.trailingComma="none"),JK(r,i,{passThrough:Object.keys(kC),...e})}var Il=QK,ZK=wh(UH());async function eU(t,e){let n=await hA(e),r=n.preprocess?n.preprocess(t,e):t;e.originalText=r;let i;try{i=await n.parse(r,e,e);}catch(s){tU(s,t);}return {text:r,ast:i}}function tU(t,e){let{loc:n}=t;if(n){let r=(0, ZK.codeFrameColumns)(e,n,{highlightCode:true});throw t.message+=`
`+r,t.codeFrame=r,t}throw t}var Rc=eU;async function nU(t,e,n,r,i){let{embeddedLanguageFormatting:s,printer:{embed:o,hasPrettierIgnore:a=()=>false,getVisitorKeys:l}}=n;if(!o||s!=="auto")return;if(o.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let u=$h(o.getVisitorKeys??l),c=[];h();let f=t.stack;for(let{print:p,node:m,pathStack:g}of c)try{t.stack=g;let y=await p(d,e,t,n);y&&i.set(m,y);}catch(y){if(globalThis.PRETTIER_DEBUG)throw y}t.stack=f;function d(p,m){return rU(p,m,n,r)}function h(){let{node:p}=t;if(p===null||typeof p!="object"||a(t))return;for(let g of u(p))Array.isArray(p[g])?t.each(h,g):t.call(h,g);let m=o(t,n);if(m){if(typeof m=="function"){c.push({print:m,node:p,pathStack:[...t.stack]});return}i.set(p,m);}}}async function rU(t,e,n,r){let i=await Il({...n,...e,parentParser:n.parser,originalText:t},{passThrough:true}),{ast:s}=await Rc(t,i),o=await r(s,i);return WS(o)}function iU(t,e){let{originalText:n,[Symbol.for("comments")]:r,locStart:i,locEnd:s,[Symbol.for("printedComments")]:o}=e,{node:a}=t,l=i(a),u=s(a);for(let c of r)i(c)>=l&&s(c)<=u&&o.add(c);return n.slice(l,u)}var sU=iU;async function Mh(t,e){({ast:t}=await mA(t,e));let n=new Map,r=new Hz(t),i=new Map;await nU(r,o,e,Mh,i);let s=await BC(r,e,o,void 0,i);if(fK(e),e.nodeAfterCursor&&!e.nodeBeforeCursor)return [Ro,s];if(e.nodeBeforeCursor&&!e.nodeAfterCursor)return [s,Ro];return s;function o(l,u){return l===void 0||l===r?a(u):Array.isArray(l)?r.call(()=>a(u),...l):r.call(()=>a(u),l)}function a(l){let u=r.node;if(u==null)return "";let c=u&&typeof u=="object"&&l===void 0;if(c&&n.has(u))return n.get(u);let f=BC(r,e,o,l,i);return c&&n.set(u,f),f}}function BC(t,e,n,r,i){var s;let{node:o}=t,{printer:a}=e,l;switch((s=a.hasPrettierIgnore)!=null&&s.call(a,t)?l=sU(t,e):i.has(o)?l=i.get(o):l=a.print(t,e,n,r),o){case e.cursorNode:l=td(l,u=>[Ro,u,Ro]);break;case e.nodeBeforeCursor:l=td(l,u=>[u,Ro]);break;case e.nodeAfterCursor:l=td(l,u=>[Ro,u]);break}return a.printComment&&(!a.willPrintOwnComments||!a.willPrintOwnComments(t,e))&&(l=cK(t,l,e)),l}async function mA(t,e){let n=t.comments??[];e[Symbol.for("comments")]=n,e[Symbol.for("tokens")]=t.tokens??[],e[Symbol.for("printedComments")]=new Set,rK(t,e);let{printer:{preprocess:r}}=e;return t=r?await r(t,e):t,{ast:t,comments:n}}function oU(t,e){let{cursorOffset:n,locStart:r,locEnd:i}=e,s=$h(e.printer.getVisitorKeys),o=h=>r(h)<=n&&i(h)>=n,a=t,l=[t];for(let h of Uz(t,{getVisitorKeys:s,filter:o}))l.push(h),a=h;if(Jz(a,{getVisitorKeys:s}))return {cursorNode:a};let u,c,f=-1,d=Number.POSITIVE_INFINITY;for(;l.length>0&&(u===void 0||c===void 0);){a=l.pop();let h=u!==void 0,p=c!==void 0;for(let m of Oh(a,{getVisitorKeys:s})){if(!h){let g=i(m);g<=n&&g>f&&(u=m,f=g);}if(!p){let g=r(m);g>=n&&g<d&&(c=m,d=g);}}}return {nodeBeforeCursor:u,nodeAfterCursor:c}}var aU=oU;function lU(t,e){let{printer:{massageAstNode:n,getVisitorKeys:r}}=e;if(!n)return t;let i=$h(r),s=n.ignoredProperties??new Set;return o(t);function o(a,l){if(!(a!==null&&typeof a=="object"))return a;if(Array.isArray(a))return a.map(d=>o(d,l)).filter(Boolean);let u={},c=new Set(i(a));for(let d in a)!Object.prototype.hasOwnProperty.call(a,d)||s.has(d)||(c.has(d)?u[d]=o(a[d],a):u[d]=a[d]);let f=n(a,u,l);if(f!==null)return f??u}}var uU=lU,cU=(t,e,n)=>{if(!(t&&e==null)){if(e.findLastIndex)return e.findLastIndex(n);for(let r=e.length-1;r>=0;r--){let i=e[r];if(n(i,r,e))return r}return  -1}},fU=cU,dU=({parser:t})=>t==="json"||t==="json5"||t==="jsonc"||t==="json-stringify";function hU(t,e){let n=[t.node,...t.parentNodes],r=new Set([e.node,...e.parentNodes]);return n.find(i=>gA.has(i.type)&&r.has(i))}function OC(t){let e=fU(false,t,n=>n.type!=="Program"&&n.type!=="File");return e===-1?t:t.slice(0,e+1)}function pU(t,e,{locStart:n,locEnd:r}){let i=t.node,s=e.node;if(i===s)return {startNode:i,endNode:s};let o=n(t.node);for(let l of OC(e.parentNodes))if(n(l)>=o)s=l;else break;let a=r(e.node);for(let l of OC(t.parentNodes)){if(r(l)<=a)i=l;else break;if(i===s)break}return {startNode:i,endNode:s}}function Pg(t,e,n,r,i=[],s){let{locStart:o,locEnd:a}=n,l=o(t),u=a(t);if(!(e>u||e<l||s==="rangeEnd"&&e===l||s==="rangeStart"&&e===u)){for(let c of Ly(t,n)){let f=Pg(c,e,n,r,[t,...i],s);if(f)return f}if(!r||r(t,i[0]))return {node:t,parentNodes:i}}}function mU(t,e){return e!=="DeclareExportDeclaration"&&t!=="TypeParameterDeclaration"&&(t==="Directive"||t==="TypeAlias"||t==="TSExportAssignment"||t.startsWith("Declare")||t.startsWith("TSDeclare")||t.endsWith("Statement")||t.endsWith("Declaration"))}var gA=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),gU=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function $C(t,e,n){if(!e)return  false;switch(t.parser){case "flow":case "babel":case "babel-flow":case "babel-ts":case "typescript":case "acorn":case "espree":case "meriyah":case "__babel_estree":return mU(e.type,n==null?void 0:n.type);case "json":case "json5":case "jsonc":case "json-stringify":return gA.has(e.type);case "graphql":return gU.has(e.kind);case "vue":return e.tag!=="root"}return  false}function yU(t,e,n){let{rangeStart:r,rangeEnd:i,locStart:s,locEnd:o}=e;$g.ok(i>r);let a=t.slice(r,i).search(/\S/u),l=a===-1;if(!l)for(r+=a;i>r&&!/\S/u.test(t[i-1]);--i);let u=Pg(n,r,e,(h,p)=>$C(e,h,p),[],"rangeStart"),c=l?u:Pg(n,i,e,h=>$C(e,h),[],"rangeEnd");if(!u||!c)return {rangeStart:0,rangeEnd:0};let f,d;if(dU(e)){let h=hU(u,c);f=h,d=h;}else ({startNode:f,endNode:d}=pU(u,c,e));return {rangeStart:Math.min(s(f),s(d)),rangeEnd:Math.max(o(f),o(d))}}var yA="\uFEFF",MC=Symbol("cursor");async function vA(t,e,n=0){if(!t||t.trim().length===0)return {formatted:"",cursorOffset:-1,comments:[]};let{ast:r,text:i}=await Rc(t,e);e.cursorOffset>=0&&(e={...e,...aU(r,e)});let s=await Mh(r,e);n>0&&(s=GS([Wo,s],n,e.tabWidth));let o=Bh(s,e);if(n>0){let l=o.formatted.trim();o.cursorNodeStart!==void 0&&(o.cursorNodeStart-=o.formatted.indexOf(l),o.cursorNodeStart<0&&(o.cursorNodeStart=0,o.cursorNodeText=o.cursorNodeText.trimStart()),o.cursorNodeStart+o.cursorNodeText.length>l.length&&(o.cursorNodeText=o.cursorNodeText.trimEnd())),o.formatted=l+By(e.endOfLine);}let a=e[Symbol.for("comments")];if(e.cursorOffset>=0){let l,u,c,f;if((e.cursorNode||e.nodeBeforeCursor||e.nodeAfterCursor)&&o.cursorNodeText)if(c=o.cursorNodeStart,f=o.cursorNodeText,e.cursorNode)l=e.locStart(e.cursorNode),u=i.slice(l,e.locEnd(e.cursorNode));else {if(!e.nodeBeforeCursor&&!e.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");l=e.nodeBeforeCursor?e.locEnd(e.nodeBeforeCursor):0;let y=e.nodeAfterCursor?e.locStart(e.nodeAfterCursor):i.length;u=i.slice(l,y);}else l=0,u=i,c=0,f=o.formatted;let d=e.cursorOffset-l;if(u===f)return {formatted:o.formatted,cursorOffset:c+d,comments:a};let h=u.split("");h.splice(d,0,MC);let p=f.split(""),m=tz(h,p),g=c;for(let y of m)if(y.removed){if(y.value.includes(MC))break}else g+=y.count;return {formatted:o.formatted,cursorOffset:g,comments:a}}return {formatted:o.formatted,cursorOffset:-1,comments:a}}async function vU(t,e){let{ast:n,text:r}=await Rc(t,e),{rangeStart:i,rangeEnd:s}=yU(r,e,n),o=r.slice(i,s),a=Math.min(i,r.lastIndexOf(`
`,i)+1),l=r.slice(a,i).match(/^\s*/u)[0],u=Ny(l,e.tabWidth),c=await vA(o,{...e,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:e.cursorOffset>i&&e.cursorOffset<=s?e.cursorOffset-i:-1,endOfLine:"lf"},u),f=c.formatted.trimEnd(),{cursorOffset:d}=e;d>s?d+=f.length-o.length:c.cursorOffset>=0&&(d=c.cursorOffset+i);let h=r.slice(0,i)+f+r.slice(s);if(e.endOfLine!=="lf"){let p=By(e.endOfLine);d>=0&&p===`\r
`&&(d+=VS(h.slice(0,d),`
`)),h=Sh(false,h,`
`,p);}return {formatted:h,cursorOffset:d,comments:c.comments}}function Np(t,e,n){return typeof e!="number"||Number.isNaN(e)||e<0||e>t.length?n:e}function PC(t,e){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=e;return n=Np(t,n,-1),r=Np(t,r,0),i=Np(t,i,t.length),{...e,cursorOffset:n,rangeStart:r,rangeEnd:i}}function DA(t,e){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:s}=PC(t,e),o=t.charAt(0)===yA;if(o&&(t=t.slice(1),n--,r--,i--),s==="auto"&&(s=nz(t)),t.includes("\r")){let a=l=>VS(t.slice(0,Math.max(l,0)),`\r
`);n-=a(n),r-=a(r),i-=a(i),t=rz(t);}return {hasBOM:o,text:t,options:PC(t,{...e,cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:s})}}async function NC(t,e){let n=await hA(e);return !n.hasPragma||n.hasPragma(t)}async function bA(t,e){let{hasBOM:n,text:r,options:i}=DA(t,await Il(e));if(i.rangeStart>=i.rangeEnd&&r!==""||i.requirePragma&&!await NC(r,i))return {formatted:t,cursorOffset:e.cursorOffset,comments:[]};let s;return i.rangeStart>0||i.rangeEnd<r.length?s=await vU(r,i):(!i.requirePragma&&i.insertPragma&&i.printer.insertPragma&&!await NC(r,i)&&(r=i.printer.insertPragma(r)),s=await vA(r,i)),n&&(s.formatted=yA+s.formatted,s.cursorOffset>=0&&s.cursorOffset++),s}async function DU(t,e,n){let{text:r,options:i}=DA(t,await Il(e)),s=await Rc(r,i);return n&&(n.preprocessForPrint&&(s.ast=await mA(s.ast,i)),n.massage&&(s.ast=uU(s.ast,i))),s}async function bU(t,e){e=await Il(e);let n=await Mh(t,e);return Bh(n,e)}async function CU(t,e){let n=Mz(t),{formatted:r}=await bA(n,{...e,parser:"__js_expression"});return r}async function xU(t,e){e=await Il(e);let{ast:n}=await Rc(t,e);return Mh(n,e)}async function EU(t,e){return Bh(t,await Il(e))}var CA={};Ay(CA,{builders:()=>FU,printer:()=>wU,utils:()=>SU});var FU={join:JS,line:KS,softline:Oz,hardline:Wo,literalline:US,group:HS,conditionalGroup:wz,fill:Sz,lineSuffix:Ag,lineSuffixBoundary:kz,cursor:Ro,breakParent:kh,ifBreak:Az,trim:Bz,indent:zd,indentIfBreak:Tz,align:vl,addAlignmentToDoc:GS,markAsRoot:Ez,dedentToRoot:xz,dedent:Fz,hardlineWithoutBreakParent:My,literallineWithoutBreakParent:zS,label:$z,concat:t=>t},wU={printDocToString:Bh},SU={willBreak:fz,traverseDoc:Oy,findInDoc:$y,mapDoc:Th,removeLines:pz,stripTrailingHardline:WS,replaceEndOfLine:yz,canBreak:Dz},AU="3.5.3",xA={};Ay(xA,{addDanglingComment:()=>Fo,addLeadingComment:()=>La,addTrailingComment:()=>Ra,getAlignmentSize:()=>Ny,getIndentSize:()=>MU,getMaxContinuousCount:()=>IU,getNextNonSpaceNonCommentCharacter:()=>RU,getNextNonSpaceNonCommentCharacterIndex:()=>JU,getPreferredQuote:()=>jU,getStringWidth:()=>Py,hasNewline:()=>Gs,hasNewlineInRange:()=>qU,hasSpaces:()=>HU,isNextLineEmpty:()=>QU,isNextLineEmptyAfterIndex:()=>qy,isPreviousLineEmpty:()=>XU,makeString:()=>KU,skip:()=>Lc,skipEverythingButNewLine:()=>ZS,skipInlineComment:()=>_y,skipNewline:()=>Qo,skipSpaces:()=>ro,skipToLineEnd:()=>QS,skipTrailingComment:()=>jy,skipWhitespace:()=>Gz});function TU(t,e){if(e===false)return  false;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let n=e+2;n<t.length;++n)if(t.charAt(n)==="*"&&t.charAt(n+1)==="/")return n+2}return e}var _y=TU;function kU(t,e){return e===false?false:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?ZS(t,e):e}var jy=kU;function BU(t,e){let n=null,r=e;for(;r!==n;)n=r,r=ro(t,r),r=_y(t,r),r=jy(t,r),r=Qo(t,r);return r}var Vy=BU;function OU(t,e){let n=null,r=e;for(;r!==n;)n=r,r=QS(t,r),r=_y(t,r),r=ro(t,r);return r=jy(t,r),r=Qo(t,r),r!==false&&Gs(t,r)}var qy=OU;function $U(t,e){let n=t.lastIndexOf(`
`);return n===-1?0:Ny(t.slice(n+1).match(/^[\t ]*/u)[0],e)}var MU=$U;function PU(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function NU(t,e){let n=t.match(new RegExp(`(${PU(e)})+`,"gu"));return n===null?0:n.reduce((r,i)=>Math.max(r,i.length/e.length),0)}var IU=NU;function LU(t,e){let n=Vy(t,e);return n===false?"":t.charAt(n)}var RU=LU,Bf="'",IC='"';function _U(t,e){let n=e===true||e===Bf?Bf:IC,r=n===Bf?IC:Bf,i=0,s=0;for(let o of t)o===n?i++:o===r&&s++;return i>s?r:n}var jU=_U;function VU(t,e,n){for(let r=e;r<n;++r)if(t.charAt(r)===`
`)return  true;return  false}var qU=VU;function WU(t,e,n={}){return ro(t,n.backwards?e-1:e,n)!==e}var HU=WU;function zU(t,e,n){let r=e==='"'?"'":'"',i=Sh(false,t,/\\(.)|(["'])/gsu,(s,o,a)=>o===r?o:a===e?"\\"+a:a||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(o)?o:"\\"+o));return e+i+e}var KU=zU;function UU(t,e,n){return Vy(t,n(e))}function JU(t,e){return arguments.length===2||typeof e=="number"?Vy(t,e):UU(...arguments)}function GU(t,e,n){return Ry(t,n(e))}function XU(t,e){return arguments.length===2||typeof e=="number"?Ry(t,e):GU(...arguments)}function YU(t,e,n){return qy(t,n(e))}function QU(t,e){return arguments.length===2||typeof e=="number"?qy(t,e):YU(...arguments)}function Bo(t,e=1){return async(...n)=>{let r=n[e]??{},i=r.plugins??[];return n[e]={...r,plugins:Array.isArray(i)?i:Object.values(i)},t(...n)}}var EA=Bo(bA);async function Wy(t,e){let{formatted:n}=await EA(t,{...e,cursorOffset:-1});return n}async function ZU(t,e){return await Wy(t,e)===t}var eJ=Bo(sA,0),tJ={parse:Bo(DU),formatAST:Bo(bU),formatDoc:Bo(CU),printToDoc:Bo(xU),printDocToString:Bo(EU)},nJ=Object.defineProperty,FA=t=>{throw TypeError(t)},Ph=(t,e)=>{for(var n in e)nJ(t,n,{get:e[n],enumerable:true});},wA=(t,e,n)=>e.has(t)||FA("Cannot "+n),$s=(t,e,n)=>(wA(t,e,"read from private field"),e.get(t)),rJ=(t,e,n)=>e.has(t)?FA("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),iJ=(t,e,n,r)=>(wA(t,e,"write to private field"),e.set(t,n),n),SA={};Ph(SA,{languages:()=>pee,options:()=>dee,printers:()=>hee});var sJ=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}],AA={};Ph(AA,{canAttachComment:()=>dX,embed:()=>ZX,experimentalFeatures:()=>ree,getCommentChildNodes:()=>hX,getVisitorKeys:()=>OA,handleComments:()=>YA,insertPragma:()=>dY,isBlockComment:()=>Or,isGap:()=>pX,massageAstNode:()=>cG,print:()=>nee,printComment:()=>BG,willPrintOwnComments:()=>lT});var oJ=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},rn=oJ,aJ=(t,e,n)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},ut=aJ;function lJ(t){return t!==null&&typeof t=="object"}var uJ=lJ;function*cJ(t,e){let{getVisitorKeys:n,filter:r=()=>true}=e,i=s=>uJ(s)&&r(s);for(let s of n(t)){let o=t[s];if(Array.isArray(o))for(let a of o)i(a)&&(yield a);else i(o)&&(yield o);}}function*fJ(t,e){let n=[t];for(let r=0;r<n.length;r++){let i=n[r];for(let s of cJ(i,e))yield s,n.push(s);}}function dJ(t,{getVisitorKeys:e,predicate:n}){for(let r of fJ(t,{getVisitorKeys:e}))if(n(r))return  true;return  false}var hJ=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function pJ(t){return t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510}function mJ(t){return t>=4352&&t<=4447||t===8986||t===8987||t===9001||t===9002||t>=9193&&t<=9196||t===9200||t===9203||t===9725||t===9726||t===9748||t===9749||t>=9776&&t<=9783||t>=9800&&t<=9811||t===9855||t>=9866&&t<=9871||t===9875||t===9889||t===9898||t===9899||t===9917||t===9918||t===9924||t===9925||t===9934||t===9940||t===9962||t===9970||t===9971||t===9973||t===9978||t===9981||t===9989||t===9994||t===9995||t===10024||t===10060||t===10062||t>=10067&&t<=10069||t===10071||t>=10133&&t<=10135||t===10160||t===10175||t===11035||t===11036||t===11088||t===11093||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12773||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||t===94192||t===94193||t>=94208&&t<=100343||t>=100352&&t<=101589||t>=101631&&t<=101640||t>=110576&&t<=110579||t>=110581&&t<=110587||t===110589||t===110590||t>=110592&&t<=110882||t===110898||t>=110928&&t<=110930||t===110933||t>=110948&&t<=110951||t>=110960&&t<=111355||t>=119552&&t<=119638||t>=119648&&t<=119670||t===126980||t===127183||t===127374||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t===127568||t===127569||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||t===127988||t>=127992&&t<=128062||t===128064||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||t===128378||t===128405||t===128406||t===128420||t>=128507&&t<=128591||t>=128640&&t<=128709||t===128716||t>=128720&&t<=128722||t>=128725&&t<=128727||t>=128732&&t<=128735||t===128747||t===128748||t>=128756&&t<=128764||t>=128992&&t<=129003||t===129008||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129673||t>=129679&&t<=129734||t>=129742&&t<=129756||t>=129759&&t<=129769||t>=129776&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141}var gJ=t=>!(pJ(t)||mJ(t)),yJ=/[^\x20-\x7F]/u;function vJ(t){if(!t)return 0;if(!yJ.test(t))return t.length;t=t.replace(hJ(),"  ");let e=0;for(let n of t){let r=n.codePointAt(0);r<=31||r>=127&&r<=159||r>=768&&r<=879||(e+=gJ(r)?1:2);}return e}var Dl=vJ;function Hy(t){return (e,n,r)=>{let i=!!(r!=null&&r.backwards);if(n===false)return  false;let{length:s}=e,o=n;for(;o>=0&&o<s;){let a=e.charAt(o);if(t instanceof RegExp){if(!t.test(a))return o}else if(!t.includes(a))return o;i?o--:o++;}return o===-1||o===s?o:false}}var bl=Hy(" 	"),DJ=Hy(",; 	"),bJ=Hy(/[^\n\r]/u);function CJ(t,e,n){let r=!!(n!=null&&n.backwards);if(e===false)return  false;let i=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&i===`
`)return e-2;if(i===`
`||i==="\r"||i==="\u2028"||i==="\u2029")return e-1}else {if(i==="\r"&&t.charAt(e+1)===`
`)return e+2;if(i===`
`||i==="\r"||i==="\u2028"||i==="\u2029")return e+1}return e}var Cl=CJ;function xJ(t,e,n={}){let r=bl(t,n.backwards?e-1:e,n),i=Cl(t,r,n);return r!==i}var cr=xJ;function EJ(t,e){if(e===false)return  false;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let n=e+2;n<t.length;++n)if(t.charAt(n)==="*"&&t.charAt(n+1)==="/")return n+2}return e}var zy=EJ;function FJ(t,e){return e===false?false:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?bJ(t,e):e}var Ky=FJ;function wJ(t,e){let n=null,r=e;for(;r!==n;)n=r,r=DJ(t,r),r=zy(t,r),r=bl(t,r);return r=Ky(t,r),r=Cl(t,r),r!==false&&cr(t,r)}var Uy=wJ;function SJ(t){return Array.isArray(t)&&t.length>0}var it=SJ,TA=new Proxy(()=>{},{get:()=>TA}),Jy=TA,Of="'",LC='"';function AJ(t,e){let n=e===true||e===Of?Of:LC,r=n===Of?LC:Of,i=0,s=0;for(let o of t)o===n?i++:o===r&&s++;return i>s?r:n}var kA=AJ;function TJ(t,e,n){let r=e==='"'?"'":'"',i=rn(false,t,/\\(.)|(["'])/gsu,(s,o,a)=>o===r?o:a===e?"\\"+a:a||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(o)?o:"\\"+o));return e+i+e}var kJ=TJ;function BJ(t,e){Jy.ok(/^(?<quote>["']).*\k<quote>$/su.test(t));let n=t.slice(1,-1),r=e.parser==="json"||e.parser==="jsonc"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":kA(n,e.singleQuote);return t.charAt(0)===r?t:kJ(n,r,false)}var xl=BJ;function Mt(t){var e,n,r;let i=((e=t.range)==null?void 0:e[0])??t.start,s=(r=((n=t.declaration)==null?void 0:n.decorators)??t.decorators)==null?void 0:r[0];return s?Math.min(Mt(s),i):i}function Je(t){var e;return ((e=t.range)==null?void 0:e[1])??t.end}function Nh(t,e){let n=Mt(t);return Number.isInteger(n)&&n===Mt(e)}function OJ(t,e){let n=Je(t);return Number.isInteger(n)&&n===Je(e)}function $J(t,e){return Nh(t,e)&&OJ(t,e)}var eu=null;function Su(t){if(eu!==null&&typeof eu.property){let e=eu;return eu=Su.prototype=null,e}return eu=Su.prototype=t??Object.create(null),new Su}var MJ=10;for(let t=0;t<=MJ;t++)Su();function PJ(t){return Su(t)}function NJ(t,e="type"){PJ(t);function n(r){let i=r[e],s=t[i];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:r});return s}return n}var BA=NJ,IJ={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeParameters","typeArguments","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumBody:["members"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","options","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]},LJ=BA(IJ),OA=LJ;function RJ(t){let e=new Set(t);return n=>e.has(n==null?void 0:n.type)}var lt=RJ,_J=lt(["Block","CommentBlock","MultiLine"]),Or=_J,jJ=lt(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),$A=jJ;function VJ(t,e){let n=e.split(".");for(let r=n.length-1;r>=0;r--){let i=n[r];if(r===0)return t.type==="Identifier"&&t.name===i;if(t.type!=="MemberExpression"||t.optional||t.computed||t.property.type!=="Identifier"||t.property.name!==i)return  false;t=t.object;}}function qJ(t,e){return e.some(n=>VJ(t,n))}var WJ=qJ;function HJ({type:t}){return t.startsWith("TS")&&t.endsWith("Keyword")}var MA=HJ;function Ng(t,e){return e(t)||dJ(t,{getVisitorKeys:OA,predicate:e})}function Gy(t){return t.type==="AssignmentExpression"||t.type==="BinaryExpression"||t.type==="LogicalExpression"||t.type==="NGPipeExpression"||t.type==="ConditionalExpression"||tt(t)||Pt(t)||t.type==="SequenceExpression"||t.type==="TaggedTemplateExpression"||t.type==="BindExpression"||t.type==="UpdateExpression"&&!t.prefix||xi(t)||t.type==="TSNonNullExpression"||t.type==="ChainExpression"}function zJ(t){return t.expressions?t.expressions[0]:t.left??t.test??t.callee??t.object??t.tag??t.argument??t.expression}function PA(t){if(t.expressions)return ["expressions",0];if(t.left)return ["left"];if(t.test)return ["test"];if(t.object)return ["object"];if(t.callee)return ["callee"];if(t.tag)return ["tag"];if(t.argument)return ["argument"];if(t.expression)return ["expression"];throw new Error("Unexpected node has no left side.")}var Ll=lt(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),KJ=lt(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),cn=lt(["ArrayExpression","TupleExpression"]),Qr=lt(["ObjectExpression","RecordExpression"]);function UJ(t){return t.type==="LogicalExpression"&&t.operator==="??"}function is(t){return t.type==="NumericLiteral"||t.type==="Literal"&&typeof t.value=="number"}function NA(t){return t.type==="UnaryExpression"&&(t.operator==="+"||t.operator==="-")&&is(t.argument)}function Qn(t){return !!(t&&(t.type==="StringLiteral"||t.type==="Literal"&&typeof t.value=="string"))}function IA(t){return t.type==="RegExpLiteral"||t.type==="Literal"&&!!t.regex}var Xy=lt(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),JJ=lt(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),io=lt(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),uc=lt(["FunctionExpression","ArrowFunctionExpression"]);function GJ(t){return t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement"}function Ip(t){return tt(t)&&t.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(t.callee.name)}var Yt=lt(["JSXElement","JSXFragment"]);function Ih(t){return t.method&&t.kind==="init"||t.kind==="get"||t.kind==="set"}function LA(t){return (t.type==="ObjectTypeProperty"||t.type==="ObjectTypeInternalSlot")&&!t.static&&!t.method&&t.kind!=="get"&&t.kind!=="set"&&t.value.type==="FunctionTypeAnnotation"}function XJ(t){return (t.type==="TypeAnnotation"||t.type==="TSTypeAnnotation")&&t.typeAnnotation.type==="FunctionTypeAnnotation"&&!t.static&&!Nh(t,t.typeAnnotation)}var ss=lt(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function Oa(t){return Pt(t)||t.type==="BindExpression"&&!!t.object}var YJ=lt(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function Yy(t){return MA(t)||$A(t)||YJ(t)||(t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference")&&!t.typeParameters&&!t.typeArguments}function QJ(t){return t.type==="Identifier"&&(t.name==="beforeEach"||t.name==="beforeAll"||t.name==="afterEach"||t.name==="afterAll")}var ZJ=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function eG(t){return WJ(t,ZJ)}function Lh(t,e){if((t==null?void 0:t.type)!=="CallExpression"||t.optional)return  false;let n=$r(t);if(n.length===1){if(Ip(t)&&Lh(e))return uc(n[0]);if(QJ(t.callee))return Ip(n[0])}else if((n.length===2||n.length===3)&&(n[0].type==="TemplateLiteral"||Qn(n[0]))&&eG(t.callee))return n[2]&&!is(n[2])?false:(n.length===2?uc(n[1]):GJ(n[1])&&vn(n[1]).length<=1)||Ip(n[1]);return  false}var RA=t=>e=>((e==null?void 0:e.type)==="ChainExpression"&&(e=e.expression),t(e)),tt=RA(lt(["CallExpression","OptionalCallExpression"])),Pt=RA(lt(["MemberExpression","OptionalMemberExpression"]));function RC(t,e=5){return _A(t,e)<=e}function _A(t,e){let n=0;for(let r in t){let i=t[r];if(i&&typeof i=="object"&&typeof i.type=="string"&&(n++,n+=_A(i,e-n)),n>e)return n}return n}var tG=.25;function Qy(t,e){let{printWidth:n}=e;if(se(t))return  false;let r=n*tG;if(t.type==="ThisExpression"||t.type==="Identifier"&&t.name.length<=r||NA(t)&&!se(t.argument))return  true;let i=t.type==="Literal"&&"regex"in t&&t.regex.pattern||t.type==="RegExpLiteral"&&t.pattern;return i?i.length<=r:Qn(t)?xl(Ar(t),e).length<=r:t.type==="TemplateLiteral"?t.expressions.length===0&&t.quasis[0].value.raw.length<=r&&!t.quasis[0].value.raw.includes(`
`):t.type==="UnaryExpression"?Qy(t.argument,{printWidth:n}):t.type==="CallExpression"&&t.arguments.length===0&&t.callee.type==="Identifier"?t.callee.name.length<=r-2:Xy(t)}function so(t,e){return Yt(e)?Rh(e):se(e,pe.Leading,n=>cr(t,Je(n)))}function _C(t){return t.quasis.some(e=>e.value.raw.includes(`
`))}function jA(t,e){return (t.type==="TemplateLiteral"&&_C(t)||t.type==="TaggedTemplateExpression"&&_C(t.quasi))&&!cr(e,Mt(t),{backwards:true})}function VA(t){if(!se(t))return  false;let e=ut(false,Ya(t,pe.Dangling),-1);return e&&!Or(e)}function nG(t){if(t.length<=1)return  false;let e=0;for(let n of t)if(uc(n)){if(e+=1,e>1)return  true}else if(tt(n)){for(let r of $r(n))if(uc(r))return  true}return  false}function qA(t){let{node:e,parent:n,key:r}=t;return r==="callee"&&tt(e)&&tt(n)&&n.arguments.length>0&&e.arguments.length>n.arguments.length}var rG=new Set(["!","-","+","~"]);function Rr(t,e=2){if(e<=0)return  false;if(t.type==="ChainExpression"||t.type==="TSNonNullExpression")return Rr(t.expression,e);let n=r=>Rr(r,e-1);if(IA(t))return Dl(t.pattern??t.regex.pattern)<=5;if(Xy(t)||JJ(t)||t.type==="ArgumentPlaceholder")return  true;if(t.type==="TemplateLiteral")return t.quasis.every(r=>!r.value.raw.includes(`
`))&&t.expressions.every(n);if(Qr(t))return t.properties.every(r=>!r.computed&&(r.shorthand||r.value&&n(r.value)));if(cn(t))return t.elements.every(r=>r===null||n(r));if(El(t)){if(t.type==="ImportExpression"||Rr(t.callee,e)){let r=$r(t);return r.length<=e&&r.every(n)}return  false}return Pt(t)?Rr(t.object,e)&&Rr(t.property,e):t.type==="UnaryExpression"&&rG.has(t.operator)||t.type==="UpdateExpression"?Rr(t.argument,e):false}function Ar(t){var e;return ((e=t.extra)==null?void 0:e.raw)??t.raw}function iG(t){return t}function bs(t,e="es5"){return t.trailingComma==="es5"&&e==="es5"||t.trailingComma==="all"&&(e==="all"||e==="es5")}function Fn(t,e){switch(t.type){case "BinaryExpression":case "LogicalExpression":case "AssignmentExpression":case "NGPipeExpression":return Fn(t.left,e);case "MemberExpression":case "OptionalMemberExpression":return Fn(t.object,e);case "TaggedTemplateExpression":return t.tag.type==="FunctionExpression"?false:Fn(t.tag,e);case "CallExpression":case "OptionalCallExpression":return t.callee.type==="FunctionExpression"?false:Fn(t.callee,e);case "ConditionalExpression":return Fn(t.test,e);case "UpdateExpression":return !t.prefix&&Fn(t.argument,e);case "BindExpression":return t.object&&Fn(t.object,e);case "SequenceExpression":return Fn(t.expressions[0],e);case "ChainExpression":case "TSSatisfiesExpression":case "TSAsExpression":case "TSNonNullExpression":case "AsExpression":case "AsConstExpression":case "SatisfiesExpression":return Fn(t.expression,e);default:return e(t)}}var jC={"==":true,"!=":true,"===":true,"!==":true},$f={"*":true,"/":true,"%":true},Ig={">>":true,">>>":true,"<<":true};function Zy(t,e){return !(Kd(e)!==Kd(t)||t==="**"||jC[t]&&jC[e]||e==="%"&&$f[t]||t==="%"&&$f[e]||e!==t&&$f[e]&&$f[t]||Ig[t]&&Ig[e])}var sG=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((t,e)=>t.map(n=>[n,e])));function Kd(t){return sG.get(t)}function oG(t){return !!Ig[t]||t==="|"||t==="^"||t==="&"}function aG(t){var e;if(t.rest)return  true;let n=vn(t);return ((e=ut(false,n,-1))==null?void 0:e.type)==="RestElement"}var Lp=new WeakMap;function vn(t){if(Lp.has(t))return Lp.get(t);let e=[];return t.this&&e.push(t.this),Array.isArray(t.parameters)?e.push(...t.parameters):Array.isArray(t.params)&&e.push(...t.params),t.rest&&e.push(t.rest),Lp.set(t,e),e}function lG(t,e){let{node:n}=t,r=0,i=s=>e(s,r++);n.this&&t.call(i,"this"),Array.isArray(n.parameters)?t.each(i,"parameters"):Array.isArray(n.params)&&t.each(i,"params"),n.rest&&t.call(i,"rest");}var Rp=new WeakMap;function $r(t){if(Rp.has(t))return Rp.get(t);if(t.type==="ChainExpression")return $r(t.expression);let e=t.arguments;return t.type==="ImportExpression"&&(e=[t.source],t.options&&e.push(t.options)),Rp.set(t,e),e}function Ud(t,e){let{node:n}=t;if(n.type==="ChainExpression")return t.call(()=>Ud(t,e),"expression");n.type==="ImportExpression"?(t.call(r=>e(r,0),"source"),n.options&&t.call(r=>e(r,1),"options")):t.each(e,"arguments");}function VC(t,e){let n=[];if(t.type==="ChainExpression"&&(t=t.expression,n.push("expression")),t.type==="ImportExpression"){if(e===0||e===(t.options?-2:-1))return [...n,"source"];if(t.options&&(e===1||e===-1))return [...n,"options"];throw new RangeError("Invalid argument index")}if(e<0&&(e=t.arguments.length+e),e<0||e>=t.arguments.length)throw new RangeError("Invalid argument index");return [...n,"arguments",e]}function Jd(t){return t.value.trim()==="prettier-ignore"&&!t.unignore}function Rh(t){return (t==null?void 0:t.prettierIgnore)||se(t,pe.PrettierIgnore)}var pe={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},WA=(t,e)=>{if(typeof t=="function"&&(e=t,t=0),t||e)return (n,r,i)=>!(t&pe.Leading&&!n.leading||t&pe.Trailing&&!n.trailing||t&pe.Dangling&&(n.leading||n.trailing)||t&pe.Block&&!Or(n)||t&pe.Line&&!Ll(n)||t&pe.First&&r!==0||t&pe.Last&&r!==i.length-1||t&pe.PrettierIgnore&&!Jd(n)||e&&!e(n))};function se(t,e,n){if(!it(t==null?void 0:t.comments))return  false;let r=WA(e,n);return r?t.comments.some(r):true}function Ya(t,e,n){if(!Array.isArray(t==null?void 0:t.comments))return [];let r=WA(e,n);return r?t.comments.filter(r):t.comments}var Cs=(t,{originalText:e})=>Uy(e,Je(t));function El(t){return tt(t)||t.type==="NewExpression"||t.type==="ImportExpression"}function xs(t){return t&&(t.type==="ObjectProperty"||t.type==="Property"&&!Ih(t))}var xi=lt(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),oo=lt(["TSUnionType","UnionTypeAnnotation"]),ev=lt(["TSIntersectionType","IntersectionTypeAnnotation"]),ao=lt(["TSConditionalType","ConditionalTypeAnnotation"]),uG=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),wa=t=>{for(let e of t.quasis)delete e.value;};function HA(t,e,n){var r,i;if(t.type==="Program"&&delete e.sourceType,(t.type==="BigIntLiteral"||t.type==="BigIntLiteralTypeAnnotation")&&t.value&&(e.value=t.value.toLowerCase()),(t.type==="BigIntLiteral"||t.type==="Literal")&&t.bigint&&(e.bigint=t.bigint.toLowerCase()),t.type==="EmptyStatement"||t.type==="JSXText"||t.type==="JSXExpressionContainer"&&(t.expression.type==="Literal"||t.expression.type==="StringLiteral")&&t.expression.value===" ")return null;if((t.type==="Property"||t.type==="ObjectProperty"||t.type==="MethodDefinition"||t.type==="ClassProperty"||t.type==="ClassMethod"||t.type==="PropertyDefinition"||t.type==="TSDeclareMethod"||t.type==="TSPropertySignature"||t.type==="ObjectTypeProperty"||t.type==="ImportAttribute")&&t.key&&!t.computed){let{key:o}=t;Qn(o)||is(o)?e.key=String(o.value):o.type==="Identifier"&&(e.key=o.name);}if(t.type==="JSXElement"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(o=>o.type==="JSXAttribute"&&o.name.name==="jsx"))for(let{type:o,expression:a}of e.children)o==="JSXExpressionContainer"&&a.type==="TemplateLiteral"&&wa(a);t.type==="JSXAttribute"&&t.name.name==="css"&&t.value.type==="JSXExpressionContainer"&&t.value.expression.type==="TemplateLiteral"&&wa(e.value.expression),t.type==="JSXAttribute"&&((r=t.value)==null?void 0:r.type)==="Literal"&&/["']|&quot;|&apos;/u.test(t.value.value)&&(e.value.value=rn(false,t.value.value,/["']|&quot;|&apos;/gu,'"'));let s=t.expression||t.callee;if(t.type==="Decorator"&&s.type==="CallExpression"&&s.callee.name==="Component"&&s.arguments.length===1){let o=t.expression.arguments[0].properties;for(let[a,l]of e.expression.arguments[0].properties.entries())switch(o[a].key.name){case "styles":cn(l.value)&&wa(l.value.elements[0]);break;case "template":l.value.type==="TemplateLiteral"&&wa(l.value);break}}t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"||t.tag.name==="css"||t.tag.name==="md"||t.tag.name==="markdown"||t.tag.name==="html")||t.tag.type==="CallExpression")&&wa(e.quasi),t.type==="TemplateLiteral"&&((i=t.leadingComments)!=null&&i.some(o=>Or(o)&&["GraphQL","HTML"].some(a=>o.value===` ${a} `))||n.type==="CallExpression"&&n.callee.name==="graphql"||!t.leadingComments)&&wa(e),t.type==="ChainExpression"&&t.expression.type==="TSNonNullExpression"&&(e.type="TSNonNullExpression",e.expression.type="ChainExpression"),t.type==="TSMappedType"&&(delete e.key,delete e.constraint),t.type==="TSEnumDeclaration"&&delete e.body;}HA.ignoredProperties=uG;var cG=HA,la="string",os="array",Rl="cursor",ua="indent",ca="align",fa="trim",Tr="group",yo="fill",wi="if-break",da="indent-if-break",ha="line-suffix",vo="line-suffix-boundary",er="line",Es="label",Fs="break-parent",zA=new Set([Rl,ua,ca,fa,Tr,yo,wi,da,ha,vo,er,Es,Fs]);function fG(t){if(typeof t=="string")return la;if(Array.isArray(t))return os;if(!t)return;let{type:e}=t;if(zA.has(e))return e}var Do=fG,dG=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function hG(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return `Unexpected doc '${e}', 
Expected it to be 'string' or 'object'.`;if(Do(t))throw new Error("doc is valid.");let n=Object.prototype.toString.call(t);if(n!=="[object Object]")return `Unexpected doc '${n}'.`;let r=dG([...zA].map(i=>`'${i}'`));return `Unexpected doc.type '${t.type}'.
Expected it to be ${r}.`}var pG=class extends Error{constructor(e){super(hG(e));le(this,"name","InvalidDocError");this.doc=e;}},cc=pG,qC={};function mG(t,e,n,r){let i=[t];for(;i.length>0;){let s=i.pop();if(s===qC){n(i.pop());continue}n&&i.push(s,qC);let o=Do(s);if(!o)throw new cc(s);if((e==null?void 0:e(s))!==false)switch(o){case os:case yo:{let a=o===os?s:s.parts;for(let l=a.length,u=l-1;u>=0;--u)i.push(a[u]);break}case wi:i.push(s.flatContents,s.breakContents);break;case Tr:if(r&&s.expandedStates)for(let a=s.expandedStates.length,l=a-1;l>=0;--l)i.push(s.expandedStates[l]);else i.push(s.contents);break;case ca:case ua:case da:case Es:case ha:i.push(s.contents);break;case la:case Rl:case fa:case vo:case er:case Fs:break;default:throw new cc(s)}}}var tv=mG;function _l(t,e){if(typeof t=="string")return e(t);let n=new Map;return r(t);function r(s){if(n.has(s))return n.get(s);let o=i(s);return n.set(s,o),o}function i(s){switch(Do(s)){case os:return e(s.map(r));case yo:return e({...s,parts:s.parts.map(r)});case wi:return e({...s,breakContents:r(s.breakContents),flatContents:r(s.flatContents)});case Tr:{let{expandedStates:o,contents:a}=s;return o?(o=o.map(r),a=o[0]):a=r(a),e({...s,contents:a,expandedStates:o})}case ca:case ua:case da:case Es:case ha:return e({...s,contents:r(s.contents)});case la:case Rl:case fa:case vo:case er:case Fs:return e(s);default:throw new cc(s)}}}function KA(t,e,n){let r=n,i=false;function s(o){if(i)return  false;let a=e(o);a!==void 0&&(i=true,r=a);}return tv(t,s),r}function gG(t){if(t.type===Tr&&t.break||t.type===er&&t.hard||t.type===Fs)return  true}function An(t){return KA(t,gG,false)}function WC(t){if(t.length>0){let e=ut(false,t,-1);!e.expandedStates&&!e.break&&(e.break="propagated");}return null}function yG(t){let e=new Set,n=[];function r(s){if(s.type===Fs&&WC(n),s.type===Tr){if(n.push(s),e.has(s))return  false;e.add(s);}}function i(s){s.type===Tr&&n.pop().break&&WC(n);}tv(t,r,i,true);}function vG(t){return t.type===er&&!t.hard?t.soft?"":" ":t.type===wi?t.flatContents:t}function Lg(t){return _l(t,vG)}function DG(t){switch(Do(t)){case yo:if(t.parts.every(e=>e===""))return "";break;case Tr:if(!t.contents&&!t.id&&!t.break&&!t.expandedStates)return "";if(t.contents.type===Tr&&t.contents.id===t.id&&t.contents.break===t.break&&t.contents.expandedStates===t.expandedStates)return t.contents;break;case ca:case ua:case da:case ha:if(!t.contents)return "";break;case wi:if(!t.flatContents&&!t.breakContents)return "";break;case os:{let e=[];for(let n of t){if(!n)continue;let[r,...i]=Array.isArray(n)?n:[n];typeof r=="string"&&typeof ut(false,e,-1)=="string"?e[e.length-1]+=r:e.push(r),e.push(...i);}return e.length===0?"":e.length===1?e[0]:e}case la:case Rl:case fa:case vo:case er:case Es:case Fs:break;default:throw new cc(t)}return t}function nv(t){return _l(t,e=>DG(e))}function Zo(t,e=XA){return _l(t,n=>typeof n=="string"?Ue(e,n.split(`
`)):n)}function bG(t){if(t.type===er)return  true}function CG(t){return KA(t,bG,false)}function Rg(t,e){return t.type===Es?{...t,contents:e(t.contents)}:e(t)}function xG(t){let e=true;return tv(t,n=>{switch(Do(n)){case la:if(n==="")break;case fa:case vo:case er:case Fs:return e=false,false}}),e}var EG=()=>{},FG=EG;function Z(t){return {type:ua,contents:t}}function Oi(t,e){return {type:ca,contents:e,n:t}}function z(t,e={}){return FG(e.expandedStates),{type:Tr,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function wG(t){return Oi(Number.NEGATIVE_INFINITY,t)}function UA(t){return Oi(-1,t)}function _o(t,e){return z(t[0],{...e,expandedStates:t})}function JA(t){return {type:yo,parts:t}}function Oe(t,e="",n={}){return {type:wi,breakContents:t,flatContents:e,groupId:n.groupId}}function _h(t,e){return {type:da,contents:t,groupId:e.groupId,negate:e.negate}}function HC(t){return {type:ha,contents:t}}var as={type:vo},$i={type:Fs},GA={type:er,hard:true},SG={type:er,hard:true,literal:true},fe={type:er},X={type:er,soft:true},Y=[GA,$i],XA=[SG,$i],Mf={type:Rl};function Ue(t,e){let n=[];for(let r=0;r<e.length;r++)r!==0&&n.push(t),n.push(e[r]);return n}function AG(t,e,n){let r=t;if(e>0){for(let i=0;i<Math.floor(e/n);++i)r=Z(r);r=Oi(e%n,r),r=Oi(Number.NEGATIVE_INFINITY,r);}return r}function _c(t,e){return t?{type:Es,label:t,contents:e}:e}function TG(t){let e=`*${t.value}*`.split(`
`);return e.length>1&&e.every(n=>n.trimStart()[0]==="*")}var kG=TG;function BG(t,e){let n=t.node;if(Ll(n))return e.originalText.slice(Mt(n),Je(n)).trimEnd();if(Or(n))return kG(n)?OG(n):["/*",Zo(n.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(n))}function OG(t){let e=t.value.split(`
`);return ["/*",Ue(Y,e.map((n,r)=>r===0?n.trimEnd():" "+(r<e.length-1?n.trim():n.trimStart()))),"*/"]}var YA={};Ph(YA,{endOfLine:()=>RG,ownLine:()=>LG,remaining:()=>_G});function $G(t){let e=t.type||t.kind||"(unknown type)",n=String(t.name||t.id&&(typeof t.id=="object"?t.id.name:t.id)||t.key&&(typeof t.key=="object"?t.key.name:t.key)||t.value&&(typeof t.value=="object"?"":String(t.value))||t.operator||"");return n.length>20&&(n=n.slice(0,19)+"…"),e+(n?" "+n:"")}function rv(t,e){(t.comments??(t.comments=[])).push(e),e.printed=false,e.nodeDescription=$G(t);}function fn(t,e){e.leading=true,e.trailing=false,rv(t,e);}function kr(t,e,n){e.leading=false,e.trailing=false,n&&(e.marker=n),rv(t,e);}function Bt(t,e){e.leading=false,e.trailing=true,rv(t,e);}function MG(t,e){let n=null,r=e;for(;r!==n;)n=r,r=bl(t,r),r=zy(t,r),r=Ky(t,r),r=Cl(t,r);return r}var jl=MG;function PG(t,e){let n=jl(t,e);return n===false?"":t.charAt(n)}var Zr=PG;function NG(t,e,n){for(let r=e;r<n;++r)if(t.charAt(r)===`
`)return  true;return  false}var lo=NG;function IG(t){return Or(t)&&t.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(t.value)}var QA=IG;function LG(t){return [oT,eT,rT,XG,VG,iv,sv,ZA,tT,eX,QG,av,sT,tX,nT,iT,ov,qG,uX].some(e=>e(t))}function RG(t){return [jG,rT,eT,sT,iv,sv,ZA,tT,iT,YG,ZG,av,iX,ov,aX,lX,cX].some(e=>e(t))}function _G(t){return [oT,iv,sv,WG,GG,nT,av,JG,UG,oX,ov,sX].some(e=>e(t))}function pa(t,e){let n=(t.body||t.properties).find(({type:r})=>r!=="EmptyStatement");n?fn(n,e):kr(t,e);}function _g(t,e){t.type==="BlockStatement"?pa(t,e):fn(t,e);}function jG({comment:t,followingNode:e}){return e&&QA(t)?(fn(e,t),true):false}function iv({comment:t,precedingNode:e,enclosingNode:n,followingNode:r,text:i}){if((n==null?void 0:n.type)!=="IfStatement"||!r)return  false;if(Zr(i,Je(t))===")")return Bt(e,t),true;if(e===n.consequent&&r===n.alternate){let s=jl(i,Je(n.consequent));if(Mt(t)<s||n.alternate.type==="BlockStatement"){if(e.type==="BlockStatement")Bt(e,t);else {let o=Ll(t)||t.loc.start.line===t.loc.end.line,a=t.loc.start.line===e.loc.start.line;o&&a?Bt(e,t):kr(n,t);}return  true}}return r.type==="BlockStatement"?(pa(r,t),true):r.type==="IfStatement"?(_g(r.consequent,t),true):n.consequent===r?(fn(r,t),true):false}function sv({comment:t,precedingNode:e,enclosingNode:n,followingNode:r,text:i}){return (n==null?void 0:n.type)!=="WhileStatement"||!r?false:Zr(i,Je(t))===")"?(Bt(e,t),true):r.type==="BlockStatement"?(pa(r,t),true):n.body===r?(fn(r,t),true):false}function ZA({comment:t,precedingNode:e,enclosingNode:n,followingNode:r}){return (n==null?void 0:n.type)!=="TryStatement"&&(n==null?void 0:n.type)!=="CatchClause"||!r?false:n.type==="CatchClause"&&e?(Bt(e,t),true):r.type==="BlockStatement"?(pa(r,t),true):r.type==="TryStatement"?(_g(r.finalizer,t),true):r.type==="CatchClause"?(_g(r.body,t),true):false}function VG({comment:t,enclosingNode:e,followingNode:n}){return Pt(e)&&(n==null?void 0:n.type)==="Identifier"?(fn(e,t),true):false}function qG({comment:t,enclosingNode:e,followingNode:n,options:r}){return !r.experimentalTernaries||!((e==null?void 0:e.type)==="ConditionalExpression"||ao(e))?false:(n==null?void 0:n.type)==="ConditionalExpression"||ao(n)?(kr(e,t),true):false}function eT({comment:t,precedingNode:e,enclosingNode:n,followingNode:r,text:i,options:s}){let o=e&&!lo(i,Je(e),Mt(t));return (!e||!o)&&((n==null?void 0:n.type)==="ConditionalExpression"||ao(n))&&r?s.experimentalTernaries&&n.alternate===r&&!(Or(t)&&!lo(s.originalText,Mt(t),Je(t)))?(kr(n,t),true):(fn(r,t),true):false}function WG({comment:t,precedingNode:e,enclosingNode:n}){return xs(n)&&n.shorthand&&n.key===e&&n.value.type==="AssignmentPattern"?(Bt(n.value.left,t),true):false}var HG=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function tT({comment:t,precedingNode:e,enclosingNode:n,followingNode:r}){if(HG.has(n==null?void 0:n.type)){if(it(n.decorators)&&(r==null?void 0:r.type)!=="Decorator")return Bt(ut(false,n.decorators,-1),t),true;if(n.body&&r===n.body)return pa(n.body,t),true;if(r){if(n.superClass&&r===n.superClass&&e&&(e===n.id||e===n.typeParameters))return Bt(e,t),true;for(let i of ["implements","extends","mixins"])if(n[i]&&r===n[i][0])return e&&(e===n.id||e===n.typeParameters||e===n.superClass)?Bt(e,t):kr(n,t,i),true}}return  false}var zG=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]);function nT({comment:t,precedingNode:e,enclosingNode:n,text:r}){return n&&e&&Zr(r,Je(t))==="("&&(n.type==="Property"||n.type==="TSDeclareMethod"||n.type==="TSAbstractMethodDefinition")&&e.type==="Identifier"&&n.key===e&&Zr(r,Je(e))!==":"||(e==null?void 0:e.type)==="Decorator"&&zG.has(n==null?void 0:n.type)&&(Ll(t)||t.placement==="ownLine")?(Bt(e,t),true):false}var KG=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function UG({comment:t,precedingNode:e,enclosingNode:n,text:r}){return Zr(r,Je(t))!=="("?false:e&&KG.has(n==null?void 0:n.type)?(Bt(e,t),true):false}function JG({comment:t,enclosingNode:e,text:n}){if((e==null?void 0:e.type)!=="ArrowFunctionExpression")return  false;let r=jl(n,Je(t));return r!==false&&n.slice(r,r+2)==="=>"?(kr(e,t),true):false}function GG({comment:t,enclosingNode:e,text:n}){return Zr(n,Je(t))!==")"?false:e&&(aT(e)&&vn(e).length===0||El(e)&&$r(e).length===0)?(kr(e,t),true):((e==null?void 0:e.type)==="MethodDefinition"||(e==null?void 0:e.type)==="TSAbstractMethodDefinition")&&vn(e.value).length===0?(kr(e.value,t),true):false}function XG({comment:t,precedingNode:e,enclosingNode:n,followingNode:r,text:i}){return (e==null?void 0:e.type)==="ComponentTypeParameter"&&((n==null?void 0:n.type)==="DeclareComponent"||(n==null?void 0:n.type)==="ComponentTypeAnnotation")&&(r==null?void 0:r.type)!=="ComponentTypeParameter"||((e==null?void 0:e.type)==="ComponentParameter"||(e==null?void 0:e.type)==="RestElement")&&(n==null?void 0:n.type)==="ComponentDeclaration"&&Zr(i,Je(t))===")"?(Bt(e,t),true):false}function rT({comment:t,precedingNode:e,enclosingNode:n,followingNode:r,text:i}){return (e==null?void 0:e.type)==="FunctionTypeParam"&&(n==null?void 0:n.type)==="FunctionTypeAnnotation"&&(r==null?void 0:r.type)!=="FunctionTypeParam"||((e==null?void 0:e.type)==="Identifier"||(e==null?void 0:e.type)==="AssignmentPattern"||(e==null?void 0:e.type)==="ObjectPattern"||(e==null?void 0:e.type)==="ArrayPattern"||(e==null?void 0:e.type)==="RestElement"||(e==null?void 0:e.type)==="TSParameterProperty")&&aT(n)&&Zr(i,Je(t))===")"?(Bt(e,t),true):!Or(t)&&((n==null?void 0:n.type)==="FunctionDeclaration"||(n==null?void 0:n.type)==="FunctionExpression"||(n==null?void 0:n.type)==="ObjectMethod")&&(r==null?void 0:r.type)==="BlockStatement"&&n.body===r&&jl(i,Je(t))===Mt(r)?(pa(r,t),true):false}function iT({comment:t,enclosingNode:e}){return (e==null?void 0:e.type)==="LabeledStatement"?(fn(e,t),true):false}function ov({comment:t,enclosingNode:e}){return ((e==null?void 0:e.type)==="ContinueStatement"||(e==null?void 0:e.type)==="BreakStatement")&&!e.label?(Bt(e,t),true):false}function YG({comment:t,precedingNode:e,enclosingNode:n}){return tt(n)&&e&&n.callee===e&&n.arguments.length>0?(fn(n.arguments[0],t),true):false}function QG({comment:t,precedingNode:e,enclosingNode:n,followingNode:r}){return oo(n)?(Jd(t)&&(r.prettierIgnore=true,t.unignore=true),e?(Bt(e,t),true):false):(oo(r)&&Jd(t)&&(r.types[0].prettierIgnore=true,t.unignore=true),false)}function ZG({comment:t,enclosingNode:e}){return xs(e)?(fn(e,t),true):false}function av({comment:t,enclosingNode:e,ast:n,isLastComment:r}){var i;return ((i=n==null?void 0:n.body)==null?void 0:i.length)===0?(r?kr(n,t):fn(n,t),true):(e==null?void 0:e.type)==="Program"&&e.body.length===0&&!it(e.directives)?(r?kr(e,t):fn(e,t),true):false}function eX({comment:t,enclosingNode:e}){return (e==null?void 0:e.type)==="ForInStatement"||(e==null?void 0:e.type)==="ForOfStatement"?(fn(e,t),true):false}function sT({comment:t,precedingNode:e,enclosingNode:n,text:r}){if((n==null?void 0:n.type)==="ImportSpecifier"||(n==null?void 0:n.type)==="ExportSpecifier")return fn(n,t),true;let i=(e==null?void 0:e.type)==="ImportSpecifier"&&(n==null?void 0:n.type)==="ImportDeclaration",s=(e==null?void 0:e.type)==="ExportSpecifier"&&(n==null?void 0:n.type)==="ExportNamedDeclaration";return (i||s)&&cr(r,Je(t))?(Bt(e,t),true):false}function tX({comment:t,enclosingNode:e}){return (e==null?void 0:e.type)==="AssignmentPattern"?(fn(e,t),true):false}var nX=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),rX=new Set(["ObjectExpression","RecordExpression","ArrayExpression","TupleExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function iX({comment:t,enclosingNode:e,followingNode:n}){return nX.has(e==null?void 0:e.type)&&n&&(rX.has(n.type)||Or(t))?(fn(n,t),true):false}function sX({comment:t,enclosingNode:e,followingNode:n,text:r}){return !n&&((e==null?void 0:e.type)==="TSMethodSignature"||(e==null?void 0:e.type)==="TSDeclareFunction"||(e==null?void 0:e.type)==="TSAbstractMethodDefinition")&&Zr(r,Je(t))===";"?(Bt(e,t),true):false}function oT({comment:t,enclosingNode:e,followingNode:n}){if(Jd(t)&&(e==null?void 0:e.type)==="TSMappedType"&&(n==null?void 0:n.type)==="TSTypeParameter"&&n.constraint)return e.prettierIgnore=true,t.unignore=true,true}function oX({comment:t,precedingNode:e,enclosingNode:n,followingNode:r}){return (n==null?void 0:n.type)!=="TSMappedType"?false:(r==null?void 0:r.type)==="TSTypeParameter"&&r.name?(fn(r.name,t),true):(e==null?void 0:e.type)==="TSTypeParameter"&&e.constraint?(Bt(e.constraint,t),true):false}function aX({comment:t,enclosingNode:e,followingNode:n}){return !e||e.type!=="SwitchCase"||e.test||!n||n!==e.consequent[0]?false:(n.type==="BlockStatement"&&Ll(t)?pa(n,t):kr(e,t),true)}function lX({comment:t,precedingNode:e,enclosingNode:n,followingNode:r}){return oo(e)&&((n.type==="TSArrayType"||n.type==="ArrayTypeAnnotation")&&!r||ev(n))?(Bt(ut(false,e.types,-1),t),true):false}function uX({comment:t,enclosingNode:e,precedingNode:n,followingNode:r}){if(((e==null?void 0:e.type)==="ObjectPattern"||(e==null?void 0:e.type)==="ArrayPattern")&&(r==null?void 0:r.type)==="TSTypeAnnotation")return n?Bt(n,t):kr(e,t),true}function cX({comment:t,precedingNode:e,enclosingNode:n,followingNode:r}){var i;if(!r&&(n==null?void 0:n.type)==="UnaryExpression"&&((e==null?void 0:e.type)==="LogicalExpression"||(e==null?void 0:e.type)==="BinaryExpression")){let s=((i=n.argument.loc)==null?void 0:i.start.line)!==e.right.loc.start.line,o=Ll(t)||t.loc.start.line===t.loc.end.line,a=t.loc.start.line===e.right.loc.start.line;if(s&&o&&a)return Bt(e.right,t),true}return  false}var aT=lt(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),fX=new Set(["EmptyStatement","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]);function dX(t){return !fX.has(t.type)}function hX(t,e){var n;if((e.parser==="typescript"||e.parser==="flow"||e.parser==="acorn"||e.parser==="espree"||e.parser==="meriyah"||e.parser==="__babel_estree")&&t.type==="MethodDefinition"&&((n=t.value)==null?void 0:n.type)==="FunctionExpression"&&vn(t.value).length===0&&!t.value.returnType&&!it(t.value.typeParameters)&&t.value.body)return [...t.decorators||[],t.key,t.value.body]}function lT(t){let{node:e,parent:n}=t;return (Yt(e)||n&&(n.type==="JSXSpreadAttribute"||n.type==="JSXSpreadChild"||oo(n)||(n.type==="ClassDeclaration"||n.type==="ClassExpression")&&n.superClass===e))&&(!Rh(e)||oo(n))}function pX(t,{parser:e}){if(e==="flow"||e==="babel-flow")return t=rn(false,t,/[\s(]/gu,""),t===""||t==="/*"||t==="/*::"}function mX(t){switch(t){case "cr":return "\r";case "crlf":return `\r
`;default:return `
`}}var Rn=Symbol("MODE_BREAK"),hi=Symbol("MODE_FLAT"),Va=Symbol("cursor"),jg=Symbol("DOC_FILL_PRINTED_LENGTH");function uT(){return {value:"",length:0,queue:[]}}function gX(t,e){return Vg(t,{type:"indent"},e)}function yX(t,e,n){return e===Number.NEGATIVE_INFINITY?t.root||uT():e<0?Vg(t,{type:"dedent"},n):e?e.type==="root"?{...t,root:t}:Vg(t,{type:typeof e=="string"?"stringAlign":"numberAlign",n:e},n):t}function Vg(t,e,n){let r=e.type==="dedent"?t.queue.slice(0,-1):[...t.queue,e],i="",s=0,o=0,a=0;for(let p of r)switch(p.type){case "indent":c(),n.useTabs?l(1):u(n.tabWidth);break;case "stringAlign":c(),i+=p.n,s+=p.n.length;break;case "numberAlign":o+=1,a+=p.n;break;default:throw new Error(`Unexpected type '${p.type}'`)}return d(),{...t,value:i,length:s,queue:r};function l(p){i+="	".repeat(p),s+=n.tabWidth*p;}function u(p){i+=" ".repeat(p),s+=p;}function c(){n.useTabs?f():d();}function f(){o>0&&l(o),h();}function d(){a>0&&u(a),h();}function h(){o=0,a=0;}}function qg(t){let e=0,n=0,r=t.length;e:for(;r--;){let i=t[r];if(i===Va){n++;continue}for(let s=i.length-1;s>=0;s--){let o=i[s];if(o===" "||o==="	")e++;else {t[r]=i.slice(0,s+1);break e}}}if(e>0||n>0)for(t.length=r+1;n-- >0;)t.push(Va);return e}function Pf(t,e,n,r,i,s){if(n===Number.POSITIVE_INFINITY)return  true;let o=e.length,a=[t],l=[];for(;n>=0;){if(a.length===0){if(o===0)return  true;a.push(e[--o]);continue}let{mode:u,doc:c}=a.pop(),f=Do(c);switch(f){case la:l.push(c),n-=Dl(c);break;case os:case yo:{let d=f===os?c:c.parts,h=c[jg]??0;for(let p=d.length-1;p>=h;p--)a.push({mode:u,doc:d[p]});break}case ua:case ca:case da:case Es:a.push({mode:u,doc:c.contents});break;case fa:n+=qg(l);break;case Tr:{if(s&&c.break)return  false;let d=c.break?Rn:u,h=c.expandedStates&&d===Rn?ut(false,c.expandedStates,-1):c.contents;a.push({mode:d,doc:h});break}case wi:{let d=(c.groupId?i[c.groupId]||hi:u)===Rn?c.breakContents:c.flatContents;d&&a.push({mode:u,doc:d});break}case er:if(u===Rn||c.hard)return  true;c.soft||(l.push(" "),n--);break;case ha:r=true;break;case vo:if(r)return  false;break}}return  false}function cT(t,e){let n={},r=e.printWidth,i=mX(e.endOfLine),s=0,o=[{ind:uT(),mode:Rn,doc:t}],a=[],l=false,u=[],c=0;for(yG(t);o.length>0;){let{ind:d,mode:h,doc:p}=o.pop();switch(Do(p)){case la:{let m=i!==`
`?rn(false,p,`
`,i):p;a.push(m),o.length>0&&(s+=Dl(m));break}case os:for(let m=p.length-1;m>=0;m--)o.push({ind:d,mode:h,doc:p[m]});break;case Rl:if(c>=2)throw new Error("There are too many 'cursor' in doc.");a.push(Va),c++;break;case ua:o.push({ind:gX(d,e),mode:h,doc:p.contents});break;case ca:o.push({ind:yX(d,p.n,e),mode:h,doc:p.contents});break;case fa:s-=qg(a);break;case Tr:switch(h){case hi:if(!l){o.push({ind:d,mode:p.break?Rn:hi,doc:p.contents});break}case Rn:{l=false;let m={ind:d,mode:hi,doc:p.contents},g=r-s,y=u.length>0;if(!p.break&&Pf(m,o,g,y,n))o.push(m);else if(p.expandedStates){let F=ut(false,p.expandedStates,-1);if(p.break){o.push({ind:d,mode:Rn,doc:F});break}else for(let x=1;x<p.expandedStates.length+1;x++)if(x>=p.expandedStates.length){o.push({ind:d,mode:Rn,doc:F});break}else {let b=p.expandedStates[x],D={ind:d,mode:hi,doc:b};if(Pf(D,o,g,y,n)){o.push(D);break}}}else o.push({ind:d,mode:Rn,doc:p.contents});break}}p.id&&(n[p.id]=ut(false,o,-1).mode);break;case yo:{let m=r-s,g=p[jg]??0,{parts:y}=p,F=y.length-g;if(F===0)break;let x=y[g+0],b=y[g+1],D={ind:d,mode:hi,doc:x},C={ind:d,mode:Rn,doc:x},E=Pf(D,[],m,u.length>0,n,true);if(F===1){E?o.push(D):o.push(C);break}let S={ind:d,mode:hi,doc:b},A={ind:d,mode:Rn,doc:b};if(F===2){E?o.push(S,D):o.push(A,C);break}let M=y[g+2],k={ind:d,mode:h,doc:{...p,[jg]:g+2}};Pf({ind:d,mode:hi,doc:[x,b,M]},[],m,u.length>0,n,true)?o.push(k,S,D):E?o.push(k,A,D):o.push(k,A,C);break}case wi:case da:{let m=p.groupId?n[p.groupId]:h;if(m===Rn){let g=p.type===wi?p.breakContents:p.negate?p.contents:Z(p.contents);g&&o.push({ind:d,mode:h,doc:g});}if(m===hi){let g=p.type===wi?p.flatContents:p.negate?Z(p.contents):p.contents;g&&o.push({ind:d,mode:h,doc:g});}break}case ha:u.push({ind:d,mode:h,doc:p.contents});break;case vo:u.length>0&&o.push({ind:d,mode:h,doc:GA});break;case er:switch(h){case hi:if(p.hard)l=true;else {p.soft||(a.push(" "),s+=1);break}case Rn:if(u.length>0){o.push({ind:d,mode:h,doc:p},...u.reverse()),u.length=0;break}p.literal?d.root?(a.push(i,d.root.value),s=d.root.length):(a.push(i),s=0):(s-=qg(a),a.push(i+d.value),s=d.length);break}break;case Es:o.push({ind:d,mode:h,doc:p.contents});break;case Fs:break;default:throw new cc(p)}o.length===0&&u.length>0&&(o.push(...u.reverse()),u.length=0);}let f=a.indexOf(Va);if(f!==-1){let d=a.indexOf(Va,f+1);if(d===-1)return {formatted:a.filter(g=>g!==Va).join("")};let h=a.slice(0,f).join(""),p=a.slice(f+1,d).join(""),m=a.slice(d+1).join("");return {formatted:h+p+m,cursorNodeStart:h.length,cursorNodeText:p}}return {formatted:a.join("")}}function vX(t,e,n=0){let r=0;for(let i=n;i<t.length;++i)t[i]==="	"?r=r+e-r%e:r++;return r}var DX=vX;function bX(t,e){let n=t.lastIndexOf(`
`);return n===-1?0:DX(t.slice(n+1).match(/^[\t ]*/u)[0],e)}var CX=bX;function fT(t,e,n){let{node:r}=t;if(r.type==="TemplateLiteral"&&wX(t)){let l=EX(t,n,e);if(l)return l}let i="expressions";r.type==="TSTemplateLiteralType"&&(i="types");let s=[],o=t.map(e,i);s.push(as,"`");let a=0;return t.each(({index:l,node:u})=>{if(s.push(e()),u.tail)return;let{tabWidth:c}=n,f=u.value.raw,d=f.includes(`
`)?CX(f,c):a;a=d;let h=o[l],p=r[i][l],m=lo(n.originalText,Je(u),Mt(r.quasis[l+1]));if(!m){let y=cT(h,{...n,printWidth:Number.POSITIVE_INFINITY}).formatted;y.includes(`
`)?m=true:h=y;}m&&(se(p)||p.type==="Identifier"||Pt(p)||p.type==="ConditionalExpression"||p.type==="SequenceExpression"||xi(p)||ss(p))&&(h=[Z([X,h]),X]);let g=d===0&&f.endsWith(`
`)?Oi(Number.NEGATIVE_INFINITY,h):AG(h,d,c);s.push(z(["${",g,as,"}"]));},"quasis"),s.push("`"),s}function xX(t,e){let n=e("quasi");return _c(n.label&&{tagged:true,...n.label},[e("tag"),e(t.node.typeArguments?"typeArguments":"typeParameters"),as,n])}function EX(t,e,n){let{node:r}=t,i=r.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(i.length>1||i.some(s=>s.length>0)){e.__inJestEach=true;let s=t.map(n,"expressions");e.__inJestEach=false;let o=[],a=s.map(d=>"${"+cT(d,{...e,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),l=[{hasLineBreak:false,cells:[]}];for(let d=1;d<r.quasis.length;d++){let h=ut(false,l,-1),p=a[d-1];h.cells.push(p),p.includes(`
`)&&(h.hasLineBreak=true),r.quasis[d].value.raw.includes(`
`)&&l.push({hasLineBreak:false,cells:[]});}let u=Math.max(i.length,...l.map(d=>d.cells.length)),c=Array.from({length:u}).fill(0),f=[{cells:i},...l.filter(d=>d.cells.length>0)];for(let{cells:d}of f.filter(h=>!h.hasLineBreak))for(let[h,p]of d.entries())c[h]=Math.max(c[h],Dl(p));return o.push(as,"`",Z([Y,Ue(Y,f.map(d=>Ue(" | ",d.cells.map((h,p)=>d.hasLineBreak?h:h+" ".repeat(c[p]-Dl(h))))))]),Y,"`"),o}}function FX(t,e){let{node:n}=t,r=e();return se(n)&&(r=z([Z([X,r]),X])),["${",r,as,"}"]}function lv(t,e){return t.map(n=>FX(n,e),"expressions")}function dT(t,e){return _l(t,n=>typeof n=="string"?e?rn(false,n,/(\\*)`/gu,"$1$1\\`"):hT(n):n)}function hT(t){return rn(false,t,/([\\`]|\$\{)/gu,String.raw`\$1`)}function wX({node:t,parent:e}){let n=/^[fx]?(?:describe|it|test)$/u;return e.type==="TaggedTemplateExpression"&&e.quasi===t&&e.tag.type==="MemberExpression"&&e.tag.property.type==="Identifier"&&e.tag.property.name==="each"&&(e.tag.object.type==="Identifier"&&n.test(e.tag.object.name)||e.tag.object.type==="MemberExpression"&&e.tag.object.property.type==="Identifier"&&(e.tag.object.property.name==="only"||e.tag.object.property.name==="skip")&&e.tag.object.object.type==="Identifier"&&n.test(e.tag.object.object.name))}var Wg=[(t,e)=>t.type==="ObjectExpression"&&e==="properties",(t,e)=>t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="Component"&&e==="arguments",(t,e)=>t.type==="Decorator"&&e==="expression"];function SX(t){let e=r=>r.type==="TemplateLiteral",n=(r,i)=>xs(r)&&!r.computed&&r.key.type==="Identifier"&&r.key.name==="styles"&&i==="value";return t.match(e,(r,i)=>cn(r)&&i==="elements",n,...Wg)||t.match(e,n,...Wg)}function AX(t){return t.match(e=>e.type==="TemplateLiteral",(e,n)=>xs(e)&&!e.computed&&e.key.type==="Identifier"&&e.key.name==="template"&&n==="value",...Wg)}function _p(t,e){return se(t,pe.Block|pe.Leading,({value:n})=>n===` ${e} `)}function pT({node:t,parent:e},n){return _p(t,n)||TX(e)&&_p(e,n)||e.type==="ExpressionStatement"&&_p(e,n)}function TX(t){return t.type==="AsConstExpression"||t.type==="TSAsExpression"&&t.typeAnnotation.type==="TSTypeReference"&&t.typeAnnotation.typeName.type==="Identifier"&&t.typeAnnotation.typeName.name==="const"}async function kX(t,e,n){let{node:r}=n,i=r.quasis.map(c=>c.value.raw),s=0,o=i.reduce((c,f,d)=>d===0?f:c+"@prettier-placeholder-"+s+++"-id"+f,""),a=await t(o,{parser:"scss"}),l=lv(n,e),u=BX(a,l);if(!u)throw new Error("Couldn't insert all the expressions");return ["`",Z([Y,u]),X,"`"]}function BX(t,e){if(!it(e))return t;let n=0,r=_l(nv(t),i=>typeof i!="string"||!i.includes("@prettier-placeholder")?i:i.split(/@prettier-placeholder-(\d+)-id/u).map((s,o)=>o%2===0?Zo(s):(n++,e[s])));return e.length===n?r:null}function OX({node:t,parent:e,grandparent:n}){return n&&t.quasis&&e.type==="JSXExpressionContainer"&&n.type==="JSXElement"&&n.openingElement.name.name==="style"&&n.openingElement.attributes.some(r=>r.type==="JSXAttribute"&&r.name.name==="jsx")||(e==null?void 0:e.type)==="TaggedTemplateExpression"&&e.tag.type==="Identifier"&&e.tag.name==="css"||(e==null?void 0:e.type)==="TaggedTemplateExpression"&&e.tag.type==="MemberExpression"&&e.tag.object.name==="css"&&(e.tag.property.name==="global"||e.tag.property.name==="resolve")}function Nf(t){return t.type==="Identifier"&&t.name==="styled"}function zC(t){return /^[A-Z]/u.test(t.object.name)&&t.property.name==="extend"}function $X({parent:t}){if(!t||t.type!=="TaggedTemplateExpression")return  false;let e=t.tag.type==="ParenthesizedExpression"?t.tag.expression:t.tag;switch(e.type){case "MemberExpression":return Nf(e.object)||zC(e);case "CallExpression":return Nf(e.callee)||e.callee.type==="MemberExpression"&&(e.callee.object.type==="MemberExpression"&&(Nf(e.callee.object.object)||zC(e.callee.object))||e.callee.object.type==="CallExpression"&&Nf(e.callee.object.callee));case "Identifier":return e.name==="css";default:return  false}}function MX({parent:t,grandparent:e}){return (e==null?void 0:e.type)==="JSXAttribute"&&t.type==="JSXExpressionContainer"&&e.name.type==="JSXIdentifier"&&e.name.name==="css"}function PX(t){if(OX(t)||$X(t)||MX(t)||SX(t))return kX}var NX=PX;async function IX(t,e,n){let{node:r}=n,i=r.quasis.length,s=lv(n,e),o=[];for(let a=0;a<i;a++){let l=r.quasis[a],u=a===0,c=a===i-1,f=l.value.cooked,d=f.split(`
`),h=d.length,p=s[a],m=h>2&&d[0].trim()===""&&d[1].trim()==="",g=h>2&&d[h-1].trim()===""&&d[h-2].trim()==="",y=d.every(x=>/^\s*(?:#[^\n\r]*)?$/u.test(x));if(!c&&/#[^\n\r]*$/u.test(d[h-1]))return null;let F=null;y?F=LX(d):F=await t(f,{parser:"graphql"}),F?(F=dT(F,false),!u&&m&&o.push(""),o.push(F),!c&&g&&o.push("")):!u&&!c&&m&&o.push(""),p&&o.push(p);}return ["`",Z([Y,Ue(Y,o)]),Y,"`"]}function LX(t){let e=[],n=false,r=t.map(i=>i.trim());for(let[i,s]of r.entries())s!==""&&(r[i-1]===""&&n?e.push([Y,s]):e.push(s),n=true);return e.length===0?null:Ue(Y,e)}function RX({node:t,parent:e}){return pT({node:t,parent:e},"GraphQL")||e&&(e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"&&e.tag.object.name==="graphql"&&e.tag.property.name==="experimental"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"))||e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="graphql")}function _X(t){if(RX(t))return IX}var jX=_X,jp=0;async function mT(t,e,n,r,i){let{node:s}=r,o=jp;jp=jp+1>>>0;let a=y=>`PRETTIER_HTML_PLACEHOLDER_${y}_${o}_IN_JS`,l=s.quasis.map((y,F,x)=>F===x.length-1?y.value.cooked:y.value.cooked+a(F)).join(""),u=lv(r,n),c=new RegExp(a(String.raw`(\d+)`),"gu"),f=0,d=await e(l,{parser:t,__onHtmlRoot(y){f=y.children.length;}}),h=_l(d,y=>{if(typeof y!="string")return y;let F=[],x=y.split(c);for(let b=0;b<x.length;b++){let D=x[b];if(b%2===0){D&&(D=hT(D),i.__embeddedInHtml&&(D=rn(false,D,/<\/(?=script\b)/giu,String.raw`<\/`)),F.push(D));continue}let C=Number(D);F.push(u[C]);}return F}),p=/^\s/u.test(l)?" ":"",m=/\s$/u.test(l)?" ":"",g=i.htmlWhitespaceSensitivity==="ignore"?Y:p&&m?fe:null;return g?z(["`",Z([g,z(h)]),g,"`"]):_c({hug:false},z(["`",p,f>1?Z(z(h)):z(h),m,"`"]))}function VX(t){return pT(t,"HTML")||t.match(e=>e.type==="TemplateLiteral",(e,n)=>e.type==="TaggedTemplateExpression"&&e.tag.type==="Identifier"&&e.tag.name==="html"&&n==="quasi")}var qX=mT.bind(void 0,"html"),WX=mT.bind(void 0,"angular");function HX(t){if(VX(t))return qX;if(AX(t))return WX}var zX=HX;async function KX(t,e,n){let{node:r}=n,i=rn(false,r.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(l,u)=>"\\".repeat(u.length/2)+"`"),s=UX(i),o=s!=="";o&&(i=rn(false,i,new RegExp(`^${s}`,"gmu"),""));let a=dT(await t(i,{parser:"markdown",__inJsTemplate:true}),true);return ["`",o?Z([X,a]):[XA,wG(a)],X,"`"]}function UX(t){let e=t.match(/^([^\S\n]*)\S/mu);return e===null?"":e[1]}function JX(t){if(GX(t))return KX}function GX({node:t,parent:e}){return (e==null?void 0:e.type)==="TaggedTemplateExpression"&&t.quasis.length===1&&e.tag.type==="Identifier"&&(e.tag.name==="md"||e.tag.name==="markdown")}var XX=JX;function YX(t){let{node:e}=t;if(e.type!=="TemplateLiteral"||QX(e))return;let n;for(let r of [NX,jX,zX,XX])if(n=r(t),!!n)return e.quasis.length===1&&e.quasis[0].value.raw.trim()===""?"``":async(...i)=>{let s=await n(...i);return s&&_c({embed:true,...s.label},s)}}function QX({quasis:t}){return t.some(({value:{cooked:e}})=>e===null)}var ZX=YX,eY=/\*\/$/,tY=/^\/\*\*?/,gT=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,nY=/(^|\s+)\/\/([^\n\r]*)/g,KC=/^(\r?\n)+/,rY=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,UC=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,iY=/(\r?\n|^) *\* ?/g,yT=[];function sY(t){let e=t.match(gT);return e?e[0].trimStart():""}function oY(t){let e=t.match(gT),n=e==null?void 0:e[0];return n==null?t:t.slice(n.length)}function aY(t){let e=`
`;t=rn(false,t.replace(tY,"").replace(eY,""),iY,"$1");let n="";for(;n!==t;)n=t,t=rn(false,t,rY,`${e}$1 $2${e}`);t=t.replace(KC,"").trimEnd();let r=Object.create(null),i=rn(false,t,UC,"").replace(KC,"").trimEnd(),s;for(;s=UC.exec(t);){let o=rn(false,s[2],nY,"");if(typeof r[s[1]]=="string"||Array.isArray(r[s[1]])){let a=r[s[1]];r[s[1]]=[...yT,...Array.isArray(a)?a:[a],o];}else r[s[1]]=o;}return {comments:i,pragmas:r}}function lY({comments:t="",pragmas:e={}}){let n=`
`,r="/**",i=" *",s=" */",o=Object.keys(e),a=o.flatMap(u=>JC(u,e[u])).map(u=>`${i} ${u}${n}`).join("");if(!t){if(o.length===0)return "";if(o.length===1&&!Array.isArray(e[o[0]])){let u=e[o[0]];return `${r} ${JC(o[0],u)[0]}${s}`}}let l=t.split(n).map(u=>`${i} ${u}`).join(n)+n;return r+n+(t?l:"")+(t&&o.length>0?i+n:"")+a+s}function JC(t,e){return [...yT,...Array.isArray(e)?e:[e]].map(n=>`@${t} ${n}`.trim())}function uY(t){if(!t.startsWith("#!"))return "";let e=t.indexOf(`
`);return e===-1?t:t.slice(0,e)}var cY=uY;function fY(t){let e=cY(t);e&&(t=t.slice(e.length+1));let n=sY(t),{pragmas:r,comments:i}=aY(n);return {shebang:e,text:t,pragmas:r,comments:i}}function dY(t){let{shebang:e,text:n,pragmas:r,comments:i}=fY(t),s=oY(n),o=lY({pragmas:{format:"",...r},comments:i.trimStart()});return (e?`${e}
`:"")+o+(s.startsWith(`
`)?`
`:`

`)+s}function hY(t,e){let{originalText:n,[Symbol.for("comments")]:r,locStart:i,locEnd:s,[Symbol.for("printedComments")]:o}=e,{node:a}=t,l=i(a),u=s(a);for(let c of r)i(c)>=l&&s(c)<=u&&o.add(c);return n.slice(l,u)}var pY=hY;function Hg(t,e){var n,r,i,s,o,a,l,u,c;if(t.isRoot)return  false;let{node:f,key:d,parent:h}=t;if(e.__isInHtmlInterpolation&&!e.bracketSpacing&&vY(f)&&uu(t))return  true;if(mY(f))return  false;if(f.type==="Identifier"){if((n=f.extra)!=null&&n.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(f.name)||d==="left"&&(f.name==="async"&&!h.await||f.name==="let")&&h.type==="ForOfStatement")return  true;if(f.name==="let"){let p=(r=t.findAncestor(m=>m.type==="ForOfStatement"))==null?void 0:r.left;if(p&&Fn(p,m=>m===f))return  true}if(d==="object"&&f.name==="let"&&h.type==="MemberExpression"&&h.computed&&!h.optional){let p=t.findAncestor(g=>g.type==="ExpressionStatement"||g.type==="ForStatement"||g.type==="ForInStatement"),m=p?p.type==="ExpressionStatement"?p.expression:p.type==="ForStatement"?p.init:p.left:void 0;if(m&&Fn(m,g=>g===f))return  true}if(d==="expression")switch(f.name){case "await":case "interface":case "module":case "using":case "yield":case "let":case "component":case "hook":case "type":{let p=t.findAncestor(m=>!xi(m));if(p!==h&&p.type==="ExpressionStatement")return  true}}return  false}if(f.type==="ObjectExpression"||f.type==="FunctionExpression"||f.type==="ClassExpression"||f.type==="DoExpression"){let p=(i=t.findAncestor(m=>m.type==="ExpressionStatement"))==null?void 0:i.expression;if(p&&Fn(p,m=>m===f))return  true}if(f.type==="ObjectExpression"){let p=(s=t.findAncestor(m=>m.type==="ArrowFunctionExpression"))==null?void 0:s.body;if(p&&p.type!=="SequenceExpression"&&p.type!=="AssignmentExpression"&&Fn(p,m=>m===f))return  true}switch(h.type){case "ParenthesizedExpression":return  false;case "ClassDeclaration":case "ClassExpression":if(d==="superClass"&&(f.type==="ArrowFunctionExpression"||f.type==="AssignmentExpression"||f.type==="AwaitExpression"||f.type==="BinaryExpression"||f.type==="ConditionalExpression"||f.type==="LogicalExpression"||f.type==="NewExpression"||f.type==="ObjectExpression"||f.type==="SequenceExpression"||f.type==="TaggedTemplateExpression"||f.type==="UnaryExpression"||f.type==="UpdateExpression"||f.type==="YieldExpression"||f.type==="TSNonNullExpression"||f.type==="ClassExpression"&&it(f.decorators)))return  true;break;case "ExportDefaultDeclaration":return vT(t,e)||f.type==="SequenceExpression";case "Decorator":if(d==="expression"&&!bY(f))return  true;break;case "TypeAnnotation":if(t.match(void 0,void 0,(p,m)=>m==="returnType"&&p.type==="ArrowFunctionExpression")&&yY(f))return  true;break;case "BinaryExpression":if(d==="left"&&(h.operator==="in"||h.operator==="instanceof")&&f.type==="UnaryExpression")return  true;break;case "VariableDeclarator":if(d==="init"&&t.match(void 0,void 0,(p,m)=>m==="declarations"&&p.type==="VariableDeclaration",(p,m)=>m==="left"&&p.type==="ForInStatement"))return  true;break}switch(f.type){case "UpdateExpression":if(h.type==="UnaryExpression")return f.prefix&&(f.operator==="++"&&h.operator==="+"||f.operator==="--"&&h.operator==="-");case "UnaryExpression":switch(h.type){case "UnaryExpression":return f.operator===h.operator&&(f.operator==="+"||f.operator==="-");case "BindExpression":return  true;case "MemberExpression":case "OptionalMemberExpression":return d==="object";case "TaggedTemplateExpression":return  true;case "NewExpression":case "CallExpression":case "OptionalCallExpression":return d==="callee";case "BinaryExpression":return d==="left"&&h.operator==="**";case "TSNonNullExpression":return  true;default:return  false}case "BinaryExpression":if(h.type==="UpdateExpression"||f.operator==="in"&&gY(t))return  true;if(f.operator==="|>"&&(o=f.extra)!=null&&o.parenthesized){let p=t.grandparent;if(p.type==="BinaryExpression"&&p.operator==="|>")return  true}case "TSTypeAssertion":case "TSAsExpression":case "TSSatisfiesExpression":case "AsExpression":case "AsConstExpression":case "SatisfiesExpression":case "LogicalExpression":switch(h.type){case "TSAsExpression":case "TSSatisfiesExpression":case "AsExpression":case "AsConstExpression":case "SatisfiesExpression":return !xi(f);case "ConditionalExpression":return xi(f)||UJ(f);case "CallExpression":case "NewExpression":case "OptionalCallExpression":return d==="callee";case "ClassExpression":case "ClassDeclaration":return d==="superClass";case "TSTypeAssertion":case "TaggedTemplateExpression":case "UnaryExpression":case "JSXSpreadAttribute":case "SpreadElement":case "BindExpression":case "AwaitExpression":case "TSNonNullExpression":case "UpdateExpression":return  true;case "MemberExpression":case "OptionalMemberExpression":return d==="object";case "AssignmentExpression":case "AssignmentPattern":return d==="left"&&(f.type==="TSTypeAssertion"||xi(f));case "LogicalExpression":if(f.type==="LogicalExpression")return h.operator!==f.operator;case "BinaryExpression":{let{operator:p,type:m}=f;if(!p&&m!=="TSTypeAssertion")return  true;let g=Kd(p),y=h.operator,F=Kd(y);return F>g||d==="right"&&F===g||F===g&&!Zy(y,p)?true:F<g&&p==="%"?y==="+"||y==="-":!!oG(y)}default:return  false}case "SequenceExpression":switch(h.type){case "ReturnStatement":return  false;case "ForStatement":return  false;case "ExpressionStatement":return d!=="expression";case "ArrowFunctionExpression":return d!=="body";default:return  true}case "YieldExpression":if(h.type==="AwaitExpression"||h.type==="TSTypeAssertion")return  true;case "AwaitExpression":switch(h.type){case "TaggedTemplateExpression":case "UnaryExpression":case "LogicalExpression":case "SpreadElement":case "TSAsExpression":case "TSSatisfiesExpression":case "TSNonNullExpression":case "AsExpression":case "AsConstExpression":case "SatisfiesExpression":case "BindExpression":return  true;case "MemberExpression":case "OptionalMemberExpression":return d==="object";case "NewExpression":case "CallExpression":case "OptionalCallExpression":return d==="callee";case "ConditionalExpression":return d==="test";case "BinaryExpression":return !(!f.argument&&h.operator==="|>");default:return  false}case "TSFunctionType":if(t.match(p=>p.type==="TSFunctionType",(p,m)=>m==="typeAnnotation"&&p.type==="TSTypeAnnotation",(p,m)=>m==="returnType"&&p.type==="ArrowFunctionExpression"))return  true;case "TSConditionalType":case "TSConstructorType":case "ConditionalTypeAnnotation":if(d==="extendsType"&&ao(f)&&h.type===f.type||d==="checkType"&&ao(h))return  true;if(d==="extendsType"&&h.type==="TSConditionalType"){let{typeAnnotation:p}=f.returnType||f.typeAnnotation;if(p.type==="TSTypePredicate"&&p.typeAnnotation&&(p=p.typeAnnotation.typeAnnotation),p.type==="TSInferType"&&p.typeParameter.constraint)return  true}case "TSUnionType":case "TSIntersectionType":if((oo(h)||ev(h))&&h.types.length>1&&(!f.types||f.types.length>1))return  true;case "TSInferType":if(f.type==="TSInferType"){if(h.type==="TSRestType")return  false;if(d==="types"&&(h.type==="TSUnionType"||h.type==="TSIntersectionType")&&f.typeParameter.type==="TSTypeParameter"&&f.typeParameter.constraint)return  true}case "TSTypeOperator":return h.type==="TSArrayType"||h.type==="TSOptionalType"||h.type==="TSRestType"||d==="objectType"&&h.type==="TSIndexedAccessType"||h.type==="TSTypeOperator"||h.type==="TSTypeAnnotation"&&t.grandparent.type.startsWith("TSJSDoc");case "TSTypeQuery":return d==="objectType"&&h.type==="TSIndexedAccessType"||d==="elementType"&&h.type==="TSArrayType";case "TypeOperator":return h.type==="ArrayTypeAnnotation"||h.type==="NullableTypeAnnotation"||d==="objectType"&&(h.type==="IndexedAccessType"||h.type==="OptionalIndexedAccessType")||h.type==="TypeOperator";case "TypeofTypeAnnotation":return d==="objectType"&&(h.type==="IndexedAccessType"||h.type==="OptionalIndexedAccessType")||d==="elementType"&&h.type==="ArrayTypeAnnotation";case "ArrayTypeAnnotation":return h.type==="NullableTypeAnnotation";case "IntersectionTypeAnnotation":case "UnionTypeAnnotation":return h.type==="TypeOperator"||h.type==="ArrayTypeAnnotation"||h.type==="NullableTypeAnnotation"||h.type==="IntersectionTypeAnnotation"||h.type==="UnionTypeAnnotation"||d==="objectType"&&(h.type==="IndexedAccessType"||h.type==="OptionalIndexedAccessType");case "InferTypeAnnotation":case "NullableTypeAnnotation":return h.type==="ArrayTypeAnnotation"||d==="objectType"&&(h.type==="IndexedAccessType"||h.type==="OptionalIndexedAccessType");case "ComponentTypeAnnotation":case "FunctionTypeAnnotation":{if(f.type==="ComponentTypeAnnotation"&&(f.rendersType===null||f.rendersType===void 0))return  false;if(t.match(void 0,(m,g)=>g==="typeAnnotation"&&m.type==="TypeAnnotation",(m,g)=>g==="returnType"&&m.type==="ArrowFunctionExpression")||t.match(void 0,(m,g)=>g==="typeAnnotation"&&m.type==="TypePredicate",(m,g)=>g==="typeAnnotation"&&m.type==="TypeAnnotation",(m,g)=>g==="returnType"&&m.type==="ArrowFunctionExpression"))return  true;let p=h.type==="NullableTypeAnnotation"?t.grandparent:h;return p.type==="UnionTypeAnnotation"||p.type==="IntersectionTypeAnnotation"||p.type==="ArrayTypeAnnotation"||d==="objectType"&&(p.type==="IndexedAccessType"||p.type==="OptionalIndexedAccessType")||d==="checkType"&&h.type==="ConditionalTypeAnnotation"||d==="extendsType"&&h.type==="ConditionalTypeAnnotation"&&((a=f.returnType)==null?void 0:a.type)==="InferTypeAnnotation"&&((l=f.returnType)==null?void 0:l.typeParameter.bound)||p.type==="NullableTypeAnnotation"||h.type==="FunctionTypeParam"&&h.name===null&&vn(f).some(m=>{var g;return ((g=m.typeAnnotation)==null?void 0:g.type)==="NullableTypeAnnotation"})}case "OptionalIndexedAccessType":return d==="objectType"&&h.type==="IndexedAccessType";case "StringLiteral":case "NumericLiteral":case "Literal":if(typeof f.value=="string"&&h.type==="ExpressionStatement"&&!h.directive){let p=t.grandparent;return p.type==="Program"||p.type==="BlockStatement"}return d==="object"&&h.type==="MemberExpression"&&typeof f.value=="number";case "AssignmentExpression":{let p=t.grandparent;return d==="body"&&h.type==="ArrowFunctionExpression"?true:d==="key"&&(h.type==="ClassProperty"||h.type==="PropertyDefinition")&&h.computed||(d==="init"||d==="update")&&h.type==="ForStatement"?false:h.type==="ExpressionStatement"?f.left.type==="ObjectPattern":!(d==="key"&&h.type==="TSPropertySignature"||h.type==="AssignmentExpression"||h.type==="SequenceExpression"&&p.type==="ForStatement"&&(p.init===h||p.update===h)||d==="value"&&h.type==="Property"&&p.type==="ObjectPattern"&&p.properties.includes(h)||h.type==="NGChainedExpression"||d==="node"&&h.type==="JsExpressionRoot")}case "ConditionalExpression":switch(h.type){case "TaggedTemplateExpression":case "UnaryExpression":case "SpreadElement":case "BinaryExpression":case "LogicalExpression":case "NGPipeExpression":case "ExportDefaultDeclaration":case "AwaitExpression":case "JSXSpreadAttribute":case "TSTypeAssertion":case "TypeCastExpression":case "TSAsExpression":case "TSSatisfiesExpression":case "AsExpression":case "AsConstExpression":case "SatisfiesExpression":case "TSNonNullExpression":return  true;case "NewExpression":case "CallExpression":case "OptionalCallExpression":return d==="callee";case "ConditionalExpression":return e.experimentalTernaries?false:d==="test";case "MemberExpression":case "OptionalMemberExpression":return d==="object";default:return  false}case "FunctionExpression":switch(h.type){case "NewExpression":case "CallExpression":case "OptionalCallExpression":return d==="callee";case "TaggedTemplateExpression":return  true;default:return  false}case "ArrowFunctionExpression":switch(h.type){case "BinaryExpression":return h.operator!=="|>"||((u=f.extra)==null?void 0:u.parenthesized);case "NewExpression":case "CallExpression":case "OptionalCallExpression":return d==="callee";case "MemberExpression":case "OptionalMemberExpression":return d==="object";case "TSAsExpression":case "TSSatisfiesExpression":case "AsExpression":case "AsConstExpression":case "SatisfiesExpression":case "TSNonNullExpression":case "BindExpression":case "TaggedTemplateExpression":case "UnaryExpression":case "LogicalExpression":case "AwaitExpression":case "TSTypeAssertion":return  true;case "ConditionalExpression":return d==="test";default:return  false}case "ClassExpression":switch(h.type){case "NewExpression":return d==="callee";default:return  false}case "OptionalMemberExpression":case "OptionalCallExpression":case "CallExpression":case "MemberExpression":if(DY(t))return  true;case "TaggedTemplateExpression":case "TSNonNullExpression":if(d==="callee"&&(h.type==="BindExpression"||h.type==="NewExpression")){let p=f;for(;p;)switch(p.type){case "CallExpression":case "OptionalCallExpression":return  true;case "MemberExpression":case "OptionalMemberExpression":case "BindExpression":p=p.object;break;case "TaggedTemplateExpression":p=p.tag;break;case "TSNonNullExpression":p=p.expression;break;default:return  false}}return  false;case "BindExpression":return d==="callee"&&(h.type==="BindExpression"||h.type==="NewExpression")||d==="object"&&Pt(h);case "NGPipeExpression":return !(h.type==="NGRoot"||h.type==="NGMicrosyntaxExpression"||h.type==="ObjectProperty"&&!((c=f.extra)!=null&&c.parenthesized)||cn(h)||d==="arguments"&&tt(h)||d==="right"&&h.type==="NGPipeExpression"||d==="property"&&h.type==="MemberExpression"||h.type==="AssignmentExpression");case "JSXFragment":case "JSXElement":return d==="callee"||d==="left"&&h.type==="BinaryExpression"&&h.operator==="<"||!cn(h)&&h.type!=="ArrowFunctionExpression"&&h.type!=="AssignmentExpression"&&h.type!=="AssignmentPattern"&&h.type!=="BinaryExpression"&&h.type!=="NewExpression"&&h.type!=="ConditionalExpression"&&h.type!=="ExpressionStatement"&&h.type!=="JsExpressionRoot"&&h.type!=="JSXAttribute"&&h.type!=="JSXElement"&&h.type!=="JSXExpressionContainer"&&h.type!=="JSXFragment"&&h.type!=="LogicalExpression"&&!tt(h)&&!xs(h)&&h.type!=="ReturnStatement"&&h.type!=="ThrowStatement"&&h.type!=="TypeCastExpression"&&h.type!=="VariableDeclarator"&&h.type!=="YieldExpression";case "TSInstantiationExpression":return d==="object"&&Pt(h)}return  false}var mY=lt(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function gY(t){let e=0,{node:n}=t;for(;n;){let r=t.getParentNode(e++);if((r==null?void 0:r.type)==="ForStatement"&&r.init===n)return  true;n=r;}return  false}function yY(t){return Ng(t,e=>e.type==="ObjectTypeAnnotation"&&Ng(e,n=>n.type==="FunctionTypeAnnotation"))}function vY(t){return Qr(t)}function uu(t){let{parent:e,key:n}=t;switch(e.type){case "NGPipeExpression":if(n==="arguments"&&t.isLast)return t.callParent(uu);break;case "ObjectProperty":if(n==="value")return t.callParent(()=>t.key==="properties"&&t.isLast);break;case "BinaryExpression":case "LogicalExpression":if(n==="right")return t.callParent(uu);break;case "ConditionalExpression":if(n==="alternate")return t.callParent(uu);break;case "UnaryExpression":if(e.prefix)return t.callParent(uu);break}return  false}function vT(t,e){let{node:n,parent:r}=t;return n.type==="FunctionExpression"||n.type==="ClassExpression"?r.type==="ExportDefaultDeclaration"||!Hg(t,e):!Gy(n)||r.type!=="ExportDefaultDeclaration"&&Hg(t,e)?false:t.call(()=>vT(t,e),...PA(n))}function DY(t){return !!(t.match(void 0,(e,n)=>n==="expression"&&e.type==="ChainExpression",(e,n)=>n==="tag"&&e.type==="TaggedTemplateExpression")||t.match(e=>e.type==="OptionalCallExpression"||e.type==="OptionalMemberExpression",(e,n)=>n==="tag"&&e.type==="TaggedTemplateExpression")||t.match(e=>e.type==="OptionalCallExpression"||e.type==="OptionalMemberExpression",(e,n)=>n==="expression"&&e.type==="TSNonNullExpression",(e,n)=>n==="tag"&&e.type==="TaggedTemplateExpression")||t.match(void 0,(e,n)=>n==="expression"&&e.type==="ChainExpression",(e,n)=>n==="expression"&&e.type==="TSNonNullExpression",(e,n)=>n==="tag"&&e.type==="TaggedTemplateExpression")||t.match(void 0,(e,n)=>n==="expression"&&e.type==="TSNonNullExpression",(e,n)=>n==="expression"&&e.type==="ChainExpression",(e,n)=>n==="tag"&&e.type==="TaggedTemplateExpression")||t.match(e=>e.type==="OptionalMemberExpression"||e.type==="OptionalCallExpression",(e,n)=>n==="object"&&e.type==="MemberExpression"||n==="callee"&&(e.type==="CallExpression"||e.type==="NewExpression"))||t.match(e=>e.type==="OptionalMemberExpression"||e.type==="OptionalCallExpression",(e,n)=>n==="expression"&&e.type==="TSNonNullExpression",(e,n)=>n==="object"&&e.type==="MemberExpression"||n==="callee"&&e.type==="CallExpression")||t.match(e=>e.type==="CallExpression"||e.type==="MemberExpression",(e,n)=>n==="expression"&&e.type==="ChainExpression")&&(t.match(void 0,void 0,(e,n)=>n==="callee"&&(e.type==="CallExpression"&&!e.optional||e.type==="NewExpression")||n==="object"&&e.type==="MemberExpression"&&!e.optional)||t.match(void 0,void 0,(e,n)=>n==="expression"&&e.type==="TSNonNullExpression",(e,n)=>n==="object"&&e.type==="MemberExpression"||n==="callee"&&e.type==="CallExpression"))||t.match(e=>e.type==="CallExpression"||e.type==="MemberExpression",(e,n)=>n==="expression"&&e.type==="TSNonNullExpression",(e,n)=>n==="expression"&&e.type==="ChainExpression",(e,n)=>n==="object"&&e.type==="MemberExpression"||n==="callee"&&e.type==="CallExpression"))}function zg(t){return t.type==="Identifier"?true:Pt(t)?!t.computed&&!t.optional&&t.property.type==="Identifier"&&zg(t.object):false}function bY(t){return t.type==="ChainExpression"&&(t=t.expression),zg(t)||tt(t)&&!t.optional&&zg(t.callee)}var ma=Hg;function CY(t,e){let n=e-1;n=bl(t,n,{backwards:true}),n=Cl(t,n,{backwards:true}),n=bl(t,n,{backwards:true});let r=Cl(t,n,{backwards:true});return n!==r}var xY=CY,EY=()=>true;function uv(t,e){let n=t.node;return n.printed=true,e.printer.printComment(t,e)}function FY(t,e){var n;let r=t.node,i=[uv(t,e)],{printer:s,originalText:o,locStart:a,locEnd:l}=e;if((n=s.isBlockComment)!=null&&n.call(s,r)){let c=cr(o,l(r))?cr(o,a(r),{backwards:true})?Y:fe:" ";i.push(c);}else i.push(Y);let u=Cl(o,bl(o,l(r)));return u!==false&&cr(o,u)&&i.push(Y),i}function wY(t,e,n){var r;let i=t.node,s=uv(t,e),{printer:o,originalText:a,locStart:l}=e,u=(r=o.isBlockComment)==null?void 0:r.call(o,i);if(n!=null&&n.hasLineSuffix&&!(n!=null&&n.isBlock)||cr(a,l(i),{backwards:true})){let c=xY(a,l(i));return {doc:HC([Y,c?Y:"",s]),isBlock:u,hasLineSuffix:true}}return !u||n!=null&&n.hasLineSuffix?{doc:[HC([" ",s]),$i],isBlock:u,hasLineSuffix:true}:{doc:[" ",s],isBlock:u,hasLineSuffix:false}}function kt(t,e,n={}){let{node:r}=t;if(!it(r==null?void 0:r.comments))return "";let{indent:i=false,marker:s,filter:o=EY}=n,a=[];if(t.each(({node:u})=>{u.leading||u.trailing||u.marker!==s||!o(u)||a.push(uv(t,e));},"comments"),a.length===0)return "";let l=Ue(Y,a);return i?Z([Y,l]):l}function DT(t,e){let n=t.node;if(!n)return {};let r=e[Symbol.for("printedComments")];if((n.comments||[]).filter(a=>!r.has(a)).length===0)return {leading:"",trailing:""};let i=[],s=[],o;return t.each(()=>{let a=t.node;if(r!=null&&r.has(a))return;let{leading:l,trailing:u}=a;l?i.push(FY(t,e)):u&&(o=wY(t,e,o),s.push(o.doc));},"comments"),{leading:i,trailing:s}}function Ur(t,e,n){let{leading:r,trailing:i}=DT(t,n);return !r&&!i?e:Rg(e,s=>[r,s,i])}var SY=class extends Error{constructor(e,n,r="type"){super(`Unexpected ${n} node ${r}: ${JSON.stringify(e[r])}.`);le(this,"name","UnexpectedNodeError");this.node=e;}},Vl=SY;function AY(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Ir,TY=class{constructor(t){rJ(this,Ir),iJ(this,Ir,new Set(t));}getLeadingWhitespaceCount(t){let e=$s(this,Ir),n=0;for(let r=0;r<t.length&&e.has(t.charAt(r));r++)n++;return n}getTrailingWhitespaceCount(t){let e=$s(this,Ir),n=0;for(let r=t.length-1;r>=0&&e.has(t.charAt(r));r--)n++;return n}getLeadingWhitespace(t){let e=this.getLeadingWhitespaceCount(t);return t.slice(0,e)}getTrailingWhitespace(t){let e=this.getTrailingWhitespaceCount(t);return t.slice(t.length-e)}hasLeadingWhitespace(t){return $s(this,Ir).has(t.charAt(0))}hasTrailingWhitespace(t){return $s(this,Ir).has(ut(false,t,-1))}trimStart(t){let e=this.getLeadingWhitespaceCount(t);return t.slice(e)}trimEnd(t){let e=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-e)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,e=false){let n=`[${AY([...$s(this,Ir)].join(""))}]+`,r=new RegExp(e?`(${n})`:n,"u");return t.split(r)}hasWhitespaceCharacter(t){let e=$s(this,Ir);return Array.prototype.some.call(t,n=>e.has(n))}hasNonWhitespaceCharacter(t){let e=$s(this,Ir);return Array.prototype.some.call(t,n=>!e.has(n))}isWhitespaceOnly(t){let e=$s(this,Ir);return Array.prototype.every.call(t,n=>e.has(n))}};Ir=new WeakMap;var kY=TY,id=new kY(` 
\r	`),Vp=t=>t===""||t===fe||t===Y||t===X;function BY(t,e,n){var r,i,s,o,a;let{node:l}=t;if(l.type==="JSXElement"&&zY(l))return [n("openingElement"),n("closingElement")];let u=l.type==="JSXElement"?n("openingElement"):n("openingFragment"),c=l.type==="JSXElement"?n("closingElement"):n("closingFragment");if(l.children.length===1&&l.children[0].type==="JSXExpressionContainer"&&(l.children[0].expression.type==="TemplateLiteral"||l.children[0].expression.type==="TaggedTemplateExpression"))return [u,...t.map(n,"children"),c];l.children=l.children.map(S=>KY(S)?{type:"JSXText",value:" ",raw:" "}:S);let f=l.children.some(Yt),d=l.children.filter(S=>S.type==="JSXExpressionContainer").length>1,h=l.type==="JSXElement"&&l.openingElement.attributes.length>1,p=An(u)||f||h||d,m=t.parent.rootMarker==="mdx",g=e.singleQuote?"{' '}":'{" "}',y=m?fe:Oe([g,X]," "),F=((i=(r=l.openingElement)==null?void 0:r.name)==null?void 0:i.name)==="fbt",x=OY(t,e,n,y,F),b=l.children.some(S=>fc(S));for(let S=x.length-2;S>=0;S--){let A=x[S]===""&&x[S+1]==="",M=x[S]===Y&&x[S+1]===""&&x[S+2]===Y,k=(x[S]===X||x[S]===Y)&&x[S+1]===""&&x[S+2]===y,N=x[S]===y&&x[S+1]===""&&(x[S+2]===X||x[S+2]===Y),O=x[S]===y&&x[S+1]===""&&x[S+2]===y,T=x[S]===X&&x[S+1]===""&&x[S+2]===Y||x[S]===Y&&x[S+1]===""&&x[S+2]===X;M&&b||A||k||O||T?x.splice(S,2):N&&x.splice(S+1,2);}for(;x.length>0&&Vp(ut(false,x,-1));)x.pop();for(;x.length>1&&Vp(x[0])&&Vp(x[1]);)x.shift(),x.shift();let D=[""];for(let[S,A]of x.entries()){if(A===y){if(S===1&&xG(x[S-1])){if(x.length===2){D.push([D.pop(),g]);continue}D.push([g,Y],"");continue}else if(S===x.length-1){D.push([D.pop(),g]);continue}else if(x[S-1]===""&&x[S-2]===Y){D.push([D.pop(),g]);continue}}S%2===0?D.push([D.pop(),A]):D.push(A,""),An(A)&&(p=true);}let C=b?JA(D):z(D,{shouldBreak:true});if(((s=e.cursorNode)==null?void 0:s.type)==="JSXText"&&l.children.includes(e.cursorNode)?C=[Mf,C,Mf]:((o=e.nodeBeforeCursor)==null?void 0:o.type)==="JSXText"&&l.children.includes(e.nodeBeforeCursor)?C=[Mf,C]:((a=e.nodeAfterCursor)==null?void 0:a.type)==="JSXText"&&l.children.includes(e.nodeAfterCursor)&&(C=[C,Mf]),m)return C;let E=z([u,Z([Y,C]),Y,c]);return p?E:_o([z([u,...x,c]),E])}function OY(t,e,n,r,i){let s="",o=[s];function a(u){s=u,o.push([o.pop(),u]);}function l(u){u!==""&&(s=u,o.push(u,""));}return t.each(({node:u,next:c})=>{if(u.type==="JSXText"){let f=Ar(u);if(fc(u)){let d=id.split(f,true);d[0]===""&&(d.shift(),/\n/u.test(d[0])?l(XC(i,d[1],u,c)):l(r),d.shift());let h;if(ut(false,d,-1)===""&&(d.pop(),h=d.pop()),d.length===0)return;for(let[p,m]of d.entries())p%2===1?l(fe):a(m);h!==void 0?/\n/u.test(h)?l(XC(i,s,u,c)):l(r):l(GC(i,s,u,c));}else /\n/u.test(f)?f.match(/\n/gu).length>1&&l(Y):l(r);}else {let f=n();if(a(f),c&&fc(c)){let d=id.trim(Ar(c)),[h]=id.split(d);l(GC(i,h,u,c));}else l(Y);}},"children"),o}function GC(t,e,n,r){return t?"":n.type==="JSXElement"&&!n.closingElement||(r==null?void 0:r.type)==="JSXElement"&&!r.closingElement?e.length===1?X:Y:X}function XC(t,e,n,r){return t?Y:e.length===1?n.type==="JSXElement"&&!n.closingElement||(r==null?void 0:r.type)==="JSXElement"&&!r.closingElement?Y:X:Y}var $Y=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function MY(t,e,n){let{parent:r}=t;if($Y.has(r.type))return e;let i=t.match(void 0,o=>o.type==="ArrowFunctionExpression",tt,o=>o.type==="JSXExpressionContainer"),s=ma(t,n);return z([s?"":Oe("("),Z([X,e]),X,s?"":Oe(")")],{shouldBreak:i})}function PY(t,e,n){let{node:r}=t,i=[];if(i.push(n("name")),r.value){let s;if(Qn(r.value)){let o=Ar(r.value),a=rn(false,rn(false,o.slice(1,-1),"&apos;","'"),"&quot;",'"'),l=kA(a,e.jsxSingleQuote);a=l==='"'?rn(false,a,'"',"&quot;"):rn(false,a,"'","&apos;"),s=t.call(()=>Ur(t,Zo(l+a+l),e),"value");}else s=n("value");i.push("=",s);}return i}function NY(t,e,n){let{node:r}=t,i=(s,o)=>s.type==="JSXEmptyExpression"||!se(s)&&(cn(s)||Qr(s)||s.type==="ArrowFunctionExpression"||s.type==="AwaitExpression"&&(i(s.argument,s)||s.argument.type==="JSXElement")||tt(s)||s.type==="ChainExpression"&&tt(s.expression)||s.type==="FunctionExpression"||s.type==="TemplateLiteral"||s.type==="TaggedTemplateExpression"||s.type==="DoExpression"||Yt(o)&&(s.type==="ConditionalExpression"||ss(s)));return i(r.expression,t.parent)?z(["{",n("expression"),as,"}"]):z(["{",Z([X,n("expression")]),X,as,"}"])}function IY(t,e,n){var r,i;let{node:s}=t,o=se(s.name)||se(s.typeParameters)||se(s.typeArguments);if(s.selfClosing&&s.attributes.length===0&&!o)return ["<",n("name"),s.typeArguments?n("typeArguments"):n("typeParameters")," />"];if(((r=s.attributes)==null?void 0:r.length)===1&&Qn(s.attributes[0].value)&&!s.attributes[0].value.value.includes(`
`)&&!o&&!se(s.attributes[0]))return z(["<",n("name"),s.typeArguments?n("typeArguments"):n("typeParameters")," ",...t.map(n,"attributes"),s.selfClosing?" />":">"]);let a=(i=s.attributes)==null?void 0:i.some(u=>Qn(u.value)&&u.value.value.includes(`
`)),l=e.singleAttributePerLine&&s.attributes.length>1?Y:fe;return z(["<",n("name"),s.typeArguments?n("typeArguments"):n("typeParameters"),Z(t.map(()=>[l,n()],"attributes")),...LY(s,e,o)],{shouldBreak:a})}function LY(t,e,n){return t.selfClosing?[fe,"/>"]:RY(t,e,n)?[">"]:[X,">"]}function RY(t,e,n){let r=t.attributes.length>0&&se(ut(false,t.attributes,-1),pe.Trailing);return t.attributes.length===0&&!n||(e.bracketSameLine||e.jsxBracketSameLine)&&(!n||t.attributes.length>0)&&!r}function _Y(t,e,n){let{node:r}=t,i=[];i.push("</");let s=n("name");return se(r.name,pe.Leading|pe.Line)?i.push(Z([Y,s]),Y):se(r.name,pe.Leading|pe.Block)?i.push(" ",s):i.push(s),i.push(">"),i}function jY(t,e){let{node:n}=t,r=se(n),i=se(n,pe.Line),s=n.type==="JSXOpeningFragment";return [s?"<":"</",Z([i?Y:r&&!s?" ":"",kt(t,e)]),i?Y:"",">"]}function VY(t,e,n){let r=Ur(t,BY(t,e,n),e);return MY(t,r,e)}function qY(t,e){let{node:n}=t,r=se(n,pe.Line);return [kt(t,e,{indent:r}),r?Y:""]}function WY(t,e,n){let{node:r}=t;return ["{",t.call(({node:i})=>{let s=["...",n()];return !se(i)||!lT(t)?s:[Z([X,Ur(t,s,e)]),X]},r.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function HY(t,e,n){let{node:r}=t;if(r.type.startsWith("JSX"))switch(r.type){case "JSXAttribute":return PY(t,e,n);case "JSXIdentifier":return r.name;case "JSXNamespacedName":return Ue(":",[n("namespace"),n("name")]);case "JSXMemberExpression":return Ue(".",[n("object"),n("property")]);case "JSXSpreadAttribute":case "JSXSpreadChild":return WY(t,e,n);case "JSXExpressionContainer":return NY(t,e,n);case "JSXFragment":case "JSXElement":return VY(t,e,n);case "JSXOpeningElement":return IY(t,e,n);case "JSXClosingElement":return _Y(t,e,n);case "JSXOpeningFragment":case "JSXClosingFragment":return jY(t,e);case "JSXEmptyExpression":return qY(t,e);case "JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Vl(r,"JSX")}}function zY(t){if(t.children.length===0)return  true;if(t.children.length>1)return  false;let e=t.children[0];return e.type==="JSXText"&&!fc(e)}function fc(t){return t.type==="JSXText"&&(id.hasNonWhitespaceCharacter(Ar(t))||!/\n/u.test(Ar(t)))}function KY(t){return t.type==="JSXExpressionContainer"&&Qn(t.expression)&&t.expression.value===" "&&!se(t.expression)}function UY(t){let{node:e,parent:n}=t;if(!Yt(e)||!Yt(n))return  false;let{index:r,siblings:i}=t,s;for(let o=r;o>0;o--){let a=i[o-1];if(!(a.type==="JSXText"&&!fc(a))){s=a;break}}return (s==null?void 0:s.type)==="JSXExpressionContainer"&&s.expression.type==="JSXEmptyExpression"&&Rh(s.expression)}function JY(t){return Rh(t.node)||UY(t)}var bT=JY,GY=0;function CT(t,e,n){var r;let{node:i,parent:s,grandparent:o,key:a}=t,l=a!=="body"&&(s.type==="IfStatement"||s.type==="WhileStatement"||s.type==="SwitchStatement"||s.type==="DoWhileStatement"),u=i.operator==="|>"&&((r=t.root.extra)==null?void 0:r.__isUsingHackPipeline),c=Kg(t,n,e,false,l);if(l)return c;if(u)return z(c);if(tt(s)&&s.callee===i||s.type==="UnaryExpression"||Pt(s)&&!s.computed)return z([Z([X,...c]),X]);let f=s.type==="ReturnStatement"||s.type==="ThrowStatement"||s.type==="JSXExpressionContainer"&&o.type==="JSXAttribute"||i.operator!=="|"&&s.type==="JsExpressionRoot"||i.type!=="NGPipeExpression"&&(s.type==="NGRoot"&&e.parser==="__ng_binding"||s.type==="NGMicrosyntaxExpression"&&o.type==="NGMicrosyntax"&&o.body.length===1)||i===s.body&&s.type==="ArrowFunctionExpression"||i!==s.body&&s.type==="ForStatement"||s.type==="ConditionalExpression"&&o.type!=="ReturnStatement"&&o.type!=="ThrowStatement"&&!tt(o)||s.type==="TemplateLiteral",d=s.type==="AssignmentExpression"||s.type==="VariableDeclarator"||s.type==="ClassProperty"||s.type==="PropertyDefinition"||s.type==="TSAbstractPropertyDefinition"||s.type==="ClassPrivateProperty"||xs(s),h=ss(i.left)&&Zy(i.operator,i.left.operator);if(f||dc(i)&&!h||!dc(i)&&d)return z(c);if(c.length===0)return "";let p=Yt(i.right),m=c.findIndex(D=>typeof D!="string"&&!Array.isArray(D)&&D.type===Tr),g=c.slice(0,m===-1?1:m+1),y=c.slice(g.length,p?-1:void 0),F=Symbol("logicalChain-"+ ++GY),x=z([...g,Z(y)],{id:F});if(!p)return x;let b=ut(false,c,-1);return z([x,_h(b,{groupId:F})])}function Kg(t,e,n,r,i){var s;let{node:o}=t;if(!ss(o))return [z(e())];let a=[];Zy(o.operator,o.left.operator)?a=t.call(g=>Kg(g,e,n,true,i),"left"):a.push(z(e("left")));let l=dc(o),u=(o.operator==="|>"||o.type==="NGPipeExpression"||XY(t,n))&&!so(n.originalText,o.right),c=!se(o.right,pe.Leading,QA)&&so(n.originalText,o.right),f=o.type==="NGPipeExpression"?"|":o.operator,d=o.type==="NGPipeExpression"&&o.arguments.length>0?z(Z([X,": ",Ue([fe,": "],t.map(()=>Oi(2,z(e())),"arguments"))])):"",h;if(l)h=[f," ",e("right"),d];else {let g=f==="|>"&&((s=t.root.extra)!=null&&s.__isUsingHackPipeline)?t.call(y=>Kg(y,e,n,true,i),"right"):e("right");if(n.experimentalOperatorPosition==="start"){let y="";if(c)switch(Do(g)){case os:y=g.splice(0,1)[0];break;case Es:y=g.contents.splice(0,1)[0];break}h=[fe,y,f," ",g,d];}else h=[u?fe:"",f,u?" ":fe,g,d];}let{parent:p}=t,m=se(o.left,pe.Trailing|pe.Line);if((m||!(i&&o.type==="LogicalExpression")&&p.type!==o.type&&o.left.type!==o.type&&o.right.type!==o.type)&&(h=z(h,{shouldBreak:m})),n.experimentalOperatorPosition==="start"?a.push(l||c?" ":"",h):a.push(u?"":" ",h),r&&se(o)){let g=nv(Ur(t,a,n));return g.type===yo?g.parts:Array.isArray(g)?g:[g]}return a}function dc(t){return t.type!=="LogicalExpression"?false:!!(Qr(t.right)&&t.right.properties.length>0||cn(t.right)&&t.right.elements.length>0||Yt(t.right))}var YC=t=>t.type==="BinaryExpression"&&t.operator==="|";function XY(t,e){return (e.parser==="__vue_expression"||e.parser==="__vue_ts_expression")&&YC(t.node)&&!t.hasAncestor(n=>!YC(n)&&n.type!=="JsExpressionRoot")}function YY(t,e,n){let{node:r}=t;if(r.type.startsWith("NG"))switch(r.type){case "NGRoot":return [n("node"),se(r.node)?" //"+Ya(r.node)[0].value.trimEnd():""];case "NGPipeExpression":return CT(t,e,n);case "NGChainedExpression":return z(Ue([";",fe],t.map(()=>ZY(t)?n():["(",n(),")"],"expressions")));case "NGEmptyExpression":return "";case "NGMicrosyntax":return t.map(()=>[t.isFirst?"":QC(t)?" ":[";",fe],n()],"body");case "NGMicrosyntaxKey":return /^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(r.name)?r.name:JSON.stringify(r.name);case "NGMicrosyntaxExpression":return [n("expression"),r.alias===null?"":[" as ",n("alias")]];case "NGMicrosyntaxKeyedExpression":{let{index:i,parent:s}=t,o=QC(t)||(i===1&&(r.key.name==="then"||r.key.name==="else"||r.key.name==="as")||(i===2||i===3)&&(r.key.name==="else"&&s.body[i-1].type==="NGMicrosyntaxKeyedExpression"&&s.body[i-1].key.name==="then"||r.key.name==="track"))&&s.body[0].type==="NGMicrosyntaxExpression";return [n("key"),o?" ":": ",n("expression")]}case "NGMicrosyntaxLet":return ["let ",n("key"),r.value===null?"":[" = ",n("value")]];case "NGMicrosyntaxAs":return [n("key")," as ",n("alias")];default:throw new Vl(r,"Angular")}}function QC({node:t,index:e}){return t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="of"&&e===1}var QY=lt(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function ZY({node:t}){return Ng(t,QY)}function xT(t,e,n){let{node:r}=t;return z([Ue(fe,t.map(n,"decorators")),ET(r,e)?Y:fe])}function eQ(t,e,n){return FT(t.node)?[Ue(Y,t.map(n,"declaration","decorators")),Y]:""}function tQ(t,e,n){let{node:r,parent:i}=t,{decorators:s}=r;if(!it(s)||FT(i)||bT(t))return "";let o=r.type==="ClassExpression"||r.type==="ClassDeclaration"||ET(r,e);return [t.key==="declaration"&&KJ(i)?Y:o?$i:"",Ue(fe,t.map(n,"decorators")),fe]}function ET(t,e){return t.decorators.some(n=>cr(e.originalText,Je(n)))}function FT(t){var e;if(t.type!=="ExportDefaultDeclaration"&&t.type!=="ExportNamedDeclaration"&&t.type!=="DeclareExportDeclaration")return  false;let n=(e=t.declaration)==null?void 0:e.decorators;return it(n)&&Nh(t,n[0])}var Gd=class extends Error{constructor(){super(...arguments);le(this,"name","ArgExpansionBailout");}};function nQ(t,e,n){let{node:r}=t,i=$r(r);if(i.length===0)return ["(",kt(t,e),")"];let s=i.length-1;if(sQ(i)){let f=["("];return Ud(t,(d,h)=>{f.push(n()),h!==s&&f.push(", ");}),f.push(")"),f}let o=false,a=[];Ud(t,({node:f},d)=>{let h=n();d===s||(Cs(f,e)?(o=true,h=[h,",",Y,Y]):h=[h,",",fe]),a.push(h);});let l=!e.parser.startsWith("__ng_")&&r.type!=="ImportExpression"&&bs(e,"all")?",":"";function u(){return z(["(",Z([fe,...a]),l,fe,")"],{shouldBreak:true})}if(o||t.parent.type!=="Decorator"&&nG(i))return u();if(iQ(i)){let f=a.slice(1);if(f.some(An))return u();let d;try{d=n(VC(r,0),{expandFirstArg:!0});}catch(h){if(h instanceof Gd)return u();throw h}return An(d)?[$i,_o([["(",z(d,{shouldBreak:true}),", ",...f,")"],u()])]:_o([["(",d,", ",...f,")"],["(",z(d,{shouldBreak:true}),", ",...f,")"],u()])}if(rQ(i,a,e)){let f=a.slice(0,-1);if(f.some(An))return u();let d;try{d=n(VC(r,-1),{expandLastArg:!0});}catch(h){if(h instanceof Gd)return u();throw h}return An(d)?[$i,_o([["(",...f,z(d,{shouldBreak:true}),")"],u()])]:_o([["(",...f,d,")"],["(",...f,z(d,{shouldBreak:true}),")"],u()])}let c=["(",Z([X,...a]),Oe(l),X,")"];return qA(t)?c:z(c,{shouldBreak:a.some(An)||o})}function Au(t,e=false){return Qr(t)&&(t.properties.length>0||se(t))||cn(t)&&(t.elements.length>0||se(t))||t.type==="TSTypeAssertion"&&Au(t.expression)||xi(t)&&Au(t.expression)||t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&(!t.returnType||!t.returnType.typeAnnotation||t.returnType.typeAnnotation.type!=="TSTypeReference"||oQ(t.body))&&(t.body.type==="BlockStatement"||t.body.type==="ArrowFunctionExpression"&&Au(t.body,true)||Qr(t.body)||cn(t.body)||!e&&(tt(t.body)||t.body.type==="ConditionalExpression")||Yt(t.body))||t.type==="DoExpression"||t.type==="ModuleExpression"}function rQ(t,e,n){var r,i;let s=ut(false,t,-1);if(t.length===1){let a=ut(false,e,-1);if((r=a.label)!=null&&r.embed&&((i=a.label)==null?void 0:i.hug)!==false)return  true}let o=ut(false,t,-2);return !se(s,pe.Leading)&&!se(s,pe.Trailing)&&Au(s)&&(!o||o.type!==s.type)&&(t.length!==2||o.type!=="ArrowFunctionExpression"||!cn(s))&&!(t.length>1&&XT(s,n))}function iQ(t){if(t.length!==2)return  false;let[e,n]=t;return e.type==="ModuleExpression"&&aQ(n)?true:!se(e)&&(e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement")&&n.type!=="FunctionExpression"&&n.type!=="ArrowFunctionExpression"&&n.type!=="ConditionalExpression"&&wT(n)&&!Au(n)}function wT(t){if(t.type==="ParenthesizedExpression")return wT(t.expression);if(xi(t)||t.type==="TypeCastExpression"){let{typeAnnotation:e}=t;if(e.type==="TypeAnnotation"&&(e=e.typeAnnotation),e.type==="TSArrayType"&&(e=e.elementType,e.type==="TSArrayType"&&(e=e.elementType)),e.type==="GenericTypeAnnotation"||e.type==="TSTypeReference"){let n=e.typeArguments??e.typeParameters;(n==null?void 0:n.params.length)===1&&(e=n.params[0]);}return Yy(e)&&Rr(t.expression,1)}return El(t)&&$r(t).length>1?false:ss(t)?Rr(t.left,1)&&Rr(t.right,1):IA(t)||Rr(t)}function sQ(t){return t.length===2?ZC(t,0):t.length===3?t[0].type==="Identifier"&&ZC(t,1):false}function ZC(t,e){let n=t[e],r=t[e+1];return n.type==="ArrowFunctionExpression"&&vn(n).length===0&&n.body.type==="BlockStatement"&&r.type==="ArrayExpression"&&!t.some(i=>se(i))}function oQ(t){return t.type==="BlockStatement"&&(t.body.some(e=>e.type!=="EmptyStatement")||se(t,pe.Dangling))}function aQ(t){return t.type==="ObjectExpression"&&t.properties.length===1&&xs(t.properties[0])&&t.properties[0].key.type==="Identifier"&&t.properties[0].key.name==="type"&&Qn(t.properties[0].value)&&t.properties[0].value.value==="module"}var Ug=nQ,lQ=t=>((t.type==="ChainExpression"||t.type==="TSNonNullExpression")&&(t=t.expression),tt(t)&&$r(t).length>0);function uQ(t,e,n){var r;let i=n("object"),s=ST(t,e,n),{node:o}=t,a=t.findAncestor(c=>!(Pt(c)||c.type==="TSNonNullExpression")),l=t.findAncestor(c=>!(c.type==="ChainExpression"||c.type==="TSNonNullExpression")),u=a&&(a.type==="NewExpression"||a.type==="BindExpression"||a.type==="AssignmentExpression"&&a.left.type!=="Identifier")||o.computed||o.object.type==="Identifier"&&o.property.type==="Identifier"&&!Pt(l)||(l.type==="AssignmentExpression"||l.type==="VariableDeclarator")&&(lQ(o.object)||((r=i.label)==null?void 0:r.memberChain));return _c(i.label,[i,u?s:z(Z([X,s]))])}function ST(t,e,n){let r=n("property"),{node:i}=t,s=Bn(t);return i.computed?!i.property||is(i.property)?[s,"[",r,"]"]:z([s,"[",Z([X,r]),X,"]"]):[s,".",r]}function AT(t,e,n){if(t.node.type==="ChainExpression")return t.call(()=>AT(t,e,n),"expression");let{parent:r}=t,i=!r||r.type==="ExpressionStatement",s=[];function o(T){let{originalText:I}=e,j=jl(I,Je(T));return I.charAt(j)===")"?j!==false&&Uy(I,j+1):Cs(T,e)}function a(){let{node:T}=t;if(T.type==="ChainExpression")return t.call(a,"expression");if(tt(T)&&(Oa(T.callee)||tt(T.callee))){let I=o(T);s.unshift({node:T,hasTrailingEmptyLine:I,printed:[Ur(t,[Bn(t),ea(t,e,n),Ug(t,e,n)],e),I?Y:""]}),t.call(a,"callee");}else Oa(T)?(s.unshift({node:T,needsParens:ma(t,e),printed:Ur(t,Pt(T)?ST(t,e,n):JT(t,e,n),e)}),t.call(a,"object")):T.type==="TSNonNullExpression"?(s.unshift({node:T,printed:Ur(t,"!",e)}),t.call(a,"expression")):s.unshift({node:T,printed:n()});}let{node:l}=t;s.unshift({node:l,printed:[Bn(t),ea(t,e,n),Ug(t,e,n)]}),l.callee&&t.call(a,"callee");let u=[],c=[s[0]],f=1;for(;f<s.length&&(s[f].node.type==="TSNonNullExpression"||tt(s[f].node)||Pt(s[f].node)&&s[f].node.computed&&is(s[f].node.property));++f)c.push(s[f]);if(!tt(s[0].node))for(;f+1<s.length&&Oa(s[f].node)&&Oa(s[f+1].node);++f)c.push(s[f]);u.push(c),c=[];let d=false;for(;f<s.length;++f){if(d&&Oa(s[f].node)){if(s[f].node.computed&&is(s[f].node.property)){c.push(s[f]);continue}u.push(c),c=[],d=false;}(tt(s[f].node)||s[f].node.type==="ImportExpression")&&(d=true),c.push(s[f]),se(s[f].node,pe.Trailing)&&(u.push(c),c=[],d=false);}c.length>0&&u.push(c);function h(T){return /^[A-Z]|^[$_]+$/u.test(T)}function p(T){return T.length<=e.tabWidth}function m(T){var I;let j=(I=T[1][0])==null?void 0:I.node.computed;if(T[0].length===1){let R=T[0][0].node;return R.type==="ThisExpression"||R.type==="Identifier"&&(h(R.name)||i&&p(R.name)||j)}let _=ut(false,T[0],-1).node;return Pt(_)&&_.property.type==="Identifier"&&(h(_.property.name)||j)}let g=u.length>=2&&!se(u[1][0].node)&&m(u);function y(T){let I=T.map(j=>j.printed);return T.length>0&&ut(false,T,-1).needsParens?["(",...I,")"]:I}function F(T){return T.length===0?"":Z([Y,Ue(Y,T.map(y))])}let x=u.map(y),b=x,D=g?3:2,C=u.flat(),E=C.slice(1,-1).some(T=>se(T.node,pe.Leading))||C.slice(0,-1).some(T=>se(T.node,pe.Trailing))||u[D]&&se(u[D][0].node,pe.Leading);if(u.length<=D&&!E&&!u.some(T=>ut(false,T,-1).hasTrailingEmptyLine))return qA(t)?b:z(b);let S=ut(false,u[g?1:0],-1).node,A=!tt(S)&&o(S),M=[y(u[0]),g?u.slice(1,2).map(y):"",A?Y:"",F(u.slice(g?2:1))],k=s.map(({node:T})=>T).filter(tt);function N(){let T=ut(false,ut(false,u,-1),-1).node,I=ut(false,x,-1);return tt(T)&&An(I)&&k.slice(0,-1).some(j=>j.arguments.some(uc))}let O;return E||k.length>2&&k.some(T=>!T.arguments.every(I=>Rr(I)))||x.slice(0,-1).some(An)||N()?O=z(M):O=[An(b)||A?$i:"",_o([b,M])],_c({memberChain:true},O)}var cQ=AT;function TT(t,e,n){var r;let{node:i}=t,s=i.type==="NewExpression",o=i.type==="ImportExpression",a=Bn(t),l=$r(i),u=l.length===1&&jA(l[0],e.originalText);if(u||fQ(t)||Lh(i,t.parent)){let f=[];if(Ud(t,()=>{f.push(n());}),!(u&&(r=f[0].label)!=null&&r.embed))return [s?"new ":"",e2(t,n),a,ea(t,e,n),"(",Ue(", ",f),")"]}if(!o&&!s&&Oa(i.callee)&&!t.call(f=>ma(f,e),"callee",...i.callee.type==="ChainExpression"?["expression"]:[]))return cQ(t,e,n);let c=[s?"new ":"",e2(t,n),a,ea(t,e,n),Ug(t,e,n)];return o||tt(i.callee)?z(c):c}function e2(t,e){let{node:n}=t;return n.type==="ImportExpression"?`import${n.phase?`.${n.phase}`:""}`:e("callee")}function fQ(t){let{node:e}=t;if(e.type!=="CallExpression"||e.optional||e.callee.type!=="Identifier")return  false;let n=$r(e);return e.callee.name==="require"?n.length===1&&Qn(n[0])||n.length>1:e.callee.name==="define"&&t.parent.type==="ExpressionStatement"?n.length===1||n.length===2&&n[0].type==="ArrayExpression"||n.length===3&&Qn(n[0])&&n[1].type==="ArrayExpression":false}function jc(t,e,n,r,i,s){let o=pQ(t,e,n,r,s),a=s?n(s,{assignmentLayout:o}):"";switch(o){case "break-after-operator":return z([z(r),i,z(Z([fe,a]))]);case "never-break-after-operator":return z([z(r),i," ",a]);case "fluid":{let l=Symbol("assignment");return z([z(r),i,z(Z(fe),{id:l}),as,_h(a,{groupId:l})])}case "break-lhs":return z([r,i," ",z(a)]);case "chain":return [z(r),i,fe,a];case "chain-tail":return [z(r),i,Z([fe,a])];case "chain-tail-arrow-chain":return [z(r),i,a];case "only-left":return r}}function dQ(t,e,n){let{node:r}=t;return jc(t,e,n,n("left"),[" ",r.operator],"right")}function hQ(t,e,n){return jc(t,e,n,n("id")," =","init")}function pQ(t,e,n,r,i){let{node:s}=t,o=s[i];if(!o)return "only-left";let a=!sd(o);if(t.match(sd,kT,c=>!a||c.type!=="ExpressionStatement"&&c.type!=="VariableDeclaration"))return a?o.type==="ArrowFunctionExpression"&&o.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!a&&sd(o.right)||so(e.originalText,o))return "break-after-operator";if(s.type==="ImportAttribute"||o.type==="CallExpression"&&o.callee.name==="require"||e.parser==="json5"||e.parser==="jsonc"||e.parser==="json")return "never-break-after-operator";let l=CG(r);if(gQ(s)||bQ(s)||BT(s)&&l)return "break-lhs";let u=xQ(s,r,e);return t.call(()=>mQ(t,e,n,u),i)?"break-after-operator":yQ(s)?"break-lhs":!l&&(u||o.type==="TemplateLiteral"||o.type==="TaggedTemplateExpression"||o.type==="BooleanLiteral"||is(o)||o.type==="ClassExpression")?"never-break-after-operator":"fluid"}function mQ(t,e,n,r){let i=t.node;if(ss(i)&&!dc(i))return  true;switch(i.type){case "StringLiteralTypeAnnotation":case "SequenceExpression":return  true;case "TSConditionalType":case "ConditionalTypeAnnotation":if(!e.experimentalTernaries&&!wQ(i))break;return  true;case "ConditionalExpression":{if(!e.experimentalTernaries){let{test:u}=i;return ss(u)&&!dc(u)}let{consequent:a,alternate:l}=i;return a.type==="ConditionalExpression"||l.type==="ConditionalExpression"}case "ClassExpression":return it(i.decorators)}if(r)return  false;let s=i,o=[];for(;;)if(s.type==="UnaryExpression"||s.type==="AwaitExpression"||s.type==="YieldExpression"&&s.argument!==null)s=s.argument,o.push("argument");else if(s.type==="TSNonNullExpression")s=s.expression,o.push("expression");else break;return !!(Qn(s)||t.call(()=>OT(t,e,n),...o))}function gQ(t){if(kT(t)){let e=t.left||t.id;return e.type==="ObjectPattern"&&e.properties.length>2&&e.properties.some(n=>{var r;return xs(n)&&(!n.shorthand||((r=n.value)==null?void 0:r.type)==="AssignmentPattern")})}return  false}function sd(t){return t.type==="AssignmentExpression"}function kT(t){return sd(t)||t.type==="VariableDeclarator"}function yQ(t){let e=DQ(t);if(it(e)){let n=t.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(e.length>1&&e.some(r=>r[n]||r.default))return  true}return  false}var vQ=lt(["TSTypeAliasDeclaration","TypeAlias"]);function DQ(t){var e;if(vQ(t))return (e=t.typeParameters)==null?void 0:e.params}function bQ(t){if(t.type!=="VariableDeclarator")return  false;let{typeAnnotation:e}=t.id;if(!e||!e.typeAnnotation)return  false;let n=t2(e.typeAnnotation);return it(n)&&n.length>1&&n.some(r=>it(t2(r))||r.type==="TSConditionalType")}function BT(t){var e;return t.type==="VariableDeclarator"&&((e=t.init)==null?void 0:e.type)==="ArrowFunctionExpression"}var CQ=lt(["TSTypeReference","GenericTypeAnnotation"]);function t2(t){var e;if(CQ(t))return (e=t.typeArguments??t.typeParameters)==null?void 0:e.params}function OT(t,e,n,r=false){var i;let{node:s}=t,o=()=>OT(t,e,n,true);if(s.type==="ChainExpression"||s.type==="TSNonNullExpression")return t.call(o,"expression");if(tt(s)){if((i=TT(t,e,n).label)!=null&&i.memberChain)return  false;let a=$r(s);return !(a.length===0||a.length===1&&Qy(a[0],e))||EQ(s,n)?false:t.call(o,"callee")}return Pt(s)?t.call(o,"object"):r&&(s.type==="Identifier"||s.type==="ThisExpression")}function xQ(t,e,n){return xs(t)?(e=nv(e),typeof e=="string"&&Dl(e)<n.tabWidth+3):false}function EQ(t,e){let n=FQ(t);if(it(n)){if(n.length>1)return  true;if(n.length===1){let i=n[0];if(oo(i)||ev(i)||i.type==="TSTypeLiteral"||i.type==="ObjectTypeAnnotation")return  true}let r=t.typeParameters?"typeParameters":"typeArguments";if(An(e(r)))return  true}return  false}function FQ(t){var e;return (e=t.typeParameters??t.typeArguments)==null?void 0:e.params}function wQ(t){function e(n){switch(n.type){case "FunctionTypeAnnotation":case "GenericTypeAnnotation":case "TSFunctionType":return !!n.typeParameters;case "TSTypeReference":return !!(n.typeArguments??n.typeParameters);default:return  false}}return e(t.checkType)||e(t.extendsType)}function ga(t,e,n,r,i){let s=t.node,o=vn(s),a=i?ea(t,n,e):"";if(o.length===0)return [a,"(",kt(t,n,{filter:h=>Zr(n.originalText,Je(h))===")"}),")"];let{parent:l}=t,u=Lh(l),c=$T(s),f=[];if(lG(t,(h,p)=>{let m=p===o.length-1;m&&s.rest&&f.push("..."),f.push(e()),!m&&(f.push(","),u||c?f.push(" "):Cs(o[p],n)?f.push(Y,Y):f.push(fe));}),r&&!AQ(t)){if(An(a)||An(f))throw new Gd;return z([Lg(a),"(",Lg(f),")"])}let d=o.every(h=>!it(h.decorators));return c&&d?[a,"(",...f,")"]:u?[a,"(",...f,")"]:(LA(l)||XJ(l)||l.type==="TypeAlias"||l.type==="UnionTypeAnnotation"||l.type==="IntersectionTypeAnnotation"||l.type==="FunctionTypeAnnotation"&&l.returnType===s)&&o.length===1&&o[0].name===null&&s.this!==o[0]&&o[0].typeAnnotation&&s.typeParameters===null&&Yy(o[0].typeAnnotation)&&!s.rest?n.arrowParens==="always"||s.type==="HookTypeAnnotation"?["(",...f,")"]:f:[a,"(",Z([X,...f]),Oe(!aG(s)&&bs(n,"all")?",":""),X,")"]}function $T(t){if(!t)return  false;let e=vn(t);if(e.length!==1)return  false;let[n]=e;return !se(n)&&(n.type==="ObjectPattern"||n.type==="ArrayPattern"||n.type==="Identifier"&&n.typeAnnotation&&(n.typeAnnotation.type==="TypeAnnotation"||n.typeAnnotation.type==="TSTypeAnnotation")&&io(n.typeAnnotation.typeAnnotation)||n.type==="FunctionTypeParam"&&io(n.typeAnnotation)&&n!==t.rest||n.type==="AssignmentPattern"&&(n.left.type==="ObjectPattern"||n.left.type==="ArrayPattern")&&(n.right.type==="Identifier"||Qr(n.right)&&n.right.properties.length===0||cn(n.right)&&n.right.elements.length===0))}function SQ(t){let e;return t.returnType?(e=t.returnType,e.typeAnnotation&&(e=e.typeAnnotation)):t.typeAnnotation&&(e=t.typeAnnotation),e}function ql(t,e){var n;let r=SQ(t);if(!r)return  false;let i=(n=t.typeParameters)==null?void 0:n.params;if(i){if(i.length>1)return  false;if(i.length===1){let s=i[0];if(s.constraint||s.default)return  false}}return vn(t).length===1&&(io(r)||An(e))}function AQ(t){return t.match(e=>e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement",(e,n)=>{if(e.type==="CallExpression"&&n==="arguments"&&e.arguments.length===1&&e.callee.type==="CallExpression"){let r=e.callee.callee;return r.type==="Identifier"||r.type==="MemberExpression"&&!r.computed&&r.object.type==="Identifier"&&r.property.type==="Identifier"}return  false},(e,n)=>e.type==="VariableDeclarator"&&n==="init"||e.type==="ExportDefaultDeclaration"&&n==="declaration"||e.type==="TSExportAssignment"&&n==="expression"||e.type==="AssignmentExpression"&&n==="right"&&e.left.type==="MemberExpression"&&e.left.object.type==="Identifier"&&e.left.object.name==="module"&&e.left.property.type==="Identifier"&&e.left.property.name==="exports",e=>e.type!=="VariableDeclaration"||e.kind==="const"&&e.declarations.length===1)}function TQ(t){let e=vn(t);return e.length>1&&e.some(n=>n.type==="TSParameterProperty")}var kQ=lt(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),BQ=lt(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function OQ(t){let{types:e}=t;if(e.some(r=>se(r)))return  false;let n=e.find(r=>BQ(r));return n?e.every(r=>r===n||kQ(r)):false}function MT(t){return Yy(t)||io(t)?true:oo(t)?OQ(t):false}function $Q(t,e,n){let r=e.semi?";":"",{node:i}=t,s=[Zn(t),"opaque type ",n("id"),n("typeParameters")];return i.supertype&&s.push(": ",n("supertype")),i.impltype&&s.push(" = ",n("impltype")),s.push(r),s}function PT(t,e,n){let r=e.semi?";":"",{node:i}=t,s=[Zn(t)];s.push("type ",n("id"),n("typeParameters"));let o=i.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return [jc(t,e,n,s," =",o),r]}function NT(t,e,n){let r=false;return z(t.map(({isFirst:i,previous:s,node:o,index:a})=>{let l=n();if(i)return l;let u=io(o),c=io(s);return c&&u?[" & ",r?Z(l):l]:!c&&!u?e.experimentalOperatorPosition==="start"?Z([fe,"& ",l]):Z([" &",fe,l]):(a>1&&(r=true),[" & ",a>1?Z(l):l])},"types"))}function IT(t,e,n){let{node:r}=t,{parent:i}=t,s=i.type!=="TypeParameterInstantiation"&&(!ao(i)||!e.experimentalTernaries)&&i.type!=="TSTypeParameterInstantiation"&&i.type!=="GenericTypeAnnotation"&&i.type!=="TSTypeReference"&&i.type!=="TSTypeAssertion"&&i.type!=="TupleTypeAnnotation"&&i.type!=="TSTupleType"&&!(i.type==="FunctionTypeParam"&&!i.name&&t.grandparent.this!==i)&&!((i.type==="TypeAlias"||i.type==="VariableDeclarator"||i.type==="TSTypeAliasDeclaration")&&so(e.originalText,r)),o=MT(r),a=t.map(c=>{let f=n();return o||(f=Oi(2,f)),Ur(c,f,e)},"types");if(o)return Ue(" | ",a);let l=s&&!so(e.originalText,r),u=[Oe([l?fe:"","| "]),Ue([fe,"| "],a)];return ma(t,e)?z([Z(u),X]):(i.type==="TupleTypeAnnotation"||i.type==="TSTupleType")&&i[i.type==="TupleTypeAnnotation"&&i.types?"types":"elementTypes"].length>1?z([Z([Oe(["(",X]),u]),X,Oe(")")]):z(s?Z(u):u)}function MQ(t){var e;let{node:n,parent:r}=t;return n.type==="FunctionTypeAnnotation"&&(LA(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&Nh(r,n)||r.type==="ObjectTypeCallProperty"||((e=t.getParentNode(2))==null?void 0:e.type)==="DeclareFunction"))}function LT(t,e,n){let{node:r}=t,i=[jh(t)];(r.type==="TSConstructorType"||r.type==="TSConstructSignatureDeclaration")&&i.push("new ");let s=ga(t,n,e,false,true),o=[];return r.type==="FunctionTypeAnnotation"?o.push(MQ(t)?" => ":": ",n("returnType")):o.push(on(t,n,r.returnType?"returnType":"typeAnnotation")),ql(r,o)&&(s=z(s)),i.push(s,o),z(i)}function RT(t,e,n){return [n("objectType"),Bn(t),"[",n("indexType"),"]"]}function _T(t,e,n){return ["infer ",n("typeParameter")]}function n2(t,e,n){let{node:r}=t;return [r.postfix?"":n,on(t,e),r.postfix?n:""]}function jT(t,e,n){let{node:r}=t;return ["...",...r.type==="TupleTypeSpreadElement"&&r.label?[n("label"),": "]:[],n("typeAnnotation")]}function VT(t,e,n){let{node:r}=t;return [r.variance?n("variance"):"",n("label"),r.optional?"?":"",": ",n("elementType")]}var PQ=new WeakSet;function on(t,e,n="typeAnnotation"){let{node:{[n]:r}}=t;if(!r)return "";let i=false;if(r.type==="TSTypeAnnotation"||r.type==="TypeAnnotation"){let s=t.call(qT,n);(s==="=>"||s===":"&&se(r,pe.Leading))&&(i=true),PQ.add(r);}return i?[" ",e(n)]:e(n)}var qT=t=>t.match(e=>e.type==="TSTypeAnnotation",(e,n)=>(n==="returnType"||n==="typeAnnotation")&&(e.type==="TSFunctionType"||e.type==="TSConstructorType"))?"=>":t.match(e=>e.type==="TSTypeAnnotation",(e,n)=>n==="typeAnnotation"&&(e.type==="TSJSDocNullableType"||e.type==="TSJSDocNonNullableType"||e.type==="TSTypePredicate"))||t.match(e=>e.type==="TypeAnnotation",(e,n)=>n==="typeAnnotation"&&e.type==="Identifier",(e,n)=>n==="id"&&e.type==="DeclareFunction")||t.match(e=>e.type==="TypeAnnotation",(e,n)=>n==="typeAnnotation"&&e.type==="Identifier",(e,n)=>n==="id"&&e.type==="DeclareHook")||t.match(e=>e.type==="TypeAnnotation",(e,n)=>n==="bound"&&e.type==="TypeParameter"&&e.usesExtendsBound)?"":":";function WT(t,e,n){let r=qT(t);return r?[r," ",n("typeAnnotation")]:n("typeAnnotation")}function HT(t){return [t("elementType"),"[]"]}function zT({node:t},e){let n=t.type==="TSTypeQuery"?"exprName":"argument",r=t.type==="TypeofTypeAnnotation"||t.typeArguments?"typeArguments":"typeParameters";return ["typeof ",e(n),e(r)]}function KT(t,e){let{node:n}=t;return [n.type==="TSTypePredicate"&&n.asserts?"asserts ":n.type==="TypePredicate"&&n.kind?`${n.kind} `:"",e("parameterName"),n.typeAnnotation?[" is ",on(t,e)]:""]}function Bn(t){let{node:e}=t;return !e.optional||e.type==="Identifier"&&e===t.parent.key?"":tt(e)||Pt(e)&&e.computed||e.type==="OptionalIndexedAccessType"?"?.":"?"}function UT(t){return t.node.definite||t.match(void 0,(e,n)=>n==="id"&&e.type==="VariableDeclarator"&&e.definite)?"!":""}var NQ=new Set(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function Zn(t){let{node:e}=t;return e.declare||NQ.has(e.type)&&t.parent.type!=="DeclareExportDeclaration"?"declare ":""}var IQ=new Set(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function jh({node:t}){return t.abstract||IQ.has(t.type)?"abstract ":""}function ea(t,e,n){let r=t.node;return r.typeArguments?n("typeArguments"):r.typeParameters?n("typeParameters"):""}function JT(t,e,n){return ["::",n("callee")]}function Ms(t,e,n){return t.type==="EmptyStatement"?";":t.type==="BlockStatement"||n?[" ",e]:Z([fe,e])}function GT(t,e){return ["...",e("argument"),on(t,e)]}function Xd(t){return t.accessibility?t.accessibility+" ":""}function LQ(t,e,n,r){let{node:i}=t,s=i.inexact?"...":"";return se(i,pe.Dangling)?z([n,s,kt(t,e,{indent:true}),X,r]):[n,s,r]}function cv(t,e,n){let{node:r}=t,i=[],s=r.type==="TupleExpression"?"#[":"[",o="]",a=r.type==="TupleTypeAnnotation"&&r.types?"types":r.type==="TSTupleType"||r.type==="TupleTypeAnnotation"?"elementTypes":"elements",l=r[a];if(l.length===0)i.push(LQ(t,e,s,o));else {let u=ut(false,l,-1),c=(u==null?void 0:u.type)!=="RestElement"&&!r.inexact,f=u===null,d=Symbol("array"),h=!e.__inJestEach&&l.length>1&&l.every((g,y,F)=>{let x=g==null?void 0:g.type;if(!cn(g)&&!Qr(g))return  false;let b=F[y+1];if(b&&x!==b.type)return  false;let D=cn(g)?"elements":"properties";return g[D]&&g[D].length>1}),p=XT(r,e),m=c?f?",":bs(e)?p?Oe(",","",{groupId:d}):Oe(","):"":"";i.push(z([s,Z([X,p?_Q(t,e,n,m):[RQ(t,e,a,r.inexact,n),m],kt(t,e)]),X,o],{shouldBreak:h,id:d}));}return i.push(Bn(t),on(t,n)),i}function XT(t,e){return cn(t)&&t.elements.length>1&&t.elements.every(n=>n&&(is(n)||NA(n)&&!se(n.argument))&&!se(n,pe.Trailing|pe.Line,r=>!cr(e.originalText,Mt(r),{backwards:true})))}function YT({node:t},{originalText:e}){let n=i=>zy(e,Ky(e,i)),r=i=>e[i]===","?i:r(n(i+1));return Uy(e,r(Je(t)))}function RQ(t,e,n,r,i){let s=[];return t.each(({node:o,isLast:a})=>{s.push(o?z(i()):""),(!a||r)&&s.push([",",fe,o&&YT(t,e)?X:""]);},n),r&&s.push("..."),s}function _Q(t,e,n,r){let i=[];return t.each(({isLast:s,next:o})=>{i.push([n(),s?r:","]),s||i.push(YT(t,e)?[Y,Y]:se(o,pe.Leading|pe.Line)?Y:fe);},"elements"),JA(i)}var jQ=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,VQ=t=>jQ.test(t),qQ=VQ;function WQ(t){return t.length===1?t:t.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var Fl=WQ,od=new WeakMap;function QT(t){return /^(?:\d+|\d+\.\d+)$/u.test(t)}function r2(t,e){return e.parser==="json"||e.parser==="jsonc"||!Qn(t.key)||xl(Ar(t.key),e).slice(1,-1)!==t.key.value?false:!!(qQ(t.key.value)&&!(e.parser==="babel-ts"&&t.type==="ClassProperty"||e.parser==="typescript"&&t.type==="PropertyDefinition")||QT(t.key.value)&&String(Number(t.key.value))===t.key.value&&t.type!=="ImportAttribute"&&(e.parser==="babel"||e.parser==="acorn"||e.parser==="espree"||e.parser==="meriyah"||e.parser==="__babel_estree"))}function HQ(t,e){let{key:n}=t.node;return (n.type==="Identifier"||is(n)&&QT(Fl(Ar(n)))&&String(n.value)===Fl(Ar(n))&&!(e.parser==="typescript"||e.parser==="babel-ts"))&&(e.parser==="json"||e.parser==="jsonc"||e.quoteProps==="consistent"&&od.get(t.parent))}function Vc(t,e,n){let{node:r}=t;if(r.computed)return ["[",n("key"),"]"];let{parent:i}=t,{key:s}=r;if(e.quoteProps==="consistent"&&!od.has(i)){let o=t.siblings.some(a=>!a.computed&&Qn(a.key)&&!r2(a,e));od.set(i,o);}if(HQ(t,e)){let o=xl(JSON.stringify(s.type==="Identifier"?s.name:s.value.toString()),e);return t.call(a=>Ur(a,o,e),"key")}return r2(r,e)&&(e.quoteProps==="as-needed"||e.quoteProps==="consistent"&&!od.get(i))?t.call(o=>Ur(o,/^\d/u.test(s.value)?Fl(s.value):s.value,e),"key"):n("key")}function qp(t,e,n){let{node:r}=t;return r.shorthand?n("value"):jc(t,e,n,Vc(t,e,n),":","value")}var zQ=({node:t,key:e,parent:n})=>e==="value"&&t.type==="FunctionExpression"&&(n.type==="ObjectMethod"||n.type==="ClassMethod"||n.type==="ClassPrivateMethod"||n.type==="MethodDefinition"||n.type==="TSAbstractMethodDefinition"||n.type==="TSDeclareMethod"||n.type==="Property"&&Ih(n));function ZT(t,e,n,r){if(zQ(t))return fv(t,n,e);let{node:i}=t,s=false;if((i.type==="FunctionDeclaration"||i.type==="FunctionExpression")&&r!=null&&r.expandLastArg){let{parent:c}=t;tt(c)&&($r(c).length>1||vn(i).every(f=>f.type==="Identifier"&&!f.typeAnnotation))&&(s=true);}let o=[Zn(t),i.async?"async ":"",`function${i.generator?"*":""} `,i.id?e("id"):""],a=ga(t,e,n,s),l=Vh(t,e),u=ql(i,l);return o.push(ea(t,n,e),z([u?z(a):a,l]),i.body?" ":"",e("body")),n.semi&&(i.declare||!i.body)&&o.push(";"),o}function Jg(t,e,n){let{node:r}=t,{kind:i}=r,s=r.value||r,o=[];return !i||i==="init"||i==="method"||i==="constructor"?s.async&&o.push("async "):(Jy.ok(i==="get"||i==="set"),o.push(i," ")),s.generator&&o.push("*"),o.push(Vc(t,e,n),r.optional||r.key.optional?"?":"",r===s?fv(t,e,n):n("value")),o}function fv(t,e,n){let{node:r}=t,i=ga(t,n,e),s=Vh(t,n),o=TQ(r),a=ql(r,s),l=[ea(t,e,n),z([o?z(i,{shouldBreak:true}):a?z(i):i,s])];return r.body?l.push(" ",n("body")):l.push(e.semi?";":""),l}function KQ(t){let e=vn(t);return e.length===1&&!t.typeParameters&&!se(t,pe.Dangling)&&e[0].type==="Identifier"&&!e[0].typeAnnotation&&!se(e[0])&&!e[0].optional&&!t.predicate&&!t.returnType}function ek(t,e){if(e.arrowParens==="always")return  false;if(e.arrowParens==="avoid"){let{node:n}=t;return KQ(n)}return  false}function Vh(t,e){let{node:n}=t,r=[on(t,e,"returnType")];return n.predicate&&r.push(e("predicate")),r}function tk(t,e,n){let{node:r}=t,i=e.semi?";":"",s=[];if(r.argument){let l=n("argument");GQ(e,r.argument)?l=["(",Z([Y,l]),Y,")"]:(ss(r.argument)||r.argument.type==="SequenceExpression"||e.experimentalTernaries&&r.argument.type==="ConditionalExpression"&&(r.argument.consequent.type==="ConditionalExpression"||r.argument.alternate.type==="ConditionalExpression"))&&(l=z([Oe("("),Z([X,l]),X,Oe(")")])),s.push(" ",l);}let o=se(r,pe.Dangling),a=i&&o&&se(r,pe.Last|pe.Line);return a&&s.push(i),o&&s.push(" ",kt(t,e)),a||s.push(i),s}function UQ(t,e,n){return ["return",tk(t,e,n)]}function JQ(t,e,n){return ["throw",tk(t,e,n)]}function GQ(t,e){if(so(t.originalText,e)||se(e,pe.Leading,n=>lo(t.originalText,Mt(n),Je(n)))&&!Yt(e))return  true;if(Gy(e)){let n=e,r;for(;r=zJ(n);)if(n=r,so(t.originalText,n))return  true}return  false}var Wp=new WeakMap;function nk(t){return Wp.has(t)||Wp.set(t,t.type==="ConditionalExpression"&&!Fn(t,e=>e.type==="ObjectExpression")),Wp.get(t)}var rk=t=>t.type==="SequenceExpression";function XQ(t,e,n,r={}){let i=[],s,o=[],a=false,l=!r.expandLastArg&&t.node.body.type==="ArrowFunctionExpression",u;(function y(){let{node:F}=t,x=YQ(t,e,n,r);if(i.length===0)i.push(x);else {let{leading:b,trailing:D}=DT(t,e);i.push([b,x]),o.unshift(D);}l&&(a||(a=F.returnType&&vn(F).length>0||F.typeParameters||vn(F).some(b=>b.type!=="Identifier"))),!l||F.body.type!=="ArrowFunctionExpression"?(s=n("body",r),u=F.body):t.call(y,"body");})();let c=!so(e.originalText,u)&&(rk(u)||QQ(u,s,e)||!a&&nk(u)),f=t.key==="callee"&&El(t.parent),d=Symbol("arrow-chain"),h=ZQ(t,r,{signatureDocs:i,shouldBreak:a}),p=false,m=false,g=false;return l&&(f||r.assignmentLayout)&&(m=true,g=!se(t.node,pe.Leading&pe.Line),p=r.assignmentLayout==="chain-tail-arrow-chain"||f&&!c),s=eZ(t,e,r,{bodyDoc:s,bodyComments:o,functionBody:u,shouldPutBodyOnSameLine:c}),z([z(m?Z([g?X:"",h]):h,{shouldBreak:p,id:d})," =>",l?_h(s,{groupId:d}):z(s),l&&f?Oe(X,"",{groupId:d}):""])}function YQ(t,e,n,r){let{node:i}=t,s=[];if(i.async&&s.push("async "),ek(t,e))s.push(n(["params",0]));else {let a=r.expandLastArg||r.expandFirstArg,l=Vh(t,n);if(a){if(An(l))throw new Gd;l=z(Lg(l));}s.push(z([ga(t,n,e,a,true),l]));}let o=kt(t,e,{filter(a){let l=jl(e.originalText,Je(a));return l!==false&&e.originalText.slice(l,l+2)==="=>"}});return o&&s.push(" ",o),s}function QQ(t,e,n){var r,i;return cn(t)||Qr(t)||t.type==="ArrowFunctionExpression"||t.type==="DoExpression"||t.type==="BlockStatement"||Yt(t)||((r=e.label)==null?void 0:r.hug)!==false&&(((i=e.label)==null?void 0:i.embed)||jA(t,n.originalText))}function ZQ(t,e,{signatureDocs:n,shouldBreak:r}){if(n.length===1)return n[0];let{parent:i,key:s}=t;return s!=="callee"&&El(i)||ss(i)?z([n[0]," =>",Z([fe,Ue([" =>",fe],n.slice(1))])],{shouldBreak:r}):s==="callee"&&El(i)||e.assignmentLayout?z(Ue([" =>",fe],n),{shouldBreak:r}):z(Z(Ue([" =>",fe],n)),{shouldBreak:r})}function eZ(t,e,n,{bodyDoc:r,bodyComments:i,functionBody:s,shouldPutBodyOnSameLine:o}){let{node:a,parent:l}=t,u=n.expandLastArg&&bs(e,"all")?Oe(","):"",c=(n.expandLastArg||l.type==="JSXExpressionContainer")&&!se(a)?X:"";return o&&nk(s)?[" ",z([Oe("","("),Z([X,r]),Oe("",")"),u,c]),i]:(rk(s)&&(r=z(["(",Z([X,r]),X,")"])),o?[" ",r,i]:[Z([fe,r,i]),u,c])}var tZ=(t,e,n)=>{if(!(t&&e==null)){if(e.findLast)return e.findLast(n);for(let r=e.length-1;r>=0;r--){let i=e[r];if(n(i,r,e))return i}}},nZ=tZ;function Gg(t,e,n,r){let{node:i}=t,s=[],o=nZ(false,i[r],a=>a.type!=="EmptyStatement");return t.each(({node:a})=>{a.type!=="EmptyStatement"&&(s.push(n()),a!==o&&(s.push(Y),Cs(a,e)&&s.push(Y)));},r),s}function ik(t,e,n){let r=rZ(t,e,n),{node:i,parent:s}=t;if(i.type==="Program"&&(s==null?void 0:s.type)!=="ModuleExpression")return r?[r,Y]:"";let o=[];if(i.type==="StaticBlock"&&o.push("static "),o.push("{"),r)o.push(Z([Y,r]),Y);else {let a=t.grandparent;s.type==="ArrowFunctionExpression"||s.type==="FunctionExpression"||s.type==="FunctionDeclaration"||s.type==="ComponentDeclaration"||s.type==="HookDeclaration"||s.type==="ObjectMethod"||s.type==="ClassMethod"||s.type==="ClassPrivateMethod"||s.type==="ForStatement"||s.type==="WhileStatement"||s.type==="DoWhileStatement"||s.type==="DoExpression"||s.type==="ModuleExpression"||s.type==="CatchClause"&&!a.finalizer||s.type==="TSModuleDeclaration"||i.type==="StaticBlock"||o.push(Y);}return o.push("}"),o}function rZ(t,e,n){let{node:r}=t,i=it(r.directives),s=r.body.some(l=>l.type!=="EmptyStatement"),o=se(r,pe.Dangling);if(!i&&!s&&!o)return "";let a=[];return i&&(a.push(Gg(t,e,n,"directives")),(s||o)&&(a.push(Y),Cs(ut(false,r.directives,-1),e)&&a.push(Y))),s&&a.push(Gg(t,e,n,"body")),o&&a.push(kt(t,e)),a}function iZ(t){let e=new WeakMap;return function(n){return e.has(n)||e.set(n,Symbol(t)),e.get(n)}}var sk=iZ;function sZ(t){switch(t){case null:return "";case "PlusOptional":return "+?";case "MinusOptional":return "-?";case "Optional":return "?"}}function oZ(t,e,n){let{node:r}=t;return z([r.variance?n("variance"):"","[",Z([n("keyTparam")," in ",n("sourceType")]),"]",sZ(r.optional),": ",n("propType")])}function ok(t,e){return t==="+"||t==="-"?t+e:e}function aZ(t,e,n){let{node:r}=t,i=e.objectWrap==="preserve"&&lo(e.originalText,Mt(r),Mt(r.typeParameter));return z(["{",Z([e.bracketSpacing?fe:X,z([n("typeParameter"),r.optional?ok(r.optional,"?"):"",r.typeAnnotation?": ":"",n("typeAnnotation")]),e.semi?Oe(";"):""]),kt(t,e),e.bracketSpacing?fe:X,"}"],{shouldBreak:i})}var dv=sk("typeParameters");function lZ(t,e,n){let{node:r}=t;return vn(r).length===1&&r.type.startsWith("TS")&&!r[n][0].constraint&&t.parent.type==="ArrowFunctionExpression"&&!(e.filepath&&/\.ts$/u.test(e.filepath))}function Tu(t,e,n,r){let{node:i}=t;if(!i[r])return "";if(!Array.isArray(i[r]))return n(r);let s=Lh(t.grandparent),o=t.match(l=>!(l[r].length===1&&io(l[r][0])),void 0,(l,u)=>u==="typeAnnotation",l=>l.type==="Identifier",BT);if(i[r].length===0||!o&&(s||i[r].length===1&&(i[r][0].type==="NullableTypeAnnotation"||MT(i[r][0]))))return ["<",Ue(", ",t.map(n,r)),uZ(t,e),">"];let a=i.type==="TSTypeParameterInstantiation"?"":lZ(t,e,r)?",":bs(e)?Oe(","):"";return z(["<",Z([X,Ue([",",fe],t.map(n,r))]),a,X,">"],{id:dv(i)})}function uZ(t,e){let{node:n}=t;if(!se(n,pe.Dangling))return "";let r=!se(n,pe.Line),i=kt(t,e,{indent:!r});return r?i:[i,Y]}function ak(t,e,n){let{node:r,parent:i}=t,s=[r.const?"const ":""],o=r.type==="TSTypeParameter"?n("name"):r.name;if(i.type==="TSMappedType")return i.readonly&&s.push(ok(i.readonly,"readonly")," "),s.push("[",o),r.constraint&&s.push(" in ",n("constraint")),i.nameType&&s.push(" as ",t.callParent(()=>n("nameType"))),s.push("]"),s;if(r.variance&&s.push(n("variance")),r.in&&s.push("in "),r.out&&s.push("out "),s.push(o),r.bound&&(r.usesExtendsBound&&s.push(" extends "),s.push(on(t,n,"bound"))),r.constraint){let a=Symbol("constraint");s.push(" extends",z(Z(fe),{id:a}),as,_h(n("constraint"),{groupId:a}));}return r.default&&s.push(" = ",n("default")),z(s)}var lk=lt(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function uk(t,e,n){let{node:r}=t,i=[Zn(t),jh(t),"class"],s=se(r.id,pe.Trailing)||se(r.typeParameters,pe.Trailing)||se(r.superClass)||it(r.extends)||it(r.mixins)||it(r.implements),o=[],a=[];if(r.id&&o.push(" ",n("id")),o.push(n("typeParameters")),r.superClass){let c=[dZ(t,e,n),n(r.superTypeArguments?"superTypeArguments":"superTypeParameters")],f=t.call(d=>["extends ",Ur(d,c,e)],"superClass");s?a.push(fe,z(f)):a.push(" ",f);}else a.push(Hp(t,e,n,"extends"));a.push(Hp(t,e,n,"mixins"),Hp(t,e,n,"implements"));let l;if(s){let c;fk(r)?c=[...o,Z(a)]:c=Z([...o,a]),l=ck(r),i.push(z(c,{id:l}));}else i.push(...o,...a);let u=r.body;return s&&it(u.body)?i.push(Oe(Y," ",{groupId:l})):i.push(" "),i.push(n("body")),i}var ck=sk("heritageGroup");function cZ(t){return Oe(Y,"",{groupId:ck(t)})}function fZ(t){return ["extends","mixins","implements"].reduce((e,n)=>e+(Array.isArray(t[n])?t[n].length:0),t.superClass?1:0)>1}function fk(t){return t.typeParameters&&!se(t.typeParameters,pe.Trailing|pe.Line)&&!fZ(t)}function Hp(t,e,n,r){let{node:i}=t;if(!it(i[r]))return "";let s=kt(t,e,{marker:r});return [fk(i)?Oe(" ",fe,{groupId:dv(i.typeParameters)}):fe,s,s&&Y,r,z(Z([fe,Ue([",",fe],t.map(n,r))]))]}function dZ(t,e,n){let r=n("superClass"),{parent:i}=t;return i.type==="AssignmentExpression"?z(Oe(["(",Z([X,r]),X,")"],r)):r}function dk(t,e,n){let{node:r}=t,i=[];return it(r.decorators)&&i.push(xT(t,e,n)),i.push(Xd(r)),r.static&&i.push("static "),i.push(jh(t)),r.override&&i.push("override "),i.push(Jg(t,e,n)),i}function hk(t,e,n){let{node:r}=t,i=[],s=e.semi?";":"";it(r.decorators)&&i.push(xT(t,e,n)),i.push(Zn(t),Xd(r)),r.static&&i.push("static "),i.push(jh(t)),r.override&&i.push("override "),r.readonly&&i.push("readonly "),r.variance&&i.push(n("variance")),(r.type==="ClassAccessorProperty"||r.type==="AccessorProperty"||r.type==="TSAbstractAccessorProperty")&&i.push("accessor "),i.push(Vc(t,e,n),Bn(t),UT(t),on(t,n));let o=r.type==="TSAbstractPropertyDefinition"||r.type==="TSAbstractAccessorProperty";return [jc(t,e,n,i," =",o?void 0:"value"),s]}function hZ(t,e,n){let{node:r}=t,i=[];return t.each(({node:s,next:o,isLast:a})=>{i.push(n()),!e.semi&&lk(s)&&pZ(s,o)&&i.push(";"),a||(i.push(Y),Cs(s,e)&&i.push(Y));},"body"),se(r,pe.Dangling)&&i.push(kt(t,e)),["{",i.length>0?[Z([Y,i]),Y]:"","}"]}function pZ(t,e){var n;let{type:r,name:i}=t.key;if(!t.computed&&r==="Identifier"&&(i==="static"||i==="get"||i==="set")&&!t.value&&!t.typeAnnotation)return  true;if(!e||e.static||e.accessibility||e.readonly)return  false;if(!e.computed){let s=(n=e.key)==null?void 0:n.name;if(s==="in"||s==="instanceof")return  true}if(lk(e)&&e.variance&&!e.static&&!e.declare)return  true;switch(e.type){case "ClassProperty":case "PropertyDefinition":case "TSAbstractPropertyDefinition":return e.computed;case "MethodDefinition":case "TSAbstractMethodDefinition":case "ClassMethod":case "ClassPrivateMethod":{if((e.value?e.value.async:e.async)||e.kind==="get"||e.kind==="set")return  false;let s=e.value?e.value.generator:e.generator;return !!(e.computed||s)}case "TSIndexSignature":return  true}return  false}var mZ=lt(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function pk(t){return mZ(t)?pk(t.expression):t}var gZ=lt(["FunctionExpression","ArrowFunctionExpression"]);function yZ(t){return t.type==="MemberExpression"||t.type==="OptionalMemberExpression"||t.type==="Identifier"&&t.name!=="undefined"}function vZ(t,e){if(e.semi||gk(t,e)||yk(t,e))return  false;let{node:n,key:r,parent:i}=t;return !!(n.type==="ExpressionStatement"&&(r==="body"&&(i.type==="Program"||i.type==="BlockStatement"||i.type==="StaticBlock"||i.type==="TSModuleBlock")||r==="consequent"&&i.type==="SwitchCase")&&t.call(()=>mk(t,e),"expression"))}function mk(t,e){let{node:n}=t;switch(n.type){case "ParenthesizedExpression":case "TypeCastExpression":case "ArrayExpression":case "ArrayPattern":case "TemplateLiteral":case "TemplateElement":case "RegExpLiteral":return  true;case "ArrowFunctionExpression":if(!ek(t,e))return  true;break;case "UnaryExpression":{let{prefix:r,operator:i}=n;if(r&&(i==="+"||i==="-"))return  true;break}case "BindExpression":if(!n.object)return  true;break;case "Literal":if(n.regex)return  true;break;default:if(Yt(n))return  true}return ma(t,e)?true:Gy(n)?t.call(()=>mk(t,e),...PA(n)):false}function gk({node:t,parent:e},n){return (n.parentParser==="markdown"||n.parentParser==="mdx")&&t.type==="ExpressionStatement"&&Yt(t.expression)&&e.type==="Program"&&e.body.length===1}function yk({node:t,parent:e},n){return (n.parser==="__vue_event_binding"||n.parser==="__vue_ts_event_binding")&&t.type==="ExpressionStatement"&&e.type==="Program"&&e.body.length===1}function DZ(t,e,n){let r=[n("expression")];if(yk(t,e)){let i=pk(t.node.expression);(gZ(i)||yZ(i))&&r.push(";");}else gk(t,e)||e.semi&&r.push(";");return r}function bZ(t,e,n){if(e.__isVueBindings||e.__isVueForBindingLeft){let r=t.map(n,"program","body",0,"params");if(r.length===1)return r[0];let i=Ue([",",fe],r);return e.__isVueForBindingLeft?["(",Z([X,z(i)]),X,")"]:i}if(e.__isEmbeddedTypescriptGenericParameters){let r=t.map(n,"program","body",0,"typeParameters","params");return Ue([",",fe],r)}}function CZ(t,e){let{node:n}=t;switch(n.type){case "RegExpLiteral":return i2(n);case "BigIntLiteral":return Xg(n.extra.raw);case "NumericLiteral":return Fl(n.extra.raw);case "StringLiteral":return Zo(xl(n.extra.raw,e));case "NullLiteral":return "null";case "BooleanLiteral":return String(n.value);case "DirectiveLiteral":return s2(n.extra.raw,e);case "Literal":{if(n.regex)return i2(n.regex);if(n.bigint)return Xg(n.raw);let{value:r}=n;return typeof r=="number"?Fl(n.raw):typeof r=="string"?xZ(t)?s2(n.raw,e):Zo(xl(n.raw,e)):String(r)}}}function xZ(t){if(t.key!=="expression")return;let{parent:e}=t;return e.type==="ExpressionStatement"&&e.directive}function Xg(t){return t.toLowerCase()}function i2({pattern:t,flags:e}){return e=[...e].sort().join(""),`/${t}/${e}`}function s2(t,e){let n=t.slice(1,-1);if(n.includes('"')||n.includes("'"))return t;let r=e.singleQuote?"'":'"';return r+n+r}function EZ(t,e,n){let r=t.originalText.slice(e,n);for(let i of t[Symbol.for("comments")]){let s=Mt(i);if(s>n)break;let o=Je(i);if(o<e)continue;let a=o-s;r=r.slice(0,s-e)+" ".repeat(a)+r.slice(o-e);}return r}var vk=EZ;function FZ(t,e,n){let{node:r}=t;return ["import",r.phase?` ${r.phase}`:"",Ck(r),Ek(t,e,n),xk(t,e,n),wk(t,e,n),e.semi?";":""]}var Dk=t=>t.type==="ExportDefaultDeclaration"||t.type==="DeclareExportDeclaration"&&t.default;function bk(t,e,n){let{node:r}=t,i=[eQ(t,e,n),Zn(t),"export",Dk(r)?" default":""],{declaration:s,exported:o}=r;return se(r,pe.Dangling)&&(i.push(" ",kt(t,e)),VA(r)&&i.push(Y)),s?i.push(" ",n("declaration")):(i.push(AZ(r)),r.type==="ExportAllDeclaration"||r.type==="DeclareExportAllDeclaration"?(i.push(" *"),o&&i.push(" as ",n("exported"))):i.push(Ek(t,e,n)),i.push(xk(t,e,n),wk(t,e,n))),i.push(SZ(r,e)),i}var wZ=lt(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function SZ(t,e){return e.semi&&(!t.declaration||Dk(t)&&!wZ(t.declaration))?";":""}function hv(t,e=true){return t&&t!=="value"?`${e?" ":""}${t}${e?"":" "}`:""}function Ck(t,e){return hv(t.importKind,e)}function AZ(t){return hv(t.exportKind)}function xk(t,e,n){let{node:r}=t;if(!r.source)return "";let i=[];return Fk(r,e)&&i.push(" from"),i.push(" ",n("source")),i}function Ek(t,e,n){let{node:r}=t;if(!Fk(r,e))return "";let i=[" "];if(it(r.specifiers)){let s=[],o=[];t.each(()=>{let a=t.node.type;if(a==="ExportNamespaceSpecifier"||a==="ExportDefaultSpecifier"||a==="ImportNamespaceSpecifier"||a==="ImportDefaultSpecifier")s.push(n());else if(a==="ExportSpecifier"||a==="ImportSpecifier")o.push(n());else throw new Vl(r,"specifier")},"specifiers"),i.push(Ue(", ",s)),o.length>0&&(s.length>0&&i.push(", "),o.length>1||s.length>0||r.specifiers.some(a=>se(a))?i.push(z(["{",Z([e.bracketSpacing?fe:X,Ue([",",fe],o)]),Oe(bs(e)?",":""),e.bracketSpacing?fe:X,"}"])):i.push(["{",e.bracketSpacing?" ":"",...o,e.bracketSpacing?" ":"","}"]));}else i.push("{}");return i}function Fk(t,e){return t.type!=="ImportDeclaration"||it(t.specifiers)||t.importKind==="type"?true:vk(e,Mt(t),Mt(t.source)).trimEnd().endsWith("from")}function TZ(t,e){var n,r;if((n=t.extra)!=null&&n.deprecatedAssertSyntax)return "assert";let i=vk(e,Je(t.source),(r=t.attributes)!=null&&r[0]?Mt(t.attributes[0]):Je(t)).trimStart();return i.startsWith("assert")?"assert":i.startsWith("with")||it(t.attributes)?"with":void 0}function wk(t,e,n){let{node:r}=t;if(!r.source)return "";let i=TZ(r,e);if(!i)return "";let s=[` ${i} {`];return it(r.attributes)&&(e.bracketSpacing&&s.push(" "),s.push(Ue(", ",t.map(n,"attributes"))),e.bracketSpacing&&s.push(" ")),s.push("}"),s}function kZ(t,e,n){let{node:r}=t,{type:i}=r,s=i.startsWith("Import"),o=s?"imported":"local",a=s?"local":"exported",l=r[o],u=r[a],c="",f="";return i==="ExportNamespaceSpecifier"||i==="ImportNamespaceSpecifier"?c="*":l&&(c=n(o)),u&&!BZ(r)&&(f=n(a)),[hv(i==="ImportSpecifier"?r.importKind:r.exportKind,false),c,c&&f?" as ":"",f]}function BZ(t){if(t.type!=="ImportSpecifier"&&t.type!=="ExportSpecifier")return  false;let{local:e,[t.type==="ImportSpecifier"?"imported":"exported"]:n}=t;if(e.type!==n.type||!$J(e,n))return  false;if(Qn(e))return e.value===n.value&&Ar(e)===Ar(n);switch(e.type){case "Identifier":return e.name===n.name;default:return  false}}function qh(t,e,n){var r;let i=e.semi?";":"",{node:s}=t,o=s.type==="ObjectTypeAnnotation",a=s.type==="TSEnumDeclaration"||s.type==="EnumBooleanBody"||s.type==="EnumNumberBody"||s.type==="EnumBigIntBody"||s.type==="EnumStringBody"||s.type==="EnumSymbolBody",l=[s.type==="TSTypeLiteral"||a?"members":s.type==="TSInterfaceBody"?"body":"properties"];o&&l.push("indexers","callProperties","internalSlots");let u=l.flatMap(C=>t.map(({node:E})=>({node:E,printed:n(),loc:Mt(E)}),C));l.length>1&&u.sort((C,E)=>C.loc-E.loc);let{parent:c,key:f}=t,d=o&&f==="body"&&(c.type==="InterfaceDeclaration"||c.type==="DeclareInterface"||c.type==="DeclareClass"),h=s.type==="TSInterfaceBody"||a||d||s.type==="ObjectPattern"&&c.type!=="FunctionDeclaration"&&c.type!=="FunctionExpression"&&c.type!=="ArrowFunctionExpression"&&c.type!=="ObjectMethod"&&c.type!=="ClassMethod"&&c.type!=="ClassPrivateMethod"&&c.type!=="AssignmentPattern"&&c.type!=="CatchClause"&&s.properties.some(C=>C.value&&(C.value.type==="ObjectPattern"||C.value.type==="ArrayPattern"))||s.type!=="ObjectPattern"&&e.objectWrap==="preserve"&&u.length>0&&lo(e.originalText,Mt(s),u[0].loc),p=d?";":s.type==="TSInterfaceBody"||s.type==="TSTypeLiteral"?Oe(i,";"):",",m=s.type==="RecordExpression"?"#{":s.exact?"{|":"{",g=s.exact?"|}":"}",y=[],F=u.map(C=>{let E=[...y,z(C.printed)];return y=[p,fe],(C.node.type==="TSPropertySignature"||C.node.type==="TSMethodSignature"||C.node.type==="TSConstructSignatureDeclaration"||C.node.type==="TSCallSignatureDeclaration")&&se(C.node,pe.PrettierIgnore)&&y.shift(),Cs(C.node,e)&&y.push(Y),E});if(s.inexact||s.hasUnknownMembers){let C;if(se(s,pe.Dangling)){let E=se(s,pe.Line);C=[kt(t,e),E||cr(e.originalText,Je(ut(false,Ya(s),-1)))?Y:fe,"..."];}else C=["..."];F.push([...y,...C]);}let x=(r=ut(false,u,-1))==null?void 0:r.node,b=!(s.inexact||s.hasUnknownMembers||x&&(x.type==="RestElement"||(x.type==="TSPropertySignature"||x.type==="TSCallSignatureDeclaration"||x.type==="TSMethodSignature"||x.type==="TSConstructSignatureDeclaration")&&se(x,pe.PrettierIgnore))),D;if(F.length===0){if(!se(s,pe.Dangling))return [m,g,on(t,n)];D=z([m,kt(t,e,{indent:true}),X,g,Bn(t),on(t,n)]);}else D=[d&&it(s.properties)?cZ(c):"",m,Z([e.bracketSpacing?fe:X,...F]),Oe(b&&(p!==","||bs(e))?p:""),e.bracketSpacing?fe:X,g,Bn(t),on(t,n)];return t.match(C=>C.type==="ObjectPattern"&&!it(C.decorators),zp)||io(s)&&(t.match(void 0,(C,E)=>E==="typeAnnotation",(C,E)=>E==="typeAnnotation",zp)||t.match(void 0,(C,E)=>C.type==="FunctionTypeParam"&&E==="typeAnnotation",zp))||!h&&t.match(C=>C.type==="ObjectPattern",C=>C.type==="AssignmentExpression"||C.type==="VariableDeclarator")?D:z(D,{shouldBreak:h})}function zp(t,e){return (e==="params"||e==="parameters"||e==="this"||e==="rest")&&$T(t)}function OZ(t){let e=[t];for(let n=0;n<e.length;n++){let r=e[n];for(let i of ["test","consequent","alternate"]){let s=r[i];if(Yt(s))return  true;s.type==="ConditionalExpression"&&e.push(s);}}return  false}function $Z(t,e,n){let{node:r}=t,i=r.type==="ConditionalExpression",s=i?"alternate":"falseType",{parent:o}=t,a=i?n("test"):[n("checkType")," ","extends"," ",n("extendsType")];return o.type===r.type&&o[s]===r?Oi(2,a):a}var MZ=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function PZ(t){let{node:e}=t;if(e.type!=="ConditionalExpression")return  false;let n,r=e;for(let i=0;!n;i++){let s=t.getParentNode(i);if(s.type==="ChainExpression"&&s.expression===r||tt(s)&&s.callee===r||Pt(s)&&s.object===r||s.type==="TSNonNullExpression"&&s.expression===r){r=s;continue}s.type==="NewExpression"&&s.callee===r||xi(s)&&s.expression===r?(n=t.getParentNode(i+1),r=s):n=s;}return r===e?false:n[MZ.get(n.type)]===r}function NZ(t,e,n){let{node:r}=t,i=r.type==="ConditionalExpression",s=i?"consequent":"trueType",o=i?"alternate":"falseType",a=i?["test"]:["checkType","extendsType"],l=r[s],u=r[o],c=[],f=false,{parent:d}=t,h=d.type===r.type&&a.some(A=>d[A]===r),p=d.type===r.type&&!h,m,g,y=0;do g=m||r,m=t.getParentNode(y),y++;while(m&&m.type===r.type&&a.every(A=>m[A]!==g));let F=m||d,x=g;if(i&&(Yt(r[a[0]])||Yt(l)||Yt(u)||OZ(x))){f=true,p=true;let A=k=>[Oe("("),Z([X,k]),X,Oe(")")],M=k=>k.type==="NullLiteral"||k.type==="Literal"&&k.value===null||k.type==="Identifier"&&k.name==="undefined";c.push(" ? ",M(l)?n(s):A(n(s))," : ",u.type===r.type||M(u)?n(o):A(n(o)));}else {let A=k=>e.useTabs?Z(n(k)):Oi(2,n(k)),M=[fe,"? ",l.type===r.type?Oe("","("):"",A(s),l.type===r.type?Oe("",")"):"",fe,": ",A(o)];c.push(d.type!==r.type||d[o]===r||h?M:e.useTabs?UA(Z(M)):Oi(Math.max(0,e.tabWidth-2),M));}let b=[s,o,...a].some(A=>se(r[A],M=>Or(M)&&lo(e.originalText,Mt(M),Je(M)))),D=A=>d===F?z(A,{shouldBreak:b}):b?[A,$i]:A,C=!f&&(Pt(d)||d.type==="NGPipeExpression"&&d.left===r)&&!d.computed,E=PZ(t),S=D([$Z(t,e,n),p?c:Z(c),i&&C&&!E?X:""]);return h||E?z([Z([X,S]),X]):S}function IZ(t,e){return (Pt(e)||e.type==="NGPipeExpression"&&e.left===t)&&!e.computed}function LZ(t,e,n,r){return [...t.map(i=>Ya(i)),Ya(e),Ya(n)].flat().some(i=>Or(i)&&lo(r.originalText,Mt(i),Je(i)))}var RZ=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function _Z(t){let{node:e}=t;if(e.type!=="ConditionalExpression")return  false;let n,r=e;for(let i=0;!n;i++){let s=t.getParentNode(i);if(s.type==="ChainExpression"&&s.expression===r||tt(s)&&s.callee===r||Pt(s)&&s.object===r||s.type==="TSNonNullExpression"&&s.expression===r){r=s;continue}s.type==="NewExpression"&&s.callee===r||xi(s)&&s.expression===r?(n=t.getParentNode(i+1),r=s):n=s;}return r===e?false:n[RZ.get(n.type)]===r}var Kp=t=>[Oe("("),Z([X,t]),X,Oe(")")];function pv(t,e,n,r){if(!e.experimentalTernaries)return NZ(t,e,n);let{node:i}=t,s=i.type==="ConditionalExpression",o=ao(i),a=s?"consequent":"trueType",l=s?"alternate":"falseType",u=s?["test"]:["checkType","extendsType"],c=i[a],f=i[l],d=u.map(rt=>i[rt]),{parent:h}=t,p=h.type===i.type,m=p&&u.some(rt=>h[rt]===i),g=p&&h[l]===i,y=c.type===i.type,F=f.type===i.type,x=F||g,b=e.tabWidth>2||e.useTabs,D,C,E=0;do C=D||i,D=t.getParentNode(E),E++;while(D&&D.type===i.type&&u.every(rt=>D[rt]!==C));let S=D||h,A=r&&r.assignmentLayout&&r.assignmentLayout!=="break-after-operator"&&(h.type==="AssignmentExpression"||h.type==="VariableDeclarator"||h.type==="ClassProperty"||h.type==="PropertyDefinition"||h.type==="ClassPrivateProperty"||h.type==="ObjectProperty"||h.type==="Property"),M=(h.type==="ReturnStatement"||h.type==="ThrowStatement")&&!(y||F),k=s&&S.type==="JSXExpressionContainer"&&t.grandparent.type!=="JSXAttribute",N=_Z(t),O=IZ(i,h),T=o&&ma(t,e),I=b?e.useTabs?"	":" ".repeat(e.tabWidth-1):"",j=LZ(d,c,f,e)||y||F,_=!x&&!p&&!o&&(k?c.type==="NullLiteral"||c.type==="Literal"&&c.value===null:Qy(c,e)&&RC(i.test,3)),R=x||g||o&&!p||p&&s&&RC(i.test,1)||_,L=[];!y&&se(c,pe.Dangling)&&t.call(rt=>{L.push(kt(rt,e),Y);},"consequent");let G=[];se(i.test,pe.Dangling)&&t.call(rt=>{G.push(kt(rt,e));},"test"),!F&&se(f,pe.Dangling)&&t.call(rt=>{G.push(kt(rt,e));},"alternate"),se(i,pe.Dangling)&&G.push(kt(t,e));let me=Symbol("test"),ye=Symbol("consequent"),ve=Symbol("test-and-consequent"),Se=s?[Kp(n("test")),i.test.type==="ConditionalExpression"?$i:""]:[n("checkType")," ","extends"," ",ao(i.extendsType)||i.extendsType.type==="TSMappedType"?n("extendsType"):z(Kp(n("extendsType")))],Fe=z([Se," ?"],{id:me}),Ge=n(a),Te=Z([y||k&&(Yt(c)||p||x)?Y:fe,L,Ge]),ne=R?z([Fe,x?Te:Oe(Te,z(Te,{id:ye}),{groupId:me})],{id:ve}):[Fe,Te],be=n(l),Ze=_?Oe(be,UA(Kp(be)),{groupId:ve}):be,_e=[ne,G.length>0?[Z([Y,G]),Y]:F?Y:_?Oe(fe," ",{groupId:ve}):fe,":",F?" ":b?R?Oe(I,Oe(x||_?" ":I," "),{groupId:ve}):Oe(I," "):" ",F?Ze:z([Z(Ze),k&&!_?X:""]),O&&!N?X:"",j?$i:""];return A&&!j?z(Z([X,z(_e)])):A||M?z(Z(_e)):N||o&&m?z([Z([X,_e]),T?X:""]):h===S?z(_e):_e}function jZ(t,e,n,r){let{node:i}=t;if(Xy(i))return CZ(t,e);let s=e.semi?";":"",o=[];switch(i.type){case "JsExpressionRoot":return n("node");case "JsonRoot":return [n("node"),Y];case "File":return bZ(t,e,n)??n("program");case "EmptyStatement":return "";case "ExpressionStatement":return DZ(t,e,n);case "ChainExpression":return n("expression");case "ParenthesizedExpression":return !se(i.expression)&&(Qr(i.expression)||cn(i.expression))?["(",n("expression"),")"]:z(["(",Z([X,n("expression")]),X,")"]);case "AssignmentExpression":return dQ(t,e,n);case "VariableDeclarator":return hQ(t,e,n);case "BinaryExpression":case "LogicalExpression":return CT(t,e,n);case "AssignmentPattern":return [n("left")," = ",n("right")];case "OptionalMemberExpression":case "MemberExpression":return uQ(t,e,n);case "MetaProperty":return [n("meta"),".",n("property")];case "BindExpression":return i.object&&o.push(n("object")),o.push(z(Z([X,JT(t,e,n)]))),o;case "Identifier":return [i.name,Bn(t),UT(t),on(t,n)];case "V8IntrinsicIdentifier":return ["%",i.name];case "SpreadElement":case "SpreadElementPattern":case "SpreadPropertyPattern":case "RestElement":return GT(t,n);case "FunctionDeclaration":case "FunctionExpression":return ZT(t,n,e,r);case "ArrowFunctionExpression":return XQ(t,e,n,r);case "YieldExpression":return o.push("yield"),i.delegate&&o.push("*"),i.argument&&o.push(" ",n("argument")),o;case "AwaitExpression":if(o.push("await"),i.argument){o.push(" ",n("argument"));let{parent:a}=t;if(tt(a)&&a.callee===i||Pt(a)&&a.object===i){o=[Z([X,...o]),X];let l=t.findAncestor(u=>u.type==="AwaitExpression"||u.type==="BlockStatement");if((l==null?void 0:l.type)!=="AwaitExpression"||!Fn(l.argument,u=>u===i))return z(o)}}return o;case "ExportDefaultDeclaration":case "ExportNamedDeclaration":case "ExportAllDeclaration":return bk(t,e,n);case "ImportDeclaration":return FZ(t,e,n);case "ImportSpecifier":case "ExportSpecifier":case "ImportNamespaceSpecifier":case "ExportNamespaceSpecifier":case "ImportDefaultSpecifier":case "ExportDefaultSpecifier":return kZ(t,e,n);case "ImportAttribute":return qp(t,e,n);case "Program":case "BlockStatement":case "StaticBlock":return ik(t,e,n);case "ClassBody":return hZ(t,e,n);case "ThrowStatement":return JQ(t,e,n);case "ReturnStatement":return UQ(t,e,n);case "NewExpression":case "ImportExpression":case "OptionalCallExpression":case "CallExpression":return TT(t,e,n);case "ObjectExpression":case "ObjectPattern":case "RecordExpression":return qh(t,e,n);case "Property":return Ih(i)?Jg(t,e,n):qp(t,e,n);case "ObjectProperty":return qp(t,e,n);case "ObjectMethod":return Jg(t,e,n);case "Decorator":return ["@",n("expression")];case "ArrayExpression":case "ArrayPattern":case "TupleExpression":return cv(t,e,n);case "SequenceExpression":{let{parent:a}=t;if(a.type==="ExpressionStatement"||a.type==="ForStatement"){let l=[];return t.each(({isFirst:u})=>{u?l.push(n()):l.push(",",Z([fe,n()]));},"expressions"),z(l)}return z(Ue([",",fe],t.map(n,"expressions")))}case "ThisExpression":return "this";case "Super":return "super";case "Directive":return [n("value"),s];case "UnaryExpression":return o.push(i.operator),/[a-z]$/u.test(i.operator)&&o.push(" "),se(i.argument)?o.push(z(["(",Z([X,n("argument")]),X,")"])):o.push(n("argument")),o;case "UpdateExpression":return [i.prefix?i.operator:"",n("argument"),i.prefix?"":i.operator];case "ConditionalExpression":return pv(t,e,n,r);case "VariableDeclaration":{let a=t.map(n,"declarations"),l=t.parent,u=l.type==="ForStatement"||l.type==="ForInStatement"||l.type==="ForOfStatement",c=i.declarations.some(d=>d.init),f;return a.length===1&&!se(i.declarations[0])?f=a[0]:a.length>0&&(f=Z(a[0])),o=[Zn(t),i.kind,f?[" ",f]:"",Z(a.slice(1).map(d=>[",",c&&!u?Y:fe,d]))],u&&l.body!==i||o.push(s),z(o)}case "WithStatement":return z(["with (",n("object"),")",Ms(i.body,n("body"))]);case "IfStatement":{let a=Ms(i.consequent,n("consequent")),l=z(["if (",z([Z([X,n("test")]),X]),")",a]);if(o.push(l),i.alternate){let u=se(i.consequent,pe.Trailing|pe.Line)||VA(i),c=i.consequent.type==="BlockStatement"&&!u;o.push(c?" ":Y),se(i,pe.Dangling)&&o.push(kt(t,e),u?Y:" "),o.push("else",z(Ms(i.alternate,n("alternate"),i.alternate.type==="IfStatement")));}return o}case "ForStatement":{let a=Ms(i.body,n("body")),l=kt(t,e),u=l?[l,X]:"";return !i.init&&!i.test&&!i.update?[u,z(["for (;;)",a])]:[u,z(["for (",z([Z([X,n("init"),";",fe,n("test"),";",fe,n("update")]),X]),")",a])]}case "WhileStatement":return z(["while (",z([Z([X,n("test")]),X]),")",Ms(i.body,n("body"))]);case "ForInStatement":return z(["for (",n("left")," in ",n("right"),")",Ms(i.body,n("body"))]);case "ForOfStatement":return z(["for",i.await?" await":""," (",n("left")," of ",n("right"),")",Ms(i.body,n("body"))]);case "DoWhileStatement":{let a=Ms(i.body,n("body"));return o=[z(["do",a])],i.body.type==="BlockStatement"?o.push(" "):o.push(Y),o.push("while (",z([Z([X,n("test")]),X]),")",s),o}case "DoExpression":return [i.async?"async ":"","do ",n("body")];case "BreakStatement":case "ContinueStatement":return o.push(i.type==="BreakStatement"?"break":"continue"),i.label&&o.push(" ",n("label")),o.push(s),o;case "LabeledStatement":return i.body.type==="EmptyStatement"?[n("label"),":;"]:[n("label"),": ",n("body")];case "TryStatement":return ["try ",n("block"),i.handler?[" ",n("handler")]:"",i.finalizer?[" finally ",n("finalizer")]:""];case "CatchClause":if(i.param){let a=se(i.param,u=>!Or(u)||u.leading&&cr(e.originalText,Je(u))||u.trailing&&cr(e.originalText,Mt(u),{backwards:true})),l=n("param");return ["catch ",a?["(",Z([X,l]),X,") "]:["(",l,") "],n("body")]}return ["catch ",n("body")];case "SwitchStatement":return [z(["switch (",Z([X,n("discriminant")]),X,")"])," {",i.cases.length>0?Z([Y,Ue(Y,t.map(({node:a,isLast:l})=>[n(),!l&&Cs(a,e)?Y:""],"cases"))]):"",Y,"}"];case "SwitchCase":{i.test?o.push("case ",n("test"),":"):o.push("default:"),se(i,pe.Dangling)&&o.push(" ",kt(t,e));let a=i.consequent.filter(l=>l.type!=="EmptyStatement");if(a.length>0){let l=Gg(t,e,n,"consequent");o.push(a.length===1&&a[0].type==="BlockStatement"?[" ",l]:Z([Y,l]));}return o}case "DebuggerStatement":return ["debugger",s];case "ClassDeclaration":case "ClassExpression":return uk(t,e,n);case "ClassMethod":case "ClassPrivateMethod":case "MethodDefinition":return dk(t,e,n);case "ClassProperty":case "PropertyDefinition":case "ClassPrivateProperty":case "ClassAccessorProperty":case "AccessorProperty":return hk(t,e,n);case "TemplateElement":return Zo(i.value.raw);case "TemplateLiteral":return fT(t,n,e);case "TaggedTemplateExpression":return xX(t,n);case "PrivateIdentifier":return ["#",i.name];case "PrivateName":return ["#",n("id")];case "TopicReference":return "%";case "ArgumentPlaceholder":return "?";case "ModuleExpression":return ["module ",n("body")];case "InterpreterDirective":default:throw new Vl(i,"ESTree")}}function Sk(t,e,n){let{parent:r,node:i,key:s}=t,o=[n("expression")];switch(i.type){case "AsConstExpression":o.push(" as const");break;case "AsExpression":case "TSAsExpression":o.push(" as ",n("typeAnnotation"));break;case "SatisfiesExpression":case "TSSatisfiesExpression":o.push(" satisfies ",n("typeAnnotation"));break}return s==="callee"&&tt(r)||s==="object"&&Pt(r)?z([Z([X,...o]),X]):o}function VZ(t,e,n){let{node:r}=t,i=[Zn(t),"component"];r.id&&i.push(" ",n("id")),i.push(n("typeParameters"));let s=qZ(t,n,e);return r.rendersType?i.push(z([s," ",n("rendersType")])):i.push(z([s])),r.body&&i.push(" ",n("body")),e.semi&&r.type==="DeclareComponent"&&i.push(";"),i}function qZ(t,e,n){let{node:r}=t,i=r.params;if(r.rest&&(i=[...i,r.rest]),i.length===0)return ["(",kt(t,n,{filter:o=>Zr(n.originalText,Je(o))===")"}),")"];let s=[];return HZ(t,(o,a)=>{let l=a===i.length-1;l&&r.rest&&s.push("..."),s.push(e()),!l&&(s.push(","),Cs(i[a],n)?s.push(Y,Y):s.push(fe));}),["(",Z([X,...s]),Oe(bs(n,"all")&&!WZ(r,i)?",":""),X,")"]}function WZ(t,e){var n;return t.rest||((n=ut(false,e,-1))==null?void 0:n.type)==="RestElement"}function HZ(t,e){let{node:n}=t,r=0,i=s=>e(s,r++);t.each(i,"params"),n.rest&&t.call(i,"rest");}function zZ(t,e,n){let{node:r}=t;return r.shorthand?n("local"):[n("name")," as ",n("local")]}function KZ(t,e,n){let{node:r}=t,i=[];return r.name&&i.push(n("name"),r.optional?"?: ":": "),i.push(n("typeAnnotation")),i}function Ak(t,e,n){return qh(t,n,e)}function Tk(t,e){let{node:n}=t,r=e("id");n.computed&&(r=["[",r,"]"]);let i="";return n.initializer&&(i=e("initializer")),n.init&&(i=e("init")),i?[r," = ",i]:r}function UZ(t,e,n){let{node:r}=t,i;if(r.type==="EnumSymbolBody"||r.explicitType)switch(r.type){case "EnumBooleanBody":i="boolean";break;case "EnumNumberBody":i="number";break;case "EnumBigIntBody":i="bigint";break;case "EnumStringBody":i="string";break;case "EnumSymbolBody":i="symbol";break}return [i?`of ${i} `:"",Ak(t,e,n)]}function kk(t,e,n){let{node:r}=t;return [Zn(t),r.const?"const ":"","enum ",e("id")," ",r.type==="TSEnumDeclaration"?Ak(t,e,n):e("body")]}function JZ(t,e,n){let{node:r}=t,i=["hook"];r.id&&i.push(" ",n("id"));let s=ga(t,n,e,false,true),o=Vh(t,n),a=ql(r,o);return i.push(z([a?z(s):s,o]),r.body?" ":"",n("body")),i}function GZ(t,e,n){let{node:r}=t,i=[Zn(t),"hook"];return r.id&&i.push(" ",n("id")),e.semi&&i.push(";"),i}function o2(t){var e;let{node:n}=t;return n.type==="HookTypeAnnotation"&&((e=t.getParentNode(2))==null?void 0:e.type)==="DeclareHook"}function XZ(t,e,n){let{node:r}=t,i=[];i.push(o2(t)?"":"hook ");let s=ga(t,n,e,false,true),o=[];return o.push(o2(t)?": ":" => ",n("returnType")),ql(r,o)&&(s=z(s)),i.push(s,o),z(i)}function Bk(t,e,n){let{node:r}=t,i=[Zn(t),"interface"],s=[],o=[];r.type!=="InterfaceTypeAnnotation"&&s.push(" ",n("id"),n("typeParameters"));let a=r.typeParameters&&!se(r.typeParameters,pe.Trailing|pe.Line);return it(r.extends)&&o.push(a?Oe(" ",fe,{groupId:dv(r.typeParameters)}):fe,"extends ",(r.extends.length===1?iG:Z)(Ue([",",fe],t.map(n,"extends")))),se(r.id,pe.Trailing)||it(r.extends)?a?i.push(z([...s,Z(o)])):i.push(z(Z([...s,...o]))):i.push(...s,...o),i.push(" ",n("body")),z(i)}function YZ(t,e,n){let{node:r}=t;if($A(r))return r.type.slice(0,-14).toLowerCase();let i=e.semi?";":"";switch(r.type){case "ComponentDeclaration":case "DeclareComponent":case "ComponentTypeAnnotation":return VZ(t,e,n);case "ComponentParameter":return zZ(t,e,n);case "ComponentTypeParameter":return KZ(t,e,n);case "HookDeclaration":return JZ(t,e,n);case "DeclareHook":return GZ(t,e,n);case "HookTypeAnnotation":return XZ(t,e,n);case "DeclareClass":return uk(t,e,n);case "DeclareFunction":return [Zn(t),"function ",n("id"),n("predicate"),i];case "DeclareModule":return ["declare module ",n("id")," ",n("body")];case "DeclareModuleExports":return ["declare module.exports",on(t,n),i];case "DeclareNamespace":return ["declare namespace ",n("id")," ",n("body")];case "DeclareVariable":return [Zn(t),r.kind??"var"," ",n("id"),i];case "DeclareExportDeclaration":case "DeclareExportAllDeclaration":return bk(t,e,n);case "DeclareOpaqueType":case "OpaqueType":return $Q(t,e,n);case "DeclareTypeAlias":case "TypeAlias":return PT(t,e,n);case "IntersectionTypeAnnotation":return NT(t,e,n);case "UnionTypeAnnotation":return IT(t,e,n);case "ConditionalTypeAnnotation":return pv(t,e,n);case "InferTypeAnnotation":return _T(t,e,n);case "FunctionTypeAnnotation":return LT(t,e,n);case "TupleTypeAnnotation":return cv(t,e,n);case "TupleTypeLabeledElement":return VT(t,e,n);case "TupleTypeSpreadElement":return jT(t,e,n);case "GenericTypeAnnotation":return [n("id"),Tu(t,e,n,"typeParameters")];case "IndexedAccessType":case "OptionalIndexedAccessType":return RT(t,e,n);case "TypeAnnotation":return WT(t,e,n);case "TypeParameter":return ak(t,e,n);case "TypeofTypeAnnotation":return zT(t,n);case "ExistsTypeAnnotation":return "*";case "ArrayTypeAnnotation":return HT(n);case "DeclareEnum":case "EnumDeclaration":return kk(t,n,e);case "EnumBooleanBody":case "EnumNumberBody":case "EnumBigIntBody":case "EnumStringBody":case "EnumSymbolBody":return UZ(t,n,e);case "EnumBooleanMember":case "EnumNumberMember":case "EnumBigIntMember":case "EnumStringMember":case "EnumDefaultedMember":return Tk(t,n);case "FunctionTypeParam":{let s=r.name?n("name"):t.parent.this===r?"this":"";return [s,Bn(t),s?": ":"",n("typeAnnotation")]}case "DeclareInterface":case "InterfaceDeclaration":case "InterfaceTypeAnnotation":return Bk(t,e,n);case "ClassImplements":case "InterfaceExtends":return [n("id"),n("typeParameters")];case "NullableTypeAnnotation":return ["?",n("typeAnnotation")];case "Variance":{let{kind:s}=r;return Jy.ok(s==="plus"||s==="minus"),s==="plus"?"+":"-"}case "KeyofTypeAnnotation":return ["keyof ",n("argument")];case "ObjectTypeCallProperty":return [r.static?"static ":"",n("value")];case "ObjectTypeMappedTypeProperty":return oZ(t,e,n);case "ObjectTypeIndexer":return [r.static?"static ":"",r.variance?n("variance"):"","[",n("id"),r.id?": ":"",n("key"),"]: ",n("value")];case "ObjectTypeProperty":{let s="";return r.proto?s="proto ":r.static&&(s="static "),[s,r.kind!=="init"?r.kind+" ":"",r.variance?n("variance"):"",Vc(t,e,n),Bn(t),Ih(r)?"":": ",n("value")]}case "ObjectTypeAnnotation":return qh(t,e,n);case "ObjectTypeInternalSlot":return [r.static?"static ":"","[[",n("id"),"]]",Bn(t),r.method?"":": ",n("value")];case "ObjectTypeSpreadProperty":return GT(t,n);case "QualifiedTypeofIdentifier":case "QualifiedTypeIdentifier":return [n("qualification"),".",n("id")];case "NullLiteralTypeAnnotation":return "null";case "BooleanLiteralTypeAnnotation":return String(r.value);case "StringLiteralTypeAnnotation":return Zo(xl(Ar(r),e));case "NumberLiteralTypeAnnotation":return Fl(r.raw??r.extra.raw);case "BigIntLiteralTypeAnnotation":return Xg(r.raw??r.extra.raw);case "TypeCastExpression":return ["(",n("expression"),on(t,n),")"];case "TypePredicate":return KT(t,n);case "TypeOperator":return [r.operator," ",n("typeAnnotation")];case "TypeParameterDeclaration":case "TypeParameterInstantiation":return Tu(t,e,n,"params");case "InferredPredicate":case "DeclaredPredicate":return [t.key==="predicate"&&t.parent.type!=="DeclareFunction"&&!t.parent.returnType?": ":" ","%checks",...r.type==="DeclaredPredicate"?["(",n("value"),")"]:[]];case "AsExpression":case "AsConstExpression":case "SatisfiesExpression":return Sk(t,e,n)}}function QZ(t,e,n){var r;let{node:i}=t;if(!i.type.startsWith("TS"))return;if(MA(i))return i.type.slice(2,-7).toLowerCase();let s=e.semi?";":"",o=[];switch(i.type){case "TSThisType":return "this";case "TSTypeAssertion":{let a=!(cn(i.expression)||Qr(i.expression)),l=z(["<",Z([X,n("typeAnnotation")]),X,">"]),u=[Oe("("),Z([X,n("expression")]),X,Oe(")")];return a?_o([[l,n("expression")],[l,z(u,{shouldBreak:true})],[l,n("expression")]]):z([l,n("expression")])}case "TSDeclareFunction":return ZT(t,n,e);case "TSExportAssignment":return ["export = ",n("expression"),s];case "TSModuleBlock":return ik(t,e,n);case "TSInterfaceBody":case "TSTypeLiteral":return qh(t,e,n);case "TSTypeAliasDeclaration":return PT(t,e,n);case "TSQualifiedName":return [n("left"),".",n("right")];case "TSAbstractMethodDefinition":case "TSDeclareMethod":return dk(t,e,n);case "TSAbstractAccessorProperty":case "TSAbstractPropertyDefinition":return hk(t,e,n);case "TSInterfaceHeritage":case "TSClassImplements":case "TSExpressionWithTypeArguments":case "TSInstantiationExpression":return [n("expression"),n(i.typeArguments?"typeArguments":"typeParameters")];case "TSTemplateLiteralType":return fT(t,n,e);case "TSNamedTupleMember":return VT(t,e,n);case "TSRestType":return jT(t,e,n);case "TSOptionalType":return [n("typeAnnotation"),"?"];case "TSInterfaceDeclaration":return Bk(t,e,n);case "TSTypeParameterDeclaration":case "TSTypeParameterInstantiation":return Tu(t,e,n,"params");case "TSTypeParameter":return ak(t,e,n);case "TSAsExpression":case "TSSatisfiesExpression":return Sk(t,e,n);case "TSArrayType":return HT(n);case "TSPropertySignature":return [i.readonly?"readonly ":"",Vc(t,e,n),Bn(t),on(t,n)];case "TSParameterProperty":return [Xd(i),i.static?"static ":"",i.override?"override ":"",i.readonly?"readonly ":"",n("parameter")];case "TSTypeQuery":return zT(t,n);case "TSIndexSignature":{let a=i.parameters.length>1?Oe(bs(e)?",":""):"",l=z([Z([X,Ue([", ",X],t.map(n,"parameters"))]),a,X]),u=t.parent.type==="ClassBody"&&t.key==="body";return [u&&i.static?"static ":"",i.readonly?"readonly ":"","[",i.parameters?l:"","]",on(t,n),u?s:""]}case "TSTypePredicate":return KT(t,n);case "TSNonNullExpression":return [n("expression"),"!"];case "TSImportType":return ["import(",n("argument"),")",i.qualifier?[".",n("qualifier")]:"",Tu(t,e,n,i.typeArguments?"typeArguments":"typeParameters")];case "TSLiteralType":return n("literal");case "TSIndexedAccessType":return RT(t,e,n);case "TSTypeOperator":return [i.operator," ",n("typeAnnotation")];case "TSMappedType":return aZ(t,e,n);case "TSMethodSignature":{let a=i.kind&&i.kind!=="method"?`${i.kind} `:"";o.push(Xd(i),a,i.computed?"[":"",n("key"),i.computed?"]":"",Bn(t));let l=ga(t,n,e,false,true),u=i.returnType?"returnType":"typeAnnotation",c=i[u],f=c?on(t,n,u):"",d=ql(i,f);return o.push(d?z(l):l),c&&o.push(z(f)),z(o)}case "TSNamespaceExportDeclaration":return ["export as namespace ",n("id"),e.semi?";":""];case "TSEnumDeclaration":return kk(t,n,e);case "TSEnumMember":return Tk(t,n);case "TSImportEqualsDeclaration":return [i.isExport?"export ":"","import ",Ck(i,false),n("id")," = ",n("moduleReference"),e.semi?";":""];case "TSExternalModuleReference":return ["require(",n("expression"),")"];case "TSModuleDeclaration":{let{parent:a}=t,l=a.type==="TSModuleDeclaration",u=((r=i.body)==null?void 0:r.type)==="TSModuleDeclaration";return l?o.push("."):(o.push(Zn(t)),i.kind!=="global"&&o.push(i.kind," ")),o.push(n("id")),u?o.push(n("body")):i.body?o.push(" ",z(n("body"))):o.push(s),o}case "TSConditionalType":return pv(t,e,n);case "TSInferType":return _T(t,e,n);case "TSIntersectionType":return NT(t,e,n);case "TSUnionType":return IT(t,e,n);case "TSFunctionType":case "TSCallSignatureDeclaration":case "TSConstructorType":case "TSConstructSignatureDeclaration":return LT(t,e,n);case "TSTupleType":return cv(t,e,n);case "TSTypeReference":return [n("typeName"),Tu(t,e,n,i.typeArguments?"typeArguments":"typeParameters")];case "TSTypeAnnotation":return WT(t,e,n);case "TSEmptyBodyFunctionExpression":return fv(t,e,n);case "TSJSDocAllType":return "*";case "TSJSDocUnknownType":return "?";case "TSJSDocNullableType":return n2(t,n,"?");case "TSJSDocNonNullableType":return n2(t,n,"!");case "TSParenthesizedType":default:throw new Vl(i,"TypeScript")}}function ZZ(t,e,n,r){if(bT(t))return pY(t,e);for(let i of [YY,HY,YZ,QZ,jZ]){let s=i(t,e,n,r);if(s!==void 0)return s}}var eee=lt(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function tee(t,e,n,r){var i;t.isRoot&&((i=e.__onHtmlBindingRoot)==null||i.call(e,t.node,e));let s=ZZ(t,e,n,r);if(!s)return "";let{node:o}=t;if(eee(o))return s;let a=it(o.decorators),l=tQ(t,e,n),u=o.type==="ClassExpression";if(a&&!u)return Rg(s,d=>z([l,d]));let c=ma(t,e),f=vZ(t,e);return !l&&!c&&!f?s:Rg(s,d=>[f?";":"",c?"(":"",c&&u&&a?[Z([fe,l,d]),fe]:[l,d],c?")":""])}var nee=tee,ree={avoidAstMutation:true},iee=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","flake.lock","mcmod.info",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}],Ok={};Ph(Ok,{getVisitorKeys:()=>lee,massageAstNode:()=>$k,print:()=>uee});var see={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]},oee=see,aee=BA(oee),lee=aee;function uee(t,e,n){let{node:r}=t;switch(r.type){case "JsonRoot":return [n("node"),Y];case "ArrayExpression":{if(r.elements.length===0)return "[]";let i=t.map(()=>t.node===null?"null":n(),"elements");return ["[",Z([Y,Ue([",",Y],i)]),Y,"]"]}case "ObjectExpression":return r.properties.length===0?"{}":["{",Z([Y,Ue([",",Y],t.map(n,"properties"))]),Y,"}"];case "ObjectProperty":return [n("key"),": ",n("value")];case "UnaryExpression":return [r.operator==="+"?"":r.operator,n("argument")];case "NullLiteral":return "null";case "BooleanLiteral":return r.value?"true":"false";case "StringLiteral":return JSON.stringify(r.value);case "NumericLiteral":return a2(t)?JSON.stringify(String(r.value)):JSON.stringify(r.value);case "Identifier":return a2(t)?JSON.stringify(r.name):r.name;case "TemplateLiteral":return n(["quasis",0]);case "TemplateElement":return JSON.stringify(r.value.cooked);default:throw new Vl(r,"JSON")}}function a2(t){return t.key==="key"&&t.parent.type==="ObjectProperty"}var cee=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function $k(t,e){let{type:n}=t;if(n==="ObjectProperty"){let{key:r}=t;r.type==="Identifier"?e.key={type:"StringLiteral",value:r.name}:r.type==="NumericLiteral"&&(e.key={type:"StringLiteral",value:String(r.value)});return}if(n==="UnaryExpression"&&t.operator==="+")return e.argument;if(n==="ArrayExpression"){for(let[r,i]of t.elements.entries())i===null&&e.elements.splice(r,0,{type:"NullLiteral"});return}if(n==="TemplateLiteral")return {type:"StringLiteral",value:t.quasis[0].value.cooked}}$k.ignoredProperties=cee;var tu={bracketSpacing:{category:"Common",type:"boolean",default:true,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:false,description:"Use single quotes instead of double quotes."},bracketSameLine:{category:"Common",type:"boolean",default:false,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:false,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Ps="JavaScript",fee={arrowParens:{category:Ps,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:tu.bracketSameLine,objectWrap:tu.objectWrap,bracketSpacing:tu.bracketSpacing,jsxBracketSameLine:{category:Ps,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:Ps,type:"boolean",default:true,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:Ps,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:Ps,type:"boolean",default:false,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:tu.singleQuote,jsxSingleQuote:{category:Ps,type:"boolean",default:false,description:"Use single quotes in JSX."},quoteProps:{category:Ps,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:Ps,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:tu.singleAttributePerLine},dee=fee,hee={estree:AA,"estree-json":Ok},pee=[...sJ,...iee],mee=SA;const mv=defineComponent({__name:"super-code-editor",props:mergeModels({language:{},autoFormat:{type:Boolean,default:true}},{modelValue:{default:"",required:true},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=useModel(t,"modelValue"),n=t,r=ref(["dark","darkblue","grey"].includes(document.documentElement.getAttribute("theme")??"")),i=[RH],s=[mee],o=ref(false),a=ref("");let l=false,u;onMounted(()=>{window.addEventListener("keydown",p);}),onBeforeUnmount(()=>{window.removeEventListener("keydown",p);});const c=g=>{u=g.view;},f=()=>{l=true;},d=()=>{l=false,e.value=a.value;},h=async g=>{if(g=So.string(g)||"",g!==a.value)try{const y=n.autoFormat?await Wy(g,{parser:n.language,tabWidth:2,plugins:s}):g;a.value=y;}catch(y){y instanceof Error&&y.message.includes("Unknown keyword or identifier")&&console.error("此代码不支持格式化"),a.value=g;}},p=g=>{if(l&&g.code==="KeyF"&&g.shiftKey&&g.altKey){g.preventDefault();const y=u==null?void 0:u.state.selection.main.head;h(a.value+" ").finally(()=>{y&&(u==null||u.dispatch({selection:{anchor:y}}),u==null||u.contentDOM.blur());});}};return (async()=>{switch(n.language){case "html":const{html:g}=await nf(async()=>{const{html:b}=await module.import('./index-C-1GBFce-Djatmhd3.js');return {html:b}},void 0),y=await nf(()=>module.import('./html-BKahlt6m-MGn1UAze.js').then(b=>b.h),void 0);i.push(g()),s.push(y);break;case "typescript":const{javascript:F}=await nf(async()=>{const{javascript:b}=await module.import('./index-CdOzjjIA-SHR6veo_.js').then(D=>D.i);return {javascript:b}},void 0),x=await nf(()=>module.import('./typescript-CpeiaWuM-oAdDfOku.js').then(b=>b.t),void 0);i.push(F({typescript:true})),s.push(x);break}})().then(()=>{watch(()=>e.value,async g=>{await h(g),o.value||(o.value=true);},{immediate:true});}),(g,y)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["super-code-editor",r.value?"is-dark":"is-light"])},[o.value?(openBlock(),createBlock(unref(LH),{key:0,"tab-size":2,"auto-destroy":true,extensions:i,modelValue:a.value,"onUpdate:modelValue":y[0]||(y[0]=F=>a.value=F),onReady:c,onFocus:f,onBlur:d},null,8,["modelValue"])):createCommentVNode("",true)],2))}}),Up=`const length = Object.keys(data).length;
    if (length >= 3 && length <= 5) {
      // 必要参数
      if (data.serv?.type !== 'string') return false;
      if (data.name?.type !== 'string') return false;
      if (data.path?.type !== 'string') return false;
      // 可选参数
      if (data.alias && data.alias.type !== 'string') return false;
      if (data.extra && (data.extra.type !== 'object' || !Object.keys(data.extra.children ?? {}).length)) return false;
      return true;
    }
    return false;
`,Wh=C2("more__setting",{state:()=>({basicMethod:{ts:{dataVerify:{path:"@/utils/verify/validator-util"},httpRequest:{path:"@/utils/network/http-util"}},ts_uniapp:{dataVerify:{path:"@/utils/verify/validator-util"},httpRequest:{path:"@/services/network/http-service/http-service"},moreRequestOptions:{path:"@/services/network/http-service/http-service.m.d"}},dart:{dataVerify:{path:"package:hj_app_rme_v3/utils/data/converter_util.dart"},httpRequest:{path:"package:hj_app_rme_v3/services/network/http_service.dart"},firstWhereOrNull:{path:"package:hj_app_rme_v3/extension/list_extension.dart"}}},jsReplace:{ts:[{title:"OSS文件模型",name:"OSSFile",path:"import { OSSFile } from '@/services/file/file-upload-service/file-upload-service.ts';",js:Up}],ts_uniapp:[{title:"OSS文件模型",name:"OSSFile",path:"import { OSSFile } from '@/entities/oss-file/oss-file.ts';",js:Up}],dart:[{title:"OSS文件模型",name:"OSSFile",path:"import 'package:hj_app_rme_v3/entities/oss_file/oss_file.dart';",js:Up}]}}),persistence:true,actions:{convertToLocalModel(t,e,n){const r=this.jsReplace[t];if(!(r!=null&&r.length))return e;const i={},s=a=>{const l=u=>u.reduce((c,f)=>{var h;const d={...f,children:void 0};return f.type=="object"&&((h=f.children)!=null&&h.length)&&(d.children=l(f.children)),c[f.key]=d,c},{});return a.map(u=>{var c;if((c=u.children)!=null&&c.length){if(u.type=="object"&&!u.ref){const f=l(u.children),d=r.find(h=>{const p=n??new Function("data",h.js);try{return p(f)==!0}catch(m){return console.error("检测模型失败",m),false}});if(d){const h={...u,model:{name:d.name,import:d.path},children:void 0};return i[h.name]=h,h}}return {...u,children:s(u.children)}}return u})};let o=s(e);if(Object.keys(i).length){const a=l=>l.map(u=>{var c;if(u.ref&&i[u.ref]){const f=i[u.ref];return {...u,ref:void 0,model:f.model,children:void 0}}else if((c=u.children)!=null&&c.length)return {...u,children:a(u.children)};return u});o=a(o);}return console.log(o,i),o}}}),gee={class:"basic-method-path"},yee={class:"input-box-list"},vee={class:"input-box"},Dee={class:"input-box-list"},bee={class:"input-box"},Cee={class:"input-box-list"},xee={class:"input-box"},Eee={class:"input-box-list"},Fee={class:"input-box"},wee={class:"input-box-list"},See={class:"input-box"},Aee={class:"input-box-list"},Tee={class:"input-box"},kee={class:"input-box-list"},Bee={class:"input-box"},Oee={class:"input-box-list"},$ee={class:"input-box"},Mee={class:"button-box"},Pee=defineComponent({__name:"basic-method-path",emits:["save"],setup(t,{emit:e}){const n=e,r=Wh(),i=ref(dt.ts),s=ref(JSON.parse(JSON.stringify(r.basicMethod))),o=()=>{r.basicMethod=JSON.parse(JSON.stringify(s.value)),vi.success("保存成功"),n("save");};return (a,l)=>(openBlock(),createElementBlock("div",gee,[createVNode(unref(fo),null,{default:withCtx(()=>[createVNode(unref(hh),{class:"basic-method-path-form",model:s.value},{default:withCtx(()=>[createVNode(unref(Me),{label:"语言","label-position":"left"},{default:withCtx(()=>[createVNode(unref(fh),{modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=u=>i.value=u)},{default:withCtx(()=>[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(dt),u=>(openBlock(),createBlock(unref(dh),{key:u,label:u,value:u},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.value==unref(dt).ts?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode(unref(Me),{label:"数据校验和转换","label-position":"top"},{default:withCtx(()=>[createElementVNode("div",yee,[l[10]||(l[10]=createElementVNode("div",{class:"input-box"},[createElementVNode("div",{class:"input-text"},"方法名:"),createTextVNode(" Is、To ")],-1)),createElementVNode("div",vee,[l[9]||(l[9]=createElementVNode("div",{class:"input-text"},"路径:",-1)),createVNode(unref(wn),{modelValue:s.value.ts.dataVerify.path,"onUpdate:modelValue":l[1]||(l[1]=u=>s.value.ts.dataVerify.path=u)},null,8,["modelValue"])])])]),_:1}),createVNode(unref(Me),{label:"网络请求","label-position":"top"},{default:withCtx(()=>[createElementVNode("div",Dee,[l[12]||(l[12]=createElementVNode("div",{class:"input-box"},[createElementVNode("div",{class:"input-text"},"方法名:"),createTextVNode(" httpRequest、httpListRequest ")],-1)),createElementVNode("div",bee,[l[11]||(l[11]=createElementVNode("div",{class:"input-text"},"路径:",-1)),createVNode(unref(wn),{modelValue:s.value.ts.httpRequest.path,"onUpdate:modelValue":l[2]||(l[2]=u=>s.value.ts.httpRequest.path=u)},null,8,["modelValue"])])])]),_:1})],64)):i.value==unref(dt).ts_uniapp?(openBlock(),createElementBlock(Fragment,{key:1},[createVNode(unref(Me),{label:"数据校验和转换","label-position":"top"},{default:withCtx(()=>[createElementVNode("div",Cee,[l[14]||(l[14]=createElementVNode("div",{class:"input-box"},[createElementVNode("div",{class:"input-text"},"方法名:"),createTextVNode(" Is、To ")],-1)),createElementVNode("div",xee,[l[13]||(l[13]=createElementVNode("div",{class:"input-text"},"路径:",-1)),createVNode(unref(wn),{modelValue:s.value.ts_uniapp.dataVerify.path,"onUpdate:modelValue":l[3]||(l[3]=u=>s.value.ts_uniapp.dataVerify.path=u)},null,8,["modelValue"])])])]),_:1}),createVNode(unref(Me),{label:"网络请求","label-position":"top"},{default:withCtx(()=>[createElementVNode("div",Eee,[l[16]||(l[16]=createElementVNode("div",{class:"input-box"},[createElementVNode("div",{class:"input-text"},"方法名:"),createTextVNode(" httpRequest、httpListRequest ")],-1)),createElementVNode("div",Fee,[l[15]||(l[15]=createElementVNode("div",{class:"input-text"},"路径:",-1)),createVNode(unref(wn),{modelValue:s.value.ts_uniapp.httpRequest.path,"onUpdate:modelValue":l[4]||(l[4]=u=>s.value.ts_uniapp.httpRequest.path=u)},null,8,["modelValue"])])])]),_:1}),createVNode(unref(Me),{label:"更多请求参数","label-position":"top"},{default:withCtx(()=>[createElementVNode("div",wee,[l[18]||(l[18]=createElementVNode("div",{class:"input-box"},[createElementVNode("div",{class:"input-text"},"类名:"),createTextVNode(" ApiRequestOptions ")],-1)),createElementVNode("div",See,[l[17]||(l[17]=createElementVNode("div",{class:"input-text"},"路径:",-1)),createVNode(unref(wn),{modelValue:s.value.ts_uniapp.moreRequestOptions.path,"onUpdate:modelValue":l[5]||(l[5]=u=>s.value.ts_uniapp.moreRequestOptions.path=u)},null,8,["modelValue"])])])]),_:1})],64)):i.value==unref(dt).dart?(openBlock(),createElementBlock(Fragment,{key:2},[createVNode(unref(Me),{label:"数据校验和转换","label-position":"top"},{default:withCtx(()=>[createElementVNode("div",Aee,[l[20]||(l[20]=createElementVNode("div",{class:"input-box"},[createElementVNode("div",{class:"input-text"},"方法名:"),createTextVNode(" Is、To ")],-1)),createElementVNode("div",Tee,[l[19]||(l[19]=createElementVNode("div",{class:"input-text"},"路径:",-1)),createVNode(unref(wn),{modelValue:s.value.dart.dataVerify.path,"onUpdate:modelValue":l[6]||(l[6]=u=>s.value.dart.dataVerify.path=u)},null,8,["modelValue"])])])]),_:1}),createVNode(unref(Me),{label:"网络请求","label-position":"top"},{default:withCtx(()=>[createElementVNode("div",kee,[l[22]||(l[22]=createElementVNode("div",{class:"input-box"},[createElementVNode("div",{class:"input-text"},"方法名:"),createTextVNode(" httpRequest、httpListRequest ")],-1)),createElementVNode("div",Bee,[l[21]||(l[21]=createElementVNode("div",{class:"input-text"},"路径:",-1)),createVNode(unref(wn),{modelValue:s.value.dart.httpRequest.path,"onUpdate:modelValue":l[7]||(l[7]=u=>s.value.dart.httpRequest.path=u)},null,8,["modelValue"])])])]),_:1}),createVNode(unref(Me),{label:"列表扩展","label-position":"top"},{default:withCtx(()=>[createElementVNode("div",Oee,[l[24]||(l[24]=createElementVNode("div",{class:"input-box"},[createElementVNode("div",{class:"input-text"},"方法名:"),createTextVNode(" firstWhereOrNull ")],-1)),createElementVNode("div",$ee,[l[23]||(l[23]=createElementVNode("div",{class:"input-text"},"路径:",-1)),createVNode(unref(wn),{modelValue:s.value.dart.firstWhereOrNull.path,"onUpdate:modelValue":l[8]||(l[8]=u=>s.value.dart.firstWhereOrNull.path=u)},null,8,["modelValue"])])])]),_:1})],64)):createCommentVNode("",true)]),_:1},8,["model"])]),_:1}),createElementVNode("div",Mee,[createVNode(unref(_n),{type:"primary",onClick:o},{default:withCtx(()=>l[25]||(l[25]=[createTextVNode("保存")])),_:1,__:[25]})])]))}}),Nee={class:"json-replace-form"},Iee={class:"button-box"},Lee=defineComponent({__name:"js-replace-form",props:{data:{}},emits:["save"],setup(t,{emit:e}){const n=t,r=e,i=useTemplateRef("formInstance"),s=ref({title:"",name:"",path:"",js:""}),o={title:[{required:true,trigger:"blur",message:"请输入模型标题"}],name:[{required:true,trigger:"blur",message:"请输入模型名"}],path:[{required:true,trigger:"blur",message:"请输入文件路径"}],js:[{required:true,trigger:"blur",message:"请输入js代码"}]},a=()=>{var l;(l=i.value)==null||l.validate(u=>{u&&r("save",JSON.parse(JSON.stringify(s.value)));});};return watch(()=>n.data,l=>{l&&(s.value=JSON.parse(JSON.stringify(l)));},{immediate:true}),(l,u)=>(openBlock(),createElementBlock("div",Nee,[createVNode(unref(fo),null,{default:withCtx(()=>[createVNode(unref(hh),{ref_key:"formInstance",ref:i,class:"json-replace-form-form","label-width":"auto",model:s.value,rules:o},{default:withCtx(()=>[createVNode(unref(Me),{label:"模型标题","label-position":"left",prop:"title"},{default:withCtx(()=>[createVNode(unref(wn),{modelValue:s.value.title,"onUpdate:modelValue":u[0]||(u[0]=c=>s.value.title=c),placeholder:"中文名称"},null,8,["modelValue"])]),_:1}),createVNode(unref(Me),{label:"模型名","label-position":"left",prop:"name"},{default:withCtx(()=>[createVNode(unref(wn),{modelValue:s.value.name,"onUpdate:modelValue":u[1]||(u[1]=c=>s.value.name=c),placeholder:"class对象名称,可填写携带泛型值,例如:Test<string>"},null,8,["modelValue"])]),_:1}),createVNode(unref(Me),{label:"文件路径","label-position":"left",prop:"path"},{default:withCtx(()=>[createVNode(unref(wn),{autosize:{minRows:1,maxRows:3},type:"textarea",modelValue:s.value.path,"onUpdate:modelValue":u[2]||(u[2]=c=>s.value.path=c),placeholder:"标准import引入,多文件使用分号“;”隔开,例如:import aaa; import bbb"},null,8,["modelValue"])]),_:1}),createVNode(unref(Me),{label:"js代码","label-position":"left",prop:"js"},{default:withCtx(()=>[createVNode(mv,{class:"code-editor",language:"typescript",modelValue:s.value.js,"onUpdate:modelValue":u[3]||(u[3]=c=>s.value.js=c)},null,8,["modelValue"]),u[4]||(u[4]=createElementVNode("div",{class:"data-type"},"此代码将会接收一个 data 字段,自行编写逻辑决定此 data 是否需要替换为当前规定的模型",-1))]),_:1,__:[4]})]),_:1},8,["model"])]),_:1}),createElementVNode("div",Iee,[createVNode(unref(_n),{type:"primary",onClick:a},{default:withCtx(()=>u[5]||(u[5]=[createTextVNode("提交")])),_:1,__:[5]})])]))}}),Ree={class:"json-replace"},_ee={class:"button-box"},jee=defineComponent({__name:"js-replace",emits:["save"],setup(t,{emit:e}){const n=e,r=Wh(),i=ref(dt.ts),s=ref(JSON.parse(JSON.stringify(r.jsReplace)));console.log(s);const o=()=>{l();},a=f=>{l(f);},l=f=>{const d=!!f;Hu(h$1=>({title:d?"编辑":"添加",width:"auto",content:h(Lee,{data:f,onSave:p=>{h$1(),d?(Object.assign(f,p),c(),vi.success("修改成功")):(s.value[i.value].push(p),c(),vi.success("添加成功"));}})}));},u=f=>{o7.confirm("是否删除该项?","提示",{type:"error",confirmButtonText:"确定",cancelButtonText:"取消"}).then(()=>{const d=s.value[i.value].findIndex(h=>h.name===f.name);d!==-1&&(s.value[i.value].splice(d,1),c(),vi.success("删除成功"));});},c=()=>{r.jsReplace=JSON.parse(JSON.stringify(s.value)),n("save");};return (f,d)=>(openBlock(),createElementBlock("div",Ree,[createVNode(unref(Me),{class:"language-type",label:"语言","label-position":"left"},{default:withCtx(()=>[createVNode(unref(fh),{modelValue:i.value,"onUpdate:modelValue":d[0]||(d[0]=h=>i.value=h)},{default:withCtx(()=>[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(dt),h=>(openBlock(),createBlock(unref(dh),{key:h,label:h,value:h},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),createVNode(unref(OR),{class:"table",data:s.value[i.value],"empty-text":"暂无数据"},{default:withCtx(()=>[createVNode(unref(rp),{prop:"title",label:"名称"}),createVNode(unref(rp),{prop:"name",label:"模型"}),createVNode(unref(rp),{"class-name":"control-column",prop:"control",label:"操作",fixed:"right",width:"145px"},{default:withCtx(({row:h})=>[createVNode(unref(_n),{text:"",type:"primary",onClick:p=>a(h)},{default:withCtx(()=>d[1]||(d[1]=[createTextVNode("编辑")])),_:2,__:[1]},1032,["onClick"]),createVNode(unref(_n),{text:"",type:"danger",onClick:p=>u(h)},{default:withCtx(()=>d[2]||(d[2]=[createTextVNode("删除")])),_:2,__:[2]},1032,["onClick"])]),_:1})]),_:1},8,["data"]),createElementVNode("div",_ee,[createVNode(unref(_n),{type:"primary",plain:"",onClick:o},{default:withCtx(()=>d[3]||(d[3]=[createTextVNode("添加")])),_:1,__:[3]})])]))}}),Vee={class:"more-setting"},qee={class:"setting-menu"},Wee=["onClick"],Hee={class:"setting-content"},Mk=defineComponent({__name:"more-setting",emits:["update"],setup(t,{emit:e}){const n=e,r=[{id:"basicMethod",title:"基础方法路径"},{id:"jsReplace",title:"替换本地模型"}],i=ref(r[0]);let s=false;const o=l=>{i.value=l;},a=()=>{s=true;};return onUnmounted(()=>{s&&n("update");}),(l,u)=>(openBlock(),createElementBlock("div",Vee,[createElementVNode("div",qee,[createVNode(unref(fo),null,{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(r,c=>createElementVNode("div",{class:normalizeClass(["setting-item",i.value.id==c.id?"active":""]),key:c.id,onClick:f=>o(c)},toDisplayString(c.title),11,Wee)),64))]),_:1})]),createElementVNode("div",Hee,[i.value.id=="basicMethod"?(openBlock(),createBlock(Pee,{key:0,onSave:a})):i.value.id=="jsReplace"?(openBlock(),createBlock(jee,{key:1,onSave:a})):createCommentVNode("",true)])]))}}),Pk=C2("generateSetting",{state:()=>({language:dt.ts,dataSource:Wt.requestResult,ts:{allRequired:true,jsonToModel:true,addExport:false},ts_uniapp:{allRequired:true,jsonToModel:true,addExport:false},dart:{allRequired:true,toJson:false,copyWith:false,fromJson:true,enum:false}}),persistence:true});class l2{constructor(e){le(this,"group");le(this,"value","");le(this,"retract","  ");le(this,"importCache",[]);le(this,"httpRequestPath");le(this,"abort",{name:"abort",className:"AbortController"});le(this,"moreRequestOptions");le(this,"skipTotal");this.group=e.group,this.httpRequestPath=e.httpRequestPath,e.abort&&(this.abort=e.abort),e.moreRequestOptions&&(this.moreRequestOptions=e.moreRequestOptions),this.skipTotal=e.skipTotal??false,this.value=this.createRequest();}getValue(){return this.value.trim()}ret(e=1){return this.retract.repeat(e)}createRequest(){let e=[`${this.group.title?`
/** ${this.group.title} */`:""}`,`${this.group.title?"":`
`}export const ${this.group.className}Api = {`,...this.group.list.map(n=>{var r;if(((r=n.result)==null?void 0:r.length)==1){const i=n.result[0];if(i.type=="array"){if(i.key=="items")return this.createPagingListRequestMethod(n);if(i.key=="data")return this.createListRequestMethod(n)}if(this.skipTotal&&this.isTotal(n))return}return this.createRequestMethod(n)}),"};"].filter(Boolean).join(`
`);return e=this.createImport(e.includes("httpRequest"),e.includes("httpListRequest"))+e,this.importCache=[],e}createImport(e,n){const r=[],i=[e?"httpRequest":"",n?"httpListRequest":""].filter(Boolean);return this.abort.path==this.httpRequestPath?i.push(this.abort.className):this.abort.path&&r.push(`import { ${this.abort.className} } from '${this.abort.path}';`),this.moreRequestOptions&&r.push(`import { type ${this.moreRequestOptions.className}${n&&this.moreRequestOptions.importListRequestResult?", type ListRequestResult":""} } from '${this.moreRequestOptions.path}';`),i.length&&r.push(`import { ${i.join(", ")} } from '${this.httpRequestPath}';`),[...r,...this.importCache,""].join(`
`)}createRequestMethod(e){const{name:n,hasRequest:r,hasResult:i}=this.getBaseState(e),s=[r?`type ${e.className}RequestParams`:"",i?`type ${e.className}, jsonTo${e.className}`:""].filter(Boolean).join(", ");return s&&this.importCache.push(`import { ${s} } from './models/${It(n,"line")}';`),[e.title?`${this.ret(1)}/** 
 ${this.ret(1)}* ${e.title}
 ${this.ret(1)}*/`:"",`${this.ret(1)}${n}: async (${this.createRequestParams(e)}): Promise<${i?e.className:"void"}> => {`,`${this.ret(2)}${i?"const result = ":""}await httpRequest({`,`${this.ret(3)}url: '${e.originPath}',`,e.detail.method==="get"?`${this.ret(3)}method: 'GET',`:"",r?`${this.ret(3)}params,`:"",this.moreRequestOptions?`${this.ret(3)}...options,`:`${this.ret(3)}${this.abort.name},`,`${this.ret(2)}});`,i?`${this.ret(2)}return jsonTo${e.className}(result.data, true);`:"",`${this.ret(1)}},`].filter(Boolean).join(`
`)}createListRequestMethod(e){const{name:n,hasRequest:r,hasResult:i}=this.getBaseState(e),s=[r?`type ${e.className}RequestParams`:"",i?`type ${e.className}Item, jsonTo${e.className}`:""].filter(Boolean).join(", ");return s&&this.importCache.push(`import { ${s} } from './models/${It(n,"line")}';`),[e.title?`${this.ret(1)}/** 
 ${this.ret(1)}* ${e.title}
 ${this.ret(1)}*/`:"",`${this.ret(1)}${n}: async (${this.createRequestParams(e)}): Promise<${i?`${e.className}Item[]`:"void"}> => {`,`${this.ret(2)}${i?"const result = ":""}await httpRequest({`,`${this.ret(3)}url: '${e.originPath}',`,e.detail.method==="get"?`${this.ret(3)}method: 'GET',`:"",r?`${this.ret(3)}params,`:"",this.moreRequestOptions?`${this.ret(3)}...options,`:`${this.ret(3)}${this.abort.name},`,`${this.ret(2)}});`,i?`${this.ret(2)}return jsonTo${e.className}(result.data);`:"",`${this.ret(1)}},`].filter(Boolean).join(`
`)}createPagingListRequestMethod(e){var a;const{name:n,hasRequest:r,hasResult:i}=this.getBaseState(e),s=this.group.list.some(l=>this.isTotal(l,e)),o=[r?`type ${e.className}RequestParams`:"",i?`type ${e.className}Item, jsonTo${e.className}`:""].filter(Boolean).join(", ");return o&&this.importCache.push(`import { ${o} } from './models/${It(n,"line")}';`),[e.title?`${this.ret(1)}/** 
 ${this.ret(1)}* ${e.title}
 ${this.ret(1)}*/`:"",`${this.ret(1)}${n}: async (${this.createRequestParams(e)}): Promise<ListRequestResult<${e.className}Item>> => {`,`${this.ret(2)}const result = await httpListRequest({`,`${this.ret(3)}url: '${e.originPath}',`,e.detail.method==="get"?`${this.ret(3)}method: 'GET',`:"",r?`${this.ret(3)}cursor: params.cursor,`:"",s?`${this.ret(3)}total: ${(a=this.moreRequestOptions)!=null&&a.controlTotal?`${this.moreRequestOptions.name}?.listTotal ?? false`:"true"},`:"",r?`${this.ret(3)}params,`:"",this.moreRequestOptions?`${this.ret(3)}...options,`:`${this.ret(3)}${this.abort.name},`,`${this.ret(2)}});`,`${this.ret(2)}return {`,`${this.ret(3)}...result,`,`${this.ret(3)}items: jsonTo${e.className}(result.items),`,`${this.ret(2)}};`,`${this.ret(1)}},`].filter(Boolean).join(`
`)}createRequestParams(e){var r;const n=[];return (r=e.request)!=null&&r.length&&n.unshift(`params: ${e.className}RequestParams`),this.moreRequestOptions?n.push(`${this.moreRequestOptions.name}?: ${this.moreRequestOptions.className}`):n.push(`${this.abort.name}?: ${this.abort.className}`),n.join(", ")}getBaseState(e){var n,r;return {name:It(e.className.replace(this.group.className,""),"smallHump"),hasRequest:ll.number((n=e.request)==null?void 0:n.length,true),hasResult:(r=e.result)==null?void 0:r.length}}isTotal(e,n){var i,s,o,a,l;const r=e.path.endsWith("Total")&&(((s=(i=e.result)==null?void 0:i[0])==null?void 0:s.key)=="total"||((l=(a=(o=e.result)==null?void 0:o[0])==null?void 0:a.children)==null?void 0:l.length)==1&&e.result[0].children[0].key=="total");return n?r&&n.path==e.path.replace(/Total$/,""):r}}class zee{constructor(e){le(this,"group");le(this,"value","");le(this,"retract","  ");le(this,"importCache",[]);le(this,"httpRequestPath");this.group=e.group,this.httpRequestPath=e.httpRequestPath,this.value=this.createRequest(),this.value=this.createImport();}getValue(){return this.value.trim()}ret(e=1){return this.retract.repeat(e)}createRequest(){return [`${this.group.title?`
/// ${this.group.title}`:""}`,`${this.group.title?"":`
`}abstract class ${this.group.className}Api {`,this.group.list.map(n=>{var r;if(((r=n.result)==null?void 0:r.length)==1){const i=n.result[0];if(i.type=="array"){if(i.key=="items")return this.createPagingListRequestMethod(n);if(i.key=="data")return this.createListRequestMethod(n)}}return this.createRequestMethod(n)}).filter(Boolean).join(`

`),"}"].filter(Boolean).join(`
`)}createImport(){let e="";return this.value.includes("CancelToken")&&(e+=`import 'package:dio/dio.dart';
`),/\bHttp\./.test(this.value)&&(e+=`import '${this.httpRequestPath}';
`),this.importCache.length&&(e+=this.importCache.join(`
`)),this.importCache=[],e+(e?`
`:"")+this.value}createRequestMethod(e){const{name:n,hasRequest:r,hasResult:i}=this.getBaseState(e);return (r||i)&&this.importCache.push(`import './models/${It(n,"underline")}.dart';`),[e.title?`${this.ret(1)}/// ${e.title}`:"",`${this.ret(1)}static Future<${i?e.className:"void"}> ${n}(${this.createRequestParams(e)}) async {`,`${this.ret(2)}${i?"final result = ":""}await Http.request(`,`${this.ret(3)}'${e.originPath}',`,e.detail.method==="get"?`${this.ret(3)}method: HttpRequestMethod.get,`:"",r?`${this.ret(3)}params: params.toJson(),`:"",`${this.ret(3)}loading: loading,`,`${this.ret(3)}promptErrMsg: promptErrMsg,`,`${this.ret(3)}cancelToken: cancelToken,`,`${this.ret(2)});`,i?`${this.ret(2)}return ${e.className}.fromJson(result.data);`:"",`${this.ret(1)}}`].filter(Boolean).join(`
`)}createListRequestMethod(e){const{name:n,hasRequest:r,hasResult:i}=this.getBaseState(e);return (r||i)&&this.importCache.push(`import './models/${It(n,"underline")}.dart';`),[e.title?`${this.ret(1)}/// ${e.title}`:"",`${this.ret(1)}static Future<${i?`List<${e.className}Item>`:"void"}> ${n}(${this.createRequestParams(e)}) async {`,`${this.ret(2)}${i?"final result = ":""}await Http.request(`,`${this.ret(3)}'${e.originPath}',`,e.detail.method==="get"?`${this.ret(3)}method: HttpRequestMethod.get,`:"",r?`${this.ret(3)}params: params.toJson(),`:"",`${this.ret(3)}loading: loading,`,`${this.ret(3)}promptErrMsg: promptErrMsg,`,`${this.ret(3)}cancelToken: cancelToken,`,`${this.ret(2)});`,i?`${this.ret(2)}return jsonTo${e.className}(result.data);`:"",`${this.ret(1)}}`].filter(Boolean).join(`
`)}createPagingListRequestMethod(e){const{name:n,hasRequest:r,hasResult:i}=this.getBaseState(e);return this.group.list.some(s=>this.isTotal(s,e)),this.importCache.push(`import './models/${It(n,"underline")}.dart';`),[e.title?`${this.ret(1)}/// ${e.title}`:"",`${this.ret(1)}static Future<HttpListResult<${e.className}Item>> ${n}(${this.createRequestParams(e,{hasLoading:false,requiredPromptErrMsg:false})}) async {`,`${this.ret(2)}final result = await Http.listRequest(`,`${this.ret(3)}'${e.originPath}',`,e.detail.method==="get"?`${this.ret(3)}method: HttpRequestMethod.get,`:"",r?`${this.ret(3)}params: params.toJson(),`:"",`${this.ret(3)}promptErrMsg: promptErrMsg,`,`${this.ret(3)}cancelToken: cancelToken,`,`${this.ret(3)}fromJson: jsonTo${e.className},`,`${this.ret(2)});`,`${this.ret(2)}return result;`,`${this.ret(1)}}`].filter(Boolean).join(`
`)}createRequestParams(e,{hasLoading:n=true,requiredPromptErrMsg:r=true}={}){var a;const i=[],s=[`bool promptErrMsg = ${r}`,"CancelToken? cancelToken"];n&&s.unshift("bool loading = false"),(a=e.request)!=null&&a.length&&i.unshift(`${e.className}RequestParams params`);const o=s.join(", ");return [i.join(", "),o?`{${o}}`:""].filter(Boolean).join(", ")}getBaseState(e){var n,r;return {name:It(e.className.replace(this.group.className,""),"smallHump"),hasRequest:ll.number((n=e.request)==null?void 0:n.length,true),hasResult:(r=e.result)==null?void 0:r.length}}isTotal(e,n){var i,s,o,a,l;const r=e.path.endsWith("Total")&&(((s=(i=e.result)==null?void 0:i[0])==null?void 0:s.key)=="total"||((l=(a=(o=e.result)==null?void 0:o[0])==null?void 0:a.children)==null?void 0:l.length)==1&&e.result[0].children[0].key=="total");return n?r&&n.path==e.path.replace(/Total$/,""):r}}const Kee={class:"workbench"},Uee={class:"workbench-menu"},Jee={class:"workbench-content"},Gee={key:0,class:"content-err"},Xee={class:"code-content"},Yee={class:"button-box"},Qee={class:"url-path"},Zee={class:"url-path"},ete=defineComponent({__name:"workbench",setup(t){const e=Pk(),n=Wh(),r=ref(""),i=ref(),s=ref(false),o=ref(JSON.parse(JSON.stringify(e.$state))),a=ref({className:"Result"});let l;const u=ref(0),c=shallowRef(),f=ref(""),d=navigator.userAgent.includes("Macintosh")||navigator.userAgent.includes("Mac OS X"),h$1=computed(()=>{var I;const O=u.value,T=(I=c.value)==null?void 0:I.list;return O>0&&O<((T==null?void 0:T.length)??0)}),p=computed(()=>{var I;const O=u.value,T=(I=c.value)==null?void 0:I.list;return O>=0&&O<((T==null?void 0:T.length)??0)-1}),m=()=>{Hu({title:"更多设置",width:"auto",content:h(Mk,{onUpdate:()=>{console.log("设置已更新,重新生成数据"),C();}})});};onMounted(()=>{C(),watch(()=>o.value,O=>{C(),e.$state=JSON.parse(JSON.stringify(O));},{deep:true});});const g=O=>{var I;const T=(I=c.value)==null?void 0:I.list[O];!T||T.id===(l==null?void 0:l.id)||(l=T,!(o.value.dataSource==Wt.all||o.value.dataSource==Wt.requestFunction)&&C(true));},y=()=>{const O=N({path:f.value,code:r.value,openPath:true});navigator.clipboard.writeText(O).then(()=>vi.success("复制成功")).catch(()=>vi.error("复制失败"));},F=()=>{navigator.clipboard.writeText(r.value).then(()=>vi.success("复制成功")).catch(()=>vi.error("复制失败"));},x=()=>{Vo.instance.clearCache(),C();},b=()=>{var I;const O=(I=c.value)==null?void 0:I.list;if(!l||!O)return;const T=u.value;T>0&&T<O.length&&(l=O[T-1],C(true));},D=()=>{var I;const O=(I=c.value)==null?void 0:I.list;if(!l||!O)return;const T=u.value;T>=0&&T<O.length-1&&(l=O[T+1],C(true));},C=async(O=false)=>{var I,j,_;const T=IR.service({target:".workbench",fullscreen:false,background:"var(--el-dialog-bg-color)"});try{const R=(l==null?void 0:l.id)??((I=Vo.instance.getCurrentApiInfo())==null?void 0:I.id);if(!R)throw "未获取到当前接口 ID";if(c.value=await Vo.instance.getGroupApiList(R),!((_=(j=c.value)==null?void 0:j.list)!=null&&_.length))throw "未获取到当前接口分组";o.value.dataSource==Wt.all?S({group:c.value}):await E({group:c.value,switchDetail:O,infoId:R});}catch(R){console.error(R),i.value="错误原因:"+R;}T.close();},E=async O=>{const{group:T,switchDetail:I=false,infoId:j}=O;if(u.value=T.list.findIndex(_=>_.id==j),l=T.list[u.value],console.log(l),!l)throw "未找到当前接口";if(!l)throw "未获取到当前接口详情";s.value=l.model!==void 0,I&&(a.value.className="Result"),l.className&&a.value.className==="Result"&&(await new Promise(_=>setTimeout(_)),a.value.className=l.className),f.value=A({detail:l,dataSource:o.value.dataSource}),r.value=M({className:a.value.className,detail:l,dataSource:o.value.dataSource}),i.value="";},S=O=>{const{group:T}=O;console.log(T);const I=[];for(const L of T.list)try{const G=A({detail:L,dataSource:Wt.requestResult}),me=M({className:L.className,detail:L,dataSource:Wt.requestResult});I.push(N({path:G,code:me,openPath:!1}));}catch{}const j=A({detail:T.list[0],dataSource:Wt.requestFunction}),_=M({className:T.list[0].className,detail:T.list[0],dataSource:Wt.requestFunction}),R=N({path:j,code:_});I.push(R),r.value=I.filter(Boolean).join(`

`),i.value="";},A=O=>{const{detail:T,dataSource:I}=O,j=T.path.split("/").map(_=>It(_,"smallHump"));return I==Wt.requestFunction?j.splice(-1,1,"api"):j.length>1&&j.splice(-1,0,"models"),It(`/${o.value.language==dt.dart?"lib":"src"}/apis${j.join("/")}.${c7(o.value.language)}`,o.value.language==dt.dart?"underline":"line")},M=O=>{var R,L;const{className:T,detail:I,dataSource:j}=O;if(I.model!==void 0)return k(I.model,{detail:I,config:{className:T}});switch(j){case Wt.request:return k(I.request,{detail:I,config:{title:I.title+"请求参数",className:T+"RequestParams"}});case Wt.result:return k(I.fullResult,{detail:I,config:{className:T}});case Wt.requestFunction:if(!c.value)throw "未获取到当前接口分组";switch(o.value.language){case dt.ts:return new l2({group:c.value,httpRequestPath:n.basicMethod.ts.httpRequest.path,skipTotal:true}).getValue();case dt.ts_uniapp:return new l2({group:c.value,httpRequestPath:n.basicMethod.ts_uniapp.httpRequest.path,abort:{name:"cancel",className:"CancelRequest"},moreRequestOptions:{name:"options",className:"ApiRequestOptions",path:n.basicMethod.ts_uniapp.moreRequestOptions.path,importListRequestResult:true,controlTotal:true}}).getValue();case dt.dart:return new zee({group:c.value,httpRequestPath:n.basicMethod.dart.httpRequest.path}).getValue();default:return ""}case Wt.requestResult:let G=(R=I.result)!=null&&R.length?k(I.result,{detail:I,config:{className:T}}):"";if((L=I.request)!=null&&L.length){let me=k(I.request,{detail:I,config:{title:I.title+"请求参数",className:T+"RequestParams",isRequiredNative:true},ts:{jsonToModel:false,addExport:o.value.ts.jsonToModel||o.value.ts.addExport,allRequired:false},ts_uniapp:{jsonToModel:false,addExport:o.value.ts_uniapp.jsonToModel||o.value.ts_uniapp.addExport,allRequired:false},dart:{allRequired:false,fromJson:true,toJson:true,copyWith:false,enum:false}});if(me){const ye=new Set;G=G.replace(/\bimport\b[^;]+;/g,ve=>(ye.add(ve),"")).trim(),me=me.replace(/\bimport\b[^;]+;/g,ve=>(ye.add(ve),"")).trim(),G=`${ye.size?Array.from(ye).join(`
`)+`

`:""}${me}

${G}`;}}if(!G)throw `此接口没有「${j}」数据源`;return G;default:throw "无效的数据源"}},k=(O,T)=>{const{detail:I}=T,j=o.value,_=T.config.className,R=I.model!==void 0;if(typeof _!="string"||!_)throw "无效的数据模型名";if(!Array.isArray(O)||O.length===0)throw `此接口没有「${R?"模型":j.dataSource}」数据源`;switch(O=n.convertToLocalModel(j.language,O),j.language){case dt.dart:return new qE({...j.dart,...T==null?void 0:T.dart,title:I.title,...T==null?void 0:T.config,list:O,dataVerifyPath:n.basicMethod.dart.dataVerify.path,firstWhereOrNullPath:n.basicMethod.dart.firstWhereOrNull.path}).getValue();case dt.ts:return new Dd({...j.ts,...T==null?void 0:T.ts,title:I.title,...T==null?void 0:T.config,list:O,dataVerifyPath:n.basicMethod.ts.dataVerify.path}).getValue();case dt.ts_uniapp:return new Dd({...j.ts_uniapp,...T==null?void 0:T.ts_uniapp,title:I.title,...T==null?void 0:T.config,list:O,dataVerifyPath:n.basicMethod.ts_uniapp.dataVerify.path}).getValue();default:throw "无效的语言类型"}},N=O=>{const{path:T,code:I,openPath:j=true}=O;if(!I||!T)return "";const _=`.${T}`,R=_.substring(0,_.lastIndexOf("/"));return (d?[`mkdir -p ${R} && cat <<'_E_N_D_' > ${_}`,`${I}`,"_E_N_D_",j?`open ${_}`:""]:[`mkdir -p ${R} && cat <<'_E_N_D_' > ${_}`,`${I}`,"_E_N_D_",j?`code ${_}`:""]).filter(Boolean).join(`
`)};return (O,T)=>{var I,j;return openBlock(),createElementBlock("div",Kee,[createElementVNode("div",Uee,[createVNode(unref(fo),null,{default:withCtx(()=>[createVNode(unref(hh),{class:"workbench-menu-form",model:o.value},{default:withCtx(()=>[createVNode(unref(Me),{label:"语言","label-position":"top"},{default:withCtx(()=>[createVNode(unref(fh),{modelValue:o.value.language,"onUpdate:modelValue":T[0]||(T[0]=_=>o.value.language=_)},{default:withCtx(()=>[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(dt),_=>(openBlock(),createBlock(unref(dh),{key:_,label:_,value:_},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),s.value?createCommentVNode("",true):(openBlock(),createBlock(unref(Me),{key:0,label:"数据源","label-position":"top"},{default:withCtx(()=>[createVNode(unref(YD),{modelValue:o.value.dataSource,"onUpdate:modelValue":T[1]||(T[1]=_=>o.value.dataSource=_)},{default:withCtx(()=>[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(Wt),_=>(openBlock(),createBlock(unref(QD),{key:_,label:_,value:_},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})),o.value.dataSource!==unref(Wt).requestFunction?(openBlock(),createElementBlock(Fragment,{key:1},[createVNode(unref(Me),{label:"接口详情(仅本组)","label-position":"top"},{default:withCtx(()=>[createVNode(unref(YD),{modelValue:u.value,"onUpdate:modelValue":T[2]||(T[2]=_=>u.value=_),onChange:g},{default:withCtx(()=>{var _;return [(openBlock(true),createElementBlock(Fragment,null,renderList((_=c.value)==null?void 0:_.list,(R,L)=>(openBlock(),createBlock(unref(QD),{key:R.id,label:R.title,value:L},null,8,["label","value"]))),128))]}),_:1},8,["modelValue"])]),_:1}),o.value.dataSource!==unref(Wt).all?(openBlock(),createBlock(unref(Me),{key:0,label:"数据模型名","label-position":"top"},{default:withCtx(()=>[createVNode(unref(wn),{type:"textarea",modelValue:a.value.className,"onUpdate:modelValue":T[3]||(T[3]=_=>a.value.className=_),placeholder:"蛇形 中划线 空格间隔",onChange:T[4]||(T[4]=()=>C())},null,8,["modelValue"])]),_:1})):createCommentVNode("",true),o.value.language==unref(dt).ts?(openBlock(),createElementBlock(Fragment,{key:1},[createVNode(unref(Me),{class:"single-line small-font",label:"属性非空 (枚举、本地模型除外)","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:o.value.ts.allRequired,"onUpdate:modelValue":T[5]||(T[5]=_=>o.value.ts.allRequired=_)},null,8,["modelValue"])]),_:1}),createVNode(unref(Me),{class:"single-line",label:"生成转模型方法","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:o.value.ts.jsonToModel,"onUpdate:modelValue":T[6]||(T[6]=_=>o.value.ts.jsonToModel=_)},null,8,["modelValue"])]),_:1}),o.value.ts.jsonToModel?createCommentVNode("",true):(openBlock(),createBlock(unref(Me),{key:0,class:"single-line",label:"添加 export 关键字","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:o.value.ts.addExport,"onUpdate:modelValue":T[7]||(T[7]=_=>o.value.ts.addExport=_)},null,8,["modelValue"])]),_:1}))],64)):o.value.language==unref(dt).ts_uniapp?(openBlock(),createElementBlock(Fragment,{key:2},[createVNode(unref(Me),{class:"single-line small-font",label:"属性非空 (枚举、本地模型除外)","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:o.value.ts_uniapp.allRequired,"onUpdate:modelValue":T[8]||(T[8]=_=>o.value.ts_uniapp.allRequired=_)},null,8,["modelValue"])]),_:1}),createVNode(unref(Me),{class:"single-line",label:"生成转模型方法","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:o.value.ts_uniapp.jsonToModel,"onUpdate:modelValue":T[9]||(T[9]=_=>o.value.ts_uniapp.jsonToModel=_)},null,8,["modelValue"])]),_:1}),o.value.ts_uniapp.jsonToModel?createCommentVNode("",true):(openBlock(),createBlock(unref(Me),{key:0,class:"single-line",label:"添加 export 关键字","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:o.value.ts_uniapp.addExport,"onUpdate:modelValue":T[10]||(T[10]=_=>o.value.ts_uniapp.addExport=_)},null,8,["modelValue"])]),_:1}))],64)):o.value.language==unref(dt).dart?(openBlock(),createElementBlock(Fragment,{key:3},[createVNode(unref(Me),{class:"single-line small-font",label:"属性非空 (枚举、本地模型除外)","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:o.value.dart.allRequired,"onUpdate:modelValue":T[11]||(T[11]=_=>o.value.dart.allRequired=_)},null,8,["modelValue"])]),_:1}),createVNode(unref(Me),{class:"single-line",label:"生成 toJson","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:o.value.dart.toJson,"onUpdate:modelValue":T[12]||(T[12]=_=>o.value.dart.toJson=_)},null,8,["modelValue"])]),_:1}),createVNode(unref(Me),{class:"single-line",label:"生成 copyWith","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:o.value.dart.copyWith,"onUpdate:modelValue":T[13]||(T[13]=_=>o.value.dart.copyWith=_)},null,8,["modelValue"])]),_:1}),createVNode(unref(Me),{class:"single-line",label:"生成枚举类","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:o.value.dart.enum,"onUpdate:modelValue":T[14]||(T[14]=_=>o.value.dart.enum=_)},null,8,["modelValue"])]),_:1})],64)):createCommentVNode("",true)],64)):createCommentVNode("",true),createElementVNode("div",{class:"setting-more",onClick:m},"更多设置")]),_:1},8,["model"])]),_:1}),createVNode(unref(_n),{onClick:x},{default:withCtx(()=>T[17]||(T[17]=[createTextVNode("刷新接口缓存")])),_:1,__:[17]})]),createElementVNode("div",Jee,[i.value?(openBlock(),createElementBlock("div",Gee,[createElementVNode("div",null,toDisplayString(i.value),1),createVNode(unref(_n),{onClick:T[15]||(T[15]=()=>C())},{default:withCtx(()=>T[18]||(T[18]=[createTextVNode("刷新")])),_:1,__:[18]})])):createCommentVNode("",true),createElementVNode("div",Xee,[createVNode(mv,{language:"typescript","auto-format":false,modelValue:r.value,"onUpdate:modelValue":T[16]||(T[16]=_=>r.value=_)},null,8,["modelValue"])]),createElementVNode("div",Yee,[o.value.dataSource==unref(Wt).all?(openBlock(),createElementBlock(Fragment,{key:0},[createElementVNode("div",Qee,"本组共"+toDisplayString(((j=(I=c.value)==null?void 0:I.list)==null?void 0:j.length)??0)+"个接口",1),T[20]||(T[20]=createElementVNode("div",{class:"url-path",style:{"margin-left":"0",color:"var(--el-color-primary)"}},"建议将命令保存为 .sh 文件再 run code,可避命令行卡顿",-1)),createVNode(unref(_n),{type:"primary",onClick:F},{default:withCtx(()=>T[19]||(T[19]=[createTextVNode("复制创建命令")])),_:1,__:[19]})],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createElementVNode("div",Zee,toDisplayString(f.value),1),o.value.dataSource!=unref(Wt).requestFunction?(openBlock(),createElementBlock(Fragment,{key:0},[h$1.value?(openBlock(),createBlock(unref(_n),{key:0,type:"default",plain:"",onClick:b},{default:withCtx(()=>T[21]||(T[21]=[createTextVNode("本组上一个")])),_:1,__:[21]})):createCommentVNode("",true),p.value?(openBlock(),createBlock(unref(_n),{key:1,type:"default",plain:"",onClick:D},{default:withCtx(()=>T[22]||(T[22]=[createTextVNode("本组下一个")])),_:1,__:[22]})):createCommentVNode("",true)],64)):createCommentVNode("",true),createVNode(unref(_n),{type:"primary",plain:"",onClick:y},{default:withCtx(()=>T[23]||(T[23]=[createTextVNode("复制创建命令")])),_:1,__:[23]}),createVNode(unref(_n),{type:"primary",onClick:F},{default:withCtx(()=>T[24]||(T[24]=[createTextVNode("复制模型")])),_:1,__:[24]})],64))])])])}}});class tte{constructor(e){le(this,"json");le(this,"className");le(this,"title");this.json=e.json,this.className=e.className,this.title=e.title;}getValue(){const e=this.parseJson(this.json,this.className);return {id:"",title:this.title||this.className,className:this.className,path:"",detail:{},model:e}}parseJson(e,n){if(typeof e!="object"||e===null)return [];const r=[];for(const i in e){if(!e.hasOwnProperty(i))continue;const s=e[i],o=n+i.replace(/(?:^|_)(\w)/g,(u,c)=>c.toUpperCase()),a=this.getValueType(s),l={key:i,name:o,type:a,required:false,description:""};switch(a){case "string":case "number":case "integer":case "boolean":r.push(l);break;case "object":s&&typeof s=="object"&&!Array.isArray(s)&&(l.children=this.parseJson(s,o)),r.push(l);break;case "array":Array.isArray(s)&&s.length>0&&(l.children=this.parseArrayItem(s,o)),r.push(l);break;default:l.type="any",r.push(l);break}}return r}parseArrayItem(e,n){if(e.length===0)return [];const r=e[0],i=this.getValueType(r),s=n+"Item",o={key:"item",name:s,type:i,required:false,description:""};switch(i){case "object":r&&typeof r=="object"&&!Array.isArray(r)&&(o.children=this.parseJson(r,s));break;case "array":Array.isArray(r)&&r.length>0&&(o.children=this.parseArrayItem(r,s));break}return [o]}getValueType(e){if(e==null)return "any";if(Array.isArray(e))return "array";switch(typeof e){case "string":return "string";case "number":return Number.isInteger(e)?"integer":"number";case "boolean":return "boolean";case "object":return "object";default:return "any"}}}class gv{constructor(){le(this,"_timer",{});le(this,"_secondTime",{});le(this,"_throttleTime",{});}antiShake(e){const n=(e==null?void 0:e.delay)||300,r=(e==null?void 0:e.key)||"default",i=(e==null?void 0:e.firstCall)??true;this._timer[r]?this._secondTime[r]&&(clearTimeout(this._timer[r]),this._timer[r]=setTimeout(()=>{this._timer[r]&&delete this._timer[r],this._secondTime[r]=false,e.callback();},n)):(this._secondTime[r]=true,this._timer[r]=setTimeout(()=>{this._timer[r]&&delete this._timer[r],this._secondTime[r]=false,i||e.callback();},n),i&&e.callback());}throttle(e){const n=e==null?void 0:e.callback,r=(e==null?void 0:e.delay)||300,i=(e==null?void 0:e.key)||"default",s=Date.now();return !this._throttleTime[i]||s>this._throttleTime[i]?(this._throttleTime[i]=s+r,n==null||n(),true):false}}const nte={class:"custom-workbench"},rte={class:"workbench-menu"},ite={class:"workbench-json"},ste={class:"workbench-content"},ote={key:0,class:"content-err"},ate={class:"code-content"},lte={class:"button-box"},ute=defineComponent({__name:"custom-workbench",setup(t){const e=Pk(),n=Wh(),r=ref(""),i=ref(),s=ref(JSON.parse(JSON.stringify(e.$state))),o=ref({className:"Result"});let a;const l=ref(""),u=new gv,c=()=>{Hu({title:"更多设置",width:"auto",content:h(Mk,{onUpdate:()=>{console.log("设置已更新,重新生成数据"),d();}})});};onMounted(()=>{d(),watch(()=>l.value,()=>{d();},{immediate:true}),watch(()=>s.value,m=>{d(),e.$state=JSON.parse(JSON.stringify(m));},{deep:true,immediate:false});});const f=()=>{navigator.clipboard.writeText(r.value).then(()=>vi.success("复制成功")).catch(()=>vi.error("复制失败"));},d=()=>{u.antiShake({firstCall:true,delay:750,callback:async()=>{try{if(!l.value)throw "请输入 JSON 数据";try{const m=JSON.parse(l.value);a=new tte({json:m,className:o.value.className,title:o.value.className}).getValue();}catch(m){throw "无效的 JSON 格式:"+m}console.log(a),r.value=await h$1(),i.value="";}catch(m){console.error(m),i.value="错误原因:"+m;}}});},h$1=async()=>{if(!a||!Array.isArray(a.model)||a.model.length===0)throw "无效的 json 数据";return a.className&&o.value.className==="Result"&&(await new Promise(m=>setTimeout(m)),o.value.className=a.className),p(a.model)},p=(m,g)=>{const y=s.value,F=o.value.className;if(!a)throw "未获取到当前接口详情";if(typeof F!="string"||!F)throw "无效的数据模型名";switch(m=n.convertToLocalModel(y.language,m),y.language){case dt.dart:return new qE({...y.dart,...void 0,title:a.title,className:F,...void 0,list:m,dataVerifyPath:n.basicMethod.dart.dataVerify.path,firstWhereOrNullPath:n.basicMethod.dart.firstWhereOrNull.path}).getValue();case dt.ts:return new Dd({...y.ts,...void 0,title:a.title,className:F,...void 0,list:m,dataVerifyPath:n.basicMethod.ts.dataVerify.path}).getValue();case dt.ts_uniapp:return new Dd({...y.ts_uniapp,...void 0,title:a.title,className:F,...void 0,list:m,dataVerifyPath:n.basicMethod.ts_uniapp.dataVerify.path}).getValue();default:throw "无效的语言类型"}};return (m,g)=>(openBlock(),createElementBlock("div",nte,[createElementVNode("div",rte,[createVNode(unref(fo),null,{default:withCtx(()=>[createVNode(unref(hh),{class:"workbench-menu-form",model:s.value},{default:withCtx(()=>[createVNode(unref(Me),{label:"语言","label-position":"top"},{default:withCtx(()=>[createVNode(unref(fh),{modelValue:s.value.language,"onUpdate:modelValue":g[0]||(g[0]=y=>s.value.language=y)},{default:withCtx(()=>[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(dt),y=>(openBlock(),createBlock(unref(dh),{key:y,label:y,value:y},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),createVNode(unref(Me),{label:"数据模型名","label-position":"top"},{default:withCtx(()=>[createVNode(unref(wn),{type:"textarea",modelValue:o.value.className,"onUpdate:modelValue":g[1]||(g[1]=y=>o.value.className=y),placeholder:"蛇形 中划线 空格间隔",onChange:d},null,8,["modelValue"])]),_:1}),s.value.language==unref(dt).ts?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode(unref(Me),{class:"single-line small-font",label:"属性非空 (枚举、本地模型除外)","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:s.value.ts.allRequired,"onUpdate:modelValue":g[2]||(g[2]=y=>s.value.ts.allRequired=y)},null,8,["modelValue"])]),_:1}),createVNode(unref(Me),{class:"single-line",label:"生成转模型方法","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:s.value.ts.jsonToModel,"onUpdate:modelValue":g[3]||(g[3]=y=>s.value.ts.jsonToModel=y)},null,8,["modelValue"])]),_:1}),s.value.ts.jsonToModel?createCommentVNode("",true):(openBlock(),createBlock(unref(Me),{key:0,class:"single-line",label:"添加 export 关键字","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:s.value.ts.addExport,"onUpdate:modelValue":g[4]||(g[4]=y=>s.value.ts.addExport=y)},null,8,["modelValue"])]),_:1}))],64)):s.value.language==unref(dt).ts_uniapp?(openBlock(),createElementBlock(Fragment,{key:1},[createVNode(unref(Me),{class:"single-line small-font",label:"属性非空 (枚举、本地模型除外)","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:s.value.ts_uniapp.allRequired,"onUpdate:modelValue":g[5]||(g[5]=y=>s.value.ts_uniapp.allRequired=y)},null,8,["modelValue"])]),_:1}),createVNode(unref(Me),{class:"single-line",label:"生成转模型方法","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:s.value.ts_uniapp.jsonToModel,"onUpdate:modelValue":g[6]||(g[6]=y=>s.value.ts_uniapp.jsonToModel=y)},null,8,["modelValue"])]),_:1}),s.value.ts_uniapp.jsonToModel?createCommentVNode("",true):(openBlock(),createBlock(unref(Me),{key:0,class:"single-line",label:"添加 export 关键字","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:s.value.ts_uniapp.addExport,"onUpdate:modelValue":g[7]||(g[7]=y=>s.value.ts_uniapp.addExport=y)},null,8,["modelValue"])]),_:1}))],64)):s.value.language==unref(dt).dart?(openBlock(),createElementBlock(Fragment,{key:2},[createVNode(unref(Me),{class:"single-line small-font",label:"属性非空 (枚举、本地模型除外)","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:s.value.dart.allRequired,"onUpdate:modelValue":g[8]||(g[8]=y=>s.value.dart.allRequired=y)},null,8,["modelValue"])]),_:1}),createVNode(unref(Me),{class:"single-line",label:"生成 toJson","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:s.value.dart.toJson,"onUpdate:modelValue":g[9]||(g[9]=y=>s.value.dart.toJson=y)},null,8,["modelValue"])]),_:1}),createVNode(unref(Me),{class:"single-line",label:"生成 copyWith","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:s.value.dart.copyWith,"onUpdate:modelValue":g[10]||(g[10]=y=>s.value.dart.copyWith=y)},null,8,["modelValue"])]),_:1}),createVNode(unref(Me),{class:"single-line",label:"生成枚举类","label-position":"left"},{default:withCtx(()=>[createVNode(unref(_t),{size:"small",modelValue:s.value.dart.enum,"onUpdate:modelValue":g[11]||(g[11]=y=>s.value.dart.enum=y)},null,8,["modelValue"])]),_:1})],64)):createCommentVNode("",true),createElementVNode("div",{class:"setting-more",onClick:c},"更多设置")]),_:1},8,["model"])]),_:1})]),createElementVNode("div",ite,[createVNode(unref(wn),{class:"workbench-json-input",type:"textarea",modelValue:l.value,"onUpdate:modelValue":g[12]||(g[12]=y=>l.value=y),placeholder:"请输入 JSON 数据"},null,8,["modelValue"])]),createElementVNode("div",ste,[i.value?(openBlock(),createElementBlock("div",ote,[createElementVNode("div",null,toDisplayString(i.value),1)])):createCommentVNode("",true),createElementVNode("div",ate,[createVNode(mv,{language:"typescript","auto-format":false,modelValue:r.value,"onUpdate:modelValue":g[13]||(g[13]=y=>r.value=y)},null,8,["modelValue"])]),createElementVNode("div",lte,[createVNode(unref(_n),{type:"primary",onClick:f},{default:withCtx(()=>g[14]||(g[14]=[createTextVNode("复制模型")])),_:1,__:[14]})])])]))}}),cte=defineComponent({__name:"App",setup(t){const e=new gv;onMounted(()=>{const i=document.querySelector("#root");if(!i)return;i.onmousedown=()=>{e.antiShake({firstCall:false,delay:1e3,callback:()=>{const l=Vo.instance.getCurrentApiInfo();l&&history.replaceState({},"",`/project/${l.projectId}/apis/api-${l.id}`);}});};let s=0,o=0;const a=setInterval(()=>{const l=document.querySelector(".ui-tabs-nav-list .ui-tabs-tab.ui-tabs-tab-active .ui-dropdown-trigger");if(l==null||l.dispatchEvent(new MouseEvent("click",{bubbles:true,cancelable:true})),s++,l&&o++,o>=2||s>10){clearInterval(a);return}},1e3);});const n=()=>{Hu({title:"生成模型",width:"auto",content:h(ete)});},r=()=>{Hu({title:"自定义生成模型",width:"auto",content:h(ute)});};return (i,s)=>(openBlock(),createBlock(u7,null,{default:withCtx(()=>[createElementVNode("div",{class:"crawler-app",onClick:n},"模型"),createElementVNode("div",{class:"crawler-app",onClick:r},"自定义")]),_:1}))}}),fte=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},dte=fte(cte,[["__scopeId","data-v-4f066fa6"]]),hte=t=>{var l;const{store:e}=t,n=(l=t.options)==null?void 0:l.persistence;let r=[];if(n===true?r=Object.keys(e.$state):ll.array(n,true)&&(r=n),!r.length)return;const i=new gv,s=`pinia-persistence-${e.$id}-${Vo.currentProjectId}`,o=So.object(localStorage.getItem(s)),a={};r.forEach(u=>{const c=o==null?void 0:o[u];ll.any(c)&&(e[u]=c),a[u]=e[u];}),e.$subscribe((u,c)=>{i.antiShake({callback:()=>{let f=false;for(const d in a)(a[d]!==c[d]||typeof c[d]=="object")&&(a[d]=c[d],f=true);f&&setTimeout(()=>localStorage.setItem(s,JSON.stringify(a)));}});},{deep:true});},Nk=createApp(dte),Ik=f8();Nk.use(Ik);Ik.use(hte);const yv=document.createElement("div");yv.className="app-container";document.body.append(yv);Nk.mount(yv);

        })
    };
}));

System.register("./index-C-1GBFce-Djatmhd3.js", ['./index-CdOzjjIA-SHR6veo_.js', './__monkey.entry-BeB6vm3i.js', 'vue'], (function (exports, module) {
	'use strict';
	var QO, nO, oO, u, ge$1, q$1, k$1, w$1, UO, hg, xte, ue$1, bte, Uj, rV, wte, Ste, AV, ln, J$1, Lj, w$2, Dte, $t$1;
	return {
		setters: [module => {
			QO = module.t;
			nO = module.j;
			oO = module.b;
			u = module.c;
			ge$1 = module.d;
			q$1 = module.L;
			k$1 = module.E;
			w$1 = module.a;
			UO = module.C;
		}, module => {
			hg = module.h;
			xte = module.x;
			ue$1 = module.u;
			bte = module.b;
			Uj = module.U;
			rV = module.r;
			wte = module.w;
			Ste = module.S;
			AV = module.A;
			ln = module.l;
			J$1 = module.J;
			Lj = module.L;
			w$2 = module.a;
			Dte = module.D;
			$t$1 = module.$;
		}, null],
		execute: (function () {

			exports({
				html: $a,
				htmlCompletionSourceWith: ga
			});

			const Je=54,et=1,tt=55,at=2,lt=56,rt=3,I=4,Ot=5,V=6,ge=7,he=8,Qe=9,be=10,ot=11,nt=12,st=13,R=57,it=14,L=58,ye=20,ut=22,Pe=23,ct=24,U=26,$e=27,dt=28,pt=31,mt=34,ft=36,St=37,gt=0,ht=1,Qt={area:true,base:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true,menuitem:true},bt={dd:true,li:true,optgroup:true,option:true,p:true,rp:true,rt:true,tbody:true,td:true,tfoot:true,th:true,tr:true},F={dd:{dd:true,dt:true},dt:{dd:true,dt:true},li:{li:true},option:{option:true,optgroup:true},optgroup:{optgroup:true},p:{address:true,article:true,aside:true,blockquote:true,dir:true,div:true,dl:true,fieldset:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,menu:true,nav:true,ol:true,p:true,pre:true,section:true,table:true,ul:true},rp:{rp:true,rt:true},rt:{rp:true,rt:true},tbody:{tbody:true,tfoot:true},td:{td:true,th:true},tfoot:{tbody:true},th:{td:true,th:true},thead:{tbody:true,tfoot:true},tr:{tr:true}};function yt(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function we(e){return e==9||e==10||e==13||e==32}let K=null,H=null,J=0;function G(e,a){let r=e.pos+a;if(J==r&&H==e)return K;let l=e.peek(a);for(;we(l);)l=e.peek(++a);let t="";for(;yt(l);)t+=String.fromCharCode(l),l=e.peek(++a);return H=e,J=r,K=t?t.toLowerCase():l==Pt||l==$t?void 0:null}const Xe=60,_=62,B=47,Pt=63,$t=33,wt=45;function ee(e,a){this.name=e,this.parent=a;}const Xt=[V,be,ge,he,Qe],Tt=new UO({start:null,shift(e,a,r,l){return Xt.indexOf(a)>-1?new ee(G(l,1)||"",e):e},reduce(e,a){return a==ye&&e?e.parent:e},reuse(e,a,r,l){let t=a.type.id;return t==V||t==ft?new ee(G(l,1)||"",e):e},strict:false}),xt=new k$1((e,a)=>{if(e.next!=Xe){e.next<0&&a.context&&e.acceptToken(R);return}e.advance();let r=e.next==B;r&&e.advance();let l=G(e,0);if(l===void 0)return;if(!l)return e.acceptToken(r?it:V);let t=a.context?a.context.name:null;if(r){if(l==t)return e.acceptToken(ot);if(t&&bt[t])return e.acceptToken(R,-2);if(a.dialectEnabled(gt))return e.acceptToken(nt);for(let O=a.context;O;O=O.parent)if(O.name==l)return;e.acceptToken(st);}else {if(l=="script")return e.acceptToken(ge);if(l=="style")return e.acceptToken(he);if(l=="textarea")return e.acceptToken(Qe);if(Qt.hasOwnProperty(l))return e.acceptToken(be);t&&F[t]&&F[t][l]?e.acceptToken(R,-1):e.acceptToken(V);}},{contextual:true}),vt=new k$1(e=>{for(let a=0,r=0;;r++){if(e.next<0){r&&e.acceptToken(L);break}if(e.next==wt)a++;else if(e.next==_&&a>=2){r>=3&&e.acceptToken(L,-2);break}else a=0;e.advance();}});function kt(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return  true;return  false}const Vt=new k$1((e,a)=>{if(e.next==B&&e.peek(1)==_){let r=a.dialectEnabled(ht)||kt(a.context);e.acceptToken(r?Ot:I,2);}else e.next==_&&e.acceptToken(I,1);});function M(e,a,r){let l=2+e.length;return new k$1(t=>{for(let O=0,n=0,s=0;;s++){if(t.next<0){s&&t.acceptToken(a);break}if(O==0&&t.next==Xe||O==1&&t.next==B||O>=2&&O<l&&t.next==e.charCodeAt(O-2))O++,n++;else if((O==2||O==l)&&we(t.next))n++;else if(O==l&&t.next==_){s>n?t.acceptToken(a,-n):t.acceptToken(r,-(n-2));break}else if((t.next==10||t.next==13)&&s){t.acceptToken(a,1);break}else O=n=0;t.advance();}})}const _t=M("script",Je,et),qt=M("style",tt,at),Ct=M("textarea",lt,rt),Rt=Lj({"Text RawText":w$2.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":w$2.angleBracket,TagName:w$2.tagName,"MismatchedCloseTag/TagName":[w$2.tagName,w$2.invalid],AttributeName:w$2.attributeName,"AttributeValue UnquotedAttributeValue":w$2.attributeValue,Is:w$2.definitionOperator,"EntityReference CharacterReference":w$2.character,Comment:w$2.blockComment,ProcessingInst:w$2.processingInstruction,DoctypeDecl:w$2.documentMeta}),Wt=q$1.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7[O)kQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)pQ#tO'#C|OOOd-E7^-E7^O)uQ#tO'#DPOOO`-E7_-E7_O)zQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O*PQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOO`7+$t7+$tOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rO*[Q#|O,59eO*aQ#|O,59hO*fQ#|O,59kOOO`1G/X1G/XO*kO7[O'#CvO*|OMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O+_O7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+pOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:",]~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OT}OhyO~OS!POT}OhyO~OS!ROT}OhyO~OS!TOT}OhyO~OS}OT}OhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXTgXhgX~OS!fOT!gOhyO~OS!hOT!gOhyO~OS!iOT!gOhyO~OS!jOT!gOhyO~OS!gOT!gOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:Tt,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[Rt],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UV`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pT`POv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!cpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({W`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!a`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!a`!cpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYkWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]``P!a`!cp!^^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebhSkWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXhSqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vchS`P!a`!cpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;'S1k;'S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!`h`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_4WihSkWc!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QchSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;'S;{;'S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[_t,qt,Ct,Vt,xt,vt,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:509},tokenPrec:511});function Te(e,a){let r=Object.create(null);for(let l of e.getChildren(Pe)){let t=l.getChild(ct),O=l.getChild(U)||l.getChild($e);t&&(r[a.read(t.from,t.to)]=O?O.type.id==U?a.read(O.from+1,O.to-1):a.read(O.from,O.to):"");}return r}function te(e,a){let r=e.getChild(ut);return r?a.read(r.from,r.to):" "}function W(e,a,r){let l;for(let t of r)if(!t.attrs||t.attrs(l||(l=Te(e.node.parent.firstChild,a))))return {parser:t.parser};return null}function xe(e=[],a=[]){let r=[],l=[],t=[],O=[];for(let s of e)(s.tag=="script"?r:s.tag=="style"?l:s.tag=="textarea"?t:O).push(s);let n=a.length?Object.create(null):null;for(let s of a)(n[s.name]||(n[s.name]=[])).push(s);return bte((s,u)=>{let S=s.type.id;if(S==dt)return W(s,u,r);if(S==pt)return W(s,u,l);if(S==mt)return W(s,u,t);if(S==ye&&O.length){let m=s.node,d=m.firstChild,f=d&&te(d,u),c;if(f){for(let p of O)if(p.tag==f&&(!p.attrs||p.attrs(c||(c=Te(d,u))))){let h=m.lastChild,Q=h.type.id==St?h.from:m.to;if(Q>d.to)return {parser:p.parser,overlay:[{from:d.to,to:Q}]}}}}if(n&&S==Pe){let m=s.node,d;if(d=m.firstChild){let f=n[u.read(d.from,d.to)];if(f)for(let c of f){if(c.tagName&&c.tagName!=te(m.parent,u))continue;let p=m.lastChild;if(p.type.id==U){let h=p.from+1,Q=p.lastChild,P=p.to-(Q&&Q.isError?0:1);if(P>h)return {parser:c.parser,overlay:[{from:h,to:P}]}}else if(p.type.id==$e)return {parser:c.parser,overlay:[{from:p.from,to:p.to}]}}}}return null})}const Yt=107,ae=1,Zt=108,zt=109,le=2,re=110,ve=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Et=58,At=40,ke=95,Ut=91,v=45,Gt=46,Nt=35,Dt=37,Bt=38,Mt=92,jt=10,It=42;function T(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function Ve(e){return e>=48&&e<=57}const Lt=new k$1((e,a)=>{for(let r=false,l=0,t=0;;t++){let{next:O}=e;if(T(O)||O==v||O==ke||r&&Ve(O))!r&&(O!=v||t>0)&&(r=true),l===t&&O==v&&l++,e.advance();else if(O==Mt&&e.peek(1)!=jt)e.advance(),e.next>-1&&e.advance(),r=true;else {r&&e.acceptToken(l==2&&a.canShift(le)?le:a.canShift(re)?re:O==At?Zt:zt);break}}}),Ft=new k$1(e=>{if(ve.includes(e.peek(-1))){let{next:a}=e;(T(a)||a==ke||a==Nt||a==Gt||a==It||a==Ut||a==Et&&T(e.peek(1))||a==v||a==Bt)&&e.acceptToken(Yt);}}),Kt=new k$1(e=>{if(!ve.includes(e.peek(-1))){let{next:a}=e;if(a==Dt&&(e.advance(),e.acceptToken(ae)),T(a)){do e.advance();while(T(e.next)||Ve(e.next));e.acceptToken(ae);}}}),Ht=Lj({"AtKeyword import charset namespace keyframes media supports":w$2.definitionKeyword,"from to selector":w$2.keyword,NamespaceName:w$2.namespace,KeyframeName:w$2.labelName,KeyframeRangeName:w$2.operatorKeyword,TagName:w$2.tagName,ClassName:w$2.className,PseudoClassName:w$2.constant(w$2.className),IdName:w$2.labelName,"FeatureName PropertyName":w$2.propertyName,AttributeName:w$2.attributeName,NumberLiteral:w$2.number,KeywordQuery:w$2.keyword,UnaryQueryOp:w$2.operatorKeyword,"CallTag ValueName":w$2.atom,VariableName:w$2.variableName,Callee:w$2.operatorKeyword,Unit:w$2.unit,"UniversalSelector NestingSelector":w$2.definitionOperator,"MatchOp CompareOp":w$2.compareOperator,"ChildOp SiblingOp, LogicOp":w$2.logicOperator,BinOp:w$2.arithmeticOperator,Important:w$2.modifier,Comment:w$2.blockComment,ColorLiteral:w$2.color,"ParenthesizedContent StringLiteral":w$2.string,":":w$2.punctuation,"PseudoOp #":w$2.derefOperator,"; ,":w$2.separator,"( )":w$2.paren,"[ ]":w$2.squareBracket,"{ }":w$2.brace}),Jt={__proto__:null,lang:34,"nth-child":34,"nth-last-child":34,"nth-of-type":34,"nth-last-of-type":34,dir:34,"host-context":34,url:62,"url-prefix":62,domain:62,regexp:62},ea={__proto__:null,"@import":120,"@media":154,"@charset":158,"@namespace":162,"@keyframes":168,"@supports":180},ta={__proto__:null,layer:124,not:144,only:144,selector:150},aa=q$1.deserialize({version:14,states:">`QYQ[OOO#kQ[OOP#rOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#wQ[O'#CfO$hQXO'#CaO$rQ[O'#CiO$}Q[O'#DUO%SQ[O'#DXO%XQ[O'#D[O%XQ[O'#D_OOQP'#Ev'#EvO%yQdO'#DhO&hQ[O'#DzO%yQdO'#D|O&yQ[O'#EOO'UQ[O'#ERO'^Q[O'#EXO'lQ[O'#EZOOQS'#Eu'#EuOOQS'#E^'#E^QYQ[OOO'sQXO'#CdO(hQWO'#DdO(mQWO'#E{O(xQ[O'#E{QOQWOOP)SO#tO'#C_POOO)C@e)C@eOOQP'#Ch'#ChOOQP,59Q,59QO#wQ[O,59QO)_Q[O,59TO$}Q[O,59pO%SQ[O,59sO%XQ[O,59vO%XQ[O,59xO%XQ[O,59yO%XQ[O'#EcO)jQWO,58{O)rQ[O'#DcOOQS,58{,58{OOQP'#Cl'#ClOOQO'#DS'#DSOOQP,59T,59TO)yQWO,59TO*OQWO,59TOOQP'#DW'#DWOOQP,59p,59pOOQO'#DY'#DYO*TQ`O,59sO*nQXO,59vO+UQXO,59yOOQS'#Cq'#CqO%yQdO'#CrO+lQvO'#CtO-hQtO,5:SOOQO'#Cy'#CyO*OQWO'#CxO-rQWO'#CzO-wQ[O'#DPOOQS'#Ex'#ExOOQO'#Dn'#DnO.eQdO'#DwO.uQWO'#E|O'^Q[O'#DuO/TQWO'#DxOOQO'#E}'#E}O)mQWO,5:fO/YQpO,5:hOOQS'#EQ'#EQO/bQWO,5:jO/gQ[O,5:jOOQO'#ET'#ETO/oQWO,5:mO/tQWO,5:sO/|QWO,5:uOOQS-E8[-E8[O0UQdO,5:OO0fQ[O'#EeO0sQWO,5;gO0sQWO,5;gPOOO'#E]'#E]P1OO#tO,58yPOOO,58y,58yOOQP1G.l1G.lOOQP1G.o1G.oO)yQWO1G.oO*OQWO1G.oOOQP1G/[1G/[O1ZQ`O1G/_O1cQXO1G/bO1yQXO1G/dO2aQXO1G/eO2wQXO,5:}OOQO-E8a-E8aOOQS1G.g1G.gO3RQWO,59}O3WQ[O'#DTO3_QdO'#CpOOQP1G/_1G/_O%yQdO1G/_O3fQpO,59^OOQS,59`,59`O%yQdO,59bO3nQ[O'#DkO4PQWO1G/nO-VQ[O1G/nOOQS,59d,59dO4UQ!bO,59fOOQS'#DQ'#DQOOQS'#E`'#E`O4aQ[O,59kOOQS,59k,59kO4iQpO'#DnO4wQpO,5:ZO5PQWO,5:cOOQO'#FO'#FOO4zQpO,5:_O'^Q[O,5:]O5XQ[O'#EgO5pQWO,5;hO5{QWO,5:aO%XQ[O,5:dOOQS1G0Q1G0QOOQS1G0S1G0SOOQS1G0U1G0UO6^QWO1G0UO6cQdO'#EUOOQS1G0X1G0XOOQS1G0_1G0_OOQS1G0a1G0aO6nQtO1G/jOOQO1G/j1G/jOOQO,5;P,5;PO7UQ[O,5;POOQO-E8c-E8cO7cQWO1G1RPOOO-E8Z-E8ZPOOO1G.e1G.eOOQP7+$Z7+$ZOOQP7+$y7+$yO%yQdO7+$yOOQS1G/i1G/iO7nQXO'#EzO7xQWO,59oO7}QtO'#E_O8uQdO'#EwO9PQWO,59[O9UQpO7+$yOOQS1G.x1G.xOOQS1G.|1G.|O9^Q[O,5:VOOQS7+%Y7+%YO9cQWO7+%YOOQS1G/Q1G/QO9hQWO1G/QOOQS-E8^-E8^OOQS1G/V1G/VO%yQdO1G/uO9mQdO1G/yOOQO1G/}1G/}OOQO1G/w1G/wO9tQWO,5;ROOQO-E8e-E8eO:SQXO1G0OOOQS7+%p7+%pO:ZQYO'#CtOOQO'#EW'#EWO:iQ`O'#EVOOQO'#EV'#EVO:tQWO'#EhO:|QdO,5:pOOQS,5:p,5:pO;XQtO'#EdO%yQdO'#EdO<YQdO7+%UOOQO7+%U7+%UOOQO1G0k1G0kO<mQpO<<HeO<uQ[O'#EbO=PQWO,5;fOOQP1G/Z1G/ZOOQS-E8]-E8]O=XQdO'#EaO=cQWO,5;cOOQT1G.v1G.vOOQP<<He<<HeOOQO'#Dm'#DmO=kQWO1G/qOOQS<<Ht<<HtOOQS7+$l7+$lO=sQdO7+%aOOQO'#Dp'#DpO=zQpO7+%eOOQO7+%j7+%jOOQO,5:q,5:qO6fQdO'#EiO:tQWO,5;SOOQS,5;S,5;SOOQS-E8f-E8fOOQS1G0[1G0[O>SQtO,5;OOOQS-E8b-E8bOOQO<<Hp<<HpOOQPAN>PAN>PO?TQXO,5:|OOQO-E8`-E8`O?_QdO,5:{OOQO-E8_-E8_O9^Q[O'#EfO?iQWO7+%]OOQS7+%]7+%]OOQO<<H{<<H{OOQO<<IP<<IPO?qQdO<<IPOOQO,5;T,5;TOOQO-E8g-E8gOOQS1G0n1G0nOOQO,5;Q,5;QOOQO-E8d-E8dOOQS<<Hw<<HwO@YQWOAN>kOOQOG24VG24V",stateData:"@g~O#dOS#eQQ~OU[OX[OZTO^VO_VOrXOyWO!PYO!SZO!]cO!^]O!o^O!q_O!s`O!vaO!|bO#aRO~OQhOU[OX[OZTO^VO_VOrXOyWO!PYO!SZO!]cO!^]O!o^O!q_O!s`O!vaO!|bO#agO~O#^#oP~P!aO#elO~O#anO~OZpO^qO_qOrsOyrO!PtO!SvO#_uO~OuwO!UyO~P#|Oa!PO#`|O#a{O~O#a!QO~O#a!SO~OU[OX[OZTO^VO_VOrXOyWO!PYO!SZO#aRO~OQ!`Oc!XOg!`Oi!`Oo!^Or!_O#`![O#a!WO#m!YO~Oc!bO!j!dO!m!eO#b!aO!U#pP~Oi!jOo!^O#a!iO~Oi!lO#a!lO~Oc!bO!j!dO!m!eO#b!aO~O!Z#pP~P&hOZWX^WX^!XX_WXrWXuWXyWX!PWX!SWX!UWX#_WX~O^!qO~O!Z!rO#^#oX!T#oX~O#^#oX!T#oX~P!aO#f!uO#g!uO#h!wO~Oa!{O#`|O#a{O~OuwO!UyO~O!T#oP~P!aOc#VO~Oc#WO~Oq#XO}#YO~OZpO^qO_qOrsOyrO~Ou!Oa!P!Oa!S!Oa!U!Oa#_!Oab!Oa~P*]Ou!Ra!P!Ra!S!Ra!U!Ra#_!Rab!Ra~P*]OP#[OchXkhX!ZhX!`hX!jhX!mhX#bhXbhX!hhXQhXghXihXohXrhXuhX!YhX#^hX#`hX#ahX#mhXqhX!ThX~Oc!bO!j!dO!m!eO#b!aO!Z#pP~Ok#]O!`#^O~P-VOc#bO~Oq#fO#a#cO~OQ#jOg#jOi#jOo!^O#`![O#m!YO~Oc!bO!j!dO!m!eO#b#gO~P.POu#mO!f#lO!U#pX!Z#pX~Oc#pO~Ok#]O!Z#rO~O!Z#sO~Oi#tOo!^O~O!U#uO~O!UyO!f#lO~O!UyO!Z#xO~O!Y#zO!Z!Wa#^!Wa!T!Wa~P%yO!Z#XX#^#XX!T#XX~P!aO!Z!rO#^#oa!T#oa~O#f!uO#g!uO#h$QO~Oq$SO}$TO~Ou!Oi!P!Oi!S!Oi!U!Oi#_!Oib!Oi~P*]Ou!Qi!P!Qi!S!Qi!U!Qi#_!Qib!Qi~P*]Ou!Ri!P!Ri!S!Ri!U!Ri#_!Rib!Ri~P*]Ou#Va!U#Va~P#|O!T$UO~Ob#nP~P%XOb#kP~P%yOb$]Ok#]O~Oc$_O!Z!_X!j!_X!m!_X#b!_X~O!Z$`O~Ob$bOi$cOp$cO~Oq$eO#a#cO~O^!dXb!bX!f!bX!h!dX~O^$fO!h$gO~Ob$hO!f#lO~Oc!bO!j!dO!m!eO#b!aOu#ZX!U#ZX!Z#ZX~Ou#mO!U#pa!Z#pa~O!f#lOu!ia!U!ia!Z!iab!ia~O!Z$mO~O!T$tO#a$oO#m$nO~Ok#]Ou$vO!Y$xO!Z!Wi#^!Wi!T!Wi~P%yO!Z#Xa#^#Xa!T#Xa~P!aO!Z!rO#^#oi!T#oi~Ou${Ob#nX~P#|Ob$}O~Ok#]OQ#RXb#RXc#RXg#RXi#RXo#RXr#RXu#RX#`#RX#a#RX#m#RX~Ou%POb#kX~P%yOb%RO~Ok#]Oq%SO~O#a%TO~O!Z%VO~Ob%WO~O#b%YO~P.PO!f#lOu#Za!U#Za!Z#Za~Ob%[O~P#|OP#[OuhX!UhXbhX~O#m$nOu!yX!U!yX~Ou%^O!UyO~O!T%bO#a$oO#m$nO~Ok#]OQ#WXc#WXg#WXi#WXo#WXr#WXu#WX!Y#WX!Z#WX#^#WX#`#WX#a#WX#m#WX!T#WX~Ou$vO!Y%eO!Z!Wq#^!Wq!T!Wq~P%yOk#]Oq%fO~Ob#UXu#UX~P%XOu${Ob#na~Ob#TXu#TX~P%yOu%POb#ka~OZ%kOb%mO~Ob%nO~P%yOb%oO!h%pO~Ok#]OQ#Wac#Wag#Wai#Wao#War#Wau#Wa!Y#Wa!Z#Wa#^#Wa#`#Wa#a#Wa#m#Wa!T#Wa~Ob#Uau#Ua~P#|Ob#Tau#Ta~P%yOZ%kOb%vO~OQ#jOg#jOi#jOo!^O#`![O#b%YO#m$nO~Ob%xO~O#dp#e#mk!S#m~",goto:"/l#sPPP#tP#wP$Q$dP$QP$v$QPP$|PPP%S%]%]P%oP%]P&`&w'^PPPP%]'{P(P(V$QP(]$Q(cP$QP$Q$QPPP(i)O)]PP#wPP)dP)g)m)m)x)mP)mP)mP)m)mP#wP#wP#wP*R#wP*U*X*[*c#wP#wP*h*n*}+]+c+i+o+u+{,V,],c,iPPPPPPPPPPP,o,x-n-qP.g.j.p.|/cRmQ_dOPfjy!r#|q[OPYZfjtuvwy!r#V#p#|${qSOPYZfjtuvwy!r#V#p#|${QoTR!xpQ}VR!yqQ!y!PQ#a!]R$R!{q!`]_!X!q#W#Y#]#y$T$Y$f$v$w%P%X%ip!`]_!X!q#W#Y#]#y$T$Y$f$v$w%P%X%iU#j!b$g%pU$q#u$s%^R%]$pp!`]_!X!q#W#Y#]#y$T$Y$f$v$w%P%X%iV#j!b$g%pw!]]_!X!b!q#W#Y#]#y$T$Y$f$g$v$w%P%X%i%pp!`]_!X!q#W#Y#]#y$T$Y$f$v$w%P%X%iQ!j`U#j!b$g%pR#t!kT#d!_#eQ!OVR!zqQ!y!OR$R!zQ!RWR!|rQ!TXR!}sQzUQ#TxQ#q!gQ#w!nQ#x!oQ%`$rR%s%_SiPyQ!tjQ#{!rR$y#|ZhPjy!r#|R#`!ZQ%U$_R%t%kc!f^bc!Z!b!d#`#l#mQ#h!bQ%Z$gR%w%pR!k`R!maR#v!mS$r#u$sR%q%^V$p#u$s%^Q!vlR$P!vQfOSjPyU!pfj#|R#|!rQ$Y#WU%O$Y%X%iQ%X$fR%i%PQ#e!_R$d#eQ%Q$YR%j%QQ$|$VR%h$|QxUR#SxQ$w#yR%d$wQ!siS#}!s$OR$O!tQ%l%UR%u%lQ#n!cR$k#nQ$s#uR%a$sQ%_$rR%r%__eOPfjy!r#|^UOPfjy!r#|Q!UYQ!VZQ#OtQ#PuQ#QvQ#RwQ$V#VQ$l#pR%g${R$Z#WQ!Z]Q!h_Q#Z!XQ#y!q[$X#W$Y$f%P%X%iQ$[#YQ$^#]S$u#y$wQ$z$TR%c$vR$W#VQkPR#UyQ!g^Q!ocQ#_!ZR$a#`W!c^c!Z#`Q!nbQ#i!bQ#o!dQ$i#lR$j#mQ#k!bQ%Z$gR%w%p",nodeNames:"⚠ Unit VariableName Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName , PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp } { Block Declaration PropertyName Important ; ImportStatement AtKeyword import Layer layer LayerName KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports AtRule Styles",maxTerm:126,nodeProps:[["isolate",-2,3,25,""],["openedBy",18,"(",33,"[",51,"{"],["closedBy",19,")",34,"]",52,"}"]],propSources:[Ht],skippedNodes:[0,3,93],repeatNodeCount:13,tokenData:"LU~R!^OX$}X^%u^p$}pq%uqr)Xrs.Rst/utu6duv$}vw7^wx7oxy9^yz9oz{9t{|:_|}?Q}!O?c!O!P@Q!P!Q@i!Q![Ab![!]B]!]!^CX!^!_Cj!_!`Df!`!aDy!a!b$}!b!cEz!c!}$}!}#OHX#O#P$}#P#QHj#Q#R6d#R#T$}#T#UH{#U#c$}#c#dJ^#d#o$}#o#pJs#p#q6d#q#rKU#r#sKg#s#y$}#y#z%u#z$f$}$f$g%u$g#BY$}#BY#BZ%u#BZ$IS$}$IS$I_%u$I_$I|$}$I|$JO%u$JO$JT$}$JT$JU%u$JU$KV$}$KV$KW%u$KW&FU$}&FU&FV%u&FV;'S$};'S;=`LO<%lO$}`%QSOy%^z;'S%^;'S;=`%o<%lO%^`%cSp`Oy%^z;'S%^;'S;=`%o<%lO%^`%rP;=`<%l%^~%zh#d~OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^~'mh#d~p`OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^l)[UOy%^z#]%^#]#^)n#^;'S%^;'S;=`%o<%lO%^l)sUp`Oy%^z#a%^#a#b*V#b;'S%^;'S;=`%o<%lO%^l*[Up`Oy%^z#d%^#d#e*n#e;'S%^;'S;=`%o<%lO%^l*sUp`Oy%^z#c%^#c#d+V#d;'S%^;'S;=`%o<%lO%^l+[Up`Oy%^z#f%^#f#g+n#g;'S%^;'S;=`%o<%lO%^l+sUp`Oy%^z#h%^#h#i,V#i;'S%^;'S;=`%o<%lO%^l,[Up`Oy%^z#T%^#T#U,n#U;'S%^;'S;=`%o<%lO%^l,sUp`Oy%^z#b%^#b#c-V#c;'S%^;'S;=`%o<%lO%^l-[Up`Oy%^z#h%^#h#i-n#i;'S%^;'S;=`%o<%lO%^l-uS!Y[p`Oy%^z;'S%^;'S;=`%o<%lO%^~.UWOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o<%lO.R~.sOi~~.vRO;'S.R;'S;=`/P;=`O.R~/SXOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o;=`<%l.R<%lO.R~/rP;=`<%l.Rn/zYyQOy%^z!Q%^!Q![0j![!c%^!c!i0j!i#T%^#T#Z0j#Z;'S%^;'S;=`%o<%lO%^l0oYp`Oy%^z!Q%^!Q![1_![!c%^!c!i1_!i#T%^#T#Z1_#Z;'S%^;'S;=`%o<%lO%^l1dYp`Oy%^z!Q%^!Q![2S![!c%^!c!i2S!i#T%^#T#Z2S#Z;'S%^;'S;=`%o<%lO%^l2ZYg[p`Oy%^z!Q%^!Q![2y![!c%^!c!i2y!i#T%^#T#Z2y#Z;'S%^;'S;=`%o<%lO%^l3QYg[p`Oy%^z!Q%^!Q![3p![!c%^!c!i3p!i#T%^#T#Z3p#Z;'S%^;'S;=`%o<%lO%^l3uYp`Oy%^z!Q%^!Q![4e![!c%^!c!i4e!i#T%^#T#Z4e#Z;'S%^;'S;=`%o<%lO%^l4lYg[p`Oy%^z!Q%^!Q![5[![!c%^!c!i5[!i#T%^#T#Z5[#Z;'S%^;'S;=`%o<%lO%^l5aYp`Oy%^z!Q%^!Q![6P![!c%^!c!i6P!i#T%^#T#Z6P#Z;'S%^;'S;=`%o<%lO%^l6WSg[p`Oy%^z;'S%^;'S;=`%o<%lO%^d6gUOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^d7QS}Sp`Oy%^z;'S%^;'S;=`%o<%lO%^b7cSXQOy%^z;'S%^;'S;=`%o<%lO%^~7rWOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W<%lO7o~8_RO;'S7o;'S;=`8h;=`O7o~8kXOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W;=`<%l7o<%lO7o~9ZP;=`<%l7on9cSc^Oy%^z;'S%^;'S;=`%o<%lO%^~9tOb~n9{UUQkWOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^n:fWkW!SQOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^l;TUp`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYp`#m[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l<cYp`Oy%^z{%^{|=R|}%^}!O=R!O!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l=WUp`Oy%^z!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l=qUp`#m[Oy%^z!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l>[[p`#m[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSu^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWkWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VUZQOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTkWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSp`#e~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#m[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^jBbU^YOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S_Qp`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Z^Oy%^z;'S%^;'S;=`%o<%lO%^hCoU!hWOy%^z!_%^!_!`DR!`;'S%^;'S;=`%o<%lO%^hDYS!hWp`Oy%^z;'S%^;'S;=`%o<%lO%^lDmS!hW}SOy%^z;'S%^;'S;=`%o<%lO%^jEQV!PQ!hWOy%^z!_%^!_!`DR!`!aEg!a;'S%^;'S;=`%o<%lO%^bEnS!PQp`Oy%^z;'S%^;'S;=`%o<%lO%^bE}YOy%^z}%^}!OFm!O!c%^!c!}G[!}#T%^#T#oG[#o;'S%^;'S;=`%o<%lO%^bFrWp`Oy%^z!c%^!c!}G[!}#T%^#T#oG[#o;'S%^;'S;=`%o<%lO%^bGc[!]Qp`Oy%^z}%^}!OG[!O!Q%^!Q![G[![!c%^!c!}G[!}#T%^#T#oG[#o;'S%^;'S;=`%o<%lO%^nH^Sr^Oy%^z;'S%^;'S;=`%o<%lO%^nHoSq^Oy%^z;'S%^;'S;=`%o<%lO%^jIOUOy%^z#b%^#b#cIb#c;'S%^;'S;=`%o<%lO%^jIgUp`Oy%^z#W%^#W#XIy#X;'S%^;'S;=`%o<%lO%^jJQS!fYp`Oy%^z;'S%^;'S;=`%o<%lO%^jJaUOy%^z#f%^#f#gIy#g;'S%^;'S;=`%o<%lO%^fJxS!UUOy%^z;'S%^;'S;=`%o<%lO%^nKZS!T^Oy%^z;'S%^;'S;=`%o<%lO%^fKlU!SQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`LRP;=`<%l$}",tokenizers:[Ft,Kt,Lt,1,2,3,4,new w$1("m~RRYZ[z{a~~g~aO#g~~dP!P!Qg~lO#h~~",28,114)],topRules:{StyleSheet:[0,4],Styles:[1,92]},specialized:[{term:108,get:e=>Jt[e]||-1},{term:59,get:e=>ea[e]||-1},{term:110,get:e=>ta[e]||-1}],tokenPrec:1441});let Y=null;function Z(){if(!Y&&typeof document=="object"&&document.body){let{style:e}=document.body,a=[],r=new Set;for(let l in e)l!="cssText"&&l!="cssFloat"&&typeof e[l]=="string"&&(/[A-Z]/.test(l)&&(l=l.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())),r.has(l)||(a.push(l),r.add(l)));Y=a.sort().map(l=>({type:"property",label:l,apply:l+": "}));}return Y||[]}const Oe=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),oe=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),la=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),ra=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(e=>({type:"keyword",label:e})),b=/^(\w[\w-]*|-\w[\w-]*|)$/,Oa=/^-(-[\w-]*)?$/;function oa(e,a){var r;if((e.name=="("||e.type.isError)&&(e=e.parent||e),e.name!="ArgList")return  false;let l=(r=e.parent)===null||r===void 0?void 0:r.firstChild;return (l==null?void 0:l.name)!="Callee"?false:a.sliceString(l.from,l.to)=="var"}const ne=new Dte,na=["Declaration"];function sa(e){for(let a=e;;){if(a.type.isTop)return a;if(!(a=a.parent))return e}}function _e(e,a,r){if(a.to-a.from>4096){let l=ne.get(a);if(l)return l;let t=[],O=new Set,n=a.cursor($t$1.IncludeAnonymous);if(n.firstChild())do for(let s of _e(e,n.node,r))O.has(s.label)||(O.add(s.label),t.push(s));while(n.nextSibling());return ne.set(a,t),t}else {let l=[],t=new Set;return a.cursor().iterate(O=>{var n;if(r(O)&&O.matchContext(na)&&((n=O.node.nextSibling)===null||n===void 0?void 0:n.name)==":"){let s=e.sliceString(O.from,O.to);t.has(s)||(t.add(s),l.push({label:s,type:"variable"}));}}),l}}const ia=e=>a=>{let{state:r,pos:l}=a,t=ln(r).resolveInner(l,-1),O=t.type.isError&&t.from==t.to-1&&r.doc.sliceString(t.from,t.to)=="-";if(t.name=="PropertyName"||(O||t.name=="TagName")&&/^(Block|Styles)$/.test(t.resolve(t.to).name))return {from:t.from,options:Z(),validFor:b};if(t.name=="ValueName")return {from:t.from,options:oe,validFor:b};if(t.name=="PseudoClassName")return {from:t.from,options:Oe,validFor:b};if(e(t)||(a.explicit||O)&&oa(t,r.doc))return {from:e(t)||O?t.from:l,options:_e(r.doc,sa(t),e),validFor:Oa};if(t.name=="TagName"){for(let{parent:u}=t;u;u=u.parent)if(u.name=="Block")return {from:t.from,options:Z(),validFor:b};return {from:t.from,options:la,validFor:b}}if(t.name=="AtKeyword")return {from:t.from,options:ra,validFor:b};if(!a.explicit)return null;let n=t.resolve(l),s=n.childBefore(l);return s&&s.name==":"&&n.name=="PseudoClassSelector"?{from:l,options:Oe,validFor:b}:s&&s.name==":"&&n.name=="Declaration"||n.name=="ArgList"?{from:l,options:oe,validFor:b}:n.name=="Block"||n.name=="Styles"?{from:l,options:Z(),validFor:b}:null},ua=ia(e=>e.name=="VariableName"),q=hg.define({name:"css",parser:aa.configure({props:[Uj.add({Declaration:wte()}),rV.add({"Block KeyframeList":Ste})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function ca(){return new xte(q,q.data.of({autocomplete:ua}))}const X=["_blank","_self","_top","_parent"],z=["ascii","utf-8","utf-16","latin1","latin1"],E=["get","post","put","delete"],A=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],g=["true","false"],o={},da={a:{attrs:{href:null,ping:null,type:null,media:null,target:X,hreflang:null}},abbr:o,address:o,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:o,aside:o,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:o,base:{attrs:{href:null,target:X}},bdi:o,bdo:o,blockquote:{attrs:{cite:null}},body:o,br:o,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:A,formmethod:E,formnovalidate:["novalidate"],formtarget:X,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:o,center:o,cite:o,code:o,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:o,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:o,div:o,dl:o,dt:o,em:o,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:o,figure:o,footer:o,form:{attrs:{action:null,name:null,"accept-charset":z,autocomplete:["on","off"],enctype:A,method:E,novalidate:["novalidate"],target:X}},h1:o,h2:o,h3:o,h4:o,h5:o,h6:o,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:o,hgroup:o,hr:o,html:{attrs:{manifest:null}},i:o,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:A,formmethod:E,formnovalidate:["novalidate"],formtarget:X,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:o,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:o,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:o,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:z,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:o,noscript:o,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:o,param:{attrs:{name:null,value:null}},pre:o,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:o,rt:o,ruby:o,samp:o,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:z}},section:o,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:o,source:{attrs:{src:null,type:null,media:null}},span:o,strong:o,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:o,summary:o,sup:o,table:o,tbody:o,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:o,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:o,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:o,time:{attrs:{datetime:null}},title:o,tr:o,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:o,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:o},qe={accesskey:null,class:null,contenteditable:g,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:g,autocorrect:g,autocapitalize:g,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":g,"aria-autocomplete":["inline","list","both","none"],"aria-busy":g,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":g,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":g,"aria-hidden":g,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":g,"aria-multiselectable":g,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":g,"aria-relevant":null,"aria-required":g,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Ce="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>"on"+e);for(let e of Ce)qe[e]=null;class C{constructor(a,r){this.tags=Object.assign(Object.assign({},da),a),this.globalAttrs=Object.assign(Object.assign({},qe),r),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs);}}C.default=new C;function $(e,a,r=e.length){if(!a)return "";let l=a.firstChild,t=l&&l.getChild("TagName");return t?e.sliceString(t.from,Math.min(t.to,r)):""}function w(e,a=false){for(;e;e=e.parent)if(e.name=="Element")if(a)a=false;else return e;return null}function Re(e,a,r){let l=r.tags[$(e,w(a))];return (l==null?void 0:l.children)||r.allTags}function j(e,a){let r=[];for(let l=w(a);l&&!l.type.isTop;l=w(l.parent)){let t=$(e,l);if(t&&l.lastChild.name=="CloseTag")break;t&&r.indexOf(t)<0&&(a.name=="EndTag"||a.from>=l.firstChild.to)&&r.push(t);}return r}const We=/^[:\-\.\w\u00b7-\uffff]*$/;function se(e,a,r,l,t){let O=/\s*>/.test(e.sliceDoc(t,t+5))?"":">",n=w(r,true);return {from:l,to:t,options:Re(e.doc,n,a).map(s=>({label:s,type:"type"})).concat(j(e.doc,r).map((s,u)=>({label:"/"+s,apply:"/"+s+O,type:"type",boost:99-u}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function ie(e,a,r,l){let t=/\s*>/.test(e.sliceDoc(l,l+5))?"":">";return {from:r,to:l,options:j(e.doc,a).map((O,n)=>({label:O,apply:O+t,type:"type",boost:99-n})),validFor:We}}function pa(e,a,r,l){let t=[],O=0;for(let n of Re(e.doc,r,a))t.push({label:"<"+n,type:"type"});for(let n of j(e.doc,r))t.push({label:"</"+n+">",type:"type",boost:99-O++});return {from:l,to:l,options:t,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function ma(e,a,r,l,t){let O=w(r),n=O?a.tags[$(e.doc,O)]:null,s=n&&n.attrs?Object.keys(n.attrs):[],u=n&&n.globalAttrs===false?s:s.length?s.concat(a.globalAttrNames):a.globalAttrNames;return {from:l,to:t,options:u.map(S=>({label:S,type:"property"})),validFor:We}}function fa(e,a,r,l,t){var O;let n=(O=r.parent)===null||O===void 0?void 0:O.getChild("AttributeName"),s=[],u;if(n){let S=e.sliceDoc(n.from,n.to),m=a.globalAttrs[S];if(!m){let d=w(r),f=d?a.tags[$(e.doc,d)]:null;m=(f==null?void 0:f.attrs)&&f.attrs[S];}if(m){let d=e.sliceDoc(l,t).toLowerCase(),f='"',c='"';/^['"]/.test(d)?(u=d[0]=='"'?/^[^"]*$/:/^[^']*$/,f="",c=e.sliceDoc(t,t+1)==d[0]?"":d[0],d=d.slice(1),l++):u=/^[^\s<>='"]*$/;for(let p of m)s.push({label:p,apply:f+p+c,type:"constant"});}}return {from:l,to:t,options:s,validFor:u}}function Sa(e,a){let{state:r,pos:l}=a,t=ln(r).resolveInner(l,-1),O=t.resolve(l);for(let n=l,s;O==t&&(s=t.childBefore(n));){let u=s.lastChild;if(!u||!u.type.isError||u.from<u.to)break;O=t=s,n=u.from;}return t.name=="TagName"?t.parent&&/CloseTag$/.test(t.parent.name)?ie(r,t,t.from,l):se(r,e,t,t.from,l):t.name=="StartTag"?se(r,e,t,l,l):t.name=="StartCloseTag"||t.name=="IncompleteCloseTag"?ie(r,t,l,l):t.name=="OpenTag"||t.name=="SelfClosingTag"||t.name=="AttributeName"?ma(r,e,t,t.name=="AttributeName"?t.from:l,l):t.name=="Is"||t.name=="AttributeValue"||t.name=="UnquotedAttributeValue"?fa(r,e,t,t.name=="Is"?l:t.from,l):a.explicit&&(O.name=="Element"||O.name=="Text"||O.name=="Document")?pa(r,e,t,l):null}function ga(e){let{extraTags:a,extraGlobalAttributes:r}=e,l=r||a?new C(a,r):C.default;return t=>Sa(l,t)}const ha=u.parser.configure({top:"SingleExpression"}),Ye=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:QO.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:nO.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:oO.parser},{tag:"script",attrs(e){return /^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:ha},{tag:"script",attrs(e){return !e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:u.parser},{tag:"style",attrs(e){return (!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:q.parser}],Ze=[{name:"style",parser:q.parser.configure({top:"Styles"})}].concat(Ce.map(e=>({name:e,parser:u.parser}))),ze=hg.define({name:"html",parser:Wt.configure({props:[Uj.add({Element(e){let a=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+a[0].length?e.continue():e.lineIndent(e.node.from)+(a[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let a=null,r;for(let l=e.node;;){let t=l.lastChild;if(!t||t.name!="Element"||t.to!=l.to)break;a=l=t;}return a&&!((r=a.lastChild)&&(r.name=="CloseTag"||r.name=="SelfClosingTag"))?e.lineIndent(a.from)+e.unit:null}}),rV.add({Element(e){let a=e.firstChild,r=e.lastChild;return !a||a.name!="OpenTag"?null:{from:a.to,to:r.name=="CloseTag"?r.from:e.to}}}),AV.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),k=ze.configure({wrap:xe(Ye,Ze)}); exports({ htmlPlain: ze, htmlLanguage: k });function $a(e={}){let a="",r;e.matchClosingTags===false&&(a="noMatch"),e.selfClosingTags===true&&(a=(a?a+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(r=xe((e.nestedLanguages||[]).concat(Ye),(e.nestedAttributes||[]).concat(Ze)));let l=r?ze.configure({wrap:r,dialect:a}):a?k.configure({dialect:a}):k;return new xte(l,[k.data.of({autocomplete:ga(e)}),e.autoCloseTags!==false?Qa:[],ge$1().support,ca().support])}const ue=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),Qa=exports("autoCloseTags", ue$1.inputHandler.of((e,a,r,l,t)=>{if(e.composing||e.state.readOnly||a!=r||l!=">"&&l!="/"||!k.isActiveAt(e.state,a,-1))return  false;let O=t(),{state:n}=O,s=n.changeByRange(u=>{var S,m,d;let f=n.doc.sliceString(u.from-1,u.to)==l,{head:c}=u,p=ln(n).resolveInner(c,-1),h;if(f&&l==">"&&p.name=="EndTag"){let Q=p.parent;if(((m=(S=Q.parent)===null||S===void 0?void 0:S.lastChild)===null||m===void 0?void 0:m.name)!="CloseTag"&&(h=$(n.doc,Q.parent,c))&&!ue.has(h)){let P=c+(n.doc.sliceString(c,c+1)===">"?1:0),x=`</${h}>`;return {range:u,changes:{from:c,to:P,insert:x}}}}else if(f&&l=="/"&&p.name=="IncompleteCloseTag"){let Q=p.parent;if(p.from==c-2&&((d=Q.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(h=$(n.doc,Q,c))&&!ue.has(h)){let P=c+(n.doc.sliceString(c,c+1)===">"?1:0),x=`${h}>`;return {range:J$1.cursor(c+x.length,-1),changes:{from:c,to:P,insert:x}}}}return {range:u}});return s.changes.empty?false:(e.dispatch([O,n.update(s,{userEvent:"input.complete",scrollIntoView:true})]),true)}));

		})
	};
}));

System.register("./html-BKahlt6m-MGn1UAze.js", ['./__monkey.entry-BeB6vm3i.js'], (function (exports, module) {
	'use strict';
	var gte;
	return {
		setters: [module => {
			gte = module.g;
		}],
		execute: (function () {

			var hu=Object.defineProperty;var du=(I,P,T)=>P in I?hu(I,P,{enumerable:true,configurable:true,writable:true,value:T}):I[P]=T;var xt=(I,P,T)=>du(I,P+"",T);function gu(I,P){for(var T=0;T<P.length;T++){const z=P[T];if(typeof z!="string"&&!Array.isArray(z)){for(const O in z)if(O!=="default"&&!(O in I)){const oe=Object.getOwnPropertyDescriptor(z,O);oe&&Object.defineProperty(I,O,oe.get?oe:{enumerable:true,get:()=>z[O]});}}}return Object.freeze(Object.defineProperty(I,Symbol.toStringTag,{value:"Module"}))}var Dt={exports:{}},ln;function fu(){return ln||(ln=1,function(I,P){(function(T){function z(){var O=T();return O.default||O}I.exports=z();})(function(){var T=Object.defineProperty,z=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,oe=Object.prototype.hasOwnProperty,Lt=e=>{throw TypeError(e)},gn=(e,t,r)=>t in e?T(e,t,{enumerable:true,configurable:true,writable:true,value:r}):e[t]=r,Ft=(e,t)=>{for(var r in t)T(e,r,{get:t[r],enumerable:true});},fn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of O(t))!oe.call(e,a)&&a!==r&&T(e,a,{get:()=>t[a],enumerable:!(n=z(t,a))||n.enumerable});return e},vn=e=>fn(T({},"__esModule",{value:true}),e),qt=(e,t,r)=>gn(e,typeof t!="symbol"?t+"":t,r),Nt=(e,t,r)=>t.has(e)||Lt("Cannot "+r),q=(e,t,r)=>(Nt(e,t,"read from private field"),r?r.call(e):t.get(e)),It=(e,t,r)=>t.has(e)?Lt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Cn=(e,t,r,n)=>(Nt(e,t,"write to private field"),t.set(e,r),r),Pt={};Ft(Pt,{languages:()=>ti,options:()=>ni,parsers:()=>Br,printers:()=>cu});var Sn=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},F=Sn,Ht="string",Mt="array",Rt="cursor",Xe="indent",Ye="align",Ut="trim",Je="group",Qe="fill",Ze="if-break",et="indent-if-break",Ot="line-suffix",Vt="line-suffix-boundary",Q="line",zt="label",tt="break-parent",Wt=new Set([Rt,Xe,Ye,Ut,Je,Qe,Ze,et,Ot,Vt,Q,zt,tt]),yn=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},le=yn;function bn(e){if(typeof e=="string")return Ht;if(Array.isArray(e))return Mt;if(!e)return;let{type:t}=e;if(Wt.has(t))return t}var $t=bn,_n=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function wn(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return `Unexpected doc '${t}', 
Expected it to be 'string' or 'object'.`;if($t(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return `Unexpected doc '${r}'.`;let n=_n([...Wt].map(a=>`'${a}'`));return `Unexpected doc.type '${e.type}'.
Expected it to be ${n}.`}var An=class extends Error{constructor(t){super(wn(t));xt(this,"name","InvalidDocError");this.doc=t;}},kn=An;function jt(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(s){if(r.has(s))return r.get(s);let i=a(s);return r.set(s,i),i}function a(s){switch($t(s)){case Mt:return t(s.map(n));case Qe:return t({...s,parts:s.parts.map(n)});case Ze:return t({...s,breakContents:n(s.breakContents),flatContents:n(s.flatContents)});case Je:{let{expandedStates:i,contents:u}=s;return i?(i=i.map(n),u=i[0]):u=n(u),t({...s,contents:u,expandedStates:i})}case Ye:case Xe:case et:case zt:case Ot:return t({...s,contents:n(s.contents)});case Ht:case Rt:case Ut:case Vt:case Q:case tt:return t(s);default:throw new kn(s)}}}function H(e,t=qn){return jt(e,r=>typeof r=="string"?Z(t,r.split(`
`)):r)}var En=()=>{},xn=En;function V(e){return {type:Xe,contents:e}}function Gt(e,t){return {type:Ye,contents:t,n:e}}function w(e,t={}){return xn(t.expandedStates),{type:Je,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Dn(e){return Gt(Number.NEGATIVE_INFINITY,e)}function Tn(e){return Gt({type:"root"},e)}function Kt(e){return {type:Qe,parts:e}}function ke(e,t="",r={}){return {type:Ze,breakContents:e,flatContents:t,groupId:r.groupId}}function Bn(e,t){return {type:et,contents:e,groupId:t.groupId,negate:t.negate}}var ce={type:tt},Ln={type:Q,hard:true},Fn={type:Q,hard:true,literal:true},y={type:Q},x={type:Q,soft:true},S=[Ln,ce],qn=[Fn,ce];function Z(e,t){let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}var Ee="'",Xt='"';function Nn(e,t){let r=t===true||t===Ee?Ee:Xt,n=r===Ee?Xt:Ee,a=0,s=0;for(let i of e)i===r?a++:i===n&&s++;return a>s?n:r}var In=Nn;function Pn(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var M,Hn=class{constructor(e){It(this,M),Cn(this,M,new Set(e));}getLeadingWhitespaceCount(e){let t=q(this,M),r=0;for(let n=0;n<e.length&&t.has(e.charAt(n));n++)r++;return r}getTrailingWhitespaceCount(e){let t=q(this,M),r=0;for(let n=e.length-1;n>=0&&t.has(e.charAt(n));n--)r++;return r}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return q(this,M).has(e.charAt(0))}hasTrailingWhitespace(e){return q(this,M).has(le(false,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=false){let r=`[${Pn([...q(this,M)].join(""))}]+`,n=new RegExp(t?`(${r})`:r,"u");return e.split(n)}hasWhitespaceCharacter(e){let t=q(this,M);return Array.prototype.some.call(e,r=>t.has(r))}hasNonWhitespaceCharacter(e){let t=q(this,M);return Array.prototype.some.call(e,r=>!t.has(r))}isWhitespaceOnly(e){let t=q(this,M);return Array.prototype.every.call(e,r=>t.has(r))}};M=new WeakMap;var Mn=Hn,Rn=["	",`
`,"\f","\r"," "],Un=new Mn(Rn),W=Un,On=class extends Error{constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`);xt(this,"name","UnexpectedNodeError");this.node=t;}},Vn=On;function zn(e){return (e==null?void 0:e.type)==="front-matter"}var xe=zn,Wn=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),$n=new Set(["if","else if","for","switch","case"]);function Yt(e,t){var r;if(e.type==="text"||e.type==="comment"||xe(e)||e.type==="yaml"||e.type==="toml")return null;if(e.type==="attribute"&&delete t.value,e.type==="docType"&&delete t.value,e.type==="angularControlFlowBlock"&&(r=e.parameters)!=null&&r.children)for(let n of t.parameters.children)$n.has(e.name)?delete n.expression:n.expression=n.expression.trim();e.type==="angularIcuExpression"&&(t.switchValue=e.switchValue.trim()),e.type==="angularLetDeclarationInitializer"&&delete t.value;}Yt.ignoredProperties=Wn;var jn=Yt;async function Gn(e,t){if(e.language==="yaml"){let r=e.value.trim(),n=r?await t(r,{parser:"yaml"}):"";return Tn([e.startDelimiter,e.explicitLanguage,S,n,n?S:"",e.endDelimiter])}}var Kn=Gn;function De(e,t=true){return [V([x,e]),t?x:""]}function ee(e,t){let r=e.type==="NGRoot"?e.node.type==="NGMicrosyntax"&&e.node.body.length===1&&e.node.body[0].type==="NGMicrosyntaxExpression"?e.node.body[0].expression:e.node:e.type==="JsExpressionRoot"?e.node:e;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function R(e,t,r,n){r={__isInHtmlAttribute:true,__embeddedInHtml:true,...r};let a=true;n&&(r.__onHtmlBindingRoot=(i,u)=>{a=n(i,u);});let s=await t(e,r,t);return a?w(s):De(s)}function Xn(e,t,r,n){let{node:a}=r,s=n.originalText.slice(a.sourceSpan.start.offset,a.sourceSpan.end.offset);return /^\s*$/u.test(s)?"":R(s,e,{parser:"__ng_directive",__isInHtmlAttribute:false},ee)}var Yn=Xn,Jn=e=>String(e).split(/[/\\]/u).pop();function Jt(e,t){if(!t)return;let r=Jn(t).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(a=>a.toLowerCase()===r))??e.find(({extensions:n})=>n==null?void 0:n.some(a=>r.endsWith(a)))}function Qn(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r==null?void 0:r.includes(t))??e.find(({extensions:r})=>r==null?void 0:r.includes(`.${t}`))}function Zn(e,t){let r=e.plugins.flatMap(a=>a.languages??[]),n=Qn(r,t.language)??Jt(r,t.physicalFile)??Jt(r,t.file)??(t.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var Te=Zn,ea="inline",ta={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},ra="normal",na={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function aa(e){return e.type==="element"&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}var pe=aa,sa=e=>F(false,e,/^[\t\f\r ]*\n/gu,""),Qt=e=>sa(W.trimEnd(e)),ia=e=>{let t=e,r=W.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=W.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}};function Zt(e,t){return !!(e.type==="ieConditionalComment"&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||e.type==="ieConditionalComment"&&!e.complete||te(e)&&e.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||at(e,t)&&!$(e)&&e.type!=="interpolation")}function Be(e){return e.type==="attribute"||!e.parent||!e.prev?false:ua(e.prev)}function ua(e){return e.type==="comment"&&e.value.trim()==="prettier-ignore"}function N(e){return e.type==="text"||e.type==="comment"}function $(e){return e.type==="element"&&(e.fullName==="script"||e.fullName==="style"||e.fullName==="svg:style"||e.fullName==="svg:script"||pe(e)&&(e.name==="script"||e.name==="style"))}function oa(e){return e.children&&!$(e)}function la(e){return $(e)||e.type==="interpolation"||er(e)}function er(e){return or(e).startsWith("pre")}function ca(e,t){var r,n;let a=s();if(a&&!e.prev&&(n=(r=e.parent)==null?void 0:r.tagDefinition)!=null&&n.ignoreFirstLf)return e.type==="interpolation";return a;function s(){return xe(e)||e.type==="angularControlFlowBlock"?false:(e.type==="text"||e.type==="interpolation")&&e.prev&&(e.prev.type==="text"||e.prev.type==="interpolation")?true:!e.parent||e.parent.cssDisplay==="none"?false:te(e.parent)?true:!(!e.prev&&(e.parent.type==="root"||te(e)&&e.parent||$(e.parent)||Fe(e.parent,t)||!Sa(e.parent.cssDisplay))||e.prev&&!_a(e.prev.cssDisplay))}}function pa(e,t){return xe(e)||e.type==="angularControlFlowBlock"?false:(e.type==="text"||e.type==="interpolation")&&e.next&&(e.next.type==="text"||e.next.type==="interpolation")?true:!e.parent||e.parent.cssDisplay==="none"?false:te(e.parent)?true:!(!e.next&&(e.parent.type==="root"||te(e)&&e.parent||$(e.parent)||Fe(e.parent,t)||!ya(e.parent.cssDisplay))||e.next&&!ba(e.next.cssDisplay))}function ha(e){return wa(e.cssDisplay)&&!$(e)}function Le(e){return xe(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1<e.next.sourceSpan.start.line}function da(e){return tr(e)||e.type==="element"&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some(t=>ga(t)))||e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.type!=="text"&&nr(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||ar(e.lastChild))}function tr(e){return e.type==="element"&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&e.cssDisplay!=="table-cell")}function rt(e){return sr(e)||e.prev&&ma(e.prev)||rr(e)}function ma(e){return sr(e)||e.type==="element"&&e.fullName==="br"||rr(e)}function rr(e){return nr(e)&&ar(e)}function nr(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.line<e.sourceSpan.start.line:e.parent.type==="root"||e.parent.startSourceSpan.end.line<e.sourceSpan.start.line)}function ar(e){return e.hasTrailingSpaces&&(e.next?e.next.sourceSpan.start.line>e.sourceSpan.end.line:e.parent.type==="root"||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function sr(e){switch(e.type){case "ieConditionalComment":case "comment":case "directive":return  true;case "element":return ["script","select"].includes(e.name)}return  false}function nt(e){return e.lastChild?nt(e.lastChild):e}function ga(e){var t;return (t=e.children)==null?void 0:t.some(r=>r.type!=="text")}function ir(e){if(e)switch(e){case "module":case "text/javascript":case "text/babel":case "application/javascript":return "babel";case "application/x-typescript":return "typescript";case "text/markdown":return "markdown";case "text/html":return "html";case "text/x-handlebars-template":return "glimmer";default:if(e.endsWith("json")||e.endsWith("importmap")||e==="speculationrules")return "json"}}function fa(e,t){let{name:r,attrMap:n}=e;if(r!=="script"||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:a,lang:s}=e.attrMap;return !s&&!a?"babel":Te(t,{language:s})??ir(a)}function va(e,t){if(!at(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:a}=r;return Te(t,{language:a})??ir(n)}function Ca(e,t){if(e.name!=="style")return;let{lang:r}=e.attrMap;return r?Te(t,{language:r}):"css"}function ur(e,t){return fa(e,t)??Ca(e,t)??va(e,t)}function he(e){return e==="block"||e==="list-item"||e.startsWith("table")}function Sa(e){return !he(e)&&e!=="inline-block"}function ya(e){return !he(e)&&e!=="inline-block"}function ba(e){return !he(e)}function _a(e){return !he(e)}function wa(e){return !he(e)&&e!=="inline-block"}function te(e){return or(e).startsWith("pre")}function Aa(e,t){let r=e;for(;r;){if(t(r))return  true;r=r.parent;}return  false}function ka(e,t){var r;if(re(e,t))return "block";if(((r=e.prev)==null?void 0:r.type)==="comment"){let a=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(a)return a[1]}let n=false;if(e.type==="element"&&e.namespace==="svg")if(Aa(e,a=>a.fullName==="svg:foreignObject"))n=true;else return e.name==="svg"?"inline-block":"block";switch(t.htmlWhitespaceSensitivity){case "strict":return "inline";case "ignore":return "block";default:return e.type==="element"&&(!e.namespace||n||pe(e))&&ta[e.name]||ea}}function or(e){return e.type==="element"&&(!e.namespace||pe(e))&&na[e.name]||ra}function Ea(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split(`
`)){if(r.length===0)continue;let n=W.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&n<t&&(t=n);}return t===Number.POSITIVE_INFINITY?0:t}function lr(e,t=Ea(e)){return t===0?e:e.split(`
`).map(r=>r.slice(t)).join(`
`)}function cr(e){return F(false,F(false,e,"&apos;","'"),"&quot;",'"')}function j(e){return cr(e.value)}var xa=new Set(["template","style","script"]);function Fe(e,t){return re(e,t)&&!xa.has(e.fullName)}function re(e,t){return t.parser==="vue"&&e.type==="element"&&e.parent.type==="root"&&e.fullName.toLowerCase()!=="html"}function at(e,t){return re(e,t)&&(Fe(e,t)||e.attrMap.lang&&e.attrMap.lang!=="html")}function Da(e){let t=e.fullName;return t.charAt(0)==="#"||t==="slot-scope"||t==="v-slot"||t.startsWith("v-slot:")}function Ta(e,t){let r=e.parent;if(!re(r,t))return  false;let n=r.fullName,a=e.fullName;return n==="script"&&a==="setup"||n==="style"&&a==="vars"}function pr(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?H(t):H(lr(Qt(t)),S):Z(y,W.split(t))}function hr(e,t){return re(e,t)&&e.name==="script"}var dr=/\{\{(.+?)\}\}/su;async function Ba(e,t){let r=[];for(let[n,a]of e.split(dr).entries())if(n%2===0)r.push(H(a));else try{r.push(w(["{{",V([y,await R(a,t,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),y,"}}"]));}catch{r.push("{{",H(a),"}}");}return r}function st({parser:e}){return (t,r,n)=>R(j(n.node),t,{parser:e},ee)}var La=st({parser:"__ng_action"}),Fa=st({parser:"__ng_binding"}),qa=st({parser:"__ng_directive"});function Na(e,t){if(t.parser!=="angular")return;let{node:r}=e,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return La;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/u.test(n)||/^ng-(?:if|show|hide|class|style)$/u.test(n))return Fa;if(n.startsWith("*"))return qa;let a=j(r);if(/^i18n(?:-.+)?$/u.test(n))return ()=>De(Kt(pr(r,a.trim())),!a.includes("@@"));if(dr.test(a))return s=>Ba(a,s)}var Ia=Na;function Pa(e,t){let{node:r}=e,n=j(r);if(r.fullName==="class"&&!t.parentParser&&!n.includes("{{"))return ()=>n.trim().split(/\s+/u).join(" ")}var Ha=Pa;function mr(e){return e==="	"||e===`
`||e==="\f"||e==="\r"||e===" "}var Ma=/^[ \t\n\r\u000c]+/,Ra=/^[, \t\n\r\u000c]+/,Ua=/^[^ \t\n\r\u000c]+/,Oa=/[,]+$/,gr=/^\d+$/,Va=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function za(e){let t=e.length,r,n,a,s,i,u=0,o;function p(m){let C,A=m.exec(e.substring(u));if(A)return [C]=A,u+=C.length,C}let l=[];for(;;){if(p(Ra),u>=t){if(l.length===0)throw new Error("Must contain one or more image candidate strings.");return l}o=u,r=p(Ua),n=[],r.slice(-1)===","?(r=r.replace(Oa,""),v()):f();}function f(){for(p(Ma),a="",s="in descriptor";;){if(i=e.charAt(u),s==="in descriptor")if(mr(i))a&&(n.push(a),a="",s="after descriptor");else if(i===","){u+=1,a&&n.push(a),v();return}else if(i==="(")a+=i,s="in parens";else if(i===""){a&&n.push(a),v();return}else a+=i;else if(s==="in parens")if(i===")")a+=i,s="in descriptor";else if(i===""){n.push(a),v();return}else a+=i;else if(s==="after descriptor"&&!mr(i))if(i===""){v();return}else s="in descriptor",u-=1;u+=1;}}function v(){let m=false,C,A,E,D,c={},g,k,_,L,ue;for(D=0;D<n.length;D++)g=n[D],k=g[g.length-1],_=g.substring(0,g.length-1),L=parseInt(_,10),ue=parseFloat(_),gr.test(_)&&k==="w"?((C||A)&&(m=true),L===0?m=true:C=L):Va.test(_)&&k==="x"?((C||A||E)&&(m=true),ue<0?m=true:A=ue):gr.test(_)&&k==="h"?((E||A)&&(m=true),L===0?m=true:E=L):m=true;if(!m)c.source={value:r,startOffset:o},C&&(c.width={value:C}),A&&(c.density={value:A}),E&&(c.height={value:E}),l.push(c);else throw new Error(`Invalid srcset descriptor found in "${e}" at "${g}".`)}}var Wa=za;function $a(e){if(e.node.fullName==="srcset"&&(e.parent.fullName==="img"||e.parent.fullName==="source"))return ()=>Ga(j(e.node))}var fr={width:"w",height:"h",density:"x"},ja=Object.keys(fr);function Ga(e){let t=Wa(e),r=ja.filter(l=>t.some(f=>Object.prototype.hasOwnProperty.call(f,l)));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,a=fr[n],s=t.map(l=>l.source.value),i=Math.max(...s.map(l=>l.length)),u=t.map(l=>l[n]?String(l[n].value):""),o=u.map(l=>{let f=l.indexOf(".");return f===-1?l.length:f}),p=Math.max(...o);return De(Z([",",y],s.map((l,f)=>{let v=[l],m=u[f];if(m){let C=i-l.length+1,A=p-o[f],E=" ".repeat(C+A);v.push(ke(E," "),m+a);}return v})))}var Ka=$a;function Xa(e,t){let{node:r}=e,n=j(e.node).trim();if(r.fullName==="style"&&!t.parentParser&&!n.includes("{{"))return async a=>De(await a(n,{parser:"css",__isHTMLStyleAttribute:true}))}var it=new WeakMap;function Ya(e,t){let{root:r}=e;return it.has(r)||it.set(r,r.children.some(n=>hr(n,t)&&["ts","typescript"].includes(n.attrMap.lang))),it.get(r)}var ut=Ya;function Ja(e,t,r){let{node:n}=r,a=j(n);return R(`type T<${a}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:true},ee)}function Qa(e,t,{parseWithTs:r}){return R(`function _(${e}) {}`,t,{parser:r?"babel-ts":"babel",__isVueBindings:true})}async function Za(e,t,r,n){let a=j(r.node),{left:s,operator:i,right:u}=es(a),o=ut(r,n);return [w(await R(`function _(${s}) {}`,e,{parser:o?"babel-ts":"babel",__isVueForBindingLeft:true}))," ",i," ",await R(u,e,{parser:o?"__ts_expression":"__js_expression"})]}function es(e){let t=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,a=e.match(t);if(!a)return;let s={};if(s.for=a[3].trim(),!s.for)return;let i=F(false,a[1].trim(),n,""),u=i.match(r);u?(s.alias=i.replace(r,""),s.iterator1=u[1].trim(),u[2]&&(s.iterator2=u[2].trim())):s.alias=i;let o=[s.alias,s.iterator1,s.iterator2];if(!o.some((p,l)=>!p&&(l===0||o.slice(l+1).some(Boolean))))return {left:o.filter(Boolean).join(","),operator:a[2],right:s.for}}function ts(e,t){if(t.parser!=="vue")return;let{node:r}=e,n=r.fullName;if(n==="v-for")return Za;if(n==="generic"&&hr(r.parent,t))return Ja;let a=j(r),s=ut(e,t);if(Da(r)||Ta(r,t))return i=>Qa(a,i,{parseWithTs:s});if(n.startsWith("@")||n.startsWith("v-on:"))return i=>rs(a,i,{parseWithTs:s});if(n.startsWith(":")||n.startsWith(".")||n.startsWith("v-bind:"))return i=>ns(a,i,{parseWithTs:s});if(n.startsWith("v-"))return i=>vr(a,i,{parseWithTs:s})}async function rs(e,t,{parseWithTs:r}){var n;try{return await vr(e,t,{parseWithTs:r})}catch(a){if(((n=a.cause)==null?void 0:n.code)!=="BABEL_PARSER_SYNTAX_ERROR")throw a}return R(e,t,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},ee)}function ns(e,t,{parseWithTs:r}){return R(e,t,{parser:r?"__vue_ts_expression":"__vue_expression"},ee)}function vr(e,t,{parseWithTs:r}){return R(e,t,{parser:r?"__ts_expression":"__js_expression"},ee)}var as=ts;function ss(e,t){let{node:r}=e;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(t.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||t.parser==="lwc"&&r.value.startsWith("{")&&r.value.endsWith("}"))return [r.rawName,"=",r.value];for(let n of [Ka,Xa,Ha,as,Ia]){let a=n(e,t);if(a)return is(a)}}}function is(e){return async(t,r,n,a)=>{let s=await e(t,r,n,a);if(s)return s=jt(s,i=>typeof i=="string"?F(false,i,'"',"&quot;"):i),[n.node.rawName,'="',w(s),'"']}}var us=ss,Cr=new Proxy(()=>{},{get:()=>Cr}),Sr=Cr;function os(e){return Array.isArray(e)&&e.length>0}var ot=os;function de(e){return e.sourceSpan.start.offset}function me(e){return e.sourceSpan.end.offset}function lt(e,t){return [e.isSelfClosing?"":ls(e,t),ge(e,t)]}function ls(e,t){return e.lastChild&&Ce(e.lastChild)?"":[cs(e,t),ct(e,t)]}function ge(e,t){return (e.next?X(e.next):ve(e.parent))?"":[fe(e,t),K(e,t)]}function cs(e,t){return ve(e)?fe(e.lastChild,t):""}function K(e,t){return Ce(e)?ct(e.parent,t):qe(e)?ht(e.next,t):""}function ct(e,t){if(Sr.ok(!e.isSelfClosing),yr(e,t))return "";switch(e.type){case "ieConditionalComment":return "<!";case "element":if(e.hasHtmComponentClosingTag)return "<//";default:return `</${e.rawName}`}}function fe(e,t){if(yr(e,t))return "";switch(e.type){case "ieConditionalComment":case "ieConditionalEndComment":return "[endif]-->";case "ieConditionalStartComment":return "]><!-->";case "interpolation":return "}}";case "angularIcuExpression":return "}";case "element":if(e.isSelfClosing)return "/>";default:return ">"}}function yr(e,t){return !e.isSelfClosing&&!e.endSourceSpan&&(Be(e)||Zt(e.parent,t))}function X(e){return e.prev&&e.prev.type!=="docType"&&e.type!=="angularControlFlowBlock"&&!N(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function ve(e){var t;return ((t=e.lastChild)==null?void 0:t.isTrailingSpaceSensitive)&&!e.lastChild.hasTrailingSpaces&&!N(nt(e.lastChild))&&!te(e)}function Ce(e){return !e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&N(nt(e))}function qe(e){return e.next&&!N(e.next)&&N(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function ps(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return t?t[1]?t[1].split(/\s+/u):true:false}function Ne(e){return !e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function hs(e,t,r){var n;let{node:a}=e;if(!ot(a.attrs))return a.isSelfClosing?" ":"";let s=((n=a.prev)==null?void 0:n.type)==="comment"&&ps(a.prev.value),i=typeof s=="boolean"?()=>s:Array.isArray(s)?f=>s.includes(f.rawName):()=>false,u=e.map(({node:f})=>i(f)?H(t.originalText.slice(de(f),me(f))):r(),"attrs"),o=a.type==="element"&&a.fullName==="script"&&a.attrs.length===1&&a.attrs[0].fullName==="src"&&a.children.length===0,p=t.singleAttributePerLine&&a.attrs.length>1&&!re(a,t)?S:y,l=[V([o?" ":y,Z(p,u)])];return a.firstChild&&Ne(a.firstChild)||a.isSelfClosing&&ve(a.parent)||o?l.push(a.isSelfClosing?" ":""):l.push(t.bracketSameLine?a.isSelfClosing?" ":"":a.isSelfClosing?y:x),l}function ds(e){return e.firstChild&&Ne(e.firstChild)?"":dt(e)}function pt(e,t,r){let{node:n}=e;return [Se(n,t),hs(e,t,r),n.isSelfClosing?"":ds(n)]}function Se(e,t){return e.prev&&qe(e.prev)?"":[Y(e,t),ht(e,t)]}function Y(e,t){return Ne(e)?dt(e.parent):X(e)?fe(e.prev,t):""}var br="<!doctype";function ht(e,t){switch(e.type){case "ieConditionalComment":case "ieConditionalStartComment":return `<!--[if ${e.condition}`;case "ieConditionalEndComment":return "<!--<!";case "interpolation":return "{{";case "docType":{if(e.value==="html"){let r=t.filepath??"";if(/\.html?$/u.test(r))return br}return t.originalText.slice(de(e),me(e)).slice(0,br.length)}case "angularIcuExpression":return "{";case "element":if(e.condition)return `<!--[if ${e.condition}]><!--><${e.rawName}`;default:return `<${e.rawName}`}}function dt(e){switch(Sr.ok(!e.isSelfClosing),e.type){case "ieConditionalComment":return "]>";case "element":if(e.condition)return "><!--<![endif]-->";default:return ">"}}function ms(e,t){if(!e.endSourceSpan)return "";let r=e.startSourceSpan.end.offset;e.firstChild&&Ne(e.firstChild)&&(r-=dt(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&Ce(e.lastChild)?n+=ct(e,t).length:ve(e)&&(n-=fe(e.lastChild,t).length),t.originalText.slice(r,n)}var _r=ms,gs=new Set(["if","else if","for","switch","case"]);function fs(e,t){let{node:r}=e;switch(r.type){case "element":if($(r)||r.type==="interpolation")return;if(!r.isSelfClosing&&at(r,t)){let n=ur(r,t);return n?async(a,s)=>{let i=_r(r,t),u=/^\s*$/u.test(i),o="";return u||(o=await a(Qt(i),{parser:n,__embeddedInHtml:true}),u=o===""),[Y(r,t),w(pt(e,t,s)),u?"":S,o,u?"":S,lt(r,t),K(r,t)]}:void 0}break;case "text":if($(r.parent)){let n=ur(r.parent,t);if(n)return async a=>{let s=n==="markdown"?lr(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,i={parser:n,__embeddedInHtml:true};if(t.parser==="html"&&n==="babel"){let u="script",{attrMap:o}=r.parent;o&&(o.type==="module"||o.type==="text/babel"&&o["data-type"]==="module")&&(u="module"),i.__babelSourceType=u;}return [ce,Y(r,t),await a(s,i),K(r,t)]}}else if(r.parent.type==="interpolation")return async n=>{let a={__isInHtmlInterpolation:true,__embeddedInHtml:true};return t.parser==="angular"?a.parser="__ng_interpolation":t.parser==="vue"?a.parser=ut(e,t)?"__vue_ts_expression":"__vue_expression":a.parser="__js_expression",[V([y,await n(r.value,a)]),r.parent.next&&X(r.parent.next)?" ":y]};break;case "attribute":return us(e,t);case "front-matter":return n=>Kn(r,n);case "angularControlFlowBlockParameters":return gs.has(e.parent.name)?Yn:void 0;case "angularLetDeclarationInitializer":return n=>R(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:false})}}var vs=fs,ye=null;function be(e){if(ye!==null&&typeof ye.property){let t=ye;return ye=be.prototype=null,t}return ye=be.prototype=e??Object.create(null),new be}var Cs=10;for(let e=0;e<=Cs;e++)be();function Ss(e){return be(e)}function ys(e,t="type"){Ss(e);function r(n){let a=n[t],s=e[a];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:n});return s}return r}var bs=ys,_s={"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]},ws=_s,As=bs(ws),ks=As;function Es(e){return /^\s*<!--\s*@(?:format|prettier)\s*-->/u.test(e)}function xs(e){return `<!-- @format -->

`+e}var Ds=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function wr(e){let t=me(e);return e.type==="element"&&!e.endSourceSpan&&ot(e.children)?Math.max(t,wr(le(false,e.children,-1))):t}function _e(e,t,r){let n=e.node;if(Be(n)){let a=wr(n);return [Y(n,t),H(W.trimEnd(t.originalText.slice(de(n)+(n.prev&&qe(n.prev)?ht(n).length:0),a-(n.next&&X(n.next)?fe(n,t).length:0)))),K(n,t)]}return r()}function Ie(e,t){return N(e)&&N(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?rt(t)?S:y:"":rt(t)?S:x:qe(e)&&(Be(t)||t.firstChild||t.isSelfClosing||t.type==="element"&&t.attrs.length>0)||e.type==="element"&&e.isSelfClosing&&X(t)?"":!t.isLeadingSpaceSensitive||rt(t)||X(t)&&e.lastChild&&Ce(e.lastChild)&&e.lastChild.lastChild&&Ce(e.lastChild.lastChild)?S:t.hasLeadingSpaces?y:x}function mt(e,t,r){let{node:n}=e;if(tr(n))return [ce,...e.map(s=>{let i=s.node,u=i.prev?Ie(i.prev,i):"";return [u?[u,Le(i.prev)?S:""]:"",_e(s,t,r)]},"children")];let a=n.children.map(()=>Symbol(""));return e.map((s,i)=>{let u=s.node;if(N(u)){if(u.prev&&N(u.prev)){let C=Ie(u.prev,u);if(C)return Le(u.prev)?[S,S,_e(s,t,r)]:[C,_e(s,t,r)]}return _e(s,t,r)}let o=[],p=[],l=[],f=[],v=u.prev?Ie(u.prev,u):"",m=u.next?Ie(u,u.next):"";return v&&(Le(u.prev)?o.push(S,S):v===S?o.push(S):N(u.prev)?p.push(v):p.push(ke("",x,{groupId:a[i-1]}))),m&&(Le(u)?N(u.next)&&f.push(S,S):m===S?N(u.next)&&f.push(S):l.push(m)),[...o,w([...p,w([_e(s,t,r),...l],{id:a[i]})]),...f]},"children")}function Ts(e,t,r){let{node:n}=e,a=[];Bs(e)&&a.push("} "),a.push("@",n.name),n.parameters&&a.push(" (",w(r("parameters")),")"),a.push(" {");let s=Ar(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=true,n.lastChild.hasTrailingSpaces=true,a.push(V([S,mt(e,t,r)])),s&&a.push(S,"}")):s&&a.push("}"),w(a,{shouldBreak:true})}function Ar(e){var t,r;return !(((t=e.next)==null?void 0:t.type)==="angularControlFlowBlock"&&(r=Ds.get(e.name))!=null&&r.has(e.next.name))}function Bs(e){let{previous:t}=e;return (t==null?void 0:t.type)==="angularControlFlowBlock"&&!Be(t)&&!Ar(t)}function Ls(e,t,r){return [V([x,Z([";",y],e.map(r,"children"))]),x]}function Fs(e,t,r){let{node:n}=e;return [Se(n,t),w([n.switchValue.trim(),", ",n.clause,n.cases.length>0?[",",V([y,Z(y,e.map(r,"cases"))])]:"",x]),ge(n,t)]}function qs(e,t,r){let{node:n}=e;return [n.value," {",w([V([x,e.map(({node:a,isLast:s})=>{let i=[r()];return a.type==="text"&&(a.hasLeadingSpaces&&i.unshift(y),a.hasTrailingSpaces&&!s&&i.push(y)),i},"expression")]),x]),"}"]}function Ns(e,t,r){let{node:n}=e;if(Zt(n,t))return [Y(n,t),w(pt(e,t,r)),H(_r(n,t)),...lt(n,t),K(n,t)];let a=n.children.length===1&&(n.firstChild.type==="interpolation"||n.firstChild.type==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,s=Symbol("element-attr-group-id"),i=l=>w([w(pt(e,t,r),{id:s}),l,lt(n,t)]),u=l=>a?Bn(l,{groupId:s}):($(n)||Fe(n,t))&&n.parent.type==="root"&&t.parser==="vue"&&!t.vueIndentScriptAndStyle?l:V(l),o=()=>a?ke(x,"",{groupId:s}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?y:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?Dn(x):x,p=()=>(n.next?X(n.next):ve(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":a?ke(x,"",{groupId:s}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?y:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":x;return n.children.length===0?i(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?y:""):i([da(n)?ce:"",u([o(),mt(e,t,r)]),p()])}function Pe(e){return e>=9&&e<=32||e==160}function gt(e){return 48<=e&&e<=57}function He(e){return e>=97&&e<=122||e>=65&&e<=90}function Is(e){return e>=97&&e<=102||e>=65&&e<=70||gt(e)}function ft(e){return e===10||e===13}function kr(e){return 48<=e&&e<=55}function vt(e){return e===39||e===34||e===96}var Ps=/-+([a-z0-9])/g;function Hs(e){return e.replace(Ps,(...t)=>t[1].toUpperCase())}var Ct=class cn{constructor(t,r,n,a){this.file=t,this.offset=r,this.line=n,this.col=a;}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(t){let r=this.file.content,n=r.length,a=this.offset,s=this.line,i=this.col;for(;a>0&&t<0;)if(a--,t++,r.charCodeAt(a)==10){s--;let u=r.substring(0,a-1).lastIndexOf(`
`);i=u>0?a-u:a;}else i--;for(;a<n&&t>0;){let u=r.charCodeAt(a);a++,t--,u==10?(s++,i=0):i++;}return new cn(this.file,a,s,i)}getContext(t,r){let n=this.file.content,a=this.offset;if(a!=null){a>n.length-1&&(a=n.length-1);let s=a,i=0,u=0;for(;i<t&&a>0&&(a--,i++,!(n[a]==`
`&&++u==r)););for(i=0,u=0;i<t&&s<n.length-1&&(s++,i++,!(n[s]==`
`&&++u==r)););return {before:n.substring(a,this.offset),after:n.substring(this.offset,s+1)}}return null}},Er=class{constructor(e,t){this.content=e,this.url=t;}},d=class{constructor(e,t,r=e,n=null){this.start=e,this.end=t,this.fullStart=r,this.details=n;}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Me;(function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR";})(Me||(Me={}));var xr=class{constructor(e,t,r=Me.ERROR){this.span=e,this.msg=t,this.level=r;}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${Me[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return `${this.contextualMessage()}: ${this.span.start}${e}`}},Ms=[Us,Os,zs,$s,js,Xs,Gs,Ks,Ys,Ws];function Rs(e,t){for(let r of Ms)r(e,t);return e}function Us(e){e.walk(t=>{if(t.type==="element"&&t.tagDefinition.ignoreFirstLf&&t.children.length>0&&t.children[0].type==="text"&&t.children[0].value[0]===`
`){let r=t.children[0];r.value.length===1?t.removeChild(r):r.value=r.value.slice(1);}});}function Os(e){let t=r=>{var n,a;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((a=r.firstChild)==null?void 0:a.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};e.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let a=r.children[n];if(!t(a))continue;let s=a.prev,i=a.firstChild;r.removeChild(s),n--;let u=new d(s.sourceSpan.start,i.sourceSpan.end),o=new d(u.start,a.sourceSpan.end);a.condition=s.condition,a.sourceSpan=o,a.startSourceSpan=u,a.removeChild(i);}});}function Vs(e,t,r){e.walk(n=>{if(n.children)for(let a=0;a<n.children.length;a++){let s=n.children[a];if(s.type!=="text"&&!t(s))continue;s.type!=="text"&&(s.type="text",s.value=r(s));let i=s.prev;!i||i.type!=="text"||(i.value+=s.value,i.sourceSpan=new d(i.sourceSpan.start,s.sourceSpan.end),n.removeChild(s),a--);}});}function zs(e){return Vs(e,t=>t.type==="cdata",t=>`<![CDATA[${t.value}]]>`)}function Ws(e){let t=r=>{var n,a;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!W.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((a=r.next)==null?void 0:a.type)==="text"};e.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let a=r.children[n];if(!t(a))continue;let s=a.prev,i=a.next;s.value+=`<${a.rawName}>`+a.firstChild.value+`</${a.rawName}>`+i.value,s.sourceSpan=new d(s.sourceSpan.start,i.sourceSpan.end),s.isTrailingSpaceSensitive=i.isTrailingSpaceSensitive,s.hasTrailingSpaces=i.hasTrailingSpaces,r.removeChild(a),n--,r.removeChild(i);}});}function $s(e,t){if(t.parser==="html")return;let r=/\{\{(.+?)\}\}/su;e.walk(n=>{if(oa(n))for(let a of n.children){if(a.type!=="text")continue;let s=a.sourceSpan.start,i=null,u=a.value.split(r);for(let o=0;o<u.length;o++,s=i){let p=u[o];if(o%2===0){i=s.moveBy(p.length),p.length>0&&n.insertChildBefore(a,{type:"text",value:p,sourceSpan:new d(s,i)});continue}i=s.moveBy(p.length+4),n.insertChildBefore(a,{type:"interpolation",sourceSpan:new d(s,i),children:p.length===0?[]:[{type:"text",value:p,sourceSpan:new d(s.moveBy(2),i.moveBy(-2))}]});}n.removeChild(a);}});}function js(e){e.walk(t=>{let r=t.$children;if(!r)return;if(r.length===0||r.length===1&&r[0].type==="text"&&W.trim(r[0].value).length===0){t.hasDanglingSpaces=r.length>0,t.$children=[];return}let n=la(t),a=er(t);if(!n)for(let s=0;s<r.length;s++){let i=r[s];if(i.type!=="text")continue;let{leadingWhitespace:u,text:o,trailingWhitespace:p}=ia(i.value),l=i.prev,f=i.next;o?(i.value=o,i.sourceSpan=new d(i.sourceSpan.start.moveBy(u.length),i.sourceSpan.end.moveBy(-p.length)),u&&(l&&(l.hasTrailingSpaces=true),i.hasLeadingSpaces=true),p&&(i.hasTrailingSpaces=true,f&&(f.hasLeadingSpaces=true))):(t.removeChild(i),s--,(u||p)&&(l&&(l.hasTrailingSpaces=true),f&&(f.hasLeadingSpaces=true)));}t.isWhitespaceSensitive=n,t.isIndentationSensitive=a;});}function Gs(e){e.walk(t=>{t.isSelfClosing=!t.children||t.type==="element"&&(t.tagDefinition.isVoid||t.endSourceSpan&&t.startSourceSpan.start===t.endSourceSpan.start&&t.startSourceSpan.end===t.endSourceSpan.end);});}function Ks(e,t){e.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)));});}function Xs(e,t){e.walk(r=>{r.cssDisplay=ka(r,t);});}function Ys(e,t){e.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=ha(r);return}for(let a of n)a.isLeadingSpaceSensitive=ca(a,t),a.isTrailingSpaceSensitive=pa(a,t);for(let a=0;a<n.length;a++){let s=n[a];s.isLeadingSpaceSensitive=(a===0||s.prev.isTrailingSpaceSensitive)&&s.isLeadingSpaceSensitive,s.isTrailingSpaceSensitive=(a===n.length-1||s.next.isLeadingSpaceSensitive)&&s.isTrailingSpaceSensitive;}}});}var Js=Rs;function Qs(e,t,r){let{node:n}=e;switch(n.type){case "front-matter":return H(n.raw);case "root":return t.__onHtmlRoot&&t.__onHtmlRoot(n),[w(mt(e,t,r)),S];case "element":case "ieConditionalComment":return Ns(e,t,r);case "angularControlFlowBlock":return Ts(e,t,r);case "angularControlFlowBlockParameters":return Ls(e,t,r);case "angularControlFlowBlockParameter":return W.trim(n.expression);case "angularLetDeclaration":return w(["@let ",w([n.id," =",w(V([y,r("init")]))]),";"]);case "angularLetDeclarationInitializer":return n.value;case "angularIcuExpression":return Fs(e,t,r);case "angularIcuCase":return qs(e,t,r);case "ieConditionalStartComment":case "ieConditionalEndComment":return [Se(n),ge(n)];case "interpolation":return [Se(n,t),...e.map(r,"children"),ge(n,t)];case "text":{if(n.parent.type==="interpolation"){let u=/\n[^\S\n]*$/u,o=u.test(n.value),p=o?n.value.replace(u,""):n.value;return [H(p),o?S:""]}let a=Y(n,t),s=pr(n),i=K(n,t);return s[0]=[a,s[0]],s.push([s.pop(),i]),Kt(s)}case "docType":return [w([Se(n,t)," ",F(false,n.value.replace(/^html\b/iu,"html"),/\s+/gu," ")]),ge(n,t)];case "comment":return [Y(n,t),H(t.originalText.slice(de(n),me(n))),K(n,t)];case "attribute":{if(n.value===null)return n.rawName;let a=cr(n.value),s=In(a,'"');return [n.rawName,"=",s,H(s==='"'?F(false,a,'"',"&quot;"):F(false,a,"'","&apos;")),s]}case "cdata":default:throw new Vn(n,"HTML")}}var Zs={preprocess:Js,print:Qs,insertPragma:xs,massageAstNode:jn,embed:vs,getVisitorKeys:ks},ei=Zs,ti=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],Dr={bracketSameLine:{category:"Common",type:"boolean",default:false,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:false,description:"Enforce single attribute per line in HTML, Vue and JSX."}},Tr="HTML",ri={bracketSameLine:Dr.bracketSameLine,htmlWhitespaceSensitivity:{category:Tr,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:Dr.singleAttributePerLine,vueIndentScriptAndStyle:{category:Tr,type:"boolean",default:false,description:"Indent script and style tags in Vue files."}},ni=ri,Br={};Ft(Br,{angular:()=>uu,html:()=>iu,lwc:()=>lu,vue:()=>ou});var Lr;(function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom";})(Lr||(Lr={}));var Fr;(function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default";})(Fr||(Fr={}));var qr;(function(e){e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform";})(qr||(qr={}));var Nr={name:"custom-elements"},Ir={name:"no-errors-schema"},J;(function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL";})(J||(J={}));var Pr;(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore";})(Pr||(Pr={}));var U;(function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA";})(U||(U={}));function Re(e,t=true){if(e[0]!=":")return [null,e];let r=e.indexOf(":",1);if(r===-1){if(t)throw new Error(`Unsupported format "${e}" expecting ":namespace:name"`);return [null,e]}return [e.slice(1,r),e.slice(r+1)]}function Hr(e){return Re(e)[1]==="ng-container"}function Mr(e){return Re(e)[1]==="ng-content"}function Ue(e){return e===null?null:Re(e)[0]}function Oe(e,t){return e?`:${e}:${t}`:t}var Ve;function Rr(){return Ve||(Ve={},ze(J.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),ze(J.STYLE,["*|style"]),ze(J.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),ze(J.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),Ve}function ze(e,t){for(let r of t)Ve[r.toLowerCase()]=e;}var ai=class{},si="boolean",ii="number",ui="string",oi="object",li=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],Ur=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),ci=Array.from(Ur).reduce((e,[t,r])=>(e.set(t,r),e),new Map),pi=class extends ai{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,li.forEach(e=>{let t=new Map,r=new Set,[n,a]=e.split("|"),s=a.split(","),[i,u]=n.split("^");i.split(",").forEach(p=>{this._schema.set(p.toLowerCase(),t),this._eventSchema.set(p.toLowerCase(),r);});let o=u&&this._schema.get(u.toLowerCase());if(o){for(let[p,l]of o)t.set(p,l);for(let p of this._eventSchema.get(u.toLowerCase()))r.add(p);}s.forEach(p=>{if(p.length>0)switch(p[0]){case "*":r.add(p.substring(1));break;case "!":t.set(p.substring(1),si);break;case "#":t.set(p.substring(1),ii);break;case "%":t.set(p.substring(1),oi);break;default:t.set(p,ui);}});});}hasProperty(e,t,r){if(r.some(n=>n.name===Ir.name))return  true;if(e.indexOf("-")>-1){if(Hr(e)||Mr(e))return  false;if(r.some(n=>n.name===Nr.name))return  true}return (this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){return t.some(r=>r.name===Ir.name)||e.indexOf("-")>-1&&(Hr(e)||Mr(e)||t.some(r=>r.name===Nr.name))?true:this._schema.has(e.toLowerCase())}securityContext(e,t,r){r&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let n=Rr()[e+"|"+t];return n||(n=Rr()["*|"+t],n||J.NONE)}getMappedPropName(e){return Ur.get(e)??e}getDefaultComponentElementName(){return "ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:true,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...
If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:false}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:true,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:false}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(t.keys()).map(r=>ci.get(r)??r)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return Hs(e)}normalizeAnimationStyleValue(e,t,r){let n="",a=r.toString().trim(),s=null;if(hi(e)&&r!==0&&r!=="0")if(typeof r=="number")n="px";else {let i=r.match(/^[+-]?[\d\.]+([a-z]*)$/);i&&i[1].length==0&&(s=`Please provide a CSS unit value for ${t}:${r}`);}return {error:s,value:a+n}}};function hi(e){switch(e){case "width":case "height":case "minWidth":case "minHeight":case "maxWidth":case "maxHeight":case "left":case "top":case "bottom":case "right":case "fontSize":case "outlineWidth":case "outlineOffset":case "paddingTop":case "paddingLeft":case "paddingBottom":case "paddingRight":case "marginTop":case "marginLeft":case "marginBottom":case "marginRight":case "borderRadius":case "borderWidth":case "borderTopWidth":case "borderLeftWidth":case "borderRightWidth":case "borderBottomWidth":case "textIndent":return  true;default:return  false}}var h=class{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:r=U.PARSABLE_DATA,closedByParent:n=false,isVoid:a=false,ignoreFirstLf:s=false,preventNamespaceInheritance:i=false,canSelfClose:u=false}={}){this.closedByChildren={},this.closedByParent=false,e&&e.length>0&&e.forEach(o=>this.closedByChildren[o]=true),this.isVoid=a,this.closedByParent=n||a,this.implicitNamespacePrefix=t||null,this.contentType=r,this.ignoreFirstLf=s,this.preventNamespaceInheritance=i,this.canSelfClose=u??a;}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},Or,we;function St(e){return we||(Or=new h({canSelfClose:true}),we=Object.assign(Object.create(null),{base:new h({isVoid:true}),meta:new h({isVoid:true}),area:new h({isVoid:true}),embed:new h({isVoid:true}),link:new h({isVoid:true}),img:new h({isVoid:true}),input:new h({isVoid:true}),param:new h({isVoid:true}),hr:new h({isVoid:true}),br:new h({isVoid:true}),source:new h({isVoid:true}),track:new h({isVoid:true}),wbr:new h({isVoid:true}),p:new h({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:true}),thead:new h({closedByChildren:["tbody","tfoot"]}),tbody:new h({closedByChildren:["tbody","tfoot"],closedByParent:true}),tfoot:new h({closedByChildren:["tbody"],closedByParent:true}),tr:new h({closedByChildren:["tr"],closedByParent:true}),td:new h({closedByChildren:["td","th"],closedByParent:true}),th:new h({closedByChildren:["td","th"],closedByParent:true}),col:new h({isVoid:true}),svg:new h({implicitNamespacePrefix:"svg"}),foreignObject:new h({implicitNamespacePrefix:"svg",preventNamespaceInheritance:true}),math:new h({implicitNamespacePrefix:"math"}),li:new h({closedByChildren:["li"],closedByParent:true}),dt:new h({closedByChildren:["dt","dd"]}),dd:new h({closedByChildren:["dt","dd"],closedByParent:true}),rb:new h({closedByChildren:["rb","rt","rtc","rp"],closedByParent:true}),rt:new h({closedByChildren:["rb","rt","rtc","rp"],closedByParent:true}),rtc:new h({closedByChildren:["rb","rtc","rp"],closedByParent:true}),rp:new h({closedByChildren:["rb","rt","rtc","rp"],closedByParent:true}),optgroup:new h({closedByChildren:["optgroup"],closedByParent:true}),option:new h({closedByChildren:["option","optgroup"],closedByParent:true}),pre:new h({ignoreFirstLf:true}),listing:new h({ignoreFirstLf:true}),style:new h({contentType:U.RAW_TEXT}),script:new h({contentType:U.RAW_TEXT}),title:new h({contentType:{default:U.ESCAPABLE_RAW_TEXT,svg:U.PARSABLE_DATA}}),textarea:new h({contentType:U.ESCAPABLE_RAW_TEXT,ignoreFirstLf:true})}),new pi().allKnownElementNames().forEach(t=>{!we[t]&&Ue(t)===null&&(we[t]=new h({canSelfClose:false}));})),we[e]??Or}var ne=class{constructor(e,t){this.sourceSpan=e,this.i18n=t;}},di=class extends ne{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r,this.type="text";}visit(e,t){return e.visitText(this,t)}},mi=class extends ne{constructor(e,t,r,n){super(t,n),this.value=e,this.tokens=r,this.type="cdata";}visit(e,t){return e.visitCdata(this,t)}},gi=class extends ne{constructor(e,t,r,n,a,s){super(n,s),this.switchValue=e,this.type=t,this.cases=r,this.switchValueSourceSpan=a;}visit(e,t){return e.visitExpansion(this,t)}},fi=class{constructor(e,t,r,n,a){this.value=e,this.expression=t,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=a,this.type="expansionCase";}visit(e,t){return e.visitExpansionCase(this,t)}},vi=class extends ne{constructor(e,t,r,n,a,s,i){super(r,i),this.name=e,this.value=t,this.keySpan=n,this.valueSpan=a,this.valueTokens=s,this.type="attribute";}visit(e,t){return e.visitAttribute(this,t)}get nameSpan(){return this.keySpan}},G=class extends ne{constructor(e,t,r,n,a,s=null,i=null,u){super(n,u),this.name=e,this.attrs=t,this.children=r,this.startSourceSpan=a,this.endSourceSpan=s,this.nameSpan=i,this.type="element";}visit(e,t){return e.visitElement(this,t)}},Ci=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type="comment";}visit(e,t){return e.visitComment(this,t)}},Si=class{constructor(e,t){this.value=e,this.sourceSpan=t,this.type="docType";}visit(e,t){return e.visitDocType(this,t)}},ae=class extends ne{constructor(e,t,r,n,a,s,i=null,u){super(n,u),this.name=e,this.parameters=t,this.children=r,this.nameSpan=a,this.startSourceSpan=s,this.endSourceSpan=i,this.type="block";}visit(e,t){return e.visitBlock(this,t)}},Vr=class{constructor(e,t){this.expression=e,this.sourceSpan=t,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null;}visit(e,t){return e.visitBlockParameter(this,t)}},zr=class{constructor(e,t,r,n,a){this.name=e,this.value=t,this.sourceSpan=r,this.nameSpan=n,this.valueSpan=a,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null;}visit(e,t){return e.visitLetDeclaration(this,t)}};function Wr(e,t,r=null){let n=[],a=e.visit?s=>e.visit(s,r)||s.visit(e,r):s=>s.visit(e,r);return t.forEach(s=>{let i=a(s);i&&n.push(i);}),n}var yi=class{constructor(){}visitElement(e,t){this.visitChildren(t,r=>{r(e.attrs),r(e.children);});}visitAttribute(e,t){}visitText(e,t){}visitCdata(e,t){}visitComment(e,t){}visitDocType(e,t){}visitExpansion(e,t){return this.visitChildren(t,r=>{r(e.cases);})}visitExpansionCase(e,t){}visitBlock(e,t){this.visitChildren(t,r=>{r(e.parameters),r(e.children);});}visitBlockParameter(e,t){}visitLetDeclaration(e,t){}visitChildren(e,t){let r=[],n=this;function a(s){s&&r.push(Wr(n,s,e));}return t(a),Array.prototype.concat.apply([],r)}},We={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",af:"⁡",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"⁣",ic:"⁣",InvisibleTimes:"⁢",it:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",ZeroWidthSpace:"​",NewLine:`
`,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"	",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},bi="";We.ngsp=bi;var _i=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function wi(e,t){if(t!=null&&!(Array.isArray(t)&&t.length==2))throw new Error(`Expected '${e}' to be an array, [start, end].`);if(t!=null){let r=t[0],n=t[1];_i.forEach(a=>{if(a.test(r)||a.test(n))throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`)});}}var Ai=class pn{static fromArray(t){return t?(wi("interpolation",t),new pn(t[0],t[1])):$r}constructor(t,r){this.start=t,this.end=r;}},$r=new Ai("{{","}}"),yt=class extends xr{constructor(e,t,r){super(r,e),this.tokenType=t;}},ki=class{constructor(e,t,r){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=r;}};function Ei(e,t,r,n={}){let a=new Ti(new Er(e,t),r,n);return a.tokenize(),new ki(Ii(a.tokens),a.errors,a.nonNormalizedIcuExpressions)}var xi=/\r\n?/g;function se(e){return `Unexpected character "${e===0?"EOF":String.fromCharCode(e)}"`}function jr(e){return `Unknown entity "${e}" - use the "&#<decimal>;" or  "&#x<hex>;" syntax`}function Di(e,t){return `Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}var $e;(function(e){e.HEX="hexadecimal",e.DEC="decimal";})($e||($e={}));var bt=class{constructor(e){this.error=e;}},Ti=class{constructor(e,t,r){this._getTagContentType=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=false,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=r.tokenizeExpansionForms||false,this._interpolationConfig=r.interpolationConfig||$r,this._leadingTriviaCodePoints=r.leadingTriviaChars&&r.leadingTriviaChars.map(a=>a.codePointAt(0)||0),this._canSelfClose=r.canSelfClose||false,this._allowHtmComponentClosingTags=r.allowHtmComponentClosingTags||false;let n=r.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=r.escapedString?new Pi(e,n):new Jr(e,n),this._preserveLineEndings=r.preserveLineEndings||false,this._i18nNormalizeLineEndingsInICUs=r.i18nNormalizeLineEndingsInICUs||false,this._tokenizeBlocks=r.tokenizeBlocks??true,this._tokenizeLet=r.tokenizeLet??true;try{this._cursor.init();}catch(a){this.handleError(a);}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(xi,`
`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else {let t=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=t,this._consumeBogusComment(e)):this._consumeTagOpen(e);}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart());}catch(t){this.handleError(t);}}this._beginToken(34),this._endToken([]);}_getBlockName(){let e=false,t=this._cursor.clone();return this._attemptCharCodeUntilFn(r=>Pe(r)?!e:Xr(r)?(e=true,false):true),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._beginToken(25,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(b),this._attemptCharCode(41))this._attemptCharCodeUntilFn(b);else {t.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):t.type=29;}_consumeBlockEnd(e){this._beginToken(27,e),this._endToken([]);}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Yr);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let e=this._cursor.clone(),t=null,r=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||t!==null;){let n=this._cursor.peek();if(n===92)this._cursor.advance();else if(n===t)t=null;else if(t===null&&vt(n))t=n;else if(n===40&&t===null)r++;else if(n===41&&t===null){if(r===0)break;r>0&&r--;}this._cursor.advance();}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Yr);}}_consumeLetDeclaration(e){if(this._beginToken(30,e),Pe(this._cursor.peek()))this._attemptCharCodeUntilFn(b);else {let r=this._endToken([this._cursor.getChars(e)]);r.type=33;return}let t=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(b),!this._attemptCharCode(61)){t.type=33;return}this._attemptCharCodeUntilFn(r=>b(r)&&!ft(r)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(t.type=33,t.sourceSpan=this._cursor.getSpan(e));}_getLetDeclarationName(){let e=this._cursor.clone(),t=false;return this._attemptCharCodeUntilFn(r=>He(r)||r===36||r===95||t&&gt(r)?(t=true,false):true),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(31,e);this._cursor.peek()!==0;){let t=this._cursor.peek();if(t===59)break;vt(t)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(r=>r===92?(this._cursor.advance(),false):r===t)),this._cursor.advance();}this._endToken([this._cursor.getChars(e)]);}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),true;if(qi(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),true;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),true;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),true}return  false}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e;}_endToken(e,t){if(this._currentTokenStart===null)throw new yt("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(this._currentTokenType===null)throw new yt("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let r={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r}_createError(e,t){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let r=new yt(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new bt(r)}handleError(e){if(e instanceof _t&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof bt)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),true):false}_attemptCharCodeCaseInsensitive(e){return Ni(this._cursor.peek(),e)?(this._cursor.advance(),true):false}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(se(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()<t)return  false;let r=this._cursor.clone();for(let n=0;n<t;n++)if(!this._attemptCharCode(e.charCodeAt(n)))return this._cursor=r,false;return  true}_attemptStrCaseInsensitive(e){for(let t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return  false;return  true}_requireStr(e){let t=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(se(this._cursor.peek()),this._cursor.getSpan(t))}_requireStrCaseInsensitive(e){let t=this._cursor.clone();if(!this._attemptStrCaseInsensitive(e))throw this._createError(se(this._cursor.peek()),this._cursor.getSpan(t))}_attemptCharCodeUntilFn(e){for(;!e(this._cursor.peek());)this._cursor.advance();}_requireCharCodeUntilFn(e,t){let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(r)<t)throw this._createError(se(this._cursor.peek()),this._cursor.getSpan(r))}_attemptUntilChar(e){for(;this._cursor.peek()!==e;)this._cursor.advance();}_readChar(){let e=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),e}_consumeEntity(e){this._beginToken(9);let t=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(35)){let r=this._attemptCharCode(120)||this._attemptCharCode(88),n=this._cursor.clone();if(this._attemptCharCodeUntilFn(Li),this._cursor.peek()!=59){this._cursor.advance();let s=r?$e.HEX:$e.DEC;throw this._createError(Di(s,this._cursor.getChars(t)),this._cursor.getSpan())}let a=this._cursor.getChars(n);this._cursor.advance();try{let s=parseInt(a,r?16:10);this._endToken([String.fromCharCode(s),this._cursor.getChars(t)]);}catch{throw this._createError(jr(this._cursor.getChars(t)),this._cursor.getSpan())}}else {let r=this._cursor.clone();if(this._attemptCharCodeUntilFn(Fi),this._cursor.peek()!=59)this._beginToken(e,t),this._cursor=r,this._endToken(["&"]);else {let n=this._cursor.getChars(r);this._cursor.advance();let a=We[n];if(!a)throw this._createError(jr(n),this._cursor.getSpan(t));this._endToken([a,`&${n};`]);}}}_consumeRawText(e,t){this._beginToken(e?6:7);let r=[];for(;;){let n=this._cursor.clone(),a=t();if(this._cursor=n,a)break;e&&this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(r.join(""))]),r.length=0,this._consumeEntity(6),this._beginToken(6)):r.push(this._readChar());}this._endToken([this._processCarriageReturns(r.join(""))]);}_consumeComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(false,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([]);}_consumeBogusComment(e){this._beginToken(10,e),this._endToken([]),this._consumeRawText(false,()=>this._cursor.peek()===62),this._beginToken(11),this._cursor.advance(),this._endToken([]);}_consumeCdata(e){this._beginToken(12,e),this._endToken([]),this._consumeRawText(false,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([]);}_consumeDocType(e){this._beginToken(18,e),this._endToken([]),this._consumeRawText(false,()=>this._cursor.peek()===62),this._beginToken(19),this._cursor.advance(),this._endToken([]);}_consumePrefixAndName(){let e=this._cursor.clone(),t="";for(;this._cursor.peek()!==58&&!Bi(this._cursor.peek());)this._cursor.advance();let r;this._cursor.peek()===58?(t=this._cursor.getChars(e),this._cursor.advance(),r=this._cursor.clone()):r=e,this._requireCharCodeUntilFn(Gr,t===""?0:1);let n=this._cursor.getChars(r);return [t,n]}_consumeTagOpen(e){let t,r,n,a=[];try{if(!He(this._cursor.peek()))throw this._createError(se(this._cursor.peek()),this._cursor.getSpan(e));for(n=this._consumeTagOpenStart(e),r=n.parts[0],t=n.parts[1],this._attemptCharCodeUntilFn(b);this._cursor.peek()!==47&&this._cursor.peek()!==62&&this._cursor.peek()!==60&&this._cursor.peek()!==0;){let[i,u]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(b),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(b);let o=this._consumeAttributeValue();a.push({prefix:i,name:u,value:o});}else a.push({prefix:i,name:u});this._attemptCharCodeUntilFn(b);}this._consumeTagOpenEnd();}catch(i){if(i instanceof bt){n?n.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw i}if(this._canSelfClose&&this.tokens[this.tokens.length-1].type===2)return;let s=this._getTagContentType(t,r,this._fullNameStack.length>0,a);this._handleFullNameStackForTagOpen(r,t),s===U.RAW_TEXT?this._consumeRawTextWithTagClose(r,t,false):s===U.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,t,true);}_consumeRawTextWithTagClose(e,t,r){this._consumeRawText(r,()=>!this._attemptCharCode(60)||!this._attemptCharCode(47)||(this._attemptCharCodeUntilFn(b),!this._attemptStrCaseInsensitive(e?`${e}:${t}`:t))?false:(this._attemptCharCodeUntilFn(b),this._attemptCharCode(62))),this._beginToken(3),this._requireCharCodeUntilFn(n=>n===62,3),this._cursor.advance(),this._endToken([e,t]),this._handleFullNameStackForTagClose(e,t);}_consumeTagOpenStart(e){this._beginToken(0,e);let t=this._consumePrefixAndName();return this._endToken(t)}_consumeAttributeName(){let e=this._cursor.peek();if(e===39||e===34)throw this._createError(se(e),this._cursor.getSpan());this._beginToken(14);let t=this._consumePrefixAndName();return this._endToken(t),t}_consumeAttributeValue(){let e;if(this._cursor.peek()===39||this._cursor.peek()===34){let t=this._cursor.peek();this._consumeQuote(t);let r=()=>this._cursor.peek()===t;e=this._consumeWithInterpolation(16,17,r,r),this._consumeQuote(t);}else {let t=()=>Gr(this._cursor.peek());e=this._consumeWithInterpolation(16,17,t,t);}return e}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)]);}_consumeTagOpenEnd(){let e=this._attemptCharCode(47)?2:1;this._beginToken(e),this._requireCharCode(62),this._endToken([]);}_consumeTagClose(e){if(this._beginToken(3,e),this._attemptCharCodeUntilFn(b),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(b),this._requireCharCode(62),this._endToken([]);else {let[t,r]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(b),this._requireCharCode(62),this._endToken([t,r]),this._handleFullNameStackForTagClose(t,r);}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let e=this._readUntil(44),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else {let n=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(n);}this._requireCharCode(44),this._attemptCharCodeUntilFn(b),this._beginToken(7);let r=this._readUntil(44);this._endToken([r]),this._requireCharCode(44),this._attemptCharCodeUntilFn(b);}_consumeExpansionCaseStart(){this._beginToken(21);let e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(b),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(b),this._expansionCaseStack.push(22);}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(b),this._expansionCaseStack.pop();}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop();}_consumeWithInterpolation(e,t,r,n){this._beginToken(e);let a=[];for(;!r();){let i=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(a.join(""))],i),a.length=0,this._consumeInterpolation(t,i,n),this._beginToken(e)):this._cursor.peek()===38?(this._endToken([this._processCarriageReturns(a.join(""))]),a.length=0,this._consumeEntity(e),this._beginToken(e)):a.push(this._readChar());}this._inInterpolation=false;let s=this._processCarriageReturns(a.join(""));return this._endToken([s]),s}_consumeInterpolation(e,t,r){let n=[];this._beginToken(e,t),n.push(this._interpolationConfig.start);let a=this._cursor.clone(),s=null,i=false;for(;this._cursor.peek()!==0&&(r===null||!r());){let u=this._cursor.clone();if(this._isTagStart()){this._cursor=u,n.push(this._getProcessedChars(a,u)),this._endToken(n);return}if(s===null)if(this._attemptStr(this._interpolationConfig.end)){n.push(this._getProcessedChars(a,u)),n.push(this._interpolationConfig.end),this._endToken(n);return}else this._attemptStr("//")&&(i=true);let o=this._cursor.peek();this._cursor.advance(),o===92?this._cursor.advance():o===s?s=null:!i&&s===null&&vt(o)&&(s=o);}n.push(this._getProcessedChars(a,this._cursor)),this._endToken(n);}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return !!(this._isTagStart()||this._cursor.peek()===0||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===125&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._cursor.peek()===64||this._cursor.peek()===125))}_isTagStart(){if(this._cursor.peek()===60){let e=this._cursor.clone();e.advance();let t=e.peek();if(97<=t&&t<=122||65<=t&&t<=90||t===47||t===33)return  true}return  false}_isBlockStart(){if(this._tokenizeBlocks&&this._cursor.peek()===64){let e=this._cursor.clone();if(e.advance(),Xr(e.peek()))return  true}return  false}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===22}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===20}isExpansionFormStart(){if(this._cursor.peek()!==123)return  false;if(this._interpolationConfig){let e=this._cursor.clone(),t=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!t}return  true}_handleFullNameStackForTagOpen(e,t){let r=Oe(e,t);(this._fullNameStack.length===0||this._fullNameStack[this._fullNameStack.length-1]===r)&&this._fullNameStack.push(r);}_handleFullNameStackForTagClose(e,t){let r=Oe(e,t);this._fullNameStack.length!==0&&this._fullNameStack[this._fullNameStack.length-1]===r&&this._fullNameStack.pop();}};function b(e){return !Pe(e)||e===0}function Gr(e){return Pe(e)||e===62||e===60||e===47||e===39||e===34||e===61||e===0}function Bi(e){return (e<97||122<e)&&(e<65||90<e)&&(e<48||e>57)}function Li(e){return e===59||e===0||!Is(e)}function Fi(e){return e===59||e===0||!He(e)}function qi(e){return e!==125}function Ni(e,t){return Kr(e)===Kr(t)}function Kr(e){return e>=97&&e<=122?e-97+65:e}function Xr(e){return He(e)||gt(e)||e===95}function Yr(e){return e!==59&&b(e)}function Ii(e){let t=[],r;for(let n=0;n<e.length;n++){let a=e[n];r&&r.type===5&&a.type===5||r&&r.type===16&&a.type===16?(r.parts[0]+=a.parts[0],r.sourceSpan.end=a.sourceSpan.end):(r=a,t.push(r));}return t}var Jr=class Tt{constructor(t,r){if(t instanceof Tt){this.file=t.file,this.input=t.input,this.end=t.end;let n=t.state;this.state={peek:n.peek,offset:n.offset,line:n.line,column:n.column};}else {if(!r)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=t,this.input=t.content,this.end=r.endPos,this.state={peek:-1,offset:r.startPos,line:r.startLine,column:r.startCol};}}clone(){return new Tt(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(t){return this.state.offset-t.state.offset}advance(){this.advanceState(this.state);}init(){this.updatePeek(this.state);}getSpan(t,r){t=t||this;let n=t;if(r)for(;this.diff(t)>0&&r.indexOf(t.peek())!==-1;)n===t&&(t=t.clone()),t.advance();let a=this.locationFromCursor(t),s=this.locationFromCursor(this),i=n!==t?this.locationFromCursor(n):a;return new d(a,s,i)}getChars(t){return this.input.substring(t.state.offset,this.state.offset)}charAt(t){return this.input.charCodeAt(t)}advanceState(t){if(t.offset>=this.end)throw this.state=t,new _t('Unexpected character "EOF"',this);let r=this.charAt(t.offset);r===10?(t.line++,t.column=0):ft(r)||t.column++,t.offset++,this.updatePeek(t);}updatePeek(t){t.peek=t.offset>=this.end?0:this.charAt(t.offset);}locationFromCursor(t){return new Ct(t.file,t.state.offset,t.state.line,t.state.column)}},Pi=class Bt extends Jr{constructor(t,r){t instanceof Bt?(super(t),this.internalState={...t.internalState}):(super(t,r),this.internalState=this.state);}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence();}init(){super.init(),this.processEscapeSequence();}clone(){return new Bt(this)}getChars(t){let r=t.clone(),n="";for(;r.internalState.offset<this.internalState.offset;)n+=String.fromCodePoint(r.peek()),r.advance();return n}processEscapeSequence(){let t=()=>this.internalState.peek;if(t()===92)if(this.internalState={...this.state},this.advanceState(this.internalState),t()===110)this.state.peek=10;else if(t()===114)this.state.peek=13;else if(t()===118)this.state.peek=11;else if(t()===116)this.state.peek=9;else if(t()===98)this.state.peek=8;else if(t()===102)this.state.peek=12;else if(t()===117)if(this.advanceState(this.internalState),t()===123){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;t()!==125;)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n);}else {let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4);}else if(t()===120){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2);}else if(kr(t())){let r="",n=0,a=this.clone();for(;kr(t())&&n<3;)a=this.clone(),r+=String.fromCodePoint(t()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=a.internalState;}else ft(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek;}decodeHexDigits(t,r){let n=this.input.slice(t.internalState.offset,t.internalState.offset+r),a=parseInt(n,16);if(isNaN(a))throw t.state=t.internalState,new _t("Invalid hexadecimal escape sequence",t);return a}},_t=class{constructor(e,t){this.msg=e,this.cursor=t;}},B=class hn extends xr{static create(t,r,n){return new hn(t,r,n)}constructor(t,r,n){super(r,n),this.elementName=t;}},Hi=class{constructor(e,t){this.rootNodes=e,this.errors=t;}},Mi=class{constructor(e){this.getTagDefinition=e;}parse(e,t,r,n=false,a){let s=m=>(C,...A)=>m(C.toLowerCase(),...A),i=n?this.getTagDefinition:s(this.getTagDefinition),u=m=>i(m).getContentType(),o=n?a:s(a),p=Ei(e,t,a?(m,C,A,E)=>{let D=o(m,C,A,E);return D!==void 0?D:u(m)}:u,r),l=r&&r.canSelfClose||false,f=r&&r.allowHtmComponentClosingTags||false,v=new Ri(p.tokens,i,l,f,n);return v.build(),new Hi(v.rootNodes,p.errors.concat(v.errors))}},Ri=class dn{constructor(t,r,n,a,s){this.tokens=t,this.getTagDefinition=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=a,this.isTagNameCaseSensitive=s,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance();}build(){for(;this._peek.type!==34;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?(this._closeVoidElement(),this._consumeEndTag(this._advance())):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===20?this._consumeExpansion(this._advance()):this._peek.type===25?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===27?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===30?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===18?this._consumeDocType(this._advance()):this._peek.type===33?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let t of this._containerStack)t instanceof ae&&this.errors.push(B.create(t.name,t.sourceSpan,`Unclosed block "${t.name}"`));}_advance(){let t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t}_advanceIf(t){return this._peek.type===t?this._advance():null}_consumeCdata(t){let r=this._advance(),n=this._getText(r),a=this._advanceIf(13);this._addToParent(new mi(n,new d(t.sourceSpan.start,(a||r).sourceSpan.end),[r]));}_consumeComment(t){let r=this._advanceIf(7),n=this._advanceIf(11),a=r!=null?r.parts[0].trim():null,s=n==null?t.sourceSpan:new d(t.sourceSpan.start,n.sourceSpan.end,t.sourceSpan.fullStart);this._addToParent(new Ci(a,s));}_consumeDocType(t){let r=this._advanceIf(7),n=this._advanceIf(19),a=r!=null?r.parts[0].trim():null,s=new d(t.sourceSpan.start,(n||r||t).sourceSpan.end);this._addToParent(new Si(a,s));}_consumeExpansion(t){let r=this._advance(),n=this._advance(),a=[];for(;this._peek.type===21;){let i=this._parseExpansionCase();if(!i)return;a.push(i);}if(this._peek.type!==24){this.errors.push(B.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));return}let s=new d(t.sourceSpan.start,this._peek.sourceSpan.end,t.sourceSpan.fullStart);this._addToParent(new gi(r.parts[0],n.parts[0],a,s,r.sourceSpan)),this._advance();}_parseExpansionCase(){let t=this._advance();if(this._peek.type!==22)return this.errors.push(B.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;let r=this._advance(),n=this._collectExpansionExpTokens(r);if(!n)return null;let a=this._advance();n.push({type:34,parts:[],sourceSpan:a.sourceSpan});let s=new dn(n,this.getTagDefinition,this.canSelfClose,this.allowHtmComponentClosingTags,this.isTagNameCaseSensitive);if(s.build(),s.errors.length>0)return this.errors=this.errors.concat(s.errors),null;let i=new d(t.sourceSpan.start,a.sourceSpan.end,t.sourceSpan.fullStart),u=new d(r.sourceSpan.start,a.sourceSpan.end,r.sourceSpan.fullStart);return new fi(t.parts[0],s.rootNodes,i,t.sourceSpan,u)}_collectExpansionExpTokens(t){let r=[],n=[22];for(;;){if((this._peek.type===20||this._peek.type===22)&&n.push(this._peek.type),this._peek.type===23)if(Qr(n,22)){if(n.pop(),n.length===0)return r}else return this.errors.push(B.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===24)if(Qr(n,20))n.pop();else return this.errors.push(B.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===34)return this.errors.push(B.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance());}}_getText(t){let r=t.parts[0];if(r.length>0&&r[0]==`
`){let n=this._getClosestParentElement();n!=null&&n.children.length==0&&this.getTagDefinition(n.name).ignoreFirstLf&&(r=r.substring(1));}return r}_consumeText(t){let r=[t],n=t.sourceSpan,a=t.parts[0];if(a.length>0&&a[0]===`
`){let s=this._getContainer();s!=null&&s.children.length===0&&this.getTagDefinition(s.name).ignoreFirstLf&&(a=a.substring(1),r[0]={type:t.type,sourceSpan:t.sourceSpan,parts:[a]});}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)t=this._advance(),r.push(t),t.type===8?a+=t.parts.join("").replace(/&([^;]+);/g,Zr):t.type===9?a+=t.parts[0]:a+=t.parts.join("");if(a.length>0){let s=t.sourceSpan;this._addToParent(new di(a,new d(n.start,s.end,n.fullStart,n.details),r));}}_closeVoidElement(){let t=this._getContainer();t instanceof G&&this.getTagDefinition(t.name).isVoid&&this._containerStack.pop();}_consumeStartTag(t){let[r,n]=t.parts,a=[];for(;this._peek.type===14;)a.push(this._consumeAttr(this._advance()));let s=this._getElementFullName(r,n,this._getClosestParentElement()),i=false;if(this._peek.type===2){this._advance(),i=true;let m=this.getTagDefinition(s);this.canSelfClose||m.canSelfClose||Ue(s)!==null||m.isVoid||this.errors.push(B.create(s,t.sourceSpan,`Only void, custom and foreign elements can be self closed "${t.parts[1]}"`));}else this._peek.type===1&&(this._advance(),i=false);let u=this._peek.sourceSpan.fullStart,o=new d(t.sourceSpan.start,u,t.sourceSpan.fullStart),p=new d(t.sourceSpan.start,u,t.sourceSpan.fullStart),l=new d(t.sourceSpan.start.moveBy(1),t.sourceSpan.end),f=new G(s,a,[],o,p,void 0,l),v=this._getContainer();this._pushContainer(f,v instanceof G&&this.getTagDefinition(v.name).isClosedByChild(f.name)),i?this._popContainer(s,G,o):t.type===4&&(this._popContainer(s,G,null),this.errors.push(B.create(s,o,`Opening tag "${s}" not terminated.`)));}_pushContainer(t,r){r&&this._containerStack.pop(),this._addToParent(t),this._containerStack.push(t);}_consumeEndTag(t){let r=this.allowHtmComponentClosingTags&&t.parts.length===0?null:this._getElementFullName(t.parts[0],t.parts[1],this._getClosestParentElement());if(r&&this.getTagDefinition(r).isVoid)this.errors.push(B.create(r,t.sourceSpan,`Void elements do not have end tags "${t.parts[1]}"`));else if(!this._popContainer(r,G,t.sourceSpan)){let n=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(B.create(r,t.sourceSpan,n));}}_popContainer(t,r,n){let a=false;for(let s=this._containerStack.length-1;s>=0;s--){let i=this._containerStack[s];if(Ue(i.name)?i.name===t:(t==null||i.name.toLowerCase()===t.toLowerCase())&&i instanceof r)return i.endSourceSpan=n,i.sourceSpan.end=n!==null?n.end:i.sourceSpan.end,this._containerStack.splice(s,this._containerStack.length-s),!a;(i instanceof ae||i instanceof G&&!this.getTagDefinition(i.name).closedByParent)&&(a=true);}return  false}_consumeAttr(t){let r=Oe(t.parts[0],t.parts[1]),n=t.sourceSpan.end,a;this._peek.type===15&&(a=this._advance());let s="",i=[],u,o;if(this._peek.type===16)for(u=this._peek.sourceSpan,o=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let l=this._advance();i.push(l),l.type===17?s+=l.parts.join("").replace(/&([^;]+);/g,Zr):l.type===9?s+=l.parts[0]:s+=l.parts.join(""),o=n=l.sourceSpan.end;}this._peek.type===15&&(o=n=this._advance().sourceSpan.end);let p=u&&o&&new d((a==null?void 0:a.sourceSpan.start)??u.start,o,(a==null?void 0:a.sourceSpan.fullStart)??u.fullStart);return new vi(r,s,new d(t.sourceSpan.start,n,t.sourceSpan.fullStart),t.sourceSpan,p,i.length>0?i:void 0,void 0)}_consumeBlockOpen(t){let r=[];for(;this._peek.type===28;){let u=this._advance();r.push(new Vr(u.parts[0],u.sourceSpan));}this._peek.type===26&&this._advance();let n=this._peek.sourceSpan.fullStart,a=new d(t.sourceSpan.start,n,t.sourceSpan.fullStart),s=new d(t.sourceSpan.start,n,t.sourceSpan.fullStart),i=new ae(t.parts[0],r,[],a,t.sourceSpan,s);this._pushContainer(i,false);}_consumeBlockClose(t){this._popContainer(null,ae,t.sourceSpan)||this.errors.push(B.create(null,t.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "&#125;" HTML entity instead.'));}_consumeIncompleteBlock(t){let r=[];for(;this._peek.type===28;){let u=this._advance();r.push(new Vr(u.parts[0],u.sourceSpan));}let n=this._peek.sourceSpan.fullStart,a=new d(t.sourceSpan.start,n,t.sourceSpan.fullStart),s=new d(t.sourceSpan.start,n,t.sourceSpan.fullStart),i=new ae(t.parts[0],r,[],a,t.sourceSpan,s);this._pushContainer(i,false),this._popContainer(null,ae,null),this.errors.push(B.create(t.parts[0],a,`Incomplete block "${t.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`));}_consumeLet(t){let r=t.parts[0],n,a;if(this._peek.type!==31){this.errors.push(B.create(t.parts[0],t.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==32){this.errors.push(B.create(t.parts[0],t.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else a=this._advance();let s=a.sourceSpan.fullStart,i=new d(t.sourceSpan.start,s,t.sourceSpan.fullStart),u=t.sourceSpan.toString().lastIndexOf(r),o=t.sourceSpan.start.moveBy(u),p=new d(o,t.sourceSpan.end),l=new zr(r,n.parts[0],i,p,n.sourceSpan);this._addToParent(l);}_consumeIncompleteLet(t){let r=t.parts[0]??"",n=r?` "${r}"`:"";if(r.length>0){let a=t.sourceSpan.toString().lastIndexOf(r),s=t.sourceSpan.start.moveBy(a),i=new d(s,t.sourceSpan.end),u=new d(t.sourceSpan.start,t.sourceSpan.start.moveBy(0)),o=new zr(r,"",t.sourceSpan,i,u);this._addToParent(o);}this.errors.push(B.create(t.parts[0],t.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let <name> = <value>;\``));}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let t=this._containerStack.length-1;t>-1;t--)if(this._containerStack[t]instanceof G)return this._containerStack[t];return null}_addToParent(t){let r=this._getContainer();r===null?this.rootNodes.push(t):r.children.push(t);}_getElementFullName(t,r,n){if(t===""&&(t=this.getTagDefinition(r).implicitNamespacePrefix||"",t===""&&n!=null)){let a=Re(n.name)[1];this.getTagDefinition(a).preventNamespaceInheritance||(t=Ue(n.name));}return Oe(t,r)}};function Qr(e,t){return e.length>0&&e[e.length-1]===t}function Zr(e,t){return We[t]!==void 0?We[t]||e:/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e}var Ui=class extends Mi{constructor(){super(St);}parse(e,t,r,n=false,a){return super.parse(e,t,r,n,a)}},wt=null,Oi=()=>(wt||(wt=new Ui),wt);function en(e,t={}){let{canSelfClose:r=false,allowHtmComponentClosingTags:n=false,isTagNameCaseSensitive:a=false,getTagContentType:s,tokenizeAngularBlocks:i=false,tokenizeAngularLetDeclaration:u=false}=t;return Oi().parse(e,"angular-html-parser",{tokenizeExpansionForms:i,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:i,tokenizeLet:u},a,s)}function Vi(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var zi=Vi,je=3;function Wi(e){let t=e.slice(0,je);if(t!=="---"&&t!=="+++")return;let r=e.indexOf(`
`,je);if(r===-1)return;let n=e.slice(je,r).trim(),a=e.indexOf(`
${t}`,r),s=n;if(s||(s=t==="+++"?"toml":"yaml"),a===-1&&t==="---"&&s==="yaml"&&(a=e.indexOf(`
...`,r)),a===-1)return;let i=a+1+je,u=e.charAt(i+1);if(!/\s?/u.test(u))return;let o=e.slice(0,i);return {type:"front-matter",language:s,explicitLanguage:n,value:e.slice(r+1,a),startDelimiter:t,endDelimiter:o.slice(-3),raw:o}}function $i(e){let t=Wi(e);if(!t)return {content:e};let{raw:r}=t;return {frontMatter:t,content:F(false,r,/[^\n]/gu," ")+e.slice(r.length)}}var ji=$i,Ge={attrs:true,children:true,cases:true,expression:true},tn=new Set(["parent"]),ie,At,kt,Gi=class Ae{constructor(t={}){It(this,ie),qt(this,"type"),qt(this,"parent");for(let r of new Set([...tn,...Object.keys(t)]))this.setProperty(r,t[r]);}setProperty(t,r){if(this[t]!==r){if(t in Ge&&(r=r.map(n=>this.createChild(n))),!tn.has(t)){this[t]=r;return}Object.defineProperty(this,t,{value:r,enumerable:false,configurable:true});}}map(t){let r;for(let n in Ge){let a=this[n];if(a){let s=Xi(a,i=>i.map(t));r!==a&&(r||(r=new Ae({parent:this.parent})),r.setProperty(n,s));}}if(r)for(let n in this)n in Ge||(r[n]=this[n]);return t(r||this)}walk(t){for(let r in Ge){let n=this[r];if(n)for(let a=0;a<n.length;a++)n[a].walk(t);}t(this);}createChild(t){let r=t instanceof Ae?t.clone():new Ae(t);return r.setProperty("parent",this),r}insertChildBefore(t,r){let n=this.$children;n.splice(n.indexOf(t),0,this.createChild(r));}removeChild(t){let r=this.$children;r.splice(r.indexOf(t),1);}replaceChild(t,r){let n=this.$children;n[n.indexOf(t)]=this.createChild(r);}clone(){return new Ae(this)}get $children(){return this[q(this,ie,At)]}set $children(t){this[q(this,ie,At)]=t;}get firstChild(){var t;return (t=this.$children)==null?void 0:t[0]}get lastChild(){return le(true,this.$children,-1)}get prev(){let t=q(this,ie,kt);return t[t.indexOf(this)-1]}get next(){let t=q(this,ie,kt);return t[t.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(t=>[t.fullName,t.value]))}};ie=new WeakSet,At=function(){return this.type==="angularIcuCase"?"expression":this.type==="angularIcuExpression"?"cases":"children"},kt=function(){var e;return ((e=this.parent)==null?void 0:e.$children)??[]};var Ki=Gi;function Xi(e,t){let r=e.map(t);return r.some((n,a)=>n!==e[a])?r:e}var Yi=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:Qi},{regex:/^\[if([^\]]*)\]><!$/u,parse:Zi},{regex:/^<!\s*\[endif\]$/u,parse:eu}];function Ji(e,t){if(e.value)for(let{regex:r,parse:n}of Yi){let a=e.value.match(r);if(a)return n(e,t,a)}return null}function Qi(e,t,r){let[,n,a,s]=r,i=4+n.length,u=e.sourceSpan.start.moveBy(i),o=u.moveBy(s.length),[p,l]=(()=>{try{return [!0,t(s,u).children]}catch{return [false,[{type:"text",value:s,sourceSpan:new d(u,o)}]]}})();return {type:"ieConditionalComment",complete:p,children:l,condition:F(false,a.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan,startSourceSpan:new d(e.sourceSpan.start,u),endSourceSpan:new d(o,e.sourceSpan.end)}}function Zi(e,t,r){let[,n]=r;return {type:"ieConditionalStartComment",condition:F(false,n.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan}}function eu(e){return {type:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}var Et=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],["frame",new Set(["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"])],["frameset",new Set(["cols","rows"])],["h1",new Set(["align"])],["h2",new Set(["align"])],["h3",new Set(["align"])],["h4",new Set(["align"])],["h5",new Set(["align"])],["h6",new Set(["align"])],["head",new Set(["profile"])],["hr",new Set(["align","noshade","size","width"])],["html",new Set(["manifest","version"])],["iframe",new Set(["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"])],["img",new Set(["align","alt","border","crossorigin","decoding","fetchpriority","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"])],["input",new Set(["accept","align","alt","autocomplete","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","usemap","value","width"])],["ins",new Set(["cite","datetime"])],["isindex",new Set(["prompt"])],["label",new Set(["for","form"])],["legend",new Set(["align"])],["li",new Set(["type","value"])],["link",new Set(["as","blocking","charset","color","crossorigin","disabled","fetchpriority","href","hreflang","imagesizes","imagesrcset","integrity","media","referrerpolicy","rel","rev","sizes","target","type"])],["map",new Set(["name"])],["menu",new Set(["compact"])],["meta",new Set(["charset","content","http-equiv","media","name","scheme"])],["meter",new Set(["high","low","max","min","optimum","value"])],["object",new Set(["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","type","typemustmatch","usemap","vspace","width"])],["ol",new Set(["compact","reversed","start","type"])],["optgroup",new Set(["disabled","label"])],["option",new Set(["disabled","label","selected","value"])],["output",new Set(["for","form","name"])],["p",new Set(["align"])],["param",new Set(["name","type","value","valuetype"])],["pre",new Set(["width"])],["progress",new Set(["max","value"])],["q",new Set(["cite"])],["script",new Set(["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","language","nomodule","referrerpolicy","src","type"])],["select",new Set(["autocomplete","disabled","form","multiple","name","required","size"])],["slot",new Set(["name"])],["source",new Set(["height","media","sizes","src","srcset","type","width"])],["style",new Set(["blocking","media","type"])],["table",new Set(["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"])],["tbody",new Set(["align","char","charoff","valign"])],["td",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["template",new Set(["shadowrootclonable","shadowrootdelegatesfocus","shadowrootmode"])],["textarea",new Set(["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","wrap"])],["tfoot",new Set(["align","char","charoff","valign"])],["th",new Set(["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"])],["thead",new Set(["align","char","charoff","valign"])],["time",new Set(["datetime"])],["tr",new Set(["align","bgcolor","char","charoff","valign"])],["track",new Set(["default","kind","label","src","srclang"])],["ul",new Set(["compact","type"])],["video",new Set(["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"])]]),tu=new Set(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]);function ru(e){if(e.type==="block"){if(e.name=F(false,e.name.toLowerCase(),/\s+/gu," ").trim(),e.type="angularControlFlowBlock",!ot(e.parameters)){delete e.parameters;return}for(let t of e.parameters)t.type="angularControlFlowBlockParameter";e.parameters={type:"angularControlFlowBlockParameters",children:e.parameters,sourceSpan:new d(e.parameters[0].sourceSpan.start,le(false,e.parameters,-1).sourceSpan.end)};}}function nu(e){e.type==="letDeclaration"&&(e.type="angularLetDeclaration",e.id=e.name,e.init={type:"angularLetDeclarationInitializer",sourceSpan:new d(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value);}function au(e){(e.type==="plural"||e.type==="select")&&(e.clause=e.type,e.type="angularIcuExpression"),e.type==="expansionCase"&&(e.type="angularIcuCase");}function rn(e,t,r){let{name:n,canSelfClose:a=true,normalizeTagName:s=false,normalizeAttributeName:i=false,allowHtmComponentClosingTags:u=false,isTagNameCaseSensitive:o=false,shouldParseAsRawText:p}=t,{rootNodes:l,errors:f}=en(e,{canSelfClose:a,allowHtmComponentClosingTags:u,isTagNameCaseSensitive:o,getTagContentType:p?(...c)=>p(...c)?U.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:n==="angular"?true:void 0,tokenizeAngularLetDeclaration:n==="angular"?true:void 0});if(n==="vue"){if(l.some(_=>_.type==="docType"&&_.value==="html"||_.type==="element"&&_.name.toLowerCase()==="html"))return rn(e,sn,r);let c,g=()=>c??(c=en(e,{canSelfClose:a,allowHtmComponentClosingTags:u,isTagNameCaseSensitive:o})),k=_=>g().rootNodes.find(({startSourceSpan:L})=>L&&L.start.offset===_.startSourceSpan.start.offset)??_;for(let[_,L]of l.entries()){let{endSourceSpan:ue,startSourceSpan:pu}=L;if(ue===null)f=g().errors,l[_]=k(L);else if(su(L,r)){let un=g().errors.find(on=>on.span.start.offset>pu.start.offset&&on.span.start.offset<ue.end.offset);un&&nn(un),l[_]=k(L);}}}f.length>0&&nn(f[0]);let v=c=>{let g=c.name.startsWith(":")?c.name.slice(1).split(":")[0]:null,k=c.nameSpan.toString(),_=g!==null&&k.startsWith(`${g}:`),L=_?k.slice(g.length+1):k;c.name=L,c.namespace=g,c.hasExplicitNamespace=_;},m=c=>{switch(c.type){case "element":v(c);for(let g of c.attrs)v(g),g.valueSpan?(g.value=g.valueSpan.toString(),/["']/u.test(g.value[0])&&(g.value=g.value.slice(1,-1))):g.value=null;break;case "comment":c.value=c.sourceSpan.toString().slice(4,-3);break;case "text":c.value=c.sourceSpan.toString();break}},C=(c,g)=>{let k=c.toLowerCase();return g(k)?k:c},A=c=>{if(c.type==="element"&&(s&&(!c.namespace||c.namespace===c.tagDefinition.implicitNamespacePrefix||pe(c))&&(c.name=C(c.name,g=>tu.has(g))),i))for(let g of c.attrs)g.namespace||(g.name=C(g.name,k=>Et.has(c.name)&&(Et.get("*").has(k)||Et.get(c.name).has(k))));},E=c=>{c.sourceSpan&&c.endSourceSpan&&(c.sourceSpan=new d(c.sourceSpan.start,c.endSourceSpan.end));},D=c=>{if(c.type==="element"){let g=St(o?c.name:c.name.toLowerCase());!c.namespace||c.namespace===g.implicitNamespacePrefix||pe(c)?c.tagDefinition=g:c.tagDefinition=St("");}};return Wr(new class extends yi{visitExpansionCase(c,g){n==="angular"&&this.visitChildren(g,k=>{k(c.expression);});}visit(c){m(c),D(c),A(c),E(c);}},l),l}function su(e,t){var r;if(e.type!=="element"||e.name!=="template")return  false;let n=(r=e.attrs.find(a=>a.name==="lang"))==null?void 0:r.value;return !n||Te(t,{language:n})==="html"}function nn(e){let{msg:t,span:{start:r,end:n}}=e;throw zi(t,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:e})}function an(e,t,r={},n=true){let{frontMatter:a,content:s}=n?ji(e):{frontMatter:null,content:e},i=new Er(e,r.filepath),u=new Ct(i,0,0,0),o=u.moveBy(e.length),p={type:"root",sourceSpan:new d(u,o),children:rn(s,t,r)};if(a){let v=new Ct(i,0,0,0),m=v.moveBy(a.raw.length);a.sourceSpan=new d(v,m),p.children.unshift(a);}let l=new Ki(p),f=(v,m)=>{let{offset:C}=m,A=F(false,e.slice(0,C),/[^\n\r]/gu," "),E=an(A+v,t,r,false);E.sourceSpan=new d(m,le(false,E.children,-1).sourceSpan.end);let D=E.children[0];return D.length===C?E.children.shift():(D.sourceSpan=new d(D.sourceSpan.start.moveBy(C),D.sourceSpan.end),D.value=D.value.slice(C)),E};return l.walk(v=>{if(v.type==="comment"){let m=Ji(v,f);m&&v.parent.replaceChild(v,m);}ru(v),nu(v),au(v);}),l}function Ke(e){return {parse:(t,r)=>an(t,e,r),hasPragma:Es,astFormat:"html",locStart:de,locEnd:me}}var sn={name:"html",normalizeTagName:true,normalizeAttributeName:true,allowHtmComponentClosingTags:true},iu=Ke(sn),uu=Ke({name:"angular"}),ou=Ke({name:"vue",isTagNameCaseSensitive:true,shouldParseAsRawText(e,t,r,n){return e.toLowerCase()!=="html"&&!r&&(e!=="template"||n.some(({name:a,value:s})=>a==="lang"&&s!=="html"&&s!==""&&s!==void 0))}}),lu=Ke({name:"lwc",canSelfClose:false}),cu={html:ei};return vn(Pt)});}(Dt)),Dt.exports}var mn=fu();const vu=gte(mn),yu=exports("h", gu({__proto__:null,default:vu},[mn]));

		})
	};
}));

System.register("./index-CdOzjjIA-SHR6veo_.js", ['./__monkey.entry-BeB6vm3i.js'], (function (exports, module) {
	'use strict';
	var Tte, hg, ue$1, Uj, rV, wte, Ete, Fte, Ste, Wj, qj, ln, xte, Ate, DW, J, Lj, wj, pw, Xn, vj, Dte, $t, w$1, je, zt;
	return {
		setters: [module => {
			Tte = module.T;
			hg = module.h;
			ue$1 = module.u;
			Uj = module.U;
			rV = module.r;
			wte = module.w;
			Ete = module.E;
			Fte = module.F;
			Ste = module.S;
			Wj = module.W;
			qj = module.q;
			ln = module.l;
			xte = module.x;
			Ate = module.c;
			DW = module.d;
			J = module.J;
			Lj = module.L;
			wj = module.e;
			pw = module.p;
			Xn = module.X;
			vj = module.v;
			Dte = module.D;
			$t = module.$;
			w$1 = module.a;
			je = module.j;
			zt = module.z;
		}],
		execute: (function () {

			exports("d", ge);

			var U={};class Y{constructor(O,e,t,a,r,i,Q,n,l,h=0,$){this.p=O,this.stack=e,this.state=t,this.reducePos=a,this.pos=r,this.score=i,this.buffer=Q,this.bufferBase=n,this.curContext=l,this.lookAhead=h,this.parent=$;}toString(){return `[${this.stack.filter((O,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(O,e,t=0){let a=O.parser.context;return new Y(O,[],e,t,t,0,[],0,a?new W(a,a.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(O,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=O;}reduce(O){var e;let t=O>>19,a=O&65535,{parser:r}=this.p,i=this.reducePos<this.pos-25;i&&this.setLookAhead(this.pos);let Q=r.dynamicPrecedence(a);if(Q&&(this.score+=Q),t==0){this.pushState(r.getGoto(this.state,a,true),this.reducePos),a<r.minRepeatTerm&&this.storeNode(a,this.reducePos,this.reducePos,i?8:4,true),this.reduceContext(a,this.reducePos);return}let n=this.stack.length-(t-1)*3-(O&262144?6:0),l=n?this.stack[n-2]:this.p.ranges[0].from,h=this.reducePos-l;h>=2e3&&!(!((e=this.p.parser.nodeSet.types[a])===null||e===void 0)&&e.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=h):this.p.lastBigReductionSize<h&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=h));let $=n?this.stack[n-1]:0,p=this.bufferBase+this.buffer.length-$;if(a<r.minRepeatTerm||O&131072){let c=r.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(a,l,c,p+4,true);}if(O&262144)this.state=this.stack[n];else {let c=this.stack[n-3];this.state=r.getGoto(c,a,true);}for(;this.stack.length>n;)this.stack.pop();this.reduceContext(a,l);}storeNode(O,e,t,a=4,r=false){if(O==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let i=this,Q=this.buffer.length;if(Q==0&&i.parent&&(Q=i.bufferBase-i.parent.bufferBase,i=i.parent),Q>0&&i.buffer[Q-4]==0&&i.buffer[Q-1]>-1){if(e==t)return;if(i.buffer[Q-2]>=e){i.buffer[Q-2]=t;return}}}if(!r||this.pos==t)this.buffer.push(O,e,t,a);else {let i=this.buffer.length;if(i>0&&this.buffer[i-4]!=0){let Q=false;for(let n=i;n>0&&this.buffer[n-2]>t;n-=4)if(this.buffer[n-1]>=0){Q=true;break}if(Q)for(;i>0&&this.buffer[i-2]>t;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,a>4&&(a-=4);}this.buffer[i]=O,this.buffer[i+1]=e,this.buffer[i+2]=t,this.buffer[i+3]=a;}}shift(O,e,t,a){if(O&131072)this.pushState(O&65535,this.pos);else if((O&262144)==0){let r=O,{parser:i}=this.p;(a>this.pos||e<=i.maxNode)&&(this.pos=a,i.stateFlag(r,1)||(this.reducePos=a)),this.pushState(r,t),this.shiftContext(e,t),e<=i.maxNode&&this.buffer.push(e,t,a,4);}else this.pos=a,this.shiftContext(e,t),e<=this.p.parser.maxNode&&this.buffer.push(e,t,a,4);}apply(O,e,t,a){O&65536?this.reduce(O):this.shift(O,e,t,a);}useNode(O,e){let t=this.p.reused.length-1;(t<0||this.p.reused[t]!=O)&&(this.p.reused.push(O),t++);let a=this.pos;this.reducePos=this.pos=a+O.length,this.pushState(e,a),this.buffer.push(t,a,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,O,this,this.p.stream.reset(this.pos-O.length)));}split(){let O=this,e=O.buffer.length;for(;e>0&&O.buffer[e-2]>O.reducePos;)e-=4;let t=O.buffer.slice(e),a=O.bufferBase+e;for(;O&&a==O.bufferBase;)O=O.parent;return new Y(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,t,a,this.curContext,this.lookAhead,O)}recoverByDelete(O,e){let t=O<=this.p.parser.maxNode;t&&this.storeNode(O,this.pos,e,4),this.storeNode(0,this.pos,e,t?8:4),this.pos=this.reducePos=e,this.score-=190;}canShift(O){for(let e=new RO(this);;){let t=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,O);if(t==0)return  false;if((t&65536)==0)return  true;e.reduce(t);}}recoverByInsert(O){if(this.stack.length>=300)return [];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let a=[];for(let r=0,i;r<e.length;r+=2)(i=e[r+1])!=this.state&&this.p.parser.hasAction(i,O)&&a.push(e[r],i);if(this.stack.length<120)for(let r=0;a.length<8&&r<e.length;r+=2){let i=e[r+1];a.some((Q,n)=>n&1&&Q==i)||a.push(e[r],i);}e=a;}let t=[];for(let a=0;a<e.length&&t.length<4;a+=2){let r=e[a+1];if(r==this.state)continue;let i=this.split();i.pushState(r,this.pos),i.storeNode(0,i.pos,i.pos,4,true),i.shiftContext(e[a],this.pos),i.reducePos=this.pos,i.score-=200,t.push(i);}return t}forceReduce(){let{parser:O}=this.p,e=O.stateSlot(this.state,5);if((e&65536)==0)return  false;if(!O.validAction(this.state,e)){let t=e>>19,a=e&65535,r=this.stack.length-t*3;if(r<0||O.getGoto(this.stack[r],a,false)<0){let i=this.findForcedReduction();if(i==null)return  false;e=i;}this.storeNode(0,this.pos,this.pos,4,true),this.score-=100;}return this.reducePos=this.pos,this.reduce(e),true}findForcedReduction(){let{parser:O}=this.p,e=[],t=(a,r)=>{if(!e.includes(a))return e.push(a),O.allActions(a,i=>{if(!(i&393216))if(i&65536){let Q=(i>>19)-r;if(Q>1){let n=i&65535,l=this.stack.length-Q*3;if(l>=0&&O.getGoto(this.stack[l],n,false)>=0)return Q<<19|65536|n}}else {let Q=t(i,r+1);if(Q!=null)return Q}})};return t(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,true);break}return this}get deadEnd(){if(this.stack.length!=3)return  false;let{parser:O}=this.p;return O.data[O.stateSlot(this.state,1)]==65535&&!O.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,true),this.state=this.stack[0],this.stack.length=0;}sameState(O){if(this.state!=O.state||this.stack.length!=O.stack.length)return  false;for(let e=0;e<this.stack.length;e+=3)if(this.stack[e]!=O.stack[e])return  false;return  true}get parser(){return this.p.parser}dialectEnabled(O){return this.p.parser.dialect.flags[O]}shiftContext(O,e){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,O,this,this.p.stream.reset(e)));}reduceContext(O,e){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,O,this,this.p.stream.reset(e)));}emitContext(){let O=this.buffer.length-1;(O<0||this.buffer[O]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3);}emitLookAhead(){let O=this.buffer.length-1;(O<0||this.buffer[O]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4);}updateContext(O){if(O!=this.curContext.context){let e=new W(this.curContext.tracker,O);e.hash!=this.curContext.hash&&this.emitContext(),this.curContext=e;}}setLookAhead(O){O>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=O);}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead();}}class W{constructor(O,e){this.tracker=O,this.context=e,this.hash=O.strict?O.hash(e):0;}}class RO{constructor(O){this.start=O,this.state=O.state,this.stack=O.stack,this.base=this.stack.length;}reduce(O){let e=O&65535,t=O>>19;t==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(t-1)*3;let a=this.start.p.parser.getGoto(this.stack[this.base-3],e,true);this.state=a;}}class y{constructor(O,e,t){this.stack=O,this.pos=e,this.index=t,this.buffer=O.buffer,this.index==0&&this.maybeNext();}static create(O,e=O.bufferBase+O.buffer.length){return new y(O,e,e-O.bufferBase)}maybeNext(){let O=this.stack.parent;O!=null&&(this.index=this.stack.bufferBase-O.bufferBase,this.stack=O,this.buffer=O.buffer);}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext();}fork(){return new y(this.stack,this.pos,this.index)}}function X(s,O=Uint16Array){if(typeof s!="string")return s;let e=null;for(let t=0,a=0;t<s.length;){let r=0;for(;;){let i=s.charCodeAt(t++),Q=false;if(i==126){r=65535;break}i>=92&&i--,i>=34&&i--;let n=i-32;if(n>=46&&(n-=46,Q=true),r+=n,Q)break;r*=46;}e?e[a++]=r:e=new O(r);}return e}class b{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0;}}const L=new b;class TO{constructor(O,e){this.input=O,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=L,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext();}resolveOffset(O,e){let t=this.range,a=this.rangeIndex,r=this.pos+O;for(;r<t.from;){if(!a)return null;let i=this.ranges[--a];r-=t.from-i.to,t=i;}for(;e<0?r>t.to:r>=t.to;){if(a==this.ranges.length-1)return null;let i=this.ranges[++a];r+=i.from-t.to,t=i;}return r}clipPos(O){if(O>=this.range.from&&O<this.range.to)return O;for(let e of this.ranges)if(e.to>O)return Math.max(O,e.from);return this.end}peek(O){let e=this.chunkOff+O,t,a;if(e>=0&&e<this.chunk.length)t=this.pos+O,a=this.chunk.charCodeAt(e);else {let r=this.resolveOffset(O,1);if(r==null)return  -1;if(t=r,t>=this.chunk2Pos&&t<this.chunk2Pos+this.chunk2.length)a=this.chunk2.charCodeAt(t-this.chunk2Pos);else {let i=this.rangeIndex,Q=this.range;for(;Q.to<=t;)Q=this.ranges[++i];this.chunk2=this.input.chunk(this.chunk2Pos=t),t+this.chunk2.length>Q.to&&(this.chunk2=this.chunk2.slice(0,Q.to-t)),a=this.chunk2.charCodeAt(0);}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),a}acceptToken(O,e=0){let t=e?this.resolveOffset(e,-1):this.pos;if(t==null||t<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=O,this.token.end=t;}acceptTokenTo(O,e){this.token.value=O,this.token.end=e;}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:O,chunkPos:e}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=O,this.chunk2Pos=e,this.chunkOff=this.pos-this.chunkPos;}else {this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let O=this.input.chunk(this.pos),e=this.pos+O.length;this.chunk=e>this.range.to?O.slice(0,this.range.to-this.pos):O,this.chunkPos=this.pos,this.chunkOff=0;}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(O=1){for(this.chunkOff+=O;this.pos+O>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();O-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from;}return this.pos+=O,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(O,e){if(e?(this.token=e,e.start=O,e.lookAhead=O+1,e.value=e.extended=-1):this.token=L,this.pos!=O){if(this.pos=O,O==this.end)return this.setDone(),this;for(;O<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;O>=this.range.to;)this.range=this.ranges[++this.rangeIndex];O>=this.chunkPos&&O<this.chunkPos+this.chunk.length?this.chunkOff=O-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext();}return this}read(O,e){if(O>=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(O-this.chunkPos,e-this.chunkPos);if(O>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(O-this.chunk2Pos,e-this.chunk2Pos);if(O>=this.range.from&&e<=this.range.to)return this.input.read(O,e);let t="";for(let a of this.ranges){if(a.from>=e)break;a.to>O&&(t+=this.input.read(Math.max(a.from,O),Math.min(a.to,e)));}return t}}class g{constructor(O,e){this.data=O,this.id=e;}token(O,e){let{parser:t}=e.p;F(this.data,O,e,this.id,t.data,t.tokenPrecTable);}}g.prototype.contextual=g.prototype.fallback=g.prototype.extend=false;class w{constructor(O,e,t){this.precTable=e,this.elseToken=t,this.data=typeof O=="string"?X(O):O;}token(O,e){let t=O.pos,a=0;for(;;){let r=O.next<0,i=O.resolveOffset(1,1);if(F(this.data,O,e,0,this.data,this.precTable),O.token.value>-1)break;if(this.elseToken==null)return;if(r||a++,i==null)break;O.reset(i,O.token);}a&&(O.reset(t,O.token),O.acceptToken(this.elseToken,a));}} exports("a", w);w.prototype.contextual=g.prototype.fallback=g.prototype.extend=false;class k{constructor(O,e={}){this.token=O,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend;}} exports("E", k);function F(s,O,e,t,a,r){let i=0,Q=1<<t,{dialect:n}=e.p.parser;O:for(;(Q&s[i])!=0;){let l=s[i+1];for(let c=i+3;c<l;c+=2)if((s[c+1]&Q)>0){let f=s[c];if(n.allows(f)&&(O.token.value==-1||O.token.value==f||wO(f,O.token.value,a,r))){O.acceptToken(f);break}}let h=O.next,$=0,p=s[i+2];if(O.next<0&&p>$&&s[l+p*3-3]==65535){i=s[l+p*3-1];continue O}for(;$<p;){let c=$+p>>1,f=l+c+(c<<1),d=s[f],cO=s[f+1]||65536;if(h<d)p=c;else if(h>=cO)$=c+1;else {i=s[f+2],O.advance();continue O}}break}}function M(s,O,e){for(let t=O,a;(a=s[t])!=65535;t++)if(a==e)return t-O;return  -1}function wO(s,O,e,t){let a=M(e,t,O);return a<0||M(e,t,s)<a}const Z=typeof process<"u"&&U&&/\bparse\b/.test(U.LOG);let v=null;function A(s,O,e){let t=s.cursor($t.IncludeAnonymous);for(t.moveTo(O);;)if(!(e<0?t.childBefore(O):t.childAfter(O)))for(;;){if((e<0?t.to<O:t.from>O)&&!t.type.isError)return e<0?Math.max(0,Math.min(t.to-1,O-25)):Math.min(s.length,Math.max(t.from+1,O+25));if(e<0?t.prevSibling():t.nextSibling())break;if(!t.parent())return e<0?0:s.length}}class jO{constructor(O,e){this.fragments=O,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment();}nextFragment(){let O=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(O){for(this.safeFrom=O.openStart?A(O.tree,O.from+O.offset,1)-O.offset:O.from,this.safeTo=O.openEnd?A(O.tree,O.to+O.offset,-1)-O.offset:O.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(O.tree),this.start.push(-O.offset),this.index.push(0),this.nextStart=this.safeFrom;}else this.nextStart=1e9;}nodeAt(O){if(O<this.nextStart)return null;for(;this.fragment&&this.safeTo<=O;)this.nextFragment();if(!this.fragment)return null;for(;;){let e=this.trees.length-1;if(e<0)return this.nextFragment(),null;let t=this.trees[e],a=this.index[e];if(a==t.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let r=t.children[a],i=this.start[e]+t.positions[a];if(i>O)return this.nextStart=i,null;if(r instanceof zt){if(i==O){if(i<this.safeFrom)return null;let Q=i+r.length;if(Q<=this.safeTo){let n=r.prop(je.lookAhead);if(!n||Q+n<this.fragment.to)return r}}this.index[e]++,i+r.length>=Math.max(this.safeFrom,O)&&(this.trees.push(r),this.start.push(i),this.index.push(0));}else this.index[e]++,this.nextStart=i+r.length;}}}class VO{constructor(O,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=O.tokenizers.map(t=>new b);}getActions(O){let e=0,t=null,{parser:a}=O.p,{tokenizers:r}=a,i=a.stateSlot(O.state,3),Q=O.curContext?O.curContext.hash:0,n=0;for(let l=0;l<r.length;l++){if((1<<l&i)==0)continue;let h=r[l],$=this.tokens[l];if(!(t&&!h.fallback)&&((h.contextual||$.start!=O.pos||$.mask!=i||$.context!=Q)&&(this.updateCachedToken($,h,O),$.mask=i,$.context=Q),$.lookAhead>$.end+25&&(n=Math.max($.lookAhead,n)),$.value!=0)){let p=e;if($.extended>-1&&(e=this.addActions(O,$.extended,$.end,e)),e=this.addActions(O,$.value,$.end,e),!h.extend&&(t=$,e>p))break}}for(;this.actions.length>e;)this.actions.pop();return n&&O.setLookAhead(n),!t&&O.pos==this.stream.end&&(t=new b,t.value=O.p.parser.eofTerm,t.start=t.end=O.pos,e=this.addActions(O,t.value,t.end,e)),this.mainToken=t,this.actions}getMainToken(O){if(this.mainToken)return this.mainToken;let e=new b,{pos:t,p:a}=O;return e.start=t,e.end=Math.min(t+1,a.stream.end),e.value=t==a.stream.end?a.parser.eofTerm:0,e}updateCachedToken(O,e,t){let a=this.stream.clipPos(t.pos);if(e.token(this.stream.reset(a,O),t),O.value>-1){let{parser:r}=t.p;for(let i=0;i<r.specialized.length;i++)if(r.specialized[i]==O.value){let Q=r.specializers[i](this.stream.read(O.start,O.end),t);if(Q>=0&&t.p.parser.dialect.allows(Q>>1)){(Q&1)==0?O.value=Q>>1:O.extended=Q>>1;break}}}else O.value=0,O.end=this.stream.clipPos(a+1);}putAction(O,e,t,a){for(let r=0;r<a;r+=3)if(this.actions[r]==O)return a;return this.actions[a++]=O,this.actions[a++]=e,this.actions[a++]=t,a}addActions(O,e,t,a){let{state:r}=O,{parser:i}=O.p,{data:Q}=i;for(let n=0;n<2;n++)for(let l=i.stateSlot(r,n?2:1);;l+=3){if(Q[l]==65535)if(Q[l+1]==1)l=S(Q,l+2);else {a==0&&Q[l+1]==2&&(a=this.putAction(S(Q,l+2),e,t,a));break}Q[l]==e&&(a=this.putAction(S(Q,l+1),e,t,a));}return a}}class GO{constructor(O,e,t,a){this.parser=O,this.input=e,this.ranges=a,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new TO(e,a),this.tokens=new VO(O,this.stream),this.topTerm=O.top[1];let{from:r}=a[0];this.stacks=[Y.start(this,O.top[0],r)],this.fragments=t.length&&this.stream.end-r>O.bufferLength*4?new jO(t,O.nodeSet):null;}get parsedPos(){return this.minStackPos}advance(){let O=this.stacks,e=this.minStackPos,t=this.stacks=[],a,r;if(this.bigReductionCount>300&&O.length==1){let[i]=O;for(;i.forceReduce()&&i.stack.length&&i.stack[i.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0;}for(let i=0;i<O.length;i++){let Q=O[i];for(;;){if(this.tokens.mainToken=null,Q.pos>e)t.push(Q);else {if(this.advanceStack(Q,t,O))continue;{a||(a=[],r=[]),a.push(Q);let n=this.tokens.getMainToken(Q);r.push(n.value,n.end);}}break}}if(!t.length){let i=a&&WO(a);if(i)return Z&&console.log("Finish with "+this.stackID(i)),this.stackToTree(i);if(this.parser.strict)throw Z&&a&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+e);this.recovering||(this.recovering=5);}if(this.recovering&&a){let i=this.stoppedAt!=null&&a[0].pos>this.stoppedAt?a[0]:this.runRecovery(a,r,t);if(i)return Z&&console.log("Force-finish "+this.stackID(i)),this.stackToTree(i.forceAll())}if(this.recovering){let i=this.recovering==1?1:this.recovering*3;if(t.length>i)for(t.sort((Q,n)=>n.score-Q.score);t.length>i;)t.pop();t.some(Q=>Q.reducePos>e)&&this.recovering--;}else if(t.length>1){O:for(let i=0;i<t.length-1;i++){let Q=t[i];for(let n=i+1;n<t.length;n++){let l=t[n];if(Q.sameState(l)||Q.buffer.length>500&&l.buffer.length>500)if((Q.score-l.score||Q.buffer.length-l.buffer.length)>0)t.splice(n--,1);else {t.splice(i--,1);continue O}}}t.length>12&&t.splice(12,t.length-12);}this.minStackPos=t[0].pos;for(let i=1;i<t.length;i++)t[i].pos<this.minStackPos&&(this.minStackPos=t[i].pos);return null}stopAt(O){if(this.stoppedAt!=null&&this.stoppedAt<O)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=O;}advanceStack(O,e,t){let a=O.pos,{parser:r}=this,i=Z?this.stackID(O)+" -> ":"";if(this.stoppedAt!=null&&a>this.stoppedAt)return O.forceReduce()?O:null;if(this.fragments){let l=O.curContext&&O.curContext.tracker.strict,h=l?O.curContext.hash:0;for(let $=this.fragments.nodeAt(a);$;){let p=this.parser.nodeSet.types[$.type.id]==$.type?r.getGoto(O.state,$.type.id):-1;if(p>-1&&$.length&&(!l||($.prop(je.contextHash)||0)==h))return O.useNode($,p),Z&&console.log(i+this.stackID(O)+` (via reuse of ${r.getName($.type.id)})`),true;if(!($ instanceof zt)||$.children.length==0||$.positions[0]>0)break;let c=$.children[0];if(c instanceof zt&&$.positions[0]==0)$=c;else break}}let Q=r.stateSlot(O.state,4);if(Q>0)return O.reduce(Q),Z&&console.log(i+this.stackID(O)+` (via always-reduce ${r.getName(Q&65535)})`),true;if(O.stack.length>=8400)for(;O.stack.length>6e3&&O.forceReduce(););let n=this.tokens.getActions(O);for(let l=0;l<n.length;){let h=n[l++],$=n[l++],p=n[l++],c=l==n.length||!t,f=c?O:O.split(),d=this.tokens.mainToken;if(f.apply(h,$,d?d.start:f.pos,p),Z&&console.log(i+this.stackID(f)+` (via ${(h&65536)==0?"shift":`reduce of ${r.getName(h&65535)}`} for ${r.getName($)} @ ${a}${f==O?"":", split"})`),c)return  true;f.pos>a?e.push(f):t.push(f);}return  false}advanceFully(O,e){let t=O.pos;for(;;){if(!this.advanceStack(O,null,null))return  false;if(O.pos>t)return E(O,e),true}}runRecovery(O,e,t){let a=null,r=false;for(let i=0;i<O.length;i++){let Q=O[i],n=e[i<<1],l=e[(i<<1)+1],h=Z?this.stackID(Q)+" -> ":"";if(Q.deadEnd&&(r||(r=true,Q.restart(),Z&&console.log(h+this.stackID(Q)+" (restarted)"),this.advanceFully(Q,t))))continue;let $=Q.split(),p=h;for(let c=0;$.forceReduce()&&c<10&&(Z&&console.log(p+this.stackID($)+" (via force-reduce)"),!this.advanceFully($,t));c++)Z&&(p=this.stackID($)+" -> ");for(let c of Q.recoverByInsert(n))Z&&console.log(h+this.stackID(c)+" (via recover-insert)"),this.advanceFully(c,t);this.stream.end>Q.pos?(l==Q.pos&&(l++,n=0),Q.recoverByDelete(n,l),Z&&console.log(h+this.stackID(Q)+` (via recover-delete ${this.parser.getName(n)})`),E(Q,t)):(!a||a.score<Q.score)&&(a=Q);}return a}stackToTree(O){return O.close(),zt.build({buffer:y.create(O),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:O.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(O){let e=(v||(v=new WeakMap)).get(O);return e||v.set(O,e=String.fromCodePoint(this.nextStackID++)),e+O}}function E(s,O){for(let e=0;e<O.length;e++){let t=O[e];if(t.pos==s.pos&&t.sameState(s)){O[e].score<s.score&&(O[e]=s);return}}O.push(s);}class zO{constructor(O,e,t){this.source=O,this.flags=e,this.disabled=t;}allows(O){return !this.disabled||this.disabled[O]==0}}const R=s=>s;class UO{constructor(O){this.start=O.start,this.shift=O.shift||R,this.reduce=O.reduce||R,this.reuse=O.reuse||R,this.hash=O.hash||(()=>0),this.strict=O.strict!==false;}} exports("C", UO);class q extends wj{constructor(O){if(super(),this.wrappers=[],O.version!=14)throw new RangeError(`Parser version (${O.version}) doesn't match runtime version (14)`);let e=O.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let Q=0;Q<O.repeatNodeCount;Q++)e.push("");let t=Object.keys(O.topRules).map(Q=>O.topRules[Q][1]),a=[];for(let Q=0;Q<e.length;Q++)a.push([]);function r(Q,n,l){a[Q].push([n,n.deserialize(String(l))]);}if(O.nodeProps)for(let Q of O.nodeProps){let n=Q[0];typeof n=="string"&&(n=je[n]);for(let l=1;l<Q.length;){let h=Q[l++];if(h>=0)r(h,n,Q[l++]);else {let $=Q[l+-h];for(let p=-h;p>0;p--)r(Q[l++],n,$);l++;}}}this.nodeSet=new pw(e.map((Q,n)=>Xn.define({name:n>=this.minRepeatTerm?void 0:Q,id:n,props:a[n],top:t.indexOf(n)>-1,error:n==0,skipped:O.skippedNodes&&O.skippedNodes.indexOf(n)>-1}))),O.propSources&&(this.nodeSet=this.nodeSet.extend(...O.propSources)),this.strict=false,this.bufferLength=vj;let i=X(O.tokenData);this.context=O.context,this.specializerSpecs=O.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let Q=0;Q<this.specializerSpecs.length;Q++)this.specialized[Q]=this.specializerSpecs[Q].term;this.specializers=this.specializerSpecs.map(C),this.states=X(O.states,Uint32Array),this.data=X(O.stateData),this.goto=X(O.goto),this.maxTerm=O.maxTerm,this.tokenizers=O.tokenizers.map(Q=>typeof Q=="number"?new g(i,Q):Q),this.topRules=O.topRules,this.dialects=O.dialects||{},this.dynamicPrecedences=O.dynamicPrecedences||null,this.tokenPrecTable=O.tokenPrec,this.termNames=O.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]];}createParse(O,e,t){let a=new GO(this,O,e,t);for(let r of this.wrappers)a=r(a,O,e,t);return a}getGoto(O,e,t=false){let a=this.goto;if(e>=a[0])return  -1;for(let r=a[e+1];;){let i=a[r++],Q=i&1,n=a[r++];if(Q&&t)return n;for(let l=r+(i>>1);r<l;r++)if(a[r]==O)return n;if(Q)return  -1}}hasAction(O,e){let t=this.data;for(let a=0;a<2;a++)for(let r=this.stateSlot(O,a?2:1),i;;r+=3){if((i=t[r])==65535)if(t[r+1]==1)i=t[r=S(t,r+2)];else {if(t[r+1]==2)return S(t,r+2);break}if(i==e||i==0)return S(t,r+1)}return 0}stateSlot(O,e){return this.states[O*6+e]}stateFlag(O,e){return (this.stateSlot(O,0)&e)>0}validAction(O,e){return !!this.allActions(O,t=>t==e?true:null)}allActions(O,e){let t=this.stateSlot(O,4),a=t?e(t):void 0;for(let r=this.stateSlot(O,1);a==null;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=S(this.data,r+2);else break;a=e(S(this.data,r+1));}return a}nextStates(O){let e=[];for(let t=this.stateSlot(O,1);;t+=3){if(this.data[t]==65535)if(this.data[t+1]==1)t=S(this.data,t+2);else break;if((this.data[t+2]&1)==0){let a=this.data[t+1];e.some((r,i)=>i&1&&r==a)||e.push(this.data[t],a);}}return e}configure(O){let e=Object.assign(Object.create(q.prototype),this);if(O.props&&(e.nodeSet=this.nodeSet.extend(...O.props)),O.top){let t=this.topRules[O.top];if(!t)throw new RangeError(`Invalid top rule name ${O.top}`);e.top=t;}return O.tokenizers&&(e.tokenizers=this.tokenizers.map(t=>{let a=O.tokenizers.find(r=>r.from==t);return a?a.to:t})),O.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((t,a)=>{let r=O.specializers.find(Q=>Q.from==t.external);if(!r)return t;let i=Object.assign(Object.assign({},t),{external:r.to});return e.specializers[a]=C(i),i})),O.contextTracker&&(e.context=O.contextTracker),O.dialect&&(e.dialect=this.parseDialect(O.dialect)),O.strict!=null&&(e.strict=O.strict),O.wrap&&(e.wrappers=e.wrappers.concat(O.wrap)),O.bufferLength!=null&&(e.bufferLength=O.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(O){return this.termNames?this.termNames[O]:String(O<=this.maxNode&&this.nodeSet.types[O].name||O)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(O){let e=this.dynamicPrecedences;return e==null?0:e[O]||0}parseDialect(O){let e=Object.keys(this.dialects),t=e.map(()=>false);if(O)for(let r of O.split(" ")){let i=e.indexOf(r);i>=0&&(t[i]=true);}let a=null;for(let r=0;r<e.length;r++)if(!t[r])for(let i=this.dialects[e[r]],Q;(Q=this.data[i++])!=65535;)(a||(a=new Uint8Array(this.maxTerm+1)))[Q]=1;return new zO(O,t,a)}static deserialize(O){return new q(O)}} exports("L", q);function S(s,O){return s[O]|s[O+1]<<16}function WO(s){let O=null;for(let e of s){let t=e.p.stoppedAt;(e.pos==e.p.stream.end||t!=null&&e.pos>t)&&e.p.parser.stateFlag(e.state,2)&&(!O||O.score<e.score)&&(O=e);}return O}function C(s){if(s.external){let O=s.extend?1:0;return (e,t)=>s.external(e,t)<<1|O}return s.get}const LO=315,MO=316,I=1,AO=2,EO=3,CO=4,IO=317,NO=319,BO=320,DO=5,JO=6,KO=0,j=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],OO=125,HO=59,V=47,FO=42,Oe=43,ee=45,te=60,ie=44,ae=63,se=46,re=91,Qe=new UO({start:false,shift(s,O){return O==DO||O==JO||O==NO?s:O==BO},strict:false}),ne=new k((s,O)=>{let{next:e}=s;(e==OO||e==-1||O.context)&&s.acceptToken(IO);},{contextual:true,fallback:true}),oe=new k((s,O)=>{let{next:e}=s,t;j.indexOf(e)>-1||e==V&&((t=s.peek(1))==V||t==FO)||e!=OO&&e!=HO&&e!=-1&&!O.context&&s.acceptToken(LO);},{contextual:true}),le=new k((s,O)=>{s.next==re&&!O.context&&s.acceptToken(MO);},{contextual:true}),$e=new k((s,O)=>{let{next:e}=s;if(e==Oe||e==ee){if(s.advance(),e==s.next){s.advance();let t=!O.context&&O.canShift(I);s.acceptToken(t?I:AO);}}else e==ae&&s.peek(1)==se&&(s.advance(),s.advance(),(s.next<48||s.next>57)&&s.acceptToken(EO));},{contextual:true});function T(s,O){return s>=65&&s<=90||s>=97&&s<=122||s==95||s>=192||!O&&s>=48&&s<=57}const he=new k((s,O)=>{if(s.next!=te||!O.dialectEnabled(KO)||(s.advance(),s.next==V))return;let e=0;for(;j.indexOf(s.next)>-1;)s.advance(),e++;if(T(s.next,true)){for(s.advance(),e++;T(s.next,false);)s.advance(),e++;for(;j.indexOf(s.next)>-1;)s.advance(),e++;if(s.next==ie)return;for(let t=0;;t++){if(t==7){if(!T(s.next,true))return;break}if(s.next!="extends".charCodeAt(t))break;s.advance(),e++;}}s.acceptToken(CO,-e);}),ce=Lj({"get set async static":w$1.modifier,"for while do if else switch try catch finally return throw break continue default case":w$1.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":w$1.operatorKeyword,"let var const using function class extends":w$1.definitionKeyword,"import export from":w$1.moduleKeyword,"with debugger new":w$1.keyword,TemplateString:w$1.special(w$1.string),super:w$1.atom,BooleanLiteral:w$1.bool,this:w$1.self,null:w$1.null,Star:w$1.modifier,VariableName:w$1.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":w$1.function(w$1.variableName),VariableDefinition:w$1.definition(w$1.variableName),Label:w$1.labelName,PropertyName:w$1.propertyName,PrivatePropertyName:w$1.special(w$1.propertyName),"CallExpression/MemberExpression/PropertyName":w$1.function(w$1.propertyName),"FunctionDeclaration/VariableDefinition":w$1.function(w$1.definition(w$1.variableName)),"ClassDeclaration/VariableDefinition":w$1.definition(w$1.className),"NewExpression/VariableName":w$1.className,PropertyDefinition:w$1.definition(w$1.propertyName),PrivatePropertyDefinition:w$1.definition(w$1.special(w$1.propertyName)),UpdateOp:w$1.updateOperator,"LineComment Hashbang":w$1.lineComment,BlockComment:w$1.blockComment,Number:w$1.number,String:w$1.string,Escape:w$1.escape,ArithOp:w$1.arithmeticOperator,LogicOp:w$1.logicOperator,BitOp:w$1.bitwiseOperator,CompareOp:w$1.compareOperator,RegExp:w$1.regexp,Equals:w$1.definitionOperator,Arrow:w$1.function(w$1.punctuation),": Spread":w$1.punctuation,"( )":w$1.paren,"[ ]":w$1.squareBracket,"{ }":w$1.brace,"InterpolationStart InterpolationEnd":w$1.special(w$1.brace),".":w$1.derefOperator,", ;":w$1.separator,"@":w$1.meta,TypeName:w$1.typeName,TypeDefinition:w$1.definition(w$1.typeName),"type enum interface implements namespace module declare":w$1.definitionKeyword,"abstract global Privacy readonly override":w$1.modifier,"is keyof unique infer asserts":w$1.operatorKeyword,JSXAttributeValue:w$1.attributeValue,JSXText:w$1.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":w$1.angleBracket,"JSXIdentifier JSXNameSpacedName":w$1.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":w$1.attributeName,"JSXBuiltin/JSXIdentifier":w$1.standard(w$1.tagName)}),pe={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,for:474,of:483,while:486,with:490,do:494,if:498,else:500,switch:504,case:510,try:516,catch:520,finally:524,return:528,throw:532,break:536,continue:540,debugger:544},fe={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},Pe={__proto__:null,"<":193},Ze=q.deserialize({version:14,states:"$EOQ%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Ik'#IkO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JqO6[Q!0MxO'#JrO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO7eQMhO'#F|O9[Q`O'#F{OOQ!0Lf'#Jr'#JrOOQ!0Lb'#Jq'#JqO9aQ`O'#GwOOQ['#K^'#K^O9lQ`O'#IXO9qQ!0LrO'#IYOOQ['#J_'#J_OOQ['#I^'#I^Q`QlOOQ`QlOOO9yQ!L^O'#DvO:QQlO'#EOO:XQlO'#EQO9gQ`O'#GsO:`QMhO'#CoO:nQ`O'#EnO:yQ`O'#EyO;OQMhO'#FeO;mQ`O'#GsOOQO'#K_'#K_O;rQ`O'#K_O<QQ`O'#G{O<QQ`O'#G|O<QQ`O'#HOO9gQ`O'#HRO<wQ`O'#HUO>`Q`O'#CeO>pQ`O'#HbO>xQ`O'#HhO>xQ`O'#HjO`QlO'#HlO>xQ`O'#HnO>xQ`O'#HqO>}Q`O'#HwO?SQ!0LsO'#H}O%[QlO'#IPO?_Q!0LsO'#IRO?jQ!0LsO'#ITO9qQ!0LrO'#IVO?uQ!0MxO'#CiO@wQpO'#DlQOQ`OOO%[QlO'#EQOA_Q`O'#ETO:`QMhO'#EnOAjQ`O'#EnOAuQ!bO'#FeOOQ['#Cg'#CgOOQ!0Lb'#Dq'#DqOOQ!0Lb'#Ju'#JuO%[QlO'#JuOOQO'#Jx'#JxOOQO'#Ig'#IgOBuQpO'#EgOOQ!0Lb'#Ef'#EfOOQ!0Lb'#J|'#J|OCqQ!0MSO'#EgOC{QpO'#EWOOQO'#Jw'#JwODaQpO'#JxOEnQpO'#EWOC{QpO'#EgPE{O&2DjO'#CbPOOO)CD|)CD|OOOO'#I_'#I_OFWO#tO,59UOOQ!0Lh,59U,59UOOOO'#I`'#I`OFfO&jO,59UOFtQ!L^O'#DcOOOO'#Ib'#IbOF{O#@ItO,59{OOQ!0Lf,59{,59{OGZQlO'#IcOGnQ`O'#JsOImQ!fO'#JsO+}QlO'#JsOItQ`O,5:ROJ[Q`O'#EpOJiQ`O'#KSOJtQ`O'#KROJtQ`O'#KROJ|Q`O,5;^OKRQ`O'#KQOOQ!0Ln,5:^,5:^OKYQlO,5:^OMWQ!0MxO,5:fOMwQ`O,5:nONbQ!0LrO'#KPONiQ`O'#KOO9aQ`O'#KOON}Q`O'#KOO! VQ`O,5;]O! [Q`O'#KOO!#aQ!fO'#JrOOQ!0Lh'#Ci'#CiO%[QlO'#ESO!$PQ!fO,5:sOOQS'#Jy'#JyOOQO-E<i-E<iO9gQ`O,5=_O!$gQ`O,5=_O!$lQlO,5;ZO!&oQMhO'#EkO!(YQ`O,5;ZO!(_QlO'#DyO!(iQpO,5;dO!(qQpO,5;dO%[QlO,5;dOOQ['#FT'#FTOOQ['#FV'#FVO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eO%[QlO,5;eOOQ['#FZ'#FZO!)PQlO,5;tOOQ!0Lf,5;y,5;yOOQ!0Lf,5;z,5;zOOQ!0Lf,5;|,5;|O%[QlO'#IoO!+SQ!0LrO,5<iO%[QlO,5;eO!&oQMhO,5;eO!+qQMhO,5;eO!-cQMhO'#E^O%[QlO,5;wOOQ!0Lf,5;{,5;{O!-jQ,UO'#FjO!.gQ,UO'#KWO!.RQ,UO'#KWO!.nQ,UO'#KWOOQO'#KW'#KWO!/SQ,UO,5<SOOOW,5<`,5<`O!/eQlO'#FvOOOW'#In'#InO7VO7dO,5<QO!/lQ,UO'#FxOOQ!0Lf,5<Q,5<QO!0]Q$IUO'#CyOOQ!0Lh'#C}'#C}O!0pO#@ItO'#DRO!1^QMjO,5<eO!1eQ`O,5<hO!3QQ(CWO'#GXO!3_Q`O'#GYO!3dQ`O'#GYO!5SQ(CWO'#G^O!6XQpO'#GbOOQO'#Gn'#GnO!+xQMhO'#GmOOQO'#Gp'#GpO!+xQMhO'#GoO!6zQ$IUO'#JkOOQ!0Lh'#Jk'#JkO!7UQ`O'#JjO!7dQ`O'#JiO!7lQ`O'#CuOOQ!0Lh'#C{'#C{O!7}Q`O'#C}OOQ!0Lh'#DV'#DVOOQ!0Lh'#DX'#DXO1SQ`O'#DZO!+xQMhO'#GPO!+xQMhO'#GRO!8SQ`O'#GTO!8XQ`O'#GUO!3dQ`O'#G[O!+xQMhO'#GaO<QQ`O'#JjO!8^Q`O'#EqO!8{Q`O,5<gOOQ!0Lb'#Cr'#CrO!9TQ`O'#ErO!9}QpO'#EsOOQ!0Lb'#KQ'#KQO!:UQ!0LrO'#K`O9qQ!0LrO,5=cO`QlO,5>sOOQ['#Jg'#JgOOQ[,5>t,5>tOOQ[-E<[-E<[O!<TQ!0MxO,5:bO!9xQpO,5:`O!>nQ!0MxO,5:jO%[QlO,5:jO!AUQ!0MxO,5:lOOQO,5@y,5@yO!AuQMhO,5=_O!BTQ!0LrO'#JhO9[Q`O'#JhO!BfQ!0LrO,59ZO!BqQpO,59ZO!ByQMhO,59ZO:`QMhO,59ZO!CUQ`O,5;ZO!C^Q`O'#HaO!CrQ`O'#KcO%[QlO,5;}O!9xQpO,5<PO!CzQ`O,5=zO!DPQ`O,5=zO!DUQ`O,5=zO9qQ!0LrO,5=zO<QQ`O,5=jOOQO'#Cy'#CyO!DdQpO,5=gO!DlQMhO,5=hO!DwQ`O,5=jO!D|Q!bO,5=mO!EUQ`O'#K_O>}Q`O'#HWO9gQ`O'#HYO!EZQ`O'#HYO:`QMhO'#H[O!E`Q`O'#H[OOQ[,5=p,5=pO!EeQ`O'#H]O!EvQ`O'#CoO!E{Q`O,59PO!FVQ`O,59PO!H[QlO,59POOQ[,59P,59PO!HlQ!0LrO,59PO%[QlO,59PO!JwQlO'#HdOOQ['#He'#HeOOQ['#Hf'#HfO`QlO,5=|O!K_Q`O,5=|O`QlO,5>SO`QlO,5>UO!KdQ`O,5>WO`QlO,5>YO!KiQ`O,5>]O!KnQlO,5>cOOQ[,5>i,5>iO%[QlO,5>iO9qQ!0LrO,5>kOOQ[,5>m,5>mO# xQ`O,5>mOOQ[,5>o,5>oO# xQ`O,5>oOOQ[,5>q,5>qO#!fQpO'#D_O%[QlO'#JuO##XQpO'#JuO##cQpO'#DmO##tQpO'#DmO#&VQlO'#DmO#&^Q`O'#JtO#&fQ`O,5:WO#&kQ`O'#EtO#&yQ`O'#KTO#'RQ`O,5;_O#'WQpO'#DmO#'eQpO'#EVOOQ!0Lf,5:o,5:oO%[QlO,5:oO#'lQ`O,5:oO>}Q`O,5;YO!BqQpO,5;YO!ByQMhO,5;YO:`QMhO,5;YO#'tQ`O,5@aO#'yQ07dO,5:sOOQO-E<e-E<eO#)PQ!0MSO,5;ROC{QpO,5:rO#)ZQpO,5:rOC{QpO,5;RO!BfQ!0LrO,5:rOOQ!0Lb'#Ej'#EjOOQO,5;R,5;RO%[QlO,5;RO#)hQ!0LrO,5;RO#)sQ!0LrO,5;RO!BqQpO,5:rOOQO,5;X,5;XO#*RQ!0LrO,5;RPOOO'#I]'#I]P#*gO&2DjO,58|POOO,58|,58|OOOO-E<]-E<]OOQ!0Lh1G.p1G.pOOOO-E<^-E<^OOOO,59},59}O#*rQ!bO,59}OOOO-E<`-E<`OOQ!0Lf1G/g1G/gO#*wQ!fO,5>}O+}QlO,5>}OOQO,5?T,5?TO#+RQlO'#IcOOQO-E<a-E<aO#+`Q`O,5@_O#+hQ!fO,5@_O#+oQ`O,5@mOOQ!0Lf1G/m1G/mO%[QlO,5@nO#+wQ`O'#IiOOQO-E<g-E<gO#+oQ`O,5@mOOQ!0Lb1G0x1G0xOOQ!0Ln1G/x1G/xOOQ!0Ln1G0Y1G0YO%[QlO,5@kO#,]Q!0LrO,5@kO#,nQ!0LrO,5@kO#,uQ`O,5@jO9aQ`O,5@jO#,}Q`O,5@jO#-]Q`O'#IlO#,uQ`O,5@jOOQ!0Lb1G0w1G0wO!(iQpO,5:uO!(tQpO,5:uOOQS,5:w,5:wO#-}QdO,5:wO#.VQMhO1G2yO9gQ`O1G2yOOQ!0Lf1G0u1G0uO#.eQ!0MxO1G0uO#/jQ!0MvO,5;VOOQ!0Lh'#GW'#GWO#0WQ!0MzO'#JkO!$lQlO1G0uO#2cQ!fO'#JvO%[QlO'#JvO#2mQ`O,5:eOOQ!0Lh'#D_'#D_OOQ!0Lf1G1O1G1OO%[QlO1G1OOOQ!0Lf1G1f1G1fO#2rQ`O1G1OO#5WQ!0MxO1G1PO#5_Q!0MxO1G1PO#7uQ!0MxO1G1PO#7|Q!0MxO1G1PO#:dQ!0MxO1G1PO#<zQ!0MxO1G1PO#=RQ!0MxO1G1PO#=YQ!0MxO1G1PO#?pQ!0MxO1G1PO#?wQ!0MxO1G1PO#BUQ?MtO'#CiO#DPQ?MtO1G1`O#DWQ?MtO'#JrO#DkQ!0MxO,5?ZOOQ!0Lb-E<m-E<mO#FxQ!0MxO1G1PO#GuQ!0MzO1G1POOQ!0Lf1G1P1G1PO#HxQMjO'#J{O#ISQ`O,5:xO#IXQ!0MxO1G1cO#I{Q,UO,5<WO#JTQ,UO,5<XO#J]Q,UO'#FoO#JtQ`O'#FnOOQO'#KX'#KXOOQO'#Im'#ImO#JyQ,UO1G1nOOQ!0Lf1G1n1G1nOOOW1G1y1G1yO#K[Q?MtO'#JqO#KfQ`O,5<bO!)PQlO,5<bOOOW-E<l-E<lOOQ!0Lf1G1l1G1lO#KkQpO'#KWOOQ!0Lf,5<d,5<dO#KsQpO,5<dO#KxQMhO'#DTOOOO'#Ia'#IaO#LPO#@ItO,59mOOQ!0Lh,59m,59mO%[QlO1G2PO!8XQ`O'#IqO#L[Q`O,5<zOOQ!0Lh,5<w,5<wO!+xQMhO'#ItO#LxQMjO,5=XO!+xQMhO'#IvO#MkQMjO,5=ZO!&oQMhO,5=]OOQO1G2S1G2SO#MuQ!dO'#CrO#NYQ(CWO'#ErO$ _QpO'#GbO$ uQ!dO,5<sO$ |Q`O'#KZO9aQ`O'#KZO$![Q`O,5<uO!+xQMhO,5<tO$!aQ`O'#GZO$!rQ`O,5<tO$!wQ!dO'#GWO$#UQ!dO'#K[O$#`Q`O'#K[O!&oQMhO'#K[O$#eQ`O,5<xO$#jQlO'#JuO$#tQpO'#GcO##tQpO'#GcO$$VQ`O'#GgO!3dQ`O'#GkO$$[Q!0LrO'#IsO$$gQpO,5<|OOQ!0Lp,5<|,5<|O$$nQpO'#GcO$${QpO'#GdO$%^QpO'#GdO$%cQMjO,5=XO$%sQMjO,5=ZOOQ!0Lh,5=^,5=^O!+xQMhO,5@UO!+xQMhO,5@UO$&TQ`O'#IxO$&iQ`O,5@TO$&qQ`O,59aOOQ!0Lh,59i,59iO$'hQ$IYO,59uOOQ!0Lh'#Jo'#JoO$(ZQMjO,5<kO$(|QMjO,5<mO@oQ`O,5<oOOQ!0Lh,5<p,5<pO$)WQ`O,5<vO$)]QMjO,5<{O$)mQ`O,5@UO$){Q`O'#KOO!$lQlO1G2RO$*QQ`O1G2RO9aQ`O'#KRO9aQ`O'#EtO%[QlO'#EtO9aQ`O'#IzO$*VQ!0LrO,5@zOOQ[1G2}1G2}OOQ[1G4_1G4_OOQ!0Lf1G/|1G/|OOQ!0Lf1G/z1G/zO$,XQ!0MxO1G0UOOQ[1G2y1G2yO!&oQMhO1G2yO%[QlO1G2yO#.YQ`O1G2yO$.]QMhO'#EkOOQ!0Lb,5@S,5@SO$.jQ!0LrO,5@SOOQ[1G.u1G.uO!BfQ!0LrO1G.uO!BqQpO1G.uO!ByQMhO1G.uO$.{Q`O1G0uO$/QQ`O'#CiO$/]Q`O'#KdO$/eQ`O,5={O$/jQ`O'#KdO$/oQ`O'#KdO$/}Q`O'#JQO$0]Q`O,5@}O$0eQ!fO1G1iOOQ!0Lf1G1k1G1kO9gQ`O1G3fO@oQ`O1G3fO$0lQ`O1G3fO$0qQ`O1G3fOOQ[1G3f1G3fO!DwQ`O1G3UO!&oQMhO1G3RO$0vQ`O1G3ROOQ[1G3S1G3SO!&oQMhO1G3SO$0{Q`O1G3SO$1TQpO'#HQOOQ[1G3U1G3UO!6SQpO'#I|O!D|Q!bO1G3XOOQ[1G3X1G3XOOQ[,5=r,5=rO$1]QMhO,5=tO9gQ`O,5=tO$$VQ`O,5=vO9[Q`O,5=vO!BqQpO,5=vO!ByQMhO,5=vO:`QMhO,5=vO$1kQ`O'#KbO$1vQ`O,5=wOOQ[1G.k1G.kO$1{Q!0LrO1G.kO@oQ`O1G.kO$2WQ`O1G.kO9qQ!0LrO1G.kO$4`Q!fO,5APO$4mQ`O,5APO9aQ`O,5APO$4xQlO,5>OO$5PQ`O,5>OOOQ[1G3h1G3hO`QlO1G3hOOQ[1G3n1G3nOOQ[1G3p1G3pO>xQ`O1G3rO$5UQlO1G3tO$9YQlO'#HsOOQ[1G3w1G3wO$9gQ`O'#HyO>}Q`O'#H{OOQ[1G3}1G3}O$9oQlO1G3}O9qQ!0LrO1G4TOOQ[1G4V1G4VOOQ!0Lb'#G_'#G_O9qQ!0LrO1G4XO9qQ!0LrO1G4ZO$=vQ`O,5@aO!)PQlO,5;`O9aQ`O,5;`O>}Q`O,5:XO!)PQlO,5:XO!BqQpO,5:XO$={Q?MtO,5:XOOQO,5;`,5;`O$>VQpO'#IdO$>mQ`O,5@`OOQ!0Lf1G/r1G/rO$>uQpO'#IjO$?PQ`O,5@oOOQ!0Lb1G0y1G0yO##tQpO,5:XOOQO'#If'#IfO$?XQpO,5:qOOQ!0Ln,5:q,5:qO#'oQ`O1G0ZOOQ!0Lf1G0Z1G0ZO%[QlO1G0ZOOQ!0Lf1G0t1G0tO>}Q`O1G0tO!BqQpO1G0tO!ByQMhO1G0tOOQ!0Lb1G5{1G5{O!BfQ!0LrO1G0^OOQO1G0m1G0mO%[QlO1G0mO$?`Q!0LrO1G0mO$?kQ!0LrO1G0mO!BqQpO1G0^OC{QpO1G0^O$?yQ!0LrO1G0mOOQO1G0^1G0^O$@_Q!0MxO1G0mPOOO-E<Z-E<ZPOOO1G.h1G.hOOOO1G/i1G/iO$@iQ!bO,5<iO$@qQ!fO1G4iOOQO1G4o1G4oO%[QlO,5>}O$@{Q`O1G5yO$ATQ`O1G6XO$A]Q!fO1G6YO9aQ`O,5?TO$AgQ!0MxO1G6VO%[QlO1G6VO$AwQ!0LrO1G6VO$BYQ`O1G6UO$BYQ`O1G6UO9aQ`O1G6UO$BbQ`O,5?WO9aQ`O,5?WOOQO,5?W,5?WO$BvQ`O,5?WO$){Q`O,5?WOOQO-E<j-E<jOOQS1G0a1G0aOOQS1G0c1G0cO#.QQ`O1G0cOOQ[7+(e7+(eO!&oQMhO7+(eO%[QlO7+(eO$CUQ`O7+(eO$CaQMhO7+(eO$CoQ!0MzO,5=XO$EzQ!0MzO,5=ZO$HVQ!0MzO,5=XO$JhQ!0MzO,5=ZO$LyQ!0MzO,59uO% OQ!0MzO,5<kO%#ZQ!0MzO,5<mO%%fQ!0MzO,5<{OOQ!0Lf7+&a7+&aO%'wQ!0MxO7+&aO%(kQlO'#IeO%(xQ`O,5@bO%)QQ!fO,5@bOOQ!0Lf1G0P1G0PO%)[Q`O7+&jOOQ!0Lf7+&j7+&jO%)aQ?MtO,5:fO%[QlO7+&zO%)kQ?MtO,5:bO%)xQ?MtO,5:jO%*SQ?MtO,5:lO%*^QMhO'#IhO%*hQ`O,5@gOOQ!0Lh1G0d1G0dOOQO1G1r1G1rOOQO1G1s1G1sO%*pQ!jO,5<ZO!)PQlO,5<YOOQO-E<k-E<kOOQ!0Lf7+'Y7+'YOOOW7+'e7+'eOOOW1G1|1G1|O%*{Q`O1G1|OOQ!0Lf1G2O1G2OOOOO,59o,59oO%+QQ!dO,59oOOOO-E<_-E<_OOQ!0Lh1G/X1G/XO%+XQ!0MxO7+'kOOQ!0Lh,5?],5?]O%+{QMhO1G2fP%,SQ`O'#IqPOQ!0Lh-E<o-E<oO%,pQMjO,5?`OOQ!0Lh-E<r-E<rO%-cQMjO,5?bOOQ!0Lh-E<t-E<tO%-mQ!dO1G2wO%-tQ!dO'#CrO%.[QMhO'#KRO$#jQlO'#JuOOQ!0Lh1G2_1G2_O%.cQ`O'#IpO%.wQ`O,5@uO%.wQ`O,5@uO%/PQ`O,5@uO%/[Q`O,5@uOOQO1G2a1G2aO%/jQMjO1G2`O!+xQMhO1G2`O%/zQ(CWO'#IrO%0XQ`O,5@vO!&oQMhO,5@vO%0aQ!dO,5@vOOQ!0Lh1G2d1G2dO%2qQ!fO'#CiO%2{Q`O,5=POOQ!0Lb,5<},5<}O%3TQpO,5<}OOQ!0Lb,5=O,5=OOClQ`O,5<}O%3`QpO,5<}OOQ!0Lb,5=R,5=RO$){Q`O,5=VOOQO,5?_,5?_OOQO-E<q-E<qOOQ!0Lp1G2h1G2hO##tQpO,5<}O$#jQlO,5=PO%3nQ`O,5=OO%3yQpO,5=OO!+xQMhO'#ItO%4sQMjO1G2sO!+xQMhO'#IvO%5fQMjO1G2uO%5pQMjO1G5pO%5zQMjO1G5pOOQO,5?d,5?dOOQO-E<v-E<vOOQO1G.{1G.{O!9xQpO,59wO%[QlO,59wOOQ!0Lh,5<j,5<jO%6XQ`O1G2ZO!+xQMhO1G2bO!+xQMhO1G5pO!+xQMhO1G5pO%6^Q!0MxO7+'mOOQ!0Lf7+'m7+'mO!$lQlO7+'mO%7QQ`O,5;`OOQ!0Lb,5?f,5?fOOQ!0Lb-E<x-E<xO%7VQ!dO'#K]O#'oQ`O7+(eO4UQ!fO7+(eO$CXQ`O7+(eO%7aQ!0MvO'#CiO%7tQ!0MvO,5=SO%8fQ`O,5=SO%8nQ`O,5=SOOQ!0Lb1G5n1G5nOOQ[7+$a7+$aO!BfQ!0LrO7+$aO!BqQpO7+$aO!$lQlO7+&aO%8sQ`O'#JPO%9[Q`O,5AOOOQO1G3g1G3gO9gQ`O,5AOO%9[Q`O,5AOO%9dQ`O,5AOOOQO,5?l,5?lOOQO-E=O-E=OOOQ!0Lf7+'T7+'TO%9iQ`O7+)QO9qQ!0LrO7+)QO9gQ`O7+)QO@oQ`O7+)QOOQ[7+(p7+(pO%9nQ!0MvO7+(mO!&oQMhO7+(mO!DrQ`O7+(nOOQ[7+(n7+(nO!&oQMhO7+(nO%9xQ`O'#KaO%:TQ`O,5=lOOQO,5?h,5?hOOQO-E<z-E<zOOQ[7+(s7+(sO%;gQpO'#HZOOQ[1G3`1G3`O!&oQMhO1G3`O%[QlO1G3`O%;nQ`O1G3`O%;yQMhO1G3`O9qQ!0LrO1G3bO$$VQ`O1G3bO9[Q`O1G3bO!BqQpO1G3bO!ByQMhO1G3bO%<XQ`O'#JOO%<mQ`O,5@|O%<uQpO,5@|OOQ!0Lb1G3c1G3cOOQ[7+$V7+$VO@oQ`O7+$VO9qQ!0LrO7+$VO%=QQ`O7+$VO%[QlO1G6kO%[QlO1G6lO%=VQ!0LrO1G6kO%=aQlO1G3jO%=hQ`O1G3jO%=mQlO1G3jOOQ[7+)S7+)SO9qQ!0LrO7+)^O`QlO7+)`OOQ['#Kg'#KgOOQ['#JR'#JRO%=tQlO,5>_OOQ[,5>_,5>_O%[QlO'#HtO%>RQ`O'#HvOOQ[,5>e,5>eO9aQ`O,5>eOOQ[,5>g,5>gOOQ[7+)i7+)iOOQ[7+)o7+)oOOQ[7+)s7+)sOOQ[7+)u7+)uO%>WQpO1G5{O%>rQ?MtO1G0zO%>|Q`O1G0zOOQO1G/s1G/sO%?XQ?MtO1G/sO>}Q`O1G/sO!)PQlO'#DmOOQO,5?O,5?OOOQO-E<b-E<bOOQO,5?U,5?UOOQO-E<h-E<hO!BqQpO1G/sOOQO-E<d-E<dOOQ!0Ln1G0]1G0]OOQ!0Lf7+%u7+%uO#'oQ`O7+%uOOQ!0Lf7+&`7+&`O>}Q`O7+&`O!BqQpO7+&`OOQO7+%x7+%xO$@_Q!0MxO7+&XOOQO7+&X7+&XO%[QlO7+&XO%?cQ!0LrO7+&XO!BfQ!0LrO7+%xO!BqQpO7+%xO%?nQ!0LrO7+&XO%?|Q!0MxO7++qO%[QlO7++qO%@^Q`O7++pO%@^Q`O7++pOOQO1G4r1G4rO9aQ`O1G4rO%@fQ`O1G4rOOQS7+%}7+%}O#'oQ`O<<LPO4UQ!fO<<LPO%@tQ`O<<LPOOQ[<<LP<<LPO!&oQMhO<<LPO%[QlO<<LPO%@|Q`O<<LPO%AXQ!0MzO,5?`O%CdQ!0MzO,5?bO%EoQ!0MzO1G2`O%HQQ!0MzO1G2sO%J]Q!0MzO1G2uO%LhQ!fO,5?PO%[QlO,5?POOQO-E<c-E<cO%LrQ`O1G5|OOQ!0Lf<<JU<<JUO%LzQ?MtO1G0uO& RQ?MtO1G1PO& YQ?MtO1G1PO&#ZQ?MtO1G1PO&#bQ?MtO1G1PO&%cQ?MtO1G1PO&'dQ?MtO1G1PO&'kQ?MtO1G1PO&'rQ?MtO1G1PO&)sQ?MtO1G1PO&)zQ?MtO1G1PO&*RQ!0MxO<<JfO&+yQ?MtO1G1PO&,vQ?MvO1G1PO&-yQ?MvO'#JkO&0PQ?MtO1G1cO&0^Q?MtO1G0UO&0hQMjO,5?SOOQO-E<f-E<fO!)PQlO'#FqOOQO'#KY'#KYOOQO1G1u1G1uO&0rQ`O1G1tO&0wQ?MtO,5?ZOOOW7+'h7+'hOOOO1G/Z1G/ZO&1RQ!dO1G4wOOQ!0Lh7+(Q7+(QP!&oQMhO,5?]O!+xQMhO7+(cO&1YQ`O,5?[O9aQ`O,5?[OOQO-E<n-E<nO&1hQ`O1G6aO&1hQ`O1G6aO&1pQ`O1G6aO&1{QMjO7+'zO&2]Q!dO,5?^O&2gQ`O,5?^O!&oQMhO,5?^OOQO-E<p-E<pO&2lQ!dO1G6bO&2vQ`O1G6bO&3OQ`O1G2kO!&oQMhO1G2kOOQ!0Lb1G2i1G2iOOQ!0Lb1G2j1G2jO%3TQpO1G2iO!BqQpO1G2iOClQ`O1G2iOOQ!0Lb1G2q1G2qO&3TQpO1G2iO&3cQ`O1G2kO$){Q`O1G2jOClQ`O1G2jO$#jQlO1G2kO&3kQ`O1G2jO&4_QMjO,5?`OOQ!0Lh-E<s-E<sO&5QQMjO,5?bOOQ!0Lh-E<u-E<uO!+xQMhO7++[OOQ!0Lh1G/c1G/cO&5[Q`O1G/cOOQ!0Lh7+'u7+'uO&5aQMjO7+'|O&5qQMjO7++[O&5{QMjO7++[O&6YQ!0MxO<<KXOOQ!0Lf<<KX<<KXO&6|Q`O1G0zO!&oQMhO'#IyO&7RQ`O,5@wO&9TQ!fO<<LPO!&oQMhO1G2nO&9[Q!0LrO1G2nOOQ[<<G{<<G{O!BfQ!0LrO<<G{O&9mQ!0MxO<<I{OOQ!0Lf<<I{<<I{OOQO,5?k,5?kO&:aQ`O,5?kO&:fQ`O,5?kOOQO-E<}-E<}O&:tQ`O1G6jO&:tQ`O1G6jO9gQ`O1G6jO@oQ`O<<LlOOQ[<<Ll<<LlO&:|Q`O<<LlO9qQ!0LrO<<LlOOQ[<<LX<<LXO%9nQ!0MvO<<LXOOQ[<<LY<<LYO!DrQ`O<<LYO&;RQpO'#I{O&;^Q`O,5@{O!)PQlO,5@{OOQ[1G3W1G3WOOQO'#I}'#I}O9qQ!0LrO'#I}O&;fQpO,5=uOOQ[,5=u,5=uO&;mQpO'#EgO&;tQpO'#GeO&;yQ`O7+(zO&<OQ`O7+(zOOQ[7+(z7+(zO!&oQMhO7+(zO%[QlO7+(zO&<WQ`O7+(zOOQ[7+(|7+(|O9qQ!0LrO7+(|O$$VQ`O7+(|O9[Q`O7+(|O!BqQpO7+(|O&<cQ`O,5?jOOQO-E<|-E<|OOQO'#H^'#H^O&<nQ`O1G6hO9qQ!0LrO<<GqOOQ[<<Gq<<GqO@oQ`O<<GqO&<vQ`O7+,VO&<{Q`O7+,WO%[QlO7+,VO%[QlO7+,WOOQ[7+)U7+)UO&=QQ`O7+)UO&=VQlO7+)UO&=^Q`O7+)UOOQ[<<Lx<<LxOOQ[<<Lz<<LzOOQ[-E=P-E=POOQ[1G3y1G3yO&=cQ`O,5>`OOQ[,5>b,5>bO&=hQ`O1G4PO9aQ`O7+&fO!)PQlO7+&fOOQO7+%_7+%_O&=mQ?MtO1G6YO>}Q`O7+%_OOQ!0Lf<<Ia<<IaOOQ!0Lf<<Iz<<IzO>}Q`O<<IzOOQO<<Is<<IsO$@_Q!0MxO<<IsO%[QlO<<IsOOQO<<Id<<IdO!BfQ!0LrO<<IdO&=wQ!0LrO<<IsO&>SQ!0MxO<= ]O&>dQ`O<= [OOQO7+*^7+*^O9aQ`O7+*^OOQ[ANAkANAkO&>lQ!fOANAkO!&oQMhOANAkO#'oQ`OANAkO4UQ!fOANAkO&>sQ`OANAkO%[QlOANAkO&>{Q!0MzO7+'zO&A^Q!0MzO,5?`O&CiQ!0MzO,5?bO&EtQ!0MzO7+'|O&HVQ!fO1G4kO&HaQ?MtO7+&aO&JeQ?MvO,5=XO&LlQ?MvO,5=ZO&L|Q?MvO,5=XO&M^Q?MvO,5=ZO&MnQ?MvO,59uO' tQ?MvO,5<kO'#wQ?MvO,5<mO'&]Q?MvO,5<{O'(RQ?MtO7+'kO'(`Q?MtO7+'mO'(mQ`O,5<]OOQO7+'`7+'`OOQ!0Lh7+*c7+*cO'(rQMjO<<K}OOQO1G4v1G4vO'(yQ`O1G4vO')UQ`O1G4vO')dQ`O7++{O')dQ`O7++{O!&oQMhO1G4xO')lQ!dO1G4xO')vQ`O7++|O'*OQ`O7+(VO'*ZQ!dO7+(VOOQ!0Lb7+(T7+(TOOQ!0Lb7+(U7+(UO!BqQpO7+(TOClQ`O7+(TO'*eQ`O7+(VO!&oQMhO7+(VO$){Q`O7+(UO'*jQ`O7+(VOClQ`O7+(UO'*rQMjO<<NvOOQ!0Lh7+$}7+$}O!+xQMhO<<NvO'*|Q!dO,5?eOOQO-E<w-E<wO'+WQ!0MvO7+(YO!&oQMhO7+(YOOQ[AN=gAN=gO9gQ`O1G5VOOQO1G5V1G5VO'+hQ`O1G5VO'+mQ`O7+,UO'+mQ`O7+,UO9qQ!0LrOANBWO@oQ`OANBWOOQ[ANBWANBWOOQ[ANAsANAsOOQ[ANAtANAtO'+uQ`O,5?gOOQO-E<y-E<yO',QQ?MtO1G6gOOQO,5?i,5?iOOQO-E<{-E<{OOQ[1G3a1G3aO',[Q`O,5=POOQ[<<Lf<<LfO!&oQMhO<<LfO&;yQ`O<<LfO',aQ`O<<LfO%[QlO<<LfOOQ[<<Lh<<LhO9qQ!0LrO<<LhO$$VQ`O<<LhO9[Q`O<<LhO',iQpO1G5UO',tQ`O7+,SOOQ[AN=]AN=]O9qQ!0LrOAN=]OOQ[<= q<= qOOQ[<= r<= rO',|Q`O<= qO'-RQ`O<= rOOQ[<<Lp<<LpO'-WQ`O<<LpO'-]QlO<<LpOOQ[1G3z1G3zO>}Q`O7+)kO'-dQ`O<<JQO'-oQ?MtO<<JQOOQO<<Hy<<HyOOQ!0LfAN?fAN?fOOQOAN?_AN?_O$@_Q!0MxOAN?_OOQOAN?OAN?OO%[QlOAN?_OOQO<<Mx<<MxOOQ[G27VG27VO!&oQMhOG27VO#'oQ`OG27VO'-yQ!fOG27VO4UQ!fOG27VO'.QQ`OG27VO'.YQ?MtO<<JfO'.gQ?MvO1G2`O'0]Q?MvO,5?`O'2`Q?MvO,5?bO'4cQ?MvO1G2sO'6fQ?MvO1G2uO'8iQ?MtO<<KXO'8vQ?MtO<<I{OOQO1G1w1G1wO!+xQMhOANAiOOQO7+*b7+*bO'9TQ`O7+*bO'9`Q`O<= gO'9hQ!dO7+*dOOQ!0Lb<<Kq<<KqO$){Q`O<<KqOClQ`O<<KqO'9rQ`O<<KqO!&oQMhO<<KqOOQ!0Lb<<Ko<<KoO!BqQpO<<KoO'9}Q!dO<<KqOOQ!0Lb<<Kp<<KpO':XQ`O<<KqO!&oQMhO<<KqO$){Q`O<<KpO':^QMjOANDbO':hQ!0MvO<<KtOOQO7+*q7+*qO9gQ`O7+*qO':xQ`O<= pOOQ[G27rG27rO9qQ!0LrOG27rO!)PQlO1G5RO';QQ`O7+,RO';YQ`O1G2kO&;yQ`OANBQOOQ[ANBQANBQO!&oQMhOANBQO';_Q`OANBQOOQ[ANBSANBSO9qQ!0LrOANBSO$$VQ`OANBSOOQO'#H_'#H_OOQO7+*p7+*pOOQ[G22wG22wOOQ[ANE]ANE]OOQ[ANE^ANE^OOQ[ANB[ANB[O';gQ`OANB[OOQ[<<MV<<MVO!)PQlOAN?lOOQOG24yG24yO$@_Q!0MxOG24yO#'oQ`OLD,qOOQ[LD,qLD,qO!&oQMhOLD,qO';lQ!fOLD,qO';sQ?MvO7+'zO'=iQ?MvO,5?`O'?lQ?MvO,5?bO'AoQ?MvO7+'|O'CeQMjOG27TOOQO<<M|<<M|OOQ!0LbANA]ANA]O$){Q`OANA]OClQ`OANA]O'CuQ!dOANA]OOQ!0LbANAZANAZO'C|Q`OANA]O!&oQMhOANA]O'DXQ!dOANA]OOQ!0LbANA[ANA[OOQO<<N]<<N]OOQ[LD-^LD-^O'DcQ?MtO7+*mOOQO'#Gf'#GfOOQ[G27lG27lO&;yQ`OG27lO!&oQMhOG27lOOQ[G27nG27nO9qQ!0LrOG27nOOQ[G27vG27vO'DmQ?MtOG25WOOQOLD*eLD*eOOQ[!$(!]!$(!]O#'oQ`O!$(!]O!&oQMhO!$(!]O'DwQ!0MzOG27TOOQ!0LbG26wG26wO$){Q`OG26wO'GYQ`OG26wOClQ`OG26wO'GeQ!dOG26wO!&oQMhOG26wOOQ[LD-WLD-WO&;yQ`OLD-WOOQ[LD-YLD-YOOQ[!)9Ew!)9EwO#'oQ`O!)9EwOOQ!0LbLD,cLD,cO$){Q`OLD,cOClQ`OLD,cO'GlQ`OLD,cO'GwQ!dOLD,cOOQ[!$(!r!$(!rOOQ[!.K;c!.K;cO'HOQ?MvOG27TOOQ!0Lb!$( }!$( }O$){Q`O!$( }OClQ`O!$( }O'ItQ`O!$( }OOQ!0Lb!)9Ei!)9EiO$){Q`O!)9EiOClQ`O!)9EiOOQ!0Lb!.K;T!.K;TO$){Q`O!.K;TOOQ!0Lb!4/0o!4/0oO!)PQlO'#DzO1PQ`O'#EXO'JPQ!fO'#JqO'JWQ!L^O'#DvO'J_QlO'#EOO'JfQ!fO'#CiO'L|Q!fO'#CiO!)PQlO'#EQO'M^QlO,5;ZO!)PQlO,5;eO!)PQlO,5;eO!)PQlO,5;eO!)PQlO,5;eO!)PQlO,5;eO!)PQlO,5;eO!)PQlO,5;eO!)PQlO,5;eO!)PQlO,5;eO!)PQlO,5;eO!)PQlO'#IoO( aQ`O,5<iO!)PQlO,5;eO( iQMhO,5;eO(#SQMhO,5;eO!)PQlO,5;wO!&oQMhO'#GmO( iQMhO'#GmO!&oQMhO'#GoO( iQMhO'#GoO1SQ`O'#DZO1SQ`O'#DZO!&oQMhO'#GPO( iQMhO'#GPO!&oQMhO'#GRO( iQMhO'#GRO!&oQMhO'#GaO( iQMhO'#GaO!)PQlO,5:jO(#ZQpO'#D_O(#eQpO'#JuO!)PQlO,5@nO'M^QlO1G0uO(#oQ?MtO'#CiO!)PQlO1G2PO!&oQMhO'#ItO( iQMhO'#ItO!&oQMhO'#IvO( iQMhO'#IvO(#yQ!dO'#CrO!&oQMhO,5<tO( iQMhO,5<tO'M^QlO1G2RO!)PQlO7+&zO!&oQMhO1G2`O( iQMhO1G2`O!&oQMhO'#ItO( iQMhO'#ItO!&oQMhO'#IvO( iQMhO'#IvO!&oQMhO1G2bO( iQMhO1G2bO'M^QlO7+'mO'M^QlO7+&aO!&oQMhOANAiO( iQMhOANAiO($^Q`O'#EoO($cQ`O'#EoO($kQ`O'#F]O($pQ`O'#EyO($uQ`O'#KSO(%QQ`O'#KQO(%]Q`O,5;ZO(%bQMjO,5<eO(%iQ`O'#GYO(%nQ`O'#GYO(%sQ`O,5<gO(%{Q`O,5;ZO(&TQ?MtO1G1`O(&[Q`O,5<tO(&aQ`O,5<tO(&fQ`O,5<vO(&kQ`O,5<vO(&pQ`O1G2RO(&uQ`O1G0uO(&zQMjO<<K}O('RQMjO<<K}O7eQMhO'#F|O9[Q`O'#F{OAjQ`O'#EnO!)PQlO,5;tO!3dQ`O'#GYO!3dQ`O'#GYO!3dQ`O'#G[O!3dQ`O'#G[O!+xQMhO7+(cO!+xQMhO7+(cO%-mQ!dO1G2wO%-mQ!dO1G2wO!&oQMhO,5=]O!&oQMhO,5=]",stateData:"((X~O'{OS'|OSTOS'}RQ~OPYOQYOSfOY!VOaqOdzOeyOl!POpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_XO!iuO!lZO!oYO!pYO!qYO!svO!uwO!xxO!|]O$W|O$niO%h}O%j!QO%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO%y!UO&V!WO&]!XO&_!YO&a!ZO&c![O&f!]O&l!^O&r!_O&t!`O&v!aO&x!bO&z!cO(SSO(UTO(XUO(`VO(n[O~OWtO~P`OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(S!dO(UTO(XUO(`VO(n[O~Oa!wOs!nO!S!oO!b!yO!c!vO!d!vO!|;wO#T!pO#U!pO#V!xO#W!pO#X!pO#[!zO#]!zO(T!lO(UTO(XUO(d!mO(n!sO~O'}!{O~OP]XR]X[]Xa]Xj]Xr]X!Q]X!S]X!]]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X'y]X(`]X(q]X(x]X(y]X~O!g%RX~P(qO_!}O(U#PO(V!}O(W#PO~O_#QO(W#PO(X#PO(Y#QO~Ox#SO!U#TO(a#TO(b#VO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(S;{O(UTO(XUO(`VO(n[O~O![#ZO!]#WO!Y(gP!Y(uP~P+}O!^#cO~P`OPYOQYOSfOd!jOe!iOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(UTO(XUO(`VO(n[O~Op#mO![#iO!|]O#i#lO#j#iO(S;|O!k(rP~P.iO!l#oO(S#nO~O!x#sO!|]O%h#tO~O#k#uO~O!g#vO#k#uO~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!]$_O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(`VO(q$YO(x#|O(y#}O~Oa(eX'y(eX'v(eX!k(eX!Y(eX!_(eX%i(eX!g(eX~P1qO#S$dO#`$eO$Q$eOP(fXR(fX[(fXj(fXr(fX!Q(fX!S(fX!](fX!l(fX!p(fX#R(fX#n(fX#o(fX#p(fX#q(fX#r(fX#s(fX#t(fX#u(fX#v(fX#x(fX#z(fX#{(fX(`(fX(q(fX(x(fX(y(fX!_(fX%i(fX~Oa(fX'y(fX'v(fX!Y(fX!k(fXv(fX!g(fX~P4UO#`$eO~O$]$hO$_$gO$f$mO~OSfO!_$nO$i$oO$k$qO~Oh%VOj%cOk%cOl%cOp%WOr%XOs$tOt$tOz%YO|%ZO!O%[O!S${O!_$|O!i%aO!l$xO#j%bO$W%_O$t%]O$v%^O$y%`O(S$sO(UTO(XUO(`$uO(x$}O(y%POg(]P~O!l%dO~O!S%gO!_%hO(S%fO~O!g%lO~Oa%mO'y%mO~O!Q%qO~P%[O(T!lO~P%[O%n%uO~P%[Oh%VO!l%dO(S%fO(T!lO~Oe%|O!l%dO(S%fO~Oj$RO~O!Q&RO!_&OO!l&QO%j&UO(S%fO(T!lO(UTO(XUO`)VP~O!x#sO~O%s&WO!S)RX!_)RX(S)RX~O(S&XO~Ol!PO!u&^O%j!QO%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO~Od&cOe&bO!x&`O%h&aO%{&_O~P<VOd&fOeyOl!PO!_&eO!u&^O!xxO!|]O%h}O%l!OO%m!OO%n!OO%q!RO%s!SO%v!TO%w!TO%y!UO~Ob&iO#`&lO%j&gO(T!lO~P=[O!l&mO!u&qO~O!l#oO~O!_XO~Oa%mO'w&yO'y%mO~Oa%mO'w&|O'y%mO~Oa%mO'w'OO'y%mO~O'v]X!Y]Xv]X!k]X&Z]X!_]X%i]X!g]X~P(qO!b']O!c'UO!d'UO(T!lO(UTO(XUO~Os'SO!S'RO!['VO(d'QO!^(hP!^(wP~P@cOn'`O!_'^O(S%fO~Oe'eO!l%dO(S%fO~O!Q&RO!l&QO~Os!nO!S!oO!|;wO#T!pO#U!pO#W!pO#X!pO(T!lO(UTO(XUO(d!mO(n!sO~O!b'kO!c'jO!d'jO#V!pO#['lO#]'lO~PA}Oa%mOh%VO!g#vO!l%dO'y%mO(q'nO~O!p'rO#`'pO~PC]Os!nO!S!oO(UTO(XUO(d!mO(n!sO~O!_XOs(lX!S(lX!b(lX!c(lX!d(lX!|(lX#T(lX#U(lX#V(lX#W(lX#X(lX#[(lX#](lX(T(lX(U(lX(X(lX(d(lX(n(lX~O!c'jO!d'jO(T!lO~PC{O(O'vO(P'vO(Q'xO~O_!}O(U'zO(V!}O(W'zO~O_#QO(W'zO(X'zO(Y#QO~Ov'|O~P%[Ox#SO!U#TO(a#TO(b(PO~O![(RO!Y'VX!Y']X!]'VX!]']X~P+}O!](TO!Y(gX~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!](TO!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(`VO(q$YO(x#|O(y#}O~O!Y(gX~PGvO!Y(YO~O!Y(tX!](tX!g(tX!k(tX(q(tX~O#`(tX#k#dX!^(tX~PIyO#`(ZO!Y(vX!](vX~O!]([O!Y(uX~O!Y(_O~O#`$eO~PIyO!^(`O~P`OR#zO!Q#yO!S#{O!l#xO(`VOP!na[!naj!nar!na!]!na!p!na#R!na#n!na#o!na#p!na#q!na#r!na#s!na#t!na#u!na#v!na#x!na#z!na#{!na(q!na(x!na(y!na~Oa!na'y!na'v!na!Y!na!k!nav!na!_!na%i!na!g!na~PKaO!k(aO~O!g#vO#`(bO(q'nO!](sXa(sX'y(sX~O!k(sX~PM|O!S%gO!_%hO!|]O#i(gO#j(fO(S%fO~O!](hO!k(rX~O!k(jO~O!S%gO!_%hO#j(fO(S%fO~OP(fXR(fX[(fXj(fXr(fX!Q(fX!S(fX!](fX!l(fX!p(fX#R(fX#n(fX#o(fX#p(fX#q(fX#r(fX#s(fX#t(fX#u(fX#v(fX#x(fX#z(fX#{(fX(`(fX(q(fX(x(fX(y(fX~O!g#vO!k(fX~P! jOR(lO!Q(kO!l#xO#S$dO!|!{a!S!{a~O!x!{a%h!{a!_!{a#i!{a#j!{a(S!{a~P!#kO!x(pO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_XO!iuO!lZO!oYO!pYO!qYO!svO!u!gO!x!hO$W!kO$niO(S!dO(UTO(XUO(`VO(n[O~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<eO!S${O!_$|O!i=vO!l$xO#j<kO$W%_O$t<gO$v<iO$y%`O(S(tO(UTO(XUO(`$uO(x$}O(y%PO~O#k(vO~O![(xO!k(jP~P%[O(d(zO(n[O~O!S(|O!l#xO(d(zO(n[O~OP;vOQ;vOSfOd=rOe!iOpkOr;vOskOtkOzkO|;vO!O;vO!SWO!WkO!XkO!_!eO!i;yO!lZO!o;vO!p;vO!q;vO!s;zO!u;}O!x!hO$W!kO$n=pO(S)ZO(UTO(XUO(`VO(n[O~O!]$_Oa$qa'y$qa'v$qa!k$qa!Y$qa!_$qa%i$qa!g$qa~Ol)bO~P!&oOh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O%[O!S${O!_$|O!i%aO!l$xO#j%bO$W%_O$t%]O$v%^O$y%`O(S(tO(UTO(XUO(`$uO(x$}O(y%PO~Og(oP~P!+xO!Q)gO!g)fO!_$^X$Z$^X$]$^X$_$^X$f$^X~O!g)fO!_(zX$Z(zX$](zX$_(zX$f(zX~O!Q)gO~P!.RO!Q)gO!_(zX$Z(zX$](zX$_(zX$f(zX~O!_)iO$Z)mO$])hO$_)hO$f)nO~O![)qO~P!)PO$]$hO$_$gO$f)uO~On$zX!Q$zX#S$zX'x$zX(x$zX(y$zX~OgmXg$zXnmX!]mX#`mX~P!/wOx)wO(a)xO(b)zO~On*TO!Q)|O'x)}O(x$}O(y%PO~Og){O~P!0{Og*UO~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<eO!S*WO!_*XO!i=vO!l$xO#j<kO$W%_O$t<gO$v<iO$y%`O(UTO(XUO(`$uO(x$}O(y%PO~O![*[O(S*VO!k(}P~P!1jO#k*^O~O!l*_O~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<eO!S${O!_$|O!i=vO!l$xO#j<kO$W%_O$t<gO$v<iO$y%`O(S*aO(UTO(XUO(`$uO(x$}O(y%PO~O![*dO!Y)OP~P!3iOr*pOs!nO!S*fO!b*nO!c*hO!d*hO!l*_O#[*oO%`*jO(T!lO(UTO(XUO(d!mO~O!^*mO~P!5^O#S$dOn(_X!Q(_X'x(_X(x(_X(y(_X!](_X#`(_X~Og(_X$O(_X~P!6`On*uO#`*tOg(^X!](^X~O!]*vOg(]X~Oj%cOk%cOl%cO(S&XOg(]P~Os*yO~O!l+OO~O(S(tO~Op+TO!S%gO![#iO!_%hO!|]O#i#lO#j#iO(S%fO!k(rP~O!g#vO#k+UO~O!S%gO![+WO!]([O!_%hO(S%fO!Y(uP~Os'YO!S+YO![+XO(UTO(XUO(d(zO~O!^(wP~P!9iO!]+ZOa)SX'y)SX~OP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO#z$WO#{$XO(`VO(q$YO(x#|O(y#}O~Oa!ja!]!ja'y!ja'v!ja!Y!ja!k!jav!ja!_!ja%i!ja!g!ja~P!:aOR#zO!Q#yO!S#{O!l#xO(`VOP!ra[!raj!rar!ra!]!ra!p!ra#R!ra#n!ra#o!ra#p!ra#q!ra#r!ra#s!ra#t!ra#u!ra#v!ra#x!ra#z!ra#{!ra(q!ra(x!ra(y!ra~Oa!ra'y!ra'v!ra!Y!ra!k!rav!ra!_!ra%i!ra!g!ra~P!<wOR#zO!Q#yO!S#{O!l#xO(`VOP!ta[!taj!tar!ta!]!ta!p!ta#R!ta#n!ta#o!ta#p!ta#q!ta#r!ta#s!ta#t!ta#u!ta#v!ta#x!ta#z!ta#{!ta(q!ta(x!ta(y!ta~Oa!ta'y!ta'v!ta!Y!ta!k!tav!ta!_!ta%i!ta!g!ta~P!?_Oh%VOn+dO!_'^O%i+cO~O!g+fOa([X!_([X'y([X!]([X~Oa%mO!_XO'y%mO~Oh%VO!l%dO~Oh%VO!l%dO(S%fO~O!g#vO#k(vO~Ob+qO%j+rO(S+nO(UTO(XUO!^)WP~O!]+sO`)VX~O[+wO~O`+xO~O!_&OO(S%fO(T!lO`)VP~Oh%VO#`+}O~Oh%VOn,QO!_$|O~O!_,SO~O!Q,UO!_XO~O%n%uO~O!x,ZO~Oe,`O~Ob,aO(S#nO(UTO(XUO!^)UP~Oe%|O~O%j!QO(S&XO~P=[O[,fO`,eO~OPYOQYOSfOdzOeyOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!iuO!lZO!oYO!pYO!qYO!svO!xxO!|]O$niO%h}O(UTO(XUO(`VO(n[O~O!_!eO!u!gO$W!kO(S!dO~P!F_O`,eOa%mO'y%mO~OPYOQYOSfOd!jOe!iOpkOrYOskOtkOzkO|YO!OYO!SWO!WkO!XkO!_!eO!iuO!lZO!oYO!pYO!qYO!svO!x!hO$W!kO$niO(S!dO(UTO(XUO(`VO(n[O~Oa,kOl!OO!uwO%l!OO%m!OO%n!OO~P!HwO!l&mO~O&],qO~O!_,sO~O&n,uO&p,vOP&kaQ&kaS&kaY&kaa&kad&kae&kal&kap&kar&kas&kat&kaz&ka|&ka!O&ka!S&ka!W&ka!X&ka!_&ka!i&ka!l&ka!o&ka!p&ka!q&ka!s&ka!u&ka!x&ka!|&ka$W&ka$n&ka%h&ka%j&ka%l&ka%m&ka%n&ka%q&ka%s&ka%v&ka%w&ka%y&ka&V&ka&]&ka&_&ka&a&ka&c&ka&f&ka&l&ka&r&ka&t&ka&v&ka&x&ka&z&ka'v&ka(S&ka(U&ka(X&ka(`&ka(n&ka!^&ka&d&kab&ka&i&ka~O(S,{O~Oh!eX!]!RX!^!RX!g!RX!g!eX!l!eX#`!RX~O!]!eX!^!eX~P# }O!g-QO#`-POh(iX!]#hX!^#hX!g(iX!l(iX~O!](iX!^(iX~P#!pOh%VO!g-SO!l%dO!]!aX!^!aX~Os!nO!S!oO(UTO(XUO(d!mO~OP;vOQ;vOSfOd=rOe!iOpkOr;vOskOtkOzkO|;vO!O;vO!SWO!WkO!XkO!_!eO!i;yO!lZO!o;vO!p;vO!q;vO!s;zO!u;}O!x!hO$W!kO$n=pO(UTO(XUO(`VO(n[O~O(S<rO~P#$VO!]-WO!^(hX~O!^-YO~O!g-QO#`-PO!]#hX!^#hX~O!]-ZO!^(wX~O!^-]O~O!c-^O!d-^O(T!lO~P##tO!^-aO~P'_On-dO!_'^O~O!Y-iO~Os!{a!b!{a!c!{a!d!{a#T!{a#U!{a#V!{a#W!{a#X!{a#[!{a#]!{a(T!{a(U!{a(X!{a(d!{a(n!{a~P!#kO!p-nO#`-lO~PC]O!c-pO!d-pO(T!lO~PC{Oa%mO#`-lO'y%mO~Oa%mO!g#vO#`-lO'y%mO~Oa%mO!g#vO!p-nO#`-lO'y%mO(q'nO~O(O'vO(P'vO(Q-uO~Ov-vO~O!Y'Va!]'Va~P!:aO![-zO!Y'VX!]'VX~P%[O!](TO!Y(ga~O!Y(ga~PGvO!]([O!Y(ua~O!S%gO![.OO!_%hO(S%fO!Y']X!]']X~O#`.QO!](sa!k(saa(sa'y(sa~O!g#vO~P#,]O!](hO!k(ra~O!S%gO!_%hO#j.UO(S%fO~Op.ZO!S%gO![.WO!_%hO!|]O#i.YO#j.WO(S%fO!]'`X!k'`X~OR._O!l#xO~Oh%VOn.bO!_'^O%i.aO~Oa#ci!]#ci'y#ci'v#ci!Y#ci!k#civ#ci!_#ci%i#ci!g#ci~P!:aOn=|O!Q)|O'x)}O(x$}O(y%PO~O#k#_aa#_a#`#_a'y#_a!]#_a!k#_a!_#_a!Y#_a~P#/XO#k(_XP(_XR(_X[(_Xa(_Xj(_Xr(_X!S(_X!l(_X!p(_X#R(_X#n(_X#o(_X#p(_X#q(_X#r(_X#s(_X#t(_X#u(_X#v(_X#x(_X#z(_X#{(_X'y(_X(`(_X(q(_X!k(_X!Y(_X'v(_Xv(_X!_(_X%i(_X!g(_X~P!6`O!].oO!k(jX~P!:aO!k.rO~O!Y.tO~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O(`VO[#mia#mij#mir#mi!]#mi#R#mi#o#mi#p#mi#q#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi'y#mi(q#mi(x#mi(y#mi'v#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#n#mi~P#2wO#n$OO~P#2wOP$[OR#zOr$aO!Q#yO!S#{O!l#xO!p$[O#n$OO#o$PO#p$PO#q$PO(`VO[#mia#mij#mi!]#mi#R#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi'y#mi(q#mi(x#mi(y#mi'v#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#r#mi~P#5fO#r$QO~P#5fOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO(`VOa#mi!]#mi#x#mi#z#mi#{#mi'y#mi(q#mi(x#mi(y#mi'v#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#v#mi~P#8TOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO(`VO(y#}Oa#mi!]#mi#z#mi#{#mi'y#mi(q#mi(x#mi'v#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#x$UO~P#:kO#x#mi~P#:kO#v$SO~P#8TOP$[OR#zO[$cOj$ROr$aO!Q#yO!S#{O!l#xO!p$[O#R$RO#n$OO#o$PO#p$PO#q$PO#r$QO#s$RO#t$RO#u$bO#v$SO#x$UO(`VO(x#|O(y#}Oa#mi!]#mi#{#mi'y#mi(q#mi'v#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~O#z#mi~P#=aO#z$WO~P#=aOP]XR]X[]Xj]Xr]X!Q]X!S]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(`]X(q]X(x]X(y]X!]]X!^]X~O$O]X~P#@OOP$[OR#zO[<_Oj<SOr<]O!Q#yO!S#{O!l#xO!p$[O#R<SO#n<PO#o<QO#p<QO#q<QO#r<RO#s<SO#t<SO#u<^O#v<TO#x<VO#z<XO#{<YO(`VO(q$YO(x#|O(y#}O~O$O.vO~P#B]O#S$dO#`<`O$Q<`O$O(fX!^(fX~P! jOa'ca!]'ca'y'ca'v'ca!k'ca!Y'cav'ca!_'ca%i'ca!g'ca~P!:aO[#mia#mij#mir#mi!]#mi#R#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi'y#mi(q#mi'v#mi!Y#mi!k#miv#mi!_#mi%i#mi!g#mi~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O#n$OO#o$PO#p$PO#q$PO(`VO(x#mi(y#mi~P#E_On=|O!Q)|O'x)}O(x$}O(y%POP#miR#mi!S#mi!l#mi!p#mi#n#mi#o#mi#p#mi#q#mi(`#mi~P#E_O!].zOg(oX~P!0{Og.|O~Oa$Pi!]$Pi'y$Pi'v$Pi!Y$Pi!k$Piv$Pi!_$Pi%i$Pi!g$Pi~P!:aO$].}O$_.}O~O$]/OO$_/OO~O!g)fO#`/PO!_$cX$Z$cX$]$cX$_$cX$f$cX~O![/QO~O!_)iO$Z/SO$])hO$_)hO$f/TO~O!]<ZO!^(eX~P#B]O!^/UO~O!g)fO$f(zX~O$f/WO~Ov/XO~P!&oOx)wO(a)xO(b/[O~O!S/_O~O(x$}On%aa!Q%aa'x%aa(y%aa!]%aa#`%aa~Og%aa$O%aa~P#LaO(y%POn%ca!Q%ca'x%ca(x%ca!]%ca#`%ca~Og%ca$O%ca~P#MSO!]fX!gfX!kfX!k$zX(qfX~P!/wO![/hO!]([O(S/gO!Y(uP!Y)OP~P!1jOr*pO!b*nO!c*hO!d*hO!l*_O#[*oO%`*jO(T!lO(UTO(XUO~Os<oO!S/iO![+XO!^*mO(d<nO!^(wP~P#NmO!k/jO~P#/XO!]/kO!g#vO(q'nO!k(}X~O!k/pO~O!S%gO![*[O!_%hO(S%fO!k(}P~O#k/rO~O!Y$zX!]$zX!g%RX~P!/wO!]/sO!Y)OX~P#/XO!g/uO~O!Y/wO~OpkO(S/xO~P.iOh%VOr/}O!g#vO!l%dO(q'nO~O!g+fO~Oa%mO!]0RO'y%mO~O!^0TO~P!5^O!c0UO!d0UO(T!lO~P##tOs!nO!S0VO(UTO(XUO(d!mO~O#[0XO~Og%aa!]%aa#`%aa$O%aa~P!0{Og%ca!]%ca#`%ca$O%ca~P!0{Oj%cOk%cOl%cO(S&XOg'lX!]'lX~O!]*vOg(]a~Og0bO~OR0cO!Q0cO!S0dO#S$dOn}a'x}a(x}a(y}a!]}a#`}a~Og}a$O}a~P$&vO!Q)|O'x)}On$sa(x$sa(y$sa!]$sa#`$sa~Og$sa$O$sa~P$'rO!Q)|O'x)}On$ua(x$ua(y$ua!]$ua#`$ua~Og$ua$O$ua~P$(eO#k0gO~Og%Ta!]%Ta#`%Ta$O%Ta~P!0{On0iO#`0hOg(^a!](^a~O!g#vO~O#k0lO~O!]+ZOa)Sa'y)Sa~OR#zO!Q#yO!S#{O!l#xO(`VOP!ri[!rij!rir!ri!]!ri!p!ri#R!ri#n!ri#o!ri#p!ri#q!ri#r!ri#s!ri#t!ri#u!ri#v!ri#x!ri#z!ri#{!ri(q!ri(x!ri(y!ri~Oa!ri'y!ri'v!ri!Y!ri!k!riv!ri!_!ri%i!ri!g!ri~P$*bOh%VOr%XOs$tOt$tOz%YO|%ZO!O<eO!S${O!_$|O!i=vO!l$xO#j<kO$W%_O$t<gO$v<iO$y%`O(UTO(XUO(`$uO(x$}O(y%PO~Op0uO%]0vO(S0tO~P$,xO!g+fOa([a!_([a'y([a!]([a~O#k0|O~O[]X!]fX!^fX~O!]0}O!^)WX~O!^1PO~O[1QO~Ob1SO(S+nO(UTO(XUO~O!_&OO(S%fO`'tX!]'tX~O!]+sO`)Va~O!k1VO~P!:aO[1YO~O`1ZO~O#`1^O~On1aO!_$|O~O(d(zO!^)TP~Oh%VOn1jO!_1gO%i1iO~O[1tO!]1rO!^)UX~O!^1uO~O`1wOa%mO'y%mO~O(S#nO(UTO(XUO~O#S$dO#`$eO$Q$eOP(fXR(fX[(fXr(fX!Q(fX!S(fX!](fX!l(fX!p(fX#R(fX#n(fX#o(fX#p(fX#q(fX#r(fX#s(fX#t(fX#u(fX#v(fX#x(fX#z(fX#{(fX(`(fX(q(fX(x(fX(y(fX~Oj1zO&Z1{Oa(fX~P$2cOj1zO#`$eO&Z1{O~Oa1}O~P%[Oa2PO~O&d2SOP&biQ&biS&biY&bia&bid&bie&bil&bip&bir&bis&bit&biz&bi|&bi!O&bi!S&bi!W&bi!X&bi!_&bi!i&bi!l&bi!o&bi!p&bi!q&bi!s&bi!u&bi!x&bi!|&bi$W&bi$n&bi%h&bi%j&bi%l&bi%m&bi%n&bi%q&bi%s&bi%v&bi%w&bi%y&bi&V&bi&]&bi&_&bi&a&bi&c&bi&f&bi&l&bi&r&bi&t&bi&v&bi&x&bi&z&bi'v&bi(S&bi(U&bi(X&bi(`&bi(n&bi!^&bib&bi&i&bi~Ob2YO!^2WO&i2XO~P`O!_XO!l2[O~O&p,vOP&kiQ&kiS&kiY&kia&kid&kie&kil&kip&kir&kis&kit&kiz&ki|&ki!O&ki!S&ki!W&ki!X&ki!_&ki!i&ki!l&ki!o&ki!p&ki!q&ki!s&ki!u&ki!x&ki!|&ki$W&ki$n&ki%h&ki%j&ki%l&ki%m&ki%n&ki%q&ki%s&ki%v&ki%w&ki%y&ki&V&ki&]&ki&_&ki&a&ki&c&ki&f&ki&l&ki&r&ki&t&ki&v&ki&x&ki&z&ki'v&ki(S&ki(U&ki(X&ki(`&ki(n&ki!^&ki&d&kib&ki&i&ki~O!Y2bO~O!]!aa!^!aa~P#B]Os!nO!S!oO![2hO(d!mO!]'WX!^'WX~P@cO!]-WO!^(ha~O!]'^X!^'^X~P!9iO!]-ZO!^(wa~O!^2oO~P'_Oa%mO#`2xO'y%mO~Oa%mO!g#vO#`2xO'y%mO~Oa%mO!g#vO!p2|O#`2xO'y%mO(q'nO~Oa%mO'y%mO~P!:aO!]$_Ov$qa~O!Y'Vi!]'Vi~P!:aO!](TO!Y(gi~O!]([O!Y(ui~O!Y(vi!](vi~P!:aO!](si!k(sia(si'y(si~P!:aO#`3OO!](si!k(sia(si'y(si~O!](hO!k(ri~O!S%gO!_%hO!|]O#i3TO#j3SO(S%fO~O!S%gO!_%hO#j3SO(S%fO~On3[O!_'^O%i3ZO~Oh%VOn3[O!_'^O%i3ZO~O#k%aaP%aaR%aa[%aaa%aaj%aar%aa!S%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa'y%aa(`%aa(q%aa!k%aa!Y%aa'v%aav%aa!_%aa%i%aa!g%aa~P#LaO#k%caP%caR%ca[%caa%caj%car%ca!S%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca'y%ca(`%ca(q%ca!k%ca!Y%ca'v%cav%ca!_%ca%i%ca!g%ca~P#MSO#k%aaP%aaR%aa[%aaa%aaj%aar%aa!S%aa!]%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa'y%aa(`%aa(q%aa!k%aa!Y%aa'v%aa#`%aav%aa!_%aa%i%aa!g%aa~P#/XO#k%caP%caR%ca[%caa%caj%car%ca!S%ca!]%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca'y%ca(`%ca(q%ca!k%ca!Y%ca'v%ca#`%cav%ca!_%ca%i%ca!g%ca~P#/XO#k}aP}a[}aa}aj}ar}a!l}a!p}a#R}a#n}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#x}a#z}a#{}a'y}a(`}a(q}a!k}a!Y}a'v}av}a!_}a%i}a!g}a~P$&vO#k$saP$saR$sa[$saa$saj$sar$sa!S$sa!l$sa!p$sa#R$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#t$sa#u$sa#v$sa#x$sa#z$sa#{$sa'y$sa(`$sa(q$sa!k$sa!Y$sa'v$sav$sa!_$sa%i$sa!g$sa~P$'rO#k$uaP$uaR$ua[$uaa$uaj$uar$ua!S$ua!l$ua!p$ua#R$ua#n$ua#o$ua#p$ua#q$ua#r$ua#s$ua#t$ua#u$ua#v$ua#x$ua#z$ua#{$ua'y$ua(`$ua(q$ua!k$ua!Y$ua'v$uav$ua!_$ua%i$ua!g$ua~P$(eO#k%TaP%TaR%Ta[%Taa%Taj%Tar%Ta!S%Ta!]%Ta!l%Ta!p%Ta#R%Ta#n%Ta#o%Ta#p%Ta#q%Ta#r%Ta#s%Ta#t%Ta#u%Ta#v%Ta#x%Ta#z%Ta#{%Ta'y%Ta(`%Ta(q%Ta!k%Ta!Y%Ta'v%Ta#`%Tav%Ta!_%Ta%i%Ta!g%Ta~P#/XOa#cq!]#cq'y#cq'v#cq!Y#cq!k#cqv#cq!_#cq%i#cq!g#cq~P!:aO![3dO!]'XX!k'XX~P%[O!].oO!k(ja~O!].oO!k(ja~P!:aO!Y3gO~O$O!na!^!na~PKaO$O!ja!]!ja!^!ja~P#B]O$O!ra!^!ra~P!<wO$O!ta!^!ta~P!?_Og'[X!]'[X~P!+xO!].zOg(oa~OSfO!_3{O$d3|O~O!^4QO~Ov4RO~P#/XOa$mq!]$mq'y$mq'v$mq!Y$mq!k$mqv$mq!_$mq%i$mq!g$mq~P!:aO!Y4TO~P!&oO!S4UO~O!Q)|O'x)}O(y%POn'ha(x'ha!]'ha#`'ha~Og'ha$O'ha~P%,XO!Q)|O'x)}On'ja(x'ja(y'ja!]'ja#`'ja~Og'ja$O'ja~P%,zO(q$YO~P#/XO!YfX!Y$zX!]fX!]$zX!g%RX#`fX~P!/wO(S<xO~P!1jO!S%gO![4XO!_%hO(S%fO!]'dX!k'dX~O!]/kO!k(}a~O!]/kO!g#vO!k(}a~O!]/kO!g#vO(q'nO!k(}a~Og$|i!]$|i#`$|i$O$|i~P!0{O![4aO!Y'fX!]'fX~P!3iO!]/sO!Y)Oa~O!]/sO!Y)Oa~P#/XOP]XR]X[]Xj]Xr]X!Q]X!S]X!Y]X!]]X!l]X!p]X#R]X#S]X#`]X#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(`]X(q]X(x]X(y]X~Oj%YX!g%YX~P%0kOj4fO!g#vO~Oh%VO!g#vO!l%dO~Oh%VOr4kO!l%dO(q'nO~Or4pO!g#vO(q'nO~Os!nO!S4qO(UTO(XUO(d!mO~O(x$}On%ai!Q%ai'x%ai(y%ai!]%ai#`%ai~Og%ai$O%ai~P%4[O(y%POn%ci!Q%ci'x%ci(x%ci!]%ci#`%ci~Og%ci$O%ci~P%4}Og(^i!](^i~P!0{O#`4wOg(^i!](^i~P!0{O!k4zO~Oa$oq!]$oq'y$oq'v$oq!Y$oq!k$oqv$oq!_$oq%i$oq!g$oq~P!:aO!Y5QO~O!]5RO!_)PX~P#/XOa$zX!_$zX%^]X'y$zX!]$zX~P!/wO%^5UOaoXnoX!QoX!_oX'xoX'yoX(xoX(yoX!]oX~Op5VO(S#nO~O%^5UO~Ob5]O%j5^O(S+nO(UTO(XUO!]'sX!^'sX~O!]0}O!^)Wa~O[5bO~O`5cO~Oa%mO'y%mO~P#/XO!]5kO#`5mO!^)TX~O!^5nO~Or5tOs!nO!S*fO!b!yO!c!vO!d!vO!|;wO#T!pO#U!pO#V!pO#W!pO#X!pO#[5sO#]!zO(T!lO(UTO(XUO(d!mO(n!sO~O!^5rO~P%:YOn5yO!_1gO%i5xO~Oh%VOn5yO!_1gO%i5xO~Ob6QO(S#nO(UTO(XUO!]'rX!^'rX~O!]1rO!^)Ua~O(UTO(XUO(d6SO~O`6WO~Oj6ZO&Z6[O~PM|O!k6]O~P%[Oa6_O~Oa6_O~P%[Ob2YO!^6dO&i2XO~P`O!g6fO~O!g6hOh(ii!](ii!^(ii!g(ii!l(iir(ii(q(ii~O!]#hi!^#hi~P#B]O#`6iO!]#hi!^#hi~O!]!ai!^!ai~P#B]Oa%mO#`6rO'y%mO~Oa%mO!g#vO#`6rO'y%mO~O!](sq!k(sqa(sq'y(sq~P!:aO!](hO!k(rq~O!S%gO!_%hO#j6yO(S%fO~O!_'^O%i6|O~On7QO!_'^O%i6|O~O#k'haP'haR'ha['haa'haj'har'ha!S'ha!l'ha!p'ha#R'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#t'ha#u'ha#v'ha#x'ha#z'ha#{'ha'y'ha(`'ha(q'ha!k'ha!Y'ha'v'hav'ha!_'ha%i'ha!g'ha~P%,XO#k'jaP'jaR'ja['jaa'jaj'jar'ja!S'ja!l'ja!p'ja#R'ja#n'ja#o'ja#p'ja#q'ja#r'ja#s'ja#t'ja#u'ja#v'ja#x'ja#z'ja#{'ja'y'ja(`'ja(q'ja!k'ja!Y'ja'v'jav'ja!_'ja%i'ja!g'ja~P%,zO#k$|iP$|iR$|i[$|ia$|ij$|ir$|i!S$|i!]$|i!l$|i!p$|i#R$|i#n$|i#o$|i#p$|i#q$|i#r$|i#s$|i#t$|i#u$|i#v$|i#x$|i#z$|i#{$|i'y$|i(`$|i(q$|i!k$|i!Y$|i'v$|i#`$|iv$|i!_$|i%i$|i!g$|i~P#/XO#k%aiP%aiR%ai[%aia%aij%air%ai!S%ai!l%ai!p%ai#R%ai#n%ai#o%ai#p%ai#q%ai#r%ai#s%ai#t%ai#u%ai#v%ai#x%ai#z%ai#{%ai'y%ai(`%ai(q%ai!k%ai!Y%ai'v%aiv%ai!_%ai%i%ai!g%ai~P%4[O#k%ciP%ciR%ci[%cia%cij%cir%ci!S%ci!l%ci!p%ci#R%ci#n%ci#o%ci#p%ci#q%ci#r%ci#s%ci#t%ci#u%ci#v%ci#x%ci#z%ci#{%ci'y%ci(`%ci(q%ci!k%ci!Y%ci'v%civ%ci!_%ci%i%ci!g%ci~P%4}O!]'Xa!k'Xa~P!:aO!].oO!k(ji~O$O#ci!]#ci!^#ci~P#B]OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O(`VO[#mij#mir#mi#R#mi#o#mi#p#mi#q#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(q#mi(x#mi(y#mi!]#mi!^#mi~O#n#mi~P%MXO#n<PO~P%MXOP$[OR#zOr<]O!Q#yO!S#{O!l#xO!p$[O#n<PO#o<QO#p<QO#q<QO(`VO[#mij#mi#R#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(q#mi(x#mi(y#mi!]#mi!^#mi~O#r#mi~P& aO#r<RO~P& aOP$[OR#zO[<_Oj<SOr<]O!Q#yO!S#{O!l#xO!p$[O#R<SO#n<PO#o<QO#p<QO#q<QO#r<RO#s<SO#t<SO#u<^O(`VO#x#mi#z#mi#{#mi$O#mi(q#mi(x#mi(y#mi!]#mi!^#mi~O#v#mi~P&#iOP$[OR#zO[<_Oj<SOr<]O!Q#yO!S#{O!l#xO!p$[O#R<SO#n<PO#o<QO#p<QO#q<QO#r<RO#s<SO#t<SO#u<^O#v<TO(`VO(y#}O#z#mi#{#mi$O#mi(q#mi(x#mi!]#mi!^#mi~O#x<VO~P&%jO#x#mi~P&%jO#v<TO~P&#iOP$[OR#zO[<_Oj<SOr<]O!Q#yO!S#{O!l#xO!p$[O#R<SO#n<PO#o<QO#p<QO#q<QO#r<RO#s<SO#t<SO#u<^O#v<TO#x<VO(`VO(x#|O(y#}O#{#mi$O#mi(q#mi!]#mi!^#mi~O#z#mi~P&'yO#z<XO~P&'yOa#|y!]#|y'y#|y'v#|y!Y#|y!k#|yv#|y!_#|y%i#|y!g#|y~P!:aO[#mij#mir#mi#R#mi#r#mi#s#mi#t#mi#u#mi#v#mi#x#mi#z#mi#{#mi$O#mi(q#mi!]#mi!^#mi~OP$[OR#zO!Q#yO!S#{O!l#xO!p$[O#n<PO#o<QO#p<QO#q<QO(`VO(x#mi(y#mi~P&*uOn=}O!Q)|O'x)}O(x$}O(y%POP#miR#mi!S#mi!l#mi!p#mi#n#mi#o#mi#p#mi#q#mi(`#mi~P&*uO#S$dOP(_XR(_X[(_Xj(_Xn(_Xr(_X!Q(_X!S(_X!l(_X!p(_X#R(_X#n(_X#o(_X#p(_X#q(_X#r(_X#s(_X#t(_X#u(_X#v(_X#x(_X#z(_X#{(_X$O(_X'x(_X(`(_X(q(_X(x(_X(y(_X!](_X!^(_X~O$O$Pi!]$Pi!^$Pi~P#B]O$O!ri!^!ri~P$*bOg'[a!]'[a~P!0{O!^7dO~O!]'ca!^'ca~P#B]O!Y7eO~P#/XO!g#vO(q'nO!]'da!k'da~O!]/kO!k(}i~O!]/kO!g#vO!k(}i~Og$|q!]$|q#`$|q$O$|q~P!0{O!Y'fa!]'fa~P#/XO!g7lO~O!]/sO!Y)Oi~P#/XO!]/sO!Y)Oi~O!Y7oO~Oh%VOr7tO!l%dO(q'nO~Oj7vO!g#vO~Or7yO!g#vO(q'nO~O!Q)|O'x)}O(y%POn'ia(x'ia!]'ia#`'ia~Og'ia$O'ia~P&3vO!Q)|O'x)}On'ka(x'ka(y'ka!]'ka#`'ka~Og'ka$O'ka~P&4iO!Y7{O~Og%Oq!]%Oq#`%Oq$O%Oq~P!0{Og(^q!](^q~P!0{O#`7|Og(^q!](^q~P!0{Oa$oy!]$oy'y$oy'v$oy!Y$oy!k$oyv$oy!_$oy%i$oy!g$oy~P!:aO!g6hO~O!]5RO!_)Pa~O!_'^OP$TaR$Ta[$Taj$Tar$Ta!Q$Ta!S$Ta!]$Ta!l$Ta!p$Ta#R$Ta#n$Ta#o$Ta#p$Ta#q$Ta#r$Ta#s$Ta#t$Ta#u$Ta#v$Ta#x$Ta#z$Ta#{$Ta(`$Ta(q$Ta(x$Ta(y$Ta~O%i6|O~P&7ZO%^8QOa%[i!_%[i'y%[i!]%[i~Oa#cy!]#cy'y#cy'v#cy!Y#cy!k#cyv#cy!_#cy%i#cy!g#cy~P!:aO[8SO~Ob8UO(S+nO(UTO(XUO~O!]0}O!^)Wi~O`8YO~O(d(zO!]'oX!^'oX~O!]5kO!^)Ta~O!^8cO~P%:YO(n!sO~P$${O#[8dO~O!_1gO~O!_1gO%i8fO~On8iO!_1gO%i8fO~O[8nO!]'ra!^'ra~O!]1rO!^)Ui~O!k8rO~O!k8sO~O!k8vO~O!k8vO~P%[Oa8xO~O!g8yO~O!k8zO~O!](vi!^(vi~P#B]Oa%mO#`9SO'y%mO~O!](sy!k(sya(sy'y(sy~P!:aO!](hO!k(ry~O%i9VO~P&7ZO!_'^O%i9VO~O#k$|qP$|qR$|q[$|qa$|qj$|qr$|q!S$|q!]$|q!l$|q!p$|q#R$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#t$|q#u$|q#v$|q#x$|q#z$|q#{$|q'y$|q(`$|q(q$|q!k$|q!Y$|q'v$|q#`$|qv$|q!_$|q%i$|q!g$|q~P#/XO#k'iaP'iaR'ia['iaa'iaj'iar'ia!S'ia!l'ia!p'ia#R'ia#n'ia#o'ia#p'ia#q'ia#r'ia#s'ia#t'ia#u'ia#v'ia#x'ia#z'ia#{'ia'y'ia(`'ia(q'ia!k'ia!Y'ia'v'iav'ia!_'ia%i'ia!g'ia~P&3vO#k'kaP'kaR'ka['kaa'kaj'kar'ka!S'ka!l'ka!p'ka#R'ka#n'ka#o'ka#p'ka#q'ka#r'ka#s'ka#t'ka#u'ka#v'ka#x'ka#z'ka#{'ka'y'ka(`'ka(q'ka!k'ka!Y'ka'v'kav'ka!_'ka%i'ka!g'ka~P&4iO#k%OqP%OqR%Oq[%Oqa%Oqj%Oqr%Oq!S%Oq!]%Oq!l%Oq!p%Oq#R%Oq#n%Oq#o%Oq#p%Oq#q%Oq#r%Oq#s%Oq#t%Oq#u%Oq#v%Oq#x%Oq#z%Oq#{%Oq'y%Oq(`%Oq(q%Oq!k%Oq!Y%Oq'v%Oq#`%Oqv%Oq!_%Oq%i%Oq!g%Oq~P#/XO!]'Xi!k'Xi~P!:aO$O#cq!]#cq!^#cq~P#B]O(x$}OP%aaR%aa[%aaj%aar%aa!S%aa!l%aa!p%aa#R%aa#n%aa#o%aa#p%aa#q%aa#r%aa#s%aa#t%aa#u%aa#v%aa#x%aa#z%aa#{%aa$O%aa(`%aa(q%aa!]%aa!^%aa~On%aa!Q%aa'x%aa(y%aa~P&HnO(y%POP%caR%ca[%caj%car%ca!S%ca!l%ca!p%ca#R%ca#n%ca#o%ca#p%ca#q%ca#r%ca#s%ca#t%ca#u%ca#v%ca#x%ca#z%ca#{%ca$O%ca(`%ca(q%ca!]%ca!^%ca~On%ca!Q%ca'x%ca(x%ca~P&JuOn=}O!Q)|O'x)}O(y%PO~P&HnOn=}O!Q)|O'x)}O(x$}O~P&JuOR0cO!Q0cO!S0dO#S$dOP}a[}aj}an}ar}a!l}a!p}a#R}a#n}a#o}a#p}a#q}a#r}a#s}a#t}a#u}a#v}a#x}a#z}a#{}a$O}a'x}a(`}a(q}a(x}a(y}a!]}a!^}a~O!Q)|O'x)}OP$saR$sa[$saj$san$sar$sa!S$sa!l$sa!p$sa#R$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#t$sa#u$sa#v$sa#x$sa#z$sa#{$sa$O$sa(`$sa(q$sa(x$sa(y$sa!]$sa!^$sa~O!Q)|O'x)}OP$uaR$ua[$uaj$uan$uar$ua!S$ua!l$ua!p$ua#R$ua#n$ua#o$ua#p$ua#q$ua#r$ua#s$ua#t$ua#u$ua#v$ua#x$ua#z$ua#{$ua$O$ua(`$ua(q$ua(x$ua(y$ua!]$ua!^$ua~On=}O!Q)|O'x)}O(x$}O(y%PO~OP%TaR%Ta[%Taj%Tar%Ta!S%Ta!l%Ta!p%Ta#R%Ta#n%Ta#o%Ta#p%Ta#q%Ta#r%Ta#s%Ta#t%Ta#u%Ta#v%Ta#x%Ta#z%Ta#{%Ta$O%Ta(`%Ta(q%Ta!]%Ta!^%Ta~P'%zO$O$mq!]$mq!^$mq~P#B]O$O$oq!]$oq!^$oq~P#B]O!^9dO~O$O9eO~P!0{O!g#vO!]'di!k'di~O!g#vO(q'nO!]'di!k'di~O!]/kO!k(}q~O!Y'fi!]'fi~P#/XO!]/sO!Y)Oq~Or9lO!g#vO(q'nO~O[9nO!Y9mO~P#/XO!Y9mO~Oj9tO!g#vO~Og(^y!](^y~P!0{O!]'ma!_'ma~P#/XOa%[q!_%[q'y%[q!]%[q~P#/XO[9yO~O!]0}O!^)Wq~O#`9}O!]'oa!^'oa~O!]5kO!^)Ti~P#B]O!S:PO~O!_1gO%i:SO~O(UTO(XUO(d:XO~O!]1rO!^)Uq~O!k:[O~O!k:]O~O!k:^O~O!k:^O~P%[O#`:aO!]#hy!^#hy~O!]#hy!^#hy~P#B]O%i:fO~P&7ZO!_'^O%i:fO~O$O#|y!]#|y!^#|y~P#B]OP$|iR$|i[$|ij$|ir$|i!S$|i!l$|i!p$|i#R$|i#n$|i#o$|i#p$|i#q$|i#r$|i#s$|i#t$|i#u$|i#v$|i#x$|i#z$|i#{$|i$O$|i(`$|i(q$|i!]$|i!^$|i~P'%zO!Q)|O'x)}O(y%POP'haR'ha['haj'han'har'ha!S'ha!l'ha!p'ha#R'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#t'ha#u'ha#v'ha#x'ha#z'ha#{'ha$O'ha(`'ha(q'ha(x'ha!]'ha!^'ha~O!Q)|O'x)}OP'jaR'ja['jaj'jan'jar'ja!S'ja!l'ja!p'ja#R'ja#n'ja#o'ja#p'ja#q'ja#r'ja#s'ja#t'ja#u'ja#v'ja#x'ja#z'ja#{'ja$O'ja(`'ja(q'ja(x'ja(y'ja!]'ja!^'ja~O(x$}OP%aiR%ai[%aij%ain%air%ai!Q%ai!S%ai!l%ai!p%ai#R%ai#n%ai#o%ai#p%ai#q%ai#r%ai#s%ai#t%ai#u%ai#v%ai#x%ai#z%ai#{%ai$O%ai'x%ai(`%ai(q%ai(y%ai!]%ai!^%ai~O(y%POP%ciR%ci[%cij%cin%cir%ci!Q%ci!S%ci!l%ci!p%ci#R%ci#n%ci#o%ci#p%ci#q%ci#r%ci#s%ci#t%ci#u%ci#v%ci#x%ci#z%ci#{%ci$O%ci'x%ci(`%ci(q%ci(x%ci!]%ci!^%ci~O$O$oy!]$oy!^$oy~P#B]O$O#cy!]#cy!^#cy~P#B]O!g#vO!]'dq!k'dq~O!]/kO!k(}y~O!Y'fq!]'fq~P#/XOr:pO!g#vO(q'nO~O[:tO!Y:sO~P#/XO!Y:sO~Og(^!R!](^!R~P!0{Oa%[y!_%[y'y%[y!]%[y~P#/XO!]0}O!^)Wy~O!]5kO!^)Tq~O(S:zO~O!_1gO%i:}O~O!k;QO~O%i;VO~P&7ZOP$|qR$|q[$|qj$|qr$|q!S$|q!l$|q!p$|q#R$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#t$|q#u$|q#v$|q#x$|q#z$|q#{$|q$O$|q(`$|q(q$|q!]$|q!^$|q~P'%zO!Q)|O'x)}O(y%POP'iaR'ia['iaj'ian'iar'ia!S'ia!l'ia!p'ia#R'ia#n'ia#o'ia#p'ia#q'ia#r'ia#s'ia#t'ia#u'ia#v'ia#x'ia#z'ia#{'ia$O'ia(`'ia(q'ia(x'ia!]'ia!^'ia~O!Q)|O'x)}OP'kaR'ka['kaj'kan'kar'ka!S'ka!l'ka!p'ka#R'ka#n'ka#o'ka#p'ka#q'ka#r'ka#s'ka#t'ka#u'ka#v'ka#x'ka#z'ka#{'ka$O'ka(`'ka(q'ka(x'ka(y'ka!]'ka!^'ka~OP%OqR%Oq[%Oqj%Oqr%Oq!S%Oq!l%Oq!p%Oq#R%Oq#n%Oq#o%Oq#p%Oq#q%Oq#r%Oq#s%Oq#t%Oq#u%Oq#v%Oq#x%Oq#z%Oq#{%Oq$O%Oq(`%Oq(q%Oq!]%Oq!^%Oq~P'%zOg%e!Z!]%e!Z#`%e!Z$O%e!Z~P!0{O!Y;ZO~P#/XOr;[O!g#vO(q'nO~O[;^O!Y;ZO~P#/XO!]'oq!^'oq~P#B]O!]#h!Z!^#h!Z~P#B]O#k%e!ZP%e!ZR%e!Z[%e!Za%e!Zj%e!Zr%e!Z!S%e!Z!]%e!Z!l%e!Z!p%e!Z#R%e!Z#n%e!Z#o%e!Z#p%e!Z#q%e!Z#r%e!Z#s%e!Z#t%e!Z#u%e!Z#v%e!Z#x%e!Z#z%e!Z#{%e!Z'y%e!Z(`%e!Z(q%e!Z!k%e!Z!Y%e!Z'v%e!Z#`%e!Zv%e!Z!_%e!Z%i%e!Z!g%e!Z~P#/XOr;fO!g#vO(q'nO~O!Y;gO~P#/XOr;nO!g#vO(q'nO~O!Y;oO~P#/XOP%e!ZR%e!Z[%e!Zj%e!Zr%e!Z!S%e!Z!l%e!Z!p%e!Z#R%e!Z#n%e!Z#o%e!Z#p%e!Z#q%e!Z#r%e!Z#s%e!Z#t%e!Z#u%e!Z#v%e!Z#x%e!Z#z%e!Z#{%e!Z$O%e!Z(`%e!Z(q%e!Z!]%e!Z!^%e!Z~P'%zOr;rO!g#vO(q'nO~Ov(eX~P1qO!Q%qO~P!)PO(T!lO~P!)PO!YfX!]fX#`fX~P%0kOP]XR]X[]Xj]Xr]X!Q]X!S]X!]]X!]fX!l]X!p]X#R]X#S]X#`]X#`fX#kfX#n]X#o]X#p]X#q]X#r]X#s]X#t]X#u]X#v]X#x]X#z]X#{]X$Q]X(`]X(q]X(x]X(y]X~O!gfX!k]X!kfX(qfX~P'JsOP;vOQ;vOSfOd=rOe!iOpkOr;vOskOtkOzkO|;vO!O;vO!SWO!WkO!XkO!_XO!i;yO!lZO!o;vO!p;vO!q;vO!s;zO!u;}O!x!hO$W!kO$n=pO(S)ZO(UTO(XUO(`VO(n[O~O!]<ZO!^$qa~Oh%VOp%WOr%XOs$tOt$tOz%YO|%ZO!O<fO!S${O!_$|O!i=wO!l$xO#j<lO$W%_O$t<hO$v<jO$y%`O(S(tO(UTO(XUO(`$uO(x$}O(y%PO~Ol)bO~P( iOr!eX(q!eX~P# }Or(iX(q(iX~P#!pO!^]X!^fX~P'JsO!YfX!Y$zX!]fX!]$zX#`fX~P!/wO#k<OO~O!g#vO#k<OO~O#`<`O~Oj<SO~O#`<pO!](vX!^(vX~O#`<`O!](tX!^(tX~O#k<qO~Og<sO~P!0{O#k<yO~O#k<zO~O!g#vO#k<{O~O!g#vO#k<qO~O$O<|O~P#B]O#k<}O~O#k=OO~O#k=TO~O#k=UO~O#k=VO~O#k=WO~O$O=XO~P!0{O$O=YO~P!0{Ok#S#T#U#W#X#[#i#j#u$n$t$v$y%]%^%h%i%j%q%s%v%w%y%{~'}T#o!X'{(T#ps#n#qr!Q'|$]'|(S$_(d~",goto:"$8g)[PPPPPP)]PP)`P)qP+R/WPPPP6bPP6xPP<pPPP@dP@zP@zPPP@zPCSP@zP@zP@zPCWPC]PCzPHtPPPHxPPPPHxK{PPPLRLsPHxPHxPP! RHxPPPHxPHxP!#YHxP!&p!'u!(OP!(r!(v!(r!,TPPPPPPP!,t!'uPP!-U!.vP!2SHxHx!2X!5e!:R!:R!>QPPP!>YHxPPPPPPPPP!AiP!BvPPHx!DXPHxPHxHxHxHxHxPHx!EkP!HuP!K{P!LP!LZ!L_!L_P!HrP!Lc!LcP# iP# mHxPHx# s#$xCW@zP@zP@z@zP#&V@z@z#(i@z#+a@z#-m@z@z#.]#0q#0q#0v#1P#0q#1[PP#0qP@z#1t@z#5s@z@z6bPPP#9xPPP#:c#:cP#:cP#:y#:cPP#;PP#:vP#:v#;d#:v#<O#<U#<X)`#<[)`P#<c#<c#<cP)`P)`P)`P)`PP)`P#<i#<lP#<l)`P#<pP#<sP)`P)`P)`P)`P)`P)`)`PP#<y#=P#=[#=b#=h#=n#=t#>S#>Y#>d#>j#>t#>z#?[#?b#@S#@f#@l#@r#AQ#Ag#C[#Cj#Cq#E]#Ek#G]#Gk#Gq#Gw#G}#HX#H_#He#Ho#IR#IXPPPPPPPPPPP#I_PPPPPPP#JS#MZ#Ns#Nz$ SPPP$&nP$&w$)p$0Z$0^$0a$1`$1c$1j$1rP$1x$1{P$2i$2m$3e$4s$4x$5`PP$5e$5k$5o$5r$5v$5z$6v$7_$7v$7z$7}$8Q$8W$8Z$8_$8cR!|RoqOXst!Z#d%l&p&r&s&u,n,s2S2VY!vQ'^-`1g5qQ%svQ%{yQ&S|Q&h!VS'U!e-WQ'd!iS'j!r!yU*h$|*X*lQ+l%|Q+y&UQ,_&bQ-^']Q-h'eQ-p'kQ0U*nQ1q,`R<m;z%SdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%l%s&Q&i&l&p&r&s&u&y'R'`'p(R(T(Z(b(v(x(|){*f+U+Y,k,n,s-d-l-z.Q.o.v/i0V0d0l0|1j1z1{1}2P2S2V2X2x3O3d4q5y6Z6[6_6r8i8x9SS#q];w!r)]$Z$n'V)q-P-S/Q2h3{5m6i9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sU*{%[<e<fQ+q&OQ,a&eQ,h&mQ0r+dQ0w+fQ1S+rQ1y,fQ3W.bQ5V0vQ5]0}Q6Q1rQ7O3[Q8U5^R9Y7Q'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%l%s&Q&i&l&m&p&r&s&u&y'R'V'`'p(R(T(Z(b(v(x(|)q){*f+U+Y+d,k,n,s-P-S-d-l-z.Q.b.o.v/Q/i0V0d0l0|1j1z1{1}2P2S2V2X2h2x3O3[3d3{4q5m5y6Z6[6_6i6r7Q8i8x9S9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=s!S!nQ!r!v!y!z$|'U']'^'j'k'l*h*l*n*o-W-^-`-p0U0X1g5q5s%[$ti#v$b$c$d$x${%O%Q%]%^%b)w*P*R*T*W*^*d*t*u+c+f+},Q.a.z/_/h/r/s/u0Y0[0g0h0i1^1a1i3Z4U4V4a4f4w5R5U5x6|7l7v7|8Q8f9V9e9n9t:S:f:t:};V;^<^<_<a<b<c<d<g<h<i<j<k<l<t<u<v<w<y<z<}=O=P=Q=R=S=T=U=X=Y=p=x=y=|=}Q&V|Q'S!eS'Y%h-ZQ+q&OQ,a&eQ0f+OQ1S+rQ1X+xQ1x,eQ1y,fQ5]0}Q5f1ZQ6Q1rQ6T1tQ6U1wQ8U5^Q8X5cQ8q6WQ9|8YQ:Y8nR<o*XrnOXst!V!Z#d%l&g&p&r&s&u,n,s2S2VR,c&i&z^OPXYstuvwz!Z!`!g!j!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%l%s&Q&i&l&m&p&r&s&u&y'R'`'p(T(Z(b(v(x(|)q){*f+U+Y+d,k,n,s-P-S-d-l-z.Q.b.o.v/Q/i0V0d0l0|1j1z1{1}2P2S2V2X2h2x3O3[3d3{4q5m5y6Z6[6_6i6r7Q8i8x9S9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=r=s[#]WZ#W#Z'V(R!b%im#h#i#l$x%d%g([(f(g(h*W*[*_+W+X+Z,j-Q.O.U.V.W.Y/h/k2[3S3T4X6h6yQ%vxQ%zyS&P|&UQ&]!TQ'a!hQ'c!iQ(o#sS+k%{%|Q+o&OQ,Y&`Q,^&bS-g'd'eQ.d(pQ0{+lQ1R+rQ1T+sQ1W+wQ1l,ZS1p,_,`Q2t-hQ5[0}Q5`1QQ5e1YQ6P1qQ8T5^Q8W5bQ9x8SR:w9y!U$zi$d%O%Q%]%^%b*P*R*^*t*u.z/r0Y0[0g0h0i4V4w7|9e=p=x=y!^%xy!i!u%z%{%|'T'c'd'e'i's*g+k+l-T-g-h-o/{0O0{2m2t2{4i4j4m7s9pQ+e%vQ,O&YQ,R&ZQ,]&bQ.c(oQ1k,YU1o,^,_,`Q3].dQ5z1lS6O1p1qQ8m6P#f=t#v$b$c$x${)w*T*W*d+c+f+},Q.a/_/h/s/u1^1a1i3Z4U4a4f5R5U5x6|7l7v8Q8f9V9n9t:S:f:t:};V;^<a<c<g<i<k<t<v<y<}=P=R=T=X=|=}o=u<^<_<b<d<h<j<l<u<w<z=O=Q=S=U=YW%Ti%V*v=pS&Y!Q&gQ&Z!RQ&[!SQ+S%cR+|&W%]%Si#v$b$c$d$x${%O%Q%]%^%b)w*P*R*T*W*^*d*t*u+c+f+},Q.a.z/_/h/r/s/u0Y0[0g0h0i1^1a1i3Z4U4V4a4f4w5R5U5x6|7l7v7|8Q8f9V9e9n9t:S:f:t:};V;^<^<_<a<b<c<d<g<h<i<j<k<l<t<u<v<w<y<z<}=O=P=Q=R=S=T=U=X=Y=p=x=y=|=}T)x$u)yV*{%[<e<fW'Y!e%h*X-ZS({#y#zQ+`%qQ+v&RS.](k(lQ1b,SQ4x0cR8^5k'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%l%s&Q&i&l&m&p&r&s&u&y'R'V'`'p(R(T(Z(b(v(x(|)q){*f+U+Y+d,k,n,s-P-S-d-l-z.Q.b.o.v/Q/i0V0d0l0|1j1z1{1}2P2S2V2X2h2x3O3[3d3{4q5m5y6Z6[6_6i6r7Q8i8x9S9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=s$i$^c#Y#e%p%r%t(Q(W(r(w)P)Q)R)S)T)U)V)W)X)Y)[)^)`)e)o+a+u-U-s-x-}.P.n.q.u.w.x.y/]0j2c2f2v2}3c3h3i3j3k3l3m3n3o3p3q3r3s3t3w3x4P5O5Y6k6q6v7V7W7a7b8`8|9Q9[9b9c:c:y;R;x=gT#TV#U'RkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%l%s&Q&i&l&m&p&r&s&u&y'R'V'`'p(R(T(Z(b(v(x(|)q){*f+U+Y+d,k,n,s-P-S-d-l-z.Q.b.o.v/Q/i0V0d0l0|1j1z1{1}2P2S2V2X2h2x3O3[3d3{4q5m5y6Z6[6_6i6r7Q8i8x9S9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sQ'W!eR2i-W!W!nQ!e!r!v!y!z$|'U']'^'j'k'l*X*h*l*n*o-W-^-`-p0U0X1g5q5sR1d,UnqOXst!Z#d%l&p&r&s&u,n,s2S2VQ&w!^Q't!xS(q#u<OQ+i%yQ,W&]Q,X&_Q-e'bQ-r'mS.m(v<qS0k+U<{Q0y+jQ1f,VQ2Z,uQ2],vQ2e-RQ2r-fQ2u-jS5P0l=VQ5W0zS5Z0|=WQ6j2gQ6n2sQ6s2zQ8R5XQ8}6lQ9O6oQ9R6tR:`8z$d$]c#Y#e%r%t(Q(W(r(w)P)Q)R)S)T)U)V)W)X)Y)[)^)`)e)o+a+u-U-s-x-}.P.n.q.u.x.y/]0j2c2f2v2}3c3h3i3j3k3l3m3n3o3p3q3r3s3t3w3x4P5O5Y6k6q6v7V7W7a7b8`8|9Q9[9b9c:c:y;R;x=gS(m#p'gQ(}#zS+_%p.wS.^(l(nR3U._'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%l%s&Q&i&l&m&p&r&s&u&y'R'V'`'p(R(T(Z(b(v(x(|)q){*f+U+Y+d,k,n,s-P-S-d-l-z.Q.b.o.v/Q/i0V0d0l0|1j1z1{1}2P2S2V2X2h2x3O3[3d3{4q5m5y6Z6[6_6i6r7Q8i8x9S9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sS#q];wQ&r!XQ&s!YQ&u![Q&v!]R2R,qQ'_!hQ+b%vQ-c'aS.`(o+eQ2p-bW3Y.c.d0q0sQ6m2qW6z3V3X3]5TU9U6{6}7PU:e9W9X9ZS;T:d:gQ;b;UR;j;cU!wQ'^-`T5o1g5q!Q_OXZ`st!V!Z#d#h%d%l&g&i&p&r&s&u(h,n,s.V2S2V]!pQ!r'^-`1g5qT#q];w%^{OPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%l%s&Q&i&l&m&p&r&s&u&y'R'`'p(R(T(Z(b(v(x(|){*f+U+Y+d,k,n,s-d-l-z.Q.b.o.v/i0V0d0l0|1j1z1{1}2P2S2V2X2x3O3[3d4q5y6Z6[6_6r7Q8i8x9SS({#y#zS.](k(l!s=^$Z$n'V)q-P-S/Q2h3{5m6i9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sU$fd)],hS(n#p'gU*s%R(u3vU0e*z.i7]Q5T0rQ6{3WQ9X7OR:g9Ym!tQ!r!v!y!z'^'j'k'l-`-p1g5q5sQ'r!uS(d#g1|S-n'i'uQ/n*ZQ/{*gQ2|-qQ4]/oQ4i/}Q4j0OQ4o0WQ7h4WS7s4k4mS7w4p4rQ9g7iQ9k7oQ9p7tQ9u7yS:o9l9mS;Y:p:sS;e;Z;[S;m;f;gS;q;n;oR;t;rQ#wbQ'q!uS(c#g1|S(e#m+TQ+V%eQ+g%wQ+m%}U-m'i'r'uQ.R(dQ/m*ZQ/|*gQ0P*iQ0x+hQ1m,[S2y-n-qQ3R.ZS4[/n/oQ4e/yS4h/{0WQ4l0QQ5|1nQ6u2|Q7g4WQ7k4]U7r4i4o4rQ7u4nQ8k5}S9f7h7iQ9j7oQ9r7wQ9s7xQ:V8lQ:m9gS:n9k9mQ:v9uQ;P:WS;X:o:sS;d;Y;ZS;l;e;gS;p;m;oQ;s;qQ;u;tQ=a=[Q=l=eR=m=fV!wQ'^-`%^aOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%l%s&Q&i&l&m&p&r&s&u&y'R'`'p(R(T(Z(b(v(x(|){*f+U+Y+d,k,n,s-d-l-z.Q.b.o.v/i0V0d0l0|1j1z1{1}2P2S2V2X2x3O3[3d4q5y6Z6[6_6r7Q8i8x9SS#wz!j!r=Z$Z$n'V)q-P-S/Q2h3{5m6i9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sR=a=r%^bOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%l%s&Q&i&l&m&p&r&s&u&y'R'`'p(R(T(Z(b(v(x(|){*f+U+Y+d,k,n,s-d-l-z.Q.b.o.v/i0V0d0l0|1j1z1{1}2P2S2V2X2x3O3[3d4q5y6Z6[6_6r7Q8i8x9SQ%ej!^%wy!i!u%z%{%|'T'c'd'e'i's*g+k+l-T-g-h-o/{0O0{2m2t2{4i4j4m7s9pS%}z!jQ+h%xQ,[&bW1n,],^,_,`U5}1o1p1qS8l6O6PQ:W8m!r=[$Z$n'V)q-P-S/Q2h3{5m6i9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sQ=e=qR=f=r%QeOPXYstuvw!Z!`!g!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%l%s&Q&i&l&p&r&s&u&y'R'`'p(T(Z(b(v(x(|){*f+U+Y+d,k,n,s-d-l-z.Q.b.o.v/i0V0d0l0|1j1z1{1}2P2S2V2X2x3O3[3d4q5y6Z6[6_6r7Q8i8x9SY#bWZ#W#Z(R!b%im#h#i#l$x%d%g([(f(g(h*W*[*_+W+X+Z,j-Q.O.U.V.W.Y/h/k2[3S3T4X6h6yQ,i&m!p=]$Z$n)q-P-S/Q2h3{5m6i9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sR=`'VU'Z!e%h*XR2k-Z%SdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%l%s&Q&i&l&p&r&s&u&y'R'`'p(R(T(Z(b(v(x(|){*f+U+Y,k,n,s-d-l-z.Q.o.v/i0V0d0l0|1j1z1{1}2P2S2V2X2x3O3d4q5y6Z6[6_6r8i8x9S!r)]$Z$n'V)q-P-S/Q2h3{5m6i9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sQ,h&mQ0r+dQ3W.bQ7O3[R9Y7Q!b$Tc#Y%p(Q(W(r(w)X)Y)^)e+u-s-x-}.P.n.q/]0j2v2}3c3s5O5Y6q6v7V9Q:c;x!P<U)[)o-U.w2c2f3h3q3r3w4P6k7W7a7b8`8|9[9b9c:y;R=g!f$Vc#Y%p(Q(W(r(w)U)V)X)Y)^)e+u-s-x-}.P.n.q/]0j2v2}3c3s5O5Y6q6v7V9Q:c;x!T<W)[)o-U.w2c2f3h3n3o3q3r3w4P6k7W7a7b8`8|9[9b9c:y;R=g!^$Zc#Y%p(Q(W(r(w)^)e+u-s-x-}.P.n.q/]0j2v2}3c3s5O5Y6q6v7V9Q:c;xQ4V/fz=s)[)o-U.w2c2f3h3w4P6k7W7a7b8`8|9[9b9c:y;R=gQ=x=zR=y={'QkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%l%s&Q&i&l&m&p&r&s&u&y'R'V'`'p(R(T(Z(b(v(x(|)q){*f+U+Y+d,k,n,s-P-S-d-l-z.Q.b.o.v/Q/i0V0d0l0|1j1z1{1}2P2S2V2X2h2x3O3[3d3{4q5m5y6Z6[6_6i6r7Q8i8x9S9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sS$oh$pR3|/P'XgOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%l%s&Q&i&l&m&p&r&s&u&y'R'V'`'p(R(T(Z(b(v(x(|)q){*f+U+Y+d,k,n,s-P-S-d-l-z.Q.b.o.v/P/Q/i0V0d0l0|1j1z1{1}2P2S2V2X2h2x3O3[3d3{4q5m5y6Z6[6_6i6r7Q8i8x9S9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sT$kf$qQ$ifS)h$l)lR)t$qT$jf$qT)j$l)l'XhOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%l%s&Q&i&l&m&p&r&s&u&y'R'V'`'p(R(T(Z(b(v(x(|)q){*f+U+Y+d,k,n,s-P-S-d-l-z.Q.b.o.v/P/Q/i0V0d0l0|1j1z1{1}2P2S2V2X2h2x3O3[3d3{4q5m5y6Z6[6_6i6r7Q8i8x9S9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=sT$oh$pQ$rhR)s$p%^jOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%l%s&Q&i&l&m&p&r&s&u&y'R'`'p(R(T(Z(b(v(x(|){*f+U+Y+d,k,n,s-d-l-z.Q.b.o.v/i0V0d0l0|1j1z1{1}2P2S2V2X2x3O3[3d4q5y6Z6[6_6r7Q8i8x9S!s=q$Z$n'V)q-P-S/Q2h3{5m6i9}:a;v;y;z;}<O<P<Q<R<S<T<U<V<W<X<Y<Z<]<`<m<p<q<s<{<|=V=W=s#glOPXZst!Z!`!o#S#d#o#{$n%l&i&l&m&p&r&s&u&y'R'`(|)q*f+Y+d,k,n,s-d.b/Q/i0V0d1j1z1{1}2P2S2V2X3[3{4q5y6Z6[6_7Q8i8x!U%Ri$d%O%Q%]%^%b*P*R*^*t*u.z/r0Y0[0g0h0i4V4w7|9e=p=x=y#f(u#v$b$c$x${)w*T*W*d+c+f+},Q.a/_/h/s/u1^1a1i3Z4U4a4f5R5U5x6|7l7v8Q8f9V9n9t:S:f:t:};V;^<a<c<g<i<k<t<v<y<}=P=R=T=X=|=}Q+P%`Q/^)|o3v<^<_<b<d<h<j<l<u<w<z=O=Q=S=U=Y!U$yi$d%O%Q%]%^%b*P*R*^*t*u.z/r0Y0[0g0h0i4V4w7|9e=p=x=yQ*`$zU*i$|*X*lQ+Q%aQ0Q*j#f=c#v$b$c$x${)w*T*W*d+c+f+},Q.a/_/h/s/u1^1a1i3Z4U4a4f5R5U5x6|7l7v8Q8f9V9n9t:S:f:t:};V;^<a<c<g<i<k<t<v<y<}=P=R=T=X=|=}n=d<^<_<b<d<h<j<l<u<w<z=O=Q=S=U=YQ=h=tQ=i=uQ=j=vR=k=w!U%Ri$d%O%Q%]%^%b*P*R*^*t*u.z/r0Y0[0g0h0i4V4w7|9e=p=x=y#f(u#v$b$c$x${)w*T*W*d+c+f+},Q.a/_/h/s/u1^1a1i3Z4U4a4f5R5U5x6|7l7v8Q8f9V9n9t:S:f:t:};V;^<a<c<g<i<k<t<v<y<}=P=R=T=X=|=}o3v<^<_<b<d<h<j<l<u<w<z=O=Q=S=U=YnoOXst!Z#d%l&p&r&s&u,n,s2S2VS*c${*WQ,|&|Q,}'OR4`/s%[%Si#v$b$c$d$x${%O%Q%]%^%b)w*P*R*T*W*^*d*t*u+c+f+},Q.a.z/_/h/r/s/u0Y0[0g0h0i1^1a1i3Z4U4V4a4f4w5R5U5x6|7l7v7|8Q8f9V9e9n9t:S:f:t:};V;^<^<_<a<b<c<d<g<h<i<j<k<l<t<u<v<w<y<z<}=O=P=Q=R=S=T=U=X=Y=p=x=y=|=}Q,P&ZQ1`,RQ5i1_R8]5jV*k$|*X*lU*k$|*X*lT5p1g5qS/y*f/iQ4n0VT7x4q:PQ+g%wQ0P*iQ0x+hQ1m,[Q5|1nQ8k5}Q:V8lR;P:W!U%Oi$d%O%Q%]%^%b*P*R*^*t*u.z/r0Y0[0g0h0i4V4w7|9e=p=x=yx*P$v)c*Q*r+R/q0^0_3y4^4{4|4}7f7z9v:l=b=n=oS0Y*q0Z#f<a#v$b$c$x${)w*T*W*d+c+f+},Q.a/_/h/s/u1^1a1i3Z4U4a4f5R5U5x6|7l7v8Q8f9V9n9t:S:f:t:};V;^<a<c<g<i<k<t<v<y<}=P=R=T=X=|=}n<b<^<_<b<d<h<j<l<u<w<z=O=Q=S=U=Y!d<t(s)a*Y*b.e.h.l/Y/f/v0p1]3`4S4_4c5h7R7U7m7p7}8P9i9q9w:q:u;W;];h=z={`<u3u7X7[7`9]:h:k;kS=P.g3aT=Q7Z9`!U%Qi$d%O%Q%]%^%b*P*R*^*t*u.z/r0Y0[0g0h0i4V4w7|9e=p=x=y|*R$v)c*S*q+R/b/q0^0_3y4^4s4{4|4}7f7z9v:l=b=n=oS0[*r0]#f<c#v$b$c$x${)w*T*W*d+c+f+},Q.a/_/h/s/u1^1a1i3Z4U4a4f5R5U5x6|7l7v8Q8f9V9n9t:S:f:t:};V;^<a<c<g<i<k<t<v<y<}=P=R=T=X=|=}n<d<^<_<b<d<h<j<l<u<w<z=O=Q=S=U=Y!h<v(s)a*Y*b.f.g.l/Y/f/v0p1]3^3`4S4_4c5h7R7S7U7m7p7}8P9i9q9w:q:u;W;];h=z={d<w3u7Y7Z7`9]9^:h:i:k;kS=R.h3bT=S7[9arnOXst!V!Z#d%l&g&p&r&s&u,n,s2S2VQ&d!UR,k&mrnOXst!V!Z#d%l&g&p&r&s&u,n,s2S2VR&d!UQ,T&[R1[+|snOXst!V!Z#d%l&g&p&r&s&u,n,s2S2VQ1h,YS5w1k1lU8e5u5v5zS:R8g8hS:{:Q:TQ;_:|R;i;`Q&k!VR,d&gR6T1tR:Y8nS&P|&UR1T+sQ&p!WR,n&qR,t&vT2T,s2VR,x&wQ,w&wR2^,xQ'w!{R-t'wSsOtQ#dXT%os#dQ#OTR'y#OQ#RUR'{#RQ)y$uR/Z)yQ#UVR(O#UQ#XWU(U#X(V-{Q(V#YR-{(WQ-X'WR2j-XQ.p(wS3e.p3fR3f.qQ-`'^R2n-`Y!rQ'^-`1g5qR'h!rQ.{)cR3z.{U#_W%g*WU(]#_(^-|Q(^#`R-|(XQ-['ZR2l-[t`OXst!V!Z#d%l&g&i&p&r&s&u,n,s2S2VS#hZ%dU#r`#h.VR.V(hQ(i#jQ.S(eW.[(i.S3P6wQ3P.TR6w3QQ)l$lR/R)lQ$phR)r$pQ$`cU)_$`-w<[Q-w;xR<[)oQ/l*ZW4Y/l4Z7j9hU4Z/m/n/oS7j4[4]R9h7k$e*O$v(s)a)c*Y*b*q*r*|*}+R.g.h.j.k.l/Y/b/d/f/q/v0^0_0p1]3^3_3`3u3y4S4^4_4c4s4u4{4|4}5h7R7S7T7U7Z7[7^7_7`7f7m7p7z7}8P9]9^9_9i9q9v9w:h:i:j:k:l:q:u;W;];h;k=b=n=o=z={Q/t*bU4b/t4d7nQ4d/vR7n4cS*l$|*XR0S*lx*Q$v)c*q*r+R/q0^0_3y4^4{4|4}7f7z9v:l=b=n=o!d.e(s)a*Y*b.g.h.l/Y/f/v0p1]3`4S4_4c5h7R7U7m7p7}8P9i9q9w:q:u;W;];h=z={U/c*Q.e7Xa7X3u7Z7[7`9]:h:k;kQ0Z*qQ3a.gU4t0Z3a9`R9`7Z|*S$v)c*q*r+R/b/q0^0_3y4^4s4{4|4}7f7z9v:l=b=n=o!h.f(s)a*Y*b.g.h.l/Y/f/v0p1]3^3`4S4_4c5h7R7S7U7m7p7}8P9i9q9w:q:u;W;];h=z={U/e*S.f7Ye7Y3u7Z7[7`9]9^:h:i:k;kQ0]*rQ3b.hU4v0]3b9aR9a7[Q*w%UR0a*wQ5S0pR8O5SQ+[%jR0o+[Q5l1bS8_5l:OR:O8`Q,V&]R1e,VQ5q1gR8b5qQ1s,aS6R1s8oR8o6TQ1O+oW5_1O5a8V9zQ5a1RQ8V5`R9z8WQ+t&PR1U+tQ2V,sR6c2VYrOXst#dQ&t!ZQ+^%lQ,m&pQ,o&rQ,p&sQ,r&uQ2Q,nS2T,s2VR6b2SQ%npQ&x!_Q&{!aQ&}!bQ'P!cQ'o!uQ+]%kQ+i%yQ+{&VQ,c&kQ,z&zW-k'i'q'r'uQ-r'mQ0R*kQ0y+jS1v,d,gQ2_,yQ2`,|Q2a,}Q2u-jW2w-m-n-q-sQ5W0zQ5d1XQ5g1]Q5{1mQ6V1xQ6a2RU6p2v2y2|Q6s2zQ8R5XQ8Z5fQ8[5hQ8a5pQ8j5|Q8p6US9P6q6uQ9R6tQ9{8XQ:U8kQ:Z8qQ:b9QQ:x9|Q;O:VQ;S:cR;a;PQ%yyQ'b!iQ'm!uU+j%z%{%|Q-R'TU-f'c'd'eS-j'i'sQ/z*gS0z+k+lQ2g-TS2s-g-hQ2z-oS4g/{0OQ5X0{Q6l2mQ6o2tQ6t2{U7q4i4j4mQ9o7sR:r9pS$wi=pR*x%VU%Ui%V=pR0`*vQ$viS(s#v+fS)a$b$cQ)c$dQ*Y$xS*b${*WQ*q%OQ*r%QQ*|%]Q*}%^Q+R%bQ.g<aQ.h<cQ.j<gQ.k<iQ.l<kQ/Y)wQ/b*PQ/d*RQ/f*TQ/q*^S/v*d/hQ0^*tQ0_*ul0p+c,Q.a1a1i3Z5x6|8f9V:S:f:};VQ1]+}Q3^<tQ3_<vQ3`<yS3u<^<_Q3y.zS4S/_4UQ4^/rQ4_/sQ4c/uQ4s0YQ4u0[Q4{0gQ4|0hQ4}0iQ5h1^Q7R<}Q7S=PQ7T=RQ7U=TQ7Z<bQ7[<dQ7^<hQ7_<jQ7`<lQ7f4VQ7m4aQ7p4fQ7z4wQ7}5RQ8P5UQ9]<zQ9^<uQ9_<wQ9i7lQ9q7vQ9v7|Q9w8QQ:h=OQ:i=QQ:j=SQ:k=UQ:l9eQ:q9nQ:u9tQ;W=XQ;]:tQ;h;^Q;k=YQ=b=pQ=n=xQ=o=yQ=z=|R={=}Q*z%[Q.i<eR7]<fnpOXst!Z#d%l&p&r&s&u,n,s2S2VQ!fPS#fZ#oQ&z!`W'f!o*f0V4qQ'}#SQ)O#{Q)p$nS,g&i&lQ,l&mQ,y&yS-O'R/iQ-b'`Q.s(|Q/V)qQ0m+YQ0s+dQ2O,kQ2q-dQ3X.bQ4O/QQ4y0dQ5v1jQ6X1zQ6Y1{Q6^1}Q6`2PQ6e2XQ7P3[Q7c3{Q8h5yQ8t6ZQ8u6[Q8w6_Q9Z7QQ:T8iR:_8x#[cOPXZst!Z!`!o#d#o#{%l&i&l&m&p&r&s&u&y'R'`(|*f+Y+d,k,n,s-d.b/i0V0d1j1z1{1}2P2S2V2X3[4q5y6Z6[6_7Q8i8xQ#YWQ#eYQ%puQ%rvS%tw!gS(Q#W(TQ(W#ZQ(r#uQ(w#xQ)P$OQ)Q$PQ)R$QQ)S$RQ)T$SQ)U$TQ)V$UQ)W$VQ)X$WQ)Y$XQ)[$ZQ)^$_Q)`$aQ)e$eW)o$n)q/Q3{Q+a%sQ+u&QS-U'V2hQ-s'pS-x(R-zQ-}(ZQ.P(bQ.n(vQ.q(xQ.u;vQ.w;yQ.x;zQ.y;}Q/]){Q0j+UQ2c-PQ2f-SQ2v-lQ2}.QQ3c.oQ3h<OQ3i<PQ3j<QQ3k<RQ3l<SQ3m<TQ3n<UQ3o<VQ3p<WQ3q<XQ3r<YQ3s.vQ3t<]Q3w<`Q3x<mQ4P<ZQ5O0lQ5Y0|Q6k<pQ6q2xQ6v3OQ7V3dQ7W<qQ7a<sQ7b<{Q8`5mQ8|6iQ9Q6rQ9[<|Q9b=VQ9c=WQ:c9SQ:y9}Q;R:aQ;x#SR=g=sR#[WR'X!el!tQ!r!v!y!z'^'j'k'l-`-p1g5q5sS'T!e-WU*g$|*X*lS-T'U']S0O*h*nQ0W*oQ2m-^Q4m0UR4r0XR(y#xQ!fQT-_'^-`]!qQ!r'^-`1g5qQ#p]R'g;wR)d$dY!uQ'^-`1g5qQ'i!rS's!v!yS'u!z5sS-o'j'kQ-q'lR2{-pT#kZ%dS#jZ%dS%jm,jU(e#h#i#lS.T(f(gQ.X(hQ0n+ZQ3Q.UU3R.V.W.YS6x3S3TR9T6yd#^W#W#Z%g(R([*W+W.O/hr#gZm#h#i#l%d(f(g(h+Z.U.V.W.Y3S3T6yS*Z$x*_Q/o*[Q1|,jQ2d-QQ4W/kQ6g2[Q7i4XQ8{6hT=_'V+XV#aW%g*WU#`W%g*WS(S#W([U(X#Z+W/hS-V'V+XT-y(R.OV'[!e%h*XQ$lfR)v$qT)k$l)lR3}/PT*]$x*_T*e${*WQ0q+cQ1_,QQ3V.aQ5j1aQ5u1iQ6}3ZQ8g5xQ9W6|Q:Q8fQ:d9VQ:|:SQ;U:fQ;`:}R;c;VnqOXst!Z#d%l&p&r&s&u,n,s2S2VQ&j!VR,c&gtmOXst!U!V!Z#d%l&g&p&r&s&u,n,s2S2VR,j&mT%km,jR1c,SR,b&eQ&T|R+z&UR+p&OT&n!W&qT&o!W&qT2U,s2V",nodeNames:"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:379,context:Qe,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,236,242,244,246,248,251,257,263,265,267,269,271,273,274,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[ce],skippedNodes:[0,5,6,277],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$i&j(Y!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(Y!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$i&j(VpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(VpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Vp(Y!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$i&j(Vp(Y!b'{0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(W#S$i&j'|0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$i&j(Vp(Y!b'|0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$i&j!p),Q(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#v(Ch$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#v(Ch$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(U':f$i&j(Y!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$i&j(Y!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$i&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$d`$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$d``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$d`$i&j(Y!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(Y!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$d`(Y!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$i&j(Vp(Y!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__WS$i&j(Vp(Y!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]WS$i&j(Y!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$i&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(Y!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$i&j(VpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(VpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Vp(Y!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S%9[C}i$i&j(n%1l(Vp(Y!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr%9[EoP;=`<%lCr07[FRk$i&j(Vp(Y!b$]#t(S,2j(d$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr+dHRk$i&j(Vp(Y!b$]#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv07[JPP;=`<%lEr(KWJ_`$i&j(Vp(Y!b#p(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWKl_$i&j$Q(Ch(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,#xLva(y+JY$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWNW`$i&j#z(Ch(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At! c_(X';W$i&j(VpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b'l!!i_$i&j(VpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b&z!#mX$i&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h'l!%R]$d`$i&j(VpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r!Q!&PZ(VpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z!Q!&yU$d`(VpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r!Q!'`P;=`<%l!%z'l!'fP;=`<%l!!b/5|!'t_!l/.^$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&U!)O_!k!Lf$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z-!n!*[b$i&j(Vp(Y!b(T%&f#q(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW!+o`$i&j(Vp(Y!b#n(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;x!,|`$i&j(Vp(Y!br+4YOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,$U!.Z_!]+Jf$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!/ec$i&j(Vp(Y!b!Q.2^OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!0ya$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!2Z_![!L^$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!3eg$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!5Vg$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!6wc$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!8_c$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!9uf$i&j(Vp(Y!b#o(ChOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcxz!;Zz{#-}{!P!;Z!P!Q#/d!Q!^!;Z!^!_#(i!_!`#7S!`!a#8i!a!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z?O!;fb$i&j(Vp(Y!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z>^!<w`$i&j(Y!b!X7`OY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eq!Q!^!<n!^!_!Gr!_!}!<n!}#O!KS#O#P!Dy#P#o!<n#o#p!Gr#p;'S!<n;'S;=`!L]<%lO!<n<z!>Q^$i&j!X7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!?Td$i&j!X7`O!^&c!_#W&c#W#X!>|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!X7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!X7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c<z!C][$i&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#O!CW#O#P!DR#P#Q!=y#Q#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DWX$i&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DvP;=`<%l!CW<z!EOX$i&jOY!=yYZ&cZ!^!=y!^!_!@c!_#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!EnP;=`<%l!=y>^!Ezl$i&j(Y!b!X7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(Y!b!X7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(Y!b!X7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(Y!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$i&j(Y!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!<n#Q#o!KS#o#p!JU#p;'S!KS;'S;=`!LV<%lO!KS>^!LYP;=`<%l!KS>^!L`P;=`<%l!<n=l!Ll`$i&j(Vp!X7`OY!LcYZ&cZr!Lcrs!=ys!P!Lc!P!Q!Mn!Q!^!Lc!^!_# o!_!}!Lc!}#O#%P#O#P!Dy#P#o!Lc#o#p# o#p;'S!Lc;'S;=`#&Y<%lO!Lc=l!Mwl$i&j(Vp!X7`OY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#W(r#W#X!Mn#X#Z(r#Z#[!Mn#[#](r#]#^!Mn#^#a(r#a#b!Mn#b#g(r#g#h!Mn#h#i(r#i#j!Mn#j#k!Mn#k#m(r#m#n!Mn#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r8Q# vZ(Vp!X7`OY# oZr# ors!@cs!P# o!P!Q#!i!Q!}# o!}#O#$R#O#P!Bq#P;'S# o;'S;=`#$y<%lO# o8Q#!pe(Vp!X7`OY)rZr)rs#O)r#P#W)r#W#X#!i#X#Z)r#Z#[#!i#[#])r#]#^#!i#^#a)r#a#b#!i#b#g)r#g#h#!i#h#i)r#i#j#!i#j#k#!i#k#m)r#m#n#!i#n;'S)r;'S;=`*Z<%lO)r8Q#$WX(VpOY#$RZr#$Rrs!Ars#O#$R#O#P!B[#P#Q# o#Q;'S#$R;'S;=`#$s<%lO#$R8Q#$vP;=`<%l#$R8Q#$|P;=`<%l# o=l#%W^$i&j(VpOY#%PYZ&cZr#%Prs!CWs!^#%P!^!_#$R!_#O#%P#O#P!DR#P#Q!Lc#Q#o#%P#o#p#$R#p;'S#%P;'S;=`#&S<%lO#%P=l#&VP;=`<%l#%P=l#&]P;=`<%l!Lc?O#&kn$i&j(Vp(Y!b!X7`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#W%Z#W#X#&`#X#Z%Z#Z#[#&`#[#]%Z#]#^#&`#^#a%Z#a#b#&`#b#g%Z#g#h#&`#h#i%Z#i#j#&`#j#k#&`#k#m%Z#m#n#&`#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z9d#(r](Vp(Y!b!X7`OY#(iZr#(irs!Grsw#(iwx# ox!P#(i!P!Q#)k!Q!}#(i!}#O#+`#O#P!Bq#P;'S#(i;'S;=`#,`<%lO#(i9d#)th(Vp(Y!b!X7`OY*gZr*grs'}sw*gwx)rx#O*g#P#W*g#W#X#)k#X#Z*g#Z#[#)k#[#]*g#]#^#)k#^#a*g#a#b#)k#b#g*g#g#h#)k#h#i*g#i#j#)k#j#k#)k#k#m*g#m#n#)k#n;'S*g;'S;=`+Z<%lO*g9d#+gZ(Vp(Y!bOY#+`Zr#+`rs!JUsw#+`wx#$Rx#O#+`#O#P!B[#P#Q#(i#Q;'S#+`;'S;=`#,Y<%lO#+`9d#,]P;=`<%l#+`9d#,cP;=`<%l#(i?O#,o`$i&j(Vp(Y!bOY#,fYZ&cZr#,frs!KSsw#,fwx#%Px!^#,f!^!_#+`!_#O#,f#O#P!DR#P#Q!;Z#Q#o#,f#o#p#+`#p;'S#,f;'S;=`#-q<%lO#,f?O#-tP;=`<%l#,f?O#-zP;=`<%l!;Z07[#.[b$i&j(Vp(Y!b'}0/l!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z07[#/o_$i&j(Vp(Y!bT0/lOY#/dYZ&cZr#/drs#0nsw#/dwx#4Ox!^#/d!^!_#5}!_#O#/d#O#P#1p#P#o#/d#o#p#5}#p;'S#/d;'S;=`#6|<%lO#/d06j#0w]$i&j(Y!bT0/lOY#0nYZ&cZw#0nwx#1px!^#0n!^!_#3R!_#O#0n#O#P#1p#P#o#0n#o#p#3R#p;'S#0n;'S;=`#3x<%lO#0n05W#1wX$i&jT0/lOY#1pYZ&cZ!^#1p!^!_#2d!_#o#1p#o#p#2d#p;'S#1p;'S;=`#2{<%lO#1p0/l#2iST0/lOY#2dZ;'S#2d;'S;=`#2u<%lO#2d0/l#2xP;=`<%l#2d05W#3OP;=`<%l#1p01O#3YW(Y!bT0/lOY#3RZw#3Rwx#2dx#O#3R#O#P#2d#P;'S#3R;'S;=`#3r<%lO#3R01O#3uP;=`<%l#3R06j#3{P;=`<%l#0n05x#4X]$i&j(VpT0/lOY#4OYZ&cZr#4Ors#1ps!^#4O!^!_#5Q!_#O#4O#O#P#1p#P#o#4O#o#p#5Q#p;'S#4O;'S;=`#5w<%lO#4O00^#5XW(VpT0/lOY#5QZr#5Qrs#2ds#O#5Q#O#P#2d#P;'S#5Q;'S;=`#5q<%lO#5Q00^#5tP;=`<%l#5Q05x#5zP;=`<%l#4O01p#6WY(Vp(Y!bT0/lOY#5}Zr#5}rs#3Rsw#5}wx#5Qx#O#5}#O#P#2d#P;'S#5};'S;=`#6v<%lO#5}01p#6yP;=`<%l#5}07[#7PP;=`<%l#/d)3h#7ab$i&j$Q(Ch(Vp(Y!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;ZAt#8vb$Z#t$i&j(Vp(Y!b!X7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z'Ad#:Zp$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#U%Z#U#V#?i#V#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#<jk$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$i&j(Vp(Y!bs'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!g$b$i&j$O)Lv(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#R-<U(Vp(Y!b$n7`OY*gZr*grs'}sw*gwx)rx!P*g!P!Q#MO!Q!^*g!^!_#Mt!_!`$ f!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#MXX$k&j(Vp(Y!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El#M}Z#r(Ch(Vp(Y!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#Np!`#O*g#P;'S*g;'S;=`+Z<%lO*g(El#NyX$Q(Ch(Vp(Y!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El$ oX#s(Ch(Vp(Y!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g*)x$!ga#`*!Y$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$#l!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(K[$#w_#k(Cl$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x$%Vag!*r#s(Ch$f#|$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$&[!`!a$'f!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$&g_#s(Ch$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$'qa#r(Ch$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$(v!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$)R`#r(Ch$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(Kd$*`a(q(Ct$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!a%Z!a!b$+e!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$+p`$i&j#{(Ch(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`$,}_!|$Ip$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f$.X_!S0,v$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(n$/]Z$i&jO!^$0O!^!_$0f!_#i$0O#i#j$0k#j#l$0O#l#m$2^#m#o$0O#o#p$0f#p;'S$0O;'S;=`$4i<%lO$0O(n$0VT_#S$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0kO_#S(n$0p[$i&jO!Q&c!Q![$1f![!^&c!_!c&c!c!i$1f!i#T&c#T#Z$1f#Z#o&c#o#p$3|#p;'S&c;'S;=`&w<%lO&c(n$1kZ$i&jO!Q&c!Q![$2^![!^&c!_!c&c!c!i$2^!i#T&c#T#Z$2^#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2cZ$i&jO!Q&c!Q![$3U![!^&c!_!c&c!c!i$3U!i#T&c#T#Z$3U#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3ZZ$i&jO!Q&c!Q![$0O![!^&c!_!c&c!c!i$0O!i#T&c#T#Z$0O#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$4PR!Q![$4Y!c!i$4Y#T#Z$4Y#S$4]S!Q![$4Y!c!i$4Y#T#Z$4Y#q#r$0f(n$4lP;=`<%l$0O#1[$4z_!Y#)l$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$6U`#x(Ch$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;p$7c_$i&j(Vp(Y!b(`+4QOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$8qk$i&j(Vp(Y!b(S,2j$_#t(d$I[OY%ZYZ&cZr%Zrs&}st%Ztu$8buw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$8b![!^%Z!^!_*g!_!c%Z!c!}$8b!}#O%Z#O#P&c#P#R%Z#R#S$8b#S#T%Z#T#o$8b#o#p*g#p$g%Z$g;'S$8b;'S;=`$<l<%lO$8b+d$:qk$i&j(Vp(Y!b$_#tOY%ZYZ&cZr%Zrs&}st%Ztu$:fuw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$:f![!^%Z!^!_*g!_!c%Z!c!}$:f!}#O%Z#O#P&c#P#R%Z#R#S$:f#S#T%Z#T#o$:f#o#p*g#p$g%Z$g;'S$:f;'S;=`$<f<%lO$:f+d$<iP;=`<%l$:f07[$<oP;=`<%l$8b#Jf$<{X!_#Hb(Vp(Y!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g,#x$=sa(x+JY$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+e#q;'S%Z;'S;=`+a<%lO%Z)>v$?V_!^(CdvBr$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!q7`$i&j(Vp(Y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$i&j(Vp(Y!b'{0/l$]#t(S,2j(d$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$i&j(Vp(Y!b'|0/l$]#t(S,2j(d$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[oe,le,$e,he,2,3,4,5,6,7,8,9,10,11,12,13,14,ne,new w("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(b~~",141,339),new w("j~RQYZXz{^~^O(P~~aP!P!Qd~iO(Q~~",25,322)],topRules:{Script:[0,7],SingleExpression:[1,275],SingleClassItem:[2,276]},dialects:{jsx:0,ts:15098},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:326,get:s=>pe[s]||-1},{term:342,get:s=>fe[s]||-1},{term:95,get:s=>Pe[s]||-1}],tokenPrec:15124}),z=[Tte("function ${name}(${params}) {\n	${}\n}",{label:"function",detail:"definition",type:"keyword"}),Tte("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n	${}\n}",{label:"for",detail:"loop",type:"keyword"}),Tte("for (let ${name} of ${collection}) {\n	${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Tte("do {\n	${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Tte("while (${}) {\n	${}\n}",{label:"while",detail:"loop",type:"keyword"}),Tte(`try {
	\${}
} catch (\${error}) {
	\${}
}`,{label:"try",detail:"/ catch block",type:"keyword"}),Tte("if (${}) {\n	${}\n}",{label:"if",detail:"block",type:"keyword"}),Tte(`if (\${}) {
	\${}
} else {
	\${}
}`,{label:"if",detail:"/ else block",type:"keyword"}),Tte(`class \${name} {
	constructor(\${params}) {
		\${}
	}
}`,{label:"class",detail:"definition",type:"keyword"}),Tte('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Tte('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],eO=z.concat([Tte("interface ${name} {\n	${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Tte("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Tte("enum ${name} {\n	${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),N=new Dte,tO=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function x(s){return (O,e)=>{let t=O.node.getChild("VariableDefinition");return t&&e(t,s),true}}const Se=["FunctionDeclaration"],ue={FunctionDeclaration:x("function"),ClassDeclaration:x("class"),ClassExpression:()=>true,EnumDeclaration:x("constant"),TypeAliasDeclaration:x("type"),NamespaceDeclaration:x("namespace"),VariableDefinition(s,O){s.matchContext(Se)||O(s,"variable");},TypeDefinition(s,O){O(s,"type");},__proto__:null};function iO(s,O){let e=N.get(O);if(e)return e;let t=[],a=true;function r(i,Q){let n=s.sliceString(i.from,i.to);t.push({label:n,type:Q});}return O.cursor($t.IncludeAnonymous).iterate(i=>{if(a)a=false;else if(i.name){let Q=ue[i.name];if(Q&&Q(i,r)||tO.has(i.name))return  false}else if(i.to-i.from>8192){for(let Q of iO(s,i.node))t.push(Q);return  false}}),N.set(O,t),t}const B=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,aO=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function sO(s){let O=ln(s.state).resolveInner(s.pos,-1);if(aO.indexOf(O.name)>-1)return null;let e=O.name=="VariableName"||O.to-O.from<20&&B.test(s.state.sliceDoc(O.from,O.to));if(!e&&!s.explicit)return null;let t=[];for(let a=O;a;a=a.parent)tO.has(a.name)&&(t=t.concat(iO(s.state.doc,a)));return {options:t,from:e?O.from:s.pos,validFor:B}}const u=hg.define({name:"javascript",parser:Ze.configure({props:[Uj.add({IfStatement:wte({except:/^\s*({|else\b)/}),TryStatement:wte({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Fte,SwitchBody:s=>{let O=s.textAfter,e=/^\s*\}/.test(O),t=/^\s*(case|default)\b/.test(O);return s.baseIndent+(e?0:t?1:2)*s.unit},Block:Ete({closing:"}"}),ArrowFunction:s=>s.baseIndent+s.unit,"TemplateString BlockComment":()=>null,"Statement Property":wte({except:/^\s*{/}),JSXElement(s){let O=/^\s*<\//.test(s.textAfter);return s.lineIndent(s.node.from)+(O?0:s.unit)},JSXEscape(s){let O=/\s*\}/.test(s.textAfter);return s.lineIndent(s.node.from)+(O?0:s.unit)},"JSXOpenTag JSXSelfClosingTag"(s){return s.column(s.node.from)+s.unit}}),rV.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Ste,BlockComment(s){return {from:s.from+2,to:s.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),rO={test:s=>/^JSX/.test(s.name),facet:qj({commentTokens:{block:{open:"{/*",close:"*/}"}}})},QO=u.configure({dialect:"ts"},"typescript"),nO=u.configure({dialect:"jsx",props:[Wj.add(s=>s.isTop?[rO]:void 0)]}),oO=u.configure({dialect:"jsx ts",props:[Wj.add(s=>s.isTop?[rO]:void 0)]},"typescript"); exports({ c: u, t: QO, j: nO, b: oO });let lO=s=>({label:s,type:"keyword"});const $O="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(lO),de=$O.concat(["declare","implements","private","protected","public"].map(lO));function ge(s={}){let O=s.jsx?s.typescript?oO:nO:s.typescript?QO:u,e=s.typescript?eO.concat(de):z.concat($O);return new xte(O,[u.data.of({autocomplete:Ate(aO,DW(e))}),u.data.of({autocomplete:sO}),s.jsx?hO:[]])}function xe(s){for(;;){if(s.name=="JSXOpenTag"||s.name=="JSXSelfClosingTag"||s.name=="JSXFragmentTag")return s;if(s.name=="JSXEscape"||!s.parent)return null;s=s.parent;}}function D(s,O,e=s.length){for(let t=O==null?void 0:O.firstChild;t;t=t.nextSibling)if(t.name=="JSXIdentifier"||t.name=="JSXBuiltin"||t.name=="JSXNamespacedName"||t.name=="JSXMemberExpression")return s.sliceString(t.from,Math.min(t.to,e));return ""}const Xe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),hO=ue$1.inputHandler.of((s,O,e,t,a)=>{if((Xe?s.composing:s.compositionStarted)||s.state.readOnly||O!=e||t!=">"&&t!="/"||!u.isActiveAt(s.state,O,-1))return  false;let r=a(),{state:i}=r,Q=i.changeByRange(n=>{var l;let{head:h}=n,$=ln(i).resolveInner(h-1,-1),p;if($.name=="JSXStartTag"&&($=$.parent),!(i.doc.sliceString(h-1,h)!=t||$.name=="JSXAttributeValue"&&$.to>h)){if(t==">"&&$.name=="JSXFragmentTag")return {range:n,changes:{from:h,insert:"</>"}};if(t=="/"&&$.name=="JSXStartCloseTag"){let c=$.parent,f=c.parent;if(f&&c.from==h-2&&((p=D(i.doc,f.firstChild,h))||((l=f.firstChild)===null||l===void 0?void 0:l.name)=="JSXFragmentTag")){let d=`${p}>`;return {range:J.cursor(h+d.length,-1),changes:{from:h,insert:d}}}}else if(t==">"){let c=xe($);if(c&&c.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(i.doc.sliceString(h,h+2))&&(p=D(i.doc,c,h)))return {range:n,changes:{from:h,insert:`</${p}>`}}}}return {range:n}});return Q.changes.empty?false:(s.dispatch([r,i.update(Q,{userEvent:"input.complete",scrollIntoView:true})]),true)}),me=exports("i", Object.freeze(Object.defineProperty({__proto__:null,autoCloseTags:hO,javascript:ge,javascriptLanguage:u,jsxLanguage:nO,localCompletionSource:sO,snippets:z,tsxLanguage:oO,typescriptLanguage:QO,typescriptSnippets:eO},Symbol.toStringTag,{value:"Module"})));

		})
	};
}));

System.register("./typescript-CpeiaWuM-oAdDfOku.js", ['./__monkey.entry-BeB6vm3i.js'], (function (exports, module) {
    'use strict';
    var gte;
    return {
        setters: [module => {
            gte = module.g;
        }],
        execute: (function () {

            var e8=Object.defineProperty;var t8=(Qr,Zr,ir)=>Zr in Qr?e8(Qr,Zr,{enumerable:true,configurable:true,writable:true,value:ir}):Qr[Zr]=ir;var m1=(Qr,Zr,ir)=>t8(Qr,typeof Zr!="symbol"?Zr+"":Zr,ir);function n8(Qr,Zr){for(var ir=0;ir<Zr.length;ir++){const Dn=Zr[ir];if(typeof Dn!="string"&&!Array.isArray(Dn)){for(const pn in Dn)if(pn!=="default"&&!(pn in Qr)){const qi=Object.getOwnPropertyDescriptor(Dn,pn);qi&&Object.defineProperty(Qr,pn,qi.get?qi:{enumerable:true,get:()=>Dn[pn]});}}}return Object.freeze(Object.defineProperty(Qr,Symbol.toStringTag,{value:"Module"}))}var h1={exports:{}},Jm;function a8(){return Jm||(Jm=1,function(Qr,Zr){(function(ir){function Dn(){var pn=ir();return pn.default||pn}Qr.exports=Dn();})(function(){var ir=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,pn=Object.getOwnPropertyNames,qi=Object.prototype.hasOwnProperty,_1=e=>{throw TypeError(e)},Mm=(e,r,i)=>r in e?ir(e,r,{enumerable:true,configurable:true,writable:true,value:i}):e[r]=i,g1=(e,r)=>{for(var i in r)ir(e,i,{get:r[i],enumerable:true});},Um=(e,r,i,u)=>{if(r&&typeof r=="object"||typeof r=="function")for(let h of pn(r))!qi.call(e,h)&&h!==i&&ir(e,h,{get:()=>r[h],enumerable:!(u=Dn(r,h))||u.enumerable});return e},Bm=e=>Um(ir({},"__esModule",{value:true}),e),Ri=(e,r,i)=>Mm(e,typeof r!="symbol"?r+"":r,i),Km=(e,r,i)=>r.has(e)||_1("Cannot "+i),jm=(e,r,i)=>r.has(e)?_1("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,i),Te=(e,r,i)=>(Km(e,r,"access private method"),i),y1={};g1(y1,{parsers:()=>T1});var T1={};g1(T1,{typescript:()=>F3});var qm=()=>()=>{},x1=qm,Rm=(e,r,i,u)=>{if(!(e&&r==null))return r.replaceAll?r.replaceAll(i,u):i.global?r.replace(i,u):r.split(i).join(u)},Qa=Rm,zm="5.7",vt=[],$m=new Map;function zi(e){return e!==void 0?e.length:0}function wr(e,r){if(e!==void 0)for(let i=0;i<e.length;i++){let u=r(e[i],i);if(u)return u}}function Gm(e,r){if(e!==void 0)for(let i=0;i<e.length;i++){let u=r(e[i],i);if(u!==void 0)return u}}function k1(e,r,i){let u=[];U.assertEqual(e.length,r.length);for(let h=0;h<e.length;h++)u.push(i(e[h],r[h],h));return u}function Tl(e,r){if(e!==void 0){for(let i=0;i<e.length;i++)if(!r(e[i],i))return  false}return  true}function S1(e,r,i){if(e!==void 0)for(let u=0;u<e.length;u++){let h=e[u];if(r(h,u))return h}}function xl(e,r,i){if(e===void 0)return  -1;for(let u=i??0;u<e.length;u++)if(r(e[u],u))return u;return  -1}function Hm(e,r,i=Cl){if(e!==void 0){for(let u=0;u<e.length;u++)if(i(e[u],r))return  true}return  false}function Pn(e,r){if(e!==void 0){let i=e.length,u=0;for(;u<i&&r(e[u]);)u++;if(u<i){let h=e.slice(0,u);for(u++;u<i;){let y=e[u];r(y)&&h.push(y),u++;}return h}}return e}function kl(e,r){let i;if(e!==void 0){i=[];for(let u=0;u<e.length;u++)i.push(r(e[u],u));}return i}function b1(e){let r=[];for(let i=0;i<e.length;i++){let u=e[i];u&&(Fn(u)?_r(r,u):r.push(u));}return r}function v1(e,r){let i;if(e!==void 0)for(let u=0;u<e.length;u++){let h=r(e[u],u);h&&(Fn(h)?i=_r(i,h):i=hr(i,h));}return i??vt}function Wm(e,r){let i;if(e!==void 0)for(let u=0;u<e.length;u++){let h=e[u],y=r(h,u);(i||h!==y||Fn(y))&&(i||(i=e.slice(0,u)),Fn(y)?_r(i,y):i.push(y));}return i??e}function Vm(e,r){let i=[];if(e!==void 0)for(let u=0;u<e.length;u++){let h=r(e[u],u);h!==void 0&&i.push(h);}return i}function qt(e,r){if(e!==void 0)if(r!==void 0){for(let i=0;i<e.length;i++)if(r(e[i]))return  true}else return e.length>0;return  false}function Sl(e,r){return r===void 0||r.length===0?e:e===void 0||e.length===0?r:[...e,...r]}function Xm(e,r,i=Cl){if(e===void 0||r===void 0)return e===r;if(e.length!==r.length)return  false;for(let u=0;u<e.length;u++)if(!i(e[u],r[u],u))return  false;return  true}function hr(e,r){return r===void 0?e:e===void 0?[r]:(e.push(r),e)}function C1(e,r){return r<0?e.length+r:r}function _r(e,r,i,u){if(r===void 0||r.length===0)return e;if(e===void 0)return r.slice(i,u);i=i===void 0?0:C1(r,i),u=u===void 0?r.length:C1(r,u);for(let h=i;h<u&&h<r.length;h++)r[h]!==void 0&&e.push(r[h]);return e}function Qm(e,r,i){return Hm(e,r,i)?false:(e.push(r),true)}function Zm(e,r,i){return e!==void 0?(Qm(e,r,i),e):[r]}function Ym(e,r){return e.length===0?vt:e.slice().sort(r)}function bl(e){return e===void 0||e.length===0?void 0:e[0]}function ya(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function e0(e){return U.assert(e.length!==0),e[e.length-1]}function t0(e){return e!==void 0&&e.length===1?e[0]:void 0}function r0(e,r,i,u,h){return n0(e,i(r),i,u)}function n0(e,r,i,u,h){if(!qt(e))return  -1;let y=0,A=e.length-1;for(;y<=A;){let P=y+(A-y>>1),c=i(e[P],P);switch(u(c,r)){case  -1:y=P+1;break;case 0:return P;case 1:A=P-1;break}}return ~y}function a0(e,r,i,u,h){if(e&&e.length>0){let y=e.length;if(y>0){let A=0,P=y-1,c;for(arguments.length<=2?(c=e[A],A++):c=i;A<=P;)c=r(c,e[A],A),A++;return c}}return i}var E1=Object.prototype.hasOwnProperty;function fn(e,r){return E1.call(e,r)}function i0(e){let r=[];for(let i in e)E1.call(e,i)&&r.push(i);return r}function o0(){let e=new Map;return e.add=s0,e.remove=c0,e}function s0(e,r){let i=this.get(e);return i!==void 0?i.push(r):this.set(e,i=[r]),i}function c0(e,r){let i=this.get(e);i!==void 0&&(y0(i,r),i.length||this.delete(e));}function Fn(e){return Array.isArray(e)}function vl(e){return Fn(e)?e:[e]}function u0(e,r){return e!==void 0&&r(e)?e:void 0}function mn(e,r){return e!==void 0&&r(e)?e:U.fail(`Invalid cast. The supplied value ${e} did not pass the test '${U.getFunctionName(r)}'.`)}function gs(e){}function l0(){return  true}function _t(e){return e}function N1(e){let r;return ()=>(e&&(r=e(),e=void 0),r)}function Mr(e){let r=new Map;return i=>{let u=`${typeof i}:${i}`,h=r.get(u);return h===void 0&&!r.has(u)&&(h=e(i),r.set(u,h)),h}}function Cl(e,r){return e===r}function d0(e,r){return e===r||e!==void 0&&r!==void 0&&e.toUpperCase()===r.toUpperCase()}function p0(e,r){return Cl(e,r)}function f0(e,r){return e===r?0:e===void 0?-1:r===void 0?1:e<r?-1:1}function w1(e,r){return f0(e,r)}function m0(e,r,i){for(let u=0;u<e.length;u++)r=Math.max(r,i(e[u]));return r}function $i(e,r,i){let u=Math.max(2,Math.floor(e.length*.34)),h=Math.floor(e.length*.4)+1,y;for(let A of r){let P=i(A);if(P!==void 0&&Math.abs(P.length-e.length)<=u){if(P===e||P.length<3&&P.toLowerCase()!==e.toLowerCase())continue;let c=h0(e,P,h-.1);if(c===void 0)continue;U.assert(c<h),h=c,y=A;}}return y}function h0(e,r,i){let u=new Array(r.length+1),h=new Array(r.length+1),y=i+.01;for(let P=0;P<=r.length;P++)u[P]=P;for(let P=1;P<=e.length;P++){let c=e.charCodeAt(P-1),Z=Math.ceil(P>i?P-i:1),d=Math.floor(r.length>i+P?i+P:r.length);h[0]=P;let v=P;for(let b=1;b<Z;b++)h[b]=y;for(let b=Z;b<=d;b++){let J=e[P-1].toLowerCase()===r[b-1].toLowerCase()?u[b-1]+.1:u[b-1]+2,ie=c===r.charCodeAt(b-1)?u[b-1]:Math.min(u[b]+1,h[b-1]+1,J);h[b]=ie,v=Math.min(v,ie);}for(let b=d+1;b<=r.length;b++)h[b]=y;if(v>i)return;let T=u;u=h,h=T;}let A=u[r.length];return A>i?void 0:A}function _0(e,r,i){let u=e.length-r.length;return u>=0&&(i?d0(e.slice(u),r):e.indexOf(r,u)===u)}function g0(e,r){e[r]=e[e.length-1],e.pop();}function y0(e,r){return T0(e,i=>i===r)}function T0(e,r){for(let i=0;i<e.length;i++)if(r(e[i]))return g0(e,i),true;return  false}function ys(e,r,i){return e.lastIndexOf(r,0)===0}function El(e){return e===void 0?void 0:[e]}var U;(e=>{let r=0;e.currentLogLevel=2,e.isDebugging=false;function i(O){return e.currentLogLevel<=O}e.shouldLog=i;function u(O,se){e.loggingHost&&i(O)&&e.loggingHost.log(O,se);}function h(O){u(3,O);}e.log=h,(O=>{function se(Qe){u(1,Qe);}O.error=se;function me(Qe){u(2,Qe);}O.warn=me;function Se(Qe){u(3,Qe);}O.log=Se;function Xe(Qe){u(4,Qe);}O.trace=Xe;})(h=e.log||(e.log={}));let y={};function A(){return r}e.getAssertionLevel=A;function P(O){let se=r;if(r=O,O>se)for(let me of i0(y)){let Se=y[me];Se!==void 0&&e[me]!==Se.assertion&&O>=Se.level&&(e[me]=Se,y[me]=void 0);}}e.setAssertionLevel=P;function c(O){return r>=O}e.shouldAssert=c;function Z(O,se){return c(O)?true:(y[se]={level:O,assertion:e[se]},e[se]=gs,false)}function d(O,se){debugger;let me=new Error(O?`Debug Failure. ${O}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(me,se||d),me}e.fail=d;function v(O,se,me){return d(`${se||"Unexpected node."}\r
Node ${Ft(O.kind)} was unexpected.`,me||v)}e.failBadSyntaxKind=v;function T(O,se,me,Se){O||(se=se?`False expression: ${se}`:"False expression.",me&&(se+=`\r
Verbose Debug Information: `+(typeof me=="string"?me:me())),d(se,Se||T));}e.assert=T;function b(O,se,me,Se,Xe){if(O!==se){let Qe=me?Se?`${me} ${Se}`:me:"";d(`Expected ${O} === ${se}. ${Qe}`,Xe||b);}}e.assertEqual=b;function J(O,se,me,Se){O>=se&&d(`Expected ${O} < ${se}. ${me||""}`,Se||J);}e.assertLessThan=J;function ie(O,se,me){O>se&&d(`Expected ${O} <= ${se}`,me||ie);}e.assertLessThanOrEqual=ie;function ke(O,se,me){O<se&&d(`Expected ${O} >= ${se}`,me||ke);}e.assertGreaterThanOrEqual=ke;function _e(O,se,me){O==null&&d(se,me||_e);}e.assertIsDefined=_e;function he(O,se,me){return _e(O,se,me||he),O}e.checkDefined=he;function I(O,se,me){for(let Se of O)_e(Se,se,me||I);}e.assertEachIsDefined=I;function oe(O,se,me){return I(O,se,me||oe),O}e.checkEachDefined=oe;function Ie(O,se="Illegal value:",me){let Se=typeof O=="object"&&fn(O,"kind")&&fn(O,"pos")?"SyntaxKind: "+Ft(O.kind):JSON.stringify(O);return d(`${se} ${Se}`,me||Ie)}e.assertNever=Ie;function z(O,se,me,Se){Z(1,"assertEachNode")&&T(se===void 0||Tl(O,se),me||"Unexpected node.",()=>`Node array did not pass test '${kr(se)}'.`,Se||z);}e.assertEachNode=z;function ue(O,se,me,Se){Z(1,"assertNode")&&T(O!==void 0&&(se===void 0||se(O)),me||"Unexpected node.",()=>`Node ${Ft(O==null?void 0:O.kind)} did not pass test '${kr(se)}'.`,Se||ue);}e.assertNode=ue;function W(O,se,me,Se){Z(1,"assertNotNode")&&T(O===void 0||se===void 0||!se(O),me||"Unexpected node.",()=>`Node ${Ft(O.kind)} should not have passed test '${kr(se)}'.`,Se||W);}e.assertNotNode=W;function ft(O,se,me,Se){Z(1,"assertOptionalNode")&&T(se===void 0||O===void 0||se(O),me||"Unexpected node.",()=>`Node ${Ft(O==null?void 0:O.kind)} did not pass test '${kr(se)}'.`,Se||ft);}e.assertOptionalNode=ft;function en(O,se,me,Se){Z(1,"assertOptionalToken")&&T(se===void 0||O===void 0||O.kind===se,me||"Unexpected node.",()=>`Node ${Ft(O==null?void 0:O.kind)} was not a '${Ft(se)}' token.`,Se||en);}e.assertOptionalToken=en;function xr(O,se,me){Z(1,"assertMissingNode")&&T(O===void 0,se||"Unexpected node.",()=>`Node ${Ft(O.kind)} was unexpected'.`,me||xr);}e.assertMissingNode=xr;function tn(O){}e.type=tn;function kr(O){if(typeof O!="function")return "";if(fn(O,"name"))return O.name;{let se=Function.prototype.toString.call(O),me=/^function\s+([\w$]+)\s*\(/.exec(se);return me?me[1]:""}}e.getFunctionName=kr;function Fr(O){return `{ name: ${Qi(O.escapedName)}; flags: ${ut(O.flags)}; declarations: ${kl(O.declarations,se=>Ft(se.kind))} }`}e.formatSymbol=Fr;function Re(O=0,se,me){let Se=On(se);if(O===0)return Se.length>0&&Se[0][0]===0?Se[0][1]:"0";if(me){let Xe=[],Qe=O;for(let[it,wt]of Se){if(it>O)break;it!==0&&it&O&&(Xe.push(wt),Qe&=~it);}if(Qe===0)return Xe.join("|")}else for(let[Xe,Qe]of Se)if(Xe===O)return Qe;return O.toString()}e.formatEnum=Re;let rn=new Map;function On(O){let se=rn.get(O);if(se)return se;let me=[];for(let Xe in O){let Qe=O[Xe];typeof Qe=="number"&&me.push([Qe,Xe]);}let Se=Ym(me,(Xe,Qe)=>w1(Xe[0],Qe[0]));return rn.set(O,Se),Se}function Ft(O){return Re(O,Fe,false)}e.formatSyntaxKind=Ft;function Br(O){return Re(O,M1,false)}e.formatSnippetKind=Br;function Ir(O){return Re(O,In,false)}e.formatScriptKind=Ir;function It(O){return Re(O,Ar,true)}e.formatNodeFlags=It;function xt(O){return Re(O,F1,true)}e.formatNodeCheckFlags=xt;function Ve(O){return Re(O,A1,true)}e.formatModifierFlags=Ve;function Kr(O){return Re(O,O1,true)}e.formatTransformFlags=Kr;function Ht(O){return Re(O,U1,true)}e.formatEmitFlags=Ht;function ut(O){return Re(O,P1,true)}e.formatSymbolFlags=ut;function at(O){return Re(O,er,true)}e.formatTypeFlags=at;function Bt(O){return Re(O,L1,true)}e.formatSignatureFlags=Bt;function Lt(O){return Re(O,I1,true)}e.formatObjectFlags=Lt;function lt(O){return Re(O,Nl,true)}e.formatFlowFlags=lt;function nn(O){return Re(O,D1,true)}e.formatRelationComparisonResult=nn;function mt(O){return Re(O,CheckMode,true)}e.formatCheckMode=mt;function Sr(O){return Re(O,SignatureCheckMode,true)}e.formatSignatureCheckMode=Sr;function gt(O){return Re(O,TypeFacts,true)}e.formatTypeFacts=gt;let sr=false,rt;function Kt(O){"__debugFlowFlags"in O||Object.defineProperties(O,{__tsDebuggerDisplay:{value(){let se=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",me=this.flags&-2048;return `${se}${me?` (${lt(me)})`:""}`}},__debugFlowFlags:{get(){return Re(this.flags,Nl,true)}},__debugToString:{value(){return kn(this)}}});}function tr(O){return sr&&(typeof Object.setPrototypeOf=="function"?(rt||(rt=Object.create(Object.prototype),Kt(rt)),Object.setPrototypeOf(O,rt)):Kt(O)),O}e.attachFlowNodeDebugInfo=tr;let an;function Tn(O){"__tsDebuggerDisplay"in O||Object.defineProperties(O,{__tsDebuggerDisplay:{value(se){return se=String(se).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${se}`}}});}function xn(O){sr&&(typeof Object.setPrototypeOf=="function"?(an||(an=Object.create(Array.prototype),Tn(an)),Object.setPrototypeOf(O,an)):Tn(O));}e.attachNodeArrayDebugInfo=xn;function jr(){if(sr)return;let O=new WeakMap,se=new WeakMap;Object.defineProperties(Ct.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Se=this.flags&33554432?"TransientSymbol":"Symbol",Xe=this.flags&-33554433;return `${Se} '${Kl(this)}'${Xe?` (${ut(Xe)})`:""}`}},__debugFlags:{get(){return ut(this.flags)}}}),Object.defineProperties(Ct.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Se=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Xe=this.flags&524288?this.objectFlags&-1344:0;return `${Se}${this.symbol?` '${Kl(this.symbol)}'`:""}${Xe?` (${Lt(Xe)})`:""}`}},__debugFlags:{get(){return at(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Lt(this.objectFlags):""}},__debugTypeToString:{value(){let Se=O.get(this);return Se===void 0&&(Se=this.checker.typeToString(this),O.set(this,Se)),Se}}}),Object.defineProperties(Ct.getSignatureConstructor().prototype,{__debugFlags:{get(){return Bt(this.flags)}},__debugSignatureToString:{value(){var Se;return (Se=this.checker)==null?void 0:Se.signatureToString(this)}}});let me=[Ct.getNodeConstructor(),Ct.getIdentifierConstructor(),Ct.getTokenConstructor(),Ct.getSourceFileConstructor()];for(let Se of me)fn(Se.prototype,"__debugKind")||Object.defineProperties(Se.prototype,{__tsDebuggerDisplay:{value(){return `${ti(this)?"GeneratedIdentifier":tt(this)?`Identifier '${yr(this)}'`:Ca(this)?`PrivateIdentifier '${yr(this)}'`:Os(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:ui(this)?`NumericLiteral ${this.text}`:Fg(this)?`BigIntLiteral ${this.text}n`:Zf(this)?"TypeParameterDeclaration":Us(this)?"ParameterDeclaration":Yf(this)?"ConstructorDeclaration":fd(this)?"GetAccessorDeclaration":Ks(this)?"SetAccessorDeclaration":Kg(this)?"CallSignatureDeclaration":jg(this)?"ConstructSignatureDeclaration":e2(this)?"IndexSignatureDeclaration":qg(this)?"TypePredicateNode":t2(this)?"TypeReferenceNode":r2(this)?"FunctionTypeNode":n2(this)?"ConstructorTypeNode":Rg(this)?"TypeQueryNode":zg(this)?"TypeLiteralNode":$g(this)?"ArrayTypeNode":Gg(this)?"TupleTypeNode":Wg(this)?"OptionalTypeNode":Vg(this)?"RestTypeNode":Xg(this)?"UnionTypeNode":Qg(this)?"IntersectionTypeNode":Zg(this)?"ConditionalTypeNode":Yg(this)?"InferTypeNode":ey(this)?"ParenthesizedTypeNode":ty(this)?"ThisTypeNode":ry(this)?"TypeOperatorNode":ny(this)?"IndexedAccessTypeNode":ay(this)?"MappedTypeNode":iy(this)?"LiteralTypeNode":Hg(this)?"NamedTupleMember":oy(this)?"ImportTypeNode":Ft(this.kind)}${this.flags?` (${It(this.flags)})`:""}`}},__debugKind:{get(){return Ft(this.kind)}},__debugNodeFlags:{get(){return It(this.flags)}},__debugModifierFlags:{get(){return Ve(G_(this))}},__debugTransformFlags:{get(){return Kr(this.transformFlags)}},__debugIsParseTreeNode:{get(){return Cs(this)}},__debugEmitFlags:{get(){return Ht(ai(this))}},__debugGetText:{value(Xe){if(oi(this))return "";let Qe=se.get(this);if(Qe===void 0){let it=sh(this),wt=it&&Yn(it);Qe=wt?Pf(wt,it,Xe):"",se.set(this,Qe);}return Qe}}});sr=true;}e.enableDebugInfo=jr;function qr(O){let se=O&7,me=se===0?"in out":se===3?"[bivariant]":se===2?"in":se===1?"out":se===4?"[independent]":"";return O&8?me+=" (unmeasurable)":O&16&&(me+=" (unreliable)"),me}e.formatVariance=qr;class Mn{__debugToString(){var se;switch(this.kind){case 3:return ((se=this.debugInfo)==null?void 0:se.call(this))||"(function mapper)";case 0:return `${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return k1(this.sources,this.targets||kl(this.sources,()=>"any"),(me,Se)=>`${me.__debugTypeToString()} -> ${typeof Se=="string"?Se:Se.__debugTypeToString()}`).join(", ");case 2:return k1(this.sources,this.targets,(me,Se)=>`${me.__debugTypeToString()} -> ${Se().__debugTypeToString()}`).join(", ");case 5:case 4:return `m1: ${this.mapper1.__debugToString().split(`
`).join(`
    `)}
m2: ${this.mapper2.__debugToString().split(`
`).join(`
    `)}`;default:return Ie(this)}}}e.DebugTypeMapper=Mn;function Rr(O){return e.isDebugging?Object.setPrototypeOf(O,Mn.prototype):O}e.attachDebugPrototypeIfDebug=Rr;function Ae(O){return console.log(kn(O))}e.printControlFlowGraph=Ae;function kn(O){let se=-1;function me(F){return F.id||(F.id=se,se--),F.id}let Se;(F=>{F.lr="─",F.ud="│",F.dr="╭",F.dl="╮",F.ul="╯",F.ur="╰",F.udr="├",F.udl="┤",F.dlr="┬",F.ulr="┴",F.udlr="╫";})(Se||(Se={}));let Xe;(F=>{F[F.None=0]="None",F[F.Up=1]="Up",F[F.Down=2]="Down",F[F.Left=4]="Left",F[F.Right=8]="Right",F[F.UpDown=3]="UpDown",F[F.LeftRight=12]="LeftRight",F[F.UpLeft=5]="UpLeft",F[F.UpRight=9]="UpRight",F[F.DownLeft=6]="DownLeft",F[F.DownRight=10]="DownRight",F[F.UpDownLeft=7]="UpDownLeft",F[F.UpDownRight=11]="UpDownRight",F[F.UpLeftRight=13]="UpLeftRight",F[F.DownLeftRight=14]="DownLeftRight",F[F.UpDownLeftRight=15]="UpDownLeftRight",F[F.NoChildren=16]="NoChildren";})(Xe||(Xe={}));let Qe=2032,it=882,wt=Object.create(null),kt=[],ot=be(O,new Set);for(let F of kt)F.text=Lr(F.flowNode,F.circular),Ce(F);let oa=ye(ot),br=qe(oa);return Ze(ot,0),nt();function Un(F){return !!(F.flags&128)}function zr(F){return !!(F.flags&12)&&!!F.antecedent}function Ia(F){return !!(F.flags&Qe)}function B(F){return !!(F.flags&it)}function Q(F){let p=[];for(let Ue of F.edges)Ue.source===F&&p.push(Ue.target);return p}function ee(F){let p=[];for(let Ue of F.edges)Ue.target===F&&p.push(Ue.source);return p}function be(F,p){let Ue=me(F),We=wt[Ue];if(We&&p.has(F))return We.circular=true,We={id:-1,flowNode:F,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},kt.push(We),We;if(p.add(F),!We)if(wt[Ue]=We={id:Ue,flowNode:F,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:false},kt.push(We),zr(F))for(let j of F.antecedent)ve(We,j,p);else Ia(F)&&ve(We,F.antecedent,p);return p.delete(F),We}function ve(F,p,Ue){let We=be(p,Ue),j={source:F,target:We};F.edges.push(j),We.edges.push(j);}function Ce(F){if(F.level!==-1)return F.level;let p=0;for(let Ue of ee(F))p=Math.max(p,Ce(Ue)+1);return F.level=p}function ye(F){let p=0;for(let Ue of Q(F))p=Math.max(p,ye(Ue));return p+1}function qe(F){let p=Sn(Array(F),0);for(let Ue of kt)p[Ue.level]=Math.max(p[Ue.level],Ue.text.length);return p}function Ze(F,p){if(F.lane===-1){F.lane=p,F.endLane=p;let Ue=Q(F);for(let We=0;We<Ue.length;We++){We>0&&p++;let j=Ue[We];Ze(j,p),j.endLane>F.endLane&&(p=j.endLane);}F.endLane=p;}}function Ge(F){if(F&2)return "Start";if(F&4)return "Branch";if(F&8)return "Loop";if(F&16)return "Assignment";if(F&32)return "True";if(F&64)return "False";if(F&128)return "SwitchClause";if(F&256)return "ArrayMutation";if(F&512)return "Call";if(F&1024)return "ReduceLabel";if(F&1)return "Unreachable";throw new Error}function Ne(F){let p=Yn(F);return Pf(p,F,false)}function Lr(F,p){let Ue=Ge(F.flags);if(p&&(Ue=`${Ue}#${me(F)}`),Un(F)){let We=[],{switchStatement:j,clauseStart:Ye,clauseEnd:ze}=F.node;for(let He=Ye;He<ze;He++){let At=j.caseBlock.clauses[He];by(At)?We.push("default"):We.push(Ne(At.expression));}Ue+=` (${We.join(", ")})`;}else B(F)&&F.node&&(Ue+=` (${Ne(F.node)})`);return p==="circularity"?`Circular(${Ue})`:Ue}function nt(){let F=br.length,p=m0(kt,0,ze=>ze.lane)+1,Ue=Sn(Array(p),""),We=br.map(()=>Array(p)),j=br.map(()=>Sn(Array(p),0));for(let ze of kt){We[ze.level][ze.lane]=ze;let He=Q(ze);for(let yt=0;yt<He.length;yt++){let Dt=He[yt],Wt=8;Dt.lane===ze.lane&&(Wt|=4),yt>0&&(Wt|=1),yt<He.length-1&&(Wt|=2),j[ze.level][Dt.lane]|=Wt;}He.length===0&&(j[ze.level][ze.lane]|=16);let At=ee(ze);for(let yt=0;yt<At.length;yt++){let Dt=At[yt],Wt=4;yt>0&&(Wt|=1),yt<At.length-1&&(Wt|=2),j[ze.level-1][Dt.lane]|=Wt;}}for(let ze=0;ze<F;ze++)for(let He=0;He<p;He++){let At=ze>0?j[ze-1][He]:0,yt=He>0?j[ze][He-1]:0,Dt=j[ze][He];Dt||(At&8&&(Dt|=12),yt&2&&(Dt|=3),j[ze][He]=Dt);}for(let ze=0;ze<F;ze++)for(let He=0;He<Ue.length;He++){let At=j[ze][He],yt=At&4?"─":" ",Dt=We[ze][He];Dt?(Ye(He,Dt.text),ze<F-1&&(Ye(He," "),Ye(He,L(yt,br[ze]-Dt.text.length)))):ze<F-1&&Ye(He,L(yt,br[ze]+1)),Ye(He,cr(At)),Ye(He,At&8&&ze<F-1&&!We[ze+1][He]?"─":" ");}return `
${Ue.join(`
`)}
`;function Ye(ze,He){Ue[ze]+=He;}}function cr(F){switch(F){case 3:return "│";case 12:return "─";case 5:return "╯";case 9:return "╰";case 6:return "╮";case 10:return "╭";case 7:return "┤";case 11:return "├";case 13:return "┴";case 14:return "┬";case 15:return "╫"}return " "}function Sn(F,p){if(F.fill)F.fill(p);else for(let Ue=0;Ue<F.length;Ue++)F[Ue]=p;return F}function L(F,p){if(F.repeat)return p>0?F.repeat(p):"";let Ue="";for(;Ue.length<p;)Ue+=F;return Ue}}e.formatControlFlowGraph=kn;})(U||(U={}));var Ts,Fe=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.Bundle=308]="Bundle",e[e.JSDocTypeExpression=309]="JSDocTypeExpression",e[e.JSDocNameReference=310]="JSDocNameReference",e[e.JSDocMemberName=311]="JSDocMemberName",e[e.JSDocAllType=312]="JSDocAllType",e[e.JSDocUnknownType=313]="JSDocUnknownType",e[e.JSDocNullableType=314]="JSDocNullableType",e[e.JSDocNonNullableType=315]="JSDocNonNullableType",e[e.JSDocOptionalType=316]="JSDocOptionalType",e[e.JSDocFunctionType=317]="JSDocFunctionType",e[e.JSDocVariadicType=318]="JSDocVariadicType",e[e.JSDocNamepathType=319]="JSDocNamepathType",e[e.JSDoc=320]="JSDoc",e[e.JSDocComment=320]="JSDocComment",e[e.JSDocText=321]="JSDocText",e[e.JSDocTypeLiteral=322]="JSDocTypeLiteral",e[e.JSDocSignature=323]="JSDocSignature",e[e.JSDocLink=324]="JSDocLink",e[e.JSDocLinkCode=325]="JSDocLinkCode",e[e.JSDocLinkPlain=326]="JSDocLinkPlain",e[e.JSDocTag=327]="JSDocTag",e[e.JSDocAugmentsTag=328]="JSDocAugmentsTag",e[e.JSDocImplementsTag=329]="JSDocImplementsTag",e[e.JSDocAuthorTag=330]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",e[e.JSDocClassTag=332]="JSDocClassTag",e[e.JSDocPublicTag=333]="JSDocPublicTag",e[e.JSDocPrivateTag=334]="JSDocPrivateTag",e[e.JSDocProtectedTag=335]="JSDocProtectedTag",e[e.JSDocReadonlyTag=336]="JSDocReadonlyTag",e[e.JSDocOverrideTag=337]="JSDocOverrideTag",e[e.JSDocCallbackTag=338]="JSDocCallbackTag",e[e.JSDocOverloadTag=339]="JSDocOverloadTag",e[e.JSDocEnumTag=340]="JSDocEnumTag",e[e.JSDocParameterTag=341]="JSDocParameterTag",e[e.JSDocReturnTag=342]="JSDocReturnTag",e[e.JSDocThisTag=343]="JSDocThisTag",e[e.JSDocTypeTag=344]="JSDocTypeTag",e[e.JSDocTemplateTag=345]="JSDocTemplateTag",e[e.JSDocTypedefTag=346]="JSDocTypedefTag",e[e.JSDocSeeTag=347]="JSDocSeeTag",e[e.JSDocPropertyTag=348]="JSDocPropertyTag",e[e.JSDocThrowsTag=349]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=350]="JSDocSatisfiesTag",e[e.JSDocImportTag=351]="JSDocImportTag",e[e.SyntaxList=352]="SyntaxList",e[e.NotEmittedStatement=353]="NotEmittedStatement",e[e.NotEmittedTypeElement=354]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=355]="PartiallyEmittedExpression",e[e.CommaListExpression=356]="CommaListExpression",e[e.SyntheticReferenceExpression=357]="SyntheticReferenceExpression",e[e.Count=358]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=309]="FirstJSDocNode",e[e.LastJSDocNode=351]="LastJSDocNode",e[e.FirstJSDocTagNode=327]="FirstJSDocTagNode",e[e.LastJSDocTagNode=351]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(Fe||{}),Ar=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(Ar||{}),A1=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(A1||{}),D1=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(D1||{}),Nl=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(Nl||{}),P1=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(P1||{}),F1=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(F1||{}),er=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(er||{}),I1=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(I1||{}),L1=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(L1||{}),In=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(In||{}),wl=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(wl||{}),J1=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(J1||{}),Ur=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(Ur||{}),O1=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(O1||{}),M1=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(M1||{}),U1=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(U1||{}),Gi={RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,RegularExpressionFlagsDotAll:5,RegularExpressionFlagsHasIndices:9,RegularExpressionFlagsUnicodeSets:11},B1={reference:{args:[{name:"types",optional:true,captureSpan:true},{name:"lib",optional:true,captureSpan:true},{name:"path",optional:true,captureSpan:true},{name:"no-default-lib",optional:true},{name:"resolution-mode",optional:true},{name:"preserve",optional:true}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:true}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},Hi=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(Hi||{}),Ta="/",x0="\\",K1="://",k0=/\\/g;function S0(e){return e===47||e===92}function b0(e,r){return e.length>r.length&&_0(e,r)}function Al(e){return e.length>0&&S0(e.charCodeAt(e.length-1))}function j1(e){return e>=97&&e<=122||e>=65&&e<=90}function v0(e,r){let i=e.charCodeAt(r);if(i===58)return r+1;if(i===37&&e.charCodeAt(r+1)===51){let u=e.charCodeAt(r+2);if(u===97||u===65)return r+3}return  -1}function C0(e){if(!e)return 0;let r=e.charCodeAt(0);if(r===47||r===92){if(e.charCodeAt(1)!==r)return 1;let u=e.indexOf(r===47?Ta:x0,2);return u<0?e.length:u+1}if(j1(r)&&e.charCodeAt(1)===58){let u=e.charCodeAt(2);if(u===47||u===92)return 3;if(e.length===2)return 2}let i=e.indexOf(K1);if(i!==-1){let u=i+K1.length,h=e.indexOf(Ta,u);if(h!==-1){let y=e.slice(0,i),A=e.slice(u,h);if(y==="file"&&(A===""||A==="localhost")&&j1(e.charCodeAt(h+1))){let P=v0(e,h+2);if(P!==-1){if(e.charCodeAt(P)===47)return ~(P+1);if(P===e.length)return ~P}}return ~(h+1)}return ~e.length}return 0}function xs(e){let r=C0(e);return r<0?~r:r}function q1(e,r,i){if(e=ks(e),xs(e)===e.length)return "";e=z1(e);let u=e.slice(Math.max(xs(e),e.lastIndexOf(Ta)+1)),h;return h?u.slice(0,u.length-h.length):u}function R1(e,r,i){if(ys(r,".")||(r="."+r),e.length>=r.length&&e.charCodeAt(e.length-r.length)===46){let u=e.slice(e.length-r.length);if(i(u,r))return u}}function E0(e,r,i){if(typeof r=="string")return R1(e,r,i)||"";for(let u of r){let h=R1(e,u,i);if(h)return h}return ""}function N0(e,r,i){if(r)return E0(z1(e),r,p0);let u=q1(e),h=u.lastIndexOf(".");return h>=0?u.substring(h):""}function w0(e,r){let i=e.substring(0,r),u=e.substring(r).split(Ta);return u.length&&!ya(u)&&u.pop(),[i,...u]}function A0(e,r=""){return e=F0(r,e),w0(e,xs(e))}function D0(e,r){return e.length===0?"":(e[0]&&Dl(e[0]))+e.slice(1,r).join(Ta)}function ks(e){return e.includes("\\")?e.replace(k0,Ta):e}function P0(e){if(!qt(e))return [];let r=[e[0]];for(let i=1;i<e.length;i++){let u=e[i];if(u&&u!=="."){if(u===".."){if(r.length>1){if(r[r.length-1]!==".."){r.pop();continue}}else if(r[0])continue}r.push(u);}}return r}function F0(e,...r){e&&(e=ks(e));for(let i of r)i&&(i=ks(i),!e||xs(i)!==0?e=i:e=Dl(e)+i);return e}function I0(e){if(e=ks(e),!$1.test(e))return e;let r=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(r!==e&&(e=r,!$1.test(e)))return e;let i=D0(P0(A0(e)));return i&&Al(e)?Dl(i):i}function z1(e){return Al(e)?e.substr(0,e.length-1):e}function Dl(e){return Al(e)?e:e+Ta}var $1=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function $(e,r,i,u,h,y,A){return {code:e,category:r,key:i,message:u,reportsUnnecessary:h,elidedInCompatabilityPyramid:y,reportsDeprecated:A}}var C={Unterminated_string_literal:$(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:$(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:$(1005,1,"_0_expected_1005","'{0}' expected."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:$(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Asterisk_Slash_expected:$(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:$(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:$(1012,1,"Unexpected_token_1012","Unexpected token."),super_must_be_followed_by_an_argument_list_or_member_access:$(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:$(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:$(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),Invalid_reference_directive_syntax:$(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Expression_expected:$(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:$(1110,1,"Type_expected_1110","Type expected."),Octal_literals_are_not_allowed_Use_the_syntax_0:$(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Digit_expected:$(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:$(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:$(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:$(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:$(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:$(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:$(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:$(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:$(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:$(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:$(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:$(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:$(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:$(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:$(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:$(1140,1,"Type_argument_expected_1140","Type argument expected."),Line_break_not_permitted_here:$(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:$(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:$(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:$(1146,1,"Declaration_expected_1146","Declaration expected."),Unterminated_template_literal:$(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:$(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),Binary_digit_expected:$(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:$(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:$(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:$(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:$(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),Merge_conflict_marker_encountered:$(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:$(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:$(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:$(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),_0_tag_already_specified:$(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:$(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),Keywords_cannot_contain_escape_characters:$(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:$(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:$(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:$(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),An_enum_member_name_must_be_followed_by_a_or:$(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:$(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Did_you_mean_0:$(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),Unexpected_token_Did_you_mean_or_rbrace:$(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:$(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:$(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:$(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:$(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:$(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:$(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:$(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:$(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:$(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:$(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:$(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:$(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:$(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:$(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:$(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:$(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:$(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:$(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),resolution_mode_should_be_either_require_or_import:$(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),catch_or_finally_expected:$(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_instantiation_expression_cannot_be_followed_by_a_property_access:$(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:$(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:$(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:$(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:$(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:$(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),Unknown_regular_expression_flag:$(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:$(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:$(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:$(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:$(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:$(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:$(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:$(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:$(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:$(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:$(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:$(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:$(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:$(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:$(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:$(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:$(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:$(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:$(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:$(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:$(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:$(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:$(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:$(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:$(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:$(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:$(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:$(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:$(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:$(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:$(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:$(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:$(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:$(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:$(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:$(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:$(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:$(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:$(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:$(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),Interface_name_cannot_be_0:$(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),Type_alias_name_cannot_be_0:$(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:$(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),JSX_expressions_must_have_one_parent_element:$(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),super_may_not_use_type_arguments:$(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:$(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Namespace_name_cannot_be_0:$(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Numeric_separators_are_not_allowed_here:$(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:$(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:$(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:$(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:$(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Expected_corresponding_JSX_closing_tag_for_0:$(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:$(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:$(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:$(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),JSX_fragment_has_no_corresponding_closing_tag:$(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:$(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),Unicode_escape_sequence_cannot_appear_here:$(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Private_identifiers_cannot_be_used_as_parameters:$(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),Private_identifiers_are_not_allowed_outside_class_bodies:$(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),can_only_be_used_at_the_start_of_a_file:$(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Private_identifiers_are_not_allowed_in_variable_declarations:$(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:$(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers.")};function Tt(e){return e>=80}function L0(e){return e===32||Tt(e)}var Pl={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},J0=new Map(Object.entries(Pl)),G1=new Map(Object.entries({...Pl,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,"</":31,">>":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),H1=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),O0=new Map([[1,Gi.RegularExpressionFlagsHasIndices],[16,Gi.RegularExpressionFlagsDotAll],[32,Gi.RegularExpressionFlagsUnicode],[64,Gi.RegularExpressionFlagsUnicodeSets],[128,Gi.RegularExpressionFlagsSticky]]),M0=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],U0=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],B0=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],K0=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],j0=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,q0=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,R0=/@(?:see|link)/i;function Ss(e,r){if(e<r[0])return  false;let i=0,u=r.length,h;for(;i+1<u;){if(h=i+(u-i)/2,h-=h%2,r[h]<=e&&e<=r[h+1])return  true;e<r[h]?u=h:i=h+2;}return  false}function z0(e,r){return r>=2?Ss(e,B0):Ss(e,M0)}function $0(e,r){return r>=2?Ss(e,K0):Ss(e,U0)}function W1(e){let r=[];return e.forEach((i,u)=>{r[i]=u;}),r}var G0=W1(G1);function ct(e){return G0[e]}function V1(e){return G1.get(e)}W1(H1);function X1(e){return H1.get(e)}function Q1(e){let r=[],i=0,u=0;for(;i<e.length;){let h=e.charCodeAt(i);switch(i++,h){case 13:e.charCodeAt(i)===10&&i++;case 10:r.push(u),u=i;break;default:h>127&&gr(h)&&(r.push(u),u=i);break}}return r.push(u),r}function H0(e,r,i,u,h){(r<0||r>=e.length)&&(h?r=r<0?0:r>=e.length?e.length-1:r:U.fail(`Bad line number. Line: ${r}, lineStarts.length: ${e.length} , line map is correct? ${u!==void 0?Xm(e,Q1(u)):"unknown"}`));let y=e[r]+i;return h?y>e[r+1]?e[r+1]:typeof u=="string"&&y>u.length?u.length:y:(r<e.length-1?U.assert(y<e[r+1]):u!==void 0&&U.assert(y<=u.length),y)}function Fl(e){return e.lineMap||(e.lineMap=Q1(e.text))}function W0(e,r){let i=V0(e,r);return {line:i,character:r-e[i]}}function V0(e,r,i){let u=r0(e,r,_t,w1);return u<0&&(u=~u-1,U.assert(u!==-1,"position cannot precede the beginning of the file")),u}function Z1(e,r){return W0(Fl(e),r)}function Wi(e){return Vi(e)||gr(e)}function Vi(e){return e===32||e===9||e===11||e===12||e===160||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function gr(e){return e===10||e===13||e===8232||e===8233}function Xn(e){return e>=48&&e<=57}function Il(e){return Xn(e)||e>=65&&e<=70||e>=97&&e<=102}function Ll(e){return e>=65&&e<=90||e>=97&&e<=122}function Y1(e){return Ll(e)||Xn(e)||e===95}function Jl(e){return e>=48&&e<=55}function hn(e,r,i,u,h){if(ao(r))return r;let y=false;for(;;){let A=e.charCodeAt(r);switch(A){case 13:e.charCodeAt(r+1)===10&&r++;case 10:if(r++,i)return r;y=!!h;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(u)break;if(e.charCodeAt(r+1)===47){for(r+=2;r<e.length&&!gr(e.charCodeAt(r));)r++;y=false;continue}if(e.charCodeAt(r+1)===42){for(r+=2;r<e.length;){if(e.charCodeAt(r)===42&&e.charCodeAt(r+1)===47){r+=2;break}r++;}y=false;continue}break;case 60:case 124:case 61:case 62:if(xa(e,r)){r=Za(e,r),y=false;continue}break;case 35:if(r===0&&ef(e,r)){r=tf(e,r),y=false;continue}break;case 42:if(y){r++,y=false;continue}break;default:if(A>127&&Wi(A)){r++;continue}break}return r}}var bs=7;function xa(e,r){if(U.assert(r>=0),r===0||gr(e.charCodeAt(r-1))){let i=e.charCodeAt(r);if(r+bs<e.length){for(let u=0;u<bs;u++)if(e.charCodeAt(r+u)!==i)return  false;return i===61||e.charCodeAt(r+bs)===32}}return  false}function Za(e,r,i){i&&i(C.Merge_conflict_marker_encountered,r,bs);let u=e.charCodeAt(r),h=e.length;if(u===60||u===62)for(;r<h&&!gr(e.charCodeAt(r));)r++;else for(U.assert(u===124||u===61);r<h;){let y=e.charCodeAt(r);if((y===61||y===62)&&y!==u&&xa(e,r))break;r++;}return r}var Ol=/^#!.*/;function ef(e,r){return U.assert(r===0),Ol.test(e)}function tf(e,r){let i=Ol.exec(e)[0];return r=r+i.length,r}function vs(e,r,i,u,h,y,A){let P,c,Z,d,v=false,T=u,b=A;if(i===0){T=true;let J=nf(r);J&&(i=J.length);}e:for(;i>=0&&i<r.length;){let J=r.charCodeAt(i);switch(J){case 13:r.charCodeAt(i+1)===10&&i++;case 10:if(i++,u)break e;T=true,v&&(d=true);continue;case 9:case 11:case 12:case 32:i++;continue;case 47:let ie=r.charCodeAt(i+1),ke=false;if(ie===47||ie===42){let _e=ie===47?2:3,he=i;if(i+=2,ie===47)for(;i<r.length;){if(gr(r.charCodeAt(i))){ke=true;break}i++;}else for(;i<r.length;){if(r.charCodeAt(i)===42&&r.charCodeAt(i+1)===47){i+=2;break}i++;}if(T){if(v&&(b=h(P,c,Z,d,y,b),!e&&b))return b;P=he,c=i,Z=_e,d=ke,v=true;}continue}break e;default:if(J>127&&Wi(J)){v&&gr(J)&&(d=true),i++;continue}break e}}return v&&(b=h(P,c,Z,d,y,b)),b}function X0(e,r,i,u){return vs(false,e,r,false,i,u)}function Q0(e,r,i,u){return vs(false,e,r,true,i,u)}function Z0(e,r,i,u,h){return vs(true,e,r,false,i,u,h)}function Y0(e,r,i,u,h){return vs(true,e,r,true,i,u,h)}function rf(e,r,i,u,h,y=[]){return y.push({kind:i,pos:e,end:r,hasTrailingNewLine:u}),y}function Ml(e,r){return Z0(e,r,rf,void 0,void 0)}function eh(e,r){return Y0(e,r,rf,void 0,void 0)}function nf(e){let r=Ol.exec(e);if(r)return r[0]}function Yr(e,r){return Ll(e)||e===36||e===95||e>127&&z0(e,r)}function Ln(e,r,i){return Y1(e)||e===36||false||e>127&&$0(e,r)}function th(e,r,i){let u=ka(e,0);if(!Yr(u,r))return  false;for(let h=Mt(u);h<e.length;h+=Mt(u))if(!Ln(u=ka(e,h),r))return  false;return  true}function Ul(e,r,i=0,u,h,y,A){var P=u,c,Z,d,v,T,b,J,ie,ke=0,_e=0,he=0;wt(P,y,A);var I={getTokenFullStart:()=>d,getStartPos:()=>d,getTokenEnd:()=>c,getTextPos:()=>c,getToken:()=>T,getTokenStart:()=>v,getTokenPos:()=>v,getTokenText:()=>P.substring(v,c),getTokenValue:()=>b,hasUnicodeEscape:()=>(J&1024)!==0,hasExtendedUnicodeEscape:()=>(J&8)!==0,hasPrecedingLineBreak:()=>(J&1)!==0,hasPrecedingJSDocComment:()=>(J&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(J&32768)!==0,isIdentifier:()=>T===80||T>118,isReservedWord:()=>T>=83&&T<=118,isUnterminated:()=>(J&4)!==0,getCommentDirectives:()=>ie,getNumericLiteralFlags:()=>J&25584,getTokenFlags:()=>J,reScanGreaterToken:lt,reScanAsteriskEqualsToken:nn,reScanSlashToken:mt,reScanTemplateToken:Kt,reScanTemplateHeadOrNoSubstitutionTemplate:tr,scanJsxIdentifier:Mn,scanJsxAttributeValue:Rr,reScanJsxAttributeValue:Ae,reScanJsxToken:an,reScanLessThanToken:Tn,reScanHashToken:xn,reScanQuestionToken:jr,reScanInvalidIdentifier:Bt,scanJsxToken:qr,scanJsDocToken:O,scanJSDocCommentTextToken:kn,scan:ut,getText:Qe,clearCommentDirectives:it,setText:wt,setScriptTarget:ot,setLanguageVariant:oa,setScriptKind:br,setJSDocParsingMode:Un,setOnError:kt,resetTokenState:zr,setTextPos:zr,setSkipJsDocLeadingAsterisks:Ia,tryScan:Xe,lookAhead:Se,scanRange:me};return U.isDebugging&&Object.defineProperty(I,"__debugShowCurrentPositionInText",{get:()=>{let B=I.getText();return B.slice(0,I.getTokenFullStart())+"║"+B.slice(I.getTokenFullStart())}}),I;function oe(B){return ka(P,B)}function Ie(B){return B>=0&&B<Z?oe(B):-1}function z(B){return P.charCodeAt(B)}function ue(B){return B>=0&&B<Z?z(B):-1}function W(B,Q=c,ee,be){if(h){let ve=c;c=Q,h(B,ee||0,be),c=ve;}}function ft(){let B=c,Q=false,ee=false,be="";for(;;){let ve=z(c);if(ve===95){J|=512,Q?(Q=false,ee=true,be+=P.substring(B,c)):(J|=16384,W(ee?C.Multiple_consecutive_numeric_separators_are_not_permitted:C.Numeric_separators_are_not_allowed_here,c,1)),c++,B=c;continue}if(Xn(ve)){Q=true,ee=false,c++;continue}break}return z(c-1)===95&&(J|=16384,W(C.Numeric_separators_are_not_allowed_here,c-1,1)),be+P.substring(B,c)}function en(){let B=c,Q;if(z(c)===48)if(c++,z(c)===95)J|=16896,W(C.Numeric_separators_are_not_allowed_here,c,1),c--,Q=ft();else if(!tn())J|=8192,Q=""+ +b;else if(!b)Q="0";else {b=""+parseInt(b,8),J|=32;let ye=T===41,qe=(ye?"-":"")+"0o"+(+b).toString(8);return ye&&B--,W(C.Octal_literals_are_not_allowed_Use_the_syntax_0,B,c-B,qe),9}else Q=ft();let ee,be;z(c)===46&&(c++,ee=ft());let ve=c;if(z(c)===69||z(c)===101){c++,J|=16,(z(c)===43||z(c)===45)&&c++;let ye=c,qe=ft();qe?(be=P.substring(ve,ye)+qe,ve=c):W(C.Digit_expected);}let Ce;if(J&512?(Ce=Q,ee&&(Ce+="."+ee),be&&(Ce+=be)):Ce=P.substring(B,ve),J&8192)return W(C.Decimals_with_leading_zeros_are_not_allowed,B,ve-B),b=""+ +Ce,9;if(ee!==void 0||J&16)return xr(B,ee===void 0&&!!(J&16)),b=""+ +Ce,9;{b=Ce;let ye=Ht();return xr(B),ye}}function xr(B,Q){if(!Yr(oe(c),e))return;let ee=c,{length:be}=xt();be===1&&P[ee]==="n"?W(Q?C.A_bigint_literal_cannot_use_exponential_notation:C.A_bigint_literal_must_be_an_integer,B,ee-B+1):(W(C.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,ee,be),c=ee);}function tn(){let B=c,Q=true;for(;Xn(ue(c));)Jl(z(c))||(Q=false),c++;return b=P.substring(B,c),Q}function kr(B,Q){let ee=Re(B,false,Q);return ee?parseInt(ee,16):-1}function Fr(B,Q){return Re(B,true,Q)}function Re(B,Q,ee){let be=[],ve=false,Ce=false;for(;be.length<B||Q;){let ye=z(c);if(ee&&ye===95){J|=512,ve?(ve=false,Ce=true):W(Ce?C.Multiple_consecutive_numeric_separators_are_not_permitted:C.Numeric_separators_are_not_allowed_here,c,1),c++;continue}if(ve=ee,ye>=65&&ye<=70)ye+=32;else if(!(ye>=48&&ye<=57||ye>=97&&ye<=102))break;be.push(ye),c++,Ce=false;}return be.length<B&&(be=[]),z(c-1)===95&&W(C.Numeric_separators_are_not_allowed_here,c-1,1),String.fromCharCode(...be)}function rn(B=false){let Q=z(c);c++;let ee="",be=c;for(;;){if(c>=Z){ee+=P.substring(be,c),J|=4,W(C.Unterminated_string_literal);break}let ve=z(c);if(ve===Q){ee+=P.substring(be,c),c++;break}if(ve===92&&!B){ee+=P.substring(be,c),ee+=Ft(3),be=c;continue}if((ve===10||ve===13)&&!B){ee+=P.substring(be,c),J|=4,W(C.Unterminated_string_literal);break}c++;}return ee}function On(B){let Q=z(c)===96;c++;let ee=c,be="",ve;for(;;){if(c>=Z){be+=P.substring(ee,c),J|=4,W(C.Unterminated_template_literal),ve=Q?15:18;break}let Ce=z(c);if(Ce===96){be+=P.substring(ee,c),c++,ve=Q?15:18;break}if(Ce===36&&c+1<Z&&z(c+1)===123){be+=P.substring(ee,c),c+=2,ve=Q?16:17;break}if(Ce===92){be+=P.substring(ee,c),be+=Ft(1|(B?2:0)),ee=c;continue}if(Ce===13){be+=P.substring(ee,c),c++,c<Z&&z(c)===10&&c++,be+=`
`,ee=c;continue}c++;}return U.assert(ve!==void 0),b=be,ve}function Ft(B){let Q=c;if(c++,c>=Z)return W(C.Unexpected_end_of_text),"";let ee=z(c);switch(c++,ee){case 48:if(c>=Z||!Xn(z(c)))return "\0";case 49:case 50:case 51:c<Z&&Jl(z(c))&&c++;case 52:case 53:case 54:case 55:if(c<Z&&Jl(z(c))&&c++,J|=2048,B&6){let Ce=parseInt(P.substring(Q+1,c),8);return B&4&&!(B&32)&&ee!==48?W(C.Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead,Q,c-Q,"\\x"+Ce.toString(16).padStart(2,"0")):W(C.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,Q,c-Q,"\\x"+Ce.toString(16).padStart(2,"0")),String.fromCharCode(Ce)}return P.substring(Q,c);case 56:case 57:return J|=2048,B&6?(B&4&&!(B&32)?W(C.Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class,Q,c-Q):W(C.Escape_sequence_0_is_not_allowed,Q,c-Q,P.substring(Q,c)),String.fromCharCode(ee)):P.substring(Q,c);case 98:return "\b";case 116:return "	";case 110:return `
`;case 118:return "\v";case 102:return "\f";case 114:return "\r";case 39:return "'";case 34:return '"';case 117:if(c<Z&&z(c)===123){c-=2;let Ce=Br(!!(B&6));return B&17||(J|=2048,B&6&&W(C.Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,Q,c-Q)),Ce}for(;c<Q+6;c++)if(!(c<Z&&Il(z(c))))return J|=2048,B&6&&W(C.Hexadecimal_digit_expected),P.substring(Q,c);J|=1024;let be=parseInt(P.substring(Q+2,c),16),ve=String.fromCharCode(be);if(B&16&&be>=55296&&be<=56319&&c+6<Z&&P.substring(c,c+2)==="\\u"&&z(c+2)!==123){let Ce=c,ye=c+2;for(;ye<Ce+6;ye++)if(!Il(z(ye)))return ve;let qe=parseInt(P.substring(Ce+2,ye),16);if(qe>=56320&&qe<=57343)return c=ye,ve+String.fromCharCode(qe)}return ve;case 120:for(;c<Q+4;c++)if(!(c<Z&&Il(z(c))))return J|=2048,B&6&&W(C.Hexadecimal_digit_expected),P.substring(Q,c);return J|=4096,String.fromCharCode(parseInt(P.substring(Q+2,c),16));case 13:c<Z&&z(c)===10&&c++;case 10:case 8232:case 8233:return "";default:return (B&16||B&4&&!(B&8)&&Ln(ee,e))&&W(C.This_character_cannot_be_escaped_in_a_regular_expression,c-2,2),String.fromCharCode(ee)}}function Br(B){let Q=c;c+=3;let ee=c,be=Fr(1,false),ve=be?parseInt(be,16):-1,Ce=false;return ve<0?(B&&W(C.Hexadecimal_digit_expected),Ce=true):ve>1114111&&(B&&W(C.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,ee,c-ee),Ce=true),c>=Z?(B&&W(C.Unexpected_end_of_text),Ce=true):z(c)===125?c++:(B&&W(C.Unterminated_Unicode_escape_sequence),Ce=true),Ce?(J|=2048,P.substring(Q,c)):(J|=8,af(ve))}function Ir(){if(c+5<Z&&z(c+1)===117){let B=c;c+=2;let Q=kr(4,false);return c=B,Q}return  -1}function It(){if(oe(c+1)===117&&oe(c+2)===123){let B=c;c+=3;let Q=Fr(1,false),ee=Q?parseInt(Q,16):-1;return c=B,ee}return  -1}function xt(){let B="",Q=c;for(;c<Z;){let ee=oe(c);if(Ln(ee,e))c+=Mt(ee);else if(ee===92){if(ee=It(),ee>=0&&Ln(ee,e)){B+=Br(true),Q=c;continue}if(ee=Ir(),!(ee>=0&&Ln(ee,e)))break;J|=1024,B+=P.substring(Q,c),B+=af(ee),c+=6,Q=c;}else break}return B+=P.substring(Q,c),B}function Ve(){let B=b.length;if(B>=2&&B<=12){let Q=b.charCodeAt(0);if(Q>=97&&Q<=122){let ee=J0.get(b);if(ee!==void 0)return T=ee}}return T=80}function Kr(B){let Q="",ee=false,be=false;for(;;){let ve=z(c);if(ve===95){J|=512,ee?(ee=false,be=true):W(be?C.Multiple_consecutive_numeric_separators_are_not_permitted:C.Numeric_separators_are_not_allowed_here,c,1),c++;continue}if(ee=true,!Xn(ve)||ve-48>=B)break;Q+=P[c],c++,be=false;}return z(c-1)===95&&W(C.Numeric_separators_are_not_allowed_here,c-1,1),Q}function Ht(){return z(c)===110?(b+="n",J&384&&(b=mg(b)+"n"),c++,10):(b=""+(J&128?parseInt(b.slice(2),2):J&256?parseInt(b.slice(2),8):+b),9)}function ut(){for(d=c,J=0;;){if(v=c,c>=Z)return T=1;let B=oe(c);if(c===0&&B===35&&ef(P,c)){if(c=tf(P,c),r)continue;return T=6}switch(B){case 10:case 13:if(J|=1,r){c++;continue}else return B===13&&c+1<Z&&z(c+1)===10?c+=2:c++,T=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(r){c++;continue}else {for(;c<Z&&Vi(z(c));)c++;return T=5}case 33:return z(c+1)===61?z(c+2)===61?(c+=3,T=38):(c+=2,T=36):(c++,T=54);case 34:case 39:return b=rn(),T=11;case 96:return T=On(false);case 37:return z(c+1)===61?(c+=2,T=70):(c++,T=45);case 38:return z(c+1)===38?z(c+2)===61?(c+=3,T=77):(c+=2,T=56):z(c+1)===61?(c+=2,T=74):(c++,T=51);case 40:return c++,T=21;case 41:return c++,T=22;case 42:if(z(c+1)===61)return c+=2,T=67;if(z(c+1)===42)return z(c+2)===61?(c+=3,T=68):(c+=2,T=43);if(c++,ke&&(J&32768)===0&&J&1){J|=32768;continue}return T=42;case 43:return z(c+1)===43?(c+=2,T=46):z(c+1)===61?(c+=2,T=65):(c++,T=40);case 44:return c++,T=28;case 45:return z(c+1)===45?(c+=2,T=47):z(c+1)===61?(c+=2,T=66):(c++,T=41);case 46:return Xn(z(c+1))?(en(),T=9):z(c+1)===46&&z(c+2)===46?(c+=3,T=26):(c++,T=25);case 47:if(z(c+1)===47){for(c+=2;c<Z&&!gr(z(c));)c++;if(ie=sr(ie,P.slice(v,c),j0,v),r)continue;return T=2}if(z(c+1)===42){c+=2;let ye=z(c)===42&&z(c+1)!==47,qe=false,Ze=v;for(;c<Z;){let Ge=z(c);if(Ge===42&&z(c+1)===47){c+=2,qe=true;break}c++,gr(Ge)&&(Ze=c,J|=1);}if(ye&&at()&&(J|=2),ie=sr(ie,P.slice(Ze,c),q0,Ze),qe||W(C.Asterisk_Slash_expected),r)continue;return qe||(J|=4),T=3}return z(c+1)===61?(c+=2,T=69):(c++,T=44);case 48:if(c+2<Z&&(z(c+1)===88||z(c+1)===120))return c+=2,b=Fr(1,true),b||(W(C.Hexadecimal_digit_expected),b="0"),b="0x"+b,J|=64,T=Ht();if(c+2<Z&&(z(c+1)===66||z(c+1)===98))return c+=2,b=Kr(2),b||(W(C.Binary_digit_expected),b="0"),b="0b"+b,J|=128,T=Ht();if(c+2<Z&&(z(c+1)===79||z(c+1)===111))return c+=2,b=Kr(8),b||(W(C.Octal_digit_expected),b="0"),b="0o"+b,J|=256,T=Ht();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return T=en();case 58:return c++,T=59;case 59:return c++,T=27;case 60:if(xa(P,c)){if(c=Za(P,c,W),r)continue;return T=7}return z(c+1)===60?z(c+2)===61?(c+=3,T=71):(c+=2,T=48):z(c+1)===61?(c+=2,T=33):i===1&&z(c+1)===47&&z(c+2)!==42?(c+=2,T=31):(c++,T=30);case 61:if(xa(P,c)){if(c=Za(P,c,W),r)continue;return T=7}return z(c+1)===61?z(c+2)===61?(c+=3,T=37):(c+=2,T=35):z(c+1)===62?(c+=2,T=39):(c++,T=64);case 62:if(xa(P,c)){if(c=Za(P,c,W),r)continue;return T=7}return c++,T=32;case 63:return z(c+1)===46&&!Xn(z(c+2))?(c+=2,T=29):z(c+1)===63?z(c+2)===61?(c+=3,T=78):(c+=2,T=61):(c++,T=58);case 91:return c++,T=23;case 93:return c++,T=24;case 94:return z(c+1)===61?(c+=2,T=79):(c++,T=53);case 123:return c++,T=19;case 124:if(xa(P,c)){if(c=Za(P,c,W),r)continue;return T=7}return z(c+1)===124?z(c+2)===61?(c+=3,T=76):(c+=2,T=57):z(c+1)===61?(c+=2,T=75):(c++,T=52);case 125:return c++,T=20;case 126:return c++,T=55;case 64:return c++,T=60;case 92:let Q=It();if(Q>=0&&Yr(Q,e))return b=Br(true)+xt(),T=Ve();let ee=Ir();return ee>=0&&Yr(ee,e)?(c+=6,J|=1024,b=String.fromCharCode(ee)+xt(),T=Ve()):(W(C.Invalid_character),c++,T=0);case 35:if(c!==0&&P[c+1]==="!")return W(C.can_only_be_used_at_the_start_of_a_file,c,2),c++,T=0;let be=oe(c+1);if(be===92){c++;let ye=It();if(ye>=0&&Yr(ye,e))return b="#"+Br(true)+xt(),T=81;let qe=Ir();if(qe>=0&&Yr(qe,e))return c+=6,J|=1024,b="#"+String.fromCharCode(qe)+xt(),T=81;c--;}return Yr(be,e)?(c++,Lt(be,e)):(b="#",W(C.Invalid_character,c++,Mt(B))),T=81;case 65533:return W(C.File_appears_to_be_binary,0,0),c=Z,T=8;default:let ve=Lt(B,e);if(ve)return T=ve;if(Vi(B)){c+=Mt(B);continue}else if(gr(B)){J|=1,c+=Mt(B);continue}let Ce=Mt(B);return W(C.Invalid_character,c,Ce),c+=Ce,T=0}}}function at(){switch(he){case 0:return  true;case 1:return  false}return _e!==3&&_e!==4?true:he===3?false:R0.test(P.slice(d,c))}function Bt(){U.assert(T===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),c=v=d,J=0;let B=oe(c),Q=Lt(B,99);return Q?T=Q:(c+=Mt(B),T)}function Lt(B,Q){let ee=B;if(Yr(ee,Q)){for(c+=Mt(ee);c<Z&&Ln(ee=oe(c),Q);)c+=Mt(ee);return b=P.substring(v,c),ee===92&&(b+=xt()),Ve()}}function lt(){if(T===32){if(z(c)===62)return z(c+1)===62?z(c+2)===61?(c+=3,T=73):(c+=2,T=50):z(c+1)===61?(c+=2,T=72):(c++,T=49);if(z(c)===61)return c++,T=34}return T}function nn(){return U.assert(T===67,"'reScanAsteriskEqualsToken' should only be called on a '*='"),c=v+1,T=64}function mt(B){if(T===44||T===69){let Q=v+1;c=Q;let ee=false,be=false,ve=false;for(;;){let ye=ue(c);if(ye===-1||gr(ye)){J|=4;break}if(ee)ee=false;else {if(ye===47&&!ve)break;ye===91?ve=true:ye===92?ee=true:ye===93?ve=false:!ve&&ye===40&&ue(c+1)===63&&ue(c+2)===60&&ue(c+3)!==61&&ue(c+3)!==33&&(be=true);}c++;}let Ce=c;if(J&4){c=Q,ee=false;let ye=0,qe=false,Ze=0;for(;c<Ce;){let Ge=z(c);if(ee)ee=false;else if(Ge===92)ee=true;else if(Ge===91)ye++;else if(Ge===93&&ye)ye--;else if(!ye){if(Ge===123)qe=true;else if(Ge===125&&qe)qe=false;else if(!qe){if(Ge===40)Ze++;else if(Ge===41&&Ze)Ze--;else if(Ge===41||Ge===93||Ge===125)break}}c++;}for(;Wi(ue(c-1))||ue(c-1)===59;)c--;W(C.Unterminated_regular_expression_literal,v,c-v);}else {c++;let ye=0;for(;;){let qe=Ie(c);if(qe===-1||!Ln(qe,e))break;let Ze=Mt(qe);if(B){let Ge=X1(qe);Ge===void 0?W(C.Unknown_regular_expression_flag,c,Ze):ye&Ge?W(C.Duplicate_regular_expression_flag,c,Ze):((ye|Ge)&96)===96?W(C.The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously,c,Ze):(ye|=Ge,gt(Ge,Ze));}c+=Ze;}B&&me(Q,Ce-Q,()=>{Sr(ye,true,be);});}b=P.substring(v,c),T=14;}return T}function Sr(B,Q,ee){var be=!!(B&64),ve=!!(B&96),Ce=ve||false,ye=false,qe=0,Ze,Ge,Ne,Lr=[],nt;function cr(G){for(;;){if(Lr.push(nt),nt=void 0,Sn(G),nt=Lr.pop(),ue(c)!==124)return;c++;}}function Sn(G){let de=false;for(;;){let je=c,xe=ue(c);switch(xe){case  -1:return;case 94:case 36:c++,de=false;break;case 92:switch(c++,ue(c)){case 98:case 66:c++,de=false;break;default:F(),de=true;break}break;case 40:if(c++,ue(c)===63)switch(c++,ue(c)){case 61:case 33:c++,de=!Ce;break;case 60:let St=c;switch(c++,ue(c)){case 61:case 33:c++,de=false;break;default:We(false),ur(62),e<5&&W(C.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,St,c-St),qe++,de=true;break}break;default:let Jt=c,lr=L(0);ue(c)===45&&(c++,L(lr),c===Jt+1&&W(C.Subpattern_flags_must_be_present_when_there_is_a_minus_sign,Jt,c-Jt)),ur(58),de=true;break}else qe++,de=true;cr(true),ur(41);break;case 123:c++;let M=c;tn();let ht=b;if(!Ce&&!ht){de=true;break}if(ue(c)===44){c++,tn();let St=b;if(ht)St&&Number.parseInt(ht)>Number.parseInt(St)&&(Ce||ue(c)===125)&&W(C.Numbers_out_of_order_in_quantifier,M,c-M);else if(St||ue(c)===125)W(C.Incomplete_quantifier_Digit_expected,M,0);else {W(C.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,je,1,String.fromCharCode(xe)),de=true;break}}else if(!ht){Ce&&W(C.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,je,1,String.fromCharCode(xe)),de=true;break}if(ue(c)!==125)if(Ce)W(C._0_expected,c,0,"}"),c--;else {de=true;break}case 42:case 43:case 63:c++,ue(c)===63&&c++,de||W(C.There_is_nothing_available_for_repetition,je,c-je),de=false;break;case 46:c++,de=true;break;case 91:c++,be?ze():Ye(),ur(93),de=true;break;case 41:if(G)return;case 93:case 125:(Ce||xe===41)&&W(C.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,c,1,String.fromCharCode(xe)),c++,de=true;break;case 47:case 124:return;default:La(),de=true;break}}}function L(G){for(;;){let de=Ie(c);if(de===-1||!Ln(de,e))break;let je=Mt(de),xe=X1(de);xe===void 0?W(C.Unknown_regular_expression_flag,c,je):G&xe?W(C.Duplicate_regular_expression_flag,c,je):xe&28?(G|=xe,gt(xe,je)):W(C.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern,c,je),c+=je;}return G}function F(){switch(U.assertEqual(z(c-1),92),ue(c)){case 107:c++,ue(c)===60?(c++,We(true),ur(62)):(Ce||ee)&&W(C.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,c-2,2);break;case 113:if(be){c++,W(C.q_is_only_available_inside_character_class,c-2,2);break}default:U.assert(bn()||p()||Ue(true));break}}function p(){U.assertEqual(z(c-1),92);let G=ue(c);if(G>=49&&G<=57){let de=c;return tn(),Ne=hr(Ne,{pos:de,end:c,value:+b}),true}return  false}function Ue(G){U.assertEqual(z(c-1),92);let de=ue(c);switch(de){case  -1:return W(C.Undetermined_character_escape,c-1,1),"\\";case 99:if(c++,de=ue(c),Ll(de))return c++,String.fromCharCode(de&31);if(Ce)W(C.c_must_be_followed_by_an_ASCII_letter,c-2,2);else if(G)return c--,"\\";return String.fromCharCode(de);case 94:case 36:case 47:case 92:case 46:case 42:case 43:case 63:case 40:case 41:case 91:case 93:case 123:case 125:case 124:return c++,String.fromCharCode(de);default:return c--,Ft(12|(ve?16:0)|(G?32:0))}}function We(G){U.assertEqual(z(c-1),60),v=c,Lt(Ie(c),e),c===v?W(C.Expected_a_capturing_group_name):G?Ge=hr(Ge,{pos:v,end:c,name:b}):nt!=null&&nt.has(b)||Lr.some(de=>de==null?void 0:de.has(b))?W(C.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other,v,c-v):(nt??(nt=new Set),nt.add(b),Ze??(Ze=new Set),Ze.add(b));}function j(G){return G===93||G===-1||c>=Z}function Ye(){for(U.assertEqual(z(c-1),91),ue(c)===94&&c++;;){let G=ue(c);if(j(G))return;let de=c,je=Wt();if(ue(c)===45){c++;let xe=ue(c);if(j(xe))return;!je&&Ce&&W(C.A_character_class_range_must_not_be_bounded_by_another_character_class,de,c-1-de);let M=c,ht=Wt();if(!ht&&Ce){W(C.A_character_class_range_must_not_be_bounded_by_another_character_class,M,c-M);continue}if(!je)continue;let St=ka(je,0),Jt=ka(ht,0);je.length===Mt(St)&&ht.length===Mt(Jt)&&St>Jt&&W(C.Range_out_of_order_in_character_class,de,c-de);}}}function ze(){U.assertEqual(z(c-1),91);let G=false;ue(c)===94&&(c++,G=true);let de=false,je=ue(c);if(j(je))return;let xe=c,M;switch(P.slice(c,c+2)){case "--":case "&&":W(C.Expected_a_class_set_operand),ye=false;break;default:M=At();break}switch(ue(c)){case 45:if(ue(c+1)===45){G&&ye&&W(C.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,xe,c-xe),de=ye,He(3),ye=!G&&de;return}break;case 38:if(ue(c+1)===38){He(2),G&&ye&&W(C.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,xe,c-xe),de=ye,ye=!G&&de;return}else W(C.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,c,1,String.fromCharCode(je));break;default:G&&ye&&W(C.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,xe,c-xe),de=ye;break}for(;je=ue(c),je!==-1;){switch(je){case 45:if(c++,je=ue(c),j(je)){ye=!G&&de;return}if(je===45){c++,W(C.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,c-2,2),xe=c-2,M=P.slice(xe,c);continue}else {M||W(C.A_character_class_range_must_not_be_bounded_by_another_character_class,xe,c-1-xe);let ht=c,St=At();if(G&&ye&&W(C.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,ht,c-ht),de||(de=ye),!St){W(C.A_character_class_range_must_not_be_bounded_by_another_character_class,ht,c-ht);break}if(!M)break;let Jt=ka(M,0),lr=ka(St,0);M.length===Mt(Jt)&&St.length===Mt(lr)&&Jt>lr&&W(C.Range_out_of_order_in_character_class,xe,c-xe);}break;case 38:xe=c,c++,ue(c)===38?(c++,W(C.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,c-2,2),ue(c)===38&&(W(C.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,c,1,String.fromCharCode(je)),c++)):W(C.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,c-1,1,String.fromCharCode(je)),M=P.slice(xe,c);continue}if(j(ue(c)))break;switch(xe=c,P.slice(c,c+2)){case "--":case "&&":W(C.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,c,2),c+=2,M=P.slice(xe,c);break;default:M=At();break}}ye=!G&&de;}function He(G){let de=ye;for(;;){let je=ue(c);if(j(je))break;switch(je){case 45:c++,ue(c)===45?(c++,G!==3&&W(C.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,c-2,2)):W(C.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,c-1,1);break;case 38:c++,ue(c)===38?(c++,G!==2&&W(C.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,c-2,2),ue(c)===38&&(W(C.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,c,1,String.fromCharCode(je)),c++)):W(C.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,c-1,1,String.fromCharCode(je));break;default:switch(G){case 3:W(C._0_expected,c,0,"--");break;case 2:W(C._0_expected,c,0,"&&");break}break}if(je=ue(c),j(je)){W(C.Expected_a_class_set_operand);break}At(),de&&(de=ye);}ye=de;}function At(){switch(ye=false,ue(c)){case  -1:return "";case 91:return c++,ze(),ur(93),"";case 92:if(c++,bn())return "";if(ue(c)===113)return c++,ue(c)===123?(c++,yt(),ur(125),""):(W(C.q_must_be_followed_by_string_alternatives_enclosed_in_braces,c-2,2),"q");c--;default:return Dt()}}function yt(){U.assertEqual(z(c-1),123);let G=0;for(;;)switch(ue(c)){case  -1:return;case 125:G!==1&&(ye=true);return;case 124:G!==1&&(ye=true),c++,y=c,G=0;break;default:Dt(),G++;break}}function Dt(){let G=ue(c);if(G===-1)return "";if(G===92){c++;let de=ue(c);switch(de){case 98:return c++,"\b";case 38:case 45:case 33:case 35:case 37:case 44:case 58:case 59:case 60:case 61:case 62:case 64:case 96:case 126:return c++,String.fromCharCode(de);default:return Ue(false)}}else if(G===ue(c+1))switch(G){case 38:case 33:case 35:case 37:case 42:case 43:case 44:case 46:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 96:case 126:return W(C.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash,c,2),c+=2,P.substring(c-2,c)}switch(G){case 47:case 40:case 41:case 91:case 93:case 123:case 125:case 45:case 124:return W(C.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,c,1,String.fromCharCode(G)),c++,String.fromCharCode(G)}return La()}function Wt(){if(ue(c)===92){c++;let G=ue(c);switch(G){case 98:return c++,"\b";case 45:return c++,String.fromCharCode(G);default:return bn()?"":Ue(false)}}else return La()}function bn(){U.assertEqual(z(c-1),92);let G=false,de=c-1,je=ue(c);switch(je){case 100:case 68:case 115:case 83:case 119:case 87:return c++,true;case 80:G=true;case 112:if(c++,ue(c)===123){c++;let xe=c,M=$r();if(ue(c)===61){let ht=of.get(M);if(c===xe)W(C.Expected_a_Unicode_property_name);else if(ht===void 0){W(C.Unknown_Unicode_property_name,xe,c-xe);let lr=$i(M,of.keys(),_t);lr&&W(C.Did_you_mean_0,xe,c-xe,lr);}c++;let St=c,Jt=$r();if(c===St)W(C.Expected_a_Unicode_property_value);else if(ht!==void 0&&!Ya[ht].has(Jt)){W(C.Unknown_Unicode_property_value,St,c-St);let lr=$i(Jt,Ya[ht],_t);lr&&W(C.Did_you_mean_0,St,c-St,lr);}}else if(c===xe)W(C.Expected_a_Unicode_property_name_or_value);else if(cf.has(M))be?G?W(C.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,xe,c-xe):ye=true:W(C.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set,xe,c-xe);else if(!Ya.General_Category.has(M)&&!sf.has(M)){W(C.Unknown_Unicode_property_name_or_value,xe,c-xe);let ht=$i(M,[...Ya.General_Category,...sf,...cf],_t);ht&&W(C.Did_you_mean_0,xe,c-xe,ht);}ur(125),ve||W(C.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,de,c-de);}else if(Ce)W(C._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces,c-2,2,String.fromCharCode(je));else return c--,false;return  true}return  false}function $r(){let G="";for(;;){let de=ue(c);if(de===-1||!Y1(de))break;G+=String.fromCharCode(de),c++;}return G}function La(){let G=ve?Mt(Ie(c)):1;return c+=G,G>0?P.substring(c-G,c):""}function ur(G){ue(c)===G?c++:W(C._0_expected,c,0,String.fromCharCode(G));}cr(false),wr(Ge,G=>{if(!(Ze!=null&&Ze.has(G.name))&&(W(C.There_is_no_capturing_group_named_0_in_this_regular_expression,G.pos,G.end-G.pos,G.name),Ze)){let de=$i(G.name,Ze,_t);de&&W(C.Did_you_mean_0,G.pos,G.end-G.pos,de);}}),wr(Ne,G=>{G.value>qe&&(qe?W(C.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,G.pos,G.end-G.pos,qe):W(C.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,G.pos,G.end-G.pos));});}function gt(B,Q){let ee=O0.get(B);ee&&e<ee&&W(C.This_regular_expression_flag_is_only_available_when_targeting_0_or_later,c,Q,ug(ee));}function sr(B,Q,ee,be){let ve=rt(Q.trimStart(),ee);return ve===void 0?B:hr(B,{range:{pos:be,end:c},type:ve})}function rt(B,Q){let ee=Q.exec(B);if(ee)switch(ee[1]){case "ts-expect-error":return 0;case "ts-ignore":return 1}}function Kt(B){return c=v,T=On(!B)}function tr(){return c=v,T=On(true)}function an(B=true){return c=v=d,T=qr(B)}function Tn(){return T===48?(c=v+1,T=30):T}function xn(){return T===81?(c=v+1,T=63):T}function jr(){return U.assert(T===61,"'reScanQuestionToken' should only be called on a '??'"),c=v+1,T=58}function qr(B=true){if(d=v=c,c>=Z)return T=1;let Q=z(c);if(Q===60)return z(c+1)===47?(c+=2,T=31):(c++,T=30);if(Q===123)return c++,T=19;let ee=0;for(;c<Z&&(Q=z(c),Q!==123);){if(Q===60){if(xa(P,c))return c=Za(P,c,W),T=7;break}if(Q===62&&W(C.Unexpected_token_Did_you_mean_or_gt,c,1),Q===125&&W(C.Unexpected_token_Did_you_mean_or_rbrace,c,1),gr(Q)&&ee===0)ee=-1;else {if(!B&&gr(Q)&&ee>0)break;Wi(Q)||(ee=c);}c++;}return b=P.substring(d,c),ee===-1?13:12}function Mn(){if(Tt(T)){for(;c<Z;){if(z(c)===45){b+="-",c++;continue}let B=c;if(b+=xt(),c===B)break}return Ve()}return T}function Rr(){switch(d=c,z(c)){case 34:case 39:return b=rn(true),T=11;default:return ut()}}function Ae(){return c=v=d,Rr()}function kn(B){if(d=v=c,J=0,c>=Z)return T=1;for(let Q=z(c);c<Z&&!gr(Q)&&Q!==96&&!(!B&&(Q===123||Q===64&&c-1>=0&&Vi(z(c-1))&&!(c+1<Z&&Wi(z(c+1)))));Q=oe(++c));return c===v?O():(b=P.substring(v,c),T=82)}function O(){if(d=v=c,J=0,c>=Z)return T=1;let B=oe(c);switch(c+=Mt(B),B){case 9:case 11:case 12:case 32:for(;c<Z&&Vi(z(c));)c++;return T=5;case 64:return T=60;case 13:z(c)===10&&c++;case 10:return J|=1,T=4;case 42:return T=42;case 123:return T=19;case 125:return T=20;case 91:return T=23;case 93:return T=24;case 40:return T=21;case 41:return T=22;case 60:return T=30;case 62:return T=32;case 61:return T=64;case 44:return T=28;case 46:return T=25;case 96:return T=62;case 35:return T=63;case 92:c--;let Q=It();if(Q>=0&&Yr(Q,e))return b=Br(true)+xt(),T=Ve();let ee=Ir();return ee>=0&&Yr(ee,e)?(c+=6,J|=1024,b=String.fromCharCode(ee)+xt(),T=Ve()):(c++,T=0)}if(Yr(B,e)){let Q=B;for(;c<Z&&Ln(Q=oe(c),e)||Q===45;)c+=Mt(Q);return b=P.substring(v,c),Q===92&&(b+=xt()),T=Ve()}else return T=0}function se(B,Q){let ee=c,be=d,ve=v,Ce=T,ye=b,qe=J,Ze=B();return (!Ze||Q)&&(c=ee,d=be,v=ve,T=Ce,b=ye,J=qe),Ze}function me(B,Q,ee){let be=Z,ve=c,Ce=d,ye=v,qe=T,Ze=b,Ge=J,Ne=ie;wt(P,B,Q);let Lr=ee();return Z=be,c=ve,d=Ce,v=ye,T=qe,b=Ze,J=Ge,ie=Ne,Lr}function Se(B){return se(B,true)}function Xe(B){return se(B,false)}function Qe(){return P}function it(){ie=void 0;}function wt(B,Q,ee){P=B||"",Z=ee===void 0?P.length:Q+ee,zr(Q||0);}function kt(B){h=B;}function ot(B){e=B;}function oa(B){i=B;}function br(B){_e=B;}function Un(B){he=B;}function zr(B){U.assert(B>=0),c=B,d=B,v=B,T=0,b=void 0,J=0;}function Ia(B){ke+=B?1:-1;}}function ka(e,r){return e.codePointAt(r)}function Mt(e){return e>=65536?2:e===-1?0:1}function rh(e){if(U.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let r=Math.floor((e-65536)/1024)+55296,i=(e-65536)%1024+56320;return String.fromCharCode(r,i)}var nh=String.fromCodePoint?e=>String.fromCodePoint(e):rh;function af(e){return nh(e)}var of=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),sf=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),cf=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),Ya={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};Ya.Script_Extensions=Ya.Script;function _n(e){return e.start+e.length}function ah(e){return e.length===0}function Bl(e,r){if(e<0)throw new Error("start < 0");if(r<0)throw new Error("length < 0");return {start:e,length:r}}function ih(e,r){return Bl(e,r-e)}function Xi(e){return Bl(e.span.start,e.newLength)}function oh(e){return ah(e.span)&&e.newLength===0}function uf(e,r){if(r<0)throw new Error("newLength < 0");return {span:e,newLength:r}}uf(Bl(0,0),0);function lf(e,r){for(;e;){let i=r(e);if(i==="quit")return;if(i)return e;e=e.parent;}}function Cs(e){return (e.flags&16)===0}function sh(e,r){if(e===void 0||Cs(e))return e;for(e=e.original;e;){if(Cs(e))return e;e=e.original;}}function ei(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Qi(e){let r=e;return r.length>=3&&r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===95?r.substr(1):r}function yr(e){return Qi(e.escapedText)}function df(e){let r=V1(e.escapedText);return r?u0(r,ea):void 0}function Kl(e){return e.valueDeclaration&&Fh(e.valueDeclaration)?yr(e.valueDeclaration.name):Qi(e.escapedName)}function pf(e){let r=e.parent.parent;if(r){if(Nf(r))return Es(r);switch(r.kind){case 243:if(r.declarationList&&r.declarationList.declarations[0])return Es(r.declarationList.declarations[0]);break;case 244:let i=r.expression;switch(i.kind===226&&i.operatorToken.kind===64&&(i=i.left),i.kind){case 211:return i.name;case 212:let u=i.argumentExpression;if(tt(u))return u}break;case 217:return Es(r.expression);case 256:{if(Nf(r.statement)||$h(r.statement))return Es(r.statement);break}}}}function Es(e){let r=ff(e);return r&&tt(r)?r:void 0}function ch(e){return e.name||pf(e)}function uh(e){return !!e.name}function jl(e){switch(e.kind){case 80:return e;case 348:case 341:{let{name:i}=e;if(i.kind===166)return i.right;break}case 213:case 226:{let i=e;switch(Wl(i)){case 1:case 4:case 5:case 3:return Vl(i.left);case 7:case 8:case 9:return i.arguments[1];default:return}}case 346:return ch(e);case 340:return pf(e);case 277:{let{expression:i}=e;return tt(i)?i:void 0}case 212:let r=e;if(Mf(r))return r.argumentExpression}return e.name}function ff(e){if(e!==void 0)return jl(e)||(o2(e)||s2(e)||hd(e)?lh(e):void 0)}function lh(e){if(e.parent){if(vy(e.parent)||sy(e.parent))return e.parent.name;if(li(e.parent)&&e===e.parent.right){if(tt(e.parent.left))return e.parent.left;if(qf(e.parent.left))return Vl(e.parent.left)}else if(u2(e.parent)&&tt(e.parent.name))return e.parent.name}else return}function dh(e){if(U_(e))return Pn(e.modifiers,dd)}function ph(e){if(no(e,98303))return Pn(e.modifiers,Jh)}function mf(e,r){if(e.name)if(tt(e.name)){let i=e.name.escapedText;return Zi(e.parent,r).filter(u=>k2(u)&&tt(u.name)&&u.name.escapedText===i)}else {let i=e.parent.parameters.indexOf(e);U.assert(i>-1,"Parameters should always be in their parents' parameter list");let u=Zi(e.parent,r).filter(k2);if(i<u.length)return [u[i]]}return vt}function fh(e){return mf(e,false)}function mh(e){return mf(e,true)}function hf(e,r){let i=e.name.escapedText;return Zi(e.parent,r).filter(u=>By(u)&&u.typeParameters.some(h=>h.name.escapedText===i))}function hh(e){return hf(e,false)}function _h(e){return hf(e,true)}function gh(e){return Qn(e,Dy)}function yh(e){return Eh(e,Ky)}function Th(e){return Qn(e,Py,true)}function xh(e){return Qn(e,Fy,true)}function kh(e){return Qn(e,Iy,true)}function Sh(e){return Qn(e,Ly,true)}function bh(e){return Qn(e,Jy,true)}function vh(e){return Qn(e,My,true)}function Ch(e){let r=Qn(e,gd);if(r&&r.typeExpression&&r.typeExpression.type)return r}function Zi(e,r){var i;if(!Ql(e))return vt;let u=(i=e.jsDoc)==null?void 0:i.jsDocCache;if(u===void 0||r){let h=S_(e,r);U.assert(h.length<2||h[0]!==h[1]),u=v1(h,y=>T2(y)?y.tags:y),r||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=u);}return u}function _f(e){return Zi(e,false)}function Qn(e,r,i){return S1(Zi(e,i),r)}function Eh(e,r){return _f(e).filter(r)}function ql(e){return e.kind===80||e.kind===81}function Nh(e){return ra(e)&&!!(e.flags&64)}function wh(e){return so(e)&&!!(e.flags&64)}function gf(e){return i2(e)&&!!(e.flags&64)}function Rl(e){return yd(e,8)}function Ah(e){return js(e)&&!!(e.flags&64)}function zl(e){return e>=166}function yf(e){return e>=0&&e<=165}function Dh(e){return yf(e.kind)}function Zn(e){return fn(e,"pos")&&fn(e,"end")}function Ph(e){return 9<=e&&e<=15}function Tf(e){return 15<=e&&e<=18}function ti(e){var r;return tt(e)&&((r=e.emitNode)==null?void 0:r.autoGenerate)!==void 0}function xf(e){var r;return Ca(e)&&((r=e.emitNode)==null?void 0:r.autoGenerate)!==void 0}function Fh(e){return (Bs(e)||Uh(e))&&Ca(e.name)}function Jn(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return  true}return  false}function Ih(e){return !!(Kf(e)&31)}function Lh(e){return Ih(e)||e===126||e===164||e===129}function Jh(e){return Jn(e.kind)}function kf(e){let r=e.kind;return r===80||r===81||r===11||r===9||r===167}function Sf(e){return !!e&&Mh(e.kind)}function Oh(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return  true;default:return  false}}function Mh(e){switch(e){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return  true;default:return Oh(e)}}function ri(e){return e&&(e.kind===263||e.kind===231)}function Uh(e){switch(e.kind){case 174:case 177:case 178:return  true;default:return  false}}function Bh(e){let r=e.kind;return r===303||r===304||r===305||r===174||r===177||r===178}function Kh(e){return Q_(e.kind)}function jh(e){if(e){let r=e.kind;return r===207||r===206}return  false}function qh(e){let r=e.kind;return r===209||r===210}function Rh(e){switch(e.kind){case 260:case 169:case 208:return  true}return  false}function ni(e){return bf(Rl(e).kind)}function bf(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return  true;default:return  false}}function zh(e){return vf(Rl(e).kind)}function vf(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return  true;default:return bf(e)}}function $h(e){return Gh(Rl(e).kind)}function Gh(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 356:case 355:case 238:return  true;default:return vf(e)}}function Hh(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===346||e===338||e===348||e===202}function Cf(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function Ef(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===353}function Nf(e){return e.kind===168?e.parent&&e.parent.kind!==345||ii(e):Hh(e.kind)}function Wh(e){let r=e.kind;return Ef(r)||Cf(r)||Vh(e)}function Vh(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?false:!u_(e)}function Xh(e){let r=e.kind;return Ef(r)||Cf(r)||r===241}function wf(e){return e.kind>=309&&e.kind<=351}function Qh(e){return e.kind===320||e.kind===319||e.kind===321||e_(e)||Zh(e)||Ay(e)||x2(e)}function Zh(e){return e.kind>=327&&e.kind<=351}function Ns(e){return e.kind===178}function ws(e){return e.kind===177}function Sa(e){if(!Ql(e))return  false;let{jsDoc:r}=e;return !!r&&r.length>0}function Yh(e){return !!e.initializer}function $l(e){return e.kind===11||e.kind===15}function e_(e){return e.kind===324||e.kind===325||e.kind===326}function Af(e){return (e.flags&33554432)!==0}function t_(e,r){let i=e.entries();for(let[u,h]of i){let y=r(h,u);if(y)return y}}function r_(e){return e.end-e.pos}function Df(e){return n_(e),(e.flags&1048576)!==0}function n_(e){e.flags&2097152||(((e.flags&262144)!==0||Gt(e,Df))&&(e.flags|=1048576),e.flags|=2097152);}function Yn(e){for(;e&&e.kind!==307;)e=e.parent;return e}function ba(e){return e===void 0?true:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Gl(e){return !ba(e)}function As(e,r,i){if(ba(e))return e.pos;if(wf(e)||e.kind===12)return hn((r??Yn(e)).text,e.pos,false,true);if(i&&Sa(e))return As(e.jsDoc[0],r);if(e.kind===352){r??(r=Yn(e));let u=bl(S2(e,r));if(u)return As(u,r,i)}return hn((r??Yn(e)).text,e.pos,false,false,l_(e))}function Pf(e,r,i=false){return Yi(e.text,r,i)}function a_(e){return !!lf(e,Ey)}function Yi(e,r,i=false){if(ba(r))return "";let u=e.substring(i?r.pos:hn(e,r.pos),r.end);return a_(r)&&(u=u.split(/\r\n|\n|\r/).map(h=>h.replace(/^\s*\*/,"").trimStart()).join(`
`)),u}function ai(e){let r=e.emitNode;return r&&r.flags||0}function i_(e,r,i){U.assertGreaterThanOrEqual(r,0),U.assertGreaterThanOrEqual(i,0),U.assertLessThanOrEqual(r,e.length),U.assertLessThanOrEqual(r+i,e.length);}function Ds(e){return e.kind===244&&e.expression.kind===11}function Hl(e){return !!(ai(e)&2097152)}function Ff(e){return Hl(e)&&l2(e)}function o_(e){return tt(e.name)&&!e.initializer}function If(e){return Hl(e)&&qs(e)&&Tl(e.declarationList.declarations,o_)}function s_(e,r){let i=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?Sl(eh(r,e.pos),Ml(r,e.pos)):Ml(r,e.pos);return Pn(i,u=>u.end<=e.end&&r.charCodeAt(u.pos+1)===42&&r.charCodeAt(u.pos+2)===42&&r.charCodeAt(u.pos+3)!==47)}function c_(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return  true}return  false}function u_(e){return e&&e.kind===241&&Sf(e.parent)}function Lf(e){let r=e.kind;return (r===211||r===212)&&e.expression.kind===108}function ii(e){return !!e&&!!(e.flags&524288)}function l_(e){return !!e&&!!(e.flags&16777216)}function d_(e){for(;Fs(e,true);)e=e.right;return e}function p_(e){return tt(e)&&e.escapedText==="exports"}function f_(e){return tt(e)&&e.escapedText==="module"}function Jf(e){return (ra(e)||Of(e))&&f_(e.expression)&&ro(e)==="exports"}function Wl(e){let r=h_(e);return r===5||ii(e)?r:0}function m_(e){return zi(e.arguments)===3&&ra(e.expression)&&tt(e.expression.expression)&&yr(e.expression.expression)==="Object"&&yr(e.expression.name)==="defineProperty"&&Ps(e.arguments[1])&&to(e.arguments[0],true)}function Of(e){return so(e)&&Ps(e.argumentExpression)}function eo(e,r){return ra(e)&&(!r&&e.expression.kind===110||tt(e.name)&&to(e.expression,true))||Mf(e,r)}function Mf(e,r){return Of(e)&&(!r&&e.expression.kind===110||nd(e.expression)||eo(e.expression,true))}function to(e,r){return nd(e)||eo(e,r)}function h_(e){if(i2(e)){if(!m_(e))return 0;let r=e.arguments[0];return p_(r)||Jf(r)?8:eo(r)&&ro(r)==="prototype"?9:7}return e.operatorToken.kind!==64||!qf(e.left)||__(d_(e))?0:to(e.left.expression,true)&&ro(e.left)==="prototype"&&a2(y_(e))?6:g_(e.left)}function __(e){return ly(e)&&ui(e.expression)&&e.expression.text==="0"}function Vl(e){if(ra(e))return e.name;let r=Zl(e.argumentExpression);return ui(r)||$l(r)?r:e}function ro(e){let r=Vl(e);if(r){if(tt(r))return r.escapedText;if($l(r)||ui(r))return ei(r.text)}}function g_(e){if(e.expression.kind===110)return 4;if(Jf(e))return 2;if(to(e.expression,true)){if(V_(e.expression))return 3;let r=e;for(;!tt(r.expression);)r=r.expression;let i=r.expression;if((i.escapedText==="exports"||i.escapedText==="module"&&ro(r)==="exports")&&eo(e))return 1;if(to(e,true)||so(e)&&F_(e))return 5}return 0}function y_(e){for(;li(e.right);)e=e.right;return e.right}function T_(e){return c2(e)&&li(e.expression)&&Wl(e.expression)!==0&&li(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function x_(e){switch(e.kind){case 243:let r=Xl(e);return r&&r.initializer;case 172:return e.initializer;case 303:return e.initializer}}function Xl(e){return qs(e)?bl(e.declarationList.declarations):void 0}function k_(e){return co(e)&&e.body&&e.body.kind===267?e.body:void 0}function Ql(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return  true;default:return  false}}function S_(e,r){let i;c_(e)&&Yh(e)&&Sa(e.initializer)&&(i=_r(i,Uf(e,e.initializer.jsDoc)));let u=e;for(;u&&u.parent;){if(Sa(u)&&(i=_r(i,Uf(e,u.jsDoc))),u.kind===169){i=_r(i,(r?mh:fh)(u));break}if(u.kind===168){i=_r(i,(r?_h:hh)(u));break}u=v_(u);}return i||vt}function Uf(e,r){let i=e0(r);return v1(r,u=>{if(u===i){let h=Pn(u.tags,y=>b_(e,y));return u.tags===h?[u]:h}else return Pn(u.tags,Oy)})}function b_(e,r){return !(gd(r)||jy(r))||!r.parent||!T2(r.parent)||!md(r.parent.parent)||r.parent.parent===e}function v_(e){let r=e.parent;if(r.kind===303||r.kind===277||r.kind===172||r.kind===244&&e.kind===211||r.kind===253||k_(r)||Fs(e))return r;if(r.parent&&(Xl(r.parent)===e||Fs(r)))return r.parent;if(r.parent&&r.parent.parent&&(Xl(r.parent.parent)||x_(r.parent.parent)===e||T_(r.parent.parent)))return r.parent.parent}function Zl(e,r){return yd(e,1)}function C_(e){let r=E_(e);if(r&&ii(e)){let i=gh(e);if(i)return i.class}return r}function E_(e){let r=Yl(e.heritageClauses,96);return r&&r.types.length>0?r.types[0]:void 0}function N_(e){if(ii(e))return yh(e).map(r=>r.class);{let r=Yl(e.heritageClauses,119);return r==null?void 0:r.types}}function w_(e){return _d(e)?A_(e)||vt:ri(e)&&Sl(El(C_(e)),N_(e))||vt}function A_(e){let r=Yl(e.heritageClauses,96);return r?r.types:void 0}function Yl(e,r){if(e){for(let i of e)if(i.token===r)return i}}function ea(e){return 83<=e&&e<=165}function D_(e){return 19<=e&&e<=79}function ed(e){return ea(e)||D_(e)}function Ps(e){return $l(e)||ui(e)}function P_(e){return dy(e)&&(e.operator===40||e.operator===41)&&ui(e.operand)}function F_(e){if(!(e.kind===167||e.kind===212))return  false;let r=so(e)?Zl(e.argumentExpression):e.expression;return !Ps(r)&&!P_(r)}function I_(e){return ql(e)?yr(e):y2(e)?xg(e):e.text}function oi(e){return ao(e.pos)||ao(e.end)}function td(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return  -1}function rd(e){return !!((e.templateFlags||0)&2048)}function L_(e){return e&&!!(Ig(e)?rd(e):rd(e.head)||qt(e.templateSpans,r=>rd(r.literal)))}new Map(Object.entries({"	":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"})),new Map(Object.entries({'"':"&quot;","'":"&apos;"}));function J_(e){return !!e&&e.kind===80&&O_(e)}function O_(e){return e.escapedText==="this"}function no(e,r){return !!B_(e,r)}function M_(e){return no(e,256)}function U_(e){return no(e,32768)}function B_(e,r){return j_(e)&r}function K_(e,r,i){return e.kind>=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=Bf(e)|536870912),R_(e.modifierFlagsCache))}function j_(e){return K_(e)}function q_(e){let r=0;return e.parent&&!Us(e)&&(ii(e)&&(Th(e)&&(r|=8388608),xh(e)&&(r|=16777216),kh(e)&&(r|=33554432),Sh(e)&&(r|=67108864),bh(e)&&(r|=134217728)),vh(e)&&(r|=65536)),r}function R_(e){return e&65535}function z_(e){return e&131071|(e&260046848)>>>23}function $_(e){return z_(q_(e))}function G_(e){return Bf(e)|$_(e)}function Bf(e){let r=xd(e)?Dr(e.modifiers):0;return (e.flags&8||e.kind===80&&e.flags&4096)&&(r|=32),r}function Dr(e){let r=0;if(e)for(let i of e)r|=Kf(i.kind);return r}function Kf(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function H_(e){return e===76||e===77||e===78}function jf(e){return e>=64&&e<=79}function Fs(e,r){return li(e)&&(r?e.operatorToken.kind===64:jf(e.operatorToken.kind))&&ni(e.left)}function nd(e){return e.kind===80||W_(e)}function W_(e){return ra(e)&&tt(e.name)&&nd(e.expression)}function V_(e){return eo(e)&&ro(e)==="prototype"}function ad(e){return e.flags&3899393?e.objectFlags:0}function X_(e){let r;return Gt(e,i=>{Gl(i)&&(r=i);},i=>{for(let u=i.length-1;u>=0;u--)if(Gl(i[u])){r=i[u];break}}),r}function Q_(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===312||e===313||e===314||e===315||e===316||e===317||e===318}function qf(e){return e.kind===211||e.kind===212}function Z_(e,r){this.flags=e,this.escapedName=r,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0;}function Y_(e,r){this.flags=r,(U.isDebugging||Ts)&&(this.checker=e);}function eg(e,r){this.flags=r,U.isDebugging&&(this.checker=e);}function id(e,r,i){this.pos=r,this.end=i,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0;}function tg(e,r,i){this.pos=r,this.end=i,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0;}function rg(e,r,i){this.pos=r,this.end=i,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0;}function ng(e,r,i){this.fileName=e,this.text=r,this.skipTrivia=i||(u=>u);}var Ct={getNodeConstructor:()=>id,getTokenConstructor:()=>tg,getIdentifierConstructor:()=>rg,getPrivateIdentifierConstructor:()=>id,getSourceFileConstructor:()=>id,getSymbolConstructor:()=>Z_,getTypeConstructor:()=>Y_,getSignatureConstructor:()=>eg,getSourceMapSourceConstructor:()=>ng},ag=[];function ig(e){Object.assign(Ct,e),wr(ag,r=>r(Ct));}function og(e,r){return e.replace(/\{(\d+)\}/g,(i,u)=>""+U.checkDefined(r[+u]))}function sg(e){return e.message}function si(e,r,i,u,h,...y){i+u>r.length&&(u=r.length-i),i_(r,i,u);let A=sg(h);return qt(y)&&(A=og(A,y)),{file:void 0,start:i,length:u,messageText:A,category:h.category,code:h.code,reportsUnnecessary:h.reportsUnnecessary,fileName:e}}function cg(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function Rf(e,r){let i=r.fileName||"",u=r.text.length;U.assertEqual(e.fileName,i),U.assertLessThanOrEqual(e.start,u),U.assertLessThanOrEqual(e.start+e.length,u);let h={file:r,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){h.relatedInformation=[];for(let y of e.relatedInformation)cg(y)&&y.fileName===i?(U.assertLessThanOrEqual(y.start,u),U.assertLessThanOrEqual(y.start+y.length,u),h.relatedInformation.push(Rf(y,r))):h.relatedInformation.push(y);}return h}function va(e,r){let i=[];for(let u of e)i.push(Rf(u,r));return i}function zf(e){return e===4||e===2||e===1||e===6?1:0}function ug(e){return t_(targetOptionDeclaration.type,(r,i)=>r===e?i:void 0)}function lg(e,r){return r||dg(e)||3}function dg(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case ".js":case ".cjs":case ".mjs":return 1;case ".jsx":return 2;case ".ts":case ".cts":case ".mts":return 3;case ".tsx":return 4;case ".json":return 6;default:return 0}}var $f=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]];b1($f),[...$f];var pg=[[".js",".jsx"],[".mjs"],[".cjs"]];b1(pg);var fg=[".d.ts",".d.cts",".d.mts"];function ao(e){return !(e>=0)}function Is(e,...r){return r.length&&(e.relatedInformation||(e.relatedInformation=[]),U.assert(e.relatedInformation!==vt,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...r)),e}function mg(e){let r;switch(e.charCodeAt(1)){case 98:case 66:r=1;break;case 111:case 79:r=3;break;case 120:case 88:r=4;break;default:let Z=e.length-1,d=0;for(;e.charCodeAt(d)===48;)d++;return e.slice(d,Z)||"0"}let i=2,u=e.length-1,h=(u-i)*r,y=new Uint16Array((h>>>4)+(h&15?1:0));for(let Z=u-1,d=0;Z>=i;Z--,d+=r){let v=d>>>4,T=e.charCodeAt(Z),b=(T<=57?T-48:10+T-(T<=70?65:97))<<(d&15);y[v]|=b;let J=b>>>16;J&&(y[v+1]|=J);}let A="",P=y.length-1,c=true;for(;c;){let Z=0;c=false;for(let d=P;d>=0;d--){let v=Z<<16|y[d],T=v/10|0;y[d]=T,Z=v-T*10,T&&!c&&(P=d,c=true);}A=Z+A;}return A}function hg({negative:e,base10Value:r}){return (e&&r!=="0"?"-":"")+r}function od(e,r){return e.pos=r,e}function _g(e,r){return e.end=r,e}function ta(e,r,i){return _g(od(e,r),i)}function Gf(e,r,i){return ta(e,r,r+i)}function sd(e,r){return e&&r&&(e.parent=r),e}function gg(e,r){if(!e)return e;return W2(e,wf(e)?i:h),e;function i(y,A){if(y.parent===A)return "skip";sd(y,A);}function u(y){if(Sa(y))for(let A of y.jsDoc)i(A,y),W2(A,i);}function h(y,A){return i(y,A)||u(y)}}function yg(e){return !!(e.flags&262144&&e.isThisType)}function Tg(e){var r;return ((r=getSnippetElement(e))==null?void 0:r.kind)===0}function xg(e){return `${yr(e.namespace)}:${yr(e.name)}`}var cd=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"];new Set(cd);var kg=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]);[...cd,...cd.map(e=>`node:${e}`),...kg];function Sg(){let e,r,i,u,h;return {createBaseSourceFileNode:y,createBaseIdentifierNode:A,createBasePrivateIdentifierNode:P,createBaseTokenNode:c,createBaseNode:Z};function y(d){return new(h||(h=Ct.getSourceFileConstructor()))(d,-1,-1)}function A(d){return new(i||(i=Ct.getIdentifierConstructor()))(d,-1,-1)}function P(d){return new(u||(u=Ct.getPrivateIdentifierConstructor()))(d,-1,-1)}function c(d){return new(r||(r=Ct.getTokenConstructor()))(d,-1,-1)}function Z(d){return new(e||(e=Ct.getNodeConstructor()))(d,-1,-1)}}var bg={getParenthesizeLeftSideOfBinaryForOperator:e=>_t,getParenthesizeRightSideOfBinaryForOperator:e=>_t,parenthesizeLeftSideOfBinary:(e,r)=>r,parenthesizeRightSideOfBinary:(e,r,i)=>i,parenthesizeExpressionOfComputedPropertyName:_t,parenthesizeConditionOfConditionalExpression:_t,parenthesizeBranchOfConditionalExpression:_t,parenthesizeExpressionOfExportDefault:_t,parenthesizeExpressionOfNew:e=>mn(e,ni),parenthesizeLeftSideOfAccess:e=>mn(e,ni),parenthesizeOperandOfPostfixUnary:e=>mn(e,ni),parenthesizeOperandOfPrefixUnary:e=>mn(e,zh),parenthesizeExpressionsOfCommaDelimitedList:e=>mn(e,Zn),parenthesizeExpressionForDisallowedComma:_t,parenthesizeExpressionOfExpressionStatement:_t,parenthesizeConciseBodyOfArrowFunction:_t,parenthesizeCheckTypeOfConditionalType:_t,parenthesizeExtendsTypeOfConditionalType:_t,parenthesizeConstituentTypesOfUnionType:e=>mn(e,Zn),parenthesizeConstituentTypeOfUnionType:_t,parenthesizeConstituentTypesOfIntersectionType:e=>mn(e,Zn),parenthesizeConstituentTypeOfIntersectionType:_t,parenthesizeOperandOfTypeOperator:_t,parenthesizeOperandOfReadonlyTypeOperator:_t,parenthesizeNonArrayTypeOfPostfixType:_t,parenthesizeElementTypesOfTupleType:e=>mn(e,Zn),parenthesizeElementTypeOfTupleType:_t,parenthesizeTypeOfOptionalType:_t,parenthesizeTypeArguments:e=>e&&mn(e,Zn),parenthesizeLeadingTypeArgument:_t},Ls=0,vg=[];function ud(e,r){let i=e&8?_t:Ag,u=N1(()=>e&1?bg:createParenthesizerRules(_e)),h=N1(()=>e&2?nullNodeConverters:createNodeConverters(_e)),y=Mr(t=>(n,a)=>ki(n,t,a)),A=Mr(t=>n=>Rn(t,n)),P=Mr(t=>n=>ua(n,t)),c=Mr(t=>()=>hu(t)),Z=Mr(t=>n=>Wo(t,n)),d=Mr(t=>(n,a)=>Tp(t,n,a)),v=Mr(t=>(n,a)=>_u(t,n,a)),T=Mr(t=>(n,a)=>yp(t,n,a)),b=Mr(t=>(n,a)=>Lu(t,n,a)),J=Mr(t=>(n,a,s)=>Dp(t,n,a,s)),ie=Mr(t=>(n,a,s)=>Ju(t,n,a,s)),ke=Mr(t=>(n,a,s,f)=>Pp(t,n,a,s,f)),_e={get parenthesizer(){return u()},get converters(){return h()},baseFactory:r,flags:e,createNodeArray:he,createNumericLiteral:z,createBigIntLiteral:ue,createStringLiteral:ft,createStringLiteralFromNode:en,createRegularExpressionLiteral:xr,createLiteralLikeNode:tn,createIdentifier:Re,createTempVariable:rn,createLoopVariable:On,createUniqueName:Ft,getGeneratedNameForNode:Br,createPrivateIdentifier:It,createUniquePrivateName:Ve,getGeneratedPrivateNameForNode:Kr,createToken:ut,createSuper:at,createThis:Bt,createNull:Lt,createTrue:lt,createFalse:nn,createModifier:mt,createModifiersFromModifierFlags:Sr,createQualifiedName:gt,updateQualifiedName:sr,createComputedPropertyName:rt,updateComputedPropertyName:Kt,createTypeParameterDeclaration:tr,updateTypeParameterDeclaration:an,createParameterDeclaration:Tn,updateParameterDeclaration:xn,createDecorator:jr,updateDecorator:qr,createPropertySignature:Mn,updatePropertySignature:Rr,createPropertyDeclaration:kn,updatePropertyDeclaration:O,createMethodSignature:se,updateMethodSignature:me,createMethodDeclaration:Se,updateMethodDeclaration:Xe,createConstructorDeclaration:ot,updateConstructorDeclaration:oa,createGetAccessorDeclaration:Un,updateGetAccessorDeclaration:zr,createSetAccessorDeclaration:B,updateSetAccessorDeclaration:Q,createCallSignature:be,updateCallSignature:ve,createConstructSignature:Ce,updateConstructSignature:ye,createIndexSignature:qe,updateIndexSignature:Ze,createClassStaticBlockDeclaration:it,updateClassStaticBlockDeclaration:wt,createTemplateLiteralTypeSpan:Ge,updateTemplateLiteralTypeSpan:Ne,createKeywordTypeNode:Lr,createTypePredicateNode:nt,updateTypePredicateNode:cr,createTypeReferenceNode:Sn,updateTypeReferenceNode:L,createFunctionTypeNode:F,updateFunctionTypeNode:p,createConstructorTypeNode:We,updateConstructorTypeNode:ze,createTypeQueryNode:yt,updateTypeQueryNode:Dt,createTypeLiteralNode:Wt,updateTypeLiteralNode:bn,createArrayTypeNode:$r,updateArrayTypeNode:La,createTupleTypeNode:ur,updateTupleTypeNode:G,createNamedTupleMember:de,updateNamedTupleMember:je,createOptionalTypeNode:xe,updateOptionalTypeNode:M,createRestTypeNode:ht,updateRestTypeNode:St,createUnionTypeNode:Od,updateUnionTypeNode:Hs,createIntersectionTypeNode:Bn,updateIntersectionTypeNode:Le,createConditionalTypeNode:pt,updateConditionalTypeNode:Md,createInferTypeNode:Gr,updateInferTypeNode:Ud,createImportTypeNode:on,updateImportTypeNode:hi,createParenthesizedType:Vt,updateParenthesizedType:Nt,createThisTypeNode:E,createTypeOperatorNode:$t,updateTypeOperatorNode:Kn,createIndexedAccessTypeNode:sn,updateIndexedAccessTypeNode:yo,createMappedTypeNode:bt,updateMappedTypeNode:Ot,createLiteralTypeNode:sa,updateLiteralTypeNode:vn,createTemplateLiteralType:zt,updateTemplateLiteralType:Bd,createObjectBindingPattern:Ws,updateObjectBindingPattern:Kd,createArrayBindingPattern:jn,updateArrayBindingPattern:jd,createBindingElement:_i,updateBindingElement:ca,createArrayLiteralExpression:To,updateArrayLiteralExpression:Vs,createObjectLiteralExpression:Ja,updateObjectLiteralExpression:qd,createPropertyAccessExpression:e&4?(t,n)=>setEmitFlags(cn(t,n),262144):cn,updatePropertyAccessExpression:Rd,createPropertyAccessChain:e&4?(t,n,a)=>setEmitFlags(Oa(t,n,a),262144):Oa,updatePropertyAccessChain:gi,createElementAccessExpression:Ma,updateElementAccessExpression:zd,createElementAccessChain:Zs,updateElementAccessChain:xo,createCallExpression:Ua,updateCallExpression:yi,createCallChain:ko,updateCallChain:ec,createNewExpression:vr,updateNewExpression:So,createTaggedTemplateExpression:Ti,updateTaggedTemplateExpression:tc,createTypeAssertion:rc,updateTypeAssertion:nc,createParenthesizedExpression:bo,updateParenthesizedExpression:ac,createFunctionExpression:vo,updateFunctionExpression:ic,createArrowFunction:Co,updateArrowFunction:oc,createDeleteExpression:sc,updateDeleteExpression:cc,createTypeOfExpression:xi,updateTypeOfExpression:dr,createVoidExpression:Eo,updateVoidExpression:un,createAwaitExpression:uc,updateAwaitExpression:qn,createPrefixUnaryExpression:Rn,updatePrefixUnaryExpression:$d,createPostfixUnaryExpression:ua,updatePostfixUnaryExpression:Gd,createBinaryExpression:ki,updateBinaryExpression:Hd,createConditionalExpression:dc,updateConditionalExpression:pc,createTemplateExpression:fc,updateTemplateExpression:Hr,createTemplateHead:hc,createTemplateMiddle:Si,createTemplateTail:No,createNoSubstitutionTemplateLiteral:Vd,createTemplateLiteralLikeNode:da,createYieldExpression:wo,updateYieldExpression:Xd,createSpreadElement:_c,updateSpreadElement:Qd,createClassExpression:gc,updateClassExpression:Ao,createOmittedExpression:Do,createExpressionWithTypeArguments:yc,updateExpressionWithTypeArguments:Tc,createAsExpression:pr,updateAsExpression:bi,createNonNullExpression:xc,updateNonNullExpression:kc,createSatisfiesExpression:Po,updateSatisfiesExpression:Sc,createNonNullChain:Fo,updateNonNullChain:Jr,createMetaProperty:bc,updateMetaProperty:Io,createTemplateSpan:Wr,updateTemplateSpan:vi,createSemicolonClassElement:vc,createBlock:zn,updateBlock:Zd,createVariableStatement:Lo,updateVariableStatement:Cc,createEmptyStatement:Ec,createExpressionStatement:Ka,updateExpressionStatement:Nc,createIfStatement:wc,updateIfStatement:Ac,createDoStatement:Dc,updateDoStatement:Pc,createWhileStatement:Fc,updateWhileStatement:Yd,createForStatement:Ic,updateForStatement:Lc,createForInStatement:Jo,updateForInStatement:ep,createForOfStatement:Jc,updateForOfStatement:tp,createContinueStatement:Oc,updateContinueStatement:rp,createBreakStatement:Oo,updateBreakStatement:Mc,createReturnStatement:Mo,updateReturnStatement:np,createWithStatement:Uo,updateWithStatement:Uc,createSwitchStatement:Bo,updateSwitchStatement:pa,createLabeledStatement:Bc,updateLabeledStatement:Kc,createThrowStatement:jc,updateThrowStatement:ap,createTryStatement:qc,updateTryStatement:ip,createDebuggerStatement:Rc,createVariableDeclaration:Ci,updateVariableDeclaration:zc,createVariableDeclarationList:Ko,updateVariableDeclarationList:op,createFunctionDeclaration:$c,updateFunctionDeclaration:jo,createClassDeclaration:Gc,updateClassDeclaration:Ei,createInterfaceDeclaration:Hc,updateInterfaceDeclaration:Wc,createTypeAliasDeclaration:st,updateTypeAliasDeclaration:Cn,createEnumDeclaration:qo,updateEnumDeclaration:En,createModuleDeclaration:Vc,updateModuleDeclaration:Et,createModuleBlock:Nn,updateModuleBlock:jt,createCaseBlock:Xc,updateCaseBlock:cp,createNamespaceExportDeclaration:Qc,updateNamespaceExportDeclaration:Zc,createImportEqualsDeclaration:Yc,updateImportEqualsDeclaration:eu,createImportDeclaration:tu,updateImportDeclaration:ru,createImportClause:nu,updateImportClause:au,createAssertClause:Ro,updateAssertClause:lp,createAssertEntry:ja,updateAssertEntry:iu,createImportTypeAssertionContainer:zo,updateImportTypeAssertionContainer:ou,createImportAttributes:su,updateImportAttributes:$o,createImportAttribute:cu,updateImportAttribute:uu,createNamespaceImport:lu,updateNamespaceImport:dp,createNamespaceExport:du,updateNamespaceExport:pp,createNamedImports:pu,updateNamedImports:fu,createImportSpecifier:wn,updateImportSpecifier:fp,createExportAssignment:Ni,updateExportAssignment:qa,createExportDeclaration:wi,updateExportDeclaration:mu,createNamedExports:Go,updateNamedExports:mp,createExportSpecifier:Ai,updateExportSpecifier:hp,createMissingDeclaration:_p,createExternalModuleReference:Ho,updateExternalModuleReference:gp,get createJSDocAllType(){return c(312)},get createJSDocUnknownType(){return c(313)},get createJSDocNonNullableType(){return v(315)},get updateJSDocNonNullableType(){return T(315)},get createJSDocNullableType(){return v(314)},get updateJSDocNullableType(){return T(314)},get createJSDocOptionalType(){return Z(316)},get updateJSDocOptionalType(){return d(316)},get createJSDocVariadicType(){return Z(318)},get updateJSDocVariadicType(){return d(318)},get createJSDocNamepathType(){return Z(319)},get updateJSDocNamepathType(){return d(319)},createJSDocFunctionType:gu,updateJSDocFunctionType:xp,createJSDocTypeLiteral:yu,updateJSDocTypeLiteral:kp,createJSDocTypeExpression:Tu,updateJSDocTypeExpression:Vo,createJSDocSignature:xu,updateJSDocSignature:Sp,createJSDocTemplateTag:Xo,updateJSDocTemplateTag:ku,createJSDocTypedefTag:Di,updateJSDocTypedefTag:bp,createJSDocParameterTag:Qo,updateJSDocParameterTag:vp,createJSDocPropertyTag:Su,updateJSDocPropertyTag:bu,createJSDocCallbackTag:vu,updateJSDocCallbackTag:Cu,createJSDocOverloadTag:Eu,updateJSDocOverloadTag:Zo,createJSDocAugmentsTag:Yo,updateJSDocAugmentsTag:za,createJSDocImplementsTag:Nu,updateJSDocImplementsTag:Ap,createJSDocSeeTag:Gn,updateJSDocSeeTag:Pi,createJSDocImportTag:Uu,updateJSDocImportTag:Bu,createJSDocNameReference:wu,updateJSDocNameReference:Cp,createJSDocMemberName:Au,updateJSDocMemberName:Ep,createJSDocLink:Du,updateJSDocLink:Pu,createJSDocLinkCode:Fu,updateJSDocLinkCode:Np,createJSDocLinkPlain:Iu,updateJSDocLinkPlain:wp,get createJSDocTypeTag(){return ie(344)},get updateJSDocTypeTag(){return ke(344)},get createJSDocReturnTag(){return ie(342)},get updateJSDocReturnTag(){return ke(342)},get createJSDocThisTag(){return ie(343)},get updateJSDocThisTag(){return ke(343)},get createJSDocAuthorTag(){return b(330)},get updateJSDocAuthorTag(){return J(330)},get createJSDocClassTag(){return b(332)},get updateJSDocClassTag(){return J(332)},get createJSDocPublicTag(){return b(333)},get updateJSDocPublicTag(){return J(333)},get createJSDocPrivateTag(){return b(334)},get updateJSDocPrivateTag(){return J(334)},get createJSDocProtectedTag(){return b(335)},get updateJSDocProtectedTag(){return J(335)},get createJSDocReadonlyTag(){return b(336)},get updateJSDocReadonlyTag(){return J(336)},get createJSDocOverrideTag(){return b(337)},get updateJSDocOverrideTag(){return J(337)},get createJSDocDeprecatedTag(){return b(331)},get updateJSDocDeprecatedTag(){return J(331)},get createJSDocThrowsTag(){return ie(349)},get updateJSDocThrowsTag(){return ke(349)},get createJSDocSatisfiesTag(){return ie(350)},get updateJSDocSatisfiesTag(){return ke(350)},createJSDocEnumTag:Mu,updateJSDocEnumTag:es,createJSDocUnknownTag:Ou,updateJSDocUnknownTag:Fp,createJSDocText:ts,updateJSDocText:Ip,createJSDocComment:$a,updateJSDocComment:Ku,createJsxElement:ju,updateJsxElement:Lp,createJsxSelfClosingElement:qu,updateJsxSelfClosingElement:rs,createJsxOpeningElement:ns,updateJsxOpeningElement:Ru,createJsxClosingElement:Fi,updateJsxClosingElement:Xt,createJsxFragment:as,createJsxText:Ii,updateJsxText:$u,createJsxOpeningFragment:Jp,createJsxJsxClosingFragment:Op,updateJsxFragment:zu,createJsxAttribute:Gu,updateJsxAttribute:Li,createJsxAttributes:Hu,updateJsxAttributes:Mp,createJsxSpreadAttribute:Wu,updateJsxSpreadAttribute:Up,createJsxExpression:Ji,updateJsxExpression:Ga,createJsxNamespacedName:Vu,updateJsxNamespacedName:is,createCaseClause:os,updateCaseClause:Bp,createDefaultClause:fa,updateDefaultClause:Xu,createHeritageClause:Qu,updateHeritageClause:Kp,createCatchClause:ss,updateCatchClause:Zu,createPropertyAssignment:Oi,updatePropertyAssignment:Hn,createShorthandPropertyAssignment:Yu,updateShorthandPropertyAssignment:qp,createSpreadAssignment:cs,updateSpreadAssignment:el,createEnumMember:Er,updateEnumMember:tl,createSourceFile:zp,updateSourceFile:Hp,createRedirectedSourceFile:rl,createBundle:us,updateBundle:Wp,createSyntheticExpression:Vp,createSyntaxList:Ui,createNotEmittedStatement:al,createNotEmittedTypeElement:Xp,createPartiallyEmittedExpression:il,updatePartiallyEmittedExpression:ol,createCommaListExpression:ls,updateCommaListExpression:sl,createSyntheticReferenceExpression:ds,updateSyntheticReferenceExpression:cl,cloneNode:ps,get createComma(){return y(28)},get createAssignment(){return y(64)},get createLogicalOr(){return y(57)},get createLogicalAnd(){return y(56)},get createBitwiseOr(){return y(52)},get createBitwiseXor(){return y(53)},get createBitwiseAnd(){return y(51)},get createStrictEquality(){return y(37)},get createStrictInequality(){return y(38)},get createEquality(){return y(35)},get createInequality(){return y(36)},get createLessThan(){return y(30)},get createLessThanEquals(){return y(33)},get createGreaterThan(){return y(32)},get createGreaterThanEquals(){return y(34)},get createLeftShift(){return y(48)},get createRightShift(){return y(49)},get createUnsignedRightShift(){return y(50)},get createAdd(){return y(40)},get createSubtract(){return y(41)},get createMultiply(){return y(42)},get createDivide(){return y(44)},get createModulo(){return y(45)},get createExponent(){return y(43)},get createPrefixPlus(){return A(40)},get createPrefixMinus(){return A(41)},get createPrefixIncrement(){return A(46)},get createPrefixDecrement(){return A(47)},get createBitwiseNot(){return A(55)},get createLogicalNot(){return A(54)},get createPostfixIncrement(){return P(46)},get createPostfixDecrement(){return P(47)},createImmediatelyInvokedFunctionExpression:e1,createImmediatelyInvokedArrowFunction:t1,createVoidZero:ma,createExportDefault:dl,createExternalModuleExport:r1,createTypeCheck:fs,createIsNotTypeCheck:n1,createMethodCall:Wn,createGlobalMethodCall:Ha,createFunctionBindCall:a1,createFunctionCallCall:i1,createFunctionApplyCall:o1,createArraySliceCall:Wa,createArrayConcatCall:s1,createObjectDefinePropertyCall:ms,createObjectGetOwnPropertyDescriptorCall:ha,createReflectGetCall:pl,createReflectSetCall:c1,createPropertyDescriptor:fl,createCallBinding:hl,createAssignmentTargetWrapper:o,inlineExpressions:l,getInternalName:_,getLocalName:k,getExportName:w,getDeclarationName:X,getNamespaceMemberName:ce,getExternalModuleOrNamespaceExportName:te,restoreOuterExpressions:ml,restoreEnclosingLabel:hs,createUseStrictPrologue:Be,copyPrologue:Y,copyStandardPrologue:Je,copyCustomPrologue:we,ensureUseStrict:nr,liftToBlock:fr,mergeLexicalEnvironment:ln,replaceModifiers:Or,replaceDecoratorsAndModifiers:Vn,replacePropertyName:d1};return wr(vg,t=>t(_e)),_e;function he(t,n){if(t===void 0||t===vt)t=[];else if(Zn(t)){if(n===void 0||t.hasTrailingComma===n)return t.transformFlags===void 0&&Wf(t),U.attachNodeArrayDebugInfo(t),t;let f=t.slice();return f.pos=t.pos,f.end=t.end,f.hasTrailingComma=n,f.transformFlags=t.transformFlags,U.attachNodeArrayDebugInfo(f),f}let a=t.length,s=a>=1&&a<=4?t.slice():t;return s.pos=-1,s.end=-1,s.hasTrailingComma=!!n,s.transformFlags=0,Wf(s),U.attachNodeArrayDebugInfo(s),s}function I(t){return r.createBaseNode(t)}function oe(t){let n=I(t);return n.symbol=void 0,n.localSymbol=void 0,n}function Ie(t,n){return t!==n&&(t.typeArguments=n.typeArguments),K(t,n)}function z(t,n=0){let a=typeof t=="number"?t+"":t;U.assert(a.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let s=oe(9);return s.text=a,s.numericLiteralFlags=n,n&384&&(s.transformFlags|=1024),s}function ue(t){let n=Ht(10);return n.text=typeof t=="string"?t:hg(t)+"n",n.transformFlags|=32,n}function W(t,n){let a=oe(11);return a.text=t,a.singleQuote=n,a}function ft(t,n,a){let s=W(t,n);return s.hasExtendedUnicodeEscape=a,a&&(s.transformFlags|=1024),s}function en(t){let n=W(I_(t),void 0);return n.textSourceNode=t,n}function xr(t){let n=Ht(14);return n.text=t,n}function tn(t,n){switch(t){case 9:return z(n,0);case 10:return ue(n);case 11:return ft(n,void 0);case 12:return Ii(n,false);case 13:return Ii(n,true);case 14:return xr(n);case 15:return da(t,n,void 0,0)}}function kr(t){let n=r.createBaseIdentifierNode(80);return n.escapedText=t,n.jsDoc=void 0,n.flowNode=void 0,n.symbol=void 0,n}function Fr(t,n,a,s){let f=kr(ei(t));return setIdentifierAutoGenerate(f,{flags:n,id:Ls,prefix:a,suffix:s}),Ls++,f}function Re(t,n,a){n===void 0&&t&&(n=V1(t)),n===80&&(n=void 0);let s=kr(ei(t));return a&&(s.flags|=256),s.escapedText==="await"&&(s.transformFlags|=67108864),s.flags&256&&(s.transformFlags|=1024),s}function rn(t,n,a,s){let f=1;n&&(f|=8);let x=Fr("",f,a,s);return t&&t(x),x}function On(t){let n=2;return t&&(n|=8),Fr("",n,void 0,void 0)}function Ft(t,n=0,a,s){return U.assert(!(n&7),"Argument out of range: flags"),U.assert((n&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Fr(t,3|n,a,s)}function Br(t,n=0,a,s){U.assert(!(n&7),"Argument out of range: flags");let f=t?ql(t)?Td(false,a,t,s,yr):`generated@${getNodeId(t)}`:"";(a||s)&&(n|=16);let x=Fr(f,4|n,a,s);return x.original=t,x}function Ir(t){let n=r.createBasePrivateIdentifierNode(81);return n.escapedText=t,n.transformFlags|=16777216,n}function It(t){return ys(t,"#")||U.fail("First character of private identifier must be #: "+t),Ir(ei(t))}function xt(t,n,a,s){let f=Ir(ei(t));return setIdentifierAutoGenerate(f,{flags:n,id:Ls,prefix:a,suffix:s}),Ls++,f}function Ve(t,n,a){t&&!ys(t,"#")&&U.fail("First character of private identifier must be #: "+t);let s=8|(t?3:1);return xt(t??"",s,n,a)}function Kr(t,n,a){let s=ql(t)?Td(true,n,t,a,yr):`#generated@${getNodeId(t)}`,f=xt(s,4|(n||a?16:0),n,a);return f.original=t,f}function Ht(t){return r.createBaseTokenNode(t)}function ut(t){U.assert(t>=0&&t<=165,"Invalid token"),U.assert(t<=15||t>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),U.assert(t<=9||t>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),U.assert(t!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let n=Ht(t),a=0;switch(t){case 134:a=384;break;case 160:a=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:a=1;break;case 108:a=134218752,n.flowNode=void 0;break;case 126:a=1024;break;case 129:a=16777216;break;case 110:a=16384,n.flowNode=void 0;break}return a&&(n.transformFlags|=a),n}function at(){return ut(108)}function Bt(){return ut(110)}function Lt(){return ut(106)}function lt(){return ut(112)}function nn(){return ut(97)}function mt(t){return ut(t)}function Sr(t){let n=[];return t&32&&n.push(mt(95)),t&128&&n.push(mt(138)),t&2048&&n.push(mt(90)),t&4096&&n.push(mt(87)),t&1&&n.push(mt(125)),t&2&&n.push(mt(123)),t&4&&n.push(mt(124)),t&64&&n.push(mt(128)),t&256&&n.push(mt(126)),t&16&&n.push(mt(164)),t&8&&n.push(mt(148)),t&512&&n.push(mt(129)),t&1024&&n.push(mt(134)),t&8192&&n.push(mt(103)),t&16384&&n.push(mt(147)),n.length?n:void 0}function gt(t,n){let a=I(166);return a.left=t,a.right=et(n),a.transformFlags|=q(a.left)|ci(a.right),a.flowNode=void 0,a}function sr(t,n,a){return t.left!==n||t.right!==a?K(gt(n,a),t):t}function rt(t){let n=I(167);return n.expression=u().parenthesizeExpressionOfComputedPropertyName(t),n.transformFlags|=q(n.expression)|1024|131072,n}function Kt(t,n){return t.expression!==n?K(rt(n),t):t}function tr(t,n,a,s){let f=oe(168);return f.modifiers=De(t),f.name=et(n),f.constraint=a,f.default=s,f.transformFlags=1,f.expression=void 0,f.jsDoc=void 0,f}function an(t,n,a,s,f){return t.modifiers!==n||t.name!==a||t.constraint!==s||t.default!==f?K(tr(n,a,s,f),t):t}function Tn(t,n,a,s,f,x){let R=oe(169);return R.modifiers=De(t),R.dotDotDotToken=n,R.name=et(a),R.questionToken=s,R.type=f,R.initializer=Bi(x),J_(R.name)?R.transformFlags=1:R.transformFlags=Ee(R.modifiers)|q(R.dotDotDotToken)|Pr(R.name)|q(R.questionToken)|q(R.initializer)|(R.questionToken??R.type?1:0)|(R.dotDotDotToken??R.initializer?1024:0)|(Dr(R.modifiers)&31?8192:0),R.jsDoc=void 0,R}function xn(t,n,a,s,f,x,R){return t.modifiers!==n||t.dotDotDotToken!==a||t.name!==s||t.questionToken!==f||t.type!==x||t.initializer!==R?K(Tn(n,a,s,f,x,R),t):t}function jr(t){let n=I(170);return n.expression=u().parenthesizeLeftSideOfAccess(t,false),n.transformFlags|=q(n.expression)|1|8192|33554432,n}function qr(t,n){return t.expression!==n?K(jr(n),t):t}function Mn(t,n,a,s){let f=oe(171);return f.modifiers=De(t),f.name=et(n),f.type=s,f.questionToken=a,f.transformFlags=1,f.initializer=void 0,f.jsDoc=void 0,f}function Rr(t,n,a,s,f){return t.modifiers!==n||t.name!==a||t.questionToken!==s||t.type!==f?Ae(Mn(n,a,s,f),t):t}function Ae(t,n){return t!==n&&(t.initializer=n.initializer),K(t,n)}function kn(t,n,a,s,f){let x=oe(172);x.modifiers=De(t),x.name=et(n),x.questionToken=a&&Xf(a)?a:void 0,x.exclamationToken=a&&Vf(a)?a:void 0,x.type=s,x.initializer=Bi(f);let R=x.flags&33554432||Dr(x.modifiers)&128;return x.transformFlags=Ee(x.modifiers)|Pr(x.name)|q(x.initializer)|(R||x.questionToken||x.exclamationToken||x.type?1:0)|(Qf(x.name)||Dr(x.modifiers)&256&&x.initializer?8192:0)|16777216,x.jsDoc=void 0,x}function O(t,n,a,s,f,x){return t.modifiers!==n||t.name!==a||t.questionToken!==(s!==void 0&&Xf(s)?s:void 0)||t.exclamationToken!==(s!==void 0&&Vf(s)?s:void 0)||t.type!==f||t.initializer!==x?K(kn(n,a,s,f,x),t):t}function se(t,n,a,s,f,x){let R=oe(173);return R.modifiers=De(t),R.name=et(n),R.questionToken=a,R.typeParameters=De(s),R.parameters=De(f),R.type=x,R.transformFlags=1,R.jsDoc=void 0,R.locals=void 0,R.nextContainer=void 0,R.typeArguments=void 0,R}function me(t,n,a,s,f,x,R){return t.modifiers!==n||t.name!==a||t.questionToken!==s||t.typeParameters!==f||t.parameters!==x||t.type!==R?Ie(se(n,a,s,f,x,R),t):t}function Se(t,n,a,s,f,x,R,fe){let Oe=oe(174);if(Oe.modifiers=De(t),Oe.asteriskToken=n,Oe.name=et(a),Oe.questionToken=s,Oe.exclamationToken=void 0,Oe.typeParameters=De(f),Oe.parameters=he(x),Oe.type=R,Oe.body=fe,!Oe.body)Oe.transformFlags=1;else {let Zt=Dr(Oe.modifiers)&1024,Nr=!!Oe.asteriskToken,Vr=Zt&&Nr;Oe.transformFlags=Ee(Oe.modifiers)|q(Oe.asteriskToken)|Pr(Oe.name)|q(Oe.questionToken)|Ee(Oe.typeParameters)|Ee(Oe.parameters)|q(Oe.type)|q(Oe.body)&-67108865|(Vr?128:Zt?256:Nr?2048:0)|(Oe.questionToken||Oe.typeParameters||Oe.type?1:0)|1024;}return Oe.typeArguments=void 0,Oe.jsDoc=void 0,Oe.locals=void 0,Oe.nextContainer=void 0,Oe.flowNode=void 0,Oe.endFlowNode=void 0,Oe.returnFlowNode=void 0,Oe}function Xe(t,n,a,s,f,x,R,fe,Oe){return t.modifiers!==n||t.asteriskToken!==a||t.name!==s||t.questionToken!==f||t.typeParameters!==x||t.parameters!==R||t.type!==fe||t.body!==Oe?Qe(Se(n,a,s,f,x,R,fe,Oe),t):t}function Qe(t,n){return t!==n&&(t.exclamationToken=n.exclamationToken),K(t,n)}function it(t){let n=oe(175);return n.body=t,n.transformFlags=q(t)|16777216,n.modifiers=void 0,n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n.endFlowNode=void 0,n.returnFlowNode=void 0,n}function wt(t,n){return t.body!==n?kt(it(n),t):t}function kt(t,n){return t!==n&&(t.modifiers=n.modifiers),K(t,n)}function ot(t,n,a){let s=oe(176);return s.modifiers=De(t),s.parameters=he(n),s.body=a,s.body?s.transformFlags=Ee(s.modifiers)|Ee(s.parameters)|q(s.body)&-67108865|1024:s.transformFlags=1,s.typeParameters=void 0,s.type=void 0,s.typeArguments=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.endFlowNode=void 0,s.returnFlowNode=void 0,s}function oa(t,n,a,s){return t.modifiers!==n||t.parameters!==a||t.body!==s?br(ot(n,a,s),t):t}function br(t,n){return t!==n&&(t.typeParameters=n.typeParameters,t.type=n.type),Ie(t,n)}function Un(t,n,a,s,f){let x=oe(177);return x.modifiers=De(t),x.name=et(n),x.parameters=he(a),x.type=s,x.body=f,x.body?x.transformFlags=Ee(x.modifiers)|Pr(x.name)|Ee(x.parameters)|q(x.type)|q(x.body)&-67108865|(x.type?1:0):x.transformFlags=1,x.typeArguments=void 0,x.typeParameters=void 0,x.jsDoc=void 0,x.locals=void 0,x.nextContainer=void 0,x.flowNode=void 0,x.endFlowNode=void 0,x.returnFlowNode=void 0,x}function zr(t,n,a,s,f,x){return t.modifiers!==n||t.name!==a||t.parameters!==s||t.type!==f||t.body!==x?Ia(Un(n,a,s,f,x),t):t}function Ia(t,n){return t!==n&&(t.typeParameters=n.typeParameters),Ie(t,n)}function B(t,n,a,s){let f=oe(178);return f.modifiers=De(t),f.name=et(n),f.parameters=he(a),f.body=s,f.body?f.transformFlags=Ee(f.modifiers)|Pr(f.name)|Ee(f.parameters)|q(f.body)&-67108865|(f.type?1:0):f.transformFlags=1,f.typeArguments=void 0,f.typeParameters=void 0,f.type=void 0,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.flowNode=void 0,f.endFlowNode=void 0,f.returnFlowNode=void 0,f}function Q(t,n,a,s,f){return t.modifiers!==n||t.name!==a||t.parameters!==s||t.body!==f?ee(B(n,a,s,f),t):t}function ee(t,n){return t!==n&&(t.typeParameters=n.typeParameters,t.type=n.type),Ie(t,n)}function be(t,n,a){let s=oe(179);return s.typeParameters=De(t),s.parameters=De(n),s.type=a,s.transformFlags=1,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.typeArguments=void 0,s}function ve(t,n,a,s){return t.typeParameters!==n||t.parameters!==a||t.type!==s?Ie(be(n,a,s),t):t}function Ce(t,n,a){let s=oe(180);return s.typeParameters=De(t),s.parameters=De(n),s.type=a,s.transformFlags=1,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.typeArguments=void 0,s}function ye(t,n,a,s){return t.typeParameters!==n||t.parameters!==a||t.type!==s?Ie(Ce(n,a,s),t):t}function qe(t,n,a){let s=oe(181);return s.modifiers=De(t),s.parameters=De(n),s.type=a,s.transformFlags=1,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.typeArguments=void 0,s}function Ze(t,n,a,s){return t.parameters!==a||t.type!==s||t.modifiers!==n?Ie(qe(n,a,s),t):t}function Ge(t,n){let a=I(204);return a.type=t,a.literal=n,a.transformFlags=1,a}function Ne(t,n,a){return t.type!==n||t.literal!==a?K(Ge(n,a),t):t}function Lr(t){return ut(t)}function nt(t,n,a){let s=I(182);return s.assertsModifier=t,s.parameterName=et(n),s.type=a,s.transformFlags=1,s}function cr(t,n,a,s){return t.assertsModifier!==n||t.parameterName!==a||t.type!==s?K(nt(n,a,s),t):t}function Sn(t,n){let a=I(183);return a.typeName=et(t),a.typeArguments=n&&u().parenthesizeTypeArguments(he(n)),a.transformFlags=1,a}function L(t,n,a){return t.typeName!==n||t.typeArguments!==a?K(Sn(n,a),t):t}function F(t,n,a){let s=oe(184);return s.typeParameters=De(t),s.parameters=De(n),s.type=a,s.transformFlags=1,s.modifiers=void 0,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.typeArguments=void 0,s}function p(t,n,a,s){return t.typeParameters!==n||t.parameters!==a||t.type!==s?Ue(F(n,a,s),t):t}function Ue(t,n){return t!==n&&(t.modifiers=n.modifiers),Ie(t,n)}function We(...t){return t.length===4?j(...t):t.length===3?Ye(...t):U.fail("Incorrect number of arguments specified.")}function j(t,n,a,s){let f=oe(185);return f.modifiers=De(t),f.typeParameters=De(n),f.parameters=De(a),f.type=s,f.transformFlags=1,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.typeArguments=void 0,f}function Ye(t,n,a){return j(void 0,t,n,a)}function ze(...t){return t.length===5?He(...t):t.length===4?At(...t):U.fail("Incorrect number of arguments specified.")}function He(t,n,a,s,f){return t.modifiers!==n||t.typeParameters!==a||t.parameters!==s||t.type!==f?Ie(We(n,a,s,f),t):t}function At(t,n,a,s){return He(t,t.modifiers,n,a,s)}function yt(t,n){let a=I(186);return a.exprName=t,a.typeArguments=n&&u().parenthesizeTypeArguments(n),a.transformFlags=1,a}function Dt(t,n,a){return t.exprName!==n||t.typeArguments!==a?K(yt(n,a),t):t}function Wt(t){let n=oe(187);return n.members=he(t),n.transformFlags=1,n}function bn(t,n){return t.members!==n?K(Wt(n),t):t}function $r(t){let n=I(188);return n.elementType=u().parenthesizeNonArrayTypeOfPostfixType(t),n.transformFlags=1,n}function La(t,n){return t.elementType!==n?K($r(n),t):t}function ur(t){let n=I(189);return n.elements=he(u().parenthesizeElementTypesOfTupleType(t)),n.transformFlags=1,n}function G(t,n){return t.elements!==n?K(ur(n),t):t}function de(t,n,a,s){let f=oe(202);return f.dotDotDotToken=t,f.name=n,f.questionToken=a,f.type=s,f.transformFlags=1,f.jsDoc=void 0,f}function je(t,n,a,s,f){return t.dotDotDotToken!==n||t.name!==a||t.questionToken!==s||t.type!==f?K(de(n,a,s,f),t):t}function xe(t){let n=I(190);return n.type=u().parenthesizeTypeOfOptionalType(t),n.transformFlags=1,n}function M(t,n){return t.type!==n?K(xe(n),t):t}function ht(t){let n=I(191);return n.type=t,n.transformFlags=1,n}function St(t,n){return t.type!==n?K(ht(n),t):t}function Jt(t,n,a){let s=I(t);return s.types=_e.createNodeArray(a(n)),s.transformFlags=1,s}function lr(t,n,a){return t.types!==n?K(Jt(t.kind,n,a),t):t}function Od(t){return Jt(192,t,u().parenthesizeConstituentTypesOfUnionType)}function Hs(t,n){return lr(t,n,u().parenthesizeConstituentTypesOfUnionType)}function Bn(t){return Jt(193,t,u().parenthesizeConstituentTypesOfIntersectionType)}function Le(t,n){return lr(t,n,u().parenthesizeConstituentTypesOfIntersectionType)}function pt(t,n,a,s){let f=I(194);return f.checkType=u().parenthesizeCheckTypeOfConditionalType(t),f.extendsType=u().parenthesizeExtendsTypeOfConditionalType(n),f.trueType=a,f.falseType=s,f.transformFlags=1,f.locals=void 0,f.nextContainer=void 0,f}function Md(t,n,a,s,f){return t.checkType!==n||t.extendsType!==a||t.trueType!==s||t.falseType!==f?K(pt(n,a,s,f),t):t}function Gr(t){let n=I(195);return n.typeParameter=t,n.transformFlags=1,n}function Ud(t,n){return t.typeParameter!==n?K(Gr(n),t):t}function zt(t,n){let a=I(203);return a.head=t,a.templateSpans=he(n),a.transformFlags=1,a}function Bd(t,n,a){return t.head!==n||t.templateSpans!==a?K(zt(n,a),t):t}function on(t,n,a,s,f=false){let x=I(205);return x.argument=t,x.attributes=n,x.assertions&&x.assertions.assertClause&&x.attributes&&(x.assertions.assertClause=x.attributes),x.qualifier=a,x.typeArguments=s&&u().parenthesizeTypeArguments(s),x.isTypeOf=f,x.transformFlags=1,x}function hi(t,n,a,s,f,x=t.isTypeOf){return t.argument!==n||t.attributes!==a||t.qualifier!==s||t.typeArguments!==f||t.isTypeOf!==x?K(on(n,a,s,f,x),t):t}function Vt(t){let n=I(196);return n.type=t,n.transformFlags=1,n}function Nt(t,n){return t.type!==n?K(Vt(n),t):t}function E(){let t=I(197);return t.transformFlags=1,t}function $t(t,n){let a=I(198);return a.operator=t,a.type=t===148?u().parenthesizeOperandOfReadonlyTypeOperator(n):u().parenthesizeOperandOfTypeOperator(n),a.transformFlags=1,a}function Kn(t,n){return t.type!==n?K($t(t.operator,n),t):t}function sn(t,n){let a=I(199);return a.objectType=u().parenthesizeNonArrayTypeOfPostfixType(t),a.indexType=n,a.transformFlags=1,a}function yo(t,n,a){return t.objectType!==n||t.indexType!==a?K(sn(n,a),t):t}function bt(t,n,a,s,f,x){let R=oe(200);return R.readonlyToken=t,R.typeParameter=n,R.nameType=a,R.questionToken=s,R.type=f,R.members=x&&he(x),R.transformFlags=1,R.locals=void 0,R.nextContainer=void 0,R}function Ot(t,n,a,s,f,x,R){return t.readonlyToken!==n||t.typeParameter!==a||t.nameType!==s||t.questionToken!==f||t.type!==x||t.members!==R?K(bt(n,a,s,f,x,R),t):t}function sa(t){let n=I(201);return n.literal=t,n.transformFlags=1,n}function vn(t,n){return t.literal!==n?K(sa(n),t):t}function Ws(t){let n=I(206);return n.elements=he(t),n.transformFlags|=Ee(n.elements)|1024|524288,n.transformFlags&32768&&(n.transformFlags|=65664),n}function Kd(t,n){return t.elements!==n?K(Ws(n),t):t}function jn(t){let n=I(207);return n.elements=he(t),n.transformFlags|=Ee(n.elements)|1024|524288,n}function jd(t,n){return t.elements!==n?K(jn(n),t):t}function _i(t,n,a,s){let f=oe(208);return f.dotDotDotToken=t,f.propertyName=et(n),f.name=et(a),f.initializer=Bi(s),f.transformFlags|=q(f.dotDotDotToken)|Pr(f.propertyName)|Pr(f.name)|q(f.initializer)|(f.dotDotDotToken?32768:0)|1024,f.flowNode=void 0,f}function ca(t,n,a,s,f){return t.propertyName!==a||t.dotDotDotToken!==n||t.name!==s||t.initializer!==f?K(_i(n,a,s,f),t):t}function To(t,n){let a=I(209),s=t&&ya(t),f=he(t,s&&fy(s)?true:void 0);return a.elements=u().parenthesizeExpressionsOfCommaDelimitedList(f),a.multiLine=n,a.transformFlags|=Ee(a.elements),a}function Vs(t,n){return t.elements!==n?K(To(n,t.multiLine),t):t}function Ja(t,n){let a=oe(210);return a.properties=he(t),a.multiLine=n,a.transformFlags|=Ee(a.properties),a.jsDoc=void 0,a}function qd(t,n){return t.properties!==n?K(Ja(n,t.multiLine),t):t}function Xs(t,n,a){let s=oe(211);return s.expression=t,s.questionDotToken=n,s.name=a,s.transformFlags=q(s.expression)|q(s.questionDotToken)|(tt(s.name)?ci(s.name):q(s.name)|536870912),s.jsDoc=void 0,s.flowNode=void 0,s}function cn(t,n){let a=Xs(u().parenthesizeLeftSideOfAccess(t,false),void 0,et(n));return ld(t)&&(a.transformFlags|=384),a}function Rd(t,n,a){return Nh(t)?gi(t,n,t.questionDotToken,mn(a,tt)):t.expression!==n||t.name!==a?K(cn(n,a),t):t}function Oa(t,n,a){let s=Xs(u().parenthesizeLeftSideOfAccess(t,true),n,et(a));return s.flags|=64,s.transformFlags|=32,s}function gi(t,n,a,s){return U.assert(!!(t.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),t.expression!==n||t.questionDotToken!==a||t.name!==s?K(Oa(n,a,s),t):t}function Qs(t,n,a){let s=oe(212);return s.expression=t,s.questionDotToken=n,s.argumentExpression=a,s.transformFlags|=q(s.expression)|q(s.questionDotToken)|q(s.argumentExpression),s.jsDoc=void 0,s.flowNode=void 0,s}function Ma(t,n){let a=Qs(u().parenthesizeLeftSideOfAccess(t,false),void 0,dn(n));return ld(t)&&(a.transformFlags|=384),a}function zd(t,n,a){return wh(t)?xo(t,n,t.questionDotToken,a):t.expression!==n||t.argumentExpression!==a?K(Ma(n,a),t):t}function Zs(t,n,a){let s=Qs(u().parenthesizeLeftSideOfAccess(t,true),n,dn(a));return s.flags|=64,s.transformFlags|=32,s}function xo(t,n,a,s){return U.assert(!!(t.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),t.expression!==n||t.questionDotToken!==a||t.argumentExpression!==s?K(Zs(n,a,s),t):t}function Ys(t,n,a,s){let f=oe(213);return f.expression=t,f.questionDotToken=n,f.typeArguments=a,f.arguments=s,f.transformFlags|=q(f.expression)|q(f.questionDotToken)|Ee(f.typeArguments)|Ee(f.arguments),f.typeArguments&&(f.transformFlags|=1),Lf(f.expression)&&(f.transformFlags|=16384),f}function Ua(t,n,a){let s=Ys(u().parenthesizeLeftSideOfAccess(t,false),void 0,De(n),u().parenthesizeExpressionsOfCommaDelimitedList(he(a)));return Og(s.expression)&&(s.transformFlags|=8388608),s}function yi(t,n,a,s){return gf(t)?ec(t,n,t.questionDotToken,a,s):t.expression!==n||t.typeArguments!==a||t.arguments!==s?K(Ua(n,a,s),t):t}function ko(t,n,a,s){let f=Ys(u().parenthesizeLeftSideOfAccess(t,true),n,De(a),u().parenthesizeExpressionsOfCommaDelimitedList(he(s)));return f.flags|=64,f.transformFlags|=32,f}function ec(t,n,a,s,f){return U.assert(!!(t.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),t.expression!==n||t.questionDotToken!==a||t.typeArguments!==s||t.arguments!==f?K(ko(n,a,s,f),t):t}function vr(t,n,a){let s=oe(214);return s.expression=u().parenthesizeExpressionOfNew(t),s.typeArguments=De(n),s.arguments=a?u().parenthesizeExpressionsOfCommaDelimitedList(a):void 0,s.transformFlags|=q(s.expression)|Ee(s.typeArguments)|Ee(s.arguments)|32,s.typeArguments&&(s.transformFlags|=1),s}function So(t,n,a,s){return t.expression!==n||t.typeArguments!==a||t.arguments!==s?K(vr(n,a,s),t):t}function Ti(t,n,a){let s=I(215);return s.tag=u().parenthesizeLeftSideOfAccess(t,false),s.typeArguments=De(n),s.template=a,s.transformFlags|=q(s.tag)|Ee(s.typeArguments)|q(s.template)|1024,s.typeArguments&&(s.transformFlags|=1),L_(s.template)&&(s.transformFlags|=128),s}function tc(t,n,a,s){return t.tag!==n||t.typeArguments!==a||t.template!==s?K(Ti(n,a,s),t):t}function rc(t,n){let a=I(216);return a.expression=u().parenthesizeOperandOfPrefixUnary(n),a.type=t,a.transformFlags|=q(a.expression)|q(a.type)|1,a}function nc(t,n,a){return t.type!==n||t.expression!==a?K(rc(n,a),t):t}function bo(t){let n=I(217);return n.expression=t,n.transformFlags=q(n.expression),n.jsDoc=void 0,n}function ac(t,n){return t.expression!==n?K(bo(n),t):t}function vo(t,n,a,s,f,x,R){let fe=oe(218);fe.modifiers=De(t),fe.asteriskToken=n,fe.name=et(a),fe.typeParameters=De(s),fe.parameters=he(f),fe.type=x,fe.body=R;let Oe=Dr(fe.modifiers)&1024,Zt=!!fe.asteriskToken,Nr=Oe&&Zt;return fe.transformFlags=Ee(fe.modifiers)|q(fe.asteriskToken)|Pr(fe.name)|Ee(fe.typeParameters)|Ee(fe.parameters)|q(fe.type)|q(fe.body)&-67108865|(Nr?128:Oe?256:Zt?2048:0)|(fe.typeParameters||fe.type?1:0)|4194304,fe.typeArguments=void 0,fe.jsDoc=void 0,fe.locals=void 0,fe.nextContainer=void 0,fe.flowNode=void 0,fe.endFlowNode=void 0,fe.returnFlowNode=void 0,fe}function ic(t,n,a,s,f,x,R,fe){return t.name!==s||t.modifiers!==n||t.asteriskToken!==a||t.typeParameters!==f||t.parameters!==x||t.type!==R||t.body!==fe?Ie(vo(n,a,s,f,x,R,fe),t):t}function Co(t,n,a,s,f,x){let R=oe(219);R.modifiers=De(t),R.typeParameters=De(n),R.parameters=he(a),R.type=s,R.equalsGreaterThanToken=f??ut(39),R.body=u().parenthesizeConciseBodyOfArrowFunction(x);let fe=Dr(R.modifiers)&1024;return R.transformFlags=Ee(R.modifiers)|Ee(R.typeParameters)|Ee(R.parameters)|q(R.type)|q(R.equalsGreaterThanToken)|q(R.body)&-67108865|(R.typeParameters||R.type?1:0)|(fe?16640:0)|1024,R.typeArguments=void 0,R.jsDoc=void 0,R.locals=void 0,R.nextContainer=void 0,R.flowNode=void 0,R.endFlowNode=void 0,R.returnFlowNode=void 0,R}function oc(t,n,a,s,f,x,R){return t.modifiers!==n||t.typeParameters!==a||t.parameters!==s||t.type!==f||t.equalsGreaterThanToken!==x||t.body!==R?Ie(Co(n,a,s,f,x,R),t):t}function sc(t){let n=I(220);return n.expression=u().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=q(n.expression),n}function cc(t,n){return t.expression!==n?K(sc(n),t):t}function xi(t){let n=I(221);return n.expression=u().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=q(n.expression),n}function dr(t,n){return t.expression!==n?K(xi(n),t):t}function Eo(t){let n=I(222);return n.expression=u().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=q(n.expression),n}function un(t,n){return t.expression!==n?K(Eo(n),t):t}function uc(t){let n=I(223);return n.expression=u().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=q(n.expression)|256|128|2097152,n}function qn(t,n){return t.expression!==n?K(uc(n),t):t}function Rn(t,n){let a=I(224);return a.operator=t,a.operand=u().parenthesizeOperandOfPrefixUnary(n),a.transformFlags|=q(a.operand),(t===46||t===47)&&tt(a.operand)&&!ti(a.operand)&&!v2(a.operand)&&(a.transformFlags|=268435456),a}function $d(t,n){return t.operand!==n?K(Rn(t.operator,n),t):t}function ua(t,n){let a=I(225);return a.operator=n,a.operand=u().parenthesizeOperandOfPostfixUnary(t),a.transformFlags|=q(a.operand),tt(a.operand)&&!ti(a.operand)&&!v2(a.operand)&&(a.transformFlags|=268435456),a}function Gd(t,n){return t.operand!==n?K(ua(n,t.operator),t):t}function ki(t,n,a){let s=oe(226),f=_l(n),x=f.kind;return s.left=u().parenthesizeLeftSideOfBinary(x,t),s.operatorToken=f,s.right=u().parenthesizeRightSideOfBinary(x,s.left,a),s.transformFlags|=q(s.left)|q(s.operatorToken)|q(s.right),x===61?s.transformFlags|=32:x===64?a2(s.left)?s.transformFlags|=5248|lc(s.left):cy(s.left)&&(s.transformFlags|=5120|lc(s.left)):x===43||x===68?s.transformFlags|=512:H_(x)&&(s.transformFlags|=16),x===103&&Ca(s.left)&&(s.transformFlags|=536870912),s.jsDoc=void 0,s}function lc(t){return A2(t)?65536:0}function Hd(t,n,a,s){return t.left!==n||t.operatorToken!==a||t.right!==s?K(ki(n,a,s),t):t}function dc(t,n,a,s,f){let x=I(227);return x.condition=u().parenthesizeConditionOfConditionalExpression(t),x.questionToken=n??ut(58),x.whenTrue=u().parenthesizeBranchOfConditionalExpression(a),x.colonToken=s??ut(59),x.whenFalse=u().parenthesizeBranchOfConditionalExpression(f),x.transformFlags|=q(x.condition)|q(x.questionToken)|q(x.whenTrue)|q(x.colonToken)|q(x.whenFalse),x}function pc(t,n,a,s,f,x){return t.condition!==n||t.questionToken!==a||t.whenTrue!==s||t.colonToken!==f||t.whenFalse!==x?K(dc(n,a,s,f,x),t):t}function fc(t,n){let a=I(228);return a.head=t,a.templateSpans=he(n),a.transformFlags|=q(a.head)|Ee(a.templateSpans)|1024,a}function Hr(t,n,a){return t.head!==n||t.templateSpans!==a?K(fc(n,a),t):t}function Ba(t,n,a,s=0){U.assert(!(s&-7177),"Unsupported template flags.");let f;if(a!==void 0&&a!==n&&(f=Cg(t,a),typeof f=="object"))return U.fail("Invalid raw text");if(n===void 0){if(f===void 0)return U.fail("Arguments 'text' and 'rawText' may not both be undefined.");n=f;}else f!==void 0&&U.assert(n===f,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return n}function mc(t){let n=1024;return t&&(n|=128),n}function Wd(t,n,a,s){let f=Ht(t);return f.text=n,f.rawText=a,f.templateFlags=s&7176,f.transformFlags=mc(f.templateFlags),f}function la(t,n,a,s){let f=oe(t);return f.text=n,f.rawText=a,f.templateFlags=s&7176,f.transformFlags=mc(f.templateFlags),f}function da(t,n,a,s){return t===15?la(t,n,a,s):Wd(t,n,a,s)}function hc(t,n,a){return t=Ba(16,t,n,a),da(16,t,n,a)}function Si(t,n,a){return t=Ba(16,t,n,a),da(17,t,n,a)}function No(t,n,a){return t=Ba(16,t,n,a),da(18,t,n,a)}function Vd(t,n,a){return t=Ba(16,t,n,a),la(15,t,n,a)}function wo(t,n){U.assert(!t||!!n,"A `YieldExpression` with an asteriskToken must have an expression.");let a=I(229);return a.expression=n&&u().parenthesizeExpressionForDisallowedComma(n),a.asteriskToken=t,a.transformFlags|=q(a.expression)|q(a.asteriskToken)|1024|128|1048576,a}function Xd(t,n,a){return t.expression!==a||t.asteriskToken!==n?K(wo(n,a),t):t}function _c(t){let n=I(230);return n.expression=u().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=q(n.expression)|1024|32768,n}function Qd(t,n){return t.expression!==n?K(_c(n),t):t}function gc(t,n,a,s,f){let x=oe(231);return x.modifiers=De(t),x.name=et(n),x.typeParameters=De(a),x.heritageClauses=De(s),x.members=he(f),x.transformFlags|=Ee(x.modifiers)|Pr(x.name)|Ee(x.typeParameters)|Ee(x.heritageClauses)|Ee(x.members)|(x.typeParameters?1:0)|1024,x.jsDoc=void 0,x}function Ao(t,n,a,s,f,x){return t.modifiers!==n||t.name!==a||t.typeParameters!==s||t.heritageClauses!==f||t.members!==x?K(gc(n,a,s,f,x),t):t}function Do(){return I(232)}function yc(t,n){let a=I(233);return a.expression=u().parenthesizeLeftSideOfAccess(t,false),a.typeArguments=n&&u().parenthesizeTypeArguments(n),a.transformFlags|=q(a.expression)|Ee(a.typeArguments)|1024,a}function Tc(t,n,a){return t.expression!==n||t.typeArguments!==a?K(yc(n,a),t):t}function pr(t,n){let a=I(234);return a.expression=t,a.type=n,a.transformFlags|=q(a.expression)|q(a.type)|1,a}function bi(t,n,a){return t.expression!==n||t.type!==a?K(pr(n,a),t):t}function xc(t){let n=I(235);return n.expression=u().parenthesizeLeftSideOfAccess(t,false),n.transformFlags|=q(n.expression)|1,n}function kc(t,n){return Ah(t)?Jr(t,n):t.expression!==n?K(xc(n),t):t}function Po(t,n){let a=I(238);return a.expression=t,a.type=n,a.transformFlags|=q(a.expression)|q(a.type)|1,a}function Sc(t,n,a){return t.expression!==n||t.type!==a?K(Po(n,a),t):t}function Fo(t){let n=I(235);return n.flags|=64,n.expression=u().parenthesizeLeftSideOfAccess(t,true),n.transformFlags|=q(n.expression)|1,n}function Jr(t,n){return U.assert(!!(t.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),t.expression!==n?K(Fo(n),t):t}function bc(t,n){let a=I(236);switch(a.keywordToken=t,a.name=n,a.transformFlags|=q(a.name),t){case 105:a.transformFlags|=1024;break;case 102:a.transformFlags|=32;break;default:return U.assertNever(t)}return a.flowNode=void 0,a}function Io(t,n){return t.name!==n?K(bc(t.keywordToken,n),t):t}function Wr(t,n){let a=I(239);return a.expression=t,a.literal=n,a.transformFlags|=q(a.expression)|q(a.literal)|1024,a}function vi(t,n,a){return t.expression!==n||t.literal!==a?K(Wr(n,a),t):t}function vc(){let t=I(240);return t.transformFlags|=1024,t}function zn(t,n){let a=I(241);return a.statements=he(t),a.multiLine=n,a.transformFlags|=Ee(a.statements),a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a}function Zd(t,n){return t.statements!==n?K(zn(n,t.multiLine),t):t}function Lo(t,n){let a=I(243);return a.modifiers=De(t),a.declarationList=Fn(n)?Ko(n):n,a.transformFlags|=Ee(a.modifiers)|q(a.declarationList),Dr(a.modifiers)&128&&(a.transformFlags=1),a.jsDoc=void 0,a.flowNode=void 0,a}function Cc(t,n,a){return t.modifiers!==n||t.declarationList!==a?K(Lo(n,a),t):t}function Ec(){let t=I(242);return t.jsDoc=void 0,t}function Ka(t){let n=I(244);return n.expression=u().parenthesizeExpressionOfExpressionStatement(t),n.transformFlags|=q(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function Nc(t,n){return t.expression!==n?K(Ka(n),t):t}function wc(t,n,a){let s=I(245);return s.expression=t,s.thenStatement=Pt(n),s.elseStatement=Pt(a),s.transformFlags|=q(s.expression)|q(s.thenStatement)|q(s.elseStatement),s.jsDoc=void 0,s.flowNode=void 0,s}function Ac(t,n,a,s){return t.expression!==n||t.thenStatement!==a||t.elseStatement!==s?K(wc(n,a,s),t):t}function Dc(t,n){let a=I(246);return a.statement=Pt(t),a.expression=n,a.transformFlags|=q(a.statement)|q(a.expression),a.jsDoc=void 0,a.flowNode=void 0,a}function Pc(t,n,a){return t.statement!==n||t.expression!==a?K(Dc(n,a),t):t}function Fc(t,n){let a=I(247);return a.expression=t,a.statement=Pt(n),a.transformFlags|=q(a.expression)|q(a.statement),a.jsDoc=void 0,a.flowNode=void 0,a}function Yd(t,n,a){return t.expression!==n||t.statement!==a?K(Fc(n,a),t):t}function Ic(t,n,a,s){let f=I(248);return f.initializer=t,f.condition=n,f.incrementor=a,f.statement=Pt(s),f.transformFlags|=q(f.initializer)|q(f.condition)|q(f.incrementor)|q(f.statement),f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.flowNode=void 0,f}function Lc(t,n,a,s,f){return t.initializer!==n||t.condition!==a||t.incrementor!==s||t.statement!==f?K(Ic(n,a,s,f),t):t}function Jo(t,n,a){let s=I(249);return s.initializer=t,s.expression=n,s.statement=Pt(a),s.transformFlags|=q(s.initializer)|q(s.expression)|q(s.statement),s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s.flowNode=void 0,s}function ep(t,n,a,s){return t.initializer!==n||t.expression!==a||t.statement!==s?K(Jo(n,a,s),t):t}function Jc(t,n,a,s){let f=I(250);return f.awaitModifier=t,f.initializer=n,f.expression=u().parenthesizeExpressionForDisallowedComma(a),f.statement=Pt(s),f.transformFlags|=q(f.awaitModifier)|q(f.initializer)|q(f.expression)|q(f.statement)|1024,t&&(f.transformFlags|=128),f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f.flowNode=void 0,f}function tp(t,n,a,s,f){return t.awaitModifier!==n||t.initializer!==a||t.expression!==s||t.statement!==f?K(Jc(n,a,s,f),t):t}function Oc(t){let n=I(251);return n.label=et(t),n.transformFlags|=q(n.label)|4194304,n.jsDoc=void 0,n.flowNode=void 0,n}function rp(t,n){return t.label!==n?K(Oc(n),t):t}function Oo(t){let n=I(252);return n.label=et(t),n.transformFlags|=q(n.label)|4194304,n.jsDoc=void 0,n.flowNode=void 0,n}function Mc(t,n){return t.label!==n?K(Oo(n),t):t}function Mo(t){let n=I(253);return n.expression=t,n.transformFlags|=q(n.expression)|128|4194304,n.jsDoc=void 0,n.flowNode=void 0,n}function np(t,n){return t.expression!==n?K(Mo(n),t):t}function Uo(t,n){let a=I(254);return a.expression=t,a.statement=Pt(n),a.transformFlags|=q(a.expression)|q(a.statement),a.jsDoc=void 0,a.flowNode=void 0,a}function Uc(t,n,a){return t.expression!==n||t.statement!==a?K(Uo(n,a),t):t}function Bo(t,n){let a=I(255);return a.expression=u().parenthesizeExpressionForDisallowedComma(t),a.caseBlock=n,a.transformFlags|=q(a.expression)|q(a.caseBlock),a.jsDoc=void 0,a.flowNode=void 0,a.possiblyExhaustive=false,a}function pa(t,n,a){return t.expression!==n||t.caseBlock!==a?K(Bo(n,a),t):t}function Bc(t,n){let a=I(256);return a.label=et(t),a.statement=Pt(n),a.transformFlags|=q(a.label)|q(a.statement),a.jsDoc=void 0,a.flowNode=void 0,a}function Kc(t,n,a){return t.label!==n||t.statement!==a?K(Bc(n,a),t):t}function jc(t){let n=I(257);return n.expression=t,n.transformFlags|=q(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function ap(t,n){return t.expression!==n?K(jc(n),t):t}function qc(t,n,a){let s=I(258);return s.tryBlock=t,s.catchClause=n,s.finallyBlock=a,s.transformFlags|=q(s.tryBlock)|q(s.catchClause)|q(s.finallyBlock),s.jsDoc=void 0,s.flowNode=void 0,s}function ip(t,n,a,s){return t.tryBlock!==n||t.catchClause!==a||t.finallyBlock!==s?K(qc(n,a,s),t):t}function Rc(){let t=I(259);return t.jsDoc=void 0,t.flowNode=void 0,t}function Ci(t,n,a,s){let f=oe(260);return f.name=et(t),f.exclamationToken=n,f.type=a,f.initializer=Bi(s),f.transformFlags|=Pr(f.name)|q(f.initializer)|(f.exclamationToken??f.type?1:0),f.jsDoc=void 0,f}function zc(t,n,a,s,f){return t.name!==n||t.type!==s||t.exclamationToken!==a||t.initializer!==f?K(Ci(n,a,s,f),t):t}function Ko(t,n=0){let a=I(261);return a.flags|=n&7,a.declarations=he(t),a.transformFlags|=Ee(a.declarations)|4194304,n&7&&(a.transformFlags|=263168),n&4&&(a.transformFlags|=4),a}function op(t,n){return t.declarations!==n?K(Ko(n,t.flags),t):t}function $c(t,n,a,s,f,x,R){let fe=oe(262);if(fe.modifiers=De(t),fe.asteriskToken=n,fe.name=et(a),fe.typeParameters=De(s),fe.parameters=he(f),fe.type=x,fe.body=R,!fe.body||Dr(fe.modifiers)&128)fe.transformFlags=1;else {let Oe=Dr(fe.modifiers)&1024,Zt=!!fe.asteriskToken,Nr=Oe&&Zt;fe.transformFlags=Ee(fe.modifiers)|q(fe.asteriskToken)|Pr(fe.name)|Ee(fe.typeParameters)|Ee(fe.parameters)|q(fe.type)|q(fe.body)&-67108865|(Nr?128:Oe?256:Zt?2048:0)|(fe.typeParameters||fe.type?1:0)|4194304;}return fe.typeArguments=void 0,fe.jsDoc=void 0,fe.locals=void 0,fe.nextContainer=void 0,fe.endFlowNode=void 0,fe.returnFlowNode=void 0,fe}function jo(t,n,a,s,f,x,R,fe){return t.modifiers!==n||t.asteriskToken!==a||t.name!==s||t.typeParameters!==f||t.parameters!==x||t.type!==R||t.body!==fe?sp($c(n,a,s,f,x,R,fe),t):t}function sp(t,n){return t!==n&&t.modifiers===n.modifiers&&(t.modifiers=n.modifiers),Ie(t,n)}function Gc(t,n,a,s,f){let x=oe(263);return x.modifiers=De(t),x.name=et(n),x.typeParameters=De(a),x.heritageClauses=De(s),x.members=he(f),Dr(x.modifiers)&128?x.transformFlags=1:(x.transformFlags|=Ee(x.modifiers)|Pr(x.name)|Ee(x.typeParameters)|Ee(x.heritageClauses)|Ee(x.members)|(x.typeParameters?1:0)|1024,x.transformFlags&8192&&(x.transformFlags|=1)),x.jsDoc=void 0,x}function Ei(t,n,a,s,f,x){return t.modifiers!==n||t.name!==a||t.typeParameters!==s||t.heritageClauses!==f||t.members!==x?K(Gc(n,a,s,f,x),t):t}function Hc(t,n,a,s,f){let x=oe(264);return x.modifiers=De(t),x.name=et(n),x.typeParameters=De(a),x.heritageClauses=De(s),x.members=he(f),x.transformFlags=1,x.jsDoc=void 0,x}function Wc(t,n,a,s,f,x){return t.modifiers!==n||t.name!==a||t.typeParameters!==s||t.heritageClauses!==f||t.members!==x?K(Hc(n,a,s,f,x),t):t}function st(t,n,a,s){let f=oe(265);return f.modifiers=De(t),f.name=et(n),f.typeParameters=De(a),f.type=s,f.transformFlags=1,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f}function Cn(t,n,a,s,f){return t.modifiers!==n||t.name!==a||t.typeParameters!==s||t.type!==f?K(st(n,a,s,f),t):t}function qo(t,n,a){let s=oe(266);return s.modifiers=De(t),s.name=et(n),s.members=he(a),s.transformFlags|=Ee(s.modifiers)|q(s.name)|Ee(s.members)|1,s.transformFlags&=-67108865,s.jsDoc=void 0,s}function En(t,n,a,s){return t.modifiers!==n||t.name!==a||t.members!==s?K(qo(n,a,s),t):t}function Vc(t,n,a,s=0){let f=oe(267);return f.modifiers=De(t),f.flags|=s&2088,f.name=n,f.body=a,Dr(f.modifiers)&128?f.transformFlags=1:f.transformFlags|=Ee(f.modifiers)|q(f.name)|q(f.body)|1,f.transformFlags&=-67108865,f.jsDoc=void 0,f.locals=void 0,f.nextContainer=void 0,f}function Et(t,n,a,s){return t.modifiers!==n||t.name!==a||t.body!==s?K(Vc(n,a,s,t.flags),t):t}function Nn(t){let n=I(268);return n.statements=he(t),n.transformFlags|=Ee(n.statements),n.jsDoc=void 0,n}function jt(t,n){return t.statements!==n?K(Nn(n),t):t}function Xc(t){let n=I(269);return n.clauses=he(t),n.transformFlags|=Ee(n.clauses),n.locals=void 0,n.nextContainer=void 0,n}function cp(t,n){return t.clauses!==n?K(Xc(n),t):t}function Qc(t){let n=oe(270);return n.name=et(t),n.transformFlags|=ci(n.name)|1,n.modifiers=void 0,n.jsDoc=void 0,n}function Zc(t,n){return t.name!==n?up(Qc(n),t):t}function up(t,n){return t!==n&&(t.modifiers=n.modifiers),K(t,n)}function Yc(t,n,a,s){let f=oe(271);return f.modifiers=De(t),f.name=et(a),f.isTypeOnly=n,f.moduleReference=s,f.transformFlags|=Ee(f.modifiers)|ci(f.name)|q(f.moduleReference),_2(f.moduleReference)||(f.transformFlags|=1),f.transformFlags&=-67108865,f.jsDoc=void 0,f}function eu(t,n,a,s,f){return t.modifiers!==n||t.isTypeOnly!==a||t.name!==s||t.moduleReference!==f?K(Yc(n,a,s,f),t):t}function tu(t,n,a,s){let f=I(272);return f.modifiers=De(t),f.importClause=n,f.moduleSpecifier=a,f.attributes=f.assertClause=s,f.transformFlags|=q(f.importClause)|q(f.moduleSpecifier),f.transformFlags&=-67108865,f.jsDoc=void 0,f}function ru(t,n,a,s,f){return t.modifiers!==n||t.importClause!==a||t.moduleSpecifier!==s||t.attributes!==f?K(tu(n,a,s,f),t):t}function nu(t,n,a){let s=oe(273);return s.isTypeOnly=t,s.name=n,s.namedBindings=a,s.transformFlags|=q(s.name)|q(s.namedBindings),t&&(s.transformFlags|=1),s.transformFlags&=-67108865,s}function au(t,n,a,s){return t.isTypeOnly!==n||t.name!==a||t.namedBindings!==s?K(nu(n,a,s),t):t}function Ro(t,n){let a=I(300);return a.elements=he(t),a.multiLine=n,a.token=132,a.transformFlags|=4,a}function lp(t,n,a){return t.elements!==n||t.multiLine!==a?K(Ro(n,a),t):t}function ja(t,n){let a=I(301);return a.name=t,a.value=n,a.transformFlags|=4,a}function iu(t,n,a){return t.name!==n||t.value!==a?K(ja(n,a),t):t}function zo(t,n){let a=I(302);return a.assertClause=t,a.multiLine=n,a}function ou(t,n,a){return t.assertClause!==n||t.multiLine!==a?K(zo(n,a),t):t}function su(t,n,a){let s=I(300);return s.token=a??118,s.elements=he(t),s.multiLine=n,s.transformFlags|=4,s}function $o(t,n,a){return t.elements!==n||t.multiLine!==a?K(su(n,a,t.token),t):t}function cu(t,n){let a=I(301);return a.name=t,a.value=n,a.transformFlags|=4,a}function uu(t,n,a){return t.name!==n||t.value!==a?K(cu(n,a),t):t}function lu(t){let n=oe(274);return n.name=t,n.transformFlags|=q(n.name),n.transformFlags&=-67108865,n}function dp(t,n){return t.name!==n?K(lu(n),t):t}function du(t){let n=oe(280);return n.name=t,n.transformFlags|=q(n.name)|32,n.transformFlags&=-67108865,n}function pp(t,n){return t.name!==n?K(du(n),t):t}function pu(t){let n=I(275);return n.elements=he(t),n.transformFlags|=Ee(n.elements),n.transformFlags&=-67108865,n}function fu(t,n){return t.elements!==n?K(pu(n),t):t}function wn(t,n,a){let s=oe(276);return s.isTypeOnly=t,s.propertyName=n,s.name=a,s.transformFlags|=q(s.propertyName)|q(s.name),s.transformFlags&=-67108865,s}function fp(t,n,a,s){return t.isTypeOnly!==n||t.propertyName!==a||t.name!==s?K(wn(n,a,s),t):t}function Ni(t,n,a){let s=oe(277);return s.modifiers=De(t),s.isExportEquals=n,s.expression=n?u().parenthesizeRightSideOfBinary(64,void 0,a):u().parenthesizeExpressionOfExportDefault(a),s.transformFlags|=Ee(s.modifiers)|q(s.expression),s.transformFlags&=-67108865,s.jsDoc=void 0,s}function qa(t,n,a){return t.modifiers!==n||t.expression!==a?K(Ni(n,t.isExportEquals,a),t):t}function wi(t,n,a,s,f){let x=oe(278);return x.modifiers=De(t),x.isTypeOnly=n,x.exportClause=a,x.moduleSpecifier=s,x.attributes=x.assertClause=f,x.transformFlags|=Ee(x.modifiers)|q(x.exportClause)|q(x.moduleSpecifier),x.transformFlags&=-67108865,x.jsDoc=void 0,x}function mu(t,n,a,s,f,x){return t.modifiers!==n||t.isTypeOnly!==a||t.exportClause!==s||t.moduleSpecifier!==f||t.attributes!==x?Ra(wi(n,a,s,f,x),t):t}function Ra(t,n){return t!==n&&t.modifiers===n.modifiers&&(t.modifiers=n.modifiers),K(t,n)}function Go(t){let n=I(279);return n.elements=he(t),n.transformFlags|=Ee(n.elements),n.transformFlags&=-67108865,n}function mp(t,n){return t.elements!==n?K(Go(n),t):t}function Ai(t,n,a){let s=I(281);return s.isTypeOnly=t,s.propertyName=et(n),s.name=et(a),s.transformFlags|=q(s.propertyName)|q(s.name),s.transformFlags&=-67108865,s.jsDoc=void 0,s}function hp(t,n,a,s){return t.isTypeOnly!==n||t.propertyName!==a||t.name!==s?K(Ai(n,a,s),t):t}function _p(){let t=oe(282);return t.jsDoc=void 0,t}function Ho(t){let n=I(283);return n.expression=t,n.transformFlags|=q(n.expression),n.transformFlags&=-67108865,n}function gp(t,n){return t.expression!==n?K(Ho(n),t):t}function hu(t){return I(t)}function _u(t,n,a=false){let s=Wo(t,a?n&&u().parenthesizeNonArrayTypeOfPostfixType(n):n);return s.postfix=a,s}function Wo(t,n){let a=I(t);return a.type=n,a}function yp(t,n,a){return n.type!==a?K(_u(t,a,n.postfix),n):n}function Tp(t,n,a){return n.type!==a?K(Wo(t,a),n):n}function gu(t,n){let a=oe(317);return a.parameters=De(t),a.type=n,a.transformFlags=Ee(a.parameters)|(a.type?1:0),a.jsDoc=void 0,a.locals=void 0,a.nextContainer=void 0,a.typeArguments=void 0,a}function xp(t,n,a){return t.parameters!==n||t.type!==a?K(gu(n,a),t):t}function yu(t,n=false){let a=oe(322);return a.jsDocPropertyTags=De(t),a.isArrayType=n,a}function kp(t,n,a){return t.jsDocPropertyTags!==n||t.isArrayType!==a?K(yu(n,a),t):t}function Tu(t){let n=I(309);return n.type=t,n}function Vo(t,n){return t.type!==n?K(Tu(n),t):t}function xu(t,n,a){let s=oe(323);return s.typeParameters=De(t),s.parameters=he(n),s.type=a,s.jsDoc=void 0,s.locals=void 0,s.nextContainer=void 0,s}function Sp(t,n,a,s){return t.typeParameters!==n||t.parameters!==a||t.type!==s?K(xu(n,a,s),t):t}function rr(t){let n=Js(t.kind);return t.tagName.escapedText===ei(n)?t.tagName:Re(n)}function Cr(t,n,a){let s=I(t);return s.tagName=n,s.comment=a,s}function $n(t,n,a){let s=oe(t);return s.tagName=n,s.comment=a,s}function Xo(t,n,a,s){let f=Cr(345,t??Re("template"),s);return f.constraint=n,f.typeParameters=he(a),f}function ku(t,n=rr(t),a,s,f){return t.tagName!==n||t.constraint!==a||t.typeParameters!==s||t.comment!==f?K(Xo(n,a,s,f),t):t}function Di(t,n,a,s){let f=$n(346,t??Re("typedef"),s);return f.typeExpression=n,f.fullName=a,f.name=E2(a),f.locals=void 0,f.nextContainer=void 0,f}function bp(t,n=rr(t),a,s,f){return t.tagName!==n||t.typeExpression!==a||t.fullName!==s||t.comment!==f?K(Di(n,a,s,f),t):t}function Qo(t,n,a,s,f,x){let R=$n(341,t??Re("param"),x);return R.typeExpression=s,R.name=n,R.isNameFirst=!!f,R.isBracketed=a,R}function vp(t,n=rr(t),a,s,f,x,R){return t.tagName!==n||t.name!==a||t.isBracketed!==s||t.typeExpression!==f||t.isNameFirst!==x||t.comment!==R?K(Qo(n,a,s,f,x,R),t):t}function Su(t,n,a,s,f,x){let R=$n(348,t??Re("prop"),x);return R.typeExpression=s,R.name=n,R.isNameFirst=!!f,R.isBracketed=a,R}function bu(t,n=rr(t),a,s,f,x,R){return t.tagName!==n||t.name!==a||t.isBracketed!==s||t.typeExpression!==f||t.isNameFirst!==x||t.comment!==R?K(Su(n,a,s,f,x,R),t):t}function vu(t,n,a,s){let f=$n(338,t??Re("callback"),s);return f.typeExpression=n,f.fullName=a,f.name=E2(a),f.locals=void 0,f.nextContainer=void 0,f}function Cu(t,n=rr(t),a,s,f){return t.tagName!==n||t.typeExpression!==a||t.fullName!==s||t.comment!==f?K(vu(n,a,s,f),t):t}function Eu(t,n,a){let s=Cr(339,t??Re("overload"),a);return s.typeExpression=n,s}function Zo(t,n=rr(t),a,s){return t.tagName!==n||t.typeExpression!==a||t.comment!==s?K(Eu(n,a,s),t):t}function Yo(t,n,a){let s=Cr(328,t??Re("augments"),a);return s.class=n,s}function za(t,n=rr(t),a,s){return t.tagName!==n||t.class!==a||t.comment!==s?K(Yo(n,a,s),t):t}function Nu(t,n,a){let s=Cr(329,t??Re("implements"),a);return s.class=n,s}function Gn(t,n,a){let s=Cr(347,t??Re("see"),a);return s.name=n,s}function Pi(t,n,a,s){return t.tagName!==n||t.name!==a||t.comment!==s?K(Gn(n,a,s),t):t}function wu(t){let n=I(310);return n.name=t,n}function Cp(t,n){return t.name!==n?K(wu(n),t):t}function Au(t,n){let a=I(311);return a.left=t,a.right=n,a.transformFlags|=q(a.left)|q(a.right),a}function Ep(t,n,a){return t.left!==n||t.right!==a?K(Au(n,a),t):t}function Du(t,n){let a=I(324);return a.name=t,a.text=n,a}function Pu(t,n,a){return t.name!==n?K(Du(n,a),t):t}function Fu(t,n){let a=I(325);return a.name=t,a.text=n,a}function Np(t,n,a){return t.name!==n?K(Fu(n,a),t):t}function Iu(t,n){let a=I(326);return a.name=t,a.text=n,a}function wp(t,n,a){return t.name!==n?K(Iu(n,a),t):t}function Ap(t,n=rr(t),a,s){return t.tagName!==n||t.class!==a||t.comment!==s?K(Nu(n,a,s),t):t}function Lu(t,n,a){return Cr(t,n??Re(Js(t)),a)}function Dp(t,n,a=rr(n),s){return n.tagName!==a||n.comment!==s?K(Lu(t,a,s),n):n}function Ju(t,n,a,s){let f=Cr(t,n??Re(Js(t)),s);return f.typeExpression=a,f}function Pp(t,n,a=rr(n),s,f){return n.tagName!==a||n.typeExpression!==s||n.comment!==f?K(Ju(t,a,s,f),n):n}function Ou(t,n){return Cr(327,t,n)}function Fp(t,n,a){return t.tagName!==n||t.comment!==a?K(Ou(n,a),t):t}function Mu(t,n,a){let s=$n(340,t??Re(Js(340)),a);return s.typeExpression=n,s.locals=void 0,s.nextContainer=void 0,s}function es(t,n=rr(t),a,s){return t.tagName!==n||t.typeExpression!==a||t.comment!==s?K(Mu(n,a,s),t):t}function Uu(t,n,a,s,f){let x=Cr(351,t??Re("import"),f);return x.importClause=n,x.moduleSpecifier=a,x.attributes=s,x.comment=f,x}function Bu(t,n,a,s,f,x){return t.tagName!==n||t.comment!==x||t.importClause!==a||t.moduleSpecifier!==s||t.attributes!==f?K(Uu(n,a,s,f,x),t):t}function ts(t){let n=I(321);return n.text=t,n}function Ip(t,n){return t.text!==n?K(ts(n),t):t}function $a(t,n){let a=I(320);return a.comment=t,a.tags=De(n),a}function Ku(t,n,a){return t.comment!==n||t.tags!==a?K($a(n,a),t):t}function ju(t,n,a){let s=I(284);return s.openingElement=t,s.children=he(n),s.closingElement=a,s.transformFlags|=q(s.openingElement)|Ee(s.children)|q(s.closingElement)|2,s}function Lp(t,n,a,s){return t.openingElement!==n||t.children!==a||t.closingElement!==s?K(ju(n,a,s),t):t}function qu(t,n,a){let s=I(285);return s.tagName=t,s.typeArguments=De(n),s.attributes=a,s.transformFlags|=q(s.tagName)|Ee(s.typeArguments)|q(s.attributes)|2,s.typeArguments&&(s.transformFlags|=1),s}function rs(t,n,a,s){return t.tagName!==n||t.typeArguments!==a||t.attributes!==s?K(qu(n,a,s),t):t}function ns(t,n,a){let s=I(286);return s.tagName=t,s.typeArguments=De(n),s.attributes=a,s.transformFlags|=q(s.tagName)|Ee(s.typeArguments)|q(s.attributes)|2,n&&(s.transformFlags|=1),s}function Ru(t,n,a,s){return t.tagName!==n||t.typeArguments!==a||t.attributes!==s?K(ns(n,a,s),t):t}function Fi(t){let n=I(287);return n.tagName=t,n.transformFlags|=q(n.tagName)|2,n}function Xt(t,n){return t.tagName!==n?K(Fi(n),t):t}function as(t,n,a){let s=I(288);return s.openingFragment=t,s.children=he(n),s.closingFragment=a,s.transformFlags|=q(s.openingFragment)|Ee(s.children)|q(s.closingFragment)|2,s}function zu(t,n,a,s){return t.openingFragment!==n||t.children!==a||t.closingFragment!==s?K(as(n,a,s),t):t}function Ii(t,n){let a=I(12);return a.text=t,a.containsOnlyTriviaWhiteSpaces=!!n,a.transformFlags|=2,a}function $u(t,n,a){return t.text!==n||t.containsOnlyTriviaWhiteSpaces!==a?K(Ii(n,a),t):t}function Jp(){let t=I(289);return t.transformFlags|=2,t}function Op(){let t=I(290);return t.transformFlags|=2,t}function Gu(t,n){let a=oe(291);return a.name=t,a.initializer=n,a.transformFlags|=q(a.name)|q(a.initializer)|2,a}function Li(t,n,a){return t.name!==n||t.initializer!==a?K(Gu(n,a),t):t}function Hu(t){let n=oe(292);return n.properties=he(t),n.transformFlags|=Ee(n.properties)|2,n}function Mp(t,n){return t.properties!==n?K(Hu(n),t):t}function Wu(t){let n=I(293);return n.expression=t,n.transformFlags|=q(n.expression)|2,n}function Up(t,n){return t.expression!==n?K(Wu(n),t):t}function Ji(t,n){let a=I(294);return a.dotDotDotToken=t,a.expression=n,a.transformFlags|=q(a.dotDotDotToken)|q(a.expression)|2,a}function Ga(t,n){return t.expression!==n?K(Ji(t.dotDotDotToken,n),t):t}function Vu(t,n){let a=I(295);return a.namespace=t,a.name=n,a.transformFlags|=q(a.namespace)|q(a.name)|2,a}function is(t,n,a){return t.namespace!==n||t.name!==a?K(Vu(n,a),t):t}function os(t,n){let a=I(296);return a.expression=u().parenthesizeExpressionForDisallowedComma(t),a.statements=he(n),a.transformFlags|=q(a.expression)|Ee(a.statements),a.jsDoc=void 0,a}function Bp(t,n,a){return t.expression!==n||t.statements!==a?K(os(n,a),t):t}function fa(t){let n=I(297);return n.statements=he(t),n.transformFlags=Ee(n.statements),n}function Xu(t,n){return t.statements!==n?K(fa(n),t):t}function Qu(t,n){let a=I(298);switch(a.token=t,a.types=he(n),a.transformFlags|=Ee(a.types),t){case 96:a.transformFlags|=1024;break;case 119:a.transformFlags|=1;break;default:return U.assertNever(t)}return a}function Kp(t,n){return t.types!==n?K(Qu(t.token,n),t):t}function ss(t,n){let a=I(299);return a.variableDeclaration=An(t),a.block=n,a.transformFlags|=q(a.variableDeclaration)|q(a.block)|(t?0:64),a.locals=void 0,a.nextContainer=void 0,a}function Zu(t,n,a){return t.variableDeclaration!==n||t.block!==a?K(ss(n,a),t):t}function Oi(t,n){let a=oe(303);return a.name=et(t),a.initializer=u().parenthesizeExpressionForDisallowedComma(n),a.transformFlags|=Pr(a.name)|q(a.initializer),a.modifiers=void 0,a.questionToken=void 0,a.exclamationToken=void 0,a.jsDoc=void 0,a}function Hn(t,n,a){return t.name!==n||t.initializer!==a?jp(Oi(n,a),t):t}function jp(t,n){return t!==n&&(t.modifiers=n.modifiers,t.questionToken=n.questionToken,t.exclamationToken=n.exclamationToken),K(t,n)}function Yu(t,n){let a=oe(304);return a.name=et(t),a.objectAssignmentInitializer=n&&u().parenthesizeExpressionForDisallowedComma(n),a.transformFlags|=ci(a.name)|q(a.objectAssignmentInitializer)|1024,a.equalsToken=void 0,a.modifiers=void 0,a.questionToken=void 0,a.exclamationToken=void 0,a.jsDoc=void 0,a}function qp(t,n,a){return t.name!==n||t.objectAssignmentInitializer!==a?Rp(Yu(n,a),t):t}function Rp(t,n){return t!==n&&(t.modifiers=n.modifiers,t.questionToken=n.questionToken,t.exclamationToken=n.exclamationToken,t.equalsToken=n.equalsToken),K(t,n)}function cs(t){let n=oe(305);return n.expression=u().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=q(n.expression)|128|65536,n.jsDoc=void 0,n}function el(t,n){return t.expression!==n?K(cs(n),t):t}function Er(t,n){let a=oe(306);return a.name=et(t),a.initializer=n&&u().parenthesizeExpressionForDisallowedComma(n),a.transformFlags|=q(a.name)|q(a.initializer)|1,a.jsDoc=void 0,a}function tl(t,n,a){return t.name!==n||t.initializer!==a?K(Er(n,a),t):t}function zp(t,n,a){let s=r.createBaseSourceFileNode(307);return s.statements=he(t),s.endOfFileToken=n,s.flags|=a,s.text="",s.fileName="",s.path="",s.resolvedPath="",s.originalFileName="",s.languageVersion=1,s.languageVariant=0,s.scriptKind=0,s.isDeclarationFile=false,s.hasNoDefaultLib=false,s.transformFlags|=Ee(s.statements)|q(s.endOfFileToken),s.locals=void 0,s.nextContainer=void 0,s.endFlowNode=void 0,s.nodeCount=0,s.identifierCount=0,s.symbolCount=0,s.parseDiagnostics=void 0,s.bindDiagnostics=void 0,s.bindSuggestionDiagnostics=void 0,s.lineMap=void 0,s.externalModuleIndicator=void 0,s.setExternalModuleIndicator=void 0,s.pragmas=void 0,s.checkJsDirective=void 0,s.referencedFiles=void 0,s.typeReferenceDirectives=void 0,s.libReferenceDirectives=void 0,s.amdDependencies=void 0,s.commentDirectives=void 0,s.identifiers=void 0,s.packageJsonLocations=void 0,s.packageJsonScope=void 0,s.imports=void 0,s.moduleAugmentations=void 0,s.ambientModuleNames=void 0,s.classifiableNames=void 0,s.impliedNodeFormat=void 0,s}function rl(t){let n=Object.create(t.redirectTarget);return Object.defineProperties(n,{id:{get(){return this.redirectInfo.redirectTarget.id},set(a){this.redirectInfo.redirectTarget.id=a;}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(a){this.redirectInfo.redirectTarget.symbol=a;}}}),n.redirectInfo=t,n}function $p(t){let n=rl(t.redirectInfo);return n.flags|=t.flags&-17,n.fileName=t.fileName,n.path=t.path,n.resolvedPath=t.resolvedPath,n.originalFileName=t.originalFileName,n.packageJsonLocations=t.packageJsonLocations,n.packageJsonScope=t.packageJsonScope,n.emitNode=void 0,n}function nl(t){let n=r.createBaseSourceFileNode(307);n.flags|=t.flags&-17;for(let a in t)if(!(fn(n,a)||!fn(t,a))){if(a==="emitNode"){n.emitNode=void 0;continue}n[a]=t[a];}return n}function Mi(t){let n=t.redirectInfo?$p(t):nl(t);return i(n,t),n}function Gp(t,n,a,s,f,x,R){let fe=Mi(t);return fe.statements=he(n),fe.isDeclarationFile=a,fe.referencedFiles=s,fe.typeReferenceDirectives=f,fe.hasNoDefaultLib=x,fe.libReferenceDirectives=R,fe.transformFlags=Ee(fe.statements)|q(fe.endOfFileToken),fe}function Hp(t,n,a=t.isDeclarationFile,s=t.referencedFiles,f=t.typeReferenceDirectives,x=t.hasNoDefaultLib,R=t.libReferenceDirectives){return t.statements!==n||t.isDeclarationFile!==a||t.referencedFiles!==s||t.typeReferenceDirectives!==f||t.hasNoDefaultLib!==x||t.libReferenceDirectives!==R?K(Gp(t,n,a,s,f,x,R),t):t}function us(t){let n=I(308);return n.sourceFiles=t,n.syntheticFileReferences=void 0,n.syntheticTypeReferences=void 0,n.syntheticLibReferences=void 0,n.hasNoDefaultLib=void 0,n}function Wp(t,n){return t.sourceFiles!==n?K(us(n),t):t}function Vp(t,n=false,a){let s=I(237);return s.type=t,s.isSpread=n,s.tupleNameSource=a,s}function Ui(t){let n=I(352);return n._children=t,n}function al(t){let n=I(353);return n.original=t,or(n,t),n}function il(t,n){let a=I(355);return a.expression=t,a.original=n,a.transformFlags|=q(a.expression)|1,or(a,n),a}function ol(t,n){return t.expression!==n?K(il(n,t.original),t):t}function Xp(){return I(354)}function Qp(t){if(oi(t)&&!Cs(t)&&!t.original&&!t.emitNode&&!t.id){if(_y(t))return t.elements;if(li(t)&&Lg(t.operatorToken))return [t.left,t.right]}return t}function ls(t){let n=I(356);return n.elements=he(Wm(t,Qp)),n.transformFlags|=Ee(n.elements),n}function sl(t,n){return t.elements!==n?K(ls(n),t):t}function ds(t,n){let a=I(357);return a.expression=t,a.thisArg=n,a.transformFlags|=q(a.expression)|q(a.thisArg),a}function cl(t,n,a){return t.expression!==n||t.thisArg!==a?K(ds(n,a),t):t}function Zp(t){let n=kr(t.escapedText);return n.flags|=t.flags&-17,n.transformFlags=t.transformFlags,i(n,t),setIdentifierAutoGenerate(n,{...t.emitNode.autoGenerate}),n}function Yp(t){let n=kr(t.escapedText);n.flags|=t.flags&-17,n.jsDoc=t.jsDoc,n.flowNode=t.flowNode,n.symbol=t.symbol,n.transformFlags=t.transformFlags,i(n,t);let a=getIdentifierTypeArguments(t);return a&&setIdentifierTypeArguments(n,a),n}function ul(t){let n=Ir(t.escapedText);return n.flags|=t.flags&-17,n.transformFlags=t.transformFlags,i(n,t),setIdentifierAutoGenerate(n,{...t.emitNode.autoGenerate}),n}function ll(t){let n=Ir(t.escapedText);return n.flags|=t.flags&-17,n.transformFlags=t.transformFlags,i(n,t),n}function ps(t){if(t===void 0)return t;if(Cy(t))return Mi(t);if(ti(t))return Zp(t);if(tt(t))return Yp(t);if(xf(t))return ul(t);if(Ca(t))return ll(t);let n=zl(t.kind)?r.createBaseNode(t.kind):r.createBaseTokenNode(t.kind);n.flags|=t.flags&-17,n.transformFlags=t.transformFlags,i(n,t);for(let a in t)fn(n,a)||!fn(t,a)||(n[a]=t[a]);return n}function e1(t,n,a){return Ua(vo(void 0,void 0,void 0,void 0,n?[n]:[],void 0,zn(t,true)),void 0,a?[a]:[])}function t1(t,n,a){return Ua(Co(void 0,void 0,n?[n]:[],void 0,void 0,zn(t,true)),void 0,a?[a]:[])}function ma(){return Eo(z("0"))}function dl(t){return Ni(void 0,false,t)}function r1(t){return wi(void 0,false,Go([Ai(false,void 0,t)]))}function fs(t,n){return n==="null"?_e.createStrictEquality(t,Lt()):n==="undefined"?_e.createStrictEquality(t,ma()):_e.createStrictEquality(xi(t),ft(n))}function n1(t,n){return n==="null"?_e.createStrictInequality(t,Lt()):n==="undefined"?_e.createStrictInequality(t,ma()):_e.createStrictInequality(xi(t),ft(n))}function Wn(t,n,a){return gf(t)?ko(Oa(t,void 0,n),void 0,void 0,a):Ua(cn(t,n),void 0,a)}function a1(t,n,a){return Wn(t,"bind",[n,...a])}function i1(t,n,a){return Wn(t,"call",[n,...a])}function o1(t,n,a){return Wn(t,"apply",[n,a])}function Ha(t,n,a){return Wn(Re(t),n,a)}function Wa(t,n){return Wn(t,"slice",n===void 0?[]:[dn(n)])}function s1(t,n){return Wn(t,"concat",n)}function ms(t,n,a){return Ha("Object","defineProperty",[t,dn(n),a])}function ha(t,n){return Ha("Object","getOwnPropertyDescriptor",[t,dn(n)])}function pl(t,n,a){return Ha("Reflect","get",a?[t,n,a]:[t,n])}function c1(t,n,a,s){return Ha("Reflect","set",s?[t,n,a,s]:[t,n,a])}function _a(t,n,a){return a?(t.push(Oi(n,a)),true):false}function fl(t,n){let a=[];_a(a,"enumerable",dn(t.enumerable)),_a(a,"configurable",dn(t.configurable));let s=_a(a,"writable",dn(t.writable));s=_a(a,"value",t.value)||s;let f=_a(a,"get",t.get);return f=_a(a,"set",t.set)||f,U.assert(!(s&&f),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ja(a,!n)}function u1(t,n){switch(t.kind){case 217:return ac(t,n);case 216:return nc(t,t.type,n);case 234:return bi(t,n,t.type);case 238:return Sc(t,n,t.type);case 235:return kc(t,n);case 233:return Tc(t,n,t.typeArguments);case 355:return ol(t,n)}}function l1(t){return md(t)&&oi(t)&&oi(getSourceMapRange(t))&&oi(getCommentRange(t))&&!qt(getSyntheticLeadingComments(t))&&!qt(getSyntheticTrailingComments(t))}function ml(t,n,a=31){return t&&C2(t,a)&&!l1(t)?u1(t,ml(t.expression,n)):n}function hs(t,n,a){if(!n)return t;let s=Kc(n,n.label,gy(n.statement)?hs(t,n.statement):t);return a&&a(n),s}function _s(t,n){let a=Zl(t);switch(a.kind){case 80:return n;case 110:case 9:case 10:case 11:return  false;case 209:return a.elements.length!==0;case 210:return a.properties.length>0;default:return  true}}function hl(t,n,a,s=false){let f=yd(t,31),x,R;return Lf(f)?(x=Bt(),R=f):ld(f)?(x=Bt(),R=a!==void 0&&a<2?or(Re("_super"),f):f):ai(f)&8192?(x=ma(),R=u().parenthesizeLeftSideOfAccess(f,false)):ra(f)?_s(f.expression,s)?(x=rn(n),R=cn(or(_e.createAssignment(x,f.expression),f.expression),f.name),or(R,f)):(x=f.expression,R=f):so(f)?_s(f.expression,s)?(x=rn(n),R=Ma(or(_e.createAssignment(x,f.expression),f.expression),f.argumentExpression),or(R,f)):(x=f.expression,R=f):(x=ma(),R=u().parenthesizeLeftSideOfAccess(t,false)),{target:R,thisArg:x}}function o(t,n){return cn(bo(Ja([B(void 0,"value",[Tn(void 0,void 0,t,void 0,void 0,void 0)],zn([Ka(n)]))])),"value")}function l(t){return t.length>10?ls(t):a0(t,_e.createComma)}function m(t,n,a,s=0,f){let x=f?t&&jl(t):ff(t);if(x&&tt(x)&&!ti(x)){let R=sd(or(ps(x),x),x.parent);return s|=ai(x),a||(s|=96),n||(s|=3072),s&&setEmitFlags(R,s),R}return Br(t)}function _(t,n,a){return m(t,n,a,98304)}function k(t,n,a,s){return m(t,n,a,32768,s)}function w(t,n,a){return m(t,n,a,16384)}function X(t,n,a){return m(t,n,a)}function ce(t,n,a,s){let f=cn(t,oi(n)?n:ps(n));or(f,n);let x=0;return s||(x|=96),a||(x|=3072),x&&setEmitFlags(f,x),f}function te(t,n,a,s){return t&&no(n,32)?ce(t,m(n),a,s):w(n,a,s)}function Y(t,n,a,s){let f=Je(t,n,0,a);return we(t,n,f,s)}function pe(t){return Os(t.expression)&&t.expression.text==="use strict"}function Be(){return Hy(Ka(ft("use strict")))}function Je(t,n,a=0,s){U.assert(n.length===0,"Prologue directives should be at the first statement in the target statements array");let f=false,x=t.length;for(;a<x;){let R=t[a];if(Ds(R))pe(R)&&(f=true),n.push(R);else break;a++;}return s&&!f&&n.push(Be()),a}function we(t,n,a,s,f=l0){let x=t.length;for(;a!==void 0&&a<x;){let R=t[a];if(ai(R)&2097152&&f(R))hr(n,s?visitNode(R,s,Wh):R);else break;a++;}return a}function nr(t){return $y(t)?t:or(he([Be(),...t]),t)}function fr(t){return U.assert(Tl(t,Xh),"Cannot lift nodes to a Block."),t0(t)||zn(t)}function Qt(t,n,a){let s=a;for(;s<t.length&&n(t[s]);)s++;return s}function ln(t,n){if(!qt(n))return t;let a=Qt(t,Ds,0),s=Qt(t,Ff,a),f=Qt(t,If,s),x=Qt(n,Ds,0),R=Qt(n,Ff,x),fe=Qt(n,If,R),Oe=Qt(n,Hl,fe);U.assert(Oe===n.length,"Expected declarations to be valid standard or custom prologues");let Zt=Zn(t)?t.slice():t;if(Oe>fe&&Zt.splice(f,0,...n.slice(fe,Oe)),fe>R&&Zt.splice(s,0,...n.slice(R,fe)),R>x&&Zt.splice(a,0,...n.slice(x,R)),x>0)if(a===0)Zt.splice(0,0,...n.slice(0,x));else {let Nr=new Map;for(let Vr=0;Vr<a;Vr++){let Ki=t[Vr];Nr.set(Ki.expression.text,true);}for(let Vr=x-1;Vr>=0;Vr--){let Ki=n[Vr];Nr.has(Ki.expression.text)||Zt.unshift(Ki);}}return Zn(t)?or(he(Zt,t.hasTrailingComma),t):t}function Or(t,n){let a;return typeof n=="number"?a=Sr(n):a=n,Zf(t)?an(t,a,t.name,t.constraint,t.default):Us(t)?xn(t,a,t.dotDotDotToken,t.name,t.questionToken,t.type,t.initializer):n2(t)?He(t,a,t.typeParameters,t.parameters,t.type):Ug(t)?Rr(t,a,t.name,t.questionToken,t.type):Bs(t)?O(t,a,t.name,t.questionToken??t.exclamationToken,t.type,t.initializer):Bg(t)?me(t,a,t.name,t.questionToken,t.typeParameters,t.parameters,t.type):pd(t)?Xe(t,a,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body):Yf(t)?oa(t,a,t.parameters,t.body):fd(t)?zr(t,a,t.name,t.parameters,t.type,t.body):Ks(t)?Q(t,a,t.name,t.parameters,t.body):e2(t)?Ze(t,a,t.parameters,t.type):o2(t)?ic(t,a,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):s2(t)?oc(t,a,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,t.body):hd(t)?Ao(t,a,t.name,t.typeParameters,t.heritageClauses,t.members):qs(t)?Cc(t,a,t.declarationList):l2(t)?jo(t,a,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):Rs(t)?Ei(t,a,t.name,t.typeParameters,t.heritageClauses,t.members):_d(t)?Wc(t,a,t.name,t.typeParameters,t.heritageClauses,t.members):d2(t)?Cn(t,a,t.name,t.typeParameters,t.type):Ty(t)?En(t,a,t.name,t.members):co(t)?Et(t,a,t.name,t.body):p2(t)?eu(t,a,t.isTypeOnly,t.name,t.moduleReference):f2(t)?ru(t,a,t.importClause,t.moduleSpecifier,t.attributes):m2(t)?qa(t,a,t.expression):h2(t)?mu(t,a,t.isTypeOnly,t.exportClause,t.moduleSpecifier,t.attributes):U.assertNever(t)}function Vn(t,n){return Us(t)?xn(t,n,t.dotDotDotToken,t.name,t.questionToken,t.type,t.initializer):Bs(t)?O(t,n,t.name,t.questionToken??t.exclamationToken,t.type,t.initializer):pd(t)?Xe(t,n,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body):fd(t)?zr(t,n,t.name,t.parameters,t.type,t.body):Ks(t)?Q(t,n,t.name,t.parameters,t.body):hd(t)?Ao(t,n,t.name,t.typeParameters,t.heritageClauses,t.members):Rs(t)?Ei(t,n,t.name,t.typeParameters,t.heritageClauses,t.members):U.assertNever(t)}function d1(t,n){switch(t.kind){case 177:return zr(t,t.modifiers,n,t.parameters,t.type,t.body);case 178:return Q(t,t.modifiers,n,t.parameters,t.body);case 174:return Xe(t,t.modifiers,t.asteriskToken,n,t.questionToken,t.typeParameters,t.parameters,t.type,t.body);case 173:return me(t,t.modifiers,n,t.questionToken,t.typeParameters,t.parameters,t.type);case 172:return O(t,t.modifiers,n,t.questionToken??t.exclamationToken,t.type,t.initializer);case 171:return Rr(t,t.modifiers,n,t.questionToken,t.type);case 303:return Hn(t,n,t.initializer)}}function De(t){return t?he(t):void 0}function et(t){return typeof t=="string"?Re(t):t}function dn(t){return typeof t=="string"?ft(t):typeof t=="number"?z(t):typeof t=="boolean"?t?lt():nn():t}function Bi(t){return t&&u().parenthesizeExpressionForDisallowedComma(t)}function _l(t){return typeof t=="number"?ut(t):t}function Pt(t){return t&&ky(t)?or(i(Ec(),t),t):t}function An(t){return typeof t=="string"||t&&!u2(t)?Ci(t,void 0,void 0,void 0):t}function K(t,n){return t!==n&&(i(t,n),or(t,n)),t}}function Js(e){switch(e){case 344:return "type";case 342:return "returns";case 343:return "this";case 340:return "enum";case 330:return "author";case 332:return "class";case 333:return "public";case 334:return "private";case 335:return "protected";case 336:return "readonly";case 337:return "override";case 345:return "template";case 346:return "typedef";case 341:return "param";case 348:return "prop";case 338:return "callback";case 339:return "overload";case 328:return "augments";case 329:return "implements";case 351:return "import";default:return U.fail(`Unsupported kind: ${U.formatSyntaxKind(e)}`)}}var Tr,Hf={};function Cg(e,r){switch(Tr||(Tr=Ul(99,false,0)),e){case 15:Tr.setText("`"+r+"`");break;case 16:Tr.setText("`"+r+"${");break;case 17:Tr.setText("}"+r+"${");break;case 18:Tr.setText("}"+r+"`");break}let i=Tr.scan();if(i===20&&(i=Tr.reScanTemplateToken(false)),Tr.isUnterminated())return Tr.setText(void 0),Hf;let u;switch(i){case 15:case 16:case 17:case 18:u=Tr.getTokenValue();break}return u===void 0||Tr.scan()!==1?(Tr.setText(void 0),Hf):(Tr.setText(void 0),u)}function Pr(e){return e&&tt(e)?ci(e):q(e)}function ci(e){return q(e)&-67108865}function Eg(e,r){return r|e.transformFlags&134234112}function q(e){if(!e)return 0;let r=e.transformFlags&~Ng(e.kind);return uh(e)&&kf(e.name)?Eg(e.name,r):r}function Ee(e){return e?e.transformFlags:0}function Wf(e){let r=0;for(let i of e)r|=q(i);e.transformFlags=r;}function Ng(e){if(e>=182&&e<=205)return  -2;switch(e){case 213:case 214:case 209:return  -2147450880;case 267:return  -1941676032;case 169:return  -2147483648;case 219:return  -2072174592;case 218:case 262:return  -1937940480;case 261:return  -2146893824;case 263:case 231:return  -2147344384;case 176:return  -1937948672;case 172:return  -2013249536;case 174:case 177:case 178:return  -2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return  -2;case 210:return  -2147278848;case 299:return  -2147418112;case 206:case 207:return  -2147450880;case 216:case 238:case 234:case 355:case 217:case 108:return  -2147483648;case 211:case 212:return  -2147483648;default:return  -2147483648}}var io=Sg();function oo(e){return e.flags|=16,e}var wg={createBaseSourceFileNode:e=>oo(io.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>oo(io.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>oo(io.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>oo(io.createBaseTokenNode(e)),createBaseNode:e=>oo(io.createBaseNode(e))};ud(4,wg);function Ag(e,r){if(e.original!==r&&(e.original=r,r)){let i=r.emitNode;i&&(e.emitNode=Dg(i,e.emitNode));}return e}function Dg(e,r){let{flags:i,internalFlags:u,leadingComments:h,trailingComments:y,commentRange:A,sourceMapRange:P,tokenSourceMapRanges:c,constantValue:Z,helpers:d,startsOnNewLine:v,snippetElement:T,classThis:b,assignedName:J}=e;if(r||(r={}),i&&(r.flags=i),u&&(r.internalFlags=u&-9),h&&(r.leadingComments=_r(h.slice(),r.leadingComments)),y&&(r.trailingComments=_r(y.slice(),r.trailingComments)),A&&(r.commentRange=A),P&&(r.sourceMapRange=P),c&&(r.tokenSourceMapRanges=Pg(c,r.tokenSourceMapRanges)),Z!==void 0&&(r.constantValue=Z),d)for(let ie of d)r.helpers=Zm(r.helpers,ie);return v!==void 0&&(r.startsOnNewLine=v),T!==void 0&&(r.snippetElement=T),b&&(r.classThis=b),J&&(r.assignedName=J),r}function Pg(e,r){r||(r=[]);for(let i in e)r[i]=e[i];return r}function ui(e){return e.kind===9}function Fg(e){return e.kind===10}function Os(e){return e.kind===11}function Ig(e){return e.kind===15}function Lg(e){return e.kind===28}function Vf(e){return e.kind===54}function Xf(e){return e.kind===58}function tt(e){return e.kind===80}function Ca(e){return e.kind===81}function Jg(e){return e.kind===95}function Ms(e){return e.kind===134}function ld(e){return e.kind===108}function Og(e){return e.kind===102}function Mg(e){return e.kind===166}function Qf(e){return e.kind===167}function Zf(e){return e.kind===168}function Us(e){return e.kind===169}function dd(e){return e.kind===170}function Ug(e){return e.kind===171}function Bs(e){return e.kind===172}function Bg(e){return e.kind===173}function pd(e){return e.kind===174}function Yf(e){return e.kind===176}function fd(e){return e.kind===177}function Ks(e){return e.kind===178}function Kg(e){return e.kind===179}function jg(e){return e.kind===180}function e2(e){return e.kind===181}function qg(e){return e.kind===182}function t2(e){return e.kind===183}function r2(e){return e.kind===184}function n2(e){return e.kind===185}function Rg(e){return e.kind===186}function zg(e){return e.kind===187}function $g(e){return e.kind===188}function Gg(e){return e.kind===189}function Hg(e){return e.kind===202}function Wg(e){return e.kind===190}function Vg(e){return e.kind===191}function Xg(e){return e.kind===192}function Qg(e){return e.kind===193}function Zg(e){return e.kind===194}function Yg(e){return e.kind===195}function ey(e){return e.kind===196}function ty(e){return e.kind===197}function ry(e){return e.kind===198}function ny(e){return e.kind===199}function ay(e){return e.kind===200}function iy(e){return e.kind===201}function oy(e){return e.kind===205}function sy(e){return e.kind===208}function cy(e){return e.kind===209}function a2(e){return e.kind===210}function ra(e){return e.kind===211}function so(e){return e.kind===212}function i2(e){return e.kind===213}function uy(e){return e.kind===215}function md(e){return e.kind===217}function o2(e){return e.kind===218}function s2(e){return e.kind===219}function ly(e){return e.kind===222}function dy(e){return e.kind===224}function li(e){return e.kind===226}function py(e){return e.kind===230}function hd(e){return e.kind===231}function fy(e){return e.kind===232}function my(e){return e.kind===233}function js(e){return e.kind===235}function hy(e){return e.kind===236}function _y(e){return e.kind===356}function qs(e){return e.kind===243}function c2(e){return e.kind===244}function gy(e){return e.kind===256}function u2(e){return e.kind===260}function yy(e){return e.kind===261}function l2(e){return e.kind===262}function Rs(e){return e.kind===263}function _d(e){return e.kind===264}function d2(e){return e.kind===265}function Ty(e){return e.kind===266}function co(e){return e.kind===267}function p2(e){return e.kind===271}function f2(e){return e.kind===272}function m2(e){return e.kind===277}function h2(e){return e.kind===278}function xy(e){return e.kind===279}function ky(e){return e.kind===353}function _2(e){return e.kind===283}function g2(e){return e.kind===286}function Sy(e){return e.kind===289}function y2(e){return e.kind===295}function by(e){return e.kind===297}function vy(e){return e.kind===303}function Cy(e){return e.kind===307}function Ey(e){return e.kind===309}function Ny(e){return e.kind===314}function wy(e){return e.kind===317}function T2(e){return e.kind===320}function Ay(e){return e.kind===322}function x2(e){return e.kind===323}function Dy(e){return e.kind===328}function Py(e){return e.kind===333}function Fy(e){return e.kind===334}function Iy(e){return e.kind===335}function Ly(e){return e.kind===336}function Jy(e){return e.kind===337}function Oy(e){return e.kind===339}function My(e){return e.kind===331}function k2(e){return e.kind===341}function Uy(e){return e.kind===342}function gd(e){return e.kind===344}function By(e){return e.kind===345}function Ky(e){return e.kind===329}function jy(e){return e.kind===350}var Ea=new WeakMap;function S2(e,r){var i;let u=e.kind;return zl(u)?u===352?e._children:(i=Ea.get(r))==null?void 0:i.get(e):vt}function qy(e,r,i){e.kind===352&&U.fail("Should not need to re-set the children of a SyntaxList.");let u=Ea.get(r);return u===void 0&&(u=new WeakMap,Ea.set(r,u)),u.set(e,i),i}function b2(e,r){var i;e.kind===352&&U.fail("Did not expect to unset the children of a SyntaxList."),(i=Ea.get(r))==null||i.delete(e);}function Ry(e,r){let i=Ea.get(e);i!==void 0&&(Ea.delete(e),Ea.set(r,i));}function v2(e){return (ai(e)&32768)!==0}function zy(e){return Os(e.expression)&&e.expression.text==="use strict"}function $y(e){for(let r of e)if(Ds(r)){if(zy(r))return r}else break}function Gy(e){return md(e)&&ii(e)&&!!Ch(e)}function C2(e,r=31){switch(e.kind){case 217:return r&-2147483648&&Gy(e)?false:(r&1)!==0;case 216:case 234:case 238:return (r&2)!==0;case 233:return (r&16)!==0;case 235:return (r&4)!==0;case 355:return (r&8)!==0}return  false}function yd(e,r=31){for(;C2(e,r);)e=e.expression;return e}function Hy(e){return setStartsOnNewLine(e,true)}function uo(e){if(Rh(e))return e.name;if(Bh(e)){switch(e.kind){case 303:return uo(e.initializer);case 304:return e.name;case 305:return uo(e.expression)}return}return Fs(e,true)?uo(e.left):py(e)?uo(e.expression):e}function Wy(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function E2(e){if(e){let r=e;for(;;){if(tt(r)||!r.body)return tt(r)?r:r.name;r=r.body;}}}var N2;(e=>{function r(d,v,T,b,J,ie,ke){let _e=v>0?J[v-1]:void 0;return U.assertEqual(T[v],r),J[v]=d.onEnter(b[v],_e,ke),T[v]=P(d,r),v}e.enter=r;function i(d,v,T,b,J,ie,ke){U.assertEqual(T[v],i),U.assertIsDefined(d.onLeft),T[v]=P(d,i);let _e=d.onLeft(b[v].left,J[v],b[v]);return _e?(Z(v,b,_e),c(v,T,b,J,_e)):v}e.left=i;function u(d,v,T,b,J,ie,ke){return U.assertEqual(T[v],u),U.assertIsDefined(d.onOperator),T[v]=P(d,u),d.onOperator(b[v].operatorToken,J[v],b[v]),v}e.operator=u;function h(d,v,T,b,J,ie,ke){U.assertEqual(T[v],h),U.assertIsDefined(d.onRight),T[v]=P(d,h);let _e=d.onRight(b[v].right,J[v],b[v]);return _e?(Z(v,b,_e),c(v,T,b,J,_e)):v}e.right=h;function y(d,v,T,b,J,ie,ke){U.assertEqual(T[v],y),T[v]=P(d,y);let _e=d.onExit(b[v],J[v]);if(v>0){if(v--,d.foldState){let he=T[v]===y?"right":"left";J[v]=d.foldState(J[v],_e,he);}}else ie.value=_e;return v}e.exit=y;function A(d,v,T,b,J,ie,ke){return U.assertEqual(T[v],A),v}e.done=A;function P(d,v){switch(v){case r:if(d.onLeft)return i;case i:if(d.onOperator)return u;case u:if(d.onRight)return h;case h:return y;case y:return A;case A:return A;default:U.fail("Invalid state");}}e.nextState=P;function c(d,v,T,b,J){return d++,v[d]=r,T[d]=J,b[d]=void 0,d}function Z(d,v,T){if(U.shouldAssert(2))for(;d>=0;)U.assert(v[d]!==T,"Circular traversal detected."),d--;}})(N2||(N2={}));function w2(e,r){return typeof e=="object"?Td(false,e.prefix,e.node,e.suffix,r):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function Vy(e,r){return typeof e=="string"?e:Xy(e,U.checkDefined(r))}function Xy(e,r){return xf(e)?r(e).slice(1):ti(e)?r(e):Ca(e)?e.escapedText.slice(1):yr(e)}function Td(e,r,i,u,h){return r=w2(r,h),u=w2(u,h),i=Vy(i,h),`${e?"#":""}${r}${i}${u}`}function A2(e){if(e.transformFlags&65536)return  true;if(e.transformFlags&128)for(let r of Wy(e)){let i=uo(r);if(i&&qh(i)&&(i.transformFlags&65536||i.transformFlags&128&&A2(i)))return  true}return  false}function or(e,r){return r?ta(e,r.pos,r.end):e}function xd(e){let r=e.kind;return r===168||r===169||r===171||r===172||r===173||r===174||r===176||r===177||r===178||r===181||r===185||r===218||r===219||r===231||r===243||r===262||r===263||r===264||r===265||r===266||r===267||r===271||r===272||r===277||r===278}function Qy(e){let r=e.kind;return r===169||r===172||r===174||r===177||r===178||r===231||r===263}var D2,P2,F2,I2,L2,Zy={createBaseSourceFileNode:e=>new(L2||(L2=Ct.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(F2||(F2=Ct.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(I2||(I2=Ct.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(P2||(P2=Ct.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(D2||(D2=Ct.getNodeConstructor()))(e,-1,-1)};ud(1,Zy);function S(e,r){return r&&e(r)}function ae(e,r,i){if(i){if(r)return r(i);for(let u of i){let h=e(u);if(h)return h}}}function Yy(e,r){return e.charCodeAt(r+1)===42&&e.charCodeAt(r+2)===42&&e.charCodeAt(r+3)!==47}function e4(e){return wr(e.statements,t4)||r4(e)}function t4(e){return xd(e)&&n4(e,95)||p2(e)&&_2(e.moduleReference)||f2(e)||m2(e)||h2(e)?e:void 0}function r4(e){return e.flags&8388608?J2(e):void 0}function J2(e){return a4(e)?e:Gt(e,J2)}function n4(e,r){return qt(e.modifiers,i=>i.kind===r)}function a4(e){return hy(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var i4={166:function(e,r,i){return S(r,e.left)||S(r,e.right)},168:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.name)||S(r,e.constraint)||S(r,e.default)||S(r,e.expression)},304:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.name)||S(r,e.questionToken)||S(r,e.exclamationToken)||S(r,e.equalsToken)||S(r,e.objectAssignmentInitializer)},305:function(e,r,i){return S(r,e.expression)},169:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.dotDotDotToken)||S(r,e.name)||S(r,e.questionToken)||S(r,e.type)||S(r,e.initializer)},172:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.name)||S(r,e.questionToken)||S(r,e.exclamationToken)||S(r,e.type)||S(r,e.initializer)},171:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.name)||S(r,e.questionToken)||S(r,e.type)||S(r,e.initializer)},303:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.name)||S(r,e.questionToken)||S(r,e.exclamationToken)||S(r,e.initializer)},260:function(e,r,i){return S(r,e.name)||S(r,e.exclamationToken)||S(r,e.type)||S(r,e.initializer)},208:function(e,r,i){return S(r,e.dotDotDotToken)||S(r,e.propertyName)||S(r,e.name)||S(r,e.initializer)},181:function(e,r,i){return ae(r,i,e.modifiers)||ae(r,i,e.typeParameters)||ae(r,i,e.parameters)||S(r,e.type)},185:function(e,r,i){return ae(r,i,e.modifiers)||ae(r,i,e.typeParameters)||ae(r,i,e.parameters)||S(r,e.type)},184:function(e,r,i){return ae(r,i,e.modifiers)||ae(r,i,e.typeParameters)||ae(r,i,e.parameters)||S(r,e.type)},179:O2,180:O2,174:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.asteriskToken)||S(r,e.name)||S(r,e.questionToken)||S(r,e.exclamationToken)||ae(r,i,e.typeParameters)||ae(r,i,e.parameters)||S(r,e.type)||S(r,e.body)},173:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.name)||S(r,e.questionToken)||ae(r,i,e.typeParameters)||ae(r,i,e.parameters)||S(r,e.type)},176:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.name)||ae(r,i,e.typeParameters)||ae(r,i,e.parameters)||S(r,e.type)||S(r,e.body)},177:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.name)||ae(r,i,e.typeParameters)||ae(r,i,e.parameters)||S(r,e.type)||S(r,e.body)},178:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.name)||ae(r,i,e.typeParameters)||ae(r,i,e.parameters)||S(r,e.type)||S(r,e.body)},262:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.asteriskToken)||S(r,e.name)||ae(r,i,e.typeParameters)||ae(r,i,e.parameters)||S(r,e.type)||S(r,e.body)},218:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.asteriskToken)||S(r,e.name)||ae(r,i,e.typeParameters)||ae(r,i,e.parameters)||S(r,e.type)||S(r,e.body)},219:function(e,r,i){return ae(r,i,e.modifiers)||ae(r,i,e.typeParameters)||ae(r,i,e.parameters)||S(r,e.type)||S(r,e.equalsGreaterThanToken)||S(r,e.body)},175:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.body)},183:function(e,r,i){return S(r,e.typeName)||ae(r,i,e.typeArguments)},182:function(e,r,i){return S(r,e.assertsModifier)||S(r,e.parameterName)||S(r,e.type)},186:function(e,r,i){return S(r,e.exprName)||ae(r,i,e.typeArguments)},187:function(e,r,i){return ae(r,i,e.members)},188:function(e,r,i){return S(r,e.elementType)},189:function(e,r,i){return ae(r,i,e.elements)},192:M2,193:M2,194:function(e,r,i){return S(r,e.checkType)||S(r,e.extendsType)||S(r,e.trueType)||S(r,e.falseType)},195:function(e,r,i){return S(r,e.typeParameter)},205:function(e,r,i){return S(r,e.argument)||S(r,e.attributes)||S(r,e.qualifier)||ae(r,i,e.typeArguments)},302:function(e,r,i){return S(r,e.assertClause)},196:U2,198:U2,199:function(e,r,i){return S(r,e.objectType)||S(r,e.indexType)},200:function(e,r,i){return S(r,e.readonlyToken)||S(r,e.typeParameter)||S(r,e.nameType)||S(r,e.questionToken)||S(r,e.type)||ae(r,i,e.members)},201:function(e,r,i){return S(r,e.literal)},202:function(e,r,i){return S(r,e.dotDotDotToken)||S(r,e.name)||S(r,e.questionToken)||S(r,e.type)},206:B2,207:B2,209:function(e,r,i){return ae(r,i,e.elements)},210:function(e,r,i){return ae(r,i,e.properties)},211:function(e,r,i){return S(r,e.expression)||S(r,e.questionDotToken)||S(r,e.name)},212:function(e,r,i){return S(r,e.expression)||S(r,e.questionDotToken)||S(r,e.argumentExpression)},213:K2,214:K2,215:function(e,r,i){return S(r,e.tag)||S(r,e.questionDotToken)||ae(r,i,e.typeArguments)||S(r,e.template)},216:function(e,r,i){return S(r,e.type)||S(r,e.expression)},217:function(e,r,i){return S(r,e.expression)},220:function(e,r,i){return S(r,e.expression)},221:function(e,r,i){return S(r,e.expression)},222:function(e,r,i){return S(r,e.expression)},224:function(e,r,i){return S(r,e.operand)},229:function(e,r,i){return S(r,e.asteriskToken)||S(r,e.expression)},223:function(e,r,i){return S(r,e.expression)},225:function(e,r,i){return S(r,e.operand)},226:function(e,r,i){return S(r,e.left)||S(r,e.operatorToken)||S(r,e.right)},234:function(e,r,i){return S(r,e.expression)||S(r,e.type)},235:function(e,r,i){return S(r,e.expression)},238:function(e,r,i){return S(r,e.expression)||S(r,e.type)},236:function(e,r,i){return S(r,e.name)},227:function(e,r,i){return S(r,e.condition)||S(r,e.questionToken)||S(r,e.whenTrue)||S(r,e.colonToken)||S(r,e.whenFalse)},230:function(e,r,i){return S(r,e.expression)},241:j2,268:j2,307:function(e,r,i){return ae(r,i,e.statements)||S(r,e.endOfFileToken)},243:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.declarationList)},261:function(e,r,i){return ae(r,i,e.declarations)},244:function(e,r,i){return S(r,e.expression)},245:function(e,r,i){return S(r,e.expression)||S(r,e.thenStatement)||S(r,e.elseStatement)},246:function(e,r,i){return S(r,e.statement)||S(r,e.expression)},247:function(e,r,i){return S(r,e.expression)||S(r,e.statement)},248:function(e,r,i){return S(r,e.initializer)||S(r,e.condition)||S(r,e.incrementor)||S(r,e.statement)},249:function(e,r,i){return S(r,e.initializer)||S(r,e.expression)||S(r,e.statement)},250:function(e,r,i){return S(r,e.awaitModifier)||S(r,e.initializer)||S(r,e.expression)||S(r,e.statement)},251:q2,252:q2,253:function(e,r,i){return S(r,e.expression)},254:function(e,r,i){return S(r,e.expression)||S(r,e.statement)},255:function(e,r,i){return S(r,e.expression)||S(r,e.caseBlock)},269:function(e,r,i){return ae(r,i,e.clauses)},296:function(e,r,i){return S(r,e.expression)||ae(r,i,e.statements)},297:function(e,r,i){return ae(r,i,e.statements)},256:function(e,r,i){return S(r,e.label)||S(r,e.statement)},257:function(e,r,i){return S(r,e.expression)},258:function(e,r,i){return S(r,e.tryBlock)||S(r,e.catchClause)||S(r,e.finallyBlock)},299:function(e,r,i){return S(r,e.variableDeclaration)||S(r,e.block)},170:function(e,r,i){return S(r,e.expression)},263:R2,231:R2,264:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.name)||ae(r,i,e.typeParameters)||ae(r,i,e.heritageClauses)||ae(r,i,e.members)},265:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.name)||ae(r,i,e.typeParameters)||S(r,e.type)},266:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.name)||ae(r,i,e.members)},306:function(e,r,i){return S(r,e.name)||S(r,e.initializer)},267:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.name)||S(r,e.body)},271:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.name)||S(r,e.moduleReference)},272:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.importClause)||S(r,e.moduleSpecifier)||S(r,e.attributes)},273:function(e,r,i){return S(r,e.name)||S(r,e.namedBindings)},300:function(e,r,i){return ae(r,i,e.elements)},301:function(e,r,i){return S(r,e.name)||S(r,e.value)},270:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.name)},274:function(e,r,i){return S(r,e.name)},280:function(e,r,i){return S(r,e.name)},275:z2,279:z2,278:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.exportClause)||S(r,e.moduleSpecifier)||S(r,e.attributes)},276:$2,281:$2,277:function(e,r,i){return ae(r,i,e.modifiers)||S(r,e.expression)},228:function(e,r,i){return S(r,e.head)||ae(r,i,e.templateSpans)},239:function(e,r,i){return S(r,e.expression)||S(r,e.literal)},203:function(e,r,i){return S(r,e.head)||ae(r,i,e.templateSpans)},204:function(e,r,i){return S(r,e.type)||S(r,e.literal)},167:function(e,r,i){return S(r,e.expression)},298:function(e,r,i){return ae(r,i,e.types)},233:function(e,r,i){return S(r,e.expression)||ae(r,i,e.typeArguments)},283:function(e,r,i){return S(r,e.expression)},282:function(e,r,i){return ae(r,i,e.modifiers)},356:function(e,r,i){return ae(r,i,e.elements)},284:function(e,r,i){return S(r,e.openingElement)||ae(r,i,e.children)||S(r,e.closingElement)},288:function(e,r,i){return S(r,e.openingFragment)||ae(r,i,e.children)||S(r,e.closingFragment)},285:G2,286:G2,292:function(e,r,i){return ae(r,i,e.properties)},291:function(e,r,i){return S(r,e.name)||S(r,e.initializer)},293:function(e,r,i){return S(r,e.expression)},294:function(e,r,i){return S(r,e.dotDotDotToken)||S(r,e.expression)},287:function(e,r,i){return S(r,e.tagName)},295:function(e,r,i){return S(r,e.namespace)||S(r,e.name)},190:Na,191:Na,309:Na,315:Na,314:Na,316:Na,318:Na,317:function(e,r,i){return ae(r,i,e.parameters)||S(r,e.type)},320:function(e,r,i){return (typeof e.comment=="string"?void 0:ae(r,i,e.comment))||ae(r,i,e.tags)},347:function(e,r,i){return S(r,e.tagName)||S(r,e.name)||(typeof e.comment=="string"?void 0:ae(r,i,e.comment))},310:function(e,r,i){return S(r,e.name)},311:function(e,r,i){return S(r,e.left)||S(r,e.right)},341:H2,348:H2,330:function(e,r,i){return S(r,e.tagName)||(typeof e.comment=="string"?void 0:ae(r,i,e.comment))},329:function(e,r,i){return S(r,e.tagName)||S(r,e.class)||(typeof e.comment=="string"?void 0:ae(r,i,e.comment))},328:function(e,r,i){return S(r,e.tagName)||S(r,e.class)||(typeof e.comment=="string"?void 0:ae(r,i,e.comment))},345:function(e,r,i){return S(r,e.tagName)||S(r,e.constraint)||ae(r,i,e.typeParameters)||(typeof e.comment=="string"?void 0:ae(r,i,e.comment))},346:function(e,r,i){return S(r,e.tagName)||(e.typeExpression&&e.typeExpression.kind===309?S(r,e.typeExpression)||S(r,e.fullName)||(typeof e.comment=="string"?void 0:ae(r,i,e.comment)):S(r,e.fullName)||S(r,e.typeExpression)||(typeof e.comment=="string"?void 0:ae(r,i,e.comment)))},338:function(e,r,i){return S(r,e.tagName)||S(r,e.fullName)||S(r,e.typeExpression)||(typeof e.comment=="string"?void 0:ae(r,i,e.comment))},342:wa,344:wa,343:wa,340:wa,350:wa,349:wa,339:wa,323:function(e,r,i){return wr(e.typeParameters,r)||wr(e.parameters,r)||S(r,e.type)},324:kd,325:kd,326:kd,322:function(e,r,i){return wr(e.jsDocPropertyTags,r)},327:na,332:na,333:na,334:na,335:na,336:na,331:na,337:na,351:o4,355:s4};function O2(e,r,i){return ae(r,i,e.typeParameters)||ae(r,i,e.parameters)||S(r,e.type)}function M2(e,r,i){return ae(r,i,e.types)}function U2(e,r,i){return S(r,e.type)}function B2(e,r,i){return ae(r,i,e.elements)}function K2(e,r,i){return S(r,e.expression)||S(r,e.questionDotToken)||ae(r,i,e.typeArguments)||ae(r,i,e.arguments)}function j2(e,r,i){return ae(r,i,e.statements)}function q2(e,r,i){return S(r,e.label)}function R2(e,r,i){return ae(r,i,e.modifiers)||S(r,e.name)||ae(r,i,e.typeParameters)||ae(r,i,e.heritageClauses)||ae(r,i,e.members)}function z2(e,r,i){return ae(r,i,e.elements)}function $2(e,r,i){return S(r,e.propertyName)||S(r,e.name)}function G2(e,r,i){return S(r,e.tagName)||ae(r,i,e.typeArguments)||S(r,e.attributes)}function Na(e,r,i){return S(r,e.type)}function H2(e,r,i){return S(r,e.tagName)||(e.isNameFirst?S(r,e.name)||S(r,e.typeExpression):S(r,e.typeExpression)||S(r,e.name))||(typeof e.comment=="string"?void 0:ae(r,i,e.comment))}function wa(e,r,i){return S(r,e.tagName)||S(r,e.typeExpression)||(typeof e.comment=="string"?void 0:ae(r,i,e.comment))}function kd(e,r,i){return S(r,e.name)}function na(e,r,i){return S(r,e.tagName)||(typeof e.comment=="string"?void 0:ae(r,i,e.comment))}function o4(e,r,i){return S(r,e.tagName)||S(r,e.importClause)||S(r,e.moduleSpecifier)||S(r,e.attributes)||(typeof e.comment=="string"?void 0:ae(r,i,e.comment))}function s4(e,r,i){return S(r,e.expression)}function Gt(e,r,i){if(e===void 0||e.kind<=165)return;let u=i4[e.kind];return u===void 0?void 0:u(e,r,i)}function W2(e,r,i){let u=V2(e),h=[];for(;h.length<u.length;)h.push(e);for(;u.length!==0;){let y=u.pop(),A=h.pop();if(Fn(y))for(let P=y.length-1;P>=0;--P)u.push(y[P]),h.push(A);else {let P=r(y,A);if(P){if(P==="skip")continue;return P}if(y.kind>=166)for(let c of V2(y))u.push(c),h.push(y);}}}function V2(e){let r=[];return Gt(e,i,i),r;function i(u){r.unshift(u);}}function X2(e){e.externalModuleIndicator=e4(e);}function c4(e,r,i,u=false,h){var y,A;(y=Ts)==null||y.push(Ts.Phase.Parse,"createSourceFile",{path:e},true);let P,{languageVersion:c,setExternalModuleIndicator:Z,impliedNodeFormat:d,jsDocParsingMode:v}=typeof i=="object"?i:{languageVersion:i};if(c===100)P=Aa.parseSourceFile(e,r,c,void 0,u,6,gs,v);else {let T=d===void 0?Z:b=>(b.impliedNodeFormat=d,(Z||X2)(b));P=Aa.parseSourceFile(e,r,c,void 0,u,h,T,v);}return (A=Ts)==null||A.pop(),P}function u4(e){return e.externalModuleIndicator!==void 0}function l4(e,r,i,u=false){let h=zs.updateSourceFile(e,r,i,u);return h.flags|=e.flags&12582912,h}var Aa;(e=>{var r=Ul(99,true),i=40960,u,h,y,A,P;function c(o){return nn++,o}var Z={createBaseSourceFileNode:o=>c(new P(o,0,0)),createBaseIdentifierNode:o=>c(new y(o,0,0)),createBasePrivateIdentifierNode:o=>c(new A(o,0,0)),createBaseTokenNode:o=>c(new h(o,0,0)),createBaseNode:o=>c(new u(o,0,0))},d=ud(11,Z),{createNodeArray:v,createNumericLiteral:T,createStringLiteral:b,createLiteralLikeNode:J,createIdentifier:ie,createPrivateIdentifier:ke,createToken:_e,createArrayLiteralExpression:he,createObjectLiteralExpression:I,createPropertyAccessExpression:oe,createPropertyAccessChain:Ie,createElementAccessExpression:z,createElementAccessChain:ue,createCallExpression:W,createCallChain:ft,createNewExpression:en,createParenthesizedExpression:xr,createBlock:tn,createVariableStatement:kr,createExpressionStatement:Fr,createIfStatement:Re,createWhileStatement:rn,createForStatement:On,createForOfStatement:Ft,createVariableDeclaration:Br,createVariableDeclarationList:Ir}=d,It,xt,Ve,Kr,Ht,ut,at,Bt,Lt,lt,nn,mt,Sr,gt,sr,rt,Kt=true,tr=false;function an(o,l,m,_,k=false,w,X,ce=0){var te;if(w=lg(o,w),w===6){let pe=xn(o,l,m,_,k);return convertToJson(pe,(te=pe.statements[0])==null?void 0:te.expression,pe.parseDiagnostics,false,void 0),pe.referencedFiles=vt,pe.typeReferenceDirectives=vt,pe.libReferenceDirectives=vt,pe.amdDependencies=vt,pe.hasNoDefaultLib=false,pe.pragmas=$m,pe}jr(o,l,m,_,w,ce);let Y=Mn(m,k,w,X||X2,ce);return qr(),Y}e.parseSourceFile=an;function Tn(o,l){jr("",o,l,void 0,1,0),j();let m=Rn(true),_=p()===1&&!at.length;return qr(),_?m:void 0}e.parseIsolatedEntityName=Tn;function xn(o,l,m=2,_,k=false){jr(o,l,m,_,6,0),xt=rt,j();let w=L(),X,ce;if(p()===1)X=Nt([],w,w),ce=zt();else {let pe;for(;p()!==1;){let we;switch(p()){case 23:we=Cu();break;case 112:case 97:case 106:we=zt();break;case 41:G(()=>j()===9&&j()!==59)?we=uu():we=Zo();break;case 9:case 11:if(G(()=>j()!==59)){we=Hr();break}default:we=Zo();break}pe&&Fn(pe)?pe.push(we):pe?pe=[pe,we]:(pe=we,p()!==1&&Ne(C.Unexpected_token));}let Be=Fn(pe)?E(he(pe),w):U.checkDefined(pe),Je=Fr(Be);E(Je,w),X=Nt([Je],w),ce=Gr(1,C.Unexpected_token);}let te=se(o,2,6,false,X,ce,xt,gs);k&&O(te),te.nodeCount=nn,te.identifierCount=Sr,te.identifiers=mt,te.parseDiagnostics=va(at,te),Bt&&(te.jsDocDiagnostics=va(Bt,te));let Y=te;return qr(),Y}e.parseJsonText=xn;function jr(o,l,m,_,k,w){switch(u=Ct.getNodeConstructor(),h=Ct.getTokenConstructor(),y=Ct.getIdentifierConstructor(),A=Ct.getPrivateIdentifierConstructor(),P=Ct.getSourceFileConstructor(),It=I0(o),Ve=l,Kr=m,Lt=_,Ht=k,ut=zf(k),at=[],gt=0,mt=new Map,Sr=0,nn=0,xt=0,Kt=true,Ht){case 1:case 2:rt=524288;break;case 6:rt=134742016;break;default:rt=0;break}tr=false,r.setText(Ve),r.setOnError(Sn),r.setScriptTarget(Kr),r.setLanguageVariant(ut),r.setScriptKind(Ht),r.setJSDocParsingMode(w);}function qr(){r.clearCommentDirectives(),r.setText(""),r.setOnError(void 0),r.setScriptKind(0),r.setJSDocParsingMode(0),Ve=void 0,Kr=void 0,Lt=void 0,Ht=void 0,ut=void 0,xt=0,at=void 0,Bt=void 0,gt=0,mt=void 0,sr=void 0,Kt=true;}function Mn(o,l,m,_,k){let w=f4(It);w&&(rt|=33554432),xt=rt,j();let X=vr(0,Xt);U.assert(p()===1);let ce=F(),te=Ae(zt(),ce),Y=se(It,o,m,w,X,te,xt,_);return _4(Y,Ve),g4(Y,pe),Y.commentDirectives=r.getCommentDirectives(),Y.nodeCount=nn,Y.identifierCount=Sr,Y.identifiers=mt,Y.parseDiagnostics=va(at,Y),Y.jsDocParsingMode=k,Bt&&(Y.jsDocDiagnostics=va(Bt,Y)),l&&O(Y),Y;function pe(Be,Je,we){at.push(si(It,Ve,Be,Je,we));}}let Rr=false;function Ae(o,l){if(!l)return o;U.assert(!o.jsDoc);let m=Vm(s_(o,Ve),_=>hl.parseJSDocComment(o,_.pos,_.end-_.pos));return m.length&&(o.jsDoc=m),Rr&&(Rr=false,o.flags|=536870912),o}function kn(o){let l=Lt,m=zs.createSyntaxCursor(o);Lt={currentNode:pe};let _=[],k=at;at=[];let w=0,X=te(o.statements,0);for(;X!==-1;){let Be=o.statements[w],Je=o.statements[X];_r(_,o.statements,w,X),w=Y(o.statements,X);let we=xl(k,fr=>fr.start>=Be.pos),nr=we>=0?xl(k,fr=>fr.start>=Je.pos,we):-1;we>=0&&_r(at,k,we,nr>=0?nr:void 0),ur(()=>{let fr=rt;for(rt|=65536,r.resetTokenState(Je.pos),j();p()!==1;){let Qt=r.getTokenFullStart(),ln=So(0,Xt);if(_.push(ln),Qt===r.getTokenFullStart()&&j(),w>=0){let Or=o.statements[w];if(ln.end===Or.pos)break;ln.end>Or.pos&&(w=Y(o.statements,w+1));}}rt=fr;},2),X=w>=0?te(o.statements,w):-1;}if(w>=0){let Be=o.statements[w];_r(_,o.statements,w);let Je=xl(k,we=>we.start>=Be.pos);Je>=0&&_r(at,k,Je);}return Lt=l,d.updateSourceFile(o,or(v(_),o.statements));function ce(Be){return !(Be.flags&65536)&&!!(Be.transformFlags&67108864)}function te(Be,Je){for(let we=Je;we<Be.length;we++)if(ce(Be[we]))return we;return  -1}function Y(Be,Je){for(let we=Je;we<Be.length;we++)if(!ce(Be[we]))return we;return  -1}function pe(Be){let Je=m.currentNode(Be);return Kt&&Je&&ce(Je)&&Sd(Je),Je}}function O(o){gg(o);}e.fixupParentReferences=O;function se(o,l,m,_,k,w,X,ce){let te=d.createSourceFile(k,w,X);if(Gf(te,0,Ve.length),Y(te),!_&&u4(te)&&te.transformFlags&67108864){let pe=te;te=kn(te),pe!==te&&Y(te);}return te;function Y(pe){pe.text=Ve,pe.bindDiagnostics=[],pe.bindSuggestionDiagnostics=void 0,pe.languageVersion=l,pe.fileName=o,pe.languageVariant=zf(m),pe.isDeclarationFile=_,pe.scriptKind=m,ce(pe),pe.setExternalModuleIndicator=ce;}}function me(o,l){o?rt|=l:rt&=~l;}function Se(o){me(o,8192);}function Xe(o){me(o,16384);}function Qe(o){me(o,32768);}function it(o){me(o,65536);}function wt(o,l){let m=o&rt;if(m){me(false,m);let _=l();return me(true,m),_}return l()}function kt(o,l){let m=o&~rt;if(m){me(true,m);let _=l();return me(false,m),_}return l()}function ot(o){return wt(8192,o)}function oa(o){return kt(8192,o)}function br(o){return wt(131072,o)}function Un(o){return kt(131072,o)}function zr(o){return kt(16384,o)}function Ia(o){return kt(32768,o)}function B(o){return kt(65536,o)}function Q(o){return wt(65536,o)}function ee(o){return kt(81920,o)}function be(o){return wt(81920,o)}function ve(o){return (rt&o)!==0}function Ce(){return ve(16384)}function ye(){return ve(8192)}function qe(){return ve(131072)}function Ze(){return ve(32768)}function Ge(){return ve(65536)}function Ne(o,...l){return nt(r.getTokenStart(),r.getTokenEnd(),o,...l)}function Lr(o,l,m,..._){let k=ya(at),w;return (!k||o!==k.start)&&(w=si(It,Ve,o,l,m,..._),at.push(w)),tr=true,w}function nt(o,l,m,..._){return Lr(o,l-o,m,..._)}function cr(o,l,...m){nt(o.pos,o.end,l,...m);}function Sn(o,l,m){Lr(r.getTokenEnd(),l,o,m);}function L(){return r.getTokenFullStart()}function F(){return r.hasPrecedingJSDocComment()}function p(){return lt}function Ue(){return lt=r.scan()}function We(o){return j(),o()}function j(){return ea(lt)&&(r.hasUnicodeEscape()||r.hasExtendedUnicodeEscape())&&nt(r.getTokenStart(),r.getTokenEnd(),C.Keywords_cannot_contain_escape_characters),Ue()}function Ye(){return lt=r.scanJsDocToken()}function ze(o){return lt=r.scanJSDocCommentTextToken(o)}function He(){return lt=r.reScanGreaterToken()}function At(){return lt=r.reScanSlashToken()}function yt(o){return lt=r.reScanTemplateToken(o)}function Dt(){return lt=r.reScanLessThanToken()}function Wt(){return lt=r.reScanHashToken()}function bn(){return lt=r.scanJsxIdentifier()}function $r(){return lt=r.scanJsxToken()}function La(){return lt=r.scanJsxAttributeValue()}function ur(o,l){let m=lt,_=at.length,k=tr,w=rt,X=l!==0?r.lookAhead(o):r.tryScan(o);return U.assert(w===rt),(!X||l!==0)&&(lt=m,l!==2&&(at.length=_),tr=k),X}function G(o){return ur(o,1)}function de(o){return ur(o,0)}function je(){return p()===80?true:p()>118}function xe(){return p()===80?true:p()===127&&Ce()||p()===135&&Ge()?false:p()>118}function M(o,l,m=true){return p()===o?(m&&j(),true):(l?Ne(l):Ne(C._0_expected,ct(o)),false)}let ht=Object.keys(Pl).filter(o=>o.length>2);function St(o){if(uy(o)){nt(hn(Ve,o.template.pos),o.template.end,C.Module_declaration_names_may_only_use_or_quoted_strings);return}let l=tt(o)?yr(o):void 0;if(!l||!th(l,Kr)){Ne(C._0_expected,ct(27));return}let m=hn(Ve,o.pos);switch(l){case "const":case "let":case "var":nt(m,o.end,C.Variable_declaration_not_allowed_at_this_location);return;case "declare":return;case "interface":Jt(C.Interface_name_cannot_be_0,C.Interface_must_be_given_a_name,19);return;case "is":nt(m,r.getTokenStart(),C.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case "module":case "namespace":Jt(C.Namespace_name_cannot_be_0,C.Namespace_must_be_given_a_name,19);return;case "type":Jt(C.Type_alias_name_cannot_be_0,C.Type_alias_must_be_given_a_name,64);return}let _=$i(l,ht,_t)??lr(l);if(_){nt(m,o.end,C.Unknown_keyword_or_identifier_Did_you_mean_0,_);return}p()!==0&&nt(m,o.end,C.Unexpected_keyword_or_identifier);}function Jt(o,l,m){p()===m?Ne(l):Ne(o,r.getTokenValue());}function lr(o){for(let l of ht)if(o.length>l.length+2&&ys(o,l))return `${l} ${o.slice(l.length)}`}function Od(o,l,m){if(p()===60&&!r.hasPrecedingLineBreak()){Ne(C.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(p()===21){Ne(C.Cannot_start_a_function_call_in_a_type_annotation),j();return}if(l&&!on()){m?Ne(C._0_expected,ct(27)):Ne(C.Expected_for_property_initializer);return}if(!hi()){if(m){Ne(C._0_expected,ct(27));return}St(o);}}function Hs(o){return p()===o?(Ye(),true):(U.assert(ed(o)),Ne(C._0_expected,ct(o)),false)}function Bn(o,l,m,_){if(p()===l){j();return}let k=Ne(C._0_expected,ct(l));m&&k&&Is(k,si(It,Ve,_,1,C.The_parser_expected_to_find_a_1_to_match_the_0_token_here,ct(o),ct(l)));}function Le(o){return p()===o?(j(),true):false}function pt(o){if(p()===o)return zt()}function Md(o){if(p()===o)return Bd()}function Gr(o,l,m){return pt(o)||$t(o,false,l||C._0_expected,m||ct(o))}function Ud(o){return Md(o)||(U.assert(ed(o)),$t(o,false,C._0_expected,ct(o)))}function zt(){let o=L(),l=p();return j(),E(_e(l),o)}function Bd(){let o=L(),l=p();return Ye(),E(_e(l),o)}function on(){return p()===27?true:p()===20||p()===1||r.hasPrecedingLineBreak()}function hi(){return on()?(p()===27&&j(),true):false}function Vt(){return hi()||M(27)}function Nt(o,l,m,_){let k=v(o,_);return ta(k,l,m??r.getTokenFullStart()),k}function E(o,l,m){return ta(o,l,m??r.getTokenFullStart()),rt&&(o.flags|=rt),tr&&(tr=false,o.flags|=262144),o}function $t(o,l,m,..._){l?Lr(r.getTokenFullStart(),0,m,..._):m&&Ne(m,..._);let k=L(),w=o===80?ie("",void 0):Tf(o)?d.createTemplateLiteralLikeNode(o,"","",void 0):o===9?T("",void 0):o===11?b("",void 0):o===282?d.createMissingDeclaration():_e(o);return E(w,k)}function Kn(o){let l=mt.get(o);return l===void 0&&mt.set(o,l=o),l}function sn(o,l,m){if(o){Sr++;let ce=r.hasPrecedingJSDocLeadingAsterisks()?r.getTokenStart():L(),te=p(),Y=Kn(r.getTokenValue()),pe=r.hasExtendedUnicodeEscape();return Ue(),E(ie(Y,te,pe),ce)}if(p()===81)return Ne(m||C.Private_identifiers_are_not_allowed_outside_class_bodies),sn(true);if(p()===0&&r.tryScan(()=>r.reScanInvalidIdentifier()===80))return sn(true);Sr++;let _=p()===1,k=r.isReservedWord(),w=r.getTokenText(),X=k?C.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:C.Identifier_expected;return $t(80,_,l||X,w)}function yo(o){return sn(je(),void 0,o)}function bt(o,l){return sn(xe(),o,l)}function Ot(o){return sn(Tt(p()),o)}function sa(){return (r.hasUnicodeEscape()||r.hasExtendedUnicodeEscape())&&Ne(C.Unicode_escape_sequence_cannot_appear_here),sn(Tt(p()))}function vn(){return Tt(p())||p()===11||p()===9||p()===10}function Ws(){return Tt(p())||p()===11}function Kd(o){if(p()===11||p()===9||p()===10){let l=Hr();return l.text=Kn(l.text),l}return p()===23?jd():p()===81?_i():Ot()}function jn(){return Kd()}function jd(){let o=L();M(23);let l=ot(Et);return M(24),E(d.createComputedPropertyName(l),o)}function _i(){let o=L(),l=ke(Kn(r.getTokenValue()));return j(),E(l,o)}function ca(o){return p()===o&&de(Vs)}function To(){return j(),r.hasPrecedingLineBreak()?false:cn()}function Vs(){switch(p()){case 87:return j()===94;case 95:return j(),p()===90?G(Oa):p()===156?G(qd):Ja();case 90:return Oa();case 126:return j(),cn();case 139:case 153:return j(),Rd();default:return To()}}function Ja(){return p()===60||p()!==42&&p()!==130&&p()!==19&&cn()}function qd(){return j(),Ja()}function Xs(){return Jn(p())&&de(Vs)}function cn(){return p()===23||p()===19||p()===42||p()===26||vn()}function Rd(){return p()===23||vn()}function Oa(){return j(),p()===86||p()===100||p()===120||p()===60||p()===128&&G(Uu)||p()===134&&G(Bu)}function gi(o,l){if(Ti(o))return  true;switch(o){case 0:case 1:case 3:return !(p()===27&&l)&&Ku();case 2:return p()===84||p()===90;case 4:return G(Ec);case 5:return G(jp)||p()===27&&!l;case 6:return p()===23||vn();case 12:switch(p()){case 23:case 42:case 26:case 25:return  true;default:return vn()}case 18:return vn();case 9:return p()===23||p()===26||vn();case 24:return Ws();case 7:return p()===19?G(Qs):l?xe()&&!xo():qo()&&!xo();case 8:return Ji();case 10:return p()===28||p()===26||Ji();case 19:return p()===103||p()===87||xe();case 15:switch(p()){case 28:case 25:return  true}case 11:return p()===26||En();case 16:return bi(false);case 17:return bi(true);case 20:case 21:return p()===28||pa();case 22:return al();case 23:return p()===161&&G(Jp)?false:p()===11?true:Tt(p());case 13:return Tt(p())||p()===19;case 14:return  true;case 25:return  true;case 26:return U.fail("ParsingContext.Count used as a context");default:U.assertNever(o,"Non-exhaustive case in 'isListElement'.");}}function Qs(){if(U.assert(p()===19),j()===20){let o=j();return o===28||o===19||o===96||o===119}return  true}function Ma(){return j(),xe()}function zd(){return j(),Tt(p())}function Zs(){return j(),L0(p())}function xo(){return p()===119||p()===96?G(Ys):false}function Ys(){return j(),En()}function Ua(){return j(),pa()}function yi(o){if(p()===1)return  true;switch(o){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return p()===20;case 3:return p()===20||p()===84||p()===90;case 7:return p()===19||p()===96||p()===119;case 8:return ko();case 19:return p()===32||p()===21||p()===19||p()===96||p()===119;case 11:return p()===22||p()===27;case 15:case 21:case 10:return p()===24;case 17:case 16:case 18:return p()===22||p()===24;case 20:return p()!==28;case 22:return p()===19||p()===20;case 13:return p()===32||p()===44;case 14:return p()===30&&G(ps);default:return  false}}function ko(){return !!(on()||iu(p())||p()===39)}function ec(){U.assert(gt,"Missing parsing context");for(let o=0;o<26;o++)if(gt&1<<o&&(gi(o,true)||yi(o)))return  true;return  false}function vr(o,l){let m=gt;gt|=1<<o;let _=[],k=L();for(;!yi(o);){if(gi(o,false)){_.push(So(o,l));continue}if(cc(o))break}return gt=m,Nt(_,k)}function So(o,l){let m=Ti(o);return m?tc(m):l()}function Ti(o,l){var m;if(!Lt||!rc(o)||tr)return;let _=Lt.currentNode(l??r.getTokenFullStart());if(!(ba(_)||p4(_)||Df(_)||(_.flags&101441536)!==rt)&&nc(_,o))return Ql(_)&&(m=_.jsDoc)!=null&&m.jsDocCache&&(_.jsDoc.jsDocCache=void 0),_}function tc(o){return r.resetTokenState(o.end),j(),o}function rc(o){switch(o){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return  true}return  false}function nc(o,l){switch(l){case 5:return bo(o);case 2:return ac(o);case 0:case 1:case 3:return vo(o);case 6:return ic(o);case 4:return Co(o);case 8:return oc(o);case 17:case 16:return sc(o)}return  false}function bo(o){if(o)switch(o.kind){case 176:case 181:case 177:case 178:case 172:case 240:return  true;case 174:let l=o;return !(l.name.kind===80&&l.name.escapedText==="constructor")}return  false}function ac(o){if(o)switch(o.kind){case 296:case 297:return  true}return  false}function vo(o){if(o)switch(o.kind){case 262:case 243:case 241:case 245:case 244:case 257:case 253:case 255:case 252:case 251:case 249:case 250:case 248:case 247:case 254:case 242:case 258:case 256:case 246:case 259:case 272:case 271:case 278:case 277:case 267:case 263:case 264:case 266:case 265:return  true}return  false}function ic(o){return o.kind===306}function Co(o){if(o)switch(o.kind){case 180:case 173:case 181:case 171:case 179:return  true}return  false}function oc(o){return o.kind!==260?false:o.initializer===void 0}function sc(o){return o.kind!==169?false:o.initializer===void 0}function cc(o){return xi(o),ec()?true:(j(),false)}function xi(o){switch(o){case 0:return p()===90?Ne(C._0_expected,ct(95)):Ne(C.Declaration_or_statement_expected);case 1:return Ne(C.Declaration_or_statement_expected);case 2:return Ne(C.case_or_default_expected);case 3:return Ne(C.Statement_expected);case 18:case 4:return Ne(C.Property_or_signature_expected);case 5:return Ne(C.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return Ne(C.Enum_member_expected);case 7:return Ne(C.Expression_expected);case 8:return ea(p())?Ne(C._0_is_not_allowed_as_a_variable_declaration_name,ct(p())):Ne(C.Variable_declaration_expected);case 9:return Ne(C.Property_destructuring_pattern_expected);case 10:return Ne(C.Array_element_destructuring_pattern_expected);case 11:return Ne(C.Argument_expression_expected);case 12:return Ne(C.Property_assignment_expected);case 15:return Ne(C.Expression_or_comma_expected);case 17:return Ne(C.Parameter_declaration_expected);case 16:return ea(p())?Ne(C._0_is_not_allowed_as_a_parameter_name,ct(p())):Ne(C.Parameter_declaration_expected);case 19:return Ne(C.Type_parameter_declaration_expected);case 20:return Ne(C.Type_argument_expected);case 21:return Ne(C.Type_expected);case 22:return Ne(C.Unexpected_token_expected);case 23:return p()===161?Ne(C._0_expected,"}"):Ne(C.Identifier_expected);case 13:return Ne(C.Identifier_expected);case 14:return Ne(C.Identifier_expected);case 24:return Ne(C.Identifier_or_string_literal_expected);case 25:return Ne(C.Identifier_expected);case 26:return U.fail("ParsingContext.Count used as a context");default:U.assertNever(o);}}function dr(o,l,m){let _=gt;gt|=1<<o;let k=[],w=L(),X=-1;for(;;){if(gi(o,false)){let ce=r.getTokenFullStart(),te=So(o,l);if(!te){gt=_;return}if(k.push(te),X=r.getTokenStart(),Le(28))continue;if(X=-1,yi(o))break;M(28,Eo(o)),m&&p()===27&&!r.hasPrecedingLineBreak()&&j(),ce===r.getTokenFullStart()&&j();continue}if(yi(o)||cc(o))break}return gt=_,Nt(k,w,void 0,X>=0)}function Eo(o){return o===6?C.An_enum_member_name_must_be_followed_by_a_or:void 0}function un(){let o=Nt([],L());return o.isMissingList=true,o}function uc(o){return !!o.isMissingList}function qn(o,l,m,_){if(M(m)){let k=dr(o,l);return M(_),k}return un()}function Rn(o,l){let m=L(),_=o?Ot(l):bt(l);for(;Le(25)&&p()!==30;)_=E(d.createQualifiedName(_,ua(o,false,true)),m);return _}function $d(o,l){return E(d.createQualifiedName(o,l),o.pos)}function ua(o,l,m){if(r.hasPrecedingLineBreak()&&Tt(p())&&G(es))return $t(80,true,C.Identifier_expected);if(p()===81){let _=_i();return l?_:$t(80,true,C.Identifier_expected)}return o?m?Ot():sa():bt()}function Gd(o){let l=L(),m=[],_;do _=fc(o),m.push(_);while(_.literal.kind===17);return Nt(m,l)}function ki(o){let l=L();return E(d.createTemplateExpression(Ba(o),Gd(o)),l)}function lc(){let o=L();return E(d.createTemplateLiteralType(Ba(false),Hd()),o)}function Hd(){let o=L(),l=[],m;do m=dc(),l.push(m);while(m.literal.kind===17);return Nt(l,o)}function dc(){let o=L();return E(d.createTemplateLiteralTypeSpan(st(),pc(false)),o)}function pc(o){return p()===20?(yt(o),mc()):Gr(18,C._0_expected,ct(20))}function fc(o){let l=L();return E(d.createTemplateSpan(ot(Et),pc(o)),l)}function Hr(){return la(p())}function Ba(o){!o&&r.getTokenFlags()&26656&&yt(false);let l=la(p());return U.assert(l.kind===16,"Template head has wrong token kind"),l}function mc(){let o=la(p());return U.assert(o.kind===17||o.kind===18,"Template fragment has wrong token kind"),o}function Wd(o){let l=o===15||o===18,m=r.getTokenText();return m.substring(1,m.length-(r.isUnterminated()?0:l?1:2))}function la(o){let l=L(),m=Tf(o)?d.createTemplateLiteralLikeNode(o,r.getTokenValue(),Wd(o),r.getTokenFlags()&7176):o===9?T(r.getTokenValue(),r.getNumericLiteralFlags()):o===11?b(r.getTokenValue(),void 0,r.hasExtendedUnicodeEscape()):Ph(o)?J(o,r.getTokenValue()):U.fail();return r.hasExtendedUnicodeEscape()&&(m.hasExtendedUnicodeEscape=true),r.isUnterminated()&&(m.isUnterminated=true),j(),E(m,l)}function da(){return Rn(true,C.Type_expected)}function hc(){if(!r.hasPrecedingLineBreak()&&Dt()===30)return qn(20,st,30,32)}function Si(){let o=L();return E(d.createTypeReferenceNode(da(),hc()),o)}function No(o){switch(o.kind){case 183:return ba(o.typeName);case 184:case 185:{let{parameters:l,type:m}=o;return uc(l)||No(m)}case 196:return No(o.type);default:return  false}}function Vd(o){return j(),E(d.createTypePredicateNode(void 0,o,st()),o.pos)}function wo(){let o=L();return j(),E(d.createThisTypeNode(),o)}function Xd(){let o=L();return j(),E(d.createJSDocAllType(),o)}function _c(){let o=L();return j(),E(d.createJSDocNonNullableType(Bo(),false),o)}function Qd(){let o=L();return j(),p()===28||p()===20||p()===22||p()===32||p()===64||p()===52?E(d.createJSDocUnknownType(),o):E(d.createJSDocNullableType(st(),false),o)}function gc(){let o=L(),l=F();if(de(ul)){let m=Wr(36),_=Jr(59,false);return Ae(E(d.createJSDocFunctionType(m,_),o),l)}return E(d.createTypeReferenceNode(Ot(),void 0),o)}function Ao(){let o=L(),l;return (p()===110||p()===105)&&(l=Ot(),M(59)),E(d.createParameterDeclaration(void 0,void 0,l,void 0,Do(),void 0),o)}function Do(){r.setSkipJsDocLeadingAsterisks(true);let o=L();if(Le(144)){let _=d.createJSDocNamepathType(void 0);e:for(;;)switch(p()){case 20:case 1:case 28:case 5:break e;default:Ye();}return r.setSkipJsDocLeadingAsterisks(false),E(_,o)}let l=Le(26),m=Ei();return r.setSkipJsDocLeadingAsterisks(false),l&&(m=E(d.createJSDocVariadicType(m),o)),p()===64?(j(),E(d.createJSDocOptionalType(m),o)):m}function yc(){let o=L();M(114);let l=Rn(true),m=r.hasPrecedingLineBreak()?void 0:Ui();return E(d.createTypeQueryNode(l,m),o)}function Tc(){let o=L(),l=Er(false,true),m=bt(),_,k;Le(96)&&(pa()||!En()?_=st():k=fu());let w=Le(64)?st():void 0,X=d.createTypeParameterDeclaration(l,m,_,w);return X.expression=k,E(X,o)}function pr(){if(p()===30)return qn(19,Tc,30,32)}function bi(o){return p()===26||Ji()||Jn(p())||p()===60||pa(!o)}function xc(o){let l=Ga(C.Private_identifiers_cannot_be_used_as_parameters);return r_(l)===0&&!qt(o)&&Jn(p())&&j(),l}function kc(){return je()||p()===23||p()===19}function Po(o){return Fo(o)}function Sc(o){return Fo(o,false)}function Fo(o,l=true){let m=L(),_=F(),k=o?B(()=>Er(true)):Q(()=>Er(true));if(p()===110){let te=d.createParameterDeclaration(k,void 0,sn(true),void 0,Cn(),void 0),Y=bl(k);return Y&&cr(Y,C.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ae(E(te,m),_)}let w=Kt;Kt=false;let X=pt(26);if(!l&&!kc())return;let ce=Ae(E(d.createParameterDeclaration(k,X,xc(k),pt(58),Cn(),Nn()),m),_);return Kt=w,ce}function Jr(o,l){if(bc(o,l))return br(Ei)}function bc(o,l){return o===39?(M(o),true):Le(59)?true:l&&p()===39?(Ne(C._0_expected,ct(59)),j(),true):false}function Io(o,l){let m=Ce(),_=Ge();Xe(!!(o&1)),it(!!(o&2));let k=o&32?dr(17,Ao):dr(16,()=>l?Po(_):Sc(_));return Xe(m),it(_),k}function Wr(o){if(!M(21))return un();let l=Io(o,true);return M(22),l}function vi(){Le(28)||Vt();}function vc(o){let l=L(),m=F();o===180&&M(105);let _=pr(),k=Wr(4),w=Jr(59,true);vi();let X=o===179?d.createCallSignature(_,k,w):d.createConstructSignature(_,k,w);return Ae(E(X,l),m)}function zn(){return p()===23&&G(Zd)}function Zd(){if(j(),p()===26||p()===24)return  true;if(Jn(p())){if(j(),xe())return  true}else if(xe())j();else return  false;return p()===59||p()===28?true:p()!==58?false:(j(),p()===59||p()===28||p()===24)}function Lo(o,l,m){let _=qn(16,()=>Po(false),23,24),k=Cn();vi();let w=d.createIndexSignature(m,_,k);return Ae(E(w,o),l)}function Cc(o,l,m){let _=jn(),k=pt(58),w;if(p()===21||p()===30){let X=pr(),ce=Wr(4),te=Jr(59,true);w=d.createMethodSignature(m,_,k,X,ce,te);}else {let X=Cn();w=d.createPropertySignature(m,_,k,X),p()===64&&(w.initializer=Nn());}return vi(),Ae(E(w,o),l)}function Ec(){if(p()===21||p()===30||p()===139||p()===153)return  true;let o=false;for(;Jn(p());)o=true,j();return p()===23?true:(vn()&&(o=true,j()),o?p()===21||p()===30||p()===58||p()===59||p()===28||on():false)}function Ka(){if(p()===21||p()===30)return vc(179);if(p()===105&&G(Nc))return vc(180);let o=L(),l=F(),m=Er(false);return ca(139)?Hn(o,l,m,177,4):ca(153)?Hn(o,l,m,178,4):zn()?Lo(o,l,m):Cc(o,l,m)}function Nc(){return j(),p()===21||p()===30}function wc(){return j()===25}function Ac(){switch(j()){case 21:case 30:case 25:return  true}return  false}function Dc(){let o=L();return E(d.createTypeLiteralNode(Pc()),o)}function Pc(){let o;return M(19)?(o=vr(4,Ka),M(20)):o=un(),o}function Fc(){return j(),p()===40||p()===41?j()===148:(p()===148&&j(),p()===23&&Ma()&&j()===103)}function Yd(){let o=L(),l=Ot();M(103);let m=st();return E(d.createTypeParameterDeclaration(void 0,l,m,void 0),o)}function Ic(){let o=L();M(19);let l;(p()===148||p()===40||p()===41)&&(l=zt(),l.kind!==148&&M(148)),M(23);let m=Yd(),_=Le(130)?st():void 0;M(24);let k;(p()===58||p()===40||p()===41)&&(k=zt(),k.kind!==58&&M(58));let w=Cn();Vt();let X=vr(4,Ka);return M(20),E(d.createMappedTypeNode(l,m,_,k,w,X),o)}function Lc(){let o=L();if(Le(26))return E(d.createRestTypeNode(st()),o);let l=st();if(Ny(l)&&l.pos===l.type.pos){let m=d.createOptionalTypeNode(l.type);return or(m,l),m.flags=l.flags,m}return l}function Jo(){return j()===59||p()===58&&j()===59}function ep(){return p()===26?Tt(j())&&Jo():Tt(p())&&Jo()}function Jc(){if(G(ep)){let o=L(),l=F(),m=pt(26),_=Ot(),k=pt(58);M(59);let w=Lc(),X=d.createNamedTupleMember(m,_,k,w);return Ae(E(X,o),l)}return Lc()}function tp(){let o=L();return E(d.createTupleTypeNode(qn(21,Jc,23,24)),o)}function Oc(){let o=L();M(21);let l=st();return M(22),E(d.createParenthesizedType(l),o)}function rp(){let o;if(p()===128){let l=L();j();let m=E(_e(128),l);o=Nt([m],l);}return o}function Oo(){let o=L(),l=F(),m=rp(),_=Le(105);U.assert(!m||_,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let k=pr(),w=Wr(4),X=Jr(39,false),ce=_?d.createConstructorTypeNode(m,k,w,X):d.createFunctionTypeNode(k,w,X);return Ae(E(ce,o),l)}function Mc(){let o=zt();return p()===25?void 0:o}function Mo(o){let l=L();o&&j();let m=p()===112||p()===97||p()===106?zt():la(p());return o&&(m=E(d.createPrefixUnaryExpression(41,m),l)),E(d.createLiteralTypeNode(m),l)}function np(){return j(),p()===102}function Uo(){xt|=4194304;let o=L(),l=Le(114);M(102),M(21);let m=st(),_;if(Le(28)){let X=r.getTokenStart();M(19);let ce=p();if(ce===118||ce===132?j():Ne(C._0_expected,ct(118)),M(59),_=fs(ce,true),!M(20)){let te=ya(at);te&&te.code===C._0_expected.code&&Is(te,si(It,Ve,X,1,C.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"));}}M(22);let k=Le(25)?da():void 0,w=hc();return E(d.createImportTypeNode(m,_,k,w,l),o)}function Uc(){return j(),p()===9||p()===10}function Bo(){switch(p()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return de(Mc)||Si();case 67:r.reScanAsteriskEqualsToken();case 42:return Xd();case 61:r.reScanQuestionToken();case 58:return Qd();case 100:return gc();case 54:return _c();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return Mo();case 41:return G(Uc)?Mo(true):Si();case 116:return zt();case 110:{let o=wo();return p()===142&&!r.hasPrecedingLineBreak()?Vd(o):o}case 114:return G(np)?Uo():yc();case 19:return G(Fc)?Ic():Dc();case 23:return tp();case 21:return Oc();case 102:return Uo();case 131:return G(es)?Wc():Si();case 16:return lc();default:return Si()}}function pa(o){switch(p()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return  true;case 100:return !o;case 41:return !o&&G(Uc);case 21:return !o&&G(Bc);default:return xe()}}function Bc(){return j(),p()===22||bi(false)||pa()}function Kc(){let o=L(),l=Bo();for(;!r.hasPrecedingLineBreak();)switch(p()){case 54:j(),l=E(d.createJSDocNonNullableType(l,true),o);break;case 58:if(G(Ua))return l;j(),l=E(d.createJSDocNullableType(l,true),o);break;case 23:if(M(23),pa()){let m=st();M(24),l=E(d.createIndexedAccessTypeNode(l,m),o);}else M(24),l=E(d.createArrayTypeNode(l),o);break;default:return l}return l}function jc(o){let l=L();return M(o),E(d.createTypeOperatorNode(o,Rc()),l)}function ap(){if(Le(96)){let o=Un(st);if(qe()||p()!==58)return o}}function qc(){let o=L(),l=bt(),m=de(ap),_=d.createTypeParameterDeclaration(void 0,l,m);return E(_,o)}function ip(){let o=L();return M(140),E(d.createInferTypeNode(qc()),o)}function Rc(){let o=p();switch(o){case 143:case 158:case 148:return jc(o);case 140:return ip()}return br(Kc)}function Ci(o){if(jo()){let l=Oo(),m;return r2(l)?m=o?C.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:C.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:m=o?C.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:C.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,cr(l,m),l}}function zc(o,l,m){let _=L(),k=o===52,w=Le(o),X=w&&Ci(k)||l();if(p()===o||w){let ce=[X];for(;Le(o);)ce.push(Ci(k)||l());X=E(m(Nt(ce,_)),_);}return X}function Ko(){return zc(51,Rc,d.createIntersectionTypeNode)}function op(){return zc(52,Ko,d.createUnionTypeNode)}function $c(){return j(),p()===105}function jo(){return p()===30||p()===21&&G(Gc)?true:p()===105||p()===128&&G($c)}function sp(){if(Jn(p())&&Er(false),xe()||p()===110)return j(),true;if(p()===23||p()===19){let o=at.length;return Ga(),o===at.length}return  false}function Gc(){return j(),!!(p()===22||p()===26||sp()&&(p()===59||p()===28||p()===58||p()===64||p()===22&&(j(),p()===39)))}function Ei(){let o=L(),l=xe()&&de(Hc),m=st();return l?E(d.createTypePredicateNode(void 0,l,m),o):m}function Hc(){let o=bt();if(p()===142&&!r.hasPrecedingLineBreak())return j(),o}function Wc(){let o=L(),l=Gr(131),m=p()===110?wo():bt(),_=Le(142)?st():void 0;return E(d.createTypePredicateNode(l,m,_),o)}function st(){if(rt&81920)return wt(81920,st);if(jo())return Oo();let o=L(),l=op();if(!qe()&&!r.hasPrecedingLineBreak()&&Le(96)){let m=Un(st);M(58);let _=br(st);M(59);let k=br(st);return E(d.createConditionalTypeNode(l,m,_,k),o)}return l}function Cn(){return Le(59)?st():void 0}function qo(){switch(p()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return  true;case 102:return G(Ac);default:return xe()}}function En(){if(qo())return  true;switch(p()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return  true;default:return ou()?true:xe()}}function Vc(){return p()!==19&&p()!==100&&p()!==86&&p()!==60&&En()}function Et(){let o=Ze();o&&Qe(false);let l=L(),m=jt(true),_;for(;_=pt(28);)m=$o(m,_,jt(true),l);return o&&Qe(true),m}function Nn(){return Le(64)?jt(true):void 0}function jt(o){if(Xc())return Qc();let l=up(o)||ru(o);if(l)return l;let m=L(),_=F(),k=ja(0);return k.kind===80&&p()===39?Zc(m,k,o,_,void 0):ni(k)&&jf(He())?$o(k,zt(),jt(o),m):lp(k,m,o)}function Xc(){return p()===127?Ce()?true:G(ts):false}function cp(){return j(),!r.hasPrecedingLineBreak()&&xe()}function Qc(){let o=L();return j(),!r.hasPrecedingLineBreak()&&(p()===42||En())?E(d.createYieldExpression(pt(42),jt(true)),o):E(d.createYieldExpression(void 0,void 0),o)}function Zc(o,l,m,_,k){U.assert(p()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let w=d.createParameterDeclaration(void 0,void 0,l,void 0,void 0,void 0);E(w,l.pos);let X=Nt([w],w.pos,w.end),ce=Gr(39),te=Ro(!!k,m),Y=d.createArrowFunction(k,void 0,X,void 0,ce,te);return Ae(E(Y,o),_)}function up(o){let l=Yc();if(l!==0)return l===1?au(true,true):de(()=>tu(o))}function Yc(){return p()===21||p()===30||p()===134?G(eu):p()===39?1:0}function eu(){if(p()===134&&(j(),r.hasPrecedingLineBreak()||p()!==21&&p()!==30))return 0;let o=p(),l=j();if(o===21){if(l===22)switch(j()){case 39:case 59:case 19:return 1;default:return 0}if(l===23||l===19)return 2;if(l===26)return 1;if(Jn(l)&&l!==134&&G(Ma))return j()===130?0:1;if(!xe()&&l!==110)return 0;switch(j()){case 59:return 1;case 58:return j(),p()===59||p()===28||p()===64||p()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return U.assert(o===30),!xe()&&p()!==87?0:ut===1?G(()=>{Le(87);let m=j();if(m===96)switch(j()){case 64:case 32:case 44:return  false;default:return  true}else if(m===28||m===64)return  true;return  false})?1:0:2}function tu(o){let l=r.getTokenStart();if(sr!=null&&sr.has(l))return;let m=au(false,o);return m||(sr||(sr=new Set)).add(l),m}function ru(o){if(p()===134&&G(nu)===1){let l=L(),m=F(),_=tl(),k=ja(0);return Zc(l,k,o,m,_)}}function nu(){if(p()===134){if(j(),r.hasPrecedingLineBreak()||p()===39)return 0;let o=ja(0);if(!r.hasPrecedingLineBreak()&&o.kind===80&&p()===39)return 1}return 0}function au(o,l){let m=L(),_=F(),k=tl(),w=qt(k,Ms)?2:0,X=pr(),ce;if(M(21)){if(o)ce=Io(w,o);else {let Qt=Io(w,o);if(!Qt)return;ce=Qt;}if(!M(22)&&!o)return}else {if(!o)return;ce=un();}let te=p()===59,Y=Jr(59,false);if(Y&&!o&&No(Y))return;let pe=Y;for(;(pe==null?void 0:pe.kind)===196;)pe=pe.type;let Be=pe&&wy(pe);if(!o&&p()!==39&&(Be||p()!==19))return;let Je=p(),we=Gr(39),nr=Je===39||Je===19?Ro(qt(k,Ms),l):bt();if(!l&&te&&p()!==59)return;let fr=d.createArrowFunction(k,X,ce,Y,we,nr);return Ae(E(fr,m),_)}function Ro(o,l){if(p()===19)return Pi(o?2:0);if(p()!==27&&p()!==100&&p()!==86&&Ku()&&!Vc())return Pi(16|(o?2:0));let m=Kt;Kt=false;let _=o?B(()=>jt(l)):Q(()=>jt(l));return Kt=m,_}function lp(o,l,m){let _=pt(58);if(!_)return o;let k;return E(d.createConditionalExpression(o,_,wt(i,()=>jt(false)),k=Gr(59),Gl(k)?jt(m):$t(80,false,C._0_expected,ct(59))),l)}function ja(o){let l=L(),m=fu();return zo(o,m,l)}function iu(o){return o===103||o===165}function zo(o,l,m){for(;;){He();let _=td(p());if(!(p()===43?_>=o:_>o)||p()===103&&ye())break;if(p()===130||p()===152){if(r.hasPrecedingLineBreak())break;{let k=p();j(),l=k===152?su(l,st()):cu(l,st());}}else l=$o(l,zt(),ja(_),m);}return l}function ou(){return ye()&&p()===103?false:td(p())>0}function su(o,l){return E(d.createSatisfiesExpression(o,l),o.pos)}function $o(o,l,m,_){return E(d.createBinaryExpression(o,l,m),_)}function cu(o,l){return E(d.createAsExpression(o,l),o.pos)}function uu(){let o=L();return E(d.createPrefixUnaryExpression(p(),We(wn)),o)}function lu(){let o=L();return E(d.createDeleteExpression(We(wn)),o)}function dp(){let o=L();return E(d.createTypeOfExpression(We(wn)),o)}function du(){let o=L();return E(d.createVoidExpression(We(wn)),o)}function pp(){return p()===135?Ge()?true:G(ts):false}function pu(){let o=L();return E(d.createAwaitExpression(We(wn)),o)}function fu(){if(fp()){let m=L(),_=Ni();return p()===43?zo(td(p()),_,m):_}let o=p(),l=wn();if(p()===43){let m=hn(Ve,l.pos),{end:_}=l;l.kind===216?nt(m,_,C.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(U.assert(ed(o)),nt(m,_,C.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,ct(o)));}return l}function wn(){switch(p()){case 40:case 41:case 55:case 54:return uu();case 91:return lu();case 114:return dp();case 116:return du();case 30:return ut===1?Ra(true,void 0,void 0,true):yu();case 135:if(pp())return pu();default:return Ni()}}function fp(){switch(p()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return  false;case 30:if(ut!==1)return  false;default:return  true}}function Ni(){if(p()===46||p()===47){let l=L();return E(d.createPrefixUnaryExpression(p(),We(qa)),l)}else if(ut===1&&p()===30&&G(Zs))return Ra(true);let o=qa();if(U.assert(ni(o)),(p()===46||p()===47)&&!r.hasPrecedingLineBreak()){let l=p();return j(),E(d.createPostfixUnaryExpression(o,l),o.pos)}return o}function qa(){let o=L(),l;return p()===102?G(Nc)?(xt|=4194304,l=zt()):G(wc)?(j(),j(),l=E(d.createMetaProperty(102,Ot()),o),xt|=8388608):l=wi():l=p()===108?mu():wi(),Xo(o,l)}function wi(){let o=L(),l=Qo();return rr(o,l,true)}function mu(){let o=L(),l=zt();if(p()===30){let m=L(),_=de(Di);_!==void 0&&(nt(m,L(),C.super_may_not_use_type_arguments),Cr()||(l=d.createExpressionWithTypeArguments(l,_)));}return p()===21||p()===25||p()===23?l:(Gr(25,C.super_must_be_followed_by_an_argument_list_or_member_access),E(oe(l,ua(true,true,true)),o))}function Ra(o,l,m,_=false){let k=L(),w=_p(o),X;if(w.kind===286){let ce=Ai(w),te,Y=ce[ce.length-1];if((Y==null?void 0:Y.kind)===284&&!aa(Y.openingElement.tagName,Y.closingElement.tagName)&&aa(w.tagName,Y.closingElement.tagName)){let pe=Y.children.end,Be=E(d.createJsxElement(Y.openingElement,Y.children,E(d.createJsxClosingElement(E(ie(""),pe,pe)),pe,pe)),Y.openingElement.pos,pe);ce=Nt([...ce.slice(0,ce.length-1),Be],ce.pos,pe),te=Y.closingElement;}else te=gu(w,o),aa(w.tagName,te.tagName)||(m&&g2(m)&&aa(te.tagName,m.tagName)?cr(w.tagName,C.JSX_element_0_has_no_corresponding_closing_tag,Yi(Ve,w.tagName)):cr(te.tagName,C.Expected_corresponding_JSX_closing_tag_for_0,Yi(Ve,w.tagName)));X=E(d.createJsxElement(w,ce,te),k);}else w.kind===289?X=E(d.createJsxFragment(w,Ai(w),xp(o)),k):(U.assert(w.kind===285),X=w);if(!_&&o&&p()===30){let ce=typeof l>"u"?X.pos:l,te=de(()=>Ra(true,ce));if(te){let Y=$t(28,false);return Gf(Y,te.pos,0),nt(hn(Ve,ce),te.end,C.JSX_expressions_must_have_one_parent_element),E(d.createBinaryExpression(X,Y,te),k)}}return X}function Go(){let o=L(),l=d.createJsxText(r.getTokenValue(),lt===13);return lt=r.scanJsxToken(),E(l,o)}function mp(o,l){switch(l){case 1:if(Sy(o))cr(o,C.JSX_fragment_has_no_corresponding_closing_tag);else {let m=o.tagName,_=Math.min(hn(Ve,m.pos),m.end);nt(_,m.end,C.JSX_element_0_has_no_corresponding_closing_tag,Yi(Ve,o.tagName));}return;case 31:case 7:return;case 12:case 13:return Go();case 19:return hu(false);case 30:return Ra(false,void 0,o);default:return U.assertNever(l)}}function Ai(o){let l=[],m=L(),_=gt;for(gt|=16384;;){let k=mp(o,lt=r.reScanJsxToken());if(!k||(l.push(k),g2(o)&&(k==null?void 0:k.kind)===284&&!aa(k.openingElement.tagName,k.closingElement.tagName)&&aa(o.tagName,k.closingElement.tagName)))break}return gt=_,Nt(l,m)}function hp(){let o=L();return E(d.createJsxAttributes(vr(13,_u)),o)}function _p(o){let l=L();if(M(30),p()===32)return $r(),E(d.createJsxOpeningFragment(),l);let m=Ho(),_=(rt&524288)===0?Ui():void 0,k=hp(),w;return p()===32?($r(),w=d.createJsxOpeningElement(m,_,k)):(M(44),M(32,void 0,false)&&(o?j():$r()),w=d.createJsxSelfClosingElement(m,_,k)),E(w,l)}function Ho(){let o=L(),l=gp();if(y2(l))return l;let m=l;for(;Le(25);)m=E(oe(m,ua(true,false,false)),o);return m}function gp(){let o=L();bn();let l=p()===110,m=sa();return Le(59)?(bn(),E(d.createJsxNamespacedName(m,sa()),o)):l?E(d.createToken(110),o):m}function hu(o){let l=L();if(!M(19))return;let m,_;return p()!==20&&(o||(m=pt(26)),_=Et()),o?M(20):M(20,void 0,false)&&$r(),E(d.createJsxExpression(m,_),l)}function _u(){if(p()===19)return Tp();let o=L();return E(d.createJsxAttribute(yp(),Wo()),o)}function Wo(){if(p()===64){if(La()===11)return Hr();if(p()===19)return hu(true);if(p()===30)return Ra(true);Ne(C.or_JSX_element_expected);}}function yp(){let o=L();bn();let l=sa();return Le(59)?(bn(),E(d.createJsxNamespacedName(l,sa()),o)):l}function Tp(){let o=L();M(19),M(26);let l=Et();return M(20),E(d.createJsxSpreadAttribute(l),o)}function gu(o,l){let m=L();M(31);let _=Ho();return M(32,void 0,false)&&(l||!aa(o.tagName,_)?j():$r()),E(d.createJsxClosingElement(_),m)}function xp(o){let l=L();return M(31),M(32,C.Expected_corresponding_closing_tag_for_JSX_fragment,false)&&(o?j():$r()),E(d.createJsxJsxClosingFragment(),l)}function yu(){U.assert(ut!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let o=L();M(30);let l=st();M(32);let m=wn();return E(d.createTypeAssertion(l,m),o)}function kp(){return j(),Tt(p())||p()===23||Cr()}function Tu(){return p()===29&&G(kp)}function Vo(o){if(o.flags&64)return  true;if(js(o)){let l=o.expression;for(;js(l)&&!(l.flags&64);)l=l.expression;if(l.flags&64){for(;js(o);)o.flags|=64,o=o.expression;return  true}}return  false}function xu(o,l,m){let _=ua(true,true,true),k=m||Vo(l),w=k?Ie(l,m,_):oe(l,_);if(k&&Ca(w.name)&&cr(w.name,C.An_optional_chain_cannot_contain_private_identifiers),my(l)&&l.typeArguments){let X=l.typeArguments.pos-1,ce=hn(Ve,l.typeArguments.end)+1;nt(X,ce,C.An_instantiation_expression_cannot_be_followed_by_a_property_access);}return E(w,o)}function Sp(o,l,m){let _;if(p()===24)_=$t(80,true,C.An_element_access_expression_should_take_an_argument);else {let w=ot(Et);Ps(w)&&(w.text=Kn(w.text)),_=w;}M(24);let k=m||Vo(l)?ue(l,m,_):z(l,_);return E(k,o)}function rr(o,l,m){for(;;){let _,k=false;if(m&&Tu()?(_=Gr(29),k=Tt(p())):k=Le(25),k){l=xu(o,l,_);continue}if((_||!Ze())&&Le(23)){l=Sp(o,l,_);continue}if(Cr()){l=!_&&l.kind===233?$n(o,l.expression,_,l.typeArguments):$n(o,l,_,void 0);continue}if(!_){if(p()===54&&!r.hasPrecedingLineBreak()){j(),l=E(d.createNonNullExpression(l),o);continue}let w=de(Di);if(w){l=E(d.createExpressionWithTypeArguments(l,w),o);continue}}return l}}function Cr(){return p()===15||p()===16}function $n(o,l,m,_){let k=d.createTaggedTemplateExpression(l,_,p()===15?(yt(true),Hr()):ki(true));return (m||l.flags&64)&&(k.flags|=64),k.questionDotToken=m,E(k,o)}function Xo(o,l){for(;;){l=rr(o,l,true);let m,_=pt(29);if(_&&(m=de(Di),Cr())){l=$n(o,l,_,m);continue}if(m||p()===21){!_&&l.kind===233&&(m=l.typeArguments,l=l.expression);let k=ku(),w=_||Vo(l)?ft(l,_,m,k):W(l,m,k);l=E(w,o);continue}if(_){let k=$t(80,false,C.Identifier_expected);l=E(Ie(l,_,k),o);}break}return l}function ku(){M(21);let o=dr(11,vu);return M(22),o}function Di(){if((rt&524288)!==0||Dt()!==30)return;j();let o=dr(20,st);if(He()===32)return j(),o&&bp()?o:void 0}function bp(){switch(p()){case 21:case 15:case 16:return  true;case 30:case 32:case 40:case 41:return  false}return r.hasPrecedingLineBreak()||ou()||!En()}function Qo(){switch(p()){case 15:r.getTokenFlags()&26656&&yt(false);case 9:case 10:case 11:return Hr();case 110:case 108:case 106:case 112:case 97:return zt();case 21:return vp();case 23:return Cu();case 19:return Zo();case 134:if(!G(Bu))break;return Yo();case 60:return rl();case 86:return $p();case 100:return Yo();case 105:return Nu();case 44:case 69:if(At()===14)return Hr();break;case 16:return ki(false);case 81:return _i()}return bt(C.Expression_expected)}function vp(){let o=L(),l=F();M(21);let m=ot(Et);return M(22),Ae(E(xr(m),o),l)}function Su(){let o=L();M(26);let l=jt(true);return E(d.createSpreadElement(l),o)}function bu(){return p()===26?Su():p()===28?E(d.createOmittedExpression(),L()):jt(true)}function vu(){return wt(i,bu)}function Cu(){let o=L(),l=r.getTokenStart(),m=M(23),_=r.hasPrecedingLineBreak(),k=dr(15,bu);return Bn(23,24,m,l),E(he(k,_),o)}function Eu(){let o=L(),l=F();if(pt(26)){let Y=jt(true);return Ae(E(d.createSpreadAssignment(Y),o),l)}let m=Er(true);if(ca(139))return Hn(o,l,m,177,0);if(ca(153))return Hn(o,l,m,178,0);let _=pt(42),k=xe(),w=jn(),X=pt(58),ce=pt(54);if(_||p()===21||p()===30)return ss(o,l,m,_,w,X,ce);let te;if(k&&p()!==59){let Y=pt(64),pe=Y?ot(()=>jt(true)):void 0;te=d.createShorthandPropertyAssignment(w,pe),te.equalsToken=Y;}else {M(59);let Y=ot(()=>jt(true));te=d.createPropertyAssignment(w,Y);}return te.modifiers=m,te.questionToken=X,te.exclamationToken=ce,Ae(E(te,o),l)}function Zo(){let o=L(),l=r.getTokenStart(),m=M(19),_=r.hasPrecedingLineBreak(),k=dr(12,Eu,true);return Bn(19,20,m,l),E(I(k,_),o)}function Yo(){let o=Ze();Qe(false);let l=L(),m=F(),_=Er(false);M(100);let k=pt(42),w=k?1:0,X=qt(_,Ms)?2:0,ce=w&&X?ee(za):w?zr(za):X?B(za):za(),te=pr(),Y=Wr(w|X),pe=Jr(59,false),Be=Pi(w|X);Qe(o);let Je=d.createFunctionExpression(_,k,ce,te,Y,pe,Be);return Ae(E(Je,l),m)}function za(){return je()?yo():void 0}function Nu(){let o=L();if(M(105),Le(25)){let w=Ot();return E(d.createMetaProperty(105,w),o)}let l=L(),m=rr(l,Qo(),false),_;m.kind===233&&(_=m.typeArguments,m=m.expression),p()===29&&Ne(C.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,Yi(Ve,m));let k=p()===21?ku():void 0;return E(en(m,_,k),o)}function Gn(o,l){let m=L(),_=F(),k=r.getTokenStart(),w=M(19,l);if(w||o){let X=r.hasPrecedingLineBreak(),ce=vr(1,Xt);Bn(19,20,w,k);let te=Ae(E(tn(ce,X),m),_);return p()===64&&(Ne(C.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),j()),te}else {let X=un();return Ae(E(tn(X,void 0),m),_)}}function Pi(o,l){let m=Ce();Xe(!!(o&1));let _=Ge();it(!!(o&2));let k=Kt;Kt=false;let w=Ze();w&&Qe(false);let X=Gn(!!(o&16),l);return w&&Qe(true),Kt=k,Xe(m),it(_),X}function wu(){let o=L(),l=F();return M(27),Ae(E(d.createEmptyStatement(),o),l)}function Cp(){let o=L(),l=F();M(101);let m=r.getTokenStart(),_=M(21),k=ot(Et);Bn(21,22,_,m);let w=Xt(),X=Le(93)?Xt():void 0;return Ae(E(Re(k,w,X),o),l)}function Au(){let o=L(),l=F();M(92);let m=Xt();M(117);let _=r.getTokenStart(),k=M(21),w=ot(Et);return Bn(21,22,k,_),Le(27),Ae(E(d.createDoStatement(m,w),o),l)}function Ep(){let o=L(),l=F();M(117);let m=r.getTokenStart(),_=M(21),k=ot(Et);Bn(21,22,_,m);let w=Xt();return Ae(E(rn(k,w),o),l)}function Du(){let o=L(),l=F();M(99);let m=pt(135);M(21);let _;p()!==27&&(p()===115||p()===121||p()===87||p()===160&&G(qu)||p()===135&&G(Ru)?_=os(true):_=oa(Et));let k;if(m?M(165):Le(165)){let w=ot(()=>jt(true));M(22),k=Ft(m,_,w,Xt());}else if(Le(103)){let w=ot(Et);M(22),k=d.createForInStatement(_,w,Xt());}else {M(27);let w=p()!==27&&p()!==22?ot(Et):void 0;M(27);let X=p()!==22?ot(Et):void 0;M(22),k=On(_,w,X,Xt());}return Ae(E(k,o),l)}function Pu(o){let l=L(),m=F();M(o===252?83:88);let _=on()?void 0:bt();Vt();let k=o===252?d.createBreakStatement(_):d.createContinueStatement(_);return Ae(E(k,l),m)}function Fu(){let o=L(),l=F();M(107);let m=on()?void 0:ot(Et);return Vt(),Ae(E(d.createReturnStatement(m),o),l)}function Np(){let o=L(),l=F();M(118);let m=r.getTokenStart(),_=M(21),k=ot(Et);Bn(21,22,_,m);let w=kt(67108864,Xt);return Ae(E(d.createWithStatement(k,w),o),l)}function Iu(){let o=L(),l=F();M(84);let m=ot(Et);M(59);let _=vr(3,Xt);return Ae(E(d.createCaseClause(m,_),o),l)}function wp(){let o=L();M(90),M(59);let l=vr(3,Xt);return E(d.createDefaultClause(l),o)}function Ap(){return p()===84?Iu():wp()}function Lu(){let o=L();M(19);let l=vr(2,Ap);return M(20),E(d.createCaseBlock(l),o)}function Dp(){let o=L(),l=F();M(109),M(21);let m=ot(Et);M(22);let _=Lu();return Ae(E(d.createSwitchStatement(m,_),o),l)}function Ju(){let o=L(),l=F();M(111);let m=r.hasPrecedingLineBreak()?void 0:ot(Et);return m===void 0&&(Sr++,m=E(ie(""),L())),hi()||St(m),Ae(E(d.createThrowStatement(m),o),l)}function Pp(){let o=L(),l=F();M(113);let m=Gn(false),_=p()===85?Ou():void 0,k;return (!_||p()===98)&&(M(98,C.catch_or_finally_expected),k=Gn(false)),Ae(E(d.createTryStatement(m,_,k),o),l)}function Ou(){let o=L();M(85);let l;Le(21)?(l=is(),M(22)):l=void 0;let m=Gn(false);return E(d.createCatchClause(l,m),o)}function Fp(){let o=L(),l=F();return M(89),Vt(),Ae(E(d.createDebuggerStatement(),o),l)}function Mu(){let o=L(),l=F(),m,_=p()===21,k=ot(Et);return tt(k)&&Le(59)?m=d.createLabeledStatement(k,Xt()):(hi()||St(k),m=Fr(k),_&&(l=false)),Ae(E(m,o),l)}function es(){return j(),Tt(p())&&!r.hasPrecedingLineBreak()}function Uu(){return j(),p()===86&&!r.hasPrecedingLineBreak()}function Bu(){return j(),p()===100&&!r.hasPrecedingLineBreak()}function ts(){return j(),(Tt(p())||p()===9||p()===10||p()===11)&&!r.hasPrecedingLineBreak()}function Ip(){for(;;)switch(p()){case 115:case 121:case 87:case 100:case 86:case 94:return  true;case 160:return ns();case 135:return Fi();case 120:case 156:return cp();case 144:case 145:return Gu();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let o=p();if(j(),r.hasPrecedingLineBreak())return  false;if(o===138&&p()===156)return  true;continue;case 162:return j(),p()===19||p()===80||p()===95;case 102:return j(),p()===11||p()===42||p()===19||Tt(p());case 95:let l=j();if(l===156&&(l=G(j)),l===64||l===42||l===19||l===90||l===130||l===60)return  true;continue;case 126:j();continue;default:return  false}}function $a(){return G(Ip)}function Ku(){switch(p()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return  true;case 102:return $a()||G(Ac);case 87:case 95:return $a();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return  true;case 129:case 125:case 123:case 124:case 126:case 148:return $a()||!G(es);default:return En()}}function ju(){return j(),je()||p()===19||p()===23}function Lp(){return G(ju)}function qu(){return rs(true)}function rs(o){return j(),o&&p()===165?false:(je()||p()===19)&&!r.hasPrecedingLineBreak()}function ns(){return G(rs)}function Ru(o){return j()===160?rs(o):false}function Fi(){return G(Ru)}function Xt(){switch(p()){case 27:return wu();case 19:return Gn(false);case 115:return fa(L(),F(),void 0);case 121:if(Lp())return fa(L(),F(),void 0);break;case 135:if(Fi())return fa(L(),F(),void 0);break;case 160:if(ns())return fa(L(),F(),void 0);break;case 100:return Xu(L(),F(),void 0);case 86:return nl(L(),F(),void 0);case 101:return Cp();case 92:return Au();case 117:return Ep();case 99:return Du();case 88:return Pu(251);case 83:return Pu(252);case 107:return Fu();case 118:return Np();case 109:return Dp();case 111:return Ju();case 113:case 85:case 98:return Pp();case 89:return Fp();case 60:return zu();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if($a())return zu();break}return Mu()}function as(o){return o.kind===138}function zu(){let o=L(),l=F(),m=Er(true);if(qt(m,as)){let _=Ii(o);if(_)return _;for(let k of m)k.flags|=33554432;return kt(33554432,()=>$u(o,l,m))}else return $u(o,l,m)}function Ii(o){return kt(33554432,()=>{let l=Ti(gt,o);if(l)return tc(l)})}function $u(o,l,m){switch(p()){case 115:case 121:case 87:case 160:case 135:return fa(o,l,m);case 100:return Xu(o,l,m);case 86:return nl(o,l,m);case 120:return ol(o,l,m);case 156:return Xp(o,l,m);case 94:return ls(o,l,m);case 162:case 144:case 145:return Zp(o,l,m);case 102:return t1(o,l,m);case 95:switch(j(),p()){case 90:case 64:return ml(o,l,m);case 130:return e1(o,l,m);default:return l1(o,l,m)}default:if(m){let _=$t(282,true,C.Declaration_expected);return od(_,o),_.modifiers=m,_}return}}function Jp(){return j()===11}function Op(){return j(),p()===161||p()===64}function Gu(){return j(),!r.hasPrecedingLineBreak()&&(xe()||p()===11)}function Li(o,l){if(p()!==19){if(o&4){vi();return}if(on()){Vt();return}}return Pi(o,l)}function Hu(){let o=L();if(p()===28)return E(d.createOmittedExpression(),o);let l=pt(26),m=Ga(),_=Nn();return E(d.createBindingElement(l,void 0,m,_),o)}function Mp(){let o=L(),l=pt(26),m=je(),_=jn(),k;m&&p()!==59?(k=_,_=void 0):(M(59),k=Ga());let w=Nn();return E(d.createBindingElement(l,_,k,w),o)}function Wu(){let o=L();M(19);let l=ot(()=>dr(9,Mp));return M(20),E(d.createObjectBindingPattern(l),o)}function Up(){let o=L();M(23);let l=ot(()=>dr(10,Hu));return M(24),E(d.createArrayBindingPattern(l),o)}function Ji(){return p()===19||p()===23||p()===81||je()}function Ga(o){return p()===23?Up():p()===19?Wu():yo(o)}function Vu(){return is(true)}function is(o){let l=L(),m=F(),_=Ga(C.Private_identifiers_are_not_allowed_in_variable_declarations),k;o&&_.kind===80&&p()===54&&!r.hasPrecedingLineBreak()&&(k=zt());let w=Cn(),X=iu(p())?void 0:Nn(),ce=Br(_,k,w,X);return Ae(E(ce,l),m)}function os(o){let l=L(),m=0;switch(p()){case 115:break;case 121:m|=1;break;case 87:m|=2;break;case 160:m|=4;break;case 135:U.assert(Fi()),m|=6,j();break;default:U.fail();}j();let _;if(p()===165&&G(Bp))_=un();else {let k=ye();Se(o),_=dr(8,o?is:Vu),Se(k);}return E(Ir(_,m),l)}function Bp(){return Ma()&&j()===22}function fa(o,l,m){let _=os(false);Vt();let k=kr(m,_);return Ae(E(k,o),l)}function Xu(o,l,m){let _=Ge(),k=Dr(m);M(100);let w=pt(42),X=k&2048?za():yo(),ce=w?1:0,te=k&1024?2:0,Y=pr();k&32&&it(true);let pe=Wr(ce|te),Be=Jr(59,false),Je=Li(ce|te,C.or_expected);it(_);let we=d.createFunctionDeclaration(m,w,X,Y,pe,Be,Je);return Ae(E(we,o),l)}function Qu(){if(p()===137)return M(137);if(p()===11&&G(j)===21)return de(()=>{let o=Hr();return o.text==="constructor"?o:void 0})}function Kp(o,l,m){return de(()=>{if(Qu()){let _=pr(),k=Wr(0),w=Jr(59,false),X=Li(0,C.or_expected),ce=d.createConstructorDeclaration(m,k,X);return ce.typeParameters=_,ce.type=w,Ae(E(ce,o),l)}})}function ss(o,l,m,_,k,w,X,ce){let te=_?1:0,Y=qt(m,Ms)?2:0,pe=pr(),Be=Wr(te|Y),Je=Jr(59,false),we=Li(te|Y,ce),nr=d.createMethodDeclaration(m,_,k,w,pe,Be,Je,we);return nr.exclamationToken=X,Ae(E(nr,o),l)}function Zu(o,l,m,_,k){let w=!k&&!r.hasPrecedingLineBreak()?pt(54):void 0,X=Cn(),ce=wt(90112,Nn);Od(_,X,ce);let te=d.createPropertyDeclaration(m,_,k||w,X,ce);return Ae(E(te,o),l)}function Oi(o,l,m){let _=pt(42),k=jn(),w=pt(58);return _||p()===21||p()===30?ss(o,l,m,_,k,w,void 0,C.or_expected):Zu(o,l,m,k,w)}function Hn(o,l,m,_,k){let w=jn(),X=pr(),ce=Wr(0),te=Jr(59,false),Y=Li(k),pe=_===177?d.createGetAccessorDeclaration(m,w,ce,te,Y):d.createSetAccessorDeclaration(m,w,ce,Y);return pe.typeParameters=X,Ks(pe)&&(pe.type=te),Ae(E(pe,o),l)}function jp(){let o;if(p()===60)return  true;for(;Jn(p());){if(o=p(),Lh(o))return  true;j();}if(p()===42||(vn()&&(o=p(),j()),p()===23))return  true;if(o!==void 0){if(!ea(o)||o===153||o===139)return  true;switch(p()){case 21:case 30:case 54:case 59:case 64:case 58:return  true;default:return on()}}return  false}function Yu(o,l,m){Gr(126);let _=qp(),k=Ae(E(d.createClassStaticBlockDeclaration(_),o),l);return k.modifiers=m,k}function qp(){let o=Ce(),l=Ge();Xe(false),it(true);let m=Gn(false);return Xe(o),it(l),m}function Rp(){if(Ge()&&p()===135){let o=L(),l=bt(C.Expression_expected);j();let m=rr(o,l,true);return Xo(o,m)}return qa()}function cs(){let o=L();if(!Le(60))return;let l=Ia(Rp);return E(d.createDecorator(l),o)}function el(o,l,m){let _=L(),k=p();if(p()===87&&l){if(!de(To))return}else if(m&&p()===126&&G(ll)||o&&p()===126||!Xs())return;return E(_e(k),_)}function Er(o,l,m){let _=L(),k,w,X,ce=false,te=false,Y=false;if(o&&p()===60)for(;w=cs();)k=hr(k,w);for(;X=el(ce,l,m);)X.kind===126&&(ce=true),k=hr(k,X),te=true;if(te&&o&&p()===60)for(;w=cs();)k=hr(k,w),Y=true;if(Y)for(;X=el(ce,l,m);)X.kind===126&&(ce=true),k=hr(k,X);return k&&Nt(k,_)}function tl(){let o;if(p()===134){let l=L();j();let m=E(_e(134),l);o=Nt([m],l);}return o}function zp(){let o=L(),l=F();if(p()===27)return j(),Ae(E(d.createSemicolonClassElement(),o),l);let m=Er(true,true,true);if(p()===126&&G(ll))return Yu(o,l,m);if(ca(139))return Hn(o,l,m,177,0);if(ca(153))return Hn(o,l,m,178,0);if(p()===137||p()===11){let _=Kp(o,l,m);if(_)return _}if(zn())return Lo(o,l,m);if(Tt(p())||p()===11||p()===9||p()===10||p()===42||p()===23)if(qt(m,as)){for(let _ of m)_.flags|=33554432;return kt(33554432,()=>Oi(o,l,m))}else return Oi(o,l,m);if(m){let _=$t(80,true,C.Declaration_expected);return Zu(o,l,m,_,void 0)}return U.fail("Should not have attempted to parse class member declaration.")}function rl(){let o=L(),l=F(),m=Er(true);if(p()===86)return Mi(o,l,m,231);let _=$t(282,true,C.Expression_expected);return od(_,o),_.modifiers=m,_}function $p(){return Mi(L(),F(),void 0,231)}function nl(o,l,m){return Mi(o,l,m,263)}function Mi(o,l,m,_){let k=Ge();M(86);let w=Gp(),X=pr();qt(m,Jg)&&it(true);let ce=us(),te;M(19)?(te=il(),M(20)):te=un(),it(k);let Y=_===263?d.createClassDeclaration(m,w,X,ce,te):d.createClassExpression(m,w,X,ce,te);return Ae(E(Y,o),l)}function Gp(){return je()&&!Hp()?sn(je()):void 0}function Hp(){return p()===119&&G(zd)}function us(){if(al())return vr(22,Wp)}function Wp(){let o=L(),l=p();U.assert(l===96||l===119),j();let m=dr(7,Vp);return E(d.createHeritageClause(l,m),o)}function Vp(){let o=L(),l=qa();if(l.kind===233)return l;let m=Ui();return E(d.createExpressionWithTypeArguments(l,m),o)}function Ui(){return p()===30?qn(20,st,30,32):void 0}function al(){return p()===96||p()===119}function il(){return vr(5,zp)}function ol(o,l,m){M(120);let _=bt(),k=pr(),w=us(),X=Pc(),ce=d.createInterfaceDeclaration(m,_,k,w,X);return Ae(E(ce,o),l)}function Xp(o,l,m){M(156),r.hasPrecedingLineBreak()&&Ne(C.Line_break_not_permitted_here);let _=bt(),k=pr();M(64);let w=p()===141&&de(Mc)||st();Vt();let X=d.createTypeAliasDeclaration(m,_,k,w);return Ae(E(X,o),l)}function Qp(){let o=L(),l=F(),m=jn(),_=ot(Nn);return Ae(E(d.createEnumMember(m,_),o),l)}function ls(o,l,m){M(94);let _=bt(),k;M(19)?(k=be(()=>dr(6,Qp)),M(20)):k=un();let w=d.createEnumDeclaration(m,_,k);return Ae(E(w,o),l)}function sl(){let o=L(),l;return M(19)?(l=vr(1,Xt),M(20)):l=un(),E(d.createModuleBlock(l),o)}function ds(o,l,m,_){let k=_&32,w=_&8?Ot():bt(),X=Le(25)?ds(L(),false,void 0,8|k):sl(),ce=d.createModuleDeclaration(m,w,X,_);return Ae(E(ce,o),l)}function cl(o,l,m){let _=0,k;p()===162?(k=bt(),_|=2048):(k=Hr(),k.text=Kn(k.text));let w;p()===19?w=sl():Vt();let X=d.createModuleDeclaration(m,k,w,_);return Ae(E(X,o),l)}function Zp(o,l,m){let _=0;if(p()===162)return cl(o,l,m);if(Le(145))_|=32;else if(M(144),p()===11)return cl(o,l,m);return ds(o,l,m,_)}function Yp(){return p()===149&&G(ul)}function ul(){return j()===21}function ll(){return j()===19}function ps(){return j()===44}function e1(o,l,m){M(130),M(145);let _=bt();Vt();let k=d.createNamespaceExportDeclaration(_);return k.modifiers=m,Ae(E(k,o),l)}function t1(o,l,m){M(102);let _=r.getTokenFullStart(),k;xe()&&(k=bt());let w=false;if((k==null?void 0:k.escapedText)==="type"&&(p()!==161||xe()&&G(Op))&&(xe()||n1())&&(w=true,k=xe()?bt():void 0),k&&!Wn())return a1(o,l,m,k,w);let X=ma(k,_,w),ce=Wa(),te=dl();Vt();let Y=d.createImportDeclaration(m,X,ce,te);return Ae(E(Y,o),l)}function ma(o,l,m,_=false){let k;return (o||p()===42||p()===19)&&(k=i1(o,l,m,_),M(161)),k}function dl(){let o=p();if((o===118||o===132)&&!r.hasPrecedingLineBreak())return fs(o)}function r1(){let o=L(),l=Tt(p())?Ot():la(11);M(59);let m=jt(true);return E(d.createImportAttribute(l,m),o)}function fs(o,l){let m=L();l||M(o);let _=r.getTokenStart();if(M(19)){let k=r.hasPrecedingLineBreak(),w=dr(24,r1,true);if(!M(20)){let X=ya(at);X&&X.code===C._0_expected.code&&Is(X,si(It,Ve,_,1,C.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"));}return E(d.createImportAttributes(w,k,o),m)}else {let k=Nt([],L(),void 0,false);return E(d.createImportAttributes(k,false,o),m)}}function n1(){return p()===42||p()===19}function Wn(){return p()===28||p()===161}function a1(o,l,m,_,k){M(64);let w=o1();Vt();let X=d.createImportEqualsDeclaration(m,k,_,w);return Ae(E(X,o),l)}function i1(o,l,m,_){let k;return (!o||Le(28))&&(_&&r.setSkipJsDocLeadingAsterisks(true),k=p()===42?s1():pl(275),_&&r.setSkipJsDocLeadingAsterisks(false)),E(d.createImportClause(m,o,k),l)}function o1(){return Yp()?Ha():Rn(false)}function Ha(){let o=L();M(149),M(21);let l=Wa();return M(22),E(d.createExternalModuleReference(l),o)}function Wa(){if(p()===11){let o=Hr();return o.text=Kn(o.text),o}else return Et()}function s1(){let o=L();M(42),M(130);let l=bt();return E(d.createNamespaceImport(l),o)}function ms(){return Tt(p())||p()===11}function ha(o){return p()===11?Hr():o()}function pl(o){let l=L(),m=o===275?d.createNamedImports(qn(23,_a,19,20)):d.createNamedExports(qn(23,c1,19,20));return E(m,l)}function c1(){let o=F();return Ae(fl(281),o)}function _a(){return fl(276)}function fl(o){let l=L(),m=ea(p())&&!xe(),_=r.getTokenStart(),k=r.getTokenEnd(),w=false,X,ce=true,te=ha(Ot);if(te.kind===80&&te.escapedText==="type")if(p()===130){let Be=Ot();if(p()===130){let Je=Ot();ms()?(w=true,X=Be,te=ha(pe),ce=false):(X=te,te=Je,ce=false);}else ms()?(X=te,ce=false,te=ha(pe)):(w=true,te=Be);}else ms()&&(w=true,te=ha(pe));ce&&p()===130&&(X=te,M(130),te=ha(pe)),o===276&&(te.kind!==80?(nt(hn(Ve,te.pos),te.end,C.Identifier_expected),te=ta($t(80,false),te.pos,te.pos)):m&&nt(_,k,C.Identifier_expected));let Y=o===276?d.createImportSpecifier(w,X,te):d.createExportSpecifier(w,X,te);return E(Y,l);function pe(){return m=ea(p())&&!xe(),_=r.getTokenStart(),k=r.getTokenEnd(),Ot()}}function u1(o){return E(d.createNamespaceExport(ha(Ot)),o)}function l1(o,l,m){let _=Ge();it(true);let k,w,X,ce=Le(156),te=L();Le(42)?(Le(130)&&(k=u1(te)),M(161),w=Wa()):(k=pl(279),(p()===161||p()===11&&!r.hasPrecedingLineBreak())&&(M(161),w=Wa()));let Y=p();w&&(Y===118||Y===132)&&!r.hasPrecedingLineBreak()&&(X=fs(Y)),Vt(),it(_);let pe=d.createExportDeclaration(m,ce,k,w,X);return Ae(E(pe,o),l)}function ml(o,l,m){let _=Ge();it(true);let k;Le(64)?k=true:M(90);let w=jt(true);Vt(),it(_);let X=d.createExportAssignment(m,k,w);return Ae(E(X,o),l)}let hs;(o=>{o[o.SourceElements=0]="SourceElements",o[o.BlockStatements=1]="BlockStatements",o[o.SwitchClauses=2]="SwitchClauses",o[o.SwitchClauseStatements=3]="SwitchClauseStatements",o[o.TypeMembers=4]="TypeMembers",o[o.ClassMembers=5]="ClassMembers",o[o.EnumMembers=6]="EnumMembers",o[o.HeritageClauseElement=7]="HeritageClauseElement",o[o.VariableDeclarations=8]="VariableDeclarations",o[o.ObjectBindingElements=9]="ObjectBindingElements",o[o.ArrayBindingElements=10]="ArrayBindingElements",o[o.ArgumentExpressions=11]="ArgumentExpressions",o[o.ObjectLiteralMembers=12]="ObjectLiteralMembers",o[o.JsxAttributes=13]="JsxAttributes",o[o.JsxChildren=14]="JsxChildren",o[o.ArrayLiteralMembers=15]="ArrayLiteralMembers",o[o.Parameters=16]="Parameters",o[o.JSDocParameters=17]="JSDocParameters",o[o.RestProperties=18]="RestProperties",o[o.TypeParameters=19]="TypeParameters",o[o.TypeArguments=20]="TypeArguments",o[o.TupleElementTypes=21]="TupleElementTypes",o[o.HeritageClauses=22]="HeritageClauses",o[o.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",o[o.ImportAttributes=24]="ImportAttributes",o[o.JSDocComment=25]="JSDocComment",o[o.Count=26]="Count";})(hs||(hs={}));let _s;(o=>{o[o.False=0]="False",o[o.True=1]="True",o[o.Unknown=2]="Unknown";})(_s||(_s={}));let hl;(o=>{function l(Y,pe,Be){jr("file.js",Y,99,void 0,1,0),r.setText(Y,pe,Be),lt=r.scan();let Je=m(),we=se("file.js",99,1,false,[],_e(1),0,gs),nr=va(at,we);return Bt&&(we.jsDocDiagnostics=va(Bt,we)),qr(),Je?{jsDocTypeExpression:Je,diagnostics:nr}:void 0}o.parseJSDocTypeExpressionForTests=l;function m(Y){let pe=L(),Be=(Y?Le:M)(19),Je=kt(16777216,Do);(!Y||Be)&&Hs(20);let we=d.createJSDocTypeExpression(Je);return O(we),E(we,pe)}o.parseJSDocTypeExpression=m;function _(){let Y=L(),pe=Le(19),Be=L(),Je=Rn(false);for(;p()===81;)Wt(),Ye(),Je=E(d.createJSDocMemberName(Je,bt()),Be);pe&&Hs(20);let we=d.createJSDocNameReference(Je);return O(we),E(we,Y)}o.parseJSDocNameReference=_;function k(Y,pe,Be){jr("",Y,99,void 0,1,0);let Je=kt(16777216,()=>te(pe,Be)),we=va(at,{languageVariant:0,text:Y});return qr(),Je?{jsDoc:Je,diagnostics:we}:void 0}o.parseIsolatedJSDocComment=k;function w(Y,pe,Be){let Je=lt,we=at.length,nr=tr,fr=kt(16777216,()=>te(pe,Be));return sd(fr,Y),rt&524288&&(Bt||(Bt=[]),_r(Bt,at,we)),lt=Je,at.length=we,tr=nr,fr}o.parseJSDocComment=w;let X;(Y=>{Y[Y.BeginningOfLine=0]="BeginningOfLine",Y[Y.SawAsterisk=1]="SawAsterisk",Y[Y.SavingComments=2]="SavingComments",Y[Y.SavingBackticks=3]="SavingBackticks";})(X||(X={}));let ce;(Y=>{Y[Y.Property=1]="Property",Y[Y.Parameter=2]="Parameter",Y[Y.CallbackParameter=4]="CallbackParameter";})(ce||(ce={}));function te(Y=0,pe){let Be=Ve,Je=pe===void 0?Be.length:Y+pe;if(pe=Je-Y,U.assert(Y>=0),U.assert(Y<=Je),U.assert(Je<=Be.length),!Yy(Be,Y))return;let we,nr,fr,Qt,ln,Or=[],Vn=[],d1=gt;gt|=1<<25;let De=r.scanRange(Y+3,pe-5,et);return gt=d1,De;function et(){let D=1,H,V=Y-(Be.lastIndexOf(`
`,Y)+1)+4;function ne(Ke){H||(H=V),Or.push(Ke),V+=Ke.length;}for(Ye();Xa(5););Xa(4)&&(D=0,V=0);e:for(;;){switch(p()){case 60:Bi(Or),ln||(ln=L()),fe(K(V)),D=0,H=void 0;break;case 4:Or.push(r.getTokenText()),D=0,V=0;break;case 42:let Ke=r.getTokenText();D===1?(D=2,ne(Ke)):(U.assert(D===0),D=1,V+=Ke.length);break;case 5:U.assert(D!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let dt=r.getTokenText();H!==void 0&&V+dt.length>H&&Or.push(dt.slice(H-V)),V+=dt.length;break;case 1:break e;case 82:D=2,ne(r.getTokenValue());break;case 19:D=2;let mr=r.getTokenFullStart(),ar=r.getTokenEnd()-1,Yt=a(ar);if(Yt){Qt||dn(Or),Vn.push(E(d.createJSDocText(Or.join("")),Qt??Y,mr)),Vn.push(Yt),Or=[],Qt=r.getTokenEnd();break}default:D=2,ne(r.getTokenText());break}D===2?ze(false):Ye();}let re=Or.join("").trimEnd();Vn.length&&re.length&&Vn.push(E(d.createJSDocText(re),Qt??Y,ln)),Vn.length&&we&&U.assertIsDefined(ln,"having parsed tags implies that the end of the comment span should be set");let Pe=we&&Nt(we,nr,fr);return E(d.createJSDocComment(Vn.length?Nt(Vn,Y,ln):re.length?re:void 0,Pe),Y,Je)}function dn(D){for(;D.length&&(D[0]===`
`||D[0]==="\r");)D.shift();}function Bi(D){for(;D.length;){let H=D[D.length-1].trimEnd();if(H==="")D.pop();else if(H.length<D[D.length-1].length){D[D.length-1]=H;break}else break}}function _l(){for(;;){if(Ye(),p()===1)return  true;if(!(p()===5||p()===4))return  false}}function Pt(){if(!((p()===5||p()===4)&&G(_l)))for(;p()===5||p()===4;)Ye();}function An(){if((p()===5||p()===4)&&G(_l))return "";let D=r.hasPrecedingLineBreak(),H=false,V="";for(;D&&p()===42||p()===5||p()===4;)V+=r.getTokenText(),p()===4?(D=true,H=true,V=""):p()===42&&(D=false),Ye();return H?V:""}function K(D){U.assert(p()===60);let H=r.getTokenStart();Ye();let V=ga(void 0),ne=An(),re;switch(V.escapedText){case "author":re=O3(H,V,D,ne);break;case "implements":re=U3(H,V,D,ne);break;case "augments":case "extends":re=B3(H,V,D,ne);break;case "class":case "constructor":re=Va(H,d.createJSDocClassTag,V,D,ne);break;case "public":re=Va(H,d.createJSDocPublicTag,V,D,ne);break;case "private":re=Va(H,d.createJSDocPrivateTag,V,D,ne);break;case "protected":re=Va(H,d.createJSDocProtectedTag,V,D,ne);break;case "readonly":re=Va(H,d.createJSDocReadonlyTag,V,D,ne);break;case "override":re=Va(H,d.createJSDocOverrideTag,V,D,ne);break;case "deprecated":Rr=true,re=Va(H,d.createJSDocDeprecatedTag,V,D,ne);break;case "this":re=Fm(H,V,D,ne);break;case "enum":re=R3(H,V,D,ne);break;case "arg":case "argument":case "param":return Vr(H,V,2,D);case "return":case "returns":re=I3(H,V,D,ne);break;case "template":re=Lm(H,V,D,ne);break;case "type":re=Dm(H,V,D,ne);break;case "typedef":re=z3(H,V,D,ne);break;case "callback":re=G3(H,V,D,ne);break;case "overload":re=H3(H,V,D,ne);break;case "satisfies":re=K3(H,V,D,ne);break;case "see":re=L3(H,V,D,ne);break;case "exception":case "throws":re=J3(H,V,D,ne);break;case "import":re=j3(H,V,D,ne);break;default:re=R(H,V,D,ne);break}return re}function t(D,H,V,ne){return ne||(V+=H-D),n(V,ne.slice(V))}function n(D,H){let V=L(),ne=[],re=[],Pe,Ke=0,dt;function mr(Xr){dt||(dt=D),ne.push(Xr),D+=Xr.length;}H!==void 0&&(H!==""&&mr(H),Ke=1);let ar=p();e:for(;;){switch(ar){case 4:Ke=0,ne.push(r.getTokenText()),D=0;break;case 60:r.resetTokenState(r.getTokenEnd()-1);break e;case 1:break e;case 5:U.assert(Ke!==2&&Ke!==3,"whitespace shouldn't come from the scanner while saving comment text");let Xr=r.getTokenText();dt!==void 0&&D+Xr.length>dt&&(ne.push(Xr.slice(dt-D)),Ke=2),D+=Xr.length;break;case 19:Ke=2;let gl=r.getTokenFullStart(),ji=r.getTokenEnd()-1,yl=a(ji);yl?(re.push(E(d.createJSDocText(ne.join("")),Pe??V,gl)),re.push(yl),ne=[],Pe=r.getTokenEnd()):mr(r.getTokenText());break;case 62:Ke===3?Ke=2:Ke=3,mr(r.getTokenText());break;case 82:Ke!==3&&(Ke=2),mr(r.getTokenValue());break;case 42:if(Ke===0){Ke=1,D+=1;break}default:Ke!==3&&(Ke=2),mr(r.getTokenText());break}Ke===2||Ke===3?ar=ze(Ke===3):ar=Ye();}dn(ne);let Yt=ne.join("").trimEnd();if(re.length)return Yt.length&&re.push(E(d.createJSDocText(Yt),Pe??V)),Nt(re,V,r.getTokenEnd());if(Yt.length)return Yt}function a(D){let H=de(f);if(!H)return;Ye(),Pt();let V=s(),ne=[];for(;p()!==20&&p()!==4&&p()!==1;)ne.push(r.getTokenText()),Ye();let re=H==="link"?d.createJSDocLink:H==="linkcode"?d.createJSDocLinkCode:d.createJSDocLinkPlain;return E(re(V,ne.join("")),D,r.getTokenEnd())}function s(){if(Tt(p())){let D=L(),H=Ot();for(;Le(25);)H=E(d.createQualifiedName(H,p()===81?$t(80,false):Ot()),D);for(;p()===81;)Wt(),Ye(),H=E(d.createJSDocMemberName(H,bt()),D);return H}}function f(){if(An(),p()===19&&Ye()===60&&Tt(Ye())){let D=r.getTokenValue();if(x(D))return D}}function x(D){return D==="link"||D==="linkcode"||D==="linkplain"}function R(D,H,V,ne){return E(d.createJSDocUnknownTag(H,t(D,L(),V,ne)),D)}function fe(D){D&&(we?we.push(D):(we=[D],nr=D.pos),fr=D.end);}function Oe(){return An(),p()===19?m():void 0}function Zt(){let D=Xa(23);D&&Pt();let H=Xa(62),V=Y3();return H&&Ud(62),D&&(Pt(),pt(64)&&Et(),M(24)),{name:V,isBracketed:D}}function Nr(D){switch(D.kind){case 151:return  true;case 188:return Nr(D.elementType);default:return t2(D)&&tt(D.typeName)&&D.typeName.escapedText==="Object"&&!D.typeArguments}}function Vr(D,H,V,ne){let re=Oe(),Pe=!re;An();let{name:Ke,isBracketed:dt}=Zt(),mr=An();Pe&&!G(f)&&(re=Oe());let ar=t(D,L(),ne,mr),Yt=Ki(re,Ke,V,ne);Yt&&(re=Yt,Pe=true);let Xr=V===1?d.createJSDocPropertyTag(H,Ke,dt,re,Pe,ar):d.createJSDocParameterTag(H,Ke,dt,re,Pe,ar);return E(Xr,D)}function Ki(D,H,V,ne){if(D&&Nr(D.type)){let re=L(),Pe,Ke;for(;Pe=de(()=>f1(V,ne,H));)Pe.kind===341||Pe.kind===348?Ke=hr(Ke,Pe):Pe.kind===345&&cr(Pe.tagName,C.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Ke){let dt=E(d.createJSDocTypeLiteral(Ke,D.type.kind===188),re);return E(d.createJSDocTypeExpression(dt),re)}}}function I3(D,H,V,ne){qt(we,Uy)&&nt(H.pos,r.getTokenStart(),C._0_tag_already_specified,Qi(H.escapedText));let re=Oe();return E(d.createJSDocReturnTag(H,re,t(D,L(),V,ne)),D)}function Dm(D,H,V,ne){qt(we,gd)&&nt(H.pos,r.getTokenStart(),C._0_tag_already_specified,Qi(H.escapedText));let re=m(true),Pe=V!==void 0&&ne!==void 0?t(D,L(),V,ne):void 0;return E(d.createJSDocTypeTag(H,re,Pe),D)}function L3(D,H,V,ne){let re=p()===23||G(()=>Ye()===60&&Tt(Ye())&&x(r.getTokenValue()))?void 0:_(),Pe=V!==void 0&&ne!==void 0?t(D,L(),V,ne):void 0;return E(d.createJSDocSeeTag(H,re,Pe),D)}function J3(D,H,V,ne){let re=Oe(),Pe=t(D,L(),V,ne);return E(d.createJSDocThrowsTag(H,re,Pe),D)}function O3(D,H,V,ne){let re=L(),Pe=M3(),Ke=r.getTokenFullStart(),dt=t(D,Ke,V,ne);dt||(Ke=r.getTokenFullStart());let mr=typeof dt!="string"?Nt(Sl([E(Pe,re,Ke)],dt),re):Pe.text+dt;return E(d.createJSDocAuthorTag(H,mr),D)}function M3(){let D=[],H=false,V=r.getToken();for(;V!==1&&V!==4;){if(V===30)H=true;else {if(V===60&&!H)break;if(V===32&&H){D.push(r.getTokenText()),r.resetTokenState(r.getTokenEnd());break}}D.push(r.getTokenText()),V=Ye();}return d.createJSDocText(D.join(""))}function U3(D,H,V,ne){let re=Pm();return E(d.createJSDocImplementsTag(H,re,t(D,L(),V,ne)),D)}function B3(D,H,V,ne){let re=Pm();return E(d.createJSDocAugmentsTag(H,re,t(D,L(),V,ne)),D)}function K3(D,H,V,ne){let re=m(false),Pe=V!==void 0&&ne!==void 0?t(D,L(),V,ne):void 0;return E(d.createJSDocSatisfiesTag(H,re,Pe),D)}function j3(D,H,V,ne){let re=r.getTokenFullStart(),Pe;xe()&&(Pe=bt());let Ke=ma(Pe,re,true,true),dt=Wa(),mr=dl(),ar=V!==void 0&&ne!==void 0?t(D,L(),V,ne):void 0;return E(d.createJSDocImportTag(H,Ke,dt,mr,ar),D)}function Pm(){let D=Le(19),H=L(),V=q3();r.setSkipJsDocLeadingAsterisks(true);let ne=Ui();r.setSkipJsDocLeadingAsterisks(false);let re=d.createExpressionWithTypeArguments(V,ne),Pe=E(re,H);return D&&M(20),Pe}function q3(){let D=L(),H=ga();for(;Le(25);){let V=ga();H=E(oe(H,V),D);}return H}function Va(D,H,V,ne,re){return E(H(V,t(D,L(),ne,re)),D)}function Fm(D,H,V,ne){let re=m(true);return Pt(),E(d.createJSDocThisTag(H,re,t(D,L(),V,ne)),D)}function R3(D,H,V,ne){let re=m(true);return Pt(),E(d.createJSDocEnumTag(H,re,t(D,L(),V,ne)),D)}function z3(D,H,V,ne){let re=Oe();An();let Pe=p1();Pt();let Ke=n(V),dt;if(!re||Nr(re.type)){let ar,Yt,Xr,gl=false;for(;(ar=de(()=>V3(V)))&&ar.kind!==345;)if(gl=true,ar.kind===344)if(Yt){let ji=Ne(C.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);ji&&Is(ji,si(It,Ve,0,0,C.The_tag_was_first_specified_here));break}else Yt=ar;else Xr=hr(Xr,ar);if(gl){let ji=re&&re.type.kind===188,yl=d.createJSDocTypeLiteral(Xr,ji);re=Yt&&Yt.typeExpression&&!Nr(Yt.typeExpression.type)?Yt.typeExpression:E(yl,D),dt=re.end;}}dt=dt||Ke!==void 0?L():(Pe??re??H).end,Ke||(Ke=t(D,dt,V,ne));let mr=d.createJSDocTypedefTag(H,re,Pe,Ke);return E(mr,D,dt)}function p1(D){let H=r.getTokenStart();if(!Tt(p()))return;let V=ga();if(Le(25)){let ne=p1(true),re=d.createModuleDeclaration(void 0,V,ne,D?8:void 0);return E(re,H)}return D&&(V.flags|=4096),V}function $3(D){let H=L(),V,ne;for(;V=de(()=>f1(4,D));){if(V.kind===345){cr(V.tagName,C.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}ne=hr(ne,V);}return Nt(ne||[],H)}function Im(D,H){let V=$3(H),ne=de(()=>{if(Xa(60)){let re=K(H);if(re&&re.kind===342)return re}});return E(d.createJSDocSignature(void 0,V,ne),D)}function G3(D,H,V,ne){let re=p1();Pt();let Pe=n(V),Ke=Im(D,V);Pe||(Pe=t(D,L(),V,ne));let dt=Pe!==void 0?L():Ke.end;return E(d.createJSDocCallbackTag(H,Ke,re,Pe),D,dt)}function H3(D,H,V,ne){Pt();let re=n(V),Pe=Im(D,V);re||(re=t(D,L(),V,ne));let Ke=re!==void 0?L():Pe.end;return E(d.createJSDocOverloadTag(H,Pe,re),D,Ke)}function W3(D,H){for(;!tt(D)||!tt(H);)if(!tt(D)&&!tt(H)&&D.right.escapedText===H.right.escapedText)D=D.left,H=H.left;else return  false;return D.escapedText===H.escapedText}function V3(D){return f1(1,D)}function f1(D,H,V){let ne=true,re=false;for(;;)switch(Ye()){case 60:if(ne){let Pe=X3(D,H);return Pe&&(Pe.kind===341||Pe.kind===348)&&V&&(tt(Pe.name)||!W3(V,Pe.name.left))?false:Pe}re=false;break;case 4:ne=true,re=false;break;case 42:re&&(ne=false),re=true;break;case 80:ne=false;break;case 1:return  false}}function X3(D,H){U.assert(p()===60);let V=r.getTokenFullStart();Ye();let ne=ga(),re=An(),Pe;switch(ne.escapedText){case "type":return D===1&&Dm(V,ne);case "prop":case "property":Pe=1;break;case "arg":case "argument":case "param":Pe=6;break;case "template":return Lm(V,ne,H,re);case "this":return Fm(V,ne,H,re);default:return  false}return D&Pe?Vr(V,ne,D,H):false}function Q3(){let D=L(),H=Xa(23);H&&Pt();let V=Er(false,true),ne=ga(C.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),re;if(H&&(Pt(),M(64),re=kt(16777216,Do),M(24)),!ba(ne))return E(d.createTypeParameterDeclaration(V,ne,void 0,re),D)}function Z3(){let D=L(),H=[];do{Pt();let V=Q3();V!==void 0&&H.push(V),An();}while(Xa(28));return Nt(H,D)}function Lm(D,H,V,ne){let re=p()===19?m():void 0,Pe=Z3();return E(d.createJSDocTemplateTag(H,re,Pe,t(D,L(),V,ne)),D)}function Xa(D){return p()===D?(Ye(),true):false}function Y3(){let D=ga();for(Le(23)&&M(24);Le(25);){let H=ga();Le(23)&&M(24),D=$d(D,H);}return D}function ga(D){if(!Tt(p()))return $t(80,!D,D||C.Identifier_expected);Sr++;let H=r.getTokenStart(),V=r.getTokenEnd(),ne=p(),re=Kn(r.getTokenValue()),Pe=E(ie(re,ne),H,V);return Ye(),Pe}}})(hl=e.JSDocParser||(e.JSDocParser={}));})(Aa||(Aa={}));var Q2=new WeakSet;function d4(e){Q2.has(e)&&U.fail("Source file has already been incrementally parsed"),Q2.add(e);}var Z2=new WeakSet;function p4(e){return Z2.has(e)}function Sd(e){Z2.add(e);}var zs;(e=>{function r(b,J,ie,ke){if(ke=ke||U.shouldAssert(2),d(b,J,ie,ke),oh(ie))return b;if(b.statements.length===0)return Aa.parseSourceFile(b.fileName,J,b.languageVersion,void 0,true,b.scriptKind,b.setExternalModuleIndicator,b.jsDocParsingMode);d4(b),Aa.fixupParentReferences(b);let _e=b.text,he=v(b),I=c(b,ie);d(b,J,I,ke),U.assert(I.span.start<=ie.span.start),U.assert(_n(I.span)===_n(ie.span)),U.assert(_n(Xi(I))===_n(Xi(ie)));let oe=Xi(I).length-I.span.length;P(b,I.span.start,_n(I.span),_n(Xi(I)),oe,_e,J,ke);let Ie=Aa.parseSourceFile(b.fileName,J,b.languageVersion,he,true,b.scriptKind,b.setExternalModuleIndicator,b.jsDocParsingMode);return Ie.commentDirectives=i(b.commentDirectives,Ie.commentDirectives,I.span.start,_n(I.span),oe,_e,J,ke),Ie.impliedNodeFormat=b.impliedNodeFormat,Ry(b,Ie),Ie}e.updateSourceFile=r;function i(b,J,ie,ke,_e,he,I,oe){if(!b)return J;let Ie,z=false;for(let W of b){let{range:ft,type:en}=W;if(ft.end<ie)Ie=hr(Ie,W);else if(ft.pos>ke){ue();let xr={range:{pos:ft.pos+_e,end:ft.end+_e},type:en};Ie=hr(Ie,xr),oe&&U.assert(he.substring(ft.pos,ft.end)===I.substring(xr.range.pos,xr.range.end));}}return ue(),Ie;function ue(){z||(z=true,Ie?J&&Ie.push(...J):Ie=J);}}function u(b,J,ie,ke,_e,he,I){ie?Ie(b):oe(b);return;function oe(z){let ue="";if(I&&h(z)&&(ue=_e.substring(z.pos,z.end)),b2(z,J),ta(z,z.pos+ke,z.end+ke),I&&h(z)&&U.assert(ue===he.substring(z.pos,z.end)),Gt(z,oe,Ie),Sa(z))for(let W of z.jsDoc)oe(W);A(z,I);}function Ie(z){ta(z,z.pos+ke,z.end+ke);for(let ue of z)oe(ue);}}function h(b){switch(b.kind){case 11:case 9:case 80:return  true}return  false}function y(b,J,ie,ke,_e){U.assert(b.end>=J,"Adjusting an element that was entirely before the change range"),U.assert(b.pos<=ie,"Adjusting an element that was entirely after the change range"),U.assert(b.pos<=b.end);let he=Math.min(b.pos,ke),I=b.end>=ie?b.end+_e:Math.min(b.end,ke);if(U.assert(he<=I),b.parent){let oe=b.parent;U.assertGreaterThanOrEqual(he,oe.pos),U.assertLessThanOrEqual(I,oe.end);}ta(b,he,I);}function A(b,J){if(J){let ie=b.pos,ke=_e=>{U.assert(_e.pos>=ie),ie=_e.end;};if(Sa(b))for(let _e of b.jsDoc)ke(_e);Gt(b,ke),U.assert(ie<=b.end);}}function P(b,J,ie,ke,_e,he,I,oe){Ie(b);return;function Ie(ue){if(U.assert(ue.pos<=ue.end),ue.pos>ie){u(ue,b,false,_e,he,I,oe);return}let W=ue.end;if(W>=J){if(Sd(ue),b2(ue,b),y(ue,J,ie,ke,_e),Gt(ue,Ie,z),Sa(ue))for(let ft of ue.jsDoc)Ie(ft);A(ue,oe);return}U.assert(W<J);}function z(ue){if(U.assert(ue.pos<=ue.end),ue.pos>ie){u(ue,b,true,_e,he,I,oe);return}let W=ue.end;if(W>=J){Sd(ue),y(ue,J,ie,ke,_e);for(let ft of ue)Ie(ft);return}U.assert(W<J);}}function c(b,J){let ie=J.span.start;for(let he=0;ie>0&&he<=1;he++){let I=Z(b,ie);U.assert(I.pos<=ie);let oe=I.pos;ie=Math.max(0,oe-1);}let ke=ih(ie,_n(J.span)),_e=J.newLength+(J.span.start-ie);return uf(ke,_e)}function Z(b,J){let ie=b,ke;if(Gt(b,he),ke){let I=_e(ke);I.pos>ie.pos&&(ie=I);}return ie;function _e(I){for(;;){let oe=X_(I);if(oe)I=oe;else return I}}function he(I){if(!ba(I))if(I.pos<=J){if(I.pos>=ie.pos&&(ie=I),J<I.end)return Gt(I,he),true;U.assert(I.end<=J),ke=I;}else return U.assert(I.pos>J),true}}function d(b,J,ie,ke){let _e=b.text;if(ie&&(U.assert(_e.length-ie.span.length+ie.newLength===J.length),ke||U.shouldAssert(3))){let he=_e.substr(0,ie.span.start),I=J.substr(0,ie.span.start);U.assert(he===I);let oe=_e.substring(_n(ie.span),_e.length),Ie=J.substring(_n(Xi(ie)),J.length);U.assert(oe===Ie);}}function v(b){let J=b.statements,ie=0;U.assert(ie<J.length);let ke=J[ie],_e=-1;return {currentNode(I){return I!==_e&&(ke&&ke.end===I&&ie<J.length-1&&(ie++,ke=J[ie]),(!ke||ke.pos!==I)&&he(I)),_e=I,U.assert(!ke||ke.pos===I),ke}};function he(I){J=void 0,ie=-1,ke=void 0,Gt(b,oe,Ie);return;function oe(z){return I>=z.pos&&I<z.end?(Gt(z,oe,Ie),true):false}function Ie(z){if(I>=z.pos&&I<z.end)for(let ue=0;ue<z.length;ue++){let W=z[ue];if(W){if(W.pos===I)return J=z,ie=ue,ke=W,true;if(W.pos<I&&I<W.end)return Gt(W,oe,Ie),true}}return  false}}}e.createSyntaxCursor=v;let T;(b=>{b[b.Value=-1]="Value";})(T||(T={}));})(zs||(zs={}));function f4(e){return m4(e)!==void 0}function m4(e){let r=N0(e,fg);if(r)return r;if(b0(e,".ts")){let i=q1(e),u=i.lastIndexOf(".d.");if(u>=0)return i.substring(u)}}function h4(e,r,i,u){if(e){if(e==="import")return 99;if(e==="require")return 1;u(r,i-r,C.resolution_mode_should_be_either_require_or_import);}}function _4(e,r){let i=[];for(let u of Ml(r,0)||vt){let h=r.substring(u.pos,u.end);k4(i,u,h);}e.pragmas=new Map;for(let u of i){if(e.pragmas.has(u.name)){let h=e.pragmas.get(u.name);h instanceof Array?h.push(u.args):e.pragmas.set(u.name,[h,u.args]);continue}e.pragmas.set(u.name,u.args);}}function g4(e,r){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=false,e.pragmas.forEach((i,u)=>{switch(u){case "reference":{let h=e.referencedFiles,y=e.typeReferenceDirectives,A=e.libReferenceDirectives;wr(vl(i),P=>{let{types:c,lib:Z,path:d,["resolution-mode"]:v,preserve:T}=P.arguments,b=T==="true"?true:void 0;if(P.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=true;else if(c){let J=h4(v,c.pos,c.end,r);y.push({pos:c.pos,end:c.end,fileName:c.value,...J?{resolutionMode:J}:{},...b?{preserve:b}:{}});}else Z?A.push({pos:Z.pos,end:Z.end,fileName:Z.value,...b?{preserve:b}:{}}):d?h.push({pos:d.pos,end:d.end,fileName:d.value,...b?{preserve:b}:{}}):r(P.range.pos,P.range.end-P.range.pos,C.Invalid_reference_directive_syntax);});break}case "amd-dependency":{e.amdDependencies=kl(vl(i),h=>({name:h.arguments.name,path:h.arguments.path}));break}case "amd-module":{if(i instanceof Array)for(let h of i)e.moduleName&&r(h.range.pos,h.range.end-h.range.pos,C.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=h.arguments.name;else e.moduleName=i.arguments.name;break}case "ts-nocheck":case "ts-check":{wr(vl(i),h=>{(!e.checkJsDirective||h.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:u==="ts-check",end:h.range.end,pos:h.range.pos});});break}case "jsx":case "jsxfrag":case "jsximportsource":case "jsxruntime":return;default:U.fail("Unhandled pragma kind");}});}var bd=new Map;function y4(e){if(bd.has(e))return bd.get(e);let r=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return bd.set(e,r),r}var T4=/^\/\/\/\s*<(\S+)\s.*?\/>/m,x4=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function k4(e,r,i){let u=r.kind===2&&T4.exec(i);if(u){let y=u[1].toLowerCase(),A=B1[y];if(!A||!(A.kind&1))return;if(A.args){let P={};for(let c of A.args){let Z=y4(c.name).exec(i);if(!Z&&!c.optional)return;if(Z){let d=Z[2]||Z[3];if(c.captureSpan){let v=r.pos+Z.index+Z[1].length+1;P[c.name]={value:d,pos:v,end:v+d.length};}else P[c.name]=d;}}e.push({name:y,args:{arguments:P,range:r}});}else e.push({name:y,args:{arguments:{},range:r}});return}let h=r.kind===2&&x4.exec(i);if(h)return Y2(e,r,2,h);if(r.kind===3){let y=/@(\S+)(\s+(?:\S.*)?)?$/gm,A;for(;A=y.exec(i);)Y2(e,r,4,A);}}function Y2(e,r,i,u){if(!u)return;let h=u[1].toLowerCase(),y=B1[h];if(!y||!(y.kind&i))return;let A=u[2],P=S4(y,A);P!=="fail"&&e.push({name:h,args:{arguments:P,range:r}});}function S4(e,r){if(!r)return {};if(!e.args)return {};let i=r.trim().split(/\s+/),u={};for(let h=0;h<e.args.length;h++){let y=e.args[h];if(!i[h]&&!y.optional)return "fail";if(y.captureSpan)return U.fail("Capture spans not yet implemented for non-xml pragmas");u[y.name]=i[h];}return u}function aa(e,r){return e.kind!==r.kind?false:e.kind===80?e.escapedText===r.escapedText:e.kind===110?true:e.kind===295?e.namespace.escapedText===r.namespace.escapedText&&e.name.escapedText===r.name.escapedText:e.name.escapedText===r.name.escapedText&&aa(e.expression,r.expression)}var lo=Ul(wl.Latest,true);function em(e,r,i,u){let h=zl(e)?new vd(e,r,i):e===80?new rm(80,r,i):e===81?new nm(81,r,i):new tm(e,r,i);return h.parent=u,h.flags=u.flags&101441536,h}var vd=class{constructor(e,r,i){this.pos=r,this.end=i,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0;}assertHasRealPosition(e){U.assert(!ao(this.pos)&&!ao(this.end),e||"Node must have a real position for this operation");}getSourceFile(){return Yn(this)}getStart(e,r){return this.assertHasRealPosition(),As(this,e,r)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,r){return this.getChildren(r)[e]}getChildren(e=Yn(this)){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),S2(this,e)??qy(this,e,b4(this,e))}getFirstToken(e){this.assertHasRealPosition();let r=this.getChildren(e);if(!r.length)return;let i=S1(r,u=>u.kind<309||u.kind>351);return i.kind<166?i:i.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let r=this.getChildren(e),i=ya(r);if(i)return i.kind<166?i:i.getLastToken(e)}forEachChild(e,r){return Gt(this,e,r)}};function b4(e,r){let i=[];if(Qh(e))return e.forEachChild(A=>{i.push(A);}),i;lo.setText((r||e.getSourceFile()).text);let u=e.pos,h=A=>{po(i,u,A.pos,e),i.push(A),u=A.end;},y=A=>{po(i,u,A.pos,e),i.push(v4(A,e)),u=A.end;};return wr(e.jsDoc,h),u=e.pos,e.forEachChild(h,y),po(i,u,e.end,e),lo.setText(void 0),i}function po(e,r,i,u){for(lo.resetTokenState(r);r<i;){let h=lo.scan(),y=lo.getTokenEnd();if(y<=i){if(h===80){if(Tg(u))continue;U.fail(`Did not expect ${U.formatSyntaxKind(u.kind)} to have an Identifier in its trivia`);}e.push(em(h,r,y,u));}if(r=y,h===1)break}}function v4(e,r){let i=em(352,e.pos,e.end,r),u=[],h=e.pos;for(let y of e)po(u,h,y.pos,r),u.push(y),h=y.end;return po(u,h,e.end,r),i._children=u,i}var Cd=class{constructor(e,r,i){this.pos=r,this.end=i,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0;}getSourceFile(){return Yn(this)}getStart(e,r){return As(this,e,r)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return (e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||vt}getFirstToken(){}getLastToken(){}forEachChild(){}},C4=class{constructor(e,r){this.flags=e,this.escapedName=r,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0;}getFlags(){return this.flags}get name(){return Kl(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=vt,!this.declarations&&Af(this)&&this.links.target&&Af(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let r=this.links.target.links.tupleLabelDeclaration;this.documentationComment=fo([r],e);}else this.documentationComment=fo(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,r){if(e){if(ws(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=vt,this.contextualGetAccessorDocumentationComment=fo(Pn(this.declarations,ws),r)),zi(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(Ns(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=vt,this.contextualSetAccessorDocumentationComment=fo(Pn(this.declarations,Ns),r)),zi(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(r)}getJsDocTags(e){return this.tags===void 0&&(this.tags=vt,this.tags=$s(this.declarations,e)),this.tags}getContextualJsDocTags(e,r){if(e){if(ws(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=vt,this.contextualGetAccessorTags=$s(Pn(this.declarations,ws),r)),zi(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(Ns(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=vt,this.contextualSetAccessorTags=$s(Pn(this.declarations,Ns),r)),zi(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(r)}},tm=class extends Cd{constructor(e,r,i){super(e,r,i);}},rm=class extends Cd{constructor(e,r,i){super(e,r,i);}get text(){return yr(this)}},nm=class extends Cd{constructor(e,r,i){super(e,r,i);}get text(){return yr(this)}},E4=class{constructor(e,r){this.flags=r,this.checker=e;}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return !!(this.flags&1048576)}isIntersection(){return !!(this.flags&2097152)}isUnionOrIntersection(){return !!(this.flags&3145728)}isLiteral(){return !!(this.flags&2432)}isStringLiteral(){return !!(this.flags&128)}isNumberLiteral(){return !!(this.flags&256)}isTypeParameter(){return !!(this.flags&262144)}isClassOrInterface(){return !!(ad(this)&3)}isClass(){return !!(ad(this)&1)}isIndexType(){return !!(this.flags&4194304)}get typeArguments(){if(ad(this)&4)return this.checker.getTypeArguments(this)}},N4=class{constructor(e,r){this.flags=r,this.checker=e;}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){let r=this.checker.getParameterType(this,e);if(r.isIndexType()&&yg(r.type)){let i=r.type.getConstraint();if(i)return this.checker.getIndexType(i)}return r}getDocumentationComment(){return this.documentationComment||(this.documentationComment=fo(El(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=$s(El(this.declaration),this.checker))}};function am(e){return _f(e).some(r=>r.tagName.text==="inheritDoc"||r.tagName.text==="inheritdoc")}function $s(e,r){if(!e)return vt;let i=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,r);if(r&&(i.length===0||e.some(am))){let u=new Set;for(let h of e){let y=im(r,h,A=>{var P;if(!u.has(A))return u.add(A),h.kind===177||h.kind===178?A.getContextualJsDocTags(h,r):((P=A.declarations)==null?void 0:P.length)===1?A.getJsDocTags(r):void 0});y&&(i=[...y,...i]);}}return i}function fo(e,r){if(!e)return vt;let i=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,r);if(r&&(i.length===0||e.some(am))){let u=new Set;for(let h of e){let y=im(r,h,A=>{if(!u.has(A))return u.add(A),h.kind===177||h.kind===178?A.getContextualDocumentationComment(h,r):A.getDocumentationComment(r)});y&&(i=i.length===0?y.slice():y.concat(lineBreakPart(),i));}}return i}function im(e,r,i){var u;let h=((u=r.parent)==null?void 0:u.kind)===176?r.parent.parent:r.parent;if(!h)return;let y=M_(r);return Gm(w_(h),A=>{let P=e.getTypeAtLocation(A),c=y&&P.symbol?e.getTypeOfSymbol(P.symbol):P,Z=e.getPropertyOfType(c,r.symbol.name);return Z?i(Z):void 0})}var w4=class extends vd{constructor(e,r,i){super(e,r,i);}update(e,r){return l4(this,e,r)}getLineAndCharacterOfPosition(e){return Z1(this,e)}getLineStarts(){return Fl(this)}getPositionOfLineAndCharacter(e,r,i){return H0(Fl(this),e,r,this.text,i)}getLineEndOfPosition(e){let{line:r}=this.getLineAndCharacterOfPosition(e),i=this.getLineStarts(),u;r+1>=i.length&&(u=this.getEnd()),u||(u=i[r+1]-1);let h=this.getFullText();return h[u]===`
`&&h[u-1]==="\r"?u-1:u}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=o0();return this.forEachChild(h),e;function r(y){let A=u(y);A&&e.add(A,y);}function i(y){let A=e.get(y);return A||e.set(y,A=[]),A}function u(y){let A=jl(y);return A&&(Qf(A)&&ra(A.expression)?A.expression.name.text:kf(A)?getNameFromPropertyName(A):void 0)}function h(y){switch(y.kind){case 262:case 218:case 174:case 173:let A=y,P=u(A);if(P){let d=i(P),v=ya(d);v&&A.parent===v.parent&&A.symbol===v.symbol?A.body&&!v.body&&(d[d.length-1]=A):d.push(A);}Gt(y,h);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:r(y),Gt(y,h);break;case 169:if(!no(y,31))break;case 260:case 208:{let d=y;if(jh(d.name)){Gt(d.name,h);break}d.initializer&&h(d.initializer);}case 306:case 172:case 171:r(y);break;case 278:let c=y;c.exportClause&&(xy(c.exportClause)?wr(c.exportClause.elements,h):h(c.exportClause.name));break;case 272:let Z=y.importClause;Z&&(Z.name&&r(Z.name),Z.namedBindings&&(Z.namedBindings.kind===274?r(Z.namedBindings):wr(Z.namedBindings.elements,h)));break;case 226:Wl(y)!==0&&r(y);default:Gt(y,h);}}}},A4=class{constructor(e,r,i){this.fileName=e,this.text=r,this.skipTrivia=i||(u=>u);}getLineAndCharacterOfPosition(e){return Z1(this,e)}};function D4(){return {getNodeConstructor:()=>vd,getTokenConstructor:()=>tm,getIdentifierConstructor:()=>rm,getPrivateIdentifierConstructor:()=>nm,getSourceFileConstructor:()=>w4,getSymbolConstructor:()=>C4,getTypeConstructor:()=>E4,getSignatureConstructor:()=>N4,getSourceMapSourceConstructor:()=>A4}}ig(D4());var om=new Proxy({},{get:()=>true}),sm=om["4.8"];function gn(e,r=false){var i;if(e!=null){if(sm){if(r||xd(e)){let u=ph(e);return u?[...u]:void 0}return}return (i=e.modifiers)==null?void 0:i.filter(u=>!dd(u))}}function di(e,r=false){var i;if(e!=null){if(sm){if(r||Qy(e)){let u=dh(e);return u?[...u]:void 0}return}return (i=e.decorators)==null?void 0:i.filter(dd)}}var P4={},cm=new Proxy({},{get:(e,r)=>r}),F4=cm,I4=cm,N=F4,Rt=I4,um=om["5.0"],le=Fe,L4=new Set([le.AmpersandAmpersandToken,le.BarBarToken,le.QuestionQuestionToken]),J4=new Set([Fe.AmpersandAmpersandEqualsToken,Fe.AmpersandEqualsToken,Fe.AsteriskAsteriskEqualsToken,Fe.AsteriskEqualsToken,Fe.BarBarEqualsToken,Fe.BarEqualsToken,Fe.CaretEqualsToken,Fe.EqualsToken,Fe.GreaterThanGreaterThanEqualsToken,Fe.GreaterThanGreaterThanGreaterThanEqualsToken,Fe.LessThanLessThanEqualsToken,Fe.MinusEqualsToken,Fe.PercentEqualsToken,Fe.PlusEqualsToken,Fe.QuestionQuestionEqualsToken,Fe.SlashEqualsToken]),O4=new Set([le.AmpersandAmpersandToken,le.AmpersandToken,le.AsteriskAsteriskToken,le.AsteriskToken,le.BarBarToken,le.BarToken,le.CaretToken,le.EqualsEqualsEqualsToken,le.EqualsEqualsToken,le.ExclamationEqualsEqualsToken,le.ExclamationEqualsToken,le.GreaterThanEqualsToken,le.GreaterThanGreaterThanGreaterThanToken,le.GreaterThanGreaterThanToken,le.GreaterThanToken,le.InKeyword,le.InstanceOfKeyword,le.LessThanEqualsToken,le.LessThanLessThanToken,le.LessThanToken,le.MinusToken,le.PercentToken,le.PlusToken,le.SlashToken]);function M4(e){return J4.has(e.kind)}function U4(e){return L4.has(e.kind)}function B4(e){return O4.has(e.kind)}function ia(e){return ct(e)}function K4(e){return e.kind!==le.SemicolonClassElement}function $e(e,r){let i=gn(r);return (i==null?void 0:i.some(u=>u.kind===e))===true}function j4(e){let r=gn(e);return r==null?null:r[r.length-1]??null}function q4(e){return e.kind===le.CommaToken}function R4(e){return e.kind===le.SingleLineCommentTrivia||e.kind===le.MultiLineCommentTrivia}function z4(e){return e.kind===le.JSDocComment}function $4(e){if(M4(e))return {type:N.AssignmentExpression,operator:ia(e.kind)};if(U4(e))return {type:N.LogicalExpression,operator:ia(e.kind)};if(B4(e))return {type:N.BinaryExpression,operator:ia(e.kind)};throw new Error(`Unexpected binary operator ${ct(e.kind)}`)}function Gs(e,r){let i=r.getLineAndCharacterOfPosition(e);return {column:i.character,line:i.line+1}}function Da(e,r){let[i,u]=e.map(h=>Gs(h,r));return {end:u,start:i}}function G4(e){if(e.kind===Fe.Block)switch(e.parent.kind){case Fe.Constructor:case Fe.GetAccessor:case Fe.SetAccessor:case Fe.ArrowFunction:case Fe.FunctionExpression:case Fe.FunctionDeclaration:case Fe.MethodDeclaration:return  true;default:return  false}return  true}function mo(e,r){return [e.getStart(r),e.getEnd()]}function H4(e){return e.kind>=le.FirstToken&&e.kind<=le.LastToken}function lm(e){return e.kind>=le.JsxElement&&e.kind<=le.JsxAttribute}function Ed(e){return e.flags&Ar.Let?"let":(e.flags&Ar.AwaitUsing)===Ar.AwaitUsing?"await using":e.flags&Ar.Const?"const":e.flags&Ar.Using?"using":"var"}function Pa(e){let r=gn(e);if(r!=null)for(let i of r)switch(i.kind){case le.PublicKeyword:return "public";case le.ProtectedKeyword:return "protected";case le.PrivateKeyword:return "private"}}function pi(e,r,i){return u(r);function u(h){return Dh(h)&&h.pos===e.end?h:n6(h.getChildren(i),y=>(y.pos<=e.pos&&y.end>e.end||y.pos===e.end)&&r6(y,i)?u(y):void 0)}}function W4(e,r){let i=e;for(;i;){if(r(i))return i;i=i.parent;}}function V4(e){return !!W4(e,lm)}function dm(e){return Qa(false,e,/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,r=>{let i=r.slice(1,-1);if(i[0]==="#"){let u=i[1]==="x"?parseInt(i.slice(2),16):parseInt(i.slice(1),10);return u>1114111?r:String.fromCodePoint(u)}return P4[i]||r})}function fi(e){return e.kind===le.ComputedPropertyName}function pm(e){return !!e.questionToken}function fm(e){return e.type===N.ChainExpression}function X4(e,r){return fm(r)&&e.expression.kind!==Fe.ParenthesizedExpression}function Q4(e){let r;if(um&&e.kind===le.Identifier?r=df(e):"originalKeywordKind"in e&&(r=e.originalKeywordKind),r)return r===le.NullKeyword?Rt.Null:r>=le.FirstFutureReservedWord&&r<=le.LastKeyword?Rt.Identifier:Rt.Keyword;if(e.kind>=le.FirstKeyword&&e.kind<=le.LastFutureReservedWord)return e.kind===le.FalseKeyword||e.kind===le.TrueKeyword?Rt.Boolean:Rt.Keyword;if(e.kind>=le.FirstPunctuation&&e.kind<=le.LastPunctuation)return Rt.Punctuator;if(e.kind>=le.NoSubstitutionTemplateLiteral&&e.kind<=le.TemplateTail)return Rt.Template;switch(e.kind){case le.NumericLiteral:return Rt.Numeric;case le.JsxText:return Rt.JSXText;case le.StringLiteral:return e.parent.kind===le.JsxAttribute||e.parent.kind===le.JsxElement?Rt.JSXText:Rt.String;case le.RegularExpressionLiteral:return Rt.RegularExpression;case le.Identifier:case le.ConstructorKeyword:case le.GetKeyword:case le.SetKeyword:}return e.kind===le.Identifier&&(lm(e.parent)||e.parent.kind===le.PropertyAccessExpression&&V4(e))?Rt.JSXIdentifier:Rt.Identifier}function Z4(e,r){let i=e.kind===le.JsxText?e.getFullStart():e.getStart(r),u=e.getEnd(),h=r.text.slice(i,u),y=Q4(e),A=[i,u],P=Da(A,r);return y===Rt.RegularExpression?{type:y,loc:P,range:A,regex:{flags:h.slice(h.lastIndexOf("/")+1),pattern:h.slice(1,h.lastIndexOf("/"))},value:h}:{type:y,loc:P,range:A,value:h}}function Y4(e){let r=[];function i(u){R4(u)||z4(u)||(H4(u)&&u.kind!==le.EndOfFileToken?r.push(Z4(u,e)):u.getChildren(e).forEach(i));}return i(e),r}var e6=class extends Error{constructor(r,i,u){super(r);m1(this,"fileName");m1(this,"location");this.fileName=i,this.location=u,Object.defineProperty(this,"name",{configurable:true,enumerable:false,value:new.target.name});}get index(){return this.location.start.offset}get lineNumber(){return this.location.start.line}get column(){return this.location.start.column}};function mm(e,r,i,u=i){let[h,y]=[i,u].map(A=>{let{character:P,line:c}=r.getLineAndCharacterOfPosition(A);return {column:P,line:c+1,offset:A}});return new e6(e,r.fileName,{end:y,start:h})}function t6(e){var r;return !!("illegalDecorators"in e&&(r=e.illegalDecorators)!=null&&r.length)}function r6(e,r){return e.kind===le.EndOfFileToken?!!e.jsDoc:e.getWidth(r)!==0}function n6(e,r){if(e!==void 0)for(let i=0;i<e.length;i++){let u=r(e[i],i);if(u!==void 0)return u}}function a6(e){return (um?df(e):e.originalKeywordKind)===le.ThisKeyword}function hm(e){return !!e&&e.kind===le.Identifier&&a6(e)}function i6(e){if(!hm(e))return  false;for(;Mg(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===le.TypeQuery}function o6(e){return e==null?true:e.pos===e.end&&e.pos>=0&&e.kind!==le.EndOfFileToken}function _m(e){return !o6(e)}function s6(e){return lf(e.parent,Sf)}function c6(e){return $e(le.AbstractKeyword,e)}function u6(e){if(e.parameters.length&&!x2(e)){let r=e.parameters[0];if(l6(r))return r}return null}function l6(e){return hm(e.name)}function d6(e){switch(e.kind){case le.ClassDeclaration:return  true;case le.ClassExpression:return  true;case le.PropertyDeclaration:{let{parent:r}=e;return !!(Rs(r)||ri(r)&&!c6(e))}case le.GetAccessor:case le.SetAccessor:case le.MethodDeclaration:{let{parent:r}=e;return !!e.body&&(Rs(r)||ri(r))}case le.Parameter:{let{parent:r}=e,i=r.parent;return !!r&&"body"in r&&!!r.body&&(r.kind===le.Constructor||r.kind===le.MethodDeclaration||r.kind===le.SetAccessor)&&u6(r)!==e&&!!i&&i.kind===le.ClassDeclaration}}return  false}function Nd(e){switch(e.kind){case le.Identifier:return  true;case le.PropertyAccessExpression:case le.ElementAccessExpression:return !(e.flags&Ar.OptionalChain);case le.ParenthesizedExpression:case le.TypeAssertionExpression:case le.AsExpression:case le.SatisfiesExpression:case le.ExpressionWithTypeArguments:case le.NonNullExpression:return Nd(e.expression);default:return  false}}function p6(e){let r=gn(e),i=e;for(;(!r||r.length===0)&&co(i.parent);){let u=gn(i.parent);u!=null&&u.length&&(r=u),i=i.parent;}return r}var g=Fe;function f6(e){return mm("message"in e&&e.message||e.messageText,e.file,e.start)}var ge,wd,gm,Me,Ut,mi,Ad,m6=class{constructor(e,r){jm(this,ge),Ri(this,"allowPattern",false),Ri(this,"ast"),Ri(this,"esTreeNodeToTSNodeMap",new WeakMap),Ri(this,"options"),Ri(this,"tsNodeToESTreeNodeMap",new WeakMap),this.ast=e,this.options={...r};}assertModuleSpecifier(e,r){var i;!r&&e.moduleSpecifier==null&&Te(this,ge,Ut).call(this,e,"Module specifier must be a string literal."),e.moduleSpecifier&&((i=e.moduleSpecifier)==null?void 0:i.kind)!==g.StringLiteral&&Te(this,ge,Ut).call(this,e.moduleSpecifier,"Module specifier must be a string literal.");}convertBindingNameWithTypeAnnotation(e,r,i){let u=this.convertPattern(e);return r&&(u.typeAnnotation=this.convertTypeAnnotation(r,i),this.fixParentLocation(u,u.typeAnnotation.range)),u}convertBodyExpressions(e,r){let i=G4(r);return e.map(u=>{let h=this.convertChild(u);if(i){if(h!=null&&h.expression&&c2(u)&&Os(u.expression)){let y=h.expression.raw;return h.directive=y.slice(1,-1),h}i=false;}return h}).filter(u=>u)}convertChainExpression(e,r){let{child:i,isOptional:u}=e.type===N.MemberExpression?{child:e.object,isOptional:e.optional}:e.type===N.CallExpression?{child:e.callee,isOptional:e.optional}:{child:e.expression,isOptional:false},h=X4(r,i);if(!h&&!u)return e;if(h&&fm(i)){let y=i.expression;e.type===N.MemberExpression?e.object=y:e.type===N.CallExpression?e.callee=y:e.expression=y;}return this.createNode(r,{type:N.ChainExpression,expression:e})}convertChild(e,r){return this.converter(e,r,false)}convertPattern(e,r){return this.converter(e,r,true)}convertTypeAnnotation(e,r){let i=(r==null?void 0:r.kind)===g.FunctionType||(r==null?void 0:r.kind)===g.ConstructorType?2:1,u=[e.getFullStart()-i,e.end],h=Da(u,this.ast);return {type:N.TSTypeAnnotation,loc:h,range:u,typeAnnotation:this.convertChild(e)}}convertTypeArgumentsToTypeParameterInstantiation(e,r){let i=pi(e,this.ast,this.ast);return this.createNode(r,{type:N.TSTypeParameterInstantiation,range:[e.pos-1,i.end],params:e.map(u=>this.convertChild(u))})}convertTSTypeParametersToTypeParametersDeclaration(e){let r=pi(e,this.ast,this.ast),i=[e.pos-1,r.end];return {type:N.TSTypeParameterDeclaration,loc:Da(i,this.ast),range:i,params:e.map(u=>this.convertChild(u))}}convertParameters(e){return e!=null&&e.length?e.map(r=>{var i;let u=this.convertChild(r);return u.decorators=((i=di(r))==null?void 0:i.map(h=>this.convertChild(h)))??[],u}):[]}converter(e,r,i){if(!e)return null;Te(this,ge,gm).call(this,e);let u=this.allowPattern;i!=null&&(this.allowPattern=i);let h=this.convertNode(e,r??e.parent);return this.registerTSNodeInNodeMap(e,h),this.allowPattern=u,h}convertImportAttributes(e){return e==null?[]:e.elements.map(r=>this.convertChild(r))}convertJSXIdentifier(e){let r=this.createNode(e,{type:N.JSXIdentifier,name:e.getText()});return this.registerTSNodeInNodeMap(e,r),r}convertJSXNamespaceOrIdentifier(e){if(e.kind===Fe.JsxNamespacedName){let u=this.createNode(e,{type:N.JSXNamespacedName,name:this.createNode(e.name,{type:N.JSXIdentifier,name:e.name.text}),namespace:this.createNode(e.namespace,{type:N.JSXIdentifier,name:e.namespace.text})});return this.registerTSNodeInNodeMap(e,u),u}let r=e.getText(),i=r.indexOf(":");if(i>0){let u=mo(e,this.ast),h=this.createNode(e,{type:N.JSXNamespacedName,range:u,name:this.createNode(e,{type:N.JSXIdentifier,range:[u[0]+i+1,u[1]],name:r.slice(i+1)}),namespace:this.createNode(e,{type:N.JSXIdentifier,range:[u[0],u[0]+i],name:r.slice(0,i)})});return this.registerTSNodeInNodeMap(e,h),h}return this.convertJSXIdentifier(e)}convertJSXTagName(e,r){let i;switch(e.kind){case g.PropertyAccessExpression:e.name.kind===g.PrivateIdentifier&&Te(this,ge,Me).call(this,e.name,"Non-private identifier expected."),i=this.createNode(e,{type:N.JSXMemberExpression,object:this.convertJSXTagName(e.expression,r),property:this.convertJSXIdentifier(e.name)});break;case g.ThisKeyword:case g.Identifier:default:return this.convertJSXNamespaceOrIdentifier(e)}return this.registerTSNodeInNodeMap(e,i),i}convertMethodSignature(e){return this.createNode(e,{type:N.TSMethodSignature,accessibility:Pa(e),computed:fi(e.name),key:this.convertChild(e.name),kind:(()=>{switch(e.kind){case g.GetAccessor:return "get";case g.SetAccessor:return "set";case g.MethodSignature:return "method"}})(),optional:pm(e),params:this.convertParameters(e.parameters),readonly:$e(g.ReadonlyKeyword,e),returnType:e.type&&this.convertTypeAnnotation(e.type,e),static:$e(g.StaticKeyword,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)})}fixParentLocation(e,r){r[0]<e.range[0]&&(e.range[0]=r[0],e.loc.start=Gs(e.range[0],this.ast)),r[1]>e.range[1]&&(e.range[1]=r[1],e.loc.end=Gs(e.range[1],this.ast));}convertNode(e,r){var i,u,h,y,A,P,c,Z;switch(e.kind){case g.SourceFile:return this.createNode(e,{type:N.Program,range:[e.getStart(this.ast),e.endOfFileToken.end],body:this.convertBodyExpressions(e.statements,e),comments:void 0,sourceType:e.externalModuleIndicator?"module":"script",tokens:void 0});case g.Block:return this.createNode(e,{type:N.BlockStatement,body:this.convertBodyExpressions(e.statements,e)});case g.Identifier:return i6(e)?this.createNode(e,{type:N.ThisExpression}):this.createNode(e,{type:N.Identifier,decorators:[],name:e.text,optional:false,typeAnnotation:void 0});case g.PrivateIdentifier:return this.createNode(e,{type:N.PrivateIdentifier,name:e.text.slice(1)});case g.WithStatement:return this.createNode(e,{type:N.WithStatement,body:this.convertChild(e.statement),object:this.convertChild(e.expression)});case g.ReturnStatement:return this.createNode(e,{type:N.ReturnStatement,argument:this.convertChild(e.expression)});case g.LabeledStatement:return this.createNode(e,{type:N.LabeledStatement,body:this.convertChild(e.statement),label:this.convertChild(e.label)});case g.ContinueStatement:return this.createNode(e,{type:N.ContinueStatement,label:this.convertChild(e.label)});case g.BreakStatement:return this.createNode(e,{type:N.BreakStatement,label:this.convertChild(e.label)});case g.IfStatement:return this.createNode(e,{type:N.IfStatement,alternate:this.convertChild(e.elseStatement),consequent:this.convertChild(e.thenStatement),test:this.convertChild(e.expression)});case g.SwitchStatement:return e.caseBlock.clauses.filter(d=>d.kind===g.DefaultClause).length>1&&Te(this,ge,Me).call(this,e,"A 'default' clause cannot appear more than once in a 'switch' statement."),this.createNode(e,{type:N.SwitchStatement,cases:e.caseBlock.clauses.map(d=>this.convertChild(d)),discriminant:this.convertChild(e.expression)});case g.CaseClause:case g.DefaultClause:return this.createNode(e,{type:N.SwitchCase,consequent:e.statements.map(d=>this.convertChild(d)),test:e.kind===g.CaseClause?this.convertChild(e.expression):null});case g.ThrowStatement:return e.expression.end===e.expression.pos&&Te(this,ge,Ut).call(this,e,"A throw statement must throw an expression."),this.createNode(e,{type:N.ThrowStatement,argument:this.convertChild(e.expression)});case g.TryStatement:return this.createNode(e,{type:N.TryStatement,block:this.convertChild(e.tryBlock),finalizer:this.convertChild(e.finallyBlock),handler:this.convertChild(e.catchClause)});case g.CatchClause:return (i=e.variableDeclaration)!=null&&i.initializer&&Te(this,ge,Me).call(this,e.variableDeclaration.initializer,"Catch clause variable cannot have an initializer."),this.createNode(e,{type:N.CatchClause,body:this.convertChild(e.block),param:e.variableDeclaration?this.convertBindingNameWithTypeAnnotation(e.variableDeclaration.name,e.variableDeclaration.type):null});case g.WhileStatement:return this.createNode(e,{type:N.WhileStatement,body:this.convertChild(e.statement),test:this.convertChild(e.expression)});case g.DoStatement:return this.createNode(e,{type:N.DoWhileStatement,body:this.convertChild(e.statement),test:this.convertChild(e.expression)});case g.ForStatement:return this.createNode(e,{type:N.ForStatement,body:this.convertChild(e.statement),init:this.convertChild(e.initializer),test:this.convertChild(e.condition),update:this.convertChild(e.incrementor)});case g.ForInStatement:return Te(this,ge,wd).call(this,e.initializer,e.kind),this.createNode(e,{type:N.ForInStatement,body:this.convertChild(e.statement),left:this.convertPattern(e.initializer),right:this.convertChild(e.expression)});case g.ForOfStatement:return Te(this,ge,wd).call(this,e.initializer,e.kind),this.createNode(e,{type:N.ForOfStatement,await:!!(e.awaitModifier&&e.awaitModifier.kind===g.AwaitKeyword),body:this.convertChild(e.statement),left:this.convertPattern(e.initializer),right:this.convertChild(e.expression)});case g.FunctionDeclaration:{let d=$e(g.DeclareKeyword,e),v=$e(g.AsyncKeyword,e),T=!!e.asteriskToken;d?e.body?Te(this,ge,Me).call(this,e,"An implementation cannot be declared in ambient contexts."):v?Te(this,ge,Me).call(this,e,"'async' modifier cannot be used in an ambient context."):T&&Te(this,ge,Me).call(this,e,"Generators are not allowed in an ambient context."):!e.body&&T&&Te(this,ge,Me).call(this,e,"A function signature cannot be declared as a generator.");let b=this.createNode(e,{type:e.body?N.FunctionDeclaration:N.TSDeclareFunction,async:v,body:this.convertChild(e.body)||void 0,declare:d,expression:false,generator:T,id:this.convertChild(e.name),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,b)}case g.VariableDeclaration:{let d=!!e.exclamationToken,v=this.convertChild(e.initializer),T=this.convertBindingNameWithTypeAnnotation(e.name,e.type,e);return d&&(v?Te(this,ge,Me).call(this,e,"Declarations with initializers cannot also have definite assignment assertions."):(T.type!==N.Identifier||!T.typeAnnotation)&&Te(this,ge,Me).call(this,e,"Declarations with definite assignment assertions must also have type annotations.")),this.createNode(e,{type:N.VariableDeclarator,definite:d,id:T,init:v})}case g.VariableStatement:{let d=this.createNode(e,{type:N.VariableDeclaration,declarations:e.declarationList.declarations.map(v=>this.convertChild(v)),declare:$e(g.DeclareKeyword,e),kind:Ed(e.declarationList)});return d.declarations.length||Te(this,ge,Ut).call(this,e,"A variable declaration list must have at least one variable declarator."),(d.kind==="using"||d.kind==="await using")&&e.declarationList.declarations.forEach((v,T)=>{d.declarations[T].init==null&&Te(this,ge,Me).call(this,v,`'${d.kind}' declarations must be initialized.`),d.declarations[T].id.type!==N.Identifier&&Te(this,ge,Me).call(this,v.name,`'${d.kind}' declarations may not have binding patterns.`);}),(d.declare||["await using","const","using"].includes(d.kind))&&e.declarationList.declarations.forEach((v,T)=>{d.declarations[T].definite&&Te(this,ge,Me).call(this,v,"A definite assignment assertion '!' is not permitted in this context.");}),d.declare&&e.declarationList.declarations.forEach((v,T)=>{d.declarations[T].init&&(["let","var"].includes(d.kind)||d.declarations[T].id.typeAnnotation)&&Te(this,ge,Me).call(this,v,"Initializers are not permitted in ambient contexts.");}),this.fixExports(e,d)}case g.VariableDeclarationList:{let d=this.createNode(e,{type:N.VariableDeclaration,declarations:e.declarations.map(v=>this.convertChild(v)),declare:false,kind:Ed(e)});return (d.kind==="using"||d.kind==="await using")&&e.declarations.forEach((v,T)=>{d.declarations[T].init!=null&&Te(this,ge,Me).call(this,v,`'${d.kind}' declarations may not be initialized in for statement.`),d.declarations[T].id.type!==N.Identifier&&Te(this,ge,Me).call(this,v.name,`'${d.kind}' declarations may not have binding patterns.`);}),d}case g.ExpressionStatement:return this.createNode(e,{type:N.ExpressionStatement,directive:void 0,expression:this.convertChild(e.expression)});case g.ThisKeyword:return this.createNode(e,{type:N.ThisExpression});case g.ArrayLiteralExpression:return this.allowPattern?this.createNode(e,{type:N.ArrayPattern,decorators:[],elements:e.elements.map(d=>this.convertPattern(d)),optional:false,typeAnnotation:void 0}):this.createNode(e,{type:N.ArrayExpression,elements:e.elements.map(d=>this.convertChild(d))});case g.ObjectLiteralExpression:{if(this.allowPattern)return this.createNode(e,{type:N.ObjectPattern,decorators:[],optional:false,properties:e.properties.map(v=>this.convertPattern(v)),typeAnnotation:void 0});let d=[];for(let v of e.properties)(v.kind===g.GetAccessor||v.kind===g.SetAccessor||v.kind===g.MethodDeclaration)&&!v.body&&Te(this,ge,Ut).call(this,v.end-1,"'{' expected."),d.push(this.convertChild(v));return this.createNode(e,{type:N.ObjectExpression,properties:d})}case g.PropertyAssignment:{let{exclamationToken:d,questionToken:v}=e;return v&&Te(this,ge,Me).call(this,v,"A property assignment cannot have a question token."),d&&Te(this,ge,Me).call(this,d,"A property assignment cannot have an exclamation token."),this.createNode(e,{type:N.Property,computed:fi(e.name),key:this.convertChild(e.name),kind:"init",method:false,optional:false,shorthand:false,value:this.converter(e.initializer,e,this.allowPattern)})}case g.ShorthandPropertyAssignment:{let{exclamationToken:d,modifiers:v,questionToken:T}=e;return v&&Te(this,ge,Me).call(this,v[0],"A shorthand property assignment cannot have modifiers."),T&&Te(this,ge,Me).call(this,T,"A shorthand property assignment cannot have a question token."),d&&Te(this,ge,Me).call(this,d,"A shorthand property assignment cannot have an exclamation token."),e.objectAssignmentInitializer?this.createNode(e,{type:N.Property,computed:false,key:this.convertChild(e.name),kind:"init",method:false,optional:false,shorthand:true,value:this.createNode(e,{type:N.AssignmentPattern,decorators:[],left:this.convertPattern(e.name),optional:false,right:this.convertChild(e.objectAssignmentInitializer),typeAnnotation:void 0})}):this.createNode(e,{type:N.Property,computed:false,key:this.convertChild(e.name),kind:"init",method:false,optional:false,shorthand:true,value:this.convertChild(e.name)})}case g.ComputedPropertyName:return this.convertChild(e.expression);case g.PropertyDeclaration:{let d=$e(g.AbstractKeyword,e);d&&e.initializer&&Te(this,ge,Me).call(this,e.initializer,"Abstract property cannot have an initializer.");let v=$e(g.AccessorKeyword,e),T=v?d?N.TSAbstractAccessorProperty:N.AccessorProperty:d?N.TSAbstractPropertyDefinition:N.PropertyDefinition,b=this.convertChild(e.name);return this.createNode(e,{type:T,accessibility:Pa(e),computed:fi(e.name),declare:$e(g.DeclareKeyword,e),decorators:((u=di(e))==null?void 0:u.map(J=>this.convertChild(J)))??[],definite:!!e.exclamationToken,key:b,optional:(b.type===N.Literal||e.name.kind===g.Identifier||e.name.kind===g.ComputedPropertyName||e.name.kind===g.PrivateIdentifier)&&!!e.questionToken,override:$e(g.OverrideKeyword,e),readonly:$e(g.ReadonlyKeyword,e),static:$e(g.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e),value:d?null:this.convertChild(e.initializer)})}case g.GetAccessor:case g.SetAccessor:if(e.parent.kind===g.InterfaceDeclaration||e.parent.kind===g.TypeLiteral)return this.convertMethodSignature(e);case g.MethodDeclaration:{let d=this.createNode(e,{type:e.body?N.FunctionExpression:N.TSEmptyBodyFunctionExpression,range:[e.parameters.pos-1,e.end],async:$e(g.AsyncKeyword,e),body:this.convertChild(e.body),declare:false,expression:false,generator:!!e.asteriskToken,id:null,params:[],returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});d.typeParameters&&this.fixParentLocation(d,d.typeParameters.range);let v;if(r.kind===g.ObjectLiteralExpression)d.params=e.parameters.map(T=>this.convertChild(T)),v=this.createNode(e,{type:N.Property,computed:fi(e.name),key:this.convertChild(e.name),kind:"init",method:e.kind===g.MethodDeclaration,optional:!!e.questionToken,shorthand:false,value:d});else {d.params=this.convertParameters(e.parameters);let T=$e(g.AbstractKeyword,e)?N.TSAbstractMethodDefinition:N.MethodDefinition;v=this.createNode(e,{type:T,accessibility:Pa(e),computed:fi(e.name),decorators:((h=di(e))==null?void 0:h.map(b=>this.convertChild(b)))??[],key:this.convertChild(e.name),kind:"method",optional:!!e.questionToken,override:$e(g.OverrideKeyword,e),static:$e(g.StaticKeyword,e),value:d});}return e.kind===g.GetAccessor?v.kind="get":e.kind===g.SetAccessor?v.kind="set":!v.static&&e.name.kind===g.StringLiteral&&e.name.text==="constructor"&&v.type!==N.Property&&(v.kind="constructor"),v}case g.Constructor:{let d=j4(e),v=(d&&pi(d,e,this.ast))??e.getFirstToken(),T=this.createNode(e,{type:e.body?N.FunctionExpression:N.TSEmptyBodyFunctionExpression,range:[e.parameters.pos-1,e.end],async:false,body:this.convertChild(e.body),declare:false,expression:false,generator:false,id:null,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});T.typeParameters&&this.fixParentLocation(T,T.typeParameters.range);let b=this.createNode(e,{type:N.Identifier,range:[v.getStart(this.ast),v.end],decorators:[],name:"constructor",optional:false,typeAnnotation:void 0}),J=$e(g.StaticKeyword,e);return this.createNode(e,{type:$e(g.AbstractKeyword,e)?N.TSAbstractMethodDefinition:N.MethodDefinition,accessibility:Pa(e),computed:false,decorators:[],key:b,kind:J?"method":"constructor",optional:false,override:false,static:J,value:T})}case g.FunctionExpression:return this.createNode(e,{type:N.FunctionExpression,async:$e(g.AsyncKeyword,e),body:this.convertChild(e.body),declare:false,expression:false,generator:!!e.asteriskToken,id:this.convertChild(e.name),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case g.SuperKeyword:return this.createNode(e,{type:N.Super});case g.ArrayBindingPattern:return this.createNode(e,{type:N.ArrayPattern,decorators:[],elements:e.elements.map(d=>this.convertPattern(d)),optional:false,typeAnnotation:void 0});case g.OmittedExpression:return null;case g.ObjectBindingPattern:return this.createNode(e,{type:N.ObjectPattern,decorators:[],optional:false,properties:e.elements.map(d=>this.convertPattern(d)),typeAnnotation:void 0});case g.BindingElement:{if(r.kind===g.ArrayBindingPattern){let v=this.convertChild(e.name,r);return e.initializer?this.createNode(e,{type:N.AssignmentPattern,decorators:[],left:v,optional:false,right:this.convertChild(e.initializer),typeAnnotation:void 0}):e.dotDotDotToken?this.createNode(e,{type:N.RestElement,argument:v,decorators:[],optional:false,typeAnnotation:void 0,value:void 0}):v}let d;return e.dotDotDotToken?d=this.createNode(e,{type:N.RestElement,argument:this.convertChild(e.propertyName??e.name),decorators:[],optional:false,typeAnnotation:void 0,value:void 0}):d=this.createNode(e,{type:N.Property,computed:!!(e.propertyName&&e.propertyName.kind===g.ComputedPropertyName),key:this.convertChild(e.propertyName??e.name),kind:"init",method:false,optional:false,shorthand:!e.propertyName,value:this.convertChild(e.name)}),e.initializer&&(d.value=this.createNode(e,{type:N.AssignmentPattern,range:[e.name.getStart(this.ast),e.initializer.end],decorators:[],left:this.convertChild(e.name),optional:false,right:this.convertChild(e.initializer),typeAnnotation:void 0})),d}case g.ArrowFunction:return this.createNode(e,{type:N.ArrowFunctionExpression,async:$e(g.AsyncKeyword,e),body:this.convertChild(e.body),expression:e.body.kind!==g.Block,generator:false,id:null,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case g.YieldExpression:return this.createNode(e,{type:N.YieldExpression,argument:this.convertChild(e.expression),delegate:!!e.asteriskToken});case g.AwaitExpression:return this.createNode(e,{type:N.AwaitExpression,argument:this.convertChild(e.expression)});case g.NoSubstitutionTemplateLiteral:return this.createNode(e,{type:N.TemplateLiteral,expressions:[],quasis:[this.createNode(e,{type:N.TemplateElement,tail:true,value:{cooked:e.text,raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-1)}})]});case g.TemplateExpression:{let d=this.createNode(e,{type:N.TemplateLiteral,expressions:[],quasis:[this.convertChild(e.head)]});return e.templateSpans.forEach(v=>{d.expressions.push(this.convertChild(v.expression)),d.quasis.push(this.convertChild(v.literal));}),d}case g.TaggedTemplateExpression:return this.createNode(e,{type:N.TaggedTemplateExpression,quasi:this.convertChild(e.template),tag:this.convertChild(e.tag),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case g.TemplateHead:case g.TemplateMiddle:case g.TemplateTail:{let d=e.kind===g.TemplateTail;return this.createNode(e,{type:N.TemplateElement,tail:d,value:{cooked:e.text,raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-(d?1:2))}})}case g.SpreadAssignment:case g.SpreadElement:return this.allowPattern?this.createNode(e,{type:N.RestElement,argument:this.convertPattern(e.expression),decorators:[],optional:false,typeAnnotation:void 0,value:void 0}):this.createNode(e,{type:N.SpreadElement,argument:this.convertChild(e.expression)});case g.Parameter:{let d,v;return e.dotDotDotToken?d=v=this.createNode(e,{type:N.RestElement,argument:this.convertChild(e.name),decorators:[],optional:false,typeAnnotation:void 0,value:void 0}):e.initializer?(d=this.convertChild(e.name),v=this.createNode(e,{type:N.AssignmentPattern,decorators:[],left:d,optional:false,right:this.convertChild(e.initializer),typeAnnotation:void 0}),gn(e)&&(v.range[0]=d.range[0],v.loc=Da(v.range,this.ast))):d=v=this.convertChild(e.name,r),e.type&&(d.typeAnnotation=this.convertTypeAnnotation(e.type,e),this.fixParentLocation(d,d.typeAnnotation.range)),e.questionToken&&(e.questionToken.end>d.range[1]&&(d.range[1]=e.questionToken.end,d.loc.end=Gs(d.range[1],this.ast)),d.optional=true),gn(e)?this.createNode(e,{type:N.TSParameterProperty,accessibility:Pa(e),decorators:[],override:$e(g.OverrideKeyword,e),parameter:v,readonly:$e(g.ReadonlyKeyword,e),static:$e(g.StaticKeyword,e)}):v}case g.ClassDeclaration:!e.name&&(!$e(Fe.ExportKeyword,e)||!$e(Fe.DefaultKeyword,e))&&Te(this,ge,Ut).call(this,e,"A class declaration without the 'default' modifier must have a name.");case g.ClassExpression:{let d=e.heritageClauses??[],v=e.kind===g.ClassDeclaration?N.ClassDeclaration:N.ClassExpression,T,b;for(let ie of d){let{token:ke,types:_e}=ie;_e.length===0&&Te(this,ge,Ut).call(this,ie,`'${ct(ke)}' list cannot be empty.`),ke===g.ExtendsKeyword?(T&&Te(this,ge,Ut).call(this,ie,"'extends' clause already seen."),b&&Te(this,ge,Ut).call(this,ie,"'extends' clause must precede 'implements' clause."),_e.length>1&&Te(this,ge,Ut).call(this,_e[1],"Classes can only extend a single class."),T??(T=ie)):ke===g.ImplementsKeyword&&(b&&Te(this,ge,Ut).call(this,ie,"'implements' clause already seen."),b??(b=ie));}let J=this.createNode(e,{type:v,abstract:$e(g.AbstractKeyword,e),body:this.createNode(e,{type:N.ClassBody,range:[e.members.pos-1,e.end],body:e.members.filter(K4).map(ie=>this.convertChild(ie))}),declare:$e(g.DeclareKeyword,e),decorators:((y=di(e))==null?void 0:y.map(ie=>this.convertChild(ie)))??[],id:this.convertChild(e.name),implements:(b==null?void 0:b.types.map(ie=>this.convertChild(ie)))??[],superClass:T!=null&&T.types[0]?this.convertChild(T.types[0].expression):null,superTypeArguments:void 0,typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return (A=T==null?void 0:T.types[0])!=null&&A.typeArguments&&(J.superTypeArguments=this.convertTypeArgumentsToTypeParameterInstantiation(T.types[0].typeArguments,T.types[0])),this.fixExports(e,J)}case g.ModuleBlock:return this.createNode(e,{type:N.TSModuleBlock,body:this.convertBodyExpressions(e.statements,e)});case g.ImportDeclaration:{this.assertModuleSpecifier(e,false);let d=this.createNode(e,Te(this,ge,mi).call(this,{type:N.ImportDeclaration,attributes:this.convertImportAttributes(e.attributes??e.assertClause),importKind:"value",source:this.convertChild(e.moduleSpecifier),specifiers:[]},"assertions","attributes",true));if(e.importClause&&(e.importClause.isTypeOnly&&(d.importKind="type"),e.importClause.name&&d.specifiers.push(this.convertChild(e.importClause)),e.importClause.namedBindings))switch(e.importClause.namedBindings.kind){case g.NamespaceImport:d.specifiers.push(this.convertChild(e.importClause.namedBindings));break;case g.NamedImports:d.specifiers.push(...e.importClause.namedBindings.elements.map(v=>this.convertChild(v)));break}return d}case g.NamespaceImport:return this.createNode(e,{type:N.ImportNamespaceSpecifier,local:this.convertChild(e.name)});case g.ImportSpecifier:return this.createNode(e,{type:N.ImportSpecifier,imported:this.convertChild(e.propertyName??e.name),importKind:e.isTypeOnly?"type":"value",local:this.convertChild(e.name)});case g.ImportClause:{let d=this.convertChild(e.name);return this.createNode(e,{type:N.ImportDefaultSpecifier,range:d.range,local:d})}case g.ExportDeclaration:return ((P=e.exportClause)==null?void 0:P.kind)===g.NamedExports?(this.assertModuleSpecifier(e,true),this.createNode(e,Te(this,ge,mi).call(this,{type:N.ExportNamedDeclaration,attributes:this.convertImportAttributes(e.attributes??e.assertClause),declaration:null,exportKind:e.isTypeOnly?"type":"value",source:this.convertChild(e.moduleSpecifier),specifiers:e.exportClause.elements.map(d=>this.convertChild(d,e))},"assertions","attributes",true))):(this.assertModuleSpecifier(e,false),this.createNode(e,Te(this,ge,mi).call(this,{type:N.ExportAllDeclaration,attributes:this.convertImportAttributes(e.attributes??e.assertClause),exported:((c=e.exportClause)==null?void 0:c.kind)===g.NamespaceExport?this.convertChild(e.exportClause.name):null,exportKind:e.isTypeOnly?"type":"value",source:this.convertChild(e.moduleSpecifier)},"assertions","attributes",true)));case g.ExportSpecifier:{let d=e.propertyName??e.name;return d.kind===g.StringLiteral&&r.kind===g.ExportDeclaration&&((Z=r.moduleSpecifier)==null?void 0:Z.kind)!==g.StringLiteral&&Te(this,ge,Me).call(this,d,"A string literal cannot be used as a local exported binding without `from`."),this.createNode(e,{type:N.ExportSpecifier,exported:this.convertChild(e.name),exportKind:e.isTypeOnly?"type":"value",local:this.convertChild(d)})}case g.ExportAssignment:return e.isExportEquals?this.createNode(e,{type:N.TSExportAssignment,expression:this.convertChild(e.expression)}):this.createNode(e,{type:N.ExportDefaultDeclaration,declaration:this.convertChild(e.expression),exportKind:"value"});case g.PrefixUnaryExpression:case g.PostfixUnaryExpression:{let d=ia(e.operator);return d==="++"||d==="--"?(Nd(e.operand)||Te(this,ge,Ut).call(this,e.operand,"Invalid left-hand side expression in unary operation"),this.createNode(e,{type:N.UpdateExpression,argument:this.convertChild(e.operand),operator:d,prefix:e.kind===g.PrefixUnaryExpression})):this.createNode(e,{type:N.UnaryExpression,argument:this.convertChild(e.operand),operator:d,prefix:e.kind===g.PrefixUnaryExpression})}case g.DeleteExpression:return this.createNode(e,{type:N.UnaryExpression,argument:this.convertChild(e.expression),operator:"delete",prefix:true});case g.VoidExpression:return this.createNode(e,{type:N.UnaryExpression,argument:this.convertChild(e.expression),operator:"void",prefix:true});case g.TypeOfExpression:return this.createNode(e,{type:N.UnaryExpression,argument:this.convertChild(e.expression),operator:"typeof",prefix:true});case g.TypeOperator:return this.createNode(e,{type:N.TSTypeOperator,operator:ia(e.operator),typeAnnotation:this.convertChild(e.type)});case g.BinaryExpression:{if(q4(e.operatorToken)){let v=this.createNode(e,{type:N.SequenceExpression,expressions:[]}),T=this.convertChild(e.left);return T.type===N.SequenceExpression&&e.left.kind!==g.ParenthesizedExpression?v.expressions.push(...T.expressions):v.expressions.push(T),v.expressions.push(this.convertChild(e.right)),v}let d=$4(e.operatorToken);return this.allowPattern&&d.type===N.AssignmentExpression?this.createNode(e,{type:N.AssignmentPattern,decorators:[],left:this.convertPattern(e.left,e),optional:false,right:this.convertChild(e.right),typeAnnotation:void 0}):this.createNode(e,{...d,left:this.converter(e.left,e,d.type===N.AssignmentExpression),right:this.convertChild(e.right)})}case g.PropertyAccessExpression:{let d=this.convertChild(e.expression),v=this.convertChild(e.name),T=this.createNode(e,{type:N.MemberExpression,computed:false,object:d,optional:e.questionDotToken!=null,property:v});return this.convertChainExpression(T,e)}case g.ElementAccessExpression:{let d=this.convertChild(e.expression),v=this.convertChild(e.argumentExpression),T=this.createNode(e,{type:N.MemberExpression,computed:true,object:d,optional:e.questionDotToken!=null,property:v});return this.convertChainExpression(T,e)}case g.CallExpression:{if(e.expression.kind===g.ImportKeyword)return e.arguments.length!==1&&e.arguments.length!==2&&Te(this,ge,Ut).call(this,e.arguments[2]??e,"Dynamic import requires exactly one or two arguments."),this.createNode(e,Te(this,ge,mi).call(this,{type:N.ImportExpression,options:e.arguments[1]?this.convertChild(e.arguments[1]):null,source:this.convertChild(e.arguments[0])},"attributes","options",true));let d=this.convertChild(e.expression),v=e.arguments.map(J=>this.convertChild(J)),T=e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e),b=this.createNode(e,{type:N.CallExpression,arguments:v,callee:d,optional:e.questionDotToken!=null,typeArguments:T});return this.convertChainExpression(b,e)}case g.NewExpression:{let d=e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e);return this.createNode(e,{type:N.NewExpression,arguments:e.arguments?e.arguments.map(v=>this.convertChild(v)):[],callee:this.convertChild(e.expression),typeArguments:d})}case g.ConditionalExpression:return this.createNode(e,{type:N.ConditionalExpression,alternate:this.convertChild(e.whenFalse),consequent:this.convertChild(e.whenTrue),test:this.convertChild(e.condition)});case g.MetaProperty:return this.createNode(e,{type:N.MetaProperty,meta:this.createNode(e.getFirstToken(),{type:N.Identifier,decorators:[],name:ia(e.keywordToken),optional:false,typeAnnotation:void 0}),property:this.convertChild(e.name)});case g.Decorator:return this.createNode(e,{type:N.Decorator,expression:this.convertChild(e.expression)});case g.StringLiteral:return this.createNode(e,{type:N.Literal,raw:e.getText(),value:r.kind===g.JsxAttribute?dm(e.text):e.text});case g.NumericLiteral:return this.createNode(e,{type:N.Literal,raw:e.getText(),value:Number(e.text)});case g.BigIntLiteral:{let d=mo(e,this.ast),v=this.ast.text.slice(d[0],d[1]),T=Qa(false,v.slice(0,-1),"_",""),b=typeof BigInt<"u"?BigInt(T):null;return this.createNode(e,{type:N.Literal,range:d,bigint:b==null?T:String(b),raw:v,value:b})}case g.RegularExpressionLiteral:{let d=e.text.slice(1,e.text.lastIndexOf("/")),v=e.text.slice(e.text.lastIndexOf("/")+1),T=null;try{T=new RegExp(d,v);}catch{}return this.createNode(e,{type:N.Literal,raw:e.text,regex:{flags:v,pattern:d},value:T})}case g.TrueKeyword:return this.createNode(e,{type:N.Literal,raw:"true",value:true});case g.FalseKeyword:return this.createNode(e,{type:N.Literal,raw:"false",value:false});case g.NullKeyword:return this.createNode(e,{type:N.Literal,raw:"null",value:null});case g.EmptyStatement:return this.createNode(e,{type:N.EmptyStatement});case g.DebuggerStatement:return this.createNode(e,{type:N.DebuggerStatement});case g.JsxElement:return this.createNode(e,{type:N.JSXElement,children:e.children.map(d=>this.convertChild(d)),closingElement:this.convertChild(e.closingElement),openingElement:this.convertChild(e.openingElement)});case g.JsxFragment:return this.createNode(e,{type:N.JSXFragment,children:e.children.map(d=>this.convertChild(d)),closingFragment:this.convertChild(e.closingFragment),openingFragment:this.convertChild(e.openingFragment)});case g.JsxSelfClosingElement:return this.createNode(e,{type:N.JSXElement,children:[],closingElement:null,openingElement:this.createNode(e,{type:N.JSXOpeningElement,range:mo(e,this.ast),attributes:e.attributes.properties.map(d=>this.convertChild(d)),name:this.convertJSXTagName(e.tagName,e),selfClosing:true,typeArguments:e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):void 0})});case g.JsxOpeningElement:return this.createNode(e,{type:N.JSXOpeningElement,attributes:e.attributes.properties.map(d=>this.convertChild(d)),name:this.convertJSXTagName(e.tagName,e),selfClosing:false,typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case g.JsxClosingElement:return this.createNode(e,{type:N.JSXClosingElement,name:this.convertJSXTagName(e.tagName,e)});case g.JsxOpeningFragment:return this.createNode(e,{type:N.JSXOpeningFragment});case g.JsxClosingFragment:return this.createNode(e,{type:N.JSXClosingFragment});case g.JsxExpression:{let d=e.expression?this.convertChild(e.expression):this.createNode(e,{type:N.JSXEmptyExpression,range:[e.getStart(this.ast)+1,e.getEnd()-1]});return e.dotDotDotToken?this.createNode(e,{type:N.JSXSpreadChild,expression:d}):this.createNode(e,{type:N.JSXExpressionContainer,expression:d})}case g.JsxAttribute:return this.createNode(e,{type:N.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(e.name),value:this.convertChild(e.initializer)});case g.JsxText:{let d=e.getFullStart(),v=e.getEnd(),T=this.ast.text.slice(d,v);return this.createNode(e,{type:N.JSXText,range:[d,v],raw:T,value:dm(T)})}case g.JsxSpreadAttribute:return this.createNode(e,{type:N.JSXSpreadAttribute,argument:this.convertChild(e.expression)});case g.QualifiedName:return this.createNode(e,{type:N.TSQualifiedName,left:this.convertChild(e.left),right:this.convertChild(e.right)});case g.TypeReference:return this.createNode(e,{type:N.TSTypeReference,typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e),typeName:this.convertChild(e.typeName)});case g.TypeParameter:return this.createNode(e,{type:N.TSTypeParameter,const:$e(g.ConstKeyword,e),constraint:e.constraint&&this.convertChild(e.constraint),default:e.default?this.convertChild(e.default):void 0,in:$e(g.InKeyword,e),name:this.convertChild(e.name),out:$e(g.OutKeyword,e)});case g.ThisType:return this.createNode(e,{type:N.TSThisType});case g.AnyKeyword:case g.BigIntKeyword:case g.BooleanKeyword:case g.NeverKeyword:case g.NumberKeyword:case g.ObjectKeyword:case g.StringKeyword:case g.SymbolKeyword:case g.UnknownKeyword:case g.VoidKeyword:case g.UndefinedKeyword:case g.IntrinsicKeyword:return this.createNode(e,{type:N[`TS${g[e.kind]}`]});case g.NonNullExpression:{let d=this.createNode(e,{type:N.TSNonNullExpression,expression:this.convertChild(e.expression)});return this.convertChainExpression(d,e)}case g.TypeLiteral:return this.createNode(e,{type:N.TSTypeLiteral,members:e.members.map(d=>this.convertChild(d))});case g.ArrayType:return this.createNode(e,{type:N.TSArrayType,elementType:this.convertChild(e.elementType)});case g.IndexedAccessType:return this.createNode(e,{type:N.TSIndexedAccessType,indexType:this.convertChild(e.indexType),objectType:this.convertChild(e.objectType)});case g.ConditionalType:return this.createNode(e,{type:N.TSConditionalType,checkType:this.convertChild(e.checkType),extendsType:this.convertChild(e.extendsType),falseType:this.convertChild(e.falseType),trueType:this.convertChild(e.trueType)});case g.TypeQuery:return this.createNode(e,{type:N.TSTypeQuery,exprName:this.convertChild(e.exprName),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case g.MappedType:return e.members&&e.members.length>0&&Te(this,ge,Ut).call(this,e.members[0],"A mapped type may not declare properties or methods."),this.createNode(e,Te(this,ge,Ad).call(this,{type:N.TSMappedType,constraint:this.convertChild(e.typeParameter.constraint),key:this.convertChild(e.typeParameter.name),nameType:this.convertChild(e.nameType)??null,optional:e.questionToken&&(e.questionToken.kind===g.QuestionToken||ia(e.questionToken.kind)),readonly:e.readonlyToken&&(e.readonlyToken.kind===g.ReadonlyKeyword||ia(e.readonlyToken.kind)),typeAnnotation:e.type&&this.convertChild(e.type)},"typeParameter","'constraint' and 'key'",this.convertChild(e.typeParameter)));case g.ParenthesizedExpression:return this.convertChild(e.expression,r);case g.TypeAliasDeclaration:{let d=this.createNode(e,{type:N.TSTypeAliasDeclaration,declare:$e(g.DeclareKeyword,e),id:this.convertChild(e.name),typeAnnotation:this.convertChild(e.type),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,d)}case g.MethodSignature:return this.convertMethodSignature(e);case g.PropertySignature:{let{initializer:d}=e;return d&&Te(this,ge,Me).call(this,d,"A property signature cannot have an initializer."),this.createNode(e,{type:N.TSPropertySignature,accessibility:Pa(e),computed:fi(e.name),key:this.convertChild(e.name),optional:pm(e),readonly:$e(g.ReadonlyKeyword,e),static:$e(g.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e)})}case g.IndexSignature:return this.createNode(e,{type:N.TSIndexSignature,accessibility:Pa(e),parameters:e.parameters.map(d=>this.convertChild(d)),readonly:$e(g.ReadonlyKeyword,e),static:$e(g.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e)});case g.ConstructorType:return this.createNode(e,{type:N.TSConstructorType,abstract:$e(g.AbstractKeyword,e),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case g.FunctionType:{let{modifiers:d}=e;d&&Te(this,ge,Me).call(this,d[0],"A function type cannot have modifiers.");}case g.ConstructSignature:case g.CallSignature:{let d=e.kind===g.ConstructSignature?N.TSConstructSignatureDeclaration:e.kind===g.CallSignature?N.TSCallSignatureDeclaration:N.TSFunctionType;return this.createNode(e,{type:d,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)})}case g.ExpressionWithTypeArguments:{let d=r.kind,v=d===g.InterfaceDeclaration?N.TSInterfaceHeritage:d===g.HeritageClause?N.TSClassImplements:N.TSInstantiationExpression;return this.createNode(e,{type:v,expression:this.convertChild(e.expression),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)})}case g.InterfaceDeclaration:{let d=e.heritageClauses??[],v=[];for(let b of d){b.token!==g.ExtendsKeyword&&Te(this,ge,Me).call(this,b,b.token===g.ImplementsKeyword?"Interface declaration cannot have 'implements' clause.":"Unexpected token.");for(let J of b.types)v.push(this.convertChild(J,e));}let T=this.createNode(e,{type:N.TSInterfaceDeclaration,body:this.createNode(e,{type:N.TSInterfaceBody,range:[e.members.pos-1,e.end],body:e.members.map(b=>this.convertChild(b))}),declare:$e(g.DeclareKeyword,e),extends:v,id:this.convertChild(e.name),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,T)}case g.TypePredicate:{let d=this.createNode(e,{type:N.TSTypePredicate,asserts:e.assertsModifier!=null,parameterName:this.convertChild(e.parameterName),typeAnnotation:null});return e.type&&(d.typeAnnotation=this.convertTypeAnnotation(e.type,e),d.typeAnnotation.loc=d.typeAnnotation.typeAnnotation.loc,d.typeAnnotation.range=d.typeAnnotation.typeAnnotation.range),d}case g.ImportType:{let d=mo(e,this.ast);if(e.isTypeOf){let T=pi(e.getFirstToken(),e,this.ast);d[0]=T.getStart(this.ast);}let v=this.createNode(e,{type:N.TSImportType,range:d,argument:this.convertChild(e.argument),attributes:this.convertImportAttributes(e.attributes),qualifier:this.convertChild(e.qualifier),typeArguments:e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):null});return e.isTypeOf?this.createNode(e,{type:N.TSTypeQuery,exprName:v,typeArguments:void 0}):v}case g.EnumDeclaration:{let d=e.members.map(T=>this.convertChild(T)),v=this.createNode(e,Te(this,ge,Ad).call(this,{type:N.TSEnumDeclaration,body:this.createNode(e,{type:N.TSEnumBody,range:[e.members.pos-1,e.end],members:d}),const:$e(g.ConstKeyword,e),declare:$e(g.DeclareKeyword,e),id:this.convertChild(e.name)},"members","'body.members'",e.members.map(T=>this.convertChild(T))));return this.fixExports(e,v)}case g.EnumMember:return this.createNode(e,{type:N.TSEnumMember,computed:e.name.kind===Fe.ComputedPropertyName,id:this.convertChild(e.name),initializer:e.initializer&&this.convertChild(e.initializer)});case g.ModuleDeclaration:{let d=$e(g.DeclareKeyword,e),v=this.createNode(e,{type:N.TSModuleDeclaration,...(()=>{if(e.flags&Ar.GlobalAugmentation){let b=this.convertChild(e.name),J=this.convertChild(e.body);return (J==null||J.type===N.TSModuleDeclaration)&&Te(this,ge,Ut).call(this,e.body??e,"Expected a valid module body"),b.type!==N.Identifier&&Te(this,ge,Ut).call(this,e.name,"global module augmentation must have an Identifier id"),{body:J,declare:false,global:false,id:b,kind:"global"}}if(!(e.flags&Ar.Namespace)){let b=this.convertChild(e.body);return {kind:"module",...b!=null?{body:b}:{},declare:false,global:false,id:this.convertChild(e.name)}}e.body==null&&Te(this,ge,Ut).call(this,e,"Expected a module body"),e.name.kind!==Fe.Identifier&&Te(this,ge,Ut).call(this,e.name,"`namespace`s must have an Identifier id");let T=this.createNode(e.name,{type:N.Identifier,range:[e.name.getStart(this.ast),e.name.getEnd()],decorators:[],name:e.name.text,optional:false,typeAnnotation:void 0});for(;e.body&&co(e.body)&&e.body.name;){e=e.body,d||(d=$e(g.DeclareKeyword,e));let b=e.name,J=this.createNode(b,{type:N.Identifier,range:[b.getStart(this.ast),b.getEnd()],decorators:[],name:b.text,optional:false,typeAnnotation:void 0});T=this.createNode(b,{type:N.TSQualifiedName,range:[T.range[0],J.range[1]],left:T,right:J});}return {body:this.convertChild(e.body),declare:false,global:false,id:T,kind:"namespace"}})()});return v.declare=d,e.flags&Ar.GlobalAugmentation&&(v.global=true),this.fixExports(e,v)}case g.ParenthesizedType:return this.convertChild(e.type);case g.UnionType:return this.createNode(e,{type:N.TSUnionType,types:e.types.map(d=>this.convertChild(d))});case g.IntersectionType:return this.createNode(e,{type:N.TSIntersectionType,types:e.types.map(d=>this.convertChild(d))});case g.AsExpression:return this.createNode(e,{type:N.TSAsExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});case g.InferType:return this.createNode(e,{type:N.TSInferType,typeParameter:this.convertChild(e.typeParameter)});case g.LiteralType:return e.literal.kind===g.NullKeyword?this.createNode(e.literal,{type:N.TSNullKeyword}):this.createNode(e,{type:N.TSLiteralType,literal:this.convertChild(e.literal)});case g.TypeAssertionExpression:return this.createNode(e,{type:N.TSTypeAssertion,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});case g.ImportEqualsDeclaration:return this.fixExports(e,this.createNode(e,{type:N.TSImportEqualsDeclaration,id:this.convertChild(e.name),importKind:e.isTypeOnly?"type":"value",moduleReference:this.convertChild(e.moduleReference)}));case g.ExternalModuleReference:return e.expression.kind!==g.StringLiteral&&Te(this,ge,Me).call(this,e.expression,"String literal expected."),this.createNode(e,{type:N.TSExternalModuleReference,expression:this.convertChild(e.expression)});case g.NamespaceExportDeclaration:return this.createNode(e,{type:N.TSNamespaceExportDeclaration,id:this.convertChild(e.name)});case g.AbstractKeyword:return this.createNode(e,{type:N.TSAbstractKeyword});case g.TupleType:{let d=e.elements.map(v=>this.convertChild(v));return this.createNode(e,{type:N.TSTupleType,elementTypes:d})}case g.NamedTupleMember:{let d=this.createNode(e,{type:N.TSNamedTupleMember,elementType:this.convertChild(e.type,e),label:this.convertChild(e.name,e),optional:e.questionToken!=null});return e.dotDotDotToken?(d.range[0]=d.label.range[0],d.loc.start=d.label.loc.start,this.createNode(e,{type:N.TSRestType,typeAnnotation:d})):d}case g.OptionalType:return this.createNode(e,{type:N.TSOptionalType,typeAnnotation:this.convertChild(e.type)});case g.RestType:return this.createNode(e,{type:N.TSRestType,typeAnnotation:this.convertChild(e.type)});case g.TemplateLiteralType:{let d=this.createNode(e,{type:N.TSTemplateLiteralType,quasis:[this.convertChild(e.head)],types:[]});return e.templateSpans.forEach(v=>{d.types.push(this.convertChild(v.type)),d.quasis.push(this.convertChild(v.literal));}),d}case g.ClassStaticBlockDeclaration:return this.createNode(e,{type:N.StaticBlock,body:this.convertBodyExpressions(e.body.statements,e)});case g.AssertEntry:case g.ImportAttribute:return this.createNode(e,{type:N.ImportAttribute,key:this.convertChild(e.name),value:this.convertChild(e.value)});case g.SatisfiesExpression:return this.createNode(e,{type:N.TSSatisfiesExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});default:return this.deeplyCopy(e)}}createNode(e,r){let i=r;return i.range??(i.range=mo(e,this.ast)),i.loc??(i.loc=Da(i.range,this.ast)),i&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(i,e),i}convertProgram(){return this.converter(this.ast)}deeplyCopy(e){e.kind===Fe.JSDocFunctionType&&Te(this,ge,Me).call(this,e,"JSDoc types can only be used inside documentation comments.");let r=`TS${g[e.kind]}`;if(this.options.errorOnUnknownASTType&&!N[r])throw new Error(`Unknown AST_NODE_TYPE: "${r}"`);let i=this.createNode(e,{type:r});"type"in e&&(i.typeAnnotation=e.type&&"kind"in e.type&&Kh(e.type)?this.convertTypeAnnotation(e.type,e):null),"typeArguments"in e&&(i.typeArguments=e.typeArguments&&"pos"in e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):null),"typeParameters"in e&&(i.typeParameters=e.typeParameters&&"pos"in e.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters):null);let u=di(e);u!=null&&u.length&&(i.decorators=u.map(y=>this.convertChild(y)));let h=new Set(["_children","decorators","end","flags","heritageClauses","illegalDecorators","jsDoc","kind","locals","localSymbol","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(e).filter(([y])=>!h.has(y)).forEach(([y,A])=>{Array.isArray(A)?i[y]=A.map(P=>this.convertChild(P)):A&&typeof A=="object"&&A.kind?i[y]=this.convertChild(A):i[y]=A;}),i}fixExports(e,r){let i=co(e)&&e.flags&Ar.Namespace?p6(e):gn(e);if((i==null?void 0:i[0].kind)===g.ExportKeyword){this.registerTSNodeInNodeMap(e,r);let u=i[0],h=i[1],y=(h==null?void 0:h.kind)===g.DefaultKeyword,A=y?pi(h,this.ast,this.ast):pi(u,this.ast,this.ast);if(r.range[0]=A.getStart(this.ast),r.loc=Da(r.range,this.ast),y)return this.createNode(e,{type:N.ExportDefaultDeclaration,range:[u.getStart(this.ast),r.range[1]],declaration:r,exportKind:"value"});let P=r.type===N.TSInterfaceDeclaration||r.type===N.TSTypeAliasDeclaration,c="declare"in r&&r.declare;return this.createNode(e,Te(this,ge,mi).call(this,{type:N.ExportNamedDeclaration,range:[u.getStart(this.ast),r.range[1]],attributes:[],declaration:r,exportKind:P||c?"type":"value",source:null,specifiers:[]},"assertions","attributes",true))}return r}getASTMaps(){return {esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}registerTSNodeInNodeMap(e,r){r&&this.options.shouldPreserveNodeMaps&&!this.tsNodeToESTreeNodeMap.has(e)&&this.tsNodeToESTreeNodeMap.set(e,r);}};ge=new WeakSet,wd=function(e,r){let i=r===Fe.ForInStatement?"for...in":"for...of";if(yy(e)){e.declarations.length!==1&&Te(this,ge,Me).call(this,e,`Only a single variable declaration is allowed in a '${i}' statement.`);let u=e.declarations[0];u.initializer?Te(this,ge,Me).call(this,u,`The variable declaration of a '${i}' statement cannot have an initializer.`):u.type&&Te(this,ge,Me).call(this,u,`The variable declaration of a '${i}' statement cannot have a type annotation.`),r===Fe.ForInStatement&&e.flags&Ar.Using&&Te(this,ge,Me).call(this,e,"The left-hand side of a 'for...in' statement cannot be a 'using' declaration.");}else !Nd(e)&&e.kind!==Fe.ObjectLiteralExpression&&e.kind!==Fe.ArrayLiteralExpression&&Te(this,ge,Me).call(this,e,`The left-hand side of a '${i}' statement must be a variable or a property access.`);},gm=function(e){if(!this.options.allowInvalidAST){t6(e)&&Te(this,ge,Me).call(this,e.illegalDecorators[0],"Decorators are not valid here.");for(let r of di(e,true)??[])d6(e)||(pd(e)&&!_m(e.body)?Te(this,ge,Me).call(this,r,"A decorator can only decorate a method implementation, not an overload."):Te(this,ge,Me).call(this,r,"Decorators are not valid here."));for(let r of gn(e,true)??[]){if(r.kind!==g.ReadonlyKeyword&&((e.kind===g.PropertySignature||e.kind===g.MethodSignature)&&Te(this,ge,Me).call(this,r,`'${ct(r.kind)}' modifier cannot appear on a type member`),e.kind===g.IndexSignature&&(r.kind!==g.StaticKeyword||!ri(e.parent))&&Te(this,ge,Me).call(this,r,`'${ct(r.kind)}' modifier cannot appear on an index signature`)),r.kind!==g.InKeyword&&r.kind!==g.OutKeyword&&r.kind!==g.ConstKeyword&&e.kind===g.TypeParameter&&Te(this,ge,Me).call(this,r,`'${ct(r.kind)}' modifier cannot appear on a type parameter`),(r.kind===g.InKeyword||r.kind===g.OutKeyword)&&(e.kind!==g.TypeParameter||!(_d(e.parent)||ri(e.parent)||d2(e.parent)))&&Te(this,ge,Me).call(this,r,`'${ct(r.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),r.kind===g.ReadonlyKeyword&&e.kind!==g.PropertyDeclaration&&e.kind!==g.PropertySignature&&e.kind!==g.IndexSignature&&e.kind!==g.Parameter&&Te(this,ge,Me).call(this,r,"'readonly' modifier can only appear on a property declaration or index signature."),r.kind===g.DeclareKeyword&&ri(e.parent)&&!Bs(e)&&Te(this,ge,Me).call(this,r,`'${ct(r.kind)}' modifier cannot appear on class elements of this kind.`),r.kind===g.DeclareKeyword&&qs(e)){let i=Ed(e.declarationList);(i==="using"||i==="await using")&&Te(this,ge,Me).call(this,r,`'declare' modifier cannot appear on a '${i}' declaration.`);}if(r.kind===g.AbstractKeyword&&e.kind!==g.ClassDeclaration&&e.kind!==g.ConstructorType&&e.kind!==g.MethodDeclaration&&e.kind!==g.PropertyDeclaration&&e.kind!==g.GetAccessor&&e.kind!==g.SetAccessor&&Te(this,ge,Me).call(this,r,`'${ct(r.kind)}' modifier can only appear on a class, method, or property declaration.`),(r.kind===g.StaticKeyword||r.kind===g.PublicKeyword||r.kind===g.ProtectedKeyword||r.kind===g.PrivateKeyword)&&(e.parent.kind===g.ModuleBlock||e.parent.kind===g.SourceFile)&&Te(this,ge,Me).call(this,r,`'${ct(r.kind)}' modifier cannot appear on a module or namespace element.`),r.kind===g.AccessorKeyword&&e.kind!==g.PropertyDeclaration&&Te(this,ge,Me).call(this,r,"'accessor' modifier can only appear on a property declaration."),r.kind===g.AsyncKeyword&&e.kind!==g.MethodDeclaration&&e.kind!==g.FunctionDeclaration&&e.kind!==g.FunctionExpression&&e.kind!==g.ArrowFunction&&Te(this,ge,Me).call(this,r,"'async' modifier cannot be used here."),e.kind===g.Parameter&&(r.kind===g.StaticKeyword||r.kind===g.ExportKeyword||r.kind===g.DeclareKeyword||r.kind===g.AsyncKeyword)&&Te(this,ge,Me).call(this,r,`'${ct(r.kind)}' modifier cannot appear on a parameter.`),r.kind===g.PublicKeyword||r.kind===g.ProtectedKeyword||r.kind===g.PrivateKeyword)for(let i of gn(e)??[])i!==r&&(i.kind===g.PublicKeyword||i.kind===g.ProtectedKeyword||i.kind===g.PrivateKeyword)&&Te(this,ge,Me).call(this,i,"Accessibility modifier already seen.");if(e.kind===g.Parameter&&(r.kind===g.PublicKeyword||r.kind===g.PrivateKeyword||r.kind===g.ProtectedKeyword||r.kind===g.ReadonlyKeyword||r.kind===g.OverrideKeyword)){let i=s6(e);i.kind===g.Constructor&&_m(i.body)||Te(this,ge,Me).call(this,r,"A parameter property is only allowed in a constructor implementation.");}}}},Me=function(e,r){let i,u;throw typeof e=="number"?i=u=e:(i=e.getStart(this.ast),u=e.getEnd()),mm(r,this.ast,i,u)},Ut=function(e,r){this.options.allowInvalidAST||Te(this,ge,Me).call(this,e,r);},mi=function(e,r,i,u=false){let h=u;return Object.defineProperty(e,r,{configurable:true,get:this.options.suppressDeprecatedPropertyWarnings?()=>e[i]:()=>(h||((void 0)(`The '${r}' property is deprecated on ${e.type} nodes. Use '${i}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),h=true),e[i]),set(y){Object.defineProperty(e,r,{enumerable:true,value:y,writable:true});}}),e},Ad=function(e,r,i,u){let h=false;return Object.defineProperty(e,r,{configurable:true,get:this.options.suppressDeprecatedPropertyWarnings?()=>u:()=>(h||((void 0)(`The '${r}' property is deprecated on ${e.type} nodes. Use ${i} instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),h=true),u),set(y){Object.defineProperty(e,r,{enumerable:true,value:y,writable:true});}}),e};function h6(e,r,i=e.getSourceFile()){let u=[];for(;;){if(yf(e.kind))r(e);else {let h=e.getChildren(i);if(h.length===1){e=h[0];continue}for(let y=h.length-1;y>=0;--y)u.push(h[y]);}if(u.length===0)break;e=u.pop();}}function _6(e,r,i=e.getSourceFile()){let u=i.text,h=i.languageVariant!==J1.JSX;return h6(e,A=>{if(A.pos!==A.end&&(A.kind!==Fe.JsxText&&X0(u,A.pos===0?(nf(u)??"").length:A.pos,y),h||g6(A)))return Q0(u,A.end,y)},i);function y(A,P,c){r(u,{end:P,kind:c,pos:A});}}function g6(e){switch(e.kind){case Fe.CloseBraceToken:return e.parent.kind!==Fe.JsxExpression||!Dd(e.parent.parent);case Fe.GreaterThanToken:switch(e.parent.kind){case Fe.JsxClosingElement:case Fe.JsxClosingFragment:return !Dd(e.parent.parent.parent);case Fe.JsxOpeningElement:return e.end!==e.parent.end;case Fe.JsxOpeningFragment:return  false;case Fe.JsxSelfClosingElement:return e.end!==e.parent.end||!Dd(e.parent.parent)}}return  true}function Dd(e){return e.kind===Fe.JsxElement||e.kind===Fe.JsxFragment}var[o8,s8]=zm.split(".").map(e=>Number.parseInt(e,10));er.Intrinsic??er.Any|er.Unknown|er.String|er.Number|er.BigInt|er.Boolean|er.BooleanLiteral|er.ESSymbol|er.Void|er.Undefined|er.Null|er.Never|er.NonPrimitive;function y6(e,r){let i=[];return _6(e,(u,h)=>{let y=h.kind===Fe.SingleLineCommentTrivia?Rt.Line:Rt.Block,A=[h.pos,h.end],P=Da(A,e),c=A[0]+2,Z=h.kind===Fe.SingleLineCommentTrivia?A[1]-c:A[1]-c-2;i.push({type:y,loc:P,range:A,value:r.slice(c,c+Z)});},e),i}var T6=()=>{};function x6(e,r,i){let{parseDiagnostics:u}=e;if(u.length)throw f6(u[0]);let h=new m6(e,{allowInvalidAST:r.allowInvalidAST,errorOnUnknownASTType:r.errorOnUnknownASTType,shouldPreserveNodeMaps:i,suppressDeprecatedPropertyWarnings:r.suppressDeprecatedPropertyWarnings}),y=h.convertProgram();return (!r.range||!r.loc)&&T6(),r.tokens&&(y.tokens=Y4(e)),r.comment&&(y.comments=y6(e,r.codeFullText)),{astMaps:h.getASTMaps(),estree:y}}function ym(e){if(typeof e!="object"||e==null)return  false;let r=e;return r.kind===Fe.SourceFile&&typeof r.getFullText=="function"}var k6=function(e){return e&&e.__esModule?e:{default:e}},S6=k6({extname:e=>"."+e.split(".").pop()});function b6(e,r){switch(S6.default.extname(e).toLowerCase()){case Ur.Cjs:case Ur.Js:case Ur.Mjs:return In.JS;case Ur.Cts:case Ur.Mts:case Ur.Ts:return In.TS;case Ur.Json:return In.JSON;case Ur.Jsx:return In.JSX;case Ur.Tsx:return In.TSX;default:return r?In.TSX:In.TS}}var v6={default:x1},C6=(0, v6.default)("typescript-eslint:typescript-estree:create-program:createSourceFile");function E6(e){return C6("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),ym(e.code)?e.code:c4(e.filePath,e.codeFullText,{jsDocParsingMode:e.jsDocParsingMode,languageVersion:wl.Latest,setExternalModuleIndicator:e.setExternalModuleIndicator},true,b6(e.filePath,e.jsx))}var N6=()=>{},w6=e=>e,A6=class{},D6=()=>false,P6=function(e){return e&&e.__esModule?e:{default:e}},Pd={default:x1},F6=P6({extname:e=>"."+e.split(".").pop()}),I6=(0, Pd.default)("typescript-eslint:typescript-estree:parseSettings:createParseSettings"),Tm,xm=null,km,Sm,bm,vm,ho={ParseAll:(km=Hi)==null?void 0:km.ParseAll,ParseForTypeErrors:(Sm=Hi)==null?void 0:Sm.ParseForTypeErrors,ParseForTypeInfo:(bm=Hi)==null?void 0:bm.ParseForTypeInfo,ParseNone:(vm=Hi)==null?void 0:vm.ParseNone};function L6(e,r={}){var i;let u=J6(e),h=D6(),y=typeof r.tsconfigRootDir=="string"?r.tsconfigRootDir:"/prettier-security-dirname-placeholder";r.loggerFn;let A=w6(typeof r.filePath=="string"&&r.filePath!=="<input>"?r.filePath:O6(r.jsx)),P=F6.default.extname(A).toLowerCase(),c=(()=>{switch(r.jsDocParsingMode){case "all":return ho.ParseAll;case "none":return ho.ParseNone;case "type-info":return ho.ParseForTypeInfo;default:return ho.ParseAll}})(),Z={loc:r.loc===true,range:r.range===true,allowInvalidAST:r.allowInvalidAST===true,code:e,codeFullText:u,comment:r.comment===true,comments:[],debugLevel:r.debugLevel===true?new Set(["typescript-eslint"]):Array.isArray(r.debugLevel)?new Set(r.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:false,errorOnUnknownASTType:r.errorOnUnknownASTType===true,extraFileExtensions:Array.isArray(r.extraFileExtensions)&&r.extraFileExtensions.every(d=>typeof d=="string")?r.extraFileExtensions:[],filePath:A,jsDocParsingMode:c,jsx:r.jsx===true,log:typeof r.loggerFn=="function"?r.loggerFn:r.loggerFn===false?()=>{}:console.log,preserveNodeMaps:r.preserveNodeMaps!==false,programs:Array.isArray(r.programs)?r.programs:null,projects:new Map,projectService:r.projectService||r.project&&r.projectService!==false&&(void 0).env.TYPESCRIPT_ESLINT_PROJECT_SERVICE==="true"?xm??(xm=N6(r.projectService)):void 0,setExternalModuleIndicator:r.sourceType==="module"||r.sourceType==null&&P===Ur.Mjs||r.sourceType==null&&P===Ur.Mts?d=>{d.externalModuleIndicator=true;}:void 0,singleRun:h,suppressDeprecatedPropertyWarnings:r.suppressDeprecatedPropertyWarnings??true,tokens:r.tokens===true?[]:null,tsconfigMatchCache:Tm??(Tm=new A6(((i=r.cacheLifetime)==null?void 0:i.glob)??void 0)),tsconfigRootDir:y};if(Z.debugLevel.size>0){let d=[];Z.debugLevel.has("typescript-eslint")&&d.push("typescript-eslint:*"),(Z.debugLevel.has("eslint")||Pd.default.enabled("eslint:*,-eslint:code-path"))&&d.push("eslint:*,-eslint:code-path"),Pd.default.enable(d.join(","));}if(Array.isArray(r.programs)){if(!r.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");I6("parserOptions.programs was provided, so parserOptions.project will be ignored.");}return !Z.programs&&!Z.projectService&&(Z.projects=new Map),r.jsDocParsingMode==null&&Z.projects.size===0&&Z.programs==null&&Z.projectService==null&&(Z.jsDocParsingMode=ho.ParseNone),Z}function J6(e){return ym(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function O6(e){return e?"estree.tsx":"estree.ts"}function M6(e,r){let{ast:i}=U6(e,r,false);return i}function U6(e,r,i){let u=L6(e,r);if(r!=null&&r.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let h=E6(u),{astMaps:y,estree:A}=x6(h,u,i);return {ast:A,esTreeNodeToTSNodeMap:y.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:y.tsNodeToESTreeNodeMap}}function B6(e,r){let i=new SyntaxError(e+" ("+r.loc.start.line+":"+r.loc.start.column+")");return Object.assign(i,r)}var K6=B6;function j6(e){let r=[];for(let i of e)try{return i()}catch(u){r.push(u);}throw Object.assign(new Error("All combinations failed"),{errors:r})}var q6=j6,R6=(e,r,i)=>{if(!(e&&r==null))return Array.isArray(r)||typeof r=="string"?r[i<0?r.length+i:i]:r.at(i)},Cm=R6;function z6(e){return Array.isArray(e)&&e.length>0}var $6=z6;function yn(e){var r,i,u;let h=((r=e.range)==null?void 0:r[0])??e.start,y=(u=((i=e.declaration)==null?void 0:i.decorators)??e.decorators)==null?void 0:u[0];return y?Math.min(yn(y),h):h}function Fa(e){var r;return ((r=e.range)==null?void 0:r[1])??e.end}function G6(e){let r=new Set(e);return i=>r.has(i==null?void 0:i.type)}var H6=G6,W6=H6(["Block","CommentBlock","MultiLine"]),Fd=W6;function V6(e){let r=`*${e.value}*`.split(`
`);return r.length>1&&r.every(i=>i.trimStart()[0]==="*")}var Em=V6;function X6(e){return Fd(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}var Q6=X6,_o=null;function go(e){if(_o!==null&&typeof _o.property){let r=_o;return _o=go.prototype=null,r}return _o=go.prototype=e??Object.create(null),new go}var Z6=10;for(let e=0;e<=Z6;e++)go();function Y6(e){return go(e)}function e3(e,r="type"){Y6(e);function i(u){let h=u[r],y=e[h];if(!Array.isArray(y))throw Object.assign(new Error(`Missing visitor keys for '${h}'.`),{node:u});return y}return i}var t3=e3,r3={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeParameters","typeArguments","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSTemplateLiteralType:["quasis","types"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumBody:["members"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","options","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]},n3=t3(r3),a3=n3;function Id(e,r){if(!(e!==null&&typeof e=="object"))return e;if(Array.isArray(e)){for(let u=0;u<e.length;u++)e[u]=Id(e[u],r);return e}let i=a3(e);for(let u=0;u<i.length;u++)e[i[u]]=Id(e[i[u]],r);return r(e)||e}var Ld=Id;function i3(e,r){let{parser:i,text:u}=r;if(e.type==="File"&&e.program.interpreter){let{program:{interpreter:h},comments:y}=e;delete e.program.interpreter,y.unshift(h);}if(i==="babel"){let h=new Set;e=Ld(e,y=>{var A;(A=y.leadingComments)!=null&&A.some(Q6)&&h.add(yn(y));}),e=Ld(e,y=>{if(y.type==="ParenthesizedExpression"){let{expression:A}=y;if(A.type==="TypeCastExpression")return A.range=[...y.range],A;let P=yn(y);if(!h.has(P))return A.extra={...A.extra,parenthesized:true},A}});}if(e=Ld(e,h=>{switch(h.type){case "LogicalExpression":if(Nm(h))return Jd(h);break;case "VariableDeclaration":{let y=Cm(false,h.declarations,-1);y!=null&&y.init&&u[Fa(y)]!==";"&&(h.range=[yn(h),Fa(y)]);break}case "TSParenthesizedType":return h.typeAnnotation;case "TSTypeParameter":if(typeof h.name=="string"){let y=yn(h);h.name={type:"Identifier",name:h.name,range:[y,y+h.name.length]};}break;case "TopicReference":e.extra={...e.extra,__isUsingHackPipeline:true};break;case "TSUnionType":case "TSIntersectionType":if(h.types.length===1)return h.types[0];break}}),$6(e.comments)){let h=Cm(false,e.comments,-1);for(let y=e.comments.length-2;y>=0;y--){let A=e.comments[y];Fa(A)===yn(h)&&Fd(A)&&Fd(h)&&Em(A)&&Em(h)&&(e.comments.splice(y+1,1),A.value+="*//*"+h.value,A.range=[yn(A),Fa(h)]),h=A;}}return e.type==="Program"&&(e.range=[0,u.length]),e}function Nm(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function Jd(e){return Nm(e)?Jd({type:"LogicalExpression",operator:e.operator,left:Jd({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[yn(e.left),Fa(e.right.left)]}),right:e.right.right,range:[yn(e),Fa(e)]}):e}var o3=i3,s3=/\*\/$/,c3=/^\/\*\*?/,u3=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,l3=/(^|\s+)\/\/([^\n\r]*)/g,wm=/^(\r?\n)+/,d3=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Am=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,p3=/(\r?\n|^) *\* ?/g,f3=[];function m3(e){let r=e.match(u3);return r?r[0].trimStart():""}function h3(e){let r=`
`;e=Qa(false,e.replace(c3,"").replace(s3,""),p3,"$1");let i="";for(;i!==e;)i=e,e=Qa(false,e,d3,`${r}$1 $2${r}`);e=e.replace(wm,"").trimEnd();let u=Object.create(null),h=Qa(false,e,Am,"").replace(wm,"").trimEnd(),y;for(;y=Am.exec(e);){let A=Qa(false,y[2],l3,"");if(typeof u[y[1]]=="string"||Array.isArray(u[y[1]])){let P=u[y[1]];u[y[1]]=[...f3,...Array.isArray(P)?P:[P],A];}else u[y[1]]=A;}return {comments:h,pragmas:u}}function _3(e){if(!e.startsWith("#!"))return "";let r=e.indexOf(`
`);return r===-1?e:e.slice(0,r)}var g3=_3;function y3(e){let r=g3(e);r&&(e=e.slice(r.length+1));let i=m3(e),{pragmas:u,comments:h}=h3(i);return {shebang:r,text:e,pragmas:u,comments:h}}function T3(e){let{pragmas:r}=y3(e);return Object.prototype.hasOwnProperty.call(r,"prettier")||Object.prototype.hasOwnProperty.call(r,"format")}function x3(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:T3,locStart:yn,locEnd:Fa,...e}}var k3=x3;function S3(e){let{filepath:r}=e;if(r){if(r=r.toLowerCase(),r.endsWith(".cjs")||r.endsWith(".cts"))return "script";if(r.endsWith(".mjs")||r.endsWith(".mts"))return "module"}}var b3=S3;function v3(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var C3=v3,E3={loc:true,range:true,comment:true,tokens:true,loggerFn:false,project:false,jsDocParsingMode:"none",suppressDeprecatedPropertyWarnings:true};function N3(e){if(!(e!=null&&e.location))return e;let{message:r,location:{start:i,end:u}}=e;return K6(r,{loc:{start:{line:i.line,column:i.column+1},end:{line:u.line,column:u.column+1}},cause:e})}var w3=e=>/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);function A3(e,r){let i=r==null?void 0:r.filepath,u=[{...E3,filePath:i}],h=b3(r);if(h?u=u.map(A=>({...A,sourceType:h})):u=["module","script"].flatMap(A=>u.map(P=>({...P,sourceType:A}))),i&&w3(i))return u;let y=P3(e);return [y,!y].flatMap(A=>u.map(P=>({...P,jsx:A})))}function D3(e,r={}){let i=C3(e),u=A3(e,r),h;try{h=q6(u.map(y=>()=>M6(i,y)));}catch({errors:[y]}){throw N3(y)}return o3(h,{text:e})}function P3(e){return new RegExp(["(?:^[^\"'`]*</)","|","(?:^[^/]{2}.*/>)"].join(""),"mu").test(e)}var F3=k3(D3);return Bm(y1)});}(h1)),h1.exports}var Om=a8();const i8=gte(Om),l8=exports("t", n8({__proto__:null,default:i8},[Om]));

        })
    };
}));

System.import("./__entry.js", "./");